:root {
  color-scheme: dark;
  --bg: #0b1020;
  --bg-elevated: rgba(15, 23, 42, 0.82);
  --bg-elevated-strong: rgba(15, 23, 42, 0.96);
  --panel-border: rgba(148, 163, 184, 0.16);
  --text: #eff4ff;
  --muted: #a6b3ca;
  --muted-strong: #cbd5e1;
  --primary: #5eead4;
  --primary-strong: #2dd4bf;
  --accent: #60a5fa;
  --danger: #fb7185;
  --warning: #fbbf24;
  --success: #34d399;
  --shadow: 0 24px 80px rgba(2, 8, 23, 0.45);
  --page-bg:
    radial-gradient(circle at top left, rgba(45, 212, 191, 0.16), transparent 30%),
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.18), transparent 28%),
    linear-gradient(180deg, #0b1020 0%, #101729 52%, #0a0f1a 100%);
  --input-bg: rgba(15, 23, 42, 0.72);
  --input-border: rgba(148, 163, 184, 0.22);
  --sidebar-bg: rgba(4, 10, 24, 0.74);
  --nav-hover-bg: rgba(30, 41, 59, 0.82);
  --nav-hover-border: rgba(148, 163, 184, 0.16);
  --button-secondary-bg: rgba(30, 41, 59, 0.92);
  --button-secondary-border: rgba(148, 163, 184, 0.12);
  --button-ghost-border: rgba(148, 163, 184, 0.16);
  --button-danger-bg: rgba(127, 29, 29, 0.68);
  --button-danger-text: #ffe4e6;
  --button-danger-border: rgba(251, 113, 133, 0.28);
  --icon-button-bg: rgba(15, 23, 42, 0.78);
  --icon-button-border: rgba(148, 163, 184, 0.18);
  --status-pill-bg: rgba(15, 23, 42, 0.8);
  --toast-bg: rgba(15, 23, 42, 0.96);
  --toast-border: rgba(148, 163, 184, 0.2);
  --transcript-chip-border: rgba(71, 85, 105, 0.92);
  --transcript-chip-bg: rgba(15, 23, 42, 0.92);
  --transcript-chip-color: #eff4ff;
  --transcript-chip-shadow: 0 1px 2px rgba(2, 8, 23, 0.22);
  --transcript-board-border: rgba(51, 65, 85, 0.9);
  --transcript-board-bg: linear-gradient(180deg, rgba(10, 15, 28, 0.98), rgba(8, 13, 24, 0.94));
  --transcript-board-shadow: 0 16px 36px rgba(2, 8, 23, 0.28);
  --transcript-empty-color: #94a3b8;
  --transcript-row-border: rgba(51, 65, 85, 0.82);
  --transcript-live-bg: linear-gradient(180deg, rgba(14, 24, 42, 0.98), rgba(10, 18, 34, 0.9));
  --transcript-meta-color: #94a3b8;
  --transcript-speaker-color: #cbd5e1;
  --transcript-sep-color: #64748b;
  --transcript-pending-color: #94a3b8;
  --transcript-source-color: #eff4ff;
  --transcript-target-color: #cbd5e1;
  --transcript-live-source-color: #ffffff;
  --radius: 24px;
  --radius-sm: 16px;
  --content-width: 1560px;
  --sidebar-width: 300px;
  --page-padding: clamp(1rem, 1vw + 0.75rem, 1.5rem);
  --font-small: 0.95rem;
  --font-medium: 1.04rem;
  --font-large: 1.18rem;
  --font-xlarge: 1.32rem;
}

body[data-theme='light'] {
  color-scheme: light;
  --bg: #eef4ff;
  --bg-elevated: rgba(255, 255, 255, 0.86);
  --bg-elevated-strong: rgba(255, 255, 255, 0.97);
  --panel-border: rgba(203, 213, 225, 0.9);
  --text: #0f172a;
  --muted: #64748b;
  --muted-strong: #334155;
  --primary: #14b8a6;
  --primary-strong: #0f766e;
  --accent: #2563eb;
  --shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
  --page-bg:
    radial-gradient(circle at top left, rgba(45, 212, 191, 0.1), transparent 32%),
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.12), transparent 30%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 48%, #e8edf5 100%);
  --input-bg: rgba(255, 255, 255, 0.96);
  --input-border: rgba(148, 163, 184, 0.24);
  --sidebar-bg: rgba(255, 255, 255, 0.88);
  --nav-hover-bg: rgba(241, 245, 249, 0.96);
  --nav-hover-border: rgba(203, 213, 225, 0.92);
  --button-secondary-bg: rgba(241, 245, 249, 0.96);
  --button-secondary-border: rgba(203, 213, 225, 0.92);
  --button-ghost-border: rgba(203, 213, 225, 0.88);
  --button-danger-bg: #fff1f2;
  --button-danger-text: #9f1239;
  --button-danger-border: rgba(251, 113, 133, 0.34);
  --icon-button-bg: rgba(255, 255, 255, 0.96);
  --icon-button-border: rgba(203, 213, 225, 0.88);
  --status-pill-bg: rgba(255, 255, 255, 0.94);
  --toast-bg: rgba(255, 255, 255, 0.98);
  --toast-border: rgba(203, 213, 225, 0.92);
  --transcript-chip-border: rgba(203, 213, 225, 0.95);
  --transcript-chip-bg: rgba(255, 255, 255, 0.94);
  --transcript-chip-color: #0f172a;
  --transcript-chip-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  --transcript-board-border: rgba(226, 232, 240, 0.9);
  --transcript-board-bg: rgba(255, 255, 255, 0.98);
  --transcript-board-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  --transcript-empty-color: #64748b;
  --transcript-row-border: rgba(226, 232, 240, 0.9);
  --transcript-live-bg: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.88));
  --transcript-meta-color: #94a3b8;
  --transcript-speaker-color: #64748b;
  --transcript-sep-color: #cbd5e1;
  --transcript-pending-color: #94a3b8;
  --transcript-source-color: #0f172a;
  --transcript-target-color: #334155;
  --transcript-live-source-color: #020617;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--page-bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
}

a {
  color: inherit;
}

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

button {
  cursor: pointer;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  border-radius: 14px;
  padding: 0.92rem 1rem;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(94, 234, 212, 0.8);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.16);
}

textarea {
  resize: vertical;
  min-height: 132px;
}

small {
  color: var(--muted);
  display: block;
  margin-top: 0.45rem;
}

strong {
  color: var(--text);
}

.hidden {
  display: none !important;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 1.25rem;
  border-right: 1px solid var(--panel-border);
  background: var(--sidebar-bg);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  z-index: 40;
}

.sidebar__header,
.topbar,
.panel,
.hero-card,
.meta-card,
.install-card,
.metric-card,
.draft-card,
.transcript-entry,
.history-card,
.note,
.note--soft {
  background: var(--bg-elevated);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.sidebar__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  padding: 1rem 1rem 0.75rem;
  border-radius: var(--radius-sm);
}

.sidebar__header h1 {
  margin: 0;
  line-height: 1.02;
}

.sidebar__nav {
  display: grid;
  gap: 0.5rem;
}

.nav-link {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: var(--nav-hover-bg);
  border-color: var(--nav-hover-border);
  transform: translateX(2px);
}

.sidebar__footer {
  margin-top: auto;
  display: grid;
  gap: 1rem;
}

.install-card,
.meta-card {
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.install-card__title,
.meta-card__title {
  margin: 0 0 0.35rem;
  font-weight: 700;
}

.install-card__body,
.meta-card__body,
.session-meta,
.history-card__meta,
.field small,
.note,
.status-line,
.checklist,
.storage-stats,
.draft-text,
.transcript-entry__time,
.transcript-entry__meta {
  color: var(--muted);
}

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.64);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 30;
}

.app-main {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 1rem;
  border-radius: 22px;
  padding: 0.95rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

body[data-route='live'] .topbar {
  position: relative;
  top: auto;
}

.topbar__left,
.topbar__right,
.session-summary__top,
.button-row,
.metrics-row,
.panel__header--spread,
.draft-card__header,
.history-card__header,
.history-card__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar__left > div {
  min-width: 0;
}

.topbar__title {
  margin: 0.15rem 0 0;
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
}

.page-stack {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto 2rem;
  padding: 0 0.25rem 2rem;
}

.page {
  display: none;
}

.page--active {
  display: block;
}

.hero-card,
.panel,
.note,
.note--soft,
.transcript-entry,
.history-card,
.metric-card,
.draft-card {
  border-radius: var(--radius);
}

.hero-card,
.panel,
.history-card,
.note,
.note--soft,
.transcript-entry,
.metric-card,
.draft-card {
  padding: 1.1rem;
}

.hero-card {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hero-card h2,
.panel h3,
.history-card h4,
.session-summary h3 {
  margin: 0;
}

.hero-copy,
.note,
.note--soft {
  line-height: 1.6;
}

.hero-card__badges,
.metrics-row,
.button-row--wrap,
.stack-list,
.history-list,
.storage-stats,
.transcript-list,
.checklist,
.summary-actions,
.draft-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tag,
.status-pill,
.draft-state {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  padding: 0.42rem 0.7rem;
  font-size: 0.85rem;
}

.tag {
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.74);
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.grid-live {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.live-main {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: start;
}

.live-main > .transcript-panel,
.live-main > .live-support-panel,
.live-main > .live-help-panel {
  grid-column: 1 / -1;
}

.live-main,
.live-side,
.side-panel,
.form-panel,
.tips-panel {
  display: grid;
  gap: 1rem;
}

.panel__header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--primary);
  margin: 0 0 0.3rem;
}

.field {
  display: grid;
  gap: 0.55rem;
}

.field--toggle {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.field--toggle input {
  width: auto;
  height: 1.2rem;
}

.compact-grid {
  gap: 0.8rem;
}

.inline-settings-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid var(--panel-border);
  background: var(--input-bg);
}

.inline-settings-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.inline-settings-card__title {
  margin: 0;
  font-size: 1rem;
}

.microphone-toggle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.8rem;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
}

.button {
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 0.82rem 1rem;
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible,
.icon-button:hover,
.icon-button:focus-visible {
  transform: translateY(-1px);
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.button--primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #04101d;
  font-weight: 700;
}

.button--secondary {
  background: var(--button-secondary-bg);
  color: var(--text);
  border-color: var(--button-secondary-border);
}

.button--ghost {
  background: transparent;
  color: var(--muted-strong);
  border-color: var(--button-ghost-border);
}

.button--danger {
  background: var(--button-danger-bg);
  color: var(--button-danger-text);
  border-color: var(--button-danger-border);
}

.button--small {
  padding: 0.62rem 0.82rem;
  font-size: 0.92rem;
}

.transcript-panel__header {
  align-items: center;
}

.transcript-export-actions {
  flex-wrap: nowrap;
  gap: 0.4rem;
  margin-left: auto;
}

.transcript-export-actions__button {
  flex: 0 1 auto;
  min-width: 0;
  padding-inline: 0.62rem;
  font-size: 0.84rem;
  line-height: 1.1;
  white-space: nowrap;
}

.button--block {
  width: 100%;
  justify-content: center;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--icon-button-border);
  background: var(--icon-button-bg);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.sidebar-close {
  display: none;
}

.summary-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.action-menu {
  position: relative;
}

.action-menu__summary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  list-style: none;
}

.action-menu__summary::marker,
.action-menu__summary::-webkit-details-marker {
  display: none;
}

.action-menu__summary::after {
  content: '▾';
  font-size: 0.72rem;
  opacity: 0.78;
}

.action-menu[open] > .action-menu__summary {
  border-color: rgba(96, 165, 250, 0.28);
  background: rgba(96, 165, 250, 0.08);
}

.action-menu__sheet {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  z-index: 80;
  display: grid;
  gap: 0.38rem;
  width: max-content;
  min-width: min(15rem, calc(100vw - 1.5rem));
  max-width: calc(100vw - 1rem);
  padding: 0.45rem;
  border-radius: 16px;
  border: 1px solid var(--panel-border);
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.42);
}

.action-menu--align-end > .action-menu__sheet {
  left: auto;
  right: 0;
}

.action-menu__item {
  width: 100%;
  justify-content: flex-start;
}

.metric-card {
  min-width: 130px;
  flex: 1 1 160px;
}

.metric-card__label {
  display: block;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.metric-card strong {
  font-size: 1.45rem;
}

.metric-card__meta {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.status-pill {
  font-weight: 700;
  text-transform: capitalize;
  background: var(--status-pill-bg);
}

.status-pill--idle,
.status-pill--stopped,
.status-pill--ended {
  color: var(--muted-strong);
}

.status-pill--connecting,
.status-pill--reconnecting {
  color: var(--warning);
  border-color: rgba(251, 191, 36, 0.28);
}

.status-pill--listening {
  color: var(--success);
  border-color: rgba(52, 211, 153, 0.28);
}

.status-pill--paused {
  color: #93c5fd;
  border-color: rgba(96, 165, 250, 0.28);
}

.status-pill--error {
  color: #fecdd3;
  border-color: rgba(251, 113, 133, 0.32);
}

.draft-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.draft-card {
  display: grid;
  gap: 0.85rem;
  min-height: 190px;
}

.draft-card__header {
  justify-content: space-between;
}

.draft-state {
  color: var(--muted-strong);
}

.draft-text {
  margin: 0;
  line-height: 1.65;
  white-space: pre-wrap;
  font-size: var(--font-medium);
}

.draft-carry {
  display: grid;
  gap: 0.45rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.draft-carry__label {
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.draft-text--carry {
  color: rgba(148, 163, 184, 0.92);
}

.speaker-summary {
  display: grid;
  gap: 0.75rem;
}

.speaker-progress {
  display: grid;
  gap: 0.55rem;
  padding: 0.9rem 0.95rem;
  border-radius: 18px;
  border: 1px solid rgba(94, 234, 212, 0.18);
  background: rgba(20, 184, 166, 0.08);
}

.speaker-progress__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.speaker-progress__meta {
  color: var(--muted);
  font-size: 0.84rem;
  text-align: right;
}

.speaker-progress__track {
  position: relative;
  height: 0.5rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.18);
}

.speaker-progress__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  box-shadow: 0 0 18px rgba(96, 165, 250, 0.3);
  transition: width 220ms ease;
}

.speaker-progress--indeterminate .speaker-progress__fill {
  animation: speaker-progress-slide 1.15s ease-in-out infinite;
}

.speaker-progress__note {
  margin-top: 0;
}

@keyframes speaker-progress-slide {
  0% {
    transform: translateX(-115%);
  }

  100% {
    transform: translateX(250%);
  }
}

.speaker-total {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 0.75rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(96, 165, 250, 0.2);
  background: rgba(37, 99, 235, 0.12);
}

.speaker-total strong {
  grid-column: 1 / 2;
}

.speaker-total span {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  font-weight: 700;
  color: var(--text);
}

.speaker-total small {
  color: var(--muted);
}

.speaker-total--manual {
  border-color: rgba(94, 234, 212, 0.18);
  background: rgba(20, 184, 166, 0.1);
}

.speaker-total--manual-window {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(51, 65, 85, 0.24);
}

.speaker-timing-summary {
  display: grid;
  gap: 0.7rem;
}

.speaker-timing-summary__totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.speaker-timing-summary__total {
  display: grid;
  gap: 0.2rem;
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.42);
}

.speaker-timing-summary__total span {
  color: var(--muted);
  font-size: 0.8rem;
}

.speaker-timing-summary__total strong {
  color: var(--text);
  font-size: 1rem;
}

.speaker-timing-summary__total--manual {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(51, 65, 85, 0.24);
}

.speaker-timing-summary__total--auto {
  border-color: rgba(94, 234, 212, 0.18);
  background: rgba(20, 184, 166, 0.1);
}


.speaker-timing-summary__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.speaker-timing-summary__table {
  display: grid;
  gap: 0.45rem;
  min-width: 344px;
}

.speaker-timing-summary__head,
.speaker-timing-summary__row,
.speaker-timing-summary__foot {
  display: grid;
  grid-template-columns: minmax(56px, 0.8fr) minmax(48px, 0.64fr) repeat(2, minmax(62px, 0.78fr));
  gap: 0.45rem;
  align-items: center;
}

.speaker-timing-summary__head {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0 0.2rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.speaker-timing-summary__row {
  padding: 0.68rem 0.72rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.52);
}

.speaker-timing-summary__foot {
  padding: 0.75rem 0.72rem 0.05rem;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  color: var(--text);
  font-weight: 700;
}

.speaker-timing-summary__speaker {
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.speaker-timing-summary__speaker strong {
  color: var(--text);
}

.speaker-timing-summary__part,
.speaker-timing-summary__note {
  color: var(--muted);
}

.speaker-timing-summary__row span,
.speaker-timing-summary__foot span {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.speaker-timing-summary__part {
  text-align: left;
}

.speaker-timing-summary__speaker:hover strong,
.speaker-timing-summary__speaker:focus-visible strong {
  color: var(--primary-soft);
}

.speaker-details-disclosure {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  padding-top: 0.7rem;
}

.speaker-details-disclosure summary {
  cursor: pointer;
  color: var(--muted-strong);
  font-weight: 600;
}

.speaker-details-disclosure__body {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.7rem;
}

.live-support-panel,
.live-help-panel {
  padding: 0;
  overflow: hidden;
}

.live-disclosure,
.live-help-disclosure {
  display: grid;
  gap: 0;
}

.live-disclosure__summary,
.live-help-disclosure__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.95rem 1rem;
  cursor: pointer;
  list-style: none;
}

.live-disclosure__summary::marker,
.live-disclosure__summary::-webkit-details-marker,
.live-help-disclosure__summary::marker,
.live-help-disclosure__summary::-webkit-details-marker {
  display: none;
}

.live-disclosure__summary::after,
.live-help-disclosure__summary::after {
  content: '▸';
  color: var(--muted-strong);
  font-weight: 700;
  flex: 0 0 auto;
}

.live-disclosure[open] > .live-disclosure__summary::after,
.live-help-disclosure[open] > .live-help-disclosure__summary::after {
  content: '▾';
}

.live-disclosure__summary .eyebrow {
  margin-bottom: 0.16rem;
}

.live-disclosure__body {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--panel-border);
}

.live-disclosure__body > .speaker-summary {
  padding: 1rem;
}

.live-help-disclosure__summary {
  color: var(--muted-strong);
  font-weight: 600;
}

.live-help-disclosure__body {
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--panel-border);
}

.speaker-slot-summary {
  display: grid;
  gap: 0.65rem;
}

.speaker-slot-summary__card {
  display: grid;
  gap: 0.45rem;
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.42);
}

.speaker-slot-summary__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.speaker-slot-summary__card small,
.speaker-slot-row__meta small {
  color: var(--muted);
}

.speaker-slot-summary__chips,
.speaker-slot-list {
  display: grid;
  gap: 0.5rem;
}

.speaker-slot-summary__chip,
.speaker-slot-row__play {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
  max-width: 100%;
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.18);
  background: rgba(30, 41, 59, 0.68);
  color: var(--primary-soft);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.speaker-slot-summary__chip:hover,
.speaker-slot-summary__chip:focus-visible,
.speaker-slot-row__play:hover,
.speaker-slot-row__play:focus-visible {
  border-color: rgba(96, 165, 250, 0.32);
  background: rgba(37, 99, 235, 0.12);
}

.speaker-slot-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.6rem 0.7rem;
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.54);
}

.speaker-slot-row__play {
  padding: 0;
  border: 0;
  background: transparent;
}

.speaker-slot-row__meta {
  display: grid;
  justify-items: end;
  gap: 0.15rem;
  min-width: 0;
  text-align: right;
}

.speaker-slot-row__meta strong {
  color: var(--text);
}

.speaker-stat {
  display: grid;
  gap: 0.7rem;
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.52);
}

.speaker-stat--expanded {
  border-color: rgba(96, 165, 250, 0.26);
}

.speaker-stat--playing {
  border-color: rgba(96, 165, 250, 0.34);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.12);
}

.speaker-stat__top-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: start;
}

.speaker-stat__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.speaker-stat__icon-button {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  font-size: 1rem;
}

.speaker-stat__icon-button--active {
  border-color: rgba(96, 165, 250, 0.44);
  background: rgba(59, 130, 246, 0.2);
}

.speaker-stat__toggle {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: start;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.speaker-stat__content {
  min-width: 0;
}

.speaker-stat__header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.speaker-stat__header-row strong {
  min-width: 0;
}

.speaker-stat small {
  color: var(--muted);
}

.speaker-stat__toggle-side {
  display: grid;
  justify-items: end;
  gap: 0.3rem;
}

.speaker-stat__duration {
  font-weight: 700;
  color: var(--text);
}

.speaker-stat__chevron {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1;
}

.speaker-stat small {
  display: block;
}

.speaker-stat__details {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  padding-top: 0.8rem;
}

.speaker-stat__details-empty {
  color: var(--muted);
  font-size: 0.92rem;
}

.speaker-stat__details-list {
  display: grid;
  gap: 0.75rem;
  max-height: 280px;
  overflow: auto;
  padding-right: 0.15rem;
}

.speaker-detail-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
}

.speaker-detail-row__time {
  color: var(--primary-soft);
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
  padding-top: 0.1rem;
}

.speaker-detail-row__time-button {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.speaker-detail-row__copy {
  display: grid;
  gap: 0.3rem;
}

.speaker-detail-row__copy p {
  margin: 0;
}

.speaker-detail-row__source {
  color: var(--text);
}

.speaker-detail-row__target {
  color: var(--muted);
  font-size: 0.92rem;
}

.transcript-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.transcript-view-switch {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.25rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.74);
}

.transcript-view-button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted-strong);
  padding: 0.52rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.transcript-view-button:hover,
.transcript-view-button:focus-visible {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(30, 41, 59, 0.72);
}

.transcript-view-button.is-active {
  border-color: rgba(96, 165, 250, 0.22);
  background: rgba(96, 165, 250, 0.18);
  color: var(--text);
}

.transcript-toolbar__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.control-secondary-actions {
  margin: 0.75rem 0 0;
}

.transcript-live-state {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.52rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(94, 234, 212, 0.18);
  background: rgba(20, 184, 166, 0.12);
  color: var(--muted-strong);
  font-size: 0.88rem;
}

.transcript-board {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, rgba(8, 13, 22, 0.96), rgba(15, 23, 42, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.transcript-board__mode-note {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  max-width: 62ch;
}

.transcript-live-band {
  --reader-slot-side-height: 4.5rem;
  --reader-slot-current-height: 14.5rem;
  padding: 0.9rem 1rem 1rem;
  border-radius: 24px;
  border: 1px solid rgba(96, 165, 250, 0.2);
  background: linear-gradient(180deg, rgba(12, 36, 63, 0.96), rgba(10, 22, 38, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.transcript-window {
  display: grid;
  gap: 0.75rem;
  grid-template-rows: var(--reader-slot-side-height) var(--reader-slot-current-height) var(--reader-slot-side-height);
}

.transcript-window__slot {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.55rem;
  padding: 0.75rem 0.95rem;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(8, 14, 27, 0.58);
}

.transcript-window__slot--previous {
  opacity: 0.72;
  background: rgba(8, 14, 27, 0.46);
}

.transcript-window__slot--current {
  padding: 0.65rem 0.9rem 0.75rem;
  border-color: rgba(94, 234, 212, 0.26);
  background: linear-gradient(180deg, rgba(16, 32, 55, 0.98), rgba(9, 19, 35, 0.94));
  box-shadow: 0 18px 48px rgba(2, 8, 23, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.transcript-window__slot--preview {
  border-style: dashed;
  border-color: rgba(125, 211, 252, 0.24);
  background: rgba(7, 18, 33, 0.52);
}

.transcript-window__slot--empty {
  border-color: rgba(148, 163, 184, 0.14);
  background: rgba(8, 14, 27, 0.34);
}

.transcript-window__slot-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.55rem;
}

.transcript-window__slot-copy {
  min-width: 0;
  display: grid;
  gap: 0.1rem;
}

.transcript-window__eyebrow {
  margin: 0;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted-strong);
}

.transcript-window__title {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.32;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.transcript-window__slot-head .transcript-pair__meta {
  min-width: 0;
  flex: 0 1 auto;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
}

.transcript-window__placeholder {
  margin: 0;
  line-height: 1.5;
  color: var(--muted);
}

.transcript-window__compact-line {
  margin: 0;
  align-self: end;
  color: var(--text);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.transcript-window__body {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 0.55rem 1rem;
  overflow: hidden;
}

.transcript-window__pending-note {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--muted);
}

.transcript-window__body--both {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.transcript-window__body--single {
  grid-template-columns: minmax(0, 1fr);
}

.transcript-window__slot--previous,
.transcript-window__slot--preview {
  grid-template-rows: auto minmax(0, 1fr);
}

.transcript-window__slot--current .transcript-paragraph__text {
  line-height: 1.7;
}

.transcript-window__slot--previous .transcript-paragraph,
.transcript-window__slot--preview .transcript-paragraph,
.transcript-window__slot--current .transcript-paragraph {
  min-height: 0;
}

.transcript-window__slot--previous .transcript-paragraph__text,
.transcript-window__slot--preview .transcript-paragraph__text,
.transcript-window__slot--current .transcript-paragraph__text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.transcript-window__slot--previous .transcript-paragraph__text,
.transcript-window__slot--preview .transcript-paragraph__text {
  -webkit-line-clamp: 1;
}

.transcript-window__slot--current .transcript-paragraph__text {
  -webkit-line-clamp: 3;
}

.transcript-history-sheet {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  background: rgba(5, 10, 20, 0.42);
  overflow: hidden;
}

.transcript-history-sheet[open] {
  background: rgba(5, 10, 20, 0.56);
}

.transcript-history-sheet__summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  cursor: pointer;
  color: var(--muted-strong);
}

.transcript-history-sheet__summary::-webkit-details-marker {
  display: none;
}

.transcript-history-sheet__meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.transcript-history-sheet .transcript-list {
  height: min(24rem, 42vh);
  min-height: 14rem;
  border: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 0;
  background: transparent;
}

.transcript-board__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
  padding: 0.1rem 0.35rem 0;
}

.transcript-board__column-label,
.transcript-paragraph__label,
.transcript-live-band__label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.transcript-board__column-label {
  color: var(--muted-strong);
}

.transcript-board__column-label--source,
.transcript-paragraph--source .transcript-paragraph__label,
.transcript-live-band__paragraph--source .transcript-live-band__label {
  color: #7dd3fc;
}

.transcript-board__column-label--target,
.transcript-paragraph--target .transcript-paragraph__label,
.transcript-live-band__paragraph--target .transcript-live-band__label {
  color: #d8b4fe;
}

.transcript-list {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 1rem;
  height: min(58vh, 880px);
  min-height: 20rem;
  overflow: auto;
  padding: 1rem;
  scroll-behavior: auto;
  scrollbar-gutter: stable both-edges;
  overscroll-behavior: contain;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 24px;
  background: rgba(2, 6, 23, 0.28);
}

.transcript-empty {
  padding: 0.8rem 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 46ch;
}

.transcript-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem 1.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.transcript-pair:first-child {
  padding-top: 0.2rem;
  border-top-color: transparent;
}

.transcript-pair--live {
  padding: 1rem;
  border-top-color: transparent;
  border-radius: 20px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  background: linear-gradient(180deg, rgba(12, 36, 63, 0.48), rgba(8, 16, 31, 0.28));
}

.transcript-pair__meta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  min-width: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
}

.transcript-pair__speaker {
  font-weight: 700;
  color: var(--text);
}

.transcript-pair__time {
  color: var(--muted-strong);
}

.transcript-pair__divider {
  color: rgba(148, 163, 184, 0.6);
}

.transcript-pair__aux {
  color: var(--muted);
}

.transcript-paragraph {
  min-width: 0;
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.transcript-paragraph__text,
.transcript-live-band__text {
  margin: 0;
  line-height: 1.72;
  white-space: pre-wrap;
  color: var(--text);
}

.transcript-paragraph__text {
  max-width: 34ch;
}

.transcript-board--both .transcript-paragraph__text {
  max-width: 30ch;
}

.transcript-board--source .transcript-paragraph__text,
.transcript-board--target .transcript-paragraph__text {
  max-width: 42ch;
}

.transcript-paragraph__text--pending,
.transcript-live-band__text--pending {
  color: rgba(148, 163, 184, 0.92);
  font-style: italic;
}

.transcript-live-band--idle {
  border-color: rgba(148, 163, 184, 0.14);
  background: linear-gradient(180deg, rgba(20, 28, 43, 0.94), rgba(12, 18, 30, 0.9));
}

.transcript-live-band__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.transcript-live-band__meta-group {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.transcript-live-band__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.68rem;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.14);
  border: 1px solid rgba(125, 211, 252, 0.18);
  color: #dbeafe;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.transcript-live-band__timestamp {
  font-size: 0.82rem;
  color: var(--muted-strong);
}

.transcript-live-band__state {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
  max-width: 48ch;
}

.transcript-live-band__body {
  display: grid;
  gap: 1rem 1.25rem;
}

.transcript-live-band__body--both {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.transcript-live-band__body--single {
  grid-template-columns: minmax(0, 1fr);
}

.transcript-live-band__paragraph {
  min-width: 0;
  display: grid;
  gap: 0.45rem;
}

.transcript-live-band__text {
  min-height: clamp(6.2rem, 11vw, 8.6rem);
  max-height: clamp(6.2rem, 15vw, 9.4rem);
  overflow: auto;
  padding-right: 0.35rem;
}

.transcript-live-band__text--active {
  color: rgba(248, 250, 252, 0.96);
}

.transcript-live-band__text--held {
  color: rgba(226, 232, 240, 0.8);
}

.transcript-live-band__placeholder {
  margin: 0;
  line-height: 1.65;
  color: var(--muted);
  max-width: 48ch;
}

.transcript-board--source .transcript-board__head,
.transcript-board--target .transcript-board__head {
  display: none;
}

.transcript-board--source .transcript-pair,
.transcript-board--target .transcript-pair {
  grid-template-columns: minmax(0, 1fr);
}

.transcript-board--source .transcript-paragraph--target,
.transcript-board--target .transcript-paragraph--source {
  display: none;
}

.text-size-small .transcript-paragraph__text,
.text-size-small .transcript-live-band__text,
.text-size-small .draft-text {
  font-size: var(--font-small);
}

.text-size-medium .transcript-paragraph__text,
.text-size-medium .transcript-live-band__text,
.text-size-medium .draft-text {
  font-size: var(--font-medium);
}

.text-size-large .transcript-paragraph__text,
.text-size-large .transcript-live-band__text,
.text-size-large .draft-text {
  font-size: var(--font-large);
}

.text-size-xlarge .transcript-paragraph__text,
.text-size-xlarge .transcript-live-band__text,
.text-size-xlarge .draft-text {
  font-size: var(--font-xlarge);
}

.checklist {
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.7;
  flex-direction: column;
}

.compact-list {
  gap: 0.35rem;
}

.note,
.note--soft {
  padding: 1rem;
  line-height: 1.7;
}

.note--soft {
  background: rgba(30, 41, 59, 0.68);
}

.history-list {
  flex-direction: column;
}

.history-card {
  display: grid;
  gap: 0.9rem;
}

.history-card__header {
  justify-content: space-between;
  align-items: start;
}

.history-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.92rem;
}

.history-card__actions {
  flex-wrap: wrap;
}

.stack-list {
  flex-direction: column;
}

.storage-stats {
  flex-direction: column;
  margin-bottom: 1rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%) translateY(16px);
  min-width: 240px;
  max-width: min(92vw, 680px);
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: var(--toast-bg);
  border: 1px solid var(--toast-border);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 60;
}

.toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 1180px) {
  .live-main {
    grid-template-columns: 1fr;
  }

  .live-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: 0;
    width: min(90vw, var(--sidebar-width));
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

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

  .sidebar-close {
    display: inline-flex;
  }

  .backdrop--visible {
    opacity: 1;
    pointer-events: auto;
  }

  .page-stack {
    width: min(calc(100% - 1rem), var(--content-width));
  }

  .grid-two,
  .draft-grid,
  .live-side {
    grid-template-columns: 1fr;
  }

  .transcript-board__head {
    gap: 0.9rem;
  }

  .transcript-pair,
  .transcript-live-band__body--both,
  .transcript-window__body--both {
    gap: 0.75rem 1rem;
  }
}

@media (max-width: 720px) {
  .transcript-live-band {
    --reader-slot-side-height: 4.1rem;
    --reader-slot-current-height: 15.25rem;
  }

  .sidebar {
    padding: 0.85rem;
    gap: 0.85rem;
  }

  .sidebar__header {
    padding: 0.78rem 0.85rem 0.68rem;
  }

  .sidebar__header h1 {
    font-size: clamp(1.9rem, 8vw, 2.25rem);
  }

  .nav-link {
    padding: 0.82rem 0.9rem;
  }

  .install-card,
  .meta-card {
    padding: 0.85rem;
  }

  .topbar {
    margin: 0.5rem;
    padding: 0.62rem 0.72rem;
    border-radius: 18px;
    gap: 0.45rem;
  }

  .topbar__title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.1;
  }

  .topbar .eyebrow {
    margin-bottom: 0.12rem;
    font-size: 0.64rem;
    letter-spacing: 0.12em;
  }

  .status-pill {
    padding: 0.3rem 0.58rem;
    font-size: 0.78rem;
  }

  .page-stack {
    width: min(calc(100% - 0.6rem), var(--content-width));
    padding: 0 0.1rem 1.25rem;
  }

  .button-row,
  .panel__header--spread,
  .session-summary__top,
  .history-card__header,
  .history-card__actions,
  .topbar,
  .topbar__left,
  .topbar__right {
    flex-wrap: wrap;
  }

  .transcript-panel__header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .transcript-panel__header > :first-child {
    min-width: 0;
    width: 100%;
  }

  .transcript-export-actions {
    flex-wrap: nowrap;
    width: 100%;
    min-width: 0;
    flex: 0 0 auto;
    justify-content: flex-start;
    margin-left: 0;
    gap: 0.35rem;
  }

  .transcript-export-actions__button {
    flex: 0 1 auto;
    min-width: 0;
    padding-inline: 0.5rem;
    font-size: 0.78rem;
  }

  .action-menu__sheet {
    min-width: min(14rem, calc(100vw - 1.5rem));
    max-width: calc(100vw - 1rem);
  }

  .transcript-export-actions .action-menu--align-end > .action-menu__sheet {
    left: 0;
    right: auto;
  }

  .button,
  .icon-button {
    width: auto;
  }

  .icon-button {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .transcript-toolbar {
    align-items: stretch;
  }

  .transcript-view-switch {
    width: 100%;
  }

  .transcript-view-button {
    flex: 1 1 0;
  }

  .transcript-toolbar__meta {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  .transcript-board {
    padding: 0.85rem;
  }

  .transcript-board__head {
    display: none;
  }

  .transcript-list {
    height: min(54vh, 720px);
    min-height: 18rem;
    padding: 0.9rem;
  }

  .transcript-pair,
  .transcript-live-band__body--both,
  .transcript-window__body--both {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .transcript-window__slot-head,
  .transcript-history-sheet__summary {
    flex-wrap: wrap;
  }

  .transcript-pair__meta {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
  }

  .transcript-window__slot--current .transcript-paragraph__text {
    -webkit-line-clamp: 4;
  }

  .transcript-window__slot--previous .transcript-paragraph__text,
  .transcript-window__slot--preview .transcript-paragraph__text {
    -webkit-line-clamp: 1;
  }

  .transcript-paragraph__text,
  .transcript-live-band__text,
  .transcript-board--both .transcript-paragraph__text,
  .transcript-board--source .transcript-paragraph__text,
  .transcript-board--target .transcript-paragraph__text {
    max-width: none;
  }

  .button-row > .button {
    flex: 1 1 180px;
  }

  .input-row {
    grid-template-columns: 1fr;
  }

  .session-summary {
    padding: 0.85rem;
  }

  .session-summary__top {
    gap: 0.55rem;
  }

  .session-summary h3 {
    font-size: 1rem;
    line-height: 1.18;
  }

  .session-meta {
    font-size: 0.84rem;
    line-height: 1.35;
  }

  .summary-actions {
    gap: 0.45rem;
  }

  .summary-actions .button {
    padding: 0.5rem 0.72rem;
    font-size: 0.8rem;
  }

  .metrics-row {
    gap: 0.5rem;
  }

  .metric-card {
    min-width: 0;
    flex: 1 1 0;
    padding: 0.78rem 0.82rem;
  }

  .metric-card strong {
    font-size: 1.2rem;
  }

  .metric-card__label {
    margin-bottom: 0.25rem;
    font-size: 0.78rem;
  }

  .metric-card__meta {
    margin-top: 0.22rem;
    font-size: 0.74rem;
    line-height: 1.25;
  }
}

/* Benchmark-style live transcript feed */
.transcript-toolbar {
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.transcript-toolbar__meta {
  gap: 0.6rem;
}

.transcript-live-state {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.84rem;
}

.transcript-board {
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--transcript-board-border);
  background: var(--transcript-board-bg);
  box-shadow: var(--transcript-board-shadow);
}

.transcript-list {
  gap: 0;
  height: min(62vh, 920px);
  min-height: 22rem;
  padding: 0.35rem 0;
  border: 0;
  border-radius: 28px;
  background: transparent;
}

.transcript-empty {
  padding: 1.25rem 1.35rem 1.5rem;
  color: var(--transcript-empty-color);
  line-height: 1.65;
  max-width: 40ch;
}

.transcript-pair {
  grid-template-columns: minmax(0, 1fr);
  gap: 0.55rem;
  padding: 0.95rem 1.15rem 1rem;
  border-top: 1px solid var(--transcript-row-border);
}

.transcript-pair:first-child {
  padding-top: 1rem;
}

.transcript-pair--live {
  border-top-color: var(--transcript-row-border);
  background: var(--transcript-live-bg);
}

.transcript-pair--playing {
  background: rgba(96, 165, 250, 0.14);
  box-shadow: inset 3px 0 0 rgba(94, 234, 212, 0.92);
}

.transcript-pair__meta--feed {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  grid-column: auto;
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--transcript-meta-color);
}

.transcript-pair__speaker-name {
  font-weight: 600;
  color: var(--transcript-speaker-color);
}

.transcript-pair__meta-sep {
  color: var(--transcript-sep-color);
}

.transcript-pair__meta--feed .transcript-pair__time {
  color: var(--transcript-meta-color);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.transcript-pair__speaker,
.transcript-pair__divider,
.transcript-pair__aux {
  display: none;
}

.transcript-pair__pending-note {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--transcript-pending-color);
}

.transcript-paragraph {
  gap: 0.2rem;
}

.transcript-paragraph__label {
  display: none;
}

.transcript-paragraph__text {
  max-width: none;
  line-height: 1.72;
  color: var(--transcript-source-color);
}

.transcript-paragraph--source .transcript-paragraph__text {
  color: var(--transcript-source-color);
}

.transcript-paragraph--target .transcript-paragraph__text {
  color: var(--transcript-target-color);
}

.transcript-pair--live .transcript-paragraph--source .transcript-paragraph__text {
  color: var(--transcript-live-source-color);
  font-weight: 500;
}

.review-audio-panel,
.speaker-change-dock {
  border-top: 1px solid var(--transcript-row-border);
  padding: 0.9rem 1rem 1rem;
  background: rgba(2, 6, 23, 0.22);
}

.review-audio-panel {
  display: grid;
  gap: 0.8rem;
}

.review-audio-transport-dock {
  display: grid;
}

.review-audio-transport {
  display: grid;
  gap: 0.75rem;
}

.review-audio-transport__controls {
  display: grid;
  grid-template-columns: auto auto repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.review-audio-transport__controls .button {
  min-height: 44px;
}

.review-audio-transport__play-toggle {
  min-width: 3.35rem;
  padding-inline: 0.95rem;
  font-size: 1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.review-audio-transport__stop-button {
  min-width: 4rem;
  padding-inline: 0.9rem;
  font-weight: 700;
}

.review-audio-transport__play-toggle[data-state='pause'] {
  background: rgba(96, 165, 250, 0.16);
  border-color: rgba(96, 165, 250, 0.32);
  color: var(--primary-soft);
}

.review-audio-panel__top,
.speaker-change-dock__top,
.speaker-change-marker-row,
.speaker-change-marker-headings {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.review-audio-panel__copy,
.speaker-change-dock__copy,
.speaker-change-dock__timer-wrap {
  display: grid;
  gap: 0.15rem;
}

.review-audio-panel__copy span,
.speaker-change-dock__copy span,
.speaker-change-dock__speaker-label,
.speaker-change-marker-empty,
.speaker-change-dock__timer-wrap small {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.review-audio-panel audio {
  width: 100%;
}

.review-audio-transport__timeline {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
}

.review-audio-transport__time {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.review-audio-transport__slider {
  --range-progress: 0%;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  height: 1.2rem;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
}

.review-audio-transport__slider::-webkit-slider-runnable-track {
  height: 0.42rem;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--primary-soft) 0%,
    var(--primary-soft) var(--range-progress),
    rgba(148, 163, 184, 0.28) var(--range-progress),
    rgba(148, 163, 184, 0.28) 100%
  );
}

.review-audio-transport__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1rem;
  height: 1rem;
  margin-top: -0.29rem;
  border: 2px solid var(--primary-soft);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(2, 6, 23, 0.32);
}

.review-audio-transport__slider::-moz-range-track {
  height: 0.42rem;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.28);
}

.review-audio-transport__slider::-moz-range-progress {
  height: 0.42rem;
  border-radius: 999px;
  background: var(--primary-soft);
}

.review-audio-transport__slider::-moz-range-thumb {
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--primary-soft);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(2, 6, 23, 0.32);
}

.review-audio-transport__slider:disabled {
  opacity: 0.58;
}

.review-audio-transport--floating {
  position: fixed;
  left: 50%;
  bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  z-index: 18;
  width: min(calc(100vw - 1.5rem), 42rem);
  padding: 0.85rem 0.9rem;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.94);
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.38);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

body[data-review-audio-floating='true'][data-route='live'] .live-main {
  padding-bottom: calc(8.5rem + env(safe-area-inset-bottom, 0px));
}

body[data-review-audio-floating='true'][data-route='live'] .transcript-list {
  scroll-padding-bottom: 8rem;
}

.speaker-change-dock {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin-top: 0.85rem;
  border: 1px solid var(--transcript-row-border);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  backdrop-filter: blur(16px);
  box-shadow: 0 -14px 32px rgba(2, 6, 23, 0.22);
  display: grid;
  gap: 0.8rem;
}

.speaker-change-dock__top {
  align-items: start;
}

.speaker-change-dock__timer-wrap {
  justify-items: end;
  text-align: right;
}

.speaker-change-dock__timer {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.speaker-change-dock__meter {
  display: grid;
  gap: 0.25rem;
  padding: 0.45rem 0.6rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(8, 14, 27, 0.46);
}

.speaker-change-dock__meter-channel {
  color: var(--muted-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.speaker-change-dock__meter-db {
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.speaker-change-dock__meter-bars {
  display: grid;
  gap: 0.28rem;
}

.speaker-change-dock__meter-row {
  display: grid;
  grid-template-columns: 1.2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.45rem;
}

.speaker-change-dock__meter-track {
  position: relative;
  height: 0.42rem;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.88);
  box-shadow: inset 0 1px 2px rgba(2, 6, 23, 0.35);
}

.speaker-change-dock__meter-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e 0%, #22c55e 68%, #facc15 84%, #ef4444 100%);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.18);
  transition: width 80ms linear;
}

.speaker-change-dock__speaker-row {
  display: grid;
  gap: 0.45rem;
}

.speaker-change-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.speaker-change-chip {
  min-height: 40px;
  padding: 0.48rem 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(30, 41, 59, 0.64);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
}

.speaker-change-chip--active {
  border-color: rgba(94, 234, 212, 0.38);
  background: rgba(20, 184, 166, 0.16);
  color: var(--primary-soft);
}

.speaker-change-chip:disabled {
  opacity: 0.5;
}

.speaker-change-dock__speaker-note {
  min-height: 1.1rem;
  color: var(--text-soft);
  font-size: 0.78rem;
}

.speaker-change-dock__speaker-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
}

.speaker-change-dock__speaker-add-row .input {
  min-width: 0;
}

.speaker-change-dock__speaker-add-row .button {
  min-width: 4.4rem;
}

.speaker-change-dock__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.speaker-change-action {
  min-height: 58px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
}

.speaker-change-action--mark,
.speaker-change-action--reset {
  background: rgba(71, 85, 105, 0.34);
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.18);
}

.speaker-change-action--pause {
  background: rgba(245, 158, 11, 0.18);
  color: var(--text);
  border-color: rgba(245, 158, 11, 0.35);
}

.speaker-change-action--resume {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.96), rgba(139, 92, 246, 0.96));
  color: #fff;
  border-color: rgba(129, 140, 248, 0.38);
}

.speaker-change-markers {
  display: grid;
  gap: 0.45rem;
  max-height: 11rem;
  overflow: auto;
}

.speaker-change-marker-headings {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0 0.1rem 0.35rem;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0));
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.speaker-change-marker-headings span,
.speaker-change-marker-row span,
.speaker-change-marker-row__overall {
  flex: 1;
  min-width: 0;
}

.speaker-change-marker-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 0.9fr);
  align-items: center;
  padding: 0.18rem 0.1rem;
}

.speaker-change-marker-row--editing {
  background: rgba(15, 23, 42, 0.16);
  border-radius: 14px;
  padding: 0.6rem 0.75rem;
}

.speaker-change-marker-row__speaker-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.speaker-change-marker-row__speaker {
  color: var(--text);
  font-weight: 600;
}

.speaker-change-marker-row__speaker-chevron {
  color: var(--muted);
  font-size: 0.82rem;
}

.speaker-change-marker-row span {
  color: var(--muted);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.speaker-change-marker-row__split {
  text-align: center;
}

.speaker-change-marker-row__split--start {
  color: var(--primary-soft);
  font-weight: 700;
}

.speaker-change-marker-row__overall {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary-soft);
  font-weight: 700;
  font-size: 0.82rem;
  text-align: right;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}

.speaker-change-marker-row__editor {
  grid-column: 1 / -1;
  margin-top: 0.55rem;
}

.speaker-change-marker-row__editor-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.speaker-change-marker-row__editor-option {
  min-height: 38px;
  padding: 0.45rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(30, 41, 59, 0.64);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.speaker-change-marker-row__editor-option--active {
  border-color: rgba(94, 234, 212, 0.38);
  background: rgba(20, 184, 166, 0.16);
  color: var(--primary-soft);
}

@media (max-width: 720px) {
  .transcript-toolbar {
    align-items: flex-start;
  }

  .transcript-toolbar__meta {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  .transcript-list {
    height: min(60vh, 760px);
    min-height: 20rem;
  }

  .transcript-pair {
    padding: 0.85rem 0.95rem 0.95rem;
    gap: 0.45rem;
  }

  .review-audio-panel__top,
  .speaker-change-dock__top,
  .speaker-change-marker-row {
    flex-wrap: wrap;
  }

  .speaker-timing-summary__table {
    min-width: 320px;
  }

  .speaker-timing-summary__head,
  .speaker-timing-summary__row,
  .speaker-timing-summary__foot {
    grid-template-columns: minmax(44px, 0.72fr) minmax(44px, 0.58fr) repeat(2, minmax(56px, 0.8fr));
    gap: 0.4rem;
  }

  .speaker-timing-summary__head {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
  }

  .speaker-timing-summary__row,
  .speaker-timing-summary__foot {
    font-size: 0.8rem;
  }

  .review-audio-transport__controls {
    gap: 0.45rem;
  }

  .review-audio-transport__timeline {
    gap: 0.45rem;
  }

  .review-audio-transport__time {
    font-size: 0.76rem;
  }

  .speaker-change-dock__meter {
    padding: 0.4rem 0.5rem;
  }

  .speaker-change-dock__meter-row {
    grid-template-columns: 1rem minmax(0, 1fr) auto;
    gap: 0.38rem;
  }

  .speaker-change-dock__meter-track {
    height: 0.38rem;
  }

  .speaker-change-marker-headings {
    display: none;
  }

  .speaker-change-marker-row {
    grid-template-columns: minmax(0, 1.1fr) repeat(2, minmax(0, 0.9fr));
    gap: 0.55rem;
  }

  .speaker-change-dock {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }
}

/* Live route polish toward the benchmark app */
body[data-theme='light'][data-route='live'] {
  color: #0f172a;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 48%, #e8edf5 100%);
}

body[data-theme='light'][data-route='live'] .topbar {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  padding: 0.88rem 1rem;
}

body[data-theme='light'][data-route='live'] .topbar__title,
body[data-theme='light'][data-route='live'] .status-line,
body[data-theme='light'][data-route='live'] .session-summary h3,
body[data-theme='light'][data-route='live'] .panel h3,
body[data-theme='light'][data-route='live'] strong,
body[data-theme='light'][data-route='live'] .metric-card strong {
  color: #0f172a;
}

body[data-theme='light'][data-route='live'] .topbar .eyebrow,
body[data-theme='light'][data-route='live'] .session-meta,
body[data-theme='light'][data-route='live'] .metric-card__label,
body[data-theme='light'][data-route='live'] .status-line,
body[data-theme='light'][data-route='live'] small,
body[data-theme='light'][data-route='live'] .speaker-stat small,
body[data-theme='light'][data-route='live'] .note,
body[data-theme='light'][data-route='live'] .checklist,
body[data-theme='light'][data-route='live'] .meta-card__body {
  color: #64748b;
}

body[data-theme='light'][data-route='live'] .status-pill {
  border-color: rgba(203, 213, 225, 0.95);
  background: rgba(255, 255, 255, 0.96);
  color: #475569;
}

body[data-theme='light'][data-route='live'] .session-summary,
body[data-theme='light'][data-route='live'] .controls-panel,
body[data-theme='light'][data-route='live'] .transcript-panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body[data-theme='light'][data-route='live'] .controls-panel > .panel__header,
body[data-theme='light'][data-route='live'] .transcript-panel > .panel__header {
  display: none;
}

body[data-theme='light'][data-route='live'] .live-main {
  gap: 0.8rem;
}

body[data-theme='light'][data-route='live'] .summary-actions,
body[data-theme='light'][data-route='live'] .metrics-row,
body[data-theme='light'][data-route='live'] .controls-panel .button-row {
  gap: 0.55rem;
}

body[data-theme='light'][data-route='live'] .metric-card,
body[data-theme='light'][data-route='live'] .live-side .panel,
body[data-theme='light'][data-route='live'] .live-support-panel,
body[data-theme='light'][data-route='live'] .live-help-panel {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

body[data-theme='light'][data-route='live'] .summary-actions .button,
body[data-theme='light'][data-route='live'] .controls-panel .button,
body[data-theme='light'][data-route='live'] .live-side .button,
body[data-theme='light'][data-route='live'] .transcript-toolbar .button,
body[data-theme='light'][data-route='live'] .transcript-export-actions .button,
body[data-theme='light'][data-route='live'] .live-support-panel .button {
  border-radius: 999px;
  border-color: rgba(203, 213, 225, 0.92);
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
}

body[data-theme='light'][data-route='live'] .controls-panel .button--primary {
  background: #0f172a;
  border-color: #0f172a;
  color: #f8fafc;
}

body[data-theme='light'][data-route='live'] .controls-panel .button--danger {
  background: #fff1f2;
  border-color: rgba(251, 113, 133, 0.34);
  color: #9f1239;
}

body[data-theme='light'][data-route='live'] .transcript-board {
  border-radius: 30px;
}

body[data-theme='light'][data-route='live'] .transcript-toolbar {
  justify-content: space-between;
  margin-bottom: 0;
  padding: 0.95rem 1.05rem 0.85rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.92);
}

body[data-theme='light'][data-route='live'] .transcript-live-state {
  max-width: 36ch;
  color: #64748b;
  font-size: 0.74rem;
  opacity: 0.78;
  text-align: right;
}

body[data-theme='light'][data-route='live'] .transcript-list {
  padding: 0.85rem 1.05rem 1rem;
  height: min(50vh, 600px);
}

body[data-theme='light'][data-route='live'] .transcript-pair {
  padding: 0;
  gap: 0.16rem;
  border-top: 0;
}

body[data-theme='light'][data-route='live'] .transcript-pair + .transcript-pair {
  margin-top: 0.8rem;
  padding-top: 0;
  border-top: 0;
}

body[data-theme='light'][data-route='live'] .transcript-pair--live {
  background: transparent;
  border-top-color: transparent;
}

body[data-theme='light'][data-route='live'] .transcript-pair--playing {
  background: rgba(191, 219, 254, 0.48);
}

body[data-theme='light'][data-route='live'] .transcript-pair__meta--feed {
  margin-bottom: 0.08rem;
  font-size: 0.68rem;
}

body[data-theme='light'][data-route='live'] .transcript-pair__speaker-name {
  color: #475569;
}

body[data-theme='light'][data-route='live'] .transcript-pair__pending-note {
  margin-top: 0.18rem;
  font-size: 0.8rem;
  color: #94a3b8;
}

body[data-theme='light'][data-route='live'] .transcript-paragraph {
  gap: 0;
}

body[data-theme='light'][data-route='live'] .transcript-paragraph--source .transcript-paragraph__text {
  font-weight: 500;
}

body[data-theme='light'][data-route='live'] .review-audio-panel,
body[data-theme='light'][data-route='live'] .speaker-change-dock {
  background: rgba(255, 255, 255, 0.88);
}

body[data-theme='light'][data-route='live'] .action-menu__sheet {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(226, 232, 240, 0.95);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
}

body[data-theme='light'][data-route='live'] .live-disclosure__body,
body[data-theme='light'][data-route='live'] .live-help-disclosure__body {
  border-top-color: rgba(226, 232, 240, 0.92);
}

body[data-theme='light'][data-route='live'] .speaker-change-marker-headings {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0));
}

body[data-theme='light'][data-route='live'] .speaker-change-action--mark,
body[data-theme='light'][data-route='live'] .speaker-change-action--reset {
  background: rgba(226, 232, 240, 0.92);
  color: #0f172a;
  border-color: rgba(203, 213, 225, 0.94);
}

body[data-theme='light'][data-route='live'] .transcript-paragraph--target {
  margin-top: 0.34rem;
}

body[data-theme='light'][data-route='live'] .transcript-paragraph--target .transcript-paragraph__text {
  color: #475569;
}

body[data-theme='light'][data-route='live'] .speaker-summary {
  gap: 0.5rem;
}

body[data-theme='light'][data-route='live'] .speaker-progress {
  border-color: rgba(203, 213, 225, 0.92);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: none;
}

body[data-theme='light'][data-route='live'] .speaker-total,
body[data-theme='light'][data-route='live'] .speaker-stat,
body[data-theme='light'][data-route='live'] .speaker-slot-summary__card,
body[data-theme='light'][data-route='live'] .speaker-timing-summary__total,
body[data-theme='light'][data-route='live'] .speaker-timing-summary__row {
  padding: 0.72rem 0.82rem;
  border-radius: 16px;
  border-color: rgba(226, 232, 240, 0.92);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

body[data-theme='light'][data-route='live'] .speaker-total--manual {
  background: rgba(240, 253, 250, 0.96);
  border-color: rgba(153, 246, 228, 0.72);
}

body[data-theme='light'][data-route='live'] .speaker-total--manual-window,
body[data-theme='light'][data-route='live'] .speaker-timing-summary__total--manual {
  background: rgba(248, 250, 252, 0.98);
  border-color: rgba(226, 232, 240, 0.94);
}

body[data-theme='light'][data-route='live'] .speaker-timing-summary__total--auto {
  background: rgba(240, 253, 250, 0.96);
  border-color: rgba(153, 246, 228, 0.72);
}

body[data-theme='light'][data-route='live'] .speaker-slot-summary__chip,
body[data-theme='light'][data-route='live'] .speaker-slot-row {
  background: rgba(248, 250, 252, 0.96);
  border-color: rgba(191, 219, 254, 0.86);
}

body[data-theme='light'][data-route='live'] .speaker-change-dock__meter {
  border-color: rgba(226, 232, 240, 0.92);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: none;
}

body[data-theme='light'][data-route='live'] .speaker-change-dock__meter-track {
  border-color: rgba(203, 213, 225, 0.92);
  background: rgba(241, 245, 249, 0.94);
  box-shadow: inset 0 1px 2px rgba(148, 163, 184, 0.22);
}

body[data-theme='light'][data-route='live'] .speaker-timing-summary__head,
body[data-theme='light'][data-route='live'] .speaker-timing-summary__total span,
body[data-theme='light'][data-route='live'] .speaker-timing-summary__note,
body[data-theme='light'][data-route='live'] .speaker-details-disclosure summary {
  color: #64748b;
}

body[data-theme='light'][data-route='live'] .review-audio-transport--floating {
  border-color: rgba(203, 213, 225, 0.92);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

body[data-theme='light'][data-route='live'] .speaker-change-marker-row__editor-option {
  background: rgba(248, 250, 252, 0.98);
  border-color: rgba(203, 213, 225, 0.92);
  color: #0f172a;
}

body[data-theme='light'][data-route='live'] .speaker-change-marker-row__editor-option--active {
  background: rgba(236, 253, 245, 0.98);
  border-color: rgba(110, 231, 183, 0.82);
  color: #0f766e;
}

body[data-theme='light'][data-route='live'] .speaker-total strong,
body[data-theme='light'][data-route='live'] .speaker-stat__header-row strong,
body[data-theme='light'][data-route='live'] .speaker-slot-summary__header strong,
body[data-theme='light'][data-route='live'] .speaker-total span,
body[data-theme='light'][data-route='live'] .speaker-stat span,
body[data-theme='light'][data-route='live'] .speaker-slot-summary__header span,
body[data-theme='light'][data-route='live'] .speaker-slot-row__meta strong,
body[data-theme='light'][data-route='live'] .speaker-timing-summary__speaker strong,
body[data-theme='light'][data-route='live'] .speaker-timing-summary__row span,
body[data-theme='light'][data-route='live'] .speaker-timing-summary__foot strong,
body[data-theme='light'][data-route='live'] .speaker-timing-summary__foot span,
body[data-theme='light'][data-route='live'] .speaker-timing-summary__total strong {
  color: #0f172a;
}

body[data-theme='light'][data-route='live'] #speakerStatusLine {
  font-size: 0.82rem;
}

@media (max-width: 720px) {
  body[data-theme='light'][data-route='live'] .topbar {
    margin: 0 0 0.65rem;
    border-left: 0;
    border-right: 0;
    border-radius: 0 0 24px 24px;
  }

  body[data-theme='light'][data-route='live'] .page-stack {
    width: min(calc(100% - 0.65rem), var(--content-width));
  }

  body[data-theme='light'][data-route='live'] .summary-actions,
  body[data-theme='light'][data-route='live'] .metrics-row,
  body[data-theme='light'][data-route='live'] .controls-panel .button-row {
    gap: 0.5rem;
  }

  body[data-theme='light'][data-route='live'] .transcript-toolbar {
    padding: 0.82rem 0.92rem 0.75rem;
  }

  body[data-theme='light'][data-route='live'] .transcript-list {
    padding: 0.78rem 0.92rem 0.95rem;
    height: min(48vh, 560px);
  }

  body[data-theme='light'][data-route='live'] .transcript-pair + .transcript-pair {
    margin-top: 0.72rem;
    padding-top: 0;
  }

  body[data-theme='light'][data-route='live'] .live-side > :first-child,
  body[data-theme='light'][data-route='live'] .live-side > :last-child {
    display: none;
  }
}
