:root {
  --bg-0: #07070a;
  --bg-1: #0d0d13;
  --panel: rgba(10, 10, 14, 0.84);
  --panel-solid: #0a0a0e;
  --panel-soft: rgba(255, 255, 255, 0.045);
  --ink-1: #f5f5f7;
  --ink-2: rgba(245, 245, 247, 0.64);
  --ink-3: rgba(245, 245, 247, 0.38);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.14);
  --orange: #ff9f3a;
  --pink: #ff6f9c;
  --blue: #5e9bff;
  --violet: #a37bff;
  --green: #28c840;
  --red: #ff5f57;
  --brand-gradient: linear-gradient(90deg, var(--orange), var(--pink), var(--blue), var(--violet));
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  --nav-height: 68px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg-0);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  background: var(--bg-0);
  color: var(--ink-1);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button, select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(94, 155, 255, 0.8);
  outline-offset: 3px;
}

::selection {
  background: rgba(94, 155, 255, 0.28);
}

[hidden] {
  display: none !important;
}

.backdrop,
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.backdrop {
  z-index: -2;
  background:
    radial-gradient(55% 48% at 48% -8%, rgba(94, 155, 255, 0.16), transparent 62%),
    radial-gradient(42% 44% at 96% 94%, rgba(163, 123, 255, 0.11), transparent 64%),
    radial-gradient(38% 40% at 4% 92%, rgba(255, 111, 156, 0.075), transparent 64%),
    linear-gradient(180deg, #07070a 0%, #0c0c12 58%, #07070a 100%);
}

.noise {
  z-index: -1;
  opacity: 0.026;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.app-nav {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  height: var(--nav-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 7, 10, 0.64);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-1);
  font-size: 15px;
  font-weight: 720;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.brand-dot {
  position: relative;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  overflow: hidden;
  border-radius: 50%;
  isolation: isolate;
  background: #001219;
  box-shadow: 0 0 5px rgba(39, 238, 183, 0.22), 0 0 9px rgba(31, 156, 226, 0.14);
}

.brand-dot::after {
  position: absolute;
  z-index: 3;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 22%, rgba(119, 255, 227, 0.12), transparent 22%);
  content: "";
  pointer-events: none;
}

.brand-aurora {
  position: absolute;
  inset: -20%;
  width: 140%;
  height: 140%;
  max-width: none;
  object-fit: cover;
  object-position: 58% 50%;
  filter: saturate(1.38) contrast(1.12) brightness(1.08) hue-rotate(-3deg);
  pointer-events: none;
}

.brand-aurora::-webkit-media-controls,
.brand-aurora::-webkit-media-controls-panel,
.brand-aurora::-webkit-media-controls-play-button,
.brand-aurora::-webkit-media-controls-start-playback-button,
.nav-soundtrack-aurora::-webkit-media-controls,
.nav-soundtrack-aurora::-webkit-media-controls-panel,
.nav-soundtrack-aurora::-webkit-media-controls-play-button,
.nav-soundtrack-aurora::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
  opacity: 0 !important;
  pointer-events: none !important;
}

.brand-infinity {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  width: 69%;
  aspect-ratio: 72 / 32;
  background: rgba(59, 255, 203, 0.025);
  -webkit-backdrop-filter: brightness(1.75) saturate(1.65) contrast(1.08);
  backdrop-filter: brightness(1.75) saturate(1.65) contrast(1.08);
  filter: drop-shadow(0 0 1.5px rgba(44, 224, 191, 0.18));
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 32'%3E%3Cpath d='M5 16C5 8.1 10.8 3.5 18.3 3.5C27.2 3.5 32 10.4 36 16C40 21.6 44.8 28.5 53.7 28.5C61.2 28.5 67 23.9 67 16C67 8.1 61.2 3.5 53.7 3.5C44.8 3.5 40 10.4 36 16C32 21.6 27.2 28.5 18.3 28.5C10.8 28.5 5 23.9 5 16Z' fill='none' stroke='white' stroke-width='6.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 32'%3E%3Cpath d='M5 16C5 8.1 10.8 3.5 18.3 3.5C27.2 3.5 32 10.4 36 16C40 21.6 44.8 28.5 53.7 28.5C61.2 28.5 67 23.9 67 16C67 8.1 61.2 3.5 53.7 3.5C44.8 3.5 40 10.4 36 16C32 21.6 27.2 28.5 18.3 28.5C10.8 28.5 5 23.9 5 16Z' fill='none' stroke='white' stroke-width='6.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  transform: translate(-50%, -50%);
}

.brand-dot.media-fallback {
  background: #001219 url("/media/aurora-logo-instagram.gif") 58% 50% / auto 140% no-repeat;
}

.brand-dot.media-fallback .brand-aurora,
.nav-soundtrack-infinity.media-fallback .nav-soundtrack-aurora {
  display: none;
}

.nav-intelligence {
  justify-self: center;
  display: flex;
  align-items: center;
  height: 36px;
  gap: 9px;
  padding: 0 12px 0 9px;
  border: 1px solid rgba(184, 255, 239, 0.1);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.nav-soundtrack-infinity {
  position: relative;
  width: 72px;
  height: 25px;
  flex: 0 0 72px;
  overflow: hidden;
  isolation: isolate;
  opacity: 0.9;
  filter: drop-shadow(0 0 8px rgba(37, 238, 190, 0.18));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 32'%3E%3Cpath d='M5 16C5 8.1 10.8 3.5 18.3 3.5C27.2 3.5 32 10.4 36 16C40 21.6 44.8 28.5 53.7 28.5C61.2 28.5 67 23.9 67 16C67 8.1 61.2 3.5 53.7 3.5C44.8 3.5 40 10.4 36 16C32 21.6 27.2 28.5 18.3 28.5C10.8 28.5 5 23.9 5 16Z' fill='none' stroke='white' stroke-width='6.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 32'%3E%3Cpath d='M5 16C5 8.1 10.8 3.5 18.3 3.5C27.2 3.5 32 10.4 36 16C40 21.6 44.8 28.5 53.7 28.5C61.2 28.5 67 23.9 67 16C67 8.1 61.2 3.5 53.7 3.5C44.8 3.5 40 10.4 36 16C32 21.6 27.2 28.5 18.3 28.5C10.8 28.5 5 23.9 5 16Z' fill='none' stroke='white' stroke-width='6.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.nav-soundtrack-aurora {
  position: absolute;
  inset: -55% -20%;
  width: 140%;
  height: 210%;
  max-width: none;
  object-fit: cover;
  object-position: 58% 50%;
  filter: saturate(1.5) contrast(1.15) brightness(1.12) hue-rotate(-4deg);
  transform: scale(1.08);
  pointer-events: none;
}

.nav-soundtrack-sheen,
.nav-soundtrack-glass {
  position: absolute;
  z-index: 2;
  inset: 0;
}

.nav-soundtrack-sheen {
  background: linear-gradient(105deg, transparent 20%, rgba(155, 255, 234, 0.24) 48%, transparent 76%);
  animation: soundtrack-sheen 4.8s ease-in-out infinite;
  transform: translateX(-110%);
}

.nav-soundtrack-glass {
  z-index: 3;
  background: rgba(112, 255, 225, 0.025);
  -webkit-backdrop-filter: brightness(1.1) saturate(1.1);
  backdrop-filter: brightness(1.1) saturate(1.1);
}

.nav-soundtrack-infinity.media-fallback {
  background: #002126 url("/media/aurora-logo-instagram.gif") 58% 50% / auto 210% no-repeat;
}

.nav-divider {
  width: 1px;
  height: 15px;
  background: var(--line);
}

.connection-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-3);
  box-shadow: 0 0 0 0 rgba(245, 245, 247, 0);
  transition: background 0.25s, box-shadow 0.25s;
}

.connection-dot.is-live {
  background: var(--green);
  box-shadow: 0 0 10px rgba(40, 200, 64, 0.62);
}

.connection-dot.is-busy {
  background: var(--orange);
  box-shadow: 0 0 10px rgba(255, 159, 58, 0.5);
  animation: pulse-dot 1.45s infinite;
}

.connection-dot.is-error {
  background: var(--red);
  box-shadow: 0 0 10px rgba(255, 95, 87, 0.5);
}

.nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
}

.mode-badge {
  padding: 7px 11px;
  border: 1px solid rgba(94, 155, 255, 0.16);
  border-radius: 100px;
  background: rgba(94, 155, 255, 0.07);
  color: rgba(191, 219, 254, 0.84);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.icon-button,
.dialog-close {
  display: grid;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink-2);
  place-items: center;
  transition: 0.2s ease;
}

.icon-button {
  width: 34px;
  height: 34px;
  padding: 0 0 6px;
  border-radius: 50%;
  font-size: 15px;
  letter-spacing: 2px;
}

.icon-button:hover,
.dialog-close:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink-1);
}

.app-main {
  height: 100vh;
  height: 100dvh;
  padding: calc(var(--nav-height) + 20px) 22px 20px;
}

.coach-workspace {
  position: relative;
  isolation: isolate;
  width: min(1540px, 100%);
  height: 100%;
  min-height: 610px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background:
    radial-gradient(100% 72% at 50% -12%, rgba(30, 33, 52, 0.82), transparent 56%),
    linear-gradient(180deg, rgba(10, 10, 14, 0.97), rgba(5, 5, 7, 0.98));
  box-shadow:
    0 45px 100px -38px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.workspace-glow {
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  opacity: 0.1;
  filter: blur(120px);
  pointer-events: none;
}

.workspace-glow-blue {
  top: -230px;
  left: 20%;
  background: var(--blue);
}

.workspace-glow-violet {
  right: -180px;
  bottom: -240px;
  background: var(--violet);
}

.call-header {
  position: relative;
  z-index: 4;
  height: 54px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
  background: rgba(5, 5, 7, 0.28);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.window-dots span:nth-child(1) { background: #ff5f57; }
.window-dots span:nth-child(2) { background: #febc2e; }
.window-dots span:nth-child(3) { background: #28c840; }

.call-identity {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 680;
  letter-spacing: 0.015em;
  white-space: nowrap;
}

.recording-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ink-3);
}

.coach-workspace.is-live .recording-dot:not(.recording-dot-orange) {
  background: var(--red);
  animation: record-pulse 1.6s infinite;
}

.recording-dot-orange {
  background: var(--orange);
  animation: orange-pulse 1.5s infinite;
}

.call-separator {
  color: var(--ink-3);
}

.call-signal {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.signal-label {
  color: var(--ink-3);
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.waveform {
  height: 23px;
  display: flex;
  align-items: center;
  gap: 2.2px;
}

.waveform i {
  width: 2.5px;
  height: 18%;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--blue), var(--violet));
  opacity: 0.42;
  transition: height 0.12s ease, opacity 0.2s ease;
}

.coach-workspace.is-live .waveform i {
  opacity: 1;
  animation: waveform 0.9s infinite ease-in-out alternate;
}

.waveform i:nth-child(2n) { animation-delay: -0.32s; }
.waveform i:nth-child(3n) { animation-delay: -0.58s; }
.waveform i:nth-child(5n) { animation-delay: -0.17s; }

.workspace-body {
  height: calc(100% - 128px);
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(330px, 0.78fr);
}

.transcript-pane {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(70% 60% at 50% 110%, rgba(94, 155, 255, 0.055), transparent 68%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 48%);
}

.pane-heading {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 18px;
  background: linear-gradient(180deg, rgba(8, 8, 11, 0.96) 45%, rgba(8, 8, 11, 0));
  pointer-events: none;
}

.eyebrow,
.pane-heading h1 {
  margin: 0;
}

.eyebrow {
  color: var(--ink-3);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pane-heading h1 {
  margin-top: 5px;
  font-size: 17px;
  font-weight: 670;
  letter-spacing: -0.025em;
}

.participants {
  display: flex;
  flex-direction: row-reverse;
  padding-right: 2px;
}

.participant {
  width: 30px;
  height: 30px;
  display: grid;
  margin-left: -7px;
  border: 2px solid #0b0b0f;
  border-radius: 50%;
  place-items: center;
  font-size: 9px;
  font-weight: 760;
}

.participant-prospect {
  background: linear-gradient(145deg, #282832, #15151c);
  color: var(--ink-2);
}

.participant-rep {
  background: linear-gradient(145deg, #3d63ff, var(--blue));
  color: white;
}

.transcript-feed {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 11px;
  overflow-y: auto;
  padding: 90px 6.5% 28px;
  scroll-behavior: smooth;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
  scrollbar-width: thin;
}

.transcript-feed::before {
  content: "";
  flex: 1 1 auto;
  min-height: 0;
}

.message {
  width: fit-content;
  max-width: min(74%, 620px);
  padding: 11px 14px 12px;
  border-radius: 14px;
  animation: message-in 0.34s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.message p {
  margin: 3px 0 0;
  font-size: clamp(12.5px, 1vw, 14px);
  line-height: 1.48;
}

.message-speaker {
  display: block;
  color: currentColor;
  font-size: 8.5px;
  font-weight: 720;
  letter-spacing: 0.1em;
  opacity: 0.52;
  text-transform: uppercase;
}

.message-prospect {
  align-self: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  color: var(--ink-1);
}

.message-rep {
  align-self: flex-end;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(135deg, #3d63ff, var(--blue));
  box-shadow: 0 14px 34px -18px rgba(61, 99, 255, 0.78), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: #fff;
}

.message-unknown {
  align-self: center;
  border: 1px dashed rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink-2);
}

.message.is-partial {
  opacity: 0.74;
}

.typing-caret {
  display: inline-block;
  width: 1.5px;
  height: 1em;
  margin-left: 3px;
  border-radius: 2px;
  background: currentColor;
  vertical-align: -0.12em;
  animation: blink 0.8s infinite;
}

.transcript-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  text-align: center;
}

.transcript-empty h2 {
  margin: 17px 0 6px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 650;
}

.transcript-empty p {
  margin: 0;
  font-size: 12px;
}

.empty-orbit {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(94, 155, 255, 0.2);
  border-radius: 50%;
}

.empty-orbit::before,
.empty-orbit::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.empty-orbit::before {
  inset: 8px;
  border: 1px solid rgba(163, 123, 255, 0.32);
}

.empty-orbit::after {
  top: 5px;
  left: 20px;
  width: 5px;
  height: 5px;
  background: var(--blue);
  box-shadow: 0 0 10px var(--blue);
  animation: orbit 2.2s linear infinite;
  transform-origin: 2px 17px;
}

.transcription-chip {
  position: absolute;
  z-index: 4;
  top: 22px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 159, 58, 0.16);
  border-radius: 100px;
  background: rgba(10, 10, 14, 0.76);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  color: rgba(255, 200, 146, 0.84);
  font-size: 8.5px;
  font-weight: 720;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.intelligence-rail {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 14px;
  background: rgba(4, 4, 6, 0.28);
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
  scrollbar-width: thin;
}

.intelligence-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.028), 0 20px 42px -32px rgba(0, 0, 0, 0.9);
}

.card-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(55px);
}

.cue-glow {
  top: -95px;
  right: -85px;
  width: 190px;
  height: 190px;
  background: var(--orange);
  opacity: 0.16;
}

.cue-card {
  min-height: 242px;
  display: flex;
  flex: 1.15 0 auto;
  flex-direction: column;
  padding: 18px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.cue-card.has-fresh-cue {
  border-color: rgba(255, 159, 58, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 42px rgba(255, 111, 156, 0.08);
  animation: cue-arrival 0.55s cubic-bezier(0.2, 0.85, 0.2, 1);
}

.card-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 740;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.cue-icon {
  color: #ffd7a8;
  font-size: 14px;
  filter: drop-shadow(0 0 8px rgba(255, 159, 58, 0.35));
}

.priority-pill {
  padding: 5px 7px;
  border: 1px solid rgba(255, 159, 58, 0.16);
  border-radius: 100px;
  background: rgba(255, 159, 58, 0.07);
  color: rgba(255, 215, 168, 0.75);
  font-size: 8px;
  font-weight: 730;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cue-card h2 {
  position: relative;
  z-index: 1;
  margin: 22px 0 9px;
  font-size: clamp(18px, 1.35vw, 23px);
  font-weight: 690;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.cue-card blockquote {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #ffd7a8;
  font-size: clamp(12px, 0.9vw, 14px);
  font-style: normal;
  font-weight: 520;
  line-height: 1.5;
}

.cue-reason {
  position: relative;
  z-index: 1;
  margin: 11px 0 0;
  color: var(--ink-3);
  font-size: 10.5px;
  line-height: 1.45;
}

.cue-meta {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  color: var(--ink-3);
  font-size: 8.5px;
  letter-spacing: 0.04em;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 10px;
}

.sentiment-card,
.deal-card,
.signals-card {
  padding: 14px;
}

.sentiment-card {
  min-height: 139px;
}

.sentiment-card .card-header strong {
  color: rgba(191, 219, 254, 0.84);
  font-size: 9px;
  font-weight: 680;
}

.status-orb {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-orb-blue { background: var(--blue); box-shadow: 0 0 8px rgba(94, 155, 255, 0.6); }
.status-orb-violet { background: var(--violet); box-shadow: 0 0 8px rgba(163, 123, 255, 0.55); }
.status-orb-green { background: var(--green); box-shadow: 0 0 8px rgba(40, 200, 64, 0.5); }

.sentiment-bars {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 15px;
}

.sentiment-row {
  display: grid;
  grid-template-columns: 42px 1fr 28px;
  align-items: center;
  gap: 6px;
  color: var(--ink-3);
  font-size: 8.5px;
}

.sentiment-row b {
  color: var(--ink-2);
  font-size: 8.5px;
  font-weight: 650;
  text-align: right;
}

.metric-track {
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
}

.metric-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sentiment-row:nth-child(1) i { background: var(--green); }
.sentiment-row:nth-child(2) i { background: #febc2e; }
.sentiment-row:nth-child(3) i { background: var(--red); }

.deal-card {
  min-height: 139px;
  display: flex;
  flex-direction: column;
}

.deal-score-wrap {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
}

.score-gauge {
  position: relative;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  display: grid;
  border-radius: 50%;
  background: conic-gradient(var(--blue) var(--score, 50%), rgba(255, 255, 255, 0.07) 0);
  place-items: center;
  transition: background 0.5s ease;
}

.score-gauge::before {
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  background: #0b0b10;
  content: "";
}

.score-gauge span {
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 760;
}

.deal-score-wrap strong,
.score-delta {
  display: block;
}

.deal-score-wrap strong {
  color: var(--ink-2);
  font-size: 9px;
  font-weight: 680;
  line-height: 1.3;
}

.score-delta {
  margin-top: 5px;
  color: var(--green);
  font-size: 8.5px;
  line-height: 1.3;
}

.signals-card {
  min-height: 94px;
  flex: 0.5 0 auto;
}

.signal-count {
  color: var(--ink-3);
  font-size: 8.5px;
}

.signal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 15px;
}

.signal-chips span {
  padding: 6px 8px;
  border: 1px solid rgba(40, 200, 64, 0.12);
  border-radius: 100px;
  background: rgba(40, 200, 64, 0.055);
  color: rgba(190, 240, 198, 0.68);
  font-size: 8.5px;
  font-weight: 620;
}

.signal-chips .empty-signal {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink-3);
}

.client-notes-card {
  min-height: 122px;
  flex: 0 0 auto;
  padding: 14px;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(94, 155, 255, 0.075), transparent 58%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.016));
}

.client-notes-card.is-missing {
  border-color: rgba(255, 159, 58, 0.2);
}

.client-notes-card.is-missing .notes-status {
  color: rgba(255, 200, 146, 0.72);
}

.notes-icon {
  width: 17px;
  height: 17px;
  display: grid;
  border: 1px solid rgba(94, 155, 255, 0.2);
  border-radius: 6px;
  background: rgba(94, 155, 255, 0.08);
  color: rgba(191, 219, 254, 0.78);
  font-size: 7px;
  font-weight: 800;
  place-items: center;
}

.notes-status {
  color: rgba(191, 219, 254, 0.5);
  font-size: 8px;
  font-weight: 650;
}

.client-notes-card > p {
  display: -webkit-box;
  margin: 11px 0 0;
  overflow: hidden;
  color: var(--ink-3);
  font-size: 9px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.notes-open-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding: 7px 9px;
  border: 1px solid rgba(94, 155, 255, 0.12);
  border-radius: 8px;
  background: rgba(94, 155, 255, 0.045);
  color: rgba(191, 219, 254, 0.68);
  font-size: 8.5px;
  font-weight: 650;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.notes-open-button:hover {
  border-color: rgba(94, 155, 255, 0.26);
  background: rgba(94, 155, 255, 0.08);
  color: rgba(219, 234, 254, 0.9);
}

.call-dock {
  position: relative;
  z-index: 6;
  height: 74px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(8, 8, 11, 0.8);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.dock-context {
  display: flex;
  align-items: center;
  gap: 10px;
}

.context-icon {
  width: 32px;
  height: 32px;
  display: grid;
  border: 1px solid rgba(94, 155, 255, 0.18);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(61, 99, 255, 0.16), rgba(163, 123, 255, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: rgba(191, 219, 254, 0.82);
  font-size: 11px;
  font-weight: 780;
  place-items: center;
}

.context-label,
.dock-context strong {
  display: block;
}

.context-label {
  color: var(--ink-3);
  font-size: 8px;
  font-weight: 720;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.dock-context strong {
  max-width: 260px;
  margin-top: 4px;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 10.5px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.speaker-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.speaker-control > span {
  color: var(--ink-3);
  font-size: 8px;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.segmented-control {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
}

.segmented-control button {
  padding: 6px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-3);
  font-size: 8.5px;
  font-weight: 650;
  transition: 0.18s ease;
}

.segmented-control button.is-active {
  background: rgba(94, 155, 255, 0.13);
  color: rgba(210, 229, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(94, 155, 255, 0.1);
}

.audio-sources {
  display: flex;
  align-items: center;
  gap: 14px;
}

.audio-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  font-size: 9px;
  font-weight: 640;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.audio-source i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-3);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.audio-source[data-status="connecting"] i {
  background: var(--orange);
  box-shadow: 0 0 8px rgba(255, 159, 58, 0.55);
  animation: pulse-dot 1.3s ease-in-out infinite;
}

.audio-source[data-status="connected"] i {
  background: var(--green);
  box-shadow: 0 0 8px rgba(40, 200, 64, 0.55);
}

.audio-source[data-status="disconnected"] {
  color: rgba(255, 199, 196, 0.82);
}

.audio-source[data-status="disconnected"] i {
  background: var(--red);
  box-shadow: 0 0 8px rgba(255, 95, 87, 0.5);
}

.dock-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.secondary-button,
.end-button,
.start-button {
  border-radius: 100px;
  font-weight: 680;
  transition: transform 0.18s ease, opacity 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.secondary-button {
  padding: 9px 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink-2);
  font-size: 10px;
}

.secondary-button:hover {
  border-color: var(--line-strong);
  color: var(--ink-1);
}

.end-button {
  min-width: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 95, 87, 0.2);
  background: rgba(255, 95, 87, 0.085);
  color: rgba(255, 199, 196, 0.88);
  font-size: 10px;
}

.end-button:disabled {
  cursor: not-allowed;
  opacity: 0.34;
}

.end-button:not(:disabled):hover {
  border-color: rgba(255, 95, 87, 0.36);
  box-shadow: 0 9px 24px -14px rgba(255, 95, 87, 0.7);
  transform: translateY(-1px);
}

.end-icon {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: currentColor;
}

.preflight {
  position: absolute;
  z-index: 20;
  inset: 54px 0 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 5, 8, 0.46);
  opacity: 1;
  transition: opacity 0.36s ease, visibility 0.36s ease;
  backdrop-filter: blur(9px) saturate(90%);
  -webkit-backdrop-filter: blur(9px) saturate(90%);
}

.preflight.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.preflight-card {
  position: relative;
  width: min(520px, 100%);
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 22px;
  background:
    radial-gradient(80% 80% at 100% 0%, rgba(94, 155, 255, 0.1), transparent 55%),
    linear-gradient(155deg, rgba(18, 18, 25, 0.96), rgba(8, 8, 12, 0.95));
  box-shadow: 0 34px 90px -36px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.preflight-card::after {
  position: absolute;
  top: -120px;
  right: -110px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  content: "";
  filter: blur(80px);
  opacity: 0.12;
  pointer-events: none;
}

.preflight-kicker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-3);
  font-size: 8.5px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.preflight-kicker i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 9px rgba(40, 200, 64, 0.6);
}

.preflight-card h2 {
  position: relative;
  z-index: 1;
  margin: 18px 0 10px;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 0.99;
}

.preflight-card h2 span {
  color: var(--ink-1);
}

.preflight-card h2 br + * {
  color: var(--blue);
}

.preflight-card h2 {
  background: linear-gradient(90deg, var(--ink-1) 0 46%, var(--orange) 50%, var(--pink) 66%, var(--blue) 82%, var(--violet));
  background-clip: text;
  color: transparent;
}

.preflight-card > p {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 0 0 20px;
  color: var(--ink-3);
  font-size: 11.5px;
  line-height: 1.55;
}

.mode-picker {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mode-option {
  min-width: 0;
  display: grid;
  grid-template-columns: 30px 1fr 8px;
  align-items: center;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink-2);
  text-align: left;
  transition: 0.2s ease;
}

.mode-option:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.042);
}

.mode-option.is-active {
  border-color: rgba(94, 155, 255, 0.3);
  background: rgba(94, 155, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(94, 155, 255, 0.04), 0 12px 28px -22px rgba(94, 155, 255, 0.7);
}

.mode-option-icon {
  width: 30px;
  height: 30px;
  display: grid;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(191, 219, 254, 0.84);
  place-items: center;
}

.mode-option strong,
.mode-option small {
  display: block;
}

.mode-option strong {
  color: var(--ink-1);
  font-size: 10.5px;
  font-weight: 680;
}

.mode-option small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--ink-3);
  font-size: 8px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mode-option > i {
  width: 7px;
  height: 7px;
  border: 1px solid var(--ink-3);
  border-radius: 50%;
}

.mode-option.is-unavailable {
  cursor: not-allowed;
  opacity: 0.42;
}

.mode-option.is-unavailable:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.mode-option.is-active > i {
  border: 2px solid #0b0b10;
  background: var(--blue);
  box-shadow: 0 0 0 1px var(--blue), 0 0 8px rgba(94, 155, 255, 0.6);
}

.call-audio-picker {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.018);
}

.call-audio-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-3);
  font-size: 8px;
  font-weight: 720;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.call-audio-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.call-audio-option {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
  transition: 0.18s ease;
}

.call-audio-option:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.045);
}

.call-audio-option.is-active {
  border-color: rgba(94, 155, 255, 0.3);
  background: rgba(94, 155, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(94, 155, 255, 0.04);
}

.call-audio-option strong {
  color: var(--ink-1);
  font-size: 10px;
  font-weight: 680;
}

.call-audio-option small {
  color: var(--ink-3);
  font-size: 8px;
  font-weight: 600;
}

.call-audio-option.is-active small {
  color: rgba(191, 219, 254, 0.72);
}

.call-audio-hint {
  margin: 9px 2px 0;
  color: var(--ink-3);
  font-size: 8.5px;
  line-height: 1.45;
}

.preflight-fields {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.client-notes-field {
  grid-column: 1 / -1;
}

.client-notes-field > span:first-child,
.field-helper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.client-notes-field > span:first-child small {
  color: rgba(191, 219, 254, 0.62);
  font-size: 7.5px;
  font-weight: 620;
  letter-spacing: 0;
  text-transform: none;
}

.preflight-fields label,
.dialog-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--ink-3);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.preflight-fields input,
.preflight-fields select,
.dialog-field input,
.preflight-fields textarea,
.dialog-field textarea {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-1);
  font-size: 10.5px;
  font-weight: 520;
  letter-spacing: normal;
  text-transform: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.preflight-fields textarea,
.dialog-field textarea {
  height: auto;
  min-height: 72px;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.5;
}

.preflight-fields input:focus,
.preflight-fields select:focus,
.dialog-field input:focus,
.preflight-fields textarea:focus,
.dialog-field textarea:focus {
  border-color: rgba(94, 155, 255, 0.42);
  box-shadow: 0 0 0 3px rgba(94, 155, 255, 0.08);
}

.field-helper {
  color: rgba(245, 245, 247, 0.3);
  font-size: 7.5px;
  font-weight: 520;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}

.field-helper b {
  flex: 0 0 auto;
  font-size: inherit;
  font-weight: 620;
}

.field-helper-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
}

.field-helper button {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(191, 219, 254, 0.58);
  font-size: inherit;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: rgba(94, 155, 255, 0.2);
  text-underline-offset: 3px;
}

.field-helper button:hover {
  color: rgba(219, 234, 254, 0.86);
}

.preflight-fields select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 15px) 17px, calc(100% - 11px) 17px;
  background-repeat: no-repeat;
  background-size: 4px 4px, 4px 4px;
}

.preflight-error {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 95, 87, 0.18);
  border-radius: 9px;
  background: rgba(255, 95, 87, 0.065);
  color: rgba(255, 199, 196, 0.78);
  font-size: 9.5px;
  line-height: 1.4;
}

.start-button {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 12px 15px;
  border: 0;
  background: var(--ink-1);
  color: #0a0a0d;
  font-size: 10.5px;
  box-shadow: 0 13px 34px -20px rgba(255, 255, 255, 0.62);
}

.start-button:hover {
  box-shadow: 0 16px 36px -18px rgba(255, 255, 255, 0.72);
  transform: translateY(-1px);
}

.start-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.start-button.compact {
  width: auto;
  margin: 0;
  padding: 10px 16px;
}

.button-arrow {
  font-size: 14px;
}

.preflight-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 13px;
  color: var(--ink-3);
  font-size: 8px;
}

.preflight-foot span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.preflight-foot button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font-size: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.12);
  text-underline-offset: 3px;
}

.secure-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.app-dialog {
  width: min(500px, calc(100% - 28px));
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-1);
}

.app-dialog::backdrop {
  background: rgba(3, 3, 5, 0.74);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.auth-dialog {
  width: min(430px, calc(100% - 28px));
}

.auth-card {
  padding: 34px;
  text-align: center;
}

.auth-card h2 {
  margin: 9px 0 8px;
  font-size: 30px;
  letter-spacing: -0.045em;
}

.auth-mark {
  position: relative;
  width: 58px;
  height: 58px;
  margin: 0 auto 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: #001219;
  box-shadow: 0 16px 45px rgba(55,150,255,.2), inset 0 1px 0 rgba(255,255,255,.12);
}

.auth-mark .brand-infinity { width: 64%; }

.auth-intro {
  margin: 0 0 24px;
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.55;
}

.auth-card .dialog-field { text-align: left; }

.auth-error {
  margin: 14px 0 0;
  color: #ff8d88;
  font-size: 10px;
  line-height: 1.45;
}

.auth-submit {
  width: 100%;
  margin-top: 18px;
}

.dialog-card {
  width: 100%;
  margin: 0;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 20px;
  background:
    radial-gradient(80% 80% at 100% 0%, rgba(94, 155, 255, 0.08), transparent 55%),
    #0d0d13;
  box-shadow: 0 45px 100px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.dialog-kicker {
  color: rgba(191, 219, 254, 0.58);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dialog-header h2 {
  margin: 6px 0 0;
  font-size: 22px;
  font-weight: 690;
  letter-spacing: -0.035em;
}

.dialog-close {
  width: 31px;
  height: 31px;
  padding: 0 0 2px;
  border-radius: 50%;
  font-size: 20px;
}

.dialog-field + .dialog-field {
  margin-top: 13px;
}

.dialog-field span {
  display: flex;
  justify-content: space-between;
}

.dialog-field small {
  color: var(--ink-3);
  font-size: 7.5px;
  font-weight: 520;
  letter-spacing: 0;
  text-transform: none;
}

.dialog-note {
  margin: 14px 0 0;
  color: var(--ink-3);
  font-size: 9.5px;
  line-height: 1.5;
}

.dialog-note code {
  color: rgba(191, 219, 254, 0.72);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8.5px;
}

.dialog-note kbd {
  padding: 1px 4px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-2);
  font: inherit;
}

.client-notes-dialog {
  width: min(580px, calc(100% - 28px));
}

.client-notes-intro {
  margin: -7px 0 18px;
  color: var(--ink-3);
  font-size: 10.5px;
  line-height: 1.55;
}

.dialog-textarea-field textarea {
  min-height: 184px;
}

.dialog-textarea-field textarea:disabled {
  cursor: default;
  opacity: 0.72;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}

.summary-dialog {
  width: min(660px, calc(100% - 28px));
}

.summary-card {
  overflow: hidden;
}

.summary-copy {
  margin: -6px 0 20px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.6;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.summary-grid section,
.summary-next {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
}

.summary-grid section {
  padding: 14px;
}

.summary-grid section > span,
.summary-next > span {
  color: var(--ink-3);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.summary-grid ul {
  margin: 10px 0 0;
  padding: 0 0 0 16px;
  color: var(--ink-2);
  font-size: 10.5px;
  line-height: 1.55;
}

.summary-next {
  margin-top: 10px;
  padding: 14px;
}

.summary-next strong,
.summary-next p {
  display: block;
}

.summary-next strong {
  margin-top: 9px;
  font-size: 13px;
  font-weight: 650;
}

.summary-next p {
  margin: 7px 0 0;
  color: var(--ink-3);
  font-size: 10px;
  line-height: 1.5;
}

.toast-stack {
  position: fixed;
  z-index: 100;
  top: calc(var(--nav-height) + 14px);
  right: 18px;
  width: min(340px, calc(100% - 36px));
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: 7px 1fr auto;
  align-items: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(13, 13, 19, 0.92);
  box-shadow: 0 20px 42px -24px rgba(0, 0, 0, 0.9);
  color: var(--ink-2);
  font-size: 10px;
  line-height: 1.45;
  animation: toast-in 0.28s ease;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.toast::before {
  width: 7px;
  height: 7px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px rgba(94, 155, 255, 0.45);
  content: "";
}

.toast.is-error::before { background: var(--red); box-shadow: 0 0 8px rgba(255, 95, 87, 0.45); }
.toast.is-success::before { background: var(--green); box-shadow: 0 0 8px rgba(40, 200, 64, 0.45); }

.toast button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1;
  pointer-events: auto;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes record-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 95, 87, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(255, 95, 87, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 95, 87, 0); }
}

@keyframes orange-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes waveform {
  0% { height: 18%; }
  100% { height: 92%; }
}

@keyframes message-in {
  from { opacity: 0; transform: translateY(7px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes blink {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0; }
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

@keyframes cue-arrival {
  from { opacity: 0.4; transform: translateY(7px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes soundtrack-sheen {
  0%, 58%, 100% { transform: translateX(-110%); }
  76% { transform: translateX(110%); }
}

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

  .app-main {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .coach-workspace {
    height: auto;
    min-height: calc(100vh - var(--nav-height) - 40px);
  }

  .workspace-body {
    height: auto;
    grid-template-columns: 1fr;
  }

  .transcript-pane {
    min-height: 540px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .intelligence-rail {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    overflow: visible;
  }

  .metric-grid,
  .signals-card {
    align-self: stretch;
  }

  .cue-card {
    grid-row: span 2;
  }

  .call-dock {
    position: sticky;
    bottom: 0;
  }

  .preflight {
    position: fixed;
    top: var(--nav-height);
    bottom: 0;
  }
}

@media (max-width: 700px) {
  :root { --nav-height: 64px; }

  .app-nav {
    padding: 0 14px;
  }

  .nav-intelligence {
    padding: 0;
    border: 0;
    background: transparent;
  }

  .nav-divider,
  .nav-intelligence .connection-dot,
  #connectionLabel,
  .mode-badge {
    display: none;
  }

  .nav-soundtrack-infinity {
    width: 64px;
    height: 23px;
    flex-basis: 64px;
  }

  .app-main {
    padding: calc(var(--nav-height) + 10px) 8px 10px;
  }

  .coach-workspace {
    min-height: calc(100vh - var(--nav-height) - 20px);
    border-radius: 17px;
  }

  .call-header {
    height: 50px;
    grid-template-columns: auto 1fr auto;
    padding: 0 12px;
  }

  .call-identity {
    justify-self: center;
    font-size: 9px;
  }

  .signal-label {
    display: none;
  }

  .waveform {
    gap: 1.5px;
  }

  .waveform i {
    width: 2px;
  }

  .workspace-body {
    height: auto;
  }

  .transcript-pane {
    min-height: 510px;
  }

  .pane-heading {
    padding: 18px 16px;
  }

  .transcript-feed {
    padding: 82px 14px 22px;
  }

  .message {
    max-width: 88%;
  }

  .message p {
    font-size: 12.5px;
  }

  .intelligence-rail {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .cue-card {
    min-height: 230px;
    grid-row: auto;
  }

  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }

  .call-dock {
    height: auto;
    min-height: 68px;
    grid-template-columns: 1fr auto;
    padding: 10px 12px;
  }

  .speaker-control,
  .audio-sources {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    margin-top: 9px;
  }

  .dock-context strong {
    max-width: 170px;
  }

  .preflight {
    inset: var(--nav-height) 0 0;
    align-items: flex-start;
    overflow-y: auto;
    padding: 16px 10px 28px;
  }

  .preflight-card {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .preflight-card h2 {
    font-size: 34px;
  }

  .mode-picker,
  .preflight-fields {
    grid-template-columns: 1fr;
  }

  .mode-option small {
    white-space: normal;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .brand {
    gap: 6px;
    font-size: 14px;
  }

  .brand-dot {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }

  .window-dots span {
    width: 7px;
    height: 7px;
  }

  .call-identity > span:nth-of-type(2) {
    display: none;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .dialog-card {
    padding: 20px 16px;
  }
}

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