:root {
  --bg: #f3f5f9; --card: #ffffff; --card-2: #f7f8fb; --line: #e6e9f0;
  --ink: #13224a; --ink-2: #4a5677; --ink-3: #8a93ab;
  --navy: #0b2f73; --navy-2: #0a3b8f; --blue: #1f6fe5; --blue-soft: #e8f0fe;
  --teal: #1fc7a0; --teal-soft: #e3f8f2; --orange: #f39324; --orange-soft: #fdf1e2;
  --green: #22a85a; --green-soft: #e3f6ea; --red: #ef3d3d; --red-soft: #fde8e8;
  --ring-track: #e3e8f1; --shadow: 0 6px 24px rgba(19, 34, 74, .07);
  --radius: 20px; --tab-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1424; --card: #161f33; --card-2: #1b263d; --line: #263350;
    --ink: #e8edf8; --ink-2: #aab4cc; --ink-3: #7380a0;
    --navy: #2d6be0; --navy-2: #3a7bf0; --blue-soft: #1c2d52;
    --teal-soft: #123a35; --orange-soft: #3a2a14; --green-soft: #143524; --red-soft: #3b1a1d;
    --ring-track: #26324d; --shadow: 0 6px 24px rgba(0, 0, 0, .35);
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); overscroll-behavior: none; }
body { font: 16px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", "Noto Sans CJK SC", sans-serif; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input, textarea, select { font: inherit; color: var(--ink); }
#app { max-width: 520px; margin: 0 auto; min-height: 100%; position: relative; }
#view { padding: calc(var(--safe-t) + 8px) 18px calc(var(--tab-h) + var(--safe-b) + 24px); min-height: 100vh; }
body.no-tabs #view { padding-bottom: calc(var(--safe-b) + 24px); }
.ic { display: block; flex: none; }

/* ---------- tab bar ---------- */
#tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: space-around; align-items: flex-start;
  height: calc(var(--tab-h) + var(--safe-b)); padding: 8px 6px var(--safe-b); background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-top: 1px solid var(--line); max-width: 520px; margin: 0 auto; }
body.no-tabs #tabbar { display: none; }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; color: var(--ink-3); text-decoration: none; }
.tab.active { color: var(--navy); font-weight: 600; }
.tab.active .ic { fill: var(--navy); stroke: var(--navy); }
.tab.active .ic path[d^="m9"] { stroke: #fff; }

/* ---------- top bar ---------- */
.topbar { display: flex; align-items: center; gap: 8px; min-height: 52px; margin: 0 -6px 10px; position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.topbar h1 { flex: 1; margin: 0; font-size: 21px; font-weight: 700; color: var(--navy); text-align: center; letter-spacing: .5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-color-scheme: dark) { .topbar h1 { color: var(--ink); } }
.topbar-right { min-width: 44px; text-align: right; color: var(--ink-3); font-size: 15px; white-space: nowrap; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--navy); }
@media (prefers-color-scheme: dark) { .icon-btn { color: var(--ink); } }
.page-title { font-size: 22px; font-weight: 700; color: var(--navy); text-align: center; margin: 14px 0 18px; }
@media (prefers-color-scheme: dark) { .page-title { color: var(--ink); } }

/* ---------- cards ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 14px; }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.center { text-align: center; }
.section-title { font-size: 14px; color: var(--ink-3); margin: 22px 4px 10px; font-weight: 600; letter-spacing: .5px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.chip.orange { background: var(--orange); color: #fff; }
.chip.green { background: var(--green); color: #fff; }
.chip.gray { background: var(--card-2); color: var(--ink-3); border: 1px solid var(--line); }
.chip.soft { background: var(--card-2); color: var(--ink-2); }
.chip.draft { background: var(--orange-soft); color: var(--orange); }
.tag-ok { color: var(--green); font-size: 14px; }
.tag-warn { color: var(--orange); font-size: 14px; }
.tag-bad { color: var(--red); font-size: 14px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 14px; font-weight: 600; }
.btn-primary { background: var(--navy-2); color: #fff; }
.btn-ghost { background: var(--card-2); color: var(--ink-2); border: 1px solid var(--line); }
.btn-danger { background: var(--red-soft); color: var(--red); }
.btn-block { display: flex; width: 100%; height: 58px; border-radius: 999px; font-size: 19px; letter-spacing: 1px; }
.btn-blue { background: var(--blue); color: #fff; }
.btn:disabled { opacity: .45; }
.seg { display: flex; background: var(--card); border-radius: 999px; padding: 6px; box-shadow: var(--shadow); gap: 4px; }
.seg button { flex: 1; height: 44px; border-radius: 999px; color: var(--ink-2); font-size: 17px; }
.seg button.on { background: var(--navy-2); color: #fff; font-weight: 600; }
.pills { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -18px 14px; padding-left: 18px; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pill { flex: none; height: 40px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font-size: 16px; }
.pill.on { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- ring ---------- */
.ring { position: relative; margin: 0 auto; }
.ring svg { display: block; }
.ring-val { transition: stroke-dashoffset .35s ease; }
.ring-inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }

/* ---------- today ---------- */
.hero { background: linear-gradient(135deg, #0b2f73 0%, #0f4fb0 100%); color: #fff; border-radius: 24px; padding: 22px 22px 120px; margin-bottom: -96px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -60px; top: -40px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.12), transparent); }
.hero h2 { margin: 0; font-size: 40px; font-weight: 800; letter-spacing: .5px; }
.hero p { margin: 4px 0 0; opacity: .85; font-size: 14px; }
.hero .streak { position: absolute; right: 18px; top: 22px; font-size: 13px; background: rgba(255,255,255,.14); padding: 4px 10px; border-radius: 999px; }
.today-ring { position: relative; z-index: 1; margin-bottom: 18px; }
.today-ring .ring { background: radial-gradient(circle, #0b2f73 0 57%, transparent 58%); border-radius: 50%; box-shadow: 0 0 0 10px var(--bg); }
.today-ring .num { font-size: 44px; font-weight: 800; color: #fff; line-height: 1; }
.today-ring .unit { color: #fff; opacity: .85; font-size: 17px; margin-top: 6px; }
.task { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; position: relative; padding: 18px 16px; }
.task .ti { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.task .ti.teal { background: linear-gradient(135deg, #22c6a6, #138e83); color: #fff; }
.task .ti.mint { background: var(--teal-soft); color: var(--teal); }
.task .ti.blue { background: var(--blue-soft); color: var(--navy-2); }
.task h3 { margin: 0; font-size: 18px; font-weight: 700; color: var(--navy); }
@media (prefers-color-scheme: dark) { .task h3 { color: var(--ink); } }
.task h3 small { font-weight: 400; color: var(--ink-3); font-size: 14px; margin-left: 6px; }
.task p { margin: 4px 0 0; color: var(--ink-3); font-size: 14px; }
.task .chip { position: absolute; right: 12px; top: 12px; }
.task .bar { height: 4px; border-radius: 4px; background: var(--ring-track); margin-top: 8px; overflow: hidden; }
.task .bar i { display: block; height: 100%; background: var(--teal); border-radius: 4px; }
.tools-row { display: flex; gap: 10px; margin-top: 4px; }
.tools-row .btn { flex: 1; height: 42px; font-size: 14px; }

/* ---------- drill ---------- */
.cue-card { text-align: center; font-size: 22px; font-weight: 700; padding: 22px 18px; line-height: 1.45; }
.cue-card .meta { font-size: 13px; font-weight: 500; color: var(--ink-3); margin-bottom: 6px; }
.drill-stage { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 18px 0; position: relative; }
.drill-stage .count { font-size: 76px; font-weight: 800; color: var(--navy); line-height: 1; }
@media (prefers-color-scheme: dark) { .drill-stage .count { color: var(--ink); } }
.drill-stage .count-label { color: var(--navy-2); font-size: 17px; margin-top: 6px; font-weight: 600; }
.mic-btn { width: 96px; height: 96px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff6b6b, #e5262a); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 28px rgba(229, 38, 42, .38), 0 0 0 10px rgba(239, 61, 61, .08); transition: transform .12s; touch-action: none; user-select: none; -webkit-user-select: none; }
.mic-btn.big { width: 120px; height: 120px; }
.mic-btn.rec { transform: scale(1.08); box-shadow: 0 10px 28px rgba(229, 38, 42, .5), 0 0 0 calc(10px + var(--lv, 0) * 26px) rgba(239, 61, 61, .16); }
.mic-btn:disabled { filter: grayscale(.8); opacity: .5; }
.steps .step { display: flex; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.steps .step:last-child { border-bottom: 0; }
.steps .no { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--blue); color: var(--navy-2); display: grid; place-items: center; font-weight: 700; flex: none; font-size: 18px; background: var(--blue-soft); }
.steps .lb { font-weight: 700; margin-right: 8px; white-space: nowrap; }
.steps .tx { color: var(--ink-2); }
.steps .anchor-hint { display: block; font-size: 12px; color: var(--orange); font-weight: 600; margin-bottom: 2px; }
.steps.hidden-text .tx { filter: blur(6px); user-select: none; }
.wrong-box { background: var(--red-soft); border-radius: 14px; padding: 12px 14px; font-size: 14px; color: var(--ink-2); margin-top: 10px; }
.wrong-box b { color: var(--red); }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0; }
.metric { background: var(--card-2); border-radius: 14px; padding: 10px 6px; text-align: center; }
.metric b { display: block; font-size: 20px; color: var(--navy); }
@media (prefers-color-scheme: dark) { .metric b { color: var(--ink); } }
.metric span { font-size: 12px; color: var(--ink-3); }
.metric.good b { color: var(--green); } .metric.bad b { color: var(--red); }
.grade-row { display: flex; gap: 10px; margin-top: 12px; }
.grade-row .btn { flex: 1; height: 54px; font-size: 17px; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.list-item:last-child { border-bottom: 0; }
.list-item .id { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft); color: var(--navy-2); display: grid; place-items: center; font-weight: 700; flex: none; }
.list-item .t { font-weight: 600; }
.list-item .s { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.green { background: var(--green); } .dot.orange { background: var(--orange); } .dot.red { background: var(--red); } .dot.gray { background: var(--line); }
.sticky-bottom { position: sticky; bottom: calc(var(--safe-b) + 12px); margin-top: 18px; }

/* ---------- ear ---------- */
.wave-card { padding: 28px 18px 20px; text-align: center; }
.wave { display: flex; align-items: center; justify-content: center; gap: 5px; height: 180px; }
.wave i { width: 6px; border-radius: 4px; background: #c7d3ea; transition: background .1s; }
.wave i.on { background: var(--navy-2); }
.wave i.mid { background: #5d83c4; }
.play-btn { width: 84px; height: 84px; border-radius: 50%; background: var(--navy-2); color: #fff; display: grid; place-items: center; margin: 4px auto 6px; box-shadow: 0 8px 20px rgba(10, 59, 143, .3); }
.time { color: var(--ink-3); font-size: 17px; }
.dict { display: flex; align-items: center; gap: 8px; background: var(--card-2); border: 1px solid var(--line); border-radius: 18px; padding: 6px 8px 6px 16px; margin: 18px 0 14px; }
.dict textarea { flex: 1; border: 0; background: none; resize: none; outline: none; font-size: 17px; min-height: 52px; padding: 12px 0; }
.reveal { background: var(--orange-soft); border: 1px solid #f7dfbd; border-radius: 18px; padding: 18px; font-size: 20px; line-height: 1.75; }
@media (prefers-color-scheme: dark) { .reveal { border-color: #5a4220; } }
.reveal .pt { background: var(--orange); color: #fff; border-radius: 8px; padding: 1px 6px; }
.reveal .w { border-radius: 6px; cursor: pointer; }
.reveal .w.miss { text-decoration: underline wavy var(--red); text-underline-offset: 5px; }
.reveal .w.marked { background: var(--red-soft); color: var(--red); }
.reveal .blur { display: block; margin-top: 10px; font-size: 15px; color: var(--ink-3); font-style: italic; line-height: 1.5; }
.diff { font-size: 15px; margin-top: 10px; color: var(--ink-2); }
.diff .ok { color: var(--green); } .diff .bad { color: var(--red); text-decoration: line-through; } .diff .add { color: var(--orange); }

/* ---------- sim ---------- */
.chat { display: flex; flex-direction: column; gap: 14px; margin: 8px 0 18px; }
.bubble { max-width: 86%; padding: 14px 18px; border-radius: 22px; font-size: 18px; line-height: 1.5; position: relative; }
.bubble.them { background: var(--card); align-self: flex-start; border-top-left-radius: 6px; box-shadow: var(--shadow); }
.bubble.me { background: #0b2f73; color: #fff; align-self: flex-end; border-top-right-radius: 6px; }
.who { display: inline-flex; align-self: flex-start; font-size: 13px; color: var(--ink-3); background: var(--card-2); border: 1px solid var(--line); padding: 2px 12px; border-radius: 999px; margin-bottom: 8px; }
.bubble-tags { align-self: flex-end; font-size: 14px; display: flex; gap: 12px; margin-top: -6px; }
.typing::after { content: "▍"; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0; } }
.sim-timer { margin: 10px auto 6px; }
.sim-timer .num { font-size: 54px; font-weight: 800; color: var(--navy); line-height: 1; }
@media (prefers-color-scheme: dark) { .sim-timer .num { color: var(--ink); } }
.sim-dock { position: sticky; bottom: 0; margin: 18px -18px 0; background: var(--card); border-radius: 26px 26px 0 0; padding: 18px 26px calc(var(--safe-b) + 18px); display: flex; align-items: center; justify-content: space-between; box-shadow: 0 -6px 24px rgba(19, 34, 74, .06); }
.dock-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink-2); font-size: 15px; width: 64px; }
.transcript { width: 100%; border: 1px solid var(--line); background: var(--card-2); border-radius: 14px; padding: 12px; min-height: 64px; font-size: 16px; outline: none; resize: vertical; }

/* ---------- terms ---------- */
.term { display: flex; align-items: center; gap: 14px; position: relative; padding: 20px 16px; }
.term .badge { width: 66px; height: 66px; border-radius: 50%; background: #13306b; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none; letter-spacing: .3px; }
.term h3 { margin: 0; font-size: 22px; font-weight: 700; } .term h3 small { font-size: 16px; color: var(--ink-3); font-weight: 400; margin-left: 6px; }
.term p { margin: 4px 0 0; color: var(--ink-3); font-size: 15px; }
.term .chip { position: absolute; right: 12px; top: 10px; cursor: pointer; }
.term .say { color: var(--ink-3); }

/* ---------- me / progress ---------- */
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kpi { background: var(--card); border-radius: 18px; padding: 14px; box-shadow: var(--shadow); position: relative; }
.kpi .v { font-size: 26px; font-weight: 800; color: var(--navy); } @media (prefers-color-scheme: dark) { .kpi .v { color: var(--ink); } }
.kpi .l { font-size: 13px; color: var(--ink-3); }
.kpi .d { font-size: 12px; margin-top: 2px; }
.kpi .red-dot { position: absolute; right: 12px; top: 12px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.spark { width: 100%; height: 42px; margin-top: 6px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; color: var(--ink-3); margin-bottom: 6px; }
.field input, .field select { width: 100%; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--card-2); padding: 0 12px; outline: none; }
.switch { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; }
.switch input { width: 46px; height: 28px; accent-color: var(--navy-2); }

/* ---------- misc ---------- */
#toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 24px); transform: translate(-50%, 20px); background: rgba(19, 34, 74, .92); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 50; max-width: 86vw; text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.modal-mask { position: fixed; inset: 0; background: rgba(8, 15, 35, .45); z-index: 60; display: grid; place-items: center; padding: 24px; animation: fade .15s; }
.modal { background: var(--card); border-radius: 22px; padding: 22px; width: 100%; max-width: 420px; }
.modal h3 { margin: 0 0 10px; font-size: 19px; }
.modal-body { color: var(--ink-2); font-size: 15px; }
.modal-actions { display: flex; gap: 10px; margin-top: 18px; }
.modal-actions .btn { flex: 1; }
@keyframes fade { from { opacity: 0; } }
#install-hint { position: fixed; left: 12px; right: 12px; top: calc(var(--safe-t) + 8px); z-index: 40; background: var(--navy); color: #fff; border-radius: 16px; padding: 12px 14px; font-size: 14px; display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow); max-width: 496px; margin: 0 auto; }
#install-hint[hidden] { display: none; }
#install-hint button { color: #fff; opacity: .8; }
#install-hint .hint-install { flex: none; background: #fff; color: var(--navy); opacity: 1; font-weight: 700; border-radius: 999px; padding: 8px 14px; line-height: 1.2; }
#install-hint .hint-x { flex: none; font-size: 22px; line-height: 1; padding: 4px 2px; }
.empty { text-align: center; color: var(--ink-3); padding: 40px 10px; }
audio { width: 100%; height: 40px; }

/* ---------- theme force ---------- */
:root.force-light {
  --bg: #f3f5f9; --card: #ffffff; --card-2: #f7f8fb; --line: #e6e9f0;
  --ink: #13224a; --ink-2: #4a5677; --ink-3: #8a93ab;
  --navy: #0b2f73; --navy-2: #0a3b8f; --blue: #1f6fe5; --blue-soft: #e8f0fe;
  --teal: #1fc7a0; --teal-soft: #e3f8f2; --orange: #f39324; --orange-soft: #fdf1e2;
  --green: #22a85a; --green-soft: #e3f6ea; --red: #ef3d3d; --red-soft: #fde8e8;
  --ring-track: #e3e8f1; --shadow: 0 6px 24px rgba(19, 34, 74, .07);
  color-scheme: light;
}
:root.force-dark {
  --bg: #0d1424; --card: #161f33; --card-2: #1b263d; --line: #263350;
  --ink: #e8edf8; --ink-2: #aab4cc; --ink-3: #7380a0;
  --navy: #2d6be0; --navy-2: #3a7bf0; --blue-soft: #1c2d52;
  --teal-soft: #123a35; --orange-soft: #3a2a14; --green-soft: #143524; --red-soft: #3b1a1d;
  --ring-track: #26324d; --shadow: 0 6px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
:root.force-dark .topbar h1, :root.force-dark .page-title, :root.force-dark .task h3,
:root.force-dark .drill-stage .count, :root.force-dark .sim-timer .num, :root.force-dark .metric b,
:root.force-dark .kpi .v, :root.force-dark .icon-btn { color: var(--ink); }
:root.force-light .topbar h1, :root.force-light .page-title { color: var(--navy); }
:root.force-light .icon-btn { color: var(--navy); }

body { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 2px;
}
input, textarea, .reveal, .bubble, .tx { -webkit-user-select: text; user-select: text; }
.text-btn { color: var(--navy-2); font-size: 14px; font-weight: 600; padding: 8px 4px; }
.uh-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.uh-row b { min-width: 24px; text-align: center; font-size: 20px; }
.stepper { width: 36px; height: 36px; border-radius: 50%; background: var(--card-2); border: 1px solid var(--line); font-size: 20px; }
.checkline { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 15px; }
.menu-link { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.menu-link h3 { margin: 0; font-size: 17px; color: var(--navy); }
@media (prefers-color-scheme: dark) { .menu-link h3 { color: var(--ink); } }
:root.force-dark .menu-link h3 { color: var(--ink); }
.quiz-zh { font-size: 28px; font-weight: 800; text-align: center; margin: 8px 0; }
.quiz-en { text-align: center; color: var(--ink-2); font-size: 18px; }
.form-actions { display: flex; gap: 10px; }
.rec-item { display: flex; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rec-item:last-child { border-bottom: 0; }
.hint-x { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.16); font-size: 18px; }
@media (prefers-reduced-motion: reduce) {
  .ring-val, .mic-btn { transition: none; }
}
#view { min-height: 100dvh; }
.role-card { display: block; width: 100%; text-align: left; border: 2px solid transparent; }
.role-card.on { border-color: var(--navy-2); }
.role-card h3 { margin: 0 0 4px; font-size: 17px; }
body.sim-live #view { padding-bottom: calc(128px + var(--safe-b)); }
body.sim-live .sim-dock { position: fixed; left: 50%; transform: translateX(-50%); width: min(520px, 100%); bottom: 0; margin: 0; z-index: 25; }
.level-note { font-size: 13px; color: var(--ink-3); margin: -6px 4px 12px; }
.wave i { height: 20px; transform-origin: center; }
.wave.play i { animation: bar 0.9s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes bar { 50% { transform: scaleY(.55); } }
.hbar { display: flex; align-items: center; gap: 10px; margin: 12px 0; }
.hbar .name { width: 72px; font-size: 15px; flex: none; }
.hbar .track { flex: 1; height: 12px; background: var(--ring-track); border-radius: 99px; overflow: hidden; }
.hbar .track i { display: block; height: 100%; background: linear-gradient(90deg, #5aa2ff, #1f6fe5); border-radius: 99px; }
.hbar b { width: 48px; text-align: right; color: var(--navy); font-size: 16px; }
:root.force-dark .hbar b, :root.force-dark .kpi .v { color: var(--ink); }
.chart { display: block; }
.task h3 { padding-right: 64px; }
