:root {
  --bg: #141210;
  --bg-accent: #1a1613;
  --surface: #1e1b18;
  --surface-hover: #26221e;
  --ink: #f3efe9;
  --muted: #a39b93;
  --line: #2e2a26;
  --accent: #ff6a00;
  --accent-hover: #e45f00;
  --accent-ink: #fff;
  --up: #34d399;
  --up-bg: rgba(52, 211, 153, 0.14);
  --down: #f97171;
  --down-bg: rgba(249, 113, 113, 0.14);
  --warn: #fbbf24;
  --warn-bg: rgba(251, 191, 36, 0.14);
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  --max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Outfit, system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(255, 106, 0, 0.08), transparent 50%),
    var(--bg);
  line-height: 1.55;
  min-height: 100vh;
}

a { color: var(--accent); }
img { max-width: 100%; display: block; }
code { background: #292420; padding: 2px 6px; border-radius: 6px; font-size: 0.88em; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(20, 18, 16, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}

.logo { text-decoration: none; }
.logo img { height: 38px; width: auto; }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  justify-content: flex-end;
}

.nav a,
.nav-link-btn {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}

.nav a:hover,
.nav a[aria-current="page"],
.nav-link-btn:hover { color: var(--accent); }

.inline-form { display: inline; margin: 0; }

.nav-member {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-member a { color: var(--ink); }

.auth-switch {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.account-meta {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.subhead {
  margin: 8px 0 12px;
  font-size: 1rem;
  font-weight: 600;
}

.account-confirms {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.account-confirms li {
  display: flex;
  gap: 12px;
  align-items: center;
}
.account-confirms img {
  width: 80px;
  height: 45px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.account-confirms a { color: var(--ink); text-decoration: none; font-weight: 500; }
.account-confirms a:hover { color: var(--accent); }
.account-confirms p { margin: 3px 0 0; color: var(--muted); font-size: 0.8rem; }

.page-main { padding: 42px 0 72px; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-head h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.page-lead {
  margin: 0 0 20px;
  max-width: 48rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 18px;
}

.range-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
}

.pill:hover { border-color: var(--accent); color: var(--accent); }
.pill.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.updated,
.section-meta,
.panel-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.run-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}

.run-new-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.run-new-link:hover { text-decoration: underline; }
.run-new-link.is-active { text-decoration: underline; }
.run-new-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.next-run {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.countdown {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.cron-warn {
  margin: 2px 0 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--warn);
}

@media (max-width: 600px) {
  .run-meta { align-items: flex-start; text-align: left; }
}

.methodology-note {
  margin: 0 0 24px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.92rem;
}

.methodology-note strong { color: var(--ink); }

.alert-box {
  margin: 0 0 24px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.95rem;
}
.alert-box.is-ok { border-color: rgba(52, 211, 153, 0.4); background: var(--up-bg); }
.alert-box.is-err { border-color: rgba(249, 113, 113, 0.4); background: var(--down-bg); }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.kpi-card,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.kpi-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.kpi-value {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.accent { color: var(--accent); }

.kpi-sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.breakdown-section {
  margin-bottom: 20px;
}

.breakdown-toolbar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 12px;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breakdown-toolbar .btn-icon {
  display: block;
  flex-shrink: 0;
}

.breakdown-toolbar .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Platform-coloured share buttons (filled, high contrast on the dark theme). */
.share-net[data-share],
.share-net[data-share]:visited {
  border-color: transparent;
  font-weight: 600;
  text-decoration: none;
}
.share-net[data-share="x"],
.share-net[data-share="x"]:visited {
  background: #000;
  border-color: #d8d2cb;
  color: #fff;
}
.share-net[data-share="x"]:hover {
  background: #2a2a2a;
  border-color: #f3efe9;
  color: #fff;
}
.share-net[data-share="x"]:focus-visible {
  outline-color: #f3efe9;
}

.share-net[data-share="facebook"],
.share-net[data-share="facebook"]:visited {
  background: #1877F2;
  color: #fff;
}
.share-net[data-share="facebook"]:hover {
  background: #0d65d9;
  color: #fff;
}
.share-net[data-share="facebook"]:focus-visible {
  outline-color: #8bb8f9;
}

.share-net[data-share="linkedin"],
.share-net[data-share="linkedin"]:visited {
  background: #0A66C2;
  color: #fff;
}
.share-net[data-share="linkedin"]:hover {
  background: #084e96;
  color: #fff;
}
.share-net[data-share="linkedin"]:focus-visible {
  outline-color: #7eb3e6;
}

.share-net[data-share="whatsapp"],
.share-net[data-share="whatsapp"]:visited {
  /* #25D366 fails contrast with white; use dark ink instead. */
  background: #25D366;
  color: #141210;
}
.share-net[data-share="whatsapp"]:hover {
  background: #1ebe5d;
  color: #141210;
}
.share-net[data-share="whatsapp"]:focus-visible {
  outline-color: #25D366;
}

.share-net[data-share="bluesky"],
.share-net[data-share="bluesky"]:visited {
  background: #1185FE;
  color: #fff;
}
.share-net[data-share="bluesky"]:hover {
  background: #0a6fd9;
  color: #fff;
}
.share-net[data-share="bluesky"]:focus-visible {
  outline-color: #7ab8fe;
}

.share-net[data-share="reddit"],
.share-net[data-share="reddit"]:visited {
  background: #FF4500;
  color: #fff;
}
.share-net[data-share="reddit"]:hover {
  background: #e03d00;
  color: #fff;
}
.share-net[data-share="reddit"]:focus-visible {
  outline-color: #ff8a5c;
}

.share-actions [data-role="share-copy"],
.share-actions [data-role="share-download"] {
  background: var(--surface-hover);
  border-color: var(--line);
  color: var(--ink);
}
.share-actions [data-role="share-copy"]:hover,
.share-actions [data-role="share-download"]:hover {
  background: #312c28;
  border-color: #4a443e;
  color: var(--ink);
}

.share-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.share-status.is-ok { color: var(--up); }
.share-status.is-err { color: var(--down); }

@media (max-width: 600px) {
  .share-actions .btn-sm { padding: 6px 9px; }
}

.breakdown-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 0;
}

.two-col-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
  margin-bottom: 36px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.panel h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.bar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.bar-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.86rem;
  margin-bottom: 4px;
}

.bar-label { color: var(--ink); font-weight: 500; }
.bar-val { color: var(--ink); font-weight: 600; white-space: nowrap; }
.bar-pct { color: var(--muted); font-weight: 400; }

.bar-track {
  height: 8px;
  border-radius: 999px;
  background: #2b2621;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #ff944d);
}

.bar-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  padding: 6px 8px;
  margin: -6px -8px;
  outline: none;
}
.bar-link:hover {
  background: rgba(255, 106, 0, 0.08);
}
.bar-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.bar-row.is-active .bar-link {
  background: rgba(255, 106, 0, 0.12);
  box-shadow: inset 3px 0 0 var(--accent);
}
.bar-row.is-empty .bar-label,
.bar-row.is-empty .bar-val,
.bar-row.is-empty .bar-pct {
  color: var(--muted);
}
.bar-row.is-empty .bar-fill { opacity: 0.35; }

.active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 0 0 16px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
}
.active-filters strong { color: var(--ink); font-weight: 600; }
.filter-clear {
  margin-left: auto;
  font-weight: 600;
  text-decoration: none;
}
.filter-clear:hover { text-decoration: underline; }
.filter-clear:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.legend { display: flex; gap: 14px; font-size: 0.8rem; color: var(--muted); }
.leg-item { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-orange { background: var(--accent); }
.dot-green { background: var(--up); }

.trend-svg { width: 100%; height: auto; display: block; }

.table-scroll { overflow-x: auto; }
.mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.mini-table th,
.mini-table td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.mini-table th { color: var(--muted); font-weight: 500; font-size: 0.8rem; }
.mini-table th.num,
.mini-table td.num { text-align: right; }
.mini-table td a { color: var(--ink); text-decoration: none; }
.mini-table td a:hover { color: var(--accent); }

.gallery-section { padding-top: 8px; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0 0 4px;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

select,
input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
textarea {
  background: #141210;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 11px;
  font: inherit;
  font-size: 0.88rem;
}

select:focus,
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 8px 14px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-sm { padding: 6px 11px; font-size: 0.82rem; border-radius: 8px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-confirm { background: rgba(52, 211, 153, 0.14); border-color: rgba(52, 211, 153, 0.35); color: var(--up); }
.btn-confirm:hover:not(:disabled) { background: rgba(52, 211, 153, 0.24); }
.btn-confirm.is-done,
.btn-confirm:disabled { opacity: 0.72; cursor: default; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.img-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  min-width: 0;
}

.thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #100e0c;
  overflow: hidden;
}

.thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.thumb-wrap .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  backdrop-filter: blur(8px);
}

.thumb-wrap .badge-verified {
  left: auto;
  right: 10px;
}

.badge-illustrative { background: rgba(255, 106, 0, 0.9); color: #fff; }
.badge-editorial { background: rgba(30, 27, 24, 0.88); color: var(--muted); border: 1px solid var(--line); }
.badge-pending { background: var(--warn-bg); color: var(--warn); border: 1px solid rgba(251, 191, 36, 0.3); }
.badge-verified { background: rgba(16, 185, 129, 0.88); color: #fff; }

.img-body {
  padding: 15px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 0.78rem;
}

.section-tag {
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.date-tag { color: var(--muted); }

.card-title {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 600;
}

.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--accent); }

.card-sub {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.8rem;
}

.people-tags {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.people-tags li {
  background: #27231f;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.76rem;
  color: var(--ink);
}

.p-idx { color: var(--accent); font-weight: 600; margin-right: 4px; }

.ai-reason {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.feedback-status-row {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--muted);
}

.pending-flag {
  color: var(--warn);
  background: var(--warn-bg);
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 500;
}
.pending-flag[hidden] { display: none; }

.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.fb-msg {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: var(--up);
}
.fb-msg.is-err { color: var(--down); }
.fb-msg[hidden] { display: none; }

.pagination {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.page-info { color: var(--muted); font-size: 0.9rem; }
.empty-note { color: var(--muted); font-size: 0.92rem; }

/* Modal */
.modal {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  padding: 0;
  width: min(560px, calc(100vw - 24px));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.modal::backdrop { background: rgba(10, 8, 7, 0.75); backdrop-filter: blur(4px); }

.modal-card { padding: 22px; margin: 0; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.modal-head h2 { margin: 0; font-size: 1.25rem; }
.icon-close { background: none; border: 0; color: var(--muted); font-size: 1.6rem; cursor: pointer; line-height: 1; }
.icon-close:hover { color: var(--ink); }
.modal-intro { margin: 0 0 14px; color: var(--muted); font-size: 0.88rem; }

.modal-preview {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: #141210;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 14px;
}
.modal-preview img { width: 96px; height: 54px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.modal-headline { margin: 0; font-size: 0.9rem; font-weight: 500; }

.hp-wrap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 0;
  padding: 0;
  margin: 0 0 14px;
  font-size: 0.88rem;
}

.field-group legend,
.field-group > span { font-weight: 500; color: var(--ink); margin-bottom: 4px; }

.radio-opt { display: flex; align-items: center; gap: 8px; color: var(--muted); cursor: pointer; }
.people-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.people-rows { display: grid; gap: 8px; }
.person-row { display: grid; grid-template-columns: 1fr 1.4fr 1.1fr auto; gap: 6px; align-items: center; }

.form-error { color: var(--down); font-size: 0.85rem; margin: 0 0 10px; }
.form-error[hidden] { display: none; }

.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }

/* Admin */
.login-panel { max-width: 420px; }
.stack-form { display: grid; gap: 12px; }
.admin-section { margin-bottom: 36px; }
.queue-list { display: grid; gap: 14px; }
.queue-grid { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: start; }
.queue-thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; }
.queue-info h3 { margin: 0 0 10px; font-size: 1.05rem; }
.queue-info h3 a { color: var(--ink); text-decoration: none; }
.diff-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 10px; }
.diff-box { background: #141210; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 0.85rem; }
.diff-box.is-proposed { border-color: rgba(255, 106, 0, 0.5); }
.diff-label { margin: 0 0 4px; font-size: 0.76rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.visitor-comment { margin: 6px 0 10px; font-size: 0.88rem; color: var(--ink); font-style: italic; }
.queue-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.note-input { flex: 1; min-width: 180px; }

.override-list { display: grid; gap: 10px; }
.override-card { padding: 14px 16px; }
.override-summary { display: flex; align-items: center; gap: 14px; }
.mini-thumb { width: 80px; height: 45px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.override-meta { flex: 1; min-width: 0; }
.override-title { margin: 2px 0 0; font-size: 0.92rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.override-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.override-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 38px;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

@media (max-width: 960px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .hits-kpi { grid-template-columns: repeat(3, 1fr); }
  .hits-layout { grid-template-columns: 1fr; }
  .breakdown-grid { grid-template-columns: 1fr; }
  .two-col-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .queue-grid { grid-template-columns: 1fr; }
  .diff-cols, .override-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  .kpi-grid { grid-template-columns: 1fr; }
  .hits-kpi { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .person-row { grid-template-columns: 1fr; }
}


.update-banner {
  position: fixed;
  top: 86px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: calc(100% - 32px);
  padding: 10px 14px 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 106, 0, 0.45);
  background: rgba(28, 24, 20, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
}
.update-banner[hidden] { display: none; }
.update-banner .btn { flex-shrink: 0; }
.update-banner a.btn { text-decoration: none; }

.next-run [data-role="next-run-check"] a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.next-run [data-role="next-run-check"] a:hover { text-decoration: underline; }


/* Moderator console hit counter */
.hits-kicker {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.hits-kpi {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.hits-note {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}
.hits-layout {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 24px;
  align-items: start;
}
.hits-subhead {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 600;
}
.hits-chart-wrap {
  background: #141210;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px 4px;
}
.hits-bar-svg {
  width: 100%;
  height: auto;
  display: block;
}

