/* Ashton Sales Training. Navy and teal, calm and professional. */
:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --teal: #0e9f8e;
  --teal-2: #0b8577;
  --teal-soft: #dff5f1;
  --ink: #0f1b2d;
  --muted: #5b6b80;
  --line: #e3e8ef;
  --bg: #f4f7fb;
  --card: #ffffff;
  --green: #1f9a59;
  --amber: #d98c0d;
  --red: #cc3333;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 37, 69, .05), 0 8px 24px rgba(11, 37, 69, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--teal-2); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 6px; letter-spacing: -0.01em; }
h1 { font-size: clamp(28px, 3.4vw, 40px); }
h2 { font-size: 20px; }
h3 { font-size: 17px; }
p { margin: 0 0 10px; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(14, 159, 142, .45); outline-offset: 2px; border-radius: 8px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.fine { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.fine.light { color: rgba(255, 255, 255, .65); }
.center { text-align: center; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 700; color: var(--teal-2); margin: 0 0 6px; }
.lede { font-size: 18px; color: #34465d; max-width: 640px; }
.plain { padding-left: 18px; margin: 0 0 10px; }
.plain li { margin: 4px 0; }

/* ---------------------------------------------------------------- top bar */
.topbar { position: sticky; top: 0; z-index: 40; background: var(--navy); color: #fff; }
.topbar-inner { max-width: 1280px; margin: 0 auto; padding: 0 20px; height: 58px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 17px; white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { color: rgba(255, 255, 255, .78); text-decoration: none; font-size: 15px; padding: 7px 12px; border-radius: 8px; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav a.on { color: #fff; background: rgba(255, 255, 255, .14); }
.engine-chip { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.engine-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #8aa0b8; }
.engine-chip[data-state="loading"] .dot { background: #f5b942; animation: pulse 1.2s infinite; }
.engine-chip[data-state="ready"] .dot { background: #3ddc97; }
.engine-chip[data-state="error"] .dot { background: #ff6b6b; }
@keyframes pulse { 50% { opacity: .35; } }

main { max-width: 1280px; margin: 0 auto; padding: 24px 20px 64px; }

/* ---------------------------------------------------------------- cards, buttons, fields */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 10px; padding: 10px 16px; cursor: pointer; font-weight: 600; font-size: 15px; transition: background .15s, border-color .15s, transform .1s; }
.btn:hover { border-color: #c8d2de; background: #f8fafc; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn.primary:hover { background: var(--teal-2); }
.btn.navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.danger { color: var(--red); border-color: #f0c7c7; }
.btn.ghost { background: transparent; }
.btn.small { padding: 6px 12px; font-size: 14px; }
.btn.big { padding: 14px 22px; font-size: 17px; width: 100%; }
.btn.full { width: 100%; margin-top: 10px; }
.btn.ghost-light { background: transparent; color: rgba(255, 255, 255, .85); border-color: rgba(255, 255, 255, .25); }
.btn.ghost-light:hover { background: rgba(255, 255, 255, .08); }
.row-inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.field { margin: 0 0 14px; }
.label { display: block; font-size: 13px; font-weight: 700; color: #34465d; margin: 0 0 6px; }
.hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
input[type="text"], select { width: 100%; padding: 10px 12px; border: 1px solid #cfd8e3; border-radius: 10px; background: #fff; }
.row-inline select { width: auto; flex: 1; min-width: 160px; }
input[type="range"] { width: 100%; accent-color: var(--teal); }
.switch { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.switch input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--teal); flex: none; }
.switch small { color: var(--muted); }
.seg { display: inline-flex; background: #eef2f7; border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg.wide { display: flex; }
.seg.wide button { flex: 1; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 14px; color: #34465d; }
.seg button.on { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(11, 37, 69, .15); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid #cfd8e3; background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 14px; cursor: pointer; }
.chip:hover { border-color: var(--teal); }
.chip.on { background: var(--teal-soft); border-color: var(--teal); color: var(--teal-2); font-weight: 600; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 14px; }
.tab { border: 1px solid var(--line); background: #f8fafc; border-radius: 10px; padding: 8px 14px; cursor: pointer; font-weight: 600; font-size: 14px; }
.tab.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.grid { display: grid; gap: 10px; }
.cards-products { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.cards-situations { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.pick { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 12px 14px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.pick:hover { border-color: #9fd9cf; }
.pick.on { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14, 159, 142, .15); background: #fbfffe; }
.pick b { display: block; font-size: 15px; margin-bottom: 2px; }
.pick span { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; }
.pick .tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 6px; padding: 2px 7px; border-radius: 6px; background: #eef2f7; color: #4a5c73; }
.pick .tag.nosell { background: #fff4e0; color: #9a6200; }
.pick .tag.in { background: #e6f0ff; color: #2456a8; }
.filter-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin: 4px 0 14px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- practice page */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; margin: 8px 0 24px; }
.hero-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.hero-card h3 { margin-bottom: 4px; }
.progress { height: 10px; background: #e9eef5; border-radius: 999px; overflow: hidden; margin: 12px 0 8px; }
.progress > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), #25c2ad); transition: width .3s; }
.load-steps { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; font-size: 14px; }
.load-steps li { display: flex; gap: 8px; align-items: center; color: var(--muted); }
.load-steps li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #c8d2de; flex: none; }
.load-steps li.active { color: var(--ink); }
.load-steps li.active::before { border-color: var(--amber); border-top-color: transparent; animation: spin 1s linear infinite; }
.load-steps li.done { color: var(--ink); }
.load-steps li.done::before { background: var(--green); border-color: var(--green); }
.consent { padding-left: 18px; color: #34465d; font-size: 14px; margin: 8px 0 12px; }
.note { background: #fff8e8; border: 1px solid #f3dfb0; color: #6b4e0b; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 10px 0 0; }
.ready-line { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--green); }
.ready-line::before { content: "✓"; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #e3f6ec; }
.setup { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.setup-main { display: grid; gap: 16px; }
.step-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.step-head p { margin: 0; }
.step-n { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.span2 { grid-column: span 2; }
.mode-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 14px; cursor: pointer; }
.mode b { display: block; font-size: 16px; }
.mode span { font-size: 13px; color: var(--muted); }
.mode.on { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14, 159, 142, .15); }
.sticky { position: sticky; top: 76px; }
.brief h3 { font-size: 18px; }
.brief-body { font-size: 14px; color: #34465d; margin: 8px 0 16px; }
.brief-body dl { display: grid; grid-template-columns: 92px 1fr; gap: 6px 10px; margin: 0; }
.brief-body dt { color: var(--muted); font-weight: 600; }
.brief-body dd { margin: 0; }
.goal-box { background: var(--teal-soft); border-radius: 10px; padding: 10px 12px; margin: 10px 0; color: #0a5a50; font-weight: 600; font-size: 14px; }

/* ---------------------------------------------------------------- call screen */
.call-view main, .call-view { }
.call-wrap { display: grid; grid-template-columns: 320px 1fr 320px; gap: 18px; align-items: start; }
.call-wrap.no-coach { grid-template-columns: 320px 1fr; }
.phone { background: linear-gradient(180deg, var(--navy) 0%, #071a33 100%); color: #fff; border-radius: 26px; padding: 18px 20px 22px; box-shadow: 0 20px 50px rgba(11, 37, 69, .3); position: sticky; top: 76px; }
.phone-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.call-badge { background: rgba(255, 255, 255, .12); padding: 3px 10px; border-radius: 999px; }
.call-timer { font-variant-numeric: tabular-nums; font-size: 15px; opacity: .9; }
.call-timer.warn { color: #ffcf6b; }
.caller { text-align: center; margin: 22px 0 12px; }
.avatar { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; font-size: 30px; font-weight: 700; background: linear-gradient(135deg, #1b4f8a, var(--teal)); }
.caller-name { font-size: 22px; font-weight: 700; }
.caller-sub { font-size: 14px; opacity: .7; }
.call-state { margin-top: 8px; font-size: 14px; color: #9ee7da; min-height: 21px; }
.orb-wrap { display: grid; place-items: center; margin: 14px 0 10px; }
.orb { --lvl: 0; position: relative; width: 120px; height: 120px; border-radius: 50%; border: 0; background: transparent; color: #fff; cursor: default; display: grid; place-items: center; }
.orb svg { width: 34px; height: 34px; position: relative; z-index: 2; }
.orb-core { position: absolute; inset: 18px; border-radius: 50%; background: rgba(255, 255, 255, .1); transition: background .2s; }
.orb-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .15); transform: scale(calc(1 + var(--lvl) * .35)); transition: transform .08s linear, border-color .2s; }
.orb[data-state="listening"] .orb-core { background: rgba(14, 159, 142, .55); }
.orb[data-state="listening"] .orb-ring { border-color: rgba(61, 220, 151, .6); }
.orb.hearing .orb-core { background: rgba(61, 220, 151, .8); }
.orb[data-state="thinking"] .orb-core { background: rgba(245, 185, 66, .45); animation: pulse 1s infinite; }
.orb[data-state="speaking"] .orb-core { background: rgba(120, 160, 255, .55); }
.orb[data-state="speaking"] .orb-ring { border-color: rgba(160, 190, 255, .7); }
.orb[data-state="muted"] .orb-core, .orb[data-state="hold"] .orb-core { background: rgba(255, 107, 107, .35); }
.orb-label { margin: 8px 0 0; font-size: 14px; opacity: .85; min-height: 21px; }
.call-actions { display: grid; gap: 10px; margin-top: 10px; }
.btn.call-go { background: #22b573; border-color: #22b573; color: #fff; border-radius: 999px; }
.btn.call-go:hover { background: #1c9e64; }
.call-controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.call-controls:has(#pttBtn:not([hidden])) { grid-template-columns: repeat(4, 1fr); }
.ctl { display: grid; justify-items: center; gap: 4px; background: rgba(255, 255, 255, .1); border: 0; color: #fff; border-radius: 14px; padding: 10px 4px; cursor: pointer; font-size: 12px; }
.ctl .ic { font-size: 20px; }
.ctl:hover { background: rgba(255, 255, 255, .16); }
.ctl[aria-pressed="true"] { background: #fff; color: var(--navy); }
.ctl.end { background: #e5484d; }
.ctl.end:hover { background: #c93a3f; }
.ctl.ptt-on { background: #22b573; }
.call-main { min-width: 0; }
.captions { display: flex; flex-direction: column; height: calc(100vh - 130px); min-height: 460px; padding: 0; overflow: hidden; }
.cap-head { padding: 16px 18px 10px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.cap-head h3 { margin: 0; }
.transcript { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.line { max-width: 82%; padding: 10px 14px; border-radius: 14px; font-size: 15px; line-height: 1.45; }
.line .who { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .7; margin-bottom: 2px; }
.line.customer { background: #eef2f7; align-self: flex-start; border-bottom-left-radius: 4px; }
.line.agent { background: var(--navy); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.line.partial { opacity: .6; font-style: italic; }
.line .cut { opacity: .6; }
.sysline { align-self: center; font-size: 12px; color: var(--muted); background: #f4f7fb; padding: 4px 10px; border-radius: 999px; }
.sysline.warn { color: #8a5a00; background: #fff4e0; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; background: #8aa0b8; border-radius: 50%; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .2; } }
.type-row { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); background: #fbfcfe; }
.type-row input { flex: 1; }
.coach { position: sticky; top: 76px; max-height: calc(100vh - 100px); overflow-y: auto; padding: 18px; }
.coach-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.coach-head h3 { margin: 0; }
.coach h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 16px 0 6px; }
.coach ul { padding-left: 18px; margin: 0; font-size: 14px; }
.coach li { margin: 4px 0; }
.checklist { list-style: none; padding: 0 !important; }
.checklist li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.checklist li::before { content: ""; width: 16px; height: 16px; border-radius: 5px; border: 2px solid #c8d2de; flex: none; margin-top: 2px; }
.checklist li.ok::before { background: var(--green); border-color: var(--green); box-shadow: inset 0 0 0 2px #fff; }
.checklist li.ok { color: var(--muted); }
details.more summary { cursor: pointer; font-weight: 600; font-size: 14px; margin: 12px 0 4px; color: var(--navy); }

/* ---------------------------------------------------------------- grading */
.grading { max-width: 560px; margin: 40px auto; text-align: center; padding: 36px; }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 4px solid #dfe7ef; border-top-color: var(--teal); margin: 0 auto 16px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.grade-steps { text-align: left; margin: 18px auto; max-width: 400px; padding-left: 20px; color: var(--muted); }
.grade-steps li { margin: 6px 0; }
.grade-steps li.active { color: var(--ink); font-weight: 600; }
.grade-steps li.done { color: var(--green); }

/* ---------------------------------------------------------------- report */
.report-head { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 24px 28px; margin-bottom: 18px; }
.report-head h1 { font-size: 26px; margin: 0 0 4px; }
.report-head p { margin: 0; opacity: .8; font-size: 14px; }
.ring { --v: 0; --c: var(--teal); width: 116px; height: 116px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--v) * 1%), rgba(255, 255, 255, .14) 0); display: grid; place-items: center; }
.ring > div { width: 92px; height: 92px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; text-align: center; }
.ring b { font-size: 32px; line-height: 1; display: block; }
.ring small { font-size: 11px; opacity: .7; }
.report-actions { display: flex; flex-direction: column; gap: 8px; }
.report-actions .btn { white-space: nowrap; }
.outcome { display: inline-block; margin-top: 10px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.outcome.achieved { background: #e3f6ec; color: var(--green); }
.outcome.partially_achieved { background: #fff4e0; color: #9a6200; }
.outcome.not_achieved { background: #fde8e8; color: var(--red); }
.critical-box { background: #fdeeee; border: 1px solid #f0b4b4; color: #8f1d1d; border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; font-weight: 600; }
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.report-grid .span2 { grid-column: span 2; }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 200px 1fr 40px; gap: 12px; align-items: center; font-size: 14px; }
.bar { height: 10px; border-radius: 999px; background: #eef2f7; overflow: hidden; }
.bar > div { height: 100%; border-radius: 999px; }
.bar-row b { text-align: right; }
.good { color: var(--green); } .ok { color: var(--amber); } .bad { color: var(--red); }
.bg-good { background: var(--green); } .bg-ok { background: var(--amber); } .bg-bad { background: var(--red); } .bg-na { background: #b8c3cf; }
.items { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.item { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.verdict { font-size: 12px; font-weight: 700; text-align: center; padding: 3px 8px; border-radius: 6px; }
.v-yes { background: #e3f6ec; color: var(--green); }
.v-partial { background: #fff4e0; color: #9a6200; }
.v-no { background: #fde8e8; color: var(--red); }
.v-na, .v-unknown { background: #eef2f7; color: #6a7a8e; }
.item p { margin: 0; font-size: 14px; }
.item .ev { color: var(--muted); font-size: 13px; margin-top: 2px; }
.item .crit { font-size: 11px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .04em; margin-left: 6px; }
.jump { border: 0; background: none; color: var(--teal-2); cursor: pointer; padding: 0; font-size: 13px; font-weight: 600; }
.cat-title { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 16px 0 4px; }
.metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.metric { background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.metric b { display: block; font-size: 22px; }
.metric span { font-size: 13px; color: var(--muted); }
.better { border-left: 3px solid var(--teal); padding: 6px 12px; margin: 10px 0; }
.better .said { color: var(--muted); font-size: 14px; }
.better .try { font-weight: 600; color: var(--teal-2); }
.quote { font-size: 16px; font-style: italic; color: #34465d; border-left: 3px solid #c8d2de; padding-left: 12px; }
.player-card audio { width: 100%; margin: 6px 0 10px; }
.replay { max-height: 520px; overflow-y: auto; display: grid; gap: 2px; }
.rline { display: grid; grid-template-columns: 52px 86px 1fr; gap: 8px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.rline:hover { background: #f1f5fa; }
.rline.on { background: var(--teal-soft); }
.rline .ts { color: var(--muted); font-variant-numeric: tabular-nums; }
.rline.customer b { color: var(--teal-2); }
.rline.agent b { color: var(--navy); }
.rline.event { color: var(--muted); font-style: italic; grid-template-columns: 52px 1fr; }
.big-caption { background: var(--navy); color: #fff; border-radius: 10px; padding: 10px 14px; min-height: 48px; font-size: 16px; margin-bottom: 10px; }
.downloads { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------------------------------------------------------------- history, settings, about */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 8px 0 18px; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 18px; }
.history-list { display: grid; gap: 10px; }
.hrow { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow); }
.hscore { width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 20px; color: #fff; }
.hrow h3 { font-size: 16px; margin: 0; }
.hrow p { margin: 0; font-size: 13px; color: var(--muted); }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 40px; }
.spark i { width: 8px; border-radius: 3px 3px 0 0; background: var(--teal); opacity: .8; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; align-items: start; }
.device { font-size: 13px; color: var(--muted); background: #f8fafc; border-radius: 10px; padding: 10px 12px; margin: 12px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.about-grid .span2 { grid-column: span 2; }
.error-card { max-width: 560px; margin: 40px auto; }
.empty { text-align: center; padding: 40px; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); z-index: 100; font-size: 14px; max-width: 92vw; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .call-wrap { grid-template-columns: 300px 1fr; }
  .coach { grid-column: span 2; position: static; max-height: none; }
}
@media (max-width: 980px) {
  .hero, .setup { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .report-grid, .about-grid { grid-template-columns: 1fr; }
  .report-grid .span2, .about-grid .span2 { grid-column: auto; }
  .report-head { grid-template-columns: auto 1fr; }
  .report-actions { grid-column: span 2; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .topbar-inner { gap: 8px; padding: 0 12px; }
  .brand span { display: none; }
  .nav { margin-left: 0; overflow-x: auto; }
  .nav a { padding: 6px 8px; font-size: 14px; white-space: nowrap; }
  #engineChipText { display: none; }
  .engine-chip { padding: 8px; }
  .call-wrap, .call-wrap.no-coach { grid-template-columns: 1fr; }
  .coach { grid-column: auto; }
  .phone { position: static; }
  .captions { height: 60vh; }
  .form-grid, .mode-cards { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .bar-row { grid-template-columns: 130px 1fr 34px; }
  .item { grid-template-columns: 1fr; gap: 4px; }
  .verdict { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
