:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #18211f;
  background: #f5f7f4;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #18211f;
  --muted: #77817d;
  --line: #e4e9e4;
  --paper: #fff;
  --green: #23785d;
  --green-soft: #e9f4ed;
  --shadow: 0 18px 60px rgb(26 45 36 / 8%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.app-shell { min-height: 100vh; }
.center-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(ellipse at 76% 14%, #eaf3e9 0, transparent 38%), #f5f7f4; }
.access-card { width: min(100%, 460px); padding: 46px; border: 1px solid #e7ebe6; border-radius: 24px; background: var(--paper); box-shadow: var(--shadow); }
.wordmark { display: inline-block; color: var(--ink); font-size: 32px; font-weight: 780; letter-spacing: -2px; line-height: 1; text-decoration: none; }
.wordmark span { color: #2c9b73; }
.access-card .wordmark { margin-bottom: 42px; }
.eyebrow { margin: 0 0 9px; color: #589276; font-size: 10px; font-weight: 750; letter-spacing: .16em; line-height: 1.4; }
h1, h2, h3, p { margin-top: 0; }
.access-card h1 { max-width: 360px; margin-bottom: 14px; font-size: clamp(30px, 6vw, 40px); font-weight: 600; letter-spacing: -1.7px; line-height: 1.08; }
.muted { color: var(--muted); }
.access-card .muted { margin-bottom: 30px; font-size: 14px; line-height: 1.6; }
.access-note { margin: 22px 0 0; color: #939d98; font-size: 11px; }
.button { min-height: 41px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; border: 1px solid transparent; border-radius: 9px; padding: 0 16px; cursor: pointer; font-size: 12px; font-weight: 650; text-decoration: none; transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid #8dc9ae; outline-offset: 3px; }
.button-primary { color: #fff; background: #1c3029; }
.button-primary:hover { background: #29463b; }
.button-dark { color: #fff; background: #1c3029; }
.button-dark:hover { background: #2a4e3f; }
.button-quiet { min-height: 36px; border-color: var(--line); color: #56635c; background: #fff; }
.button-quiet:hover { border-color: #b8c9be; background: #f5f8f5; }
.loading-mark { width: 34px; height: 34px; border: 3px solid #dce7df; border-top-color: #378668; border-radius: 50%; animation: spin .8s linear infinite; }
.center-screen:has(.loading-mark) { align-content: center; justify-items: center; gap: 14px; color: var(--muted); font-size: 13px; }
.center-screen:has(.loading-mark) p { margin: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

.dashboard { min-height: 100vh; }
.sidebar { width: 228px; position: fixed; inset: 0 auto 0 0; z-index: 2; display: flex; flex-direction: column; border-right: 1px solid var(--line); padding: 28px 19px 20px; background: #fff; }
.sidebar .wordmark { margin: 0 0 54px 10px; font-size: 29px; }
.sidebar-caption { margin: 0 0 13px 11px; color: #a0aaa4; font-size: 9px; font-weight: 750; letter-spacing: .15em; }
.sidebar nav { display: grid; gap: 5px; }
.nav-link { min-height: 42px; display: flex; align-items: center; border-radius: 8px; padding: 0 12px; color: #77817c; font-size: 12px; font-weight: 560; text-decoration: none; }
.nav-link:hover { color: #315442; background: #f6f8f5; }
.nav-link.is-active { color: #215f45; background: #edf5ef; font-weight: 700; }
.sidebar-bottom { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 13px 8px 1px; color: #88928d; font-size: 10px; }
.secure-dot, .site-indicator { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #49a77a; }
.main-column { min-height: 100vh; margin-left: 228px; }
.topbar { height: 66px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 1; border-bottom: 1px solid var(--line); padding: 0 38px; background: rgb(255 255 255 / 92%); backdrop-filter: blur(14px); }
.topbar-site { display: flex; align-items: center; gap: 9px; color: #36443c; font-size: 11px; font-weight: 650; }
.topbar-divider { color: #c4cbc5; }
.topbar-site .muted { font-weight: 450; }
.content { width: min(100%, 1440px); margin: 0 auto; padding: 42px 42px 26px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.page-heading h1 { margin: 0 0 9px; font-size: clamp(25px, 3vw, 34px); font-weight: 590; letter-spacing: -1.35px; line-height: 1.15; }
.page-heading .muted { margin: 0; font-size: 12px; }
.refresh-note { margin: -14px 0 18px; color: #89948e; font-size: 10px; }
.date-controls { display: flex; align-items: end; gap: 9px; flex: 0 0 auto; }
.date-controls label { display: grid; gap: 6px; color: #7e8982; font-size: 9px; font-weight: 650; }
input { min-height: 38px; border: 1px solid #dfe5df; border-radius: 8px; padding: 0 10px; color: #37443d; background: #fff; font-size: 11px; }
.date-controls input { width: 134px; }
.date-separator { padding-bottom: 11px; color: #a9b1ac; font-size: 12px; }
.date-controls .button { min-height: 38px; }
.notice { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 13px; border: 1px solid #dce8dc; border-radius: 9px; padding: 12px 14px; color: #53665a; background: #f0f6ef; font-size: 11px; line-height: 1.5; }
.notice-icon { width: 16px; height: 16px; flex: 0 0 16px; display: grid; place-items: center; border: 1px solid #9ab4a0; border-radius: 50%; color: #547b5e; font-family: Georgia, serif; font-size: 10px; font-style: italic; }
.notice-error { border-color: #f0d2cb; color: #8a493d; background: #fff4f1; }
.section-block { margin-top: 32px; scroll-margin-top: 82px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.section-heading .eyebrow { margin-bottom: 5px; }
.section-heading h2 { margin: 0; font-size: 18px; font-weight: 650; letter-spacing: -.45px; }
.section-meta { color: #909a94; font-size: 10px; }
.section-description { margin: 7px 0 0; font-size: 11px; }
.state-line { min-height: 0; color: #89938d; font-size: 11px; }
.state-line:not(:empty) { margin: 0 0 10px; }
.state-line.is-error { color: #a24535; }
.metric-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 11px; }
.metric-card { min-height: 118px; border: 1px solid var(--line); border-radius: 12px; padding: 17px 15px; background: var(--paper); }
.metric-label { margin: 0 0 17px; color: #77827c; font-size: 10px; line-height: 1.3; }
.metric-value { margin: 0; color: #1c3029; font-size: clamp(22px, 2.5vw, 29px); font-weight: 650; letter-spacing: -1.2px; line-height: 1; }
.metric-note { display: block; margin-top: 9px; color: #9aa39e; font-size: 9px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 12px 14px; color: #89938d; background: #f9faf8; font-size: 9px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
td { max-width: 460px; border-top: 1px solid #edf0ec; padding: 12px 14px; color: #46534b; font-size: 10px; line-height: 1.45; }
tbody tr:hover { background: #fbfcfa; }
td:first-child { color: #26352c; font-weight: 580; overflow-wrap: anywhere; }
td:not(:first-child) { white-space: nowrap; }
.mini-chart { margin: 0 0 14px; border: 1px solid var(--line); border-radius: 11px; padding: 14px 16px; background: #fff; }
.chart-label { margin-bottom: 12px; color: #909a94; font-size: 9px; font-weight: 650; }
.bar-list { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(100px, 180px) minmax(70px, 1fr) 54px; align-items: center; gap: 10px; }
.bar-name { overflow: hidden; color: #56635b; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 8px; overflow: hidden; border-radius: 8px; background: #edf1ed; }
.bar-fill { height: 100%; border-radius: inherit; background: #62a982; }
.bar-number { color: #718078; font-variant-numeric: tabular-nums; font-size: 9px; text-align: right; }
.filter-controls { display: flex; align-items: center; gap: 8px; margin: 14px 0 12px; }
.filter-controls label { color: #78847c; font-size: 10px; font-weight: 650; }
.filter-controls input { width: 190px; }
.filter-controls .button { min-height: 36px; }
.table-footnote { margin: 9px 1px 0; color: #89938d; font-size: 10px; }
.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.report-card { min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #fff; }
.report-card h3 { margin: 0 0 13px; font-size: 12px; font-weight: 670; }
.report-card .table-wrap { border: 0; border-radius: 0; }
.report-card th { padding: 9px 8px; }
.report-card td { padding: 10px 8px; }
.report-card-wide { grid-column: 1 / -1; }
.footer-notes { display: flex; justify-content: space-between; gap: 20px; margin-top: 30px; border-top: 1px solid var(--line); padding: 16px 0 5px; color: #929c96; font-size: 9px; line-height: 1.5; }

@media (max-width: 1120px) {
  .content { padding: 34px 27px 24px; }
  .topbar { padding: 0 27px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .sidebar { width: auto; height: 60px; position: sticky; inset: 0 0 auto; flex-direction: row; align-items: center; gap: 18px; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 16px; }
  .sidebar .wordmark { margin: 0; font-size: 26px; }
  .sidebar-caption, .sidebar-bottom { display: none; }
  .sidebar nav { min-width: 0; display: flex; flex: 1; gap: 2px; overflow-x: auto; }
  .nav-link { min-height: 35px; flex: 0 0 auto; padding: 0 9px; font-size: 10px; }
  .main-column { margin-left: 0; }
  .topbar { height: 52px; padding: 0 16px; }
  .content { padding: 28px 16px 20px; }
  .page-heading { gap: 20px; margin-bottom: 22px; }
  .date-controls { width: 100%; display: grid; grid-template-columns: 1fr 14px 1fr; gap: 8px; }
  .date-controls label { min-width: 0; }
  .date-controls input { width: 100%; }
  .date-controls .button { grid-column: 1 / -1; }
  .date-separator { align-self: end; justify-self: center; padding-bottom: 12px; }
  .section-block { margin-top: 27px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .metric-card { min-height: 105px; padding: 14px 12px; }
  .metric-label { margin-bottom: 13px; }
  .section-heading { align-items: flex-start; }
  .section-meta { max-width: 120px; text-align: right; line-height: 1.4; }
  .filter-controls { flex-wrap: wrap; }
  .filter-controls label { flex-basis: 100%; }
  .filter-controls input { min-width: 120px; flex: 1; }
  .report-grid { grid-template-columns: 1fr; }
  .report-card-wide { grid-column: auto; }
  .footer-notes { flex-direction: column; gap: 6px; }
  .access-card { padding: 34px 27px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
