/* ═══════════════════════════════════════════════════════════
   看穩聽問守 AI 阻詐演練平台
   主視覺：明體大字「看穩聽問守」＋情緒溫度計；朱紅只留給「守」
   ═══════════════════════════════════════════════════════════ */
:root {
  --paper: #edf1f4;
  --surface: #ffffff;
  --ink: #1b2733;
  --ink-2: #4e5b68;
  --ink-3: #75818d;
  --line: #d3dbe2;
  --line-2: #e4e9ee;
  --duty: #1f3a5f;
  --duty-2: #2d5486;
  --duty-soft: #e3eaf3;
  --seal: #b3302a;
  --seal-soft: #f6e4e2;
  --lv-green: #2f9e6e;
  --lv-yellow: #d9a80f;
  --lv-orange: #e0702a;
  --lv-red: #cf3f35;
  --good: #2f7d5b;
  --bad: #b8433a;
  --serif: "Noto Serif TC", "Noto Serif CJK TC", "Source Han Serif TC", "Songti TC", "PMingLiU", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Noto Sans CJK TC", "Microsoft JhengHei", "Heiti TC", sans-serif;
  --r-s: 6px;
  --r-m: 10px;
  --r-l: 16px;
  --focus: 0 0 0 3px rgba(45, 84, 134, .35);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.7 var(--sans);
  letter-spacing: .01em;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.35; margin: 0; letter-spacing: .02em; }
h1 { font-size: 30px; }
h2 { font-size: 23px; }
h3 { font-size: 19px; }
p { margin: 0 0 .7em; }
a { color: var(--duty-2); }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.hidden { display: none !important; }

/* ── 按鈕與表單 ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: var(--r-s);
  border: 1px solid transparent; cursor: pointer; font-weight: 600; text-decoration: none;
  background: var(--duty); color: #fff;
}
.btn:hover { background: var(--duty-2); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--duty); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--duty-2); background: var(--duty-soft); }
.btn.quiet { background: transparent; color: var(--ink-2); padding: 0 10px; min-height: 40px; font-weight: 500; }
.btn.quiet:hover { color: var(--duty); }
.btn.seal { background: var(--seal); }
.btn.seal:hover { background: #9a2620; }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 15px; }
.btn.small, .btn.quiet { white-space: nowrap; }

.field { display: block; margin-bottom: 18px; }
label.field > span { display: block; font-weight: 600; margin-bottom: 6px; }
label.field small { display: block; color: var(--ink-3); font-size: 14px; margin-top: 4px; }
input[type=text], input[type=password], textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--r-s);
  background: var(--surface); padding: 11px 13px; min-height: 48px;
}
input:focus, textarea:focus { border-color: var(--duty-2); box-shadow: var(--focus); outline: none; }
.error-text { color: var(--bad); font-size: 15px; min-height: 1.5em; }

/* 版本選擇：三個大選項 */
.choice-group { display: grid; gap: 10px; }
.choice {
  display: flex; gap: 12px; align-items: flex-start; text-align: left;
  border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface);
  padding: 14px 16px; cursor: pointer;
}
.choice:hover { border-color: var(--duty-2); }
.choice[aria-pressed="true"] { border-color: var(--duty); box-shadow: inset 0 0 0 1px var(--duty); background: var(--duty-soft); }
.choice b { display: block; }
.choice span { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-row .choice { flex: 1 1 90px; justify-content: center; font-weight: 600; padding: 10px; }

/* ── 登入頁 ───────────────────────────────────────────────── */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(280px, 5fr) 7fr; }
.login-hero {
  background: var(--duty); color: #fff; padding: 56px 48px;
  display: flex; flex-direction: column; justify-content: center;
}
.method { list-style: none; margin: 0; padding: 0; }
.method li { display: flex; align-items: center; gap: 22px; }
.method .char { font-family: var(--serif); font-weight: 900; font-size: clamp(54px, 8.5vh, 86px); line-height: 1.08; }
.method li:last-child .char { color: #ffd9d4; }
.method .gloss { font-size: 17px; color: #c9d6e6; letter-spacing: .08em; }
.login-hero .team { margin-top: 36px; color: #c9d6e6; font-size: 15px; }
.login-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.login-card { width: 100%; max-width: 480px; }
.login-card h1 { font-size: 32px; margin-bottom: 6px; }
.login-card .lede { color: var(--ink-2); margin-bottom: 28px; }
.notice { font-size: 14px; color: var(--ink-2); background: var(--surface); border-left: 3px solid var(--duty); padding: 10px 14px; border-radius: 0 var(--r-s) var(--r-s) 0; margin-top: 22px; }

/* ── 頁首 ─────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px; padding: 0 24px; height: 61px;
}
.brand { font-family: var(--serif); font-weight: 900; font-size: 20px; color: var(--duty); text-decoration: none; letter-spacing: .12em; white-space: nowrap; }
.topbar .spacer { flex: 1; }
.who { font-size: 14px; color: var(--ink-2); text-align: right; line-height: 1.4; }
.who b { color: var(--ink); font-size: 15px; }
.who-sub { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.page { max-width: 1120px; margin: 0 auto; padding: 32px 24px 64px; }
.page-narrow { max-width: 760px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }

/* ── 首頁 ─────────────────────────────────────────────────── */
.home { display: grid; grid-template-columns: minmax(0, 8fr) minmax(260px, 4fr); gap: 36px; align-items: start; }
.home-intro { margin-bottom: 26px; }
.home-intro h1 { margin-bottom: 4px; }
.home-intro p { color: var(--ink-2); max-width: 36em; }

.roster { border-top: 2px solid var(--duty); }
.roster-group { font-family: var(--serif); font-weight: 600; color: var(--duty); padding: 16px 0 6px; border-bottom: 1px solid var(--line); }
.roster-row {
  display: grid; grid-template-columns: 7.5em minmax(0, 1fr) auto; gap: 6px 18px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.scam-type { font-size: 14px; font-weight: 600; color: var(--duty); }
.roster-row h3 { font-size: 19px; margin-bottom: 2px; }
.roster-meta { font-size: 14px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.dots { letter-spacing: 2px; color: var(--duty-2); }
.dots i { font-style: normal; color: var(--line); }
.best { font-variant-numeric: tabular-nums; }

.side-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 18px 18px 16px; margin-bottom: 16px; }
.side-block h3 { font-size: 17px; margin-bottom: 8px; }
.side-block .btn { width: 100%; margin-top: 10px; }
.test-status { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; font-size: 15px; align-items: center; }
.test-status .val { font-variant-numeric: tabular-nums; font-weight: 600; }
.advice { font-size: 15px; color: var(--ink-2); margin-top: 6px; }
.advice b { font-family: var(--serif); color: var(--duty); font-size: 18px; }

/* ── 演練畫面 ─────────────────────────────────────────────── */
.drill { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 0; height: calc(100vh - 61px); height: calc(100dvh - 61px); }
.chat-col { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); }
.chat-scroll { flex: 1; overflow-y: auto; padding: 24px clamp(16px, 4vw, 48px) 12px; }
.scene {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
  padding: 16px 18px; margin: 0 auto 22px; max-width: 680px; font-size: 16px;
}
.scene h2 { font-size: 21px; margin-bottom: 8px; }
.scene dl { margin: 10px 0 0; display: grid; grid-template-columns: 4.5em 1fr; gap: 4px 10px; }
.scene dt { color: var(--ink-3); font-size: 14px; padding-top: 2px; }
.scene dd { margin: 0; }
.scene .channel { display: inline-block; font-size: 14px; color: var(--duty); border: 1px solid var(--duty-soft); background: var(--duty-soft); border-radius: 999px; padding: 0 10px; margin-left: 6px; vertical-align: middle; }

.thread { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; flex-direction: column; max-width: 88%; }
.msg.ai { align-self: flex-start; }
.msg.user { align-self: flex-end; align-items: flex-end; }
.msg .who-label { font-size: 13px; color: var(--ink-3); margin: 0 4px 3px; }
.bubble { padding: 10px 15px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ai .bubble { background: var(--surface); border: 1px solid var(--line); border-top-left-radius: 4px; }
.user .bubble { background: var(--duty); color: #fff; border-top-right-radius: 4px; }
.tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin-top: 6px; align-items: center; }
.tag {
  display: inline-flex; align-items: center; gap: 5px; font-size: 13px; line-height: 1;
  padding: 5px 9px 5px 5px; border-radius: 999px; background: var(--duty-soft); color: var(--duty);
}
.tag .c { font-family: var(--serif); font-weight: 900; font-size: 13px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--duty); color: #fff; }
.tag.neg { background: #fbe9e7; color: var(--bad); }
.tag.neg .c { background: var(--bad); }
.tag.none { background: transparent; color: var(--ink-3); padding-left: 0; }
.delta { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.delta.up { color: var(--lv-red); }
.delta.down { color: var(--lv-green); }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.status-line { text-align: center; font-size: 14px; color: var(--ink-3); }
.end-banner { text-align: center; margin: 10px auto 0; max-width: 520px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px; }

.composer { border-top: 1px solid var(--line); background: var(--surface); padding: 12px clamp(16px, 4vw, 48px) calc(12px + env(safe-area-inset-bottom)); }
.composer form { max-width: 680px; margin: 0 auto; display: flex; gap: 10px; align-items: flex-end; }
.composer textarea { min-height: 48px; max-height: 140px; resize: none; }
.composer .btn { flex: none; white-space: nowrap; }
.composer .row2 { max-width: 680px; margin: 8px auto 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-3); }

/* 側欄：溫度計 */
.meter-col { overflow-y: auto; padding: 22px 20px; background: var(--surface); }
.meter-title { font-size: 14px; color: var(--ink-2); margin-bottom: 12px; }
.meter { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: stretch; height: 300px; }
.tube { position: relative; width: 22px; margin: 0 auto; border-radius: 11px 11px 0 0; background: var(--line-2); border: 1px solid var(--line); border-bottom: 0; }
.tube::after { content: ""; position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%); width: 40px; height: 40px; border-radius: 50%; background: var(--mercury, var(--lv-yellow)); border: 1px solid rgba(0,0,0,.08); transition: background .6s; }
.mercury { position: absolute; left: 3px; right: 3px; bottom: 0; border-radius: 8px 8px 0 0; background: var(--mercury, var(--lv-yellow)); height: 50%; transition: height .7s cubic-bezier(.2, .8, .2, 1), background .6s; }
.scale { position: relative; }
.scale .band { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--line); font-size: 13px; color: var(--ink-3); padding-top: 2px; }
.scale .band b { font-family: var(--serif); font-weight: 600; color: var(--ink-2); }
.scale .band.on b { color: var(--ink); }
.reading { margin-top: 40px; }
.reading .lv { display: block; font-family: var(--serif); font-weight: 900; font-size: 27px; line-height: 1.3; white-space: nowrap; }
.reading .num { font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: 15px; }
.turns { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.cheat { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 14px; }
.cheat summary { cursor: pointer; font-weight: 600; font-size: 15px; }
.cheat ol { list-style: none; padding: 0; margin: 10px 0 0; }
.cheat li { display: grid; grid-template-columns: 30px 1fr; gap: 8px; font-size: 14px; line-height: 1.55; margin-bottom: 10px; color: var(--ink-2); }
.cheat li .c { font-family: var(--serif); font-weight: 900; font-size: 22px; color: var(--duty); line-height: 1.1; }
.cheat li b { color: var(--ink); }
.reason { font-size: 13px; color: var(--ink-3); margin-top: 14px; line-height: 1.5; }

/* ── 結果 ─────────────────────────────────────────────────── */
.verdict { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding-bottom: 22px; border-bottom: 2px solid var(--duty); margin-bottom: 28px; }
.verdict .kicker { color: var(--ink-2); font-size: 15px; }
.verdict h1 { font-size: clamp(30px, 5vw, 42px); font-weight: 900; }
.verdict .sub { color: var(--ink-2); margin-top: 4px; }
.stamp {
  width: 92px; height: 92px; border: 4px solid var(--seal); color: var(--seal); border-radius: 10px;
  display: grid; place-items: center; font-family: var(--serif); font-weight: 900; font-size: 54px; line-height: 1;
  transform: rotate(-8deg); opacity: .92;
}
.stamp.pending { border-color: var(--line); color: var(--ink-3); transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .stamp.press { animation: press .5s cubic-bezier(.2, 1.4, .4, 1) both .2s; }
  @keyframes press { from { transform: rotate(-8deg) scale(1.6); opacity: 0; } to { transform: rotate(-8deg) scale(1); opacity: .92; } }
}

.score-grid { display: grid; grid-template-columns: minmax(260px, 5fr) 7fr; gap: 32px; align-items: center; margin-bottom: 36px; }
.radar-wrap { position: relative; }
.radar-wrap svg { width: 100%; height: auto; display: block; }
.radar-total { text-align: center; margin-top: -6px; font-size: 15px; color: var(--ink-2); }
.radar-total b { font-family: var(--serif); font-size: 34px; color: var(--ink); font-variant-numeric: tabular-nums; }
.axis-list { list-style: none; margin: 0; padding: 0; }
.axis-list li { display: grid; grid-template-columns: 40px 1fr 3em; gap: 4px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.axis-list .c { font-family: var(--serif); font-weight: 900; font-size: 28px; color: var(--duty); line-height: 1; }
.axis-list .t { font-weight: 600; }
.axis-list .d { grid-column: 2 / 4; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.bar { height: 6px; background: var(--line-2); border-radius: 3px; overflow: hidden; margin-top: 4px; }
.bar i { display: block; height: 100%; background: var(--duty-2); }
.axis-list .v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 19px; }

.block { margin-bottom: 36px; }
.block > h2 { margin-bottom: 12px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.list-good, .list-better { margin: 0; padding-left: 1.2em; }
.list-good li, .list-better li { margin-bottom: 8px; }
.list-good li::marker { color: var(--good); }
.list-better li::marker { color: var(--lv-orange); }
.col-title { font-weight: 700; margin-bottom: 8px; }
.col-title.good { color: var(--good); }
.col-title.better { color: #a8551c; }
.moment { border-left: 3px solid var(--duty-2); padding: 4px 0 4px 16px; margin-bottom: 18px; }
.moment q { display: block; font-family: var(--serif); font-size: 18px; quotes: "「" "」"; }
.moment .better { margin-top: 6px; color: var(--good); }
.moment .better::before { content: "可以這樣說："; font-weight: 700; }
.coach-note { font-size: 13px; color: var(--ink-3); margin-top: 6px; }

.curve svg { width: 100%; height: auto; display: block; }

.transcript { list-style: none; padding: 0; margin: 0; }
.transcript li { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 4.5em 1fr; gap: 10px; }
.transcript .sp { font-size: 14px; color: var(--ink-3); padding-top: 2px; }
.transcript .flag { margin-top: 8px; background: #fff6e8; border-left: 3px solid var(--lv-orange); padding: 8px 12px; border-radius: 0 var(--r-s) var(--r-s) 0; font-size: 15px; }
.transcript .flag b { color: #a8551c; }
.flag-list li { margin-bottom: 10px; }

.guard {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center;
  background: var(--seal-soft); border-radius: var(--r-l); padding: 22px 24px; margin: 8px 0 30px;
}
.guard .stamp { width: 64px; height: 64px; font-size: 38px; border-width: 3px; }
.guard h2 { font-size: 20px; color: var(--seal); margin-bottom: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── 測驗與問卷 ───────────────────────────────────────────── */
.q { padding: 18px 0; border-bottom: 1px solid var(--line); }
.q legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.q fieldset { border: 0; margin: 0; padding: 0; }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-s); margin-bottom: 8px; background: var(--surface); cursor: pointer; }
.opt input { margin-top: 6px; width: 18px; height: 18px; flex: none; }
.opt.right { border-color: var(--good); background: #e8f4ee; }
.opt.wrong { border-color: var(--bad); background: #fbe9e7; }
.explain { font-size: 15px; color: var(--ink-2); margin-top: 6px; }
.score-banner { font-family: var(--serif); font-size: 26px; font-weight: 900; margin: 6px 0 20px; }

.likert { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 8px; }
.likert button { min-height: 52px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-s); cursor: pointer; font-size: 14px; line-height: 1.3; padding: 4px; }
.likert button b { display: block; font-size: 18px; }
.likert button[aria-pressed="true"] { background: var(--duty); color: #fff; border-color: var(--duty); }

/* ── 紀錄 ─────────────────────────────────────────────────── */
table.records { width: 100%; border-collapse: collapse; font-size: 15px; }
.records th, .records td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.records th { font-weight: 600; color: var(--ink-2); font-size: 14px; }
.records td.num { font-variant-numeric: tabular-nums; }
.pill { display: inline-block; font-size: 13px; padding: 1px 8px; border-radius: 999px; background: var(--line-2); color: var(--ink-2); }
.pill.ok { background: #e3f1ea; color: var(--good); }
.pill.no { background: #fbe9e7; color: var(--bad); }
.consent { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 18px; margin: 24px 0; }
.consent label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 4px; flex: none; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: var(--r-s); font-size: 15px; z-index: 50; max-width: calc(100% - 32px); }
.empty { color: var(--ink-2); padding: 24px 0; }
.loading { padding: 80px 0; text-align: center; color: var(--ink-2); }

/* ── 手機 ─────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .login { grid-template-columns: 1fr; }
  .login-hero { padding: 28px 20px 22px; }
  .method { display: flex; justify-content: space-between; }
  .method li { display: flex; flex-direction: column; align-items: center; gap: 2px; }
  .method .char { font-size: 46px; }
  .method .gloss { font-size: 13px; letter-spacing: 0; }
  .login-hero .team { margin-top: 14px; text-align: center; }
  .login-main { padding: 28px 16px 40px; align-items: flex-start; }
  .topbar { padding: 0 12px 0 16px; gap: 8px; }
  .who { font-size: 12px; min-width: 0; max-width: 55vw; }
  .who b { font-size: 14px; }
  .brand { font-size: 17px; letter-spacing: .06em; }
  .page { padding: 22px 16px 48px; }
  .home { grid-template-columns: 1fr; gap: 24px; }
  .roster-row { grid-template-columns: 1fr auto; }
  .roster-row .scam-type { grid-column: 1 / -1; }
  .drill { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .chat-col { border-right: 0; grid-row: 2; }
  .meter-col { grid-row: 1; padding: 10px 16px; border-bottom: 1px solid var(--line); overflow: visible; }
  .meter-title, .scale, .cheat:not([open]) ~ .reason, .reason { display: none; }
  .meter { display: block; height: auto; }
  .tube { width: 100%; height: 14px; border-radius: 7px; border: 1px solid var(--line); }
  .tube::after { display: none; }
  .mercury { top: 2px; bottom: 2px; left: 2px; height: auto !important; width: var(--pct, 50%); max-width: calc(100% - 4px); border-radius: 5px; transition: width .7s cubic-bezier(.2, .8, .2, 1), background .6s; }
  .reading { margin-top: 6px; display: flex; align-items: baseline; gap: 10px; }
  .reading .lv { font-size: 20px; }
  .turns { margin: 0; }
  .meter-col .row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .cheat { margin-top: 8px; padding-top: 8px; }
  .cheat ol { max-height: 40vh; overflow-y: auto; }
  .chat-scroll { padding: 16px 14px 8px; }
  .msg { max-width: 94%; }
  .composer { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .verdict { grid-template-columns: 1fr; }
  .verdict .stamp { justify-self: start; }
  .score-grid, .two-col { grid-template-columns: 1fr; gap: 20px; }
  .records .hide-sm { display: none; }
  .likert button { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
