/* hidden 属性恒生效：任何元素级 display 规则不得让 [hidden] 元素可见
   （教训：.bank-panel{display:grid} 覆盖 UA 的 [hidden]→表达本收不起，v2.0.1） */
[hidden] {
  display: none !important;
}

:root {
  color-scheme: light;
  --bg: #f4f7f5;
  --surface: #ffffff;
  --surface-soft: #eef4f1;
  --surface-strong: #e5eee9;
  --text: #18211c;
  --muted: #66736c;
  --line: #d8e2dc;
  --brand: #136f52;
  --brand-strong: #0a533c;
  --brand-soft: #dff2e9;
  --focus: #1d76d2;
  --danger: #b42318;
  --danger-soft: #fee4e2;
  --warning: #a15c00;
  --real: #177245;
  --real-bg: #dff5e8;
  --heuristic: #1769aa;
  --heuristic-bg: #e1effc;
  --simulated: #a45b00;
  --simulated-bg: #fff0d5;
  --provider: #7250aa;
  --provider-bg: #eee7fb;
  --marker-1: #e9a23b;
  --marker-2: #e16726;
  --marker-3: #c9342b;
  --shadow: 0 16px 45px rgb(20 43 32 / 10%);
  --wave: #238261;
  --wave-bg: #e8f0ec;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgb(48 155 112 / 8%), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans SC", sans-serif;
}

button,
input,
textarea {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 70%, transparent);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-header {
  position: relative;
  z-index: 30;
  display: flex;
  height: 68px;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--brand);
  color: white;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
}

.provider-badges {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.app-layout {
  display: grid;
  height: calc(100vh - 68px);
  grid-template-columns: minmax(0, 1fr) 420px;
}

.chat-panel,
.drawer {
  min-height: 0;
  background: var(--surface);
}

.chat-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-right: 1px solid var(--line);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.chat-heading {
  padding: 26px 32px 18px;
}

.drawer-heading {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 22px 22px 15px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(10px);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(21px, 2vw, 29px);
}

h2 {
  font-size: 20px;
}

h3 {
  margin: 0;
  font-size: 14px;
}

.chat-log {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  padding: 18px max(28px, 7vw) 32px;
  scroll-behavior: smooth;
}

.message {
  display: flex;
  max-width: min(680px, 88%);
  flex-direction: column;
  gap: 8px;
}

.message.user {
  align-self: flex-end;
  align-items: flex-end;
}

.message.tutor {
  align-self: flex-start;
}

.message-meta {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.bubble {
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.bubble.user {
  border-bottom-right-radius: 5px;
  border-color: var(--brand);
  background: var(--brand);
  color: white;
}

.bubble.tutor {
  border-bottom-left-radius: 5px;
  background: var(--surface-soft);
}

.practice-block {
  width: 100%;
  padding: 13px;
  border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--line));
  border-radius: 14px;
  background: var(--brand-soft);
}

.practice-text {
  margin: 0 0 10px;
  color: var(--brand-strong);
  font-weight: 750;
  line-height: 1.45;
}

.practice-actions,
.sentence-actions,
.capture-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.chat-form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  padding: 18px 28px 22px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.chat-form .mic-button[hidden] { display: none; }
.chat-form:has(.mic-button[hidden]) { grid-template-columns: minmax(0, 1fr) auto; }

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

input {
  min-height: 46px;
  padding: 0 14px;
}

textarea {
  min-height: 74px;
  resize: vertical;
  padding: 11px 12px;
  line-height: 1.45;
}

input::placeholder,
textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 78%, transparent);
}

.primary-button,
.secondary-button,
.record-button,
.icon-button,
.text-button,
.mini-button {
  border: 0;
  border-radius: 11px;
  touch-action: manipulation;   /* 手机上禁双击缩放，消除点按 300ms 迟滞感 */
  font-weight: 750;
}

.primary-button {
  min-height: 44px;
  padding: 0 18px;
  background: var(--brand);
  color: white;
}

.primary-button:hover {
  background: var(--brand-strong);
}

.secondary-button,
.mini-button {
  border: 1px solid var(--line);
  background: var(--surface);
}

.secondary-button {
  min-height: 42px;
  padding: 0 14px;
}

.mini-button {
  padding: 7px 10px;
  color: var(--brand-strong);
  font-size: 12px;
}

.icon-button,
.text-button {
  background: transparent;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px;
}

.text-button {
  padding: 5px 7px;
  color: var(--brand);
  font-size: 12px;
}

.drawer-toggle,
.drawer-close {
  display: none;
}

.drawer {
  overflow-y: auto;
  padding: 0 16px 40px;
}

.drawer > section,
.analysis-content > section {
  margin-bottom: 12px;
}

.card,
.capture-card,
.results-section {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.card,
.results-section {
  padding: 15px;
}

.capture-card {
  padding: 13px 15px;
  background: var(--surface-soft);
}

.target-card.flash {
  animation: target-flash 900ms ease;
}

@keyframes target-flash {
  0%,
  100% {
    box-shadow: none;
  }
  35% {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 24%, transparent);
  }
}

.title-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.field-hint,
.capture-status {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.capture-status.error {
  color: var(--danger);
}

.record-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 0 15px;
  background: var(--brand);
  color: white;
}

.record-button.recording {
  background: var(--danger);
}

.record-dot {
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 999px;
  background: currentColor;
}

.recording .record-dot {
  border-radius: 2px;
}

.record-timer {
  min-width: 42px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.drawer-empty {
  padding: 42px 24px;
  color: var(--muted);
  text-align: center;
}

.drawer-empty h3 {
  margin: 12px 0 7px;
  color: var(--text);
  font-size: 16px;
}

.drawer-empty p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.empty-icon {
  font-size: 34px;
}

.analysis-content {
  padding-bottom: 20px;
}

.banner-sim {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid #e8ad55;
  border-radius: 13px;
  background: var(--simulated-bg);
  color: #704000;
  font-size: 12px;
}

.banner-sim[hidden] {
  display: none;
}

.pipeline-trail {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.trail-entry {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  border-radius: 10px;
  background: var(--surface-soft);
  font-size: 11px;
}

.transcript-text {
  margin: 7px 0;
  line-height: 1.55;
  white-space: pre-wrap;
}

.transcript-interim {
  color: var(--muted);
  font-style: italic;
}

.diff-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.chip,
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
}

.chip {
  padding: 4px 7px;
  background: var(--surface-strong);
}

.chip.missing {
  background: var(--danger-soft);
  color: var(--danger);
  text-decoration: line-through;
}

.chip.extra {
  background: var(--heuristic-bg);
  color: var(--heuristic);
}

.badge {
  padding: 4px 7px;
}

.badge.real {
  background: var(--real-bg);
  color: var(--real);
}

.badge.heuristic {
  background: var(--heuristic-bg);
  color: var(--heuristic);
}

.badge.simulated {
  background: var(--simulated-bg);
  color: var(--simulated);
}

.badge.provider {
  background: var(--provider-bg);
  color: var(--provider);
}

.badge.na {
  background: var(--surface-strong);
  color: var(--muted);
}

.score-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.tile {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
}

.tile.overall {
  grid-column: span 2;
  background: var(--brand-soft);
}

.tile-label {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tile-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}

.tile-value {
  font-size: 25px;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
}

.tile-value.unavailable {
  max-width: 12rem;
  font-size: 11px;
  line-height: 1.35;
}

.score-note {
  grid-column: span 2;
  margin: 2px 0 0;
  color: var(--warning);
  font-size: 11px;
}

.sentence-list,
.issue-list {
  display: grid;
  gap: 9px;
  margin-top: 10px;
}

.sentence-card,
.issue-card {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.issue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bubble-typing-dots {
  display: inline-flex;
  gap: 3px;
  margin-left: 5px;
  vertical-align: baseline;
}

.word-attempts {
  display: grid;
  gap: 3px;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px dashed var(--line);
}

.word-attempts .word-aggregate {
  font-weight: 750;
}

.sentence-card p,
.issue-card p {
  margin: 0 0 9px;
  line-height: 1.5;
}

.sentence-card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
}

.sentence-index,
.issue-kind {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.marker-area {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 6px;
  margin-top: 12px;
  line-height: 1.8;
}

.marker {
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 4px 4px 1px 1px;
  background: transparent;
  font: inherit;
}

.marker.has-issue {
  cursor: pointer;
}

.marker.sev1 {
  border-color: var(--marker-1);
}

.marker.sev2 {
  border-color: var(--marker-2);
}

.marker.sev3 {
  border-color: var(--marker-3);
}

.marker.omission {
  color: var(--danger);
  text-decoration: line-through 2px;
  text-decoration-color: var(--danger);
}

.issue-card.highlight {
  border-color: var(--focus);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--focus) 20%, transparent);
}

.issue-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.issue-ipa {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.audio-card audio,
#waveform {
  display: block;
  width: 100%;
}

#waveform {
  height: 76px;
  border-radius: 10px;
  background: var(--wave-bg);
}

.audio-card audio {
  height: 34px;
}

.toast-root {
  position: fixed;
  z-index: 100;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: min(360px, calc(100vw - 36px));
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--text);
  box-shadow: var(--shadow);
  color: var(--surface);
  font-size: 12px;
  line-height: 1.45;
}

.drawer-backdrop {
  display: none;
}

@media (max-width: 959px) {
  body {
    overflow: auto;
  }

  .app-layout {
    display: block;
    height: calc(100vh - 68px);
    height: calc(100dvh - 68px);   /* 手机地址栏收展时 100vh 会溢出，动态视口单位兜底 */
  }

  .chat-panel {
    height: 100%;
    border-right: 0;
  }

  .provider-badges {
    display: none;
  }

  .drawer-toggle,
  .drawer-close {
    display: inline-flex;
  }

  .drawer {
    position: fixed;
    z-index: 50;
    inset: 0 0 0 auto;
    height: 100vh;
    height: 100dvh;
    width: min(440px, 94vw);
    padding-bottom: 40px;
    border-left: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateX(102%);
    transition: transform 180ms ease;
  }

  .drawer-backdrop {
    position: fixed;
    z-index: 40;
    inset: 68px 0 0;
    background: rgb(13 25 18 / 45%);
  }

  body.drawer-open {
    overflow: hidden;
  }

  body.drawer-open .drawer {
    transform: translateX(0);
  }

  body.drawer-open .drawer-backdrop {
    display: block;
  }
}

@media (max-width: 560px) {
  .app-header {
    padding: 0 14px;
  }

  .brand small,
  .drawer-toggle > span:last-child {
    display: none;
  }

  .chat-heading {
    padding: 20px 18px 12px;
  }

  .chat-heading > .badge {
    display: none;
  }

  .chat-log {
    padding: 15px 16px 24px;
  }

  .message {
    max-width: 94%;
  }

  .chat-form {
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #101612;
    --surface: #17201b;
    --surface-soft: #1f2a24;
    --surface-strong: #2a3730;
    --text: #ecf4ef;
    --muted: #a3b3aa;
    --line: #34443b;
    --brand: #4db68b;
    --brand-strong: #7bd3ae;
    --brand-soft: #173d2e;
    --focus: #73b8ff;
    --danger: #ff8a80;
    --danger-soft: #4a2523;
    --warning: #f4b860;
    --real: #70d49c;
    --real-bg: #173d2a;
    --heuristic: #78baf0;
    --heuristic-bg: #18364e;
    --simulated: #f0b35b;
    --simulated-bg: #49351b;
    --provider: #c2a7f2;
    --provider-bg: #372b50;
    --marker-1: #f0bd58;
    --marker-2: #f28a4c;
    --marker-3: #ff756c;
    --wave: #71d2aa;
    --wave-bg: #1c3027;
  }

  .banner-sim {
    border-color: #795728;
    color: #ffd795;
  }
}

/* ===== v1.5 · Chat: real tutor, rephrase, expression bank, voice input ===== */
.chat-heading-tools {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* ===== M20 §8 · 聊天语音消息韵律分数条 ===== */
.voice-score {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.3rem;
  max-width: min(78%, 34rem);
  cursor: pointer;
  user-select: none;
}
.message.user .voice-score { margin-left: auto; }
.voice-score-bar {
  flex: 1;
  height: 6px;
  min-width: 6rem;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.voice-score-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s ease;
}
.voice-score-fill.good { background: var(--real); }
.voice-score-fill.mid { background: var(--warning); }
.voice-score-fill.low { background: var(--danger); }
.voice-score-label {
  font-size: 0.74rem;
  color: var(--muted);
  white-space: nowrap;
}
.voice-score-detail {
  margin-top: 0.3rem;
  max-width: min(78%, 34rem);
  margin-left: auto;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  font-size: 0.8rem;
}
.message.tutor .voice-score-detail { margin-left: 0; }
.voice-score-dim { margin: 0.12rem 0; }
.voice-score-dim.na { color: var(--muted); }
.voice-score-hint { margin: 0 0 0.2rem 1.1rem; font-size: 0.76rem; color: var(--muted); }
.voice-score-provenance {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  padding-top: 0.3rem;
}

.rephrase-block {
  margin-top: 0.6rem;
  padding: 0.6rem 0.75rem;
  border-left: 3px solid var(--brand);
  border-radius: 0.5rem;
  background: var(--brand-soft);
}
.rephrase-label {
  margin: 0 0 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--brand-strong);
}
.rephrase-original {
  margin: 0 0 0.2rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.rephrase-native {
  margin: 0 0 0.45rem;
  font-weight: 600;
}
.rephrase-saved {
  align-self: center;
  font-size: 0.75rem;
  color: var(--muted);
}

.typing-bubble {
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
  min-height: 1.4rem;
}
.typing-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--muted);
  animation: typing-blink 1.2s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-blink {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}

.bank-panel {
  max-height: 38vh;
  overflow-y: auto;
  padding: 0.6rem 0.9rem;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
  display: grid;
  gap: 0.5rem;
}
.bank-empty {
  margin: 0.3rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.bank-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: var(--surface);
}
.bank-texts { min-width: 0; }
.bank-native {
  margin: 0;
  font-weight: 600;
  font-size: 0.92rem;
}
.bank-original {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.bank-actions {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.mic-button.recording {
  background: var(--danger-soft);
  border-color: var(--danger);
  color: var(--danger);
  animation: mic-pulse 1.1s infinite;
}
.mic-button.processing { opacity: 0.55; pointer-events: none; }
@keyframes mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(180, 35, 24, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(180, 35, 24, 0); }
}

/* ===== M20 · Prosody comparison vs demo（跟读模式韵律对比卡） ===== */
.prosody-list { display: grid; gap: 0.45rem; }
.prosody-row {
  display: grid;
  grid-template-columns: 5.5em 1fr auto;
  gap: 0.15rem 0.6rem;
  align-items: baseline;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.88rem;
}
.prosody-row.close { background: color-mix(in srgb, var(--ok, #2e7d32) 6%, transparent); }
.prosody-row.off { background: color-mix(in srgb, var(--warn, #b26a00) 8%, transparent); }
.prosody-row.na { color: var(--muted); }
.prosody-label { font-weight: 600; }
.prosody-values { color: var(--text); overflow-wrap: anywhere; }
.prosody-mark { font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.prosody-hint {
  grid-column: 1 / -1;
  margin: 0.1rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ===== v1.7 · Free-speech diagnosis (Discovery / Verification) ===== */
.diagnosis-subtitle {
  margin: 0 0 0.7rem;
  font-size: 0.83rem;
  color: var(--muted);
}
.diagnosis-list { display: grid; gap: 0.65rem; }
.diagnosis-empty { margin: 0.2rem 0; font-size: 0.85rem; color: var(--muted); }
.hypo-card {
  border: 1px solid var(--line);
  border-left: 3px solid var(--warning);
  border-radius: 0.6rem;
  padding: 0.65rem 0.8rem;
  background: var(--surface);
}
.hypo-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}
.hypo-conf {
  font-size: 0.72rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.hypo-conf.conf-medium { color: var(--heuristic); border-color: var(--heuristic); background: var(--heuristic-bg); }
.hypo-conf.conf-high { color: var(--simulated); border-color: var(--simulated); background: var(--simulated-bg); }
.hypo-evidence { margin: 0 0 0.5rem; font-size: 0.85rem; }
.hypo-drill {
  border-top: 1px dashed var(--line);
  padding-top: 0.5rem;
}
.hypo-focus { margin: 0 0 0.45rem; font-size: 0.82rem; color: var(--muted); }
.verify-box { margin-top: 0.45rem; }
.verify-verdict { margin: 0; font-size: 0.88rem; font-weight: 600; }
.verify-heard { margin: 0.2rem 0 0; font-size: 0.8rem; color: var(--muted); }
.verify-note { margin: 0.25rem 0 0; font-size: 0.72rem; color: var(--muted); }

/* ---------- v1.8 分段流式转写（M18）：前缀正文 + 尾部加载动画（复用 typing-dot） ---------- */
.transcript-stream { white-space: pre-wrap; }
.stream-dots {
  display: inline-flex;
  gap: 0.28rem;
  align-items: center;
  padding: 0.2rem 0;
}
.stream-hint { display: block; margin-top: 0.35rem; }
