:root {
  color-scheme: light;
  --ink: #17253a;
  --muted: #52647c;
  --blue: #174ea6;
  --accent: #215ec4;
  --line: #dce5ef;
  --soft: #f0f5fd;
  --background: #f5f7fb;
  font: 16px/1.5 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--background);
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.top { background: #fff; border-bottom: 1px solid var(--line); }
.bar { min-height: 4.3rem; max-width: 72rem; margin: auto; padding: .6rem 1.5rem; display: flex; align-items: center; gap: 1.7rem; }
.brand { display: flex; gap: .7rem; align-items: center; font-weight: 720; white-space: nowrap; }
.mark { background: var(--blue); width: 2rem; height: 2rem; display: flex; align-items: flex-end; justify-content: center; gap: 3px; border-radius: .48rem; padding: .46rem; }
.mark i { width: 3px; height: .3rem; background: #fff; border-radius: 2px; }
.mark i:nth-child(2) { height: .55rem; }
.mark i:nth-child(3) { height: .8rem; }
nav { display: flex; gap: .2rem; }
nav button, .text-button { background: transparent; border-color: transparent; color: var(--muted); }
nav button[aria-current="page"] { background: var(--soft); color: var(--blue); }
#logout { margin-left: auto; }
.page { max-width: 72rem; margin: auto; padding: 2.7rem 1.5rem 4rem; }
h1 { font-size: clamp(1.9rem, 3.8vw, 2.75rem); letter-spacing: -.045em; margin: 0 0 .25rem; line-height: 1.2; }
h2 { font-size: 1.23rem; letter-spacing: -.02em; margin: 0 0 1rem; }
p { margin: 0 0 1rem; }
.intro { margin: .5rem 0 1.5rem; color: var(--muted); }
.surface { background: #fff; border: 1px solid var(--line); border-radius: .85rem; box-shadow: 0 3px 8px #20304707; }
.section { padding: 1.35rem; margin-top: 1rem; }
.upload-card { padding: .85rem; }
.login { margin: 4rem auto; padding: 2.2rem; max-width: 31rem; }
.login p { margin: .85rem 0 1.4rem; color: var(--muted); }
.drop { min-height: 9.8rem; border: 1px dashed #9bb3db; border-radius: .6rem; background: #f8fbff; display: grid; justify-items: center; align-content: center; gap: .35rem; cursor: pointer; text-align: center; }
.drop:hover, .drop.drag, .upload-card:focus-within .drop { background: var(--soft); border-color: var(--accent); }
.drop span:last-child { font-size: .9rem; color: var(--muted); }
.upload-icon { display: grid; place-items: center; font-size: 1.25rem; width: 2.1rem; height: 2.1rem; border-radius: .5rem; color: var(--blue); background: var(--soft); }
.sr-only { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.grid { display: grid; gap: .8rem; margin: 0 0 1rem; }
.names { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.fields { grid-template-columns: repeat(auto-fit, minmax(9.8rem, 1fr)); }
label { font-weight: 650; font-size: .9rem; }
input:not([type="file"]), select { display: block; width: 100%; min-height: 2.65rem; padding: .5rem .65rem; margin-top: .35rem; border-radius: .42rem; border: 1px solid #cbd8ea; background: #fff; color: var(--ink); font: inherit; font-weight: 450; }
select { appearance: none; padding-right: 1.6rem; background: linear-gradient(45deg, transparent 50%, var(--muted) 50%) calc(100% - 14px) 54% / 5px 5px no-repeat, linear-gradient(135deg, var(--muted) 50%, transparent 50%) calc(100% - 9px) 54% / 5px 5px no-repeat, #fff; }
button { font: inherit; font-size: .9rem; font-weight: 650; border: 1px solid #cbd8ea; background: #fff; color: var(--ink); min-height: 2.45rem; padding: .44rem .85rem; border-radius: .48rem; cursor: pointer; }
button:hover { background: var(--soft); }
button:disabled { opacity: .6; cursor: wait; }
button.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
button.primary:hover { background: #113d88; }
:focus-visible { outline: 3px solid #6198ee; outline-offset: 2px; }
.scroll { overflow-x: auto; margin: .75rem 0 1rem; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .9rem; }
th, td { padding: .66rem .65rem; border-bottom: 1px solid var(--line); min-width: 6.5rem; overflow-wrap: anywhere; }
th { background: #f6f8fc; white-space: nowrap; }
td:first-child { min-width: 11rem; }
.numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); gap: .55rem; margin-bottom: .95rem; }
.metric { padding: .68rem .72rem; background: #f5f8fd; border-radius: .45rem; }
.metric strong { display: block; font-size: 1.28rem; line-height: 1.2; }
.metric span, .muted { color: var(--muted); font-size: .9rem; }
.notice { background: var(--soft); padding: .75rem .9rem; border-radius: .45rem; color: #204477; }
.notice:empty { display: none; }
.error { background: #fff0ef; color: #922323; }
.actions, .heading { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .85rem; }
.heading { justify-content: space-between; margin-top: 0; margin-bottom: .6rem; }
.heading h2 { margin: 0; }
progress { width: 100%; height: .72rem; border: 0; border-radius: .5rem; appearance: none; color: var(--accent); margin: .3rem 0 .85rem; background: #e9eff8; overflow: hidden; }
progress::-webkit-progress-bar { background: #e9eff8; }
progress::-webkit-progress-value { background: var(--accent); border-radius: .5rem; }
progress::-moz-progress-bar { background: var(--accent); }
.list { margin-top: 1.1rem; overflow: hidden; }
.list > p { padding: 1rem; margin: 0; }
.batch-row { width: 100%; border: 0; border-radius: 0; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .85rem 1rem; }
.batch-row + .batch-row { border-top: 1px solid var(--line); }
.batch-row .muted { font-weight: 400; display: block; }
#more { margin-top: .8rem; }
@media (max-width: 42rem) {
  .bar, .page { padding-left: .85rem; padding-right: .85rem; }
  .bar { flex-wrap: wrap; gap: .5rem .7rem; }
  nav { order: 3; width: 100%; }
  .names { grid-template-columns: 1fr; }
  .page { padding-top: 1.7rem; }
  .section { padding: 1rem; }
}
