/* GROWTH, CONVERSATIONS (public/rooms/growth/conversations.js): the page is the one-glance pieces (room-layout.css
   .rv-g-*): the replies waiting on Chris, the meetings coming up, this week's calls. A thread, a meeting, the Book sheet,
   every list's "All" and every question open in centred dialogs (.gt-dialog). Loaded after room-layout.css and
   growth.css; materials from theme.css only. */
/* a link inside a line of text: 44px to the finger, the line does not move */
.rv-g-page.gt .gt-lk,.gt-dialog .gt-lk{display:inline;padding:14px 0;margin:-14px 0;color:var(--accent);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.rv-g-page.gt .gt-lk:hover,.gt-dialog .gt-lk:hover{text-decoration-thickness:2px}
/* the texts to place: each text, then one button per business it may be */
.rv-g-page.gt .gt-place{display:flex;flex-direction:column;gap:12px;padding-block:12px;border-block:1px solid var(--line)}
.rv-g-page.gt .gt-place h2{font-size:var(--t-section);color:var(--ink)}
.rv-g-page.gt .gt-dim{color:var(--muted)}
.rv-g-page.gt .gt-acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
/* a list's every row, in its dialog: the rows on the dialog's own ground, laid out by its width */
.gt-dialog.gt-all .rv-dialog-body{container:glance / inline-size}

/* THE DIALOGS: centred, scrolling inside themselves (theme.css .rv-dialog-body) */
@media (min-width:560px){
  .gt-dialog.gt-thread{width:min(760px,calc(100% - 32px))}
  .gt-dialog.gt-ask{width:min(440px,calc(100% - 32px))}
}
.gt-dialog .rv-dialog-body{display:flex;flex-direction:column;gap:20px}
.gt-dialog.gt-ask .rv-dialog-body{gap:16px}
.gt-dialog h3{margin:0 0 8px;font:var(--w-strong) var(--t-section)/22px var(--display);color:var(--ink)}
.gt-dialog .gt-dim{margin:0;color:var(--muted);overflow-wrap:break-word}
.gt-dialog ol{list-style:none;margin:0;padding:0}
.gt-dialog .gt-facts{margin:0;border-top:1px solid var(--line)}
.gt-dialog .gt-facts div{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 16px;padding:12px 0;border-bottom:1px solid var(--line)}
.gt-dialog .gt-facts dt{color:var(--muted);flex:none}
.gt-dialog .gt-nw{white-space:nowrap}
.gt-dialog .gt-facts dd{margin:0;flex:1 1 14rem;min-width:0;text-align:right;overflow-wrap:break-word}
/* theirs on the left, ours on the right, oldest first */
.gt-msgs{display:flex;flex-direction:column;gap:12px}
:is(.rv-g-page.gt,.gt-dialog) .gt-msg{max-width:72ch;padding-block:12px;border-top:1px solid var(--line)}
:is(.rv-g-page.gt,.gt-dialog) .gt-msg.theirs{align-self:flex-start;border-bottom-left-radius:4px}
.gt-dialog .gt-msg.ours{align-self:stretch}
:is(.rv-g-page.gt,.gt-dialog) .gt-meta{margin:0 0 4px;font-size:var(--t-meta);color:var(--muted)}
.gt-dialog .gt-subj{margin:0 0 4px;font-weight:var(--w-mid);overflow-wrap:break-word}
:is(.rv-g-page.gt,.gt-dialog) .gt-words{white-space:pre-wrap;overflow-wrap:break-word}
.gt-dialog .gt-state{margin:8px 0 0;font-size:var(--t-meta);color:var(--accent)}
/* what waits on Chris: one card, its words, its buttons */
.gt-dialog .gt-answer{display:flex;flex-direction:column;gap:12px;padding-block:12px;border-top:1px solid var(--line)}
.gt-dialog .gt-answer h3{margin:0}
.gt-dialog .gt-draft{padding:12px 16px;border-left:2px solid var(--line2)}
.gt-dialog .gt-when{margin:0;font-weight:var(--w-mid);font-variant-numeric:tabular-nums}
.gt-dialog .gt-field{display:grid;gap:8px}
.gt-dialog .gt-field > span{color:var(--muted)}
.gt-dialog .gt-field :is(input,textarea){box-sizing:border-box;width:100%;padding:10px 12px;border:1px solid var(--line2);border-radius:8px;background:var(--bg2);color:var(--ink);font-size:var(--t-head);line-height:1.4}
.gt-dialog .gt-field textarea{resize:vertical;min-height:120px}
/* a subject: one field that wraps to its words, never cut at its edge */
.gt-dialog .gt-field textarea.gt-one{min-height:48px;resize:none;field-sizing:content;overflow:hidden}
/* the subject is read, not typed: no box, the thread's own words */
.gt-dialog .gt-field textarea.gt-one[readonly]{min-height:0;padding:0;border:0;background:none;color:var(--ink);cursor:default}
.gt-dialog .gt-field textarea.gt-one[readonly]:focus{outline:none}
.gt-dialog .gt-acts{display:flex;flex-wrap:wrap;gap:8px}
.gt-dialog .gt-acts .btn{flex:none;padding:0 20px}
/* a disabled button reads as off, never as a live blue one */
.gt-dialog .btn:disabled{background:var(--bg3);color:var(--muted);opacity:1;cursor:default}
.gt-dialog .gt-mhead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:4px}
.gt-dialog .gt-mhead h3{margin:0}
/* a meeting: its facts, then the way to its thread, then Cancel */
.gt-dialog.gt-meet .card .f{align-items:center}
.gt-dialog.gt-meet .card .f .v{overflow-wrap:break-word}
.gt-dialog.gt-meet .card .f .v .lk{justify-content:flex-end}
.gt-dialog.gt-meet .card + .lk{align-self:flex-start;margin-top:-8px}
/* the phone: the buttons share a row and fill it, a label never breaks inside its button; with three, the first takes a
   row of its own and the two quiet ones share the next; two that cannot share a row each take a full one */
@media (max-width:699px){
  .gt-dialog .gt-acts .btn{flex:1 1 auto;padding:0 12px;white-space:nowrap}
  .gt-dialog .gt-acts > .btn:first-child:nth-last-child(3){flex-basis:100%}
}
/* the open times of one day: an even grid of clocks, a time never broken across lines */
.gt-dialog .gt-times{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:8px;margin:0;padding:0;border:0}
.gt-dialog .gt-times legend{margin-bottom:8px;padding:0}
.gt-dialog .gt-times label{position:relative;display:flex}
.gt-dialog .gt-times input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.gt-dialog .gt-times span{flex:1;display:flex;align-items:center;justify-content:center;min-height:44px;padding:0 12px;border:1px solid var(--line2);border-radius:10px;font-variant-numeric:tabular-nums;white-space:nowrap}
.gt-dialog .gt-times input:checked + span{background:var(--accent);border-color:var(--accent);color:var(--accent-ink);font-weight:var(--w-strong)}
.gt-dialog .gt-times input:focus-visible + span{outline:2px solid var(--accent);outline-offset:2px}
/* a call on no business: what it was about, then the history's own call line (public/growth-history.css styles it
   under .rv-room.gh; here that room's spacing is the dialog's) */
@media (min-width:560px){.gt-dialog.gt-call{width:min(520px,calc(100% - 32px))}}
.gt-dialog .gt-said-line{margin:0}
.gt-dialog .rv-room.gh.gt-callbox{display:block;flex:none;width:auto;max-width:none;margin:0;padding:0}
.gt-dialog .rv-room.gh.gt-callbox .gh-call{margin-top:0}
.gt-dialog .gt-say{margin:0;color:var(--muted)}
.gt-dialog .gt-say:empty{display:none}
