@font-face{font-family:Atkinson Hyperlegible Next;src:url(/fonts/AtkinsonHyperlegibleNext-400-latin.woff2)format("woff2");font-weight:400;font-display:swap}@font-face{font-family:Atkinson Hyperlegible Next;src:url(/fonts/AtkinsonHyperlegibleNext-500-latin.woff2)format("woff2");font-weight:500;font-display:swap}@font-face{font-family:Atkinson Hyperlegible Next;src:url(/fonts/AtkinsonHyperlegibleNext-600-latin.woff2)format("woff2");font-weight:600;font-display:swap}@font-face{font-family:Atkinson Hyperlegible Next;src:url(/fonts/AtkinsonHyperlegibleNext-700-latin.woff2)format("woff2");font-weight:700;font-display:swap}body{background:var(--bg)}.app-shell{font-family:var(--font-ui);background:var(--bg);color:var(--ink);font-size:15px;line-height:1.5}.app-shell button,.app-shell input,.app-shell textarea,.app-shell select{font-family:var(--font-ui)}.app-shell h1,.app-shell h2,.app-shell h3,.brand-mark,.reference-head h2,.recovery-card h1,.recovery-icon,.exam-card h3,.study-dialog-head h2,.section-title{font-family:var(--font-head);letter-spacing:-.01em;font-weight:800}.eyebrow,.appearance-label{font-family:var(--font-ui);letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-size:12px;font-weight:600}.topbar{background:var(--chrome);border-bottom:1px solid var(--line);flex-basis:68px;height:68px}.brand-mark{background:var(--brand);color:#fff;width:38px;height:38px;font-size:18px;font-family:var(--font-head);border:0;border-radius:18px;transform:none}.brand-name{font:800 17px/1.2 var(--font-head);letter-spacing:-.01em}.brand-caption{color:var(--muted);font-size:13px}.document-title{color:var(--muted);letter-spacing:0;font-size:14px}.live-dot,.nav-footer-dot{background:var(--brand)}.save-indicator{color:var(--muted);font-size:13px}.save-glyph{color:var(--brand);font-size:15px}.save-error,.save-error .save-glyph{color:var(--danger)}.icon-button,.small-icon-button{color:var(--muted);border-radius:18px;min-width:36px;min-height:36px}.icon-button:hover,.small-icon-button:hover{background:var(--accent-soft);color:var(--accent-deep)}.app-shell .primary-button,.app-shell .phase3-primary,.app-shell .study-content .primary-button{background:var(--accent);color:var(--on-accent);border:0;border-bottom:1px solid var(--line);border-radius:var(--r-md);min-height:46px;font:700 15px/1.3 var(--font-ui);letter-spacing:.005em;cursor:pointer;padding:11px 20px}@media (prefers-reduced-motion:no-preference){.app-shell .primary-button,.app-shell .phase3-primary,.app-shell .study-content .primary-button{transition:transform .15s var(--ease),border-bottom-width .15s var(--ease),filter .15s}}.app-shell .primary-button:hover:not(:disabled),.app-shell .phase3-primary:hover:not(:disabled){filter:brightness(1.06)}.app-shell .primary-button:active:not(:disabled),.app-shell .phase3-primary:active:not(:disabled){border-bottom-width:1px}@media (prefers-reduced-motion:no-preference){.app-shell .primary-button:active:not(:disabled),.app-shell .phase3-primary:active:not(:disabled){transform:scale(.98)}}.app-shell .primary-button:disabled,.app-shell .phase3-primary:disabled{opacity:.5;cursor:default}.app-shell .secondary-button,.app-shell .phase3-secondary,.app-shell .study-open-button,.app-shell .study-content .secondary-button{background:var(--paper);color:var(--ink);border:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:var(--r-md);min-height:44px;font:700 14px/1.3 var(--font-ui);cursor:pointer;padding:9px 16px}@media (prefers-reduced-motion:no-preference){.app-shell .secondary-button,.app-shell .phase3-secondary,.app-shell .study-open-button,.app-shell .study-content .secondary-button{transition:transform .15s var(--ease),border-bottom-width .15s var(--ease),border-color .15s,color .15s}}.app-shell .secondary-button:hover:not(:disabled),.app-shell .phase3-secondary:hover:not(:disabled),.app-shell .study-open-button:hover{border-color:var(--accent);color:var(--accent-deep)}.app-shell .secondary-button:active:not(:disabled),.app-shell .phase3-secondary:active:not(:disabled),.app-shell .study-open-button:active{border-bottom-width:1px}@media (prefers-reduced-motion:no-preference){.app-shell .secondary-button:active:not(:disabled),.app-shell .phase3-secondary:active:not(:disabled),.app-shell .study-open-button:active{transform:scale(.98)}}.app-shell .study-open-button{min-height:40px;padding:6px 16px}.section-nav{background:var(--chrome);border-right:1px solid var(--line);padding:22px 12px 14px}.nav-list{gap:4px}.nav-item{border-radius:var(--r-md);min-height:44px;color:var(--muted);padding:8px 12px;font-size:14px}@media (prefers-reduced-motion:no-preference){.nav-item{transition:background .15s,color .15s}}.nav-item:hover{background:var(--bg);color:var(--ink)}.nav-item.active{background:var(--accent-soft);color:var(--accent-deep)}.nav-item.active .nav-label{font-weight:700}.nav-label{font-size:14px}.nav-index{font-family:var(--font-num);opacity:.8;font-size:15px;font-weight:600}.nav-check{color:var(--brand);font-size:18px}.nav-footer{border-top:1px solid var(--line);color:var(--muted);font-size:13px}.nav-footer>span:last-child{border-color:var(--line);border-radius:18px;font-size:12px}.nav-model-label{color:var(--accent-deep);font-size:12px}.editor-area{background:var(--bg)}.editor-toolbar{border-bottom:1px solid var(--line);font-size:13px}.breadcrumb strong{color:var(--ink);font-weight:600}.breadcrumb span{color:var(--muted)}.editor-tools,.tool-hint,.font-size-label{font-size:13px}.font-control{color:var(--accent-deep);border-radius:18px;min-width:32px;min-height:32px;font-weight:700}.font-control:hover:not(:disabled){background:var(--accent-soft)}.notebook,.paper-texture .notebook,.theme-dark.paper-texture .notebook{background:var(--paper);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:none;background-image:none;padding:36px clamp(24px,5vw,56px) 18px}.notebook:before{display:none}.paper-meta,.paper-date,.paper-footer{color:var(--muted);letter-spacing:0;font-size:13px}.paper-kicker{letter-spacing:.08em;text-transform:uppercase;font-size:12px;font-weight:600}.paper-kicker span{color:var(--brand)}.section-title{color:var(--ink);margin:18px 0 12px;font-size:clamp(26px,2.6vw,34px);line-height:1.2}.title-period{color:var(--brand)}.section-rule{background:var(--rule);margin-bottom:20px}.section-rule span{border-top:3px solid var(--brand);border-radius:2px;width:44px;top:-1px}.notebook-editor{font-family:var(--font-ui);letter-spacing:0;color:var(--ink);font-size:17px;line-height:1.75}.notebook-editor::placeholder{color:var(--muted);opacity:.8}.notebook-editor:focus-visible{outline:none}.paper-footer{border-top:1px solid var(--rule)}.paper-footer span:first-child{color:var(--accent-deep);font-weight:600}.app-footer{color:var(--muted);flex-wrap:wrap;flex:none;gap:2px 16px;height:auto;min-height:26px;padding-block:6px;font-size:13px}.app-footer span{white-space:nowrap}.app-footer i{color:var(--brand)}.toast-note{border-radius:var(--r-md);background:var(--ink);color:var(--bg);border:0;font-size:14px}.reference-panel{background:var(--chrome);border-left:1px solid var(--line)}.reference-head h2{font-size:20px;line-height:1.25}.search-box{border-radius:var(--r-md);border:1px solid var(--line);background:var(--paper);height:44px}.search-box:focus-within{border-color:var(--accent)}.search-box input{color:var(--ink);font-size:14px}.search-box input:focus-visible{outline:none}.reference-content pre{font-family:var(--font-ui);color:var(--muted);font-size:14px;line-height:1.7}.reference-note{border:1px solid var(--line);border-radius:var(--r-md);background:var(--bg)}.reference-note>span{color:var(--accent-deep)}.reference-note p{color:var(--muted);font-size:13px}.appearance-bar{background:var(--chrome);border-top:1px solid var(--line);flex-basis:60px;height:60px}.theme-options{gap:6px}.theme-options button{border-radius:var(--r-sm);color:var(--muted);height:38px;padding-inline:14px;font-size:14px;font-weight:600}.theme-options button:hover{background:var(--bg);color:var(--ink)}.theme-options button.selected{background:var(--accent-soft);color:var(--accent-deep);border-color:#0000}.theme-swatch{border:1px solid var(--line);border-radius:50%;flex-basis:14px;width:14px;height:14px}.toggle-option{color:var(--muted);font-size:14px}.toggle{background:var(--edge-neutral);flex-basis:34px;width:34px;height:20px}.toggle:after{background:#fff;width:14px;height:14px;top:3px;left:3px}.toggle-option input:checked+.toggle{background:var(--accent)}.toggle-option input:checked+.toggle:after{transform:translate(14px)}.study-overlay{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);z-index:44;background:#0a0c0d8c}.study-dialog{background:var(--chrome);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:none}.study-dialog-head{border-bottom:1px solid var(--line)}.study-dialog-head h2{font-size:24px}.study-tabs{border-bottom:1px solid var(--line);gap:4px}.study-tabs button{color:var(--muted);padding:11px 14px;font-size:14px;font-weight:600}.study-tabs button:hover{color:var(--ink)}.study-tabs button[aria-selected=true]{color:var(--accent-deep);border-bottom:1px solid var(--line)}.study-content{font-size:14px;line-height:1.65}.study-content>p{color:var(--muted)}.demo-banner{border:1px solid var(--accent);border-radius:var(--r-md);background:var(--accent-soft)}.demo-banner strong{color:var(--accent-deep)}.fixture-hint,.correction-run,.exam-card,.issue-card{border:1px solid var(--line);border-radius:var(--r-md);background:var(--paper);box-shadow:none}.fixture-hint code{font-size:13px}.fixture-hint small,.issue-card small,.run-head span,.issue-category{font-size:12px}.study-status{border:1px solid color-mix(in srgb,var(--brand) 35%,transparent);border-radius:var(--r-sm);background:var(--accent-soft)}.exam-card h3{font-size:18px}.exam-clock{font-family:var(--font-num);color:var(--accent-deep);font-size:20px}.notebook-filters input,.notebook-filters select,.exam-card select{border:1px solid var(--line);border-radius:var(--r-sm);background:var(--paper);color:var(--ink);min-height:42px;font-size:14px}.notebook-filters input:focus-visible,.notebook-filters select:focus-visible,.exam-card select:focus-visible,.phase3-name:focus-visible{border-color:var(--accent);outline:none}.app-shell.app-shell .phase3{--p3-accent:var(--accent);--p3-accent-deep:var(--accent-deep);--p3-surface:var(--paper);--p3-text:var(--ink);--p3-muted:var(--muted);--p3-line:var(--line);font-family:var(--font-ui);font-size:14px;line-height:1.6}.app-shell .phase3-stat,.app-shell .phase3-card{border-radius:var(--r-md);box-shadow:none}.app-shell .phase3-stat small{letter-spacing:.06em;text-transform:uppercase;font-size:12px;font-weight:600}.app-shell .phase3-stat strong{font-family:var(--font-num);overflow-wrap:anywhere;font-size:clamp(20px,4.6vw,26px);font-weight:600;line-height:1.2}.app-shell .phase3-card h3{font-size:16px}.app-shell .phase3-secondary{border:1px solid var(--line);border-radius:var(--r-sm);color:var(--ink);min-height:40px;font-weight:600}.app-shell .phase3-badge{border-radius:var(--r-md);border:1px solid var(--line)}.app-shell .phase3-badge.earned{border-color:var(--brand);background:var(--accent-soft);color:var(--accent-deep)}.app-shell .phase3-badge strong{font-size:14px}.app-shell .phase3-badge small,.app-shell .phase3-note{font-size:12px}.app-shell .phase3-list-item{border-radius:var(--r-md)}.app-shell .phase3-error{color:var(--danger)}.backup-controls{font-family:var(--font-ui);border-radius:var(--r-md);background:var(--paper);border:1px solid var(--line)}.backup-controls h2{font-size:17px}.backup-controls-note,.backup-controls-message{font-size:13px}.backup-controls-button{border-radius:var(--r-md);min-height:44px;font:700 14px/1.3 var(--font-ui)}.recovery-card{background:var(--paper);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:none}.recovery-icon{color:var(--brand);font-size:28px}.recovery-card h1{font-size:26px}.recovery-card p{color:var(--muted);font-size:15px}.recovery-card small{font-size:13px}.reload-confirm{border:1px solid var(--accent);border-radius:var(--r-md)}@media (prefers-reduced-motion:reduce){.app-shell *{transition:none!important;animation:none!important}}.app-shell.app-shell .phase3-primary{color:var(--on-accent)}.app-shell .study-dialog-head,.app-shell .study-tabs{flex:none}.app-shell .study-tabs{align-items:stretch;padding-top:8px}.app-shell .study-tabs button{flex:none;line-height:1.3}.app-shell .study-tabs button:focus-visible{outline-offset:-3px;border-radius:var(--r-sm)}.app-shell .study-content{flex:auto;min-height:0}.app-shell .study-tabs{border-bottom:1px solid var(--line);grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin:0;padding:8px 22px;display:grid;overflow:visible}.app-shell .study-tabs button{text-align:center;white-space:nowrap;border:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:var(--r-sm);background:var(--paper);min-height:38px;color:var(--muted);font:600 14px/1.3 var(--font-ui);cursor:pointer;flex:auto;padding:6px 14px}@media (prefers-reduced-motion:no-preference){.app-shell .study-tabs button{transition:background .15s,color .15s,border-color .15s}}.app-shell .study-tabs button:hover{color:var(--ink);border-color:var(--edge-neutral)}.app-shell .study-tabs button[aria-selected=true]{background:var(--accent-soft);color:var(--accent-deep);border-color:var(--accent);border-bottom:1px solid var(--line);font-weight:700}.app-shell .study-tabs button{white-space:normal;overflow-wrap:anywhere;min-width:0;padding-inline:4px;font-size:13.5px;line-height:1.2}@media (width<=860px){.app-shell .study-tabs{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:10px}.app-shell .study-tabs button{padding:6px 2px;font-size:12.5px}}@media (width<=340px){.app-shell .study-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (height<=720px){.app-shell .study-dialog-head{padding-block:10px}.app-shell .study-dialog-head .eyebrow{display:none}.app-shell .study-tabs{padding-block:6px}}.app-shell .topbar{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px;padding-inline:24px;display:grid}.app-shell .brand-lockup{min-width:0}.app-shell .document-title{white-space:nowrap;text-overflow:ellipsis;text-align:center;min-width:0;position:static;overflow:hidden;transform:none}.app-shell .top-actions{flex:none;justify-content:flex-end;align-items:center;gap:10px;min-width:0;display:flex}.app-shell .top-actions .secondary-button{min-height:40px;padding:6px 16px;font-size:14px}.app-shell .reference-toggle[aria-pressed=true]{background:var(--accent-soft);border-color:var(--accent);color:var(--accent-deep)}.app-shell .reference-toggle:disabled{opacity:.45}.app-shell .appearance-menu{position:relative}.app-shell .appearance-menu>summary{align-items:center;list-style:none;display:flex}.app-shell .appearance-menu>summary::-webkit-details-marker{display:none}.app-shell .appearance-menu[open]>summary{border-color:var(--accent);color:var(--accent-deep)}.app-shell .am-short{display:none}.app-shell .appearance-panel{z-index:20;background:var(--chrome);border:1px solid var(--line);border-radius:var(--r-lg);width:min(300px,100vw - 24px);box-shadow:none;flex-direction:column;gap:12px;padding:18px;display:flex;position:absolute;top:calc(100% + 10px);right:0}.app-shell .appearance-panel .theme-options{grid-template-columns:1fr 1fr;gap:8px;display:grid}.app-shell .appearance-panel .theme-options button{border:1px solid var(--line);background:var(--paper);justify-content:center;height:44px}.app-shell .appearance-panel .theme-options button.selected{border-color:var(--accent)}.app-shell .appearance-panel .toggle-option{min-height:40px}.app-shell .workspace{grid-template-columns:272px minmax(0,1fr)}.app-shell .workspace.with-reference{grid-template-columns:272px minmax(0,1fr) 330px}.app-shell .nav-progress{padding:0 8px 18px}.app-shell .nav-progress-top{justify-content:space-between;align-items:baseline;margin-bottom:10px;display:flex}.app-shell .nav-progress-count{font:600 18px/1 var(--font-num);color:var(--accent-deep)}.app-shell .progress-track{background:var(--rule);border-radius:99px;height:10px;overflow:hidden}.app-shell .progress-track i{background:var(--brand);border-radius:99px;height:100%;display:block}@media (prefers-reduced-motion:no-preference){.app-shell .progress-track i{transition:width .25s var(--ease)}}.app-shell .section-select{display:none}.app-shell .nav-item{grid-template-columns:30px minmax(0,1fr) 22px;align-items:center}.app-shell .nav-label{white-space:normal;text-overflow:clip;line-height:1.3;overflow:visible}.app-shell .nav-item.done .nav-index{color:var(--brand);opacity:1}.app-shell .nav-item.active.done .nav-index{color:var(--accent-deep)}.app-shell .section-pager{justify-content:space-between;gap:12px;margin-top:14px;display:flex}.app-shell .section-pager .secondary-button,.app-shell .section-pager .primary-button{min-height:44px;padding:8px 18px}@media (width<=1120px){.app-shell .brand-caption{display:none}.app-shell .workspace,.app-shell .workspace.with-reference{grid-template-columns:232px minmax(0,1fr)}.app-shell .tool-hint{display:none}.app-shell .reference-panel{z-index:12;width:min(360px,92vw);box-shadow:none;position:fixed;top:68px;bottom:0;right:0;overflow:auto}}@media (width<=980px){.app-shell .brand-name{display:none}.app-shell .brand-lockup{flex:none}}@media (width<=860px){.app-shell{height:auto;min-height:100dvh;overflow:visible}.app-shell .topbar{gap:8px;padding-inline:14px}.app-shell .brand-caption,.app-shell .brand-name{display:none}.app-shell .brand-lockup{flex:none}.app-shell .save-indicator{gap:0;font-size:0}.app-shell .save-glyph{font-size:18px}.app-shell .top-actions{gap:8px}.app-shell .top-actions .secondary-button{padding:6px 12px;font-size:13px}.app-shell .workspace,.app-shell .workspace.with-reference{flex-direction:column;min-height:0;display:flex;overflow:visible}.app-shell .section-nav{border-right:0;border-bottom:1px solid var(--line);flex:none;padding:14px 16px 16px}.app-shell .nav-list,.app-shell .nav-footer{display:none}.app-shell .section-select{flex-direction:column;gap:8px;margin-top:2px;display:flex}.app-shell .section-select select{border:1px solid var(--line);border-radius:var(--r-md);background:var(--paper);width:100%;min-height:48px;color:var(--ink);font:600 16px/1.3 var(--font-ui);padding:10px 14px}.app-shell .section-select select:focus-visible{border-color:var(--accent);outline:none}.app-shell .nav-progress{padding:0 0 14px}.app-shell .editor-area{flex:none;min-height:0}.app-shell .notebook{width:calc(100% - 24px);height:auto;min-height:420px;max-height:none;margin:14px auto;padding:24px 20px 16px}.app-shell .notebook-editor{min-height:240px}.app-shell .section-pager .secondary-button,.app-shell .section-pager .primary-button{flex:1}.app-shell .editor-toolbar{flex-wrap:wrap;gap:6px;height:auto;min-height:48px;padding-inline:16px}.app-shell .app-footer{padding-inline:16px}.app-shell .reference-panel{z-index:12;border:1px solid var(--line);border-radius:var(--r-lg) var(--r-lg) 0 0;width:auto;max-height:72dvh;box-shadow:none;border-bottom:0;position:fixed;inset:auto 0 0;overflow:auto}}@media (width<=640px){.app-shell .top-home-btn{display:none}}@media (width<=520px){.app-shell .am-label{display:none}.app-shell .am-short{font-weight:700;display:inline}.app-shell .topbar{gap:6px;padding-inline:10px}.app-shell .top-actions{gap:4px}.app-shell .top-actions .secondary-button,.app-shell .top-actions .study-open-button{padding:6px 9px;font-size:13px}}.app-shell .section-pager .secondary-button,.app-shell .section-pager .primary-button{box-sizing:border-box;height:48px;min-height:48px;line-height:1}.app-shell .paper-footer span:first-child{white-space:nowrap}.app-shell .section-pager .primary-button,.app-shell .section-pager .secondary-button{margin:0}.app-shell .exam-banner{border:1px solid var(--accent);border-radius:var(--r-md);background:var(--accent-soft);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin:14px clamp(12px,3vw,40px) 0;padding:12px 16px;display:flex}.app-shell .exam-banner-info{flex-wrap:wrap;align-items:baseline;gap:12px;display:flex}.app-shell .exam-banner-info strong{font:800 16px/1 var(--font-head);color:var(--accent-deep)}.app-shell .exam-banner .exam-clock{font:600 26px/1 var(--font-num);color:var(--accent-deep)}.app-shell .exam-banner-note{color:var(--muted);font-size:13px}.app-shell .exam-banner-actions{flex-wrap:wrap;gap:8px;display:flex}.app-shell .exam-banner-actions .primary-button,.app-shell .exam-banner-actions .secondary-button{min-height:42px;margin:0;padding:6px 14px;font-size:14px}.app-shell .danger-button{color:var(--danger);border-color:var(--line)}.app-shell .danger-button:hover:not(:disabled){border-color:var(--danger);color:var(--danger)}@media (width<=860px){.app-shell .exam-banner-actions{width:100%}.app-shell .exam-banner-actions button{flex:auto}}.app-shell .phase3 .p3-label{letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-size:12px;font-weight:700;display:block}.app-shell .p3-hero{border:1px solid var(--line);border-radius:var(--r-lg);background:var(--paper);box-shadow:none;grid-template-columns:auto 1fr auto;align-items:center;gap:18px;margin-bottom:12px;padding:18px;display:grid}.app-shell .p3-ring{flex:none;width:120px;height:120px;position:relative}.app-shell .p3-ring svg{width:100%;height:100%;transform:rotate(-90deg)}.app-shell .p3-ring circle{fill:none;stroke-width:10px;stroke-linecap:round}.app-shell .p3-ring-track{stroke:var(--line)}.app-shell .p3-ring-fill{stroke:var(--brand)}@media (prefers-reduced-motion:no-preference){.app-shell .p3-ring-fill{transition:stroke-dashoffset .25s cubic-bezier(.2,.8,.2,1)}}.app-shell .p3-ring-center{flex-direction:column;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.app-shell .p3-ring-center strong{font-family:var(--font-num);font-size:34px;font-weight:600;line-height:1}.app-shell .p3-ring-center small{letter-spacing:.1em;color:var(--muted);font-size:12px;font-weight:700}.app-shell .p3-rank{font-family:var(--font-head);margin:2px 0;font-size:24px;font-weight:800;display:block}.app-shell .p3-sub{color:var(--muted);font-size:13px}.app-shell .p3-streak{text-align:center;border-radius:var(--r-md);background:var(--accent-soft);padding:10px 16px}.app-shell .p3-streak strong{font-family:var(--font-num);color:var(--accent-deep);font-size:36px;font-weight:600;line-height:1;display:block}.app-shell .p3-streak small{color:var(--muted);font-size:12px}.app-shell .p3-insight{border:1px solid color-mix(in srgb,var(--brand) 40%,var(--line));border-radius:var(--r-md);background:var(--paper);margin-bottom:12px;padding:12px 16px}.app-shell .p3-insight strong{font-size:15px}.app-shell .p3-insight p{color:var(--muted);margin:4px 0 0;font-size:14px;line-height:1.5}.app-shell .phase3-badges{grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px;display:grid}.app-shell .phase3-badge{text-align:center;opacity:.75;flex-direction:column;align-items:center;gap:4px;padding:12px 8px;display:flex}.app-shell .phase3-badge.earned{opacity:1}.app-shell .p3-hex{color:#fff;background:var(--line);clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);place-items:center;width:44px;height:50px;font-weight:800;display:grid}.app-shell .phase3-badge.earned .p3-hex{background:var(--brand)}.app-shell .time-bar{background:var(--line);border-radius:99px;width:100%;min-width:120px;height:8px;overflow:hidden}.app-shell .time-bar span{background:var(--brand);border-radius:99px;height:100%;display:block}@media (prefers-reduced-motion:no-preference){.app-shell .time-bar span{transition:width .25s linear}}.app-shell .time-bar span.low{background:var(--danger)}.app-shell .exam-banner-info{flex-wrap:wrap}.app-shell .exam-live{gap:10px;display:grid}.app-shell .exam-big{font-family:var(--font-num);font-size:56px;font-weight:600;line-height:1}.app-shell .exam-big small{color:var(--muted);font-size:13px;font-family:var(--font-ui);margin-left:8px}.app-shell .chip-demo{background:var(--accent);color:var(--on-accent);letter-spacing:.08em;border-radius:99px;margin-right:8px;padding:2px 8px;font-size:12px;font-weight:800;display:inline-block}.app-shell .nb-summary{color:var(--muted);gap:16px;margin-bottom:10px;font-size:13px;display:flex}.app-shell .nb-summary strong{font-family:var(--font-num);color:var(--ink);margin-right:4px;font-size:22px}.app-shell .correction-run{padding:14px 16px}.app-shell .issue-card del{color:var(--danger)}@media (width<=560px){.app-shell .p3-hero{grid-template-columns:auto 1fr}.app-shell .p3-streak{grid-column:1/-1}.app-shell .p3-ring{width:96px;height:96px}.app-shell .p3-ring-center strong{font-size:28px}}@media (prefers-reduced-motion:reduce){.app-shell .p3-ring-fill,.app-shell .time-bar span{transition:none}}.app-shell .pixel-scene{border-radius:var(--r-md);aspect-ratio:8/3;width:100%;height:auto;display:block}.app-shell .pixel-scene.compact{aspect-ratio:8/3;max-width:260px;margin:0 auto}.app-shell .p3-welcome{border-radius:var(--r-lg);border:1px solid var(--line);margin-bottom:12px;position:relative;overflow:hidden}.app-shell .p3-welcome .pixel-scene{aspect-ratio:8/3;border-radius:0}.app-shell .p3-welcome-card{border-radius:var(--r-md);-webkit-backdrop-filter:blur(14px);color:#fff;text-shadow:0 1px 2px #00000073;background:#ffffff24;border:1px solid #ffffff4d;gap:2px;padding:10px 14px;display:grid;position:absolute;bottom:12px;left:12px;right:12px}.app-shell .p3-welcome-card strong{font-family:var(--font-head);font-size:16px}.app-shell .p3-welcome-card span{font-size:13px}.app-shell .empty-state{text-align:center;color:var(--muted);justify-items:center;gap:8px;padding:12px 0;display:grid}.app-shell .p3-hero{position:relative}.app-shell .p3-celebrate{z-index:2;border-radius:var(--r-lg);background:color-mix(in srgb,var(--paper) 92%,var(--brand));text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:2px;display:flex;position:absolute;inset:0}@media (prefers-reduced-motion:no-preference){.app-shell .p3-celebrate{animation:.22s cubic-bezier(.2,.8,.2,1) p3-pop}}.app-shell .p3-celebrate strong{font-family:var(--font-head);color:var(--accent-deep);font-size:22px}.app-shell .p3-celebrate span{font-family:var(--font-num);font-size:30px;font-weight:600}.app-shell .p3-confetti{border-radius:inherit;pointer-events:none;position:absolute;inset:0;overflow:hidden}.app-shell .p3-confetti i{top:-8px;left:calc(var(--i)*6.4% + 2%);background:var(--brand);width:8px;height:8px;position:absolute}@media (prefers-reduced-motion:no-preference){.app-shell .p3-confetti i{animation:.25s cubic-bezier(.2,.8,.2,1) both p3-fall;animation-delay:calc(var(--i)*40ms)}}.app-shell .p3-confetti i:nth-child(3n){background:#f6d77a}.app-shell .p3-confetti i:nth-child(3n+1){background:#2f7ce0}@keyframes p3-pop{0%{opacity:0;transform:scale(.96)}to{opacity:1;transform:none}}@keyframes p3-fall{0%{transform:translateY(0)rotate(0)}to{opacity:0;transform:translateY(200px)rotate(200deg)}}@media (prefers-reduced-motion:no-preference){.app-shell [role=tabpanel]:not([hidden]){animation:.18s cubic-bezier(.2,.8,.2,1) p3-pop}}.app-shell.reduce-motion .p3-confetti,.app-shell.reduce-motion .p3-celebrate{animation:none}.app-shell.reduce-motion .p3-confetti{display:none}.app-shell .nav-item{flex:none;height:auto;min-height:44px}.app-shell .brand-mark{background:var(--accent)}.app-shell .save-glyph{color:var(--accent-deep)}.app-shell .font-control{min-width:40px;min-height:40px}.app-shell :focus-visible{outline:3px solid var(--accent);outline-offset:2px}.app-shell .brand-mark,.app-shell .backup-controls-button:not(.backup-controls-button-secondary){color:var(--on-accent)}.app-shell .app-footer i,.app-shell .save-indicator+*{color:var(--muted);opacity:1}.app-shell .p3-welcome-card{background:#05122d8c}@media (width<=860px){.app-shell .appearance-menu{position:static}.app-shell .appearance-panel{width:auto;position:absolute;top:calc(100% + 6px);left:12px;right:12px}}.app-shell .p3-welcome-card{-webkit-backdrop-filter:none;text-shadow:none;background:#040e26d1;border-color:#ffffff40}.app-shell .ref-source{gap:6px;margin-bottom:12px;display:flex}.app-shell .ref-source button{border:1px solid var(--line);border-radius:var(--r-md);background:var(--paper);min-height:36px;color:var(--muted);font:600 13px var(--font-ui);cursor:pointer;flex:1}.app-shell .ref-source button.selected{border-color:var(--accent);color:var(--accent-deep);background:var(--accent-soft)}.app-shell .ref-case-select{flex-direction:column;gap:4px;margin-bottom:12px;display:flex}.app-shell .ref-case-select select{border:1px solid var(--line);border-radius:var(--r-md);background:var(--paper);width:100%;min-height:44px;color:var(--ink);font:600 16px var(--font-ui);padding:0 10px}.app-shell .ref-case-select select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.app-shell .reference-content{flex:1;min-height:0;overflow:auto}.app-shell .ref-patient-note{color:var(--muted);font:600 12px var(--font-ui);margin:0 0 10px}.app-shell .ref-empty{color:var(--muted);font:14px/1.6 var(--font-ui);margin:0}.app-shell .ref-section{margin-bottom:18px}.app-shell .ref-section h3{font:700 13px var(--font-ui);letter-spacing:.02em;color:var(--accent-deep);background:var(--chrome);z-index:1;margin:0 0 8px;padding:4px 0;position:sticky;top:0}.app-shell .ref-turn{gap:6px;margin-bottom:12px;display:grid}.app-shell .ref-line{border-radius:var(--r-md);font:14px/1.55 var(--font-ui);overflow-wrap:anywhere;color:var(--ink);margin:0;padding:8px 10px}.app-shell .ref-arzt{background:var(--accent-soft);border:1px solid color-mix(in srgb,var(--accent) 35%,transparent)}.app-shell .ref-patient{background:var(--paper);border:1px solid var(--line);margin-left:10px}.app-shell .ref-who{font:700 12px var(--font-ui);letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:2px;display:block}.app-shell .ref-line mark{background:color-mix(in srgb,var(--accent) 35%,transparent);color:inherit;border-radius:3px;padding:0 1px}.app-shell .secondary-button:disabled,.app-shell .phase3-secondary:disabled,.app-shell .study-open-button:disabled{opacity:.5;cursor:not-allowed;transform:none}.brand-home{cursor:pointer;color:inherit;font:inherit;text-align:left;background:0 0;border:0;border-radius:18px;margin:-4px -6px;padding:4px 6px}@media (prefers-reduced-motion:no-preference){.brand-home{transition:background .15s}}.brand-home:hover:not(:disabled){background:var(--accent-soft,#0000000d)}.brand-home:disabled{cursor:default;opacity:.7}.brand-home:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.sr-only{clip:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.app-shell .local-review{gap:12px;display:grid}.app-shell .lr-head{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.app-shell .lr-head h3,.app-shell .lr-compare h4,.app-shell .lr-history-title{margin:0;font-size:17px}.app-shell .lr-head .chip-demo{margin-right:0}.app-shell .lr-intro,.app-shell .lr-note,.app-shell .lr-compare p{color:var(--muted);margin:0;font-size:14px;line-height:1.55}.app-shell .lr-summary{color:var(--accent-deep);margin:0;font-weight:700}.app-shell .lr-list{gap:8px;margin:0;padding:0;list-style:none;display:grid}.app-shell .lr-item{border:1px solid var(--line);border-radius:var(--r-md);background:var(--paper);justify-items:start;gap:4px;padding:10px 12px;display:grid}.app-shell .lr-kind{font:700 12px var(--font-ui);letter-spacing:.08em;text-transform:uppercase;color:var(--accent-deep)}.app-shell .lr-change{overflow-wrap:anywhere;margin:0}.app-shell .lr-change del{color:var(--danger)}.app-shell .lr-why{color:var(--muted);margin:0;font-size:14px}.app-shell .lr-empty{justify-items:start;gap:10px;display:grid}.app-shell .lr-empty p{margin:0}.app-shell .lr-compare{border:1px solid var(--line);border-radius:var(--r-md);background:var(--paper);gap:8px;padding:12px;display:grid}.app-shell .lr-compare ul{gap:4px;margin:6px 0 0;padding-left:18px;display:grid}.app-shell .lr-ai{justify-items:start;gap:6px;margin-top:14px;display:grid}.app-shell .demo-details{border:1px dashed var(--line);border-radius:var(--r-md);margin-top:14px;padding:8px 12px}.app-shell .demo-details>summary{cursor:pointer;align-items:center;min-height:32px;font-weight:600;display:flex}.app-shell .demo-details[open]>summary{margin-bottom:8px}.app-shell .demo-details>*+*{margin-top:10px}.app-shell .lr-demo-actions{flex-wrap:wrap;gap:8px;display:flex}.app-shell .lr-history-title{margin-top:16px}@media (width<=860px){.app-shell .reference-panel{flex-direction:column;max-height:82dvh;padding:12px 14px 10px;display:flex;overflow:hidden}.app-shell .reference-head{align-items:center;margin-bottom:8px}.app-shell .reference-head .eyebrow{display:none}.app-shell .reference-head h2{margin:0;font-size:18px}.app-shell .reference-head h2:focus-visible{outline-offset:4px;border-radius:18px}.app-shell .reference-content{overscroll-behavior:contain;flex:auto;min-height:160px;overflow:auto}.app-shell .reference-note{display:none}.app-shell .tpl-tools{gap:6px}.app-shell .search-box{flex:none;height:40px}}.app-shell .reference-head h2:focus{outline:none}.app-shell .reference-head h2:focus-visible{outline:3px solid var(--accent)}.app-shell .conflict-draft{text-align:left;margin:10px 0 14px}.app-shell .conflict-draft>summary{cursor:pointer;align-items:center;min-height:32px;font-weight:700;display:flex}.app-shell .conflict-draft-item{gap:4px;margin-top:10px;display:grid}.app-shell .conflict-draft-item textarea{resize:vertical;border:1px solid var(--line);border-radius:var(--r-md);background:var(--paper);width:100%;color:var(--ink);font:16px/1.5 var(--font-ui);padding:10px}.app-shell .study-dialog summary{align-items:center;min-height:40px;display:flex}.app-shell .editor-help{font:500 12px/1.4 var(--font-ui);color:var(--muted);margin:6px 0 0}@media (pointer:coarse),(width<=700px){.app-shell .icon-button,.app-shell .small-icon-button,.app-shell .close-reference,.app-shell .font-control,.app-shell .home-nav-btn{min-width:44px;min-height:44px}.app-shell .theme-options button,.app-shell .appearance-panel .toggle-option,.app-shell .study-open-button,.app-shell .study-tabs button,.app-shell .top-actions .secondary-button,.app-shell .exam-banner-actions .primary-button,.app-shell .ref-source button,.app-shell .ref-case-select select,.app-shell .notebook-filters input,.app-shell .notebook-filters select,.app-shell .exam-card select,.app-shell .tpl-tabs button,.app-shell .tpl-tools .secondary-button,.app-shell .tpl-tools .primary-button,.app-shell .exam-region-chip,.app-shell .focus-set select,.app-shell .act-table summary{min-height:44px}.app-shell .pr-check{align-items:center;gap:10px;min-height:44px;display:flex}.app-shell .pr-check input{flex:none;width:24px;height:24px}.app-shell .snd-range input{min-height:44px}.app-shell .brand-home,.app-shell .appearance-menu>summary,.app-shell .phase3-secondary,.app-shell .study-dialog summary{min-width:44px;min-height:44px}.app-shell .gram-policy,.app-shell .xc-src,.app-shell .xc-official,.app-shell .study-content a{align-items:center;min-height:44px;display:inline-flex}.app-shell .xc-src{display:flex}}@media (width<=640px){.app-shell .section-nav{grid-template-columns:1fr auto;align-items:center;gap:6px 12px;padding:8px 12px 10px;display:grid}.app-shell .nav-progress{display:contents}.app-shell .nav-progress-top{grid-area:1/2;margin:0}.app-shell .nav-progress-top .eyebrow,.app-shell .section-select .eyebrow{display:none}.app-shell .section-select{grid-area:1/1;margin:0}.app-shell .section-select select{min-height:44px}.app-shell .progress-track{grid-area:2/1/auto/-1;height:6px}.app-shell .editor-toolbar{justify-content:flex-end;min-height:44px}.app-shell .editor-toolbar .breadcrumb{display:none}.app-shell .brand-home{flex-direction:column;align-items:center;gap:1px;padding:2px 6px;display:flex}.app-shell .brand-home:after{content:"Inicio";font:700 12px/1.2 var(--font-ui);color:var(--muted)}}@media (pointer:coarse){.app-shell .editor-help{display:none}}.app-shell .breadcrumb,.app-shell .tool-hint,.app-shell .home-ring-num small,.app-shell .focus-chip small,.app-shell .ref-who,.app-shell .lr-kind,.app-shell .vb-key,.app-shell .vb-g small,.app-shell .gram-quick small,.app-shell .xc-kind{font-size:12px}.app-shell .home-logo,.app-shell .pr-logo,.app-shell .ay-logo{background:var(--accent)}.app-shell .notebook-read{white-space:pre-wrap;overflow-wrap:anywhere;min-height:240px;font-family:var(--font-ui);color:var(--ink);flex:1;padding:2px 1px 8px;line-height:1.75;overflow:auto}.app-shell .notebook-read:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:2px}.app-shell .notebook-read-empty{color:var(--muted)}.app-shell .read-actions{flex-wrap:wrap;gap:12px;margin-top:14px;display:flex}.app-shell .read-actions .secondary-button,.app-shell .read-actions .primary-button{min-height:44px;padding:8px 18px}@media (width<=640px){.app-shell .read-actions>*{flex:140px}}.app-shell.reduce-motion .primary-button:active:not(:disabled),.app-shell.reduce-motion .phase3-primary:active:not(:disabled),.app-shell.reduce-motion .secondary-button:active:not(:disabled),.app-shell.reduce-motion .phase3-secondary:active:not(:disabled),.app-shell.reduce-motion .study-open-button:active{transform:none}.app-shell .ref-search-empty{justify-items:start;gap:10px;display:grid}.app-shell .ref-search-empty p,.app-shell .ref-search-empty .secondary-button{margin:0}.app-shell .deferred-view[data-failed]{align-content:start;gap:12px;width:min(1236px,100%);margin:0 auto;padding:24px 28px;display:grid}.app-shell .deferred-view p{max-width:64ch;margin:0}.app-shell .deferred-actions{flex-wrap:wrap;gap:10px;display:flex}.app-shell .deferred-detail{color:var(--muted);max-width:64ch;font-size:12px}.app-shell .deferred-detail summary{cursor:pointer;align-items:center;min-height:40px;display:flex}.app-shell .deferred-detail code{white-space:pre-wrap;overflow-wrap:anywhere;font:11px/1.5 var(--font-mono);background:var(--bg);border:1px solid var(--line);color:var(--ink);border-radius:8px;padding:8px;display:block}
