@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/static/fonts/manrope-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/static/fonts/manrope-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(/static/fonts/unbounded-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(/static/fonts/unbounded-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
*{box-sizing:border-box}
:root{font:16px/1.55 "Segoe UI",system-ui,sans-serif;color:#1e2d29;background:#f1f5f3;--muted:#51645c;--line:#d5e0da;--accent:#145745;--paper:#fff}
body{margin:0}
[hidden]{display:none!important}
.top{height:72px;background:#142f27;color:white;display:flex;align-items:center;justify-content:space-between;padding:0 max(22px,calc((100vw - 1200px)/2));gap:20px}
.brand{display:flex;align-items:center;gap:11px;font-weight:750;font-size:1.2rem;white-space:nowrap}
.brand small{font-size:.88rem;color:#bfd3c9;font-weight:500;margin-left:12px}
.symbol{display:grid;place-items:center;background:#e3f3d7;color:#163a2c;width:36px;height:36px;border-radius:9px;font-weight:800}
h1,h2,h3,p{margin:0 0 12px}
h1{font-size:clamp(1.65rem,4vw,2.35rem);line-height:1.14;overflow-wrap:anywhere}
h2{font-size:1.3rem;line-height:1.25}
h3{font-size:1.06rem}
button,input,textarea,select{font:inherit}
button,.button{display:inline-flex;align-items:center;justify-content:center;min-height:41px;cursor:pointer;border:1px solid transparent;padding:7px 13px;border-radius:8px;text-decoration:none;font-weight:650;line-height:1.25;color:inherit}
button:disabled{opacity:.42;cursor:default}
.primary{background:var(--accent);color:white}
.primary:hover{background:#0e4334}
.quiet{background:transparent;border-color:var(--line)}
.quiet:hover{background:#e7f0eb;color:#183e31}
.danger{color:#9b3240}
input:not([type=radio]),textarea,select{width:100%;padding:9px 12px;border:1px solid #bfcfc5;border-radius:8px;background:white;color:inherit}

textarea{min-height:122px;resize:vertical}
label{display:grid;gap:5px;font-size:.91rem;font-weight:600;min-width:0}
:focus-visible{outline:3px solid #2d8f72;outline-offset:3px}
.card{background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:20px;min-width:0}
.login,.reader{max-width:850px;margin:42px auto;padding:0 18px}
.login{max-width:460px}
.stack,.steps{display:grid;gap:15px}
.layout{max-width:1236px;padding:0 22px 42px;margin:auto}
.editor{display:grid;gap:14px;min-width:0}
.reader-title h1{margin:0}
.toolbar,.row,.reader-title,.paging,.step-head{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.toolbar,.step-head{justify-content:space-between}
.controls{display:flex;gap:7px;flex-wrap:wrap}

.card .step-head{margin-bottom:12px}

.tag{white-space:nowrap;display:inline-flex;align-items:center;border-radius:6px;background:var(--tag);color:var(--tag-ink,#fff);padding:5px 10px;font-weight:700}
.level-row{display:grid;grid-template-columns:minmax(100px,1fr) auto;gap:10px;align-items:center;border-bottom:1px solid var(--line);padding:8px 0}
.level-name{overflow-wrap:anywhere}
.level-name .tag{white-space:normal}
.new-level{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;justify-items:start;margin-top:18px}
.paging,.progress-label{margin-top:14px}
.next{margin-left:auto}
.reader-title{justify-content:space-between}
.reader-step{margin-top:15px;padding:clamp(17px,4vw,32px)}
.reader-step img,.markdown img{max-width:100%;max-height:65vh;object-fit:contain;border-radius:8px}
.reader-step>img{display:block;margin:0 auto 18px}
.markdown{overflow-wrap:anywhere}
.markdown pre{overflow-x:auto;background:#edf3ef;padding:12px}
.markdown a,.release a{color:#135b49}
.markdown :last-child{margin-bottom:0}
progress{width:100%;height:12px;accent-color:var(--accent)}
.finish,.muted,.loading{color:var(--muted)}
.loading{text-align:center;margin:4rem auto}
.preview-image{max-width:180px;max-height:120px;object-fit:contain}
#notice{position:fixed;inset:auto 18px 18px auto;max-width:min(390px,calc(100% - 36px));margin:0;background:#19372e;color:white;padding:12px 16px;border-radius:9px;z-index:4}
#notice[data-error=true]{background:#7f2636}
dialog{width:min(740px,calc(100% - 32px));max-height:88vh;border:1px solid var(--line);border-radius:14px;padding:20px;color:inherit}
dialog::backdrop{background:#122b24aa}
.release+.release{border-top:1px solid var(--line);padding-top:14px;margin-top:14px}
.link-row{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:4px 0}
.dragging{opacity:.5}
@media(max-width:720px){.brand small{margin-left:4px}.toolbar{align-items:flex-start}.top{height:62px}}
@media(max-width:440px){.level-row{grid-template-columns:1fr}.link-row{align-items:flex-start}}

.level-name{display:flex;align-items:center;gap:10px}
.level-handle{cursor:grab;user-select:none;display:grid;place-items:center;width:32px;min-height:36px;color:var(--muted);font-size:1.35rem;flex:none}
.level-handle:active,.handle:active{cursor:grabbing}
.handle{cursor:grab}
.drop-target{outline:2px solid #2d8f72;outline-offset:2px}
.new-level>label{width:min(100%,26rem)}
.palette{border:0;margin:0;padding:0;min-width:0}
.palette legend{font-size:.91rem;font-weight:600;margin-bottom:7px}
.swatches{display:flex;gap:8px;flex-wrap:wrap}
.swatch{position:relative;cursor:pointer}
.swatch input{position:absolute;width:1px;height:1px;opacity:0}
.swatch input:checked+.tag{outline:2px solid #142f27;outline-offset:2px}
.swatch input:focus-visible+.tag{outline:3px solid #2d8f72;outline-offset:2px}
.step-head .step-title{flex:1;min-width:min(100%,235px);font-weight:700;font-size:1.12rem}
.step-difficulty{width:min(100%,16rem)}
.markdown-composer{overflow:hidden;border:1px solid #bfcfc5;border-radius:9px}
.markdown-composer:focus-within{border-color:#2d8f72}
.format-bar{display:flex;flex-wrap:wrap;gap:4px;padding:7px;background:#edf3ef;border-bottom:1px solid var(--line)}
.format-bar button{padding:4px 9px;min-height:33px;min-width:33px;font-size:.88rem;background:white}
.format-bar button:hover{background:#d7ebdf}
.markdown-composer textarea{display:block;min-height:245px;border:0;border-radius:0;padding:13px 15px;font:1rem/1.6 ui-monospace,Consolas,monospace}
.markdown-composer textarea:focus-visible{outline-offset:-3px}

.section-nav{display:flex;gap:24px;align-items:center;border-bottom:1px solid var(--line);margin:0 0 28px}
.nav-button{padding:13px 4px;background:transparent;border-radius:0;border-bottom:3px solid transparent;color:var(--muted)}
.nav-button.current{border-bottom-color:var(--accent);color:var(--accent)}
.nav-button:hover{color:var(--accent)}
.library{max-width:920px;margin:0 auto}
.page-heading,.section-heading,.draft-bar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}
.page-heading h1,.section-heading h2{margin:0}
.search-label{max-width:365px;margin:20px 0 15px}
.library-list{display:grid;gap:8px;list-style:none;padding:0;margin:0}
.library-entry{width:100%;display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:14px;padding:14px;text-align:left;background:white;border-color:var(--line);border-radius:12px}
.library-entry:hover{border-color:#79a891;background:#fbfefc}
.document-symbol{display:grid;place-items:center;width:41px;height:41px;border-radius:10px;color:#145745;background:#e0f0e5;font-size:1.22rem}
.entry-name{display:grid;gap:4px;overflow-wrap:anywhere}
.entry-name .muted,.entry-open,.status-pill{font-size:.88rem}
.entry-open{color:var(--accent);padding:0 5px}
.status-pill{background:#edf1ef;color:#45584e;padding:5px 9px;border-radius:999px}
.status-pill.is-published{color:#155841;background:#e0f1e7}
.workspace-heading{display:grid;gap:10px;padding:15px 18px;background:white;border:1px solid var(--line);border-radius:14px}
.workspace-heading input{border-color:transparent;background:#f6f9f7;font-weight:750;font-size:clamp(1.2rem,3vw,1.8rem);line-height:1.2}
.draft-bar{border-top:1px solid var(--line);padding-top:10px}
.editing-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(225px,272px);gap:18px;align-items:start}
.editing-steps,.editor-rail{min-width:0}
.editor-rail{position:sticky;top:16px}
.section-heading{margin:0 0 12px}
.publication{border-color:#bcd6c7;background:#f9fdf9}
.publication h2{margin-bottom:8px}
.publication .controls{align-items:flex-start}
.add-last{margin-top:12px}
.legacy-image{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.table-dimensions{display:flex;flex-wrap:wrap;gap:12px}
.table-dimensions label{max-width:165px}
.table-scroll,.markdown{overflow-x:auto}
.table-grid,.markdown table{width:100%;border-collapse:collapse}
.table-grid td,.markdown th,.markdown td{padding:7px;border:1px solid var(--line)}
.table-grid input{min-width:115px}
.markdown th,.table-grid tr:first-child{background:#ebf3ee}
.markdown th{text-align:left}
.markdown table{margin:10px 0}
.markdown img{display:block;margin:12px auto}
@media(max-width:820px){.editing-grid{grid-template-columns:1fr}.editor-rail{position:static}}
@media(max-width:500px){.layout{padding:0 14px 28px}.section-nav{margin-bottom:19px}.library-entry{grid-template-columns:auto minmax(0,1fr);gap:7px 12px}.entry-open{display:none}.status-pill{grid-column:2;justify-self:start}.document-symbol{grid-row:span 2}.workspace-heading{padding:12px}.draft-bar{align-items:flex-start}}

.reader-title{align-items:flex-end;gap:14px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.reader-title .tag{white-space:normal;overflow-wrap:anywhere}
.reader .progress-label{font-size:.93rem;font-weight:650;color:var(--muted)}
.reader-step h2{font-size:clamp(1.35rem,3vw,1.8rem);margin-bottom:15px}
.reader-step{box-shadow:0 8px 25px #142f270a}
[data-preview]{margin-top:14px}

/* Workshop layouts */
:root{background:#f4f4ee;color:#233b30;--paper:#fff;--muted:#56635b;--line:#dde2d8;--accent:#255e47}
.top{height:68px;background:#fff;color:#233b30;border-bottom:1px solid var(--line);padding-inline:max(22px,calc((100vw - 1300px)/2));gap:26px}
.symbol{background:#255e47;color:#fff;width:35px;height:35px}
.brand{flex:none;font-size:.98rem}
.top .section-nav{margin:0;border:0;gap:19px;margin-right:auto}
.top .nav-button{min-height:67px;border-radius:0;font-size:.93rem}
.top #logout{font-size:.89rem;min-height:36px}
.layout{max-width:1344px;padding:28px 24px 48px}
.library,.levels-screen,.publication-screen{max-width:1180px;margin-inline:auto}
.page-heading,.workspace-heading{margin-bottom:17px}
.library-tools{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;margin:24px 0 12px}
.library-tools .search-label{margin:0;min-width:min(245px,100%)}
.library-list{background:#fff;border:1px solid var(--line);border-radius:12px;gap:0;overflow:hidden}
.library-list li+li{border-top:1px solid var(--line)}
.library-entry{min-height:68px;grid-template-columns:minmax(0,1fr) minmax(120px,25%) auto;border:0;border-radius:0;padding:12px 18px;gap:16px}
.status-pill{justify-self:start;white-space:nowrap}
.chosen{background:#e6eee4;color:#24543f}
.back-link{padding:0;min-height:24px;background:transparent;color:#35644c;justify-self:start}
.back-link::before{content:"‹";margin-right:7px}
.workspace-heading{gap:5px;margin:0}
.editor-heading-line{display:flex;justify-content:space-between;align-items:end;gap:16px}
.editor-title{flex:1}
.editor-title input{max-width:520px}
.draft-bar{padding:0;border:none}
.draft-bar .muted{font-size:.9rem}
.design-editor-grid{display:grid;grid-template-columns:minmax(170px,235px) minmax(0,1fr) minmax(180px,252px);gap:17px;align-items:start}
.design-editor-grid h2{font-size:1.11rem}
.step-outline,.step-settings{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px;min-width:0}
.step-outline,.step-settings{position:sticky;top:16px}
.step-settings{display:grid;gap:9px}
.step-settings p{font-size:.9rem;margin:0}
.step-settings hr,.level-form hr{border:0;border-top:1px solid var(--line);width:100%;margin:8px 0}
.step-settings h2{margin:0}
.step-outline>button{width:100%;margin-top:10px}
.outline-item{display:flex;align-items:center;border-radius:8px;gap:3px}
.outline-item .handle{padding:4px;color:var(--muted)}
.outline-item button{flex:1;background:transparent;text-align:left;justify-content:flex-start;gap:8px;overflow-wrap:anywhere;min-width:0;padding-inline:4px}
.outline-item small{color:var(--muted)}
.outline-item em{display:block;font-size:.83rem;font-style:normal;font-weight:500;color:#3d664d;margin-top:4px}
.editing-steps{min-width:0}
.editing-steps .card{padding:14px}
.editing-steps .markdown-composer textarea{min-height:330px}
.publish-banner{padding:18px 22px;border-radius:12px;background:#e6eee4;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px}
.publish-banner p,.publish-banner h2{margin:0}
.publication-grid,.levels-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(235px,1fr);gap:18px;margin:18px 0;align-items:start}
.publication-note{border-radius:12px;background:#243b31;color:#fff;padding:23px}
.publication-screen .link-row,.history-version{padding:12px 0;border-top:1px solid var(--line)}
.history-version summary{cursor:pointer;font-weight:650}
.history-version summary .muted{margin-left:10px;font-weight:400}
.history-version .controls{margin-top:10px}
.level-row{padding:10px;border:1px solid var(--line);border-radius:8px;margin-top:8px}
.level-form .danger{margin-bottom:8px}
.color-dot{display:block;width:30px;height:30px;border-radius:50%;background:var(--tag);color:var(--tag-ink)}
.swatch input:checked+.color-dot{outline:2px solid #233b30;outline-offset:2px}
.swatch input:checked+.color-dot::after{content:"✓";display:grid;place-items:center;height:100%}
.swatch input:focus-visible+.color-dot{outline:2px solid #268166;outline-offset:3px}
.reader-workspace{max-width:1250px;display:grid;grid-template-columns:minmax(175px,235px) minmax(0,1fr);gap:32px;margin:32px auto;padding-inline:20px}
.reader-outline{padding:16px;background:#fff;border:1px solid var(--line);border-radius:12px;align-self:start}
.reader-outline h1{font-size:1.3rem}
.reader-step-list{display:grid;gap:4px;margin-top:12px}
.reader-step-list a{display:flex;gap:9px;padding:8px;color:inherit;text-decoration:none;border-radius:6px;overflow-wrap:anywhere}
.reader-step-list a[aria-current]{font-weight:700;background:#e6eee4;color:var(--accent)}
.reader-step-list a span{color:var(--muted);min-width:21px}
.reader-content{min-width:0;padding:12px 0}
.reader-content h2{font-size:clamp(1.6rem,4vw,2.35rem);margin-bottom:17px}
.reader-kicker{color:var(--accent);font-weight:700}
.reader-content .reader-step{padding:0;box-shadow:none;margin:0}
.reader-content img{background:#eeede3}
.reader-content .paging{padding-top:14px;border-top:1px solid var(--line)}
@media(max-width:1000px){.design-editor-grid{grid-template-columns:minmax(155px,200px) minmax(0,1fr)}.step-settings{grid-column:2;position:static}.editor-heading-line{align-items:start;flex-direction:column}.editor-title{width:100%}}
@media(max-width:700px){.top{height:auto;min-height:63px;gap:8px;flex-wrap:wrap;padding:12px 14px 0}.top .section-nav{order:3;width:100%;gap:14px}.top .nav-button{min-height:43px;padding:6px 4px}.top #logout{margin-left:auto}.layout{padding:17px 14px 30px}.publication-grid,.levels-grid,.design-editor-grid,.reader-workspace{grid-template-columns:1fr}.step-outline,.step-settings{position:static;grid-column:auto}.step-outline{max-height:210px;overflow:auto}.reader-workspace{gap:10px;margin-top:16px}.reader-step-list{display:flex;overflow-x:auto}.reader-step-list a{flex:none;max-width:190px}.library-entry{grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:10px}.library-entry .status-pill{grid-column:auto}.entry-open{display:none}}
@media(max-width:430px){.level-row .controls{gap:4px}}
/* Figma Make export — workshop editor */
:root{font-family:Manrope,"Segoe UI",system-ui,sans-serif;background:#f4f1e9;color:#24231f;--paper:#fffdf9;--muted:#625e55;--line:#ded9ce;--accent:#f05a39;--forest:#203b36;--display:Unbounded,Manrope,"Segoe UI",sans-serif}
h1,h2,h3,.brand,.editor-title input,.step-title{font-family:var(--display)}
h1{font-size:clamp(1.3rem,2.5vw,1.88rem)}h2{font-size:1.12rem}
.top{background:#fffdf8;color:#24231f;height:64px;border-color:#24231f1a;padding-inline:clamp(16px,3vw,32px);gap:24px}
.brand{gap:12px;font-size:1rem;line-height:1.1}
.brand small{display:block;margin:4px 0 0;font:600 .68rem Manrope,"Segoe UI",sans-serif;color:#625e55}
.symbol{width:36px;height:36px;background:#f05a39;color:#fff;border-radius:11px;box-shadow:0 3px #b83f26}
.symbol svg{width:20px;height:20px}
.account-actions{margin-left:auto;display:flex;align-items:center;gap:10px}
#account-label{font-size:.78rem;font-weight:750;color:var(--forest)}
.top .nav-button{color:var(--muted);border:none;min-height:62px;background:transparent}
.top .nav-button.current{color:var(--forest);font-weight:800}
.primary{background:#f05a39;color:#fff;border-radius:12px;box-shadow:0 3px #b83f26}
.primary:hover{background:#d34b2d;color:#fff}
.library-list li:has(.library-entry){display:flex;align-items:center;gap:6px;padding-right:12px}
.library-list .library-entry{flex:1;min-width:0}
.delete-instruction{flex:none;font-size:.85rem}
.delete-confirm{background:#a13c2a;color:#fff}
.quiet{background:#fff;border-color:#24231f22;border-radius:11px}
.quiet:hover{background:#f8f6f0;color:#24231f}
.back-link{color:#285a4e}
.card{border-color:#24231f1a;border-radius:16px;box-shadow:0 8px 30px #3b2f190a}
.layout{max-width:1504px}
.library,.levels-screen,.publication-screen{max-width:1150px}
.library-list,.library-entry{background:#fffdf8}
.library-entry:hover{background:#fdf7ed;border-color:transparent}
.status-pill{background:#f1ede2;color:#534a39}.status-pill.is-published{background:#e6f3ee;color:#19795b}
.chosen,.publish-banner{background:#e9eee8;color:var(--forest)}
.publication-note{background:var(--forest)}
.layout:has(.editor){padding:0;max-width:none}
.editor{gap:0}
.workspace-heading{background:#fffdf8;border:0;border-bottom:1px solid #24231f1a;border-radius:0;padding:12px clamp(16px,3vw,32px) 18px}
.editor-heading-line{width:100%;max-width:1440px;margin-inline:auto}
.editor-title input{padding:4px 0;background:transparent;font-size:clamp(1.3rem,2.55vw,1.88rem);font-weight:750}
.design-editor-grid{max-width:1504px;margin-inline:auto;width:100%;grid-template-columns:minmax(205px,300px) minmax(0,1fr) minmax(210px,280px);gap:0}
.step-outline,.step-settings{background:#faf8f2;border:0;border-radius:0;padding:18px;min-height:calc(100dvh - 152px)}
.step-outline{border-right:1px solid #24231f1a}.step-settings{border-left:1px solid #24231f1a;align-content:start}
.step-outline h2{font:800 .8rem Manrope,"Segoe UI",sans-serif;text-transform:uppercase;letter-spacing:.12em;color:#625e55;margin-bottom:16px}
.step-outline>button{border-style:dashed;background:transparent}
.outline-item{gap:3px;margin-bottom:8px;padding:3px;border:1px solid transparent;border-radius:12px}
.outline-item.chosen{border-color:#f05a3970;background:#fff;box-shadow:0 4px 14px #382f2014}
.outline-item.chosen small{background:#f05a39;color:#17120e}
.outline-item small{display:grid;place-items:center;flex:none;width:24px;height:24px;border-radius:50%;background:#e9e5da;color:#554f45}
.outline-item em{color:#386858}
.editing-steps{width:100%;padding:24px clamp(14px,3vw,32px)}
.editing-steps>h2,.editing-steps>.step-kicker,.editing-steps>article,.editing-steps>div{max-width:760px;margin-inline:auto}
.step-kicker{margin-bottom:4px;font-size:.8rem;text-transform:uppercase;font-weight:800;color:#ac381f}
.editing-steps .card{padding:clamp(15px,2.5vw,28px)}
.step-head>label{width:100%;font-size:.82rem}
.step-head .step-title{font-size:1rem}
.composer-label{display:flex;justify-content:space-between;margin:8px 0 -10px;font-size:.82rem;font-weight:750}
.composer-label small{color:var(--muted)}
.markdown-composer,.format-bar{border-color:#24231f24}
.format-bar{background:#f8f6f0}
.format-bar button{background:transparent;border:0}
.format-bar button:hover{background:#fff}
.format-bar svg,.draft-bar svg{width:16px;height:16px;margin-right:4px}
.markdown-composer textarea{min-height:240px;line-height:1.72}
.difficulty-options{margin:0;padding:0;border:0;min-width:0}
.difficulty-options legend{font-size:.82rem;font-weight:750;margin-bottom:6px}
.difficulty-options p{margin:9px 0 0;font-size:.85rem}
.difficulty-option{position:relative;cursor:pointer;grid-auto-flow:column;align-items:center;gap:4px;padding:6px 10px;border-radius:999px}
.difficulty-option input{appearance:none;margin:0;width:12px;height:12px;border:1px solid currentColor;border-radius:50%;cursor:pointer}
.difficulty-option input:checked{background:currentColor;box-shadow:inset 0 0 0 2px var(--tag)}
.difficulty-option:has(input:checked){outline:2px solid var(--forest);outline-offset:2px}
.step-settings-head{display:flex;justify-content:space-between;align-items:center;gap:8px}
.step-settings-head .button,.step-settings-head button{padding:4px 8px;min-height:30px;font-size:.75rem}
.step-settings h2{font-size:.94rem}
.level-cards{display:grid;gap:9px;margin:6px 0}
.level-card{display:grid;gap:5px;padding:10px;border:1px solid #24231f1a;border-radius:12px;background:#fffdf9}
.level-card .muted{font-size:.79rem}
.step-settings .level-note{background:#e9eee8;color:var(--forest);padding:12px;border-radius:12px;margin-top:4px}
.reader-workspace{display:block;max-width:850px;margin:28px auto}
.reader-outline{padding:0 0 15px;border:0;border-bottom:1px solid var(--line);background:transparent;border-radius:0}
.reader-outline h1{font-size:clamp(1.4rem,4vw,2.6rem);margin:7px 0 12px}
.reader-step-list{display:flex;overflow-x:auto}
.reader-step-list a{flex:none;max-width:215px}
.reader-step-list a[aria-current]{background:#f6d8cc;color:#8c311d}
.reader-content .reader-step{background:#fffdf8;border:1px solid #24231f1a;border-radius:16px;padding:clamp(15px,4vw,30px)}
.reader-kicker{color:#ac381f}.reader-content h2{font-size:clamp(1.15rem,3vw,1.7rem)}
.markdown th,.table-grid tr:first-child{background:#e9eee8}
@media(max-width:1050px){.design-editor-grid{grid-template-columns:minmax(165px,225px) minmax(0,1fr)}.step-settings{grid-column:2;min-height:auto}.step-outline{grid-row:span 2;max-height:none}}
@media(max-width:700px){.top{height:auto;padding-top:10px;gap:8px}.top .nav-button{min-height:40px}.design-editor-grid{grid-template-columns:minmax(0,1fr)}.step-outline,.step-settings{grid-column:auto;grid-row:auto;min-height:0}.step-outline{max-height:215px}.editor-heading-line{gap:8px}.reader-workspace{margin-top:16px}}
@media(max-width:420px){#account-label{display:none}.brand small{font-size:.65rem}}

.reader-levels{display:flex;flex-wrap:wrap;gap:10px}
.reader-levels .tag{text-decoration:none}
.reader-levels [aria-current]{outline:2px solid currentColor;outline-offset:2px}

#figma-editor [data-restored]{outline:2px solid #c26d1e;outline-offset:-2px;background:#fff1d7}
#figma-editor [data-restored] .handle{color:#8d4a13}

.intro-block{margin:1rem 0}.intro-block p{white-space:pre-wrap;overflow-wrap:anywhere}.intro-block img,.intro-photo{display:block;max-width:100%;height:auto;max-height:26rem;object-fit:contain;margin-block:.8rem;border-radius:.75rem}
