/* In-app screens for Pitch Shadow light desktop walkthrough */

/* Shared bits */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 10px 20px 0;
}

.wordmark {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.05em;
  color: var(--kl-ink);
}

.pill {
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--kl-line);
  background: var(--kl-card);
  font-size: 12px;
  font-weight: 650;
  color: var(--kl-ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pill-end {
  color: var(--kl-danger);
  border-color: rgba(138, 46, 46, 0.28);
  background: var(--kl-white);
}

.kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--kl-muted);
}

.kicker.teal {
  color: var(--kl-teal-ink);
}

.serif-title {
  margin: 0;
  font-family: var(--kl-serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--kl-ink);
}

.ink-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--kl-ink);
  color: #fff;
  font-weight: 650;
  font-size: 15px;
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.55);
}

.ink-cta:hover {
  filter: brightness(1.05);
}

.ghost-cta {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--kl-line-strong);
  background: var(--kl-white);
  color: var(--kl-ink);
  font-weight: 600;
  font-size: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--kl-paper-2);
  color: var(--kl-ink-soft);
}

.chip.teal {
  background: var(--kl-teal-tint);
  color: var(--kl-teal-ink);
}

.chip.apricot {
  background: var(--kl-apricot-tint);
  color: var(--kl-amber);
}

.surface {
  background: var(--kl-card);
  border: 1px solid var(--kl-line);
  border-radius: 20px;
}

/* ========== HOME ========== */
.screen-home {
  padding: 4px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-nav {
  width: min(760px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
}

.home-nav-links {
  display: flex;
  gap: 22px;
}

.home-nav-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--kl-muted);
  text-decoration: none;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
}

.home-nav-links a.on {
  color: var(--kl-teal-ink);
  border-bottom-color: var(--kl-teal-ink);
}

.home-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--kl-teal-tint);
  color: var(--kl-teal-ink);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.home-center {
  width: min(520px, 100%);
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-hero {
  text-align: center;
  width: 100%;
}

.home-when {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kl-muted);
}

.home-title {
  font-size: clamp(30px, 3.8vw, 40px);
}

.home-sub {
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--kl-ink-soft);
}

.home-mist {
  position: relative;
  width: 100%;
  min-height: 250px;
  margin-top: 22px;
  border-radius: 28px;
  border: 1px solid var(--kl-line);
  background: var(--kl-white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 22px 22px 18px;
  gap: 18px;
  text-align: center;
}

.home-mist::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(75% 70% at 50% 118%, rgba(0, 179, 148, 0.58), transparent 72%),
    radial-gradient(55% 60% at 18% 112%, rgba(242, 180, 94, 0.5), transparent 72%),
    radial-gradient(55% 60% at 86% 112%, rgba(94, 200, 242, 0.3), transparent 72%);
  animation: mist-breathe 6s ease-in-out infinite;
}

.home-mist > * {
  position: relative;
  z-index: 1;
}

.home-memory {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 8px;
}

.home-noticing {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--kl-teal-ink);
}

.home-noticing i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--kl-teal-bright);
  box-shadow: 0 0 0 4px rgba(0, 179, 148, 0.18);
}

.home-quote {
  margin: 0;
  max-width: 28ch;
  font-family: var(--kl-serif);
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--kl-ink);
}

.talk-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px -16px rgba(0, 0, 0, 0.35);
  font-weight: 650;
  font-size: 15px;
}

.talk-pill .mic {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--kl-teal-ink);
  color: #fff;
  display: grid;
  place-items: center;
}

.home-focus {
  width: 100%;
  margin-top: 16px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid var(--kl-line);
  background: var(--kl-card);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--kl-ink-soft);
  font-size: 14px;
}

.home-focus b {
  flex: none;
  height: 24px;
  padding: 0 8px;
  border-radius: 8px;
  background: var(--kl-paper-2);
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--kl-muted);
}

.home-focus span {
  flex: 1;
  min-width: 0;
}

.home-focus-edit {
  flex: none;
  color: var(--kl-muted);
}

.home-modes {
  width: 100%;
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.home-modes--secondary {
  margin-top: 8px;
}

.mode-pill {
  height: 42px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--kl-line);
  background: var(--kl-card);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--kl-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.mode-pill svg {
  width: 16px;
  height: 16px;
  color: var(--kl-teal-ink);
}

.mode-pill.is-pitch {
  border-color: rgba(15, 107, 92, 0.45);
  box-shadow: 0 0 0 3px rgba(15, 107, 92, 0.08);
  background: var(--kl-white);
}

.mode-pill.is-pitch:hover {
  border-color: var(--kl-teal-ink);
}

@keyframes mist-breathe {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.9; }
  50% { transform: translateY(-8px) scale(1.04); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .home-mist::before { animation: none; }
}

/* ========== SETUP ========== */
.screen-setup {
  padding: 8px 28px 28px;
}

.setup-top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}

.setup-back {
  height: 34px;
  padding: 0 12px 0 8px;
  border-radius: 999px;
  border: 1px solid var(--kl-line);
  background: var(--kl-white);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--kl-ink-soft);
}

.setup-mode {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kl-muted);
}

.setup-hero {
  margin: 12px 0 20px;
}

.setup-hero h1 {
  font-size: 34px;
}

.setup-hero p {
  margin: 8px 0 0;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--kl-ink-soft);
}

.setup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.setup-card {
  padding: 18px;
}

.setup-card-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--kl-ink);
}

.setup-script-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.setup-upload {
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--kl-line-strong);
  background: var(--kl-white);
  font-size: 12px;
  font-weight: 600;
  color: var(--kl-ink-soft);
}

.setup-script-editor {
  width: 100%;
  min-height: 320px;
  border: none;
  resize: none;
  outline: none;
  background: transparent;
  font-family: var(--kl-news);
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--kl-ink);
  white-space: pre-wrap;
}

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

.length-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.length-chip {
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--kl-line);
  background: var(--kl-white);
  font-weight: 650;
  font-size: 15px;
  color: var(--kl-ink);
}

.length-chip span {
  font-size: 11px;
  font-weight: 500;
  color: var(--kl-muted);
}

.length-chip.is-on {
  border-color: rgba(15, 107, 92, 0.45);
  box-shadow: 0 0 0 3px rgba(15, 107, 92, 0.08);
  color: var(--kl-teal-ink);
}

.deck-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.deck-badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kl-teal-ink);
  background: var(--kl-teal-tint);
  padding: 4px 8px;
  border-radius: 999px;
}

.deck-hint {
  margin: 8px 0 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--kl-muted);
}

.deck-upload-btn {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px dashed var(--kl-line-strong);
  background: var(--kl-white);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--kl-ink-soft);
}

.deck-file {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--kl-line);
  background: var(--kl-white);
}

.deck-thumb {
  width: 44px;
  height: 32px;
  border-radius: 6px;
  background:
    linear-gradient(135deg, #1A2B23 0%, #0F6B5C 100%);
  flex: none;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.deck-meta {
  min-width: 0;
  flex: 1;
}

.deck-name {
  display: block;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--kl-ink);
}

.deck-detail {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--kl-muted);
}

.deck-status {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--kl-teal-ink);
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 18px;
}

.deck-status.is-done {
  color: var(--kl-ink-soft);
}

.spinner {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(15, 107, 92, 0.2);
  border-top-color: var(--kl-teal-ink);
  animation: spin 0.7s linear infinite;
}

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

.camera-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}

.camera-copy span:first-child {
  display: block;
  font-weight: 650;
  font-size: 14px;
}

.camera-copy span:last-child {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--kl-muted);
}

.switch {
  position: relative;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: var(--kl-paper-2);
  border: 1px solid var(--kl-line);
  flex: none;
}

.switch.is-on {
  background: var(--kl-teal-ink);
  border-color: var(--kl-teal-ink);
}

.switch i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.18s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.switch.is-on i {
  transform: translateX(18px);
}

.setup-start {
  padding-top: 4px;
}

.setup-start .ink-cta {
  width: 100%;
}

.setup-note {
  margin: 10px 0 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--kl-muted);
  line-height: 1.4;
}

@media (max-width: 720px) {
  .setup-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== DELIVERY (Pitch Stage) ========== */
.screen-delivery {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--kl-paper);
}

.live-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 8px;
  flex: none;
}

.live-nav {
  display: flex;
  gap: 8px;
}

.live-nav-btn {
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--kl-line);
  background: var(--kl-white);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--kl-ink-soft);
}

.live-top-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.live-timer-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--kl-rec);
  box-shadow: 0 0 0 0 rgba(194, 85, 77, 0.45);
  animation: rec-pulse 1.4s ease-out infinite;
}

@keyframes rec-pulse {
  0% { box-shadow: 0 0 0 0 rgba(194, 85, 77, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(194, 85, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(194, 85, 77, 0); }
}

.live-timer {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 15px;
  color: var(--kl-ink);
}

.live-progress {
  width: 120px;
  height: 3px;
  border-radius: 999px;
  background: var(--kl-paper-2);
  overflow: hidden;
}

.live-progress > span {
  display: block;
  height: 100%;
  width: 56%;
  background: var(--kl-ink);
  border-radius: inherit;
}

.live-meta {
  justify-self: end;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--kl-muted);
}

.live-title-line {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--kl-ink-soft);
  padding: 0 18px 8px;
}

.live-main {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(220px, 0.72fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 0 16px;
}

.slide-stage {
  grid-row: 1 / 2;
  grid-column: 1 / 2;
  border-radius: 16px;
  border: 1px solid var(--kl-line);
  background: var(--kl-white);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.slide-canvas {
  flex: 1;
  min-height: 0;
  padding: 22px 26px 16px;
  display: flex;
  flex-direction: column;
}

.slide-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kl-teal-ink);
}

.slide-headline {
  margin: 10px 0 0;
  font-family: var(--kl-sans);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.slide-body {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}

.slide-stat {
  border-radius: 14px;
  background: #1A2B23;
  color: #fff;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.slide-stat b {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  color: #F2B45E;
  letter-spacing: -0.03em;
  line-height: 1;
}

.slide-stat span {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
}

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

.slide-points li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
}

.slide-points em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: var(--kl-teal-ink);
  letter-spacing: 0.04em;
}

.slide-points strong {
  display: block;
  font-size: 14px;
  font-weight: 650;
}

.slide-points p {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--kl-ink-soft);
  line-height: 1.4;
}

.slide-foot {
  display: flex;
  justify-content: space-between;
  padding: 10px 18px;
  border-top: 1px solid var(--kl-line);
  font-size: 11.5px;
  color: var(--kl-muted);
  flex: none;
}

.self-tile {
  grid-row: 1 / 2;
  grid-column: 2 / 3;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--kl-line);
  background: #1c2023;
  min-height: 0;
  aspect-ratio: auto;
}

.self-tile video,
.self-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.you-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(28, 32, 35, 0.72);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
}

.self-stats {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(28, 32, 35, 0.72);
  color: rgba(255, 255, 255, 0.9);
  font-size: 10.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.self-cue {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(28, 32, 35, 0.78);
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
}

.self-cue b {
  color: rgba(255, 255, 255, 0.65);
  font-size: 10px;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.script-panel {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  border-radius: 14px;
  border: 1px solid var(--kl-line);
  background: var(--kl-card);
  padding: 12px 14px;
  min-height: 110px;
  max-height: 140px;
  overflow: hidden;
}

.script-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--kl-muted);
}

.script-body {
  margin-top: 8px;
  font-family: var(--kl-news);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--kl-muted);
}

.script-body .now {
  color: var(--kl-ink);
  font-weight: 550;
}

.thumbs-row {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 0;
}

.thumb {
  width: 72px;
  height: 46px;
  border-radius: 8px;
  border: 2px solid transparent;
  background: var(--kl-paper-2);
  overflow: hidden;
  position: relative;
  flex: none;
  opacity: 0.7;
}

.thumb.is-on {
  border-color: var(--kl-ink);
  opacity: 1;
}

.thumb span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--kl-muted);
}

.thumb.t1 { background: linear-gradient(135deg, #ECE7E0, #FAF8F5); }
.thumb.t2 { background: linear-gradient(135deg, #1A2B23, #0F6B5C); }
.thumb.t2 span { color: rgba(255,255,255,0.85); }
.thumb.t3 { background: linear-gradient(135deg, #F5E9D6, #FAF8F5); }
.thumb.t4 { background: linear-gradient(135deg, #E3EFEA, #FAF8F5); }

.live-bottom {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px 14px;
}

.live-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--kl-ink-soft);
  margin: 0;
}

.live-status .wave {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--kl-teal-ink);
  color: #fff;
  display: grid;
  place-items: center;
}

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

@media (max-width: 720px) {
  .live-main {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(180px, 1fr) 140px auto auto;
  }
  .slide-stage { grid-column: 1; grid-row: 1; }
  .self-tile { grid-column: 1; grid-row: 2; }
  .thumbs-row { grid-column: 1; grid-row: 3; }
  .script-panel { grid-column: 1; grid-row: 4; max-height: none; }
}

/* ========== PANEL QUESTIONS ========== */
.screen-panel {
  height: 100%;
  padding: 12px 18px 16px;
  overflow: auto;
}

.panel-shell {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: none;
}

.panel-speaker {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-face {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  background: var(--kl-paper-2);
}

.panel-face.is-speaking {
  box-shadow: 0 0 0 2px var(--kl-paper), 0 0 0 4px var(--kl-teal-ink);
}

.panel-face img,
.bench-seat img,
.panel-self img,
.panel-self video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel-face img {
  transform: scale(1.08);
}

.panel-speaker h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.panel-speaker p {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--kl-ink-soft);
}

.panel-bench {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  flex: none;
}

.bench-seat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--kl-line);
  background: var(--kl-card);
  min-width: 0;
}

.bench-seat.is-speaking {
  border-color: rgba(15, 107, 92, 0.4);
  box-shadow: 0 0 0 3px rgba(15, 107, 92, 0.08);
  background: var(--kl-white);
}

.bench-seat img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: none;
  object-fit: cover;
  transform: scale(1.08);
}

.bench-seat strong {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--kl-ink);
}

.bench-seat span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--kl-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bench-seat .chip {
  height: 18px;
  padding: 0 7px;
  font-size: 9.5px;
}

.panel-main {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: 14px;
}

.panel-left {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.q-card {
  position: relative;
  flex: 1;
  min-height: 160px;
  padding: 20px 20px 16px;
  border-radius: 22px;
  background: var(--kl-white);
  border: 1px solid var(--kl-line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.q-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  pointer-events: none;
  background:
    radial-gradient(55% 90% at 20% 120%, rgba(15, 107, 92, 0.18), transparent 70%),
    radial-gradient(50% 80% at 70% 130%, rgba(201, 162, 90, 0.16), transparent 72%);
}

.q-card .kicker {
  position: relative;
  color: var(--kl-teal-ink);
}

.q-text {
  position: relative;
  margin: 12px 0 0;
  font-family: var(--kl-news);
  font-size: clamp(18px, 2.1vw, 26px);
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--kl-ink);
}

.q-wave {
  position: relative;
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
}

.q-wave i {
  width: 3px;
  border-radius: 3px;
  background: var(--kl-teal-ink);
  opacity: 0.75;
  animation: wave 1.1s ease-in-out infinite;
}

.q-wave i:nth-child(1) { height: 28%; animation-delay: 0s; }
.q-wave i:nth-child(2) { height: 52%; animation-delay: 0.08s; }
.q-wave i:nth-child(3) { height: 78%; animation-delay: 0.16s; }
.q-wave i:nth-child(4) { height: 42%; animation-delay: 0.24s; }
.q-wave i:nth-child(5) { height: 90%; animation-delay: 0.08s; }
.q-wave i:nth-child(6) { height: 58%; animation-delay: 0.2s; }
.q-wave i:nth-child(7) { height: 34%; animation-delay: 0.12s; }
.q-wave i:nth-child(8) { height: 70%; animation-delay: 0.28s; }
.q-wave i:nth-child(9) { height: 46%; animation-delay: 0.04s; }
.q-wave i:nth-child(10) { height: 62%; animation-delay: 0.18s; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.7); }
  50% { transform: scaleY(1); }
}

.seg-row {
  margin-top: 12px;
  display: flex;
  gap: 5px;
}

.seg-row i {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: var(--kl-paper-2);
}

.seg-row i.on {
  background: var(--kl-ink);
}

.panel-right {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.panel-self {
  position: relative;
  flex: 1;
  min-height: 220px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--kl-line);
  background: #1c2023;
}

.panel-self img,
.panel-self video {
  object-position: 50% 18%;
}

.hud {
  position: absolute;
  z-index: 2;
  border-radius: 14px;
  background: rgba(251, 249, 245, 0.9);
  backdrop-filter: blur(10px);
  padding: 8px 11px;
  font-size: 12px;
}

.hud-stats {
  top: 12px;
  left: 12px;
  display: flex;
  gap: 14px;
}

.hud-stats b {
  display: block;
  font-size: 15px;
  color: var(--kl-ink);
}

.hud-stats span {
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--kl-muted);
  font-weight: 700;
}

.hud-cue {
  top: 12px;
  right: 12px;
  max-width: 160px;
}

.hud-cue .kicker {
  color: var(--kl-teal-ink);
  font-size: 9.5px;
}

.hud-cue p {
  margin: 3px 0 0;
  font-family: var(--kl-serif);
  font-style: italic;
  font-size: 13px;
  line-height: 1.3;
  color: var(--kl-ink);
}

.hud-you {
  left: 12px;
  bottom: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--kl-ink);
}

.hud-you .rec {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--kl-rec);
}

@media (max-width: 900px) {
  .panel-bench {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .panel-main {
    grid-template-columns: 1fr;
  }
  .panel-self {
    min-height: 240px;
  }
}

/* ========== RESULTS ========== */
.screen-results {
  padding: 10px 24px 28px;
  max-width: 760px;
  margin: 0 auto;
}

.results-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
}

.results-pill {
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #E2DCD3;
  background: transparent;
  color: #4A4743;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.coach-entry {
  position: relative;
  isolation: isolate;
  width: 100%;
  margin-top: 12px;
  padding: 22px 16px;
  border: 1px solid var(--kl-line);
  border-radius: 24px;
  background: var(--kl-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.coach-entry::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(30% 60% at 20% 110%, rgba(150, 205, 205, 0.4), transparent 70%),
    radial-gradient(28% 55% at 55% 105%, rgba(210, 215, 160, 0.4), transparent 70%),
    radial-gradient(30% 60% at 85% 110%, rgba(250, 215, 190, 0.35), transparent 70%);
}

.coach-entry > * {
  position: relative;
  z-index: 1;
}

.coach-entry-sub {
  margin: 0;
  font-size: 13px;
  color: var(--kl-ink-soft);
  text-align: center;
}

.results-kicker {
  margin: 22px 0 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kl-muted);
}

.results-title {
  margin: 8px 0 0;
  font-family: var(--kl-news);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.read-card {
  margin-top: 16px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--kl-line);
  background: var(--kl-white);
}

.read-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.read-head h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kl-teal-ink);
}

.read-head span {
  font-size: 12px;
  color: var(--kl-muted);
}

.read-line {
  margin: 10px 0 0;
  font-family: var(--kl-news);
  font-size: 19px;
  line-height: 1.35;
  color: var(--kl-ink);
}

.read-rows {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.read-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 14px;
}

.read-row .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kl-muted);
  padding-top: 2px;
}

.read-row--improve .label {
  color: var(--kl-amber);
}

.metrics {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid var(--kl-line);
  background: var(--kl-card);
  display: grid;
  gap: 14px;
}

.metric {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 4px 12px;
  align-items: center;
}

.metric-label {
  font-size: 14px;
  font-weight: 650;
}

.metric-bar {
  grid-column: 1 / 2;
  height: 6px;
  border-radius: 999px;
  background: var(--kl-paper-2);
  overflow: hidden;
}

.metric-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--kl-ink);
}

.metric-bar.is-weak > span {
  background: var(--kl-apricot);
}

.metric-score {
  grid-row: 1 / 3;
  grid-column: 2 / 3;
  font-family: var(--kl-news);
  font-size: 28px;
  font-weight: 500;
  text-align: right;
  line-height: 1;
}

.metric-sub {
  grid-column: 1 / 2;
  font-size: 12px;
  color: var(--kl-muted);
}

.metric-sub .up { color: var(--kl-teal-ink); }
.metric-sub .down { color: var(--kl-amber); }

.feedback-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.feedback-card {
  padding: 14px 15px;
  border-radius: 18px;
  border: 1px solid var(--kl-line);
  background: var(--kl-white);
}

.feedback-card .kicker {
  color: var(--kl-teal-ink);
}

.feedback-card p {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--kl-ink-soft);
}

.deck-reads {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--kl-line);
  background: var(--kl-card);
}

.deck-reads h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.deck-reads p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--kl-ink-soft);
}

.next-rep {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--kl-teal-tint);
  border: 1px solid rgba(15, 107, 92, 0.12);
}

.next-rep .kicker {
  color: var(--kl-teal-ink);
}

.next-rep p {
  margin: 8px 0 0;
  font-family: var(--kl-serif);
  font-size: 16px;
  line-height: 1.35;
}

.results-actions {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.results-actions .ink-cta {
  width: 100%;
}

.results-actions .ghost-cta {
  width: 100%;
}

@media (max-width: 700px) {
  .feedback-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== COACH ========== */
.screen-coach {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 12px 24px 20px;
  background: var(--kl-paper);
}

.coach-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
}

.coach-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--kl-line);
  background: var(--kl-white);
  display: grid;
  place-items: center;
  color: var(--kl-ink);
}

.coach-pills {
  display: flex;
  gap: 8px;
}

.coach-pill {
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.coach-pill.focus {
  background: var(--kl-teal-tint);
  color: var(--kl-teal-ink);
}

.coach-pill.arc {
  background: var(--kl-apricot-tint);
  color: var(--kl-amber);
}

.coach-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
  padding: 12px 0 24px;
}

.coach-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kl-teal-ink);
}

.coach-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--kl-teal-bright);
  box-shadow: 0 0 0 4px rgba(0, 179, 148, 0.18);
}

.coach-turn {
  margin: 0 0 18px;
  font-family: var(--kl-serif);
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--kl-ink);
}

.coach-turn em {
  font-style: italic;
  color: var(--kl-teal-ink);
}

.coach-turn.is-settling {
  animation: teal-settle 1.4s ease forwards;
}

@keyframes teal-settle {
  0% { color: var(--kl-teal-ink); }
  100% { color: var(--kl-ink); }
}

.user-turn {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--kl-muted);
}

.user-turn q {
  quotes: "“" "”";
}

.coach-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding-top: 8px;
}

.coach-side-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--kl-muted);
}

.coach-side-btn span.icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--kl-line);
  background: var(--kl-white);
  display: grid;
  place-items: center;
  color: var(--kl-ink);
}

.coach-mic {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--kl-teal-ink);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 8px rgba(15, 107, 92, 0.12);
}

/* Analyzing overlay */
.analyzing {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(244, 240, 235, 0.92);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
}

.analyzing p {
  margin: 0;
  font-family: var(--kl-serif);
  font-size: 28px;
  color: var(--kl-ink);
  letter-spacing: -0.02em;
}

.analyzing p::after {
  content: "";
  animation: dots 1.2s steps(3, end) infinite;
}

@keyframes dots {
  0% { content: ""; }
  33% { content: "."; }
  66% { content: ".."; }
  100% { content: "..."; }
}
