@font-face {
  font-family: "Gosha Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/assets/fonts/GoshaSans-Regular.otf") format("opentype");
}

@font-face {
  font-family: "Gosha Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/assets/fonts/GoshaSans-Bold.otf") format("opentype");
}

:root {
  color-scheme: dark;
  --brand-ink: #0b1617;
  --brand-black: #171717;
  --brand-teal: #00c8db;
  --brand-pink: #ff0070;
  --brand-purple: #742698;
  --brand-green: #1e8449;
  --neutral-white: #ffffff;
  --neutral-light: #f5f5f5;
  --neutral-mid: #e0e0e0;
  --neutral-text: #444444;
  --neutral-sub: #777777;
  --bg: var(--brand-ink);
  --surface: #101d1f;
  --surface-raised: #152427;
  --line: rgba(0, 200, 219, 0.22);
  --line-soft: rgba(224, 224, 224, 0.1);
  --text: var(--neutral-white);
  --muted: #a3b0b1;
  --teal: var(--brand-teal);
  --teal-strong: var(--brand-teal);
  --violet: var(--brand-purple);
  --danger: var(--brand-pink);
  --energy: 0;
  font-family: "Gosha Sans", Arial, ui-sans-serif, sans-serif;
}

[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  overflow: hidden;
  background:
    radial-gradient(circle at 13% 86%, rgba(116, 38, 152, 0.14), transparent 27rem),
    radial-gradient(circle at 88% 16%, rgba(0, 200, 219, 0.09), transparent 32rem),
    var(--bg);
  color: var(--text);
}

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

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--teal);
  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-shell {
  min-height: 100vh;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  padding: 0 32px;
  border-bottom: 2px solid var(--brand-teal);
  background: rgba(11, 22, 23, 0.94);
  backdrop-filter: blur(18px);
}

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

.brand-logo-frame {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 3px;
  background: var(--neutral-white);
  box-shadow: 4px 4px 0 rgba(0, 200, 219, 0.25);
}

.brand-logo-frame img {
  display: block;
  width: 100%;
  height: 100%;
}

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

.brand strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand small {
  margin-top: 3px;
  color: var(--brand-teal);
  font-size: 9px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(23, 23, 23, 0.74);
  font-size: 12px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #52615e;
  box-shadow: 0 0 0 4px rgba(82, 97, 94, 0.1);
}

.status-badge[data-tone="active"] .status-dot {
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 200, 219, 0.14);
}

.status-badge[data-tone="busy"] .status-dot {
  background: var(--violet);
  box-shadow: 0 0 0 4px rgba(116, 38, 152, 0.24);
}

.status-badge[data-tone="error"] .status-dot {
  background: var(--danger);
}

.icon-button {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--brand-black);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.icon-button:hover {
  border-color: var(--brand-teal);
  background: rgba(0, 200, 219, 0.1);
}

.icon-button.compact {
  width: 38px;
  height: 38px;
}

.icon-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.voice-stage {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 108px 36px 138px;
  isolation: isolate;
}

.voice-stage::before,
.voice-stage::after {
  position: absolute;
  z-index: -1;
  width: 2px;
  height: 55vh;
  content: "";
}

.voice-stage::before {
  left: 18%;
  top: 18%;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--brand-teal) 22%,
    rgba(0, 200, 219, 0.05)
  );
}

.voice-stage::after {
  right: 18%;
  bottom: 12%;
  background: linear-gradient(
    to top,
    transparent,
    var(--brand-purple) 22%,
    rgba(116, 38, 152, 0.05)
  );
}

.transcript-stack {
  position: fixed;
  z-index: 10;
  top: 104px;
  right: 32px;
  display: grid;
  width: min(390px, calc(100vw - 64px));
  gap: 10px;
  pointer-events: none;
}

.transcript-card {
  min-height: 84px;
  max-height: min(42vh, 420px);
  padding: 15px 17px;
  overflow-y: auto;
  pointer-events: auto;
  border: 1px solid rgba(224, 224, 224, 0.13);
  background: rgba(16, 29, 31, 0.94);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
  transition:
    border-color 180ms ease,
    transform 180ms ease;
}

.transcript-card.user-card {
  border-left: 4px solid var(--brand-teal);
}

.transcript-card.assistant-card {
  border-left: 4px solid var(--brand-purple);
}

.transcript-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.user-card .transcript-meta span:first-child {
  color: var(--teal);
}

.assistant-card .transcript-meta span:first-child {
  color: #d8b5e7;
}

.transcript-card p {
  margin: 0;
  overflow: visible;
  color: var(--neutral-light);
  font-size: 13px;
  line-height: 1.5;
  text-overflow: clip;
  display: block;
}

.voice-console {
  display: grid;
  justify-items: center;
  width: min(780px, 100%);
}

.voice-copy {
  min-height: 106px;
  margin-bottom: 26px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-teal);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.voice-copy h1 {
  margin: 0;
  font-size: clamp(21px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.voice-copy > p:last-child {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.voice-controls {
  display: grid;
  grid-template-columns: 84px minmax(260px, 340px) 84px;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
}

.round-control {
  position: relative;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.round-control:not(:disabled):hover {
  border-color: var(--brand-teal);
  background: rgba(0, 200, 219, 0.08);
  transform: translateY(-2px);
}

.round-control:disabled {
  cursor: not-allowed;
  opacity: 0.34;
}

.round-control svg {
  width: 24px;
  fill: none;
  stroke: #c7d1cf;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.control-ring {
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(0, 200, 219, 0.18);
  border-radius: 50%;
}

.stop-control svg {
  fill: var(--danger);
  stroke: none;
}

.round-control[data-muted="true"] {
  border-color: rgba(255, 0, 112, 0.72);
  background: rgba(255, 0, 112, 0.1);
}

.round-control[data-muted="true"]::after {
  position: absolute;
  width: 30px;
  height: 1px;
  background: var(--danger);
  content: "";
  transform: rotate(-45deg);
}

.orb-button {
  position: relative;
  display: grid;
  width: 320px;
  height: 320px;
  max-width: 42vw;
  max-height: 42vw;
  min-width: 260px;
  min-height: 260px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(0, 200, 219, 0.34);
  border-radius: 50%;
  transition:
    border-color 220ms ease,
    transform 220ms ease;
}

.orbit-one {
  inset: 11%;
}

.orbit-two {
  inset: 4%;
  border-color: rgba(0, 200, 219, 0.13);
}

.orbit-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 16px rgba(0, 200, 219, 0.78);
}

.dot-one {
  top: 13%;
  left: 31%;
}

.dot-two {
  top: 21%;
  right: 20%;
}

.dot-three {
  right: 9%;
  bottom: 30%;
}

.dot-four {
  bottom: 10%;
  left: 42%;
}

.orb-core {
  position: relative;
  display: block;
  width: 58%;
  height: 58%;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #72f1f8 0%, #00c8db 42%, #007e89 100%);
  box-shadow:
    0 0 calc(30px + var(--energy) * 54px) rgba(0, 200, 219, 0.62),
    0 0 90px rgba(0, 200, 219, 0.22),
    inset -22px -22px 46px rgba(11, 22, 23, 0.28);
  transform: scale(calc(1 + var(--energy) * 0.055));
  transition:
    background 220ms ease,
    box-shadow 100ms linear,
    transform 100ms linear;
}

.orb-glint {
  position: absolute;
  top: 21%;
  left: 25%;
  width: 24%;
  height: 11%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.52);
  filter: blur(7px);
  transform: rotate(-22deg);
}

.orb-button:hover .orbit-one,
.orb-button:focus-visible .orbit-one {
  border-color: rgba(0, 200, 219, 0.72);
  transform: scale(1.025);
}

.voice-stage[data-state="connecting"] .orbit-one,
.voice-stage[data-state="processing"] .orbit-one {
  animation: orbit-pulse 1.5s ease-in-out infinite;
}

.voice-stage[data-state="ai-speaking"] .orb-core,
.voice-stage[data-state="processing"] .orb-core {
  border-color: rgba(235, 235, 255, 0.9);
  background: radial-gradient(circle at 35% 28%, #d7a7e9 0%, #742698 58%, #421056 100%);
  box-shadow:
    0 0 calc(32px + var(--energy) * 58px) rgba(116, 38, 152, 0.72),
    0 0 96px rgba(116, 38, 152, 0.3),
    inset -22px -22px 46px rgba(23, 6, 31, 0.34);
}

.voice-stage[data-state="ai-speaking"] .orbit {
  border-color: rgba(116, 38, 152, 0.52);
}

.voice-stage[data-state="ai-speaking"] .orbit-dot {
  background: #b768d4;
  box-shadow: 0 0 16px rgba(116, 38, 152, 0.9);
}

.voice-stage[data-state="error"] .orb-core {
  background: radial-gradient(circle at 35% 28%, #ff75b2, #ff0070 58%, #8d003e);
  box-shadow: 0 0 48px rgba(255, 0, 112, 0.46);
}

.telemetry {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 30px;
  color: #71817e;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.telemetry > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.telemetry-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.operations-health {
  display: flex;
  align-items: center;
  gap: 8px;
}

.operations-badge {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #a9b7b4;
  background: rgba(11, 22, 23, 0.72);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.operations-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #667370;
  box-shadow: 0 0 10px rgba(102, 115, 112, 0.32);
}

.operations-badge[data-tone="excellent"] i,
.operations-badge[data-tone="good"] i,
.operations-badge[data-tone="active"] i {
  background: var(--teal);
  box-shadow: 0 0 12px rgba(0, 200, 219, 0.55);
}

.operations-badge[data-tone="warning"] i {
  background: #f3b84b;
  box-shadow: 0 0 12px rgba(243, 184, 75, 0.5);
}

.operations-badge[data-tone="critical"] i {
  background: var(--brand-pink);
  box-shadow: 0 0 12px rgba(255, 0, 112, 0.52);
}

.input-dot {
  background: var(--teal);
}

.output-dot {
  background: var(--violet);
}

.interrupt-dot {
  background: var(--brand-pink);
}

.text-lab {
  position: fixed;
  z-index: 12;
  right: 32px;
  bottom: 24px;
  left: 32px;
  margin: auto;
  width: min(720px, calc(100vw - 64px));
}

.text-lab form {
  display: flex;
  min-height: 50px;
  padding: 5px;
  border: 1px solid var(--line);
  border-bottom: 2px solid var(--brand-teal);
  background: rgba(11, 22, 23, 0.95);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.text-lab input {
  min-width: 0;
  flex: 1;
  padding: 0 14px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 13px;
}

.text-lab input::placeholder {
  color: #667370;
}

.text-lab button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid rgba(0, 200, 219, 0.42);
  background: rgba(0, 200, 219, 0.12);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.text-lab button:not(:disabled):hover {
  color: var(--brand-ink);
  background: var(--brand-teal);
}

.text-lab button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.text-lab button svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.event-console {
  position: absolute;
  right: 0;
  bottom: 58px;
  width: min(430px, 100%);
  border: 1px solid var(--line);
  background: var(--brand-black);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.event-console summary {
  padding: 9px 12px;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.event-console ol {
  max-height: 220px;
  margin: 0;
  padding: 10px 12px 12px 34px;
  overflow: auto;
  border-top: 1px solid var(--line-soft);
  color: #8fa09c;
  font-size: 10px;
  line-height: 1.65;
}

.drawer-backdrop {
  position: fixed;
  z-index: 40;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(4px);
}

.settings-drawer {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  display: flex;
  width: min(540px, 100vw);
  height: 100vh;
  flex-direction: column;
  border-left: 2px solid var(--brand-teal);
  background: var(--brand-ink);
  box-shadow: -32px 0 80px rgba(0, 0, 0, 0.38);
  transform: translateX(102%);
  transition: transform 240ms ease;
}

.settings-drawer[data-open="true"] {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  padding: 20px 24px;
  border-bottom: 2px solid var(--brand-teal);
}

.drawer-header .eyebrow {
  margin-bottom: 7px;
}

.drawer-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.drawer-content {
  overflow: auto;
  padding-bottom: 40px;
}

.settings-section {
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-heading > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-heading h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.step-number {
  color: var(--teal);
  font-family: "Gosha Sans", Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
}

.mini-status {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mini-status[data-tone="active"] {
  color: var(--teal);
}

.mini-status[data-tone="error"] {
  color: var(--danger);
}

.field {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.field > span {
  color: #aebbb8;
  font-size: 11px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  color: var(--text);
  background: var(--surface);
  transition: border-color 160ms ease;
}

.field input,
.field select {
  height: 42px;
  padding: 0 11px;
}

.field textarea {
  min-height: 112px;
  padding: 11px;
  resize: vertical;
  line-height: 1.5;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand-teal);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field-help {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.engine-actions {
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 8px;
  margin-top: 16px;
}

.primary-action,
.secondary-action {
  min-height: 42px;
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.primary-action {
  border-color: rgba(0, 200, 219, 0.55);
  background: rgba(0, 200, 219, 0.15);
}

.primary-action:not(:disabled):hover {
  color: var(--brand-ink);
  background: var(--brand-teal);
}

.secondary-action {
  background: var(--surface);
}

.primary-action:disabled,
.secondary-action:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.preset-summary {
  margin-top: 10px;
  padding: 12px;
  border-left: 2px solid var(--teal);
  background: rgba(0, 200, 219, 0.07);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.preset-summary strong {
  display: block;
  margin-bottom: 3px;
  color: #d9e5e2;
  font-size: 11px;
}

.comparison-panel {
  position: fixed;
  z-index: 11;
  right: 32px;
  bottom: 88px;
  left: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: auto;
  width: min(720px, calc(100vw - 64px));
  padding: 16px 18px;
  border: 1px solid rgba(0, 200, 219, 0.35);
  background: rgba(8, 20, 21, 0.96);
}

.comparison-panel[hidden] {
  display: none;
}

.acoustic-evaluation-panel {
  position: fixed;
  z-index: 12;
  right: 28px;
  bottom: 82px;
  width: min(860px, calc(100vw - 56px));
  max-height: min(560px, calc(100vh - 180px));
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(0, 200, 219, 0.42);
  background: rgba(8, 20, 21, 0.97);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
}

.acoustic-evaluation-panel[hidden],
.acoustic-rating-form[hidden] {
  display: none;
}

.acoustic-evaluation-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.acoustic-evaluation-panel h2,
.acoustic-evaluation-panel p {
  margin: 0;
}

.acoustic-evaluation-panel h2 {
  margin-top: 4px;
  font-size: 19px;
}

.acoustic-evaluation-panel #acousticEvaluationHelp,
.automatic-metrics {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.evaluation-progress {
  padding: 5px 8px;
  border: 1px solid rgba(0, 200, 219, 0.32);
  color: var(--brand-teal);
  font-size: 9px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.acoustic-protocol {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  color: var(--muted);
  background: rgba(0, 200, 219, 0.035);
  font-size: 10px;
  line-height: 1.45;
}

.acoustic-protocol summary {
  color: #d9e5e2;
  cursor: pointer;
  font-weight: 700;
}

.acoustic-protocol ol {
  margin: 8px 0 6px;
  padding-left: 18px;
}

.acoustic-protocol li + li {
  margin-top: 4px;
}

.acoustic-rating-form {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line-soft);
}

.acoustic-rating-form > p,
.acoustic-rating-form > small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.rating-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 9px;
  margin: 10px 0;
}

.rating-grid label {
  display: grid;
  gap: 5px;
  color: #b9c7c4;
  font-size: 9px;
  font-weight: 700;
}

.rating-grid select,
.rating-grid input {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line-soft);
  border-radius: 0;
  color: var(--text);
  background: var(--brand-black);
  font: inherit;
}

.acoustic-rating-form button {
  min-height: 38px;
  margin-top: 10px;
  padding: 0 13px;
  border: 1px solid rgba(0, 200, 219, 0.45);
  color: var(--brand-ink);
  background: var(--brand-teal);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.protocol-checklist {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
}

.protocol-checklist legend {
  padding: 0 5px;
  color: #d9e5e2;
  font-size: 9px;
  font-weight: 700;
}

.protocol-checklist label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 9px;
}

.protocol-checklist input {
  accent-color: var(--brand-teal);
}

.acoustic-evaluation-panel > .comparison-actions {
  margin-top: 14px;
}

.ambience-dot {
  background: #f3ba63;
}

.comparison-panel h2,
.comparison-panel p {
  margin: 0;
}

.comparison-panel h2 {
  margin-top: 4px;
  font-size: 18px;
}

.comparison-panel #comparisonHelp,
.comparison-reveal {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.comparison-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.comparison-actions button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(0, 200, 219, 0.45);
  color: var(--text);
  background: rgba(0, 200, 219, 0.1);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.comparison-actions button:hover {
  color: var(--brand-ink);
  background: var(--brand-teal);
}

.pipeline-map {
  display: grid;
  grid-template-columns: repeat(7, auto);
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin: 18px 0 4px;
  padding: 14px 12px;
  border: 1px solid var(--line-soft);
  background: var(--brand-black);
}

.pipeline-map div {
  display: grid;
  gap: 4px;
}

.pipeline-map span {
  color: #61716e;
  font-size: 8px;
  letter-spacing: 0.12em;
}

.pipeline-map strong {
  max-width: 78px;
  overflow: hidden;
  font-size: 9px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pipeline-map i {
  width: 10px;
  height: 1px;
  background: #3b4a47;
}

.switch-field {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  cursor: pointer;
}

.switch-field span {
  display: grid;
  gap: 4px;
}

.switch-field strong {
  font-size: 11px;
}

.switch-field small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.switch-field input {
  position: absolute;
  opacity: 0;
}

.switch-field i {
  position: relative;
  width: 40px;
  height: 22px;
  border: 1px solid #3c4947;
  border-radius: 999px;
  background: #111818;
}

.switch-field i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #667370;
  content: "";
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.switch-field input:checked + i {
  border-color: rgba(0, 200, 219, 0.62);
  background: rgba(0, 200, 219, 0.16);
}

.switch-field input:checked + i::after {
  background: var(--teal);
  transform: translateX(18px);
}

.system-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.system-card span {
  color: var(--teal);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.system-card strong {
  display: block;
  margin-top: 7px;
  font-size: 12px;
}

.system-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.text-action {
  align-self: start;
  padding: 0;
  border: 0;
  color: var(--teal);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
}

.runtime-logs {
  margin: 0 24px;
  border: 1px solid var(--line);
  background: var(--brand-black);
}

.runtime-logs summary {
  padding: 12px;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
}

.runtime-logs pre {
  max-height: 240px;
  margin: 0;
  padding: 12px;
  overflow: auto;
  border-top: 1px solid var(--line);
  color: #8fa09c;
  font-size: 9px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.toast {
  position: fixed;
  z-index: 80;
  right: 24px;
  bottom: 24px;
  max-width: min(380px, calc(100vw - 48px));
  padding: 12px 14px;
  border: 1px solid rgba(0, 200, 219, 0.52);
  border-left: 4px solid var(--brand-teal);
  background: var(--brand-ink);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.35);
  font-size: 11px;
  line-height: 1.5;
}

.toast[data-tone="error"] {
  border-color: rgba(255, 0, 112, 0.64);
  border-left-color: var(--brand-pink);
  background: #26101a;
}

@keyframes orbit-pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.98);
  }
  50% {
    opacity: 1;
    transform: scale(1.035);
  }
}

@media (min-width: 901px) and (max-width: 1500px) {
  .voice-console,
  .text-lab {
    transform: translateX(-9vw);
  }

  .transcript-stack {
    width: min(360px, calc(100vw - 64px));
  }
}

@media (max-width: 900px) {
  .transcript-stack {
    top: 92px;
    right: 20px;
    width: min(350px, calc(100vw - 40px));
  }

  .transcript-card {
    min-height: 68px;
    padding: 11px 13px;
  }

  .voice-console {
    padding-top: 90px;
  }
}

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

  .topbar {
    height: 68px;
    padding: 0 16px;
  }

  .brand small {
    display: none;
  }

  .status-badge {
    display: none;
  }

  .operations-health {
    gap: 5px;
  }

  .operations-badge {
    min-height: 30px;
    padding: 0 8px;
    font-size: 8px;
  }

  .voice-stage {
    min-height: 100svh;
    padding: 224px 18px 126px;
  }

  .transcript-stack {
    position: absolute;
    top: 82px;
    right: 16px;
    left: 16px;
    width: auto;
  }

  .voice-console {
    padding-top: 0;
  }

  .voice-copy {
    min-height: 92px;
  }

  .voice-controls {
    grid-template-columns: 58px minmax(200px, 250px) 58px;
    gap: 10px;
  }

  .round-control {
    width: 54px;
    height: 54px;
  }

  .orb-button {
    min-width: 210px;
    min-height: 210px;
  }

  .telemetry span:nth-child(2) {
    display: none;
  }

  .text-lab {
    right: 16px;
    bottom: 16px;
    left: 16px;
    width: auto;
  }

  .text-lab button {
    padding: 0 12px;
    font-size: 0;
  }

  .field-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .pipeline-map {
    gap: 3px;
    padding: 12px 8px;
  }

  .acoustic-evaluation-panel {
    right: 12px;
    bottom: 78px;
    width: calc(100vw - 24px);
    max-height: calc(100svh - 150px);
  }

  .rating-grid {
    grid-template-columns: repeat(2, minmax(110px, 1fr));
  }
}

@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;
  }
}
