/* Attune — Fluent-inspired design system
   Nods to Microsoft Learn / AI Builder aesthetic while adding warmth for a coaching context.
*/

:root {
  /* Fluent-inspired palette */
  --brand-primary: #0F6CBD;         /* Fluent communicationBlue */
  --brand-primary-hover: #115EA3;
  --brand-primary-pressed: #0F548C;
  --brand-tint-40: #E8F3FC;
  --brand-tint-20: #CFE4FA;

  /* Warm accent — "intuition" signal */
  --accent-warm: #C05621;           /* coral/amber for humanity */
  --accent-warm-soft: #F7E7DC;
  --accent-warm-tint: #FDF4EE;

  /* Semantic */
  --pos: #107C10;
  --pos-soft: #DFF6DD;
  --neu: #605E5C;
  --neu-soft: #F3F2F1;
  --neg: #A4262C;
  --neg-soft: #FDE7E9;
  --warn: #B7791F;
  --warn-soft: #FEF5E7;

  /* Neutrals — Fluent grey ramp */
  --grey-2:  #FAF9F8;
  --grey-6:  #F3F2F1;
  --grey-10: #EDEBE9;
  --grey-20: #E1DFDD;
  --grey-30: #C8C6C4;
  --grey-40: #A19F9D;
  --grey-60: #605E5C;
  --grey-80: #323130;
  --grey-100:#201F1E;

  --bg: #ffffff;
  --bg-alt: #FAF9F8;
  --bg-canvas: #F5F5F5;
  --sidebar-bg: #FAF9F8;
  --border: #E1DFDD;
  --border-strong: #C8C6C4;

  --text: #242424;
  --text-secondary: #424242;
  --text-tertiary: #616161;
  --text-quaternary: #8A8886;

  /* Type — Segoe stack like MS Learn */
  --font-sans: "Segoe UI Variable", "Segoe UI", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --font-mono: "Cascadia Code", "SF Mono", "Menlo", "Consolas", monospace;
  --font-serif: "Sitka Text", "Cambria", Georgia, serif;

  /* Elevation */
  --shadow-2: 0 1px 2px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-4: 0 2px 4px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.08);
  --shadow-8: 0 4px 8px rgba(0,0,0,0.04), 0 8px 16px rgba(0,0,0,0.10);
  --shadow-16:0 8px 16px rgba(0,0,0,0.06), 0 16px 32px rgba(0,0,0,0.12);

  --radius-sm: 2px;
  --radius: 4px;
  --radius-lg: 8px;
  --radius-xl: 12px;

  --sidebar-w: 260px;
  --topbar-h: 48px;
}

/* Reset-ish */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Prevent iOS/Android rubber-band horizontal scroll from an accidental
     wide child anywhere in the tree. */
  overflow-x: hidden;
}

button { font-family: inherit; cursor: pointer; }
a { color: var(--brand-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Tap targets: iOS Human Interface Guidelines (44x44pt) and Android Material
   Design (48x48dp) both recommend touch targets in this range. Applied broadly
   to clickable primitives so mobile never ships a mis-tappable control. */
@media (max-width: 900px), (pointer: coarse) {
  .btn { min-height: 40px; padding: 8px 14px; }
  .btn--sm { min-height: 34px; padding: 6px 12px; }
  .btn--lg { min-height: 46px; }
  .sidebar__item { min-height: 44px; padding: 10px 16px; }
  .seg__btn { min-height: 36px; padding: 8px 12px; }
  .topbar__avatar { width: 34px; height: 34px; }
}

/* iOS Safari zooms the viewport on focus of any text input/textarea/select with a
   computed font-size below 16px. Force 16px on coarse-pointer/small viewports for
   every form control regardless of what a screen set inline, so focusing a field
   never triggers a jarring auto-zoom. Desktop keeps each screen's original sizing. */
@media (max-width: 900px), (pointer: coarse) {
  input, textarea, select {
    font-size: 16px !important;
  }
}

/* App layout */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: var(--topbar-h) 1fr;
  min-height: 100vh;
  min-height: 100dvh;
}
.topbar {
  grid-column: 1 / -1;
  height: var(--topbar-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
  padding-top: env(safe-area-inset-top);
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 30;
}
.topbar__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}
.topbar__product {
  color: var(--text-tertiary);
  font-weight: 400;
  padding-left: 8px;
  margin-left: 4px;
  border-left: 1px solid var(--border);
}
.topbar__crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-left: 16px;
}
.topbar__crumbs .sep { color: var(--text-quaternary); }
.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.topbar__search {
  display: flex;
  align-items: center;
  background: var(--grey-6);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 4px 10px;
  font-size: 12px;
  color: var(--text-tertiary);
  min-width: 260px;
}
.topbar__search input {
  background: transparent;
  border: none;
  outline: none;
  flex: 1;
  font: inherit;
  color: var(--text);
  margin-left: 6px;
}
.topbar__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--brand-tint-40);
  color: var(--brand-primary-pressed);
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.topbar__avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #0F6CBD, #C05621);
  color: white; display: grid; place-items: center;
  font-size: 11px; font-weight: 600;
  flex: none;
}

/* Hamburger — mobile-only nav trigger. Hidden entirely on desktop widths where the
   sidebar is always visible (see .topbar__menu-btn media rule further down). */
.topbar__menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: var(--radius);
  color: var(--text-secondary);
  flex: none;
  margin-right: 4px;
}
.topbar__menu-btn:active { background: var(--grey-6); }

/* Sidebar */
.sidebar {
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  padding: 12px 0;
  position: sticky;
  top: var(--topbar-h);
  align-self: start;
  height: calc(100vh - var(--topbar-h));
  height: calc(100dvh - var(--topbar-h));
  overflow-y: auto;
}
/* Backdrop shown only while the mobile sidebar drawer is open. */
.sidebar-backdrop { display: none; }
.sidebar__group {
  padding: 8px 16px 4px;
  font-size: 11px;
  color: var(--text-quaternary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-top: 8px;
}
.sidebar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  border-left: 2px solid transparent;
  user-select: none;
}
.sidebar__item:hover { background: var(--grey-6); }
.sidebar__item.active {
  background: var(--brand-tint-40);
  color: var(--brand-primary-pressed);
  border-left-color: var(--brand-primary);
  font-weight: 600;
}
.sidebar__item .icon { width: 16px; height: 16px; flex: none; opacity: 0.85; }
.sidebar__item.active .icon { opacity: 1; }
.sidebar__badge {
  margin-left: auto;
  background: var(--accent-warm);
  color: white;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 999px;
  font-weight: 600;
}

/* Main */
.main {
  background: var(--bg);
  overflow-x: hidden;
  min-width: 0;
}
.page {
  padding: 24px 40px 80px;
  max-width: 1400px;
}
.page--wide { max-width: none; padding: 24px 32px 80px; }
.page__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.page__title {
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.page__subtitle {
  font-size: 14px;
  color: var(--text-tertiary);
  margin: 0;
  max-width: 720px;
}
.page__actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ============================================================================
   Responsive layout — tablets & phones (Android + iOS)
   Breakpoint choices: 900px = tablet/small-laptop (sidebar goes off-canvas),
   600px = phone (page padding/typography compresses further).
   ============================================================================ */
@media (max-width: 900px) {
  .app {
    grid-template-columns: 1fr;
  }
  .topbar__menu-btn { display: inline-flex; }
  .topbar__crumbs { display: none; }
  .topbar__search { display: none; }

  /* Sidebar becomes a fixed off-canvas drawer, toggled by AttuneApp's menuOpen
     state (see main.tsx) which adds/removes the "sidebar--open" class. */
  .sidebar {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    bottom: 0;
    width: min(84vw, 300px);
    height: calc(100dvh - var(--topbar-h));
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    z-index: 45;
    box-shadow: var(--shadow-16);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .sidebar--open { transform: translateX(0); }

  .sidebar-backdrop.is-visible {
    display: block;
    position: fixed;
    inset: var(--topbar-h) 0 0 0;
    background: rgba(0, 0, 0, 0.32);
    z-index: 40;
    -webkit-tap-highlight-color: transparent;
  }

  .page, .page--wide {
    padding: 20px 20px 64px;
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
  .page__title { font-size: 22px; }
  .page__subtitle { font-size: 13px; }
}

@media (max-width: 600px) {
  .page, .page--wide {
    padding: 16px 14px 56px;
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }
  .page__title { font-size: 20px; }
  .page__head { align-items: flex-start; }
  .page__actions { width: 100%; }
  .page__actions .btn { flex: 1 1 auto; justify-content: center; }

  .topbar { gap: 8px; padding: 0 10px; padding-top: env(safe-area-inset-top); }
  .topbar__product { display: none; }
  .topbar__pill span:last-child { display: none; }
  .topbar__pill { padding: 4px 8px; }

  /* Bug fix: on phones narrower than ~390px CSS width (iPhone SE/mini and many
     budget/mid-range Android phones in the 320-384px class), the "EQCompanion ›"
     parent-brand breadcrumb inside .topbar__logo doesn't shrink (flexbox
     min-content), overflowing the topbar and pushing the account avatar/menu
     trigger off-screen — making it untappable. Drop the breadcrumb on narrow
     phones, keeping just the current product name ("Attune"), which reclaims
     enough width for the avatar to stay fully on-screen and reachable. */
  .topbar__parent-crumb { display: none; }
  .topbar__logo { gap: 6px !important; min-width: 0; }
  .topbar__actions { flex: none; }

  /* Any wide auto-layout grid built inline (dashboards, tables-as-cards, etc.)
     collapses to a single column via this shared escape hatch class, applied
     across screens for consistency instead of one bespoke media query per file. */
  .grid-collapse-sm { grid-template-columns: 1fr !important; }

  /* Overview "Grounded in" 4-column credibility strip — collapse the
     1fr auto 1fr auto 1fr auto 1fr grid (4 text blocks + 3 vertical divider
     bars) to a single stacked column and hide the now-meaningless dividers. */
  .grounded-in-strip { grid-template-columns: 1fr !important; gap: 12px !important; }
  .grounded-in-strip__divider { display: none; }

  /* LiveScreen's two side-by-side "video" tiles (coach/mentee) stack instead
     of squeezing to ~150px wide each, which broke the overlay labels/badges. */
  .video-tiles-grid { grid-template-columns: 1fr !important; }

  /* ModelPlayground's 4-across sample-transcript cards */
  .sample-cards-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 420px) {
  .sample-cards-grid { grid-template-columns: 1fr !important; }
}

/* TeamScreen's top "org orb | stat cards" 1fr/2fr split — reuses the same
   escape-hatch pattern as .grid--2 but for a screen-specific custom ratio
   that isn't built from the shared .grid--2/3/4 helpers. */
@media (max-width: 720px) {
  .grid-1to2-collapse { grid-template-columns: 1fr !important; }
}

/* Manager × week heatmap — the 220px-label + 6-week grid can't meaningfully
   compress below ~560px without making cells untappable, so it scrolls
   horizontally inside its card instead (same pattern as .table). */
@media (max-width: 900px), (pointer: coarse) {
  .heatmap-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px; }
}

/* ModelStudio's locale/persona preset-button grids (repeat(3, 1fr)) — three
   short pill-buttons per row don't need a horizontal scroll like the heatmap;
   they collapse cleanly to 2-up, then 1-up on very narrow phones. */
@media (max-width: 600px) {
  .preset-btn-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 380px) {
  .preset-btn-grid { grid-template-columns: 1fr !important; }
}

/* Product insights' "Band distribution across teams" 5-up maturity grid
   (Organisation maturity distribution) — 5 columns is unreadable on phones,
   same overflow class of bug as .grid--3/.grid--4. Collapse to 2-up, then
   3-up isn't needed since there are only 5 bands; 1-up on very narrow phones. */
@media (max-width: 720px) {
  .band-distribution-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 380px) {
  .band-distribution-grid { grid-template-columns: 1fr !important; }
}

/* FrameworkLibrary's catalog header + rows use a raw CSS grid
   (40px 1fr 220px 200px 90px 90px), not a real <table>, so the .card:has(>
   .table) fix below doesn't reach it. Give it its own horizontal-scroll rail
   (each row/header carries its own minWidth:700 so columns never crush). */
@media (max-width: 900px), (pointer: coarse) {
  .framework-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* Fixed-position modal overlays (CustomDimensionModal, AddFrameworkForm /
   framework detail) hardcode padding:40 around the card — fine on desktop,
   but on a 375px phone that leaves ~295px for the card itself. Shrink the
   overlay padding and let the card use full width up to its own max, with
   safe-area clearance for notch/home-indicator devices. */
@media (max-width: 600px) {
  .modal-overlay {
    padding: 16px !important;
    padding-top: calc(16px + env(safe-area-inset-top)) !important;
    padding-bottom: calc(16px + env(safe-area-inset-bottom)) !important;
  }
  .modal-card {
    width: 100% !important;
    max-height: calc(100dvh - 32px) !important;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.12s ease;
}
.btn:hover { background: var(--grey-6); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: linear-gradient(135deg, var(--brand-primary), #1583DB);
  color: white;
  border-color: var(--brand-primary);
  box-shadow: 0 1px 2px rgba(15, 108, 189, 0.25);
}
.btn--primary:hover {
  background: linear-gradient(135deg, var(--brand-primary-hover), #1E93EE);
  border-color: var(--brand-primary-hover);
  box-shadow: 0 4px 10px rgba(15, 108, 189, 0.3);
}
.btn--warm {
  background: linear-gradient(135deg, var(--accent-warm), #D9722F);
  color: white;
  border-color: var(--accent-warm);
  box-shadow: 0 1px 2px rgba(192, 86, 33, 0.25);
}
.btn--warm:hover { box-shadow: 0 4px 10px rgba(192, 86, 33, 0.32); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--brand-primary); }
.btn--ghost:hover { background: var(--brand-tint-40); text-decoration: none; transform: none; }
.btn--sm { padding: 4px 10px; font-size: 12px; }
.btn--lg { padding: 10px 20px; font-size: 14px; }

/* Cards */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
.card--tinted { background: var(--grey-2); }
.card--brand { background: var(--brand-tint-40); border-color: var(--brand-tint-20); }
.card--warm { background: var(--accent-warm-tint); border-color: var(--accent-warm-soft); }

/* Empty states — the "awaiting input / nothing here yet" family used across
   Quickstart, Playground, My sessions, Session report, Growth plan, Trends.
   Lattice-inspired: softer rounding, generous consistent whitespace, calm
   centered layout — one shared shape instead of ad-hoc per-screen styles. */
.empty-state {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 32px;
  border-radius: var(--radius-xl);
}
.empty-state--tall { min-height: 400px; }
.empty-state__icon {
  opacity: 0.65;
  margin-bottom: 16px;
  transition: opacity 0.2s ease;
}
.empty-state__icon--busy { opacity: 0.85; }
.empty-state__title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.empty-state__text {
  font-size: 14px;
  color: var(--text-tertiary);
  max-width: 340px;
  margin: 0 auto;
  line-height: 1.6;
}
.empty-state__desc {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 440px;
  margin: 0 auto 16px;
  line-height: 1.6;
}
.empty-state__status {
  font-size: 13px;
  color: var(--text-secondary);
}
.empty-state__loading {
  font-size: 14px;
  color: var(--text-tertiary);
}

.card__label {
  font-size: 11px;
  color: var(--text-quaternary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 6px;
}
.card__title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--text);
}

/* Notice / Info blocks — like MS Learn */
.notice {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--brand-tint-20);
  background: var(--brand-tint-40);
  font-size: 13px;
  color: var(--text-secondary);
  border-left: 3px solid var(--brand-primary);
}
.notice__icon { flex: none; color: var(--brand-primary); font-weight: 700; }
.notice--warn {
  background: var(--warn-soft);
  border-color: #F5D5A0;
  border-left-color: var(--warn);
}
.notice--warn .notice__icon { color: var(--warn); }
.notice__title { font-weight: 600; color: var(--text); margin-bottom: 2px; }

/* Chips / tags */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: var(--grey-6);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.chip--pos { background: var(--pos-soft); color: var(--pos); border-color: transparent; }
.chip--neg { background: var(--neg-soft); color: var(--neg); border-color: transparent; }
.chip--neu { background: var(--grey-6); color: var(--neu); border-color: transparent; }
.chip--warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.chip--brand { background: var(--brand-tint-40); color: var(--brand-primary-pressed); border-color: transparent; }
.chip--warm { background: var(--accent-warm-soft); color: var(--accent-warm); border-color: transparent; }
/* "Mixed" sentiment — introduced by the Sentiment Lexicon v0.1 series (English + 13
   additional languages). Formalizes the ad-hoc #EDE5F6/#5C2D91 violet inline styles
   used across the lexicon showcase cards into a reusable class. */
.chip--mixed { background: #EDE5F6; color: #5C2D91; border-color: transparent; }
.chip--brand, .chip--warm, .chip--pos { transition: transform 0.12s ease; }
.chip--dot::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}

/* Score bar */
.score {
  display: flex;
  align-items: center;
  gap: 10px;
}
.score__bar {
  flex: 1;
  height: 6px;
  background: var(--grey-10);
  border-radius: 3px;
  overflow: hidden;
}
.score__fill {
  height: 100%;
  background: var(--brand-primary);
  border-radius: 3px;
  transition: width 0.6s ease;
}
.score__fill--pos { background: var(--pos); }
.score__fill--warm { background: var(--accent-warm); }
.score__fill--neg { background: var(--neg); }
.score__val { font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 600; color: var(--text); min-width: 40px; text-align: right; }

/* Grid helpers */
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 720px)  { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr !important; } }
/* !important above is required: several screens (Playground, Inputs, Report,
   Model Feedback) pair className="grid grid--2" with an inline
   style={{ gridTemplateColumns: "1.4fr 1fr" }} for a custom desktop ratio.
   Inline styles otherwise always beat a plain class selector, so without
   !important these custom-ratio splits would never collapse to one column
   on mobile despite carrying the .grid--2 class. */

/* KPI stat */
.stat__label { font-size: 12px; color: var(--text-tertiary); font-weight: 500; }
.stat__value { font-size: 28px; font-weight: 600; color: var(--text); line-height: 1.2; margin-top: 4px; letter-spacing: -0.01em; }
.stat__delta { font-size: 12px; margin-top: 4px; }
.stat__delta--pos { color: var(--pos); }
.stat__delta--neg { color: var(--neg); }

/* Power Orb — Attune's single, unified confidence/health-orb design, used by
   every screen that shows one (Overview hero live-demo, Live session, Session
   report, Team health, Try, Playground). Dual-tone gradient pulled straight
   from the About-page hero illustration (brand blue <-> warm coral), a
   rotating conic-gradient aura ring, and the value + label burned directly
   into the sphere for a bold, "alive" read instead of a flat number under a
   plain ball. `variant="warm"` (via IntuitionOrb) flips which color leads the
   gradient; `.power-orb--busy` pulses/glows faster while a real model call is
   in flight. */
.power-orb-wrap {
  position: relative;
  width: 240px;
  height: 240px;
  display: grid;
  place-items: center;
}
.power-orb-wrap__aura {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #0F6CBD, #7CC5FF, #C05621, #FFC08A, #0F6CBD);
  filter: blur(2px);
  opacity: 0.55;
  animation: power-orb-spin 6s linear infinite;
}
.power-orb-wrap__aura::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--bg);
}
@keyframes power-orb-spin {
  100% { transform: rotate(360deg); }
}
.power-orb {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  position: relative;
  background: radial-gradient(circle at 32% 28%, #9ED6FF 0%, #0F6CBD 42%, #C05621 78%, #8A3D14 100%);
  box-shadow:
    0 0 70px rgba(15, 108, 189, 0.4),
    0 0 40px rgba(192, 86, 33, 0.25),
    inset 0 -10px 30px rgba(138, 61, 20, 0.45),
    inset 0 10px 26px rgba(255,255,255,0.4);
  display: grid;
  place-items: center;
  text-align: center;
  animation: power-orb-breathe 3.2s ease-in-out infinite;
  transition: box-shadow 0.3s ease;
}
.power-orb--busy {
  animation: power-orb-breathe 1.1s ease-in-out infinite;
  box-shadow:
    0 0 90px rgba(15, 108, 189, 0.55),
    0 0 55px rgba(192, 86, 33, 0.4),
    inset 0 -10px 30px rgba(138, 61, 20, 0.45),
    inset 0 10px 26px rgba(255,255,255,0.4);
}
@keyframes power-orb-breathe {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.045); }
}
.power-orb__value {
  font-size: 52px;
  font-weight: 800;
  color: white;
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 16px rgba(0,0,0,0.25);
}
.power-orb__value sup {
  font-size: 20px;
  font-weight: 700;
  margin-left: 2px;
  opacity: 0.85;
}
.power-orb__label {
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.2);
}
.power-orb-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--brand-primary), var(--accent-warm));
  color: white;
  box-shadow: 0 4px 16px rgba(15, 108, 189, 0.3);
}
.power-orb-badge__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: white;
  box-shadow: 0 0 0 0 rgba(255,255,255,0.7);
  animation: pulse-dot 1.4s ease-out infinite;
}

/* Small pulsing dot */
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--pos);
  box-shadow: 0 0 0 0 rgba(16, 124, 16, 0.5);
  animation: pulse-dot 1.6s ease-out infinite;
  display: inline-block;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(16, 124, 16, 0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(16, 124, 16, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 124, 16, 0); }
}

/* Tables — MS Learn table feel */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table th, .table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.table th {
  color: var(--text-tertiary);
  font-weight: 600;
  font-size: 12px;
  background: var(--grey-2);
}
.table tr:hover td { background: var(--grey-2); }

/* Every table on the site is dropped, unwrapped, straight into a
   `.card { padding:0; overflow:hidden }` shell — fine on desktop where columns
   fit, but on a phone that overflow:hidden silently clips columns instead of
   letting them be reached. :has() lets the card itself become a horizontally
   scrollable viewport for its table on small/coarse-pointer screens without
   touching every screen file individually. */
@media (max-width: 900px), (pointer: coarse) {
  /* !important is required: every call site sets overflow:hidden via an inline
     style={{}} prop, which otherwise always wins over a plain CSS class. */
  .card:has(> .table) {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .card:has(> .table) > .table {
    min-width: 560px;
  }
}
@media (max-width: 600px) {
  .table th, .table td { padding: 8px 10px; font-size: 12.5px; }
}

/* Code / API */
.code {
  font-family: var(--font-mono);
  background: #1F1F1F;
  color: #E5E5E5;
  padding: 16px;
  border-radius: var(--radius);
  font-size: 12.5px;
  line-height: 1.6;
  overflow: auto;
}
.code .tok-key   { color: #79C0FF; }
.code .tok-str   { color: #A5D6A7; }
.code .tok-num   { color: #FFB86C; }
.code .tok-com   { color: #7A7A7A; font-style: italic; }
.code .tok-punct { color: #C0C0C0; }

/* Utterance row */
.utt {
  display: grid;
  grid-template-columns: 40px 1fr 200px;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  align-items: start;
  font-size: 13px;
  transition: background 0.12s;
}
.utt:hover { background: var(--grey-2); }
.utt__t { font-family: var(--font-mono); color: var(--text-tertiary); font-size: 11px; padding-top: 3px; }
.utt__speaker {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
  font-size: 12px;
}
.utt__speaker--coach { color: var(--brand-primary); }
.utt__speaker--mentee { color: var(--accent-warm); }
.utt__text { color: var(--text); line-height: 1.55; }
.utt__tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.utt__meta { display: flex; flex-direction: column; gap: 6px; font-size: 11px; }
.utt__meta-row { display: flex; align-items: center; gap: 6px; color: var(--text-tertiary); }
@media (max-width: 600px) {
  /* .utt's real direct children are [.utt__t, an unclassed wrapper div holding
     speaker/text/tags, .utt__meta] — the 200px meta column doesn't fit next to
     text on a phone-width column, so it's dropped to a full-width row below
     instead of squeezing three columns into ~340px of usable width. */
  .utt {
    grid-template-columns: 28px 1fr;
    padding: 10px 12px;
  }
  .utt__meta {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
    padding-left: 40px;
  }
}

/* Emotional arc / sparkline */
.arc {
  width: 100%;
  height: 120px;
  position: relative;
}

/* Heatmap */
.heatmap-cell {
  border-radius: 4px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s;
}
.heatmap-cell:hover { transform: scale(1.08); box-shadow: var(--shadow-4); }

/* Segmented control */
.seg {
  display: inline-flex;
  background: var(--grey-6);
  border-radius: var(--radius);
  padding: 2px;
  gap: 2px;
}
.seg__btn {
  padding: 4px 12px;
  border-radius: 3px;
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}
.seg__btn.active { background: var(--bg); color: var(--text); box-shadow: var(--shadow-2); font-weight: 600; }

/* Radial ring — for scores */
.ring {
  --pct: 75;
  --color: var(--brand-primary);
  width: 72px; height: 72px;
  border-radius: 50%;
  background:
    conic-gradient(var(--color) calc(var(--pct) * 1%), var(--grey-10) 0);
  display: grid;
  place-items: center;
  position: relative;
}
.ring::after {
  content: '';
  position: absolute;
  inset: 8px;
  background: var(--bg);
  border-radius: 50%;
}
.ring__val {
  position: relative;
  font-size: 16px;
  font-weight: 600;
  z-index: 1;
  color: var(--text);
}

/* Talk-time bar */
.talkbar {
  display: flex;
  height: 22px;
  border-radius: 4px;
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  color: white;
}
.talkbar__seg {
  display: grid;
  place-items: center;
  padding: 0 6px;
  transition: flex 0.6s ease;
}

/* Utility */
.mono { font-family: var(--font-mono); }
.hairline { border-top: 1px solid var(--border); }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; min-width: 0; }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }
.text-lg { font-size: 16px; }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-quaternary { color: var(--text-quaternary); }
.font-semi { font-weight: 600; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; }
.mono-num { font-variant-numeric: tabular-nums; }
.tabnum { font-variant-numeric: tabular-nums; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 28px; padding: 24px 0 24px; } }

/* Sign-in split layout — form (with header/footer) on the left, brand
   illustration panel on the right. Collapses to form-only below 900px so
   the illustration never pushes the form (and on-screen keyboard) below
   the fold on mobile — same "decorative panel hides first" convention
   used by most split-screen auth pages. */
.signin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  color: var(--text);
  font-family: var(--font-sans);
}
@media (max-width: 900px) { .signin-shell { grid-template-columns: 1fr; } }
.signin-shell__form {
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--bg);
}
.signin-shell__visual {
  position: relative;
  background: var(--grey-6);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}
@media (max-width: 900px) { .signin-shell__visual { display: none; } }
.signin-shell__visual img {
  width: 100%;
  height: auto;
  max-width: 560px;
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 24px rgba(15, 108, 189, 0.10);
}
.signin-shell__visual-caption {
  position: absolute;
  bottom: 40px;
  left: 48px;
  right: 48px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 420px;
}
.hero__eyebrow {
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.hero__title {
  font-size: 44px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--text);
}
.hero__title em { font-style: normal; color: var(--accent-warm); }
.hero__lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0 0 24px;
  max-width: 560px;
}
@media (max-width: 600px) {
  .hero__title { font-size: 30px; }
  .hero__lede { font-size: 15px; }
}

/* Live session */
.live-shell {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 16px;
  height: calc(100vh - var(--topbar-h) - 48px - 60px);
  min-height: 640px;
}
@media (max-width: 1000px) { .live-shell { grid-template-columns: 1fr; height: auto; } }

.live-video {
  background: #0F1417;
  border-radius: var(--radius-lg);
  color: white;
  padding: 16px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 380px;
}
.video-tile {
  flex: 1;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 30% 40%, rgba(124, 197, 255, 0.15), transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(192, 86, 33, 0.12), transparent 60%),
    #1B2229;
  position: relative;
  overflow: hidden;
}
.video-tile__label {
  position: absolute;
  bottom: 10px; left: 10px;
  background: rgba(0,0,0,0.5);
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

/* Shadow coach card */
.whisper {
  background: linear-gradient(135deg, #FDF4EE 0%, #F7E7DC 100%);
  border: 1px solid var(--accent-warm-soft);
  border-left: 3px solid var(--accent-warm);
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.5;
  animation: whisper-in 0.4s ease;
}
@keyframes whisper-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.whisper__label {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-warm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  display: flex; align-items: center; gap: 6px;
}

/* Dimension meter */
.dim {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.dim:last-child { border: none; }
.dim__head { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 12.5px; }
.dim__name { color: var(--text); font-weight: 500; }
.dim__val { color: var(--text-tertiary); font-variant-numeric: tabular-nums; font-weight: 600; }

/* Section header */
.section-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 32px 0 12px;
}
.section-h__title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}
.section-h__desc {
  font-size: 13px;
  color: var(--text-tertiary);
  margin: 2px 0 0;
}

/* =====================================================================
   2026 MINIMAL — invoked when <body class="ui-minimal">
   ---------------------------------------------------------------------
   Design philosophy: strip Fluent's density and elevation. More whitespace,
   larger type hierarchy, hairline borders, monochrome-first with a single
   accent, no card shadows, generous line-height. Feels like Linear × Vercel
   × Stripe circa 2026 — quiet, confident, precise.
   ===================================================================== */
.ui-minimal {
  --bg: #FBFBFA;
  --bg-alt: #F5F5F4;
  --sidebar-bg: transparent;
  --border: #ECECEA;
  --border-strong: #DEDDDA;
  --grey-2: #FBFBFA;
  --grey-6: #F5F5F4;
  --grey-10: #ECECEA;
  --text: #17161A;
  --text-secondary: #4A4A50;
  --text-tertiary: #7A7A80;
  --text-quaternary: #A5A5AA;
  --shadow-2: none;
  --shadow-4: none;
  --shadow-8: none;
  --shadow-16: 0 10px 40px rgba(0,0,0,0.06);
  --radius: 6px;
  --radius-lg: 10px;
  --sidebar-w: 232px;
  --topbar-h: 56px;
  font-feature-settings: "ss01", "cv01", "cv11";
  letter-spacing: -0.005em;
}
.ui-minimal .topbar {
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.ui-minimal .topbar__logo { font-weight: 600; font-size: 14px; }
.ui-minimal .topbar__product { color: var(--text-quaternary); }
.ui-minimal .topbar__crumbs { display: none; }
.ui-minimal .topbar__search {
  background: var(--grey-6); border-radius: 8px; padding: 5px 12px;
  min-width: 300px;
}
.ui-minimal .topbar__pill { background: transparent; color: var(--text-tertiary); border: 1px solid var(--border); }
.ui-minimal .sidebar { border-right: 1px solid var(--border); padding: 20px 12px; }
.ui-minimal .sidebar__group {
  padding: 16px 8px 6px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-quaternary);
}
.ui-minimal .sidebar__item {
  padding: 8px 10px;
  border-radius: 6px;
  border-left: none;
  margin-bottom: 1px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}
.ui-minimal .sidebar__item:hover { background: var(--grey-6); }
.ui-minimal .sidebar__item.active {
  background: var(--grey-6);
  color: var(--text);
  font-weight: 600;
  border-left: none;
}
.ui-minimal .sidebar__badge {
  background: transparent;
  color: var(--brand-primary);
  border: 1px solid var(--brand-primary);
  font-weight: 600;
  padding: 0 5px;
  font-size: 9px;
  letter-spacing: 0.04em;
}
.ui-minimal .page { padding: 40px 56px 96px; }
.ui-minimal .page--wide { padding: 40px 40px 96px; }
.ui-minimal .page__title {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 8px;
}
.ui-minimal .page__subtitle {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-tertiary);
  max-width: 640px;
  font-weight: 400;
}
.ui-minimal .page__head { margin-bottom: 40px; }
.ui-minimal .section-h { margin: 48px 0 20px; }
.ui-minimal .section-h__title { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.ui-minimal .section-h__desc { font-size: 14px; color: var(--text-tertiary); max-width: 640px; line-height: 1.55; margin-top: 4px; }
.ui-minimal .card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  background: var(--bg);
  box-shadow: none;
}
.ui-minimal .card--tinted { background: var(--grey-6); border-color: transparent; }
.ui-minimal .empty-state { border-radius: 16px; padding: 48px 32px; }
.ui-minimal .empty-state__title { font-size: 16px; letter-spacing: -0.01em; }
.ui-minimal .empty-state__text,
.ui-minimal .empty-state__desc,
.ui-minimal .empty-state__loading { color: var(--text-tertiary); }
.ui-minimal .card--brand { background: color-mix(in oklch, var(--brand-primary) 5%, var(--bg)); border-color: color-mix(in oklch, var(--brand-primary) 15%, transparent); }
.ui-minimal .card--warm { background: color-mix(in oklch, var(--accent-warm) 5%, var(--bg)); border-color: color-mix(in oklch, var(--accent-warm) 15%, transparent); }
.ui-minimal .card__label {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-quaternary);
}
.ui-minimal .card__title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.ui-minimal .stat__value {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.025em;
  font-feature-settings: "tnum";
}
.ui-minimal .stat__label { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-quaternary); font-weight: 600; }
.ui-minimal .btn {
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 500;
  font-size: 13px;
  border-color: var(--border-strong);
  transition: all 0.12s;
}
.ui-minimal .btn:hover { background: var(--grey-6); }
.ui-minimal .btn--primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.ui-minimal .btn--primary:hover { background: #000; border-color: #000; }
.ui-minimal .btn--warm {
  background: var(--accent-warm);
  border-color: var(--accent-warm);
}
.ui-minimal .btn--lg { padding: 10px 22px; font-size: 14px; }
.ui-minimal .chip {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  border-radius: 999px;
  font-weight: 500;
  padding: 3px 10px;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}
.ui-minimal .chip--pos { background: transparent; color: #15803D; border-color: #BBF7D0; }
.ui-minimal .chip--neg { background: transparent; color: #B91C1C; border-color: #FECACA; }
.ui-minimal .chip--neu { background: transparent; color: var(--text-secondary); border-color: var(--border-strong); }
.ui-minimal .chip--warn { background: transparent; color: #A16207; border-color: #FDE68A; }
.ui-minimal .chip--brand { background: transparent; color: var(--brand-primary); border-color: color-mix(in oklch, var(--brand-primary) 30%, transparent); }
.ui-minimal .chip--warm { background: transparent; color: var(--accent-warm); border-color: color-mix(in oklch, var(--accent-warm) 30%, transparent); }
.ui-minimal .hero { padding: 24px 0 48px; border-bottom: 1px solid var(--border); margin-bottom: 48px; }
.ui-minimal .hero__title { font-size: 56px; letter-spacing: -0.03em; line-height: 1.02; font-weight: 600; }
.ui-minimal .hero__lede { font-size: 18px; line-height: 1.55; color: var(--text-secondary); font-weight: 400; }
.ui-minimal .hero__eyebrow { color: var(--text-tertiary); font-weight: 500; letter-spacing: 0.06em; }
.ui-minimal .notice { border-radius: 10px; border-left-width: 2px; padding: 16px 20px; background: var(--grey-6); border-color: var(--border); font-size: 13px; }
.ui-minimal .notice--warn { background: color-mix(in oklch, var(--warn) 6%, var(--bg)); border-color: color-mix(in oklch, var(--warn) 20%, transparent); }
.ui-minimal .notice__title { font-weight: 600; font-size: 13px; letter-spacing: -0.005em; }
.ui-minimal .score__bar { background: var(--grey-10); height: 4px; }
.ui-minimal .score__fill { border-radius: 2px; }
.ui-minimal .table th { background: transparent; text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--text-tertiary); font-weight: 500; padding: 12px 12px; border-bottom: 1px solid var(--border); }
.ui-minimal .table td { padding: 14px 12px; font-size: 13px; }
.ui-minimal .table tr:hover td { background: var(--grey-6); }
.ui-minimal .seg { background: var(--grey-6); border-radius: 8px; padding: 3px; }
.ui-minimal .seg__btn { border-radius: 6px; font-weight: 500; }
.ui-minimal .seg__btn.active { background: var(--bg); box-shadow: 0 1px 2px rgba(0,0,0,0.06); font-weight: 600; }
.ui-minimal .persona-tabs { border-bottom: 1px solid var(--border); margin-bottom: 24px; gap: 4px; }
.ui-minimal .persona-tab { padding: 12px 8px; margin-right: 20px; font-weight: 500; color: var(--text-tertiary); }
.ui-minimal .persona-tab.active { color: var(--text); border-bottom-color: var(--text); font-weight: 600; }
.ui-minimal .heatmap-cell { border-radius: 3px; font-weight: 500; }
.ui-minimal .power-orb-wrap { transform: scale(1.05); }
.ui-minimal .whisper {
  background: var(--grey-6);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent-warm);
  border-radius: 8px;
}
.ui-minimal .live-video { background: #0A0A0B; border-radius: 12px; }
.ui-minimal .video-tile { border-radius: 8px; }
.ui-minimal .utt { padding: 16px 20px; }
.ui-minimal .utt__text { font-size: 14px; line-height: 1.6; }
.ui-minimal .grid { gap: 20px; }
.ui-minimal .code { border-radius: 8px; padding: 20px; font-size: 12px; }
.ui-minimal ::-webkit-scrollbar-thumb { background: var(--border-strong); }

/* Utility */
.ui-minimal .hairline { border-color: var(--border); }
.ui-minimal .dim { padding: 12px 0; border-color: var(--border); }
.ui-minimal .dim__name { font-weight: 500; font-size: 13px; }
.ui-minimal .dim__val { font-weight: 600; font-size: 13px; }

/* Scrollbar niceness */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--grey-20); border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--grey-30); }

/* Timeline scrubber */
.scrubber { position: relative; height: 60px; margin: 16px 0; }
.scrubber__track {
  position: absolute; inset: 24px 0 24px 0;
  background: var(--grey-10); border-radius: 6px;
}
.scrubber__moment {
  position: absolute;
  top: 20px;
  width: 3px; height: 20px;
  border-radius: 2px;
}
.scrubber__label {
  position: absolute;
  top: -2px;
  font-size: 10px;
  color: var(--text-tertiary);
  transform: translateX(-50%);
  white-space: nowrap;
}

/* Intent vs Impact */
.gap-viz {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
}
.gap-viz__col {
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.gap-viz__col--intent { background: var(--brand-tint-40); border-color: var(--brand-tint-20); }
.gap-viz__col--impact { background: var(--accent-warm-tint); border-color: var(--accent-warm-soft); }
@media (max-width: 600px) {
  /* Stack intent/impact vertically with the arrow rotated to point down,
     rather than compressing three inline columns into ~340px. */
  .gap-viz { grid-template-columns: 1fr; }
  .gap-viz__arrow { transform: rotate(90deg); padding: 4px 0; }
}
.gap-viz__arrow {
  display: grid; place-items: center;
  color: var(--text-quaternary);
  font-size: 24px;
}

/* Persona switcher on landing */
.persona-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.persona-tab {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.persona-tab.active { color: var(--brand-primary); border-bottom-color: var(--brand-primary); font-weight: 600; }
