:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#f4f6f8;--panel:#fff;--panel-soft:#eef4f4;--ink:#172033;--muted:#637083;--line:#d8e0e7;--line-strong:#b8c4ce;--accent:#006d77;--accent-strong:#00545c;--accent-soft:#d8eeed;--coral:#d95532;--coral-soft:#f8e3dd;--indigo:#3f5aa9;--gold:#b7791f;--green:#497a54;--shadow:0 16px 40px #1720331f}*{box-sizing:border-box}body{background:linear-gradient(145deg, #006d7714, transparent 34%), linear-gradient(320deg, #d9553214, transparent 38%), var(--bg);min-height:100vh;color:var(--ink);font-synthesis-weight:auto;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;margin:0;font-family:-apple-system,BlinkMacSystemFont,PingFang TC,Hiragino Sans CNS,Noto Sans TC,Noto Sans CJK TC,Microsoft JhengHei,Noto Sans JP,Hiragino Sans,Segoe UI,Inter,ui-sans-serif,system-ui,sans-serif;line-height:1.5}html,body{overflow-x:hidden}button,input,select,textarea{font:inherit}button{cursor:pointer}.skip-link{z-index:1000;background:var(--ink);color:#fff;border-radius:8px;padding:9px 14px;position:fixed;top:10px;left:10px;transform:translateY(-160%)}.skip-link:focus{transform:translateY(0)}button:focus-visible,summary:focus-visible,.upload-button:focus-within,a:focus-visible{outline-offset:3px;outline:3px solid #006d7757}[hidden]{display:none!important}.auth-gate{place-items:center;min-height:100vh;padding:24px;display:grid}.auth-card{width:min(460px,100%);box-shadow:var(--shadow);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:#ffffffe6;border:1px solid #b8c4cecc;border-radius:18px;justify-items:start;padding:clamp(28px,7vw,48px);display:grid}.auth-card .brand-mark{margin-bottom:22px}.auth-card h1{margin:5px 0 10px;font-size:clamp(2rem,7vw,3rem);line-height:1.08}.auth-card>p:not(.eyebrow){color:var(--muted);margin:0}.auth-account{overflow-wrap:anywhere;font-weight:800;color:var(--ink)!important;margin-top:12px!important}.auth-actions{flex-wrap:wrap;gap:10px;margin-top:24px;display:flex}.auth-session{border:1px solid var(--line);background:#ffffffbd;border-radius:10px;align-items:center;gap:9px;max-width:min(100%,360px);padding:5px 6px 5px 11px;display:inline-flex}.auth-session span{min-width:0;color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:.82rem;font-weight:800;overflow:hidden}.app-shell{grid-template-columns:minmax(260px,320px) minmax(0,1fr);max-width:100%;min-height:100vh;display:grid}.sidebar{border-right:1px solid var(--line);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:#ffffffb8;flex-direction:column;gap:18px;min-width:0;padding:28px 22px;display:flex}.brand{align-items:center;gap:12px;padding-bottom:8px;display:flex}.mode-switcher{gap:8px;min-width:0;display:grid}.mode-button{border:1px solid var(--line);width:100%;min-width:0;color:var(--ink);text-align:left;background:#ffffff9e;border-radius:8px;gap:3px;padding:11px 12px;display:grid}.mode-button span{overflow-wrap:anywhere;min-width:0;font-weight:800}.mode-button small{min-width:0;color:var(--muted);overflow-wrap:anywhere;font-size:.78rem;line-height:1.35}.mode-button.is-active{background:var(--accent-soft);color:var(--accent-strong);border-color:#006d7759}.mode-button.is-active small{color:var(--accent-strong)}#classicModeButton.is-active{color:#7c4d0e;background:#f5ead7;border-color:#b7791f6b}#classicModeButton.is-active small{color:#7c4d0e}#milestoneModeButton.is-active{background:var(--coral-soft);color:#9a3d25;border-color:#d9553252}#milestoneModeButton.is-active small{color:#9a3d25}#letterModeButton.is-active{color:#315b3a;background:#e5f0e7;border-color:#497a5457}#letterModeButton.is-active small{color:#315b3a}.brand-mark{background:var(--ink);color:#fff;border-radius:8px;place-items:center;width:46px;height:46px;font-weight:800;display:grid}.brand h1,.topbar h2,.dialog-head h3,.category-head h3{margin:0}.brand h1{font-size:1.2rem}.brand p,.eyebrow,.stats-strip p,.item-meta,.detail-label,#formMessage,.empty-note{color:var(--muted)}.brand p,.stats-strip p,#formMessage,.empty-note{margin:0}.eyebrow,.panel-title{color:var(--muted);letter-spacing:0;text-transform:uppercase;margin:0 0 5px;font-size:.76rem;font-weight:700}.workspace{min-width:0;max-width:100%;padding:30px clamp(18px,4vw,46px) 48px}.topbar{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:16px 18px;margin-bottom:18px;display:flex}.topbar>div:first-child{flex:340px;min-width:0}.topbar h2{overflow-wrap:anywhere;text-wrap:balance;font-size:clamp(1.75rem,4vw,2.75rem);font-weight:800;line-height:1.12}.topbar h2 span{display:block}.topbar h2.is-split-title{max-width:11ch;font-size:clamp(2.35rem,6.2vw,4.55rem);line-height:.98}.view-subtitle{max-width:720px;color:var(--muted);text-wrap:pretty;margin:9px 0 0}.header-actions{flex-wrap:wrap;flex:none;justify-content:flex-end;align-items:center;gap:10px;display:flex}.export-actions{gap:8px;display:inline-flex}.export-actions select{width:auto;min-width:132px}.field{gap:7px;display:grid}.favorite-toggle{align-items:center;gap:9px;width:fit-content;font-weight:800;display:inline-flex}.favorite-toggle input{width:18px;min-height:18px;accent-color:var(--gold)}.field span{font-size:.84rem;font-weight:800}.compact-field{min-width:min(260px,100%)}input,select,textarea{border:1px solid var(--line);width:100%;min-height:42px;color:var(--ink);background:#fff;border-radius:8px;outline:none;padding:10px 12px;transition:border-color .18s,box-shadow .18s,background .18s}textarea{resize:vertical;min-height:104px}input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px #006d7726}.primary-button,.ghost-button,.icon-button,.upload-button,.filter-chip,.category-link,.tag-chip,.form-shortcuts button{border:1px solid #0000;border-radius:8px;justify-content:center;align-items:center;gap:8px;min-height:40px;padding:9px 14px;font-weight:700;text-decoration:none;display:inline-flex}.primary-button{background:var(--accent);color:#fff;box-shadow:0 12px 28px #006d772e}.primary-button:hover{background:var(--accent-strong)}.ghost-button{border-color:var(--line-strong);color:var(--ink);background:#ffffffb3}.ghost-button:hover{background:#fff}.ghost-button.danger{color:#a93c22;border-color:#d9553273}.ghost-button.progress{color:var(--accent-strong);border-color:#006d774d}.ghost-button.compact{min-height:36px;padding:7px 12px}.icon-button{border-color:var(--line);width:40px;color:var(--muted);background:#fff;padding:0}.upload-button{background:var(--ink);color:#fff}.upload-button input{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.filter-panel{gap:8px;padding-top:2px;display:grid}.filter-drawer,.backup-panel{gap:10px;display:grid}.filter-drawer summary,.backup-panel summary{border:1px solid var(--line-strong);min-height:40px;color:var(--ink);cursor:pointer;background:#ffffffb8;border-radius:8px;justify-content:space-between;align-items:center;padding:9px 12px;font-weight:800;list-style:none;display:flex}.filter-drawer summary::-webkit-details-marker{display:none}.backup-panel summary::-webkit-details-marker{display:none}.filter-drawer summary:after,.backup-panel summary:after{content:"+";color:var(--muted);font-weight:800}.filter-drawer[open] summary:after,.backup-panel[open] summary:after{content:"-"}.filter-fields{gap:16px;padding-top:12px;display:grid}.backup-actions{gap:8px;padding-top:10px;display:grid}.backup-actions button{width:100%}.backup-note{color:var(--muted);margin:0;font-size:.76rem;line-height:1.45}.form-hint{color:var(--muted);max-width:36rem;margin:.35rem 0 0;font-size:.78rem;line-height:1.45}.backup-actions input{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.type-tabs,.form-shortcuts{flex-wrap:wrap;gap:8px;display:flex}.chip-list{grid-template-columns:repeat(auto-fit,minmax(92px,1fr));gap:8px;display:grid}.type-tabs{margin-bottom:18px}.view-controls{justify-content:space-between;align-items:end;gap:12px;margin-bottom:14px;display:flex}.view-controls>#startSelectionButton{margin-left:auto}.segmented-control{border:1px solid var(--line-strong);background:#ffffffb3;border-radius:8px;display:inline-flex;overflow:hidden}.segmented-control button{border:0;border-left:1px solid var(--line);min-height:42px;color:var(--muted);background:0 0;padding:8px 14px;font-weight:800}.segmented-control button:first-child{border-left:0}.segmented-control button.is-active{background:var(--ink);color:#fff}.bulk-bar{background:#d8eeedad;border:1px solid #006d7742;border-radius:8px;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;padding:10px;display:flex}.bulk-bar>div{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}button:disabled{cursor:not-allowed;opacity:.5}.filter-chip{border-color:var(--line);min-width:0;min-height:36px;color:var(--ink);background:#ffffffc7;justify-content:space-between;padding:7px 10px}.chip-list .filter-chip{width:100%}.chip-list .filter-chip.is-kid,.chip-list .filter-chip.is-classic{grid-column:1/-1}.filter-chip span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.filter-chip strong,.category-link strong{background:var(--panel-soft);min-width:24px;height:24px;color:var(--muted);border-radius:999px;flex:none;place-items:center;font-size:.78rem;display:grid}.filter-chip.is-active,.category-link.is-active{background:var(--accent-soft);color:var(--accent-strong);border-color:#006d7759}.filter-chip.is-kid,.tag-chip.is-kid,.form-shortcuts button[data-tag-shortcut=Kaia\/Yuna],.category-link.is-kid.is-active{background:var(--coral-soft);color:#9a3d25;border-color:#d9553247}.category-link.is-kid.is-active strong{color:#9a3d25;background:#fff9}.filter-chip.is-classic,.tag-chip.is-classic,.form-shortcuts button[data-tag-shortcut=經典電影\/書籍]{color:#7c4d0e;background:#f5ead7;border-color:#b7791f57}.filter-chip.is-source,.tag-chip.is-source{color:#31457f;background:#eef2fb;border-color:#3f5aa93d}body[data-view=classic] .type-tabs .filter-chip.is-active{color:#7c4d0e;background:#f5ead7;border-color:#b7791f6b}.category-list{gap:7px;min-width:0;display:grid}.category-subtitle{color:var(--muted);letter-spacing:0;margin:8px 0 1px;font-size:.72rem;font-weight:800}.category-link{border-color:var(--line);width:100%;min-width:0;min-height:38px;color:var(--ink);text-align:left;background:#ffffffa3;justify-content:space-between;align-items:center;padding:9px 10px}.category-link span{overflow-wrap:anywhere;flex:auto;min-width:0;line-height:1.26}.stats-strip{border:1px solid var(--line);background:var(--line);border-radius:8px;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;margin-bottom:24px;display:grid;overflow:hidden;box-shadow:0 8px 24px #1720330d}.stats-strip div{background:#ffffffdb;min-width:0;padding:16px 18px}.stats-strip .stat-button{min-width:0;color:var(--ink);text-align:left;background:#ffffffdb;border:0;border-radius:0;padding:16px 18px}.stats-strip .stat-button:hover,.stats-strip .stat-button:focus-visible,.stats-strip .stat-button.is-active{background:var(--accent-soft);color:var(--accent-strong)}.stats-strip span{font-size:1.58rem;font-weight:800;display:block}.category-sections{gap:28px;display:grid}.category-section{gap:14px;display:grid}.classic-overview{grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);align-items:start;gap:14px;margin-top:4px;display:grid}.overview-panel{background:#ffffffc7;border:1px solid #d8e0e7f2;border-radius:8px;align-content:start;gap:12px;padding:14px;display:grid;box-shadow:0 8px 22px #1720330d}.overview-head{justify-content:space-between;align-items:end;gap:12px;display:flex}summary.overview-head{cursor:pointer;list-style:none}summary.overview-head::-webkit-details-marker{display:none}.collapsible-overview summary.overview-head:after{border:1px solid var(--line);width:28px;height:28px;color:var(--muted);content:"+";background:#ffffffb8;border-radius:999px;flex:none;place-items:center;font-weight:800;display:grid}.collapsible-overview[open] summary.overview-head:after{content:"-"}.collapsible-overview:not([open]) .source-progress-grid,.collapsible-overview:not([open]) .merged-source-list{display:none}.collapsible-overview summary.overview-head>span{margin-left:auto}.overview-head h3{margin:0;font-size:1rem}.overview-head>span{color:var(--muted);flex:none;font-size:.82rem;font-weight:800}.source-progress-grid,.merged-source-list{gap:8px;display:grid}.source-progress-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.source-progress-card{border:1px solid var(--line);min-width:0;color:var(--ink);text-align:left;background:#fff;border-radius:8px;gap:8px;padding:10px;display:grid}.source-progress-head{justify-content:space-between;align-items:flex-start;gap:10px;display:flex}.source-progress-head strong{overflow-wrap:anywhere;min-width:0;font-size:.88rem;line-height:1.25}.source-progress-head em{color:var(--accent-strong);flex:none;font-style:normal;font-weight:800}.source-progress-bar{background:var(--panel-soft);border-radius:999px;height:8px;display:block;overflow:hidden}.source-progress-bar span{border-radius:inherit;background:var(--accent);height:100%;display:block}.source-progress-card small{color:var(--muted);font-weight:800}.merged-source-list{max-height:360px;overflow:auto}.merged-source-row{border:1px solid var(--line);background:#fff;border-radius:8px;gap:6px;padding:10px;display:grid}.merged-source-row div{flex-wrap:wrap;align-items:baseline;gap:6px 10px;display:flex}.merged-source-row strong{overflow-wrap:anywhere}.merged-source-row span,.merged-source-row p{color:var(--muted);font-size:.84rem}.merged-source-row p{color:#31457f;overflow-wrap:anywhere;margin:0;font-weight:800}.category-head{border-bottom:1px solid var(--line);justify-content:space-between;align-items:end;gap:14px;padding-bottom:10px;display:flex}.category-head h3{font-size:1.22rem}.category-head>span{border:1px solid var(--line);color:var(--muted);background:#ffffffad;border-radius:999px;flex:none;padding:5px 10px;font-size:.84rem;font-weight:800}.items-grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:18px;display:grid}.family-entry-grid{grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:18px;display:grid}.items-list{gap:10px;display:grid}.item-card{background:var(--panel);border:1px solid #d8e0e7f2;border-radius:8px;transition:transform .18s,box-shadow .18s;display:grid;overflow:hidden;box-shadow:0 10px 28px #17203312}.item-card:hover{transform:translateY(-2px);box-shadow:0 16px 34px #1720331a}.item-card.is-reference{border-color:#b7791f3d}.family-entry-card{background:var(--panel);border:1px solid #d8e0e7f2;border-radius:8px;gap:12px;padding:16px;display:grid;box-shadow:0 10px 28px #17203312}.entry-card-head{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.family-entry-card h3,.family-entry-row h3{overflow-wrap:anywhere;margin:0;font-size:1.08rem;line-height:1.3}.person-pill{background:var(--accent-soft);min-height:28px;color:var(--accent-strong);border-radius:999px;flex:none;align-items:center;padding:4px 10px;font-size:.78rem;font-weight:800;display:inline-flex}.entry-meta-line{color:var(--muted);font-size:.86rem;font-weight:800}.entry-body{min-height:4.5em;color:var(--ink);overflow-wrap:anywhere;white-space:pre-wrap;-webkit-line-clamp:4;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.entry-body.is-expanded{-webkit-line-clamp:unset;min-height:0;display:block;overflow:visible}.cover{aspect-ratio:16/10;background:linear-gradient(135deg,#ffffffa6,#dce5ec8c),#dce5ec;position:relative;overflow:hidden}.cover img{object-fit:contain;background:#f7fafc;width:100%;height:100%}.cover-fallback{height:100%;color:var(--ink);place-items:center;font-size:2.4rem;font-weight:800;display:grid}.cover-fallback.tone-0{background:linear-gradient(135deg,#006d7738,#0000 44%),linear-gradient(315deg,#d955322e,#0000 46%),#e8eef2}.cover-fallback.tone-1{background:linear-gradient(135deg,#3f5aa92e,#0000 44%),linear-gradient(315deg,#497a5429,#0000 46%),#edf0f6}.cover-fallback.tone-2{background:linear-gradient(135deg,#b7791f33,#0000 44%),linear-gradient(315deg,#006d7729,#0000 46%),#f0eee7}.cover-fallback.tone-3{background:linear-gradient(135deg,#d9553229,#0000 44%),linear-gradient(315deg,#3f5aa929,#0000 46%),#f2ecec}.cover-fallback.tone-4{background:linear-gradient(135deg,#497a542e,#0000 44%),linear-gradient(315deg,#b7791f29,#0000 46%),#ecf2ee}.type-pill,.rating-pill{border-radius:999px;align-items:center;padding:5px 9px;font-size:.76rem;font-weight:800;display:inline-flex}.type-pill{color:var(--ink);background:#ffffffeb;position:absolute;top:12px;left:12px}.select-box{color:var(--ink);background:#ffffffeb;border-radius:999px;align-items:center;gap:6px;padding:5px 9px;font-size:.76rem;font-weight:800;display:inline-flex;position:absolute;top:12px;right:12px}.select-box input,.row-select input{width:16px;min-height:16px;accent-color:var(--accent);margin:0}.rating-pill{color:#7c4d0e;white-space:nowrap;background:#b7791f24}.item-body{gap:11px;padding:15px;display:grid}.item-title-row{justify-content:space-between;align-items:flex-start;gap:10px;display:flex}.item-card h3{overflow-wrap:anywhere;margin:0;font-size:1.08rem;line-height:1.28}.item-meta{min-height:20px;font-size:.9rem}.tag-list{flex-wrap:wrap;gap:6px;display:flex}.tag-chip{border-color:var(--line);max-width:100%;min-height:28px;color:var(--muted);text-overflow:ellipsis;white-space:nowrap;background:#fff;padding:3px 8px;font-size:.76rem;overflow:hidden}.tag-chip:hover{border-color:var(--accent);color:var(--accent-strong)}.card-actions{flex-wrap:wrap;gap:8px;padding-top:2px;display:flex}.detail-panel{border-top:1px solid var(--line);gap:12px;margin-top:4px;padding-top:13px;display:grid}.detail-panel[hidden]{display:none}.detail-block{gap:4px;display:grid}.detail-label{font-size:.76rem;font-weight:800}.detail-text{overflow-wrap:anywhere;white-space:pre-wrap;margin:0}.source-links{flex-wrap:wrap;gap:8px;display:flex}.source-links a{color:var(--accent-strong);font-size:.84rem;font-weight:800}.item-list-row{background:var(--panel);border:1px solid #d8e0e7f2;border-radius:8px;grid-template-columns:auto minmax(72px,86px) minmax(0,1fr) auto;align-items:center;gap:14px;padding:10px;display:grid;box-shadow:0 8px 22px #1720330d}.family-entry-row{background:var(--panel);border:1px solid #d8e0e7f2;border-radius:8px;grid-template-columns:minmax(110px,150px) minmax(0,1fr) auto;align-items:start;gap:14px;padding:12px;display:grid;box-shadow:0 8px 22px #1720330d}.entry-date-box{background:var(--panel-soft);border-radius:8px;gap:4px;padding:10px;display:grid}.entry-date-box strong{font-size:.88rem}.entry-date-box span{color:var(--accent-strong);font-size:.78rem;font-weight:800}.item-list-row.is-reference{border-color:#b7791f3d}.item-list-row:not(.is-reference){grid-template-columns:minmax(72px,86px) minmax(0,1fr) auto}.row-select{color:var(--muted);align-items:center;gap:6px;font-size:.76rem;font-weight:800;display:inline-flex}.list-cover{aspect-ratio:2/3;background:linear-gradient(135deg,#ffffffb8,#dce5ec94),#dce5ec;border-radius:8px;display:grid;overflow:hidden}.list-cover img,.list-cover .cover-fallback{width:100%;height:100%}.list-cover img{object-fit:contain;background:#f7fafc}.list-cover .cover-fallback{text-align:center;padding:8px;font-size:1.05rem;line-height:1.1}.list-main{gap:7px;min-width:0;display:grid}.source-line{color:#31457f;font-size:.84rem;font-weight:800}.row-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;max-width:260px;display:flex}.empty-state{border:1px dashed var(--line-strong);text-align:center;background:#fff9;border-radius:8px;place-items:center;min-height:320px;display:grid}.empty-state h3{margin:0 0 6px}.empty-state p{color:var(--muted);margin:0}dialog{width:min(980px,100vw - 28px);max-height:calc(100vh - 28px);box-shadow:var(--shadow);border:0;border-radius:8px;padding:0;overflow:auto}dialog::backdrop{background:#0f172a80}#itemForm{gap:18px;padding:22px;display:grid}.dialog-head,.dialog-actions{justify-content:space-between;align-items:center;gap:14px;display:flex}.dialog-actions{border-top:1px solid var(--line);padding-top:16px}.dialog-actions>div{flex-wrap:wrap;justify-content:flex-end;gap:10px;display:flex}.form-layout{grid-template-columns:minmax(180px,240px) minmax(0,1fr);gap:22px;display:grid}.cover-editor{align-content:start;gap:10px;display:grid}.cover-url-field{grid-column:1/-1}.image-preview{aspect-ratio:4/5;border:1px solid var(--line);width:100%;color:var(--muted);background:#e7edf3;border-radius:8px;place-items:center;font-weight:800;display:grid;overflow:hidden}.image-preview img{object-fit:cover;width:100%;height:100%}.form-fields{gap:14px;min-width:0;display:grid}.source-ref-editor{border:1px solid var(--line);background:#eef4f48c;border-radius:8px;gap:8px;padding:10px;display:grid}.source-ref-head{justify-content:space-between;align-items:center;gap:10px;display:flex}.source-ref-head>span{color:var(--ink);font-size:.84rem;font-weight:800}.source-ref-rows{gap:8px;display:grid}.source-ref-row{grid-template-columns:minmax(140px,1fr) minmax(90px,.45fr) minmax(150px,1fr) minmax(170px,1fr) auto;align-items:end;gap:8px;display:grid}.form-section{border:1px solid var(--line);background:#eef4f473;border-radius:8px}.form-section>summary{cursor:pointer;padding:11px 13px;font-weight:800}.form-section-body{border-top:1px solid var(--line);gap:14px;padding:14px;display:grid}.action-menu{position:relative}.action-menu>summary{border:1px solid var(--line-strong);cursor:pointer;background:#fff;border-radius:8px;place-items:center;width:38px;min-height:36px;font-size:1.1rem;font-weight:800;list-style:none;display:grid}.action-menu>summary::-webkit-details-marker{display:none}.action-menu>div{z-index:20;border:1px solid var(--line);min-width:130px;box-shadow:var(--shadow);background:#fff;border-radius:8px;margin-top:6px;display:grid;position:absolute;right:0;overflow:hidden}.action-menu button{border:0;border-bottom:1px solid var(--line);text-align:left;background:#fff;min-height:40px;padding:8px 12px}.action-menu button:last-child{border-bottom:0}.action-menu button:hover{background:var(--panel-soft)}.action-menu button.danger,.action-menu .danger{color:#a93c22}.pagination{justify-content:center;align-items:center;gap:16px;margin-top:24px;display:flex}.pagination span{min-width:180px;color:var(--muted);text-align:center;font-weight:800}.trash-dialog-content{gap:16px;padding:22px;display:grid}.trash-list{gap:10px;display:grid}.trash-row{border:1px solid var(--line);border-radius:8px;justify-content:space-between;align-items:center;gap:16px;padding:12px;display:flex}.trash-row>div:first-child{gap:3px;display:grid}.trash-row span{color:var(--muted);font-size:.82rem}.trash-row>div:last-child{gap:8px;display:flex}.compact-empty{min-height:190px}#itemsGrid[aria-busy=true]{opacity:.55;pointer-events:none}.source-ref-row .field span{font-size:.74rem}.source-ref-row input{min-height:38px;padding:8px 10px}.source-ref-row .icon-button{width:38px;min-height:38px}.entry-form-grid{gap:14px;display:grid}.two-column{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.form-shortcuts button{border-color:var(--line);min-height:32px;color:var(--muted);background:#fff;padding:5px 9px;font-size:.8rem}.toast{background:var(--ink);color:#fff;max-width:min(420px,100vw - 40px);box-shadow:var(--shadow);border-radius:8px;align-items:center;gap:12px;padding:12px 14px;display:flex;position:fixed;bottom:20px;right:20px}.toast span{min-width:0}.toast button{color:#fff;background:#ffffff1a;border:1px solid #fff6;border-radius:8px;padding:6px 10px;font-weight:800}@media (width<=900px){.app-shell{grid-template-columns:minmax(0,1fr)}.sidebar{border-right:0;border-bottom:1px solid var(--line);gap:14px;width:100%}.mode-switcher,.category-list{grid-template-columns:repeat(2,minmax(0,1fr))}.category-subtitle{grid-column:1/-1}.category-link{align-items:flex-start}.category-link span{text-overflow:clip;white-space:normal;line-height:1.28;overflow:visible}.topbar,.dialog-head,.dialog-actions{flex-direction:column;justify-content:flex-start;align-items:stretch}.topbar>div:first-child{flex:0 auto}.header-actions,.topbar .primary-button,.topbar .ghost-button,.dialog-actions button,.export-actions,.export-actions select,.export-actions button{width:100%}.export-actions{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.header-actions{justify-content:stretch}.view-controls,.bulk-bar{flex-direction:column;align-items:stretch}.segmented-control,.bulk-bar>div{width:100%}.segmented-control button,.bulk-bar button{flex:auto}.stats-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.classic-overview,.form-layout,.two-column,.source-ref-row{grid-template-columns:1fr}.cover-editor{grid-template-columns:minmax(130px,180px) minmax(0,1fr)}.image-preview{grid-row:span 2}}@media (width<=1180px){body[data-view=milestones] .topbar,body[data-view=letters] .topbar{flex-direction:column;justify-content:flex-start;align-items:stretch}body[data-view=milestones] .topbar>div:first-child,body[data-view=letters] .topbar>div:first-child{flex:0 auto}body[data-view=milestones] .header-actions,body[data-view=letters] .header-actions{justify-content:flex-start}body[data-view=milestones] .topbar h2.is-split-title,body[data-view=letters] .topbar h2.is-split-title{max-width:min(100%,13ch)}.classic-overview{grid-template-columns:1fr}}@media (width<=560px){.workspace,.sidebar{padding-left:16px;padding-right:16px}.sidebar{gap:12px;padding-top:20px;padding-bottom:20px}.mode-button{padding:10px}.mode-button small{font-size:.74rem}.category-link{min-height:36px;padding:8px 9px}.topbar h2,.topbar h2.is-split-title{line-break:anywhere;word-break:break-word;max-width:100%;font-size:clamp(1.75rem,9.4vw,2.35rem);line-height:1.08}.header-actions{justify-content:stretch}.header-actions>*,.export-actions{flex:100%}.items-grid,.stats-strip,.mode-switcher,.category-list{grid-template-columns:1fr}.filter-chip span{text-overflow:clip;white-space:normal;overflow:visible}.type-tabs{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.type-tabs .filter-chip{width:100%}.category-link{padding:8px 9px}.category-link span{word-break:break-word}.category-list{overscroll-behavior:contain;max-height:430px;padding-right:2px;overflow-y:auto}.cover-editor{grid-template-columns:1fr}.item-list-row{grid-template-columns:auto minmax(58px,74px) minmax(0,1fr)}.family-entry-row{grid-template-columns:1fr}.item-list-row:not(.is-reference){grid-template-columns:minmax(58px,74px) minmax(0,1fr)}.item-list-row .row-actions,.family-entry-row .row-actions{grid-column:1/-1;justify-content:flex-start;max-width:none}.chip-list{grid-template-columns:1fr}.category-head{flex-direction:column;align-items:flex-start}.category-link{justify-content:flex-start}.category-link span{flex:auto}.category-link strong{margin-left:8px}}
