/* THE GROWTH ROOM: one fixed top over the open tab (DESIGN.md "One glance"; docs/design/growth-simple). At a desk the top
   is one row on the room's gutter: To do, Going out and Results on the left, the stop switch and a quiet Set up on the
   right, one rule under it all, a line under the open tab's words. On a phone (or a narrow room) the switch takes the
   first row and the tabs the second. The tab's page starts under the row, on the same gutter;
   leftover space sits at the bottom. Each tab's own styles live in its own file (public/growth-<tab>.css). */
.rv-growth{box-sizing:border-box;flex:1 0 auto;display:flex;flex-direction:column;width:100%;min-width:0;color:var(--ink);font-size:var(--t-row);line-height:1.4;container:gr / inline-size}
.rv-growth .gr-top *,.rv-growth .gr-top{box-sizing:border-box}
.rv-growth > .gr-view{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;padding-top:20px}
.rv-growth .gr-tabview{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}
/* a page built on the one-glance pieces lays its headline and rows out by its own width, as every room's page does */
.rv-growth .gr-tabview{container:glance / inline-size}
/* today's screens under Results and Set up keep their own layout, on the room's full width */
.rv-growth .gr-tabview > .rv-room{--rv-gut:0px;max-width:none;margin:0;padding-top:0;justify-content:flex-start}

.rv-growth .gr-top{display:flex;align-items:stretch;gap:0 24px;border-bottom:1px solid var(--line)}
.rv-growth .gr-tabs{display:flex;gap:24px}
.rv-growth .gr-tab{display:inline-flex;align-items:center;gap:6px;flex:none;min-height:44px;margin-bottom:-1px;padding:0;border:0;border-bottom:2px solid transparent;background:none;color:var(--muted);font:var(--w-mid) var(--t-row)/20px var(--body);text-decoration:none;white-space:nowrap;cursor:pointer}
.rv-growth .gr-tab:hover{color:var(--ink)}
.rv-growth .gr-tab.on{color:var(--ink);border-bottom-color:var(--accent)}
.rv-growth .gr-tab:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:6px}
.rv-growth .gr-n{font-size:var(--t-meta);color:var(--muted)}
.rv-growth .gr-setup{font-weight:var(--w-row)}
.rv-growth .gr-ctl{display:flex;align-items:center;gap:16px;margin-left:auto}
/* the stop switch: the state in words with its dot, one quiet button */
.rv-growth .gr-master{display:flex;align-items:center;gap:12px}
.rv-growth .gr-st{display:inline-flex;align-items:center;gap:8px;font-weight:var(--w-mid);white-space:nowrap}
.rv-growth .gr-dot{flex:none;width:8px;height:8px;border-radius:50%;background:var(--ink)}
.rv-growth .gr-dot.off{background:none;box-shadow:inset 0 0 0 1.5px var(--muted)}
.rv-growth .gr-quiet{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;min-height:44px;padding:0 14px;border:1px solid var(--line2);border-radius:var(--r-ctl);background:transparent;color:var(--ink);font:var(--w-mid) var(--t-row)/20px var(--body);white-space:nowrap;cursor:pointer}
.rv-growth .gr-quiet:hover{background:var(--bg3)}
.rv-growth .gr-quiet:disabled{color:var(--muted);cursor:default;background:transparent}
.rv-growth .gr-say{margin:8px 0 0;color:var(--muted);font-size:var(--t-meta);line-height:16px}
.rv-growth .gr-say[hidden]{display:none}
.rv-growth .gr-dim{color:var(--muted);padding:16px}
@container gr (max-width:659px){
  .rv-growth .gr-top{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"ctl ctl" "tabs setup";column-gap:12px}
  .rv-growth .gr-ctl{grid-area:ctl;justify-content:flex-end;gap:12px;margin:0}
  .rv-growth .gr-tabs{grid-area:tabs;justify-content:space-between;gap:4px}
  .rv-growth .gr-setup{grid-area:setup}
  .rv-growth .gr-dot{display:none}
  .rv-growth .gr-quiet{padding:0 12px}
  .rv-growth > .gr-view{padding-top:16px}
}

@media (max-width:559px){
  .rv-growth .gr-tab{gap:4px}
}
.rv-growth .rv-g-rows,.rv-growth .rv-room.rv-marketing .rv-g-rows{padding-inline:0}
.rv-growth .rv-g-counts{padding-inline:0;background:none;border-radius:0;border-block:1px solid var(--line)}
.rv-growth .rv-g-sec > .rv-g-note{padding-inline:0;background:none}
.rv-growth .rv-g-sh h3{font-size:var(--t-section)}
.rv-growth .rv-g-rt b{font-size:var(--t-row);font-weight:var(--w-mid)}
.rv-growth .rv-g-rt span,.rv-growth .rv-tg{font-size:var(--t-meta)}
:is(.rv-growth,.ap-group,.gx-all,.gx-backbox,.mkw-dialog) .rv-g-verb{border-color:transparent;color:var(--accent);padding-inline:0;min-width:60px;justify-content:flex-end}
:is(.rv-growth,.ap-group,.gx-all,.gx-backbox,.mkw-dialog) .rv-g-verb:hover{background:none;text-decoration:underline;text-underline-offset:3px}
.rv-growth .rv-panel{border:0;border-radius:0;background:none;box-shadow:none;padding-inline:0}
.rv-growth .rv-g-more{padding-inline:0}
.rv-growth .rv-g-rows:not(:has(> li:not([hidden]))){display:none}

:is(.ap-dialog,.gc-dialog,.ga-dialog,.gl-dialog,.gt-dialog,.cl-dialog,.gr-ask) .btn.ghost{background:transparent;border:1px solid var(--line2)}
:is(.ap-dialog,.gr-out-dialog,.gx-touch,.gx-clinic) .card{min-width:0}
:is(.ap-dialog,.gr-out-dialog,.gx-touch,.gx-clinic) .card .v{min-width:0;overflow-wrap:anywhere}

.mkw-dialog .rv-dialog-body{container:glance / inline-size}
@container glance (max-width:719px){
  :is(.rv-growth,.ap-group,.gx-all,.gx-backbox,.mkw-dialog) .rv-g-row.tagged{padding-block:6px}
  :is(.rv-growth,.ap-group,.gx-all,.gx-backbox,.mkw-dialog) .rv-g-rt .rv-g-tl{display:inline-flex;gap:4px 8px;margin-top:2px;margin-right:8px}
  :is(.rv-growth,.ap-group,.gx-all,.gx-backbox,.mkw-dialog) .rv-g-rt .rv-g-tl + span{display:inline}
}

/* Set up's places and the start-sending ask */
.gr-places-dialog .gr-places{list-style:none;margin:0;padding:0;border-bottom:1px solid var(--line)}
.gr-places-dialog .gr-places li + li{border-top:1px solid var(--line)}
.gr-places-dialog .gr-places a{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;color:var(--ink);font-weight:var(--w-mid);text-decoration:none}
.gr-places-dialog .gr-places a:hover{text-decoration:underline;text-underline-offset:3px}
.gr-places-dialog .rv-chev{flex:none;width:16px;height:16px;color:var(--muted)}
.gr-ask .go{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.gr-out-dialog .gr-out-to{margin-top:16px}
.gr-out-dialog .gr-out-to a{display:inline-flex;align-items:center;min-height:44px;color:var(--accent)}

/* a tab narrowed to a brand with nothing in it says so, once, in one plain line under its zero headline (DESIGN.md
   "Fewer words" 5) */
.gr-none{margin:0;color:var(--muted);font-size:var(--t-row);line-height:20px}
/* an item's headline: its brand tag beside the way back */
.rv-growth .rv-queue .rv-g-tools{display:flex;align-items:center;gap:12px}
