/* Two small rule sets that used to sit loose in the <body>, below the markup
   they styled. Nothing else referenced them; moving them into the cascade at
   the end preserves their original last-wins position. */

/* reply-stats bar (check-in log) */
#replyStatsBar{margin-top:16px;background:var(--s1);border:1px solid var(--b1);border-radius:var(--r);padding:12px 16px;font-family:'Manrope',sans-serif}
        .rsb-loading{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:13px;padding:8px 0}
        .rsb-loading .spin{width:16px;height:16px}
        .rsb-head{display:flex;justify-content:space-between;align-items:center;gap:10px;cursor:pointer;user-select:none}
        .rsb-title{font-family:'Manrope',sans-serif;font-size:18px;letter-spacing:.05em;color:var(--text);display:flex;align-items:center;gap:8px;flex-wrap:wrap}
        .rsb-chev{color:var(--muted);font-size:12px}
        .rsb-title small{font-family:'Manrope',sans-serif;font-size:10px;color:var(--muted);letter-spacing:.02em;font-weight:400}
        .rsb-meta{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:8px}
        .rsb-refresh{background:var(--s2);border:1px solid var(--b1);color:var(--text);border-radius:6px;cursor:pointer;padding:2px 8px;font-size:12px}
        .rsb-coaches{display:flex;flex-direction:column;gap:8px;margin-top:12px}
        #replyStatsBar.collapsed .rsb-coaches{display:none}
        .rsb-coach{display:flex;align-items:center;gap:18px;background:var(--bg);border:1px solid var(--b1);border-radius:10px;padding:10px 14px;flex-wrap:wrap}
        .rsb-namecol{display:flex;flex-direction:column;gap:2px;min-width:110px}
        .rsb-name{font-weight:800;font-size:14px;color:var(--text);letter-spacing:.02em}
        .rsb-med{font-family:'Manrope',sans-serif;font-size:24px;line-height:1;color:var(--text);white-space:nowrap}
        .rsb-med small{font-family:'Manrope',sans-serif;font-size:9px;color:var(--muted);letter-spacing:.04em;margin-left:4px;text-transform:uppercase}
        .rsb-weeks{display:flex;gap:5px;flex:1;min-width:220px}
        .rsb-wk{flex:1;text-align:center;background:var(--s1);border:1px solid var(--b1);border-radius:5px;padding:4px 2px}
        .rsb-wk.cur{border-color:var(--gold-border);background:var(--s2)}
        .rsb-wk .l{font-size:8px;color:var(--muted);letter-spacing:.02em;text-transform:uppercase;display:block}
        .rsb-wk .v{font-size:13px;font-weight:700;color:var(--text)}
        .rsb-stats{display:flex;gap:16px;font-size:12px;color:var(--muted);white-space:nowrap}
        .rsb-stats b{color:var(--text)}
        .rsb-stats .lng b{color:#c76b2e}
        .rsb-up{color:#3a9d5d;font-size:12px;font-weight:800}
        .rsb-down{color:#c0392b;font-size:12px;font-weight:800}
        .rsb-mini{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:6px}

/* missing check-in cards */
.ci-miss-card{border:1px solid rgba(196,46,46,.45);background:rgba(196,46,46,.05);border-radius:8px;margin-bottom:16px;overflow:hidden;}
.ci-miss-hdr{display:flex;align-items:center;gap:10px;padding:11px 14px;cursor:pointer;background:rgba(196,46,46,.10);border-bottom:1px solid rgba(196,46,46,.25);flex-wrap:wrap;}
.ci-miss-card.collapsed .ci-miss-hdr{border-bottom:none;}
.ci-miss-title{font-weight:700;font-size:13px;color:var(--red);letter-spacing:.2px;}
.ci-miss-chev{color:var(--red);font-size:12px;}
.ci-miss-tool{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--muted);cursor:pointer;user-select:none;}
.ci-miss-send{background:var(--red);color:#fff;border:none;border-radius:6px;font-family:'Manrope',sans-serif;font-size:11px;font-weight:700;letter-spacing:.03em;padding:6px 12px;cursor:pointer;}
.ci-miss-send:disabled{opacity:.4;cursor:not-allowed;}
.ci-miss-card.collapsed .ci-miss-body{display:none;}
.ci-miss-row{display:flex;align-items:center;gap:10px;padding:9px 14px;border-bottom:1px solid var(--b1);}
.ci-miss-row:last-child{border-bottom:none;}
/* Nudged / awaiting-reply rows get a subtle amber tint + left bar so they read
   as "handled, waiting" at a glance. Keyed off the per-week nudge flag, so they
   clear back to normal automatically when the week resets. */
.ci-miss-row.nudged{background:rgba(214,158,46,.10);box-shadow:inset 3px 0 0 #d69e2e;}
.ci-miss-row.nudged .ci-miss-flag{color:#b9740a;}
.ci-miss-btn{background:var(--s2);border:1px solid var(--b1);color:var(--text);font-family:'Manrope',sans-serif;font-size:11px;font-weight:600;padding:5px 11px;border-radius:6px;cursor:pointer;white-space:nowrap;}
.ci-miss-btn:hover{border-color:var(--gold);color:var(--gold);}
.ci-miss-btn.ghost{background:none;color:var(--muted);}
.ci-miss-flag{display:inline-block;margin-left:6px;color:var(--red);font-weight:600;}
/* "no tag" — this row got onto the card by joining or checking in recently, NOT
   by carrying ACTIVE CLIENT. Without it a coach sees an unexplained new name. */
.ci-miss-notag{display:inline-block;margin-left:6px;padding:1px 6px;border:1px solid var(--b1);border-radius:999px;color:var(--muted);font-size:10px;font-weight:600;vertical-align:1px;}
.ci-miss-foot{padding:8px 14px;}
.ci-miss-link{background:none;border:none;color:#3aa9d9;font-size:11px;cursor:pointer;padding:2px 0;text-decoration:underline;}
.ci-chips{display:flex;flex-wrap:wrap;gap:6px;border:1px solid var(--b1);border-radius:6px;padding:8px;background:var(--bg);min-height:42px;}
.ci-chip{display:inline-flex;align-items:center;gap:6px;background:var(--s2);border:1px solid var(--b1);border-radius:16px;padding:3px 6px 3px 4px;font-size:12px;color:var(--text);}
.ci-chip button{background:none;border:none;color:var(--muted);cursor:pointer;font-size:14px;line-height:1;padding:0 2px;}
.ci-chip button:hover{color:var(--red);}

/* ── The checklist drawer ──────────────────────────────────────────────────
   Third home for this thing, and the reasoning for each move is worth keeping:
   it began as a popover behind a header button (invisible unless you went
   looking), became a rail on the Home page (visible, but only on Home, and
   draggable into a floating panel that then covered the client cards), and is
   now a drawer at the document level.

   Two rules make it behave:
     1. It PUSHES `.main` by exactly its own width rather than floating over it,
        so nothing can end up buried underneath. `--cl-w` is set by the JS as the
        drawer is dragged, so the push and the panel can never disagree.
     2. Below 1100px there is nothing left to push into, so it overlays with a
        backdrop instead — the same fallback the Scripts and AI drawers use.

   `top` matches .scripts-drawer so the four right-edge panels line up, and only
   one is ever open at a time. */
:root{--cl-w:430px;--cl-inset:12px;}
/* Inset from the edges and rounded, so it reads as a panel sitting on the page
   rather than something bolted to the side of the window. The page is pushed by
   the width PLUS the inset, so the gutter it sits in stays empty and the panel
   never overlaps anything.

   The shadow is on `.open` only. A closed drawer is merely translated
   off-screen, and a shadow on the base rule keeps painting leftward over the
   page — which is what put a black gradient down the right-hand side. */
.cl-drawer{position:fixed;top:calc(50px + var(--cl-inset));right:var(--cl-inset);
  bottom:var(--cl-inset);width:var(--cl-w);max-width:95vw;
  background:var(--s1);border:1px solid var(--b1);border-radius:12px;
  z-index:40;transform:translateX(calc(100% + var(--cl-inset) + 24px));
  transition:transform .22s ease,box-shadow .22s ease;
  display:flex;flex-direction:column;overflow:hidden;}
.cl-drawer.open{transform:translateX(0);box-shadow:0 6px 28px rgba(0,0,0,.16);}
body.checklist-open .main{margin-right:calc(var(--cl-w) + var(--cl-inset) * 2);}
/* The grab strip. Wider than it looks (the ::after is the visible hairline) so
   it can actually be caught with a mouse — a 1px target is why people give up
   on resize handles. */
.cl-resize{position:absolute;left:-3px;top:0;bottom:0;width:9px;cursor:col-resize;z-index:2;}
.cl-resize::after{content:'';position:absolute;left:3px;top:0;bottom:0;width:3px;background:transparent;transition:background .12s;}
.cl-resize:hover::after,.cl-resize.dragging::after{background:var(--gold);}
body.cl-resizing{user-select:none;cursor:col-resize;}
/* .main animates its margin for the open/close slide. During a DRAG that
   animation is a quarter-second of lag between the edge under the cursor and
   the page reflowing behind it, which reads as the panel tearing away from the
   content. Killed for the duration of the drag only. */
body.cl-resizing .main,body.cl-resizing .cl-drawer{transition:none;}
@media (max-width:1100px){
  body.checklist-open .main{margin-right:0;}          /* overlay mode — nothing left to push */
  /* .scripts-backdrop hides itself above 900px, so between 901 and 1100 this
     drawer was overlaying with no backdrop to click away on. Its own breakpoint,
     matching the width at which it starts overlaying. */
  #checklist-backdrop{display:block;}
  body.checklist-open #checklist-backdrop{opacity:1;pointer-events:auto;}
  .cl-resize{display:none;}                            /* dragging a full-width overlay is meaningless */
}
@media (min-width:1101px){#checklist-backdrop{display:none;}}
/* Header count. Sits on the button so the drawer being shut never hides the
   fact that there is something in it. */
.cl-badge{display:inline-flex;align-items:center;justify-content:center;min-width:16px;height:16px;
  margin-left:6px;padding:0 4px;border-radius:8px;background:var(--gold);color:#fff;
  font-size:10px;font-weight:700;line-height:1;}
#global-checklist-btn.on{border-color:var(--gold);color:var(--gold);}
.cl-head{padding:11px 13px;border-bottom:1px solid var(--b1);display:flex;align-items:center;gap:8px;flex-shrink:0;}
.cl-title{font-family:'Manrope',sans-serif;font-size:16px;letter-spacing:.06em;color:var(--text);}
.cl-head select{margin-left:auto;font-size:11px;}
.cl-body{overflow-y:auto;padding:11px 12px;flex:1;min-height:0;}
.cl-add{padding:9px 12px;border-top:1px solid var(--b1);flex-shrink:0;background:var(--s2);
  display:flex;gap:6px;align-items:center;flex-wrap:wrap;}
.cl-add input,.cl-add textarea{flex:1 1 120px;min-width:0;background:var(--s1);border:1px solid var(--b1);border-radius:6px;
  padding:7px 10px;font-family:'Manrope',sans-serif;font-size:12px;color:var(--text);outline:none;}
/* Auto-grown by _clAddGrow, so no manual drag handle and no inner scrollbar
   until the note is genuinely long. line-height must match the JS's assumption
   that height = scrollHeight. */
.cl-add textarea{resize:none;overflow-y:auto;max-height:180px;line-height:1.45;flex-basis:100%;}
.cl-add select{font-size:11px;}
/* "Make this a task" — deliberately quiet until hover. The checklist is for
   ticking things off; promoting one to a tracked task is the exception. */
.cl-task{background:none;border:1px solid var(--b2);color:var(--muted);font-size:10.5px;
  font-weight:600;letter-spacing:.02em;cursor:pointer;white-space:nowrap;
  padding:2px 7px;border-radius:5px;opacity:0;transition:opacity .12s;flex-shrink:0;}
.cl-row:hover .cl-task,.cl-task:focus-visible{opacity:1;}
.cl-task:hover{color:var(--gold);background:var(--s3);}

/* Green tick that clears a row. Lives at the far right of the row's header
   line, not in the action strip: it is the one action that REMOVES the row, so
   separating it stops a coach reaching for it while aiming at "Message". Round
   and green so it reads as "done" without needing the word. */
.h-prow .rh{position:relative;}
.h-seen{margin-left:auto;flex-shrink:0;width:26px;height:26px;border-radius:50%;
  border:1.5px solid var(--b2);background:transparent;color:var(--muted);
  font-size:13px;line-height:1;cursor:pointer;display:inline-flex;
  align-items:center;justify-content:center;transition:background .12s,color .12s,border-color .12s;}
.h-seen:hover{background:var(--green);border-color:var(--green);color:#fff;}
.h-seen:focus-visible{outline:2px solid var(--green);outline-offset:2px;}
.h-seen.on{background:var(--green);border-color:var(--green);color:#fff;}

/* The free-form drag-anywhere mode is GONE. It was added so the panel could be
   positioned freely, and the thing it actually did was cover the client cards
   with no way to tell what was underneath. A drawer that pushes the page has the
   same benefit — you choose how much room it takes — without that failure mode,
   so the only geometry left is width. */
.cl-head select,.cl-head button{cursor:pointer;}

/* The rail's subtitle carries how firm the date is. Without this, "rough
   estimate" and "soft target" rendered in the identical muted grey, so the
   three stages were indistinguishable at the place a coach actually looks. */
/* Needs the .h-card prefix to out-specify `.h-card.tight .h-rail .s`, which is
   four classes deep; three would silently lose and every subtitle stayed the
   tone colour. The BIG number keeps the tone (that carries urgency); only the
   subtitle carries confidence, so the two signals don't fight. */
.h-card .h-rail.firm-tentative .s{color:var(--dim);font-style:italic;font-weight:400;}
.h-card .h-rail.firm-tentative .w{opacity:.7;}
.h-card .h-rail.firm-estimate .s{color:var(--gold);font-weight:600;}
.h-card .h-rail.firm-firm .s,.h-card .h-rail.firm-manual .s,.h-card .h-rail.firm-coordinator .s{color:var(--text);font-weight:700;
  border-bottom:1.5px solid currentColor;padding-bottom:1px;}
/* A booked reveal call is the one deadline the CLIENT is already holding us to,
   so its rail is tinted red and its type is red — Georgiy 2026-08-07. It was a
   SOLID deep-red block with white type (his call on 2026-08-06); seen next to the
   warm-intro banner on the same card, two saturated red blocks made every card
   read as an emergency, so the fill is back to a light wash.
   Still --red-d for the type and not --red, because overdue owns --red: an
   on-time reveal deadline must read as serious without reading as late. A card
   that IS late hands back to the full alert red below, so the hierarchy holds
   (deep red = real, bright red = missed) and nothing quietens a miss. */
.h-card .h-rail.firm-firm{background:rgba(140,28,28,.09);border-right-color:rgba(140,28,28,.22);}
.h-card .h-rail.firm-firm .w{color:var(--red-d);}
.h-card .h-rail.firm-firm .s{color:var(--red-d);border-bottom-color:rgba(140,28,28,.4);}
.h-card.crit .h-rail.firm-firm{background:rgba(196,46,46,.11);border-right-color:rgba(196,46,46,.26);}
.h-card.crit .h-rail.firm-firm .w,.h-card.crit .h-rail.firm-firm .s{color:var(--red);}

/* A soft date is not a commitment, so its rail must not look like one. Pale straw
   rather than white: white would be indistinguishable from the card body and the
   rail would stop reading as its own column. Both soft stages share it — the
   coordinator's expected date and an intake estimate are the same KIND of thing
   (nothing booked), and the subtitle already says which. */
.h-card .h-rail.firm-estimate,.h-card .h-rail.firm-expected{
  background:rgba(160,122,8,.07);border-right-color:rgba(160,122,8,.2);}
.h-card .h-rail.firm-estimate .w,.h-card .h-rail.firm-expected .w{color:var(--gold-d);}
.h-card .h-rail.firm-expected .s{color:var(--blue);font-weight:600;}
/* Late still wins outright: a missed soft target is a miss. */
.h-card.crit .h-rail.firm-estimate,.h-card.crit .h-rail.firm-expected{
  background:rgba(196,46,46,.09);border-right-color:rgba(196,46,46,.22);}
.h-card.crit .h-rail.firm-estimate .w,.h-card.crit .h-rail.firm-expected .w,
.h-card.crit .h-rail.firm-expected .s{color:var(--red);}

/* A coordinator ask carries the blue her writing carries everywhere else in both
   dashes — red is already spoken for by overdue, and reusing it here would make
   every ask look late. Overridden by the tone colour when the card IS late,
   which is the correct precedence: urgency beats provenance. */
.h-card .h-rail.firm-coordinator .s{color:var(--blue);}
.h-card.crit .h-rail.firm-coordinator .s{color:var(--red);}

/* Nobody chosen: the drawer collapses to its header. The picker stays reachable
   so it can be switched back on — hiding it outright would strand a coach who
   turned it off. */
.cl-drawer.cl-off{height:auto;bottom:auto;}
.cl-drawer.cl-off .cl-body,.cl-drawer.cl-off .cl-add,.cl-drawer.cl-off .cl-resize{display:none;}
.cl-drawer.cl-off .cl-head{border-bottom:0;}

/* Secondary line on a KPI tile: present, but never competing with the headline
   state above it. Used for work that is worth knowing about and isn't blocking. */
.h-kpi .h-kpi-x{display:block;font-size:10.5px;color:var(--dim);margin-top:1px;line-height:1.3;}

/* Home is a two-column page, so the 1120px reading width every other page uses
   squeezes it — it was holding the checklist rail well short of the right edge.
   Only Home is widened; the single-column pages keep their measure. */
#page-home{max-width:1560px;}
/* With the extra room the tile grid would reflow to 5 or 6 across and leave a
   ragged last row, so pin it: 7 tiles, 4 + 3, at any width where the rail is
   docked beside the list. Below that the rail stacks and auto-fit takes over. */
@media (min-width:1281px){
  .h-kpis{grid-template-columns:repeat(4,minmax(0,1fr));}
}

/* ── CLIENT REVIEW PROGRAM (Georgiy only) ──────────────────────────────────
   A four-column board: To Ask → Asked → Reviewed → Completed. Columns scroll
   independently so one long column can't push the other three off-screen. */
.rv-sub-hdr{font-size:11.5px;color:var(--muted);margin:-4px 0 14px;max-width:760px;line-height:1.5;}

/* Add row. The name field owns the type-ahead, so it needs position:relative
   for the suggestion list to hang off. */
.rv-add{display:flex;gap:8px;align-items:flex-start;margin-bottom:16px;flex-wrap:wrap;}
.rv-add-field{position:relative;flex:1 1 280px;min-width:220px;}
.rv-add-field .search-input{width:100%;}
.rv-add-email{flex:0 1 260px;min-width:180px;}
.rv-suggestions{position:absolute;top:calc(100% + 3px);left:0;right:0;z-index:60;background:var(--s1);
  border:1px solid var(--b2);border-radius:var(--r);box-shadow:0 8px 24px rgba(0,0,0,.10);max-height:260px;overflow-y:auto;}
.rv-sug{display:flex;justify-content:space-between;align-items:baseline;gap:10px;width:100%;text-align:left;
  background:transparent;border:none;color:var(--text);font-family:'Manrope',sans-serif;font-size:13px;
  padding:8px 12px;cursor:pointer;}
.rv-sug:hover{background:var(--s2);}
.rv-sug-meta{font-size:10.5px;color:var(--muted);flex:0 0 auto;}
.rv-sug-none{padding:8px 12px;font-size:12px;color:var(--muted);font-style:italic;}

/* Buttons. One class, three weights, so a card's actions read as a set. */
.rv-btn{background:var(--s1);border:1px solid var(--b2);color:var(--text);font-family:'Manrope',sans-serif;
  font-size:11.5px;font-weight:600;padding:6px 11px;border-radius:var(--r);cursor:pointer;transition:.13s;white-space:nowrap;}
.rv-btn:hover:not(:disabled){border-color:var(--gold-border);background:var(--gold-bg);}
.rv-btn.primary{background:var(--gold);border-color:var(--gold);color:#fff;}
.rv-btn.primary:hover:not(:disabled){background:var(--gold-d);border-color:var(--gold-d);}
.rv-btn.ghost{background:transparent;border-color:var(--b1);color:var(--muted);font-weight:500;}
.rv-btn.ghost:hover:not(:disabled){color:var(--text);}
/* Disabled buttons keep their title attribute, which is where the reason
   lives — never hide an action without saying why it's unavailable. */
.rv-btn:disabled{opacity:.4;cursor:not-allowed;}

/* Counter for the bulk weight pull. Empty most of the time, and :empty keeps
   it from reserving a gap in the header when it is. */
.rv-progress{font-size:11px;font-weight:600;color:var(--muted);}
.rv-progress:empty{display:none;}

/* Board */
.rv-board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:start;}
@media (max-width:1100px){.rv-board{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:640px){.rv-board{grid-template-columns:1fr;}}
.rv-col{background:var(--s2);border:1px solid var(--b1);border-radius:var(--r);overflow:hidden;}
.rv-col-hdr{display:flex;align-items:center;gap:8px;padding:9px 12px;background:var(--s3);border-bottom:1px solid var(--b1);}
.rv-col-title{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--text);flex:1;}
.rv-col-count{font-size:11px;font-weight:700;color:var(--muted);background:var(--s1);border:1px solid var(--b1);
  border-radius:999px;padding:1px 8px;}
.rv-col-body{padding:10px;display:flex;flex-direction:column;gap:9px;max-height:calc(100vh - 340px);overflow-y:auto;}
.rv-empty{font-size:11.5px;color:var(--dim);font-style:italic;padding:10px 2px;}

/* Card */
.rv-card{background:var(--s1);border:1px solid var(--b1);border-radius:var(--r);padding:10px 11px;}
.rv-card.flagged{border-color:rgba(184,90,20,.45);background:rgba(184,90,20,.04);}
.rv-card-top{display:flex;align-items:flex-start;gap:8px;}
.rv-name{flex:1;min-width:0;font-size:13px;font-weight:600;color:var(--gold);text-decoration:none;
  overflow:hidden;text-overflow:ellipsis;}
.rv-name:hover{text-decoration:underline;}
.rv-name-plain{color:var(--text);cursor:default;}
.rv-x{background:none;border:none;color:var(--dim);font-size:16px;line-height:1;cursor:pointer;padding:0 2px;flex:0 0 auto;}
.rv-x:hover{color:var(--red);}
.rv-email{font-size:11px;color:var(--muted);margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.rv-email.rv-none{font-style:italic;color:var(--dim);}
.rv-meta{font-size:10.5px;color:var(--dim);margin-top:2px;}
.rv-sub{font-size:10.5px;color:var(--muted);margin-top:6px;}
.rv-sub a{color:var(--gold);text-decoration:none;}
.rv-sub a:hover{text-decoration:underline;}
.rv-flag{font-size:10.5px;color:var(--orange);font-weight:600;margin-top:6px;line-height:1.4;}
.rv-acts{display:flex;flex-wrap:wrap;gap:5px;margin-top:9px;}

/* Snippet row. Identical on all four columns — a card that shifts stage keeps
   every copy button it had. Visually quieter than .rv-acts on purpose: these
   are always-there utilities, and the stage move above them is the decision. */
.rv-snips{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin-top:8px;padding-top:7px;
  border-top:1px dashed var(--b1);}
.rv-snip{background:var(--s2);border:1px solid var(--b1);color:var(--muted);font-family:'Manrope',sans-serif;
  font-size:10.5px;font-weight:600;padding:3px 7px;border-radius:var(--r);cursor:pointer;transition:.13s;white-space:nowrap;}
.rv-snip:hover{border-color:var(--gold-border);background:var(--gold-bg);color:var(--gold-d);}
/* Packed, NOT pushed right with margin-left:auto. Four columns on a 1280px
   screen leave ~230px of card, which is a few pixels short of all four — and a
   right-shoved GHL button alone on the second line reads as a mistake, where a
   packed wrap just reads as a wrap. */
.rv-snip.ghl{color:var(--gold);}

/* Modals */
.rv-label{display:block;font-size:9px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);
  font-weight:600;margin:14px 0 4px;}
.rv-label:first-child{margin-top:0;}
.rv-req{color:var(--red);letter-spacing:0;text-transform:none;font-size:9.5px;}
.rv-help{font-size:11px;color:var(--muted);margin-top:4px;line-height:1.45;}
.rv-help code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:10.5px;background:var(--s2);
  border:1px solid var(--b1);border-radius:3px;padding:0 4px;}
.rv-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:12.5px;line-height:1.5;padding:8px 10px;outline:none;resize:vertical;}
.rv-textarea:focus{border-color:var(--gold-border);}
.rv-preview{white-space:pre-wrap;font-family:'Manrope',sans-serif;font-size:12px;color:var(--muted);
  background:var(--s2);border:1px solid var(--b1);border-radius:var(--r);padding:10px 12px;line-height:1.5;}
.rv-modal-foot{display:flex;justify-content:flex-end;gap:8px;padding:12px 18px;border-top:1px solid var(--b1);flex-shrink:0;}
.rv-modal-sub{font-family:'Manrope',sans-serif;font-size:10.5px;color:var(--muted);margin-top:3px;line-height:1.45;}
.rv-bulk-preview{margin-top:12px;}
.rv-bulk-sum{font-size:11px;font-weight:600;color:var(--muted);margin-bottom:6px;}
.rv-bulk-row{display:flex;justify-content:space-between;gap:12px;align-items:baseline;font-size:12px;
  padding:4px 0;border-bottom:1px solid var(--b1);}
.rv-bulk-ok{font-size:10.5px;color:var(--green);flex:0 0 auto;}
.rv-bulk-warn{font-size:10.5px;color:var(--orange);flex:0 0 auto;text-align:right;}

/* Four columns need more measure than the 1120px single-column pages use —
   at that width the cards squeeze their action buttons onto three rows. */
#page-reviews{max-width:1460px;}

/* Weight loss, typed straight onto the card off the Trainerize progress page.
   Sits between the meta line and the buttons because it is READ before the
   script is copied — the total is what the script quotes back to the client. */
/* Deliberately nowrap and tight: at 5px gaps and 46px fields this row is a
   couple of pixels wider than a column, and "lbs" drops to a line of its own. */
.rv-wt{display:flex;align-items:center;gap:4px;margin-top:7px;flex-wrap:nowrap;}
.rv-prog{color:var(--gold);text-decoration:none;}
.rv-prog:hover{text-decoration:underline;}
.rv-wt-lab{font-size:9px;letter-spacing:.06em;text-transform:uppercase;color:var(--dim);font-weight:700;
  flex:0 0 auto;white-space:nowrap;}
.rv-wt-in{width:40px;flex:0 0 auto;background:var(--s1);border:1px solid var(--b1);border-radius:var(--r);
  color:var(--text);font-family:'Manrope',sans-serif;font-size:11.5px;padding:2px 4px;outline:none;text-align:right;}
.rv-wt-in:focus{border-color:var(--gold-border);}
/* Chrome's number spinners eat half a 46px field. */
.rv-wt-in::-webkit-outer-spin-button,.rv-wt-in::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}
.rv-wt-in{-moz-appearance:textfield;}
.rv-wt-unit{font-size:10.5px;color:var(--dim);flex:0 0 auto;}
.rv-wt-pull{flex:0 0 auto;background:none;border:none;color:var(--gold);font-size:12px;line-height:1;
  cursor:pointer;padding:0 2px;}
.rv-wt-pull:hover{color:var(--gold-d);}
.rv-wt-age{font-size:9.5px;color:var(--orange);font-weight:600;margin-left:auto;flex:0 0 auto;}
/* No total means the script would say "Down ___lbs". Say so on the card, not
   after it is on the clipboard. */
.rv-wt-empty .rv-wt-lab,.rv-wt-empty .rv-wt-unit{color:var(--orange);}
.rv-wt-empty .rv-wt-in{border-color:var(--orange);}

/* GHL contact picker — only appears when an email lookup didn't settle it. */
.rv-ghl-pick:empty{display:none;}
.rv-ghl-pick{margin-top:7px;padding:6px 7px;background:var(--s2);border:1px solid var(--b1);border-radius:var(--r);}
.rv-pick-note{font-size:10.5px;color:var(--muted);line-height:1.4;margin-bottom:4px;}
.rv-pick-opt{display:flex;justify-content:space-between;gap:8px;width:100%;text-align:left;background:var(--s1);
  border:1px solid var(--b1);border-radius:var(--r);color:var(--text);font-family:'Manrope',sans-serif;
  font-size:11.5px;padding:4px 6px;margin-bottom:4px;cursor:pointer;}
.rv-pick-opt:hover{border-color:var(--gold-border);}
.rv-pick-meta{font-size:10px;color:var(--dim);flex:0 0 auto;}
.rv-pick-manual{display:flex;gap:5px;}
.rv-pick-in{flex:1;min-width:0;background:var(--s1);border:1px solid var(--b1);border-radius:var(--r);
  color:var(--text);font-family:'Manrope',sans-serif;font-size:11px;padding:3px 6px;outline:none;}

/* ═══ MORNING COACH CHECK-UP ═══════════════════════════════════════════════
   The card the four head coaches answer each weekday morning, and Georgiy's
   board on Home. Appended, overriding nothing above.

   Colours ramp with urgency as a button is tapped, so a coach feels the weight
   of the answer while giving it: green fine, light green full but coping,
   yellow can wait a day, orange a live blocker, red today. --cu-green-l and
   --cu-yellow are declared here rather than in 01-base-layout.css because
   nothing else in the dash needs a second green or a true yellow, and adding
   them to the global palette would invite reuse that muddies --green/--orange.
   ────────────────────────────────────────────────────────────────────────── */
:root{ --cu-green-l:#6dbf90; --cu-green-l-txt:#0c3a24; --cu-yellow:#e0a53c; --cu-yellow-txt:#3d2a06; }

/* The dot IS the whole reminder: no banner, no counting badge. */
.cu-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--gold);
        margin-left:5px;vertical-align:middle;flex:0 0 auto;}

.cu-done-note{background:var(--gold-bg);border:1px solid var(--gold-border);border-radius:var(--r);
              padding:9px 12px;font-size:12px;color:var(--muted);margin-bottom:14px;line-height:1.5;}

.cu-q{display:flex;flex-direction:column;gap:8px;margin-bottom:18px;}
.cu-q:last-child{margin-bottom:4px;}
.cu-q-label{font-size:13.5px;font-weight:600;color:var(--text);line-height:1.4;}
.cu-q-n{font-size:9.5px;font-weight:700;color:var(--gold);letter-spacing:.1em;margin-right:7px;}
.cu-opts{display:flex;flex-wrap:wrap;gap:6px;}
.cu-opt{font-family:'Manrope',sans-serif;font-size:12.5px;font-weight:600;background:var(--s1);
        color:var(--muted);border:1px solid var(--b1);border-radius:999px;padding:7px 14px;
        cursor:pointer;text-align:left;transition:background .12s,border-color .12s,color .12s;}
.cu-opt:hover{border-color:var(--b2);color:var(--text);}
/* Selected. Tone rules carry their own colour AND their own text colour, so a
   later theme change to the generic rule cannot leave dark-on-dark. */
.cu-opt[aria-pressed="true"]{color:#fff;font-weight:700;}
.cu-opt[data-tone="g"][aria-pressed="true"] {background:var(--green);border-color:var(--green);}
.cu-opt[data-tone="g2"][aria-pressed="true"]{background:var(--cu-green-l);border-color:var(--cu-green-l);color:var(--cu-green-l-txt);}
.cu-opt[data-tone="y"][aria-pressed="true"] {background:var(--cu-yellow);border-color:var(--cu-yellow);color:var(--cu-yellow-txt);}
.cu-opt[data-tone="a"][aria-pressed="true"] {background:var(--orange);border-color:var(--orange);}
.cu-opt[data-tone="r"][aria-pressed="true"] {background:var(--red);border-color:var(--red);}

.cu-detail{display:flex;flex-direction:column;gap:4px;margin-top:2px;}
.cu-detail input{font-family:'Manrope',sans-serif;font-size:12.5px;width:100%;background:var(--bg);
                 color:var(--text);border:1px solid var(--b1);border-radius:var(--r);padding:8px 11px;outline:none;}
.cu-detail input:focus{border-color:var(--gold-border);}
.cu-hint{font-size:9.5px;letter-spacing:.09em;text-transform:uppercase;color:var(--dim);font-weight:600;}

.cu-ft{display:flex;align-items:center;gap:10px;padding:12px 18px;border-top:1px solid var(--b1);
       background:var(--s2);}
.cu-btn{font-family:'Manrope',sans-serif;font-size:13px;font-weight:700;padding:8px 18px;
        border-radius:7px;cursor:pointer;border:1px solid transparent;}
.cu-btn-ghost{background:var(--s1);border-color:var(--b1);color:var(--dim);font-weight:500;}
.cu-btn-primary{background:var(--gold);border-color:var(--gold-border);color:#fff;margin-left:auto;}
.cu-btn-primary[disabled]{opacity:.45;cursor:not-allowed;}

/* ── Georgiy's board ─────────────────────────────────────────────────────── */
.cu-board-card{background:var(--s1);border:1px solid var(--b1);border-radius:var(--r);
               margin-bottom:14px;overflow:hidden;}
.cu-board-hd{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;
             flex-wrap:wrap;padding:13px 16px;border-bottom:1px solid var(--b1);background:var(--s2);}
.cu-board-title{font-size:13px;font-weight:700;letter-spacing:-.01em;}
.cu-board-sub{font-size:11.5px;color:var(--muted);margin-top:2px;}
.cu-board-key{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:10.5px;color:var(--muted);}
.cu-board-key span{display:inline-flex;align-items:center;gap:5px;}
.cu-sw{width:9px;height:9px;border-radius:2px;display:inline-block;}
.cu-sw.green{background:var(--green);} .cu-sw.yellow{background:var(--cu-yellow);}
.cu-sw.red{background:var(--red);}     .cu-sw.miss{border:1px dashed var(--b3);}

.cu-board-scroll{overflow-x:auto;padding:14px 16px 6px;}
.cu-board-grid{display:inline-grid;gap:3px;align-items:center;}
.cu-bname{font-size:12px;font-weight:700;padding-right:12px;white-space:nowrap;text-align:right;}
.cu-colhead{font-size:8px;color:var(--dim);text-align:center;line-height:1.2;font-variant-numeric:tabular-nums;}
.cu-colhead b{display:block;font-weight:700;color:var(--muted);}
.cu-cell{width:20px;height:20px;border-radius:3px;border:1px solid transparent;padding:0;cursor:pointer;}
.cu-cell.green{background:var(--green);} .cu-cell.yellow{background:var(--cu-yellow);}
.cu-cell.red{background:var(--red);}
/* An absence must never read as a colour. A missed day is a hollow square. */
.cu-cell.miss{background:transparent;border:1px dashed var(--b3);}
.cu-cell.today{box-shadow:0 0 0 1px var(--gold-border);}
.cu-cell.sel{box-shadow:0 0 0 2px var(--s1),0 0 0 4px var(--gold);}

.cu-board-detail{border-top:1px solid var(--b1);padding:12px 16px;min-height:56px;
                 display:flex;flex-direction:column;gap:6px;}
.cu-board-msg{font-size:12px;color:var(--muted);}
.cu-dc-hd{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:13px;font-weight:700;}
.cu-dc-rows{display:grid;grid-template-columns:auto 1fr;gap:2px 14px;font-size:12.5px;}
.cu-dc-k{font-size:9px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);
         padding-top:3px;white-space:nowrap;font-weight:600;}
.cu-dc-note{border-left:2px solid var(--gold);padding-left:10px;font-style:italic;font-size:12.5px;}
.cu-dc-warn{font-size:11.5px;color:var(--red);font-weight:600;}
.cu-pill{font-size:9.5px;font-weight:700;letter-spacing:.08em;padding:2px 8px;border-radius:3px;border:1px solid;}
.cu-pill.red{color:var(--red);background:rgba(196,46,46,.09);border-color:rgba(196,46,46,.34);}
.cu-pill.yellow{color:var(--orange);background:rgba(184,90,20,.10);border-color:rgba(184,90,20,.34);}
.cu-pill.green{color:var(--green);background:rgba(30,143,80,.09);border-color:rgba(30,143,80,.34);}
.cu-pill.miss{color:var(--muted);background:var(--s2);border-color:var(--b1);}
/* "probably done" — everyone else who owes a check-in, under a closed lid.
   They are ON the card, not filtered off it: the lid is about order, because a
   246-row list stops being read. Opening it is how a coach clears them. */
.ci-miss-dormant{border-top:1px solid var(--b1);margin-top:4px;}
.ci-miss-dormant-hdr{display:flex;align-items:center;gap:8px;padding:9px 16px;cursor:pointer;font-size:12px;color:var(--muted);user-select:none;}
.ci-miss-dormant-hdr:hover{color:var(--text);background:var(--s2);}
.ci-miss-dormant-hdr b{color:var(--text);}
.ci-miss-dormant-hint{font-size:11px;color:var(--muted);opacity:.8;}
.ci-miss-dormant-body{border-top:1px solid var(--b1);max-height:420px;overflow-y:auto;}
.ci-miss-dormant-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:8px 16px;font-size:12px;color:var(--muted);background:var(--s2);position:sticky;top:0;z-index:1;}
.ci-miss-dormant-tools label{display:flex;align-items:center;gap:6px;cursor:pointer;}
.ci-miss-btn:disabled{opacity:.45;cursor:default;}
.ci-miss-btn:disabled:hover{border-color:var(--b1);color:var(--text);}
.ci-miss-saving{padding:10px 16px;border-bottom:1px solid var(--b1);background:var(--s2);}
.ci-miss-saving-note{margin-top:6px;font-size:11px;color:var(--muted);}
.ci-miss-saving-note b{color:var(--text);}
