/* GROWTH, FIND MORE BUSINESSES (public/rooms/growth/lists.js): one glance (DESIGN.md "One glance", room-layout.css
   .rv-g-*): the headline under the tab row with Find a business and Find more, the lists a row each (waiting on Chris
   first), leftover space at the bottom; and the ask, list and search dialogs. Every rule is scoped to the page (.gl) or
   its dialogs (.gl-dialog, .rv-unsaved). Materials from theme.css; blue is the primary action, the one red only marks
   Stop. */
.gr-tabview:has(> .gl){container:glance / inline-size}
.rv-room.gl{justify-content:flex-start;padding-top:0}
.rv-room.gl .rv-g-tools .btn{white-space:nowrap}
:root[data-theme=light] .gl-dialog{--gl-red:#B42318}
.gl-dialog{--gl-red:#FF9B94}
.gl-dialog .gl-dim{color:var(--muted);overflow-wrap:break-word}
/* the weekday tick: a 44px row, the box sized to be pressed */
.gl-dialog .gl-check{display:flex;align-items:center;gap:12px;min-height:44px}
.gl-dialog .gl-check input{width:20px;height:20px;margin:0;accent-color:var(--accent)}
.gl-dialog .gl-fail{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:8px 0}
.gl-dialog .gl-fail p{color:var(--muted)}
/* the finished lists in their dialog: rows on the dialog itself, no second sheet */

/* the dialogs: centred, scrolling inside themselves (theme.css .rv-dialog-body); the close keeps its width beside a
   long title */
@media (min-width:720px){.gl-dialog.gl-job,.gl-dialog.gl-ask{width:min(760px,calc(100% - 32px))}}
.gl-dialog .rv-dialog-head button,.rv-unsaved .rv-dialog-head button{flex:none}
.gl-dialog .rv-dialog-body{display:flex;flex-direction:column;gap:16px}
.gl-dialog p{margin:0}
.gl-dialog h3{margin:0 0 8px;font:var(--w-strong) var(--t-section)/22px var(--display);color:var(--ink)}
.gl-dialog .gl-words{white-space:pre-wrap;overflow-wrap:break-word}
.gl-dialog .gl-big{font:var(--w-strong) var(--t-room)/28px var(--display)}
.gl-dialog .gl-nums{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0}
@media (max-width:599px){.gl-dialog .gl-nums{grid-template-columns:repeat(2,minmax(0,1fr))}}
.gl-dialog .gl-nums div{padding-block:8px;border-block:1px solid var(--line)}
.gl-dialog .gl-nums dt{font-size:var(--t-meta);line-height:16px;color:var(--muted)}
.gl-dialog .gl-nums dd{margin:4px 0 0;font:var(--w-strong) var(--t-head)/24px var(--display);font-variant-numeric:tabular-nums}
.gl-dialog .gl-act{display:flex;flex-direction:column;gap:12px;padding-block:12px;border-block:1px solid var(--line)}
.gl-dialog .gl-acts{display:flex;flex-wrap:wrap;gap:8px}
.gl-dialog .gl-acts .btn{flex:1 1 160px}
.gl-dialog .gl-kill{background:var(--gl-red);border-color:var(--gl-red);color:#1A1414}
.gl-dialog .gl-say{color:var(--muted)}
.gl-dialog .gl-say:empty{display:none}
/* what does not fit: said in ink, never in red (red is for stopping) */
.gl-dialog .gl-warn{color:var(--ink)}
.gl-dialog .gl-short{font-weight:var(--w-mid)}

/* the ask: brand, who, where, how many, then what asking does and the one button */
.gl-dialog .gl-form{display:flex;flex-direction:column;gap:16px}
.gl-dialog .gl-field{display:grid;gap:8px;margin:0;padding:0;border:0;min-width:0}
.gl-dialog .gl-field > span,.gl-dialog .gl-field legend{padding:0;color:var(--muted)}
.gl-dialog .gl-field legend{margin-bottom:8px}
.gl-dialog .gl-field input:not([type=radio]),.gl-dialog .gl-field textarea{box-sizing:border-box;width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--line2);border-radius:8px;background:var(--bg2);color:var(--ink);font-size:var(--t-head)}
.gl-dialog .gl-field textarea{resize:vertical;min-height:64px;line-height:1.4}
/* a refused field wears the warning colour, never the blue of a field that only has the focus */
dialog.gl-dialog.rv-room-dialog .gl-field [aria-invalid=true]{border-color:var(--gl-red)!important}
.gl-dialog .gl-go{display:flex;flex-direction:column;gap:12px;padding-top:16px;border-top:1px solid var(--line)}
.gl-dialog .gl-go .btn{flex:0 1 auto;min-width:200px}

/* a list's businesses, each contact with its record; the addresses are links inside their line, given a 44px target
   by padding that does not move the words */
.gl-dialog .gl-biz{display:flex;flex-direction:column;gap:4px;padding:16px 0;border-top:1px solid var(--line)}
.gl-dialog .gl-biz:first-child{border-top:0;padding-top:0}
.gl-dialog .gl-biz > ul{display:flex;flex-direction:column;gap:12px;margin-top:8px}
.gl-dialog .gl-name{font-weight:var(--w-strong);overflow-wrap:break-word}
.gl-dialog .gl-name .gl-dim{font-weight:var(--w-row)}
.gl-dialog .gl-contact{display:flex;flex-direction:column;gap:4px;padding-left:12px;border-left:2px solid var(--line2)}
.gl-dialog .gl-who{font-weight:var(--w-mid)}
.gl-dialog .gl-addr{display:flex;flex-wrap:wrap;gap:0 16px}
.gl-dialog .gl-addr span{overflow-wrap:anywhere}
.gl-dialog .gl-rec{font-size:var(--t-meta);line-height:18px;color:var(--muted);text-wrap:pretty}
.gl-dialog .gl-rec a{padding-block:15px;color:var(--accent);text-underline-offset:3px}
.gl-dialog .gl-norec{color:var(--gl-red)}
.gl-dialog .gl-why{text-wrap:pretty;overflow-wrap:break-word}

/* the console's own ask before typed words are lost (lists.js closeUnsaved; Ads uses it too) */
.rv-unsaved{width:min(420px,calc(100% - 32px))}
.rv-unsaved .rv-dialog-body{display:flex;flex-direction:column;gap:16px}
.rv-unsaved .rv-dialog-head{padding-block:12px}
.rv-unsaved-acts{display:flex;flex-wrap:wrap;gap:8px}
.rv-unsaved-acts .btn{flex:1 1 140px}
