/* THE DAY BOOK (DESIGN.md). The console's frame and its daily pages: the shared shell part (shell.css) dressed in the
   console's own materials (theme.css), Today, Work and More, and the Leads list with its records in dialogs. Room
   modules keep their own styles (legacy-room.css, room-layout.css, product-workspace.css). Compact by request: 14px
   body, 12px metadata, 18-20px headings; gap scale 4/8/12/16/20/24/32: 16-20 between groups, 8-12 within them. */
:root {--tabs:20px;}

/* THE FRAME. The nav stays on the left at every width; there is no bottom bar. 1024 and up: a 176px labelled
   sidebar; 560 to 1023: a 160px one; below 560: a 52px rail of icons whose switch lays the labelled nav over the page
   (the rail's column stays, so the page never moves). --rv-navw is the nav's column; anything pinned to the window's
   foot (the Room composer) starts there. The frame is the window, never taller: .bc-main is the one scroller, and its
   bottom padding keeps clear of the home indicator, which the rooms' fitters read as the end of their space. */
#app.bc-shell {--rv-navw:176px;--bc-label:inline;--bc-justify:start;position:relative;height:100vh;height:100dvh;min-height:0;grid-template-columns:var(--rv-navw) minmax(0,1fr);grid-template-rows:var(--shell-topbar) minmax(0,1fr);overflow:hidden;background:var(--bg);font-family:var(--body);font-weight:400;}
#app.bc-shell > .bc-main {display:block;min-height:0;overflow:auto;overscroll-behavior:contain;box-sizing:border-box;padding:20px 32px max(20px,env(safe-area-inset-bottom));}
#room {box-sizing:border-box;height:100%;display:flex;flex-direction:column;min-height:0;}
#room > div:has(> .dbk-page) {height:100%;min-height:0;}
.bc-nav {background:var(--bg2);border-right:0;min-width:0;}
.bc-nav-list {gap:2px;padding:0 8px max(12px,env(safe-area-inset-bottom));max-height:100%;}
.bc-nav a {gap:10px;min-height:44px;padding:0 10px;color:var(--muted);font-size:14px;font-weight:500;}
.bc-nav a:hover {background:var(--bg3);color:var(--ink);}
.bc-nav a[aria-current=page] {background:var(--bg3);color:var(--ink);}
.bc-nav a[aria-current=page] svg {color:var(--accent);}
.bc-nav svg {width:18px;height:18px;stroke-width:1.75;}
.rv-brand {gap:10px;min-height:var(--shell-topbar);margin-bottom:8px;color:var(--ink);}
.bc-nav .rv-brand:hover {background:none;}
.bc-nav .rv-brand svg {width:34px;height:16px;fill:currentColor;stroke:none;color:var(--ink);}
.rv-brand span {font:var(--w-strong) var(--t-row)/1 var(--display);letter-spacing:-.01em;}
.rv-navtoggle {display:none;align-items:center;justify-content:center;flex:none;width:44px;min-width:44px;min-height:var(--shell-topbar);margin:0 auto 8px;padding:0;border:0;background:none;color:var(--muted);}
.rv-navtoggle:hover {color:var(--ink);}
/* fourteen entries on a short screen (the folded phone, 678 tall): no gaps, and the list scrolls only if it still cannot fit */
@media (max-height:700px) {.bc-nav-list {gap:0;overflow-y:auto;padding-bottom:max(4px,env(safe-area-inset-bottom));} .rv-navtoggle {margin-bottom:0;}}
.rv-navtoggle svg {width:18px;height:18px;}
.rv-badge {margin-left:auto;min-width:20px;height:18px;padding:0 6px;border-radius:9px;background:var(--bg3);color:var(--muted);font-size:12px;line-height:18px;text-align:center;box-sizing:border-box;}
.rv-badge.need {background:var(--accent);color:var(--accent-ink);}
.rv-badge:empty {display:none;}
.bc-topbar {gap:12px;padding:0 32px;background:var(--bg);border-bottom:1px solid var(--line);}
.bc-title {font-family:var(--display);font-size:var(--t-head);font-weight:var(--w-strong);line-height:24px;letter-spacing:-.01em;}
.rv-mark {display:none;align-items:center;min-height:44px;min-width:44px;color:var(--ink);}
.rv-mark svg {width:32px;height:15px;fill:currentColor;}
.rv-back {display:inline-flex;align-items:center;gap:2px;min-height:44px;padding-right:8px;color:var(--accent);font-size:14px;font-weight:500;text-decoration:none;}
.rv-back svg {width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.rv-back[hidden],.rv-mark[hidden] {display:none!important;}
.bc-actions .al-line {position:relative;z-index:61;flex:none;gap:8px;min-height:44px;margin:0;padding:0 10px;border-radius:var(--r-ctl);color:var(--muted);}
.bc-actions .al-line:hover,.bc-actions .al-line[aria-expanded=true] {background:var(--bg2);color:var(--ink);}
/* open, the alert line stays above the scrim: the same tap closes the list */
.bc-actions .al-line :is(.al-w,.al-a) {display:none;}
.bc-actions .al-line .al-n {font-size:12px;}
/* the brand filter (DESIGN.md "Fewer words"): chips on a wide window, one button below 1260 */
.rv-filter {display:flex;align-items:center;min-width:0;}
.rv-filter[hidden] {display:none;}
.rv-fchips {display:flex;align-items:center;gap:6px;}
.rv-fchips button {position:relative;min-height:32px;padding:0 12px;border:1px solid var(--line);border-radius:16px;background:none;color:var(--muted);font:inherit;font-size:14px;font-weight:500;white-space:nowrap;cursor:pointer;}
.rv-fchips button::after {content:"";position:absolute;inset:-6px 0;}
.rv-fchips button:hover {color:var(--ink);border-color:var(--line2);}
.rv-fchips button[aria-pressed=true] {border-color:var(--line2);background:var(--bg3);color:var(--ink);}
.rv-fbtn {display:none;align-items:center;gap:4px;min-height:44px;padding:0 6px 0 10px;border:0;border-radius:var(--r-ctl);background:none;color:var(--muted);font:inherit;font-size:14px;font-weight:500;white-space:nowrap;cursor:pointer;}
.rv-fbtn.on {color:var(--ink);}
.rv-fbtn:hover {background:var(--bg2);color:var(--ink);}
.rv-fbtn svg {width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;color:var(--muted);}
@media (max-width:1259px) {.rv-fchips {display:none;} .rv-fbtn {display:inline-flex;}}
@media (max-width:559px) {
  .rv-fbtn {padding:0 4px 0 8px;}
  /* beside the filter the alert line is its dot and its number; a failure is one word (public/rooms/alerts.js) */
  .bc-actions .al-line .al-nw {display:none;}
  .bc-actions .al-line .al-s {display:inline-block;}
  .bc-actions .al-line .al-s::first-letter {text-transform:uppercase;}
}
.rv-fpick {display:flex;flex-direction:column;}
.rv-fpick button {display:flex;align-items:center;justify-content:space-between;min-height:48px;padding:0 4px;border:0;border-top:1px solid var(--line);background:none;color:var(--ink);font:inherit;font-size:14px;font-weight:500;text-align:left;cursor:pointer;}
.rv-fpick button:first-child {border-top:0;}
.rv-fpick button svg {width:18px;height:18px;fill:none;stroke:var(--accent);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
/* a row's brand tag */
.rv-tg {display:inline-flex;align-items:center;height:20px;padding:0;border:0;color:var(--muted);font-size:var(--t-meta);font-weight:400;line-height:1;white-space:nowrap;}
@media (max-width:1023px) {
  #app.bc-shell {--rv-navw:160px;}
  #app.bc-shell > .bc-main {padding:16px 20px max(16px,env(safe-area-inset-bottom));}
  .bc-topbar {padding:0 20px;}
  .bc-actions .al-line .al-t {display:none;}
}
/* the rail: icons only, each named by its link's own label (and its tooltip); the Today count rides on its icon */
@media (max-width:559px) {
  #app.bc-shell {--rv-navw:52px;--bc-label:none;--bc-justify:center;--shell-topbar:60px;}
  #app.bc-shell > .bc-main {padding:16px 20px max(16px,env(safe-area-inset-bottom));}
  .bc-nav-list {padding:0 4px max(12px,env(safe-area-inset-bottom));}
  .bc-nav a {padding:0;}
  .bc-nav svg {width:20px;height:20px;}
  .bc-nav .rv-brand {display:none;}
  .rv-navtoggle {display:inline-flex;}
  .bc-nav a:not(.rv-brand) {position:relative;}
  /* the rail has no room for a number beside a 20px icon: a dot clear of the icon says something waits; the count is
     in the link's label and in the opened menu */
  .rv-badge {position:absolute;top:8px;right:4px;width:8px;min-width:8px;height:8px;padding:0;border-radius:50%;font-size:0;line-height:0;}
  .rv-badge:not(.need) {display:none;}
  .bc-topbar {gap:8px;padding:16px 16px 0;}
  .rv-navtoggle {padding-top:12px;}
  .rv-mark {display:inline-flex;}
  .bc-actions .al-line {padding:0 6px;}
  /* a long alert line ("Alerts could not refresh") cuts short instead of running over the title: the title keeps its
     width (up to 60%), the actions take what is left */
  .bc-title {flex:0 0 auto;max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
  .bc-actions {flex:1 1 0;justify-content:flex-end;min-width:0;}
  .bc-actions .al-line {flex:0 1 auto;min-width:0;}
  .bc-actions .al-line .al-n {flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
  /* labels shown: the nav stands over the page at its full width, the page dimmed under it */
  #app.bc-shell[data-nav-open] {--bc-label:inline;--bc-justify:start;}
  #app[data-nav-open] > .bc-nav {position:absolute;z-index:52;top:0;bottom:0;left:0;width:184px;box-shadow:8px 0 24px rgba(10,14,20,.35);}
  #app[data-nav-open] .bc-nav-list {padding:0 8px max(12px,env(safe-area-inset-bottom));}
  #app[data-nav-open] .bc-nav a {padding:0 10px;}
  #app[data-nav-open] .rv-navtoggle {margin-left:0;justify-content:flex-start;width:auto;padding:0 13px;}
  #app[data-nav-open] .rv-badge {position:static;margin-left:auto;width:auto;min-width:20px;height:18px;line-height:18px;padding:0 6px;border-radius:9px;font-size:12px;}
  #app[data-nav-open] .rv-badge:not(.need):not(:empty) {display:block;}
}

/* the rail's labels open over the page: its scrim sits under the nav and over everything else, the top bar included */
.rv-scrim.rv-nav-scrim {z-index:51;background:rgba(20,26,36,.55);}

/* THE ALERTS, over the page: the list centred, its own scroller, the page still behind a scrim */
:root:has(dialog[open]),:root:has(#alert-list:not([hidden])) {overflow:hidden;}
:root:has(#alert-list:not([hidden])) .bc-topbar {z-index:56;}
.rv-scrim {position:fixed;inset:0;z-index:55;background:rgba(20,26,36,.7);}
/* centred both ways at every size; below 1024 it keeps 16 clear of the top bar on both sides of the centre, so the
   top bar's alert line (which closes it) stays above the scrim */
.ledger.al-list {position:fixed;z-index:60;top:50%;left:50%;transform:translate(-50%,-50%);width:min(760px,calc(100% - 32px));max-height:calc(100dvh - 96px);overflow:auto;overscroll-behavior:contain;padding:0 24px 16px;border:1px solid var(--line2);border-radius:12px;background:var(--bg2);box-sizing:border-box;}
.al-list .al-head,.al-list .al-item {margin:0 -24px;padding:0 24px;}
@media (max-width:1023px) {.ledger.al-list {max-height:calc(100dvh - 112px);}}

/* A PAGE: one group centred between the top bar and the bottom, never taller than the window */
.dbk-page {box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;gap:16px;max-width:1040px;min-height:100%;margin:0 auto;}
.dbk-head {display:flex;align-items:flex-end;justify-content:space-between;gap:8px 20px;flex-wrap:wrap;}
.dbk-head h2 {margin:0;font-size:20px;line-height:26px;letter-spacing:-.01em;}
.dbk-head p {margin:2px 0 0;color:var(--muted);}
.dbk-head .quiet {color:var(--accent);font-weight:500;}
.dbk-panel {background:var(--bg2);border-radius:12px;padding:0 16px;}
.dbk-rows {list-style:none;margin:0;padding:0;}
.dbk-rows li + li {border-top:1px solid var(--line);}
.dbk-row {display:flex;align-items:center;gap:12px;width:100%;min-height:48px;padding:8px 0;color:var(--ink);text-decoration:none;box-sizing:border-box;}
a.dbk-row:hover b {text-decoration:underline;text-underline-offset:3px;}
.dbk-rt {flex:1 1 auto;min-width:0;}
.dbk-rt b {display:block;font-weight:500;overflow-wrap:anywhere;}
.dbk-rt span {display:block;margin-top:2px;color:var(--muted);font-size:12px;line-height:16px;overflow-wrap:anywhere;text-wrap:pretty;}
.dbk-rm {flex:none;max-width:60%;color:var(--muted);text-align:right;overflow-wrap:anywhere;}
.dbk-rm.need,.w-a.need,.w-plist .mono.need {color:var(--accent);}
.dbk-chev {flex:none;width:14px;height:14px;fill:none;stroke:var(--muted);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.quiet {min-height:44px;min-width:44px;color:var(--muted);}
.quiet:hover {color:var(--ink);}
@media (max-width:1023px) {
  .dbk-panel,.dbk-panel.dbk-rows {padding:0 12px;}
}

/* Today: three shallow wells in the same tray, each with its own overflow. */
.today.dbk-page {max-width:none;gap:20px;justify-content:flex-start;}
.today .rv-g-fig {font-size:var(--t-figure);font-weight:var(--w-strong);}
.td-trays {display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:20px;}
.td-trays:empty {display:none;}
.td-trays .rv-g-sh {align-items:center;min-height:32px;padding:0;}
.rv-g-sec > .rv-g-sh h3,
.td-th h3,
.td-dh,
.w-card h3,
.w-products h3 {color:var(--ink);font-size:var(--t-section);font-weight:var(--w-strong);line-height:24px;}
.td-trays .rv-g-n {font-size:var(--t-meta);}
.td-trays .rv-g-more {min-width:44px;margin:-6px 0 -6px auto;padding:0 4px;justify-content:center;border:0;background:none;font-size:var(--t-label);}
.today .rv-g-more[hidden] {display:none;}
.today .td-list.rv-g-rows {padding:0;}
:is(.td-trays,.td-dlg) .td-row {grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"text verb";min-height:56px;gap:0 8px;padding:0;}
.td-row .rv-g-rt {padding:8px 0;line-height:20px;box-sizing:border-box;}
.td-row span.rv-g-rt {cursor:default;}
.td-row span.rv-g-rt:hover b {text-decoration:none;}
.td-row .rv-g-rt b {font-size:var(--t-row);font-weight:var(--w-mid);}
.td-row .rv-g-rt .td-row-sub {display:flex;flex-wrap:wrap;align-items:baseline;gap:0 8px;margin:0;}
.td-row .td-row-sub > span {margin:0;line-height:16px;}
.td-row .td-row-line {font-size:var(--t-label);}
.td-row .td-row-sub > .td-row-meta {font-size:var(--t-meta);}
.td-row .rv-g-verb,.td-quiet-action {display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0 8px;border:0;background:transparent;color:var(--accent);font-size:var(--t-label);font-weight:var(--w-mid);text-decoration:none;}
.td-row .rv-g-verb:hover,.td-quiet-action:hover {background:transparent;text-decoration:underline;text-underline-offset:3px;}
.td-row .rv-g-verb:disabled,.td-choice-actions button:disabled {opacity:.55;cursor:default;text-decoration:none;}
.td-trays > section:first-child .td-row:first-child .rv-g-verb:not(:disabled) {padding:0 12px;border-radius:var(--r-ctl);background:var(--accent);color:var(--accent-ink);}
.td-choice-actions {display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;}
.td-choice-actions :is(.rv-g-verb,.btn) {min-width:64px;min-height:44px;padding:0 12px;font-size:var(--t-row);font-weight:var(--w-mid);}
.rv-dialog .td-choice-actions [role=status] {margin:0 auto 0 0;}
.td-choice-actions [role=status]:empty {display:none;}
.td-decision-source {margin-top:12px;padding-top:4px;border-top:1px solid var(--line);}
.td-decision-source .td-quiet-action {padding:0;}

@container today (min-width:740px) {
  .td-trays {grid-template-columns:repeat(auto-fit,minmax(228px,1fr));}
}
@container today (min-width:1000px) {
  .td-trays:has([data-sec="decide"]):has([data-sec="do"]):not(:has([data-sec="broken"])) {grid-template-columns:minmax(0,3fr) minmax(280px,2fr);}
}

.td-money .rv-g-sh {min-height:44px;padding:0;align-items:center;}
.td-mlink {display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;margin-left:auto;color:var(--accent);font-size:var(--t-label);font-weight:var(--w-mid);text-decoration:none;}
.td-mlink:hover {text-decoration:underline;text-underline-offset:3px;}
.td-mpic {padding:4px 0;}
.td-mpic .rv-g-note {margin:8px 0;}
/* Secondary work shares one quiet control below the tray. */
.today .td-counts {display:block;align-self:stretch;background:none;padding:0 4px;border-radius:0;border-top:1px solid var(--line);}
.today .td-counts .rv-g-cl {flex-direction:row;justify-content:flex-start;min-height:44px;padding:0;font-size:var(--t-row);}
.today .td-counts .rv-g-clv:empty {display:none;}


/* HIS LIST: a desk tray three spots deep. The tray is sunk into the day's page; each of today's items lies in it as a
   sheet as tall as its spots (one spot 56px), a free spot an empty bay. A sheet: its
   tick, its words, its brand and its spots as dots. Later sits under the tray, one line. The same tray opens the list's
   dialog, where Later lies flat under it and a sheet's words open its editor in place. The tray is a grid of rows at
   least 56px each, a sheet spanning one row a spot, so a two-spot sheet is two rows
   and the gap between them; a long title makes its rows taller. */
.td-todo {display:flex;flex-direction:column;gap:12px;}
.td-th {display:flex;align-items:center;justify-content:space-between;gap:12px;}
.td-th h3 {margin:0;}
.td-addgo {min-width:44px;min-height:44px;padding:0;border:0;background:none;color:var(--accent);font:inherit;font-size:var(--t-label);font-weight:var(--w-mid);}
.td-addgo:hover {text-decoration:underline;text-underline-offset:3px;}
.td-tray {display:grid;grid-template-columns:minmax(0,1fr);grid-auto-rows:minmax(56px,auto);margin:0;padding:0;list-style:none;border-bottom:1px solid var(--line);}
.td-it {--sp:1;display:grid;grid-template-columns:44px minmax(0,1fr);align-items:stretch;border-top:1px solid var(--line);box-sizing:border-box;}
.td-tray > .td-it {grid-row:span var(--sp);}
/* an open editor in the tray takes the room it needs: the tray lies flat while it is open */
.td-tray:has(> .td-ed) {display:flex;flex-direction:column;}
.td-bay {min-height:56px;border-top:1px solid var(--line);}
.td-tick {display:grid;place-items:center;width:44px;min-height:54px;padding:0;border:0;background:none;color:var(--ink);}
.td-tick svg {width:22px;height:22px;box-sizing:border-box;border-radius:50%;border:1.5px solid var(--muted);fill:none;stroke:transparent;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.td-tick:hover svg {border-color:var(--accent);}
.td-it.done .td-tick svg {background:var(--muted);border-color:var(--muted);stroke:var(--bg2);}
.td-itt {display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:4px;min-width:0;min-height:54px;padding:8px 12px 8px 0;border:0;background:none;color:var(--ink);font:inherit;text-align:left;box-sizing:border-box;cursor:pointer;}
.td-itt b {font-weight:500;line-height:20px;overflow-wrap:anywhere;text-wrap:pretty;}
.td-itt:hover b {text-decoration:underline;text-underline-offset:3px;}
.td-it.done .td-itt b {color:var(--muted);text-decoration:line-through;}
.td-itm {display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;}
.td-itm:not(:has(.rv-tg)) {min-height:0;}
.td-sp {display:inline-flex;gap:3px;}
.td-sp i,.td-spots i {display:block;width:6px;height:6px;border-radius:50%;background:var(--muted);}
.td-vh {position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;}
.today .td-lat {padding:0;background:none;}
.today .td-lat .rv-g-clv:empty {display:none;}

/* the list's dialog: Add on top, then the tray, then Later lying flat */
.rv-dialog .td-ldlg {display:flex;flex-direction:column;gap:12px;}
/* the dialog itself never scrolls: Add and its line stay at the top, the list under them is the one scroller */
.rv-dialog.td-listbox[open] {display:flex;flex-direction:column;overflow:hidden;}
.td-listbox .rv-dialog-body {flex:1 1 auto;min-height:0;max-height:none;overflow:hidden;display:flex;flex-direction:column;padding-bottom:0;}
/* hidden labels are placed inside the list, so they never stretch the dialog */
.td-listbox .td-ldlg {position:relative;flex:1 1 auto;min-height:0;}
.td-lscroll {position:relative;flex:1 1 auto;min-height:0;display:flex;flex-direction:column;gap:12px;margin:0 -20px;padding:4px 20px 20px;border-top:1px solid var(--line);overflow:auto;overscroll-behavior:contain;}
.td-spl {display:flex;align-items:center;gap:12px;}
.td-spl > span {color:var(--muted);}
.rv-dialog .td-ldlg .td-dh {margin:8px 0 0;}
.rv-dialog .td-ldlg .td-said {margin:0;}
.rv-dialog .td-ldlg .rv-g-note {margin:0;}
.td-addf {display:flex;flex-direction:column;gap:8px;}
.td-field {display:block;box-sizing:border-box;width:100%;min-height:44px;padding:10px 12px;line-height:22px;resize:none;field-sizing:content;overflow-wrap:anywhere;font-family:var(--body);border:1px solid var(--line2);border-radius:var(--r-ctl);background:var(--bg);color:var(--ink);}
.td-field::placeholder {color:var(--muted);}
/* the room dialog's own field sizes (room-layout.css) give way: a title field is one line that grows with its words */
.rv-room-dialog textarea.td-field {min-height:44px;padding:10px 12px;border-radius:var(--r-ctl);resize:none;font:400 16px/22px var(--body);}
.td-edr {display:flex;flex-wrap:wrap;align-items:center;gap:12px;}
.td-gap {flex:1 1 0;}
.td-spots {display:inline-flex;gap:12px;}
.td-spots button {display:inline-flex;align-items:center;justify-content:center;gap:3px;min-width:52px;min-height:44px;padding:0 10px;border:1px solid var(--line2);border-radius:var(--r-ctl);background:transparent;}
.td-spots button:hover {background:var(--bg3);}
.td-spots button[aria-checked=true] {border-color:var(--accent);}
.td-spots button[aria-checked=true] i {background:var(--accent);}
.td-mvs {display:inline-flex;gap:12px;margin-left:auto;}
.td-b {min-width:64px;min-height:44px;padding:0 14px;border:1px solid var(--line2);border-radius:var(--r-ctl);background:transparent;color:var(--ink);font:inherit;font-weight:500;}
.td-b:hover:not(:disabled) {background:var(--bg3);}
.td-b:disabled {color:var(--muted);border-color:var(--line);cursor:default;opacity:.6;}
.td-save {min-width:88px;padding:0 20px;}
.td-addb {min-width:72px;margin-left:auto;}
.td-rmq > span {flex:1 1 auto;font-weight:500;}
.td-lrows {margin:0;padding:0;list-style:none;}
.td-lrows > .td-it {min-height:56px;border:0;border-radius:0;background:none;box-shadow:none;}
.td-lrows > .td-it + .td-it {border-top:1px solid var(--line);}
/* a sheet opened: its words, its spots and moves, then Remove, Cancel and Save */
.td-it.td-ed {display:flex;flex-direction:column;gap:12px;padding:12px;min-height:0;outline:none;}
.td-lrows > .td-it.td-ed {margin:4px 0;border-block:1px solid var(--line);}
.td-lrows > .td-it.td-ed + .td-it,.td-lrows > .td-it + .td-it.td-ed {border-top:1px solid var(--line2);}
@media (max-width:719px) {
  .td-mvs {margin-left:0;}
  .td-lscroll {margin:0 -16px;padding:0 16px 16px;}
  /* his list on the phone reads at 16px */
  .td-ldlg .td-itt b,.td-ldlg .rv-g-note,.td-ldlg .td-said {font-size:16px;line-height:22px;}
}

#room > div:has(> .today) {container:today glance / inline-size;}

/* the dialogs */
/* Everything: one line each at every width, the name, its figure, the way in */
.td-everything {display:flex;flex-direction:column;gap:12px;}
.td-everything > * + * {padding-top:12px;border-top:1px solid var(--line);}
.rv-dialog .td-dlg .td-every {display:block;margin:0;padding-inline:0;background:none;border-radius:0;}
.rv-dialog .td-every li + li {border-top:1px solid var(--line);}
.rv-dialog .td-every .rv-g-cl {flex-direction:row;align-items:center;justify-content:flex-start;gap:12px;min-height:44px;padding:0;}
.rv-dialog .td-every .rv-g-clv {max-width:60%;font-size:14px;line-height:20px;text-align:right;}
.rv-dialog .td-every .rv-g-clv:empty {display:none;}
.rv-dialog .td-every .rv-g-cl .rv-chev {display:block;}
.td-dlg {container:glance / inline-size;}
.rv-dialog .td-dlg .dbk-rows,.rv-dialog .td-dlg .rv-g-rows {margin-top:4px;}
.rv-dialog .td-dlg .rv-g-rows {padding:0;}
.rv-dialog .td-dlg .rv-g-note {margin:0 0 12px;}
.td-dlg .rv-pager {margin-top:12px;}
.today .dbk-rt b,.td-dlg .dbk-rt b {font-weight:500;}
.td-dlg .dbk-rm {font-size:12px;}
.td-dlg .dbk-rm.need {font-weight:500;}
.td-dh {margin:16px 0 4px;}
.td-dlg > .td-dh:first-child {margin-top:0;}
.td-dlg .td-evs + .td-dh,.td-dlg .dbk-rows + .td-dh {margin-top:20px;}
.rv-dialog .td-dlg .td-said {margin:4px 0 0;color:var(--ink);}
/* an email's dialog: its brand, subject and time, then the sorter's brief */
.rv-dialog .td-dlg .td-mhead {display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin:0 0 12px;color:var(--muted);}
.td-mhead .rv-tg + span,.td-mhead > span:first-child {color:var(--ink);font-weight:500;}
.rv-dialog .td-dlg .td-brief {margin:0 0 20px;white-space:pre-line;overflow-wrap:anywhere;text-wrap:pretty;}
/* Mail's two teach taps (public/rooms/mail.js makeTeach), between the brief and the actions */
.rv-dialog .td-dlg .ml-teach {margin:0 0 20px;}
/* an event in the day's dialog: its time, its title, its calendar and place */
.td-ev {display:flex;align-items:baseline;gap:12px;min-height:44px;padding:10px 0;box-sizing:border-box;}
.td-ev .td-t {flex:none;width:84px;color:var(--ink);letter-spacing:0;}
.td-ev .dbk-rt b,.td-lk {font-weight:500;color:var(--ink);text-decoration:none;overflow-wrap:anywhere;}
.td-lk:hover {text-decoration:underline;text-underline-offset:3px;}
.td-place,.dbk-rt span .td-place {display:inline;margin:0;color:inherit;font-size:inherit;}
a.td-place {text-decoration:underline;text-decoration-color:var(--line2);text-underline-offset:3px;}
a.td-place:hover {color:var(--ink);text-decoration-color:currentColor;}
/* the duplicates dialog's tapped rows: the words, Take back */
.td-mail {display:flex;align-items:center;gap:12px;}
.td-done {flex:none;min-height:44px;min-width:64px;padding:0 14px;border:1px solid var(--line2);border-radius:var(--r-ctl);background:transparent;color:var(--ink);font-size:14px;font-weight:500;}
.td-done:hover {background:var(--bg3);}
.td-done:disabled {color:var(--muted);cursor:default;}
.td-dmail .td-mail + .td-mail {border-top:1px solid var(--line);}
/* duplicates: each pair side by side, a choice under each */
.td-pairs {list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:16px;}
.td-pair {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.td-dup {display:flex;flex-direction:column;gap:8px;padding:8px 0;border-top:1px solid var(--line);min-width:0;}
.td-dupt {margin:0;font-weight:600;overflow-wrap:anywhere;}
.td-dup dl {margin:0;display:flex;flex-direction:column;gap:4px;}
.td-dup dl div {display:flex;flex-direction:column;}
.td-dup dt {color:var(--muted);font-size:12px;line-height:16px;}
.td-dup dd {margin:0;overflow-wrap:anywhere;}
.td-dup .btn.ghost {margin-top:auto;align-self:stretch;min-height:44px;padding:0 12px;background:transparent;border:1px solid var(--accent);color:var(--accent);font-weight:600;}
.td-dup .btn.ghost:hover {background:var(--accent);color:var(--accent-ink);}
.rv-dialog .td-dlg .td-dupno {margin:auto 0 0;color:var(--muted);font-size:12px;line-height:16px;}
.td-tap {min-height:44px;padding:8px 0;}
@media (max-width:420px) {.td-pair {grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;}}
/* calendar settings: a switch a calendar */
.td-sw {display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:48px;padding:0;border:0;border-top:1px solid var(--line);background:none;color:var(--ink);font:inherit;text-align:left;cursor:pointer;}
.td-dh + .td-sw {border-top:0;}
.td-swl b {font-weight:500;}
.td-swt {position:relative;flex:none;width:40px;height:24px;border-radius:12px;background:var(--bg3);border:1px solid var(--line2);box-sizing:border-box;transition:background .15s;}
.td-swt::after {content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:var(--muted);transition:transform .15s,background .15s;}
.td-sw[aria-checked=true] .td-swt {background:var(--accent);border-color:var(--accent);}
.td-sw[aria-checked=true] .td-swt::after {transform:translateX(16px);background:var(--accent-ink);}
.td-dacts {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-top:4px;}
.td-dacts .btn {min-width:96px;min-height:44px;padding:0 20px;font-weight:600;text-decoration:none;}
.rv-dialog .td-dacts .td-said {margin:0;}
@media (prefers-reduced-motion:reduce) {.td-swt,.td-swt::after {transition:none;}}

/* WORK. At a desk: four doors in a square, Marketing the full width under them, beside Products with how each stands.
   Below 1024: one line a door. */
.w-grid {display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:16px;}
.w-cards {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
.w-cards > .w-card:nth-child(5):last-child {grid-column:1 / -1;}
.w-card,.w-products {display:flex;flex-direction:column;gap:4px;min-width:0;padding:16px;background:var(--bg2);border-radius:12px;}
.w-card h3,.w-products h3 {margin:0;}
.w-say {margin:0;display:flex;flex-direction:column;gap:2px;}
.w-a {font:600 18px/24px var(--display);letter-spacing:-.01em;overflow-wrap:anywhere;}
.w-a.no {color:var(--ink);}
.w-d {color:var(--muted);font-size:12px;line-height:16px;overflow-wrap:anywhere;text-wrap:pretty;}
.w-d.warn {color:var(--ink);}
.w-go {display:flex;align-items:center;flex-wrap:wrap;gap:0 16px;margin:auto 0 0;padding-top:4px;}
.w-go a {display:inline-flex;align-items:center;justify-content:center;gap:4px;min-width:44px;min-height:44px;color:var(--accent);font-weight:500;text-decoration:none;}
.w-go a.w-extra {color:var(--muted);}
.w-go a:hover {text-decoration:underline;text-underline-offset:3px;}
.w-plist {list-style:none;margin:4px 0 0;padding:0;}
.w-plist li {display:flex;justify-content:space-between;align-items:baseline;gap:16px;min-height:36px;padding:8px 0;border-top:1px solid var(--line);box-sizing:border-box;}
.w-plist li span:first-child {min-width:0;overflow-wrap:anywhere;}
.w-plist .mono {color:var(--muted);text-align:right;}
.w-rows {display:none;}
@media (max-width:1023px) {
  .w-grid {grid-template-columns:minmax(0,1fr);}
  .w-cards,.w-products {display:none;}
  .w-rows {display:block;}
  .w-rows .dbk-row {min-height:52px;}
  .w-ra {color:var(--muted);}
}

/* MORE: the other rooms on the left, the account on the right; below 1024 one over the other */
.dbk-cols {display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:16px;align-items:center;}
.dbk-panel.dbk-rows {padding:0 16px;}
/* Account's three rows are said, not opened: only their verbs are tapped */
.acct-rows .rv-g-rt {cursor:default;}
.acct-rows .rv-g-rt:hover b {text-decoration:none;}
.acct-rows #who.no {color:var(--ink);font-weight:500;}
.acct {display:flex;flex-direction:column;gap:12px;}
@media (max-width:1023px) {
  .dbk-cols {grid-template-columns:minmax(0,1fr);gap:16px;}
}

/* LEADS: the bounded list, each record opened in a centred dialog with its own scroll */
/* a short page (the last) sits centred between the bars like a full one */
[aria-label^="Leads"].ledger {box-sizing:border-box;width:100%;padding:0 0 8px;max-width:1040px;margin:auto;}
[aria-label^="Leads"] .ans {margin:0;padding:8px 0;}
[aria-label^="Leads"] .lead,[aria-label^="Leads"] > .head {margin:0;padding:0 12px;}
[aria-label^="Leads"] .lead.picked {background:var(--bg2);}
[aria-label^="Leads"] .lead.ocp > .al-dot {left:0;}
/* the work's prose (the standing, the read, the counts, the record's lines) reads in Inter at body size; only the
   time keeps the mono figure */
[aria-label^="Leads"] :is(.wr,.r1,.r2,.say),.lead-dialog :is(.rec-b,.rec-r,.call,.sent,.ocn,.dka,.dkn,.go [role=status]) {font-family:var(--body);font-size:14px;font-weight:400;letter-spacing:0;}
.lead-dialog {width:min(760px,calc(100% - 32px));}
.lead-dialog .rv-dialog-head h2 {outline:none;}
.lead-dialog .more {display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:none!important;gap:16px;padding:0;}
.lead-dialog .more > * {grid-area:auto!important;grid-column:1!important;}
.lead-dialog .rec {display:grid;gap:8px;}
.lead-dialog .rec p {margin:0;}
.lead-dialog .rec-b {color:var(--muted);}
.lead-dialog .rec-w {font-size:16px;line-height:1.5;text-wrap:pretty;}
.lead-dialog .rec-r {color:var(--muted);overflow-wrap:anywhere;}
.lead-dialog .oc {display:block;margin:0;padding:0;}
.lead-dialog .followup {padding:0;}
/* a field's own label is read before typing: Inter at body size, not the 14px mono group label; every choice is a
   44px target however short its word */
.lead-dialog :is(.followup,.oc) :is(.fld > .label,legend.label) {font:500 14px/20px var(--body);letter-spacing:0;text-transform:none;color:var(--muted);}
.lead-dialog .seg label {min-width:44px;justify-content:center;}
.lead-dialog .act .mono {font-size:12px;}
[aria-label^="Leads"] .ftog {font:500 14px/1 var(--body);letter-spacing:0;}
/* its column heads and day labels are the rooms' labels (room-layout.css .label): Inter, not mono capitals */
[aria-label^="Leads"] .label {font:500 12px/16px var(--body);letter-spacing:0;text-transform:none;color:var(--muted);}
.lead-dialog .act {flex-direction:row;align-items:center;}
.lead-dialog .act .btn {width:auto;}
.lead-dialog .sent {color:var(--muted);}
@media (max-width:600px) {
  .lead-dialog .act {flex-direction:column;align-items:stretch;}
  .lead-dialog .act .btn {width:100%;}
}

/* the Room's pinned composer starts at the content edge, beside the nav, at every width */
#app .compose {left:var(--rv-navw);}

/* the cover: the RV mark at its own proportions */
.door .mk {width:84px;height:40px;color:var(--ink);}
/* The sign-in: one button under the mark; the other ways wait behind one quiet line */
.door .other-ways {margin-top:16px;color:var(--muted);font-size:var(--t-label);}
.door .other-ways summary {display:inline-flex;align-items:center;min-height:44px;cursor:pointer;list-style:none;}
.door .other-ways summary::-webkit-details-marker {display:none;}
.door .other-ways summary:hover {color:var(--ink);text-decoration:underline;text-underline-offset:3px;}
.door .other-ways > .fld {display:flex;flex-direction:column;align-items:center;gap:12px;margin-top:8px;}
