:root {
  color-scheme: light;
  font-family: Inter, system-ui, sans-serif;
  color: #172744;
  background: #f3f6fc;
  line-height: 1.5;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.wrap { width: min(100% - 2rem, 68rem); margin-inline: auto; }
.topbar { background: #101e38; color: white; }
.topline { min-height: 4.25rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.brand { color: white; font-size: 1.3rem; font-weight: 800; text-decoration: none; }
.brand span { color: #8bb9ff; }
.site-link { color: #e4edff; font-size: .875rem; }
.hero { padding: clamp(2rem, 6vw, 4.25rem) 0 2rem; }
h1 { margin: 0; font-size: clamp(2.65rem, 7vw, 4.75rem); line-height: 1.08; letter-spacing: -.052em; }
.hero p { color: #435674; margin: .8rem 0 0; font-size: clamp(1rem, 2.2vw, 1.15rem); }
.grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.15rem; padding-bottom: 3rem; }
.card { background: white; border: 1px solid #dce5f2; border-radius: 1rem; padding: clamp(1.15rem, 3vw, 1.65rem); }
h2 { margin: 0; font-size: 1.25rem; letter-spacing: -.02em; }
.assist { margin: .4rem 0 0; color: #435674; }
.fields { display: grid; grid-template-columns: minmax(8rem, .8fr) minmax(0, 1.7fr); gap: .8rem; margin-top: 1.4rem; }
label { display: block; font-weight: 650; margin-bottom: .35rem; font-size: .9rem; }
input, select, button { font: inherit; border-radius: .5rem; min-height: 2.75rem; }
input, select { width: 100%; padding: .55rem .7rem; border: 1px solid #9aaecb; background: white; color: inherit; }
select { appearance: none; padding-right: 2rem; }
.fields > div:first-child { position: relative; }
.fields > div:first-child::after {
  content: ""; width: .42rem; height: .42rem; border: solid #435674; border-width: 0 2px 2px 0;
  position: absolute; right: .9rem; bottom: 1.25rem; transform: rotate(45deg); pointer-events: none;
}
button { cursor: pointer; border: 1px solid transparent; padding: .55rem .95rem; background: #1651bb; color: white; font-weight: 650; }
button:hover { background: #103f93; }
button:disabled { opacity: .6; cursor: default; }
button.secondary { color: #174d9f; background: #edf4ff; border-color: #dce8fc; }
button.secondary:hover { background: #dceaff; }
:focus-visible { outline: 3px solid #2d74dd; outline-offset: 3px; }
.actions, .file-links { display: flex; gap: .6rem; flex-wrap: wrap; }
.actions { margin-top: 1.1rem; }
.place { margin: .55rem 0 1rem; font-size: 1.2rem; font-weight: 750; color: #174d9f; overflow-wrap: anywhere; }
dl { margin: 0; }
dl div { display: flex; justify-content: space-between; gap: .8rem; padding: .4rem 0; border-top: 1px solid #e1e9f3; }
dt { color: #435674; flex-shrink: 0; }
dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.downloads { margin-top: .8rem; }
h3 { font-size: .95rem; margin: 0 0 .45rem; }
.file-links a { padding: .35rem .55rem; border-radius: .4rem; color: #174d9f; background: #edf4ff; font-size: .9rem; font-weight: 650; text-decoration: none; }
.file-links a:hover { background: #dceaff; }
.results { grid-column: 1 / -1; min-height: 7rem; }
.result-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
pre { background: #101e38; color: #e7efff; border-radius: .65rem; padding: 1rem; max-height: 24rem; overflow: auto; font: .875rem/1.6 ui-monospace, monospace; }
@media (max-width: 48rem) { .grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 30rem) { .fields { grid-template-columns: minmax(0, 1fr); } }
