/* ============================================================
   Tribun RIAS — App shell, components, layout, animations
   ============================================================ */

#root, .app-root { height: 100%; }

/* ---------- App frame ---------- */
.app {
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--bg);
  isolation: isolate;
}
/* Ambient texture layer behind everything */
.app::before {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 100% at 70% 0%, #000 30%, transparent 85%);
          mask-image: radial-gradient(120% 100% at 70% 0%, #000 30%, transparent 85%);
  opacity: .9;
}

/* ---------- Topbar ---------- */
.topbar {
  position: relative; z-index: 30;
  height: 60px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px 0 24px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
          backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--rule);
}
.topbar-left { display: flex; align-items: center; gap: 16px; }

/* Wordmark (refined typographic lockup) */
.wordmark { display: flex; align-items: center; gap: 11px; }
.wm-text { display: flex; flex-direction: column; line-height: 1; }
.wm-name {
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  letter-spacing: -0.01em; color: var(--ink); display: flex; align-items: baseline; gap: 5px;
}
.wm-name b { font-weight: 600; }
.wm-name .ras {
  font-family: var(--font-mono); font-weight: 500; font-size: 12.5px;
  letter-spacing: 0.14em; color: var(--accent-ink);
  padding: 1px 5px; border-radius: 5px; background: var(--accent-soft);
}
.wm-sub { font-size: 10px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 3px; font-weight: 500; white-space: nowrap; }

.topbar-divider { width: 1px; height: 26px; background: var(--rule-2); }

.topbar-nav { display: flex; align-items: center; gap: 2px; }
.nav-link {
  font-size: 13px; font-weight: 500; color: var(--muted);
  padding: 7px 13px; border-radius: var(--r-sm); position: relative;
  transition: color .15s, background .15s; white-space: nowrap;
}
.nav-link:hover { color: var(--ink); background: var(--surface-3); }
.nav-link.active { color: var(--accent-ink); background: var(--accent-soft); }
.nav-link.admin { color: var(--ink-2); }
.nav-group-label {
  font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted-2); font-weight: 600; padding: 0 8px 0 4px;
}

.topbar-right { display: flex; align-items: center; gap: 10px; }

/* Icon button */
.icon-btn {
  width: 34px; height: 34px; border-radius: var(--r-sm);
  display: grid; place-items: center; color: var(--muted);
  border: 1px solid transparent; transition: .15s; position: relative;
}
.icon-btn:hover { color: var(--ink); background: var(--surface-3); border-color: var(--rule); }
.icon-btn .dot-badge {
  position: absolute; top: 7px; right: 8px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 2px var(--glass);
}

/* Avatar */
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent-grad); color: #fff;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  box-shadow: 0 3px 10px -3px var(--accent-glow); position: relative;
}
.avatar-wrap { position: relative; }
.avatar-menu {
  position: absolute; top: 44px; right: 0; width: 230px; z-index: 60;
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg); overflow: hidden;
  padding: 6px;
}
.avatar-menu-head { padding: 10px 10px 12px; border-bottom: 1px solid var(--rule); margin-bottom: 6px; }
.amh-name { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.amh-role { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.avatar-menu-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px;
  border-radius: var(--r-sm); font-size: 13px; color: var(--ink-2); transition: background .12s;
}
.avatar-menu-item:hover { background: var(--surface-3); }
.avatar-menu-item.danger { color: var(--danger); }
.avatar-menu-item.danger:hover { background: var(--danger-soft); }

/* ---------- Main scroll region ---------- */
.main {
  position: relative; z-index: 10;
  flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden;
}
.screen { min-height: 100%; }
.screen-pad { padding: var(--pad-screen); max-width: 1320px; margin: 0 auto; }

/* Page header */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; flex-wrap: wrap; }
.page-eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-ink); margin-bottom: 9px;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
}
.page-title { font-family: var(--font-display); font-size: 30px; font-weight: 600; color: var(--ink); letter-spacing: -0.025em; line-height: 1.05; }
.page-sub { font-size: 13.5px; color: var(--muted); margin-top: 7px; max-width: 60ch; line-height: 1.5; }
.page-head-actions { display: flex; align-items: center; gap: 9px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  font-size: 13px; font-weight: 500; padding: 9px 16px; border-radius: var(--r-sm); transition: .16s; border: 1px solid transparent; }
.btn svg { flex-shrink: 0; }
.btn-primary { background: var(--accent-grad); color: #fff; box-shadow: 0 6px 18px -8px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 10px 26px -8px var(--accent-glow); }
.btn-primary:active { filter: brightness(.97); }
.btn-outline { background: var(--surface); border-color: var(--rule-2); color: var(--ink-2); }
.btn-outline:hover { background: var(--surface-3); border-color: var(--rule-strong); }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: var(--ink); background: var(--surface-3); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(1.05); }
.btn-lg { padding: 13px 22px; font-size: 14px; border-radius: var(--r-md); }
.btn-sm { padding: 6px 11px; font-size: 12px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- Cards / surfaces ---------- */
.card {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--r-md); box-shadow: var(--shadow-sm);
}
.card-glass {
  background: var(--glass); border: 1px solid var(--glass-brd);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  border-radius: var(--r-md);
}
.card-pad { padding: 20px; }

/* ---------- Stat cards ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-card); }
.stat-card {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--r-md); padding: 16px 18px; position: relative; overflow: hidden;
  transition: .18s; box-shadow: var(--shadow-sm);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--rule-2); }
.stat-card.accent { border-color: var(--accent-soft-border); }
.stat-card.accent::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, var(--accent-soft), transparent 65%);
}
.stat-spark { position: absolute; right: -6px; bottom: -6px; opacity: .5; pointer-events: none; }
.stat-label { font-size: 10.5px; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; font-weight: 600; position: relative; }
.stat-value { font-family: var(--font-display); font-size: 32px; font-weight: 600; margin-top: 3px; color: var(--ink); position: relative; letter-spacing: -.02em; }
.stat-value.accent-text { color: var(--accent-ink); }
.stat-value.positive { color: var(--positive); }
.stat-value.muted { color: var(--muted); }
.stat-tag { position: absolute; top: 14px; right: 16px; font-size: 10px; color: var(--accent-ink); font-weight: 600; font-family: var(--font-mono); }

/* ---------- Badges / pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 500;
  padding: 3px 10px; border-radius: var(--r-pill); border: 1px solid transparent; white-space: nowrap; }
.pill .pdot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-accent  { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent-soft-border); }
.pill-positive{ background: var(--positive-soft); color: var(--positive); }
.pill-warning { background: var(--warning-soft); color: var(--warning); }
.pill-danger  { background: var(--danger-soft); color: var(--danger); }
.pill-muted   { background: var(--surface-3); color: var(--muted); border-color: var(--rule); }
.pill-mono { font-family: var(--font-mono); letter-spacing: .04em; font-size: 10.5px; text-transform: uppercase; }

.tag-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-ink); font-weight: 600;
}

/* ---------- Tables ---------- */
.table-wrap { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table thead th {
  text-align: left; font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; padding: 13px 18px; border-bottom: 1px solid var(--rule);
  background: var(--surface-2); position: sticky; top: 0; z-index: 2;
}
.data-table tbody td { padding: 13px 18px; border-bottom: 1px solid var(--rule); color: var(--ink-2); vertical-align: middle; }
.data-table tbody tr { transition: background .12s; }
.data-table tbody tr:hover { background: var(--surface-3); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.cell-strong { color: var(--ink); font-weight: 500; }
.cell-user { display: flex; align-items: center; gap: 11px; }
.cell-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-size: 11px; font-weight: 600; flex-shrink: 0; }
.cell-sub { font-size: 11.5px; color: var(--muted); }
.row-action { width: 30px; height: 30px; border-radius: var(--r-sm); display: grid; place-items: center; color: var(--muted-2); transition: .12s; }
.row-action:hover { background: var(--surface-3); color: var(--ink); }

/* Toolbar above tables */
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.search-box { position: relative; flex: 1; min-width: 220px; max-width: 380px; }
.search-box svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted-2); }
.search-box input {
  width: 100%; padding: 10px 14px 10px 38px; border-radius: var(--r-sm);
  border: 1px solid var(--rule-2); background: var(--surface); font-size: 13px; outline: none; transition: .15s; color: var(--ink);
}
.search-box input::placeholder { color: var(--muted-2); }
.search-box input:focus { border-color: var(--accent-solid); box-shadow: 0 0 0 3px var(--accent-soft); }
.select-field {
  padding: 10px 32px 10px 13px; border-radius: var(--r-sm); border: 1px solid var(--rule-2);
  background: var(--surface); font-size: 13px; color: var(--ink-2); outline: none; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%23969cbd' d='M0 0h10L5 6z'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center;
}
.select-field:focus { border-color: var(--accent-solid); }

/* ---------- Forms ---------- */
.field-group { display: flex; flex-direction: column; gap: 7px; }
.field-label { font-size: 12px; font-weight: 500; color: var(--ink-2); display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.field-label .req { color: var(--danger); }
.input, .textarea, .select {
  width: 100%; background: var(--surface); border: 1px solid var(--rule-2);
  border-radius: var(--r-sm); padding: 11px 14px; font-size: 13.5px; color: var(--ink); outline: none; transition: .15s;
}
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input:focus, .textarea:focus, .select:focus { border-color: var(--accent-solid); box-shadow: 0 0 0 3px var(--accent-soft); }
/* Autofill — Chrome paints its own light background + text, which turns white-on-light in dark mode.
   Pin both to theme tokens so autofilled inputs match a normally-typed input (dark box / ink text). */
.input:-webkit-autofill,
.input:-webkit-autofill:hover,
.input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px var(--surface) inset;
  box-shadow: 0 0 0 1000px var(--surface) inset;
  caret-color: var(--ink);
}
.input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--surface) inset, 0 0 0 3px var(--accent-soft);
  box-shadow: 0 0 0 1000px var(--surface) inset, 0 0 0 3px var(--accent-soft);
}
/* Native date picker — keep text + indicator visible in dark mode */
[data-theme="dark"] input[type="date"], [data-theme="dark"] input[type="time"] { color-scheme: dark; color: var(--ink); }
[data-theme="dark"] input[type="date"]::-webkit-datetime-edit,
[data-theme="dark"] input[type="time"]::-webkit-datetime-edit { color: var(--ink); }
[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator,
[data-theme="dark"] input[type="time"]::-webkit-calendar-picker-indicator { opacity: 0.9; cursor: pointer; }

/* ---------- Empty state ---------- */
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 60px 24px; gap: 6px; }
.empty-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--ink); margin-top: 14px; white-space: nowrap; }
.empty-sub { font-size: 13px; color: var(--muted); max-width: 42ch; line-height: 1.55; }

/* ---------- Section header ---------- */
.section-head { display: flex; align-items: center; gap: 10px; margin: 26px 0 14px; }
.section-title { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; }
.section-rule { flex: 1; height: 1px; background: var(--rule); }

/* ---------- Modal ---------- */
.modal-scrim { position: fixed; inset: 0; z-index: 200; background: var(--scrim); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 24px; animation: fade-in .2s ease; }
.modal {
  width: min(520px, 100%); max-height: 88vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); animation: modal-in .25s cubic-bezier(.2,.8,.3,1);
}
.modal-head { padding: 22px 24px 0; }
.modal-title { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--ink); }
.modal-body { padding: 16px 24px; color: var(--ink-2); font-size: 13.5px; line-height: 1.6; }
.modal-foot { padding: 16px 24px 22px; display: flex; justify-content: flex-end; gap: 10px; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(20px);
  z-index: 300; background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 500; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: .25s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   IMAGERY & ANIMATION
   ============================================================ */

/* Aurora field */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora .blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .9; will-change: transform; }
.aurora .b1 { width: 46%; height: 60%; left: 52%; top: -18%; background: var(--aurora-1); animation: drift1 calc(26s / var(--motion)) ease-in-out infinite; }
.aurora .b2 { width: 40%; height: 54%; left: 60%; top: 30%; background: var(--aurora-2); animation: drift2 calc(32s / var(--motion)) ease-in-out infinite; }
.aurora .b3 { width: 34%; height: 44%; left: 30%; top: 50%; background: var(--aurora-3); animation: drift3 calc(38s / var(--motion)) ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-9%, 12%) scale(1.12); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-14%, -8%) scale(1.08); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(12%, -10%) scale(1.15); } }

/* Agentic constellation pulses (SVG-driven) */
.flow-dash { stroke-dasharray: 4 7; animation: flow-march calc(2.4s / var(--motion)) linear infinite; }
@keyframes flow-march { to { stroke-dashoffset: -22; } }
.node-pulse { transform-box: fill-box; transform-origin: center; animation: node-breathe calc(3s / var(--motion)) ease-in-out infinite; }
@keyframes node-breathe { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
.ring-expand { transform-box: fill-box; transform-origin: center; animation: ring-out calc(3.2s / var(--motion)) ease-out infinite; }
@keyframes ring-out { 0% { transform: scale(.4); opacity: .7; } 100% { transform: scale(1.8); opacity: 0; } }
.spark { animation: spark-fade calc(1.6s / var(--motion)) ease-in-out infinite; }
@keyframes spark-fade { 0%,100% { opacity: .2; } 50% { opacity: 1; } }

/* Generic float/bob */
.bob { animation: bob calc(5s / var(--motion)) ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.spin-slow { transform-box: fill-box; transform-origin: center; animation: spin calc(40s / var(--motion)) linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Bars rising (chart assembly) */
.bar-rise { transform-box: fill-box; transform-origin: bottom; animation: bar-rise calc(2.6s / var(--motion)) cubic-bezier(.3,.8,.3,1) infinite alternate; }
@keyframes bar-rise { from { transform: scaleY(.35); } to { transform: scaleY(1); } }

/* Assembly scan sweep */
.assembly-scan { animation: assembly-scan calc(2.8s / var(--motion)) cubic-bezier(.45,.05,.55,.95) infinite; }
@keyframes assembly-scan { 0% { transform: translateX(-46px); } 100% { transform: translateX(228px); } }

/* ── Per-agent assembly motifs ── */
/* Orchestrator: planning blocks pop/arrange in sequence */
.as-pop { transform-box: fill-box; transform-origin: center; animation: as-pop calc(1.9s / var(--motion)) ease-in-out infinite; }
@keyframes as-pop { 0%,100% { opacity: .25; transform: scale(.82); } 50% { opacity: 1; transform: scale(1); } }
/* Query: data rows fill left→right like ingestion */
.as-fillx { transform-box: fill-box; transform-origin: left; animation: as-fillx calc(2.3s / var(--motion)) cubic-bezier(.4,.1,.3,1) infinite; }
@keyframes as-fillx { 0% { transform: scaleX(.04); opacity: .4; } 55% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
/* Interpreter: radar sweep + sentiment arc */
.as-radar { transform-box: fill-box; transform-origin: center; animation: spin calc(2.6s / var(--motion)) linear infinite; }
.as-arc { animation: as-arc calc(2.8s / var(--motion)) ease-in-out infinite; }
@keyframes as-arc { 0% { stroke-dashoffset: 150; } 60%,100% { stroke-dashoffset: 40; } }
/* Interpreter: clustering dots drift */
.as-cluster { transform-box: fill-box; transform-origin: center; animation: as-cluster calc(3s / var(--motion)) ease-in-out infinite; }
@keyframes as-cluster { 0%,100% { transform: translate(0,0); } 50% { transform: translate(var(--cx,0), var(--cy,0)); } }
/* Designer: title accent wipe + page fan */
.as-wipe { transform-box: fill-box; transform-origin: left; animation: as-wipe calc(2.6s / var(--motion)) cubic-bezier(.4,.1,.3,1) infinite; }
@keyframes as-wipe { 0% { transform: scaleX(0); } 50%,100% { transform: scaleX(1); } }
.as-fan { transform-box: fill-box; animation: as-fan calc(3s / var(--motion)) ease-in-out infinite; }
@keyframes as-fan { 0%,100% { transform: rotate(2deg) translateY(0); } 50% { transform: rotate(5deg) translateY(-3px); } }

/* Entrance for screen content */
.enter { animation: enter .4s cubic-bezier(.2,.8,.3,1) both; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.enter-1 { animation-delay: .04s; } .enter-2 { animation-delay: .09s; } .enter-3 { animation-delay: .15s; } .enter-4 { animation-delay: .21s; }

/* Shimmer line (progress / loading) */
.shimmer { background: linear-gradient(90deg, transparent, var(--accent-soft), transparent); background-size: 200% 100%; animation: shimmer calc(1.6s / var(--motion)) linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Theme transition */
.app, .topbar, .card, .stat-card, .table-wrap, .input, .btn { transition: background-color .3s ease, border-color .3s ease, color .3s ease; }

/* ===================== RESPONSIVE ===================== */
.table-wrap { overflow-x: auto; }
.data-table { min-width: 600px; }

@media (max-width: 760px) {
  .screen-pad { padding: 18px 16px; }
  .page-title { font-size: 24px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .topbar { height: 56px; padding: 0 12px; }
  .wm-sub { display: none; }
  .topbar-nav { gap: 0; }
  .nav-link { padding: 7px 9px; font-size: 12.5px; }
  .nav-group-label { display: none; }
  .topbar-right { gap: 5px; }
  .icon-btn { width: 30px; height: 30px; }
  .page-head { gap: 14px; }
  .modal-scrim { padding: 14px; }
}
@media (max-width: 460px) {
  .wm-text { display: none; }
  .roles-grid, .stats-grid { grid-template-columns: 1fr; }
  .row-2, .choice-row { grid-template-columns: 1fr; }
}
