:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #18303b;
  background: #e9f0eb;
  line-height: 1.5;
  --teal: #0e554c;
  --border: #cbd9d2;
}

* { box-sizing: border-box; }
body { margin: 0; }
.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: 21px max(24px, calc((100vw - 900px) / 2));
  background: #132c32;
  color: #fffdf5;
  font-weight: 700;
}
.mark {
  display: grid;
  place-items: center;
  height: 32px;
  width: 32px;
  color: #132c32;
  background: #d9e993;
  border-radius: 8px;
  font-size: 1.3rem;
}
main { width: min(900px, calc(100% - 36px)); margin: clamp(22px, 6vw, 78px) auto; }
.panel { background: #fffdf6; border: 1px solid var(--border); border-radius: 20px; padding: clamp(20px, 5vw, 48px); }
.step { color: var(--teal); font-size: .9rem; font-weight: 700; margin: 0; }
h1 { margin: 2px 0 1.15rem; line-height: 1.08; font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.045em; }
h2 { font-size: 1.25rem; margin: 1.7rem 0 .65rem; }
form { display: grid; gap: .9rem; align-items: start; max-width: 630px; }
label { display: grid; gap: .25rem; font-weight: 620; }
input, select {
  font: inherit;
  background: #fff;
  color: #18303b;
  border: 1px solid #809790;
  border-radius: 7px;
  padding: .58rem .65rem;
  min-width: 0;
  min-height: 42px;
}
input:disabled, select:disabled { background: #e9efeb; }
input[name="username"] { -webkit-text-security: disc; }
input[type="checkbox"] { min-height: auto; accent-color: var(--teal); }
.check { display: flex; align-items: center; gap: .6rem; }
button, a[download] { font: inherit; font-weight: 690; border-radius: 7px; padding: .62rem .88rem; cursor: pointer; }
button[type="submit"] { justify-self: start; background: var(--teal); border: 1px solid var(--teal); color: #fff; }
button:disabled { opacity: .62; cursor: default; }
button.link { padding: 0; background: transparent; color: var(--teal); text-decoration: underline; border: 0; }
:focus-visible { outline: 3px solid #896227; outline-offset: 3px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.context { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; margin: .4rem 0 1.3rem; }
.switch { display: flex; gap: .45rem; margin: 0 0 1rem; }
.switch button { background: #eff3ed; color: var(--teal); border: 1px solid var(--border); }
.switch button[aria-pressed="true"] { background: #d9e993; color: #203623; border-color: #819455; }
.notice, .error { padding: .8rem 1rem; border-radius: 7px; margin: 1rem 0 0; }
.notice { background: #ecf1de; }
.error { background: #fae7e2; color: #822e24; }
.claim {
  max-width: none;
  grid-template-columns: 1fr 1fr auto auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: .9rem;
}
.claim span { display: block; color: #47605b; font-size: .9rem; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; background: #edf2e9; padding: 1rem; border-radius: 9px; }
dt { font-size: .9rem; color: #365a51; }
dd { margin: .1rem 0 0; font-weight: 690; }
.table { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-variant-numeric: tabular-nums; }
th, td { padding: .6rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
thead { color: var(--teal); background: #edf2e9; }
tfoot { font-weight: 700; }
.documents { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
a[download] { color: var(--teal); border: 1px solid #8eaaa1; }
@media (max-width: 620px) {
  .claim, .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 400px) {
  .fields { grid-template-columns: 1fr; }
}
