:root {
  --ink: #122c3e;
  --muted: #5f6f78;
  --line: #dce4e8;
  --paper: #f7f8f6;
  --white: #ffffff;
  --green: #167a58;
  --yellow: #775200;
  --red: #b83a32;
  --shadow: 0 18px 45px rgba(18, 44, 62, .08);
  --focus: #1b66d1;
  --surface-soft: #eef3f5;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Open Sans", Arial, sans-serif; color: var(--ink); background: var(--paper); line-height: 1.55; }
.sr-only, .skip { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip:focus { width: auto; height: auto; clip: auto; white-space: normal; left: 1rem; top: 1rem; margin: 0; background: var(--white); color: var(--ink); padding: .75rem; z-index: 30; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.topbar, .level-nav { position: relative; z-index: 10; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 1.25rem clamp(1rem, 5vw, 5rem); background: var(--white); border-bottom: 1px solid var(--line); }
.topbar h1 { margin: 0; font-size: clamp(1.2rem, 2vw, 1.65rem); }
.topbar-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .65rem; }
.eyebrow { margin: 0 0 .35rem; text-transform: uppercase; letter-spacing: .13em; font-size: .72rem; font-weight: 700; color: var(--muted); }
.rule { font-size: .75rem; font-weight: 700; letter-spacing: .08em; padding: .65rem .85rem; border: 1px solid var(--ink); border-radius: 999px; }
.icon-button, .filter-button { border: 1px solid var(--line); border-radius: 999px; padding: .62rem .85rem; background: var(--white); color: var(--ink); font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; }
.icon-button:hover, .filter-button:hover, .filter-button.active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.level-nav { position: sticky; top: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: color-mix(in srgb, var(--white) 94%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.level-nav a { display: flex; justify-content: center; gap: .55rem; padding: .78rem 1rem; color: var(--ink); text-decoration: none; font-size: .78rem; font-weight: 700; border-right: 1px solid var(--line); }
.level-nav a:last-child { border-right: 0; }
.level-nav a:hover { background: var(--surface-soft); }
.level-nav span { color: var(--muted); font-variant-numeric: tabular-nums; }
main { width: min(1440px, 100%); margin: 0 auto; padding: clamp(1rem, 4vw, 4rem); }
section { margin-bottom: clamp(3rem, 7vw, 7rem); }
.hero { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(230px, .7fr); gap: 2rem; align-items: stretch; }
.hero > div:first-child, .score-card { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.5rem, 4vw, 4rem); box-shadow: var(--shadow); }
.hero h2 { margin: .3rem 0 1rem; max-width: 16ch; font-size: clamp(2rem, 5vw, 4.9rem); line-height: .98; letter-spacing: -.045em; }
.hero p:not(.eyebrow) { max-width: 62ch; color: var(--muted); font-size: 1.05rem; }
.score-card { display: flex; flex-direction: column; justify-content: flex-end; }
.score-card strong { display: block; font-size: clamp(4rem, 10vw, 8rem); line-height: 1; letter-spacing: -.07em; }
.score-card small { color: var(--muted); }
.signal-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 1px; margin: 1.25rem 0 clamp(3rem, 7vw, 7rem); overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--line); box-shadow: var(--shadow); }
.signal-strip article { min-width: 0; padding: 1rem 1.25rem; background: var(--white); }
.signal-strip span { display: block; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.signal-strip strong { display: block; margin-top: .2rem; overflow-wrap: anywhere; font-size: clamp(1rem, 2vw, 1.35rem); }
.section-head { display: flex; justify-content: space-between; gap: 2rem; align-items: end; margin-bottom: 1.2rem; }
.section-head h2 { margin: 0; font-size: clamp(1.7rem, 3.5vw, 3rem); }
.counts { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 1rem; }
.filter-bar > span { margin-right: .25rem; color: var(--muted); font-size: .78rem; font-weight: 700; }
.pill, .status { display: inline-flex; align-items: center; gap: .35rem; border-radius: 999px; padding: .35rem .65rem; font-size: .75rem; font-weight: 700; border: 1px solid currentColor; }
.green { color: var(--green); } .yellow { color: var(--yellow); } .red { color: var(--red); }
.evidence-grid, .brand-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1rem; }
.profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 1rem; }
.evidence-card, .brand-card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem; }
.evidence-card[hidden] { display: none; }
.profile-card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem; }
.profile-card h3 { margin: .7rem 0 .35rem; }
.profile-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.profile-card .handles { margin-top: .85rem; font-weight: 700; color: var(--ink); }
.profile-card .profile-cta { margin-top: .9rem; color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }
.channel-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .8rem; }
.channel-tag { border: 1px solid var(--line); border-radius: 999px; padding: .25rem .5rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.section-copy { max-width: 74ch; color: var(--muted); margin: -0.4rem 0 1.2rem; }
.evidence-card { border-left: 5px solid currentColor; }
.evidence-card h3, .brand-card h3 { margin: .5rem 0; font-size: 1.05rem; }
.evidence-card p, .brand-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.evidence-card .evidence-meta { margin-top: .8rem; padding-top: .7rem; border-top: 1px solid var(--line); font-size: .72rem; font-weight: 700; letter-spacing: .03em; }
.brand-card .role { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--muted); }
.brand-card ul { margin: 1rem 0; padding-left: 1.1rem; color: var(--muted); font-size: .88rem; }
.brand-card .cta { font-weight: 700; color: var(--ink); }
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: 18px; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
caption { padding: .85rem 1rem; color: var(--muted); text-align: left; font-size: .8rem; border-bottom: 1px solid var(--line); }
th, td { text-align: left; padding: .95rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
tbody tr:last-child td { border-bottom: 0; }
.queue { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.queue li { display: grid; grid-template-columns: 56px minmax(140px, .45fr) 1fr; gap: 1rem; align-items: start; padding: 1rem 1.2rem; background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow-wrap: anywhere; }
.priority { font-weight: 800; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding: 2rem clamp(1rem, 5vw, 5rem); border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
footer strong { color: var(--ink); }

html[data-theme="dark"] {
  --ink: #eef5f7;
  --muted: #aebdc5;
  --line: #334953;
  --paper: #0b1720;
  --white: #10232e;
  --surface-soft: #18313d;
  --green: #65d6a9;
  --yellow: #ffd16b;
  --red: #ff8c83;
  --focus: #7bb4ff;
  --shadow: 0 18px 45px rgba(0, 0, 0, .28);
}

@media (max-width: 760px) {
  .topbar, .section-head { align-items: flex-start; flex-direction: column; }
  .topbar-actions { justify-content: flex-start; }
  .level-nav { grid-template-columns: repeat(2, 1fr); }
  .level-nav a:nth-child(2) { border-right: 0; }
  .level-nav a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .hero, .signal-strip { grid-template-columns: 1fr; }
  .queue li { grid-template-columns: 45px 1fr; }
  .queue li span:last-child { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
