:root{--blue:#0866ff;--deep:#0052e8;--soft:#edf4ff;--ink:#14233b;--sub:#536176;--muted:#66748a;--line:#e7edf5;--bg:#f4f7fc;--white:#fff;--danger:#b42332;--radius:20px}*{box-sizing:border-box}body{margin:0;background:var(--bg);font:16px/1.6 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink)}button,input,textarea,select{font:inherit}button,a,input,textarea,select{ -webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;background:transparent;color:inherit;min-height:44px}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #f0b941;outline-offset:3px}input:focus,textarea:focus,select:focus{outline:2px solid var(--blue);outline-offset:2px}a{color:var(--blue)}h1,h2,h3,p{margin:0}h1{font-size:28px;line-height:1.4}h2{font-size:24px;line-height:1.5}h3{font-size:18px;line-height:1.5}.app{max-width:1080px;margin:auto;min-height:100dvh}header{background:linear-gradient(120deg,var(--blue),var(--deep));color:white;padding:32px 32px 44px}.top,.hero-bottom,.row,.dialog-head,.section-head,.form-actions{display:flex;align-items:center;justify-content:space-between;gap:16px}.top{margin-bottom:16px}.version{font-size:13px;color:#e0eaff;display:block;margin-bottom:8px}.add{border-radius:16px;background:white;color:var(--blue);font-size:28px;width:52px;height:52px;line-height:1}.hero-bottom p{color:#e0eaff;font-size:14px}.mode-switch{display:flex;flex-shrink:0;background:rgba(0,31,112,.24);border-radius:12px;padding:4px;gap:4px}.mode-switch button{padding:0 12px;font-size:14px;color:white;white-space:nowrap}.mode-switch button.active{background:white;color:var(--deep);border-radius:8px}main{position:relative;margin-top:-24px;background:var(--bg);border-radius:26px 26px 0 0;padding:28px 32px 120px;min-height:60vh}.desktop{display:none}.toolbar{display:flex;gap:12px;margin:16px 0}.search{display:flex;align-items:center;gap:8px;background:white;border:1px solid var(--line);border-radius:14px;padding:0 16px;flex:1;min-width:0}.search input{border:0;background:transparent;width:100%;height:48px;min-width:0;outline-offset:0}.chips{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0 24px}.chip{border-radius:12px;background:white;color:var(--sub);border:1px solid var(--line);padding:0 16px;font-size:14px}.chip.active{background:var(--soft);border-color:#bfd6ff;color:var(--deep);font-weight:600}.filter{border:1px solid var(--line);padding:0 16px;border-radius:14px;background:white;white-space:nowrap;font-size:14px}.filter.active{background:var(--soft);color:var(--deep)}.notice{padding:16px 20px;border-radius:14px;background:var(--soft);color:var(--sub);font-size:14px;margin-bottom:24px}.notice strong{color:var(--deep);font-weight:600}.notice p{margin-top:4px}.section-head{margin:20px 0 12px}.meta,.hint,.count{font-size:13px;color:var(--muted)}.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.card{border-radius:var(--radius);background:white;border:1px solid var(--line);overflow:hidden;text-align:left;width:100%;padding:0;display:flex;flex-direction:column;transition:border-color .15s}.card:hover{border-color:#9bbfff}.card-image{width:100%;aspect-ratio:2/1;object-fit:cover;background:#e8edf5}.card-fallback{height:100px;display:flex;align-items:center;justify-content:space-between;padding:24px;background:var(--soft);color:var(--deep);font-size:14px}.card-fallback .large-icon{width:32px;height:32px;opacity:.7}.card-body{padding:20px;flex:1;display:flex;flex-direction:column;gap:12px;width:100%}.card h3{font-size:16px;overflow-wrap:anywhere}.card .row{gap:8px;align-items:flex-start}.pill{background:var(--soft);color:var(--deep);border-radius:8px;padding:3px 8px;font-size:12px;display:inline-block}.seen{font-size:12px;white-space:nowrap;color:var(--muted)}.seen.unread{color:var(--deep)}.card-info{font-size:13px;color:var(--muted);margin-top:auto}.empty{text-align:center;padding:56px 16px;background:white;border-radius:20px}.empty svg{width:32px;height:32px;color:var(--blue);margin-bottom:16px}.empty p{color:var(--muted);margin:12px 0 24px;font-size:14px}.primary,.secondary,.danger{border-radius:12px;padding:10px 20px;display:inline-flex;justify-content:center;align-items:center;gap:8px;font-size:16px;text-decoration:none;min-height:48px}.primary{background:var(--blue);color:white}.secondary{background:white;border:1px solid #dbe3ef;color:var(--ink)}.danger{background:#fff0f1;color:var(--danger)}.wide{width:100%}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,1080px);display:flex;z-index:5;background:rgba(255,255,255,.97);border-top:1px solid var(--line);padding:8px 16px calc(8px + env(safe-area-inset-bottom));gap:8px}.bottom-nav button{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--muted);font-size:12px;padding:4px;gap:4px}.bottom-nav button.active{color:var(--blue);background:var(--soft);border-radius:12px}svg{width:20px;height:20px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.back{display:flex;align-items:center;gap:8px;margin-bottom:16px;color:var(--sub);padding:0 4px}.detail{background:white;border:1px solid var(--line);border-radius:20px;overflow:hidden}.detail-cover{width:100%;max-height:320px;object-fit:cover;display:block}.detail-body{padding:28px}.detail h2{margin:12px 0 16px;overflow-wrap:anywhere}.detail-meta{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px;color:var(--muted);font-size:13px}.reading{border-top:1px solid var(--line);padding:24px 0}.reading h3{margin-bottom:12px}.reading p{font-size:14px;color:var(--sub)}.detail-actions{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:24px}.detail-actions>*{flex:1}.url{overflow-wrap:anywhere;font-size:13px;color:var(--sub)}details{border-top:1px solid var(--line);padding-top:16px;margin-top:20px}summary{cursor:pointer;min-height:44px;font-size:14px;color:var(--sub)}pre{white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.7 inherit;color:var(--muted)}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:white;border-radius:20px;border:1px solid var(--line);margin:20px 0;padding:24px 0}.stat{text-align:center}.stat+.stat{border-left:1px solid var(--line)}.stat strong{display:block;font-size:28px}.stat span{font-size:13px;color:var(--muted)}.panel{background:white;border:1px solid var(--line);border-radius:20px;padding:24px;margin:20px 0}.panel h3{margin-bottom:12px}.panel p{font-size:14px;color:var(--sub);margin-bottom:16px}.backup-actions{display:flex;gap:12px;flex-wrap:wrap}.backup-actions label{margin:0;cursor:pointer}.category-list{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.category-list span{padding:4px 12px;border-radius:8px;background:var(--bg);font-size:14px}.new-category{display:flex;gap:8px}.new-category input{min-width:0;flex:1}.error{color:var(--danger);font-size:14px;margin:12px 0;min-height:0}.required{font-size:12px;color:var(--muted);font-weight:400}dialog{border:0;border-radius:24px;padding:28px;max-width:560px;width:calc(100% - 32px);max-height:calc(100dvh - 32px);overflow:auto;color:var(--ink);box-shadow:0 24px 100px #14233b40}dialog::backdrop{background:#14233b66}.dialog-head{margin-bottom:24px}.dialog-head h2{font-size:24px}.icon-button{width:44px;flex-shrink:0;font-size:28px;color:var(--sub)}label{display:block;font-weight:600;font-size:14px;margin:20px 0 8px}input,textarea,select{width:100%;border:1px solid #cdd7e5;border-radius:12px;padding:12px;background:white;color:var(--ink)}textarea{resize:vertical}select{height:48px}.hint{margin-top:12px}.form-actions{justify-content:flex-end;margin-top:24px}.form-actions>*{flex:1}.form-actions .secondary{flex:0 1 auto}.hidden,[hidden]{display:none!important}#toast{position:fixed;left:50%;bottom:112px;transform:translateX(-50%);max-width:calc(100% - 32px);padding:12px 20px;background:var(--ink);color:white;border-radius:12px;box-shadow:0 4px 24px #14233b26;z-index:20;font-size:14px;pointer-events:none;opacity:0}#toast.show{opacity:1}.storage-error{background:#fff0f1;color:var(--danger)}.demo-tag{font-size:12px;color:var(--deep)}@media(min-width:1200px){.desktop{display:flex;position:fixed;left:0;top:0;width:248px;height:100vh;padding:40px 24px;background:white;border-right:1px solid var(--line);flex-direction:column}.brand{font-size:28px;font-weight:700;color:var(--deep)}.brand span{display:block;font-size:13px;font-weight:400;color:var(--muted);margin-top:8px}.desktop nav{margin-top:44px;display:grid;gap:12px}.desktop nav button{display:flex;align-items:center;gap:12px;text-align:left;padding:12px 20px;border-radius:12px}.desktop nav button.active{background:var(--soft);color:var(--blue)}.side-note{margin-top:auto;color:var(--muted);font-size:13px}.app{margin-left:248px;max-width:none}.bottom-nav{display:none}main{padding-bottom:60px}.app header,.app main{padding-left:max(32px,calc((100vw - 1250px)/2));padding-right:max(32px,calc((100vw - 1250px)/2))}}@media(max-width:640px){header{padding:24px 20px 44px}.hero-bottom{align-items:flex-start;flex-direction:column;gap:16px}.mode-switch{width:100%}.mode-switch button{flex:1}main{padding:24px 20px 112px}.cards{grid-template-columns:1fr;gap:12px}.card{flex-direction:row;align-items:stretch}.card-image{width:104px;aspect-ratio:auto;object-fit:cover}.card-fallback{width:76px;height:auto;flex-shrink:0;padding:16px;justify-content:center}.card-fallback span{display:none}.card-fallback .large-icon{width:24px;height:24px}.card-body{padding:16px;gap:8px;min-width:0}.card .pill{font-size:12px}.toolbar{gap:8px}.filter{padding:0 12px}.detail-body{padding:20px}.detail h2{font-size:24px}.detail-actions{gap:8px}.detail-actions>*{flex:1 1 42%;padding:10px 12px}.detail-cover{max-height:220px}.panel{padding:20px}.backup-actions>*{flex:1}.stats{padding:20px 0}.stat strong{font-size:24px}.form-actions{gap:8px}dialog{padding:20px}.new-category{flex-wrap:wrap}.new-category input{flex-basis:160px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

.card-fallback{height:auto;aspect-ratio:2/1}.detail-page .mode-switch,.detail-page .add{display:none}.detail-page .top{margin-bottom:8px}@media(max-width:640px){.chips{flex-wrap:nowrap;overflow-x:auto;padding:4px 0;margin:12px 0 16px;scrollbar-width:thin}.chip{flex-shrink:0}.card-fallback{aspect-ratio:auto}.detail-page header{padding-bottom:40px}}

/* v0.2: thumb reach, bounded category shortcuts, and a searchable picker. */
.capture-fab{position:fixed;right:20px;bottom:calc(100px + env(safe-area-inset-bottom));width:56px;height:56px;padding:16px;border-radius:50%;background:var(--blue);color:white;box-shadow:0 6px 20px #0052e840;z-index:6;touch-action:none;user-select:none;cursor:grab}.capture-fab svg{width:24px;height:24px}.capture-fab.dragging{cursor:grabbing;box-shadow:0 10px 28px #0052e855}.category-shortcuts{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 20px}.category-shortcut,.category-more{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;max-width:100%;padding:0 16px;min-height:44px;border-radius:12px;font-size:14px;background:white;border:1px solid var(--line);color:var(--sub);overflow-wrap:anywhere}.category-shortcut.active{color:var(--deep);border-color:#bfd6ff;background:var(--soft);font-weight:600}.category-more{margin-left:auto;color:var(--deep)}.category-more svg{width:16px;height:16px}.category-picker{overflow:hidden}.picker-search{margin:0;font-weight:400}.category-options{margin-top:16px;max-height:min(440px,50dvh);overflow-y:auto;overscroll-behavior:contain}.category-option{width:100%;display:flex;align-items:center;gap:12px;padding:12px;border-radius:12px;text-align:left;min-height:56px}.category-option+.category-option{margin-top:4px}.category-option:hover{background:var(--bg)}.category-option.selected{background:var(--soft);color:var(--deep)}.category-name{flex:1;overflow-wrap:anywhere}.category-count{font-size:13px;color:var(--muted)}.selection-space{width:20px;flex-shrink:0}.category-empty{padding:24px 12px}.category-picker .dialog-head{margin-bottom:16px}.category-picker .dialog-head h2{font-size:20px}@media(min-width:1200px){.capture-fab{right:32px;bottom:32px}}@media(max-width:640px){.category-shortcuts{gap:8px}.category-shortcut,.category-more{padding:0 12px;max-width:calc(100% - 32px)}.category-more{margin-left:0}.category-picker{position:fixed;inset:auto 0 0;margin:0 auto;width:100%;max-width:560px;max-height:85dvh;padding:20px 20px calc(20px + env(safe-area-inset-bottom));border-radius:24px 24px 0 0}.category-options{max-height:50dvh}main{padding-bottom:164px}}

/* Category-first home: choose a type, then browse its contents. */
.category-home-list{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:20px;background:white;overflow:hidden}.category-row{display:flex;align-items:center;gap:16px;width:100%;padding:16px 20px;text-align:left;min-height:76px}.category-row+.category-row{border-top:1px solid var(--line)}.category-row:hover{background:var(--soft)}.folder-icon{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:12px;background:var(--soft);color:var(--blue);flex-shrink:0}.folder-name{flex:1;min-width:0;font-size:16px;font-weight:600;overflow-wrap:anywhere}.folder-count{font-size:13px;color:var(--muted);white-space:nowrap}.category-row>svg{width:16px;height:16px;color:var(--muted)}.category-home-list:empty{display:none}@media(max-width:640px){.category-row{padding:16px;gap:12px}} 

/* v0.3: compact statistics, pull-down overview, and centered capture action. */
header{padding:12px 20px 40px}.header-tools{display:flex;align-items:center;justify-content:space-between;min-height:44px;margin-bottom:12px}.header-tools h1{font-size:24px;min-width:0;overflow-wrap:anywhere}.settings-button{width:44px;height:44px;color:white;border-radius:12px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.settings-button svg{width:24px;height:24px}.collection-home .header-tools{justify-content:flex-end;margin-bottom:0}.header-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:0 0 4px}.header-stats>div{text-align:center}.header-stats strong{display:block;font-size:28px;line-height:1.5}.header-stats span{font-size:14px;color:#e0eaff}.overview-panel{height:0;overflow:hidden;transition:height .22s ease}.overview-dragging .overview-panel{transition:none}.overview-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:28px 0 16px}.overview-heading h2{font-size:18px}.overview-heading>span{font-size:12px;color:#e0eaff}.overview-rows{max-height:calc(48dvh - 88px);min-height:80px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-bottom:12px}.overview-row+.overview-row{margin-top:16px}.overview-row .row{font-size:14px}.overview-row strong{font-size:14px;font-weight:500;overflow-wrap:anywhere}.overview-row .row>span{white-space:nowrap;font-size:13px;color:#e0eaff}.reading-track{height:4px;border-radius:4px;background:#ffffff30;margin-top:8px;overflow:hidden}.reading-track>span{height:100%;display:block;background:white;border-radius:4px}main{margin-top:-24px;padding-top:24px}.collection-home main{background:white;padding-top:0}.sheet-handle{display:flex;align-items:center;justify-content:center;width:100%;height:44px;padding:0;touch-action:none;cursor:ns-resize;border-radius:24px 24px 0 0}.sheet-handle>span{width:36px;height:4px;background:#c6d0de;border-radius:4px}.collection-home .toolbar{margin-top:0}.collection-home .search{background:var(--bg)}.collection-home .section-head{margin-top:24px}.new-category-link{font-size:14px;display:flex;align-items:center;gap:4px;color:var(--blue);padding:0 0 0 8px;flex-shrink:0}.new-category-link svg{width:16px;height:16px}.demo-inline{display:inline-block;font-size:12px;font-weight:400;background:var(--soft);color:var(--deep);padding:2px 6px;border-radius:6px;margin-left:8px;vertical-align:middle}.bottom-nav{align-items:center;justify-content:space-around}.bottom-nav>button:not(.nav-add){flex:0 1 112px}.bottom-nav .nav-add{flex:0 0 56px;width:56px;height:56px;min-height:56px;background:var(--blue);color:white;border-radius:50%;padding:16px;box-shadow:0 4px 16px #0052e830;margin-top:-24px;margin-bottom:0;display:flex;align-items:center;justify-content:center}.nav-add svg{width:24px;height:24px}.backup-settings>p{font-size:14px;color:var(--sub);margin:12px 0 20px}.backup-settings>.hint{font-size:13px;margin-bottom:0}.test-settings .mode-switch{background:var(--bg);margin:12px 0}.test-settings .mode-switch button{color:var(--sub)}.test-settings .mode-switch button.active{background:var(--blue);color:white}#settingsDialog,#newCategoryDialog{max-width:520px}.collection-home .category-home-list{border:0;border-radius:0}.collection-home .category-row{padding-left:0;padding-right:0}.collection-home .category-row:first-child{border-top:0}.collection-home .category-row+.category-row{border-top:1px solid var(--line)}@media(min-width:1200px){.header-tools{padding-top:4px}.collection-home .header-stats{max-width:700px;margin:auto}.collection-home .overview-panel{max-width:800px;margin:auto}.collection-home #main{padding-top:0}.collection-home .sheet-handle{height:44px}}@media(max-width:640px){header{padding:12px 20px 40px}.detail-page header{padding-bottom:32px}.collection-home main{padding-top:0;padding-bottom:120px}.header-tools h1{font-size:24px}.header-stats strong{font-size:28px}.category-row{min-height:72px}.bottom-nav{padding-top:8px}.overview-heading{padding-top:24px}}

.statistics-page .header-tools{justify-content:flex-end;margin-bottom:0}

.card .row .seen:only-child{margin-left:auto}

/* Category maintenance keeps navigation and management as separate targets. */
.category-line{display:flex;align-items:center;gap:4px;min-width:0}.category-line+.category-line{border-top:1px solid var(--line)}.category-line .category-row{flex:1;min-width:0;width:auto;border-top:0!important}.category-menu-trigger{flex:0 0 44px;width:44px;height:44px;display:flex;align-items:center;justify-content:center;color:var(--muted);border-radius:12px}.category-menu-trigger:hover{background:var(--soft);color:var(--blue)}.category-menu-trigger svg{width:20px;height:20px;stroke-width:4}#deleteCategoryEntry{margin-top:16px}button:disabled{cursor:default;opacity:.5}#categoryManageInfo{margin-bottom:20px}#categoryDeleteInfo{font-size:16px;line-height:1.8;overflow-wrap:anywhere}#categoryDeleteDialog .form-actions{align-items:stretch}#categoryDeleteDialog .form-actions button{font-size:14px}

/* v0.5 reference-aligned light dashboard tokens, shared across all screens. */
:root{--blue:#4775ff;--deep:#315be0;--soft:#edf2ff;--ink:#18223d;--sub:#57617a;--muted:#74809b;--line:#edf0f7;--bg:#f4f7ff;--radius:20px}body{background:var(--bg)}header{background:linear-gradient(145deg,#eef5ff,#f8f9ff);color:var(--ink);padding-bottom:40px}.settings-button{color:var(--ink);background:#ffffffb8}.header-stats span{color:var(--muted)}.header-stats.dashboard-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding-top:4px;max-width:none;margin:0}.header-stats.dashboard-summary>section{text-align:left}.summary-card{background:#fff;border:1px solid #ffffff;border-radius:20px;padding:16px;min-width:0;box-shadow:0 4px 20px #526daa04}.summary-card h2{font-size:16px;margin-bottom:16px;font-weight:650}.donut{width:104px;height:104px;border-radius:50%;margin:0 auto 16px;display:grid;place-items:center}.donut>div{width:76px;height:76px;border-radius:50%;background:white;display:flex;flex-direction:column;align-items:center;justify-content:center}.donut strong{font-size:24px;line-height:1.3}.donut span{font-size:12px;color:var(--muted)}.chart-legend{display:grid;gap:8px}.legend-row{display:flex;align-items:center;gap:6px;min-width:0;font-size:14px}.legend-row i{width:8px;height:8px;border-radius:50%;flex-shrink:0}.legend-row>span{flex:1;min-width:0;overflow-wrap:anywhere;color:var(--sub);font-size:14px}.legend-row strong{font-size:14px;font-weight:600}.seen-bars{display:grid;gap:24px}.seen-bar-row .row{align-items:flex-start;gap:4px;font-size:14px;margin-bottom:8px}.seen-bar-row .row>span{min-width:0;overflow-wrap:anywhere}.seen-bar-row strong{font-size:16px;white-space:nowrap}.seen-bar-row small{font-size:12px;color:var(--muted);font-weight:400}.metric-track{height:5px;background:#edf0f7;border-radius:8px;overflow:hidden}.metric-track>span{display:block;height:100%;background:var(--blue);border-radius:8px}.chart-note{color:var(--muted);font-size:12px;line-height:1.6;margin-top:20px}.collection-home main{background:var(--bg)}.collection-home .search{background:white;border-color:white}.collection-home .category-home-list{background:white;border-radius:20px;border:1px solid white;padding:0 16px}.collection-home .category-row{min-height:76px}.category-line+.category-line{border-top-color:var(--line)}.overview-panel{padding:0 0}.detail-metrics-card{background:white;border-radius:20px;margin:16px 0 8px;padding:20px}.overview-heading{padding:0 0 20px}.overview-heading h2{font-size:18px}.overview-heading>span{color:var(--muted)}.overview-rows{max-height:calc(48dvh - 96px);color:var(--ink);padding-bottom:4px}.overview-row{padding-bottom:16px;border-bottom:1px solid var(--line)}.overview-row:last-child{border:0}.overview-row>strong{font-size:16px;color:var(--ink);font-weight:600}.category-metrics{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}.category-metrics>div{display:flex;flex-direction:column}.category-metrics span{font-size:13px;color:var(--muted)}.category-metrics b{font-size:24px;font-weight:650}.overview-row+.overview-row{margin-top:16px}.bottom-nav{background:#ffffffed}.nav-add{box-shadow:0 4px 16px #4775ff26!important}.primary{background:var(--blue)}.detail{border-color:white}.card{border-color:white;box-shadow:0 2px 12px #526daa04}.folder-icon{background:#edf2ff}.desktop{background:#fff}.side-note{font-size:12px}@media(min-width:700px){.header-stats.dashboard-summary{gap:20px}.summary-card{padding:24px}.distribution{display:grid;grid-template-columns:128px 1fr;column-gap:24px;align-content:start}.distribution h2{grid-column:1/-1}.distribution .donut{width:120px;height:120px;margin:8px 0}.distribution .donut>div{width:90px;height:90px}.chart-legend{align-content:start;padding-top:8px}.seen-bars{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}}@media(max-width:359px){header{padding-left:12px;padding-right:12px}.header-stats.dashboard-summary{gap:8px}.summary-card{padding:12px}.donut{width:92px;height:92px}.donut>div{width:68px;height:68px}.legend-row{font-size:14px}.seen-bars{gap:20px}} 

/* Approved home restoration v0.6. Dimensions are logical CSS px. */
:root{--bg:#f6f6f5;--ink:#20232b;--sub:#64666e;--muted:#6c7079;--line:#e7e7ea;--blue:#1769ff;--deep:#1760df;--soft:#eef3ff}body{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;background:var(--bg)}header{background:var(--bg);color:var(--ink)}.collection-home header{padding:28px 20px 40px}.collection-home .header-tools{align-items:flex-start;justify-content:space-between;margin-bottom:24px}.collection-home .header-tools h1{font-size:24px;line-height:32px;font-weight:600}.home-subtitle{display:block;margin-top:8px;font-size:14px;font-weight:400;line-height:20px;color:var(--sub)}.settings-button{background:transparent;min-width:44px}.header-stats.dashboard-summary{gap:12px}.summary-card{padding:16px;border:1px solid #e9e9ed;border-radius:20px;box-shadow:0 2px 10px #20232b03;min-height:180px}.summary-card h2{font-size:16px;line-height:24px;margin-bottom:16px;font-weight:600}.distribution{display:grid;grid-template-columns:56px minmax(0,1fr);gap:0 8px;align-content:start;align-items:center}.distribution h2{grid-column:1/-1}.distribution .donut{width:56px;height:56px;margin:0}.distribution .donut>div{width:40px;height:40px}.distribution .donut strong{font-size:16px;line-height:24px}.distribution .chart-legend{gap:8px;padding:0}.legend-row{gap:4px;line-height:20px;align-items:flex-start}.legend-row>span,.legend-row strong{font-size:12px;line-height:18px}.legend-row i{width:6px;height:6px;margin-top:6px}.seen-bars{display:grid;grid-template-columns:1fr;gap:16px}.seen-bar-row .row{font-size:14px;line-height:20px;gap:4px;margin-bottom:8px}.seen-bar-row strong{font-size:14px}.seen-bar-row small{font-size:12px}.seen-summary .chart-note{display:none}.metric-track{height:4px}.collection-home main{background:var(--bg);padding:0 20px 128px}.collection-home .section-head{margin:16px 0}.section-head h3{font-size:20px;line-height:28px;font-weight:600}.new-category-link{font-size:14px;font-weight:500}.collection-home .toolbar{margin:0 0 20px}.collection-home .search{background:#f1f1f2;border:1px solid var(--line);border-radius:16px}.search input{font-size:16px}.collection-home .category-home-list{padding:0;border:0;border-radius:0;display:flex;flex-direction:column;gap:16px;background:transparent}.collection-home .category-line{background:white;border:1px solid #ededf0;border-radius:20px;min-height:104px;padding:24px 12px 24px 20px;gap:8px;box-shadow:0 2px 10px #20232b03}.category-line+.category-line{border-top:1px solid #ededf0}.collection-home .category-row{padding:0;min-height:48px;gap:16px}.collection-home .folder-icon{width:48px;height:48px;background:none;border-radius:0;color:var(--blue)}.category-art{width:48px!important;height:48px!important;overflow:hidden;stroke:none;fill:none}.collection-home .folder-icon>svg:not(.category-art){width:24px;height:24px}.folder-name{font-size:16px;line-height:24px;font-weight:500}.folder-count{font-size:14px;line-height:20px;color:var(--sub);font-variant-numeric:tabular-nums}.category-menu-trigger{width:44px;height:44px;flex:0 0 44px}.category-menu-trigger svg{width:20px;height:20px}.category-row>svg{display:none}.bottom-nav{background:white;border-color:var(--line)}.bottom-nav>button.active{background:transparent;color:var(--blue)}.filled-icon{fill:currentColor;stroke:none}.nav-add{background:var(--blue)!important;box-shadow:none!important}.bottom-nav button:not(.nav-add) svg{width:24px;height:24px}.sheet-handle>span{background:#c9cbd0}.collection-home .sheet-handle{height:32px}.primary{background:var(--blue)}@media(min-width:700px){.header-stats.dashboard-summary{gap:20px}.summary-card{padding:24px}.distribution{grid-template-columns:88px minmax(0,1fr);column-gap:20px}.distribution .donut{width:88px;height:88px}.distribution .donut>div{width:64px;height:64px}.distribution .donut strong{font-size:24px}.legend-row>span,.legend-row strong{font-size:14px;line-height:20px}.seen-bars{grid-template-columns:1fr;gap:16px}.collection-home header,.collection-home main{padding-left:32px;padding-right:32px}}@media(max-width:359px){.collection-home header{padding-left:20px;padding-right:20px}.header-stats.dashboard-summary{grid-template-columns:1fr}.summary-card{min-height:0}.distribution{grid-template-columns:72px minmax(0,1fr);gap:0 16px}.distribution .donut{width:72px;height:72px}.distribution .donut>div{width:52px;height:52px}.legend-row>span,.legend-row strong{font-size:14px;line-height:20px}.collection-home .category-line{padding-left:16px;padding-right:8px}.collection-home .category-row{gap:12px}.folder-name{overflow-wrap:anywhere}}
@media(min-width:360px) and (max-width:699px){.summary-card{padding:12px}.distribution{grid-template-columns:48px minmax(0,1fr);column-gap:8px}.distribution .donut{width:48px;height:48px}.distribution .donut>div{width:34px;height:34px}.legend-row>span,.legend-row strong{font-size:14px;line-height:20px}.legend-row i{width:4px;height:4px;margin-top:8px}.legend-row{gap:4px}}
.collection-home .category-line{padding:24px 20px}
@media(max-width:359px){.collection-home .category-line{padding:24px 20px}}

/* List affordance correction; full secondary-page visual restoration still pending review. */
.card{position:relative}.card-main{padding:0;width:100%;display:flex;flex-direction:column;text-align:left;min-width:0;flex:1}.card-media{position:relative;width:100%;overflow:hidden;border-radius:20px 20px 0 0}.card-media .card-image{display:block;width:100%}.content-type-badge{position:absolute;right:8px;bottom:8px;padding:2px 6px;border-radius:6px;background:#20232bd9;color:white;font-size:12px;line-height:18px;white-space:nowrap}.card-main .card-body{padding-right:52px}.card-info{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.platform-logo{width:20px;height:20px;object-fit:contain;flex-shrink:0}.item-more{position:absolute;right:8px;top:8px;width:44px;height:44px;border-radius:12px;background:#fffffff0;color:var(--sub);display:flex;align-items:center;justify-content:center}.item-more svg{width:20px;height:20px;stroke-width:4}#itemActionsName{font-size:16px;line-height:24px;overflow-wrap:anywhere;margin-bottom:20px}#itemActionsBody{display:grid;gap:8px}#itemActionsBody button{text-align:left;padding:12px 16px;border-radius:12px;min-height:48px}#itemActionsBody button:not(.danger){background:var(--bg)}@media(max-width:640px){.card-main{flex-direction:row;align-items:stretch}.card-media{width:104px;flex:0 0 104px;border-radius:20px 0 0 20px}.card-media .card-image{width:100%;height:100%;aspect-ratio:auto;object-fit:cover}.card-media .card-fallback{width:100%;height:100%;min-height:124px;aspect-ratio:auto}.card-main .card-body{padding-right:52px}.content-type-badge{right:6px;bottom:6px;max-width:calc(100% - 12px)}.card-main .card-body .row{flex-wrap:wrap}}

/* v0.7: remaining pages share the approved neutral home system. */
.page-navigation{display:flex;align-items:center;justify-content:space-between;width:100%;gap:16px}.page-navigation .back{margin:0;padding:0;min-height:44px;color:var(--ink);font-size:20px;line-height:28px;gap:8px}.page-navigation .back svg{width:24px;height:24px}.page-navigation .icon-button{display:grid;place-items:center}.page-navigation .icon-button svg{width:20px;height:20px;stroke-width:3}.content-page header{padding:16px 20px 40px}.content-page .header-tools{margin-bottom:24px}.category-identity{display:flex;align-items:center;gap:16px;margin-bottom:24px;min-width:0}.category-identity-art{width:48px;height:48px;display:grid;place-items:center;flex-shrink:0;color:var(--blue)}.category-identity-art>svg:not(.category-art){width:32px;height:32px}.category-identity h1{font-size:24px;font-weight:600;line-height:32px;overflow-wrap:anywhere}.category-identity .demo-inline{margin:4px 0 0}.content-page #headerStats{background:white;border:1px solid #ededf0;border-radius:20px;padding:24px 0;gap:0}.content-page #headerStats>div+div{border-left:1px solid var(--line)}.content-page #headerStats strong{font-size:24px;line-height:32px;font-weight:600}.content-page #headerStats span{font-size:14px;line-height:20px}.content-page main{margin-top:0;padding:0 20px 128px;border-radius:0}.content-page .toolbar{margin:0 0 12px}.search{background:#f0f0f1;border:1px solid #e7e7ea;border-radius:16px}.list-filter-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.list-filter-row .filter{font-size:14px;padding:0 12px;border-radius:12px;min-height:44px;background:white}.content-page #collectionResults>.section-head{margin:0 0 16px}.content-page #collectionResults>.section-head h3{font-size:16px;font-weight:500;color:var(--sub)}.cards{display:grid;grid-template-columns:1fr;gap:16px}.card{position:relative;display:block;min-width:0;width:100%;border:1px solid #ededf0;border-radius:20px;box-shadow:0 2px 10px #20232b03;overflow:hidden}.card-main{display:flex;flex-direction:row;align-items:center;gap:16px;padding:16px;min-height:160px;background:white;min-width:0}.card-media{width:104px;height:96px;flex:0 0 104px;overflow:hidden;border-radius:12px;background:#f0f1f3}.card-media .card-image{width:100%;height:100%;object-fit:cover;aspect-ratio:auto}.card-media .card-fallback{width:100%;height:100%;min-height:0;display:flex;flex-direction:column;gap:8px;align-items:center;justify-content:center;padding:8px;background:#f0f1f3;color:var(--muted)}.card-media .card-fallback span{display:block;font-size:12px;text-align:center}.card-fallback .large-icon{width:24px;height:24px}.card-main .card-body{padding:0 28px 0 0;display:flex;flex-direction:column;gap:8px;min-width:0;flex:1}.card h3{font-size:16px;line-height:24px;font-weight:600;overflow-wrap:anywhere}.card-info{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:0;font-size:14px;line-height:20px;color:var(--sub)}.card .seen{font-size:14px;line-height:20px;white-space:normal}.card-date,.sample-note{font-size:12px;line-height:18px;color:var(--muted)}.card-category{font-size:12px;line-height:18px;color:var(--sub)}.item-more{right:8px;top:8px;background:transparent}.content-type-badge{right:8px;bottom:8px}.card-date{margin:0}.detail-page header{padding:16px 20px 0}.detail-page .header-tools{margin:0}.detail-page main{margin:0;padding:20px 20px 128px;border-radius:0}.detail{background:transparent;border:0;border-radius:0;overflow:visible;max-width:840px;margin:0 auto}.detail-media{width:100%;aspect-ratio:16/9;border-radius:20px;position:relative;overflow:hidden;background:#eeeff1}.detail-media .detail-cover{width:100%;height:100%;max-height:none;object-fit:cover;display:block}.detail-cover-empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:var(--muted);font-size:14px}.detail-cover-empty svg{width:32px;height:32px}.detail-body{padding:0}.detail h2{font-size:24px;line-height:32px;font-weight:600;margin:20px 0 12px;overflow-wrap:anywhere}.detail-meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:24px;font-size:14px;line-height:20px}.detail-category,.detail-platform{display:flex;align-items:center;gap:8px;color:var(--sub)}.detail-category .category-art{width:24px!important;height:24px!important}.detail-category>svg:not(.category-art){width:20px;height:20px}.detail-platform{border-left:1px solid var(--line);padding-left:12px}.detail-actions{display:flex;gap:12px;margin:0 0 24px;flex-wrap:wrap}.primary-actions .primary{flex:2 1 180px}.primary-actions .secondary{flex:1 1 100px}.primary-actions .secondary,.primary-actions .primary{padding:12px 16px;font-size:16px;line-height:24px;min-height:48px}.detail-section{padding:0;background:white;border:1px solid #ededf0;border-radius:20px;margin:0 0 16px;overflow:hidden}.detail-section>summary{display:flex;align-items:center;gap:12px;padding:16px 20px;min-height:64px;font-size:16px;line-height:24px;color:var(--ink);list-style:none}.detail-section>summary::-webkit-details-marker{display:none}.detail-section>summary>svg{width:20px;height:20px}.detail-section>summary strong{font-size:16px;line-height:24px;font-weight:600}.section-status{font-size:14px;line-height:20px;color:var(--muted);margin-left:auto}.collapse-chevron{margin-left:auto;flex-shrink:0}.section-status+.collapse-chevron{margin-left:0}.detail-section[open]>summary .collapse-chevron{transform:rotate(180deg)}.detail-section>p{font-size:14px;line-height:22px;padding:0 20px 20px;color:var(--sub)}.source-fields{margin:0;padding:4px 20px 16px}.source-fields>div{display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px;align-items:start;margin-bottom:12px;font-size:14px;line-height:22px}.source-fields dt{color:var(--muted)}.source-fields dd{margin:0;min-width:0;overflow-wrap:anywhere}.source-link{display:flex;align-items:flex-start;gap:8px}.source-link a{min-width:0;flex:1;overflow-wrap:anywhere}.source-link .icon-button{flex:0 0 44px;height:44px;margin-top:-10px;display:grid;place-items:center;font-size:16px}.source-link .icon-button svg{width:20px;height:20px}.source-subsection{padding:0 20px;margin:0;border:0}.source-subsection>summary{font-size:14px;line-height:20px;padding:12px 0;color:var(--sub)}.source-subsection p,.source-subsection pre{font-size:14px;line-height:22px;color:var(--sub);margin:0 0 12px;overflow-wrap:anywhere}.status-actions{margin-top:24px}.status-actions .secondary{flex:1 1 140px;min-height:48px;font-size:16px;padding:12px 16px}.secondary{background:#fff;border-color:#e5e6ea}.primary{background:var(--blue);box-shadow:none}.empty{padding:40px 24px;border:1px solid #ededf0;border-radius:20px}.empty h3{font-size:20px;line-height:28px}.empty p{font-size:14px;line-height:22px;margin:12px 0 24px}dialog{font-family:inherit;background:white;border:1px solid #ededf0;border-radius:24px;padding:24px;max-width:520px;box-shadow:0 20px 80px #20232b22}dialog::backdrop{background:#20232b60}.dialog-head{margin-bottom:24px}.dialog-head h2{font-size:24px;line-height:32px;font-weight:600}.dialog-head .icon-button{display:grid;place-items:center;width:44px;min-height:44px;line-height:1}.dialog-head .icon-button:focus-visible{outline:3px solid #1769ff55}.dialog-head .icon-button:hover{background:var(--bg);border-radius:12px}label{font-size:14px;line-height:20px;font-weight:500;margin:20px 0 8px}input,textarea,select{background:#f8f8f9;border:1px solid #dfe1e6;border-radius:12px;padding:12px 16px;font-size:16px;line-height:24px;color:var(--ink)}input,select{min-height:48px}textarea{min-height:104px}.hint{font-size:13px;line-height:20px}.notice{background:#f2f4f8;color:var(--sub);font-size:14px;line-height:22px;border-radius:16px;padding:16px;margin-bottom:24px}.notice strong{color:var(--ink)}.form-actions{gap:12px;margin-top:24px}.primary,.secondary,.danger{border-radius:12px;min-height:48px}.danger{background:#fff1f2;color:#b42332}.backup-actions{gap:12px}.backup-actions>*{flex:1}.test-settings summary{font-size:14px}.error{font-size:14px;line-height:22px}.settings-button svg{width:24px;height:24px}#itemActionsBody{gap:8px}#itemActionsBody button{padding:14px 16px;font-size:16px;line-height:24px;min-height:52px}#itemActionsBody button:hover:not(.danger){background:#f0f1f3}.platform-logo{width:20px;height:20px}.icon-button svg{width:20px;height:20px}@media(min-width:1200px){.content-page header,.content-page main,.detail-page header,.detail-page main{padding-left:max(32px,calc((100vw - 1140px)/2));padding-right:max(32px,calc((100vw - 1140px)/2))}.content-page .cards{grid-template-columns:1fr}.content-page .card-media{width:136px;height:112px;flex-basis:136px}.content-page .card-main{min-height:160px}}@media(max-width:359px){.card-main{gap:12px}.card-media{width:80px;height:80px;flex-basis:80px}.card-main .card-body{padding-right:24px}.card-info{gap:4px}.platform-logo{width:20px;height:20px}.content-type-badge{font-size:12px;padding:2px 4px;right:4px;bottom:4px}.detail-section>summary{padding:16px}.source-fields{padding-left:16px;padding-right:16px}.source-fields>div{grid-template-columns:64px minmax(0,1fr);gap:8px}.section-status{font-size:14px}.source-subsection{padding-left:16px;padding-right:16px}dialog{padding:20px}}

main:focus{outline:none}.list-filter-row{margin-bottom:20px}

/* v0.8: approved home spacing and tinted summaries; existing icons retained. */
.collection-home header{padding:24px 16px 0}
.collection-home .header-tools{margin-bottom:20px}
.collection-home main{margin-top:0;padding:0 16px 128px;border-radius:0}
.collection-home .header-stats.dashboard-summary{gap:12px}
.collection-home .summary-card{min-height:168px;padding:12px;box-shadow:0 2px 10px #20232b03}
.collection-home .distribution{background:#f7f3ff;grid-template-columns:52px minmax(0,1fr);column-gap:8px;border-color:#e7e1f0}
.collection-home .seen-summary{background:#f1faf6;border-color:#dfebe5}
.collection-home .summary-card h2{margin-bottom:12px}
.collection-home .distribution .donut{width:52px;height:52px}
.collection-home .distribution .donut>div{width:36px;height:36px;background:#f7f3ff}
.collection-home .distribution .donut strong{font-size:20px;line-height:28px}
.collection-home .legend-row>span,.collection-home .legend-row strong{font-size:12px;line-height:18px}
.collection-home .legend-row i{width:4px;height:4px;margin-top:7px}
.collection-home .chart-legend{gap:8px}
.collection-home .seen-bars{gap:12px}
.collection-home .seen-bar-row .row,.collection-home .seen-bar-row strong,.collection-home .seen-bar-row small{font-size:12px;line-height:18px}
.collection-home .seen-bar-row .row{margin-bottom:8px}
.collection-home .sheet-handle{height:44px;border-radius:0}
.collection-home .section-head{margin:0 0 8px;min-height:44px}
.collection-home .toolbar{margin:0 0 16px}
.collection-home .category-home-list{gap:12px}
.collection-home .category-line{min-height:88px;padding:19px 16px}
.collection-home .category-row{gap:12px}
@media(min-width:700px){.collection-home header,.collection-home main{padding-left:32px;padding-right:32px}.collection-home .summary-card{padding:20px}.collection-home .distribution{grid-template-columns:72px minmax(0,1fr);column-gap:16px}.collection-home .distribution .donut{width:72px;height:72px}.collection-home .distribution .donut>div{width:52px;height:52px}.collection-home .legend-row>span,.collection-home .legend-row strong{font-size:14px;line-height:20px}}
@media(max-width:359px){.collection-home .summary-card{min-height:168px}.collection-home .distribution{grid-template-columns:52px minmax(0,1fr)}}

/* v0.9: isolated real test dataset, existing visual tokens. */
.dataset-notice{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:14px;line-height:20px;padding:12px 16px;margin:0 0 16px;border:1px solid #e7e1f0;border-radius:12px;background:#f7f3ff;color:var(--sub)}.dataset-notice button{font-size:14px;color:var(--blue);min-height:44px}.test-platform-label{display:flex;align-items:center;gap:12px;font-size:14px;margin:0 0 12px}.test-platform-label select{flex:1;min-width:0;background:white}.test-evidence .source-fields{padding-top:8px}.test-evidence pre{white-space:pre-wrap;overflow-wrap:anywhere}.test-settings .mode-switch{flex-wrap:wrap}.collection-home .dataset-notice{margin-top:12px}

.live-controls{display:flex;gap:12px;flex-wrap:wrap;margin:0 0 16px}.live-controls[hidden]{display:none}.live-controls button{font-size:14px;min-height:44px;padding:8px 12px}.live-controls button:disabled{opacity:.55;cursor:wait}.live-evidence .source-fields{padding-top:8px}

/* 2026-11-21 user review: compact categories and symmetric settings. */
.collection-home .sheet-handle{width:64px;height:44px;min-height:44px;margin:-12px auto 0}
.collection-home .category-line{min-height:72px;padding:11px 16px;border-radius:16px}
.collection-home .category-home-list{gap:8px}
.settings-button{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;padding:0}
.settings-button svg{display:block;width:24px;height:24px;flex:none;aspect-ratio:1;stroke-width:1.7}
.dataset-notice{min-height:44px;padding:0 12px;margin:0 0 12px;gap:8px}.dataset-notice button{white-space:nowrap}

.collection-home main{display:flow-root}

#confirmStep .notice{margin-bottom:12px}
#recognitionSummary{padding:0 0 8px;margin:0 0 12px}
#recognitionSummary>div{margin-bottom:4px}
#recognitionProgress{display:block;width:100%;height:8px;margin-top:12px;accent-color:var(--blue)}
#recognitionProgress[hidden]{display:none}
