:root {
  color-scheme: light;
  --ink: #18232d;
  --muted: #66737d;
  --line: #e1e6e8;
  --paper: #ffffff;
  --canvas: #f4f6f6;
  --green: #176b4b;
  --green-soft: #e8f2ed;
  font-family: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
.topbar { height: 68px; padding: 0 max(28px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; gap: 12px; background: var(--paper); border-bottom: 1px solid var(--line); }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: white; font-size: 20px; font-weight: 700; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 14px; }
.brand-copy span, .secure-label { color: var(--muted); font-size: 12px; }
.secure-label { margin-left: auto; }
.page-shell { max-width: 1180px; margin: 0 auto; padding: 44px 28px 64px; }
.intro { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.eyebrow { margin: 0 0 8px; color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: .13em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(28px, 4vw, 36px); letter-spacing: -.035em; }
h2 { margin-bottom: 0; font-size: 18px; letter-spacing: -.02em; }
.lede { margin: 0; color: var(--muted); font-size: 14px; }
.date-controls { display: flex; align-items: end; gap: 10px; }
.date-controls label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; }
input, button { height: 38px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--ink); font: inherit; }
input { padding: 0 10px; }
button { padding: 0 16px; background: var(--green); border-color: var(--green); color: white; font-size: 13px; font-weight: 600; cursor: pointer; }
button:hover { background: #10563b; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.metric-card, .panel { background: var(--paper); border: 1px solid var(--line); border-radius: 9px; }
.metric-card { padding: 18px 20px; display: grid; gap: 9px; }
.metric-card span { color: var(--muted); font-size: 12px; }
.metric-card strong { font-size: 27px; letter-spacing: -.04em; }
.metric-card small, .muted { color: var(--muted); font-size: 12px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .85fr); gap: 18px; }
.panel { min-height: 300px; padding: 22px; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.panel-heading .eyebrow { margin-bottom: 6px; }
.chart { min-height: 205px; display: flex; align-items: end; gap: 8px; padding: 24px 2px 0; }
.chart-empty { width: 100%; align-self: center; color: var(--muted); text-align: center; font-size: 13px; }
.data-note { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.bar-wrap { flex: 1; min-width: 12px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 7px; height: 175px; }
.bar { width: min(100%, 34px); min-height: 3px; background: #79a994; border-radius: 4px 4px 0 0; }
.bar-label { color: var(--muted); font-size: 10px; white-space: nowrap; }
.action-panel h2 { margin-bottom: 8px; }
.action-panel > .muted { margin-bottom: 20px; }
.report-list { display: grid; gap: 10px; }
.report-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 7px; }
.report-name { display: grid; gap: 4px; min-width: 0; }
.report-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.report-name span { color: var(--muted); font-size: 11px; }
.report-row a { flex: none; color: var(--green); font-size: 12px; font-weight: 700; text-decoration: none; }
.report-row a:hover { text-decoration: underline; }
.empty { padding: 20px 14px; border: 1px dashed var(--line); border-radius: 7px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.status { min-height: 18px; margin: 12px 0 0; color: #8a4b16; font-size: 12px; }
footer { padding: 18px 28px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: 11px; }
.login-shell { min-height: calc(100vh - 124px); display: grid; place-items: center; padding: 32px 20px; }
.login-card { width: min(100%, 390px); padding: 30px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 34px rgba(24, 35, 45, .06); }
.login-card h1 { margin-bottom: 8px; }
.login-card .lede { margin-bottom: 24px; }
.login-card form { display: grid; gap: 9px; }
.login-card label { margin-top: 6px; color: var(--muted); font-size: 12px; }
.login-card input { width: 100%; height: 42px; }
.login-card .login-button { width: 100%; height: 42px; margin-top: 10px; }
.login-message { min-height: 18px; color: #8a4b16; font-size: 12px; }
@media (max-width: 760px) {
  .intro { align-items: stretch; flex-direction: column; }
  .date-controls { flex-wrap: wrap; }
  .date-controls label { flex: 1; min-width: 140px; }
  .date-controls input { width: 100%; }
  .metrics { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .metric-card { grid-template-columns: 1fr auto; align-items: center; }
  .metric-card small { grid-column: 1 / -1; }
  .content-grid { grid-template-columns: 1fr; }
  .panel { padding: 18px; }
}
@media (max-width: 460px) { .metrics { grid-template-columns: 1fr; } }
