:root { --paper:#f6f7f9; --card:#fff; --ink:#20232c; --muted:#69707d; --line:#e4e6eb; --green:#b31e2d; --accent:#fbeaec; --soft:#fcf2f3; --orange:#b31e2d; --red:#c52b36; --shadow:0 5px 18px rgba(24,30,45,.035); --success:#127344; }
.consent-section{border:1px solid var(--line);background:var(--soft);border-radius:12px;padding:20px;margin:20px 0}.consent-section h3{margin:0 0 12px;font-size:18px}.consent-summary{color:var(--green);font-size:12px;font-weight:650}.consent-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}.consent-actions .button{width:100%;min-height:44px;padding:11px 12px;font-size:12px}.consent-wide{grid-column:1/-1}.consent-option{display:flex;align-items:flex-start;gap:12px;padding:16px 0;border-bottom:1px solid var(--line);cursor:pointer}.consent-option input{width:18px;height:18px;margin:3px 0 0;flex:0 0 auto;accent-color:#b31e2d}.consent-option small{display:block;color:var(--muted);font-size:12px;line-height:1.7;margin-top:5px}.consent-option strong{font-size:14px}.consent-save{margin-top:18px;width:100%}#privacy-dialog{max-height:calc(100dvh - 32px);overflow-y:auto}#manage-ad-consent{display:block;text-align:left;text-decoration:underline;margin-top:12px}#manage-ad-consent[hidden],#consent-details[hidden]{display:none}@media(max-width:420px){.consent-section{padding:16px}.consent-actions{grid-template-columns:1fr}.consent-wide{grid-column:auto}}
.tutorial{border:1px solid var(--line);border-radius:18px;background:var(--card);overflow:hidden;margin:24px 0}
.tutorial-steps{display:grid;grid-template-columns:repeat(5,1fr);border-bottom:1px solid var(--line);background:var(--soft)}
.tutorial-steps button{background:none;border:0;border-bottom:3px solid transparent;text-align:left;padding:18px;font-size:12px;line-height:1.4;display:flex;gap:10px;align-items:center;color:var(--muted)}
.tutorial-steps button span{font-size:19px;font-weight:700;opacity:.55}.tutorial-steps button.active{color:var(--green);border-bottom-color:var(--green);background:var(--card)}
.tutorial-body{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(0,1.4fr);gap:32px;padding:32px}
.tutorial-copy h2{font-size:30px;line-height:1.25;margin:12px 0 18px}.tutorial-copy p{margin:12px 0;font-size:15px;line-height:1.8}
.tutorial-home{border-left:3px solid var(--green);padding:8px 14px;margin:22px 0;background:var(--soft)}.tutorial-home strong{display:block;font-size:10px;letter-spacing:1.3px;color:var(--muted)}.tutorial-home span{font-size:18px;letter-spacing:2px;font-weight:600}
.tutorial-nav{display:flex;gap:12px;margin-top:24px;align-items:center}.tutorial-demo{align-self:center;border:1px solid var(--line);border-radius:14px;background:var(--paper);padding:12px}.tutorial-motion{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}.tutorial-note{text-align:center;color:var(--muted);font-size:11px;line-height:1.7}.tutor-key{cursor:pointer}.tutor-key:focus rect{stroke:var(--ink);stroke-width:3}
.live-tutor{max-width:900px;margin:20px auto;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--card)}.live-tutor summary{cursor:pointer;color:var(--green);font-weight:600}.live-tutor .hand-tutor{max-width:700px}
.exam-session main{max-width:1540px;padding:24px 28px}
.exam-shell{display:grid;grid-template-columns:100px minmax(0,1fr);gap:24px;align-items:start;font-family:Arial,sans-serif}
.exam-clock{position:sticky;top:24px;text-align:center;border:1px solid var(--line);border-radius:8px;padding:18px 8px;background:var(--card)}.exam-clock>span{display:block;font-size:11px;letter-spacing:1px;color:var(--muted)}.exam-clock strong{display:block;font-size:32px;font-variant-numeric:tabular-nums;line-height:1.4}.exam-clock small{font-size:12px;color:var(--muted)}.exam-layout{margin-top:16px;border-top:1px solid var(--line);padding-top:12px;font-size:12px}
.exam-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:12px}.exam-heading h1{font-size:16px;letter-spacing:0;font-weight:600}.exam-heading button{font-size:12px}
.exam-reference{font-size:var(--exam-font,16px);line-height:1.5;padding:18px 22px;border:1px solid var(--line);border-top:3px solid var(--green);background:var(--card);white-space:normal;overflow:visible;height:auto;max-height:none;overflow-wrap:break-word;text-align:left;border-radius:4px;color:var(--ink)}
.exam-input-label{display:block;margin:18px 0 8px;font-size:12px;color:var(--muted)}
.exam-input{display:block;width:100%;min-height:220px;padding:18px 22px;font:var(--exam-font,16px)/1.5 Arial,sans-serif;background:var(--card);border:1px solid var(--line);border-radius:4px;resize:vertical;color:var(--ink)}.exam-input:focus{outline:2px solid var(--green);outline-offset:2px}
.exam-tools{display:flex;justify-content:space-between;gap:16px;margin-top:14px;font-size:11px;color:var(--muted)}.exam-tools>div{display:flex;gap:22px}
.desktop-ad-rail{display:none;position:fixed;top:150px;width:160px;height:600px;z-index:5}.desktop-ad-rail.left{left:calc(50% - 804px)}.desktop-ad-rail.right{right:calc(50% - 804px)}.desktop-ad-rail .ad-slot{margin:0;width:160px;height:600px;border-radius:6px;padding:0;border:0;outline:1px solid var(--line);overflow:visible}.desktop-ad-rail .ad-label{top:-22px;left:0;background:transparent;padding:0}.desktop-ad-rail .ad-content{height:100%;display:flex;justify-content:center;align-items:center;font-size:12px}.desktop-ad-rail .ad-content:has(.adsbygoogle){align-items:start}
@media(min-width:1660px) and (min-height:760px){.desktop-ad-rail:has(.ad-slot){display:block}.focus-session .desktop-ad-rail{display:none}}
@media(max-width:650px){.exam-session main{padding:16px}.exam-shell{grid-template-columns:minmax(0,1fr);gap:14px}.exam-clock{position:static;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 14px}.exam-clock strong{font-size:25px}.exam-layout{margin:0;border:0;padding:0}.exam-reference{padding:14px;font-size:var(--exam-font,16px)}.exam-input{padding:14px;min-height:180px}.exam-tools{flex-wrap:wrap}}
@media(max-width:900px){.tutorial-body{grid-template-columns:1fr;gap:20px;padding:24px}.tutorial-steps{display:flex;overflow-x:auto}.tutorial-steps button{flex:0 0 150px}.tutorial-demo{width:100%}.tutorial-copy h2{font-size:26px}}
@media(max-width:650px){.lesson-toolbar>div{max-width:100%;overflow-x:auto}.lesson-toolbar .segmented{white-space:nowrap}.tutorial-body{padding:18px}.tutorial-demo{padding:4px}.tutorial-copy p{font-size:14px}}
* { box-sizing:border-box; }
[hidden] { display:none!important; }
html { scroll-behavior:smooth; }
body { margin:0; color:var(--ink); background:var(--paper); font:15px/1.6 'Segoe UI',Arial,sans-serif; -webkit-font-smoothing:antialiased; }
body.dark { --paper:#17191e; --card:#22252c; --ink:#f3f4f6; --muted:#acb2bf; --line:#383c47; --green:#fa8d97; --accent:#48252d; --soft:#30252a; --red:#ff8790; --shadow:none; --success:#85e6ae; }
button,input,select,textarea { font:inherit; color:inherit; }
button { cursor:pointer; }
a { color:inherit; text-decoration:none; }
button,a { -webkit-tap-highlight-color:transparent; }
button:disabled { opacity:.6; cursor:default; }
:focus-visible { outline:3px solid #d8757d; outline-offset:4px; }
svg { width:20px; height:20px; flex-shrink:0; vertical-align:middle; }
h1,h2,h3,p { margin:0; }
h1 { font-size:36px; line-height:1.2; letter-spacing:-1.2px; font-weight:750; }
h2 { font-size:22px; line-height:1.35; letter-spacing:-.5px; font-weight:700; }
h3 { font-size:18px; line-height:1.4; font-weight:650; }
p+p { margin-top:14px; }
.muted { color:var(--muted); }
.skip-link { position:fixed; z-index:100; left:20px; top:-100px; background:#b31e2d; color:#fff; padding:12px 20px; border-radius:8px; }
.skip-link:focus { top:10px; }
.sidebar { position:sticky; top:0; z-index:20; display:flex; align-items:center; gap:45px; padding:0 max(28px,calc((100vw - 1240px)/2)); height:88px; background:var(--card); border-top:4px solid #b31e2d; border-bottom:1px solid var(--line); }
.brand { display:flex; gap:12px; align-items:center; font-size:24px; letter-spacing:-1px; white-space:nowrap; font-weight:450; }
.brand-icon { width:42px; height:42px; border-radius:11px; display:grid; place-items:center; background:#b31e2d; color:#fff; box-shadow:0 4px 10px #b31e2d20; }
.brand-icon svg { width:26px; height:26px; }
.brand-last { font-weight:750; }
.brand small { display:block; margin-top:2px; color:var(--muted); font-size:8px; font-weight:600; letter-spacing:1.5px; }
.nav-label,.sidebar-bottom { display:none; }
.sidebar nav { display:flex; align-items:center; gap:3px; margin-left:auto; min-width:0; }
.nav-link { display:flex; gap:7px; align-items:center; padding:10px 13px; font-size:13px; color:var(--muted); border-radius:7px; white-space:nowrap; }
.nav-link svg { width:17px; height:17px; }
.nav-link:hover { background:var(--paper); color:var(--ink); }
.nav-link.active { color:var(--green); background:var(--accent); font-weight:650; }
.nav-dot { display:none; }
.page-shell { margin:0; }
.topbar { max-width:1240px; height:58px; margin:auto; padding:0 28px; display:flex; justify-content:space-between; align-items:center; }
.breadcrumb,.topbar strong { font-size:12px; }
.breadcrumb { color:var(--muted); }
.breadcrumb-divider { color:#a9aebb; padding:0 10px; }
.topbar strong { font-weight:600; }
.header-right { display:flex; gap:16px; align-items:center; }
#theme-toggle{width:auto;display:flex;gap:8px;padding:0 12px;font-size:12px;white-space:nowrap}
.local-badge { font-size:11px; color:var(--muted); }
.status-dot { display:inline-block; margin-right:6px; background:var(--success); width:6px; height:6px; border-radius:50%; }
.icon-button { width:36px; height:36px; display:grid; place-items:center; background:var(--card); border:1px solid var(--line); border-radius:8px; }
.icon-button svg { width:18px; height:18px; }
main { max-width:1240px; margin:auto; padding:24px 28px 45px; }
.page-heading { display:flex; gap:20px; align-items:end; justify-content:space-between; margin:12px 0 30px; }
.page-heading p,.home-heading p { color:var(--muted); font-size:15px; margin-top:12px; max-width:740px; }
.page-heading .button { flex-shrink:0; }
.eyebrow { display:block; color:var(--green); font-size:10px; font-weight:750; letter-spacing:1.7px; margin-bottom:10px; }
.home-heading { margin:6px 0 28px; }
.home-heading h1 { font-size:38px; }
.home-workspace { display:grid; grid-template-columns:minmax(0,.95fr) minmax(0,1.2fr); overflow:hidden; border:1px solid var(--line); border-radius:16px; background:var(--card); box-shadow:var(--shadow); }
.home-workspace>div { min-width:0; }
.home-intro { background:#a51d2c; color:#fff; padding:42px; display:flex; flex-direction:column; background-image:radial-gradient(circle at 100% 0,#d34a5433,transparent 70%); }
.intro-tag { font-size:10px; letter-spacing:2px; font-weight:650; color:#ffd3d7; }
.home-intro h2 { font-size:45px; font-weight:750; letter-spacing:-1.7px; line-height:1.12; margin:26px 0 18px; }
.home-intro h2 em { color:#ffd8dc; font-style:normal; }
.home-intro>p { font-size:15px; color:#f8dbe0; max-width:330px; }
.intro-link { display:flex; align-items:center; gap:12px; font-size:14px; font-weight:650; margin-top:24px; color:#fff; }
.intro-link svg { width:18px; height:18px; }
.home-intro { position:relative; min-height:560px; }
.home-intro .intro-link { max-width:210px; }
.home-intro .intro-foot { padding-top:150px; }
.signature-art { display:block; position:absolute; right:10px; bottom:14px; width:260px; pointer-events:none; }
.signature-art img { display:block; width:100%; height:auto; }
@media(min-width:651px) and (max-width:1000px) { .signature-art { width:215px; right:0; bottom:35px; }.home-intro .intro-foot { padding-top:190px; } }
.feedback-demo { background:#ffffff12; border:1px solid #ffffff2c; border-radius:10px; padding:18px; margin-top:35px; }
.feedback-demo>div { display:flex; justify-content:space-between; gap:8px; font-size:9px; letter-spacing:1.4px; color:#ffdce0; }
.demo-badge { color:#ffdce0; }
.feedback-demo>p { display:flex; gap:4px; margin:20px 0; font:29px/1.4 Consolas,monospace; color:#ffffff80; }
.feedback-demo>p>span { padding:0 6px; border-radius:4px; }
.feedback-demo .sample-correct { background:#d8f9e8; color:#12623b; }
.feedback-demo .sample-wrong { background:#ffe1e5; color:#af1828; text-decoration:underline; }
.feedback-demo .sample-current { background:white; color:#a51d2c; box-shadow:0 3px 0 #fff; }
.feedback-demo small { display:flex; align-items:center; gap:6px; font-size:10px; color:#ffe4e8; }
.legend-dot { width:5px; height:5px; display:inline-block; border-radius:50%; background:white; margin-left:7px; }
.legend-dot.correct { background:#91e8b8; margin-left:0; }.legend-dot.wrong { background:#ff929e; }
.intro-foot { font-size:11px; color:#ffd1d8; padding-top:20px; margin-top:auto; }
.home-launcher { padding:32px 38px; }
.panel-head { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-bottom:22px; }
.panel-head h2 { font-size:19px; }
.panel-head>svg { color:var(--green); }
.panel-subtitle { color:var(--muted); font-size:12px; margin-top:5px; }
.field-label { display:block; margin:0 0 9px; color:var(--ink); font-size:12px; font-weight:600; }
.fields-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-bottom:22px; }
.segmented { display:flex; gap:4px; border:1px solid var(--line); background:var(--paper); padding:4px; border-radius:8px; }
.segmented button { flex:1; border:0; border-radius:5px; padding:9px 11px; background:transparent; font-size:12px; color:var(--muted); white-space:nowrap; }
.segmented button.selected { background:var(--card); color:var(--green); font-weight:700; box-shadow:0 1px 4px #18203314; }
.select { width:100%; padding:12px; border:1px solid var(--line); border-radius:8px; background:var(--card); font-size:13px; }
.check-line { display:flex; align-items:center; gap:9px; color:var(--muted); font-size:12px; margin:18px 0; }
.check-line input { accent-color:#b31e2d; width:15px; height:15px; }
.start-row { display:flex; gap:15px; align-items:center; margin-top:25px; }
.start-row .button { flex:1; }
.start-row>small { font-size:10px; color:var(--muted); max-width:120px; }
.button { display:inline-flex; justify-content:center; align-items:center; gap:11px; min-height:46px; padding:11px 20px; border:1px solid transparent; border-radius:8px; font-size:13px; font-weight:650; }
.button svg { width:17px; height:17px; }
.button.primary { color:#fff; background:#b31e2d; box-shadow:0 3px 8px #b31e2d15; }
.button.primary:hover { background:#941421; }
.button.secondary { background:var(--card); border-color:var(--line); color:var(--ink); }
.button.secondary:hover { background:var(--paper); }
.button.subtle { color:var(--green); background:var(--soft); }
.button.danger { background:transparent; color:var(--red); border-color:#deacb2; }
.button.small { min-height:39px; font-size:12px; padding:8px 13px; }
.trust-row { display:flex; align-items:center; gap:30px; padding:17px 2px; color:var(--muted); font-size:11px; }
.trust-row span { display:flex; align-items:center; gap:7px; }.trust-row svg { width:14px; height:14px; color:var(--green); }
.metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin:12px 0 24px; }
.metric { border:1px solid var(--line); border-radius:10px; padding:20px; background:var(--card); }
.metric-head { display:flex; justify-content:space-between; gap:12px; color:var(--muted); font-size:12px; }.metric-head svg { width:17px; height:17px; }
.metric-value { font-size:34px; font-weight:650; letter-spacing:-1.1px; line-height:1.25; margin:10px 0 5px; font-variant-numeric:tabular-nums; }
.metric-value small { font-size:12px; font-weight:400; color:var(--muted); letter-spacing:0; margin-left:5px; }
.metric-caption { color:var(--muted); font-size:10px; }
.dashboard-grid { display:grid; grid-template-columns:1.3fr 1fr; gap:22px; }
.panel { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:26px; }
.chart { height:135px; display:flex; align-items:center; justify-content:center; margin:10px 0; }.chart svg { width:100%; height:100%; overflow:visible; }
.chart-empty { color:var(--muted); text-align:center; font-size:12px; }.chart-empty svg { width:28px; height:28px; display:block; margin:0 auto 10px; opacity:.6; }
.chart-caption { display:flex; justify-content:space-between; color:var(--muted); font-size:10px; }
.daily-panel h2 { font-size:19px; max-width:270px; }.goal-value { font-size:38px; font-weight:650; margin:23px 0 13px; }.goal-value span { font-size:13px; font-weight:400; color:var(--muted); }
.progress-track { height:5px; border-radius:6px; background:var(--line); overflow:hidden; margin-bottom:20px; }.progress-fill { height:100%; width:100%; background:#b31e2d; }
.tip-line { display:flex; align-items:flex-start; gap:11px; color:var(--muted); font-size:12px; padding-top:18px; margin-top:20px; border-top:1px solid var(--line); }.tip-line svg { width:18px; height:18px; color:var(--green); }
.section-title { display:flex; align-items:center; justify-content:space-between; gap:15px; margin:30px 0 18px; }.section-title h2 { font-size:20px; }
.text-link { display:inline-flex; align-items:center; gap:6px; color:var(--green); font-size:12px; font-weight:650; }.text-link svg { width:14px; height:14px; }
.feature-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }.feature-card { padding:25px; border:1px solid var(--line); border-radius:12px; background:var(--card); text-align:left; transition:border-color .15s,box-shadow .15s; }
.feature-card:hover { border-color:#d2a7ad; box-shadow:var(--shadow); }.feature-icon { width:37px; height:37px; display:grid; place-items:center; background:var(--soft); color:var(--green); border-radius:9px; margin-bottom:18px; }.feature-icon svg { width:20px; height:20px; }
.feature-card h3 { font-size:17px; margin-bottom:9px; }.feature-card p { color:var(--muted); font-size:13px; }.feature-foot { display:flex; justify-content:space-between; align-items:center; margin-top:23px; color:var(--muted); font-size:11px; }
.footer { max-width:1184px; border-top:1px solid var(--line); margin:auto; padding:25px 0; display:flex; align-items:center; gap:22px; color:var(--muted); font-size:10px; }.footer>span { margin-right:auto; }.footer nav { display:flex; gap:16px; flex-wrap:wrap; align-items:center; }.footer-dot { margin:0 7px; }.text-button { background:none; border:0; padding:0; color:var(--muted); font-size:inherit; }
.ad-slot { position:relative; min-height:90px; margin:24px 0; padding:28px 18px 15px; background:var(--card); border:1px dashed var(--line); border-radius:8px; }.ad-label { position:absolute; left:12px; top:8px; letter-spacing:1.4px; font-size:8px; color:var(--muted); }.ad-content { color:var(--muted); text-align:center; font-size:11px; }.ad-content small { display:block; margin-top:4px; font-size:10px; }
.toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:24px; }.search { min-width:220px; flex:1; border:1px solid var(--line); background:var(--card); border-radius:8px; padding:12px 15px; font-size:13px; }.filter { border:1px solid var(--line); background:var(--card); border-radius:7px; padding:10px 14px; font-size:12px; }.filter.active { background:var(--accent); color:var(--green); border-color:#e2bbc1; font-weight:650; }
.library-grid,.lesson-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }.text-card { display:flex; flex-direction:column; background:var(--card); padding:25px; border:1px solid var(--line); border-radius:12px; min-width:0; }.text-card-top { display:flex; align-items:center; justify-content:space-between; gap:12px; }.text-card-top svg { color:var(--green); }.text-card .eyebrow { margin-top:20px; }.text-card h3 { margin:12px 0; }.text-card p { color:var(--muted); font-size:13px; margin-bottom:20px; }.text-card .button { align-self:flex-start; margin-top:auto; }.full-row { grid-column:1/-1; }.library-grid .ad-slot { margin:0; }
.pill { display:inline-flex; align-items:center; padding:4px 10px; background:var(--soft); color:var(--green); border-radius:6px; font-size:10px; font-weight:650; white-space:nowrap; }.pill.warm { background:#f5efe3; color:#8c6726; }.custom-box { margin-top:32px; }
textarea { width:100%; background:var(--paper); border:1px solid var(--line); color:var(--ink); border-radius:9px; padding:16px; line-height:1.8; resize:vertical; }
.lesson-toolbar>div { min-width:180px; }.lesson-toolbar .pill { margin-left:auto; }.lesson-number { font-size:30px; font-weight:700; color:var(--green); letter-spacing:-1px; }.lesson-keys { font-size:14px; color:var(--green); letter-spacing:3px; overflow-wrap:anywhere; margin:0 0 22px; }.letter-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }.letter-grid p { font-size:12px; }.letter-grid .lesson-keys { display:none; }
.info-strip { display:flex; align-items:flex-start; gap:12px; background:var(--soft); border:1px solid var(--line); border-radius:10px; padding:20px; font-size:13px; color:var(--muted); margin-bottom:26px; }.info-strip strong { color:var(--ink); }.info-strip svg { color:var(--green); margin-top:2px; }
.practice-setup { display:grid; grid-template-columns:1fr .9fr; gap:24px; }.practice-setup .panel { min-width:0; }
.keyboard { max-width:700px; margin:24px auto 0; }.keyboard-row { display:flex; justify-content:center; gap:6px; margin:6px 0; }.key { display:grid; place-items:center; width:44px; height:42px; border:1px solid var(--line); border-bottom:3px solid var(--line); border-radius:7px; background:var(--card); color:var(--muted); font:13px/1 'Segoe UI',sans-serif; }.key.lit { background:var(--soft); color:var(--green); border-color:#b31e2d; box-shadow:0 0 0 2px #b31e2d15; }.key.space { width:250px; max-width:65%; font-size:11px; }
.key.key-correct { background:#dff5e8; color:#126e3e; border-color:#73ba90; }.key.key-wrong { background:#ffe2e6; color:#b02132; border-color:#db6574; }
.finger-hint { color:var(--ink); text-align:center; margin-top:18px; font-size:14px; font-weight:600; }
.practice-shell { max-width:1060px; margin:auto; padding:15px 0 35px; }.practice-bar { display:flex; justify-content:space-between; align-items:center; gap:24px; margin-bottom:27px; }.practice-bar h2 { font-size:19px; }.session-stats { display:flex; gap:35px; }.session-stats strong { font-size:25px; font-weight:700; display:block; font-variant-numeric:tabular-nums; }.session-stats small { display:block; font-size:9px; color:var(--muted); letter-spacing:1px; }.session-badge { display:flex; align-items:center; gap:8px; color:var(--green); font-size:14px; }
.typing-card { background:var(--card); padding:30px; border:1px solid var(--line); border-radius:13px; }.reference { height:190px; overflow-y:auto; scroll-behavior:smooth; margin-bottom:25px; font:22px/2.1 ui-monospace,Consolas,monospace; letter-spacing:.2px; overflow-wrap:anywhere; }
.reference .word { display:inline-block; padding:0 3px; margin-right:10px; border-bottom:2px solid transparent; }.reference .word.current { background:var(--soft); border-color:var(--green); }.reference .word.correct { color:var(--success); }.reference .word.wrong { color:var(--red); }
.character-word { display:inline-block; white-space:nowrap; }.letter { display:inline-block; padding:0 1px; border-bottom:2px solid transparent; border-radius:3px; color:var(--muted); }.letter-space { padding:0 5px; color:#b9bec8; }.letter.correct { background:#e1f5e9; color:#13763f; }.letter.wrong { background:#ffe1e6; color:#bf2036; border-bottom-color:#c62b3b; }.letter.current { color:var(--green); background:var(--soft); border-bottom-color:#b31e2d; box-shadow:0 2px 0 #b31e2d; }.dark .letter.correct { background:#16412b; color:#9ae8b5; }.dark .letter.wrong { background:#502832; color:#ff9caa; }
.typing-input { font:20px/1.8 ui-monospace,Consolas,monospace; min-height:105px; max-height:240px; }.typing-help { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-top:14px; color:var(--muted); font-size:11px; }.character-status { font-size:12px; color:var(--muted); text-align:right; margin-top:15px; padding-top:12px; border-top:1px solid var(--line); }
.countdown { min-height:400px; display:grid; place-items:center; text-align:center; }.countdown strong { display:block; font-size:110px; line-height:1.3; font-weight:750; color:var(--green); }.countdown p { color:var(--muted); }
.focus-session .sidebar,.focus-session .topbar,.focus-session .footer { display:none; }.focus-session main { padding-top:35px; }
.result-header { text-align:center; margin:10px 0 32px; }.result-check { display:grid; place-items:center; width:50px; height:50px; background:var(--soft); color:var(--green); border-radius:50%; margin:0 auto 17px; }.result-header p { color:var(--muted); font-size:13px; margin-top:13px; }.result-header .training-result { color:var(--success); font-weight:600; }.result-actions { display:flex; justify-content:center; gap:12px; flex-wrap:wrap; margin:28px 0; }.result-panels { display:grid; grid-template-columns:1.1fr 1fr; gap:22px; }.mistake-list { display:flex; gap:8px; flex-wrap:wrap; margin-top:18px; }.mistake-chip { padding:5px 12px; border:1px solid #e7bfc5; border-radius:6px; background:var(--soft); color:var(--red); font-size:13px; }.analysis-row { display:flex; justify-content:space-between; gap:15px; padding:13px 0; border-bottom:1px solid var(--line); font-size:13px; }.analysis-row:last-child { border:0; }.result-notice { background:var(--soft); border-radius:8px; padding:18px; margin-top:24px; color:var(--muted); font-size:12px; }
.empty-state { padding:35px 24px; text-align:center; color:var(--muted); }.empty-state>svg { width:34px; height:34px; }.empty-state h2 { margin:15px 0 10px; color:var(--ink); }.empty-state p { font-size:13px; max-width:500px; margin:0 auto 20px; }
.table-wrap { overflow-x:auto; }table { width:100%; border-collapse:collapse; text-align:left; font-size:13px; }th { padding:14px 12px; font-size:10px; letter-spacing:.6px; color:var(--muted); font-weight:650; white-space:nowrap; }td { padding:17px 12px; }th,td { border-bottom:1px solid var(--line); }td small { display:block; font-size:11px; color:var(--muted); }
.guide { max-width:1000px; margin:auto; }.guide-grid { display:grid; grid-template-columns:1fr 1fr; gap:22px; }.guide .panel { margin-bottom:22px; }.guide h2 { margin-bottom:17px; }.guide h3 { margin:23px 0 10px; font-size:16px; }.guide p,.guide li { color:var(--muted); font-size:14px; }.guide a { color:var(--green); text-decoration:underline; }.guide li { margin-bottom:9px; }.big-target { font-size:55px; font-weight:700; color:var(--green); }.big-target small { color:var(--muted); font-size:14px; font-weight:400; }
details { border-bottom:1px solid var(--line); padding:18px 0; }summary { font-size:14px; cursor:pointer; font-weight:650; }details p { margin-top:14px; }
dialog { background:var(--card); color:var(--ink); width:640px; max-width:calc(100vw - 32px); max-height:88vh; overflow:auto; border:1px solid var(--line); border-radius:14px; box-shadow:0 20px 80px #0003; padding:30px; }dialog::backdrop { background:#171c2a88; }.dialog-head { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:20px; }dialog p { color:var(--muted); font-size:14px; }dialog .button { margin-top:20px; }.storage-status { margin-top:15px; font-size:12px; }
.toast { position:fixed; left:50%; bottom:25px; transform:translateX(-50%); background:#302128; color:#fff; border-radius:8px; max-width:90vw; padding:15px 22px; font-size:13px; box-shadow:0 6px 25px #0002; z-index:100; }.error-inline { color:var(--red); font-size:12px; margin:10px 0; }.noscript,.not-found { background:var(--card); max-width:700px; padding:45px; margin:70px auto; }.not-found p { margin:20px 0; }
.archive-strip { margin-bottom:25px; display:flex; gap:15px; align-items:center; background:var(--soft); border:1px solid var(--line); padding:18px 20px; border-radius:10px; font-size:13px; color:var(--muted); }.archive-strip strong { color:var(--ink); }.archive-filters { display:flex; gap:10px; margin-bottom:20px; flex-wrap:wrap; }.archive-filters label { display:flex; gap:9px; align-items:center; color:var(--muted); font-size:12px; }.archive-filters select { background:var(--card); border:1px solid var(--line); border-radius:7px; padding:8px 12px; }.source-links { display:flex; gap:15px; margin:12px 0 18px; font-size:11px; }.source-links a { color:var(--green); text-decoration:underline; }.library-count { font-size:12px; color:var(--muted); margin-left:auto; }.library-grid .text-card>div:last-child { flex-wrap:wrap; }.text-preview { white-space:pre-wrap; }
@media(max-width:1150px) { .sidebar { gap:20px; padding:0 25px; }.brand { font-size:21px; }.nav-link { padding:10px 9px; font-size:12px; }.nav-link svg { display:none; }.home-intro { padding:32px; }.home-launcher { padding:30px; }.home-intro h2 { font-size:41px; }.footer { margin:0 28px; } }
@media(max-width:900px) { .sidebar { flex-wrap:wrap; height:auto; gap:16px; padding:19px 24px 0; }.sidebar nav { width:100%; margin:0; overflow-x:auto; padding-bottom:14px; }.nav-link { padding:9px 13px; font-size:12px; }.nav-link svg { display:block; }.home-intro { padding:28px; }.home-launcher { padding:25px; }.home-intro h2 { font-size:36px; }.home-heading h1 { font-size:32px; }.fields-grid { gap:12px; }.start-row { flex-wrap:wrap; }.start-row>small { max-width:none; width:100%; }.start-row>small br { display:none; }.library-grid,.lesson-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.letter-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }.metric { padding:17px; }.metric-value { font-size:28px; }.dashboard-grid,.practice-setup { grid-template-columns:1fr; }.daily-panel h2 { max-width:none; }.goal-value { margin-top:16px; }.feature-card { padding:20px; }.trust-row { gap:15px; }.trust-row span { font-size:10px; } }
@media(max-width:650px) { .sidebar { position:relative; padding:18px 18px 0; gap:17px; }.brand { font-size:23px; }.sidebar nav { padding-bottom:15px; scrollbar-width:none; }.nav-link { padding:9px 11px; font-size:11px; }.nav-link svg { width:15px; height:15px; }.topbar { padding:0 18px; height:57px; }.local-badge { display:none; }main { padding:18px 18px 32px; }h1 { font-size:29px; }.home-heading h1 { font-size:30px; line-height:1.2; }.home-heading p { font-size:13px; }.home-workspace { grid-template-columns:1fr; }.home-intro { padding:28px; }.home-intro h2 { font-size:37px; margin:18px 0 12px; }.home-intro>p { max-width:none; font-size:13px; }.feedback-demo,.intro-foot { display:none; }.intro-link { margin-top:18px; font-size:13px; }.home-launcher { padding:24px; }.trust-row { flex-wrap:wrap; gap:8px 20px; padding:17px 0; }.trust-row span { font-size:10px; }.metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }.metric { padding:17px; }.metric-head { font-size:11px; }.metric-value { font-size:29px; }.metric-caption { font-size:9px; }.metric-value small { font-size:10px; }.panel { padding:22px; }.feature-grid,.library-grid,.lesson-grid,.guide-grid,.result-panels { grid-template-columns:1fr; }.letter-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.letter-grid .text-card { padding:18px; }.letter-grid h3 { font-size:16px; }.letter-grid p { font-size:11px; }.letter-grid .pill { font-size:9px; padding:3px 6px; }.page-heading { align-items:start; flex-wrap:wrap; margin-top:6px; }.page-heading p { font-size:13px; }.section-title { align-items:start; }.section-title h2 { font-size:19px; }.section-title .text-link { font-size:10px; }.toolbar { gap:8px; }.filter { font-size:11px; padding:8px 10px; }.search { width:100%; min-width:0; flex-basis:100%; }.lesson-toolbar .pill { margin-left:0; }.lesson-toolbar>div { width:100%; }.info-strip { font-size:12px; padding:17px; }.footer { flex-wrap:wrap; gap:15px; margin:0 18px; }.footer>span { width:100%; }.practice-bar { flex-wrap:wrap; gap:15px; }.practice-bar h2 { font-size:16px; }.practice-bar>div:first-child { max-width:55%; }.session-stats { order:3; justify-content:space-between; width:100%; gap:20px; }.session-stats strong { font-size:23px; }.typing-card { padding:20px 16px; }.reference { height:170px; line-height:2.2; }.typing-help { flex-wrap:wrap; font-size:11px; gap:10px; }.typing-input { font-size:17px; }.keyboard-row { gap:4px; }.key { width:calc((100vw - 78px)/12); min-width:0; height:34px; font-size:10px; border-radius:4px; }.key.space { width:210px; }.finger-hint { font-size:13px; }.focus-session main { padding-top:16px; }.result-header h1 { font-size:28px; }.result-actions .button { flex:1; font-size:12px; }.result-notice { font-size:11px; }.archive-strip { font-size:12px; align-items:start; }.archive-filters { gap:14px; }.library-count { margin-left:0; }.character-word { white-space:normal; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; transition:none!important; animation:none!important; } }
.text-meta { color:var(--muted); font-size:11px; margin-top:auto; padding-top:4px; }
.text-card-actions { display:flex; gap:8px; margin-top:12px; }
.pagination { display:flex; align-items:center; justify-content:center; gap:22px; padding:12px; }
.pagination span { color:var(--muted); font-size:12px; }
.source-links { flex-wrap:wrap; }
@media(max-width:900px) { .start-row>small br::after { content:' '; } }

@media(max-width:650px){.home-intro{min-height:320px;padding:26px 22px;overflow:hidden}.home-intro h2{font-size:32px;max-width:230px;position:relative;z-index:1}.home-intro>p{max-width:180px;font-size:12px;position:relative;z-index:1}.home-intro .intro-link{max-width:160px;font-size:12px;position:relative;z-index:1;margin-top:20px}.signature-art{right:6px;bottom:10px;width:clamp(150px,35vw,225px);opacity:1}.intro-tag{font-size:8px;letter-spacing:1.4px}}

@media(max-width:650px){.home-workspace{grid-template-columns:minmax(0,1fr)}.home-launcher .segmented button{min-width:0;padding:10px 4px;font-size:11px}.home-launcher .fields-grid>div{min-width:0}.home-launcher .select{min-width:0;max-width:100%}}
@media(max-width:420px){.home-launcher .fields-grid{grid-template-columns:minmax(0,1fr);gap:18px}}
@media(max-width:380px){.home-intro h2{font-size:29px}.home-intro>p{max-width:150px}.home-intro .intro-link{max-width:140px;font-size:11px}.signature-art{width:120px;right:6px;bottom:12px}}
