/* ──────────────────────────────────────────────────────────
   Invisible — experience-screens.css
   Illustrated "screenshots" of the five experiences in the
   product-showcase section. Pure HTML/CSS, no images.
   Each screen represents a different surface (SMS, email,
   Slack, voice, browser) to reinforce the multi-channel claim.
   ────────────────────────────────────────────────────────── */

/* ──────────────────────────────────────────────────────────
   Device frames — replaces the stylized browser chrome with
   a realistic MacBook laptop or iPhone.

   .product-mock = laptop bezel (used by all panels except SMS)
   .device.device--phone = phone bezel (used by SMS panels)
   ────────────────────────────────────────────────────────── */

/* === DESKTOP BROWSER FRAME === */
/* A clean, high-contrast browser window. Strong dark border,
   crisp corners, vibrant macOS traffic-light dots, white interior.
   Replaces the MacBook bezel — better at any size. */
.product-mock {
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  margin: 0 auto;
  max-width: clamp(620px, 92%, 980px);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 32px 64px -18px rgba(18, 28, 26, 0.32);
}

/* Browser chrome bar — strong divider, vibrant traffic-light dots */
.product-mock-bar {
  border-bottom: 1.5px solid var(--ink);
  background: color-mix(in oklab, var(--surface-warm) 35%, var(--white));
  border-radius: 0;
}

.product-mock-bar span:nth-of-type(1) { background: #ff5f57; }
.product-mock-bar span:nth-of-type(2) { background: #ffbd2e; }
.product-mock-bar span:nth-of-type(3) { background: #28c840; }

.product-mock-bar .product-mock-url {
  border: 1px solid color-mix(in oklab, var(--ink) 25%, var(--line));
  background: var(--white);
}

/* Screen content — pure white instead of cream paper for that
   crisp Apple-product-shot pop */
.product-mock-body,
.product-mock-body--screen {
  background: var(--white);
  border-radius: 0;
}


/* === PHONE === */
.device--phone {
  /* Cap at 100% so the phone never overflows tiny viewports
     even though its preferred minimum is 280px */
  width: min(clamp(280px, 36%, 340px), 100%);
  margin: 0 auto;
  position: relative;
}

.device--phone .device-frame {
  background: linear-gradient(135deg, #28282a 0%, #0e0e10 100%);
  border-radius: 42px;
  padding: 12px 10px;
  position: relative;
  box-shadow:
    inset 0 0 0 1.5px rgba(255,255,255,0.08),
    inset 0 0 0 4px rgba(0,0,0,0.7),
    0 44px 72px -20px rgba(18, 28, 26, 0.55);
}

/* Right side button (power) */
.device--phone .device-frame::before {
  content: '';
  position: absolute;
  right: -2px;
  top: 28%;
  width: 3px;
  height: 56px;
  background: linear-gradient(180deg, #1a1a1c 0%, #0a0a0c 100%);
  border-radius: 0 2px 2px 0;
}

/* Left side buttons (volume/silent — combined visually) */
.device--phone .device-frame::after {
  content: '';
  position: absolute;
  left: -2px;
  top: 22%;
  width: 3px;
  height: 96px;
  background:
    linear-gradient(180deg,
      #1a1a1c 0%,
      #0a0a0c 16%,
      #1a1a1c 22%,
      #0a0a0c 38%,
      #1a1a1c 100%);
  border-radius: 2px 0 0 2px;
}

.device--phone .device-screen {
  background: var(--white);
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  /* Lock to iPhone aspect ratio so every phone panel is the same
     shape regardless of content. Width is set by .device-frame, this
     fixes the height. */
  aspect-ratio: 9 / 19.5;
  width: 100%;
}

/* Dynamic Island */
.device--phone .device-island {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 82px;
  height: 24px;
  background: #000;
  border-radius: 24px;
  z-index: 3;
}

/* iOS status bar — sits in same row as Dynamic Island, time on left
   and signal/wifi/battery on right with the island floating between */
.device--phone .sms-status {
  height: 38px;
  padding: 0 22px;
  align-items: center;
  background: transparent;
  border-bottom: none;
}

/* === Phone-specific tweaks for the existing SMS components === */
.device--phone .sms-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklab, var(--surface-warm) 35%, var(--white));
}

.device--phone .sms-thread {
  flex: 1;
}

/* === Reusable phone status bar (used by non-SMS phone screens) === */
.phone-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  padding: 0 22px;
  flex-shrink: 0;
}
.phone-statusbar-time {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.phone-statusbar-icons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* === Mobile email (Email screen rendered inside .device--phone) ===
   Drop the desktop frame chrome so the email fills the phone screen
   edge-to-edge, then tighten spacing for the narrow viewport. */
.email-frame--phone {
  border: none;
  box-shadow: none;
  border-radius: 0;
  max-width: 100%;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.device--phone .email-toolbar {
  padding: 6px 14px;
}
.device--phone .email-meta {
  padding: 10px 14px 10px;
  gap: 4px;
}
.device--phone .email-body {
  padding: 12px 14px;
  gap: 8px;
  font-size: 11px;
}
.device--phone .email-subject {
  font-size: 14px;
  line-height: 1.25;
}
.device--phone .email-content-card {
  grid-template-columns: 44px 1fr;
}
.device--phone .email-content-title {
  font-size: 12px;
}
.device--phone .email-option {
  padding: 6px 8px;
}
.device--phone .email-option-text {
  font-size: 10px;
}
.device--phone .email-actions-row {
  padding: 8px 12px 14px;
  gap: 6px;
}
.device--phone .email-action {
  font-size: 9px;
  padding: 6px 6px;
}

/* === Phone-specific tweaks for Practice voice screen === */
.device--phone.device--phone .screen--practice {
  background:
    radial-gradient(ellipse at 50% 25%,
      color-mix(in oklab, var(--secondary) 50%, var(--ink)) 0%,
      var(--ink) 65%);
  padding: 0 16px 18px;
  border-radius: 30px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}
.device--phone .screen--practice .practice-header {
  padding-top: 40px;
}
.device--phone .screen--practice .practice-title {
  font-size: 13px;
  line-height: 1.3;
}
.device--phone .screen--practice .practice-transcript {
  max-width: 26ch;
  font-size: 13px;
}
.device--phone .screen--practice .practice-actions {
  gap: 6px;
}
.device--phone .screen--practice .practice-action-btn {
  padding: 7px 12px;
  font-size: 9px;
  letter-spacing: 0.06em;
}


/* ── Mock body container ─────────────────────────────────── */
/* Generous min-height so each screen has room for its real
   content without squishing. Each screen's content is designed
   to fill this height naturally (see screens below). */
.product-mock-body--screen {
  padding: 0;
  min-height: clamp(460px, 44vw, 520px);
  display: flex;
  background: var(--surface-warm);
}
.product-mock-body--screen::before { display: none; }
.product-mock-body--screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Shared screen frame ─────────────────────────────────── */
/* The parent (.product-mock-body--screen) is a flex container
   with min-height set, and align-items: stretch (default). Each
   .screen flex-fills that height — no fixed dimensions, content
   adapts via flex/grid layouts inside. */
.screen {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
  position: relative;
  overflow: hidden;
  font-family: 'Inter', system-ui, sans-serif;
}

/* Subtle dot-grid backdrop used by SMS/practice screens */
.screen--paper {
  background: var(--surface-warm);
  background-image: radial-gradient(circle, oklch(18% 0.008 var(--hue) / 0.06) 1px, transparent 1.5px);
  background-size: 16px 16px;
}


/* ============================================================
   1. CONVERSATION — iMessage-style SMS thread
   Authentic iOS chrome: status bar, centered header,
   read receipt, composer input bar.
   ============================================================ */
.screen--sms {
  align-items: stretch;
  padding: clamp(20px, 2.6vw, 32px) 0;
}

.sms-frame {
  width: clamp(260px, 36%, 340px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(18,28,26,0.04),
    0 24px 56px -28px rgba(18,28,26,0.22);
  display: flex;
  flex-direction: column;
}

/* Thread expands to fill the phone frame so bubbles aren't crowded */
.sms-thread { flex: 1; }

/* iOS status bar — time on left, signal/wifi/battery on right */
.sms-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 18px 4px;
  background: color-mix(in oklab, var(--surface-warm) 55%, var(--white));
}
.sms-status-time {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.sms-status-icons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sms-status-signal,
.sms-status-wifi,
.sms-status-battery {
  display: inline-block;
  background: var(--ink);
  border-radius: 1px;
}
.sms-status-signal { width: 11px; height: 8px; clip-path: polygon(0 75%, 25% 75%, 25% 50%, 50% 50%, 50% 25%, 75% 25%, 75% 0, 100% 0, 100% 100%, 0 100%); }
.sms-status-wifi { width: 11px; height: 8px; mask: radial-gradient(circle at 50% 100%, black 14%, transparent 17%, black 36%, transparent 39%, black 60%, transparent 63%); -webkit-mask: radial-gradient(circle at 50% 100%, black 14%, transparent 17%, black 36%, transparent 39%, black 60%, transparent 63%); }
.sms-status-battery {
  position: relative;
  width: 18px;
  height: 8px;
  border: 1px solid var(--ink);
  background: transparent;
  border-radius: 2px;
  padding: 1px;
}
.sms-status-battery::before {
  content: '';
  display: block;
  width: 70%;
  height: 100%;
  background: var(--ink);
  border-radius: 1px;
}
.sms-status-battery::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 4px;
  background: var(--ink);
  border-radius: 0 1px 1px 0;
}

/* App header — back arrow, centered avatar+name, info button */
.sms-header {
  display: grid;
  grid-template-columns: 24px 1fr 24px;
  align-items: center;
  padding: 6px 12px 10px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklab, var(--surface-warm) 55%, var(--white));
}
.sms-back {
  font-size: 16px;
  color: var(--primary);
  font-weight: 500;
  line-height: 1;
}
.sms-header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.sms-info {
  width: 16px;
  height: 16px;
  border: 1.2px solid var(--primary);
  border-radius: 50%;
  justify-self: end;
  position: relative;
}
.sms-info::after {
  content: 'i';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 11px;
  color: var(--primary);
  font-weight: 500;
  line-height: 1;
}

.sms-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
}
.sms-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sms-header-center strong {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.sms-header-center span {
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 0;
}

.sms-thread {
  flex: 1;
  padding: 10px 10px 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

.sms-day {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: center;
  margin: 2px 0 6px;
}
.sms-day strong {
  color: var(--ink);
  font-weight: 600;
}

.sms-bubble {
  font-size: 11px;
  line-height: 1.4;
  padding: 7px 10px;
  border-radius: 14px;
  max-width: 80%;
  letter-spacing: -0.005em;
  position: relative;
}

.sms-bubble--in {
  background: color-mix(in oklab, var(--secondary) 22%, var(--white));
  color: var(--ink);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.sms-bubble--out {
  background: #0a7aff;
  color: var(--white);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.sms-receipt {
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.04em;
  color: var(--muted);
  align-self: flex-end;
  margin: -2px 4px 4px;
}

.sms-typing {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 9px 12px;
  background: color-mix(in oklab, var(--secondary) 22%, var(--white));
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  margin-top: 2px;
}
.sms-typing span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--ink) 45%, var(--muted));
  display: inline-block;
}

/* Composer bar — plus, text field, send arrow */
.sms-composer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 10px;
  border-top: 1px solid var(--line);
  background: color-mix(in oklab, var(--surface-warm) 35%, var(--white));
}
.sms-composer-add {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--wash);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}
.sms-composer-input {
  flex: 1;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
  padding: 0 10px;
  display: flex;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
}
.sms-composer-send {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 12px;
  line-height: 1;
  flex-shrink: 0;
  font-weight: 700;
}


/* ============================================================
   2. CONTENT + ASSESSMENT — Email view
   Sender avatar, star, content card with thumbnail,
   lettered options, reply/forward action row.
   ============================================================ */
.screen--email {
  background: var(--white);
  padding: clamp(14px, 2vw, 20px);
  align-items: stretch;
  justify-content: center;
}

.email-frame {
  width: 100%;
  max-width: clamp(340px, 70%, 540px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 0 rgba(18,28,26,0.03), 0 18px 40px -24px rgba(18,28,26,0.18);
}

.email-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklab, var(--surface-warm) 35%, var(--white));
}
.email-back {
  font-size: 14px;
  color: var(--muted);
}
.email-actions {
  display: inline-flex;
  gap: 12px;
}
.email-actions span {
  width: 12px;
  height: 12px;
  background: var(--muted);
  border-radius: 2px;
  opacity: 0.6;
}
.email-actions span:nth-child(1) { mask: linear-gradient(180deg, currentColor 0 1.5px, transparent 1.5px 4px, currentColor 4px 5.5px, transparent 5.5px 8px, currentColor 8px 9.5px, transparent 9.5px); -webkit-mask: linear-gradient(180deg, currentColor 0 1.5px, transparent 1.5px 4px, currentColor 4px 5.5px, transparent 5.5px 8px, currentColor 8px 9.5px, transparent 9.5px); }

.email-meta {
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.email-from-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
}

.email-from-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 14px;
  font-weight: 500;
  flex-shrink: 0;
  overflow: hidden;
}
.email-from-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.email-from-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.email-from {
  font-size: 11px;
  color: var(--ink);
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.email-from strong {
  font-weight: 600;
}
.email-from span {
  color: var(--muted);
  font-weight: 400;
  margin-left: 2px;
}

.email-time {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.email-star {
  font-size: 14px;
  color: var(--muted);
  line-height: 1;
}
.email-star--on {
  color: var(--primary);
}

.email-subject {
  font-family: 'Newsreader', serif;
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-top: 2px;
}

.email-body {
  flex: 1;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--body-color);
}

.email-content-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--white);
}

.email-content-thumb {
  background:
    linear-gradient(135deg, var(--primary) 0%, color-mix(in oklab, var(--primary) 45%, var(--secondary)) 100%);
  border-radius: 5px;
  position: relative;
  overflow: hidden;
}
.email-content-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, color-mix(in oklab, var(--white) 30%, transparent) 0%, transparent 40%),
    repeating-linear-gradient(45deg, transparent 0 6px, rgba(255,255,255,0.06) 6px 7px);
}

.email-content-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}
.email-content-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}
.email-content-title {
  font-family: 'Newsreader', serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.005em;
}

.email-quickcheck-label {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.email-quickcheck-label::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--secondary);
}

.email-options {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.email-option {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 11px;
  color: var(--body-color);
  background: var(--white);
}
.email-option-letter {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--wash);
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.email-option-text {
  font-size: 11px;
  color: var(--body-color);
}
.email-option--correct {
  border-color: color-mix(in oklab, var(--secondary) 60%, var(--line));
  background: color-mix(in oklab, var(--secondary) 14%, var(--white));
}
.email-option--correct .email-option-letter {
  background: var(--secondary);
  color: var(--white);
}
.email-option--correct .email-option-text {
  color: var(--ink);
}
.email-option-mark {
  color: var(--secondary);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
}

/* Reply/forward action row at bottom of email */
.email-actions-row {
  display: flex;
  gap: 6px;
  padding: 10px 16px 14px;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.email-action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--body-color);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  padding: 6px 8px;
}
.email-action-icon {
  width: 9px;
  height: 9px;
  border: 1.2px solid var(--body-color);
  border-radius: 1px;
  border-right: none;
  border-bottom: none;
  display: inline-block;
}
.email-action-icon--reply { transform: rotate(-45deg); }
.email-action-icon--forward { transform: rotate(135deg); }
.email-action-icon--reply-all { transform: rotate(-45deg); border-color: var(--body-color); }


/* ============================================================
   3. COACHING — Slack thread with workspace + channel sidebars
   Three-pane layout: workspace switcher, channels, message.
   Adds reactions row, thread reply link, hover icons.
   ============================================================ */
.screen--coaching {
  background: var(--white);
  padding: 0;
  align-items: stretch;
}

.coach-frame {
  width: 100%;
  display: grid;
  grid-template-columns: clamp(36px, 4.6%, 44px) clamp(120px, 18%, 180px) 1fr;
  background: var(--white);
  overflow: hidden;
  min-height: 0;
}

/* Workspace switcher — authentic Slack aubergine (far left) */
.coach-workspace {
  background: #3F0E40;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 8px;
}
.coach-ws-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 11px;
  color: var(--white);
  background: rgba(255,255,255,0.1);
  position: relative;
  letter-spacing: -0.02em;
}
.coach-ws-icon--active {
  background: var(--white);
  color: #3F0E40;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.4);
}
.coach-ws-icon--active::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--white);
  border-radius: 0 1px 1px 0;
}
.coach-ws-icon--add {
  background: transparent;
  border: 1px dashed rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.6);
  font-weight: 400;
}

/* Channels sidebar — authentic Slack purple */
.coach-channels {
  background: #4A154B;
  color: rgba(255,255,255,0.88);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
}
.coach-channels-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.coach-channels-title::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2BAC76;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,0.15);
}
.coach-channels-section {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(255,255,255,0.55);
  margin: 8px 0 2px;
  padding-left: 4px;
}
.coach-channel {
  font-size: 11px;
  color: rgba(255,255,255,0.78);
  padding: 4px 8px;
  border-radius: 5px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.coach-channel--active {
  background: #1164A3;
  color: var(--white);
  font-weight: 500;
}
.coach-channel-presence {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2BAC76;
  margin-right: 7px;
  vertical-align: middle;
  border: 1.5px solid #4A154B;
}

/* Main thread pane */
.coach-thread {
  display: flex;
  flex-direction: column;
  background: var(--white);
  min-width: 0;
  min-height: 0;
}

.coach-channel-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.coach-channel-bar strong {
  font-size: 12px;
  color: var(--ink);
  font-weight: 600;
}
.coach-channel-bar .coach-channel-meta {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-left: auto;
}
.coach-channel-bar .coach-channel-hash {
  color: var(--muted);
  font-size: 13px;
}

.coach-message {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  padding: 14px 16px 16px;
  position: relative;
}

.coach-avatar {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Newsreader', serif;
  font-size: 16px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  overflow: hidden;
}
.coach-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.coach-message-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.coach-byline {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.coach-byline strong {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.coach-byline em {
  font-family: 'DM Mono', monospace;
  font-style: normal;
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: var(--wash);
  padding: 1px 5px;
  border-radius: 3px;
}
.coach-byline span {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0;
}

.coach-card {
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-left-color: var(--primary);
  border-radius: 4px;
  padding: 12px 14px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.coach-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.coach-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.coach-section-label {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.coach-text {
  font-size: 12px;
  line-height: 1.5;
  color: var(--body-color);
}
.coach-text em {
  font-style: italic;
  color: var(--ink);
}

.coach-quote {
  font-family: 'Newsreader', serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
  font-style: italic;
  letter-spacing: -0.005em;
  border-left: 1px solid color-mix(in oklab, var(--secondary) 50%, var(--line));
  padding-left: 12px;
}

.coach-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}
.coach-btn {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--body-color);
}
.coach-btn--primary {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

/* Slack-style reactions row */
.coach-reactions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.coach-reaction {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  color: var(--body-color);
}
.coach-reaction--mine {
  background: color-mix(in oklab, var(--secondary) 18%, var(--white));
  border-color: color-mix(in oklab, var(--secondary) 60%, var(--line));
  color: var(--ink);
}
.coach-reaction-glyph {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.coach-reaction-glyph--check {
  background: var(--secondary);
  position: relative;
}
.coach-reaction-glyph--check::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--white);
  -webkit-mask: linear-gradient(45deg, transparent 35%, currentColor 35% 50%, transparent 50%) center / 60% 1.4px no-repeat,
                linear-gradient(-45deg, transparent 35%, currentColor 35% 60%, transparent 60%) center / 60% 1.4px no-repeat;
}
.coach-reaction-glyph--eye {
  background: var(--primary);
}

.coach-thread-link {
  font-size: 11px;
  color: #1164A3;
  font-weight: 600;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.coach-thread-link::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: #1164A3;
  position: relative;
}

/* Hover icons on right of message */
.coach-message-actions {
  position: absolute;
  top: 8px;
  right: 12px;
  display: flex;
  gap: 4px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 3px 5px;
  box-shadow: 0 1px 0 rgba(18,28,26,0.04), 0 4px 10px -4px rgba(18,28,26,0.12);
}
.coach-message-actions span {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: var(--wash);
}

/* Slack-style compose bar — pinned to bottom of thread for fill + realism */
.coach-composer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 12px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--white);
}
.coach-composer-input {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 11px;
  color: var(--muted);
  background: var(--white);
  display: flex;
  align-items: center;
  min-height: 32px;
}
.coach-composer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.coach-composer-tools {
  display: inline-flex;
  gap: 8px;
}
.coach-composer-tools span {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--wash);
}
.coach-composer-send {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: color-mix(in oklab, var(--secondary) 25%, var(--white));
  border: 1px solid color-mix(in oklab, var(--secondary) 50%, var(--line));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}


/* ============================================================
   4. PRACTICE — Live voice session
   REC indicator, speaker identity, voice orb + waveform,
   live transcript, coaching feedback, action bar.
   ============================================================ */
.screen--practice {
  background:
    radial-gradient(ellipse at 50% 25%, color-mix(in oklab, var(--secondary) 38%, var(--ink)) 0%, var(--ink) 65%);
  color: var(--white);
  padding: clamp(14px, 2vw, 20px);
  align-items: stretch;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(8px, 1.4vw, 14px);
}

.practice-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.practice-header-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.practice-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--secondary) 60%, var(--white));
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.practice-rec {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e85d4a;
  box-shadow: 0 0 0 4px color-mix(in oklab, #e85d4a 30%, transparent);
}
.practice-title {
  font-family: 'Newsreader', serif;
  font-size: clamp(14px, 1.6vw, 17px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--white);
}
.practice-time {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 5px;
  padding: 4px 8px;
}

.practice-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 0 clamp(8px, 1.5vw, 16px);
  min-height: 0;
}

/* Speaker identity tag */
.practice-speaker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
}
.practice-speaker-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, color-mix(in oklab, var(--secondary) 55%, var(--white)) 0%, var(--secondary) 65%);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.practice-speaker-name {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.85);
}

/* Stylized voice "orb" — concentric rings + glowing core */
.practice-orb {
  position: relative;
  width: clamp(56px, 7.5vw, 76px);
  height: clamp(56px, 7.5vw, 76px);
  margin: 4px 0 2px;
}
.practice-orb::before,
.practice-orb::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid color-mix(in oklab, var(--secondary) 60%, transparent);
}
.practice-orb::after {
  inset: 14%;
  border-color: color-mix(in oklab, var(--secondary) 70%, transparent);
}
.practice-orb-core {
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 35%, color-mix(in oklab, var(--secondary) 50%, var(--white)) 0%, var(--secondary) 70%);
  box-shadow: 0 0 24px color-mix(in oklab, var(--secondary) 50%, transparent);
}

/* Waveform — bars of varying heights to suggest live audio */
.practice-waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 22px;
}
.practice-waveform span {
  display: inline-block;
  width: 2px;
  border-radius: 1px;
  background: color-mix(in oklab, var(--secondary) 70%, var(--white));
  opacity: 0.85;
}
.practice-waveform span:nth-child(1) { height: 30%; }
.practice-waveform span:nth-child(2) { height: 55%; }
.practice-waveform span:nth-child(3) { height: 80%; }
.practice-waveform span:nth-child(4) { height: 45%; }
.practice-waveform span:nth-child(5) { height: 92%; }
.practice-waveform span:nth-child(6) { height: 65%; }
.practice-waveform span:nth-child(7) { height: 35%; }
.practice-waveform span:nth-child(8) { height: 78%; }
.practice-waveform span:nth-child(9) { height: 100%; }
.practice-waveform span:nth-child(10) { height: 60%; }
.practice-waveform span:nth-child(11) { height: 28%; }
.practice-waveform span:nth-child(12) { height: 70%; }
.practice-waveform span:nth-child(13) { height: 88%; }
.practice-waveform span:nth-child(14) { height: 42%; }
.practice-waveform span:nth-child(15) { height: 25%; }

.practice-transcript {
  font-family: 'Newsreader', serif;
  font-size: clamp(13px, 1.5vw, 15px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  color: rgba(255,255,255,0.88);
  letter-spacing: -0.005em;
  max-width: 36ch;
}

.practice-feedback {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  backdrop-filter: blur(4px);
}
.practice-feedback-label {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.practice-feedback-label::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
}
.practice-feedback-text {
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(255,255,255,0.88);
}

/* Action bar at bottom: mic, end session, skip */
.practice-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.practice-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 7px 14px;
}
.practice-action-btn--end {
  background: #e85d4a;
  border-color: #e85d4a;
  color: var(--white);
}
.practice-action-icon {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
}
.practice-action-icon--mic {
  width: 6px;
  height: 9px;
  border-radius: 3px;
  background: rgba(255,255,255,0.85);
}
.practice-action-icon--end {
  background: var(--white);
  border-radius: 1px;
  width: 9px;
  height: 2px;
  transform: rotate(135deg);
}


/* ============================================================
   5. GUIDED TUTORIALS — App with floating tutorial overlay
   Salesforce-style header, tab nav, deal cards with content,
   highlighted target column, tooltip with progress + close.
   ============================================================ */
.screen--tutorial {
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.tutorial-app {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--white);
}

/* App header — cloud logo, search, profile pill */
.tutorial-app-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklab, #0070d2 12%, var(--white));
}

.tutorial-app-bar-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tutorial-app-cloud {
  display: inline-block;
  width: 18px;
  height: 11px;
  background: #0070d2;
  border-radius: 999px;
  position: relative;
}
.tutorial-app-cloud::before,
.tutorial-app-cloud::after {
  content: '';
  position: absolute;
  background: #0070d2;
  border-radius: 50%;
}
.tutorial-app-cloud::before {
  width: 8px;
  height: 8px;
  top: -3px;
  left: 3px;
}
.tutorial-app-cloud::after {
  width: 6px;
  height: 6px;
  top: -2px;
  left: 9px;
}

.tutorial-app-bar-search {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  border-radius: 4px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 0 8px;
  max-width: clamp(140px, 50%, 280px);
}
.tutorial-app-search-icon {
  width: 9px;
  height: 9px;
  border: 1.4px solid var(--muted);
  border-radius: 50%;
  position: relative;
}
.tutorial-app-search-icon::after {
  content: '';
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 4px;
  height: 1.4px;
  background: var(--muted);
  transform: rotate(45deg);
  transform-origin: left;
}
.tutorial-app-search-text {
  font-size: 9.5px;
  color: var(--muted);
  letter-spacing: 0;
}

.tutorial-app-bar-end {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tutorial-app-bar-icon {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: rgba(0,112,210,0.18);
}
.tutorial-app-bar-user {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--primary) 70%, var(--white));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 10px;
}

/* Tab navigation */
.tutorial-app-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.tutorial-app-tab {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 8px 10px 9px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tutorial-app-tab--active {
  color: #0070d2;
  border-bottom-color: #0070d2;
  font-weight: 600;
}

.tutorial-app-body {
  flex: 1;
  display: grid;
  grid-template-columns: clamp(36px, 5%, 48px) 1fr;
  min-height: 0;
}

.tutorial-app-sidebar {
  background: color-mix(in oklab, var(--surface-warm) 60%, var(--white));
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  gap: 8px;
}
.tutorial-app-sidelink {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--wash);
}
.tutorial-app-sidelink--active {
  background: color-mix(in oklab, #0070d2 25%, var(--white));
  border: 1px solid color-mix(in oklab, #0070d2 50%, var(--line));
}

.tutorial-app-main {
  padding: clamp(10px, 1.4vw, 16px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}

.tutorial-app-main-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.tutorial-app-title {
  font-family: 'Newsreader', serif;
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.tutorial-app-subtitle {
  font-family: 'DM Mono', monospace;
  font-size: 9.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.tutorial-app-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  min-height: 0;
}

.tutorial-app-col {
  background: var(--wash);
  border-radius: 6px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid transparent;
  min-width: 0;
}

.tutorial-app-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 2px;
}
.tutorial-app-stage {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.tutorial-app-count {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  color: var(--muted);
  background: var(--white);
  padding: 1px 5px;
  border-radius: 3px;
  min-width: 14px;
  text-align: center;
}

.tutorial-app-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 6px 7px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}
.tutorial-app-card-name {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tutorial-app-card-amount {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.tutorial-app-col--target {
  background: color-mix(in oklab, var(--primary) 8%, var(--white));
  border-color: color-mix(in oklab, var(--primary) 35%, var(--line));
  box-shadow:
    0 0 0 2px color-mix(in oklab, var(--primary) 25%, transparent),
    0 8px 24px -10px color-mix(in oklab, var(--primary) 40%, transparent);
  position: relative;
  z-index: 1;
}
.tutorial-app-col--target .tutorial-app-stage {
  color: var(--primary);
  font-weight: 600;
}

.tutorial-app-add {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(28px, 3.4vw, 36px);
  border: 1px dashed color-mix(in oklab, var(--primary) 50%, var(--line));
  border-radius: 4px;
  background: var(--white);
  color: var(--primary);
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* Cursor pointer near the target — implies user is about to click */
.tutorial-cursor {
  position: absolute;
  /* Positioned to land on top of the target column's add button */
  top: 53%;
  right: clamp(180px, 30%, 300px);
  width: 14px;
  height: 18px;
  z-index: 3;
  pointer-events: none;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 60%, 60% 65%, 80% 100%, 60% 100%, 50% 75%, 25% 90%);
  filter: drop-shadow(0 1px 1px rgba(255,255,255,0.5));
}

/* Floating tutorial tooltip */
.tutorial-tooltip {
  position: absolute;
  bottom: clamp(16px, 2.4vw, 28px);
  right: clamp(16px, 2.4vw, 28px);
  width: clamp(220px, 30%, 280px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow:
    0 1px 0 rgba(18,28,26,0.04),
    0 24px 56px -24px rgba(18,28,26,0.4);
  z-index: 2;
}

/* Pointer arrow connecting tooltip to the highlighted column */
.tutorial-tooltip::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 32px;
  width: 14px;
  height: 14px;
  background: var(--white);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: rotate(45deg);
}

.tutorial-tooltip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tutorial-step {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tutorial-step::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
}
.tutorial-close {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  border-radius: 3px;
}

.tutorial-tip {
  font-family: 'Newsreader', serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.tutorial-progress {
  display: flex;
  gap: 4px;
  margin-top: 2px;
}
.tutorial-progress span {
  flex: 1;
  height: 2px;
  border-radius: 1px;
  background: var(--wash);
}
.tutorial-progress span.is-done {
  background: var(--primary);
}

.tutorial-tooltip-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}
.tutorial-skip {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.tutorial-next {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--ink);
  padding: 6px 10px;
  border-radius: 5px;
  font-weight: 600;
}


/* ── AI-TOOL CHAT VARIANT (used by AI > In-tool panel) ──────
   Reuses the .tutorial-app outer chrome but swaps the body for
   a Claude-style chat thread with a tooltip overlaid on top. */
.tutorial-aitool-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.tutorial-aitool-logo {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.tutorial-aitool-model {
  font-family: 'DM Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px 8px;
  justify-self: end;
}
.tutorial-aitool-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px clamp(16px, 2vw, 24px) 0;
  gap: 14px;
  overflow: hidden;
}
.tutorial-aitool-msg {
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  max-width: 80%;
}
.tutorial-aitool-msg--user {
  align-self: flex-end;
  background: var(--wash);
  padding: 8px 12px;
  border-radius: 14px;
  border-bottom-right-radius: 4px;
  color: var(--ink);
}
.tutorial-aitool-msg--ai {
  align-self: flex-start;
  color: var(--body-color);
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  max-width: 90%;
}
.tutorial-aitool-msg--ai > .tutorial-aitool-avatar {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background:
    radial-gradient(circle at 35% 30%, color-mix(in oklab, var(--primary) 70%, var(--white)) 0%, var(--primary) 70%);
  margin-top: 2px;
}
.tutorial-aitool-msg--ai p {
  margin: 0;
}
.tutorial-aitool-msg--ai p + p { margin-top: 6px; }
.tutorial-aitool-msg em { font-style: italic; color: var(--ink); }

.tutorial-aitool-input {
  margin: auto clamp(16px, 2vw, 24px) clamp(16px, 2vw, 22px);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(18,28,26,0.03);
}
.tutorial-aitool-input-text {
  font-size: 11.5px;
  color: var(--ink);
  letter-spacing: -0.005em;
  flex: 1;
}
.tutorial-aitool-input-send {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}


/* ============================================================
   6. DASHBOARD — Manager rollup / metrics view
   Used by Roll-up (Startup) and Measure (AI) tabs.
   ============================================================ */
.screen--dashboard {
  background: var(--white);
  padding: clamp(14px, 2vw, 20px);
  align-items: stretch;
  justify-content: center;
}

.dash-frame {
  width: 100%;
  max-width: clamp(380px, 80%, 620px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 0 rgba(18,28,26,0.03), 0 18px 40px -24px rgba(18,28,26,0.18);
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.dash-header-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.dash-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dash-eyebrow::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
}
.dash-title {
  font-family: 'Newsreader', serif;
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.dash-filter {
  font-family: 'DM Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--body-color);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 5px 9px;
  white-space: nowrap;
}

.dash-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}
.dash-metric {
  background: var(--white);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dash-metric-label {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.dash-metric-value {
  font-family: 'Newsreader', serif;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.dash-metric-delta {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--secondary);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.dash-metric-delta--down { color: var(--primary); }

.dash-table {
  flex: 1;
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dash-table-title {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.dash-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(70px, 28%, 130px) 36px;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.dash-row:last-child { border-bottom: none; }
.dash-row-label {
  font-size: 11.5px;
  color: var(--ink);
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-row-bar {
  height: 5px;
  border-radius: 999px;
  background: var(--wash);
  overflow: hidden;
  display: block;
}
.dash-row-bar > span {
  display: block;
  height: 100%;
  background: var(--secondary);
  border-radius: 999px;
}
.dash-row-bar--accent > span { background: var(--primary); }
.dash-row-value {
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  color: var(--body-color);
  text-align: right;
  font-weight: 600;
}

.dash-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  background: color-mix(in oklab, var(--surface-warm) 25%, var(--white));
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.dash-footer-link {
  color: var(--primary);
  font-weight: 600;
}


/* ============================================================
   7. ROLEPLAY — Conversational text-based practice
   Used on the sales-enablement Coaching panel. A chat-style
   practice session where the rep texts back-and-forth with an
   AI roleplaying as a buyer, with inline coach interjections.
   ============================================================ */
.screen--roleplay {
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.roleplay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1.5px solid var(--line);
  background: var(--white);
  gap: 16px;
}

.roleplay-header-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.roleplay-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.roleplay-rec {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e85d4a;
  box-shadow: 0 0 0 4px color-mix(in oklab, #e85d4a 30%, transparent);
}

.roleplay-title {
  font-family: 'Newsreader', serif;
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.roleplay-scenario {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 8px;
  background: color-mix(in oklab, var(--surface-warm) 50%, var(--white));
  border: 1.5px solid var(--line);
  border-radius: 999px;
}

.roleplay-scenario-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--secondary) 65%, var(--ink));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.roleplay-scenario-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.roleplay-scenario-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
}

.roleplay-scenario-role {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.roleplay-thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px;
  overflow: hidden;
}

.roleplay-msg {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  max-width: 78%;
}

.roleplay-msg--mine {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.roleplay-avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--white);
  flex-shrink: 0;
}

.roleplay-avatar--cfo {
  background: color-mix(in oklab, var(--secondary) 65%, var(--ink));
}

.roleplay-bubble {
  border-radius: 14px;
  padding: 9px 13px;
  font-size: 12.5px;
  line-height: 1.5;
  letter-spacing: -0.005em;
}

.roleplay-bubble--them {
  background: color-mix(in oklab, var(--surface-warm) 60%, var(--white));
  border: 1.5px solid color-mix(in oklab, var(--ink) 12%, var(--line));
  color: var(--ink);
  border-bottom-left-radius: 4px;
}

.roleplay-bubble--mine {
  background: var(--ink);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

/* Inline coach tip — separates "you and the buyer" from "coach speaking to you" */
.roleplay-coach {
  align-self: stretch;
  background: color-mix(in oklab, var(--secondary) 14%, var(--white));
  border: 1.5px solid color-mix(in oklab, var(--secondary) 55%, var(--line));
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 4px 0;
  position: relative;
}

.roleplay-coach::before {
  content: '';
  position: absolute;
  left: -1.5px;
  top: -1.5px;
  bottom: -1.5px;
  width: 4px;
  background: var(--secondary);
  border-radius: 10px 0 0 10px;
}

.roleplay-coach-label {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.roleplay-coach-label::after {
  content: 'live tip';
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
}

.roleplay-coach-text {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink);
}

.roleplay-coach-text em {
  font-style: italic;
  color: var(--secondary);
  font-weight: 600;
}

.roleplay-composer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1.5px solid var(--line);
  background: color-mix(in oklab, var(--surface-warm) 30%, var(--white));
}

.roleplay-composer-input {
  flex: 1;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  padding: 10px 14px;
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: -0.005em;
}

.roleplay-composer-send {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}


/* ── Responsive: keep things legible on narrow screens ──
   Compact rather than hide where possible — preserves the visual
   signal that each screen is conveying, even on tight viewports. */
@media (max-width: 720px) {
  .screen { font-size: 92%; }
  .sms-frame { width: 70%; max-width: 280px; }
  .email-frame { max-width: 96%; }

  /* Slack workspace strip stays; channels collapse to icon-only
     so the recognizable Slack chrome survives at narrow widths */
  .coach-frame {
    grid-template-columns:
      clamp(32px, 8%, 40px)
      clamp(36px, 10%, 48px)
      1fr;
  }
  .coach-channels {
    padding: 12px 4px;
    align-items: center;
    gap: 8px;
  }
  .coach-channels-title,
  .coach-channels-section,
  .coach-channel-presence { display: none; }
  .coach-channel {
    width: 26px;
    height: 26px;
    padding: 0;
    overflow: hidden;
    text-indent: -999px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 5px;
  }
  .coach-channel--active { background: #1164A3; }

  .tutorial-tooltip { width: 56%; }
  .tutorial-cursor { display: none; }
}

@media (max-width: 520px) {
  /* Pipeline scales down rather than dropping columns —
     keeps all 4 stages visible as a real CRM pipeline */
  .tutorial-app-grid { gap: 6px; }
  .tutorial-app-stage { font-size: 8px; letter-spacing: 0.06em; }
  .tutorial-app-card { height: clamp(16px, 2.4vw, 22px); padding: 4px; }
  .tutorial-app-card-name { font-size: 8.5px; }
  .tutorial-app-card-amount { font-size: 8px; }
  .tutorial-app-add { font-size: 8px; height: clamp(18px, 2.8vw, 24px); }
  .tutorial-tooltip { left: clamp(12px, 4vw, 20px); right: clamp(12px, 4vw, 20px); width: auto; }
  .tutorial-tooltip::before { left: 50%; transform: translateX(-50%) rotate(45deg); }

  /* Waveform: fewer bars + slightly shorter, instead of hiding */
  .practice-waveform { gap: 2px; height: 18px; }
  .practice-waveform span:nth-child(n+9) { display: none; }
}
