/* The supporting rooms as pages of the Today day book (DESIGN.md): the Room, Miles, Alerts and Growth
   score. They use the shared room primitives (room-layout.css, room-fit.js); every rule here is scoped to one room
   (.rv-room.rv-<room>), its dialogs (.rv-<room>-dialog) or the alert list (#alert-list). */

/* MILES: the time leads the read; a booking is the one blue word */
.rv-room.rv-miles .tm{color:var(--muted);font-variant-numeric:tabular-nums}
.rv-room.rv-miles .bk,.rv-miles-dialog .bk{font-weight:var(--w-mid);color:var(--accent)}
.rv-miles-dialog .ps{margin:0 0 16px;color:var(--muted)}
.rv-miles-dialog .sm,.rv-miles-dialog .pr{margin-top:20px;display:grid;gap:4px}
.rv-miles-dialog .sm p{text-wrap:pretty}
.rv-miles-dialog .sm i,.rv-miles-dialog .card i{font-style:normal;color:var(--muted)}
.rv-miles-dialog .pv{font:var(--w-strong) var(--t-head)/24px var(--display);letter-spacing:-.01em;color:var(--ink);text-wrap:pretty}
.rv-miles-dialog .go{margin-top:16px}

/* THE ROOM: the heading with what waits and the roster, the switch at its right; the thread is its own scroller between
   the heading and the pinned composer (room.js fit sets its height); the Desk is paged groups of tickets */
/* the thread fills the room to the composer; the Desk and an empty thread centre like every room */
.rv-room.rv-desk-room:has(.thread > ol){justify-content:flex-start}
.rv-room.rv-desk-room:has([data-room-thread]){padding-bottom:0}
.rv-room.rv-desk-room .rv-view{display:flex;flex-direction:column;gap:20px;min-width:0}
.rv-room.rv-desk-room .rv-ans .wn{min-height:44px;margin:-12px 0;padding:0;border:0;background:none;color:var(--accent);font:var(--w-mid) var(--t-row)/1.4 var(--body);cursor:pointer}
.rv-room.rv-desk-room .rv-ans .wn:hover{text-decoration:underline;text-underline-offset:3px}
.rv-room.rv-desk-room .rv-ans .wr .off{color:var(--muted)}
.rv-room.rv-desk-room .thread{display:flex;flex-direction:column;margin:0;overflow-y:auto;overscroll-behavior:contain;padding:4px 16px 8px}
.rv-room.rv-desk-room .thread > ol{margin-top:auto}
.rv-room.rv-desk-room .thread .rv-empty,.rv-room.rv-desk-room .thread > p{margin:auto 0;padding:20px 0;color:var(--muted)}
.rv-room.rv-desk-room .thread > p b{font-weight:var(--w-mid);color:var(--ink)}
.rv-room.rv-desk-room .thread .day{display:block;padding:16px 0 4px;font:var(--w-mid) var(--t-meta)/16px var(--body);letter-spacing:0;text-transform:none;color:var(--muted)}
.rv-room.rv-desk-room .thread .under{display:flex;justify-content:center;padding:8px 0}
.rv-room.rv-desk-room :is(.under,.rv-empty) .quiet{min-height:44px;color:var(--accent);font-weight:var(--w-mid)}
.rv-room.rv-desk-room .msg{margin:0;padding:0;border:0;border-top:1px solid var(--line)}
.rv-room.rv-desk-room .msg > .m{display:grid;width:100%;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"who t" "w w" "r r";gap:2px 12px;align-items:baseline;padding:12px 8px;margin:0 -8px;border:0;border-radius:10px;background:none;color:var(--ink);font:inherit;text-align:left;box-sizing:content-box}
.rv-room.rv-desk-room .msg > .m > .w{display:block;-webkit-line-clamp:unset;overflow:visible;overflow-wrap:anywhere}
.rv-room.rv-desk-room .msg > button.m{cursor:pointer}
.rv-room.rv-desk-room .msg > .m:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.rv-room.rv-desk-room .msg :is(.who,.t,.w,.r){grid-area:auto}
.rv-room.rv-desk-room .msg .who{grid-area:who;display:flex;flex-wrap:wrap;align-items:baseline;gap:0 8px;min-width:0}
.rv-room.rv-desk-room .msg .who .n{font:var(--w-mid) var(--t-row)/1.4 var(--body);letter-spacing:0;color:var(--ink)}
.rv-room.rv-desk-room .msg .who .b{color:var(--muted);font-size:var(--t-meta)}
.rv-room.rv-desk-room .msg .t{grid-area:t;color:var(--muted);font-size:var(--t-meta);white-space:nowrap}
.rv-room.rv-desk-room .msg .w{grid-area:w;color:var(--ink);overflow-wrap:anywhere;text-wrap:pretty;display:block}
.rv-room.rv-desk-room .msg .r{grid-area:r;display:flex;flex-wrap:wrap;gap:0 12px;color:var(--muted);font-size:var(--t-meta)}
.rv-room.rv-desk-room .msg .r:empty{display:none}
.rv-room.rv-desk-room .msg .a.known{color:var(--accent);font-weight:var(--w-mid)}
.rv-room.rv-desk-room .msg.wait .t{color:var(--accent)}
.rv-room.rv-desk-room .msg.me .who{justify-content:flex-end}
.rv-room.rv-desk-room .msg.me .who .n{color:var(--muted)}
.rv-room.rv-desk-room .msg.me .w{text-align:right}
.rv-room.rv-desk-room .msg.me > .m{grid-template-areas:"t who" "w w" "r r"}
.rv-room.rv-desk-room .msg:is(.open,.mark) .who .n{color:var(--accent)}
.rv-room.rv-desk-room .tk .rv-n.s{display:block;text-wrap:pretty}
.rv-room.rv-desk-room .tk .s .v{color:var(--muted)}
.rv-room.rv-desk-room .tk .s b,.rv-desk-room-dialog .said b{font-weight:var(--w-mid);color:var(--ink)}
.rv-room.rv-desk-room .tk .s .b,.rv-desk-room-dialog :is(.said,.hop) .b{color:var(--muted);font-weight:var(--w-row)}
.rv-room.rv-desk-room .tk.old .rv-n,.rv-room.rv-desk-room .tk.old .s b{color:var(--muted)}
.rv-room.rv-desk-room .desk-list .under{display:flex;justify-content:center;padding-top:8px}
.rv-desk-room-dialog .said{margin:0 0 12px;font-size:var(--t-head);line-height:1.5;color:var(--ink);text-wrap:pretty;overflow-wrap:anywhere}
.rv-desk-room-dialog .said .to{display:block;margin-bottom:4px;font-size:var(--t-row);color:var(--muted)}
.rv-desk-room-dialog .said .v{color:var(--muted)}
.rv-desk-room-dialog .kind{margin:0 0 12px;color:var(--muted);display:flex;flex-wrap:wrap;gap:0 12px}
.rv-desk-room-dialog .kind .a.known{color:var(--accent);font-weight:var(--w-mid)}
.rv-desk-room-dialog .tl{border-top:1px solid var(--line)}
.rv-desk-room-dialog .tl .ln{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 16px;padding:10px 0;border-bottom:1px solid var(--line)}
.rv-desk-room-dialog .tl .ln .l{min-width:0;color:var(--ink);overflow-wrap:anywhere}
.rv-desk-room-dialog .tl .ln .l i,.rv-desk-room-dialog .hop .l i{font-style:normal;color:var(--muted)}
.rv-desk-room-dialog .tl .ln .r{color:var(--muted)}
.rv-desk-room-dialog .tl .ln.now .l{font-weight:var(--w-mid)}
.rv-desk-room-dialog .hops{margin-top:4px}
.rv-desk-room-dialog .hop.now .l{font-weight:var(--w-mid);color:var(--ink)}
.rv-desk-room-dialog .go{margin-top:16px}
@media (min-width:1024px){
  .rv-room.rv-desk-room .msg > .m{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"who t" "w r"}
  .rv-room.rv-desk-room .msg.me > .m{grid-template-areas:"t who" "r w"}
  .rv-room.rv-desk-room .msg .r{justify-content:flex-end;text-align:right}
}
/* a hop: its time in the first column, who did what in the second (the ledger's own .t area does not exist here) */
.rv-desk-room-dialog .hop .t{grid-area:auto;grid-column:1;font-size:var(--t-meta)}
.rv-desk-room-dialog .hop .l{grid-area:auto;grid-column:2;color:var(--muted);overflow-wrap:anywhere}
.rv-desk-room-dialog .hop .l b{font-weight:var(--w-mid);color:var(--ink)}

/* ALERTS: the list over the page (the shell centres it) opens on its heading, Alerts and what is new, with the
   Events | Coverage switch; each view pages to fit the list's height; a check group with no check on the page goes */
#alert-list .al-top{position:sticky;top:0;z-index:1;display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px 20px;margin:0 -24px;padding:16px 16px 10px;background:var(--bg2);border-bottom:1px solid var(--line)}
#alert-list .al-title{min-width:0;flex:1 1 220px}
#alert-list .al-title h2{margin:0;font:var(--w-strong) var(--t-room)/26px var(--display);letter-spacing:-.01em;color:var(--ink)}
#alert-list .al-ans{margin:4px 0 0;color:var(--muted);text-wrap:pretty}
/* the Events | Coverage switch, the rooms' switch (room-layout.css .rv-seg): the chosen one raised */
#alert-list .rv-seg{display:flex;flex-wrap:wrap;gap:4px}
#alert-list .rv-seg button{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border:0;border-radius:10px;background:none;color:var(--muted);font:var(--w-mid) var(--t-row)/1.2 var(--body);white-space:nowrap}
#alert-list .rv-seg button[aria-pressed=true]{color:var(--accent);text-decoration:underline;text-underline-offset:4px}
#alert-list .al-head .label{font:var(--w-mid) var(--t-meta)/16px var(--body);letter-spacing:0;text-transform:none;color:var(--muted)}
#alert-list .al-none{padding:20px 0;color:var(--muted);text-wrap:pretty}
#alert-list section.al-coverage{padding:12px 0 8px}
#alert-list .al-coverage .ac-group:not(:has([data-proof-row]:not([hidden]))){display:none}
#alert-list .rv-pager{margin:12px 0 0;padding-top:12px;border-top:1px solid var(--line)}
#alert-list .rv-pager span{color:var(--muted)}
/* a coverage check is one line, its name and state; opened, the rest under it (its three columns at a desk) */
#alert-list .al-coverage .ac-row{padding:0}
#alert-list .al-coverage .ac-main{display:block}
#alert-list .al-coverage .ac-d > summary{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 16px;min-height:44px;padding:12px 0;cursor:pointer;list-style:none}
#alert-list .al-coverage .ac-d > summary::-webkit-details-marker{display:none}
#alert-list .al-coverage .ac-d > summary .ac-l{min-width:0;color:var(--ink);font-weight:var(--w-mid);overflow-wrap:anywhere}
#alert-list .al-coverage .ac-d > summary .ac-s{color:var(--muted);font-family:var(--mono);font-size:var(--t-meta)}
#alert-list .al-coverage .ac-d[open] > summary .ac-s{color:var(--ink)}
#alert-list .al-coverage .ac-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(180px,.65fr);gap:12px 32px;align-items:start;padding:0 0 16px}
#alert-list .al-coverage .ac-body > *{min-width:0;overflow-wrap:anywhere}
#alert-list .al-coverage .ac-body h4{display:none}
#alert-list .al-coverage .ac-body > details{grid-column:1/-1}
#alert-list .al-coverage .ac-body > details > summary{color:var(--muted);padding:8px 0;min-height:44px;cursor:pointer}
@media (max-width:767px){#alert-list .al-coverage .ac-body{grid-template-columns:minmax(0,1fr);gap:8px}}
/* the coverage head and each group's rule sit tight so more checks share the page */
#alert-list .al-coverage .ac-d > summary{padding:8px 0}
#alert-list .al-coverage .ac-count{margin:8px 0 4px}
#alert-list .al-coverage .ac-notice{padding:4px 0 12px}
#alert-list .al-coverage .ac-group{margin-top:12px}
#alert-list .al-coverage .ac-group > header{padding-bottom:8px}
#alert-list .al-coverage .ac-group h3{font:var(--w-strong) var(--t-section)/24px var(--display);color:var(--ink)}
#alert-list .al-coverage .ac-rule{margin:8px 0 4px}
#alert-list .al-off{margin:0;padding:8px 0;color:var(--muted);text-wrap:pretty;border-bottom:1px solid var(--line)}
#alert-list .al-coverage .ac-how > summary{display:flex;align-items:center;min-height:44px;color:var(--muted);cursor:pointer}
#alert-list .al-coverage .ac-how[open] > summary{color:var(--ink)}
#alert-list .al-coverage .ac-how > p{margin:0 0 8px}
/* the heading on two lines: Alerts and the switch, then what is new under them */
#alert-list .al-top{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"t s" "a a";align-items:center;gap:4px 16px}
#alert-list .al-top .al-title{display:contents}
#alert-list .al-top h2{grid-area:t}
#alert-list .al-top .al-ans{grid-area:a;margin:0}
#alert-list .al-top .rv-seg{grid-area:s}

/* GROWTH SCORE (inside Queue): the Queue's own switch, the heading with Paying and the window, then Board | After
   booking | Bets | Clinics, one at a time in a panel; the Stripe pickers in a dialog */
.rv-score{display:flex;flex-direction:column;gap:20px;min-width:0}
.rv-score .sc-views .pick{display:flex;flex-wrap:wrap;gap:4px;padding:0}
.rv-score .sc-views .pick button{min-height:44px;padding:0 14px;border-radius:10px;color:var(--muted);font-weight:var(--w-mid)}
.rv-score .sc-views .pick button[aria-pressed=true]{background:var(--bg3);color:var(--ink)}
.rv-score .sc-views .pick button::after{display:none}
.rv-score .sc-body{padding:16px}
.rv-score .tiles{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;list-style:none;margin:0;padding:0}
.rv-score .tl{display:grid}
.rv-score .tile{display:flex;flex-direction:column;justify-content:space-between;gap:8px;min-height:96px;padding:12px;border:0;border-radius:12px;background:var(--bg3);color:var(--ink);text-align:left;font:inherit;cursor:pointer}
.rv-score .tile .label{font:var(--w-mid) var(--t-meta)/16px var(--body);color:var(--muted);text-transform:none;letter-spacing:0}
.rv-score .tile strong{font:var(--w-strong) var(--t-head)/24px var(--display);font-variant-numeric:tabular-nums}
.rv-score .tile[data-not-read] strong{color:var(--muted)}
.rv-score .tile[aria-expanded=true]{outline:2px solid var(--accent);outline-offset:-2px}
.rv-score .srcline{margin:12px 0 0;padding:12px;border-radius:10px;background:var(--bg);color:var(--ink);text-wrap:pretty}
.rv-score .srcline:empty{display:none}
.rv-score .sc-line{margin:12px 0 0;color:var(--muted);text-wrap:pretty}
.rv-score .ab{display:grid;margin:8px 0 0;border-top:1px solid var(--line)}
.rv-score .ab div{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--line)}
.rv-score .ab dt{color:var(--muted)}
.rv-score .ab dd{margin:0;font-variant-numeric:tabular-nums;color:var(--ink)}
.rv-score .ab dd.off{color:var(--muted)}
.rv-score .steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));column-gap:8px;align-items:baseline;margin:0}
.rv-score .steps > *{text-align:right;min-width:0}
.rv-score .hd{border-bottom:1px solid var(--line2)}
.rv-score .hd button{min-height:44px;padding:0;border:0;background:none;font:var(--w-mid) var(--t-row)/20px var(--body);color:var(--muted);text-align:right;cursor:pointer}
.rv-score .hd button[aria-expanded=true],.rv-score .hd button:hover{color:var(--ink)}
.rv-score .hd button.pay{color:var(--accent)}
.rv-score .hd .hnr{display:block;font-weight:var(--w-row)}
.rv-score .bets{list-style:none;margin:0;padding:0}
.rv-score .bet{padding:12px 0;border-bottom:1px solid var(--line)}
.rv-score .bet .nm{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 12px;margin:0 0 4px}
.rv-score .bet .nm .n{font:var(--w-mid) var(--t-row)/1.4 var(--body);letter-spacing:0;color:var(--ink);overflow-wrap:anywhere}
.rv-score .bn{color:var(--muted);font-family:var(--mono);font-size:var(--t-meta)}
.rv-score .fg{font-variant-numeric:tabular-nums;color:var(--ink)}
.rv-score .nr{color:var(--muted)}
.rv-score .sl{display:none}
/* a phone has no room for five 16px heads over five columns: the heads wrap as a row of their own, and each bet's
   figures wrap under its name, each with its step's name */
@media (max-width:699px){
  .rv-score .steps.hd{display:flex;flex-wrap:wrap;gap:0 16px}
  .rv-score .hd button{text-align:left}
  .rv-score .hd .hnr{display:inline;margin-left:4px}
  .rv-score .bet .steps{display:flex;flex-wrap:wrap;gap:4px 16px}
  .rv-score .bet .steps > *{text-align:left}
  .rv-score .bet .sl{display:inline;color:var(--muted);font-family:var(--body);letter-spacing:0}
}
.rv-score .vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* the board's read times and the Bets part's sources open in dialogs: a quiet text button where each disclosure was */
.rv-score .why-b{display:flex;align-items:center;min-height:44px;margin-top:4px;padding:0;color:var(--muted);text-decoration:underline;text-underline-offset:3px}
.rv-score .why-b:hover{color:var(--ink)}
.rv-score-dialog .sc-line{margin:0;color:var(--ink);text-wrap:pretty}
.rv-score .unread,.rv-score-dialog .unread{list-style:none;margin:0;padding:0;color:var(--muted)}
.rv-score .unread li,.rv-score-dialog .unread li{padding:8px 0;border-top:1px solid var(--line);text-wrap:pretty}
.rv-score .unread b,.rv-score-dialog .unread b{font-weight:var(--w-mid);color:var(--ink)}
.rv-score-dialog .unread li:first-child{border-top:0;padding-top:0}
.rv-score .lk,.rv-score-dialog .lk{min-height:44px;padding:0;border:0;background:none;color:var(--accent);font:inherit;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.rv-score .cls{list-style:none;margin:0;padding:0}
.rv-score .cl-row{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"rt do";cursor:default}
.rv-score .cl-row .do{grid-area:do;min-height:44px}
.rv-score .cl-row .rv-sub b{font-weight:var(--w-mid);color:var(--ink)}
.rv-score .told{margin:0 0 8px;color:var(--muted)}
.rv-score .told.no{color:var(--ink)}
.rv-score-dialog .ps{margin:0 0 12px;color:var(--muted)}
.rv-score-dialog .opts{list-style:none;margin:0;padding:0}
.rv-score-dialog .opt:disabled{cursor:default;opacity:.6}
@media (max-width:1023px){
  .rv-score .tiles{grid-template-columns:minmax(0,1fr);gap:0}
  .rv-score .tile{flex-direction:row;align-items:center;min-height:44px;padding:8px 0;border-radius:0;background:none;border-top:1px solid var(--line)}
  .rv-score .sc-body{padding:4px 16px 8px}
  .rv-score .tl:first-child .tile,.rv-score .tl[hidden] + .tl .tile{border-top:0}
  .rv-score .tile .label{flex:1 1 auto;font-size:var(--t-row);line-height:1.4}
  .rv-score .tile strong{flex:none;font:var(--w-mid) var(--t-row)/1.4 var(--body);text-align:right;white-space:nowrap}
}
@media (max-width:439px){
  .rv-score .rv-seg button,.rv-score .sc-views .pick button{padding:0 8px}
  .rv-score .rv-tools{gap:4px 8px}
  .rv-score .rv-seg,.rv-score .sc-views .pick{gap:2px}
  .rv-score .cl-row{grid-template-columns:minmax(0,1fr);grid-template-areas:"rt" "do"}
  .rv-score .cl-row .do{justify-self:start}
  .rv-score .sc-body{padding:0 16px 4px}
  .rv-score .sc-body .rv-pager{margin-top:0;padding-top:4px}
}

/* These rooms share the open row treatment, including their detail sheets. */
:is(.rv-team,.rv-mail,.st-page,.wt-page,.pr-page,.rv-factory,.rv-desk-room,.rv-miles,.rv-assets,.rv-parts,#alert-list,
  .tm-dlg,.rv-mail-dialog,.pr-dialog,.wt-dialog,.fx-dlg,.rv-desk-room-dialog,.rv-miles-dialog,.rv-asset-card,.rv-part-card,.al-dlg) .rv-g-rows {
  padding-inline:0;
}
:is(.rv-mail,.wt-page,.pr-page,.rv-factory,.rv-desk-room,.rv-miles,.rv-assets,.rv-parts,.rv-room-all,#alert-list) .rv-g-counts {
  padding-inline:0;
  background:none;
  border-radius:0;
  border-block:1px solid var(--line);
}
:is(.rv-mail,.wt-page,.pr-page,.rv-factory,.rv-desk-room,.rv-miles,.rv-assets,.rv-parts,#alert-list) .rv-g-sec > .rv-g-note {
  padding-inline:0;
  background:none;
  border-radius:0;
}
:is(.rv-mail,.wt-page,.pr-page,.rv-factory,.rv-desk-room,.rv-miles,.rv-assets,.rv-parts,#alert-list) .rv-g-rt > span {
  font-size:var(--t-meta);
}
:is(.rv-team,.rv-mail,.st-page,.wt-page,.pr-page,.rv-factory,.rv-desk-room,.rv-miles,.rv-assets,.rv-parts,#alert-list,
  .tm-dlg,.rv-mail-dialog,.pr-dialog,.wt-dialog,.fx-dlg,.rv-desk-room-dialog,.rv-miles-dialog,.rv-asset-card,.rv-part-card,.al-dlg) .rv-tg {
  padding:0;
  border:0;
  background:none;
  color:var(--muted);
  font-size:var(--t-meta);
}
:is(.rv-team,.rv-mail,.wt-page,.pr-page,.rv-factory,.rv-desk-room,.rv-miles,.rv-assets,.rv-parts,#alert-list) .rv-pager button,
:is(.tm-dlg,.rv-mail-dialog,.pr-dialog,.wt-dialog,.fx-dlg,.rv-desk-room-dialog,.rv-miles-dialog,.rv-asset-card,.rv-part-card,.al-dlg) .rv-pager button {
  border-color:transparent;
  background:none;
}

.al-dlg .al-ign h3 {font-size:var(--t-section);line-height:24px;}
@media (max-width:559px) {
  dialog.rv-dialog.rv-atlas[open] {max-height:none;}
  .rv-room-thread .thread {max-height:none;padding-inline:0;}
}
