:root{--page:#f4f3ed;--surface:#fffef9;--field:#f7faf6;--ink:#213f38;--muted:#50675f;--line:#cbd8ce;--accent:#235d48;--action:#e7eee5;--on-accent:#fff;--code:#e5ece6;--amber:var(--accent);--border:var(--line);color-scheme:light}
:root[data-theme=cyber]{--page:#10141f;--surface:#191f30;--field:#121b2a;--ink:#e4edf9;--muted:#b2c4da;--line:#52657e;--accent:#79ead3;--action:#25354b;--on-accent:#10231f;--code:#283951;color-scheme:dark}
html{background:var(--page);color:var(--ink)}body{background:var(--page);color:var(--ink)}a{color:var(--accent);text-underline-offset:4px}header{align-items:center;background:var(--surface);border-color:var(--line)}header strong{letter-spacing:.08em;font-size:13px}header span,.eyebrow{color:var(--muted)}header .appearance-button{margin-left:auto;font-size:14px;min-height:40px}button{background:var(--action);color:var(--ink);border-color:var(--line)}button:hover:not(:disabled){border-color:var(--accent)}button:focus-visible,a:focus-visible,summary:focus-visible,select:focus-visible,textarea:focus-visible,input:focus-visible,.tiptap:focus-visible{outline:3px solid var(--accent);outline-offset:3px}input,textarea,select{background:var(--field);color:var(--ink);border-color:var(--line)}nav{background:var(--surface);border-color:var(--line)}form,section,.theme-card{background:var(--surface);border-color:var(--line);position:relative;isolation:isolate}h1{font-size:clamp(26px,3vw,38px);line-height:1.25}h1,h2,h3,p,li{overflow-wrap:anywhere}#submit,#create button,#confirm{background:var(--accent);color:var(--on-accent);border-color:var(--accent)}.shell{grid-template-columns:250px minmax(0,1fr)}.shell>nav{position:sticky;top:0;align-self:start;max-height:100dvh;overflow:auto;min-height:85dvh}.shell>main{max-width:920px;padding:40px 52px;margin:0 auto}#material{font:18px/1.85 Georgia,serif;white-space:normal}#material.markdown-source,.markdown-source{white-space:pre-wrap}.work{max-width:920px;padding:24px 40px}.work section,.work form{padding:24px}.actions{gap:12px}#notice{color:var(--muted);font-size:14px}#version-state{font-size:13px;color:var(--muted)}.appearance{max-width:560px;width:calc(100% - 32px);max-height:85dvh;overflow:auto;padding:28px;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--ink)}.appearance::backdrop{background:#0009}.theme-card{padding:24px;border:1px solid var(--line);border-radius:12px;margin:24px 0}.editor-status{font-size:13px;color:var(--muted)}.answer-editor{border:1px solid var(--line);border-radius:10px;margin-top:12px;min-width:0;overflow:visible}.answer-editor .omni-editor{min-width:0}.answer-editor .tiptap{min-height:130px!important;padding:18px!important;font:16px/1.7 system-ui,sans-serif;color:var(--ink);background:var(--field)}body .answer-editor .omni-toolbar{position:relative;background:var(--action);border-color:var(--line);border-radius:9px 9px 0 0;max-width:100%;gap:2px}body .answer-editor .omni-toolbar button{background:transparent;color:var(--ink);min-height:44px;border-radius:6px;box-shadow:none;clip-path:none}body .answer-editor .omni-toolbar button:hover,body .answer-editor .omni-toolbar button.active{background:var(--field);color:var(--accent)}body .answer-editor .toolbar-extra{background:var(--surface);border-color:var(--line);z-index:5}body .answer-editor select{color:var(--ink);background:var(--field)}body .omni-document{color:var(--ink);max-width:100%;overflow-wrap:anywhere}body .omni-document pre,body .tiptap pre{background:var(--code);color:var(--ink);white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%}body .omni-document :not(pre)>code,body .tiptap :not(pre)>code{background:var(--code);color:var(--ink)}body .omni-document table{display:block;max-width:100%;overflow-x:auto}body .omni-document p{white-space:normal}body .tiptap blockquote{color:var(--muted)}
/* Built-in cyber theme uses real rounded borders; do not overlay clipped fake corners. */
:root[data-theme=cyber] form::before,:root[data-theme=cyber] section::before,:root[data-theme=cyber] .theme-card::before{content:none}
:root[data-theme=cyber] form,:root[data-theme=cyber] section,:root[data-theme=cyber] .theme-card{border-radius:12px}
:root[data-theme=cyber] h1,:root[data-theme=cyber] h2{font-family:system-ui,sans-serif}:root[data-theme=cyber] .eyebrow{letter-spacing:.16em}
@media(max-width:736px){.shell{display:block}.shell>nav{position:static;min-height:0;max-height:none}.shell>main,.work{padding:24px 16px}.work section,.work form{padding:16px}.shell nav #outline{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px}.appearance{padding:20px}#material{font-size:17px}.answer-editor .tiptap{padding:12px!important}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important}}

.focus-nav-link{display:block;padding:12px 14px;margin:8px 0;border-radius:10px;text-decoration:none}.focus-nav-link[aria-current=page]{background:var(--action);font-weight:700}body .omni-document .hljs-string,body .tiptap .hljs-string{color:#28633f}body .omni-document .hljs-keyword,body .tiptap .hljs-keyword{color:#903548}body .omni-document .hljs-title,body .tiptap .hljs-title{color:#285f88}body .omni-document .hljs-number,body .tiptap .hljs-number{color:#805117}:root[data-theme=cyber] .hljs-string{color:#a6dc9e!important}:root[data-theme=cyber] .hljs-keyword{color:#ff9ca5!important}:root[data-theme=cyber] .hljs-title{color:#8ecbff!important}:root[data-theme=cyber] .hljs-number{color:#e8b669!important}

.focus-navigation>summary{display:none}.focus-navigation{margin:0}.focus-navigation>summary:focus-visible{outline:3px solid var(--accent);outline-offset:4px}@media(max-width:736px){.focus-navigation>summary{display:block;cursor:pointer;min-height:44px;padding:8px 0;font-weight:600}.shell>nav{padding:12px 18px;border-bottom:1px solid var(--line)}}

:root[data-theme=course] main form,:root[data-theme=course] main section,:root[data-theme=course] .theme-card{padding:var(--course-inset);border-radius:var(--course-radius);clip-path:none}:root[data-theme=course] h1,:root[data-theme=course] h2{font-family:var(--course-font)}.course-decor{position:absolute;inset:calc(-1 * var(--course-outset));width:calc(100% + 2 * var(--course-outset));height:calc(100% + 2 * var(--course-outset));pointer-events:none;z-index:-1;overflow:visible}:root[data-theme=course] .course-decor{opacity:.75}

.fragment-menu{position:fixed;bottom:20px;left:16px;right:16px;max-width:420px;z-index:30;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:0 6px 20px #0003}.fragment-menu button{width:100%}#fragment-status{font:14px/1.5 system-ui,sans-serif;color:var(--muted)}::highlight(learn-fragment){background:var(--accent);color:var(--on-accent)}:root[data-theme=course] .hljs-keyword,:root[data-theme=course] .hljs-string,:root[data-theme=course] .hljs-title,:root[data-theme=course] .hljs-number{color:var(--ink)!important}

#context-summary,#preferences-saved p{white-space:pre-wrap}#context-history{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:14px}#context-sources a{overflow-wrap:anywhere}
#repeat-structured fieldset{min-width:0;max-width:100%;border:1px solid var(--line);border-radius:8px;padding:12px}#repeat-structured legend{max-width:100%;overflow-wrap:anywhere}.choice-option{display:flex;align-items:flex-start;gap:10px;overflow-wrap:anywhere}.choice-option input{width:auto;flex:none;margin:7px 0 0}#repeat-list .theme-card>button{margin:4px}#repeat-hint{white-space:pre-wrap}
.matching-selected{margin:4px 0 16px;font-size:14px;color:var(--muted);overflow-wrap:anywhere}

body .answer-editor{background:var(--field)}body .answer-editor .tiptap{border-radius:0 0 9px 9px}body .answer-editor .omni-toolbar{border-top-left-radius:9px;border-top-right-radius:9px}
