:root {
  --yellow: #ffc500;
  --yellow-soft: #fff5cc;
  --ink: #222222;
  --muted: #5f5f5f;
  --line: #e5e5e5;
  --panel: #fafafa;
  --panel-strong: #f4f4f4;
  --white: #ffffff;
  --ok: #0f7b45;
  --warn: #a25700;
  --bad: #a63737;
  --mono: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  --sans: "Montserrat", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.intro-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #151515; border: 1px solid var(--line); border-radius: 12px; }
.intro-section { padding-top: 24px; }
.video-caption { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 12px; color: var(--muted); font-size: 13px; }
.video-caption button { flex-shrink: 0; }
.hero-visual .eyebrow { padding: 4px 6px; margin-bottom: 10px; }
.hero-visual .video-caption { align-items: flex-start; padding: 0 6px 6px; font-size: 11px; }
.hero-visual .video-caption .outline-button { font-size: 11px; padding: 0 10px; min-height: 32px; }
.docs-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 44px; align-items: start; }
.docs-toc { position: sticky; top: 98px; display: grid; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); font-size: 13px; }
.docs-toc a:not(.outline-button):hover, .docs-content p a, .docs-content li a { text-decoration: underline; text-underline-offset: 3px; }
.docs-toc .outline-button { margin-top: 12px; padding: 10px; white-space: normal; font-size: 11px; }
.docs-content { min-width: 0; }
.doc-step { scroll-margin-top: 95px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.doc-step h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; }
.docs-callout { padding: 18px 20px; background: var(--yellow-soft); border-left: 3px solid var(--yellow); border-radius: 4px; }
.docs-live { padding: 12px 16px; background: var(--panel); font-family: var(--mono); font-size: 12px; }
.docs-content pre { margin: 0; padding: 20px; overflow: auto; background: #222; color: #f1f1f1; border-radius: 8px; font: 12px/1.8 var(--mono); white-space: pre; }
.docs-content p code, .docs-content li code, .docs-content td code { overflow-wrap: anywhere; font-size: .88em; background: var(--panel-strong); padding: 2px 4px; border-radius: 3px; }
.command-block { position: relative; margin: 20px 0; }
.command-block pre { padding-top: 52px; }
.copy-command { position: absolute; top: 10px; right: 12px; color: #fff; border: 1px solid #777; border-radius: 5px; padding: 4px 10px; background: #333; cursor: pointer; font-size: 12px; }
.workflow-strip { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; counter-reset: workflow; }
.workflow-strip li { padding: 10px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; font-size: 12px; counter-increment: workflow; }
.workflow-strip li::before { content: counter(workflow) ". "; font-weight: 700; }
.docs-content details { margin: 12px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 6px; }
.docs-content summary { cursor: pointer; font-weight: 600; }
.docs-content details pre { margin-top: 12px; max-height: 360px; }
.tutorial-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tutorial-gallery figure { margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.tutorial-gallery img { width: 100%; height: auto; display: block; }
.tutorial-gallery figcaption { padding: 12px; color: var(--muted); font-size: 12px; }
.submission-jobs, .submission-detail { min-width: 0; }
.submission-detail p, .submission-detail h4 { overflow-wrap: anywhere; }
.submission-detail pre { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 960px) {
  .docs-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .docs-toc { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs-toc .eyebrow, .docs-toc .outline-button { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .video-caption { align-items: flex-start; flex-direction: column; }
  .tutorial-gallery { grid-template-columns: minmax(0, 1fr); }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

button,
select,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 70px;
  padding: 0 42px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 208px;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
}

.brand-mark {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
  font-family: var(--mono);
  font-size: 13px;
}

.top-nav a {
  color: #373737;
  border-bottom: 2px solid transparent;
  padding: 24px 0 22px;
}

.top-nav a:hover,
.top-nav a.is-active {
  color: #000000;
  border-bottom-color: var(--yellow);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
}

.nav-dropdown { position: relative; }
.nav-dropdown summary { cursor: pointer; padding: 24px 0 22px; border-bottom: 2px solid transparent; }
.nav-dropdown.is-active > summary, .nav-dropdown[open] > summary { border-bottom-color: var(--yellow); }
.nav-dropdown-links { position: absolute; z-index: 50; left: 0; top: 100%; min-width: 235px; padding: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 30px #0002; }
.top-nav .nav-dropdown-links a { display: block; padding: 12px; border-radius: 4px; }
.nav-dropdown summary:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid #725600; outline-offset: 3px; }
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; margin: 20px 0; }
.download-card { border: 1px solid var(--line); border-radius: 8px; padding: 18px; min-width: 0; }
.download-card a { display: inline-flex; white-space: normal; }

.header-actions,
.hero-actions,
.controls,
.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-actions {
  margin-left: auto;
}

.yellow-button,
.outline-button,
.segment,
select,
.icon-button {
  min-height: 40px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
}

.yellow-button,
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  cursor: pointer;
}

.yellow-button:disabled,
.outline-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.yellow-button {
  color: #161616;
  background: var(--yellow);
  border: 1px solid #d8a900;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.outline-button,
.segment,
select,
.icon-button {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
}

.outline-button:hover,
.segment:hover,
select:hover,
.icon-button:hover {
  border-color: #c8c8c8;
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(420px, 0.82fr) minmax(420px, 1fr);
  gap: 54px;
  align-items: center;
  max-width: 1240px;
  min-height: min(560px, calc(100vh - 70px));
  margin: 0 auto;
  padding: 54px 42px 30px;
}

.hero > * {
  min-width: 0;
}

.hero-copy {
  max-width: 600px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--mono);
  letter-spacing: 0;
  line-height: 1.05;
}

h1 {
  font-size: clamp(48px, 6vw, 78px);
  font-weight: 800;
  overflow-wrap: normal;
  word-break: normal;
}

.hero h1 {
  font-family: var(--sans);
  font-size: clamp(42px, 4.2vw, 62px);
  font-weight: 700;
  line-height: 1.04;
  white-space: nowrap;
}

h2 {
  font-size: 34px;
  font-weight: 800;
}

h3 {
  font-size: 18px;
  font-weight: 800;
}

.hero-text {
  margin: 24px 0 28px;
  color: #3e3e3e;
  font-size: 19px;
  max-width: 520px;
}

.hero-visual {
  position: relative;
  z-index: 1;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.07);
}

.detail-hero {
  max-width: 1220px;
  margin: 0 auto;
  padding: 46px 42px 20px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
}

.breadcrumb a {
  color: var(--ink);
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 28px;
  align-items: center;
  padding: 32px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 10px 10px 0 var(--yellow);
}

.detail-hero h1 {
  font-size: clamp(38px, 5vw, 64px);
}

body[data-page="docs"] .detail-hero-grid,
body[data-page="register"] .detail-hero-grid {
  grid-template-columns: minmax(0, 1fr) 170px auto;
}

body[data-page^="protocol-"] .detail-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
}

.protocol-illustration {
  margin: 0;
  min-width: 0;
}

.protocol-illustration svg {
  display: block;
  width: 100%;
  height: 360px;
}

.detail-visual {
  display: grid;
  place-items: center;
  min-height: 148px;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 8px;
}

.detail-visual span {
  font-family: var(--mono);
  font-size: 54px;
  font-weight: 900;
  line-height: 1;
}

.detail-visual p {
  margin: 8px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 42px 22px;
  gap: 14px;
}

.metric-card,
.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric-card {
  min-height: 104px;
  padding: 18px;
}

.metric-card span {
  display: block;
  font-family: var(--mono);
  font-size: 34px;
  font-weight: 800;
}

.metric-card p,
.info-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section {
  max-width: 1220px;
  margin: 0 auto;
  padding: 66px 42px;
}

.section.compact {
  padding-top: 32px;
  padding-bottom: 20px;
}

.section-heading {
  justify-content: space-between;
  margin-bottom: 22px;
}

.section-note {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.change-guide {
  display: grid;
  gap: 12px;
  margin: -4px 0 18px;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--yellow);
  border-radius: 8px;
}

.change-guide-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.change-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #4a3a00;
  background: var(--yellow-soft);
  border: 1px solid #f0d26a;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
}

.change-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.change-guide-grid span {
  min-height: 36px;
  padding: 8px 10px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
}

.change-guide-grid strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.segment {
  min-width: 44px;
  padding: 0 12px;
}

.segment.is-active {
  background: var(--yellow);
  border-color: #d8a900;
}

select {
  min-width: 172px;
  padding: 0 34px 0 12px;
}

.table-shell {
  width: 100%;
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 12px;
}

th,
td {
  min-height: 56px;
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

th {
  position: sticky;
  top: 0;
  z-index: 3;
  color: #3d3d3d;
  background: var(--panel-strong);
  font-weight: 800;
  white-space: nowrap;
}

td {
  color: #2f2f2f;
}

th:first-child,
td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--white);
  border-right: 1px solid var(--line);
}

th:first-child {
  z-index: 4;
  background: var(--panel-strong);
}

tbody tr:hover {
  background: #fffbed;
}

tbody tr:hover td:first-child {
  background: #fffbed;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.rank-cell {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  background: var(--yellow);
  border: 1px solid #d8a900;
  border-radius: 5px;
  font-weight: 800;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.status.ok,
.status.reference {
  color: var(--ok);
  background: #e8f5ee;
}

.status.oom {
  color: var(--bad);
  background: #fae9e9;
}

.status.warning {
  color: var(--warn);
  background: #fff1dc;
}

.delta {
  color: var(--muted);
}

.delta.positive {
  color: var(--bad);
}

.delta.negative {
  color: var(--ok);
}

.card-grid {
  display: grid;
  gap: 14px;
}

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.overall-ranking-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.overall-ranking-grid.single {
  grid-template-columns: minmax(0, 1fr);
}

.overall-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.overall-card-header {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.overall-card h3 {
  margin: 4px 0 6px;
  font-size: 20px;
}

.overall-card p {
  margin: 0;
  color: var(--muted);
}

.winner-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--yellow-soft);
  border: 1px solid #f0d26a;
  border-radius: 6px;
}

.winner-line span,
.winner-line em {
  font-family: var(--mono);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.winner-line strong {
  font-size: 15px;
}

.overall-list {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.overall-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) max-content max-content;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.overall-row:last-child {
  border-bottom: 0;
}

.overall-row.is-winner {
  background: #f8fbf6;
}

.overall-position,
.overall-average,
.overall-coverage {
  font-family: var(--mono);
  font-weight: 800;
}

.overall-position {
  color: #4a3a00;
}

.overall-method {
  min-width: 0;
  overflow-wrap: anywhere;
}

.overall-average {
  justify-self: end;
  white-space: nowrap;
}

.overall-coverage {
  justify-self: end;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  text-align: right;
  white-space: nowrap;
}

.overall-note {
  min-height: 18px;
  font-size: 12px;
}

.info-card {
  padding: 20px;
}

.protocol-entry {
  padding-top: 18px;
}

.link-card {
  display: grid;
  align-content: start;
  min-height: 210px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.link-card:hover {
  border-color: var(--ink);
  box-shadow: 8px 8px 0 var(--yellow);
  transform: translateY(-2px);
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 900;
}

.card-kicker {
  display: inline-flex;
  justify-self: start;
  margin-bottom: 14px;
  color: #4a3a00;
  background: var(--yellow-soft);
  border: 1px solid #f0d26a;
  border-radius: 999px;
  padding: 3px 9px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  color: #4a3a00;
  background: var(--yellow-soft);
  border: 1px solid #f0d26a;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.admin-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
}

.admin-panel input,
.admin-panel textarea {
  width: 100%;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  font-family: var(--mono);
  font-size: 13px;
}

.admin-panel textarea {
  min-height: 180px;
  resize: vertical;
}

.admin-example {
  margin: 0;
  padding: 12px;
  overflow-x: auto;
  color: #555;
  background: #f8f8f8;
  border: 1px dashed var(--line);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 12px;
  white-space: pre-wrap;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-result {
  min-height: 96px;
  margin: 0;
  padding: 14px;
  overflow-x: auto;
  color: #173b25;
  background: #e8f5ee;
  border: 1px solid #b6dec5;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 12px;
  white-space: pre-wrap;
}

.admin-result.is-error {
  color: #7b1d1d;
  background: #fae9e9;
  border-color: #efb8b8;
}

.submission-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.78fr) minmax(0, 1.22fr);
  gap: 34px;
  align-items: start;
}

.submission-form {
  display: grid;
  gap: 18px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.submission-window {
  padding: 10px 12px;
  color: var(--muted);
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-left: 4px solid var(--line);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
}

.submission-window.is-open {
  color: #173b25;
  background: #e8f5ee;
  border-color: #b6dec5;
}

.submission-window.is-closed {
  color: #7b1d1d;
  background: #fae9e9;
  border-color: #efb8b8;
}

.submission-form-grid,
.conditional-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.submission-form label,
.conditional-fields label {
  display: grid;
  min-width: 0;
  gap: 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
}

.submission-form input,
.submission-form select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 11px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 12px;
}

.submission-form input[type="file"] {
  padding: 7px;
}

.submission-form input[type="file"]::file-selector-button {
  min-height: 28px;
  margin-right: 10px;
  padding: 0 10px;
  color: var(--ink);
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-family: var(--mono);
  font-weight: 700;
  cursor: pointer;
}

.wide-field {
  grid-column: 1 / -1;
}

.conditional-fields {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.submission-policy-summary {
  min-height: 46px;
  padding: 10px 12px;
  color: var(--muted);
  background: var(--panel-strong);
  border-left: 3px solid var(--yellow);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.55;
}

.submission-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.submission-mode {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.submission-result {
  min-height: 84px;
  margin: 0;
  padding: 13px;
  overflow-x: auto;
  color: #173b25;
  background: #e8f5ee;
  border: 1px solid #b6dec5;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 12px;
  white-space: pre-wrap;
}

.submission-result.is-error {
  color: #7b1d1d;
  background: #fae9e9;
  border-color: #efb8b8;
}

.submission-jobs {
  min-width: 0;
}

.compact-heading {
  min-height: 42px;
  margin-bottom: 14px;
}

.compact-heading h3 {
  font-size: 20px;
}

.submission-table {
  min-width: 720px;
}

.submission-table-shell {
  max-height: 440px;
}

.submission-id {
  font-weight: 800;
}

.submission-detail-button {
  min-height: 30px;
  padding: 0 10px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.submission-detail {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--yellow);
  border-radius: 8px;
}

.submission-detail h4 {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
}

.submission-events {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.submission-events li {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.submission-events strong {
  color: var(--ink);
  font-family: var(--mono);
}

.submission-error {
  margin: 0;
  color: var(--bad);
  font-family: var(--mono);
  font-size: 12px;
  white-space: pre-wrap;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 42px;
  color: var(--muted);
  background: var(--panel-strong);
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.42);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  width: min(720px, 100%);
  max-height: min(760px, 90vh);
  overflow-y: auto;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.icon-button {
  width: 38px;
  padding: 0;
}

.rules-list {
  margin: 0 0 18px;
}

.rules-list dt {
  margin-top: 18px;
  font-family: var(--mono);
  font-weight: 800;
}

.rules-list dd {
  margin: 6px 0 0;
  color: var(--muted);
}

@media (max-width: 980px) {
  .site-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    min-height: auto;
    gap: 10px;
    padding: 12px 22px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: auto;
  }

  .nav-toggle {
    display: inline-flex;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .top-nav {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    overflow: visible;
    padding: 4px 0 0;
  }

  body.nav-open .top-nav {
    display: grid;
  }

  .nav-dropdown { grid-column: 1 / -1; }
  .nav-dropdown summary { padding: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
  .nav-dropdown-links { position: static; min-width: 0; margin-top: 6px; box-shadow: none; }

  .top-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 8px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    text-align: center;
    white-space: nowrap;
  }

  .top-nav a.is-active {
    border-color: var(--ink);
    box-shadow: inset 0 -3px 0 var(--yellow);
  }

  .header-actions {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    margin-left: 0;
  }

  .hero,
  .split,
  .submission-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: auto;
    padding: 42px 22px 24px;
  }

  .detail-hero {
    padding: 34px 22px 10px;
  }

  .detail-hero-grid {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 22px;
  }

  body[data-page="docs"] .detail-hero-grid,
  body[data-page="register"] .detail-hero-grid,
  body[data-page^="protocol-"] .detail-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .protocol-illustration svg {
    height: 320px;
  }

  .hero-visual {
    min-width: 0;
  }

  .metric-strip,
  .card-grid.four,
  .card-grid.two,
  .overall-ranking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-strip,
  .section {
    padding-left: 22px;
    padding-right: 22px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .controls {
    width: 100%;
    flex-wrap: wrap;
  }

  .change-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  select {
    flex: 1;
    min-width: 180px;
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: 40px;
  }

  .hero h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 27px;
  }

  .brand span:not(.brand-mark) {
    display: none;
  }

  .top-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .header-actions .yellow-button {
    display: none;
  }

  .hero-actions,
  .header-actions {
    flex-wrap: wrap;
  }

  .metric-strip,
  .card-grid.four,
  .card-grid.two,
  .overall-ranking-grid {
    grid-template-columns: 1fr;
  }

  .overall-card-header {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .overall-card-header .card-icon {
    width: 48px;
    height: 48px;
    font-size: 16px;
  }

  .winner-line,
  .overall-row {
    grid-template-columns: 1fr;
    gap: 5px;
    align-items: start;
    padding: 12px;
  }

  .overall-average,
  .overall-coverage {
    justify-self: start;
  }

  .site-footer {
    flex-direction: column;
  }

  .submission-form-grid,
  .conditional-fields {
    grid-template-columns: 1fr;
  }

  .wide-field {
    grid-column: auto;
  }

  .submission-events li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
/* Email registration shares the site's existing form and button styles. */
.account-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:48px; align-items:start; }
.account-guide, .account-panel { min-width:0; }
.account-steps { padding-left:24px; margin:28px 0; }
.account-steps li { padding:0 0 20px 8px; }
.account-steps strong, .account-steps span { display:block; }
.account-steps span { margin-top:7px; color:var(--muted); line-height:1.6; }
.account-panel { border:1px solid var(--line); border-radius:16px; padding:28px; background:#fff; }
.account-panel label { display:grid; gap:8px; margin:18px 0; font-weight:600; }
.account-panel input { width:100%; min-width:0; padding:13px 14px; border:1px solid var(--line); border-radius:8px; font:inherit; background:#fff; box-sizing:border-box; }
.account-panel fieldset { border:0; padding:0; margin:0; min-width:0; }
.account-panel button:disabled { opacity:.55; cursor:wait; }
.account-token-actions { display:flex; flex-wrap:wrap; gap:10px; margin:20px 0; }
.account-status { background:#f3f6f4; padding:14px 16px; border-radius:8px; line-height:1.6; margin:0 0 16px; overflow-wrap:anywhere; }
.account-status.is-error { background:#fff2ec; color:#833820; }
.account-panel .field-hint, .field-hint { color:var(--muted); font-size:13px; line-height:1.6; font-weight:400; }
.submission-account-note { margin:12px 0 18px; font-size:14px; line-height:1.7; }
body[data-page="overview"] #ranking-details { display:none; }
.text-button { border:0; background:transparent; padding:0; color:inherit; text-decoration:underline; font:inherit; cursor:pointer; }
.submitted-methods-section > div:first-child { margin-bottom:28px; }
.submitted-method-list { display:grid; gap:18px; }
.submitted-method-row { display:grid; grid-template-columns:minmax(0,1fr) 350px; align-items:center; gap:36px; padding:28px 32px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.submitted-method-copy { min-width:0; }
.submitted-method-copy h3 { font-size:25px; line-height:1.3; margin:10px 0 14px; overflow-wrap:anywhere; }
.method-origin { font-size:11px; line-height:1.6; color:var(--muted); letter-spacing:.04em; margin:0; }
.method-description { color:var(--muted); line-height:1.8; margin:0; overflow-wrap:anywhere; }
.submitted-method-chart { min-width:0; }
.method-radar { display:block; width:100%; height:auto; overflow:visible; }
.radar-grid { fill:none; stroke:#dde1e6; stroke-width:1; }
.radar-axis { stroke:#dde1e6; stroke-width:1; stroke-dasharray:3 3; }
.radar-area { fill:#ffc500; fill-opacity:.24; stroke:#d39a00; stroke-width:2; }
.radar-value-line { stroke:#c79700; stroke-width:1.6; }
.radar-dot { fill:#222; stroke:#fff; stroke-width:1.5; }
.radar-label { font:600 11px var(--sans); fill:var(--ink); }
.radar-score { font:11px var(--mono); fill:var(--muted); }
.radar-zero { font:9px var(--mono); fill:#9b9b9b; }
@media (max-width:800px) { .submitted-method-row { grid-template-columns:1fr; gap:18px; padding:24px 20px; } .submitted-method-chart { width:min(100%,350px); justify-self:center; } }
@media (max-width:800px) { .account-layout { grid-template-columns:1fr; gap:24px; } .account-panel { padding:20px; } }
