:root {
  color-scheme: light;
  --ink: #16302d;
  --muted: #5d716e;
  --line: #d9e6e2;
  --surface: #ffffff;
  --wash: #f3f8f6;
  --teal: #0f766e;
  --teal-dark: #115e59;
  --mint: #ccfbf1;
  --amber: #a16207;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: linear-gradient(135deg, #f4faf8 0%, #edf4f0 55%, #fefcf8 100%); color: var(--ink); }
button, select { font: inherit; }
button { cursor: pointer; }
.app-shell { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 36px; }
.hero { display: flex; gap: 14px; align-items: center; position: relative; margin-bottom: 24px; }
.brand-mark { width: 52px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--teal); color: #fff; font-weight: 800; letter-spacing: -0.08em; font-size: .77rem; box-shadow: 0 9px 18px #0f766e2e; }
.eyebrow { margin: 0 0 4px; color: var(--teal); font-size: 0.72rem; font-weight: 800; letter-spacing: .15em; }
h1, h2, p { margin-top: 0; } h1 { margin-bottom: 3px; font-size: clamp(1.8rem, 7vw, 2.5rem); letter-spacing: -.04em; } h2 { margin-bottom: 8px; font-size: 1.3rem; letter-spacing: -.02em; }
.subtitle { margin-bottom: 0; color: var(--muted); font-size: .92rem; }
.ghost-button { margin-left: auto; border: 1px solid var(--line); background: #fff; color: var(--teal-dark); padding: 9px 12px; border-radius: 11px; font-size: .82rem; font-weight: 700; }
.hidden { display: none !important; }
.toolbar, .practice-card, .record-card, .tips { border: 1px solid var(--line); background: #fffffff2; border-radius: 20px; box-shadow: 0 14px 38px #17453d0b; }
.toolbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, 1fr); gap: 18px; align-items: end; padding: 16px 18px; margin-bottom: 14px; }
label { color: var(--muted); font-size: .78rem; font-weight: 700; } select { width: 100%; margin-top: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; color: var(--ink); background: #fff; }
.progress { align-self: center; font-size: .78rem; color: var(--muted); } .practice-status { float: right; margin-left: 8px; color: var(--teal); font-size: .72rem; font-weight: 750; } .progress-track { height: 7px; border-radius: 99px; margin-top: 7px; background: var(--mint); overflow: hidden; } .progress-bar { height: 100%; width: 20%; border-radius: inherit; background: var(--teal); transition: width .25s ease; }
.practice-card, .record-card { padding: 20px; margin-bottom: 14px; }
.card-topline, .record-heading, .record-controls, .pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tag, .difficulty { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 99px; font-size: .72rem; font-weight: 800; } .tag { color: var(--teal-dark); background: var(--mint); } .difficulty { color: var(--amber); background: #fef3c7; }
.context { color: var(--muted); line-height: 1.55; margin-bottom: 15px; }
.target-box { position: relative; padding: 16px; border-radius: 15px; background: var(--wash); border: 1px solid #dcebe6; } .label { margin-bottom: 6px; color: var(--muted); font-size: .76rem; font-weight: 700; } .target-sentence { margin-bottom: 14px; padding-right: 74px; font-size: clamp(1.2rem, 4.5vw, 1.55rem); line-height: 1.35; font-weight: 700; letter-spacing: -.02em; } .hint { margin: 12px 0 0; color: var(--muted); font-size: .84rem; } .practice-flow { margin: 15px 0 0; color: var(--teal); font-size: .76rem; font-weight: 800; letter-spacing: .02em; } .practice-flow span { color: #8ca7a1; padding: 0 3px; }
.secondary-button, .primary-button { border-radius: 11px; padding: 10px 14px; font-weight: 750; border: 1px solid var(--line); } .secondary-button { color: var(--teal-dark); background: #fff; } .primary-button { color: #fff; border-color: var(--teal); background: var(--teal); box-shadow: 0 8px 15px #0f766e22; } .secondary-button:hover { border-color: var(--teal); } .primary-button:hover { background: var(--teal-dark); }
.target-box > .secondary-button { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); }
.record-card { background: #113c37; color: #ecfffb; border-color: #113c37; } .record-card .eyebrow { color: #82e4d4; } .record-card h2 { margin-bottom: 0; } .support-status { color: #a9d4cd; font-size: .75rem; text-align: right; } .record-controls { justify-content: flex-start; margin: 20px 0 10px; } .record-button { display: inline-flex; align-items: center; gap: 9px; padding: 11px 16px; border: 0; border-radius: 11px; color: #113c37; background: #b8f1e4; font-weight: 800; } .record-button.is-recording { color: #fff; background: #c24153; } .record-dot { width: 11px; height: 11px; border-radius: 50%; background: currentColor; } .is-recording .record-dot { animation: pulse 1.1s infinite; } @keyframes pulse { 50% { opacity: .35; transform: scale(.75); } }
.record-card .secondary-button { color: #d8f8f1; border-color: #37645e; background: transparent; } .status { min-height: 20px; margin: 5px 0 10px; color: #add4cd; font-size: .82rem; } .transcript { min-height: 58px; padding: 13px; border: 1px solid #37645e; border-radius: 12px; color: #eafff9; background: #0c332f; line-height: 1.5; } .transcript.placeholder { color: #7ea9a2; font-style: italic; }
.score-panel { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 13px; border-radius: 12px; background: #1a5049; } .score-number { color: #a7f3d0; font-size: 1.65rem; font-weight: 800; white-space: nowrap; } .score-number small { color: #9bcac1; font-size: .75rem; } .score-panel strong { display: block; margin-bottom: 3px; } .score-panel p { margin: 0; color: #bcddd7; font-size: .79rem; }
.pager { margin-bottom: 18px; } .tips { padding: 14px 16px; color: var(--muted); } .tips summary { color: var(--ink); cursor: pointer; font-weight: 750; } .tips ul { margin: 12px 0 2px; padding-left: 19px; line-height: 1.7; font-size: .85rem; } footer { padding-top: 17px; color: #76908c; text-align: center; font-size: .72rem; }
@media (max-width: 560px) { .app-shell { width: min(100% - 22px, 760px); padding-top: 18px; } .toolbar { grid-template-columns: 1fr; gap: 12px; } .hero { align-items: flex-start; } .ghost-button { position: absolute; top: 4px; right: 0; font-size: .72rem; padding: 7px 9px; } .subtitle { max-width: 70%; } .target-sentence { padding-right: 0; margin-bottom: 56px; } .target-box > .secondary-button { top: auto; bottom: 13px; transform: none; } .record-heading { align-items: flex-start; } .support-status { max-width: 42%; } }
.scene-meta { margin: -4px 0 14px; color: var(--teal-dark); font-size: .8rem; font-weight: 700; }
.comic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 15px; }
.comic-panel { position: relative; min-height: 105px; padding: 10px 9px 8px; border: 1px solid #dcebe6; border-radius: 12px; background: linear-gradient(160deg,#fff,#edf8f4); overflow: hidden; }
.comic-panel span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; background: var(--teal); font-size: .68rem; font-weight: 800; }
.comic-panel p { margin: 8px 0 0; color: var(--ink); font-size: .72rem; line-height: 1.42; }
.comic-panel button { position: absolute; right: 6px; bottom: 5px; border: 0; background: transparent; font-size: .8rem; padding: 2px; }
.duration-label { margin: 8px 0 0; color: var(--muted); font-size: .75rem; }
@media (max-width: 560px) { .comic { grid-template-columns: repeat(2, 1fr); } .comic-panel { min-height: 92px; } }
