/* GROWTH, CAMPAIGNS (public/rooms/growth/campaigns.js): one glance (DESIGN.md "One glance", room-layout.css .rv-g-*):
   the headline under the tab row, the campaigns a row each, a quiet line a brand; and the campaign, brand, card and
   "close without saving?" dialogs. Leftover space sits at the bottom. Every rule is scoped to the page (.gc) or its
   dialogs (.gc-dialog). Materials from theme.css, plus one red kept for the buttons that stop. */
.gr-tabview:has(> .gc){container:glance / inline-size}
.rv-room.gc{justify-content:flex-start;padding-top:0}
.rv-room.gc .rv-g-tools{flex-wrap:wrap;gap:0 20px}
.rv-room.gc .rv-g-tools .rv-g-more{margin:0}
.gc-dialog{--gc-red:#FF9B94}
:root[data-theme=light] .gc-dialog{--gc-red:#B42318}
.gc-dialog .gc-dim{margin:0;color:var(--muted);overflow-wrap:anywhere}
.gc-dialog .gc-kill{background:var(--gc-red);border-color:var(--gc-red);color:#1A1414}
.gc-dialog .gc-fail{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:8px 0}
.gc-dialog .gc-fail p{margin:0;color:var(--muted)}

/* THE DIALOGS: centred; the title, a body that scrolls inside itself, and a footer that keeps the decision in view */
@media (min-width:560px){
  .gc-dialog.gc-camp,.gc-dialog.gc-seat,.gc-dialog.gc-cardedit{width:min(760px,calc(100% - 32px))}
  .gc-dialog.gc-ask{width:min(420px,calc(100% - 32px))}
}
.gc-dialog[open]{display:flex;flex-direction:column}
.gc-dialog > .rv-dialog-head{flex:none}
.gc-dialog > .rv-dialog-body,.gc-dialog .gc-form > .rv-dialog-body{display:flex;flex-direction:column;gap:20px;flex:1 1 auto;min-height:0;max-height:none}
.gc-dialog.rv-room-dialog form.gc-form{display:flex;flex-direction:column;gap:0;flex:1 1 auto;min-height:0}
.gc-dialog .gc-foot{flex:none;display:flex;flex-direction:column;gap:8px;padding:12px 20px 16px;border-top:1px solid var(--line)}
.gc-dialog.gc-ask .rv-dialog-body{gap:16px}
.gc-dialog.gc-ask > .rv-dialog-head{min-height:52px;padding:8px 20px}
.gc-dialog h3{margin:0 0 8px;font:var(--w-strong) var(--t-section)/22px var(--display);color:var(--ink)}
.gc-dialog h4{margin:0 0 2px;font:var(--w-strong) var(--t-row)/20px var(--body)}
.gc-dialog .gc-words{white-space:pre-wrap;overflow-wrap:anywhere}
.gc-dialog .gc-state{margin:0;color:var(--muted)}
/* emails waiting for his tap: the first thing in the sheet after its state, with the way to them */
.gc-dialog .gc-waitnote{margin:0;padding-block:12px;border-block:1px solid var(--line);color:var(--ink);text-wrap:pretty}
.gc-dialog .gc-in-link{display:inline-block;padding:12px 0;margin:-12px 0;line-height:20px;color:var(--accent);font-weight:var(--w-mid);text-decoration:underline;text-underline-offset:3px}
.gc-dialog .gc-email{padding-block:12px;border-block:1px solid var(--line);margin-bottom:8px}
.gc-dialog .gc-subj{margin:0 0 4px;font-weight:var(--w-mid);overflow-wrap:anywhere}
.gc-dialog .gc-meta{margin:0 0 4px;font-size:var(--t-meta);color:var(--muted)}
.gc-dialog .gc-nums{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0}
.gc-dialog .gc-nums div{padding-block:8px;border-block:1px solid var(--line)}
.gc-dialog .gc-nums dt{font-size:var(--t-meta);line-height:16px;color:var(--muted)}
.gc-dialog .gc-nums dd{margin:2px 0 0;font:var(--w-strong) var(--t-head)/24px var(--display);font-variant-numeric:tabular-nums;white-space:nowrap}
.gc-dialog .gc-sends li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 12px;min-height:44px;padding:8px 0;border-top:1px solid var(--line)}
.gc-dialog .gc-sends li:first-child{border-top:0}
.gc-dialog .gc-sends .rv-rt{display:flex;flex-direction:column;gap:2px;min-width:0}
.gc-dialog .gc-sends .rv-sub,.gc-dialog .gc-out{color:var(--muted)}
/* a proposal's cap and days, each with what it refuses beside it, then what approving means */
.gc-dialog .gc-act{display:flex;flex-direction:column;gap:12px;padding-block:16px;border-top:1px solid var(--line)}
.gc-dialog .gc-act h3{margin:0}
.gc-dialog .gc-means{margin:0;text-wrap:pretty}
.gc-dialog .gc-two{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
.gc-dialog .gc-field{display:grid;align-content:start;gap:8px;min-width:0}
.gc-dialog .gc-field label{display:grid;gap:8px}
.gc-dialog .gc-field label > span,.gc-dialog label.gc-field > span{color:var(--muted)}
dialog.gc-dialog.rv-room-dialog .gc-field input,dialog.gc-dialog.rv-room-dialog .gc-field textarea,dialog.gc-dialog.rv-room-dialog .gc-link input{box-sizing:border-box;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-head)/1.4 var(--body)}
dialog.gc-dialog.rv-room-dialog .gc-field textarea{resize:vertical;min-height:72px}
dialog.gc-dialog.rv-room-dialog .gc-field [aria-invalid=true]{border-color:var(--gc-red)!important}
.gc-dialog .gc-err{margin:0;color:var(--gc-red)}
.gc-dialog .gc-err:empty{display:none}
.gc-dialog .gc-acts{display:flex;flex-wrap:wrap;gap:8px}
.gc-dialog .gc-acts .btn{flex:1 1 140px}
.gc-dialog .gc-confirm{display:flex;flex-direction:column;gap:8px}
.gc-dialog .gc-confirm p{margin:0}
.gc-dialog .gc-say{margin:0;color:var(--muted)}
.gc-dialog .gc-say:empty{display:none}
/* a brand's switches: what it does on the left, the switch on the right */
.gc-dialog .gc-set{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;padding:12px 0;border-top:1px solid var(--line)}
.gc-dialog .gc-set:first-of-type{border-top:0}
.gc-dialog .gc-set-words{flex:1 1 18rem;min-width:0}
.gc-dialog .gc-set-name{margin:0 0 2px;font-weight:var(--w-mid)}
.gc-dialog .gc-set .gc-say{flex:1 0 100%}
/* Autopilot's block, in the rows' rhythm: its limits panel under its row, then what it still needs 24px below (a row's
   12 + 12), its heading 8px over its list as a section's h3, and the next row's rule the only one under its last line */
.gc-dialog .gc-ready{padding:12px 0}
/* the goal's panel then the limits', two groups 16px apart (DESIGN.md: 16-20 between groups), and the goal 16px under
   the switch's row (its 12 + 4); the complaint stop's
   reason in the waiting note's look, a full-width line of the row under its words and switch, 12px below them as the
   row's own padding (so at a phone's width the switch keeps its own line above it) */
.gc-dialog .gc-act + .gc-act{margin-top:16px}
.gc-dialog .gc-set + .gc-act{margin-top:4px}
.gc-dialog .gc-set .gc-say{text-wrap:pretty}
.gc-dialog .gc-set .gc-off{flex:1 0 100%;margin-top:4px}
.gc-dialog .gc-act + .gc-ready{padding-top:24px}
.gc-dialog .gc-ready > .gc-set-name{margin:0 0 8px}
.gc-dialog .gc-ready .gc-card{margin:0}
.gc-dialog .gc-ready .gc-card div:last-child{padding-bottom:0;border-bottom:0}
.gc-dialog .gc-val{color:var(--ink);font-weight:var(--w-mid);overflow-wrap:anywhere}
.gc-dialog .gc-val a{color:var(--accent)}
.gc-dialog .gc-switch{display:inline-flex;align-items:center;gap:10px;min-height:44px;min-width:132px;padding:0 14px 0 8px;border:1px solid var(--line2);border-radius:22px;background:none;color:var(--ink);font-weight:var(--w-mid)}
.gc-dialog .gc-knob{position:relative;flex:none;width:36px;height:20px;border-radius:10px;background:var(--line2)}
.gc-dialog .gc-knob::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:var(--ink);transition:transform .15s}
.gc-dialog .gc-switch[aria-checked=true] .gc-knob{background:var(--accent)}
.gc-dialog .gc-switch[aria-checked=true] .gc-knob::after{transform:translateX(16px);background:var(--accent-ink)}
.gc-dialog .gc-switch:disabled{opacity:.6;cursor:default}
.gc-dialog .gc-switch:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.gc-dialog.rv-room-dialog .gc-set-link form.gc-link{display:flex;gap:8px;flex:1 1 18rem;min-width:0}
.gc-dialog .gc-link input{flex:1;min-width:0}
.gc-dialog .gc-link .btn{flex:none}
/* the audience card: label over its words */
.gc-dialog .gc-card{margin:0 0 12px;border-top:1px solid var(--line)}
.gc-dialog .gc-card div{padding:12px 0;border-bottom:1px solid var(--line)}
.gc-dialog .gc-card dt{font-size:var(--t-meta);line-height:16px;color:var(--muted)}
.gc-dialog .gc-card dd{margin:2px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
/* the card's one yes/no: the whole line is the target, the box drawn */
.gc-dialog .gc-check{position:relative;display:flex;align-items:center;gap:12px;min-height:44px;cursor:pointer}
.gc-dialog .gc-check input{position:absolute;inset:0;width:100%;height:100%;min-height:0;margin:0;opacity:0;cursor:pointer;font-size:var(--t-head)}
.gc-dialog .gc-box{position:relative;flex:none;width:20px;height:20px;border:1.5px solid var(--line2);border-radius:5px;background:var(--bg)}
.gc-dialog .gc-check input:checked + .gc-box{border-color:var(--accent);background:var(--accent)}
.gc-dialog .gc-check input:checked + .gc-box::after{content:"";position:absolute;left:5px;top:1px;width:5px;height:10px;border:solid var(--accent-ink);border-width:0 2px 2px 0;transform:rotate(45deg)}
.gc-dialog .gc-check input:focus-visible + .gc-box{outline:2px solid var(--accent);outline-offset:2px}
.gc-dialog .gc-note{padding:12px 0;border-top:1px solid var(--line)}
.gc-dialog .gc-note:first-of-type{border-top:0;padding-top:0}
@media (max-width:719px){
  .gc-dialog .gc-foot{padding:12px 16px}
  .gc-dialog .gc-nums{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (prefers-reduced-motion:reduce){.gc-dialog .gc-knob::after{transition:none}}
