@import "https://fonts.googleapis.com/css2?family=Caprasimo&family=Marcellus&family=Space+Grotesk:wght@400;600&display=swap";
:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--font-title:"Marcellus", "Times New Roman", serif;--font-author:"Space Grotesk", "Inter", system-ui, sans-serif;--font-book-title:"Caprasimo", "Playfair Display", serif;--bg:radial-gradient(circle at 18% -20%, #eef2ff 0%, #e0f2ff 45%, #f5fbff 100%);--surface:#fffffff2;--surface-alt:#f3f8ffe6;--surface-muted:#6495ed26;--text:#0f1b2b;--text-muted:#536079;--primary:#4f73ff;--primary-rgb:79, 115, 255;--accent:#64e1dc;--accent-soft:#a5f6f0;--border:#0f1b2b2e;--border-strong:#0f1b2b57;--shadow:0 35px 65px -45px #0c1829a6;--table-head-text:#1c2f57;--table-head-bg:rgba(var(--primary-rgb), .15);--pill-accent-bg:rgba(var(--primary-rgb), .16);--pill-accent-border:rgba(var(--primary-rgb), .4);--pill-accent-text:var(--primary);--table-hover:rgba(var(--primary-rgb), .12);--table-selected:rgba(var(--primary-rgb), .22);--stats-primary:rgba(var(--primary-rgb), .35);--stats-secondary:rgba(var(--primary-rgb), .25);--stats-tertiary:rgba(var(--primary-rgb), .18);--stats-series-blue:#2563eb;--stats-series-teal:#0d9488;--stats-series-amber:#f59e0b;--stats-series-rose:#db2777;--stats-series-violet:#7c3aed;--stats-series-neutral:#94a3b8;--accent-action-bg:rgba(var(--primary-rgb), .1);font-family:Space Grotesk,Inter,system-ui,sans-serif;font-size:16px;line-height:1.5}body[data-theme]{--stats-primary:rgba(var(--primary-rgb), .35);--stats-secondary:rgba(var(--primary-rgb), .25);--stats-tertiary:rgba(var(--primary-rgb), .18);--table-head-bg:rgba(var(--primary-rgb), .15);--accent-action-bg:rgba(var(--primary-rgb), .1);--pill-accent-bg:rgba(var(--primary-rgb), .16);--pill-accent-border:rgba(var(--primary-rgb), .4);--pill-accent-text:var(--primary);--table-hover:rgba(var(--primary-rgb), .12);--table-selected:rgba(var(--primary-rgb), .22)}body[data-theme=desert-bloom]{--bg:radial-gradient(circle at 20% -20%, #fff3e5 0%, #f7d9b2 45%, #f0c184 100%);--surface:#fffaf4f2;--surface-alt:#fcecd5eb;--surface-muted:#cf945f24;--text:#2f1405;--text-muted:#8a5530;--primary:#d97706;--primary-rgb:217, 119, 6;--accent:#f97316;--accent-soft:#fde68a;--border:#59260838;--border-strong:#59260866;--shadow:0 35px 65px -45px #5a320a8c;--table-head-text:#5b2a0a}body[data-theme=noir-chrome]{--bg:radial-gradient(circle at 20% -20%, #131729 0%, #0a0d1b 55%, #04050a 100%);--surface:#212640eb;--surface-alt:#2a304ed9;--surface-muted:#60a5fa40;--text:#f6f8ff;--text-muted:#cfd5e6;--primary:#60a5fa;--primary-rgb:96, 165, 250;--accent:#c084fc;--accent-soft:#a855f7;--border:#60a5fa4d;--border-strong:#60a5fa80;--shadow:0 45px 85px -55px #000000d9;--table-head-text:#e2ecff}body[data-theme=sakura-dream]{--bg:radial-gradient(circle at 15% -20%, #fff0f6 0%, #ffe1ec 50%, #ffd5e5 100%);--surface:#fffffff2;--surface-alt:#fff0f6e6;--surface-muted:#ff95c02e;--text:#351220;--text-muted:#a35b78;--primary:#f472b6;--primary-rgb:244, 114, 182;--accent:#c084fc;--accent-soft:#fbcfe8;--border:#7e224d33;--border-strong:#7e224d59;--shadow:0 32px 60px -40px #7e224d59;--table-head-text:#6d1a3e}body[data-theme=atlantic]{--bg:radial-gradient(circle at 10% -30%, #e0f2ff 0%, #c7e0ff 45%, #a7c5ff 100%);--surface:#fffffff0;--surface-alt:#e5f2ffe6;--surface-muted:#2463b029;--text:#0b1c33;--text-muted:#4f6787;--primary:#2563eb;--primary-rgb:37, 99, 235;--accent:#fb7185;--accent-soft:#fcd34d;--border:#0d203a33;--border-strong:#0d203a5c;--shadow:0 35px 65px -45px #0c152799;--table-head-text:#163768}body[data-theme=rainforest]{--bg:radial-gradient(circle at 20% -20%, #e9ffe9 0%, #c3f5d3 45%, #a0e4b8 100%);--surface:#fffffff2;--surface-alt:#ecfcf4e6;--surface-muted:#107a5729;--text:#0b291f;--text-muted:#3d6c58;--primary:#0d9488;--primary-rgb:13, 148, 136;--accent:#85d996;--accent-soft:#befae3;--border:#073b2e38;--border-strong:#073b2e61;--shadow:0 35px 65px -45px #073b2e80;--table-head-text:#0c4a3a}body[data-theme=cyberwave]{--bg:radial-gradient(circle at 20% -20%, #1a093f 0%, #25094f 45%, #050216 100%);--surface:#221144e6;--surface-alt:#2d195cd1;--surface-muted:#ff3dff47;--text:#fff4ff;--text-muted:#d9c7f0;--primary:#ff3dff;--primary-rgb:255, 61, 255;--accent:#00f5ff;--accent-soft:#7ef9ff;--border:#ff3dff66;--border-strong:#00f5ff66;--shadow:0 45px 85px -55px #050014d9;--table-head-text:#fff3ff}body[data-theme=linen-sky]{--bg:radial-gradient(circle at 20% -20%, #fdfaf5 0%, #f0ebe4 45%, #e2dcd4 100%);--surface:#fffffff5;--surface-alt:#f8f4eee6;--surface-muted:#4a55681f;--text:#1b1b1a;--text-muted:#6b6a66;--primary:#6b7280;--primary-rgb:107, 114, 128;--accent:#94a3b8;--accent-soft:#cbd5f5;--border:#3a3a3633;--border-strong:#3a3a3659;--shadow:0 35px 65px -45px #22222073;--table-head-text:#2f2f2d}body[data-theme=sunset-pop]{--bg:radial-gradient(circle at 20% -20%, #fff1eb 0%, #ffd1c7 50%, #ff9ec4 100%);--surface:#fffffff2;--surface-alt:#ffebe8e6;--surface-muted:#f43f5e33;--text:#2d0c19;--text-muted:#a15263;--primary:#f43f5e;--primary-rgb:244, 63, 94;--accent:#f59e0b;--accent-soft:#fde68a;--border:#5a1e2338;--border-strong:#5a1e2361;--shadow:0 35px 65px -45px #5a1e2380;--table-head-text:#5f1b2d}body[data-theme=iceberg]{--bg:radial-gradient(circle at 20% -20%, #f1fbff 0%, #d9f1ff 50%, #c4e4ff 100%);--surface:#fffffff5;--surface-alt:#ecf9ffe6;--surface-muted:#38bdf829;--text:#0b1f2c;--text-muted:#4b6b7c;--primary:#0ea5e9;--primary-rgb:14, 165, 233;--accent:#7dd3fc;--accent-soft:#bae6fd;--border:#08334433;--border-strong:#08334459;--shadow:0 35px 65px -45px #08283c8c;--table-head-text:#0f3c53}body[data-theme=volcanic-soil]{--bg:radial-gradient(circle at 20% -20%, #fff4e8 0%, #f6d6b5 50%, #e4b180 100%);--surface:#fffcf8f5;--surface-alt:#fbebd6e6;--surface-muted:#b4530929;--text:#2b1100;--text-muted:#8c4b19;--primary:#b45309;--primary-rgb:180, 83, 9;--accent:#f97316;--accent-soft:#fed7aa;--border:#59280638;--border-strong:#59280661;--shadow:0 35px 65px -45px #3f180480;--table-head-text:#5c2a07}body[data-theme=misty-forest]{--bg:radial-gradient(circle at 20% -20%, #e9f6ef 0%, #cfeada 45%, #b5d9c5 100%);--surface:#fffffff2;--surface-alt:#e8f7eee6;--surface-muted:#16653429;--text:#0b1a12;--text-muted:#4a7a62;--primary:#166534;--primary-rgb:22, 101, 52;--accent:#4ade80;--accent-soft:#bbf7d0;--border:#08371e38;--border-strong:#08371e61;--shadow:0 35px 65px -45px #08371e73;--table-head-text:#0f4228}body[data-theme=mediterranean-coast]{--bg:radial-gradient(circle at 15% -25%, #e8f8ff 0%, #bee6ff 45%, #8fd2ff 100%);--surface:#fffffff2;--surface-alt:#e6f6ffe6;--surface-muted:#0ea5e929;--text:#0e1f2f;--text-muted:#45607b;--primary:#0ea5e9;--primary-rgb:14, 165, 233;--accent:#fde047;--accent-soft:#fef9c3;--border:#082b4233;--border-strong:#082b4261;--shadow:0 35px 65px -45px #051a288c;--table-head-text:#12324c}body[data-theme=caribbean-night]{--bg:radial-gradient(circle at 20% -20%, #001131 0%, #011d49 50%, #022c63 100%);--surface:#1a2952e6;--surface-alt:#203668d9;--surface-muted:#1d4ed840;--text:#f3f8ff;--text-muted:#c7d6f5;--primary:#1d4ed8;--primary-rgb:29, 78, 216;--accent:#22d3ee;--accent-soft:#7dd3fc;--border:#2274c766;--border-strong:#2274c78c;--shadow:0 45px 85px -55px #000614d9;--table-head-text:#e1ecff}body[data-theme=minimal-ivory]{--bg:radial-gradient(circle at 20% -20%, #fffaf2 0%, #f5ecde 45%, #eadcc6 100%);--surface:#fffffff5;--surface-alt:#faf3e8e6;--surface-muted:#e07a5f29;--text:#1d1d1d;--text-muted:#7a6a5d;--primary:#e07a5f;--primary-rgb:224, 122, 95;--accent:#81b29a;--accent-soft:#f2cc8f;--border:#47322933;--border-strong:#47322959;--shadow:0 28px 55px -40px #47322973;--table-head-text:#4a362f}body[data-theme=digital-orbit]{--bg:radial-gradient(circle at 20% -20%, #070017 0%, #0c0129 50%, #12033f 100%);--surface:#201244e6;--surface-alt:#2a1954d9;--surface-muted:#8b5cf647;--text:#f8f4ff;--text-muted:#d8caf7;--primary:#8b5cf6;--primary-rgb:139, 92, 246;--accent:#22d3ee;--accent-soft:#a5f3fc;--border:#8b5cf666;--border-strong:#22d3ee66;--shadow:0 45px 90px -55px #03000fd9;--table-head-text:#f4f1ff}body[data-theme=urban-ash]{--bg:radial-gradient(circle at 20% -20%, #f6f7fa 0%, #e1e4ea 45%, #ccd1db 100%);--surface:#fffffff2;--surface-alt:#f2f4f8e6;--surface-muted:#4b556329;--text:#111827;--text-muted:#4b5563;--primary:#4b5563;--primary-rgb:75, 85, 99;--accent:#9ca3af;--accent-soft:#d1d5db;--border:#37415138;--border-strong:#37415161;--shadow:0 30px 60px -48px #0f172a66;--table-head-text:#1f2937}body[data-theme=vintage-cobalt]{--bg:radial-gradient(circle at 20% -20%, #f1faee 0%, #d7ecfb 45%, #bedff5 100%);--surface:#fffffff2;--surface-alt:#edf6ffe6;--surface-muted:#1d355729;--text:#10203c;--text-muted:#4a6284;--primary:#1d3557;--primary-rgb:29, 53, 87;--accent:#457b9d;--accent-soft:#a8dadc;--border:#10203c38;--border-strong:#10203c61;--shadow:0 35px 65px -45px #10203c80;--table-head-text:#1d3557}body[data-theme=aged-editorial]{--font-title:"Marcellus", "Baskerville", "Times New Roman", serif;--font-book-title:"Caprasimo", "Baskerville", "Times New Roman", serif;--bg:radial-gradient(circle at 18% 8%, #fffbeb8c, transparent 34%), repeating-linear-gradient(3deg, #533e2606 0 1px, transparent 1px 6px), linear-gradient(145deg, #ddceb1 0%, #cdbb99 100%);--surface:#f4ead5;--surface-alt:#eadcc0;--surface-muted:#7b30301c;--text:#302820;--text-muted:#6c5c4c;--primary:#7b3030;--primary-rgb:123, 48, 48;--accent:#9b7047;--accent-soft:#d9c49f;--border:#422f1f47;--border-strong:#422f1f80;--shadow:0 18px 36px -28px #382718a6;--table-head-text:#5b2b2b;--stats-series-blue:#4f6575;--stats-series-teal:#5f7667;--stats-series-amber:#9b7047;--stats-series-rose:#8a4040;--stats-series-violet:#745c70;--stats-series-neutral:#948775;--aged-tabs-bg:linear-gradient(180deg, #f7efdcfa, #e8dbc0fa);--aged-panel-bg:repeating-linear-gradient(0deg, #43311e05 0 1px, transparent 1px 5px), linear-gradient(180deg, #f7eedb 0%, #eee0c5 100%);--aged-card-bg:#f7eedae0;--aged-control-bg:#fffaedd1;--aged-header-bg:#e4d3b5c2;--aged-primary-bg:linear-gradient(180deg, #8a3d3a, #6d2929)}body[data-theme=aged-library]{--font-title:"Marcellus", "Baskerville", "Times New Roman", serif;--font-book-title:"Caprasimo", "Baskerville", "Times New Roman", serif;--bg:repeating-linear-gradient(6deg, #ffe1ac06 0 2px, transparent 2px 9px), repeating-linear-gradient(94deg, #1f0d042e 0 1px, transparent 1px 55px), linear-gradient(140deg, #392012 0%, #664128 46%, #2c170e 100%);--surface:#f2e3c5;--surface-alt:#e4cca5;--surface-muted:#5b311924;--text:#2b1a0f;--text-muted:#72583d;--primary:#6a381f;--primary-rgb:106, 56, 31;--accent:#ad8548;--accent-soft:#dec18b;--border:#49261257;--border-strong:#49261294;--shadow:0 30px 55px -30px #140903e0;--table-head-text:#4a2a18;--stats-series-blue:#4d6574;--stats-series-teal:#65745d;--stats-series-amber:#ad8548;--stats-series-rose:#82433b;--stats-series-violet:#6f5966;--stats-series-neutral:#8d806c;--aged-tabs-bg:repeating-linear-gradient(7deg, #ffda9909 0 2px, transparent 2px 8px), linear-gradient(180deg, #3e2314, #251209);--aged-panel-bg:linear-gradient(180deg, #f5e7ca 0%, #ead4ad 100%);--aged-card-bg:#f7e8caeb;--aged-control-bg:#fff4dad1;--aged-header-bg:repeating-linear-gradient(6deg, #ffdea60a 0 2px, transparent 2px 8px), linear-gradient(180deg, #50301d, #351b0e);--aged-primary-bg:linear-gradient(180deg, #76502e, #4e2a17)}body[data-theme=aged-archive]{--font-title:"Courier Prime", "Courier New", monospace;--font-book-title:"Marcellus", "Baskerville", "Times New Roman", serif;--bg:repeating-linear-gradient(0deg, #3356690f 0 1px, transparent 1px 28px), linear-gradient(145deg, #d8ceb4 0%, #c8bea3 100%);--surface:#eee0ba;--surface-alt:#e3d2a5;--surface-muted:#315c731f;--text:#27343a;--text-muted:#5e6c6f;--primary:#315c73;--primary-rgb:49, 92, 115;--accent:#a4523d;--accent-soft:#d4b982;--border:#2d3f444d;--border-strong:#2d3f4485;--shadow:0 20px 38px -30px #2d2b22bd;--table-head-text:#294f63;--stats-series-blue:#315c73;--stats-series-teal:#61766c;--stats-series-amber:#a77a42;--stats-series-rose:#a4523d;--stats-series-violet:#6d6176;--stats-series-neutral:#827f72;--aged-tabs-bg:repeating-linear-gradient(0deg, #315c730e 0 1px, transparent 1px 25px), linear-gradient(180deg, #efe2bf, #dfcea1);--aged-panel-bg:repeating-linear-gradient(0deg, #315c730a 0 1px, transparent 1px 29px), linear-gradient(180deg, #f1e4c1 0%, #e6d5aa 100%);--aged-card-bg:#f0e2bce6;--aged-control-bg:#faeecedb;--aged-header-bg:#daca9ec7;--aged-primary-bg:linear-gradient(180deg, #3b6b82, #294c60)}body[data-theme^=aged-] .panel,body[data-theme^=aged-] .table-wrapper,body[data-theme^=aged-] .word-cloud-card{-webkit-backdrop-filter:none;backdrop-filter:none}body[data-theme^=aged-] .tabs{background:var(--aged-tabs-bg);border-color:var(--border-strong);box-shadow:var(--shadow)}body[data-theme^=aged-] .tab.active{background:var(--aged-primary-bg);border-color:var(--primary);box-shadow:0 8px 16px -12px #1c1108b3}body[data-theme^=aged-] .panel{background:var(--aged-panel-bg);border-color:var(--border-strong)}body[data-theme^=aged-] .panel-header{background:var(--aged-header-bg)}body[data-theme^=aged-] .admin-section,body[data-theme^=aged-] .recommendation-card,body[data-theme^=aged-] .wishlist-card,body[data-theme^=aged-] .stats-section,body[data-theme^=aged-] .stats-card,body[data-theme^=aged-] .stats-kpi-card,body[data-theme^=aged-] .word-cloud-card,body[data-theme^=aged-] .definition-pending-card,body[data-theme^=aged-] .book-modal,body[data-theme^=aged-] .pin-card{background:var(--aged-card-bg)}body[data-theme^=aged-] input,body[data-theme^=aged-] textarea,body[data-theme^=aged-] select,body[data-theme^=aged-] .table-wrapper,body[data-theme^=aged-] .secondary{background:var(--aged-control-bg)}body[data-theme^=aged-] .primary{background:var(--aged-primary-bg);border:1px solid #fff8e229;box-shadow:0 9px 18px -14px #201208d1}body[data-theme=aged-editorial] .panel{outline-offset:-6px;outline:1px solid #7b303038}body[data-theme=aged-editorial] .tabs,body[data-theme=aged-editorial] .panel-header,body[data-theme=aged-editorial] .library-category-header{border-bottom-style:double;border-bottom-width:3px}body[data-theme=aged-editorial] .library-panel{background:#f1e6ce}body[data-theme=aged-library] .tabs{border:3px double #a9834e;box-shadow:0 18px 32px -22px #0c0502f2,inset 0 0 0 1px #ffdfa51f}body[data-theme=aged-library] .tabs .tab{color:#d8bd8f}body[data-theme=aged-library] .tabs .tab:not(.active):hover{color:#fff1d3;background:#ffe2ad14;border-color:#d6b16f6b}body[data-theme=aged-library] .tabs .tab.active{color:#fff4dc;border-color:#b08a52}body[data-theme=aged-library] .panel{box-shadow:var(--shadow), inset 0 0 0 1px #fff8e080;border:5px double #6c4428}body[data-theme=aged-library] .panel-header{border-color:#a9834e}body[data-theme=aged-library] .panel-header h2,body[data-theme=aged-library] .panel-header .secondary{color:#f5e4c3}body[data-theme=aged-library] .library-panel{background:#ecdbb7;border-width:9px}body[data-theme=aged-archive] .panel{border-top:5px solid var(--primary);box-shadow:var(--shadow), inset 0 0 0 1px #fffade73}body[data-theme=aged-archive] .tabs{border-top:4px solid var(--primary)}body[data-theme=aged-archive] .admin-section,body[data-theme=aged-archive] .stats-card,body[data-theme=aged-archive] .stats-kpi-card,body[data-theme=aged-archive] .word-cloud-card{background:repeating-linear-gradient(0deg, #315c730d 0 1px, transparent 1px 27px), var(--aged-card-bg)}body[data-theme=aged-archive] .library-panel{background:repeating-linear-gradient(0deg,#315c730f 0 1px,#0000 1px 30px),#ebddb8}body[data-theme=aged-archive] .panel-header h2,body[data-theme=aged-archive] .library-category-header h2,body[data-theme=aged-archive] .stats-card h3{letter-spacing:.04em}*,:before,:after{box-sizing:border-box}html{scrollbar-gutter:stable both-edges}body{background:var(--bg);min-height:100vh;color:var(--text);background-attachment:fixed;justify-content:center;margin:0;padding:clamp(1rem,4vw,2.4rem);display:flex}button,input,textarea,select{font-family:inherit}input,textarea,select{border:1px solid var(--border);color:var(--text);background:#ffffffb3;padding:.6rem .75rem}input:focus,textarea:focus,select:focus{outline:2px solid var(--accent);outline-offset:1px}h1,h2,h3,h4{font-family:var(--font-title);color:var(--text);font-weight:600}.app-shell{flex-direction:column;gap:1.6rem;width:min(1500px,100%);display:flex}.tabs{border:1px solid var(--border);background:#fff6;flex-wrap:wrap;justify-content:center;gap:.35rem;width:100%;padding:.35rem;display:flex}.tab{text-transform:uppercase;letter-spacing:.07em;color:var(--text-muted);cursor:pointer;text-align:center;background:0 0;border:1px solid #0000;min-width:120px;padding:.55rem 1.1rem;font-weight:600;transition:background .2s,color .2s,border-color .2s}.tab.active{border-color:var(--primary);background:var(--primary);color:#fff;transform:translateY(-1px);box-shadow:0 12px 28px -16px #0009,0 0 0 1px #0000000a}.tab:not(.active):hover{border-color:var(--border-strong);color:var(--text);background:#0000000a}.pending-finish-heading{letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted);text-align:center;margin-bottom:.4rem;font-size:.95rem}.pending-finish-wrapper{flex-direction:column;align-items:center;width:100%;display:flex}.pending-finish-list{border:2px solid var(--border);background:linear-gradient(135deg,#ffffffc7,#ffffffeb);border-radius:0;outline:1px solid #0000000a;flex-direction:column;gap:.5rem;width:fit-content;max-width:100%;margin:0 auto;padding:.75rem;display:flex;box-shadow:0 10px 18px -16px #00000059,inset 0 0 0 1px #ffffffe6}.pending-finish-item{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.8rem;display:flex}.pending-finish-meta{flex-direction:column;gap:.15rem;min-width:220px;display:flex}.pending-finish-meta span{color:var(--text-muted)}.pending-start-wrapper{flex-direction:column;align-items:center;width:100%;margin-top:.75rem;display:flex}.pending-start-heading{letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted);text-align:center;margin-bottom:.4rem;font-size:.95rem}.pending-start-list{border:2px solid var(--border);background:linear-gradient(135deg,#ffffffc7,#ffffffeb);border-radius:0;outline:1px solid #0000000a;flex-direction:column;gap:.5rem;width:fit-content;max-width:100%;margin:0 auto;padding:.75rem;display:flex;box-shadow:0 10px 18px -16px #00000059,inset 0 0 0 1px #ffffffe6}.pending-start-item{cursor:pointer;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.8rem;display:flex}.pending-start-meta{flex-direction:column;gap:.15rem;min-width:220px;display:flex}.pending-start-meta span{color:var(--text-muted)}@media (max-width:700px){.pending-finish-list,.pending-start-list{width:100%;margin:0;padding:.85rem}.pending-finish-item,.pending-start-item{flex-direction:column;align-items:stretch;gap:.5rem}.pending-finish-meta,.pending-start-meta{min-width:0}.pending-finish-list .primary,.pending-start-list .primary{justify-content:center;width:100%}}.panel{background:linear-gradient(180deg, var(--surface) 0%, var(--surface-alt) 100%);border:1px solid var(--border);box-shadow:var(--shadow);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);flex-direction:column;display:flex}.panel-header{border-bottom:1px solid var(--border);background:#fff6;justify-content:space-between;align-items:center;gap:1rem;padding:1.1rem 1.6rem;display:flex}.panel-header h2{letter-spacing:.08em;text-transform:uppercase;margin:0;font-size:1.2rem}.panel-header--actions{justify-content:flex-end}.panel-header--spacer{border-bottom:none;min-height:auto;padding:.4rem 1.6rem}.panel-actions{gap:.75rem;width:100%;display:flex}.form-overlay{z-index:80;background:#1b1d2d8c;justify-content:center;align-items:center;padding:1.5rem;display:flex;position:fixed;inset:0;overflow-y:auto}.book-modal{background:var(--surface);border:1px solid var(--border);width:min(640px,100%);box-shadow:var(--shadow);flex-direction:column;gap:1rem;padding:1.5rem;display:flex}.modal-header{justify-content:space-between;align-items:center;display:flex}.modal-header h3{margin:0}.modal-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.75rem;display:grid}.modal-field{color:var(--text-muted);flex-direction:column;gap:.25rem;font-size:.85rem;display:flex}.modal-field span{letter-spacing:.02em;font-size:.8rem}.modal-field input,.modal-field select{width:100%}.modal-field-small{max-width:200px}.modal-field-rating{min-width:min(100%,260px)}.checkbox-field{flex-direction:row;align-items:center;gap:.5rem}.checkbox-field input{width:auto}.book-rating-options{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.book-rating-option{background:var(--surface-alt);border:1px solid var(--border);color:var(--text-muted);cursor:pointer;border-radius:999px;align-items:center;gap:.4rem;padding:.45rem .75rem;transition:border-color .15s,background .15s,color .15s;display:inline-flex}.book-rating-option:hover,.book-rating-option.active{border-color:var(--primary);background:var(--pill-accent-bg);color:var(--pill-accent-text)}.book-rating-option-icon{font-size:1.25rem;line-height:1}.book-rating-option:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.book-modal textarea{resize:vertical;min-height:120px}.cover-upload{flex-wrap:wrap;align-items:stretch;gap:1rem;display:flex}.cover-upload img,.cover-placeholder{object-fit:cover;background:var(--surface-alt);border:1px dashed var(--border);text-transform:uppercase;width:140px;height:200px;color:var(--text-muted);justify-content:center;align-items:center;font-size:.9rem;display:flex}.cover-upload-controls{flex-direction:column;flex:1;gap:.5rem;display:flex}.cover-upload-actions{flex-wrap:wrap;gap:.5rem;display:flex}.cover-upload-actions .secondary{flex:1 0 220px}.cover-upload-controls input{width:100%;max-width:100%}.modal-footer{justify-content:flex-end;gap:.75rem;display:flex}.panel-body{flex-direction:column;gap:1.5rem;padding:1.5rem;display:flex}.recommendations-panel{align-items:center;gap:1rem}.recommendations-wishlist{width:min(920px,100%)}.recommendations-wishlist-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:.75rem;display:grid}.recommendations-content{border:1px solid var(--border);background:var(--surface);white-space:pre-wrap;width:min(920px,100%);margin:0 auto;padding:1.25rem 1.5rem;font-size:1rem;line-height:1.65}.recommendations-input{resize:vertical;border:1px solid var(--border);background:var(--surface-alt);width:100%;min-height:220px;padding:.85rem 1rem;font-size:.95rem;line-height:1.5}.recommendation-card-list{flex-direction:column;gap:1rem;width:min(920px,100%);margin:0 auto;display:flex}.recommendation-card{border:1px solid var(--border);border-left:4px solid var(--primary);background:var(--surface);border-radius:0;gap:1rem;width:100%;padding:1.1rem 1.35rem;display:flex;box-shadow:0 18px 32px -32px #141f2fcc}.recommendation-card-number{border:2px solid var(--primary);font-variant-numeric:tabular-nums;width:2.4rem;min-width:2.4rem;height:2.4rem;color:var(--primary);border-radius:0;justify-content:center;align-items:center;font-weight:700;display:flex}.recommendation-card-body{flex-direction:column;flex:1;gap:.4rem;display:flex}.recommendation-card-title{font-size:1.05rem;font-family:var(--font-title);margin:0}.recommendation-card-meta{color:var(--text-muted);margin:0;font-weight:600}.recommendation-card-summary{margin:.6rem 0 0}.recommendation-card-affinity{color:var(--text-muted);margin:.2rem 0 0;font-style:italic}.recommendation-card-details{flex-direction:column;gap:.2rem;font-size:.95rem;line-height:1.45;display:flex}.recommendation-card-details p{margin:0}.recommendation-card-details ul{margin:.15rem 0 .45rem .85rem;padding-left:.85rem;list-style:outside}.recommendation-card-details li{margin-bottom:.2rem}.recommendation-card-actions{margin-top:.6rem}.library-panel{background:#f7f1e3;padding:0;position:relative;overflow:hidden}.library-panel:before{content:"";pointer-events:none;mix-blend-mode:multiply;opacity:.5;background:radial-gradient(circle at 20% 20%,#0000000a,#0000 32%),radial-gradient(circle at 80% 40%,#00000008,#0000 28%),radial-gradient(circle at 40% 80%,#0000000a,#0000 30%),linear-gradient(#4e3b230d,#ffffff05);position:absolute;inset:0}.library-sections{z-index:1;flex-direction:column;gap:40px;width:100%;max-width:1180px;margin:0 auto;padding:28px 20px 34px;display:flex;position:relative}.library-view-toolbar{background:#4e3b231f;border:1px solid #4e3b2338;justify-content:flex-end;gap:1px;margin-bottom:-20px;margin-left:auto;padding:1px;display:flex}.library-view-toggle{color:#2c1906;font:inherit;cursor:pointer;background:#ffffff85;border:0;justify-content:center;align-items:center;gap:.5rem;padding:.58rem .82rem;font-size:.82rem;font-weight:700;transition:background .15s,border-color .15s,transform .15s;display:inline-flex}.library-view-toggle:hover,.library-view-toggle[aria-pressed=true]{background:#ffffffd1}.library-view-toggle[aria-pressed=true]{box-shadow:inset 0 -2px #6b5740}.library-view-toggle:hover{transform:translateY(-1px)}.library-view-toggle:focus-visible{outline-offset:2px;outline:2px solid #6b5740}.library-category{min-width:0}.library-category-header{color:#2c1906;align-items:center;gap:.65rem;margin:0 0 14px;display:flex}.library-category-header h2{font-family:var(--font-title);margin:0;font-size:clamp(1.45rem,3vw,2rem);line-height:1.15}.library-category-icon{justify-content:center;align-items:center;min-width:2rem;font-size:1.5rem;line-height:1;display:inline-flex}.library-category-empty{color:#6b5740;background:#ffffff59;border:1px dashed #4e3b2340;margin:0;padding:1rem 1.1rem}.library-text-list{background:#4e3b2329;border:1px solid #4e3b2333;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;margin:0;padding:1px;list-style:none;display:grid}.library-text-list li{color:#2c1906;background:#ffffffb8;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.75rem;min-width:0;min-height:66px;padding:.72rem .85rem;display:grid}.library-text-list li:last-child:nth-child(odd){grid-column:1/-1}.library-text-list-book{flex-direction:column;gap:.16rem;min-width:0;display:flex}.library-text-list-book strong,.library-text-list-book>span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.library-text-list-book strong{font-family:var(--font-title);font-size:.94rem;line-height:1.25}.library-text-list-book>span{color:#6b5740;font-size:.78rem}.library-text-list-meta{color:#78644d;white-space:nowrap;flex-direction:column;align-items:flex-end;gap:.16rem;font-size:.7rem;display:flex}.library-cover-mosaic{background:#2c19062e;border:1px solid #2c1906b3;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:5px;margin:0;padding:7px;list-style:none;display:grid;box-shadow:0 14px 30px -24px #2c1906e6}.library-cover-tile{aspect-ratio:2/3;background:#e7dcc7;min-width:0;position:relative;overflow:hidden;box-shadow:inset 0 0 0 1px #ffffff2e}.library-cover-button{width:100%;height:100%;color:inherit;font:inherit;cursor:zoom-in;background:0 0;border:0;padding:0;display:block;position:relative;overflow:hidden}.library-cover-button:focus-visible{outline-offset:-5px;outline:3px solid #fff;box-shadow:inset 0 0 0 6px #6b5740}.library-cover-tile img{object-fit:cover;transition:transform .2s,filter .2s}.library-cover-button:hover img{filter:saturate(1.04)contrast(1.02);transform:scale(1.025)}.library-cover-placeholder{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:.65rem;width:100%;height:100%;padding:.9rem .65rem;display:flex}.library-cover-placeholder:before,.library-cover-placeholder:after{content:"";opacity:.45;background:currentColor;width:52%;height:1px}.library-cover-placeholder strong{font-family:var(--font-title);overflow-wrap:anywhere;font-size:clamp(.72rem,1.2vw,.94rem);line-height:1.25}.library-cover-placeholder span{opacity:.82;font-size:clamp(.6rem,1vw,.74rem);line-height:1.3}.library-cover-modal-overlay{z-index:120;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);cursor:zoom-out;background:#100c08d6;place-items:center;padding:1.5rem;animation:.16s ease-out library-cover-overlay-in;display:grid;position:fixed;inset:0;overflow-y:auto}.library-cover-dialog{cursor:default;flex-direction:column;align-items:center;gap:.9rem;max-width:100%;animation:.2s ease-out library-cover-dialog-in;display:flex;position:relative}.library-cover-dialog-image{aspect-ratio:2/3;background:#e7dcc7;width:min(82vw,56vh,560px);position:relative;overflow:hidden;box-shadow:0 28px 70px #0000007a}.library-cover-dialog-image img{object-fit:contain}.library-cover-placeholder--large{padding:2rem 1.5rem}.library-cover-placeholder--large strong{font-size:clamp(1.15rem,3vw,1.8rem)}.library-cover-placeholder--large span{font-size:clamp(.85rem,2vw,1.05rem);display:block}.library-cover-dialog-caption{color:#fff;text-align:center;max-width:min(82vw,560px)}.library-cover-dialog-caption h2,.library-cover-dialog-caption p{margin:0}.library-cover-dialog-caption h2{color:#fff;font-family:var(--font-title);font-size:clamp(1.05rem,3vw,1.35rem);line-height:1.25}.library-cover-dialog-caption p{color:#ffffffbf;margin-top:.2rem;font-size:.86rem}.library-cover-dialog-close{top:max(1rem, env(safe-area-inset-top));right:max(1rem, env(safe-area-inset-right));z-index:1;color:#fff;cursor:pointer;background:#100c08a8;border:1px solid #ffffff80;border-radius:50%;width:2.75rem;height:2.75rem;padding:0;font:300 2rem/1 system-ui,sans-serif;position:fixed}.library-cover-dialog-close:hover{background:#ffffff2e}.library-cover-dialog-close:focus-visible{outline-offset:3px;outline:2px solid #fff}@keyframes library-cover-overlay-in{0%{opacity:0}to{opacity:1}}@keyframes library-cover-dialog-in{0%{opacity:0;transform:scale(.97)}to{opacity:1;transform:scale(1)}}@media (prefers-reduced-motion:reduce){.library-cover-modal-overlay,.library-cover-dialog{animation:none}.library-cover-tile img{transition:none}}.library-shelves{flex-direction:column;gap:18px;width:100%;max-width:100%;display:flex}.library-shelf{filter:none;background:repeating-linear-gradient(90deg,#00000008 0 6%,#ffffff0a 12%,#00000005 18%),linear-gradient(#0000000f,#ffffff0f);border:1px solid #0000000a;border-radius:0;padding:16px 12px 24px;position:relative;box-shadow:inset 0 -2px #00000014}.library-shelf:before{content:"";pointer-events:none;opacity:1.35;background:repeating-radial-gradient(circle at 6% 14%, #ffffff61 0 1px, transparent 1px 12px), repeating-conic-gradient(from 18deg at 6% 14%, #ffffff52 0 2deg, transparent 2deg 22deg), repeating-radial-gradient(circle at 94% 10%, #ffffff57 0 1px, transparent 1px 12px), repeating-conic-gradient(from -12deg at 94% 10%, #ffffff47 0 2deg, transparent 2deg 22deg);mix-blend-mode:multiply;filter:blur(.25px);background-position:0 0,0 0,100% 0,100% 0;background-repeat:no-repeat;background-size:170px 170px,170px 170px,150px 150px,150px 150px;position:absolute;inset:0}.shelf-wood{background:repeating-linear-gradient(90deg,#0000000d 0 4%,#ffffff0d 8%,#00000008 12%),linear-gradient(90deg,#c79b73,#b6845c 40%,#d8af82);border-radius:0;height:8px;position:absolute;bottom:8px;left:0;right:0;box-shadow:inset 0 1px #ffffff40,0 3px 6px #0000001f}.shelf-books{flex-wrap:wrap;align-items:flex-end;gap:8px;min-height:130px;display:flex;overflow:visible}.book-spine{min-height:250px;color:var(--text);text-align:center;filter:none;background-image:linear-gradient(90deg,#ffffff14 0,#ffffff2e 16%,#fff0 32%),linear-gradient(#00000014,#ffffff0a);border:none;border-radius:8px;flex:none;justify-content:center;align-items:center;gap:6px;padding:10px 12px;display:flex;position:relative;overflow:hidden;box-shadow:inset 0 0 0 1px #0000000a,inset 6px 0 12px #ffffff40,0 10px 18px -12px #0006,0 12px 22px -14px #00000059}.book-spine:before,.book-spine:after{content:"";background:#0000000d;border-radius:6px;height:6px;position:absolute;left:6px;right:6px;box-shadow:inset 0 1px 1px #ffffff59}.book-spine:before{top:6px}.book-spine:after{bottom:6px}.book-spine--empty{box-shadow:none;pointer-events:none;background:0 0;border:none}.book-spine--spacer{box-shadow:none;pointer-events:none;background:0 0;border:none;flex:none}.book-spine--spacer:before,.book-spine--spacer:after,.book-spine--empty:before,.book-spine--empty:after{display:none}.book-spine-title{writing-mode:vertical-rl;text-align:center;white-space:normal;word-break:keep-all;overflow-wrap:normal;max-inline-size:22ch;font-size:1.14rem;font-weight:700;line-height:1.32;display:block;transform:rotate(180deg)}.book-spine-author{opacity:.85;writing-mode:vertical-rl;text-align:center;white-space:normal;word-break:keep-all;overflow-wrap:normal;max-inline-size:18ch;font-size:1rem;line-height:1.25;display:block;transform:rotate(180deg)}.book-spine-symbol{opacity:.85;writing-mode:vertical-rl;letter-spacing:.08em;font-size:.96rem;transform:rotate(180deg)}.book-spine-content{flex-direction:column;justify-content:flex-start;align-items:center;gap:10px;height:100%;padding-top:28px;padding-bottom:10px;display:flex}.book-spine-year{opacity:.85;margin-top:auto;padding-top:6px;padding-bottom:4px;font-size:1.02rem}@media (max-width:640px){.library-sections{gap:32px;padding-inline:12px}.library-view-toolbar{width:100%;margin-bottom:-16px}.library-view-toggle{flex:1 1 0;min-width:0;padding-inline:.5rem}.library-text-list{grid-template-columns:minmax(0,1fr)}.library-text-list li{grid-template-columns:minmax(0,1fr);gap:.6rem}.library-text-list-meta{flex-direction:row;grid-column:1;align-items:center;gap:.55rem}.library-cover-mosaic{grid-template-columns:repeat(auto-fill,minmax(76px,1fr));gap:3px;padding:4px}.library-cover-placeholder{padding:.55rem .35rem}.library-cover-placeholder span{display:none}.shelf-books{flex-wrap:nowrap;padding-bottom:6px;overflow-x:auto}.shelf-books::-webkit-scrollbar{height:8px}.shelf-books::-webkit-scrollbar-thumb{background:#00000026;border-radius:0}.shelf-books::-webkit-scrollbar-track{background:0 0}.recommendation-card{flex-direction:column}.recommendation-card-number{border-width:1.5px;width:2.1rem;height:2.1rem}.recommendation-card-details ul{margin-left:.65rem;padding-left:.65rem}}.calendar-body{gap:.5rem}@media (max-width:640px){.form-overlay{align-items:flex-start;padding:1rem}.book-modal{width:100%;margin-top:1rem}.cover-upload{flex-direction:column}.cover-upload img,.cover-placeholder{aspect-ratio:3/4;width:100%;height:auto}.cover-upload-actions{flex-direction:column}.cover-upload-actions .secondary{text-align:center;flex:auto;width:100%}}.panel-body.split{grid-template-columns:minmax(0,1.8fr) minmax(340px,1fr);gap:1.5rem;display:grid}.table-wrapper{border:1px solid var(--border);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#fff9;overflow:hidden}.table-wrapper table{border-collapse:collapse;width:100%;font-size:.95rem}.table-wrapper th,.table-wrapper td{text-align:left;vertical-align:top;border-bottom:1px solid #0000000a;padding:.85rem 1rem}.table-wrapper thead tr{background:var(--table-head-bg)}.table-wrapper th{text-transform:uppercase;letter-spacing:.08em;color:var(--table-head-text,var(--text-muted));border-bottom:1px solid var(--border);background:0 0;font-size:.8rem}.table-wrapper th.sortable{cursor:pointer;color:var(--text)}.table-wrapper tbody tr:nth-child(2n){background:#00000004}.table-wrapper tbody tr:hover{background:var(--table-hover)}.table-wrapper tbody tr.selected{background:var(--table-selected)}.word-term-cell{align-items:center;display:flex}.word-link{font:inherit;color:var(--primary);cursor:pointer;text-align:left;background:0 0;border:none;padding:0;font-weight:600}.word-link:hover,.word-link:focus-visible{text-decoration:underline}.words-panel .panel-body{align-items:stretch;gap:1.25rem}.word-cloud-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1rem;width:100%;display:grid}.word-cloud-card{border:1px solid var(--border);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-sizing:border-box;background:#ffffff94;flex-direction:column;gap:.5rem;width:100%;padding:.8rem;display:flex}.word-cloud-card--all{margin-bottom:1.5rem}.word-cloud-header{justify-content:space-between;align-items:baseline;gap:.5rem;display:flex}.word-cloud-header h3{font-size:1rem;font-family:var(--font-title);letter-spacing:.02em;text-transform:none;margin:0}.word-cloud-header small{color:var(--text-muted);margin-top:.1rem;display:block}.word-cloud-body{flex-wrap:wrap;gap:.3rem;display:flex}.word-cloud-body--single{gap:.4rem}.word-cloud-chip{border:1px dashed var(--border);background:var(--surface-alt);color:var(--text);cursor:pointer;padding:.15rem .4rem;line-height:1.25;transition:background .2s,color .2s,border-color .2s,transform .2s}.word-cloud-chip--full{flex-direction:column;align-items:flex-start;gap:0;padding:.35rem .6rem;display:flex}.word-cloud-chip:hover,.word-cloud-chip:focus-visible{background:var(--primary);color:#fff;border-color:#0000}.word-cloud-chip:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.word-cloud-chip:active{transform:scale(.97)}.word-cloud-empty{color:var(--text-muted);margin:0}.words-actions{justify-content:flex-end;width:100%;margin-top:1rem;display:flex}.words-table-grid{grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:1rem;width:100%;display:grid}.words-table-section{flex-direction:column;gap:.4rem;display:flex}.words-table-heading{justify-content:space-between;align-items:baseline;gap:.5rem;padding:0 .1rem;display:flex}.words-table-heading h4{letter-spacing:.02em;font-size:1rem;font-family:var(--font-title);margin:0}.words-table-count{color:var(--text-muted)}.words-table-wrapper{width:100%;max-width:100%;margin:0;overflow-x:auto}.words-table-wrapper table{table-layout:auto;border-collapse:collapse;width:100%}.words-table-wrapper table th,.words-table-wrapper table td{white-space:nowrap;padding:.45rem .65rem}.words-table-empty-row td{color:var(--text-muted);padding:.6rem .65rem;font-style:italic}.favorite-words-section{width:min(900px,100%);margin:0 auto 1.25rem}.favorite-words-list{flex-direction:column;gap:.75rem;display:flex}.favorite-word-card{border:1px solid var(--border);background:#ffffffb3;border-radius:0;padding:.75rem .9rem;box-shadow:0 12px 28px -18px #0000002e}.favorite-word-head{justify-content:space-between;align-items:center;gap:.5rem;margin-bottom:.4rem;display:flex}.favorite-word-head strong{font-size:1rem}.favorite-word-definition{flex-direction:column;gap:.2rem;margin:0;padding:0;list-style:none;display:flex}.favorite-word-definition li{line-height:1.35}.words-table-wrapper table th:nth-child(3),.words-table-wrapper table td:nth-child(3){width:auto}@media (max-width:720px){.words-table-wrapper{width:100%}.words-table-wrapper table th:nth-child(3),.words-table-wrapper table td:nth-child(3){display:none}.words-table-wrapper table th,.words-table-wrapper table td{padding:.35rem .5rem}}.detail-panel{border:1px solid var(--border);background:var(--surface-alt);flex-direction:column;gap:1rem;padding:1.25rem;display:flex}.detail-modal{z-index:50;background:#00000080;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}.detail-modal-card{background:var(--surface);border:1px solid var(--border);flex-direction:column;gap:1rem;width:min(480px,100%);max-height:90vh;padding:1rem;display:flex;overflow-y:auto}.close-button{cursor:pointer;color:var(--text-muted);background:0 0;border:none;align-self:flex-end;font-size:.9rem}.detail-summary{color:var(--text);white-space:pre-wrap;margin:0;line-height:1.5}.detail-characters{border:1px solid var(--border);background:var(--surface);flex-direction:column;gap:.5rem;padding:.9rem 1rem;display:flex}.detail-header{border-bottom:1px solid var(--border);flex-direction:column;gap:.15rem;padding-bottom:.5rem;display:flex}.detail-header h3{font-family:var(--font-book-title);color:var(--primary);letter-spacing:0;margin:0;font-size:2rem}.detail-header span{font-family:var(--font-author);letter-spacing:.05em;text-transform:uppercase;color:var(--text-muted);font-size:.95rem}.cover-thumb{border:1px solid var(--border);background:var(--surface-alt);aspect-ratio:2/3;width:100%;font-family:var(--font-title);color:var(--primary);text-transform:uppercase;letter-spacing:.08em;justify-content:center;align-items:center;font-size:clamp(1.4rem,3vw,2.5rem);font-weight:600;display:flex}.cover-thumb.large{aspect-ratio:auto;background:var(--surface);width:180px;height:260px;font-size:3rem}.detail-cover{justify-content:center;padding:.5rem 0 1rem;display:flex}.detail-cover img,.cover-thumb.large{object-fit:cover;border:1px solid var(--border);background:#fff;width:180px;height:260px;box-shadow:0 25px 45px -30px #0009}.detail-actions{justify-content:flex-end;display:flex}.detail-meta{border:1px solid var(--border);background:#fff9;flex-direction:column;gap:.65rem;padding:.75rem 1rem;display:flex}.detail-meta-row{gap:1.2rem;width:100%;display:flex}.detail-meta-row>div{border-right:1px solid var(--border);flex-direction:column;flex:1;gap:.2rem;padding-right:.75rem;display:flex}.detail-meta-row>div:last-child{border-right:none;padding-right:0}.detail-meta-row span{text-transform:uppercase;color:var(--text-muted);letter-spacing:.08em;font-size:.75rem}.detail-meta-row strong{font-size:1.1rem}.detail-rating{color:var(--text);align-items:center;gap:.15rem;font-size:1.15rem;display:flex}.detail-rating-icon{margin-right:.25rem;font-size:1.35rem;line-height:1}.book-rating-summary{white-space:nowrap;align-items:center;gap:.35rem;display:inline-flex}.detail-sections{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.25rem;display:grid}.detail-section{border:1px solid var(--border);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#ffffff8c;flex-direction:column;gap:.75rem;padding:1rem;display:flex}.pill-list{flex-wrap:wrap;gap:.4rem;display:flex}.pill{border:1px solid var(--border);background:var(--surface-alt);align-items:center;gap:.35rem;padding:.35rem .65rem;font-size:.9rem;display:inline-flex}.pill-accent{background:var(--pill-accent-bg);border-color:var(--pill-accent-border);color:var(--pill-accent-text)}button.pill{border:1px solid var(--border);background:var(--surface-alt);font:inherit;cursor:pointer;color:inherit}button.pill:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.pill-button{background:var(--surface)}.pill-button:hover,.pill-button:focus-visible{background:var(--surface-alt);border-color:var(--primary);color:var(--primary)}.pill-muted{background:var(--surface)}.section-header{letter-spacing:.06em;color:var(--text-muted);justify-content:space-between;align-items:center;font-size:.85rem;display:flex}.section-count{color:var(--text);font-weight:600}.detail-input{width:100%}.detail-list{flex-direction:column;gap:.5rem;margin:0;padding:0;list-style:none;display:flex}.detail-list li{border:1px solid var(--border);background:var(--surface-alt);padding:.5rem .75rem;font-size:.95rem}.detail-empty{color:var(--text-muted);margin:0;font-size:.9rem}.word-input-row{gap:.5rem;display:flex}.word-input-row input{flex:1}.chip-remove{color:var(--text-muted);cursor:pointer;background:0 0;border:none;padding:0;font-size:1rem;line-height:1}.books-table-wrapper{overflow-x:auto}.books-column{flex-direction:column;gap:1rem;display:flex}.books-table-wrapper th:nth-child(3),.books-table-wrapper td:nth-child(3),.books-table-wrapper th:nth-child(4),.books-table-wrapper td:nth-child(4),.books-table-wrapper th:nth-child(5),.books-table-wrapper td:nth-child(5){text-align:center;white-space:nowrap}.word-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;display:grid}.stats-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem;display:grid}.admin-grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.25rem;display:grid}.admin-section{border:1px solid var(--border);background:var(--surface);flex-direction:column;gap:.75rem;padding:1rem 1.2rem;display:flex}.admin-section-wide{grid-column:1/-1}.admin-section-compact{justify-content:center;align-items:center}.user-toggle{flex-wrap:wrap;justify-content:flex-start;gap:.75rem;display:flex}.admin-section-compact .user-toggle{justify-content:center;width:100%}.user-toggle .secondary.active{background:var(--primary);color:#fff;border-color:var(--primary)}.admin-actions{flex-wrap:wrap;align-items:center;gap:.75rem;display:flex}.upload-label{cursor:pointer;justify-content:center;width:auto;padding:.55rem .9rem;display:inline-flex}.theme-picker{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;display:grid}.theme-section-intro h3,.theme-section-intro p,.theme-classic-header h4,.theme-classic-header p{margin:0}.theme-section-intro{flex-direction:column;gap:.25rem;display:flex}.theme-classic-header{border-top:1px solid var(--border);margin-top:.25rem;padding-top:.9rem}.theme-classic-header h4{letter-spacing:.05em;text-transform:uppercase;font-size:.95rem}.aged-theme-picker{grid-template-columns:repeat(3,minmax(0,1fr));gap:.9rem;display:grid}.aged-theme-card{border:1px solid var(--border);background:var(--surface-alt);min-width:0;color:var(--text);text-align:left;cursor:pointer;flex-direction:column;gap:.7rem;padding:.65rem;transition:border-color .2s,box-shadow .2s,transform .2s;display:flex}.aged-theme-card:hover{border-color:var(--border-strong);transform:translateY(-2px);box-shadow:0 16px 26px -22px #181008a6}.aged-theme-card:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.aged-theme-card.active{border-color:var(--primary);box-shadow:0 0 0 2px rgba(var(--primary-rgb), .18), 0 18px 30px -24px #181008b3}.aged-theme-preview{--preview-paper:#f2e8d2;--preview-ink:#382f27;--preview-rule:#7b3030;--preview-frame:#aa9778;aspect-ratio:16/9;border:1px solid var(--preview-frame);background:repeating-linear-gradient(3deg, #37261606 0 1px, transparent 1px 5px), var(--preview-paper);width:100%;display:block;position:relative;overflow:hidden;box-shadow:inset 0 0 0 3px #ffffff52}.aged-preview-toolbar{border-bottom:1px solid var(--preview-rule);background:#ffffff2e;justify-content:center;align-items:center;gap:8%;height:21%;display:flex}.aged-preview-toolbar i,.aged-preview-switcher i,.aged-preview-heading,.aged-preview-rule,.aged-preview-books i{display:block}.aged-preview-toolbar i{background:var(--preview-ink);opacity:.72;width:9%;height:2px}.aged-preview-switcher{border:1px solid var(--preview-frame);grid-template-columns:repeat(3,1fr);height:11%;display:grid;position:absolute;top:27%;left:35%;right:35%}.aged-preview-switcher i+i{border-left:1px solid var(--preview-frame)}.aged-preview-switcher i:last-child{background:var(--preview-rule)}.aged-preview-heading{background:var(--preview-ink);width:27%;height:4px;position:absolute;top:46%;left:7%}.aged-preview-rule{background:var(--preview-rule);opacity:.72;height:1px;position:absolute;top:71%;left:7%;right:7%}.aged-preview-books{align-items:stretch;gap:3%;height:14%;display:flex;position:absolute;top:54%;left:7%;right:7%}.aged-preview-books--short{height:15%;top:76%;right:27%}.aged-preview-books i{background:#264653;border:1px solid #2019123d;flex:1 1 0;box-shadow:1px 2px 3px #23170c33}.aged-preview-books i:nth-child(2){background:#9a4b35}.aged-preview-books i:nth-child(3){background:#d0b275}.aged-preview-books i:nth-child(4){background:#26343e}.aged-preview-books i:nth-child(5){background:#65724a}.aged-theme-preview[data-preview=library]{--preview-paper:#edddbd;--preview-ink:#342012;--preview-rule:#a47c43;--preview-frame:#3d2214;background:repeating-linear-gradient(7deg, #47230f0b 0 2px, transparent 2px 8px), var(--preview-paper);border-width:5px;box-shadow:inset 0 0 0 2px #b08850,inset 0 0 0 4px #4a2918}.aged-theme-preview[data-preview=library] .aged-preview-toolbar{color:#f2d6a2;background:repeating-linear-gradient(7deg,#ffdc9e0a 0 2px,#0000 2px 8px),#3b2012}.aged-theme-preview[data-preview=library] .aged-preview-toolbar i{background:#d6ad68}.aged-theme-preview[data-preview=library] .aged-preview-switcher{background:#fff6de59}.aged-theme-preview[data-preview=archive]{--preview-paper:#e9dbb5;--preview-ink:#315c73;--preview-rule:#315c73;--preview-frame:#7a796d;background:repeating-linear-gradient(0deg, #315c731a 0 1px, transparent 1px 17px), var(--preview-paper);border-top:5px solid var(--preview-rule);box-shadow:inset 0 0 0 2px #fff9dc6b}.aged-theme-preview[data-preview=archive]:after{content:"N.º 0427";color:#a4523d;letter-spacing:.08em;border:1px solid #a4523d;padding:1px 3px;font:600 6px/1 Courier New,monospace;position:absolute;top:25%;right:5%;transform:rotate(-2deg)}.aged-theme-card-copy{justify-content:space-between;align-items:flex-start;gap:.6rem;display:flex}.aged-theme-card-copy>span:first-child{flex-direction:column;gap:.1rem;min-width:0;display:flex}.aged-theme-card-copy strong{color:var(--text);font-family:var(--font-title);font-size:.96rem}.aged-theme-card-copy small{color:var(--text-muted);font-size:.72rem;line-height:1.3}@media (max-width:820px){.aged-theme-picker{grid-template-columns:minmax(0,1fr)}.aged-theme-preview{aspect-ratio:16/7}}@media (max-width:520px){.theme-classic-header{flex-direction:column;align-items:stretch}.theme-classic-header .secondary{width:100%}}.theme-card{border:1px solid var(--border);background:var(--surface-alt);text-align:left;cursor:pointer;color:var(--text);flex-direction:column;gap:.45rem;padding:.85rem;transition:border-color .2s,transform .2s;display:flex}.theme-card.active{border-color:var(--primary);transform:translateY(-1px);box-shadow:0 15px 30px -24px #00000073}.theme-card-head{justify-content:space-between;align-items:center;gap:.5rem;display:flex}.theme-card-head strong{color:var(--text);font-size:1rem}.theme-badge{border:1px solid var(--primary);color:var(--primary);text-transform:uppercase;letter-spacing:.08em;padding:.1rem .4rem;font-size:.7rem}.theme-swatch-row{gap:.25rem;display:inline-flex}.theme-swatch-row span{border:1px solid #00000014;border-radius:0;width:18px;height:18px}.collapsible-header{justify-content:space-between;align-items:center;gap:1rem;display:flex}.wishlist-list{flex-direction:column;gap:.75rem;display:flex}.wishlist-card{border:1px solid var(--border);background:var(--surface-alt);flex-direction:column;gap:.4rem;padding:.85rem;display:flex}.wishlist-author{color:var(--text-muted);margin:.1rem 0 0}.wishlist-meta{margin:0;font-weight:600}.wishlist-summary{margin:.2rem 0 0}.wishlist-affinity{color:var(--text-muted);margin:0;font-style:italic}.wishlist-actions{flex-wrap:wrap;gap:.5rem;display:flex}.kobo-list{flex-direction:column;gap:.85rem;margin-top:.75rem;display:flex}.kobo-group{border:1px solid var(--border);background:var(--surface-alt);grid-template-columns:minmax(0,2fr) minmax(180px,1fr);align-items:stretch;gap:.75rem;padding:.9rem;display:grid}.kobo-main{flex-direction:column;gap:.4rem;display:flex}.kobo-text{font-size:.95rem;font-weight:600}.kobo-items{flex-wrap:wrap;gap:.4rem;display:flex}.kobo-chip{border:1px solid var(--border);background:var(--surface);padding:.25rem .6rem;font-size:.85rem}.kobo-group select{align-self:center;width:100%;padding:.4rem}.definition-admin-actions{flex-wrap:wrap;gap:.75rem}.definition-pending-list{flex-direction:column;gap:.85rem;margin-top:.85rem;display:flex}.definition-pending-card{border:1px solid var(--border);background:var(--surface-alt);flex-direction:column;gap:.6rem;padding:.85rem 1rem;display:flex}.definition-pending-meta{justify-content:space-between;gap:.75rem;display:flex}.definition-pending-books{color:var(--text-muted);margin:.15rem 0 0;font-size:.85rem}.definition-pending-card textarea{resize:vertical;border:1px solid var(--border);background:var(--surface);width:100%;min-height:90px;color:var(--text);padding:.5rem .75rem;font-family:inherit}.definition-pending-actions{justify-content:flex-end;display:flex}.pin-container{background:var(--bg);justify-content:center;align-items:center;min-height:100vh;display:flex}.pin-card{background:var(--surface);border:1px solid var(--border);width:min(320px,90vw);box-shadow:var(--shadow);flex-direction:column;gap:1rem;padding:2rem;display:flex}.pin-card input{border:1px solid var(--border);padding:.65rem}.pin-error{color:#c0392b;margin:0}.stats-section{border:1px solid var(--border);background:var(--surface);flex-direction:column;gap:.8rem;padding:1rem;display:flex}.stats-section h3{text-transform:none;letter-spacing:.03em;font-size:1rem;font-family:var(--font-title);margin:0}.stats-highlight{background:rgba(var(--primary-rgb), .1);border:1px solid rgba(var(--primary-rgb), .25);border-radius:0;align-items:baseline;gap:.35rem;width:fit-content;padding:.5rem .75rem;display:inline-flex}.stats-highlight strong{font-size:1.5rem}.stats-highlight span{color:var(--text-muted)}.stats-section-wide{grid-column:1/-1}.stats-section-narrow{width:min(820px,100%);margin-left:auto;margin-right:auto}.stats-bar-chart{align-items:flex-end;gap:.6rem;min-height:160px;display:flex}.stats-bar-chart.vertical{justify-content:flex-end;align-items:flex-end;height:220px}.stats-bar-chart.horizontal{flex-direction:column;align-items:stretch;min-height:auto}.stats-bar{flex:1;justify-content:center;align-items:flex-end;height:100%;display:flex;position:relative}.stats-bar-fill{background:var(--stats-primary);border:1px solid var(--border);justify-content:center;align-items:flex-end;padding:.2rem;display:flex}.stats-bar-fill.vertical{width:100%;min-height:4px;display:flex}.stats-bar-chart.vertical{align-items:flex-end;height:220px;padding-bottom:2rem;position:relative}.stats-bar small{white-space:nowrap;color:var(--text-muted);font-size:.85rem;position:absolute;bottom:-1.6rem;left:50%;transform:translate(-50%)}.stats-bar-fill span,.stats-bar-fill strong{color:var(--surface);font-weight:600}.stats-line-chart{flex-direction:column;gap:.75rem;display:flex}.stats-line-chart.compact .stats-line-viewport{height:180px}.stats-line-viewport{border:1px solid var(--border);background:var(--surface-alt);border-radius:0;width:100%;height:230px;padding:1rem 1.5rem 2.6rem 2.8rem;position:relative}.stats-line-viewport svg{width:100%;height:100%}.stats-line-path{fill:none;stroke:var(--stats-primary);stroke-width:2.2px}.stats-line-point{fill:var(--surface);stroke:var(--primary);stroke-width:.8px;transition:stroke-width .15s}.stats-line-point-hit{fill:#0000;stroke:#0000;pointer-events:all}.stats-line-point-group:hover .stats-line-point,.stats-line-point-group:focus-within .stats-line-point{stroke-width:1.4px}.stats-line-point-label{opacity:0;fill:var(--text);paint-order:stroke;stroke:var(--surface);stroke-width:.35px;pointer-events:none;font-size:5.8px;transition:opacity .15s}.stats-line-point-group:hover .stats-line-point-label,.stats-line-point-group:focus-within .stats-line-point-label{opacity:1}.stats-line-tooltip{opacity:1;border:1px solid var(--border);color:var(--text);pointer-events:none;white-space:normal;z-index:3;background:#fff;border-radius:0;flex-direction:column;gap:.1rem;min-width:150px;padding:.5rem .7rem;font-size:.82rem;line-height:1.3;display:flex;position:absolute;transform:translate(-50%,-120%);box-shadow:0 8px 18px -12px #00000059}.stats-line-tooltip strong{font-size:.82rem}.stats-mini-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;display:grid}.stats-subtitle{color:var(--text-muted);margin:0 0 .4rem;font-size:.9rem}.stats-line-axis{color:var(--text-muted);pointer-events:none;font-size:.78rem;position:absolute}.stats-line-axis-y{flex-direction:column;justify-content:space-between;align-items:flex-start;display:flex;top:1rem;bottom:2.6rem;left:.6rem}.stats-line-axis-x{justify-content:space-between;align-items:flex-end;display:flex;bottom:.6rem;left:2.8rem;right:1.5rem}.stats-bar-fill.horizontal{flex:1;justify-content:flex-end;min-width:10px;height:30px;padding-right:.5rem}.stats-bar-fill.horizontal.note{background:var(--stats-secondary)}.stats-bar-fill.pages{background:var(--stats-primary)}.stats-ranking{flex-direction:column;gap:.5rem;margin:0;padding:0;list-style:none;display:flex}.stats-ranking.horizontal li{justify-content:flex-start;align-items:center;gap:.5rem}.language-stats{text-align:center;flex-wrap:wrap;justify-content:center;align-items:center;gap:1.5rem;display:flex}.language-pie{aspect-ratio:1;background:var(--surface-muted);width:160px;box-shadow:inset 0 0 0 1px var(--border);border-radius:50%;justify-content:center;align-items:center;display:flex;position:relative;overflow:hidden}.language-pie-center{background:var(--surface);border-radius:50%;flex-direction:column;justify-content:center;align-items:center;width:80px;height:80px;display:flex;box-shadow:0 12px 25px -18px #00000080}.language-pie-center strong{font-size:1.4rem;line-height:1}.language-pie-center span{text-transform:uppercase;color:var(--text-muted);letter-spacing:.06em;font-size:.75rem}.language-legend{flex-direction:column;align-items:center;gap:.4rem;min-width:160px;margin:0;padding:0;list-style:none;display:flex}.language-legend li{justify-content:center;align-items:center;gap:.6rem;font-size:.9rem;display:flex}.language-dot{border-radius:0;width:12px;height:12px;margin-right:.4rem;display:inline-flex}.language-dot-0{background:var(--primary)}.language-dot-1{background:var(--accent)}.stats-ranking.horizontal span{min-width:160px}.stats-ranking li{border:1px solid var(--border);background:var(--surface-alt);justify-content:space-between;padding:.5rem .75rem;display:flex}.stats-ranking.simple li{background:var(--surface)}.stats-rank-title{flex:1;margin-right:1rem;font-weight:600}.shared-books-section{justify-self:center;width:100%;max-width:920px;margin:0 auto}.shared-books-table-wrapper{margin-top:.5rem;overflow-x:auto}.shared-books-table{min-width:640px}.shared-books-table td:first-child{min-width:280px;font-weight:600}.shared-books-table td:nth-child(2){color:var(--text-muted)}.shared-books-table th:nth-child(3),.shared-books-table th:nth-child(4),.shared-books-table td:nth-child(3),.shared-books-table td:nth-child(4){text-align:center;white-space:nowrap;width:140px}.shared-books-table td:nth-child(3),.shared-books-table td:nth-child(4){font-size:.9rem;font-weight:600}.shared-books-table-wrapper tbody tr:hover{background:inherit}.reading-section{flex-direction:column;gap:.6rem;margin-top:1.25rem;display:flex}.reading-section h3{letter-spacing:.08em;text-transform:uppercase;color:var(--text-muted);margin:0;font-size:.95rem}.reading-table-wrapper table th:last-child,.reading-table-wrapper table td:last-child{text-align:center}@media (max-width:900px){.books-table-wrapper th:nth-child(3),.books-table-wrapper td:nth-child(3),.books-table-wrapper th:nth-child(4),.books-table-wrapper td:nth-child(4),.books-table-wrapper th:nth-child(5),.books-table-wrapper td:nth-child(5){display:none}.books-table-wrapper th:first-child,.books-table-wrapper td:first-child,.books-table-wrapper th:nth-child(2),.books-table-wrapper td:nth-child(2){width:auto}}.stats-rank-count{font-size:1rem}.edition-timeline{border:1px solid var(--border);background:var(--surface);width:min(680px,100%);height:220px;margin:0 auto;padding:2rem 2.875rem;position:relative;overflow:hidden}.edition-plot{position:absolute;inset:1.1rem 2rem 2.8rem 2.5rem;overflow:hidden}.timeline-axis{color:var(--text-muted);font-size:.75rem;position:absolute}.timeline-axis-x{justify-content:space-between;align-items:flex-end;display:flex;bottom:1.2rem;left:2.5rem;right:2rem}.timeline-axis-x:before{content:"";background:var(--border-strong);pointer-events:none;height:1px;position:absolute;top:-.35rem;left:0;right:0}.timeline-axis-y{text-align:right;flex-direction:column;justify-content:space-between;align-items:flex-end;width:2.6rem;padding-right:.7rem;display:flex;top:1.1rem;bottom:2.8rem;left:.9rem}.timeline-axis-y:before{content:"";background:var(--border-strong);pointer-events:none;width:1px;position:absolute;top:.2rem;bottom:.2rem;right:.25rem}.timeline-point{background:var(--primary);border:2px solid #fff;border-radius:0;width:10px;height:10px;position:absolute;transform:translate(-50%,-50%);box-shadow:0 4px 10px #00000026}.stats-dashboard-body{gap:1.25rem}.stats-dashboard-header{justify-content:space-between;align-items:flex-end;gap:1rem;display:flex}.stats-dashboard-header h2,.stats-card h3,.stats-list-modal h3{font-family:var(--font-title);margin:0}.stats-dashboard-header h2{font-size:clamp(1.65rem,3vw,2.35rem);line-height:1}.stats-eyebrow{color:var(--text-muted);letter-spacing:.12em;text-transform:uppercase;margin:0 0 .25rem;font-size:.72rem;font-weight:700}.stats-period-select{color:var(--text-muted);letter-spacing:.05em;text-transform:uppercase;align-items:center;gap:.65rem;font-size:.78rem;font-weight:700;display:flex}.stats-period-select select{border:1px solid var(--border);background:var(--surface);min-width:120px;color:var(--text);padding:.55rem 2rem .55rem .75rem}.stats-kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;display:grid}.stats-kpi-card,.stats-card{border:1px solid var(--border);background:var(--surface)}.stats-kpi-card{flex-direction:column;justify-content:space-between;gap:.65rem;min-width:0;padding:1rem 1.1rem;display:flex}.stats-kpi-card>div{align-items:baseline;gap:.45rem;min-width:0;display:flex}.stats-kpi-card strong{letter-spacing:-.04em;font-size:clamp(1.55rem,3vw,2.2rem);line-height:1}.stats-kpi-card span{color:var(--text-muted);font-size:.9rem}.stats-kpi-card small{color:var(--text-muted);font-size:.72rem}.stats-card{flex-direction:column;gap:.9rem;min-width:0;padding:1rem;display:flex}.stats-card-header{justify-content:space-between;align-items:flex-start;gap:.9rem;display:flex}.stats-card-header h3{font-size:1.05rem;line-height:1.25}.stats-card-header-wrap{flex-wrap:wrap}.stats-segmented{border:1px solid var(--border);background:var(--surface-alt);align-items:center;padding:.18rem;display:inline-flex}.stats-segmented button{color:var(--text-muted);cursor:pointer;background:0 0;border:0;padding:.38rem .62rem;font-size:.76rem}.stats-segmented button:hover,.stats-segmented button.active{background:var(--surface);color:var(--text)}.stats-segmented button.active{box-shadow:inset 0 0 0 1px rgba(var(--primary-rgb), .3)}.stats-segmented button:focus-visible,.stats-month-bar:focus-visible,.stats-list-more:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.stats-monthly-section{min-height:330px}.stats-monthly-chart{grid-template-columns:2.8rem minmax(0,1fr);gap:.55rem;min-width:0;display:grid}.stats-monthly-scale{height:225px;color:var(--text-muted);flex-direction:column;justify-content:space-between;align-items:flex-end;padding:.2rem 0 .1rem;font-size:.72rem;display:flex}.stats-monthly-scroll{overscroll-behavior-inline:contain;min-width:0;padding-bottom:.25rem;overflow-x:auto}.stats-monthly-plot{height:260px;min-width:max(100%, calc(var(--stats-month-count,8) * 58px));position:relative}.stats-monthly-grid-line{background:var(--border);pointer-events:none;height:1px;position:absolute;left:0;right:0}.stats-monthly-grid-line-top{top:.2rem}.stats-monthly-grid-line-middle{top:112px}.stats-monthly-grid-line-bottom{background:var(--border-strong);top:224px}.stats-month-bars{grid-template-columns:repeat(var(--stats-month-count), minmax(46px, 1fr));gap:.45rem;height:260px;margin:0;padding:0;list-style:none;display:grid;position:absolute;inset:0}.stats-month-bars li{text-align:center;grid-template-rows:225px 35px;align-items:end;min-width:0;display:grid}.stats-month-bar-track{justify-content:center;align-items:flex-end;height:225px;padding:0 .3rem;display:flex}.stats-month-bar{border:1px solid rgba(var(--primary-rgb), .45);background:linear-gradient(180deg, rgba(var(--primary-rgb), .72), rgba(var(--primary-rgb), .28));cursor:help;width:min(36px,72%);min-height:2px;transition:filter .15s,transform .15s;position:relative}.stats-month-bar:hover,.stats-month-bar:focus-visible{filter:saturate(1.35);transform:translateY(-2px)}.stats-month-bar span{color:var(--text);white-space:nowrap;font-size:.7rem;font-weight:700;position:absolute;top:-1.45rem;left:50%;transform:translate(-50%)}.stats-month-bars small{color:var(--text-muted);white-space:nowrap;align-self:start;padding-top:.55rem;font-size:.7rem}.stats-insight-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),22rem));justify-content:start;align-items:start;gap:.75rem;display:grid}.stats-stacked-bar{background:var(--surface-muted);border:1px solid var(--border);width:100%;height:.75rem;display:flex;overflow:hidden}.stats-stacked-bar>span{min-width:0;height:100%;display:block}.stats-stacked-bar>span+span{box-shadow:inset 1px 0 #ffffffb8}.stats-stacked-segment-short,.stats-legend-swatch-short{background:var(--stats-series-blue)}.stats-stacked-segment-medium,.stats-legend-swatch-medium{background:var(--stats-series-teal)}.stats-stacked-segment-long,.stats-legend-swatch-long{background:var(--stats-series-amber)}.stats-language-segment-0,.stats-language-swatch-0{background:var(--stats-series-blue)}.stats-language-segment-1,.stats-language-swatch-1{background:var(--stats-series-amber)}.stats-language-segment-2,.stats-language-swatch-2{background:var(--stats-series-teal)}.stats-rating-segment-favorite,.stats-rating-swatch-favorite{background:var(--stats-series-amber)}.stats-rating-segment-very-good,.stats-rating-swatch-very-good{background:var(--stats-series-blue)}.stats-rating-segment-unrated,.stats-rating-swatch-unrated{background:var(--stats-series-neutral)}.stats-legend-list{flex-direction:column;gap:.55rem;margin:0;padding:0;list-style:none;display:flex}.stats-legend-list li{grid-template-columns:.7rem minmax(0,1fr) auto;align-items:center;gap:.55rem;font-size:.82rem;display:grid}.stats-legend-list li>span:nth-child(2){min-width:0}.stats-legend-list small{color:var(--text-muted);white-space:nowrap;font-size:.68rem}.stats-legend-list strong{white-space:nowrap;font-size:.78rem}.stats-legend-swatch,.stats-language-swatch,.stats-rating-swatch{border:1px solid var(--border);width:.65rem;height:.65rem}.stats-feature-grid{grid-template-columns:minmax(0,1.65fr) minmax(300px,.85fr);align-items:start;gap:.75rem;display:grid}.stats-inline-highlight{background:rgba(var(--primary-rgb), .08);border:1px solid rgba(var(--primary-rgb), .2);white-space:nowrap;align-items:baseline;gap:.35rem;padding:.45rem .65rem;display:flex}.stats-inline-highlight strong{font-size:1.2rem}.stats-inline-highlight span{color:var(--text-muted);font-size:.72rem}.stats-decade-scroll{min-width:0;padding-bottom:.2rem;overflow-x:auto}.stats-decade-chart{height:205px;min-width:max(100%, calc(var(--stats-decade-count,10) * 48px));grid-template-columns:repeat(var(--stats-decade-count), minmax(42px, 1fr));gap:.4rem;margin:0;padding:0;list-style:none;display:grid}.stats-decade-chart li{text-align:center;grid-template-rows:1.4rem 150px 1.4rem;align-items:end;min-width:0;display:grid}.stats-decade-chart strong,.stats-decade-chart small{font-size:.68rem}.stats-decade-chart small{color:var(--text-muted)}.stats-decade-track{border-bottom:1px solid var(--border-strong);justify-content:center;align-items:flex-end;height:150px;display:flex}.stats-decade-track span{background:linear-gradient(180deg, var(--accent), rgba(var(--primary-rgb), .22));border:1px solid var(--border);width:min(28px,70%)}.stats-shared-summary{align-items:center;gap:1rem;display:flex}.stats-share-ring{--stats-share-percent:0%;aspect-ratio:1;background:conic-gradient(var(--primary) var(--stats-share-percent), var(--surface-muted) 0);border-radius:50%;flex:none;place-items:center;width:92px;display:grid;position:relative}.stats-share-ring:after{content:"";background:var(--surface);border:1px solid var(--border);border-radius:50%;position:absolute;inset:12px}.stats-share-ring strong{z-index:1;font-size:1.25rem;position:relative}.stats-shared-summary p{flex-direction:column;gap:.2rem;margin:0;display:flex}.stats-shared-summary p>strong{font-size:1.1rem}.stats-shared-summary p>span{color:var(--text-muted);font-size:.78rem;line-height:1.4}.stats-ranking-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),22rem));justify-content:start;align-items:start;gap:.75rem;display:grid}.stats-compact-list{flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.stats-compact-list li{border-bottom:1px solid var(--border);justify-content:space-between;align-items:baseline;gap:1rem;min-width:0;padding:.58rem 0;display:flex}.stats-compact-list li:first-child{border-top:1px solid var(--border)}.stats-compact-list li>span{overflow-wrap:anywhere;min-width:0;font-size:.84rem;font-weight:600}.stats-list-item-button{min-width:0;color:var(--primary);font:inherit;text-align:left;overflow-wrap:anywhere;cursor:pointer;background:0 0;border:0;padding:0;font-size:.84rem;font-weight:700}.stats-list-item-button:hover{text-decoration:underline}.stats-list-item-button:focus-visible{outline:2px solid var(--primary);outline-offset:3px}.stats-compact-list li>strong{color:var(--text-muted);white-space:nowrap;flex:none;font-size:.76rem}.stats-list-more{color:var(--primary);cursor:pointer;background:0 0;border:0;align-self:flex-start;padding:.15rem 0;font-size:.78rem;font-weight:700}.stats-list-more:hover{text-decoration:underline}.stats-modal-overlay{z-index:90;background:#1b1d2d94;justify-content:center;align-items:center;padding:1.5rem;display:flex;position:fixed;inset:0}.stats-list-modal{border:1px solid var(--border);background:var(--surface);width:min(620px,100%);max-height:min(760px,100vh - 3rem);box-shadow:var(--shadow);flex-direction:column;gap:1rem;padding:1.25rem;display:flex;overflow-y:auto}.stats-modal-header{z-index:1;border-bottom:1px solid var(--border);background:var(--surface);justify-content:space-between;align-items:flex-start;gap:1rem;margin:-1.25rem -1.25rem 0;padding:1.25rem;display:flex;position:sticky;top:-1.25rem}.stats-definition-modal{width:min(560px,100%)}.stats-definition-list{flex-direction:column;gap:.65rem;display:flex}.stats-definition-list p{border-left:3px solid var(--primary);background:var(--surface-alt);margin:0;padding:.75rem .85rem;font-size:.9rem;line-height:1.5}@media (max-width:1050px){.stats-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stats-feature-grid{grid-template-columns:1fr}.stats-shared-card .stats-compact-list{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:1rem;display:grid}}@media (max-width:760px){.stats-dashboard-body{padding:1rem}.stats-dashboard-header{align-items:flex-start}.stats-period-select{flex-direction:column;align-items:flex-start;gap:.25rem}.stats-period-select select{min-width:105px}.stats-kpi-grid,.stats-insight-grid,.stats-ranking-grid{grid-template-columns:1fr}.stats-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stats-kpi-card{padding:.85rem}.stats-kpi-card>div{flex-direction:column;align-items:flex-start;gap:.2rem}.stats-kpi-card strong{font-size:1.6rem}.stats-card-header{flex-wrap:wrap}.stats-monthly-section{min-height:315px}.stats-monthly-chart{grid-template-columns:2.3rem minmax(0,1fr)}.stats-monthly-plot{min-width:calc(var(--stats-month-count,8) * 54px)}.stats-feature-grid{grid-template-columns:minmax(0,1fr)}.stats-shared-card .stats-compact-list{display:flex}.stats-inline-highlight{white-space:normal}.stats-modal-overlay{align-items:stretch;padding:.75rem}.stats-list-modal{max-height:calc(100vh - 1.5rem)}}@media (max-width:430px){.stats-dashboard-header{gap:.5rem}.stats-dashboard-header h2{font-size:1.55rem}.stats-kpi-card span{font-size:.78rem}.stats-shared-summary{align-items:flex-start}.stats-share-ring{width:78px}.stats-modal-header{flex-direction:column;align-items:stretch}}.timeline-body{padding-bottom:1rem}.timeline-scroll{overscroll-behavior:contain;grid-auto-columns:minmax(190px,220px);grid-auto-flow:column;gap:.55rem;padding-bottom:.5rem;display:grid;overflow:auto hidden}.timeline-card{cursor:pointer;border:1px solid var(--border);background:#ffffff8c;flex-direction:column;gap:.4rem;padding:.65rem;transition:transform .2s,box-shadow .2s;display:flex}.timeline-card img{aspect-ratio:2/3;object-fit:cover;border:1px solid var(--border);width:100%}.timeline-card:hover{transform:translateY(-4px);box-shadow:0 18px 25px -18px #0006}.timeline-card .caption{flex-direction:column;gap:.12rem;display:flex}.caption-row{flex-wrap:wrap;gap:.2rem .4rem;font-size:.9rem;display:flex}.caption-title{word-break:break-word}.caption-author{color:var(--text-muted)}.caption-days{font-weight:600}.reading-range{border:1px solid var(--border);background:var(--surface);border-radius:0;flex-direction:column;gap:.3rem;margin-top:1rem;padding:.75rem .65rem;display:flex;overflow-x:auto}.reading-range-list{flex-direction:column;gap:.1rem;min-width:100%;padding-bottom:.4rem;display:flex;position:relative;overflow:visible}.reading-range-row{height:26px;position:relative;overflow:visible}.reading-range-bar{border:1px solid;border-radius:0;position:absolute;top:0;bottom:0;box-shadow:0 8px 12px -10px #00000059}.reading-range-label{color:var(--text);white-space:nowrap;background:#ffffffeb;border:1px solid #00000008;border-radius:0;padding:0 .35rem;font-size:.78rem;position:absolute;top:50%;transform:translateY(-50%)}.reading-range-label--right{text-align:left;transform:translate(6px,-50%)}.reading-range-label--left{text-align:right}.reading-range-label--outside{transform:translate(-6px,-50%)translate(-100%)}.reading-range-label--center{top:50%;transform:translate(-50%,-50%)}.reading-range-axis{color:var(--text-muted);justify-content:space-between;min-width:100%;padding:0 .25rem;font-size:.8rem;display:flex}.reading-range-tooltip{display:none}.reading-range-list--mobile{min-width:200%;padding-bottom:.25rem;overflow:visible}.reading-range-axis{min-width:100%;height:14px;margin-top:.15rem;position:relative}.reading-range-year{color:var(--text-muted);font-size:.78rem;position:absolute;bottom:0;transform:translate(-50%)}@media (max-width:900px){.reading-range-axis,.reading-range-list--mobile,.reading-range-axis{min-width:200%}}.calendar-nav{align-items:center;gap:.65rem;display:flex}.calendar-month-label{text-transform:capitalize;text-align:center;min-width:9rem;font-weight:600}.calendar-grid{grid-template-columns:repeat(7,minmax(0,1fr));grid-auto-rows:minmax(75px,1fr);gap:.25rem;display:grid}.calendar-weekdays{text-transform:uppercase;color:var(--text-muted);border:1px solid var(--border);background:#ffffff59;grid-template-columns:repeat(7,minmax(0,1fr));gap:.25rem;padding:.35rem;font-size:.8rem;font-weight:600;display:grid}.calendar-weekday{text-align:center;padding:.2rem 0}.calendar-cell{border:1px solid var(--border);background:#ffffffa6;flex-direction:column;gap:.25rem;padding:.2rem;display:flex}.calendar-cell--muted{opacity:.4}.day-number{font-size:.85rem;font-weight:600}.calendar-cover{background:#00000008;flex:none;width:100%;height:150px;display:flex}.calendar-cover img{object-fit:contain;background:0 0;border:none;width:100%;height:100%}.calendar-cover .cover-thumb--calendar{aspect-ratio:auto;border:1px solid var(--border);background:var(--surface);width:100%;height:100%;font-size:1.1rem}.icon-button{color:var(--text-muted);cursor:pointer;background:0 0;border:none;font-size:1rem}.icon-button.danger{color:#c83c3ce6}.icon-button.danger:hover,.icon-button.danger:focus-visible{color:#dc0000}.primary{background:linear-gradient(120deg, var(--primary), var(--accent));color:#fff;letter-spacing:.06em;text-transform:uppercase;cursor:pointer;border:none;padding:.7rem 1.5rem;font-weight:600;transition:transform .2s,box-shadow .2s;box-shadow:0 10px 25px -15px #00000073}.primary:hover{transform:translateY(-1px);box-shadow:0 18px 30px -18px #00000073}.secondary{border:1px solid var(--border);color:var(--text);cursor:pointer;text-transform:uppercase;letter-spacing:.05em;background:#fff6;padding:.65rem 1.2rem;font-weight:600}.accent-action{border-color:var(--primary);color:var(--primary);background:var(--accent-action-bg)}.accent-action:hover,.accent-action:focus-visible{background:linear-gradient(120deg, var(--primary), var(--accent));color:#fff;border-color:#0000}.toast{border:1px solid var(--border);color:#fff;letter-spacing:.05em;text-transform:uppercase;background:#000000bf;padding:.75rem 1rem;position:fixed;bottom:1.5rem;right:1.5rem}.definition-overlay{z-index:90;background:#0a0806a6;justify-content:center;align-items:center;padding:1.5rem;display:flex;position:fixed;inset:0}.definition-card{background:linear-gradient(180deg, var(--surface), var(--surface-alt));border:1px solid var(--border);width:min(520px,100%);max-height:80vh;box-shadow:var(--shadow);flex-direction:column;gap:.75rem;padding:1.25rem;display:flex;overflow:auto}.definition-card-header{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:1rem;display:flex}.definition-card-actions{flex-wrap:wrap;justify-content:flex-end;gap:.5rem;display:flex}.definition-title-block{flex:1}.definition-word-row{flex-wrap:wrap;align-items:center;gap:.45rem;display:flex}.definition-bookmark{color:var(--text-muted);font-size:1.2rem}.definition-bookmark.active{color:var(--primary)}.definition-word{margin:0;font-size:1.3rem;font-weight:600}.definition-origin{color:var(--text-muted);margin:.15rem 0 0;font-size:.9rem}.definition-editor textarea{resize:vertical;border:1px solid var(--border);width:100%;min-height:180px;font:inherit;background:#ffffffbf;padding:.75rem .85rem;line-height:1.55}.definition-help{color:var(--text-muted);margin:.35rem 0 0;font-size:.85rem}.definition-list{flex-direction:column;gap:.35rem;margin:0;padding:0;display:flex}.definition-list p{margin:0}.definition-empty{color:var(--text-muted);margin:0}.hidden{display:none}@media (max-width:900px){.tabs{grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:.4rem}.tab{padding:.5rem .75rem;font-size:.85rem}.panel-body.split{display:block}.detail-panel{display:none}.table-wrapper{overflow-x:auto}.calendar-nav{flex-wrap:wrap;justify-content:center;gap:.4rem}.calendar-nav span{text-align:center;flex:1 0 100%}.calendar-grid{grid-auto-rows:minmax(60px,1fr)}.calendar-cell{gap:.15rem;padding:.15rem}.calendar-cover{height:90px}}.notes-grid{column-count:2;column-gap:1.4rem;width:100%;max-width:1400px;margin:0 auto;display:block}@media (max-width:900px){.notes-grid{column-count:1}}.note-card{background:linear-gradient(135deg, rgba(var(--primary-rgb), .12), #ffffffe6);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);break-inside:avoid;border:none;border-radius:0;flex-direction:column;gap:1rem;width:100%;margin:0 0 1.2rem;padding:1.25rem 1.35rem;display:block;position:relative;overflow:hidden;box-shadow:0 25px 45px -35px #0f1b2b73}.note-card:after{content:none}.note-card-header{z-index:1;align-items:center;gap:.95rem;display:flex}.note-card-header img,.note-card-header .cover-thumb{object-fit:cover;border:1px solid rgba(var(--primary-rgb), .25);border-radius:0;width:70px;height:100px;box-shadow:0 18px 35px -25px #0f1b2bbf}.note-card-header h3{font-size:1.05rem;font-family:var(--font-title);text-transform:none;letter-spacing:.02em;margin:0}.note-card-header p{color:var(--text-muted);margin:.15rem 0 0;font-size:.9rem}.note-card-list{z-index:1;flex-direction:column;gap:1.25rem;margin:.9rem 0 0;padding:0;list-style:none;display:flex}.note-card-list li{break-inside:avoid;margin:0;list-style:none}.note-snippet{border:1px solid rgba(var(--primary-rgb), .18);border-left:4px solid rgba(var(--primary-rgb), .35);cursor:default;background:#ffffffd9;border-radius:0;align-items:flex-start;gap:.75rem;padding:.9rem 1rem;transition:box-shadow .2s,transform .15s,background .2s,border-color .2s;display:flex;position:relative;box-shadow:0 12px 22px -18px #0f1b2b80}.note-snippet:hover,.note-snippet:focus-visible{background:#fffffff2;outline:none;transform:translateY(-2px);box-shadow:0 18px 30px -18px #0f1b2b8c}.note-snippet.is-collapsed{cursor:pointer;border-color:rgba(var(--primary-rgb), .38);background:linear-gradient(#fafafaf2,#ebebebf0);position:relative;box-shadow:0 12px 20px -16px #0f1b2b66}.note-snippet.is-collapsed:after{content:"";background:linear-gradient(120deg, rgba(var(--primary-rgb), .08), transparent 45%, transparent 55%, rgba(var(--primary-rgb), .08));pointer-events:none;position:absolute;inset:0}.note-snippet.is-open{cursor:default}.note-text{word-break:break-word;flex:1;margin:0;font-size:.97rem;line-height:1.55}.note-snippet.is-collapsed .note-text{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.note-actions{flex-direction:column;align-items:flex-end;gap:.3rem;display:flex}.note-collapsed-hint{text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);align-items:center;gap:.25rem;font-size:.75rem;display:inline-flex}.note-collapsed-hint:after{content:"↓";font-size:.8em}.note-copy-icon{border:1px solid rgba(var(--primary-rgb), .25);background:rgba(var(--primary-rgb), .04);color:var(--text);cursor:pointer;border-radius:0;justify-content:center;align-items:center;padding:.35rem;transition:background .2s,color .2s,transform .15s,border-color .2s;display:inline-flex}.note-copy-icon:hover,.note-copy-icon:focus-visible{background:rgba(var(--primary-rgb), .12);color:var(--primary);border-color:rgba(var(--primary-rgb), .35);outline:none;transform:translateY(-1px)}.note-toggle-button{border:1px solid rgba(var(--primary-rgb), .25);background:rgba(var(--primary-rgb), .04);color:var(--text);cursor:pointer;justify-content:center;align-items:center;padding:.35rem .45rem;transition:background .2s,color .2s,transform .15s,border-color .2s;display:inline-flex}.note-toggle-button:hover,.note-toggle-button:focus-visible{background:rgba(var(--primary-rgb), .12);color:var(--primary);border-color:rgba(var(--primary-rgb), .35);outline:none;transform:translateY(-1px)}.detail-note-copy-button{text-align:left;cursor:pointer;width:100%;font:inherit;color:inherit;background:0 0;border:none;padding:.4rem .2rem}.detail-note-copy-button:hover,.detail-note-copy-button:focus-visible{color:var(--primary)}
