/* The console's existing room styles, kept for the room modules that draw with the ledger's classes.
   Tokens come from theme.css (loaded after this file); the shell lives in today.css. */
*{box-sizing:border-box;margin:0;padding:0}
html{background:var(--bg);color:var(--ink)}
body{font-family:var(--body);font-size:var(--t-row);font-weight:var(--w-row);line-height:1.5;-webkit-font-smoothing:antialiased;overflow-x:hidden;isolation:isolate;min-height:100svh}
a{color:inherit;text-decoration:none}
:where(b,strong){font-weight:var(--w-strong)}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;text-align:left}
ol,ul{list-style:none}
[hidden]{display:none!important}
.mono{font-family:var(--mono);font-size:var(--t-meta);font-weight:var(--w-row);letter-spacing:.02em}
:where(a,button,[tabindex]):focus-visible{outline:2px solid var(--amber);outline-offset:2px}
[data-theme=light] .eyebrow{color:var(--ink)}
[data-theme=light] :where(a,button,[tabindex]):focus-visible{outline-color:var(--ink)}
/* the site's label and its button. Amber is only where Chris acts or something is new, so the amber
   button sits flat in both registers (no glow under it) and a column title is a grey label, never amber */
.eyebrow{font-family:var(--mono);font-size:var(--t-meta);font-weight:var(--w-row);letter-spacing:.04em;text-transform:uppercase;color:var(--amber);line-height:1.6}
.eyebrow::before{content:"";display:inline-block;width:28px;height:1px;background:var(--amber);opacity:.7;vertical-align:middle;margin-right:12px}
.label{font-family:var(--body);font-size:var(--t-label);font-weight:var(--w-mid);color:var(--muted);line-height:1.6}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:44px;background:var(--amber);color:var(--amber-ink);font-weight:var(--w-mid);font-size:var(--t-label);padding:12px 24px;border-radius:var(--r-ctl);border:0;cursor:pointer;font-family:var(--body);transition:transform .2s}
.btn:hover{transform:translateY(-1px)}
.btn:disabled{cursor:default;transform:none}
@keyframes svin{from{opacity:0}to{opacity:1}}
.fade{animation:svin .45s ease both}
@media (prefers-reduced-motion:reduce){.fade{animation:none}.btn{transition:none}.btn:hover{transform:none}}

/* THE WALL: the book's cover. The mark, the name, Google's own button (Google Identity Services draws it, in its dark
   theme; nothing here restyles it), one mono line; centred on the window's own ground. */
.wall{min-height:100svh;display:grid;place-items:center;padding:64px var(--gutter)}
.door{display:flex;flex-direction:column;align-items:center;text-align:center}
.door .mk{display:block;width:55px;height:40px}
.door h1{font-family:var(--display);font-weight:var(--w-strong);font-size:var(--t-room);letter-spacing:-.03em;line-height:1.02;text-wrap:balance;margin-top:32px;max-width:14ch}
.door .gsi{margin-top:48px;min-height:40px;display:flex;align-items:center;justify-content:center}
/* the foot line is quiet mono until something goes wrong; a refusal or a failure is one stop up (t-small, ink), and the
   slot is sized for that stop so the door never moves when it speaks */
.door .foot{margin-top:24px;color:var(--dim);min-height:calc(var(--t-label) * 1.5)}
.door .foot.no{font-family:var(--body);font-size:var(--t-label);font-weight:var(--w-mid);letter-spacing:0;color:var(--ink);text-wrap:balance}


/* THE LEDGER: three columns (time | their words | the page's read), one grid for every line of the book. The read
   column never drops under 400px (the longest read, "Past clients who never come back → AI Win-back Agent", is 52 mono
   characters, ~387px), so at 1024 it takes the room from their words, which already cut; from ~1250 up .68fr wins.
   The column gap steps 24 / 32 / 40 / 48 at 1024 / 1440 / 1600, the scale value nearest the old 3vw there; it
   stays on .ledger (a .sum outside a ledger, the Queue's, has no column gap and keeps none). The time column is 108px
: "checked Oct 10", the widest time a room writes there, is 104px on one line; below 1024 it is not drawn */
.ledger{--cols:108px minmax(0,1fr) minmax(400px,.68fr);--gap:24px;padding:20px var(--gutter) 64px}
.ledger .room-title{font:var(--w-strong) var(--t-room)/1.2 var(--display);letter-spacing:-.02em;margin:12px 0 20px}
@media (min-width:1024px){.ledger{--gap:32px}}
@media (min-width:1440px){.ledger{--gap:40px}}
@media (min-width:1600px){.ledger{--gap:48px}}
/* In Leads, Products and Money (.near) the name and how it stands read as one line at a desk. The
   words column is a share of the row (30%, never under 360px), not the room left over, so the read starts a short
   step after the name: the widest gap between a name's end and its read is that share plus the column gap, under a
   third of the row at 1440 and 2000 */
@media (min-width:1024px){.near{--cols:108px minmax(0,max(30%,360px)) minmax(0,1fr)}}
.head,.row,.more{display:grid;grid-template-columns:var(--cols);column-gap:var(--gap)}
.head{grid-template-areas:". l r";padding:8px 0 16px;border-bottom:1px solid var(--line2)}
.head .l{grid-area:l}.head .r{grid-area:r}
.day{display:block;padding:32px 0 0}
.lead{margin:0 calc(-1 * var(--gutter));padding:0 var(--gutter);border-bottom:1px solid var(--line)}
.lead:hover{background:var(--bg2)}
/* The opened line's top rule is a 1 px shadow laid over the rule above it (it was a border pulled up by a -1 px
   margin, off the I-2 scale; the same pixels) */
.lead.open{background:var(--bg2);border-bottom-color:var(--line2);box-shadow:0 -1px 0 var(--line2)}
.row{width:100%;grid-template-areas:"t who r1" ". w r2";align-items:baseline;row-gap:4px;padding:20px 0}
.lead.open .row{padding-bottom:12px}
.t{grid-area:t;color:var(--dim)}
.who{grid-area:who;display:flex;flex-wrap:wrap;align-items:baseline;gap:0 16px;min-width:0}
.n{font-family:var(--display);font-weight:var(--w-strong);font-size:var(--t-room);letter-spacing:-.02em;line-height:1.2;color:var(--ink);flex:none;max-width:100%;overflow-wrap:anywhere}
/* Nothing on a line is cut. A name, the grey word beside it and their words wrap whole (at a space, or at the
   dot, slash or @ its writer marked); the grey word drops under the name when the two cannot share a line */
.b{color:var(--muted);min-width:0;overflow-wrap:anywhere}
.w{grid-area:w;font-size:var(--t-row);font-weight:var(--w-row);line-height:1.45;color:var(--ink);min-width:0;text-wrap:pretty}
.old .n,.old .w{color:var(--muted)}
.lead.open .n,.lead.open .w{color:var(--ink)}
.lead.open .w{white-space:normal;text-wrap:pretty}
/* the read's two parts sit 8px apart in every row (one mono space, 1ch = 7.2px, put on the 4px grid), and the
   problem → role line is never cut: one that cannot sit beside its role puts the role on the next line, as the open
   lead does. A booked call is the read's third line, under the role: "→ call booked <when>" in ink, never cut */
.r1,.r2,.r3{display:flex;gap:8px;min-width:0;color:var(--dim)}
.r1{grid-area:r1;flex-wrap:wrap;row-gap:2px}
.r2{grid-area:r2;flex-wrap:wrap;row-gap:2px}
.r3{display:none;grid-area:r}
.r1 .p,.r2 .p,.r3 .p{min-width:0}
.r1 .a,.r2 .a,.r3 .a{min-width:0}
.r1 .c,.r2 .c{flex-basis:100%}
.r1 .c{display:flex;flex-wrap:wrap;gap:2px 8px;margin-top:8px}
/* the open lead says the booking once, whole, in its own line below */
.lead.open .r2 .c{display:none}
.a.known{color:var(--ink)}
/* the opened lead's follow-up form (f) sits in the two voices' width above Reply by email (it had no place
   and fell into the time column) */
.more{grid-template-areas:". f f" ". act sent";align-items:center;padding:0 0 24px}
.act{grid-area:act;display:flex;align-items:center;gap:8px 20px;flex-wrap:wrap}
.act .mono{color:var(--dim)}
.sent{grid-area:sent;color:var(--dim)}
/* The business's site, on its own line over "Sent …, from the … page": the word Site in the line's grey, the
   host in ink so the business reads at a glance; a lead with no site has no such line */
.sent .site{display:block}
.sent .site .h{color:var(--ink)}
/* an open lead who booked a call: their booking words under their own, the call whole beside them */
.more.booked{grid-template-areas:". said call" ". f f" ". act sent";row-gap:16px;align-items:start}
.more.booked .act,.more.booked .sent{align-self:center}
.said{grid-area:said;min-width:0;font-size:var(--t-row);font-weight:var(--w-row);line-height:1.45;text-wrap:pretty}
.said .label{display:block;margin-bottom:2px}
.call{grid-area:call;color:var(--dim)}
/* What happened at a past
   booked call, on its own line, under the read: Showed | No-show as the form's text buttons (.seg, the chosen one ink
   with the tab's rule), and once marked, its proof link and when it was marked in grey mono beside them. A tap on a new
   answer opens the proof field under it (the line lifts as an opened lead does); Save is the one amber. A past call not
   marked yet carries the alert line's dot in the gutter, level with its first line (Deals' grammar). In the read column
   at a desk, the whole line on a phone. Chris's session only; a future or cancelled call has none. No new colour, size,
   font or radius */
.oc{display:grid;grid-template-columns:var(--cols);column-gap:var(--gap);padding:0 0 12px;margin-top:-4px}
.oc > *{grid-column:3;min-width:0}
.ocl{display:flex;flex-wrap:wrap;align-items:center;gap:0 24px;min-width:0}
.oc .seg{gap:0 24px}
.ocr{display:flex;flex-wrap:wrap;align-items:center;gap:0 16px;min-width:0;color:var(--dim)}
.ocr .lk{display:inline-flex;align-items:center;min-height:44px;min-width:44px;color:var(--dim);text-decoration:underline;text-underline-offset:4px}
.ocr .lk:hover{color:var(--ink)}
.ocf{display:grid;gap:12px;max-width:480px;padding:8px 0 4px}
.ocf .go{display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px}
.ocf .go p{color:var(--dim)}
.ocn{padding:4px 0 0;color:var(--dim)}
.ocn b{font-weight:var(--w-row);color:var(--ink)}
.lead.oc-open{background:var(--bg2);border-bottom-color:var(--line2);box-shadow:0 -1px 0 var(--line2)}
.lead.ocp{position:relative}
.lead.ocp > .al-dot{position:absolute;left:calc(var(--gutter) - 12px);top:19px}

/* ONE LINE AN ITEM: every book's item
   (Leads, Clients, Products, Assets, Money's lines) is Watch's tight line on first look: when in the time column, who
   at the body stop (the name in ink, its grey word beside it), and the one-line read in mono on the right. Their words
   and the rest of the read are one tap away: the opened line adds them under it, in the two voices. Below 1024 a line
   is the name with its time at the right, then the read whole under it; nothing on it is cut, nothing scrolls */
.one .row{grid-template-areas:"t who r1";align-content:center;min-height:44px;padding:8px 0}
.one .n{font-family:var(--body);font-weight:var(--w-mid);font-size:var(--t-label);letter-spacing:0;line-height:1.5}
.one .w,.one .r2{display:none}
.one.open .row{grid-template-areas:"t who r1" ". w r2";padding-bottom:16px}
.one.open .w{display:block;color:var(--ink)}
.one.open .r2{display:flex}
.one .r1{flex-wrap:wrap;gap:0 8px}
/* the state that needs him on a line (a website down) reads in ink at the name's own weight, never red */
.one .r1 .hot{font-family:var(--body);font-size:var(--t-label);font-weight:var(--w-mid);letter-spacing:0;color:var(--ink)}
/* the room's answer line (Watch's count line is the model, .wsum below): the answer in t-lede, grey mono beside it,
   and at its right the one quiet Filter control; tapped, the filters open under the line, before the list */
.ans{display:flex;flex-wrap:wrap;align-items:center;gap:4px 20px;min-height:44px;margin:0 calc(-1 * var(--gutter));padding:8px var(--gutter);border-bottom:1px solid var(--line2)}
.ans .ws{display:flex;align-items:center;gap:12px;font-size:var(--t-row);font-weight:var(--w-row);line-height:1.45;color:var(--ink);text-wrap:pretty}
.ans .wr{display:flex;flex-wrap:wrap;gap:0 20px;margin-left:auto;color:var(--dim)}
.ans .wr b{font-weight:var(--w-row);color:var(--ink)}
.ans .ws + .ftog{margin-left:auto}
/* Money's answer is its three numbers: they take the line, and the month's read and Filter sit under them */
.mans .money-overview{flex:1 1 100%;padding:8px 0 4px}
.mans .wr{margin-left:0;align-items:center}
.mans .ftog{margin-left:auto}
/* the month for the accountant: one quiet link at the end of the month's grey read, a 44px target, underlined
   so it reads as a link beside the read's words (its grey is theirs) */
.mans .dl{display:inline-flex;align-items:center;min-height:44px;color:var(--muted);text-decoration:underline;text-underline-offset:4px}
.mans .dl:hover{color:var(--ink)}
/* below 1024 the answer keeps its line with Filter at its right, and the grey read goes under them, as Watch's does */
@media (max-width:1023px){
  .ans .ws{flex:1 1 0;min-width:0}
  .ans .ftog{order:2;margin-left:0}
  .ans .wr{order:3;flex-basis:100%;margin-left:0}
  .ans .filt{order:4}
  .mans .wr{order:1;flex:1 1 0;min-width:0}
}
/* the column titles sit directly above their list, grey */
.ans + .head{padding-top:16px}

/* THE ROOMS' BOOKS (public/rooms/<room>.js, mounted by render()'s seam; DESIGN.md "The rooms"). A room draws with the
   ledger's own classes; these are the few a book adds: the month picker and the quiet text button (both read like the
   tab row), the block's sum (the figure in the display face, and beside it in mono where it was read), a figure in
   mono set in a fixed column so the decimals line up down the page, the lines said above a book when a source did
   not answer, the open line's facts and its sub-lines in the two voices, and the one form. No new colour, size or
   font. */
.pick{display:flex;flex-wrap:wrap;gap:0 var(--tabs);padding:0 0 16px}
.pick button,.quiet{position:relative;min-height:44px;min-width:44px;color:var(--muted)}
.pick button:hover,.quiet:hover{color:var(--ink)}
.pick button[aria-pressed=true]{color:var(--ink)}
.pick button[aria-pressed=true]::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--ink)}
.sum{display:grid;grid-template-columns:var(--cols);column-gap:var(--gap);grid-template-areas:"k fig read";align-items:end;margin:0 calc(-1 * var(--gutter));padding:12px var(--gutter) 24px;border-bottom:1px solid var(--line2)}
/* a room with two sums (Money: In, Out) names each in the time column, level with the top of its figure (the figure's
   half-leading at t-dis, about 8px from 1024 up, set on the grid) */
.sum .k{grid-area:k;align-self:start;padding-top:8px}
.fig{grid-area:fig;min-width:0}
.fig strong{display:block;font-family:var(--display);font-weight:var(--w-strong);font-size:var(--t-room);letter-spacing:-.02em;line-height:1.2;font-variant-numeric:tabular-nums;text-wrap:balance}
.fig span{display:block;margin-top:8px;color:var(--muted)}
.read{grid-area:read;display:grid;gap:2px;min-width:0;color:var(--dim)}
.read .src{margin-top:8px}
.read b,.say b,.facts b{font-weight:var(--w-row);color:var(--ink)}
.amt{display:flex;align-items:baseline;gap:8px;min-width:0}
.fg{font-family:var(--mono);font-size:var(--t-row);font-weight:var(--w-row);letter-spacing:0;color:var(--ink);min-width:11ch;text-align:right;white-space:nowrap}
.fg.off{color:var(--dim)}
.book .w{color:var(--muted)}
.book .lead.open .w{color:var(--ink)}
.book .d{display:none}
/* an address beside its name stays whole: one that cannot sit beside the name drops, whole, to the row under it */
.who.whole{flex-wrap:wrap;row-gap:0}
.who.whole .b{flex:none;max-width:100%}
@media (min-width:1024px){.book:not(.tally) .r1{grid-row:1 / span 2}}
/* a line that only says something (a source that did not answer, a renewal coming up) is a row, not a button */
.still:hover{background:none}
.book .still .w{color:var(--ink)}
/* A product's month is one more line under its name on first look, an opened line's sub-line (.ln) on the
   row's own columns, both voices in grey mono under the name's: what it used in the words column, what it cost in the
   read column, level with it. Below 1024 it is the line under the read: what it used, then its cost at the right end,
   sharing the line when they fit; each figure wraps whole */
[data-products] .one .row{grid-template-areas:"t who r1" ". u u"}
[data-products] .one.open .row{grid-template-areas:"t who r1" ". u u" ". w r2"}
[data-products] .one .r1{grid-row:r1}
[data-products] .use{grid-area:u;padding:0}
/* Opened details wrap at every width, including long cost-coverage lists. */
[data-products] .sub .ln .r > *{white-space:normal}
[data-products] .sub .ln .l,[data-products] .sub .ln .r{overflow-wrap:anywhere}
@media (max-width:1023px){
  [data-products] .one .row{grid-template-areas:"who t" "r1 r1" "u u"}
  [data-products] .one.open .row{grid-template-areas:"who t" "r1 r1" "u u" "w w" "r2 r2"}
  [data-products] .use{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 12px}
  [data-products] .use .l{display:contents}
  [data-products] .use .r{margin-left:auto}
}
.say{display:grid;grid-template-columns:var(--cols);column-gap:var(--gap);padding:16px 0 0}
.say li{grid-column:2 / -1;display:flex;flex-wrap:wrap;gap:0 8px;min-width:0;color:var(--dim);line-height:1.9}
.facts{grid-column:2 / -1;display:flex;flex-wrap:wrap;gap:2px 20px;min-width:0;color:var(--dim);line-height:1.9}
.under{display:grid;grid-template-columns:var(--cols);column-gap:var(--gap);padding:12px 0 0}
.under > *{grid-column:2;justify-self:start}
/* the one form holds the words column's measure at every width: it ends where the left voice ends */
.form,.keep{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:end}
.under > .form{justify-self:stretch;padding:8px 0 0}
.keep{grid-column:2;padding-top:16px}
.fld{display:grid;gap:8px;min-width:0}
.w2{grid-column:1 / -1}
.fld input,.fld select{display:block;width:100%;min-width:0;height:46px;padding:8px 12px;font-family:var(--body);font-size:var(--t-row);font-weight:var(--w-row);line-height:1.45;color:var(--ink);background:var(--bg3);border:1px solid var(--line2);border-radius:var(--r-ctl)}
.fld :where(input,select):focus-visible{outline:2px solid var(--amber);outline-offset:2px}
[data-theme=light] .fld :where(input,select):focus-visible{outline-color:var(--ink)}
.fld [aria-invalid=true]{border-color:var(--ink)}
.go{grid-column:1 / -1;display:flex;align-items:center;gap:8px 20px;flex-wrap:wrap}
.go p{color:var(--ink);min-width:0}
/* an opened line's named parts (a client's licences, terms, invoices, addresses, contact; a bill's source, account and
   Canadian figure; an address's check, deploy and link): a label, then its lines in the two voices on the book's own
   columns (subgrid), level line for line: the thing in Inter on the left, its figure, state and source in mono in the
   read column. Every line is one height, a link the same height; below 1024, where a line is tapped, a link is 44px
   tall at least. A figure in a sub-line (cad: a foreign bill's Canadian dollars) sits in the figure's own column, under
   the row's figure, and keeps the line's height. A longer field (terms, notes, addresses) is the same field, taller */
.sub{grid-column:2 / -1;display:grid;grid-template-columns:subgrid;min-width:0;padding-top:16px}
.sub > *{grid-column:1 / -1;min-width:0}
.sub .label{display:block}
.sub .terms{grid-column:1;font-size:var(--t-row);font-weight:var(--w-row);line-height:1.45;text-wrap:pretty;max-width:62ch}
.ln{display:grid;grid-template-columns:subgrid;align-items:baseline;padding:4px 0}
.ln .l{grid-column:1;display:flex;flex-wrap:wrap;align-items:baseline;gap:0 12px;min-width:0;color:var(--ink)}
.ln .l i{font-style:normal;color:var(--muted)}
.ln .r{grid-column:2;display:flex;flex-wrap:wrap;gap:0 20px;min-width:0;color:var(--dim)}
.ln .r > *{white-space:nowrap}
.ln .fg{line-height:1}
a.ln:hover .r{color:var(--ink)}
a.facts{align-items:center}
a.facts:hover{color:var(--ink)}
.sub .pick{padding:0}
.fld textarea{display:block;width:100%;min-width:0;min-height:98px;padding:12px;font-family:var(--body);font-size:var(--t-row);font-weight:var(--w-row);line-height:1.45;color:var(--ink);background:var(--bg3);border:1px solid var(--line2);border-radius:var(--r-ctl);resize:vertical}
.fld textarea:focus-visible{outline:2px solid var(--amber);outline-offset:2px}
[data-theme=light] .fld textarea:focus-visible{outline-color:var(--ink)}
/* empty, did not load, and the four rooms still to come */
.none{padding:64px 0 0;max-width:46ch;font-size:var(--t-row);font-weight:var(--w-row);color:var(--muted)}
.none b{color:var(--ink);font-weight:var(--w-row)}
.retry{margin-top:32px}
/* the room still to come sits 48 / 64 / 96 from the tab row by the window's height (700 / 1000), the scale value
   nearest the old 8vh there */
.next{padding:48px var(--gutter)}
@media (min-height:700px){.next{padding-block:64px}}
@media (min-height:1000px){.next{padding-block:96px}}
.next h2{margin-top:16px;font-family:var(--display);font-weight:var(--w-strong);font-size:var(--t-room);letter-spacing:-.02em;line-height:1.25;color:var(--muted);max-width:34ch;text-wrap:balance}

@media (max-width:1023px){
  /* a room's answer line sits right under the top line (it carries its own 8 px; the top line may take two
     lines at 390, and the Watch's two incidents and eight products still end above the window's foot) */
  .ledger{padding-top:0px}
  .head{display:none}
  .day{padding-top:20px}
  .row{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"who t" "w w" "r r";column-gap:12px;row-gap:4px;padding:16px 0}
  .r1,.r2{display:none}
  .r3{display:flex}
  .lead.open .row{grid-template-areas:"who t" "w w" "r1 r1" "r2 r2"}
  .lead.open .r3{display:none}
  .lead.open .r1,.lead.open .r2{display:flex;margin-top:4px}
  .lead.open .r2{margin-top:0}
  .lead.open .r1{white-space:normal}
  .more{grid-template-columns:minmax(0,1fr);grid-template-areas:"f" "sent" "act";row-gap:16px;padding-bottom:20px}
  .more.booked{grid-template-areas:"call" "said" "f" "sent" "act";row-gap:16px}
  /* A call's outcome takes the whole line under the read, the proof field the line's width, Save full width */
  .oc{grid-template-columns:minmax(0,1fr);margin-top:-8px;padding-bottom:8px}
  .oc > *{grid-column:1}
  .ocf{max-width:none}
  .ocf .go{flex-direction:column;align-items:stretch}
  .ocf .go .btn{width:100%}
  .ocf .go p{text-align:center}
  .lead.ocp > .al-dot{top:20px}
  .act{flex-direction:column;align-items:stretch}
  .act .btn{width:100%}
  .act .mono{text-align:center}
  /* a book's line: who and the figure / for what / the day and the source; its sum stacks, figure first */
  /* the stacked sum's spaces are the figure's and the read's own top margins (a row gap with a -8px pull on the
     name was off the grid): 20 above a lone figure, a name 8 above its figure, the read 16 under it */
  .sum{grid-template-columns:minmax(0,1fr);grid-template-areas:"k" "fig" "read";row-gap:0;padding-top:4px;padding-bottom:20px}
  .sum .k{padding-top:0}
  .sum .fig{margin-top:16px}
  .sum .k + .fig{margin-top:8px}
  .sum .read{margin-top:16px}
  /* the Queue's sum is not a book's: the Queue room's own sheet stacks it ("fig" "read", a 16 row gap, on the scale)
     and .q[data-close] .sum gives it 24 above, so it takes none of these margins (they put 16 more above
     the figure and under it, 43 and 41 at 390 where 5ba5bee had 27 and 25) */
  .q .sum .fig,.q .sum .read{margin-top:0}
  .tally .row{grid-template-areas:"who who" "w r1" "r2 r2"}
  .tally .lead.open .row{grid-template-areas:"who who" "w r1" "r2 r2"}
  .tally .lead.open .r1,.tally .lead.open .r2{margin-top:0}
  .tally .t{display:none}
  .tally .r1,.tally .r2{display:flex}
  .tally .r1{flex-wrap:nowrap;justify-content:flex-end}
  /* One line an item: the name (whole, wrapping) with its time at the right, then the read whole under it.
     Opened: their words, then the rest of the read. Money's line keeps its figure on the name's row */
  .one .row{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"who t" "r1 r1";row-gap:4px;padding:12px 0}
  .one.open .row{grid-template-areas:"who t" "r1 r1" "w w" "r2 r2"}
  .one .r1{display:flex}
  .one .r3{display:none}
  .lead.one.open .r1{margin-top:0}
  .tally .one .row{grid-template-areas:"who r1"}
  .tally .lead.one.open .row{grid-template-areas:"who r1" "w w" "r2 r2"}
  .tally .one .r1{flex-wrap:wrap;justify-content:flex-end;text-align:right}
  .tally .lead.one .r2{display:none}
  .tally .lead.one.open .r2{display:flex}
  /* A Leads or Assets item is two lines on first look. Line 1 is the name with its clinic or vendor
     after it in grey, in the same place on every row: one flow that wraps whole at a space, never a grey word dropped
     to a line of its own. Line 2 is how it stands and its next date, a lead's time at its right (an asset's read time
     is in its opened line). The note (a lead's next step, "entered by hand") and, beside a problem with an asset, its
     cost are one tap away: the opened line says them whole */
  .two .row{grid-template-areas:"who who" "r1 t"}
  .two.open .row{grid-template-areas:"who who" "r1 t" "w w" "r2 r2"}
  .two .who{display:block}
  .two .n{margin-right:4px}
  .two:not(.open) .nt,.two.flagged:not(.open) .cost{display:none}
  [data-assets] .t{display:none}
  /* a name never breaks inside a word: it wraps at a space, or at the dot, slash or @ its writer marked (<wbr>), the
     grey word beside it gives way first; nothing is cut */
  .n{flex:0 1 auto;min-width:0}
  .b{flex-shrink:100}
  .tally .b{flex:none}
  .book .d{display:inline}
  .fg{min-width:0}
  .read .fg{min-width:11ch}
  .say,.under{grid-template-columns:minmax(0,1fr)}
  .say li,.facts,.under > *,.keep,.sub{grid-column:1 / -1}
  /* an opened line's sub-line is two rows: the thing, then its read; an invoice leads with its amount and state, then
     its day and number. A link is the whole line, 44px tall at least */
  .ln{row-gap:2px;padding:4px 0}
  .ln .l,.ln .r{grid-column:1}
  .ln.inv .r{grid-row:1}
  .ln.inv .l{grid-row:2}
  /* a figure stays on its thing's row, at the right, under the row's own figure */
  .ln.cad{grid-template-columns:minmax(0,1fr) auto;column-gap:12px}
  .ln.cad .r{grid-column:2;grid-row:1}
  a.ln,a.facts{min-height:44px;align-content:center}
  .more > a.facts{margin-top:-16px}
  .h2{grid-column:1 / -1}
  .go{flex-direction:column;align-items:stretch}
  .go .btn{width:100%}
  .go .quiet,.go p{text-align:center}
}
/* at 640 and under a source is said by its name alone ("GoDaddy"); which account it is stays one tap away, on the
   owner's line */
@media (max-width:640px){
  .b .x{display:none}
}

/* THE ALERT LINE. One line in the shell, above
   every room: the amber mark and the count of what is new (not seen and from the last 48 hours: the server's fresh),
   then the newest line not seen (when, which vendor, what
   happened) and its amount. The words give way first; the amount is never cut. It keeps one height at every count, zero
   included, so an alert landing changes its words and never moves the room; at zero it is quiet (no mark, the count and
   the last line in grey), never gone. A tap opens the list in place under the rooms, on the lifted ground; the same tap,
   Escape or a room's tab closes it, and nothing of it is left behind. No new colour, size or font. */
.al-line{display:flex;align-items:center;gap:12px;min-width:0;min-height:44px;margin-left:auto;color:var(--muted)}
.al-dot{flex:none;width:6px;height:6px;border-radius:50%;background:var(--amber)}
.al-line:not([data-unread]) .al-dot,.al-line[data-unread="0"] .al-dot{visibility:hidden}
.al-n,.al-t{flex:none;white-space:nowrap;color:var(--dim)}
.al-n b{font-weight:var(--w-row);color:var(--dim)}
.al-w{flex:0 1 auto;min-width:0;text-wrap:pretty;overflow-wrap:anywhere}
.al-a{flex:none;font-family:var(--mono);font-size:var(--t-label);font-weight:var(--w-row);letter-spacing:0;font-variant-numeric:tabular-nums;white-space:nowrap}
.al-line[data-unread]:not([data-unread="0"]) :is(.al-n b,.al-w,.al-a),.al-line:hover .al-w{color:var(--ink)}
/* the list: one ruled book, newest first, a line an event: when | vendor | what happened | the amount, in
   its own column right after the words, right-aligned so the decimals line up. A line not seen carries the mark in the
   gutter and is ink, a seen one grey. At 1024 and up nothing on a line is cut: words longer than their column wrap.
   Tapped, a line shows whole, with the vendor's own words under it in plain grey (never on the first read) */
.ledger.al-list{padding:0 var(--gutter);background:var(--bg2);border-bottom:1px solid var(--line2)}
.al-head{display:flex;align-items:center;gap:8px 24px;min-height:44px;margin:0 calc(-1 * var(--gutter));padding:0 var(--gutter);border-bottom:1px solid var(--line2)}
.al-head .label{flex:1 1 auto}
/* the head's label carries the feeds count; at 390 it wraps, Mark all read keeps its one line */
.al-head .quiet{flex:none}
.al-say{color:var(--ink)}
/* Mark all read is ink, like the lines it would clear, while one is not seen; at 0 not seen it is disabled and in the
   read grey, so it no longer reads as a thing to press */
.al-head .quiet:not(:disabled){color:var(--ink)}
.al-head .quiet:disabled{color:var(--muted);cursor:default}
.al-item{margin:0 calc(-1 * var(--gutter));padding:0 var(--gutter);border-bottom:1px solid var(--line)}
.al-item:hover{background:var(--bg3)}
.al-row{position:relative;display:grid;width:100%;min-height:44px;grid-template-columns:96px 120px minmax(0,46ch) auto;grid-template-areas:"t v w a" ". . d d";justify-content:start;column-gap:24px;align-items:baseline;color:var(--muted)}
.al-row .al-dot{position:absolute;left:-12px;top:8px}
.al-item[data-read] .al-dot{visibility:hidden}
.al-item:not([data-read]) :is(.al-v,.al-w,.al-a){color:var(--ink)}
.al-row .al-t{grid-area:t}
.al-v{grid-area:v;white-space:nowrap}
.al-row .al-w{grid-area:w;white-space:normal;overflow-wrap:anywhere;text-wrap:pretty}
.al-row .al-a{grid-area:a;min-width:13ch;text-align:right}
.al-d{grid-area:d;display:none;padding-bottom:4px;color:var(--dim);overflow-wrap:anywhere;text-wrap:pretty}
.al-item.open .al-d{display:block}
.al-none{padding:12px 0;color:var(--muted)}
.al-nc{padding:4px 0;color:var(--dim)}
.al-list .none{padding:16px 0 0}
.al-list .retry{margin:16px 0}
.vh{position:absolute;width:1px;height:1px;margin:0;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* THE FILTER: one quiet "Filter" control at the right of a room's answer line (with the number of
   filters on, in ink); tapped, the search and the choices open under the line, before the list. A choice is a text
   button read like the month picker (the chosen one ink, the tab's 2px rule under it), its words a stop under the rows
   and quieter; no browser dropdown. The search field is t-small at a desk and t-lede below 1024 (16 px at 390: the
   phone does not zoom into it) */
.ftog{display:inline-flex;align-items:center;gap:8px;min-height:44px;min-width:44px;color:var(--dim)}
.ftog:hover,.ftog[aria-expanded=true]{color:var(--ink)}
.ftog b{font-weight:var(--w-row);color:var(--ink)}
.filt{flex-basis:100%;display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px 32px;padding:4px 0 12px}
.filt .fld{flex:1 1 280px;max-width:480px}
.filt .fld input{height:44px;font-size:var(--t-label)}
.fgrp{display:flex;flex-wrap:wrap;align-items:center;gap:0 20px;min-width:0}
.fgrp .label{flex-basis:100%}
.fgrp button{position:relative;min-height:44px;font-size:var(--t-meta);color:var(--muted)}
.fgrp button:hover,.fgrp button[aria-pressed=true]{color:var(--ink)}
.fgrp button[aria-pressed=true]::after{content:"";position:absolute;left:0;right:0;bottom:8px;height:2px;background:var(--ink)}
.filt > p{min-height:44px;display:flex;align-items:center;color:var(--dim)}
@media (max-width:1023px){.filt .fld input{font-size:var(--t-row)}}
.source-health{padding:8px 0;border-bottom:1px solid var(--line)}
.source-health>summary,.sub>summary{cursor:pointer;min-height:44px;padding:12px 0;color:var(--muted)}
/* Needs attention (Queue): one line an item, its title in ink and its note grey beside it, Open at the right; a note
   that several items share is said once, above them, and covers only them: its items sit indented
   under it, and one full rule closes the group, so the next item (with its own note) reads as outside it */
.attention{padding-top:16px}.attention-list{list-style:none}.attention-list li{border-bottom:1px solid var(--line)}
.attention-list a,.attention-list li > span{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 16px;min-height:44px;padding:8px 0;text-decoration:none}
.attention-list a{flex-wrap:nowrap}
.attention-list .tt{flex:1 1 auto;min-width:0;text-wrap:pretty}
.attention-list .tt .attention-detail{margin-left:8px}
.attention-list a:hover b{text-decoration:underline}
.attention-list b{font-weight:var(--w-mid);color:var(--ink)}
.attention-detail{color:var(--muted)}.attention-list .mono{color:var(--dim)}
.attention-list .to{flex:none;margin-left:auto;white-space:nowrap}
.attention-note{padding:12px 0 0;color:var(--muted)}
.attention-run > ul{margin-left:16px}
.attention-run > ul > li:last-child{border-bottom:0}
.attention > .mono,.attention > p{padding-top:12px}
.q[data-close] .sum{min-height:0;padding:24px 0;margin:0;flex:0 0 auto}.q[data-close] .fig strong{font-size:var(--t-row);font-family:var(--body);font-weight:var(--w-row);letter-spacing:0}
.followup{grid-area:f;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:20px 0}.followup .w2{grid-column:1/-1}.followup .go{grid-column:1/-1;display:flex;gap:16px;align-items:center;flex-wrap:wrap}
/* a choice in a form that has a few answers (a lead's status, whether it is a test) is the same text buttons, as radios */
fieldset.fld{border:0;min-width:0}
.seg{display:flex;flex-wrap:wrap;gap:0 20px}
.seg label{position:relative;display:flex;align-items:center;min-height:44px;color:var(--muted);cursor:pointer}
/* the radio itself is the word's tap: unseen, the label's full height and at least 44 px wide, centred on the word
   (a 1 px radio failed the 44 px floor at 390; the words and their spacing are unchanged) */
.seg input{position:absolute;opacity:0;top:0;left:50%;width:max(100%,44px);height:100%;margin:0;transform:translateX(-50%);cursor:pointer}
.seg label:has(input:checked){color:var(--ink)}
.seg label:has(input:checked)::after{content:"";position:absolute;left:0;right:0;bottom:8px;height:2px;background:var(--ink)}
.seg label:has(input:focus-visible){outline:2px solid var(--amber);outline-offset:2px}
[data-theme=light] .seg label:has(input:focus-visible){outline-color:var(--ink)}
.workflow-read{min-width:0}.workflow-read b{font-weight:var(--w-row);color:var(--ink)}
@media(max-width:600px){.followup{grid-template-columns:1fr}.followup .w2{grid-column:auto}}
.funnel{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;padding:32px 0}.funnel button{text-align:left;min-height:90px;border-bottom:1px solid var(--line2)}.funnel .label{display:block;color:var(--muted)}.funnel strong{display:block;font-family:var(--display);font-size:var(--t-room);letter-spacing:-.02em;margin-top:12px}.funnel button:hover{border-color:var(--dim)}
@media(max-width:600px){.funnel{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:20px 0}}
/* Money's three numbers: its answer, at the title stop, each named above it (below 600 a column: the name at the left,
   the figure at the right) */
.money-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;padding:16px 0 20px}.money-overview .label{display:block;color:var(--dim)}.money-overview strong{display:block;font-family:var(--display);font-weight:var(--w-strong);font-size:var(--t-room);line-height:1.2;margin-top:4px;letter-spacing:-.02em;font-variant-numeric:tabular-nums}.product-money-row,.product-money-head{display:grid;grid-template-columns:minmax(150px,1fr) repeat(3,minmax(100px,1fr));gap:12px;padding:12px 0;border-bottom:1px solid var(--line2)}.product-money-row span,.product-money-head span:not(:first-child){text-align:right}.product-money-row span{font-family:var(--mono);font-size:var(--t-meta)}
@media(max-width:600px){.money-overview{grid-template-columns:1fr;gap:8px;padding:12px 0 16px}.money-overview p{display:flex;justify-content:space-between;align-items:baseline;gap:12px}.money-overview strong{margin:0}.product-money-row,.product-money-head{grid-template-columns:minmax(90px,1fr) repeat(3,minmax(0,1fr));gap:8px}}
.lead.still .w{white-space:normal;display:block;-webkit-line-clamp:unset;overflow:visible;text-overflow:clip}
/* a form's own dropdown (licensed in DESIGN.md allow:) wears the tokens: no browser chrome, the field's ground and
   rule, a grey chevron drawn in its corner */
.fld{position:relative}
.fld select{appearance:none;-webkit-appearance:none;padding-right:40px;cursor:pointer}
.fld:has(select)::after{content:"";position:absolute;right:20px;bottom:20px;width:8px;height:8px;border-right:1px solid var(--dim);border-bottom:1px solid var(--dim);transform:rotate(45deg);pointer-events:none}

/* THE WATCH: what the Watch room
   adds to the ledger. No new colour, size, font or radius: amber is --amber and marks an open incident only, once a
   screen: the top line's dot carries the incident it names, so the count line has no dot and that
   incident's line none either; an open incident the top line does not name (a test, a second one) keeps its dot in
   its gutter. A time inside a sentence is the shell's mono at the sentence's own size. The tab's count is blank when
   nothing is open. */
#wcount:empty{display:none}
/* the room's first line: how many are open (ink), and beside it, grey mono, how many are watched and when they were
   last checked and read. 44 px, ruled under, like the alert list's head */
.wsum{display:flex;flex-wrap:wrap;align-items:center;gap:4px 20px;min-height:44px;margin:0 calc(-1 * var(--gutter));padding:0 var(--gutter);border-bottom:1px solid var(--line2)}
.wsum .ws{display:flex;align-items:center;gap:12px;font-size:var(--t-row);font-weight:var(--w-row);color:var(--ink);white-space:nowrap}
.wsum .wr{display:flex;flex-wrap:wrap;gap:0 20px;margin-left:auto;color:var(--dim)}
/* a time said inside his sentence is the system's voice: mono, tabular, at the sentence's size */
.wt{font-family:var(--mono);font-weight:var(--w-row);letter-spacing:0;font-variant-numeric:tabular-nums}
/* an incident is a ledger line: since-when in the time column, the product as the name, the sentence as the words
   (whole, never cut), the system's read in mono on the right. An open one carries the amber dot in the gutter.
   --wpad is a line's own top and bottom padding (an incident 16, a product or closed line 4; 8 each below 1024):
   an opened line ends on it too, nothing after its last sub-line (D-I-2) */
.inc{--wpad:16px}
.inc .row{position:relative;padding:var(--wpad) 0}
/* the room's section labels sit 20 above their list (the ledger's day label sits 32): the room is a list of lists */
[data-watch] .day{padding-top:20px}
.inc .al-dot{position:absolute;left:-12px;top:30px}
.inc .w{white-space:normal;text-wrap:pretty}
.inc .r3{display:none}
.inc-open .day{padding-top:12px}
/* a list that needs him (Watch's Open, Products' Down) is labelled in ink, never amber */
.day.on{color:var(--ink)}
/* the watched list: one line a product: when it was last checked (time column), its name, its state in mono on the
   right. A fine line is grey; a broken line is ink; a silent line keeps its grey name (nobody knows it is broken) and
   says "not reporting" in ink. 44 px tall at least, the whole line the tap; tapped, its checks' latest results under
   it on the lifted ground, as an opened lead */
.wl li{--wpad:4px;margin:0 calc(-1 * var(--gutter));padding:0 var(--gutter);border-bottom:1px solid var(--line)}
.wl li:hover,.wl li.open{background:var(--bg2)}
.wl .pl{display:grid;width:100%;grid-template-columns:var(--cols);column-gap:var(--gap);align-items:baseline;align-content:center;min-height:36px;padding:var(--wpad) 0}
.wl .pt{color:var(--dim)}
.wl .pn{color:var(--muted);min-width:0;overflow-wrap:anywhere}
.wl .pn i{font-style:normal;color:var(--dim)}
.wl [data-state=broken] .pn,.wl [data-state=broken] .pn i{color:var(--ink)}
.wl .ps{display:flex;flex-wrap:wrap;gap:0 12px;min-width:0;color:var(--dim)}
.wl .ps > *{white-space:nowrap}
.wl .ps b,.tl .ln .r b{font-weight:var(--w-row);color:var(--ink)}
/* a product line says its time once: at 1024 and up in the time column, so the state is the word alone */
@media (min-width:1024px){.wl .ps .st{display:none}}
/* a closed incident: the ledger's grey, its name then its sentence on one line at 1440 (the sentence gives way first,
   cut), the read in mono at the right; at 390 the name and the read on one line, the sentence whole under them */
.cr .pn{display:flex;gap:12px;color:var(--muted)}
.cr .cn{flex:none;color:var(--muted)}
.cr .cn i{font-style:normal;color:var(--dim)}
/* A closed incident is one line, its name and its read; its whole
   sentence is one tap away, over its timeline, never cut */
.cr .cw{display:none;min-width:0;color:var(--dim);font-weight:var(--w-row);text-wrap:pretty}
.cr.open .cw{display:block}
.cr.open .cw{white-space:normal;text-wrap:pretty}
/* the timeline: the opened incident's lines, the thing on the left in Inter, its time in mono on the right, level;
   what was told and answered, a failing check and the last line ("Still open", or when it closed) in ink. An opened
   line (an incident's timeline, a product's checks) ends as its row does: its last sub-line keeps the line's own
   bottom padding (--wpad) and nothing comes after it, no band of the open lead's action row (D-I-2) */
[data-watch] .more{grid-template-areas:none;row-gap:0;padding-bottom:0}
.tl{padding-top:12px;padding-bottom:0}
.tl .ln:last-child{padding-bottom:var(--wpad)}
.tl .ln .l{color:var(--muted)}
.tl .ln.now .l,.tl .ln.now .r{color:var(--ink)}
.tl .ln.told .l,.tl .ln.bad .l{color:var(--ink)}
@media (max-width:1023px){
  /* At 390x844 two open incidents and eight product lines sit above the window's foot. Every step is on
     the I-2 scale: the section labels 8 above their list, an incident 8 above and below (the row has no third track
     below 1024, its reads are hidden until it is opened), every product line one 44 px row (a two-line state, broken
     or not reporting, takes 2 above and below where a fine line's one line centres in the same 44) */
  [data-watch] .day{padding-top:4px}
  .inc,.wl li{--wpad:8px}
  .inc .row{grid-template-areas:"who t" "w w"}
  .wsum .wr{margin-left:0;flex-basis:100%}
  .inc .al-dot{top:18px}
  .wl .pl{grid-template-columns:minmax(0,1fr) auto;column-gap:12px}
  .wl .pt{display:none}
  .wl .ps{flex-wrap:nowrap;justify-content:flex-end}
  .wl [data-state=broken] .ps,.wl [data-state=silent] .ps{flex-direction:column;align-items:flex-end;gap:0}
  .wl [data-state=broken] .pl,.wl [data-state=silent] .pl{padding:2px 0}
  .wl .pl{min-height:44px}
  .cr .pl{grid-template-areas:"n s" "w w";row-gap:2px}
  .cr .pn{display:contents}
  .cr .cn{grid-area:n;min-width:0}
  .cr .ps{grid-area:s}
  .cr .cw{grid-area:w}
  .tl .ln{grid-template-columns:minmax(0,1fr) auto;column-gap:12px;min-height:32px;align-content:center}
  .tl .ln .l{grid-column:1}
  .tl .ln .r{grid-column:2;grid-row:1}
}

/* THE DEALS: the
   eighth room, between Leads and Money, and an opened lead's first act. No new colour, size, font or radius. A deal is
   the ledger's one-line item (.one): its last change in the time column, the business as the name with the person grey
   beside it, and in mono on the right what it waits on ("→ proposal not sent", ink: a Lead waits on Chris) or its
   proposal link, a plain underlined link. The six stage words run down the room as the day labels do (Lead in ink);
   Billing is muted (.old). The whole line is the tap (the name is the button, stretched over the row); the link is its
   own tap. Opened, the line adds the stage as the form's six words (.seg, the chosen one ink with the tab's rule), the
   link field, Save (the one amber), and the history as a disclosure of sub-lines. The tab's count is how many deals
   wait on Chris, ink, blank when none (as Watch's). */
#dcount:empty{display:none}
.deal .row{position:relative}
.deal .who::after{content:"";position:absolute;inset:0}
.deal .lk{position:relative;z-index:1;color:var(--dim);text-decoration:underline;text-underline-offset:4px;min-width:0;overflow-wrap:anywhere}
.deal .lk:hover,.deal.open .r1 .lk{color:var(--ink)}
/* the stage choice holds the form's own radios (.seg) at the field's measure; the six words wrap at a space */
.dform .seg{gap:0 24px}
.dform + details.sub{padding-top:8px}
[data-deals] details.sub .ln:last-child{padding-bottom:12px}
/* signed: the way to the client the deal made, under Save, in the sentence's flow; its padding makes it a 44 px tall
   target without moving the line */
.dform .go a{padding:12px 0;text-decoration:underline;text-underline-offset:4px}
/* an opened lead's first act ("Make it a deal" stays first): the quiet text button (never amber) and what it does, in grey mono; once the lead has a deal, the way to it and its stage. It sits above
   the lead's follow-up form, on its own area, one line at every width */
.more.dl{grid-template-areas:". deal deal" ". f f" ". act sent"}
.more.dl.booked{grid-template-areas:". deal deal" ". said call" ". f f" ". act sent"}
.mkd{grid-area:deal;display:flex;align-items:center;gap:8px 20px;flex-wrap:wrap}
.mkd .mono{color:var(--dim)}
.mkd .mono.no{color:var(--ink)}
.mkd .dk{display:inline-flex;align-items:center;min-height:44px;color:var(--muted);text-decoration:underline;text-underline-offset:4px}
.mkd .dk:hover{color:var(--ink)}
@media (max-width:1023px){
  /* where a line is tapped, the name and the link are 44 px tall targets; the margins pull them back, so the line
     keeps the same rhythm */
  .deal .who{padding:12px 0;margin:-12px 0}
  .deal .lk{display:inline-flex;align-items:center;min-height:44px;margin:-12px 0}
  .more.dl{grid-template-areas:"deal" "f" "sent" "act"}
  .more.dl.booked{grid-template-areas:"deal" "call" "said" "f" "sent" "act"}
}


/* THE ROOM. Chris and every agent in one thread, newest at the bottom, the composer pinned under his thumb. No new
   colour, size, font or radius. A message is a ledger row: its time in the time column, the name in ink at the body stop
   (a company posting's company small and grey beside it, "Nora · BCB"), the words plain at t-lede, the desk's read in
   grey mono in the read column (kind · company); the one mark is the ledger's own "→ waiting on you" read in ink. His
   own lines sit right-aligned in the words column, "You → Reid" grey where the name is. Amber is Send alone. The tab:
   Room, after Watch, in the row at 1024 and up; below it a line of More's sheet (the bar keeps five places), its
   count in More's; its count is what waits on him, ink, blank at none, as Watch's. */
#rcount:empty{display:none}
/* the answer line: what waits on him (ink; a tap brings the newest waiting line into view), and, grey mono, the
   roster (a switched-off posting muted) and how many lines came today */
.ans .wr .off{color:var(--muted)}
/* the count's tap is 44 px tall inside the line's own padding; the line keeps one height whether or not it is a tap */
[data-room-thread] .ans .ws{min-height:28px}
.ans .wn{min-height:44px;margin:-8px 0}
.ans .wn:hover{text-decoration:underline;text-underline-offset:4px}
/* the thread is its own scroller between the answer line and the pinned composer (public/rooms/room.js fit sets its
   height), so the shell, the answer line and Send hold the screen at every height; a short day anchors to the bottom */
.ledger[data-room-thread]{padding-top:0;padding-bottom:0}
.thread{display:flex;flex-direction:column;overflow-y:auto;overscroll-behavior:contain;margin:0 calc(-1 * var(--gutter));padding:0 var(--gutter) 16px}
.thread > ol{margin-top:auto}
.thread .none{padding-top:48px}
.thread .day{padding-top:20px}
.msg{margin:0 calc(-1 * var(--gutter));padding:0 var(--gutter);border-bottom:1px solid var(--line)}
.msg > .m{display:grid;width:100%;grid-template-columns:var(--cols);column-gap:var(--gap);grid-template-areas:"t who r" ". w r";align-items:baseline;row-gap:4px;padding:12px 0}
.m > .t{grid-area:t}
.m > .who{grid-area:who}
.m > .who .n{font-family:var(--body);font-weight:var(--w-mid);font-size:var(--t-label);letter-spacing:0;line-height:1.5}
.m > .who .b{color:var(--dim)}
.m > .w{grid-area:w;overflow-wrap:anywhere}
.m > .r{grid-area:r;display:flex;flex-wrap:wrap;gap:0 8px;min-width:0;color:var(--dim);align-self:start}
.msg.me .m > .who{justify-content:flex-end}
.msg.me .m > .who .n{color:var(--muted)}
.msg.me .m > .w{text-align:right}
/* a line opened: its ticket's hops under it on the lifted ground, the Watch timeline's grammar (.sub .tl .ln: who
   passed it to whom on the left, what and when in mono on the right), Back at its end */
.msg.open{background:var(--bg2);border-bottom-color:var(--line2)}
[data-room-thread] .more{grid-template-areas:none;row-gap:0;padding:0 0 12px}
[data-room-thread] .tl .ln .l i{color:var(--dim)}
/* the composer: the shell's one form, pinned on the bar's blurred ground. "To:" the grey label, the name beside it in
   ink is the one tap (the whole line a 44 px target); tapped, the choices open above it as the filter's text buttons
   (the chosen one ink with the tab's rule; a switched-off posting grey with its word, no tap). The field, then Send.
   A refusal is one grey line under them; his words stay in the field, its border ink */
.compose{position:fixed;left:0;right:0;bottom:0;z-index:40;padding-bottom:env(safe-area-inset-bottom);background:color-mix(in srgb,var(--bg) 94%,transparent);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-top:1px solid var(--line2)}
.compose .in{padding:12px var(--gutter) 16px}
.cline{display:flex;align-items:center;gap:16px;min-width:0}
.compose .to{display:inline-flex;align-items:center;gap:8px;min-height:44px;flex:none;color:var(--ink);white-space:nowrap}
.compose .to .label{color:var(--dim)}
.compose .to[aria-expanded=true] .nm > .on{text-decoration:underline;text-underline-offset:4px}
/* At 1024 and up To: is one width, its widest choice's ("everyone" or the longest switched-on posting):
   room.js drawTo puts every choice it can show in the name's one grid cell, the chosen one seen and the rest hidden
   and out of the reading order, so the browser measures them and the field's left edge is one x whichever name To:
   carries. Below 1024 To: has its own line and draws the chosen one only */
.compose .to .nm > :not(.on){display:none}
@media (min-width:1024px){
  .compose .to .nm{display:inline-grid}
  .compose .to .nm > *{grid-area:1 / 1}
  .compose .to .nm > :not(.on){display:block;visibility:hidden}
}
.compose .b{margin-left:4px;color:var(--dim)}
.cline .fld{flex:1 1 auto;min-width:0;display:block}
.cline .fld input{height:44px;font-size:var(--t-label)}
.cline .btn{flex:none;min-height:44px;padding:8px 20px}
.compose .cnote{display:flex;align-items:center;min-height:24px;padding-top:8px;color:var(--muted);text-wrap:pretty}
.compose .cnote:empty{display:none}
.picks{display:flex;flex-wrap:wrap;align-items:center;gap:0 24px;padding:0 0 4px}
.picks button{position:relative;min-height:44px;color:var(--muted);white-space:nowrap}
.picks button:hover,.picks button[aria-pressed=true]{color:var(--ink)}
.picks button[aria-pressed=true]::after{content:"";position:absolute;left:0;right:0;bottom:8px;height:2px;background:var(--ink)}
.picks button:disabled{color:var(--dim);cursor:default}
.picks button:disabled i{font-style:normal;color:var(--dim);margin-left:8px}
/* below 1024: a message is the name with its time at the right, then the words; the read only on a line that waits
   on him; his own lines right-aligned, time first. The composer stands on the window's foot: To: on its own line, the
   field (16px, theme.css, so the phone does not zoom into it) and Send under it */
@media (max-width:1023px){
  .msg > .m{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"who t" "w w" "r r";column-gap:12px;row-gap:2px}
  .m > .r{display:none}
  /* A message's words are at most two lines, cut with the browser's own ellipsis (the clamp
     .lead.still .w undoes); the line opened shows them whole above its hops, so nothing is lost */
  .msg > .m > .w{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
  .msg.open > .m > .w{display:block;-webkit-line-clamp:unset;overflow:visible}
  .msg.wait .m > .r{display:flex;margin-top:2px}
  .msg.me > .m{grid-template-areas:"t who" "w w" "r r"}
  .msg.me .m > .t{text-align:right}
  .compose .in{padding:8px var(--gutter)}
  .cline{flex-wrap:wrap;gap:0 12px}
  .compose .to{flex:1 1 100%}
  .cline .fld{flex:1 1 180px}
  .cline .fld input{font-size:var(--t-row)}
}
/* below 1024 an alert in the list is two lines: the vendor and when, then what happened and its amount; tapped, the
   vendor's own words come under them (restored with the extraction; the top bar's own rules live in today.css) */
@media (max-width:1023px){
  .al-row{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"v t" "w a" "d d";justify-content:normal;column-gap:12px;padding:8px 0}
  .al-row .al-dot{top:16px}
  .al-row .al-t{text-align:right}
  .al-row .al-a{min-width:0}
}

/* MONEY'S HEAD: the month strip (rooms/money.js strip()) under the room's heading, before the view switch: the month and
   its Partial / no-bank tag with why, beside its four figures. A desk sets the figures in one row; under 1024 they sit
   under the words; on the phone each figure is a line, its name and qualifier left, the amount right, nothing cut. */
.rv-room.rv-money .rv-mstrip{display:grid;grid-template-columns:minmax(200px,4fr) 8fr;gap:12px 24px;align-items:center;margin:0;padding:12px 16px;border-radius:12px;background:var(--bg2)}
.rv-room.rv-money .rv-mstrip .ms-l{min-width:0}
.rv-room.rv-money .rv-mstrip h3{margin:0;font:var(--w-strong) var(--t-head)/22px var(--display);letter-spacing:-.01em;color:var(--ink)}
.rv-room.rv-money .rv-mstrip .ms-l p{max-width:none;margin:2px 0 0;color:var(--muted);font-size:var(--t-meta);line-height:16px;text-wrap:pretty}
.rv-room.rv-money .rv-mstrip .ms-tag{display:inline-block;margin-left:6px;padding:0 6px;border:1px solid var(--line2);border-radius:var(--r-tag);font:var(--w-mid) var(--t-meta)/18px var(--body);letter-spacing:0;color:var(--ink);vertical-align:2px}
.rv-room.rv-money .rv-mstrip .ms-figs{display:grid;grid-template-columns:repeat(4,minmax(min-content,1fr));gap:16px;padding-left:24px;border-left:1px solid var(--line)}
.rv-room.rv-money .rv-mstrip .ms-fig{max-width:none;margin:0;min-width:0}
.rv-room.rv-money .rv-mstrip .ms-fig span,.rv-room.rv-money .rv-mstrip .ms-fig i{display:block;font-style:normal;color:var(--muted);font-size:var(--t-meta);line-height:16px}
.rv-room.rv-money .rv-mstrip .ms-fig b{display:block;white-space:nowrap;margin:2px 0;font:var(--w-row) var(--t-head)/24px var(--mono);font-variant-numeric:tabular-nums;color:var(--ink)}
.rv-room.rv-money .rv-mstrip .ms-fig b.ms-none{white-space:normal;font:var(--w-mid) var(--t-row)/24px var(--body);color:var(--muted)}
@media (max-width:1023px){
  .rv-room.rv-money .rv-mstrip{grid-template-columns:minmax(0,1fr)}
  .rv-room.rv-money .rv-mstrip .ms-figs{padding:12px 0 0;border-left:0;border-top:1px solid var(--line)}
}
@media (max-width:699px){
  .rv-room.rv-money .rv-mstrip{gap:8px}
  .rv-room.rv-money .rv-mstrip .ms-figs{grid-template-columns:minmax(0,1fr);gap:0;padding:0}
  .rv-room.rv-money .rv-mstrip .ms-fig{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"k v" "s v";column-gap:12px;align-items:center;padding:8px 0;border-top:1px solid var(--line)}
  .rv-room.rv-money .rv-mstrip .ms-fig:first-child{border-top:0}
  .rv-room.rv-money .rv-mstrip .ms-fig span{grid-area:k;color:var(--ink);font-size:var(--t-row);line-height:20px}
  .rv-room.rv-money .rv-mstrip .ms-fig i{grid-area:s}
  .rv-room.rv-money .rv-mstrip .ms-fig b{grid-area:v;margin:0;font-size:var(--t-row);line-height:20px}
}

/* Clients and its lists share the room gutter on the folded phone. */
@media (max-width:559px){
  :is(.rv-work,.rv-clients,.rv-deals){padding-inline:4px}
}
