:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  --background: #080a10;
  --surface: #11131b;
  --text: #ffffff;
  --muted: #bec0c9;
  --line: #666974;
  --red: #f4303c;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); line-height: 1.5; }
header, main { width: min(100% - 48px, 720px); margin-inline: auto; }
header { padding: 28px 0 22px; border-bottom: 3px solid var(--red); }
.brand { color: var(--text); font-size: 15px; font-weight: 800; letter-spacing: .1em; text-decoration: none; }
main { padding: 30px 0 52px; }
h1 { margin: 0 0 28px; font-size: clamp(32px, 5vw, 42px); line-height: 1.1; font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: 25px; margin: 0 0 12px; }
label { display: block; margin: 20px 0 8px; font-size: 14px; font-weight: 700; }
input, textarea { display: block; width: 100%; border: 1px solid var(--line); border-radius: 0; background: var(--surface); color: var(--text); padding: 11px 12px; font: inherit; }
textarea { min-height: 170px; line-height: 1.55; resize: vertical; }
input::placeholder { color: var(--muted); }
input:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.types { display: grid; grid-template-columns: 1fr 1fr; border: 0; padding: 0; margin: 0 0 26px; }
.types label { margin: 0; position: relative; cursor: pointer; }
.types input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.types span { display: block; padding: 13px 12px; border: 1px solid var(--line); text-align: center; background: var(--surface); }
.types label + label span { border-left: 0; }
.types input:checked + span { color: var(--text); background: #9e1120; border-color: var(--red); box-shadow: inset 0 -2px var(--red); }
.types input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 4px; position: relative; z-index: 1; }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.optional { color: var(--muted); font-size: 12px; font-weight: 400; }
button, .button { display: inline-block; border: 1px solid var(--red); border-radius: 0; background: var(--red); color: #080a10; font: inherit; font-weight: 800; padding: 12px 24px; text-decoration: none; cursor: pointer; }
#submit { margin-top: 28px; min-width: 180px; }
button:hover, .button:hover { background: #ff5660; border-color: #ff5660; }
button:disabled { opacity: .6; cursor: wait; }
.secondary { background: transparent; border-color: var(--line); color: var(--text); }
.secondary:hover { background: var(--surface); border-color: var(--text); }
.attachments { display: flex; justify-content: space-between; align-items: start; gap: 14px; position: relative; margin-top: 24px; padding: 14px 0; border-block: 1px solid #3e414d; }
.check { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 400; font-size: 14px; }
.check input { width: 17px; height: 17px; margin: 0; accent-color: var(--red); }
summary { color: var(--text); cursor: pointer; font-size: 14px; text-align: right; list-style: none; text-decoration: underline; text-underline-offset: 4px; }
summary::-webkit-details-marker { display: none; }
.attachments:has(details[open]) { padding-bottom: 0; flex-wrap: wrap; }
details[open] { width: 100%; }
details[open] summary { position: absolute; top: 14px; right: 0; }
.diagnostic-content { padding-top: 6px; }
#diagnostic-status { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
#diagnostic-status:empty { display: none; }
pre { overflow: auto; max-height: 260px; white-space: pre-wrap; overflow-wrap: anywhere; border: 1px solid #3e414d; background: var(--surface); padding: 14px; font-size: 12px; }
.notice, .error { color: var(--text); border-left: 3px solid var(--red); background: var(--surface); padding: 12px 16px; font-size: 14px; }
#reference { color: var(--muted); font-family: monospace; margin-bottom: 24px; }
.sr-only, .honeypot { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }
@media (max-width: 520px) {
  header, main { width: calc(100% - 36px); }
  header { padding-top: 22px; }
  main { padding-top: 26px; }
  .two-columns { grid-template-columns: 1fr; gap: 0; }
  #submit { width: 100%; }
}
