/* GROWTH, RESULTS (public/rooms/growth/scoreboard.js mounting public/rooms/score.js). The page is one glance
   (DESIGN.md "One glance", room-layout.css .rv-g-*): the headline under the tab row with the window menu and Details, then the picture. Every brand: a column a step (reached, replied, meetings, held, paying), a bar a brand, the
   brand names down the left; a phone keeps the first three steps. One brand: its five steps as bars. Leftover space
   sits at the bottom. */
.gr-tabview:has(> .gs-page){container:glance / inline-size}
.rv-room.gs-page{justify-content:flex-start;gap:24px;padding-top:0}
:is(.gs-page,.gs-in) .gs-menu{position:relative;display:block;min-width:0}
:is(.gs-page,.gs-in) .gs-menu select{appearance:none;-webkit-appearance:none;min-height:44px;margin:0;padding:0 34px 0 12px;border:1px solid var(--line2);border-radius:var(--r-ctl);background:transparent;color:var(--ink);font:var(--w-mid) var(--t-row)/1.2 var(--body);cursor:pointer}
:is(.gs-page,.gs-in) .gs-menu select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
:is(.gs-page,.gs-in) .gs-menu::after{content:"";position:absolute;right:14px;top:50%;width:7px;height:7px;border-right:1.5px solid var(--muted);border-bottom:1.5px solid var(--muted);transform:translateY(-70%) rotate(45deg);pointer-events:none}
.gs-mx{display:grid;grid-template-columns:max-content;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);column-gap:28px;align-items:start}
.gs-mx-col{position:relative;min-width:0}
.gs-mx-h{display:block;min-height:20px;margin-bottom:4px;color:var(--muted);font-size:var(--t-meta);line-height:20px;text-align:right}
.gs-mx-names ul{display:grid;row-gap:2px}
.gs-mx-names li{display:flex;align-items:center;min-height:44px}
.gs-mx-names a{color:var(--ink);font-weight:var(--w-strong);text-decoration:none;overflow-wrap:anywhere}
.gs-mx-names a:hover{text-decoration:underline;text-underline-offset:3px}
.gs-mx .rv-g-bars{grid-template-columns:minmax(24px,1fr) max-content;column-gap:14px}
.gs-mx .rv-g-bl{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.gs-mx .rv-g-bv{display:flex;align-items:center;justify-content:flex-end;min-width:2ch;min-height:44px}
@container glance (max-width:719px){
  .rv-room.gs-page{gap:20px}
  .gs-page .rv-g-tools{flex:1 1 100%;flex-wrap:wrap}
  .gs-page .gs-menu select{font-size:var(--t-head)}
  .gs-mx{grid-template-columns:minmax(0,96px);column-gap:16px}
  .gs-mx-wide{display:none}
  /* a column a step is narrow on the phone: each brand's number sits over its bar, so the bar takes the column's width */
  .gs-mx .rv-g-bars{grid-template-columns:minmax(0,1fr)}
  .gs-mx .rv-g-bars li{display:flex;flex-direction:column-reverse;justify-content:center;gap:4px;min-height:44px}
  .gs-mx .rv-g-bv{min-height:0;font-size:var(--t-head);line-height:22px}
}

/* DETAILS: the dialog holds the parts as the page once did (.gs-in, a room's own styles inside a wide dialog). Brands
   down, channels across at a desk; on a phone each brand is a group. "Nothing yet" and "Not read" are quiet. Long words
   (a review, how the figures are counted) open in a dialog over it. */
@media (min-width:560px){.rv-room-dialog.gs-details{width:min(1040px,calc(100% - 32px))}}
.rv-room.gs-in{flex:none;max-width:none;justify-content:flex-start;padding:0}
/* the parts: buttons at a desk, one menu on the phone (so the row never wraps) */
.gs-in .gs-part-menu{display:none}
@media (max-width:599px){
  .gs-in .gs-parts,.gs-in .sc-parts{display:none}
  .gs-in .gs-part-menu{display:block}
  .gs-in .gs-part-menu select{width:100%;font-size:var(--t-head)}
}
.rv-room.gs-in .gs-body{display:flex;flex-direction:column;gap:12px;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
.rv-room.gs .gs-dim,.rv-room.gs .gs-none,.rv-room.gs .gs-nr{color:var(--muted)}
/* words for one width only: the desk's inline notes, the phone's one button */
.rv-room.gs .gs-phone,.rv-room.gs .gs-quiet{display:none}
/* Channels: the head names each column at a desk; a brand is one row */
.rv-room.gs .gs-grid{display:grid;gap:0}
.rv-room.gs .gs-hd,.rv-room.gs .gs-brand{display:grid;grid-template-columns:120px repeat(var(--gs-n,6),minmax(0,1fr)) minmax(0,1.1fr);column-gap:12px}
.rv-room.gs .gs-hd{margin:0;padding:0 0 8px;border-bottom:1px solid var(--line2);font:var(--w-mid) var(--t-meta)/16px var(--body);color:var(--muted)}
.rv-room.gs .gs-brands{list-style:none;margin:0;padding:0}
.rv-room.gs .gs-brand{padding:12px 0;border-bottom:1px solid var(--line)}
.rv-room.gs .gs-name{margin:0;font:var(--w-mid) var(--t-row)/20px var(--body);color:var(--ink)}
.rv-room.gs .gs-cell{min-width:0}
.rv-room.gs .gs-ch{display:none}
.rv-room.gs .gs-say{display:flex;flex-direction:column;gap:2px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.rv-room.gs .gs-v{color:var(--ink)}
.rv-room.gs .gs-all{padding-left:12px;border-left:1px solid var(--line)}
.rv-room.gs .gs-all .gs-v{font-weight:var(--w-mid)}
.rv-room.gs .gs-grid > .rv-pager{margin-top:0}
/* how the figures are counted, and what was not read: each reason once, what it holds back, what fixes it */
.rv-room.gs .gs-notes{display:grid;gap:8px}
.rv-room.gs .gs-notes .sc-line{margin:0}
.rv-room.gs .gs-notes .why-b{margin:0}
.rv-room.gs .gs-nrs{list-style:none;margin:0;padding:0;display:grid;gap:4px;color:var(--muted);text-wrap:pretty}
.rv-room.gs .gs-nrs b{font-weight:var(--w-mid);color:var(--ink)}
/* the weekly reviews: one line, a brand each; the whole one in a dialog */
.rv-room.gs .gs-review{display:flex;flex-wrap:wrap;align-items:center;gap:0 16px;margin:0;padding-top:4px;border-top:1px solid var(--line)}
.rv-room.gs .gs-review .lk{min-height:44px}
.gs-dialog .gs-words{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ink)}
.gs-dialog p.gs-whose{margin:0 0 12px;color:var(--muted)}
.gs-dialog .gs-about-k{margin:16px 0 8px}
.gs-dialog .gs-rev{display:grid;gap:4px;padding-top:12px;border-top:1px solid var(--line)}
.gs-dialog .gs-rev + .gs-rev,.gs-dialog .gs-rev + .gs-dim{margin-top:12px}
.gs-dialog .gs-rev h3{margin:0;font:var(--w-mid) var(--t-row)/20px var(--body);color:var(--ink)}
.gs-dialog .gs-when{margin:0;font-size:var(--t-meta);line-height:16px;color:var(--muted)}
.gs-dialog .gs-rev .gs-words{margin-top:4px}
/* the phone's two buttons under the brands: how the figures are counted, and the weekly reviews */
.rv-room.gs .gs-more{flex-wrap:wrap;gap:0 20px;margin:0}
.rv-room.gs .gs-more .why-b{margin:0}

/* Sources, posts and ads: a row each, what it is on the left, its figures on the right; posts above ads, so neither
   column hangs short beside the other */
.rv-room.gs .gs-rows{list-style:none;margin:0;padding:0}
.rv-room.gs .gs-row{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 16px;min-height:44px;padding:10px 0;border-bottom:1px solid var(--line)}
.rv-room.gs .gs-what{margin:0;flex:1 1 240px;min-width:0;overflow-wrap:anywhere}
.rv-room.gs .gs-b{color:var(--muted);margin-right:4px}
.rv-room.gs .gs-figs{margin:0;display:flex;flex-wrap:wrap;gap:4px 16px;font-variant-numeric:tabular-nums}
.rv-room.gs .gs-cost{font-weight:var(--w-mid)}
/* no ad yet: the two figures the ads row would carry, named and empty */
.rv-room.gs .gs-ad0{display:grid;gap:0;margin:0;border-top:1px solid var(--line)}
.rv-room.gs .gs-ad0 > div{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid var(--line)}
.rv-room.gs .gs-ad0 dt{color:var(--muted)}
.rv-room.gs .gs-ad0 dd{margin:0;color:var(--ink);text-align:right}
.rv-room.gs .gs-two{display:grid;grid-template-columns:minmax(0,1fr);gap:20px}
.rv-room.gs .gs-two > section{display:grid;align-content:start;gap:8px;min-width:0}
.rv-room.gs .gs-go{display:flex;flex-wrap:wrap;gap:8px;margin:0}
.rv-room.gs .gs-lead{margin:0}
.rv-room.gs .gs-lead b{font-weight:var(--w-strong)}
.rv-room.gs .sc-sub{display:flex;flex-direction:column;gap:8px}

/* a phone or a narrow window: each brand a group, each channel with figures one line with its name, its steps run on
   with commas; the channels with nothing yet share one line; the notes move into one dialog */
/* a clinic in Details: its name with its state under it, and its one action beside it, a 44px control on one line.
   The room's phone row (room-layout.css) spreads a row's words over the grid; this row keeps them together. */
.rv-room.gs .cl-row{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"rt do";align-items:center;column-gap:16px;row-gap:8px}
.rv-room.gs .cl-row .rv-rt{grid-area:rt;display:flex;flex-direction:column;gap:2px;min-width:0}
.rv-room.gs .cl-row .do{grid-area:do;min-height:44px;white-space:nowrap}

@media (max-width:767px){
  .rv-room.gs .gs-hd{display:none}
  .rv-room.gs .gs-brand{display:block;padding:8px 0}
  .rv-room.gs .gs-name{padding:4px 0}
  .rv-room.gs .gs-cell,.rv-room.gs .gs-quiet{display:flex;align-items:baseline;gap:12px;margin:0;padding:6px 0;border-top:1px solid var(--line)}
  .rv-room.gs .gs-cell[data-state=nothing_yet]{display:none}
  .rv-room.gs .gs-quiet{color:var(--muted)}
  .rv-room.gs .gs-ch{display:block;flex:0 0 96px;color:var(--muted)}
  .rv-room.gs .gs-say{display:block;flex:1 1 auto;min-width:0}
  .rv-room.gs .gs-say > span:not(:last-child)::after{content:", "}
  .rv-room.gs .gs-say > :not(:first-child) .gs-up{text-transform:lowercase}
  .rv-room.gs .gs-all{padding-left:0;border-left:0}
  .rv-room.gs .gs-all .gs-v{font-weight:var(--w-row)}
  .rv-room.gs .gs-desk{display:none}
  .rv-room.gs .gs-phone{display:flex}
}
/* the phone: the parts' switches wrap; each control keeps 44px */
@media (max-width:599px){
  .rv-room.gs .rv-seg button{padding:0 10px}
  .rv-room.gs .gs-go .btn{flex:1 1 auto}
  .rv-room.gs .cl-row{grid-template-columns:minmax(0,1fr);grid-template-areas:"rt" "do"}
  .rv-room.gs .cl-row .do{justify-self:start}
  .rv-room.gs .gs-body{padding:12px 16px}
  .rv-room.gs .gs-ch{flex-basis:84px}
  .rv-room.gs .gs-review{gap:0 16px;padding-top:12px}
  .rv-room.gs .gs-review .rv-label{flex-basis:100%}
}
/* the headline keeps its one state mark beside it on the phone: the figure's words wrap, the mark never drops under */
.gs-page .rv-g-hl{flex-wrap:nowrap;align-items:flex-start}
.gs-page .rv-g-fig{min-width:0}
.gs-page .rv-g-mark{flex:none;margin-top:0}
/* the empty line sits as far under the headline as on every other Growth tab */
.gs-page > .gr-none{margin-top:-4px}
