:root {
  color-scheme: light;
  --page: #f6f7f5;
  --surface: #fff;
  --surface-soft: #fbfcfa;
  --ink: #26332e;
  --muted: #6e7b73;
  --muted-dark: #64716b;
  --line: #e8ece8;
  --green: #45876d;
  --green-deep: #34775d;
  --green-soft: #eaf3ed;
  --red: #ad544b;
  --red-soft: #fff0ed;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "DM Sans", "Segoe UI", sans-serif;
  --mono: "DM Mono", Consolas, monospace;
  font-family: var(--sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 0; background: var(--page); color: var(--ink); }
button, textarea { font: inherit; }
button { color: inherit; }
.app-shell { width: min(1192px, calc(100% - 72px)); min-height: 100vh; margin: 0 auto; display: flex; flex-direction: column; }
.topbar { height: 82px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: 10px; align-items: center; color: var(--ink); text-decoration: none; font-size: 19px; font-weight: 700; letter-spacing: -1px; }
.brand-mark { width: 23px; height: 23px; padding: 4px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; border-radius: 7px; background: var(--green); transform: rotate(-8deg); }
.brand-mark span { border-radius: 2px; background: #e7f2eb; }
.brand-mark span:nth-child(2) { opacity: .7; }.brand-mark span:nth-child(3) { opacity: .55; }
.main-nav { display: flex; gap: 31px; align-items: center; height: 100%; }
.nav-link { height: 100%; padding: 0 2px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted-dark); cursor: pointer; font-size: 13px; font-weight: 500; transition: color .18s, border-color .18s; }
.nav-link:hover, .nav-link.active { color: var(--ink); }.nav-link.active { border-bottom-color: var(--green); }
.topbar-actions { display: flex; align-items: center; gap: 17px; }
.language-switch { display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.language-button { min-width: 24px; padding: 4px 5px; border: 0; border-radius: 4px; background: transparent; color: var(--muted-dark); cursor: pointer; font-size: 8px; font-weight: 600; }
.language-button.selected { background: var(--green-soft); color: var(--green-deep); }
.language-button:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.streak-pill { display: flex; align-items: center; gap: 7px; color: var(--muted-dark); font-size: 11px; }
.streak-dot, .live-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: #83b290; box-shadow: 0 0 0 3px rgba(131,178,144,.13); }
.icon-button { display: grid; width: 33px; height: 33px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer; color: var(--muted-dark); }
.icon-button svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.moon-icon { display: none; }
body.dark .sun-icon { display: none; }
body.dark .moon-icon { display: block; }
main { flex: 1; padding: 58px 0 65px; position: relative; }
.view { position: relative; animation: appear .28s ease both; }.view[hidden] { display: none; }
@keyframes appear { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 39px; }
.eyebrow { margin: 0 0 13px; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 1.45px; }
.eyebrow-line { width: 15px; height: 1px; display: inline-block; background: #8aa897; }
h1 { margin: 0; font-size: clamp(32px, 4vw, 41px); font-weight: 500; letter-spacing: -1.7px; line-height: 1.15; }
.serif-accent { color: var(--green); font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -1.2px; }
.page-description { margin: 10px 0 0; color: var(--muted-dark); font-size: 13px; }
.mode-label { display: flex; align-items: center; gap: 9px; margin-bottom: 5px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 30px; background: var(--surface); color: var(--muted-dark); font-size: 11px; }
.mode-label .live-dot { width: 6px; height: 6px; }
.practice-layout { display: grid; grid-template-columns: minmax(0, 1fr) 248px; gap: 23px; align-items: start; }
.practice-main { min-width: 0; }
.practice-toolbar { height: 43px; display: flex; justify-content: space-between; align-items: flex-start; }
.text-source { display: flex; align-items: center; gap: 9px; color: var(--muted-dark); font-size: 11px; }
.source-icon { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 6px; background: #e8eee8; color: var(--green); font-family: var(--serif); font-size: 14px; }
.toolbar-divider { width: 1px; height: 12px; background: var(--line); }
#practice-length { color: var(--muted); font-size: 10px; }
.subtle-button { display: flex; align-items: center; gap: 6px; padding: 5px 0; border: 0; background: transparent; color: var(--muted-dark); cursor: pointer; font-size: 11px; }
.subtle-button:hover { color: var(--green-deep); }.subtle-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.typing-card, .test-card, .aside-card, .keyboard-card { border: 1px solid var(--line); border-radius: 11px; background: var(--surface); box-shadow: 0 3px 14px rgba(36,54,45,.025); }
.typing-card { overflow: hidden; }
.passage-wrap { min-height: 236px; position: relative; padding: 28px 30px 24px; cursor: text; }
.passage { min-height: 179px; color: var(--muted); font-family: var(--mono); font-size: 15px; line-height: 2.15; letter-spacing: -.3px; white-space: pre-wrap; overflow-wrap: anywhere; }
.char { position: relative; }.char.correct { color: var(--green-deep); }.char.incorrect { color: var(--red); background: var(--red-soft); border-radius: 2px; }
.char.current::before { content: ""; position: absolute; top: 2px; bottom: 1px; left: -2px; width: 2px; border-radius: 2px; background: var(--green); animation: cursorBlink 1s steps(2, start) infinite; }
.char.current.incorrect::before { background: var(--red); }
@keyframes cursorBlink { to { visibility: hidden; } }
.typing-input { position: absolute; width: 1px; height: 1px; top: 2px; left: 2px; padding: 0; border: 0; opacity: .01; resize: none; overflow: hidden; }
.focus-prompt { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); padding: 10px 15px; border: 1px solid var(--line); border-radius: 30px; background: var(--surface); color: var(--muted-dark); box-shadow: 0 3px 12px rgba(42,57,49,.05); cursor: pointer; font-size: 11px; white-space: nowrap; transition: opacity .2s, transform .2s; }
.focus-prompt:hover { color: var(--green-deep); transform: translate(-50%,-52%); }.focus-prompt.is-hidden { opacity: 0; pointer-events: none; }
.typing-card-footer, .test-footer { min-height: 42px; padding: 0 19px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
kbd { padding: 2px 4px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface-soft); font-family: var(--mono); font-size: 8px; }
.input-hint { display: flex; align-items: center; gap: 6px; }.tiny-key { width: 10px; height: 8px; border: 1px solid #b8c2bc; border-radius: 2px; }
.practice-stats { min-height: 96px; padding: 22px 4px 0; display: flex; align-items: flex-start; gap: 42px; }
.stat-block { min-width: 75px; }.stat-label { display: block; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: 1.15px; }
.stat-value { display: flex; align-items: baseline; gap: 5px; margin-top: 5px; color: var(--ink); font-family: var(--mono); font-size: 23px; letter-spacing: -.8px; }
.stat-value small, .test-live-stats small { color: var(--muted); font-family: var(--sans); font-size: 10px; letter-spacing: 0; }
.stat-note { display: flex; align-items: center; gap: 7px; margin: 13px 0 0 auto; color: var(--muted); font-size: 10px; }.note-sparkle { color: #90b59a; font-size: 14px; }
.practice-aside { display: flex; flex-direction: column; gap: 13px; }
.aside-card { padding: 16px 17px; }.aside-card-top { display: flex; align-items: center; gap: 8px; }
.mini-icon { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 7px; font-size: 15px; }.soft-green { background: var(--green-soft); color: var(--green); }
.card-kicker { color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: 1.1px; }
.session-message { margin: 15px 0 13px; font-family: var(--serif); font-size: 17px; font-style: italic; }
.session-divider { height: 1px; background: var(--line); margin-bottom: 12px; }
.session-row { display: flex; justify-content: space-between; align-items: baseline; padding: 5px 0; color: var(--muted-dark); font-size: 10px; }.session-row strong { color: var(--ink); font-family: var(--mono); font-size: 13px; font-weight: 500; }.session-row small { color: var(--muted); font-family: var(--sans); font-size: 9px; }
.tip-card { position: relative; padding-top: 16px; background: #f1f5f0; border-color: #e8eee7; }.tip-icon { position: absolute; right: 16px; top: 13px; color: #8cac95; font-size: 17px; }.tip-card .card-kicker { margin: 0; }
.tip-copy { max-width: 190px; margin: 12px 0 14px; color: #55655c; font-family: var(--serif); font-size: 14px; line-height: 1.55; }.tip-caption { color: #99a89d; font-size: 8px; letter-spacing: .9px; }
.aside-lesson-link { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); text-align: left; cursor: pointer; }.aside-lesson-link:hover { border-color: #c9d8ce; }
.lesson-link-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 7px; background: #f2f1e9; color: #a69b68; font-size: 15px; }.aside-lesson-link strong, .aside-lesson-link small { display: block; }.aside-lesson-link strong { font-size: 10px; font-weight: 600; }.aside-lesson-link small { margin-top: 4px; color: var(--muted); font-size: 9px; }.link-arrow { margin-left: auto; color: var(--muted); font-size: 13px; }

.timer-display { display: flex; align-items: center; gap: 9px; margin-bottom: 3px; color: var(--green-deep); font-family: var(--mono); font-size: 26px; }.timer-icon { color: #8eaa96; font-size: 24px; }
.test-controls { display: flex; align-items: center; justify-content: space-between; margin: -5px 0 16px; }
.duration-picker { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: #eff2ef; }
.duration-button { padding: 7px 12px; border: 0; border-radius: 5px; background: transparent; color: var(--muted-dark); cursor: pointer; font-size: 10px; }.duration-button.selected { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(30,50,40,.1); }
.random-note { color: var(--muted); font-size: 10px; }.random-note span { margin-right: 5px; color: var(--green); font-size: 14px; }
.test-card { overflow: hidden; }.test-passage-wrap { min-height: 246px; padding: 28px 30px 24px; position: relative; cursor: text; }.test-passage { min-height: 186px; }
.test-footer { min-height: 47px; }.test-footer .subtle-button { font-size: 10px; }
.test-live-stats { display: flex; gap: 65px; padding: 24px 6px; }.test-live-stats > div { min-width: 74px; }.test-live-stats strong { display: block; margin-top: 6px; font-family: var(--mono); font-size: 21px; font-weight: 400; }.test-live-stats small { font-weight: 400; }
.results-overlay { position: absolute; inset: 150px 0 0; z-index: 2; display: grid; place-items: center; padding: 22px; background: rgba(246,247,245,.75); backdrop-filter: blur(5px); }.results-overlay[hidden] { display: none; }
.results-card { width: min(430px, 100%); padding: 30px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: 0 14px 40px rgba(33,50,41,.12); text-align: center; animation: appear .25s ease both; }.results-flower { display: inline-block; margin-bottom: 12px; color: #85ac90; font-size: 22px; }.results-card .eyebrow { justify-content: center; margin-bottom: 9px; }.results-card h2 { margin: 0; font-size: 30px; font-weight: 500; letter-spacing: -1.1px; }.results-subtitle { margin: 8px 0 21px; color: var(--muted-dark); font-size: 11px; }
.results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--line); text-align: left; }.results-grid > div { padding: 12px 14px; background: var(--surface); }.results-grid span { display: block; color: var(--muted); font-size: 9px; }.results-grid strong { display: block; margin-top: 4px; font-family: var(--mono); font-size: 21px; font-weight: 400; }.results-grid strong small { font-family: var(--sans); font-size: 10px; }
.result-actions { display: grid; justify-items: center; gap: 10px; margin-top: 20px; }.primary-button { display: inline-flex; gap: 16px; align-items: center; justify-content: center; padding: 11px 16px; border: 0; border-radius: 6px; background: var(--green); color: white; cursor: pointer; font-size: 11px; }.primary-button:hover { background: var(--green-deep); }.text-button { padding: 5px; border: 0; background: transparent; color: var(--muted-dark); cursor: pointer; font-size: 10px; }

.lessons-heading { margin-bottom: 34px; }.lesson-progress-summary { display: flex; align-items: center; gap: 10px; margin-bottom: 2px; }.lesson-progress-summary > span:last-child strong, .lesson-progress-summary > span:last-child small { display: block; }.lesson-progress-summary strong { font-size: 10px; font-weight: 600; }.lesson-progress-summary small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.progress-ring { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--green) var(--progress, 0%), #e7ece8 0); position: relative; font-family: var(--mono); font-size: 8px; }.progress-ring::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--page); }.progress-ring span { position: relative; z-index: 1; }
.lesson-layout { display: grid; grid-template-columns: 225px minmax(0, 1fr); gap: 24px; align-items: start; }.lesson-sidebar { padding: 15px 0 0; }.sidebar-heading { margin: 0 0 12px 4px; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: 1.2px; }
.lesson-list { display: flex; flex-direction: column; gap: 5px; }.lesson-option { display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 10px; border: 1px solid transparent; border-radius: 8px; background: transparent; text-align: left; cursor: pointer; }.lesson-option:hover { background: rgba(255,255,255,.55); }.lesson-option.selected { border-color: var(--line); background: var(--surface); box-shadow: 0 2px 8px rgba(36,54,45,.025); }.lesson-index { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 8px; background: #eef1ed; color: #77847c; font-family: var(--mono); font-size: 10px; }.lesson-option.selected .lesson-index { background: var(--green-soft); color: var(--green-deep); }.lesson-option.completed .lesson-index { background: var(--green); color: white; }.lesson-option strong, .lesson-option small { display: block; }.lesson-option strong { font-size: 10px; font-weight: 600; }.lesson-option small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.path-note { display: flex; gap: 9px; margin: 23px 4px 0; padding: 12px; border-radius: 8px; background: #eef3ee; }.path-note > span { color: #8aab91; }.path-note p { margin: 0; color: #718078; font-size: 9px; line-height: 1.6; }
.lesson-main { min-width: 0; }.lesson-detail { position: relative; padding: 19px 22px 17px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }.lesson-detail-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }.lesson-level { color: var(--green); font-size: 8px; font-weight: 700; letter-spacing: 1px; }.lesson-detail h2 { margin: 7px 0 0; font-size: 20px; font-weight: 500; letter-spacing: -.5px; }.lesson-detail p { max-width: 570px; margin: 8px 0 0; color: var(--muted-dark); font-size: 10px; line-height: 1.7; }.lesson-duration { padding: 6px 9px; border-radius: 20px; background: var(--surface-soft); color: var(--muted); font-size: 9px; white-space: nowrap; }.lesson-practice-label { margin-top: 14px; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: 1px; }.lesson-practice-text { margin-top: 4px; color: var(--green-deep); font-family: var(--mono); font-size: 15px; letter-spacing: .4px; }.lesson-progress { height: 3px; overflow: hidden; margin-top: 13px; border-radius: 3px; background: #edf0ed; }.lesson-progress-bar { width: 0; height: 100%; border-radius: inherit; background: #73a080; transition: width .2s; }.lesson-progress-caption { margin-top: 6px; color: var(--muted); font-size: 8px; }
.keyboard-card { margin-top: 13px; padding: 16px 18px 13px; }.keyboard-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }.keyboard-header .card-kicker { margin: 0; }.keyboard-caption { margin: 5px 0 0; color: var(--muted); font-size: 9px; }.keyboard-tools { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }.layout-picker { display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-soft); }.layout-picker-label { padding: 0 5px; color: var(--muted); font-size: 7px; font-weight: 700; letter-spacing: .8px; }.layout-button { padding: 5px 7px; border: 0; border-radius: 4px; background: transparent; color: var(--muted-dark); cursor: pointer; font-size: 8px; font-weight: 600; }.layout-button.selected { background: var(--surface); color: var(--green-deep); box-shadow: 0 1px 3px rgba(30,50,40,.1); }.layout-button:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }.keyboard-status { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 7px; font-weight: 700; letter-spacing: .8px; }.keyboard-status .live-dot { width: 5px; height: 5px; }
.keyboard { display: flex; flex-direction: column; gap: 5px; width: 100%; max-width: 496px; margin: 18px auto 0; }.key-row { display: flex; justify-content: center; gap: 4px; }.key { width: 30px; height: 27px; display: grid; place-items: center; border: 1px solid #e8ece8; border-bottom-width: 2px; border-radius: 4px; background: #fafbf9; color: #8a958e; font-family: var(--mono); font-size: 9px; text-transform: lowercase; transition: background .12s, color .12s, border-color .12s, transform .12s; }.key.home-key { background: #f0f3ef; }.key.active-key { border-color: #78a187; border-bottom-color: #609074; background: #dfede2; color: #397153; transform: translateY(-2px); }.key.space-key { width: 175px; }.keyboard-legend { display: flex; justify-content: center; gap: 16px; margin-top: 13px; color: var(--muted); font-size: 8px; }.keyboard-legend span { display: flex; align-items: center; gap: 5px; }.keyboard-legend i { width: 8px; height: 8px; display: inline-block; border: 1px solid #e0e6e1; border-radius: 2px; background: #fafbf9; }.keyboard-legend .legend-active { border-color: #78a187; background: #dfede2; }.keyboard-legend .legend-home { background: #f0f3ef; }
.site-footer { min-height: 49px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }.footer-heart { margin-left: 4px; color: #88aa92; }

body.dark { color-scheme: dark; --page: #18211d; --surface: #202b25; --surface-soft: #252f29; --ink: #e3ebe5; --muted: #89978f; --muted-dark: #abb6af; --line: #344039; --green: #80b497; --green-deep: #9bc9aa; --green-soft: #2a3a30; --red: #e79589; --red-soft: #482f2b; }
body.dark .passage { color: #97a69c; }
body.dark .brand-mark { background: #5b9874; }body.dark .brand-mark span { background: #e5f2e8; }body.dark .source-icon, body.dark .lesson-index { background: #2b372f; }body.dark .tip-card, body.dark .path-note { background: #25332a; border-color: #34453a; }body.dark .tip-copy, body.dark .path-note p { color: #b6c5ba; }body.dark .duration-picker { background: #202923; }body.dark .duration-button.selected, body.dark .layout-button.selected { background: #354139; }body.dark .layout-picker, body.dark .language-switch { background: #202923; }body.dark .language-button.selected { background: #354139; }body.dark .focus-prompt { box-shadow: 0 3px 12px rgba(0,0,0,.2); }body.dark .typing-card, body.dark .test-card, body.dark .aside-card, body.dark .keyboard-card, body.dark .lesson-detail, body.dark .results-card { box-shadow: none; }body.dark .key { border-color: #39453d; border-bottom-color: #46534a; background: #26312a; color: #b2bdb5; }body.dark .key.home-key { background: #303b33; }body.dark .key.active-key { border-color: #76a587; background: #314a39; color: #b5dfc2; }body.dark .test-live-stats strong { color: var(--ink); }body.dark .results-overlay { background: rgba(24,33,29,.76); }body.dark .progress-ring::before { background: var(--page); }

@media (max-width: 900px) {
  .app-shell { width: min(100% - 44px, 740px); }.practice-layout { grid-template-columns: minmax(0, 1fr) 210px; gap: 15px; }.practice-stats { gap: 22px; }.stat-note { font-size: 9px; }.lesson-layout { grid-template-columns: 190px minmax(0,1fr); gap: 16px; }.key { width: 25px; height: 25px; }.keyboard { gap: 4px; }.key-row { gap: 3px; }
}
@media (max-width: 680px) {
  .app-shell { width: calc(100% - 34px); }.topbar { height: 68px; }.brand { font-size: 17px; }.main-nav { gap: 17px; }.nav-link { font-size: 11px; }.streak-pill { display: none; }.topbar-actions { gap: 0; }main { padding: 39px 0 43px; }.page-heading { margin-bottom: 28px; }.page-description { max-width: 330px; font-size: 12px; }.mode-label { font-size: 9px; padding: 8px 10px; }.practice-layout { grid-template-columns: 1fr; }.practice-aside { display: grid; grid-template-columns: 1fr 1fr; }.aside-lesson-link { grid-column: 1 / -1; }.passage-wrap { min-height: 226px; padding: 22px 20px; }.passage { font-size: 14px; line-height: 2.05; }.practice-stats { gap: 24px; min-height: 83px; }.stat-note { display: none; }.test-passage-wrap { padding: 23px 20px; min-height: 232px; }.test-live-stats { justify-content: space-between; gap: 10px; }.test-live-stats > div { min-width: 0; }.results-overlay { inset: 115px 0 0; }.lesson-layout { grid-template-columns: 1fr; gap: 16px; }.lesson-sidebar { padding: 0; }.lesson-list { flex-direction: row; overflow-x: auto; padding: 0 0 5px; }.lesson-option { min-width: 142px; width: auto; }.path-note { display: none; }.lessons-heading { align-items: center; }.lesson-progress-summary { gap: 7px; }.lesson-progress-summary > span:last-child { display: none; }.keyboard-card { padding: 14px 10px; }.key { width: min(5.5vw, 28px); height: 25px; font-size: 8px; }.key-row { gap: 2px; }.keyboard { margin-top: 16px; }.keyboard-status { font-size: 6px; }.lesson-detail { padding: 16px; }
}
@media (max-width: 430px) {
  .app-shell { width: calc(100% - 28px); }.main-nav { gap: 11px; }.nav-link { font-size: 10px; }.topbar { height: auto; min-height: 75px; padding-top: 7px; flex-wrap: wrap; align-content: space-between; }.main-nav { order: 3; flex: 0 0 100%; height: 31px; justify-content: center; gap: 26px; }.topbar-actions { gap: 6px; }.language-switch { padding: 2px; }.language-button { min-width: 22px; padding: 4px; }.brand { gap: 7px; font-size: 16px; }.brand-mark { width: 20px; height: 20px; }.icon-button { width: 30px; height: 30px; }.page-heading { align-items: flex-start; gap: 10px; }.mode-label { margin-top: 7px; white-space: nowrap; }.practice-stats { justify-content: space-between; gap: 8px; }.stat-block { min-width: 64px; }.stat-value { font-size: 20px; }.practice-aside { grid-template-columns: 1fr; }.aside-lesson-link { grid-column: auto; }.tip-card { min-height: 145px; }.test-controls { align-items: flex-start; }.random-note { margin-top: 9px; font-size: 9px; }.test-live-stats { gap: 7px; }.test-live-stats strong { font-size: 17px; }.test-live-stats .stat-label { font-size: 7px; }.lesson-option { min-width: 128px; padding: 9px 7px; gap: 7px; }.lesson-option strong { font-size: 9px; }.lesson-index { width: 25px; height: 25px; flex-basis: 25px; }.key { width: 5.3vw; height: 22px; }.key.space-key { width: 32vw; }.keyboard-card { padding-inline: 8px; }.site-footer { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
@media (max-width: 680px) { .lesson-layout { grid-template-columns: minmax(0, 1fr); } }
.ad-slot { overflow: hidden; border: 1px dashed #d8e0da; border-radius: 9px; background: var(--surface-soft); }
.ad-slot-sidebar { min-height: 180px; }
.ad-slot-footer { width: min(100%, 728px); min-height: 100px; margin: 20px auto 0; }
.ad-placeholder { min-height: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 18px; text-align: center; }
.ad-placeholder[hidden] { display: none; }
.ad-label { color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.ad-placeholder p { max-width: 280px; margin: 0; color: var(--muted-dark); font-size: 10px; line-height: 1.5; }
.ad-slot ins.adsbygoogle { display: block; min-height: 100px; }
.ad-slot-sidebar ins.adsbygoogle { min-height: 180px; }
body.dark .ad-slot { border-color: #45554a; }
