@font-face{font-family:Inter;src:url(fonts/InterVariable.woff2) format("woff2");font-style:normal;font-weight:100 900;font-display:swap}
@font-face{font-family:"Noto Sans Arabic";src:url(fonts/NotoSansArabic-Variable.ttf) format("truetype");font-style:normal;font-weight:100 900;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+0870-089F,U+08A0-08FF,U+200C-200F,U+202A-202E,U+FB50-FDFF,U+FE70-FEFF}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.5}a{color:var(--accent);text-underline-offset:3px}button,a{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--focus);outline-offset:3px}h1,h2,h3,p{margin:0}h1,h2,h3{font-weight:620;text-wrap:pretty;letter-spacing:-.025em}h1:focus,#main:focus,#feedback:focus{outline:0}h1{font-size:2.125rem;line-height:1.2}h2{font-size:1.5rem;line-height:1.3}h3{font-size:1rem;line-height:1.45}p{line-height:1.65}small,.small{font-size:.8125rem;line-height:1.6}strong{font-weight:600}.muted{color:var(--muted)}.eyebrow{font-size:.75rem;color:var(--muted);line-height:1.5;letter-spacing:0;margin-bottom:8px}.eyebrow:has(+h1),.eyebrow:has(+h2),.eyebrow:has(+h3){display:none}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.skip-link{position:fixed;left:16px;top:-90px;background:var(--ink);color:white;padding:14px;z-index:110;border-radius:8px}.skip-link:focus-visible{top:12px}
input[type=checkbox],input[type=radio]{accent-color:var(--accent);width:19px;height:19px;flex-shrink:0}input[type=number],input[type=search],input[type=text],select{border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:7px;min-height:42px;padding:10px 12px;max-width:100%;min-width:0}input::placeholder{color:var(--muted)}select{cursor:pointer}label{line-height:1.5}
.app-frame{min-height:100dvh}.sidebar{position:fixed;inset:0 auto 0 0;width:214px;background:var(--rail);color:var(--rail-text);padding:28px 20px;display:flex;flex-direction:column;z-index:30}.brand{display:flex;align-items:center;gap:10px;min-height:40px;background:none;border:0;padding:0;text-align:left;color:white}.brand>span{font-size:1.2rem;font-weight:650;letter-spacing:-.03em}.brand img{width:28px;height:28px}.course-switcher{position:relative;margin:32px 0 26px}.course-switcher summary{display:flex;align-items:center;gap:8px;border:1px solid #524940;background:#313c48;border-radius:10px;padding:14px 12px;cursor:pointer;list-style:none;min-height:76px}.course-switcher summary::-webkit-details-marker{display:none}.course-switcher summary>span{flex:1;min-width:0}.course-switcher strong{display:block;font-size:.875rem;font-weight:550;line-height:1.4}.course-switcher small{display:block;font-size:.75rem;margin-top:5px;color:var(--rail-muted)}.course-switcher svg{flex-shrink:0;transition:transform 180ms var(--ease)}.course-switcher[open] summary>svg{transform:rotate(180deg)}.course-menu{position:absolute;top:calc(100% + 8px);left:0;width:max(100%,240px);background:var(--paper);padding:6px;border-radius:10px;box-shadow:0 10px 36px #25384c26;z-index:50;color:var(--ink)}.course-menu button{display:block;width:100%;background:none;border:0;border-radius:7px;padding:12px;text-align:left;font-size:.875rem}.course-menu button:hover,.course-menu button[aria-current]{background:var(--soft-lime)}.course-menu button:last-child{border-top:1px solid var(--line);border-radius:0;margin-top:4px}
.primary-nav{display:flex;flex-direction:column;gap:6px}.primary-nav button{background:none;border:0;border-radius:8px;display:flex;align-items:center;gap:12px;text-align:left;padding:12px;color:var(--rail-muted);font-size:.9375rem;min-height:46px}.primary-nav button>span:first-child{display:inline-flex;width:20px;flex-shrink:0}.primary-nav button:hover{background:#313c48;color:#fff}.primary-nav button.active{background:#f6f3ee;color:var(--ink);font-weight:600}.sidebar-foot{margin-top:auto;padding:28px 12px 0;display:grid;gap:18px;font-size:.75rem;color:var(--rail-muted)}.sidebar-foot .text-button{font-size:.8125rem;color:var(--rail-text)}.utility-menu{position:relative}.utility-menu summary{list-style:none;cursor:pointer;font-size:.8125rem;color:var(--rail-text)}.utility-menu button{display:block;width:100%;border:0;background:#333d48;color:white;text-align:left;padding:10px;border-radius:6px;margin-top:6px}.workspace{margin-left:214px;min-width:0;transition:margin-right 200ms var(--ease)}.topbar{height:78px;padding:0 38px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:.8125rem;color:var(--muted)}.topbar>span{min-width:0}.breadcrumb-divider{padding:0 12px;color:#b2aa9f}.utility-trigger{min-height:40px;min-width:40px;display:grid!important;place-items:center;border:1px solid var(--line)!important;border-radius:8px!important;background:var(--soft-lime)!important}.utility-trigger svg{width:18px}.scope-tag{font-size:.75rem;border:1px solid var(--line);border-radius:6px;padding:5px 9px}#main{max-width:1500px;padding:32px 38px 48px;margin:0 auto;min-height:calc(100dvh - 140px)}.workspace-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 38px;padding:20px 0;border-top:1px solid var(--line);color:var(--muted);font-size:.75rem}.workspace-foot .text-button{font-size:.75rem}
.button{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:44px;padding:11px 17px;font-size:.8125rem;font-weight:550;border-radius:8px;border:1px solid var(--line);text-decoration:none;line-height:1.4;background:transparent;transition:background 160ms var(--ease),border-color 160ms var(--ease)}.primary{background:var(--ink);border-color:var(--ink);color:var(--accent-ink,#fffdf8)}.primary:hover:not(:disabled){background:#3b4958}.warm{background:var(--warm);border-color:var(--warm);color:var(--muted)}.warm:hover:not(:disabled){background:#eda679}.outline{color:var(--ink);background:transparent}.outline:hover:not(:disabled){background:var(--soft-lime)}.text-button{background:none;border:0;padding:0;font-size:.8125rem;font-weight:550;line-height:1.5;text-align:left;text-decoration:none;color:inherit}.text-button:hover{text-decoration:underline;text-underline-offset:4px}.button-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.wide{width:100%}.round-button,.icon-button{min-width:40px;min-height:40px;padding:7px;border:1px solid var(--line);border-radius:8px;background:transparent;display:inline-grid;place-items:center}.round-button:hover,.icon-button:hover{background:var(--soft-lime)}.page-head{margin:2px 0 28px}.page-head h1{font-size:2.125rem;letter-spacing:-.035em}.lead{font-size:.875rem;color:var(--muted);margin-top:10px;max-width:65ch}.panel{background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:24px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px}.section-head h2{font-size:1.25rem}.section-head.compact{margin-bottom:12px}.study-subnav{display:flex;align-items:center;gap:5px;overflow-x:auto;margin:-8px 0 28px;padding:0 0 13px;border-bottom:1px solid var(--line);scrollbar-width:thin}.study-subnav button{background:none;border:0;white-space:nowrap;border-radius:7px;color:var(--muted);padding:9px 13px;font-size:.8125rem;min-height:38px}.study-subnav button[aria-current]{background:var(--soft-lime);color:var(--muted);font-weight:600}.overview-actions{display:flex;gap:12px;margin:0 0 28px}.chapter-overview-row{display:flex;gap:20px;align-items:center;padding:22px 0;border-top:1px solid var(--line)}.chapter-overview-row>div{flex:1}.chapter-overview-row h3{font-size:1rem}.chapter-overview-row p{font-size:.8125rem;color:var(--muted);margin-top:6px}.chapter-number{font-size:.875rem;font-variant-numeric:tabular-nums;color:var(--muted);min-width:18px}
.setup-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr);gap:22px;align-items:start}.chapter-choice{display:flex;align-items:center;gap:13px;border-top:1px solid var(--line);padding:18px 0;cursor:pointer}.chapter-choice strong{display:block;font-size:.875rem;font-weight:550}.chapter-choice small{display:block;margin-top:5px;color:var(--muted);font-size:.75rem}.chapter-index{font-size:.8125rem;color:var(--muted)}.unavailable{opacity:.5}.session-config h2{font-size:1.25rem;margin-bottom:22px}.field{display:flex;flex-direction:column;gap:8px;font-size:.8125rem;font-weight:550;margin-bottom:12px}.field input{width:100%;font-size:1.125rem}.count-presets{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:10px}.count-presets button{background:none;border:1px solid var(--line);border-radius:6px;min-width:40px;min-height:34px;font-size:.75rem;padding:6px 9px}.count-presets button:hover{background:var(--soft-lime)}.toggle-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 0;font-size:.875rem}.session-note{border-top:1px solid var(--line);padding-top:16px;margin:18px 0;color:var(--muted);font-size:.8125rem}.session-note>span{display:none}.session-note button{display:block;margin-top:8px;color:var(--accent)}.session-config .wide{margin:16px 0 10px}.session-config>p:last-child{font-size:.75rem;text-align:center;color:var(--muted)}.badge{display:inline-flex;padding:5px 10px;background:var(--soft-lime);color:var(--muted);font-size:.75rem;border-radius:6px}.session-top,.session-top>div{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.session-top{justify-content:space-between}.session-top>div>span:not(.badge){font-size:.8125rem;color:var(--muted)}.timer{font-variant-numeric:tabular-nums;border:1px solid var(--line);padding:7px 11px;border-radius:6px}.session-progress{height:3px;margin:20px 0 30px;background:#eae6df}.session-progress>span{display:block;height:100%;background:var(--accent)}.question{max-width:820px;margin:auto}.question-tools{display:flex;justify-content:space-between;align-items:start;gap:20px;margin-bottom:18px}.question-meta-group{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0}.question-tools .eyebrow{margin:0;font-size:.75rem}.question-id-pill,.micro-id-pill{font-family:inherit;display:inline-flex;align-items:center;gap:5px;font-size:.6875rem;padding:4px 7px;border:1px solid var(--line);border-radius:5px;background:var(--paper);color:var(--muted);overflow-wrap:anywhere}.copy-icon{font-size:.75rem}.save-question{white-space:nowrap}.question-prompt{font-size:1.625rem;line-height:1.45;letter-spacing:-.025em;margin:0 0 26px}.options{display:flex;flex-direction:column;gap:12px}.option{display:flex;align-items:center;text-align:left;gap:14px;width:100%;min-height:64px;padding:16px 18px;border:1px solid var(--line);border-radius:10px;background:var(--paper);font-size:1rem;line-height:1.55}.option-letter{display:grid;place-items:center;flex-shrink:0;width:29px;height:29px;border:1px solid var(--line);border-radius:6px;font-size:.75rem;color:var(--muted)}.option:hover:not(:disabled){background:var(--soft-lime);border-color:#c7bba9}.option.selected{border-color:var(--accent);background:var(--soft-lime);box-shadow:inset 0 0 0 1px var(--accent)}.option:disabled{opacity:1}.option.correct{border-color:#7f8fb9;background:color-mix(in srgb,var(--paper) 86%,#4e608c)}.option.incorrect{border-color:#c5937e;background:var(--soft-coral)}.option.correct .option-letter{background:#536c9c;color:white;border-color:#536c9c}.option.incorrect .option-letter{background:#a95e44;color:white;border-color:#a95e44}.option-mark{margin-left:auto}.check-button{margin-top:20px}.feedback{padding:23px;margin-top:26px;border:1px solid #b8c6df;border-radius:12px;background:color-mix(in srgb,var(--paper) 86%,#4e608c)}.feedback.negative{background:#fff1e9;border-color:var(--line)}.feedback-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:14px}.feedback-head>strong{font-size:.875rem}.explanation{font-size:1rem;line-height:1.8;white-space:pre-line;overflow-wrap:anywhere}.explanation[lang=ar]{font-family:var(--font-ar);font-size:1.125rem;line-height:1.95;letter-spacing:0}.language-toggle{display:flex;border:1px solid var(--line);border-radius:7px;padding:3px;gap:3px;flex-shrink:0}.language-toggle button{background:none;border:0;border-radius:4px;min-width:38px;min-height:30px;font-size:.75rem}.language-toggle button.active{background:var(--ink);color:var(--accent-ink,#fffdf8)}.source-links{display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:14px}.source-link{color:var(--muted);font-size:.75rem}.diagram{margin:0 0 24px;border:1px solid var(--line);background:white;border-radius:12px;padding:20px;text-align:center}.diagram img{max-width:100%;max-height:420px}.diagram figcaption{font-size:.75rem;color:var(--muted);margin-top:12px}.match-list{display:grid;gap:12px}.match-row{display:grid;grid-template-columns:1fr 1.15fr;gap:12px 20px;align-items:center;padding:16px;background:var(--paper);border:1px solid var(--line);border-radius:10px}.match-row select{width:100%;font-size:.875rem}.match-row>span{font-size:.9375rem}.match-row small{grid-column:1/-1;color:var(--coral)}.match-correct{background:color-mix(in srgb,var(--paper) 86%,#4e608c);border-color:#b8c6df}.match-wrong{background:var(--soft-coral);border-color:var(--line)}.order-list{list-style:none;padding:0;margin:16px 0 0;display:grid;gap:10px}.order-list li{display:flex;gap:14px;align-items:center;background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:15px;font-size:.875rem}.step-number{color:var(--muted)}.order-list li>div{margin-left:auto;display:flex;gap:6px}.order-move{width:36px;height:36px;background:none;border:1px solid var(--line);border-radius:6px}.exam-map{display:flex;flex-wrap:wrap;gap:8px;padding-top:20px;margin-top:20px;border-top:1px solid var(--line)}.exam-map button{min-width:36px;height:36px;border:1px solid var(--line);border-radius:6px;background:none;font-size:.8125rem}.exam-map .answered{background:var(--soft-lime);border-color:var(--line)}.exam-map .current{outline:2px solid var(--accent)}.exam-map .skipped{border-style:dashed;background:var(--soft-coral)}.session-dock{position:fixed;left:214px;right:0;bottom:0;z-index:25;background:var(--paper);border-top:1px solid var(--line);padding:13px 28px calc(12px + env(safe-area-inset-bottom))}.dock-buttons{display:flex;gap:10px;max-width:820px;margin:auto}.dock-buttons .button:last-child{margin-left:auto;min-width:100px}.shortcut-hint{font-size:.75rem;color:var(--muted);max-width:820px;margin:7px auto 0}.workspace.is-session #main{padding-bottom:160px}.workspace.is-session .workspace-foot{display:none}.workspace.with-source .session-dock{right:min(46vw,620px)}.session-save-status,.question-list{max-width:820px;margin:24px auto;font-size:.8125rem}.question-list summary{cursor:pointer}.question-bottom{display:flex;justify-content:space-between;gap:18px;margin-top:24px}.practice-completion{margin-bottom:20px;color:var(--muted)}
/* Topic reference workspace: chapter index and context-preserving detail. */
.reference-heading{display:flex;align-items:center;justify-content:space-between;gap:24px}.reference-workspace{display:grid;grid-template-columns:235px minmax(0,1fr);gap:28px;align-items:start}.reference-index{border-right:1px solid var(--line);padding-right:22px;position:sticky;top:20px;max-height:calc(100dvh - 250px);overflow-y:auto;scrollbar-width:thin}.reference-index input,.reference-index select{width:100%;font-size:.8125rem;margin-bottom:10px}.reference-index section{margin:20px 0}.reference-index h2{font-size:.8125rem;font-weight:600;color:var(--muted);margin:0 0 8px;letter-spacing:0}.reference-index section>button{display:block;width:100%;text-align:left;background:none;border:0;padding:11px 12px;margin:3px 0;border-radius:7px;color:var(--muted);font-size:.8125rem;line-height:1.5}.reference-index button strong{font-weight:500}.reference-index button:hover{background:var(--soft-lime)}.reference-index button[aria-current]{background:var(--soft-lime);color:var(--muted)}.reference-index button[aria-current] strong{font-weight:600}.reference-detail{min-width:0;background:var(--paper);border:1px solid var(--line);border-radius:12px;overflow:hidden}.reference-detail>header{padding:24px 28px 21px}.reference-context{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;color:var(--muted);font-size:.75rem}.reference-context .button{font-size:.75rem;min-height:34px;padding:7px 10px;color:var(--accent);background:#fdfcfa}.reference-detail h2{font-size:1.6875rem;line-height:1.3;letter-spacing:-.025em;margin-bottom:10px}.reference-detail>header>p{font-size:.875rem;color:var(--muted);max-width:60ch}.detail-tabs{display:flex;gap:24px;border-block:1px solid var(--line);padding:0 28px;overflow-x:auto;scrollbar-width:thin}.detail-tabs button{flex-shrink:0;background:none;border:0;border-bottom:2px solid transparent;color:var(--muted);font-size:.8125rem;padding:15px 0 13px;min-height:44px}.detail-tabs button[aria-current]{color:var(--muted);border-bottom-color:var(--accent);font-weight:600}.reference-body{padding:26px 28px;animation:detail-in 220ms var(--ease)}@keyframes detail-in{from{opacity:.55;transform:translateY(4px)}to{opacity:1;transform:none}}.reference-facts{display:grid;gap:0}.reference-fact{padding:20px 0;border-bottom:1px solid var(--line)}.reference-fact:first-child{padding-top:0}.reference-fact:last-child{border-bottom:0;padding-bottom:0}.reference-fact h3{font-size:.875rem;font-weight:600;margin-bottom:9px;color:var(--ink)}.reference-fact p{font-size:.9375rem;line-height:1.7;max-width:65ch}.reference-fact .source-link{font-size:.6875rem}.comparison-facts{grid-template-columns:1fr 1fr;gap:22px}.comparison-facts .reference-fact{padding:18px;background:var(--paper);border:0;border-radius:8px}.comparison-facts .reference-fact:nth-child(2n){background:var(--soft-coral)}.comparison-facts .reference-fact h3{font-size:1rem;color:var(--ink)}.comparison-facts .source-links{margin-top:16px}.reference-conditions{border-bottom:1px solid var(--line);margin-bottom:20px;padding-bottom:16px}.reference-conditions p{font-size:.8125rem;color:var(--muted);line-height:1.7}.reference-conditions p+p{margin-top:7px}.reference-connections{display:grid;gap:0}.reference-connections button{background:none;border:0;border-bottom:1px solid var(--line);text-align:left;padding:18px 0}.reference-connections button:first-child{padding-top:0}.reference-connections strong{display:block;font-size:.9375rem}.reference-connections span{display:block;font-size:.8125rem;color:var(--muted);margin-top:6px}.reference-practice>p{margin:10px 0 18px}.reference-practice article{padding:18px 0;border-top:1px solid var(--line)}.reference-practice article p{font-size:.875rem}.reference-practice article button{color:var(--accent);margin-top:10px}.reference-back{display:none}.reference-empty{padding:28px}.reference-empty p{margin-top:12px;color:var(--muted)}
/* Source viewing keeps exact original images, focus and zoom behavior. */
.source-panel,.source-dialog{display:flex;flex-direction:column;padding:0;border:0;background:var(--paper);color:var(--ink)}.source-panel{position:fixed;z-index:60;top:0;right:0;height:100dvh;width:min(46vw,620px);border-left:1px solid var(--line);box-shadow:-12px 0 40px #25384c14}.source-dialog{width:min(96vw,1500px);max-width:96vw;height:94dvh;max-height:96dvh;border-radius:12px;box-shadow:0 18px 80px #25384c33}.source-dialog::backdrop,.confirm-dialog::backdrop,.release-dialog::backdrop,.notes-dialog::backdrop{background:#25384c66}.source-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 22px;border-bottom:1px solid var(--line)}.source-header h2{font-size:1.25rem;overflow-wrap:anywhere}.source-header>div{min-width:0}.source-header .icon-button{flex-shrink:0;font-size:1.5rem}.source-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px;padding:10px 14px;border-bottom:1px solid var(--line);font-size:.8125rem}.source-toolbar .text-button{font-size:.75rem}.source-toolbar input{width:64px;font-size:.875rem;min-height:36px;padding:6px}.source-jump{display:flex;align-items:center;gap:8px}.source-jump label{white-space:nowrap}.source-jump>button{min-height:36px;padding:6px}.source-foot{font-size:.6875rem;color:var(--muted);padding:10px 16px;border-top:1px solid var(--line)}.source-panel iframe,.source-dialog iframe{width:100%;flex:1;min-height:180px;border:0}.source-page-note{font-size:.75rem;padding:10px 16px;background:var(--soft-lime)}.source-image-wrap{overflow:auto;flex:1;min-height:0;display:flex;align-items:flex-start;justify-content:center;background:var(--soft-lime);padding:12px}.source-image-wrap img{display:block;width:100%;height:auto;object-fit:contain;flex-shrink:0}.source-image-wrap.zoomed{justify-content:flex-start}.source-image-wrap.zoomed img{width:160%;max-width:none}.workspace.with-source{margin-right:min(46vw,620px)}
/* Results, evidence and local backup. */
.result-banner{display:flex;align-items:center;justify-content:space-around;gap:24px;background:var(--ink);color:var(--accent-ink,#fffdf8);padding:30px;border-radius:12px}.result-banner .score{font-size:3.25rem;line-height:1;font-variant-numeric:tabular-nums}.score small{font-size:1.5rem;color:#d4cdc3}.result-banner strong{font-size:1.75rem}.result-banner p{font-size:.8125rem;color:#e6e1d9;margin-top:8px}.result-actions{margin:24px 0 16px}.result-actions+.small{margin-bottom:28px}.result-row{border-bottom:1px solid var(--line)}.result-row summary{display:flex;gap:14px;align-items:start;padding:20px 0;cursor:pointer;font-size:.875rem;line-height:1.6;list-style:none}.result-row summary>span:last-child{margin-left:auto}.result-icon{width:26px;height:26px;display:grid;place-items:center;border-radius:6px;flex-shrink:0}.good{background:#e4ecfb}.bad{background:#f8e2d8}.result-detail{padding:0 0 24px 40px}.result-detail .explanation{margin-top:14px}.result-meta-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.response-scroll{overflow-x:auto;margin-bottom:18px}.match-result-table{border-collapse:collapse;width:100%;min-width:500px;font-size:.8125rem;line-height:1.6}.match-result-table td,.match-result-table th{text-align:left;vertical-align:top;padding:10px 12px 10px 0;border-bottom:1px solid var(--line)}.sequence-results{display:grid;grid-template-columns:1fr 1fr;gap:24px;font-size:.875rem;line-height:1.7}.sequence-results ol{padding-left:20px}.sequence-results li{padding:5px 0}.history-note{margin-bottom:20px}.evidence-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:20px}.evidence-card{background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:20px;text-align:left}.evidence-card strong{display:block;font-size:2rem;margin-bottom:8px;font-weight:500}.evidence-card span{font-size:.75rem;color:var(--muted)}.evidence-card.active{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}.evidence-card.consistent{background:var(--soft-lime)}.filter-row{display:flex;gap:10px}.filter-row select{font-size:.8125rem}.progress-explainer,.two-up{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:24px}.progress-explainer h2{font-size:1.25rem;margin-bottom:12px}.progress-explainer p{font-size:.875rem;color:var(--muted)}.backup-panel{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:24px 0}.backup-panel h2{font-size:1.25rem;margin-bottom:10px}.backup-panel p{font-size:.8125rem;color:var(--muted)}.concept-row{border-bottom:1px solid var(--line)}.concept-row summary{display:flex;align-items:center;gap:13px;padding:18px 0;cursor:pointer;list-style:none}.concept-row strong{font-size:.875rem;display:block;font-weight:500}.concept-row small{font-size:.75rem;color:var(--muted);display:block;margin-top:5px}.concept-state{margin-left:auto;text-align:right;font-size:.75rem;flex-shrink:0}.state-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0;background:#c3bdb3}.state-dot.consistent{background:#aa926f}.state-dot.limited{background:#b7ac9c}.state-dot.inconsistent{background:#bb7e5d}.concept-detail{padding:0 24px 22px;font-size:.875rem;line-height:1.7}.source-summary{display:flex;gap:38px;border-bottom:1px solid var(--line);padding-bottom:24px;margin-bottom:20px}.source-summary strong{display:block;font-size:1.75rem;font-weight:500}.source-summary span{font-size:.8125rem;color:var(--muted)}.material-row{display:flex;align-items:center;gap:20px;padding:24px 0;border-bottom:1px solid var(--line)}.material-row>div:not(.material-actions){min-width:0;flex:1}.material-row h2{font-size:1.25rem}.material-row p{font-size:.8125rem;color:var(--muted);margin-top:8px}.material-row small{font-size:.6875rem;color:var(--muted);display:block;margin-top:6px;overflow-wrap:anywhere}.material-actions{display:flex;gap:16px;align-items:center;flex-shrink:0}.material-actions .button{font-size:.8125rem}.source-notes{margin-top:24px}.source-notes summary{font-size:.875rem;cursor:pointer;font-weight:550}.source-notes article{padding-top:16px;margin-top:16px;border-top:1px solid var(--line)}.source-notes article p{font-size:.8125rem;color:var(--muted);margin:8px 0}.source-notes article>strong{font-size:.8125rem}.resource-links a{text-decoration:none}.resource-links h2{font-size:1.25rem}.resource-links p{font-size:.875rem;color:var(--muted);margin:12px 0 20px}.resource-links strong{font-size:.8125rem}
.settings-panel{max-width:820px}.settings-panel section+section{border-top:1px solid var(--line);padding-top:24px;margin-top:24px}.settings-panel h2{font-size:1.25rem;margin-bottom:16px}.radio-row{display:flex;align-items:center;gap:14px;padding:12px 0;cursor:pointer}.radio-row strong{font-size:.875rem}.radio-row small{display:block;font-size:.8125rem;color:var(--muted);margin-top:4px}.setting-field{display:flex;align-items:center;justify-content:space-between;gap:24px;font-size:.875rem;margin-bottom:20px}.setting-field select{width:55%;font-size:.8125rem}.settings-panel .small{margin-top:14px;color:var(--muted)}.settings-panel>.button{margin-top:20px}.settings-data{display:flex;gap:24px;align-items:center;flex-wrap:wrap;max-width:820px;margin-top:24px}.settings-data h2{font-size:1.25rem;margin-bottom:8px}.settings-data p{font-size:.8125rem;color:var(--muted)}.settings-data>div{flex:1;min-width:220px}.danger-link{background:none;border:0;color:var(--coral);font-size:.8125rem;text-align:left}.notice{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#f1ece5;border-bottom:1px solid #dbcfbe;padding:14px 38px;font-size:.8125rem}.notice.error{background:var(--soft-coral);border-color:var(--line)}.notice>button{background:none;border:0;font-size:1.4rem;min-width:36px;min-height:36px}.loading{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;padding:28px;text-align:center}.error-state p{max-width:55ch;color:var(--muted)}.empty-state{text-align:center;max-width:620px;margin:36px auto}.empty-state>span{display:none}.empty-state p{color:var(--muted);margin:14px 0 20px;font-size:.875rem}.confirm-dialog,.release-dialog{color:var(--ink);background:var(--paper);padding:28px;border:1px solid var(--line);border-radius:12px;max-height:90dvh;overflow:auto}.confirm-dialog{width:min(92vw,490px)}.release-dialog{width:min(94vw,640px)}.confirm-dialog p{font-size:.875rem;color:var(--muted);margin:18px 0 24px}.confirm-dialog .button-row{justify-content:flex-end}.release-dialog h2,.release-copy h2{font-size:1.5rem;margin-bottom:20px}.release-copy li,.release-dialog li{line-height:1.7;font-size:.9375rem;margin-bottom:10px}.release-version{font-size:.8125rem;color:var(--muted);margin-bottom:12px}.release-history{display:grid;gap:24px;max-width:860px}.release-dialog .button-row{margin-top:22px}.notes-dialog{width:min(1000px,96vw);max-width:96vw;max-height:94dvh;border:1px solid var(--line);border-radius:12px;padding:0;background:var(--paper);color:var(--ink)}.notes-actions{position:sticky;top:0;display:flex;align-items:center;gap:16px;padding:18px 24px;background:var(--paper);border-bottom:1px solid var(--line);z-index:1}.notes-actions>div{flex:1}#study-notes{padding:36px 42px}.notes-title{border-bottom:1px solid var(--line);padding-bottom:24px;margin-bottom:24px}.notes-title h1{font-size:2rem;margin:12px 0}.notes-title>p{font-size:.8125rem;color:var(--muted)}.notes-chapter>h2{font-size:1.5rem;margin:28px 0 20px}.study-note{margin-bottom:24px;padding:20px 0;border-top:1px solid var(--line)}.study-note h3{margin-bottom:14px}.study-note dl>div{display:grid;grid-template-columns:1fr 1.5fr;gap:14px;padding:10px 0;border-top:1px solid var(--line);font-size:.875rem}.study-note dd{margin:0}.study-note li{line-height:1.6;margin-bottom:8px}.note-refs{font-size:.75rem;color:var(--muted);margin-top:16px}.answer-totals{display:flex;flex-wrap:wrap;gap:16px 28px;padding:20px 0;border-block:1px solid var(--line);margin:24px 0}.answer-totals>div{display:flex;align-items:baseline;gap:8px}.answer-totals strong{font-size:1.5rem;font-weight:500;font-variant-numeric:tabular-nums}.answer-totals span,.answer-totals>p{font-size:.8125rem;color:var(--muted)}.answer-totals>p{width:100%}.resume-panel{margin-bottom:24px}.resume-panel h2{font-size:1.25rem;margin-bottom:12px}.resume-row{display:flex;gap:20px;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding:16px 0}.resume-row strong{font-size:.875rem}.saved-list{display:grid;gap:18px}.saved-question h3{font-size:1rem}.saved-question .section-head{margin-bottom:14px}.saved-question details{margin-top:16px}.saved-question summary{cursor:pointer;font-size:.875rem;margin-bottom:14px}
/* Course catalog and question library. */
.courses-grid{display:grid;gap:18px;margin:28px 0}.course-card{display:grid;grid-template-columns:minmax(220px,1fr) minmax(230px,1fr);gap:6px 32px;align-items:center;padding:26px}.course-card-top{grid-column:1/-1;display:flex;align-items:center;gap:12px;margin-bottom:5px}.course-tag,.current-badge{font-size:.6875rem;color:var(--muted);border-radius:5px}.current-badge{background:var(--soft-lime);padding:4px 7px;color:var(--muted)}.course-card h2{font-size:1.375rem;grid-column:1}.course-desc{font-size:.8125rem;color:var(--muted);grid-column:1;max-width:50ch}.course-stats{grid-column:2;grid-row:2/4;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.course-stats strong{display:block;font-size:1.25rem;font-weight:550}.course-stats span{display:block;font-size:.6875rem;color:var(--muted);margin-top:5px;line-height:1.45}.course-footer{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:16px;padding-top:18px;border-top:1px solid var(--line)}.course-progress-badge{font-size:.75rem;color:var(--muted);display:flex;align-items:center;gap:8px}.progress-dot{width:6px;height:6px;border-radius:50%;background:#cdc7be}.progress-dot.in-progress{background:var(--accent)}.platform-features-strip{display:flex;gap:24px;flex-wrap:wrap;font-size:.75rem;color:var(--muted)}.feature-item strong{display:block;font-weight:550}.feature-item span{font-size:.6875rem}.platform-features-strip .feature-item:nth-child(n+3){display:none}.bank-filter-section{padding:18px 0}.bank-filter-label{font-size:.8125rem;font-weight:600;margin-bottom:10px}.bank-filter-pills,.count-presets{display:flex;flex-wrap:wrap;gap:7px}.bank-filter-pill{font-size:.8125rem;border:1px solid var(--line);border-radius:7px;background:none;padding:8px 11px}.bank-filter-pill.active{background:var(--soft-lime);border-color:var(--line);color:var(--muted)}.bank-stats-grid{display:flex;flex-wrap:wrap;gap:16px;font-size:.8125rem;margin-bottom:14px}.bank-stat-item,.bank-stat{display:flex;align-items:center;gap:6px}.bank-summary-panel{margin-bottom:22px}.bank-summary-panel h2{font-size:1.25rem;margin-bottom:12px}.bank-browser{border:1px solid var(--line);border-radius:12px;background:var(--paper);padding:20px;margin-top:24px}.bank-browser-summary{display:flex;align-items:center;gap:16px;justify-content:space-between;list-style:none;cursor:pointer;font-size:.9375rem}.bank-browser-summary::-webkit-details-marker{display:none}.summary-title-group{display:flex;flex-direction:column;gap:3px}.summary-title-group small{color:var(--muted);font-size:.75rem}.summary-actions{margin-left:auto;display:flex;gap:8px;align-items:center}.bank-expand-btn{background:none;border:1px solid var(--line);border-radius:6px;padding:6px 10px;font-size:.75rem}.bank-browser-content{margin-top:20px}.bank-browser-controls{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-bottom:16px}.bank-search-wrap{position:relative;flex:1;min-width:200px}.bank-search-wrap input{width:100%;font-size:.875rem}.bank-browser-controls select{font-size:.8125rem}.bank-browser-table-wrap{overflow:auto;max-height:480px;border:1px solid var(--line);border-radius:8px}.bank-browser-table{border-collapse: separate;border-spacing:0;width:100%;min-width:690px;text-align:left;font-size:.8125rem}.bank-browser-table th{position:sticky;top:0;z-index:2;background:var(--paper);padding:12px;font-size:.75rem;color:var(--muted);font-weight:550;border-bottom:1px solid var(--line)}.bank-browser-table td{padding:14px 12px;border-bottom:1px solid var(--line);vertical-align:middle;background:var(--paper)}.bank-browser-table tr:hover td{background:var(--paper)}.col-num{width:44px;text-align:center}.col-status{width:110px}.col-chap{width:140px}.col-src{width:85px}.col-action{width:85px;text-align:right}.bank-browser-table .micro-btn{font-size:.75rem;padding:7px 10px;min-height:34px}.bank-status-badge{font-size:.6875rem;padding:4px 7px;border-radius:5px;white-space:nowrap;display:inline-block}.status-correct{color:var(--ink);background:color-mix(in srgb,var(--paper) 86%,#4e608c)}.status-missed{color:var(--coral);background:var(--soft-coral)}.status-unseen{color:var(--muted);background:#f7f4f0}.status-saved{color:var(--muted);background:var(--soft-lime)}.bank-empty-state{text-align:center;padding:30px;color:var(--muted)}.bank-browser.fullscreen{position:fixed;inset:16px;z-index:90;display:flex;flex-direction:column;max-height:calc(100dvh - 32px);margin:0;box-shadow:0 20px 70px #25384c33;overflow:hidden}.bank-browser.fullscreen .bank-browser-content{display:flex;flex-direction:column;flex:1;min-height:0}.bank-browser.fullscreen .bank-browser-table-wrap{flex:1;max-height:none;min-height:0}.bank-clear-search,.bank-reset-filters{font-size:.8125rem}.bank-browser-footer{margin-top:14px;color:var(--muted);font-size:.75rem}
/* Existing Microbiology reference tools adopt the same compact system. */
.memorize-subnav{display:flex;gap:6px;overflow-x:auto;margin:0 0 24px;padding-bottom:12px;border-bottom:1px solid var(--line);scrollbar-width:thin}.memorize-nav-btn{display:flex;align-items:center;gap:8px;background:none;border:0;border-radius:7px;white-space:nowrap;padding:10px 13px;min-height:40px;font-size:.8125rem;color:var(--muted)}.memorize-nav-btn.active{background:var(--soft-lime);color:var(--muted);font-weight:600}.memorize-nav-btn small{font-size:.6875rem;background:var(--soft-lime);padding:2px 6px;border-radius:5px}.memorize-toolbar{padding:18px 0;border-bottom:1px solid var(--line);margin-bottom:24px;display:flex;flex-direction:column;gap:14px}.search-and-mode-row{display:flex;gap:16px;align-items:center}.search-input-wrap{flex:1;min-width:0}.search-input-wrap label{font-size:.8125rem;display:block;margin-bottom:7px}.search-input-wrap input{width:100%;font-size:.875rem}.search-input-wrap .search-icon{display:none}.view-mode-toggle,.tree-mode-toggle{display:flex;gap:4px;padding:3px;background:#efebe5;border-radius:8px}.mode-pill,.tree-mode-btn{background:none;border:0;padding:9px 12px;min-height:36px;border-radius:6px;font-size:.8125rem;color:var(--muted);white-space:nowrap}.mode-pill.active,.tree-mode-btn.active{background:var(--paper);color:var(--ink)}.cat-pills-scroll{display:flex;gap:7px;overflow-x:auto;max-width:100%;padding-bottom:5px;scrollbar-width:thin}.cat-pill{background:var(--paper);border:1px solid var(--line);border-radius:7px;padding:8px 11px;white-space:nowrap;font-size:.75rem;color:var(--muted)}.cat-pill.active{background:var(--soft-lime);color:var(--muted);border-color:var(--line)}.cat-pill-count{margin-left:6px;font-size:.6875rem}.bacteria-workspace,.dossier-workspace{display:grid;grid-template-columns:235px minmax(0,1fr);gap:28px;align-items:start}.bacteria-sidebar,.dossier-sidebar{position:sticky;top:20px;max-height:calc(100dvh - 40px);min-width:0;display:flex;flex-direction:column;border-right:1px solid var(--line);padding-right:20px}.bacteria-sidebar-head,.dossier-sidebar-head{display:flex;gap:12px;justify-content:space-between;padding-bottom:15px;font-size:.8125rem}.bacteria-sidebar-hint,.dossier-sidebar-hint{color:var(--muted);font-size:.6875rem}.bacteria-dir-list,.dossier-dir-list{display:flex;flex-direction:column;gap:5px;overflow-y:auto;padding:2px 3px 6px}.bacteria-dir-card,.dossier-dir-card{display:flex;flex-direction:column;gap:5px;text-align:left;border:0;background:transparent;padding:12px;border-radius:8px;flex-shrink:0}.bacteria-dir-card.active,.dossier-dir-card.active{background:var(--soft-lime);color:var(--muted)}.dir-card-top{display:flex;gap:8px;align-items:center}.dir-org-name{font-size:.8125rem;font-weight:550}.dir-card-meta{font-size:.6875rem;color:var(--muted);line-height:1.5}.gram-mini,.gram-badge{font-size:.6875rem;border:1px solid var(--line);padding:3px 5px;border-radius:5px;white-space:nowrap;font-weight:550}.bacteria-viewer,.dossier-viewer{background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:26px;min-width:0;display:flex;flex-direction:column;gap:24px}.bacteria-hero,.viewer-hero{display:flex;align-items:start;justify-content:space-between;gap:20px;flex-wrap:wrap;padding-bottom:22px;border-bottom:1px solid var(--line)}.bacteria-hero-main,.viewer-hero-main{min-width:0;flex:1 1 100%}.bacteria-badge-row,.viewer-badge-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:12px}.bacteria-points-badge{font-size:.6875rem;background:var(--soft-lime);padding:4px 7px;border-radius:5px;color:var(--muted)}.bacteria-title,.viewer-title{font-size:1.75rem;line-height:1.25;overflow-wrap:anywhere}.bacteria-subtitle{font-size:.8125rem;line-height:1.6;color:var(--muted);margin-top:10px}.bacteria-hero-actions,.viewer-hero-actions{display:flex;gap:10px;flex-wrap:wrap}.bacteria-lectures-stack{display:grid;gap:28px}.bacteria-lecture-section{display:grid;gap:14px}.lecture-section-head{display:flex;gap:15px;align-items:baseline;justify-content:space-between;flex-wrap:wrap;padding-bottom:12px;border-bottom:1px solid var(--line)}.lecture-section-title{font-size:1rem}.lecture-section-count{font-size:.6875rem;color:var(--muted)}.bacteria-facts-list{display:grid}.bacteria-fact-card{display:flex;align-items:start;gap:16px;padding:19px 0;border-bottom:1px solid var(--line)}.bacteria-fact-card:last-child{border:0;padding-bottom:0}.fact-card-indicator{flex-shrink:0}.slide-page-badge{font-size:.6875rem;background:#f6f3ef;color:var(--muted);border-radius:5px;padding:5px 7px;display:inline-block}.fact-card-content{flex:1;min-width:0}.fact-slide-title{font-size:.6875rem;color:var(--muted);margin-bottom:7px;text-transform:none;letter-spacing:0}.fact-slide-text{font-size:.875rem;line-height:1.65;overflow-wrap:anywhere}.fact-card-action{flex-shrink:0}.micro-btn{font-size:.75rem;min-height:34px;padding:8px 11px}.organisms-matrix-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.organism-matrix-card,.matrix-card{border:1px solid var(--line);border-radius:12px;background:var(--paper);padding:22px}.matrix-card-head{display:flex;justify-content:space-between;gap:12px;margin-bottom:16px}.matrix-card-head h3{font-size:1rem}.matrix-card-body{font-size:.875rem;line-height:1.7}.matrix-card-hallmark{padding:14px;background:var(--soft-lime);border-radius:7px;margin-top:14px;font-size:.8125rem}.matrix-selector-bar{margin-bottom:20px}.matrix-pills{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:18px}.matrix-pill{border:1px solid var(--line);background:var(--paper);border-radius:7px;padding:9px 12px;font-size:.8125rem}.matrix-pill.active{background:var(--soft-lime);color:var(--muted);border-color:var(--line)}.matrix-controls-row{display:flex;justify-content:space-between;align-items:center;gap:20px}.matrix-actions-bar{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.occlusion-quick-actions{display:flex;gap:8px}.matrix-table-wrap{padding:0;overflow:auto;max-width:100%}.matrix-table{border-collapse:collapse;width:100%;min-width:620px;font-size:.875rem;line-height:1.6;text-align:left}.matrix-table th,.matrix-table td{padding:16px 18px;border-bottom:1px solid var(--line);vertical-align:top;min-width:170px}.matrix-table thead th{background:var(--soft-lime);font-weight:550}.matrix-table th[scope=row]{background:var(--paper);font-weight:550}.matrix-cell-toggle{position:relative;display:block;width:100%;border:0;background:none;color:inherit;padding:8px;text-align:left;min-height:50px}.cell-cover{display:none}.occluded-cell .cell-text{visibility:hidden}.occluded-cell .cell-cover{display:flex;position:absolute;inset:0;align-items:center;justify-content:center;color:var(--muted);background:var(--soft-lime);border-radius:6px;font-size:.75rem}.occluded-cell.revealed .cell-text{visibility:visible}.occluded-cell.revealed .cell-cover{display:none}.heuristics-grid{display:grid;gap:20px;grid-template-columns:1fr 1fr}.heuristic-head{display:flex;align-items:center;gap:12px;margin-bottom:16px}.heuristic-icon,.heuristic-tag{display:none}.heuristic-rule{font-size:.9375rem;line-height:1.7;padding:16px;background:var(--paper);border-radius:8px}.heuristic-exam-note{margin-top:18px;font-size:.875rem;line-height:1.7}.heuristic-exam-note strong{font-size:.8125rem;color:var(--muted)}.heuristic-foot{margin-top:20px}.dossier-refs-label{font-size:.75rem;color:var(--muted)}
.tree-selector-bar{margin-bottom:20px}.tree-bar-top{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.tree-pills{display:flex;flex-wrap:wrap;gap:8px}.tree-pill{border:1px solid var(--line);background:var(--paper);padding:10px 13px;border-radius:7px;font-size:.8125rem}.tree-pill.active{background:var(--soft-lime);color:var(--muted);border-color:var(--line)}.tree-summary-text{font-size:.875rem;color:var(--muted);margin-top:16px}.tree-full-view{padding:0;overflow:hidden}.tree-view-header{padding:22px 24px;border-bottom:1px solid var(--line)}.tree-view-title{font-size:1.25rem}.tree-view-desc{font-size:.8125rem;color:var(--muted);margin-top:10px}.tree-view-badge,.sim-section-kicker,.flow-step-badge,.flow-outcome-flag,.flow-orgs-label{display:none}.flowchart-viewport{padding:24px;overflow-x:auto;max-width:100%;overscroll-behavior-x:contain;background:var(--paper)}.flow-node-wrapper{display:flex;flex-direction:column;gap:18px}.flow-step-card{background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:16px;max-width:480px}.flow-step-title{font-size:1rem;margin-bottom:8px}.flow-step-prompt{font-size:.8125rem;color:var(--muted);line-height:1.6}.flow-step-result{display:inline-block;margin-top:10px;padding:4px 8px;background:var(--soft-lime);border-radius:5px;font-size:.75rem}.flow-branches-container{display:flex;gap:24px;flex-wrap:wrap;margin-left:16px;padding-left:20px;border-left:1px solid #c9bfb1}.flow-branch-track{display:flex;flex-direction:column;gap:14px;min-width:240px;max-width:420px}.flow-branch-connector{display:flex;align-items:center;gap:7px}.flow-connector-line{width:12px;height:1px;background:#c9bfb1}.flow-branch-badge{font-size:.8125rem;padding:5px 9px;background:var(--soft-lime);border-radius:5px}.flow-group-tag{font-size:.6875rem;color:var(--muted)}.flow-connector-arrow{color:var(--muted)}.flow-outcome-card{background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:18px;max-width:440px;display:flex;flex-direction:column;gap:12px}.flow-outcome-header{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.flow-outcome-name{font-size:1rem;font-weight:600}.flow-outcome-clues{font-size:.8125rem;color:var(--muted);line-height:1.65}.flow-outcome-actions{display:flex;gap:10px;flex-wrap:wrap}.flow-org-pills,.flow-orgs-list{display:flex;flex-wrap:wrap;gap:8px}.flow-org-pill{display:inline-flex;align-items:center;gap:8px;padding:8px 10px;background:var(--paper);border:1px solid var(--line);border-radius:6px;font-size:.8125rem}.microbe-stain-badge{font-size:.6875rem;color:var(--muted)}.pill-arrow{font-size:.75rem;color:var(--accent)}.highlight-pulse{outline:2px solid var(--accent);outline-offset:3px;animation:detail-in 300ms var(--ease)}.sim-section-header{margin:24px 0}.sim-section-header h2{font-size:1.25rem}.sim-breadcrumb-bar{padding:16px 0;border-block:1px solid var(--line);margin-bottom:20px;display:flex;align-items:center;flex-wrap:wrap;gap:10px}.sim-breadcrumb-title{font-size:.75rem;color:var(--muted)}.sim-breadcrumb-trail{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.sim-crumb-btn{border:1px solid var(--line);background:none;border-radius:6px;padding:7px 10px;font-size:.75rem}.sim-crumb-btn.current{background:var(--soft-lime)}.sim-reset-btn{margin-left:auto}.sim-active-header{display:flex;gap:14px;align-items:center;margin-bottom:16px}.sim-step-num{font-size:.8125rem;color:var(--muted)}.sim-active-title{font-size:1.5rem}.sim-active-prompt{font-size:.9375rem;color:var(--muted);margin-bottom:14px}.sim-active-result{font-size:.8125rem;color:var(--muted);margin-bottom:14px}.sim-choices-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:20px}.sim-choice-card{border:1px solid var(--line);background:var(--paper);border-radius:10px;padding:20px;text-align:left;display:flex;flex-direction:column;gap:10px}.sim-choice-card:hover{background:var(--soft-lime);border-color:var(--line)}.sim-choice-label{font-size:.9375rem;font-weight:550}.sim-choice-pill,.sim-choice-group{font-size:.75rem;color:var(--muted)}.sim-choice-arrow{color:var(--accent)}.sim-outcome-celebration{background:var(--paper)}.sim-celebration-head{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-bottom:18px}.sim-confirmed-title{font-size:1.5rem}.sim-confirmed-badge{font-size:.75rem;color:var(--muted)}.sim-confirmed-clues{font-size:.9375rem;line-height:1.7;color:var(--muted)}.sim-celebration-actions{margin-top:20px;display:flex;gap:12px;flex-wrap:wrap}.topbar-utility{position:relative}.topbar-utility>summary{display:grid;place-items:center;min-height:40px;min-width:40px;border:1px solid var(--line);border-radius:8px;background:var(--soft-lime);cursor:pointer;list-style:none}.topbar-utility>summary::-webkit-details-marker{display:none}.topbar-utility>div{position:absolute;top:calc(100% + 8px);right:0;background:var(--paper);border-radius:8px;padding:6px;box-shadow:0 10px 30px #25384c20;z-index:65;min-width:170px}.topbar-utility button{display:block;width:100%;text-align:left;border:0;background:none;border-radius:6px;padding:12px;font-size:.8125rem}.topbar-utility button:hover{background:var(--soft-lime)}.source-page-scroll{overflow:auto;flex:1;min-height:0;padding:14px;background:var(--soft-lime);overscroll-behavior:contain}.source-page-scroll img{display:block;width:100%;height:auto;margin:auto;background:white}.source-page-scroll.zoomed img{width:1440px;max-width:none}.source-page-fallback{padding:24px;font-size:.875rem}.source-page-fallback p{margin-bottom:16px}.menu-toggle{display:none}
html[data-text-size=large]{font-size:18px}html[data-reduced-motion=true] *,html[data-reduced-motion=true] *::before,html[data-reduced-motion=true] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{.sidebar,.topbar,.workspace-foot,.notes-actions,.skip-link{display:none!important}.workspace{margin:0!important}#main,#study-notes{padding:0!important}.notes-dialog{position:static;width:auto;max-width:none;max-height:none;border:0}.study-note{break-inside:avoid}}

html[data-show-elapsed=false] .timer[aria-label="Practice elapsed time"]{display:none}

.topbar-utility{display:none}.topbar-saved{color:var(--accent);background:var(--soft-lime);border:1px solid var(--line);border-radius:7px;padding:9px 12px;font-size:.75rem}.catalog-note{font-size:.8125rem;color:var(--muted);margin-top:24px}

/* Focused sessions and fullscreen use the same answer state, not a duplicate screen. */
.course-initial{display:none}.rail-courses,.utility-menu summary{display:flex;align-items:center;gap:10px}.rail-courses svg,.utility-menu summary svg{width:18px;height:18px;flex-shrink:0}
.app-frame.is-session .sidebar{display:none}.app-frame.is-session .workspace{margin-left:0}.app-frame.is-session .topbar{display:none}.app-frame.is-session .session-dock{left:0}.app-frame.is-session #main{max-width:1280px;margin:auto}.fullscreen-study{display:inline-flex;align-items:center;gap:7px;min-height:40px}.fullscreen-study svg{width:18px;height:18px}.fullscreen-study[aria-pressed=true]{color:var(--accent)}
html.study-focus{background:var(--cream)}.study-focus .workspace.is-session #main{max-width:1500px;padding:32px 48px 150px}.study-focus .question,.study-focus .session-top,.study-focus .session-progress,.study-focus .session-save-status,.study-focus .question-list,.study-focus .dock-buttons,.study-focus .shortcut-hint{max-width:1320px;margin-left:auto;margin-right:auto}.study-focus .question-prompt{font-size:clamp(1.5rem,2.15vw,2.6rem);line-height:1.4;margin-bottom:34px}.study-focus .option{font-size:clamp(1rem,1.3vw,1.5rem);min-height:94px;padding:22px 26px;gap:20px}.study-focus .options{gap:14px}.study-focus .option-letter{width:39px;height:39px;font-size:1rem}.study-focus .question-tools{margin-bottom:24px}.study-focus .feedback{font-size:1.125rem}.study-focus .explanation{font-size:1.125rem}

.save-question{display:inline-flex;align-items:center;gap:7px}.save-question svg{width:16px;height:16px}

/* Weak areas page (projects/app/weak-areas, part 2). Chapter cards, squares, evaluation icons, two buttons per card. Existing colours only: the evidence-state purple and clay already used by .state-dot. */
.wa{--wa-fill:#aa926f;--wa-warn:#a65e3d;--wa-grey:#675f58;display:grid;gap:14px;margin-bottom:8px}
:root[data-room-time=night] .wa{--wa-fill:#d6b87e;--wa-warn:#e6a583;--wa-grey:#9aa6b6}
.wa-head{margin-bottom:10px!important}
.wa-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.wa-ask{min-height:44px;padding:8px 14px;border:1px solid var(--ink);border-radius:10px;background:transparent;color:var(--ink);font-size:.9375rem;font-weight:600;line-height:1.2;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.wa-ask[aria-expanded=true]{background:var(--ink);color:var(--paper)}
.wa-ask::after{content:"";width:7px;height:7px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg) translateY(-2px);flex:none}
.wa-ask[aria-expanded=true]::after{transform:rotate(-135deg) translateY(-1px)}
.wa-ask-all{width:100%}
.wa-card{background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:16px;display:grid;gap:10px}
.wa-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.wa-top h2{margin:0;font:500 1.125rem/1.25 Literata,Georgia,serif;letter-spacing:-.01em;min-width:0;overflow-wrap:anywhere}
.wa-word,.wa-rowword{display:inline-flex;align-items:center;gap:6px;font-size:.875rem;font-weight:600;white-space:nowrap;color:var(--ink);flex:none}
.wa-word svg,.wa-rowword svg{width:22px;height:22px;flex:none;overflow:visible}
.wa svg .stk{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.wa .ev-strong svg .fill{fill:var(--wa-fill)}.wa .ev-strong .stk.on,.wa .ev-needs-work .stk.on{stroke:var(--paper)}
.wa .ev-okay .ring{fill:none;stroke:var(--ink);stroke-width:2}
.wa .ev-needs-work svg .fill{fill:var(--wa-warn)}
.wa .ev-not-enough,.wa .ev-not-started,.wa .ev-barely-started{color:var(--wa-grey);font-weight:500}
.wa .ev-not-started .dash,.wa .ev-barely-started .dash{fill:none;stroke:var(--wa-grey);stroke-width:2;stroke-dasharray:3 3}
.wa-squares{display:flex;align-items:center;gap:3px;height:28px;min-width:0}
.wa-squares i{flex:1 1 0;min-width:0;max-width:34px;height:18px;border:1.5px solid var(--wa-fill);border-radius:4px;background:linear-gradient(90deg,var(--wa-fill) calc(var(--f)*100%),transparent 0)}
.wa-mark{flex:none;width:2px;height:28px;margin:0 -1px;background:var(--ink);border-radius:1px}
.wa-line{margin:0;font-size:.9375rem;line-height:1.35}
.wa-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:start}
.wa-more{min-width:0}
.wa-more>summary{min-height:44px;padding:8px 14px;border:1px solid var(--line);border-radius:10px;background:transparent;color:var(--ink);font-size:.9375rem;font-weight:600;line-height:1.2;display:flex;align-items:center;justify-content:center;gap:8px;list-style:none;cursor:pointer}
.wa-more>summary::-webkit-details-marker{display:none}
.wa-more>summary::after{content:"";width:7px;height:7px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg) translateY(-2px);flex:none}
.wa-more[open]>summary::after{transform:rotate(-135deg) translateY(-1px)}
.wa-detail{margin-top:10px}
.wa-actions:has(.wa-more[open]){grid-template-columns:1fr}
.wa-detail h3,.wa-panel h3{margin:14px 0 4px;font:600 .875rem/1.3 Inter,sans-serif;color:var(--muted)}
.wa-detail p,.wa-detail li,.wa-panel p,.wa-panel li{font-size:.875rem;line-height:1.45;margin:2px 0}
.wa-rows,.wa-plain{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.wa-plain{list-style:disc;padding-left:18px;gap:4px}
.wa-rows li{display:flex;flex-wrap:wrap;align-items:center;gap:2px 12px;padding:8px 0;border-top:1px solid var(--line)}
.wa-rowtitle{font-weight:600;min-width:0;overflow-wrap:anywhere;flex:1 1 150px}
.wa-rownum{color:var(--muted)}
.wa-panel{border-top:1px solid var(--line);padding-top:6px}.wa-panel[hidden]{display:none}
.wa-card .wa-panel{margin-top:2px}
.wa-go{min-height:44px;padding:8px 14px;border:1px solid var(--ink);border-radius:10px;background:var(--ink);color:var(--paper);font-size:.875rem;font-weight:600}
.wa-thumbs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.wa-thumb{position:relative;min-height:44px;padding:0;border:1px solid var(--line);border-radius:6px;background:var(--surface-2,var(--paper));overflow:hidden;display:block;color:var(--ink)}
.wa-thumb img{display:block;width:100%;height:auto}
.wa-thumb span{position:absolute;right:3px;bottom:3px;padding:1px 5px;border-radius:4px;background:var(--paper);font-size:.8125rem;font-weight:600}
.wa-download{min-height:44px;margin-top:10px;padding:8px 14px;border:1px solid var(--line);border-radius:10px;background:transparent;font-size:.875rem;font-weight:600}.wa-download[hidden]{display:none}
.wa-none{color:var(--muted)}
.wa-foot{margin:2px 0 0;font-size:.8125rem;color:var(--muted)}
.wa-practise-h{margin:30px 0 14px;font:500 1.25rem/1.25 Literata,Georgia,serif}
@media(min-width:900px){.wa{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.wa-ask-all,.wa-panel#wa-panel-all,.wa-foot{grid-column:1/-1}.wa-ask-all{width:auto;justify-self:start;min-width:260px}}
/* Weak areas parts 3 and 4 (projects/app/weak-areas): the after-session card and the slide download. Same tokens as the page above. */
.wa-session{--wa-fill:#aa926f;--wa-warn:#a65e3d;--wa-grey:#675f58;background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:16px;display:grid;gap:10px;margin:0 0 18px}
:root[data-room-time=night] .wa-session{--wa-fill:#d6b87e;--wa-warn:#e6a583;--wa-grey:#9aa6b6}
.wa-circles{display:flex;flex-wrap:wrap;gap:6px}
.wa-circles i{width:26px;height:26px;border-radius:50%;display:inline-grid;place-items:center;font:700 .8125rem/1 Inter,sans-serif;font-style:normal;border:1.5px solid var(--wa-grey);color:var(--wa-grey)}
.wa-circles .wa-c-right{background:var(--wa-fill);border-color:var(--wa-fill);color:var(--paper)}
.wa-circles .wa-c-wrong{background:transparent;border-color:var(--wa-warn);color:var(--wa-warn)}
.wa-dl{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:10px}
.wa-dl .wa-download{margin-top:0;display:inline-flex;flex-direction:column;align-items:flex-start;gap:2px;color:var(--ink)}
.wa-download small{font-weight:500;color:var(--muted);font-size:.8125rem}
.wa-pick{display:inline-flex;align-items:center;gap:8px;font-size:.875rem}
.wa-pick select{min-height:44px;min-width:88px}
.wa-session .wa-panel h3{margin:14px 0 4px;font:600 .875rem/1.3 Inter,sans-serif;color:var(--muted)}
/* Weak areas: inside a card the two buttons share a row, so "What should I do?" drops its chevron to stay on one line (as in the mock). */
.wa-card .wa-ask{padding:8px 10px;white-space:nowrap}.wa-card .wa-ask::after{display:none}

/* Book theme pass (projects/app/book-theme-pass): loading, slow and error screens wear the room's paper, ink and brass, day and night, from the first paint (index.html sets data-room-time and links book-theme.css before the page shows). */
html{background:#fbf7ed;color:#263649}html[data-room-time=night]{background:#202c3b;color:#ecdfc2}
.loading{background:#fbf7ed;color:#263649;gap:16px}html[data-room-time=night] .loading{background:#202c3b;color:#ecdfc2}
.loading img{width:48px;height:48px;border-radius:9px}
.loading p,.loading h1{margin:0;font-family:Literata,Georgia,serif;font-weight:500;font-size:1.125rem;line-height:1.4;letter-spacing:0}
.loading h1{font-size:1.375rem}
.loading .retry{min-height:44px;min-width:132px;padding:11px 20px;border:1px solid #263649;border-radius:8px;background:#263649;color:#fffdf8;font:600 .875rem Inter,system-ui,sans-serif;cursor:pointer}
.loading .retry:hover{background:#334a63}.loading .retry:focus-visible{outline:2px solid #ad8751;outline-offset:3px}
html[data-room-time=night] .loading .retry{background:#d6b87e;border-color:#d6b87e;color:#192738}html[data-room-time=night] .loading .retry:hover{background:#e0c78f}html[data-room-time=night] .loading .retry:focus-visible{outline-color:#d6b87e}

/* Settings page (projects/app/settings-page): two tabs, a jump list, rows with a small live preview, a sticky Save. Phone first (one column), then two columns from 601 px.
   Previews reuse the app's own classes (.option, .feedback, .timer, .wa-session) at small scale; nothing in them is focusable. Day and night follow the book's tokens. */
html[data-text-size=larger]{font-size:20px}html[data-text-size=largest]{font-size:22.5px}
.sp{--sp-on:#9a6c27;--sp-knob:#fff5dd;--sp-brass:#ad8751;--sp-soft:#eee4d2;--sp-bad:#9d2b35;--sp-bad-bg:#fff0f0;--sp-good:#17603c;--sp-good-bg:#edf7ef;max-width:920px}
:root[data-room-time=night] .sp{--sp-on:#d6b87e;--sp-knob:#192738;--sp-soft:#2e4052;--sp-bad:#ffb3b8;--sp-bad-bg:#472930;--sp-good:#9cddb4;--sp-good-bg:#1d3a2c}
.sp-scope{font-size:.875rem;margin:0 0 14px;color:var(--ink)}
.sp-tabs{display:flex;gap:4px;border-bottom:1px solid var(--line)}
.sp-tabs button{flex:1 1 0;max-width:220px;min-height:44px;background:none;border:0;border-bottom:3px solid transparent;margin-bottom:-1px;font:500 .9375rem/1 Inter,sans-serif;color:var(--muted);cursor:pointer}
.sp-tabs button[aria-selected=true]{color:var(--ink);border-bottom-color:var(--sp-on);font-weight:650}
.sp-tabs button:focus-visible,.sp-jump button:focus-visible{outline:3px solid var(--focus);outline-offset:-3px}
.sp-jump{position:sticky;top:0;z-index:6;background:var(--paper);padding:8px 0;border-bottom:1px solid var(--line)}
.sp-jump[hidden]{display:none}
.sp-jump ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px 6px}
.sp-jump button{display:inline-flex;align-items:center;min-height:44px;padding:0 12px;border-radius:6px;font-size:.875rem;color:var(--ink);background:none;border:1px solid transparent;cursor:pointer}
.sp-jump button:hover,.sp-jump button[aria-current]{background:var(--sp-soft);border-color:var(--line)}
.sp-panel[hidden]{display:none}
.sp-section{padding:28px 0 8px;scroll-margin-top:64px}
.sp-section+.sp-section{border-top:2px solid var(--line)}
.sp-section h2{font-size:1.375rem;margin:0 0 6px}
.sp-section-line{font-size:.875rem;color:var(--muted);margin:0 0 4px}
.sp-row{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:12px 28px;align-items:start;padding:16px 0;border-top:1px solid var(--line)}
.sp-section-line+.sp-row{border-top:0}
.sp-plain,.sp-danger{grid-template-columns:minmax(0,1fr)}
.sp-main{min-width:0;border:0;padding:0;margin:0}
.sp-label{display:block}
.sp-name{display:block;font-size:.9375rem;font-weight:600;margin:0}
.sp-line{display:block;font-size:.8125rem;color:var(--muted);margin:3px 0 0;line-height:1.45}
.sp-control{margin-top:8px}
.sp-control select{width:100%;max-width:340px;min-height:46px;font-size:.875rem}
.sp-radios legend{font-size:.9375rem;font-weight:600;padding:0;margin-bottom:2px}
.sp-radios .radio-row{min-height:44px}
.sp-note{font-size:.8125rem;color:var(--muted);margin:8px 0 0}
.sp-switch-row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px;padding:0;cursor:pointer}
.sp-text{display:flex;flex-direction:column;min-width:0}
.sp input[role=switch]{appearance:none;-webkit-appearance:none;position:relative;width:40px;height:24px;margin:10px 0;border:1px solid var(--line);border-radius:13px;background:var(--sp-soft);cursor:pointer;flex:none}
.sp input[role=switch]::before{content:"";position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:50%;background:var(--muted);transition:transform .15s}
.sp input[role=switch]:checked{background:var(--sp-on);border-color:var(--sp-on)}
.sp input[role=switch]:checked::before{background:var(--sp-knob);transform:translateX(16px)}
.sp input[role=switch]:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.sp-range{display:flex;align-items:center;gap:12px;max-width:340px}
.sp-range input{flex:1;height:44px;margin:0;accent-color:var(--sp-on)}
.sp-range output{font-size:.8125rem;min-width:40px;text-align:right;font-variant-numeric:tabular-nums}
.sp-plain .sp-actions,.sp-danger .sp-actions{margin-top:12px}
.sp-danger{margin-top:26px;border-top:2px solid var(--sp-bad)}
.danger-btn{min-height:44px;padding:0 18px;border:1px solid var(--sp-bad,#9d2b35);border-radius:8px;background:transparent;color:var(--sp-bad,#9d2b35);font:550 .875rem/1.3 Inter,sans-serif;cursor:pointer}
.danger-btn:hover{background:var(--sp-bad-bg)}
.danger-btn:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.sp-save{position:sticky;bottom:0;z-index:7;display:flex;align-items:center;justify-content:space-between;gap:12px 18px;padding:12px 0 calc(14px + env(safe-area-inset-bottom));margin-top:12px;background:var(--paper);border-top:1px solid var(--line)}
.sp-save p{font-size:.8125rem;color:var(--muted);margin:0}
.sp-save .button{min-height:46px;flex:none}
/* Previews. */
.sp-pv{border:1px solid var(--line);background:var(--sp-soft);border-radius:9px;padding:10px;font-size:.8125rem;line-height:1.4;color:var(--ink);min-width:0;overflow:hidden;user-select:none;max-height:150px}
.sp-pv .cap{font-size:.8125rem;color:var(--muted);margin:6px 0 0;line-height:1.35}
.sp-pv .question-prompt{font-size:.8125rem;font-weight:600;letter-spacing:0;line-height:1.35;margin:0 0 6px}
.sp-pv .options{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.sp-pv .option{min-height:34px;padding:3px 8px;gap:7px;font-size:.8125rem;line-height:1.3;cursor:default;border-radius:7px}
.sp-pv [data-act]{cursor:pointer}
.sp-pv .option-letter{width:20px;height:20px;font-size:.8125rem}
.sp-pv .option span:nth-child(2){flex:1;min-width:0}
.sp-pv .foot{display:flex;align-items:center;gap:10px;margin-top:6px;flex-wrap:wrap}
.sp-pv .foot .cap{margin:0}
.sp-pv .button{min-height:30px;padding:0 12px;font-size:.8125rem;margin:0;cursor:default}
.sp-pv .button[data-act]{cursor:pointer}
.sp-pv .button:last-child{margin-left:0;min-width:0}
.sp-pv .session-top{gap:8px;font-size:.8125rem}
.sp-pv .session-top .timer{margin-left:auto;padding:1px 7px}
.sp-pv .badge{padding:2px 8px;font-size:.8125rem}
.sp-pv .session-progress{margin:8px 0 0;height:4px;background:var(--line)}
.sp-pv .session-progress.anim span{width:0;animation:sp-fill 2.4s linear infinite}
@keyframes sp-fill{to{width:100%}}
.sp-pv .feedback{margin:0;padding:9px 10px;font-size:.8125rem;border-color:var(--sp-good);background:var(--sp-good-bg)}
.sp-pv .feedback-head{margin-bottom:5px}.sp-pv .feedback-head>strong{font-size:.8125rem;color:var(--sp-good)}
.sp-pv .explanation{margin:0;font-size:.8125rem;line-height:1.5}
.sp-pv .explanation[lang=ar]{font-family:"Noto Sans Arabic",sans-serif;font-size:.875rem;line-height:1.8}
.sp-pv .confirm-dialog{width:auto;padding:9px 10px;border-radius:9px;background:var(--paper)}
.sp-pv .confirm-dialog p{margin:4px 0 8px;font-size:.8125rem}
.sp-pv .confirm-dialog .button-row{gap:8px}
.sp-pv .wa-session{padding:9px 10px;margin:0;gap:6px;border-radius:9px}
.sp-pv .wa-circles i{width:22px;height:22px}
.sp-pv .wa-line{font-size:.8125rem}
.sp-count{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.sp-count .field{min-width:38px;padding:3px 8px;border:1px solid var(--line);border-radius:6px;background:var(--paper);font-weight:600;text-align:center}
.sp-count .chip{padding:3px 7px;border:1px solid var(--line);border-radius:6px}
.sp-count .chip.on{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.sp-sample{line-height:1.4}.sp-sample .question-prompt{font-size:1em}.sp-sample .option{font-size:.9em;min-height:0}
.sp-sample .options{grid-template-columns:1fr}
.sp-book{display:grid;grid-template-columns:34% 1fr;height:62px;border-radius:4px;overflow:hidden;border:1px solid var(--bline);--bp:#fffdf8;--bl:#ece3cf;--bi:#2b2a31;--bline:#d8cfbd}
.sp-book.night{--bp:#263649;--bl:#233345;--bi:#ecdfc2;--bline:#526070}
.sp-book .l{background:var(--bl);padding:8px 7px;display:flex;flex-direction:column;gap:6px}
.sp-book .r{background:var(--bp);padding:8px 9px;display:flex;flex-direction:column;gap:5px}
.sp-book i{display:block;height:3px;background:var(--bi);opacity:.4;border-radius:2px}.sp-book i.short{width:60%}
.sp-book .r b{display:block;height:6px;width:45%;background:var(--bi);border-radius:2px;margin-bottom:2px}
.sp-scr{display:flex;gap:6px;height:62px}
.sp-scr .qp{flex:1;border:1px solid var(--line);background:var(--paper);border-radius:6px;padding:8px;display:flex;flex-direction:column;gap:6px}
.sp-scr .qp i{display:block;height:3px;background:var(--ink);opacity:.3;border-radius:2px}.sp-scr .qp i.short{width:55%}
.sp-scr .spage{flex:1;border:1px solid var(--line);background:var(--paper);border-radius:6px;display:grid;place-items:center;position:relative;max-width:none}
.sp-scr .spage.big{flex:1 1 100%}
.sp-scr .pg{width:34px;height:46px;background:var(--sp-soft);border:1px solid var(--line);border-radius:2px;box-shadow:0 1px 3px #0003}
.sp-scr .spage em{position:absolute;left:8px;top:4px;font-style:normal}
.sp-roomv{display:flex;align-items:center;gap:10px}
.sp-roomv .snd{display:flex;align-items:center;gap:6px;min-width:0;flex:1}.sp-roomv .snd.off{color:var(--muted)}.sp-roomv .snd svg{flex:none}
.sp-win{position:relative;flex:none;width:84px;height:66px;border-radius:5px;overflow:hidden;border:3px solid var(--sp-brass);background:linear-gradient(#b9d3df,#e9e0c8)}
.sp-win.night{background:linear-gradient(#16243a,#2e4052)}
.sp-win .orb{position:absolute;right:8px;top:7px;width:14px;height:14px;border-radius:50%;background:#f3c969;z-index:1}
.sp-win.night .orb{background:#e8e4d2;box-shadow:inset -4px -2px 0 #b8b49f}
.sp-win .w{position:absolute;inset:0;z-index:2}
.sp-win .w-rain{background:repeating-linear-gradient(105deg,transparent 0 7px,#fffb 7px 8px);background-size:24px 24px;animation:sp-rain .6s linear infinite}
@keyframes sp-rain{to{background-position:-8px 24px}}
.sp-win .w-breeze{background:radial-gradient(ellipse 18px 8px at 20% 40%,#fffc 70%,transparent 72%),radial-gradient(ellipse 22px 9px at 70% 62%,#fff9 70%,transparent 72%);animation:sp-drift 4s ease-in-out infinite alternate}
@keyframes sp-drift{to{transform:translateX(12px)}}
.sp-win .w-wind{background:repeating-linear-gradient(0deg,transparent 0 12px,#fffa 12px 13px);background-size:60px 100%;animation:sp-gust 1s linear infinite}
@keyframes sp-gust{to{background-position:-60px 0}}
.sp-win .w-insects{background:radial-gradient(circle 1.5px at 25% 40%,#222 90%,transparent),radial-gradient(circle 1.5px at 60% 65%,#222 90%,transparent),radial-gradient(circle 1.5px at 75% 30%,#222 90%,transparent)}
.sp-win.night .w-insects{background:radial-gradient(circle 1.5px at 25% 40%,#f3c969 90%,transparent),radial-gradient(circle 1.5px at 60% 65%,#f3c969 90%,transparent),radial-gradient(circle 1.5px at 75% 30%,#f3c969 90%,transparent)}
.sp-win .frame{position:absolute;inset:0;z-index:3}
.sp-win .frame::before,.sp-win .frame::after{content:"";position:absolute;background:var(--sp-brass)}
.sp-win .frame::before{left:50%;top:0;bottom:0;width:2px;margin-left:-1px}.sp-win .frame::after{top:50%;left:0;right:0;height:2px;margin-top:-1px}
.sp-vol{display:flex;align-items:center;gap:10px}.sp-vol.off{opacity:.75}
.sp-vol .track{flex:1;height:6px;border-radius:3px;background:var(--line);overflow:hidden}.sp-vol .track i{display:block;height:100%;background:var(--sp-on)}
.sp-vol b{min-width:40px;text-align:right;font-variant-numeric:tabular-nums}
.sp-turn{position:relative;height:62px;width:110px;perspective:300px}
.sp-turn>div{position:absolute;top:0;left:55px;width:55px;height:62px;border:1px solid var(--line);background:var(--paper);padding:9px 8px;display:flex;flex-direction:column;gap:6px;transform-origin:left center;border-radius:0 4px 4px 0}
.sp-turn i{display:block;height:3px;background:var(--ink);opacity:.35;border-radius:2px}.sp-turn i.short{width:55%}
.sp-turn .pg2{background:var(--sp-soft)}
.sp-turn.go .pg1{backface-visibility:hidden}
html .sp-turn.go .pg1{animation:sp-turn 2.6s ease-in-out infinite!important}
@keyframes sp-turn{0%,15%{transform:rotateY(0)}60%,100%{transform:rotateY(-179deg)}}
.sp-turn.still .pg1{animation:none}
@media(max-width:600px){
  .sp-row{grid-template-columns:minmax(0,1fr);gap:12px}
  .sp-control select,.sp-range{max-width:none}
  .sp-jump{margin:0 -12px;padding:6px 12px}
  .sp-jump ul{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.sp-jump button{white-space:nowrap}
  .sp-section{padding-top:22px}
  .sp-tabs button{max-width:none}
  .sp-save{margin:12px -12px 0;padding-left:12px;padding-right:12px}
}
@media(min-width:601px) and (max-width:1100px){.sp-row{grid-template-columns:minmax(0,1fr) 220px;gap:12px 20px}}
.sp-pv .wa-circles .wa-c-right{background:#7a5f35;border-color:#7a5f35;color:#fff}:root[data-room-time=night] .sp-pv .wa-circles .wa-c-right{background:var(--wa-fill);border-color:var(--wa-fill);color:var(--paper)}

/* Colour pass, Settings info (projects/app/colour-pass, owner 2026-11-30): a small "i" after each setting's name (44 px target), opening one or two
   plain sentences below it; and the Memorize map preview. Token colours, day and night. */
.sp-info{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;margin:-12px -8px -12px 2px;padding:0;vertical-align:middle;background:none;border:0;color:var(--muted);cursor:pointer;font:inherit}
.sp-info>span{display:grid;place-items:center;width:19px;height:19px;border:1.5px solid currentColor;border-radius:50%;font:italic 600 12px/1 Georgia,serif}
.sp-info:hover,.sp-info[aria-expanded=true]{color:var(--ink)}
.sp-info:focus-visible{outline:2px solid var(--focus);outline-offset:-6px;border-radius:50%}
.sp-info-text{margin:10px 0 2px;padding:10px 12px;background:var(--soft-lime);border-left:3px solid var(--warm);border-radius:6px;font-size:.875rem;line-height:1.55;color:var(--ink)}
.sp-info-text[dir=rtl]{border-left:0;border-right:3px solid var(--warm);font-family:var(--font-ar,inherit)}
.sp-pv .sp-map{display:flex;align-items:center;gap:6px;margin:6px 0 4px}
.sp-pv .sp-map .node{padding:3px 8px;border:1px solid var(--line);border-radius:5px;background:var(--paper);font-weight:600}
.sp-pv .sp-map .arrow{flex:1;position:relative;height:2px;background:var(--muted);min-width:40px}
.sp-pv .sp-map .arrow:after{content:'';position:absolute;right:-1px;top:-4px;border:5px solid transparent;border-left:7px solid var(--muted);border-right:0}
.sp-pv .sp-map .arrow em{position:absolute;left:50%;bottom:5px;transform:translateX(-50%);padding:0 3px;font-style:italic;white-space:nowrap;color:var(--ink);background:var(--sp-soft,var(--paper));font-size:.75rem}
.session-progress{background:var(--line)}

/* 2.2.2-fs (owner, 2026-12-02, iPad: "I have to scroll to see a whole question", "scrolling up leaves full-screen"): full-screen study is one screen.
   The page never scrolls (so the iPad's own bars are not pulled back by a page scroll); the column is the top line, the question and the dock;
   only the question's own area scrolls, inside, when an unusually long question or its explanation is taller than the screen. Sizes follow the
   screen's height as well as its width, so a question fits on an iPad and a phone, either way round. Permanent. */
html.study-focus,html.study-focus body{height:100%;overflow:hidden;overscroll-behavior:none}
html.study-focus .workspace.is-session #main{box-sizing:border-box;height:100dvh;min-height:0!important;max-width:none;display:flex;flex-direction:column;overflow:hidden;padding:clamp(10px,2.2vh,32px) clamp(14px,4vw,48px) 0!important} /* !important: the book theme (book-theme.css) pads #main with !important */
html.study-focus .session-top,html.study-focus .session-progress,html.study-focus .question-list{flex:none}
html.study-focus .session-top{margin-bottom:clamp(6px,1.2vh,16px)}
html.study-focus .question{flex:1 1 auto;min-height:0;width:100%;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;margin-top:clamp(8px,1.6vh,24px);padding-bottom:clamp(8px,1.5vh,20px)}
html.study-focus .session-save-status{display:none}
html.study-focus .question-list{display:none} /* the map of question numbers is left out of full-screen; Previous and Next stay in the dock */
html.study-focus .session-dock{position:relative;left:auto;right:auto;bottom:auto;flex:none;margin:0 calc(-1 * clamp(14px,4vw,48px))}
html.study-focus .question-tools{margin-bottom:clamp(8px,1.4vh,24px)}
html.study-focus .question-prompt{font-size:clamp(1.05rem,min(2.15vw,2.5vh),2.6rem);line-height:1.38;margin-bottom:clamp(10px,1.8vh,34px)}
html.study-focus .options{gap:clamp(6px,0.9vh,14px)}
html.study-focus .option{font-size:clamp(.95rem,min(1.3vw,1.75vh),1.5rem);min-height:clamp(44px,6vh,94px);padding:clamp(8px,1.1vh,22px) clamp(12px,2vw,26px);gap:clamp(10px,1.4vw,20px)}
html.study-focus .option-letter{width:clamp(28px,3.4vh,39px);height:clamp(28px,3.4vh,39px)}
html.study-focus .feedback,html.study-focus .explanation{font-size:clamp(.95rem,min(1.2vw,1.7vh),1.125rem)}
/* A short screen (a phone on its side): the top line, the tools and the dock tighten so the question keeps the room. */
@media(max-height:560px){html.study-focus .session-top{margin-bottom:4px}html.study-focus .question{margin-top:4px}html.study-focus .question-tools{margin-bottom:4px}html.study-focus .question-prompt{font-size:1rem;line-height:1.3;margin-bottom:8px}html.study-focus .options{gap:4px}html.study-focus .option{min-height:44px;padding:6px 12px;font-size:.95rem}html.study-focus .session-dock{padding-top:6px;padding-bottom:calc(6px + env(safe-area-inset-bottom))}}
/* A phone on its side (short and wide): the question on the left, its options on the right, so all five fit; the answer and the explanation
   come beneath, across both columns (only the question area scrolls if they are long). */
@media(max-height:560px) and (min-aspect-ratio:3/2){html.study-focus .question{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);column-gap:clamp(12px,2.5vw,28px);align-content:start}html.study-focus .question>*{grid-column:1/-1}html.study-focus .question>.question-tools{grid-column:1;grid-row:1}html.study-focus .question>.question-prompt{grid-column:1;grid-row:2;align-self:start}html.study-focus .question>.options{grid-column:2;grid-row:1/span 2;align-self:start}}
/* Under 700 px tall (an iPhone SE upright, any phone on its side): the dock is its one row of buttons, the top line one tight row,
   and the question's text a little smaller, so a whole question still fits. */
@media(max-height:700px){html.study-focus .shortcut-hint{display:none}html.study-focus .session-dock{padding:6px 12px calc(6px + env(safe-area-inset-bottom))}html.study-focus .workspace.is-session #main{padding-top:6px!important}html.study-focus .session-top{gap:6px 10px;margin-bottom:2px;font-size:.8125rem}html.study-focus .session-top button{min-height:40px}html.study-focus .question{margin-top:2px}html.study-focus .question-tools{margin-bottom:4px}html.study-focus .question-prompt{font-size:1rem;line-height:1.3;margin-bottom:8px}html.study-focus .options{gap:4px}html.study-focus .option{min-height:44px;padding:6px 12px;font-size:.9375rem;line-height:1.3}html.study-focus .option-letter{width:26px;height:26px}}
/* Under 460 px tall (a phone on its side): the options take the wider column, sit closer, and the question has no bottom margin. Taps stay 44 px. */
@media(max-height:460px) and (min-aspect-ratio:3/2){html.study-focus .question{grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);padding-bottom:0}html.study-focus .question-prompt{font-size:.9375rem;line-height:1.28}html.study-focus .question-tools{margin-bottom:2px}html.study-focus .options{gap:2px}html.study-focus .option{padding:4px 10px;line-height:1.25}html.study-focus .session-progress{display:none}html.study-focus .session-dock{padding:4px 12px calc(4px + env(safe-area-inset-bottom))}}
/* A small phone upright (under 700 px tall, narrow): options sit a little closer. */
@media(max-height:700px) and (max-aspect-ratio:3/4){html.study-focus .options{gap:3px}html.study-focus .option{padding:4px 10px;line-height:1.25}html.study-focus .question-prompt{margin-bottom:6px}html.study-focus .session-progress{margin-top:2px}}
/* Under 700 px tall or 600 px wide: the question's tool row (number, save, notes...) stays one line and slides sideways if it must, instead of wrapping
   into a tall block (signed in, it holds more buttons). */
@media(max-height:700px),(max-width:600px){html.study-focus .question-tools{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none;align-items:center}html.study-focus .question-tools::-webkit-scrollbar{display:none}html.study-focus .question-tools>*{flex:none}}
/* F1 (REVIEW-FULLSCREEN.md, 2026-12-03: on a phone, in the room and signed in, long questions did not fit): on a phone, either way round,
   full-screen keeps the question's room. The top line is one row (the mode badge left out, the full-screen button an icon whose name stays for
   screen readers); the chapter name and question number are left out, and Save is an icon at the question's top right that the text flows
   around; options and the question are set a little tighter. Every tap stays 44 px. */
@media(max-width:600px),(max-height:500px){
 html.study-focus .session-top{flex-wrap:nowrap;gap:6px;align-items:center;margin-bottom:4px;font-size:.8125rem}
 html.study-focus .session-top>div{display:flex;flex-wrap:nowrap;align-items:center;gap:6px;min-width:0}
 html.study-focus .session-top .badge{display:none}
 html.study-focus .session-top button{min-height:44px;padding:0 6px;white-space:nowrap}
 html.study-focus .session-top .fullscreen-study{min-width:44px;justify-content:center}
 html.study-focus .session-top .fullscreen-study span,html.study-focus .question-tools .save-question span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
 html.study-focus .question-tools{float:right;display:block;margin:0 0 2px 8px!important;overflow:visible}
 html.study-focus .question-tools .question-meta-group{display:none}
 html.study-focus .question-tools .save-question{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center}
 html.study-focus .question-prompt{font-size:1rem!important;line-height:1.32!important;margin-bottom:8px!important}
 html.study-focus .options{gap:4px!important;clear:both}
 html.study-focus .option{font-size:.9375rem!important;line-height:1.28!important;padding:6px 10px!important;gap:8px!important;min-height:44px}
 html.study-focus .option-letter{width:26px!important;height:26px!important;font-size:.875rem!important} /* N1 (REVIEW-FULLSCREEN.md): letters at 14 px */
}
/* F1, a phone on its side (short and wide): the top line and the dock share one row at the bottom, so the question gets the height; the
   options take two thirds of the width, so fewer of them wrap. */
@media(max-height:500px) and (min-aspect-ratio:3/2){
 html.study-focus .workspace.is-session #main{display:grid!important;grid-template-columns:auto minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;grid-template-areas:"q q" "top dock";column-gap:8px;padding-top:4px!important}
 html.study-focus .question{grid-area:q;margin:0!important;grid-template-columns:minmax(0,1fr) minmax(0,2fr)!important}
 html.study-focus .session-top{grid-area:top;margin:0!important;align-self:center;border-top:1px solid var(--line)}
 html.study-focus .session-dock{grid-area:dock;margin:0!important;padding:2px 0 calc(2px + env(safe-area-inset-bottom))!important;border-top:1px solid var(--line)}
 html.study-focus .session-dock .dock-buttons{gap:6px;max-width:none}
 html.study-focus .session-progress,html.study-focus .session-save-status,html.study-focus .question-list{display:none!important}
 html.study-focus .session-top .timer{display:none}
}
/* F1: the two tighter steps a full-screen question takes only when it does not fit (app.js fitFocusQuestion). Never under 14 px; taps 44 px. */
html.study-focus.fit-1 .option{font-size:.875rem!important;line-height:1.22!important;padding:4px 8px!important}html.study-focus.fit-1 .options{gap:3px!important}html.study-focus.fit-1 .question-prompt{margin-bottom:6px!important}
html.study-focus.fit-2 .question-prompt{font-size:.875rem!important;line-height:1.25!important}html.study-focus.fit-2 .option{line-height:1.16!important;padding:3px 8px!important}html.study-focus.fit-2 .options{gap:2px!important}html.study-focus.fit-2 .option-letter{width:24px!important;height:24px!important;font-size:.875rem!important}
