:root {
  color-scheme: light;
  font: 16px -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: #f5f5f7;
  color: #1d1d1f;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
header {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px max(5vw,16px);
  background: #fff;
  border-bottom: 1px solid #dedee4;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; letter-spacing: -.04em; font-size: 1.35rem; }
.logo { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: #005fca; color: white; }
main { max-width: 1260px; margin: auto; padding: clamp(16px, 4vw, 38px); }
.intro { padding: 12px 0 22px; }
.eyebrow, .muted, caption { color: #53535c; }
.eyebrow { margin: 0; font-weight: 650; }
h1 { margin: .2em 0; font-size: clamp(2.15rem, 5vw, 3.65rem); line-height: 1.05; letter-spacing: -.06em; }
h2 { margin: 0 0 16px; letter-spacing: -.035em; font-size: 1.55rem; }
p { line-height: 1.5; }
.panel { background: #fff; border: 1px solid #dedee4; border-radius: 20px; padding: clamp(15px, 3vw, 26px); margin: 14px 0; }
.login { max-width: 410px; display: grid; gap: 16px; }
.login h2 { margin: 0; }
.filters, .fields { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit,minmax(min(100%, 185px),1fr)); }
label { display: grid; gap: 6px; font-size: .9rem; font-weight: 620; }
input,select,button { font: inherit; color: inherit; border-radius: 10px; min-height: 44px; padding: 8px 12px; }
input,select { width: 100%; min-width: 0; border: 1px solid #b7b7c2; background: #fff; }
button { border: 1px solid transparent; background: #005fca; color: #fff; font-weight: 650; cursor: pointer; }
button.secondary,nav button { background: #ebedf3; color: #202838; }
nav { display: flex; flex-wrap: wrap; gap: 8px; }
nav button[aria-current] { background: #005fca; color: #fff; }
button:disabled { opacity: .55; cursor: not-allowed; }
:focus-visible { outline: 3px solid #0069da; outline-offset: 3px; }
[aria-invalid=true] { border: 2px solid #ac2020; }
.scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th,td { padding: 10px; border-bottom: 1px solid #e4e4e9; text-align: left; }
th { background: #f5f6fa; }
td input { min-width: 76px; }
progress { width: 100%; accent-color: #005fca; }
#notice { background: #e5f1ff; padding: 12px 16px; border-radius: 12px; }
#notice.error { background: #fde9e9; color: #841b1b; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
details { border-top: 1px solid #dedee4; padding: 14px 0; }
summary { font-weight: 650; cursor: pointer; }
details form { margin-top: 14px; }
@media print {
  :root { background: white; }
  header, nav, #context, #notice, .actions { display: none; }
  main { max-width: none; padding: 0; }
  .intro { padding: 0; }
  .panel { border: 0; padding: 0; }
  .scroll { overflow: visible; }
  tr { break-inside: avoid; }
}
