:root {
  color-scheme: light;
  --ink: #17231f;
  --muted: #68736e;
  --line: #dce5e0;
  --paper: #f5f8f6;
  --card: #ffffff;
  --accent: #1d7657;
  --accent-dark: #14523d;
  --warning: #b76a10;
  --warning-bg: #fff5e5;
  --ok: #1d7657;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 56px 0 40px; }
.hero { display: flex; justify-content: space-between; gap: 32px; align-items: flex-end; margin-bottom: 34px; }
.eyebrow, .section-label { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .14em; margin: 0 0 10px; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 760px; font-size: clamp(34px, 5vw, 64px); line-height: .98; letter-spacing: -.055em; margin-bottom: 18px; }
h2 { font-size: 24px; letter-spacing: -.03em; margin-bottom: 0; }
.lede { max-width: 620px; color: var(--muted); font-size: 18px; line-height: 1.5; margin-bottom: 0; }
.date-pill { min-width: 135px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); padding: 15px 17px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.date-pill strong { color: var(--ink); font-size: 15px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: 0 18px 50px rgba(28, 67, 51, .06); }
.upload-card { margin-bottom: 18px; }
.card-heading { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 8px; }
.status-dot { width: 10px; height: 10px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 6px rgba(29, 118, 87, .1); }
.muted { color: var(--muted); }
.upload-card > .muted { margin-bottom: 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.button { border: 1px solid transparent; border-radius: 11px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; font: inherit; font-size: 14px; font-weight: 700; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button.primary { color: #fff; background: var(--accent); }
.button.primary:hover { background: var(--accent-dark); }
.button.secondary { color: var(--ink); background: #edf4ef; border-color: #d6e4db; }
.button.ghost { color: var(--accent-dark); background: transparent; border-color: var(--line); }
.button:disabled { cursor: not-allowed; opacity: .45; }
.file-name { color: var(--muted); font-size: 13px; margin: 15px 0 0; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0; }
.metric { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 19px 20px; }
.metric span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.metric strong { font-size: 30px; letter-spacing: -.04em; }
.metric.warning strong { color: var(--warning); }
.report-card { padding-bottom: 18px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 860px; }
th, td { text-align: left; padding: 15px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
td { font-size: 14px; }
td:nth-child(2) { font-weight: 700; }
.empty-row td { text-align: center; color: var(--muted); padding: 42px 12px; }
.badge { display: inline-flex; padding: 6px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.badge.ok { color: var(--ok); background: #e8f4ed; }
.badge.review { color: var(--warning); background: var(--warning-bg); }
.issue { color: var(--warning); }
.note { color: var(--muted); font-size: 12px; line-height: 1.5; padding: 18px 4px 0; }

@media (max-width: 720px) {
  .shell { width: min(100% - 24px, 1180px); padding-top: 32px; }
  .hero { display: block; }
  .date-pill { display: inline-block; margin-top: 22px; }
  .card { border-radius: 18px; padding: 20px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
}
