:root {
  --ink: #07111d;
  --ink-2: #101d2d;
  --paper: #f4f6f1;
  --paper-2: #e9eee7;
  --line: rgba(9, 25, 40, 0.14);
  --muted: #65717c;
  --cyan: #62e8d2;
  --cyan-deep: #0cae9c;
  --acid: #d9fb65;
  --amber: #ffb64c;
  --red: #ff6f73;
  --white: #fff;
  --radius: 18px;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Georgia", "Times New Roman", "Crimson Pro", "Libre Baskerville", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
.skip-link { position: fixed; left: 16px; top: 10px; z-index: 100; padding: 9px 12px; border: 1px solid var(--ink); background: var(--white); color: var(--ink); font-weight: 750; transform: translateY(-180%); transition: transform .15s ease; }
.skip-link:focus { transform: translateY(0); }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.mono { font-family: var(--mono); }
.ambient { position: fixed; z-index: -2; border-radius: 50%; filter: blur(120px); opacity: 0.25; pointer-events: none; }
.ambient-one { width: 450px; height: 450px; background: var(--cyan); right: -220px; top: 80px; }
.ambient-two { width: 380px; height: 380px; background: var(--acid); left: -260px; top: 780px; }

.site-header {
  width: min(1260px, calc(100% - 40px));
  margin: 18px auto 0;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 16px;
  background: rgba(244,246,241,0.78);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 12px;
  z-index: 20;
  box-shadow: 0 14px 44px rgba(11, 30, 47, 0.07);
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-size: 20px; font-weight: 760; letter-spacing: -0.03em; }
.brand > span:last-child > span { color: var(--cyan-deep); }
.brand.small { font-size: 17px; }
.brand-mark { width: 30px; height: 30px; border: 1px solid var(--ink); border-radius: 50%; display: inline-block; position: relative; transform: rotate(-18deg); }
.brand-mark::after { content: ""; position: absolute; width: 38px; height: 13px; border: 1px solid var(--ink); border-radius: 50%; left: -5px; top: 7px; }
.brand-mark i { width: 5px; height: 5px; position: absolute; border-radius: 50%; background: var(--cyan-deep); z-index: 2; }
.brand-mark i:nth-child(1) { left: 2px; top: 11px; }.brand-mark i:nth-child(2) { right: 3px; top: 4px; }.brand-mark i:nth-child(3) { right: 4px; bottom: 2px; }
nav { display: flex; align-items: center; gap: 28px; }
nav a { font-size: 13px; font-weight: 650; text-decoration: none; color: #34414d; }
nav a:hover { color: var(--cyan-deep); }
.nav-cta { color: var(--paper) !important; background: var(--ink); border-radius: 9px; padding: 10px 16px; }

.hero { min-height: 690px; display: grid; grid-template-columns: 1.18fr 0.82fr; gap: 70px; align-items: center; padding-block: 76px 56px; }
.eyebrow, .kicker { text-transform: uppercase; letter-spacing: 0.15em; font-size: 11px; font-weight: 780; color: var(--cyan-deep); }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan-deep); margin-right: 9px; box-shadow: 0 0 0 5px rgba(12,174,156,.1); }
h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.12; letter-spacing: -0.03em; color: var(--ink); margin: 0; }
h1 { font-size: clamp(57px, 7.3vw, 102px); line-height: 0.91; letter-spacing: -0.065em; margin: 26px 0; font-weight: 720; }
h1 em { color: transparent; -webkit-text-stroke: 1.5px var(--cyan-deep); font-style: normal; }
.hero-lede { color: #40505d; font-size: clamp(18px, 2vw, 22px); max-width: 650px; line-height: 1.55; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.button { min-height: 48px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--ink); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 22px; font-size: 13px; font-weight: 750; }
.button.primary { background: var(--ink); color: var(--paper); }
.button.primary:hover { background: var(--cyan-deep); border-color: var(--cyan-deep); }
.button.secondary { background: transparent; }
.button.secondary:hover { background: var(--white); }
.button:disabled { opacity: .42; cursor: not-allowed; }
.hero-note { color: var(--muted); font-size: 12px; margin-top: 16px; }

.hero-instrument { background: var(--ink); border-radius: 28px; padding: 24px; color: var(--paper); min-height: 480px; box-shadow: 0 34px 90px rgba(3,16,28,.22); position: relative; overflow: hidden; }
.hero-instrument::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(98,232,210,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(98,232,210,.06) 1px, transparent 1px); background-size: 30px 30px; mask-image: linear-gradient(to bottom, black, transparent 80%); }
.instrument-head, .instrument-scale { display: flex; justify-content: space-between; position: relative; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.instrument-head .mono { color: var(--acid); }
.instrument-scale { color: #8393a2; }
.score-orbit { height: 360px; display: grid; place-items: center; position: relative; }
.orbit { position: absolute; border: 1px solid rgba(98,232,210,.35); border-radius: 50%; }
.orbit-one { width: 270px; height: 270px; transform: rotate(30deg) skewX(-20deg); }
.orbit-two { width: 330px; height: 155px; transform: rotate(-30deg); }
.score-core { position: relative; z-index: 2; width: 160px; height: 160px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(circle at 35% 30%, #1f4850, #0b1d28 70%); box-shadow: 0 0 70px rgba(98,232,210,.18); }
.score-core strong { font: 700 57px/1 var(--mono); color: var(--cyan); letter-spacing: -.08em; }
.score-core span { font-size: 10px; text-transform: uppercase; margin-top: 9px; color: #9eb1ba; }
.electron { position: absolute; width: 11px; height: 11px; background: var(--acid); border-radius: 50%; box-shadow: 0 0 17px var(--acid); }
.e1 { left: 12%; top: 47%; }.e2 { right: 15%; top: 27%; }.e3 { right: 22%; bottom: 18%; background: var(--cyan); box-shadow: 0 0 17px var(--cyan); }

.trust-strip { background: var(--paper-2); border-block: 1px solid var(--line); }
.trust-inner { min-height: 62px; display: flex; align-items: center; gap: 16px; }
.trust-inner p { flex: 1; font-size: 13px; color: #4c5b66; }
.trust-inner a { font-size: 12px; font-weight: 750; }
.trust-badge { border-radius: 100px; padding: 6px 10px; background: rgba(255,182,76,.18); color: #945b06; text-transform: uppercase; font-size: 10px; letter-spacing: .1em; font-weight: 800; }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); margin-top: 52px; background: rgba(255,255,255,.42); }
.metrics article { padding: 23px 26px; border-right: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 5px; }
.metrics article:last-child { border: 0; }
.metrics span, .metrics small { color: var(--muted); font-size: 11px; }.metrics strong { font: 600 34px/1 var(--mono); grid-row: 1 / 3; grid-column: 2; align-self: center; color: var(--cyan-deep); }.metrics small { opacity: .8; }

.section { padding-block: 112px; }
.section-heading { display: grid; grid-template-columns: 1fr minmax(280px, 440px); align-items: end; gap: 60px; margin-bottom: 44px; }
.section-heading h2 { font-size: clamp(36px, 4.5vw, 58px); line-height: 1.02; letter-spacing: -.045em; margin: 10px 0 0; }
.section-heading p { color: var(--muted); margin: 0; font-size: 15px; }
.section-heading.inverse h2 { color: var(--paper); }.section-heading.inverse p { color: #9cacb8; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter-row button { border: 1px solid var(--line); border-radius: 100px; padding: 8px 13px; background: transparent; color: #56636d; font-size: 11px; text-transform: capitalize; }
.filter-row button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.challenge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.challenge-card { border: 1px solid var(--line); background: rgba(255,255,255,.55); border-radius: var(--radius); padding: 24px; min-height: 290px; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.challenge-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(11,30,47,.09); }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.domain-pill { font-size: 10px; text-transform: uppercase; letter-spacing: .11em; color: var(--cyan-deep); font-weight: 800; }
.status-pill { font: 10px var(--mono); background: var(--paper-2); padding: 4px 8px; border-radius: 20px; }
.challenge-card h3 { font-size: 23px; letter-spacing: -.035em; line-height: 1.12; margin: 34px 0 13px; }
.challenge-card p { font-size: 13px; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.challenge-research { margin: 17px 0; padding: 12px; border: 1px solid rgba(12,174,156,.16); border-radius: 10px; background: rgba(12,174,156,.045); }
.challenge-research p { margin-top: 7px; font-size: 10px; line-height: 1.5; -webkit-line-clamp: 3; }
.research-signal { display: inline-flex; border-radius: 100px; padding: 3px 7px; color: #237064; background: rgba(12,174,156,.1); font-size: 8px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.research-signal.confirmed_existing { color: #5b648a; background: rgba(91,108,212,.1); }
.card-foot { margin-top: auto; padding-top: 23px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); font-size: 10px; color: var(--muted); }
.card-foot strong { color: var(--ink); font-family: var(--mono); }

.leaderboard-section, .method-section { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.leaderboard-section::after, .method-section::after { content: ""; width: 430px; height: 430px; position: absolute; right: -180px; top: -220px; border: 1px solid rgba(98,232,210,.15); border-radius: 50%; box-shadow: 0 0 0 70px rgba(98,232,210,.025), 0 0 0 140px rgba(98,232,210,.018); }
.leaderboard-controls { display: flex; justify-content: space-between; align-items: end; margin-bottom: 18px; position: relative; z-index: 1; }
label { display: grid; gap: 8px; font-size: 11px; font-weight: 750; color: inherit; }
select, input { min-height: 43px; border-radius: 8px; border: 1px solid rgba(120,140,153,.35); padding: 0 12px; background: #fff; color: var(--ink); min-width: 250px; }
.leaderboard-controls select { background: #142538; color: var(--paper); border-color: #34495a; }
.legend { display: flex; gap: 20px; font-size: 11px; color: #93a4b1; }
.legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; }.legend .verified { background: var(--cyan); }.legend .pending { background: var(--amber); }
.table-wrap { overflow-x: auto; border: 1px solid rgba(159,183,198,.16); border-radius: 14px; position: relative; z-index: 1; }
table { width: 100%; border-collapse: collapse; min-width: 820px; }
th { color: #8094a3; text-transform: uppercase; font-size: 9px; letter-spacing: .12em; text-align: left; padding: 15px 18px; background: rgba(255,255,255,.025); }
td { padding: 20px 18px; border-top: 1px solid rgba(159,183,198,.12); font-size: 13px; }
td.score { color: var(--cyan); font: 700 23px var(--mono); }
td.subtle { color: #8ea0ad; }.rank { color: var(--acid); font: 13px var(--mono); }
.solver-cell { display: grid; gap: 4px; }.solver-cell small { color: #8ea0ad; font: 10px var(--mono); }
.verification-cell { display: inline-flex; align-items: center; gap: 7px; color: #a7b8c2; }.verification-cell::before { content: "✓"; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; background: rgba(98,232,210,.12); color: var(--cyan); font-size: 10px; }
.table-caveat { color: #7d919e; font-size: 11px; }

.lab-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(350px, .8fr); gap: 15px; align-items: start; }
.viewer-card, .receipt-card { background: #091523; border-radius: var(--radius); color: var(--paper); overflow: hidden; }
.viewer-card { position: sticky; top: 96px; }
.viewer-toolbar { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid rgba(159,183,198,.14); }
.viewer-toolbar label { display: flex; align-items: center; gap: 10px; color: #90a1ae; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }.viewer-toolbar select { min-width: 230px; min-height: 36px; background: #132538; color: var(--paper); border-color: #294156; max-width: 360px; }
.frame-controls { display: flex; align-items: center; gap: 10px; }.frame-controls button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #344a5c; color: var(--paper); background: transparent; }.frame-controls span { min-width: 135px; text-align: center; color: #b4c2cb; font-size: 11px; }
.canvas-wrap { height: 480px; position: relative; background: radial-gradient(circle at 50% 45%, rgba(30,92,94,.32), transparent 47%), linear-gradient(135deg, #07101c, #0b1d29); }
#molecule-canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.canvas-hint { position: absolute; left: 18px; bottom: 15px; color: #637b8a; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; pointer-events: none; }
.webgl-fallback { position: absolute; inset: 0; padding: 40px; display: grid; place-items: center; color: var(--amber); text-align: center; }.webgl-fallback[hidden] { display: none; }
.receipt-card { padding: 25px; background: #0e1d2b; }
.receipt-status { display: flex; gap: 12px; align-items: center; padding-bottom: 22px; border-bottom: 1px solid rgba(159,183,198,.14); }.seal { width: 37px; height: 37px; border-radius: 50%; display: grid; place-items: center; color: var(--cyan); background: rgba(98,232,210,.1); border: 1px solid rgba(98,232,210,.25); }.receipt-status div { display: grid; }.receipt-status small { color: #778b9a; }.receipt-status strong { font-size: 13px; }
.receipt-card h3 { font-size: 28px; line-height: 1.08; letter-spacing: -.035em; margin: 27px 0 11px; }.receipt-card > p { color: #90a3af; font-size: 12px; }
.evidence-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 18px 0 6px; }
.evidence-strip > div { min-width: 0; padding: 9px; border: 1px solid rgba(98,232,210,.14); border-radius: 8px; background: rgba(98,232,210,.045); display: grid; gap: 3px; }
.evidence-strip strong { color: #d8e4e8; font-size: 9px; line-height: 1.35; text-transform: capitalize; }
.evidence-label { color: #6f8795; font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.evidence-strip > p { grid-column: 1 / -1; margin: 1px 0 0; color: #91a5b1; font-size: 10px; line-height: 1.5; }
.check-list { display: grid; gap: 8px; margin: 24px 0; }.check { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(159,183,198,.11); font-size: 11px; }.check span:last-child { font-family: var(--mono); }.check .pass { color: var(--cyan); }.check .not-claimed { color: var(--amber); }.check .fixture-only { color: #a7b5ff; }
.audit-panel-list { display: grid; gap: 8px; margin: 20px 0; }
.audit-panel { padding: 13px; border: 1px solid rgba(159,183,198,.13); border-radius: 10px; background: rgba(255,255,255,.025); }
.audit-panel-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.audit-panel h4 { margin: 0; color: #e6eeee; font-size: 12px; }
.audit-panel-head span { flex: 0 0 auto; border-radius: 100px; padding: 3px 6px; color: var(--amber); background: rgba(255,182,76,.09); font: 8px var(--mono); text-transform: uppercase; }
.audit-panel-head span.fixture-verified { color: var(--cyan); background: rgba(98,232,210,.08); }
.audit-panel > p { margin: 7px 0 10px; color: #8297a4; font-size: 9px; line-height: 1.5; }
.audit-metrics { display: grid; gap: 5px; margin: 0; }
.audit-metrics div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding-top: 5px; border-top: 1px solid rgba(159,183,198,.08); }
.audit-metrics dt { color: #738996; font-size: 8px; }.audit-metrics dd { margin: 0; text-align: right; color: #b9c7ce; font: 8px var(--mono); }
.audit-metrics dd.pass { color: var(--cyan); }.audit-metrics dd.fixture-only { color: #a7b5ff; }.audit-metrics dd.not-claimed { color: var(--amber); }
.semantic-view, .research-route { margin: 10px 0; border: 1px solid rgba(159,183,198,.13); border-radius: 10px; background: rgba(2,11,19,.24); overflow: hidden; }
.semantic-view summary, .research-route summary { min-height: 42px; padding: 11px 12px; cursor: pointer; color: #c9d6dc; font-size: 10px; font-weight: 750; list-style-position: inside; }
.semantic-view summary span, .research-route summary span { float: right; color: #6f8795; font: 8px var(--mono); text-transform: uppercase; }
.semantic-view > p { margin: 0; padding: 0 12px 9px; color: #91a5b1; font-size: 9px; line-height: 1.55; }
.semantic-view ul { margin: 0; padding: 0 28px 13px; color: #c2d0d6; font-size: 9px; line-height: 1.55; }
.research-route dl { margin: 0; padding: 0 12px 13px; display: grid; gap: 9px; }
.research-route dl div { display: grid; gap: 3px; }
.research-route dt { color: #6f8795; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.research-route dd { margin: 0; color: #b5c4cb; font-size: 9px; line-height: 1.5; }
.digest-list { margin: 0; display: grid; gap: 11px; }.digest-list div { background: rgba(255,255,255,.035); padding: 10px; border-radius: 8px; }.digest-list dt { color: #6e8392; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }.digest-list dd { margin: 5px 0 0; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.flow { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); padding: 0; margin: 70px 0 0; position: relative; }
.flow::before { content: ""; position: absolute; height: 1px; background: rgba(98,232,210,.22); left: 7%; right: 7%; top: 22px; }
.flow li { position: relative; text-align: center; padding-inline: 11px; }.flow li > span { width: 44px; height: 44px; margin: 0 auto 22px; border-radius: 50%; background: #102434; border: 1px solid rgba(98,232,210,.38); display: grid; place-items: center; color: var(--cyan); font: 12px var(--mono); position: relative; z-index: 1; }.flow strong { font-size: 13px; }.flow p { font-size: 11px; color: #8397a5; }

.contribute-section { padding-bottom: 100px; }
.contribute-grid { display: grid; grid-template-columns: minmax(260px,.62fr) minmax(0,1.38fr); gap: 15px; align-items: start; }
.submission-form, .queue-card { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.55); padding: 19px; }
.submission-form { display: grid; align-content: start; gap: 12px; }.submission-form label { color: #4d5c67; }.submission-form select, .submission-form input { width: 100%; min-width: 0; }.contribution-access-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }.contribution-access-head .kicker { color: var(--cyan-deep); font-size: 8px; }.contribution-access-head h3 { margin: 0; font-size: 14px; letter-spacing: -.02em; }.form-state { font-size: 10px; line-height: 1.4; color: #8a5b13; background: rgba(255,182,76,.13); border: 1px solid rgba(255,182,76,.27); border-radius: 8px; padding: 8px 10px; }
.contributor-auth { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; border: 1px solid rgba(17,151,143,.24); border-radius: 10px; background: rgba(98,232,210,.08); padding: 11px; }.contributor-auth > div { display: grid; gap: 3px; min-width: 0; }.contributor-auth strong { font-size: 10px; }.contributor-auth span { color: var(--muted); font-size: 9px; overflow-wrap: anywhere; }.button.github { min-height: 36px; padding: 0 12px; background: #111827; color: #fff; font-size: 10px; }.contributor-auth .button.secondary { min-height: 36px; padding: 0 12px; font-size: 10px; }
.contributor-auth [hidden] { display: none !important; }
.file-drop { border: 1px dashed #a7b1b5; min-height: 80px; border-radius: 10px; display: grid; place-items: center; position: relative; }.file-drop input { opacity: 0; position: absolute; inset: 0; height: 100%; cursor: pointer; }.file-drop span { color: var(--cyan-deep); }
#submission-message { min-height: 20px; margin: 0; font-size: 12px; color: var(--muted); }
.cli-submit-note { padding-top: 2px; }.cli-submit-note strong { font-size: 11px; }.cli-submit-note p, .cli-submit-hint { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }.cli-submit-command { min-height: 0; max-height: 165px; font-size: 9px; }.queue-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }.queue-head h3 { margin: 3px 0 0; font-size: 18px; letter-spacing: -.025em; }.queue-head .kicker { color: var(--cyan-deep); font-size: 8px; }.queue-head > span { color: var(--muted); font-size: 8px; text-align: right; text-transform: uppercase; letter-spacing: .1em; }
.submission-list { display: grid; }.submission-row { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(120px,.72fr) minmax(150px,.68fr); gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }.submission-row:last-child { border: 0; }.submission-row strong { font-size: 11px; display: block; overflow-wrap: anywhere; }.submission-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.35; overflow-wrap: anywhere; }.submission-row .github-attribution { color: #3f6d65; font-weight: 750; }.submission-row .model-attribution { max-width: 100%; }.submission-empty { margin: 14px 0 4px; color: var(--muted); font-size: 10px; }.submission-history-toggle { width: 100%; margin-top: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: #f3f6f1; color: #38645d; font-size: 10px; font-weight: 800; text-align: left; }.submission-history-toggle:hover { background: #e9f3ef; }.job-state { justify-self: end; max-width: 100%; border-radius: 30px; padding: 5px 9px; overflow-wrap: anywhere; font: 9px/1.25 var(--mono); }.job-state.success { background: rgba(12,174,156,.13); color: #078f80; }.job-state.active { background: rgba(96,112,255,.12); color: #5364d4; }.job-state.neutral { background: var(--paper-2); color: #65717c; }.job-state.danger { background: rgba(255,111,115,.12); color: #c14850; }.job-score { justify-self: end; max-width: 100%; color: var(--cyan-deep); font: 700 15px/1.25 var(--mono); text-align: right; overflow-wrap: anywhere; }.job-score.promoted { color: #067e70; text-shadow: 0 0 16px rgba(12,174,156,.18); }

footer { background: #050d16; color: #91a0aa; border-top: 1px solid #172536; }.footer-inner { height: 110px; display: flex; align-items: center; gap: 28px; }.footer-inner p { flex: 1; font-size: 11px; }.footer-inner a { color: var(--cyan); font-size: 12px; }.footer-inner .brand-mark, .footer-inner .brand-mark::after { border-color: #90a1ae; }

@media (max-width: 960px) {
  nav a:not(.nav-cta) { display: none; }
  .hero { grid-template-columns: 1fr; gap: 25px; }.hero-instrument { min-height: 430px; }.hero { padding-top: 90px; }
  .challenge-grid { grid-template-columns: repeat(2,1fr); }
  .lab-grid, .contribute-grid { grid-template-columns: 1fr; }.viewer-card { position: static; }
  .metrics { grid-template-columns: repeat(2,1fr); }.metrics article:nth-child(2) { border-right: 0; }.metrics article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .flow { grid-template-columns: 1fr; gap: 15px; }.flow::before { display: none; }.flow li { text-align: left; display: grid; grid-template-columns: 50px 1fr; }.flow li > span { margin: 0; grid-row: 1 / 3; }
}
@media (max-width: 660px) {
  .shell, .site-header { width: min(100% - 24px, 1180px); }.site-header { padding: 0 14px; }.brand { font-size: 17px; }.nav-cta { padding: 9px 12px; }
  .hero { min-height: auto; padding-block: 85px 42px; }.hero-instrument { min-height: 380px; }.score-orbit { height: 290px; }.orbit-one { width: 225px; height: 225px; }.orbit-two { width: 270px; }
  .trust-inner { align-items: flex-start; padding-block: 15px; flex-wrap: wrap; }.trust-inner p { order: 3; flex-basis: 100%; margin: 0; }
  .metrics { grid-template-columns: 1fr; }.metrics article { border-right: 0; border-bottom: 1px solid var(--line) !important; }.metrics article:last-child { border-bottom: 0 !important; }
  .section { padding-block: 80px; }.section-heading { grid-template-columns: 1fr; gap: 20px; }.challenge-grid { grid-template-columns: 1fr; }
  .leaderboard-controls { align-items: stretch; flex-direction: column; gap: 18px; }.leaderboard-controls select { width: 100%; }.legend { flex-wrap: wrap; }
  .viewer-toolbar { height: auto; padding-block: 12px; align-items: stretch; flex-direction: column; gap: 12px; }.viewer-toolbar label { display: grid; }.viewer-toolbar select { max-width: none; width: 100%; }.canvas-wrap { height: 390px; }
  .submission-row { grid-template-columns: minmax(0,1fr) minmax(118px,.7fr); gap: 10px; }.submission-row > div:nth-child(2) { display: none; }.job-state, .job-score { grid-column: 2; grid-row: 1; }
  .footer-inner { flex-wrap: wrap; height: auto; padding-block: 28px; }.footer-inner p { order: 3; flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Instrument-system refinements: high-contrast data surfaces and predictable controls. */
:root { --radius-sm: 10px; --shadow-soft: 0 18px 48px rgba(8, 22, 35, .09); --shadow-deep: 0 34px 90px rgba(3, 16, 28, .24); }
*::selection { background: rgba(12, 174, 156, .23); color: var(--ink); }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(12, 174, 156, .65); outline-offset: 3px; }
summary:focus-visible { outline: 3px solid rgba(12,174,156,.65); outline-offset: -3px; }
nav a { font-size: 12px; font-weight: 720; letter-spacing: .01em; }
.section, .access-panel, .agent-panel { scroll-margin-top: 108px; }
.mobile-access { display: none; }
.hero-note { display: flex; gap: 7px; align-items: baseline; }.hero-note span { color: var(--cyan-deep); }
.hero-instrument { border: 1px solid rgba(98,232,210,.18); box-shadow: var(--shadow-deep); }
.challenge-card { min-height: 365px; background: rgba(255,255,255,.62); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.challenge-card:hover { border-color: rgba(12,174,156,.42); box-shadow: var(--shadow-soft); }
.challenge-open { width: 100%; border: 0; padding: 15px 0 0; margin-top: 3px; background: transparent; display: flex; justify-content: space-between; color: var(--cyan-deep); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; text-align: left; }
.challenge-open span { transition: transform .2s ease; font-size: 16px; line-height: .75; }.challenge-open:hover span { transform: translateX(4px); }
.table-wrap { box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.viewer-card, .receipt-card { border: 1px solid rgba(137,170,185,.16); }
.submission-form, .queue-card { background: rgba(255,255,255,.62); }

.agent-panel { margin-top: 42px; padding: 24px; border-radius: 18px; color: var(--paper); background: #071522; border: 1px solid #173044; position: relative; overflow: hidden; box-shadow: var(--shadow-deep); }
.agent-panel::before { content: ""; width: 310px; height: 310px; position: absolute; right: -210px; top: -215px; border: 1px solid rgba(98,232,210,.16); border-radius: 50%; box-shadow: 0 0 0 42px rgba(98,232,210,.025); pointer-events: none; }
.agent-panel-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 400px); gap: 32px; align-items: end; position: relative; z-index: 1; margin-bottom: 18px; }
.agent-panel-heading h3 { max-width: 720px; margin: 7px 0 0; font-size: clamp(24px, 3vw, 36px); line-height: 1.04; letter-spacing: -.04em; }
.agent-panel-heading p { margin: 0; color: #9badb9; font-size: 11px; line-height: 1.55; }
.agent-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 14px; position: relative; z-index: 1; }
.credential-card, .agent-quickstart { border: 1px solid rgba(154,184,200,.18); border-radius: 13px; background: rgba(15,34,49,.86); padding: 17px; min-width: 0; }
.agent-card-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.agent-card-head > div { display: flex; gap: 11px; align-items: baseline; }
.agent-index { color: var(--cyan); font: 10px var(--mono); }
.agent-card-head h4 { margin: 0; font-size: 17px; letter-spacing: -.025em; }
.credential-state, .machine-readable { flex: 0 0 auto; border-radius: 100px; padding: 5px 8px; background: rgba(255,182,76,.12); color: #f1bc6f; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.credential-state.ready, .machine-readable { color: var(--cyan); background: rgba(98,232,210,.1); }
.credential-boundary { color: #91a4b1; font-size: 10px; line-height: 1.5; margin: 12px 0; }
.token-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.token-form label { color: #b7c6cf; }
.token-form input { min-width: 0; width: 100%; background: #0a1b29; border-color: #2a4558; color: var(--paper); }
.token-form .button { min-height: 39px; white-space: nowrap; }
.token-form .button:disabled { opacity: .45; cursor: not-allowed; }
.token-reveal { margin-top: 10px; padding: 11px; border: 1px solid rgba(255,182,76,.34); border-radius: 9px; background: rgba(255,182,76,.08); }
.token-reveal[hidden] { display: none; }
.token-reveal > div:first-child { display: grid; gap: 3px; }
.token-reveal strong { color: #ffd08c; font-size: 12px; }
.token-reveal span { color: #b7a684; font-size: 10px; }
.token-copy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; margin-top: 9px; }
.token-copy-row input { width: 100%; min-width: 0; color: var(--cyan); background: #06111d; border-color: #334a59; font: 10px var(--mono); }
.token-copy-row .button { min-height: 39px; padding-inline: 12px; }
.token-clear { min-height: 36px; border: 0; background: transparent; color: #a9bac4; font-size: 10px; }
.token-message { min-height: 18px; margin: 10px 0 0; color: #a9bac4; font-size: 10px; }
.token-list-head { display: flex; justify-content: space-between; gap: 18px; align-items: baseline; margin-top: 12px; padding-top: 11px; border-top: 1px solid rgba(154,184,200,.14); }
.token-list-head strong { font-size: 11px; }
.token-list-head span { color: #728895; font-size: 9px; }
.token-list { display: grid; margin-top: 4px; }
.token-empty { color: #718795; font-size: 10px; padding: 15px 0 2px; }
.token-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid rgba(154,184,200,.11); }
.token-row:first-child { border-top: 0; }
.token-row > div { display: grid; gap: 4px; min-width: 0; }
.token-row strong { font-size: 11px; }
.token-row small { color: #758b99; font: 9px var(--mono); overflow-wrap: anywhere; }
.token-revoke { min-height: 36px; border: 1px solid rgba(255,111,115,.3); border-radius: 8px; background: rgba(255,111,115,.07); color: #f38e93; padding: 8px 10px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.agent-steps { list-style: none; padding: 0; margin: 13px 0; display: grid; gap: 10px; }
.agent-steps li { display: grid; grid-template-columns: 27px 1fr; gap: 10px; }
.agent-steps li > span { width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(98,232,210,.32); color: var(--cyan); font: 9px var(--mono); }
.agent-steps strong { font-size: 11px; }
.agent-steps p { margin: 3px 0 0; color: #8297a4; font-size: 10px; line-height: 1.45; }
.agent-command { min-height: 0; max-height: 170px; margin: 0; padding: 13px; border: 1px solid rgba(98,232,210,.18); border-radius: 9px; background: #030c15; color: #bdeee6; white-space: pre-wrap; overflow-wrap: anywhere; font: 9px/1.55 var(--mono); overflow: auto; }
.agent-login { width: fit-content; margin: -4px 0 14px; }
.agent-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 15px; }
.agent-links a { color: #8fa5b2; font-size: 10px; }
.agent-links a:hover { color: var(--cyan); }

.access-panel { margin-top: 76px; padding: 31px; border: 1px solid var(--line); border-radius: 24px; background: #e9eee7; position: relative; overflow: hidden; }
.access-panel::after { content: ""; position: absolute; width: 340px; height: 340px; right: -150px; top: -220px; border: 1px solid rgba(12,174,156,.16); border-radius: 50%; box-shadow: 0 0 0 55px rgba(12,174,156,.025); pointer-events: none; }
.access-panel-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 430px); column-gap: 48px; align-items: end; margin-bottom: 28px; position: relative; z-index: 1; }
.access-panel-heading .kicker { grid-column: 1; }.access-panel-heading h3 { grid-column: 1; margin: 9px 0 0; font-size: clamp(26px, 3vw, 40px); line-height: 1.04; letter-spacing: -.045em; }.access-panel-heading p { grid-column: 2; grid-row: 1 / span 2; margin: 0; color: var(--muted); font-size: 13px; }
.access-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; position: relative; z-index: 1; }
.access-option { min-height: 230px; padding: 19px; border: 1px solid rgba(9,25,40,.13); border-radius: 13px; background: rgba(255,255,255,.56); display: flex; flex-direction: column; }
.access-option.hosted { border-top: 3px solid var(--cyan-deep); }.access-option.personal { border-top: 3px solid #5b6cd4; }.access-option.fixture { border-top: 3px solid var(--amber); }.access-option.proposal { grid-column: 1 / -1; min-height: 0; border-top: 3px solid #182b3a; background: #f8faf5; }
.access-option-top { display: flex; justify-content: space-between; align-items: center; }.access-index { font: 11px var(--mono); color: var(--muted); }.access-tag { border-radius: 100px; padding: 4px 7px; background: var(--paper); color: #51606b; font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.access-option h4 { margin: 29px 0 8px; font-size: 18px; line-height: 1.1; letter-spacing: -.03em; }.access-option p { margin: 0; color: #596771; font-size: 12px; line-height: 1.55; }.access-option small { margin-top: auto; padding-top: 18px; color: #596771; font-size: 10px; line-height: 1.4; display: flex; gap: 7px; align-items: flex-start; }.state-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; margin-top: 4px; }.state-dot.ready { background: var(--cyan-deep); }.state-dot.key { background: #5b6cd4; }.state-dot.fixture-dot { background: var(--amber); }
.evidence-capabilities-link { align-self: flex-start; min-height: 36px; margin-top: 14px; padding-inline: 12px; font-size: 10px; }
.access-option.proposal h4 { margin-top: 18px; }.proposal-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }.proposal-metrics span { padding: 11px 12px; border: 1px solid rgba(9,25,40,.1); border-radius: 9px; background: #fff; color: #52616b; font-size: 10px; line-height: 1.4; }.proposal-metrics strong { display: block; margin-bottom: 2px; color: var(--ink); font: 700 17px var(--mono); }.proposal-command { align-self: flex-start; margin-top: 13px; padding: 8px 10px; border: 1px solid rgba(9,25,40,.1); border-radius: 7px; background: #edf1eb; color: #244253; font: 10px/1.4 var(--mono); overflow-wrap: anywhere; }.state-dot.proposal-dot { background: #182b3a; }.provider-fact-note { position: relative; z-index: 1; margin: 14px 2px 0; color: #5b6972; font-size: 10px; line-height: 1.55; }.provider-fact-note strong { color: #263943; }
.fixture-command { align-self: flex-start; margin-top: 12px; padding: 7px 8px; border: 1px solid rgba(9,25,40,.1); border-radius: 7px; background: #fff6e5; color: #62420f; font: 9px/1.4 var(--mono); overflow-wrap: anywhere; }

@media (max-width: 960px) { .agent-panel-heading, .agent-grid { grid-template-columns: 1fr; }.agent-panel-heading { gap: 16px; }.access-grid { grid-template-columns: 1fr; }.access-option { min-height: 0; }.access-option.proposal { grid-column: auto; }.proposal-metrics { grid-template-columns: 1fr; }.access-panel-heading { grid-template-columns: 1fr; gap: 16px; }.access-panel-heading p { grid-column: 1; grid-row: auto; } }
@media (max-width: 660px) {
  nav { gap: 8px; }
  nav a:not(.nav-cta):not(.mobile-access) { display: none; }
  nav a.mobile-access { display: inline-flex; align-items: center; min-height: 40px; padding: 0 10px; border: 1px solid rgba(9,25,40,.18); border-radius: 9px; color: #34414d; }
  .agent-panel, .access-panel { margin-top: 48px; padding: 20px; }
  .agent-card-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .agent-card-head > div { width: 100%; }
  .credential-boundary { font-size: 12px; }
  .token-message, .token-empty, .agent-steps p, .agent-links a { font-size: 11px; }
  .agent-command { font-size: 11px; }
  .token-revoke, .token-clear { min-height: 42px; }
  .token-form { grid-template-columns: 1fr; }
  .token-copy-row { grid-template-columns: minmax(0, 1fr) auto; }
  .token-clear { grid-column: 1 / -1; justify-self: start; padding: 6px 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Animations - safe, no selectors removed */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse-soft { 0%, 100% { opacity: 1; } 50% { opacity: 0.65; } }
.animate-fade-up { animation: fadeUp 0.6s ease-out both; }
.animate-fade-in { animation: fadeIn 0.45s ease-out both; }
/* Card lift */
.challenge-card, .access-option, .audit-panel { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.challenge-card:hover, .access-option:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(11,30,47,.1); }
.audit-panel:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(11,30,47,.08); }
.problem-rail {
  display: block;
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 118px);
  padding: 19px 14px 15px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(250, 252, 247, .86);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(8, 22, 35, .07);
}
.rail-heading { display: flex; align-items: start; justify-content: space-between; gap: 14px; padding: 2px 5px 14px; }
.rail-kicker { color: var(--cyan-deep); font-size: 9px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.rail-heading h2 { margin: 5px 0 0; font-size: 19px; line-height: 1.1; letter-spacing: -.03em; }
.rail-count { min-width: 27px; height: 27px; padding-inline: 6px; display: grid; place-items: center; border-radius: 8px; background: var(--ink); color: var(--cyan); font: 10px var(--mono); }
.arena-connection { display: flex; gap: 8px; align-items: flex-start; margin: 0 4px 12px; padding: 9px; border-radius: 9px; background: #eef2ed; color: #637079; font-size: 9px; line-height: 1.4; }
.connection-dot { width: 7px; height: 7px; flex: 0 0 auto; margin-top: 3px; border-radius: 50%; background: #97a09d; box-shadow: 0 0 0 3px rgba(151,160,157,.12); }
.arena-connection[data-state="live"] { color: #176a60; background: rgba(12,174,156,.08); }
.arena-connection[data-state="live"] .connection-dot { background: var(--cyan-deep); box-shadow: 0 0 0 3px rgba(12,174,156,.13); }
.arena-connection[data-state="degraded"] .connection-dot { background: var(--amber); }
.arena-connection[data-state="offline"] { color: #8a5b13; background: rgba(255,182,76,.11); }
.arena-connection[data-state="offline"] .connection-dot { background: var(--amber); }
.problem-nav { display: block; max-height: calc(100vh - 285px); overflow: auto; scrollbar-width: thin; scrollbar-color: #b9c2bf transparent; }
.problem-list { display: grid; gap: 5px; }
.problem-item { width: 100%; min-width: 0; padding: 11px; display: grid; gap: 8px; border: 1px solid transparent; border-radius: 11px; background: transparent; color: var(--ink); text-align: left; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.problem-item:hover { background: #fff; border-color: rgba(9,25,40,.09); }
.problem-item.selected { border-color: rgba(12,174,156,.32); background: #fff; box-shadow: 0 8px 22px rgba(8,22,35,.06); }
.problem-item.selected::before { content: ""; position: absolute; }
.problem-meta, .problem-score { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.problem-domain { overflow: hidden; color: #6b7880; font-size: 8px; font-weight: 800; letter-spacing: .09em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.problem-availability { flex: 0 0 auto; padding: 2px 5px; border-radius: 20px; background: #eef1ec; color: #717d78; font-size: 7px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.problem-availability.open { color: #087d70; background: rgba(12,174,156,.1); }
.problem-item > strong { font-size: 11px; line-height: 1.28; letter-spacing: -.015em; }
.problem-score { padding-top: 7px; border-top: 1px solid rgba(9,25,40,.075); color: #7b858a; font-size: 8px; }
.problem-score b { color: #687470; font: 700 13px var(--mono); }
.problem-score b.accepted { color: var(--cyan-deep); }
.rail-foot { display: flex; flex-wrap: wrap; gap: 7px 12px; margin: 12px 4px 0; padding-top: 12px; border-top: 1px solid var(--line); color: #77827f; font-size: 8px; }
.standing-dot { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #aab2af; }
.standing-dot.live { background: var(--cyan-deep); }.standing-dot.fixture { background: var(--amber); }

.arena-main { min-width: 0; display: grid; gap: 18px; }
.challenge-hero {
  min-height: 555px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(131, 241, 215, .16);
  border-radius: 24px;
  background: linear-gradient(135deg, #07161c 0%, #0c2228 52%, #102b2c 100%);
  color: var(--paper);
  box-shadow: 0 28px 70px rgba(3, 16, 28, .18);
}
.challenge-grid-glow { position: absolute; inset: 0; pointer-events: none; opacity: .42; background-image: linear-gradient(rgba(98,232,210,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(98,232,210,.055) 1px, transparent 1px), radial-gradient(circle at 86% 10%, rgba(217,251,101,.17), transparent 22%); background-size: 36px 36px, 36px 36px, auto; mask-image: linear-gradient(120deg, #000, transparent 82%); }
.challenge-hero-top, .challenge-hero-copy, .score-band, .hero-stats, .challenge-actions, .history-placeholder { position: relative; z-index: 1; }
.challenge-hero-top { display: flex; justify-content: space-between; align-items: start; gap: 18px; }
.challenge-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.challenge-tags span { padding: 5px 8px; border: 1px solid rgba(151,183,191,.2); border-radius: 100px; background: rgba(255,255,255,.035); color: #9aadb2; font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
#challenge-open-state[data-state="open"] { border-color: rgba(98,232,210,.25); color: var(--cyan); background: rgba(98,232,210,.06); }
.challenge-id { max-width: 54%; color: #71898e; font-size: 8px; line-height: 1.5; text-align: right; overflow-wrap: anywhere; }
.challenge-hero-copy { margin-top: 34px; max-width: 900px; }
.arena-eyebrow { margin: 0 0 12px; color: #8ea2a7; font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.challenge-hero h1 { max-width: 960px; margin: 0; color: #f2f6ef; font-size: clamp(37px, 5vw, 68px); font-weight: 690; line-height: .98; letter-spacing: -.055em; text-wrap: balance; }
.challenge-contract { max-width: 920px; margin: 18px 0 0; overflow: hidden; color: #9fb0b2; font-size: 13px; line-height: 1.55; text-overflow: ellipsis; white-space: nowrap; }
.score-band { display: flex; align-items: end; gap: 28px; margin-top: 32px; }
.best-score-block { display: grid; grid-template-columns: auto auto; align-items: end; gap: 1px 12px; }
.best-score-block > span { grid-column: 1 / -1; color: #789095; font-size: 8px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.best-score-block strong { color: var(--cyan); font: 650 clamp(43px, 5.7vw, 72px)/.95 var(--mono); letter-spacing: -.075em; }
.best-score-block small { max-width: 130px; padding-bottom: 7px; color: #a8b8b8; font-size: 9px; line-height: 1.35; }
.score-band > p { max-width: 470px; margin: 0 0 7px; padding-left: 22px; border-left: 1px solid rgba(151,183,191,.2); color: #81979a; font-size: 10px; line-height: 1.5; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 26px 0 0; }
.hero-stats > div { min-width: 0; padding: 13px 15px; border: 1px solid rgba(151,183,191,.16); border-left: 0; background: rgba(255,255,255,.025); }
.hero-stats > div:first-child { border-left: 1px solid rgba(151,183,191,.16); border-radius: 11px 0 0 11px; }.hero-stats > div:last-child { border-radius: 0 11px 11px 0; }
.hero-stats dt { color: #6f878c; font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero-stats dd { margin: 3px 0 0; color: #e0ebe7; font: 650 17px var(--mono); white-space: nowrap; }
.hero-stats small { display: block; margin-top: 2px; overflow: hidden; color: #647c81; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.challenge-actions { display: flex; align-items: center; gap: 9px; margin-top: 21px; }
.button.on-dark { min-height: 42px; border-color: rgba(167,195,198,.3); color: #d4dfdc; background: rgba(255,255,255,.025); }.button.on-dark:hover { color: #fff; background: rgba(255,255,255,.08); }
.button.primary.acid { min-height: 42px; border-color: var(--acid); background: var(--acid); color: #132114; }.button.primary.acid:hover { border-color: var(--cyan); background: var(--cyan); }
.receipt-link { margin-left: auto; color: #86a09f; font-size: 9px; font-weight: 720; text-decoration: none; }.receipt-link:hover { color: var(--cyan); }
.history-placeholder { display: grid; grid-template-columns: auto minmax(100px, 1fr) auto; gap: 18px; align-items: end; margin-top: 22px; padding-top: 15px; border-top: 1px solid rgba(151,183,191,.14); color: #5f787d; font-size: 8px; }
.history-placeholder > div { display: grid; gap: 2px; }.history-placeholder > div span { text-transform: uppercase; letter-spacing: .11em; }.history-placeholder strong { color: #809397; font-size: 9px; }
.history-placeholder svg { width: 100%; height: 30px; }.history-placeholder path { fill: none; stroke: rgba(98,232,210,.25); stroke-width: 1; stroke-dasharray: .015 .012; }

.arena-leaderboard { scroll-margin-top: 110px; padding: 29px; border: 1px solid var(--line); border-radius: 21px; background: rgba(255,255,255,.72); box-shadow: 0 17px 52px rgba(8,22,35,.07); }
.leaderboard-head { display: flex; justify-content: space-between; gap: 28px; align-items: start; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.leaderboard-head h2 { margin: 6px 0 2px; font-size: clamp(27px, 3vw, 39px); line-height: 1; letter-spacing: -.045em; }.leaderboard-head p { margin: 8px 0 0; color: var(--muted); font-size: 10px; }
.feed-state { display: flex; align-items: center; gap: 7px; padding: 7px 9px; border-radius: 100px; background: #eef1ec; color: #66726e; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.feed-state span { width: 6px; height: 6px; border-radius: 50%; background: #8d9995; }
.feed-state[data-state="ready"], .feed-state[data-state="empty"] { color: #087d70; background: rgba(12,174,156,.09); }.feed-state[data-state="ready"] span, .feed-state[data-state="empty"] span { background: var(--cyan-deep); }
.feed-state[data-state="offline"] { color: #915f14; background: rgba(255,182,76,.13); }.feed-state[data-state="offline"] span { background: var(--amber); }
.standings-empty { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 15px; align-items: center; margin-top: 18px; padding: 20px; border: 1px dashed rgba(12,174,156,.3); border-radius: 13px; background: rgba(12,174,156,.045); }
.standings-empty[hidden] { display: none; }
.empty-mark { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 50%; background: rgba(12,174,156,.1); color: var(--cyan-deep); font-size: 19px; }
.standings-empty strong { font-size: 13px; }.standings-empty p { margin: 3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.text-button { padding: 8px 0; border: 0; background: transparent; color: var(--cyan-deep); font-size: 10px; font-weight: 800; white-space: nowrap; }
.arena-table-wrap { margin-top: 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.arena-table { min-width: 760px; color: var(--ink); }
.arena-table th { padding: 12px 14px; background: #edf1ed; color: #74807c; font-size: 8px; }
.arena-table td { padding: 15px 14px; border-top: 1px solid var(--line); color: var(--ink); font-size: 10px; }
.arena-table td.rank { color: #67756f; font: 10px var(--mono); }.arena-table td.score { color: var(--cyan-deep); font: 700 18px var(--mono); }.arena-table td.subtle { color: #71807b; }.arena-table td.delta { color: #3f6d65; font-size: 9px; }
.arena-table .solver-cell { min-width: 220px; }.arena-table .solver-cell strong { font-size: 10px; overflow-wrap: anywhere; }.arena-table .solver-cell small { display: block; color: #697d78; font-size: 8px; font-weight: 750; }.model-attribution { width: fit-content; display: inline-flex; align-items: center; margin-top: 5px; padding: 3px 6px; border: 1px solid rgba(12,174,156,.2); border-radius: 100px; background: rgba(12,174,156,.07); color: #376a62; font-size: 8px; font-weight: 750; line-height: 1.15; overflow-wrap: anywhere; }.submission-row .model-attribution { display: flex; margin-top: 6px; }
.standing-pill { display: inline-flex; padding: 4px 7px; border-radius: 100px; font-size: 7px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.standing-pill.official { color: #0c7064; background: rgba(12,174,156,.12); }.standing-pill.accepted { color: #5266a5; background: rgba(91,108,212,.11); }.standing-pill.fixture { color: #8c5c13; background: rgba(255,182,76,.14); }
.fixture-standings { margin-top: 27px; padding-top: 23px; scroll-margin-top: 110px; border-top: 1px solid var(--line); }
.fixture-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; }.fixture-heading > div { display: grid; gap: 7px; }.fixture-heading h3 { margin: 0; font-size: 17px; letter-spacing: -.02em; }.fixture-heading p { max-width: 430px; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; text-align: right; }
.fixture-chip { width: fit-content; padding: 3px 6px; border-radius: 100px; background: rgba(255,182,76,.13); color: #8a5b13; font-size: 7px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.fixture-table-wrap { margin-top: 12px; }.fixture-table th { background: #f4f1e9; }.arena-table td.fixture-score { color: #8f641f; }.arena-table td.fixture-rank { color: #a27736; }.fixture-missing { padding: 24px !important; color: var(--muted) !important; text-align: center; }

.arena-dialog { width: min(760px, calc(100% - 28px)); max-height: min(86vh, 820px); padding: 0; overflow: auto; border: 1px solid rgba(123,151,156,.3); border-radius: 20px; background: #f9fbf7; color: var(--ink); box-shadow: 0 35px 100px rgba(2,12,20,.38); }
.participate-dialog { max-height: min(80svh, 720px); }
.arena-dialog::backdrop { background: rgba(3,13,21,.69); backdrop-filter: blur(7px); }
.dialog-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: start; justify-content: space-between; gap: 22px; padding: 19px 22px 16px; border-bottom: 1px solid var(--line); background: rgba(249,251,247,.95); backdrop-filter: blur(15px); }
.dialog-head h2 { margin: 6px 0 0; font-size: clamp(27px, 4vw, 42px); line-height: 1; letter-spacing: -.045em; }
.dialog-close { width: 38px; height: 38px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: #51605b; font-size: 24px; line-height: 1; }
.scoring-steps, .participate-steps { list-style: none; padding: 0; margin: 0; }
.scoring-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 25px 27px; }
.scoring-steps li { min-width: 0; padding: 4px 20px; border-left: 1px solid var(--line); }.scoring-steps li:first-child { padding-left: 0; border-left: 0; }.scoring-steps li:last-child { padding-right: 0; }
.scoring-steps li > span, .participate-steps li > span { color: var(--cyan-deep); font: 9px var(--mono); }.scoring-steps strong { display: block; margin-top: 13px; font-size: 14px; }.scoring-steps p { margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.dialog-footnote { margin: 0 27px 27px; padding: 13px; border-radius: 10px; background: #edf1eb; color: #5f6e68; font-size: 10px; line-height: 1.55; }
.dialog-intro { margin: 0; padding: 13px 22px; border-bottom: 1px solid var(--line); color: #334943; font-size: 11px; font-weight: 750; }
.participate-steps { padding: 3px 22px 18px; }
.participate-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 9px; padding: 13px 0; border-bottom: 1px solid var(--line); }.participate-steps li:last-child { border-bottom: 0; }
.participate-steps li > span { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid rgba(12,174,156,.25); border-radius: 50%; background: rgba(12,174,156,.06); }
.participate-steps strong { font-size: 12px; }.participate-steps p { margin: 3px 0 7px; color: var(--muted); font-size: 10px; line-height: 1.45; }.participate-steps a:not(.button) { color: var(--cyan-deep); font-size: 10px; font-weight: 750; }.participate-steps .button { width: fit-content; min-height: 34px; padding-inline: 11px; }
.participate-steps pre { margin: 11px 0 0; max-height: 210px; padding: 13px; overflow: auto; border: 1px solid #1e3941; border-radius: 9px; background: #07161c; color: #b7eee3; white-space: pre-wrap; overflow-wrap: anywhere; font: 9px/1.65 var(--mono); }
.participate-key-panel { display: grid; gap: 10px; margin: 4px 0 10px; padding: 12px; border: 1px solid rgba(12,174,156,.22); border-radius: 11px; background: rgba(12,174,156,.06); }
.participate-key-status { margin: 0; color: #1f3a34; font-size: 11px; line-height: 1.45; }
.participate-key-panel .button.primary { width: fit-content; min-height: 38px; }
/* Light modal surface: override dark agent-panel token colors for readable contrast. */
.participate-token-reveal {
  margin: 0;
  border-color: rgba(180, 120, 20, .35);
  background: #fff8ea;
}
.participate-token-reveal strong { color: #5c3400; }
.participate-token-reveal span { color: #4a3b25; }
.participate-token-reveal .token-copy-row input {
  color: #0b3d36;
  background: #f4fbf9;
  border-color: rgba(12, 174, 156, .35);
  font-size: 11px;
}
.participate-key-panel .token-message,
.participate-token-reveal .token-message { color: #17332d; }
.participate-key-panel .button:focus-visible,
.participate-token-reveal .button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.token-label-field .token-label-hint { color: var(--muted); font-weight: 500; text-transform: none; letter-spacing: 0; }

@media (max-width: 1050px) {
  .arena-shell { grid-template-columns: 225px minmax(0, 1fr); }
  .challenge-hero { padding: 27px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats > div, .hero-stats > div:first-child, .hero-stats > div:last-child { border: 1px solid rgba(151,183,191,.16); border-radius: 0; }
  .hero-stats > div:first-child { border-radius: 11px 0 0 0; }.hero-stats > div:nth-child(2) { border-radius: 0 11px 0 0; }.hero-stats > div:nth-child(3) { border-radius: 0 0 0 11px; }.hero-stats > div:last-child { border-radius: 0 0 11px 0; }
}

@media (max-width: 820px) {
  .arena-shell { grid-template-columns: minmax(0, 1fr); margin-top: 18px; }
  .problem-rail { position: relative; top: auto; max-height: none; padding-bottom: 12px; }
  .problem-nav { max-height: none; overflow: visible; }
  .problem-list { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 5px; scroll-snap-type: x proximity; scrollbar-width: thin; }
  .problem-item { min-width: 265px; scroll-snap-align: start; }
  .rail-foot { display: none; }
  .arena-connection { width: fit-content; }
}

@media (max-width: 660px) {
  .arena-shell { width: min(100% - 20px, 1320px); margin-bottom: 74px; }
  .problem-rail { padding: 15px 10px 10px; border-radius: 14px; }
  .rail-heading { padding-inline: 3px; }.rail-heading h2 { font-size: 17px; }
  .arena-connection { margin-inline: 3px; }
  .problem-item { min-width: min(245px, calc(100vw - 52px)); }
  .challenge-hero { min-height: 0; padding: 21px 18px; border-radius: 18px; }
  .challenge-hero-top { display: grid; }.challenge-id { max-width: none; text-align: left; }
  .challenge-hero-copy { margin-top: 27px; }.challenge-hero h1 { font-size: clamp(34px, 11vw, 48px); }
  .challenge-contract { white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
  .score-band { align-items: start; flex-direction: column; gap: 13px; }.score-band > p { margin: 0; padding: 10px 0 0; border-top: 1px solid rgba(151,183,191,.2); border-left: 0; }
  .best-score-block strong { font-size: 51px; }
  .hero-stats { gap: 5px; }.hero-stats > div, .hero-stats > div:first-child, .hero-stats > div:nth-child(2), .hero-stats > div:nth-child(3), .hero-stats > div:last-child { padding: 10px; border-radius: 8px; }.hero-stats dd { font-size: 14px; }
  .challenge-actions { align-items: stretch; flex-direction: column; }.challenge-actions .button { width: 100%; }.receipt-link { margin: 5px 0 0; text-align: center; }
  .history-placeholder { grid-template-columns: 1fr; gap: 4px; }.history-placeholder svg { display: none; }
  .arena-leaderboard { padding: 20px 15px; border-radius: 17px; }
  .leaderboard-head { align-items: start; flex-direction: column; gap: 13px; }.feed-state { align-self: flex-start; }
  .standings-empty { grid-template-columns: auto minmax(0, 1fr); padding: 15px; }.standings-empty .text-button { grid-column: 2; justify-self: start; }
  .fixture-heading { align-items: start; flex-direction: column; gap: 8px; }.fixture-heading p { text-align: left; }
  .arena-table { min-width: 690px; }
  .scoring-steps { grid-template-columns: 1fr; }.scoring-steps li, .scoring-steps li:first-child, .scoring-steps li:last-child { padding: 16px 0; border-top: 1px solid var(--line); border-left: 0; }.scoring-steps li:first-child { border-top: 0; }
  .dialog-head { padding: 20px; }.dialog-intro { padding-inline: 20px; }.participate-steps { padding-inline: 20px; }.dialog-footnote { margin-inline: 20px; }
}

@media (max-width: 420px) {
  .hero-stats { grid-template-columns: 1fr; }.hero-stats > div, .hero-stats > div:first-child, .hero-stats > div:nth-child(2), .hero-stats > div:nth-child(3), .hero-stats > div:last-child { border-radius: 8px; }
  .challenge-hero { padding: 16px 14px; }.challenge-hero h1 { font-size: clamp(30px, 10vw, 40px); }
  .arena-leaderboard { padding: 16px 12px; border-radius: 14px; }
  .arena-dialog { width: calc(100% - 16px); border-radius: 14px; }
  .dialog-head { padding: 16px; }.dialog-intro { padding-inline: 16px; }.participate-steps { padding-inline: 16px; }.dialog-footnote { margin-inline: 16px; }.scoring-steps { padding-inline: 16px; }
  .agent-panel, .access-panel { padding: 16px; }
  .token-copy-row { grid-template-columns: 1fr; }.token-copy-row .button { width: 100%; }
  .problem-item { min-width: calc(100vw - 56px); }
}

.copy-block { position: relative; display: block; }
.copy-block pre { padding-top: 42px; }
.copy-button {
  position: absolute;
  top: 10px;
  right: 10px;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(98, 232, 210, .35);
  border-radius: 8px;
  background: rgba(3, 12, 19, .72);
  color: #bdeee6;
  font: 10px/1 var(--sans);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
}
.copy-button:hover { background: rgba(12, 174, 156, .18); border-color: rgba(98, 232, 210, .55); }
.copy-button:focus-visible { outline: 2px solid rgba(12, 174, 156, .65); outline-offset: 2px; }
.copy-status {
  position: absolute;
  top: 14px;
  right: 76px;
  max-width: 110px;
  color: var(--cyan);
  font: 9px/1.25 var(--sans);
  font-weight: 700;
  text-align: right;
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
.copy-status.is-shown { opacity: 1; }

/* Guided narration tour. The script only scrolls and marks existing landmarks. */
.arena-demo-overlay { position: fixed; z-index: 40; right: 18px; bottom: 18px; width: min(330px, calc(100% - 36px)); padding: 11px 13px; border: 1px solid rgba(255, 242, 188, .5); border-radius: 3px; background: rgba(25, 56, 71, .94); color: #fff9e9; box-shadow: 0 14px 42px rgba(16, 39, 49, .28); pointer-events: none; }
.arena-demo-title { display: block; color: #f1d66a; font: 800 8px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.arena-demo-caption { min-height: 32px; margin: 5px 0 9px; font: 11px/1.42 var(--sans); }
.arena-demo-progress { height: 4px; overflow: hidden; background: rgba(255,255,255,.18); }
.arena-demo-progress span { display: block; width: 100%; height: 100%; transform: translateX(-100%); background: #e4ce65; }
.arena-demo-overlay.is-running .arena-demo-progress span { animation: arena-demo-progress 58s linear forwards; }
.arena-demo-focus { position: relative; z-index: 3; outline: 3px solid rgba(226, 197, 73, .92); outline-offset: 7px; box-shadow: 0 0 0 12px rgba(226, 197, 73, .13); }
@keyframes arena-demo-progress { to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .arena-demo-overlay.is-running .arena-demo-progress span { animation: none; transform: translateX(0); } .arena-demo-focus { outline-offset: 4px; } }

/* Frontier Fieldbook: editorial surface layered over the live Arena shell.
   Application selectors and state classes above remain the source of behavior. */
:root {
  --ink: #1d3444;
  --ink-2: #294657;
  --paper: #f5f0e4;
  --paper-2: #e9dfcd;
  --line: rgba(40, 75, 91, .22);
  --muted: #5f7179;
  --cyan: #4c9a91;
  --cyan-deep: #236f72;
  --acid: #e2c549;
  --amber: #bd8730;
  --red: #963b32;
  --white: #fffdf7;
}

body {
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, transparent 0, transparent max(18px, calc((100vw - 1320px) / 2)), rgba(185, 80, 67, .15) max(18px, calc((100vw - 1320px) / 2)), rgba(185, 80, 67, .15) calc(max(18px, calc((100vw - 1320px) / 2)) + 1px), transparent calc(max(18px, calc((100vw - 1320px) / 2)) + 1px)),
    repeating-linear-gradient(0deg, transparent 0, transparent 31px, rgba(53, 96, 111, .095) 31px, rgba(53, 96, 111, .095) 32px);
}
.ambient { display: none; }
.site-header {
  width: min(1320px, calc(100% - 40px));
  height: auto;
  min-height: 74px;
  margin-top: 12px;
  padding: 12px 22px;
  border-color: rgba(30, 60, 76, .5);
  border-radius: 0;
  background: rgba(255, 253, 247, .92);
  box-shadow: 4px 4px 0 rgba(34, 68, 84, .12);
}
.brand { font-family: var(--font-serif); font-size: 23px; }
.brand-mark { border-radius: 4px; transform: none; }
.brand-mark::after { border-radius: 3px; transform: rotate(-26deg); }
.fieldbook-edition { display: grid; gap: 1px; margin: 0 auto 0 20px; color: #60737b; font: 700 8px/1.45 var(--mono); letter-spacing: .075em; text-transform: uppercase; }
.fieldbook-edition span:last-child { color: #946039; font-weight: 600; letter-spacing: .025em; text-transform: none; }
.site-header nav { gap: 21px; }
.site-header nav a { font: 750 10px var(--mono); letter-spacing: .035em; text-transform: uppercase; }
.nav-cta { border-radius: 2px; background: var(--ink) !important; }

.arena-shell { width: min(1320px, calc(100% - 40px)); margin-top: 20px; gap: 0; border: 1px solid rgba(30, 60, 76, .5); background: rgba(255, 253, 247, .7); box-shadow: 7px 7px 0 rgba(34, 68, 84, .1); }
.problem-rail { top: 98px; padding: 20px 14px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: rgba(235, 225, 207, .65); box-shadow: none; backdrop-filter: none; }
.rail-kicker, .kicker { color: var(--red); font-family: var(--mono); }
.rail-heading h2, .section-heading h2, .leaderboard-head h2 { font-family: var(--font-serif); }
.rail-count { border-radius: 3px; background: var(--ink); color: #f5dd69; }
.arena-connection { border-left: 3px solid #b88739; border-radius: 0; background: rgba(255, 247, 221, .82); color: #725a3c; }
.problem-item { border-radius: 0; border-bottom: 1px dotted rgba(40, 75, 91, .35); }
.problem-item:hover, .problem-item.selected { border-color: rgba(40, 75, 91, .35); background: rgba(255, 253, 247, .88); box-shadow: inset 3px 0 0 var(--red); }
.problem-item > strong { font-family: var(--font-serif); font-size: 14px; }
.problem-domain, .problem-score { font-family: var(--mono); }
.problem-availability, .fixture-chip, .standing-pill { border-radius: 2px; }

.arena-main { gap: 0; }
.challenge-hero { min-height: 590px; border: 0; border-radius: 0; background: rgba(255, 253, 247, .52); box-shadow: none; color: var(--ink); }
.challenge-grid-glow { opacity: 1; background-image: linear-gradient(90deg, transparent 0, transparent 13px, rgba(185, 80, 67, .2) 13px, rgba(185, 80, 67, .2) 14px, transparent 14px), repeating-linear-gradient(0deg, transparent 0, transparent 31px, rgba(53, 96, 111, .11) 31px, rgba(53, 96, 111, .11) 32px); background-size: auto, auto; mask-image: none; }
.challenge-tags span { border-radius: 2px; border-color: rgba(40, 75, 91, .28); background: rgba(255, 253, 247, .8); color: #536b74; }
#challenge-open-state[data-state="open"] { color: var(--cyan-deep); }
.challenge-id { max-width: 50%; color: #607680; font-size: 9px; }
.arena-eyebrow { color: #8d5042; font-family: var(--mono); }
.live-dot { background: var(--red); box-shadow: 0 0 0 4px rgba(185, 80, 67, .12); }
.challenge-hero h1 { color: var(--ink); font-family: var(--font-serif); font-size: clamp(43px, 5.5vw, 75px); font-weight: 700; }
.challenge-contract { max-width: 850px; color: #405a66; font: 16px/1.55 var(--font-serif); }
.score-band { border-color: rgba(40, 75, 91, .36); }
.best-score-block > span, .hero-stats dt { color: #697b80; font-family: var(--mono); }
.best-score-block strong { color: #1f5f67; }
.best-score-block small, .score-band > p, .hero-stats small { color: #64757a; }
.hero-stats > div { border-color: rgba(40, 75, 91, .24); background: rgba(255, 253, 247, .48); }
.hero-stats dd { color: #254d5a; }
.button { border-radius: 2px; }
.button.on-dark { border-color: rgba(40, 75, 91, .45); color: #294957; background: rgba(255, 253, 247, .68); }
.button.primary.acid { border-color: #d5b638; background: #e4ce65; color: #253f47; }
.receipt-link { color: #805c37; }
.history-placeholder { border-color: rgba(40, 75, 91, .25); color: #687a7f; }
.history-placeholder strong { color: #3d5e67; }.history-placeholder path { stroke: rgba(35, 111, 114, .45); }

.arena-leaderboard { padding: 32px; border: 0; border-top: 2px solid var(--ink); border-radius: 0; background: rgba(255, 253, 247, .82); box-shadow: none; }
.leaderboard-head { border-color: var(--line); }.feed-state { border-radius: 2px; }
.standings-empty { border-radius: 0; border-color: rgba(35, 111, 114, .36); background: rgba(222, 238, 229, .48); }
.arena-table-wrap { border-radius: 0; border-color: rgba(40, 75, 91, .35); }
.arena-table th, .fixture-table th { background: #e9dfcd; color: #576c74; font-family: var(--mono); }
.fixture-standings { border-color: rgba(40, 75, 91, .35); }.fixture-heading p { font-family: var(--mono); }
.fixture-chip { border: 1px solid rgba(158, 106, 35, .45); background: #fff0c9; }

.section { padding-block: 92px; }
.section-heading { margin-bottom: 32px; }.section-heading h2 { color: var(--ink); }.section-heading p { color: #536b73; }
.viewer-card, .receipt-card { border-radius: 0; box-shadow: 5px 5px 0 rgba(34, 68, 84, .13); }
.viewer-card { border: 1px solid #294957; }.viewer-toolbar { background: #183746; }.canvas-wrap { background: radial-gradient(circle at 50% 45%, rgba(78, 151, 142, .25), transparent 48%), #112b37; }
.receipt-card { border: 1px solid #294957; background: #fdf7e9; color: var(--ink); }
.receipt-card h3, .audit-panel h4 { color: var(--ink); }.receipt-card > p, .receipt-status small, .evidence-strip > p, .audit-panel > p, .semantic-view > p, .semantic-view ul, .research-route dd { color: #536a73; }
.receipt-status { border-color: rgba(40, 75, 91, .22); }.receipt-status strong { color: #294957; }.seal { border-radius: 2px; color: #236f72; background: #e0eee5; border-color: rgba(35,111,114,.35); }
.evidence-strip > div, .audit-panel, .semantic-view, .research-route { border-radius: 0; border-color: rgba(40, 75, 91, .24); background: rgba(229, 239, 230, .5); }
.evidence-strip strong, .semantic-view summary, .research-route summary { color: #294957; }.evidence-label, .audit-metrics dt, .research-route dt { color: #657980; }.audit-metrics dd { color: #3e5962; }
.check { border-color: rgba(40, 75, 91, .18); }.check .pass, .audit-metrics dd.pass { color: #24766f; }.check .not-claimed, .audit-metrics dd.not-claimed { color: #a5681f; }
.digest-list div { border-radius: 0; background: #e9dfcd; }.digest-list dt { color: #63767d; }.digest-list dd { color: #294957; }

.method-section { background: #193847; }.method-section::after { border-color: rgba(228, 206, 101, .24); }.method-section .kicker { color: #f1d66a; }.section-heading.inverse h2 { color: #fff7e8; }.flow::before { background: rgba(228, 206, 101, .36); }.flow li > span { border-radius: 3px; border-color: rgba(228, 206, 101, .65); color: #f1d66a; background: #234957; }
.submission-form, .queue-card, .agent-panel, .access-panel { border-radius: 0; background: rgba(255, 253, 247, .76); }

@media (max-width: 1100px) {
  .fieldbook-edition { display: none; }
  .site-header { width: min(100% - 24px, 1320px); }
  .site-header nav { gap: 13px; }
  .arena-shell { width: min(100% - 24px, 1320px); }
}
@media (max-width: 660px) {
  body { background-image: repeating-linear-gradient(0deg, transparent 0, transparent 31px, rgba(53, 96, 111, .08) 31px, rgba(53, 96, 111, .08) 32px); }
  .site-header { margin-top: 0; padding: 10px 12px; border-inline: 0; box-shadow: none; }
  .site-header nav a:not(.nav-cta), .research-access { display: none; }
  .site-header nav { margin-left: auto; }.nav-cta { padding: 9px 10px; font-size: 8px !important; }
  .arena-shell { width: 100%; margin-top: 0; border-inline: 0; box-shadow: none; }
  .problem-rail { border-right: 0; border-bottom: 1px solid var(--line); }
  .challenge-hero { padding: 24px 19px; }.challenge-id { max-width: none; }
  .challenge-contract { font-size: 15px; }
  .arena-leaderboard { padding: 24px 15px; }
  .section { padding-block: 64px; }.shell { width: min(100% - 28px, 1180px); }
  .viewer-card, .receipt-card { box-shadow: 3px 3px 0 rgba(34, 68, 84, .11); }
}

/* Production Fieldbook layout. This is the Arena, not a separate presentation. */
.site-header[data-layout="fieldbook"] {
  display: block;
  width: min(1420px, calc(100% - 40px));
  min-height: 0;
  margin: 18px auto 0;
  padding: 16px 28px 0;
  position: relative;
  top: auto;
  border: 1px solid #294957;
  border-bottom: 0;
  background: rgba(255, 253, 247, .96);
  box-shadow: 6px 6px 0 rgba(34, 68, 84, .12);
  backdrop-filter: none;
}
.mast-meta { display: flex; justify-content: space-between; gap: 18px; color: #61757d; font: 750 8px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.mast-title { margin: 18px 0 3px; }
.site-header[data-layout="fieldbook"] .brand { gap: 15px; color: #1d3444; font: 700 clamp(47px, 6vw, 82px)/.86 var(--font-serif); letter-spacing: -.065em; }
.site-header[data-layout="fieldbook"] .brand-mark { width: 38px; height: 38px; flex: 0 0 auto; }
.site-header[data-layout="fieldbook"] .brand-mark::after { top: 10px; }
.site-header[data-layout="fieldbook"] .brand em { color: #b95043; font-style: italic; }
.mast-sub { margin: 0 0 20px 53px; color: #54707a; font: 700 10px/1.4 var(--mono); letter-spacing: .075em; text-transform: uppercase; }
.site-header[data-layout="fieldbook"] nav { display: flex; min-height: 46px; margin: 0 -28px; padding: 0 28px; border-top: 1px solid #294957; border-bottom: 1px solid #294957; gap: 0; }
.site-header[data-layout="fieldbook"] nav a { display: inline-flex; align-items: center; padding: 0 22px; border-right: 1px solid rgba(41, 73, 87, .32); color: #365667; font: 800 9px var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.site-header[data-layout="fieldbook"] nav a:first-child { border-left: 1px solid rgba(41, 73, 87, .32); }
.site-header[data-layout="fieldbook"] nav a:hover { color: #b95043; background: #fff8e7; }
.site-header[data-layout="fieldbook"] .nav-cta { margin-left: auto; border-left: 1px solid rgba(41, 73, 87, .32); border-radius: 0; color: #fff9e9 !important; }

.arena-shell {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  width: min(1420px, calc(100% - 40px));
  margin: 0 auto 68px;
  align-items: stretch;
  border: 1px solid #294957;
  border-top: 0;
  background: rgba(255, 253, 247, .84);
  box-shadow: 6px 6px 0 rgba(34, 68, 84, .12);
}
.problem-rail {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  position: sticky;
  top: 18px;
  height: calc(100vh - 36px);
  max-height: 900px;
  padding: 20px 14px 16px;
  border: 0;
  border-right: 1px solid #294957;
  border-radius: 0;
  background: #f4ebdc;
  box-shadow: none;
}
.rail-heading { padding: 0 4px 13px; }.rail-heading h2 { color: #1d3444; font-size: 21px; }
.rail-kicker { color: #b95043; font: 800 8px var(--mono); }.rail-count { border-radius: 2px; }
.arena-connection { margin: 0 3px 11px; border-left: 3px solid #bd8730; border-radius: 0; background: #fff5d9; font-family: var(--mono); }
.problem-nav { flex: 1; max-height: none; overflow: auto; }.problem-list { gap: 0; }
.problem-item { padding: 12px 8px; border: 0; border-bottom: 1px dotted rgba(41, 73, 87, .43); border-radius: 0; }
.problem-item:hover, .problem-item.selected { border-color: rgba(41, 73, 87, .43); background: #fffdf7; box-shadow: inset 4px 0 0 #b95043; }
.problem-item > strong { color: #1d3444; font: 700 15px/1.2 var(--font-serif); }
.problem-domain, .problem-score, .problem-availability { font-family: var(--mono); }.problem-availability { border-radius: 2px; }
.rail-label { display: block; margin: 13px 4px 0; color: #61757d; font: 9px/1.55 var(--mono); }
.rail-foot { margin-top: 12px; border-color: rgba(41, 73, 87, .3); font-family: var(--mono); }
.rail-cta { width: 100%; min-height: 42px; margin: 14px 0 0; border: 1px solid #294957; border-radius: 2px; background: #e4ce65; color: #193847; font: 800 10px var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.rail-cta:hover { background: #f0d96e; }

.arena-main { display: block; min-width: 0; background: #fffdf7; }
.challenge-hero { min-height: 0; padding: 25px 44px 34px; border: 0; border-radius: 0; background: #fffdf7; box-shadow: none; }
.challenge-grid-glow { opacity: 1; background-image: linear-gradient(90deg, transparent 0, transparent 17px, rgba(185, 80, 67, .22) 17px, rgba(185, 80, 67, .22) 18px, transparent 18px), repeating-linear-gradient(0deg, transparent 0, transparent 30px, rgba(71, 112, 126, .14) 30px, rgba(71, 112, 126, .14) 31px); background-size: auto; mask-image: none; }
.page-date { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid #294957; color: #60747b; font: 800 8px var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.challenge-hero-top { margin-top: 21px; }.challenge-tags span { border-radius: 2px; background: #fff9e9; }
.challenge-hero-copy { max-width: 930px; margin-top: 28px; }.arena-eyebrow { color: #b95043; font-family: var(--mono); }
.challenge-hero h1 { max-width: 900px; color: #1d3444; font: 700 clamp(47px, 6.2vw, 84px)/.92 var(--font-serif); letter-spacing: -.065em; }
.challenge-contract { max-width: 860px; color: #405c68; font: 17px/1.55 var(--font-serif); }
.canonical-contract { margin: 17px 0 0; padding: 9px 11px; border: 1px solid rgba(41, 73, 87, .35); background: rgba(255, 248, 231, .76); color: #49636d; font: 9px/1.5 var(--mono); overflow-wrap: anywhere; }
.canonical-contract strong { color: #1d3444; }.canonical-contract .challenge-id { max-width: none; text-align: left; color: #49636d; font: inherit; }
.score-band { margin-top: 29px; padding-block: 19px; border-block: 2px solid #294957; }
.best-score-block > span, .hero-stats dt { color: #60747b; font-family: var(--mono); }.best-score-block strong { color: #236f72; }
.hero-stats { border-color: #294957; }.hero-stats > div { background: rgba(255, 253, 247, .65); border-color: rgba(41, 73, 87, .32); }.hero-stats dd { color: #1d3444; }
.challenge-actions { margin-top: 21px; }.button, .button.primary.acid { border-radius: 2px; }.button.primary.acid { background: #e4ce65; border-color: #b28a2e; }
.history-placeholder { border-color: rgba(41, 73, 87, .28); }.history-placeholder path { stroke: rgba(35, 111, 114, .48); }

.arena-leaderboard { padding: 34px 44px 42px; border: 0; border-top: 1px solid #294957; border-radius: 0; background: #f7f0e4; box-shadow: none; }
.leaderboard-head h2, .fixture-heading h3 { color: #1d3444; font-family: var(--font-serif); }.arena-table-wrap { border-radius: 0; border-color: #738c95; }.arena-table th, .fixture-table th { background: #e6dac6; color: #45616c; font-family: var(--mono); }.fixture-chip, .standing-pill, .feed-state { border-radius: 2px; }
.fixture-heading p { font-family: var(--mono); }.fixture-standings { border-color: rgba(41, 73, 87, .35); }

.section.shell { width: min(1120px, calc(100% - 40px)); padding: 56px 44px; border: 1px solid #294957; background: rgba(255, 253, 247, .86); box-shadow: 5px 5px 0 rgba(34, 68, 84, .1); }
.section-heading h2 { color: #1d3444; font-family: var(--font-serif); }.section-heading p { color: #536c75; font-family: var(--mono); }
.viewer-card, .receipt-card { border-radius: 0; }.viewer-card { border: 1px solid #294957; }.receipt-card { border: 1px solid #294957; background: #fff8e9; color: #1d3444; }.receipt-card h3, .audit-panel h4 { color: #1d3444; }
.method-section { margin: 68px 0; padding-block: 58px; background: #1d3c4c; }.method-section::after { display: none; }.method-section .shell { width: min(1120px, calc(100% - 40px)); }.method-section .section-heading.inverse h2 { color: #fff8e9; }.method-section .section-heading.inverse p { color: #c4d3d5; }.method-section .kicker { color: #ecd46b; }
.flow li > span { border-radius: 2px; background: #294f5e; }.flow strong { color: #fff8e9; }
.contribute-section { margin-bottom: 68px; }.submission-form, .queue-card, .agent-panel, .access-panel { border-radius: 0; }.agent-panel { border-color: #294957; background: #1d3c4c; }.access-panel { background: #f4ebdc; border-color: #294957; }.access-panel::after, .agent-panel::before { display: none; }

@media (max-width: 960px) {
  .site-header[data-layout="fieldbook"], .arena-shell { width: min(100% - 24px, 1420px); }
  .site-header[data-layout="fieldbook"] nav a { padding-inline: 13px; }
  .arena-shell { grid-template-columns: 232px minmax(0, 1fr); }
  .challenge-hero, .arena-leaderboard { padding-inline: 29px; }
}
@media (max-width: 820px) {
  .arena-shell { grid-template-columns: 1fr; }
  .problem-rail { position: relative; top: auto; height: auto; max-height: none; border-right: 0; border-bottom: 1px solid #294957; }
  .problem-list { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 5px; }
  .problem-item { min-width: 220px; border: 1px solid rgba(41, 73, 87, .32); }
  .rail-label, .rail-foot { display: none; }.rail-cta { max-width: 270px; }
}
@media (max-width: 660px) {
  .site-header[data-layout="fieldbook"] { width: 100%; margin-top: 0; padding: 12px 15px 0; border-inline: 0; box-shadow: none; }
  .mast-meta span:nth-child(2) { display: none; }.mast-meta { font-size: 7px; }.site-header[data-layout="fieldbook"] .brand { font-size: clamp(45px, 15vw, 68px); }.site-header[data-layout="fieldbook"] .brand-mark { display: none; }.mast-sub { margin-left: 0; font-size: 8px; }
  .site-header[data-layout="fieldbook"] nav { margin-inline: -15px; padding-inline: 0; overflow-x: auto; }.site-header[data-layout="fieldbook"] nav a { flex: 0 0 auto; padding-inline: 14px; }.site-header[data-layout="fieldbook"] nav .research-access, .site-header[data-layout="fieldbook"] nav .mobile-access { display: none; }.site-header[data-layout="fieldbook"] nav .nav-cta { margin-left: 0; }
  .arena-shell { width: 100%; margin-bottom: 44px; border-inline: 0; box-shadow: none; }.challenge-hero, .arena-leaderboard { padding: 21px 18px; }.page-date { font-size: 7px; }.challenge-hero h1 { font-size: clamp(42px, 13.5vw, 62px); }.challenge-contract { font-size: 16px; }.canonical-contract { font-size: 8px; }
  .section.shell { width: min(100% - 24px, 1120px); padding: 34px 18px; }.method-section .shell { width: min(100% - 28px, 1120px); }
}
