/* Peak Humans coaching portal: shared styles
   Design tokens match naeemmood.com (Mood-Ventures/naeem-website, public/assets/css/styles.css):
   near-black ground, #00f0ff accent, Inter body, Playfair Display headings, pill buttons, 12px cards.
   Dark theme only. Text and background pairs are chosen to pass WCAG AA.
   Re-skin the whole portal from this :root block; components below only use these tokens. */

:root {
  /* naeemmood.com tokens, copied verbatim */
  --color-bg: #0a0a0a;
  --color-bg-alt: #111111;
  --color-bg-card: #141414;
  --color-white: #ffffff;
  --color-text: #f5f5f5;
  --color-text-muted: #999999;
  --color-border: rgba(245, 245, 245, 0.12);
  --color-accent: #00f0ff;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --container-width: 1140px;

  /* Portal aliases (every component reads these) */
  --ground: var(--color-bg);
  --raised: var(--color-bg-alt);
  --card: var(--color-bg-card);
  --ink: var(--color-text);
  --ink-head: var(--color-white);
  --ink-2: var(--color-text-muted);   /* 6.3:1 on card */
  --ink-3: #808080;                   /* 4.6:1 on card; labels 12px and up, never body copy */
  --hair: var(--color-border);
  --hair-soft: rgba(245, 245, 245, 0.06);
  --accent: var(--color-accent);
  --accent-soft: rgba(0, 240, 255, 0.35);
  --accent-tint: rgba(0, 240, 255, 0.08);
  --accent-glow: 0 10px 28px rgba(0, 240, 255, 0.3);   /* site button hover shadow */
  --on-accent: var(--color-bg);       /* text on a solid accent fill */
  --ok: #4ade80;
  --warn: #fbbf24;
  --bad: #f87171;
  --ok-tint: rgba(74, 222, 128, 0.12);
  --warn-tint: rgba(251, 191, 36, 0.12);
  --bad-tint: rgba(248, 113, 113, 0.12);
  /* Life-area colours: same seven hues and order as before, lifted for the dark ground */
  --a1: #E05AA6; --a2: #6D93F0; --a3: #F2744F; --a4: #3FA7D6;
  --a5: #F0C040; --a6: #C27B3B; --a7: #A397E8;
  --display: var(--font-serif);
  --body: var(--font-sans);
  --mono: "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
html { overflow-x: clip; font-variant-numeric: lining-nums; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--on-accent); }
button { font: inherit; }
.num, .tnum { font-variant-numeric: lining-nums tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.frame { max-width: 1180px; margin: 0 auto; padding: 0 32px 64px; }
.frame--narrow { max-width: 1060px; }

/* ── Top bar ─────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 100; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px 0; flex-wrap: wrap;
}
/* Full-bleed frosted bar, as on naeemmood.com (rgba(10,10,10,.85) + blur + hairline) */
.topbar::before {
  content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw);
  background: rgba(10, 10, 10, 0.85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
}
.wordmark {
  font-family: var(--font-sans); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.01em;
  color: var(--ink-head); text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
.wordmark span { color: var(--accent); }
.nav { display: flex; gap: 1.6rem; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--ink); }
.nav a { color: inherit; text-decoration: none; padding-bottom: 4px; border-bottom: 2px solid transparent; white-space: nowrap; transition: color .15s ease; }
.nav a.active { color: var(--accent); border-bottom-color: var(--accent); }
.nav a:hover { color: var(--accent); }
.top-right { display: flex; align-items: center; gap: 16px; }
.session-pill {
  display: flex; align-items: center; gap: 8px; background: var(--card);
  border: 1px solid var(--hair); border-radius: 999px; padding: 8px 16px; font-size: 13px; color: var(--ink-2);
}
.session-pill strong { color: var(--ink-head); font-weight: 600; }
.session-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; background: transparent; color: var(--accent); border: 2px solid var(--accent); font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
  font-family: var(--display); letter-spacing: .05em; flex: none;
}
.avatar--sm { width: 32px; height: 32px; font-size: 11px; border-width: 1.5px; }

/* ── Coach band (viewing a client as the coach) ─────── */
.coach-band {
  position: relative; isolation: isolate; color: var(--ink); margin: 0 -32px; padding: 10px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 13.5px; flex-wrap: wrap;
}
.coach-band::before {
  content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw);
  background: var(--raised); border-bottom: 1px solid var(--accent-soft);
}
.coach-band b { font-weight: 600; color: var(--ink-head); }
.coach-band a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-soft); }
.coach-band .tag {
  font-family: var(--font-sans); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  background: var(--accent); color: var(--on-accent); padding: .2rem .6rem; border-radius: 999px; margin-right: 10px;
}

/* ── Type ────────────────────────────────────────────── */
.eyebrow {
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 .75rem; font-weight: 600;
}
h1.title {
  font-family: var(--display); font-size: clamp(2rem, 4.2vw, 2.75rem); font-weight: 700; line-height: 1.25; color: var(--ink-head);
  margin: 0 0 12px; text-wrap: balance;
}
.intro { margin: 40px 0 28px; max-width: 66ch; }
.intro p { color: var(--ink-2); margin: 0; }
.intro-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; max-width: none; }
.intro-row > div:first-child { max-width: 66ch; }
.program { text-align: right; color: var(--ink-2); font-size: 13.5px; line-height: 1.45; }
.program .n { display: block; font-family: var(--display); font-weight: 700; font-size: 30px; color: var(--ink-head); line-height: 1.1; }
.card > h3 { font-family: var(--display); font-size: 1.25rem; font-weight: 700; color: var(--ink-head); margin: 0 0 4px; letter-spacing: .01em; }
h2.card-title, .card h2 {
  font-family: var(--display); font-size: 1.35rem; font-weight: 700; line-height: 1.25; color: var(--ink-head); margin: 0 0 4px;
}
.sub { color: var(--ink-2); font-size: 14px; margin: 0 0 18px; }
.crumb { display: inline-block; margin-top: 22px; font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-soft); }

/* ── Cards / layout ──────────────────────────────────── */
.card { background: var(--card); border: 1px solid var(--hair); border-radius: 12px; padding: 28px 32px; }
.layout-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.layout-main-rail { display: grid; grid-template-columns: 1fr 320px; gap: 28px; margin-top: 20px; }
.layout-3-2 { display: grid; grid-template-columns: 3fr 2fr; gap: 24px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.mt-24 { margin-top: 24px; }
.mt-36 { margin-top: 36px; }

/* ── Buttons ─────────────────────────────────────────── */
/* Buttons: naeemmood.com pill. .btn = solid accent (site .btn--solid), .btn.ghost = outlined (site .btn--primary) */
.btn {
  display: inline-block; background: var(--accent); color: var(--on-accent); font-family: var(--font-sans); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .02em; padding: .6rem 1.35rem; border-radius: 999px; text-decoration: none;
  border: 2px solid var(--accent); cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--accent-glow); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--accent); color: var(--on-accent); }

/* ── View toggle (Wheel | Board) ─────────────────────── */
.toggle { display: inline-flex; border: 1px solid var(--hair); border-radius: 999px; overflow: hidden; background: var(--card); }
.toggle button {
  background: transparent; border: 0; padding: 9px 18px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--ink-2); cursor: pointer; transition: color .15s ease;
}
.toggle button:hover { color: var(--accent); }
.toggle button.active { background: var(--accent); color: var(--on-accent); }

/* ── Legend / radar ──────────────────────────────────── */
.legend { display: flex; gap: 12px 22px; font-size: 13px; color: var(--ink-2); margin: 0 0 8px; flex-wrap: wrap; }
.legend > span { white-space: nowrap; }
.legend .key { display: inline-block; width: 22px; height: 3px; background: var(--ink); vertical-align: middle; margin-right: 8px; border-radius: 2px; }
.legend .key.vision { background: var(--accent); }
.radar-wrap { position: relative; }
.radar-wrap svg { width: 100%; height: auto; display: block; }
.tip {
  position: absolute; pointer-events: none; opacity: 0; transition: opacity .12s ease;
  background: var(--raised); color: var(--ink); border: 1px solid var(--accent-soft); font-size: 12.5px; line-height: 1.45; padding: 10px 12px;
  border-radius: 8px; max-width: 240px; transform: translate(-50%, calc(-100% - 14px)); z-index: 5;
}
.tip b { font-weight: 600; }
.tip .gapline { color: var(--accent); }

/* ── Ranked gap list ─────────────────────────────────── */
.gap-list .row {
  display: grid; grid-template-columns: 12px 1fr auto; gap: 14px; align-items: center;
  padding: 14px 4px; border-bottom: 1px solid var(--hair-soft); cursor: pointer; text-decoration: none; color: inherit;
}
.gap-list .row:last-child { border-bottom: 0; }
.gap-list .row:hover { background: var(--raised); border-radius: 8px; }
.swatch { width: 10px; height: 10px; border-radius: 3px; flex: none; display: inline-block; }
.gap-list .name { font-weight: 600; font-size: 15px; color: var(--ink-head); }
.gap-list .name small { display: block; font-weight: 400; font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.gap-chip { text-align: right; font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--ink-head); line-height: 1; }
.gap-chip small { display: block; font-family: var(--body); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
.focus-tag {
  display: inline-block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
  padding: 3px 9px; border-radius: 999px; margin-left: 8px; vertical-align: middle; color: var(--accent); background: var(--accent-tint); border: 1px solid var(--accent-soft);
}
.focus-tag.second { color: var(--ink-2); background: transparent; border-color: var(--hair); }

/* ── Commitments ─────────────────────────────────────── */
.commit { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--hair-soft); }
.commit:last-child { border-bottom: 0; }
.commit .n { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--a1); line-height: 1.2; min-width: 16px; }
.commit p { margin: 0; line-height: 1.5; }
.commit small { display: block; color: var(--ink-2); font-size: 12.5px; margin-top: 3px; }
.commit-strip { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 24px; align-items: start; }
.commit-strip .commit { padding: 0; border: 0; }

.actions-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.actions-head h2 { font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--ink-head); margin: 0; }
.actions-head .count { font-size: 13px; color: var(--ink-2); }
.action { display: flex; gap: 16px; align-items: flex-start; padding: 16px 4px; border-bottom: 1px solid var(--hair-soft); cursor: pointer; }
.action:last-child { border-bottom: 0; }
.box {
  width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--ink-3); flex: none; margin-top: 1px;
  display: flex; align-items: center; justify-content: center; background: transparent; transition: all .15s ease;
}
.action.done .box { background: var(--area, var(--a1)); border-color: var(--area, var(--a1)); }
.box svg path { stroke: var(--on-accent); }
.box svg { opacity: 0; transition: opacity .15s ease; }
.action.done .box svg { opacity: 1; }
.action p { margin: 0; line-height: 1.5; }
.action.done p { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--ink-3); }
.action small { display: block; color: var(--ink-2); font-size: 12.5px; margin-top: 3px; text-decoration: none; }

/* ── Session card ────────────────────────────────────── */
.sess-date { font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--ink-head); margin: 2px 0; }
.rail-card { background: var(--card); border: 1px solid var(--hair); border-radius: 12px; padding: 24px; }
.rail-card h3 { font-family: var(--display); font-size: 16px; font-weight: 700; color: var(--ink-head); margin: 0 0 12px; letter-spacing: .02em; }
.rail-card p { font-size: 13.5px; color: var(--ink-2); margin: 6px 0 0; }
.rail-card .btn { margin-top: 16px; }
.next-chip { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink); }

/* ── Gap board ───────────────────────────────────────── */
.board-scroll { overflow-x: auto; margin: 0 -8px; padding: 0 8px; }
.board { min-width: 900px; background: var(--card); border: 1px solid var(--hair); border-radius: 12px; overflow: hidden; }
.band {
  background: var(--raised); color: var(--ink-head); border-bottom: 1px solid var(--hair); text-align: center; font-size: 12.5px; letter-spacing: .28em;
  text-transform: uppercase; padding: 13px 16px; font-weight: 600;
}
.band em { font-style: normal; color: var(--accent); }
.band:last-child { border-bottom: 0; border-top: 1px solid var(--hair); }
.cols { display: grid; grid-template-columns: repeat(7, 1fr); }
.col { padding: 22px 16px 24px; border-right: 1px solid var(--hair-soft); position: relative; cursor: pointer; text-decoration: none; color: inherit; display: block; }
.col:last-child { border-right: 0; }
.col:hover { background: var(--raised); }
.focus-flag { position: absolute; top: 0; left: 16px; right: 16px; height: 3px; border-radius: 0 0 3px 3px; }
.area-chip { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-head); line-height: 1.3; }
.col .focus-tag { margin: 8px 0 0; }
.statement { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin: 14px 0 0; }
.statement.vision { font-family: var(--display); font-weight: 700; color: var(--ink-head); font-size: 15px; min-height: 96px; }
.track-wrap { display: grid; grid-template-columns: 12px 1fr; gap: 14px; margin: 18px 0 14px; height: 220px; }
.track { position: relative; background: var(--hair-soft); border-radius: 6px; width: 12px; }
.track .fill { position: absolute; left: 0; right: 0; border-radius: 6px; }
.track .tick { position: absolute; left: -2px; width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--card); box-shadow: 0 1px 3px rgba(0,0,0,.6); }
.track-nums { position: relative; font-variant-numeric: lining-nums tabular-nums; }
.track-nums div { position: absolute; left: 0; line-height: 1; }
.track-nums .vision-n, .track-nums .now-n { font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--ink-head); }
.track-nums small { display: block; font-family: var(--body); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
.track-nums .gap-n { font-size: 13px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.track-nums .same-n small { color: var(--ink-2); }
.now-score-row { border-top: 1px dashed var(--hair); padding-top: 12px; margin-top: 6px; }
.now-score-row .statement { margin: 0; font-size: 13.5px; }

/* ── Meter (drill-down hero) ─────────────────────────── */
.hero { background: var(--card); border: 1px solid var(--hair); border-radius: 12px; padding: 36px 40px; border-top: 4px solid var(--area, var(--a1)); }
.hero .eyebrow { color: var(--area, var(--a1)); }
.hero h1 { font-family: var(--display); font-size: clamp(2rem, 4vw, 2.5rem); font-weight: 700; line-height: 1.25; color: var(--ink-head); margin: 0 0 6px; }
.hero .why { color: var(--ink-2); margin: 0 0 30px; max-width: 58ch; }
.meter-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.meter { position: relative; height: 14px; background: var(--hair-soft); border-radius: 7px; }
.meter .span { position: absolute; top: 0; bottom: 0; background: var(--area, var(--a1)); opacity: .22; border-radius: 7px; }
.meter .done { position: absolute; top: 0; bottom: 0; background: var(--area, var(--a1)); border-radius: 7px 0 0 7px; }
.meter .pin { position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%; transform: translate(-50%, -50%); border: 3px solid var(--card); box-shadow: 0 1px 4px rgba(0,0,0,.6); }
.meter-nums { display: flex; position: relative; height: 56px; margin-top: 12px; font-variant-numeric: lining-nums tabular-nums; }
.meter-nums div { position: absolute; transform: translateX(-50%); text-align: center; }
.meter-nums .big { font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--ink-head); line-height: 1.1; }
.meter-nums .big.gap { color: var(--accent); font-size: 18px; }
.meter-nums small { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.vision-quote { margin: 26px 0 0; padding: 20px 24px; background: var(--accent-tint); border-radius: 10px; border-left: 3px solid var(--accent); }
.vision-quote p { margin: 0; font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--ink-head); line-height: 1.5; }
.vision-quote small { display: block; margin-top: 8px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.mini-meter { position: relative; height: 8px; background: var(--hair-soft); border-radius: 4px; margin: 12px 0 6px; }
.mini-meter .span { position: absolute; top: 0; bottom: 0; border-radius: 4px; opacity: .25; }
.mini-meter .now { position: absolute; top: 0; bottom: 0; border-radius: 4px 0 0 4px; }
.mini-nums { font-size: 12px; color: var(--ink-2); font-variant-numeric: lining-nums tabular-nums; }
.mini-nums b { color: var(--ink-head); }

/* ── Area cards (whole picture) ──────────────────────── */
.whole-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.whole-head h2 { font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--ink-head); margin: 0; }
.whole-head a { font-size: 13px; color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-soft); }
.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.area-card { background: var(--card); border: 1px solid var(--hair); border-radius: 12px; padding: 18px 20px; text-decoration: none; color: inherit; display: block; transition: border-color .2s ease, transform .2s ease; }
.area-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.area-card .chip { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-head); margin-bottom: 12px; }
.area-card .nums { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-2); margin-top: 8px; font-variant-numeric: lining-nums tabular-nums; }
.area-card .nums b { color: var(--ink-head); }
.bar { position: relative; height: 8px; background: var(--hair-soft); border-radius: 4px; }
.bar .span { position: absolute; top: 0; bottom: 0; border-radius: 4px; opacity: .25; }
.bar .now { position: absolute; top: 0; bottom: 0; border-radius: 4px 0 0 4px; }

/* ── Blueprint ───────────────────────────────────────── */
.bp-row { display: grid; grid-template-columns: 220px 1fr 1fr; gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--hair); text-decoration: none; color: inherit; }
.bp-row:last-child { border-bottom: 0; }
.bp-row:hover .bp-name { color: var(--accent); }
.bp-name { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--ink-head); margin: 6px 0 4px; }
.bp-meta { font-size: 13px; color: var(--ink-2); font-variant-numeric: lining-nums tabular-nums; }
.bp-label { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; margin-bottom: 8px; }
.bp-text { margin: 0; line-height: 1.55; }
.bp-text.vision { font-family: var(--display); font-weight: 700; font-size: 16.5px; color: var(--ink-head); }
.bp-text.now { color: var(--ink-2); font-size: 15px; }

/* ── Sessions list ───────────────────────────────────── */
.sess-row { display: grid; grid-template-columns: 56px 170px 1fr auto; gap: 20px; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--hair-soft); }
.sess-row:last-child { border-bottom: 0; }
.sess-row .no { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--ink-head); font-variant-numeric: lining-nums tabular-nums; }
.sess-row .when { font-size: 14px; color: var(--ink-2); font-variant-numeric: lining-nums tabular-nums; }
.sess-row .what { font-size: 15px; color: var(--ink-head); }
.sess-row .what small { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.sess-row.upcoming .no, .sess-row.upcoming .what { color: var(--ink-2); }
.sess-row.next { background: var(--accent-tint); border-radius: 10px; padding-left: 12px; padding-right: 12px; }
.pill { display: inline-block; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; padding: .2rem .6rem; border-radius: 999px; }
.pill.done { color: var(--ok); background: var(--ok-tint); }
.pill.next { color: var(--on-accent); background: var(--accent); }
.pill.upcoming { color: var(--ink-2); background: var(--hair-soft); }
.pill.warn { color: var(--warn); background: var(--warn-tint); }
.pill.bad { color: var(--bad); background: var(--bad-tint); }

/* ── Admin roster ────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 28px 0 32px; }
.stat { background: var(--card); border: 1px solid var(--hair); border-radius: 12px; padding: 18px 22px; }
.stat .v { font-family: var(--display); font-weight: 700; font-size: 30px; color: var(--ink-head); line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; }
.stat .l { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.table-wrap { background: var(--card); border: 1px solid var(--hair); border-radius: 12px; overflow-x: auto; }
table.roster { width: 100%; border-collapse: collapse; min-width: 880px; }
.roster th { text-align: left; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; padding: 14px 18px; border-bottom: 1px solid var(--hair); white-space: nowrap; }
.roster td { padding: 0; border-bottom: 1px solid var(--hair-soft); vertical-align: middle; height: 60px; font-size: 14.5px; }
.roster tr:last-child td { border-bottom: 0; }
.roster td a { display: block; padding: 12px 18px; color: inherit; text-decoration: none; }
.roster tr:hover td { background: var(--raised); }
.roster .who { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink-head); }
.roster .who small { display: block; font-weight: 400; color: var(--ink-2); font-size: 12.5px; }
.roster .tnum { font-variant-numeric: lining-nums tabular-nums; }
.roster .muted { color: var(--ink-2); }
.roster .area-name { display: inline-flex; align-items: center; gap: 8px; }
.prog { display: inline-flex; align-items: center; gap: 10px; }
.prog .bar { width: 72px; }
.prog .bar .now { background: var(--accent); }

/* ── Coach panels ────────────────────────────────────── */
.panel h3 { font-family: var(--display); font-size: 17px; font-weight: 700; color: var(--ink-head); margin: 0 0 14px; }
.kv { display: grid; grid-template-columns: 1fr auto auto auto; gap: 10px 16px; font-size: 14px; align-items: center; }
.kv .h { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; padding-bottom: 6px; border-bottom: 1px solid var(--hair); }
.kv .r { text-align: right; font-variant-numeric: lining-nums tabular-nums; }
.kv .r b { color: var(--ink-head); }
.note { font-size: 14.5px; color: var(--ink); line-height: 1.55; margin: 0; }
.note + .note { margin-top: 10px; }
.note-meta { font-size: 12px; color: var(--ink-2); margin: 0 0 4px; }
.readonly-hint { font-size: 12.5px; color: var(--ink-2); margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--hair); }

/* ── Sign in ─────────────────────────────────────────── */
.signin { min-height: 100vh; display: flex; flex-direction: column; }
.signin .frame { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: 40px; }
.signin .wordmark { display: block; text-align: center; margin-bottom: 44px; }
.signin h1 { font-family: var(--display); font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.25; font-weight: 700; color: var(--ink-head); text-align: center; margin: 0 0 10px; }
.signin .lede { text-align: center; color: var(--ink-2); margin: 0 auto 40px; max-width: 48ch; }
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 760px; margin: 0 auto; }
.door { background: var(--card); border: 1px solid var(--hair); border-radius: 12px; padding: 32px 32px 28px; text-decoration: none; color: inherit; display: block; transition: border-color .2s ease, transform .2s ease; }
.door:hover { border-color: var(--accent); transform: translateY(-3px); }
.door .eyebrow { margin-bottom: 8px; }
.door h2 { font-family: var(--display); font-size: 24px; font-weight: 700; color: var(--ink-head); margin: 0 0 8px; }
.door p { color: var(--ink-2); font-size: 14.5px; margin: 0 0 18px; }
.door .btn { display: inline-block; }
.demo-note { margin: 36px auto 0; max-width: 760px; font-size: 13px; color: var(--ink-2); border-top: 1px solid var(--hair); padding-top: 16px; }
.demo-note select { font: inherit; font-size: 13px; color: var(--ink); padding: 4px 8px; border: 1px solid var(--hair); border-radius: 4px; background: var(--card); margin-left: 6px; }

footer.foot { margin-top: 40px; font-size: 12.5px; color: var(--ink-2); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--hair); padding-top: 18px; }
footer.foot a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-soft); }
footer.foot a:hover { border-bottom-color: var(--accent); }

.empty { color: var(--ink-2); font-size: 14px; padding: 24px 0; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 960px) {
  .frame { padding: 0 16px 48px; }
  .coach-band { margin: 0 -16px; padding: 10px 16px; }
  .layout-2, .layout-main-rail, .layout-3-2 { grid-template-columns: 1fr; }
  .area-grid { grid-template-columns: 1fr 1fr; }
  .commit-strip { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .bp-row { grid-template-columns: 1fr; gap: 14px; }
  .nav { order: 3; width: 100%; gap: 20px; }
  .doors { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr auto auto auto; }
}
@media (max-width: 560px) {
  .area-grid { grid-template-columns: 1fr; }
  .hero { padding: 26px 22px; }
  .card { padding: 22px 20px; }
  .sess-row { grid-template-columns: 44px 1fr; }
  .sess-row .what { grid-column: 1 / -1; }
  .stats { grid-template-columns: 1fr; }
}

/* ── The One Thing (client Today, V2 direction 1) ─────── */
.ot { max-width: 880px; margin: 0 auto; }
.ot-hello { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--ink-2); margin: 52px 0 6px; text-align: center; }
.ot-h { font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: -0.01em; color: var(--ink-head); margin: 0 0 30px; text-align: center; }
.ot-card { background: var(--card); border: 1px solid var(--hair); border-radius: 12px; padding: 40px 44px 26px; transition: border-color .2s ease; }
.ot-card.done { border-color: var(--ok); }
.ot-txt { font-family: var(--display); font-weight: 700; font-size: 36px; line-height: 1.22; color: var(--ink-head); letter-spacing: -0.01em; margin: 0; }
.ot-txt.is-done { color: var(--ink-2); }
.ot-input { caret-color: var(--accent); width: 100%; border: 0; border-bottom: 2px solid var(--accent-soft); background: transparent; resize: none; padding: 0 0 8px; outline: none; }
.ot-input:focus { border-bottom-color: var(--accent); }
.ot-input::placeholder { color: var(--ink-3); }
.ot-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--hair-soft); flex-wrap: wrap; }
.ot-hint { color: var(--ink-2); font-size: 14px; }
.ot-btns { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ot-btn { border: 2px solid var(--hair); background: transparent; color: var(--ink); border-radius: 999px; padding: .6rem 1.35rem; font-family: var(--font-sans); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease; }
.ot-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.ot-btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.ot-btn.primary:hover { color: var(--on-accent); box-shadow: var(--accent-glow); }
.ot-btn.ghost { border-color: transparent; color: var(--accent); padding: .6rem .6rem; }
.ot-btn.ghost:hover { transform: none; }
.ot-check { display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 0; font-size: 16px; color: var(--ink); cursor: pointer; text-align: left; }
.ot-box { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ink-3); display: inline-flex; align-items: center; justify-content: center; flex: none; transition: background .15s ease, border-color .15s ease; }
.ot-box svg { opacity: 0; }
.ot-check:hover .ot-box { border-color: var(--ok); }
.ot-check.on { color: var(--ok); font-weight: 600; }
.ot-check.on .ot-box { background: var(--ok); border-color: var(--ok); }
.ot-box svg path { stroke: var(--on-accent); }
.ot-check.on .ot-box svg { opacity: 1; }
.ot-win { color: var(--ok); font-size: 15px; font-weight: 600; }
.ot-from { display: flex; gap: 4px 10px; align-items: center; justify-content: center; flex-wrap: wrap; font-size: 15px; color: var(--ink-2); margin: 18px 0 0; text-align: center; }
.ot-from b { color: var(--ink); font-weight: 600; }
.ot-from .sep { color: var(--ink-3); }
.ot-bottom { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; margin-top: 60px; padding-top: 32px; border-top: 1px solid var(--hair); align-items: start; }
.ot-bottom h2 { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--ink-head); margin: 0 0 2px; }
.ot-bottom .sub { margin: 0; }
.ot-streak { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; }
.ot-stat { text-align: right; flex: none; }
.ot-stat .n { display: block; font-family: var(--display); font-weight: 700; font-size: 32px; line-height: 1; color: var(--ink-head); }
.ot-stat small { font-size: 13px; color: var(--ink-2); }
.ot-grid-scroll { overflow-x: auto; padding-bottom: 4px; }
.ot-grid-scroll { --cell: 16px; }
.ot-grid, .ot-months { display: grid; gap: 4px; width: max-content; }
.ot-grid { grid-auto-flow: column; grid-template-rows: repeat(7, var(--cell)); }
.ot-months { margin-top: 8px; font-size: 12px; color: var(--ink-2); }
.ot-months span { white-space: nowrap; }
.ot-grid i, .ot-legend i { width: var(--cell); height: var(--cell); border-radius: 3px; display: block; background: var(--hair-soft); }
.ot-grid i.on, .ot-legend i.on { background: var(--accent); }
.ot-grid i.miss, .ot-legend i.miss { background: var(--hair); }
.ot-grid i.ahead, .ot-legend i.ahead { background: transparent; border: 1px dashed var(--hair); }
.ot-grid i.before { background: var(--hair-soft); opacity: .5; }
.ot-grid i.today { outline: 2px solid var(--ink-head); outline-offset: 1px; }
.ot-legend { display: flex; gap: 18px; font-size: 13px; color: var(--ink-2); margin-top: 12px; }
.ot-legend span { display: flex; gap: 6px; align-items: center; }
.ot-legend i { --cell: 10px; }
.ot-side { display: flex; flex-direction: column; gap: 26px; }
.ot-wheel { display: flex; gap: 14px; align-items: flex-start; color: inherit; text-decoration: none; }
.ot-mini { width: 110px; height: 110px; flex: none; }
.ot-side b { display: block; font-weight: 600; color: var(--ink-head); }
.ot-side small { display: block; font-size: 14px; color: var(--ink-2); margin-top: 3px; line-height: 1.45; }
.ot-side .ot-prep { margin-top: 8px; }
.ot-link { display: inline-block; margin-top: 6px; font-size: 14px; color: var(--accent); border-bottom: 1px solid var(--accent-soft); }
.ot-wheel:hover .ot-link { border-bottom-color: var(--accent); }

@media (max-width: 760px) {
  .ot-hello { margin-top: 32px; }
  .ot-h { font-size: 26px; margin-bottom: 22px; }
  .ot-card { padding: 26px 22px 20px; }
  .ot-txt { font-size: 26px; }
  .ot-foot { flex-direction: column; align-items: stretch; }
  .ot-btns { justify-content: stretch; }
  .ot-btns .ot-btn { flex: 1; }
  .ot-bottom { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 40px; }
  .ot-grid-scroll { --cell: 14px; }
}
