.preflight-header { padding-block: 1.1rem; }
.preflight-header > a { font-weight: 800; letter-spacing: .08em; text-decoration: none; }
.preflight-header nav { display: flex; flex-wrap: wrap; gap: .55rem 1.25rem; }
.preflight { padding-bottom: 3.5rem; }
.preflight-hero {
  padding: clamp(1.3rem, 5vw, 3.6rem);
  margin-top: 1rem;
  border-radius: 1rem;
  background: #142e3e;
  color: #f4f7f5;
}
.preflight-hero h1 {
  max-width: 20ch;
  margin: .5rem 0 1rem;
  font-size: clamp(2.15rem, 5vw, 4rem);
  line-height: 1.07;
  letter-spacing: -.045em;
}
.preflight-hero p { max-width: 65ch; }
.preflight-hero a, .preflight-label { color: #c8e8d8; }
.preflight-label { font-size: .85rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.preflight-panel {
  padding: clamp(1rem, 3vw, 2.05rem);
  margin-block: 1.4rem;
  background: #fffef9;
  color: #142e3e;
  border: 1px solid #d8e2dc;
  border-radius: .75rem;
}
.preflight-panel a { color: #125548; }
.preflight-inputs input[type="file"] { width: 100%; color: #142e3e; font: inherit; }
.preflight-inputs input::file-selector-button { font: inherit; color: #142e3e; }
#paste-inputs { margin-block: 1rem; }
#paste-inputs summary, .preflight-example summary { cursor: pointer; font-weight: 700; }
.preflight h2 { margin: 0 0 .4rem; font-size: clamp(1.3rem, 3vw, 2rem); line-height: 1.2; letter-spacing: -.025em; }
.preflight-panel p { margin-block: .5rem .9rem; }
.preflight-formats, .preflight-privacy { font-size: .91rem; color: #49616b; }
.preflight code { overflow-wrap: anywhere; color: #164e44; }
.preflight-inputs, .preflight-support { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.4rem; }
.preflight-inputs label { display: block; margin-bottom: .4rem; font-weight: 700; }
.preflight-inputs textarea {
  width: 100%;
  padding: .65rem;
  font: .9rem/1.5 ui-monospace, Consolas, monospace;
  color: #142e3e;
  background: #f6f8f4;
  border: 1px solid #839a93;
  border-radius: .35rem;
  resize: vertical;
}
.preflight-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .75rem; }
.preflight-actions button {
  padding: .6rem .85rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: #125548;
  border: 1px solid #125548;
  border-radius: .35rem;
}
.preflight-actions .preflight-secondary { color: #125548; background: #fffef9; }
.preflight :is(a, button, textarea, .preflight-table):focus-visible { outline: 3px solid #298473; outline-offset: 3px; }
.preflight-error { color: #842c21; font-weight: 650; }
.preflight-table { overflow-x: auto; }
.preflight-table table { width: 100%; border-collapse: collapse; text-align: left; }
.preflight-table :is(th, td) { padding: .55rem .7rem; vertical-align: top; border-bottom: 1px solid #d8e2dc; overflow-wrap: anywhere; }
.preflight-table td:first-child { min-width: 6rem; }
.preflight-table td:nth-child(2) { min-width: 7rem; font-weight: 650; }
.preflight-table tr[data-status="difference"] td:nth-child(2) { color: #882f23; }
.preflight-table tr[data-status="review"] td:nth-child(2) { color: #745019; }
.preflight-table tr[data-status="match"] td:nth-child(2) { color: #125548; }
.preflight-support { margin-top: 2rem; }
.eprel-fields { display: grid; gap: .5rem; max-width: 45rem; margin-block: 1rem; }
.eprel-fields label { font-weight: 700; }
.eprel-fields label span { font-weight: 400; }
.eprel-fields input, .eprel-code {
  width: 100%;
  padding: .65rem .8rem;
  background: #f6f8f4;
  border: 1px solid #839a93;
  border-radius: .35rem;
  color: #142e3e;
  font: .95rem/1.45 ui-monospace, Consolas, monospace;
}
.eprel-fields input:focus-visible { outline: 3px solid #298473; outline-offset: 3px; }
.eprel-fields input + label { margin-top: .45rem; }
.eprel-code { display: inline-block; width: auto; max-width: 100%; margin-block: .4rem; font-weight: 750; overflow-wrap: anywhere; }
@media (max-width: 43rem) {
  .preflight-inputs, .preflight-support { grid-template-columns: 1fr; }
}
