:root {
  /* Brand & Accent (Cohere Design System) */
  --cohere-black: #000000;
  --primary: #17171c;
  --on-primary: #ffffff;
  --deep-green: #003c33;
  --dark-navy: #071829;
  --action-blue: #1863dc;
  --coral: #ff7759;
  --soft-coral: #ffad9b;
  --coral-wash: #fff4f1;

  /* Surfaces & Backgrounds */
  --canvas: #ffffff;
  --soft-stone: #eeece7;
  --pale-green: #edfce9;
  --pale-blue: #f1f5ff;
  --card-border: #f2f2f2;
  --surface-card: #ffffff;
  --surface-dark: #17171c;
  --surface-muted: #eeece7;
  --paper: #ffffff;
  --wall: #ffffff;
  --tape: #eeece7;

  /* Text & Rules */
  --ink: #000000;
  --body: #212121;
  --muted: #75758a;
  --muted-slate: #93939f;
  --stone: #75758a;
  --on-dark: #ffffff;
  --on-dark-muted: #93939f;
  --hairline: #d9d9dd;
  --hairline-strong: #d9d9dd;
  --border-light: #e5e7eb;
  --hairline-dark: rgba(255, 255, 255, 0.16);

  /* Semantic */
  --focus-blue: #4c6ee6;
  --form-focus-violet: #9b60aa;
  --danger: #b30000;
  --danger-surface: #fdf2f2;
  --on-danger: #ffffff;
  --success: #003c33;
  --success-surface: #edfce9;
  --on-success: #ffffff;

  /* Typography (Current BaitCheck Fonts preserved per request) */
  --font-display: 'Archivo Narrow', 'Arial Narrow', Impact, sans-serif;
  --font-body: 'Archivo', system-ui, -apple-system, sans-serif;
  --font-mono: 'Consolas', 'JetBrains Mono', ui-monospace, monospace;

  /* Radius Scale */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 32px;
  --r-full: 9999px;

  /* Spacing (8px base) */
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 12px;
  --sp-base: 16px;
  --sp-lg: 24px;
  --sp-xl: 32px;
  --sp-section: 48px;
  --sp-breath: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background-color: var(--canvas);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

html.large-text {
  font-size: 18px;
}

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

button {
  cursor: pointer;
}

a {
  color: var(--action-blue);
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus-blue);
  outline-offset: 2px;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  border-color: var(--form-focus-violet);
  box-shadow: 0 0 0 2px rgba(155, 96, 170, 0.2);
}

/* =========================================================================
   Announcement Bar & Three-Zone Global Navigation
   ========================================================================= */

.safety-ribbon {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cohere-black);
  color: var(--on-dark);
  padding: 8px var(--sp-base);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
}

.top-nav {
  background: var(--canvas);
  color: var(--body);
  border-bottom: 1px solid var(--hairline);
}

.top-nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--sp-md) var(--sp-base);
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.top-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
}

.brand-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 var(--sp-base);
  background: var(--cohere-black);
  color: var(--on-dark);
  border: 1px solid var(--cohere-black);
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.brand-stamp:hover {
  background: var(--primary);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  overflow: hidden;
  background: var(--canvas);
}

.lang-btn,
.sound-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  background: var(--canvas);
  color: var(--body);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.lang-btn {
  border: none;
  border-radius: 0;
  border-right: 1px solid var(--hairline);
}

.lang-btn:last-child {
  border-right: none;
}

.lang-btn.is-active {
  background: var(--primary);
  color: var(--on-primary);
}

.sound-btn.is-muted {
  color: var(--muted);
  border-color: var(--hairline);
  background: var(--soft-stone);
}

.sound-btn:not(.is-muted) {
  border-color: var(--primary);
  color: var(--ink);
}

.text-size-btn {
  min-width: 44px;
  padding: 0 10px;
  font-size: 0.9375rem;
}

.text-size-btn[aria-pressed='true'] {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
}

.tab-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.tab-btn {
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  background: var(--canvas);
  color: var(--body);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  overflow: hidden;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tab-btn:hover:not(.is-active) {
  border-color: var(--primary);
}

.tab-btn .tab-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  opacity: 0.65;
}

.tab-btn.is-active {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
}

.tab-btn.is-active .tab-num {
  opacity: 1;
  color: var(--coral);
}

/* =========================================================================
   Page Shell & Responsive Container Grid
   ========================================================================= */

.page-shell {
  width: 100%;
  background: var(--canvas);
  min-height: calc(100vh - 180px);
}

.workspace-grid {
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--canvas);
}

.stage-column {
  min-width: 0;
}

.companion-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
}

.view-panel {
  width: 100%;
}

.view-panel.is-hidden {
  display: none;
}

@media (min-width: 720px) {
  .workspace-grid {
    max-width: 820px;
    padding: var(--sp-xl) var(--sp-lg);
    gap: var(--sp-xl);
  }
}

@media (min-width: 1024px) {
  .top-nav-inner {
    padding: 12px var(--sp-lg);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--sp-lg);
  }

  .top-nav-row {
    display: contents;
  }

  .brand-stamp {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .tab-bar {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    display: inline-grid;
    grid-auto-flow: column;
    grid-template-columns: repeat(3, auto);
    min-width: 0;
  }

  .nav-controls {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .workspace-grid {
    max-width: 1200px;
    padding: var(--sp-section) var(--sp-lg);
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.72fr);
    align-items: start;
    gap: 32px;
  }

  .companion-column {
    position: sticky;
    top: 24px;
  }
}

@media (min-width: 1440px) {
  .workspace-grid {
    max-width: 1280px;
    gap: 56px;
  }
}

/* =========================================================================
   Editorial Typography & Surface Foundations
   ========================================================================= */

.poster-wall {
  background: var(--canvas);
  color: var(--body);
  padding: var(--sp-lg) var(--sp-base);
}

.newsprint-sheet {
  background: var(--canvas);
  color: var(--body);
  padding: var(--sp-lg) var(--sp-base);
}

@media (min-width: 720px) {
  .poster-wall,
  .newsprint-sheet {
    padding: 0;
  }
}

.paper-card {
  position: relative;
  background: var(--canvas);
  color: var(--body);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: var(--sp-lg);
}

.paper-card.on-dark-shadow,
.paper-card.is-tilted {
  transform: none;
}

.masking-tape {
  display: none;
}

.highlight-mark {
  display: inline-block;
  color: var(--deep-green);
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 4px;
  text-underline-offset: 6px;
}

.eyebrow {
  margin: 0 0 var(--sp-xs);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow--dark {
  color: var(--muted-slate);
}

.display-xl {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--cohere-black);
}

.display-md {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--cohere-black);
}

.title-card {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--cohere-black);
}

.body-lg {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--body);
}

.body-md {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--body);
}

.caption-txt {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--muted);
}

.mono-tabular {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

/* =========================================================================
   Buttons & Pill CTAs (Cohere button-primary / button-secondary / pill-outline)
   ========================================================================= */

.button-primary,
.button-dark,
.button-ghost-light,
.button-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  min-height: 48px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  text-decoration: none;
  text-align: center;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.button-primary {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
}

.button-primary:hover:not(:disabled) {
  background: var(--cohere-black);
  border-color: var(--cohere-black);
}

.button-dark {
  background: var(--deep-green);
  color: var(--on-primary);
  border-color: var(--deep-green);
}

.button-dark:hover:not(:disabled) {
  background: var(--dark-navy);
  border-color: var(--dark-navy);
}

.button-ghost-light {
  min-height: 44px;
  background: transparent;
  color: var(--body);
  border-color: var(--hairline);
  padding: 10px 20px;
}

.button-ghost-light:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--cohere-black);
}

.button-danger {
  background: var(--danger);
  color: var(--on-danger);
  border-color: var(--danger);
}

.button-full {
  width: 100%;
}

.button-primary:disabled,
.button-dark:disabled,
.button-ghost-light:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.stack-sm {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.stack-md {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.stack-base {
  display: flex;
  flex-direction: column;
  gap: var(--sp-base);
}

.row-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  align-items: center;
}

/* =========================================================================
   Hero Canvas & Challenge Banner
   ========================================================================= */

.challenge-banner {
  background: var(--pale-blue);
  color: var(--cohere-black);
  border: 1px solid var(--hairline);
  border-left: 4px solid var(--action-blue);
  border-radius: var(--r-sm);
  padding: var(--sp-md) var(--sp-base);
  margin-bottom: var(--sp-base);
}

.challenge-banner-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--cohere-black);
}

.incoming-call-card {
  background: var(--canvas);
  color: var(--body);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 48px);
}

.practice-welcome .eyebrow {
  color: var(--muted);
  margin-bottom: var(--sp-md);
}

.practice-welcome .display-xl {
  max-width: 14ch;
  color: var(--cohere-black);
}

.hero-value-prop {
  margin: var(--sp-base) 0 var(--sp-lg);
  max-width: 54ch;
  color: var(--muted);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.45;
}

.practice-welcome .button-primary {
  max-width: 340px;
}

.timed-practice-details {
  margin-top: var(--sp-base);
  text-align: left;
}

.timed-practice-details summary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 4px 0;
  color: var(--action-blue);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.timed-practice-link {
  margin-top: var(--sp-sm);
  max-width: 340px;
  min-height: 48px;
  color: var(--body);
}

.calm-mode-note {
  margin: 0 0 var(--sp-base);
  padding: var(--sp-md) var(--sp-base);
  background: var(--pale-green);
  color: var(--deep-green);
  border: 1px solid rgba(0, 60, 51, 0.2);
  border-radius: var(--r-sm);
  font-size: 0.95rem;
}

/* =========================================================================
   Active Drill Stage & Video / Evidence Frames (Dark Console Aesthetic)
   ========================================================================= */

.drill-top-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-md);
}

.countdown-box {
  background: var(--dark-navy);
  color: var(--on-dark);
  border-radius: var(--r-sm);
  padding: var(--sp-md) var(--sp-base);
  margin-bottom: var(--sp-base);
}

.countdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.countdown-time {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--coral);
  font-variant-numeric: tabular-nums;
}

.countdown-time.is-urgent {
  color: #ff8f8f;
}

.countdown-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: var(--r-full);
  overflow: hidden;
}

.countdown-fill {
  height: 100%;
  width: 100%;
  background: var(--coral);
  border-radius: var(--r-full);
  transition: width 0.1s linear;
}

.countdown-fill.is-urgent {
  background: #ff4d4d;
}

.drill-visual-frame {
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  margin: var(--sp-base) 0;
  padding: var(--sp-base);
  overflow: hidden;
}

.drill-visual--video {
  background: var(--dark-navy);
  color: var(--on-dark);
  border-color: rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.drill-video-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
}

.drill-video-topbar .body-md {
  color: var(--on-dark);
  font-weight: 500;
}

.rec-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 119, 89, 0.18);
  color: var(--soft-coral);
  border: 1px solid rgba(255, 119, 89, 0.45);
  border-radius: var(--r-full);
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  width: fit-content;
}

.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--r-full);
  background: var(--coral);
  animation: rec-blink 1s steps(2, start) infinite;
}

@keyframes rec-blink {
  to {
    opacity: 0.25;
  }
}

.silhouette-box {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--hairline-dark);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.drill-stage-img,
.drill-stage-video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--hairline-dark);
  background: var(--cohere-black);
}

.drill-stage-video,
.sim-evidence-video {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.drill-stage-img--spaced {
  margin-bottom: var(--sp-sm);
}

.drill-visual--chat {
  background: var(--pale-green);
  color: var(--body);
  border-color: rgba(0, 60, 51, 0.18);
}

.chat-bubble-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--deep-green);
  margin-bottom: 8px;
}

.apk-pill-btn {
  width: 100%;
  min-height: 48px;
  margin-top: var(--sp-sm);
  padding: var(--sp-sm) var(--sp-md);
  background: var(--canvas);
  color: var(--cohere-black);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.apk-pill-badge {
  background: var(--danger);
  color: var(--on-danger);
  border-radius: var(--r-xs);
  padding: 3px 8px;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.apk-sim-notice {
  margin-top: var(--sp-sm);
  padding: var(--sp-sm) var(--sp-md);
  background: var(--coral-wash);
  color: var(--body);
  border: 1px solid var(--soft-coral);
  border-radius: var(--r-sm);
  font-size: 0.875rem;
}

.drill-visual--upi {
  background: var(--soft-stone);
  color: var(--body);
  border-color: var(--hairline);
}

.upi-amount-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-sm);
  padding-bottom: var(--sp-sm);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: var(--sp-sm);
}

.upi-amount-big {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--cohere-black);
  font-variant-numeric: tabular-nums;
}

.caption-box {
  background: var(--soft-stone);
  color: var(--body);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--deep-green);
  border-radius: var(--r-sm);
  padding: var(--sp-md) var(--sp-base);
  margin-bottom: var(--sp-base);
}

.caption-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.caption-script {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--cohere-black);
}

.choices-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drill-choice-card {
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  background: var(--canvas);
  color: var(--body);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--sp-md);
  text-align: left;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.choice-letter-badge {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--soft-stone);
  color: var(--cohere-black);
  border: 1px solid var(--hairline);
  border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
}

.choice-label-text {
  flex: 1;
  min-width: 0;
}

.drill-choice-card:hover:not(:disabled) {
  background: var(--soft-stone);
  border-color: var(--primary);
}

.drill-choice-card.is-selected-pass {
  background: var(--pale-green);
  border-color: var(--deep-green);
  color: var(--deep-green);
}

.drill-choice-card.is-selected-pass .choice-letter-badge {
  background: var(--deep-green);
  color: var(--on-primary);
  border-color: var(--deep-green);
}

.drill-choice-card.is-selected-fail {
  background: var(--danger-surface);
  border-color: var(--danger);
  color: var(--danger);
}

.drill-choice-card.is-selected-fail .choice-letter-badge {
  background: var(--danger);
  color: var(--on-danger);
  border-color: var(--danger);
}

.trap-alert-banner {
  margin-top: var(--sp-base);
  background: var(--danger-surface);
  color: var(--danger);
  border: 1px solid rgba(179, 0, 0, 0.35);
  border-left: 4px solid var(--danger);
  border-radius: var(--r-sm);
  padding: var(--sp-base);
}

.safe-pass-banner {
  margin-top: var(--sp-base);
  background: var(--pale-green);
  color: var(--deep-green);
  border: 1px solid rgba(0, 60, 51, 0.28);
  border-left: 4px solid var(--deep-green);
  border-radius: var(--r-sm);
  padding: var(--sp-base);
}

.debrief-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.15;
}

.debrief-body {
  margin: 0 0 var(--sp-md);
  color: var(--body);
  font-size: 0.95rem;
  line-height: 1.5;
}

.call-clue-list,
.file-anatomy {
  margin-top: var(--sp-md);
  padding: var(--sp-md);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
}

.call-clue-list p:last-child,
.file-anatomy p:last-child {
  margin-bottom: 0;
}

.file-anatomy-parts,
.upi-money-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-xs);
  margin: var(--sp-sm) 0;
}

.upi-money-flow {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.file-anatomy-part,
.upi-money-flow-item {
  min-width: 0;
  min-height: 64px;
  padding: var(--sp-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  overflow-wrap: anywhere;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xs);
}

.file-anatomy-part strong,
.upi-money-flow-item strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
}

.file-anatomy-part span,
.upi-money-flow-item span {
  font-size: 0.8rem;
  line-height: 1.3;
}

.file-anatomy-part.is-disguise {
  border-color: var(--coral);
  background: var(--coral-wash);
}

.file-anatomy-part.is-danger,
.upi-money-flow-item.is-danger {
  border-color: var(--danger);
  background: var(--danger-surface);
}

.upi-money-flow-item.is-safe {
  border-color: var(--deep-green);
  background: var(--pale-green);
}

/* =========================================================================
   Split-Flap Tiles & Verdict Ticket
   ========================================================================= */

.split-flap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-sm);
  margin: var(--sp-base) 0;
}

.split-flap-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.split-flap-tile {
  position: relative;
  background: var(--dark-navy);
  color: var(--on-dark);
  border: 1px solid var(--hairline-dark);
  border-radius: var(--r-sm);
  padding: var(--sp-md) var(--sp-xs);
  text-align: center;
  overflow: hidden;
}

.split-flap-val {
  display: block;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1;
  color: var(--on-dark);
  font-variant-numeric: tabular-nums;
}

.split-flap-lbl {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-slate);
}

.verdict-ticket {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--canvas);
  color: var(--body);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  overflow: hidden;
  margin: var(--sp-base) 0;
}

.ticket-stub {
  background: var(--deep-green);
  color: var(--on-dark);
  padding: var(--sp-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
}

.ticket-stub .title-card {
  color: var(--on-dark);
}

.ticket-punch-hole {
  width: 16px;
  height: 16px;
  background: var(--coral);
  border-radius: var(--r-full);
  flex-shrink: 0;
}

.ticket-body {
  padding: var(--sp-base);
}

@media (min-width: 520px) {
  .verdict-ticket {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .ticket-stub {
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.ticket-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: var(--sp-sm);
}

.ticket-drill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
  padding: 10px 12px;
  background: var(--soft-stone);
  border: 1px solid var(--border-light);
  border-radius: var(--r-sm);
}

.status-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-tag--pass {
  background: var(--pale-green);
  color: var(--deep-green);
  border: 1px solid rgba(0, 60, 51, 0.25);
}

.status-tag--fail {
  background: var(--danger-surface);
  color: var(--danger);
  border: 1px solid rgba(179, 0, 0, 0.3);
}

.status-tag--pending {
  background: var(--soft-stone);
  color: var(--body);
  border: 1px solid var(--hairline);
}

.status-tag--warn {
  background: var(--coral-wash);
  color: var(--cohere-black);
  border: 1px solid var(--soft-coral);
}

.ticket-preview-box {
  background: var(--dark-navy);
  border-radius: var(--r-md);
  padding: var(--sp-md);
}

.ticket-preview-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--r-sm);
}

.ticket-preview-hint {
  margin: 0;
  color: var(--on-dark);
  text-align: center;
}

/* =========================================================================
   Link X-Ray Workbench (Tab 2)
   ========================================================================= */

.preset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-sm);
  margin: var(--sp-sm) 0 var(--sp-base);
}

.preset-chip {
  min-height: 44px;
  padding: 8px 14px;
  background: var(--coral-wash);
  color: var(--body);
  border: 1px solid var(--soft-coral);
  border-radius: var(--r-xl);
  font-size: 0.82rem;
  font-weight: 500;
  text-align: left;
  line-height: 1.3;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.preset-chip:hover,
.preset-chip.is-active {
  background: var(--coral);
  color: var(--cohere-black);
  border-color: var(--coral);
}

.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}

.editorial-textarea,
.editorial-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--canvas);
  color: var(--cohere-black);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xs);
  font-size: 0.95rem;
  line-height: 1.45;
  transition: border-color 0.15s ease;
}

.editorial-textarea {
  min-height: 112px;
  resize: vertical;
}

.editorial-input {
  min-height: 48px;
}

.risk-meter-wrap {
  margin: var(--sp-base) 0;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: var(--sp-base);
}

.risk-score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-sm);
}

.risk-bar-track {
  width: 100%;
  height: 10px;
  background: var(--soft-stone);
  border-radius: var(--r-full);
  overflow: hidden;
}

.risk-bar-fill {
  height: 100%;
  background: var(--deep-green);
  border-radius: var(--r-full);
  transition: width 0.25s ease;
}

.risk-bar-fill.is-medium {
  background: var(--coral);
}

.risk-bar-fill.is-high {
  background: var(--danger);
}

.xray-highlight-box {
  background: var(--pale-blue);
  border: 1px solid var(--border-light);
  border-radius: var(--r-sm);
  padding: var(--sp-md);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
  word-break: break-word;
}

mark.hl-danger {
  background: var(--danger);
  color: var(--on-danger);
  padding: 1px 5px;
  border-radius: var(--r-xs);
  font-weight: 500;
}

mark.hl-warn {
  background: var(--coral);
  color: var(--cohere-black);
  padding: 1px 5px;
  border-radius: var(--r-xs);
  font-weight: 500;
}

.upi-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--sp-sm);
  font-size: 0.85rem;
}

.upi-table th,
.upi-table td {
  border-bottom: 1px solid var(--hairline);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.upi-table th {
  width: 34%;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  color: var(--muted);
}

.finding-swatch {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-left: 4px solid var(--coral);
  border-radius: var(--r-sm);
  padding: var(--sp-md);
}

.finding-swatch.is-danger {
  border-left-color: var(--danger);
}

.token-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--sp-sm);
}

.token-chip {
  background: var(--soft-stone);
  color: var(--body);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  overflow-wrap: anywhere;
}

.payment-details {
  display: grid;
  grid-template-columns: minmax(130px, 0.75fr) minmax(0, 1.25fr);
  margin: 0;
  border-top: 1px solid var(--hairline);
}

.payment-details dt,
.payment-details dd {
  margin: 0;
  padding: var(--sp-sm) 0;
  border-bottom: 1px solid var(--hairline);
  overflow-wrap: anywhere;
}

.payment-details dt {
  padding-right: var(--sp-sm);
  color: var(--muted);
  font-weight: 500;
}

.payment-details dd {
  color: var(--cohere-black);
}

.xray-confidence-note,
.cohort-disclosure {
  padding: var(--sp-sm) var(--sp-md);
  background: var(--pale-blue);
  border-left: 3px solid var(--action-blue);
  border-radius: var(--r-xs);
  color: var(--body);
}

/* =========================================================================
   Challenge Creator & Live Report
   ========================================================================= */

.share-url-box {
  background: var(--dark-navy);
  color: var(--on-dark);
  border-radius: var(--r-sm);
  padding: var(--sp-md);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.radio-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-sm);
}

.radio-chip {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  background: var(--canvas);
  color: var(--body);
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
}

.radio-chip.is-active {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
}

.target-presets {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-xs);
  margin-top: var(--sp-sm);
}

.target-presets .radio-chip {
  flex: 1 1 auto;
  padding: 0 var(--sp-md);
}

.report-coaching {
  margin: 0 0 var(--sp-sm) var(--sp-sm);
  padding: var(--sp-sm) var(--sp-md);
  background: var(--soft-stone);
  border-left: 3px solid var(--coral);
  border-radius: var(--r-xs);
}

.report-coaching p {
  margin: 4px 0 0;
  color: var(--body);
  line-height: 1.5;
}

.privacy-note {
  background: var(--pale-blue);
  border: 1px solid var(--border-light);
  border-radius: var(--r-sm);
  padding: var(--sp-sm) var(--sp-md);
  font-size: 0.85rem;
  color: var(--body);
}

.recent-challenge-row {
  background: var(--soft-stone);
  border: 1px solid var(--border-light);
  border-radius: var(--r-sm);
  padding: var(--sp-md);
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.recent-challenge-meta {
  min-width: 0;
  overflow-wrap: anywhere;
}

.recent-challenge-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--sp-sm);
  align-items: stretch;
}

.recent-challenge-actions .button-primary,
.recent-challenge-actions .button-ghost-light {
  min-height: 44px;
  padding: var(--sp-xs) var(--sp-md);
  font-size: 0.85rem;
}

/* =========================================================================
   Companion Sidebar (1930 Playbook + Deep Enterprise Green Cohort Band)
   ========================================================================= */

.playbook-band {
  background: var(--canvas);
  color: var(--body);
  padding: var(--sp-lg);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
}

.swatch-list {
  display: flex;
  flex-direction: column;
  margin-top: var(--sp-md);
}

.swatch-strip {
  padding: var(--sp-md) 0;
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: var(--sp-md);
  align-items: start;
}

.swatch-strip:last-child {
  padding-bottom: 0;
}

.swatch-step-badge {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--r-full);
}

.swatch-step-1 {
  background: var(--deep-green);
  color: var(--on-dark);
}

.swatch-step-2 {
  background: var(--coral);
  color: var(--cohere-black);
}

.swatch-step-3 {
  background: var(--primary);
  color: var(--on-dark);
}

.swatch-title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--cohere-black);
}

.swatch-detail {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.45;
}

.cohort-band {
  background: var(--deep-green);
  color: var(--on-dark);
  padding: var(--sp-lg);
  border-radius: var(--r-md);
}

.cohort-band .display-md {
  color: var(--on-dark);
}

.cohort-band .eyebrow--dark {
  color: var(--soft-coral);
}

.cohort-band .cohort-disclosure {
  background: rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--coral);
  color: rgba(255, 255, 255, 0.88);
}

.cohort-band .split-flap-tile {
  background: rgba(7, 24, 41, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

/* =========================================================================
   Real-Life Scam Simulator Hub & Active Phone Stage (Cohere Product Cards)
   ========================================================================= */

.sim-hub-section {
  margin-top: var(--sp-xl);
  padding-top: var(--sp-xl);
  background: var(--canvas);
  color: var(--body);
  border-top: 1px solid var(--hairline);
}

.sim-hub-header {
  display: grid;
  gap: var(--sp-xs);
  margin-bottom: var(--sp-lg);
}

.sim-hub-title {
  margin: 0;
  color: var(--cohere-black);
}

.sim-hub-sub {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.5;
}

.edu-progress-bar {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 6px;
  margin-bottom: var(--sp-base);
}

.edu-progress-seg {
  height: 6px;
  background: var(--soft-stone);
  border-radius: var(--r-full);
}

.edu-progress-seg.is-done {
  background: var(--deep-green);
}

.edu-progress-seg.is-current {
  background: var(--coral);
}

.edu-audience-wrap,
.sim-filter-disclosure {
  margin: 12px 0;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: var(--canvas);
}

.edu-audience-summary,
.sim-filter-summary {
  min-height: 50px;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: var(--cohere-black);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  list-style-position: inside;
}

.edu-audience-row,
.sim-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 16px;
}

.edu-audience-btn,
.sim-filter-btn {
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--r-xl);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

/* Cohere blog-filter-chip treatment */
.sim-filter-btn {
  background: var(--coral-wash);
  color: var(--cohere-black);
  border: 1px solid var(--soft-coral);
}

.sim-filter-btn.is-active {
  background: var(--coral);
  color: var(--cohere-black);
  border-color: var(--coral);
}

.edu-audience-btn {
  background: var(--canvas);
  color: var(--body);
  border: 1px solid var(--hairline);
}

.edu-audience-btn.is-active {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
}

.edu-guide-card {
  background: var(--canvas);
  color: var(--body);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: var(--sp-lg);
  margin: var(--sp-base) 0;
}

.edu-guide--parent {
  border-top: 4px solid var(--coral);
}

.edu-guide--elder {
  border-top: 4px solid var(--deep-green);
}

.edu-rules-box {
  background: var(--pale-green);
  border: 1px solid rgba(0, 60, 51, 0.2);
  border-radius: var(--r-sm);
  padding: var(--sp-base);
}

.edu-rule-item {
  margin: 0;
  color: var(--cohere-black);
  font-weight: 400;
}

.edu-mini-lesson {
  background: var(--soft-stone);
  border: 1px solid var(--border-light);
  border-radius: var(--r-sm);
  padding: var(--sp-base);
}

.edu-sub-heading {
  margin: var(--sp-lg) 0 var(--sp-sm);
  color: var(--cohere-black);
}

.edu-lesson-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}

.sim-cards-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-base);
}

.sim-cards-grid--elder {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 680px) {
  .sim-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sim-scam-card.is-featured {
    grid-column: 1 / -1;
  }
}

/* Cohere Soft Stone Product Cards */
.sim-scam-card {
  background: var(--soft-stone);
  color: var(--body);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sim-scam-card.is-featured {
  border-color: var(--hairline);
}

.sim-card-thumb {
  position: relative;
  background: var(--dark-navy);
  overflow: hidden;
}

.sim-card-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.sim-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--coral-wash);
  color: var(--cohere-black);
  border: 1px solid var(--soft-coral);
  border-radius: var(--r-full);
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}

.sim-scam-card.is-featured .sim-card-badge {
  background: var(--coral);
  color: var(--cohere-black);
  border-color: var(--coral);
}

.sim-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.sim-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-xs);
  flex-wrap: wrap;
}

.sim-steps-pill {
  color: var(--muted);
  font-size: 0.75rem;
}

.sim-card-title {
  margin: 0;
  color: var(--cohere-black);
}

.sim-card-summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}

.sim-loss-tag {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--hairline);
  color: var(--danger);
  font-size: 0.8rem;
}

.sim-launch-btn {
  min-height: 48px;
  margin-top: auto;
}

.sim-show-more-btn {
  width: auto;
  display: block;
  margin: 16px auto 12px;
  padding: 10px 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--action-blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Active Multi-Step Simulation Stage (Agent-Console Card aesthetic) */
.sim-stage-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
  flex-wrap: wrap;
  margin-bottom: var(--sp-sm);
}

.sim-back-btn {
  min-height: 44px;
  padding: 8px 16px;
}

.sim-training-note {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-left: 3px solid var(--deep-green);
  border-radius: var(--r-sm);
  background: var(--pale-green);
  color: var(--deep-green);
  font-size: 0.92rem;
  line-height: 1.45;
}

.sim-phone-frame {
  background: var(--dark-navy);
  color: var(--on-dark);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin: var(--sp-md) 0 var(--sp-base);
}

.sim-phone-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
  flex-wrap: wrap;
  padding: var(--sp-md) var(--sp-base);
  background: rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid var(--hairline-dark);
}

.sim-phone-channel {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--on-dark);
  overflow-wrap: anywhere;
}

.sim-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 119, 89, 0.2);
  color: var(--soft-coral);
  border: 1px solid rgba(255, 119, 89, 0.45);
  border-radius: var(--r-full);
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.sim-media-stage {
  position: relative;
  background: var(--cohere-black);
}

.sim-evidence-img,
.sim-evidence-video {
  display: block;
  width: 100%;
  height: auto;
}

.sim-pip-self {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(7, 24, 41, 0.85);
  color: var(--soft-coral);
  border: 1px solid rgba(255, 173, 155, 0.45);
  border-radius: var(--r-full);
  padding: 4px 10px;
  font-size: 0.68rem;
  pointer-events: none;
}

.sim-call-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
  flex-wrap: wrap;
  padding: 10px 16px;
  background: rgba(7, 24, 41, 0.92);
  border-top: 1px solid var(--hairline-dark);
}

.sim-call-entity {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--on-dark);
}

.sim-call-num {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--soft-coral);
}

.sim-fake-urlbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #131c2e;
  color: var(--soft-coral);
  border-top: 1px solid var(--hairline-dark);
  overflow-wrap: anywhere;
}

.sim-evidence-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-sm);
  padding: var(--sp-md);
  background: rgba(255, 255, 255, 0.04);
  border-top: 1px solid var(--hairline-dark);
}

.sim-evidence-tools .sim-tool-btn {
  min-height: 44px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--on-dark);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
}

.sim-evidence-tools .sim-tool-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--on-dark);
  border-color: var(--on-dark);
}

.sim-clue-drawer {
  background: var(--soft-stone);
  color: var(--body);
  border-top: 1px solid var(--hairline);
  padding: var(--sp-base);
}

.sim-clue-list,
.sim-bullet-list {
  margin: var(--sp-xs) 0 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.sim-quote-box {
  margin-bottom: var(--sp-base);
}

.sim-question-heading {
  margin: 0 0 var(--sp-sm);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--cohere-black);
}

.sim-tactic-line {
  margin: 0 0 var(--sp-sm);
  font-size: 0.95rem;
}

.sim-safer-box {
  margin: var(--sp-sm) 0 var(--sp-md);
  padding: var(--sp-sm) var(--sp-md);
  background: rgba(255, 255, 255, 0.85);
  border-left: 3px solid var(--deep-green);
  border-radius: var(--r-xs);
  font-size: 0.95rem;
}

.sim-outcome-actions {
  margin-top: var(--sp-sm);
}

.sim-loss-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
  flex-wrap: wrap;
  padding: var(--sp-sm) var(--sp-md);
  background: var(--danger-surface);
  border: 1px solid rgba(179, 0, 0, 0.3);
  border-radius: var(--r-sm);
  color: var(--danger);
}

.sim-anatomy-section {
  padding: var(--sp-base);
  background: var(--soft-stone);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  display: grid;
  gap: var(--sp-xs);
}

.sim-anatomy-section.is-highlight {
  background: var(--pale-green);
  border-color: rgba(0, 60, 51, 0.25);
}

.sim-path-list {
  display: grid;
  gap: var(--sp-xs);
}

.sim-path-row {
  padding: var(--sp-sm) var(--sp-md);
  background: var(--canvas);
  border-left: 3px solid var(--muted);
  border-radius: var(--r-xs);
}

.sim-path-row.is-safe {
  border-left-color: var(--deep-green);
}

.sim-path-row.is-warn {
  border-left-color: var(--danger);
}

.sim-path-row p {
  margin: 4px 0 0;
}

.sim-source-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 8px;
  color: var(--action-blue);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* =========================================================================
   Elder-Safe Mode & Legacy Learning Library
   ========================================================================= */

.is-elder-mode .body-md,
.is-elder-mode .drill-choice-card,
.is-elder-mode .caption-script {
  font-size: 1.125rem;
  line-height: 1.55;
}

.is-elder-mode .drill-choice-card,
.is-elder-mode .button-primary,
.is-elder-mode .button-dark {
  min-height: 60px;
}

.learning-library {
  margin-top: var(--sp-lg);
}

.learning-library-toggle {
  width: 100%;
  min-height: 50px;
  padding: var(--sp-md) var(--sp-base);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: var(--soft-stone);
  color: var(--cohere-black);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
}

.learning-library-toggle::after {
  content: '+';
  float: right;
  color: var(--coral);
  font-size: 1.25rem;
  line-height: 1;
}

.learning-library-toggle[aria-expanded='true']::after {
  content: '−';
}

.learning-library-content {
  display: grid;
  gap: var(--sp-sm);
  padding-top: var(--sp-md);
}

.learning-scenario {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
}

.learning-scenario-toggle {
  display: grid;
  grid-template-columns: 1fr auto;
  width: 100%;
  min-height: 60px;
  padding: var(--sp-md);
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.learning-category {
  grid-column: 1;
  margin-bottom: var(--sp-xs);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.learning-scenario-title {
  grid-column: 1;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.3;
}

.learning-chevron {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--coral);
  font-size: 1.4rem;
}

.learning-scenario-body {
  display: grid;
  gap: var(--sp-md);
  padding: 0 var(--sp-md) var(--sp-md);
}

.learning-story {
  margin: 0;
  padding: var(--sp-md);
  background: var(--soft-stone);
  border-left: 3px solid var(--coral);
  border-radius: var(--r-xs);
  font-size: 0.98rem;
  line-height: 1.55;
}

.learning-question {
  margin: 0;
  font-weight: 500;
}

.learning-choices {
  display: grid;
  gap: var(--sp-sm);
}

.learning-choice {
  min-height: 50px;
  padding: var(--sp-md);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  background: var(--canvas);
  color: var(--body);
  font-size: 0.98rem;
  line-height: 1.4;
  text-align: left;
}

.learning-choice:hover,
.learning-choice:focus-visible {
  background: var(--soft-stone);
  border-color: var(--primary);
}

/* =========================================================================
   Colophon Footer (Cohere Near-Black Footer)
   ========================================================================= */

.colophon-footer {
  background: var(--primary);
  color: var(--on-dark);
  padding: var(--sp-xl) var(--sp-base);
}

.colophon-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.colophon-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  flex-wrap: wrap;
}

.colophon-brand .brand-stamp {
  background: var(--canvas);
  color: var(--cohere-black);
  border-color: var(--canvas);
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--coral);
}

.colophon-copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted-slate);
  max-width: 68ch;
  line-height: 1.5;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* =========================================================================
   Mobile Breakpoints (<720px and <425px) - Touch Targets >=44px & Zero Overflow
   ========================================================================= */

@media (max-width: 719px) {
  body {
    padding-bottom: 84px;
  }

  .safety-ribbon {
    position: relative;
    padding: 8px 12px;
    font-size: 0.7rem;
  }

  .top-nav-inner {
    padding: 10px 12px;
    gap: 8px;
  }

  .brand-stamp {
    min-height: 44px;
    padding: 0 12px;
    font-size: 0.95rem;
  }

  .nav-controls {
    gap: 4px;
  }

  .lang-btn,
  .sound-btn {
    min-height: 44px;
    min-width: 44px;
    padding: 0 8px;
    font-size: 0.75rem;
  }

  .tab-bar {
    position: fixed;
    z-index: 60;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 8px max(10px, env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom));
    gap: 6px;
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
  }

  .tab-btn {
    min-height: 50px;
    padding: 6px 6px;
    font-size: 0.78rem;
  }

  .tab-btn .tab-num {
    display: none;
  }

  .workspace-grid {
    padding: 0;
    gap: 20px;
  }

  .poster-wall,
  .newsprint-sheet {
    padding: 16px 12px 24px;
  }

  .incoming-call-card,
  .paper-card {
    padding: 20px 16px;
    border-radius: var(--r-md);
  }

  .sim-hub-section {
    margin-top: 24px;
    padding-top: 24px;
  }

  .sim-evidence-tools {
    grid-template-columns: minmax(0, 1fr);
  }

  .sim-stage-nav {
    position: sticky;
    top: 0;
    z-index: 4;
    padding: 6px 0 10px;
    background: var(--canvas);
  }

  .companion-column {
    padding: 0 12px 16px;
  }

  .cohort-band {
    display: none;
  }

  .colophon-footer {
    padding-bottom: 24px;
  }
}

@media (max-width: 424px) {
  .brand-stamp {
    padding: 0 10px;
    font-size: 0.88rem;
  }

  .lang-btn,
  .sound-btn {
    padding: 0 6px;
    font-size: 0.72rem;
  }

  .incoming-call-card .display-xl {
    font-size: clamp(2rem, 8.8vw, 2.5rem);
  }

  .sim-card-body {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rec-dot {
    animation: none !important;
  }

  .countdown-fill {
    transition: none !important;
  }
}

/* Clear, calm practice interface */
:root {
  --canvas: #f5f8f6;
  --primary: #155c46;
  --deep-green: #155c46;
  --action-blue: #245e9b;
  --ink: #18332a;
  --body: #263b33;
  --muted: #52665d;
  --hairline: #d7e2dc;
  --border-light: #d7e2dc;
  --pale-green: #e8f4ed;
  --pale-blue: #edf4fa;
}

body {
  background: var(--canvas);
  color: var(--body);
  font-size: 17px;
}

html.large-text { font-size: 19px; }

.safety-ribbon {
  background: #e6f2eb;
  color: #214b39;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: none;
}

.top-nav {
  background: #fff;
  box-shadow: 0 1px 0 var(--hairline);
}
.top-nav-inner { max-width: 1160px; }
.brand-stamp {
  background: transparent;
  color: var(--primary);
  border-color: transparent;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.brand-stamp:hover { background: var(--pale-green); }

.tab-btn {
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: none;
  white-space: nowrap;
}
.tab-icon {
  flex-shrink: 0;
  opacity: 0.78;
}
.tab-btn.is-active {
  background: var(--pale-green);
  color: var(--primary);
  border-color: rgba(21, 92, 70, 0.25);
}
.tab-btn.is-active .tab-icon {
  opacity: 1;
}

.workspace-grid { max-width: 1160px; }
.poster-wall, .newsprint-sheet { background: transparent; }
.incoming-call-card, .paper-card, .sim-scam-card {
  border-color: var(--hairline);
  border-radius: 20px;
  box-shadow: 0 6px 24px rgba(21, 92, 70, 0.05);
}
.incoming-call-card { background: #fff; }

/* Start Page Hero Split Layout */
.practice-welcome {
  border-top: 5px solid #599f7d;
  background: linear-gradient(145deg, #ffffff 42%, #eef7f2 100%);
  padding: clamp(22px, 3.6vw, 38px);
}
.hero-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}
.hero-copy-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  margin-bottom: 14px;
  border-radius: var(--r-full);
  background: var(--pale-green);
  border: 1px solid rgba(21, 92, 70, 0.16);
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.practice-welcome .display-xl {
  max-width: 15ch;
  font-size: clamp(1.95rem, 4vw, 3rem);
  line-height: 1.08;
}
.hero-value-prop {
  margin: 14px 0 18px;
  max-width: 48ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.5;
}
.hero-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.hero-meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: var(--r-full);
  background: #ffffff;
  border: 1px solid var(--hairline);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
}
.hero-cta-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.practice-welcome .button-primary {
  min-height: 54px;
  max-width: 320px;
}
.timed-practice-details {
  margin-top: 4px;
  width: 100%;
}
.timed-practice-details summary {
  min-height: 44px;
  font-size: 0.92rem;
}

.hero-visual-col {
  min-width: 0;
}
.hero-preview-card {
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 22px rgba(21, 92, 70, 0.06);
}
.hero-preview-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero-preview-title {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}
.hero-preview-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.hero-preview-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border-radius: 12px;
  background: #f6faf7;
  border: 1px solid rgba(21, 92, 70, 0.1);
}
.hero-preview-num {
  width: 28px;
  height: 28px;
  border-radius: var(--r-full);
  background: var(--primary);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
}
.hero-preview-txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.hero-preview-step-title {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
}
.hero-preview-step-desc {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.38;
}

.display-xl, .display-md, .title-card {
  color: #173c2d;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.display-xl { font-size: clamp(1.95rem, 4.4vw, 3.1rem); }
.display-md { font-size: clamp(1.4rem, 2.8vw, 1.95rem); }
.eyebrow { font-family: var(--font-body); font-weight: 700; letter-spacing: 0.02em; text-transform: none; }
.highlight-mark {
  display: inline;
  color: var(--primary);
  text-decoration: none;
  background: linear-gradient(to top, rgba(89, 159, 125, 0.28) 38%, transparent 38%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0 3px;
  border-radius: 4px;
}

.button-primary, .button-dark, .button-ghost-light, .button-danger {
  min-height: 50px;
  border-radius: 12px;
  font-size: 0.98rem;
  font-weight: 700;
  text-transform: none;
}
.button-primary, .button-dark { background: var(--primary); border-color: var(--primary); }
.button-primary:hover:not(:disabled), .button-dark:hover:not(:disabled) {
  background: #104a38;
  border-color: #104a38;
}
.button-ghost-light { background: #fff; }

.sim-hub-section {
  margin-top: 22px;
  padding: 24px;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(21, 92, 70, 0.04);
}
.sim-hub-header { margin-bottom: 18px; }
.sim-scam-card.is-featured { grid-column: auto; }
.sim-scam-card {
  background: #fff;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.sim-scam-card:hover {
  border-color: #9dc2b0;
  box-shadow: 0 10px 26px rgba(21, 92, 70, 0.09);
}
.sim-card-thumb {
  background: #edf3ef;
  border-bottom: 1px solid var(--hairline);
}
.sim-card-img {
  aspect-ratio: 16 / 10;
  object-fit: contain;
  padding: 6px;
}
.sim-card-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.sim-card-badge {
  position: static;
  display: inline-flex;
  align-items: center;
  background: var(--coral-wash);
  color: #7c2d12;
  border: 1px solid rgba(255, 119, 89, 0.45);
  border-radius: var(--r-full);
  padding: 4px 10px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.sim-scam-card.is-featured .sim-card-badge {
  background: #ffe8e1;
  color: #7c2d12;
  border-color: rgba(255, 119, 89, 0.55);
}
.sim-card-body {
  padding: 18px;
  gap: 10px;
  line-height: 1.55;
}
.sim-card-title {
  font-size: 1.25rem;
  line-height: 1.25;
}
.sim-steps-pill {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--muted);
}
.sim-loss-tag {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
}

/* Disclosures polish */
.edu-audience-wrap,
.sim-filter-disclosure {
  border-radius: 14px;
  background: #f9fbfa;
  transition: border-color 0.15s ease;
}
.edu-audience-summary,
.sim-filter-summary {
  list-style: none;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
}
.edu-audience-summary::-webkit-details-marker,
.sim-filter-summary::-webkit-details-marker {
  display: none;
}
.edu-audience-summary::after,
.sim-filter-summary::after {
  content: '▾';
  color: var(--primary);
  font-size: 1rem;
  transition: transform 0.15s ease;
}
.edu-audience-wrap[open] .edu-audience-summary::after,
.sim-filter-disclosure[open] .sim-filter-summary::after {
  transform: rotate(180deg);
}

/* Challenge target chips fix: do not stretch last item full-width */
.target-presets .radio-chip {
  flex: 0 1 auto;
  padding: 0 14px;
}

.playbook-band {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  box-shadow: 0 6px 24px rgba(21, 92, 70, 0.04);
}
.cohort-band { display: none !important; }

/* Footer readability fix */
.colophon-footer {
  background: #124c3a;
  color: #ffffff;
}
.mono-tag {
  color: #b7ebd2;
  font-weight: 600;
}
.colophon-copy {
  color: rgba(255, 255, 255, 0.88);
}

@media (min-width: 720px) {
  .hero-split-grid {
    grid-template-columns: minmax(0, 1.18fr) minmax(250px, 0.85fr);
    gap: 28px;
  }
}

@media (min-width: 720px) and (max-width: 1023px) {
  .top-nav-inner { max-width: 860px; }
  .workspace-grid {
    max-width: 860px;
    padding-top: 24px;
  }
  .practice-welcome { padding: 28px; }
  .sim-hub-section { padding: 22px; }
  .playbook-band .swatch-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .playbook-band .swatch-strip {
    border-top: 0;
    border-left: 1px solid var(--hairline);
    padding: 4px 0 4px 14px;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .playbook-band .swatch-strip:first-child {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 719px) {
  body { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .top-nav-inner {
    padding: 8px 12px;
  }
  .tab-bar {
    padding: 8px max(10px, env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-right));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px rgba(21, 92, 70, 0.08);
  }
  .tab-btn {
    flex-direction: column;
    gap: 3px;
    min-height: 54px;
    padding: 6px 4px;
    font-size: 0.72rem;
    line-height: 1.15;
    white-space: normal;
  }
  .practice-welcome {
    padding: 20px 16px;
  }
  .practice-welcome .button-primary {
    max-width: none;
  }
  .hero-preview-card {
    padding: 14px;
  }
  .incoming-call-card, .paper-card { border-radius: 16px; }
  .companion-column { padding-top: 4px; }
  .sim-hub-section { padding: 18px 14px; border-radius: 16px; }
  .sim-cards-grid { gap: 14px; }
  .sim-card-body { padding: 16px; }
  .row-wrap { align-items: stretch; }
  .colophon-footer { padding-bottom: 28px; }
}

@media (max-width: 479px) {
  .file-anatomy-parts {
    grid-template-columns: minmax(0, 1fr);
  }
  .payment-details {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .payment-details dt {
    border-bottom: 0;
    padding-bottom: 2px;
    font-size: 0.82rem;
  }
  .payment-details dd {
    padding-top: 0;
  }
}

@media (max-width: 399px) {
  .preset-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .split-flap-val {
    font-size: 1.35rem;
  }
}

@media (max-width: 424px) {
  .top-nav-inner {
    padding: 8px 10px;
  }
  .brand-stamp {
    padding: 0 6px;
    font-size: 0.88rem;
  }
  .nav-controls {
    gap: 4px;
  }
  .lang-btn {
    min-width: 38px;
    padding: 0 8px;
    font-size: 0.74rem;
  }
  .sound-btn {
    min-width: 40px;
    padding: 0 8px;
    font-size: 0.72rem;
  }
  .text-size-btn {
    min-width: 38px;
    padding: 0 8px;
  }
}

@media (max-width: 359px) {
  .top-nav-inner { padding-right: 8px; padding-left: 8px; }
  .brand-stamp { padding: 0 8px; font-size: 0.86rem; }
  .nav-controls { gap: 3px; }
  .lang-btn, .sound-btn { min-width: 40px; padding-right: 6px; padding-left: 6px; }
  .text-size-btn { min-width: 40px; }
  #sound-toggle-label { display: none; }
  #sound-toggle-btn::before { content: '♪'; font-size: 1rem; }
  .tab-btn { font-size: 0.68rem; }
  .poster-wall, .newsprint-sheet { padding-right: 10px; padding-left: 10px; }
  .practice-welcome .display-xl { font-size: 1.85rem; }
}

/* =========================================================================
   Programmatic Motion & Interaction System (GPU-composited, zero layout shift)
   ========================================================================= */

@keyframes bcFadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bcViewEnter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bcBarSweep {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes bcMarkReveal {
  0% {
    opacity: 0.35;
    box-shadow: 0 0 0 0 rgba(21, 92, 70, 0);
  }
  55% {
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(255, 119, 89, 0.24);
  }
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(255, 119, 89, 0);
  }
}

@keyframes bcHighlightDraw {
  from {
    background-size: 0% 100%;
  }
  to {
    background-size: 100% 100%;
  }
}

@keyframes bcHeroAmbient {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.55;
  }
  50% {
    transform: translate3d(-14px, 10px, 0) scale(1.06);
    opacity: 0.85;
  }
}

@keyframes bcScanSweep {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(260%);
  }
}

@keyframes bcCurrentStepPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.62;
  }
}

.practice-welcome {
  position: relative;
  overflow: hidden;
}

.practice-welcome::before {
  content: '';
  position: absolute;
  top: -35%;
  right: -12%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(89, 159, 125, 0.16) 0%, rgba(89, 159, 125, 0) 70%);
  pointer-events: none;
  animation: bcHeroAmbient 14s ease-in-out infinite;
}

.practice-welcome > * {
  position: relative;
  z-index: 1;
}

.bc-hero-animate .highlight-mark {
  background-repeat: no-repeat;
  background-position: left bottom;
  animation: bcHighlightDraw 560ms cubic-bezier(0.22, 1, 0.36, 1) 240ms both;
}

.bc-view-enter {
  animation: bcViewEnter 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.bc-step-enter {
  animation: bcFadeSlideUp 300ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.bc-feedback-enter {
  animation: bcFadeSlideUp 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.bc-stagger-item {
  animation: bcFadeSlideUp 320ms cubic-bezier(0.22, 1, 0.36, 1) var(--bc-delay, 0ms) both;
}

.xray-highlight-box mark.bc-stagger-item {
  animation: bcMarkReveal 480ms cubic-bezier(0.22, 1, 0.36, 1) var(--bc-delay, 0ms) both;
}

.bc-bar-sweep {
  transform-origin: left center;
  animation: bcBarSweep 640ms cubic-bezier(0.22, 1, 0.36, 1) 80ms both;
}

.bc-scroll-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 360ms cubic-bezier(0.22, 1, 0.36, 1) var(--bc-delay, 0ms),
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1) var(--bc-delay, 0ms),
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.bc-scroll-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Tactile button & card interaction states (zero height alteration on rest) */
.button-primary,
.button-dark,
.button-ghost-light,
.button-danger,
.tab-btn,
.lang-btn,
.sound-btn,
.preset-chip,
.radio-chip,
.drill-choice-card,
.apk-pill-btn,
.sim-filter-btn,
.edu-audience-btn {
  transition:
    transform 150ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 180ms ease;
}

.button-primary:hover:not(:disabled),
.button-dark:hover:not(:disabled),
.preset-chip:hover:not(:disabled),
.drill-choice-card:hover:not(:disabled),
.apk-pill-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button-primary:active:not(:disabled),
.button-dark:active:not(:disabled),
.button-ghost-light:active:not(:disabled),
.tab-btn:active,
.lang-btn:active,
.sound-btn:active,
.preset-chip:active,
.radio-chip:active,
.drill-choice-card:active:not(:disabled),
.apk-pill-btn:active {
  transform: scale(0.985);
}

.sim-scam-card.is-revealed:hover {
  transform: translateY(-2px);
}

.edu-progress-seg {
  transition: background-color 280ms ease, opacity 280ms ease;
}

.edu-progress-seg.is-current {
  animation: bcCurrentStepPulse 2.2s ease-in-out infinite;
}

/* Message Check (X-Ray) scanning feedback */
.xray-loading-status {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 0 2px;
}

.xray-scan-track {
  position: relative;
  width: 100%;
  height: 5px;
  border-radius: var(--r-full);
  background: var(--pale-green);
  overflow: hidden;
}

.xray-scan-bar {
  width: 38%;
  height: 100%;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  animation: bcScanSweep 1.1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Family Practice Report completion progress bar */
.report-progress-wrap {
  width: 100%;
}

.report-progress-track {
  width: 100%;
  height: 10px;
  border-radius: var(--r-full);
  background: var(--pale-green);
  border: 1px solid rgba(21, 92, 70, 0.14);
  overflow: hidden;
}

.report-progress-fill {
  height: 100%;
  border-radius: var(--r-full);
  background: var(--action-blue);
  transition: width 360ms cubic-bezier(0.22, 1, 0.36, 1), background-color 240ms ease;
}

.report-progress-fill.is-complete {
  background: var(--primary);
}

/* Full reduced-motion accessibility compliance */
@media (prefers-reduced-motion: reduce) {
  .practice-welcome::before,
  .bc-hero-animate .highlight-mark,
  .bc-view-enter,
  .bc-step-enter,
  .bc-feedback-enter,
  .bc-stagger-item,
  .xray-highlight-box mark.bc-stagger-item,
  .bc-bar-sweep,
  .edu-progress-seg.is-current,
  .xray-scan-bar {
    animation: none !important;
  }

  .bc-scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .button-primary,
  .button-dark,
  .button-ghost-light,
  .button-danger,
  .tab-btn,
  .lang-btn,
  .sound-btn,
  .preset-chip,
  .radio-chip,
  .drill-choice-card,
  .apk-pill-btn,
  .sim-filter-btn,
  .edu-audience-btn,
  .sim-scam-card,
  .edu-progress-seg,
  .report-progress-fill {
    transition: none !important;
    transform: none !important;
  }
}
