@font-face {
  font-family: "DM Sans";
  src: url("/media/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/media/instrument-serif.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/media/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  --bg: #f5f6f1;
  --paper: #fffffb;
  --ink: #132823;
  --muted: #52615a;
  --line: #dce2d9;
  --accent: #235b4c;
  --accent-dark: #144132;
  --accent-wash: #e7f1e8;
  --dark: #122521;
  --green: #28634c;
  --green-soft: #dceee0;
  --orange: #984728;
  --orange-soft: #f7eadd;
  --neutral-soft: #eef0ea;
  --heading: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2,.65,.25,1);
  --shadow: 0 8px 30px #14282009, 0 1px 2px #1428200b;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--sans); }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .56; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #2f7e67; outline-offset: 3px; }
.shell { max-width: 1370px; width: calc(100% - 92px); margin-inline: auto; }
.skip, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip-path: none; z-index: 20; padding: .7rem 1rem; background: white; top: .5rem; left: .5rem; }
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.wordmark {
  --brand-size: 38px;
  display: inline-flex;
  align-items: center;
  gap: .57rem;
  flex-shrink: 0;
  border-radius: 9px;
  color: #102923;
  text-decoration: none;
  white-space: nowrap;
}
.brand-name { font: 400 1.66rem/1 var(--heading); letter-spacing: -.025em; }
.brand-name em { color: #2d6656; }
.brand-mark {
  display: block;
  width: var(--brand-size);
  height: var(--brand-size);
  flex-shrink: 0;
}
.footer-inner .wordmark { --brand-size: 29px; gap: .43rem; }
.footer-inner .brand-name { font-size: 1.18rem; }
.header-inner nav { display: flex; align-items: stretch; gap: 25px; align-self: stretch; min-width: 0; overflow-x: auto; }
.header-inner nav a { display: grid; place-items: center; color: var(--muted); border-bottom: 2px solid transparent; padding-top: 2px; text-decoration: none; font-size: .9rem; font-weight: 600; white-space: nowrap; }
.header-inner nav a[aria-current] { color: var(--accent-dark); border-bottom-color: var(--accent); }
.header-actions { display: flex; align-items: center; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 8px; color: white; background: var(--accent); padding: 10px 16px; min-height: 43px; font-size: .9rem; font-weight: 680; text-decoration: none; line-height: 1.25; white-space: nowrap; }
.button:hover { background: var(--accent-dark); }
.button.quiet { background: var(--paper); border-color: var(--line); color: var(--ink); }
.button.quiet:hover { background: var(--accent-wash); border-color: #98ad9d; }
.button.small { min-height: 38px; padding: 7px 12px; }
.button.text { background: transparent; color: var(--accent-dark); padding: 7px 8px; }
.button.text:hover { background: var(--accent-wash); }
main { min-height: 68vh; padding-block: 43px 70px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--heading); font-weight: 500; line-height: 1.05; letter-spacing: -.045em; }
h1 { font-size: clamp(3rem, 5.6vw, 5.2rem); }
h2 { font-size: clamp(2rem, 3vw, 2.75rem); }
h3 { font-size: 1.02rem; font-weight: 700; }
.eyebrow { color: var(--accent); font: 680 .82rem/1.35 var(--sans); letter-spacing: .11em; text-transform: uppercase; }
.hero {
  display: grid;
  grid-template-columns: minmax(0,.87fr) minmax(0,1.13fr);
  min-height: 460px;
  padding: 17px;
  gap: 20px;
  isolation: isolate;
  border: 1px solid #1e3630;
  border-radius: 25px;
  overflow: hidden;
  color: #f3f6ed;
  background: radial-gradient(ellipse at 0% 100%, #29493a 0%, transparent 65%), #142a24;
  box-shadow: 0 15px 38px #152a2229;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
  padding: 31px 14px 36px clamp(22px,3.2vw,55px);
}
.hero-copy h1 {
  margin: 0 0 20px;
  max-width: 13ch;
  font-size: clamp(4.3rem,7.2vw,7.3rem);
  line-height: .87;
  letter-spacing: -.032em;
}
.hero-copy h1 em { display: block; color: #cae2c4; font-weight: inherit; }
.lede { color: #ccd9d1; font-size: clamp(1rem,1.35vw,1.19rem); max-width: 34ch; line-height: 1.55; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 23px; }
.hero .actions { margin-top: 28px; gap: 12px; }
.hero .button { color: #112920; background: #d4e9cc; border-color: #d4e9cc; min-height: 47px; border-radius: 9px; }
.hero .button:hover { background: #e5f4df; border-color: #e5f4df; }
.hero .button.quiet { color: #edf4ea; background: #ffffff08; border-color: #a8c4b160; }
.hero .button.quiet:hover { background: #ffffff16; border-color: #a8c4b1aa; }
.hero.cell-intro { min-height: auto; display: block; padding: clamp(17px, 2.3vw, 30px) clamp(20px, 3.5vw, 48px); }
.cell-intro .hero-copy { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 8px 36px; align-items: center; padding: 0; }
.cell-intro .hero-copy h1 { grid-row: span 2; max-width: none; margin: 0; font-size: clamp(2.9rem, 4.55vw, 4.2rem); }
.cell-intro .hero-copy h1 em { display: inline; }
.cell-intro .actions { margin-top: 7px; }
.campaign-activity { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; margin-top: 1rem; font-size: .9rem; color: #d3e7d8; }
.campaign-activity:empty { display: none; }
.campaign-activity strong { color: #fff; font-variant-numeric: tabular-nums; }
.cell-record-link { display: table; margin-top: 4px; color: var(--accent-dark); font-size: .83rem; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.point { width: 8px; height: 8px; background: #77998b; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.point.scored { background: #ac623b; }
.point.verified { background: #417c5e; }
.metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 18px; }
.metric {
  position: relative;
  padding: 16px 21px 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.metric b { display: block; font: 400 2.8rem/.94 var(--heading); font-variant-numeric: lining-nums tabular-nums; }
.metric span { display: block; margin-top: 7px; color: var(--muted); font-size: .88rem; font-weight: 600; }
.metric:nth-child(2) b { color: var(--orange); }
.metric:nth-child(3) b { color: var(--green); }
.duo { display: grid; grid-template-columns: 1.15fr .85fr; gap: 23px; margin-top: 39px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.section-head a { font-size: .92rem; font-weight: 650; color: var(--accent-dark); text-underline-offset: 4px; }
.panel { border: 1px solid var(--line); border-radius: 13px; background: var(--paper); box-shadow: var(--shadow); }
.campaign-panel { padding: 24px; display: grid; justify-items: start; gap: 13px; background: linear-gradient(145deg,#f1f6eec9 0%,transparent 70%),var(--paper); }
.campaign-panel h3 { font: 400 2.35rem/1.04 var(--heading); }
.campaign-panel p { color: var(--muted); }
.campaign-meta, .badge-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; background: var(--neutral-soft); color: #47574f; padding: 4px 9px; font-size: .79rem; line-height: 1.3; white-space: nowrap; font-weight: 650; }
.badge.prediction, .badge.queued { color: #2f5b4e; background: var(--accent-wash); }
.badge.verified.good, .badge.rescue { color: #245943; background: var(--green-soft); }
.badge.lethal { color: #894021; background: var(--orange-soft); }
.progress { height: 9px; width: 100%; appearance: none; border: 0; border-radius: 20px; background: #e2e9df; overflow: hidden; }
.progress::-webkit-progress-bar { background: #e2e9df; }
.progress::-webkit-progress-value { background: #27614d; }
.progress::-moz-progress-bar { background: #27614d; }
.mono { font: .85rem/1.4 var(--mono); }
.page-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 25px; }
.page-head h1 { font-size: clamp(2.55rem, 5vw, 4.2rem); margin: 6px 0 7px; }
.page-head p:not(.eyebrow) { color: var(--muted); }
.filter-row { display: grid; grid-template-columns: 1.65fr repeat(4, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.filter-row input, .filter-row select { min-width: 0; width: 100%; }
input, select, textarea { width: 100%; color: var(--ink); background: var(--paper); border: 1px solid #7b8c80; border-radius: 7px; padding: 9px 10px; min-height: 42px; }
input::placeholder, textarea::placeholder { color: #58655c; }
textarea { resize: vertical; }
.select { position: relative; }
select { appearance: none; padding-right: 30px; }
.select::after { content: ""; pointer-events: none; position: absolute; top: 17px; right: 14px; width: 6px; height: 6px; border-right: 1.7px solid var(--ink); border-bottom: 1.7px solid var(--ink); transform: rotate(45deg); }
.board-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 17px 0 10px; }
.segments { display: flex; flex-wrap: wrap; gap: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); padding: 3px; }
.segment { background: none; color: var(--muted); padding: 6px 12px; border: 0; border-radius: 5px; font-weight: 650; font-size: .88rem; }
.segment[aria-pressed=true], .segment[aria-current=page] { color: white; background: var(--accent); }
.activity-period { width: fit-content; margin-bottom: 12px; }
.activity-period .segment { text-decoration: none; }
.activity-pages, .profile-pages { margin-top: 14px; }
.contributor-predictions { margin-bottom: 18px; }
.result-count { color: var(--muted); font-size: .9rem; }
.table-wrap { overflow: auto; }
table { width: 100%; text-align: left; border-collapse: collapse; }
th, td { padding: 13px 15px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: .82rem; font-weight: 660; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td { font-size: .92rem; }
td a { color: var(--accent-dark); font-weight: 700; text-underline-offset: 3px; }
.score { white-space: nowrap; font: 650 .9rem/1.4 var(--mono); }
.score.lethal { color: var(--orange); }
.score.rescue { color: var(--green); }
.score.none { color: var(--muted); font-family: var(--sans); font-weight: 500; }
.table-foot { margin-top: 15px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lanes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start; gap: 12px; }
.lane { display: grid; gap: 8px; min-width: 0; padding: 13px; }
.record-card { text-decoration: none; padding: 13px; border: 1px solid var(--line); border-radius: 8px; display: grid; gap: 6px; }
.record-card:hover { border-color: #86aa93; background: var(--accent-wash); }
.record-card p { color: var(--muted); font-size: .89rem; }
.layout-stack { display: grid; gap: 14px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(255px, 1fr); align-items: start; gap: 18px; }
.pad { padding: 21px; }
.pad h3 { margin-bottom: 7px; }
.pad p + p { margin-top: 7px; }
.subtle { color: var(--muted); }
.claim-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-bottom: 20px; }
.claim-card p { margin-bottom: 14px; color: var(--muted); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 10px 1fr auto; column-gap: 10px; padding: 12px 15px; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline li > .point { margin-top: 8px; }
.timeline strong { font-size: .91rem; }
.timeline a { text-underline-offset: 3px; }
.timeline small { color: var(--muted); font-size: .81rem; white-space: nowrap; }
.timeline p { color: var(--muted); font-size: .88rem; }
.empty { color: var(--muted); padding: 20px; }
ul.values { margin: .35rem 0 0; padding-left: 1.3rem; }
.values li + li { margin-top: .35rem; }
.leases { display: grid; gap: 10px; margin-top: 14px; }
.lease { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 15px; }
.lease a { font-weight: 700; }
.lease .actions { margin: 0; }
.detail-label { font: 500 1.8rem/1.18 var(--heading); color: var(--accent-dark); }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); background: var(--paper); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px 32px; padding-block: 24px; font-size: .9rem; }
.footer-brand { display: grid; justify-items: start; gap: .35rem; }
.footer-social { display: grid; gap: .45rem; }
.footer-social p { color: var(--ink); font-weight: 700; }
.footer-social-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.footer-social-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .75rem;
  color: var(--accent-dark);
  background: var(--accent-wash);
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 650;
  text-decoration: none;
}
.footer-social-links a:hover { border-color: var(--accent); }
.footer-social-links svg { flex: none; }
.footer-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .55rem 1.3rem; padding-top: 14px; border-top: 1px solid var(--line); }
.footer-paper { margin-inline-start: auto; }
dialog { width: min(540px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--paper); box-shadow: 0 12px 50px #14221850; }
dialog::backdrop { background: #152b23a6; }
.dialog-body { padding: 23px; }
.dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dialog-head h2 { font-size: 2.1rem; }
.close { border: 1px solid var(--line); min-width: 39px; min-height: 39px; border-radius: 8px; background: var(--paper); color: var(--ink); font-size: 1.2rem; }
.form-grid { display: grid; gap: 11px; margin-top: 16px; }
.form-grid label { display: grid; gap: 4px; font-weight: 650; font-size: .9rem; }
.form-grid legend { font-weight: 700; }
.form-grid small { color: var(--muted); font-weight: 500; font-size: .85rem; }
.form-grid .actions { margin-top: 4px; }
pre { background: var(--accent-wash); padding: 11px; border-radius: 8px; overflow: auto; }
.toast { position: fixed; z-index: 5; right: 18px; bottom: 19px; padding: 12px 16px; max-width: min(390px, calc(100% - 36px)); border-radius: 8px; background: var(--dark); color: white; box-shadow: 0 5px 20px #14221848; }
.error { color: #894021; font-weight: 600; }
.site-header { background: var(--paper); }
.header-inner { min-height: 70px; }
.header-inner nav a { transition: color .18s var(--ease), border-color .22s var(--ease); }
.header-inner nav a:hover { color: var(--accent-dark); }
main { padding-block: 28px 74px; }
main:focus { outline: none; }
h1, h2 { font-weight: 400; letter-spacing: -.025em; }
h2 { font-size: clamp(2.2rem,3.4vw,3.35rem); }
.page-head h1 { font-size: clamp(3.1rem,6vw,5.2rem); }
.page-head { margin: 15px 0 26px; }
.button, .segment, .record-card, input, select, textarea, .close {
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.button:not(:disabled):hover, .record-card:hover { transform: translateY(-1px); }
.button:active:not(:disabled) { transform: translateY(0); }
th { background: #f1f5ee; color: #435a4e; }
.table-wrap thead th:first-child { border-top-left-radius: 12px; }
.table-wrap thead th:last-child { border-top-right-radius: 12px; }
.column-sort {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}
.column-sort:hover { color: var(--accent-dark); }
[aria-sort="none"] .column-sort span { opacity: .6; }
tbody tr { transition: background-color .18s var(--ease); }
tbody tr:hover { background: #f0f6ed; }
.record-card { background: var(--paper); }
.score { font-variant-numeric: tabular-nums; }
.timeline li { padding: 13px 16px; }
.timeline small { white-space: normal; text-align: right; }
.detail-layout .pad h2 { margin-bottom: 9px; }
.detail-layout .mono { overflow-wrap: anywhere; }
#activity-record { margin-top: 12px; }
dialog[open] { animation: dialog-in .27s var(--ease) both; }
dialog[open]::backdrop { animation: backdrop-in .24s var(--ease) both; }
.toast:not([hidden]) { animation: dialog-in .24s var(--ease) both; }
#login-command { white-space: pre-wrap; overflow-wrap: anywhere; }
@keyframes reveal { from { opacity: 0; } to { opacity: 1; } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 1080px) {
  .shell { width: calc(100% - 48px); }
  .header-inner { gap: 15px; }
  .header-inner nav { gap: 16px; }
  .duo, .detail-layout { gap: 18px; }
  .hero { gap: 13px; min-height: 414px; }
  .hero-copy { padding-left: 22px; }
  .hero-copy h1 { font-size: clamp(3.9rem,8.1vw,6rem); }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 30px); }
  .header-inner { flex-wrap: wrap; gap: 0 10px; padding-top: 11px; }
  .header-inner .wordmark { --brand-size: 36px; }
  .header-inner .brand-name { font-size: 1.39rem; }
  .header-inner nav { order: 3; width: 100%; overflow-x: auto; min-height: 43px; justify-content: flex-start; gap: 15px; }
  .header-inner nav a { min-height: 43px; font-size: .88rem; }
  .header-actions { margin-left: auto; }
  main { padding-block: 16px 48px; }
  .hero, .duo, .detail-layout, .claim-grid { grid-template-columns: 1fr; }
  .hero { gap: 22px; min-height: auto; padding: 11px; border-radius: 18px; }
  .hero-copy { padding: 17px 12px 0; }
  .hero-copy h1 { max-width: 20ch; font-size: clamp(3.65rem,11vw,5.8rem); margin-bottom: 15px; text-wrap: balance; }
  .hero-copy h1 em { display: inline; }
  .hero .actions { margin-top: 19px; gap: 8px; }
  .hero .button { min-height: 43px; padding-inline: 13px; }
  .cell-intro .hero-copy { display: flex; align-items: start; gap: 11px; }
  .metrics { grid-template-columns: repeat(2,1fr); gap: 8px; margin-top: 12px; }
  .metric { padding: 12px 13px; }
  .metric b { font-size: 2.32rem; }
  .metric span { font-size: .83rem; }
  .duo { margin-top: 29px; }
  .page-head { align-items: start; flex-direction: column; gap: 10px; }
  .filter-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .filter-row input { grid-column: 1 / -1; }
  .lanes { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-paper { margin-inline-start: 0; }
  th, td { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
