:root{color:#26342e;font-synthesis:none;text-rendering:optimizelegibility;--ink:#26342e;--muted:#849089;--line:#e7ece8;--paper:#fff;--green:#3d936f;--green-dark:#287252;--pale:#edf6f1;--shadow:0 10px 35px #2541320e;background:#f5f7f5;font-family:DM Sans,Noto Sans JP,sans-serif}*{box-sizing:border-box}body{min-width:320px;color:var(--ink);background:#f5f7f5;margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline-offset:2px;outline:3px solid #acd8c1}.app-shell{min-height:100vh}.topbar{z-index:4;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:#ffffffeb;border-bottom:1px solid #eaf0eb;justify-content:space-between;align-items:center;height:78px;padding:0 max(4.2vw,26px);display:flex;position:sticky;top:0}.brand{color:inherit;align-items:center;gap:12px;text-decoration:none;display:flex}.brand-icon{color:#317858;background:#dff0e7;border-radius:13px;place-items:center;width:39px;height:39px;font-size:22px;font-weight:700;display:grid}.brand strong{letter-spacing:-.2px;font-size:15px;display:block}.brand small{color:#9aa69f;letter-spacing:1.6px;margin-top:3px;font-size:9px;display:block}.top-actions,.toolbar{align-items:center;gap:11px;display:flex}.sync-indicator{color:#708078;margin-right:8px;font-size:11px}.sync-indicator i{background:#64b48a;border-radius:50%;width:7px;height:7px;margin-right:6px;display:inline-block}.button{border:0;border-radius:9px;padding:10px 15px;font-size:12px;font-weight:600;transition:transform .15s,background .15s}.button:hover{transform:translateY(-1px)}.button-primary{color:#fff;background:#347e5d;box-shadow:0 4px 10px #347e5d22}.button-primary:hover{background:#286d4d}.button-light{color:#506058;background:#f2f5f2}.button-light:hover{background:#e8eee9}.icon-button{border:1px solid var(--line);color:#66756d;background:#fff;border-radius:9px;place-items:center;width:36px;height:36px;font-size:18px;display:grid}.app-shell main{max-width:1530px;margin:auto;padding:30px 4.2vw 24px}.welcome-row{justify-content:space-between;align-items:flex-end;gap:20px;margin:0 0 22px;display:flex}.eyebrow{letter-spacing:1.5px;color:#83a18f;margin:0 0 7px;font-size:9px;font-weight:700}.welcome-row h1{letter-spacing:-.6px;margin:0;font-size:25px;font-weight:650}.subtle{color:#89958e;margin:7px 0 0;font-size:12px}.dashboard{grid-template-columns:minmax(350px,.92fr) minmax(0,1.6fr);gap:17px;margin-bottom:18px;display:grid}.panel{background:var(--paper);box-shadow:var(--shadow);border:1px solid #e8ede9;border-radius:14px}.dashboard .panel{min-height:243px;padding:21px 23px}.panel-heading{justify-content:space-between;align-items:center;gap:12px;display:flex}.panel-heading h2,.library-heading h2{letter-spacing:-.2px;margin:0;font-size:15px;font-weight:650}.panel-heading .eyebrow,.library-heading .eyebrow{margin-bottom:5px}.metric-pill{color:#69776f;background:#f5f8f5;border-radius:20px;padding:6px 10px;font-size:10px}.overview-content{align-items:center;gap:27px;padding:18px 7px 0;display:flex}.donut{background:conic-gradient(#3d936f 0 var(--done),#e5aa4f var(--done) var(--doing),#e6ebe7 var(--doing) 100%);border-radius:50%;flex:0 0 145px;place-items:center;width:145px;height:145px;display:grid;position:relative}.donut:after{content:"";background:#fff;border-radius:50%;width:110px;height:110px;position:absolute}.donut-center{z-index:1;text-align:center;flex-direction:column;gap:5px;display:flex;position:relative}.donut-center strong{letter-spacing:-1px;color:#2c4839;font-size:30px;line-height:1}.donut-center span{color:#7e8c84;font-size:9px}.legend{gap:10px;width:100%;display:grid}.legend-item{text-align:left;color:#66756d;background:0 0;border:0;border-radius:6px;grid-template-columns:10px 1fr auto;align-items:center;gap:9px;padding:4px 6px;font-size:11px;display:grid}.legend-item:hover,.legend-item.is-filtered{background:#f4f8f5}.legend-item i{background:var(--swatch);border-radius:3px;width:8px;height:8px}.legend-item b{color:#425148;font-size:11px}.segmented{background:#f2f5f2;border-radius:8px;gap:2px;padding:3px;display:flex}.segmented button{color:#7c8982;background:0 0;border:0;border-radius:6px;padding:6px 11px;font-size:10px}.segmented button.active{color:#347e5d;background:#fff;font-weight:650;box-shadow:0 1px 4px #1f302718}.sort-row{color:#99a39d;justify-content:space-between;align-items:center;margin:17px 2px 8px;font-size:10px;display:flex}.sort-row select{color:#7d8a82;background:0 0;border:0;font-size:10px}.tag-chart{scrollbar-width:thin;max-height:142px;padding:0 4px 0 0;overflow:auto}.tag-row{text-align:left;color:#596860;background:0 0;border:0;border-radius:6px;grid-template-columns:minmax(70px,112px) minmax(60px,1fr) 33px 62px;align-items:center;gap:10px;width:100%;padding:7px 5px;display:grid}.tag-row:hover,.tag-row.is-filtered{background:#f5f8f6}.tag-label{white-space:nowrap;text-overflow:ellipsis;font-size:10px;overflow:hidden}.bar-track{background:#edf1ee;border-radius:10px;height:7px;overflow:hidden}.bar-track i{background:#63a883;border-radius:10px;min-width:0;height:100%;display:block}.tag-rate{text-align:right;color:#3b805f;font-size:10px}.tag-row small{color:#98a39c;text-align:right;font-size:9px}.chart-empty{color:#a1aaa4;text-align:center;padding:30px;font-size:11px}.library{padding:21px 0 0;overflow:hidden}.library-heading{justify-content:space-between;align-items:center;padding:0 22px 17px;display:flex}.library-heading h2{font-size:16px}.result-count{color:#95a098;margin-left:7px;font-size:10px;font-weight:400}.text-button,.danger-text{color:#438263;background:0 0;border:0;padding:7px;font-size:10px;font-weight:600}.text-button:hover{background:#edf6f1;border-radius:6px}.danger-text{color:#bd665d}.danger-text:hover{background:#fff0ee;border-radius:6px}.filters{border-top:1px solid #f0f3f0;border-bottom:1px solid #eef1ee;align-items:center;gap:8px;padding:13px 22px;display:flex}.search-box{color:#96a29a;border:1px solid #e8ede9;border-radius:8px;flex:1;align-items:center;gap:8px;min-width:180px;height:34px;padding:0 10px;display:flex}.search-box span{font-size:18px}.search-box input{width:100%;min-width:0;color:var(--ink);background:0 0;border:0;outline:0;font-size:10px}.filters select,.bulk-bar select{color:#66746c;background:#fff;border:1px solid #e8ede9;border-radius:8px;max-width:160px;height:34px;padding:0 9px;font-size:10px}.filters .text-button{white-space:nowrap}.bulk-bar{color:#69786f;background:#f5faf7;border-bottom:1px solid #eaf1ec;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 22px;font-size:10px;display:flex}.bulk-bar[hidden]{display:none}.bulk-bar label{align-items:center;gap:6px;display:flex}.bulk-bar strong{color:#3e795c;margin-right:auto}.bulk-bar select{height:29px}.table-wrap{max-height:540px;position:relative;overflow:auto}.table-wrap table{border-collapse:separate;border-spacing:0;white-space:nowrap;width:100%;min-width:1260px;font-size:10px}.table-wrap thead{z-index:2;position:sticky;top:0}.table-wrap th{resize:horizontal;color:#8a968e;text-align:left;background:#f8faf8;border-bottom:1px solid #e9eee9;padding:10px 11px;font-weight:500;overflow:auto}.table-wrap th button{color:inherit;background:0 0;border:0;padding:0;font-size:9px;font-weight:600}.table-wrap td{color:#68766e;border-bottom:1px solid #f0f3f0;max-width:180px;padding:10px 11px}.table-wrap tbody tr:hover{background:#fbfcfb}.table-wrap td:first-child,.table-wrap th:first-child{padding-left:20px}.table-wrap input[type=checkbox],input[type=checkbox]{accent-color:#428563}.check-col{width:34px}.title-cell{max-width:240px!important}.bookmark-title{color:#344c3e;text-overflow:ellipsis;vertical-align:middle;max-width:220px;font-weight:600;text-decoration:none;display:inline-block;overflow:hidden}.bookmark-title:hover{color:#38845f;text-decoration:underline}.auto-badge{color:#ae8d50;background:#f5f1e8;border-radius:4px;margin-left:5px;padding:3px 5px;font-size:8px}.url-cell{max-width:210px!important}.url-copy{color:#8b9990;text-overflow:ellipsis;background:0 0;border:0;max-width:190px;padding:0;font-size:9px;overflow:hidden}.url-copy:hover{color:#3d936f}.genre-chip{color:#568069;background:#eef6f1;border-radius:4px;margin:1px 3px 1px 0;padding:3px 6px;font-size:9px;display:inline-block}.muted{color:#c0c8c2}.status-select{appearance:auto;border:1px solid #0000;border-radius:6px;padding:5px 19px 5px 7px;font-size:9px}.status-unread{color:#7e8982;background:#f1f3f1}.status-in-progress{color:#a5792e;background:#fff5e4}.status-done{color:#39825e;background:#eaf5ef}.memo-cell{text-overflow:ellipsis;overflow:hidden;max-width:150px!important}.row-actions{gap:7px;display:flex}.row-actions button{color:#538268;background:0 0;border:0;padding:4px;font-size:9px}.row-actions .danger-text{color:#bd665d}.empty-state{color:#75837a;flex-direction:column;justify-content:center;align-items:center;gap:8px;min-height:180px;font-size:12px;display:flex}.empty-state[hidden]{display:none}.empty-state p{color:#9aa49d;margin:0 0 7px;font-size:10px}.empty-icon{color:#488668;background:#edf6f1;border-radius:11px;place-items:center;width:35px;height:35px;margin-bottom:2px;font-size:18px;display:grid}footer{color:#9ba59e;justify-content:space-between;padding:16px 2px;font-size:9px;display:flex}footer b{color:#adb7b0;margin-left:7px;font-weight:500}.alert{color:#946d31;background:#fff6e8;border:1px solid #f1dfbe;border-radius:8px;margin:0 0 14px;padding:10px 13px;font-size:11px}.alert[hidden]{display:none}dialog{width:min(560px,100vw - 28px);color:var(--ink);border:1px solid #e5ebe6;border-radius:16px;padding:0;box-shadow:0 24px 80px #1d302833}dialog::backdrop{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#20352c55}dialog form{padding:23px}.dialog-head{justify-content:space-between;align-items:flex-start;margin-bottom:20px;display:flex}.dialog-head h2{margin:0;font-size:18px}.dialog-head .icon-button{border:0;font-size:23px}.form-grid{grid-template-columns:1fr 1fr;gap:14px;display:grid}.form-grid label{color:#66756d;flex-direction:column;gap:6px;font-size:10px;display:flex}.form-grid .wide{grid-column:1/-1}.form-grid input,.form-grid textarea,.genre-add input{color:#35463c;background:#fbfcfb;border:1px solid #e2e9e3;border-radius:8px;min-width:0;padding:10px;font-size:11px}.form-grid textarea{resize:vertical}.required{color:#bf795c;font-size:9px}.dialog-note{color:#8e9a92;margin:13px 0 0;font-size:10px}.dialog-actions{justify-content:flex-end;gap:8px;margin-top:22px;display:flex}.genre-add{gap:8px;display:flex}.genre-add input{flex:1}.genre-list{max-height:300px;margin-top:14px;overflow:auto}.genre-manage-row{border-bottom:1px solid #eef2ee;align-items:center;padding:9px 2px;font-size:11px;display:flex}.genre-manage-row span{margin-right:auto}.genre-manage-row small{color:#9aa59e;margin-left:6px}.column-options{grid-template-columns:1fr 1fr;gap:12px;display:grid}.column-options label{color:#65746b;font-size:11px}html[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--ink:#e4ece7;--muted:#9eaaa2;--line:#35443b;--paper:#202b25;--shadow:0 10px 35px #0002;background:#17211b}html[data-theme=dark] body{color:#e4ece7;background:#17211b}html[data-theme=dark] .topbar,html[data-theme=dark] .panel,html[data-theme=dark] .icon-button,html[data-theme=dark] .segmented button.active{color:#e4ece7;background:#202b25;border-color:#34433a}html[data-theme=dark] .metric-pill,html[data-theme=dark] .segmented,html[data-theme=dark] .button-light,html[data-theme=dark] .filters select,html[data-theme=dark] .bulk-bar select{color:#c2cec6;background:#29362e;border-color:#39473e}html[data-theme=dark] .donut:after{background:#202b25}html[data-theme=dark] .donut-center strong,html[data-theme=dark] .bookmark-title{color:#d9e9df}html[data-theme=dark] .table-wrap th{background:#26332b;border-color:#354239}html[data-theme=dark] .table-wrap td{color:#bdc9c0;border-color:#2c3830}html[data-theme=dark] .table-wrap tbody tr:hover,html[data-theme=dark] .legend-item:hover{background:#25332a}html[data-theme=dark] .search-box,html[data-theme=dark] .form-grid input,html[data-theme=dark] .form-grid textarea{color:#e4ece7;background:#1b261f;border-color:#39473e}html[data-theme=dark] dialog{color:#e4ece7;background:#202b25;border-color:#35443b}html[data-theme=dark] .tag-row,html[data-theme=dark] .legend-item{color:#bdc9c0}html[data-theme=dark] .bar-track{background:#344239}html[data-theme=dark] .auto-badge{background:#3c3524}@media (width<=900px){.dashboard{grid-template-columns:1fr 1.3fr}.filters{flex-wrap:wrap}.search-box{flex-basis:100%}.filters select{flex:1}.toolbar{flex-wrap:wrap;justify-content:flex-end}.welcome-row{align-items:flex-start}.table-wrap{max-height:unset}}@media (width<=640px){.topbar{height:65px;padding:0 15px}.brand-icon{width:34px;height:34px}.brand strong{font-size:12px}.brand small{font-size:8px}.sync-indicator{display:none}.top-actions{gap:7px}.top-actions .button{padding:9px 11px;font-size:0}.top-actions .button:first-letter{font-size:17px}.app-shell main{padding:22px 13px}.welcome-row{display:block}.welcome-row h1{font-size:22px}.toolbar{justify-content:flex-start;gap:6px;margin-top:15px}.toolbar .button{padding:8px;font-size:9px}.dashboard{grid-template-columns:1fr;gap:12px}.dashboard .panel{min-height:0;padding:18px}.overview-content{justify-content:center}.donut{flex-basis:130px;width:130px;height:130px}.donut:after{width:98px;height:98px}.donut-center strong{font-size:27px}.tag-chart{max-height:200px}.library{border-radius:12px}.library-heading{padding:17px 14px}.filters{gap:6px;padding:11px 12px}.filters select{min-width:calc(50% - 4px);max-width:none;font-size:9px}.search-box{min-width:100%}.bulk-bar{padding:9px 12px}.table-wrap{max-height:65vh}.table-wrap table{min-width:1180px}.empty-state{padding:24px}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}dialog form{padding:19px}footer{font-size:8px}}.metadata-dialog-body{padding:23px}.metadata-field{color:#66756d;flex-direction:column;gap:7px;font-size:11px;display:flex}.metadata-field select{color:#35463c;background:#fbfcfb;border:1px solid #e2e9e3;border-radius:8px;height:38px;padding:0 10px}.metadata-checks{color:#53645a;gap:18px;margin-top:16px;font-size:11px;display:flex}.metadata-checks input{accent-color:#428563}.metadata-progress{color:#47775a;background:#f3f8f4;border-radius:7px;min-height:20px;padding:9px 11px;font-size:10px}.row-actions button[data-metadata]{color:#8a7541}.table-wrap tbody tr:not(.virtual-spacer){height:42px}.table-wrap tbody .virtual-spacer td{font-size:0;line-height:0;border:0!important;padding:0!important}dialog{overscroll-behavior:contain;max-height:calc(100dvh - 24px);overflow-y:auto}
