@font-face{font-family:Readex;src:url("./readex-pro-400-PHU2AFUD.ttf") format("truetype");font-weight:400;font-display:swap}@font-face{font-family:Readex;src:url("./readex-pro-600-QPYQHQ4Y.ttf") format("truetype");font-weight:600 800;font-display:swap}:root{color-scheme:light;--bg: #f7f6f0;--surface: #fffefa;--exam-paper: #fffdf8;--exam-wash: #f2eee5;--exam-line: #dfd6c9;--exam-brown: #795c46;--exam-ink: #493d33;--exam-muted: #746556;--exam-canvas: #f5f2eb;--exam-backdrop: #2d251f66;--soft: #f0f4ed;--ink: #284638;--muted: #7b877e;--line: #dce3da;--accent: #6b9f7b;--danger: #ae5e5b;--shadow: 0 2px 10px #30453605;--dialog-backdrop: #1e2b2366;--download-backdrop: #1e2b2355;--dialog-shadow: 0 14px 60px #20302624;--selection: #adc7ac65;--radius: 11px;--control-radius: 7px;--font: Readex,Arial,sans-serif;--font-size: 13px;--space: 8px;--content-width: 450px;--motion-fast: .15s;--motion-theme: .36s;--motion-page: .28s;--motion-ease: cubic-bezier(.22,1,.36,1);--app-safe-top: var(--safe-area-inset-top,env(safe-area-inset-top,0px));--app-safe-right: var(--safe-area-inset-right,env(safe-area-inset-right,0px));--app-safe-bottom: var(--safe-area-inset-bottom,env(safe-area-inset-bottom,0px));--app-safe-left: var(--safe-area-inset-left,env(safe-area-inset-left,0px));--app-safe-inline: max(var(--app-safe-right),var(--app-safe-left))}:root[data-theme=dark]{color-scheme:dark;--bg: #393837;--surface: #454341;--exam-paper: #45423e;--exam-wash: #3c3936;--exam-line: #68615a;--exam-brown: #cfb79b;--exam-ink: #eee5d9;--exam-muted: #c0b4a5;--exam-canvas: #393633;--exam-backdrop: #16131099;--soft: #514e4b;--ink: #f2eee8;--muted: #c4bfb8;--line: #67625d;--accent: #c8baaa;--danger: #edb2a8;--shadow: 0 2px 10px #00000008;--dialog-backdrop: #17161580;--download-backdrop: #17161570;--dialog-shadow: 0 14px 60px #00000035;--selection: #c8baaa55}*{box-sizing:border-box}html{min-height:100%;scroll-behavior:smooth;scroll-padding-block:calc(var(--app-safe-top) + 20px) calc(var(--app-safe-bottom) + 84px)}*{scrollbar-width:none}::-webkit-scrollbar{display:none}body{margin:0;min-height:100vh;background:var(--bg);color:var(--ink);font:400 var(--font-size)/1.7 var(--font);-webkit-font-smoothing:antialiased}h1,h2,h3,p{margin:0}h1,h2,h3{font-weight:600}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.48}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}textarea:focus-visible{outline:1px solid var(--accent);outline-offset:1px}::selection{background:var(--selection)}img{max-width:100%}fieldset{margin:0;padding:0;border:0}legend{padding:0}summary{cursor:pointer}svg{flex-shrink:0}.icon{width:18px;height:18px;display:block}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.muted{color:var(--muted);font-size:11px}.centered{text-align:center}.full-width{width:100%}.text-button{border:0;background:transparent;color:var(--muted);padding:5px 7px;font-size:11px}.text-button:hover{color:var(--ink)}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation:none!important;transition:none!important}}.app-frame{position:relative;isolation:isolate}.app-shell{display:flex;flex-direction:column;justify-content:center;min-height:calc(100dvh - 56px - var(--app-safe-top));width:min(calc(100% - 56px - 2 * var(--app-safe-inline)),var(--content-width));margin:calc(36px + var(--app-safe-top)) auto 0;padding-bottom:calc(110px + var(--app-safe-bottom))}.app-shell.home-screen{min-height:100dvh;margin:0 auto;padding-block:calc(20px + var(--app-safe-top)) calc(20px + var(--app-safe-bottom))}.startup{padding-top:90px;text-align:center}.startup h1{font-size:28px}.page-heading{text-align:center;margin:14px 0 23px}.page-heading h1{font-size:23px;line-height:1.7;outline:none}.page-heading>p{font-size:11px;color:var(--muted);margin-top:3px}.page-heading .eyebrow{margin:0 0 5px;font-size:10px}.heading-rule{display:block;width:24px;height:2px;margin:11px auto 0;background:var(--accent);border-radius:2px}.bottom-dock{position:fixed;bottom:calc(18px + var(--app-safe-bottom));left:50%;transform:translate(-50%);display:flex;gap:7px;padding:5px;border:1px solid var(--line);border-radius:13px;background:var(--surface);box-shadow:0 4px 20px #20332610;z-index:20;max-width:calc(100% - 64px - 2 * var(--app-safe-inline))}.bottom-dock .button{min-width:94px;min-height:39px;font-size:11px;border:none;display:flex;align-items:center;justify-content:center;gap:7px}.bottom-dock .icon{width:15px;height:15px}.toast{position:fixed;top:calc(20px + var(--app-safe-top));left:50%;transform:translate(-50%);z-index:100;width:max-content;max-width:calc(100% - 64px - 2 * var(--app-safe-inline));padding:12px 17px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:12px;font-size:11px;box-shadow:0 3px 15px #0001;text-align:center;display:flex;align-items:center;gap:9px;pointer-events:none;animation:toast-enter .24s var(--motion-ease) both}.toast-dot{width:5px;height:5px;background:var(--accent);border-radius:50%;flex:0 0 auto}.toast--leaving{animation:toast-exit .22s var(--motion-ease) both}@keyframes toast-enter{0%{opacity:0;translate:0 -10px}to{opacity:1;translate:0 0}}@keyframes toast-exit{0%{opacity:1;translate:0 0}to{opacity:0;translate:0 -8px}}.offline-status{font-size:10px;color:var(--muted);text-align:center;margin-bottom:12px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:16px;margin-bottom:14px}.panel>h2{font-size:14px;margin-bottom:15px}.empty-state{text-align:center;padding:30px 14px;margin:14px 0;color:var(--muted)}.empty-state-icon{display:grid;place-items:center;width:41px;height:41px;margin:0 auto 12px;background:var(--soft);border:1px solid var(--line);border-radius:12px}.empty-state h2{font-size:14px;color:var(--ink);font-weight:400}.empty-state p{font-size:11px;max-width:290px;margin:7px auto 0}.empty-state-action{margin-top:15px}.loading-state{display:flex;align-items:center;justify-content:center;gap:9px;padding:45px 15px;font-size:12px;color:var(--muted)}.loading-state>span{width:14px;height:14px;border-radius:50%;border:2px solid var(--line);border-top-color:var(--accent);animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.error-state{padding:13px;text-align:center;background:var(--surface);border:1px solid var(--line);border-radius:9px;margin:12px 0;color:var(--danger);font-size:11px}.error-state .button{margin-top:10px}.choice-stack{display:grid;gap:9px}.form-grid{display:grid;gap:12px}.two-columns{grid-template-columns:1fr 1fr}.segmented{display:flex;gap:6px;margin-bottom:16px}.segmented .button{flex:1}.badge{font-size:9px;color:var(--accent);background:var(--soft);padding:2px 7px;border-radius:5px}.field-error,.image-error{color:var(--danger);font-size:11px;margin:9px 0}.recovery-note{padding:9px;background:var(--soft);color:var(--muted);font-size:10px;border-radius:6px;margin:10px 0}.table-scroll{overflow:auto;max-width:100%;margin:12px 0}table{border-collapse:collapse;width:100%;min-width:240px;font-size:12px}td,th{border:1px solid var(--line);padding:9px 10px;vertical-align:top;white-space:pre-wrap;overflow-wrap:anywhere}th{background:var(--soft);font-weight:600}details.panel summary{font-size:12px}details.panel[open] summary{margin-bottom:14px}@media(max-width:480px){html,body{overscroll-behavior-y:none}body{min-height:100dvh}#root{display:flow-root}.app-shell{margin-top:calc(28px + var(--app-safe-top));min-height:calc(100dvh - 28px - var(--app-safe-top));padding-bottom:calc(92px + var(--app-safe-bottom));width:calc(100% - 52px - 2 * var(--app-safe-inline))}.page-heading{margin-top:8px;margin-bottom:20px}.page-heading h1{font-size:21px}.panel{padding:13px}.bottom-dock{bottom:calc(16px + var(--app-safe-bottom))}}@media(max-width:350px){.app-shell{display:flex;flex-direction:column;justify-content:center;min-height:calc(100dvh - 28px - var(--app-safe-top));width:calc(100% - 44px - 2 * var(--app-safe-inline))}.page-heading h1{font-size:19px}.panel{padding:11px}}.button{min-height:37px;padding:7px 12px;border:1px solid var(--line);border-radius:var(--control-radius);background:var(--surface);color:var(--ink);font-size:11px;line-height:1.6}.button:hover:not(:disabled){background:var(--soft)}.button--primary{background:var(--accent);border-color:var(--accent);color:var(--bg)}.button--primary:hover:not(:disabled){filter:brightness(.97);background:var(--accent)}.button--quiet{background:transparent;border-color:transparent;color:var(--muted)}.button--danger{color:var(--danger)}.button[aria-pressed=true]{background:var(--soft);border-color:var(--accent);color:var(--ink)}.icon-button{width:35px;height:35px;flex-shrink:0;border:1px solid var(--line);border-radius:8px;display:grid;place-items:center;background:var(--surface);color:var(--muted);padding:0}.icon-button .icon{width:17px;height:17px}.icon-button:hover:not(:disabled){background:var(--soft)}.field{display:flex;flex-direction:column;gap:5px;min-width:0}.field>span{font-size:11px;color:var(--muted)}input:not([type=checkbox],[type=radio],[type=range]),select,textarea{width:100%;min-width:0;padding:9px 10px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--ink);font-size:12px;line-height:1.7}textarea{resize:vertical;min-height:76px}input[type=checkbox],input[type=radio]{accent-color:var(--accent);width:16px;height:16px;flex-shrink:0}input[type=range]{accent-color:var(--accent);max-width:100%}.check-field{display:flex;align-items:center;gap:8px;font-size:12px;padding:5px 0}.dialog{width:min(calc(100% - 56px - 2 * var(--app-safe-inline)),350px);max-height:calc(100dvh - 48px - var(--app-safe-top) - var(--app-safe-bottom));margin-block:auto;top:var(--app-safe-top);bottom:var(--app-safe-bottom);padding:0;border:1px solid var(--line);border-radius:14px;background:var(--bg);color:var(--ink);box-shadow:var(--dialog-shadow)}.dialog::backdrop{background:var(--dialog-backdrop)}.download-dialog{width:min(calc(100% - 40px - 2 * var(--app-safe-inline)),350px)}.download-dialog::backdrop{background:var(--download-backdrop);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}.download-dialog .dialog-content{padding:18px}.download-dialog .dialog-heading{margin-bottom:7px}.download-dialog .dialog-heading h2{font-size:14px}.download-description{font-size:10px;line-height:1.8;color:var(--muted);margin-bottom:14px}.download-dialog--questions .dialog-content{position:relative;padding:16px 10px 12px}.download-dialog--questions .dialog-heading{justify-content:center;margin-bottom:3px}.download-dialog--questions .dialog-heading h2{font-size:15px}.download-dialog--questions .dialog-heading .icon-button{position:absolute;top:5px;left:5px;border:1px solid var(--line);border-radius:8px}.download-dialog--questions .download-description{text-align:center;margin-bottom:16px;font-size:10px}.download-emblem{display:grid;place-items:center;width:43px;height:43px;margin:0 auto 10px;color:#d88c32;border:1px solid #e6aa654d;border-radius:12px;background:#e6aa650e}.download-emblem .icon{width:21px;height:21px}.download-modes{display:grid;gap:9px}.download-mode-card{display:flex;align-items:center;gap:10px;width:100%;min-height:60px;padding:9px 11px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);text-align:right}.download-mode-card>span:first-child{display:grid;flex:1;gap:4px;min-width:0}.download-mode-card strong{font-size:12px;font-weight:400}.download-mode-card small{color:var(--muted);font-size:10px;line-height:1.7}.download-mode-card:hover:not(:disabled){background:var(--soft);border-color:var(--accent)}.download-mode-icon{display:grid;place-items:center;width:35px;height:35px;flex:0 0 35px;border:1px solid;border-radius:10px}.download-mode-icon .icon{width:17px;height:17px}.download-mode-card--sequence .download-mode-icon{color:#d88c32;background:#e6aa650e;border-color:#e6aa654d}.download-mode-card--filter .download-mode-icon{color:#259e99;background:#5cc4bc0b;border-color:#5cc4bc4d}.download-filter-back{display:block;margin:0 auto 8px;font-size:10px}.download-filter-instruction,.download-filter-count{color:var(--muted);text-align:center;font-size:10px;margin-bottom:11px;line-height:1.8}.download-filter-count{margin:13px 0}.download-filter .selection-chip{padding:5px 9px;font-size:10px}.download-dialog--questions .download-empty{margin:12px 3px 0}.download-empty,.download-error{margin-bottom:12px;font-size:11px;line-height:1.8;color:var(--muted)}.download-error{color:var(--danger)}.download-summary-label{margin:0 0 13px;text-align:center;font-size:12px}.download-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0;padding:13px 3px;border-block:1px solid var(--line)}.download-facts>div{text-align:center}.download-facts>div+div{border-inline-start:1px solid var(--line)}.download-facts dt{color:var(--muted);font-size:10px;margin-bottom:8px}.download-facts dd{margin:0;color:var(--ink);font-size:19px;line-height:1.2}.download-paper-note{margin:11px 0 15px;text-align:center;font-size:10px;color:var(--muted);line-height:1.8}.download-progress{margin:15px 2px}.download-progress-heading{display:flex;justify-content:space-between;gap:8px;font-size:10px;color:var(--ink);margin-bottom:8px}.download-progress progress{appearance:none;display:block;width:100%;height:5px;border:0;border-radius:9px;overflow:hidden;background:var(--soft);accent-color:var(--accent)}.download-progress progress::-webkit-progress-bar{background:var(--soft);border-radius:9px}.download-progress progress::-webkit-progress-value{background:var(--accent);border-radius:9px;transition:width .18s ease}.download-progress progress::-moz-progress-bar{background:var(--accent);border-radius:9px}.download-current-topic{color:var(--muted);font-size:10px;line-height:1.8;margin:8px 0 0;overflow-wrap:anywhere}.download-page-progress{margin:5px 0 0;font-size:10px;line-height:1.8;color:var(--muted)}.download-success{padding:12px 5px 3px;text-align:center}.download-success-mark{display:grid;place-items:center;width:42px;height:42px;margin:0 auto 13px;border:1px solid var(--line);border-radius:50%;color:var(--accent);background:var(--soft)}.download-success-mark .icon{width:21px;height:21px}.download-success-filename{margin:0 0 7px;font-size:12px;line-height:1.8;overflow-wrap:anywhere}.download-success-hint{color:var(--muted);font-size:10px;line-height:1.8;margin:0 0 18px}.download-success-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.download-success-actions--single{grid-template-columns:1fr;margin-top:16px}.download-success-actions .button{display:flex;justify-content:center;align-items:center;gap:6px}.download-success-actions .icon{width:15px;height:15px}.download-success-fallback{margin-top:13px;font-size:10px;line-height:1.9;color:var(--muted)}.download-success-fallback p{margin:0 0 6px}.download-success-fallback a{color:var(--ink);text-underline-offset:3px}@media(prefers-reduced-motion:reduce){.download-progress progress::-webkit-progress-value{transition:none}}.dialog-content{padding:20px}.dialog-heading{display:flex;align-items:center;gap:12px;justify-content:space-between;margin-bottom:17px}.dialog-heading h2{font-size:16px;font-weight:400}.dialog-heading .icon-button{width:29px;height:29px;border:0;background:transparent}.dialog-heading .icon{width:16px;height:16px}.dialog-description{font-size:12px;color:var(--muted);margin-bottom:16px}.dialog-actions{display:flex;gap:9px;margin-top:17px}.dialog-actions .button{flex:1}.accounts-dialog{--account-ink: var(--ink);--account-muted: var(--muted);--account-line: #e4e3dc;--account-surface: var(--surface);--account-icon: #f0efe8;width:min(calc(100% - 48px - 2 * var(--app-safe-inline)),380px);background:var(--bg)}:root[data-theme=dark] .accounts-dialog{--account-line: var(--line);--account-icon: var(--soft)}.accounts-dialog .dialog-content{padding:16px}.accounts-dialog .dialog-heading{margin-bottom:1px;color:var(--account-ink)}.accounts-dialog .dialog-description{margin-bottom:17px;color:var(--account-muted)}.accounts-list{display:grid;gap:8px}.account-card{display:flex;align-items:center;gap:10px;min-height:62px;padding:10px;text-align:right;text-decoration:none;border:1px solid var(--account-line);border-radius:11px;color:var(--account-ink);background:var(--account-surface);transition:border-color .15s,background .15s}.account-card:hover{border-color:var(--account-muted);background:color-mix(in srgb,var(--account-icon) 35%,var(--account-surface))}.account-card-icon{display:grid;place-items:center;flex:0 0 34px;height:36px;border-radius:10px;background:var(--account-icon)}.account-card-icon .icon{width:21px;height:21px}.account-card-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}.account-card-copy strong{font-size:13px;line-height:1.7;font-weight:600}.account-card-copy>span{font-family:Arial,sans-serif;font-size:11px;line-height:1.6;text-align:right;overflow-wrap:anywhere;color:var(--account-muted)}.account-card-arrow{width:15px;height:15px;margin-inline-start:3px;color:var(--account-muted)}@media(max-width:350px){.accounts-dialog .dialog-content{padding:12px}.account-card{gap:8px;padding:9px}.account-card-copy>span{font-size:10px}}.picker-list{display:grid;gap:8px;margin-bottom:13px;max-height:250px;overflow:auto}.picker-list .button{display:flex;justify-content:space-between;gap:8px}.picker-list small{font-size:9px;color:var(--muted)}.menu-list{display:grid;gap:8px}.menu-card{--menu-accent: #55b17b;position:relative;overflow:hidden;width:100%;min-height:54px;display:flex;align-items:center;gap:9px;padding:9px 12px 9px 13px;border:1px solid var(--line);border-radius:11px;background:var(--surface);text-align:right;box-shadow:var(--shadow)}.menu-card:before{content:"";position:absolute;top:0;bottom:0;right:0;width:3px;background:var(--menu-accent);opacity:.7}.menu-card:hover{border-color:color-mix(in srgb,var(--menu-accent) 40%,var(--line))}.menu-card--teal{--menu-accent: #4cb4a7}.menu-card--blue{--menu-accent: #689ed0}.menu-card--purple{--menu-accent: #9a83cc}.menu-card--gold{--menu-accent: #d1a75c}.menu-card--rose{--menu-accent: #d98f9a}.menu-card-icon{display:grid;place-items:center;flex:0 0 29px;height:31px;border:1px solid color-mix(in srgb,var(--menu-accent) 32%,var(--surface));border-radius:8px;color:var(--menu-accent);background:color-mix(in srgb,var(--menu-accent) 6%,var(--surface))}.menu-card-icon .icon{width:16px;height:16px}:root[data-theme=dark] .menu-card-icon{background:var(--soft);border-color:var(--line);color:var(--ink)}:root[data-theme=dark] .menu-card:hover{border-color:var(--accent)}.menu-card-text{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}.menu-card-text strong{font-size:12px;font-weight:400;line-height:1.6}.menu-card-text small{font-size:10px;color:var(--muted);line-height:1.6}.menu-card-chevron{width:12px;height:12px;color:var(--line);margin-right:2px}@media(max-width:480px){.menu-card{min-height:52px;gap:8px;padding:8px 10px 8px 11px}.menu-card-text strong{font-size:11.5px}.menu-card-text small{font-size:9.5px}.menu-card-icon{flex-basis:28px;height:30px}.menu-card-icon .icon{width:15px;height:15px}}@media(max-width:350px){.menu-card{gap:7px}.menu-card-text strong{font-size:11px}.menu-card-text small{font-size:9px}.menu-card-chevron{width:10px;height:10px}}.selection-chips{width:min(100%,330px);display:flex;flex-wrap:wrap;justify-content:center;gap:7px;margin:3px auto 0}.selection-chip{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:33px;max-width:100%;padding:6px 12px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--ink);font:inherit;font-size:11px;line-height:1.5;cursor:pointer}.selection-chip small{display:grid;place-items:center;min-width:19px;height:18px;padding:0 4px;border-radius:10px;background:color-mix(in srgb,var(--muted) 9%,var(--surface));color:var(--muted);font-size:9px;line-height:1}.selection-chip:hover{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 5%,var(--surface))}.selection-chip[aria-pressed=true]{border-color:var(--accent);background:var(--soft)}.brand{position:relative;text-align:center;padding-top:36px;margin:0 0 22px}.brand h1{font-size:34px;letter-spacing:-1.3px;line-height:1.7}.brand p{font-size:11px;color:var(--muted);margin-top:2px}.brand .heading-rule{margin-top:12px}.header-controls{position:absolute;top:0;right:0;display:grid;gap:7px}.header-controls .icon-button{border-radius:50%;width:33px;height:33px;color:#7ba28e}.header-controls .icon{width:16px;height:16px}:root[data-theme=dark] .header-controls .icon-button,:root[data-theme=dark] .download-buttons .icon{color:var(--muted)}.home-section-title{text-align:center;font-size:13px;font-weight:400;color:var(--muted);margin-bottom:12px}.chapter-list{display:grid;gap:8px}.chapter-card{--accent: #58b77c;position:relative;overflow:hidden;width:100%;min-height:60px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 16px 9px 13px;border:1px solid var(--line);border-radius:10px;background:var(--surface);text-align:right;box-shadow:var(--shadow)}.chapter-card:before{content:"";position:absolute;top:0;bottom:0;right:0;width:4px;background:var(--accent)}.chapter-card:hover:not(:disabled){border-color:color-mix(in srgb,var(--accent) 45%,var(--line))}.chapter-info{display:flex;flex-direction:column;gap:1px}.chapter-info small{font-size:10px;color:var(--muted)}.chapter-info strong{font-size:16px;font-weight:400;line-height:1.6}.question-count{font-size:10px;color:var(--muted);white-space:nowrap}.excluded{--accent: #cfd4d1;opacity:1!important;background:var(--soft)}.excluded .chapter-info{color:var(--muted)}.excluded strong{text-decoration:line-through;font-size:14px;font-weight:400;opacity:.6}.excluded-info{display:flex;align-items:flex-end;flex-direction:column;gap:2px;color:var(--muted);font-size:9px}.excluded-info small{font-size:8px;background:#fcebe8;border:1px solid #efd7d1;color:#b07972;border-radius:4px;padding:1px 5px;white-space:nowrap}.download-buttons{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:12px}.download-buttons .button{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;gap:5px;font-size:10px;padding:7px 5px;min-height:35px}.download-buttons .button:before{content:"";position:absolute;inset:0 0 0 auto;width:3px;background:#93d6ad}.download-buttons .button:nth-child(2):before{background:#7dcbbd}.download-buttons .icon{width:15px;height:15px;color:#65a084}.install-notice{display:flex;align-items:center;gap:9px;margin:15px 4px 0;padding:9px 10px;border-radius:10px;background:#29283e;color:#fffefa;box-shadow:0 4px 12px #29283e0d}.install-notice>img{width:34px;height:34px;object-fit:contain;border-radius:7px;background:#fff5e7;flex-shrink:0}.install-notice>div{flex:1;min-width:0}.install-notice h2{font-size:12px;font-weight:400}.install-notice p{font-size:9px;color:#bab6ca;margin-top:2px}.install-now{border:1px solid #8d7aeb;background:#8065df;color:#fff;padding:6px 9px;border-radius:7px;font-size:10px;white-space:nowrap}.install-dismiss{padding:0;border:0;background:transparent;color:#aaa6bc}.install-dismiss .icon{width:13px;height:13px}.answer-note{text-align:center;color:var(--muted);font-size:10px;margin:12px 0 0}.answer-note:before{content:"";display:block;width:24px;height:1px;background:var(--line);margin:0 auto 7px}.update-notice{display:flex;align-items:center;gap:8px;width:min(100%,232px);padding:7px 8px;margin:14px auto 0;border:1px solid var(--line);border-radius:10px;background:var(--surface)}.update-notice>span{width:5px;height:5px;border-radius:50%;background:var(--accent)}.update-notice h2{font-size:10px;font-weight:400;flex:1}.update-notice .button{min-height:26px;padding:3px 8px;border:0;background:var(--soft);font-size:9px}.install-instructions h3{font-size:13px;margin:13px 0 4px}.install-instructions p{font-size:12px;color:var(--muted)}.install-instructions .muted{font-size:10px;margin-top:12px}.filters-panel summary{font-size:11px}.study-progress{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:var(--muted);margin:16px 0 9px}.question-meta{font-size:10px;color:var(--muted);margin-bottom:9px}.question-prompt{text-align:justify;text-align-last:start;text-justify:inter-word;font-size:14px;line-height:1.9;font-weight:600;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 18px}.reveal-button{margin-top:2px}.answer-section{border-top:1px solid var(--line);padding-top:15px;margin-top:16px}.answer-section h3{font-size:11px;color:var(--accent);margin-bottom:12px}.answer-body{font-size:12px;line-height:1.85}.answer-body p{white-space:pre-wrap;overflow-wrap:anywhere;margin:9px 0}.answer-body ul{padding-inline-start:20px}.answer-body li{margin:6px 0}.content-image{display:block;max-height:500px;width:auto;object-fit:contain;margin:12px auto;border-radius:6px}.genetic-cross>p[dir=ltr]{text-align:center;letter-spacing:1px}.question-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:17px}.question-actions .button{flex:1;font-size:10px;white-space:nowrap;padding:6px}.question-navigation{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:16px 0}.question-navigation>span{font-size:10px;color:var(--muted);direction:ltr}.drawing-practice-link.button{display:block;margin:14px auto 0;font-size:10px}.drawing-mode-dialog{width:min(calc(100% - 48px),350px)}.drawing-mode-options{display:grid;gap:9px}.drawing-mode-options .button{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:11px;text-align:right}.drawing-mode-options .button>span{display:flex;flex-direction:column;gap:3px}.drawing-mode-options strong{font-size:12px;font-weight:400}.drawing-mode-options small{font-size:9px;color:var(--muted)}.drawing-mode-options .icon{width:19px;height:19px;color:var(--accent)}.reference-panel{margin-bottom:15px}.reference-panel>.button{margin-top:8px}.notebook-page-bar{display:flex;align-items:center;gap:6px}.notebook-page-bar select{flex:1;padding:7px;font-size:11px}.notebook-page-bar .icon-button{width:32px;height:34px}.notebook-save-status{font-size:9px;color:var(--muted);text-align:center;margin:8px 0 12px}.notebook-paper{border:1px solid var(--line);border-radius:11px;background:var(--surface);padding:13px;margin-bottom:12px}.notebook-paper .field+.field{margin-top:15px}.notebook-entry{border:1px solid var(--line);border-radius:8px;padding:12px;margin:13px 0}.notebook-entry>h2{font-size:14px;line-height:1.9;margin-bottom:10px}.notebook-entry .answer-body{font-size:13px}.entry-actions{display:flex;gap:6px;align-items:center;margin-top:11px}.entry-actions .button{flex:1;font-size:10px;padding:5px}.entry-actions .icon-button{width:29px;height:31px}.notebook-notes{line-height:2;min-height:145px}.download-count{text-align:center;color:var(--muted);font-size:11px;margin:15px 0}.quiz-setup-back{display:block;margin:0 auto 10px;font-size:10px}.quiz-topic-picker legend{width:100%;text-align:center;font-size:13px;margin-bottom:10px}.quiz-topic-progress{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:var(--muted);margin-bottom:10px}.quiz-topic-list{display:grid;gap:7px}.quiz-topic-option{display:flex;align-items:center;gap:9px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);font-size:11px;cursor:pointer}.quiz-topic-option>span{flex:1}.quiz-topic-option>small{font-size:9px;color:var(--muted);white-space:nowrap}.quiz-topic-option.is-selected{border-color:var(--accent);background:var(--soft)}.quiz-topic-option.is-disabled{color:var(--muted);cursor:default}.quiz-setup-hint{text-align:center;font-size:10px;color:var(--muted);margin:12px 0}.quiz-setup-step>.full-width{margin-top:12px}.quiz-topline{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted);margin-bottom:10px}.quiz-timer{padding:3px 8px;background:var(--soft);border-radius:6px;color:var(--ink)}.quiz-timer.urgent{color:var(--danger)}.quiz-progress{width:100%;height:4px;border:none;border-radius:3px;accent-color:var(--accent);margin-bottom:17px}.quiz-options{display:grid;gap:8px;margin-bottom:15px}.quiz-option{display:flex;gap:9px;padding:10px;border:1px solid var(--line);border-radius:7px;background:var(--surface);font-size:12px;align-items:center}.quiz-option.selected{border-color:var(--accent);background:var(--soft)}.quiz-submit{display:flex;gap:8px;margin-top:16px}.quiz-submit .button{flex:1}.quiz-question>.form-grid{margin-bottom:13px}.answer-explanation{font-size:12px;color:var(--muted);margin-top:15px}.result-card{text-align:center;padding:24px 15px}.result-card>strong{font-size:39px;font-weight:600;color:var(--accent)}.result-card h2{font-size:14px;margin:6px 0}.result-card p{font-size:11px;color:var(--muted)}.result-card small{display:block;font-size:10px;color:var(--muted);margin-top:10px}.result-answers{margin-top:18px}.result-answers summary{line-height:1.8}.result-answers .answer-body{font-size:13px}@media(max-width:480px){.brand{padding-top:31px;margin-bottom:20px}.brand h1{font-size:31px}.brand p{font-size:10px}.chapter-card{min-height:57px;padding:8px 15px 8px 11px}.chapter-info strong{font-size:15px}.excluded strong{font-size:12px}.excluded-info small{font-size:7.5px}.answer-note{font-size:9px}.question-prompt{font-size:12.5px}.answer-body{font-size:11.5px}.question-actions .button{font-size:9px}}@media(max-width:350px){.brand h1{font-size:28px}.brand p span{display:block}.chapter-card{gap:6px}.excluded-info small{font-size:7px;padding:1px 3px}.download-buttons .button{font-size:9px}.install-notice{gap:6px;padding:8px}.install-notice>img{width:29px;height:29px}.install-notice h2{font-size:11px}.install-notice p{font-size:8px}.install-now{font-size:9px;padding:5px 7px}.answer-note{font-size:8.5px}.notebook-page-bar{gap:4px}.notebook-page-bar .icon-button{width:29px}}@media(max-height:740px){.app-shell.home-screen{padding-block:calc(12px + var(--app-safe-top)) calc(12px + var(--app-safe-bottom))}.home-screen .brand{padding-top:24px;margin-bottom:16px}.home-screen .home-section-title{margin-bottom:9px}.home-screen .chapter-list{gap:7px}.home-screen .chapter-card{min-height:52px;padding-block:7px}.home-screen .chapter-info small{font-size:9px;line-height:1.5}.home-screen .chapter-info strong{font-size:14px;line-height:1.5}.home-screen .excluded strong{font-size:12px}.home-screen .download-buttons{margin-top:10px}.home-screen .install-notice{margin-top:12px}.home-screen .answer-note{margin-top:10px}}@media(max-height:680px){.home-screen .brand{padding-top:20px;margin-bottom:12px}.home-screen .chapter-card{min-height:48px;padding-block:5px}}@media(max-height:600px){.app-shell.home-screen{padding-block:calc(12px + var(--app-safe-top)) calc(12px + var(--app-safe-bottom))}.home-screen .brand{padding-top:16px;margin-bottom:10px}.home-screen .brand h1{font-size:26px;line-height:1.4}.home-screen .brand p{font-size:9px;line-height:1.5}.home-screen .brand .heading-rule{margin-top:7px}.home-screen .home-section-title{font-size:11px;line-height:1.5;margin-bottom:8px}.home-screen .chapter-list{gap:6px}.home-screen .chapter-card{min-height:44px;padding-block:5px}.home-screen .chapter-info small{font-size:8.5px;line-height:1.4}.home-screen .chapter-info strong{font-size:13.5px;line-height:1.4}.home-screen .excluded strong{font-size:11.5px}.home-screen .download-buttons{margin-top:8px}.home-screen .install-notice{margin-top:9px;padding-block:7px}.home-screen .answer-note{margin-top:8px}.home-screen .update-notice{margin-top:8px;padding-block:4px}}.drawing-board{border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:9px;overflow:visible}.drawing-controls{position:relative;z-index:5}.drawing-tools-content{display:contents}.drawing-tools-content[hidden]{display:none}.drawing-document-actions{display:inline-flex;align-items:center;flex:0 0 auto;gap:2px}.drawing-document-actions .drawing-tools-toggle{min-width:92px}.drawing-tools-toggle{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:30px;padding:4px 7px;border:0;border-radius:6px;color:var(--muted);background:transparent;font:inherit;font-size:10px;white-space:nowrap;touch-action:manipulation}.drawing-tools-toggle>.icon{width:14px;height:14px}.drawing-tools-toggle:hover,.drawing-tools-toggle:focus-visible{color:var(--ink);background:var(--soft)}.tool-popover{position:absolute;top:calc(100% + 8px);left:50%;z-index:30;width:min(244px,calc(100vw - 32px));padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);font-size:11px;line-height:1.4;box-shadow:0 10px 32px #182c2422;text-align:right;animation:tool-popover-enter .16s var(--motion-ease)}.tool-popover>header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}.tool-popover h3{font-size:11px;font-weight:600}.tool-popover>header .icon-button{width:23px;height:23px;border:0;background:transparent}.tool-popover>header .icon{width:13px;height:13px}.tool-popover legend{font-size:10px;color:var(--muted)}.tool-color-field{display:flow-root}.tool-color-field legend{float:right;font-size:9px;line-height:24px}.tool-popover .color-palette{justify-content:flex-end;gap:8px;padding:3px;margin:0}.tool-popover .color-palette button{width:18px;height:18px}.tool-field{display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:center;gap:6px;font-size:10px;margin:7px 0}.tool-field output{font:10px Arial,sans-serif;color:var(--muted)}.tool-field input[type=range],.tool-field select{width:100%}.tool-field input[type=range]{height:16px;margin:0}.tool-field select{font-size:11px;padding:6px 8px}.tool-popover .check-field{font-size:10px;margin:5px 0;padding:2px 0;gap:6px}.tool-popover .check-field input{width:14px;height:14px}.shape-picker{margin-top:6px}.shape-picker>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin-top:4px}.shape-picker button{display:flex;align-items:center;gap:5px;min-width:0;min-height:27px;padding:3px 6px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink);font-size:9px}.shape-picker button[aria-pressed=true]{border-color:var(--accent);background:var(--soft)}.shape-icon{width:15px;height:15px;flex:0 0 15px}.tool-popover .button{font-size:10px;min-height:28px;padding:4px 8px}.tool-help{font-size:9px;color:var(--muted);line-height:1.7;margin-top:6px}.notebook-writing-fields>.field+.field{margin-top:7px}.notebook-writing-fields .field>span{font-size:10px}.notebook-writing-fields input,.notebook-writing-fields textarea{padding:5px 7px;font-size:11px}.notebook-writing-fields textarea{min-height:58px;height:58px}.notebook-writing-fields>.button{margin-top:6px}@keyframes tool-popover-enter{0%{opacity:0;margin-top:-5px}to{opacity:1;margin-top:0}}@media(prefers-reduced-motion:reduce){.tool-popover{animation:none}}.drawing-toolbar{display:flex;flex-wrap:nowrap;gap:5px;align-items:center;justify-content:center;padding-bottom:9px;border-bottom:1px solid var(--line)}.drawing-toolbar>button:not(.icon-button){display:flex;align-items:center;justify-content:center;gap:4px;padding:5px 7px;min-height:34px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--muted);font-size:10px}.drawing-toolbar>button[aria-pressed=true]{border-color:var(--accent);color:var(--ink);background:var(--soft)}.drawing-toolbar .icon{width:15px;height:15px}.drawing-toolbar .icon-button{width:30px;height:33px}.drawing-settings{display:grid;grid-template-columns:1fr 1fr;gap:11px;padding:13px 4px;border-bottom:1px solid var(--line)}.drawing-settings label,.drawing-settings legend{font-size:10px;color:var(--muted)}.drawing-settings label:not(.check-field){display:flex;flex-direction:column;gap:5px}.drawing-settings fieldset{grid-column:1/-1}.drawing-settings select{font-size:10px;padding:6px}.color-palette{display:flex;gap:9px;margin-top:7px}.color-palette button{height:21px;width:21px;border-radius:50%;border:2px solid var(--surface);outline:1px solid var(--line)}.color-palette button[aria-pressed=true]{outline:2px solid var(--accent);outline-offset:2px}.drawing-zoom{display:flex;align-items:center;justify-content:center;gap:5px;padding:8px 0;font-size:10px;color:var(--muted);flex-wrap:wrap}.drawing-zoom .icon-button{width:28px;height:28px;border:none;background:transparent}.drawing-zoom .icon{width:14px;height:14px}.drawing-zoom .text-button{font-size:9px}.drawing-viewport{position:relative;width:100%;aspect-ratio:794/920;overflow:hidden;background:#fffefa;border:1px solid #dfe4dc;border-radius:7px;touch-action:none;direction:ltr;user-select:none}.drawing-viewport:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}.drawing-stage{position:absolute;inset:0;transform-origin:center}.drawing-visible-ink{position:absolute;inset:0;display:block;width:100%;height:100%;pointer-events:none}.drawing-paper-overlays{pointer-events:none}.drawing-board .drawing-stage{transition:none}.tool-pen,.tool-shape{cursor:crosshair}.tool-hand{cursor:grab}.drawing-viewport.can-scroll{touch-action:none}.tool-hand:active{cursor:grabbing}.tool-eraser{cursor:cell}.keyboard-cursor{display:none;position:absolute;pointer-events:none;width:8px;height:8px;border:1px solid #33613c;border-radius:50%;transform:translate(-50%,-50%)}.drawing-viewport:focus-visible .keyboard-cursor{display:block}.zoom-image{position:relative;border:1px solid var(--line);border-radius:11px;background:var(--surface);padding:0;margin-bottom:12px}.image-viewport{position:relative;height:310px;display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:none;background:#faf9f4;border-radius:inherit;cursor:grab;direction:ltr}.image-controls{position:absolute;bottom:10px;right:10px;z-index:3;max-width:calc(100% - 20px);padding:0;flex-wrap:nowrap;gap:4px;direction:rtl;cursor:default;touch-action:manipulation;user-select:none}.image-controls .text-button{white-space:nowrap}.image-controls .icon-button,.image-controls .text-button,.image-controls>span{color:#41554a}.image-controls .icon-button:hover,.image-controls .text-button:hover{background:#eef0e9}.image-viewport>img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;transform-origin:center;user-select:none}.image-error{text-align:center;padding:15px}.image-error button{background:transparent;border:0;color:var(--accent);text-decoration:underline;font-size:11px}@media(max-width:350px){.drawing-board{padding:7px}.image-viewport{height:240px}}@media(max-width:600px){.drawing-toolbar{gap:3px;padding-bottom:6px}.drawing-toolbar>button:not(.icon-button){gap:3px;padding:4px 5px;min-height:29px;font-size:9px;white-space:nowrap}.drawing-toolbar .icon{width:13px;height:13px}.drawing-toolbar .icon-button{width:25px;height:29px;flex-shrink:0}}@media(max-width:350px){.drawing-toolbar>button:not(.icon-button){padding:4px;font-size:8px;gap:2px}.drawing-toolbar .icon-button{width:23px}}.drawing-scale{display:contents}.drawing-toolbar-reveal{display:grid;grid-template-rows:1fr;opacity:1;transition:grid-template-rows .26s var(--motion-ease),opacity .18s ease}.drawing-toolbar-reveal.is-hidden{grid-template-rows:0fr;opacity:0;pointer-events:none}.drawing-toolbar-clip{min-height:0;overflow:hidden}.drawing-toolbar{translate:0 0;transition:translate .26s var(--motion-ease)}.drawing-toolbar-reveal.is-hidden .drawing-toolbar{translate:0 -5px}@media(prefers-reduced-motion:reduce){.drawing-toolbar-reveal,.drawing-toolbar{transition:none}}.practice-workspace{display:grid;gap:16px;align-items:start}.practice-workspace>*{min-width:0}.practice-workspace .reference-panel,.practice-workspace .zoom-image{margin-bottom:0}.image-blur-toggle{margin-inline-start:8px;padding:5px 9px;border:1px solid var(--line);border-radius:7px}.image-controls .image-blur-toggle,.image-controls .image-blur-toggle[aria-pressed=true],.image-controls .image-blur-toggle:hover,.image-controls .image-blur-toggle:active{background:transparent}.image-blur-toggle[aria-pressed=true]{border-color:var(--accent);color:var(--ink)}.drawing-grid-toggle{display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:4px 7px;border:1px solid var(--line);border-radius:6px}.drawing-grid-toggle .icon{width:12px;height:12px}.drawing-grid-toggle[aria-pressed=true]{background:var(--soft);color:var(--ink);border-color:var(--accent)}@media(min-width:741px){.app-shell.drawing-screen{width:min(calc(100% - 64px - 2 * var(--app-safe-inline)),1280px);justify-content:flex-start;margin-top:calc(28px + var(--app-safe-top))}.app-shell.drawing-screen--viewer{width:min(calc(100% - 64px - 2 * var(--app-safe-inline)),1040px)}.drawing-screen .image-viewport{height:clamp(420px,62dvh,640px)}.drawing-screen--viewer .image-viewport{height:clamp(460px,calc(100dvh - 190px),780px)}.drawing-screen .image-viewport>img{width:100%;height:100%}.practice-workspace:not(.practice-workspace--reference){width:min(100%,900px);margin-inline:auto}}.app-shell.notebook-screen{width:min(calc(100% - 64px - 2 * var(--app-safe-inline)),1108px);min-height:calc(100dvh - 48px - var(--app-safe-top));margin-top:calc(24px + var(--app-safe-top));padding-bottom:calc(35px + var(--app-safe-bottom));justify-content:flex-start}.notebook-workspace{--notebook-toolbar-top: calc(92px + var(--app-safe-top));width:100%}.notebook-header{position:sticky;top:calc(8px + var(--app-safe-top));z-index:35;display:grid;grid-template-columns:35px minmax(0,1fr) 35px;align-items:center;gap:10px;padding:12px 0 16px;margin-bottom:12px;background:var(--bg);border-bottom:1px solid var(--line)}.notebook-heading{grid-column:2;grid-row:1;text-align:center}.notebook-heading p{margin-top:3px;color:var(--muted);font-size:9px;line-height:1.7}.notebook-header h1{font-size:14px;line-height:1.6}.notebook-header>.icon-button{grid-row:1;border-radius:50%}.notebook-exit{grid-column:1}.notebook-download{grid-column:3}.notebook-header .icon{width:14px;height:14px}.notebook-layout{display:grid;grid-template-columns:190px minmax(0,1fr);align-items:start;gap:24px}.notebook-sidebar{position:sticky;top:calc(104px + var(--app-safe-top));min-width:0}.notebook-sidebar-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:3px 0 12px}.notebook-sidebar-heading h2{font-size:12px;font-weight:400}.notebook-sidebar-heading>span{padding:1px 6px;border-radius:9px;background:var(--soft);color:var(--muted);font-size:9px}.notebook-page-list{display:grid;gap:7px;max-height:calc(100dvh - 245px - var(--app-safe-top) - var(--app-safe-bottom));overflow:auto;padding:3px}.notebook-page-tab{display:flex;align-items:center;min-width:0;gap:2px;padding:4px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}.notebook-page-tab.is-selected{border-color:var(--accent);background:var(--soft);box-shadow:var(--shadow)}.notebook-page-tab>button:not(.icon-button){min-width:0;flex:1;display:flex;align-items:center;gap:7px;border:0;padding:5px 3px;background:transparent;color:var(--ink);text-align:right}.notebook-page-tab>button>span{display:grid;place-items:center;flex:0 0 25px;height:28px;border-radius:7px;background:color-mix(in srgb,var(--accent) 12%,var(--surface));font-size:10px}.notebook-page-tab strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-weight:400}.notebook-page-tab .icon-button{width:25px;height:30px;border:0;background:transparent}.notebook-page-tab .icon{width:13px;height:13px}.notebook-add-page{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;margin-top:10px;border-style:dashed;background:transparent;font-size:11px}.notebook-add-page .icon{width:13px;height:13px}.notebook-sidebar .notebook-save-status{margin-top:14px;font-size:9px;line-height:1.8}.notebook-desk{min-width:0;width:100%;max-width:794px;margin-inline:auto}.drawing-board--notebook{overflow:visible;border:0;padding:0;background:transparent;border-radius:0}.drawing-board--notebook .drawing-controls{position:sticky;top:var(--notebook-toolbar-top);z-index:25;padding:9px;margin-bottom:12px;border:1px solid var(--line);border-radius:11px;background:var(--bg);box-shadow:var(--shadow)}.drawing-board--notebook .drawing-toolbar{flex-wrap:nowrap;gap:8px;border:0;padding:0}.drawing-board--notebook .drawing-toolbar>button{flex-direction:column;gap:3px;width:40px;height:43px;min-height:43px;padding:5px;font-size:8px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}.drawing-board--notebook .drawing-toolbar>button[aria-pressed=true]{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 17%,var(--surface));box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 15%,transparent);color:var(--ink)}.drawing-board--notebook .drawing-toolbar .icon{width:17px;height:17px}.drawing-board--notebook .drawing-zoom{padding:5px 0 0;font-size:9px}.drawing-board--notebook .drawing-viewport{aspect-ratio:794/1123;border:1px solid #bfd5e0;border-radius:14px;background:#fff;box-shadow:0 7px 24px #203b2f0c}.notebook-continuation{margin:14px 0 0}.notebook-continuation-paper{position:relative;border-radius:14px;overflow:hidden}.notebook-cards-overlay{position:absolute;inset:0;pointer-events:none;container-type:inline-size}.notebook-card-actions{position:absolute;left:4.3%;display:flex;align-items:center;gap:2px;padding:0;pointer-events:auto}.notebook-card-actions button{display:grid;place-items:center;width:clamp(18px,2.7cqw,21px);height:clamp(18px,2.7cqw,21px);min-width:0;padding:2px;border:0;border-radius:4px;background:transparent;color:#6d7b6e;font-size:clamp(8px,1.2cqw,10px);line-height:1}.notebook-card-actions button:hover:not(:disabled){background:#eaf0e6;color:#2d4436}.notebook-card-actions .icon{width:clamp(10px,1.6cqw,12px);height:clamp(10px,1.6cqw,12px)}.notebook-card-actions button:disabled{opacity:.35}.notebook-card-note{position:absolute;left:4.2%;width:91.6%;min-height:0;resize:none;pointer-events:auto;border:0;border-radius:7px;padding:5px 9px;background:#fff;color:#425448;font-size:clamp(8px,1.9cqw,15px);line-height:1.65}.notebook-card-note-action{position:absolute;left:5.2%;display:flex;gap:4px;align-items:center;pointer-events:none}.notebook-card-note-action button{pointer-events:auto;min-height:18px;padding:2px 4px;border:0;border-radius:4px;background:transparent;color:#6d7b6e;font-size:clamp(8px,1.2cqw,10px);line-height:1.4}.notebook-card-note-action button:hover:not(:disabled){background:#f4f5ef;color:#395b47}.notebook-card-note::placeholder{color:#a2aaa0}.notebook-card-note:focus-visible{background:#fafbf8;outline-color:#c8d5c3}.notebook-card-note-edit{position:absolute;left:5%;pointer-events:auto;border:0;border-radius:5px;background:#fff;color:#395b47;padding:3px 7px;font-size:10px}.notebook-continuation figcaption{text-align:center;font-size:10px;margin-bottom:8px;color:var(--muted)}.notebook-continuation canvas{display:block;width:100%;height:auto;border:1px solid #bfd5e0;border-radius:14px}.notebook-editor-dialog{width:min(calc(100% - 48px - 2 * var(--app-safe-inline)),520px)}.notebook-editor-dialog .field+.field{margin-top:16px}.notebook-editor-help{font-size:10px;color:var(--muted);margin:12px 0}@media(max-width:740px){.app-shell.notebook-screen{width:calc(100% - 36px - 2 * var(--app-safe-inline));margin-top:calc(24px + var(--app-safe-top))}.notebook-workspace{--notebook-toolbar-top: calc(78px + var(--app-safe-top))}.notebook-header{gap:9px;padding:10px 0;margin-bottom:8px;text-align:center}.notebook-header h1{font-size:12px}.notebook-heading p{font-size:8px}.notebook-layout{display:flex;flex-direction:column;gap:9px}.notebook-sidebar{position:static;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:3px 7px;width:100%}.notebook-sidebar-heading{display:none}.notebook-page-list{display:flex;overflow:auto;max-height:none;min-width:0;scrollbar-width:none;scroll-snap-type:inline proximity}.notebook-page-list::-webkit-scrollbar{display:none}.notebook-page-tab{flex:0 0 133px;scroll-snap-align:start}.notebook-page-tab>button:not(.icon-button){padding:1px;gap:5px}.notebook-page-tab>button>span{flex-basis:21px;height:24px}.notebook-page-tab .icon-button{width:22px;height:27px}.notebook-page-tab strong{font-size:9px}.notebook-add-page{margin:0;min-height:35px;padding:6px 8px;font-size:9px}.notebook-sidebar .notebook-save-status{grid-column:1/-1;margin:0;font-size:8px}.drawing-board--notebook .drawing-controls{padding:7px;margin-bottom:9px}.drawing-board--notebook .drawing-toolbar{gap:5px}.drawing-board--notebook .drawing-toolbar>button{width:33px;height:35px;min-height:35px}.drawing-board--notebook .drawing-toolbar>button>span{display:none}.drawing-board--notebook .drawing-toolbar .icon{width:17px;height:17px}.drawing-board--notebook .drawing-zoom .text-button{font-size:8px}}@media(max-width:350px){.app-shell.notebook-screen{width:calc(100% - 28px - 2 * var(--app-safe-inline))}.notebook-header{gap:5px;grid-template-columns:32px minmax(0,1fr) 32px}.notebook-header>.icon-button{width:32px;height:32px}.notebook-header h1{font-size:11px}.drawing-board--notebook .drawing-toolbar{gap:4px}.drawing-board--notebook .drawing-toolbar>button{width:31px;min-width:0}}.install-dialog{width:min(calc(100% - 40px),380px);max-height:calc(100dvh - 36px);border:1px solid #34334f;border-radius:20px;background:#17172c;color:#f7f5ff;box-shadow:0 22px 65px #0004;color-scheme:dark}.install-dialog::backdrop{background:#15151c99;backdrop-filter:blur(3px)}.install-dialog .dialog-content{padding:23px 20px 17px}.install-dialog .dialog-heading{justify-content:center;margin-bottom:20px}.install-dialog .dialog-heading h2{font-size:16px;font-weight:600}.install-dialog .dialog-heading .icon-button{display:none}.device-tabs{display:flex;gap:10px;margin-bottom:19px}.device-tabs button{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;min-height:45px;border:1px solid #414052;border-radius:12px;background:#222235;color:#aaa8b8;font-size:12px;font-weight:600}.device-tabs button[aria-pressed=true]{border-color:#8270ff;background:#292547;box-shadow:inset 0 0 0 1px #8270ff;color:#faf8ff}.device-tabs svg{display:block;width:19px;height:19px}.android-icon{color:#4edb98}.install-browser-note{display:flex;gap:8px;align-items:flex-start;padding:11px;margin-bottom:15px;border:1px solid #635335;border-radius:11px;background:#2d2a30;color:#d6d0d5;font-size:10.5px;line-height:1.9}.install-browser-note>span{flex:0 0 14px;display:grid;place-items:center;height:14px;margin-top:3px;border:1px solid #efc650;border-radius:50%;color:#efc650;font:600 11px Arial,sans-serif}.install-primary{width:100%;min-height:44px;border:0;border-radius:12px;background:linear-gradient(110deg,#7160ff,#8d58f4);color:#fff;font-size:13px;font-weight:600;box-shadow:0 5px 20px #7258ff30}.install-fallback{text-align:center;color:#a4a0b8;font-size:9px;line-height:1.8;margin:9px 0 12px}.install-steps{list-style:none;padding:0;margin:0;border:1px solid #38364d;border-radius:14px;background:#222134;overflow:hidden}.install-steps li{display:flex;align-items:flex-start;gap:10px;padding:13px 12px}.install-steps li+li{border-top:1px solid #373449}.install-step-number{display:grid;place-items:center;flex:0 0 21px;height:21px;margin-top:2px;border-radius:50%;background:#7b5eff;color:#fff;font-size:10px;box-shadow:0 3px 8px #6f53ef35}.install-steps h3{font-size:11px;line-height:1.9;color:#f4f1fb}.install-steps p{margin-top:4px;font-size:10px;line-height:1.9;color:#ada8bd}.install-close{display:block;margin:17px auto 0;padding:7px 24px;border:0;border-radius:8px;background:transparent;color:#b4aec7;font-size:11px}.install-dialog button:focus-visible{outline-color:#a18fff}.install-close:hover{background:#26243a;color:#fff}@media(max-width:350px){.install-dialog .dialog-content{padding:20px 15px 14px}.device-tabs{gap:8px}.install-steps li{padding:11px 10px;gap:8px}}.install-notice{position:relative;isolation:isolate;overflow:hidden;background:#25113e;box-shadow:inset 0 0 0 1px #c7a5ff26,0 4px 14px #38215a18}.install-notice:before,.install-notice:after{content:"";position:absolute;pointer-events:none}.install-notice:before{z-index:-2;inset:-65%;background:linear-gradient(115deg,#140923 8%,#25113e 35%,#3d205f 58%,#79509f 66%,#3e205f 73%,#1b0c2f 88%);animation:install-nebula 16s ease-in-out infinite alternate}.install-notice:after{z-index:-1;inset:-10%;opacity:.8;background-image:radial-gradient(circle at 5% 24%,#fff 0 .8px,transparent 1.5px),radial-gradient(circle at 13% 76%,#fff 0 1px,transparent 1.8px),radial-gradient(circle at 21% 42%,#fff 0 .6px,transparent 1.2px),radial-gradient(circle at 28% 16%,#fff 0 1px,transparent 1.8px),radial-gradient(circle at 34% 88%,#fff 0 .7px,transparent 1.5px),radial-gradient(circle at 41% 55%,#fff 0 .7px,transparent 1.4px),radial-gradient(circle at 48% 20%,#fff 0 .9px,transparent 1.8px),radial-gradient(circle at 55% 80%,#fff 0 1px,transparent 1.8px),radial-gradient(circle at 63% 35%,#fff 0 .6px,transparent 1.3px),radial-gradient(circle at 70% 70%,#fff 0 .8px,transparent 1.5px),radial-gradient(circle at 77% 16%,#fff 0 1px,transparent 1.9px),radial-gradient(circle at 85% 49%,#fff 0 .7px,transparent 1.4px),radial-gradient(circle at 93% 78%,#fff 0 1px,transparent 1.8px);animation:install-stars 7s ease-in-out infinite alternate}.install-notice>*{position:relative;z-index:1}.install-notice h2{color:#fff;text-shadow:0 1px 5px #16072870}.install-notice p{color:#eee4fa;text-shadow:0 1px 4px #16072880}.install-notice .install-now{background:#7350b3;border-color:#c4a2ed8c;color:#fff;box-shadow:0 2px 9px #1b0b3633}.install-notice .install-dismiss{color:#eee4fa}@keyframes install-nebula{0%{transform:translate3d(-7%,-2%,0) rotate(-4deg)}to{transform:translate3d(7%,2%,0) rotate(4deg)}}@keyframes install-stars{0%{transform:translate3d(-1.5%,3px,0);opacity:.5}to{transform:translate3d(1.5%,-3px,0);opacity:.95}}@media(prefers-reduced-motion:reduce){.install-notice:before,.install-notice:after{animation:none}}.study-paths{width:100%;display:grid;gap:11px;margin:5px auto 0}.study-path-card{position:relative;overflow:hidden;width:100%;display:flex;align-items:center;gap:12px;padding:13px 15px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink)}.study-path-card:before{content:"";position:absolute;inset:0 0 0 auto;width:3px;background:#76d899}.study-path-card--topic:before{background:#61d7c4}.study-path-card>small{font-size:10px;color:var(--muted);white-space:nowrap}.study-path-copy{display:flex;flex:1;flex-direction:column;gap:3px;min-width:0;text-align:center}.study-path-copy strong{font-size:12px;font-weight:400}.study-path-copy>span{font-size:10px;color:var(--muted)}.study-path-icon{flex:0 0 30px;height:31px;display:grid;place-items:center;border:1px solid color-mix(in srgb,#52cf89 25%,var(--line));border-radius:9px;background:color-mix(in srgb,#6fe6a6 7%,var(--surface));color:#34b675}.study-path-icon .icon{width:16px;height:16px}.study-path-card--topic{display:block;padding-top:11px}.study-topic-heading{display:flex;gap:12px;align-items:center;margin-bottom:11px}.study-path-card--topic .study-path-icon{color:#23b8a8;background:color-mix(in srgb,#7ce3d5 8%,var(--surface));border-color:color-mix(in srgb,#6ad9c7 25%,var(--line))}.study-session{width:100%;min-height:calc(100dvh - 185px)}.study-topic-trigger{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:41px;padding:9px 12px;border:1px solid var(--line);border-radius:8px;color:var(--ink);background:var(--bg);font-size:11px;transition:background var(--motion-fast),border-color var(--motion-fast)}.study-topic-trigger:hover:not(:disabled){background:var(--surface);border-color:var(--accent)}.study-topic-trigger .icon{width:13px;height:13px;rotate:-90deg;color:var(--muted)}.study-topic-dialog{width:min(430px,calc(100vw - 36px - 2 * var(--app-safe-inline)));max-height:min(650px,calc(100dvh - 48px - var(--app-safe-top) - var(--app-safe-bottom)))}.study-topic-dialog .dialog-content{padding:20px}.study-topic-dialog .dialog-heading{margin-bottom:2px}.study-topic-dialog .dialog-heading h2{font-size:16px}.study-topic-chapter{margin-bottom:17px;color:var(--muted);font-size:10px}input.study-topic-search{min-height:41px;padding:9px 12px;border-radius:9px;background:var(--surface);font-size:11px}.study-topic-options{display:grid;gap:1px;margin-top:12px;max-height:min(420px,calc(100dvh - 250px - var(--app-safe-top) - var(--app-safe-bottom)));overflow-y:auto;overscroll-behavior:contain}.study-topic-option{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:43px;padding:10px 11px;border:0;border-bottom:1px solid var(--line);background:transparent;border-radius:5px;color:var(--ink);text-align:start;font-size:12px;line-height:1.65;transition:background var(--motion-fast),color var(--motion-fast)}.study-topic-option:last-child{border-bottom-color:transparent}.study-topic-option:hover{background:var(--surface)}.study-topic-option .icon{flex:0 0 12px;width:12px;height:12px;color:var(--muted)}.study-topic-option:focus-visible{outline-offset:-2px}.study-topic-empty{padding:23px 10px;color:var(--muted);text-align:center;font-size:11px}.study-answer-motion.motion-reveal{transition:grid-template-rows .4s var(--motion-ease),opacity .26s ease}.study-answer-motion .motion-reveal-content{transform:translateY(8px);transition:transform .4s var(--motion-ease)}.study-answer-motion[data-open=false]{transition-duration:.28s,.18s}.study-session-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 13px}.study-session-bar>span{font-size:10px;color:var(--muted)}.study-session-bar .button{padding:3px 0;min-height:26px;font-size:9px}.study-question-card{border:1px solid var(--line);border-radius:13px;background:var(--surface);padding:16px;touch-action:pan-y pinch-zoom}.base-help-button{display:inline-grid;place-items:center;width:30px;height:30px;padding:0;border:1px solid color-mix(in srgb,var(--accent) 40%,var(--line));border-radius:9px;background:color-mix(in srgb,var(--accent) 9%,var(--surface));color:color-mix(in srgb,var(--accent) 70%,var(--ink));box-shadow:var(--shadow);cursor:pointer;transition:background var(--motion-fast),border-color var(--motion-fast),transform var(--motion-fast)}.base-help-button svg{width:18px;height:18px}.base-help-button path{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}.base-help-button circle{fill:currentColor}.base-help-button:hover{background:color-mix(in srgb,var(--accent) 16%,var(--surface));border-color:var(--accent)}.base-help-button:active{transform:scale(.94)}.base-help-button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}@media(prefers-reduced-motion:reduce){.base-help-button{transition:none}.base-help-button:active{transform:none}}.base-help-dialog{width:min(480px,calc(100vw - 32px))}.base-help-content{font-size:12px;line-height:1.8}.base-help-content p{margin:7px 0}.base-help-content section{border-top:1px solid var(--line);padding-top:9px;margin-top:11px}.base-help-content h3{font-size:13px;margin:0 0 7px}.base-help-pairs{display:flex;gap:9px}.base-help-pairs span{flex:1;background:var(--soft);border-radius:8px;padding:6px;text-align:center;font-weight:600;letter-spacing:2px}.base-help-note{color:var(--muted)}@media(max-width:480px){.base-help-content{font-size:11px;line-height:1.7}.base-help-content section{padding-top:7px;margin-top:8px}.base-help-dialog .dialog-heading h2{font-size:14px}}.study-card-heading{display:flex;flex-direction:row-reverse;justify-content:space-between;gap:10px;align-items:center;margin-bottom:17px}.study-kind-pill{display:flex;align-items:center;gap:4px;border-radius:14px;border:1px solid color-mix(in srgb,#4fd58b 25%,var(--surface));background:color-mix(in srgb,#59e099 7%,var(--surface));color:#259c5d;padding:3px 9px;font-size:9px}.study-kind-pill .icon{width:11px;height:11px}.study-card-heading>small{font-size:9px;color:var(--muted)}.study-question-card .question-prompt{font-size:12.5px;line-height:1.85;font-weight:400;margin-bottom:13px}.study-question-meta{border-top:1px solid var(--line);display:flex;align-items:center;justify-content:flex-start;gap:8px;padding-top:11px}.study-source{display:flex;align-items:center;gap:4px;font-size:9px;color:var(--muted);white-space:nowrap}.study-source .icon{width:12px;height:12px}.study-question-meta>div{display:flex;flex-wrap:wrap;gap:5px}.question-variant+.question-variant{margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}.question-variant-label{display:block;color:var(--muted);font-size:10px;margin-bottom:4px}.question-variant .study-question-meta{flex-wrap:wrap}.study-year{border:1px solid color-mix(in srgb,#4fd58b 30%,var(--line));border-radius:12px;background:color-mix(in srgb,#59e099 7%,var(--surface));color:#298f56;font-size:9px;padding:2px 7px}.study-reveal.button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:40px;margin-top:9px;border-color:#18a450;border-radius:9px;background:#16a052;color:#fff;box-shadow:0 4px 12px #16a0521a;font-size:12px}.study-reveal.button:hover:not(:disabled){background:#15994d}.study-reveal .icon{width:15px;height:15px}.study-answer.answer-section{margin-top:9px;padding:12px 14px;border:1px solid color-mix(in srgb,#64d9c5 60%,var(--line));border-radius:11px;background:color-mix(in srgb,#b6f5e8 20%,var(--surface))}.study-answer>header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:5px}.study-answer h3{margin:0;color:#269e9e;font-size:10px;font-weight:400}.study-answer>header .button{min-height:23px;padding:0;font-size:9px}.study-answer .answer-body{font-size:12px;line-height:1.85}.study-answer table{font-size:11px}.study-mark-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;width:min(280px,100%);margin:7px auto 0}.study-mark-actions--single{grid-template-columns:1fr}.study-mark-actions .button{display:flex;align-items:center;justify-content:center;gap:5px;border-radius:8px;min-height:31px;padding:4px 9px;font-size:10px}.study-mark-actions .icon{width:12px;height:12px}.study-mark-actions .study-known{border-color:#14a04b;color:#fff;background:#16a052}.study-mark-actions .study-known:hover:not(:disabled){background:#15994d}.study-mark-actions .study-known[aria-pressed=true]{border-color:#087d38;background:#087d38;color:#fff}.study-mark-actions .study-review{border-color:#eedb86;color:#a66b23;background:#fff5ce}.study-mark-actions .study-review:hover:not(:disabled),.study-mark-actions .study-review[aria-pressed=true]{background:#f7e8a6;color:#825218}.study-notebook.button{display:flex;align-items:center;justify-content:center;gap:5px;width:min(180px,70%);min-height:29px;padding:4px 9px;margin:6px auto 0;border-color:#b6e3fa;border-radius:8px;background:#e1f4fe;color:#177eb1;font-size:10px}.study-notebook.button:hover:not(:disabled){background:#d6effc}.study-notebook .icon{width:12px;height:12px}:root[data-theme=dark] .study-kind-pill,:root[data-theme=dark] .study-year,:root[data-theme=dark] .study-path-icon{color:var(--ink);background:var(--soft);border-color:var(--line)}:root[data-theme=dark] .study-path-card:before{background:var(--accent)}:root[data-theme=dark] .study-answer.answer-section{background:var(--soft);border-color:var(--line)}:root[data-theme=dark] .study-answer h3{color:var(--muted)}:root[data-theme=dark] .study-reveal.button,:root[data-theme=dark] .study-mark-actions .study-known{background:var(--accent);border-color:var(--accent);color:var(--bg);box-shadow:none}:root[data-theme=dark] .study-reveal.button:hover:not(:disabled),:root[data-theme=dark] .study-mark-actions .study-known:hover:not(:disabled),:root[data-theme=dark] .study-mark-actions .study-known[aria-pressed=true]{background:#d8cbbb;border-color:#d8cbbb;color:var(--bg)}:root[data-theme=dark] .study-mark-actions .study-review{color:#f3d38e;background:#5a4d2d;border-color:#8a7848}:root[data-theme=dark] .study-mark-actions .study-review:hover:not(:disabled),:root[data-theme=dark] .study-mark-actions .study-review[aria-pressed=true]{background:#6b5931}:root[data-theme=dark] .study-notebook.button{color:#b4e2f4;background:#344d5a;border-color:#597a8e}:root[data-theme=dark] .study-notebook.button:hover:not(:disabled){background:#3e5b6a}@media(min-width:481px){.study-mark-actions{width:auto;gap:7px;margin:8px 4px 0}.study-mark-actions .button{gap:6px;border-radius:9px;min-height:38px;padding:7px 12px;font-size:11px}.study-mark-actions .icon{width:14px;height:14px}.study-notebook.button{gap:6px;width:min(220px,75%);min-height:35px;padding:7px 12px;margin-top:7px;border-radius:9px;font-size:11px}.study-notebook .icon{width:14px;height:14px}}@media(max-width:480px){.study-topic-dialog .dialog-content{padding:17px}.study-topic-dialog .dialog-heading h2{font-size:15px}.study-topic-option{font-size:11px}.study-path-card{gap:9px;padding:12px}.study-path-copy strong{font-size:11px}.study-path-copy>span{font-size:9px}.study-question-card{padding:10px 12px}.study-question-card .question-prompt{font-size:11.5px;line-height:1.8;margin-bottom:8px}.study-answer .answer-body{font-size:11.5px;line-height:1.85}.study-card-heading{margin-bottom:8px}.study-question-meta{padding-top:7px}.study-session-bar{margin-bottom:8px}}@media(prefers-reduced-motion:reduce){.study-answer-motion.motion-reveal,.study-answer-motion .motion-reveal-content{transition:none;transform:none}}.problem-type-dialog{width:min(360px,calc(100% - 24px))}.problem-type-dialog .dialog-content{padding:22px 18px 18px}.problem-type-dialog .dialog-heading{position:relative;justify-content:center;padding:0 24px;margin-bottom:4px}.problem-type-dialog .dialog-heading h2{font-size:15px}.problem-type-dialog .dialog-heading .icon-button{position:absolute;left:-8px;top:-12px;width:27px;height:27px;border:1px solid var(--line);border-radius:8px}.problem-type-subtitle{text-align:center;color:var(--muted);font-size:11px;margin-bottom:17px}.problem-type-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.problem-type-options>button{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:34px;padding:5px 7px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font-size:11px;line-height:1.7}.problem-type-options>button:hover{background:var(--soft);border-color:var(--accent)}.problem-type-badge{display:grid;place-items:center;flex:0 0 20px;height:20px;border:1px solid;border-radius:5px;font:10px Arial,sans-serif}.problem-type-badge--bases{color:#9065d4;background:#b085e512;border-color:#b085e544}.problem-type-badge--crosses{color:#d2649d;background:#e98abb12;border-color:#e98abb44;font-size:14px}.answer-organized{display:grid;gap:8px}.answer-organized .answer-paragraph,.answer-organized .answer-fact>p{text-align:justify;text-align-last:start;text-justify:inter-word}.answer-organized .answer-paragraph{margin:0}.answer-organized .answer-paragraph+.answer-paragraph{padding-top:1px}.answer-organized .answer-text-group{min-width:0;display:grid;gap:6px}.answer-organized--definition>.answer-text-group:first-child>.answer-paragraph:first-child{color:var(--ink)}.answer-organized .answer-fact{display:grid;grid-template-columns:64px minmax(0,1fr);gap:10px;align-items:baseline;padding:6px 0}.answer-organized .answer-fact+.answer-fact{border-top:1px solid color-mix(in srgb,var(--line) 55%,transparent)}.answer-organized .answer-fact>strong{font-size:10px;font-weight:600;color:var(--accent)}.answer-organized .answer-fact>p{margin:0}.answer-organized .answer-points{list-style:none;padding:0;margin:0;display:grid;gap:6px}.answer-organized .answer-points>li{display:flex;gap:9px;align-items:baseline;margin:0;padding:1px 0}.answer-organized .answer-points>li>div{min-width:0;flex:1}.answer-point-marker{flex:0 0 4px;height:4px;border-radius:50%;background:var(--accent);transform:translateY(-2px)}.answer-meaning-note{color:#956021;text-align:center;padding:0;margin:6px 0 0}.answer-meaning-note>p{font-size:11px;line-height:1.6;margin:0}.study-answer.answer-section{background:var(--surface);border-color:var(--line);padding:10px 13px}.study-answer>header{padding-bottom:5px;margin-bottom:7px;border-bottom:1px solid var(--line)}.study-answer h3{color:var(--muted)}:root[data-theme=dark] .answer-meaning-note{color:#e7c78d}@media(max-width:480px){.answer-organized{gap:6px}.answer-organized .answer-fact{grid-template-columns:54px minmax(0,1fr);gap:7px;padding:5px 0}.answer-organized .answer-fact>strong{font-size:9px}.answer-organized .answer-points{gap:5px}.answer-meaning-note{margin-top:5px}.answer-meaning-note>p{font-size:10px}}.comparison-answer{margin:8px 0 2px;border-radius:14px;overflow:hidden;background:var(--surface)}.comparison-table{width:100%;min-width:0;table-layout:fixed;border-collapse:separate;border-spacing:0}.comparison-table th,.comparison-table td{border:0;padding:7px 9px;font-size:11px;line-height:1.8;vertical-align:middle;text-align:start;white-space:pre-wrap;overflow-wrap:anywhere}.comparison-table th{background:var(--soft);font-size:10px;font-weight:600;padding-block:10px;text-align:center}.comparison-table th+th,.comparison-table td+td{border-inline-start:1px solid color-mix(in srgb,var(--line) 55%,transparent)}.comparison-table tbody tr+tr td{border-top:1px solid color-mix(in srgb,var(--line) 50%,transparent)}.comparison-table tbody tr:nth-child(2n){background:color-mix(in srgb,var(--soft) 40%,var(--surface))}@media(max-width:480px){.comparison-table th,.comparison-table td{padding:6px 7px;font-size:10.5px}.comparison-table th{font-size:9.5px}}.genetic-solution{display:grid;gap:12px;min-width:0}.genetic-explanation{display:grid;gap:10px}.genetic-explanation section{border-inline-start:3px solid var(--accent);padding:2px 12px}.genetic-explanation h4{font-size:.8rem;color:var(--accent);margin:0 0 5px}.genetic-explanation p{margin:3px 0;line-height:1.8}.cross-diagram{border:1px solid var(--line);border-radius:15px;overflow:hidden;background:var(--surface)}.cross-diagram>header{display:flex;align-items:center;justify-content:space-between;padding:9px 14px;background:var(--soft);border-bottom:1px solid var(--line);font-size:.8rem}.genotype{font-family:Georgia,Times New Roman,serif;font-weight:600;font-size:1.1em;overflow-wrap:anywhere}.genotype sup{font-size:.72em}.cross-parents{display:grid;grid-template-columns:minmax(0,1fr) 74px minmax(0,1fr);align-items:stretch;gap:5px;padding:14px 10px 10px}.cross-parent{text-align:center;min-width:0;display:flex;flex-direction:column;align-items:center;gap:8px}.cross-parent-label{width:100%;padding-bottom:7px;border-bottom:1px solid var(--line);line-height:1.5;font-size:.8rem}.cross-parent-label>span:first-child{color:var(--accent)}.cross-parent>.genotype{color:var(--ink);font-size:1.08rem}.cross-gametes{display:flex;justify-content:center;flex-wrap:wrap;gap:6px;direction:ltr}.cross-gametes>span{border:1px solid var(--accent);border-radius:50%;min-width:30px;min-height:30px;padding:4px 7px;display:grid;place-items:center;color:var(--ink)}.cross-flow{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:8px;color:var(--muted)}.cross-flow>span{font-size:1.4rem;line-height:1}.cross-flow small{font-size:.6rem;text-align:center}.cross-generation{text-align:center;font-size:.7rem;color:var(--muted);margin:4px 0 8px}.cross-offspring{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;padding:0 12px 12px;direction:ltr}.cross-offspring>div{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:7px 10px;border:1px solid var(--line);background:var(--soft);border-radius:10px;min-width:65px;text-align:center}.cross-offspring>div>span{font-size:.72rem;direction:rtl}.cross-offspring small{color:var(--muted);font-size:.7rem}.cross-ratio{padding:9px 12px;border-top:1px solid var(--line);text-align:center;font-size:.8rem;line-height:1.8}.cross-ratio strong{color:var(--accent);font-size:.72rem}.cross-ratio p{margin:3px 0 0;text-align:center}.cross-note{margin:0 12px 12px;padding:8px 10px;background:var(--soft);border-radius:8px;font-size:.74rem}.punnett-wrap{padding:0 10px 10px}.punnett-table{table-layout:fixed;width:100%;border-collapse:separate;border-spacing:0;border:1px solid var(--line);border-radius:10px;overflow:hidden}.punnett-table caption{font-size:.72rem;color:var(--muted);margin-bottom:7px}.punnett-table th,.punnett-table td{padding:8px 3px;text-align:center;vertical-align:middle;border:0;border-inline-end:1px solid var(--line);border-bottom:1px solid var(--line);overflow-wrap:anywhere}.punnett-table th{background:var(--soft);font-weight:600}.punnett-table tr>:last-child{border-inline-end:0}.punnett-table tbody tr:last-child>*{border-bottom:0}.punnett-table td>span{display:block;font-size:.68rem;line-height:1.5;margin-top:4px}@media(max-width:600px){.cross-parents{grid-template-columns:minmax(0,1fr) 54px minmax(0,1fr);padding:11px 7px 9px;gap:3px}.cross-parent-label{font-size:.72rem}.cross-gametes{gap:4px}.cross-gametes>span{min-width:27px;min-height:27px;padding:3px 5px}.punnett-table .genotype{font-size:.75rem}.punnett-table th,.punnett-table td{padding:7px 2px}.punnett-table td>span{font-size:.6rem}.genetic-explanation section{padding-inline:9px}}.exam-theme{--exam-paper: var(--surface);--exam-wash: var(--soft);--exam-line: var(--line);--exam-brown: var(--accent);--exam-ink: var(--ink);--exam-muted: var(--muted)}.exam-stage-header{position:relative}.exam-stage-header .page-heading{margin-top:8px;margin-bottom:22px}.exam-stage-back{position:absolute;inset-inline-end:0;top:0}.exam-source-list,.exam-setup,.quiz-setup-step{display:grid;gap:12px}.exam-preparation{display:grid;gap:19px}.exam-length,.exam-topic-picker{margin:0;padding:0;border:0;min-width:0}.exam-length>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.exam-length label{position:relative;display:grid;gap:3px;padding:12px 5px;border:1px solid var(--line);border-radius:10px;text-align:center;background:var(--surface);cursor:pointer}.exam-length input,.exam-topic input,.exam-option input{position:absolute;opacity:0;width:1px;height:1px}.exam-length strong{font-size:12px;font-weight:400}.exam-length small{color:var(--muted);font-size:10px}.exam-length label.is-selected{background:var(--soft);border-color:var(--accent)}.exam-topic-picker legend{padding:0;margin-bottom:9px;font-size:11px;color:var(--muted)}.exam-topics{display:grid;gap:8px}.exam-topic{display:flex;align-items:center;position:relative;gap:10px;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);cursor:pointer}.exam-topic-check{display:grid;place-items:center;flex:0 0 23px;height:23px;border:1px solid var(--line);background:var(--soft);border-radius:7px;font-size:11px;color:var(--accent)}.exam-topic-copy{min-width:0;display:grid;gap:3px}.exam-topic-copy>small{color:var(--muted);font-size:9px;line-height:1.8;font-weight:400}.exam-topic-copy strong{font-size:12px;line-height:1.7;font-weight:400}.exam-topic.is-selected{border-color:var(--accent);background:var(--soft)}.exam-topic.is-selected .exam-topic-check{background:var(--accent);color:var(--surface);border-color:var(--accent)}.exam-topic.is-disabled,.exam-unavailable{opacity:.45;cursor:default}.exam-topic:has(input:focus-visible),.exam-length label:has(input:focus-visible),.exam-option:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:3px}.exam-start{display:flex;justify-content:center;margin-top:4px}.exam-start .button{display:flex;align-items:center;gap:8px;min-height:39px;padding:8px 25px;font-size:11px}.exam-start .icon{width:14px;height:14px}.exam-topic-search{display:flex;position:relative;align-items:center;margin-bottom:11px}.exam-topic-search input{width:100%;padding:10px 12px 10px 35px;font-size:12px}.exam-topic-search>.icon{position:absolute;left:12px;width:15px;height:15px;color:var(--muted);pointer-events:none}.exam-search-empty{color:var(--muted);text-align:center;font-size:12px;padding:12px}.exam-question{background:var(--surface);border:1px solid var(--line);border-radius:13px;padding:0;overflow:hidden;margin-bottom:12px;box-shadow:var(--shadow)}.exam-card-top{display:flex;align-items:center;gap:12px;padding:13px 15px}.exam-card-index{display:flex;align-items:baseline;gap:5px;white-space:nowrap;padding-inline-end:12px;border-inline-end:1px solid var(--line)}.exam-card-index strong{font-size:21px;font-weight:400;font-variant-numeric:tabular-nums}.exam-card-index>span{font-size:9px;color:var(--muted)}.exam-card-index small{font-size:8px}.exam-card-context{display:grid;gap:3px}.exam-card-context>span{color:var(--accent);font-size:10px}.exam-card-context small{color:var(--muted);font-size:9px;line-height:1.6}.exam-progress{width:100%;height:3px;display:block;appearance:none;border:0;accent-color:var(--accent)}.exam-progress::-webkit-progress-bar{background:var(--soft)}.exam-progress::-webkit-progress-value{background:var(--accent);transition:width var(--motion-fast)}.exam-card-content{padding:17px 15px 15px}.exam-question .question-prompt{font-size:13px;font-weight:400;line-height:1.9;margin:0 0 15px;outline:none}.exam-options{display:grid;gap:8px;border:0;padding:0;margin:0;min-width:0}.exam-options--binary{grid-template-columns:1fr 1fr}.exam-option{display:flex;align-items:center;position:relative;gap:9px;min-height:43px;padding:9px 10px;background:var(--surface);border:1px solid var(--line);border-radius:9px;cursor:pointer;font-size:12px;line-height:1.8}.exam-option-marker{flex:0 0 24px;height:24px;display:grid;place-items:center;border-radius:7px;background:var(--soft);color:var(--muted);font-size:10px}.exam-option.is-selected{border-color:var(--accent);background:var(--soft)}.exam-option.is-correct{border-color:var(--accent);box-shadow:inset -3px 0 var(--accent)}.exam-option.is-wrong{border-color:var(--danger);box-shadow:inset -3px 0 var(--danger)}.exam-options:disabled .exam-option{cursor:default}.exam-answer-field{display:grid;gap:6px;background:var(--soft);padding:10px 12px;border:1px solid var(--line);border-radius:10px}.exam-answer-field>span{font-size:10px;color:var(--muted)}.exam-question .exam-answer-field textarea{padding:0;border:0;border-radius:0;box-shadow:none;background:transparent;width:100%;min-height:60px;max-height:240px;resize:vertical;font-size:13px;color:var(--ink);line-height:1.9}.exam-question .exam-answer-field--fill textarea{min-height:32px}.exam-answer-field:focus-within{outline:2px solid var(--accent);outline-offset:2px}.exam-answer-field textarea:focus{outline:none}.exam-check-feedback{margin-top:12px;padding:10px;border:1px solid var(--line);border-radius:9px;background:var(--soft)}.exam-check-status{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;font-size:11px}.exam-check-status>span{display:flex;align-items:center;gap:6px}.exam-check-status .icon{width:15px;height:15px}.exam-check-status small{font-size:9px;color:var(--muted)}.exam-check-feedback.is-wrong .exam-check-status>span{color:var(--danger)}.exam-check-feedback>.answer-body{margin-top:10px;padding-top:8px;border-top:1px solid var(--line);font-size:11px}.exam-navigation{display:grid;gap:8px;justify-items:center}.exam-navigation>.button--primary{display:flex;align-items:center;justify-content:center;gap:7px;min-height:41px}.exam-navigation .icon{width:14px;height:14px}.exam-end-button{min-height:31px;font-size:10px;color:var(--muted)}.exam-result{padding:22px 18px 14px;background:var(--surface);border:1px solid var(--line);border-radius:14px;text-align:center;box-shadow:var(--shadow)}.exam-result .exam-stage-kicker{color:var(--muted);font-size:10px;display:block;margin-bottom:6px}.exam-result h1{font-size:19px;margin:0;font-weight:400;outline:none}.exam-result-score{display:grid;gap:10px;padding:19px 0}.exam-result-score strong{font-size:61px;font-weight:400;line-height:1.1;color:var(--accent);font-variant-numeric:tabular-nums}.exam-result-score strong>span{font-size:22px}.exam-result-score>div{display:grid;gap:4px}.exam-result-score>div>span{font-size:11px}.exam-result-score small{font-size:9px;color:var(--muted)}.exam-result-stats{display:grid;grid-template-columns:repeat(3,1fr);margin:0 0 16px;padding:13px 0;border-block:1px solid var(--line)}.exam-result-stats>div{display:flex;flex-direction:column-reverse;gap:4px}.exam-result-stats>div+div{border-inline-start:1px solid var(--line)}.exam-result-stats dt{font-size:10px;color:var(--muted)}.exam-result-stats dd{margin:0;font-size:19px}.exam-result-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.exam-result-actions .button{display:flex;align-items:center;justify-content:center;gap:5px;min-height:38px;font-size:10px;padding:7px}.exam-result-actions .icon{width:14px;height:14px}.exam-result-home{grid-column:1/-1}.exam-review-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:15px}.exam-review-heading h1{font-size:19px;font-weight:400;outline:none}.exam-review-heading .exam-stage-kicker{display:block;font-size:9px;color:var(--muted);margin-bottom:5px}.exam-review-heading .button{display:flex;gap:6px;align-items:center;min-height:32px;font-size:9px;padding:5px 8px}.exam-review-heading .icon{width:13px;height:13px}.exam-error-list{display:grid;gap:8px}.exam-review-add-all{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;margin-bottom:14px;font-size:11px}.exam-review-add-all .icon{width:15px;height:15px}.exam-error{border:1px solid var(--line);border-radius:10px;background:var(--surface);overflow:hidden}.exam-error summary{display:flex;align-items:center;gap:12px;padding:12px;font-size:12px;line-height:1.9;cursor:pointer;list-style:none}.exam-error summary::-webkit-details-marker{display:none}.exam-error summary>span{flex:1}.exam-error summary>.icon{width:14px;height:14px;color:var(--muted)}.exam-error[open] summary>.icon{transform:rotate(-90deg)}.exam-error-answer{background:var(--soft);padding:12px;border-top:1px solid var(--line)}.exam-error .answer-body{font-size:11px}@media(max-width:480px){.exam-card-content{padding:14px 12px}.exam-question .question-prompt{font-size:12px}.exam-option,.exam-topic-copy strong{font-size:11px}.exam-stage-header .page-heading h1{font-size:22px}}@media(prefers-reduced-motion:reduce){.exam-progress::-webkit-progress-value{transition:none}}.review-list{width:min(100%,352px);margin:0 auto}.review-start.button{width:100%;display:flex;align-items:center;justify-content:center;gap:7px;min-height:40px;border:0;border-radius:11px;background:#f59e00;color:#fff;font-size:12px;box-shadow:0 4px 10px #f59e001c}.review-start.button:hover{background:#e99300}.review-start .icon{width:15px;height:15px}.review-list-hint{text-align:center;font-size:10px;color:var(--muted);margin:10px 0 8px}.review-cards{display:grid;gap:8px}.review-card{position:relative;border:1px solid var(--line);border-radius:12px;background:var(--surface);overflow:hidden}.review-card-open{display:flex;width:100%;flex-direction:column;gap:5px;min-height:55px;padding:9px 37px 10px 13px;border:0;background:transparent;color:var(--ink);text-align:start;cursor:pointer}.review-card-open:hover{background:var(--soft)}.review-category{display:flex;align-items:center;align-self:flex-end;gap:4px;color:#dd8a00;font-size:9px}.review-category .icon{width:10px;height:10px}.review-prompt{font-size:12px;line-height:1.7;overflow-wrap:anywhere}.review-card .icon-button{position:absolute;top:8px;right:7px;width:25px;height:25px;border:0;background:transparent;color:var(--muted)}.review-card .icon-button .icon{width:13px;height:13px}:root[data-theme=dark] .review-category{color:#f1b953}body,.panel,.dialog,.account-card-icon,.bottom-dock,.notebook-paper,.notebook-entry,.drawing-board,.quiz-option,.empty-state-icon,.update-notice,.notebook-header,.drawing-controls,.notebook-page-tab,.study-question-card,.study-path-card,.study-answer,.review-card,.comparison-answer,.comparison-table th,.comparison-table tr,.tool-popover,.heading-rule,input:not([type=range]),select,textarea{transition:background-color var(--motion-theme) ease,color var(--motion-theme) ease,border-color var(--motion-theme) ease,box-shadow var(--motion-theme) ease}.brand p,.home-section-title,.chapter-info small,.question-count,.excluded-info,.answer-note,.page-heading>p,.menu-card-text small,.dialog-description,.account-card-copy>span,.account-card-arrow,.muted{transition:color var(--motion-theme) ease}.button,.icon-button,.text-button,.chapter-card,.menu-card,.account-card,.install-now,.install-dismiss,.device-tabs button,.install-primary,.install-close,.drawing-toolbar>button,.selection-chip,.review-card-open,.color-palette button{transition:background-color var(--motion-theme) ease,color var(--motion-theme) ease,border-color var(--motion-theme) ease,box-shadow var(--motion-fast) ease,transform var(--motion-fast) var(--motion-ease),scale var(--motion-fast) var(--motion-ease)}.study-path-card{animation:content-enter .24s var(--motion-ease)}.motion-reveal{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .3s var(--motion-ease),opacity .18s ease}.motion-reveal[data-open=true]{grid-template-rows:1fr;opacity:1}.motion-reveal-clip{min-height:0;overflow:hidden}.motion-reveal-content{transform:translateY(-5px);transition:transform .3s var(--motion-ease)}.motion-reveal[data-open=true]>.motion-reveal-clip>.motion-reveal-content{transform:translateY(0)}.study-question-stage .study-answer{animation:none}@media(prefers-reduced-motion:no-preference){.button:active:not(:disabled),.icon-button:active:not(:disabled),.text-button:active:not(:disabled),.install-now:active:not(:disabled),.install-dismiss:active,.drawing-toolbar>button:active:not(:disabled),.color-palette button:active{scale:.95}.device-tabs button:active,.install-primary:active:not(:disabled),.install-close:active{scale:.97}.chapter-card:active:not(:disabled),.menu-card:active:not(:disabled),.account-card:active{scale:.985}@media(hover:hover)and (pointer:fine){.chapter-card:hover:not(:disabled),.menu-card:hover:not(:disabled),.account-card:hover{transform:translateY(-2px)}.button:hover:not(:disabled),.icon-button:hover:not(:disabled),.install-now:hover:not(:disabled){transform:translateY(-1px)}}}.page-content{width:100%;display:flex;flex-direction:column;animation:page-enter var(--motion-page) var(--motion-ease)}.dialog[open]{animation:dialog-enter .3s var(--motion-ease)}.dialog[open]::backdrop{animation:backdrop-enter .2s ease}.theme-toggle .icon{animation:theme-symbol-enter .42s var(--motion-ease)}.account-card-icon{transition:background-color var(--motion-theme) ease,color var(--motion-theme) ease}.drawing-stage{transition:transform .28s var(--motion-ease)}.image-viewport>img{transition:transform .28s var(--motion-ease),filter .42s var(--motion-ease)}.is-interacting .drawing-stage,.is-wheel-zooming .drawing-stage,.drawing-viewport:active .drawing-stage{transition:none}.image-viewport.is-wheel-zooming>img,.image-viewport.is-interacting>img,.image-viewport:active>img{transition:filter .42s var(--motion-ease)}.question-panel,.answer-section,.install-steps{animation:content-enter .26s var(--motion-ease)}@keyframes page-enter{0%{opacity:0;translate:0 7px;scale:.994}to{opacity:1;translate:0 0;scale:1}}@keyframes content-enter{0%{opacity:0;translate:0 5px}to{opacity:1;translate:0 0}}@keyframes dialog-enter{0%{opacity:0;translate:0 12px;scale:.94}to{opacity:1;translate:0 0;scale:1}}@keyframes backdrop-enter{0%{opacity:0}to{opacity:1}}@keyframes theme-symbol-enter{0%{opacity:0;rotate:-65deg;scale:.6}to{opacity:1;rotate:0deg;scale:1}}@media(prefers-reduced-motion:reduce){:root{--motion-fast: 0ms;--motion-theme: 0ms;--motion-page: 0ms}.page-content,.dialog[open],.dialog[open]::backdrop,.theme-toggle .icon{animation:none}.question-panel,.study-path-card,.study-question-card,.answer-section,.install-steps{animation:none}.drawing-stage,.image-viewport>img{transition:none}.motion-reveal,.motion-reveal-content{transition:none;transform:none}.button,.icon-button,.chapter-card,.menu-card,.account-card,.install-now{transform:none;scale:none}}.app-shell.map-screen{width:min(calc(100% - 36px - 2 * var(--app-safe-inline)),1400px);margin-block:calc(28px + var(--app-safe-top)) calc(100px + var(--app-safe-bottom));justify-content:flex-start;min-height:0;padding-bottom:0}.chapter-map{width:100%;min-width:0}.genetics-map-dialog .dialog-heading{margin-bottom:16px}.genetics-map-options{display:grid;padding-inline:14px;border:1px solid var(--line);border-radius:13px;background:var(--surface)}.genetics-map-options .button{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-width:0;min-height:68px;padding:12px 2px;border:0;border-bottom:1px solid var(--line);border-radius:0;color:var(--ink);background:transparent;white-space:normal;text-align:right;box-shadow:none}.genetics-map-options .button:last-child{border-bottom:0}.genetics-map-options .button:hover,.genetics-map-options .button:focus-visible{background:var(--bg)}.genetics-map-options .button:active{scale:1}.genetics-map-caption{display:grid;gap:3px;line-height:1.7}.genetics-map-caption small{font-size:9px;font-weight:400;color:var(--muted)}.genetics-map-caption strong{font-size:13px;font-weight:400}.genetics-map-pages{display:grid;gap:1px;align-content:center;min-width:38px;font-size:15px;text-align:center;color:var(--muted);font-variant-numeric:tabular-nums}.genetics-map-pages small{font-size:8px}.genetics-map-selection{width:min(100%,420px);margin-inline:auto}.genetics-map-selection>h1{font-size:18px;margin-bottom:18px;text-align:center}.map-heading{display:flex;align-items:center;justify-content:center;gap:12px;text-align:center;margin-bottom:18px}.map-heading h1{font-size:18px;font-weight:600}.map-heading p{color:var(--muted);font-size:11px;margin-top:4px}.map-actions{display:flex;align-items:center;gap:2px}.map-actions a{display:inline-flex;align-items:center;justify-content:center}.map-pagination{display:flex;align-items:center;justify-content:center;gap:3px;margin:0}.map-hint{display:none;text-align:center;color:var(--muted);font-size:10px;margin-top:10px}.map-loading{aspect-ratio:16/9;display:grid;place-content:center}.map-load-status{margin-top:6px;color:var(--muted);text-align:center;font-size:11px;line-height:1.6}.map-load-status:empty{display:none}.chapter-map .drawing-board{padding:8px}.chapter-map:fullscreen{background:var(--bg);padding:12px;overflow:auto}.chapter-map:fullscreen .drawing-board{max-width:min(100%,calc((100dvh - 175px)*16/9));margin-inline:auto}.map-pending-controls{display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:8px}.chapter-map .drawing-zoom{flex-wrap:nowrap;gap:10px}.chapter-map .drawing-scale{display:flex;align-items:center;gap:1px}.chapter-map .drawing-zoom .icon-button{width:25px;height:28px}.chapter-map .drawing-scale>span{min-width:28px;text-align:center}.chapter-map .drawing-scale .text-button{padding-inline:3px}@media(max-width:740px){.app-shell.map-screen{width:calc(100% - 28px - 2 * var(--app-safe-inline));margin-top:calc(28px + var(--app-safe-top))}.map-heading h1{font-size:14px}.map-hint{display:block}.map-heading{margin-bottom:16px}.chapter-map .drawing-board{padding:5px}}.chapter-map .map-page-image{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.chapter-map .drawing-stage canvas{position:relative}@media(orientation:landscape)and (max-height:600px){.app-shell.map-screen{width:calc(100% - 24px - 2 * var(--app-safe-inline));margin:calc(16px + var(--app-safe-top)) auto calc(76px + var(--app-safe-bottom))}.map-heading p,.map-hint{display:none}.map-heading h1{font-size:12px}.map-screen~.bottom-dock{bottom:calc(12px + var(--app-safe-bottom))}.map-heading{margin-bottom:5px;height:22px}.chapter-map .map-pagination{height:28px;gap:2px}.map-page-picker{gap:2px}.map-page-trigger{min-width:32px}.chapter-map .drawing-board{display:flex;flex-direction:row;align-items:center;gap:8px;max-width:min(100%,calc((100dvh - 100px)*16/9 + 132px));margin-inline:auto}.chapter-map .drawing-controls{flex:0 0 116px}.chapter-map .drawing-toolbar{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding-bottom:5px}.chapter-map .drawing-toolbar>button:not(.icon-button){padding:4px;font-size:9px;min-height:29px}.chapter-map .drawing-toolbar .icon{width:12px;height:12px}.chapter-map .drawing-toolbar .icon-button{width:100%;height:27px}.chapter-map .drawing-zoom{flex-direction:column;gap:5px;padding:5px 0 0}.chapter-map .drawing-viewport{flex:1;min-width:0}.chapter-map:fullscreen .drawing-board{max-width:min(100%,calc((100dvh - 60px)*16/9 + 132px))}}.map-page-picker{position:relative;display:flex;align-items:center;gap:5px}.map-page-trigger{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:39px;height:27px;padding:3px 6px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--ink);font:inherit;font-size:10px}.map-page-trigger>.icon{width:10px;height:10px;transform:rotate(-90deg);opacity:.65;transition:transform .14s ease}.map-page-trigger[aria-expanded=true]>.icon{transform:rotate(90deg)}.map-page-total{white-space:nowrap;font-size:10px;color:var(--muted)}.map-pagination button:focus{outline:none;box-shadow:none}.map-pagination button:focus-visible{background:var(--soft)}.map-page-trigger[aria-expanded=true],.map-page-trigger:hover{background:var(--soft)}.map-page-menu{position:absolute;top:calc(100% + 8px);inset-inline-start:50%;translate:50% 0;width:196px;z-index:35;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);box-shadow:0 8px 24px #00000014}.map-page-menu>p{font-size:10px;color:var(--muted);text-align:center;margin-bottom:8px}.map-page-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.map-page-grid>button{height:28px;padding:0;border:1px solid transparent;border-radius:7px;font:inherit;font-size:11px;color:var(--ink);background:var(--bg)}.map-page-grid>button:hover,.map-page-grid>button:focus-visible{border-color:var(--line);background:var(--soft)}.map-page-grid>button[aria-current=page]{color:var(--surface);background:var(--ink)}@media(prefers-reduced-motion:reduce){.map-page-trigger>.icon{transition:none}}@media(orientation:landscape)and (max-height:600px){.map-page-menu{top:50%;inset-inline-start:calc(100% + 8px);translate:0 -50%}}.map-page-stack{position:relative;isolation:isolate;--map-enter-x: -9px}.map-page-stack[data-direction=previous]{--map-enter-x: 9px}.map-sheet{position:relative;z-index:2}.map-sheet--leaving{position:absolute;inset:0;z-index:1;pointer-events:none}.map-sheet--entering{animation:map-sheet-enter .24s cubic-bezier(.2,.75,.25,1) both;pointer-events:none}@keyframes map-sheet-enter{0%{opacity:0;transform:translate(var(--map-enter-x))}to{opacity:1;transform:translate(0)}}@media(prefers-reduced-motion:reduce){.map-sheet--entering{animation:none}}@media(orientation:landscape)and (max-height:600px){.chapter-map .drawing-document-actions .drawing-tools-toggle{width:28px;min-width:28px;height:28px;padding:0}.chapter-map .drawing-document-actions .drawing-tools-toggle>span{display:none}}@media(max-width:740px){.chapter-map .drawing-document-actions .drawing-tools-toggle{width:25px;min-width:25px;height:28px;padding:0}.chapter-map .drawing-document-actions .drawing-tools-toggle>span{display:none}}.app-frame.is-immersive{position:fixed;inset:0;z-index:80;width:100%;height:100dvh;overflow:auto;overscroll-behavior:contain;background:var(--bg)}.is-immersive>.immersive-controls{position:fixed;bottom:calc(14px + var(--app-safe-bottom));left:50%;transform:translate(-50%);z-index:85;display:flex;align-items:center;justify-content:center;gap:7px;max-width:calc(100% - 48px - 2 * var(--app-safe-inline));padding:5px;border:1px solid var(--line);border-radius:13px;background:var(--surface);box-shadow:0 4px 20px #20332610}.immersive-controls .button{min-width:94px;min-height:39px;display:flex;align-items:center;justify-content:center;gap:7px;border:0;font-size:11px;white-space:nowrap}.immersive-controls .icon{width:15px;height:15px}.app-frame.is-immersive>.bottom-dock{display:none}.app-frame.is-immersive .page-content{animation:none;height:100%;min-height:0}.app-frame.is-immersive .app-shell{width:100%;min-height:0;height:100dvh;margin:0;padding:calc(12px + var(--app-safe-top)) calc(12px + var(--app-safe-inline)) calc(80px + var(--app-safe-bottom))}.app-frame.is-immersive .map-heading,.app-frame.is-immersive .map-hint{display:none}.app-frame.is-immersive .chapter-map{display:flex;flex-direction:column;height:100%;min-height:0}.app-frame.is-immersive .map-page-stack{flex:1;min-height:0}.app-frame.is-immersive .map-sheet{height:100%}.app-frame.is-immersive .chapter-map .drawing-board{max-width:min(100%,calc((100dvh - 112px - var(--app-safe-top) - var(--app-safe-bottom))*16/9 + 132px));height:100%;margin-inline:auto;padding:5px}.app-frame.is-immersive .chapter-map .drawing-viewport{max-height:100%}.app-frame.is-immersive .drawing-screen--viewer .zoom-image{height:100%;width:100%}.app-frame.is-immersive .drawing-screen--viewer .image-viewport{height:100%;min-height:0}.app-frame.is-immersive .map-loading{height:100%;aspect-ratio:auto}.app-frame.is-immersive .map-load-status{flex:0 0 auto;margin-top:2px;font-size:10px}.drawing-study-view:fullscreen{display:grid;grid-template-rows:minmax(0,1fr);width:100%;height:100dvh;min-height:0;overflow:hidden;padding:calc(12px + var(--app-safe-top)) calc(12px + var(--app-safe-inline)) calc(12px + var(--app-safe-bottom));background:var(--bg)}.drawing-study-view:fullscreen .zoom-image{width:100%;height:100%;min-height:0;margin:0}.drawing-study-view:fullscreen .image-viewport{width:100%;height:100%;min-height:0}.drawing-study-view:fullscreen .image-controls{bottom:12px;right:12px;max-width:calc(100% - 24px)}.app-frame.is-immersive .drawing-study-view{height:100%;min-height:0}.welcome-screen{min-height:100svh;min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(40px,8vh,76px);padding:calc(28px + var(--app-safe-top)) calc(28px + var(--app-safe-inline)) calc(28px + var(--app-safe-bottom));background:var(--bg);text-align:center;animation:welcome-arrive .36s var(--motion-ease) both}.welcome-identity{display:flex;flex-direction:column;align-items:center}.welcome-emblem{padding:10px;border:1px solid var(--line);border-radius:32px;background:var(--surface);margin-bottom:25px}.welcome-emblem img{display:block;border-radius:23px;width:104px;height:104px}.welcome-subject{margin:0 0 10px;font-size:11px;color:var(--muted)}.welcome-screen h1{margin:0;color:var(--ink);font-size:clamp(30px,6vw,38px);line-height:1.5;font-weight:600}.welcome-rule{width:26px;height:1px;background:var(--accent);margin:20px 0}.welcome-supervision{margin:0 0 7px;font-size:11px;color:var(--muted)}.welcome-teacher{margin:0;font-size:18px;font-weight:400;color:var(--ink)}.welcome-loading{width:min(240px,100%);min-height:40px}.welcome-progress{height:4px;border-radius:8px;background:var(--line);overflow:hidden}.welcome-progress span{display:block;height:100%;width:100%;border-radius:inherit;background:var(--accent);transform-origin:right;transition:transform 80ms linear}.welcome-loading>p{color:var(--muted);font-size:11px;margin:14px 0 0}.welcome-error p{color:var(--danger);font-size:12px;line-height:1.9;margin:0 0 14px}@keyframes welcome-arrive{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@media(max-height:500px){.welcome-screen{gap:22px;padding-block:calc(18px + var(--app-safe-top)) calc(18px + var(--app-safe-bottom))}.welcome-emblem{padding:6px;border-radius:22px;margin-bottom:12px}.welcome-emblem img{width:64px;height:64px;border-radius:16px}.welcome-rule{margin-block:10px}}@media(prefers-reduced-motion:reduce){.welcome-screen{animation:none}.welcome-progress span{transition:none}}
