:root {
  --bg: #f5f6f3;
  --surface: #fff;
  --ink: #202e29;
  --muted: #626e67;
  --line: #dde3dc;
  --brand: #12634c;
  --brand-hover: #0c4f3c;
  --brand-soft: #e7f1e9;
  --danger: #a1362c;
  --danger-soft: #fbeeea;
  --amber: #805d12;
  --amber-soft: #faf1db;
  --radius: 14px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --chart-blue: #356d94;
  --chart-amber: #a46b24;
  --chart-red: #ab463c;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
a { color: var(--brand); text-underline-offset: 3px; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .58; }
button, input, select { border-radius: 7px; }
input, select { min-height: 44px; border: 1px solid #b9c6bd; padding: 9px 12px; color: var(--ink); background: var(--surface); width: 100%; min-width: 0; caret-color: var(--brand); }
input::placeholder { color: var(--muted); opacity: 1; }
input[type="date"] { min-width: 140px; }
label { display: grid; gap: 6px; font-size: .8125rem; font-weight: 600; }
::selection { background: #c5e0cf; color: #173b2b; }
:focus-visible { outline: 3px solid #b36b1d; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 1.75rem; line-height: 1.2; letter-spacing: -.025em; font-weight: 650; }
h2 { font-size: 1.125rem; line-height: 1.35; font-weight: 650; }
h3 { font-size: 1rem; font-weight: 650; }
p { max-width: 70ch; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; inset: 8px auto auto 8px; z-index: 10; padding: 10px; background: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 15px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .875rem; text-decoration: none; white-space: nowrap; transition: background-color 160ms ease-out; }
.button:hover { background: #edf1eb; }
.button.primary { background: var(--brand); color: white; border-color: var(--brand); }
.button.primary:hover { background: var(--brand-hover); }
.button.quiet { border-color: transparent; background: transparent; justify-content: start; }
.text-button { background: transparent; border: 0; padding: 7px 0; color: var(--brand); font-weight: 650; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.muted, .help { color: var(--muted); }
.help { font-size: .8125rem; line-height: 1.6; }
.brand { display: inline-flex; gap: 11px; align-items: center; text-decoration: none; color: var(--ink); font-size: 1rem; font-weight: 650; }
.brand img { flex-shrink: 0; }
.brand span { display: grid; line-height: 1.25; }
.brand strong { font-size: .8125rem; color: var(--brand); font-weight: 600; }
.sidebar { width: 224px; position: fixed; inset: 0 auto 0 0; background: #edf0e9; border-right: 1px solid var(--line); padding: 30px 18px 18px; display: flex; flex-direction: column; z-index: 5; }
.sidebar .brand { padding: 0 10px; }
.restaurant { display: flex; gap: 10px; align-items: center; padding: 28px 9px 25px; margin-top: 26px; border-top: 1px solid #d5ded2; }
.restaurant-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #dfe7da; font-weight: 650; color: #405740; flex-shrink: 0; }
.restaurant strong { display: block; font-size: .875rem; overflow-wrap: anywhere; }
.restaurant div > span { font-size: .75rem; color: var(--muted); }
.navigation { display: grid; gap: 5px; }
.navigation a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: #58675c; text-decoration: none; border-radius: 8px; font-weight: 550; }
.navigation a:hover { background: #e1e8dd; }
.navigation a[aria-current="page"] { background: var(--brand); color: white; }
.sidebar-bottom { margin-top: auto; display: grid; gap: 7px; padding-top: 32px; }
#userLabel { padding: 0 15px; color: var(--muted); font-size: .8125rem; overflow-wrap: anywhere; }
.workspace { margin-left: 224px; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px 40px 26px; }
.topbar p { color: var(--muted); font-size: .875rem; margin-top: 6px; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.sync-state { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .75rem; }
.sync-dot { width: 7px; height: 7px; border-radius: 50%; background: #68736b; flex-shrink: 0; }
.sync-dot.fresh { background: var(--brand); }
.sync-dot.stale { background: var(--danger); }
.mobile-brand, .mobile-only { display: none; }
#content { padding: 0 40px 36px; flex: 1; min-width: 0; }
.filters { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.filters > label { width: 160px; }
.filters > .period-select { width: 170px; }
.filter-note { margin-left: auto; color: var(--muted); font-size: .75rem; align-self: end; padding-bottom: 12px; }
.subnav { display: flex; gap: 5px; margin: -8px 0 24px; flex-wrap: wrap; }
.subnav button { border: 0; min-height: 44px; padding: 9px 16px; background: transparent; color: var(--muted); font-weight: 600; }
.subnav button[aria-pressed="true"] { background: #e2ebe1; color: #234e36; }
.subnav button:hover { background: #e9ede5; }
.notice { border: 1px solid #e6b9ac; background: var(--danger-soft); color: #7c3027; padding: 14px 18px; border-radius: 8px; margin-bottom: 22px; display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.loading { min-height: 130px; color: var(--muted); padding: 26px 0; }
.loading-line { display: block; height: 5px; width: 210px; border-radius: 5px; background: #d6e2d5; margin-bottom: 15px; animation: loading 1.2s ease-in-out infinite alternate; }
@keyframes loading { to { opacity: .3; } }
.summary-band { display: grid; grid-template-columns: 1.5fr 1fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 28px; }
.stat { padding: 26px; min-width: 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-label { font-size: .8125rem; color: var(--muted); display: block; margin-bottom: 10px; }
.stat-value { font-size: 1.875rem; line-height: 1.25; font-weight: 650; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat:first-child .stat-value { color: var(--brand); }
.stat-foot { display: block; margin-top: 11px; font-size: .75rem; color: var(--muted); }
.stat .text-button { font-size: .75rem; min-height: 28px; padding: 0; }
.comparison.up { color: var(--brand); }
.comparison.down { color: var(--danger); }
.attention-strip { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 20px; background: #e7efe2; border: 1px solid #d5e1ce; border-radius: 10px; margin: -8px 0 28px; }
.attention-strip > div { min-width: 0; }
.attention-strip strong { display: block; font-size: .8125rem; font-weight: 600; }
.attention-strip small { display: block; font-size: .75rem; color: #52634c; margin-top: 3px; }
.attention-strip .text-button { font-variant-numeric: tabular-nums; padding: 0; flex-shrink: 0; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; margin-bottom: 28px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; overflow: clip; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px 18px; }
.panel-header p { font-size: .75rem; color: var(--muted); margin-top: 4px; }
.panel-body { padding: 0 24px 24px; }
.panel + .panel-section { margin-top: 24px; }
.channel-row { display: grid; grid-template-columns: 1fr auto; gap: 7px 18px; padding: 14px 0; border-top: 1px solid #edf0eb; font-size: .875rem; }
.channel-row strong { font-variant-numeric: tabular-nums; }
.channel-row small { color: var(--muted); }
.channel-bar { height: 4px; background: #edf1e9; border-radius: 3px; grid-column: 1/-1; overflow: hidden; }
.channel-bar span { display: block; height: 100%; width: var(--bar-width); background: #4f8463; border-radius: inherit; }
.finance-snapshot { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.finance-column { padding: 0 24px 22px; }
.finance-column + .finance-column { border-left: 1px solid var(--line); }
.finance-column h3 { font-size: .875rem; margin-bottom: 20px; }
.mini-stat { display: grid; margin-top: 16px; gap: 4px; }
.mini-stat span { color: var(--muted); font-size: .75rem; }
.mini-stat strong { font-size: 1.0625rem; font-variant-numeric: tabular-nums; font-weight: 650; }
.danger-text { color: var(--danger); }
.small-strip { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; background: #edf3e9; border-top: 1px solid var(--line); }
.small-strip p { font-size: .8125rem; }
.list-toolbar { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.list-toolbar label { min-width: 150px; }
.list-toolbar .search-field { flex: 1; min-width: 190px; max-width: 400px; }
.report-toolbar .check-field { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.check-field input[type="checkbox"] { width: 18px; min-height: 18px; height: 18px; margin: 0; accent-color: var(--brand); flex-shrink: 0; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .8125rem; }
th { color: var(--muted); background: #fafbf8; text-align: left; font-size: .75rem; font-weight: 600; padding: 12px 20px; white-space: nowrap; }
td { padding: 15px 20px; border-top: 1px solid #e9ede6; vertical-align: middle; }
td.numeric, th.numeric { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td strong { font-weight: 600; }
td .secondary { display: block; color: var(--muted); font-size: .75rem; margin-top: 3px; }
.row-link { padding: 0; color: var(--brand); border: none; background: none; min-height: 32px; text-align: left; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.row-link:hover { color: var(--brand-hover); }
.badge { display: inline-flex; align-items: center; border-radius: 5px; padding: 4px 8px; font-size: .6875rem; line-height: 1.3; font-weight: 600; white-space: nowrap; background: #eef0ec; color: #566259; }
.badge.green { background: var(--brand-soft); color: #23583c; }
.badge.red { background: var(--danger-soft); color: #91352a; }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 20px; border-top: 1px solid var(--line); }
.pagination > span { color: var(--muted); font-size: .75rem; }
.pagination > div { display: flex; align-items: center; gap: 8px; }
.pagination .button { min-height: 38px; padding: 6px 12px; font-size: .75rem; }
.empty { padding: 42px 24px; text-align: center; color: var(--muted); }
.empty h3 { color: var(--ink); margin-bottom: 6px; }
.empty p { margin-inline: auto; font-size: .875rem; }
.section-gap { margin-top: 28px; }
.section-note { margin: 12px 0 20px; color: var(--muted); font-size: .75rem; }
.footer { margin-top: auto; padding: 0 40px 24px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; font-size: .6875rem; }
.login-screen { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-story { background: #e7ede1; padding: 54px clamp(32px, 6vw, 100px); display: flex; flex-direction: column; justify-content: space-between; gap: 70px; }
.login-story .brand span { display: inline; }
.login-story .brand strong { display: inline; font-size: inherit; }
.login-story h1 { font-size: clamp(2.5rem, 4vw, 4rem); letter-spacing: -.035em; line-height: 1.12; font-weight: 600; margin-bottom: 24px; }
.login-story p { font-size: 1rem; max-width: 37ch; color: #54644f; line-height: 1.75; }
.login-note { color: #5b6d53; font-size: .8125rem; }
.login-form-wrap { display: grid; place-items: center; padding: 40px; }
.login-form { width: 100%; max-width: 360px; display: grid; gap: 20px; }
.login-form h2 { font-size: 1.625rem; letter-spacing: -.025em; }
.login-form > .muted { margin-top: -12px; font-size: .875rem; }
.login-form > .button { margin-top: 4px; justify-content: space-between; }
.form-error { color: var(--danger); font-size: .8125rem; }
.form-error:empty { display: none; }
dialog { width: min(860px, calc(100% - 32px)); max-height: 88dvh; padding: 0; border: 0; border-radius: 14px; color: var(--ink); background: var(--surface); box-shadow: 0 20px 80px rgb(20 40 25 / .2); }
dialog::backdrop { background: rgb(20 35 24 / .4); }
.dialog-top { padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
#detailContent { padding: 24px; }
#detailContent h3 { margin: 26px 0 14px; }
#detailContent h3:first-child { margin-top: 0; }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 24px; }
.detail-grid dt { font-size: .75rem; color: var(--muted); margin-bottom: 5px; }
.detail-grid dd { margin: 0; font-size: .875rem; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.detail-total { padding: 18px 0; display: flex; justify-content: space-between; gap: 16px; border-block: 1px solid var(--line); font-weight: 650; font-variant-numeric: tabular-nums; }
.dashboard-intro { display: flex; justify-content: space-between; align-items: start; gap: 22px; padding: 0 0 26px; }
.dashboard-intro h2 { font-size: 1.375rem; margin-bottom: 7px; letter-spacing: -.02em; }
.dashboard-intro p { color: var(--muted); font-size: .875rem; }
.dashboard-date { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; font-size: .75rem; color: var(--muted); flex-shrink: 0; }
.dashboard-date strong { display: block; color: var(--ink); font-weight: 600; margin-top: 3px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 24px; }
.chart-panel { min-width: 0; }
.chart-wide { grid-column: 1/-1; }
.chart-panel .panel-header { align-items: start; }
.chart-panel .panel-header p { line-height: 1.6; }
.chart-body { padding: 0 24px 18px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: -4px 0 10px; }
.chart-legend button { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; border: 0; background: none; color: var(--ink); padding: 4px 0; font-size: .75rem; }
.chart-legend button[aria-pressed="false"] { color: var(--muted); text-decoration: line-through; }
.legend-mark { width: 18px; border-top: 3px solid var(--series-color); }
.legend-mark.dashed { border-top-style: dashed; }
.chart-plot { min-width: 0; width: 100%; min-height: 250px; touch-action: pan-y; border-radius: 4px; }
.chart-svg { display: block; width: 100%; height: 250px; overflow: visible; }
.chart-axis { font: 11px var(--font); fill: var(--muted); }
.chart-gridline { stroke: #e5eae3; stroke-width: 1; }
.chart-zero { stroke: #859488; stroke-width: 1; }
.chart-series { stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.chart-selection { stroke: #758a7a; stroke-width: 1; stroke-dasharray: 3 3; }
.chart-readout { display: flex; flex-wrap: wrap; gap: 7px 14px; padding: 13px 0 4px; font-size: .75rem; min-height: 60px; color: var(--muted); }
.chart-readout > strong { width: 100%; color: var(--ink); font-weight: 600; }
.chart-readout > span { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.chart-readout i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.chart-readout b { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; }
.chart-note { font-size: .75rem; line-height: 1.65; padding: 14px 24px 18px; border-top: 1px solid #edf0eb; color: var(--muted); }
.chart-data { margin-top: 14px; border-top: 1px solid #edf0eb; padding-top: 4px; }
.chart-data summary { min-height: 44px; display: list-item; padding: 12px 0 6px; cursor: pointer; color: var(--brand); font-size: .75rem; font-weight: 600; }
.chart-data th, .chart-data td { padding: 10px; font-size: .75rem; }
.bar-chart { display: grid; gap: 18px; padding: 8px 0 6px; }
.bar-chart-row > div:first-child { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; font-size: .8125rem; margin-bottom: 7px; }
.bar-chart-row strong { white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.bar-chart-row > div > span { overflow-wrap: anywhere; }
.bar-track { height: 8px; position: relative; background: #edf1e9; border-radius: 3px; overflow: hidden; }
.bar-track > span { position: absolute; top: 0; bottom: 0; background: #387b5e; border-radius: 3px; }
.bar-track > span.negative { background: var(--chart-red); }
.bar-track > i { position: absolute; top: 0; bottom: 0; width: 1px; background: #758a7a; z-index: 1; }
.chart-empty { display: grid; align-content: center; justify-items: center; text-align: center; gap: 8px; min-height: 230px; color: var(--muted); font-size: .8125rem; }
.chart-empty strong { color: var(--ink); font-weight: 600; }
.daily-chart { margin-bottom: 28px; }
@media (min-width: 1600px) { #content, .topbar, .footer { padding-inline: 56px; } }
@media (max-width: 1150px) {
  .sidebar { width: 196px; padding-inline: 12px; }
  .workspace { margin-left: 196px; }
  .topbar { padding: 28px 24px 24px; }
  #content { padding-inline: 24px; }
  .footer { padding-inline: 24px; }
  .sync-state { max-width: 125px; }
  .filter-note { width: 100%; padding: 0; margin: 0; }
  .overview-grid { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .stat { padding: 22px; }
  .stat-value { font-size: 1.625rem; }
}
@media (max-width: 720px) {
  body { font-size: 14px; }
  h1 { font-size: 1.5rem; }
  .sidebar { position: fixed; inset: auto 0 0; width: 100%; padding: 0 8px env(safe-area-inset-bottom); background: var(--surface); border-right: 0; border-top: 1px solid var(--line); }
  .sidebar > .brand, .restaurant, .sidebar-bottom { display: none; }
  .navigation { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px 0; }
  .navigation a { padding: 7px 4px; min-height: 52px; flex-direction: column; gap: 4px; font-size: .6875rem; border-radius: 7px; }
  .navigation a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
  .navigation .icon { width: 21px; height: 21px; }
  .workspace { margin-left: 0; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .topbar { padding: 20px 18px; align-items: start; gap: 8px; }
  .topbar p { font-size: .75rem; max-width: 26ch; }
  .mobile-brand { display: block; color: var(--brand); font-size: .6875rem; font-weight: 650; margin-bottom: 14px; }
  .mobile-brand strong { overflow-wrap: anywhere; }
  .mobile-only { display: inline-flex; }
  .topbar-actions { gap: 5px; flex-wrap: wrap; justify-content: end; max-width: 140px; }
  .topbar-actions .button { min-height: 40px; padding: 8px 10px; }
  #refresh > span { display: none; }
  .sync-state { width: 100%; max-width: none; justify-content: end; order: 3; font-size: .6875rem; margin-top: 9px; }
  #content { padding: 0 16px 26px; }
  .filters { gap: 10px; padding-bottom: 18px; margin-bottom: 22px; }
  .filters > .period-select { width: calc(100% - 112px); order: 0; }
  .filters > label { width: calc(50% - 5px); order: 2; }
  .filter-submit { width: 102px; order: 1; }
  .filters input[type="date"] { min-width: 0; width: 100%; font-size: 14px; }
  .filter-note { order: 3; font-size: .6875rem; }
  label { font-size: .75rem; }
  .summary-band { grid-template-columns: 1fr 1fr; margin-bottom: 22px; }
  .stat { padding: 18px; }
  .stat:first-child { grid-column: 1/-1; border-bottom: 1px solid var(--line); }
  .stat:nth-child(2) { border-left: 0; }
  .stat-value { font-size: 1.5rem; }
  .stat:first-child .stat-value { font-size: 2rem; }
  .stat-label { font-size: .75rem; margin-bottom: 7px; }
  .stat-foot { font-size: .6875rem; margin-top: 7px; }
  .overview-grid { gap: 20px; margin-bottom: 22px; }
  .attention-strip { padding: 12px 16px; margin: -8px 0 22px; }
  .attention-strip strong { font-size: .75rem; }
  .attention-strip small { font-size: .6875rem; }
  .attention-strip .text-button { font-size: .8125rem; }
  .panel-header { padding: 18px 18px 14px; }
  .panel-header .text-button { font-size: .75rem; }
  .panel-body { padding: 0 18px 18px; }
  .finance-column { padding: 0 18px 18px; }
  .finance-column h3 { font-size: .8125rem; }
  .mini-stat strong { font-size: .9375rem; }
  .small-strip { padding: 14px 18px; }
  .list-toolbar { gap: 10px; }
  .list-toolbar label { min-width: 0; flex: 1; width: calc(50% - 5px); }
  .list-toolbar .search-field { flex-basis: 100%; max-width: none; }
  .list-toolbar .button { align-self: end; }
  th, td { padding: 12px 14px; }
  .subnav { gap: 2px; margin-bottom: 20px; }
  .subnav button { padding: 9px 13px; font-size: .8125rem; }
  .footer { padding: 0 18px 18px; font-size: .6875rem; }
  .footer > span:first-child { display: none; }
  .pagination { padding: 14px; flex-wrap: wrap; }
  .login-screen { grid-template-columns: 1fr; min-height: 100dvh; }
  .login-story { padding: 25px; gap: 28px; }
  .login-story h1 { font-size: 2rem; margin-bottom: 12px; }
  .login-story h1 br { display: none; }
  .login-story p { font-size: .875rem; }
  .login-note { display: none; }
  .login-form-wrap { padding: 30px 25px 40px; }
  .login-form { max-width: 420px; gap: 17px; }
  .login-form h2 { font-size: 1.375rem; }
  .login-form input { font-size: 16px; }
  dialog { width: calc(100% - 20px); max-height: 92dvh; }
  .dialog-top { padding: 16px; }
  #detailContent { padding: 18px; }
  .detail-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .dashboard-intro { display: grid; gap: 16px; padding-bottom: 20px; }
  .dashboard-intro h2 { font-size: 1.25rem; }
  .dashboard-intro p { font-size: .8125rem; }
  .dashboard-date { display: flex; gap: 10px; align-items: center; padding: 10px 12px; }
  .dashboard-date strong { margin: 0; }
  .dashboard-grid { gap: 20px; }
  .chart-body { padding: 0 18px 14px; }
  .chart-note { padding: 12px 18px 16px; font-size: .6875rem; }
  .chart-readout { font-size: .6875rem; min-height: 78px; }
  .chart-legend { gap: 3px 12px; }
  .bar-chart-row > div:first-child { font-size: .75rem; }
  .responsive-records, .responsive-records tbody { display: block; width: 100%; }
  .responsive-records thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .responsive-records tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 18px; border-top: 1px solid var(--line); padding: 16px; }
  .responsive-records td { border: 0; padding: 0; display: block; grid-column: 1/-1; white-space: normal; overflow-wrap: anywhere; }
  .responsive-records td:first-child { grid-column: 1; grid-row: 1; }
  .responsive-records td:last-child { grid-column: 2; grid-row: 1; font-weight: 650; white-space: nowrap; }
  .responsive-records td:not(:first-child)::before { content: attr(data-label); display: block; color: var(--muted); font-size: .6875rem; font-weight: 400; margin-bottom: 3px; }
  .responsive-records td:not(:first-child):not(:last-child) { font-size: .8125rem; padding-top: 6px; border-top: 1px solid #edf0eb; }
  .responsive-records td.numeric:not(:last-child) { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
