

@font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: block; src: url("/src/fonts/Nunito-Variable.woff") format("woff"); }
@font-face { font-family: "Nunito"; font-style: italic; font-weight: 200 1000; font-display: block; src: url("/src/fonts/Nunito-Italic-Variable.woff") format("woff"); }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 400 800; font-display: block; src: url("/src/fonts/Baloo2-Variable.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: block; src: url("/src/fonts/InterVariable.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 100 900; font-display: block; src: url("/src/fonts/InterVariable-Italic.woff2") format("woff2"); }
:root {
  --grad: linear-gradient(120deg, #5b4bff 0%, #9b4dff 50%, #16d4e8 100%);
  --grad-soft: linear-gradient(120deg, rgba(91,75,255,.16), rgba(155,77,255,.12) 50%, rgba(22,212,232,.14));
  --accent: #7c5cff;
  --accent-2: #16d4e8;
  --ok: #22c55e;
  --warn: #f59e0b;
  --bad: #ef4444;
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "Inter", "Segoe UI", sans-serif;
  --ipa: "Inter", "Segoe UI", "Lucida Sans Unicode", "Arial Unicode MS", sans-serif;
}
[data-theme="dark"] {
  --bg: #0b0d14;
  --bg-2: #10131d;
  --panel: rgba(22, 26, 40, .78);
  --panel-solid: #161a28;
  --panel-2: #1c2132;
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.14);
  --text: #e9ebf5;
  --text-2: #a7adc4;
  --text-3: #6f7690;
  --hover: rgba(255,255,255,.06);
  --active: rgba(124,92,255,.18);
  --shadow: 0 18px 50px rgba(0,0,0,.45);
  --glow: radial-gradient(1200px 600px at 10% -10%, rgba(91,75,255,.22), transparent 60%), radial-gradient(900px 500px at 110% 10%, rgba(22,212,232,.12), transparent 60%);
}
[data-theme="light"] {
  --bg: #f5f6fb;
  --bg-2: #eef0f8;
  --panel: rgba(255,255,255,.86);
  --panel-solid: #ffffff;
  --panel-2: #f3f4fa;
  --line: rgba(20,24,40,.08);
  --line-2: rgba(20,24,40,.14);
  --text: #171a2b;
  --text-2: #50566e;
  --text-3: #8a90a8;
  --hover: rgba(20,24,40,.05);
  --active: rgba(124,92,255,.12);
  --shadow: 0 18px 50px rgba(30,30,80,.14);
  --glow: radial-gradient(1200px 600px at 10% -10%, rgba(91,75,255,.12), transparent 60%), radial-gradient(900px 500px at 110% 10%, rgba(22,212,232,.10), transparent 60%);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--glow), var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 14px/22px var(--font);
  font-optical-sizing: auto;
  font-synthesis: none;
  font-feature-settings: "calt" 1, "kern" 1;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
  display: grid;
  grid-template-rows: 52px 1fr;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
button:disabled { opacity: .4; cursor: default; }
[hidden] { display: none !important; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--text-2); }
.small { font-size: 12px; }
.sp { flex: 1; }
a { color: var(--accent-2); text-decoration: none; cursor: pointer; }
a:hover { text-decoration: underline; }
.tx-meta a { color: var(--text-3); font-size: 14px; }
::selection { background: rgba(124,92,255,.35); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px ; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }


.titlebar {
  -webkit-app-region: drag;
  display: flex; align-items: center; gap: 14px;
  padding: 0 150px 0 14px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: none;
  position: relative; z-index: 20;
}
.nodrag { -webkit-app-region: no-drag; }
.brand { display: flex; align-items: center; gap: 9px; padding: 4px 8px 4px 2px; border-radius: 10px ; }
.brand:hover { background: var(--hover); }
.brand-logo { width: 30px; height: 30px; filter: drop-shadow(0 4px 12px rgba(124,92,255,.45)); }
.brand-name { font: 500 16px/16px var(--font-display); letter-spacing: -.2px; }
.brand-name b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 600; }
.urlbar {
  flex: 1; max-width: 640px; margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px ;
  padding: 4px 4px 4px 12px; transition: border-color .2s, box-shadow .2s;
}
.urlbar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(124,92,255,.15); }
.urlbar .ic { color: var(--text-3); width: 16px; }
.urlbar input { flex: 1; border: 0; outline: 0; background: transparent; min-width: 0; }
.topnav { display: flex; gap: 2px; }
.nav-btn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px ; color: var(--text-2); }
.nav-btn:hover { background: var(--hover); color: var(--text); }
.badge { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 50% ; background: var(--grad); color: #fff; font-size: 12px; font-weight: 600; display: grid; place-items: center; }


.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: none; }
.card-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.card-h h3 { margin: 0; font: 500 14px var(--font-display); }
.btn-grad {
  background: var(--grad); color: #fff; font-weight: 500; border-radius: 10px ; padding: 10px 18px;
  box-shadow: none; transition: transform .12s, filter .2s; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-grad:hover { filter: brightness(1.08); }
.btn-grad:active { transform: translateY(1px); }
.btn-grad.sm { padding: 6px 12px; border-radius: 6px ; font-size: 14px; }
.btn { white-space: nowrap; border: 1px solid var(--line-2); border-radius: 10px ; padding: 7px 13px; background: var(--panel-2); display: inline-flex; align-items: center; gap: 6px; }
.btn:hover { border-color: var(--accent); }
.btn.danger:hover { border-color: var(--bad); color: var(--bad); }
.chip { border: 1px solid var(--line-2); border-radius: 10px ; padding: 6px 12px; background: var(--panel-2); color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; transition: all .15s; }
.chip:hover { color: var(--text); border-color: var(--accent); background: var(--active); }
.chip.sm { padding: 3px 10px; font-size: 12px; }
.chip.on { background: var(--active); border-color: var(--accent); color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { font-size: 12px; font-weight: 500; padding: 2px 9px; border-radius: 10px ; background: var(--active); color: var(--accent); }
[data-theme="dark"] .pill { color: #b9a8ff; }
.pill.ghost { background: transparent; color: var(--text-3); }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px ; color: var(--text-2); transition: all .15s; flex: none; }
.icon-btn:hover:not(:disabled) { background: var(--hover); color: var(--text); }
.icon-btn.on { color: #fff; background: var(--grad); box-shadow: none; }
.icon-btn.big { width: 52px; height: 52px; border-radius: 50%; background: var(--grad); color: #fff; box-shadow: none; }
.icon-btn.big .ic { width: 24px; height: 24px; fill: #fff; stroke: none; }
.icon-btn.big .pause { display: none; }
.icon-btn.big.playing .play { display: none; }
.icon-btn.big.playing .pause { display: block; }
.seg { display: inline-flex; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px ; padding: 3px; gap: 2px; }
.seg button { padding: 6px 12px; border-radius: 6px ; color: var(--text-2); font-weight: 500; white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--panel-solid); color: var(--text); box-shadow: none; }
[data-theme="dark"] .seg button.on { background: #2a3048; }
.seg.small button { padding: 4px 9px; font-size: 12px; }
input[type=text], input[type=password], input:not([type]), select, textarea {
  background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 10px ; padding: 8px 11px; outline: 0;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
.urlbar input, .hero-url input { border: 0 !important; background: transparent !important; }
select { cursor: pointer; }
kbd { font: 12px var(--mono); padding: 1px 6px; border-radius: 6px ; border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--panel-2); }


.view { overflow: auto; min-height: 0; }
#home { padding: 36px 32px 48px; }
.hero { max-width: 860px; margin: 0 auto; text-align: center; }
.hero-logo { width: 88px; height: 88px; filter: drop-shadow(0 16px 40px rgba(124,92,255,.5)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px) rotate(-2deg); } }
.hero h1 { font: 600 28px/36px var(--font-display); letter-spacing: -0.8px; margin: 14px 0 8px; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-url { margin: 26px auto 12px; max-width: 720px; display: flex; gap: 8px; padding: 7px 7px 7px 18px; border-radius: 10px ; background: var(--panel); border: 1px solid var(--line-2); box-shadow: none; }
.hero-url input { flex: 1; font-size: 14px; outline: 0; }
.hero-actions { display: flex; gap: 8px; justify-content: center; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 28px auto 0; text-align: left; }
.step { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 10px ; background: var(--grad-soft); border: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.step b { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px ; background: var(--grad); color: #fff; font-size: 12px; }
.home-grid { max-width: 1100px; margin: 22px auto 0; display: grid; grid-template-columns: 300px 1fr; gap: 16px; }
.home-grid > .card { padding: 18px; }
.home-grid > .card:nth-child(n+3) { grid-column: 1 / -1; }
.recent { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.rcard { text-align: left; border-radius: 10px ; overflow: hidden; background: var(--panel-2); border: 1px solid var(--line); transition: transform .15s, border-color .15s; position: relative; }
.rcard:hover { transform: translateY(-2px); border-color: var(--accent); }
.rcard img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: #000; }
.rcard .rt { padding: 8px 10px 4px; font-size: 14px; line-height: 20px; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rcard .rm { padding: 0 10px 10px; font-size: 12px; color: var(--text-3); }
.rcard .bar { height: 3px; background: var(--line); }
.rcard .bar i { display: block; height: 100%; background: var(--grad); }
.rcard .del { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 6px ; background: rgba(0,0,0,.55); color: #fff; opacity: 0; transition: opacity .15s; }
.rcard:hover .del { opacity: 1; }
.empty { color: var(--text-3); padding: 24px; text-align: center; font-size: 14px; grid-column: 1 / -1; }
.today-card .ring { width: 120px; height: 120px; margin: 6px auto 10px; display: block; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kpi { background: var(--panel-2); border-radius: 10px ; padding: 10px; }
.kpi b { display: block; font: 600 20px var(--font-display); }
.kpi span { font-size: 12px; color: var(--text-3); }


#study { display: grid; grid-template-columns: minmax(0, 1fr) clamp(360px, 32vw, 500px); gap: 14px; padding: 14px; overflow: hidden; }
.left { display: flex; flex-direction: column; gap: 12px; min-height: 0; overflow: auto; padding-right: 2px; }
.player-wrap { position: relative; width: min(100%, calc(48vh * 16 / 9)); align-self: center; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: none; flex: none; }
.player-wrap iframe, #player { position: absolute; inset: 0; width: 100%; height: 100%; }
.player-wrap.novideo { width: 100%; aspect-ratio: auto; height: 110px; background: var(--grad-soft); box-shadow: none; border: 1px solid var(--line); }
.player-wrap.novideo .player-veil { background: transparent; color: var(--text); }
.player-wrap.novideo .player-veil img { width: 40px; vertical-align: middle; margin-right: 8px; }
.player-wrap.novideo .player-veil p { display: inline; }
.player-veil { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.7); color: #fff; text-align: center; padding: 30px; }
.controls { padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; flex: none; }
.ctrl-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.main-ctrls { gap: 6px; }
.speed { display: flex; align-items: center; gap: 2px; margin-left: auto; color: var(--text-3); }
.speed button { padding: 4px 8px; border-radius: 6px ; font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.speed button:hover { background: var(--hover); }
.speed button.on { background: var(--active); color: var(--text); font-weight: 500; }
.repeat-box { display: flex; align-items: center; gap: 2px; color: var(--text-3); }
.repeat-box select { padding: 4px 6px; border-radius: 6px ; }

.practice { padding: 16px 18px; flex: none; }
.practice-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sentence-big { font: 500 28px/45px var(--font-display); margin: 12px 0 4px; letter-spacing: -.1px; min-height: 36px; }
.sentence-tr { color: var(--text-2); font-size: 14px; min-height: 22px; }
.w { cursor: pointer; border-radius: 6px ; padding: 0 1px; transition: background .12s, color .12s; }
.w:hover { background: var(--active); color: var(--text); }
.w.now { color: var(--accent-2); }
[data-theme="light"] .w.now { color: #0aa0b4; }
.w.saved { text-decoration: underline 2px; text-decoration-color: rgba(124,92,255,.7); text-underline-offset: 4px; }
.w.hit { color: var(--ok); }
.w.miss { color: var(--bad); text-decoration: underline wavy rgba(239,68,68,.6); }
.w.cloze { color: transparent !important; background: var(--hover); border-bottom: 2px solid var(--accent); border-radius: 6px ; }
.blind .w { filter: blur(6px); }
.blind:hover .w { filter: blur(3px); }
.turn { margin-top: 12px; position: relative; height: 34px; border-radius: 6px ; background: var(--panel-2); overflow: hidden; display: grid; place-items: center; font-weight: 500; font-size: 14px; }
.turn-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--grad); opacity: .3; width: 0; }
.turn span { position: relative; }
.rec-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.rec-btn { display: flex; align-items: center; gap: 9px; padding: 10px 18px; border-radius: 10px ; background: var(--panel-2); border: 1px solid var(--line-2); font-weight: 500; flex: none; }
.rec-btn .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--bad); box-shadow: none; }
.rec-btn.recording { border-color: var(--bad); color: var(--bad); }
.rec-btn.recording .dot { animation: pulse 1.1s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(239,68,68,0); } 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); } }
#wave { flex: 1; min-width: 60px; height: 56px; border-radius: 10px ; background: var(--panel-2); }
.score { margin-top: 12px; padding: 12px 14px; border-radius: 10px ; background: var(--grad-soft); border: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; }
.score .num { font: 600 28px/28px var(--font-display); grid-row: span 3; }
.score .num.good { color: var(--ok); } .score .num.mid { color: var(--warn); } .score .num.low { color: var(--bad); }
.score .heard { color: var(--text-2); font-size: 14px; }
.dictation { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.dictation input { flex: 1; min-width: 200px; }
.dict-result { width: 100%; font-size: 14px; }


.right { display: flex; flex-direction: column; min-height: 0; overflow: hidden; position: relative; }
.tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); }
.tabs button { flex: 1; padding: 8px; border-radius: 10px ; color: var(--text-2); font-weight: 500; }
.tabs button:hover { background: var(--hover); }
.tabs button.on { background: var(--active); color: var(--text); }
.tab-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.tx-head { padding: 12px 14px 8px; border-bottom: 1px solid var(--line); }
.vtitle { font-weight: 500; line-height: 1.45; padding-top: 1px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tx-meta { font-size: 12px; color: var(--text-3); margin-top: 2px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tx-meta select { padding: 1px 6px; font-size: 12px; border-radius: 6px ; }
.progress-line { height: 3px; background: var(--line); border-radius: 3px; margin-top: 8px; overflow: hidden; }
.progress-line div { height: 100%; width: 0; background: var(--grad); transition: width .3s; }
.transcript { flex: 1; overflow: auto; padding: 6px 6px 40px; scroll-behavior: smooth; }
.line { display: grid; grid-template-columns: 44px 1fr auto; gap: 4px 8px; padding: 9px 10px; border-radius: 10px ; cursor: pointer; border: 1px solid transparent; transition: background .15s; }
.line:hover { background: var(--hover); }
.line.cur { background: var(--active); border-color: rgba(124,92,255,.35); }
.line .t { font: 12px var(--mono); color: var(--text-3); padding-top: 3px; }
.line .tx { font-size: 14px; line-height: 22px; }
.line .tr { grid-column: 2 / 3; color: var(--text-2); font-size: 14px; }
.line .acts { display: flex; gap: 2px; opacity: 0; transition: opacity .15s; align-self: start; }
.line:hover .acts, .line.cur .acts { opacity: 1; }
.line .acts button { width: 32px; height: 32px; border-radius: 6px ; display: grid; place-items: center; color: var(--text-3); }
.line .acts button:hover { background: var(--hover); color: var(--text); }
.line .acts .ic { width: 16px; height: 16px; }
.line .sc { font-size: 12px; font-weight: 600; padding: 0 6px; border-radius: 6px ; align-self: start; margin-top: 3px; }
.sc.good { background: rgba(34,197,94,.15); color: var(--ok); } .sc.mid { background: rgba(245,158,11,.15); color: var(--warn); } .sc.low { background: rgba(239,68,68,.15); color: var(--bad); }
.line .bm { color: #f5b301 !important; }
.hide-tr .tr, .hide-tr .sentence-tr { display: none; }
.follow-btn { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; padding: 6px 14px; border-radius: 10px ; font-weight: 500; box-shadow: none; font-size: 12px; }


.ai-head { padding: 10px 12px 4px; }
.providers { display: flex; gap: 6px; flex-wrap: wrap; }
.prov { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 10px ; border: 1px solid var(--line-2); font-size: 12px; font-weight: 500; color: var(--text-2); }
.prov i { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.prov.ready i { background: var(--ok); }
.prov.on { border-color: var(--accent); background: var(--active); color: var(--text); }
.quick::-webkit-scrollbar { height: 0; }
.quick { display: flex; gap: 6px; padding: 6px 12px 8px; overflow-x: auto; flex: none; }
.quick .chip { flex: none; font-size: 12px; padding: 4px 10px; }
.chat { flex: 1; overflow: auto; padding: 8px 12px 12px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 92%; padding: 10px 13px; border-radius: 10px ; font-size: 14px; line-height: 22px; word-wrap: break-word; }
.msg.user { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 4px; }
.msg.ai { align-self: flex-start; background: var(--panel-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.ai .meta { font-size: 12px; color: var(--text-3); margin-top: 6px; display: flex; gap: 8px; align-items: center; }
.msg.ai .meta button { color: var(--text-3); font-size: 12px; }
.msg.ai .meta button:hover { color: var(--text); }
.msg.err { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.3); }
.chat-input { display: flex; gap: 6px; align-items: flex-end; padding: 8px 10px 4px; border-top: 1px solid var(--line); }
.chat-input textarea { flex: 1; resize: none; max-height: 140px; min-height: 38px; }
.chat-input .btn-grad { height: 40px; }
.chat-input .icon-btn.on { background: var(--bad); }
.tts-toggle { font-size: 12px; color: var(--text-3); padding: 2px 12px 10px; display: flex; align-items: center; gap: 6px; }
.webai { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }


.md h1, .md h2, .md h3, .md h4 { font-family: var(--font-display); margin: 12px 0 6px; line-height: 1.3; }
.md h1 { font-size: 16px; } .md h2 { font-size: 16px; } .md h3 { font-size: 14px; } .md h4 { font-size: 14px; }
.md p { margin: 6px 0; }
.md ul, .md ol { margin: 6px 0; padding-left: 22px; }
.md li { margin: 3px 0; }
.md code { font: 12px var(--mono); background: var(--hover); padding: 1px 5px; border-radius: 6px ; }
.md pre { background: var(--hover); padding: 10px; border-radius: 10px ; overflow: auto; }
.md table { border-collapse: collapse; margin: 8px 0; font-size: 14px; width: 100%; }
.md th, .md td { border: 1px solid var(--line-2); padding: 5px 8px; text-align: left; vertical-align: top; }
.md th { background: var(--hover); }
.md blockquote { margin: 6px 0; padding: 4px 12px; border-left: 3px solid var(--accent); color: var(--text-2); }
.md strong { color: var(--text); }
.md hr { border: 0; border-top: 1px solid var(--line-2); margin: 10px 0; }
.typing::after { content: "▍"; animation: blink 1s steps(1) infinite; color: var(--accent); }
@keyframes blink { 50% { opacity: 0; } }


.words-list { overflow: auto; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.witem { padding: 10px 12px; border-radius: 10px ; background: var(--panel-2); border: 1px solid var(--line); }
.witem .wh { display: flex; align-items: baseline; gap: 8px; }
.witem .wh b { font-size: 14px; }
.witem .ipa { font: 14px var(--mono); color: var(--text-3); }
.witem .mean { color: var(--text-2); font-size: 14px; margin-top: 2px; }
.witem .ctx { color: var(--text-3); font-size: 12px; font-style: italic; margin-top: 4px; }


.popover {
  position: fixed; z-index: 60; width: 400px; max-height: min(620px, 80vh); overflow: auto;
  background: var(--panel-solid); border: 1px solid var(--line-2); border-radius: 10px ; box-shadow: var(--shadow);
  padding: 16px; animation: pop .14s ease-out;
}
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.pop-h { display: flex; align-items: center; gap: 8px; }
.pop-word { font: 600 28px var(--font-display); letter-spacing: -.3px; }
.pop-close { margin-left: auto; }
.ipa-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 10px; }
.ipa-btn { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 6px ; background: var(--panel-2); border: 1px solid var(--line); font: 14px var(--mono); }
.ipa-btn:hover { border-color: var(--accent); }
.ipa-btn small { font: 500 12px var(--font); color: var(--accent); }
.pop-sec { margin-top: 12px; }
.pop-sec h4 { margin: 0 0 6px; font-size: 12px; letter-spacing: .6px; text-transform: uppercase; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.trans-main { font-size: 16px; font-weight: 500; }
.pos { display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent); background: var(--active); padding: 0 7px; border-radius: 6px ; margin-right: 6px; }
[data-theme="dark"] .pos { color: #b9a8ff; }
.def { margin: 4px 0 8px; font-size: 14px; }
.def .ex { color: var(--text-2); font-style: italic; display: block; margin-top: 2px; }
.syn { font-size: 12px; color: var(--text-2); }
.pop-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; position: sticky; bottom: -16px; background: var(--panel-solid); padding: 10px 0 2px; }
.skeleton { height: 12px; border-radius: 6px ; background: linear-gradient(90deg, var(--hover), var(--line-2), var(--hover)); background-size: 200% 100%; animation: sk 1.2s infinite; margin: 6px 0; }
@keyframes sk { to { background-position: -200% 0; } }


.drawer { position: fixed; top: 64px; right: 14px; bottom: 14px; width: min(560px, 46vw); z-index: 50; background: var(--panel-solid); border: 1px solid var(--line-2); border-radius: 10px ; box-shadow: var(--shadow); display: flex; flex-direction: column; animation: slide .18s ease-out; }
@keyframes slide { from { transform: translateX(20px); opacity: 0; } }
.drawer-h { display: flex; align-items: center; padding: 12px 14px 8px 18px; border-bottom: 1px solid var(--line); }
.drawer-h h3 { margin: 0; flex: 1; font-family: var(--font-display); }
.drawer-body { overflow: auto; padding: 14px 18px 24px; }
.g-sentence { font: 500 16px/24px var(--font-display); padding: 12px 14px; border-radius: 10px ; background: var(--grad-soft); border: 1px solid var(--line); }
.g-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.g-tag { font-size: 12px; padding: 3px 10px; border-radius: 10px ; border: 1px solid var(--line-2); background: var(--panel-2); }
.g-tag b { color: var(--accent); }
[data-theme="dark"] .g-tag b { color: #b9a8ff; }
.pos-row { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0; }
.pos-tok { display: inline-flex; flex-direction: column; align-items: center; padding: 3px 6px; border-radius: 6px ; background: var(--panel-2); font-size: 14px; }
.pos-tok small { font-size: 12px; color: var(--text-3); font-weight: 600; letter-spacing: .4px; }
.pos-tok.V { box-shadow: inset 0 -2px 0 #9b4dff; } .pos-tok.N { box-shadow: inset 0 -2px 0 #16d4e8; } .pos-tok.ADJ { box-shadow: inset 0 -2px 0 #22c55e; } .pos-tok.ADV { box-shadow: inset 0 -2px 0 #f59e0b; } .pos-tok.PRON { box-shadow: inset 0 -2px 0 #ec4899; } .pos-tok.PREP { box-shadow: inset 0 -2px 0 #94a3b8; } .pos-tok.AUX, .pos-tok.MODAL { box-shadow: inset 0 -2px 0 #7c5cff; }

.modal-back { position: fixed; inset: 0; background: rgba(5,6,12,.55); backdrop-filter: none; z-index: 70; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { position: fixed; z-index: 80; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(720px, 92vw); max-height: 88vh; display: flex; flex-direction: column; background: var(--panel-solid); border: 1px solid var(--line-2); border-radius: 10px ; box-shadow: var(--shadow); animation: pop .16s ease-out; }
.modal.wide { width: min(1000px, 94vw); height: 86vh; }
.modal-h { display: flex; align-items: center; gap: 10px; padding: 16px 18px 12px 22px; border-bottom: 1px solid var(--line); }
.modal-h h2 { margin: 0; font: 600 20px var(--font-display); flex: 1; }
.modal-b { overflow: auto; padding: 18px 22px 22px; flex: 1; min-height: 0; }
.modal-f { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
.set-nav { display: flex; gap: 4px; padding: 10px 18px 0; flex-wrap: wrap; }
.set-sec h3 { font: 500 14px var(--font-display); margin: 4px 0 10px; }
.field { display: grid; grid-template-columns: 200px 1fr; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.field:last-child { border-bottom: 0; }
.field > label { color: var(--text-2); font-size: 14px; }
.field .hint { grid-column: 2; font-size: 12px; color: var(--text-3); margin-top: -4px; }
.field .row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.field .row input, .field .row select { flex: 1; min-width: 120px; }
.ai-card { border: 1px solid var(--line); border-radius: 10px ; padding: 12px 14px; margin-bottom: 12px; background: var(--panel-2); }
.ai-card .hd { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ai-card .hd b { font-size: 14px; }
.ai-card .hd a { margin-left: auto; font-size: 12px; color: var(--accent); cursor: pointer; }
.ai-card .grid { display: grid; grid-template-columns: 90px 1fr; gap: 6px 10px; align-items: center; font-size: 14px; }
.ai-card .grid input { width: 100%; }
.logo-dot { width: 22px; height: 22px; border-radius: 6px ; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 600; }
.switch { position: relative; width: 40px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 10px ; background: var(--line-2); transition: .2s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); }


.vocab-layout { display: grid; grid-template-columns: 1fr; height: 100%; min-height: 0; }
.vtable { width: 100%; border-collapse: collapse; font-size: 14px; }
.vtable th { text-align: left; color: var(--text-3); font-weight: 500; font-size: 12px; padding: 8px; border-bottom: 1px solid var(--line-2); position: sticky; top: 0; background: var(--panel-solid); }
.vtable td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.vtable tr:hover td { background: var(--hover); }
.review { max-width: 600px; margin: 10px auto; text-align: center; }
.flash { min-height: 280px; border-radius: 10px ; padding: 28px; background: var(--grad-soft); border: 1px solid var(--line-2); display: flex; flex-direction: column; justify-content: center; gap: 10px; cursor: pointer; }
.flash .big { font: 600 28px var(--font-display); }
.flash .ctx { color: var(--text-2); font-style: italic; }
.flash .back { border-top: 1px dashed var(--line-2); padding-top: 12px; margin-top: 6px; }
.grade { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.grade button { padding: 10px; border-radius: 10px ; border: 1px solid var(--line-2); background: var(--panel-2); font-weight: 500; }
.grade button small { display: block; font-weight: 400; font-size: 12px; color: var(--text-3); }
.grade .g1:hover { border-color: var(--bad); } .grade .g2:hover { border-color: var(--warn); } .grade .g3:hover { border-color: var(--ok); } .grade .g4:hover { border-color: var(--accent-2); }


.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; margin-top: 18px; padding: 0 4px; }
.bars div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.bars i { width: 100%; border-radius: 6px 6px 2px 2px ; background: var(--grad); min-height: 2px; }
.bars span { font-size: 12px; color: var(--text-3); }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.help-grid div { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }


.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--panel-solid); border: 1px solid var(--line-2); box-shadow: var(--shadow); padding: 10px 16px; border-radius: 10px ; font-size: 14px; animation: pop .15s; pointer-events: auto; max-width: 560px; }
.toast.err { border-color: rgba(239,68,68,.5); }
.toast.ok { border-color: rgba(34,197,94,.5); }
.tooltip { position: fixed; z-index: 120; background: #11131c; color: #f1f2f8; font-size: 12px; padding: 5px 9px; border-radius: 6px ; pointer-events: none; white-space: nowrap; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.tooltip kbd { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff; margin-left: 6px; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--accent); animation: spin .8s linear infinite; margin: 20px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-box { padding: 30px; text-align: center; color: var(--text-2); }
.onb { text-align: center; }
.onb img { width: 84px; }
.onb h2 { font: 600 28px var(--font-display); margin: 10px 0 4px; }
.onb .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; text-align: left; }
.onb .grid3 div { padding: 12px; border-radius: 10px ; background: var(--grad-soft); border: 1px solid var(--line); font-size: 14px; }
.onb .grid3 b { display: block; margin-bottom: 4px; }

@media (max-width: 1180px) {
  .home-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .speed { margin-left: 0; }
}


.ipa, .ipa-btn, .witem .ipa { font-family: var(--ipa) !important; font-feature-settings: normal; }
.hud { display: flex; align-items: center; gap: 10px; padding: 5px 10px; border-radius: 10px ; border: 1px solid var(--line); background: var(--panel-2); margin-left: auto; }
.hud:hover { border-color: var(--accent); }
.hud-streak { font-weight: 600; color: var(--text-3); filter: grayscale(1); }
.hud-streak.on { color: #fb923c; filter: none; }
.hud-lv { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.hud-lv b { font-weight: 600; }
.hud-lv i { width: 70px; height: 7px; border-radius: 6px ; background: var(--line-2); overflow: hidden; display: block; }
.hud-lv u { display: block; height: 100%; background: var(--grad); border-radius: 6px ; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.hud-lv small { color: var(--text-3); font-size: 12px; }
.hud-goal { width: 22px; height: 22px; }
.topnav { margin-left: 4px; }
.urlbar { margin: 0 0 0 12px; }

.hero.compact h1 { font-size: 28px; margin-top: 6px; }
.hero.compact .hero-logo { width: 60px; height: 60px; }
.hero.compact > p.muted { display: none; }
.continue { max-width: 1100px; margin: 26px auto 0; display: grid; grid-template-columns: 300px 1fr auto; gap: 20px; align-items: center; padding: 16px; border-radius: 10px ; background: var(--grad-soft); border: 1px solid var(--line-2); box-shadow: none; cursor: pointer; transition: transform .15s; }
.continue:hover { transform: translateY(-2px); border-color: var(--accent); }
.continue img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px ; display: block; background: #000; }
.continue .ct-label { font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--accent); }
[data-theme="dark"] .continue .ct-label { color: #c4b5fd; }
.continue h2 { margin: 4px 0 10px; font: 600 20px/28px var(--font-display); }
.continue .bar { height: 8px; border-radius: 8px; background: var(--line-2); overflow: hidden; }
.continue .bar i { display: block; height: 100%; background: var(--grad); }
.continue .meta { font-size: 12px; color: var(--text-2); margin-top: 6px; }
.continue .btn-grad { font-size: 16px; padding: 14px 26px; border-radius: 10px ; }

.quest { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.quest .qh { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.quest .qh b { color: var(--accent); font-size: 12px; white-space: nowrap; }
[data-theme="dark"] .quest .qh b { color: #c4b5fd; }
.quest .qbar { height: 7px; border-radius: 8px; background: var(--line-2); margin-top: 6px; overflow: hidden; }
.quest .qbar i { display: block; height: 100%; background: var(--grad); transition: width .5s; }
.quest small { color: var(--text-3); font-size: 12px; }
.quest.done .qh span { color: var(--text-3); text-decoration: line-through; }
.chest { margin-top: 10px; padding: 10px 12px; border-radius: 10px ; background: var(--panel-2); font-size: 14px; color: var(--text-2); }
.chest.open { background: rgba(34,197,94,.12); color: var(--ok); }

.combo { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 10px ; color: #fff; background: linear-gradient(90deg, #f97316, #ec4899); box-shadow: none; }
.combo.pop { animation: comboPop .45s cubic-bezier(.2,1.6,.4,1); }
@keyframes comboPop { from { transform: scale(.4); } }
.xp-float { position: fixed; z-index: 130; transform: translate(-50%, 0); font: 600 16px var(--font); color: #facc15; text-shadow: none; pointer-events: none; animation: xpUp 1.25s ease-out forwards; }
@keyframes xpUp { 0% { opacity: 0; transform: translate(-50%, 6px) scale(.8); } 15% { opacity: 1; transform: translate(-50%, -6px) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -48px) scale(1); } }
.confetti { position: fixed; inset: 0; z-index: 140; pointer-events: none; }

.summary { text-align: center; padding: 28px 30px 26px !important; }
.sum-emoji { font-size: 54px; animation: float 3s ease-in-out infinite; }
.summary h2 { font: 600 28px var(--font-display); margin: 6px 0 2px; }
.sum-xp { font: 600 28px var(--font-display); background: linear-gradient(90deg, #facc15, #f97316, #ec4899); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 16px; }
.kpis.four { grid-template-columns: repeat(4, 1fr); }
.lvbar { margin-top: 16px; text-align: left; }
.lvbar span { font-weight: 600; font-size: 14px; }
.lvbar i { display: block; height: 10px; border-radius: 12px; background: var(--line-2); overflow: hidden; margin: 6px 0 4px; }
.lvbar u { display: block; height: 100%; background: var(--grad); }
.lvbar small { color: var(--text-3); font-size: 12px; }
.ach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.ach { padding: 12px 10px; border-radius: 10px ; background: var(--panel-2); border: 1px solid var(--line); text-align: center; opacity: .45; filter: grayscale(1); }
.ach.on { opacity: 1; filter: none; border-color: rgba(139,92,246,.5); background: var(--grad-soft); }
.ach span { font-size: 28px; display: block; }
.ach b { display: block; font-size: 14px; margin-top: 4px; }
.ach small { color: var(--text-3); font-size: 12px; }
.level-hero { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 10px ; background: var(--grad-soft); border: 1px solid var(--line); margin-bottom: 14px; }
.level-hero .lvnum { font: 600 28px var(--font-display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.level-hero .lvbar { flex: 1; margin: 0; }


.ai-top { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.icon-btn.sm { width: 30px; height: 30px; border-radius: 6px ; font-size: 14px; }
.chip.on { background: var(--active); border-color: var(--accent); color: var(--text); }
.web-wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.web-hint { font-size: 12px; color: var(--text-3); padding: 5px 12px; background: var(--panel-2); }
.webai-view { flex: 1; width: 100%; min-height: 0; display: flex; background: #fff; }
.tpl-panel { max-height: 55%; overflow: auto; padding: 4px 12px 10px; border-bottom: 1px solid var(--line); flex: none; }
.tpl-hint { margin: 4px 0 8px; }
.tpl-cat { margin-bottom: 10px; }
.tpl-cat b { display: block; font-size: 12px; margin-bottom: 5px; }
.tpl { display: block; width: 100%; text-align: left; padding: 7px 10px; margin: 4px 0; border-radius: 10px ; background: var(--panel-2); border: 1px solid var(--line); font-size: 12px; color: var(--text-2); line-height: 17px; }
.tpl:hover { border-color: var(--accent); color: var(--text); background: var(--active); }
body.ai-wide #study { grid-template-columns: minmax(0, 1fr) clamp(480px, 46vw, 820px); }


.pop-lemma { color: var(--text-3); font-size: 14px; }
.ipa-btn.big { padding: 7px 12px; gap: 7px; font-size: 14px; border-radius: 10px ; cursor: pointer; transition: all .15s; }
.ipa-btn.big .spk { width: 17px; height: 17px; color: var(--accent); }
[data-theme="dark"] .ipa-btn.big .spk { color: #c4b5fd; }
.ipa-btn.big:hover { background: var(--active); }
.ipa-btn.playing { border-color: var(--accent); background: var(--active); box-shadow: none; }
.ipa-btn.playing .spk { animation: pulseSpk .8s ease-in-out infinite; }
@keyframes pulseSpk { 50% { transform: scale(1.25); } }
.def-item { margin: 5px 0 9px; font-size: 14px; }
.def-tr { color: var(--accent-2); font-size: 14px; margin-top: 2px; }
[data-theme="light"] .def-tr { color: #0b8ea0; }
.ex-tr { font-style: normal; color: var(--text-3); }
.chip.sm.on, .chip.on { background: var(--active); border-color: var(--accent); color: var(--text); box-shadow: 0 0 0 2px rgba(124,92,255,.18) inset; }
.clause { border: 1px solid var(--line-2); border-radius: 10px ; padding: 10px 12px; margin: 8px 0; background: var(--panel-2); position: relative; }
.clause.main { border-color: rgba(124,92,255,.5); }
.clause:not(.main) { margin-left: 18px; }
.clause:not(.main)::before { content: ""; position: absolute; left: -12px; top: -9px; width: 10px; height: 26px; border-left: 1px solid var(--edge); border-bottom: 1px solid var(--edge); border-bottom-left-radius: 8px; }
.clause-h { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.clause-link { font-size: 12px; color: var(--text-2); margin: 4px 0 2px; }
.roles { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 8px; }
.role { display: inline-flex; flex-direction: column; padding: 5px 9px; border-radius: 10px ; border: 1px solid var(--line); background: var(--panel-solid); }
.role .rt { font-size: 14px; font-weight: 500; }
.role small { font-size: 12px; font-weight: 600; letter-spacing: .3px; color: var(--text-3); }
.r-S { box-shadow: inset 3px 0 0 #22d3ee; } .r-V { box-shadow: inset 3px 0 0 #a855f7; } .r-O { box-shadow: inset 3px 0 0 #22c55e; }
.r-C { box-shadow: inset 3px 0 0 #14b8a6; } .r-A { box-shadow: inset 3px 0 0 #f59e0b; } .r-M { box-shadow: inset 3px 0 0 #ec4899; }
.roles .arrow { font-style: normal; color: var(--text-3); }
.gpoint { padding: 9px 11px; border-radius: 10px ; background: var(--panel-2); border: 1px solid var(--line); margin: 7px 0; font-size: 14px; }
.gp-h { font-weight: 600; margin-bottom: 4px; }
.gp-f { display: inline-block; font: 500 12px var(--font); background: var(--active); color: var(--text); padding: 2px 8px; border-radius: 6px ; margin-bottom: 5px; }
.gp-vi { line-height: 1.55; }
.gp-en { color: var(--text-3); font-size: 12px; margin-top: 3px; }
.drawer { width: min(620px, 50vw); }


.gate { position: fixed; inset: 52px 0 0 0; z-index: 150; display: grid; place-items: center; background: var(--glow), var(--bg); overflow: auto; padding: 20px; }
.gate-card { width: min(620px, 94vw); padding: 30px 32px; border-radius: 10px ; background: var(--panel-solid); border: 1px solid var(--line-2); box-shadow: none; text-align: center; }
.gate-logo { width: 84px; filter: drop-shadow(0 14px 34px rgba(124,92,255,.5)); }
.gate h1 { font: 600 28px/36px var(--font-display); margin: 12px 0 6px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gate-reason { color: var(--text-2); margin: 0 0 18px; }
.gate-step { display: flex; gap: 12px; text-align: left; margin: 14px 0; }
.gate-step > b { flex: none; width: 28px; height: 28px; border-radius: 6px ; background: var(--grad); color: #fff; display: grid; place-items: center; }
.gate-step > div { flex: 1; }
.mid-row { display: flex; gap: 8px; margin-top: 8px; align-items: center; }
.mid-row code { flex: 1; font: 600 20px var(--font); letter-spacing: 2px; padding: 10px 14px; border-radius: 10px ; background: var(--panel-2); border: 1px dashed var(--accent); text-align: center; user-select: all; }
.gate textarea { width: 100%; margin: 8px 0 10px; font: 14px var(--font); resize: vertical; }
.gate-err { color: var(--bad); font-size: 14px; margin-top: 8px; }
.gate-owner { margin-top: 14px; color: var(--text-3); font-size: 12px; }
.gate-owner:hover { color: var(--text); }
.mid-inline { font: 600 14px var(--font); letter-spacing: 1.5px; padding: 6px 10px; border-radius: 6px ; background: var(--panel-2); border: 1px dashed var(--accent); user-select: all; }

body.gated .urlbar, body.gated .topnav, body.gated .hud { visibility: hidden; }


:root {
  --font: "Nunito", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "Baloo 2", "Nunito", "Inter", "Segoe UI", sans-serif;
  --mono: "Nunito", "Inter", sans-serif;
  --ipa: "Inter", "Segoe UI", "Lucida Sans Unicode", sans-serif;
  --yellow: #FFD21F;
  --yellow-2: #FFC400;
  --yellow-3: #E8A800;
  --ink: #141414;
  --grad: linear-gradient(180deg, #FFE047 0%, #FFC400 100%);
  --grad-soft: linear-gradient(135deg, #FFF3BF 0%, #FFFBEA 100%);
  --ok: #22B45A; --warn: #F59E0B; --bad: #EF4444;
  --radius: 22px; --radius-sm: 14px;
}


:root { --edge: rgba(20, 20, 30, .12); --edge-2: rgba(20, 20, 30, .30); --lift: 0 1px 2px rgba(20, 20, 30, .06), 0 8px 20px -14px rgba(20, 20, 30, .28); }
[data-theme="dark"] { --edge: rgba(255, 255, 255, .11); --edge-2: rgba(255, 255, 255, .28); --lift: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 10px 24px -14px rgba(0, 0, 0, .7); }
[data-theme="light"] {
  --bg: #FFF8E1; --bg-2: #FFF1BF;
  --panel: #FFFFFF; --panel-solid: #FFFFFF; --panel-2: #FFF8DD;
  --line: rgba(20,20,20,.10); --line-2: rgba(20,20,20,.20);
  --outline: #141414;
  --text: #141414; --text-2: #4B4637; --text-3: #8F8669;
  --hover: rgba(255,196,0,.16); --active: rgba(255,196,0,.32);
  --accent: #F2B500; --accent-2: #B57E00;
  --shadow: 0 10px 30px rgba(60,45,0,.12);
  --pop: 0 4px 0 #141414;
  --glow: radial-gradient(circle at 1px 1px, rgba(20,20,20,.06) 1.2px, transparent 1.4px) 0 0 / 22px 22px;
}
[data-theme="dark"] {
  --bg: #0D0D0D; --bg-2: #151515;
  --panel: #191919; --panel-solid: #1B1B1B; --panel-2: #232323;
  --line: rgba(255,210,31,.10); --line-2: rgba(255,210,31,.22);
  --outline: #FFD21F;
  --text: #FFF8E1; --text-2: #D6CDAE; --text-3: #8E8670;
  --hover: rgba(255,210,31,.08); --active: rgba(255,210,31,.16);
  --accent: #FFD21F; --accent-2: #FFD21F;
  --shadow: 0 12px 34px rgba(0,0,0,.5);
  --pop: 0 4px 0 #000;
  --glow: radial-gradient(circle at 1px 1px, rgba(255,210,31,.06) 1.2px, transparent 1.4px) 0 0 / 22px 22px;
}
body { background: var(--glow), var(--bg); font-weight: 500; font-size: 14px; }
h1, h2, h3, .brand-name, .sentence-big, .pop-word { font-family: var(--font-display); }
::selection { background: rgba(255,196,0,.45); }


.btn-grad, .rec-btn, .round-btn, .icon-btn.big {
  background: var(--grad); color: var(--ink) !important; border: 1px solid var(--edge); box-shadow: none;
  font-weight: 600; transition: transform .08s, box-shadow .08s, filter .15s;
}
.btn-grad:hover, .rec-btn:hover, .round-btn:hover { filter: brightness(1.04); }
.btn-grad:active, .rec-btn:active, .round-btn:active { transform: translateY(3px); box-shadow: none; }
.btn-grad .ic { stroke: var(--ink); }
.btn { border: 1px solid var(--edge); border-radius: 10px ; font-weight: 600; background: var(--panel); }
.btn:hover { border-color: var(--edge-2); background: var(--hover); }
[data-theme="dark"] .btn:hover { border-color: var(--yellow); }
.chip { border: 1px solid var(--edge); font-weight: 600; background: var(--panel); color: var(--text-2); }
.chip:hover { border-color: var(--edge-2); color: var(--text); background: var(--hover); }
.chip.on, .chip.sm.on { background: var(--yellow); border-color: var(--edge-2); color: var(--ink); box-shadow: none; }
[data-theme="dark"] .chip:hover { border-color: var(--yellow); }
.pill { background: var(--yellow); color: var(--ink) !important; border: 1px solid var(--edge); font-weight: 600; }
.pill.ghost { background: transparent; border-color: transparent; color: var(--text-3) !important; }
.seg { border: 1px solid var(--edge); border-radius: 10px ; background: var(--panel-2); }
.seg button { font-weight: 600; border-radius: 10px ; }
.seg button.on, [data-theme="dark"] .seg button.on { background: var(--yellow); color: var(--ink); box-shadow: none; }
.icon-btn { border-radius: 10px ; }
.icon-btn.on { background: var(--yellow); color: var(--ink); box-shadow: none; }
.badge { background: #EF4444; color: #fff; border: 2px solid var(--panel); }
.card { background: var(--panel); border: 1px solid var(--edge); border-radius: var(--radius); backdrop-filter: none; }
[data-theme="light"] .card { border-color: rgba(20,20,20,.14); box-shadow: none; }
input[type=text], input[type=password], input:not([type]), select, textarea { border: 1px solid var(--edge); border-radius: 10px ; background: var(--panel); font-weight: 500; }
input:focus, select:focus, textarea:focus { border-color: var(--edge-2); box-shadow: 0 0 0 4px rgba(255,196,0,.35); }
[data-theme="dark"] input:focus, [data-theme="dark"] select:focus, [data-theme="dark"] textarea:focus { border-color: var(--yellow); }
.grad-text, .brand-name b, .hero h1 em { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--accent-2); }
[data-theme="light"] .hero h1 em { color: var(--ink); background: linear-gradient(transparent 58%, var(--yellow) 58%); padding: 0 4px; border-radius: 6px ; }


.titlebar { background: var(--bg); border-bottom: 2px solid var(--line); padding: 0 150px 0 14px; gap: 12px; }
.brand-logo { width: 34px; height: 34px; filter: none; }
.brand-name { font-size: 20px; font-weight: 600; letter-spacing: -.3px; }
.brand-name b { font-weight: 600; margin-left: 1px; }
.hud { background: var(--panel); border: 1px solid var(--edge); border-radius: 10px ; padding: 4px 12px; font-weight: 600; }
.hud:hover { border-color: var(--edge-2); }
.hud-streak.on { color: #FF7A00; }
.hud-lv u, .quest .qbar i, .continue .bar i, .lvbar u, .rcard .bar i, .progress-line div { background: var(--yellow); box-shadow: inset 0 -2px 0 rgba(0,0,0,.12); }
.hud-lv i, .quest .qbar, .continue .bar, .lvbar i { background: var(--panel-2); border: 1px solid var(--edge); }
.nav-btn { font-size: 20px; width: 40px; height: 40px; border-radius: 10px ; }
.nav-btn:hover { background: var(--hover); }
.boost-pill { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 10px ; background: #FF7A00; color: #fff; }


#home { padding: 22px 28px 48px; }
.home-wrap { max-width: 1120px; margin: 0 auto; }
.hero { display: flex; align-items: center; gap: 18px; text-align: left; max-width: none; }
.hero-logo { width: 74px; height: 74px; filter: none; flex: none; }
.hero h1 { font-size: 28px; line-height: 34px; margin: 0; letter-spacing: -.5px; font-weight: 600; }
.hero .muted { margin: 4px 0 0; font-size: 14px; }
.hero.compact h1 { font-size: 28px; }
.hero.compact .hero-logo { width: 56px; height: 56px; }
.hero-url { margin: 18px 0 8px; max-width: none; border: 1px solid var(--edge); border-radius: 10px ; background: var(--panel); box-shadow: none; padding: 7px 7px 7px 16px; align-items: center; }
[data-theme="dark"] .hero-url { border-color: var(--yellow); box-shadow: none; }
.hero-url-ic { width: 32px; height: 32px; border-radius: 6px ; background: #FF0000; color: #fff; display: grid; place-items: center; font-size: 14px; flex: none; }
.hero-url input { font-size: 16px; font-weight: 600; }
.hero-url .btn-grad { font-size: 16px; padding: 11px 22px; border-radius: 10px ; }
.hero-actions { justify-content: flex-start; }
.steps { margin-top: 16px; }
.step { background: var(--panel); border: 2px dashed var(--line-2); color: var(--text-2); font-weight: 600; }
.step b { background: var(--yellow); color: var(--ink); border: 1px solid var(--edge); }
.surprise-bar { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.surprise { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 10px ; border: 1px solid var(--edge); background: var(--grad-soft); box-shadow: none; animation: pop .25s ease-out; }
[data-theme="dark"] .surprise { background: #221d08; border-color: var(--yellow); box-shadow: none; }
.surprise .s-ic { font-size: 28px; flex: none; animation: wiggle 2.4s ease-in-out infinite; }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 10% { transform: rotate(-12deg); } 20% { transform: rotate(10deg); } 30% { transform: rotate(0); } }
.surprise .s-body { flex: 1; }
.surprise b { font-family: var(--font-display); font-size: 16px; }
.surprise .ipa { color: var(--text-3); }
.continue { margin-top: 16px; max-width: none; border: 1px solid var(--edge); background: var(--panel); box-shadow: none; grid-template-columns: 240px 1fr auto; }
[data-theme="dark"] .continue { border-color: var(--yellow); box-shadow: none; }
.continue:hover { transform: translateY(-2px); border-color: var(--edge-2); }
.continue img { border: 1px solid var(--edge); }
.continue .ct-label { color: var(--accent-2) !important; }
.continue h2 { font-size: 20px; }
.continue .btn-grad { font-size: 16px; padding: 14px 28px; }
.home-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; margin-top: 16px; align-items: start; }
.home-cols.single { grid-template-columns: 1fr; }
.home-cols.single .home-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.home-side { display: flex; flex-direction: column; gap: 16px; }
.home-side .card, .journey-card, .shelf-card { padding: 16px 18px; }
.shelf-card { margin-top: 16px; }
.mini-card { cursor: pointer; transition: transform .12s; }
.mini-card:hover { transform: translateY(-2px); border-color: var(--edge-2) !important; }
.mini-card .mc { display: flex; align-items: center; gap: 12px; }
.mini-card .mc-ic { font-size: 28px; }
.mini-card b { font-family: var(--font-display); font-size: 16px; display: block; }
.today-card .ring { width: 110px; height: 110px; }


.journey { position: relative; padding: 10px 0 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; max-height: 620px; overflow: auto; }
.j-unit-title { align-self: stretch; margin: 12px 8px 4px; padding: 8px 14px; border-radius: 10px ; background: var(--yellow); border: 1px solid var(--edge); color: var(--ink); font-family: var(--font-display); font-weight: 600; display: flex; justify-content: space-between; }
.j-unit-title.locked { background: var(--panel-2); color: var(--text-3); border-color: var(--line-2); }
.j-node { position: relative; width: 66px; height: 62px; border-radius: 50%; border: 1px solid var(--edge); background: var(--yellow); box-shadow: none; display: grid; place-items: center; font-size: 28px; transition: transform .1s; }
.j-node:hover { transform: translateY(-2px); }
.j-node:active { transform: translateY(4px); box-shadow: none; }
.j-node.done { background: #FFE88A; }
.j-node.locked { background: var(--panel-2); border-color: var(--line-2); box-shadow: none; filter: grayscale(1); opacity: .7; }
.j-node.current { animation: bounce 1.6s ease-in-out infinite; }
@keyframes bounce { 50% { transform: translateY(-6px); } }
.j-node .stars { position: absolute; bottom: -20px; font-size: 12px; letter-spacing: -1px; white-space: nowrap; }
.j-node .bubble { position: absolute; top: -40px; white-space: nowrap; background: var(--ink); color: var(--yellow); padding: 4px 12px; border-radius: 10px ; font: 600 14px var(--font); }
.j-node .bubble::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--ink); border-bottom: 0; }
.j-chest { font-size: 28px; margin: 10px 0; filter: drop-shadow(0 4px 0 rgba(0,0,0,.25)); }
.j-chest.locked { filter: grayscale(1); opacity: .5; }
.j-chest.ready { animation: wiggle 1.8s ease-in-out infinite; cursor: pointer; }
.j-row { height: 86px; display: flex; align-items: center; }


#study { display: flex; flex-direction: column; gap: 10px; padding: 10px 14px 14px; }
.lesson-bar { display: flex; align-items: center; gap: 12px; flex: none; }
.lesson-bar #backBtn { font-size: 20px; color: var(--text-3); }
.unit-progress { flex: 1; display: flex; gap: 6px; height: 18px; align-items: center; }
.unit-progress i { flex: 1; height: 16px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--edge); transition: background .3s; }
.unit-progress i.done { background: var(--yellow); border-color: var(--edge-2); }
.unit-progress i.cur { background: repeating-linear-gradient(45deg, var(--yellow), var(--yellow) 6px, #FFE88A 6px, #FFE88A 12px); border-color: var(--edge-2); animation: stripes 1s linear infinite; background-size: 34px 34px; }
@keyframes stripes { to { background-position: 34px 0; } }
.unit-progress i.great { background: #22B45A; border-color: var(--edge-2); }
.unit-progress .up-label { font: 600 14px var(--font); color: var(--text-2); white-space: nowrap; margin-right: 4px; }
.lesson-xp { font: 600 14px var(--font); color: #FF7A00; min-width: 60px; text-align: right; }
.lesson-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) clamp(360px, 32vw, 500px); gap: 14px; }
body.panel-hidden .lesson-body { grid-template-columns: minmax(0, 1fr); }
body.panel-hidden .lesson-body .right { display: none; }
body.panel-hidden .left { max-width: 1000px; margin: 0 auto; width: 100%; }
body.ai-wide .lesson-body { grid-template-columns: minmax(0, 1fr) clamp(480px, 46vw, 820px); }
.left { gap: 12px; }
.player-wrap { border-radius: 10px ; border: 1px solid var(--edge); box-shadow: none; width: min(100%, calc(42vh * 16 / 9)); }
[data-theme="dark"] .player-wrap { border-color: #2a2a2a; box-shadow: none; }
.player-wrap.novideo { height: 84px; border-style: dashed; box-shadow: none; }
.practice { padding: 16px 20px 14px; border: 1px solid var(--edge) !important; box-shadow: none !important; }
[data-theme="dark"] .practice { border-color: #2a2a2a !important; box-shadow: none !important; }
.golden { font: 600 12px var(--font); padding: 3px 10px; border-radius: 10px ; background: linear-gradient(90deg, #FFE047, #FFB800, #FFE047); background-size: 200% 100%; animation: shine 1.5s linear infinite; border: 1px solid var(--edge); color: var(--ink); }
@keyframes shine { to { background-position: -200% 0; } }
.practice.is-golden { box-shadow: none !important; }
.sentence-wrap { text-align: center; padding: 14px 6px 6px; }
.sentence-big { font-size: 28px; line-height: 42px; font-weight: 600; margin: 0; letter-spacing: 0; }
.sentence-tr { font-size: 16px; margin-top: 6px; font-weight: 500; }
.w { border-radius: 6px ; padding: 0 2px; }
.w:hover { background: var(--active); }
.w.now { color: inherit !important; background: var(--yellow); box-shadow: none; }
[data-theme="dark"] .w.now { color: var(--ink) !important; }
.w.saved { text-decoration-color: var(--yellow-3); }
.w.hit { color: var(--ok); }
.main-row { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 14px 0 6px; }
.round-btn { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); }
.round-btn .ic { width: 20px; height: 20px; stroke: var(--ink); }
[data-theme="dark"] .round-btn { background: var(--panel-2); border-color: #000; }
[data-theme="dark"] .round-btn .ic { stroke: var(--text); }
#playBtn .pause { display: none; } #playBtn.playing .play { display: none; } #playBtn.playing .pause { display: block; }
#playBtn .ic { fill: var(--ink); stroke: none; }
[data-theme="dark"] #playBtn .ic { fill: var(--text); }
.rec-btn { padding: 16px 34px; border-radius: 10px ; font-size: 20px; gap: 10px; font-family: var(--font-display); }
.rec-btn .dot { width: 16px; height: 16px; background: #EF4444; border: 1px solid var(--edge); }
.rec-btn.recording { background: #FF5A5A; color: #fff !important; border-color: var(--edge-2); }
.rec-btn.recording .dot { background: #fff; }
.wave-row { display: flex; align-items: center; gap: 8px; }
#wave { height: 44px; background: var(--panel-2); border-radius: 10px ; }
.turn { border: 1px solid var(--edge); background: var(--panel-2); border-radius: 10px ; height: 38px; font: 600 14px var(--font); margin-top: 10px; }
.turn-fill { background: var(--yellow); opacity: 1; }
.tools-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 2px dashed var(--line); }
.tool { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 10px ; border: 1px solid var(--edge); background: var(--panel); font: 600 14px var(--font); color: var(--text-2); }
.tool:hover { border-color: var(--edge-2); color: var(--text); }
.tool.on { background: var(--yellow); border-color: var(--edge-2); color: var(--ink); box-shadow: none; }
.tool-group { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.speed { margin-left: 0; }
.speed button.on { background: var(--yellow); color: var(--ink); }

.score { display: flex; align-items: center; gap: 14px; border-radius: 10px ; border: 1px solid var(--edge); padding: 12px 16px; margin-top: 12px; animation: slideUp .25s ease-out; background: #E8F9EE; color: #0F5132; }
@keyframes slideUp { from { transform: translateY(14px); opacity: 0; } }
.score.mid { background: #FFF4D6; color: #6B4A00; }
.score.low { background: #FFE4E4; color: #7A1D1D; }
.score .big-emo { font-size: 28px; }
.score .num { font: 600 28px var(--font-display); grid-row: auto; color: inherit !important; }
.score .msg { flex: 1; }
.score .msg b { font: 600 16px var(--font-display); display: block; }
.score .heard { color: inherit; opacity: .8; font-size: 14px; }
.score .chips .chip { background: #fff; color: var(--ink); border-color: var(--edge-2); }
[data-theme="dark"] .score { background: #0f2a1a; color: #b8f5cc; border-color: #22B45A; }
[data-theme="dark"] .score.mid { background: #2a2208; color: #ffe08a; border-color: var(--yellow); }
[data-theme="dark"] .score.low { background: #2a0f0f; color: #ffc1c1; border-color: #EF4444; }
.combo { background: #FF7A00; color: #fff; border: 1px solid var(--edge); }


.right { border: 1px solid var(--edge) !important; }
.tabs button.on { background: var(--yellow); color: var(--ink); box-shadow: none; }
.line.cur { background: #FFF1B8; border-color: var(--edge-2); }
[data-theme="dark"] .line.cur { background: #2a2408; border-color: var(--yellow); }
.msg.user { background: var(--yellow); color: var(--ink); border: 1px solid var(--edge); }
.prov.on { background: var(--yellow); color: var(--ink); border-color: var(--edge-2); }
.follow-btn { background: var(--yellow); color: var(--ink); border: 1px solid var(--edge); }


.modal, .popover, .drawer { border: 1px solid var(--edge); box-shadow: var(--lift), var(--shadow); border-radius: 10px ; }
[data-theme="dark"] .modal, [data-theme="dark"] .popover, [data-theme="dark"] .drawer { border-color: #333; box-shadow: 0 8px 0 #000; }
.modal-back { background: rgba(20,16,0,.45); }
.toast { border: 1px solid var(--edge); box-shadow: var(--lift); font-weight: 600; }
[data-theme="dark"] .toast { border-color: var(--yellow); box-shadow: 0 4px 0 #000; }
.pos, .g-tag b, .ai-card .hd a { color: var(--accent-2) !important; }
.pos { background: var(--yellow) !important; color: var(--ink) !important; }
.def-tr { color: var(--accent-2); font-weight: 600; }
.ipa-btn.big .spk { color: var(--ink) !important; }
[data-theme="dark"] .ipa-btn.big .spk { color: var(--yellow) !important; }
.ipa-btn.playing { background: var(--yellow); color: var(--ink); border-color: var(--edge-2); }
.xp-float { color: #FF7A00; text-shadow: none; font-family: var(--font-display); font-size: 20px; }
.sum-xp { background: none; color: #FF7A00; -webkit-background-clip: initial; background-clip: initial; text-shadow: none; }
.level-hero .lvnum { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--ink); }
[data-theme="dark"] .level-hero .lvnum { color: var(--yellow); }
.ach.on { border-color: var(--edge-2); background: #FFF1B8; }
[data-theme="dark"] .ach.on { background: #2a2408; border-color: var(--yellow); }
.gate-logo { filter: none; }
.mid-row code { border-color: var(--edge-2); background: #FFF1B8; color: var(--ink); }


.reward { text-align: center; padding: 26px 28px 24px !important; }
.reward .chest-big { font-size: 96px; display: inline-block; cursor: pointer; animation: wiggle 1.2s ease-in-out infinite; filter: drop-shadow(0 8px 0 rgba(0,0,0,.25)); }
.reward .chest-big.opened { animation: popOpen .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes popOpen { 0% { transform: scale(.4) rotate(-10deg); } 100% { transform: scale(1) rotate(0); } }
.reward h2 { font: 600 28px var(--font-display); margin: 6px 0; }
.reward .stars-big { font-size: 44px; letter-spacing: 6px; }
.reward .stars-big span { display: inline-block; animation: starIn .4s cubic-bezier(.2,1.6,.4,1) both; }
.reward .stars-big span:nth-child(2) { animation-delay: .15s; } .reward .stars-big span:nth-child(3) { animation-delay: .3s; }
@keyframes starIn { from { transform: scale(0) rotate(-90deg); opacity: 0; } }
.reward .prize { margin: 14px auto 0; max-width: 420px; padding: 14px; border-radius: 10px ; border: 1px solid var(--edge); background: var(--grad-soft); box-shadow: none; }
.card-face { font-size: 46px; }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.acard { border: 1px solid var(--edge); border-radius: 10px ; padding: 12px; background: var(--grad-soft); box-shadow: none; min-height: 150px; text-align: center; }
.acard.missing { background: var(--panel-2); border-style: dashed; border-color: var(--line-2); box-shadow: none; display: grid; place-items: center; color: var(--text-3); font: 600 28px var(--font-display); }
.acard .emo { font-size: 28px; }
.acard b { display: block; font: 600 14px var(--font-display); margin: 4px 0; }
.acard small { display: block; color: var(--text-2); font-size: 12px; }
.acard .cnt { font-size: 12px; color: var(--text-3); }
.rarity { font: 600 12px var(--font); letter-spacing: .6px; text-transform: uppercase; padding: 1px 7px; border-radius: 6px ; border: 1px solid var(--edge); }
.rarity.r1 { background: #fff; } .rarity.r2 { background: #9BE7FF; } .rarity.r3 { background: #E2B6FF; } .rarity.r4 { background: #FFB800; }
@media (max-width: 1100px) { .home-cols { grid-template-columns: 1fr; } .continue { grid-template-columns: 160px 1fr; } .continue .btn-grad { grid-column: 1 / -1; } }
.brand-name b { margin-left: 5px; }
.home-cols.single .home-side { align-items: start; }
.player-wrap { width: min(100%, calc(36vh * 16 / 9)); }
.practice { flex: none; }


.discover-search { display: flex; align-items: center; gap: 8px; padding: 5px 5px 5px 14px; border: 1px solid var(--edge); border-radius: 10px ; background: var(--panel); margin: 4px 0 10px; }
.discover-search:focus-within { border-color: var(--edge-2); box-shadow: 0 0 0 4px rgba(255,196,0,.3); }
.discover-search input { flex: 1; border: 0 !important; box-shadow: none !important; background: transparent !important; font-size: 14px; padding: 6px 2px; }
.discover-chips { margin-bottom: 12px; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.vcard { text-align: left; border-radius: 10px ; border: 1px solid var(--edge); background: var(--panel); overflow: hidden; transition: transform .12s, border-color .12s, box-shadow .12s; padding: 0 0 10px; }
.vcard:hover { transform: translateY(-3px); border-color: var(--edge-2); box-shadow: none; }
.vthumb { position: relative; aspect-ratio: 16/9; background: var(--panel-2); }
.vthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vdur { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.82); color: #fff; font: 600 12px var(--font); padding: 1px 6px; border-radius: 6px ; }
.vdone { position: absolute; left: 6px; top: 6px; background: #22B45A; color: #fff; font: 600 12px var(--font); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 2px solid #fff; }
.vplay { position: absolute; inset: auto 0 0 0; margin: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--yellow); color: var(--ink); border: 1px solid var(--edge); box-shadow: none; padding: 6px 12px; border-radius: 10px ; font: 600 14px var(--font); opacity: 0; transition: opacity .15s; white-space: nowrap; width: max-content; height: max-content; }
.vcard:hover .vplay { opacity: 1; }
.vt { padding: 8px 10px 2px; font-weight: 600; font-size: 14px; line-height: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding-top: 9px; }
.vc { padding: 0 10px; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vcard.sk { pointer-events: none; padding: 0 10px 10px; }
.vcard.sk .vthumb { margin: 0 -10px 8px; animation: sk 1.2s infinite; background: linear-gradient(90deg, var(--hover), var(--line-2), var(--hover)); background-size: 200% 100%; }


.j-row { height: 104px; }
.j-node .stars { bottom: -34px; left: 50%; transform: translateX(-50%); background: var(--panel); border: 1px solid var(--edge); border-radius: 10px ; padding: 1px 8px; font: 600 12px/18px var(--font); letter-spacing: 0; color: var(--text-2); z-index: 2; }
.j-node.current .stars, .j-node.done .stars { border-color: var(--edge-2); color: var(--ink); background: #fff; }
.j-node.locked .stars { filter: none; opacity: 1; }
.journey { padding-top: 46px; }


.quick { flex-wrap: wrap; overflow: visible; padding: 4px 12px 8px; }
.quick .chip { flex: 0 1 auto; white-space: nowrap; }
.providers { flex-wrap: wrap; }
.ai-top { flex-wrap: wrap; }

.hscroll { overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.hscroll::-webkit-scrollbar { height: 6px; }

.seg { flex-wrap: wrap; }
.practice-top { row-gap: 8px; }
.tools-row .tool { white-space: nowrap; }
.chip, .btn, .tool, .seg button { line-height: 1.35; }
.sentence-big, .sentence-tr, .line .tx, .line .tr, .msg, .def-item, .gpoint, .quest .qh span, .mini-card b, .continue h2 { overflow-wrap: anywhere; }
.continue h2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding-top: 2px; line-height: 1.4; }
.rcard .rt, .vtitle { padding-top: 2px; }
.hud { white-space: nowrap; }
.lesson-bar { flex-wrap: nowrap; min-width: 0; }
.unit-progress { min-width: 120px; }

.web-hint.busy::after { content: "  ⏳ …"; font-weight: 600; color: var(--accent-2); }
#chatForm[hidden] { display: none !important; }


.app-ver { align-self: flex-start; margin: 2px 0 0 -4px; padding: 1px 6px; border-radius: 10px ; font: 600 12px/18px var(--font); letter-spacing: .3px;
  color: var(--text-3); background: var(--hover); border: 1px solid var(--line); opacity: .75; transition: opacity .2s; }
.brand:hover .app-ver { opacity: 1; color: var(--text-2); }
.app-ver:empty { display: none; }
.ai-web #chatForm, .ai-web #chat, .ai-web #aiSpeakRow { display: none !important; }
.ai-api #webWrap { display: none !important; }


::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 6px ; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--text-3); }
::-webkit-scrollbar-track:vertical { margin: 16px 0; }
::-webkit-scrollbar-track:horizontal { margin: 0 16px; }
.transcript { margin-right: 3px; }


.player-wrap { width: min(100%, calc(max(180px, 100vh - 650px) * 16 / 9)); }
.practice { padding: 14px 18px 12px; }
.sentence-wrap { margin: 6px 0 2px; }
.tools-row { margin-top: 10px; padding-top: 10px; row-gap: 8px; }
.tools-row .tool { padding: 6px 10px; }


.popover { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.pop-scroll { flex: 1; min-height: 0; overflow: auto; padding: 14px 16px 16px; }
.pop-h { position: sticky; top: -14px; z-index: 2; background: var(--panel-solid); margin: -14px -16px 4px; padding: 12px 12px 6px 14px; border-radius: 10px 10px 0 0 ; cursor: grab; }
.pop-h .sp { flex: 1; }
.pop-close { margin-left: 0; }
.ipa-row { gap: 8px; margin: 4px 0 8px; }
.ipa-btn.big { padding: 6px 12px 6px 10px; min-height: 40px; }
.ipa-btn.big span { font: 500 16px var(--ipa); letter-spacing: .2px; color: var(--text); white-space: nowrap; }
.ipa-btn.big span:empty::before { content: '…'; color: var(--text-3); }
.ipa-btn.big small { font: 600 12px var(--font); padding: 1px 6px; border-radius: 6px ; background: var(--yellow); color: var(--ink); }
.pop-sec { margin-top: 10px; }


.drawer { overflow: hidden; max-height: calc(100vh - 24px); }
.drawer-h { cursor: grab; gap: 8px; padding: 12px 12px 10px 14px; }
.drawer-body { flex: 1; min-height: 0; }


.fp-dots { color: var(--text-3); font-size: 14px; line-height: 14px; cursor: grab; user-select: none; }
.fp-grip { flex: none !important; display: grid; place-items: center; width: 22px; color: var(--text-3); cursor: grab; border-radius: 6px ; user-select: none; font-size: 14px; }
.fp-grip:hover { background: var(--hover); color: var(--text); }
.fp-reset-wrap { flex: none; display: none; align-items: center; }
.fp-reset { display: none; flex: none; }
.floating .fp-reset, .floating .fp-reset-wrap { display: inline-flex; }
.fp-resize { display: none; position: absolute; right: 4px; bottom: 4px; width: 16px; height: 16px; cursor: nwse-resize; z-index: 5; border-radius: 50% ;
  background: linear-gradient(135deg, transparent 0 45%, var(--text-3) 45% 52%, transparent 52% 65%, var(--text-3) 65% 72%, transparent 72%); opacity: .7; }
.floating > .fp-resize { display: block; }
.fp-shield { position: fixed; inset: 0; z-index: 99999; background: transparent; }
.fp-dragging { transition: none !important; animation: none !important; opacity: .97; user-select: none; }
.fp-dragging .drawer-h, .fp-dragging .pop-h, .fp-dragging .fp-grip { cursor: grabbing; }


#study .right.floating { position: fixed; z-index: 45; box-shadow: var(--lift), 0 24px 60px rgba(0,0,0,.25); border: 1px solid var(--edge) !important; border-radius: 10px ; background: var(--panel-solid); }
body.panel-float .lesson-body { grid-template-columns: minmax(0, 1fr); }
body.panel-float .left { max-width: 1000px; margin: 0 auto; width: 100%; }
#grammarDrawer.floating { z-index: 55; }
#wordPop.floating { z-index: 65; }
#layoutReset { white-space: nowrap; }
.drawer:not(.floating) { width: min(560px, 42vw); }


.ai-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 8px; }
.ai-pick-btn { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 9px; align-items: center; text-align: left;
  padding: 10px 12px; border-radius: 10px ; border: 1px solid var(--edge); background: var(--panel-solid); transition: all .15s; }
.ai-pick-btn .logo-dot { grid-row: span 2; width: 32px; height: 32px; font-size: 14px; }
.ai-pick-btn b { font: 600 14px var(--font-display); }
.ai-pick-btn small { color: var(--text-3); font-size: 12px; font-weight: 600; }
.ai-pick-btn:hover { border-color: var(--edge-2); background: var(--yellow-soft, #FFF6CC); transform: translateY(-1px); box-shadow: var(--lift); }
.ai-pick-btn.on { border-color: var(--edge-2); box-shadow: var(--lift); }
.mini-prov { display: inline-flex; gap: 4px; margin-left: auto; text-transform: none; }
.mini-prov button { padding: 2px; border-radius: 6px ; border: 2px solid transparent; opacity: .5; transition: all .15s; line-height: 0; }
.mini-prov button .logo-dot { width: 20px; height: 20px; font-size: 12px; }
.mini-prov button:hover { opacity: .9; }
.mini-prov button.on { opacity: 1; border-color: var(--edge-2); }
.set-ver { margin-right: auto; align-self: center; font: 600 12px var(--font); color: var(--text-3); letter-spacing: .3px; }


#practice { position: relative; }
#rightTabs { padding-top: 16px; }
.drawer-h { padding-top: 16px; }
.pop-h { padding-top: 14px; }
.practice-top { cursor: grab; }
.practice-top > * { cursor: auto; }
.fp-dots, .fp-grip, .fp-reset, .fp-reset-wrap { display: none !important; }
.player-wrap.floating { z-index: 41; box-shadow: var(--lift), 0 24px 60px rgba(0,0,0,.3); }
#practice.floating { z-index: 42; overflow: auto; box-shadow: var(--lift), 0 24px 60px rgba(0,0,0,.25) !important; }
body.practice-float .left, body.video-float .left { justify-content: flex-start; }



.fp-bar { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 132px; height: 18px; z-index: 9;
  display: flex; justify-content: center; align-items: flex-start; cursor: grab; user-select: none; background: transparent; }
.fp-bar::before { content: ''; width: 30px; height: 4px; margin-top: 5px; border-radius: 8px; background: var(--text-3); opacity: .22; transition: opacity .18s; }
.fp-tab { position: absolute; top: 0; left: 50%; display: flex; align-items: center; gap: 6px; height: 22px; padding: 0 16px;
  background: var(--yellow); color: var(--ink); border: 1px solid var(--edge); border-top: 0; border-radius: 0 0 6px 6px ;
  font: 600 14px/14px var(--font); white-space: nowrap; box-shadow: none;
  transform: translate(-50%, -115%); opacity: 0; transition: transform .24s cubic-bezier(.2,.9,.3,1.25), opacity .16s ease; pointer-events: none; }
.fp-bar:hover::before, .fp-dragging > .fp-bar::before { opacity: 0; }
.fp-bar:hover .fp-tab, .fp-dragging > .fp-bar .fp-tab { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.fp-bar-dots { letter-spacing: 1px; pointer-events: none; }
.fp-bar-home { display: none; font: 600 14px/14px var(--font); color: var(--ink); padding: 2px 4px; border-radius: 6px ; cursor: pointer; }
.fp-bar-home:hover { background: rgba(0,0,0,.12); }
.floating > .fp-bar .fp-bar-home { display: inline-block; }
.player-wrap > .fp-bar::before { background: #fff; opacity: .35; }
.fp-dragging { will-change: transform; transition: none !important; animation: none !important; cursor: grabbing; }
.fp-dragging * { pointer-events: none !important; }
.fp-dragging > .fp-bar, .fp-dragging > .fp-bar * { cursor: grabbing; }


.logo-dot.has-img { background: #fff !important; padding: 2px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); overflow: hidden; }
.logo-dot.has-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px ; display: block; }
[data-theme="dark"] .logo-dot.has-img { background: #fff !important; }


.dict-row { display: flex; align-items: center; gap: 8px; margin: 2px 0 6px; flex-wrap: wrap; }
.dict-lbl { font: 600 12px var(--font); letter-spacing: .5px; text-transform: uppercase; color: var(--text-3); margin-right: 2px; }
.dict-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 6px; border-radius: 10px ; border: 1px solid var(--edge);
  background: var(--panel-solid); font: 600 14px var(--font); color: var(--text); transition: transform .12s, border-color .12s, box-shadow .12s, background .12s; }
.dict-chip .logo-dot { width: 22px; height: 22px; }
.dict-chip i { font-style: normal; color: var(--text-3); font-size: 12px; transition: transform .15s; }
.dict-chip:hover { border-color: var(--edge-2); background: #FFF6CC; transform: translateY(-1px); box-shadow: none; }
.dict-chip:hover i { transform: translate(1px, -1px); color: var(--ink); }
.dict-chip:active { transform: translateY(1px); box-shadow: none; }
[data-theme="dark"] .dict-chip:hover { background: #2a2410; }

.dict-drawer { display: flex; flex-direction: column; z-index: 52; }
.dict-drawer.floating { z-index: 56; }
.dict-h { gap: 10px; }
.dict-h h3 { flex: none; white-space: nowrap; }
.dict-src { margin-left: auto; }
.dict-src button { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 5px; }
.dict-src .logo-dot { width: 20px; height: 20px; font-size: 12px; }
.dict-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--line); flex: none; }
.dict-bar .icon-btn:disabled { opacity: .3; cursor: default; }
.dict-form { flex: 1; min-width: 120px; display: flex; gap: 6px; }
.dict-form input { flex: 1; min-width: 0; height: 34px; border-radius: 6px ; padding: 0 12px; font: 600 14px var(--font); }
.dict-form .btn-grad { height: 32px; padding: 0 12px; }
.dict-tg { white-space: nowrap; opacity: .65; }
.dict-tg.on { opacity: 1; background: var(--yellow); color: var(--ink); border-color: var(--edge-2); }
.dict-body { position: relative; flex: 1; min-height: 0; background: #fff; border-radius: 0 0 10px 10px ; overflow: hidden; }
.dict-view { position: absolute; inset: 0; width: 100%; height: 100%; display: flex; opacity: 0; visibility: hidden; transition: opacity .18s ease; }
.dict-view.on { visibility: visible; }
.dict-view.on.ready { opacity: 1; }
.dict-progress { position: absolute; top: 0; left: 0; height: 3px; width: 0; z-index: 3; background: var(--yellow); box-shadow: none; opacity: 0; }
.dict-body.loading .dict-progress { opacity: 1; animation: dictProg 2.4s cubic-bezier(.1,.7,.2,1) forwards; }
@keyframes dictProg { from { width: 0; } to { width: 88%; } }
.dict-skel { position: absolute; inset: 0; padding: 22px 20px; display: none; flex-direction: column; gap: 14px; z-index: 1; }
.dict-body.loading .dict-skel { display: flex; }
.dict-skel i { display: block; height: 14px; border-radius: 6px ; background: linear-gradient(90deg, #f3eedd 25%, #fbf8ee 50%, #f3eedd 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.dict-skel i:nth-child(1) { width: 45%; height: 26px; } .dict-skel i:nth-child(2) { width: 30%; } .dict-skel i:nth-child(3) { width: 92%; } .dict-skel i:nth-child(4) { width: 80%; } .dict-skel i:nth-child(5) { width: 86%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.dict-err { position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; gap: 12px; text-align: center; padding: 24px; background: var(--panel-solid); color: var(--text-2); font-weight: 600; }
.dict-err[hidden] { display: none; }

body.side-reserve .lesson-body { grid-template-columns: minmax(0, 1fr) clamp(360px, 32vw, 500px) !important; }
body.side-reserve .left { max-width: none !important; margin: 0 !important; }
.dict-drawer { container-type: inline-size; }
.dict-tg { min-width: 34px; justify-content: center; padding: 4px 9px; font-weight: 600; }
@container (max-width: 470px) { .dict-h h3 span { display: none; } .dict-bar { gap: 4px; padding: 8px 10px; } }


.legend { display: flex; flex-wrap: wrap; align-items: baseline; row-gap: 4px; margin-top: 8px; font-size: 12px; color: var(--text-3); line-height: 18px; }
.legend .lg { white-space: nowrap; }
.legend .lg b { color: var(--text-2); font-weight: 600; }
.legend .lg-dot { font-style: normal; margin: 0 8px; opacity: .6; }


.cefr { margin: 4px 0 12px; }
.cefr-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cefr-lbl { font: 600 12px var(--font); letter-spacing: .5px; text-transform: uppercase; color: var(--text-3); }
.cefr-pills { display: inline-flex; gap: 4px; padding: 3px; border-radius: 10px ; background: var(--hover); border: 1px solid var(--edge); }
.cefr-pill { min-width: 42px; height: 32px; padding: 0 10px; border-radius: 6px ; font: 600 14px var(--font-display); color: var(--text-2); transition: background .15s, color .15s, transform .1s; }
.cefr-pill:hover { background: var(--panel-solid); color: var(--lc, var(--text)); }
.cefr-pill.on { background: var(--lc, var(--ink)); color: #fff; box-shadow: none; }
.cefr-pill[data-l=""].on { background: var(--ink); color: var(--yellow); }
.cefr-pill:active { transform: translateY(1px); }
.cefr-info { margin-left: auto; font: 600 12px var(--font); color: var(--text-2); padding: 5px 10px; border-radius: 10px ; border: 1.5px dashed var(--line-2); }
.cefr-info:hover, .cefr-info.on { border-style: solid; border-color: var(--edge-2); color: var(--text); background: var(--panel-solid); }
.cefr-desc { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 8px 12px; border-radius: 10px ; font-size: 14px; color: var(--text-2);
  background: color-mix(in srgb, var(--lc) 9%, transparent); border-left: 4px solid var(--lc); min-height: 38px; }
.cefr-tag { flex: none; display: inline-grid; place-items: center; min-width: 32px; height: 24px; padding: 0 6px; border-radius: 6px ; background: var(--lc); color: #fff; font: 600 12px var(--font-display); }
.cefr-table { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; margin-top: 8px; padding: 12px; border-radius: 10px ; background: var(--panel-solid); border: 1px solid var(--edge); animation: pop .15s ease-out; }
.cefr-table[hidden] { display: none; }
.cefr-tr { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--text-2); line-height: 17px; }
.cefr-tr > div > b { color: var(--text); }
.vlv { position: absolute; top: 8px; left: 8px; padding: 2px 7px; border-radius: 6px ; background: var(--lc); color: #fff; font: 600 12px var(--font-display); box-shadow: none; }
.vdone { left: auto !important; right: 6px; }
.w.near { color: #d97706; text-decoration: underline dotted rgba(217,119,6,.7); text-underline-offset: 4px; }


.speak-card { margin-top: 16px; padding: 16px 18px 18px; position: relative; overflow: hidden; }
.sp-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.sp-head h3 { margin: 0; font: 600 16px var(--font-display); }
.sp-src { display: inline-flex; gap: 3px; padding: 3px; border-radius: 10px ; background: var(--hover); border: 1px solid var(--edge); }
.sp-src button { height: 32px; padding: 0 11px; border-radius: 6px ; font: 600 14px var(--font); color: var(--text-2); }
.sp-src button:hover { background: var(--panel-solid); }
.sp-src button.on { background: var(--ink); color: var(--yellow); }
.sp-count { margin-left: auto; font: 600 12px var(--font); color: var(--text-3); }
.sp-stage { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 8px; padding: 18px 8px; border-radius: 10px ;
  background: linear-gradient(180deg, #FFFDF2, #FFF6CF); border: 1px solid var(--edge); min-height: 120px; transition: border-color .2s, box-shadow .2s; }
[data-theme="dark"] .sp-stage { background: linear-gradient(180deg, #1c1a12, #17150c); }
.speak-card.listening .sp-stage { border-color: #ef4444; box-shadow: none; }
.sp-nav { width: 36px; height: 36px; border-radius: 50%; font: 600 20px/20px var(--font); color: var(--text-2); border: 1px solid var(--edge); background: var(--panel-solid); transition: all .12s; }
.sp-nav:hover { border-color: var(--edge-2); color: var(--ink); transform: scale(1.06); }
.sp-text { text-align: center; min-width: 0; }
.sp-sentence { font: 600 clamp(20px, 2.1vw, 28px)/1.45 var(--font-display); letter-spacing: -.2px; color: var(--text); word-wrap: break-word; }
.sp-sentence .sw { cursor: pointer; border-radius: 6px ; padding: 0 1px; transition: background .12s, color .2s; }
.sp-sentence .sw:hover { background: rgba(255,210,31,.45); }
.sp-sentence .sw.hit { color: #16a34a; }
.sp-sentence .sw.near { color: #d97706; text-decoration: underline dotted rgba(217,119,6,.75); text-underline-offset: 5px; }
.sp-sentence .sw.miss { color: #dc2626; text-decoration: underline wavy rgba(220,38,38,.55); text-underline-offset: 5px; }
.sp-tr { margin-top: 6px; font-size: 14px; color: var(--text-3); min-height: 1.2em; }
.sp-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.sp-listen, .sp-again { height: 44px; padding: 0 18px; border-radius: 10px ; border: 1px solid var(--edge); background: var(--panel-solid); font: 600 14px var(--font); color: var(--text); transition: all .12s; }
.sp-listen:hover, .sp-again:not(:disabled):hover { border-color: var(--edge-2); box-shadow: none; transform: translateY(-1px); }
.sp-again:disabled { opacity: .4; cursor: default; }
.sp-mic { display: inline-flex; align-items: center; gap: 12px; height: 58px; min-width: 250px; justify-content: center; padding: 0 26px; border-radius: 10px ;
  background: var(--yellow); color: var(--ink); border: 1px solid var(--edge); box-shadow: none; font: 600 16px var(--font-display); letter-spacing: .3px; transition: transform .1s, box-shadow .1s, background .2s; }
.sp-mic:hover { transform: translateY(-1px); }
.sp-mic:active { transform: translateY(3px); box-shadow: none; }
.sp-mic .sp-dot { width: 16px; height: 16px; border-radius: 50%; background: #ef4444; border: 1px solid var(--edge); flex: none; }
.sp-mic.rec { background: #ef4444; color: #fff; }
.sp-mic.rec .sp-dot { background: #fff; animation: spPulse 1s ease-in-out infinite; }
.sp-mic.busy { background: var(--hover); color: var(--text-2); cursor: progress; }
.sp-mic.busy .sp-dot { background: transparent; border-color: var(--text-3); border-top-color: transparent; animation: spin .8s linear infinite; }
@keyframes spPulse { 50% { transform: scale(.6); opacity: .6; } }
@keyframes spin { to { transform: rotate(360deg); } }
.sp-meter { position: relative; display: flex; align-items: center; gap: 10px; margin: 12px auto 0; max-width: 640px; padding-top: 10px; }
.sp-meter > i { position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 6px ; background: linear-gradient(90deg, #22c55e, #eab308 70%, #ef4444); transform: scaleX(0); transform-origin: left center; transition: transform .08s linear; }
.sp-meter::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 6px ; background: var(--line); }
.sp-meter span { flex: 1; font-size: 12px; color: var(--text-3); font-weight: 600; text-align: center; }
.sp-meter select { flex: none; max-width: 200px; height: 28px; font-size: 12px; border-radius: 6px ; padding: 0 6px; }
.sp-result { display: flex; align-items: center; gap: 16px; margin-top: 14px; padding: 12px 16px; border-radius: 10px ; border: 1px solid var(--edge); background: var(--panel-solid); animation: pop .18s ease-out; }
.sp-result[hidden] { display: none; }
.sp-result.good { border-color: #16a34a; background: color-mix(in srgb, #16a34a 7%, var(--panel-solid)); }
.sp-result.mid { border-color: #d97706; background: color-mix(in srgb, #d97706 7%, var(--panel-solid)); }
.sp-result.low { border-color: #dc2626; background: color-mix(in srgb, #dc2626 6%, var(--panel-solid)); }
.sp-result.warn, .sp-result.info { border-style: dashed; }
.sp-score { flex: none; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; border: 3px solid currentColor; line-height: 1; }
.sp-result.good .sp-score { color: #16a34a; } .sp-result.mid .sp-score { color: #d97706; } .sp-result.low .sp-score { color: #dc2626; }
.sp-score b { font: 600 28px var(--font-display); } .sp-score small { font-size: 12px; font-weight: 600; opacity: .7; margin-top: -10px; }
.sp-msg { flex: 1; min-width: 0; font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.sp-msg .small { color: var(--text-2); }
.sp-wrong { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; font-weight: 600; color: var(--text-3); margin-top: 2px; }
.sp-wbtn { padding: 3px 9px; border-radius: 6px ; border: 1.5px solid #fca5a5; background: #fff1f1; color: #b91c1c; font: 600 12px var(--font); }
.sp-wbtn:hover { border-color: #dc2626; }
.sp-actions { flex: none; display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.sp-key { display: flex; gap: 6px; margin: 4px 0 2px; }
.sp-key input { flex: 1; min-width: 0; height: 34px; border-radius: 6px ; padding: 0 10px; }
@media (max-width: 760px) { .sp-result { flex-wrap: wrap; } .sp-actions { flex-direction: row; } .sp-mic { min-width: 0; width: 100%; } }


.home-tabs { display: flex; gap: 6px; width: fit-content; margin: 18px auto 18px; padding: 5px; border-radius: 10px ; background: var(--panel-solid); border: 1px solid var(--edge); box-shadow: none; }
.home-tabs button { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 10px ; font: 600 16px var(--font-display); color: var(--text-2); transition: background .15s, color .15s, transform .1s; }
.home-tabs button:hover { background: var(--hover); color: var(--text); }
.home-tabs button.on { background: var(--yellow); color: var(--ink); box-shadow: none; border: 1px solid var(--edge); }
.home-tabs button:active { transform: translateY(1px); }
.ht-dot { position: absolute; top: 8px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: #ef4444; border: 2px solid var(--panel-solid); }
.home-pane { animation: paneIn .2s ease-out; }
.home-pane[hidden] { display: none !important; }
@keyframes paneIn { from { opacity: 0; transform: translateY(6px); } }
[data-home="video"] .home-cols { display: block; }
[data-home="video"] .journey-card { margin-top: 16px; }
.progress-grid { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.progress-grid > .card { margin: 0 !important; }
[data-home="speak"] .speak-card { margin-top: 0; }
@media (max-width: 760px) { .home-tabs button { padding: 0 12px; font-size: 14px; } }
.sp-ipa { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.sp-ipa[hidden] { display: none; }
#spIpaTxt { font: 500 16px/24px var(--ipa); color: #7c5e00; letter-spacing: .2px; }
[data-theme="dark"] #spIpaTxt { color: #f5c542; }
.sp-ipa-acc { flex: none; padding: 1px 7px; border-radius: 6px ; background: var(--ink); color: var(--yellow); font: 600 12px var(--font); cursor: pointer; user-select: none; }
.sp-ipa-acc:hover { transform: scale(1.06); }
.dict-verify { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 20px; background: rgba(255,248,225,.92); backdrop-filter: none; }
.dict-verify[hidden] { display: none; }
.dv-card { max-width: 340px; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; padding: 22px 20px; border-radius: 10px ; background: var(--panel-solid); border: 1px solid var(--edge); box-shadow: none; }
.dv-card .dv-ic { font-size: 28px; line-height: 28px; }
.dv-card b { font: 600 16px var(--font-display); }
.dv-card .small { color: var(--text-2); }
.web-wrap { position: relative; }
.web-hint { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 6px 10px 6px 12px; }
.web-hint .wh-txt { flex: 1; min-width: 0; }
.web-hint .wh-login { flex: none; height: 28px; font-weight: 600; }
.web-verify { position: absolute; inset: 34px 0 0 0; z-index: 5; display: grid; place-items: center; padding: 20px; background: rgba(255,248,225,.9); backdrop-filter: none; }
.web-verify[hidden] { display: none; }
@media (min-width: 1000px) {
  .progress-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; grid-template-rows: auto 1fr; }
  .progress-grid #todayCard { grid-column: 1; grid-row: span 2; }
  .progress-grid #questBox { grid-column: 2; grid-row: span 2; }
  .progress-grid #reviewCard { grid-column: 3; grid-row: 1; }
  .progress-grid #albumCard { grid-column: 3; grid-row: 2; }
}
.sp-engine { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 2px; }
.sp-prog { position: relative; height: 22px; border-radius: 12px; background: var(--hover); overflow: hidden; margin: 4px 0; border: 1px solid var(--edge); }
.sp-prog[hidden] { display: none; }
.sp-prog i { position: absolute; inset: 0; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.sp-prog span { position: relative; display: block; text-align: center; font: 600 12px/19px var(--font); color: var(--ink); }
.sp-sentence .sw { text-decoration-thickness: 2px; }
.sp-sentence .sw:hover { text-decoration: underline dotted rgba(0,0,0,.35); text-underline-offset: 5px; }


:root:lang(zh-CN) { --font: "Nunito", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", sans-serif; --font-display: "Baloo 2", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif; }
:root:lang(zh-TW) { --font: "Nunito", "Microsoft JhengHei UI", "Microsoft JhengHei", "PingFang TC", sans-serif; --font-display: "Baloo 2", "Microsoft JhengHei UI", "Microsoft JhengHei", sans-serif; }
:root:lang(ja) { --font: "Nunito", "Yu Gothic UI", "Meiryo UI", "Meiryo", sans-serif; --font-display: "Baloo 2", "Yu Gothic UI", "Meiryo UI", sans-serif; }
:root:lang(ko) { --font: "Nunito", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; --font-display: "Baloo 2", "Malgun Gothic", sans-serif; }
:root:lang(th) { --font: "Nunito", "Leelawadee UI", "Tahoma", sans-serif; --font-display: "Baloo 2", "Leelawadee UI", "Tahoma", sans-serif; }
:root:lang(hi) { --font: "Nunito", "Nirmala UI", "Mangal", sans-serif; --font-display: "Baloo 2", "Nirmala UI", sans-serif; }
:root:lang(ar) { --font: "Nunito", "Segoe UI", "Tahoma", sans-serif; --font-display: "Baloo 2", "Segoe UI", "Tahoma", sans-serif; }
:root:lang(ru) { --font: "Nunito", "Segoe UI", sans-serif; --font-display: "Baloo 2", "Nunito", "Segoe UI", sans-serif; }

.l10n .tools-row .tool, .l10n .home-tabs button, .l10n .chip { white-space: normal; text-align: center; }


html:lang(ar) body { text-align: left; }
html:lang(ar) :where(p, div, span, b, i, small, strong, h1, h2, h3, h4, label, button, li, a, option, td, th) { unicode-bidi: plaintext; }


.ai-drawer { z-index: 52; }
.ai-drawer .aid-body { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 8px 10px 10px; }
.ai-drawer .aid-body > .tab-body { flex: 1; min-height: 0; }
.ai-drawer #aiWideBtn { display: none; }
.ai-drawer #quickPrompts { display: none; }
.l10n #rightTabs [data-tab] { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }


:root {
  --candy-pink: #FF6FA5; --candy-blue: #4DA3FF; --candy-purple: #8B5CF6; --candy-green: #22C88F; --candy-orange: #FF8A1F;
}
.mascot { display: inline-block; line-height: 0; flex: none; }
.mascot svg { width: 100%; height: 100%; overflow: visible; display: block; }
.mascot .eyes, .mascot .mouth { transform-box: fill-box; }
.mascot .eyes { transform-origin: 50% 50%; animation: m-blink 5s infinite; }
@keyframes m-blink { 0%, 90%, 96%, 100% { transform: scaleY(1); } 93% { transform: scaleY(.1); } }
.mascot .waves path { animation: m-waves 2.4s ease-in-out infinite; }
.mascot .waves path:nth-child(2) { animation-delay: .3s; }
@keyframes m-waves { 0%, 100% { opacity: .2; } 45% { opacity: 1; } }
.mascot .mouth { transform-origin: 50% 0; }
@keyframes m-talk { 0%, 100% { transform: scaleY(1); } 25%, 75% { transform: scaleY(.62); } 50% { transform: scaleY(1.06); } }
@keyframes m-wiggle { 0%, 100% { transform: rotate(0) scale(1); } 25% { transform: rotate(-9deg) scale(1.06); } 60% { transform: rotate(7deg) scale(1.04); } }
@keyframes m-pop { 0% { transform: scale(.4) rotate(-14deg); opacity: 0; } 70% { transform: scale(1.08) rotate(3deg); opacity: 1; } 100% { transform: scale(1) rotate(0); } }


.brand-logo.mascot { width: 36px; height: 36px; animation: m-pop .6s cubic-bezier(.3,1.5,.5,1) both; will-change: transform; }
.brand.talk .brand-logo.mascot { animation: m-wiggle .7s ease-in-out; }
.brand.talk .mascot .mouth { animation: m-talk .45s ease-in-out 2; }
.brand-name { display: inline-flex; gap: .26em; font: 600 20px/20px var(--font-display); letter-spacing: -.3px; color: var(--text); }
.brand-name .wm-w1 { color: #E58A00; }
[data-theme="dark"] .brand-name .wm-w1 { color: var(--yellow); }
.brand-name .ch { display: inline-block; animation: wm-in .55s cubic-bezier(.3,1.6,.5,1) both; animation-delay: calc(var(--i) * 45ms + .15s); will-change: transform; }
@keyframes wm-in { 0% { transform: translateY(10px) scale(.5); opacity: 0; } 100% { transform: none; opacity: 1; } }
.brand.talk .brand-name .ch { animation: wm-hop .5s ease-in-out both; animation-delay: calc(var(--i) * 38ms); }
@keyframes wm-hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-5px) rotate(-3deg); } 70% { transform: translateY(1px); } }
.brand:hover { background: transparent; }
.brand:active .brand-logo.mascot { transform: scale(.92); }


.hero-logo.mascot { width: 76px; height: 76px; animation: m-pop .7s cubic-bezier(.3,1.5,.5,1) both, float 6s ease-in-out .7s infinite; }
.hero-logo.mascot:hover .mouth { animation: m-talk .45s ease-in-out 2; }
.hero.compact .hero-logo.mascot { width: 58px; height: 58px; }
.onb-logo.mascot { width: 96px; height: 96px; margin: 0 auto; animation: m-pop .7s cubic-bezier(.3,1.5,.5,1) both; }
.wave-hand { display: inline-block; transform-origin: 70% 80%; animation: hand-wave 2.2s ease-in-out .4s 2; }
@keyframes hand-wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(16deg); } 20%, 40% { transform: rotate(-8deg); } 50% { transform: rotate(10deg); } }


#todayCard .mc-ic { --c: var(--candy-orange); } #reviewCard .mc-ic { --c: var(--candy-purple); } #albumCard .mc-ic { --c: var(--candy-pink); } #questBox .mc-ic { --c: var(--candy-green); }
:is(#todayCard, #reviewCard, #albumCard, #questBox) .mc-ic { background: color-mix(in srgb, var(--c) 22%, transparent); border: 2px solid color-mix(in srgb, var(--c) 55%, transparent); border-radius: 10px ; display: grid; place-items: center; width: 52px; height: 52px; font-size: 28px; flex: none; }

@media (prefers-reduced-motion: reduce) {
  .mascot, .mascot *, .brand-name .ch, .wave-hand { animation: none !important; }
}


:root { --spring: cubic-bezier(.25, 1.25, .45, 1); --ease-out: cubic-bezier(.2, .85, .25, 1); --ease-in: cubic-bezier(.4, 0, .9, .4); }


.has-ind { position: relative; isolation: isolate; }
.has-ind > .tab-ind { position: absolute; left: 0; top: 0; z-index: -1; opacity: 0; pointer-events: none; border-radius: 10px ;
  background: var(--yellow); border: 1px solid var(--edge); box-shadow: none; box-sizing: border-box;
  transition: transform .38s var(--spring), width .38s var(--spring), height .3s var(--ease-out), opacity .2s; will-change: transform, width; }
.has-ind > button.on, .has-ind > button.on:hover { background: transparent !important; box-shadow: none !important; border-color: transparent !important; }
.has-ind > button { transition: color .2s, background-color .2s; }
.home-tabs.has-ind > .tab-ind { border-radius: 10px ; box-shadow: none; }
.home-tabs.has-ind > button { border: 2px solid transparent; }
.tabs.has-ind > .tab-ind { border-radius: 10px ; }
.sp-src.has-ind > .tab-ind { background: var(--ink); border-color: var(--edge-2); box-shadow: none; }
[data-theme="dark"] .has-ind > .tab-ind { border-color: #000; box-shadow: none; }
[data-theme="dark"] .sp-src.has-ind > .tab-ind { background: var(--yellow); }
[data-theme="dark"] .sp-src.has-ind > button.on { color: var(--ink); }


::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; }
::view-transition-group(*) { animation-duration: .36s; animation-timing-function: var(--ease-out); }
html[data-vt-scope="home"] .home-pane:not([hidden]) { view-transition-name: home-pane; }
html[data-vt-scope="sp"] .sp-text { view-transition-name: sp-text; }

html[data-vt-scope="home"] #homeTabs { view-transition-name: tab-bar; }
html[data-vt-scope="sp"] #speakCard .sp-src { view-transition-name: tab-bar; }
::view-transition-group(tab-bar) { animation: none; }
::view-transition-old(tab-bar) { display: none; }
::view-transition-new(tab-bar) { animation: none; }
html[data-vt="next"]::view-transition-old(home-pane), html[data-vt="next"]::view-transition-old(sp-text) { animation: vt-out-l .17s var(--ease-in) both; }
html[data-vt="next"]::view-transition-new(home-pane), html[data-vt="next"]::view-transition-new(sp-text) { animation: vt-in-r .4s var(--ease-out) .07s both; }
html[data-vt="prev"]::view-transition-old(home-pane), html[data-vt="prev"]::view-transition-old(sp-text) { animation: vt-out-r .17s var(--ease-in) both; }
html[data-vt="prev"]::view-transition-new(home-pane), html[data-vt="prev"]::view-transition-new(sp-text) { animation: vt-in-l .4s var(--ease-out) .07s both; }
html[data-vt="swap"]::view-transition-old(sp-text) { animation: vt-fade-out .14s ease-in both; }
html[data-vt="swap"]::view-transition-new(sp-text) { animation: vt-fade-up .34s var(--ease-out) both; }
::view-transition-group(tab-bar) { z-index: 2; }
::view-transition-image-pair(home-pane), ::view-transition-image-pair(sp-text) { isolation: auto; }
@keyframes vt-out-l { to { opacity: 0; transform: translateX(-28px); } }
@keyframes vt-out-r { to { opacity: 0; transform: translateX(28px); } }
@keyframes vt-in-r { from { opacity: 0; transform: translateX(56px); } }
@keyframes vt-in-l { from { opacity: 0; transform: translateX(-56px); } }
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-fade-up { from { opacity: 0; transform: translateY(10px); } }
.home-pane { animation: none; }


#home:not([hidden]) { animation: view-in .38s var(--ease-out); }
#study:not([hidden]) { animation: view-fade .3s ease-out; }
@keyframes view-in { from { opacity: 0; transform: translateY(12px) scale(.99); } }
@keyframes view-fade { from { opacity: 0; } }
.right .tab-body:not([hidden]) { animation: tab-in .3s var(--ease-out); }
@keyframes tab-in { from { opacity: 0; transform: translateY(8px); } }


.modal:not([hidden]) { animation: modal-in .34s var(--spring); }
.modal.leaving { animation: modal-out .17s var(--ease-in) forwards; pointer-events: none; }
@keyframes modal-in { from { opacity: 0; transform: translate(-50%, -46%) scale(.94); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes modal-out { to { opacity: 0; transform: translate(-50%, -48%) scale(.97); } }
.modal-back:not([hidden]) { animation: fade .25s ease-out; }
.modal-back.leaving { animation: fade-out .17s ease-in forwards; pointer-events: none; }
@keyframes fade-out { to { opacity: 0; } }


.drawer:not([hidden]) { animation: drawer-in .36s var(--ease-out); }
.drawer.leaving { animation: drawer-out .17s var(--ease-in) forwards; pointer-events: none; }
@keyframes drawer-in { from { opacity: 0; transform: translateX(48px); } }
@keyframes drawer-out { to { opacity: 0; transform: translateX(40px); } }
.drawer.floating:not([hidden]) { animation: pop-in .26s var(--spring); }
.drawer.floating.leaving { animation: pop-out .15s var(--ease-in) forwards; }


#wordPop:not([hidden]) { animation: pop-in .26s var(--spring); }
#wordPop.leaving { animation: pop-out .15s var(--ease-in) forwards; pointer-events: none; }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px) scale(.96); } }
@keyframes pop-out { to { opacity: 0; transform: translateY(6px) scale(.97); } }


.toast { animation: toast-in .38s var(--spring); }
.toast.leaving { animation: toast-out .2s var(--ease-in) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px) scale(.97); } }


.sp-result:not([hidden]) { animation: tab-in .32s var(--ease-out); }


:where(button, .chip, .btn, .btn-grad, .pill, .vcard) { transition: transform .14s var(--ease-out), background-color .18s, color .18s, border-color .18s, box-shadow .18s; }
:where(button, .chip, .btn, .btn-grad, .vcard):active:not(:disabled) { transform: translateY(1px) scale(.97); }
:where(.vcard, .mini-card, .continue) { transition: transform .22s var(--ease-out), box-shadow .22s; }
:where(.vcard):hover { transform: translateY(-3px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}


#home, #study, .modal-b, .drawer-body { scrollbar-gutter: stable; }
#setBody { animation: tab-in .3s var(--ease-out); }


.fp-bar { width: 150px; height: 22px; top: 0; }
.fp-bar::before { display: none; }
.fp-pill { margin-top: 7px; width: 36px; height: 5px; border-radius: 6px ; background: var(--text-3); opacity: .25;
  transition: width .3s var(--spring), opacity .2s, background-color .2s, box-shadow .2s; }
:hover > .fp-bar .fp-pill { opacity: .5; }
.fp-bar:hover .fp-pill, .fp-dragging > .fp-bar .fp-pill { width: 60px; opacity: 1; background: var(--yellow); box-shadow: 0 0 0 1.5px var(--edge-2), 0 2px 0 1.5px var(--ink); }
.player-wrap > .fp-bar .fp-pill { background: #fff; opacity: .5; }
.fp-dock { display: none; position: absolute; top: 1px; left: calc(50% + 42px); width: 26px; height: 26px; padding: 0; border-radius: 50%;
  background: var(--yellow); border: 1px solid var(--edge); box-shadow: none; place-items: center; cursor: pointer; }
.fp-dock svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.floating > .fp-bar .fp-dock { display: grid; animation: pop-in .32s var(--spring); }
.fp-dock:hover { transform: scale(1.12) rotate(-14deg); }
.fp-dragging > .fp-bar .fp-dock { display: none; }

.fp-dragging { box-shadow: var(--lift), 0 34px 80px rgba(0,0,0,.32) !important; }
.fp-will-dock { opacity: .9; }

.fp-ghost { position: fixed; z-index: 38; display: grid; place-items: center; pointer-events: none; border: 2.5px dashed var(--text-3); border-radius: 10px ;
  background: rgba(255, 210, 31, .07); animation: ghost-in .26s var(--ease-out); transition: background-color .2s, border-color .2s, transform .3s var(--spring); }
.fp-ghost span { font: 600 14px/14px var(--font); color: var(--text-2); background: var(--panel-solid); padding: 10px 16px; border-radius: 10px ; border: 1px solid var(--edge); box-shadow: none; transition: all .2s; }
.fp-ghost.hot { border: 1px solid var(--edge); background: rgba(255, 210, 31, .3); transform: scale(1.012); }
.fp-ghost.hot span { background: var(--yellow); color: var(--ink); border-color: var(--edge-2); box-shadow: none; transform: scale(1.06); }
.fp-ghost.bye { animation: fade-out .2s forwards; }
@keyframes ghost-in { from { opacity: 0; transform: scale(.985); } }
[data-theme="dark"] .fp-ghost { border-color: rgba(255,255,255,.35); }
[data-theme="dark"] .fp-ghost.hot { border-color: var(--yellow); }

.fp-resize { width: 18px; height: 18px; right: 6px; bottom: 6px; background: none; opacity: .45; transition: opacity .2s; }
.fp-resize::after { content: ''; position: absolute; right: 2px; bottom: 2px; width: 10px; height: 10px; border-right: 3px solid var(--text-3); border-bottom: 3px solid var(--text-3); border-bottom-right-radius: 6px; }
.floating:hover > .fp-resize, .fp-resize:hover { opacity: 1; }

.floating:is(#practice, .right) { background: var(--panel-solid) !important; }
#practice.floating { padding-top: 28px; }
.right.floating #rightTabs { padding-top: 30px; }
.fp-dragging { opacity: 1 !important; }
.fp-dock { top: -1px; width: 24px; height: 24px; }



[data-theme="dark"] {
  --grad-soft: linear-gradient(135deg, #2A2412 0%, #1F1C13 100%);
  --text-2: #E2DAC0; --text-3: #A69D82;
  --line-2: rgba(255,210,31,.26);
}
[data-theme="dark"] .flash, [data-theme="dark"] .acard, [data-theme="dark"] .level-hero, [data-theme="dark"] .g-sentence { border-color: rgba(255,210,31,.35); }
[data-theme="dark"] .acard { box-shadow: none; }
[data-theme="dark"] .rarity { color: var(--ink); }
.badge { background: #DC2626; }


.home-wrap { max-width: 1040px; }
.hero { flex-direction: column; align-items: center; text-align: center; gap: 6px; margin: 6px auto 0; }
.hero-logo.mascot { width: 68px; height: 68px; }
.hero h1 { font-size: 28px; }
.hero .muted { font-size: 14px; }
.home-tabs { margin: 16px auto 18px; }
.hero-url { max-width: 820px; margin: 4px auto 8px; border-radius: 10px ; padding: 8px 8px 8px 18px; }
.hero-url input { font-size: 16px; }
.hero-url .btn-grad { border-radius: 10px ; padding: 12px 26px; }
.hero-actions { justify-content: center; }
.hero-actions .chip { border-color: transparent; background: transparent; color: var(--text-3); }
.hero-actions .chip:hover { color: var(--text); background: var(--hover); }
.steps { max-width: 820px; margin: 14px auto 0; }
.continue { max-width: 1040px; }


.journey-card { padding: 12px 16px 6px !important; }
.journey-card .card-h { margin-bottom: 0; }
.journey-card .card-h h3 { font-size: 14px; }
.journey { flex-direction: row; align-items: flex-end; justify-content: flex-start; gap: 10px; max-height: none; overflow-x: auto; overflow-y: hidden;
  padding: 40px 10px 30px !important; scroll-snap-type: x proximity; scrollbar-width: thin; }
.j-row { height: auto !important; transform: none !important; flex: none; scroll-snap-align: center; }
.j-node { width: 48px; height: 46px; font-size: 16px; border-width: 2.5px; box-shadow: none; }
.j-node.locked { box-shadow: none; }
.j-node .stars { bottom: -26px; font-size: 12px; padding: 0 6px; }
.j-node .bubble { top: -34px; font-size: 12px; padding: 3px 10px; }
.j-chest { font-size: 28px; margin: 0 2px 8px; flex: none; }
.journey { isolation: isolate; }


.practice { padding: 14px 18px 12px; }
.practice-top { gap: 8px; }
#sentTime { display: none; }


.sentence-big { font-size: 28px; line-height: 43px; }
#bigSentence.swap { animation: sent-in .32s cubic-bezier(.2,.85,.25,1); }
@keyframes sent-in { from { opacity: 0; transform: translateY(8px); } }
.main-row { gap: 12px; margin: 12px 0 4px; }
.wave-row canvas { opacity: .9; }
.tools-row { justify-content: center; gap: 6px; border-top: 0; padding-top: 6px; margin-top: 6px; }
.tools-row .tool { width: 40px; height: 40px; padding: 0 !important; justify-content: center; border-radius: 10px ; font-size: 16px; gap: 0; }
.tools-row .tool > span { display: none; }            
.tools-row .tool.on { background: var(--yellow); border-color: var(--edge-2); box-shadow: var(--lift); }
.tool-group { margin-left: 8px; gap: 6px; }

.speed, #viewSeg { border: 1px solid var(--edge); border-radius: 10px ; padding: 2px; background: var(--panel); height: 40px; }
.speed:not(:hover):not(:focus-within) button:not(.on), #viewSeg:not(:hover):not(:focus-within) button:not(.on) { display: none; }
.speed button { height: 32px; min-width: 40px; }
#viewSeg button { height: 32px; }
.repeat-box { height: 40px; border: 1px solid var(--edge); border-radius: 10px ; padding: 0 6px; background: var(--panel); }
.repeat-box select { border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 2px; font-weight: 600; }
.score { margin-top: 8px; }


.sentence-big .w, .line .w { transition: color .12s, background-color .12s, box-shadow .12s; border-radius: 6px ; }
.sentence-big .w.said { color: var(--text); }
#bigSentence:has(.w.now) .w:not(.said):not(.now) { color: var(--text-3); }
.w.now { background: var(--yellow); color: var(--ink) !important; box-shadow: none; }


.lesson-bar { gap: 10px; }


.turn { background: #FFF1B8 !important; border-color: var(--edge-2) !important; }
.turn span, #turnText { color: var(--ink) !important; position: relative; }

#home .home-wrap { transition: margin .38s var(--ease-out); }
body:has(#aiDrawer:not([hidden]):not(.leaving)) #home .home-wrap,
body:has(#dictDrawer:not([hidden]):not(.leaving):not(.floating)) #home .home-wrap { margin-left: 16px; margin-right: calc(min(620px, 50vw) + 28px); }


.brand { gap: 10px; }
.brand-logo.mascot { width: 38px; height: 38px; filter: drop-shadow(0 3px 6px rgba(255,138,31,.35)); }
.brand-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; gap: 3px; }
.brand-name { font-size: 20px; letter-spacing: -.4px; }
.brand-name .wm-w1 .ch:nth-child(1) { color: #F5A800; }
.brand-name .wm-w1 .ch:nth-child(2) { color: #F79F06; }
.brand-name .wm-w1 .ch:nth-child(3) { color: #F9960C; }
.brand-name .wm-w1 .ch:nth-child(4) { color: #FB8D12; }
.brand-name .wm-w1 .ch:nth-child(5) { color: #FC8416; }
.brand-name .wm-w1 .ch:nth-child(6) { color: #FD7C1A; }
.brand-name .wm-w1 .ch:nth-child(7) { color: #FF741E; }
[data-theme="dark"] .brand-name .wm-w1 .ch:nth-child(1) { color: #FFE14D; }
[data-theme="dark"] .brand-name .wm-w1 .ch:nth-child(2) { color: #FFD545; }
[data-theme="dark"] .brand-name .wm-w1 .ch:nth-child(3) { color: #FFC93E; }
[data-theme="dark"] .brand-name .wm-w1 .ch:nth-child(4) { color: #FFBD38; }
[data-theme="dark"] .brand-name .wm-w1 .ch:nth-child(5) { color: #FFB132; }
[data-theme="dark"] .brand-name .wm-w1 .ch:nth-child(6) { color: #FFA62F; }
[data-theme="dark"] .brand-name .wm-w1 .ch:nth-child(7) { color: #FF9B2C; }
.brand-tag { font: 600 12px/12px var(--font); letter-spacing: 1.6px; text-transform: uppercase; white-space: nowrap;
  background: linear-gradient(90deg, var(--text-3) 0%, var(--text-3) 38%, #FF9F1C 50%, var(--text-3) 62%, var(--text-3) 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: tag-in .9s cubic-bezier(.2,.85,.25,1) .6s both, tag-shine 3.6s ease-in-out 1.6s infinite; }
@keyframes tag-in { from { opacity: 0; letter-spacing: 6px; transform: translateY(4px); } to { opacity: 1; } }
@keyframes tag-shine { 0% { background-position: 100% 0; } 55%, 100% { background-position: 0% 0; } }
.brand.talk .brand-tag { animation: tag-shine 1.2s ease-in-out both; }


.voice-bars { display: inline-flex; align-items: flex-end; gap: 3px; height: .8em; margin-left: .25em; vertical-align: -.02em; }
.voice-bars i { width: 5px; height: 100%; border-radius: 3px ; background: linear-gradient(180deg, #FFD21F, #FF8A1F); transform-origin: bottom; animation: vbar 1.1s ease-in-out infinite; }
.voice-bars i:nth-child(1) { animation-delay: -.2s; } .voice-bars i:nth-child(2) { animation-delay: -.55s; }
.voice-bars i:nth-child(3) { animation-delay: -.1s; } .voice-bars i:nth-child(4) { animation-delay: -.75s; } .voice-bars i:nth-child(5) { animation-delay: -.4s; }
@keyframes vbar { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.hero h1 { background: none; }


select option { background: var(--panel-solid); color: var(--text); }
[data-theme="dark"] select option { background: #1F1F1F; color: #FFF8E1; }
[data-theme="dark"] .sp-ipa-acc { background: var(--yellow) !important; color: var(--ink) !important; }


.score { position: relative; padding: 10px 44px 10px 14px; gap: 12px; border-width: 2px; border-radius: 10px ; }
.score .big-emo { font-size: 28px; }
.score .num { font-size: 28px; }
.score .msg b { font-size: 16px; }
.score .heard { font-size: 12px; }
.score .chips { gap: 6px; }
.score.note { background: var(--panel-2) !important; color: var(--text) !important; border-color: var(--line-2) !important; }
.score .sc-x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 14px var(--font); color: inherit; opacity: .6; background: transparent; border: 0; }
.score .sc-x:hover { opacity: 1; background: rgba(0,0,0,.08); }
.score.leaving { animation: pop-out .15s var(--ease-in) forwards; }

[data-theme="dark"] .score { background: #1E1E1E; border-color: #2E2E2E; border-left: 6px solid #22B45A; color: #DFF7E7; }
[data-theme="dark"] .score.mid { background: #1E1E1E; border-left-color: #FFD21F; color: #FFF1C2; }
[data-theme="dark"] .score.low { background: #1E1E1E; border-left-color: #FF6B6B; color: #FFD9D9; }
[data-theme="dark"] .score .sc-x:hover { background: rgba(255,255,255,.08); }
[data-theme="dark"] .score .chips .chip { background: #2A2A2A; color: #FFF8E1; border-color: #444; }


.hud-streak, .hud-ice { display: inline-flex; align-items: center; gap: 2px; }
.hud-streak i, .hud-ice i { font-style: normal; }
.hud-lv b { letter-spacing: -.2px; }


.gd-tabs { margin-bottom: 14px; }
.gd-body { animation: tab-in .3s var(--ease-out); }
.gd-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gd-step { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 10px ; background: var(--grad-soft); border: 1px solid var(--edge); }
.gd-step b { font: 600 14px var(--font-display); }
.gd-step p { margin: 4px 0 0; font-size: 14px; color: var(--text-2); font-weight: 500; line-height: 20px; }
.gd-n { position: absolute; top: -9px; left: -9px; width: 24px; height: 24px; border-radius: 50%; background: var(--yellow); color: var(--ink); border: 1px solid var(--edge); display: grid; place-items: center; font: 600 12px var(--font); }
.gd-ic { font-size: 28px; line-height: 28px; flex: none; }
.gd-tips { margin-top: 14px; display: grid; gap: 6px; font-size: 14px; color: var(--text-2); }
.gd-tips div { padding: 8px 12px; border-radius: 10px ; background: var(--panel-2); }
.gd-h { margin: 6px 0 8px; font: 600 14px var(--font); text-transform: uppercase; letter-spacing: .6px; color: var(--text-3); }
.gd-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; margin-bottom: 14px; }
.gd-tools > div { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px ; }
.gd-tools > div:hover { background: var(--hover); }
.gd-ti { flex: none; min-width: 34px; height: 30px; padding: 0 6px; border-radius: 6px ; border: 1px solid var(--edge); background: var(--panel); display: grid; place-items: center; font-size: 14px; font-weight: 600; }
.gd-td { flex: 1; font-size: 14px; font-weight: 600; }
.gd-tools kbd { font-size: 12px; }
.gd-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gd-modes > div { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 10px ; border: 1px solid var(--edge); }
.gd-modes b { font: 600 14px var(--font-display); }
.gd-modes p { margin: 2px 0 0; font-size: 12px; color: var(--text-2); font-weight: 500; }
@media (max-width: 760px) { .gd-steps, .gd-tools, .gd-modes { grid-template-columns: 1fr; } }
#transcript .line { transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease; }


.hero.compact h1 { font-size: 28px; }
.hero.compact #greetSub { display: none; }
.hero-url.omni { margin: 14px auto 10px; }
.hero-url.omni .hero-url-ic { background: var(--yellow); color: var(--ink); font-size: 14px; }
.continue { margin: 10px auto 4px; grid-template-columns: 132px 1fr auto; padding: 10px 14px; gap: 14px; box-shadow: none; }
.continue h2 { font-size: 16px; }
@media (max-width: 1100px) { .continue { grid-template-columns: 110px 1fr; } }
.discover-main { margin-top: 6px; }
.disc-bar { display: flex; justify-content: center; }
.disc-bar .discover-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; margin: 0 0 8px; padding: 4px 2px 6px; scroll-snap-type: x proximity; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.disc-bar .discover-chips::-webkit-scrollbar { display: none; }
.disc-bar .chip { flex: none; scroll-snap-align: start; transition: transform .18s var(--ease-out), background-color .18s, border-color .18s, color .18s; }
.disc-bar .chip:active { transform: scale(.94); }
.discover-main .cefr { margin: 0 0 12px; }
.cefr-pill[disabled] { opacity: .3; cursor: not-allowed; filter: grayscale(1); }

.vgrid .vcard:not(.sk) { animation: vcard-in .38s var(--ease-out) both; animation-delay: var(--d, 0ms); will-change: transform; contain: layout paint; }
@keyframes vcard-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.disc-more { display: flex; justify-content: center; margin: 14px 0 4px; }
.disc-more .chip small { opacity: .6; margin-left: 4px; font-weight: 600; }

.discover-main + .home-tabs { margin-top: 28px; position: relative; }
.discover-main + .home-tabs::before { content: ""; position: absolute; left: 50%; top: -16px; width: min(1040px, 92vw); height: 2px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--line-2), transparent); pointer-events: none; }
#recentCard .card-h .chip.sm { border-color: transparent; background: var(--panel-2); color: var(--text-2); }
#recentCard .card-h .chip.sm:hover { color: var(--text); }
.home-pane[data-home="video"] .surprise-bar:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .vgrid .vcard:not(.sk) { animation: none; } }
#homeTabs { scroll-margin-top: 12px; }
[data-theme="dark"] .cefr-pill.on[data-l=""] { background: var(--yellow); color: #1A1A1A; }



.hero.compact .hero-logo { display: none; }
.hero.compact { margin-top: 2px; }

.discover-main .cefr-desc { display: none; }

#homeTabs:not([hidden]) { animation: tab-rise .42s var(--ease-out) both; }
@keyframes tab-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

#surpriseBar { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin: -4px auto 16px; max-width: 1040px; }
#surpriseBar .surprise { flex: 1 1 300px; max-width: 520px; padding: 9px 12px 9px 14px; border-radius: 999px; gap: 10px; border-width: 2px; box-shadow: none; }
[data-theme="dark"] #surpriseBar .surprise { box-shadow: none; }
#surpriseBar .s-ic { font-size: 20px; }
#surpriseBar .s-body { font-size: 14px; line-height: 19px; min-width: 0; }
#surpriseBar .s-body > i, #surpriseBar .s-body .small i { display: none; }
#surpriseBar .surprise.leaving, #surpriseBar.leaving { animation: bub-out .17s ease-in forwards; }
@keyframes bub-out { to { opacity: 0; transform: scale(.97); } }
.brand { cursor: pointer; }
.brand:active .brand-logo { transform: scale(.9); transition: transform .1s; }



.today-hero { margin: 12px auto 6px; max-width: 1040px; border-radius: 10px ; padding: 16px 18px 12px; background: var(--panel); border: 1px solid var(--edge); box-shadow: none; animation: th-in .45s var(--ease-out) both; }
[data-theme="dark"] .today-hero { border-color: var(--yellow); box-shadow: none; }
@keyframes th-in { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }
.th-top { display: grid; grid-template-columns: 168px 1fr auto; gap: 16px; align-items: center; }
.th-thumb { position: relative; border-radius: 10px ; overflow: hidden; border: 1px solid var(--edge); aspect-ratio: 16/9; padding: 0; background: #000; }
.th-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s var(--ease-out); }
.th-thumb:hover img { transform: scale(1.06); }
.th-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 20px; background: rgba(0,0,0,.18); opacity: 0; transition: opacity .2s; }
.th-thumb:hover .th-play { opacity: 1; }
.th-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(0,0,0,.35); }
.th-bar u { display: block; height: 100%; background: var(--yellow); }
.th-info { min-width: 0; }
.th-info .ct-label { font: 600 12px var(--font); letter-spacing: .8px; text-transform: uppercase; color: var(--accent-2); }
.th-info h2 { margin: 3px 0 4px; font: 600 16px/22px var(--font-display); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.th-meta { font-size: 12px; font-weight: 600; color: var(--text-3); }
.th-go { font-size: 16px; padding: 14px 24px; border-radius: 10px ; white-space: nowrap; }
.th-go small { font-weight: 600; opacity: .7; font-size: 12px; }
.th-road .journey { padding: 34px 6px 26px !important; }
.th-road { margin: 4px -4px 0; }
.th-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; border-top: 2px dashed var(--line-2); }
.th-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 10px ; font: 600 12px var(--font); background: var(--panel-2); color: var(--text-2); border: 2px solid transparent; transition: transform .15s var(--ease-out), background-color .15s, border-color .15s; }
.th-chip:hover { transform: translateY(-1px); border-color: var(--line-2); color: var(--text); }
.th-chip:active { transform: scale(.95); }
.th-chip.hot { background: #FFE9E3; color: #B42318; border-color: #FDA29B; animation: th-pulse 2.4s ease-in-out infinite; }
[data-theme="dark"] .th-chip.hot { background: #3a1410; color: #FDA29B; border-color: #7a271a; }
@keyframes th-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(240,68,56,.0); } 50% { box-shadow: 0 0 0 5px rgba(240,68,56,.14); } }
.th-chip.done { background: #E3FBE9; color: #067647; }
[data-theme="dark"] .th-chip.done { background: #0b2e1a; color: #75E0A7; }
.th-dots { display: inline-flex; gap: 3px; }
.th-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.th-dots i.on { background: #12B76A; }
@media (max-width: 900px) { .th-top { grid-template-columns: 120px 1fr; } .th-go { grid-column: 1 / -1; } }
#surpriseBar { margin: 10px auto 2px; }


.hero-url.omni { position: relative; }
.omni-drop { position: absolute; inset: -2px; border-radius: inherit; display: grid; place-items: center; font: 600 14px var(--font); color: var(--ink); background: rgba(255,214,10,.92); border: 3px dashed var(--ink); opacity: 0; pointer-events: none; transition: opacity .15s; }
.hero-url.omni.drop .omni-drop { opacity: 1; }


.cefr-row .sp { flex: 1; }
.cefr-test { padding: 6px 12px; border-radius: 10px ; font: 600 12px var(--font); background: var(--panel); border: 1px solid var(--edge); color: var(--text); transition: transform .15s; }
.cefr-test:hover { transform: translateY(-1px); border-color: var(--edge-2); }
.cefr-test.glow { background: var(--yellow); color: var(--ink); border-color: var(--edge-2); box-shadow: none; animation: th-glow 2.2s ease-in-out infinite; }
@keyframes th-glow { 0%, 100% { transform: none; } 50% { transform: translateY(-2px); } }
.cefr-info { min-width: 30px; }


.my-row { max-width: 1040px; margin: 26px auto 0; }
.row-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.row-h h3 { margin: 0; font: 600 16px var(--font-display); }
.row-h .sp { flex: 1; }
.chip.ghost { border-color: transparent; background: transparent; color: var(--text-3); }
.chip.ghost:hover { background: var(--hover); color: var(--text); }
.row-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: 220px; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 8px; scrollbar-width: thin; }
.row-scroll .rcard { scroll-snap-align: start; }


.speak-modal { height: auto !important; max-height: 90vh; overflow: auto; padding: 0; }
.speak-modal .speak-card { margin: 0; border: 0; box-shadow: none; border-radius: 10px ; }
.sp-close { position: absolute; top: 10px; right: 10px; z-index: 3; }
.speak-modal .sp-head { padding-right: 38px; }
.sp-test-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-right: 38px; }
.sp-test-head h3 { margin: 0; font: 600 16px var(--font-display); }
.sp-steps { display: flex; gap: 6px; }
.sp-steps span { min-width: 34px; text-align: center; padding: 4px 6px; border-radius: 10px ; font: 600 12px var(--font); background: var(--panel-2); color: var(--text-3); border: 2px solid transparent; transition: all .25s var(--ease-out); }
.sp-steps span.ok { background: #12B76A; color: #fff; }
.sp-steps span.now { background: var(--yellow); color: var(--ink); border-color: var(--edge-2); transform: scale(1.08); }
.sp-test-head .chip { margin-left: auto; }
.sp-test-hint { margin: 8px 0 10px; font-size: 14px; color: var(--text-2); font-weight: 500; }
.sp-testmsg { font-size: 14px; }
.sp-level-result { text-align: center; padding: 22px 10px 8px; animation: th-in .4s var(--ease-out) both; }
.sp-lv-badge { width: 96px; height: 96px; margin: 0 auto 10px; border-radius: 10px ; display: grid; place-items: center; font: 600 28px var(--font-display); color: #fff; background: linear-gradient(135deg, #FFC21A, #FF8A1F); border: 1px solid var(--edge); box-shadow: none; animation: m-pop .6s cubic-bezier(.3,1.5,.5,1) both; }
.sp-lv-badge.lv-A1, .sp-lv-badge.lv-A2 { background: linear-gradient(135deg, #32D583, #12B76A); }
.sp-lv-badge.lv-B1, .sp-lv-badge.lv-B2 { background: linear-gradient(135deg, #FDB022, #F79009); }
.sp-lv-badge.lv-C1, .sp-lv-badge.lv-C2 { background: linear-gradient(135deg, #9E77ED, #7A5AF8); }
.sp-level-result h3 { font: 600 20px var(--font-display); margin: 6px 0; }
.sp-level-result p { max-width: 460px; margin: 0 auto 16px; color: var(--text-2); font-size: 14px; }
.sp-level-result .sp-actions { justify-content: center; }


.prog-top { display: grid; grid-template-columns: 1fr 1.3fr; gap: 12px; margin-bottom: 12px; }
.prog-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.prog-mini .mini-card { text-align: left; padding: 12px 14px; cursor: pointer; transition: transform .15s; }
.prog-mini .mini-card:hover { transform: translateY(-2px); }
@media (max-width: 760px) { .prog-top, .prog-mini { grid-template-columns: 1fr; } }


.onb-row { display: flex; gap: 8px; justify-content: center; margin: 14px auto 12px; flex-wrap: wrap; }
.onb-row input { width: 300px; text-align: center; }
.onb-test { font-size: 16px; padding: 14px 28px; border-radius: 10px ; display: block; margin: 6px auto 8px; }
.onb-skip { background: none; border: 0; color: var(--text-3); font: 600 14px var(--font); text-decoration: underline; text-underline-offset: 3px; }
.onb-skip:hover { color: var(--text); }


.sum-sub { margin: -2px 0 8px; font-weight: 600; color: var(--text-2); }
.sum-hard { display: block; width: 100%; margin-top: 14px; padding: 10px 14px; border-radius: 10px ; background: #FFF1EC; color: #9A3412; border: 2px dashed #FDBA9B; font-size: 14px; text-align: center; }
[data-theme="dark"] .sum-hard { background: #2c150b; color: #FDBA9B; border-color: #7c2d12; }
.sum-hard u { font-weight: 600; }
.sp-level-result .sp-actions { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; grid-column: auto; }
.sp-level-result .sp-actions > * { width: auto; flex: 0 0 auto; padding: 12px 22px; }
.prog-top .card { padding: 14px 16px; }
.th-road { margin-top: 10px; }
.th-road .journey { padding-top: 42px !important; }

body:has(#speakModal:not([hidden])) #wordPop { z-index: 88 !important; }
body:has(#speakModal:not([hidden])) .drawer { z-index: 86 !important; }

#greetTitle .gr-ic { display: inline-block; }
#greetTitle.gr-in .gr-txt { display: inline-block; animation: gr-in .45s var(--ease-out) both; }
#greetTitle.gr-in .gr-ic { animation: gr-pop .6s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes gr-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes gr-pop { from { transform: scale(.4) rotate(-12deg); } to { transform: none; } }
.th-chip.ghost { background: transparent; color: var(--text-3); margin-left: auto; }
.hero-help { margin-top: 6px; background: none; border: 0; color: var(--text-3); font: 600 14px var(--font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hero-help:hover { color: var(--text); }
@media (prefers-reduced-motion: reduce) { #greetTitle.gr-in .gr-txt, #greetTitle.gr-in .gr-ic { animation: none; } }


.gate { place-items: start center; }
.gate-card { margin: auto; width: min(1040px, 96vw); }
.gate-reason { max-width: 560px; margin-left: auto; margin-right: auto; }
.gate-have { margin-top: 14px; text-align: left; border-top: 1px dashed var(--line-2); padding-top: 10px; }
.gate-have summary { cursor: pointer; color: var(--text-2); font-weight: 600; font-size: 14px; list-style: none; text-align: center; }
.gate-have summary::-webkit-details-marker { display: none; }
.gate-have[open] summary { margin-bottom: 10px; }
.gate-have .mid-row { display: flex; align-items: center; gap: 8px; font-size: 14px; } .gate-have .mid-row span { color: var(--text-3); }
.gate-have .mid-row code { font-weight: 600; letter-spacing: .5px; }

.pay { text-align: left; }
.pay-grid { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(360px, 1.08fr); gap: 22px; align-items: start; }
.pay-h { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 600 16px var(--font); }
.pay-h b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--yellow); font-size: 14px; }
.pay-plans { display: flex; flex-direction: column; gap: 10px; }
.pay-plan { position: relative; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; border-radius: 10px ; background: var(--panel); border: 1px solid var(--edge); text-align: left; transition: transform .15s var(--ease-out), border-color .15s, box-shadow .15s, background .15s; }
.pay-plan:hover { transform: translateY(-1px); border-color: var(--text-3); }
.pp-radio { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--edge); background: var(--panel); position: relative; }
.pay-plan.on .pp-radio { border-color: var(--edge-2); } .pay-plan.on .pp-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--ink); }
.pp-main { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.pp-main b { font: 600 16px var(--font); }
.pp-main em { flex-basis: 100%; font-style: normal; font-size: 12px; font-weight: 600; color: var(--text-3); }
.pp-main i { padding: 2px 9px; border-radius: 10px ; background: var(--ink); color: var(--yellow); font: 600 12px var(--font); font-style: normal; white-space: nowrap; }
.pp-main i.hot { background: #C4320A; color: #fff; } 
.pay-launch { flex-basis: 100%; margin-top: 2px; font: 600 12px var(--font); color: #D92D20; }
.pp-price { text-align: right; white-space: nowrap; } .pp-price s { display: block; font-size: 12px; color: var(--text-3); text-decoration-thickness: 1.5px; }
.pp-price strong { font: 600 20px/22px var(--font-display); letter-spacing: -.3px; }
.pay-plan.on { border-color: var(--edge-2); box-shadow: none; background: linear-gradient(180deg, #FFF8D6, #FFE79A); }
.pay-plan.on .pp-main em { color: #5b4a00; }
[data-theme="dark"] .pay-plan.on { background: #2b2410; border-color: var(--yellow); box-shadow: none; } [data-theme="dark"] .pay-plan.on .pp-main em { color: var(--yellow); }
.pay-renew { margin: 12px 2px 0; font-size: 12px; color: var(--text-2); }
.pay-trust { list-style: none; margin: 16px 0 0; padding: 14px 16px; border-radius: 10px ; background: var(--panel-2); border: 1px solid var(--line-2); display: grid; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.pay-trust i { font-style: normal; display: inline-block; width: 24px; }
.pay-card { padding: 18px; border-radius: 10px ; background: var(--panel); border: 1px solid var(--edge); box-shadow: none; }
.pay-total { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px dashed var(--line-2); }
.pay-total span { font-size: 14px; color: var(--text-3); font-weight: 600; } .pay-total b { font: 600 28px var(--font-display); letter-spacing: -.6px; } .pay-total em { font-style: normal; color: var(--text-3); font-weight: 600; font-size: 14px; }
.pay-qr { text-align: center; margin: 14px 0 6px; }
.pay-qr-frame { display: inline-block; padding: 10px; border-radius: 10px ; background: #fff; border: 1px solid var(--line-2); }
.pay-qr img { display: block; width: 220px; height: 220px; object-fit: contain; }
.pay-qr small { display: block; font-size: 12px; color: var(--text-3); margin-top: 8px; }
.pay-info > div { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--line-2); font-size: 14px; }
.pay-info span { width: 118px; flex: none; color: var(--text-3); overflow-wrap: anywhere; line-height: 1.25; } .pay-info b { flex: 1; word-break: break-all; }
.pay-memo-row { background: rgba(255,210,31,.14); margin: 4px -8px 0; padding: 8px !important; border-radius: 10px ; border-bottom: 0 !important; }
.pay-memo { font-family: ui-monospace, Consolas, monospace; font-size: 14px; letter-spacing: .4px; }
.pay-keep { margin: 10px 0 0; font-size: 12px; color: var(--text-3); }
.pay-copy { padding: 4px 8px; border-radius: 6px ; } .pay-copy:hover { background: var(--hover); }

.pay-track { margin-top: 14px; padding: 14px 16px; border-radius: 10px ; background: var(--panel-2); border: 1px solid var(--line-2); }
.pt-steps { display: flex; align-items: center; gap: 8px; font: 600 12px var(--font); color: var(--text-3); }
.pt-steps span { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.pt-steps i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--edge); background: var(--panel); flex: none; }
.pt-steps u { flex: 1; height: 2px; background: var(--line-2); border-radius: 2px ; min-width: 14px; }
.pt-msg { margin: 10px 0 0; font-size: 14px; line-height: 21px; color: var(--text-2); }
.pay-track[data-st="wait"] .s1 { color: var(--text); } .pay-track[data-st="wait"] .s1 i { border-color: #12B76A; background: #12B76A; animation: pt-pulse 1.4s ease-out infinite; }
.pay-track[data-st="got"] .s1, .pay-track[data-st="got"] .s2, .pay-track[data-st="warn"] .s1, .pay-track[data-st="done"] span { color: var(--text); }
.pay-track[data-st="got"] .s1 i, .pay-track[data-st="warn"] .s1 i, .pay-track[data-st="done"] i { border-color: #12B76A; background: #12B76A; }
.pay-track[data-st="got"] .s2 i { border-color: #12B76A; background: #12B76A; animation: pt-pulse 1.4s ease-out infinite; }
.pay-track[data-st="got"] u:first-of-type, .pay-track[data-st="warn"] u:first-of-type, .pay-track[data-st="done"] u { background: #12B76A; }
.pay-track[data-st="warn"] { background: rgba(247,144,9,.1); border-color: rgba(247,144,9,.45); } .pay-track[data-st="warn"] .s2 { color: #B54708; } .pay-track[data-st="warn"] .s2 i { border-color: #F79009; background: #F79009; animation: pt-pulse-o 1.4s ease-out infinite; }
.pay-track[data-st="warn"] .pt-msg { color: #93370D; font-weight: 600; }
.pay-track[data-st="got"] { background: rgba(18,183,106,.08); border-color: rgba(18,183,106,.35); }
@keyframes pt-pulse { 0% { box-shadow: 0 0 0 0 rgba(18,183,106,.5); } 100% { box-shadow: 0 0 0 10px rgba(18,183,106,0); } }
@keyframes pt-pulse-o { 0% { box-shadow: 0 0 0 0 rgba(247,144,9,.5); } 100% { box-shadow: 0 0 0 10px rgba(247,144,9,0); } }
.pay-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 18px; font-size: 12px; color: var(--text-3); padding: 8px; border-radius: 10px ; transition: background .3s; }
.pay-help.hl { background: rgba(0,104,255,.08); color: var(--text); font-weight: 600; }
.pay-zalo { padding: 5px 12px; border-radius: 10px ; background: #0068FF; color: #fff; font-weight: 600; font-size: 12px; } .pay-zalo:hover { filter: brightness(1.08); }
.pay-mail { font-weight: 600; color: var(--text-2); font-size: 12px; } .pay-mail:hover { color: var(--text); }
.pay-legal { margin-top: 8px; text-align: center; font-size: 12px; color: var(--text-3); }
@media (max-width: 820px) { .pay-grid { grid-template-columns: 1fr; } }

.pay-sheet { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px; background: rgba(10,10,10,.5); backdrop-filter: none; overflow: auto; animation: pay-fade .2s ease-out; }
.pay-sheet-card { width: min(1040px, 100%); max-height: calc(100vh - 48px); overflow: auto; padding: 22px 26px 18px; border-radius: 10px ; background: var(--panel-solid); border: 1px solid var(--edge); box-shadow: var(--lift), 0 30px 80px rgba(0,0,0,.35); animation: pay-pop .3s cubic-bezier(.2,1.3,.4,1); }
.pay-sheet-card > header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.pay-sheet-card > header img { width: 42px; } .pay-sheet-card > header div { flex: 1; } .pay-sheet-card > header b { display: block; font: 600 20px var(--font-display); } .pay-sheet-card > header span { font-size: 12px; color: var(--text-3); font-weight: 600; }
.pay-x { width: 38px; height: 38px; border-radius: 50%; font-size: 16px; color: var(--text-2); } .pay-x:hover { background: var(--hover); color: var(--text); }

.pay-done { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; background: rgba(10,10,10,.55); backdrop-filter: none; overflow: hidden; animation: pay-fade .25s ease-out; }
.pay-done-card { position: relative; z-index: 1; padding: 34px 48px 28px; border-radius: 10px ; background: var(--panel-solid); border: 1px solid var(--edge); box-shadow: none; text-align: center; animation: pay-pop .45s cubic-bezier(.2,1.6,.4,1); }
.pay-done-card h2 { margin: 14px 0 6px; font: 600 28px var(--font-display); } .pay-done-card p { margin: 4px 0; font-weight: 600; } .pd-until { font-size: 16px; }
.pay-done-card .btn-grad { margin-top: 16px; }
.pay-done-icon { width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: #12B76A; color: #fff; font: 600 46px var(--font); box-shadow: none; }
.pay-done > i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px ; animation: pay-confetti linear forwards; }
@keyframes pay-fade { from { opacity: 0; } } @keyframes pay-pop { from { transform: scale(.7); opacity: 0; } }
@keyframes pay-confetti { to { transform: translateY(110vh) rotate(720deg); } }
.field.field-wide { grid-template-columns: 1fr; } .field.field-wide > label { font-weight: 600; color: var(--text); }
.lic-buy { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 10px ; background: linear-gradient(135deg, #FFF6CC, #FFE58A); border: 1px solid var(--edge); box-shadow: none; }
.lic-buy > div { flex: 1; } .lic-buy b { display: block; font: 600 16px var(--font); } .lic-buy span { display: block; font-size: 14px; color: #5b4a00; margin-top: 2px; }
.lic-life { display: flex; flex-direction: column; } [data-theme="dark"] .lic-buy { background: #2b2410; border-color: var(--yellow); } [data-theme="dark"] .lic-buy span { color: var(--yellow); }

.trial-card { display: flex; align-items: center; gap: 16px; padding: 16px 20px; margin: 4px 0 4px; border-radius: 10px ; text-align: left; background: linear-gradient(120deg, #ECFDF3, #D1FADF); border: 2px solid #12B76A; box-shadow: none; }
.trial-card.warn { background: #FFFAEB; border-color: #F79009; box-shadow: none; }
.tc-ic { font-size: 28px; } .tc-main { flex: 1; min-width: 0; } .tc-main b { display: block; font: 600 16px var(--font-display); color: #054F31; } .tc-main span { display: block; font-size: 14px; font-weight: 600; color: #067647; }
.tc-main em { display: block; font-style: normal; font-size: 12px; font-weight: 600; color: #93370D; margin-top: 4px; } .tc-main em:empty { display: none; }
.trial-card .btn-grad { white-space: nowrap; }
.pay-spin.sm { display: inline-block; width: 14px; height: 14px; border-width: 2px; vertical-align: -2px; margin-right: 4px; border-style: solid; border-radius: 50%; border-color: rgba(0,0,0,.2); border-top-color: #141414; animation: pay-spin .9s linear infinite; }
@keyframes pay-spin { to { transform: rotate(360deg); } }
.or-line { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--text-3); font-size: 12px; font-weight: 600; } .or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
[data-theme="dark"] .trial-card { background: #0b2a1c; } [data-theme="dark"] .tc-main b, [data-theme="dark"] .tc-main span { color: #6CE9A6; }

.trial-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 12px; border-radius: 10px ; background: #ECFDF3; border: 1.5px solid #12B76A; color: #054F31; font: 600 12px var(--font); white-space: nowrap; }
.trial-pill b { padding: 3px 10px; border-radius: 10px ; background: #141414; color: #FFD21F; font-size: 12px; }
.trial-pill.last { background: #FFFAEB; border-color: #F79009; color: #93370D; }


.mode-tabs { display: flex; gap: 6px; padding: 4px; border-radius: 10px ; background: var(--panel-2); border: 1px solid var(--line-2); flex-wrap: wrap; }
.mode-tabs button { display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 10px ; text-align: left; color: var(--text-2); transition: background .15s, color .15s, box-shadow .15s; }
.mode-tabs button i { font-style: normal; font-size: 16px; }
.mode-tabs button b { display: block; font: 600 14px var(--font); line-height: 1.15; }
.mode-tabs button small { display: block; font-size: 12px; font-weight: 600; color: var(--text-3); line-height: 14px; }
.mode-tabs button:hover { background: var(--hover); color: var(--text); }
.mode-tabs button.on { background: var(--yellow); color: #141414; box-shadow: none; }
.mode-tabs button.on small { color: #5b4a00; }
@media (max-width: 1350px) { .mode-tabs button small { display: none; } }
@media (max-width: 1050px) { .mode-tabs button b { font-size: 12px; } .mode-tabs button { padding: 6px 10px 6px 8px; } }
.practice-top { align-items: center; gap: 8px; }
.mode-guide { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 10px 0 2px; padding: 0; font-size: 12px; font-weight: 600; color: var(--text-3); }
.mode-guide li { display: flex; align-items: center; gap: 6px; }
.mode-guide b { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line-2); font-size: 12px; color: var(--text-2); }
body[data-mode="dictation"] .wave-row, body[data-mode="dictation"] #scoreBox { display: none !important; }
body[data-mode="dictation"] #recBtn .dot { background: #2E90FA; }
body[data-mode="shadow"] #recBtn .dot { background: #7C5CFF; }
.dictation { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dictation #dictInput { flex: 1; min-width: 260px; font-size: 16px; padding: 12px 14px; }
.dict-tools { display: flex; gap: 6px; flex-basis: 100%; }
.dict-hint { font: 600 14px ui-monospace, Consolas, monospace; letter-spacing: 1px; color: var(--text-2); }
.launch-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: -2px 0 12px; padding: 10px 14px; border-radius: 10px ; background: linear-gradient(90deg, #FEF3F2, #FFF4E5); border: 1px solid #FECDCA; }
.launch-bar span { font: 600 14px var(--font); color: #B42318; } .launch-bar .cd { font: 600 16px ui-monospace, Consolas, monospace; color: #141414; letter-spacing: .5px; padding: 2px 8px; border-radius: 6px ; background: #fff; border: 1px solid #FECDCA; }
.launch-bar small { flex-basis: 100%; font-size: 12px; font-weight: 600; color: #912018; }
[data-theme="dark"] .launch-bar { background: #2a1210; border-color: #7A271A; } [data-theme="dark"] .launch-bar .cd { background: #141414; color: #fff; }



input[type=number], input[type=time], input[type=date], input[type=datetime-local], input[type=search], input[type=url], input[type=email], input[type=tel] {
  background: var(--panel-2); color: var(--text); border: 1px solid var(--edge); border-radius: 10px ; padding: 8px 11px; outline: 0; font-weight: 500; min-height: 40px;
}
input::placeholder, textarea::placeholder { color: var(--text-3); opacity: 1; }
:root { color-scheme: light; }
[data-theme="dark"] { color-scheme: dark; }
select option, select optgroup { background: var(--panel-solid, var(--panel)); color: var(--text); }
input:disabled, select:disabled, textarea:disabled { opacity: .55; }


.hs-wrap { position: relative; min-width: 0; max-width: 100%; }
.hs-wrap > .hs-el { -webkit-mask-image: none !important; mask-image: none !important; scroll-snap-type: none; }
.hs-wrap.can-r > .hs-el { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 70px), transparent) !important; mask-image: linear-gradient(90deg, #000 calc(100% - 70px), transparent) !important; }
.hs-wrap.can-l > .hs-el { -webkit-mask-image: linear-gradient(90deg, transparent, #000 70px) !important; mask-image: linear-gradient(90deg, transparent, #000 70px) !important; }
.hs-wrap.can-l.can-r > .hs-el { -webkit-mask-image: linear-gradient(90deg, transparent, #000 70px, #000 calc(100% - 70px), transparent) !important; mask-image: linear-gradient(90deg, transparent, #000 70px, #000 calc(100% - 70px), transparent) !important; }
.hs-btn { position: absolute; top: calc(50% - 3px); transform: translateY(-50%); z-index: 3; width: 40px; height: 40px; border-radius: 50%; display: none; place-items: center; padding: 0;
  background: var(--yellow); color: var(--ink); border: 1px solid var(--edge); box-shadow: none; cursor: pointer; transition: transform .12s; }
.hs-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.hs-btn:hover { transform: translateY(-50%) scale(1.08); }
.hs-l { left: -4px; } .hs-r { right: -4px; }
.hs-wrap.can-l .hs-l, .hs-wrap.can-r .hs-r { display: grid; }
.hs-el.dragging { cursor: grabbing; user-select: none; }
.hs-el.dragging * { pointer-events: none; }


.main-row { gap: 18px; margin: 14px 0 26px; }
.main-row .round-btn { position: relative; overflow: visible; }
.rb-lbl { position: absolute; top: calc(100% + 7px); left: 50%; transform: translateX(-50%); font: 600 12px/14px var(--font); color: var(--text-2); white-space: nowrap; pointer-events: none; }
.main-row .rec-btn { min-width: 170px; justify-content: center; }
body:not([data-mode="free"]) #replayBtn { display: none; }   
.mode-guide[hidden] { display: none !important; }
.mode-guide { margin: 4px 0 6px; }
.g-ok-li .g-ok { padding: 2px 10px; font-size: 12px; }
.guide-btn { width: 32px; height: 32px; border-radius: 50%; font: 600 14px var(--font); display: grid; place-items: center; border: 1px solid var(--edge); color: var(--text-2); background: var(--panel); flex: none; }
.guide-btn.on { background: var(--yellow); color: var(--ink); border-color: var(--edge-2); }

.wave-row { justify-content: center; }
.wave-row #wave { flex: 1; max-width: 560px; }
.practice:not(:has(#recBtn.recording)) .wave-row:has(#playMineBtn:disabled) { display: none; }
.wave-row .chip:disabled { opacity: .5; }

.tools-row { justify-content: center; gap: 8px; border-top: 2px dashed var(--line); padding-top: 10px; margin-top: 8px; }
.tools-row .tool { width: auto; height: 38px; padding: 0 12px !important; gap: 6px; font-size: 14px; border-radius: 10px ; }
.tools-row .tool > span { display: inline; font: 600 14px var(--font); }
#toolsRow #viewSeg { height: 40px; }
#toolsRow #viewSeg button { display: inline-flex !important; align-items: center; height: 32px; }
.tools-more { display: none; flex-basis: 100%; justify-content: center; flex-wrap: wrap; gap: 8px; padding-top: 10px; }
.tools-row.open .tools-more { display: flex; }
.tool.more[aria-expanded="true"] { background: var(--panel-2); border-color: var(--edge-2); color: var(--text); }
.tools-more .speed button { display: inline-flex !important; align-items: center; }
.tools-more .speed, .tools-more .repeat-box { height: 38px; display: inline-flex; align-items: center; gap: 2px; }
.speed-lbl, .repeat-box { font: 600 14px var(--font); color: var(--text-2); }
.speed-lbl { padding: 0 6px 0 4px; }
.repeat-box { padding: 0 4px 0 10px; }

[data-theme="light"] { --text-3: #6B634C; --accent-2: #875D00; }
[data-theme="light"] .sc.good { color: #15703A; } [data-theme="light"] .sc.mid { color: #9A5B00; } [data-theme="light"] .sc.low { color: #B42318; }
[data-theme="light"] .quest .qh b { color: #875D00; }


.ai-zoom { display: inline-flex; gap: 4px; }
.ai-zoom .icon-btn { font: 600 12px var(--font); min-width: 34px; }
.md { font-size: calc(14px * var(--ai-zoom, 1)); max-width: 100%; overflow-wrap: anywhere; }
.md table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.md th, .md td { min-width: 90px; padding: 6px 10px; border: 1px solid var(--line-2); vertical-align: top; overflow-wrap: normal; }
.md pre { max-width: 100%; overflow-x: auto; }
.md table::-webkit-scrollbar, .md pre::-webkit-scrollbar { height: 10px; }
.md table::-webkit-scrollbar-thumb, .md pre::-webkit-scrollbar-thumb { background: var(--yellow); border-radius: 6px ; }


section.left { justify-content: space-between; overflow-y: auto; overflow-x: hidden; }
section.left > .player-wrap:not(.floating):not(.novideo) { width: var(--fitw, min(100%, calc(42vh * 16 / 9))); max-width: 100%; transition: width .18s ease-out; }
section.left > .practice:not(.floating) { margin-top: auto; }
.guide-btn { position: relative; }
.guide-btn:not(.on)::after { content: ""; position: absolute; top: -2px; right: -2px; width: 8px; height: 8px; border-radius: 50%; background: #FF8A1F; opacity: 0; }
.mode-guide:not([hidden]) { animation: guide-in .25s ease-out; }
@keyframes guide-in { from { opacity: 0; transform: translateY(-4px); } }


#helpModal .modal-card, #helpModal > .card { max-width: 920px; }
.gd-tabs { flex-wrap: wrap; }
.gd-body { max-height: min(62vh, 640px); overflow-y: auto; padding-right: 4px; }
.gd-steps { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.gd-tips div { display: flex; gap: 8px; align-items: flex-start; line-height: 1.45; font-weight: 500; }
.gd-td b { display: block; font-size: 14px; } .gd-td small { display: block; font-size: 12px; color: var(--text-3); font-weight: 500; margin-top: 1px; }
.gd-mode-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gd-mode { padding: 14px 16px; border-radius: 10px ; border: 1px solid var(--edge); background: var(--panel); }
.gd-mh { display: flex; gap: 10px; align-items: center; } .gd-mh b { display: block; font: 600 16px var(--font-display); } .gd-mh small { color: var(--text-3); font-weight: 600; font-size: 12px; }
.gd-mode ol { margin: 10px 0 8px; padding-left: 20px; font-size: 14px; line-height: 21px; font-weight: 500; color: var(--text-2); } .gd-mode li { margin-bottom: 4px; }
.gd-tip { margin: 0; padding: 7px 10px; border-radius: 10px ; background: var(--panel-2); font-size: 12px; font-weight: 600; color: var(--text-2); }
.gd-faq details { border: 1px solid var(--edge); border-radius: 10px ; padding: 10px 14px; margin-bottom: 8px; background: var(--panel); }
.gd-faq summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.gd-faq details[open] summary { margin-bottom: 6px; }
.gd-faq p { margin: 0; font-size: 14px; line-height: 21px; color: var(--text-2); font-weight: 500; }
@media (max-width: 760px) { .gd-mode-list { grid-template-columns: 1fr; } }


.practice { padding: 10px 16px 10px; }
.practice-top { margin-bottom: 2px; }
.sentence-wrap { min-height: 0 !important; padding: 6px 0 2px !important; }
.sentence-big { font-size: 28px; line-height: 41px; }
.turn { height: 32px !important; margin: 6px 0 0 !important; }
.main-row { margin: 10px 0 22px; }
.main-row .round-btn { width: 48px; height: 48px; }
.main-row .rec-btn { padding: 12px 30px; font-size: 16px; }
.mode-guide { margin: 0 0 4px; }
.tools-row { margin-top: 4px; padding-top: 8px; position: relative; }

.tools-more { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); width: max-content; max-width: min(760px, calc(100% - 8px)); z-index: 30;
  padding: 10px; border-radius: 10px ; background: var(--panel-solid, var(--panel)); border: 1px solid var(--edge); box-shadow: var(--lift), 0 18px 40px rgba(0,0,0,.25); }
[data-theme="dark"] .tools-more { border-color: #3a3a3a; box-shadow: none; }
.tools-row.open .tools-more { animation: more-in .16s ease-out; }
@keyframes more-in { from { opacity: 0; transform: translate(-50%, 6px); } }
section.left > .player-wrap:not(.floating):not(.novideo) { margin-top: auto; margin-bottom: auto; }
section.left > .practice:not(.floating) { margin-top: 0; }



#transcript.has-cursor { position: relative; scroll-behavior: auto; }
#transcript .tx-cursor { position: absolute; left: 0; top: 0; z-index: 0; box-sizing: border-box; pointer-events: none; opacity: 0;
  border-radius: 10px ; background: #FFF1B8; border: 1px solid var(--edge); box-shadow: none;
  will-change: transform, height, width;
  transition: transform .42s cubic-bezier(.215,.61,.355,1), height .42s cubic-bezier(.215,.61,.355,1), width .42s cubic-bezier(.215,.61,.355,1), opacity .2s ease; }
[data-theme="dark"] #transcript .tx-cursor { background: #2a2408; border-color: var(--yellow); box-shadow: none; }
#transcript.has-cursor .line { position: relative; z-index: 1; }
#transcript.has-cursor .line.cur, #transcript.has-cursor .line.cur:hover { background: transparent !important; border-color: transparent !important; box-shadow: none !important; }
#transcript .line .w { transition: color .18s ease, background-color .18s ease, box-shadow .18s ease; }


#bigSentence { position: relative; isolation: isolate; }
#bigSentence .w { position: relative; z-index: 1; transition: color .16s ease; }
#bigSentence .kara-pill { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; opacity: 0; border-radius: 6px ;
  background: var(--yellow); box-shadow: var(--lift); will-change: transform, width;
  transition: transform .11s cubic-bezier(.3,.7,.3,1), width .11s cubic-bezier(.3,.7,.3,1), opacity .14s ease; } 
#bigSentence .kara-pill.on { opacity: 1; }
#bigSentence .w.now { background: transparent !important; box-shadow: none !important; color: var(--ink) !important; }


.turn:not([hidden]) { display: flex !important; align-items: center; gap: 10px; padding: 0 8px; }
.coach-steps { position: relative; z-index: 1; display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex: none; }
.coach-steps:empty { display: none; }
.coach-steps li { display: flex; align-items: center; gap: 5px; padding: 2px 9px 2px 3px; border-radius: 10px ; font: 600 12px var(--font); color: #6B634C;
  background: rgba(255,255,255,.6); border: 1.5px solid transparent; transition: background-color .25s, color .25s, border-color .25s, transform .25s; }
.coach-steps li b { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1.5px solid #c9bd8f; font-size: 12px;
  transition: background-color .25s, color .25s, border-color .25s; }
.coach-steps li.done b { background: #22C55E; border-color: #15803D; color: #fff; }
.coach-steps li.on { background: var(--ink); color: var(--yellow); border-color: var(--edge-2); transform: scale(1.05); }
.coach-steps li.on b { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
#turnText { flex: 1; text-align: center; font: 600 14px var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#turnText.tx-in { animation: coach-in .28s cubic-bezier(.2,.85,.25,1); }
@keyframes coach-in { from { opacity: 0; transform: translateY(5px); } }
body:is([data-mode="repeat"], [data-mode="shadow"]) .turn[data-step="2"] { background: #FFE4E4 !important; }
body:is([data-mode="repeat"], [data-mode="shadow"]) .turn[data-step="2"] .turn-fill { background: #FF9B9B; }
@media (max-width: 1100px) { .coach-steps li span { display: none; } .coach-steps li { padding: 2px 3px; } }


.rec-btn { transition: background-color .2s ease, color .2s ease, transform .08s, box-shadow .08s, filter .15s; }
.rec-btn.listening { background: #FFF1B8; }
.rec-btn.listening .dot { background: var(--ink); animation: listen-pulse 1s ease-in-out infinite; }
@keyframes listen-pulse { 50% { transform: scale(.55); opacity: .45; } }
#goNext.go { background: var(--yellow); color: var(--ink); border-color: var(--edge-2); box-shadow: none; }


.dictation .dict-field { display: flex; gap: 8px; align-items: center; flex-basis: 100%; }
.dict-field #dictInput { flex: 1; min-width: 0; }
.dict-play { flex: none; width: 46px; height: 46px; border-radius: 10px ; border: 1px solid var(--edge); background: var(--yellow); box-shadow: none;
  font-size: 20px; display: grid; place-items: center; cursor: pointer; transition: transform .08s, box-shadow .08s; }
.dict-play:active { transform: translateY(2px); box-shadow: none; }
.dict-slots { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dict-slots:empty { display: none; }
.slot { min-width: calc(var(--len, 4) * .58em + 12px); height: 30px; padding: 0 8px; border-radius: 6px ; border: 2px dashed var(--line-2); display: inline-grid; place-items: center;
  font: 600 14px var(--font); color: var(--text); background: var(--panel); transition: background-color .2s, border-color .2s, color .2s; }
.slot.ok { background: #DCFCE7; border: 2px solid #16A34A; color: #14532D; }
.slot.near { background: #FEF3C7; border: 2px solid #D97706; color: #78350F; }
.slot.bad { background: #FEE2E2; border: 2px solid #DC2626; color: #7F1D1D; }
.slot.pop { animation: slot-pop .3s cubic-bezier(.3,1.6,.5,1); }
@keyframes slot-pop { 40% { transform: scale(1.12); } }
.slot-n { font: 600 12px var(--font); color: var(--text-3); margin-left: 4px; }
.dict-result { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dict-result:empty { display: none; }
.dict-next { margin-left: auto; }

@media (prefers-reduced-motion: reduce) {
  #transcript .tx-cursor, #bigSentence .kara-pill, .coach-steps li, .slot { transition: none !important; animation: none !important; }
}
.turn .coach-steps li span { color: inherit !important; position: static; }
body[data-mode="dictation"] #turnBar { margin: 4px 0 8px !important; }


.coach-speed { display: none; position: relative; z-index: 1; flex: none; height: 24px; padding: 0 10px; border-radius: 6px ; border: 1px solid var(--edge);
  background: #fff; color: var(--ink); font: 600 12px var(--font); cursor: pointer; transition: transform .12s, background-color .15s; }
.coach-speed:hover { background: var(--yellow); transform: translateY(-1px); }
body[data-mode="shadow"] .coach-speed { display: inline-flex; align-items: center; }
body[data-mode="shadow"] .turn[data-step="1"] #turnText { font-size: 14px; letter-spacing: .3px; }
#recBtn.recording .dot { animation: pulse 1.1s infinite; }

.score.sh-box { display: block !important; padding: 10px 14px; position: relative; background: var(--panel); border: 1px solid var(--edge); border-radius: 10px ; }
[data-theme="dark"] .score.sh-box { border-color: #3a3a3a; }
.sh-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font: 600 14px var(--font); padding-right: 28px; }
.sh-stat { font-weight: 600; color: var(--text-2); font-size: 14px; }
.sh-stat .good { color: #15803D; } .sh-stat .mid { color: #B45309; } .sh-stat .low { color: #B91C1C; }
.sh-dot { width: 10px; height: 10px; border-radius: 50%; background: #EF4444; animation: pulse 1.1s infinite; flex: none; }
.sh-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.sh-chip { min-width: 34px; height: 32px; padding: 0 7px; border-radius: 6px ; font: 600 12px var(--font); border: 1px solid var(--edge); background: var(--panel-2); color: var(--text);
  cursor: pointer; animation: chip-in .25s cubic-bezier(.3,1.5,.5,1); transition: transform .12s, box-shadow .12s; }
@keyframes chip-in { from { transform: scale(.6); opacity: 0; } }
.sh-chip:hover { transform: translateY(-1px); }
.sh-chip.good { background: #DCFCE7; border-color: #16A34A; color: #14532D; }
.sh-chip.mid { background: #FEF3C7; border-color: #D97706; color: #78350F; }
.sh-chip.low { background: #FEE2E2; border-color: #DC2626; color: #7F1D1D; }
.sh-chip.sil { color: var(--text-3); border-style: dashed; }
.sh-chip.rec { background: #E0F2FE; border-color: #0284C7; color: #075985; }
.sh-chip.pend { background: linear-gradient(90deg, var(--panel-2) 25%, #fff6cc 50%, var(--panel-2) 75%); background-size: 200% 100%; animation: shimmer 1.1s linear infinite; }
.sh-chip.on { box-shadow: none; transform: translateY(-1px); }
.sh-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.sh-detail { margin-top: 8px; padding: 8px 10px; border-radius: 10px ; background: var(--panel-2); font-size: 14px; font-weight: 500; color: var(--text-2);
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.sh-detail .sh-n { font-weight: 600; color: var(--text); }
.sh-detail .good { color: #15803D; } .sh-detail .mid { color: #B45309; } .sh-detail .low { color: #B91C1C; }
.sh-dacts { display: inline-flex; gap: 6px; margin-left: auto; }
@keyframes shimmer { to { background-position: -200% 0; } }
.sh-heard { font-style: normal; color: var(--text); }


#rightTabs .tab-deep { white-space: nowrap; }
.tab-body[data-body="deep"] { overflow: hidden; }
.dp-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px 8px; border-bottom: 1px solid var(--line); flex: none; }
.dp-seg { display: flex; gap: 4px; padding: 3px; border-radius: 10px ; background: var(--panel-2); border: 1px solid var(--edge); flex: 1; }
.dp-seg button { flex: 1; height: 32px; border-radius: 6px ; font: 600 14px var(--font); color: var(--text-2); transition: background-color .18s, color .18s, box-shadow .18s; }
.dp-seg button.on { background: var(--yellow); color: var(--ink); box-shadow: none; }
.dp-lv { display: flex; gap: 2px; padding: 3px; border-radius: 10px ; border: 1px solid var(--edge); flex: none; }
.dp-lv button { min-width: 34px; height: 32px; border-radius: 6px ; font: 600 12px var(--font); color: var(--text-3); transition: background-color .15s, color .15s; }
.dp-lv button.on { background: var(--ink); color: var(--yellow); }
[data-theme="dark"] .dp-lv button.on { background: var(--yellow); color: var(--ink); }
.dp-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; animation: tab-in .25s var(--ease-out, ease-out); }
.dp-pane[hidden] { display: none; }
.dp-topic { display: flex; gap: 8px; align-items: baseline; padding: 8px 14px 0; font-size: 12px; color: var(--text-3); font-weight: 600; flex: none; }
.dp-topic b { color: var(--text); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-modes { display: flex; gap: 6px; padding: 8px 12px; flex: none; flex-wrap: wrap; }
.dp-modes button { height: 32px; padding: 0 11px; border-radius: 6px ; border: 1px solid var(--edge); background: var(--panel); font: 600 12px var(--font); color: var(--text-2); transition: all .15s; }
.dp-modes button:hover { border-color: var(--edge-2); color: var(--text); }
.dp-modes button.on { background: #FFF1B8; border-color: var(--edge-2); color: var(--ink); box-shadow: none; }
[data-theme="dark"] .dp-modes button.on { background: #2a2408; color: var(--yellow); border-color: var(--yellow); }
.dp-key { margin: 0 12px 6px; padding: 8px 10px; border-radius: 10px ; background: #FFF6D6; border: 1.5px dashed #E0B400; font-size: 12px; font-weight: 500; color: #5b4a00; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; flex: none; }
[data-theme="dark"] .dp-key { background: #221d08; color: #f5d76e; }
.dp-chat { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 12px 10px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.dp-intro { font-size: 14px; color: var(--text-2); font-weight: 500; line-height: 21px; padding: 4px 2px; }
.dp-starters { display: flex; flex-direction: column; gap: 7px; }
.dp-q { text-align: left; padding: 9px 12px; border-radius: 10px ; border: 1px solid var(--edge); background: var(--panel); display: flex; flex-direction: column; gap: 2px; cursor: pointer;
  transition: transform .14s, border-color .14s, box-shadow .14s; animation: dp-in .3s var(--ease-out, ease-out) both; }
.dp-q:nth-child(2) { animation-delay: .03s; } .dp-q:nth-child(3) { animation-delay: .06s; } .dp-q:nth-child(4) { animation-delay: .09s; } .dp-q:nth-child(5) { animation-delay: .12s; } .dp-q:nth-child(6) { animation-delay: .15s; }
.dp-q:hover { border-color: var(--edge-2); transform: translateY(-1px); box-shadow: none; }
.dp-q .en { font: 600 14px/20px var(--font); color: var(--text); }
.dp-q .tr { font-size: 12px; color: var(--text-3); font-weight: 500; }
@keyframes dp-in { from { opacity: 0; transform: translateY(6px); } }
.dp-skel { height: 44px; border-radius: 10px ; background: linear-gradient(90deg, var(--panel-2) 25%, #fff6cc 50%, var(--panel-2) 75%); background-size: 200% 100%; animation: shimmer 1.1s linear infinite; }
.dp-skel.short { width: 60%; }
[data-theme="dark"] .dp-skel { background: linear-gradient(90deg, #1b1b1b 25%, #2a2408 50%, #1b1b1b 75%); background-size: 200% 100%; }
.dm { max-width: 94%; border-radius: 10px ; padding: 9px 12px; font-size: 14px; line-height: 22px; animation: dp-in .22s var(--ease-out, ease-out); }
.dm.user { align-self: flex-end; background: var(--yellow); color: var(--ink); font-weight: 500; border: 1px solid var(--edge); border-bottom-right-radius: 4px; white-space: pre-wrap; }
.dm.ai { align-self: flex-start; background: var(--panel); border: 1px solid var(--edge); border-bottom-left-radius: 4px; }
.dm-en { color: var(--text); }
.dm-en strong { background: #FFF1B8; padding: 0 3px; border-radius: 6px ; color: var(--ink); }
[data-theme="dark"] .dm-en strong { background: #3a3008; color: var(--yellow); }
.dm-tr { margin-top: 8px; padding-top: 8px; border-top: 1.5px dashed var(--line-2); color: var(--text-2); font-size: 14px; }
.tab-body[data-body="deep"].mono .dm-tr, .tab-body[data-body="deep"].mono .dp-q .tr { display: none; }
.dm-fix { margin-top: 8px; padding: 7px 10px; border-radius: 10px ; background: #FEF3C7; border-left: 4px solid #D97706; font-size: 14px; color: #5b3a00; }
[data-theme="dark"] .dm-fix { background: #2b2008; color: #f5d08a; }
.dm-next { margin-top: 8px; display: flex; gap: 6px; align-items: flex-start; font-size: 14px; padding: 7px 10px; border-radius: 10px ; background: var(--panel-2); }
.dm-acts { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.dm-acts .chip { height: 32px; padding: 0 9px; font-size: 12px; }
.dots { display: inline-flex; gap: 4px; padding: 4px 0; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); animation: dots 1s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.dp-input { display: flex; gap: 6px; align-items: flex-end; padding: 8px 12px 4px; border-top: 1px solid var(--line); flex: none; }
.dp-input textarea { flex: 1; resize: none; min-height: 40px; max-height: 130px; border-radius: 10px ; padding: 9px 12px; font: 500 14px/20px var(--font); }
.dp-input .btn-grad { height: 40px; min-width: 44px; padding: 0 12px; font-size: 16px; }
.dp-input .icon-btn { height: 40px; width: 40px; flex: none; }
#dpMic.on { background: #FF5A5A; color: #fff; animation: pulse 1.1s infinite; }
.dp-foot { display: flex; align-items: center; gap: 8px; padding: 2px 12px 10px; font-size: 12px; font-weight: 600; color: var(--text-2); flex: none; }
.dp-bi { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.dp-empty { padding: 30px 18px; text-align: center; color: var(--text-2); font-weight: 500; line-height: 1.6; }


.dp-test { flex: 1; min-height: 0; overflow-y: auto; padding: 0 12px 24px; scroll-behavior: smooth; }
.tq-loading { display: flex; flex-direction: column; gap: 10px; align-items: center; padding: 28px 8px; color: var(--text-2); }
.tq-loading .dp-skel { width: 100%; }
.tq-top { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 6px; padding: 10px 0 8px; background: var(--panel-solid, var(--panel)); border-bottom: 1px solid var(--line); }
.tq-ttl { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.tq-ttl b { font: 600 14px var(--font-display); }
.tq-ttl small { font-size: 12px; color: var(--text-3); font-weight: 600; white-space: nowrap; }
.tq-score { flex: 1; display: flex; align-items: center; gap: 8px; justify-content: flex-end; font-size: 12px; font-weight: 600; color: var(--text-2); min-width: 0; }
.tq-score b { font-size: 14px; color: var(--text); }
.tq-score em { font-style: normal; background: var(--ink); color: var(--yellow); padding: 2px 8px; border-radius: 10px ; font-weight: 600; white-space: nowrap; }
.tq-bar { width: 56px; height: 6px; border-radius: 8px; background: var(--panel-2); overflow: hidden; flex: none; }
.tq-bar i { display: block; height: 100%; background: var(--yellow); transition: width .35s var(--ease-out, ease-out); }
.tq-top .chip { height: 32px; padding: 0 9px; }
.tq-top .btn-grad { height: 32px; padding: 0 10px; font-size: 12px; white-space: nowrap; }
.tq-note { margin: 10px 0 0; padding: 8px 10px; border-radius: 10px ; background: var(--panel-2); font-size: 12px; color: var(--text-2); font-weight: 500; line-height: 17px; }
.tq-sec { margin-top: 14px; animation: dp-in .3s var(--ease-out, ease-out) both; }
.tq-sec h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font: 600 14px var(--font-display); }
.tq-sec h4 small { font-size: 12px; background: var(--panel-2); border-radius: 10px ; padding: 1px 7px; color: var(--text-3); }
.tq-part { font: 600 12px var(--font); letter-spacing: .4px; text-transform: uppercase; background: var(--ink); color: var(--yellow); padding: 2px 8px; border-radius: 6px ; }
[data-theme="dark"] .tq-part { background: var(--yellow); color: var(--ink); }
.tq-inst { margin: 0 0 8px; font-size: 12px; color: var(--text-3); font-weight: 600; font-style: italic; }
.tq-words { display: flex; flex-direction: column; gap: 6px; }
.tw { display: flex; gap: 8px; padding: 8px 10px; border-radius: 10px ; border: 1px solid var(--edge); background: var(--panel); }
.tw.topic { border-style: dashed; }
.tw-star { flex: none; width: 26px; height: 26px; border-radius: 6px ; color: var(--line-2); font-size: 16px; line-height: 16px; transition: color .15s, transform .15s; }
.tw-star:hover { transform: scale(1.15); color: #f5b301; }
.tw-star.on { color: #f5b301; }
.tw-main { flex: 1; min-width: 0; }
.tw-h { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.tw-h b { font: 600 14px var(--font); }
.tw-h .ipa { font-size: 12px; color: var(--text-3); }
.tw-h i { font-size: 12px; color: var(--text-3); font-weight: 600; }
.tw-h em { font-style: normal; font-size: 12px; font-weight: 600; color: #0369A1; background: #E0F2FE; padding: 0 6px; border-radius: 6px ; }
.tw-say { margin-left: auto; font-size: 14px; opacity: .7; } .tw-say:hover { opacity: 1; }
.tw-m { font-size: 14px; font-weight: 600; color: var(--text-2); }
.tw-ex { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.tw-ex mark { background: #FFF1B8; color: var(--ink); border-radius: 3px ; padding: 0 2px; }
.tq { padding: 10px 10px 10px 12px; border-radius: 10px ; border: 1px solid var(--edge); background: var(--panel); margin-bottom: 8px; transition: border-color .2s, background-color .2s; }
.tq.ok { border-color: #16A34A; background: #F0FDF4; }
.tq.near { border-color: #D97706; background: #FFFBEB; }
.tq.bad { border-color: #DC2626; background: #FEF2F2; }
.tq.shown { border-color: #0284C7; }
[data-theme="dark"] .tq.ok { background: #0c2414; } [data-theme="dark"] .tq.bad { background: #2a0f0f; } [data-theme="dark"] .tq.near { background: #2a2008; }
.tq-h { display: flex; gap: 8px; align-items: flex-start; }
.tq-n { flex: none; width: 24px; height: 24px; border-radius: 6px ; background: var(--ink); color: var(--yellow); font: 600 12px var(--font); display: grid; place-items: center; margin-top: 1px; }
[data-theme="dark"] .tq-n { background: var(--yellow); color: var(--ink); }
.tq-t { flex: 1; min-width: 0; font-size: 14px; line-height: 22px; font-weight: 500; }
.tq-t p { margin: 0 0 4px; }
.tq-t.gap { line-height: 2; }
.tq-in { font: 600 14px var(--font); padding: 3px 8px; border-radius: 6px ; border: 1px solid var(--edge); margin: 0 3px; background: var(--panel); color: var(--text); max-width: 100%; }
.tq-in:focus { border-color: var(--edge-2); outline: none; box-shadow: 0 0 0 3px rgba(255,210,31,.45); }
.tq-in[readonly] { background: transparent; }
.tq.ok .tq-in { border-color: #16A34A; color: #15803D; } .tq.bad .tq-in { border-color: #DC2626; color: #B91C1C; text-decoration: line-through; }
.tq-long { display: block; width: 100%; margin: 8px 0 0; resize: vertical; min-height: 54px; }
.tq-base { font-weight: 600; color: var(--text-2); }
.tq-show { flex: none; height: 26px; padding: 0 8px; border-radius: 6px ; border: 1px solid var(--edge); background: var(--panel); font: 600 12px var(--font); color: var(--text-2); white-space: nowrap; transition: border-color .15s, color .15s; }
.tq-show:hover { border-color: #0284C7; color: #0369A1; }
.tq-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.tq-opts.tf { grid-template-columns: repeat(3, 1fr); }
.tq-o { display: flex; gap: 8px; align-items: center; text-align: left; padding: 7px 10px; border-radius: 10px ; border: 1px solid var(--edge); background: var(--panel); font-size: 14px; font-weight: 500; color: var(--text); transition: transform .12s, border-color .12s, background-color .15s; }
.tq-o span { flex: none; width: 20px; height: 20px; border-radius: 6px ; background: var(--panel-2); display: grid; place-items: center; font: 600 12px var(--font); }
.tq-o em { font-style: normal; }
.tq-opts.tf .tq-o { justify-content: center; font-weight: 600; font-size: 12px; }
.tq-o:not(:disabled):hover { border-color: var(--edge-2); transform: translateY(-1px); }
.tq-o.right { border-color: #16A34A; background: #DCFCE7; color: #14532D; }
.tq-o.right span { background: #16A34A; color: #fff; }
.tq-o.wrong { border-color: #DC2626; background: #FEE2E2; color: #7F1D1D; }
.tq-o:disabled { cursor: default; }
.tq-why { margin-top: 8px; padding: 8px 10px; border-radius: 10px ; background: var(--panel-2); font-size: 14px; color: var(--text-2); }
.tq-why b { color: #15803D; }
.tq-why.in { animation: dp-in .22s var(--ease-out, ease-out); }
.tq-why .md p { margin: 4px 0 0; }
.tq-writing .tq-task { padding: 10px 12px; border-radius: 10px ; border: 1px solid var(--edge); background: #FFFBEA; font-size: 14px; }
[data-theme="dark"] .tq-writing .tq-task { background: #1d1a0c; border-color: #3a3a3a; }
.tq-ideas { margin: 8px 0; font-size: 14px; } .tq-ideas summary { cursor: pointer; font-weight: 600; } .tq-ideas ul { margin: 6px 0; padding-left: 18px; }
.tq-chips { display: flex; flex-wrap: wrap; gap: 5px; } .tq-chips span { padding: 2px 8px; border-radius: 10px ; background: var(--panel-2); font-weight: 600; font-size: 12px; }
.tq-essay { width: 100%; margin-top: 8px; resize: vertical; min-height: 160px; border-radius: 10px ; padding: 10px 12px; font: 500 14px/22px var(--font); }
.tq-wbar { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--text-3); }
.tq-wbar #tqWc.ok { color: #15803D; }
.tq-model, .tq-grade { margin-top: 10px; padding: 10px 12px; border-radius: 10px ; border: 1px solid var(--edge); background: var(--panel); font-size: 14px; max-width: 100%; overflow-x: auto; }
.tq-end { display: flex; justify-content: center; padding: 16px 0 4px; }
.right.wide .tq-opts, body.ai-wide .tq-opts { grid-template-columns: repeat(4, 1fr); }
@media (prefers-reduced-motion: reduce) { .dp-q, .dm, .tq-sec, .tq-why.in, .dp-pane { animation: none !important; } }


.tq-top { flex-wrap: wrap; row-gap: 6px; }
.tq-mode { display: flex; gap: 2px; padding: 3px; border-radius: 10px ; border: 1px solid var(--edge); background: var(--panel-2); }
.tq-mode button { height: 32px; padding: 0 9px; border-radius: 6px ; font: 600 12px var(--font); color: var(--text-2); white-space: nowrap; transition: background-color .15s, color .15s; }
.tq-mode button.on { background: var(--ink); color: var(--yellow); }
[data-theme="dark"] .tq-mode button.on { background: var(--yellow); color: var(--ink); }
.tq-mode button:disabled { opacity: .5; }
.tq-clock { font-style: normal; font-weight: 600; background: var(--yellow) !important; color: var(--ink) !important; padding: 2px 9px; border-radius: 10px ; font-variant-numeric: tabular-nums; }
.tq-clock.low { background: #FF5A5A !important; color: #fff !important; animation: pulse 1.1s infinite; }
.tq-menu { position: sticky; top: 52px; z-index: 4; margin: 0 0 8px auto; width: max-content; max-width: 100%; display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: 10px ;
  background: var(--panel-solid, var(--panel)); border: 1px solid var(--edge); box-shadow: var(--lift), 0 14px 30px rgba(0,0,0,.18); animation: more-in .16s ease-out; }
.tq-menu[hidden] { display: none; }
.tq-menu button { text-align: left; padding: 7px 10px; border-radius: 6px ; font: 600 14px var(--font); color: var(--text); }
.tq-menu button:hover { background: #FFF1B8; }
[data-theme="dark"] .tq-menu button:hover { background: #2a2408; }
.tq-loading .tq-ring { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--panel-2); border-top-color: var(--yellow); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tq-prog { width: 100%; height: 8px; border-radius: 8px; background: var(--panel-2); overflow: hidden; border: 1px solid var(--line-2); }
.tq-prog i { display: block; height: 100%; background: linear-gradient(90deg, #FFC400, #FFD21F); transition: width .3s ease; }

.tq-cover { margin-top: 12px; padding: 16px 16px 14px; border-radius: 10px ; border: 1px solid var(--edge); background: linear-gradient(180deg, #FFFBEA, var(--panel) 70%); box-shadow: none; animation: dp-in .3s var(--ease-out, ease-out); }
[data-theme="dark"] .tq-cover { background: linear-gradient(180deg, #1d1a0c, var(--panel) 70%); border-color: #3a3a3a; box-shadow: none; }
.tq-cover.small { padding: 10px 14px; }
.tq-brand { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tq-brand span { font: 600 12px var(--font); letter-spacing: 2px; background: var(--ink); color: var(--yellow); padding: 3px 8px; border-radius: 6px ; }
.tq-brand em { font: 600 12px var(--font); letter-spacing: 1.2px; color: var(--text-3); font-style: normal; }
.tq-cover h3 { margin: 8px 0 6px; font: 600 16px/21px var(--font-display); }
.tq-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.tq-meta span { font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--panel-2); border-radius: 10px ; padding: 2px 9px; }
.tq-ov { width: 100%; border-collapse: collapse; margin: 12px 0 8px; font-size: 12px; }
.tq-ov th, .tq-ov td { border: 1px solid var(--line-2); padding: 5px 8px; text-align: left; }
.tq-ov th { background: #FFE680; color: var(--ink); font-weight: 600; }
[data-theme="dark"] .tq-ov th { background: #3a3008; color: var(--yellow); }
.tq-rules { font-size: 12px; line-height: 18px; color: var(--text-2); }
.tq-rules b { font-size: 12px; letter-spacing: .8px; color: var(--text); }
.tq-rules ul { margin: 3px 0 8px; padding-left: 18px; }
.tq-start { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 8px; }
.tq-start .btn-grad { font-size: 14px; padding: 10px 22px; }
.tq-start small { color: var(--text-3); font-weight: 600; font-size: 12px; }
.tq-upsell { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 10px; border-radius: 10px ; background: var(--panel-2); font-size: 12px; font-weight: 500; color: var(--text-2); }
.tq-upsell span { flex: 1; }

.tq-box { margin: 0 0 8px; padding: 8px 12px; border-radius: 10px ; border: 1.5px dashed var(--line-2); font-size: 14px; }
.tq-box ol { margin: 4px 0 0; padding-left: 22px; } .tq-box li { margin: 2px 0; }
.tq-row .tq-h { align-items: center; }
.tq-sel { font: 600 14px var(--font); padding: 4px 8px; border-radius: 6px ; border: 1px solid var(--edge); background: var(--panel); color: var(--text); min-width: 58px; }
.tq-sel:focus { border-color: var(--edge-2); outline: none; }
.tq.answered { border-color: var(--edge-2); }
.tq-o.picked { border-color: var(--edge-2); background: #FFF1B8; color: var(--ink); box-shadow: none; }
.tq-o.picked span { background: var(--ink); color: var(--yellow); }
[data-theme="dark"] .tq-o.picked { background: #3a3008; color: var(--yellow); }
.tq-show { width: 30px; padding: 0; text-align: center; }
.tq-base { letter-spacing: .5px; }
.tw-d { font-size: 12px; color: var(--text-2); font-style: italic; }
.tq-wband { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; padding: 8px 10px; border-radius: 10px ; background: var(--ink); color: var(--yellow); font-weight: 600; }
.tq-wband span { background: rgba(255,255,255,.12); padding: 2px 8px; border-radius: 6px ; font-size: 12px; color: #fff; }
.tq-end { gap: 8px; flex-wrap: wrap; }

.tq-report { margin-top: 12px; padding: 16px; border-radius: 10px ; border: 1px solid var(--edge); background: var(--panel); box-shadow: none; animation: report-in .5s cubic-bezier(.2,1.3,.4,1); }
[data-theme="dark"] .tq-report { border-color: var(--yellow); box-shadow: none; }
@keyframes report-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.tq-r-top { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.tq-ring-big { --p: 0; width: 104px; height: 104px; border-radius: 50%; flex: none; display: grid; place-content: center; text-align: center;
  background: radial-gradient(closest-side, var(--panel) 78%, transparent 79%), conic-gradient(#FFC400 calc(var(--p) * 1%), var(--panel-2) 0); animation: ring-in 1s ease-out; }
@keyframes ring-in { from { transform: rotate(-90deg) scale(.8); opacity: 0; } }
.tq-ring-big b { font: 600 28px var(--font-display); line-height: 1; } .tq-ring-big small { font-size: 12px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 1px; }
.tq-r-info { flex: 1; min-width: 200px; }
.tq-stars { color: #FFC400; font-size: 20px; letter-spacing: 2px; text-shadow: none; }
.tq-r-info h3 { margin: 2px 0 4px; font: 600 16px var(--font-display); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tq-best { font-size: 12px; background: #FF7A00; color: #fff; padding: 2px 9px; border-radius: 10px ; }
.tq-r-info p { margin: 0 0 8px; font-size: 14px; color: var(--text-2); font-weight: 500; }
.tq-r-kpi { display: flex; flex-wrap: wrap; gap: 6px; }
.tq-r-kpi span { display: flex; flex-direction: column; align-items: center; min-width: 62px; padding: 5px 8px; border-radius: 10px ; background: var(--panel-2); }
.tq-r-kpi b { font: 600 16px var(--font-display); } .tq-r-kpi small { font-size: 12px; color: var(--text-3); font-weight: 600; white-space: nowrap; }
.tq-r-parts { display: flex; flex-direction: column; gap: 6px; margin: 14px 0 10px; }
.tq-r-parts div { display: grid; grid-template-columns: 150px 1fr 44px; gap: 8px; align-items: center; font-size: 12px; font-weight: 600; }
.tq-r-parts i { height: 9px; border-radius: 6px ; background: var(--panel-2); overflow: hidden; }
.tq-r-parts i b { display: block; height: 100%; background: linear-gradient(90deg, #22C55E, #16A34A); animation: grow 1s ease-out; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }
.tq-r-parts em { font-style: normal; text-align: right; color: var(--text-2); }
.tq-r-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.tq-r-note { margin: 10px 0 0; font-size: 12px; color: var(--text-3); line-height: 17px; }

.dp-round { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); font-weight: 600; }
.dp-dots { display: inline-flex; gap: 3px; } .dp-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); transition: background-color .2s; } .dp-dots i.on { background: #FFC400; box-shadow: none; }
#dpScore:disabled { opacity: .45; }
#dpScore.ready { background: var(--yellow); color: var(--ink); border-color: var(--edge-2); box-shadow: none; animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 85%, 100% { transform: none; } 90% { transform: translateY(-2px); } 95% { transform: translateY(0); } }
.dm.score-card { max-width: 100%; width: 100%; align-self: stretch; border: 1px solid var(--edge); background: linear-gradient(180deg, #FFFBEA, var(--panel) 60%); box-shadow: none; animation: report-in .5s cubic-bezier(.2,1.3,.4,1); }
[data-theme="dark"] .dm.score-card { background: linear-gradient(180deg, #1d1a0c, var(--panel) 60%); border-color: var(--yellow); box-shadow: none; }
.sc-top { display: flex; gap: 12px; align-items: center; }
.sc-band { flex: none; width: 74px; height: 74px; border-radius: 50%; background: var(--ink); color: var(--yellow); display: grid; place-content: center; text-align: center; }
.sc-band b { font: 600 28px var(--font-display); line-height: 1; } .sc-band small { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; opacity: .8; }
.sc-sum h4 { margin: 0 0 3px; font: 600 14px var(--font-display); } .sc-sum p { margin: 0; font-size: 14px; } .sc-sum p.tr { color: var(--text-3); margin-top: 3px; }
.tab-body[data-body="deep"].mono .sc-sum p.tr, .tab-body[data-body="deep"].mono .sc-chip small { display: none; }
.sc-bars { display: flex; flex-direction: column; gap: 5px; margin: 12px 0; }
.sc-row { display: grid; grid-template-columns: 140px 1fr 34px; gap: 8px; align-items: center; font-size: 12px; font-weight: 600; }
.sc-row i { height: 8px; border-radius: 6px ; background: var(--panel-2); overflow: hidden; } .sc-row i b { display: block; height: 100%; background: linear-gradient(90deg, #FFC400, #FF7A00); animation: grow .9s ease-out; transform-origin: left; }
.sc-row em { font-style: normal; text-align: right; }
.sc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 12px; } .sc-cols ul { margin: 3px 0 0; padding-left: 16px; } .sc-cols li { margin: 2px 0; }
.sc-up { margin-top: 10px; padding: 8px 10px; border-radius: 10px ; background: var(--panel-2); font-size: 14px; } .sc-up s { color: var(--text-3); }
.sc-ph { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; align-items: center; font-size: 12px; }
.sc-ph > b { width: 100%; }
.sc-chip { display: flex; flex-direction: column; align-items: flex-start; padding: 5px 10px; border-radius: 10px ; border: 1px solid var(--edge); background: var(--panel); text-align: left; transition: border-color .15s, transform .15s; }
.sc-chip:hover { border-color: var(--edge-2); transform: translateY(-1px); } .sc-chip.on { border-color: #f5b301; background: #FFF8DB; }
.sc-chip span { font-weight: 600; font-size: 12px; } .sc-chip small { font-size: 12px; color: var(--text-3); }
@media (max-width: 1200px) { .sc-cols { grid-template-columns: 1fr; } .tq-r-parts div { grid-template-columns: 110px 1fr 40px; } }

.tq-top { display: grid; grid-template-columns: 1fr auto auto; grid-template-areas: "ttl exp new" "mode score score"; gap: 6px 6px; align-items: center; }
.tq-top .tq-ttl { grid-area: ttl; } .tq-top [data-export] { grid-area: exp; } .tq-top [data-new] { grid-area: new; }
.tq-top .tq-mode { grid-area: mode; justify-self: start; } .tq-top .tq-score { grid-area: score; justify-content: flex-end; flex: initial; }
.tq-score .tq-bar { width: 90px; }
.tq-o:disabled { opacity: 1 !important; }
.tq-o.is-right { border-color: #16A34A; background: #DCFCE7; color: #14532D; }
.tq-o.is-right span { background: #16A34A; color: #fff; }
.tq-o.is-wrong { border-color: #DC2626; background: #FEE2E2; color: #7F1D1D; }
.tq-o.is-wrong span { background: #DC2626; color: #fff; }
[data-theme="dark"] .tq-o.is-right { background: #0c2a16; color: #86efac; } [data-theme="dark"] .tq-o.is-wrong { background: #2a0f0f; color: #fca5a5; }
.tq-top > .chip { width: 36px; height: 32px; padding: 0; justify-content: center; }


.tq-kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 10px 0 2px; }
.tq-kind { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0; padding: 8px 10px 9px; border-radius: 10px ; border: 1px solid var(--edge); background: var(--panel); text-align: left; color: var(--text); transition: transform .14s var(--ease-out, ease-out), border-color .14s, box-shadow .14s, background-color .14s; }
.tq-kind i { font-style: normal; font-size: 16px; line-height: 18px; }
.tq-kind b { font: 600 14px/17px var(--font-display); max-width: 100%; }
.tq-kind small { font-size: 12px; font-weight: 600; color: var(--text-3); line-height: 15px; }
.tq-kind:not(:disabled):hover { border-color: var(--edge-2); transform: translateY(-1px); }
.tq-kind.on { border-color: var(--edge-2); background: var(--yellow); color: var(--ink); box-shadow: none; }
.tq-kind.on small { color: rgba(20,20,20,.72); }
[data-theme="dark"] .tq-kind.on { border-color: var(--yellow); box-shadow: none; }
.tq-kind:disabled { opacity: .5; cursor: default; }
.tq-hint { font-size: 12px; font-weight: 600; color: var(--text-3); }
.tq-say { width: 32px; height: 30px; margin-right: 4px; border-radius: 6px ; border: 1px solid var(--edge); background: var(--yellow); font-size: 14px; line-height: 14px; vertical-align: middle; transition: transform .12s; }
.tq-say.slow { background: var(--panel); border-color: var(--line-2); font-size: 14px; }
.tq-say:hover { transform: translateY(-1px); }
.tq-say:active { transform: scale(.94); }
.tq-spell .tq-in { vertical-align: middle; }
@media (max-width: 520px) { .tq-kinds { grid-template-columns: 1fr; } .tq-kind { flex-direction: row; align-items: center; gap: 8px; } }



body[data-mode="free"] #playBtn,
body[data-mode="free"] .wave-row,
body[data-mode="free"] #scoreBox { display: none !important; }
body[data-mode="free"] #recBtn .dot { width: 0; height: 0; border-radius: 0 ; background: none !important; border: none; border-left: 15px solid var(--ink); border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 3px; box-shadow: none; animation: none; }
body[data-mode="free"] #recBtn.playing .dot { width: 14px; height: 16px; border: none; margin-left: 0; background: linear-gradient(90deg, var(--ink) 0 35%, transparent 35% 65%, var(--ink) 65%) !important; }

body[data-mode="repeat"] #replayBtn { display: none !important; }

body[data-mode="shadow"] #playBtn, body[data-mode="shadow"] #replayBtn,
body[data-mode="shadow"] #playMineBtn, body[data-mode="shadow"] #compareBtn { display: none !important; }

body[data-mode="dictation"] #playBtn, body[data-mode="dictation"] #replayBtn, body[data-mode="dictation"] #viewSeg { display: none !important; }


.aik { border: 1px solid var(--edge); border-radius: 10px ; padding: 10px 12px; background: linear-gradient(180deg, #FFF6D6, var(--panel) 80%); display: flex; flex-direction: column; gap: 8px; width: 100%; box-sizing: border-box; color: var(--text); }
[data-theme="dark"] .aik { background: linear-gradient(180deg, #221d08, var(--panel) 80%); border-color: #5a4a10; }
.aik.pulse { animation: aik-pulse .9s ease-out 2; }
@keyframes aik-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,196,0,.75); } 100% { box-shadow: 0 0 0 14px rgba(255,196,0,0); } }
.aik-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 14px; }
.aik-h b { font: 600 14px var(--font-display); }
.aik-h span { font-size: 12px; color: var(--text-3); font-weight: 600; }
.aik-provs { display: flex; flex-wrap: wrap; gap: 5px; }
.aik-p { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 9px 0 5px; border-radius: 6px ; border: 1px solid var(--edge); background: var(--panel); font: 600 12px var(--font); color: var(--text); }
.aik-p .logo-dot { width: 20px; height: 20px; font-size: 12px; }
.aik-p em { font-style: normal; font-size: 12px; font-weight: 600; background: var(--yellow); color: var(--ink); border-radius: 10px ; padding: 1px 6px; }
.aik-p.on { border-color: var(--edge-2); background: #FFF1B8; box-shadow: none; }
[data-theme="dark"] .aik-p.on { background: #3a3008; border-color: var(--yellow); }
.aik-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.aik-steps li::marker { font-weight: 600; }
.aik-steps small { display: block; color: var(--text-3); font-weight: 500; margin-top: 2px; }
.aik-in { display: flex; gap: 6px; }
.aik-in input { flex: 1; min-width: 0; height: 34px; border-radius: 6px ; padding: 0 10px; font: 500 14px var(--font); }
.aik-msg { color: var(--text-3); font-weight: 500; line-height: 1.4; }
.aik-alt { margin-top: 6px; text-align: center; }
.link-btn { background: none; border: none; padding: 2px 4px; font: 600 12px var(--font); color: var(--text-3); text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--text); }
.dp-key:has(.aik) { display: block; background: none; border: none; padding: 0; }
.dm.note { align-self: center; max-width: 92%; text-align: center; font-size: 12px; font-weight: 600; color: #7a5b00; background: #FFF6D6; border: 1.5px dashed #E0B400; border-radius: 10px ; padding: 7px 10px; }
[data-theme="dark"] .dm.note { color: #f5d76e; background: #221d08; }
.tq-upsell:has(.aik), .tq-grade:has(.aik), .tq-model:has(.aik) { display: block; padding: 0; border: none; background: none; }


.pop-cefr { margin-left: 8px; font: 600 12px/12px var(--font); padding: 4px 7px; border-radius: 6px ; border: 1.5px solid currentColor; letter-spacing: .3px; }
.pop-cefr.lv-A1, .pop-cefr.lv-A2 { color: #16a34a; } .pop-cefr.lv-B1, .pop-cefr.lv-B2 { color: #d97706; } .pop-cefr.lv-C1, .pop-cefr.lv-C2 { color: #dc2626; }
[data-theme="dark"] .pop-cefr.lv-A1, [data-theme="dark"] .pop-cefr.lv-A2 { color: #4ade80; } [data-theme="dark"] .pop-cefr.lv-B1, [data-theme="dark"] .pop-cefr.lv-B2 { color: #fbbf24; } [data-theme="dark"] .pop-cefr.lv-C1, [data-theme="dark"] .pop-cefr.lv-C2 { color: #f87171; }
.pop-off { margin-left: 6px; font: 600 12px/12px var(--font); text-transform: uppercase; letter-spacing: .5px; padding: 3px 6px; border-radius: 6px ; background: rgba(34,197,94,.14); color: #16a34a; vertical-align: 1px; }
[data-theme="dark"] .pop-off { color: #4ade80; }
.ev { font-size: 14px; line-height: 21px; }
.ev-g { margin: 6px 0 8px; }
.ev-g > .pos { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px ; margin-bottom: 3px; }
.ev-ms { margin: 2px 0 0; padding-left: 22px; }
.ev-ms li { margin: 3px 0 5px; }
.ev-ms li::marker { color: var(--text-3); font-weight: 600; }
.ev-m { font-weight: 500; }
.ev-ex { display: block; color: var(--text-2); font-size: 12px; margin-top: 2px; padding-left: 10px; border-left: 1px solid var(--edge); }
.ev-ex b { font-weight: 500; font-style: italic; color: var(--text); }
.ev-sub { font: 600 12px/14px var(--font); text-transform: uppercase; letter-spacing: .5px; color: var(--text-3); margin: 10px 0 4px; }
.ev-idi { margin: 4px 0 6px; } .ev-idi > b { color: var(--accent-2); }
.ev-fc { display: inline-block; font-size: 12px; padding: 3px 8px; margin: 2px 4px 2px 0; border-radius: 6px ; background: var(--panel-2); border: 1px solid var(--line); }
.ev-fc i { font-style: normal; font-weight: 600; color: var(--text-3); margin-right: 3px; }
#pEnvi:not(.open) .more { display: none; }
.ev-toggle { margin-top: 2px; font-size: 12px; font-weight: 600; }


.dp-head { flex-wrap: wrap; row-gap: 6px; }
.dp-lv button { min-width: 30px; position: relative; }
.dp-lv button.vid::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #16a34a; }
.dp-lv button.on.vid::after { background: currentColor; }
@container (max-width: 430px) { .dp-lv button { min-width: 26px; font-size: 12px; } }
.dp-vlv { flex: none; margin: 0 12px; padding: 6px 8px 6px 10px; border-radius: 10px ; background: var(--panel-2); border: 1px solid var(--line); font-size: 12px; }
.dp-vlv[hidden], .dp-vlv:empty { display: none; }
.vl-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vl-badge { font-weight: 600; color: var(--text-2); white-space: nowrap; }
.vl-badge b { display: inline-block; margin-left: 3px; padding: 1px 7px; border-radius: 6px ; color: #fff; background: #78716c; font-size: 12px; }
.vl-badge.lv-A1 b, .vl-badge.lv-A2 b { background: #16a34a; } .vl-badge.lv-B1 b, .vl-badge.lv-B2 b { background: #d97706; } .vl-badge.lv-C1 b, .vl-badge.lv-C2 b { background: #dc2626; }
.vl-sug { display: inline-flex; align-items: center; gap: 5px; color: var(--text-3); font-weight: 600; flex-wrap: wrap; }
.vl-chip { padding: 3px 9px; border-radius: 10px ; border: 1px solid var(--edge); font: 600 12px var(--font); color: var(--text-2); background: var(--panel-solid, transparent); cursor: pointer; }
.vl-chip:hover { border-color: var(--accent); color: var(--text); }
.vl-chip.on { background: var(--yellow); color: var(--ink); border-color: var(--edge-2); }
.vl-auto, .vl-info { height: 24px; min-width: 24px; padding: 0 8px; border-radius: 6px ; font: 600 12px var(--font); color: var(--text-3); border: 1px solid var(--edge); cursor: pointer; }
.vl-auto.on { color: #16a34a; border-color: #16a34a; background: rgba(22,163,74,.08); }
.vl-more { display: none; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line-2); }
.dp-vlv.open .vl-more { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.vl-why { display: flex; flex-direction: column; gap: 3px; } .vl-why small { color: var(--text-3); }
.vl-dist small, .vl-hard small { display: block; font-weight: 600; color: var(--text-3); text-transform: uppercase; font-size: 12px; letter-spacing: .4px; margin-bottom: 3px; }
.vl-row { display: grid; grid-template-columns: 22px 1fr 34px; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.vl-row i { height: 6px; border-radius: 3px ; background: var(--line); overflow: hidden; } .vl-row i b { display: block; height: 100%; background: #78716c; }
.vl-row b.lv-A1, .vl-row b.lv-A2 { background: #16a34a; } .vl-row b.lv-B1, .vl-row b.lv-B2 { background: #d97706; } .vl-row b.lv-C1, .vl-row b.lv-C2 { background: #dc2626; }
.vl-row em { font-style: normal; color: var(--text-3); text-align: right; }
.vl-hard { grid-column: 1 / -1; } .vl-hard div { display: flex; flex-wrap: wrap; gap: 4px; }
.vl-hard span { padding: 2px 7px; border-radius: 6px ; background: var(--panel-solid, var(--bg)); border: 1px solid var(--line); font-weight: 500; }
.vl-hard span i { font-style: normal; font-size: 12px; font-weight: 600; color: var(--text-3); }
.vl-note { grid-column: 1 / -1; margin: 2px 0 0; font-size: 12px; color: var(--text-3); }
@media (max-width: 760px) { .dp-vlv.open .vl-more { grid-template-columns: 1fr; } }
.dp-exp { position: relative; }
.dp-expmenu { position: absolute !important; bottom: 34px; right: 0; top: auto !important; margin: 0 !important; z-index: 20; }
.tw-lv { font-style: normal; font-size: 12px; font-weight: 600; padding: 1px 5px; border-radius: 6px ; border: 1px solid currentColor; }
.tw-lv.lv-A1, .tw-lv.lv-A2 { color: #16a34a; } .tw-lv.lv-B1, .tw-lv.lv-B2 { color: #d97706; } .tw-lv.lv-C1, .tw-lv.lv-C2 { color: #dc2626; }
.dp-topic > span { white-space: nowrap; flex: none; } .dp-topic b { min-width: 0; }


.xp-wrap { position: relative; display: inline-flex; flex: none; }
.xp-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 9px; border-radius: 6px ; border: 1px solid var(--edge); background: var(--panel-solid, var(--panel)); color: var(--text); font: 600 12px var(--font); cursor: pointer; transition: border-color .15s, background-color .15s, box-shadow .15s, transform .1s; }
.xp-btn:hover { border-color: var(--edge-2); background: #FFF6CC; }
[data-theme="dark"] .xp-btn:hover { border-color: var(--yellow); background: #221d05; }
.xp-btn:active { transform: translateY(1px); }
.xp-wrap.open .xp-btn { border-color: var(--edge-2); background: var(--yellow); color: var(--ink); box-shadow: none; }
.xp-ic { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.xp-caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .55; transition: transform .15s; }
.xp-wrap.open .xp-caret { transform: rotate(180deg); opacity: .9; }
.xp-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; width: 318px; max-width: calc(100vw - 24px); padding: 6px; border-radius: 10px ; background: var(--panel-solid, var(--panel)); border: 1px solid var(--edge); box-shadow: var(--lift), 0 18px 40px rgba(0,0,0,.22); font-family: var(--font); color: var(--text); animation: xp-in .14s ease-out; transform-origin: top right; }
.xp-wrap.up .xp-menu { top: auto; bottom: calc(100% + 8px); transform-origin: bottom right; }
.xp-menu[hidden] { display: none; }
[data-theme="dark"] .xp-menu { border-color: #3a3a3a; box-shadow: 0 5px 0 #000, 0 18px 40px rgba(0,0,0,.5); }
@keyframes xp-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.xp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 6px 8px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.xp-head b { font-size: 14px; font-weight: 600; }
.xp-head small { font-size: 12px; font-weight: 600; color: var(--text-3); }
.xp-row { display: flex; align-items: center; gap: 8px; padding: 7px 6px 7px 8px; border-radius: 10px ; }
.xp-row:hover { background: var(--bg-2); }
.xp-doc { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; }
.xp-emo { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px ; background: var(--bg-2); font-size: 14px; flex: none; }
.xp-row:hover .xp-emo { background: var(--panel-solid, #fff); }
.xp-doc b { display: block; font-size: 14px; font-weight: 600; line-height: 18px; }
.xp-doc small { display: block; font-size: 12px; font-weight: 500; color: var(--text-3); line-height: 16px; margin-top: 1px; }
.xp-fmts { display: flex; gap: 5px; flex: none; }
.xp-f { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; width: 46px; padding: 5px 0 4px; border-radius: 6px ; border: 1px solid var(--edge); background: var(--panel-solid, var(--panel)); font: 600 12px var(--font); color: var(--text-2); cursor: pointer; transition: border-color .12s, transform .1s, box-shadow .12s; }
.xp-f svg { width: 20px; height: 20px; }
.xp-f.word:hover, .xp-f.word:focus-visible { border-color: #2B579A; color: #2B579A; box-shadow: 0 0 0 3px rgba(43,87,154,.14); outline: none; }
.xp-f.pdf:hover, .xp-f.pdf:focus-visible { border-color: #D93025; color: #D93025; box-shadow: 0 0 0 3px rgba(217,48,37,.13); outline: none; }
[data-theme="dark"] .xp-f.word:hover { color: #8ab4f8; } [data-theme="dark"] .xp-f.pdf:hover { color: #f28b82; }
.xp-f:active { transform: translateY(1px); }
.xp-foot { padding: 7px 8px 3px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 500; color: var(--text-3); }
.tq-r-acts .xp-btn { height: 32px; }
.dp-foot .xp-btn { height: 32px; padding: 0 8px; }
.xp-btn.icon { width: 34px; padding: 0; justify-content: center; } .tq-top .xp-btn { height: 32px; } .tq-top .xp-btn.icon { width: 32px; } .xp-btn:disabled { opacity: .45; cursor: default; }
.ipa-btn.big.noipa span::before { content: none; } .ipa-btn.big.noipa span { display: none; }
.dp-vlv { container-type: inline-size; }
.vl-top { flex-wrap: nowrap; } .vl-sug { flex-wrap: nowrap; min-width: 0; } .vl-chip { white-space: nowrap; } .vl-chip i { font-style: normal; }
@container (max-width: 440px) { .vl-chip i { display: none; } .vl-sug { gap: 4px; } }


#dataCentre { display: flex; flex-direction: column; gap: 6px; }
.dc-loading { color: var(--text-3); padding: 20px; text-align: center; }
.dc-undo { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 10px 12px; border-radius: 10px ; background: rgba(22,163,74,.10); border: 1.5px solid rgba(22,163,74,.45); font-weight: 600; font-size: 14px; }
.dc-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 2px 0 6px; }
.dc-stats div { padding: 9px 6px; border-radius: 10px ; background: var(--bg-2); text-align: center; }
.dc-stats b { display: block; font: 600 16px var(--font); } .dc-stats small { font-size: 12px; font-weight: 600; color: var(--text-3); }
.dc-h { display: flex; align-items: baseline; gap: 8px; margin: 12px 0 2px; font: 600 14px var(--font); }
.dc-h small { font-size: 12px; font-weight: 500; color: var(--text-3); }
.dc-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px ; border: 1px solid var(--line); background: var(--panel-solid, var(--panel)); }
.dc-row:hover { border-color: var(--line-2); }
.dc-row.sm { padding: 6px 8px; margin: 4px 0; }
.dc-ic { width: 32px; height: 32px; border-radius: 6px ; display: grid; place-items: center; background: var(--bg-2); font-size: 16px; flex: none; }
.dc-txt { flex: 1; min-width: 0; }
.dc-txt b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-txt b em { font-style: normal; font-size: 12px; font-weight: 600; padding: 1px 7px; border-radius: 10px ; background: var(--bg-2); color: var(--text-2); margin-left: 4px; }
.dc-txt small { display: block; font-size: 12px; color: var(--text-3); font-weight: 500; line-height: 16px; }
.dc-acts { display: flex; gap: 6px; flex: none; }
.dc-reset { min-width: 82px; }
.dc-reset.armed { background: #FEF3C7; border-color: #D97706; color: #92400E; }
[data-theme="dark"] .dc-reset.armed { background: #3b2a05; color: #fbbf24; }
.dc-row.danger { border-color: rgba(220,38,38,.35); background: rgba(220,38,38,.04); }
.dc-reset.danger.armed, .dc-reset.danger:hover { background: #DC2626; border-color: #991B1B; color: #fff; }
.dc-videos { margin-top: 4px; } .dc-videos summary { cursor: pointer; font-weight: 600; font-size: 14px; padding: 8px 4px; }
.dc-videos summary small { color: var(--text-3); }
@media (max-width: 760px) { .dc-stats { grid-template-columns: repeat(3, 1fr); } }
#dpReset.armed { background: #FEF3C7; border-color: #D97706; color: #92400E; }
.dm.ai.err { border-color: rgba(217,119,6,.45); background: rgba(254,243,199,.45); }
[data-theme="dark"] .dm.ai.err { background: rgba(120,80,0,.18); }
.dm-err b { display: block; font-size: 14px; margin-bottom: 4px; } .dm-err p { margin: 0 0 6px; font-size: 14px; line-height: 21px; }


:root { --pill: #FFD84D; --pill-shadow: 0 1px 2px rgba(60,45,0,.16), 0 4px 10px -4px rgba(120,90,0,.28); }
[data-theme="dark"] { --pill: #F2C433; --pill-shadow: 0 1px 2px rgba(0,0,0,.5); }
.has-ind > .tab-ind, .home-tabs.has-ind > .tab-ind, [data-theme="dark"] .has-ind > .tab-ind {
  background: var(--pill); border: 0; box-shadow: none;
  transition: transform .34s cubic-bezier(.22, .8, .25, 1), width .34s cubic-bezier(.22, .8, .25, 1), height .28s cubic-bezier(.22, .8, .25, 1), opacity .18s ease; }
.has-ind > button.on, .has-ind > button.on:hover { color: #1a1505 !important; }
.has-ind > button.on small { color: #5b4a00 !important; }
.has-ind > button:not(.on):hover { background: rgba(0,0,0,.04) !important; }
[data-theme="dark"] .has-ind > button:not(.on):hover { background: rgba(255,255,255,.05) !important; }
.mode-tabs button { transition: color .25s ease, background-color .25s ease; }
.sp-src.has-ind > .tab-ind { background: var(--ink); }
[data-theme="dark"] .sp-src.has-ind > .tab-ind { background: var(--pill); }
@media (prefers-reduced-motion: reduce) { .has-ind > .tab-ind { transition: opacity .15s ease !important; } }
.dp-seg button { transition: background-color .3s ease, color .3s ease, box-shadow .3s ease; }
.dp-seg button.on { background: var(--pill); color: #1a1505; box-shadow: none; }
.seg button.on, [data-theme="dark"] .seg button.on { background: var(--pill); color: #1a1505; box-shadow: none; }
.seg button { transition: background-color .3s ease, color .3s ease, box-shadow .3s ease; }


.ai-intro { padding: 12px 14px; border-radius: 10px ; background: #FFF8DB; border: 1px solid #F1D77A; margin-bottom: 12px; font-size: 14px; }
[data-theme="dark"] .ai-intro { background: #221d05; border-color: #4a3d0a; }
.ai-intro b { font-weight: 600; } .ai-intro ol { margin: 6px 0 0; padding-left: 20px; } .ai-intro li { margin: 3px 0; line-height: 1.45; }
.ai-set .ai-card { padding: 12px 14px; border-radius: 10px ; }
.ai-set .ai-card .hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ai-set .ai-card .hd .sp { flex: 1; }
.ai-set .pill.free { background: rgba(22,163,74,.12); color: #15803d; }
.ai-st { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 10px ; background: var(--bg-2); color: var(--text-3); }
.ai-st.ok { background: rgba(22,163,74,.12); color: #15803d; } .ai-st.warn { background: rgba(217,119,6,.14); color: #b45309; }
[data-theme="dark"] .ai-st.ok { color: #4ade80; } [data-theme="dark"] .ai-st.warn { color: #fbbf24; }
.ai-keyrow { display: flex; gap: 6px; margin-top: 10px; align-items: center; }
.ai-keyrow input { flex: 1; min-width: 0; }
.ai-adv { margin-top: 8px; } .ai-adv summary { cursor: pointer; font-size: 12px; font-weight: 600; color: var(--text-3); }


#helpModal.gd-modal { width: min(1020px, 95vw); max-width: none; }
#helpModal.gd-modal .modal-b { padding: 0; overflow: hidden; }
.gd-wrap { display: grid; grid-template-columns: 228px minmax(0, 1fr); height: min(66vh, 680px); }
.gd-nav { display: flex; flex-direction: column; gap: 2px; padding: 12px 10px; border-right: 1px solid var(--line); background: var(--panel-2); overflow-y: auto; }
.gd-nav button { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px ; text-align: left; color: var(--text-2); transition: background-color .2s ease, color .2s ease; }
.gd-nav button:hover { background: rgba(0,0,0,.04); color: var(--text); }
[data-theme="dark"] .gd-nav button:hover { background: rgba(255,255,255,.05); }
.gd-nav button.on { background: var(--pill); color: #1a1505; box-shadow: none; }
.gd-nav .gd-ni { width: 28px; height: 28px; border-radius: 6px ; display: grid; place-items: center; font-size: 14px; background: var(--panel-solid, #fff); flex: none; }
.gd-nav button.on .gd-ni { background: rgba(255,255,255,.55); }
.gd-nav b { display: block; font: 600 14px var(--font); line-height: 1.2; }
.gd-nav small { display: block; font-size: 12px; font-weight: 500; color: var(--text-3); line-height: 14px; margin-top: 1px; }
.gd-nav button.on small { color: #5b4a00; }
.gd-main { overflow-y: auto; padding: 18px 22px 22px; scroll-behavior: smooth; }
.gd-title { margin: 0 0 12px; font: 600 20px var(--font-display); }
#helpModal.gd-modal .gd-body { max-height: none; overflow: visible; padding: 0; }
.gd-lead { margin: 0 0 14px; font-size: 14px; line-height: 22px; font-weight: 500; color: var(--text-2); }

#helpModal.gd-modal .gd-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#helpModal.gd-modal .gd-step { padding: 14px 14px 14px 12px; border-width: 1.5px; background: var(--panel-solid, var(--panel)); align-items: flex-start; }
#helpModal.gd-modal .gd-step .gd-n { position: static; flex: none; width: 24px; height: 24px; margin-top: 2px; border: 0; background: var(--pill); box-shadow: var(--pill-shadow); color: #1a1505; }
#helpModal.gd-modal .gd-step .gd-ic { font-size: 20px; margin-top: 1px; }
#helpModal.gd-modal .gd-step b { font: 600 14px var(--font); }
.gd-list { display: grid; gap: 8px; margin-bottom: 16px; }
.gd-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px ; border: 1px solid var(--edge); background: var(--panel-solid, var(--panel)); }
.gd-row .gd-n { position: static; flex: none; width: 24px; height: 24px; border: 0; background: var(--pill); box-shadow: none; color: #1a1505; }
.gd-row b { font-size: 14px; font-weight: 600; } .gd-row p { margin: 2px 0 0; font-size: 14px; line-height: 21px; color: var(--text-2); font-weight: 500; }
#helpModal.gd-modal .gd-h { margin: 18px 0 8px; font-size: 12px; }
#helpModal.gd-modal .gd-h:first-child { margin-top: 0; }
#helpModal.gd-modal .gd-tools { grid-template-columns: 1fr; gap: 4px; }
#helpModal.gd-modal .gd-tools > div { padding: 8px 10px; border: 1px solid var(--line); background: var(--panel-solid, var(--panel)); }
#helpModal.gd-modal .gd-mode-list { grid-template-columns: 1fr; }
@media (max-width: 860px) { .gd-wrap { grid-template-columns: 1fr; height: auto; max-height: 72vh; } .gd-nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); } .gd-nav small { display: none; } #helpModal.gd-modal .gd-steps { grid-template-columns: 1fr; } }


.trial-pill .tp-days { display: inline-flex; gap: 2px; }
.trial-pill .tp-days u { width: 5px; height: 10px; border-radius: 2px ; background: rgba(5,79,49,.18); }
.trial-pill .tp-days u.on { background: #12B76A; }
.trial-pill.last .tp-days u.on { background: #F79009; }
.trial-pill.renew { background: #FFF8DD; border-color: #E8B500; color: #5b4a00; }
.trial-pill:hover { filter: brightness(1.02); transform: translateY(-1px); }
.trial-pill { transition: transform .15s ease; }
[data-theme="dark"] .trial-pill { background: #0b2a1c; color: #6CE9A6; } [data-theme="dark"] .trial-pill.last, [data-theme="dark"] .trial-pill.renew { background: #2b2410; color: #FFD84D; border-color: #8a6d00; }

.up-sheet { position: fixed; inset: 0; z-index: 290; display: grid; place-items: center; padding: 24px; background: rgba(10,10,10,.42); backdrop-filter: none; overflow: auto; animation: up-in .22s ease-out; }
.up-sheet.out { animation: up-out .18s ease-in forwards; }
@keyframes up-in { from { opacity: 0; } } @keyframes up-out { to { opacity: 0; } }
.up-card { position: relative; width: min(640px, 100%); max-height: calc(100vh - 48px); overflow: auto; padding: 26px 28px 18px; border-radius: 10px ; background: var(--panel-solid); border: 1px solid var(--edge); box-shadow: none; animation: up-pop .32s cubic-bezier(.2,.9,.3,1.2); }
@keyframes up-pop { from { transform: translateY(14px) scale(.97); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .up-sheet, .up-card { animation: none; } }
.up-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; color: var(--text-3); font-size: 14px; } .up-x:hover { background: var(--hover); color: var(--text); }
.up-hero { text-align: center; padding: 4px 18px 0; }
.up-kick { display: inline-block; padding: 4px 12px; border-radius: 10px ; background: var(--yellow); color: #141414; font: 600 12px var(--font); letter-spacing: .2px; }
.up-days { display: flex; justify-content: center; gap: 5px; margin: 12px 0 2px; }
.up-days u { width: 30px; height: 7px; border-radius: 6px ; background: var(--line-2); }
.up-days u.on { background: var(--ink); } [data-theme="dark"] .up-days u.on { background: var(--yellow); }
.up-hero h2 { margin: 12px 0 6px; font: 600 28px/35px var(--font-display); letter-spacing: -.3px; color: var(--text); }
.up-hero p { margin: 0 auto; max-width: 480px; color: var(--text-2); font-size: 14px; line-height: 21px; }
.up-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin: 18px 0 12px; }
.up-tile { padding: 12px 10px 10px; border-radius: 10px ; background: var(--panel-2); border: 1px solid var(--line-2); text-align: center; }
.up-tile i { display: block; font-style: normal; font-size: 16px; }
.up-tile b { display: block; font: 600 28px/32px var(--font-display); color: var(--text); font-variant-numeric: tabular-nums; }
.up-tile span { display: block; font-size: 12px; font-weight: 600; color: var(--text-3); line-height: 16px; }
.up-keep { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 10px; margin: 6px 0 14px; padding: 10px 14px; border-radius: 10px ; background: rgba(255,210,31,.16); font-size: 14px; text-align: center; }
.up-keep b { color: var(--text); } .up-keep span { color: var(--text-2); font-weight: 600; }
.up-perks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 0 0 14px; text-align: left; }
.up-perks > div { display: grid; grid-template-columns: 30px 1fr; column-gap: 8px; align-items: start; align-content: start; padding: 8px 10px; border-radius: 10px ; }
.up-perks i { grid-row: span 2; font-style: normal; font-size: 20px; line-height: 24px; }
.up-perks b { text-wrap: balance; font-size: 14px; color: var(--text); line-height: 18px; } .up-perks span { font-size: 12px; color: var(--text-3); line-height: 16px; }
.up-perks.ongate { max-width: 760px; margin: 0 auto 16px; grid-template-columns: repeat(4, 1fr); }
.up-perks.ongate > div { background: var(--panel-2); border: 1px solid var(--line-2); grid-template-columns: 1fr; text-align: center; padding: 12px 10px; }
.up-perks.ongate i { grid-row: auto; font-size: 28px; margin-bottom: 4px; }
@media (max-width: 820px) { .up-perks.ongate { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .up-perks { grid-template-columns: 1fr; } }
.up-launch { margin: 0 0 10px; text-align: center; font: 600 14px var(--font); color: #B42318; }
.up-launch b { font: 600 14px ui-monospace, Consolas, monospace; color: #141414; background: #FFE3DE; padding: 2px 8px; border-radius: 6px ; margin-left: 4px; }
[data-theme="dark"] .up-launch b { background: #3a1510; color: #fff; }
.up-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.up-plan { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 18px 10px 12px; border-radius: 10px ; background: var(--panel); border: 1px solid var(--edge); text-align: center; transition: transform .12s ease, border-color .12s ease; }
.up-plan:hover { transform: translateY(-2px); border-color: var(--text-3); }
.up-plan.on { border-color: var(--edge-2); box-shadow: none; background: linear-gradient(180deg, #FFF8D6, #FFE79A); }
[data-theme="dark"] .up-plan.on { background: #2b2410; border-color: var(--yellow); box-shadow: none; }
.up-plan > i { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); padding: 2px 9px; border-radius: 10px ; background: var(--ink); color: var(--yellow); font: 600 12px var(--font); font-style: normal; white-space: nowrap; }
.up-plan > i.hot { background: #D92D20; color: #fff; }
.up-plan > b { font-size: 14px; color: var(--text); }
.up-price s { display: block; font-size: 12px; color: var(--text-3); } .up-price strong { font: 600 20px var(--font-display); color: var(--text); }
.up-plan em { font-style: normal; font-size: 12px; color: var(--text-3); font-weight: 600; }
.up-plan.on em { color: #5b4a00; } [data-theme="dark"] .up-plan.on em { color: var(--yellow); }
@media (max-width: 520px) { .up-plans { grid-template-columns: 1fr; } }
.up-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 18px; }
.up-go { min-width: 300px; padding: 14px 24px !important; font-size: 16px !important; }
.up-sec { display: flex; gap: 8px; align-items: center; color: var(--text-3); font-size: 14px; }
.up-sec button { color: var(--text-3); font-weight: 600; font-size: 14px; padding: 4px 6px; border-radius: 6px ; } .up-sec button:hover { color: var(--text); background: var(--hover); }
.up-trust { margin: 10px 0 0; text-align: center; font-size: 12px; color: var(--text-3); }

.up-strip { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 16px; padding: 9px 12px; border-radius: 10px ; background: var(--panel-2); border: 1px dashed var(--line-2); font: 600 12px var(--font); color: var(--text-2); }
.up-strip b { padding: 3px 10px; border-radius: 10px ; background: var(--ink); color: var(--yellow); font-size: 12px; }
.up-strip:hover { border-style: solid; color: var(--text); }

.up-recap { max-width: 640px; margin: 0 auto 16px; padding: 14px 16px 12px; border-radius: 10px ; background: var(--panel-2); border: 1px solid var(--line-2); text-align: center; }
.up-recap > b { font-size: 14px; } .up-recap > span { display: block; font-size: 14px; color: var(--text-2); font-weight: 600; }
.up-recap .up-tiles { margin: 10px 0; } .up-recap .up-tile { background: var(--panel-solid); }

.up-planline { margin-top: 8px; max-width: 420px; }
.up-planline > div { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; } .up-planline span { color: var(--text-3); font-weight: 600; }
.up-planline i { display: block; height: 8px; margin-top: 6px; border-radius: 6px ; background: var(--line-2); overflow: hidden; }
.up-planline u { display: block; height: 100%; border-radius: 6px ; background: var(--ink); } [data-theme="dark"] .up-planline u { background: var(--yellow); }
.up-planline i.low u { background: #F79009; }


:root { --ios: cubic-bezier(.32, .72, 0, 1); --ease-out: var(--ios); --ios-spring: cubic-bezier(.34, 1.4, .64, 1); }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, a, [role="button"], .line, .w { -webkit-tap-highlight-color: transparent; }

#transcript, .chat, .dp-chat, .dp-test, .gd-main, .pop-scroll, .drawer-body, .words-list, .dict-body { overscroll-behavior: contain; }


#bigSentence.swap { animation: sent-in .42s var(--ios) both; will-change: transform, opacity; }
#bigSentence.swap[data-dir="next"] { animation-name: sent-next; }
#bigSentence.swap[data-dir="prev"] { animation-name: sent-prev; }
@keyframes sent-next { from { opacity: 0; transform: translate3d(28px, 0, 0); } }
@keyframes sent-prev { from { opacity: 0; transform: translate3d(-28px, 0, 0); } }
#bigTranslation.swap { animation: tr-in .5s var(--ios) .05s both; }
@keyframes tr-in { from { opacity: 0; transform: translate3d(0, 6px, 0); } }


.chip, .tool, .icon-btn, .round-btn, .rec-btn, .btn-grad, .mode-tabs button, .seg button, .dict-play, .sh-chip, .tabs button, .nav-btn {
  transition-property: transform, box-shadow, background-color, border-color, color, opacity;
  transition-duration: .34s; transition-timing-function: var(--ios-spring);
}
.chip:active, .tool:active, .icon-btn:active, .mode-tabs button:active, .seg button:active, .sh-chip:active, .tabs button:active, .nav-btn:active { transform: scale(.95); transition-duration: .07s; }
.round-btn:active, .rec-btn:active, .btn-grad:active, .dict-play:active { transition-duration: .07s; }


.score:not(.leaving) { animation: ios-rise .46s var(--ios) both; }
.dict-result:not(:empty) { animation: ios-rise .36s var(--ios) both; }
#dictSlots:not(:empty) { animation: ios-fade .3s var(--ios) both; }
@keyframes ios-rise { from { opacity: 0; transform: translate3d(0, 12px, 0) scale(.985); } }
@keyframes ios-fade { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  #bigSentence.swap, #bigTranslation.swap, .score:not(.leaving), .dict-result:not(:empty), #dictSlots:not(:empty) { animation: none !important; }
  .chip:active, .tool:active, .icon-btn:active, .mode-tabs button:active, .seg button:active, .sh-chip:active, .tabs button:active, .nav-btn:active { transform: none; }
}


.coach-card { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; padding: 14px 16px; border-radius: 10px ; border: 1px solid var(--edge);
  background: linear-gradient(135deg, #FFF6CF 0%, var(--panel-solid) 62%); box-shadow: var(--lift); animation: ios-rise .5s var(--ios) both; }
[data-theme="dark"] .coach-card { background: linear-gradient(135deg, #2a2408 0%, var(--panel-solid) 62%); border-color: var(--yellow); box-shadow: none; }
.cc-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font: inherit; }
.cc-ring { flex: none; display: grid; place-items: center; }
.ring-bg { fill: none; stroke: var(--line-2); stroke-width: 6; }
.ring-fg { fill: none; stroke: var(--yellow); stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset .7s var(--ios); filter: drop-shadow(var(--lift)); }
.ring-txt { font: 600 14px var(--font-display, var(--font)); fill: var(--text); }
.cc-txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cc-kicker { font: 600 12px var(--font); letter-spacing: .3px; color: var(--text-3); text-transform: uppercase; }
.cc-head { font: 600 16px var(--font-display, var(--font)); line-height: 1.3; color: var(--text); overflow-wrap: anywhere; }
.cc-steps { display: flex; gap: 6px; margin-top: 2px; }
.cc-steps i { width: 26px; height: 26px; border-radius: 6px ; display: grid; place-items: center; font-style: normal; font-size: 14px; border: 1px solid var(--edge); background: var(--panel); transition: transform .3s var(--ios-spring), background-color .3s, border-color .3s; }
.cc-steps i.ok { background: #DCFCE7; border-color: #16A34A; color: #14532D; font-weight: 600; }
.cc-steps i.now { border-color: var(--edge-2); background: var(--yellow); transform: scale(1.08); }
.cc-go { flex: none; white-space: nowrap; }
.cc-skel { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.cc-skel i { display: block; height: 14px; border-radius: 6px ; background: linear-gradient(90deg, #f3eedd 25%, #fbf8ee 50%, #f3eedd 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.cc-skel i:first-child { width: 40%; } .cc-skel i:last-child { width: 75%; }
@media (max-width: 640px) { .coach-card { flex-wrap: wrap; } .cc-go { width: 100%; } }


.cs-back { position: fixed; inset: 0; z-index: 80; background: rgba(20, 16, 0, .38); opacity: 0; transition: opacity .38s var(--ios); }
.cs-back.open { opacity: 1; }
.cs-sheet { position: fixed; left: 50%; bottom: 0; z-index: 81; width: min(760px, calc(100vw - 24px)); max-height: 88vh; display: flex; flex-direction: column;
  margin-left: calc(min(760px, calc(100vw - 24px)) / -2); border-radius: 10px 10px 0 0 ; background: var(--panel-solid); border: 1px solid var(--edge); border-bottom: 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .18); transform: translate3d(0, 104%, 0); transition: transform .48s var(--ios); will-change: transform; }
.cs-sheet.open { transform: translate3d(0, 0, 0); }
.cs-sheet.dragging { transition: none; }
[data-theme="dark"] .cs-sheet { border-color: var(--yellow); }
.cs-grab { display: grid; place-items: center; padding: 9px 0 2px; cursor: grab; touch-action: none; }
.cs-grab i { width: 44px; height: 5px; border-radius: 3px ; background: var(--line-2); }
.cs-head { display: flex; align-items: center; gap: 12px; padding: 6px 18px 12px; border-bottom: 1px solid var(--line); touch-action: none; cursor: grab; }
.cs-ht { flex: 1; display: flex; flex-direction: column; }
.cs-ht b { font: 600 20px var(--font-display, var(--font)); }
.cs-ht span { font-size: 14px; color: var(--text-3); font-weight: 600; }
.cs-body { overflow-y: auto; overscroll-behavior: contain; padding: 14px 18px 22px; display: flex; flex-direction: column; gap: 16px; }
.cs-body h4 { margin: 0 0 8px; font: 600 14px var(--font); letter-spacing: .4px; text-transform: uppercase; color: var(--text-3); }
.cs-sheet.open .cs-body > * { animation: ios-rise .5s var(--ios) both; }
.cs-sheet.open .cs-body > :nth-child(2) { animation-delay: .04s; } .cs-sheet.open .cs-body > :nth-child(3) { animation-delay: .08s; } .cs-sheet.open .cs-body > :nth-child(4) { animation-delay: .12s; }

.cs-note { padding: 14px 16px; border-radius: 10px ; background: #FFF8DB; border: 1px solid var(--edge); }
[data-theme="dark"] .cs-note { background: #221d08; border-color: var(--yellow); }
.cs-note.cs-swap { animation: ios-rise .45s var(--ios) both; }
.cs-note h3 { margin: 6px 0 10px; font: 600 16px var(--font-display, var(--font)); line-height: 1.35; }
.cs-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font: 600 12px var(--font); background: var(--panel); border: 1px solid var(--edge); color: var(--text-2); }
.cs-badge.ai { background: #EDE9FE; border-color: #7C3AED; color: #4C1D95; }
.cs-badge.busy { animation: cs-breathe 1.6s ease-in-out infinite; }
@keyframes cs-breathe { 50% { opacity: .55; } }
.cs-tip { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; }
.cs-tip p { margin: 0 0 4px; font-size: 14px; line-height: 21px; }
.cs-snd { flex: none; min-width: 44px; padding: 3px 8px; border-radius: 10px ; text-align: center; font: 600 14px var(--font); background: var(--yellow); border: 1px solid var(--edge); color: var(--ink); }
.cs-ex { display: inline-flex; gap: 6px; align-items: center; padding: 4px 10px; border-radius: 10px ; border: 1.5px dashed var(--line-2); background: var(--panel); color: var(--text); font: 600 14px var(--font); cursor: pointer; }
.cs-ex:hover { border-color: var(--edge-2); }
.cs-mot { margin: 10px 0 0; font-size: 14px; color: var(--text-2); font-weight: 600; }
.cs-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.cs-sum div { padding: 10px; border-radius: 10px ; background: var(--panel); border: 1px solid var(--edge); display: flex; flex-direction: column; }
.cs-sum b { font: 600 20px var(--font-display, var(--font)); } .cs-sum span { font-size: 12px; color: var(--text-3); font-weight: 600; }

.cs-step { display: grid; grid-template-columns: 38px 1fr auto auto; align-items: center; gap: 10px; padding: 11px 12px; margin-bottom: 8px; border-radius: 10px ;
  border: 1px solid var(--edge); background: var(--panel); transition: border-color .25s, background-color .25s, transform .3s var(--ios-spring); animation: ios-rise .42s var(--ios) both; animation-delay: calc(var(--i) * 45ms); }
.cs-step.next { border-color: var(--edge-2); background: #FFFBEA; box-shadow: none; }
[data-theme="dark"] .cs-step.next { background: #221d08; border-color: var(--yellow); box-shadow: none; }
.cs-step.done { opacity: .72; }
.cs-step.done .cs-st b { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: rgba(22, 163, 74, .6); }
.cs-ic { width: 38px; height: 38px; border-radius: 10px ; display: grid; place-items: center; font-size: 16px; background: var(--panel-solid); border: 1px solid var(--edge); }
.cs-step.done .cs-ic { background: #DCFCE7; border-color: #16A34A; color: #14532D; font-weight: 600; }
.cs-st { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cs-st b { font: 600 14px var(--font); } .cs-st b em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--text-3); border: 1px solid var(--line-2); border-radius: 6px ; padding: 0 5px; }
.cs-st span { font-size: 14px; color: var(--text-2); line-height: 20px; }
.cs-st .cs-hint { color: #7C3AED; font-weight: 600; font-size: 12px; }
.cs-min { font: 600 12px var(--font); color: var(--text-3); }
.cs-ok { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #16A34A; color: #fff; font-weight: 600; animation: cs-pop .45s var(--ios-spring) both; }
@keyframes cs-pop { from { transform: scale(.4); opacity: 0; } }
@media (max-width: 560px) { .cs-step { grid-template-columns: 34px 1fr auto; } .cs-min { display: none; } }

.cs-bar { display: grid; grid-template-columns: 50px 1fr 44px; align-items: center; gap: 10px; margin: 6px 0; }
.cs-track { height: 10px; border-radius: 8px; background: var(--line); overflow: hidden; }
.cs-track i { display: block; height: 100%; width: var(--w); border-radius: 6px ; background: linear-gradient(90deg, #F59E0B, #EF4444); transform-origin: left; animation: cs-grow .8s var(--ios) both; }
@keyframes cs-grow { from { transform: scaleX(0); } }
.cs-bar b { font: 600 14px var(--font); text-align: right; }
.cs-words { grid-column: 2 / 4; display: flex; flex-wrap: wrap; gap: 4px; margin-top: -2px; }
.cs-words button, .cs-wchip { padding: 2px 9px; border-radius: 10px ; border: 1px solid var(--edge); background: var(--panel); font: 600 12px var(--font); color: var(--text); cursor: pointer; }
.cs-words button:hover, .cs-wchip:hover { border-color: var(--edge-2); background: #FFF6CC; }
.cs-wchip small { color: #DC2626; font-weight: 600; }
.cs-wrow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.cs-empty { margin: 0; font-size: 14px; color: var(--text-2); }
.cs-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.cs-kpis div { padding: 10px 12px; border-radius: 10px ; background: var(--panel); border: 1px solid var(--edge); display: flex; flex-direction: column; gap: 4px; }
.cs-kpis span { font-size: 12px; color: var(--text-3); font-weight: 600; } .cs-kpis b { font: 600 16px var(--font-display, var(--font)); }
.cs-kpis em { font-style: normal; font-size: 12px; } .cs-kpis em.up { color: #16A34A; } .cs-kpis em.down { color: #DC2626; }
.cs-dots { display: flex; gap: 4px; align-items: center; height: 22px; }
.cs-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--line); } .cs-dots i.some { background: #FCD34D; } .cs-dots i.full { background: #16A34A; }
@media (max-width: 560px) { .cs-kpis { grid-template-columns: 1fr 1fr; } }

.cs-trace { border-radius: 10px ; border: 1.5px dashed var(--line-2); padding: 8px 12px; }
.cs-trace summary { cursor: pointer; font: 600 14px var(--font); color: var(--text-2); list-style: none; }
.cs-trace summary::-webkit-details-marker { display: none; }
.cs-trace summary small { color: var(--text-3); margin-left: 6px; }
.cs-trace ol { list-style: none; margin: 8px 0 2px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cs-trace li { display: grid; grid-template-columns: 24px auto 1fr auto; gap: 8px; align-items: baseline; font-size: 14px; }
.cs-trace li b { font-weight: 600; } .cs-trace li em { font-style: normal; color: var(--text-3); } .cs-trace li small { color: var(--text-3); font-variant-numeric: tabular-nums; }
.cs-trace li.bad b { color: #DC2626; }
.cs-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; }
.cs-priv { font-size: 12px; color: var(--text-3); font-weight: 600; }
#heroForm.coach-pulse { animation: coach-pulse 1.2s var(--ios) 2; }
@keyframes coach-pulse { 30% { box-shadow: 0 0 0 6px rgba(255, 196, 0, .55); } }

@media (prefers-reduced-motion: reduce) {
  .coach-card, .cs-step, .cs-sheet.open .cs-body > *, .cs-note.cs-swap, .cs-track i, .cs-ok, #heroForm.coach-pulse { animation: none !important; }
  .cs-sheet, .cs-back, .ring-fg { transition: none !important; }
}


.ch-banner { position: fixed; top: 12px; left: 50%; z-index: 95; width: min(560px, calc(100vw - 24px)); display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 12px; border-radius: 10px ; border: 1px solid var(--edge); box-shadow: none;
  background: rgba(255, 251, 234, .88); -webkit-backdrop-filter: none; backdrop-filter: none;
  transform: translate3d(-50%, calc(-100% - 24px), 0); opacity: 0; touch-action: none; user-select: none;
  transition: transform .5s var(--ios), opacity .3s var(--ios); will-change: transform; }
.ch-banner.show { transform: translate3d(-50%, 0, 0); opacity: 1; }
.ch-banner.dragging { transition: none; }
[data-theme="dark"] .ch-banner { background: rgba(32, 28, 10, .86); border-color: var(--yellow); box-shadow: none; }
.ch-ic { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 600 16px var(--font); color: #fff; background: #16A34A;
  box-shadow: none; animation: ch-pop .5s var(--ios-spring) .15s both; }
@keyframes ch-pop { from { transform: scale(.3); opacity: 0; } }
.ch-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ch-t b { font: 600 14px var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-t span { font-size: 12px; color: var(--text-2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-t em { font-style: normal; font-size: 12px; padding: 1px 7px; border-radius: 6px ; margin-left: 4px; background: var(--yellow); border: 1px solid var(--edge); }
.ch-t em.up { background: #DCFCE7; border-color: #16A34A; color: #14532D; }
.ch-go { flex: none; }
.ch-x { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--text-3); font-size: 14px; }
.ch-x:hover { background: var(--hover); color: var(--text); }

.cs-prog { margin: 4px 0 12px; padding: 12px 14px; border-radius: 10px ; border: 1px solid var(--edge); background: var(--panel-solid); display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center;
  animation: ios-rise .5s var(--ios) both; }
.cs-prog > p { grid-column: 1 / -1; margin: 2px 0 0; font-weight: 600; font-size: 14px; }
.cs-prog.up > p { color: #15803D; } .cs-prog.down > p { color: var(--text-2); }
.cs-pbars { display: flex; flex-direction: column; gap: 6px; }
.cs-pbars > div { display: grid; grid-template-columns: 1fr 44px; grid-template-rows: auto 10px; column-gap: 10px; align-items: center; }
.cs-pbars span { grid-column: 1 / -1; font-size: 12px; font-weight: 600; color: var(--text-3); }
.cs-pbars i { display: block; height: 10px; border-radius: 6px ; width: var(--w); min-width: 4px; background: var(--line-2); transform-origin: left; animation: cs-grow .9s var(--ios) both; }
.cs-pbars .now i { background: linear-gradient(90deg, #FACC15, #16A34A); animation-delay: .25s; }
.cs-pbars b { font: 600 14px var(--font); text-align: right; }
.cs-prog.down .cs-pbars .now i { background: linear-gradient(90deg, #FACC15, #F59E0B); }

@media (prefers-reduced-motion: reduce) {
  .ch-banner { transition: opacity .15s linear; } .ch-ic, .cs-prog, .cs-pbars i { animation: none !important; }
}


.cs-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: -2px 0 12px; padding: 0 2px; }
.cs-picks.note { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: 10px ; background: var(--panel); border: 1.5px dashed var(--line-2); font-weight: 600; font-size: 14px; color: var(--text-2); }
.cs-pick { display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 10px ; border: 1px solid var(--edge); background: var(--panel-solid); text-align: left; cursor: pointer;
  animation: ios-rise .45s var(--ios) both; animation-delay: calc(var(--i, 0) * 70ms); }
.cs-pick:hover { border-color: var(--edge-2); box-shadow: none; }
.cs-pick:first-child { border-color: var(--edge-2); box-shadow: none; }
.cs-pt { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px ; overflow: hidden; background: #111; }
.cs-pt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-pt em { position: absolute; right: 6px; bottom: 6px; font: 600 12px var(--font); font-style: normal; color: #fff; background: rgba(0,0,0,.72); padding: 1px 6px; border-radius: 6px ; }
.cs-plv { position: absolute; left: 6px; top: 6px; font: 600 12px var(--font); font-style: normal; color: var(--ink); background: var(--yellow); border: 1px solid var(--edge); padding: 0 7px; border-radius: 6px ; }
.cs-pi { display: flex; flex-direction: column; gap: 2px; padding: 0 4px 2px; min-width: 0; }
.cs-pi b { font: 600 14px var(--font); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cs-pi small { font-size: 12px; font-weight: 600; color: var(--text-3); }
.cs-more { grid-column: 1 / -1; justify-self: start; }
.cs-spin { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--edge); border-top-color: var(--ink); animation: cs-spin .8s linear infinite; flex: none; }
@keyframes cs-spin { to { transform: rotate(360deg); } }
@media (max-width: 720px) { .cs-picks { grid-template-columns: 1fr; } }
.ch-banner.nudge .ch-ic { background: var(--yellow); color: var(--ink); font-size: 16px; }
.ch-banner .ch-t span.wrap { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (prefers-reduced-motion: reduce) { .cs-pick { animation: none !important; } .cs-spin { animation-duration: 2s; } }



.btn-2, body:has(#coachCard .cc-main) #thGo, body:has(#coachCard .cc-main) #heroGo, #wotdGet {
  background: var(--panel-solid) !important; color: var(--ink) !important; border: 1px solid var(--edge); box-shadow: none; filter: none; }
.btn-2:hover, body:has(#coachCard .cc-main) #thGo:hover, body:has(#coachCard .cc-main) #heroGo:hover, #wotdGet:hover { background: #FFF6CC !important; }
[data-theme="dark"] .btn-2, [data-theme="dark"] body:has(#coachCard .cc-main) #thGo, [data-theme="dark"] body:has(#coachCard .cc-main) #heroGo, [data-theme="dark"] #wotdGet {
  color: var(--text) !important; border-color: var(--yellow); box-shadow: none; }
[data-theme="dark"] .btn-2:hover, [data-theme="dark"] body:has(#coachCard .cc-main) #thGo:hover, [data-theme="dark"] body:has(#coachCard .cc-main) #heroGo:hover, [data-theme="dark"] #wotdGet:hover { background: #2a2410 !important; }
body:has(#coachCard .cc-main) #thGo { font-size: 14px; padding: 11px 20px; }

#coachCard .cc-go { font-size: 16px; padding: 12px 22px; }

.hero-help { padding: 6px 10px; border-radius: 6px ; }
#refetchTx { display: inline-grid; place-items: center; min-width: 28px; min-height: 28px; border-radius: 6px ; }
#refetchTx:hover { background: var(--hover); }

.sp-src.has-ind > button.on, .sp-src.has-ind > button.on:hover { color: var(--yellow) !important; } 
[data-theme="dark"] .sp-src.has-ind > button.on, [data-theme="dark"] .sp-src.has-ind > button.on:hover { color: #1a1505 !important; }
[data-theme="dark"] .launch-bar span { color: #FDA29B; }
[data-theme="dark"] .launch-bar small { color: #F4C7C0; }
[data-theme="dark"] .pay-launch { color: #FF9C8F; }
.cs-kpis em.up { color: #15803D; } [data-theme="dark"] .cs-kpis em.up { color: #4ADE80; }
[data-theme="dark"] .cs-wchip small { color: #D6CFB5; }

.cs-words button, .cs-wchip { min-height: 32px; }
.pay-mail { min-height: 28px; padding-top: 4px; padding-bottom: 4px; }


@media (max-height: 820px) {
  #practice .sentence-big { font-size: 20px; line-height: 28px; }
  #practice .sentence-tr { font-size: 14px; }
  #practice .mode-tabs button small { display: none; }
  #practice .mode-tabs button { padding-top: 6px; padding-bottom: 6px; }
  #practice .sentence-wrap { padding: 4px 0 0 !important; }
}
@media (max-height: 700px) {
  #practice { padding: 8px 14px 8px !important; }
  #practice .sentence-big { font-size: 20px; line-height: 28px; }
  #practice .sentence-tr { font-size: 14px; }
  #practice .rb-lbl { display: none; }                    
  #practice .main-row { margin: 6px 0 6px !important; gap: 12px; }
  #practice .round-btn { width: 48px; height: 48px; }
  #practice .rec-btn { padding: 10px 26px; font-size: 16px; }
  #practice .turn { height: 28px !important; margin: 4px 0 0 !important; font-size: 14px; }
  #practice .tools-row .tool { height: 34px; }
  #practice .practice-top { row-gap: 4px; }
  #practice .dictation { gap: 6px !important; margin-top: 4px !important; }
  #practice .dictation #dictInput { padding: 8px 12px; font-size: 14px; }
  #practice .slot { height: 26px; }
  #practice .dict-play { width: 40px; height: 40px; font-size: 16px; }
}

#rightTabs button { white-space: nowrap; min-width: 0; flex: 1 1 auto; }
@media (max-width: 1240px) { #rightTabs { gap: 2px; padding-left: 6px; padding-right: 6px; } #rightTabs button { flex: 1 1 auto; font-size: 12px; padding-left: 6px; padding-right: 6px; overflow: hidden; text-overflow: ellipsis; } }



.progress-line div, #vidProgress { width: 100% !important; transform: scaleX(0); transform-origin: left center; transition: transform .25s linear; will-change: transform; }

.unit-progress i.cur { position: relative; overflow: hidden; background: var(--yellow); animation: none; isolation: isolate; }
.unit-progress i.cur::after { content: ""; position: absolute; top: 0; bottom: 0; left: -34px; right: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(45deg, var(--yellow), var(--yellow) 6px, #FFE88A 6px, #FFE88A 12px); background-size: 34px 34px;
  animation: stripes-x 1s linear infinite; will-change: transform; }
@keyframes stripes-x { to { transform: translateX(34px); } }

.brand-tag { animation: tag-in2 .7s cubic-bezier(.2,.85,.25,1) .6s both, tag-shine 3.6s ease-in-out 1.6s 3; }
.brand:hover .brand-tag { animation: tag-shine 1.2s ease-in-out both; }
@keyframes tag-in2 { from { opacity: 0; transform: translateY(4px) scaleX(1.25); } to { opacity: 1; transform: none; } }

.modal-back { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: rgba(8,8,14,.58); }
[data-theme="light"] .modal-back, :root:not([data-theme="dark"]) .modal-back { background: rgba(26,20,0,.5); }
@media (prefers-reduced-motion: reduce) { .unit-progress i.cur::after { animation: none; } }

.vl-badge.lv-A1 b, .vl-badge.lv-A2 b { background: #15803d; } .vl-badge.lv-B1 b, .vl-badge.lv-B2 b { background: #b45309; } .vl-badge.lv-C1 b, .vl-badge.lv-C2 b { background: #b91c1c; }
.vl-auto.on { color: #166534; border-color: #166534; }
[data-theme="dark"] .vl-auto.on { color: #4ade80; border-color: #4ade80; background: rgba(74,222,128,.1); }
.boost-pill { background: #c2410c; }
.dict-tg { opacity: 1; color: var(--text-2); border-style: dashed; }
.dict-tg.on { border-style: solid; }
.vl-chip { padding: 4px 10px; min-height: 32px; }
#dpWeb.link-btn, .dp-foot .link-btn { padding: 5px 6px; min-height: 32px; }
input[type="range"] { min-height: 24px; }
.dp-bi { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; cursor: pointer; }
.dp-bi input { width: 24px; height: 24px; margin: 0; } .dp-bi { padding: 0 2px; }


.quickprefs { display: flex; align-items: center; gap: 2px; padding: 3px; margin-left: 6px; border-radius: 10px ; background: var(--panel-2); border: 1px solid var(--edge); }
.qp-btn { height: 32px; min-width: 32px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 8px; border-radius: 6px ; color: var(--text-2); font: 600 12px var(--font); letter-spacing: .3px; transition: background-color .15s, color .15s, transform .25s var(--spring, cubic-bezier(.34,1.56,.64,1)); }
.qp-btn:hover { background: var(--hover); color: var(--text); }
.qp-btn:active { transform: scale(.92); }
.qp-btn svg { width: 20px; height: 20px; flex: none; }
.qp-lang b { min-width: 18px; text-align: left; }
.qp-lang[aria-expanded="true"] { background: var(--yellow); color: var(--ink); }

.qp-theme { position: relative; width: 34px; padding: 0; }
.qp-theme svg { position: absolute; transition: transform .45s var(--spring, cubic-bezier(.34,1.56,.64,1)), opacity .2s ease; }
.qp-theme[data-th="light"] .ic-sun, .qp-theme:not([data-th]) .ic-sun { opacity: 0; transform: rotate(-90deg) scale(.4); }
.qp-theme[data-th="light"] .ic-moon, .qp-theme:not([data-th]) .ic-moon { opacity: 1; transform: none; }
.qp-theme[data-th="dark"] .ic-moon { opacity: 0; transform: rotate(90deg) scale(.4); }
.qp-theme[data-th="dark"] .ic-sun { opacity: 1; transform: none; color: #FFC93E; }

.lang-menu { position: fixed; z-index: 120; width: 236px; max-height: min(70vh, 560px); overflow-y: auto; padding: 6px; border-radius: 10px ; background: var(--panel-solid); border: 1px solid var(--edge); box-shadow: 0 2px 6px rgba(0,0,0,.08), 0 18px 44px -12px rgba(0,0,0,.35); transform-origin: top right; animation: lm-in .22s cubic-bezier(.32,.72,0,1) both; overscroll-behavior: contain; }
.lang-menu.leaving { animation: lm-out .14s ease-in both; pointer-events: none; }
@keyframes lm-in { from { opacity: 0; transform: translateY(-6px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes lm-out { to { opacity: 0; transform: translateY(-4px) scale(.98); } }
.lm-h { padding: 6px 10px 6px; font: 600 12px var(--font); letter-spacing: .6px; text-transform: uppercase; color: var(--text-3); }
.lang-menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 6px; }
.lang-menu button { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 32px; padding: 4px 10px; border-radius: 6px ; text-align: left; font: 600 14px var(--font); color: var(--text); }
.lang-menu button:hover, .lang-menu button:focus-visible { background: var(--hover); outline: none; }
.lang-menu button.on { background: var(--yellow); color: var(--ink); }
.lm-code { width: 26px; height: 22px; display: grid; place-items: center; border-radius: 6px ; background: var(--panel-2); font: 600 12px var(--font); color: var(--text-2); flex: none; }
.lang-menu button.on .lm-code { background: rgba(0,0,0,.12); color: var(--ink); }
.lm-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lang-menu button i { font-style: normal; font-weight: 600; }

html[data-vt-theme]::view-transition-old(root), html[data-vt-theme]::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html[data-vt-theme]::view-transition-old(root) { z-index: 1; } html[data-vt-theme]::view-transition-new(root) { z-index: 2; }
@media (max-width: 760px) { .qp-lang b { display: none; } .qp-lang { width: 34px; padding: 0; } }



html.theme-flip *, html.theme-flip *::before, html.theme-flip *::after { transition: none !important; }

.hud { position: relative; }
.hud .badge { top: -6px; right: -6px; }

#home .home-wrap { transition: none; }
section.left > .player-wrap:not(.floating):not(.novideo) { transition: none; }

.omni-wrap { margin: 2px 0 18px; }
.omni-wrap .hero-url.omni { margin: 0 auto; }
.hero.compact + .omni-wrap { margin-top: 0; }

.mascot .eyes { animation-iteration-count: 3; }
.mascot .waves path { animation-iteration-count: 3; }
.brand.talk .mascot .waves path { animation: m-waves 1.2s ease-in-out 1; }
.hero-logo.mascot { animation: m-pop .7s cubic-bezier(.3,1.5,.5,1) both, float 6s ease-in-out .7s 3; }
.voice-bars i { animation-iteration-count: 5; animation-fill-mode: forwards; }
.surprise .s-ic { animation-iteration-count: 3; }
.j-node.current { animation-iteration-count: 6; }
.j-chest.ready { animation-iteration-count: 5; }
.cefr-test.glow { animation-iteration-count: 5; }
.th-chip.hot { animation: none; }
@media (prefers-reduced-motion: reduce) { .voice-bars i { animation: none; transform: scaleY(.7); } }

.w { margin: 0 -2px; }

.omni-wrap { position: sticky; top: 10px; z-index: 6; pointer-events: none; }
.omni-wrap > * { pointer-events: auto; }
#discover { scroll-margin-top: 96px; }
.brand.settled:not(.talk) .brand-name .ch, .brand.settled:not(.talk) .brand-logo.mascot, .brand.settled:not(.talk) .brand-tag { animation: none; }

.omni-wrap.stuck::before { content: ""; position: absolute; z-index: -1; left: 50%; width: 100vw; transform: translateX(-50%); top: -60px; bottom: -8px; background: var(--bg); box-shadow: none; pointer-events: none; }
[data-theme="dark"] .ai-set .pill.free { background: rgba(34,197,94,.16); color: #86efac !important; border-color: rgba(134,239,172,.45); }

.lm-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; margin: 2px 2px 4px; border-radius: 10px ; background: var(--panel-2); }
.lang-menu .lm-tabs button { justify-content: center; min-height: 32px; font-size: 12px; color: var(--text-2); }
.lang-menu .lm-tabs button.on { background: var(--panel-solid); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.14); }
.lm-hint { padding: 2px 10px 6px; font: 500 12px/16px var(--font); color: var(--text-3); }
.lang-menu { width: 252px; }
.qp-lang b small { font-size: 12px; font-weight: 600; margin-left: 2px; opacity: .75; }

.tq-ic { width: 18px; height: 18px; display: block; flex: none; }
.tq-kinds { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.tq-kind i { display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 3px; border-radius: 6px ; background: var(--panel-2); color: var(--text); }
.tq-kind.on i { background: rgba(0,0,0,.1); color: var(--ink); }
.tq-kind i .tq-ic { width: 17px; height: 17px; }
.tq-mode button { display: inline-flex; align-items: center; gap: 5px; }
.tq-mode button .tq-ic { width: 14px; height: 14px; }
.tq-show { display: inline-grid; place-items: center; }
.tq-show .tq-ic { width: 16px; height: 16px; }
.tq-say { display: inline-grid; place-items: center; color: var(--ink); }
.tq-say .tq-ic { width: 16px; height: 16px; }
.tq-say.slow { width: auto; padding: 0 7px; font: 600 12px var(--font); color: var(--text-2); }
.tw-say { display: inline-grid; place-items: center; color: var(--text-2); }
.tw-say .tq-ic { width: 15px; height: 15px; }
.xp-btn.icon .tq-ic { width: 17px; height: 17px; }
.tq-chunks { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.tq-chunk { min-height: 30px; padding: 3px 11px; border-radius: 6px ; border: 1px solid var(--edge); background: var(--panel); font: 600 14px var(--font); color: var(--text); transition: transform .12s, opacity .15s, background-color .15s; }
.tq-chunk:not(:disabled):hover { border-color: var(--edge-2); transform: translateY(-1px); }
.tq-chunk.used { opacity: .35; }
.tq-chunk.clear { min-width: 30px; padding: 0 8px; color: var(--text-3); border-style: dashed; }
.tq-dict .tq-t.gap { display: flex; align-items: center; gap: 4px; }
.tq-keyall { margin: 10px 0; padding: 12px 14px; border-radius: 10px ; border: 1px solid var(--edge); background: var(--panel); }
.tq-keyall h4 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px; font: 600 14px var(--font-display); }
.tq-keyall h4 small { font: 500 12px var(--font); color: var(--text-3); }
.tq-keygrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 12px; font-size: 12px; }
.tq-keygrid div { display: flex; gap: 6px; min-width: 0; padding: 3px 0; border-bottom: 1px dashed var(--line); }
.tq-keygrid b { flex: none; min-width: 22px; color: var(--text-3); }
.tq-keygrid span { min-width: 0; overflow-wrap: anywhere; }
.tq-cover h3 { overflow-wrap: anywhere; }
.tq-top { grid-template-columns: 1fr auto auto auto; grid-template-areas: "ttl key exp new" "mode score score score"; }
.tq-top [data-keyall] { grid-area: key; } .tq-top > .xp-wrap { grid-area: exp; }

.ic { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -.2em; }
.nav-btn .ic { width: 20px; height: 20px; }
.nav-btn { color: var(--text-2); } .nav-btn:hover { color: var(--text); }
.hero-url-ic .ic { width: 16px; height: 16px; }
.mode-tabs button i { display: grid; place-items: center; }
.mode-tabs button i .ic { width: 20px; height: 20px; }
.tool .ic { width: 16px; height: 16px; }
.tools-row .tool .ic { width: 20px; height: 20px; }
#panelBtn { display: inline-flex; align-items: center; gap: 6px; }
#panelBtn .ic { width: 16px; height: 16px; }
.chip > .ic:first-child { margin-right: 2px; }
.dp-seg button, .dp-modes button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.dp-seg button .ic, .dp-modes button .ic { width: 16px; height: 16px; }
#dpMic .ic, .dp-input .btn-grad .ic { width: 20px; height: 20px; }
.dp-input .btn-grad { display: inline-grid; place-items: center; }
#dpScore { display: inline-flex; align-items: center; gap: 5px; } #dpScore .ic { width: 16px; height: 16px; }
.vl-badge { display: inline-flex; align-items: center; gap: 5px; } .vl-badge .ic { width: 16px; height: 16px; }
.dict-play { display: grid; place-items: center; color: var(--ink); } .dict-play .ic { width: 24px; height: 24px; }
.dict-h h3 { display: inline-flex; align-items: center; gap: 8px; } .dict-h h3 .ic { width: 20px; height: 20px; }
.hero-help .ic, .omni-drop .ic { width: 16px; height: 16px; margin-right: 4px; }
.chip { gap: 5px; }
.gd-ti .ic { width: 16px; height: 16px; } .gd-ic .ic { width: 24px; height: 24px; } .gd-ic { display: grid; place-items: center; }
.lang-menu .lm-tabs button { white-space: nowrap; }
[data-theme="light"] .def-tr { color: #0e7490; }

.icon-btn { display: inline-grid; place-items: center; color: var(--text-2); }
.icon-btn:hover { color: var(--text); }
.icon-btn .ic { width: 20px; height: 20px; }
.icon-btn[data-del]:hover { color: #dc2626; }
.chip .ic, .btn .ic, .btn-grad .ic { width: 1.1em; height: 1.1em; }
.cs-ex .ic { width: 16px; height: 16px; margin-right: 4px; }
.qp-btn .ic { width: 20px; height: 20px; }

.tq-kgroup { margin-top: 10px; } .tq-kgroup + .tq-kgroup { margin-top: 8px; }
.tq-kgroup > span { display: block; margin: 0 2px 5px; font: 600 12px var(--font); letter-spacing: .6px; text-transform: uppercase; color: var(--text-3); }
.tq-kgroup .tq-kinds { margin: 0; }
.tq-kinds.four { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.tq-passage { font-size: 14px; line-height: 22px; max-height: 340px; overflow: auto; }
.tq-ctw { padding: 12px 14px; border-radius: 10px ; border: 1px solid var(--edge); background: var(--panel); font-size: 14px; line-height: 33px; }
.tq-ctw .ctw-w { display: inline; padding: 0; border: 0; margin: 0; background: none; white-space: nowrap; }
.tq-ctw .tq-n { position: relative; top: -.55em; margin-right: 2px; padding: 0 4px; height: auto; min-width: 0; font-size: 12px; line-height: 18px; border-radius: 6px ; }
.ctw-in { height: 26px; padding: 0 3px; margin: 0 1px; border: 0; border-bottom: 1px solid var(--edge); border-radius: 6px 6px 0 0 ; background: var(--panel-2); font: 600 14px var(--font); color: var(--text); letter-spacing: .5px; vertical-align: baseline; }
.ctw-in:focus { outline: none; border-bottom-color: var(--ink); background: #FFF6CC; }
[data-theme="dark"] .ctw-in:focus { background: #2a2408; border-bottom-color: var(--yellow); }
.ctw-w.ok .ctw-in { border-bottom-color: #16a34a; color: #15803d; }
.ctw-w.bad .ctw-in, .ctw-w.shown .ctw-in { border-bottom-color: #dc2626; color: #b91c1c; text-decoration: line-through; }
.ctw-why { display: inline; margin-left: 3px; padding: 0 5px; border-radius: 6px ; background: #dcfce7; color: #166534; font: 600 12px var(--font); }
[data-theme="dark"] .ctw-why { background: #14361f; color: #86efac; }
.ctw-w.ok .ctw-why { display: none; }
.tq-speaklist { margin: 6px 0 10px 20px; font-size: 14px; line-height: 24px; }
.tq-speak .btn-grad { display: inline-flex; align-items: center; gap: 6px; }
.tq-ctw .tq-n { display: inline-block; width: auto; }
.tq-ctw .ctw-w.ok, .tq-ctw .ctw-w.bad, .tq-ctw .ctw-w.shown, .tq-ctw .ctw-w.near, .tq-ctw .ctw-w.answered { background: none; border: 0; box-shadow: none; padding: 0; animation: none; }
.modal-h h2 { display: flex; align-items: center; gap: 9px; } .modal-h h2 > .ic { width: 24px; height: 24px; color: var(--text-2); }

.gd-ni { display: grid; place-items: center; } .gd-ni .ic { width: 20px; height: 20px; }
.gd-ti .ic { width: 20px; height: 20px; } .gd-ic .ic { width: 24px; height: 24px; }
.gd-tok { font-style: normal; font-weight: 600; font-size: 12px; }
.gd-inl { width: 1.05em; height: 1.05em; vertical-align: -.17em; margin: 0 1px; color: var(--text); }
.gd-title { display: flex; align-items: center; gap: 10px; }
.gd-ti.big { min-width: 36px; height: 36px; border-radius: 10px ; }
.gd-ti.big .ic { width: 20px; height: 20px; }
.gd-tips div { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.gd-tip-i { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; color: var(--text); }
.gd-tip-i .ic { width: 16px; height: 16px; }
.gd-sep { margin-top: 22px; padding-top: 6px; border-top: 1px dashed var(--line-2); }
.help-grid .gd-inl { margin-right: 4px; }

.vl-top { flex-wrap: wrap; row-gap: 6px; } .vl-sug { flex-wrap: wrap; row-gap: 4px; }

:has(> #continueCard) { container-type: inline-size; }
@container (max-width: 600px) { .th-top { grid-template-columns: 120px 1fr; } .th-go { grid-column: 1 / -1; justify-self: stretch; } }
:has(> #coachCard) { container-type: inline-size; }
@container (max-width: 560px) { .coach-card { flex-wrap: wrap; } .cc-go { width: 100%; } }

.unit-progress { gap: 12px; height: 32px; min-width: 0; }
.unit-progress .up-label { display: inline-flex; align-items: baseline; gap: 4px; margin: 0; font: 600 14px var(--font); color: var(--text-2); }
.unit-progress .up-label b { font: 600 14px var(--font-display); color: var(--text); font-variant-numeric: tabular-nums; }
.unit-progress .up-label em { font-style: normal; color: var(--text-3); font-variant-numeric: tabular-nums; }
.ub-segs { flex: 1; min-width: 80px; max-width: calc(var(--n, 6) * 96px); display: grid; grid-template-columns: repeat(var(--n, 6), 1fr); gap: 4px; align-items: center; }
.ub-seg { position: relative; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 6px ; }
.ub-seg::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px; border-radius: 6px ; background: var(--line-2); transition: background-color .25s, height .2s, margin .2s; }
.ub-seg:hover::before { background: var(--line); }
.ub-seg.done::before { background: var(--yellow); }
.ub-seg.great::before { background: #22B45A; }
.ub-seg.cur::before { height: 10px; margin-top: -5px; background: var(--yellow); box-shadow: none; }
[data-theme="dark"] .ub-seg.cur::before { box-shadow: none; background: #3a3210; }
[data-theme="dark"] .ub-seg::before { background: rgba(255,255,255,.14); }
[data-theme="dark"] .ub-seg.done::before { background: var(--yellow); } [data-theme="dark"] .ub-seg.great::before { background: #22B45A; }
.ub-seg:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.ub-count { font: 600 12px var(--font); color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.unit-progress i { display: none; } 

.pg { display: grid; gap: 12px; }
.pg-hero { display: grid; grid-template-columns: 132px 1fr; gap: 18px; align-items: center; padding: 14px 18px; border-radius: 10px ; background: var(--panel-2); border: 1px solid var(--line-2); }
.pg-hero .ring { width: 132px; height: 132px; }
.pg-facts { display: grid; gap: 10px; min-width: 0; }
.pg-f { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.pg-f b { display: inline-flex; align-items: center; gap: 6px; font: 600 20px/20px var(--font-display); color: var(--text); font-variant-numeric: tabular-nums; }
.pg-f b .ic { width: 20px; height: 20px; color: #f97316; }
.pg-f span { font-size: 14px; font-weight: 600; color: var(--text-2); }
.pg-lv { padding-top: 10px; border-top: 1px solid var(--line-2); }
.pg-lv > div { display: flex; align-items: baseline; gap: 10px; }
.pg-lv b { font: 600 16px var(--font-display); color: var(--text); }
.pg-lv span { font-size: 14px; font-weight: 600; color: var(--text-2); }
.pg-lv i { display: block; height: 8px; margin: 7px 0 4px; border-radius: 6px ; background: var(--line-2); overflow: hidden; }
.pg-lv u { display: block; height: 100%; border-radius: inherit; background: var(--yellow); }
.pg-lv small { font-size: 12px; color: var(--text-3); font-weight: 600; }
.pg-card { padding: 14px 18px; border-radius: 10px ; background: var(--panel); border: 1px solid var(--line-2); }
.pg-card .card-h { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.pg-card .card-h h3, .pg-h h3 { margin: 0; font: 600 14px var(--font-display); color: var(--text); }
.pg-card .quest { border-bottom: 0; padding: 7px 0; }
.pg-card .quest .qh span { display: inline-flex; align-items: center; gap: 8px; }
.q-ck { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid var(--line); }
.quest.done .q-ck { border-color: #22B45A; background: #22B45A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.pg-card .quest .qbar { height: 6px; border: 0; }
.pg-card .chest { margin-top: 6px; padding: 8px 12px; border-radius: 10px ; font-size: 14px; font-weight: 600; color: var(--text-2); background: var(--panel-2); }
.pg-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pg-h span { font-size: 12px; font-weight: 600; color: var(--text-3); }
.pg-bars { position: relative; display: flex; align-items: flex-end; gap: 6px; height: 120px; margin: 12px 0 0; padding-bottom: 18px; }
.pg-bars::before { content: ""; position: absolute; left: 0; right: 0; bottom: calc(18px + (100% - 18px) * var(--g, .8)); border-top: 1.5px dashed var(--line); pointer-events: none; }
.pg-bars > div { position: relative; flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.pg-bars i { width: 100%; max-width: 26px; border-radius: 6px 6px 3px 3px ; background: var(--line-2); }
.pg-bars .met i { background: var(--yellow); }
.pg-bars .tdy i { box-shadow: none; }
[data-theme="dark"] .pg-bars .tdy i { box-shadow: none; }
.pg-bars span { position: absolute; bottom: -18px; font-size: 12px; color: var(--text-3); white-space: nowrap; }
.pg-bars .tdy span { color: var(--text); font-weight: 600; }
.pg-tot { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line-2); font-size: 14px; font-weight: 600; color: var(--text-2); }
.pg-tot b { font: 600 14px var(--font-display); color: var(--text); font-variant-numeric: tabular-nums; }
.pg-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pg-act { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px ; background: var(--panel); border: 1px solid var(--line-2); text-align: left; cursor: pointer; transition: border-color .15s, background-color .15s; }
.pg-act:hover { border-color: var(--edge-2); background: var(--panel-2); }
[data-theme="dark"] .pg-act:hover { border-color: var(--yellow); }
.pg-act > .ic { width: 24px; height: 24px; flex: none; color: var(--text-2); }
.pg-act span { display: grid; gap: 2px; min-width: 0; }
.pg-act b { font-size: 14px; color: var(--text); } .pg-act small { font-size: 12px; color: var(--text-3); font-weight: 500; }
.pg-dot { position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; }
.pg-badges summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font: 600 14px var(--font-display); color: var(--text); list-style: none; }
.pg-badges summary::-webkit-details-marker { display: none; }
.pg-badges summary::after { content: "›"; margin-left: auto; font-size: 16px; color: var(--text-3); transition: transform .2s; }
.pg-badges[open] summary::after { transform: rotate(90deg); }
.pg-badges summary em { font-style: normal; font-size: 12px; padding: 1px 8px; border-radius: 10px ; background: var(--panel-2); color: var(--text-2); }
.pg-badges summary .ic { width: 20px; height: 20px; }
.pg-badges .ach-grid { margin-top: 12px; }
@container (max-width: 520px) { .pg-hero { grid-template-columns: 1fr; justify-items: center; } .pg-acts { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .pg-hero { grid-template-columns: 1fr; justify-items: center; } .pg-acts { grid-template-columns: 1fr; } }

.dp-foot { gap: 6px; flex-wrap: nowrap; min-width: 0; }
.dp-foot > * { flex: none; white-space: nowrap; }
.dp-foot .dp-round { flex: 0 1 auto; min-width: 0; overflow: hidden; }
.dp-bi input[type="checkbox"] { appearance: none; -webkit-appearance: none; position: relative; width: 40px; height: 24px; margin: 0; border-radius: 6px ; background: var(--line); cursor: pointer; transition: background-color .2s; flex: none; }
.dp-bi input[type="checkbox"]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: none; transition: transform .2s cubic-bezier(.32,.72,0,1); }
.dp-bi input[type="checkbox"]:checked { background: #16a34a; }
.dp-bi input[type="checkbox"]:checked::after { transform: translateX(16px); }
.dp-bi input[type="checkbox"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#dpReset .ic { width: 16px; height: 16px; }
#dpScore .dots { display: inline-flex; gap: 3px; } #dpScore .dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: dp-dot 1s ease-in-out infinite; } #dpScore .dots i:nth-child(2) { animation-delay: .15s; } #dpScore .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dp-dot { 50% { opacity: .25; } }
.dm-acts .chip .ic { width: 16px; height: 16px; margin-right: 4px; }
.dm-fix b, .sc-cols b, .sc-ph > b, .sc-sum h4 { display: inline-flex; align-items: center; gap: 6px; }
.dm-fix b .ic, .sc-cols b .ic, .sc-ph > b .ic, .sc-sum h4 .ic { width: 16px; height: 16px; flex: none; }
.sc-cols b .ic { color: #16a34a; } .sc-cols div:last-child b .ic { color: #ea580c; }
.dm-next > span .ic { width: 16px; height: 16px; }
.dm.note .ic, .dp-empty > .ic { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; }
.dp-pane[data-pane="debate"] { container-type: inline-size; }
@container (max-width: 400px) { .dp-dots { display: none; } }
.tq-end .chip, .tq-end .btn-grad, .tq-r-acts .chip { display: inline-flex; align-items: center; gap: 6px; }
.tq-end .ic, .tq-r-acts .chip .ic { width: 16px; height: 16px; flex: none; }

#bigTranslation.tr-wait::before { content: '• • •'; letter-spacing: 2px; opacity: .35; }
body.hide-tr #bigTranslation.tr-wait::before { content: none; }
.tr-tip .chip { margin-left: 6px; vertical-align: middle; }

.has-ind > .tab-ind, .home-tabs.has-ind > .tab-ind, [data-theme="dark"] .has-ind > .tab-ind { transform-origin: 0 0; transition: opacity .18s ease; will-change: auto; }
#transcript .tx-cursor { will-change: auto; transition: transform .42s cubic-bezier(.215, .61, .355, 1), height .42s cubic-bezier(.215, .61, .355, 1), opacity .2s ease; }
#bigSentence .kara-pill { transform-origin: 0 0; transition: opacity .14s ease; will-change: auto; }

.chip, .icon-btn, .ipa-btn.big, .ai-pick-btn, .mini-prov button, .dp-modes button { transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s, opacity .15s, transform .15s; }
.sp-nav, .sp-listen, .sp-again { transition: background-color .12s, color .12s, border-color .12s, box-shadow .12s, transform .12s; }
.fp-ghost span { transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s; }
.sp-steps span { transition: background-color .25s, color .25s, border-color .25s, box-shadow .25s, transform .25s; }

.ub-seg::before { height: 10px; margin-top: -5px; transform: scaleY(.6); transition: background-color .25s, transform .2s; }
.ub-seg.cur::before { height: 10px; margin-top: -5px; transform: none; }
.turn-fill { width: 100% !important; transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }

.vgrid .vcard:not(.sk) { will-change: auto; }
#bigSentence.swap { will-change: auto; }
.brand-name .ch { will-change: auto; }


html.lite .mascot,html.lite .mascot *,html.lite .brand-name .ch,html.lite .wave-hand { animation: none !important; }
html.lite *,html.lite *::before,html.lite *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
html.lite ::view-transition-group(*),html.lite ::view-transition-old(*),html.lite ::view-transition-new(*) { animation: none !important; }
html.lite .vgrid .vcard:not(.sk) { animation: none; }
html.lite #greetTitle.gr-in .gr-txt,html.lite #greetTitle.gr-in .gr-ic { animation: none; }
html.lite #transcript .tx-cursor,html.lite #bigSentence .kara-pill,html.lite .coach-steps li,html.lite .slot { transition: none !important; animation: none !important; }
html.lite .dp-q,html.lite .dm,html.lite .tq-sec,html.lite .tq-why.in,html.lite .dp-pane { animation: none !important; }
html.lite .has-ind > .tab-ind { transition: opacity .15s ease !important; }
html.lite .up-sheet,html.lite .up-card { animation: none; }
html.lite #bigSentence.swap,html.lite #bigTranslation.swap,html.lite .score:not(.leaving),html.lite .dict-result:not(:empty),html.lite #dictSlots:not(:empty) { animation: none !important; }
html.lite .chip:active,html.lite .tool:active,html.lite .icon-btn:active,html.lite .mode-tabs button:active,html.lite .seg button:active,html.lite .sh-chip:active,html.lite .tabs button:active,html.lite .nav-btn:active { transform: none; }
html.lite .coach-card,html.lite .cs-step,html.lite .cs-sheet.open .cs-body > *,html.lite .cs-note.cs-swap,html.lite .cs-track i,html.lite .cs-ok,html.lite #heroForm.coach-pulse { animation: none !important; }
html.lite .cs-sheet,html.lite .cs-back,html.lite .ring-fg { transition: none !important; }
html.lite .ch-banner { transition: opacity .15s linear; }
html.lite .ch-ic,html.lite .cs-prog,html.lite .cs-pbars i { animation: none !important; }
html.lite .cs-pick { animation: none !important; }
html.lite .cs-spin { animation-duration: 2s; }
html.lite .unit-progress i.cur::after { animation: none; }
html.lite .voice-bars i { animation: none; transform: scaleY(.7); }
html.lite *, html.lite *::before, html.lite *::after { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
html.lite .card, html.lite .modal-back, html.lite .pay-sheet, html.lite .pay-done, html.lite .up-sheet { backdrop-filter: none !important; }
html.lite .vgrid .vcard:not(.sk), html.lite .sk { animation: none !important; }
html.lite ::view-transition-old(root), html.lite ::view-transition-new(root) { animation: none !important; }


.up-sheet.v2 { padding: 16px; }
.up-card.up2 { width: min(940px, 100%); max-height: calc(100vh - 32px); padding: 0; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); overflow: hidden; }
.up2 .up-x { z-index: 2; }
.up2-you { padding: 30px 30px 24px; background: linear-gradient(160deg, #FFF6CC 0%, #FFFBEA 70%); border-right: 1px solid var(--edge); overflow: auto; }
[data-theme="dark"] .up2-you { background: linear-gradient(160deg, #2a2312 0%, var(--panel-2) 75%); }
.up2-you .up-days { justify-content: flex-start; margin: 12px 0 0; }
.up2-you .up-days u { width: 26px; }
.up2-you h2 { margin: 14px 0 6px; font: 600 28px/34px var(--font-display); letter-spacing: -.3px; color: var(--text); text-wrap: balance; }
.up2-sub { margin: 0; color: var(--text-2); font-size: 14px; line-height: 21px; text-wrap: pretty; }
.up2 .up-tiles { grid-template-columns: 1fr 1fr; margin: 18px 0 12px; gap: 8px; }
.up2 .up-tile { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; padding: 10px 12px; background: var(--panel); }
.up2 .up-tile i { grid-row: span 2; font-size: 20px; }
.up2 .up-tile b { font-size: 20px; line-height: 22px; }
.up2 .up-tile span { font-size: 12px; }
.up2-pace { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px ; background: var(--panel); border: 1px dashed var(--line-2); color: var(--text-2); font-size: 14px; font-weight: 600; line-height: 20px; }
.up2-keep { margin: 0; color: var(--text-2); font-size: 14px; font-weight: 600; }
.up2-buy { padding: 30px 28px 18px; display: flex; flex-direction: column; gap: 10px; overflow: auto; }
.up2-buy h3 { margin: 0 0 2px; font: 600 16px var(--font-display); color: var(--text); }
.up2-plans { display: grid; gap: 9px; }
.up2-plan { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px ; border: 1px solid var(--edge); background: var(--panel); text-align: left; transition: border-color .15s ease, box-shadow .15s ease, transform .12s ease; }
.up2-plan:hover { border-color: var(--text-3); }
.up2-plan:active { transform: scale(.99); }
.up2-plan.on { border-color: var(--edge-2); box-shadow: none; background: #FFF8D6; }
[data-theme="dark"] .up2-plan.on { border-color: var(--yellow); box-shadow: none; background: #2b2410; }
.u2-radio { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--edge); display: grid; place-items: center; }
.up2-plan.on .u2-radio { border-color: var(--edge-2); } [data-theme="dark"] .up2-plan.on .u2-radio { border-color: var(--yellow); }
.up2-plan.on .u2-radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); } [data-theme="dark"] .up2-plan.on .u2-radio::after { background: var(--yellow); }
.u2-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.u2-main b { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--text); }
.u2-main b i { font-style: normal; font: 600 12px var(--font); padding: 2px 8px; border-radius: 10px ; background: var(--ink); color: var(--yellow); }
.u2-main b i.hot { background: #B42318; color: #fff; }
.u2-main em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--text-2); }
.up2-plan.on .u2-main em { color: #5b4a00; } [data-theme="dark"] .up2-plan.on .u2-main em { color: #FFE58A; }
.u2-price { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.u2-price s { font-size: 12px; color: var(--text-3); }
.u2-price strong { font: 600 20px var(--font-display); color: var(--text); font-variant-numeric: tabular-nums; }
.u2-price small { font-size: 12px; font-weight: 600; color: var(--text-3); }
.up2-launch { margin: 2px 0 0; font-size: 14px; font-weight: 600; color: #93370D; }
[data-theme="dark"] .up2-launch { color: #FDB022; }
.up2 .up-go { width: 100%; min-width: 0; margin-top: 4px; }
.up2 .up-trust { margin: 2px 0 0; }
.up2 .up-sec { justify-content: center; margin-top: 2px; }
@media (max-width: 860px) {
  .up-card.up2 { grid-template-columns: 1fr; overflow: auto; }
  .up2-you { border-right: 0; border-bottom: 1px solid var(--edge); padding: 24px 22px 16px; overflow: visible; }
  .up2-you .up-tiles, .up2-pace { display: none; }
  .up2-buy { overflow: visible; padding: 20px 22px 16px; }
}
@media (max-height: 700px) {
  .up2-you { padding: 22px 24px 16px; } .up2-buy { padding: 22px 22px 14px; gap: 8px; }
  .up2-you h2 { font-size: 20px; margin-top: 10px; } .up2 .up-tiles { margin: 12px 0 8px; }
  .up2-plan { padding: 9px 12px; }
}


.up-card2 { position: fixed; right: 20px; bottom: 20px; z-index: 280; width: min(360px, calc(100vw - 40px)); padding: 14px 16px 16px; border-radius: 10px ; background: var(--panel-solid); border: 1px solid var(--edge); box-shadow: none; overflow: hidden; animation: uc-in .42s cubic-bezier(.2,.9,.3,1.15); }
[data-theme="dark"] .up-card2 { border-color: #3a3424; box-shadow: none; }
.up-card2.out { animation: uc-out .26s ease-in forwards; }
@keyframes uc-in { from { transform: translateY(24px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes uc-out { to { transform: translateY(16px); opacity: 0; } }
.uc-top { display: flex; align-items: center; gap: 8px; }
.uc-kick { font: 600 12px var(--font); padding: 3px 10px; border-radius: 10px ; background: var(--yellow); color: #141414; }
.uc-days { display: inline-flex; gap: 3px; } .uc-days u { width: 12px; height: 5px; border-radius: 3px ; background: var(--line-2); } .uc-days u.on { background: var(--ink); } [data-theme="dark"] .uc-days u.on { background: var(--yellow); }
.uc-x { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; color: var(--text-3); font-size: 12px; } .uc-x:hover { background: var(--hover); color: var(--text); }
.uc-line { display: block; margin: 10px 0 4px; font: 600 16px/21px var(--font-display); color: var(--text); }
.uc-sub { margin: 0 0 12px; font-size: 14px; color: var(--text-2); line-height: 20px; }
.uc-act { display: flex; align-items: center; gap: 10px; }
.uc-later { color: var(--text-3); font-weight: 600; font-size: 14px; padding: 6px 8px; border-radius: 6px ; } .uc-later:hover { color: var(--text); background: var(--hover); }
.uc-timer { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--yellow); transform-origin: left; animation: uc-t 14s linear forwards; }
.up-card2.hold .uc-timer { animation-play-state: paused; }
@keyframes uc-t { to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .up-card2, .up-card2.out { animation: none; } .uc-timer { display: none; } }
html.lite .up-card2, html.lite .up-card2.out { animation: none; } html.lite .uc-timer { display: none; }


.pro-modal { width: min(880px, 94vw); }
.pro-modal .modal-b { max-height: min(78vh, 860px); }
.sp { flex: 1; }

del { color: var(--bad); text-decoration: line-through; text-decoration-thickness: 2px; background: rgba(239,68,68,.10); border-radius: 6px ; padding: 0 2px; }
ins { color: #15803d; text-decoration: none; background: rgba(34,180,90,.16); border-radius: 6px ; padding: 0 2px; font-weight: 600; }
[data-theme="dark"] ins { color: #6ee7a0; }
.tq-diff { margin: 12px 0; padding: 12px 14px; border-radius: 10px ; border: 1px solid var(--edge); background: var(--panel); display: flex; flex-direction: column; gap: 8px; }
.tq-diff > b { display: flex; align-items: center; gap: 6px; font: 600 14px var(--font-display); }
.td-row { padding: 8px 10px; border-radius: 10px ; background: var(--panel-2); }
.td-x { font-size: 14px; line-height: 22px; }
.td-why { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.tq-fixed { margin-left: 6px; font-size: 12px; color: var(--ok); font-weight: 600; }

.ph-wait { grid-column: 1 / -1; font-size: 12px; color: var(--text-3); padding: 6px 2px 0; }
.ph-box { grid-column: 1 / -1; margin-top: 8px; padding: 10px 12px; border-radius: 10px ; border: 1.5px dashed var(--line-2); background: var(--panel); text-align: left; }
.ph-h { display: flex; align-items: center; gap: 10px; font: 600 12px var(--font-display); color: var(--text-2); text-transform: uppercase; letter-spacing: .4px; }
.ph-legend { margin-left: auto; display: flex; align-items: center; gap: 4px; font: 600 12px var(--font); text-transform: none; letter-spacing: 0; color: var(--text-3); }
.ph-legend i { width: 9px; height: 9px; border-radius: 3px ; margin-left: 6px; } .ph-legend i.good { background: var(--ok); } .ph-legend i.near { background: var(--warn); } .ph-legend i.bad { background: var(--bad); }
.ph-words { margin: 6px 0; display: flex; flex-wrap: wrap; gap: 4px 6px; font: 600 16px/24px var(--font-display); }
.phw { border: 0; background: none; padding: 0 2px; border-radius: 6px ; font: inherit; color: var(--text); cursor: pointer; }
.phw:hover { background: var(--hover); }
.phw.nod { color: var(--text-3); cursor: default; }
.phw u { text-decoration: none; border-radius: 6px ; padding: 0 1px; }
.phw u.ph-bad { color: #fff; background: var(--bad); }
.phw u.ph-near { color: var(--ink); background: #FDBA74; }
.ph-sounds { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 6px; font-size: 14px; }
.ph-chip { display: inline-flex; align-items: baseline; gap: 4px; padding: 3px 8px; border-radius: 10px ; border: 1px solid var(--edge); font-family: var(--ipa); font-weight: 600; }
.ph-chip small { font-family: var(--font); font-size: 12px; color: var(--text-3); }
.ph-chip em { font-style: normal; color: var(--bad); font-size: 12px; }
.ph-chip.good { border-color: rgba(34,180,90,.5); } .ph-chip.near { border-color: var(--warn); } .ph-chip.bad { border-color: var(--bad); background: rgba(239,68,68,.08); }
.ph-worst { font-size: 14px; } .ph-worst b { font-family: var(--font-display); }
.ph-worst.ok b { color: var(--ok); }
.ph-tip { margin-top: 3px; color: var(--text-2); font-size: 12px; }

.smap { display: flex; flex-direction: column; gap: 12px; }
.sm-hero { display: grid; grid-template-columns: 170px 1fr; gap: 14px; }
.sm-ov { border-radius: 10px ; background: var(--ink); color: var(--yellow); padding: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; }
.sm-ov small { font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; opacity: .8; }
.sm-ov b { font: 600 44px/44px var(--font-display); }
.sm-ov span { font-size: 12px; font-weight: 600; }
.sm-conf { width: 80%; height: 5px; border-radius: 6px ; background: rgba(255,210,31,.2); margin-top: 6px; overflow: hidden; } .sm-conf u { display: block; height: 100%; background: var(--yellow); }
.sm-goal { border-radius: 10px ; border: 1px solid var(--edge); background: var(--grad-soft); padding: 12px 14px; box-shadow: none; }
[data-theme="dark"] .sm-goal { background: #1d1a0c; border-color: var(--yellow); box-shadow: none; }
.sm-gl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .sm-gl b { display: flex; align-items: center; gap: 5px; font-family: var(--font-display); }
.sm-gl select { padding: 4px 8px; border-radius: 10px ; }
.sm-goal p { margin: 8px 0 0; font-size: 14px; line-height: 21px; }
.sm-miss { color: var(--text-2); font-size: 12px !important; }
.sm-card { border-radius: 10px ; border: 1px solid var(--edge); background: var(--panel); padding: 12px 14px; }
.sm-card h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 14px; } .sm-card h3 small { color: var(--text-3); font: 600 12px var(--font); }
.sm-row { display: grid; grid-template-columns: 130px 1fr 150px; gap: 10px; align-items: center; padding: 5px 0; }
.sm-name { display: flex; align-items: center; gap: 6px; font-size: 14px; } .sm-name .ic { width: 16px; height: 16px; color: var(--text-2); }
.sm-bar { position: relative; height: 10px; border-radius: 8px; background: var(--panel-2); overflow: hidden; }
.sm-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 6px ; background: linear-gradient(90deg, #FFC400, #FF7A00); }
.sm-bar s { position: absolute; top: 0; bottom: 0; width: 1.5px; background: rgba(20,20,20,.18); }
[data-theme="dark"] .sm-bar s { background: rgba(255,255,255,.15); }
.sm-val { display: flex; align-items: baseline; gap: 6px; font-size: 12px; } .sm-val b { font: 600 14px var(--font-display); } .sm-val span { color: var(--text-2); font-weight: 600; }
.sm-val em { font-style: normal; font-size: 12px; font-weight: 600; } .sm-val em.up { color: var(--ok); } .sm-val em.down { color: var(--bad); }
.sm-val small { color: var(--text-3); font-size: 12px; line-height: 16px; } .sm-low { color: var(--warn) !important; }
.sm-row.empty .sm-bar { opacity: .5; }
.sm-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sm-vbig { font-size: 14px; } .sm-vbig b { font: 600 28px var(--font-display); }
.sm-vb { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; height: 90px; align-items: end; margin: 6px 0; }
.sm-vb div { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; }
.sm-vb i { width: 70%; border-radius: 6px 6px 2px 2px ; background: var(--yellow); border: 1px solid var(--edge); min-height: 2px; }
.sm-vb span { font-size: 12px; font-weight: 600; } .sm-vb small { font-size: 12px; color: var(--text-3); }
.sm-note { font-size: 12px; color: var(--text-2); margin: 4px 0 0; line-height: 17px; }
.sm-snd { display: grid; grid-template-columns: 52px 1fr 70px 38px auto; gap: 8px; align-items: center; padding: 4px 0; font-size: 12px; }
.sm-snd b { font-family: var(--ipa); font-size: 14px; } .sm-snd span { color: var(--text-2); }
.sm-snd i { height: 7px; border-radius: 6px ; background: rgba(239,68,68,.25); overflow: hidden; } .sm-snd i u { display: block; height: 100%; background: var(--ok); }
.sm-snd em { font-style: normal; font-weight: 600; text-align: right; }
.sm-err { padding: 8px 0; border-top: 1px solid var(--line); } .sm-err:first-of-type { border-top: 0; }
.sm-eh { display: flex; align-items: center; gap: 8px; } .sm-eh b { font-family: var(--font-display); } .sm-eh em { font-style: normal; color: var(--bad); font-weight: 600; font-size: 12px; }
.sm-ex { font-size: 14px; margin: 3px 0 0 4px; } .sm-ex s { color: var(--bad); }
.sm-foot { font-size: 12px; color: var(--text-3); text-align: center; margin: 6px 0 0; }
.pg-map { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 10px ; border: 1px solid var(--edge); background: var(--yellow); color: var(--ink); text-align: left; box-shadow: none; cursor: pointer; }
.pg-map .ic { width: 24px; height: 24px; } .pg-map span { flex: 1; display: flex; flex-direction: column; } .pg-map b { font: 600 14px var(--font-display); } .pg-map small { font-size: 12px; opacity: .8; } .pg-map > i { font-style: normal; font-size: 20px; font-weight: 600; }
.pg-map:active { transform: translateY(2px); box-shadow: none; }

.exm { display: flex; flex-direction: column; gap: 12px; }
.ex-opts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ex-sub { margin: 0; font-size: 12px; color: var(--text-2); }
.ex-topic { display: flex; align-items: center; gap: 6px; font-size: 12px; width: 100%; } .ex-topic i { color: var(--text-2); font-style: normal; }
.ex-how { margin: 0; padding-left: 20px; font-size: 14px; line-height: 22px; color: var(--text-2); }
.ex-ai { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12px; color: var(--text-2); }
.ex-ai.warn { color: #9a6700; } [data-theme="dark"] .ex-ai.warn { color: #fbbf24; }
.ex-ai .ic { width: 16px; height: 16px; flex: none; }
.ex-hist { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; }
.ex-hist span { padding: 3px 8px; border-radius: 10px ; background: var(--panel-2); } .ex-hist em { font-style: normal; font-weight: 600; color: var(--text-2); } .ex-hist small { color: var(--text-3); }
.ex-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ex-run { display: flex; flex-direction: column; gap: 12px; }
.ex-prog { display: flex; gap: 4px; } .ex-prog i { flex: 1; height: 6px; border-radius: 8px; background: var(--panel-2); } .ex-prog i.done { background: var(--ok); } .ex-prog i.now { background: var(--yellow); box-shadow: inset 0 0 0 1.5px var(--edge-2); }
.ex-part { font: 600 12px var(--font); text-transform: uppercase; letter-spacing: .6px; color: var(--text-3); }
.ex-q { font: 600 20px/29px var(--font-display); padding: 14px 16px; border-radius: 10px ; border: 1px solid var(--edge); background: var(--panel); box-shadow: none; }
.ex-q ul { margin: 8px 0 0; padding-left: 22px; font: 500 14px/22px var(--font); }
[data-theme="dark"] .ex-q { border-color: var(--yellow); box-shadow: none; }
.ex-notes { width: 100%; border-radius: 10px ; padding: 8px 10px; resize: vertical; }
.ex-mic { display: flex; align-items: center; gap: 12px; } .ex-mic canvas { flex: 1; height: 44px; width: 100%; }
.ex-clock { min-width: 110px; text-align: right; font: 600 14px var(--font-display); }
.rec-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--bad); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.ex-wait { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 34px 10px; text-align: center; } .ex-wait small { color: var(--text-2); max-width: 460px; }
.ex-res { display: flex; flex-direction: column; gap: 12px; }
.ex-res .sc-bars { display: flex; flex-direction: column; gap: 6px; } .ex-res .sc-row { grid-template-columns: 220px 1fr 40px; } .ex-res .sc-row small { color: var(--text-3); font-weight: 600; }
.ex-res .sc-sum h4 { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; } .ex-res .sc-sum p { margin: 2px 0; font-size: 14px; } .ex-res .sc-sum p.tr { color: var(--text-2); }
.ex-res .sc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 14px; } .ex-res .sc-cols ul { margin: 4px 0 0; padding-left: 18px; }
.ex-meas { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 8px 12px; border-radius: 10px ; background: var(--panel-2); font-size: 12px; } .ex-meas b { font-family: var(--font-display); font-size: 14px; } .ex-meas .ic { width: 16px; height: 16px; }
.ex-qa { border: 1px solid var(--edge); border-radius: 10px ; padding: 8px 12px; background: var(--panel); margin-bottom: 8px; }
.ex-qa summary { cursor: pointer; display: flex; gap: 8px; align-items: baseline; font-size: 14px; } .ex-qa summary span { flex: 1; } .ex-qa summary em { font-style: normal; color: var(--text-3); font-size: 12px; white-space: nowrap; }
.ex-you, .ex-better { margin-top: 6px; } .ex-you small, .ex-better small { font-size: 12px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .4px; }
.ex-you p, .ex-better p { margin: 2px 0; font-size: 14px; line-height: 22px; } .ex-better p { color: #15803d; } [data-theme="dark"] .ex-better p { color: #86efac; }
.ex-cm { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.ex-w { display: flex; flex-direction: column; gap: 10px; } .ex-w select { padding: 6px 10px; border-radius: 10px ; }
.ex-wmeta { font-size: 12px; color: var(--text-3); font-weight: 600; }
#exWClock.over { color: var(--bad); }
.ex-cmts { font-size: 14px; } .ex-cmts p { margin: 3px 0; }
.ex-rw summary { cursor: pointer; display: flex; align-items: center; gap: 6px; font: 600 14px var(--font-display); }
.ex-rwbody { margin-top: 8px; padding: 10px 14px; border-radius: 10px ; background: var(--panel-2); font-size: 14px; line-height: 25px; } .ex-rwbody p { margin: 0 0 10px; }
.sc-sum b.warn { color: var(--warn); }
.tq-kind.pro { border-style: dashed; }

.rp { display: flex; flex-direction: column; gap: 12px; }
.rp-intro { margin: 0; font-size: 14px; color: var(--text-2); }
.rp-lv { display: flex; align-items: center; gap: 6px; } .rp-lv span { font-size: 12px; font-weight: 600; color: var(--text-3); margin-right: 4px; }
.rp-lv button { padding: 4px 10px; border-radius: 10px ; border: 1px solid var(--edge); background: var(--panel); font-weight: 600; } .rp-lv button.on { background: var(--yellow); border-color: var(--edge-2); color: var(--ink); }
.rp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.rp-scene { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px; border-radius: 10px ; border: 1px solid var(--edge); background: var(--panel); text-align: left; cursor: pointer; transition: transform .12s, border-color .12s; }
.rp-scene:hover { border-color: var(--edge-2); transform: translateY(-1px); } .rp-scene .ic { width: 24px; height: 24px; } .rp-scene b { font: 600 14px var(--font-display); } .rp-scene small { font-size: 12px; color: var(--text-3); }
.rp-talk { display: flex; flex-direction: column; gap: 10px; }
.rp-head { display: flex; align-items: center; gap: 8px; } .rp-head b { font-family: var(--font-display); } .rp-head em { font-style: normal; padding: 1px 8px; border-radius: 6px ; background: var(--ink); color: var(--yellow); font-size: 12px; font-weight: 600; }
.rp-sub { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-2); }
.rp-chat { min-height: 220px; max-height: 44vh; overflow: auto; display: flex; flex-direction: column; gap: 8px; padding: 6px 2px; }
.rp-m { max-width: 82%; } .rp-m p { margin: 0; padding: 9px 13px; border-radius: 10px ; font-size: 14px; line-height: 21px; }
.rp-m.ai p { background: var(--panel-2); border-bottom-left-radius: 4px; } .rp-m.me { align-self: flex-end; } .rp-m.me p { background: var(--yellow); color: var(--ink); border-bottom-right-radius: 4px; }
.rp-chat.nosub .rp-m.ai p { filter: blur(5px); transition: filter .2s; } .rp-chat.nosub .rp-m.ai p:hover { filter: none; }
.rp-state { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: 10px ; background: var(--panel-2); font-weight: 600; font-size: 14px; }
.rp-state.listening { background: rgba(239,68,68,.12); color: var(--bad); } .rp-state.speaking { background: rgba(255,196,0,.22); }
.rp-mic canvas { width: 100%; height: 40px; }
.rp-better { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 10px ; border: 1px solid var(--edge); } .rp-better > b { display: flex; align-items: center; gap: 6px; font-family: var(--font-display); }
.rp-b { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; } .rp-b s { grid-column: 1; color: var(--text-3); font-size: 12px; } .rp-b p { grid-column: 1; margin: 0; font-weight: 600; color: #15803d; } .rp-b button { grid-column: 2; grid-row: 1 / span 2; }
[data-theme="dark"] .rp-b p { color: #86efac; }
.rp-log summary { cursor: pointer; font-size: 12px; color: var(--text-2); } .rp-log p { margin: 4px 0; font-size: 14px; } .rp-log p.me { color: var(--text-2); }
.dp-voice { border-style: dashed !important; }

.lp { display: flex; flex-direction: column; gap: 12px; }
.lp-h { display: flex; flex-direction: column; } .lp-h b { font: 600 16px var(--font-display); } .lp-h span { font-size: 12px; color: var(--text-3); font-weight: 600; }
.lp-words { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.lp-w { padding: 8px 10px; border-radius: 10px ; background: var(--panel-2); } .lp-w > div:first-child { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .lp-w b { font: 600 14px var(--font-display); } .lp-w small { color: var(--text-3); font-weight: 600; }
.lp-m { font-size: 14px; margin-top: 2px; } .lp-c { font-size: 12px; color: var(--text-2); margin-top: 3px; font-style: italic; }
.lp-g { padding: 8px 0; border-top: 1px solid var(--line); } .lp-g:first-of-type { border-top: 0; } .lp-g b { font-family: var(--font-display); margin-right: 6px; } .lp-g small { color: var(--text-3); } .lp-g p { margin: 4px 0; font-size: 14px; }
.lp-q { padding: 8px 0; border-top: 1px solid var(--line); } .lp-q:first-of-type { border-top: 0; } .lp-q > b { font-size: 14px; }
.lp-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.lp-opts button { text-align: left; padding: 7px 10px; border-radius: 10px ; border: 1px solid var(--edge); background: var(--panel); font-size: 14px; cursor: pointer; }
.lp-opts button:not(:disabled):hover { border-color: var(--edge-2); } .lp-opts button.ok { border-color: var(--ok); background: rgba(34,180,90,.14); } .lp-opts button.bad { border-color: var(--bad); background: rgba(239,68,68,.10); }
.lp-why { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.lp-wait { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.lp-pod summary { cursor: pointer; font-size: 12px; color: var(--text-2); margin-top: 6px; }

.ap-card { border-radius: 10px ; border: 1px solid var(--edge); background: var(--panel); padding: 12px 14px; margin-bottom: 10px; }
.ap-cloud { border: 1px solid var(--edge); background: var(--grad-soft); box-shadow: none; }
[data-theme="dark"] .ap-cloud { background: #1d1a0c; border-color: var(--yellow); box-shadow: none; }
.ap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .ap-grid .ap-card { margin-bottom: 0; }
.ap-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .ap-h b { font: 600 14px var(--font-display); } .ap-h .ic { width: 20px; height: 20px; }
.ap-st { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 10px ; background: var(--panel-2); color: var(--text-2); }
.ap-st.ok { background: rgba(34,180,90,.16); color: #15803d; } .ap-st.warn { background: rgba(245,158,11,.18); color: #9a6700; }
[data-theme="dark"] .ap-st.ok { color: #86efac; } [data-theme="dark"] .ap-st.warn { color: #fbbf24; }
.ap-card .hint { margin: 6px 0; } .hint.warn { color: #9a6700; }
.ap-q { display: flex; align-items: center; gap: 10px; font-size: 12px; margin: 6px 0; } .ap-q i { width: 140px; height: 7px; border-radius: 6px ; background: var(--panel-2); overflow: hidden; } .ap-q u { display: block; height: 100%; background: var(--ink); }
[data-theme="dark"] .ap-q u { background: var(--yellow); }
.ap-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .ap-acts small { font-size: 12px; }
.ap-prog { display: flex; align-items: center; gap: 8px; margin: 6px 0; } .ap-prog i { flex: 1; height: 8px; border-radius: 8px; background: var(--panel-2); overflow: hidden; } .ap-prog u { display: block; height: 100%; width: 0; background: var(--yellow); transition: width .3s; } .ap-prog span { font-size: 12px; font-weight: 600; min-width: 38px; text-align: right; }
.ap-small { padding: 10px 14px; }
.sy-code { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 10px ; border: 2px dashed var(--ink); background: var(--panel-2); margin: 6px 0; font-size: 14px; }
.sy-code code { font: 600 16px/16px var(--font-display); letter-spacing: 1px; }
@media (max-width: 760px) { .sm-hero, .sm-cols, .ap-grid, .ex-res .sc-cols { grid-template-columns: 1fr; } .sm-row { grid-template-columns: 100px 1fr 110px; } .lp-opts { grid-template-columns: 1fr; } }
html.lite .rec-dot { animation: none; }
html.lite .rp-chat.nosub .rp-m.ai p { transition: none; }

.sm-snd .chip, .sm-eh .chip, .ph-box .chip { display: inline-flex; flex-direction: row; align-items: center; gap: 4px; white-space: nowrap; width: auto; height: auto; border-radius: 10px ; }
.sm-snd .chip .ic, .sm-eh .chip .ic { width: 16px; height: 16px; margin: 0; }
.sm-vbig.guess b { opacity: .55; }
#dcSync .hint { font-size: 12px; color: var(--text-2); line-height: 18px; margin: 6px 2px 10px; }

.score:has(.ph-box), .score:has(.ph-wait) { flex-wrap: wrap; }
.score .ph-box, .score .ph-wait { flex: 1 1 100%; order: 10; margin-top: 4px; }
.score .ph-box { color: var(--text); }
.sp-result .ph-box, .sp-result .ph-wait { width: 100%; }


.lp-w > div:first-child { position: relative; padding-right: 30px; }
.lp-w > div:first-child > .tw-say { position: absolute; right: 0; top: 0; margin: 0; }


.cine-btn { position: absolute; top: 10px; right: 108px;  z-index: 6; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 10px ; border: 1px solid rgba(255,255,255,.28); background: rgba(10,10,10,.62); color: #f5f1e8; font: 600 12px var(--font-ui, inherit); cursor: pointer; opacity: 0; transform: translateY(-3px); transition: opacity .18s, transform .18s, background .15s; backdrop-filter: none; }
.cine-btn .ic { width: 16px; height: 16px; }
.cine-btn span { display: none; } 
.cine-btn { padding: 7px; }
.player-wrap:hover .cine-btn, .cine-btn:focus-visible { opacity: 1; transform: none; }
.cine-btn:hover { background: rgba(10,10,10,.85); }
.player-wrap.novideo .cine-btn, .player-wrap.cine .cine-btn { display: none; }
.player-wrap.floating .cine-btn { top: 34px; }
#cineBar .ic { width: 16px; height: 16px; }
#cineBar[hidden] { display: none; }

.player-wrap.cine { --cine-scale: 1; --band: max(22vh, calc(var(--sub) * 4.2)); --sub: calc(clamp(20px, 3.4vh, 58px) * var(--cine-scale)); --ink-sub: #f3efe6; --ink-tr: #d8d1c2; --kara: #ffc94d;
  position: fixed !important; inset: 0 !important; width: 100vw !important; height: 100vh !important; max-width: none !important; aspect-ratio: auto !important; margin: 0 !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: #070707 !important; z-index: 2000; transform: none !important; }
.player-wrap.cine:fullscreen { background: #070707; }
.player-wrap.cine > .fp-bar, .player-wrap.cine > .fp-handle, .player-wrap.cine > .fp-resize { display: none !important; }
.player-wrap.cine { --dock: 72px; }
.player-wrap.cine #player, .player-wrap.cine iframe { position: absolute; left: 0; top: 0; width: 100%; height: calc(100% - var(--dock)); transition: height .25s ease, filter .3s ease; }
.player-wrap.cine.cine-band #player, .player-wrap.cine.cine-band iframe { height: calc(100% - var(--band) - var(--dock)); }
.player-wrap.cine.cine-dim #player, .player-wrap.cine.cine-dim iframe { filter: brightness(.82) contrast(.96) sepia(.1); }
.cine-ui { position: absolute; inset: 0; z-index: 5; pointer-events: none; color: var(--ink-sub); font-family: "InterVariable", "Inter", var(--font-ui, system-ui), sans-serif; }
.cine-ui > * { pointer-events: auto; }
.cine-hit { position: absolute; left: 0; top: 0; right: 0; bottom: var(--dock); cursor: default; outline: none; }
.cine-band .cine-hit { bottom: calc(var(--band) + var(--dock)); }
.cine.cine-idle, .cine.cine-idle .cine-hit { cursor: none; }


.cine-sub { position: absolute; left: 50%; transform: translateX(-50%); width: min(78vw, 72ch * 1.1); max-width: 1500px; text-align: center; pointer-events: none; transition: bottom .25s ease, top .25s ease, opacity .2s; font-size: var(--sub); }
.cine-sub > * { pointer-events: auto; }
.cine-sub.empty { opacity: 0; }
.cine-band .cine-sub { top: calc(100% - var(--band) - var(--dock)); height: var(--band); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.2vh 0; box-sizing: border-box; overflow: hidden; }
.cine-band .cine-en { display: block; }
.cine-band .cine-tr { margin-top: .35em; }
.cine-band .cine-set { max-height: calc(100vh - var(--dock) - 40px); }
.cine-over .cine-sub { bottom: calc(var(--dock) + 5vh); }
.cine-top .cine-sub { top: 6vh; }
.cine-en, .cine-tr { display: inline; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.cine-en { font-weight: 500; font-size: 1em; line-height: 1.42; letter-spacing: .004em; color: var(--ink-sub); padding: .12em .5em; border-radius: .35em; background: rgba(14,14,14,.62); text-wrap: balance; }
.cine-tr { display: table; margin: .45em auto 0; font-weight: 500; font-size: .7em; line-height: 1.4; color: var(--ink-tr); padding: .14em .6em; border-radius: .35em; background: rgba(14,14,14,.5); text-wrap: balance; }
.cine-tr[hidden] { display: none; }
.cine-band .cine-en, .cine-band .cine-tr { background: transparent; }
.cine-nobox .cine-en, .cine-nobox .cine-tr { background: transparent; text-shadow: none; }
.cine-en .w { cursor: pointer; border-radius: .18em; transition: color .12s; }
.cine-en .w:hover { color: #fff; background: rgba(255,255,255,.1); }
.cine-en .w.now, .cine-en .w.said { background: transparent !important; box-shadow: none !important; }
.cine-en .w.now { color: var(--kara) !important; text-decoration: underline; text-decoration-color: var(--kara); text-decoration-thickness: .08em; text-underline-offset: .24em; }
.cine-nokara .cine-en .w.now { text-decoration: none; color: inherit !important; }
.cine-en .w.cloze { color: transparent; border-bottom: .08em solid var(--ink-tr); }
.cine-en.blind { filter: blur(.35em); opacity: .55; }
.cine-en .w.hit { color: #86efac; } .cine-en .w.near { color: #fcd34d; } .cine-en .w.miss { color: #fca5a5; }
.cine-score { display: table; margin: .5em auto 0; font: 600 .62em var(--font-display, inherit); padding: .2em .8em; border-radius: 10px ; background: rgba(14,14,14,.7); }
.cine-score.good { color: #86efac; } .cine-score.ok { color: #fcd34d; } .cine-score.low { color: #fca5a5; }


.cine-bar { position: absolute; left: 0; right: 0; bottom: 0; height: var(--dock); padding: 0 22px; box-sizing: border-box; background: #070707; }
.cine-prog { position: absolute; left: 14px; right: 14px; top: -8px; height: 18px; cursor: pointer; touch-action: none; outline: none; z-index: 2; } 
.cine-prog .cp-track { position: absolute; left: 0; right: 0; top: 50%; height: 3px; transform: translateY(-50%); background: rgba(255,255,255,.2); transition: height .1s cubic-bezier(.4,0,1,1); }
.cine-prog.hov .cp-track, .cine-prog.drag .cp-track, .cine-prog:focus-visible .cp-track { height: 5px; }
.cine-prog .cp-track i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); will-change: transform; }
.cine-prog .cp-hov { background: rgba(255,255,255,.42); opacity: 0; transition: opacity .1s; }
.cine-prog.hov .cp-hov { opacity: 1; }
.cine-prog .cp-fill { background: #f00; }
.cine-prog .cp-knob { position: absolute; top: 50%; left: 0; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%; background: #f00; transform: scale(0); transition: transform .1s cubic-bezier(.4,0,1,1); pointer-events: none; }
.cine-prog.hov .cp-knob, .cine-prog.drag .cp-knob, .cine-prog:focus-visible .cp-knob { transform: scale(1); }
.cine-prog:focus-visible .cp-track { box-shadow: 0 0 0 2px rgba(255,255,255,.55); }
.cine-prog .cp-tip { position: absolute; bottom: 20px; left: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; max-width: 340px; padding: 5px 9px; border-radius: 6px ; background: rgba(23,23,23,.92); color: #fff; font: 500 12px/16px "InterVariable", "Inter", sans-serif; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .1s; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.cine-prog .cp-tip .cp-tx { max-width: 322px; overflow: hidden; text-overflow: ellipsis; color: #e8e8e8; font-weight: 400; }
.cine-prog .cp-tip .cp-tt { font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.cine-prog.hov .cp-tip, .cine-prog.drag .cp-tip { opacity: 1; }
.cine-ctl { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: 18px; height: 100%; padding-top: 2px; transition: opacity .3s ease; }
.cine-idle .cine-ctl { opacity: 0; pointer-events: none; }
.cine-idle .cine-prog { opacity: .6; } .cine-idle .cine-prog .cp-track { height: 3px; }
.cine-l, .cine-c, .cine-r { display: flex; align-items: center; min-width: 0; }
.cine-l { justify-self: start; gap: 12px; }
.cine-c { justify-self: center; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; } 
.cine-cl, .cine-cr { display: flex; align-items: center; gap: 10px; } .cine-cl { justify-content: flex-end; } .cine-cr { justify-content: flex-start; }
.cine-r { justify-self: end; gap: 4px; }
.cine-time { font: 500 14px/14px "InterVariable", "Inter", sans-serif; color: #d8d1c2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cine-mode { min-width: 0; font-size: 12px; font-weight: 600; color: #bdb6a8; padding: 4px 10px; border-radius: 10px ; background: rgba(255,255,255,.07); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cine-mode:empty { display: none; }
.cine-ib { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none; width: 40px; height: 40px; padding: 0; border-radius: 50% ; border: 0; background: transparent; color: #e9e4d8; font: 600 16px/16px "InterVariable", "Inter", sans-serif; cursor: pointer; transition: background-color .15s, color .15s, transform .1s; }
.cine-ib .ic { width: 20px; height: 20px; }
.cine-ib:hover { background: rgba(255,255,255,.12); color: #fff; } .cine-ib:active { transform: scale(.94); }
.cine-ib:focus-visible { outline: 2px solid var(--kara); outline-offset: 2px; }
.cine-ib.big { width: 50px; height: 50px; background: #f3efe6; color: #111; } .cine-ib.big .ic { width: 24px; height: 24px; }
.cine-ib.big:hover { background: #fff; color: #111; }
.cine-ib.on { background: rgba(255,201,77,.18); color: var(--kara); }
.cine-ib.sm { width: 30px; height: 30px; font-size: 16px; }
.cine-grp { display: inline-flex; align-items: center; height: 36px; padding: 0 3px; margin-right: 6px; border-radius: 10px ; background: rgba(255,255,255,.07); }
.cine-speed { min-width: 34px; text-align: center; font: 600 14px "InterVariable", "Inter", sans-serif; color: #f3efe6; font-variant-numeric: tabular-nums; }
.cine-div { width: 1px; height: 22px; margin: 0 6px; background: rgba(255,255,255,.14); }
.cine-rec { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; margin-left: 4px; white-space: nowrap; border-radius: 10px ; border: 0; background: var(--yellow, #ffd21f); color: #111; font-weight: 600; font-size: 14px; cursor: pointer; }
.cine-rec b { width: 10px; height: 10px; border-radius: 50%; background: #e11d48; }
.cine-rec.recording { background: #e11d48; color: #fff; } .cine-rec.recording b { background: #fff; animation: cine-pulse 1s infinite; }
.cine-rec.listening { background: #f3efe6; }
.cine-rec[hidden] { display: none; }
@keyframes cine-pulse { 50% { opacity: .35; } }
@media (max-width: 980px) { .cine-mode { display: none; } .cine-bar { padding: 0 12px; } .cine-ctl { column-gap: 10px; } .cine-c { gap: 4px; } }
@media (max-width: 720px) { .cine-time { display: none; } .cine-div { display: none; } }


.cine-set { position: absolute; right: 20px; bottom: calc(var(--dock, 72px) + 12px); width: min(420px, 92vw); padding: 16px 18px; border-radius: 10px ; background: rgba(20,20,20,.94); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 20px 60px rgba(0,0,0,.5); color: #f3efe6; font-size: 14px; z-index: 3; max-height: calc(100vh - var(--dock, 72px) - 40px); overflow-y: auto; overscroll-behavior: contain; }
.cine-set h4 { margin: 0 0 8px; font-size: 14px; }
.cine-set label { display: block; margin: 10px 0 5px; font-size: 12px; font-weight: 600; color: #bdb6a8; }
.cs-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.cs-seg button { padding: 6px 12px; border-radius: 10px ; border: 1px solid rgba(255,255,255,.18); background: transparent; color: #f3efe6; font-weight: 600; font-size: 12px; cursor: pointer; }
.cs-seg button.on { background: #f3efe6; color: #111; border-color: #f3efe6; }
.cs-tip { margin: 12px 0 0; font-size: 12px; color: #9f988b; line-height: 18px; }


.cine-ui #wordPop { z-index: 10; }
.cine-ui .toasts { z-index: 11; }
html.lite .player-wrap.cine *, html.lite .cine-btn { transition: none !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) { .player-wrap.cine *, .cine-btn { transition: none !important; } }



.pz { position: absolute; right: 10px; top: 4px; z-index: 6; display: inline-flex; }
.pz-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 32px; min-width: 32px; padding: 0 6px; border-radius: 50% ; border: 1.5px solid transparent; background: transparent; color: var(--text-2); font: 600 12px/12px var(--font); cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.pz-btn .ic { width: 20px; height: 20px; flex: none; }
.pz-btn .pz-v { display: none; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.pz-btn:hover { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); }
.pz.changed .pz-btn { border-color: var(--line-2); color: var(--text); padding: 0 9px 0 7px; }
.pz.changed .pz-v { display: inline; }
.pz-btn.on { background: var(--yellow); color: var(--ink); border-color: var(--edge-2); }
.pz-btn:focus-visible { outline: 1px solid var(--edge); outline-offset: 2px; }
.pz.in-row { position: static; margin-right: 6px; flex: none; }
#study .right > .pz .pz-btn { height: 32px; min-width: 32px; } #study .right > .pz .pz-btn .ic { width: 16px; height: 16px; }
.pz-pop { position: fixed; z-index: 9000; width: 268px; padding: 12px 12px 10px; border-radius: 10px ; background: var(--panel-solid, var(--panel)); color: var(--text); border: 1px solid var(--edge); box-shadow: 0 18px 48px rgba(0,0,0,.18), 0 2px 6px rgba(0,0,0,.08); animation: pz-in .14s ease-out; }
.pz-pop.up { animation-name: pz-in-up; }
.pz-pop[hidden] { display: none; }
@keyframes pz-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
@keyframes pz-in-up { from { opacity: 0; transform: translateY(4px) scale(.98); } }
.pz-row { display: flex; align-items: center; gap: 6px; }
.pz-row > button { flex: none; width: 32px; height: 32px; border-radius: 6px ; border: 0; background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text); font: 600 16px/16px var(--font-display, var(--font)); cursor: pointer; transition: background-color .15s; }
.pz-row > button small { font-size: 12px; }
.pz-row > button:hover:not(:disabled) { background: var(--yellow); color: var(--ink); }
.pz-row > button:disabled { opacity: .35; cursor: default; }
.pz-track { position: relative; flex: 1; display: flex; align-items: center; justify-content: space-between; height: 32px; padding: 0 2px; }
.pz-track::before { content: ""; position: absolute; left: 12px; right: 12px; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 3px; background: var(--line-2); }
.pz-dot { position: relative; z-index: 1; width: 22px; height: 26px; padding: 0; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; }
.pz-dot i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); box-shadow: none; transition: transform .15s, background-color .15s, width .15s, height .15s; }
.pz-dot.done i { background: var(--text-3); }
.pz-dot:hover i { transform: scale(1.35); background: var(--text-2); }
.pz-dot.on i { width: 16px; height: 16px; background: var(--yellow); box-shadow: none; transform: none; }
.pz-foot { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--text-3); }
.pz-foot .pz-v { font: 600 14px/14px var(--font); color: var(--text); font-variant-numeric: tabular-nums; min-width: 40px; }
.pz-foot .sp { flex: 1; }
.pz-reset { border: 0; background: transparent; padding: 3px 6px; border-radius: 6px ; color: var(--text-2); font: 600 12px var(--font); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.pz-reset:hover:not(:disabled) { color: var(--text); background: color-mix(in srgb, var(--text) 7%, transparent); }
.pz-reset:disabled { opacity: 0; pointer-events: none; }
.pz-foot kbd { font: 600 12px ui-monospace, Consolas, monospace; padding: 1px 5px; border-radius: 6px ; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--text) 5%, transparent); color: var(--text-2); }
.pz-badge { position: absolute; left: 50%; top: 50%; z-index: 30; translate: -50% -50%; padding: 8px 16px; border-radius: 999px; background: rgba(20,20,20,.84); color: #fff; font: 600 14px/14px var(--font); font-variant-numeric: tabular-nums; pointer-events: none; opacity: 0; }
.pz-badge.show { animation: pz-badge .9s ease forwards; }
@keyframes pz-badge { 0% { opacity: 0; scale: .92; } 14% { opacity: 1; scale: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }
html.lite .pz-pop, html.lite .pz-badge.show { animation: none; } html.lite .pz-badge.show { opacity: 0; }
#study .right:not(.floating) #rightTabs { padding-top: 30px; }
#practice { position: relative; }
.side-grip { position: absolute; left: 0; top: 18px; bottom: 18px; width: 9px; z-index: 7; cursor: col-resize; touch-action: none; }
.side-grip::after { content: ""; position: absolute; left: 3px; top: 50%; width: 3px; height: 48px; margin-top: -24px; border-radius: 3px ; background: var(--line-2); opacity: 0; transition: opacity .15s, height .15s, margin .15s; }
#study .right:hover > .side-grip::after { opacity: .9; }
.side-grip:hover::after, body.side-resizing .side-grip::after { opacity: 1; background: var(--yellow); height: 80px; margin-top: -40px; }
#study .right.floating > .side-grip { display: none; }
body.side-resizing, body.side-resizing * { cursor: col-resize !important; user-select: none !important; }
body:not(.panel-hidden):not(.panel-float):not(.ai-wide):not(.side-reserve) #study.side-custom .lesson-body { grid-template-columns: minmax(0, 1fr) var(--sidew); }

.turn:not([hidden]) { display: grid !important; grid-template-columns: minmax(var(--tside, 0px), 1fr) minmax(0, max-content) minmax(var(--tside, 0px), 1fr); align-items: center; gap: 10px; container-type: inline-size; }
.turn .coach-steps li { white-space: nowrap; }
@container (max-width: 820px) { .turn .coach-steps li span { display: none; } .turn .coach-steps li { padding: 2px 3px; } }
.turn > .turn-fill { grid-column: 1 / -1; grid-row: 1; }
.turn > .coach-steps { grid-column: 1; grid-row: 1; justify-self: start; }
.turn > #turnText { grid-column: 2; grid-row: 1; flex: none; min-width: 0; justify-self: stretch; }
.turn > .coach-speed { grid-column: 3; grid-row: 1; justify-self: end; }


#layoutBtn .ic { width: 16px; height: 16px; }
#layoutBtn.on { background: var(--yellow); color: var(--ink); border-color: var(--edge-2); }
.lay-menu { position: fixed; z-index: 80; width: 360px; max-width: calc(100vw - 24px); padding: 14px; border-radius: 10px ; background: var(--panel-solid, var(--panel)); border: 1px solid var(--edge); box-shadow: 0 18px 50px rgba(0,0,0,.28); display: flex; flex-direction: column; gap: 10px; animation: pop-in .18s var(--ease-out, ease-out); }
.lay-menu[hidden] { display: none; }
.lay-pre { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lay-pre button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px 8px; border-radius: 10px ; border: 1px solid var(--edge); background: transparent; color: var(--text-2); cursor: pointer; transition: border-color .15s, transform .12s; }
.lay-pre button:hover { border-color: var(--edge-2); transform: translateY(-1px); }
[data-theme="dark"] .lay-pre button:hover { border-color: var(--yellow); }
.lay-pre button.on { border-color: var(--yellow); background: rgba(255,210,31,.12); color: var(--text); }
.lay-pre b { font: 600 14px var(--font); color: var(--text); } .lay-pre small { font-size: 12px; line-height: 16px; text-align: center; }
.lay-h { margin-top: 4px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.lay-sw { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 10px ; background: var(--panel-2); cursor: pointer; }
.lay-sw span { display: flex; flex-direction: column; gap: 1px; min-width: 0; } .lay-sw b { font: 600 14px var(--font); } .lay-sw small { font-size: 12px; color: var(--text-2); }
.lay-sw input { position: absolute; opacity: 0; pointer-events: none; }
.lay-sw i { flex: none; width: 40px; height: 24px; border-radius: 999px; background: var(--line-2); position: relative; transition: background .15s; }
.lay-sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: none; transition: transform .18s var(--ease-out, ease-out); }
.lay-sw input:checked + i { background: #22C55E; } .lay-sw input:checked + i::after { transform: translateX(16px); }
.lay-sw input:focus-visible + i { outline: 2px solid var(--yellow); outline-offset: 2px; }
.lay-pos { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 4px 0 12px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.lay-seg { display: flex; gap: 2px; padding: 2px; border-radius: 10px ; border: 1px solid var(--edge); }
.lay-seg button { height: 32px; padding: 0 12px; border-radius: 6px ; border: 0; background: transparent; color: var(--text-2); font: 600 12px var(--font); cursor: pointer; }
.lay-seg button.on { background: var(--ink); color: var(--yellow); } [data-theme="dark"] .lay-seg button.on { background: var(--yellow); color: var(--ink); }
.lay-tip { margin: 2px 0 0; display: flex; gap: 6px; font-size: 12px; line-height: 17px; color: var(--text-3); } .lay-tip .ic { flex: none; width: 16px; height: 16px; margin-top: 1px; }

body.lay-no-card #study #practice { display: none !important; }
body.lay-card-top #study section.left > #practice { order: -1; }
body.lay-side-left #study .lesson-body > .right { order: -1; }
body.lay-side-left:not(.panel-hidden):not(.panel-float) .lesson-body { grid-template-columns: clamp(360px, 32vw, 500px) minmax(0, 1fr); }
body.lay-side-left.ai-wide:not(.panel-hidden):not(.panel-float) .lesson-body { grid-template-columns: clamp(480px, 46vw, 820px) minmax(0, 1fr); }
body.lay-side-left.side-reserve .lesson-body { grid-template-columns: clamp(360px, 32vw, 500px) minmax(0, 1fr) !important; }
body.lay-side-left:not(.panel-hidden):not(.panel-float):not(.ai-wide):not(.side-reserve) #study.side-custom .lesson-body { grid-template-columns: var(--sidew) minmax(0, 1fr); }
body.lay-side-left .side-grip { left: auto; right: 0; } body.lay-side-left .side-grip::after { left: auto; right: 3px; }

body.lay-no-card section.left > .player-wrap:not(.floating):not(.novideo) { margin-top: auto; margin-bottom: auto; }


.cine-ui #grammarDrawer { position: absolute !important; z-index: 9; top: 20px !important; right: 20px !important; left: auto !important; bottom: auto !important;
  width: min(460px, 36vw) !important; height: auto !important; max-height: calc(100% - var(--band, 0px) - var(--dock, 72px) - 40px) !important; overflow: auto;
  border-radius: 10px !important; background: rgba(20,20,20,.94) !important; border: 1px solid rgba(255,255,255,.12) !important; color: #f3efe6; box-shadow: 0 20px 60px rgba(0,0,0,.5) !important; transform: none !important; }
.cine-over .cine-ui #grammarDrawer, .cine-top .cine-ui #grammarDrawer { max-height: calc(100% - var(--dock, 72px) - 40px) !important; }
.cine-top .cine-ui #grammarDrawer { top: auto !important; bottom: calc(var(--dock, 72px) + 20px) !important; max-height: calc(100% - 30vh) !important; }
.cine-ui #grammarDrawer .drawer-h { background: transparent; }
.cine-ui #grammarDrawer > .fp-bar, .cine-ui #grammarDrawer > .fp-resize { display: none !important; }
.cine-idle .cine-ui #grammarDrawer { opacity: 1; }


#layoutReset { display: none !important; }
.lay-reset { display: flex; align-items: center; justify-content: center; gap: 6px; height: 34px; border-radius: 6px ; border: 1.5px dashed var(--line-2); background: transparent; color: var(--text-2); font: 600 12px var(--font); cursor: pointer; }
.lay-reset:hover { border-color: var(--yellow); color: var(--text); } .lay-reset .ic { width: 16px; height: 16px; }

.ap-url { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.ap-url[hidden] { display: none; }
.ap-url input { flex: 1 1 280px; min-width: 0; height: 34px; padding: 0 12px; border-radius: 6px ; border: 1px solid var(--edge); background: var(--card); color: var(--text); font: 500 14px ui-monospace, "Cascadia Mono", Consolas, monospace; }
.ap-url input:focus { outline: none; border-color: var(--edge-2); }
.ap-url small { flex-basis: 100%; font-size: 12px; }

.fp-zone { background: rgba(255, 210, 31, .06); border-style: dashed; transition: background-color .18s, border-color .18s, transform .18s; }
.fp-zone.cur:not(.hot) { opacity: .6; }
.fp-zone.hot { background: rgba(255, 210, 31, .24); }

.player-wrap.cine .cine-ui { color-scheme: dark;
  --bg: #0D0D0D; --bg-2: #151515; --panel: #1C1C1C; --panel-solid: #1E1E1E; --panel-2: #272727;
  --line: rgba(255,255,255,.10); --line-2: rgba(255,255,255,.18); --outline: #FFD21F;
  --text: #F3EFE6; --text-2: #D9D2C3; --text-3: #A9A293; --muted: #A9A293;
  --hover: rgba(255,255,255,.07); --active: rgba(255,201,77,.20); --accent: #FFC94D; --accent-2: #FFC94D;
  --grad-soft: linear-gradient(135deg, #2B2514 0%, #201D14 100%); --yellow-soft: #2B2514; }
.cine-ui #grammarDrawer { background: #181818 !important; font-size: 14px; }
.cine-ui #grammarDrawer .drawer-h, .cine-ui #grammarDrawer .drawer-h * { color: var(--text); }
.cine-ui #grammarDrawer .g-sentence { color: var(--text); font-size: 20px; border-color: rgba(255,201,77,.35); }
.cine-ui #grammarDrawer .g-tag { color: var(--text); background: var(--panel-2); border-color: var(--line-2); }
.cine-ui #grammarDrawer .g-tag b { color: var(--accent); }
.cine-ui #grammarDrawer .pop-sec h4 { color: var(--text-2); }
.cine-ui #grammarDrawer .clause { background: var(--panel-2); border-color: var(--line-2); }
.cine-ui #grammarDrawer .clause.main { border-color: rgba(255,201,77,.45); }
.cine-ui #grammarDrawer .clause-h, .cine-ui #grammarDrawer .clause-h b { color: var(--text); }
.cine-ui #grammarDrawer .pill { color: var(--text); background: rgba(255,255,255,.08); border-color: var(--line-2); }
.cine-ui #grammarDrawer .role { background: #1E1E1E; border-color: var(--line-2); }
.cine-ui #grammarDrawer .role .rt, .cine-ui #grammarDrawer .pos-tok { color: var(--text); }
.cine-ui #grammarDrawer .role small, .cine-ui #grammarDrawer .pos-tok small { color: var(--text-2); }
.cine-ui #grammarDrawer .arrow { color: var(--text-3); }
.cine-ui #grammarDrawer .gpoint { color: var(--text); background: var(--panel-2); border-color: var(--line-2); }
.cine-ui #grammarDrawer .gp-f { color: #1A1A1A; background: #FFC94D; }
.cine-ui #grammarDrawer .gp-en { color: var(--text-2); }
.cine-ui #grammarDrawer .legend { color: var(--text-3); } .cine-ui #grammarDrawer .legend .lg b { color: var(--text); }
.cine-ui #grammarDrawer .ai-pick-btn { background: var(--panel-2); border-color: var(--line-2); color: var(--text); }
.cine-ui #grammarDrawer .ai-pick-btn:hover { background: #2B2514; border-color: #FFC94D; box-shadow: none; }
.cine-ui #grammarDrawer .ai-pick-btn b { color: var(--text); } .cine-ui #grammarDrawer .ai-pick-btn small { color: var(--text-2); }
.cine-ui #grammarDrawer .muted, .cine-ui #grammarDrawer .small { color: var(--text-2); }


.logo-dot.tu-logo { color: #141414; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.tu-mini { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50% ; margin-right: 5px; font: 600 12px/12px var(--font-display, var(--font)); color: #141414; background: linear-gradient(135deg, #FFE066, #FFB800 55%, #FF8A00); vertical-align: -3px; }
#aiModeSeg .tu-seg[hidden] { display: none; }
#aiModeSeg .tu-seg span[data-notr] { font-weight: 600; letter-spacing: -.01em; }
.tu-bar { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px ; background: var(--grad-soft, var(--panel-2)); border: 1px solid var(--line-2); }
.tu-bar .logo-dot { width: 22px; height: 22px; font-size: 12px; }
.tu-bar b { font: 600 14px/14px var(--font-display, var(--font)); letter-spacing: -.01em; }
.tu-ver { font: 600 12px/12px var(--font); padding: 3px 6px; border-radius: 6px ; background: #141414; color: #FFD21F; letter-spacing: .02em; }
[data-theme="dark"] .tu-ver { background: #FFD21F; color: #141414; }
.tu-live { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.tu-live i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: none; }
.tu-q { font: 600 12px/12px var(--font); color: var(--text-3); font-variant-numeric: tabular-nums; }
.tu-think { display: flex; align-items: center; gap: 9px; padding: 2px 0; font-size: 14px; font-weight: 600; color: var(--text-2); }
.tu-think span:last-child { background: linear-gradient(90deg, var(--text-3) 0%, var(--text) 45%, var(--text-3) 90%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: tu-shine 1.4s linear infinite; }
.tu-orb { width: 14px; height: 14px; flex: none; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FFF3B0, #FFB800 55%, #FF8A00); animation: tu-pulse 1s ease-in-out infinite; will-change: transform; }
@keyframes tu-shine { to { background-position: -220% 0; } }
@keyframes tu-pulse { 0%, 100% { transform: scale(.78); opacity: .75; } 50% { transform: scale(1); opacity: 1; } }
.tu-speed { color: #16a34a; font-weight: 600; font-variant-numeric: tabular-nums; }
[data-theme="dark"] .tu-speed { color: #4ade80; }
.tu-follow { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 10px; animation: tu-in .18s ease-out; }
.tu-follow .chip { border-style: dashed; }
@keyframes tu-in { from { opacity: 0; transform: translateY(3px); } }
.tu-hello { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 10px ; background: var(--grad-soft, var(--panel-2)); border: 1px solid var(--line-2); margin: 6px 2px 10px; }
.tu-hello .logo-dot { width: 34px; height: 34px; font-size: 16px; flex: none; }
.tu-hello b { font: 600 16px/19px var(--font-display, var(--font)); }
.tu-hello p { margin: 4px 0 0; font-size: 14px; line-height: 21px; color: var(--text-2); }
.tu-starters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 2px; }
.tu-start { text-align: left; padding: 11px 12px; border-radius: 10px ; border: 1px solid var(--edge); background: var(--panel-solid, var(--panel)); color: var(--text); font: 600 14px/19px var(--font); cursor: pointer; transition: border-color .12s, background-color .12s, transform .1s; }
.tu-start:hover { border-color: var(--edge-2); background: var(--yellow-soft, #FFF6CC); }
.tu-start:active { transform: scale(.98); }
.tool.tool-tu .ic { color: #FF8A00; }
#chatForm button[type="submit"].stop { background: #141414; color: #FFD21F; border-color: #141414; }
[data-theme="dark"] #chatForm button[type="submit"].stop { background: #FFD21F; color: #141414; }
.ap-pref { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 4px; cursor: pointer; }
.ap-pref input { margin-top: 3px; accent-color: #FFB800; width: 16px; height: 16px; }
.ap-pref span { display: flex; flex-direction: column; gap: 2px; } .ap-pref small { color: var(--text-2); font-size: 12px; font-weight: 500; }
.ap-h .tu-ver { margin-left: -2px; }
html.lite .tu-orb, html.lite .tu-think span:last-child, html.lite .tu-follow { animation: none; }
@media (prefers-reduced-motion: reduce) { .tu-orb, .tu-think span:last-child, .tu-follow { animation: none; } .tu-think span:last-child { color: var(--text-2); background: none; } }
[data-body="ai"].ai-api .ai-zoom { display: none; } 
[data-body="ai"].ai-tu.tu-empty #quickPrompts { display: none; } 
#providerChips .tu-bar { flex: 1; }

button, a, [role="button"], .chip, .tool, .line, .w, .seg button, .prov, .tu-start { touch-action: manipulation; }


.logo-dot.tu-logo { padding: 0; overflow: hidden; }
.logo-dot.tu-logo .tu-mark { width: 78%; height: 78%; display: block; }
.tu-mark .tu-spark { transform-box: fill-box; transform-origin: center; }
.tu-busy { box-shadow: none; animation: tu-glow 1.6s ease-in-out infinite; }
.tu-busy .tu-spark { animation: tu-spin 1.6s cubic-bezier(.55,.05,.35,1) infinite; }
@keyframes tu-spin { 0% { transform: rotate(0) scale(1); } 45% { transform: rotate(90deg) scale(1.25); } 100% { transform: rotate(180deg) scale(1); } }
@keyframes tu-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,179,0,.0); } 50% { box-shadow: 0 0 0 5px rgba(255,179,0,.16); } }
.tu-think { display: flex; align-items: center; gap: 10px; padding: 4px 0; min-height: 28px; }
.tu-think .logo-dot { width: 26px; height: 26px; border-radius: 6px ; flex: none; }
.tu-think-t { font-size: 14px; font-weight: 600; background: linear-gradient(90deg, var(--text-3) 0%, var(--text) 45%, var(--text-3) 90%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: tu-shine 1.6s linear infinite; }
.tu-el { font: 500 12px/12px var(--font); color: var(--text-3); font-variant-numeric: tabular-nums; }
.tu-tail { margin-top: 6px; } .tu-tail[hidden] { display: none; }
.tu-tail .logo-dot { width: 18px; height: 18px; border-radius: 50% ; }

#chat .msg.ai.tu-ans { align-self: stretch; max-width: 100%; background: transparent; border: 0; padding: 4px 2px 2px 36px; position: relative; }
#chat .msg.ai.tu-ans::before { content: ""; position: absolute; left: 0; top: 6px; width: 26px; height: 26px; border-radius: 6px ; background: var(--tu-mark-bg); }
#chat .msg.ai.tu-ans .tu-think { margin-left: -36px; }
#chat .msg.ai.tu-ans:has(.tu-think)::before { display: none; }
#chat .msg.ai.tu-ans .md { font-size: 14px; line-height: 24px; }
#chat .msg.ai.tu-ans .meta { margin-top: 8px; }
:root { --tu-mark-bg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cdefs%3E%3ClinearGradient id='t' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%232A2A31'/%3E%3Cstop offset='1' stop-color='%23141418'/%3E%3C/linearGradient%3E%3ClinearGradient id='g' x1='8' y1='10' x2='40' y2='40' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%23FFE58A'/%3E%3Cstop offset='.5' stop-color='%23FFB300'/%3E%3Cstop offset='1' stop-color='%23FF6A00'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='48' height='48' rx='13' fill='url(%23t)'/%3E%3Cg transform='translate(5.3 5.3) scale(.78)'%3E%3Cpath d='M10.5 14.5h21M21 14.5v20' fill='none' stroke='url(%23g)' stroke-width='6' stroke-linecap='round'/%3E%3Cpath d='M35 23q1.15 5.35 6.5 6.5-5.35 1.15-6.5 6.5-1.15-5.35-6.5-6.5 5.35-1.15 6.5-6.5z' fill='url(%23g)'/%3E%3C/g%3E%3C/svg%3E") center / cover no-repeat; }
html.lite .tu-busy, html.lite .tu-busy .tu-spark, html.lite .tu-think-t { animation: none; }
@media (prefers-reduced-motion: reduce) { .tu-busy, .tu-busy .tu-spark { animation: none; } .tu-think-t { animation: none; color: var(--text-2); background: none; } }
#chatForm button[type="submit"].stop .stop-sq { fill: #FFD21F; stroke: none; }
[data-theme="dark"] #chatForm button[type="submit"].stop .stop-sq { fill: #141414; }
#chat .msg.ai.tu-ans .meta .logo-dot { display: none; } 


.ag-dot { --ag: #FFB300; display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 6px ; color: var(--ag); background: color-mix(in srgb, var(--ag) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ag) 28%, transparent); }
.ag-dot .ic { width: 16px; height: 16px; }
.ag-dot.sm { width: 20px; height: 20px; border-radius: 6px ; } .ag-dot.sm .ic { width: 12px; height: 12px; }
[data-theme="dark"] .ag-dot { background: color-mix(in srgb, var(--ag) 22%, transparent); color: color-mix(in srgb, var(--ag) 70%, #fff); }
.ag-head { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 12px; color: var(--text-2); }
.ag-head b { font: 600 12px/12px var(--font); color: var(--text); letter-spacing: -.01em; }
.ag-head span { color: var(--text-3); font-weight: 500; }
.ag-head i { font-style: normal; color: var(--text-3); margin: 0 2px; }
.ag-bar { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 8px 1px 2px; width: 100%; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.ag-bar::-webkit-scrollbar { display: none; }
.ag-chip { --ag: #FFB300; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px 0 8px; border-radius: 6px ; border: 1px solid var(--edge); background: var(--panel-solid, var(--panel)); color: var(--text-2); font: 600 12px/12px var(--font); cursor: pointer; transition: border-color .12s, background-color .12s, color .12s; }
.ag-chip .ic { width: 16px; height: 16px; color: var(--ag); }
.ag-chip:hover { border-color: var(--ag); color: var(--text); }
.ag-chip.on { border-color: var(--ag); color: var(--text); background: color-mix(in srgb, var(--ag) 14%, var(--panel-solid, var(--panel))); }
#providerChips { flex-wrap: wrap; }
.ag-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 2px; }
.ag-card { --ag: #FFB300; display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 11px 11px 11px 10px; border-radius: 10px ; border: 1px solid var(--edge); background: var(--panel-solid, var(--panel)); color: var(--text); cursor: pointer; transition: border-color .12s, transform .1s, background-color .12s; }
.ag-card:hover { border-color: var(--ag); background: color-mix(in srgb, var(--ag) 6%, var(--panel-solid, var(--panel))); }
.ag-card:active { transform: scale(.98); }
.ag-card span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ag-card b { font: 600 14px/16px var(--font-display, var(--font)); letter-spacing: -.01em; }
.ag-card em { font-style: normal; font: 600 12px/14px var(--font); color: var(--ag); }
[data-theme="dark"] .ag-card em { color: color-mix(in srgb, var(--ag) 65%, #fff); }
.ag-card small { font-size: 12px; line-height: 16px; color: var(--text-2); font-weight: 500; }
.ag-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.tu-follow .chip.act { border-style: solid; }
.tu-follow .chip .ic { width: 16px; height: 16px; margin-right: 4px; }
#chat .msg.ai.tu-ans .ag-head { margin-top: 2px; }
.tu-mini svg { width: 16px; height: 16px; display: block; }

[data-body="ai"].ai-tu #quickPrompts { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent); mask-image: linear-gradient(90deg, #000 90%, transparent); }
[data-body="ai"].ai-tu #quickPrompts::-webkit-scrollbar { display: none; }
[data-body="ai"].ai-tu #quickPrompts .chip { flex: none; }

.ag-ver { display: inline-block; margin-left: 4px; padding: 1px 5px 2px; border-radius: 6px ; font: 600 12px/14px var(--font); letter-spacing: .02em; color: var(--text-2); background: color-mix(in srgb, var(--text) 8%, transparent); vertical-align: 1px; }
.ag-card b .ag-ver { font-size: 12px; }
.ag-chip .ag-v { font: 600 12px/12px var(--font); color: var(--text-3); margin-left: -2px; }
.ag-chip.on .ag-v { color: var(--text-2); }
.ag-badge { display: inline-flex; align-items: center; gap: 5px; margin-left: 10px; padding: 3px 8px 3px 4px; border-radius: 999px; vertical-align: middle; background: color-mix(in srgb, var(--ag) 10%, transparent); border: 1px solid color-mix(in srgb, var(--ag) 30%, transparent); font-size: 12px; }
.ag-badge b { font: 600 12px/12px var(--font); color: var(--text); }
.ag-badge .ag-ver { margin-left: 0; }



.ag-logo { --g1: #FFD21F; --g2: #FF8A00; display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 6px ; background: linear-gradient(145deg, var(--g1), var(--g2)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 1px 2px rgba(0,0,0,.12); }
.ag-logo b { font: 600 12px/12px "InterVariable", "Inter", var(--font), sans-serif; color: #fff; letter-spacing: -.03em; text-shadow: none; }
.ag-logo.sm { width: 20px; height: 20px; border-radius: 6px ; } .ag-logo.sm b { font-size: 8.8px; }
.ag-logo.xs { width: 18px; height: 18px; border-radius: 50% ; } .ag-logo.xs b { font-size: 8px; }
.ag-logo.lg { width: 40px; height: 40px; border-radius: 10px ; } .ag-logo.lg b { font-size: 16px; }
.logo-dot.tu-logo.xs { width: 18px; height: 18px; border-radius: 50% ; }

#providerChips { container-type: inline-size; }
.ag-bar { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; overflow: visible; padding: 8px 0 2px; -webkit-mask-image: none; mask-image: none; }
.ag-chip { min-width: 0; justify-content: center; height: 32px; padding: 0 6px; gap: 5px; }
.ag-chip .ag-n { min-width: 0; }
.ag-chip .ag-v { flex: none; }
@container (max-width: 760px) { .ag-chip .ag-v { display: none; } }
@container (max-width: 640px) { .ag-bar { grid-template-columns: repeat(4, minmax(0, 1fr)); } .ag-chip .ag-v { display: inline; } }
@container (max-width: 470px) { .ag-chip .ag-v { display: none; } }
@container (max-width: 360px) { .ag-bar { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 3px; } .ag-chip { padding: 0; } .ag-chip .ag-n, .ag-chip .ag-v { display: none; } }

[data-body="ai"].ai-tu #quickPrompts { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; }
.quick .chip .ic { width: 16px; height: 16px; margin-right: 4px; color: var(--text-3); }

.ag-mission { display: flex; align-items: center; gap: 12px; width: calc(100% - 4px); margin: 0 2px 8px; padding: 12px; border-radius: 10px ; border: 1.5px solid color-mix(in srgb, #475569 35%, var(--line-2)); background: linear-gradient(135deg, color-mix(in srgb, #94a3b8 12%, var(--panel-solid, var(--panel))), var(--panel-solid, var(--panel))); color: var(--text); text-align: left; cursor: pointer; transition: border-color .12s, transform .1s; }
.ag-mission:hover { border-color: #64748b; } .ag-mission:active { transform: scale(.99); }
.ag-mission span { flex: 1; display: flex; flex-direction: column; gap: 2px; } .ag-mission b { font: 600 14px/17px var(--font-display, var(--font)); } .ag-mission small { font-size: 12px; color: var(--text-2); line-height: 16px; }
.ag-mission > .ic { color: var(--text-3); }
.ag-card .ag-logo { width: 34px; height: 34px; border-radius: 6px ; } .ag-card .ag-logo b { font-size: 14px; }

.tu-trace { margin: 0 0 4px; }
.tu-trace > summary { list-style: none; cursor: pointer; user-select: none; border-radius: 6px ; }
.tu-trace > summary::-webkit-details-marker { display: none; }
.tu-trace.done > summary .tu-think-t { animation: none; background: none; color: var(--text-2); font-weight: 600; font-size: 12px; }
.tu-trace.done > summary .logo-dot { width: 20px; height: 20px; border-radius: 6px ; }
.tu-trace.done > summary::after { content: "›"; margin-left: 2px; color: var(--text-3); font-weight: 600; transition: transform .15s; }
.tu-trace.done[open] > summary::after { transform: rotate(90deg); }
.tu-tok { font: 500 12px/12px ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--text-3); margin-left: auto; }
.tu-trace ol { list-style: none; margin: 4px 0 6px 12px; padding: 0 0 0 14px; border-left: 1px solid var(--edge); }
.tu-trace li { position: relative; font: 500 12px/19px ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--text-2); opacity: 0; animation: tu-step .22s ease-out forwards; animation-delay: var(--d, 0ms); }
.tu-trace li::before { content: ""; position: absolute; left: -18px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--panel-solid, var(--panel)); border: 1.5px solid #FFB300; }
.tu-trace.done li::before { background: #22c55e; border-color: #22c55e; }
@keyframes tu-step { from { opacity: 0; transform: translateX(-4px); } to { opacity: 1; transform: none; } }
#chat .msg.ai.tu-ans:has(.tu-trace)::before { display: none; }
#chat .msg.ai.tu-ans .tu-trace { margin-left: -36px; }
#chat .msg.ai.tu-ans .tu-trace ol { margin-left: 12px; }
.ag-saved { display: inline-flex; align-items: center; gap: 4px; margin-right: 8px; padding: 2px 8px; border-radius: 10px ; background: color-mix(in srgb, #22c55e 14%, transparent); color: #15803d; font-weight: 600; }
[data-theme="dark"] .ag-saved { color: #4ade80; }
.ag-saved .ic { width: 12px; height: 12px; }
html.lite .tu-trace li { animation: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .tu-trace li { animation: none; opacity: 1; } }

.unit-progress { flex: 1 1 auto; min-width: 220px; max-width: 760px; height: 36px; gap: 12px; padding: 0 6px 0 12px; border-radius: 999px; background: var(--panel-solid, var(--panel)); border: 1px solid var(--edge); box-sizing: border-box; }
.unit-progress .up-label { flex: none; display: inline-flex; align-items: center; gap: 5px; font: 600 12px var(--font); color: var(--text-2); }
.unit-progress .up-label .ic { width: 16px; height: 16px; color: var(--text-3); }
.unit-progress .up-label b { font: 600 14px/14px var(--font-display, var(--font)); color: var(--text); }
.unit-progress .up-label em { font-style: normal; font-weight: 600; color: var(--text-3); margin-left: -3px; }
.unit-progress .ub-segs { flex: 1 1 auto; max-width: none; min-width: 60px; gap: 5px; }
.ub-seg { height: 22px; }
.unit-progress .ub-count { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px 0 8px; border-radius: 999px; background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text-3); font: 600 12px var(--font); }
.unit-progress .ub-count b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.unit-progress .ub-count em { font-style: normal; font-variant-numeric: tabular-nums; margin-left: -2px; }
.unit-progress .ub-count .ic { width: 16px; height: 16px; }
.unit-progress .ub-count.full { background: color-mix(in srgb, #22c55e 16%, transparent); color: #15803d; }
.unit-progress .ub-count.full b { color: #15803d; }
[data-theme="dark"] .unit-progress .ub-count.full, [data-theme="dark"] .unit-progress .ub-count.full b { color: #4ade80; }

.lesson-bar #backBtn .ic { width: 20px; height: 20px; }
.lesson-xp { display: inline-flex; align-items: center; gap: 4px; }
.lesson-xp .ic { width: 16px; height: 16px; color: #FF8A00; }
.lesson-xp b { font-variant-numeric: tabular-nums; } .lesson-xp small { font-size: 12px; font-weight: 600; color: var(--text-3); letter-spacing: .03em; }
.tu-mini { background: linear-gradient(145deg,#2A2A31,#141418) !important; display: inline-grid; place-items: center; }
#chat .msg.ai.tu-ans:has(.tu-trace) { padding-left: 2px; }
#chat .msg.ai.tu-ans .tu-trace { margin-left: 0; }
#chat .msg.ai.tu-ans:has(.tu-trace) > .ag-head, #chat .msg.ai.tu-ans:has(.tu-trace) > .md, #chat .msg.ai.tu-ans:has(.tu-trace) > .meta { margin-left: 34px; }
.tu-trace > summary { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.tu-trace > summary .logo-dot { width: 26px; height: 26px; border-radius: 6px ; flex: none; }
.tu-trace ol { margin-left: 13px; }
.qp-toggle i { font-style: normal; margin-left: 4px; color: var(--text-3); transition: transform .15s; }
.quick.open .qp-toggle i { transform: rotate(180deg); }
.quick .qp-toggle { display: none; }
[data-body="ai"].ai-tu .quick .qp-toggle { display: inline-flex; }
[data-body="ai"].ai-tu .quick:not(.open) .chip:not(.qp-toggle) { display: none; }
#chat .msg.ai.tu-ans .tu-trace > summary.tu-think { margin-left: 0; }
.tu-trace > summary .tu-think-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tu-trace > summary .tu-el, .tu-trace > summary .tu-tok { flex: none; white-space: nowrap; }

.ag-chip .ag-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-chip > span.ag-logo, .ag-chip > span.logo-dot { overflow: visible; }
@container (max-width: 640px) { .ag-chip { gap: 4px; padding: 0 4px; font-size: 12px; } }
@container (max-width: 360px) { .ag-chip .ag-n { display: none; } .ag-chip > span.ag-logo, .ag-chip > span.logo-dot { display: inline-grid !important; } }
@container (max-width: 899px) { .ag-bar { grid-template-columns: repeat(4, minmax(0, 1fr)); } .ag-chip .ag-v { display: inline; } }
@container (max-width: 470px) { .ag-chip .ag-v { display: none; } }
@container (max-width: 360px) { .ag-bar { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 3px; } .ag-chip { padding: 0; } .ag-chip .ag-n, .ag-chip .ag-v { display: none; } }


:root { --blob: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2048%2048%22%3E%3Cpath%20d%3D%22M14.66%207.82A10.4%2010.4%200%200%201%2033.34%207.82A10.4%2010.4%200%200%201%2042.68%2024A10.4%2010.4%200%200%201%2033.34%2040.18A10.4%2010.4%200%200%201%2014.66%2040.18A10.4%2010.4%200%200%201%205.32%2024A10.4%2010.4%200%200%201%2014.66%207.82Z%22%2F%3E%3C%2Fsvg%3E"); --tu-mark-bg: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2248%22%20height%3D%2248%22%20viewBox%3D%220%200%2048%2048%22%20aria-hidden%3D%22true%22%3E%3Cpath%20class%3D%22tu-out%22%20d%3D%22M21%209h6v3h-6zM9%2012h30v3h-30zM3%2015h42v3h-42zM3%2018h42v3h-42zM3%2021h42v3h-42zM9%2024h30v3h-30zM15%2027h18v3h-18zM15%2030h18v3h-18zM15%2033h18v3h-18zM15%2036h6v3h-6zM27%2036h6v3h-6z%22%20fill%3D%22%23fff%22%20stroke%3D%22%23fff%22%20stroke-width%3D%223.2%22%20stroke-linejoin%3D%22round%22%2F%3E%3Cpath%20class%3D%22tu-ant%22%20fill%3D%22%23FFC21A%22%20d%3D%22M21%209h6v3h-6z%22%2F%3E%3Cpath%20class%3D%22tu-px%22%20fill%3D%22%23FFD43B%22%20d%3D%22M9%2012h30v3h-30z%22%2F%3E%3Cpath%20class%3D%22tu-px%22%20fill%3D%22%23FFC52E%22%20d%3D%22M3%2015h42v3h-42z%22%2F%3E%3Cpath%20class%3D%22tu-px%22%20fill%3D%22%23FFB521%22%20d%3D%22M3%2018h42v3h-42z%22%2F%3E%3Cpath%20class%3D%22tu-px%22%20fill%3D%22%23FFA514%22%20d%3D%22M3%2021h42v3h-42z%22%2F%3E%3Cpath%20class%3D%22tu-px%22%20fill%3D%22%23FF9608%22%20d%3D%22M9%2024h30v3h-30z%22%2F%3E%3Cpath%20class%3D%22tu-px%22%20fill%3D%22%23FF8800%22%20d%3D%22M15%2027h18v3h-18z%22%2F%3E%3Cpath%20class%3D%22tu-px%22%20fill%3D%22%23FF7D00%22%20d%3D%22M15%2030h18v3h-18z%22%2F%3E%3Cpath%20class%3D%22tu-px%22%20fill%3D%22%23FF7300%22%20d%3D%22M15%2033h18v3h-18z%22%2F%3E%3Cpath%20class%3D%22tu-px%22%20fill%3D%22%23FF6A00%22%20d%3D%22M15%2036h6v3h-6zM27%2036h6v3h-6z%22%2F%3E%3Cg%20class%3D%22tu-eyes%22%20fill%3D%22%2317171C%22%3E%3Cpath%20d%3D%22M12%2018h6v3h-6zM12%2021h6v3h-6zM30%2018h6v3h-6zM30%2021h6v3h-6z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); }
.ag-logo { --g1: #a5b4fc; --g2: #4338ca; position: relative; display: inline-grid; place-items: center; flex: none !important; width: 30px; height: 30px; padding: 0; border-radius: 0 ; box-shadow: none;
  background: linear-gradient(180deg, var(--g1), var(--g2)); -webkit-mask: var(--blob) center / 100% 100% no-repeat; mask: var(--blob) center / 100% 100% no-repeat; }
.ag-logo > svg { display: block; width: 100%; height: 100%; }
.ag-logo.sm { width: 22px; height: 22px; border-radius: 0 ; } .ag-logo.xs { width: 20px; height: 20px; border-radius: 0 ; } .ag-logo.lg { width: 44px; height: 44px; border-radius: 0 ; }
.ag-card .ag-logo { width: 38px; height: 38px; border-radius: 0 ; } .ag-mission .ag-logo { width: 40px; height: 40px; }

.ag-card > span.ag-logo, .ag-mission > span.ag-logo { flex: none; display: inline-grid; }
.ag-card .ag-ver, .ag-mission .ag-ver, .ag-head .ag-ver { display: inline-block; flex: none; width: auto; }
.ag-card b .ag-ver { margin-left: 5px; vertical-align: 2px; }

.logo-dot.tu-logo, .tu-mini { background: transparent !important; box-shadow: none !important; border-radius: 0 !important; overflow: visible !important; padding: 0; }
.logo-dot.tu-logo .tu-mark, .tu-mini .tu-mark { width: 100%; height: 100%; display: block; filter: drop-shadow(0 1px 1.2px rgba(0,0,0,.22)); }
.tu-mini { width: 18px !important; height: 18px !important; margin-right: 5px; }
.tu-mini svg { width: 20px; height: 20px; }
#chat .msg.ai.tu-ans::before { background: var(--tu-mark-bg) center / contain no-repeat; border-radius: 0 ; filter: drop-shadow(0 1px 1.2px rgba(0,0,0,.22)); }

.tu-mark .tu-eyes, .tu-mark .tu-ant { transform-box: view-box; }
.tu-busy { animation: none !important; box-shadow: none !important; }
.tu-busy .tu-eyes { animation: tu-look 2.4s steps(1, end) infinite; }
.tu-busy .tu-ant { animation: tu-ant 1.2s steps(1, end) infinite; }
@keyframes tu-look { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-1.5px); } 50% { transform: translateX(0) scaleY(.2); transform-origin: 24px 19.5px; } 55% { transform: none; } 75% { transform: translateX(1.5px); } }
@keyframes tu-ant { 0%, 100% { fill: #FFC21A; } 50% { fill: #FFF6CC; } }
html.lite .tu-busy .tu-eyes, html.lite .tu-busy .tu-ant { animation: none; }
@media (prefers-reduced-motion: reduce) { .tu-busy .tu-eyes, .tu-busy .tu-ant { animation: none; } }


.lesson-bar { gap: 10px; }
.lesson-bar .lb-sp { flex: 1 1 auto; min-width: 8px; }
.lesson-bar .unit-progress { position: relative; flex: none; min-width: 0; max-width: none; height: auto; padding: 0; gap: 0; border: 0; border-radius: 0 ; background: none; }
.unit-progress .uc-btn { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 10px 0 4px; border-radius: 999px; border: 1px solid var(--edge); background: var(--panel-solid, var(--panel)); color: var(--text); cursor: pointer; transition: border-color var(--mo-fast, .16s) var(--mo-ease, ease), background-color var(--mo-fast, .16s) var(--mo-ease, ease); }
.unit-progress .uc-btn:hover, .unit-progress.open .uc-btn { border-color: color-mix(in srgb, var(--text) 30%, var(--line-2)); }
.unit-progress .uc-btn > .ic { width: 16px; height: 16px; color: var(--text-3); transition: transform var(--mo-fast, .16s) var(--mo-ease, ease); }
.unit-progress.open .uc-btn > .ic { transform: rotate(180deg); }
.uc-ring { width: 32px; height: 32px; flex: none; transform: rotate(-90deg); }
.uc-ring circle { fill: none; stroke-width: 4; transition: stroke .3s; }
.uc-ring .ur-bg { stroke: transparent; }
.uc-ring .ur-a { stroke: var(--line-2); stroke-linecap: butt; }
[data-theme="dark"] .uc-ring .ur-a { stroke: rgba(255,255,255,.16); }
.uc-ring .ur-a.done { stroke: var(--yellow); } .uc-ring .ur-a.great { stroke: #22B45A; }
.uc-ring .ur-a.cur { stroke: var(--ink, #141414); }
[data-theme="dark"] .uc-ring .ur-a.cur { stroke: #fff; }
.uc-ring .ur-a.cur.done { stroke: #E0A100; } .uc-ring .ur-a.cur.great { stroke: #15803d; }
.uc-ring text { transform: rotate(90deg); transform-origin: 18px 18px; font: 600 12px var(--font-display, var(--font)); fill: var(--text); font-variant-numeric: tabular-nums; }
.uc-t { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.uc-t b { font: 600 14px/16px var(--font-display, var(--font)); white-space: nowrap; font-variant-numeric: tabular-nums; }
.uc-t b em { font-style: normal; font-weight: 600; color: var(--text-3); }
.uc-t small { font: 500 12px/14px var(--font); color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.unit-progress.full .uc-t small { color: #15803d; } [data-theme="dark"] .unit-progress.full .uc-t small { color: #4ade80; }
.unit-progress .um-pop { position: absolute; z-index: 60; top: calc(100% + 8px); left: 0; width: max(300px, min(420px, 80vw)); padding: 14px; border-radius: 10px ; border: 1px solid var(--edge); background: var(--panel-solid, var(--panel)); box-shadow: 0 14px 40px rgba(0,0,0,.16); animation: mo-pop var(--mo-mid, .22s) var(--mo-ease, ease) both; transform-origin: 24px 0; }
.unit-progress .um-pop[hidden] { display: none; }
.um-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.um-h > b { font: 600 14px var(--font-display, var(--font)); } .um-h > b em { font-style: normal; color: var(--text-3); font-weight: 600; }
.um-h > span { font: 500 12px var(--font); color: var(--text-3); } .um-h > span b { color: var(--text); }
.unit-progress .um-pop .ub-segs { display: grid; grid-template-columns: repeat(var(--n, 6), 1fr); gap: 6px; max-width: none; min-width: 0; }
.unit-progress .um-pop .ub-seg { height: 32px; border-radius: 6px ; background: color-mix(in srgb, var(--text) 6%, transparent); font: 600 12px var(--font); color: var(--text-2); display: grid; place-items: center; transition: background-color var(--mo-fast, .16s) var(--mo-ease, ease), transform var(--mo-fast, .16s) var(--mo-ease, ease); }
.unit-progress .um-pop .ub-seg::before { display: none; }
.unit-progress .um-pop .ub-seg:hover { background: color-mix(in srgb, var(--text) 11%, transparent); }
.unit-progress .um-pop .ub-seg:active { transform: scale(.95); }
.unit-progress .um-pop .ub-seg.done { background: var(--yellow); color: #141414; }
.unit-progress .um-pop .ub-seg.great { background: #22B45A; color: #fff; }
.unit-progress .um-pop .ub-seg.cur { box-shadow: inset 0 0 0 2px var(--ink, #141414); }
[data-theme="dark"] .unit-progress .um-pop .ub-seg.cur { box-shadow: inset 0 0 0 2px #fff; }
.um-legend { display: flex; align-items: center; gap: 6px; margin: 10px 0 12px; font: 500 12px var(--font); color: var(--text-3); }
.um-legend i { width: 10px; height: 10px; border-radius: 3px ; margin-left: 6px; } .um-legend i:first-child { margin-left: 0; }
.um-legend .lg-d { background: var(--yellow); } .um-legend .lg-g { background: #22B45A; } .um-legend .lg-c { box-shadow: inset 0 0 0 2px var(--text); }
.um-nav { display: flex; justify-content: space-between; gap: 8px; }
.um-nav .chip { display: inline-flex; align-items: center; gap: 4px; } .um-nav .chip .ic { width: 16px; height: 16px; } .um-nav .chip[disabled] { opacity: .45; cursor: default; }
@media (max-width: 760px) { .uc-t small { display: none; } .unit-progress .uc-btn { gap: 6px; } }


:root { --mo-ease: cubic-bezier(.2, .85, .25, 1); --mo-spring: cubic-bezier(.25, 1.25, .45, 1); --mo-fast: 160ms; --mo-mid: 220ms; --mo-slow: 320ms; }
@keyframes mo-pop { from { opacity: 0; transform: translateY(-4px) scale(.97); } }
@keyframes mo-rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes mo-fade { from { opacity: 0; } }
.chip, .btn, .btn-grad, .icon-btn, .tool, .ag-chip, .ag-card, .ag-mission, .nav-btn, .mode-tabs button, #rightTabs button, .seg button { transition-duration: var(--mo-fast); transition-timing-function: var(--mo-ease); }
.pz-pop, .lay-menu, .xmenu, .qp-pop { animation: mo-pop var(--mo-mid) var(--mo-ease) both; }
[data-body]:not([hidden]) { animation: mo-fade var(--mo-mid) var(--mo-ease); }
@media (prefers-reduced-motion: reduce) { .unit-progress .um-pop, .pz-pop, .lay-menu, .xmenu, .qp-pop, [data-body] { animation: none !important; } }
html.lite .unit-progress .um-pop, html.lite .pz-pop, html.lite [data-body] { animation: none !important; }


.um-legend i { display: inline-block; flex: none; margin: 0 2px 0 12px; }
.um-legend i:first-child { margin-left: 0; }


.cmdk-btn { display: inline-flex; align-items: center; gap: 8px; height: 32px; min-width: 0; width: clamp(180px, 26vw, 360px); padding: 0 6px 0 8px; border-radius: 6px ; border: 1px solid var(--edge); background: var(--panel-solid, var(--panel)); color: var(--text-3); font: 500 14px var(--font); cursor: pointer; transition: border-color var(--mo-fast) var(--mo-ease), color var(--mo-fast) var(--mo-ease); }
.cmdk-btn:hover { border-color: color-mix(in srgb, var(--text) 28%, var(--line-2)); color: var(--text-2); }
.cmdk-btn .cmdk-mark { width: 20px; height: 20px; flex: none; } .cmdk-btn .cmdk-mark svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 1px 1px rgba(0,0,0,.2)); }
.cmdk-btn .cmdk-t { flex: 1; min-width: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-btn kbd, .cmdk kbd { font: 600 12px/12px var(--font); padding: 4px 6px; border-radius: 6px ; background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text-3); border: 1px solid var(--line-2); white-space: nowrap; }
@media (max-width: 980px) { .cmdk-btn { width: 34px; padding: 0; justify-content: center; } .cmdk-btn .cmdk-t, .cmdk-btn kbd { display: none; } }
.cmdk-back { position: fixed; inset: 0; z-index: 90; background: rgba(5,6,12,.38); backdrop-filter: none; animation: mo-fade var(--mo-mid) var(--mo-ease); }
.cmdk { position: fixed; z-index: 91; top: 12vh; left: 50%; transform: translateX(-50%); width: min(640px, calc(100vw - 32px)); max-height: 70vh; display: flex; flex-direction: column; border-radius: 10px ; background: var(--panel-solid, var(--panel)); border: 1px solid var(--edge); box-shadow: 0 24px 70px rgba(0,0,0,.28); overflow: hidden; animation: ck-in var(--mo-mid) var(--mo-ease); }
@keyframes ck-in { from { opacity: 0; transform: translateX(-50%) translateY(-6px) scale(.985); } }
.cmdk[hidden], .cmdk-back[hidden] { display: none; }
.ck-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.ck-in > .ic { width: 20px; height: 20px; color: var(--text-3); flex: none; }
.ck-in input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: 500 16px var(--font); }
.ck-list { overflow: auto; padding: 6px; flex: 1; min-height: 0; }
.ck-g { padding: 10px 10px 4px; font: 600 12px var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.ck-it { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px ; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.ck-it.on { background: color-mix(in srgb, var(--yellow, #FFD21F) 22%, transparent); }
[data-theme="dark"] .ck-it.on { background: rgba(255,255,255,.08); }
.ck-ic { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 6px ; background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text-2); }
.ck-ic .ic { width: 16px; height: 16px; } .ck-ic .ag-logo, .ck-ic .logo-dot { width: 22px; height: 22px; }
.ck-ic:has(.ag-logo), .ck-ic:has(.tu-logo) { background: none; }
.ck-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ck-t b { font: 600 14px/18px var(--font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ck-t small { font: 500 12px/16px var(--font); color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ck-empty { padding: 22px; text-align: center; color: var(--text-3); font-size: 14px; }
.ck-foot { display: flex; align-items: center; gap: 14px; padding: 9px 14px; border-top: 1px solid var(--line-2); font: 500 12px var(--font); color: var(--text-3); }
.ck-foot kbd { margin-right: 3px; } .ck-foot .sp { flex: 1; }
.ck-brand { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text-2); } .ck-brand .logo-dot { width: 18px; height: 18px; }
@media (max-width: 560px) { .ck-foot span:not(.ck-brand):not(.sp) { display: none; } }


.team-modal { width: min(920px, 94vw); }
.team-modal .modal-h h2 { display: inline-flex; align-items: center; gap: 8px; } .team-modal .modal-h h2 .ic { width: 20px; height: 20px; }
.tb-hero { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 10px ; background: linear-gradient(135deg, color-mix(in srgb, #FFB300 14%, var(--panel-solid, var(--panel))), var(--panel-solid, var(--panel))); border: 1.5px solid color-mix(in srgb, #FFB300 30%, var(--line-2)); }
.tb-mascot { width: 48px; height: 48px; flex: none; } .tb-mascot svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 3px rgba(0,0,0,.2)); }
.tb-hero > div:not(.tb-kpi) { display: flex; flex-direction: column; flex: 1; min-width: 0; } .tb-hero > div b { font: 600 16px var(--font-display, var(--font)); } .tb-hero > div span { font-size: 12px; color: var(--text-2); }
.tb-kpi { display: flex; gap: 18px; } .tb-kpi span { display: flex; flex-direction: column; align-items: flex-end; font: 500 12px var(--font); color: var(--text-3); white-space: nowrap; } .tb-kpi b { font: 600 20px/22px var(--font-display, var(--font)); color: var(--text); font-variant-numeric: tabular-nums; }
.tb-mistakes { margin: 14px 0; } .tb-mistakes h4 { margin: 0 0 8px; font: 600 12px var(--font); letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.tb-mistakes > div { display: flex; flex-wrap: wrap; gap: 8px; }
.tb-mis { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px ; background: color-mix(in srgb, var(--text) 5%, transparent); font-size: 14px; }
.tb-mis s { color: #dc2626; text-decoration-thickness: 1.5px; } .tb-mis b { color: #15803d; } [data-theme="dark"] .tb-mis s { color: #f87171; } [data-theme="dark"] .tb-mis b { color: #4ade80; }
.tb-mis .ic { width: 16px; height: 16px; color: var(--text-3); }
.tb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.tb-card { --ag: #4f46e5; display: flex; flex-direction: column; gap: 8px; padding: 13px; border-radius: 10px ; border: 1px solid var(--edge); background: var(--panel-solid, var(--panel)); }
.tb-top { display: flex; align-items: center; gap: 10px; } .tb-top > span:not(.ag-logo) { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; min-width: 0; }
.tb-top b { font: 600 14px var(--font-display, var(--font)); } .tb-top em { flex-basis: 100%; font-style: normal; font: 600 12px var(--font); color: var(--ag); }
[data-theme="dark"] .tb-top em { color: color-mix(in srgb, var(--ag) 60%, #fff); }
.tb-card > p { margin: 0; font-size: 12px; line-height: 17px; color: var(--text-2); min-height: 2.8em; }
.tb-stats { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.tb-stats > span { display: inline-flex; align-items: baseline; gap: 5px; font: 500 12px var(--font); color: var(--text-3); } .tb-stats > span b { font: 600 20px/20px var(--font-display, var(--font)); color: var(--text); } .tb-stats > span .ic { width: 16px; height: 16px; color: #16a34a; align-self: center; }
.tb-spark { display: inline-flex; align-items: flex-end; gap: 3px; height: 26px; } .tb-spark i { width: 7px; border-radius: 3px ; background: color-mix(in srgb, var(--text) 10%, transparent); } .tb-spark i.on { background: var(--ag); }
.tb-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px dashed var(--line-2); }
.tb-err { display: inline-flex; align-items: center; gap: 5px; font: 500 12px var(--font); color: var(--text-3); } .tb-err .ic { width: 16px; height: 16px; } .tb-err.on { color: var(--text); }
.tb-note { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; } .tb-note .ic { width: 16px; height: 16px; }


body.focus-mode .titlebar > *:not(.sp) { opacity: 0; transition: opacity var(--mo-mid) var(--mo-ease); }
body.focus-mode .titlebar:hover > * { opacity: 1; }
body.focus-mode .lesson-bar { opacity: 0; transition: opacity var(--mo-mid) var(--mo-ease); }
body.focus-mode .lesson-bar:hover, body.focus-mode .lesson-bar:focus-within, body.focus-mode .lesson-bar:has(.open) { opacity: 1; }
body.focus-mode #practice .practice-top, body.focus-mode #toolsRow, body.focus-mode #practice .hint-row, body.focus-mode #practice .onb-steps, body.focus-mode #modeGuide { display: none !important; }
body.focus-mode #practice { overflow: visible; position: relative; }
.focus-dock { position: static; z-index: 40; margin: 14px auto 2px; width: min(720px, 100%); }
.focus-dock .fd-ask { animation: mo-rise var(--mo-slow) var(--mo-ease) both; }
.focus-dock .fd-ans { position: absolute; z-index: 40; left: 0; right: 0; margin: 0 auto; width: min(720px, calc(100% - 32px)); bottom: calc(100% + 12px); max-height: min(40vh, 420px); }
#study .left { position: relative; }
.fd-ask { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 6px 0 10px; border-radius: 10px ; border: 1px solid var(--edge); background: var(--panel-solid, var(--panel)); box-shadow: none; }
.fd-ask:focus-within { border-color: #FFB300; box-shadow: 0 12px 34px rgba(0,0,0,.16), 0 0 0 3px color-mix(in srgb, #FFB300 25%, transparent); }
.fd-ask .logo-dot { width: 28px; height: 28px; flex: none; }
.fd-ask input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: 500 14px var(--font); }
.fd-go { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #141414; color: #FFD21F; display: grid; place-items: center; cursor: pointer; } .fd-go .ic { width: 16px; height: 16px; }
[data-theme="dark"] .fd-go { background: #FFD21F; color: #141414; }
.fd-sep { width: 1px; height: 24px; background: var(--line-2); }
.fd-exit { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px; border: 0; border-radius: 10px ; background: transparent; color: var(--text-2); font: 600 12px var(--font); cursor: pointer; } .fd-exit:hover { background: color-mix(in srgb, var(--text) 6%, transparent); } .fd-exit .ic { width: 16px; height: 16px; }
.fd-exit kbd { font: 600 12px/12px var(--font); padding: 3px 5px; border-radius: 6px ; border: 1px solid var(--line-2); color: var(--text-3); }
.fd-ans { max-height: min(46vh, 460px); display: flex; flex-direction: column; border-radius: 10px ; border: 1px solid var(--edge); background: var(--panel-solid, var(--panel)); box-shadow: none; overflow: hidden; animation: mo-rise var(--mo-mid) var(--mo-ease) both; }
.fd-ans[hidden] { display: none; }
.fd-ans-h { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line-2); font: 600 12px var(--font); letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.fd-ans-b { overflow: auto; padding: 12px 16px 14px; } .fd-q { font: 600 14px var(--font); color: var(--text-2); margin-bottom: 8px; }
.fd-ans-b .msg.ai { background: transparent; border: 0; padding: 0; max-width: 100%; }
@media (prefers-reduced-motion: reduce) { .focus-dock, .fd-ans, .tu-hub, .cmdk, .cmdk-back { animation: none !important; } }
.fd-ask input, .fd-ask input:focus { border: 0 !important; box-shadow: none !important; outline: 0 !important; padding: 0 6px; height: 36px; }


.ai-head { container-type: inline-size; }
.ai-top { flex-wrap: nowrap !important; min-width: 0; }
.ai-top > * { flex-shrink: 0; }
.ai-top > .sp { flex: 1 1 0; min-width: 0; }
@container (max-width: 500px) { #aiTplBtn { font-size: 0; gap: 0; width: 32px; padding: 0; justify-content: center; } #aiTplBtn .ic { width: 16px; height: 16px; } }
@container (max-width: 340px) { #aiModeSeg button { padding-inline: 7px; } }


#home { --hm-card: var(--panel-solid, var(--panel)); --hm-line: color-mix(in srgb, var(--text) 11%, transparent); --hm-line-2: color-mix(in srgb, var(--text) 18%, transparent);
  --hm-shadow: 0 1px 2px rgba(15, 15, 25, .04), 0 10px 30px -18px rgba(15, 15, 25, .22); --hm-r: 20px; }
[data-theme="dark"] #home { --hm-shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 12px 32px -18px rgba(0,0,0,.7); }
#home .home-wrap { max-width: 1120px; padding: 0 24px 40px; }

#home .hero, #home .hero.compact { flex-direction: row; justify-content: center; align-items: center; gap: 12px; margin: 30px auto 4px; text-align: center; }
#home .hero .hero-logo, #home .hero.compact .hero-logo { display: none; }
#home .hero h1, #home .hero.compact h1 { font: 600 28px/35px var(--font); letter-spacing: -.025em; margin: 0; color: var(--text); display: flex; align-items: center; justify-content: center; gap: 12px; }
#home .hero h1 .gr-ic { width: 40px; height: 40px; flex: none; display: inline-grid; place-items: center; animation: none; }
#home .hero h1 .gr-ic svg { width: 40px; height: 40px; display: block; }
#home .hero h1 .voice-bars { display: none; }
#home .hero #greetSub { display: none; }

#home .omni-wrap { max-width: 760px; margin: 18px auto 0; }
#home .hero-url.omni { margin: 0; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 18px; min-height: 64px; border-radius: 10px ; border: 1px solid var(--hm-line-2); background: var(--hm-card); box-shadow: none; transition: border-color var(--mo-fast, .15s) var(--mo-ease, ease), box-shadow var(--mo-fast, .15s) var(--mo-ease, ease); }
#home .hero-url.omni:focus-within { border-color: color-mix(in srgb, var(--text) 34%, transparent); box-shadow: var(--hm-shadow), 0 0 0 4px color-mix(in srgb, var(--yellow, #FFD21F) 28%, transparent); }
#home .hero-url.omni .hero-url-ic { width: 22px; height: 22px; background: none; color: var(--text-3); border-radius: 0 ; }
#home .hero-url.omni .hero-url-ic .ic { width: 20px; height: 20px; }
#home .hero-url.omni input { font: 500 16px var(--font); color: var(--text); background: transparent; border: 0; min-width: 0; }
#home .hero-url.omni input::placeholder { color: var(--text-3); font-weight: 500; }
#home .hero-url.omni .btn-grad { height: 48px; padding: 0 20px; border-radius: 10px ; font: 600 14px var(--font); border: 0 !important; box-shadow: none !important; background: var(--text) !important; color: var(--bg, #fff) !important; transform: none !important; }
[data-theme="dark"] #home .hero-url.omni .btn-grad { background: var(--yellow, #FFD21F) !important; color: #141414 !important; }
#home .hero-url.omni .btn-grad:hover { filter: brightness(1.12); }

#home .hm-sugg { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 860px; margin: 14px auto 0; }
#home .hm-sugg:empty { display: none; }
.hm-chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 10px; border-radius: 10px ; border: 1px solid var(--hm-line); background: var(--hm-card); color: var(--text-2); font: 500 14px var(--font); cursor: pointer; transition: border-color var(--mo-fast, .15s), background var(--mo-fast, .15s), color var(--mo-fast, .15s); }
.hm-chip:hover { border-color: var(--hm-line-2); color: var(--text); background: color-mix(in srgb, var(--text) 3%, var(--hm-card)); }
.hm-chip > .ic { width: 16px; height: 16px; color: var(--text-3); }
.hm-chip .ag-logo, .hm-chip .logo-dot { width: 20px; height: 20px; flex: none; }
.hm-chip .logo-dot.tu-logo svg { width: 20px; height: 20px; }
.hm-chip kbd { font: 600 12px/12px var(--font); padding: 3px 5px; border-radius: 6px ; border: 1px solid var(--hm-line-2); color: var(--text-3); background: transparent; }

#home .hm-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; margin: 32px 0 0; }
#home .hm-grid:not(:has(.today-hero:not([hidden]))) { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin-inline: auto; }
#home .hm-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (max-width: 1080px) { #home .hm-grid { grid-template-columns: minmax(0, 1fr); } }

#home .today-hero { margin: 0; max-width: none; padding: 20px; border-radius: var(--hm-r); background: var(--hm-card); border: 1px solid var(--hm-line); box-shadow: none; animation: none; }
#home .th-top { grid-template-columns: 200px minmax(0, 1fr); grid-template-rows: auto auto; gap: 6px 18px; align-items: start; }
#home .th-thumb { grid-row: 1 / span 2; border: 0; border-radius: 10px ; box-shadow: 0 0 0 1px var(--hm-line) inset; }
#home .th-play { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; backdrop-filter: none; font-size: 0; }
#home .th-play .ic { width: 20px; height: 20px; fill: currentColor; }
#home .th-bar { height: 4px; background: rgba(255,255,255,.35); } #home .th-bar u { background: var(--yellow, #FFD21F); }
#home .th-info { min-width: 0; padding-top: 2px; }
#home .ct-label { font: 600 12px var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
#home .th-info h2 { font: 600 16px/22px var(--font); letter-spacing: -.01em; margin: 0; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#home .th-meta { margin-top: 6px; font: 500 14px var(--font); color: var(--text-3); }
#home .th-go { grid-column: 2; justify-self: start; align-self: end; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 14px; border-radius: 10px ; font: 600 14px var(--font); letter-spacing: 0; text-transform: none; border: 0 !important; box-shadow: none !important; background: var(--yellow, #FFD21F) !important; color: #141414 !important; transform: none !important; }
#home .th-go .ic { width: 16px; height: 16px; fill: currentColor; }
#home .th-go small { font: 500 12px var(--font); opacity: .65; }
#home .th-go:hover { filter: brightness(1.05); }

#home .th-road { margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--hm-line); }
#home .journey { padding: 26px 2px 6px; gap: 8px; align-items: center; scrollbar-width: thin; }
#home .j-row { transform: none !important; }
#home .j-node { width: 40px; height: 40px; min-width: 40px; border-radius: 10px ; border: 1px solid var(--hm-line-2); background: var(--hm-card); box-shadow: none; color: var(--text-3); font-size: 0; display: grid; place-items: center; position: relative; transform: none; animation: none; }
#home .j-node .ic { width: 16px; height: 16px; }
#home .j-node .stars { position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%); font: 600 12px var(--font); color: var(--text-3); background: none; border: 0; padding: 0; white-space: nowrap; box-shadow: none; }
#home .j-node.current { border-color: transparent; background: var(--yellow, #FFD21F); color: #141414; box-shadow: none; }
#home .j-node.done { border-color: color-mix(in srgb, #16a34a 45%, transparent); background: color-mix(in srgb, #16a34a 10%, var(--hm-card)); color: #15803d; }
#home .j-node.locked { opacity: .55; }
#home .j-node .bubble { top: -26px; font: 600 12px var(--font); letter-spacing: .06em; padding: 3px 7px; border-radius: 6px ; background: var(--text); color: var(--hm-card); border: 0; box-shadow: none; }
#home .j-node .bubble::after { display: none; }
#home .j-chest { width: 26px; height: 40px; display: grid; place-items: center; color: var(--text-3); font-size: 0; animation: none; filter: none; opacity: .7; }
#home .j-chest .ic { width: 16px; height: 16px; } #home .j-chest.ready { color: #d97706; opacity: 1; }
#home .journey { padding-bottom: 22px; }

#home .th-chips { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hm-line); display: flex; flex-wrap: wrap; gap: 6px; }
#home .th-chip { height: 32px; padding: 0 12px; border-radius: 6px ; border: 1px solid transparent; background: color-mix(in srgb, var(--text) 4.5%, transparent); color: var(--text-2); font: 500 14px var(--font); box-shadow: none; display: inline-flex; align-items: center; gap: 7px; }
#home .th-chip:hover { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); }
#home .th-chip .ic { width: 16px; height: 16px; }

#home .surprise-bar { margin: 0; gap: 10px; }
#home .surprise { padding: 12px 14px 12px 12px; border-radius: 10px ; border: 1px solid var(--hm-line); background: var(--hm-card); box-shadow: none; animation: none; gap: 12px; }
#home .surprise .s-ic { width: 36px; height: 36px; border-radius: 10px ; background: color-mix(in srgb, var(--yellow, #FFD21F) 22%, transparent); color: #b45309; display: grid; place-items: center; font-size: 0; animation: none; }
#home .surprise .s-ic .ic { width: 20px; height: 20px; }
#home .surprise b { font: 600 14px var(--font); }
#home .surprise .btn, #home .surprise button { box-shadow: none; }

#home .tu-hub { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; border-radius: var(--hm-r); background: var(--hm-card); border: 1px solid var(--hm-line); box-shadow: none; overflow: hidden; animation: none; container-type: normal; }
#home .hb-head { display: flex; align-items: center; gap: 10px; padding: 16px 16px 12px; }
#home .hb-mascot { width: 30px; height: 30px; flex: none; } #home .hb-mascot svg { width: 30px; height: 30px; display: block; }
#home .hb-ttl { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
#home .hb-ttl b { font: 600 14px var(--font); } #home .hb-ttl small { font: 500 12px var(--font); color: var(--text-3); }
#home .hb-k .ic { width: 16px; height: 16px; }
#home .coach-card.tu-plan { display: block; margin: 0; padding: 0 16px 16px; border: 0; background: none; box-shadow: none; border-radius: 0 ; animation: none; min-height: 0; }
.tu-plan .tp-h { display: flex; align-items: center; justify-content: space-between; font: 600 12px var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.tu-plan .tp-n { letter-spacing: 0; color: var(--text-2); }
.tu-plan .tp-bar { height: 4px; border-radius: 8px; background: color-mix(in srgb, var(--text) 8%, transparent); margin: 8px 0 12px; overflow: hidden; }
.tu-plan .tp-bar i { display: block; height: 100%; border-radius: inherit; background: #16a34a; transition: width var(--mo-slow, .4s) var(--mo-ease, ease); }
.tu-plan .tp-head { display: block; font: 600 14px/19px var(--font); color: var(--text); margin-bottom: 10px; }
.tu-plan .tp-steps { display: flex; flex-direction: column; gap: 2px; margin: 0 -8px; }
.tu-plan .tp-step { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 0; border-radius: 10px ; background: none; color: var(--text-2); text-align: left; cursor: pointer; font: 500 14px/18px var(--font); }
.tu-plan .tp-step:hover { background: color-mix(in srgb, var(--text) 5%, transparent); color: var(--text); }
.tu-plan .tp-ic { width: 26px; height: 26px; flex: none; border-radius: 6px ; display: grid; place-items: center; background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text-2); }
.tu-plan .tp-ic .ic { width: 16px; height: 16px; }
.tu-plan .tp-step.now { color: var(--text); } .tu-plan .tp-step.now .tp-ic { background: var(--yellow, #FFD21F); color: #141414; }
.tu-plan .tp-step.done { color: var(--text-3); } .tu-plan .tp-step.done .tp-t { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--text) 25%, transparent); }
.tu-plan .tp-step.done .tp-ic { background: color-mix(in srgb, #16a34a 14%, transparent); color: #15803d; }
.tu-plan .tp-t { flex: 1; min-width: 0; }
.tu-plan .tp-min { font: 500 12px var(--font); color: var(--text-3); }
.tu-plan .tp-foot { display: flex; gap: 8px; margin-top: 12px; }
.tu-plan .cc-go { flex: 1; height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 10px ; font: 600 14px var(--font); border: 0 !important; box-shadow: none !important; transform: none !important; }
.tu-plan .cc-go.btn-grad { background: var(--text) !important; color: var(--hm-card, #fff) !important; }
[data-theme="dark"] .tu-plan .cc-go.btn-grad { background: var(--yellow, #FFD21F) !important; color: #141414 !important; }
.tu-plan .cc-go .ic { width: 16px; height: 16px; }
.tu-plan .cc-more { height: 40px; border-radius: 10px ; padding: 0 14px; }
.tu-plan .cc-skel { display: flex; flex-direction: column; gap: 8px; } .tu-plan .cc-skel i { height: 14px; border-radius: 6px ; background: color-mix(in srgb, var(--text) 7%, transparent); }
#home .hb-stats { padding: 14px 16px; border-top: 1px solid var(--hm-line); display: flex; flex-direction: column; gap: 12px; }
#home .hb-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; height: 54px; }
#home .hb-day { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
#home .hb-day i { width: 100%; max-width: 22px; height: var(--h); min-height: 3px; border-radius: 6px ; background: color-mix(in srgb, var(--text) 9%, transparent); display: block; transition: height var(--mo-slow, .4s) var(--mo-ease, ease); }
#home .hb-day.some i { background: color-mix(in srgb, var(--yellow, #FFD21F) 75%, #f59e0b); } #home .hb-day.met i { background: #16a34a; }
#home .hb-day small { font: 500 12px var(--font); color: var(--text-3); } #home .hb-day.today small { color: var(--text); font-weight: 600; }
#home .hb-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
#home .hb-num { display: flex; flex-direction: column; gap: 1px; } #home .hb-num b { font: 600 16px/18px var(--font); display: inline-flex; align-items: center; gap: 3px; color: var(--text); } #home .hb-num b em { font-style: normal; font-weight: 500; font-size: 14px; color: var(--text-3); }
#home .hb-num b .ic { width: 16px; height: 16px; color: #f97316; } #home .hb-num small { font: 500 12px var(--font); color: var(--text-3); }
#home .hb-wait { display: flex; flex-direction: column; gap: 6px; }
#home .hb-pill { display: flex; align-items: center; gap: 10px; width: 100%; height: 40px; padding: 0 12px; border-radius: 10px ; border: 1px solid var(--hm-line); background: none; color: var(--text-2); font: 500 14px var(--font); cursor: pointer; }
#home .hb-pill:hover:not(:disabled) { background: color-mix(in srgb, var(--text) 4%, transparent); color: var(--text); }
#home .hb-pill:disabled { opacity: .6; cursor: default; }
#home .hb-pill .ic { width: 16px; height: 16px; color: var(--text-3); } #home .hb-pill span { flex: 1; text-align: left; } #home .hb-pill b { font: 600 14px var(--font); color: var(--text); }
#home .hb-team { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 16px; border: 0; border-top: 1px solid var(--hm-line); background: none; color: var(--text); text-align: left; cursor: pointer; border-radius: 0 ; height: auto; }
#home .hb-team:hover { background: color-mix(in srgb, var(--text) 3%, transparent); }
#home .hb-faces { display: flex; } #home .hb-faces .ag-logo { width: 22px; height: 22px; margin-left: -6px; filter: drop-shadow(0 0 0 var(--hm-card)) drop-shadow(1px 0 0 var(--hm-card)) drop-shadow(-1px 0 0 var(--hm-card)); } #home .hb-faces .ag-logo:first-child { margin-left: 0; }
#home .hb-team-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; } #home .hb-team-t b { font: 600 14px var(--font); } #home .hb-team-t small { font: 500 12px var(--font); color: var(--text-3); }
#home .hb-team > .ic { width: 16px; height: 16px; color: var(--text-3); }

#home .discover-main { margin-top: 44px; }
#home .hm-sec-h { display: flex; align-items: baseline; gap: 12px; margin: 0 0 12px; }
#home .hm-sec-h h2 { font: 600 20px var(--font); letter-spacing: -.015em; margin: 0; }
#home .disc-bar { border-bottom: 1px solid var(--hm-line); margin-bottom: 14px; }
#home .discover-chips { margin: 0; gap: 2px; flex-wrap: nowrap; }
#home .discover-chips .chip { height: 40px; padding: 0 12px; border: 0 !important; border-radius: 0 ; background: none !important; box-shadow: none !important; color: var(--text-3); font: 500 14px var(--font); display: inline-flex; align-items: center; gap: 7px; border-bottom: 2px solid transparent !important; margin-bottom: -1px; transform: none !important; white-space: nowrap; }
#home .discover-chips .chip .ic { width: 16px; height: 16px; }
#home .discover-chips .chip:hover { color: var(--text); }
#home .discover-chips .chip.on { color: var(--text); border-bottom-color: var(--text) !important; }
#home .cefr { margin: 0 0 16px; }
#home .cefr-row { gap: 10px; }
#home .cefr-lbl { font: 600 12px var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
#home .cefr-pills { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px ; background: color-mix(in srgb, var(--text) 5%, transparent); border: 0; box-shadow: none; }
#home .cefr-pill { height: 32px; min-width: 38px; padding: 0 10px; border-radius: 6px ; border: 0; background: none; color: var(--text-2); font: 600 12px var(--font); box-shadow: none; }
#home .cefr-pill.on { background: var(--hm-card); color: var(--text); box-shadow: none; }
#home .cefr-test { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 6px ; border: 1px solid var(--hm-line-2) !important; background: var(--hm-card) !important; color: var(--text) !important; box-shadow: none !important; font: 500 14px var(--font); animation: none !important; }
#home .cefr-test .ic { width: 16px; height: 16px; }
#home .cefr-info { width: 34px; height: 34px; border-radius: 6px ; border: 1px solid var(--hm-line); background: none; color: var(--text-3); }
#home .cefr-desc { margin-top: 10px; font-size: 14px; color: var(--text-3); }
#home .vgrid { gap: 18px 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
#home .vcard { border: 0; border-radius: 10px ; background: none; box-shadow: none; padding: 0; }
#home .vcard:hover { transform: none; box-shadow: none; border: 0; }
#home .vcard .vthumb { border-radius: 10px ; overflow: hidden; box-shadow: 0 0 0 1px var(--hm-line) inset; margin: 0 0 8px; transition: transform var(--mo-mid, .25s) var(--mo-ease, ease), box-shadow var(--mo-mid, .25s); }
#home .vcard:hover .vthumb { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--hm-line) inset, 0 12px 24px -14px rgba(0,0,0,.4); }
#home .my-row { margin-top: 40px; }
#home .my-row .row-h h3 { font: 600 20px var(--font); letter-spacing: -.015em; }
@media (max-width: 720px) { #home .home-wrap { padding: 0 16px 32px; } #home .th-top { grid-template-columns: 120px minmax(0, 1fr); } #home .hero h1 { font-size: 28px; } }
@media (prefers-reduced-motion: reduce) { #home .hb-day i, .tu-plan .tp-bar i, #home .vcard .vthumb { transition: none; } }
#home #surpriseBar { margin: 0; max-width: none; justify-content: stretch; }
#home #surpriseBar .surprise { flex: 1 1 280px; max-width: none; border-radius: 10px ; border-width: 1px; box-shadow: none; padding: 10px 12px; }
#home .th-road { margin-top: 14px; padding-top: 4px; }
#home .journey { padding-top: 30px; }
#home .home-wrap { width: 100%; box-sizing: border-box; min-width: 0; }
#home .hm-grid > *, #home .disc-bar, #home .hs-wrap { min-width: 0; max-width: 100%; }
#home { min-width: 0; max-width: 100vw; }
@media (max-width: 1240px) { .cmdk-btn { width: clamp(150px, 18vw, 240px); } }
@media (max-width: 1100px) { .cmdk-btn { width: 34px; padding: 0; justify-content: center; } .cmdk-btn .cmdk-t, .cmdk-btn kbd { display: none; } }
.titlebar { min-width: 0; max-width: 100vw; }


.tu-trace ol li.ok { color: var(--text-2); } .tu-trace ol li.ok::marker { color: #16a34a; }
.tu-trace ol li.warn { color: #b45309; }
[data-theme="dark"] .tu-trace ol li.warn { color: #fbbf24; }
.tu-verity { margin: 8px 0 2px; padding: 8px 10px; border-radius: 10px ; font: 500 12px/17px var(--font); color: #92400e; background: color-mix(in srgb, #f59e0b 14%, transparent); border: 1px solid color-mix(in srgb, #f59e0b 35%, transparent); }
[data-theme="dark"] .tu-verity { color: #fcd34d; }
.ag-saved.scribe { color: #6d28d9; background: color-mix(in srgb, #7c3aed 12%, transparent); }
[data-theme="dark"] .ag-saved.scribe { color: #c4b5fd; }
.sm-dl { display: inline-flex; align-items: center; gap: 6px; font: 500 12px var(--font); color: var(--text-2); }
.sm-dl input { height: 32px; padding: 0 8px; border-radius: 6px ; border: 1px solid var(--line-2); background: var(--panel-solid, var(--panel)); color: var(--text); font: 500 12px var(--font); }
.sm-gp { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 6px 0 0; font-size: 14px; color: var(--text-2); }
.sm-gp .ic { width: 16px; height: 16px; margin-right: 2px; } .sm-gp.ok { color: #15803d; } .sm-gp.warn { color: #b45309; }
#home .hb-goal { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px ; border: 1px solid var(--hm-line); background: color-mix(in srgb, var(--text) 3%, transparent); color: var(--text); text-align: left; cursor: pointer; }
#home .hb-goal:hover { border-color: var(--hm-line-2); }
#home .hb-goal > .ic { width: 20px; height: 20px; color: var(--text-2); flex: none; } #home .hb-goal > .ic:last-child { width: 16px; height: 16px; color: var(--text-3); }
#home .hb-goal span { flex: 1; min-width: 0; display: flex; flex-direction: column; font: 500 14px/19px var(--font); }
#home .hb-goal small { font: 500 12px var(--font); color: var(--text-3); }
#home .hb-goal.ok > .ic:first-child { color: #16a34a; } #home .hb-goal.warn > .ic:first-child { color: #d97706; }
#home .hb-goal.add { border-style: dashed; background: none; }

.lp-crew { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.lp-cm { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 6px; border-radius: 6px ; border: 1px solid var(--line-2); background: var(--panel-solid, var(--panel)); font: 500 12px var(--font); color: var(--text-2); }
.lp-cm .ag-logo { width: 20px; height: 20px; } .lp-cm > .ic { width: 16px; height: 16px; color: var(--text-3); }
.lp-cm b { color: var(--text); font-weight: 600; } .lp-cm small { color: var(--text-3); font-weight: 500; }
.lp-cm i { display: grid; place-items: center; width: 16px; height: 16px; font-style: normal; }
.lp-cm i .ic { width: 16px; height: 16px; color: #16a34a; }
.lp-cm.run i u { width: 12px; height: 12px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--text) 18%, transparent); border-top-color: var(--text-2); animation: spin .8s linear infinite; }
.lp-cm.fail { border-color: color-mix(in srgb, #f59e0b 45%, transparent); } .lp-cm.fail i { color: #b45309; font-weight: 600; }
.lp-cm.verity.done > .ic { color: #16a34a; }
@keyframes spin { to { transform: rotate(360deg); } }


@font-face { font-family: "Fias Script"; font-style: normal; font-weight: 400; font-display: block; src: url("/src/fonts/Pacifico-FiasSubset.ttf") format("truetype"); }
.brand-name { display: inline-flex; align-items: baseline; gap: 0; font: 400 28px/29px "Fias Script", var(--font-display); letter-spacing: 0; color: #fff; padding: 0 3px 2px 1px;
  -webkit-text-stroke: 4.5px #17171C; paint-order: stroke fill; filter: drop-shadow(1.6px 1.8px 0 #17171C); transform: rotate(-2deg); transform-origin: left center; }
.brand-name .wm-w { display: inline-block; color: #fff; animation: wm-in2 .6s cubic-bezier(.3, 1.5, .5, 1) both; animation-delay: calc(var(--i) * 90ms + .1s); }
.brand-name .wm-w1, .brand-name .wm-w1 .ch { color: #FFC21A; }
.brand-name .wm-sp { display: inline-block; width: .26em; }
@keyframes wm-in2 { from { opacity: 0; transform: translateY(6px) rotate(-4deg); } }
[data-theme="dark"] .brand-name { -webkit-text-stroke-color: #000; filter: drop-shadow(1.6px 1.8px 0 #000) drop-shadow(0 0 1px rgba(255, 255, 255, .22)); }
.brand-tag { font: 600 8.5px/9px var(--font); letter-spacing: .16em; text-transform: uppercase; margin-top: 5px; }
.brand.settled:not(.talk) .brand-name .wm-w { animation: none; }
@media (prefers-reduced-motion: reduce) { .brand-name .wm-w { animation: none; } }
.brand-text { justify-content: center; gap: 0; }
.brand-name { font-size: 20px; line-height: 26px; margin: 2px 0 0; padding-top: 3px; }
.brand-tag { margin-top: 4px; position: relative; z-index: -1; }

body:has(#study:not([hidden])) .toasts { bottom: auto; top: 116px; }
.toast .ic { width: 16px; height: 16px; vertical-align: -3px; }

.pop-sec h4 .ic, .dict-lbl .ic { width: 16px; height: 16px; margin-right: 6px; vertical-align: -2px; color: var(--text-3); }
#pAIq .chip .ic, .pop .chip.sm .ic { width: 16px; height: 16px; margin-right: 5px; }
#pSave .ic { width: 16px; height: 16px; margin-right: 6px; vertical-align: -2px; }
#sTheme button .ic, #sGuide .ic, #sGuideReset .ic { width: 16px; height: 16px; margin-right: 6px; vertical-align: -2px; }

.tu-hello { padding: 10px 12px; align-items: center; background: none; border-style: dashed; }
.tu-hello .logo-dot { width: 26px; height: 26px; }
.tu-hello b { font-size: 14px; } .tu-hello p { margin: 2px 0 0; font-size: 12px; color: var(--text-2); }
.ap-first { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0 4px; cursor: pointer; } .ap-first span { display: flex; flex-direction: column; gap: 2px; } .ap-first b { font-size: 14px; } .ap-first small { font-size: 12px; color: var(--text-3); }


#home .hero h1, #home .hero.compact h1 { display: block; text-wrap: balance; }
#home .hero h1 .gr-ic { display: inline-grid; vertical-align: -8px; margin-right: 10px; }
#home .hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, color-mix(in srgb, var(--yellow, #FFD21F) 70%, transparent) 0); padding: 0 .08em; }


#home .hm-grid, #home .hm-grid:not(:has(.today-hero:not([hidden]))) { grid-template-columns: minmax(0, 1fr) 340px; max-width: none; margin-inline: 0; }
@media (max-width: 1080px) { #home .hm-grid, #home .hm-grid:not(:has(.today-hero:not([hidden]))) { grid-template-columns: minmax(0, 1fr); } #home .hm-side { order: -1; } }
@media (min-width: 1081px) and (min-height: 820px) { #home .hm-side { position: sticky; top: 14px; } }
#home .hm-main > .discover-main { margin-top: 26px; }
#home .hm-main > .my-row { margin-top: 26px; }
#home .hm-main .vgrid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.cine-btn { top: auto; right: 12px; bottom: 60px;  width: 32px; height: 32px; padding: 0; justify-content: center; border-radius: 6px ; }
.player-wrap.floating .cine-btn { top: auto; }

@font-face { font-family: "Fias Script 2"; font-style: normal; font-weight: 400; font-display: block; src: url("/src/fonts/Damion-FiasSubset.ttf") format("truetype"); }
.brand-name { font-family: "Fias Script 2", "Fias Script", var(--font-display); font-size: 28px; line-height: 31px; letter-spacing: .005em; -webkit-text-stroke: 5px #17171C; filter: drop-shadow(0 1.2px 0 #17171C); transform: rotate(-3deg); padding: 1px 4px 3px 2px; }
[data-theme="dark"] .brand-name { -webkit-text-stroke-color: #000; filter: drop-shadow(0 1.2px 0 #000) drop-shadow(0 0 1px rgba(255, 255, 255, .25)); }
.brand-name .wm-sp { width: .22em; }
.brand-tag { letter-spacing: .14em; margin-top: 2px; }

.chip { border-width: 1px; border-color: var(--edge); }
.chip:hover { border-color: var(--edge-2); }
.chip.on, .chip.sm.on { border-color: transparent; box-shadow: none; }
.round-btn { border: 1px solid var(--edge) !important; box-shadow: none; }
.round-btn:hover { border-color: var(--edge-2) !important; }
.lesson-bar .chip, #panelBtn, #layoutBtn, #cineBar { border-width: 1px; border-color: var(--edge); }
#panelBtn.on, #panelBtn[aria-pressed="true"] { border-color: transparent; }
.seg, .mode-seg, #modeSeg { border-width: 1px !important; border-color: var(--edge) !important; }

.chat-foot { display: flex; align-items: center; gap: 8px; padding: 2px 12px 10px; flex-wrap: wrap; }
.chat-foot .tts-toggle { padding: 0; }
.chat-foot .sp { flex: 1; }
.dict-lang { padding: 2px; border-radius: 6px ; }
.dict-lang button { height: 22px; padding: 0 8px; font: 600 12px var(--font); border-radius: 6px ; }
#chatForm.rec #chatMic { color: #fff; background: #ef4444; box-shadow: none; transition: box-shadow .08s linear; }
#chatForm.rec #chatText::placeholder { color: #dc2626; }
#chatForm.stt #chatText { background-image: linear-gradient(90deg, transparent, color-mix(in srgb, var(--yellow, #FFD21F) 30%, transparent), transparent); background-size: 200% 100%; animation: stt-sh 1.1s linear infinite; }
@keyframes stt-sh { from { background-position: 150% 0; } to { background-position: -50% 0; } }
#chatForm.dictated #chatText { box-shadow: none; transition: box-shadow .3s; }
@container (max-width: 380px) { #dictAutoT { display: none; } }

.dm-crew { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 12px; color: var(--text-3); flex-wrap: wrap; }
.dm-crew b { font: 600 12px var(--font); color: var(--text); }
.dm-crew em { font-style: normal; font-weight: 600; padding: 1px 7px; border-radius: 10px ; background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text-2); }
.dm-crew .ag-logo { width: 18px; height: 18px; }
.dm-ver { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; font-weight: 600; color: #15803d; }
.dm-ver.warn { color: #b45309; }
.dm-ver .ic { width: 12px; height: 12px; }
[data-theme="dark"] .dm-ver { color: #4ade80; } [data-theme="dark"] .dm-ver.warn { color: #fbbf24; }
.dp-hints { display: flex; align-items: center; gap: 6px; padding: 6px 12px 0; overflow-x: auto; scrollbar-width: none; }
.dp-hints::-webkit-scrollbar { display: none; }
.dp-hints > span .ic { width: 16px; height: 16px; color: #d97706; }
.dp-hints .chip { flex: none; font-weight: 500; }
.ex-2m { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text-2); }
.ex-2m .ic { width: 16px; height: 16px; }

.tool.on, .tools-row .tool.on { border-color: transparent; }
.tools-row { border-top-width: 1px; }
.chat-foot { flex-wrap: nowrap; gap: 10px; }
.chat-foot .tts-toggle { white-space: nowrap; }
.chat-foot .dict-lang { flex: none; }


.nx-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.nx-card { display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: none; color: var(--text); text-align: left; cursor: pointer; min-width: 0; animation: mo-rise var(--mo-mid, .25s) var(--mo-ease, ease) both; animation-delay: var(--d, 0ms); }
.nx-th { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px ; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--edge) inset; transition: transform var(--mo-mid, .25s) var(--mo-ease, ease), box-shadow var(--mo-mid, .25s); }
.nx-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nx-card:hover .nx-th { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--edge) inset, var(--lift); }
.nx-dur, .nx-lv { position: absolute; bottom: 6px; padding: 1px 6px; border-radius: 6px ; font: 600 12px var(--font); color: #fff; background: rgba(0, 0, 0, .72); }
.nx-dur { right: 6px; } .nx-lv { left: 6px; background: var(--yellow, #FFD21F); color: #141414; }
.nx-play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .35)); }
.nx-play .ic { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--yellow, #FFD21F); color: #141414; fill: currentColor; box-sizing: border-box; }
.nx-t { font: 600 14px/19px var(--font); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nx-c { font: 500 12px var(--font); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-card.first .nx-t { font-size: 14px; }
.nx-sk { aspect-ratio: 16 / 9; border-radius: 10px ; background: color-mix(in srgb, var(--text) 7%, transparent); animation: nx-pulse 1.2s ease-in-out infinite alternate; }
@keyframes nx-pulse { to { opacity: .45; } }
.nx-empty { margin: 0; color: var(--text-3); font-size: 14px; }
.next-sheet { position: fixed; z-index: 70; right: 20px; bottom: 20px; width: min(760px, calc(100vw - 40px)); padding: 14px 16px 16px; border-radius: 10px ; background: var(--panel-solid, var(--panel)); border: 1px solid var(--edge); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .35), var(--lift); transform: translateY(16px); opacity: 0; transition: transform var(--mo-mid, .25s) var(--mo-ease, ease), opacity var(--mo-mid, .25s); }
.next-sheet.in { transform: none; opacity: 1; }
.next-sheet header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.next-sheet header div { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.next-sheet header b { font: 600 14px var(--font); } .next-sheet header small { font: 500 12px var(--font); color: var(--text-3); }
.nx-ic { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px ; background: color-mix(in srgb, var(--yellow, #FFD21F) 25%, transparent); color: #b45309; } .nx-ic .ic { width: 16px; height: 16px; }
.next-sheet .nx-row { grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); align-items: start; }
@media (max-width: 900px) { .next-sheet .nx-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } .next-sheet .nx-card:nth-child(n+4) { display: none; } }
.rw-next { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--edge); text-align: left; }
.rw-next > b { display: flex; align-items: center; gap: 6px; font: 600 14px var(--font); margin-bottom: 10px; } .rw-next > b .ic { width: 16px; height: 16px; color: #d97706; }
.rw-next .nx-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#home .hm-related { margin-top: 26px; }
#home .hm-related .hm-sub { font: 500 14px var(--font); color: var(--text-3); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
#home .hm-related .nx-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1280px) { #home .hm-related .nx-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } #home .hm-related .nx-card:nth-child(4) { display: none; } }
@media (prefers-reduced-motion: reduce) { .nx-card, .nx-sk, .next-sheet { animation: none; transition: none; } }

@font-face { font-family: "Fias Sans"; font-style: normal; font-weight: 600; font-display: block; src: url("/src/fonts/Montserrat700-FiasSubset.ttf") format("truetype"); }
.brand-name { font: 600 20px/20px "Fias Sans", "Montserrat", var(--font); text-transform: uppercase; letter-spacing: .035em; color: var(--text) !important; -webkit-text-stroke: 0 !important; filter: none !important; transform: none !important; padding: 0 !important; margin: 0 0 1px !important; gap: 0; }
.brand-name .wm-w, .brand-name .wm-w1, .brand-name .wm-w1 .ch { color: inherit !important; animation: none !important; transform: none !important; }
.brand-name .wm-sp { width: .32em; }
[data-theme="dark"] .brand-name { color: #F5C21B !important; filter: none !important; }
.brand-tag { font: 500 8px/8px var(--font); letter-spacing: .24em; margin-top: 5px; color: var(--text-3); }
.brand-text { gap: 0; }

#rightTabs .tab-deep { display: none !important; }
#rightTabs button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
#rightTabs button .ic { width: 16px; height: 16px; flex: none; }
.ai-sub { display: flex; gap: 2px; margin: 8px 12px 0; padding: 3px; border-radius: 10px ; background: color-mix(in srgb, var(--text) 5%, transparent); }
.ai-sub button { flex: 1; height: 32px; border: 0; border-radius: 6px ; background: none; color: var(--text-2); font: 600 14px var(--font); cursor: pointer; }
.ai-sub button.on { background: var(--panel-solid, var(--panel)); color: var(--text); box-shadow: none; }
.ai-sub[hidden] { display: none !important; }
#toolsRow #viewSeg { display: none !important; }
.tools-row .view-cycle { min-width: 92px; }
.tools-row .view-cycle.on { background: color-mix(in srgb, var(--yellow, #FFD21F) 30%, var(--panel)); border-color: transparent; }

#home .hero-url.omni .btn-grad, [data-theme="dark"] #home .hero-url.omni .btn-grad,
.tu-plan .cc-go.btn-grad, [data-theme="dark"] .tu-plan .cc-go.btn-grad { background: var(--yellow, #FFD21F) !important; color: #141414 !important; }
.btn-grad { border-color: transparent !important; }
.btn-grad:hover { filter: brightness(1.04); }
.btn-grad:active { transform: translateY(1px); }
#home .j-node .bubble { background: var(--yellow, #FFD21F); color: #141414; }
#home .surprise .btn, #home .surprise button:not(.btn-grad) { background: color-mix(in srgb, var(--text) 6%, transparent); border: 0; border-radius: 10px ; padding: 8px 12px; }
#home .surprise .btn:hover, #home .surprise button:not(.btn-grad):hover { background: color-mix(in srgb, var(--text) 10%, transparent); }


#home .hm-main > * { min-width: 0; max-width: 100%; }
#home .my-row { max-width: 100%; margin: 26px 0 0; overflow: hidden; }
#home .my-row .row-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
#home .my-row .row-scroll { max-width: 100%; }
#home .hm-main > .my-row { margin-top: 22px; }
.hm-today { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 1000px; margin: 14px auto 0; }
.hm-today[hidden] { display: none; }
.rw-item { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 14px; border-radius: 10px ; background: var(--panel-solid, var(--panel)); border: 1px solid var(--edge); box-shadow: none; text-align: left; color: var(--text); position: relative; overflow: hidden; }
button.rw-item { cursor: default; font: inherit; }
.rw-item.ready { cursor: pointer; border-color: color-mix(in srgb, var(--yellow, #FFD21F) 70%, #f59e0b); background: linear-gradient(135deg, color-mix(in srgb, var(--yellow, #FFD21F) 24%, var(--panel-solid, var(--panel))), var(--panel-solid, var(--panel)) 70%); animation: rw-glow 2.2s ease-in-out infinite; }
@keyframes rw-glow { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--yellow, #FFD21F) 30%, transparent), var(--lift); } }
.rw-ic { position: relative; flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px ; background: color-mix(in srgb, var(--text) 5%, transparent); color: var(--text-2); }
.rw-ic > .ic { width: 20px; height: 20px; position: relative; z-index: 1; }
.rw-gift .rw-ic { background: none; color: #d97706; }
.rw-gift.done .rw-ic { color: #16a34a; }
.rw-ring { position: absolute; inset: 0; width: 40px; height: 40px; transform: rotate(-90deg); }
.rw-ring circle { fill: none; stroke-width: 3.2; } .rw-ring .bg { stroke: color-mix(in srgb, var(--text) 9%, transparent); } .rw-ring .fg { stroke: #f59e0b; stroke-linecap: round; transition: stroke-dashoffset .6s var(--mo-ease, ease); }
.rw-gift.ready .rw-ring .fg, .rw-gift.done .rw-ring .fg { stroke: #16a34a; }
.rw-ic.flame { color: #f97316; background: color-mix(in srgb, #f97316 12%, transparent); }
.rw-ic.lv { background: var(--yellow, #FFD21F); color: #141414; } .rw-ic.lv b { font: 600 16px var(--font); }
.rw-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.25; }
.rw-t b { font: 600 14px var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rw-t small { font: 500 12px var(--font); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rw-cta { flex: none; padding: 6px 12px; border-radius: 10px ; background: var(--yellow, #FFD21F); color: #141414; font: 600 14px var(--font); }
.rw-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: color-mix(in srgb, var(--text) 6%, transparent); } .rw-bar i { display: block; height: 100%; background: var(--yellow, #FFD21F); }
.rw-open { width: 72px; height: 72px; margin: 4px auto 6px; display: grid; place-items: center; border-radius: 10px ; background: var(--yellow, #FFD21F); color: #141414; animation: rw-pop .5s cubic-bezier(.3, 1.6, .5, 1) both; } .rw-open .ic { width: 34px; height: 34px; }
@keyframes rw-pop { from { transform: scale(.5) rotate(-12deg); opacity: 0; } }
@media (max-width: 900px) { .hm-today { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .rw-item.ready, .rw-open { animation: none; } }
#home .hero, #home .hero.compact { margin-top: 22px; }


.brand-name { font-weight: 600 !important; font-size: 20px !important; letter-spacing: .02em !important; }
@font-face { font-family: "Fias Sans"; font-style: normal; font-weight: 800; font-display: block; src: url("/src/fonts/Montserrat800-FiasSubset.ttf") format("truetype"); }

.sm-b { animation: sm-in .22s var(--mo-ease, ease-out) both; }
@keyframes sm-in { from { opacity: 0; transform: translateY(3px); } }
#chat { overflow-anchor: none; }
@media (prefers-reduced-motion: reduce) { .sm-b { animation: none; } }
html.lite .sm-b { animation: none; }
.th-star .ic { width: 16px; height: 16px; vertical-align: -2px; color: #f59e0b; fill: #f59e0b; }
.stars-big { display: flex; justify-content: center; gap: 6px; }
.stars-big .sb .ic { width: 40px; height: 40px; color: color-mix(in srgb, var(--text) 18%, transparent); fill: currentColor; }
.stars-big .sb.on .ic { color: #f59e0b; animation: rw-pop .45s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--i) * 120ms); }
.md.polishing { opacity: .62; transition: opacity .3s; }
.md.swapped { animation: sm-swap .35s var(--mo-ease, ease-out); }
@keyframes sm-swap { from { opacity: .4; } }

@media (min-width: 1081px) and (min-height: 820px) { #home .hm-side { top: 98px; } }
@media (min-width: 1081px) and (max-height: 819px) { #home .hm-side { position: static; } }


#discover .vcard:not(.sk) { content-visibility: auto; contain-intrinsic-block-size: auto 250px; }

.vcard, .nx-card, .rw-item, .ag-card { contain: layout style; }


#vocabModal.vs-modal { width: min(1080px, 95vw); height: min(800px, 92vh); }
#vocabModal.vs-modal .modal-h h2 { display: flex; align-items: center; gap: 8px; }
#vocabModal.vs-modal .modal-b { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.vs { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.vs-crew { margin-left: 12px; margin-right: auto; display: inline-flex; align-items: center; gap: 0; height: 30px; padding: 0 12px 0 6px; border-radius: 6px ; border: 1px solid var(--edge); background: var(--panel); color: var(--text-2); font: 600 12px var(--font); cursor: pointer; }
.vs-crew .ag-logo { margin-right: -5px; box-shadow: none; border-radius: 50%; }
.vs-crew span { margin-left: 12px; }
.vs-crew:hover { border-color: var(--edge-2); color: var(--text); }
.vs-top { display: flex; align-items: center; gap: 10px; padding: 12px 22px; border-bottom: 1px solid var(--edge); }
.vs-top.quiet .vs-tabs { opacity: .55; } .vs-top.quiet .vs-tabs:hover { opacity: 1; }
.vs-tabs button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; font-weight: 600; }
.vs-tabs button .ic { width: 16px; height: 16px; }
.vs-tabs small { color: var(--text-3); font-weight: 600; }
.vs-pill { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 50% ; background: var(--ink); color: var(--yellow); font: 600 12px/20px var(--font); text-align: center; }
[data-theme="dark"] .vs-pill { background: var(--yellow); color: var(--ink); }
.vs-body { flex: 1; min-height: 0; overflow: auto; padding: 22px; overscroll-behavior: contain; }
.vs kbd { margin-left: 8px; font-size: 12px; padding: 0 5px; opacity: .75; background: transparent; border-color: currentColor; color: inherit; }
.vs .btn-grad { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; font-weight: 600; font-size: 14px; }
.vs .btn-grad.sm { padding: 7px 13px; font-size: 14px; }
.vs .btn { display: inline-flex; align-items: center; gap: 7px; }
.vs .btn.sm { padding: 6px 11px; font-size: 14px; border-radius: 10px ; }
.vs .btn.ghost { border-color: transparent; background: transparent; color: var(--text-3); }
.vs .btn.danger:hover { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 50%, transparent); }
.vs .btn small, .vs .btn-grad small { font-weight: 600; opacity: .7; }
.vs .btn .ic, .vs .btn-grad .ic { width: 16px; height: 16px; }
.vs h3 { font: 600 20px/25px var(--font-display); margin: 0; }
.vs h4 { font: 600 14px var(--font); color: var(--text-2); margin: 18px 0 8px; display: flex; align-items: center; gap: 7px; }
.vs-sub { color: var(--text-3); font-size: 14px; line-height: 21px; margin: 6px 0 0; }
.vs-note { color: var(--text-2); font-size: 14px; margin: 12px 0 0; }


.ladder { width: 26px; height: 16px; flex: none; }
.ladder rect { fill: color-mix(in srgb, var(--text) 13%, transparent); }
.ladder rect.on { fill: var(--accent); }
[data-theme="light"] .ladder rect.on { fill: #E0A800; }
.ladder.lg { width: 38px; height: 22px; }


.vs-home { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.vs-today, .vs-ladder-card, .vs-prog-page section { border: 1px solid var(--edge); border-radius: 10px ; background: var(--panel); padding: 22px; box-shadow: none; }
.vs-today-h { display: flex; align-items: center; gap: 10px; }
.vs-streak { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font: 600 14px var(--font); color: #E8590C; }
.vs-streak .ic { width: 16px; height: 16px; }
.vs-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.vs-nums.center { grid-template-columns: repeat(4, minmax(0, 120px)); justify-content: center; }
.vs-nums div { display: flex; flex-direction: column; gap: 2px; }
.vs-nums.center div { align-items: center; }
.vs-nums b { font: 600 28px/28px var(--font-display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.vs-nums span { color: var(--text-3); font-size: 12px; font-weight: 600; }
.vs-len { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.vs-len > span { color: var(--text-3); font-size: 14px; font-weight: 600; margin-right: 4px; }
.vs-len button { padding: 5px 12px; border-radius: 10px ; border: 1px solid var(--edge); background: transparent; color: var(--text-2); font: 600 14px var(--font); cursor: pointer; }
.vs-len button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
[data-theme="dark"] .vs-len button.on { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.vs-go { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.vs-go.center { justify-content: center; margin-top: 22px; }
.vs-how { list-style: none; margin: 22px 0 0; padding: 16px 0 0; border-top: 1px dashed var(--edge); display: grid; gap: 10px; }
.vs-how li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); line-height: 20px; }
.vs-how b { color: var(--text); }
.vs-empty { max-width: 520px; margin: 40px auto; text-align: center; }
.vs-empty p { color: var(--text-2); line-height: 1.6; }
.vs-hero { width: 140px; height: 76px; margin-bottom: 10px; }
.vs-hero rect { fill: var(--yellow); stroke: var(--ink); stroke-width: 1.5; }
[data-theme="dark"] .vs-hero rect { stroke: none; }


.vs-stairs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: end; gap: 6px; height: 210px; margin-top: 18px; }
.vs-step { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; text-align: center; }
.vs-step i { display: block; height: var(--h); border-radius: 10px 10px 6px 6px ; background: color-mix(in srgb, var(--text) 7%, transparent); position: relative; overflow: hidden; }
.vs-step i::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: var(--f); background: var(--yellow); border-radius: inherit; transition: height var(--mo-mid) var(--mo-ease); }
.vs-step.s0 i::after { background: color-mix(in srgb, var(--text) 22%, transparent); }
.vs-step.s5 i::after { background: #E8A200; }
.vs-step b { font: 600 16px var(--font-display); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.vs-step span { margin-top: 7px; font-size: clamp(10.5px, 1.05vw, 12px); font-weight: 600; color: var(--text-2); line-height: 1.2; min-height: 2.4em; }
.vs-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--edge); font-size: 14px; color: var(--text-2); }
.vs-legend span { display: inline-flex; align-items: center; gap: 6px; } .vs-legend .ic { width: 16px; height: 16px; } .vs-legend b { color: var(--text); }


.vs-run { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.vs-bar { display: flex; align-items: center; gap: 12px; }
.vs-prog { flex: 1; height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--text) 9%, transparent); overflow: hidden; }
.vs-prog i { display: block; height: 100%; width: var(--p); background: var(--yellow); border-radius: inherit; transition: width var(--mo-mid) var(--mo-ease); }
.vs-count { font: 600 14px var(--font); color: var(--text-2); font-variant-numeric: tabular-nums; }
.vs-card { position: relative; border: 1px solid var(--edge); border-radius: 10px ; background: var(--panel-solid, var(--panel)); box-shadow: none; display: flex; flex-direction: column; min-height: 400px; }
.vs-card-h { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--edge); }
.vs-agent { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--text-2); min-width: 0; }
.vs-agent b { color: var(--text); font-weight: 600; white-space: nowrap; }
.vs-agent span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs-agent span::before { content: '·'; margin-right: 7px; color: var(--text-3); }
.vs-src { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--edge); background: transparent; color: var(--text-2); border-radius: 10px ; padding: 4px 10px; font: 600 12px var(--font); cursor: pointer; }
.vs-src .ic { width: 16px; height: 16px; } .vs-src.sm { padding: 2px 6px; vertical-align: middle; }
.vs-src:hover { color: var(--text); border-color: var(--edge-2); }
.vs-stage { flex: 1; padding: 30px 34px 18px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.vs-card-f { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--edge); min-height: 68px; }
.vs-k { color: var(--text-3); font-size: 14px; }
.vs-word { display: flex; align-items: center; gap: 10px; justify-content: center; flex-wrap: wrap; }
.vs-word h2 { margin: 0; font: 600 clamp(30px, 4.2vw, 44px)/1.1 var(--font-display); letter-spacing: -.01em; overflow-wrap: anywhere; }
.vs-word.sm h2 { font-size: 28px; }
.vs-ipa { color: var(--text-3); font: 14px var(--ipa); min-height: 1em; }
.vs-mean { font-size: 16px; font-weight: 600; margin: 4px 0; color: var(--text); max-width: 60ch; }
.vs-mean.sm { font-size: 16px; color: var(--text-2); }
.vs-mean.in { font-size: 14px; color: var(--text-2); font-weight: 500; }
.vs-q { color: var(--text-3); font-size: 14px; margin: 8px 0 2px; }
.vs-say { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--edge); background: var(--panel); color: var(--text); display: inline-grid; place-items: center; cursor: pointer; vertical-align: middle; flex: none; }
.vs-say.sm { width: 28px; height: 28px; } .vs-say .ic { width: 20px; height: 20px; } .vs-say.sm .ic { width: 16px; height: 16px; }
.vs-say:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.vs-ctx { margin: 6px 0 0; padding: 12px 16px; border-radius: 10px ; background: var(--panel-2); color: var(--text-2); font-size: 16px; line-height: 25px; max-width: 62ch; text-align: left; border: 0; }
.vs-ctx .vs-say { margin-left: 4px; width: 30px; height: 30px; }
mark.hl { background: linear-gradient(transparent 58%, color-mix(in srgb, var(--yellow) 80%, transparent) 58%); color: var(--text); font-weight: 600; padding: 0 1px; }
.vs-chunk { margin: 4px 0 0; font-size: 14px; color: var(--text-2); }
.vs-chunk b { color: var(--text); padding: 2px 8px; border-radius: 6px ; border: 1px dashed var(--edge-2); }
.vs-hook, .vs-sit { display: flex; gap: 8px; align-items: flex-start; text-align: left; margin: 6px 0 0; font-size: 14px; color: var(--text-2); max-width: 60ch; line-height: 21px; }
.vs-hook .ic, .vs-sit .ic { width: 16px; height: 16px; flex: none; margin-top: 2px; color: #D99A00; }
.vs-sit { font-size: 16px; color: var(--text); padding: 12px 16px; border-radius: 10px ; background: var(--panel-2); }
.vs-sit.sm { font-size: 14px; padding: 8px 12px; }
.vs-sent { font: 600 clamp(19px, 2.3vw, 24px)/1.55 var(--font-display); margin: 6px 0; max-width: 34ch; color: var(--text); }
.vs-sent.gap { max-width: 40ch; }
.vs-gap { display: inline-block; min-width: 3.2em; padding: 0 6px; margin: 0 2px; border-bottom: 3px solid var(--accent); color: transparent; line-height: 1.15; }
.vs-gap.filled { color: var(--text); background: color-mix(in srgb, var(--yellow) 32%, transparent); border-radius: 6px 6px 0 0 ; }
.vs-answer { display: flex; flex-direction: column; align-items: center; gap: 6px; width: min(380px, 100%); margin-top: 6px; }
.vs-answer.wide { width: min(560px, 100%); }
.vs-input { width: 100%; padding: 12px 16px; border-radius: 10px ; border: 1.5px solid var(--edge-2); background: var(--panel); color: var(--text); font: 600 20px var(--font); text-align: center; outline: none; }
.vs-input.big { width: min(560px, 100%); font-size: 16px; text-align: left; resize: none; }
.vs-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--yellow) 35%, transparent); }
.vs-input:disabled { opacity: .7; }
.vs-hint { min-height: 20px; font: 600 16px var(--mono); letter-spacing: .12em; color: var(--accent-2); }
.vs-listen { display: flex; align-items: center; gap: 10px; color: var(--text-3); font-size: 14px; }
.vs-listen .vs-say { width: 52px; height: 52px; background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.vs-listen .vs-say .ic { width: 24px; height: 24px; }
.vs-listen .vs-say.slow { width: 40px; height: 40px; background: var(--panel); border-color: var(--edge); color: var(--text); }
.vs-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: min(620px, 100%); margin-top: 6px; }
.vs-opt { display: flex; align-items: center; gap: 10px; text-align: left; padding: 13px 14px; border-radius: 10px ; border: 1px solid var(--edge); background: var(--panel); color: var(--text); font: 600 14px/19px var(--font); cursor: pointer; min-height: 56px; }
.vs-opt kbd { margin: 0; flex: none; }
.vs-opt:hover:not(:disabled) { border-color: var(--edge-2); background: var(--hover); }
.vs-opt.right { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 13%, transparent); }
.vs-opt.wrong { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 11%, transparent); }
.vs-opt:disabled { cursor: default; }
.vs-back { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 8px; padding-top: 14px; border-top: 1px dashed var(--edge); width: 100%; }
.vs-verdict { display: flex; gap: 10px; align-items: flex-start; text-align: left; width: min(620px, 100%); margin-top: 8px; padding: 12px 14px; border-radius: 10px ; font-size: 14px; line-height: 22px; animation: mo-rise var(--mo-mid) var(--mo-ease) both; }
.vs-verdict > .ic { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.vs-verdict small { display: block; color: var(--text-3); font-size: 12px; margin-top: 4px; }
.vs-verdict.ok { background: color-mix(in srgb, var(--ok) 12%, transparent); } .vs-verdict.ok > .ic { color: var(--ok); }
.vs-verdict.mid { background: color-mix(in srgb, var(--warn) 14%, transparent); } .vs-verdict.mid > .ic { color: #C77700; }
.vs-verdict.bad { background: color-mix(in srgb, var(--bad) 10%, transparent); } .vs-verdict.bad > .ic { color: var(--bad); }
.vs-verdict.wait { background: var(--panel-2); color: var(--text-2); } .vs-verdict.wait > .ic { display: none; }
.vs-m2 { color: var(--text-2); }
.vs-better { margin-top: 8px; } .vs-better b { font-weight: 600; }
.vs-by { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 12px; color: var(--text-3); }
.w-ok { color: var(--ok); font-weight: 600; } .w-near { color: #C77700; font-weight: 600; } .w-bad { color: var(--bad); font-weight: 600; text-decoration: underline wavy; text-decoration-thickness: 1px; }
.vs-microw { display: flex; align-items: center; gap: 14px; margin-top: 10px; width: min(440px, 100%); }
.vs-mic { --lvl: 0; position: relative; width: 66px; height: 66px; flex: none; border-radius: 50%; border: 0; background: var(--yellow); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: none; transition: box-shadow 90ms linear, transform var(--mo-fast) var(--mo-ease); }
.vs-mic .ic { width: 24px; height: 24px; }
.vs-mic.rec { background: var(--bad); color: #fff; box-shadow: none; }
.vs-mic.busy { opacity: .6; pointer-events: none; }
.vs-micside { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; text-align: left; }
.vs-wave { width: 100%; height: 44px; }
.vs-mics { font-size: 14px; color: var(--text-3); }
.vs-said { margin-top: 6px; font-size: 14px; color: var(--text-2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.vs-said > span { color: var(--text-3); }
.vs-said.ex { font-size: 16px; color: var(--text); }
.vs-self { margin-top: 8px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.vs-self p { margin: 0; color: var(--text-2); font-size: 14px; }
.vs-pair { display: flex; gap: 8px; }
.vs-build { min-height: 52px; width: min(620px, 100%); padding: 10px; border-radius: 10px ; border: 1.5px dashed var(--edge-2); display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; }
.vs-ph { color: var(--text-3); }
.vs-tiles { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; width: min(620px, 100%); }
.vs-tile { padding: 8px 13px; border-radius: 10px ; border: 1px solid var(--edge); background: var(--panel); color: var(--text); font: 600 16px var(--font); cursor: pointer; }
.vs-tile.on { background: var(--yellow); border-color: var(--yellow); color: var(--ink); cursor: default; }
.vs-tile:disabled { opacity: .25; cursor: default; }
.vs-g1 { color: var(--bad); } .vs-g4 { color: var(--accent-2); }
.vs .btn.vs-g1 kbd, .vs .btn.vs-g3 kbd, .vs .btn.vs-g4 kbd, .vs-opt kbd { margin-left: 0; margin-right: 2px; }
.vs-up { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 10px ; background: var(--ink); color: var(--yellow); font: 600 14px var(--font); box-shadow: none; animation: vs-up 2.2s var(--mo-ease) both; pointer-events: none; z-index: 2; }
[data-theme="dark"] .vs-up { background: var(--yellow); color: var(--ink); }
.vs-up .ic { width: 16px; height: 16px; }
@keyframes vs-up { 0% { opacity: 0; transform: translate(-50%, 8px); } 12%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -6px); } }
.vs-tip { display: flex; gap: 8px; align-items: center; justify-content: center; color: var(--text-2); font-size: 14px; margin: 0; } .vs-tip .ic { width: 16px; height: 16px; color: var(--bad); }

.vs-card.answered .vs-microw { display: none; }
.vs-card-f .btn-grad:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.vs-done { max-width: 680px; margin: 10px auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.vs-ring { position: relative; width: 132px; height: 132px; display: grid; place-items: center; }
.vs-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.vs-ring circle { fill: none; stroke-width: 3.4; } .vs-ring .bg { stroke: color-mix(in srgb, var(--text) 9%, transparent); }
.vs-ring .fg { stroke: var(--yellow); stroke-linecap: round; stroke-dasharray: var(--p) 100; }
.vs-ring b { font: 600 28px/28px var(--font-display); margin-top: 18px; } .vs-ring span { font-size: 12px; color: var(--text-3); font-weight: 600; margin-bottom: 26px; }
.vs-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; margin-top: 4px; }
.vs-chips > span { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 600; color: var(--text-2); margin-right: 4px; } .vs-chips > span .ic { width: 16px; height: 16px; }
.vs-wchip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 10px ; border: 1px solid var(--edge); background: var(--panel); color: var(--text); font: 600 14px var(--font); cursor: pointer; }
.vs-chips.miss .vs-wchip { border-style: dashed; }


.vs-nb { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; height: 100%; }
.vs-nb.has-sel { grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); }
.vs-nb-main { display: flex; flex-direction: column; min-height: 0; gap: 10px; }
.vs-tools { display: flex; gap: 8px; align-items: center; }
.vs-search { flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 40px; border-radius: 10px ; border: 1px solid var(--edge); background: var(--panel); }
.vs-search .ic { width: 16px; height: 16px; color: var(--text-3); }
.vs-search input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); font: 500 14px var(--font); min-width: 0; padding: 0; }
.vs-search:focus-within { border-color: var(--accent); }
.vs-tools select, .vs-pop select { height: 40px; padding: 0 10px; border-radius: 10px ; border: 1px solid var(--edge); background: var(--panel); color: var(--text); font: 600 14px var(--font); }
.vs-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.vs-filters button { padding: 5px 12px; border-radius: 10px ; border: 1px solid var(--edge); background: transparent; color: var(--text-2); font: 600 12px var(--font); cursor: pointer; }
.vs-filters button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
[data-theme="dark"] .vs-filters button.on { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.vs-list { display: flex; flex-direction: column; overflow: auto; min-height: 0; border: 1px solid var(--edge); border-radius: 10px ; background: var(--panel); }
.vs-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) auto auto; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--edge); cursor: pointer; content-visibility: auto; contain-intrinsic-block-size: auto 54px; }
.vs-row:last-of-type { border-bottom: 0; }
.vs-row:hover { background: var(--hover); }
.vs-row.on { background: color-mix(in srgb, var(--yellow) 22%, transparent); }
.vs-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.vs-r1 { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.vs-r1 b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs-r1 .ipa { color: var(--text-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs-r2 { color: var(--text-2); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs-r3 { display: flex; align-items: center; gap: 8px; min-width: 116px; }
.vs-when { font-size: 12px; font-weight: 600; color: var(--text-3); white-space: nowrap; } .vs-when.due { color: #C77700; }
.vs-r4 { display: flex; gap: 2px; }
.vs-tag { font-size: 12px; font-weight: 600; color: var(--text-3); border: 1px solid var(--edge); border-radius: 6px ; padding: 0 5px; }
.vs-row.leech .vs-r1 b::after { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--bad); margin-left: 6px; vertical-align: middle; }
.vs-more { margin: 10px auto; }
.vs-detail { border: 1px solid var(--edge); border-radius: 10px ; background: var(--panel); padding: 18px; overflow: auto; min-height: 0; animation: mo-rise var(--mo-mid) var(--mo-ease) both; }
.vs-d-h { display: flex; align-items: flex-start; gap: 8px; } .vs-d-h h3 { flex: 1; font-size: 28px; overflow-wrap: anywhere; }
.vs-d-ipa { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 6px 0; } .vs-d-ipa .ipa { color: var(--text-3); margin-right: 4px; }
.vs-detail .vs-mean { font-size: 16px; }
.vs-d-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }
.vs-d-stats > div { padding: 10px 12px; border-radius: 10px ; background: var(--panel-2); display: flex; flex-direction: column; gap: 3px; }
.vs-d-stats b { font: 600 16px var(--font-display); } .vs-d-stats span { font-size: 12px; color: var(--text-3); font-weight: 600; }
.vs-detail .vs-ctx { font-size: 14px; margin: 0 0 6px; max-width: none; }
.vs-ex { margin: 0 0 8px; font-size: 14px; line-height: 21px; } .vs-ex small { display: block; color: var(--text-3); font-size: 12px; }
.vs-ex.mine { padding-left: 10px; border-left: 3px solid var(--yellow); }
.vs-mnemo { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.vs-d-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--edge); }


.vs-prog-page { display: grid; gap: 18px; max-width: 900px; margin: 0 auto; }
.vs-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.vs-kpis div { padding: 16px; border-radius: 10px ; border: 1px solid var(--edge); background: var(--panel); display: flex; flex-direction: column; gap: 4px; }
.vs-kpis b { font: 600 28px/28px var(--font-display); font-variant-numeric: tabular-nums; } .vs-kpis span { font-size: 12px; color: var(--text-3); font-weight: 600; }
.vs-bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; height: 150px; align-items: end; margin-top: 14px; }
.vs-bar-c { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; }
.vs-bar-c i { width: 100%; max-width: 28px; height: max(3px, calc(var(--h) * .72)); border-radius: 6px 6px 3px 3px ; background: var(--yellow); }
.vs-bars.past .vs-bar-c i { background: color-mix(in srgb, var(--text) 26%, transparent); }
.vs-bar-c b { font-size: 12px; min-height: 14px; } .vs-bar-c span { font-size: 12px; color: var(--text-3); white-space: nowrap; }


.vs-pop { position: fixed; z-index: 95; width: 280px; padding: 14px; border-radius: 10px ; border: 1px solid var(--edge); background: var(--panel-solid, var(--panel)); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; animation: mo-pop var(--mo-mid) var(--mo-ease) both; }
.vs-pop h4 { margin: 0; font: 600 14px var(--font); }
.vs-pop label { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.vs-pop select { height: 34px; }
.vs-pop label.tg { justify-content: flex-start; } .vs-pop input[type="checkbox"] { width: 17px; height: 17px; accent-color: #E0A800; }
.vs-crewinfo { position: absolute; inset: 0; z-index: 5; background: rgba(10,10,14,.32); display: grid; place-items: center; padding: 20px; border-radius: inherit; animation: mo-fade var(--mo-mid) var(--mo-ease); }
.vs-ci { width: min(620px, 100%); max-height: 100%; overflow: auto; background: var(--panel-solid, var(--panel)); border: 1px solid var(--edge); border-radius: 10px ; box-shadow: none; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.vs-ci-r { display: flex; gap: 12px; align-items: flex-start; } .vs-ci-r > div { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--text-2); line-height: 20px; } .vs-ci-r b { color: var(--text); font-size: 14px; }
.vs-ci-r .ag-logo.sm { width: 26px; height: 26px; }
.vs-scribe { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(#c4b5fd, #6d28d9); color: #fff; flex: none; } .vs-scribe .ic { width: 16px; height: 16px; }
.vs-ladder-row { display: flex; flex-wrap: wrap; gap: 6px; } .vs-ladder-row span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 10px ; background: var(--panel-2); font-size: 12px; font-weight: 600; }
.vs-ladder-row i { font-style: normal; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: var(--ink); font-size: 12px; font-weight: 600; }
.vs-ci .btn-grad { align-self: flex-end; }


.vw-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 2px 4px; font-size: 12px; color: var(--text-3); font-weight: 600; }
.vw-head .btn-grad { display: inline-flex; align-items: center; gap: 6px; } .vw-head .ic { width: 16px; height: 16px; }
.vw-n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 50% ; background: var(--ink); color: var(--yellow); font-size: 12px; line-height: 18px; }
.witem .wh .ladder { margin-right: 2px; }


.vs-nb.has-sel .vs-r1 .ipa { display: none; }
.vs-nb.has-sel .vs-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
.vs-nb.has-sel .vs-r4 { display: none; }

@media (max-width: 900px) {
  .vs-home { grid-template-columns: 1fr; }
  .vs-nb.has-sel { grid-template-columns: 1fr; }
  .vs-nb.has-sel .vs-nb-main { display: none; }
  .vs-kpis { grid-template-columns: repeat(2, 1fr); }
  .vs-row { grid-template-columns: minmax(0, 1fr) auto; } .vs-r2 { grid-column: 1; grid-row: 2; } .vs-r3 { grid-column: 2; grid-row: 1; min-width: 0; } .vs-r4 { grid-column: 2; grid-row: 2; justify-content: flex-end; }
  .vs-crew span { display: none; }
}
@media (max-height: 720px) {
  .vs-stage { padding: 18px 24px 12px; } .vs-card { min-height: 0; } .vs-stairs { height: 160px; } .vs-today, .vs-ladder-card { padding: 16px; } .vs-nums { margin: 12px 0; }
}
html.lite .vs-verdict, html.lite .vs-detail, html.lite .vs-up, html.lite .vs-pop, html.lite .vs-crewinfo { animation: none; }
html.lite .vs-step i::after, html.lite .vs-prog i, html.lite .vs-mic { transition: none; }
@media (prefers-reduced-motion: reduce) { .vs-verdict, .vs-detail, .vs-up, .vs-pop, .vs-crewinfo { animation: none; } }


#bigTranslation:not(:empty) { display: inline-block; max-width: calc(100% - 44px); vertical-align: middle; }
.tr-speak { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin: 6px 0 0 8px; padding: 0; vertical-align: middle; border-radius: 50%; border: 1.5px solid var(--edge, rgba(20,20,20,.18)); background: transparent; color: var(--text-2); cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.tr-speak .ic { width: 16px; height: 16px; }
.tr-speak:hover { background: #FFD21F; color: #141414; border-color: #141414; }
.tr-speak:active { transform: scale(.92); }
.tr-speak.on { background: #FFD21F; color: #141414; border-color: #141414; animation: tr-speak-pulse 1.2s ease-in-out infinite; }
.tr-speak.auto::after { content: ''; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #22c55e; transform: translate(11px, -11px); }
.tr-speak { position: relative; }
.tr-speak[hidden], body.hide-tr .tr-speak:not(.en) { display: none !important; }
#bigTranslation:empty { min-height: 0; }
@keyframes tr-speak-pulse { 50% { box-shadow: 0 0 0 5px rgba(255, 210, 31, .35); } }
@media (prefers-reduced-motion: reduce) { .tr-speak.on { animation: none; } }
html.lite .tr-speak.on { animation: none; }


:root { --gm-line: #dadce0; --gm-text: #202124; --gm-sub: #5f6368; --gm-mute: #80868b; --gm-hover: rgba(60, 64, 67, .06); --gm-press: rgba(60, 64, 67, .1); --gm-sel: #e8f0fe; --gm-sel-t: #1967d2; --gm-ok: #188038; --gm-surface: var(--panel-solid, #fff); }
[data-theme="dark"] { --gm-line: #3c4043; --gm-text: #e8eaed; --gm-sub: #9aa0a6; --gm-mute: #80868b; --gm-hover: rgba(232, 234, 237, .07); --gm-press: rgba(232, 234, 237, .12); --gm-sel: rgba(138, 180, 248, .16); --gm-sel-t: #8ab4f8; --gm-ok: #81c995; }


html .ag-logo { --ac: #5f6368; position: relative; display: inline-grid; place-items: center; flex: none !important; width: 32px; height: 32px; padding: 0; border-radius: 50% !important;
  background: color-mix(in srgb, var(--ac) 13%, transparent) !important; color: var(--ac) !important; -webkit-mask: none !important; mask: none !important; box-shadow: none !important; filter: none !important; }
[data-theme="dark"] .ag-logo { background: color-mix(in srgb, var(--ac) 26%, transparent) !important; color: color-mix(in srgb, var(--ac) 45%, #fff) !important; }
html .ag-logo > svg { width: 70%; height: 70%; display: block; }
html .ag-logo.sm { width: 22px; height: 22px; } html .ag-logo.xs { width: 20px; height: 20px; } html .ag-logo.lg { width: 40px; height: 40px; }
html .ag-logo.sm > svg, html .ag-logo.xs > svg { width: 76%; height: 76%; }
html .ag-logo > svg [stroke-width="3.4"], html .ag-logo > svg { stroke-width: 3.6; }
html .ag-card .ag-logo { width: 36px; height: 36px; } html .ag-mission .ag-logo { width: 36px; height: 36px; }
#home .hb-faces .ag-logo { filter: none; box-shadow: none !important; }
.vs-crew .ag-logo { box-shadow: none !important; }

html .ag-ver { padding: 0 4px; border-radius: 6px ; background: none; border: 1px solid var(--gm-line); font: 500 12px/18px var(--font); color: var(--gm-sub); letter-spacing: 0; vertical-align: 1px; }
html .ag-head { gap: 6px; margin: 0 0 8px; font-size: 12px; color: var(--gm-sub); }
html .ag-head b { font: 500 14px/14px var(--font); color: var(--gm-text); letter-spacing: 0; }
html .ag-head > span:not(.ag-logo):not(.ag-ver) { color: var(--gm-sub); font-weight: 500; }
html .ag-head > span:not(.ag-logo):not(.ag-ver)::before { content: "·"; margin-right: 6px; color: var(--gm-mute); }
html .ag-head i { color: var(--gm-mute); }


html .ag-chip { height: 32px; border-radius: 6px ; border: 1px solid var(--gm-line); background: transparent; color: var(--gm-text); font-weight: 500; box-shadow: none; transition: background-color .12s; }
html .ag-chip:hover { background: var(--gm-hover); border-color: var(--gm-line); color: var(--gm-text); }
html .ag-chip.on { background: var(--gm-sel); border-color: transparent; color: var(--gm-sel-t); }
html .ag-chip.on .ag-v { color: var(--gm-sel-t); }
html .ag-chip .ag-v { color: var(--gm-mute); font-weight: 500; }


html .tu-hello { padding: 4px 4px 12px; border: 0; border-radius: 0 ; background: none; align-items: center; gap: 12px; margin: 2px 2px 4px; }
html .tu-hello b { font: 500 16px/20px var(--font); color: var(--gm-text); letter-spacing: -.005em; }
html .tu-hello p { font-size: 14px; color: var(--gm-sub); margin-top: 3px; }
html .ag-mission { gap: 12px; margin: 0 2px 14px; padding: 12px 14px; border-radius: 10px ; border: 1px solid var(--gm-line); background: var(--gm-surface); box-shadow: none; transition: background-color .12s; }
html .ag-mission:hover { background: var(--gm-hover); border-color: var(--gm-line); }
html .ag-mission b { font: 500 14px/18px var(--font); color: var(--gm-text); }
html .ag-mission small { color: var(--gm-sub); font-size: 12px; }
.ag-sec { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 6px; font: 500 12px/12px var(--font); color: var(--gm-sub); letter-spacing: .01em; }
.ag-more { display: inline-flex; align-items: center; gap: 2px; height: 28px; padding: 0 8px; border: 0; border-radius: 6px ; background: none; color: var(--gm-sel-t); font: 500 12px var(--font); cursor: pointer; }
.ag-more:hover { background: var(--gm-sel); } .ag-more .ic { width: 16px; height: 16px; }
html .ag-grid { grid-template-columns: 1fr 1fr; gap: 0; margin: 0 2px; border: 1px solid var(--gm-line); border-radius: 10px ; overflow: hidden; background: var(--gm-surface); }
html .ag-card { align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 0 ; background: none; box-shadow: none; transition: background-color .12s; border-bottom: 1px solid var(--gm-line); }
html .ag-card:nth-child(odd) { border-right: 1px solid var(--gm-line); }
html .ag-card:last-child, html .ag-card:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
html .ag-card:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
html .ag-card:hover { background: var(--gm-hover); border-color: var(--gm-line); }
html .ag-card:active { transform: none; background: var(--gm-press); }
html .ag-card b { font: 500 14px/17px var(--font); color: var(--gm-text); letter-spacing: 0; }
html .ag-card em { font: 500 12px/15px var(--font); color: var(--gm-sub); }
html .ag-card small { display: none; }
@container (max-width: 380px) { html .ag-grid { grid-template-columns: 1fr; } html .ag-card { border-right: 0 !important; } }
.ag-flow { list-style: none; display: flex; align-items: center; gap: 0; margin: 12px 4px 4px; padding: 0; counter-reset: agf; font: 500 12px/12px var(--font); color: var(--gm-sub); flex-wrap: wrap; row-gap: 6px; }
.ag-flow li { counter-increment: agf; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.ag-flow li::before { content: counter(agf); display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--gm-hover); color: var(--gm-sub); font-size: 12px; font-weight: 600; }
.ag-flow li:not(:last-child) { margin-right: 6px; }
.ag-flow li:not(:last-child)::after { content: ""; width: 12px; height: 1px; background: var(--gm-line); margin-left: 6px; }


html .tu-trace > summary .tu-think-t { font-weight: 500; }
html .tu-trace.done > summary .tu-think-t { font: 500 12px var(--font); color: var(--gm-sub); }
html .tu-trace ol { border-left: 1px solid var(--gm-line); margin: 6px 0 8px 12px; padding-left: 16px; }
html .tu-trace li { font: 500 12px/18px var(--font); color: var(--gm-sub); padding: 1px 0; }
html .tu-trace li::before { left: -20px; top: .55em; width: 7px; height: 7px; border: 1.5px solid var(--gm-mute); background: var(--gm-surface); }
html .tu-trace.done li::before { background: var(--gm-ok); border-color: var(--gm-ok); }
html .tu-trace li b { display: inline-block; min-width: 82px; margin-right: 6px; font-weight: 500; color: var(--gm-text); }
html .tu-trace .tu-tok { font: 500 12px/12px var(--font); color: var(--gm-mute); }
html .ag-saved { background: none; border: 1px solid var(--gm-line); color: var(--gm-sub); font-weight: 500; }
html .ag-saved .ic { color: var(--gm-ok); }


html .lp-cm { border-radius: 6px ; border-color: var(--gm-line); background: transparent; font-weight: 500; color: var(--gm-sub); }
html .lp-cm b { font-weight: 500; color: var(--gm-text); }
html .lp-cm i .ic, html .lp-cm.verity.done > .ic { color: var(--gm-ok); }
html .dm-crew b, html .vs-agent b { font-weight: 500; color: var(--gm-text); }
html .dm-crew em { font-weight: 500; background: var(--gm-hover); color: var(--gm-sub); }
html .ag-badge { background: none; border: 1px solid var(--gm-line); }
html .ag-badge b { font-weight: 500; }


.sy-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 2px 10px; }
.sy-hero b { display: block; font: 500 16px/20px var(--font); color: var(--gm-text); }
.sy-hero span { font-size: 14px; color: var(--gm-sub); }
.sy-kpi { display: flex; gap: 22px; flex: none; }
.sy-kpi span { display: flex; flex-direction: column; align-items: flex-end; font-size: 12px; color: var(--gm-sub); }
.sy-kpi b { font: 500 20px/22px var(--font); color: var(--gm-text); font-variant-numeric: tabular-nums; }
.sy-flow { margin: 0 2px 14px; padding: 10px 12px; border: 1px solid var(--gm-line); border-radius: 10px ; font-size: 12px; justify-content: space-between; }
.sy-flow li:not(:last-child)::after { width: 22px; }
.sy-tier { margin: 0 0 14px; }
.sy-tier h4 { display: flex; align-items: baseline; gap: 8px; margin: 0 2px 6px; font: 500 14px/18px var(--font); color: var(--gm-text); flex-wrap: wrap; }
.sy-tier h4 i { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--gm-sel); color: var(--gm-sel-t); font: 600 12px/12px var(--font); font-style: normal; transform: translateY(3px); }
.sy-tier h4 span { font-weight: 500; font-size: 12px; color: var(--gm-sub); }
.sy-list { border: 1px solid var(--gm-line); border-radius: 10px ; overflow: hidden; background: var(--gm-surface); }
.sy-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; min-height: 56px; }
.sy-row + .sy-row { border-top: 1px solid var(--gm-line); }
.sy-row:hover { background: var(--gm-hover); }
.sy-ic.tu { width: 32px; height: 32px; flex: none; display: grid; place-items: center; } .sy-ic.tu svg { width: 30px; height: 30px; }
.sy-main { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.sy-main b { font: 500 14px/18px var(--font); color: var(--gm-text); }
.sy-main em { font-style: normal; font-size: 12px; color: var(--gm-sub); }
.sy-main em::before { content: "·"; margin-right: 6px; color: var(--gm-mute); }
.sy-main small { flex-basis: 100%; font-size: 12px; line-height: 17px; color: var(--gm-sub); }
.sy-side { flex: none; display: flex; align-items: center; gap: 10px; }
.sy-num { display: inline-flex; align-items: baseline; gap: 4px; font-size: 12px; color: var(--gm-sub); white-space: nowrap; }
.sy-num b { font: 500 14px/14px var(--font); color: var(--gm-text); font-variant-numeric: tabular-nums; }
.sy-num .ic { width: 16px; height: 16px; color: var(--gm-ok); align-self: center; }
.sy-err { display: inline-flex; align-items: center; gap: 3px; font: 500 12px var(--font); color: #c5221f; } .sy-err .ic { width: 16px; height: 16px; }
[data-theme="dark"] .sy-err { color: #f28b82; }
.sy-ask { height: 30px; padding: 0 12px; border-radius: 6px ; border: 1px solid var(--gm-line); background: none; color: var(--gm-sel-t); font: 500 12px var(--font); cursor: pointer; }
.sy-ask:hover { background: var(--gm-sel); border-color: transparent; }
.sy-row .tb-spark { height: 20px; gap: 2px; } .sy-row .tb-spark i { width: 5px; border-radius: 2px ; }
.sy-row .tb-spark i { background: color-mix(in srgb, var(--ac) 22%, transparent); } .sy-row .tb-spark i.on { background: var(--ac); }
#teamModal .tb-mistakes { padding: 10px 12px; border: 1px solid var(--gm-line); border-radius: 10px ; background: none; }
@media (max-width: 640px) { .sy-row .tb-spark, .sy-num { display: none; } .sy-kpi { display: none; } }
html.lite .ag-card, html.lite .sy-row, html.lite .ag-chip { transition: none; }
html .tu-trace li.warn::before { background: #f9ab00; border-color: #f9ab00; }
html .tu-trace li.warn span { color: #b06000; }
[data-theme="dark"] .tu-trace li.warn span { color: #fdd663; }

html .tu-bar { padding: 6px 4px 8px; border: 0; border-bottom: 1px solid var(--gm-line); border-radius: 0 ; background: none; }
html .tu-bar b { font: 500 14px/14px var(--font); color: var(--gm-text); letter-spacing: 0; }
html .tu-ver { padding: 1px 5px; border-radius: 6px ; background: none; border: 1px solid var(--gm-line); color: var(--gm-sub); font: 500 12px/17px var(--font); }
html .tu-live { font-weight: 500; color: var(--gm-sub); } html .tu-live i { background: var(--gm-ok); box-shadow: none; }
html .tu-q { font: 500 12px var(--font); color: var(--gm-sub); }
