/* static/pages/billing.css */
/* Billing (pages/billing.js): Tool costs, the wide card, beside Client subscriptions; one column on a narrow page.
   The cards, fields and buttons are app.css's: this sheet lays out the rows. */
.billing-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: var(--sp-4); align-items: stretch; }  /* the two cards end on one line: no hole under the shorter */
.billing-card { --pad-y: 0px; --pad-x: 0px; gap: 0; }
[data-page="billing"] h2.card-h { margin: 0; }
.billing-card .card-h small + .btn { margin-left: var(--sp-2); }
.billing-body { padding: var(--sp-1) var(--sp-4); }
.billing-row { display: flex; align-items: center; gap: var(--sp-3); min-height: var(--row-h); padding: var(--sp-1) 0; }
.billing-row + .billing-row { border-top: 1px solid var(--line); }
.billing-row > span { flex: 1; min-width: 0; color: var(--text); }
.billing-row b { font: 500 var(--fs-small) var(--mono); color: var(--text); }
.billing-row em { font-style: normal; font-size: var(--fs-small); color: var(--text3); }
.billing-sum span { color: var(--text3); } .billing-sum b { font-weight: 700; color: var(--head); }
.billing-row > .input { flex: 1; min-width: 0; }
.billing-row label { display: flex; align-items: center; gap: 6px; color: var(--text3); }
.billing-row label .input { width: 120px; font-family: var(--mono); text-align: right; }
.billing-drop:hover { color: var(--bad-ink); }
.billing-cols { display: flex; justify-content: space-between; padding: var(--sp-3) 44px var(--sp-1) 0; font-size: var(--fs-caption); font-weight: 600; color: var(--text3); }
.billing-acts { display: flex; flex-wrap: wrap; gap: var(--sp-2); padding: var(--sp-3) 0 var(--sp-2); border-top: 1px solid var(--line); }
.billing-note { margin: 0; padding: var(--sp-2) var(--sp-4) var(--sp-3); border-top: 1px solid var(--line); font-size: var(--fs-caption); color: var(--text3); }
.billing-off { padding: var(--sp-4); display: grid; gap: var(--sp-3); justify-items: start; }
.billing-off p { margin: 0; color: var(--text2); max-width: 56ch; }
@media (max-width: 900px) { .billing-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .billing-row label .input { width: 96px; } }

/* static/pages/calendar.css */
/* Work → Calendar: the legend's kind chips, then the people panel beside one card per view: a time grid (an hours
   rail, a column per day in Week or per person in Day, Right now's tiles above Day), the team's week (a row per
   person, a cell per day) or the list. A call is tinted by its kind with a bar at its edge; with two or more people in
   a week's column the bar is its person's colour. A blocked time is grey, as GoHighLevel draws it; a teammate's Google
   busy time is a hatched band. The grid's hour height fits the window between 36 and 64 px. The open event's details
   and Book a call (its booking links, a link's own booking page) stand beside it on a computer, as a drawer at 1100 px
   and as a bottom sheet on a phone. */
.cal-nav { display: inline-flex; align-items: center; gap: var(--sp-1); }
.cal-nav .btn.sq svg.i { width: 16px; height: 16px; }
.cal-prev svg.i { transform: rotate(180deg); }
.cal-nav [aria-pressed="true"] { background: var(--head); border-color: var(--head); color: var(--bg); }
.cal-span { margin-left: var(--sp-2); font-weight: 600; font-size: var(--fs-body, 15px); color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* each person's colour: a dot in the panel and the bar of their blocks in a shared column */
[data-page="calendar"] .cal-p0 { --p: var(--blue); } [data-page="calendar"] .cal-p1 { --p: var(--ok); }
[data-page="calendar"] .cal-p2 { --p: var(--warn); } [data-page="calendar"] .cal-p3 { --p: #8b5cf6; }
[data-page="calendar"] .cal-p4 { --p: #db2777; } [data-page="calendar"] .cal-p5 { --p: #0d9488; }
[data-page="calendar"] .cal-p6 { --p: var(--bad); } [data-page="calendar"] .cal-p7 { --p: #a16207; }
[data-page="calendar"] .cal-pmany { --p: var(--text3); }  /* one time several people hold */
.cal-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--p, var(--faint)); flex: none; }
.cal-colh .cal-dot { margin-right: 6px; vertical-align: 0; }

/* the people panel: the sets, then a box per person */
.cal-wrap { position: relative; display: grid; grid-template-columns: 212px minmax(0, 1fr); gap: var(--sp-3); align-items: start; }
.cal-main { min-width: 0; }
.cal-side { position: sticky; top: var(--sp-3); padding: var(--sp-3); border-radius: var(--r-card); background: var(--raise); box-shadow: var(--card); }
.cal-side[open] { display: grid; gap: var(--sp-3); }
.cal-side .cal-ss { display: none; }
.cal-side .cal-sh { margin: 0; padding: 0; font: 600 var(--fs-caption) var(--sans); color: var(--text3); text-transform: uppercase; letter-spacing: .04em; }
.cal-sets { display: flex; flex-wrap: wrap; gap: 4px; }
.cal-sets .chip { font-size: var(--fs-caption); }
.cal-pl { display: grid; gap: 1px; }
.cal-pp { display: grid; grid-template-columns: 16px 10px minmax(0, 1fr) auto; align-items: center; gap: var(--sp-2); padding: 5px 6px; border-radius: var(--r-sm); cursor: pointer; font-size: var(--fs-small); color: var(--text); }
.cal-pp:hover { background: var(--hover); }
.cal-pp input { margin: 0; width: 15px; height: 15px; accent-color: var(--blue); cursor: pointer; }
.cal-pp span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-pp span small, .cal-pn { color: var(--text3); font-size: var(--fs-caption); font-variant-numeric: tabular-nums; }
.cal-pp:not(:has(input:checked)) .cal-dot { background: none; box-shadow: inset 0 0 0 1.5px var(--p); }

/* each kind's colour, the same on a block, a chip, the legend and the details */
[data-page="calendar"] .cal-launch { --k: var(--blue); }
[data-page="calendar"] .cal-welcome { --k: var(--ok); }
[data-page="calendar"] .cal-checkin { --k: var(--warn); }
[data-page="calendar"] .cal-demo { --k: color-mix(in srgb, var(--blue) 50%, var(--bad)); }
[data-page="calendar"] .cal-other { --k: var(--text3); }
[data-page="calendar"] .cal-blocked { --k: var(--text3); }
[data-page="calendar"] .cal-google { --k: var(--faint); }
.cal-kind { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--k, var(--faint)); flex: none; }
.cal-kinds { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin: 0 0 var(--sp-3); }
.cal-kinds .chip b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text3); }
.cal-kinds .chip[aria-pressed="true"] b { color: inherit; }
.cal-kinds .btn svg.i { width: 15px; height: 15px; }

/* Right now: a tile per teammate */
.cal-rn { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--sp-2); margin: 0 0 var(--sp-3); }
.cal-rt { display: grid; gap: 2px; padding: var(--sp-2) var(--sp-3); border-radius: var(--r-ctl); background: var(--raise); box-shadow: var(--card); min-width: 0; }
.cal-rt > div { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.cal-rt b { font-weight: 600; font-size: var(--fs-small); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-rt small { font-size: var(--fs-caption); color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.cal-card { --pad-y: 0px; --pad-x: 0px; overflow-x: auto; --cal-above: 290px; }
.cal-cday { --cal-above: 370px; }  /* Right now's tiles stand above the day */

/* the time grids: Week (a column per day) and Day (a column per person) */
.cal-grid { --cal-hh: clamp(36px, calc((100vh - var(--cal-above)) / var(--hours, 10)), 64px);
  display: grid; grid-template-columns: 58px repeat(var(--cols), minmax(150px, 1fr)); min-width: min-content; }
.cal-wgrid { grid-template-columns: 52px repeat(var(--cols), minmax(92px, 1fr)); }
.cal-col, .cal-hours { display: flex; flex-direction: column; min-width: 0; }
.cal-col { border-left: 1px solid var(--line); }
.cal-col.cal-today { background: color-mix(in srgb, var(--blue) 4%, transparent); }
.cal-hours { position: sticky; left: 0; z-index: 3; background: var(--raise); }
.cal-colh { display: grid; align-content: center; height: 48px; padding: 0 var(--sp-3); border-bottom: 1px solid var(--line); min-width: 0; flex: none; }
.cal-colh b { font-weight: 600; font-size: var(--fs-small); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-colh small { font-size: var(--fs-caption); color: var(--text3); white-space: nowrap; }
/* a week's day head: its weekday, its date (today's in a blue disc) and its calls; a click opens the day */
.cal-dayh { grid-template-columns: auto auto 1fr; align-items: center; gap: 6px; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; text-align: left; cursor: pointer; }
.cal-dayh:hover { background: var(--hover); }
.cal-dayh b { font-size: 17px; font-variant-numeric: tabular-nums; min-width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; }
.cal-today .cal-dayh small:first-child { color: var(--blue); font-weight: 600; }
.cal-today .cal-dayh b { background: var(--blue); color: var(--bg); }
.cal-dayh .cal-dn { justify-self: end; }
/* a day narrower than its words ("Tue 20 19 calls"): the calls take a line under the weekday and the date */
.cal-dayh { container-type: inline-size; }
@container (max-width: 139px) { .cal-dayh .cal-dn { grid-column: 1 / -1; justify-self: start; line-height: 1.1; } .cal-dayh b { height: 24px; } }
/* the all-day row: an item of 20 hours or more */
.cal-ad { display: flex; flex-direction: column; gap: 2px; height: calc(var(--ad, 1) * 22px + 6px); box-sizing: border-box; padding: 3px 4px; border-bottom: 1px solid var(--line); flex: none; }
.cal-adl { justify-content: center; padding: 0 var(--sp-2) 0 0; font-size: var(--fs-caption); color: var(--text3); text-align: right; }
.cal-adc { display: block; width: 100%; padding: 1px 6px; border: 0; border-radius: var(--r-sm); text-align: left; font: 500 var(--fs-caption)/1.5 var(--sans); color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: color-mix(in srgb, var(--k, var(--text3)) 14%, var(--raise)); box-shadow: inset 3px 0 0 var(--p, var(--k)); }
button.cal-adc { cursor: pointer; }
.cal-track { position: relative; flex: none; height: calc(var(--hours, 10) * var(--cal-hh)); cursor: cell;
  background: repeating-linear-gradient(to bottom, transparent 0 calc(var(--cal-hh) - 1px), var(--line) calc(var(--cal-hh) - 1px) var(--cal-hh)); }
.cal-hours .cal-track { background: none; display: grid; grid-auto-rows: var(--cal-hh); cursor: default; }
/* what a click on an empty time books: a half-hour ghost and its time */
.cal-ghost { position: absolute; left: 2px; right: 2px; z-index: 1; padding: 1px 6px; border: 1px dashed var(--blue); border-radius: var(--r-sm); pointer-events: none;
  background: color-mix(in srgb, var(--blue) 8%, transparent); color: var(--blue); font: 600 var(--fs-caption)/16px var(--sans); white-space: nowrap; overflow: hidden; }
.cal-hours .cal-track span { font-size: var(--fs-caption); color: var(--text3); text-align: right; padding: 2px var(--sp-2) 0 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cal-bz { position: absolute; left: 0; right: 0; padding: 2px 6px; overflow: hidden; border-block: 1px solid var(--line);
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--text3) 16%, transparent) 0 1.5px, transparent 1.5px 7px), var(--chip); }
.cal-bz span { display: block; font-size: var(--fs-caption); color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev { position: absolute; z-index: 1; display: grid; align-content: start; gap: 1px; padding: 3px 6px 3px 9px; overflow: hidden; text-align: left;
  border: 1px solid color-mix(in srgb, var(--k) 32%, var(--line)); border-radius: var(--r-sm); color: var(--text); cursor: pointer; font: inherit;
  background: color-mix(in srgb, var(--k) 12%, var(--raise)); box-shadow: inset 3px 0 0 var(--k); }
.cal-ev b { font-weight: 600; font-size: var(--fs-small); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev small { font-size: var(--fs-caption); color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
/* a call of 45 minutes or more: its name, then its time's line. A box that holds two lines lets a long name take the
   second one, cut with an ellipsis only past it. The time's line then has no room: it wraps into a second column,
   which the box hides past its gap, and the grid's place and the tip still say the time. A box under two lines, as a
   short window draws a 45 minute call, sets both lines tight, so each still stands whole. No line is drawn in part. */
.cal-ev:not(.cal-short) { display: flex; flex-flow: column wrap; align-content: flex-start; gap: 0 48px; container-type: size; }
.cal-ev:not(.cal-short) > * { width: 100%; flex: none; }
.cal-ev small { line-height: 1.25; }
@container (min-height: 33px) {
  .cal-ev:not(.cal-short) b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; overflow-wrap: anywhere; }
  .cal-ev:not(.cal-short) small { margin-top: 1px; }
}
@container (max-height: 32.9px) { .cal-ev:not(.cal-short) b { line-height: 1.1; } .cal-ev:not(.cal-short) small { line-height: 1.05; } }
/* a call under 45 minutes: one line, its time then its name. Where both do not fit, the name keeps the line: it wraps
   onto a line above the time's (wrap-reverse, packed to the top), and the row gap puts the time's under the box */
.cal-ev.cal-short { display: flex; flex-wrap: wrap-reverse; align-content: flex-end; gap: 48px 4px; align-items: center; padding: 2px 4px 1px 9px; min-height: 22px; }
.cal-ev.cal-short small { order: -1; flex: none; }
.cal-ev.cal-short b { max-width: 100%; }
.cal-ev:hover { border-color: var(--k); }
div.cal-ev { cursor: default; }
/* a blocked time: grey as in GoHighLevel; a Google busy time among the calls of a shared column: hatched */
.cal-ev.cal-blocked { background: color-mix(in srgb, var(--text3) 13%, var(--raise)); }
.cal-ev.cal-google { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--text3) 16%, transparent) 0 1.5px, transparent 1.5px 7px), var(--chip); color: var(--text2); }
.cal-multi .cal-ev, .cal-multi .cal-adc { box-shadow: inset 4px 0 0 var(--p); }
.cal-on.cal-ev, .cal-on.cal-wc { outline: 2px solid var(--blue); outline-offset: 1px; z-index: 2; }
/* a past event: a paler tint and its words in --text2, never faded below AA; its kind's edge stays */
.cal-past { color: var(--text2); }
.cal-ev.cal-past { color: var(--text2); background: color-mix(in srgb, var(--k) 5%, var(--raise)); }
.cal-x b, .cal-x.cal-wc, .cal-x.cal-li b { text-decoration: line-through; }
.cal-now { position: absolute; left: 0; right: 0; z-index: 2; height: 2px; margin-top: -1px; background: var(--blue); pointer-events: none; }
.cal-track .cal-under { visibility: hidden; }  /* the hour's label now's time stands over (calRail) */
.cal-nowt { position: absolute; right: 4px; z-index: 1; transform: translateY(-50%); padding: 1px 5px; border-radius: var(--r-pill);
  background: var(--blue); color: var(--bg); font: 600 var(--fs-caption)/16px var(--sans); font-style: normal; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Week: a row per teammate, a cell per day */
.cal-week { display: grid; grid-template-columns: 172px repeat(var(--days), minmax(132px, 1fr)) auto; min-width: min-content; }
.cal-wr { display: contents; }
.cal-wh { padding: var(--sp-3); font-size: var(--fs-small); font-weight: 600; color: var(--text2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.cal-wh.cal-today { color: var(--blue); }
.cal-wp, .cal-wd { padding: var(--sp-2); border-bottom: 1px solid var(--line); min-width: 0; }
.cal-wp { display: grid; align-content: start; gap: 2px; padding-left: var(--sp-3); position: sticky; left: 0; z-index: 1; background: var(--raise); }
.cal-wp b { font-weight: 600; font-size: var(--fs-small); color: var(--text); }
.cal-wp small, .cal-wb { font-size: var(--fs-caption); color: var(--text3); }
.cal-wd { display: flex; flex-direction: column; gap: 3px; border-left: 1px solid var(--line); }
.cal-wd.cal-today { background: color-mix(in srgb, var(--blue) 5%, transparent); }
.cal-we { width: 72px; padding: var(--sp-2); border-left: 1px solid var(--line); color: var(--text3); font-weight: 500;
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--text3) 8%, transparent) 0 1.5px, transparent 1.5px 7px); }
.cal-wc { display: flex; gap: 6px; align-items: baseline; width: 100%; padding: 3px 6px 3px 8px; border: 0; border-radius: var(--r-sm); text-align: left; cursor: pointer;
  font: 500 var(--fs-caption)/1.35 var(--sans); color: var(--text); background: color-mix(in srgb, var(--k) 12%, var(--raise)); box-shadow: inset 3px 0 0 var(--k);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-wc time { color: var(--text2); font-variant-numeric: tabular-nums; flex: none; }
.cal-wc:hover { background: color-mix(in srgb, var(--k) 20%, var(--raise)); }
.cal-more { align-self: flex-start; color: var(--blue); }

/* List: the week as an agenda */
.cal-list { display: grid; gap: var(--sp-4); }
.cal-ld { background: var(--raise); border-radius: var(--r-card); box-shadow: var(--card); overflow: hidden; }
.cal-ld h2 { margin: 0; padding: var(--sp-3) var(--sp-4); font: 600 var(--fs-small) var(--sans); color: var(--text2); border-bottom: 1px solid var(--line); }
.cal-li { display: grid; grid-template-columns: 70px 9px minmax(0, 1fr); gap: var(--sp-3); align-items: center; width: 100%; min-height: var(--row-h);
  padding: var(--sp-2) var(--sp-4); border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; font: inherit; color: var(--text); cursor: pointer; }
.cal-li:last-child { border-bottom: 0; }
.cal-li:hover { background: var(--hover); }
.cal-li time { display: grid; font-size: var(--fs-small); font-weight: 600; font-variant-numeric: tabular-nums; }
.cal-li time small, .cal-li span small { font-size: var(--fs-caption); font-weight: 400; color: var(--text3); }
.cal-li span { display: grid; min-width: 0; }
.cal-li span b { font-weight: 600; font-size: var(--fs-small); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-li span small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-nowd { display: flex; align-items: center; gap: var(--sp-2); padding: 0 var(--sp-4); height: 18px; }
.cal-nowd::after { content: ""; flex: 1; height: 2px; background: var(--blue); }
.cal-nowd span { font-size: var(--fs-caption); font-weight: 600; color: var(--blue); font-variant-numeric: tabular-nums; }

/* The open event's details */
.cal-pop { --pad-y: 0px; --pad-x: 0px; position: absolute; z-index: 6; width: 340px; max-width: 100%; box-shadow: var(--shadow); }
.cal-pop .card-h { align-items: center; }
.cal-dt { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cal-b { padding: var(--sp-3) var(--sp-4) var(--sp-4); display: grid; gap: var(--sp-3); }
.cal-dl { margin: 0; display: grid; gap: var(--sp-2); }
.cal-dl > div { display: grid; grid-template-columns: 72px 1fr; gap: var(--sp-2); font-size: var(--fs-small); }
.cal-dl dt { color: var(--text3); } .cal-dl dd { margin: 0; color: var(--text); min-width: 0; overflow-wrap: anywhere; }
.cal-dl a { color: var(--blue); } .cal-dl a svg.i { width: 13px; height: 13px; vertical-align: -2px; margin-left: 2px; }
.cal-notes { white-space: pre-wrap; }
.cal-muted, .cal-note { color: var(--text3); font-size: var(--fs-small); margin: 0; }
.cal-move, .cal-form fieldset { display: grid; gap: var(--sp-3); border: 0; margin: 0; padding: 0; min-width: 0; }
.cal-acts { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.cal-form .primary { width: 100%; }
.cal-sure { display: grid; gap: var(--sp-2); padding: var(--sp-3); border-radius: var(--r-ctl); background: var(--bad-bg); }
.cal-sure p { margin: 0; font-size: var(--fs-small); color: var(--text); }
/* an action while GoHighLevel's write scope is missing: one calm block naming the step that turns it on */
.cal-off { display: flex; gap: var(--sp-3); padding: var(--sp-3); border-radius: var(--r-ctl); background: var(--chip); }
.cal-off > svg.i { flex: none; margin-top: 2px; color: var(--text3); }
.cal-off b { font-weight: 600; color: var(--text); }
.cal-off p { margin: 2px 0 0; color: var(--text3); font-size: var(--fs-small); }
.cal-busy { margin: 0 0 var(--sp-3); }
/* Book a call: the person's booking links, each with Copy link and Book, over the form for a time they pick; a link's
   Book shows its calendar's own GoHighLevel booking page in the card, which grows to the page's own height */
.cal-pop-book { width: 380px; }
.cal-lkh { margin: 0; font: 600 var(--fs-caption) var(--sans); color: var(--text3); text-transform: uppercase; letter-spacing: .04em; }
.cal-lkh2 { padding-top: var(--sp-3); border-top: 1px solid var(--line); }
.cal-lks { display: grid; }
.cal-lk { display: flex; align-items: center; gap: var(--sp-2); min-height: 44px; padding: 6px 0; }
.cal-lk + .cal-lk { border-top: 1px solid var(--line); }
.cal-lkt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.cal-lkt b { font-weight: 600; font-size: var(--fs-small); color: var(--text); overflow-wrap: anywhere; line-height: 1.3; }
.cal-lkt small { font-size: var(--fs-caption); color: var(--text3); }
.cal-lka { display: flex; gap: 4px; flex: none; }
.cal-pop-page { width: 440px; }
.cal-bookw { position: relative; min-height: 480px; border-radius: var(--r-ctl); overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.cal-bookw iframe { display: block; width: 100%; height: 640px; border: 0; opacity: 0; }
.cal-bookw.in iframe { opacity: 1; }  /* shown once bookframe.js has its calendar clean */
.cal-wait { position: absolute; inset: 0 0 auto; display: flex; justify-content: center; align-items: center; gap: var(--sp-2); margin: 0; padding: 48px 16px; color: #6b7280; font-size: var(--fs-small); }
.cal-wait svg.i { width: 15px; height: 15px; }
.cal-bookw.in .cal-wait { display: none; }

@media (max-width: 1100px) {
  .cal-pop { position: fixed; top: 72px; right: var(--sp-4); bottom: var(--sp-4); overflow-y: auto; }
  /* the people panel folds into a row of boxes above the view */
  .cal-wrap { grid-template-columns: minmax(0, 1fr); }
  .cal-side { position: static; padding: var(--sp-2) var(--sp-3); }
  .cal-side .cal-sh { display: none; }
  .cal-side .cal-ss { display: flex; align-items: center; gap: var(--sp-2); cursor: pointer; list-style: none; font-size: var(--fs-small); color: var(--text3); min-height: 28px; }
  .cal-ss::-webkit-details-marker { display: none; }
  .cal-ss svg.i { width: 15px; height: 15px; transition: transform var(--t-fast); }
  .cal-side[open] .cal-ss svg.i { transform: rotate(90deg); }
  .cal-ss b { font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cal-pl { display: flex; flex-wrap: wrap; gap: 2px var(--sp-2); }
  .cal-pp { grid-template-columns: 16px 10px auto auto; }
  .cal-span { display: none; }
}
@media (max-width: 760px) {
  .cal-pop { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 82vh; border-radius: var(--r-card) var(--r-card) 0 0; padding-bottom: env(safe-area-inset-bottom); }
  /* the card is a sheet over the tab bar: the bar steps away while it is open, since the page's layer cannot rise
     above the bar (app.css, .main's isolation) */
  .app:has(.cal-pop) .phone-tabs { visibility: hidden; }
  .cal-rn { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 190px; overflow-x: auto; padding-bottom: 2px; }
  .cal-grid { grid-template-columns: 52px repeat(var(--cols), minmax(150px, 1fr)); }
  .cal-week { grid-template-columns: 128px repeat(var(--days), minmax(124px, 1fr)) auto; }
  .cal-li { grid-template-columns: 62px 9px minmax(0, 1fr); padding: var(--sp-2) var(--sp-3); }
}
.cal-split { margin: var(--sp-2) 0; font-size: var(--fs-small); }
.cal-split summary { cursor: pointer; width: fit-content; }
.cal-split form { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; padding: var(--sp-2) 0; }
.cal-split input { width: 5em; }
.cal-split small { color: var(--text3); }

/* static/pages/changelog.css */
/* Changelog (pages/changelog.js): the toolbar, then one band per day: its name at the left, held in view while its
   changes scroll, and its changes on one card, by area. Text keeps a reading measure. */

.cl-tb { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-5); }
.cl-find { flex: 1 1 260px; max-width: 380px; }
.cl-kinds { overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.cl-kinds b { font: 600 var(--fs-caption) var(--mono); color: var(--text3); font-variant-numeric: tabular-nums; }
.cl-kinds button[aria-pressed="true"] b { color: var(--text2); }

.cl { display: grid; gap: var(--sp-6); max-width: 1080px; }
.cl-day { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
.cl-when { position: sticky; top: var(--sp-4); display: grid; gap: 2px; padding-top: 14px; }
.cl-when h2 { margin: 0; font: 700 17px/1.25 var(--title); letter-spacing: -.01em; color: var(--head); }
.cl-when time { font-size: var(--fs-small); color: var(--text2); font-variant-numeric: tabular-nums; }
.cl-when small { font-size: var(--fs-caption); color: var(--text3); font-variant-numeric: tabular-nums; }

.cl-areas { border-radius: var(--r-card); background: var(--raise); box-shadow: var(--card); padding: 2px 22px; }
.cl-area { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 10px 0; }
.cl-area + .cl-area { border-top: 1px solid var(--line); }
.cl-area h3 { display: flex; align-items: baseline; gap: 8px; margin: 0; padding-top: 5px; font-size: var(--fs-small); font-weight: 700; color: var(--head); overflow-wrap: anywhere; }
.cl-area h3 small { font: 500 var(--fs-caption) var(--mono); color: var(--text3); }
.cl-area ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cl-area li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 4px 0; }
.cl-area li > .pill { justify-self: start; }
.cl-area p { margin: 0; max-width: 76ch; font-size: var(--fs-body); line-height: 1.55; color: var(--text); overflow-wrap: anywhere; }
.cl-area p code { font-size: 12.5px; padding: 1px 5px; border-radius: 4px; background: var(--chip); color: var(--head); }
.cl-area p a { color: var(--head); text-underline-offset: 3px; }
.cl-verdict { margin-left: 8px; vertical-align: 1px; }
.cl-more { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 0 96px; padding: 3px 8px 3px 4px; border-radius: var(--r-ctl); font-size: var(--fs-small); font-weight: 600; color: var(--text3); }
.cl-more svg.i { width: 14px; height: 14px; }
.cl-more:hover { color: var(--head); background: var(--hover); }

.cl-earlier { justify-self: center; }
.cl-end { justify-self: center; margin: 0; font-size: var(--fs-small); color: var(--text3); }

@media (max-width: 760px) {
  .cl-day { grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); }
  .cl-when { position: static; padding-top: 0; grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 8px; }
  .cl-areas { padding: 2px 16px; }
  .cl-area { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .cl-area li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .cl-more { margin-left: 0; }
}

/* static/pages/churn.css */
/* Churn (pages/churn.js). Its tiles, cards, tables, pills, dots and the pod switch are app.css's; the pod cards and
   the avatars are pods.css's. */
/* the pod switch: app.css's .seg, wrapping on a narrow page; each pod's colour on a square before its name */
.churn-seg { flex-wrap: wrap; max-width: 100%; flex: 0 1 auto; }
.churn-seg button { height: auto; min-height: 26px; }
.churn-seg i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
/* the switch stands in the head's toolbar, outside .pods-body: it takes the pod colours pods.css gives that body */
[data-page="churn"] > .tb { --pods-orange: #d9620f; --pods-violet: #6d4fd8; --pods-magenta: #a83bb0; }
:root[data-theme="dark"] [data-page="churn"] > .tb { --pods-orange: #ff8a3d; --pods-violet: #a78bfa; --pods-magenta: #d46ad8; }
[data-page="churn"] > .tb .pods-month { margin-left: auto; }
/* a tile's state pill stands on its own line over the tile's words */
[data-page="churn"] .tile-d > .pill { display: flex; width: fit-content; margin: 2px 0 4px; }

/* a pod's card: its average beside its reasons */
.churn-pod { text-align: left; font: inherit; }
.churn-go { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-small); font-weight: 600; color: var(--blue); white-space: nowrap; }
.churn-go svg.i { width: 14px; height: 14px; }
.churn-split { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.churn-split > div:first-child { display: grid; justify-items: start; gap: 4px; }
.churn-split > div:last-child { flex: 1 1 180px; min-width: 0; }
.churn-big { font: 800 var(--fs-figure)/1.1 var(--title); letter-spacing: -.03em; color: var(--head); }
.churn-prog { display: block; height: 6px; border-radius: 6px; background: var(--chip); overflow: hidden; }
:root[data-theme="dark"] .churn-prog { background: var(--line); }
.churn-prog i { display: block; height: 100%; border-radius: 6px; }
.churn-rbar { display: grid; grid-template-columns: minmax(0, 1fr) 90px 40px; gap: 8px; align-items: center; font-size: var(--fs-small); color: var(--text2); padding: 3px 0; }
.churn-rbar b, .churn-row b { font: 600 var(--fs-caption) var(--mono); text-align: right; color: var(--text); }
/* the first reply beside the churn, with a rule between them */
.churn-rep { display: grid; justify-items: start; gap: 4px; padding-left: 18px; border-left: 1px solid var(--line); }/* the clients that left with no reason saved: one call to save them, each a way to its drawer */
.churn-ask { display: flex; gap: var(--sp-3); align-items: flex-start; }
.churn-ask > svg.i { width: 20px; height: 20px; color: var(--warn-ink); flex: none; margin-top: 2px; }
.churn-ask b { color: var(--head); } .churn-ask p { margin: 4px 0 10px; color: var(--text2); max-width: 70ch; }
.churn-ask .tags { flex-wrap: wrap; }
.churn-more { margin-top: var(--sp-2); justify-self: start; }
.churn-mini { font-size: var(--fs-small); color: var(--text3); border-top: 1px solid var(--line); padding-top: 10px; } .churn-mini b { color: var(--text); }

/* the chart: words in --text3 on --raise in both themes, the grid in --line, the goal in the ok ink */
[data-page="churn"] .churn-plot { overflow-x: auto; }
.churn-chart { min-width: 520px; display: block; font-family: var(--sans); }
.churn-chart .grid { stroke: var(--line); }
.churn-chart .base { stroke: var(--line2); }
.churn-chart .axis { font-size: 11.5px; fill: var(--text3); }
.churn-chart .axis.on { fill: var(--head); font-weight: 700; }
.churn-chart .val { font-size: 11px; font-weight: 700; fill: var(--text); }
.churn-chart .goal { stroke: var(--ok); stroke-dasharray: 4 4; }
.churn-chart .goal-l { font-size: 11.5px; font-weight: 600; fill: var(--ok-ink); }
/* the reference labels paint over the bars, a halo of the card around them */
.churn-chart .goal-l, .churn-chart .avg-l { paint-order: stroke; stroke: var(--raise); stroke-width: 4px; stroke-linejoin: round; }
.churn-chart .avg { stroke: var(--text3); stroke-dasharray: 2 4; }
.churn-chart .none { stroke: var(--text3); stroke-width: 2; stroke-dasharray: 3 3; }
.churn-chart .pick { stroke: var(--head); stroke-width: 2; stroke-linecap: round; }

/* why clients left, and a reason's words beside a dot of its colour */
.churn-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px 40px; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); }
.churn-row:last-child { border-bottom: 0; }
.churn-row .tag { margin-left: 6px; }
.churn-reason { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-small); color: var(--text); }
.churn-reason::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
[data-page="churn"] td .dot { display: inline-block; margin-right: 7px; vertical-align: 1px; }
[data-page="churn"] .tags { flex-wrap: nowrap; }

/* what a pod's churn says */
.churn-grid { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 24px; padding-top: var(--sp-2); }
.churn-l { color: var(--text3); font-size: var(--fs-caption); font-weight: 600; margin-bottom: 4px; }
.churn-grid p + .churn-l { margin-top: 12px; }
.churn-top { font: 800 var(--fs-figure)/1.2 var(--title); letter-spacing: -.03em; color: var(--head); }
.churn-grid p { margin: 0; max-width: 70ch; }
.churn-grid ul { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 5px; }
@media (max-width: 760px) {
  .churn-split { flex-direction: column; align-items: stretch; gap: 10px; } .churn-rep { padding-left: 0; border-left: 0; } .churn-grid { grid-template-columns: minmax(0, 1fr); }
  .churn-rbar { grid-template-columns: minmax(0, 1fr) 60px 36px; }
  .churn-chart { min-width: 760px; } [data-page="churn"] .churn-plot { display: flex; flex-direction: row-reverse; }
  [data-page="churn"] > .tb { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
  [data-page="churn"] > .tb .pods-month { margin-left: 0; }
}
/* a folded row holds words (a quote, the signs): they wrap inside the screen */
[data-page="churn"] .tw-more td { white-space: normal; }
[data-page="churn"] .churn-lost td:has(.churn-reason) { white-space: normal; }
[data-page="churn"] .tw-more dd { overflow-wrap: anywhere; }
/* a pod's view holds five tiles (Controllable churn and First reply side by side): one row of five on a wide screen */
@media (min-width: 1101px) { [data-page="churn"] .tiles:has(> :nth-child(5)) { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1100px) { [data-page="churn"] .tiles > :nth-child(5):last-child { grid-column: 1 / -1; } }

/* static/pages/clientapp.css */
/* The App section (pages/clientapp.js): the Roadmap's two ledgers and its ordered parts, and a part's page:
   its state, steps, links and captures. The panel's tokens only; nothing moves. */

.ca { container-type: inline-size; max-width: 1080px; }
.ca-tracking { display: grid; gap: var(--sp-4); padding: var(--sp-5); }
.ca-tracking fieldset { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: var(--sp-3); border: 0; padding: 0; margin: 0; min-width: 0; }
.ca-tracking legend { font-weight: 700; padding: 0; margin-bottom: var(--sp-2); }
.ca-tracking label { display: grid; gap: var(--sp-1); min-width: 0; }
.ca-tracking input, .ca-tracking select { width: 100%; min-width: 0; }
.ca-tracking p { margin: 0; }
.ca-tracking [role=status]:empty { display: none; }
.ca-tracking [data-ca-results]:not(:empty) { border-top: 1px solid var(--line); margin-top: var(--sp-3); padding-top: var(--sp-3); }
.ca-tracking [data-ca-results] h4 { margin: var(--sp-3) 0 var(--sp-1); }
.ca-tracking [data-ca-results] section { border-top: 1px solid var(--line); margin-top: var(--sp-3); }
.ca-tracking [data-ca-results] summary { cursor: pointer; margin: var(--sp-2) 0; }
.ca-tracking [data-ca-results] ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: var(--sp-2) var(--sp-4); padding: 0; list-style: none; }
.ca-tracking [data-ca-results] li { display: flex; justify-content: space-between; gap: var(--sp-2); }
.ca-sum { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); margin: 0 0 var(--sp-6); }
.ca-led > p:first-child { margin: 0; color: var(--text2); font-size: var(--fs-lead); }
.ca-led > p:first-child b { font: 800 26px/1 var(--title); color: var(--head); letter-spacing: -.02em; margin-right: 4px; font-variant-numeric: tabular-nums; }
.ca-stack { display: flex; gap: 3px; height: 8px; margin: 10px 0 8px; }
.ca-stack i { border-radius: 3px; background: var(--line); min-width: 3px; }
.ca-stack i.ok { background: var(--ok); } .ca-stack i.wait { background: var(--wait); }
.ca-key { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; font-size: var(--fs-small); color: var(--text3); }
.ca-key span { display: inline-flex; align-items: center; gap: 6px; }

.ca-bar { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; width: 132px; height: 6px; flex: none; }
.ca-bar i { border-radius: 2px; background: var(--line); }
.ca-bar.ok i.on { background: var(--ok); } .ca-bar.wait i.on { background: var(--wait); }
.ca-of { font-size: var(--fs-small); color: var(--text3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ca-barline { display: inline-flex; align-items: center; gap: 10px; }

/* the Roadmap's parts, in the mission's order */
.ca-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.ca-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: var(--sp-4); align-items: start; }
.ca-n { width: 32px; height: 32px; border-radius: 50%; background: var(--hover); color: var(--text2); display: grid; place-items: center; font: 800 14px/1 var(--title); }
.ca-row h2 { margin: 0 0 4px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.ca-row h2 small { color: var(--text3); }
.ca-name { color: var(--head); text-decoration: none; }
a.ca-name:hover { text-decoration: underline; }
.ca-stands, .ca-next { margin: 0; color: var(--text2); max-width: 72ch; line-height: 1.5; }
.ca-next { margin-top: 6px; color: var(--text); }
.ca-next b { color: var(--text3); font-weight: 600; margin-right: 6px; }
.ca-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }

/* a part's page */
.ca-state { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 var(--sp-4); }
.ca-state .btn { margin-left: auto; }
.ca-part > .card { margin-bottom: var(--sp-4); }
.ca-part .card p { margin: 0; color: var(--text2); line-height: 1.55; max-width: 72ch; }
.ca-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); margin-bottom: var(--sp-4); }
.ca-steps { list-style: none; margin: 0; padding: 0; }
.ca-steps li { display: flex; align-items: center; gap: 10px; min-height: var(--row-h); border-top: 1px solid var(--line); color: var(--text2); }
.ca-steps li:first-child { border-top: 0; }
.ca-steps li span { flex: 1; min-width: 0; }
.ca-steps li small { color: var(--text3); white-space: nowrap; }
.ca-steps li .i { color: var(--faint); flex: none; }
.ca-steps li.on { color: var(--text); }
.ca-steps li.on .i, .ca-steps li.on small { color: var(--ok-ink); }
.ca-links { display: flex; flex-wrap: wrap; gap: 8px; }
.ca-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--sp-4); margin-top: var(--sp-4); }
.ca-links + .ca-shots { margin-top: var(--sp-5); }
.ca-shots figure { margin: 0; }
.ca-shots a { display: block; border-radius: var(--r-ctl); overflow: hidden; background: var(--hover); border: 1px solid var(--line); }
.ca-shots img { display: block; width: 100%; height: 200px; object-fit: cover; object-position: top; }
.ca-shots figcaption { margin-top: 6px; font-size: var(--fs-small); color: var(--text3); }
.ca-doc { margin: 0; font-size: var(--fs-small); color: var(--text3); }

@container (max-width: 720px) {
  .ca-sum, .ca-cols { grid-template-columns: 1fr; gap: var(--sp-4); }
  .ca-row { grid-template-columns: 32px minmax(0, 1fr); }
  .ca-side { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .ca-state .btn { margin-left: 0; }
}

/* static/pages/clientfacts.css */
/* A client's facts in its drawer (pages/clientfacts.js): the Sale card, the Drive row of Shop contact, the Website
   Creation Form's card, the A2P registration card and the two Ads answers. The cards, rows, chips and fields are the
   drawer's own (roster.css) and the in-house form's (ownforms.css); only what these add is here. */
/* the Sale card: the closer with their initials, the closing notes clamped to three lines until Show all */
.cf-who { display: inline-flex; align-items: center; gap: 7px; }
.cf-nh { margin: 10px 0 2px; font-size: var(--fs-small); color: var(--text2); }
.cf-notes { margin: 0 0 6px; max-width: 72ch; font-size: var(--fs-small); line-height: 1.5; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.cf-notes.clamp { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* Show all, Show less, All N answers: one quiet line whose arrow points down while folded */
.cf-more { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 6px; padding: 2px 6px 2px 0; border-radius: var(--r-sm); color: var(--blue); font-size: var(--fs-small); font-weight: 500; }
.cf-more:hover { text-decoration: underline; } .cf-more[hidden] { display: none; }
.cf-more svg.i { width: 12px; height: 12px; transform: rotate(90deg); transition: transform var(--t-fast); } .cf-more[aria-expanded="true"] svg.i { transform: rotate(-90deg); }
/* the Drive row: the folder's link and its pencil; the pencil opens one box with Save and Cancel under the label */
.cf-drive { display: inline-flex; align-items: center; gap: 2px; min-width: 0; } .cf-drive .icon { width: 26px; height: 26px; flex: none; } .cf-drive .icon svg.i { width: 14px; height: 14px; }
.ro .kv.cf-ed { flex-wrap: wrap; row-gap: 6px; padding-bottom: 8px; }
.cf-edit { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.cf-edit .input { flex: 1 1 100%; }
.cf-edit p.ro-bad { flex: 1 1 100%; align-items: flex-start; margin: 0; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; } .cf-edit p.ro-bad[hidden] { display: none; }
.cf-set { display: block; margin: -4px 0 6px; text-align: right; font-size: var(--fs-caption); color: var(--text3); }
/* the Website Creation Form's card: the pages as chips beside their name, then every answer under its section */
.cf-list { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: var(--fs-small); }
.cf-list:first-child { border-top: 0; padding-top: 0; }
.cf-list > span:first-child { color: var(--text2); padding-top: 3px; } .cf-list small { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--text3); margin-left: 4px; }
.cf-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; } .cf-chips .ro-town { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-list + .cf-more, .ro-two + .cf-more { margin-top: 6px; }
.cf-all { border-top: 1px solid var(--line); padding-bottom: 4px; } .cf-all .cf-nh { margin-top: 12px; font-weight: 600; color: var(--head); }
.ro .cf-all .kv { align-items: flex-start; } .ro .cf-all .kv > span:first-child { flex: 0 1 46%; } .ro .cf-all .kv b { flex: 1; min-width: 0; white-space: pre-wrap; }
.ro-cd .ro-off .btn { margin-top: 8px; }
.cf-ein { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
/* the Ads answers: two boxes under the target area in the Upsell sheet, and two rows of chips on the Google Ads tab */
.cf-ads { display: grid; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.cf-ads .fah .cf-more { margin: 0; padding-right: 0; }  /* the box starts as its one line: what is answered, and Show */
.cf-ads .of-ta { min-height: 60px; } .cf-ads .cf-arow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.ro .farea:has(.cf-ads) { max-height: 52vh; overflow-y: auto; overscroll-behavior: contain; }
.cf-akv { margin-top: 8px; border-top: 1px solid var(--line); } .ro .cf-akv .kv { align-items: flex-start; } .ro .cf-akv .kv > span:first-child { padding-top: 4px; } .cf-akv .cf-chips { justify-content: flex-end; }
@media (max-width: 760px) {
  .cf-list { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .ro .cf-all .kv, .ro .cf-akv .kv { flex-wrap: wrap; } .ro .cf-all .kv > span:first-child { flex: 1 1 100%; } .ro .cf-all .kv b { text-align: left; }
  .cf-akv .cf-chips { justify-content: flex-start; flex: 1 1 100%; }
  .cf-edit .input { height: 40px; } .ro .farea:has(.cf-ads) { max-height: 46vh; }
}
@media (pointer: coarse) { .cf-more { min-height: 40px; } }  /* the drawer is outside .main, so the shared 40 px tap rule misses it */
@media (prefers-reduced-motion: reduce) { .cf-more svg.i { transition: none; } }

/* static/pages/clientreport.css */
/* Client report (pages/clientreport.js): the client list; the team's strip (the email, the dashboard link); and the
   report as a sheet of paper on both themes in the agency site's type: Poppins headlines in navy, red as the one
   accent, Poppins 800 alone (the one weight shipped). The sheet runs the work area's width and prints alone; the
   team's note above it never prints. */
@font-face { font-family: "Poppins"; src: url(/static/vendor/poppins-800.woff2?v=60bf0aba6526) format("woff2"); font-weight: 600 800; font-display: swap; }
.cr-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.cr-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); text-decoration: none; transition: background var(--t-fast), border-color var(--t-fast); }
.cr-list a:hover { background: var(--hover); border-color: var(--line2); }
.cr-count { font-variant-numeric: tabular-nums; }
.cr-list small { grid-row: 2; color: var(--text3); font-size: 12px; } .cr-list svg.i { grid-row: 1 / 3; grid-column: 2; width: 14px; height: 14px; color: var(--text3); }
.cr-bar { display: flex; gap: 18px; margin: -6px 0 16px; font-size: 13px; }
.cr-bar a { display: inline-flex; align-items: center; gap: 4px; color: var(--text2); text-decoration: none; font-weight: 500; } .cr-bar a:hover { color: var(--text); } .cr-bar svg.i { width: 14px; height: 14px; }
.cr-tools { margin: 0 0 14px; display: grid; gap: 8px; }
/* The team's note: what the sheet leaves out and why, above the sheet, never on it */
.cr-note { margin: 0 0 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); font-size: 13px; color: var(--text2); }
.cr-note > b { display: block; margin-bottom: 4px; color: var(--text); font-weight: 600; }
.cr-note ul { display: grid; gap: 3px; margin: 0; padding-left: 18px; } .cr-note li b { color: var(--text); font-weight: 600; } .cr-note a { color: var(--text); }
.cr-note [title] { text-decoration: underline dotted var(--text3); text-underline-offset: 3px; cursor: help; }
.cr-tool { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); font-size: 13px; color: var(--text2); }
.cr-tool b { color: var(--text); font-weight: 600; min-width: 110px; } .cr-tool .btn { margin-left: auto; } .cr-tool .btn + .btn { margin-left: 0; }
.cr-tool a:not(.btn) { color: var(--text); } .cr-tool .btn svg.i { width: 13px; height: 13px; }

.cr-sheet { --navy: #0e1a38; --ink: #1b2233; --ink2: #3f4860; --ink3: #5f6880; --rule: #e4e7ee; --brand: #e21c2c; --title: "Poppins", var(--sans);
  --now: #2368b8; --was: #78a4ec;  /* the charts' two steps of one blue: now and the period before (report_mail.NOW, WAS) */
  margin: 0; padding: 46px 58px 36px; background: #fff; color: var(--ink); border-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 12px 40px rgba(0,0,0,.18); container-type: inline-size; }
.cr-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 2px solid var(--brand); }
.cr-brand { display: flex; align-items: center; font: 800 16px var(--title); color: var(--navy); } .cr-brand img { margin-right: 9px; } .cr-brand i { font-style: normal; color: var(--brand); }
.cr-top p { margin: 0; text-align: right; color: var(--ink3); font-size: 12.5px; line-height: 1.45; } .cr-top p b { display: block; color: var(--navy); font: 800 13px var(--title); }
.cr-for { margin: 26px 0 4px; font: 800 14px var(--title); color: var(--ink3); }
.cr-sheet h1 { margin: 0 0 10px; max-width: 24ch; font: 800 34px/1.12 var(--title); color: var(--navy); letter-spacing: -.02em; text-wrap: balance; }
.cr-lede { margin: 0 0 20px; max-width: 68ch; font-size: 16.5px; line-height: 1.5; color: var(--ink2); } .cr-lede b { color: var(--navy); }
/* The month at a glance: up to four figures in one band, hairlines between them, each trend in green or red */
.cr-glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; margin: 0 0 24px; background: var(--rule); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; break-inside: avoid; }
.cr-glance div { padding: 14px 18px 15px; background: #fff; }
.cr-glance b { display: block; font: 800 32px/1.08 var(--title); color: var(--navy); letter-spacing: -.02em; font-variant-numeric: tabular-nums; } .cr-glance b small { font-size: 16px; color: var(--ink3); }
.cr-glance span { display: block; margin-top: 3px; color: var(--ink2); font-size: 12.5px; line-height: 1.35; }
.cr-glance em { display: block; margin-top: 5px; font: normal 700 12.5px var(--sans); color: #0f7f4e; } .cr-glance em.cr-down { color: #b4232f; }
.cr-part { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 0 28px; padding: 16px 0 14px; border-top: 1px solid var(--rule); break-inside: avoid; }
.cr-part h2 { margin: 2px 0 0; font: 800 14.5px/1.3 var(--title); color: var(--navy); }
.cr-figs { display: flex; flex-wrap: wrap; gap: 6px 32px; align-items: baseline; } .cr-lsa { margin-top: 10px; }
.cr-fig b { display: block; font: 800 27px/1.1 var(--title); color: var(--navy); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cr-fig b small { font: 800 15px var(--title); color: var(--ink3); }
.cr-fig span { color: var(--ink3); font-size: 12.5px; } .cr-fig em { font-style: normal; font-weight: 700; color: #0f7f4e; } .cr-fig em.cr-down { color: #b4232f; }
.cr-say { margin: 8px 0 0; max-width: 62ch; color: var(--ink2); font-size: 13.5px; } .cr-team { color: var(--ink3); font-size: 12.5px; }
.cr-segs { display: flex; gap: 2px; height: 12px; margin: 10px 0 12px; } .cr-segs i { background: var(--rule); border-radius: 2px; position: relative; overflow: hidden; }
.cr-segs i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w, 100%); background: var(--now); }
/* A chart of bars (crBars): a short label, then the bar and its value beside it; a group's heading above its bars */
.cr-bars { margin: 10px 0 0; max-width: 520px; } .cr-pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; } .cr-pairs .cr-bars { margin-top: 6px; }
@container (min-width: 1000px) { .cr-pairs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cr-bh { margin: 6px 0 4px; font-size: 13px; font-weight: 600; color: var(--navy); } .cr-bh em { font-style: normal; font-weight: 700; color: #0f7f4e; } .cr-bh em.cr-down { color: #b4232f; }
.cr-br { display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: center; gap: 10px; padding: 2px 0; font-size: 12.5px; color: var(--ink3); }
.cr-bt { display: flex; align-items: center; gap: 8px; } .cr-bt b { color: var(--navy); font-weight: 700; font-variant-numeric: tabular-nums; }
.cr-bt i { flex: none; width: calc((100% - 64px) * var(--f, 0)); min-width: 2px; height: 12px; border-radius: 0 3px 3px 0; }
.cr-bt .cr-now { background: var(--now); } .cr-bt .cr-was { background: var(--was); }
.cr-lead { margin: 0 0 4px; }
.cr-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 24px; margin: 0; padding: 0; list-style: none; font-size: 12.5px; }
/* a check: its tick, its name (never narrower than about 16 characters), its detail at the right, wrapping in its own column */
.cr-checks li { display: grid; grid-template-columns: 15px minmax(16ch, 1fr) minmax(0, max-content); gap: 0 8px; align-items: start; padding: 2px 0; }
.cr-checks small { max-width: 26ch; color: var(--ink3); text-align: right; overflow-wrap: anywhere; font-size: 12px; } .cr-checks .cr-tick { margin-top: 1px; }
.cr-tick { width: 15px; height: 15px; flex: none; }
/* NAP consistency: one row a fact, the website's value beside Google's, then whether they are the same */
.cr-nap { margin: 10px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--ink2); }
.cr-nap li { display: grid; grid-template-columns: 62px minmax(0, 1fr) minmax(0, 1fr) 76px; gap: 2px 14px; align-items: start; padding: 6px 0; border-top: 1px solid var(--rule); overflow-wrap: anywhere; }
.cr-nap b { color: var(--navy); font-weight: 600; } .cr-nap small { display: block; color: var(--ink3); font-size: 11.5px; }
.cr-nap em { display: flex; gap: 6px; align-items: center; font-style: normal; color: var(--ink3); font-size: 12.5px; } .cr-nap .cr-diff em { color: var(--ink); font-weight: 600; }
.cr-nap p { grid-column: 2 / -1; margin: 2px 0 0; color: var(--ink2); } .cr-team a { color: inherit; } .cr-nap .cr-lack span { color: var(--ink3); }
.cr-nap .cr-lack em { white-space: nowrap; justify-self: end; }
[data-cr="search"] .cr-bh { margin-top: 16px; }
.cr-kw { width: 100%; margin: 4px 0 2px; border-collapse: collapse; font-size: 13px; color: var(--ink2); font-variant-numeric: tabular-nums; }
.cr-kw th, .cr-kw td { padding: 4px 10px 4px 0; text-align: right; border-bottom: 1px solid #e6e9ef; white-space: nowrap; }
.cr-kw thead th { font-size: 12px; font-weight: 600; color: var(--ink3); } .cr-kw th:first-child { text-align: left; white-space: normal; font-weight: 500; color: var(--ink); }
.cr-kw em, .cr-q em { font-style: normal; font-weight: 700; color: #0f7f4e; } .cr-kw em.cr-down { color: #b4232f; }
.cr-brandw { display: flex; flex: 1 1 100%; align-items: center; gap: 10px; color: var(--text2); } .cr-brandw input { flex: 1; }
.cr-terms input { flex: 1 1 150px; min-width: 0; padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg); color: var(--text); font: inherit; }
.cr-q { margin: 10px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--ink2); } .cr-q li { display: flex; gap: 10px; padding: 2px 0; } .cr-q small { margin-left: auto; color: var(--ink3); font-size: 12.5px; }
/* a Google Ads client's calls (crCalls): one table a list; a phone scrolls a wide one inside its frame */
.cr-ch { margin: 16px 0 0; font: 700 13.5px/1.3 var(--title); color: var(--navy); }
.cr-calls { overflow-x: auto; max-inline-size: 100%; } .cr-calls:focus-visible { outline: 2px solid var(--now); outline-offset: 2px; }
.cr-calls tbody th { text-align: left; font-weight: 500; color: var(--ink); } .cr-calls a { color: var(--now); font-weight: 600; }
.cr-src { margin: 8px 0 0; color: var(--ink3); font-size: 11.5px; }
/* An In-depth SEO client's Google Maps scan (crGrid): each spot a dot at its place with its rank inside, in the email's
   three bands (report_indepth.BANDS), the shop ringed in navy; the square's size comes from clientreportPaint */
.cr-ranks { max-width: 560px; } .cr-ranks td b { color: var(--navy); font-weight: 700; }
/* A narrow column shrinks the cells, and the numbers with them (cqi: the square's own width) */
.cr-grid { display: grid; grid-template-columns: repeat(var(--n, 11), minmax(0, var(--c, 22px))); gap: 2px; margin: 10px 0 6px; container-type: inline-size; }
.cr-grid > i { aspect-ratio: 1; }
.cr-dot { display: grid; place-items: center; margin: 1px; border-radius: 50%; color: #fff; font: normal 700 min(var(--fs, 10px), calc(100cqi / var(--n, 11) * .45))/1 var(--sans); font-variant-numeric: tabular-nums; }
.cr-dot.cr-shop { margin: 0; outline: 2px solid var(--navy); outline-offset: 0; }
.cr-dot.cr-b1, .cr-key .cr-b1::before { background: #0f7f4e; } .cr-dot.cr-b2, .cr-key .cr-b2::before { background: #9a6200; }
.cr-dot.cr-b3, .cr-key .cr-b3::before { background: #b4232f; } .cr-dot.cr-b0, .cr-key .cr-b0::before { background: #9aa1ab; }
.cr-key { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 4px 0 0; color: var(--ink3); font-size: 12px; font-variant-numeric: tabular-nums; }
.cr-key span::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 5px; border-radius: 50%; vertical-align: -1px; }
.cr-q a { color: var(--ink); text-decoration-color: var(--rule); text-underline-offset: 3px; } .cr-q a:hover { text-decoration-color: var(--ink3); }
/* The offer: the services outside the client's plan, the email's P.S. as the sheet's last block */
.cr-offer { margin: 18px 0 0; padding: 14px 18px; max-width: 62ch; border: 1px solid var(--rule); border-radius: 8px; background: #f6f7fa; color: var(--navy); font-size: 14.5px; line-height: 1.5; break-inside: avoid; }
.cr-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 20px; color: var(--ink3); font-size: 12px; }

@media (max-width: 760px) {
  .cr-sheet { padding: 26px 20px; } .cr-part { grid-template-columns: 1fr; gap: 8px; } .cr-checks { grid-template-columns: 1fr; }
  .cr-sheet h1 { font-size: 26px; } .cr-pairs { grid-template-columns: 1fr; } .cr-glance { grid-template-columns: 1fr 1fr; } .cr-glance b { font-size: 26px; }
  .cr-tool .btn { margin-left: 0; }
  .cr-nap li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .cr-nap b, .cr-nap em { grid-row: 1; } .cr-nap em { grid-column: 2; justify-self: end; } .cr-nap p { grid-column: 1 / -1; }
}
/* On paper: the sheet alone, with a part clients do not see yet (cr-ours) and a row not compared gone. Every box
   that holds it lets it run its whole length. */
@media print {
  @page { margin: 12mm; }
  body:has(.cr-sheet) .top, body:has(.cr-sheet) .rail, body:has(.cr-sheet) .side, body:has(.cr-sheet) .phone-tabs, body:has(.cr-sheet) .lost,
  .page:has(.cr-sheet) > :not(.cr-sheet) { display: none !important; }
  html:has(.cr-sheet), body:has(.cr-sheet), body :has(> .cr-sheet), body :has(.cr-sheet) { display: block !important; height: auto !important; min-height: 0 !important; max-width: none !important; overflow: visible !important; padding: 0 !important; margin: 0 !important; background: #fff !important; box-shadow: none !important; }
  .cr-sheet { max-width: none; padding: 0; border-radius: 0; box-shadow: none; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .cr-sheet h1 { margin-top: 16px; font-size: 25px; } .cr-lede { margin-bottom: 10px; font-size: 14px; }
  .cr-part { padding: 9px 0 8px; } .cr-fig b { font-size: 20px; } .cr-say { font-size: 12px; margin-top: 4px; }
  .cr-checks { font-size: 11px; gap: 2px 20px; } .cr-for { margin-top: 14px; } .cr-bars { margin-top: 4px; } .cr-br { padding: 1px 0; } .cr-bt i { height: 9px; } .cr-segs { margin: 7px 0; } .cr-q { margin-top: 5px; font-size: 11.5px; } .cr-src { margin-top: 4px; }
  .cr-nap { margin-top: 5px; font-size: 11.5px; } .cr-nap li { padding: 3px 0; } .cr-nap small { font-size: 10.5px; }
  .cr-glance { margin-bottom: 12px; } .cr-glance div { padding: 9px 12px; } .cr-glance b { font-size: 22px; }
  .cr-grid { margin: 5px 0 3px; } .cr-key { font-size: 10.5px; }
  .cr-ours, .cr-nap .cr-lack { display: none; }
}

/* static/pages/clutchy.css */
/* Clutchy in the app (pages/clutchy.js; Docs/Systems/ClutchyInApp.md, The widget): mock A, the messenger card, in the
   panel's tokens. The button: the logo on a white disc, 56 px, 24 px from the bottom right; charcoal with a down arrow
   while the card is open. The card: 404 px by up to 700 px over the page, above the button. On a phone it takes the
   whole screen and the button stands above the tab bar. Every page keeps 88 px clear at its foot. Each class starts
   with cl-: the bare `cl` is the Google Ads page's client avatar (pages/ads.js). */
.app.cl-on .page { padding-bottom: 88px; }
/* a dialog or a drawer (aria-modal) or the calendar's card stands in front: the button and the card step away
   until it closes, so neither covers its fields. A client's drawer is the client's page (ruling 6): the button stays
   for its request chip, and the drawer keeps room at its foot, so its last line scrolls clear of the button */
:root:has([aria-modal="true"]:not(.ro-drawer), .cal-pop) :is(.cl-btn, .cl-card) { display: none; }
:root:has(.app.cl-on) .ro-drawer { padding-bottom: 88px; }

.cl-btn { position: fixed; right: 24px; bottom: 24px; z-index: 26; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; box-shadow: 0 0 0 1px var(--line), 0 6px 18px rgba(23,25,28,.18);
  transition: background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), scale var(--t-press) var(--ease); }
.cl-btn:hover { box-shadow: 0 0 0 1px var(--line2), 0 8px 22px rgba(23,25,28,.24); }
.cl-btn:active { scale: .96; }
.cl-btn img { width: 36px; height: 36px; grid-area: 1 / 1; }
.cl-dot[hidden] { display: none; }
.cl-btn svg.i { grid-area: 1 / 1; width: 24px; height: 24px; color: #fff; rotate: 90deg; display: none; }
.cl-btn.open { background: var(--rail); box-shadow: 0 6px 18px rgba(23,25,28,.25); }
.cl-btn.open img { display: none; } .cl-btn.open svg.i { display: block; }
:root[data-theme="dark"] .cl-btn { box-shadow: 0 0 0 1px var(--line2), 0 6px 18px rgba(0,0,0,.5); }
:root[data-theme="dark"] .cl-btn.open { background: var(--raise); box-shadow: 0 0 0 1px var(--line2), 0 6px 18px rgba(0,0,0,.5); }

.cl-card { position: fixed; right: 24px; bottom: 92px; z-index: 25; width: 404px; height: min(700px, calc(100dvh - 116px));
  display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; background: var(--raise);
  box-shadow: 0 0 0 1px var(--line), 0 2px 6px rgba(23,25,28,.08), 0 24px 60px rgba(23,25,28,.18); }
:root[data-theme="dark"] .cl-card { box-shadow: 0 0 0 1px var(--line2), var(--shadow); }
.cl-head { display: flex; align-items: center; gap: var(--sp-2); padding: 12px 10px 12px 16px; background: var(--panel); border-bottom: 1px solid var(--line); flex: none; }
.cl-head .icon { width: 32px; height: 32px; } .cl-head .icon svg.i { width: 18px; height: 18px; }
.cl-disc { width: 34px; height: 34px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--line); display: grid; place-items: center; flex: none; }
.cl-name { flex: 1; min-width: 0; display: grid; }
.cl-name b { font: 800 16px/1.2 var(--title); letter-spacing: -.01em; color: var(--head); }
.cl-name span { font-size: var(--fs-caption); color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* The conversation: the person's words in a bordered box at the right, Clutchy's answer as plain text at the left */
.cl-chat { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 18px 8px; display: flex; flex-direction: column; gap: 20px; }
.cl-chat > * { flex: none; }
.cl-chat.first { justify-content: flex-end; }
.cl-me { align-self: flex-end; max-width: 86%; padding: 9px 13px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line2); white-space: pre-wrap; overflow-wrap: anywhere; }
/* An answer: its text in short groups 12 px apart, a list kept close to the line that leads into it, and each card
   where the answer placed it (clAnswer). :where() keeps the reset at the class's weight, so the gaps below win */
.cl-ans { display: grid; gap: 12px; min-width: 0; }
.cl-say { color: var(--text); overflow-wrap: anywhere; line-height: 1.55; }
.cl-say :where(p, ul, ol, h4, pre) { margin: 0; }
.cl-say > * + * { margin-top: 12px; }
.cl-say > p + :is(ul, ol) { margin-top: 4px; }
.cl-say > h4:not(:first-child) { margin-top: 16px; }
.cl-say ul, .cl-say ol { padding-left: 20px; } .cl-say li + li, .cl-say li > :is(ul, ol) { margin-top: 4px; }
.cl-say h4 { font: 800 var(--fs-card) var(--title); }
.cl-say a[href^="#/"] { font-weight: 600; color: var(--head); text-decoration: none; }  /* a page of the app: its name, never a bare "Open" */
.cl-say a[href^="#/"]:hover { text-decoration: underline; text-underline-offset: 3px; }
.cl-say code { font-size: 12.5px; background: var(--chip); padding: 1px 5px; border-radius: 5px; }
.cl-say .tablewrap { overflow-x: auto; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }
.cl-say table { border-collapse: collapse; font-size: var(--fs-small); width: 100%; }
.cl-say th, .cl-say td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.cl-say tr:last-child td { border-bottom: 0; }
/* The working line and a turn's steps row (bot.css, as a session's), at the chat's own inset */
.cl-chat :is(.working, .steps) { padding: 0; font-size: var(--fs-small); }
.cl-err { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--sp-2); font-size: var(--fs-small); color: var(--bad-ink); }
.cl-err > svg.i { flex: none; } .cl-err > span { flex: 1 1 calc(100% - 32px); min-width: 0; }  /* Try again: under the words */
.cl-err .btn { margin-left: 24px; height: var(--ctl-h-sm); }

/* "More below": a pill over the chat's foot while more of it stands under the view (clDown) */
.cl-down-row { position: relative; height: 0; flex: none; z-index: 1; }
.cl-down { position: absolute; left: 50%; bottom: 10px; translate: -50% 0; display: inline-flex; align-items: center; gap: 5px; height: 30px;
  padding: 0 13px 0 9px; border-radius: var(--r-pill); background: var(--raise); color: var(--head); font-weight: 600; font-size: 12.5px; white-space: nowrap;
  box-shadow: 0 0 0 1px var(--line2), 0 4px 14px rgba(23,25,28,.16); transition: box-shadow var(--t-fast) var(--ease); }
.cl-down[hidden] { display: none; }
.cl-down:hover { box-shadow: 0 0 0 1px var(--text3), 0 4px 14px rgba(23,25,28,.2); }
.cl-down svg.i { width: 15px; height: 15px; rotate: 180deg; }
:root[data-theme="dark"] .cl-down { box-shadow: 0 0 0 1px var(--line2), 0 4px 14px rgba(0,0,0,.5); }

/* The first screen */
.cl-hi h3 { margin: 0; font: 800 19px/1.25 var(--title); letter-spacing: -.01em; color: var(--head); text-wrap: balance; }
.cl-hi p { margin: 6px 0 12px; font-size: var(--fs-small); color: var(--text3); }

/* Clutchy's introduction (clIntroPlay): its first line a heading, as the first screen's greeting. While the button
   says hello, the logo's parts stand over its picture and a ring waits behind it; motion.css moves them */
.cl-intro { display: grid; gap: 12px; }
.cl-intro .cl-say > p:first-child { font: 800 17px/1.3 var(--title); letter-spacing: -.01em; color: var(--head); text-wrap: balance; }
.cl-intro .cl-note { margin: 0; font-size: var(--fs-small); color: var(--text3); }
.cl-hello { grid-area: 1 / 1; position: relative; width: 36px; height: 36px; }
.cl-hello svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cl-btn.hello img { visibility: hidden; }
.cl-btn.hello::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 2px var(--red); opacity: 0; pointer-events: none; }

/* The chips: a request first, in charcoal; then the asks */
.cl-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 2px; flex: none; }
.cl-chips.col { flex-direction: column; align-items: flex-start; padding: 0; }
.cl-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; max-width: 100%; padding: 0 12px; border-radius: var(--r-pill); background: var(--raise);
  box-shadow: 0 0 0 1px var(--line2); font-weight: 600; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease); }
.cl-chip:hover { box-shadow: 0 0 0 1px var(--text3); }
.cl-chip.key { background: var(--head); color: var(--bg); box-shadow: none; }
.cl-chip.key:hover { background: var(--text2); }
.cl-chip svg.i { width: 15px; height: 15px; }

.cl-t { flex: 1; min-width: 0; display: grid; }
.cl-t b { font-weight: 700; font-size: 13.5px; } .cl-t span { font-size: var(--fs-caption); color: var(--text3); }

/* The red count: the filed work's questions and results the person has not opened; its line shows on hover only */
.cl-dot { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill);
  background: var(--red); color: #fff; font-weight: 700; font-size: 11.5px; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2px var(--bg); pointer-events: none; }
.cl-btn.open .cl-dot { display: none; }

/* A work card: the task Clutchy filed, who works it, its step now and its steps on a click (mock A). At the chat's
   end it also holds the worker's question with its reply chips, or the result */
.cl-work { border-radius: 12px; background: var(--raise); box-shadow: 0 0 0 1px var(--line2); overflow: hidden; }
.cl-work-h { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.cl-av { width: 26px; height: 26px; border-radius: 8px; background: var(--head); color: var(--bg); display: grid; place-items: center; flex: none; }
.cl-av svg.i { width: 15px; height: 15px; }
.cl-work-h .cl-t span { font-size: 12.5px; color: var(--text2); }
.cl-work-h .cl-t span.cl-now { color: var(--wait-ink); font-weight: 600; }
.cl-work-h .pill { flex: none; }
.cl-work-f { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 7px 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text3); }
.cl-work-f > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-work-f a { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; color: var(--text2); text-decoration: none; }
.cl-work-f a:hover { color: var(--head); text-decoration: underline; text-underline-offset: 3px; }
.cl-work-f a svg.i, .cl-steps summary svg.i { width: 14px; height: 14px; }
.cl-steps { flex-basis: 100%; }
.cl-steps summary { display: inline-flex; align-items: center; gap: 3px; cursor: pointer; font-weight: 600; color: var(--text2); list-style: none; }
.cl-steps summary::-webkit-details-marker { display: none; }
.cl-steps summary svg.i { rotate: 90deg; transition: rotate var(--t-fast) var(--ease); }
.cl-steps[open] summary svg.i { rotate: -90deg; }
.cl-steps ol { margin: 6px 0 2px; padding-left: 18px; display: grid; gap: 3px; color: var(--text2); }
.cl-steps li span { margin-left: 6px; color: var(--faint); font-variant-numeric: tabular-nums; }
.cl-ask { padding: 10px 12px 12px; border-top: 1px solid var(--info-line); background: var(--info-bg); }
.cl-ask p { margin: 0 0 4px; font-size: 13px; } .cl-ask p b { color: var(--wait-ink); }
.cl-ask .cl-say { font-size: 13.5px; margin-bottom: 10px; }
.cl-work.asks { box-shadow: 0 0 0 1px var(--info-line); }
.cl-res { padding: 10px 12px 12px; border-top: 1px solid var(--line); font-size: 13.5px; }
/* Change something: one quiet control under a result, which opens a small field in the card */
div.cl-chg { padding: 0 8px 8px; margin-top: -4px; }
.cl-quiet { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 6px; border: 0; border-radius: var(--r-ctl);
  background: none; color: var(--text3); font-size: 12.5px; font-weight: 500; }
.cl-quiet:hover { background: var(--hover); color: var(--text); }
.cl-quiet svg.i { width: 14px; height: 14px; }
form.cl-chg { display: grid; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
form.cl-chg textarea { display: block; width: 100%; min-height: 56px; max-height: 140px; resize: vertical; padding: 8px 10px;
  border: 1px solid var(--line2); border-radius: var(--r-ctl); background: var(--bg); color: var(--text); font: inherit; font-size: 13.5px; line-height: 20px; }
form.cl-chg textarea:focus { outline: none; border-color: var(--text3); }
form.cl-chg textarea::placeholder { color: var(--faint); }
form.cl-chg .col-row { display: flex; justify-content: flex-end; gap: 6px; }
.cl-chips.col-row { padding: 0; }

/* The composer's mode: an answer to a filed task, or a request for the page's client */
.cl-mode { display: flex; align-items: center; gap: 6px; margin: -2px -4px 8px -6px; padding: 3px 3px 3px 8px; border-radius: 9px;
  background: var(--panel); font-size: 12.5px; color: var(--text2); }
.cl-mode[hidden] { display: none; }
.cl-mode > svg.i { width: 15px; height: 15px; flex: none; }
.cl-mode span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-mode b { color: var(--head); }
.cl-mode .icon { width: 24px; height: 24px; } .cl-mode .icon svg.i { width: 14px; height: 14px; }

/* Past chats */
.cl-past { display: grid; gap: 6px; align-content: start; }
.cl-past h3 { margin: 6px 0 0; font: 800 var(--fs-card) var(--title); color: var(--head); }
.cl-back { justify-self: start; height: var(--ctl-h-sm); margin-left: -8px; }
.cl-note { margin: 0 0 6px; font-size: var(--fs-small); color: var(--text3); }
.cl-row { display: grid; gap: 2px; text-align: left; padding: 9px 12px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); background: var(--raise);
  transition: background var(--t-fast) var(--ease); }
.cl-row:hover { background: var(--hover); }
.cl-row[aria-current] { box-shadow: 0 0 0 1px var(--line2); background: var(--panel); }
.cl-row b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-row span { font-size: var(--fs-caption); color: var(--text3); }

/* The composer: the box grows with the text; Send stands in its bottom row, red while there is text */
.cl-comp { margin: 8px 14px 14px; padding: 10px 10px 8px 14px; border-radius: 14px; background: var(--raise); flex: none;
  box-shadow: 0 0 0 1px var(--line2), 0 1px 2px rgba(23,25,28,.05); transition: box-shadow var(--t-fast) var(--ease); }
.cl-comp:focus-within { box-shadow: var(--ring); }
.cl-comp textarea { display: block; width: 100%; min-height: 22px; max-height: 160px; resize: none; border: 0; padding: 0; background: none; outline: none; line-height: 22px; }
.cl-comp textarea::placeholder { color: var(--faint); }
.cl-comp-r { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.cl-send { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--red); color: #fff; transition: background var(--t-fast) var(--ease); }
.cl-send:hover:not(:disabled) { background: var(--red2); }
.cl-send:disabled { background: var(--line); color: var(--faint); opacity: 1; }
.cl-send svg.i { width: 18px; height: 18px; }

/* A phone: the chat takes the whole screen; the button stands above the tab bar and hides while the chat is open */
@media (max-width: 760px) {
  .app.cl-on .page { padding-bottom: 88px; }
  :root:has(.app.cl-on) .ro-drawer { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }  /* the button stands over the tab bar */
  .cl-btn { right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); }
  .app.cl-open .cl-btn { display: none; }
  .cl-card { inset: 0; width: auto; height: auto; border-radius: 0; z-index: 27; box-shadow: none; }
  .cl-head { padding-top: calc(10px + env(safe-area-inset-top)); }
  .cl-comp { margin-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .cl-comp textarea, form.cl-chg textarea { font-size: 16px; }  /* 16 px: a phone's browser zooms into a smaller field */
}

/* static/pages/csmdocs.css */
/* CSM docs (pages/csmdocs.js): the walkthroughs' list in one card. Only what differs from app.css's foundation. */
[data-page="csmdocs"] .csmd-card { max-width: 820px; }
[data-page="csmdocs"] .csmd-list { list-style: none; margin: 0; padding: 0; }
[data-page="csmdocs"] .csmd-row + .csmd-row { border-top: 1px solid var(--line); }
[data-page="csmdocs"] .csmd-row a { display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-3) var(--sp-2); border-radius: var(--r-ctl); color: var(--text); text-decoration: none; }
[data-page="csmdocs"] .csmd-row a:hover { background: var(--hover); }
[data-page="csmdocs"] .csmd-t { display: flex; align-items: center; gap: var(--sp-2); color: var(--blue); }
[data-page="csmdocs"] .csmd-t .i { flex: none; width: 16px; height: 16px; }
[data-page="csmdocs"] .csmd-l { color: var(--text2); font-size: var(--fs-small); }

/* static/pages/csmpipeline.css */
/* CSM Pipeline (pages/csmpipeline.js): the CSMs' board of calls, Recruitment's board in its four columns (pages/
   recruitment.css), the add form under the head, and a card's drawer on roster.css's .ro-scrim and .ro-drawer */
.csp-add { --pad-y: 16px; --pad-x: 18px; margin-bottom: var(--sp-5); }
.csp-add-g { display: grid; grid-template-columns: minmax(220px, 1.4fr) minmax(160px, 1fr) minmax(260px, 2fr); gap: var(--sp-3) var(--sp-4); align-items: start; }
.csp-add-g textarea { width: 100%; resize: vertical; }
.csp-add-a { display: flex; justify-content: flex-end; gap: var(--sp-2); margin-top: var(--sp-3); }

/* the board: four columns in a laptop's width; a narrower one scrolls sideways */
.csp-board { display: grid; grid-template-columns: repeat(4, minmax(200px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.csp-col { background: var(--side); border-radius: var(--r-card); padding: 8px; min-height: 220px; display: flex; flex-direction: column; gap: 8px; }
.csp-col-h { display: flex; align-items: center; gap: 8px; padding: 4px 4px 2px; }
.csp-col-h h2 { margin: 0; font: 600 var(--fs-small) var(--title); color: var(--text); }
.csp-col-h b { margin-left: auto; font: 600 var(--fs-caption) var(--mono); color: var(--text3); }
.csp-bolt { display: flex; gap: 6px; margin: 0 4px 2px; font-size: var(--fs-caption); color: var(--text2); line-height: 1.35; }
.csp-bolt svg.i { width: 14px; height: 14px; flex: none; margin-top: 1px; color: var(--warn); }
.csp-drop { margin: 0; border: 1px dashed var(--line2); border-radius: 10px; padding: 18px 8px; text-align: center; color: var(--text3); font-size: var(--fs-small); }
.csp-card { background: var(--raise); box-shadow: var(--card); border-radius: 12px; padding: 11px 12px; display: flex; flex-direction: column; gap: 8px; cursor: grab; outline: 0; transition: background var(--t-fast); }
.csp-card:hover { background: var(--hover); }
.csp-card:focus-visible { box-shadow: var(--card), inset 0 0 0 2px var(--blue); }
.csp-card-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.csp-name { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }  /* whole: it wraps */
.csp-kind { font-size: var(--fs-caption); color: var(--text2); }
.csp-note { margin: 0; font-size: var(--fs-small); color: var(--text2); line-height: 1.4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }  /* two lines, then cut */
.csp-card-m { display: flex; flex-wrap: wrap; gap: 6px; }
.csp-card-m .tag { display: inline-flex; align-items: center; gap: 4px; }
.csp-card-m svg.i { width: 12px; height: 12px; flex: none; }
.csp-day.today { background: var(--info-bg); border-color: var(--info-line); color: var(--wait-ink); }
.csp-day.late { background: var(--note-bg); border-color: var(--note-line); color: var(--warn-ink); }
.csp-foot { margin-top: var(--sp-3); font-size: var(--fs-small); }

/* a card's pick: a dot at its top right, shown under the pointer, on focus, and on every card while one is picked */
.csp-card { position: relative; }
.csp-card-t { padding-right: 24px; }
.csp-pick { position: absolute; top: 9px; right: 9px; width: 20px; height: 20px; padding: 0; border-radius: 50%; border: 1.5px solid var(--line2); background: var(--raise); color: transparent; display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity var(--t-fast), background var(--t-fast), border-color var(--t-fast); }
.csp-pick svg.i { width: 12px; height: 12px; }
.csp-card:is(:hover, :focus-within) .csp-pick, .csp-board.picking .csp-pick { opacity: 1; }
.csp-pick:hover { border-color: var(--blue); }
.csp-pick:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.csp-card.picked { box-shadow: var(--card), inset 0 0 0 2px var(--blue); }
.csp-card.picked .csp-pick { background: var(--blue); border-color: var(--blue); color: #fff; }
.csp-pickcol { margin-left: auto; height: 22px; padding: 0 7px; font-size: var(--fs-caption); }
.csp-pickcol + b { margin-left: 4px; }
@media (hover: none) { .csp-pick { opacity: 1; } }

/* the picked cards' bar over the board */
.csp-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; padding: 8px 10px; border-radius: var(--r-card); background: var(--raise); box-shadow: var(--card); }
.csp-bulk > b { font-size: var(--fs-small); color: var(--text); margin-right: 4px; }
.csp-bulk select.input { width: auto; height: var(--ctl-h-sm); font-size: var(--fs-small); }
.csp-bulk [data-csp-bulk-clear] { margin-left: auto; }

/* a tag: its hue's fill and ink, led by a dot (roster.css .tg) */
.csp-tg { --tc: var(--text3); --ti: var(--tc); display: inline-flex; align-items: center; gap: 5px; max-width: 100%; font-size: var(--fs-caption); font-weight: 600; line-height: 20px; padding: 0 8px; border-radius: var(--r-pill); color: var(--ti); background: color-mix(in srgb, var(--tc) var(--chip-mix), transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.csp-tg::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.h-green.csp-tg { --tc: var(--ok); --ti: var(--ok-ink); } .h-yellow.csp-tg { --tc: var(--warn); --ti: var(--warn-ink); } .h-red.csp-tg { --tc: var(--bad); --ti: var(--bad-ink); } .h-blue.csp-tg { --tc: var(--wait); --ti: var(--wait-ink); }
.h-violet.csp-tg { --tc: var(--violet); } .h-orange.csp-tg { --tc: var(--orange); } .h-magenta.csp-tg { --tc: var(--magenta); } .h-indigo.csp-tg { --tc: var(--indigo); }
.csp-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: -2px; }
.csp-tagf { display: flex; align-items: center; gap: 6px; }

/* the drawer's Move to and Tags */
.csp-dsec { display: flex; flex-direction: column; gap: 8px; margin-bottom: var(--sp-4); }
.csp-moves, .csp-tagpick { display: flex; flex-wrap: wrap; gap: 6px; }
.csp-moves .btn[aria-pressed="true"] { opacity: 1; background: var(--chip); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text2); font-weight: 600; }
.csp-tagpick .csp-tg { border: 1px dashed color-mix(in srgb, var(--tc) 50%, transparent); cursor: pointer; line-height: 24px; padding: 0 10px; font-family: inherit; }
.csp-tagpick .csp-tg.on { border-style: solid; background: color-mix(in srgb, var(--tc) 18%, transparent); }
.csp-tagpick .csp-tg.on::before { content: none; }
.csp-tagpick .csp-tg svg.i { width: 12px; height: 12px; }
.csp-tagpick .csp-tg:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.csp-newtag { display: flex; gap: 6px; align-items: center; }
.csp-newtag .input { flex: 1; min-width: 180px; height: var(--ctl-h-sm); font-size: var(--fs-small); }
@media (prefers-reduced-motion: reduce) { .csp-pick { transition: none; } }

/* a card's drawer */
.csp-drawer { width: min(560px, 100%); }
.csp-dh { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: var(--sp-4); }
.csp-dh h2 { margin: 0; font: 800 22px/1.2 var(--title); letter-spacing: -.02em; color: var(--head); }
.csp-dh p { margin: 0; display: flex; align-items: center; gap: 7px; font-size: var(--fs-small); color: var(--text2); }
.csp-dh .btn { margin-top: 6px; }
.csp-moved svg.i { width: 14px; height: 14px; color: var(--warn); }
/* the notes' log: a new note on top, then each note with its writer and time, newest first */
.csp-noteform textarea { width: 100%; resize: vertical; }
.csp-noteform .csp-add-a { margin-top: var(--sp-2); }
.csp-log { list-style: none; margin: var(--sp-2) 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.csp-log-i { padding: 10px 12px; border-radius: 8px; background: var(--chip); border: 1px solid var(--line); }
.csp-log-m { display: flex; align-items: center; gap: 8px; min-height: 24px; font-size: var(--fs-small); color: var(--text2); }
.csp-log-m b { color: var(--text); font-weight: 600; }
.csp-log-m .btn { margin-left: auto; }
.csp-log-i p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; color: var(--text); }
.csp-dfoot { display: flex; padding-top: var(--sp-3); border-top: 1px solid var(--line); }

@media (max-width: 1100px) { .csp-add-g { grid-template-columns: 1fr 1fr; } .csp-add-n { grid-column: 1 / -1; } }
@media (max-width: 760px) {
  .csp-board { grid-template-columns: repeat(4, 82%); scroll-snap-type: x mandatory; } .csp-col { scroll-snap-align: start; }
  .csp-add-g { grid-template-columns: 1fr; }
}

/* the Archive view: the archived cards in a grid of the board's card width */
.csp-arch { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; align-items: start; }
.csp-arch .csp-card { cursor: pointer; }
.csp-arch.picking .csp-pick { opacity: 1; }
.csp-arch-l { margin: 0 0 10px; }

/* static/pages/csmreviews.css */
/* Client reviews (pages/csmreviews.js): the month's step, the intake form, a tile per CSM with its bar against the
   month's most, the month's list. Only what differs from app.css's foundation; every size and colour is a token. */
[data-page="csmreviews"] .crv-month { display: flex; align-items: center; gap: var(--sp-1); margin-left: auto; }
[data-page="csmreviews"] .crv-month b { min-width: 9.5em; text-align: center; font-size: var(--fs-body); color: var(--head); }
[data-page="csmreviews"] .crv-prev .i { transform: scaleX(-1); }
[data-page="csmreviews"] .crv-add { --pad-y: 16px; --pad-x: 18px; margin-bottom: var(--sp-5); }
[data-page="csmreviews"] .crv-add-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3) var(--sp-4); align-items: start; }
[data-page="csmreviews"] .crv-call { grid-column: 1 / -1; display: grid; gap: var(--sp-2); }
[data-page="csmreviews"] .crv-add-a { display: flex; justify-content: flex-end; gap: var(--sp-2); margin-top: var(--sp-3); }
[data-page="csmreviews"] .crv-tiles { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-bottom: var(--sp-4); }
[data-page="csmreviews"] .crv-csm .tile-l { display: flex; align-items: center; gap: var(--sp-2); }
[data-page="csmreviews"] .crv-me { border-color: var(--blue); }
/* the bar against the month's most reviews (progress guide: custom fill, the track on the element) */
[data-page="csmreviews"] .crv-bar { appearance: none; border: 0 solid; overflow: clip; display: block; inline-size: 100%; block-size: 6px;
  margin: var(--sp-1) 0 var(--sp-2); border-radius: var(--r-pill); background: var(--line); }
[data-page="csmreviews"] .crv-bar::-webkit-progress-bar { background: transparent; }
[data-page="csmreviews"] .crv-bar::-webkit-progress-value { background: var(--ok); border-radius: var(--r-pill); }
[data-page="csmreviews"] .crv-bar::-moz-progress-bar { background: var(--ok); border-radius: var(--r-pill); }
[data-page="csmreviews"] .crv-list td:last-child { text-align: right; }
[data-page="csmreviews"] .crv-foot { margin: var(--sp-4) 0 0; color: var(--text3); font-size: var(--fs-small); }
@media (max-width: 1100px) { [data-page="csmreviews"] .crv-add-g { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) {
  [data-page="csmreviews"] .crv-add-g { grid-template-columns: 1fr; }
  [data-page="csmreviews"] .crv-month { margin-left: 0; width: 100%; justify-content: space-between; }
  [data-page="csmreviews"] .crv-month .btn.sq { width: 44px; height: 44px; }
}

/* static/pages/csmupsells.css */
/* Client upsells follows Client reviews with a responsive intake, CSM tiles and monthly sale list. */
[data-page="csmupsells"] .cup-month { display: flex; align-items: center; gap: var(--sp-1); margin-inline-start: auto; }
[data-page="csmupsells"] .cup-month b { min-width: 9.5em; text-align: center; font-size: var(--fs-body); color: var(--head); }
[data-page="csmupsells"] .cup-prev .i { transform: scaleX(-1); }
[data-page="csmupsells"] .cup-form { --pad-y: 16px; --pad-x: 18px; margin-bottom: var(--sp-5); }
[data-page="csmupsells"] .cup-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3) var(--sp-4); align-items: start; }
[data-page="csmupsells"] .cup-note { grid-column: 1 / -1; }
[data-page="csmupsells"] #cup-other-field[hidden] { display: none; }
[data-page="csmupsells"] .cup-payment { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
[data-page="csmupsells"] .cup-actions { display: flex; justify-content: flex-end; gap: var(--sp-2); margin-top: var(--sp-3); }
[data-page="csmupsells"] .cup-tiles { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-bottom: var(--sp-4); }
[data-page="csmupsells"] .cup-csm .tile-l { display: flex; align-items: center; gap: var(--sp-2); }
[data-page="csmupsells"] .cup-me { border-color: var(--blue); }
[data-page="csmupsells"] .cup-cash, [data-page="csmupsells"] .tile-d { font-variant-numeric: tabular-nums; }
[data-page="csmupsells"] .cup-cash { white-space: nowrap; }
[data-page="csmupsells"] .cup-list td:last-child { text-align: right; }
@media (max-width: 1100px) { [data-page="csmupsells"] .cup-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  [data-page="csmupsells"] .cup-fields { grid-template-columns: 1fr; }
  [data-page="csmupsells"] .cup-month { margin-inline-start: 0; width: 100%; justify-content: space-between; }
  [data-page="csmupsells"] .cup-month .btn.sq { width: 44px; height: 44px; }
}
