/* 信息库：团队信息库与个人信息库（桌面 Web） */
/* Team information library */
.library-shell { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 18px 0 40px; }
.library-composer { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 16px; }
.library-composer textarea { width: 100%; min-height: 96px; resize: vertical; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 14px; line-height: 1.7; outline: none; }
.library-composer textarea::placeholder { color: var(--text2); }
.library-composer-files { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.library-staged-file { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 30px; align-items: center; gap: 8px; min-height: 42px; padding: 6px 8px; background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; }
.library-file-symbol { display: grid; place-items: center; width: 28px; height: 28px; color: var(--primary-hover); font-size: 17px; }
.library-staged-copy { min-width: 0; }
.library-staged-copy strong, .library-staged-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.library-staged-copy strong { font-size: 12px; }
.library-staged-copy span { color: var(--text2); font-size: 10px; margin-top: 2px; }
.library-scope-button, .library-icon-button { border: 0; background: transparent; color: var(--text2); cursor: pointer; font: inherit; }
.library-scope-button { padding: 5px 7px; border-radius: 5px; font-size: 11px; white-space: nowrap; }
.library-scope-button:hover { color: var(--primary-hover); background: color-mix(in srgb, var(--primary) 8%, transparent); }
.library-icon-button { width: 30px; height: 30px; padding: 0; border-radius: 5px; font-size: 18px; }
.library-icon-button:hover { color: var(--red); background: color-mix(in srgb, var(--red) 8%, transparent); }
.library-composer-actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.library-add-button { border: 1px solid var(--border); background: var(--surface2); color: var(--text); min-height: 34px; padding: 0 11px; border-radius: 6px; cursor: pointer; font: inherit; font-size: 12px; }
.library-add-button:hover { border-color: var(--primary); color: var(--primary-hover); }
.library-post-scope { margin-left: auto; }
.library-publish-button { border: 0; min-height: 34px; padding: 0 16px; border-radius: 6px; background: var(--primary); color: #fff; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; }
.library-publish-button:disabled { opacity: .55; cursor: wait; }
.library-filter-panel { margin-top: 22px; padding: 18px 16px 14px; border-top: 1px solid var(--border); }
.library-search-row { position: relative; display: flex; align-items: center; }
.library-search-row::before { content: '\2315'; position: absolute; left: 11px; color: var(--text2); font-size: 17px; pointer-events: none; }
.library-search-row input { width: 100%; height: 38px; padding: 0 38px 0 36px; border: 1px solid var(--border); border-radius: 6px; outline: none; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; }
.library-search-row input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.library-search-row input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 14%, transparent); }
.library-search-clear { position: absolute; right: 4px; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--text2); cursor: pointer; font-size: 18px; }
.library-search-clear:hover { color: var(--text); background: var(--surface2); }
.library-filter-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) 38px; gap: 10px; margin-top: 12px; }
.library-filter-row select { min-width: 0; width: 100%; height: 38px; padding: 0 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); font: inherit; font-size: 12px; cursor: pointer; }
.library-filter-reset { grid-column: 3; grid-row: 1; width: 38px; height: 38px; padding: 0; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text2); cursor: pointer; font-size: 17px; }
.library-filter-reset:hover { border-color: var(--primary); color: var(--primary-hover); }
.library-filter-summary { min-height: 18px; padding-top: 7px; color: var(--text2); font-size: 10.5px; }
.library-feed { margin-top: 14px; border-top: 1px solid var(--border); }
.library-post { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; padding: 18px 2px; border-bottom: 1px solid var(--border); }
.library-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 6px; overflow: hidden; background: var(--primary); color: #fff; font-size: 16px; font-weight: 700; }
.library-avatar img { width: 100%; height: 100%; object-fit: cover; }
.library-post-main { min-width: 0; }
.library-post-head { display: flex; align-items: center; gap: 8px; min-height: 24px; }
.library-post-head strong { color: var(--primary-hover); font-size: 14px; }
.library-post-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.library-post-collapse { border: 0; background: transparent; color: var(--text2); min-height: 28px; padding: 0 7px; border-radius: 5px; cursor: pointer; font-size: 11px; }
.library-post-collapse:hover { color: var(--primary-hover); background: color-mix(in srgb, var(--primary) 8%, transparent); }
.library-post-collapse:focus-visible, .library-post-delete:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.library-post-delete { border: 0; background: transparent; color: var(--text2); width: 28px; height: 28px; border-radius: 5px; cursor: pointer; font-size: 18px; }
.library-post-delete:hover { color: var(--red); background: color-mix(in srgb, var(--red) 8%, transparent); }
.library-post-text { margin-top: 5px; color: var(--text); font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; white-space: pre-wrap; }
.library-post-text.is-collapsed { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; }
.library-image-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; width: min(510px, 100%); margin-top: 10px; }
.library-image-grid.one { grid-template-columns: minmax(0, 360px); }
.library-image-link { position: relative; display: block; width: 100%; padding: 0; aspect-ratio: 1; overflow: hidden; background: var(--surface2); border: 1px solid var(--border); border-radius: 4px; cursor: zoom-in; }
.library-image-grid.one .library-image-link { aspect-ratio: 4 / 3; }
.library-image-link img { width: 100%; height: 100%; display: block; object-fit: cover; }
.library-image-scope { position: absolute; right: 4px; bottom: 4px; padding: 2px 5px; border-radius: 3px; background: rgba(0,0,0,.68); color: #fff; font-size: 9px; }
.library-doc-list { display: flex; flex-direction: column; gap: 6px; width: min(560px, 100%); margin-top: 10px; }
.library-doc-row { width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 9px; align-items: center; min-height: 50px; padding: 7px 9px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface2); color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.library-doc-row:hover { border-color: var(--primary); }
.library-doc-row strong, .library-doc-row span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.library-doc-row strong { font-size: 12px; }
.library-doc-row span { color: var(--text2); font-size: 10px; margin-top: 3px; }
.library-file-visibility { color: var(--text2); font-size: 10px; white-space: nowrap; }
.library-post-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; color: var(--text2); font-size: 10.5px; }
.library-comments { width: min(560px, 100%); margin-top: 9px; padding: 5px 9px; border-radius: 5px; background: var(--surface2); }
.library-comment { display: grid; grid-template-columns: minmax(0, 1fr) auto 24px; align-items: start; gap: 7px; padding: 5px 0; border-bottom: 1px solid color-mix(in srgb, var(--border) 65%, transparent); }
.library-comment:last-child { border-bottom: 0; }
.library-comment-copy { min-width: 0; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.library-comment-copy strong { margin-right: 5px; color: var(--primary-hover); font-weight: 650; }
.library-comment-copy strong::after { content: ':'; }
.library-comment-copy span { white-space: pre-wrap; }
.library-comment time { padding-top: 2px; color: var(--text2); font-size: 9.5px; white-space: nowrap; }
.library-comment > button { width: 24px; height: 24px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--text2); cursor: pointer; font-size: 15px; }
.library-comment > button:hover { background: color-mix(in srgb, var(--red) 8%, transparent); color: var(--red); }
.library-comment-composer { display: flex; width: min(560px, 100%); min-height: 34px; margin-top: 8px; gap: 6px; }
.library-comment-composer input { min-width: 0; flex: 1; padding: 7px 9px; border: 1px solid var(--border); border-radius: 5px; outline: none; background: var(--surface2); color: var(--text); font: inherit; font-size: 12px; }
.library-comment-composer input:focus { border-color: var(--primary); }
.library-comment-composer button { min-width: 52px; padding: 0 10px; border: 0; border-radius: 5px; background: var(--primary); color: #fff; cursor: pointer; font: inherit; font-size: 11px; font-weight: 700; }
.library-comment-composer button:disabled { opacity: .55; cursor: wait; }
.library-empty { padding: 44px 12px; text-align: center; color: var(--text2); font-size: 13px; }
.library-loading { width: 18px; height: 18px; margin: 30px auto; border: 2px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; }
.library-load-more-wrap { display: flex; justify-content: center; padding-top: 14px; }
.library-load-more { min-width: 112px; min-height: 34px; padding: 0 15px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); cursor: pointer; font: inherit; font-size: 12px; }
.library-load-more:hover { border-color: var(--primary); color: var(--primary-hover); }
.library-load-more:disabled { opacity: .55; cursor: wait; }
.library-audience-list { max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.library-audience-member { display: flex; align-items: center; gap: 9px; min-height: 38px; padding: 5px 7px; border-radius: 5px; cursor: pointer; }
.library-audience-member:hover { background: var(--surface2); }
.library-audience-member input { width: 16px; height: 16px; accent-color: var(--primary); }
.library-audience-all { display: flex; align-items: center; gap: 9px; padding: 8px 7px 11px; border-bottom: 1px solid var(--border); }
.library-audience-hint { margin: 10px 0 14px; color: var(--text2); font-size: 11px; line-height: 1.5; }

/* Personal information library */
#team-library-content { flex-direction: column; min-height: 0; }
.library-space-switcher { position: sticky; top: 0; z-index: 20; display: flex; justify-content: center; gap: 3px; flex: 0 0 auto; padding: 10px 16px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(12px); }
.library-space-tab { min-height: 34px; padding: 0 18px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--text2); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.library-space-tab:hover { color: var(--text); background: var(--surface2); }
.library-space-tab.active { border-color: var(--border); background: var(--surface); color: var(--text); box-shadow: inset 0 -2px 0 var(--primary); }
.library-space-tab span { margin-left: 3px; color: var(--green); font-size: 10px; }
#personal-library-space { min-height: calc(100vh - 120px); }
.personal-library-layout { display: grid; grid-template-columns: 218px minmax(0, 1fr); min-height: calc(100vh - 120px); }
.pl-sidebar { min-width: 0; padding: 16px 12px 28px; border-right: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 45%, var(--bg)); }
.pl-sidebar-head, .pl-sidebar-section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pl-sidebar-head { min-height: 32px; padding: 0 8px 10px; }
.pl-sidebar-head strong { font-size: 13px; }
.pl-sidebar-section-head { margin-top: 18px; padding: 0 7px 7px; color: var(--text2); font-size: 10.5px; font-weight: 700; text-transform: uppercase; }
.pl-nav-list, .pl-folder-tree { display: flex; flex-direction: column; gap: 2px; }
.pl-nav-item, .pl-folder-row { width: 100%; min-width: 0; min-height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 8px; border: 0; border-radius: 5px; background: transparent; color: var(--text2); text-align: left; font: inherit; font-size: 12px; cursor: pointer; }
.pl-nav-item:hover, .pl-folder-row:hover { background: var(--surface2); color: var(--text); }
.pl-nav-item.active, .pl-folder-row.active { background: color-mix(in srgb, var(--primary) 13%, var(--surface)); color: var(--primary-hover); font-weight: 650; }
.pl-nav-item span, .pl-folder-row > span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-nav-item small { min-width: 21px; color: inherit; font-size: 9.5px; text-align: right; }
.pl-folder-children { margin-left: 12px; padding-left: 5px; border-left: 1px solid var(--border); }
.pl-folder-actions { display: none; flex: 0 0 auto; gap: 1px; }
.pl-folder-row:hover .pl-folder-actions, .pl-folder-row:focus-within .pl-folder-actions { display: flex; }
.pl-folder-actions button { width: 24px; height: 24px; border: 0; border-radius: 4px; background: transparent; color: var(--text2); cursor: pointer; font-size: 13px; }
.pl-folder-actions button:hover { background: var(--surface); color: var(--text); }
.pl-icon-btn { flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--text2); font: inherit; font-size: 17px; cursor: pointer; }
.pl-icon-btn:hover { background: var(--surface2); color: var(--text); }
.pl-main { min-width: 0; padding: 0 18px 40px; }
.pl-toolbar { position: sticky; top: 55px; z-index: 15; display: grid; grid-template-columns: minmax(150px, 210px) minmax(210px, 1fr) auto; gap: 8px; align-items: center; min-height: 62px; padding: 10px 0; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(12px); }
.pl-team-filter, .pl-filter-bar select, .pl-batch-bar select, .pl-batch-bar input { min-width: 0; height: 36px; padding: 0 9px; border: 1px solid var(--border); border-radius: 6px; outline: none; background: var(--surface); color: var(--text); font: inherit; font-size: 11.5px; }
.pl-team-filter:focus, .pl-filter-bar select:focus, .pl-batch-bar select:focus, .pl-batch-bar input:focus { border-color: var(--primary); }
.pl-search { position: relative; min-width: 0; display: flex; align-items: center; }
.pl-search > span { position: absolute; left: 11px; z-index: 1; color: var(--text2); font-size: 16px; pointer-events: none; }
.pl-search input { width: 100%; height: 38px; padding: 0 35px 0 34px; border: 1px solid var(--border); border-radius: 6px; outline: none; background: var(--surface); color: var(--text); font: inherit; font-size: 12px; }
.pl-search input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 13%, transparent); }
.pl-search button { position: absolute; right: 4px; width: 29px; height: 29px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--text2); font-size: 17px; cursor: pointer; }
.pl-search button:hover { background: var(--surface2); color: var(--text); }
.pl-new-wrap { position: relative; }
.pl-primary-btn { min-height: 38px; padding: 0 15px; border: 0; border-radius: 6px; background: var(--primary); color: #fff; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.pl-primary-btn:hover { filter: brightness(1.08); }
.pl-primary-btn:disabled { opacity: .55; cursor: wait; }
.pl-new-menu { display: none; position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; width: 190px; padding: 5px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); box-shadow: 0 14px 34px rgba(0,0,0,.28); }
.pl-new-menu.show { display: block; }
.pl-new-menu button { width: 100%; min-height: 36px; display: grid; grid-template-columns: 24px minmax(0,1fr); align-items: center; gap: 7px; padding: 0 8px; border: 0; border-radius: 5px; background: transparent; color: var(--text); text-align: left; font: inherit; font-size: 12px; cursor: pointer; }
.pl-new-menu button:hover { background: var(--surface2); }
.pl-new-menu button span { display: grid; place-items: center; color: var(--primary-hover); font-weight: 700; }
.pl-import-banner { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 8px 10px 8px 12px; border: 1px solid color-mix(in srgb, var(--yellow) 36%, var(--border)); border-radius: 6px; background: color-mix(in srgb, var(--yellow) 7%, var(--surface)); color: var(--text); font-size: 11.5px; }
.pl-import-banner[hidden], .pl-batch-bar[hidden], .pl-table-head[hidden] { display: none; }
.pl-import-banner button { min-height: 28px; padding: 0 10px; border: 1px solid color-mix(in srgb, var(--yellow) 42%, var(--border)); border-radius: 5px; background: var(--surface); color: var(--text); font: inherit; font-size: 11px; cursor: pointer; }
.pl-context-row { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 2px 8px; }
.pl-breadcrumb { color: var(--text); font-size: 15px; font-weight: 700; }
.pl-result-summary { min-height: 16px; margin-top: 4px; color: var(--text2); font-size: 10.5px; }
.pl-private-badge { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; color: var(--green); font-size: 10.5px; }
.pl-filter-bar { display: flex; align-items: center; gap: 7px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.pl-filter-bar select { width: auto; min-width: 118px; height: 32px; }
.pl-view-toggle { display: flex; margin-left: auto; padding: 2px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); }
.pl-view-toggle button { width: 29px; height: 27px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--text2); font-size: 15px; cursor: pointer; }
.pl-view-toggle button.active { background: var(--surface2); color: var(--primary-hover); }
.pl-batch-bar { min-height: 49px; display: flex; align-items: center; gap: 7px; margin-top: 8px; padding: 6px 8px; border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border)); border-radius: 6px; background: color-mix(in srgb, var(--primary) 7%, var(--surface)); }
.pl-batch-bar strong { flex: 0 0 auto; margin-right: 3px; font-size: 11px; }
.pl-batch-bar select { width: 130px; height: 30px; }
.pl-batch-bar input { min-width: 120px; flex: 1; height: 30px; }
.pl-batch-bar > button:not(.pl-icon-btn) { min-height: 30px; padding: 0 9px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); color: var(--text); font: inherit; font-size: 10.5px; cursor: pointer; white-space: nowrap; }
.pl-batch-bar > button:hover { border-color: var(--primary); }
.pl-batch-bar > button.danger { color: var(--red); }
.pl-table-head, .pl-item-row { display: grid; grid-template-columns: 32px minmax(190px, 1.7fr) 78px minmax(100px, .8fr) minmax(100px, .9fr) 112px 66px; gap: 9px; align-items: center; }
.pl-table-head { min-height: 36px; padding: 0 7px; border-bottom: 1px solid var(--border); color: var(--text2); font-size: 9.5px; text-transform: uppercase; }
.pl-table-head input, .pl-item-check input { width: 15px; height: 15px; accent-color: var(--primary); }
.pl-items { min-height: 180px; }
.pl-item-row { min-height: 64px; padding: 7px; border-bottom: 1px solid color-mix(in srgb, var(--border) 78%, transparent); color: var(--text); cursor: pointer; }
.pl-item-row:hover { background: color-mix(in srgb, var(--surface2) 72%, transparent); }
.pl-item-row.selected { background: color-mix(in srgb, var(--primary) 9%, transparent); }
.pl-item-check { display: grid; place-items: center; height: 100%; cursor: default; }
.pl-item-name { min-width: 0; display: grid; grid-template-columns: 36px minmax(0,1fr); align-items: center; gap: 9px; }
.pl-item-icon { width: 36px; height: 36px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--border); border-radius: 5px; background: var(--surface2); color: var(--primary-hover); font-size: 10px; font-weight: 750; }
.pl-item-icon img { width: 100%; height: 100%; display: block; object-fit: cover; }
.pl-item-copy { min-width: 0; }
.pl-item-copy strong, .pl-item-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-item-copy strong { font-size: 12px; line-height: 1.4; }
.pl-item-copy small { margin-top: 3px; color: var(--text2); font-size: 9.5px; }
.pl-item-tags { display: flex; gap: 4px; margin-top: 4px; overflow: hidden; }
.pl-tag { max-width: 88px; padding: 1px 5px; border-radius: 3px; background: color-mix(in srgb, var(--green) 10%, var(--surface2)); color: color-mix(in srgb, var(--green) 72%, var(--text)); font-size: 8.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-item-cell { min-width: 0; color: var(--text2); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-team-badge { display: inline-flex; max-width: 100%; padding: 2px 6px; border: 1px solid var(--border); border-radius: 4px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-team-badge.universal { color: var(--green); border-color: color-mix(in srgb, var(--green) 30%, var(--border)); }
.pl-team-badge.historical { color: var(--yellow); border-color: color-mix(in srgb, var(--yellow) 32%, var(--border)); }
.pl-item-actions { display: flex; justify-content: flex-end; gap: 2px; }
.pl-item-actions button { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--text2); font-size: 15px; cursor: pointer; }
.pl-item-actions button:hover { background: var(--surface); color: var(--text); }
.pl-item-actions button.favorite { color: var(--yellow); }
.pl-items.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; padding: 12px 0; }
.pl-items.grid .pl-item-row { position: relative; display: flex; min-width: 0; min-height: 218px; flex-direction: column; align-items: stretch; gap: 8px; padding: 8px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); }
.pl-items.grid .pl-item-check { position: absolute; top: 12px; left: 12px; z-index: 2; width: 22px; height: 22px; border-radius: 4px; background: color-mix(in srgb, var(--surface) 86%, transparent); }
.pl-items.grid .pl-item-name { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.pl-items.grid .pl-item-icon { width: 100%; height: auto; aspect-ratio: 4 / 3; font-size: 18px; }
.pl-items.grid .pl-item-copy { min-height: 45px; }
.pl-items.grid .pl-item-cell { display: none; }
.pl-items.grid .pl-item-actions { margin-top: auto; border-top: 1px solid var(--border); padding-top: 5px; }
.pl-empty { min-height: 220px; display: grid; place-items: center; padding: 40px 14px; color: var(--text2); text-align: center; font-size: 12px; }
.pl-detail-backdrop { display: none; position: fixed; inset: 0; z-index: 119; background: rgba(0,0,0,.48); }
.pl-detail-backdrop.show { display: block; }
.pl-detail { position: fixed; top: 0; right: 0; bottom: 0; z-index: 120; width: min(420px, 94vw); display: flex; flex-direction: column; border-left: 1px solid var(--border); background: var(--surface); box-shadow: -18px 0 45px rgba(0,0,0,.3); transform: translateX(105%); transition: transform .18s ease; }
.pl-detail.show { transform: translateX(0); }
.pl-detail-head { flex: 0 0 auto; min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 15px; border-bottom: 1px solid var(--border); }
.pl-detail-head strong { font-size: 13px; }
.pl-detail-body { flex: 1; min-height: 0; overflow-y: auto; padding: 15px; }
.pl-detail-actions { flex: 0 0 auto; min-height: 58px; display: flex; align-items: center; gap: 7px; padding: 10px 15px; border-top: 1px solid var(--border); background: var(--surface); }
.pl-detail-actions button { min-height: 34px; padding: 0 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface2); color: var(--text); font: inherit; font-size: 11px; cursor: pointer; }
.pl-detail-actions button.primary { margin-left: auto; border-color: var(--primary); background: var(--primary); color: #fff; font-weight: 700; }
.pl-detail-actions button.danger { color: var(--red); }
.pl-detail-preview { width: 100%; min-height: 130px; display: grid; place-items: center; margin-bottom: 15px; overflow: hidden; border: 1px solid var(--border); border-radius: 7px; background: var(--surface2); color: var(--primary-hover); font-size: 34px; font-weight: 750; }
.pl-detail-preview img { width: 100%; max-height: 280px; display: block; object-fit: contain; }
.pl-field { display: block; margin-bottom: 12px; }
.pl-field > span { display: block; margin-bottom: 5px; color: var(--text2); font-size: 10.5px; font-weight: 650; }
.pl-field input, .pl-field select, .pl-field textarea { width: 100%; border: 1px solid var(--border); border-radius: 6px; outline: none; background: var(--surface2); color: var(--text); font: inherit; font-size: 12px; }
.pl-field input, .pl-field select { min-height: 38px; padding: 0 9px; }
.pl-field textarea { min-height: 120px; padding: 9px; resize: vertical; line-height: 1.65; }
.pl-field input:focus, .pl-field select:focus, .pl-field textarea:focus { border-color: var(--primary); }
.pl-detail-meta { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; margin: 2px 0 13px; }
.pl-detail-meta div { min-width: 0; padding: 8px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface2); }
.pl-detail-meta span, .pl-detail-meta strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-detail-meta span { color: var(--text2); font-size: 9px; }
.pl-detail-meta strong { margin-top: 3px; font-size: 10.5px; font-weight: 600; }
.pl-extracted { max-height: 230px; overflow: auto; padding: 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--text2); font-family: inherit; font-size: 10.5px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.pl-form-modal { max-width: 620px; max-height: 90vh; overflow-y: auto; }
.pl-form-modal .pl-field textarea { margin-bottom: 0; }
.pl-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.pl-upload-picker { width: 100%; min-height: 76px; display: flex; align-items: center; justify-content: center; gap: 9px; margin-bottom: 10px; border: 1px dashed color-mix(in srgb, var(--primary) 45%, var(--border)); border-radius: 7px; background: color-mix(in srgb, var(--primary) 5%, var(--surface2)); color: var(--text); font: inherit; cursor: pointer; }
.pl-upload-picker span { color: var(--primary-hover); font-size: 21px; }
.pl-upload-picker strong { font-size: 12px; }
.pl-upload-selection { display: flex; flex-direction: column; gap: 4px; max-height: 140px; overflow-y: auto; margin-bottom: 12px; }
.pl-upload-file { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 31px; padding: 4px 7px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface2); font-size: 10.5px; }
.pl-upload-file span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-upload-file small { flex: 0 0 auto; color: var(--text2); }
