:root {
  color-scheme: light;
  font-family: system-ui, "Malgun Gothic", sans-serif;
  color: #172538;
  background: #f3f5f8;
  line-height: 1.55;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
header { background: #182641; color: white; border-bottom: 3px solid #dcae3b; }
.frame { width: min(56rem, calc(100% - 2.5rem)); margin-inline: auto; }
.header { min-height: 4rem; display: flex; align-items: center; justify-content: space-between; }
main { padding: 2.25rem 0 3rem; }
h1 { font-size: clamp(1.65rem, 5vw, 2.4rem); margin: 0 0 1.35rem; }
h2 { font-size: 1rem; margin: 0; }
form, section { background: white; border: 1px solid #d7dfeb; border-radius: .8rem; padding: 1.35rem; }
form { display: grid; gap: .55rem; max-width: 25rem; }
label { font-weight: 650; }
input { border: 1px solid #aab7c8; border-radius: .45rem; min-height: 2.85rem; padding: .6rem .75rem; font: inherit; margin-bottom: .45rem; }
button, .download { border: 1px solid transparent; border-radius: .5rem; padding: .6rem .9rem; background: #343b77; color: white; font: inherit; font-weight: 650; cursor: pointer; text-decoration: none; }
button:disabled { opacity: .65; cursor: progress; }
.quiet { background: transparent; border-color: #8290a7; }
:focus-visible { outline: 3px solid #926100; outline-offset: 3px; }
#period { margin: .2rem 0 1.15rem; color: #485a72; }
#files { padding: 0; margin: 0; list-style: none; }
#files li { border-top: 1px solid #d7dfeb; padding: 1rem 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1rem; }
#files li:last-child { padding-bottom: 0; }
#files strong { overflow-wrap: anywhere; display: block; }
small { color: #485a72; }
#message { border-left: 4px solid #926100; padding: .5rem .8rem; background: #fff8e5; }

@media (max-width: 35rem) {
  #files li { align-items: start; flex-direction: column; }
}
