:root {
  color-scheme: dark;
  --bg: #080b10;
  --bg-soft: #0d1118;
  --panel: rgba(17, 22, 31, 0.92);
  --panel-strong: #111722;
  --line: rgba(154, 173, 199, 0.14);
  --line-strong: rgba(154, 173, 199, 0.24);
  --text: #f3f6fa;
  --muted: #8793a4;
  --muted-light: #b5bfcc;
  --blue: #4b91ff;
  --cyan: #4ed7e8;
  --green: #52d68a;
  --amber: #f2bd5b;
  --red: #ff7777;
  --radius: 14px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 6%, rgba(55, 106, 198, 0.14), transparent 28rem),
    radial-gradient(circle at 4% 34%, rgba(47, 182, 195, 0.08), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

.noise {
  position: fixed;
  z-index: -1;
  inset: 0;
  opacity: 0.16;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.topbar,
main,
footer {
  width: min(1540px, calc(100% - 48px));
  margin-inline: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  border-bottom: 1px solid var(--line);
}

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

.brand-mark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  width: 25px;
  height: 25px;
  padding: 4px;
  border: 1px solid rgba(78, 215, 232, 0.4);
  border-radius: 5px;
  background: rgba(78, 215, 232, 0.07);
}

.brand-mark span {
  width: 4px;
  border-radius: 1px;
  background: var(--cyan);
}

.brand-mark span:nth-child(1) {
  height: 42%;
}

.brand-mark span:nth-child(2) {
  height: 100%;
}

.brand-mark span:nth-child(3) {
  height: 68%;
}

.brand-name {
  font-size: 17px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.brand-divider {
  color: #536071;
}

.brand-product {
  color: var(--muted-light);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.topbar-meta {
  display: flex;
  align-items: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.live-dot {
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(82, 214, 138, 0.08);
}

.topbar-separator {
  margin-inline: 10px;
  color: #475262;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
  padding: 74px 0 56px;
}

.intro-copy {
  max-width: 980px;
}

.eyebrow,
.panel-kicker {
  margin: 0;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.11em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 1000px;
  margin-bottom: 24px;
  font-size: clamp(42px, 5.3vw, 82px);
  font-weight: 620;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

h1 span {
  display: block;
  color: #8591a1;
}

.intro-text {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted-light);
  font-size: 18px;
  line-height: 1.55;
}

.intro-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  padding-bottom: 4px;
}

.intro-action p {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border-radius: 8px;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.primary-button {
  padding: 0 20px;
  border: 1px solid #4b91ff;
  background: var(--blue);
  color: #06101e;
  font-size: 14px;
  font-weight: 750;
  box-shadow: 0 12px 36px rgba(75, 145, 255, 0.18);
}

.primary-button:hover {
  transform: translateY(-2px);
  background: #6aa4ff;
}

.primary-button:focus-visible,
.secondary-button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.button-icon {
  font-size: 11px;
}

.status-strip {
  display: grid;
  grid-template-columns: 1.05fr 1.45fr 0.75fr 1fr;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  background: rgba(11, 15, 22, 0.72);
}

.status-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 17px 20px;
  border-right: 1px solid var(--line);
}

.status-item:last-child {
  border-right: 0;
}

.status-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-item strong {
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.console {
  position: relative;
  display: grid;
  grid-template-columns: 205px minmax(440px, 1.42fr) minmax(360px, 0.9fr);
  min-height: 830px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  background: rgba(8, 11, 16, 0.82);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.34);
}

.stage-rail {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px 16px;
  border-right: 1px solid var(--line);
  background: rgba(12, 16, 23, 0.78);
}

.rail-heading {
  display: flex;
  justify-content: space-between;
  padding: 0 8px 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stage-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stage {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr 8px;
  gap: 8px;
  align-items: center;
  min-height: 61px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  opacity: 0.45;
  transition:
    opacity 250ms ease,
    border-color 250ms ease,
    background 250ms ease;
}

.stage::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 19px;
  width: 1px;
  height: 5px;
  background: var(--line);
}

.stage:last-child::after {
  display: none;
}

.stage.is-active {
  border-color: rgba(75, 145, 255, 0.26);
  background: rgba(75, 145, 255, 0.08);
  opacity: 1;
}

.stage.is-complete {
  opacity: 0.85;
}

.stage-index {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.stage-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.stage-copy strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-state {
  width: 6px;
  height: 6px;
  border: 1px solid #4b5665;
  border-radius: 50%;
}

.stage.is-active .stage-state {
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(75, 145, 255, 0.1);
}

.stage.is-complete .stage-state {
  border-color: var(--green);
  background: var(--green);
}

.rail-note {
  margin-top: auto;
  padding: 16px 8px 0;
  border-top: 1px solid var(--line);
}

.rail-note span {
  color: var(--amber);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.rail-note p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.workspace,
.result-column {
  min-width: 0;
  padding: 14px;
}

.workspace {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 246px;
  gap: 14px;
  border-right: 1px solid var(--line);
}

.result-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.015), transparent 40%),
    var(--panel);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.panel-header.compact {
  padding: 16px 17px;
}

.panel-header h2,
.route-heading h2,
.completion-card h2 {
  margin: 5px 0 0;
  font-size: 16px;
  font-weight: 620;
  letter-spacing: -0.015em;
}

.panel-header.compact h2 {
  font-size: 14px;
}

.call-badge {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.is-running .call-badge {
  border-color: rgba(82, 214, 138, 0.3);
  background: rgba(82, 214, 138, 0.07);
  color: var(--green);
}

.call-identity {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(75, 145, 255, 0.28);
  border-radius: 8px;
  background: rgba(75, 145, 255, 0.08);
  color: #9ac0ff;
  font-size: 13px;
  font-weight: 700;
}

.call-identity > div:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.call-identity strong {
  font-size: 13px;
}

.call-identity span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.call-time {
  text-align: right;
}

.call-time strong {
  display: block;
  margin-top: 4px;
  color: var(--cyan);
  font-family: var(--mono);
}

.waveform {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 58px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
}

.waveform span {
  width: 3px;
  height: var(--h);
  border-radius: 2px;
  background: #3a4655;
  transform-origin: center;
}

.is-running .waveform span {
  background: linear-gradient(to top, var(--blue), var(--cyan));
  animation: pulse-wave 900ms ease-in-out infinite alternate;
  animation-delay: calc(var(--h) * -12ms);
}

.is-complete .waveform span {
  background: #3b5261;
}

@keyframes pulse-wave {
  from {
    transform: scaleY(0.42);
    opacity: 0.46;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

.transcript {
  position: relative;
  height: 330px;
  overflow-y: auto;
  padding: 14px 20px 30px;
  scrollbar-color: #2d3948 transparent;
  scrollbar-width: thin;
}

.transcript-empty {
  display: grid;
  min-height: 245px;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

.transcript-empty p {
  position: relative;
  max-width: 220px;
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
}

.empty-grid {
  position: absolute;
  width: 140px;
  height: 84px;
  border: 1px solid var(--line);
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: 0.45;
  mask-image: radial-gradient(circle, black, transparent 68%);
}

.transcript-line {
  display: none;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(154, 173, 199, 0.08);
  opacity: 0;
  transform: translateY(7px);
}

.transcript-line.is-visible {
  display: grid;
  animation: reveal-line 350ms ease forwards;
}

@keyframes reveal-line {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.speaker {
  padding-top: 2px;
  font-family: var(--mono);
  font-size: 9px;
}

.speaker.operator {
  color: #8fb8ff;
}

.speaker.client {
  color: var(--green);
}

.transcript-line p {
  margin: 0;
  color: #c5cdd8;
  font-size: 11px;
  line-height: 1.52;
}

.event-panel {
  min-height: 0;
}

.event-count,
.confidence,
.quality-score {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.confidence,
.quality-score {
  color: var(--cyan);
}

.event-stream {
  height: 180px;
  overflow-y: auto;
  padding: 8px 14px 16px;
  scrollbar-color: #2d3948 transparent;
  scrollbar-width: thin;
}

.event-placeholder {
  display: grid;
  min-height: 115px;
  place-items: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.event {
  display: none;
  grid-template-columns: 32px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 56px;
  padding: 9px 3px;
  border-bottom: 1px solid rgba(154, 173, 199, 0.08);
  opacity: 0;
}

.event.is-visible {
  display: grid;
  animation: fade-in 350ms ease forwards;
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

.event-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(75, 145, 255, 0.23);
  border-radius: 6px;
  background: rgba(75, 145, 255, 0.06);
  color: #94baff;
  font-family: var(--mono);
  font-size: 9px;
}

.event.success .event-icon {
  border-color: rgba(82, 214, 138, 0.3);
  background: rgba(82, 214, 138, 0.07);
  color: var(--green);
}

.event strong {
  font-size: 11px;
}

.event p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.event time {
  color: #657184;
  font-family: var(--mono);
  font-size: 9px;
}

.lead-card {
  flex: 0 0 auto;
}

.lead-fields {
  margin: 0;
}

.lead-field {
  display: grid;
  grid-template-columns: 44% 1fr;
  gap: 10px;
  padding: 11px 17px;
  border-bottom: 1px solid rgba(154, 173, 199, 0.08);
}

.lead-field:last-child {
  border-bottom: 0;
}

.lead-field dt {
  color: var(--muted);
  font-size: 10px;
}

.lead-field dd {
  margin: 0;
  color: #667284;
  font-size: 10px;
  font-weight: 600;
  text-align: right;
  transition: color 300ms ease;
}

.lead-field dd.is-filled {
  color: #d9e0e9;
}

.lead-field dd.positive.is-filled {
  color: var(--green);
}

.quality-card {
  flex: 0 0 auto;
}

.quality-list {
  margin: 0;
  padding: 8px 16px 12px;
  list-style: none;
}

.quality-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: center;
  min-height: 35px;
  border-bottom: 1px solid rgba(154, 173, 199, 0.07);
  color: #667284;
  font-size: 10px;
  transition: color 250ms ease;
}

.quality-list li:last-child {
  border-bottom: 0;
}

.check-icon {
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border: 1px solid #3d4857;
  border-radius: 50%;
  color: transparent;
  font-family: var(--mono);
  font-size: 8px;
  transition: all 250ms ease;
}

.quality-list li.is-checked {
  color: #cbd3dd;
}

.quality-list li.is-checked .check-icon {
  border-color: rgba(82, 214, 138, 0.42);
  background: rgba(82, 214, 138, 0.09);
  color: var(--green);
}

.route-card {
  flex: 1 1 auto;
  min-height: 182px;
  opacity: 0.35;
  transition:
    opacity 350ms ease,
    border-color 350ms ease,
    box-shadow 350ms ease;
}

.route-card.is-ready {
  border-color: rgba(82, 214, 138, 0.26);
  opacity: 1;
  box-shadow: inset 0 0 40px rgba(82, 214, 138, 0.025);
}

.route-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 17px;
  border-bottom: 1px solid var(--line);
}

.route-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(82, 214, 138, 0.28);
  border-radius: 7px;
  background: rgba(82, 214, 138, 0.06);
  color: var(--green);
}

.route-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 17px;
}

.route-flow div {
  min-width: 0;
}

.route-flow span,
.route-footer span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 9px;
}

.route-flow strong {
  display: block;
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-arrow {
  color: var(--green) !important;
  font-family: var(--mono);
}

.route-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 17px;
  border-top: 1px solid var(--line);
  background: rgba(82, 214, 138, 0.025);
}

.route-footer span {
  margin: 0;
}

.route-footer strong {
  color: var(--green);
  font-family: var(--mono);
  font-size: 11px;
}

.completion-card {
  position: absolute;
  z-index: 4;
  right: 28px;
  bottom: 28px;
  left: 233px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 22px;
  border: 1px solid rgba(82, 214, 138, 0.34);
  border-radius: 12px;
  background:
    linear-gradient(110deg, rgba(82, 214, 138, 0.08), transparent 48%),
    rgba(12, 20, 20, 0.97);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition:
    opacity 400ms ease,
    transform 400ms ease;
}

.completion-card.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.completion-check {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(82, 214, 138, 0.4);
  border-radius: 50%;
  color: var(--green);
}

.completion-card p {
  max-width: 680px;
  margin: 7px 0 0;
  color: var(--muted-light);
  font-size: 11px;
  line-height: 1.5;
}

.completion-meta {
  min-width: 150px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
  text-align: right;
}

.completion-meta span {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.completion-meta strong {
  display: block;
  margin-top: 5px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 22px;
}

.control-bar {
  position: sticky;
  z-index: 6;
  bottom: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(10, 14, 20, 0.91);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.timeline {
  min-width: 0;
}

.timeline-track {
  position: relative;
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: #212936;
}

.timeline-progress {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green));
  box-shadow: 0 0 16px rgba(78, 215, 232, 0.35);
}

.timeline-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: #687487;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.control-actions {
  display: flex;
  gap: 8px;
}

.secondary-button {
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted-light);
  font-size: 11px;
}

.secondary-button:hover {
  border-color: rgba(154, 173, 199, 0.38);
  background: rgba(255, 255, 255, 0.04);
}

.primary-button.small {
  min-height: 42px;
  padding-inline: 14px;
  font-size: 11px;
}

kbd {
  padding: 2px 5px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.14);
  color: inherit;
  font-family: var(--mono);
  font-size: 8px;
}

.explanation {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  padding: 110px 0 96px;
}

.explanation h2 {
  max-width: 600px;
  margin: 12px 0 0;
  font-size: clamp(30px, 3.2vw, 50px);
  font-weight: 580;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.explanation-copy > p {
  max-width: 690px;
  margin-bottom: 26px;
  color: var(--muted-light);
  font-size: 16px;
  line-height: 1.65;
}

.explanation-copy ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.explanation-copy li {
  position: relative;
  padding: 14px 0 14px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--muted-light);
  font-size: 12px;
}

.explanation-copy li::before {
  content: "↳";
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-family: var(--mono);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 24px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.5;
  text-transform: uppercase;
}

@media (max-width: 1180px) {
  .console {
    grid-template-columns: 180px minmax(420px, 1.3fr) minmax(320px, 0.8fr);
  }

  .stage-copy small {
    display: none;
  }

  .completion-card {
    left: 208px;
  }
}

@media (max-width: 980px) {
  .topbar,
  main,
  footer {
    width: min(100% - 28px, 820px);
  }

  .intro {
    grid-template-columns: 1fr;
    padding-top: 56px;
  }

  .intro-action {
    align-items: flex-start;
  }

  .status-strip {
    grid-template-columns: 1fr 1fr;
  }

  .status-item:nth-child(2) {
    border-right: 0;
  }

  .status-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .console {
    display: block;
    min-height: auto;
    overflow: visible;
  }

  .stage-rail {
    display: block;
    padding: 13px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rail-heading,
  .rail-note,
  .stage-copy small {
    display: none;
  }

  .stage-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
  }

  .stage {
    display: flex;
    min-height: 48px;
    justify-content: center;
    padding: 7px 4px;
  }

  .stage::after,
  .stage-state {
    display: none;
  }

  .stage-copy {
    display: none;
  }

  .workspace {
    grid-template-rows: auto 246px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .result-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .route-card {
    grid-column: 1 / -1;
  }

  .completion-card {
    right: 28px;
    bottom: 28px;
    left: 28px;
  }
}

@media (max-width: 680px) {
  .topbar {
    min-height: 62px;
  }

  .brand-product,
  .topbar-separator,
  .topbar-meta span:last-child {
    display: none;
  }

  .topbar-meta {
    font-size: 9px;
  }

  .intro {
    gap: 30px;
    padding: 42px 0 40px;
  }

  h1 {
    margin-bottom: 20px;
    font-size: clamp(38px, 12vw, 56px);
  }

  .intro-text {
    font-size: 15px;
  }

  .status-strip {
    grid-template-columns: 1fr;
  }

  .status-item {
    padding: 14px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .status-item:last-child {
    border-bottom: 0;
  }

  .stage-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .stage:nth-child(-n + 3) {
    border-bottom-color: var(--line);
  }

  .workspace,
  .result-column {
    padding: 9px;
    gap: 9px;
  }

  .workspace {
    grid-template-rows: auto 240px;
  }

  .result-column {
    display: flex;
  }

  .panel-header {
    padding: 16px;
  }

  .panel-header h2 {
    font-size: 14px;
  }

  .call-identity {
    padding-inline: 16px;
  }

  .waveform {
    gap: 3px;
    padding-inline: 16px;
  }

  .waveform span {
    flex: 1 1 auto;
    width: 2px;
  }

  .transcript {
    height: 360px;
    padding-inline: 16px;
  }

  .transcript-line {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .completion-card {
    position: fixed;
    right: 14px;
    bottom: 90px;
    left: 14px;
    grid-template-columns: auto 1fr;
    padding: 17px;
  }

  .completion-meta {
    display: none;
  }

  .control-bar {
    grid-template-columns: 1fr;
    gap: 12px;
    bottom: 7px;
  }

  .control-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .control-actions button {
    width: 100%;
  }

  .timeline-labels {
    display: none;
  }

  .explanation {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 76px 0 68px;
  }

  footer {
    flex-direction: column;
    gap: 10px;
  }
}

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