/* tokens, header, layout, sidebar, page headers
   Extracted from index.html 2026-08-01. Load order matters: later files
   override earlier ones, exactly as the single <style> block did. */

:root{
  --bg:#f1eff7;--s1:#ffffff;--s2:#f6f5fa;--s3:#ece9f4;
  --b1:#e8e6ef;--b2:#dcd8e8;--b3:#c9b8ee;
  --gold:#5a17c4;--gold-d:#4a12a3;--gold-bg:rgba(90,23,196,.08);--gold-border:rgba(90,23,196,.32);
  --text:#1b191f;--muted:#605a6c;--dim:#908a9e;
  --green:#1a7a45;--red:#b02a2a;--orange:#8a6907;--blue:#2a68a8;
  /* Deep red, for a deadline that is REAL but not yet missed. Distinct from
     --red, which means overdue and has to stay the loudest thing on the page. */
  --red-d:#8c1c1c;
  --r:10px;
}
*{box-sizing:border-box;margin:0;padding:0;}
/* `overflow-x:clip`, NOT `hidden`. Per the overflow spec, setting either axis
   to `hidden` forces the OTHER axis to compute as `auto` — so `overflow-x:
   hidden` silently made <body> a second scroll container nested inside the
   document's, which on iOS jams at the end of a scroll instead of finishing
   cleanly. `clip` contains the same horizontal spill without establishing a
   scroll container, so overflow-y stays `visible` and there is only ever one
   scroller. (Safari 16+, Chrome 90+.) */
body{background:var(--bg);color:var(--text);font-family:'Manrope',sans-serif;font-size:13px;line-height:1.55;min-height:100vh;overflow-x:clip;font-variant-numeric:tabular-nums;}

/* HEADER */
header{position:sticky;top:0;z-index:200;background:var(--s1);border-bottom:1px solid var(--b1);height:50px;display:flex;align-items:center;padding:0 16px;gap:12px;}
.brand{font-family:'Manrope',sans-serif;font-size:18px;letter-spacing:4px;color:var(--gold);white-space:nowrap;margin-right:4px;}
.hdr-sep{width:1px;height:20px;background:var(--b1);flex-shrink:0;}
.coach-select{background:var(--s2);border:1px solid var(--b1);color:var(--text);font-family:'Manrope',sans-serif;font-size:12px;padding:5px 10px;border-radius:var(--r);outline:none;cursor:pointer;transition:.15s;font-weight:500;}
.coach-select:focus{border-color:var(--gold-border);}
/* "This computer is …" — the per-machine coach identity, mirroring the Meal
   Planner panel. Sits above Navigation so it reads as who the dash belongs to. */
.tc-panel{margin:0 10px 14px;}
.tc-label{font-size:8px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);font-weight:600;margin-bottom:5px;padding-left:2px;}
.tc-who{display:flex;align-items:center;gap:8px;width:100%;background:var(--s1);border:1px solid var(--b1);border-radius:var(--r);padding:8px 10px;cursor:pointer;font-family:'Manrope',sans-serif;font-size:12.5px;font-weight:600;color:var(--text);text-align:left;transition:.15s;}
.tc-who:hover{border-color:var(--gold-border);}
.tc-avatar{width:20px;height:20px;border-radius:50%;background:var(--gold);color:#fff;font-size:10px;font-weight:700;display:flex;align-items:center;justify-content:center;flex:0 0 auto;}
.tc-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.tc-name.unset{color:var(--muted);font-weight:500;font-style:italic;}
.tc-edit{color:var(--muted);font-size:11px;flex:0 0 auto;}
.tc-viewing{margin-top:6px;font-size:10.5px;color:var(--muted);line-height:1.4;padding-left:2px;}
.tc-viewing a{color:var(--gold);text-decoration:none;font-weight:600;}
.tc-viewing a:hover{text-decoration:underline;}
/* ── HOME PAGE ────────────────────────────────────────────────────────────
   Every async cell renders exactly one of three states and says which:
   loading (spinner + word), ok (✓/✕), or failed (⚠ + reason + what to do).
   Nothing renders a bare blank — an empty box must never be mistaken for a
   finished check. */
/* Live sync light. Green = current, pulsing green = fetching right now,
   amber = overdue (the tab was in the background, so refreshes paused),
   red = a source failed. Sits top-right so it reads as page status, not
   as another number in the strip. */
.h-statusbar{display:flex;justify-content:flex-end;margin-bottom:10px;}
.h-sync{display:inline-flex;align-items:center;gap:7px;font-size:11px;font-weight:600;
        padding:4px 11px;border-radius:999px;border:1px solid;background:var(--s1);cursor:help;}
.h-sync i{width:7px;height:7px;border-radius:50%;flex:0 0 auto;}
.h-sync.fresh{color:var(--green);border-color:rgba(30,143,80,.32);background:rgba(30,143,80,.07);}
.h-sync.fresh i{background:var(--green);}
.h-sync.syncing{color:var(--green);border-color:rgba(30,143,80,.32);background:rgba(30,143,80,.07);}
.h-sync.syncing i{background:var(--green);animation:hpulse 1.15s ease-in-out infinite;}
.h-sync.stale{color:var(--orange);border-color:rgba(184,90,20,.32);background:rgba(184,90,20,.07);}
.h-sync.stale i{background:var(--orange);}
.h-sync.error{color:var(--red);border-color:rgba(196,46,46,.32);background:rgba(196,46,46,.07);}
.h-sync.error i{background:var(--red);animation:hpulse 1.15s ease-in-out infinite;}
@keyframes hpulse{0%,100%{opacity:1;box-shadow:0 0 0 0 currentColor;}50%{opacity:.45;box-shadow:0 0 0 4px transparent;}}
@media (prefers-reduced-motion:reduce){.h-sync i{animation:none!important;}}
.h-tier{display:flex;flex-direction:column;gap:8px;margin-bottom:20px;}
.h-thead{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap;}
/* Controls get their own row. Sharing the header line made "Reveal call" and
   "+ Add a client" wrap onto a ragged second line at ordinary widths. */
.h-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:6px 0 8px;}
.h-tools .lb{font-size:10px;font-weight:700;letter-spacing:.11em;text-transform:uppercase;color:var(--dim);}
.h-tools .sep{flex:1 1 auto;}
/* Label + native select as one unit, styled to match .h-btn so the toolbar
   reads as one row of controls rather than form furniture bolted on. */
.h-sel{display:inline-flex;align-items:center;gap:6px;}
.h-sel select{font-family:'Manrope',sans-serif;font-size:11.5px;padding:6px 26px 6px 11px;
  border-radius:9px;border:1px solid var(--b2);background:var(--bg);color:var(--text);
  cursor:pointer;appearance:none;
  background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);
  background-position:calc(100% - 14px) 51%,calc(100% - 9px) 51%;
  background-size:5px 5px,5px 5px;background-repeat:no-repeat;}
.h-sel select:hover{border-color:var(--gold);color:var(--gold);}
.h-sel select:focus-visible{outline:2px solid var(--gold);outline-offset:2px;}
.h-thead .h{font-size:10px;font-weight:700;letter-spacing:.15em;text-transform:uppercase;color:var(--muted);}
.h-thead .s{font-size:11px;color:var(--dim);}

/* ── ASSIGNED TO YOU band ─────────────────────────────────────────────────────
   Human-routed work gets its own real estate directly under the KPI cards. Two
   rails: things sent to you (act) vs things you delegated (track). Fresh items
   glow so they cannot be missed. Warm gold shell to read as "someone needs you"
   rather than "system status". */
.h-asg-band{margin:14px 0 18px;background:var(--gold-bg);border:1px solid var(--gold-border);
  border-radius:12px;padding:11px 13px 13px;}
.h-asg-band.clear{padding:9px 13px;}
.h-asg-clear{font-size:12px;color:var(--green);font-weight:600;letter-spacing:.01em;}
.h-asg-load{font-size:12px;color:var(--muted);}
.h-asg-hd{display:flex;align-items:center;gap:9px;margin-bottom:9px;}
.h-asg-lbl{font-size:10px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--gold-d);}
.h-asg-new{font-size:10px;font-weight:700;color:#fff;background:var(--red);border-radius:999px;padding:1px 8px;letter-spacing:.02em;}
.h-asg-seen{margin-left:auto;font-size:11px;font-weight:600;color:var(--muted);background:var(--s1);
  border:1px solid var(--b1);border-radius:8px;padding:4px 10px;cursor:pointer;}
.h-asg-seen:hover{border-color:var(--gold);color:var(--gold);}
.h-asg-rails{display:grid;grid-template-columns:1.35fr 1fr;gap:11px;}
@media (max-width:760px){.h-asg-rails{grid-template-columns:1fr;}}
.h-asg-rail{background:var(--s1);border:1px solid var(--b1);border-radius:10px;overflow:hidden;}
.h-asg-rail.track{background:var(--s2);}
.h-asg-rhead{display:flex;align-items:center;gap:8px;padding:8px 12px;background:var(--gold-bg);
  border-bottom:1px solid var(--b1);}
.h-asg-rhead.t{background:transparent;}
.h-asg-rhead .t{font-size:9.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);}
.h-asg-rhead .c{font-size:10px;font-weight:700;color:var(--muted);background:var(--s3);border-radius:999px;
  padding:0 7px;min-width:18px;text-align:center;}
.h-asg-rhead .c.hot{background:var(--red);color:#fff;}
.h-asg-row{display:flex;align-items:center;gap:10px;padding:9px 12px;border-bottom:1px solid var(--b1);
  cursor:pointer;transition:background .12s;position:relative;}
.h-asg-row:last-child{border-bottom:0;}
.h-asg-row:hover{background:var(--gold-bg);}
.h-asg-dot{width:7px;height:7px;border-radius:50%;background:var(--gold);flex:0 0 auto;}
.h-asg-dot.o{background:transparent;border:1.5px solid var(--b3);}
.h-asg-main{min-width:0;flex:1;}
.h-asg-t{font-size:12.5px;font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden;
  text-overflow:ellipsis;display:flex;align-items:center;gap:7px;}
.h-asg-m{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.h-asg-act{flex:0 0 auto;display:flex;align-items:center;gap:7px;}
.h-asg-to{font-size:11px;color:var(--muted);font-weight:600;}
.h-asg-btn{font-size:11px;font-weight:600;padding:4px 11px;border:1px solid var(--b1);background:var(--s1);
  border-radius:7px;color:var(--text);cursor:pointer;transition:.12s;white-space:nowrap;}
.h-asg-btn:hover{border-color:var(--gold);color:var(--gold);}
.h-asg-btn.p{background:var(--gold);border-color:var(--gold);color:#fff;}
.h-asg-btn.p:hover{background:var(--gold-d);color:#fff;}
.h-asg-nudged{font-size:8.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--red);
  border:1px solid var(--red);border-radius:4px;padding:0 4px;}
.h-asg-empty{padding:14px 12px;font-size:11.5px;color:var(--dim);text-align:center;}
/* GLOW — a fresh routed item pulses a warm gold ring so it can't slip past. */
.h-asg-row.glow{background:var(--gold-bg);animation:asgGlow 1.9s ease-in-out infinite;}
.h-asg-row.glow::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--gold);}
@keyframes asgGlow{0%,100%{box-shadow:inset 0 0 0 0 rgba(160,122,8,0);}
  50%{box-shadow:inset 0 0 22px 0 rgba(160,122,8,.18);}}
/* Delegated rail — exception-first. Stuck items get a row + red aging tag; the
   healthy majority collapses into clickable summary lines so it can't bury the
   onboarding sections below. Rails cap their height and scroll internally. */
.h-asg-rail{max-height:340px;overflow-y:auto;}
.h-asg-row.attn::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--red);}
.h-asg-attn{font-size:8.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--red);
  border:1px solid var(--red);border-radius:4px;padding:0 4px;}
.h-asg-sum{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 12px;
  border-top:1px solid var(--b1);font-size:11.5px;font-weight:600;color:var(--muted);cursor:pointer;
  transition:.12s;background:var(--s2);}
.h-asg-sum:hover{color:var(--gold);background:var(--gold-bg);}
.h-asg-sum .chev{font-size:9px;color:var(--dim);}
.h-asg-more{padding:8px 12px;font-size:11px;font-weight:600;color:var(--gold);cursor:pointer;
  border-top:1px solid var(--b1);}
.h-asg-more:hover{background:var(--gold-bg);}
.h-asg-break{display:flex;flex-wrap:wrap;gap:6px;padding:8px 12px;border-top:1px solid var(--b1);background:var(--bg);}
/* Clickable coach chips — filter the team list to one coach. */
.h-asg-chip{font-size:10.5px;font-weight:600;color:var(--muted);background:var(--s1);
  border:1px solid var(--b1);border-radius:6px;padding:3px 9px;cursor:pointer;transition:.12s;}
.h-asg-chip:hover{border-color:var(--gold);color:var(--gold);}
.h-asg-chip.on{background:var(--gold);border-color:var(--gold);color:#fff;}
/* Due-date chip — colour does the triage before you read it. */
.h-asg-due{font-size:10px;font-weight:600;letter-spacing:.01em;white-space:nowrap;padding:1px 6px;border-radius:5px;}
/* overdue = brighter, solid red; due today = light red, bold */
.h-asg-due.over{color:#fff;background:#e5322b;font-weight:700;}
.h-asg-due.today{color:#d64541;background:rgba(214,69,65,.13);font-weight:700;}
.h-asg-due.soon{color:var(--orange);border:1px solid rgba(184,90,20,.4);}
.h-asg-due.far{color:var(--muted);background:var(--s2);}
/* Undo toast for inline "Done" — bottom-centre, no confirm dialog. */
.h-asg-undotoast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,12px);z-index:9999;
  display:flex;align-items:center;gap:14px;background:#2c2c2c;color:#f3efe6;font-size:13px;font-weight:500;
  padding:11px 16px;border-radius:10px;box-shadow:0 8px 28px rgba(0,0,0,.28);opacity:0;transition:.18s;}
.h-asg-undotoast.show{opacity:1;transform:translate(-50%,0);}
.h-asg-undotoast button{background:none;border:0;color:var(--gold-light,#d8b24a);font-weight:700;font-size:13px;
  cursor:pointer;padding:2px 4px;letter-spacing:.02em;}
.h-asg-undotoast button:hover{text-decoration:underline;}
/* Countdown-rail card. The deadline is the reason the card exists, so it gets
   its own column rather than trailing the header row. */
.h-card{background:var(--s1);border:1px solid var(--b1);border-radius:14px;overflow:hidden;
        display:grid;grid-template-columns:118px 1fr;box-shadow:0 1px 2px rgba(26,24,20,.04);}
/* 118px is sized off the longest label the rail can hold — "Tomorrow" at 17px
   is ~78px, leaving room either side. Without nowrap + a fixed column it wrapped
   and spilled past the rounded corner. */
.h-rail{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
        padding:16px 8px;border-right:1px solid var(--b1);background:var(--s2);text-align:center;}
.h-rail .w{font-size:17px;font-weight:700;letter-spacing:-.015em;line-height:1.15;white-space:nowrap;}
.h-rail .s{font-size:10.5px;color:var(--muted);white-space:nowrap;}
.h-card.crit  .h-rail{background:rgba(196,46,46,.06);border-right-color:rgba(196,46,46,.16);}
.h-card.crit  .h-rail .w,.h-card.crit  .h-rail .s{color:var(--red);}
.h-card.tight .h-rail{background:rgba(184,90,20,.06);border-right-color:rgba(184,90,20,.16);}
.h-card.tight .h-rail .w,.h-card.tight .h-rail .s{color:var(--orange);}
.h-card.ok    .h-rail{background:rgba(30,143,80,.06);border-right-color:rgba(30,143,80,.16);}
.h-card.ok    .h-rail .w,.h-card.ok    .h-rail .s{color:var(--green);}
.h-card.info  .h-rail .w{color:var(--muted);font-size:14px;}
.h-body{padding:14px 16px;display:flex;flex-direction:column;gap:11px;min-width:0;}
.h-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.h-name{font-size:15.5px;font-weight:700;letter-spacing:-.015em;}
.h-closer{font-size:11.5px;color:var(--muted);margin-left:auto;white-space:nowrap;}
.h-closer b{color:var(--text);font-weight:650;}
/* window track */
.h-tk{position:relative;height:6px;background:var(--s2);border-radius:999px;}
.h-tk i{position:absolute;top:0;bottom:0;left:0;background:var(--gold);border-radius:999px;}
.h-tk b{position:absolute;top:50%;transform:translate(-50%,-50%);width:13px;height:13px;border-radius:50%;
        background:var(--s1);border:3px solid var(--gold);}
.h-card.ok .h-tk i{background:var(--green);} .h-card.ok .h-tk b{border-color:var(--green);}
.h-ends{display:flex;justify-content:space-between;gap:12px;margin-top:8px;font-size:11px;color:var(--muted);}
.h-ends .v{color:var(--text);font-weight:650;font-variant-numeric:tabular-nums;}
.h-nowin{font-size:12px;color:var(--muted);}
/* Onboarding timeline. One row, left to right, in the order the work actually
   happens: paid -> intake -> first call -> reveal, with the build deadline
   pinned on the end. Steps that haven't happened stay visible and greyed so a
   gap reads as a gap rather than as missing data. */
.h-tl{display:flex;align-items:stretch;gap:0;flex-wrap:wrap;margin:2px 0 2px;}
.h-tl-s{display:flex;flex-direction:column;gap:1px;padding:4px 14px 4px 0;margin-right:14px;
  border-right:1px solid var(--b2);min-width:0;}
.h-tl-s:last-child{border-right:0;margin-right:0;padding-right:0;}
.h-tl-s .k{font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:var(--dim);white-space:nowrap;}
.h-tl-s .v{font-size:12px;font-weight:650;color:var(--text);white-space:nowrap;font-variant-numeric:tabular-nums;}
.h-tl-s.todo .v{font-weight:500;color:var(--muted);font-style:italic;}
.h-tl-s.due .v{color:var(--gold-ink,var(--text));}
.h-tl-s.late .k,.h-tl-s.late .v{color:var(--red);}
/* How much the plan-due date can be trusted, in three steps. The weight of the
   type carries the meaning, so it still reads correctly in greyscale and for a
   colour-blind coach — colour only reinforces it.
     firm      solid, underlined  — anchored to a booked reveal call
     estimate  normal, dotted     — running off the intake, nothing booked
     tentative light italic, faint- a placeholder derived from the first call */
.h-tl-s.firm .v{font-weight:700;border-bottom:2px solid var(--gold);padding-bottom:1px;}
.h-tl-s.estimate .v{font-weight:600;border-bottom:1px dashed var(--b2);padding-bottom:1px;}
.h-tl-s.tentative .v{font-weight:500;color:var(--muted);font-style:italic;}
.h-tl-s.late.firm .v{border-bottom-color:var(--red);}
/* The stage name under the date. Never louder than the date itself. */
.h-tl-s .fm{font-size:9.5px;letter-spacing:.05em;text-transform:uppercase;color:var(--dim);}
.h-tl-s.firm .fm{color:var(--gold);}
.h-tl-s.late .fm{color:var(--red);}
.h-tl-s .n{font-size:10.5px;color:var(--dim);white-space:nowrap;}

/* A coordinator ask: same firm underline, her blue instead of the gold. */
.h-tl-s.cc .v{border-bottom-color:var(--blue);}
.h-tl-s.cc .fm{color:var(--blue);}
.h-tl-s.late.cc .v{border-bottom-color:var(--red);}

/* Expected: the date the Coach Coordinator's dash is telling her to book the
   System Implementation call for. Dashed, because nothing is booked — but in HER
   blue rather than the neutral grey of an intake estimate, because the date came
   from her and not from a rule this page invented for itself. Must stay BELOW
   `.h-tl-s.firm .fm` above: same specificity, so source order decides. */
.h-tl-s.expected .v,.h-tl-s.est .v{font-weight:650;border-bottom:1px dashed var(--blue);padding-bottom:1px;}
.h-tl-s.expected .fm,.h-tl-s.est .fm{color:var(--blue);}
.h-tl-s.late.expected .v{border-bottom-color:var(--red);}

/* ── The Coach Coordinator's training-program request ──────────────────────
   She asks for the training program by a date, with a reason, from her own dash.
   It leads the card body: it is the only thing on the card a named person is
   waiting on the coach for, and the coach cannot dismiss it from here.
   Blue is the coordinator's colour in both dashes (her intake notes use it), so
   provenance is legible before a word is read; the LATE state hands over to red,
   because urgency outranks provenance. */
.h-ccreq{border-left:3px solid var(--blue);background:rgba(42,104,168,.06);
         border-radius:0 8px 8px 0;padding:8px 12px;display:flex;flex-direction:column;gap:3px;}
.h-ccreq .hd{font-size:12.5px;color:var(--text);line-height:1.45;}
.h-ccreq .hd b{font-weight:700;}
.h-ccreq .who{display:inline-block;font-size:9.5px;letter-spacing:.07em;text-transform:uppercase;
              font-weight:700;color:var(--blue);margin-right:8px;vertical-align:1px;}
.h-ccreq .rs{font-size:12px;color:var(--text);white-space:pre-wrap;
             border-top:1px solid rgba(42,104,168,.18);padding-top:4px;margin-top:1px;}
.h-ccreq .ft{font-size:10.5px;color:var(--muted);}
.h-ccreq.late{border-left-color:var(--red);background:rgba(196,46,46,.07);}
.h-ccreq.late .who{color:var(--red);}
.h-ccreq.late .rs{border-top-color:rgba(196,46,46,.2);}
/* Met: it stays on the card until she clears it, but stops shouting. */
.h-ccreq.met{border-left-color:var(--green);background:rgba(30,143,80,.05);}
.h-ccreq.met .who{color:var(--green);}
.h-ccreq.met .hd{color:var(--muted);}
.h-ccreq.met .rs{border-top-color:rgba(30,143,80,.18);color:var(--muted);}
.h-ccreq.busy{border-left-color:var(--b2);background:var(--s2);}
.h-ccreq.busy .who{color:var(--muted);}

/* ── The warm-intro prompt ─────────────────────────────────────────────────
   ONE line. It was a filled blue block with a headline, a subtitle and a
   full-width button — Georgiy 2026-08-07: too busy and too big. Sitting on a card
   whose rail is also red, two saturated blocks turned every card into an
   emergency and buried the timeline underneath them.
   So: a tinted strip the height of a single line, with the detail moved to the
   title attribute and to the roll-up above the cards, which already carries all
   three dates. Overdue swaps the blue for red — the work is unchanged, only its
   urgency is. */
.h-warm{background:rgba(42,104,168,.08);border-left:3px solid var(--blue);
        border-radius:0 6px 6px 0;padding:5px 10px;
        display:flex;align-items:center;gap:9px;flex-wrap:wrap;}
.h-warm .hd{font-size:12px;line-height:1.4;color:#24405e;}
.h-warm .hd b{font-weight:700;color:var(--text);}
/* The context line is gone from the card. It said what the roll-up above already
   says, and it was two thirds of the block's height. */
.h-warm .ft{display:none;}
.h-warm-go{margin-left:auto;font:inherit;font-size:10.5px;font-weight:700;
           letter-spacing:.02em;cursor:pointer;padding:2px 9px;border-radius:5px;
           background:var(--blue);color:#fff;border:1px solid var(--blue);white-space:nowrap;}
.h-warm-go:hover{background:#22588f;border-color:#22588f;}
.h-warm.late{background:rgba(196,46,46,.08);border-left-color:var(--red);}
.h-warm.late .hd{color:#7d1f1f;}
.h-warm.late .h-warm-go{background:var(--red);border-color:var(--red);}
.h-warm.late .h-warm-go:hover{background:#a52626;border-color:#a52626;}
/* Done: quieter still, and it keeps the same single-line shape so ticking one
   off does not reflow the card. */
.h-warm.sent{background:transparent;border-left-color:rgba(30,143,80,.45);}
.h-warm.sent .hd{font-size:11.5px;color:var(--green);}
.h-warm.sent .h-warm-go{background:transparent;color:var(--muted);border-color:var(--s3);}
.h-warm.sent .h-warm-go:hover{background:var(--s2);color:var(--text);}

/* ── "Warm intros to send" — the roll-up above the cards ───────────────────
   Deliberately a LIST, not more cards: the question it answers is "who is
   waiting", and a list of four names answers that in one look where four cards
   would not. Columns are fixed so the names, the deadlines and the buttons each
   read as their own column down the page instead of as four ragged rows. */
.h-warmtier .h-warmlist{display:flex;flex-direction:column;gap:1px;background:var(--b1);
                        border:1px solid var(--b1);border-radius:8px;overflow:hidden;}
.h-warmrow{display:grid;grid-template-columns:minmax(110px,1fr) minmax(150px,auto) minmax(280px,2.2fr) auto;
           gap:12px;align-items:center;background:var(--s1);padding:8px 12px;font-size:12.5px;}
.h-warmrow .nm{font-weight:700;color:var(--text);}
/* Toggle row that reveals / hides the already-sent warm intros. */
.h-warmsenttoggle{background:var(--s1);padding:7px 12px;display:flex;justify-content:center;}
.h-warmsenttoggle .h-btn{font-size:11px;padding:5px 12px;}
/* Same label-then-date shape as the three dates to its right, so "Send by" reads
   as one more date on the line rather than a bare countdown. The countdown stays,
   as the smallest part of it. */
.h-warmrow .due{font-weight:700;color:var(--blue);white-space:nowrap;display:inline-flex;
                align-items:baseline;gap:5px;}
.h-warmrow .due .lb{font-size:9px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--dim);}
.h-warmrow .due em{font-style:normal;font-size:10px;font-weight:700;letter-spacing:.03em;color:var(--muted);}
.h-warmrow.late .due em{color:var(--red);}
/* Paid › Coordinator › Call, on one line. The label is what tells you which
   date you are looking at, so it leads — but at 9px uppercase it never competes
   with the date itself, which is the thing being read. */
.h-warmrow .ctx{font-size:11px;color:var(--muted);display:flex;align-items:baseline;
                gap:7px;flex-wrap:wrap;min-width:0;}
.h-warmrow .ctx .dt{white-space:nowrap;color:var(--text);}
.h-warmrow .ctx .dt i{font-style:normal;font-size:9px;font-weight:700;letter-spacing:.07em;
                      text-transform:uppercase;color:var(--dim);margin-right:5px;}
.h-warmrow .ctx .ar{color:var(--b2);}
.h-warmrow .ctx .gap{margin-left:1px;font-size:10px;font-weight:700;white-space:nowrap;
                     color:var(--muted);background:var(--s2);border-radius:9px;padding:1px 7px;}
.h-warmrow .act{display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap;}
.h-warmrow.late{background:rgba(196,46,46,.05);}
.h-warmrow.late .due{color:var(--red);}
/* Sent rows stay, quietly: a coach checking "did I do Albert" should find him
   here rather than find nothing and have to remember. */
.h-warmrow.done{background:var(--s2);}
.h-warmrow.done .nm{font-weight:400;color:var(--muted);}
.h-warmrow.done .due.ok{color:var(--green);font-weight:400;}
/* The short pre-call note lives as a BUTTON on the card, not a banner. Nobody is
   waiting on it — the client's call is already close — and a second blue bar on
   every card would flatten the one that does mean somebody is. Outlined in the
   coordinator blue so it is findable without shouting. */
.h-btn.pre{border-color:rgba(42,104,168,.45);color:var(--blue);}
.h-btn.pre:hover{background:rgba(42,104,168,.08);border-color:var(--blue);}
/* Narrow: the dates drop to their own line rather than squeezing the name and
   the deadline into nothing. Raised from 720 to 1040 because the drawer takes
   430px out of the page whenever it is open. */
@media (max-width:1040px){
  .h-warmrow{grid-template-columns:1fr auto;row-gap:4px;}
  .h-warmrow .ctx{grid-column:1/-1;}
  .h-warmrow .act{grid-column:1/-1;justify-content:flex-start;}
}

.h-checks{display:flex;align-items:center;gap:16px;flex-wrap:wrap;font-size:12px;}
.h-ck{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;}
.h-ck .m{width:17px;height:17px;border-radius:50%;display:grid;place-items:center;font-size:9px;font-weight:800;flex:0 0 auto;}
.h-ck.yes .m{background:var(--green);color:#fff;border:1px solid var(--green);}
.h-ck.no  .m{background:rgba(196,46,46,.10);color:var(--red);border:1.5px solid var(--red);}
.h-ck.todo .m{background:var(--s1);color:var(--dim);border:1.5px solid var(--b2);}
.h-ck.todo span:last-child{color:var(--muted);}
.h-ck.err .m{background:rgba(184,90,20,.12);color:var(--orange);border:1px solid rgba(184,90,20,.45);}
.h-ck.busy .m{background:var(--s2);border:1px solid var(--b1);}
.h-ck.na .m{background:var(--s1);color:var(--dim);border:1.5px dashed var(--b2);}
.h-ck.na span.lb{color:var(--muted);font-style:italic;}
.h-ck.no span.lb{color:var(--red);font-weight:650;}
.h-ck.err span.lb{color:var(--orange);font-weight:650;}
.h-ck .tag{font-size:8.5px;letter-spacing:.09em;text-transform:uppercase;color:var(--dim);border:1px solid var(--b1);border-radius:2px;padding:0 3px;}
button.h-ck{background:none;border:0;padding:0;font-family:'Manrope',sans-serif;font-size:11.5px;color:var(--text);cursor:pointer;}
button.h-ck:hover .m{border-color:var(--gold);}
button.h-ck:focus-visible{outline:2px solid var(--gold);outline-offset:2px;border-radius:3px;}
.h-mini{width:11px;height:11px;border:2px solid var(--b2);border-top-color:var(--gold);border-radius:50%;
        display:inline-block;animation:hspin .7s linear infinite;}
@keyframes hspin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){ .h-mini{animation:none;border-top-color:var(--b2);} }
.h-guides{font-size:10.5px;color:var(--muted);padding-left:20px;}
.h-guides b{color:var(--text);font-weight:600;}
.h-bot{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border-top:1px solid var(--s2);padding-top:11px;}
.h-stats{font-size:11.5px;color:var(--muted);}
.h-stats b{color:var(--text);font-weight:600;font-variant-numeric:tabular-nums;}
/* A real button, so it works on click, on tap, and from the keyboard —
   the native title alone was neither reachable nor dismissible. */
.h-wflag{font-family:'Manrope',sans-serif;font-size:11.5px;color:var(--orange);font-weight:600;cursor:pointer;
         background:rgba(184,90,20,.08);border:1px solid rgba(184,90,20,.32);border-radius:999px;
         padding:3px 11px;transition:.12s;}
.h-wflag:hover{background:rgba(184,90,20,.16);border-color:var(--orange);}
.h-wflag:focus-visible{outline:2px solid var(--orange);outline-offset:2px;}
.h-wflag b{color:var(--orange);font-weight:700;}
.h-btns{margin-left:auto;display:flex;gap:6px;flex-wrap:wrap;}
.h-btn{font-family:'Manrope',sans-serif;font-size:11.5px;padding:6px 13px;border-radius:9px;border:1px solid var(--b2);
       background:var(--s1);color:var(--text);cursor:pointer;white-space:nowrap;transition:.12s;}
.h-btn:hover{border-color:var(--gold);color:var(--gold);}
.h-btn:focus-visible{outline:2px solid var(--gold);outline-offset:2px;}
.h-btn[disabled]{opacity:.45;cursor:not-allowed;}
.h-btn[disabled]:hover{border-color:var(--b2);color:var(--text);}
.h-btn.text{border-color:transparent;background:var(--gold);color:#fff;font-weight:650;}
/* Overdue reads red while it is not the active filter, so a non-zero count is
   visible without having to click it. Active state still wins. */
.h-btn.late{color:var(--red);border-color:var(--red);}
.h-btn.late:hover{color:var(--red);border-color:var(--red);}
.h-btn.text.late{color:#fff;border-color:transparent;background:var(--red);}
.h-btn.text:hover{background:var(--gold-d);color:#fff;border-color:transparent;}
.h-btn.armed{border-color:var(--red);background:var(--red);color:#fff;font-weight:700;}
.h-btn.armed:hover{color:#fff;border-color:var(--red);}
.h-btn.done{border-style:dashed;color:var(--muted);}
.h-flag{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:650;
        padding:3px 11px;border-radius:999px;border:1px solid;white-space:nowrap;}
.h-flag.crit{color:var(--red);border-color:rgba(196,46,46,.35);background:rgba(196,46,46,.09);}
.h-flag.tight{color:var(--orange);border-color:rgba(184,90,20,.35);background:rgba(184,90,20,.09);}
.h-flag.ok{color:var(--green);border-color:rgba(30,143,80,.35);background:rgba(30,143,80,.09);}
.h-flag.info{color:var(--blue);border-color:rgba(42,104,168,.35);background:rgba(42,104,168,.09);}
.h-disc{display:flex;align-items:center;gap:9px;background:var(--s2);border:1px dashed var(--b2);border-radius:var(--r);
        padding:7px 12px;font-size:11.5px;color:var(--muted);cursor:pointer;width:100%;text-align:left;
        font-family:'Manrope',sans-serif;}
.h-disc:hover{border-color:var(--gold-border);color:var(--text);}
.h-disc:focus-visible{outline:2px solid var(--gold);outline-offset:2px;}
.h-disc b{color:var(--text);font-weight:650;}
.h-disc .names{margin-left:auto;font-size:10.5px;color:var(--dim);}
/* Failure banner — names the thing, the reason, and the next step. */
.h-fail{background:rgba(184,90,20,.07);border:1px solid rgba(184,90,20,.35);border-left:3px solid var(--orange);
        border-radius:var(--r);padding:11px 14px;margin-bottom:16px;display:flex;flex-direction:column;gap:7px;}
.h-fail .t{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--orange);}
.h-fail .it{font-size:12px;color:var(--text);}
.h-fail .it b{font-weight:700;}
.h-fail .why{color:var(--muted);font-family:'Manrope',monospace;font-size:10.5px;word-break:break-word;}
.h-fail .fix{color:var(--muted);font-size:11.5px;}
/* A crash is louder than a failed load, because a failed load leaves a working
   page and a crash does not. Red rather than orange, and it does not share the
   orange the page already uses for overdue work. */
.h-fail.crash{background:rgba(178,34,34,.08);border-color:rgba(178,34,34,.4);border-left-color:#b22222;}
.h-fail.crash .t{color:#b22222;}
/* Home could not be drawn at all. This is the only thing on the page, so it is
   sized to be read rather than glanced at. */
.h-crash{background:rgba(178,34,34,.06);border:1px solid rgba(178,34,34,.38);border-left:3px solid #b22222;
         border-radius:var(--r);padding:18px 20px;display:flex;flex-direction:column;gap:10px;max-width:760px;}
.h-crash .t{font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#b22222;}
.h-crash .lead{font-size:13px;color:var(--text);line-height:1.5;}
.h-crash .why{font-family:'Manrope',monospace;font-size:11px;color:var(--text);white-space:pre-wrap;
              word-break:break-word;background:var(--s1);border:1px solid var(--b1);border-radius:6px;padding:9px 11px;}
.h-crash .fix{font-size:12px;color:var(--muted);line-height:1.55;}
.h-crash .acts{display:flex;gap:8px;flex-wrap:wrap;}
/* One card failed and the rest of the page survived. Keeps the card's footprint
   so the list doesn't jump, and says whose card it was — a card that vanished
   would read as a client dropping off the roster. */
.h-cardfail{border-color:rgba(178,34,34,.38)!important;border-left:3px solid #b22222!important;
            display:flex;flex-direction:column;gap:6px;padding:14px 16px;
            margin-bottom:10px;background:rgba(178,34,34,.05);}
.h-cardfail .t{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#b22222;}
.h-cardfail .who{font-size:13px;font-weight:650;color:var(--text);}
.h-cardfail .why{font-family:'Manrope',monospace;font-size:10.5px;color:var(--muted);word-break:break-word;}
.h-cardfail .fix{font-size:11.5px;color:var(--muted);display:flex;gap:8px;align-items:center;flex-wrap:wrap;}
/* View note — a normal consequence of the current filter, NOT a failure, so it
   is deliberately quiet: no orange, no warning glyph. Anything that borrows the
   failure banner's alarm for a working page teaches coaches to ignore both. */
.h-viewnote{background:var(--s1);border:1px solid var(--b1);border-radius:var(--r);padding:9px 13px;
            margin-bottom:16px;display:flex;align-items:center;gap:12px;flex-wrap:wrap;
            font-size:11.5px;color:var(--muted);}
.h-viewnote b{color:var(--text);font-weight:650;}
.h-viewnote-btn{margin-left:auto;background:var(--s2);border:1px solid var(--b1);border-radius:var(--r);
                padding:5px 11px;font-size:11.5px;color:var(--text);cursor:pointer;
                font-family:'Manrope',sans-serif;white-space:nowrap;}
.h-viewnote-btn:hover{border-color:var(--gold-border);}
.h-viewnote-btn:focus-visible{outline:2px solid var(--gold);outline-offset:2px;}
/* KPI strip — tiles are controls, not decoration: each one either opens a
   working panel underneath or jumps to the page that owns the work. */
/* 7 tiles. At 148px minimum only three fitted beside the checklist rail, so
   they wrapped onto three rows; 132 fits four, which lands them in two. The
   figures are short ("25", "43/100") so the narrower tile costs nothing. */
.h-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(132px,1fr));gap:9px;margin-bottom:14px;}
.h-kpi{background:var(--s1);border:1px solid var(--b1);border-radius:var(--r);padding:10px 12px;text-align:left;
       cursor:pointer;font-family:'Manrope',sans-serif;display:flex;flex-direction:column;gap:3px;transition:.12s;}
.h-kpi:hover{border-color:var(--gold);}
.h-kpi:focus-visible{outline:2px solid var(--gold);outline-offset:2px;}
.h-kpi.on{border-color:var(--gold);background:var(--gold-bg);box-shadow:inset 0 -2px 0 var(--gold);}
.h-kpi .n{font-family:'Manrope',monospace;font-size:23px;font-weight:700;letter-spacing:-.02em;line-height:1.1;color:var(--text);}
.h-kpi .n.red{color:var(--red);} .h-kpi .n.green{color:var(--green);} .h-kpi .n.gold{color:var(--gold);}
.h-kpi .lb{font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);}
/* The tasks tile carries a five-part breakdown, which will not read on one line
   in a 132px column — so it spans two. Falls back to a single column on narrow
   screens, where the grid is one column anyway. */
.h-kpi.wide{grid-column:span 2;}
@media (max-width:640px){.h-kpi.wide{grid-column:span 1;}}
.h-kpi .h-tdue{display:block;margin-top:3px;font-size:11px;font-weight:700;color:var(--muted);}
.h-kpi .h-tdue.due{color:var(--red);}
.h-kpi .h-tdue i{font-style:normal;font-weight:700;color:var(--red);}
.h-kpi .h-tbrk{display:flex;flex-wrap:wrap;gap:3px 10px;margin-top:6px;padding-top:6px;border-top:1px solid var(--b1);}
.h-kpi .h-tbrk span{font-size:10.5px;color:var(--muted);white-space:nowrap;}
.h-kpi .h-tbrk b{font-family:'Manrope',monospace;font-weight:700;color:var(--text);font-variant-numeric:tabular-nums;}
.h-kpi .h-tbrk .up{opacity:.6;font-style:italic;}
.h-kpi .h-tbrk .up b{color:var(--muted);}
.h-kpi .sub{font-size:10.5px;color:var(--dim);}
.h-kpi .sub.warn{color:var(--orange);font-weight:600;}
.h-panel{background:var(--s1);border:1px solid var(--gold-border);border-radius:var(--r);margin-bottom:14px;overflow:hidden;}
.h-ph{display:flex;align-items:center;gap:9px;padding:8px 12px;border-bottom:1px solid var(--b1);background:var(--gold-bg);}
.h-ph .t{font-size:10px;font-weight:700;letter-spacing:.13em;text-transform:uppercase;color:var(--gold);}
.h-prow{display:flex;flex-direction:column;gap:6px;padding:9px 12px;border-top:1px solid var(--s2);}

.h-prow:first-of-type{border-top:0;}
.h-prow .rh{display:flex;align-items:baseline;gap:9px;}
.h-prow .who{font-size:12.5px;font-weight:650;}
.h-prow .when{margin-left:auto;font-family:'Manrope',monospace;font-size:10px;color:var(--muted);white-space:nowrap;}
.h-prow .ex{font-size:11.5px;color:var(--muted);line-height:1.45;}
.h-reply{display:flex;gap:6px;align-items:flex-start;}
.h-reply textarea{flex:1;background:var(--s2);border:1px solid var(--b1);border-radius:var(--r);padding:6px 9px;
                  font-family:'Manrope',sans-serif;font-size:12px;color:var(--text);resize:vertical;min-height:34px;outline:none;}
.h-reply textarea:focus{border-color:var(--gold);}
.h-load{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:12px;padding:16px 4px;}
.h-empty{background:var(--s1);border:1px solid var(--b1);border-radius:var(--r);padding:22px 14px;text-align:center;
         color:var(--muted);font-size:12px;}
.h-empty .big{font-size:13.5px;color:var(--green);font-weight:700;margin-bottom:3px;}
.hdr-space{flex:1;}
.sync-info{font-size:10px;color:var(--muted);white-space:nowrap;letter-spacing:.3px;}
.sync-btn{background:var(--s2);border:1px solid var(--b1);color:var(--muted);font-family:'Manrope',sans-serif;font-size:11px;font-weight:500;padding:6px 13px;border-radius:var(--r);cursor:pointer;transition:.15s;letter-spacing:.3px;display:inline-flex;align-items:center;gap:6px;}
.sync-btn:hover{border-color:var(--gold-border);color:var(--gold);}
.sync-btn.spinning{opacity:.6;pointer-events:none;color:var(--gold);border-color:var(--gold-border);}
.sync-btn.spinning::before{content:'';width:10px;height:10px;border:1.5px solid var(--gold);border-top-color:transparent;border-radius:50%;animation:sync-spin 0.7s linear infinite;display:inline-block;}
.ci-detail-action.spinning{opacity:.6;pointer-events:none;color:var(--gold);border-color:var(--gold-border);}
.ci-detail-action.spinning::before{content:'';width:9px;height:9px;border:1.5px solid var(--gold);border-top-color:transparent;border-radius:50%;animation:sync-spin 0.7s linear infinite;display:inline-block;margin-right:4px;vertical-align:-1px;}
@keyframes sync-spin{to{transform:rotate(360deg);}}
/* Header "⚙ More" overflow menu — low-frequency global tools tucked off the bar. */
.hdr-more{position:relative;display:inline-flex;}
.hdr-more-menu{position:absolute;top:calc(100% + 6px);right:0;z-index:300;min-width:150px;
  background:var(--s1);border:1px solid var(--b1);border-radius:8px;padding:5px;
  box-shadow:0 8px 24px rgba(0,0,0,.12);display:none;flex-direction:column;gap:3px;}
.hdr-more-menu.open{display:flex;}
.hdr-more-item{background:transparent;border:0;text-align:left;font-family:'Manrope',sans-serif;
  font-size:12px;font-weight:500;color:var(--text);padding:8px 10px;border-radius:6px;cursor:pointer;
  display:flex;align-items:center;gap:8px;transition:.12s;}
.hdr-more-item:hover{background:var(--gold-bg);color:var(--gold);}
/* Universal busy state for any refresh/sync button driven by withBtnSpin(). */
.btn-spinning{opacity:.7;pointer-events:none;}
.btn-spinning::before{content:'';display:inline-block;width:10px;height:10px;margin-right:6px;border:1.5px solid currentColor;border-top-color:transparent;border-radius:50%;animation:sync-spin .7s linear infinite;vertical-align:-1px;}
.bell-btn{position:relative;background:var(--s2);border:1px solid var(--b1);color:var(--muted);padding:6px 10px;border-radius:var(--r);cursor:pointer;font-size:14px;transition:.15s;line-height:1;}
.bell-btn:hover{border-color:var(--gold-border);color:var(--gold);}
.alert-badge{position:absolute;top:-5px;right:-5px;background:var(--red);color:#fff;font-size:9px;font-weight:700;min-width:16px;height:16px;border-radius:8px;display:none;align-items:center;justify-content:center;padding:0 3px;}
.alert-badge.on{display:flex;}

/* LAYOUT */
.layout{display:flex;min-height:calc(100vh - 50px);}

/* SIDEBAR */
.sidebar{width:180px;flex-shrink:0;border-right:1px solid var(--b1);background:var(--s1);padding:12px 0;position:sticky;top:50px;height:calc(100vh - 50px);overflow-y:auto;}
.nav-section{font-size:8px;letter-spacing:.2em;text-transform:uppercase;color:var(--dim);padding:0 14px;margin:14px 0 5px;font-weight:600;}
.nav-item{display:flex;align-items:center;gap:9px;padding:9px 14px;color:var(--muted);cursor:pointer;transition:.12s;border-left:2px solid transparent;background:none;border-top:none;border-right:none;border-bottom:none;width:100%;text-align:left;font-family:'Manrope',sans-serif;font-size:13px;font-weight:500;}
/* ── A NAV ENTRY THAT LEAVES ─────────────────────────────────────────────
   `.nav-item` was written for a <button>, and an <a> wearing it inherits the
   underline the UA gives every link. Same shape as its neighbours so the
   sidebar reads as one list, and deliberately never `.active`: it cannot be
   the live page, because the page it opens is not in this dash. The arrow is
   the only difference and it is enough — a second colour here would make the
   one entry that is not a queue the loudest thing in the queue list. */
a.nav-item{text-decoration:none}
a.nav-item .nav-ext{margin-left:auto;font-size:11px;opacity:.55}
.nav-item:hover{color:var(--text);background:var(--s2);}
.nav-item.active{color:var(--gold);border-left-color:var(--gold);background:var(--gold-bg);}
.nav-subitem{display:flex;align-items:center;gap:8px;padding:6px 14px 6px 34px;color:var(--muted);cursor:pointer;transition:.12s;border-left:2px solid transparent;background:none;border-top:none;border-right:none;border-bottom:none;width:100%;text-align:left;font-family:'Manrope',sans-serif;font-size:12px;font-weight:500;}
.nav-subitem:hover{color:var(--text);background:var(--s2);}
.nav-subitem.active{color:var(--gold);border-left-color:var(--gold);background:var(--gold-bg);}
.nav-item svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;}
.nav-badge{margin-left:auto;background:var(--s3);color:var(--muted);font-size:9px;font-weight:600;padding:2px 6px;border-radius:3px;letter-spacing:.3px;}
.nav-badge.red{background:rgba(196,46,46,.1);color:var(--red);}
/* Cap-widget number inputs: kill native spinner arrows so 2-digit values don't clip. */
.cap-num::-webkit-inner-spin-button,.cap-num::-webkit-outer-spin-button{-webkit-appearance:none;margin:0;}
.cap-num{-moz-appearance:textfield;appearance:textfield;}

/* MAIN */
.main{flex:1;min-width:0;overflow-y:auto;background:var(--bg);}
.page{display:none;padding:28px 32px 80px;max-width:1120px;animation:fi .18s ease;}
.page.active{display:block;}
/* Modal-overlay mode: used when the client profile is opened from the alerts
   page so the alerts list stays visible underneath. Same content, just
   displayed as a centered card on top of a dimmed backdrop. */
.page.as-modal{display:block!important;position:fixed;inset:0;z-index:200;max-width:none;background:rgba(0,0,0,.58);padding:32px 16px;overflow-y:auto;}
.page.as-modal>*{max-width:1120px;margin-left:auto;margin-right:auto;}
.page.as-modal #client-detail-content{background:var(--bg);border:1px solid var(--b1);border-radius:12px;padding:24px 26px;box-shadow:0 24px 60px rgba(0,0,0,.45);}
.page.as-modal .back-btn{background:var(--bg);border:1px solid var(--b1);color:var(--text);font-weight:600;}
@keyframes fi{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
/* ⛔ NO FADE ON THE MANAGEMENT PAGE, and it is not a style choice.
   `fi` animates TRANSFORM, and a transform on an element makes it the
   containing block for a position:fixed DESCENDANT. The management lock
   (#mgmt-lock, js/25c-mgmt-lock.js) lives inside #page-management so that
   .page{display:none} hides it on the way out for free. With the fade on, the
   lock would paint inside this 1120px column for the 180ms of the animation
   and then jump to the viewport. The lock being in the right place beats a
   fade nobody asked for. */
#page-management{animation:none;}

/* PAGE HEADERS */
.pg-hdr{display:flex;align-items:center;gap:12px;margin-bottom:22px;}
/* ── Embed mode (?embed=intakes) ─────────────────────────────────────────────
   Renders ONE page with no shell, so another dash can iframe this section
   instead of reimplementing it. The point is a single source of truth: the
   Coach Coordinator dash frames the real Intakes queue, running this code
   against this sheet, so a link made there IS the link made here and no sync
   can drift. Chrome is hidden rather than removed — every handler the page
   relies on still exists. */
body.embed-mode .sidebar,
body.embed-mode #global-admin-btn,
body.embed-mode .topbar{display:none !important;}
body.embed-mode .main{margin-left:0 !important;padding:14px 16px 40px !important;max-width:none;}
body.embed-mode{background:var(--bg);}
.pg-title{font-family:'Manrope',sans-serif;font-size:28px;letter-spacing:3px;color:var(--text);}
.pg-sub{color:var(--muted);font-size:12px;margin-top:3px;}
.pg-hdr-right{margin-left:auto;display:flex;gap:8px;}
.eyebrow{font-size:9px;letter-spacing:.2em;text-transform:uppercase;color:var(--gold);margin-bottom:7px;font-weight:600;}
