:root {
  --bg: #070910;
  --surface: #101421;
  --surface-2: #171d2d;
  --surface-3: #20283b;
  --ink: #f4f7ff;
  --muted: #8b95ad;
  --muted-2: #657087;
  --line: rgba(255,255,255,.09);
  --lime: #b8f36b;
  --cyan: #5ce1e6;
  --violet: #a88aff;
  --orange: #ffb86b;
  --danger: #ff758c;
  --shadow: 0 24px 70px rgba(0,0,0,.34);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: radial-gradient(1000px 700px at 84% -16%, rgba(120,98,255,.18), transparent 65%),
              radial-gradient(800px 500px at -5% 35%, rgba(92,225,230,.1), transparent 64%), var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
body.light {
  --bg: #f6f8fc; --surface: #ffffff; --surface-2: #edf2f9; --surface-3: #dfe7f2;
  --ink: #111c2f; --muted: #4e607a; --muted-2: #687a94; --line: rgba(17,28,47,.16);
  --cyan: #087f8c; --lime: #4d7f00; --violet: #6848c7; --orange: #a85c00; --danger: #c33451;
  --shadow: 0 18px 46px rgba(40,57,88,.14);
  background: radial-gradient(800px 500px at 100% -20%, rgba(130,111,255,.16), transparent 68%), var(--bg);
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { width: min(1440px, calc(100% - 48px)); margin: 0 auto; }
.topbar { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(18px); background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--line); }
.topbar-inner { height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: ui-sans-serif, system-ui, sans-serif; font-weight: 700; letter-spacing: -.03em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: #0b1214; background: linear-gradient(135deg, var(--lime), var(--cyan)); box-shadow: 0 5px 24px rgba(184,243,107,.32); }
.brand small { color: var(--muted);  font-size: 11px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 5px; }
.nav a { padding: 9px 13px; border-radius: 10px; color: var(--muted); font-size: 14px; transition: .2s; }
.nav a:hover, .nav a.active { color: var(--ink); background: var(--surface-2); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: transparent; transition: .2s; }
.icon-btn:hover { border-color: color-mix(in srgb, var(--cyan) 50%, var(--line)); color: var(--ink); transform: translateY(-1px); }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #192104; font-weight: 700; background: linear-gradient(145deg, var(--lime), #9bc8f6); }
.mobile-toggle { display: none; }
.hero { display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 60px; padding: 70px 0 48px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
h1, h2, h3 { margin: 0; font-family: ui-sans-serif, system-ui, sans-serif; letter-spacing: -.055em; line-height: 1.08; }
h1 { max-width: 750px; margin: 18px 0 18px; font-size: clamp(42px, 6vw, 80px); }
h2 { font-size: clamp(26px, 4vw, 40px); }
h3 { font-size: 18px; letter-spacing: -.03em; }
.gradient-text { background: linear-gradient(110deg, var(--lime), var(--cyan)); color: transparent; background-clip: text; -webkit-background-clip: text; }
.hero-copy { max-width: 620px; color: var(--muted); font-size: 17px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: 12px; color: #111814; font-size: 14px; font-weight: 700; background: var(--lime); box-shadow: 0 10px 32px rgba(184,243,107,.14); transition: .22s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 15px 35px rgba(184,243,107,.24); }
.btn.secondary { color: var(--ink); border-color: var(--line); background: var(--surface-2); box-shadow: none; }
.btn.secondary:hover { border-color: var(--cyan); }
.hero-orb { position: relative; display: grid; place-items: center; min-height: 330px; }
.orb { width: min(300px, 70vw); aspect-ratio: 1; position: relative; border-radius: 42% 58% 55% 45% / 45% 42% 58% 55%; background: conic-gradient(from 220deg, var(--lime), var(--cyan), var(--violet), var(--lime)); filter: drop-shadow(0 30px 55px rgba(111,128,255,.18)); animation: morph 10s ease-in-out infinite alternate, float 6s ease-in-out infinite; }
.orb::before { content: ''; position: absolute; inset: 10px; border-radius: inherit; background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.18), transparent 30%), #111727; }
.orb::after { content: '✦'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--cyan); font-size: 72px; text-shadow: 0 0 40px var(--cyan); }
@keyframes morph { from { border-radius: 42% 58% 55% 45% / 45% 42% 58% 55%; transform: rotate(-7deg); } to { border-radius: 65% 35% 40% 60% / 50% 60% 40% 50%; transform: rotate(7deg); } }
@keyframes float { 50% { translate: 0 -12px; } }
.orb-label { position: absolute; right: 4%; bottom: 8%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 13px; color: var(--muted); background: rgba(16,20,33,.72); backdrop-filter: blur(14px); font-size: 12px; }
.orb-label strong { display: block; color: var(--ink); font-size: 19px; }
.section { padding: 34px 0 66px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-head p { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.text-link { color: var(--cyan); font-size: 13px; font-weight: 600; }
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { position: relative; overflow: hidden; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, color-mix(in srgb, var(--surface) 94%, transparent), color-mix(in srgb, var(--surface-2) 70%, transparent)); box-shadow: var(--shadow); }
.card::after { content: ''; position: absolute; width: 130px; height: 130px; right: -52px; top: -55px; border-radius: 50%; background: color-mix(in srgb, var(--card-accent, var(--cyan)) 13%, transparent); filter: blur(5px); pointer-events: none; }
.stat-card { min-height: 142px; }
.stat-top { display: flex; align-items: flex-start; justify-content: space-between; color: var(--muted); font-size: 12px; }
.stat-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: var(--card-accent, var(--cyan)); background: color-mix(in srgb, var(--card-accent, var(--cyan)) 13%, transparent); }
.stat-value { margin-top: 15px; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 30px; font-weight: 600; letter-spacing: -.06em; }
.stat-value small { margin-left: 3px; color: var(--muted); font-size: 12px; letter-spacing: 0; }
.meter { height: 6px; margin-top: 14px; overflow: hidden; border-radius: 10px; background: var(--surface-3); }
.meter > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--lime), var(--cyan)); }
.split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 16px; }
.chart-card { min-height: 310px; }
.chart { width: 100%; height: 190px; margin-top: 22px; }
.chart .line { fill: none; stroke: var(--cyan); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--cyan) 65%, transparent)); stroke-dasharray: 800; stroke-dashoffset: 800; animation: draw 1.4s .2s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.chart-grid line { stroke: var(--line); stroke-width: 1; }
.chart-labels { display: flex; justify-content: space-between; color: var(--muted-2); font-size: 11px; }
.ring-wrap { display: grid; place-items: center; min-height: 240px; }
.ring { width: 160px; height: 160px; transform: rotate(-90deg); }
.ring .track { fill: none; stroke: var(--surface-3); stroke-width: 12; }
.ring .progress { fill: none; stroke: url(#ringGradient); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 440; stroke-dashoffset: 110; animation: ringIn 1.3s ease-out forwards; }
@keyframes ringIn { from { stroke-dashoffset: 440; } to { stroke-dashoffset: 110; } }
.ring-center { position: absolute; text-align: center; }
.ring-center strong { display: block; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 35px; letter-spacing: -.06em; }
.ring-center span { color: var(--muted); font-size: 12px; }
.ring-holder { position: relative; display: grid; place-items: center; }
.list { display: grid; gap: 10px; }
.list-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 12px; border: 1px solid transparent; border-radius: 13px; background: var(--surface-2); transition: .2s; }
.list-row:hover { border-color: var(--line); transform: translateX(2px); }
.row-icon { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--cyan); background: color-mix(in srgb, var(--cyan) 13%, transparent); }
.row-main { min-width: 0; flex: 1; }
.row-main strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.row-main span { color: var(--muted); font-size: 11px; }
.pill { padding: 5px 8px; border-radius: 20px; color: var(--muted); background: var(--surface-3); font-size: 11px; white-space: nowrap; }
.pill.success { color: var(--lime); background: rgba(184,243,107,.1); }
.chat-card { display: flex; flex-direction: column; min-height: 505px; }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.bot-id { display: flex; align-items: center; gap: 10px; }
.bot-avatar { position: relative; width: 35px; height: 35px; display: grid; place-items: center; border-radius: 12px; color: #0d1714; background: linear-gradient(145deg, var(--lime), var(--cyan)); }
.bot-avatar::after { content: ''; position: absolute; right: -2px; bottom: -2px; width: 8px; height: 8px; border: 2px solid var(--surface); border-radius: 50%; background: var(--lime); }
.bot-id strong { display: block; font-size: 13px; }
.bot-id span { color: var(--lime); font-size: 11px; }
.chat-body { display: flex; flex: 1; flex-direction: column; gap: 12px; min-height: 290px; padding: 18px 2px; overflow: auto; }
.bubble { max-width: 83%; padding: 11px 14px; border-radius: 15px 15px 15px 4px; color: var(--muted); background: var(--surface-2); font-size: 13px; animation: rise .28s ease-out both; }
.bubble.user { align-self: flex-end; border-radius: 15px 15px 4px 15px; color: #15200d; background: var(--lime); }
@keyframes rise { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.quick-prompts { display: flex; gap: 7px; overflow-x: auto; padding: 0 0 10px; scrollbar-width: thin; }
.quick-prompts button { flex: 0 0 auto; padding: 7px 10px; border: 1px solid var(--line); border-radius: 20px; color: var(--muted); background: transparent; font-size: 11px; transition: .2s; }
.quick-prompts button:hover { border-color: var(--cyan); color: var(--cyan); }
.chat-form { display: flex; align-items: flex-end; gap: 9px; padding-top: 12px; border-top: 1px solid var(--line); }
.chat-form textarea { min-height: 43px; max-height: 100px; flex: 1; resize: none; padding: 11px 13px; outline: none; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--surface-2); font-size: 13px; }
.chat-form textarea:focus { border-color: var(--cyan); }
.send-btn { width: 43px; height: 43px; display: grid; place-items: center; border: 0; border-radius: 12px; color: #13200f; background: var(--lime); }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 28px; translate: -50% 20px; max-width: min(420px, calc(100% - 32px)); padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--surface-2); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .25s; font-size: 13px; }
.toast.show { translate: -50% 0; opacity: 1; }
.footer { padding: 30px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-inner { display: flex; justify-content: space-between; gap: 18px; }

/* speaking coach */
.speak-hero { padding-bottom: 28px; }
.coach-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); gap: 16px; }
.practice-card { min-height: 545px; }
.practice-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 22px; }
.scenario-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 20px; color: var(--orange); background: rgba(255,184,107,.11); font-size: 11px; }
.scenario-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.scenario-chip { padding: 8px 11px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: transparent; font-size: 12px; transition: .2s; }
.scenario-chip:hover, .scenario-chip.active { border-color: var(--cyan); color: var(--cyan); background: rgba(92,225,230,.08); }
.conversation { display: grid; gap: 16px; margin-top: 25px; }
.voice-bubble { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-2); }
.voice-bubble.user { border-color: rgba(184,243,107,.25); background: rgba(184,243,107,.07); }
.speaker-dot { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: #111; background: var(--cyan); }
.voice-bubble.user .speaker-dot { background: var(--lime); }
.voice-text strong { display: block; font-size: 11px; }
.voice-text span { color: var(--muted); font-size: 13px; }
.wave { display: flex; align-items: center; gap: 2px; height: 26px; }
.wave i { display: block; width: 3px; height: 10px; border-radius: 3px; background: var(--cyan); animation: wave 1.1s ease-in-out infinite; }
.wave i:nth-child(2n) { animation-delay: .18s; } .wave i:nth-child(3n) { animation-delay: .32s; } .wave i:nth-child(4n) { animation-delay: .46s; }
@keyframes wave { 50% { height: 23px; } }
.record-wrap { display: grid; place-items: center; margin-top: 28px; }
.record-btn { position: relative; width: 89px; height: 89px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #15200d; background: linear-gradient(145deg, var(--lime), var(--cyan)); box-shadow: 0 0 0 10px rgba(184,243,107,.08), 0 12px 45px rgba(184,243,107,.22); transition: .25s; }
.record-btn:hover { transform: scale(1.05); }
.record-btn.recording { animation: pulse 1.25s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 20px rgba(255,117,140,.03), 0 12px 45px rgba(255,117,140,.25); background: var(--danger); } }
.record-label { margin-top: 11px; color: var(--muted); font-size: 12px; }
.score-card { min-height: 252px; }
.score-head { display: flex; justify-content: space-between; align-items: flex-start; }
.score-num { margin-top: 14px; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 53px; font-weight: 600; letter-spacing: -.08em; }
.score-num small { color: var(--muted); font-size: 15px; letter-spacing: 0; }
.score-bars { display: grid; gap: 11px; margin-top: 18px; }
.score-line { display: grid; grid-template-columns: 80px 1fr 35px; gap: 8px; align-items: center; color: var(--muted); font-size: 11px; }
.score-line .meter { margin: 0; }
.score-line b { color: var(--ink); font-size: 11px; text-align: right; }
.tip-card { min-height: 255px; }
.tip-quote { margin: 18px 0 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.tip-quote strong { color: var(--ink); }
.knowledge-map { position: relative; min-height: 174px; margin: 18px 4px 8px; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; background: radial-gradient(circle at 50% 45%, rgba(92,225,230,.08), transparent 55%), var(--surface-2); }
.knowledge-map::before { content: ''; position: absolute; inset: 15px; opacity: .35; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 25px 25px; }
.knowledge-map .node { position: absolute; z-index: 1; display: grid; place-items: center; min-width: 56px; height: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius: 16px; color: var(--muted); background: var(--surface); font-size: 10px; transition: .22s; cursor: pointer; }
.knowledge-map .node:hover, .knowledge-map .node.active { border-color: var(--cyan); color: var(--ink); box-shadow: 0 0 0 5px rgba(92,225,230,.1); }
.knowledge-map .node.active { color: #101b14; background: var(--lime); border-color: transparent; }
.knowledge-map .n1 { left: 8%; top: 22%; }.knowledge-map .n2 { left: 33%; top: 10%; }.knowledge-map .n3 { left: 45%; top: 65%; }.knowledge-map .n4 { right: 8%; top: 24%; }.knowledge-map .n5 { left: 14%; bottom: 12%; }
.knowledge-map .link { position: absolute; z-index: 0; height: 1px; transform-origin: left center; background: color-mix(in srgb, var(--cyan) 35%, transparent); }
.knowledge-map .l1 { left: 22%; top: 33%; width: 105px; transform: rotate(-20deg); }.knowledge-map .l2 { left: 47%; top: 28%; width: 90px; transform: rotate(48deg); }.knowledge-map .l3 { left: 52%; top: 69%; width: 85px; transform: rotate(-44deg); }.knowledge-map .l4 { left: 24%; top: 76%; width: 87px; transform: rotate(-13deg); }
.map-legend { display: flex; gap: 13px; color: var(--muted); font-size: 11px; }.map-legend span { display: inline-flex; align-items: center; gap: 5px; }.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); }.dot.strong { background: var(--lime); }.dot.mid { background: var(--cyan); }.dot.weak { background: var(--muted-2); }

@media (max-width: 1000px) { .hero { grid-template-columns: 1fr; gap: 14px; padding-top: 50px; } .hero-orb { min-height: 265px; } .grid-4 { grid-template-columns: repeat(2, 1fr); } .split, .coach-layout { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .app-shell { width: min(100% - 28px, 600px); } .topbar-inner { height: 64px; } .nav { display: none; position: absolute; top: 64px; left: 14px; right: 14px; padding: 9px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow); } .nav.open { display: grid; } .nav a { padding: 12px; } .mobile-toggle { display: grid; } .brand small { display: none; } .top-actions .icon-btn:first-child { display: none; } h1 { font-size: 45px; } .hero-copy { font-size: 15px; } .hero { padding: 39px 0 30px; } .hero-orb { min-height: 210px; } .orb { width: 205px; } .orb-label { right: 1%; bottom: 0; } .section { padding: 25px 0 48px; } .section-head { align-items: flex-start; flex-direction: column; gap: 6px; } .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } .grid-4 .stat-card { min-height: 124px; } .footer-inner { flex-direction: column; } .chat-card { min-height: 470px; } .practice-card { min-height: 500px; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; } }

/* Shared application controls and resilient content styles. */
:focus-visible { outline: 3px solid color-mix(in srgb, var(--cyan) 72%, white); outline-offset: 3px; }
button:disabled, .send-btn:disabled { cursor: wait; opacity: .52; transform: none; }
.studio-switch { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid color-mix(in srgb, var(--cyan) 45%, var(--line)); border-radius: 10px; color: var(--cyan); font-size: 12px; font-weight: 700; }
.studio-switch:hover { background: color-mix(in srgb, var(--cyan) 12%, transparent); }
.chat-tools { display: flex; align-items: center; gap: 7px; min-height: 31px; padding: 7px 0 0; }
.chat-local-hint { flex: 1; color: var(--muted-2); font-size: 10px; }
.chat-tools button, .bubble-actions button { border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; color: var(--muted); background: transparent; font-size: 11px; }
.chat-tools button:hover, .bubble-actions button:hover { border-color: var(--cyan); color: var(--cyan); }
.bubble-text { overflow-wrap: anywhere; }
.bubble-text p { margin: 0 0 7px; }
.bubble-text p:last-child { margin-bottom: 0; }
.bubble-text ul { margin: 0 0 7px; padding-left: 18px; }
.bubble-text code { padding: 1px 5px; border-radius: 5px; color: var(--cyan); background: color-mix(in srgb, var(--cyan) 12%, transparent); font-size: .92em; }
.bubble.pending { opacity: .72; }
.bubble.error { border-color: color-mix(in srgb, var(--danger) 62%, var(--line)); color: var(--danger); }
.bubble-actions { display: flex; gap: 6px; margin-top: 9px; opacity: .82; }
.bubble.user .bubble-actions { display: none; }
.chat-form.is-busy textarea { border-color: color-mix(in srgb, var(--cyan) 40%, var(--line)); }
.chat-form textarea { line-height: 1.55; }
.local-note, .muted, .stat-caption, .stat-note { color: var(--muted); font-size: 12px; }
.local-note { margin: 13px 0 0; }
.small-btn { min-height: 34px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: var(--surface-2); font-size: 12px; font-weight: 650; }
.small-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.small-btn.danger, .danger-btn { color: var(--danger); }
.empty-state { display: grid; place-items: center; gap: 7px; min-height: 120px; padding: 22px; color: var(--muted); text-align: center; }
.empty-state strong { color: var(--ink); }
.learn-list { display: grid; gap: 9px; }
.learn-list > * { min-width: 0; }
.form-row { display: grid; grid-template-columns: 1fr 120px 140px; gap: 10px; }
.learn-form label, .timer-label, .timer-settings label, .studio-controls label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 650; }
.learn-form textarea, .learn-form input, .learn-form select, .search-input, .timer-settings select, .studio-controls select, .phrase-save input { min-width: 0; padding: 10px 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--surface-2); outline: none; }
.learn-form textarea:focus, .learn-form input:focus, .learn-form select:focus, .search-input:focus, .timer-settings select:focus, .studio-controls select:focus, .phrase-save input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 17%, transparent); }
.suite-dialog { width: min(520px, calc(100% - 28px)); padding: 0; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: var(--surface); box-shadow: var(--shadow); }
.suite-dialog::backdrop { background: rgba(5, 10, 21, .63); backdrop-filter: blur(5px); }
.suite-dialog-card { position: relative; padding: 25px; }
.suite-dialog-card h3 { padding-right: 30px; }
.suite-dialog-content { margin-top: 14px; color: var(--muted); font-size: 14px; }
.suite-dialog-content p { margin: 0 0 10px; }
.suite-dialog-close { position: absolute; top: 13px; right: 13px; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: transparent; font-size: 20px; line-height: 1; }
.suite-dialog-close:hover { color: var(--ink); border-color: var(--cyan); }

@media (max-width: 760px) {
  .app-shell { width: min(100% - 28px, 620px); }
  .topbar-inner { gap: 10px; }
  .studio-switch { padding: 0 8px; font-size: 11px; }
  .form-row { grid-template-columns: 1fr; }
  .chat-tools { padding-top: 4px; }
  .chat-body { min-height: 230px; }
  .bubble { max-width: 94%; }
}

