/* 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; }
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;
}

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

/* App layout */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: var(--topbar-h) 1fr;
  min-height: 100vh;
}
.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;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.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;
}

/* 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));
  overflow-y: auto;
}
.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; }

/* 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); }
.btn--primary {
  background: var(--brand-primary);
  color: white;
  border-color: var(--brand-primary);
}
.btn--primary:hover { background: var(--brand-primary-hover); border-color: var(--brand-primary-hover); }
.btn--warm {
  background: var(--accent-warm);
  color: white;
  border-color: var(--accent-warm);
}
.btn--ghost { background: transparent; border-color: transparent; color: var(--brand-primary); }
.btn--ghost:hover { background: var(--brand-tint-40); text-decoration: 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;
}
.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); }

.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; }
.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); } }
@media (max-width: 720px)  { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* 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); }

/* Intuition Orb — hero signature */
.orb-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  display: grid;
  place-items: center;
}
.orb {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #7CC5FF 0%, #0F6CBD 55%, #0F548C 100%);
  box-shadow:
    0 0 60px rgba(15, 108, 189, 0.35),
    inset 0 -8px 24px rgba(15, 84, 140, 0.4),
    inset 0 8px 20px rgba(255,255,255,0.35);
  animation: orb-breathe 4s ease-in-out infinite;
  position: relative;
}
.orb::after {
  content: '';
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1px solid rgba(15, 108, 189, 0.25);
  animation: orb-ring 4s ease-out infinite;
}
.orb::before {
  content: '';
  position: absolute;
  inset: -34px;
  border-radius: 50%;
  border: 1px solid rgba(15, 108, 189, 0.15);
  animation: orb-ring 4s ease-out infinite 1s;
}
@keyframes orb-breathe {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.06); }
}
@keyframes orb-ring {
  0%   { transform: scale(0.85); opacity: 0.9; }
  100% { transform: scale(1.4); opacity: 0; }
}
.orb--warm {
  background: radial-gradient(circle at 35% 30%, #FFC08A 0%, #C05621 55%, #8A3D14 100%);
  box-shadow: 0 0 60px rgba(192, 86, 33, 0.35),
    inset 0 -8px 24px rgba(138, 61, 20, 0.4),
    inset 0 8px 20px rgba(255,255,255,0.35);
}

/* 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); }

/* 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); }

/* 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; } }
.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;
}

/* 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-sans: "Inter", "Segoe UI Variable", "Segoe UI", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv01", "cv11";
  letter-spacing: -0.005em;
}
.ui-minimal ::selection { background: rgba(15, 108, 189, 0.14); }
.ui-minimal :focus-visible {
  outline: 2px solid color-mix(in oklch, var(--brand-primary) 55%, transparent);
  outline-offset: 2px;
  border-radius: 6px;
}
.ui-minimal p { line-height: 1.65; }
.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.65;
  color: var(--text-secondary);
  max-width: 620px;
  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 .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.6; color: var(--text-secondary); font-weight: 400; max-width: 540px; }
.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 .orb-wrap { transform: scale(1.05); }
.ui-minimal .orb {
  box-shadow:
    0 0 80px rgba(15, 108, 189, 0.18),
    inset 0 -6px 20px rgba(15, 84, 140, 0.35),
    inset 0 6px 20px rgba(255,255,255,0.30);
}
.ui-minimal .orb::after, .ui-minimal .orb::before {
  border-color: rgba(15, 108, 189, 0.15);
}
.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.65; }
.ui-minimal .notice { line-height: 1.6; }
.ui-minimal .card { line-height: 1.6; }
.ui-minimal .table td { line-height: 1.55; }
.ui-minimal .whisper { line-height: 1.6; font-size: 13px; }
.ui-minimal .btn:active { transform: translateY(0.5px); }
.ui-minimal .sidebar__item { transition: background 0.1s ease, color 0.1s ease; }
.ui-minimal .card--click:hover {
  border-color: var(--border-strong);
  box-shadow: 0 6px 24px rgba(0,0,0,0.05);
  transform: translateY(-2px);
}
.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); }
.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; }

/* ============================================================
   Mobile / Android responsive layer (added for app packaging)
   ============================================================ */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  flex: 0 0 auto;
}
.sidebar__scrim { display: none; }

@media (max-width: 900px) {
  .app {
    grid-template-columns: 1fr;
    grid-template-rows: var(--topbar-h) 1fr;
  }
  .nav-toggle { display: inline-flex; }

  /* Topbar: compact */
  .topbar { gap: 10px; padding: 0 12px; }
  .topbar__product, .topbar__crumbs, .topbar__search, .topbar__pill { display: none; }
  .topbar__actions { margin-left: auto; gap: 8px; }

  /* Sidebar becomes an off-canvas drawer */
  .sidebar {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    bottom: 0;
    width: min(300px, 84vw);
    height: auto;
    z-index: 40;
    transform: translateX(-105%);
    transition: transform 0.24s ease;
    box-shadow: none;
  }
  body.nav-open .sidebar {
    transform: translateX(0);
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  }
  body.nav-open .sidebar__scrim {
    display: block;
    position: fixed;
    inset: var(--topbar-h) 0 0 0;
    background: rgba(0,0,0,0.32);
    z-index: 30;
  }
  .sidebar__item { padding-top: 10px; padding-bottom: 10px; }

  /* Content density */
  .page { padding: 16px 16px 72px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; }
  .live-shell { grid-template-columns: 1fr; height: auto; }

  /* Tap targets & inputs */
  .btn { min-height: 36px; }
  input, textarea, select { font-size: 16px; } /* prevent iOS/Android zoom-on-focus */
}

@media (max-width: 520px) {
  .page { padding: 12px 12px 64px; }
  h1 { font-size: 24px; }
  .topbar__logo span:not(.topbar__product) { font-size: 15px; }
}

/* Safe-area insets for notched devices / Android gesture nav */
@supports (padding: env(safe-area-inset-left)) {
  @media (max-width: 900px) {
    .topbar { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
    .page { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  }
}

/* ============ Brand figures / marketing imagery ============ */
.figure {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
  line-height: 0;
}
.figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.figure--soft { box-shadow: 0 12px 48px rgba(15, 108, 189, 0.08); }
.ui-minimal .figure { border-radius: 14px; border-color: var(--border); }
.ui-minimal .figure--soft { box-shadow: 0 16px 56px rgba(0,0,0,0.07); }
.hero__figure {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 16 / 10;
}
.hero__figure .figure { width: 100%; height: 100%; }
.hero__figure-caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: color-mix(in oklch, var(--bg) 82%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}
.band-figure { margin: 8px 0 0; }
.band-figure .figure { max-height: 260px; }
.band-figure .figure img { max-height: 260px; }
@media (max-width: 900px) {
  .hero__figure { max-width: 100%; }
}

/* ============ Commercial screens (EQCompanion) ============ */
.card--click { cursor: pointer; transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; }
.card--click:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(15, 108, 189, 0.10); transform: translateY(-2px); }
