.records-dashboard{display:grid;gap:12px;margin:14px 0 18px}
.dashboard-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin:4px 1px 0}
.dashboard-section-heading h2{margin:2px 0 0;color:#09233d;font-family:"Noto Serif Thai",serif;font-size:19px;line-height:1.35}
.dashboard-section-heading .eyebrow{font-size:10px}
.dashboard-as-of{flex:0 0 auto;color:#687786;font-size:10px;text-align:right}
.dashboard-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.dashboard-metric{min-width:0;padding:12px 11px;background:#fff;border:1px solid #e3e8ec;border-radius:13px;box-shadow:0 3px 10px rgba(6,31,55,.035)}
.dashboard-metric span,.dashboard-metric small{display:block;color:#687786;font-size:10px;line-height:1.45}
.dashboard-metric strong{display:block;margin:3px 0;color:#09233d;font-size:21px;line-height:1.25;font-variant-numeric:tabular-nums}
.dashboard-metric small{font-size:9px}
.dashboard-chart-grid{display:grid;gap:11px}
.dashboard-chart-card{min-width:0;padding:14px 13px;background:#fff;border:1px solid #e2e7eb;border-radius:15px;box-shadow:0 4px 13px rgba(6,31,55,.04)}
.dashboard-chart-heading{margin-bottom:6px}
.dashboard-chart-heading h3{margin:0;color:#173b58;font-size:14px;line-height:1.45}
.dashboard-chart-heading p{margin:2px 0 0;color:#74828d;font-size:10px;line-height:1.5}
.dashboard-chart-host{min-height:116px}
.monthly-chart-svg{display:block;width:100%;height:auto;overflow:visible;font-family:"IBM Plex Sans Thai",system-ui,sans-serif}
.chart-grid-line{stroke:#e8edf0;stroke-width:1;vector-effect:non-scaling-stroke}
.chart-axis-line{stroke:#b9c6ce;stroke-width:1;vector-effect:non-scaling-stroke}
.chart-axis-label,.chart-month-label{fill:#687786;font-size:9px}
.chart-value-label{fill:#173b58;font-size:10px;font-weight:700}
.chart-month-bar{fill:#174d73}
.chart-month-bar-current{fill:#d4ad56}
.chart-message{display:grid;min-height:112px;place-items:center;margin:0;padding:18px;text-align:center;color:#687786;font-size:12px;line-height:1.6}
.chart-message-error{color:#983c35;background:#fff8f7;border-radius:10px}
.event-type-list{display:grid;gap:12px;padding:10px 1px 3px}
.event-type-row{min-width:0}
.event-type-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:5px}
.event-type-name{min-width:0;color:#173b58;font-size:11px;line-height:1.45;overflow-wrap:anywhere}
.event-type-value{flex:0 0 auto;color:#687786;font-size:10px;font-variant-numeric:tabular-nums;white-space:nowrap}
.event-type-track{height:9px;overflow:hidden;border-radius:999px;background:#edf1f4}
.event-type-bar{display:block;height:100%;min-width:0;border-radius:inherit;background:linear-gradient(90deg,#174d73,#d4ad56);transition:width .35s ease}
.dashboard-section-heading [hidden],.dashboard-metric[hidden]{display:none!important}
@media(min-width:520px){.dashboard-chart-grid{grid-template-columns:1.1fr .9fr;align-items:stretch}.dashboard-chart-card{padding:16px}.dashboard-metric{padding:14px}.dashboard-metric strong{font-size:23px}}
@media(max-width:370px){.dashboard-metrics{gap:6px}.dashboard-metric{padding:10px 8px}.dashboard-metric strong{font-size:18px}.dashboard-metric span{font-size:9px}.dashboard-section-heading h2{font-size:17px}.dashboard-chart-card{padding:12px 10px}.event-type-heading{gap:6px}}
@media(prefers-reduced-motion:reduce){.event-type-bar{transition:none}}
