:root { --bg:#f5f6f8; --card:#fff; --text:#1f2430; --muted:#6b7280; --primary:#2563eb; --danger:#dc2626; --line:#e5e7eb; }
* { box-sizing:border-box; }
body { margin:0; font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif; background:var(--bg); color:var(--text); }
.wrap { max-width:900px; margin:0 auto; padding:20px 16px 60px; }
h1 { font-size:22px; margin:0 0 4px; }
.sub { color:var(--muted); font-size:14px; margin-bottom:16px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:16px; margin-bottom:14px; }
.row { display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
label { font-size:14px; }
select, input[type=text] { padding:8px 10px; border:1px solid var(--line); border-radius:8px; font-size:14px; }
button { padding:10px 16px; border:0; border-radius:8px; font-size:14px; font-weight:600; cursor:pointer; background:var(--primary); color:#fff; }
button.danger { background:var(--danger); }
button.ghost { background:#eef2ff; color:var(--primary); }
button:disabled { opacity:.5; cursor:not-allowed; }
#status { font-size:14px; color:var(--muted); margin-top:10px; }
#bar { height:6px; background:var(--line); border-radius:6px; overflow:hidden; margin-top:8px; display:none; }
#bar > div { height:100%; width:0; background:var(--primary); transition:width .2s; }
#transcript { height:280px; overflow:auto; white-space:pre-wrap; font-size:14px; line-height:1.6; }
#transcript .t { color:var(--muted); font-variant-numeric:tabular-nums; }
textarea { width:100%; min-height:320px; padding:12px; border:1px solid var(--line); border-radius:8px; font-family:Consolas,monospace; font-size:13px; line-height:1.5; }
.dot { display:inline-block; width:10px; height:10px; border-radius:50%; background:#9ca3af; margin-right:6px; }
.dot.rec { background:var(--danger); animation:blink 1s infinite; }
@keyframes blink { 50% { opacity:.3; } }
.hint { font-size:13px; color:var(--muted); line-height:1.5; }

#transcript .seg { margin-bottom:8px; }
#transcript .id { color:#1d4ed8; margin-top:2px; }
#resultCard textarea + .row, #resultCard .row b { font-size:14px; }