:root {
  color-scheme: light;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #17283b;
  background: #f3f6f9;
  --primary: #075b55;
  --ink: #17283b;
  --muted: #516274;
  --line: #d7e1e9;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--primary); }
.top { background: #142638; color: #fff; }
.top-inner, main { width: min(1120px, calc(100% - 44px)); margin-inline: auto; }
.top-inner, nav, .page-head, .filters, .print-tools { display: flex; align-items: center; gap: 16px; }
.top-inner, .page-head, .print-tools { justify-content: space-between; }
.top-inner { min-height: 68px; flex-wrap: wrap; padding-block: 10px; }
.top a, .link { color: #ecf5f8; text-decoration: none; }
.top a:hover, .link:hover { text-decoration: underline; }
.brand { font-size: 19px; font-weight: 700; }
.brand span { color: #69c9b8; }
nav { flex-wrap: wrap; }
main { padding-block: 35px 64px; }
h1, h2, h3 { margin-top: 0; letter-spacing: -.025em; }
h1 { margin-bottom: 20px; font-size: clamp(29px, 5vw, 42px); line-height: 1.08; }
h2 { font-size: 21px; }
h3 { font-size: 17px; }
.eyebrow { color: var(--primary); margin: 0 0 8px; font-size: 14px; font-weight: 650; }
.card, .sheet { margin-bottom: 18px; padding: 23px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.login { max-width: 430px; margin: 55px auto; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.metric { border-top: 3px solid #259b83; }
.metric strong { display: block; margin-top: 8px; font-size: clamp(24px, 4vw, 34px); letter-spacing: -.04em; }
.metric small, .metric p, .muted, td small { color: var(--muted); }
.metric small { font-size: 16px; }
.metric p { margin: 6px 0 0; }
.competition-progress { padding: 12px 0; border-top: 1px solid var(--line); }
.competition-progress:first-of-type { border-top: 0; }
.competition-progress small { display: block; margin-top: 3px; color: var(--muted); }
.competition-progress p { margin: 7px 0 0; }
label { display: grid; gap: 6px; font-weight: 600; min-width: 0; }
input, select, textarea { width: 100%; color: var(--ink); background: white; border: 1px solid #aebdca; border-radius: 7px; padding: 10px 11px; font: inherit; }
textarea { min-height: 72px; resize: vertical; }
button, .button { display: inline-block; background: var(--primary); color: white; font: inherit; font-weight: 650; border: 1px solid transparent; border-radius: 7px; padding: 10px 15px; text-decoration: none; cursor: pointer; }
button:hover, .button:hover { filter: brightness(.92); }
:focus-visible { outline: 3px solid #38a59b; outline-offset: 3px; }
button:disabled, select:disabled { opacity: .58; cursor: default; }
.secondary { color: var(--primary); background: #e7f4f0; border-color: #b7d9d3; }
.link { background: none; padding: 0; font-weight: 400; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; margin-block: 12px 16px; }
.filters { align-items: end; flex-wrap: wrap; margin-block: 0 17px; }
.filters label { flex: 0 1 270px; }
.stack { display: grid; gap: 16px; }
.stack button { justify-self: start; }
.notice { padding: 12px; border-left: 4px solid #318b7b; background: #e6f4f0; border-radius: 4px; }
.warning { border-color: #c87b1b; background: #fff3dc; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 11px 9px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); background: #f6f8fa; font-size: 14px; }
td small { display: block; margin-top: 3px; }
.status { padding: 3px 7px; background: #e7f4f0; color: #1b6257; border-radius: 4px; white-space: nowrap; font-size: 13px; }
.status.correction { background: #fff3dc; color: #784309; }
summary { cursor: pointer; font-weight: 650; }
details form { margin-top: 14px; }
dl { display: grid; grid-template-columns: minmax(115px, 33%) minmax(0,1fr); gap: 7px 12px; }
dd { margin: 0; overflow-wrap: anywhere; }
dt { color: var(--muted); }
.sheet { max-width: 800px; margin: 14px auto; }
.sheet h2 { padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.signatures { display: flex; gap: 28px; margin-top: 52px; }
.signatures span { flex: 1; border-top: 1px solid; padding-top: 5px; }
.remarks { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 670px) {
  .metrics { grid-template-columns: 1fr; gap: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .page-head { align-items: flex-start; flex-direction: column; margin-bottom: 18px; }
  .top-inner, main { width: calc(100% - 30px); }
  .card { padding: 15px; }
}
@page { size: A4; margin: 15mm; }
@media print {
  html, body { background: white; color: black; }
  .top, .print-tools { display: none; }
  main { width: 100%; padding: 0; }
  .sheet { border: 0; padding: 0; margin: 0; }
  .sheet h2, .signatures { break-inside: avoid; }
}
