/* ===========================================================================
   Ask a Question: live Q&A for the 4th HP&DP Conference & CHWs Summit
   ---------------------------------------------------------------------------
   Adapted from the Slido tool, restyled to match the programme site: Barlow,
   the conference blue as the one accent, light only (like every page). The token names (--room-*, --lamp) are Slido's.
   Fonts come from the programme site's own assets/fonts (same origin).
   =========================================================================== */

@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url('../../../assets/fonts/barlow-400.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url('../../../assets/fonts/barlow-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-display: swap; src: url('../../../assets/fonts/barlow-condensed-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url('../../../assets/fonts/barlow-condensed-700.woff2') format('woff2'); }

:root {
  --room-900: #F6F8FA;
  --room-800: #FFFFFF;
  --room-700: #EEF2F5;
  --line: #D5DEE4b0;
  --line-solid: #C9D3DA;
  --text: #232A30;
  --text-dim: #5E6C78;
  --text-faint: #6B7884;
  --lamp: #03549D;
  --lamp-ink: #FFFFFF;
  --lamp-glow: #03549D14;
  --answered: #00777C;
  --danger: #B3261E;
  --gold: #E9A813;
  --now-bg: #FFF7E0;
  --now-ink: #7A4E00;
  --title: #03549D;

  --serif: 'Barlow', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --sans: 'Barlow', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --display: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;

  --t-xs: 0.8125rem;
  --t-sm: 0.875rem;
  --t-base: 1rem;
  --t-md: 1.125rem;
  --t-lg: 1.375rem;
  --t-xl: 1.75rem;
  --t-2xl: 2.25rem;

  --gutter: max(16px, env(safe-area-inset-left));
  --radius: 10px;
  --measure: 62ch;
  color-scheme: light;
}

/* Light only: easier to read for everyone, and on projectors in bright halls. */

*, *::before, *::after { box-sizing: border-box; }

/* Every class below that sets `display` would otherwise out-specify the user
   agent's [hidden] rule and keep a hidden panel on screen. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--room-900);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
}

button, input, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--lamp);
  outline-offset: 2px;
  border-radius: 3px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- shell ---------------------------------------------------------------- */

.shell {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 var(--gutter) 5rem;
}

/* --- status bar ----------------------------------------------------------- */
/* The only ambient motion on the page. It is not decoration: the dot reports
   whether this device is still receiving the stream, which is the one thing a
   person cannot otherwise tell about a live page that has simply gone quiet. */

.statusbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0;
  font-size: var(--t-sm);
  color: var(--text-dim);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--room-900);
  z-index: 10;
}

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text-faint);
  flex: none;
}
[data-conn='live'] .dot { background: var(--answered); animation: breathe 3.2s ease-in-out infinite; }
[data-conn='reconnecting'] .dot { background: var(--lamp); animation: breathe 0.9s ease-in-out infinite; }
[data-conn='offline'] .dot { background: var(--danger); }

@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.statusbar .spacer { margin-left: auto; }

.joincode {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  color: var(--text);
  font-weight: 600;
}

/* --- session heading ------------------------------------------------------ */

.session-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 7vw, var(--t-2xl));
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 1.75rem 0 0.35rem;
  max-width: var(--measure);
  text-wrap: balance;
}

.session-note {
  color: var(--text-dim);
  font-size: var(--t-sm);
  margin: 0 0 1.75rem;
}

/* --- composer ------------------------------------------------------------- */

.composer {
  border: 1px solid var(--line-solid);
  border-radius: var(--radius);
  background: var(--room-800);
  padding: 0.875rem;
  margin-bottom: 2rem;
  transition: border-color 0.15s ease;
}
.composer:focus-within { border-color: var(--lamp); }

.composer textarea {
  display: block;
  width: 100%;
  border: 0;
  background: none;
  resize: none;
  font-family: var(--serif);
  font-size: var(--t-md);
  line-height: 1.45;
  min-height: 3.2em;
  padding: 0;
}
.composer textarea:focus { outline: none; }
.composer textarea::placeholder { color: var(--text-faint); font-family: var(--sans); font-size: var(--t-base); }

.composer-foot {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.namefield {
  flex: 1 1 8rem;
  min-width: 0;
  border: 0;
  background: none;
  font-size: var(--t-sm);
  padding: 0.25rem 0;
}
.namefield:focus { outline: none; }
.namefield::placeholder { color: var(--text-faint); }
.namefield:disabled { opacity: 0.4; }

.counter {
  font-size: var(--t-xs);
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  flex: none;
}
.counter[data-over='true'] { color: var(--danger); }

/* --- controls ------------------------------------------------------------- */

.btn {
  border: 1px solid var(--line-solid);
  background: none;
  color: var(--text);
  border-radius: 7px;
  padding: 0.45rem 0.85rem;
  font-size: var(--t-sm);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}
.btn:hover:not(:disabled) { background: var(--room-700); }
.btn:disabled { opacity: 0.4; cursor: default; }

.btn-lamp {
  background: var(--lamp);
  border-color: var(--lamp);
  color: var(--lamp-ink);
  font-weight: 600;
}
.btn-lamp:hover:not(:disabled) { background: var(--lamp); filter: brightness(1.08); }
.btn-lamp:disabled {
  background: none;
  border-color: var(--line-solid);
  color: var(--text-faint);
  opacity: 1;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--t-sm);
  color: var(--text-dim);
  cursor: pointer;
  user-select: none;
  flex: none;
}
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }

.switch .track {
  width: 32px; height: 18px;
  border-radius: 9px;
  border: 1px solid var(--line-solid);
  background: var(--room-700);
  position: relative;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  flex: none;
}
.switch .track::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.switch input:checked + .track { background: var(--lamp); border-color: var(--lamp); }
.switch input:checked + .track::after { transform: translateX(14px); background: var(--lamp-ink); }
.switch input:focus-visible + .track { outline: 2px solid var(--lamp); outline-offset: 2px; }

/* --- tabs ----------------------------------------------------------------- */
/* Underline rather than a pill: these switch the ordering of one list, they do
   not navigate anywhere, and a pill would overstate that. */

.tabs {
  display: flex;
  gap: 1.25rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.5rem;
}

.tab {
  border: 0;
  background: none;
  padding: 0.5rem 0;
  font-size: var(--t-sm);
  color: var(--text-dim);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab[aria-selected='true'] { color: var(--text); border-bottom-color: var(--lamp); }

.tab .count {
  font-variant-numeric: tabular-nums;
  color: var(--text-faint);
  margin-left: 0.3rem;
}

/* --- question list -------------------------------------------------------- */
/* Hairlines, not cards. A Q&A list is a running order, closer to a printed
   programme than to a feed of widgets, and boxing each row would add 40 borders
   that carry no information. */

.qlist { list-style: none; margin: 0; padding: 0; }

.qlist > .q:last-child { border-bottom: 0; }

.q {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0.875rem;
  padding: 1.125rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.q-body {
  font-family: var(--serif);
  font-size: var(--t-md);
  line-height: 1.45;
  margin: 0 0 0.3rem;
  overflow-wrap: anywhere;
  max-width: var(--measure);
}

.q-meta {
  font-size: var(--t-sm);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.q-author { color: var(--text-dim); }
.q-author[data-anon='true'] { font-style: italic; color: var(--text-faint); }

.q-time { color: var(--text-faint); }

.q[data-answered='true'] .q-body { color: var(--text-dim); }

.tag {
  font-size: var(--t-xs);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  border: 1px solid currentColor;
  line-height: 1.5;
}
.tag-answered { color: var(--answered); }
.tag-pending { color: var(--lamp); }
.tag-hidden { color: var(--text-faint); }

/* --- vote control --------------------------------------------------------- */
/* The chevron points up because that is what a vote does to a question: it
   moves it up the list, and the list visibly reorders when it lands. */

.vote {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  width: 3.25rem;
  padding: 0.4rem 0;
  border: 1px solid var(--line-solid);
  border-radius: 8px;
  background: none;
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color 0.12s ease, color 0.12s ease, background-color 0.12s ease;
}
.vote:hover:not(:disabled) { border-color: var(--lamp); color: var(--lamp); }
.vote:disabled { cursor: default; opacity: 0.5; }

.vote svg { width: 13px; height: 8px; display: block; }

.vote .n {
  font-size: var(--t-md);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.vote[aria-pressed='true'] {
  background: var(--lamp-glow);
  border-color: var(--lamp);
  color: var(--lamp);
}

/* --- row actions ---------------------------------------------------------- */

.q-actions {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.act {
  border: 1px solid var(--line-solid);
  background: none;
  color: var(--text-dim);
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  font-size: var(--t-xs);
  cursor: pointer;
  transition: color 0.12s ease, border-color 0.12s ease;
}
.act:hover { color: var(--text); border-color: var(--text-dim); }
.act-danger:hover { color: var(--danger); border-color: var(--danger); }
.act-go:hover { color: var(--lamp); border-color: var(--lamp); }

/* --- empty + notices ------------------------------------------------------ */
/* An empty list is an invitation, not an apology. */

.empty {
  padding: 3rem 0;
  color: var(--text-dim);
  max-width: 34ch;
}
.empty strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--t-lg);
  color: var(--text);
  margin-bottom: 0.35rem;
}

.notice {
  border: 1px solid var(--line-solid);
  border-left: 3px solid var(--lamp);
  border-radius: 0 6px 6px 0;
  padding: 0.7rem 0.85rem;
  font-size: var(--t-sm);
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}
.notice.is-error { border-left-color: var(--danger); color: var(--text); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  background: var(--room-800);
  border: 1px solid var(--line-solid);
  border-left: 3px solid var(--danger);
  color: var(--text);
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  font-size: var(--t-sm);
  box-shadow: 0 8px 28px #0006;
  z-index: 50;
  max-width: calc(100vw - 2rem);
}

/* --- reordering ----------------------------------------------------------- */
/* FLIP: rows are measured, reordered, transformed back, then released. A
   question overtaking another should look like it moved, because that movement
   is the whole point of a voted list. */

.q.is-moving { transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.3, 1); }

.q.is-new { animation: arrive 0.4s ease both; }
@keyframes arrive {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ===========================================================================
   Presenter console
   =========================================================================== */

.console {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--gutter) 4rem;
}

@media (min-width: 62rem) {
  .console { grid-template-columns: 19rem minmax(0, 1fr); gap: 3rem; align-items: start; }
  .console-aside { position: sticky; top: 3.25rem; }
}

/* --- join panel ----------------------------------------------------------- */
/* The QR and the code are the presenter's single most important asset for the
   first thirty seconds of a talk, so they get the top of the page and the
   largest non-question type on it. */

.join {
  border: 1px solid var(--line-solid);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--room-800);
  text-align: center;
}

.join img {
  display: block;
  width: 100%;
  max-width: 13rem;
  margin: 0 auto 1rem;
  border-radius: 6px;
  background: #fff;
  padding: 7px;
}

.join .code {
  font-size: var(--t-2xl);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.4rem;
}

.join .url {
  font-size: var(--t-sm);
  color: var(--text-dim);
  overflow-wrap: anywhere;
  margin-bottom: 1rem;
}

.join .actions { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }

/* --- settings ------------------------------------------------------------- */

.settings {
  margin-top: 1.5rem;
  border: 1px solid var(--line-solid);
  border-radius: var(--radius);
  padding: 1rem 1.125rem;
}

.settings h2 {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--text-dim);
  margin: 0 0 0.85rem;
}

.setting {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--line);
}
.setting:first-of-type { border-top: 0; padding-top: 0; }

.setting .label { font-size: var(--t-sm); }
.setting .hint { font-size: var(--t-xs); color: var(--text-faint); margin-top: 0.1rem; max-width: 24ch; }

/* --- console main --------------------------------------------------------- */

.console-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.console-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--t-xl);
  letter-spacing: -0.01em;
  margin: 1.75rem 0 1rem;
  text-wrap: balance;
}

.queue {
  border: 1px solid var(--lamp);
  border-radius: var(--radius);
  padding: 0.25rem 1rem 0.75rem;
  margin-bottom: 1.5rem;
  background: var(--lamp-glow);
}

.queue h2 {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--lamp);
  margin: 0.75rem 0 0;
}

.queue .qlist .q:last-child { border-bottom: 0; }

/* ===========================================================================
   Projector mode
   ---------------------------------------------------------------------------
   Vote count drives type size. The room's votes set the typographic hierarchy
   on the wall, which is the one thing this view can say that a list cannot.
   =========================================================================== */

.stage {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 2.5vh 4vw;
  gap: 1.5rem;
}

.stage-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
  flex: none;
}

.stage-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.25rem, 2.4vw, 2.1rem);
  letter-spacing: -0.01em;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-join {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: none;
}

.stage-join img {
  width: clamp(3.5rem, 6vw, 5.5rem);
  height: auto;
  background: #fff;
  padding: 5px;
  border-radius: 4px;
}

.stage-join .code {
  font-size: clamp(1.25rem, 2.6vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.1;
}
.stage-join .url { font-size: clamp(0.7rem, 1.1vw, 1rem); color: var(--text-dim); }

.stage-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 1.1vh;
}

.stage-q {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
  align-items: baseline;
  padding-bottom: 1.1vh;
  border-bottom: 1px solid var(--line);
}
.stage-q:last-child { border-bottom: 0; }

/* --rank is set per row from the vote standing: 1 at the top, tapering to 0.
   Size and weight both follow it, so the leading question reads from the back
   of the room and the tail stays legible without competing. */
.stage-q .n {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--lamp);
  font-size: calc(1.4rem + var(--rank, 0) * 2.2vw);
  line-height: 1;
}

.stage-q .body {
  font-family: var(--serif);
  font-weight: calc(380 + var(--rank, 0) * 220);
  font-size: calc(1.1rem + var(--rank, 0) * 2.1vw);
  line-height: 1.22;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}

.stage-q .who {
  font-family: var(--sans);
  font-size: clamp(0.7rem, 0.95vw, 1rem);
  color: var(--text-dim);
  margin-top: 0.35rem;
}
.stage-q .who[data-anon='true'] { font-style: italic; color: var(--text-faint); }

.stage-empty {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.5rem;
}
.stage-empty p {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.4vw, 3rem);
  font-weight: 300;
  color: var(--text-dim);
  margin: 0;
  max-width: 20ch;
  line-height: 1.2;
}
.stage-empty img { width: clamp(9rem, 18vw, 16rem); background: #fff; padding: 10px; border-radius: 8px; }


/* ===========================================================================
   Conference additions: headings, the session picker and the hall console
   =========================================================================== */

.session-title, .console-title, .stage-title, .empty strong, .stage-empty p {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.005em;
}
.session-title, .console-title, .qa-mast h1 { color: var(--title); }

.shell-wide { max-width: 72rem; padding-bottom: 0; }

a { color: var(--lamp); }

/* Masthead band: the conference colours as a thin strip, so every Q&A page
   reads as part of the programme without repeating its whole header. */
.qa-mast {
  background: var(--room-800);
  border-bottom: 1px solid var(--line-solid);
  box-shadow: inset 0 4px 0 var(--lamp), inset 0 8px 0 var(--gold);
}
.qa-mast .shell { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.qa-mast h1 {
  font: 700 clamp(2rem, 8vw, 2.75rem)/1.05 var(--display);
  margin: 0.25rem 0 0.4rem;
}
.eyebrow { font-weight: 600; font-size: var(--t-sm); color: var(--answered); margin: 0; }
.lede { color: var(--text-dim); margin: 0; max-width: 52ch; }

.back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  font-weight: 600;
  font-size: var(--t-sm);
  text-decoration: none;
  color: var(--lamp);
}
.back:hover { text-decoration: underline; }

.session-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  margin: 1.25rem 0 0;
  color: var(--text-dim);
  font-size: var(--t-sm);
}
.session-meta + .session-title { margin-top: 0.5rem; }

.hall-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  color: #fff;
  font-weight: 600;
  font-size: var(--t-xs);
  line-height: 1.4;
  background: var(--text-dim);
}

/* --- session picker ------------------------------------------------------ */

.picker h2 {
  font: 700 var(--t-lg)/1.2 var(--display);
  margin: 1.75rem 0 0.5rem;
}
.picker h2.now-h { color: var(--now-ink); display: flex; align-items: center; gap: 0.5rem; }
.picker h2.now-h::before {
  content: ''; width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 4px var(--lamp-glow);
}

.daytabs {
  display: flex;
  gap: 0.5rem;
  margin: 1.5rem 0 0.75rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.daytab, .hallchip {
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 22px;
  border: 1px solid var(--line-solid);
  background: var(--room-800);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.daytab[aria-selected='true'] { background: var(--lamp); border-color: var(--lamp); color: var(--lamp-ink); }

.hallchips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; }
.hallchip { min-height: 36px; padding: 0 0.75rem; font-size: var(--t-sm); display: inline-flex; align-items: center; gap: 0.4rem; }
.hallchip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--text-dim)); }
.hallchip[aria-pressed='true'] { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }

.slist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }

.srow {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
  min-height: 64px;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--line-solid);
  border-left: 5px solid var(--c, var(--line-solid));
  border-radius: var(--radius);
  background: var(--room-800);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.12s ease, transform 0.12s ease;
}
.srow:hover { border-color: var(--lamp); border-left-color: var(--c, var(--lamp)); }
.srow:active { transform: scale(0.995); }
.srow .t { font-weight: 600; font-size: var(--t-sm); color: var(--text-dim); font-variant-numeric: tabular-nums; }
.srow .title { font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.srow .sub { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.3rem; align-items: center; font-size: var(--t-xs); color: var(--text-dim); }
.srow .go { font-size: 1.5rem; color: var(--lamp); line-height: 1; }
.srow.is-now { background: var(--now-bg); border-color: var(--gold); border-left-color: var(--c, var(--gold)); }
.srow.is-over { opacity: 0.72; }
.state { font-weight: 600; }
.state-now { color: var(--now-ink); }

@media (max-width: 480px) {
  .srow { grid-template-columns: 1fr auto; }
  .srow .t { grid-column: 1 / -1; margin-bottom: -0.4rem; }
}

/* --- hall console --------------------------------------------------------- */

.hall-list .srow { grid-template-columns: 5.5rem 1fr; cursor: default; }
.hall-list .srow:hover { border-color: var(--line-solid); border-left-color: var(--c, var(--line-solid)); }
.hall-list .srow.is-now:hover { border-color: var(--gold); }
.hall-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.hall-actions .btn { min-height: 40px; }
.counts { font-size: var(--t-xs); color: var(--text-dim); }
.counts b { color: var(--text); }
.counts .waiting { color: var(--now-ink); font-weight: 600; }
@media (max-width: 480px) {
  .hall-list .srow { grid-template-columns: 1fr; }
  .hall-list .srow .t { margin-bottom: 0; }
}
.refresh-note { font-size: var(--t-xs); color: var(--text-faint); margin: 1.5rem 0 0; }

.btn { min-height: 40px; }
.composer .btn-lamp { min-height: 44px; padding: 0 1.25rem; font-size: var(--t-base); }

/* --- question page: Ask / Questions from the room tabs --------------------- */
.viewtabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; margin: 1rem 0 1.25rem; padding: 0.3rem; border-radius: 12px; background: var(--room-700); }
.viewtab { min-height: 48px; padding: 0.4rem 0.6rem; border: 0; border-radius: 9px; background: none; color: var(--text-dim); font-weight: 600; font-size: var(--t-base); line-height: 1.2; cursor: pointer; }
.viewtab[aria-selected='true'] { background: var(--room-800); color: var(--lamp); box-shadow: 0 1px 3px #0002; }
.viewtab .count { display: inline-block; min-width: 1.5em; margin-left: 0.35rem; padding: 0 0.35rem; border-radius: 10px; background: var(--lamp); color: var(--lamp-ink); font-size: var(--t-xs); font-variant-numeric: tabular-nums; }
.viewtab .count:empty { display: none; }
.sent { border: 1px solid var(--answered); border-radius: var(--radius); background: var(--room-800); padding: 0.9rem 1rem; margin-bottom: 1.5rem; }
.sent p { margin: 0 0 0.6rem; font-weight: 600; color: var(--answered); }
.loading { color: var(--text-dim); padding: 1.5rem 0; }
/* No live connection until the room's questions are open. */
[data-conn='idle'] .dot, [data-conn='idle'] [data-conn-label] { display: none; }
