:root {
  color-scheme: light;
  --canvas: #eef4f8;
  --surface: #ffffff;
  --surface-soft: #f5f8fa;
  --ink: #0b1728;
  --muted: #617083;
  --nav: #071521;
  --nav-soft: #102536;
  --blue: #0a84ff;
  --blue-soft: #e8f3ff;
  --green: #2cc76f;
  --orange: #ff9f0a;
  --red: #ff453a;
  --line: #dce6ed;
  --shadow: 0 18px 48px rgba(22, 51, 74, .08);
  --sidebar: 236px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--canvas); scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; color: var(--ink); background: var(--canvas); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif; font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button { color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(10, 132, 255, .28); outline-offset: 2px; }
button:active { transform: scale(.975); transition: transform 90ms ease-out; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.ambient { position: fixed; z-index: -1; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.ambient-one { width: 540px; height: 540px; right: -180px; top: -220px; background: radial-gradient(circle, rgba(55, 164, 255, .18), rgba(55, 164, 255, 0) 70%); }
.ambient-two { width: 460px; height: 460px; left: 32%; bottom: -300px; background: radial-gradient(circle, rgba(44, 199, 111, .1), rgba(44, 199, 111, 0) 72%); }

.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: var(--sidebar); padding: 26px 18px 22px; display: flex; flex-direction: column; color: #f6fbff; background: var(--nav); box-shadow: 14px 0 40px rgba(3, 19, 31, .12); }
.brand { display: flex; align-items: center; gap: 12px; padding: 6px 8px 28px; color: inherit; background: none; border: 0; text-align: left; }
.brand-signal { width: 42px; height: 42px; padding: 9px; display: flex; align-items: flex-end; justify-content: center; gap: 3px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 13px; background: linear-gradient(145deg, rgba(34, 144, 255, .9), rgba(23, 90, 165, .9)); box-shadow: inset 0 1px rgba(255, 255, 255, .35), 0 8px 24px rgba(0, 89, 183, .28); }
.brand-signal i { width: 4px; border-radius: 9px; background: #fff; }
.brand-signal i:nth-child(1) { height: 9px; opacity: .55; }
.brand-signal i:nth-child(2) { height: 16px; opacity: .8; }
.brand-signal i:nth-child(3) { height: 23px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 19px; letter-spacing: -.03em; }
.brand small { margin-top: 1px; color: #8ba4b7; font-size: 11px; letter-spacing: .04em; }
.side-nav { display: grid; gap: 6px; }
.nav-item { position: relative; min-height: 48px; padding: 0 13px; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 10px; color: #8ea4b5; background: transparent; border: 0; border-radius: 12px; text-align: left; transition: color 160ms ease, background 160ms ease, transform 90ms ease; }
.nav-item:hover { color: #dce9f2; background: rgba(255, 255, 255, .05); }
.nav-item.active { color: #fff; background: var(--nav-soft); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.nav-item.active::before { content: ""; position: absolute; left: -18px; width: 3px; height: 22px; border-radius: 0 4px 4px 0; background: var(--blue); box-shadow: 0 0 12px rgba(10, 132, 255, .7); }
.nav-item b { min-width: 22px; padding: 2px 6px; color: #d8edff; background: rgba(10, 132, 255, .22); border-radius: 99px; font-size: 10px; text-align: center; }
.sidebar-foot { margin-top: auto; padding: 16px 12px 4px; display: flex; align-items: center; gap: 12px; border-top: 1px solid rgba(255, 255, 255, .08); }
.daily-ring { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border: 3px solid #1c384d; border-top-color: var(--blue); border-radius: 50%; }
.daily-ring span { font-size: 10px; font-weight: 700; }
.sidebar-foot strong, .sidebar-foot small { display: block; }
.sidebar-foot strong { font-size: 12px; }
.sidebar-foot small { margin-top: 2px; color: #8299aa; font-size: 10px; }

.workspace { min-height: 100vh; margin-left: var(--sidebar); padding: 20px 36px 72px; }
.toolbar { position: sticky; top: 12px; z-index: 15; min-height: 62px; max-width: 1380px; margin: 0 auto 46px; padding: 10px 14px 10px 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .88); border-radius: 18px; box-shadow: 0 10px 30px rgba(26, 59, 82, .07); backdrop-filter: blur(20px) saturate(160%); }
.toolbar-kicker { display: block; color: #8091a0; font-size: 9px; font-weight: 700; letter-spacing: .11em; }
.toolbar strong { display: block; margin-top: 1px; font-size: 15px; }
.toolbar-meta { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 12px; }
.privacy-pill { padding: 7px 10px; display: flex; align-items: center; gap: 6px; color: #32576f; background: rgba(232, 243, 255, .86); border-radius: 99px; }
.privacy-pill svg { width: 14px; height: 14px; }

.view { display: none; width: min(100%, 1380px); margin: 0 auto; animation: view-in 220ms ease-out both; }
.view.active { display: block; }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.signal-label { display: inline-flex; align-items: center; gap: 8px; color: #537188; font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.signal-label i { width: 7px; height: 7px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 4px rgba(44, 199, 111, .12); }
.focus-hero { min-height: 430px; padding: clamp(36px, 5vw, 70px); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); align-items: center; gap: 36px; overflow: hidden; color: #f4faff; background: linear-gradient(135deg, #0a1c2d 0%, #0d263a 58%, #0a3850 100%); border: 1px solid rgba(255, 255, 255, .08); border-radius: 30px; box-shadow: 0 24px 70px rgba(5, 31, 50, .2); }
.focus-copy h1 { margin: 19px 0 18px; font-size: clamp(48px, 5.3vw, 76px); line-height: 1.02; letter-spacing: -.055em; }
.focus-copy > p { max-width: 630px; margin: 0 0 30px; color: #b6c9d7; font-size: 17px; line-height: 1.7; }
.track-switcher { width: max-content; margin-top: 20px; padding: 4px; display: flex; gap: 3px; background: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 255, 255, .09); border-radius: 13px; }
.track-switcher button { min-height: 34px; padding: 0 13px; color: #83a0b4; background: transparent; border: 0; border-radius: 9px; font-size: 11px; }
.track-switcher button.active { color: #fff; background: rgba(10, 132, 255, .25); box-shadow: inset 0 0 0 1px rgba(82, 172, 255, .22); }
.primary-button, .secondary-button, .ghost-button { min-height: 46px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 13px; font-weight: 650; transition: transform 90ms ease-out, box-shadow 160ms ease, background 160ms ease; }
.primary-button { color: #fff; background: var(--blue); border: 1px solid #2793ff; box-shadow: 0 9px 22px rgba(10, 132, 255, .24), inset 0 1px rgba(255, 255, 255, .22); }
.primary-button:hover { background: #168dff; box-shadow: 0 11px 26px rgba(10, 132, 255, .3); }
.secondary-button { color: #18354b; background: rgba(255, 255, 255, .86); border: 1px solid var(--line); box-shadow: 0 5px 16px rgba(32, 66, 89, .06); }
.ghost-button { color: #31536b; background: var(--surface-soft); border: 1px solid var(--line); }
.wide { width: 100%; }
.focus-meta { margin-top: 25px; display: flex; gap: 23px; color: #84a1b6; font-size: 11px; }
.focus-meta span { position: relative; }
.focus-meta span + span::before { content: ""; position: absolute; left: -12px; top: 50%; width: 3px; height: 3px; background: #638399; border-radius: 50%; }

.signal-orbit { position: relative; width: min(31vw, 390px); aspect-ratio: 1; margin: auto; }
.orbit { position: absolute; inset: 0; border: 1px solid rgba(132, 199, 242, .22); border-radius: 50%; }
.orbit::after { content: ""; position: absolute; inset: 10%; border: 1px solid rgba(132, 199, 242, .12); border-radius: 50%; }
.orbit i { position: absolute; width: 11px; height: 11px; background: #4fb1ff; border: 3px solid rgba(255, 255, 255, .8); border-radius: 50%; box-shadow: 0 0 18px #0a84ff; }
.orbit-one { inset: 0; transform: rotate(14deg); }
.orbit-one i { top: 9%; left: 31%; }
.orbit-two { inset: 17%; transform: rotate(-26deg); }
.orbit-two i { right: -5px; top: 48%; background: var(--green); box-shadow: 0 0 18px var(--green); }
.orbit-three { inset: 34%; transform: rotate(20deg); }
.orbit-three i { left: -5px; bottom: 28%; background: var(--orange); box-shadow: 0 0 18px var(--orange); }
.orbit-core { position: absolute; inset: 35%; display: grid; place-content: center; text-align: center; background: rgba(10, 132, 255, .13); border: 1px solid rgba(123, 194, 255, .28); border-radius: 50%; box-shadow: inset 0 0 40px rgba(10, 132, 255, .1); }
.orbit-core strong { font-size: clamp(28px, 4vw, 46px); letter-spacing: -.04em; }
.orbit-core span { color: #87a4b8; font-size: 10px; }
.orbit-label { position: absolute; padding: 5px 9px; color: #9db9cd; background: rgba(3, 20, 33, .7); border: 1px solid rgba(255, 255, 255, .08); border-radius: 99px; font-size: 10px; backdrop-filter: blur(8px); }
.label-review { left: 4%; top: 20%; }
.label-practice { right: -2%; top: 50%; }
.label-writing { left: 16%; bottom: 7%; }

.dashboard-grid { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr); gap: 24px; }
.surface { background: rgba(255, 255, 255, .94); border: 1px solid rgba(220, 230, 237, .95); border-radius: 22px; box-shadow: var(--shadow); }
.mission-panel { padding: 26px; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.section-kicker { color: #7a8c9b; font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.section-heading h2, .section-heading h3 { margin: 4px 0 0; letter-spacing: -.025em; }
.section-heading h2 { font-size: 25px; }
.quiet { color: var(--muted); font-size: 12px; }
.mission-list { margin-top: 18px; }
.mission-row { width: 100%; min-height: 86px; padding: 13px 6px; display: grid; grid-template-columns: 50px 1fr auto 38px; align-items: center; gap: 14px; background: transparent; border: 0; border-top: 1px solid var(--line); text-align: left; }
.mission-index { width: 40px; height: 40px; display: grid; place-items: center; color: #4d6d83; background: #eef5f9; border-radius: 12px; font-family: "SFMono-Regular", ui-monospace, monospace; font-size: 11px; }
.mission-main b, .mission-main small { display: block; }
.mission-main b { font-size: 16px; }
.mission-main small { margin-top: 4px; color: var(--muted); }
.mission-time { color: #8b9aa6; font-family: "SFMono-Regular", ui-monospace, monospace; font-size: 10px; }
.mission-arrow { width: 34px; height: 34px; display: grid; place-items: center; color: #6e8798; background: var(--surface-soft); border-radius: 10px; }
.mission-row.completed .mission-index { color: #157c41; background: #e9f9f0; }
.mission-row.completed .mission-index { font-size: 0; }
.mission-row.completed .mission-index::after { content: "✓"; font-size: 14px; }
.right-stack { display: grid; align-content: start; gap: 18px; }
.streak-card { padding: 24px; }
.streak-card > div:nth-child(2) { margin: 12px 0 20px; display: flex; align-items: baseline; gap: 8px; }
.streak-card strong { font-size: 48px; line-height: 1; letter-spacing: -.05em; }
.streak-card span { color: var(--muted); }
.week-dots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.week-dots i { aspect-ratio: 1; display: grid; place-items: center; color: #8294a2; background: #edf3f6; border-radius: 50%; font-size: 9px; font-style: normal; }
.week-dots i.done { color: #fff; background: var(--ink); }
.phrase-card { padding: 24px; color: #dcecff; background: linear-gradient(145deg, #0f2f47, #0b2235); border: 1px solid rgba(255, 255, 255, .08); border-radius: 22px; box-shadow: 0 18px 42px rgba(5, 31, 50, .15); }
.phrase-head { display: flex; align-items: center; justify-content: space-between; color: #6f9bbb; font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.phrase-head button { width: 36px; height: 36px; display: grid; place-items: center; color: #fff; background: rgba(10, 132, 255, .2); border: 1px solid rgba(10, 132, 255, .35); border-radius: 50%; }
.phrase-card p { margin: 18px 0 10px; font-family: "SFMono-Regular", "SF Mono", ui-monospace, monospace; font-size: 15px; line-height: 1.7; }
.phrase-card small { color: #7f9cb1; }

.view-head { margin: 0 4px 30px; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.view-head h1 { margin: 10px 0 8px; font-size: clamp(38px, 4vw, 54px); line-height: 1.05; letter-spacing: -.045em; }
.view-head p { margin: 0; color: var(--muted); font-size: 16px; }
.review-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr); gap: 24px; }
.review-card { min-height: 610px; padding: 28px; display: flex; flex-direction: column; overflow: hidden; color: #f6fbff; background: linear-gradient(145deg, #092338 0%, #0b3650 62%, #0a4b68 100%); border: 1px solid rgba(255, 255, 255, .08); border-radius: 28px; box-shadow: 0 25px 70px rgba(8, 40, 61, .2); }
.review-card-head { display: flex; align-items: center; justify-content: space-between; color: #7ea5be; font-family: "SFMono-Regular", ui-monospace, monospace; font-size: 10px; }
.topic-tag { padding: 7px 10px; color: #63b7f7; background: rgba(10, 132, 255, .12); border: 1px solid rgba(58, 162, 255, .18); border-radius: 99px; font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.review-front { flex: 1; display: grid; align-content: center; justify-items: center; text-align: center; }
.review-front > span, .review-back > span, .example-box span { color: #76a0ba; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.review-front h2 { margin: 18px 0 12px; font-family: "SFMono-Regular", "SF Mono", ui-monospace, monospace; font-size: clamp(42px, 6vw, 72px); line-height: 1.05; letter-spacing: -.055em; }
.review-front p { max-width: 520px; margin: 0; color: #95b2c4; font-size: 15px; }
.sound-button { margin-top: 22px; padding: 8px 12px; display: inline-flex; align-items: center; gap: 7px; color: #9fc8e3; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 99px; font-size: 11px; }
.sound-button svg { width: 15px; height: 15px; }
.review-back { flex: 1; padding: 42px 6%; display: grid; align-content: center; }
.answer-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.answer-heading span { padding: 6px 10px; color: #fff; background: var(--blue); border-radius: 99px; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.answer-heading strong { color: #f4f9fc; font-size: 18px; }
.review-back h3 { margin: 12px 0; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.035em; }
.review-back > p { margin: 0; color: #abc2d1; font-size: 15px; }
.example-box { margin-top: 30px; padding: 20px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .09); border-radius: 16px; }
.example-box p { margin: 9px 0 0; color: #e7f4fc; font-family: "SFMono-Regular", ui-monospace, monospace; line-height: 1.7; }
.answer-tip { margin-top: 14px; padding: 15px 20px; background: rgba(10, 132, 255, .12); border: 1px solid rgba(80, 167, 255, .22); border-radius: 14px; }
.answer-tip span { color: #82bce3; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.answer-tip p { margin: 7px 0 0; color: #dcecf7; font-size: 13px; line-height: 1.6; }
.rating-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rating-grid button { min-height: 58px; color: #dcecf6; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .11); border-radius: 14px; }
.rating-grid b, .rating-grid span { display: block; }
.rating-grid span { margin-top: 2px; color: #7897aa; font-size: 9px; }
.review-side { display: grid; align-content: start; gap: 16px; }
.progress-card { padding: 22px; display: flex; align-items: center; gap: 17px; }
.mini-ring { width: 70px; height: 70px; display: grid; place-items: center; border: 7px solid #e7eef3; border-top-color: var(--blue); border-radius: 50%; }
.mini-ring span { font-size: 12px; font-weight: 700; }
.progress-card h3 { margin: 4px 0; }
.progress-card p { margin: 0; color: var(--muted); }
.queue-card { padding: 22px; }
.queue-card ul { margin: 16px 0 0; padding: 0; list-style: none; }
.queue-card li { padding: 12px 0; display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 9px; border-top: 1px solid var(--line); }
.queue-card li span { color: #36546a; }
.dot { width: 7px; height: 7px; border-radius: 50%; }
.dot.orange { background: var(--orange); }.dot.blue { background: var(--blue); }.dot.green { background: var(--green); }
.tip-card { padding: 20px; color: #5d491b; background: #fff6dd; border: 1px solid #f3dfaa; border-radius: 18px; }
.tip-card span { color: #94701c; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.tip-card p { margin: 8px 0 0; line-height: 1.6; }

.practice-trackbar { width: max-content; margin-bottom: 10px; display: flex; gap: 8px; }
.practice-trackbar button { min-height: 34px; padding: 0 14px; color: #587185; background: transparent; border: 1px solid transparent; border-radius: 99px; font-size: 11px; font-weight: 650; }
.practice-trackbar button.active { color: #075aa8; background: var(--blue-soft); border-color: #cfe5fb; }
.scenario-tabs { width: max-content; margin-bottom: 22px; padding: 4px; display: flex; gap: 4px; background: rgba(255, 255, 255, .68); border: 1px solid rgba(255, 255, 255, .9); border-radius: 14px; box-shadow: 0 8px 24px rgba(24, 58, 82, .06); }
.scenario-tabs button { min-width: 72px; min-height: 36px; color: #607486; background: transparent; border: 0; border-radius: 10px; }
.scenario-tabs button.active { color: #fff; background: var(--ink); box-shadow: 0 5px 12px rgba(11, 23, 40, .18); }
.practice-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(310px, .65fr); gap: 24px; }
.scenario-card { padding: 30px; }
.scenario-top { display: flex; align-items: center; justify-content: space-between; }
.difficulty { display: flex; align-items: center; gap: 7px; color: #5f7485; font-size: 10px; }
.difficulty i { width: 7px; height: 7px; background: var(--green); border-radius: 50%; }
.scenario-card > h2 { max-width: 680px; margin: 20px 0 24px; font-size: clamp(30px, 4vw, 46px); line-height: 1.1; letter-spacing: -.04em; }
.context-block { padding: 18px 20px; background: #eff6fa; border-left: 3px solid var(--blue); border-radius: 0 14px 14px 0; }
.context-block span, .starter-box > span { color: #67849a; font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.context-block p { margin: 7px 0 0; color: #29485e; }
.scenario-card > h3 { margin: 28px 0 8px; font-size: 14px; }
.talk-list { margin: 0; padding: 0; list-style: none; }
.talk-list li { padding: 15px 0; display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.talk-list > li > span { width: 34px; height: 34px; display: grid; place-items: center; color: #47718f; background: #edf5f9; border-radius: 10px; font-family: "SFMono-Regular", ui-monospace, monospace; font-size: 9px; }
.talk-list b, .talk-list p { display: block; margin: 0; }
.talk-list p { margin-top: 2px; color: var(--muted); }
.starter-box { margin-top: 24px; padding: 20px; color: #ddebF6; background: #0b2132; border-radius: 17px; }
.starter-box p { margin: 9px 0 15px; font-family: "SFMono-Regular", ui-monospace, monospace; line-height: 1.7; }
.starter-box button { padding: 7px 10px; display: inline-flex; align-items: center; gap: 7px; color: #8fc9f3; background: rgba(10, 132, 255, .12); border: 1px solid rgba(10, 132, 255, .22); border-radius: 99px; font-size: 10px; }
.starter-box svg { width: 14px; height: 14px; }
.recording-card { min-height: 560px; padding: 30px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #eff8ff; background: linear-gradient(155deg, #09253a, #0a3b55); border: 1px solid rgba(255, 255, 255, .08); border-radius: 24px; box-shadow: 0 22px 58px rgba(8, 40, 61, .18); text-align: center; }
.record-status { display: flex; align-items: center; gap: 8px; color: #80a7c0; font-family: "SFMono-Regular", ui-monospace, monospace; font-size: 10px; letter-spacing: .1em; }
.record-status i { width: 7px; height: 7px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 5px rgba(44, 199, 111, .1); }
.record-timer { margin: 28px 0 18px; font-family: "SFMono-Regular", ui-monospace, monospace; font-size: 56px; line-height: 1; letter-spacing: -.05em; }
.waveform { height: 58px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.waveform i { width: 3px; height: 10px; background: #3a8fc0; border-radius: 99px; }
.recording .waveform i { animation: wave 700ms ease-in-out infinite alternate; }
.recording .waveform i:nth-child(2n) { animation-delay: -220ms; }.recording .waveform i:nth-child(3n) { animation-delay: -420ms; }
@keyframes wave { to { height: 44px; background: #73c8fb; } }
.recording-card > p { min-height: 48px; margin: 13px 0 22px; color: #8fb0c5; line-height: 1.6; }
.record-button { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 10px; color: #fff; background: var(--blue); border: 0; border-radius: 14px; font-weight: 650; }
.record-button span { width: 12px; height: 12px; background: #fff; border-radius: 50%; }
.recording .record-button { background: var(--red); }
.recording .record-button span { border-radius: 2px; }
.recording-card audio { width: 100%; margin: 14px 0; }
.recording-card .ghost-button { margin-top: 10px; color: #b9d0df; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); }
.recording-card > small { margin-top: 18px; color: #66869b; }

.autosave { display: flex; align-items: center; gap: 7px; color: #668092; font-size: 11px; }
.autosave i { width: 7px; height: 7px; background: var(--green); border-radius: 50%; }
.writing-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; }
.template-panel { padding: 24px; }
.template-panel h3 { margin: 6px 0 18px; }
.template-list { display: grid; gap: 8px; }
.template-list button { padding: 13px; display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 11px; color: #4d687a; background: transparent; border: 1px solid transparent; border-radius: 13px; text-align: left; }
.template-list button.active { color: var(--ink); background: var(--blue-soft); border-color: #cfe5fb; }
.template-list b, .template-list small { display: block; }
.template-list small { margin-top: 2px; color: #7d8f9d; font-size: 10px; line-height: 1.4; }
.structure-list { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.structure-list > span { color: #758998; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.structure-list ol { margin: 10px 0 0; padding: 0; list-style: none; }
.structure-list li { padding: 8px 0; display: flex; align-items: center; gap: 8px; color: #83929d; font-size: 12px; }
.structure-list li svg { width: 15px; height: 15px; }
.structure-list li.present { color: #1d7845; }
.editor-panel { overflow: hidden; }
.editor-toolbar { min-height: 58px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.editor-toolbar > div { display: flex; align-items: center; gap: 9px; }
.editor-file { color: #3d5f76; font-family: "SFMono-Regular", ui-monospace, monospace; font-size: 11px; font-weight: 700; }
.saved-state { padding: 3px 7px; color: #287749; background: #e8f8ef; border-radius: 99px; font-size: 9px; }
.editor-toolbar button { width: 34px; height: 34px; display: grid; place-items: center; color: #5e7789; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 10px; }
.editor-toolbar svg { width: 16px; height: 16px; }
#draftEditor { width: 100%; min-height: 480px; padding: 30px; color: #18354b; background: #fbfdfe; border: 0; resize: vertical; font-family: "SFMono-Regular", "SF Mono", ui-monospace, monospace; font-size: 14px; line-height: 1.8; }
#draftEditor:focus { outline: none; background: #fff; }
.editor-bottom { min-height: 74px; padding: 13px 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); }
.editor-bottom > span { color: #82939f; font-family: "SFMono-Regular", ui-monospace, monospace; font-size: 10px; }
.writing-result { margin: 0 18px 18px; padding: 15px 17px; color: #246a43; background: #ebf9f1; border: 1px solid #ccebd8; border-radius: 13px; }
.writing-result.error { color: #9b3f31; background: #fff0ed; border-color: #f3d0ca; }

.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.metric-card { min-height: 150px; padding: 22px; }
.metric-card > span { color: #708492; font-size: 11px; }
.metric-card strong { display: block; margin: 12px 0 3px; font-size: 42px; line-height: 1; letter-spacing: -.05em; }
.metric-card strong small { margin-left: 4px; color: #617789; font-size: 12px; letter-spacing: 0; }
.metric-card p { margin: 12px 0 0; color: #8a9aa6; font-size: 10px; }
.metric-card.dark { color: #eaf6ff; background: linear-gradient(145deg, #0a263a, #0b3a52); border: 1px solid rgba(255, 255, 255, .08); border-radius: 22px; box-shadow: 0 18px 48px rgba(8, 40, 61, .16); }
.metric-card.dark > span, .metric-card.dark p, .metric-card.dark strong small { color: #84a4ba; }
.progress-grid { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(310px, .7fr); gap: 24px; }
.chart-panel, .skills-panel { padding: 26px; }
.chart-legend { display: flex; align-items: center; gap: 7px; color: #718695; font-size: 10px; }
.chart-legend i { width: 8px; height: 8px; background: var(--blue); border-radius: 3px; }
.chart { position: relative; height: 290px; margin-top: 26px; padding: 0 12px 32px; }
.grid-line { position: absolute; left: 12px; right: 12px; height: 1px; background: #e6edf2; }
.line-a { top: 18%; }.line-b { top: 48%; }.line-c { top: 78%; }
.chart-bars { position: absolute; inset: 0 12px 32px; display: flex; align-items: flex-end; justify-content: space-around; gap: 12px; }
.chart-bars i { position: relative; width: 8%; height: var(--value); min-height: 9px; background: linear-gradient(180deg, #61b7ff, var(--blue)); border-radius: 7px 7px 3px 3px; box-shadow: 0 7px 16px rgba(10, 132, 255, .16); }
.chart-bars i b { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); color: #4a6578; font-size: 10px; font-style: normal; }
.chart-bars i span { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); color: #7c8f9d; font-size: 10px; font-style: normal; }
.chart-bars .today-bar { background: var(--ink); box-shadow: none; }
.skills-panel > h2 { margin: 5px 0 28px; }
.skill-row { margin-top: 22px; }
.skill-row > div:first-child { display: flex; justify-content: space-between; color: #4c6779; font-size: 12px; }
.skill-track { height: 8px; margin-top: 8px; overflow: hidden; background: #e9f0f4; border-radius: 99px; }
.skill-track i { display: block; height: 100%; background: var(--blue); border-radius: inherit; }
.skill-row:nth-of-type(3) .skill-track i { background: var(--orange); }
.focus-tip { margin-top: 34px; padding: 17px; display: grid; grid-template-columns: 9px 1fr; gap: 12px; color: #5d491b; background: #fff6df; border: 1px solid #f3e0ad; border-radius: 15px; }
.focus-tip > i { width: 8px; height: 8px; margin-top: 5px; background: var(--orange); border-radius: 50%; }
.focus-tip b { font-size: 11px; }.focus-tip p { margin: 5px 0 0; color: #7f6a38; font-size: 11px; line-height: 1.55; }

dialog { width: min(calc(100% - 32px), 540px); padding: 0; overflow: hidden; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 32px 90px rgba(6, 28, 43, .28); }
dialog::backdrop { background: rgba(5, 18, 29, .48); backdrop-filter: blur(5px); }
dialog form { padding: 26px; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; }
.dialog-head h2 { margin: 5px 0 0; letter-spacing: -.03em; }
.dialog-head button { width: 36px; height: 36px; display: grid; place-items: center; color: #5c7486; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 50%; }
dialog label { display: block; margin-top: 18px; color: #3d5b70; font-size: 12px; font-weight: 650; }
dialog input, dialog textarea, dialog select { width: 100%; margin-top: 7px; padding: 12px 13px; color: var(--ink); background: #f8fbfc; border: 1px solid var(--line); border-radius: 11px; }
dialog textarea { min-height: 96px; resize: vertical; }
.dialog-actions { margin-top: 24px; display: flex; justify-content: flex-end; gap: 10px; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: 28px; padding: 11px 16px; color: #fff; background: rgba(7, 21, 33, .92); border: 1px solid rgba(255, 255, 255, .1); border-radius: 99px; box-shadow: 0 12px 34px rgba(3, 18, 29, .22); opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity 180ms ease, transform 180ms ease; backdrop-filter: blur(14px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1100px) {
  :root { --sidebar: 88px; }
  .sidebar { padding-inline: 13px; }
  .brand { justify-content: center; padding-inline: 0; }
  .brand > span:last-child, .nav-item span, .nav-item b, .sidebar-foot > div:last-child { display: none; }
  .side-nav { justify-items: center; }
  .nav-item { width: 54px; grid-template-columns: 1fr; justify-items: center; }
  .nav-item.active::before { left: -17px; }
  .sidebar-foot { justify-content: center; padding-inline: 0; }
  .focus-hero { grid-template-columns: 1fr 340px; }
  .dashboard-grid, .review-layout, .practice-layout, .progress-grid { grid-template-columns: 1fr; }
  .right-stack, .review-side { grid-template-columns: 1fr 1fr; }
  .right-stack > :last-child, .review-side > :last-child { grid-column: 1 / -1; }
  .recording-card { min-height: 430px; }
}

@media (max-width: 760px) {
  :root { --sidebar: 0px; }
  body { padding-bottom: 82px; }
  .ambient { display: none; }
  .sidebar { inset: auto 10px calc(10px + env(safe-area-inset-bottom)) 10px; width: auto; height: 64px; padding: 5px 7px; display: block; color: var(--ink); background: rgba(255, 255, 255, .84); border: 1px solid rgba(255, 255, 255, .92); border-radius: 20px; box-shadow: 0 15px 40px rgba(25, 61, 86, .18); backdrop-filter: blur(22px) saturate(160%); }
  .brand, .sidebar-foot { display: none; }
  .side-nav { height: 100%; display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
  .nav-item { width: auto; min-height: 52px; padding: 3px; display: flex; flex-direction: column; justify-content: center; gap: 2px; color: #758896; border-radius: 14px; font-size: 9px; text-align: center; }
  .nav-item span { display: block; }
  .nav-item svg { width: 19px; height: 19px; }
  .nav-item.active { color: var(--blue); background: var(--blue-soft); box-shadow: none; }
  .nav-item.active::before { display: none; }
  .workspace { margin-left: 0; padding: 10px 14px 38px; }
  .toolbar { top: 8px; min-height: 54px; margin-bottom: 24px; border-radius: 16px; }
  .toolbar-kicker, .toolbar-meta > span:first-child { display: none; }
  .toolbar-meta { gap: 0; }
  .privacy-pill { padding: 6px 8px; font-size: 10px; }
  .focus-hero { min-height: auto; padding: 30px 24px; grid-template-columns: 1fr; border-radius: 24px; }
  .focus-copy h1 { font-size: 48px; }
  .focus-copy > p { font-size: 15px; }
  .track-switcher { width: 100%; overflow-x: auto; }
  .track-switcher button { flex: 1 0 auto; }
  .focus-copy .primary-button { width: 100%; }
  .signal-orbit { width: min(82vw, 340px); }
  .dashboard-grid { margin-top: 16px; gap: 16px; }
  .mission-panel { padding: 20px 16px; }
  .mission-row { grid-template-columns: 42px 1fr 34px; gap: 9px; }
  .mission-time { display: none; }
  .mission-main small { font-size: 11px; }
  .right-stack, .review-side { grid-template-columns: 1fr; }
  .right-stack > :last-child, .review-side > :last-child { grid-column: auto; }
  .view-head { margin-bottom: 22px; display: block; }
  .view-head h1 { font-size: 40px; }
  .view-head p { font-size: 14px; }
  .view-head > .secondary-button, .view-head > .autosave { margin-top: 18px; }
  .view-head > .secondary-button { width: 100%; }
  .review-card { min-height: 570px; padding: 21px; }
  .review-front h2 { font-size: 43px; overflow-wrap: anywhere; }
  .review-back { padding-inline: 2px; }
  .rating-grid { grid-template-columns: 1fr; }
  .scenario-tabs { width: 100%; overflow-x: auto; }
  .scenario-tabs button { min-width: 66px; }
  .practice-trackbar { width: 100%; overflow-x: auto; }
  .practice-trackbar button { flex: 1 0 auto; }
  .scenario-card { padding: 21px; }
  .scenario-card > h2 { font-size: 32px; }
  .writing-layout { grid-template-columns: 1fr; }
  .template-panel { order: 2; }
  #draftEditor { min-height: 430px; padding: 20px; font-size: 13px; }
  .editor-bottom { align-items: stretch; flex-direction: column; }
  .editor-bottom .primary-button { width: 100%; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .chart-panel, .skills-panel { padding: 20px; }
  .chart { height: 230px; padding-inline: 0; }
  .chart-bars { inset-inline: 0; }
}

@media (max-width: 430px) {
  .focus-copy h1 { font-size: 42px; }
  .focus-meta { gap: 15px; }
  .focus-meta span + span::before { left: -8px; }
  .signal-orbit { width: 100%; }
  .section-heading h2 { font-size: 22px; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 128px; }
  .toolbar { padding-inline: 12px; }
  .privacy-pill svg { display: none; }
}

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

@media (prefers-reduced-transparency: reduce) {
  .toolbar, .sidebar, .toast, dialog::backdrop { backdrop-filter: none; }
  .toolbar, .sidebar { background: #fff; }
  @media (min-width: 761px) { .sidebar { background: var(--nav); } }
}

@media (prefers-contrast: more) {
  .surface, .toolbar, .sidebar { border-color: currentColor; }
  .quiet, .view-head p, .mission-main small { color: #405362; }
}
