:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #202723;
  background: #f5f7f5;
  accent-color: #186444;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
main { width: min(1050px, calc(100% - 2.5rem)); margin: 3rem auto; }
h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); letter-spacing: -0.045em; margin: 0; }
h2, h3, p { margin: 0; }
header { margin-bottom: 1.5rem; }
header p { max-width: 64ch; margin-top: .65rem; line-height: 1.5; color: #45534b; }

form, section {
  padding: 1.4rem;
  margin-bottom: 1.25rem;
  border: 1px solid #d8e0da;
  border-radius: 10px;
  background: #fff;
}

fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; font-weight: 650; }
.profiles, .actions { display: flex; flex-wrap: wrap; gap: .95rem; margin-top: .7rem; }
.profiles label { display: inline-flex; gap: .3rem; align-items: center; }
.pageview { display: block; margin: 1.15rem 0 .4rem; }
small { color: #526159; }
input[type="text"], input[type="search"] { padding: .52rem .6rem; border: 1px solid #aebdb3; border-radius: 6px; font: inherit; max-width: 100%; }
button { padding: .61rem .85rem; border: 1px solid #186444; border-radius: 6px; font: inherit; font-weight: 650; cursor: pointer; }
button[type="button"] { color: #186444; background: white; }
#start-button { color: white; background: #186444; }
button:disabled { opacity: .6; cursor: default; }
:focus-visible { outline: 3px solid #0477ab; outline-offset: 3px; }
.hint { font-size: .9rem; color: #526159; margin-top: .55rem; }

.summary { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: .6rem 0 1rem; justify-content: space-between; }
.summary code, #deliveries code { overflow-wrap: anywhere; }
summary { cursor: pointer; }
#delivery-details { padding: .75rem 0; }
#deliveries { padding-inline-start: 1.25rem; line-height: 1.65; margin: .75rem 0 0; }
#deliveries li { overflow-wrap: anywhere; }
.results-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .65rem; margin-bottom: .6rem; }
.results-heading label { font-size: .93rem; }
.results-heading input { margin-inline-start: .35rem; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 570px; text-align: left; }
th, td { padding: .6rem .5rem; vertical-align: top; border-bottom: 1px solid #e1e8e3; }
th { background: #eef3ef; color: #355043; font-size: .85rem; }
td { font-size: .92rem; }
td:nth-child(3) { white-space: nowrap; }
.state { font-weight: 600; }
.state[data-state="collected"] { color: #17623e; }
.state:is([data-state="error"], [data-state="timeout"]) { color: #a03416; }
pre { max-width: min(45ch, 100%); margin: .45rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 550px) {
  main { width: calc(100% - 1.25rem); margin: 1.2rem auto; }
  form, section { padding: .9rem; }
}
