:root { color-scheme: light; --bg:#ebeff6; --ink:#14243d; --muted:#4f5e74; --line:#c6d2e2; --accent:#174f9b; --navy:#182f50; }
*,*::before,*::after { box-sizing:border-box; }
[hidden] { display:none!important; }
body { margin:0; font:1rem/1.55 system-ui,sans-serif; background:var(--bg); color:var(--ink); }
h1,h2,p { margin:0; }
h1,h2 { letter-spacing:-.045em; line-height:1.08; }
h1 { font-size:clamp(2.3rem,5.5vw,4.7rem); margin-block:.5rem .65rem; }
h2 { font-size:1.35rem; }
:focus-visible { outline:3px solid #246fcb; outline-offset:3px; }
.wrap { width:min(77rem,calc(100% - 4rem)); margin-inline:auto; }
.top { background:var(--navy); color:#fff; }
.brand { display:flex; align-items:center; gap:.65rem; font-size:1.2rem; font-weight:750; padding-block:.9rem; }
.brand span { padding:.28rem .4rem; border:1px solid #a8c9f2; color:#dcecff; font:700 .9rem ui-monospace,monospace; }
main { padding-block:clamp(2rem,5.5vw,4.5rem); }
.hero { max-width:46rem; margin-bottom:1.65rem; }
.hero > p:last-child,.panel p { color:var(--muted); }
.label { color:var(--accent); text-transform:uppercase; font:750 .9rem/1.4 ui-monospace,monospace; letter-spacing:.05em; }
.panel { min-width:0; padding:clamp(.9rem,2.3vw,1.5rem); background:#fff; border:1px solid var(--line); border-radius:.55rem; }
.panel h2 + p, .panel label + p { margin-top:.4rem; }
.import { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:.75rem 1.5rem; }
#import-status { flex-basis:100%; overflow-wrap:anywhere; }
#import-status.error { color:#9c2834; }
.actions,.table-head { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem .8rem; }
.table-head { justify-content:space-between; margin-bottom:.6rem; }
button,select { min-height:2.75rem; padding:.45rem .65rem; border:1px solid #aabcda; border-radius:.35rem; color:var(--ink); background:#fff; font:inherit; }
button { cursor:pointer; font-weight:700; }
button:hover { background:#e8f0fe; }
button:disabled { opacity:.6; cursor:default; }
button.primary { color:white; background:var(--accent); border-color:var(--accent); }
button.primary:hover { background:#123e7a; }
.metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.75rem; margin-block:1rem; }
.metrics div { background:#e0e9f7; border:1px solid #bdd0e9; padding:.8rem; border-radius:.45rem; }
.metrics strong { display:block; font:750 clamp(1.35rem,3vw,2.1rem)/1.2 ui-monospace,monospace; }
.work-grid { display:grid; grid-template-columns:minmax(14rem,.7fr) minmax(0,1.9fr); gap:1rem; }
.settings > label { display:block; margin-top:.8rem; font-weight:700; }
.settings > select { width:100%; }
.column-rules { display:grid; gap:.5rem; margin-top:.65rem; }
.column-rules fieldset { min-width:0; border:1px solid var(--line); border-radius:.35rem; margin:0; padding:.35rem .5rem .55rem; }
.column-rules legend { padding:0 .2rem; max-width:100%; overflow-wrap:anywhere; font-weight:700; }
.column-rules select { width:100%; }
.column-rules label { display:flex; align-items:center; gap:.3rem; min-height:2rem; }
.table-wrap { overflow:auto; margin-block:.65rem; max-height:32rem; }
table { width:100%; border-collapse:collapse; font-size:.92rem; }
td,th { min-width:6.25rem; padding:.56rem .55rem; text-align:left; border-bottom:1px solid var(--line); overflow-wrap:anywhere; max-width:15rem; }
th { background:#e6eef9; white-space:normal; }
tbody tr:nth-child(even) { background:#f5f8fc; }
.exports { border-top:1px solid var(--line); padding-top:.65rem; }
.sr-only { position:absolute; width:1px; height:1px; clip-path:inset(50%); overflow:hidden; padding:0; }
.skip { position:absolute; top:.45rem; left:.45rem; transform:translateY(-160%); background:#fff; color:inherit; padding:.5rem; }
.skip:focus { transform:none; }
@media(max-width:55rem) { .wrap { width:calc(100% - 2rem); } .work-grid { grid-template-columns:1fr; } }
@media(max-width:36rem) { .metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } }
