:root {
  --ink: #172e31;
  --muted: #536768;
  --line: #d4dfd9;
  --action: #185843;
  --paper: #f2f5f2;
  --serif: Georgia, 'Times New Roman', serif;
  color-scheme: light;
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body, h1, h2, p { margin: 0; }
a { color: var(--action); }
.skip { position: absolute; top: -5rem; z-index: 1; padding: .65rem 1rem; background: white; }
.skip:focus { top: .5rem; left: .5rem; }
:focus-visible { outline: 3px solid #d78531; outline-offset: 3px; }
.top { background: #123a38; color: white; }
.top-inner, main { max-width: 55rem; margin: auto; padding-inline: clamp(1rem, 4.2vw, 3rem); }
.top-inner { min-height: 73px; display: flex; align-items: center; gap: 1.5rem; padding-block: .75rem; }
.identity { flex: none; display: flex; align-items: center; gap: .6rem; padding-left: 1.4rem; margin-left: auto; border-left: 1px solid #557570; font: 1.25rem/1.15 var(--serif); }
.identity img { flex: none; }
.company { flex: 1 1 auto; min-width: 0; display: grid; overflow-wrap: anywhere; }
.company strong { font-size: 1.4rem; line-height: 1.3; }
.company span { color: #d1e4da; font-size: .875rem; }

main { padding-block: clamp(1.75rem, 5vw, 3.5rem); }
main:focus { outline: none; }
h1, h2 { font-family: var(--serif); font-weight: normal; line-height: 1.15; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 4.5vw, 2.85rem); }
h2 { font-size: 1.45rem; }
.lead { margin: .55rem 0 1.5rem; max-width: 40rem; color: var(--muted); }
.card, .request { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 10px; padding: clamp(1rem, 3vw, 1.5rem); margin-top: 1rem; overflow-wrap: anywhere; }
.card p, .request p { margin-top: .4rem; }
.action { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
button, input { font: inherit; }
button { min-height: 44px; padding: .55rem .95rem; border: 1px solid var(--action); border-radius: 5px; font-weight: 600; color: white; background: var(--action); cursor: pointer; }
button.secondary { color: #224f3b; background: white; border-color: #a9beb2; }
button:disabled { opacity: .6; cursor: not-allowed; }
button:hover:enabled { filter: brightness(.94); }
label { display: block; font-weight: 600; margin: .75rem 0 .3rem; }
.card > label:first-child { margin-top: 0; }
input { max-width: 100%; min-width: 0; color: var(--ink); }
input.code, input.address { display: block; min-height: 44px; padding: .55rem .7rem; border: 1px solid #a8bbae; border-radius: 5px; }
input.code { width: 12rem; letter-spacing: .24em; }
input.address { width: 26rem; }
input[type=file] { display: block; width: 100%; padding: .5rem; border: 1px dashed #809b88; border-radius: 5px; background: #f8faf7; }
input::file-selector-button { font: inherit; padding: .45rem .65rem; color: #224f3b; background: white; border: 1px solid #a9beb2; border-radius: 5px; margin-right: .65rem; }
.challenge { margin-top: 1rem; max-width: 100%; }
.status { color: var(--muted); margin-top: .6rem; }
.status:empty { margin: 0; }
.error { color: #923820; font-weight: 600; }
.meta { font-size: .92rem; color: var(--muted); }
.note { margin-top: 1rem; padding: .75rem 1rem; color: #286043; background: #e3f1e5; border-left: 4px solid #328753; overflow-wrap: anywhere; }
.summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .7rem 1rem; }
.summary p { color: var(--muted); overflow-wrap: anywhere; }
.summary strong { display: block; color: var(--ink); }
ul { list-style: none; margin: 0; padding: 0; }
.request-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .5rem .8rem; }
.badge { display: inline-block; padding: .2rem .55rem; border-radius: 4px; color: #344c57; background: #edf1f3; font-size: .82rem; font-weight: 650; }
.badge.good { color: #286043; background: #e3f1e5; }
.badge.warn { color: #815315; background: #fff0cf; }
.badge.hold { color: #923820; background: #f8e5df; }

@media (max-width: 34rem) {
  .top-inner { min-height: 61px; flex-wrap: wrap; gap: .6rem 1rem; }
  .identity { gap: .4rem; padding-left: .75rem; font-size: 1.05rem; }
  .identity img { width: 30px; height: 30px; }
  .company { flex: 1 1 7rem; }
  .company strong { font-size: 1.1rem; }
  .action > button { flex-grow: 1; }
}
