:root {
  --bg: #050607;
  --panel: #0c1014;
  --panel-2: #111820;
  --line: rgba(212, 168, 67, 0.18);
  --line-strong: rgba(212, 168, 67, 0.36);
  --text: #f8f3ea;
  --muted: rgba(248, 243, 234, 0.66);
  --dim: rgba(248, 243, 234, 0.48);
  --gold: #d4a843;
  --green: #21c07a;
  --amber: #f7b955;
  --red: #ff7b7b;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}
button { font: inherit; }
/* the only accessible way to announce a new tab without adding visible chrome */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
a { color: inherit; }
.cu-shell { min-height: 100vh; display: grid; grid-template-columns: 176px minmax(0, 1fr); }
.cu-sidebar { position: sticky; top: 0; align-self: start; height: 100vh; padding: 18px 14px; box-shadow: inset -1px 0 0 var(--line); background: #080a0d; }
.nav-item { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 42px; padding: 0 10px; color: var(--muted); text-decoration: none; border: 1px solid transparent; border-radius: 8px; }
.nav-item + .nav-item { margin-top: 8px; }
.nav-item span:first-child { display: inline-grid; width: 28px; height: 28px; place-items: center; color: var(--gold); }
.nav-item.active, .nav-item:hover, .nav-item:focus-visible { color: var(--text); border-color: var(--line-strong); background: rgba(212, 168, 67, 0.08); outline: none; }
.cu-main { width: min(1480px, 100%); margin: 0 auto; padding: 28px clamp(18px, 3vw, 34px) 42px; }
.cu-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; align-items: end; margin-bottom: 22px; }
.eyebrow { margin: 0 0 8px; color: var(--gold); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.09em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: 44px; line-height: 1.02; letter-spacing: 0; text-wrap: balance; }
h2 { margin-bottom: 0; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.header-copy { max-width: 780px; margin-bottom: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.header-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.link-button, .copy-button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 13px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, 0.03); color: var(--text); text-decoration: none; cursor: pointer; }
.link-button:hover, .copy-button:hover, .link-button:focus-visible, .copy-button:focus-visible { border-color: var(--line-strong); outline: none; }
.status-strip { display: grid; grid-template-columns: repeat(5, minmax(130px, 1fr)); gap: 10px; margin-bottom: 14px; }
.status-tile, .panel, .proof-panel { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.status-tile { min-height: 84px; padding: 16px; }
.status-tile span { display: block; min-height: 32px; color: var(--text); font-size: 28px; font-weight: 850; line-height: 1; }
.status-tile small, .subtle-count { color: var(--dim); font-size: 12px; }
.status-tile small { display: block; margin-top: 7px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.card-grid, .source-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr); gap: 14px; margin-top: 14px; align-items: start; }
.panel-head { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 13px; border-bottom: 1px solid var(--line); }
.panel-list, .target-list, .engine-list, .partner-list { display: grid; gap: 10px; padding: 12px; }
.panel-item, .target-item, .engine-item, .partner-item { display: grid; gap: 9px; padding: 12px; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 8px; background: #090d12; }
.item-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.item-top strong { display: block; margin-bottom: 5px; }
.item-top small, .panel-item p, .target-item p, .engine-item p, .partner-item p, .proof-panel p { margin: 0; color: var(--muted); line-height: 1.5; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; border: 1px solid rgba(255, 255, 255, 0.11); border-radius: 999px; color: var(--muted); font-size: 12px; }
.chip.good { border-color: rgba(33, 192, 122, 0.34); color: #8de7bc; }
.chip.warn { border-color: rgba(247, 185, 85, 0.34); color: var(--amber); }
.path-list { display: grid; gap: 6px; }
.path-pill { display: block; padding: 8px 10px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 8px; background: #080b0f; color: var(--muted); font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.state-label { align-self: start; min-height: 26px; padding: 5px 8px; border: 1px solid rgba(33, 192, 122, 0.32); border-radius: 8px; color: #8de7bc; font-size: 11px; font-weight: 850; text-transform: uppercase; }
.state-label.blocked { border-color: rgba(255, 123, 123, 0.32); color: #ffb1b1; }
.proof-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; margin-top: 14px; padding: 18px; }
.copy-feedback { min-height: 38px; display: inline-flex; align-items: center; color: var(--green); font-size: 13px; }
.load-error { padding: 18px; border: 1px solid rgba(255, 123, 123, 0.32); border-radius: 8px; color: #ffb1b1; background: rgba(255, 123, 123, 0.08); }
@media (max-width: 1120px) {
  /* minmax(0,1fr), not 1fr: a bare 1fr track keeps min-width:auto, so the sidebar's 132px
     min-width nav items widened the track past the viewport and the page scrolled sideways on
     a phone. min-width:0 is what lets the overflow-x actually fire. */
  .cu-shell { grid-template-columns: minmax(0, 1fr); }
  .cu-sidebar { position: static; height: auto; display: flex; gap: 8px; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; box-shadow: inset 0 -1px 0 var(--line); }
  .nav-item { min-width: 132px; }
  .cu-header, .card-grid, .source-grid, .proof-panel { grid-template-columns: 1fr; }
  .header-actions { justify-content: flex-start; }
  .status-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .cu-main { padding: 20px 12px 34px; }
  h1 { font-size: 32px; }
  .status-strip { grid-template-columns: 1fr; }
  .header-actions { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
