/* Typing tutor. One stylesheet, tokens first, dark mode via data-theme or the system. */
:root {
  --paper: #fbfaf7; --paper-2: #f3f1ea; --card: #ffffff; --line: #e6e2d8; --line-2: #d6d1c4;
  --ink: #1b1f2a; --ink-2: #4c5364; --muted: #7a8090;
  --accent: #2f6fed; --accent-ink: #ffffff; --accent-soft: #e6eefc;
  --ok: #17a673; --ok-soft: #dff5ea; --bad: #e0533d; --bad-soft: #fde5e0; --gold: #f2b53d; --gold-soft: #fff3d6;
  --f-l5: #f7c6d9; --f-l4: #fbd9a8; --f-l3: #d6efa6; --f-l2: #b9dcf7; --f-l1: #e4e4e8;
  --f-r5: #f7c6d9; --f-r4: #fbd9a8; --f-r3: #d6efa6; --f-r2: #b9dcf7; --f-r1: #e4e4e8;
  --radius: 12px; --radius-sm: 8px; --shadow: 0 1px 2px rgba(20,24,40,.06), 0 8px 24px rgba(20,24,40,.06);
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --brand-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --key-edge: #cfc9bb; --key-edge-accent: #1f4fb8;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --paper: #13161d; --paper-2: #1a1e27; --card: #1f2430; --line: #2c3240; --line-2: #3a4152; --ink: #eceef3; --ink-2: #b6bcc9; --muted: #8b93a5; --accent: #5b8dff; --accent-soft: #1f2d4d; --ok: #2fc48c; --ok-soft: #173a2d; --bad: #f0715c; --bad-soft: #4a221c; --gold: #f5c04f; --gold-soft: #3f3418; --f-l5: #5a2f44; --f-l4: #5a4526; --f-l3: #36502a; --f-l2: #274461; --f-l1: #2f3542; --f-r5: #5a2f44; --f-r4: #5a4526; --f-r3: #36502a; --f-r2: #274461; --f-r1: #2f3542; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3); --key-edge: #3a4152; --key-edge-accent: #2d5fcc; color-scheme: dark; } }
:root[data-theme="dark"] { --paper: #13161d; --paper-2: #1a1e27; --card: #1f2430; --line: #2c3240; --line-2: #3a4152; --ink: #eceef3; --ink-2: #b6bcc9; --muted: #8b93a5; --accent: #5b8dff; --accent-soft: #1f2d4d; --ok: #2fc48c; --ok-soft: #173a2d; --bad: #f0715c; --bad-soft: #4a221c; --gold: #f5c04f; --gold-soft: #3f3418; --f-l5: #5a2f44; --f-l4: #5a4526; --f-l3: #36502a; --f-l2: #274461; --f-l1: #2f3542; --f-r5: #5a2f44; --f-r4: #5a4526; --f-r3: #36502a; --f-r2: #274461; --f-r1: #2f3542; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3); --key-edge: #3a4152; --key-edge-accent: #2d5fcc; color-scheme: dark; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: 1rem; top: -3rem; background: var(--ink); color: var(--paper); padding: .5rem .8rem; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip-link:focus { top: 1rem; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
html { scrollbar-gutter: stable; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: 2rem; letter-spacing: -.02em; } h2 { font-size: 1.35rem; } h3 { font-size: 1.05rem; }
.type-mono { font-family: var(--mono); }
p { margin: 0 0 .8em; }
code, kbd { font-family: var(--mono); font-size: .9em; background: var(--paper-2); padding: .05em .35em; border-radius: 5px; }
kbd { border: 1px solid var(--line-2); border-bottom-width: 2px; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .fine { font-size: .8rem; } .center { text-align: center; } .nowrap { white-space: nowrap; }
.font-mono { font-family: var(--mono); } .font-sans { font-family: var(--sans); } .font-serif { font-family: var(--serif); }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 700; color: var(--muted); margin-bottom: .35rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: .5rem 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; height: 2.6rem; padding: 0 1.1rem; border-radius: var(--radius-sm); border: 1px solid transparent; border-bottom-width: 3px; font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: transform .05s, background .15s, border-bottom-width .05s; }
.btn:active { transform: translateY(2px); border-bottom-width: 1px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--key-edge-accent); } .btn-primary:hover { filter: brightness(1.06); }
.btn-accent { background: var(--gold); color: #2a2000; border-color: #c48f1e; } .btn-accent:hover { filter: brightness(1.04); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line-2); border-bottom-color: var(--key-edge); } .btn-ghost:hover { background: var(--paper-2); }
.btn-danger { background: var(--bad); color: #fff; border-color: #b23a28; }
.btn-sm { height: 2.1rem; padding: 0 .8rem; font-size: .85rem; } .btn-lg { height: 3.1rem; padding: 0 1.6rem; font-size: 1.05rem; } .btn-block { width: 100%; }
.btn kbd { background: rgba(255,255,255,.2); border: 0; color: inherit; font-size: .75em; padding: .1em .4em; }
.btn-ghost kbd { background: var(--paper-2); }
/* Readable by a screen reader, invisible on screen. The waitlist's email field
   needs a real label and has no room for a visible one beside the button. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.btn-row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-top: 1rem; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; } .link-btn.danger { color: var(--bad); }
form.button_to { display: contents; }

/* Cards, pages */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.page { max-width: 1120px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
.page.narrow { max-width: 720px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: .1rem; } .page-head p { margin: 0; }
.section { margin-top: 1.25rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1.25rem; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
.lead { font-size: 1.15rem; color: var(--ink-2); }

/* App header */
.app-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.app-wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; display: flex; align-items: center; gap: 1.25rem; height: 3.5rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); font-weight: 700; text-decoration: none !important; }
.brand-name { font-family: var(--brand-mono); font-weight: 700; letter-spacing: -.02em; font-size: 1.05rem; } .brand-name b { color: var(--accent); font-weight: 700; }
.brand-mark svg { display: block; }
.app-nav { display: flex; gap: .15rem; margin-left: .5rem; }
.nav-item { color: var(--ink-2); padding: .4rem .7rem; border-radius: 8px; font-weight: 500; font-size: .95rem; }
.nav-item:hover { background: var(--paper-2); text-decoration: none; } .nav-item.active { background: var(--accent-soft); color: var(--accent); }
.app-tools { margin-left: auto; display: flex; gap: .75rem; align-items: center; }
.menu { position: relative; } .menu summary { list-style: none; cursor: pointer; } .menu summary::-webkit-details-marker { display: none; }
.menu-button { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .5rem .3rem .3rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); }
.menu-button .chev { font-size: 1em; color: var(--muted); }
.menu-panel { position: absolute; right: 0; top: calc(100% + .4rem); min-width: 16rem; width: max-content; max-width: 22rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: .4rem; z-index: 30; }
.menu-section { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: .4rem .6rem .2rem; }
.menu-row { display: flex; align-items: center; gap: .5rem; width: 100%; min-width: 100%; text-align: left; padding: .5rem .6rem; border-radius: 8px; color: var(--ink); background: none; border: 0; font: inherit; cursor: pointer; }
.menu-row:hover { background: var(--paper-2); text-decoration: none; } .menu-row.current { font-weight: 600; cursor: default; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: color-mix(in srgb, var(--avatar) 22%, transparent); border: 2px solid var(--avatar); font-size: 1rem; }
.avatar.sm { width: 1.5rem; height: 1.5rem; font-size: .8rem; border-width: 1.5px; } .avatar.lg { width: 3rem; height: 3rem; font-size: 1.5rem; }
.tabbar { display: none; }
@media (max-width: 860px) {
  .app-nav { display: none; } .menu-name { display: none; }
  .tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 25; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--card); border-top: 1px solid var(--line); padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: .1rem; font-size: .7rem; font-weight: 600; color: var(--muted); padding: .3rem 0; border-radius: 8px; }
  .tabbar a span { font-size: 1.25rem; line-height: 1; } .tabbar a.active { color: var(--accent); }
  .app-main { padding-bottom: 5rem; }
  body.focus .tabbar { display: none; }
}
.impersonation-bar { background: var(--gold); color: #2a2000; text-align: center; padding: .4rem; font-size: .9rem; }
.impersonation-bar .link-btn { color: inherit; text-decoration: underline; margin-left: .5rem; }
.touch-notice { position: fixed; bottom: 1rem; left: 1rem; right: 1rem; background: var(--card); border: 1px solid var(--line-2); padding: .8rem 1rem; border-radius: var(--radius); box-shadow: var(--shadow); font-size: .9rem; z-index: 40; }

/* Flash */
.flash { position: fixed; top: 4.2rem; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: 999px; font-size: .9rem; z-index: 50; box-shadow: var(--shadow); cursor: pointer; transition: opacity .4s; }
.flash-alert { background: var(--bad); color: #fff; } .flash.gone { opacity: 0; pointer-events: none; }

/* Forms */
.form .field { margin-bottom: 1rem; }
.form label, .field > label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="date"], textarea, .listbox-button { width: 100%; height: 2.8rem; padding: 0 .85rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--card); color: var(--ink); font: inherit; font-size: 1rem; }
textarea { height: auto; padding: .7rem .85rem; line-height: 1.5; resize: vertical; }
input:focus, textarea:focus, .listbox-button:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form-errors { background: var(--bad-soft); color: var(--bad); border-radius: var(--radius-sm); padding: .6rem .85rem; margin-bottom: 1rem; font-size: .9rem; overflow-wrap: anywhere; }
.inline-form { display: flex; gap: .5rem; align-items: center; } .inline-form input { height: 2.1rem; width: 16rem; }
.password-wrap { position: relative; } .password-wrap input { padding-right: 2.8rem; }
.password-toggle { position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); width: 2.2rem; height: 2.2rem; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; color: var(--muted); cursor: pointer; border-radius: 6px; }
.password-toggle:hover { color: var(--ink); background: var(--paper-2); }
input[type="checkbox"] { width: 1.15rem; height: 1.15rem; accent-color: var(--accent); }
input[type="radio"] { accent-color: var(--accent); }
.toggle-inline { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; } @media (max-width: 640px) { .choice-grid { grid-template-columns: 1fr; } }
.choice { display: flex; gap: .6rem; align-items: center; padding: .75rem .9rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm); cursor: pointer; background: var(--card); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice-body { display: flex; flex-direction: column; } .choice.pill { padding: .45rem .8rem; border-radius: 999px; } .choice.pill input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.choice.swatch { padding: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--sw); border: 3px solid transparent; justify-content: center; }
.choice.swatch input { position: absolute; opacity: 0; width: 0; height: 0; } .choice.swatch:has(input:checked) { border-color: var(--ink); }
.emoji-row .choice { font-size: 1.2rem; }
.saved-toast { background: var(--ok-soft); color: var(--ok); padding: .3rem .7rem; border-radius: 999px; font-size: .85rem; font-weight: 600; } .saved-toast.bad { background: var(--bad-soft); color: var(--bad); }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--line); cursor: pointer; }
.setting-row:first-of-type { border-top: 0; } .setting-row .listbox { width: 12rem; flex: none; }
.setting-label { display: flex; flex-direction: column; font-weight: 500; } .setting-note { font-weight: 400; color: var(--muted); font-size: .85rem; }
.danger-zone { border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.settings-row { display: grid; grid-template-columns: 14rem 1fr; gap: 1.5rem; padding: 1.4rem 0; border-top: 1px solid var(--line); } .settings-row:first-of-type { border-top: 0; padding-top: 0; }
.settings-row h2 { font-size: 1.05rem; margin: 0 0 .2rem; } .settings-row .why { color: var(--muted); font-size: .88rem; margin: 0; }
@media (max-width: 720px) { .settings-row { grid-template-columns: 1fr; gap: .6rem; } }
.plan-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.2rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--paper-2); }
.plan-card .plan-name { font-weight: 700; font-size: 1.1rem; } .plan-card .plan-sub { color: var(--muted); font-size: .9rem; }
.status-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--accent-soft); color: var(--accent); } .status-chip::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.status-chip.ok { background: var(--ok-soft); color: var(--ok); } .status-chip.warn { background: var(--gold-soft); color: #8a5a00; } .status-chip.off { background: var(--paper-2); color: var(--muted); }

/* Listbox */
.listbox { position: relative; } .listbox-native { width: 100%; height: 2.8rem; } .listbox[data-listbox-ready] .listbox-native { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.listbox-button { display: none; align-items: center; justify-content: space-between; gap: .5rem; text-align: left; cursor: pointer; }
.listbox[data-listbox-ready] .listbox-button { display: flex; }
.listbox-chevron svg { width: 1em; height: .7em; stroke: currentColor; fill: none; stroke-width: 1.8; }
.listbox-list { position: absolute; z-index: 30; top: calc(100% + .3rem); left: 0; min-width: 100%; width: max-content; max-width: min(22rem, 90vw); margin: 0; padding: .3rem; list-style: none; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius-sm); box-shadow: var(--shadow); max-height: 18rem; overflow: auto; }
.listbox-option { display: flex; gap: .5rem; align-items: center; padding: .5rem .6rem; border-radius: 6px; cursor: pointer; }
.listbox-option.active { background: var(--accent-soft); } .listbox-tick { width: 1em; visibility: hidden; color: var(--accent); } .listbox-option[aria-selected="true"] .listbox-tick { visibility: visible; }

/* Dev sign-in block */
.auth-wrap { max-width: 26rem; margin: 3rem auto; padding: 0 1rem; }
.auth-brand { display: flex; align-items: center; justify-content: center; gap: .6rem; margin-bottom: 1.2rem; }
.auth-card h1 { font-size: 1.5rem; } .auth-links { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; font-size: .9rem; flex-wrap: wrap; }
.dev-block { margin-top: 1.5rem; border: 2px dashed var(--accent); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.dev-band { height: 1.6rem; background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--accent) 12%, transparent) 0 8px, transparent 8px 16px); display: flex; align-items: center; justify-content: center; }
.dev-label { background: var(--card); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 0 .6rem; border-left: 1px dashed var(--accent); border-right: 1px dashed var(--accent); display: inline-flex; gap: .4rem; align-items: center; line-height: 1.2rem; }
.dev-label .dot { width: .45rem; height: .45rem; border-radius: 50%; background: var(--ok); }
.dev-toggle { width: 100%; background: none; border: 0; font: inherit; font-weight: 600; text-align: left; padding: .6rem .9rem; cursor: pointer; color: var(--ink); display: flex; justify-content: space-between; }
.dev-toggle .chev { font-size: 1em; transition: transform .2s; } .dev-block.collapsed .dev-toggle .chev { transform: rotate(-90deg); }
.dev-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .25s; } .dev-block.collapsed .dev-body { grid-template-rows: 0fr; } .dev-inner { overflow: hidden; }
.dev-row { display: grid; grid-template-columns: 6rem 1fr; gap: .8rem; width: 100%; text-align: left; padding: .6rem .9rem; border: 0; border-top: 1px solid var(--line); background: none; font: inherit; color: var(--ink); cursor: pointer; }
.dev-row:hover { background: var(--accent-soft); } .dev-name { font-weight: 600; } .dev-name code { font-size: .75em; } .dev-persona { color: var(--ink-2); font-size: .85rem; }
.dev-foot { padding: .6rem .9rem; font-size: .8rem; border-top: 1px solid var(--line); }

/* Marketing */
.mk-header { border-bottom: 1px solid var(--line); background: var(--card); }
.mk-wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; } .mk-wrap.narrow { max-width: 760px; }
.mk-header .mk-wrap { display: flex; align-items: center; justify-content: space-between; height: 3.8rem; }
.mk-nav { display: flex; gap: .4rem; align-items: center; }
.hero { padding: 4rem 0 3rem; } .hero h1 { font-size: 3.4rem; letter-spacing: -.03em; line-height: 1.02; } .hero h1 .typed { font-family: var(--mono); color: var(--accent); font-weight: 700; letter-spacing: -.02em; }
.hero h1 .typed::after { content: ""; display: inline-block; width: .08em; height: .85em; margin-left: .06em; background: var(--accent); vertical-align: -.08em; animation: blink 1.1s steps(2, start) infinite; }
@media (max-width: 800px) { .hero h1 { font-size: 2.3rem; } }
.hero-facts { display: flex; gap: 1.6rem; margin-top: 1.4rem; flex-wrap: wrap; } .hero-facts .stat-n { font-family: var(--mono); font-size: 1.5rem; }
.demo-caption { font-size: .8rem; color: var(--muted); margin-top: .6rem; display: flex; justify-content: space-between; }
.steps { list-style: none; padding: 0; counter-reset: step; margin: 1rem 0 0; } .steps li { position: relative; padding-left: 3.2rem; margin-bottom: 1rem; min-height: 2.4rem; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 2.3rem; height: 2.3rem; border-radius: 7px; background: var(--card); border: 1px solid var(--line-2); border-bottom-width: 3px; font-family: var(--mono); font-weight: 700; display: grid; place-items: center; color: var(--accent); }
.unit-map { display: grid; grid-template-columns: repeat(9, 1fr); gap: .5rem; margin-top: 1.25rem; } @media (max-width: 900px) { .unit-map { grid-template-columns: repeat(3, 1fr); } }
.unit-key { background: var(--card); border: 1px solid var(--line-2); border-bottom-width: 4px; border-radius: 10px; padding: .8rem .7rem; min-height: 6.5rem; display: flex; flex-direction: column; gap: .2rem; }
.unit-key .n { font-family: var(--mono); font-weight: 700; color: var(--accent); font-size: .8rem; } .unit-key .t { font-weight: 700; font-size: .9rem; line-height: 1.2; } .unit-key .c { color: var(--muted); font-size: .75rem; margin-top: auto; }
.unit-key.free { border-color: var(--ok); border-bottom-color: var(--ok); }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 2rem; margin-top: 1.25rem; } @media (max-width: 700px) { .feature-list { grid-template-columns: 1fr; } }
.feature-row { display: grid; grid-template-columns: 2.4rem 1fr; gap: .8rem; align-items: start; } .feature-row .g { width: 2.4rem; height: 2.4rem; border-radius: 7px; background: var(--accent-soft); display: grid; place-items: center; font-size: 1.1rem; } .feature-row h3 { margin: 0 0 .1rem; font-size: 1rem; } .feature-row p { margin: 0; color: var(--ink-2); font-size: .93rem; }
.pull { border-left: 4px solid var(--accent); padding: .2rem 0 .2rem 1.2rem; font-size: 1.5rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; max-width: 40rem; }
.mk-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 2rem; } .mk-cta h2 { color: var(--paper); margin: 0; } /* ⚠ Was a hardcoded #e4e7ee, which is a light grey. The card inverts (its
   background is --ink and its text --paper), so in dark mode --ink resolves to a
   near-white and the card turns LIGHT while this paragraph stayed light grey:
   unreadable. Invisible in light mode, which is why it survived. Tie it to the
   same token the card's own text uses and it inverts with everything else. */
.mk-cta p { margin: .2rem 0 0; color: var(--paper); opacity: .82; font-size: 1.05rem; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; } @media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-cta { display: flex; gap: .75rem; margin: 1.5rem 0 .75rem; flex-wrap: wrap; }
.hero-demo { padding: 1.25rem; } .demo-text { font-size: 1.35rem; margin-bottom: 1rem; line-height: 1.7; } .demo-text .ok { color: var(--ok); } .demo-text .cur { background: var(--accent); color: #fff; border-radius: 3px; padding: 0 .05em; }
.mk-section { padding: 3.5rem 0; } .mk-section.alt { background: var(--paper-2); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.5rem; } @media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } } @media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-icon { font-size: 1.6rem; margin-bottom: .4rem; } .feature p { color: var(--ink-2); font-size: .95rem; }
.steps { padding-left: 1.2rem; } .steps li { margin-bottom: .6rem; }
.quote-card { align-self: center; } .big-quote { font-size: 1.4rem; font-weight: 600; line-height: 1.35; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 2rem 0 1rem; text-align: left; } @media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; } .plan.featured { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow); }
.plan-tag { position: absolute; top: -.8rem; left: 1.25rem; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; }
.price { font-size: 2.4rem; font-weight: 800; letter-spacing: -.02em; } .price .per { font-size: 1rem; font-weight: 500; color: var(--muted); }
.plan-list { padding-left: 1.1rem; margin: 1rem 0 1.25rem; flex: 1; } .plan-list li { margin-bottom: .35rem; }
.faq { border-top: 1px solid var(--line); padding: .9rem 0; } .faq summary { font-weight: 600; cursor: pointer; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; } .faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "▾"; font-size: 1em; color: var(--muted); } .faq[open] summary::after { content: "▴"; } .faq p { margin: .6rem 0 0; color: var(--ink-2); }
.legal h2 { margin-top: 1.5rem; font-size: 1.1rem; }
.mk-footer { border-top: 1px solid var(--line); padding: 2rem 0; font-size: .9rem; } .foot-brand { display: flex; align-items: center; gap: .6rem; } .foot-by { color: var(--ink-2); } .foot-by a { color: inherit; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line-2); } .foot-by a:hover { color: var(--ink); text-decoration-color: currentColor; } .mk-footer .mk-wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; } .foot-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* Dashboard */
.dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.25rem; } @media (max-width: 860px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-continue { grid-row: span 2; display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; justify-content: center; padding: 2rem; background: linear-gradient(180deg, var(--card), color-mix(in srgb, var(--accent-soft) 45%, var(--card))); }
.dash-title { font-size: 2.2rem; line-height: 1.05; } .dash-title .mono { font-family: var(--mono); color: var(--accent); }
.dash-goal { text-align: center; display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.ring { --pct: 0; width: 8.5rem; height: 8.5rem; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--pct) * 1%), var(--paper-2) 0); display: grid; place-items: center; }
.ring-inner { width: 6.8rem; height: 6.8rem; border-radius: 50%; background: var(--card); display: flex; flex-direction: column; justify-content: center; } .ring-n { font-size: 2rem; font-weight: 800; line-height: 1; } .ring-l { font-size: .8rem; color: var(--muted); }
.dash-streak { font-size: 1.05rem; } .flame { font-size: 1.2rem; }
.stat-row { display: flex; gap: 1.5rem; flex-wrap: wrap; margin: .5rem 0; } .big-row { justify-content: space-around; padding: 1.25rem; margin-bottom: 1.25rem; }
.stat { display: flex; flex-direction: column; min-width: 4rem; } .stat-n { font-size: 1.7rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; } .stat-n small { font-size: .55em; font-weight: 600; color: var(--muted); } .stat-l { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; } .stat-sub { font-size: .8rem; color: var(--accent); }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; } .quick { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); font-weight: 600; font-size: .9rem; } .quick span { font-size: 1.5rem; } .quick:hover { background: var(--paper-2); text-decoration: none; }
.recent-list { list-style: none; padding: 0; margin: 0 0 .5rem; } .recent-list li { padding: .4rem 0; border-top: 1px solid var(--line); font-size: .92rem; } .recent-list li:first-child { border-top: 0; }
.weak-keys { display: flex; gap: .5rem; flex-wrap: wrap; margin: .5rem 0 .8rem; } .weak-keys.sm { margin: .5rem 0 0; }
.keycap { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 2rem; height: 2rem; padding: 0 .5rem; border: 1px solid var(--line-2); border-bottom-width: 3px; border-radius: 6px; font-family: var(--mono); font-weight: 700; background: var(--card); margin-left: .25rem; }
.keycap.big { min-width: 3.2rem; height: 3.2rem; font-size: 1.1rem; margin: 0; } .keycap small { font-size: .65rem; color: var(--muted); font-weight: 500; }
.exercise-dots { display: flex; gap: .35rem; align-items: center; margin: .3rem 0; }
.dot-ex { width: .75rem; height: .75rem; border-radius: 50%; background: var(--paper-2); border: 1px solid var(--line-2); display: inline-block; } .dot-ex.done { background: var(--ok); border-color: var(--ok); } .dot-ex.current { box-shadow: 0 0 0 3px var(--accent-soft); border-color: var(--accent); }
a.dot-ex:hover { border-color: var(--accent); }
.star { color: var(--line-2); font-size: 1em; } .star.on { color: var(--gold); }

/* Lessons index */
.unit { margin-bottom: 2.4rem; }
.unit-num { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 7px; background: var(--card); border: 1px solid var(--line-2); border-bottom-width: 3px; font-family: var(--mono); font-weight: 700; color: var(--accent); margin-right: .5rem; vertical-align: middle; } .unit-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: .8rem; flex-wrap: wrap; }
.unit-meta { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; min-width: 12rem; }
.unit-progress { width: 100%; height: .45rem; background: var(--paper-2); border-radius: 999px; overflow: hidden; } .unit-progress-bar { height: 100%; background: var(--ok); }
.lesson-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .7rem; }
.lesson-card { position: relative; display: flex; flex-direction: column; gap: .15rem; padding: .85rem .9rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); min-height: 6.5rem; }
a.lesson-card:hover { border-color: var(--accent); text-decoration: none; }
.lesson-card.done { border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); background: color-mix(in srgb, var(--ok-soft) 40%, var(--card)); }
.lesson-card.next { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.lesson-card.locked { opacity: .6; } .lesson-num { font-size: .7rem; font-weight: 700; color: var(--muted); } .lesson-title { font-weight: 700; font-family: var(--mono); } .lesson-sub { font-size: .78rem; line-height: 1.3; }
.lesson-stars { margin-top: auto; font-size: .85rem; letter-spacing: .05em; } .lock { position: absolute; right: .7rem; top: .6rem; } .lesson-partial { position: absolute; right: .7rem; bottom: .6rem; }

/* Focus layout (lesson/test/practice/game pages) */
body.focus .focus-main { max-width: 1040px; margin: 0 auto; padding: 0 1rem 2rem; }
.focus-bar { display: flex; align-items: center; gap: 1.2rem; height: 3rem; font-size: .9rem; border-bottom: 1px solid var(--line); margin: 0 auto; max-width: 1040px; padding: 0 1rem; }
.focus-back { color: var(--ink-2); font-weight: 600; } .focus-crumb { color: var(--muted); } .focus-right { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.typing { display: flex; flex-direction: column; gap: .9rem; padding-top: 1.2rem; }
.typing-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; flex-wrap: wrap; }
.typing-kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 700; color: var(--accent); }
.typing-title { font-size: 1.6rem; margin: .1rem 0 .2rem; } .typing-hint { color: var(--ink-2); margin: 0; max-width: 46rem; }
.typing-stats { display: flex; gap: 1.5rem; }
.typing-progress { height: .35rem; background: var(--paper-2); border-radius: 999px; overflow: hidden; } .typing-progress-bar { height: 100%; width: 0; background: var(--accent); transition: width .12s; }
.typing-stage { position: relative; }
.typing-text { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.6rem; font-size: 1.55rem; line-height: 1.85; letter-spacing: .01em; white-space: pre-wrap; overflow-wrap: anywhere; max-height: calc(1.85em * 4 + 2.8rem); overflow: hidden; outline: none; scroll-behavior: smooth; cursor: text; user-select: none; }
.typing-text:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.typing-text.size-sm { font-size: 1.25rem; } .typing-text.size-lg { font-size: 1.9rem; }
.ch { border-radius: 3px; transition: background .08s; } .ch.ok { color: var(--ok); } .ch.fixed { color: var(--ok); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .2em; }
.ch.bad { color: var(--bad); background: var(--bad-soft); } .ch.bad.space { background: var(--bad); } .ch.was-wrong { color: var(--bad); }
.ch.cur { background: var(--accent); color: #fff; animation: blink 1.1s steps(2, start) infinite; } .ch.miss { animation: miss .16s; background: var(--bad); color: #fff; }
@keyframes blink { to { background: transparent; color: inherit; } } @keyframes miss { 0% { transform: translateX(-2px); } 50% { transform: translateX(2px); } 100% { transform: none; } }
.typing-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--paper) 70%, transparent); backdrop-filter: blur(2px); border-radius: var(--radius); cursor: pointer; }
.overlay-card { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 1rem 1.4rem; text-align: center; box-shadow: var(--shadow); max-width: 30rem; }
.overlay-title { font-weight: 700; font-size: 1.1rem; } .overlay-sub { color: var(--muted); font-size: .9rem; margin-top: .2rem; }
.typing-result { display: grid; place-items: center; padding: .5rem 0; }
.typing.done .typing-text, .typing.done .typing-overlay, .typing.done .typing-guides { display: none; }
.result-inner { position: relative; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 1.4rem 1.8rem; box-shadow: var(--shadow); text-align: center; min-width: 22rem; max-width: 40rem; }
.result-stars { font-size: 2rem; letter-spacing: .1em; } .result-verdict { font-size: 1.3rem; font-weight: 700; margin: .2rem 0 .4rem; } .result-complete { color: var(--ok); font-weight: 600; margin-bottom: .4rem; }
.result-inner .stat-row { justify-content: center; } .result-inner .btn-row { justify-content: center; }
.new-badges { display: flex; flex-direction: column; gap: .5rem; margin: .8rem 0 .2rem; } .new-badge { display: flex; gap: .7rem; align-items: center; text-align: left; background: var(--gold-soft); border-radius: var(--radius-sm); padding: .5rem .8rem; } .new-badge > span { font-size: 1.6rem; }
.typing-guides { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; align-items: center; } @media (max-width: 760px) { .typing-guides { grid-template-columns: 1fr; } }
.hidden { display: none !important; }
.typing-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; } .typing-foot-left, .typing-foot-right { display: flex; gap: .8rem; align-items: center; }

/* Keyboard */
.keyboard { display: flex; flex-direction: column; gap: .3rem; padding: .6rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); user-select: none; container-type: inline-size; }
.kb-row { display: flex; gap: .3rem; }
.key { --w: 1; flex: var(--w) 1 0; min-width: 0; height: 2.6rem; border-radius: 6px; background: var(--card); border: 1px solid var(--line-2); border-bottom-width: 3px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--mono); font-size: .8rem; font-weight: 600; color: var(--ink-2); line-height: 1; transition: background .1s, transform .05s; }
.key .k-up { font-size: .65rem; color: var(--muted); } .key.dead { font-size: .62rem; color: var(--muted); }
.keyboard:not(.no-fingers) .key.finger-l5, .keyboard:not(.no-fingers) .key.finger-r5 { background: var(--f-l5); } .keyboard:not(.no-fingers) .key.finger-l4, .keyboard:not(.no-fingers) .key.finger-r4 { background: var(--f-l4); }
.keyboard:not(.no-fingers) .key.finger-l3, .keyboard:not(.no-fingers) .key.finger-r3 { background: var(--f-l3); } .keyboard:not(.no-fingers) .key.finger-l2, .keyboard:not(.no-fingers) .key.finger-r2 { background: var(--f-l2); }
.keyboard:not(.no-fingers) .key.finger-l1, .keyboard:not(.no-fingers) .key.finger-r1 { background: var(--f-l1); }
.keyboard:not(.no-fingers) .key.dead { background: var(--card); opacity: .85; }
.key.next { background: var(--accent) !important; color: #fff !important; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); transform: translateY(-1px); } .key.next .k-up { color: #fff; }
.key.hit { background: var(--ok) !important; color: #fff !important; } .key.miss { background: var(--bad) !important; color: #fff !important; }
.keyboard.heat .key { background: var(--card); } .keyboard.heat .key.heat-5 { background: var(--ok); color: #fff; } .keyboard.heat .key.heat-4 { background: color-mix(in srgb, var(--ok) 55%, var(--card)); } .keyboard.heat .key.heat-3 { background: var(--gold-soft); } .keyboard.heat .key.heat-2 { background: color-mix(in srgb, var(--bad) 45%, var(--card)); } .keyboard.heat .key.heat-1 { background: var(--bad); color: #fff; }
@container (max-width: 560px) { .key { height: 2rem; font-size: .65rem; } .key .k-up { display: none; } }
.demo-kbd .key { height: 2.1rem; font-size: .7rem; }

/* Hands */
.hands { display: flex; flex-direction: column; align-items: center; gap: .2rem; } .hands-svg { width: 100%; max-width: 11rem; }
.hand path { fill: var(--paper-2); stroke: var(--line-2); stroke-width: 1.5; transition: fill .1s; } .hand path.palm { fill: var(--paper-2); }
.hand path.active { fill: var(--accent); stroke: var(--accent); } .hands-label { font-size: .8rem; color: var(--muted); min-height: 1.2em; text-align: center; }

/* Tests, practice, games, badges, log */
.test-grid, .mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; } @media (max-width: 800px) { .test-grid, .mode-grid { grid-template-columns: 1fr; } }
.test-card, .mode-card { color: var(--ink); display: flex; flex-direction: column; gap: .3rem; } a.test-card:hover, a.mode-card:hover { border-color: var(--accent); text-decoration: none; } .mode-card.locked { opacity: .7; }
.test-min { font-size: 2.6rem; font-weight: 800; line-height: 1; } .test-min small { font-size: 1rem; color: var(--muted); margin-left: .2rem; } .test-name { font-weight: 600; }
.game-icon { font-size: 2.2rem; }
.result-card { text-align: center; } .result-big { margin: .5rem 0; } .result-n { font-size: 4.5rem; font-weight: 900; line-height: 1; letter-spacing: -.03em; display: block; } .result-l { color: var(--muted); } .result-band { font-size: 1.1rem; color: var(--accent); margin-bottom: .5rem; } .result-card .stat-row { justify-content: center; } .result-card .btn-row { justify-content: center; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; } .table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: .5rem .6rem; border-bottom: 1px solid var(--line); } .table td { padding: .55rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; } .table .num { text-align: right; } .row-actions { white-space: nowrap; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: .2rem; background: var(--card); } .seg-item { padding: .3rem .8rem; border-radius: 999px; color: var(--ink-2); font-size: .85rem; font-weight: 600; } .seg-item.active { background: var(--accent); color: #fff; } .seg-item:hover { text-decoration: none; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .8rem; } .badge { text-align: center; } .badge-icon { font-size: 2.4rem; } .badge-title { font-weight: 700; } .badge.locked { opacity: .45; filter: grayscale(1); }
.log-day { margin-bottom: 1rem; } .log-date { font-weight: 700; margin-bottom: .5rem; } .log-list { list-style: none; padding: 0; margin: 0; } .log-row { display: grid; grid-template-columns: 5rem 1fr; gap: .8rem; padding: .45rem 0; border-top: 1px solid var(--line); font-size: .93rem; } .log-time { color: var(--muted); font-variant-numeric: tabular-nums; }
.log-ended { font-size: .75rem; color: var(--muted); margin-left: .4rem; } .log-ended.quit { color: var(--bad); } .log-ended.timeout { color: var(--accent); } .badge-row { background: var(--gold-soft); border-radius: 6px; padding: .45rem .4rem; }
.profile-list { display: flex; flex-direction: column; gap: .7rem; } .profile-row { display: flex; align-items: center; gap: 1rem; } .profile-row.current { border-color: var(--accent); } .profile-body { flex: 1; } .profile-actions { display: flex; gap: .5rem; align-items: center; }
.pill { background: var(--accent-soft); color: var(--accent); font-size: .75rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; }

.result-close { position: absolute; top: .4rem; right: .5rem; width: 2.2rem; height: 2.2rem; border: 0; background: none; font-size: 1.4rem; color: var(--muted); cursor: pointer; border-radius: 6px; } .result-close:hover { background: var(--paper-2); color: var(--ink); }

/* Ads (free tier only) */
.ad { display: flex; justify-content: center; margin: .5rem auto; max-width: 100%; overflow: hidden; }
.ad-placeholder { align-items: center; justify-content: center; flex-direction: column; border: 1px dashed var(--line-2); border-radius: var(--radius-sm); background: var(--paper-2); color: var(--muted); font-size: .85rem; max-width: 100%; }
.dash-grid .ad { grid-column: 2; }

/* Games */
.game { padding-top: 1.2rem; } .game-head { display: flex; gap: 2rem; margin-bottom: 1rem; }
.rain-field { position: relative; height: 26rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rain-start { position: absolute; inset: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--paper) 70%, transparent); z-index: 2; }
.drop { position: absolute; left: 0; top: 0; font-size: 1.25rem; font-weight: 600; padding: .15rem .45rem; background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 6px; will-change: transform; white-space: nowrap; }
.drop .hit-part { color: var(--ok); } .drop.popped { animation: pop .25s forwards; } .drop.missed { animation: fade .3s forwards; } .drop.shake { animation: miss .2s; }
@keyframes pop { to { transform: scale(1.6); opacity: 0; } } @keyframes fade { to { opacity: 0; } }
.game .typing-result { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: color-mix(in srgb, var(--paper) 78%, transparent); backdrop-filter: blur(3px); padding: 1rem; }
.rain-typed { margin-top: .6rem; font-size: 1.3rem; min-height: 1.6em; color: var(--accent); }
.sprint-track { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1rem; } .lane { display: grid; grid-template-columns: 4rem 1fr; align-items: center; gap: .6rem; } .lane-label { font-size: .8rem; font-weight: 700; color: var(--muted); }
.lane-bar { position: relative; height: 2.2rem; background: var(--paper-2); border-radius: 999px; border: 1px solid var(--line); } .runner { position: absolute; top: 50%; transform: translate(-50%, -50%); font-size: 1.4rem; transition: left .1s linear; left: 0; }

/* Charts */
.chart { width: 100%; height: auto; display: block; } .chart-grid { stroke: var(--line); stroke-width: 1; } .chart-tick { fill: var(--muted); font-size: 10px; font-family: var(--sans); } .chart-line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }
.chart-area { fill: var(--accent); opacity: .12; } .chart-dot { fill: var(--accent); } .chart-label { fill: var(--ink); font-size: 12px; font-weight: 700; font-family: var(--sans); } .chart-bar { fill: var(--line-2); } .chart-bar.hit { fill: var(--ok); } .chart-goal { stroke: var(--accent); stroke-dasharray: 4 4; stroke-width: 1.5; }
.chart-empty { color: var(--muted); padding: 2rem 0; text-align: center; }

/* Admin */
.lvl-error { color: var(--bad); } .lvl-warn { color: #b7791f; } pre { font-size: .75rem; white-space: pre-wrap; max-width: 30rem; }

/* Certificate */
.print-body { background: #fff; color: #1b1f2a; } .certificate { max-width: 52rem; margin: 2rem auto; padding: 0 1rem; }
.cert-border { border: 10px double #2f6fed; padding: 3rem 2.5rem; text-align: center; background: #fff; }
.certificate { --accent: #2f6fed; --ink: #1b1f2a; }
.cert-brand { display: inline-flex; align-items: center; gap: .55rem; }
.cert-brand .brand-name { font-size: 1.5rem; }
.cert-foot { margin-top: 2rem; font-family: var(--brand-mono); font-size: .85rem; letter-spacing: .08em; color: #7a8090; } .cert-kicker { text-transform: uppercase; letter-spacing: .3em; font-size: .8rem; color: #7a8090; margin: 1.5rem 0 1rem; }
.cert-name { font-family: var(--serif); font-size: 3rem; font-weight: 600; margin-bottom: .5rem; } .cert-text { color: #4c5364; font-size: 1.1rem; }
.cert-wpm { font-size: 4rem; font-weight: 900; letter-spacing: -.03em; line-height: 1.1; margin: .4rem 0; } .cert-wpm span { display: block; font-size: 1rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #7a8090; }
.cert-date { margin-top: 1.5rem; font-size: 1rem; color: #4c5364; } .cert-band { margin-top: .4rem; font-weight: 700; color: #2f6fed; }
.cert-actions { text-align: center; margin-top: 1.5rem; }
@media print { .no-print { display: none !important; } .certificate { margin: 0; } body { background: #fff; } }

/* Early-access form, answered in place. Pattern: config/patterns/early-access-inline.css */
/* Goes with early-access-inline.js. Uses whatever --ink / --muted / --accent the
   site already defines, and falls back to literals so it works on a site with no
   tokens at all. */
.earlymsg{flex-basis:100%;margin:.55rem 0 0;font-size:.9rem;line-height:1.45;
  color:var(--muted,#6b6659);overflow-wrap:anywhere}
.earlymsg.is-bad{color:#b3261e}
.earlydone{display:flex;gap:.7rem;align-items:flex-start;margin-top:1.3rem;
  font-size:.98rem;line-height:1.5;outline:0;animation:earlyin .28s ease both}
.earlydone strong{color:var(--ink,#23211d)}
.earlytick{flex:0 0 auto;width:1.35em;height:1.35em;margin-top:.05em;
  color:var(--accent,#1f7a4d)}
@keyframes earlyin{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.earlydone{animation:none}}
