/* Ember Ads - matches the app: very dark surfaces, the ember heat ramp. */
:root {
  --bg: #0a0a0b;
  --surface: #141416;
  --raised: #1e1e21;
  --border: #2a2a2e;
  --text: #fafafa;
  --muted: #a1a1a6;
  --faint: #8e8e93;
  --spark: #ffd166;
  --flame: #ff9e1a;
  --blaze: #ff6b1a;
  --inferno: #f23a2f;
  --success: #34c759;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--flame); }
h1, h2, h3 { line-height: 1.2; margin: 0; }
h1 { font-size: 28px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
p { margin: 0; }
[hidden] { display: none !important; }

/* ---- frame ---------------------------------------------------------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 5;
  background: var(--bg);
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.brand b { color: var(--blaze); }
.guide-link { margin-left: auto; margin-right: 12px; font-weight: 600; font-size: 15px; text-decoration: none; }
.who { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; min-width: 0; }
.who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; }
main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 24px 16px 48px; }
.foot {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  padding: 20px 16px 28px; color: var(--faint); font-size: 14px;
  border-top: 1px solid var(--border);
}
/* Loading reads as a placeholder block, not a word in the middle of the page. */
.loading {
  color: transparent; user-select: none; height: 140px; margin: 8px 0; border-radius: var(--radius);
  background: linear-gradient(100deg, var(--surface) 30%, var(--raised) 50%, var(--surface) 70%) 0 0 / 300% 100%; /* taste-skill-ignore: the loading shimmer, not decoration */
  animation: shimmer 1.4s ease-in-out infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .loading { animation: none; } }

/* ---- building blocks ------------------------------------------------ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }

button, .button {
  font: inherit; font-weight: 700; cursor: pointer;
  border: 0; border-radius: 999px;
  padding: 11px 20px;
  background: var(--blaze); color: #0a0a0b;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
button, .button { transition: background-color 0.15s, border-color 0.15s, color 0.15s, filter 0.15s, transform 0.1s; }
button:hover { filter: brightness(1.08); }
button:active:not(:disabled) { transform: scale(0.98); }
button:disabled { opacity: 0.45; cursor: default; filter: none; }
button.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
button.ghost:hover { background: var(--raised); border-color: #3a3a40; filter: none; }
button.ok { background: var(--success); color: #03150a; }
button.danger:hover { background: rgba(242, 58, 47, 0.12); filter: none; }
button.danger { background: transparent; color: var(--inferno); border: 1px solid var(--inferno); }
button.small { padding: 6px 14px; font-size: 14px; }
button.link { background: none; color: var(--flame); padding: 0; font-weight: 600; }

label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
input, textarea, select {
  font: inherit; color: var(--text);
  background: var(--raised); border: 1px solid var(--border); border-radius: 10px;
  padding: 11px 12px; width: 100%;
}
input:hover, textarea:hover, select:hover { border-color: #3a3a40; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blaze); box-shadow: 0 0 0 3px rgba(255, 107, 26, 0.25); /* taste-skill-ignore: focus ring */ }
::placeholder { color: var(--faint); opacity: 1; }
label.check { flex-direction: row; align-items: flex-start; gap: 10px; color: var(--text); }
label.check input { width: auto; margin-top: 3px; accent-color: var(--blaze); }
.error { color: var(--inferno); font-size: 14px; }

.badge {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.02em;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
  background: var(--raised); color: var(--muted); border: 1px solid var(--border);
}
.badge.good { color: var(--success); border-color: rgba(52, 199, 89, 0.4); }
.badge.warn { color: var(--flame); border-color: rgba(255, 158, 26, 0.4); }
.badge.bad { color: var(--inferno); border-color: rgba(242, 58, 47, 0.4); }
.badge.hot { background: var(--inferno); color: #fff; border-color: transparent; }

.notice {
  border-radius: var(--radius); padding: 14px 16px;
  background: rgba(255, 158, 26, 0.08); border: 1px solid rgba(255, 158, 26, 0.35);
}
.notice.bad { background: rgba(242, 58, 47, 0.08); border-color: rgba(242, 58, 47, 0.4); }

/* ---- sign in -------------------------------------------------------- */
.hero { display: grid; gap: 32px; grid-template-columns: 1.1fr 1fr; align-items: start; padding-top: 24px; }
.hero h1 { font-size: 40px; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--blaze); }
.points { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.points li { display: flex; gap: 10px; color: var(--muted); }
.points li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--blaze); }
.auth { max-width: 420px; width: 100%; justify-self: end; }
.tabs-mini { display: flex; gap: 6px; background: var(--raised); padding: 4px; border-radius: 999px; }
.tabs-mini button { flex: 1; background: transparent; color: var(--muted); padding: 8px; }
.tabs-mini button.on { background: var(--surface); color: var(--text); }

/* ---- dashboard tabs ------------------------------------------------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 20px 0 24px; overflow-x: auto; }
.tabs button {
  background: none; color: var(--muted); border-radius: 0; padding: 12px 14px;
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.tabs button.on { color: var(--text); border-bottom-color: var(--blaze); }
.tabs button:hover:not(.on) { color: var(--text); filter: none; }

/* ---- categories ----------------------------------------------------- */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cat {
  position: relative; text-align: left; color: #fff; border-radius: 12px; padding: 12px;
  min-height: 92px; display: flex; flex-direction: column; justify-content: space-between;
  border: 2px solid transparent; font-weight: 600;
}
.cat.on { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 107, 26, 0.5); /* taste-skill-ignore: the selected ring */ }
.cat .name { font-size: 16px; font-weight: 800; }
.cat .stat { font-size: 12px; opacity: 0.9; font-weight: 600; }
.cat .rank { position: absolute; top: 8px; right: 8px; font-size: 11px; background: rgba(0,0,0,0.35); padding: 2px 7px; border-radius: 999px; }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.metric { background: var(--raised); border-radius: 12px; padding: 14px; }
.metric b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; }
.metric span { color: var(--muted); font-size: 13px; }

/* ---- heatmap -------------------------------------------------------- */
.heat { display: grid; grid-template-columns: 38px repeat(24, 1fr); gap: 2px; font-size: 11px; color: var(--faint); }
.heat .h { text-align: center; }
.heat .d { display: flex; align-items: center; }
.heat .c { aspect-ratio: 1; border-radius: 3px; background: var(--raised); min-width: 0; }
.heat-wrap { overflow-x: auto; }
.heat-inner { min-width: 560px; }
.legend { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.legend i { width: 18px; height: 10px; border-radius: 2px; display: inline-block; }

/* ---- slots ---------------------------------------------------------- */
.days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.days button { background: var(--raised); color: var(--muted); padding: 8px 12px; border-radius: 12px; flex-direction: column; gap: 0; font-weight: 600; min-width: 62px; }
.days button b { color: var(--text); font-size: 18px; }
.days button.on { background: var(--blaze); color: #0a0a0b; }
.days button.on b { color: #0a0a0b; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.slot { background: var(--raised); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.slot.mine { border-color: var(--blaze); }
.slot .time { font-size: 18px; font-weight: 800; }

/* ---- lists and tables ----------------------------------------------- */
.ads { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ad { display: flex; gap: 12px; background: var(--raised); border-radius: 12px; padding: 12px; }
.ad.banner { flex-direction: column; align-items: stretch; }
.ad.banner img { width: 100%; height: auto; aspect-ratio: 32 / 5; object-fit: contain; background: #000; }
.ad img, .ad .ph { width: 64px; height: 114px; object-fit: cover; border-radius: 8px; background: var(--border); flex-shrink: 0; }
.ad .body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ad .body a { overflow-wrap: anywhere; font-size: 13px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { color: var(--faint); font-weight: 600; font-size: 12px; letter-spacing: 0.02em; }
tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }
td.num, th.num { text-align: right; }

.progress { height: 8px; background: var(--raised); border-radius: 999px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--blaze); transition: width 0.2s; }

/* ---- charts --------------------------------------------------------- */
.bars { display: flex; align-items: flex-end; gap: 3px; height: 160px; padding-top: 8px; overflow-x: auto; }
.bar { flex: 1 0 14px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.bar i { display: block; width: 100%; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--blaze); }
.bar span { font-size: 10px; color: var(--faint); white-space: nowrap; height: 12px; }
.hbar { display: grid; grid-template-columns: 110px 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.hbar-track { height: 10px; background: var(--raised); border-radius: 999px; overflow: hidden; }
.hbar-track i { display: block; height: 100%; background: var(--blaze); }
.hbar-value { color: var(--muted); font-size: 13px; }
@media (max-width: 760px) {
  .hbar { grid-template-columns: 1fr; gap: 4px; }
}

/* ---- dialog --------------------------------------------------------- */
dialog {
  /* Some browsers drop the centring when margin is reset elsewhere. */
  margin: auto;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; width: min(460px, calc(100vw - 32px));
}
dialog::backdrop { background: rgba(0, 0, 0, 0.7); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--raised); border: 1px solid #3a3a40; border-radius: 12px;
  padding: 12px 18px 12px 40px; font-size: 14px; font-weight: 600; z-index: 20; max-width: min(520px, calc(100vw - 32px));
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.8); /* taste-skill-ignore: the toast floats over the page */
}
.toast::before { content: ""; position: absolute; left: 16px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--success); }
.toast.bad::before { background: var(--inferno); }
.toast.bad { border-color: var(--inferno); color: #ffb3ad; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 0; }
  .hero h1 { font-size: 32px; }
  .auth { justify-self: stretch; max-width: none; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .top { padding: 12px 16px; }
}

/* ---- New ad: big choices (20261012140000) ---------------------------- */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.choice {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left;
  padding: 16px; border-radius: 12px; background: var(--raised); color: var(--text);
  border: 2px solid var(--border); cursor: pointer;
}
.choice b { font-size: 17px; }
.choice .price { color: var(--flame); font-weight: 700; font-size: 14px; }
.choice.on { border-color: var(--blaze); background: rgba(255, 107, 26, 0.08); }

/* ---- Your ads: one line of numbers per ad ---------------------------- */
.metrics-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.metrics-row > div { background: var(--surface); border-radius: 10px; padding: 8px 10px; }
.metrics-row b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.metrics-row span { color: var(--muted); font-size: 12px; }
.thumb-banner { width: 128px; aspect-ratio: 32 / 5; object-fit: contain; background: #000; border-radius: 4px; }
.thumb-video { width: 36px; height: 64px; object-fit: cover; border-radius: 6px; }

/* =====================================================================
   THE DASHBOARD (20261013100000) - same look as e-mbr.uk: deep black,
   flame gradients, soft glow, Bricolage headings, Inter text.
   ===================================================================== */
body { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
h1, h2, .dash-title { font-family: "Bricolage Grotesque", Inter, system-ui, sans-serif; letter-spacing: -0.02em; }
main { max-width: 1240px; }

.dash { display: flex; flex-direction: column; gap: 18px; }
.dash-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; justify-content: space-between; }
.dash-title { font-size: 30px; font-weight: 800; }
.dash-head select { width: auto; min-width: 220px; max-width: 100%; border-radius: 999px; padding: 9px 14px; }

.pills { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--raised); border: 1px solid var(--border); flex-wrap: wrap; }
.pills button { background: transparent; color: var(--muted); padding: 7px 14px; font-size: 14px; font-weight: 600; }
.pills button.on { background: var(--blaze); color: #160a03; }
.small-pills button { padding: 5px 11px; font-size: 13px; }

/* headline numbers */
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi {
  position: relative; overflow: hidden; border-radius: 18px; padding: 16px 16px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kpi-label { color: var(--muted); font-size: 13px; font-weight: 600; }
.kpi-value { display: block; margin: 6px 0 4px; font: 800 28px/1.1 "Bricolage Grotesque", Inter, sans-serif; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.spark { height: 34px; margin: 0 -16px -10px; }
.delta { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.delta.up { color: var(--success); background: rgba(52, 199, 89, 0.12); }
.delta.down { color: var(--inferno); background: rgba(242, 58, 47, 0.12); }
.delta.flat { color: var(--faint); background: var(--raised); }

/* cards */
.dash-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; grid-auto-flow: row dense; }
.dash-card { border-radius: 16px; display: flex; flex-direction: column; gap: 14px; min-width: 0; background: var(--surface); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: 1 / -1; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.card-title h3 { font-size: 17px; }
.chart-box { position: relative; height: 240px; }
.chart-box.tall { height: auto; min-height: 290px; flex: 1; }
.chart-box.donut { height: 170px; }
.donut-wrap { position: relative; }
.donut-mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.donut-mid b { font: 800 30px/1 "Bricolage Grotesque", Inter, sans-serif; }

.bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.bar.thin { height: 5px; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--blaze); }
.pacing { display: flex; flex-direction: column; gap: 12px; }
.pace { display: flex; flex-direction: column; gap: 6px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* suggestions */
.tip-list { display: flex; flex-direction: column; gap: 10px; }
.tip { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--raised); border: 1px solid var(--border); }
.tip b { display: block; font-size: 14px; margin-bottom: 2px; }
.tip-icon { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 15px; background: rgba(255, 255, 255, 0.05); }
.tip.act { border-color: rgba(255, 158, 26, 0.5); background: rgba(255, 158, 26, 0.08); }
.tip.good { border-color: rgba(52, 199, 89, 0.35); }
.tips { grid-row: span 2; }

.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.mini-stats > div { background: var(--raised); border-radius: 12px; padding: 10px 6px; }
.mini-stats b { display: block; font: 800 18px/1.1 "Bricolage Grotesque", Inter, sans-serif; }
.mini-stats span { color: var(--muted); font-size: 12px; }

/* heat */
.dash-heat .c { border-radius: 4px; background: rgba(255, 255, 255, 0.04); transition: transform 0.15s; }
.dash-heat .c:hover { transform: scale(1.35); outline: 1px solid rgba(255, 255, 255, 0.5); }

/* hashtags */
.tag-bars { display: flex; flex-direction: column; gap: 10px; }
.tag-bar { display: flex; flex-direction: column; gap: 5px; font-size: 14px; }
.tag-bar span:first-child { color: var(--flame); font-weight: 600; }

/* table */
.dash-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dash-table th { text-align: left; color: var(--faint); font-weight: 600; font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.dash-table td { padding: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); white-space: nowrap; }
.dash-table td:first-child { max-width: 260px; }
.dash-table tbody tr { cursor: pointer; transition: background 0.15s; }
.dash-table tbody tr:hover { background: rgba(255, 158, 26, 0.06); }
.dash-table tbody tr.sel { background: rgba(255, 107, 26, 0.12); }
.small-thumb.thumb-banner { width: 70px; }
.small-thumb.thumb-video { width: 22px; height: 39px; }

/* audience */
.aud-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.aud { position: relative; overflow: hidden; border-radius: 14px; padding: 12px 14px; background: var(--raised); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.aud-big { color: var(--a, var(--text)); }
.aud-big { font: 800 22px/1.1 "Bricolage Grotesque", Inter, sans-serif; }
.aud-big span { font: 500 12px Inter, sans-serif; color: var(--muted); }

/* bought embers after tapping (house ads) */
.conv { border-color: rgba(255, 209, 102, 0.35); background: var(--surface); }
.conv-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 14px; align-items: center; }
.conv-stats { grid-template-columns: repeat(2, 1fr); }
.conv-stats b { color: var(--spark); }
.chart-box.conv-chart { height: 150px; }
@media (max-width: 760px) { .conv-row { grid-template-columns: minmax(0, 1fr); } }

/* empty */
.dash-empty { position: relative; overflow: hidden; text-align: center; padding: 56px 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.dash-empty-glow { display: none; }
.dash-empty h2 { font-size: 26px; position: relative; }
.dash-empty p, .dash-empty button { position: relative; }

@media (max-width: 980px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .span-2, .span-3 { grid-column: auto; }
  .tips { grid-row: auto; }
}
@media (max-width: 520px) {
  .kpi-value { font-size: 23px; }
  .dash-head select { min-width: 0; width: 100%; }
}

@media (max-width: 560px) {
  .top { padding: 12px 14px; gap: 8px; }
  .brand span { white-space: nowrap; }
  .guide-link { font-size: 14px; margin-right: 4px; white-space: nowrap; }
  .who span { display: none; }
}

/* Watching now (staff): profit or loss tile. */
.metric b.good { color: var(--success); }
.metric b.bad { color: var(--inferno); }

/* =====================================================================
   POLISH (2026-11-03): browser surfaces, focus, and the staff console.
   ===================================================================== */
::selection { background: rgba(255, 107, 26, 0.35); color: #fff; }
html { scrollbar-color: #3a3a40 var(--bg); }
:focus-visible { outline: 2px solid var(--flame); outline-offset: 2px; }
button:focus-visible, .button:focus-visible, a:focus-visible { outline: 2px solid var(--flame); outline-offset: 3px; }
a { text-underline-offset: 3px; }
.num, td.num, .metric b, .kpi-value { font-variant-numeric: tabular-nums; }
.skip {
  position: absolute; left: 12px; top: -48px; z-index: 30; padding: 10px 14px; border-radius: 8px;
  background: var(--blaze); color: #160a03; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 10px; }
.signin { max-width: 420px; margin: 56px auto; }

/* ---- staff console: grouped sidebar + one working pane ----------------- */
body.staff::before { display: none; }
body.staff main { max-width: none; padding: 0; }
body.staff h1, body.staff h2 { font-family: Inter, system-ui, sans-serif; letter-spacing: -0.01em; }
body.staff h2 { font-size: 18px; }
body.staff .top { padding: 0 24px; height: 56px; }
body.staff button, body.staff .button { border-radius: 8px; }
body.staff button:not(.small):not(.link) { min-height: 40px; }
body.staff input, body.staff select, body.staff textarea { border-radius: 8px; }
body.staff .card { border-radius: 12px; }

/* 248px sidebar + fluid pane: the pane runs to the window's right edge with
   the same 32px gutter the sidebar keeps on its left. */
.console { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: calc(100vh - 56px); }
.side {
  border-right: 1px solid var(--border); padding: 20px 12px 32px;
  position: sticky; top: 56px; align-self: start; max-height: calc(100vh - 56px); overflow-y: auto;
}
.side-sum { padding: 0 12px 16px; color: var(--muted); font-size: 14px; }
.side-sum b { color: var(--text); font-size: 20px; font-variant-numeric: tabular-nums; margin-right: 2px; }
.side-pick { display: none; }
.nav-group + .nav-group { margin-top: 18px; }
.nav-label { padding: 0 12px 6px; color: var(--faint); font-size: 12px; font-weight: 600; }
.side-nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 34px; padding: 6px 12px; border-radius: 8px;
  color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}
.side-nav a:hover { background: var(--surface); color: var(--text); }
.side-nav a.on { background: var(--raised); color: #fff; font-weight: 600; }
.nav-count { flex: none; color: var(--flame); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }

.pane { min-width: 0; padding: 28px 32px 64px; }
.pane-head { max-width: 980px; margin-bottom: 24px; }
.pane-head h1 { font-size: 24px; font-weight: 700; }
.pane-head h1:focus { outline: none; }
.pane-head p { margin-top: 6px; color: var(--muted); font-size: 15px; }
/* Number strips (Outreach, Watching now): one panel split by 1px lines, not a tile per figure. */
.counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.counts > .metric { background: var(--surface); border-radius: 0; padding: 14px 16px; }
.counts > .metric b { font-size: 22px; }

@media (max-width: 900px) {
  .console { display: block; }
  .side { position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--border); padding: 14px 16px; }
  .side-sum { padding: 0 0 10px; }
  .side-nav { display: none; }
  .side-pick { display: flex; }
  .pane { padding: 20px 16px 48px; }
  body.staff .top { padding: 0 16px; }
  body.staff button:not(.small):not(.link) { min-height: 44px; }
}
/* Segmented switches (sort order, filters): as wide as their options. */
body.staff .tabs-mini { display: inline-flex; width: auto; max-width: 100% !important; border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
body.staff .tabs-mini button { flex: none; min-height: 32px !important; padding: 6px 14px; border-radius: 8px; white-space: nowrap; font-size: 14px; font-weight: 600; }
body.staff .tabs-mini button.on { background: var(--border); }
.nav-group + .nav-group { margin-top: 14px; }
.side-nav a { min-height: 32px; padding: 5px 12px; }
body.staff .stack > .tabs-mini, body.staff .row > .tabs-mini { align-self: flex-start; }
