:root{--bg:#f7f8f5;--surface:#fff;--surface-alt:#f0f2ed;--ink:#24322e;--muted:#738078;--border:#e3e7e1;--accent:#315c4d;--accent-soft:#e9f0e8;--hero:#234136;--cream:#f1ecd9;--warning:#a36b2f;--danger:#a34439;--shadow:0 8px 35px #20372c09;--radius:14px;--sans:'Inter','Segoe UI',-apple-system,BlinkMacSystemFont,Arial,sans-serif;--serif:Georgia,'Times New Roman',serif;color-scheme:light}
:root[data-theme=dark]{--bg:#151a17;--surface:#1c231f;--surface-alt:#252d27;--ink:#edf0e9;--muted:#a6b2a7;--border:#333e35;--accent:#b0cfb2;--accent-soft:#293b2e;--hero:#284538;--cream:#e8e5cf;--warning:#d9b279;--danger:#eda99e;--shadow:none;color-scheme:dark}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--sans);font-size:14px;line-height:1.55;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{color:inherit}a{color:inherit;text-decoration:none}button{cursor:pointer}button:disabled{opacity:.43;cursor:not-allowed}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--accent);outline-offset:3px}h1,h2,h3,p{margin-top:0}h1{font-size:34px;letter-spacing:-1.15px;line-height:1.2;font-weight:600;margin-bottom:12px}h2{font-size:19px;letter-spacing:-.45px;line-height:1.35;font-weight:600;margin-bottom:14px}h3{font-size:15px;letter-spacing:-.15px;line-height:1.45;font-weight:600;margin-bottom:9px}p{margin-bottom:15px;color:var(--muted)}hr{border:0;border-top:1px solid var(--border);margin:25px 0}svg{flex-shrink:0}input[type=checkbox],input[type=radio]{accent-color:var(--accent);width:17px;height:17px;flex-shrink:0;margin:3px 0 0;cursor:pointer}textarea{resize:vertical;min-height:85px}strong{font-weight:600}.small{font-size:12px}.muted{color:var(--muted)}.wrap{overflow-wrap:anywhere}.full{width:100%}.stack{display:flex;flex-direction:column;gap:10px}.row-between{display:flex;align-items:center;justify-content:space-between;gap:15px}.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.eyebrow{font-size:10px;font-weight:600;letter-spacing:1.5px;line-height:1.5;color:var(--muted);display:block;margin-bottom:9px;text-transform:uppercase}.meta{font-size:10px;letter-spacing:.8px;font-weight:600;color:var(--muted)}.btn{display:inline-flex;gap:9px;align-items:center;justify-content:center;min-height:40px;padding:9px 15px;border:1px solid transparent;border-radius:7px;font-weight:500;font-size:12px;line-height:1.35;white-space:normal;transition:background .15s,transform .15s;cursor:pointer;background:none}.btn .icon{width:16px;height:16px}.btn:hover:not(:disabled){transform:translateY(-1px)}.primary{background:var(--accent);border-color:var(--accent);color:var(--surface)}.secondary{background:var(--surface);border-color:var(--border)}.secondary:hover{background:var(--surface-alt)}.cream{background:var(--cream);color:#273d32;border-color:var(--cream)}.text{padding:6px 0;min-height:32px;color:var(--accent);background:none;border:0}.btn.small{min-height:32px;padding:6px 9px;font-size:11px}.danger{color:var(--danger)}button.btn.danger:not(.text){border-color:var(--danger)}.icon-btn{border:0;background:transparent;display:inline-flex;align-items:center;justify-content:center;width:33px;height:33px;border-radius:7px;flex-shrink:0;color:var(--muted)}.icon-btn:hover{background:var(--surface-alt);color:var(--ink)}.icon-btn .icon{width:17px;height:17px}.badge,.tag{display:inline-flex;align-items:center;gap:4px;padding:4px 8px;border-radius:4px;line-height:1.35;font-size:10px;font-weight:500;letter-spacing:.2px;background:var(--surface-alt);color:var(--muted)}.badge.active,.badge.positive{background:var(--accent-soft);color:var(--accent)}.badge.on-dark{background:#ffffff12;color:#d4e0d5;border:1px solid #ffffff21;letter-spacing:1.3px;font-size:9px}.badge.warning{color:var(--warning);background:color-mix(in srgb,var(--warning) 10%,transparent)}.tags{display:flex;gap:6px;flex-wrap:wrap}.tag{border:1px solid var(--border);background:var(--surface);color:var(--muted)}a.tag:hover{border-color:var(--accent);color:var(--accent)}.progress{height:4px;overflow:hidden;background:var(--border);border-radius:6px;width:100%}.progress>span{display:block;height:100%;background:var(--accent);border-radius:6px;transition:width .25s}.progress.mastery>span{background:#b59a71}.status-dot{width:6px;height:6px;background:#5d9a70;border-radius:50%;display:inline-block;flex-shrink:0}
.sidebar{position:fixed;z-index:30;inset:0 auto 0 0;width:228px;background:var(--surface);border-right:1px solid var(--border);padding:28px 17px 18px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;padding:0 15px 33px;font-size:20px;font-weight:650;letter-spacing:4px;line-height:1.25}.brand>span:last-child small{display:block;font-size:7px;font-weight:600;letter-spacing:1.45px;margin-top:4px}.brand-mark{background:var(--hero);color:var(--cream);display:inline-flex;align-items:center;justify-content:center;width:40px;height:44px;border-radius:10px;font-family:var(--serif);font-style:italic;font-size:34px;font-weight:400;letter-spacing:-3px;line-height:1;padding:0 7px 4px 0}.brand-mark span{font-style:normal;font-size:29px}.sidebar-label{font-size:8px;letter-spacing:1.5px;font-weight:600;color:#939d94;padding:0 15px;margin:0 0 14px}.sidebar nav{display:flex;flex-direction:column;gap:5px}.sidebar nav a{display:flex;align-items:center;gap:13px;padding:11px 14px;color:var(--muted);border-radius:7px;font-size:12px;font-weight:500}.sidebar nav a .icon{width:17px;height:17px}.sidebar nav a.active{background:var(--accent-soft);color:var(--accent)}.sidebar nav a:hover{background:var(--surface-alt);color:var(--ink)}.sidebar nav a.active:hover{background:var(--accent-soft)}.nav-count{font-size:10px;margin-left:auto;background:var(--border);border-radius:4px;min-width:21px;text-align:center;padding:1px 5px;color:var(--ink)}.sidebar-bottom{margin-top:auto;padding-top:22px}.local-card{padding:15px 10px;border:1px solid var(--border);border-radius:9px;display:flex;gap:10px;align-items:flex-start;margin-bottom:14px}.local-card .icon{color:var(--accent);width:16px;height:16px;margin-top:2px}.local-card strong{font-size:10px;display:block}.local-card small{display:block;font-size:9px;color:var(--muted);margin-top:3px}.settings-link{font-size:11px;color:var(--muted);display:flex;gap:11px;align-items:center;padding:11px 12px}.settings-link .icon{width:17px;height:17px}.profile{margin-top:10px;border-top:1px solid var(--border);padding:18px 7px 0;display:flex;gap:10px;align-items:center}.avatar{background:#e6e8db;color:#596b55;display:inline-flex;align-items:center;justify-content:center;font-family:var(--serif);width:32px;height:32px;font-size:16px;border-radius:50%;flex-shrink:0}.profile strong{display:block;font-size:10px}.profile small{display:block;font-size:9px;color:var(--muted)}.profile .status-dot{margin-left:auto}.main-shell{margin-left:228px;min-height:100vh;display:flex;flex-direction:column}.topbar{height:71px;border-bottom:1px solid var(--border);padding:0 40px;display:flex;justify-content:space-between;align-items:center;background:var(--surface);gap:15px}.breadcrumbs{display:flex;align-items:center;gap:11px;font-size:11px;color:var(--muted)}.breadcrumbs .icon{width:11px;height:11px}.breadcrumbs strong{color:var(--ink);font-weight:500}.topbar-actions{display:flex;align-items:center;gap:21px}.search-trigger{background:transparent;border:0;display:flex;align-items:center;gap:9px;color:var(--muted);font-size:11px;padding:5px}.search-trigger .icon{width:15px;height:15px}.search-trigger kbd{border:1px solid var(--border);font-family:inherit;font-size:9px;border-radius:3px;padding:2px 5px;margin-left:18px}.local-status{font-size:8px;letter-spacing:1.2px;display:flex;align-items:center;gap:7px;color:var(--muted)}.mobile-menu{display:none}main{padding:38px 40px 35px;max-width:1600px;width:100%;margin:0 auto;flex:1}.page-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:28px;margin-bottom:28px}.page-heading .eyebrow{margin-bottom:12px}.page-heading p{font-size:12px;margin:0;max-width:760px;line-height:1.6}.page-heading .actions{padding-top:24px;flex-shrink:0}.app-footer{padding:15px 40px 25px;display:flex;justify-content:space-between;gap:20px;color:var(--muted);font-size:9px;letter-spacing:.3px}.app-footer>span:first-child{font-weight:500}.app-footer>span:first-child .muted{padding:0 9px}.panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:23px;box-shadow:var(--shadow);margin-bottom:22px;min-width:0}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 20px}.section-heading h2{margin:0;font-size:16px}.section-heading .eyebrow{font-size:9px;margin-bottom:7px}.quiet-card{padding:23px;background:var(--surface-alt);border:1px solid var(--border);border-radius:var(--radius);margin-bottom:22px}.quiet-card h3{font-family:var(--serif);font-weight:400;font-size:24px;line-height:1.2;letter-spacing:-.5px;margin-bottom:14px}.quiet-card p{font-size:12px;line-height:1.7}.quiet-card .text{font-size:11px}.callout{display:flex;align-items:flex-start;gap:13px;padding:16px 20px;border:1px solid var(--border);border-radius:9px;background:var(--surface-alt);font-size:12px;color:var(--muted);margin:20px 0 25px;line-height:1.65}.callout .icon{width:16px;height:16px;margin-top:2px;color:var(--accent)}.callout strong{color:var(--ink)}.callout.subtle{padding:15px;background:var(--bg);margin-bottom:0;border:0;font-size:11px}.callout.warning{background:color-mix(in srgb,var(--warning) 8%,var(--surface));border-color:color-mix(in srgb,var(--warning) 30%,var(--border))}.callout.warning .icon{color:var(--warning)}.empty{text-align:center;padding:40px 20px;max-width:680px;margin:0 auto}.empty>.icon{width:28px;height:28px;color:var(--muted);margin-bottom:14px}.empty h3{font-size:20px;font-weight:500;margin-bottom:10px}.empty p{max-width:520px;margin:0 auto 20px;font-size:12px}.empty .btn{margin-top:5px}.loading-screen,.fatal{max-width:650px;margin:16vh auto;padding:35px;text-align:center}.loading-screen h1{font-size:23px;margin-top:25px}.fatal h1{font-family:var(--serif);font-size:36px}.skip-link{position:absolute;left:20px;top:-100px;background:var(--surface);z-index:100;padding:10px}.skip-link:focus{top:10px}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 277px;gap:25px}.hero-card{position:relative;isolation:isolate;border-radius:var(--radius);overflow:hidden;background:var(--hero);color:#e9eee8;padding:29px 31px 28px;min-height:260px}.hero-top{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#abbdb0}.hero-card h2{font-family:var(--serif);font-weight:400;font-size:35px;line-height:1.12;letter-spacing:-.8px;max-width:80%;margin:25px 0 14px;position:relative;z-index:2}.hero-card>p{color:#bacbbd;font-size:12px;line-height:1.65;max-width:72%;position:relative;z-index:2;margin-bottom:28px}.hero-bottom{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:23px}.hero-bottom .btn{font-size:11px;min-height:38px;flex-shrink:0}.hero-progress{min-width:130px;width:190px}.hero-progress>div:first-child{display:flex;justify-content:space-between;font-size:9px;color:#b5c8b9;margin-bottom:9px}.hero-progress strong{color:#e8eee5;font-weight:400}.hero-progress .progress{background:#4b6455;height:3px}.hero-progress .progress>span{background:#c8d3b4}.hero-orbit{position:absolute;z-index:-1;width:290px;height:290px;right:-98px;top:7px;opacity:.5;transform:rotate(-23deg);pointer-events:none}.hero-orbit i{position:absolute;border:1px solid #8caa773b;border-radius:50%;inset:0;transform:scaleX(.6)}.hero-orbit i:nth-child(2){transform:scaleX(.6) rotate(70deg)}.hero-orbit i:nth-child(3){transform:scaleX(.6) rotate(140deg)}.hero-orbit b{position:absolute;inset:110px;border-radius:50%;background:#d1d6a518;box-shadow:0 0 0 30px #c1d39109}.stats-row{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;margin:23px 0;background:var(--border);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}.stat{position:relative;min-height:101px;background:var(--surface);padding:22px 15px 18px;display:flex;flex-direction:column;justify-content:center}.stat>strong{font-size:27px;font-weight:500;line-height:1.1;letter-spacing:-1px;margin-bottom:9px}.stat strong small{font-size:13px;margin-left:4px;color:var(--muted);font-weight:400;letter-spacing:0}.stat>span:not(.stat-icon){font-size:10px;color:var(--muted)}.stat-icon{position:absolute;right:14px;top:20px;color:#a2afa1}.stat-icon .icon{width:15px;height:15px}.next-task{display:flex;gap:17px;align-items:flex-start;padding:1px 0 19px}.task-type-icon{width:39px;height:43px;background:var(--accent-soft);color:var(--accent);border-radius:7px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.task-type-icon .icon{width:19px;height:19px}.next-task h3{font-size:14px;margin:7px 0 14px;line-height:1.55;font-weight:500}.next-task .meta{font-size:9px;letter-spacing:.2px}.next-task .tag{font-size:9px}.panel-foot{border-top:1px solid var(--border);padding-top:15px;display:flex;gap:12px;align-items:center;justify-content:space-between;font-size:9px;color:var(--muted)}.panel-foot>span{display:flex;align-items:center;gap:7px}.panel-foot .icon{width:12px;height:12px}.panel-foot strong{white-space:nowrap;font-weight:500}.working-shelf{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.shelf-book{display:flex;align-items:flex-start;gap:11px;padding:15px 12px;border:1px solid var(--border);border-radius:10px;background:var(--surface)}.shelf-book>.book-cover{width:47px;height:70px;min-width:47px}.shelf-book>div:last-child{min-width:0;width:100%}.shelf-book h3{font-size:11px;line-height:1.4;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-height:31px;margin-bottom:6px}.shelf-book .eyebrow{font-size:7px;letter-spacing:1px;margin:0 0 5px}.shelf-book .small{font-size:9px}.shelf-book .progress{height:3px;margin-top:6px}.review-panel{padding:24px}.round-icon{width:33px;height:33px;display:inline-flex;align-items:center;justify-content:center;background:var(--accent-soft);border-radius:50%;color:var(--accent);flex-shrink:0}.round-icon .icon{width:16px;height:16px}.review-panel h2{font-family:var(--serif);font-size:29px;line-height:1.15;font-weight:400;letter-spacing:-.7px;margin:22px 0 13px}.review-panel p{font-size:12px;line-height:1.7;margin-bottom:20px}.review-panel .btn{width:100%;justify-content:space-between;background:var(--bg)}.review-panel .badge{font-size:8px;letter-spacing:1px;background:none;padding:0}.mini-detail{font-size:9px;color:var(--muted);margin-top:15px;text-align:center}.dashboard-aside .panel .progress{margin:12px 0}.dashboard-aside .panel h3{font-size:16px;margin-top:13px}.dashboard-aside .panel>.text{font-size:11px}.setup-banner{display:flex;justify-content:space-between;align-items:center;gap:25px;margin:27px 0 0;padding:21px 24px;border:1px solid #d6decf;background:color-mix(in srgb,var(--accent-soft) 35%,var(--surface));border-radius:var(--radius)}.setup-banner>div:first-child{display:flex;gap:14px;align-items:center}.setup-banner .icon{color:var(--accent);width:22px;height:22px}.setup-banner strong{font-size:12px}.setup-banner p{font-size:11px;margin:4px 0 0}.setup-banner .btn .icon{width:16px;height:16px}
.roadmap-summary{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);padding:22px 0;margin-bottom:20px}.roadmap-summary>div{padding:0 25px;border-right:1px solid var(--border)}.roadmap-summary>div:last-child{border:0}.roadmap-summary strong{font-size:23px;display:block;font-weight:500;letter-spacing:-.7px;margin-bottom:5px}.roadmap-summary span{font-size:11px;color:var(--muted)}.roadmap-list{margin-bottom:30px}.phase-row{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);margin-bottom:14px}.phase-row.current{border-color:color-mix(in srgb,var(--accent) 45%,var(--border))}.phase-row summary{list-style:none;padding:24px;cursor:pointer;display:flex;align-items:center;gap:22px}.phase-row summary::-webkit-details-marker{display:none}.phase-number{display:flex;align-items:center;justify-content:center;flex-shrink:0;background:var(--surface-alt);border:1px solid var(--border);border-radius:10px;width:47px;height:50px;font-size:17px;font-family:var(--serif);color:var(--muted)}.phase-row.current .phase-number{background:var(--accent);color:var(--surface);border-color:var(--accent)}.phase-heading{flex:1}.phase-heading .eyebrow{font-size:9px;margin-bottom:6px}.phase-heading h2{font-size:20px;margin:0 0 7px}.phase-heading p{font-size:12px;margin:0}.phase-side{display:flex;align-items:center;gap:17px;margin-left:auto}.phase-side .icon{width:15px;transition:transform .2s}.phase-row[open] .phase-side>.icon{transform:rotate(180deg)}.phase-body{padding:0 24px 22px 93px}.phase-books{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 20px}.phase-books .tag{font-size:10px;background:var(--bg)}.unit-list{border-top:1px solid var(--border)}.unit-row{display:flex;align-items:center;gap:17px;padding:17px 3px;border-bottom:1px solid var(--border)}.unit-number{width:23px;flex-shrink:0;font-size:11px;color:var(--muted)}.unit-row>div{flex:1;min-width:0}.unit-row strong{font-weight:500;display:block;font-size:13px;margin-bottom:4px}.unit-row span:not(.unit-number){display:block;font-size:10px;color:var(--muted)}.unit-row>.icon{width:16px;color:var(--muted)}.unit-row:hover{color:var(--accent)}.phase-gate{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:23px 0 0}.phase-gate h3{font-size:15px;margin-bottom:7px}.phase-gate p{font-size:12px;max-width:540px;margin:0 0 10px}.phase-gate>.actions{flex-shrink:0}.bridge-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.bridge-card{display:flex;align-items:flex-start;gap:13px;padding:20px;background:var(--bg);border:1px solid var(--border);border-radius:9px}.bridge-card h3{font-size:14px}.bridge-card p{font-size:11px;margin:0;line-height:1.75}.two-col{display:grid;grid-template-columns:minmax(0,1fr) 315px;gap:25px}.back-link{font-size:11px;margin-bottom:15px}.study-task{display:flex;align-items:flex-start;gap:18px;padding:23px 0;border-bottom:1px solid var(--border)}.study-task:first-child{padding-top:5px}.study-task:last-child{border-bottom:0}.study-task>div{flex:1}.study-task .eyebrow{font-size:10px}.study-task h3{font-size:15px;font-weight:500;line-height:1.65;margin:2px 0 0}.study-task.done h3{color:var(--muted)}.study-task input{margin-top:2px}.source-book{display:flex;align-items:flex-start;gap:13px;padding:17px 0;border-bottom:1px solid var(--border)}.source-book .book-cover{width:41px;height:61px;min-width:41px}.source-book>div:nth-child(2){flex:1}.source-book h3{font-size:12px;line-height:1.5}.source-book .small{font-size:10px;display:block;line-height:1.6}.source-book>.icon{width:12px;color:var(--muted);margin-top:10px}.source-book:last-child{border:0;padding-bottom:0}.pagination{display:flex;justify-content:space-between;margin:20px 0}
.library-notice{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 18px;border:1px solid var(--border);border-radius:9px;background:var(--surface);font-size:11px;margin-bottom:24px;color:var(--muted)}.library-notice>div{display:flex;align-items:center;gap:10px}.library-notice .icon{width:16px;color:var(--accent)}.library-notice strong{font-weight:500;color:var(--ink)}.filter-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:22px 0 25px;flex-wrap:wrap}.tabs{display:flex;align-items:center;gap:3px;flex-wrap:wrap}.tab{border:1px solid transparent;background:transparent;color:var(--muted);font-size:11px;padding:7px 10px;border-radius:6px;white-space:nowrap}.tab.selected{background:var(--surface);border-color:var(--border);color:var(--ink)}.tab span{font-size:9px;color:var(--muted);margin-left:7px}.search-field{display:flex;align-items:center;gap:9px;border:1px solid var(--border);border-radius:7px;padding:8px 12px;background:var(--surface);min-width:180px}.search-field .icon{width:15px;height:15px;color:var(--muted)}.search-field input{background:transparent;border:0;color:var(--ink);outline:0;min-width:0;width:100%;font-size:11px}.search-field:focus-within{outline:2px solid var(--accent);outline-offset:2px}.wide-search{max-width:530px;margin:0 0 27px}.library-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.book-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;transition:transform .2s,box-shadow .2s;min-width:0;display:flex;flex-direction:column}.book-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.book-visual{position:relative;background:var(--surface-alt);padding:26px 24px;display:flex;align-items:center;justify-content:center;min-height:235px;border-bottom:1px solid var(--border)}.book-cover{width:118px;height:167px;background:#cad8c7;color:#2d4436;position:relative;box-shadow:2px 4px 6px #26352b18;border-radius:1px 4px 4px 1px;display:flex;flex-direction:column;padding:13px 12px 11px 15px;overflow:hidden;isolation:isolate;border-left:4px solid #0000000d;text-align:left}.book-cover:after{content:'';position:absolute;z-index:-1;right:-30px;bottom:25px;width:135px;height:135px;border:1px solid #ffffff38;border-radius:50%;box-shadow:0 0 0 12px #ffffff0b,0 0 0 25px #ffffff13}.book-cover.sage{background:#c4d2bd;color:#2e4933}.book-cover.sand{background:#e5ddc9;color:#5b5140}.book-cover.clay{background:#bb7762;color:#fff5e7}.book-cover.stone{background:#b2bcb4;color:#304236}.book-cover.ink{background:#263f39;color:#e2e9d9}.cover-code{font-size:6px;letter-spacing:1.1px;font-weight:500;position:relative;z-index:2;padding-bottom:13px;line-height:1.3}.book-cover strong{font-family:var(--serif);font-size:13px;line-height:1.14;letter-spacing:-.2px;font-weight:400;position:relative;z-index:2}.cover-line{width:20px;height:1px;background:currentColor;opacity:.5;margin-top:12px;margin-bottom:auto;display:block}.book-cover small{display:block;font-size:6px;line-height:1.5;margin-top:12px;position:relative;z-index:2}.book-cover.small{padding:6px 5px;border-left-width:2px;border-radius:1px 2px 2px 1px}.book-cover.small .cover-code{font-size:3px;padding-bottom:5px;letter-spacing:.3px}.book-cover.small strong{font-size:5.7px;line-height:1.2;letter-spacing:0}.book-cover.small small{font-size:2.8px;margin-top:3px}.book-cover.small .cover-line{width:8px;margin-top:4px}.book-cover.small:after{width:55px;height:55px;right:-20px;bottom:5px}.connection-dot{position:absolute;right:15px;top:13px;width:22px;height:22px;display:flex;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:50%;background:var(--surface);color:var(--muted)}.connection-dot .icon{width:12px;height:12px}.connection-dot.connected{background:var(--accent);border-color:var(--accent);color:var(--surface)}.book-info{padding:19px 18px 15px;display:flex;flex-direction:column;flex:1;min-width:0}.book-info>.eyebrow{font-size:8px;letter-spacing:1.2px;margin-bottom:7px}.book-info h2{font-size:13px;letter-spacing:-.1px;line-height:1.45;margin:0 0 7px}.book-info>p{font-size:10px;line-height:1.6;margin-bottom:19px}.book-progress{margin-top:auto}.book-progress>div:not(.progress){display:flex;justify-content:space-between;font-size:9px;color:var(--muted);margin-bottom:6px}.book-progress strong{font-weight:500;color:var(--ink)}.book-progress>.progress{height:3px;margin-bottom:11px}.book-footer{margin-top:5px;padding-top:12px;border-top:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;font-size:9px;color:var(--muted)}.book-footer .icon{width:16px;height:16px;color:var(--accent)}.book-detail-header{display:flex;align-items:flex-start;gap:35px;margin:10px 0 35px}.book-detail-header>.book-cover{width:157px;height:222px;min-width:157px;padding:20px 17px 16px 20px}.book-detail-header .cover-code{font-size:8px;padding-bottom:21px}.book-detail-header .book-cover strong{font-size:18px}.book-detail-header .book-cover small{font-size:8px}.book-detail-header h1{max-width:870px;font-size:35px}.book-author{font-size:14px;margin-bottom:13px}.book-guide{font-size:12px;max-width:760px;margin:18px 0;line-height:1.7}.book-detail-header .tags{margin:0}.chapter-row{display:flex;align-items:center;gap:11px;border-bottom:1px solid var(--border);padding:15px 0}.chapter-row a{flex:1;min-width:0}.chapter-row strong{display:block;font-size:12px}.chapter-row span{display:block;margin-top:4px;font-size:10px}.chapter-row select{max-width:135px;background:var(--surface-alt);font-size:10px;border:1px solid var(--border);border-radius:4px;padding:7px;color:var(--ink)}.chapter-row .icon-btn{width:25px}.chapter-row .icon-btn .icon{width:14px}.metric-block{margin:25px 0}.metric-block>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:13px;margin-bottom:10px;font-size:12px}.metric-block>div>span{color:var(--muted);font-size:11px}.recorded-ranges{margin-top:25px}.recorded-ranges .row-between{border-bottom:1px solid var(--border);font-size:11px;padding:4px 0}.compact-list{display:flex;flex-direction:column}.compact-list button{display:flex;align-items:center;justify-content:space-between;gap:12px;background:none;border:0;border-bottom:1px solid var(--border);text-align:left;padding:13px 0;font-size:12px}.compact-list button:hover{color:var(--accent)}.compact-list small{display:block;margin-top:3px}.level-pill{font-size:10px;background:var(--surface-alt);border-radius:5px;padding:3px 7px;color:var(--muted);white-space:nowrap;flex-shrink:0}.level-pill.high{background:var(--accent-soft);color:var(--accent)}
.projects-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.project-card{padding:25px;border:1px solid var(--border);background:var(--surface);border-radius:var(--radius);display:flex;flex-direction:column;transition:border .15s}.project-card:hover{border-color:var(--accent)}.project-number{font-family:var(--serif);font-size:27px;color:var(--muted);font-weight:400}.project-card h2{font-size:21px;font-family:var(--serif);font-weight:400;margin:22px 0 15px}.project-card p{font-size:12px;line-height:1.8;flex:1}.project-card>.row-between:last-of-type{font-size:10px;margin-top:16px;color:var(--muted)}.project-card .progress{margin-top:10px}.criteria-list{display:flex;flex-direction:column;gap:0;margin-bottom:23px}.criteria-list label{display:flex;gap:12px;align-items:flex-start;padding:13px 0;border-bottom:1px solid var(--border);font-size:13px;line-height:1.6}.criteria-list input{margin-top:3px}.gate-list{display:flex;flex-direction:column;gap:19px;margin:26px 0}.gate-list>div{display:flex;align-items:flex-start;gap:12px;font-size:12px;color:var(--muted);line-height:1.6}.gate-list .icon{width:16px;height:16px;margin-top:2px}.gate-list .met{color:var(--accent)}.gate-panel>.small{margin:17px 0 0;font-size:10px;line-height:1.7}.concept-legend{display:flex;flex-wrap:wrap;gap:20px;padding:17px 22px;background:var(--surface);border:1px solid var(--border);border-radius:9px;margin-bottom:24px}.concept-legend>span{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:7px}.concept-legend b{font-size:10px;font-weight:500;background:var(--surface-alt);width:22px;height:22px;border-radius:5px;display:inline-flex;align-items:center;justify-content:center;color:var(--ink)}.concepts-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.concept-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:22px;text-align:left;display:flex;flex-direction:column}.concept-card:hover{border-color:var(--accent)}.concept-card .eyebrow{font-size:9px;margin:0}.concept-card h3{font-size:17px;margin:19px 0 9px}.concept-card p{font-size:12px;line-height:1.75;flex:1;margin-bottom:22px}.mastery-dots{display:flex;align-items:center;gap:4px}.mastery-dots i{height:5px;width:20px;background:var(--border);border-radius:4px}.mastery-dots i.filled{background:var(--accent)}.mastery-dots span{font-size:9px;color:var(--muted);margin-left:7px}.recall-question{font-size:20px;line-height:1.5;color:var(--ink)}.answer-reveal{border:1px solid var(--border);padding:13px 16px;border-radius:8px;background:var(--bg);margin:20px 0}.answer-reveal summary{font-size:12px;cursor:pointer;font-weight:500;color:var(--accent)}.answer-reveal p{margin:15px 0 3px;font-size:13px;line-height:1.8}.review-hero{border:1px solid var(--border);background:var(--surface);border-radius:var(--radius);padding:33px;display:flex;justify-content:space-between;gap:40px;align-items:center;margin:0 0 32px}.review-hero h2{font-size:54px;font-weight:400;letter-spacing:-2px;line-height:1.1;margin:12px 0 15px}.review-hero h2 span{font-family:var(--serif);font-size:30px;letter-spacing:-.5px}.review-hero p{font-size:12px;max-width:470px}.review-schedule{max-width:325px;flex-shrink:0}.review-schedule>span{font-size:9px;letter-spacing:1.6px;color:var(--muted)}.review-schedule>div{display:flex;gap:13px;margin:20px 0}.review-schedule b{font-family:var(--serif);font-size:26px;background:var(--surface-alt);width:48px;padding:10px 0;text-align:center;border-radius:7px;font-weight:400;line-height:1.2}.review-schedule small{display:block;font-family:var(--sans);font-size:8px;color:var(--muted);margin-top:4px}.review-schedule p{font-size:10px;line-height:1.6}.quiz-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:0 0 25px}.quiz-card{margin:0;display:flex;flex-direction:column}.quiz-card h3{font-size:17px;margin-bottom:22px;flex:1}.quiz-card .actions{margin:22px 0 15px}.quiz-card .btn{font-size:11px}.quiz-question{border:0;padding:0;margin:24px 0 29px}.quiz-question legend{font-size:15px;font-weight:500;line-height:1.6;margin-bottom:12px;display:flex;align-items:flex-start;gap:12px}.quiz-question legend>span{font-size:12px;color:var(--muted);min-width:15px;margin-top:2px}.quiz-question>label{display:flex;align-items:flex-start;gap:12px;padding:12px 14px;margin:8px 0;border:1px solid var(--border);border-radius:7px;background:var(--bg);font-size:12px;cursor:pointer}.quiz-question label:has(input:checked){border-color:var(--accent);background:var(--accent-soft)}.quiz-score{display:flex;gap:24px;align-items:center;padding:22px;background:var(--accent-soft);border-radius:10px;margin-bottom:25px}.quiz-score>strong{font-family:var(--serif);font-size:46px;font-weight:400;color:var(--accent)}.quiz-score h3{font-size:18px}.quiz-score p{font-size:12px;margin:0}.quiz-feedback{padding:18px;border:1px solid var(--border);border-radius:9px;margin:15px 0}.quiz-feedback h3{display:flex;gap:10px;font-size:13px}.quiz-feedback .icon{width:16px;height:16px;margin-top:2px}.quiz-feedback.correct .icon{color:var(--accent)}.quiz-feedback.incorrect .icon{color:var(--danger)}.quiz-feedback p{font-size:12px;margin:8px 0}.flashcard{padding:40px 10px 15px;text-align:center}.flashcard h2{font-family:var(--serif);font-size:29px;font-weight:400;line-height:1.45;letter-spacing:-.5px;margin:20px auto 25px;max-width:650px}.flashcard textarea{display:block;margin:0 auto 20px;width:100%;border:1px solid var(--border);border-radius:8px;padding:12px;background:var(--bg);color:var(--ink);font-size:12px;min-height:65px}.flashcard-answer{padding:20px;border:1px solid var(--border);background:var(--bg);border-radius:10px;margin:10px 0 18px}.flashcard-answer p{color:var(--ink);line-height:1.9;margin:0;font-size:14px}.grade-buttons{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:18px 0 5px}.grade-buttons button{flex-direction:column;gap:3px}.grade-buttons small{font-size:9px;opacity:.7}.card-manager>div{display:flex;gap:15px;align-items:center;border-bottom:1px solid var(--border);padding:17px 0}.card-manager label{display:flex;align-items:flex-start;gap:15px;flex:1;font-size:12px}.card-manager small{display:block;color:var(--muted);margin-top:5px;font-size:10px}.card-manager strong{font-weight:500}
.notes-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.note-card{border:1px solid var(--border);background:var(--surface);border-radius:var(--radius);padding:22px;min-width:0}.note-card .row-between>.small{font-size:10px}.note-card h3{font-family:var(--serif);font-size:22px;font-weight:400;line-height:1.35;margin:15px 0 12px;overflow-wrap:anywhere}.note-excerpt{white-space:pre-wrap;font-size:12px;line-height:1.8;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:6;overflow:hidden;overflow-wrap:anywhere}.note-card .tags{margin-top:20px}.panel .notes-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.week-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin-top:15px}.day{text-align:center;padding:13px 3px 12px;border:1px solid var(--border);border-radius:8px;display:flex;align-items:center;flex-direction:column;background:var(--bg);min-width:0}.day>span{font-size:10px;color:var(--muted);margin-bottom:7px}.day>strong{font-size:22px;font-weight:500;letter-spacing:-.7px}.day>small{font-size:8px;color:var(--muted);margin-top:8px;white-space:nowrap}.day.today{border-color:var(--accent);background:var(--accent-soft)}.day-dot{width:4px;height:4px;border-radius:50%;background:var(--border);margin:7px 0 2px}.day.planned .day-dot{background:var(--muted)}.day-dot.studied{background:var(--accent)!important;width:6px;height:6px}.session-plan>div{display:flex;gap:14px;align-items:flex-start;border-bottom:1px solid var(--border);padding:18px 0}.session-plan>div:last-child{border:0}.session-plan>div>div{flex:1}.session-plan strong{font-size:12px}.session-plan p{font-size:12px;line-height:1.75;margin:7px 0 0}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:11px;text-align:left}th{font-size:9px;color:var(--muted);font-weight:500;letter-spacing:.7px;text-transform:uppercase;padding:13px 8px;border-bottom:1px solid var(--border);white-space:nowrap}td{padding:13px 8px;border-bottom:1px solid var(--border);max-width:250px;overflow-wrap:anywhere}td:first-child,td:nth-child(3){white-space:nowrap}td:last-child{white-space:nowrap}.activity-chart{display:flex;align-items:flex-end;gap:8px;height:195px;margin:25px 0 12px}.chart-day{height:100%;flex:1;display:flex;flex-direction:column;align-items:center;gap:9px;min-width:0}.bar-space{display:flex;align-items:flex-end;width:100%;height:160px;border-bottom:1px solid var(--border);background:color-mix(in srgb,var(--surface-alt) 35%,transparent);border-radius:3px 3px 0 0}.bar-space>div{width:100%;background:var(--accent);min-height:0;border-radius:3px 3px 0 0}.chart-day>span{font-size:8px;color:var(--muted)}.capability-list>div{margin:22px 0}.capability-list .row-between{font-size:12px;margin-bottom:9px;align-items:flex-start}.capability-list .row-between>a{max-width:85%;font-size:11px;line-height:1.7}.capability-list .row-between strong{font-size:11px;white-space:nowrap}.capability-list .progress{margin-bottom:7px}.capability-list small{font-size:10px}.two-col:has(.capability-list){grid-template-columns:1fr 1fr}.field{display:flex;flex-direction:column;gap:7px;margin:16px 0 20px;min-width:0}.field>span{font-size:11px;font-weight:500;color:var(--muted)}.field input,.field select,.field textarea{width:100%;background:var(--bg);border:1px solid var(--border);border-radius:7px;padding:11px 12px;color:var(--ink);font-size:12px;min-width:0}.field input::placeholder,.field textarea::placeholder{color:var(--muted);opacity:.8}.field textarea{line-height:1.8}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}.form-grid .field{margin:10px 0 16px}.field.inline{flex-direction:row;align-items:center;margin:0;gap:12px}.field.inline select{width:auto;max-width:360px;background:var(--surface)}.check-line{display:flex;align-items:flex-start;gap:12px;font-size:12px;color:var(--muted);margin:20px 0 25px;line-height:1.7}.check-line input{margin-top:3px}.day-checkboxes{display:flex;gap:9px;flex-wrap:wrap}.day-checkboxes label{cursor:pointer}.day-checkboxes input{position:absolute;opacity:0;width:1px;height:1px}.day-checkboxes span{display:block;padding:10px 12px;border:1px solid var(--border);border-radius:7px;font-size:12px;background:var(--bg);color:var(--muted)}.day-checkboxes input:checked+span{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}.day-checkboxes input:focus-visible+span{outline:3px solid var(--accent);outline-offset:3px}.danger-zone{border-color:color-mix(in srgb,var(--danger) 30%,var(--border))}.danger-zone h3{color:var(--danger)}
.reader-heading{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:22px}.reader-heading h1{font-size:23px;margin:10px 0 0;max-width:770px}.reader-heading .btn{font-size:11px}.reader-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;border:1px solid var(--border);background:var(--surface);border-radius:var(--radius);overflow:hidden;min-height:750px}.reader-main{min-width:0}.reader-toolbar{display:flex;align-items:center;gap:9px;padding:11px 13px;border-bottom:1px solid var(--border);min-height:60px;flex-wrap:wrap}.reader-toolbar label{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:7px}.reader-toolbar input{width:57px;border:1px solid var(--border);padding:5px;border-radius:4px;background:var(--bg);color:var(--ink);font-size:11px}.reader-toolbar select{font-size:10px;border:1px solid var(--border);border-radius:4px;background:var(--bg);padding:6px;color:var(--ink)}.reader-toolbar>span{font-size:11px;color:var(--muted)}.reader-toolbar .reader-zoom{margin-left:auto}.reader-message{padding:10px 17px;font-size:10px;color:var(--muted);background:var(--bg);border-bottom:1px solid var(--border);line-height:1.65}.pdf-stage{position:relative;background:#555956;overflow:auto;height:calc(100vh - 260px);min-height:610px}.native-pdf{width:100%;height:100%;min-height:600px;border:0;background:#505452}.reader-side{border-left:1px solid var(--border);min-width:0}.reader-tabs{padding:19px 20px;border-bottom:1px solid var(--border)}.reader-tabs h2{font-size:14px;margin:0}.reader-side-inner{padding:22px;max-height:calc(100vh - 150px);min-height:680px;overflow-y:auto}.reader-side-inner .eyebrow{font-size:8px}.reader-side-inner .field{margin-top:10px;margin-bottom:15px}.reader-side-inner .field>span{font-size:10px}.reader-side-inner .field input,.reader-side-inner .field textarea{font-size:11px}.reader-side h3{font-size:13px}.outline-item{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;width:100%;text-align:left;background:none;border:0;border-bottom:1px solid var(--border);padding:10px 0;color:var(--ink);font-size:11px;line-height:1.6}.outline-item small{color:var(--muted);white-space:nowrap;font-size:9px}.outline-preview{max-height:45vh;overflow-y:auto;padding:10px}.outline-preview p{font-size:12px}.pdf-canvas-wrap{position:relative;margin:18px auto;background:white;box-shadow:0 3px 15px #0003}.pdf-canvas-wrap canvas{display:block}.pdf-text-layer{position:absolute;inset:0;overflow:hidden;line-height:1;opacity:1}.pdf-text-layer :is(span,br){color:transparent;position:absolute;white-space:pre;transform-origin:0% 0%;cursor:text}.pdf-text-layer ::selection{background:#4267f366}.pdf-text-layer .endOfContent{display:block;position:absolute;inset:100% 0 0;z-index:-1;cursor:default}
#modal{padding:0;border:1px solid var(--border);border-radius:15px;background:var(--surface);color:var(--ink);width:min(550px,calc(100vw - 32px));max-height:90vh;box-shadow:0 25px 110px #12291e30}#modal.wide{width:min(810px,calc(100vw - 32px))}#modal::backdrop{background:#14261e66;backdrop-filter:blur(3px)}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--border);padding:19px 24px;position:sticky;top:0;background:var(--surface);z-index:2}.modal-head h2{margin:0;font-size:18px}.modal-body{padding:25px}.modal-body>p{font-size:13px;line-height:1.8}.modal-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:25px;flex-wrap:wrap}.modal-actions .danger{margin-right:auto}.modal-body form>.btn:last-child{margin-top:7px}.modal-body .form-grid{margin-top:12px}.import-list{max-height:49vh;overflow:auto;padding:0 10px 0 0}.import-list .field{border-bottom:1px solid var(--border);padding-bottom:17px}.search-results{max-height:55vh;overflow:auto;margin-top:18px}.search-results>button{display:flex;justify-content:space-between;align-items:center;gap:20px;width:100%;text-align:left;background:none;border:0;border-bottom:1px solid var(--border);padding:14px 6px}.search-results strong{display:block;font-size:13px;font-weight:500}.search-results small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.search-results .icon{width:16px;color:var(--muted)}#toasts{position:fixed;right:25px;bottom:25px;z-index:150;display:flex;flex-direction:column;gap:8px;max-width:min(420px,calc(100vw - 35px));pointer-events:none}.toast{padding:14px 20px;border:1px solid var(--border);border-left:3px solid var(--accent);background:var(--surface);color:var(--ink);border-radius:9px;box-shadow:0 7px 40px #12281c20;font-size:12px;line-height:1.7;animation:slide-in .2s ease}.toast.error{border-left-color:var(--danger)}.timer-dock{position:fixed;bottom:22px;left:calc(50% + 114px);transform:translateX(-50%);z-index:45;display:flex;align-items:center;gap:18px;border:1px solid var(--border);border-radius:12px;background:var(--surface);padding:13px 16px;box-shadow:0 10px 55px #19302125}.timer-dock small{display:block;font-size:9px;color:var(--muted)}.timer-dock strong{font-variant-numeric:tabular-nums;font-size:20px;font-weight:500;line-height:1.3;letter-spacing:-.4px}.timer-pulse{width:7px;height:7px;background:var(--muted);border-radius:50%;flex-shrink:0}.timer-pulse.running{background:var(--accent);animation:pulse 2s ease infinite}.timer-dock>.icon-btn{width:25px}.timer-dock>.btn{white-space:nowrap}.reader-layout .empty{color:#f3f4ed}.reader-layout .empty p{color:#e4e9e1}.reader-layout .empty .btn{color:var(--ink)}
@keyframes slide-in{from{transform:translateY(5px);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes pulse{50%{opacity:.35}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media(min-width:1500px){main{padding:45px 48px}.hero-card{padding:33px 35px;min-height:283px}.hero-card h2{font-size:41px}.hero-card>p{font-size:13px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 300px;gap:28px}.working-shelf{gap:17px}.shelf-book{padding:18px}.shelf-book h3{font-size:12px}.sidebar{width:245px}.main-shell{margin-left:245px}.timer-dock{left:calc(50% + 122px)}.library-grid{gap:24px}.book-visual{min-height:254px}}
@media(max-width:1250px){.sidebar{width:207px;padding-left:12px;padding-right:12px}.main-shell{margin-left:207px}.topbar{padding:0 28px}main{padding:30px 28px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 250px;gap:20px}.hero-card{padding:25px}.hero-card h2{font-size:31px}.hero-card>p{max-width:82%}.stat{padding:20px 12px}.stat-icon{right:10px;top:16px}.stat-icon .icon{width:12px}.stat>strong{font-size:24px}.stat>span:not(.stat-icon){font-size:9px}.working-shelf{grid-template-columns:1fr}.shelf-book{align-items:center;padding:12px 14px}.shelf-book>.book-cover{width:35px;height:50px;min-width:35px}.shelf-book h3{display:block;min-height:0;margin-bottom:4px}.shelf-book>div:last-child{display:grid;grid-template-columns:1fr 55px;gap:2px 10px;align-items:center}.shelf-book h3{grid-column:1}.shelf-book .eyebrow{grid-column:1;margin-bottom:3px}.shelf-book .small{grid-column:2;grid-row:1;text-align:right}.shelf-book .progress{grid-column:2;grid-row:2;margin:0}.page-heading h1{font-size:30px}.page-heading>.actions{max-width:300px;justify-content:flex-end}.two-col{grid-template-columns:minmax(0,1fr) 280px;gap:20px}.panel{padding:20px}.library-grid{gap:15px}.book-visual{padding:24px 15px;min-height:224px}.book-info{padding:17px 14px}.phase-side{flex-direction:column;gap:7px;align-items:flex-end}.phase-side>.icon{display:none}.phase-gate{flex-direction:column;align-items:flex-start}.review-hero{padding:26px;gap:25px}.review-schedule{max-width:250px}.review-schedule>div{gap:7px}.review-schedule b{width:43px}.review-hero h2 span{font-size:25px}.concepts-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.notes-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.reader-layout{grid-template-columns:minmax(0,1fr) 258px}.reader-toolbar{gap:5px}.reader-toolbar .reader-zoom{display:none}.reader-side-inner{padding:17px}.reader-heading h1{font-size:21px}.reader-heading{align-items:flex-start}.timer-dock{left:calc(50% + 103px)}.setup-banner{align-items:flex-start}.setup-banner>.actions{max-width:210px;flex-shrink:0;justify-content:flex-end}}
@media(max-width:1050px){.dashboard-grid{grid-template-columns:1fr}.dashboard-aside{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.dashboard-aside>section{margin:0}.dashboard-aside .review-panel h2{font-size:24px}.dashboard-aside .quiet-card{padding:20px}.dashboard-aside .quiet-card h3{font-size:24px}.working-shelf{grid-template-columns:repeat(3,1fr)}.shelf-book{align-items:flex-start;padding:13px 10px;gap:8px}.shelf-book>div:last-child{display:block}.shelf-book h3{display:-webkit-box;-webkit-line-clamp:2;min-height:29px}.shelf-book .small{font-size:8px}.shelf-book .progress{margin-top:5px}.shelf-book .eyebrow{font-size:7px}.two-col{grid-template-columns:1fr}.two-col>aside{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}.two-col>aside>.panel,.two-col>aside>.quiet-card{margin:0}.two-col>aside>.gate-panel{grid-column:1/-1}.two-col:has(.capability-list){grid-template-columns:1fr}.library-grid{grid-template-columns:repeat(3,1fr)}.projects-grid{grid-template-columns:repeat(2,1fr)}.quiz-grid{grid-template-columns:repeat(2,1fr)}.bridge-grid{grid-template-columns:1fr}.bridge-card{padding:18px}.topbar-actions{gap:12px}.local-status{display:none}.book-detail-header{gap:25px}.book-detail-header h1{font-size:29px}.book-detail-header>.book-cover{width:126px;height:184px;min-width:126px}.book-detail-header .book-cover strong{font-size:14px}.book-detail-header .cover-code{font-size:6px}.book-detail-header .book-cover small{font-size:6px}.review-hero{flex-direction:column;align-items:flex-start}.review-schedule{max-width:none;width:100%;border-top:1px solid var(--border);padding-top:22px}.review-schedule>div{margin:15px 0}.review-schedule b{width:55px}.roadmap-summary>div{padding:0 17px}.roadmap-summary strong{font-size:19px}.roadmap-summary span{font-size:10px}.reader-layout{grid-template-columns:1fr}.reader-side{border-left:0;border-top:1px solid var(--border)}.reader-side-inner{max-height:none;min-height:0;display:block}.pdf-stage{height:70vh;min-height:550px}.reader-heading{flex-direction:column;align-items:flex-start}.reader-toolbar .reader-zoom{display:flex}.page-heading .actions{padding-top:15px}.page-heading{gap:20px}.page-heading .btn{font-size:11px}}
@media(max-width:780px){.sidebar{width:205px;transform:translateX(-100%);transition:transform .2s;box-shadow:10px 0 50px #0002}.sidebar.mobile-open{transform:translateX(0)}.main-shell{margin-left:0}.topbar{height:59px;padding:0 22px}.mobile-menu{display:inline-flex!important}.breadcrumbs .mobile-menu>.icon{width:18px;height:18px}.breadcrumbs{font-size:10px;gap:8px}.breadcrumbs>span{display:none}.breadcrumbs>.icon{display:none}main{padding:25px 22px}.search-trigger kbd{display:none}.topbar-actions{gap:8px}.search-trigger span{font-size:10px}.page-heading h1{font-size:29px;letter-spacing:-.9px}.page-heading .eyebrow{font-size:9px}.page-heading{margin-bottom:23px}.dashboard-aside{grid-template-columns:1fr 1fr}.dashboard-aside>section:last-child{grid-column:1/-1}.dashboard-aside .quiet-card{display:block}.dashboard-aside .quiet-card p{max-width:500px}.app-footer{padding:15px 22px 25px;font-size:8px}.timer-dock{left:50%;width:min(420px,calc(100vw - 25px));gap:12px;bottom:14px}.hero-card h2{font-size:35px}.library-grid{grid-template-columns:repeat(3,1fr);gap:13px}.book-info h2{font-size:12px}.book-visual{min-height:210px;padding:22px 12px}.book-cover{width:109px;height:155px}.book-cover strong{font-size:12px}.setup-banner{padding:18px;flex-direction:column;gap:14px}.setup-banner>.actions{max-width:none;justify-content:flex-start}.phase-body{padding:0 20px 20px}.phase-row summary{padding:20px;gap:16px}.phase-heading h2{font-size:18px}.phase-heading p{font-size:11px}.phase-number{width:39px;height:44px}.phase-side{display:none}.phase-heading .eyebrow{font-size:8px}.roadmap-summary{grid-template-columns:1fr 1fr;padding:0}.roadmap-summary>div{padding:18px 20px;border-right:0;border-bottom:1px solid var(--border)}.roadmap-summary>div:nth-child(odd){border-right:1px solid var(--border)}.roadmap-summary>div:nth-last-child(-n+2){border-bottom:0}.concept-legend{gap:13px;padding:16px}.concept-legend>span{font-size:10px}.concept-legend b{width:18px;height:18px;font-size:9px}.notes-grid{gap:15px}.review-hero h2{font-size:48px}.book-detail-header>.book-cover{width:102px;min-width:102px;height:152px;padding:12px}.book-detail-header .book-cover strong{font-size:12px}.book-detail-header .cover-code{font-size:5px;padding-bottom:14px}.book-detail-header .book-cover small{font-size:5px}.book-detail-header h1{font-size:25px}.book-detail-header .eyebrow{font-size:9px}.book-author{font-size:12px}.book-guide{font-size:11px}.book-detail-header .btn{font-size:10px}.book-detail-header .tags .badge{font-size:9px}.activity-chart{gap:5px}.modal-body{padding:21px}.modal-head{padding:17px 21px}}
@media(max-width:520px){main{padding:23px 17px}.topbar{padding:0 16px}.page-heading{display:block}.page-heading>.actions{justify-content:flex-start;max-width:none;padding-top:17px}.page-heading h1{font-size:29px}.page-heading p{font-size:11px}.page-heading .eyebrow{letter-spacing:1.2px;font-size:8px}.hero-card{padding:23px;min-height:275px}.hero-card h2{font-size:33px;max-width:100%;margin-top:22px}.hero-card>p{max-width:90%;font-size:11px}.hero-top>span{font-size:8px}.hero-bottom{gap:19px}.hero-bottom .btn{font-size:10px;min-height:37px;padding:9px 11px}.hero-bottom .hero-progress{min-width:95px;max-width:115px}.hero-bottom .hero-progress>div:first-child{font-size:8px}.stats-row{grid-template-columns:repeat(2,1fr);margin:18px 0}.stat{padding:18px 17px;min-height:90px}.stat>strong{font-size:27px}.stat>span:not(.stat-icon){font-size:10px}.stat-icon{right:16px;top:19px}.stat-icon .icon{width:15px}.panel{padding:20px 17px;border-radius:11px;margin-bottom:18px}.section-heading{gap:12px;margin-bottom:17px}.section-heading h2{font-size:15px}.section-heading>.btn{font-size:10px}.section-heading>.small{font-size:9px;max-width:110px}.next-task{gap:12px}.next-task h3{font-size:12px}.task-type-icon{width:31px;height:36px}.next-task .meta{font-size:8px}.panel-foot{font-size:8px;align-items:flex-start}.panel-foot>span{align-items:flex-start}.panel-foot .icon{margin-top:1px}.working-shelf{grid-template-columns:1fr;gap:10px}.shelf-book{padding:13px 15px;gap:13px;align-items:center}.shelf-book>.book-cover{width:39px;height:56px;min-width:39px}.shelf-book>div:last-child{display:grid;grid-template-columns:1fr 50px}.shelf-book h3{display:block;min-height:0;font-size:12px;margin:0;grid-column:1}.shelf-book .eyebrow{font-size:8px;margin-bottom:5px}.shelf-book .small{grid-column:2;grid-row:1;font-size:9px}.shelf-book .progress{grid-column:2;grid-row:2}.dashboard-aside{grid-template-columns:1fr;gap:17px}.dashboard-aside>section:last-child{grid-column:auto}.review-panel h2{font-size:28px!important;margin-top:17px}.review-panel .btn{max-width:none}.review-panel p{max-width:100%}.dashboard-aside .panel{padding:22px}.two-col>aside{grid-template-columns:1fr}.two-col{gap:18px}.two-col>aside>.gate-panel{grid-column:auto}.library-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.book-visual{min-height:210px;padding:22px 12px}.book-cover{width:108px;height:155px}.book-info{padding:15px 13px 13px}.book-info h2{font-size:12px}.book-info>p{font-size:9px;margin-bottom:16px}.book-info>.eyebrow{font-size:7px;letter-spacing:.9px}.book-progress>div:not(.progress){font-size:8px}.book-footer{font-size:8px}.connection-dot{right:10px;top:10px;width:19px;height:19px}.library-notice{padding:13px;font-size:10px;flex-wrap:wrap;gap:9px}.library-notice>.small{font-size:10px;padding-left:26px}.filter-bar{gap:14px;margin:20px 0}.tab{font-size:10px;padding:6px 9px}.filter-bar>.search-field{width:100%}.tabs{gap:2px}.book-detail-header{display:block;margin-top:0}.book-detail-header>.book-cover{float:left;margin:0 18px 16px 0;width:85px;min-width:85px;height:123px;padding:10px}.book-detail-header .book-cover strong{font-size:9px}.book-detail-header .cover-code{font-size:4px;padding-bottom:9px}.book-detail-header .book-cover small{font-size:4px}.book-detail-header h1{font-size:25px;line-height:1.25;margin-top:9px;min-height:50px}.book-detail-header .eyebrow{font-size:7px}.book-detail-header .tags{clear:both;margin-top:19px}.book-detail-header .book-guide{clear:both}.book-detail-header .actions{gap:7px}.chapter-row{gap:8px;flex-wrap:wrap}.chapter-row>a{min-width:130px}.chapter-row select{max-width:123px;font-size:9px}.chapter-row .icon-btn{width:26px}.projects-grid{grid-template-columns:1fr;gap:17px}.project-card{padding:23px}.project-card h2{font-size:25px}.concepts-grid{grid-template-columns:1fr;gap:14px}.concept-card{padding:22px}.concept-legend{gap:11px;justify-content:flex-start}.concept-legend>span{font-size:9px;gap:5px}.field.inline{width:100%;font-size:10px}.field.inline select{max-width:none;width:100%}.quiz-grid{grid-template-columns:1fr;gap:15px}.quiz-card{padding:23px}.quiz-card h3{margin-bottom:13px}.quiz-card .actions{margin-top:15px}.review-hero{padding:24px 20px}.review-hero h2{font-size:47px}.review-hero h2 span{font-size:26px;line-height:1.5;display:block;margin-top:5px}.review-schedule>div{gap:8px}.review-schedule b{width:47px}.notes-grid,.panel .notes-grid{grid-template-columns:1fr}.note-card{padding:22px}.week-calendar{gap:4px}.day{padding:11px 1px 9px;border-radius:5px}.day>span{font-size:8px}.day>strong{font-size:19px}.day>small{font-size:6.5px}.day-dot{margin:7px 0 0}.session-plan .round-icon{width:27px;height:27px}.session-plan{font-size:11px}.session-plan>div{gap:11px}.session-plan p{font-size:11px}.session-plan>div>.small{font-size:10px}.activity-chart{gap:3px;height:158px}.bar-space{height:135px}.chart-day>span{font-size:6px}.form-grid{grid-template-columns:1fr}.form-grid .field{margin-bottom:15px}.day-checkboxes{gap:6px}.day-checkboxes span{padding:9px 10px;font-size:10px}.phase-heading h2{font-size:17px}.phase-row summary{padding:19px 16px;gap:13px;align-items:flex-start}.phase-number{width:32px;height:38px;font-size:14px}.phase-heading .eyebrow{font-size:7px;letter-spacing:.8px;margin-bottom:7px}.phase-heading p{font-size:10px}.phase-body{padding:0 18px 20px}.phase-books .tag{font-size:9px}.phase-gate p{font-size:11px}.unit-row{gap:12px;padding:16px 0}.unit-row strong{font-size:12px}.unit-row span:not(.unit-number){font-size:9px}.bridge-card h3{font-size:13px}.bridge-card p{font-size:11px}.callout{padding:15px;font-size:11px;gap:11px}.callout.subtle{font-size:10px}.study-task h3{font-size:13px}.study-task{gap:13px}.study-task .eyebrow{font-size:9px}.study-task .small{font-size:9px}.reader-heading h1{font-size:22px}.reader-layout{border-radius:9px}.reader-toolbar{gap:4px;padding:9px}.reader-toolbar .reader-zoom{display:none}.reader-toolbar .btn{font-size:9px}.reader-toolbar label{font-size:10px}.reader-toolbar input{width:48px;font-size:10px}.reader-toolbar .icon-btn{width:27px}.reader-toolbar>.icon-btn:last-child{margin-left:auto}.reader-message{font-size:9px;padding:9px 12px}.pdf-stage{min-height:470px;height:65vh}.reader-side-inner{padding:22px}.reader-heading .btn{font-size:10px}.modal-head h2{font-size:16px}.modal-head{padding:15px 18px}.modal-body{padding:20px 18px}.modal-body>p{font-size:12px}.quiz-question legend{font-size:13px}.quiz-question>label{font-size:11px;padding:12px}.quiz-score{gap:18px;padding:20px}.quiz-score>strong{font-size:38px}.quiz-score h3{font-size:16px}.quiz-score p{font-size:11px}.flashcard{padding:30px 0 15px}.flashcard h2{font-size:25px}.grade-buttons{gap:8px}.grade-buttons .btn{font-size:11px}.app-footer{padding:15px 18px 24px;font-size:7px}.timer-dock{padding:10px 12px;gap:12px}.timer-dock strong{font-size:18px}.timer-dock>.btn{font-size:10px;padding:8px 9px}.timer-dock>.icon-btn{width:20px}#toasts{bottom:18px;right:17px}.setup-banner p{font-size:10px}.setup-banner strong{font-size:11px}}
@media print{.sidebar,.topbar,.app-footer,.btn,.icon-btn,#toasts,#timer-dock{display:none!important}.main-shell{margin:0}main{padding:0}.panel,.phase-row{box-shadow:none;break-inside:avoid}.two-col,.dashboard-grid{display:block}body{background:white;color:black}details>div{display:block!important}}
