/* workout log, loader, modals, popups, contact log, intakes
   Extracted from index.html 2026-08-01. Load order matters: later files
   override earlier ones, exactly as the single <style> block did. */

/* WORKOUT LOG TABLE */
.log-table{width:100%;border-collapse:collapse;margin-bottom:18px;}
.log-table th{font-size:8px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);padding:7px 10px;text-align:left;border-bottom:1px solid var(--b1);font-weight:600;background:var(--s2);}
.log-table td{padding:9px 10px;font-size:12px;border-bottom:1px solid var(--b1);color:var(--muted);}
.log-table tr:last-child td{border-bottom:none;}
.log-table tr:hover td{background:var(--s2);}
.log-completed{color:var(--green);font-weight:600;}
.log-missed{color:var(--red);font-weight:600;}

/* LOADER */
.loader{display:flex;align-items:center;justify-content:center;gap:10px;padding:60px 20px;color:var(--muted);font-size:12px;}
.spin{width:16px;height:16px;border:2px solid var(--b1);border-top-color:var(--gold);border-radius:50%;animation:spin .7s linear infinite;}
@keyframes spin{to{transform:rotate(360deg)}}

/* TOAST */
#toast{position:fixed;bottom:22px;right:22px;background:var(--text);color:#fff;font-size:12px;font-weight:500;padding:10px 16px;border-radius:var(--r);z-index:999;opacity:0;pointer-events:none;transition:all .2s;transform:translateY(4px);box-shadow:0 4px 14px rgba(0,0,0,.18);}
#toast.on{opacity:1;transform:translateY(0);}
/* A STICKY toast is a different object wearing the same element.
   pointer-events on the base rule is `none`, so without this override the
   "(tap to dismiss)" it renders would be a lie — the click never lands and the
   message sits there for ever. It is also allowed to wrap: a permanent failure
   is two lines ending in "Notify Georgiy", and the one-line base rule would
   push half of it off the screen. Red, because it is not a confirmation. */
#toast.sticky{pointer-events:auto;cursor:pointer;white-space:normal;line-height:1.45;max-width:min(460px,calc(100vw - 44px));padding:12px 16px;background:var(--red,#c42e2e);font-weight:600;}

/* MACRO BAR */
.macro-bar-row{display:flex;align-items:center;gap:12px;margin-bottom:9px;}
.macro-name{font-size:9px;text-transform:uppercase;letter-spacing:.12em;color:var(--muted);min-width:60px;font-weight:600;}
.macro-track{flex:1;height:6px;background:var(--s3);border-radius:3px;overflow:hidden;}
.macro-fill{height:100%;border-radius:3px;transition:width .5s ease;}
.macro-val{font-size:11px;color:var(--text);min-width:50px;text-align:right;font-weight:600;}

/* FLAG BANNER */
.flag-banner{background:rgba(196,46,46,.05);border:1px solid rgba(196,46,46,.2);border-radius:var(--r);padding:10px 16px;margin-bottom:18px;display:flex;align-items:center;gap:10px;font-size:12px;color:var(--red);font-weight:500;}

/* MODALS */
.sp-modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:600;display:none;align-items:center;justify-content:center;padding:20px;}
.sp-modal-overlay.open{display:flex;}
.sp-modal{background:var(--s1);border:1px solid var(--b2);border-radius:var(--r);box-shadow:0 20px 60px rgba(0,0,0,.16);width:100%;max-width:500px;max-height:85vh;display:flex;flex-direction:column;overflow:hidden;}
.sp-modal-hdr{display:flex;align-items:center;padding:16px 18px 12px;border-bottom:1px solid var(--b1);flex-shrink:0;}
.sp-modal-title{font-family:'Manrope',sans-serif;font-size:18px;letter-spacing:2px;color:var(--text);flex:1;}
.sp-modal-close{background:none;border:none;color:var(--muted);font-size:18px;cursor:pointer;padding:0 4px;line-height:1;transition:.12s;}
.sp-modal-close:hover{color:var(--text);}
.sp-modal-body{padding:14px 18px;overflow-y:auto;flex:1;}
.sp-modal-footer{padding:10px 18px;border-top:1px solid var(--b1);flex-shrink:0;display:flex;gap:8px;align-items:center;}
.trends-modal{max-width:860px;max-height:88vh;}
#trends-range-btns{display:flex;gap:5px;margin:0 0 2px;}

/* COACH CAPACITY 4-WEEK OUTLOOK MATRIX (cap-forecast-modal / #cfBody) */
.cf-matrix{width:100%;min-width:600px;border-collapse:collapse;font-size:13px;}
.cf-matrix th,.cf-matrix td{text-align:center;padding:0;}
.cf-matrix thead th{padding:11px 6px 9px;border-bottom:1px solid var(--b1);vertical-align:top;font-family:'Manrope',sans-serif;font-size:12px;letter-spacing:.6px;color:var(--text);font-weight:400;line-height:1.4;}
.cf-matrix thead th.cf-coach{text-align:left;padding-left:20px;font-family:'Manrope',monospace;font-size:9px;letter-spacing:1px;color:var(--dim);}
.cf-matrix thead th.cf-now,.cf-matrix td.cf-now{background:rgba(30,143,80,.05);}
.cf-d{display:block;font-family:'Manrope',monospace;font-size:9px;color:var(--muted);letter-spacing:0;margin-top:1px;}
.cf-k{display:inline-block;font-family:'Manrope',monospace;font-size:7.5px;letter-spacing:1px;padding:1px 5px;border-radius:3px;margin-top:3px;}
.cf-klive{background:rgba(30,143,80,.12);color:var(--green);}
.cf-kest{background:var(--gold-bg);color:var(--gold);}
.cf-matrix tbody th.cf-name{text-align:left;padding:12px 14px 12px 20px;font-family:'Manrope',sans-serif;font-weight:700;font-size:13px;border-bottom:1px solid var(--s3);white-space:nowrap;color:var(--text);}
.cf-matrix tbody td{border-bottom:1px solid var(--s3);border-left:1px solid var(--s3);padding:10px 6px;}
.cf-matrix tbody tr:last-child th,.cf-matrix tbody tr:last-child td{border-bottom:none;}
.cf-actual{font-family:'Manrope',monospace;font-size:16px;font-weight:700;}
.cf-est{font-family:'Manrope',monospace;font-size:16px;font-weight:500;}
.cf-est.cf-over{font-weight:700;}
.cf-cap{opacity:.5;font-size:12px;}
.cf-muted{color:var(--dim);font-family:'Manrope',monospace;}
.cf-pill{display:block;font-family:'Manrope',monospace;font-size:7.5px;letter-spacing:.6px;margin-top:2px;}
.cf-capped{display:block;font-size:7.5px;letter-spacing:.6px;color:var(--red);font-weight:800;margin-top:3px;}
.cf-unrow th,.cf-unrow td{border-top:1px solid var(--b1)!important;background:var(--gold-bg);}
.cf-unbtn{font-family:'Manrope',monospace;font-size:15px;font-weight:700;color:var(--gold);background:none;border:none;cursor:pointer;padding:3px 8px;border-radius:4px;text-decoration:underline;text-underline-offset:3px;}
.cf-unbtn:hover{background:rgba(160,122,8,.14);}
.cf-unpanel{display:none;padding:11px 20px 14px;background:var(--gold-bg);border-top:1px solid var(--b1);}
.cf-unpanel.open{display:block;}
.cf-uh{font-family:'Manrope',monospace;font-size:10px;letter-spacing:.5px;color:var(--gold);text-transform:uppercase;margin-bottom:7px;}
.cf-uname{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:5px 0;border-bottom:1px solid rgba(160,122,8,.16);font-size:12px;color:var(--text);}
.cf-uname:last-child{border-bottom:none;}
.cf-flag{font-family:'Manrope',monospace;font-size:9px;color:var(--red);border:1px solid var(--red);border-radius:3px;padding:1px 5px;white-space:nowrap;}
.cf-ok{font-family:'Manrope',monospace;font-size:9px;color:var(--muted);white-space:nowrap;}
.cf-banner{margin:12px 20px 0;padding:8px 11px;background:var(--gold-bg);border:1px solid var(--gold-border);border-radius:5px;font-size:11px;color:var(--gold);}
.cf-legend{display:flex;flex-wrap:wrap;gap:14px;padding:13px 20px;border-top:1px solid var(--b1);background:var(--s2);font-size:10.5px;color:var(--muted);}
.cf-legend b{font-family:'Manrope',monospace;}
.cf-notes{padding:12px 20px 18px;font-size:11px;color:var(--muted);line-height:1.6;}
.cf-notes code,.cf-banner code{font-family:'Manrope',monospace;font-size:10px;background:var(--s2);padding:1px 4px;border-radius:3px;color:var(--gold);}
/* editable cells */
.cf-coachcell{vertical-align:middle;}
/* The coach NAME must not wrap, but the state note under it is a sentence. It
   used to inherit `white-space:nowrap` from th.cf-name, so Julian's "0 this week
   · reopens to 4 on Saturday…" stretched the first column until WEEK 4 fell off
   the right edge of a card that is `overflow:hidden` — the column Georgiy could
   not reach or scroll to (2026-10-31). The note wraps and is width-capped; the
   body below is the scroll container that catches anything else that overflows. */
.cf-statenote{white-space:normal;max-width:210px;}
.cf-cn{font-family:'Manrope',sans-serif;font-weight:700;font-size:14px;color:var(--text);}
.cf-defrow{display:flex;align-items:center;gap:5px;margin-top:6px;font-size:9px;color:var(--muted);font-family:'Manrope',monospace;}
.cf-defin{width:30px;font-family:'Manrope',monospace;font-size:11px;font-weight:700;text-align:center;border:1px solid var(--gold-border);border-radius:3px;background:var(--s1);color:var(--text);padding:1px 0;outline:none;}
.cf-cellwrap{display:inline-flex;align-items:center;justify-content:center;}
.cf-load{font-family:'Manrope',monospace;font-size:16px;font-weight:700;}
.cf-slash{opacity:.4;font-family:'Manrope',monospace;font-size:14px;margin:0 2px;}
.cf-capin{width:34px;font-family:'Manrope',monospace;font-size:15px;font-weight:700;text-align:center;border:1px solid var(--gold-border);border-radius:3px;background:var(--s1);color:var(--text);padding:2px 0;outline:none;}
.cf-capin:focus{border-color:var(--gold);box-shadow:0 0 0 2px var(--gold-bg);}
.cf-capin.cf-ovr{border-color:var(--gold);background:var(--gold-bg);}
.cf-capstatic{font-family:'Manrope',monospace;font-size:15px;font-weight:700;color:var(--text);opacity:.75;}
.cf-capout{display:block;margin:6px auto 0;border-radius:3px;cursor:pointer;font-size:7.5px;letter-spacing:.03em;padding:3px 6px;text-align:center;border:1px solid var(--b1);background:var(--s1);color:var(--muted);font-weight:600;white-space:nowrap;}
.cf-capout.on{border:1px solid var(--red);background:rgba(196,46,46,.12);color:var(--red);font-weight:800;}
.cf-matrix td.cf-capped-cell{background:rgba(196,46,46,.06);}
.cf-matrix td.cf-now.cf-capped-cell{background:rgba(196,46,46,.09);}
/* WRITE STATES on the cap boxes. A cap edit used to save in total silence, which
   is indistinguishable from "it didn't stick" — the complaint that opened this.
   Every write now says saving, saved, failed, or (the one that gets missed) no
   answer at all. */
.cf-save{display:block;font-family:'Manrope',monospace;font-size:7.5px;letter-spacing:.4px;margin-top:3px;line-height:1.3;white-space:normal;}
.cf-save.saving{color:var(--muted);}
.cf-save.saved{color:var(--green);}
.cf-save.failed{color:var(--red);font-weight:700;}
.cf-save.unknown{color:var(--gold);font-weight:700;}
.cf-capin.is-saving,.cf-defin.is-saving{opacity:.55;border-style:dashed;}
.cf-capin.is-failed,.cf-defin.is-failed{border-color:var(--red);background:rgba(196,46,46,.08);}
/* The cap this week vs the baseline every week resets to. When they disagree the
   number on screen is temporary, and nothing said so unless the cap was 0. */
.cf-drift{white-space:normal;max-width:210px;color:var(--gold);font-size:10px;line-height:1.3;margin-top:2px;}

/* UNLINKED CHECK-IN ROW */
.checkin-row.unlinked{border-left:3px solid var(--red);}
.checkin-row.unlinked .checkin-hdr{background:rgba(196,46,46,.04);}
.checkin-row.unlinked .checkin-hdr:hover{background:rgba(196,46,46,.08);}

/* FLOATING POPUPS (contact + link info) */
#contact-popup,#link-info-popup,#home-info-popup{position:fixed;background:var(--s1);border:1px solid var(--b1);border-radius:var(--r);box-shadow:0 8px 28px rgba(0,0,0,.13);padding:13px 15px;z-index:500;min-width:205px;display:none;}
#contact-popup.open,#link-info-popup.open,#home-info-popup.open{display:block;}

/* CONTACT LOG */
.contact-log-bar{display:flex;align-items:center;gap:10px;background:var(--s1);border:1px solid var(--b1);border-radius:var(--r);padding:10px 15px;margin-bottom:20px;flex-wrap:wrap;}
.contact-method-btn{background:var(--s2);border:1px solid var(--b1);color:var(--muted);font-size:10px;font-weight:600;letter-spacing:.3px;padding:4px 11px;border-radius:var(--r);cursor:pointer;transition:.12s;text-transform:uppercase;}
.contact-method-btn:hover{border-color:var(--gold-border);color:var(--gold);}

/* CHECK-IN TREND TABLE */
.ci-trend-table{width:100%;border-collapse:collapse;font-size:11px;margin-top:8px;}
.ci-trend-table th{font-size:8px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);padding:6px 10px;text-align:left;border-bottom:1px solid var(--b1);font-weight:600;background:var(--s2);}
.ci-trend-table td{padding:7px 10px;border-bottom:1px solid var(--b1);color:var(--muted);}
.ci-trend-table tr:last-child td{border-bottom:none;}
.ci-trend-table td:first-child{color:var(--gold);font-weight:600;white-space:nowrap;}

/* INTAKE SUBMISSIONS */
.intake-toolbar{display:flex;align-items:center;gap:9px;margin-bottom:14px;flex-wrap:wrap;}
.intake-list{display:flex;flex-direction:column;gap:0;border:1px solid var(--b1);border-radius:var(--r);overflow:hidden;background:var(--s1);}
.intake-row{border-bottom:1px solid var(--b1);overflow:hidden;}
.intake-row:last-child{border-bottom:none;}
.intake-row-hdr{display:flex;align-items:center;gap:13px;padding:13px 18px;cursor:pointer;transition:.12s;}
.intake-row-hdr:hover{background:var(--s2);}
.intake-row.unseen .intake-row-hdr{background:rgba(160,122,8,.04);}
.intake-avatar{width:34px;height:34px;border-radius:50%;background:var(--gold-bg);border:1.5px solid var(--gold-border);display:flex;align-items:center;justify-content:center;font-family:'Manrope',sans-serif;font-size:14px;letter-spacing:1px;color:var(--gold);flex-shrink:0;text-transform:uppercase;}
.intake-name{font-weight:600;font-size:13px;color:var(--text);}
.intake-meta{font-size:11px;color:var(--muted);margin-top:1px;}
.intake-chips{display:flex;gap:5px;flex-wrap:wrap;margin-top:4px;}
.intake-chip{font-size:9px;letter-spacing:.06em;font-weight:600;padding:2px 7px;border-radius:3px;text-transform:uppercase;}
.chip-new{background:rgba(160,122,8,.12);color:var(--gold);border:1px solid var(--gold-border);}
.chip-injury{background:rgba(196,46,46,.08);color:var(--red);border:1px solid rgba(196,46,46,.2);}
.chip-noscale{background:rgba(42,104,168,.08);color:var(--blue);border:1px solid rgba(42,104,168,.2);}
.chip-bloodwork{background:rgba(30,143,80,.08);color:var(--green);border:1px solid rgba(30,143,80,.2);}
.chip-gym{background:rgba(58,169,217,.10);color:#3aa9d9;border:1px solid rgba(58,169,217,.30);}
.chip-supplements{background:rgba(0,150,160,.10);color:#17a2b8;border:1px solid rgba(0,150,160,.30);}
/* This intake was typed by the Coach Coordinator on the intro call rather than
   submitted by the client. A cool slate, distinct from every status colour on
   the row — it is provenance, not a state of play. */
.chip-coordinator{background:rgba(40,72,120,.09);color:#2f5488;border:1px solid rgba(40,72,120,.30);}
.chip-clickable{cursor:pointer;transition:filter .12s;}
.chip-clickable:hover{filter:brightness(1.15);}
/* A SECOND DESTINATION INSIDE A CHIP. The chip body jumps into the form; this
   opens the Drive folder, which holds files the form never saw. Unstyled it
   rendered as a browser link — blue and underlined — inside a coloured pill,
   which reads as a different control from its own chip. It inherits the
   chip's colour and gets a hairline divider so the two targets are visibly
   two. */
.chip-folder{color:inherit;text-decoration:none;margin-left:5px;padding-left:5px;
  border-left:1px solid currentColor;opacity:.65;}
.chip-folder:hover{opacity:1;text-decoration:none;}
.chip-linked{background:rgba(46,153,76,.14);color:var(--green);border:1px solid rgba(46,153,76,.40);text-transform:none;display:inline-flex;align-items:center;gap:3px;}
.chip-suggested{background:rgba(160,122,8,.10);color:var(--gold);border:1px solid var(--gold-border);text-transform:none;display:inline-flex;align-items:center;gap:2px;}
.intake-link-tag{font-size:9px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;padding:1px 5px;border-radius:4px;background:rgba(120,120,120,.15);color:var(--muted);}
.intake-link-tag.auto{background:rgba(46,153,76,.20);color:var(--green);}
/* Sits on any link/suggestion whose client name is shared by 2+ people on the
   roster. Loud on purpose: a confident-looking "auto ✓" derived from a name
   that belongs to two clients is exactly the link worth re-checking. */
.intake-dup-flag{font-size:9px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;padding:1px 5px;border-radius:4px;background:rgba(196,46,46,.16);color:var(--red);}
/* "Needs verification" surface at the top of the intake list (like the weekly check-in unsubmitted row) */
.intake-verify-bar{background:rgba(196,46,46,.06);border:1px solid rgba(196,46,46,.28);border-left:3px solid var(--red);border-radius:var(--r);padding:11px 14px;margin-bottom:14px;font-family:'Manrope',sans-serif;}
.intake-verify-bar h4{margin:0 0 8px;font-size:12px;font-weight:800;letter-spacing:.04em;color:var(--red);text-transform:uppercase;}
.intake-verify-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:6px 0;border-top:1px solid rgba(196,46,46,.12);font-size:12px;}
/* THE CLIENT NAME IN A VERIFY ROW. It was `.vn` until 2026-10-26, which
   collided with the voice-note card's container class — so this span had been
   wearing the card's BOX (border, 3px left edge, 10px padding, white
   background) since the day that card shipped, by accident. Renamed when the
   card moved to lib/intake-voice.js.
   THE VERIFY BAR THEREFORE LOOKS DIFFERENT: the names are plain bold text now
   instead of bordered pills. That is the accident being removed, not a
   regression. Jeremy, 2026-10-26: *"don't use it to protect an accident...
   Yes, the verify bar's look changes visibly. That's the bug getting fixed."* */
.intake-verify-row .ivr-name{font-weight:700;color:var(--text);}
.intake-verify-row .vsub{color:var(--muted);font-size:11px;}
.intake-sug-btn{border:none;border-radius:3px;cursor:pointer;font-size:10px;line-height:1;padding:3px 6px;margin-left:3px;font-weight:800;font-family:inherit;}
.intake-sug-btn.ok{color:var(--green);background:rgba(30,143,80,.14);}
.intake-sug-btn.ok:hover{background:rgba(30,143,80,.26);}
.intake-sug-btn.no{color:var(--red);background:rgba(196,46,46,.12);}
.intake-sug-btn.no:hover{background:rgba(196,46,46,.24);}
/* DELETE DOES NOT LOOK LIKE DISMISS. `.no` is the reversible red - dismiss,
   reject, unlink - and a button that permanently removes a submission and its
   audio must not wear the same clothes as one that hides a row. Solid, not a
   tint, so the eye separates them before the sentence does. Added 2026-10-25
   with the first real delete this dash has ever had. */
.intake-sug-btn.danger{color:#fff;background:var(--red,#c42e2e);}
.intake-sug-btn.danger:hover{background:#a62525;}
.chip-unlinked{background:rgba(196,46,46,.08);color:var(--red);border:1px solid rgba(196,46,46,.2);}
.chip-mismatch{background:rgba(196,46,46,.16);color:var(--red);border:1px solid rgba(196,46,46,.5);font-weight:700;text-transform:none;}
.intake-link-bar{background:var(--s2);border:1px solid var(--b1);border-radius:var(--r);padding:10px 14px;margin-bottom:14px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-family:'Manrope',sans-serif;font-size:12px;}
.intake-link-bar .link-status{flex:1;color:var(--muted);min-width:140px;}
.intake-link-bar .link-status strong{color:var(--text);font-weight:600;}
.intake-link-bar button{background:var(--s1);border:1px solid var(--b1);color:var(--muted);font-size:11px;padding:5px 11px;border-radius:var(--r);cursor:pointer;font-family:'Manrope',sans-serif;font-weight:600;}
.intake-link-bar button:hover{color:var(--gold);border-color:var(--gold-border);}
.intake-link-bar button.confirm{background:rgba(46,153,76,.14);color:var(--green);border-color:rgba(46,153,76,.40);}
.intake-link-bar button.confirm:hover{filter:brightness(1.15);}
/* "Who filled out this form" vs "who it's linked to" — the by-eye identity check. */
.intake-name-check{font-family:'Manrope',sans-serif;font-size:12px;line-height:1.5;padding:9px 13px;border-radius:var(--r);margin-bottom:14px;}
.intake-name-check strong{font-weight:700;}
.intake-name-check.good{background:rgba(46,153,76,.10);border:1px solid rgba(46,153,76,.34);color:var(--green);}
.intake-name-check.good strong{color:var(--text);}
.intake-name-check.unknown{background:var(--s2);border:1px solid var(--b1);color:var(--muted);}
.intake-name-check.unknown strong{color:var(--text);}
.intake-name-check.bad{background:rgba(196,46,46,.10);border:1px solid rgba(196,46,46,.42);color:var(--red);}
.intake-name-check.bad strong{color:var(--red);}
.intake-ts{font-size:10px;color:var(--dim);flex-shrink:0;margin-left:auto;white-space:nowrap;padding-left:10px;}
.intake-caret{font-size:11px;color:var(--dim);flex-shrink:0;transition:transform .2s;margin-left:6px;}
.intake-row.open .intake-caret{transform:rotate(90deg);}
/* THE 43-SECOND FREEZE LIVED HERE. Measured on Tyler Roberts' dash 2026-11-14:

     fresh load               10,781 page parts,    12 text boxes
     after opening 60 rows    39,135 page parts, 3,312 text boxes
     paint back to Intakes    43,232ms
     with the two lines below      31ms

   An opened intake row draws the whole form the client filled in - about 55 text
   boxes. Sixty open rows is 3,300 of them, and the browser re-measured and
   re-painted every single one on every repaint, including the ones thousands of
   pixels off screen. The page is 70,054px tall and a screen shows about 900.

   content-visibility:auto says: if this panel is off screen, do not look inside
   it. No layout, no paint, no hit-testing, until it comes near the viewport.
   The boxes are still THERE - find-in-page still matches them, a far one still
   focuses and still holds its text - they are just not drawn.

   contain-intrinsic-size is the other half and is not optional. A skipped panel
   has no measured height, so without a placeholder the scrollbar jumps as the
   browser discovers real ones. `auto 900px` means "assume 900 until you have
   drawn it for real, then remember the real one".

   WHAT THIS DOES NOT DO: reduce the number of text boxes, or the memory they
   use. All 3,300 are still in the page. This stops them being DRAWN. The draw
   cap (js/_draw-cap.js) is what bounds the count.

   ONLY THE BODY, never .intake-row. The row holds the header - the client's
   name and badges - which is exactly what a coach reads while scrolling past.
   Skipping that paints a list of blank strips. There is a test for it.

   The one piece of code that reads a box's height is _ifGrow (13-intakes.js),
   called on focus and on input - both of which force the panel to render first,
   so it can never measure a skipped one. */
.intake-body{display:none;padding:18px 22px 22px;border-top:1px solid var(--b1);background:var(--bg);
  content-visibility:auto;contain-intrinsic-size:auto 900px;}
.intake-row.open .intake-body{display:block;}
.intake-section-title{font-size:8px;letter-spacing:.18em;text-transform:uppercase;color:var(--gold);font-weight:600;margin:18px 0 10px;padding-bottom:6px;border-bottom:1px solid var(--b1);}
.intake-section-title:first-child{margin-top:0;}
.intake-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px;margin-bottom:4px;}
.intake-field{background:var(--s1);border:1px solid var(--b1);border-radius:var(--r);padding:10px 12px;position:relative;}
.intake-field-label{font-size:8px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin-bottom:4px;font-weight:600;padding-right:22px;}
.intake-field-val{font-size:12px;color:var(--text);line-height:1.55;word-break:break-word;}
.intake-field.wide{grid-column:1/-1;}
/* Unanswered questions still render, with a faint red outline so gaps stick out. */
/* Onboarding-specialist annotation on a client's answer. Written from the
   onboarding dash on the intro call; read-only here. Styled distinctly so a
   coach never mistakes the Coach Coordinator's clarification for the client's own
   words when building the plan. */
/* Countdown rail at the left edge of an onboarding row — mirrors the Home
   card's rail so the same fact reads the same way on both pages. Fixed width so
   the client names still line up down the column whether or not a row has one;
   tabular figures so the numbers do too. Colour is set inline (gold = booked
   reveal, red = late, muted = derived target). */
.onb-rail{flex:0 0 74px;text-align:right;line-height:1.15;font-family:'Manrope',sans-serif}
.onb-rail .n{font-size:14px;font-weight:700;font-variant-numeric:tabular-nums}
.onb-rail .s{font-size:9px;letter-spacing:.03em;color:var(--muted);margin-top:1px}

/* Intro-call recording, above the intake answers. Deliberately louder than a
   pinned note: it is the one thing on this panel a coach should act on before
   reading anything else. */
.ftab.scope-tab{margin-left:8px}
.intake-hidden-link{background:none;border:none;padding:0;font:inherit;font-size:11px;color:var(--gold);font-weight:700;cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.intake-hidden-link:hover{color:var(--gold-d)}
.ob-tl{background:var(--s1);border:1px solid var(--b1);border-radius:var(--r);padding:10px 15px;margin-bottom:12px}
.ob-tl:empty{display:none}
.ob-tl-wait .h-tl-s .v{color:var(--dim)}

.ob-tl .h-tl{margin:0}
.ob-tl .h-tl-s .n{font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}

/* Onboarding rail on a Clients-list row: the profile's timeline, as labelled
   columns (Option A). The version before this was one line of bare dates —
   unreadable unless you already knew the order was signed, intake, intro,
   implementation — with the closer's and the coach's names sitting in that
   same run, so a name read as a fifth date.

   The slots are a GRID with FIXED track widths, not content-sized ones.
   Each row is its own grid element, so content-sized tracks resolve per row and
   the columns do NOT line up down the list — which is the entire point of this
   layout. Measured in a browser: a client whose closer is 'Alexandra-Christina'
   pushed its own four columns ~60px right of every other row. Fixed lengths
   resolve identically in every row, so they align. The Impl track is the
   flexible one because it carries a countdown on its label.

   THE TRACK COUNT IS THE SLOT COUNT, and a missing track does not error — it
   WRAPS. Measured 2026-10-24 in a browser: the Delayed slot was added to
   js/_ob-rail.js against a four-track list, so its cell auto-placed onto an
   implicit second row, 104px wide, sitting under ACCOUNT. Nothing warned; the
   grid just grew a row. Add a track here in the same commit as a slot there.

   Delayed is LAST and after the flexible Impl track, so its left edge is ragged
   down the list where Impl carries a countdown. That is accepted: auto-placement
   is positional, so the only slot that may vary in presence is the last one, and
   a ragged edge on the rarest field beats squeezing Impl into Delayed's track on
   every row that is not delayed. 76px is the widest content it can hold —
   measured: 'date not set' is 73px, 'DELAYED' 39px, 'Nov 30' 37px.

   Hidden entirely when empty, so pre-coordinator-era rows show nothing at all
   rather than blank columns. Markup: js/_ob-rail.js. */
.ob-rail{margin-top:5px}
.ob-rail:empty{display:none}
.ob-rail-in{display:grid;grid-template-columns:104px 58px 58px minmax(96px,max-content) 76px;gap:0 18px;justify-content:start;font-family:'Manrope',monospace;font-size:10px;line-height:1.3;color:var(--muted);font-variant-numeric:tabular-nums}
/* A name longer than its track is clipped, not allowed to widen the column
   and break the alignment. The full value stays in the cell's title. */
.obr-c{min-width:0;overflow:hidden}
.obr-c>*{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Small, wide-tracked and dim: the label has to be readable without ever
   competing with the value under it. */
.obr-k{font-size:7.5px;letter-spacing:.13em;text-transform:uppercase;color:var(--dim);line-height:1.6;white-space:nowrap}
.obr-v{line-height:1.35;white-space:nowrap}
/* Each of the four states colours itself. The base rule deliberately sets NO
   colour, so a state the renderer emits without a rule here shows up as
   unstyled rather than silently inheriting and looking almost right. */
.obr-v.firm{color:var(--text)}
.obr-v.soft{color:var(--muted)}
/* A step that has not happened. Dim, but an em dash rather than the dim dot the
   old rail used — that dot was the same character as its separator, so a hole
   read as punctuation and disappeared. */
.obr-v.none{color:var(--dim)}
/* The only saturated thing on the row: an implementation call nobody booked,
   which is the job the rail exists to prompt. */
.obr-v.act{color:var(--gold);font-weight:700}
/* Closer and coach. A FIELD of its own, quieted, so it can never be mistaken
   for one of the dates it sits beside.

   ON ITS OWN LINE, UNDER THE DATE. Georgiy, 2026-11-14: "can we have it appear
   underneath the implementation call to make it easier to see the full
   picture." Beside the date it read as part of the date run, which is the
   exact thing splitting it into a field was meant to stop; it was still
   competing for the same 96px track and getting clipped.

   display:block inside .obr-v, which is nowrap — a block child breaks to a new
   line regardless, so the date and the name each get a full track and neither
   truncates the other. Applied to BOTH name-bearing slots, Signed and Impl,
   because one two-line column beside one single-line column reads as a
   mistake. The grid row grows to fit; the other cells top-align and stay put.

   The leading space in the markup collapses against a block, so no stray
   gap is left at the end of the date line. */
.obr-w{color:var(--muted);font-weight:400;display:block;line-height:1.3}

/* Under ~560px the columns stop fitting beside the avatar; wrapping to rows of
   two keeps every label with its own value instead of clipping. Delayed, when
   present, takes the fifth cell and sits alone on a third row. */
@media (max-width:560px){
  .ob-rail-in{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 18px}
}

.intake-chip.chip-linkedby{background:rgba(90,90,110,.08);border:1px solid var(--b1);color:var(--muted);font-weight:600}
.intake-chip.chip-linkedby.unknown{opacity:.7;font-style:italic}
.onb-rec{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 14px;padding:9px 12px;border:1px solid rgba(42,104,168,.30);background:rgba(42,104,168,.07);border-radius:6px}
.onb-rec a{font-size:13px;font-weight:700;color:#2a68a8;text-decoration:none}
.onb-rec a:hover{text-decoration:underline}
.onb-rec-src{font-size:11px;color:var(--muted)}
/* The Coach Coordinator's training-program deadline, above the recording strip.
   Same shape so the two read as one channel from her, but a left bar rather
   than a full outline: the recording is an offer, this is owed. Blue is her
   colour throughout both dashes; red takes over once the date has passed,
   because urgency outranks provenance. */
.cc-due{margin:0 0 12px;padding:9px 13px;border-left:3px solid var(--blue);
        background:rgba(42,104,168,.07);border-radius:0 6px 6px 0}
.cc-due-h{font-size:13px;color:var(--text);line-height:1.5}
.cc-due-h b{font-weight:700}
.cc-due-who{display:inline-block;font-size:9.5px;letter-spacing:.07em;text-transform:uppercase;
            font-weight:800;color:var(--blue);margin-right:8px;vertical-align:1px}
.cc-due-r{font-size:12.5px;line-height:1.5;color:var(--text);white-space:pre-wrap;word-break:break-word;
          border-top:1px solid rgba(42,104,168,.18);margin-top:5px;padding-top:5px}
.cc-due.late{border-left-color:var(--red);background:rgba(196,46,46,.07)}
.cc-due.late .cc-due-who{color:var(--red)}
.cc-due.late .cc-due-r{border-top-color:rgba(196,46,46,.2)}
.onb-note{margin-top:7px;border-left:3px solid #2a68a8;background:rgba(42,104,168,.07);border-radius:0 4px 4px 0;padding:5px 8px;}
.onb-note-h{font-size:7.5px;letter-spacing:.11em;text-transform:uppercase;color:#2a68a8;font-weight:800;margin-bottom:2px;}
.onb-note-t{font-size:11.5px;line-height:1.5;color:#24405e;white-space:pre-wrap;word-break:break-word;}
/* A coach's ASK points the other way — it's work for the Coach Coordinator, not
   information from her — so it's gold/amber, not blue. */
.onb-note.ask{border-left-color:var(--gold);background:var(--gold-bg);}
.onb-note.ask .onb-note-h{color:var(--gold-d);}
.onb-note.ask .onb-note-t{color:#4a3c14;}
/* Once the Coach Coordinator ticks the request covered, the coach sees it flip
   green here — their cue that it's been handled and the answer's on the form. */
.onb-note.ask.covered{border-left-color:var(--green);background:rgba(30,143,80,.08);}
.onb-note.ask.covered .onb-note-h{color:var(--green);}
.onb-covered{color:var(--green);font-weight:800;}
.onb-pending{color:var(--gold-d);opacity:.8;font-weight:700;}
.onb-ask-btn{position:absolute;top:5px;right:5px;width:19px;height:19px;border-radius:4px;border:1px solid var(--b1);background:var(--s2);color:var(--gold-d);font-size:10px;line-height:1;cursor:pointer;padding:0;display:flex;align-items:center;justify-content:center;opacity:.55;transition:opacity .12s;z-index:2;}
.intake-field:hover .onb-ask-btn,.intake-field.has-ask .onb-ask-btn{opacity:1;}
.onb-ask-btn.on{background:var(--gold);border-color:var(--gold);color:#fff;}
/* The "?" beside each intake label — opens the full question. Always faintly
   visible (not hover-only) so coaches know the context is one click away. */
.intake-q-btn{width:15px;height:15px;border-radius:50%;border:1px solid var(--b1);background:var(--s2);color:var(--gold-d);font-size:9px;font-weight:700;line-height:1;cursor:help;padding:0;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;opacity:.55;transition:opacity .12s;}
.intake-field:hover .intake-q-btn,.intake-q-btn:hover{opacity:1;}
.intake-q-overlay{position:fixed;inset:0;background:rgba(0,0,0,.55);display:none;align-items:flex-start;justify-content:center;padding:60px 16px;z-index:9200;overflow-y:auto;}
.iqm-card{background:var(--s1);border:1px solid var(--b2);border-radius:8px;max-width:560px;width:100%;box-shadow:0 20px 60px rgba(0,0,0,.18);}
.iqm-head{display:flex;align-items:center;justify-content:space-between;padding:11px 16px;border-bottom:1px solid var(--b1);font-size:10.5px;letter-spacing:1px;text-transform:uppercase;color:var(--muted);}
.iqm-x{background:none;border:none;color:var(--muted);font-size:20px;line-height:1;cursor:pointer;padding:0 4px;}
.iqm-q{padding:16px;font-size:15px;font-weight:600;color:var(--text);line-height:1.5;}
.iqm-sub{padding:0 16px;font-size:12px;color:var(--gold-d);font-weight:600;}
.iqm-hint{padding:10px 16px 16px;font-size:13px;color:var(--muted);white-space:pre-wrap;line-height:1.5;font-style:italic;}
.onb-ask-edit{width:100%;border:1px solid var(--b2);border-radius:4px;background:var(--s1);font-family:'Manrope',sans-serif;font-size:11.5px;line-height:1.5;padding:5px 7px;resize:vertical;min-height:52px;color:var(--text);}
.onb-ask-row{display:flex;gap:6px;margin-top:5px;}
.onb-ask-row button{font-size:11px;padding:3px 10px;border-radius:4px;border:1px solid var(--b1);background:var(--s2);cursor:pointer;font-family:'Manrope',sans-serif;font-weight:600;}
.onb-ask-row button.save{background:var(--gold);border-color:var(--gold);color:#fff;}
.intake-field.unanswered{border-color:rgba(196,46,46,.35);background:rgba(196,46,46,.03);}
.intake-field.unanswered .intake-field-val{color:var(--muted);font-style:italic;}
.prebuild-chip.unanswered{border-color:rgba(196,46,46,.35);border-left-color:rgba(196,46,46,.55);background:rgba(196,46,46,.03);}
.prebuild-chip.unanswered .prebuild-chip-val{color:var(--muted);font-style:italic;}
/* Inline-editable intake answer — textarea styled to read like the box; native
   placeholder shows "— not answered —" until typed; blur auto-saves. */
.intake-field-input{display:block;width:100%;border:none;background:transparent;resize:none;outline:none;padding:0;margin:0;font-family:'Manrope',sans-serif;font-size:12px;line-height:1.55;color:var(--text);overflow:hidden;}
.intake-field-input::placeholder{color:var(--muted);font-style:italic;}
.intake-field:focus-within{border-color:var(--gold-border);box-shadow:0 0 0 2px rgba(160,122,8,.08);}
.intake-field:focus-within.unanswered{border-color:var(--gold-border);}
.if-status{font-size:9px;font-weight:600;letter-spacing:0;text-transform:none;margin-left:6px;}
.if-status .if-ok{color:var(--green);}
.if-status .if-err{color:var(--red);}
.if-spin{display:inline-block;width:9px;height:9px;border:1.5px solid var(--b2);border-top-color:var(--gold);border-radius:50%;animation:ifspin .7s linear infinite;vertical-align:-1px;margin-right:2px;}
@keyframes ifspin{to{transform:rotate(360deg)}}
/* Pre-Build Checklist — the three answers the coach checks before building
   anything (do we have bloodwork? gym photos? do they own a scale or do we
   ship one?). Rendered at the top of every intake body so the answer is
   visible without scrolling. Tone of each card is driven by the answer:
   `ok` (have it / yes), `pending` (will send / plan to / shipping one),
   `none` (no / not applicable). */
.intake-prebuild{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin-bottom:18px;}
.prebuild-chip{background:var(--s1);border:1px solid var(--b1);border-radius:var(--r);padding:12px 14px;position:relative;border-left-width:3px;}
.prebuild-chip.ok{border-left-color:var(--green);}
.prebuild-chip.pending{border-left-color:var(--gold);}
.prebuild-chip.none{border-left-color:var(--muted);}
.prebuild-chip-head{font-size:9px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);font-weight:700;margin-bottom:5px;display:flex;align-items:center;gap:5px;}
.prebuild-chip-val{font-size:13px;font-weight:600;color:var(--text);line-height:1.45;}
.prebuild-chip-extra{font-size:11px;color:var(--muted);margin-top:4px;line-height:1.45;}
.prebuild-chip.ok .prebuild-chip-head{color:var(--green);}
.prebuild-chip.pending .prebuild-chip-head{color:var(--gold);}
.intake-mark-btn{background:var(--s2);border:1px solid var(--b1);color:var(--muted);font-size:10px;font-weight:600;letter-spacing:.3px;padding:5px 13px;border-radius:var(--r);cursor:pointer;transition:.15s;text-transform:uppercase;margin-top:16px;}
.intake-mark-btn:hover{border-color:var(--gold-border);color:var(--gold);}
.intake-mark-btn.seen{color:var(--green);border-color:rgba(30,143,80,.3);background:rgba(30,143,80,.06);}

/* ── SOPs ── */
.sop-card{background:var(--s1);border:1px solid var(--b1);border-radius:var(--r);overflow:hidden;margin-bottom:12px;}
.sop-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;padding:16px 20px;background:none;border:none;cursor:pointer;text-align:left;gap:14px;}
.sop-toggle:hover{background:var(--s2);}
.sop-toggle-left{display:flex;align-items:center;gap:16px;}
.sop-number{font-family:'Manrope',sans-serif;font-size:28px;color:var(--gold);line-height:1;flex-shrink:0;}
.sop-title{font-family:'Manrope',sans-serif;font-size:15px;font-weight:700;color:var(--text);}
.sop-subtitle{font-family:'Manrope',sans-serif;font-size:11px;color:var(--muted);margin-top:2px;}
.sop-chevron{font-size:16px;color:var(--muted);transition:.2s;flex-shrink:0;}
.sop-toggle.open .sop-chevron{transform:rotate(180deg);}
.sop-body{display:none;padding:0 22px 22px;border-top:1px solid var(--b1);}
.sop-body.open{display:block;}
.sop-section-title{font-family:'Manrope',sans-serif;font-size:18px;letter-spacing:.04em;color:var(--text);margin:22px 0 10px;}
.sop-phase{background:var(--s2);border:1px solid var(--b1);border-radius:var(--r);padding:16px 18px;margin-bottom:12px;}
.sop-phase-hdr{font-family:'Manrope',sans-serif;font-size:16px;letter-spacing:.04em;color:var(--text);margin-bottom:10px;display:flex;align-items:center;gap:10px;}
.sop-phase-owner{font-family:'Manrope',sans-serif;font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:2px 8px;border-radius:3px;}
.sop-phase-owner.closer{background:rgba(196,46,46,.12);color:var(--red);border:1px solid rgba(196,46,46,.3);}
.sop-phase-owner.coach{background:rgba(160,122,8,.12);color:var(--gold);border:1px solid var(--gold-border);}
.sop-sub-title{font-family:'Manrope',sans-serif;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--gold);margin:14px 0 6px;}
.sop-p{font-family:'Manrope',sans-serif;font-size:13px;color:var(--muted);line-height:1.65;margin-bottom:10px;}
.sop-list{font-family:'Manrope',sans-serif;font-size:13px;color:var(--muted);line-height:1.7;padding-left:18px;margin-bottom:10px;}
.sop-list li{margin-bottom:4px;}
.sop-list strong{color:var(--text);}
.sop-ol{list-style:decimal;}
.sop-callout{background:var(--s2);border:1px solid var(--b1);border-radius:var(--r);padding:12px 14px;font-family:'Manrope',sans-serif;font-size:13px;color:var(--muted);line-height:1.65;}
.sop-callout-label{font-size:9px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--gold);margin-bottom:5px;}
.sop-table{width:100%;border-collapse:collapse;font-family:'Manrope',sans-serif;font-size:12px;background:var(--s1);border:1px solid var(--b1);border-radius:var(--r);overflow:hidden;}
.sop-table th{font-size:9px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);padding:8px 12px;text-align:left;border-bottom:1px solid var(--b1);background:var(--s2);}
.sop-table td{padding:8px 12px;border-bottom:1px solid var(--b1);color:var(--text);vertical-align:top;}
.sop-table tr:last-child td{border-bottom:none;}
.sop-dodonot th:first-child{color:var(--green);}
.sop-dodonot th:last-child{color:var(--red);}
.sop-dodonot td:last-child{color:var(--muted);}

/* CLIENT PROFILE NOTES */
.notes-toolbar{display:flex;align-items:center;gap:12px;margin-bottom:14px;flex-wrap:wrap;}
.notes-meta{font-size:11px;color:var(--muted);font-family:'Manrope',sans-serif;flex:1;min-width:200px;}
.notes-save-state{font-size:11px;font-family:'Manrope',sans-serif;font-weight:600;}
.notes-section{margin-bottom:18px;background:var(--s1);border:1px solid var(--b1);border-radius:var(--r);padding:14px 16px;}
.notes-section-title{font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--gold);margin-bottom:10px;font-family:'Manrope',sans-serif;}
.notes-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px;}
.notes-field{display:flex;flex-direction:column;gap:4px;}
.notes-field-full{grid-column:1/-1;}
.notes-label{font-size:10px;font-weight:600;letter-spacing:.06em;color:var(--muted);text-transform:uppercase;font-family:'Manrope',sans-serif;}
.notes-input{background:var(--s2);border:1px solid var(--b1);border-radius:var(--r);padding:7px 10px;font-family:'Manrope',sans-serif;font-size:12px;line-height:1.5;color:var(--text);resize:vertical;min-height:34px;}
.notes-input:focus{outline:none;border-color:var(--gold-border);}
.notes-section-hdr{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px;}
.notes-section-hdr .notes-section-title{margin-bottom:0;}
.notes-label-row{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:14px;}
.notes-x{appearance:none;background:transparent;border:none;color:var(--muted);font-size:14px;line-height:1;cursor:pointer;padding:1px 6px;border-radius:3px;opacity:0;transition:opacity .12s,background .12s,color .12s;font-family:inherit;}
.notes-field:hover .notes-x,.notes-section:hover>.notes-section-hdr>.notes-x,.notes-x:focus{opacity:.65;}
.notes-x:hover{opacity:1;background:rgba(196,46,46,.12);color:var(--red);}
.notes-x-field{font-size:13px;padding:0 5px;}
.notes-hidden-footer{margin-top:8px;}
.notes-hidden-footer:empty{display:none;}
.notes-hidden-hdr{font-size:10px;font-weight:700;letter-spacing:.10em;text-transform:uppercase;color:var(--muted);margin-bottom:8px;font-family:'Manrope',sans-serif;}
.notes-hidden-chips{display:flex;flex-wrap:wrap;gap:6px;}
.notes-hidden-chip{appearance:none;background:var(--s2);border:1px solid var(--b1);border-radius:3px;padding:4px 9px;font-size:11px;font-family:'Manrope',sans-serif;color:var(--muted);cursor:pointer;}
.notes-hidden-chip:hover{background:rgba(196,150,46,.10);color:var(--text);border-color:var(--gold-border);}

/* COACH RESPONSE / WEEKLY LOG */
.cr-panel{margin-top:14px;padding:14px 16px;background:var(--s2);border:1px solid var(--b1);border-radius:var(--r);}
/* Nothing in the sheet is linked to this check-in. Amber rather than red: the
   reply is usually there and merely unattached, and the fix is one click. */
.cr-sync{margin:-4px 0 12px;padding:10px 12px;border:1px solid var(--gold-border);background:var(--gold-bg);border-radius:8px}
.cr-sync-msg{font-size:12px;line-height:1.55;color:var(--text)}
.cr-sync-msg b{color:var(--gold)}
.cr-sync-row{display:flex;align-items:center;gap:10px;margin-top:7px;padding-top:7px;border-top:1px dashed var(--b1)}
.cr-sync-row .d{font:700 11px/1 ui-monospace,Menlo,monospace;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.cr-sync-row .t{flex:1;min-width:0;font-size:11.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cr-sync-row button{font:inherit;font-size:11px;font-weight:700;border:1px solid var(--gold-border);background:var(--bg);color:var(--gold);border-radius:6px;padding:4px 10px;cursor:pointer;white-space:nowrap}
.cr-sync-row button:hover{background:var(--gold);color:#fff}
.cr-hdr{display:flex;align-items:center;gap:10px;margin-bottom:10px;}
/* Two replies, one sends: the tab the coach is on is the one Send to Trainerize sends. */
.cr-tabs{display:flex;gap:6px;margin:12px 0 0;border-bottom:1px solid var(--b1);}
.cr-tab{background:transparent;border:1px solid transparent;border-bottom:none;border-radius:8px 8px 0 0;padding:7px 12px;font:600 12px 'Manrope',sans-serif;color:var(--muted);cursor:pointer;}
.cr-tab:hover{color:var(--text);}
.cr-tab.active{color:var(--text);background:var(--s1);border-color:var(--b1);margin-bottom:-1px;}
.cr-tab .cr-tab-note{font-weight:500;color:var(--orange);margin-left:6px;}
.cr-pane{padding-top:10px;}
.cr-lock{font-size:11px;line-height:1.5;color:var(--text);background:rgba(184,90,20,.1);border:1px solid rgba(184,90,20,.35);border-radius:8px;padding:6px 10px;margin:10px 0 0;}
.cr-title{font-size:10px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--gold);flex:1;}
.cr-status{font-size:10px;font-weight:600;letter-spacing:.06em;padding:2px 8px;border-radius:3px;}
.cr-status.draft{background:rgba(196,150,46,.12);color:var(--gold);border:1px solid var(--gold-border);}
.cr-status.synced{background:rgba(46,153,76,.14);color:var(--green);border:1px solid rgba(46,153,76,.40);}
.cr-status.inprogress{background:rgba(46,140,196,.12);color:#3aa9d9;border:1px solid rgba(46,140,196,.35);}
.cr-status.notstarted{background:rgba(217,164,20,.18);color:#8a6809;border:1px solid rgba(217,164,20,.55);}
.cr-status.review{background:rgba(126,63,199,.14);color:#7e3fc7;border:1px solid rgba(126,63,199,.45);}
.cr-status.dirty{background:rgba(196,46,46,.10);color:var(--red);border:1px solid rgba(196,46,46,.35);}
.cr-status-row{display:flex;gap:14px;margin-top:6px;font-size:10px;color:var(--muted);}
.cr-status-chk{display:inline-flex;align-items:center;gap:5px;cursor:pointer;font-family:'Manrope',sans-serif;font-weight:600;letter-spacing:.04em;padding:2px 7px;border-radius:3px;border:1px solid transparent;transition:.12s;}
.cr-status-chk:hover{color:var(--text);}
.cr-status-chk input{margin:0;cursor:pointer;}
.cr-status-chk.on.review{background:rgba(126,63,199,.14);color:#7e3fc7;border-color:rgba(126,63,199,.45);}
.cr-status-chk.on.done{background:rgba(46,153,76,.14);color:var(--green);border-color:rgba(46,153,76,.40);}
.cr-toggles{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:10px;}
.cr-toggle{display:flex;align-items:center;gap:6px;font-family:'Manrope',sans-serif;font-size:12px;color:var(--text);cursor:pointer;user-select:none;}
.cr-toggle input{accent-color:var(--gold);width:14px;height:14px;cursor:pointer;}
.cr-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px;}
.cr-field{display:flex;flex-direction:column;gap:4px;}
.cr-field.full{grid-column:1 / -1;}
.cr-label{font-size:10px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);}
.cr-input,.cr-textarea{width:100%;background:var(--s1);border:1px solid var(--b1);border-radius:var(--r);color:var(--text);font-family:'Manrope',sans-serif;font-size:12px;padding:8px 10px;line-height:1.55;resize:vertical;box-sizing:border-box;}
.cr-input:focus,.cr-textarea:focus{outline:none;border-color:var(--gold-border);}
.cr-textarea{min-height:74px;max-height:520px;}
.cr-textarea.tall{min-height:120px;max-height:520px;}
.cr-actions{display:flex;align-items:center;gap:10px;}
.cr-btn{background:var(--gold);border:1px solid var(--gold);color:#fff;font-size:12px;font-weight:700;letter-spacing:.04em;padding:7px 16px;border-radius:var(--r);cursor:pointer;font-family:'Manrope',sans-serif;transition:.12s;}
.cr-btn:hover{filter:brightness(1.07);}
.cr-btn:disabled{opacity:.5;cursor:default;}
.cr-btn.ghost{background:transparent;color:var(--muted);border-color:var(--b1);}
.cr-btn.ghost:hover{color:var(--text);border-color:var(--gold-border);}
.cr-btn.danger{background:transparent;color:var(--red);border-color:rgba(196,46,46,.35);}
.cr-btn.cr-send{background:#0a84ff;border-color:#0a84ff;color:#fff;}
.cr-btn.cr-send:hover{filter:brightness(1.1);}
.cr-btn.cr-send.armed{background:rgba(196,46,46,.18);border-color:var(--red);color:var(--red);animation:cr-pulse 1s ease-in-out infinite;}
@keyframes cr-pulse{0%,100%{box-shadow:0 0 0 0 rgba(196,46,46,.35);}50%{box-shadow:0 0 0 4px rgba(196,46,46,0);}}
.cr-meta{font-size:10px;color:var(--dim);margin-left:auto;font-family:'Manrope',sans-serif;}

/* ── THE NEW INTAKE FORM, its own band ──────────────────────────────────────
   Two forms, each shown in its own shape. The old one renders exactly as it
   always has; these rules only dress the new band and must not reach it. */
.intake-band-head{display:flex;align-items:baseline;gap:8px;margin:18px 0 6px;
  font-family:'Manrope',sans-serif;font-size:12px;font-weight:700;
  letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.intake-band-head small{font-weight:500;letter-spacing:0;text-transform:none}
.intake-row-v2{cursor:pointer}
.intake-row-v2 .intake-row-head{display:flex;gap:12px;align-items:flex-start;padding:12px 14px}
.intake-row-v2 .intake-who{flex:1;min-width:0}
.intake-row-v2 .intake-name{font-weight:600}
.intake-row-v2 .intake-sub{font-size:12px;color:var(--muted)}
.intake-row-v2 .intake-when{font-size:11px;color:var(--muted);white-space:nowrap}
.intake-row-v2 .intake-chips{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}
.intake-row-v2 .intake-link{font-size:11px;margin-top:6px}
.intake-linked{color:var(--green)}
.intake-suggest{color:#8a6d1f}
.intake-nolink{color:var(--muted)}
/* an unfinished form is not a failure: somebody who answered a hundred
   questions about their body and stopped is the most worth chasing */
.chip-draft{background:rgba(138,109,31,.10);color:#8a6d1f;border:1px solid rgba(138,109,31,.22)}
.chip-new{background:rgba(42,104,168,.08);color:var(--blue);border:1px solid rgba(42,104,168,.2)}

/* THE NEW FORM'S ROWS ARE BLUE AT THE CIRCLE, and that is the only place they
   say so. Georgiy, 2026-10-21: "Instead of adding another tag saying 'new
   form', just change the color of the initial circle to blue." It replaced a
   chip, so it has to be as readable as the chip was - same contrast against
   the card, not a tint you have to look for.
   Same specificity as .intake-avatar and defined after it, so it wins without
   !important. border-color, not border, so the 1.5px width stays. */
.intake-avatar-v2{background:rgba(42,104,168,.10);border-color:rgba(42,104,168,.38);color:var(--blue)}
.chip-dexa{background:rgba(90,23,196,.08);color:#5a17c4;border:1px solid rgba(90,23,196,.2)}
/* A LANDED FILE WE COULD NOT OPEN. Amber overrides whichever chip colour the
   badge normally carries, because the thing a coach needs from the glance is
   "there is something to do here", not which folder it is in. !important
   because it has to beat .chip-bloodwork / .chip-gym / .chip-dexa, which are
   equally specific and defined both above and below this rule - the alternative
   is relying on source order across 500 lines, which is how the last colour
   bug survived three reports. It is still a link; only the colour and the
   wording change, and with no unreadable files the class is never applied. */
.intake-chip.chip-unreadable{background:rgba(180,110,20,.10) !important;color:#8a5a12 !important;
  border:1px solid rgba(180,110,20,.28) !important}
.chip-revised{background:rgba(185,64,64,.09);color:#b94040;border:1px solid rgba(185,64,64,.18)}

.intake-detail-v2{padding:4px 14px 16px}
.v2-section{margin:14px 0 0}
.v2-section h4{font-size:11px;letter-spacing:.06em;text-transform:uppercase;
  color:var(--muted);margin:0 0 6px}
.v2-q{display:flex;gap:10px;padding:5px 0;border-top:1px solid var(--b1);font-size:13px}
.v2-q b{flex:0 0 42%;font-weight:500;color:var(--muted)}
.v2-q span{flex:1;min-width:0;overflow-wrap:anywhere}
/* asked and nothing said is NOT the same as never asked, and neither is a
   fact about the client. Both say which they are rather than showing a blank. */
.v2-q i{flex:1;color:var(--muted);font-style:italic;opacity:.7}
.v2-stale{opacity:.72}
.v2-stale h4{color:#8a6d1f}
.v2-foot{margin-top:12px;font-size:11px;color:var(--muted)}
/* neutral, not a warning: the coach picks which to link, this just says
   there is another one. */
.chip-bothforms{background:var(--s2,#f2f0eb);color:var(--muted);border:1px solid var(--b1)}

/* ── DISMISSING AN INTAKE ──────────────────────────────────────────────────
   A dismissed submission is not deleted and must not read as deleted: it is
   dimmed and labelled, in its own drawer, with who put it there.

   `.is-dismissed` was already being SET by js/13-intakes.js:640 for the old
   form and had no rule anywhere, so a dismissed old-form row in the drawer
   looked identical to a live one. Both forms use it now. */
.intake-row.is-dismissed{opacity:.62;background:var(--s1)}
.intake-row.is-dismissed:hover{opacity:.85}
.v2-dismissed-stamp{margin-top:6px;font-size:11px;color:var(--muted);font-style:italic}

/* The drawer toggle. Dashed, quiet, and it always carries its own count -
   a collapsed section with no number is indistinguishable from an empty one. */
.v2-drawer-toggle{margin-top:14px;padding:10px 14px;background:var(--s1);
  border:1px dashed var(--b1);border-radius:var(--r);font-family:'Manrope',sans-serif;
  font-size:12px;color:var(--muted);cursor:pointer;text-align:center;letter-spacing:.04em}
.v2-drawer-toggle:hover{color:var(--ink);border-color:var(--b2,var(--b1))}

.v2-actions{display:flex;gap:6px;align-items:flex-start;flex:0 0 auto}
.intake-sug-btn:disabled{opacity:.55;cursor:wait}

/* THE CONFIRM. It takes over the row's action area rather than appearing under
   the cursor, so the second click is in a different place from the first - that
   is the whole protection, and a hover-adjacent "Yes" would undo it. */
/* The head is a flex ROW that does not wrap, so a confirm panel asking for
   100% width just squeezes its siblings and lands on top of the date instead
   of below the row. Measured in the browser, not reasoned about. Wrapping is
   a no-op at normal widths (the name has flex:1 and absorbs the slack) and is
   what lets the panel take its own line. */
.intake-row-v2 .intake-row-head{flex-wrap:wrap}
.v2-actions-confirm{flex:1 1 100%;min-width:0;margin-top:8px;order:9}
.v2-confirm{background:var(--s1);border:1px solid var(--b1);border-radius:var(--r);
  padding:10px 12px;cursor:default}
.v2-confirm-q{font-size:12px;line-height:1.45;color:var(--ink);margin-bottom:8px}
.v2-confirm-q b{font-weight:600}
/* A DELETE CONFIRM DOES NOT LOOK LIKE A DISMISS CONFIRM. Same component, and
   that is the point of reusing it - but one of them is reversible and one is
   not, so the panel itself carries the difference. Added 2026-10-25. */
.v2-confirm.v2-confirm-danger{border-color:var(--red,#c42e2e);background:rgba(196,46,46,.06)}
/* The second box: the word DELETE, typed. A reason alone is the bar for
   something reversible; this one cannot be undone. */
.v2-confirm-word{margin-top:6px;text-transform:uppercase;letter-spacing:.08em;font-weight:700}
/* 12px is the dash's body size. The first version used 16px to stop Safari
   zooming the page on focus - a phone problem, and these dashes are DESKTOP
   ONLY (Georgiy, 2026-10-21), so that was a size with no reason behind it. */
.v2-confirm-note,.v2-confirm-word{width:100%;box-sizing:border-box;font-family:inherit;
  font-size:12px;padding:7px 9px;border:1px solid var(--b1);border-radius:3px;
  background:var(--card,#fff);color:var(--ink);margin-bottom:8px}
.v2-confirm-btns{display:flex;gap:8px}
/* A little larger than the inline .intake-sug-btn siblings because these two
   COMMIT rather than open a question - not a touch-target rule. */
.v2-confirm-btns .intake-sug-btn{font-size:12px;padding:6px 12px;margin-left:0}
/* FAILED is never painted in the success colour. */
.v2-confirm-failed{border-color:rgba(196,46,46,.38);background:rgba(196,46,46,.06)}
.v2-confirm-failed .v2-confirm-q{color:var(--red)}

/* NO NARROW-WIDTH RULES HERE, ON PURPOSE. This dash is DESKTOP ONLY - Georgiy,
   2026-10-21, asked plainly why I was sizing an internal tool for a phone, and
   the answer was that I had invented the requirement. Two things back that up
   if anybody wonders: nobody opens these on a tablet or a phone, and
   02-components.css:390 already hides every page except Messages below 768px,
   so an intake panel cannot render there anyway. I wrote a max-width:640px
   block for this panel before checking either - it was dead code that LOOKED
   like phone support, which is worse than none, because the next person
   trusts it. */

/* The questions the form skipped. Built but collapsed: a branching form skips
   most of itself for most people, so 120 grey lines above the answers would
   bury the thing the coach opened the intake for. A count with no way to open
   it is a dead end, which is what this replaced. */

/* the record is incomplete — a different thing from a skipped question,
   and it must not read as one */
.v2-foot-warn{color:#8a6d1f;border-left:3px solid rgba(138,109,31,.5);padding-left:9px;margin-top:10px}

/* ASKED, AND LEFT BLANK. The old form's panel has always drawn this as a red
   card (onboarding-dash .ik-f.none); the new form was whispering it in grey.
   Same red, same words, so a coach reading either form sees a gap as a gap.
   Deliberately NOT used for a skipped question - that is not a gap, and 134
   red rows would be 134 false alarms. */

/* THE NEW FORM USES THE OLD FORM'S CARDS — .intake-section-title, .intake-grid,
   .intake-field and .unanswered are all defined above and shared. These are the
   only two rules it adds, and both are about a state the old form does not have.

   A SKIPPED question is not a gap: dashed and grey, never the red .unanswered
   card, or a branching form puts 130 false alarms on one screen. */
.intake-field.v2-skipped-card{border-style:dashed;opacity:.75}
.intake-field.v2-skipped-card .intake-field-val{color:var(--muted);font-style:italic}
/* An answer that stopped applying: quiet, and never read as a current fact. */
.intake-grid.v2-stale{opacity:.72}
.intake-section-title.v2-stale-title{color:#8a6d1f}

/* WAITING, SAID OUT LOUD. The v2 band used to appear 10-15 seconds after the
   page looked finished, with nothing on screen to say it was coming. */
.v2-loading{padding:14px}
.v2-loading-note{font-size:11px;color:var(--muted);text-align:center;margin-top:8px;letter-spacing:.03em}
.v2-loading-failed{color:var(--red);padding:10px 14px;text-align:left}

/* LONGER, NOT CLIPPED. An answer card grows to fit what the client wrote —
   a squeezed snippet is a card a coach has to hover to read. Line breaks are
   kept because an address and a seven-day planner are written one per line. */
.intake-row-v2 .intake-field-val{white-space:pre-wrap}
.intake-row-v2 .intake-field{min-height:0}

/* THE QUESTION AS THE CLIENT SAW IT. Every option the form offered, with the
   ones they picked ticked — so a coach sees the choice, not just the answer. */
.iqm-opts{padding:4px 16px 16px;display:flex;flex-direction:column;gap:5px}
.iqm-opt{display:flex;gap:9px;align-items:flex-start;font-size:13px;line-height:1.45;
  color:var(--muted);padding:7px 10px;border:1px solid var(--b1);border-radius:5px;background:var(--card,#fff)}
.iqm-opt.picked{color:var(--text);font-weight:600;border-color:rgba(30,143,80,.42);background:rgba(30,143,80,.07)}
.iqm-tick{flex:0 0 12px;color:var(--green);font-weight:800}
.iqm-answer{padding:4px 16px 16px;font-size:13.5px;line-height:1.55;white-space:pre-wrap;color:var(--text)}
.iqm-answer.none{color:var(--red);font-style:italic}
/* an answer the question no longer offers — kept, never dropped */
.iqm-orphan{padding:0 16px 14px;font-size:12px;color:#8a6d1f;font-style:italic}

/* FOLDABLE SECTIONS. A 181-question form is a long scroll even with two
   thirds never asked; a coach reading about training does not need nine food
   sections open. The count on the right is how many answers are inside, so a
   folded section still says how much it is hiding. */
.intake-section-title.v2-sec{cursor:pointer;display:flex;align-items:center;gap:7px;user-select:none}
.intake-section-title.v2-sec:hover{color:var(--ink)}
/* WHICH SECTION A CARD CAME FROM, on bars that hold more than one. Quiet
   enough to read past when you know, present enough to answer "is this
   restaurants one lunch or dinner?" without opening anything. */
.v2-fromsec{font-size:8.5px;font-weight:600;letter-spacing:.07em;text-transform:uppercase;
  color:var(--muted);background:var(--s2);border-radius:8px;padding:1px 6px;margin-left:5px;
  white-space:nowrap;vertical-align:1px}
.v2-caret{display:inline-block;width:9px;font-size:9px;color:var(--muted)}
.v2-sec-count{margin-left:auto;font-size:9px;color:var(--muted);letter-spacing:0;
  background:var(--s1);border:1px solid var(--b1);border-radius:9px;padding:1px 7px;font-weight:600}

/* A DOMAIN BAR. Seven of these instead of thirteen section headers: the
   grammar of the closer dash's pre-call notes modal, a small number of named
   domains each carrying one readable line. The summary is what makes folding
   them an improvement rather than thirteen extra clicks. */
.v2-dom{gap:9px}
.v2-dom-n{flex:0 0 auto}
.v2-dom-sum{flex:1 1 auto;min-width:0;font-size:11px;font-weight:400;letter-spacing:0;
  text-transform:none;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ── THE COACH BRIEF ─────────────────────────────────────────────────────
   Five rows, the first thing on the panel after the owed lane. Each row is a
   control: clicking it opens the bar holding that answer and scrolls to the
   card. So it has to LOOK clickable, or it reads as a static summary nobody
   thinks to press. */
.v2-brief{margin:12px 0 4px;border:1px solid var(--b1);border-radius:var(--r);background:var(--s1);overflow:hidden}
.v2-brief-head{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;
  padding:9px 12px;border-bottom:1px solid var(--b1);background:var(--card,#fff);
  font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--ink)}
.v2-brief-head span{font-size:10.5px;font-weight:400;letter-spacing:.02em;text-transform:none;color:var(--muted)}
.v2-brief-row{display:flex;gap:12px;padding:8px 12px;cursor:pointer;
  border-top:1px solid var(--b1);font-size:13px;line-height:1.5}
.v2-brief-row:first-of-type{border-top:0}
.v2-brief-row:hover{background:var(--card,#fff)}
.v2-brief-row b{flex:0 0 118px;font-weight:600;font-size:11.5px;color:var(--muted);padding-top:1px}
.v2-brief-vals{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px;overflow-wrap:anywhere}
.v2-brief-sub{display:block;font-size:10px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
/* A BLANK IS SAID, NEVER LEFT BLANK — same words the card below uses. */
.v2-brief-none{color:var(--muted);font-style:italic;opacity:.8}
/* THE PLANNER, COMPRESSED FOR THE BRIEF - CSS ONLY, SAME MARKUP. In the card
   a seven-day planner is a stacked list, one row per day, and that is right
   there: it has the full width and it is the answer somebody came to read. At
   the top of the panel it was 600px tall and buried the four lines under it,
   which defeats the point of a brief.
   This is a second PRESENTATION, never a second renderer: _v2PlannerHtml still
   produces it, from the same stored value, in the same Monday-to-Sunday order,
   with the same red off-day tag. Only the box it sits in changes. */
.v2-brief .v2-groups{flex-direction:row;flex-wrap:wrap;gap:4px 14px}
.v2-brief .v2-grp{display:flex;flex-direction:column;align-items:flex-start;gap:2px;
  border-top:0;padding:0;min-width:0}
.v2-brief .v2-grp-n{font-size:8.5px;letter-spacing:.08em;padding:0}
.v2-brief .v2-chip,.v2-brief .v2-tag{font-size:11px;padding:1px 7px}
/* AND THE LINE BREAKS SURVIVE. A scalegrid answer is one line per meal, and
   without this the brief ran all three together into a sentence nobody could
   read. The card gets this from .intake-row-v2 .intake-field-val; the brief is
   not inside an .intake-field, so it says so itself. */
.v2-brief-val{white-space:pre-wrap}
.v2-brief-val .v2-groups,.v2-brief-val .v2-chips{white-space:normal}
/* THE JUMP FLASH MOVED to lib/intake-owed-lane.js. Both the brief and the
   owed lane trigger it, and the lane runs on the Coach Coordinator's dash too
   - where this stylesheet does not exist, so a flash defined here would have
   been a jump that silently marked nothing. */

/* THE OWED LANE'S CSS MOVED to lib/intake-owed-lane.js, which injects it once
   per page the way lib/ui-loading.js does. It is shared with the Coach
   Coordinator dash, and a second copy here is the drift that change exists to
   stop - a rule edited in one stylesheet and not the other produces two panels
   that look alike until the day they do not. */

/* The section picker, top right of the panel — under the Dismiss button. */
.v2-secbar{display:flex;justify-content:flex-end;position:relative;margin:2px 0 -6px}
.v2-secbtn{font-family:'Manrope',sans-serif;font-size:11px;font-weight:600;letter-spacing:.03em;
  color:var(--muted);background:var(--s1);border:1px solid var(--b1);border-radius:var(--r);
  padding:5px 10px;cursor:pointer}
.v2-secbtn:hover{color:var(--ink)}
.v2-secn{background:var(--s2);border-radius:8px;padding:0 5px;margin-left:2px}
.v2-secmenu{position:absolute;top:100%;right:0;margin-top:4px;z-index:40;min-width:230px;
  background:var(--card,#fff);border:1px solid var(--b1);border-radius:var(--r);
  box-shadow:0 8px 26px rgba(0,0,0,.14);padding:7px}
.v2-secmenu-row{display:flex;gap:6px;padding:0 4px 7px;border-bottom:1px solid var(--b1);margin-bottom:5px}
.v2-secmenu-row button{flex:1;font-family:inherit;font-size:10.5px;font-weight:600;cursor:pointer;
  background:var(--s1);border:1px solid var(--b1);border-radius:4px;padding:5px;color:var(--muted)}
.v2-secmenu-row button:hover{color:var(--ink)}
.v2-secopt{display:flex;gap:8px;align-items:center;font-size:12px;color:var(--text);
  padding:5px 6px;border-radius:4px;cursor:pointer}
.v2-secopt:hover{background:var(--s1)}

/* HIDING A SECTION. `[hidden]` sets display:none at the lowest priority and
   these elements set their own display, so the attribute did nothing — the
   count changed and the sections stayed on screen. A class with !important is
   the one thing that beats them.

   ONE BARE CLASS, NOT A LIST OF ELEMENTS, and that is the whole point. The
   first version named the two elements it knew about. Adding a third thing to
   hide then silently did nothing, because nobody remembers to come back here
   — which happened, twice. !important already beats display:grid no matter
   how weak the selector is, so the list bought nothing and cost a bug class.
   lib/__tests__/v2-off-hides.test.cjs fails if this is ever narrowed again. */
.v2-off{display:none !important}
.iqm-subtext{padding:0 16px 10px;font-size:12.5px;color:var(--muted);line-height:1.5}

/* THE QUESTION POPUP READS TOP TO BOTTOM: where it lives, what was asked,
   what they said. Georgiy, 2026-10-21: "the order is wrong. the section
   should be at the top. then the question. the answer these should be
   seperated cleanly so its not a mash of shit."
   The answer sits behind a rule and on its own tint because it is the only
   part of the card that belongs to THIS client - the section and the question
   are the same for everybody, and running all three together is what made it
   read as one paragraph. */
.iqm-v2 .iqm-where{padding:13px 16px 0;font-size:10.5px;letter-spacing:.09em;text-transform:uppercase;font-weight:700;color:var(--gold-d)}
.iqm-v2 .iqm-q{padding:7px 16px 14px;font-size:15px;font-weight:600;color:var(--text);line-height:1.5}
.iqm-v2 .iqm-ablock{border-top:1px solid var(--b1);background:var(--s2,rgba(0,0,0,.015));padding:12px 16px 15px}
.iqm-v2 .iqm-alabel{font-size:10px;letter-spacing:.09em;text-transform:uppercase;font-weight:700;color:var(--muted);margin-bottom:5px}
.iqm-v2 .iqm-ablock .iqm-answer{padding:0}

/* The panel is allowed to be empty now - hiding every section is a step on
   the way to picking one - so it has to say so rather than just sitting
   blank. .v2-off carries the actual hiding. */
.v2-nosec{padding:16px;font-size:12.5px;color:var(--muted);font-style:italic}

/* OPEN ENDED. The client wrote or recorded this themselves - no options were
   offered - so the answer is a sentence to READ, not a value to scan.
   Deliberately quiet: 36% of the cards carry it, so it has to be legible at a
   glance and invisible when you are not looking for it. Blue, because gold is
   already the section line and red is already "not answered". */
.intake-oe{display:inline-block;vertical-align:middle;font-size:7.5px;letter-spacing:.1em;font-weight:700;
  color:var(--blue);background:rgba(42,104,168,.09);border:1px solid rgba(42,104,168,.22);
  border-radius:3px;padding:1px 3px;margin-left:3px;line-height:1.3}
.iqm-oe{color:var(--blue);font-weight:600;text-transform:none;letter-spacing:0;margin-left:2px}

/* BOOKED, not had. A scan with an appointment behind it is a different fact
   from a scan that exists, and it used to wear the same badge. Amber rather
   than a colour already spoken for: it is a follow-up, not a problem. */
.chip-booked{background:rgba(184,90,20,.08);color:var(--orange);border:1px solid rgba(184,90,20,.22)}

/* "not asked", INSIDE THE SECTION IT BELONGS TO. Georgiy, 2026-10-21: "for the
   hidden questions bring them up to be drop downs within each section for
   where they were originally at so its not a cluister fuck and its properly
   sewen in." They were one 99-card list at the bottom, re-grouped by section
   down there - so the panel named "Breakfast" twice, forty screens apart.
   Quiet and shut by default: it is context, not an answer. */
.v2-secskip{margin-top:2px}
.v2-secskip-toggle{display:inline-block;font-size:10px;letter-spacing:.04em;color:var(--muted);
  cursor:pointer;padding:3px 8px;border:1px dashed var(--b1);border-radius:4px;background:var(--s1);
  user-select:none}
.v2-secskip-toggle:hover{color:var(--text);border-color:var(--b2)}
.v2-secskip-list{margin-top:8px;opacity:.72}

/* STILL LOADING, SAID WHERE THE LIST IS. The rows paint as the sheet lands and
   then rearrange three more times as the other sources arrive - so a painted
   row reads as a finished list and the coach starts reading something that is
   about to move. The bar is the "on its way" state; the sentence names WHICH
   source, because "loading" on a dash with five of them says nothing. */
.intake-loading-note{margin:0 0 10px;padding:9px 12px;background:var(--s1);
  border:1px dashed var(--b1);border-radius:var(--r)}

/* THE LIST DRAWS THE NEWEST FIRST. Measured at ~2ms a row, so 649 of them cost
   1.37s of frozen page on EVERY repaint, four times a load. Only the drawing
   is capped - search, the filters and the counts still run over all 711 - so
   this button is the only thing standing between the coach and the rest, and
   it has to say how many that is. */
.draw-more{display:block;width:100%;margin-top:12px;padding:11px 14px;
  background:var(--s1);border:1px dashed var(--b1);border-radius:var(--r);
  font-family:'Manrope',sans-serif;font-size:12px;letter-spacing:.04em;
  color:var(--muted);cursor:pointer;text-align:center}
.draw-more:hover{color:var(--text);border-color:var(--b2)}
.draw-note{margin-top:10px;padding:9px 12px;font-size:11.5px;color:var(--muted);
  text-align:center;font-style:italic}

/* ── FULL VIEW: THE FORM, AS THE CLIENT FILLED IT ──────────────────────────
   Georgiy, 2026-10-21: "i want the full view to be a pop up of all their
   questions.... a direct replica of this to see exactly wqhat the client
   sees". So these are the INTAKE FORM'S OWN RULES, read out of
   intake-v2/quiet.css and scoped under .v2-full — the colours, the radii, the
   purple selected pill with its tick. Not an impression of the form: its
   stylesheet. If the form's look changes, these are copied from quiet.css
   again rather than guessed at. Read-only throughout; nothing here writes. */
.v2-full{--vf-surface:#f6f5fa;--vf-ink:#1b191f;--vf-grey:#605a6c;--vf-faint:#908a9e;
  --vf-accent:#5a17c4;--vf-divider:#e6e3ee;
  position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:9300;
  display:none;align-items:flex-start;justify-content:center;padding:30px 16px;overflow-y:auto}
.v2-full.on{display:flex}
.v2-full-card{background:#fff;border-radius:18px;width:min(760px,100%);
  box-shadow:0 24px 70px rgba(0,0,0,.3);overflow:hidden;color:var(--vf-ink);
  font-family:'Manrope',system-ui,sans-serif}
.v2-full-head{display:flex;align-items:center;gap:12px;padding:14px 18px;
  border-bottom:1px solid var(--vf-divider);position:sticky;top:0;background:#fff;z-index:2}
.v2-full-who{font-weight:700;font-size:14px}
.v2-full-sub{font-size:11.5px;color:var(--vf-grey)}
.v2-full-jump{margin-left:auto;font:inherit;font-size:12px;padding:6px 9px;
  border:1px solid var(--vf-divider);border-radius:7px;background:#fff;color:var(--vf-ink)}
.v2-full-x{background:none;border:none;font-size:22px;line-height:1;cursor:pointer;color:var(--vf-grey)}
.v2-full-body{padding:16px 18px 28px;max-height:78vh;overflow-y:auto}

/* the form's own question block */
.v2-full .eyebrow{font-size:12px;font-weight:600;letter-spacing:.14em;
  color:var(--vf-accent);text-transform:uppercase;margin:22px 0 9px}
.v2-full .eyebrow:first-child{margin-top:2px}
.v2-full .q{background:var(--vf-surface);border:0;border-radius:20px;padding:22px 20px;
  display:flex;flex-direction:column;gap:12px;margin-bottom:12px;scroll-margin-top:70px}
.v2-full .qlabel{font-size:21px;font-weight:600;line-height:1.18;letter-spacing:-.3px}
.v2-full .qsub{font-size:13.5px;color:var(--vf-grey);margin-top:-6px;line-height:1.45}
.v2-full .opts{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:8px}
.v2-full .opt{display:flex;align-items:center;gap:12px;width:100%;background:#fff;
  border:0;border-radius:11px;padding:13px 15px;font:inherit;color:inherit;
  text-align:left;letter-spacing:-.2px;box-sizing:border-box}
.v2-full .opt .tick{flex:0 0 18px;height:18px;border-radius:5px;background:var(--vf-divider);
  display:grid;place-items:center;font-size:11px;line-height:1;color:transparent}
.v2-full .opt .ol b{display:block;font-size:15.5px;font-weight:600}
.v2-full .opt[aria-pressed="true"]{background:var(--vf-accent);color:#fff}
.v2-full .opt[aria-pressed="true"] .tick{background:#fff;color:var(--vf-accent)}
/* what they typed, rather than picked */
.v2-full .written{background:#fff;border-radius:10px;padding:13px 15px;font-size:15.5px;
  line-height:1.5;white-space:pre-wrap;word-break:break-word}
.v2-full .written.none{color:#c42e2e;font-style:italic}
.v2-full .skipped-note{font-size:12px;color:var(--vf-faint);font-style:italic}
/* a question the form shows as a dropdown — the chosen value, the way a
   <select> shows it, not every option as a tile */
.v2-full .picklist{background:#fff;border-radius:10px;padding:13px 15px;font-size:15.5px;
  font-weight:600;display:flex;align-items:center;gap:10px}
.v2-full .picklist-n{margin-left:auto;font-size:11.5px;font-weight:400;color:var(--vf-faint)}

/* ── INTAKE VOICE NOTES ──────────────────────────────────────────────────────
   The .vn* rules moved to lib/intake-voice.js on 2026-10-26 and inject
   themselves once via IntakeVoice.ensure(), which js/13-intakes.js calls at
   module scope. They are not here any more BECAUSE the Coach Coordinator dash
   needs the same card and does not load this stylesheet - a second copy of
   these rules over there is drift no equality test can see.

   `.vn` now has exactly ONE meaning in this repo: the voice card's container.
   The client name in a verify row was `.vn` too until the same day and is now
   `.ivr-name` (~line 156) — one class, one meaning, so injecting the card's
   CSS cannot move anything that is not a card. 13-intakes.js still calls
   ensure() at MODULE scope, which is the separate and permanent rule: CSS
   presence must never depend on whether a card happens to render. */

/* ── STILL EXPECTING ─────────────────────────────────────────────────────────
   What the client said they would send and has not. Sits above the answers,
   not in the badge row: a badge says what we HAVE and cannot also carry a
   promise. An item leaves this list the moment its file lands, so nothing is
   ever in both places, and an empty list draws nothing at all. */
.v2-expect{margin:0 0 14px;border:1px solid #d9c488;border-left-width:3px;border-radius:8px;
  background:#fdfaf1;padding:10px 14px;}
.v2-expect-head{font-size:11px;letter-spacing:.05em;text-transform:uppercase;color:#8a6d1f;
  margin-bottom:7px;font-weight:600;}
.v2-expect-list{margin:0;padding-left:16px;font-size:12px;line-height:1.6;}
.v2-expect-list li{margin:0 0 3px;}
.v2-expect-list li:last-child{margin-bottom:0;}
.v2-expect-what{color:var(--text);font-weight:500;}
.v2-expect-why{color:var(--muted);}
.v2-expect-why::before{content:' — ';color:var(--b1);}

/* EARLIER ANSWERS, INSIDE THEIR OWN SECTION. Georgiy, 2026-10-23: "they should
   be in a drop down of the section it came from and ideally provide more
   clarity on the context...right now this means nothing". The note explains
   what the block IS, and the why-line under each card names the answer that
   closed that question. Both are quieter than the answer itself, because the
   answer is the thing being read. */
.v2-stale-note{font-size:12.5px;color:var(--muted,#6b6b6b);line-height:1.45;margin:0 0 10px;max-width:70ch}
.v2-secstale .v2-secskip-toggle{color:#8a6d1f}
.v2-stale-why{font-size:11.5px;color:#8a6d1f;line-height:1.4;margin-top:6px;padding-top:6px;border-top:1px dashed rgba(138,109,31,.3)}
.intake-grid.v2-stale .intake-field{opacity:1}

/* ── MEAL ANSWERS: one row per food, every pick its own chip ───────────────
   Georgiy picked this layout on 2026-10-24 after four were put side by side:
   "i like B but maybe show some other options. i think this can read too much."
   The comma run was the problem - the eye slides past a comma and stops at an
   edge - so every pick gets edges and the row is counted rather than read.

   THE MEAL CARDS SPAN THE ROW. Six foods in a 200px column is a wall of text
   with no handles, which is the thing being fixed, so .wide is applied by the
   renderer rather than waiting for the long-line heuristic to notice. */
.v2-foods,.v2-groups{display:flex;flex-direction:column}
.v2-food,.v2-grp{display:grid;grid-template-columns:minmax(120px,180px) 1fr;
  gap:4px 16px;padding-block:9px;border-top:1px solid var(--b1);align-items:baseline}
.v2-food:first-child,.v2-grp:first-child{border-top:0;padding-top:1px}
.v2-food-n{font-weight:600;font-size:12.5px}
.v2-grp-n{font-size:9px;text-transform:uppercase;letter-spacing:.12em;
  color:var(--muted);font-weight:600}
.v2-chips{display:flex;flex-wrap:wrap;gap:5px;align-items:center}
.v2-chip{font-size:12px;background:var(--s2);border:1px solid var(--b1);
  border-radius:5px;padding:2px 8px;white-space:nowrap}
.v2-chip-typed{border-style:dashed}
.v2-chip-none{font-size:12px;color:var(--muted);font-style:italic}
/* A VARIANT IS NOT A TOPPING. "Whole milk" is how the oats are made, not
   something on them, so it carries its group name and sits apart. */
.v2-tag{font-size:12px;border-radius:999px;padding:2px 9px;white-space:nowrap;
  color:#8a6d1f;background:rgba(138,109,31,.1)}
.v2-tag-k{font-size:9px;letter-spacing:.1em;text-transform:uppercase;
  opacity:.8;margin-right:5px}
/* "No preference, any of these" is a SIGNAL, not an item: a coach who reads
   six toppings as six requirements builds a rigid plan for a flexible client. */
.v2-tag.is-flex{color:#2f6b4f;background:rgba(47,107,79,.1);cursor:help}
@media (max-width:640px){
  .v2-food,.v2-grp{grid-template-columns:1fr;gap:3px}
}

/* An OFF day is the one cell on the planner a coach must not misread as a
   short session, so it is the only red on the card. */
.v2-tag.is-off{color:#9a3412;background:rgba(154,52,18,.1)}

/* ── The intake re-check answer ────────────────────────────────────────────
   Three states and nothing in between (R53): ON ITS WAY is the UILoading
   banner, NOT FOUND is this plain note, FAILED is `.bad` in failure styling
   and never in a success colour. The note sits directly under the link bar it
   is about, because an answer rendered away from its question gets read as a
   page-wide alarm. */
.intake-recheck-note{margin:0 0 12px;padding:9px 12px;background:var(--s1);
  border:1px dashed var(--b1);border-radius:var(--r);font-size:12px;color:var(--muted);
  font-family:'Manrope',sans-serif;line-height:1.5}
.intake-recheck-note strong{color:var(--text);font-weight:600}
.intake-recheck-note.bad{border-style:solid;border-color:rgba(192,57,43,.40);
  background:rgba(192,57,43,.08);color:var(--red)}
.intake-recheck-note.bad strong{color:var(--red)}
/* The hypotheses are deliberately quieter than the observation above them:
   one is measured, the others are guesses, and they must not read alike. */
.intake-recheck-note .intake-recheck-why{display:block;margin-top:5px;opacity:.78}
.intake-link-bar button.intake-recheck:disabled{opacity:.6;cursor:progress}
/* The new-form list reads the 500 most recent submissions. When it is capped
   the heading says so — a note, not a warning: nothing is lost, the older
   forms are simply not in this list. Quieter than the counts beside it. */
.intake-cap-note{color:var(--muted);border-bottom:1px dotted var(--b1);cursor:help}
/* Trainerize feature-outage banner on the Messages page (_renderTzHealth).
   It has NO empty state by design: when everything works the element is blank
   and takes no space, because a banner that is always on screen is furniture,
   and furniture is invisible on the day it matters. */
.tzh{font-size:13px;line-height:1.5;padding:10px 14px;border-radius:var(--r);margin:0 0 12px;}
.tzh-down{background:rgba(196,46,46,.10);border:1px solid rgba(196,46,46,.45);color:var(--red);}
/* Amber, not red: "nobody has looked" is not the same claim as "it is broken",
   and painting them the same colour teaches a coach to ignore both. */
.tzh-unknown{background:rgba(190,140,20,.10);border:1px solid rgba(190,140,20,.40);color:var(--gold,#8a6a10);}
.tzh-when{display:block;margin-top:3px;font-size:11px;opacity:.75;font-weight:400;}
