/* The rooms as pages of the Today day book (DESIGN.md): one stable heading and its answer line, the room's work grouped
   in soft panels of compact rows, long lists paged to fit the window, full records and forms in centred dialogs.
   Loaded after the legacy base and theme.css; every rule is scoped to a room (.rv-room) or its dialogs
   (.rv-room-dialog). The shell gives #room the space between its bars; a room fills it and centres in it. */

/* THE PAGE: the mount the shell hands a room stretches to the space it gives */
div:has(> .rv-room){display:flex;flex-direction:column;flex:1 0 auto;min-width:0}
.rv-room{--rv-gut:0px;box-sizing:border-box;flex:1 0 auto;display:flex;flex-direction:column;justify-content:center;gap:16px;width:100%;max-width:1040px;margin:0 auto;padding:8px var(--rv-gut);font-size:var(--t-row);font-weight:var(--w-row);line-height:1.4;color:var(--ink)}
.rv-room *,.rv-room-dialog *{box-sizing:border-box}
.rv-room h1,.rv-room h2,.rv-room h3,.rv-room p,.rv-room ol,.rv-room ul{margin:0}
.rv-room ol,.rv-room ul{list-style:none;padding:0}
.rv-room .vh,.rv-room-dialog .vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* the heading: the room's name, its answer under it, its tools at the right (under it on the phone) */
.rv-room .rv-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px 20px}
.rv-room .rv-title{min-width:0;flex:1 1 280px}
.rv-room .rv-head h1,.rv-room .rv-head h2{font:var(--w-strong) var(--t-room)/26px var(--display);letter-spacing:-.01em;color:var(--ink);text-wrap:balance}
.rv-room .rv-ans{margin-top:2px;color:var(--muted);text-wrap:pretty}
.rv-room .rv-ans b{font-weight:var(--w-mid);color:var(--ink)}
/* The shell names these rooms; their own heading starts with the answer and controls. */
.rv-room:is(.rv-assets,.rv-parts,.rv-miles,.rv-desk-room,.rv-marketing) .rv-head h2{display:none}
.rv-room:is(.rv-assets,.rv-parts,.rv-miles,.rv-desk-room,.rv-marketing) .rv-head .rv-ans{margin-top:0}
.rv-room .rv-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}

/* a switch between a room's views: the chosen one raised */
.rv-room .rv-seg{display:flex;flex-wrap:wrap;gap:4px;margin:0;padding:0;border:0;min-width:0}
.rv-room .rv-seg label{position:relative;display:inline-flex}
.rv-room .rv-seg input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer;min-height:0}
.rv-room .rv-seg span,.rv-room .rv-seg button{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border-radius:10px;color:var(--muted);font-weight:var(--w-mid);white-space:nowrap}
.rv-room .rv-seg input:checked + span,.rv-room .rv-seg button[aria-pressed=true],.rv-room .rv-seg button[aria-current]{background:var(--bg3);color:var(--ink)}
.rv-room .rv-seg input:focus-visible + span{outline:2px solid var(--accent);outline-offset:2px}
.rv-room .rv-seg label:has(input:disabled){cursor:default}
.rv-room .rv-seg input:disabled + span{opacity:.55}

/* Filter, and the panel it opens (console.js listTools) */
.rv-room .ftog{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;border-radius:10px;background:var(--bg2);color:var(--ink);font:var(--w-mid) var(--t-row)/1 var(--body);letter-spacing:0}
.rv-room .ftog b{min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--accent);color:var(--accent-ink);font:var(--w-strong) var(--t-meta)/20px var(--body);text-align:center}
.rv-room .filt{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 20px;padding:16px;border-radius:12px;background:var(--bg2);margin:0;border:0}
.rv-room .filt .fld{display:grid;gap:8px;flex:1 1 240px;margin:0;padding:0;border:0}
.rv-room .filt .fgrp{display:flex;flex-wrap:wrap;align-items:center;gap:4px;flex:1 1 100%;margin:0;padding:0}
.rv-room .filt .fgrp .label{flex-basis:100%;margin-bottom:4px}
.rv-room .filt .fgrp button{min-height:44px;padding:0 12px;border-radius:10px;color:var(--muted)}
.rv-room .filt .fgrp button[aria-pressed=true]{background:var(--bg3);color:var(--ink)}
.rv-room .filt [role=status]{color:var(--muted)}
/* the same panel in its dialog (room-fit.js filterDialog, the Leads filter): the search, each filter, the count */
.rv-filter-dialog .filt{display:flex;flex-direction:column;align-items:stretch;gap:20px;margin:0;padding:0;border:0}
.rv-filter-dialog .filt .fld{display:grid;gap:8px;flex:none;max-width:none;margin:0}
.rv-filter-dialog .filt .fgrp{display:flex;flex-wrap:wrap;align-items:center;flex:none;gap:4px;margin:0;padding:0}
.rv-filter-dialog .filt .fgrp .label{flex-basis:100%;margin-bottom:8px}
.rv-filter-dialog .filt .fgrp button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0 12px;border:0;border-radius:10px;background:none;color:var(--muted);font:var(--w-mid) var(--t-row)/1.2 var(--body);letter-spacing:0}
.rv-filter-dialog .filt .fgrp button[aria-pressed=true]{background:var(--bg3);color:var(--ink)}
.rv-filter-dialog .filt .fgrp button::after{display:none}
.rv-filter-dialog .filt > p{min-height:0;color:var(--muted);font:var(--w-row) var(--t-row)/1.4 var(--body);letter-spacing:0}
/* Money's search and filter (money.js filterBar) in the same dialog */
.rv-filter-dialog .filters{display:flex;flex-direction:column;gap:20px}
.rv-filter-dialog .filter-fields{display:grid;gap:20px}
.rv-filter-dialog .filter-fields label{display:grid;gap:8px;min-width:0}
.rv-filter-dialog .filter-fields label > span{color:var(--muted)}
.rv-filter-dialog .filters > [role=status]{color:var(--muted)}

/* the legacy chosen-word underline gives way to the raised or blue choice */
.rv-room .rv-seg label::after,.rv-room .filt .fgrp button::after,.rv-room-dialog .seg label::after,.rv-room .pick button::after,.rv-room-dialog .pick button::after{display:none}

/* THE WORK: soft panels, groups named in small grey words, compact rows with a disclosure arrow */
.rv-room .rv-panel{background:var(--bg2);border-radius:12px;padding:4px 16px 8px;min-width:0}
.rv-room .rv-grp > h2,.rv-room .rv-label,.rv-room .label,.rv-room-dialog .label{display:block;font:var(--w-mid) var(--t-label)/16px var(--body);letter-spacing:0;text-transform:none;color:var(--muted)}
.rv-room .rv-grp > h2{padding-top:12px;font-weight:var(--w-strong);color:var(--ink)}
.rv-room .rv-grp:not(:has(li:not([hidden]))){display:none}
.rv-room .rv-row{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"rt chev" "rm rm";align-items:center;gap:4px 12px;width:100%;min-height:44px;padding:10px 0;border:0;border-top:1px solid var(--line);background:none;color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.rv-room li:first-child > .rv-row,.rv-room li[hidden] + li > .rv-row,.rv-room .rv-grp > h2 + ol > li:not([hidden]):first-child > .rv-row{border-top:0}
.rv-room .rv-row:hover .rv-chev,.rv-room .rv-row:hover .rv-n{color:var(--ink)}
.rv-room .rv-row:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:8px}
.rv-room .rv-rt{grid-area:rt;display:flex;flex-direction:column;gap:2px;min-width:0}
.rv-room .rv-rt span{display:block;margin:0}
.rv-room .rv-n{font-size:var(--t-row);font-weight:var(--w-mid);color:var(--ink);overflow-wrap:anywhere}
.rv-room .rv-sub{font-size:var(--t-label);color:var(--muted);overflow-wrap:anywhere}
.rv-room .rv-rm{grid-area:rm;flex:none;max-width:none;text-align:left;min-width:0;color:var(--muted);overflow-wrap:anywhere;text-wrap:pretty}
.rv-room .rv-rm b{font-weight:var(--w-mid);color:var(--ink)}
.rv-room .rv-chev{grid-area:chev;width:16px;height:16px;flex:none;color:var(--muted)}
.rv-room .rv-row.dn .rv-n,.rv-room .old .rv-n{color:var(--muted)}
.rv-room .rv-empty{padding:12px 0;color:var(--muted)}
.rv-room .rv-say{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:20px 16px}
.rv-room .rv-say p{color:var(--muted)}
.rv-room .rv-say p b{font-weight:var(--w-mid);color:var(--ink)}
.rv-room .rv-say a,.rv-room-dialog .go a{color:var(--accent)}
/* a link inside the sentence keeps a full tap height without moving the line */
.rv-room .rv-say p a{padding-block:14px}
.rv-room .rv-pager{margin:4px 0 0;padding-top:8px;border-top:1px solid var(--line)}
.rv-room .rv-pager span{color:var(--muted)}

/* rows inside a room's dialogs read as they do in the room */
.rv-room-dialog .rv-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,auto) auto;grid-template-areas:"rt rm chev";align-items:center;gap:4px 16px;width:100%;min-height:44px;padding:10px 0;border:0;border-top:1px solid var(--line);background:none;color:var(--ink);font:inherit;text-align:left;text-decoration:none}
.rv-room-dialog li:first-child > .rv-row{border-top:0}
.rv-room-dialog .rv-rt{grid-area:rt;display:flex;flex-direction:column;gap:2px;min-width:0}
.rv-room-dialog .rv-n{font-size:var(--t-row);font-weight:var(--w-mid);color:var(--ink);overflow-wrap:anywhere}
.rv-room-dialog .rv-sub,.rv-room-dialog .rv-rm{font-size:var(--t-label);color:var(--muted);overflow-wrap:anywhere}
.rv-room-dialog .rv-rm{grid-area:rm;text-align:right}
.rv-room-dialog .rv-chev{grid-area:chev;width:16px;height:16px;color:var(--muted)}
.rv-room-dialog .rv-empty{color:var(--muted);padding:12px 0}

/* buttons: the one primary action blue, the rest raised */
.rv-room .btn,.rv-room-dialog .btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 16px;border:0;border-radius:10px;background:var(--accent);color:var(--accent-ink);font:var(--w-strong) var(--t-row)/1.2 var(--body);transform:none}
.rv-room .btn.ghost,.rv-room-dialog .btn.ghost,.rv-room .btn.retry,.rv-room .quiet.btn{background:var(--bg3);color:var(--ink)}
.rv-room .btn:disabled,.rv-room-dialog .btn:disabled{opacity:.6}

/* THE DIALOGS: a record or form, centred, scrolling inside itself */
.rv-room-dialog{font-size:var(--t-row);font-weight:var(--w-row);line-height:1.4}
.rv-room-dialog .rv-dialog-body p,.rv-room-dialog .rv-dialog-body ol,.rv-room-dialog .rv-dialog-body ul{margin:0}
.rv-room-dialog .rv-dialog-body ol,.rv-room-dialog .rv-dialog-body ul{list-style:none;padding:0}
.rv-room-dialog .rv-dialog-head button{min-height:44px;padding:0 12px;border-radius:10px;color:var(--muted);font-weight:var(--w-mid)}
.rv-room-dialog .rv-dialog-head h2{overflow-wrap:anywhere;min-width:0;outline:none}
/* a record's facts: label left, value right, ruled */
.rv-room-dialog .card{border-top:1px solid var(--line)}
.rv-room-dialog .card .f{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 16px;padding:12px 0;border-bottom:1px solid var(--line)}
.rv-room-dialog .card .f .k{color:var(--muted);font:var(--w-row) var(--t-row)/1.4 var(--body);letter-spacing:0}
.rv-room-dialog .card .f .v{flex:1 1 9rem;min-width:0;text-align:right;color:var(--ink);overflow-wrap:anywhere;text-wrap:pretty}
.rv-room-dialog .card .f .v i{font-style:normal;color:var(--muted)}
.rv-room-dialog .card .f .v:has(.lk){display:flex;flex-wrap:wrap;justify-content:flex-end;gap:0 16px}
.rv-room-dialog .lk{display:inline-flex;align-items:center;min-height:44px;color:var(--accent);text-decoration:underline;text-underline-offset:4px;overflow-wrap:anywhere}
/* forms: label over field, fields full width, Save blue */
.rv-room-dialog form{display:grid;gap:16px}
.rv-room-dialog .fld{position:relative;display:grid;gap:8px;min-width:0;margin:0;padding:0;border:0}
.rv-room-dialog .fld legend{padding:0;margin-bottom:8px}
/* a field's own label is read before typing: body size, not the 14px group label */
.rv-room-dialog .fld > .label,.rv-room-dialog .fld > legend,.rv-room-dialog .fld > legend .label{font-size:var(--t-row);line-height:20px}
.rv-room-dialog input:not([type=radio]):not([type=checkbox]),.rv-room-dialog select,.rv-room-dialog textarea,.rv-room .filt input{width:100%;min-height:48px;padding:10px 12px;border:1px solid var(--line2);border-radius:10px;background:var(--bg);color:var(--ink);font:var(--w-row) var(--t-row)/1.4 var(--body)}
.rv-room-dialog textarea{min-height:96px;resize:vertical}
.rv-room-dialog [aria-invalid=true]{border-color:var(--accent)!important}
.rv-room-dialog .seg{display:flex;flex-wrap:wrap;gap:4px}
.rv-room-dialog .seg label{position:relative;display:inline-flex}
.rv-room-dialog .seg input{position:absolute;inset:0;opacity:0;margin:0;min-height:0;cursor:pointer}
.rv-room-dialog .seg span{display:inline-flex;align-items:center;min-height:44px;padding:0 12px;border-radius:10px;border:1px solid var(--line);color:var(--muted)}
.rv-room-dialog .seg input:checked + span{background:var(--accent);border-color:var(--accent);color:var(--accent-ink);font-weight:var(--w-mid)}
.rv-room-dialog .seg input:focus-visible + span{outline:2px solid var(--accent);outline-offset:2px}
.rv-room-dialog .seg input:disabled + span{opacity:.5}
.rv-room-dialog .seg label:has(input:disabled){cursor:default}
.rv-room-dialog .go{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px}
.rv-room-dialog .go [role=status]{color:var(--muted)}
.rv-room-dialog details.sub{margin-top:20px}
.rv-room-dialog details.sub > summary{display:flex;align-items:center;min-height:44px;color:var(--ink);font-weight:var(--w-mid);cursor:pointer}
.rv-room-dialog .hops{display:grid;grid-template-columns:auto minmax(0,1fr);gap:0 16px}
.rv-room-dialog .hop{grid-column:1 / -1;display:grid;grid-template-columns:subgrid;align-items:baseline;padding:8px 0;border-top:1px solid var(--line)}
.rv-room-dialog .hop .t{color:var(--muted);white-space:nowrap;font-family:var(--body);font-size:var(--t-row)}
.rv-room-dialog .hop .l{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 12px;min-width:0;color:var(--muted)}
.rv-room-dialog .hop .l b{font-weight:var(--w-mid);color:var(--ink)}

/* the list's own quiet controls, under its panel */
.rv-room .rv-foot{display:flex;flex-wrap:wrap;align-items:center;gap:4px 20px;margin-top:-8px}
.rv-room .rv-link{display:inline-flex;align-items:center;min-height:44px;padding:0;border:0;background:none;color:var(--accent);font:var(--w-mid) var(--t-row)/1.2 var(--body);cursor:pointer}
.rv-room .rv-link:disabled{color:var(--muted);cursor:default}
.rv-room .rv-foot [role=status]{color:var(--muted);flex-basis:100%}
.rv-room-dialog .pr{color:var(--muted);margin-bottom:4px}
.rv-room-dialog .read p + p{margin-top:8px}
.rv-room-dialog .read b{font-weight:var(--w-mid);color:var(--ink)}
.rv-room-dialog .read{color:var(--muted)}

/* CLIENTS: an opened client's sections, each a ruled list of lines (the thing left, its figure and source right) */
.rv-client-card .sub{display:block;margin-top:20px;padding:0}
.rv-client-card .sub > .label{margin:0 0 8px;font:var(--w-strong) var(--t-section)/24px var(--display);color:var(--ink)}
.rv-client-card .sub > summary{justify-content:space-between;gap:12px;font:var(--w-strong) var(--t-section)/24px var(--display)}
.rv-client-card .sub > summary::after{content:"";width:7px;height:7px;border:solid var(--muted);border-width:0 1px 1px 0;transform:rotate(45deg);margin-right:4px}
.rv-client-card .sub[open] > summary::after{transform:rotate(225deg)}
.rv-client-card .ln{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 16px;padding:12px 0;border-top:1px solid var(--line);color:var(--ink);text-decoration:none}
.rv-client-card a.ln:hover .l > span:first-child{text-decoration:underline;text-underline-offset:4px}
.rv-client-card .ln .l{display:flex;flex-direction:column;gap:2px;min-width:0;overflow-wrap:anywhere}
.rv-client-card .ln .l i{font-style:normal;color:var(--muted)}
.rv-client-card .ln .r{display:flex;flex-direction:column;align-items:flex-end;gap:2px;margin-left:auto;color:var(--muted);text-align:right;font-family:var(--body);font-size:var(--t-row);letter-spacing:0}
.rv-client-card .ln .r > *{white-space:normal}
.rv-client-card .ln .r:empty{display:none}
.rv-client-card .a.known,.rv-room .a.known{color:var(--ink);font-weight:var(--w-mid)}
.rv-client-card .terms{color:var(--ink);white-space:pre-wrap;overflow-wrap:anywhere;padding-top:8px}
.rv-client-card .pick{display:flex;flex-wrap:wrap;gap:8px;padding:0}
.rv-client-card .sub [role=status]{color:var(--muted);padding-top:8px}
.rv-client-card form{margin-top:20px;padding-top:20px;border-top:1px solid var(--line)}
.rv-client-card .rv-dialog-body > form:first-child{margin-top:0;padding-top:0;border-top:0}
.rv-client-card .go .quiet{min-height:44px;color:var(--muted)}
.rv-client-card .go [role=alert]{color:var(--ink);flex-basis:100%}

/* QUEUE, the item's own parts (moved from queue.js) */
.q .ctx{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px}
.q .ctx .chan{min-width:0;color:var(--dim);overflow-wrap:anywhere}
.q .ctx .chan b{font-weight:var(--w-row);color:var(--ink)}
.q .whyb{flex:none;display:flex;align-items:center;min-height:44px;color:var(--muted)}
.q .whyb span{padding:4px 8px;border:1px solid var(--line2);border-radius:var(--r-tag);background:var(--bg3)}
.q .whyb:hover span,.q .whyb[aria-expanded=true] span{border-color:var(--dim);color:var(--ink)}
.q .qw-scrim{position:fixed;left:0;right:0;top:0;bottom:var(--qw-foot,0px);z-index:60;background:rgba(20,26,36,.7)}
.q .qw{position:fixed;left:0;right:0;bottom:var(--qw-foot,0px);display:flex;flex-direction:column;max-height:calc(100svh - var(--qw-foot,0px) - 48px);padding:4px 16px 8px;color:var(--ink);background:var(--bg2);border-top:1px solid var(--line2);animation:qarrive .18s ease-out both}
.q .qw{min-width:0;overflow-x:hidden}
.q .qw-head{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;border-bottom:1px solid var(--line2)}
.q .qw-head .quiet{text-align:right}
.q .qw-facts{min-height:0;overflow-y:auto;overscroll-behavior:contain}
.q .qw-facts .f{display:grid;grid-template-columns:96px minmax(0,1fr);column-gap:12px;align-items:baseline;padding:12px 0;border-bottom:1px solid var(--line)}
.q .qw-facts .f:last-child{border-bottom:0}
.q .batch{display:none}
.q .qw-facts dd{min-width:0;display:grid;gap:2px;overflow-wrap:anywhere;word-break:break-word;text-wrap:pretty}
.q .qw-facts .sec{color:var(--muted)}
.q .qw-facts .nos{color:var(--dim)}
.q .qw-facts .lk{display:flex;align-items:center;min-height:44px;margin:-12px 0;color:var(--ink)}
.q .qw-facts .lk u{text-underline-offset:3px;overflow-wrap:anywhere}
.q .qw-facts .lk:hover u{text-decoration-thickness:2px}
.q .sheet{background:var(--bg2);border-top:1px solid var(--line2)}
.q .words{font-size:var(--t-row);font-weight:var(--w-row);line-height:1.45;color:var(--ink);text-wrap:pretty;overflow-wrap:anywhere}
.q .words p + p{margin-top:8px}
.q .subj{display:flex;align-items:baseline;gap:12px;margin-bottom:8px;padding-bottom:8px;border-bottom:1px solid var(--line)}
.q .sheet .subj .label{margin:0;flex:none}
.q .sheet .label,.q .words .label{display:block;margin-bottom:4px}
.q .words .label:not(:first-child){margin-top:16px}
.q .words .they{color:var(--muted)}
.q .askq{font-family:var(--display);font-weight:var(--w-strong);font-size:var(--t-room);letter-spacing:-.02em;line-height:1.25;text-wrap:balance;margin-bottom:12px}
.q .acts .quiet{text-align:center}
.q .acts .ctl{flex:1}
.q .ctl{min-height:46px;min-width:0;padding:8px 4px;text-align:center;white-space:nowrap;color:var(--ink);background:var(--bg3);border:1px solid var(--line2);border-radius:var(--r-ctl)}
.q .ctl:hover{border-color:var(--dim)}
.q .after > .label{display:block;margin-bottom:4px}
.q .out{display:flex;gap:8px}
.q .out .ctl{flex:1 1 auto;padding:8px 12px}
.q .dock .fld{padding-top:8px}
.q .after .fld{padding:0;margin:8px 0 12px}
.q .after .fld textarea{min-height:46px;height:46px;max-height:calc(20px + 3 * 1.45 * var(--t-row));padding:8px 12px;overflow:hidden;resize:none}
.q .after .fld textarea.full{overflow-y:auto}
.q .peek{padding:4px 0;border-top:1px solid var(--line);color:var(--dim)}
.q .dock > .peek:first-child{border-top:0;padding-top:8px}
.q .peek.no,.q .peek.did{color:var(--ink)}
.q .sheet .fld + .fld{margin-top:16px}
.q .sheet .fld textarea{resize:none;overflow:hidden}
@keyframes qarrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.q .arrive{animation:qarrive .18s ease-out both}
@media (prefers-reduced-motion:reduce){.q .arrive,.q .qw{animation:none}}

@media (min-width:1024px){
  .q .ltr{display:flex;flex-direction:column}
  .q .qw-scrim{bottom:0;clip-path:polygon(evenodd,0 0,100% 0,100% 100%,0 100%,0 0,var(--qw-l,0px) var(--qw-t,0px),var(--qw-r,0px) var(--qw-t,0px),var(--qw-r,0px) var(--qw-b,0px),var(--qw-l,0px) var(--qw-b,0px),var(--qw-l,0px) var(--qw-t,0px))}
  .q .qw{left:50%;right:auto;bottom:auto;top:calc((100svh - var(--qw-foot,0px)) / 2);translate:-50% -50%;width:560px;max-width:calc(100vw - 48px);padding:8px 32px 20px;border:1px solid var(--line2)}
  .q .words p + p{margin-top:12px}
  .q .out{justify-content:flex-start}
  .q .out .ctl{flex:none;padding:8px 16px}
  .q .peek{display:none}
  .q .peek.stay{display:block;margin-top:12px;border-top:0}
  .q .batch{display:block;margin-top:32px;padding-top:16px;border-top:1px solid var(--line);color:var(--dim)}
  .q .batch .label{display:block;margin-bottom:8px}
  .q .batch li{display:flex;gap:8px;padding:4px 0}
  .q .batch li[aria-current=true]{color:var(--ink)}
}

/* QUEUE: the item in its panel (who it goes to and Why this one, the letter held to the window, its actions), the
   overview beside it from 1024 (under it below, its long lists in dialogs). The Why sheet keeps its own scrim, which
   leaves the actions lit. */
.rv-queue .rv-seg i{margin-left:8px;font-style:normal;color:var(--muted)}
.rv-queue .stage{display:grid;gap:20px;min-width:0}
.rv-queue .lane,.rv-queue .side{min-width:0}
.rv-queue .item.rv-panel{padding:8px 16px 16px}
.rv-queue .item:focus{outline:none}
.rv-queue .q .ctx .chan,.rv-queue .q .whyb,.rv-queue .q .peek,.rv-queue .q .batch{font-family:var(--body);font-size:var(--t-row);letter-spacing:0}
.rv-queue .q .ctx .chan{color:var(--muted)}
.rv-queue .q .ctx .chan b{font-weight:var(--w-mid)}
.rv-queue .q .whyb span{padding:6px 12px;border-radius:10px;border-color:var(--line2)}
.rv-queue .q .sheet textarea[name=message]{overflow-y:auto}
/* below 1024, Edit and Reject take the page: the view switch and the overview links come back with Cancel */
@media (max-width:1023px){.rv-queue:has(form.ltr) .rv-head .rv-tools,.rv-queue:has(form.ltr) .side,.rv-queue:has(form.ltr) .q-products{display:none}}
.rv-queue .q .sheet{background:none;border-top:1px solid var(--line);padding:16px 0;overflow:auto;overscroll-behavior:contain}
.rv-queue .q .acts{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding-top:16px}
.rv-queue .q .acts .btn{flex:1 1 160px}
.rv-queue .q .acts .quiet{min-height:48px;padding:0 20px;border-radius:10px;background:var(--bg3);color:var(--ink);font-weight:var(--w-mid)}
.rv-queue .q .yn{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding-top:16px}
.rv-queue .q .ctl{min-height:48px;border-radius:10px}
.rv-queue .q .after{padding-top:16px}
.rv-queue .q .peek{padding:8px 0 0;border-top:0;color:var(--muted)}
.rv-queue .q .peek.no,.rv-queue .q .peek.did{color:var(--ink)}
.rv-queue .q .fld{display:grid;gap:8px}
.rv-queue .q input:not([type=radio]),.rv-queue .q textarea{width:100%;min-height:48px;padding:10px 12px;border:1px solid var(--line2);border-radius:10px;background:var(--bg);color:var(--ink);font:var(--w-row) var(--t-row)/1.45 var(--body)}
.rv-queue .q .qw{background:var(--bg2);border-radius:12px 12px 0 0}
.rv-queue .q .qw-head .label{font-size:var(--t-row);color:var(--ink);font-weight:var(--w-strong)}
.rv-queue .q .qw-head .quiet{min-height:44px;padding:0 12px;color:var(--muted);font-weight:var(--w-mid)}
.rv-queue .q .qw-facts .f dt{font-size:var(--t-row)}
.rv-queue .read p + p{margin-top:8px}
.rv-queue .read b{font-weight:var(--w-mid);color:var(--ink)}
/* the overview: Needs attention and Recent decisions */
.rv-room .att{display:flex;flex-direction:column;padding-bottom:12px}
.rv-room .att h3{padding-top:16px;font:var(--w-strong) var(--t-head)/22px var(--display);color:var(--ink)}
.rv-room .att .att-say{color:var(--muted);margin-top:4px}
.rv-room .att .att-note,.rv-room-dialog .att-note{padding-top:12px;font:var(--w-mid) var(--t-meta)/16px var(--body);color:var(--muted)}
.rv-room .att .att-read{color:var(--muted);padding-top:8px}
.rv-room .att .att-wide{display:none}
@media (max-width:1023px){.rv-room .att{background:none;padding:0;margin-top:-8px}.rv-room .att h3{display:none}.rv-room .att .rv-foot{margin-top:0}}
.rv-room .att .rv-pager{margin-top:0}
.rv-room .att .att-retry{margin-top:8px}
@media (min-width:1024px){
  .rv-queue .stage{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);align-items:start;gap:24px 32px}
  .rv-queue .item.rv-panel{padding:16px 16px 24px}
  .rv-queue .q .acts .btn,.rv-queue .q .acts .quiet{flex:0 0 auto}
  .rv-queue .q .acts .btn{min-width:180px}
  .rv-queue .q .qw{border-radius:12px}
  .rv-queue .q .batch{margin-top:16px;padding-top:12px;color:var(--muted)}
  /* while he edits or rejects, the batch list gives the form its room (the heading still says where this one sits) */
  .rv-queue .lane:has(form.ltr) .batch{display:none}
  .rv-queue .q .batch .label{margin-bottom:4px}
  .rv-room .att .att-wide{display:block}
  .rv-room .att .att-narrow{display:none}
}

/* DEALS: the read in the row, and the card's Deadline said as a whole day while it rests */
.rv-deals .rv-rm .p{white-space:normal}
.rv-deal-card .rv-dialog-body .ps{color:var(--muted)}
.rv-deal-card .rv-dialog-body .pr{margin:4px 0 20px;color:var(--muted)}
.rv-deal-card .pr b,.rv-deals .rv-rm b{font-weight:var(--w-mid);color:var(--ink)}
.rv-deal-card .card .keep{margin-top:20px}
.rv-deal-card .terms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:16px;border-radius:12px;background:var(--bg3)}
.rv-deal-card .terms .w2,.rv-deal-card .terms .label.w2{grid-column:1 / -1}
.rv-deal-card .terms .hint{color:var(--muted);font-family:var(--body);font-size:var(--t-row)}
.rv-deal-card .fld .dw{position:absolute;left:13px;right:44px;bottom:0;height:48px;display:flex;align-items:center;pointer-events:none;color:var(--ink);white-space:nowrap}
.rv-deal-card .fld .dw.blank{color:var(--muted)}
@supports selector(::-webkit-datetime-edit){
  .rv-deal-card input[name=due]:not(:focus)::-webkit-datetime-edit{opacity:0}
  .rv-deal-card input[name=due]:focus + .dw{display:none}
}
@supports not selector(::-webkit-datetime-edit){.rv-deal-card .fld .dw{display:none}}

/* a short window (the folded phone) keeps the page's own breathing room small, never the gaps between groups */
@media (max-height:760px){.rv-room{padding-block:4px}}

/* WIDER: the read sits at the row's right; more room around the page */
@media (min-width:700px){
  .rv-room{--rv-gut:8px;padding-block:12px}
  .rv-room .rv-row{grid-template-columns:minmax(0,1fr) minmax(0,auto) auto;grid-template-areas:"rt rm chev";gap:4px 16px}
  .rv-room .rv-rm{max-width:46ch;text-align:right}
}
@media (min-width:1024px){
  .rv-room{--rv-gut:16px;padding-block:16px}
  .rv-room .rv-panel{padding:4px 16px 8px}
  .rv-room .rv-grp > h2{padding-top:16px}
}
@media (max-width:699px){
  /* a row is two lines on the phone: the name, then what it is beside where it stands */
  .rv-room .rv-row{grid-template-columns:minmax(35%,1fr) minmax(0,auto) auto;grid-template-areas:"n n chev" "sub rm chev";column-gap:16px}
  .rv-room .rv-rm{overflow-wrap:break-word}
  .rv-room .rv-rt{display:contents}
  .rv-room .rv-rt .rv-n{grid-area:n}
  .rv-room .rv-rt .rv-sub{grid-area:sub}
  .rv-room .rv-rm{text-align:right}
  .rv-deal-card .terms{grid-template-columns:minmax(0,1fr)}
}
.rv-client-card .ln .r span:empty{display:none}
.rv-room .rv-rt .rv-n,.rv-room-dialog .rv-rt .rv-n{text-wrap:wrap;margin:0}

/* MONEY: the month, Export and Record cost in the heading; the view switch; the figures and the first ledger table on
   the page; every other section a row into Money's own dialog (its handlers and save recovery unchanged) */
.rv-room.rv-money{gap:16px;padding:4px var(--rv-gut);margin:0 auto;max-width:1040px}
/* Recorded costs and App usage are places in the view switch itself */
.rv-room.rv-money .cost-sections{display:none}
/* a view with entries keeps them on the page; its other sections, the export and the notes are one row away */
.rv-room.rv-money .rv-money-body:has(.rv-entries) .rv-money-list,.rv-room.rv-money .rv-money-body:has(.rv-entries) .rv-money-more > .rv-pager{display:none}
.rv-room.rv-money .rv-money-body:has(.rv-entries) .rv-money-all{display:grid}
.rv-room.rv-money .rv-money-all{border-top:0}
.rv-room.rv-money .rv-table-wrap{display:none}
.rv-room.rv-money .cost-sections{margin:-8px 0 0}
.rv-room.rv-money dialog .card{border-top:1px solid var(--line)}
.rv-room.rv-money dialog .card .f{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 16px;padding:12px 0;border-bottom:1px solid var(--line)}
.rv-room.rv-money dialog .card .f .k{color:var(--muted)}
.rv-room.rv-money dialog .card .f .v{flex:1 1 9rem;min-width:0;text-align:right;overflow-wrap:anywhere}
.rv-room.rv-money dialog .card .f .v .read{display:block;color:var(--muted);font-family:var(--body);font-size:var(--t-row);letter-spacing:0}
/* Money's own explanations, figures and column heads (money.js's inline 12/15px) read at the console's sizes: prose in
   Inter at 16, heads at the 14px label size */
.rv-room.rv-money .read,.rv-room.rv-money .fact .value small{font-family:var(--body);font-size:var(--t-row);letter-spacing:0;line-height:1.5}
.rv-room.rv-money :is(.summary p,.num,.fact .value,.subnav button){font-size:var(--t-row)}
.rv-room.rv-money th{font:var(--w-mid) var(--t-meta)/16px var(--body);letter-spacing:0}
@media (max-width:699px){
  .rv-room.rv-money section:has(> .rv-entries) > h2{display:none}
  .rv-room.rv-money .rv-money-body:has(.rv-entries) .rv-money-list,.rv-room.rv-money .rv-money-body:has(.rv-entries) .rv-money-more > .rv-pager{display:none}
  .rv-room.rv-money .rv-money-body:has(.rv-entries) .rv-money-all{display:grid}
}
.rv-room.rv-money .rv-views-btn{display:none}
.rv-room.rv-money .rv-money-all{display:none}
.rv-room.rv-money .rv-money-list{margin:0}
@media (max-width:699px){
  .rv-room.rv-money .subnav,.rv-room.rv-money .cost-sections{display:none}
  .rv-room.rv-money .rv-views-btn{display:grid;padding:0 16px;border-radius:12px;background:var(--bg2)}
  .rv-room.rv-money .rv-views-btn .rv-sub{font-size:var(--t-meta);line-height:20px}
}
@media (max-width:699px) and (max-height:760px){
  .rv-room.rv-money .rv-count{display:none}
  .rv-room.rv-money .rv-money-list,.rv-room.rv-money .rv-money-more > .rv-pager{display:none}
  .rv-room.rv-money .rv-money-all{display:grid}
}
.rv-room.rv-money .rv-tools{flex-wrap:nowrap}
.rv-room.rv-money .rv-tools .btn{padding:0 16px}
.rv-room.rv-money .rv-month input{width:168px;min-height:48px;padding:0 10px;border:1px solid var(--line2);border-radius:10px;background:var(--bg2);color:var(--ink);font:var(--w-mid) var(--t-row)/1 var(--body)}
.rv-room.rv-money .rv-seg button{border:0;background:none;min-height:44px}
.rv-room.rv-money .rv-seg button::after{display:none}
.rv-room.rv-money .subnav,.rv-room.rv-money .cost-sections{margin:0;padding:0;border:0;gap:4px}
.rv-room.rv-money .status:empty{display:none}
.rv-room.rv-money .status{color:var(--ink)}
.rv-room.rv-money .rv-money-body{display:flex;flex-direction:column;gap:16px;min-width:0}
.rv-room.rv-money .rv-money-body > .summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 24px;margin:0;padding:16px 16px;border:0;border-radius:12px;background:var(--bg2)}
.rv-room.rv-money .rv-money-body > .summary > div{min-width:0}
.rv-room.rv-money .rv-money-body > .summary p{margin:0;color:var(--muted);font-size:var(--t-meta);line-height:20px}
.rv-room.rv-money .rv-money-body > .summary .amount{margin-top:4px;font:var(--w-row) var(--t-head)/24px var(--mono);letter-spacing:0;color:var(--ink);overflow-wrap:anywhere}
.rv-room.rv-money .rv-money-body > .summary .read{display:none}
.rv-room.rv-money .rv-money-body > section,.rv-room.rv-money #money-cost-content > section:not(.app-usage){margin:0;padding:16px 16px 12px;border:0;border-radius:12px;background:var(--bg2);min-width:0}
.rv-room.rv-money .rv-money-body > section > h2,.rv-room.rv-money #money-cost-content > section > h2{font:var(--w-strong) var(--t-head)/22px var(--display);letter-spacing:-.01em;margin:0 0 4px}
.rv-room.rv-money .rv-money-body .read,.rv-room.rv-money .rv-money-body .under{font-family:var(--body);font-size:var(--t-row);letter-spacing:0;color:var(--muted)}
.rv-room.rv-money .rv-money-body table{width:100%;margin-top:8px}
.rv-room.rv-money .rv-money-more{padding:4px 16px 8px}
.rv-room.rv-money .rv-money-body .rv-money-more{padding:4px 16px 8px}
.rv-room.rv-money #money-cost-content{display:flex;flex-direction:column;gap:16px}
.rv-room.rv-money dialog{box-sizing:border-box;width:min(680px,calc(100% - 32px));max-height:calc(100% - 32px);margin:auto;padding:0;border:1px solid var(--line2);border-radius:12px;background:var(--bg2);color:var(--ink)}
.rv-room.rv-money dialog::backdrop{background:rgba(20,26,36,.7)}
.rv-room.rv-money dialog form{display:flex;flex-direction:column;max-height:calc(100dvh - 34px)}
.rv-room.rv-money dialog #money-form-body{padding:24px;overflow:auto;overscroll-behavior:contain;min-height:0}
.rv-room.rv-money dialog #money-form-body > h2:first-child{font:var(--w-strong) var(--t-room)/26px var(--display);margin:0 0 16px}
.rv-room.rv-money dialog .actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:12px;padding:16px 16px;border-top:1px solid var(--line)}
.rv-room.rv-money dialog .save-error:empty{display:none}
.rv-room.rv-money dialog .save-error{padding:0 24px;color:var(--ink)}
.rv-room.rv-money dialog .actions .quiet{min-height:48px;padding:0 20px;border-radius:10px;background:var(--bg3);color:var(--ink);font-weight:var(--w-mid)}
.rv-room.rv-money .rv-money-section > *+*{margin-top:16px}
/* the totals in their dialog: two columns of figures at the pinned figure size, one column on a phone */
.rv-room.rv-money .rv-money-section .summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 24px;margin:0;padding:0;border:0}
.rv-room.rv-money .rv-money-section .summary > div{min-width:0;padding:0;border:0}
.rv-room.rv-money .rv-money-section .summary > div > p:first-child{margin:0;font-size:var(--t-meta);line-height:18px;color:var(--muted)}
.rv-room.rv-money .rv-money-section .summary .amount{margin:4px 0 8px;font:var(--w-row) var(--t-room)/26px var(--mono);letter-spacing:0;color:var(--ink);overflow-wrap:anywhere}
.rv-room.rv-money .rv-money-section .summary .read{display:block;margin:0;font-size:var(--t-row);line-height:20px;color:var(--muted)}
@media (max-width:699px){
  .rv-room.rv-money .rv-money-body > .summary{grid-template-columns:minmax(0,1fr);padding:12px 16px;gap:0}
  .rv-room.rv-money .rv-money-body > .summary > div{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:4px 16px;padding:8px 0;border-top:1px solid var(--line)}
  .rv-room.rv-money .rv-money-body > .summary > div:first-child{border-top:0}
  .rv-room.rv-money .rv-money-body > .summary > div{flex-wrap:nowrap}
  .rv-room.rv-money .rv-money-body > .summary p{flex:1 1 0;min-width:0;font-size:var(--t-row);line-height:22px}
  .rv-room.rv-money .rv-money-body > .summary .amount{flex:none;margin:0;font-size:var(--t-row);line-height:22px;text-align:right}
  .rv-room.rv-money .rv-money-body > section,.rv-room.rv-money #money-cost-content > section:not(.app-usage),.rv-room.rv-money .rv-money-body .rv-money-more{padding:12px 16px}
  .rv-room.rv-money dialog #money-form-body,.rv-room.rv-money dialog .actions{padding:20px}
  .rv-room.rv-money .rv-money-section .summary{grid-template-columns:minmax(0,1fr);gap:16px}
}

/* APP USAGE (inside Money): the month's two figures, the apps as rows, each app and the counting notes in a dialog */
.rv-room.rv-money .app-usage{display:flex;flex-direction:column;gap:16px;min-width:0}
.rv-room.rv-money .usage-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:0 16px;margin:-8px 0 0}
.rv-room.rv-money .app-usage > *{margin:0}
.rv-room.rv-money .usage-top .read,.rv-room.rv-money .usage-facts .read{font-family:var(--body);font-size:var(--t-row);letter-spacing:0;color:var(--muted)}
.rv-room.rv-money .usage-sum,.rv-room.rv-money .usage-apps{padding:12px 16px 8px}
.rv-room.rv-money .usage-facts p{display:flex;justify-content:space-between;gap:16px;margin:0;padding:8px 0}
.rv-room.rv-money .usage-facts p span{color:var(--muted)}
.rv-room.rv-money .usage-facts p b{font:var(--w-row) var(--t-row)/1.4 var(--mono);color:var(--ink)}
.rv-room.rv-money .usage-facts p.read{display:block;padding-top:0}
.rv-room.rv-money .usage-sum ul{border-top:1px solid var(--line)}
.usage-dialog .usage-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin-bottom:12px}
.usage-dialog .read{display:block;color:var(--muted);font-family:var(--body);font-size:var(--t-row);letter-spacing:0}
.usage-dialog h3{font:var(--w-strong) var(--t-head)/22px var(--display);margin:16px 0 4px}
.usage-dialog p + p{margin-top:8px}
.usage-dialog details{border-top:1px solid var(--line);padding:4px 0}
.usage-dialog summary{min-height:44px;display:flex;align-items:center;gap:8px;cursor:pointer}
@media (max-width:699px){.rv-room.rv-money .usage-sum,.rv-room.rv-money .usage-apps{padding:8px 16px}}
.rv-room.rv-money .app-usage,.rv-room.rv-money [data-usage-content] > section{margin:0}
.rv-room.rv-money [data-usage-content]{display:flex;flex-direction:column;gap:16px}
.rv-room.rv-money .usage-facts p,.rv-room.rv-money .usage-top p{max-width:none}

/* STATEMENTS (inside Money): recording first, then accounts, saved statements and current activity as rows; a record,
   a form, each import step and a receipt in the module's own dialog */
.rv-room.rv-money .bankflow{display:flex;flex-direction:column;gap:8px;min-width:0}
.rv-room.rv-money .bankflow > *{margin:0}
.rv-room.rv-money .bankflow > .muted{color:var(--muted);margin-top:0}
.rv-room.rv-money .bankflow .launch{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 16px}
.rv-room.rv-money .bankflow .launch .field{flex:1 1 220px;display:grid;gap:8px;margin:0}
.rv-room.rv-money .bankflow .launch select{min-height:48px;padding:0 12px;border:1px solid var(--line2);border-radius:10px;background:var(--bg2);color:var(--ink);font:var(--w-row) var(--t-row)/1.4 var(--body)}
.rv-room.rv-money .bankflow .notice{margin:0;padding:10px 12px;border:0;border-radius:12px;background:var(--bg2);color:var(--ink)}
/* a link in a notice's sentence (Open Assets) is a plain hyperlink whose tap reaches 44px tall; inline padding grows
   its box without moving the lines around it */
.rv-room.rv-money .bankflow .notice a[href]{padding-block:14px;color:var(--ink);text-decoration:underline;text-underline-offset:3px}
/* a notice inside a notice (the read's line above its retry) is one panel, not a panel in a panel */
.rv-room.rv-money .bankflow .notice .notice{padding:0;border-radius:0;background:none}
.rv-room.rv-money .bankflow .notice > p:first-child{margin-top:0}
.rv-room.rv-money .bank-rows{padding:4px 16px 8px}
.rv-room.rv-money .bank-rows .rv-empty{margin:0;padding:10px 0}
.rv-room.rv-money .bank-rows{padding-block:8px}
.rv-room.rv-money .bankflow .rv-foot{margin-top:0}
.rv-room.rv-money .bankflow .rv-foot button{border:0;background:none;padding:0;min-height:44px;color:var(--accent);font:var(--w-mid) var(--t-row)/1.2 var(--body);text-decoration:none}
.rv-room.rv-money .bank-dialog{box-sizing:border-box;width:min(760px,calc(100% - 32px));max-height:calc(100% - 32px);margin:auto;padding:0;border:1px solid var(--line2);border-radius:12px;background:var(--bg2);color:var(--ink)}
.rv-room.rv-money .bank-dialog[open]{display:flex;flex-direction:column}
.rv-room.rv-money .bank-dialog::backdrop{background:rgba(20,26,36,.7)}
.rv-room.rv-money .bank-dialog-head{display:flex;justify-content:flex-end;padding:8px 12px 0}
.rv-room.rv-money .bank-dialog-head .quiet{min-height:44px;padding:0 12px;color:var(--muted);font-weight:var(--w-mid);text-decoration:none;border:0}
.rv-room.rv-money .bank-dialog-body{padding:0 24px 24px;overflow:auto;overscroll-behavior:contain;min-height:0}
.rv-room.rv-money .bank-dialog-body .stephead{border:0;padding:0;margin:0 0 16px}
.rv-room.rv-money .bank-dialog-body .stephead h2{font:var(--w-strong) var(--t-room)/26px var(--display);margin:0;outline:none}
.rv-room.rv-money .bank-dialog-body .read{display:block;color:var(--muted);font-family:var(--body);font-size:var(--t-row);letter-spacing:0}
.rv-room.rv-money .bank-dialog-body .card{border-top:1px solid var(--line)}
.rv-room.rv-money .bank-dialog-body .card .f{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 16px;padding:12px 0;margin:0;border-bottom:1px solid var(--line)}
.rv-room.rv-money .bank-dialog-body .card .f .k{color:var(--muted)}
.rv-room.rv-money .bank-dialog-body .card .f .v{flex:1 1 9rem;text-align:right;overflow-wrap:anywhere}
.rv-room.rv-money .bank-dialog-body .account-actions{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}
.rv-room.rv-money .bank-dialog-body .minornote{color:var(--muted)}
@media (max-width:699px){.rv-room.rv-money .bank-rows{padding:0 12px}.rv-room.rv-money .bank-dialog-body{padding:0 20px 20px}}
.rv-room.rv-money .bank-rows .rv-grp{margin:0;padding:0;border:0}
.rv-room.rv-money .bank-rows .rv-grp > h2{margin:0;padding-top:12px}
.rv-room.rv-money .bank-rows .rv-grp ol{margin:0}
/* on the phone each account's record carries its own Record statement, so the shortcut above the list steps aside */
@media (max-width:699px){.rv-room.rv-money .bankflow .launch{display:none}}
/* the account picker beside Record statement says its account; its label stays for screen readers */
.rv-room.rv-money .bankflow .launch .field > span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.rv-room.rv-money dialog .actions .quiet,.rv-room.rv-money .bank-dialog .quiet{text-decoration:none}
.rv-room .rv-row,.rv-room-dialog .rv-row{align-content:center}
.rv-room.rv-money .rv-money-body section .section-top{margin:0}
.rv-room.rv-money .rv-views-btn{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"n chev"}
/* the folded screen: the one row into the rest says only what it is */
@media (max-width:699px) and (max-height:760px){.rv-room.rv-money .rv-money-all .rv-sub{display:none}}
/* what Money just did, or the change it is still confirming, with its two ways forward */
.rv-room.rv-money .rv-money-state{display:flex;flex-direction:column;gap:0;padding:8px 12px 4px;border-radius:12px;background:var(--bg2)}
.rv-room.rv-money .rv-money-state .status{margin:0;color:var(--ink)}
.rv-room.rv-money .rv-money-state-acts{display:flex;flex-wrap:wrap;gap:0 20px}
.rv-room.rv-money .rv-views-line{display:contents}
@media (max-width:699px){
  .rv-room.rv-money .rv-views-line{display:flex;gap:12px}
  .rv-room.rv-money .rv-views-line .rv-views-btn{flex:1;min-width:0}
  .rv-room.rv-money .rv-views-line .ftog{min-height:44px;border-radius:12px}
  .rv-room.rv-money section:has(> .rv-entries) > .section-top{display:none}
}
@media (min-width:700px){.rv-room.rv-money .rv-views-line .ftog{display:none}}
/* the folded screen while a change waits: the line under the month steps aside for it */
@media (max-width:699px) and (max-height:760px){.rv-room.rv-money:has(.rv-money-state) .rv-head .rv-ans{display:none}}
/* the phone while a change waits: the sections are one row away, so the wait and the figures share the screen */
@media (max-width:699px){
  .rv-room.rv-money:has(.rv-money-state) .rv-money-list,.rv-room.rv-money:has(.rv-money-state) .rv-money-more > .rv-pager{display:none}
  .rv-room.rv-money:has(.rv-money-state) .rv-money-all{display:grid}
}
/* the folded screen while a change waits: the month picker says the month, so the title that repeats it is kept for
   screen readers only */
@media (max-width:699px) and (max-height:760px){.rv-room.rv-money:has(.rv-money-state) .rv-head:has(.rv-month) h2{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}}

/* ONE GLANCE (DESIGN.md "One glance"; public/rooms/room-fit.js): the pieces every page is built from. A page is a
   headline, one picture where there are numbers to compare, then rows of what needs Chris. The row, the section and
   the quiet count line came from Today (#186). A page's mount is the container "glance": under 720 of its own width a
   row keeps its title and grey line on the left, the time over its verb on the right. */
#room > div:has(> .rv-g-page) {container:glance / inline-size;}
.rv-g-page {display:flex;flex-direction:column;gap:20px;min-width:0;}
/* a room built on the older page frame starts at the top left like every glance page: no centring, no narrow column */
.rv-room.rv-g-page {justify-content:flex-start;max-width:none;margin:0;}
.rv-g-vh {position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}
/* the headline: one figure and its words, the one state mark beside it, a short line under it, the page's tools right */
.rv-g-head {display:flex;align-items:flex-start;justify-content:space-between;gap:8px 16px;}
.rv-g-hl {display:flex;align-items:center;flex-wrap:wrap;gap:0 12px;}
.rv-g-fig {margin:0;font-family:var(--display);font-size:var(--t-figure);line-height:34px;font-weight:var(--w-strong);letter-spacing:-.02em;text-wrap:balance;}
.rv-g-sub {margin:2px 0 0;color:var(--muted);text-wrap:pretty;}
.rv-g-tools {display:flex;flex:none;align-items:center;gap:8px;}
/* the one state mark: a quiet pill with a 44px target; its dialog lists what was not read */
.rv-g-mark {display:inline-flex;align-items:center;min-height:44px;margin:-5px 0;padding:0;border:0;background:none;color:var(--muted);font-size:var(--t-meta);}
.rv-g-mark span {display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 10px;border:1px solid var(--line2);border-radius:12px;}
.rv-g-mark span::before {content:"";width:6px;height:6px;border-radius:50%;box-shadow:inset 0 0 0 1.5px currentColor;}
.rv-g-mark:hover {color:var(--ink);}
.rv-g-missing {list-style:none;margin:0;padding:0;}
.rv-g-missing li {padding:10px 0;}
.rv-g-missing li + li {border-top:1px solid var(--line);}
/* bars: a name, its bar on a visible track, its number; the one that matters in blue; one not read is hollow */
.rv-g-bars {list-style:none;margin:0;padding:0;display:grid;grid-template-columns:max-content minmax(80px,1fr) minmax(72px,max-content);column-gap:20px;row-gap:2px;align-items:center;}
.rv-g-bars li {display:contents;}
.rv-g-bl {display:flex;align-items:center;min-height:36px;color:var(--muted);}
.rv-g-bt {height:14px;border-radius:7px;background:var(--bg2);overflow:hidden;}
.rv-g-bt i {display:block;height:100%;border-radius:7px;background:var(--muted);}
.rv-g-bv {font-family:var(--mono);font-size:var(--t-head);font-weight:var(--w-mid);line-height:28px;text-align:right;color:var(--ink);letter-spacing:0;}
.rv-g-bars .is-main .rv-g-bl {color:var(--ink);font-weight:var(--w-strong);}
.rv-g-bars .is-main .rv-g-bt i {background:var(--accent);}
.rv-g-bars .is-unread .rv-g-bt {background:none;box-shadow:inset 0 0 0 1.5px var(--line2);}
/* lights: a dot and a name; up in ink, needs Chris in blue, a problem in amber, not set up hollow */
.rv-g-lights {list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:2px 24px;}
.rv-g-lt {display:flex;align-items:center;gap:10px;min-height:36px;color:var(--ink);text-decoration:none;}
a.rv-g-lt {min-height:44px;}
.rv-g-lt .rv-tg {flex:none;}
.rv-g-lights:has(.rv-tg) {grid-template-columns:repeat(auto-fill,minmax(300px,1fr));}
a.rv-g-lt:hover {text-decoration:underline;text-underline-offset:3px;}
.rv-g-dot {flex:none;width:12px;height:12px;border-radius:50%;background:var(--ink);}
.rv-g-lt.is-needs .rv-g-dot {background:var(--accent);}
.rv-g-lt.is-broken .rv-g-dot {background:var(--amber);}
.rv-g-lt.is-unknown {color:var(--muted);}
.rv-g-lt.is-unknown .rv-g-dot {background:none;box-shadow:inset 0 0 0 1.5px var(--muted);}
.rv-g-lt.is-parked {color:var(--muted);}
.rv-g-lt.is-parked .rv-g-dot {background:var(--muted);}
.rv-g-key {display:flex;flex-wrap:wrap;gap:0 16px;margin:8px 0 0;padding-top:8px;border-top:1px solid var(--line);font-size:var(--t-meta);}
.rv-g-key .rv-g-lt {min-height:24px;gap:6px;color:var(--muted);}
/* a list that needs Chris: its heading and count, the way to the rest, its rows on one sheet */
.rv-g-sec {display:flex;flex-direction:column;gap:8px;min-width:0;}
.rv-g-sh {display:flex;align-items:baseline;gap:8px;min-height:24px;}
.rv-g-sh h3 {margin:0;font:var(--w-strong) var(--t-section)/24px var(--display);color:var(--ink);letter-spacing:-.01em;}
.rv-g-n {color:var(--muted);font-size:var(--t-label);letter-spacing:0;}
.rv-g-more {display:inline-flex;align-items:center;min-height:44px;margin:-10px 0 -10px auto;padding:0 4px;color:var(--accent);font-weight:var(--w-mid);text-decoration:none;align-self:center;}
.rv-g-more:hover {text-decoration:underline;text-underline-offset:3px;}
/* one level deep: rows sit on the page, split by hairlines, with a hairline above the first and below the last */
.rv-g-rows {list-style:none;margin:0;padding:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);}
/* a line between shown rows only: a paged list's first shown row has hidden rows before it, and no line on top */
.rv-g-rows > li:not([hidden]) ~ li:not([hidden]) {border-top:1px solid var(--line);}
/* a list whose rows all wait behind "N more" shows its heading only, never an empty sheet */
.rv-g-rows:not(:has(> li:not([hidden]))) {display:none;}
.rv-g-row {display:grid;grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:"text when verb";align-items:center;gap:0 16px;min-height:60px;}
.rv-g-rt {grid-area:text;display:block;min-width:0;padding:10px 0;border:0;background:none;color:var(--ink);font:inherit;text-align:left;text-decoration:none;cursor:pointer;}
.rv-g-rt b {display:block;font-size:var(--t-row);font-weight:var(--w-mid);overflow-wrap:anywhere;text-wrap:pretty;}
.rv-g-rt span {display:block;margin-top:2px;font-size:var(--t-label);color:var(--muted);overflow-wrap:anywhere;text-wrap:pretty;}
.rv-g-rt:hover b {text-decoration:underline;text-underline-offset:3px;}
.rv-g-when {grid-area:when;color:var(--muted);font-size:var(--t-meta);line-height:16px;text-align:right;white-space:nowrap;letter-spacing:0;}
.rv-g-verb {grid-area:verb;display:inline-flex;align-items:center;justify-content:flex-end;box-sizing:border-box;min-width:0;min-height:44px;padding:0 8px;border:0;border-radius:0;background:transparent;color:var(--accent);font-size:var(--t-row);font-weight:var(--w-mid);text-decoration:none;}
.rv-g-verb:hover {text-decoration:underline;text-underline-offset:3px;}
.rv-g-verb.rv-confirm {font-weight:var(--w-strong);text-decoration:underline;text-underline-offset:3px;}
/* a row with a brand tag (DESIGN.md "Fewer words"): the tag in its own column on a wide window */
/* a list of tagged rows shares its columns, so tags, times and verbs line up whatever each row holds */
.rv-g-rows:has(> .tagged) {display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;column-gap:16px;}
.rv-g-rows:has(> .tagged) > li {grid-column:1 / -1;}
.rv-g-row.tagged {grid-template-columns:subgrid;grid-template-areas:"text tag when verb";}
.rv-g-tag {grid-area:tag;display:flex;min-width:0;}
.rv-g-rt .rv-g-tl {display:none;}
.rv-g-verb:disabled {color:var(--muted);cursor:default;}
.rv-g-note {margin:6px 0 8px;color:var(--muted);text-wrap:pretty;}
.rv-g-note.no {color:var(--ink);}
.rv-g-sec > .rv-g-note {margin:0;padding:12px 16px;border-radius:10px;background:var(--bg2);}
/* the rest: a quiet line each, its count on the right */
.rv-g-counts {list-style:none;margin:0;padding:0 16px;border-radius:12px;background:var(--bg2);}
.rv-g-counts li + li {border-top:1px solid var(--line);}
.rv-g-cl {display:flex;align-items:center;gap:12px;width:100%;min-height:44px;padding:0;border:0;background:none;color:var(--ink);font:inherit;text-align:left;text-decoration:none;cursor:pointer;}
.rv-g-cll {flex:1 1 auto;min-width:0;font-weight:var(--w-mid);}
.rv-g-clv {flex:none;max-width:60%;color:var(--muted);text-align:right;overflow-wrap:anywhere;}
.rv-g-clv.need {color:var(--accent);font-weight:var(--w-mid);}
.rv-g-cl:hover .rv-g-cll {text-decoration:underline;text-underline-offset:3px;}
.rv-g-narrow {display:none;}
.rv-g-cl .rv-chev {flex:none;width:16px;height:16px;color:var(--muted);}
@container glance (max-width:719px) {
  .rv-g-row {grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"text when" "text verb";gap:4px 12px;padding:10px 0;}
  .rv-g-rt {padding:0;align-self:center;}
  .rv-g-rt span {line-height:16px;}
  .rv-g-when {align-self:end;}
  /* tagged, on the phone: the tag and the time on one line under the title, the verb alone on the right */
  .rv-g-rows:has(> .tagged) {display:block;}
  .rv-g-row.tagged {grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"text verb";}
  .rv-g-row.tagged > .rv-g-when,.rv-g-row.tagged > .rv-g-tag {display:none;}
  .rv-g-rt .rv-g-tl {display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin-top:4px;}
  .rv-g-rt .rv-g-tl > span {display:inline-flex;margin-top:0;}
  .rv-g-rt .rv-g-tl .rv-g-twh {color:var(--muted);font-size:var(--t-meta);line-height:16px;white-space:nowrap;}
  .rv-g-verb {min-width:84px;padding:0 12px;}
  .rv-g-rows {padding:0 12px;}
  .rv-g-counts {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px;padding:0 12px;}
  .rv-g-counts li + li {border-top:0;}
  .rv-g-counts li:nth-child(n+3) {border-top:1px solid var(--line);}
  .rv-g-cl {flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;min-height:56px;padding:8px 0;box-sizing:border-box;}
  .rv-g-cl .rv-chev {display:none;}
  .rv-g-clv {max-width:none;text-align:left;font-size:var(--t-meta);line-height:16px;}
  .rv-g-wide {display:none;}
  .rv-g-narrow {display:inline;}
  /* two columns never leave a hole: an odd last line takes the whole width */
  .rv-g-counts li:last-child:nth-child(odd) {grid-column:1 / -1;}
  /* three lines or fewer are single lines, as on a wide window: the name, its figure on the right, its arrow */
  .rv-g-counts:not(:has(> li:nth-child(4))) {display:block;}
  .rv-g-counts:not(:has(> li:nth-child(4))) li + li {border-top:1px solid var(--line);}
  .rv-g-counts:not(:has(> li:nth-child(4))) .rv-g-cl {flex-direction:row;align-items:center;gap:12px;min-height:44px;padding:0;}
  .rv-g-counts:not(:has(> li:nth-child(4))) .rv-g-cl .rv-chev {display:block;}
  .rv-g-counts:not(:has(> li:nth-child(4))) .rv-g-clv {max-width:60%;text-align:right;font-size:var(--t-row);line-height:20px;}
  .rv-g-head {flex-wrap:wrap;}
  .rv-g-bars {grid-template-columns:max-content minmax(48px,1fr) minmax(40px,max-content);column-gap:12px;}
  .rv-g-lights,.rv-g-lights:has(.rv-tg) {grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px;}
  .rv-g-lt .rv-tg {display:none;}
}

/* LEADS (public/index.html leads()): the Leads page on the glance pieces, laid out as Deals. Its Filter is the same
   quiet tool as Deals', and Every lead, by day, opens in a dialog as Deals' Every deal does: a section a day */
.rv-leads .ftog {display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border:1px solid var(--line2);border-radius:var(--r-ctl);background:transparent;color:var(--ink);font:var(--w-mid) var(--t-row)/1 var(--body);letter-spacing:0;cursor:pointer;}
.rv-leads .ftog:hover {background:var(--bg3);}
.rv-leads .ftog b {min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--accent);color:var(--accent-ink);font:var(--w-strong) var(--t-meta)/20px var(--body);text-align:center;}
.rv-lead-board .rv-dialog-body {display:flex;flex-direction:column;gap:20px;}
.rv-lead-board .rv-dialog-body .rv-g-rows {padding:0 16px;}
/* on the phone the day book's rows take the glance page's phone layout: the time over Open */
@media (max-width:719px) {.rv-lead-board .rv-dialog-body {container:glance / inline-size;} .rv-lead-board .rv-dialog-body .rv-g-rows {padding:0 12px;}}
.rv-lead-board .rv-empty {color:var(--muted);}
/* with a filter on: Clear filter, a quiet text button beside the list's heading; nothing matched, one line in the list's place */
.rv-leads button.rv-g-more {border:0;background:none;font:inherit;font-weight:var(--w-mid);cursor:pointer;}
.rv-leads-none {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 16px;border-radius:10px;background:var(--bg2);}
.rv-leads-none p {margin:0;color:var(--muted);}
.rv-leads-none .rv-g-more {margin:0;}
