:root { color-scheme: dark; --bg: #090f1e; --panel: #121e32; --line: #2d4764; --text: #e6f3ff; --muted: #a1b5ca; --cyan: #69eacb; --gold: #f8d28d; }
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 72% -20%, #172b48 0, var(--bg) 60%); color: var(--text); font: 16px/1.65 Inter, -apple-system, BlinkMacSystemFont, 'Noto Sans SC', 'Microsoft YaHei', system-ui, sans-serif; }
a { color: var(--cyan); } a:hover { color: #b6ffeb; }
h1 { font-size: clamp(1.75rem, 5vw, 2.7rem); margin: 6px 0; letter-spacing: -.04em; }
h2 { font-size: 1.1rem; margin: 0 0 15px; } h3 { font-size: 1rem; margin: 5px 0; }
p { margin: 8px 0 15px; }
.eyebrow, .badge, .state { font-family: 'Noto Sans SC', 'Microsoft YaHei', system-ui, sans-serif; letter-spacing: .02em; } code { font-family: ui-monospace, Consolas, monospace; }
.eyebrow { font-size: .95rem; font-weight: 800; color: var(--cyan); } .eyebrow a { text-decoration: none; }
.muted { color: var(--muted); max-width: 72ch; } .tiny { font-size: .9rem; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 15px max(5%, calc((100% - 1140px)/2)); border-bottom: 1px solid var(--line); background: #0b1729; }
.brand { color: #f2f6ff; text-decoration: none; font-weight: 900; letter-spacing: .09em; } .brand span { color: var(--cyan); }
.container { max-width: 1140px; margin: 36px auto 80px; padding: 0 20px; }
.panel, .login-panel { margin: 22px 0; padding: 24px; border: 1px solid var(--line); background: #121e32e8; box-shadow: 0 16px 48px #0005; }
.panel-heading, .question-head { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.badge, .state { padding: 5px 8px; background: #19354b; color: var(--cyan); font-size: .92rem; }
label { display: block; margin: 12px 0 6px; font-size: .95rem; color: #d6e6f6; font-weight: 700; }
input, textarea, select { width: 100%; min-height: 44px; padding: 10px; color: var(--text); background: #091426; border: 1px solid #466585; border-radius: 4px; font: inherit; }
textarea { min-height: 85px; resize: vertical; }
input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
button { cursor: pointer; min-height: 42px; padding: 10px 15px; font: 800 1rem/1.4 Inter, 'Noto Sans SC', 'Microsoft YaHei', system-ui, sans-serif; border: 1px solid transparent; }
.primary { color: #08232a; background: var(--cyan); margin-top: 16px; } .primary:hover { background: #a9ffe3; }
.subtle { color: #dfedff; background: transparent; border-color: #486783; }.subtle:hover { background: #223652; }
.danger { color: #fff1ed; background: #6f2c36; border-color: #d17d89; margin-top: 12px; }.danger:hover { background: #91404f; }
.warning, .error, .success { padding: 11px 14px; border: 1px solid; }
.warning { color: var(--gold); background: #3a2c1c; border-color: #aa8138; }
.error { color: #ffb6bd; background: #441e2c; border-color: #be6a79; }
.success { color: #bbffe6; background: #193d38; border-color: #3caa8c; }
.upload { max-width: 510px; } .decision { margin-top: 18px; max-width: 680px; }
.table-scroll { overflow-x: auto; } table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th, td { padding: 12px 10px; border-bottom: 1px solid #2e4964; } th { color: var(--muted); font-size: .95rem; }
.question-card { margin: 12px 0; padding: 14px 16px; border: 1px solid #35516f; background: #0b182a; }
.question-head { flex-wrap: wrap; } .answer-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 15px; padding: 0; margin: 10px 0; list-style: none; }
.answer-list li { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid #29405b; padding: 5px 0; overflow-wrap: anywhere; }
.answer-list li span { color: var(--gold); font: 700 .9rem/1.5 ui-monospace, monospace; white-space: nowrap; }
.issues li { margin: 7px 0; overflow-wrap: anywhere; }
.editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; }
.editor-answer { margin: 12px 0; padding: 12px 16px; border: 1px solid #35516f; background: #0b182a; }
.editor-answer-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.editor-answer-fields { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.editor-aliases { grid-column: 1 / -1; }
.remove-answer { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-size: .9rem; }
.remove-answer input { width: 16px; height: 16px; min-height: unset; accent-color: #d17d89; }
.confirm-choice { display: flex; align-items: flex-start; gap: 10px; }
.confirm-choice input { flex: none; width: 18px; height: 18px; min-height: 18px; padding: 0; margin-top: 3px; accent-color: var(--cyan); }
.fingerprint { overflow-wrap: anywhere; }
.editor-cancel { margin-left: 18px; display: inline-block; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 18px; }
.login-panel { max-width: 440px; width: 100%; margin: 0; padding: 32px; }
.login-panel .primary { width: 100%; }
@media (max-width: 650px) { .topbar { padding: 12px 16px; } .container { margin-top: 24px; } .panel, .login-panel { padding: 17px; } .answer-list, .editor-grid, .editor-answer-fields { grid-template-columns: 1fr; } table { font-size: .95rem; } }

.sponsor-pipeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 17px 0; }
.sponsor-pipeline > div { border: 1px solid #35516f; background: #0b182a; padding: 14px 12px; display: grid; gap: 8px; }
.sponsor-pipeline strong { color: var(--cyan); font: 700 1.6rem/1.2 ui-monospace, monospace; }
.sponsor-pipeline span { font-size: .9rem; line-height: 1.4; color: var(--muted); }
.sponsor-lead-message { display: block; white-space: pre-wrap; max-width: 320px; min-width: 190px; overflow-wrap: anywhere; }
.sponsor-operator-cell { min-width: 275px; white-space: normal; vertical-align: top; }
.sponsor-operator-cell > a, .sponsor-operator-cell > form { display: block; margin-top: 10px; }
.sponsor-follow-up { border-top: 1px solid #35516f; padding-top: 10px; }
.sponsor-follow-up input, .sponsor-follow-up textarea { max-width: 290px; }
.sponsor-follow-up button { width: 100%; max-width: 290px; }
.sponsor-due { color: var(--gold); font-weight: 700; }

/* Readable private Daily candidate review, including narrow phone screens. */
.candidate-review-card { margin: 14px 0; border: 1px solid #42607d; background: #0b182a; }
.candidate-review-card > summary { cursor: pointer; min-height: 56px; padding: 16px 18px; font-size: 1rem; line-height: 1.55; overflow-wrap: anywhere; }
.candidate-review-card > summary::marker, .candidate-answer > summary::marker { color: var(--cyan); }
.candidate-review-card[open] > summary { border-bottom: 1px solid #42607d; }
.candidate-review-meta { display: block; margin-top: 4px; color: var(--muted); font-size: .91rem; font-weight: 500; }
.candidate-review-content { padding: 17px 18px 20px; overflow-wrap: anywhere; }
.candidate-review-content h3 { margin: 18px 0 11px; font-size: 1.06rem; }
.candidate-locale-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.candidate-locale { min-width: 0; padding: 14px 16px; border: 1px solid #2f4d69; background: #14243a; font-size: 1rem; }
.candidate-locale > strong { color: var(--cyan); }
.candidate-locale p { margin: 9px 0; line-height: 1.6; }
.candidate-instruction { color: var(--muted); }
.candidate-answer { margin-top: 9px; border: 1px solid #35516f; background: #112339; }
.candidate-answer > summary { cursor: pointer; min-height: 46px; padding: 11px 14px; font-size: 1rem; overflow-wrap: anywhere; }
.candidate-tier { display: inline-block; margin-right: 12px; color: var(--gold); font-size: .9rem; font-weight: 750; }
.candidate-answer-content { padding: 11px 16px 14px; border-top: 1px solid #35516f; }
.candidate-answer-content ul { margin: 10px 0 0; padding-left: 21px; }
.candidate-answer-content li { margin: 9px 0; line-height: 1.55; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .candidate-locale-grid { grid-template-columns: minmax(0, 1fr); }
  .candidate-review-card > summary { padding: 14px 12px; }
  .candidate-review-content { padding: 12px; }
  .candidate-locale { padding: 12px; }
}

/* Private question lineage: readable diffs and independently scrollable snapshots. */
.history-question { font-size: 1.13rem; font-weight: 700; line-height: 1.5; }
.history-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.history-facts > div { border: 1px solid #35516f; background: #0b182a; padding: 12px 14px; min-width: 0; }
.history-facts span { display: block; margin-bottom: 7px; color: var(--muted); font-size: .92rem; }
.history-facts strong { display: block; font-size: 1rem; overflow-wrap: anywhere; }
.history-wrap { min-width: 190px; max-width: 380px; white-space: normal; overflow-wrap: anywhere; }
.history-revision { margin: 12px 0; border: 1px solid #42607d; background: #0b182a; }
.history-revision > summary { padding: 15px 17px; min-height: 50px; cursor: pointer; font-size: 1rem; font-weight: 700; overflow-wrap: anywhere; }
.history-revision > summary::marker { color: var(--cyan); }
.history-revision-meta { display: block; color: var(--muted); font-size: .94rem; font-weight: 500; }
.history-revision[open] > summary { border-bottom: 1px solid #42607d; }
.history-revision-body { padding: 16px; }
.history-snapshots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.history-snapshots > div { min-width: 0; }
.history-snapshots pre { margin: 0; padding: 16px; border: 1px solid #35516f; background: #091426; color: var(--text); font: 14px/1.6 ui-monospace, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 420px; overflow-y: auto; }
.history-pagination { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; margin-top: 18px; color: var(--muted); }
@media (max-width: 760px) { .history-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .history-snapshots { grid-template-columns: minmax(0, 1fr); } .history-revision > summary { padding: 14px 12px; } .history-revision-body { padding: 12px; } }
@media (max-width: 430px) { .history-facts { grid-template-columns: minmax(0, 1fr); } }


/* RARE RUN / Arcade Control: the same plum, gold, cyan and crisp pixel bevels as the game. */
:root {
  color-scheme: dark;
  --bg: #0c0914;
  --panel: #24182e;
  --line: #725474;
  --text: #fff4df;
  --muted: #cdbbd0;
  --cyan: #85f7ce;
  --gold: #ffcc71;
  --pink: #ff9ab1;
  --violet: #b0a0ff;
  --shade: #171020;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
}
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  font: 15px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image: linear-gradient(#b28bb506 1px, transparent 1px), linear-gradient(90deg, #b28bb506 1px, transparent 1px), radial-gradient(ellipse at 45% -20%, #37233e, #0c0914 60%);
  background-size: 24px 24px, 24px 24px, auto;
}
body.admin-shell { padding-left: 262px; }
.admin-skip-link { position: fixed; left: 12px; top: -80px; z-index: 60; padding: 10px 14px; color: #241428; background: var(--gold); font-weight: 800; }
.admin-skip-link:focus { top: 10px; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #c2ffe9; }
::selection { background: #6e527c; color: white; }
h1,h2,h3 { color: #fff2db; letter-spacing: 0; }
h1 { font-size: clamp(1.85rem, 3vw, 2.55rem); font-weight: 900; line-height: 1.25; }
h2 { font-size: 1.12rem; }
.eyebrow, .badge, .state, .nav-caption { font: 800 .73rem/1.5 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.eyebrow { color: var(--cyan); }
.muted { color: var(--muted); }
.tiny { font-size: .84rem; }
code { color: var(--gold); font-family: var(--mono); overflow-wrap: anywhere; }

/* Fixed operator navigation; on narrow screens it becomes a horizontal module rail. */
.admin-sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; flex-direction: column;
  width: 262px; overflow-y: auto; overflow-x: hidden;
  background: #120c1e; border-right: 2px solid #79537b;
  box-shadow: inset -5px 0 #070510, 6px 0 28px #0005;
  scrollbar-color: #6e4d77 #120c1e;
}
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 27px 18px 22px; text-decoration: none; color: var(--text); border-bottom: 1px solid #503a5b; }
.sidebar-brand:hover { color: var(--text); }
.sidebar-mark { display: grid; grid-template-columns: repeat(3, 7px); align-items: end; gap: 2px; width: 40px; height: 42px; padding: 6px; border: 2px solid #deb079; background: #352137; box-shadow: 4px 4px #070510; }
.sidebar-mark i { display: block; width: 7px; background: var(--gold); box-shadow: 2px -2px #fff0b8; }
.sidebar-mark i:nth-child(1) { height: 12px; }.sidebar-mark i:nth-child(2) { height: 25px; background: var(--cyan); }.sidebar-mark i:nth-child(3) { height: 18px; }
.sidebar-brand-copy strong { display: block; font: 900 1.25rem/1.1 var(--mono); letter-spacing: -.07em; white-space: nowrap; }
.sidebar-brand-copy em { color: var(--gold); font-style: normal; }
.sidebar-brand-copy small { display: block; margin-top: 5px; color: #bfa9c8; font: 700 .58rem/1.45 var(--mono); letter-spacing: .02em; }
.sidebar-server { display: flex; align-items: center; gap: 7px; margin: 16px 15px 6px; padding: 9px 10px; color: #d8c7dc; border: 1px solid #513f60; background: #21172d; font: 700 .62rem/1.4 var(--mono); white-space: nowrap; }
.sidebar-server span:last-child { margin-left: auto; color: var(--cyan); font-size: .58rem; }
.sidebar-led { width: 7px; height: 7px; background: var(--cyan); box-shadow: 2px 2px #265849; }
.sidebar-nav { display: grid; gap: 3px; padding: 14px 11px 25px; }
.nav-caption { margin: 0 9px 10px; color: #b59dbe; font-size: .62rem; }
.sidebar-link { display: flex; align-items: center; gap: 12px; min-height: 49px; padding: 8px 12px; border: 1px solid transparent; color: #e2d2e6; text-decoration: none; font-weight: 750; transition: color .1s, background .1s; }
.sidebar-link:hover { color: #fff6e6; background: #30203b; border-color: #61456b; }
.sidebar-link.is-active { border-color: #ae8860; background: #3a273c; color: var(--gold); box-shadow: inset 4px 0 var(--gold), inset 0 -2px #1a1023; }
.nav-num { color: #9c83a8; font: 800 .68rem/1 var(--mono); }
.is-active .nav-num { color: var(--gold); }
.nav-title { flex: 1; }
.nav-arrow { font: 800 1.25rem/1 var(--mono); color: #ac92b6; }
.sidebar-footer { margin-top: auto; padding: 18px 20px 26px; color: #ae9abb; font-size: .77rem; }
.sidebar-footer p { margin: 5px 0; }.sidebar-footer p:first-of-type { font: 800 .62rem/1.5 var(--mono); letter-spacing: .05em; color: #e4c69e; }
.sidebar-footer a { display: inline-flex; margin-top: 13px; font-weight: 800; text-decoration: none; }
.sidebar-rule { display: block; width: 100%; height: 2px; margin-bottom: 16px; background: repeating-linear-gradient(90deg, #8d6d8c 0 9px, transparent 9px 15px); }

.topbar { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; min-height: 72px; padding: 12px clamp(18px, 3vw, 44px); border-bottom: 2px solid #6b4c70; background: #150e21ef; backdrop-filter: blur(8px); }
.topbar-location { display: grid; gap: 2px; }.topbar-kicker { color: #b09dba; font: 800 .63rem/1.4 var(--mono); letter-spacing: .12em; }
.topbar-page { color: #fff4df; font-size: 1.02rem; font-weight: 900; }
.topbar-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.topbar-stage { padding: 5px 8px; border: 1px solid #527f6d; color: var(--cyan); background: #1a332b; font: 800 .65rem/1.5 var(--mono); }
.topbar-operator { color: #e9d8e7; font: 700 .75rem var(--mono); }
.topbar form { margin: 0; }.topbar .subtle { min-height: 36px; padding: 5px 12px; font-size: .76rem; }
.container { width: 100%; max-width: 1560px; margin: 0 auto; padding: 34px clamp(18px, 3vw, 46px) 100px; }
.container > .eyebrow { margin-top: 0; }
.panel, .login-panel { position: relative; margin: 20px 0; padding: clamp(18px, 2.3vw, 28px); background: #211629f5; border: 2px solid #75557a; border-radius: 0; box-shadow: 5px 5px #080610, inset 0 2px #ffffff0b; }
.panel::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 38px; height: 3px; background: var(--gold); }
.panel-heading { align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 14px; }
.panel-heading h2 { margin: 0; }
.badge, .state { border: 1px solid #695071; background: #34243c; color: var(--cyan); padding: 5px 10px; font-size: .68rem; }
label { color: #f3e5f0; font-size: .88rem; }
input,textarea,select { border-radius: 0; background: #100d1b; border: 1px solid #80638c; box-shadow: inset 2px 2px #070611; color: #fff2e7; }
input:focus,textarea:focus,select:focus { border-color: var(--cyan); }
input[type="checkbox"],input[type="radio"] { box-shadow: none; }
button,.primary,.subtle,.danger { border-radius: 0; transition: filter .12s ease, transform .12s ease; }
button:disabled { cursor: not-allowed; opacity: .55; }
button:hover:not(:disabled) { filter: brightness(1.12); }
button:active:not(:disabled) { transform: translateY(1px); }
.primary { background: var(--gold); border: 1px solid #ffe6a4; color: #281a26; box-shadow: inset 0 -4px #9e663b, 3px 3px #080610; padding-bottom: 14px; }
.primary:hover { background: #ffe0a0; }
.subtle { color: #f2e1f4; border: 1px solid #86678e; background: #30213a; box-shadow: inset 0 -3px #150f21; }
.subtle:hover { background: #45304f; }
.danger { color: #fff4eb; background: #753548; border: 1px solid #c97987; box-shadow: inset 0 -3px #42202d; }
.warning,.error,.success { border-width: 1px 1px 1px 4px; border-radius: 0; }
.warning { color: #ffe6ab; background: #392b24; border-color: #d2a657; }
.error { color: #ffd0d0; background: #4c2637; border-color: #d58899; }
.success { color: #bfffe7; background: #1b3a32; border-color: #68d3b1; }
.table-scroll { max-width: 100%; margin-top: 13px; border: 1px solid #5e4668; background: #150f20; }
table { border-collapse: separate; border-spacing: 0; }
th,td { padding: 12px 14px; border-bottom: 1px solid #4c3858; }
thead th { background: #30203b; color: #f9deb0; font: 800 .73rem/1.5 var(--mono); letter-spacing: .02em; text-transform: none; }
tbody tr:hover { background: #3b29431f; }
tbody tr:last-child td,tbody tr:last-child th { border-bottom: 0; }
.question-card,.editor-answer,.candidate-review-card,.candidate-answer,.history-facts > div,.history-revision,.sponsor-pipeline > div { border-color: #75557a; background: #170f22; border-radius: 0; }
.candidate-locale { border-color: #624b70; background: #251931; }
.candidate-answer { background: #20142b; }
.history-snapshots pre { border-color: #624b70; background: #100c18; }
.sponsor-pipeline strong { color: var(--gold); }
.sponsor-due { color: var(--gold); }

/* Module switcher: one real operator workflow per route query, no client script. */
.admin-module { display: none; }
.admin-main[data-view="overview"] .admin-module[data-view="overview"],
.admin-main[data-view="questions"] .admin-module[data-view="questions"],
.admin-main[data-view="daily"] .admin-module[data-view="daily"],
.admin-main[data-view="sponsors"] .admin-module[data-view="sponsors"],
.admin-main[data-view="leads"] .admin-module[data-view="leads"],
.admin-main[data-view="system"] .admin-module[data-view="system"] { display: block; }
.dashboard-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 0 0 24px; }
.dashboard-intro .eyebrow { margin-bottom: 8px; }.dashboard-intro h1 { margin: 0 0 7px; }
.dashboard-title-tag { display: inline-block; margin-left: 10px; padding: 3px 8px; border: 1px solid #805f8a; background: #2a1c35; color: var(--gold); font: 800 .73rem/1.4 var(--mono); vertical-align: middle; }
.dashboard-intro .muted { margin: 0; }
.dashboard-clock { padding: 8px 12px; border: 1px solid #6c5676; color: #f4dca7; background: #24172f; font: 800 .68rem/1.4 var(--mono); white-space: nowrap; }
.overview-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 245px; padding: clamp(20px, 3vw, 35px); border: 2px solid #a37c76; background: linear-gradient(113deg, #332038 2%, #241630 60%, #100c1d); box-shadow: 6px 6px #080610; }
.overview-hero::before { content: ""; position: absolute; top: 0; right: 0; width: 42%; height: 100%; z-index: -1; opacity: .6; background: repeating-linear-gradient(90deg, transparent 0 18px, #f7bf6b16 18px 22px), repeating-linear-gradient(0deg, transparent 0 18px, #76eac216 18px 22px); mask-image: linear-gradient(90deg, transparent, #000); }
.overview-hero::after { content: ""; position: absolute; right: 8%; bottom: -14px; width: 115px; height: 130px; z-index: -1; border: 9px solid #846087; border-bottom: 0; box-shadow: 22px -24px 0 -3px #4d405f, -25px 28px 0 -4px #3c3352, inset 0 0 0 18px #1b1429; image-rendering: pixelated; opacity: .56; }
.overview-hero .eyebrow { color: var(--cyan); }.overview-hero h2 { max-width: 16ch; margin: 7px 0 12px; font: 900 clamp(1.45rem, 3vw, 2.25rem)/1.25 var(--mono); color: #ffefce; }
.overview-hero p { max-width: 70ch; color: #e0cee4; }
.hero-tag { display: inline-block; margin-top: 18px; padding: 7px 11px; border: 1px solid #8c6b76; background: #1b1326a8; font: 800 .72rem/1.4 var(--mono); color: var(--gold); }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin: 21px 0; }
.stat-card { position: relative; min-width: 0; padding: 20px; border: 1px solid #75547e; background: #24172e; box-shadow: inset 0 3px #ffffff0b, 3px 3px #090611; }
.stat-card::after { content: "■"; position: absolute; top: 12px; right: 13px; color: #8e6d91; font: .75rem var(--mono); }
.stat-card span { display: block; color: #d5bed8; font-size: .82rem; font-weight: 800; }
.stat-card strong { display: block; margin: 10px 0; color: var(--gold); font: 900 clamp(1.6rem, 2.4vw, 2.55rem)/1.1 var(--mono); font-variant-numeric: tabular-nums; }
.stat-card small { color: #b5a0bd; font-size: .73rem; }
.stat-card:nth-child(2) strong { color: var(--cyan); }.stat-card:nth-child(3) strong { color: var(--violet); }
.dashboard-section-title { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin: 33px 0 13px; }
.dashboard-section-title h2 { margin: 0; font-size: 1.2rem; }.dashboard-section-title small { color: var(--muted); }
.shortcut-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.shortcut { display: block; min-height: 126px; padding: 18px 20px; text-decoration: none; border: 1px solid #71537a; background: #21162b; box-shadow: 3px 3px #090611; color: var(--text); }
.shortcut:hover { border-color: var(--gold); background: #32213c; color: var(--text); }
.shortcut-icon { display: block; margin-bottom: 10px; color: var(--cyan); font: 900 .73rem/1.4 var(--mono); }
.shortcut strong { display: block; font-size: 1.03rem; }.shortcut span:last-child { display: block; margin-top: 5px; color: #cbb7d2; font-size: .83rem; }
.module-hint { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 15px; margin-bottom: 20px; border: 1px solid #6c5077; background: #251a30; }
.module-hint strong { color: var(--gold); }.module-hint p { margin: 0; font-size: .88rem; }
.admin-filter-bar { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.admin-filter-bar > div:first-of-type { flex: 1 1 220px; }.admin-filter-bar > div:nth-of-type(2) { flex: 0 1 180px; }
.admin-filter-bar label { margin-top: 0; }.admin-filter-bar .primary { min-height: 44px; margin: 0; }
.admin-filter-bar > a { padding: 9px 4px; font-weight: 800; }
.system-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.system-grid .panel { margin: 0; }.system-grid dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 11px; }
.system-grid dt { color: var(--muted); }.system-grid dd { margin: 0; color: var(--gold); font: 800 .86rem var(--mono); }
.system-readonly { padding: 15px; border-left: 3px solid var(--cyan); background: #1b302d; color: #d9ffe9; }

/* Login belongs to the same arcade, not the browser's default HTML template. */
.login-page { padding: 22px; background: radial-gradient(ellipse at 50% 10%, #402942, #0c0914 65%); }
.login-panel { position: relative; max-width: 485px; padding: clamp(26px, 5vw, 46px); border: 2px solid #af848a; box-shadow: 8px 8px #06050d, inset 0 4px #e9c68d30; }
.login-panel::before { content: "CONTROL ROOM / STAFF ONLY"; display: block; margin-bottom: 20px; color: var(--gold); font: 800 .65rem/1.4 var(--mono); letter-spacing: .08em; }
.login-panel h1 { margin-bottom: 15px; }.login-panel .muted { margin-bottom: 24px; }
.login-panel .primary { margin-top: 22px; }.login-panel .eyebrow { font-size: .82rem; }
.login-panel label { margin-top: 17px; }
.login-panel input { min-height: 48px; }
.login-wordmark { display: flex; align-items: center; gap: 12px; padding: 0 0 24px; margin-bottom: 25px; border-bottom: 1px dashed #86658e; }
.login-wordmark-icon { display: grid; place-items: center; width: 46px; height: 46px; border: 2px solid #d6ab7c; color: var(--cyan); background: #35223a; box-shadow: 4px 4px #0b0714; font: 900 1.4rem var(--mono); }
.login-wordmark strong { display: block; color: var(--gold); font: 900 1.6rem/1 var(--mono); letter-spacing: -.08em; }
.login-wordmark small { display: block; margin-top: 6px; color: #b5a0bd; font: 800 .64rem/1.3 var(--mono); }
.login-footnote { margin: 18px 0 0; color: #bda9c3; font: 700 .7rem/1.5 var(--mono); text-align: center; }

@media (max-width: 1200px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shortcut-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 950px) {
  body.admin-shell { padding-left: 0; }
  .admin-sidebar { position: static; width: 100%; max-height: none; box-shadow: none; overflow: visible; border-right: 0; border-bottom: 1px solid #725474; }
  .sidebar-brand { padding: 13px 19px; border: 0; }.sidebar-mark { width: 36px; height: 36px; }
  .sidebar-server,.sidebar-footer,.nav-caption { display: none; }
  .sidebar-nav { display: flex; gap: 6px; overflow-x: auto; padding: 5px 14px 12px; scrollbar-color: #765681 #120c1e; }
  .sidebar-link { flex: none; white-space: nowrap; min-height: 40px; padding: 7px 12px; border-color: #4d3856; }
  .nav-arrow { display: none; }.topbar { position: static; }
}
@media (max-width: 700px) {
  .topbar { gap: 8px; padding: 13px 16px; }
  .topbar-kicker,.topbar-operator { display: none; }
  .container { padding: 22px 15px 65px; }
  .stat-grid,.shortcut-grid,.system-grid { grid-template-columns: minmax(0, 1fr); }
  .stat-card { padding: 15px; }.dashboard-intro { margin-bottom: 16px; }
  .dashboard-title-tag { display: block; width: max-content; margin: 9px 0 0; }
  .overview-hero::after { opacity: .24; }
  .panel,.login-panel { padding: 18px; }
  .table-scroll table { min-width: 600px; }
  .topbar .subtle { min-height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  button,.primary,.subtle,.danger,.sidebar-link { transition: none; }
}


/* Shipped question library: arcade command deck, readable data tables. */
.catalog-main { max-width: 1390px; }
.catalog-main .dashboard-intro { align-items: flex-end; }
.catalog-heading-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.catalog-outline-button { display: inline-flex; align-items: center; justify-content: center; width: fit-content; padding: 10px 15px; border: 1px solid var(--cyan); background: #203436; color: #bbffe8; font: 900 .79rem/1.4 var(--mono); text-decoration: none; box-shadow: 3px 3px #090610; }
.catalog-outline-button:hover { color: #0e2122; background: #8ff9da; }
.catalog-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; margin: 20px 0; }
.catalog-metric { position: relative; padding: 21px 19px; border: 1px solid #695078; border-top: 3px solid #c3a6e8; background: linear-gradient(150deg,#2a1e37,#181424); min-width: 0; box-shadow: 3px 3px #0a0810; }
.catalog-metric::after { content: '◈'; position: absolute; right: 17px; top: 14px; color: #816386; }
.catalog-metric span { display: block; color: #dac5dd; font: 800 .85rem/1.6 system-ui,sans-serif; }
.catalog-metric strong { display: block; margin: 9px 0 6px; color: #ebc98e; font: 900 clamp(2rem,3vw,2.9rem)/1.1 var(--mono); }
.catalog-metric small { color: #b4a3c5; font-size: .78rem; }
.catalog-metric.is-cyan { border-top-color: var(--cyan); }.catalog-metric.is-cyan strong { color: var(--cyan); }
.catalog-metric.is-yellow { border-top-color: #f2c570; }.catalog-metric.is-yellow strong { color: #f2c570; }
.catalog-metric.is-pink { border-top-color: #eb9fb7; }.catalog-metric.is-pink strong { color: #eb9fb7; }
.catalog-workflow-note { display: flex; align-items: center; gap: 15px; padding: 15px 18px; border: 1px solid #68587f; background: #231c31; }
.catalog-workflow-note > span { color: var(--cyan); font: 900 1.5rem var(--mono); }
.catalog-workflow-note p { margin: 0; color: #ddcfe1; font-size: .9rem; }
.catalog-workflow-note a { margin: 0 4px; font-weight: 800; }
.catalog-panel { margin-top: 24px; padding: 0; overflow: hidden; }
.catalog-panel-heading { margin: 0; padding: 23px 24px 18px; border-bottom: 1px solid #694f73; }
.catalog-kicker { margin: 0 0 5px; font: 900 .73rem/1.5 var(--mono); color: var(--cyan); }
.catalog-panel-heading h2 { margin: 0; font-size: 1.28rem; }
.catalog-filter { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 12px; padding: 18px 23px 22px; background: #1c1729; }
.catalog-filter > div { flex: 0 1 172px; }.catalog-filter .catalog-search { flex: 2 1 270px; }
.catalog-filter label { margin: 0 0 6px; font-size: .78rem; color: #c6b4ce; }
.catalog-filter select,.catalog-filter input { min-height: 44px; border-color: #70577b; background: #130f1f; font-size: .87rem; }
.catalog-filter .primary { margin: 0; min-height: 44px; padding: 10px 22px; }
.catalog-clear { padding: 9px; font: 800 .82rem var(--mono); }
.catalog-table-wrap { scrollbar-color: #7d5d85 #160f22; }
.catalog-table { font-size: .85rem; }
.catalog-table th { padding: 13px 13px; background: #241b34; color: #ccbdd4; font-size: .78rem; border-bottom: 1px solid #71587e; }
.catalog-table td { padding: 16px 13px; border-color: #40344f; vertical-align: middle; }
.catalog-table tbody tr:nth-child(even) { background: #181527; }
.catalog-table tbody tr:hover { background: #2b1e38; }
.catalog-prompt-cell { min-width: 245px; max-width: 350px; white-space: normal; }
.catalog-prompt-cell strong { display: block; margin-bottom: 7px; color: #f7eef5; font-size: .91rem; line-height: 1.4; }
.catalog-prompt-cell code { color: #a9a0b5; font-size: .72rem; overflow-wrap: anywhere; }
.catalog-category { display: inline-block; padding: 4px 7px; background: #302741; border: 1px solid #624c7a; color: #dacafa; font-size: .78rem; }
.catalog-version { font: 800 .76rem var(--mono); color: #d5b8fa; }
.catalog-answer-count { font: 900 1rem var(--mono); color: var(--gold); }
.catalog-status { display: inline-block; padding: 4px 7px; border: 1px solid #417b66; background: #173d36; color: #a5f4cb; white-space: nowrap; font-size: .76rem; }
.catalog-status.is-archived { border-color: #8e636b; background: #3a242e; color: #f2b7bb; }
.catalog-status.is-legacy { border-color: #7a748a; background: #302c39; color: #c6bdd4; }
.catalog-flags { min-width: 125px; }.catalog-flag { display: inline-block; margin: 3px 4px 3px 0; padding: 3px 6px; font: 800 .69rem/1.5 var(--mono); color: #b9acc4; border: 1px solid #65546c; }
.catalog-flag.is-live { color: #99ffdc; border-color: #43896f; }.catalog-flag.is-deferred { color: #ffcf8a; border-color: #927444; }.catalog-flag.is-daily { color: #ebaeea; border-color: #8f6193; }
.catalog-row-action { display: inline-block; border-bottom: 1px solid var(--cyan); text-decoration: none; white-space: nowrap; font-weight: 900; }
.catalog-empty { padding: 48px 15px !important; text-align: center; color: #bfb1c8; }
.catalog-empty strong { color: #f8d28d; font-size: 1.1rem; }
.catalog-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 19px 24px; background: #201729; border-top: 1px solid #554063; }
.catalog-pagination p { color: #c6b3ce; margin: 0; font-size: .8rem; }
.catalog-pagination > div { display: flex; gap: 10px; }
.catalog-pagination a,.catalog-page-disabled { display: inline-block; padding: 7px 10px; border: 1px solid #796188; font: 800 .75rem var(--mono); text-decoration: none; }
.catalog-pagination a { background: #30203c; }.catalog-pagination a:hover { background: #493055; }
.catalog-page-disabled { color: #8c7f97; border-color: #40344a; }
.catalog-footnote { margin: 18px 0; color: #afa2bd; font-size: .8rem; }
.catalog-breadcrumb { display: flex; gap: 12px; align-items: center; margin-bottom: 22px; font: 800 .78rem var(--mono); }
.catalog-breadcrumb span,.catalog-breadcrumb code { color: #a99bb6; }
.catalog-detail-hero { position: relative; padding: clamp(23px,4vw,42px); border: 2px solid #ad7c95; background: radial-gradient(circle at 88% 10%,#51324d,#23182f 54%,#161222 90%); box-shadow: 6px 6px #090710; }
.catalog-detail-hero::after { content: '◈'; position: absolute; top: 32px; right: 32px; color: #62466c; font: 900 4.2rem/1 var(--mono); }
.catalog-detail-label { display: flex; justify-content: space-between; gap: 10px; max-width: 88%; color: #efc58d; font: 900 .7rem/1.6 var(--mono); }
.catalog-detail-hero h1 { max-width: 900px; margin: 24px 0 12px; font-size: clamp(1.5rem,3.5vw,2.6rem); }
.catalog-detail-hero > p { max-width: 950px; color: #d8c8db; font-size: 1.01rem; }
.catalog-detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 25px; }
.catalog-detail-tags span { padding: 5px 9px; border: 1px solid #82658c; background: #2f253e; color: #d9c9df; font: 800 .73rem var(--mono); }
.catalog-detail-tags .is-live { color: #98f5cd; border-color: #4b8a77; }.catalog-detail-tags .is-deferred { color: #f2d28c; border-color: #93784f; }
.catalog-detail-grid { display: grid; grid-template-columns: 1.18fr .82fr; gap: 18px; margin-top: 24px; }
.catalog-detail-grid .panel { margin: 0; }
.catalog-meta-panel { padding: 26px; }
.catalog-meta-list { margin: 0; }
.catalog-meta-list > div { display: flex; justify-content: space-between; gap: 17px; padding: 11px 0; border-bottom: 1px solid #4a3b55; }
.catalog-meta-list dt { min-width: 110px; color: #b9a9c3; font-size: .84rem; }
.catalog-meta-list dd { margin: 0; max-width: 72%; overflow-wrap: anywhere; color: #f3e4f0; font-size: .84rem; text-align: right; }
.catalog-meta-list code { font-size: .79rem; }
.catalog-date-list { display: flex; flex-wrap: wrap; gap: 9px; margin: 20px 0; padding: 0; list-style: none; }
.catalog-date-list li { padding: 7px 12px; border: 1px solid #80628b; color: #ebd6ef; font: 900 .81rem var(--mono); }
.catalog-date-list li span { color: var(--cyan); font-size: .7rem; }
.catalog-empty-daily { padding: 19px 0; color: #ad9bb9; font-size: .9rem; }
.catalog-private-action { margin-top: 26px; padding: 18px; border: 1px solid #6f6670; background: #241d30; }
.catalog-private-action strong { color: #efd49b; }.catalog-private-action p { color: #c5b4cd; font-size: .85rem; }
.catalog-secondary-link { display: inline-block; margin: 12px 0 0 14px; font-weight: 800; font-size: .85rem; }
.catalog-answer-panel { margin-top: 22px; padding: 0; overflow: hidden; }
.catalog-answer-panel .panel-heading { padding: 20px 24px; border-bottom: 1px solid #635172; }
.catalog-answer-panel .panel-heading h2 { margin: 0; }
.catalog-answer-heading-count { display: inline-block; margin-left: 7px; color: #eac790; font: 900 1.1rem var(--mono); }
.catalog-answer-panel > p { padding: 0 24px 16px; max-width: none; }
.catalog-answer-table { white-space: normal; }
.catalog-answer-table td { vertical-align: top; }
.catalog-index { color: #a68cb5; font: 800 .78rem var(--mono); }
.catalog-canonical { min-width: 140px; color: #f3e5fa; font-weight: 900; }
.catalog-score { color: var(--cyan); font: 900 .93rem var(--mono); }
.catalog-aliases { min-width: 175px; max-width: 310px; color: #c8bdd3; font-size: .8rem; overflow-wrap: anywhere; }
.catalog-reason { min-width: 220px; color: #d6c9db; font-size: .8rem; }
.catalog-reason span { color: #f2d49f; }
.catalog-tier { display: inline-block; padding: 4px 8px; border: 1px solid #6e647e; color: #bfb2cb; font: 800 .7rem var(--mono); }
.catalog-tier.tier-common { border-color: #6a8b7c; color: #b6e5c9; }.catalog-tier.tier-smart { border-color: #619ab0; color: #a1e5ee; }
.catalog-tier.tier-unusual { border-color: #877fbc; color: #d0beff; }.catalog-tier.tier-rare { border-color: #b77ca9; color: #ffd2fa; }
.catalog-tier.tier-ultra { border-color: #d7a06b; color: #f8cd91; }.catalog-tier.tier-legendary { border-color: #e9c976; color: #ffebac; background: #4a3630; }
@media (max-width: 1200px) { .catalog-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } .catalog-detail-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .catalog-metrics { grid-template-columns: 1fr; } .catalog-heading-actions { align-items: flex-start; } .catalog-detail-label { flex-wrap: wrap; }.catalog-detail-hero::after { opacity: .35; }.catalog-filter > div { flex: 1 1 100%; }.catalog-filter button { flex: 1 1 auto; }.catalog-pagination { padding: 15px; } }

.catalog-draft-button { width: 100%; margin: 9px 0 14px; text-align: center; }
.catalog-locked-note { padding: 10px 12px; border: 1px solid #8d7357; color: #f1d39a; background: #33252b; font-size: .82rem; }


/* Read-only Cloud Daily publication coverage; same 8-bit operator palette. */
.daily-coverage-panel { border-color: #386579; }
.daily-coverage-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 20px 0; }
.daily-coverage-metrics > div { border: 1px solid var(--line); background: #0c182b; padding: 14px; }
.daily-coverage-metrics span { display: block; font-size: .85rem; color: var(--muted); }
.daily-coverage-metrics strong { display: block; font-size: clamp(1.3rem, 2.6vw, 2rem); color: var(--cyan); line-height: 1.25; margin-top: 8px; }
.daily-calendar-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 18px 0; }
.daily-calendar-day { min-width: 0; padding: 12px; border: 1px solid #34475f; background: #0d192c; box-shadow: 3px 3px 0 #060e1a; }
.daily-calendar-date { display: block; color: #c9ddf2; font: 700 .79rem/1.4 ui-monospace, Consolas, monospace; }
.daily-calendar-status { display: block; margin-top: 5px; color: var(--gold); font-size: .98rem; }
.daily-calendar-day a, .daily-calendar-day small { display: block; margin-top: 8px; font-size: .79rem; overflow-wrap: anywhere; }
.daily-calendar-day small { color: var(--muted); }
.daily-calendar-day--published { border-color: #328d7d; background: #102c30; }
.daily-calendar-day--published .daily-calendar-status { color: var(--cyan); }
.daily-calendar-day--candidate { border-color: #e2a952; background: #302719; }
.daily-calendar-day--missing { border-color: #774957; }
.daily-calendar-day--missing .daily-calendar-status { color: #ffa0a5; }
.daily-calendar-day--archived, .daily-calendar-day--draft { border-style: dashed; }
@media (max-width: 960px) { .daily-calendar-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .daily-coverage-metrics { grid-template-columns: 1fr; }
  .daily-calendar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .daily-calendar-day { padding: 10px; }
  .daily-calendar-date { font-size: .75rem; }
}


/* Conservative launch gate: private, read-only, never a publish button. */
.release-readiness-panel { margin-top: 22px; padding: 24px; border-color: #4b677b; background: linear-gradient(145deg, #12253a 0%, #10192d 65%, #171c31 100%); }
.release-readiness-eyebrow { margin: 0 0 6px; color: var(--cyan); font: 900 .69rem/1.3 ui-monospace, Consolas, monospace; letter-spacing: .12em; }
.release-readiness-score { display: flex; align-items: center; gap: 22px; margin: 19px 0 21px; padding: 20px; border: 1px solid #416776; background: #0b192c; }
.release-readiness-score > div { flex: 0 0 auto; padding-right: 24px; border-right: 1px solid #426074; }
.release-readiness-score strong { display: block; color: var(--cyan); font: 900 clamp(1.9rem, 4vw, 3.1rem)/1 ui-monospace, Consolas, monospace; }
.release-readiness-score strong span { color: #8fa5bb; font-size: .48em; }
.release-readiness-score small { display: block; margin-top: 9px; color: #b2c8d9; font-size: .78rem; }
.release-readiness-score p { margin: 0; color: #d6e6f1; font-weight: 700; }
.release-checks-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; }
.release-check { padding: 16px; border: 1px solid #43566b; background: #101a2b; }
.release-check--pass { border-left: 4px solid #60ccb0; }
.release-check--fail { border-left: 4px solid #f0a07b; background: #211b28; }
.release-check-heading { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.release-check-heading strong { font-size: .95rem; }
.release-check-heading span { flex: 0 0 auto; font: 900 .69rem ui-monospace, Consolas, monospace; letter-spacing: .04em; }
.release-check--pass .release-check-heading span { color: #83ecd0; }
.release-check--fail .release-check-heading span { color: #ffb199; }
.release-check > p { margin: 9px 0 0; color: #b9c9d9; font-size: .82rem; }
.release-manual-panel { margin-top: 18px; padding: 18px 20px; border: 1px dashed #9b7c56; background: #261e29; }
.release-manual-panel h3 { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; margin: 0 0 13px; color: #ffdc9d; }
.release-manual-panel h3 span { color: #d2b18a; font: 800 .66rem ui-monospace, Consolas, monospace; letter-spacing: .05em; }
.release-manual-panel ul { margin: 0; padding: 0; list-style: none; }
.release-manual-panel li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #554354; color: #e6d8dd; font-size: .85rem; }
.release-manual-panel li span { flex: 0 0 auto; color: #f4c786; font-size: .75rem; font-weight: 800; }
.release-readiness-footnote { margin: 18px 0 0; padding: 11px 13px; background: #121b30; border-left: 3px solid #688dc3; color: #b7ccde; font-size: .8rem; }
@media (max-width: 740px) {
  .release-readiness-panel { padding: 16px; }
  .release-checks-grid { grid-template-columns: 1fr; }
  .release-readiness-score { align-items: flex-start; flex-direction: column; gap: 12px; }
  .release-readiness-score > div { border-right: 0; padding-right: 0; }
  .release-manual-panel li { flex-direction: column; gap: 4px; }
}
