:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #182230;
  background: #f4f6f8;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }

.shell { width: min(920px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 56px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 44px; }
.brand { display: flex; align-items: center; gap: 11px; color: #111927; font-size: 19px; font-weight: 760; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #111927; color: white; font-size: 15px; }
.account { display: flex; align-items: center; gap: 12px; color: #596579; font-size: 14px; }

.card { background: white; border: 1px solid #e2e7ed; border-radius: 16px; box-shadow: 0 12px 35px rgba(20, 31, 48, .06); }
.download-card { padding: clamp(24px, 5vw, 48px); }
.eyebrow { margin: 0 0 10px; color: #5b5ce2; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; max-width: 640px; color: #111927; font-size: clamp(32px, 5vw, 50px); line-height: 1.04; letter-spacing: -.045em; }
.intro { margin: 16px 0 30px; max-width: 610px; color: #596579; font-size: 17px; line-height: 1.6; }
.download-row { display: grid; grid-template-columns: minmax(150px, 190px) minmax(150px, 190px) 1fr; gap: 14px; align-items: end; }
label { display: grid; gap: 8px; color: #344054; font-size: 13px; font-weight: 700; }
input[type="date"] { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #cad2dc; border-radius: 9px; background: white; color: #111927; }
input:focus-visible, button:focus-visible { outline: 3px solid rgba(91, 92, 226, .23); outline-offset: 2px; }

.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 9px; padding: 0 18px; border: 1px solid transparent; border-radius: 9px; font-weight: 750; transition: transform .12s ease, background .12s ease; }
.button:not(:disabled):active { transform: translateY(1px); }
.button-primary { background: #5b5ce2; color: white; }
.button-primary:hover { background: #494bc8; }
.button-secondary { min-height: 38px; padding: 0 13px; border-color: #d5dbe3; background: white; color: #293548; }
.button-secondary:hover { background: #f7f8fa; }
.button-text { min-height: 36px; padding: 0 8px; background: transparent; color: #566176; }
.button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.status { margin: 18px 0 0; padding: 12px 14px; border-radius: 9px; background: #f0f1ff; color: #4043ad; font-size: 14px; line-height: 1.45; }
.status.error { background: #fff0f0; color: #a22b2b; }
.status.success { background: #eaf8f2; color: #166a4b; }
.progress { width: 100%; height: 6px; margin-top: 14px; overflow: hidden; border: 0; border-radius: 999px; appearance: none; }
.progress::-webkit-progress-bar { background: #e9edf2; }
.progress::-webkit-progress-value { background: #5b5ce2; border-radius: 999px; }
.progress::-moz-progress-bar { background: #5b5ce2; border-radius: 999px; }

.reports { margin-top: 26px; padding: 24px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 8px; }
.section-heading h2 { margin: 0; font-size: 18px; }
.section-heading span { color: #7a8494; font-size: 13px; }
.report-list { display: grid; margin-top: 12px; }
.report-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 66px; border-top: 1px solid #edf0f3; }
.report-row:first-child { border-top: 0; }
.report-row strong { display: block; margin-bottom: 3px; font-size: 15px; }
.report-row small { color: #758093; }

.login-shell, .state-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(480px, 100%); padding: 42px; text-align: center; }
.login-card .brand { justify-content: center; margin-bottom: 34px; }
.login-card h1 { font-size: 38px; }
.login-card p { color: #626d7e; line-height: 1.6; }
.login-card .button { width: 100%; margin-top: 15px; }
.security-note { margin-top: 18px; color: #7a8494; font-size: 12px; line-height: 1.5; }
.state-screen { align-content: center; color: #687385; }
.spinner { width: 28px; height: 28px; border: 3px solid #dfe3e9; border-top-color: #5b5ce2; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 660px) {
  .shell { width: min(100% - 20px, 920px); padding-top: 20px; }
  .topbar { align-items: flex-start; margin-bottom: 24px; }
  .account { align-items: flex-end; flex-direction: column; gap: 3px; }
  .download-row { grid-template-columns: 1fr; }
  .download-card, .reports { padding: 22px; }
  .section-heading span, .report-row small { display: none; }
  .report-row { min-height: 62px; }
}
