:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17243b;
  background: #f4f7fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
.layout { width: min(900px, calc(100% - 32px)); margin: 0 auto; padding: 56px 0 32px; }
.hero { margin: 0 0 28px; max-width: 690px; }
.eyebrow { margin: 0 0 8px; color: #526a91; font-size: .77rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
h1 { margin: 0; color: #10274b; font-size: clamp(2rem, 7vw, 3.4rem); letter-spacing: -.055em; line-height: 1.08; }
.hero > p:last-child { max-width: 650px; margin: 16px 0 0; color: #53647c; font-size: 1.04rem; line-height: 1.65; }
.card { margin-top: 18px; padding: clamp(20px, 4vw, 30px); border: 1px solid #e2e9f2; border-radius: 16px; background: #fff; box-shadow: 0 8px 30px #233e6410; }
h2 { margin: 0; font-size: 1.22rem; letter-spacing: -.02em; }
.file-label { display: block; margin: 23px 0 9px; font-weight: 650; }
.file-label span { color: #718098; font-size: .88rem; font-weight: 400; }
input[type="file"] { display: block; width: 100%; padding: 12px; border: 1px dashed #b9c7db; border-radius: 9px; background: #f8faff; color: #45566e; }
button { margin-top: 16px; padding: 11px 18px; border: 0; border-radius: 9px; background: #225bd5; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
button:hover { background: #184bb7; }
button:disabled { cursor: wait; opacity: .65; }
.secondary-button { margin: 0; border: 1px solid #d7e0ed; background: #fff; color: #30435f; }
.secondary-button:hover { background: #f3f6fb; }
.status { min-height: 1.5em; margin: 14px 0 0; color: #53647c; font-size: .94rem; }
.status.error { color: #b42318; }
.status.success { color: #087443; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-heading .eyebrow { margin-bottom: 6px; }
.results-empty, .history-empty { margin-top: 20px; color: #75849a; font-size: .94rem; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 10px; margin-top: 19px; }
.metric { padding: 14px; border: 1px solid #e7edf5; border-radius: 10px; background: #f9fbfe; }
.metric span { display: block; color: #66768e; font-size: .82rem; }
.metric strong { display: block; margin-top: 5px; font-size: 1.04rem; }
.volume-note { margin: 13px 0 0; color: #63738a; font-size: .87rem; line-height: 1.5; }
.history-list { margin-top: 15px; }
.history-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-top: 1px solid #edf1f6; }
.history-main { min-width: 0; }
.history-main strong { display: block; overflow-wrap: anywhere; }
.history-meta { margin-top: 5px; color: #718098; font-size: .84rem; }
.history-actions { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.history-actions a { color: #225bd5; font-size: .9rem; font-weight: 650; text-decoration: none; }
.badge { padding: 4px 8px; border-radius: 99px; background: #fff3d8; color: #875d00; font-size: .78rem; }
.badge.completed { background: #e6f6ed; color: #087443; }
.badge.failed { background: #fde9e7; color: #b42318; }
footer { padding: 23px 4px 0; color: #8996a9; font-size: .82rem; text-align: center; }
@media (max-width: 540px) { .layout { padding-top: 34px; } .history-item { align-items: flex-start; flex-direction: column; } .history-actions { flex-wrap: wrap; } }
