:root {
  color-scheme: light;
  --paper: #f6f7ef;
  --ink: #223327;
  --muted: #59665a;
  --line: #e2e7da;
  --green: #2b603c;
  --lime: #c4ef63;
  --white: #fff;
  font: 16px/1.45 system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #2376a5; outline-offset: 3px; }
h1, h2, p { margin: 0; }
h1, h2, strong, b { line-height: 1.15; }
.sprites { position: absolute; width: 0; height: 0; }
.icon, nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: middle; }
.layout { display: grid; grid-template-columns: 220px minmax(0, 770px) minmax(236px, 288px); column-gap: clamp(20px, 3vw, 46px); max-width: 1500px; min-height: 100dvh; margin: auto; padding-right: clamp(20px, 3vw, 46px); }
.sidebar { background: #fff; border-right: 1px solid var(--line); padding: 32px 16px 21px; position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; }
.brand { display: flex; gap: 10px; align-items: center; padding-inline: 8px; width: max-content; }
.brand-icon, .avatar, .sidebar-foot > span { display: grid; place-items: center; border-radius: 12px; font-size: 24px; font-weight: 850; }
.brand-icon { width: 44px; height: 44px; color: #23351e; background: var(--lime); box-shadow: 0 3px 0 #9cc54a; }
.brand strong { font-size: 24px; letter-spacing: -.06em; }
.brand strong span { color: var(--green); }
.eyebrow { font-size: .68rem; font-weight: 850; letter-spacing: .12em; }
.nav-label { color: var(--muted); margin: 52px 0 10px 12px; }
nav { display: grid; gap: 6px; }
nav a { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid transparent; border-radius: 12px; font-size: .9rem; font-weight: 750; }
nav a:hover { background: var(--paper); }
nav a[aria-current] { color: #244e31; background: #eaf5df; border-color: #d6ebc6; }
.sidebar-foot { margin-top: auto; display: flex; align-items: center; gap: 9px; padding: 10px 8px 0; border-top: 1px solid var(--line); }
.sidebar-foot > span, .avatar { background: #e8f1e4; color: var(--green); width: 36px; height: 36px; font-size: 19px; flex: none; }
.sidebar-foot b { font-size: .82rem; }
.sidebar-foot small, .metric small { display: block; color: var(--muted); font-size: .72rem; }
main { padding: 35px 0 56px; min-width: 0; }
.page-top { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.page-tag { color: var(--green); }
h1 { font-size: clamp(1.65rem, 3vw, 2.45rem); letter-spacing: -.055em; margin-top: 5px; }
.level { font-size: .64rem; letter-spacing: .06em; font-weight: 850; white-space: nowrap; border: 1px solid var(--line); background: #fff; border-radius: 30px; padding: 7px 10px; }
.level span { display: inline-block; width: 7px; height: 7px; border-radius: 100%; background: #639836; margin-right: 3px; }
.hero { position: relative; overflow: hidden; min-height: 295px; display: flex; align-items: center; background-color: var(--lime); background-image: linear-gradient(#31532b0c 1px, transparent 1px), linear-gradient(90deg, #31532b0c 1px, transparent 1px); background-size: 24px 24px; border: 1px solid #a9d451; border-radius: 24px; padding: 28px clamp(20px, 3vw, 38px); }
.hero-copy { position: relative; z-index: 1; }
.hero-tag { display: inline-flex; gap: 5px; align-items: center; color: #274524; background: #e9ffb5; border: 1px solid #b1db61; border-radius: 24px; padding: 5px 9px; font-size: .64rem; font-weight: 850; letter-spacing: .085em; }
.hero-tag .icon { width: 13px; height: 13px; }
.hero h2 { font-size: clamp(2.3rem, 4vw, 4.1rem); letter-spacing: -.075em; line-height: .96; margin: 13px 0; font-weight: 900; }
.hero p { color: #2d4827; font-weight: 620; font-size: .92rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; border-radius: 12px; border: 1px solid transparent; padding: 9px 16px; font-weight: 790; line-height: 1.15; }
.button .icon { width: 18px; height: 18px; }
.button:hover:not(:disabled) { filter: brightness(1.08); }
.button:active:not(:disabled) { transform: translateY(2px); }
.hero-button, .primary { color: #fff; background: #254f33; box-shadow: 0 3px 0 #152f21; }
.hero-button { margin-top: 18px; }
.primary:disabled { color: #5a6858; background: #e6e9e1; box-shadow: none; }
.secondary { background: #fff; border-color: #ccd7c8; }
.hero-art { position: absolute; width: min(43%, 318px); height: 90%; right: 3%; bottom: 1%; display: grid; place-items: center; }
.hero-art::before { content: ''; width: 74%; aspect-ratio: 1; border-radius: 50%; border: 1px dashed #6e9a43; background: #edffb756; position: absolute; }
.hero-art img { width: 100%; position: relative; }
.symbol { position: absolute; font-style: normal; font-size: clamp(14px, 2.8vw, 39px); font-weight: 850; color: #3a6233; z-index: 1; }
.s1 { top: 8%; left: 9%; transform: rotate(-15deg); }.s2 { right: 2%; top: 16%; transform: rotate(12deg); }.s3 { bottom: 13%; left: 0; }.s4 { bottom: 18%; right: 0; color: #3c6629; }
.chapter { margin-top: 31px; }
.chapter-head { display: flex; align-items: center; gap: 13px; margin-bottom: 17px; }
.chapter-no { display: grid; place-items: center; flex: 0 0 50px; height: 50px; border-radius: 14px; color: #315b39; background: #e5efd9; border: 1px solid #d6e5ca; font-weight: 850; font-size: 1.16rem; }
.chapter-head .eyebrow { color: var(--green); }
.chapter-head h2 { font-size: 1.45rem; letter-spacing: -.04em; }
.chapter-head p, .lesson-card span span { color: var(--muted); font-size: .83rem; }
.track { display: grid; gap: 12px; position: relative; }
.track::before { content: ''; position: absolute; top: 24px; bottom: 24px; left: 24px; border-left: 2px dashed #cbd9c3; }
.lesson-row { display: grid; grid-template-columns: 50px minmax(0, 1fr); align-items: center; gap: 13px; }
.node { z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; margin-inline: auto; border-radius: 50%; background: #edf0e7; color: #586656; border: 1px solid #dbe3d6; font-size: 1.5rem; font-weight: 850; }
.node .icon { width: 18px; height: 18px; }
.current .node, .done .node { background: var(--lime); color: #264423; border-color: #a4ca57; box-shadow: 0 3px 0 #a4ca57; }
.lesson-card { width: 100%; text-align: left; min-height: 77px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--line); border-radius: 15px; background: #fff; padding: 10px 15px; box-shadow: 0 2px 0 #e9ece3; }
.lesson-card:hover:not(:disabled), .current .lesson-card { border-color: #a4c985; box-shadow: 0 2px 0 #c6dbb2; background: #fbfff8; }
.lesson-card small, .lesson-card b, .lesson-card span span { display: block; }
.lesson-card small { font-size: .61rem; letter-spacing: .09em; font-weight: 850; color: var(--green); margin-bottom: 2px; }
.lesson-card b { margin-bottom: 2px; }
.locked .lesson-card { background: #f9faf5; color: #515c51; }
.locked .lesson-card small { color: #5b695c; }
.locked .lesson-card .icon { width: 16px; height: 16px; }
.rail { padding-top: 32px; }
.rail-heading { display: flex; justify-content: space-between; align-items: center; color: var(--green); margin-bottom: 14px; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.metric { display: flex; align-items: center; gap: 6px; padding: 10px 7px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.metric b { font-size: 1.16rem; }
.badge { width: 33px; height: 33px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.badge .icon { width: 19px; height: 19px; }
.orange { background: #ffe8d9; color: #993e14; }.yellow { background: #fff2cc; color: #865800; }.green { background: #e6f3da; color: #366737; }.cream { background: #fff1ca; color: #7e5816; }
.panel { border: 1px solid var(--line); border-radius: 16px; padding: 15px; background: #fff; margin-bottom: 14px; }
.panel-title { display: flex; align-items: center; gap: 9px; }
.panel h2 { font-size: 1rem; }
.panel p { color: var(--muted); font-size: .86rem; margin-top: 9px; }
progress { appearance: none; border: 0; width: 100%; height: 9px; border-radius: 10px; overflow: hidden; background: #e8ede2; color: #6ea43d; display: block; }
progress::-webkit-progress-bar { background: #e8ede2; } progress::-webkit-progress-value { background: #6ea43d; border-radius: 10px; } progress::-moz-progress-bar { background: #6ea43d; border-radius: 10px; }
.panel progress { margin-top: 12px; }
.goal-text { text-align: right; color: var(--green); font-size: .72rem; font-weight: 800; margin-top: 5px; }
.tip { background: #fffaf0; border-color: #efe7d2; }
.inner { padding: 20px; }
.inner h2 { font-size: 1.2rem; }
.inner .button { margin-top: 15px; }
.review { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; border-top: 1px solid var(--line); margin-top: 8px; background: transparent; text-align: left; padding: 9px 3px; }
.review:hover { color: var(--green); background: var(--paper); }
.stat-list { list-style: none; margin: 15px 0 0; padding: 0; }
.stat-list li { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding: 8px 0; }
.stat-list li span, .result-stars { color: #875a00; white-space: nowrap; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 15px; }
.week div { text-align: center; padding: 7px 0; background: var(--paper); border-radius: 9px; }
.week small { display: block; color: var(--muted); }
.week .active-day { background: #e4f2d6; }
.local-note { color: var(--muted); font-size: .83rem; }
dialog { padding: 0; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 22px; width: min(610px, calc(100% - 24px)); max-height: calc(100dvh - 24px); box-shadow: 0 18px 70px #162b2670; }
dialog::backdrop { background: #182b25a6; }
.dialog-top { display: flex; gap: 14px; align-items: center; padding: 13px 20px; border-bottom: 1px solid var(--line); }
.dialog-top b { white-space: nowrap; color: var(--muted); font-size: .82rem; }
.close { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 0; background: var(--paper); border-radius: 10px; }
.question { padding: 21px 24px 16px; }
.question h2, .result h2 { font-size: clamp(1.4rem, 4vw, 2rem); margin: 6px 0; letter-spacing: -.04em; }
.question h2:focus, .result h2:focus { outline: none; }
.question > p:not(.eyebrow), .result p { color: var(--muted); }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.option { display: flex; align-items: center; gap: 8px; text-align: left; background: #fff; border: 1px solid #d7dfd1; box-shadow: 0 2px 0 #e6ebe2; border-radius: 11px; min-height: 52px; padding: 8px; font-weight: 720; }
.option span { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 6px; background: #eaf0e5; color: #4a594b; font-size: .73rem; }
.option:hover:not(:disabled), .option[aria-pressed=true] { border-color: #87ae6e; background: #f1fae9; }
.option.right, .feedback.right { background: #e8f6dd; border-color: #a3c88a; }
.option.wrong, .feedback.wrong { background: #fff0e8; border-color: #e8b6a1; }
.feedback { margin: 0 24px 14px; padding: 9px 12px; border: 1px solid; border-radius: 10px; font-size: .9rem; }
.feedback p { margin-top: 3px; }
.dialog-bottom { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 24px 16px; border-top: 1px solid var(--line); }
.result { padding: 22px; text-align: center; }
.result img { width: 122px; }
.result-stars { font-size: 2rem; letter-spacing: .17em; margin: 8px 0; }
.result-actions { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.result details { margin-top: 14px; padding: 10px; background: var(--paper); border-radius: 10px; text-align: left; }
.result summary { cursor: pointer; font-weight: 750; }
.result details p { margin-top: 9px; font-size: .88rem; }
@media (max-width: 1050px) {
  .layout { grid-template-columns: 179px minmax(0, 1fr) 216px; column-gap: 17px; padding-right: 17px; }
  .sidebar { padding-inline: 10px; }
  .metric small { font-size: .65rem; }
}
@media (max-width: 870px) {
  .layout { grid-template-columns: 164px minmax(0, 1fr); column-gap: 20px; padding-right: 20px; }
  .sidebar { grid-row: span 2; }
  main { padding-bottom: 22px; }
  .rail { grid-column: 2; padding-top: 0; padding-bottom: 16px; }
}
@media (max-width: 620px) {
  .layout { display: block; padding: 0 14px 65px; }
  .sidebar { display: contents; }
  .brand { margin: 14px 0 0; padding: 0; }
  .brand-icon { width: 35px; height: 35px; font-size: 20px; }
  .brand strong { font-size: 22px; }
  .nav-label, .sidebar-foot { display: none; }
  nav { position: fixed; z-index: 3; bottom: 0; left: 0; right: 0; grid-template-columns: repeat(3, 1fr); background: #fff; border-top: 1px solid var(--line); padding: 5px 8px max(5px, env(safe-area-inset-bottom)); }
  nav a { justify-content: center; flex-direction: column; gap: 2px; padding: 4px; font-size: .72rem; }
  main { padding-top: 23px; }
  .hero { border-radius: 18px; min-height: 250px; padding: 19px 14px; }
  .hero h2 { font-size: clamp(2rem, 7.5vw, 2.9rem); }
  .hero p { font-size: .82rem; max-width: 17ch; }
  .hero-art { right: 1%; bottom: 0; width: 45%; height: 82%; }
  .s1, .s2 { top: 16%; }.s3, .s4 { bottom: 13%; }
  .wide { display: none; }
  .lesson-row, .chapter-head { gap: 8px; }
  .lesson-card { padding: 8px 10px; }
  .page-top { align-items: start; }
  .level { margin-top: 2px; padding: 4px 6px; }
  .question { padding-inline: 14px; }
  .feedback { margin-inline: 14px; }
  .dialog-bottom { padding-inline: 14px; }
}
