.breadcrumbs .home-crumb { color: var(--text); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs [hidden] { display: none; }
.home-dashboard { --home-accent: #6cabe0; --home-secondary: #a2c7e8; display: grid; gap: 14px; min-width: 0; }
.home-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.home-heading h1 { margin: 0; font-size: clamp(24px, 3vw, 34px); }
.home-counts, .home-feature-counts, .home-trends, .home-operations, .home-record-totals { display: grid; gap: 12px; }
.home-counts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-feature-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-trends { grid-template-columns: minmax(0, 2.5fr) minmax(215px, 1fr); }
.home-operations { grid-template-columns: minmax(215px, 1fr) minmax(0, 2.4fr); }
.home-record-totals { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 10px 0 4px; }
.home-panel, .home-counts .home-metric, .home-feature-counts .home-metric {
  min-width: 0; padding: 13px 15px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface);
}
.home-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.home-panel h2 { margin: 0 0 8px; padding-left: 9px; border-left: 3px solid var(--home-accent); color: var(--text); font-size: 15px; line-height: 1.15; }
.home-panel-heading h2 { margin: 0; }
.home-panel select { width: auto; max-width: 55%; padding: 5px 7px; }
.home-record, .home-feature-counts { --home-accent: #bb9ee0; --home-secondary: #dfcaed; }
.home-amber { --home-accent: #d8b36f; }
.home-metric { display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.home-metric span { color: var(--muted); font-size: 12px; }
.home-metric strong { color: var(--text); font-size: 18px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.home-counts .home-metric, .home-feature-counts .home-metric { border-left: 3px solid var(--home-accent); }
.home-counts .home-metric strong { font-size: 25px; }
.home-feature-counts .home-metric { flex-direction: row; align-items: center; justify-content: space-between; }
.home-panel > .home-metric { padding: 6px 0; border-bottom: 1px solid var(--line); }
.home-panel > .home-metric:last-of-type { border-bottom: 0; }
.home-record-totals .home-metric { padding: 8px 10px; background: var(--surface2); border-radius: 6px; }
.home-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; color: var(--muted); font-size: 11px; }
.home-legend span { display: inline-flex; align-items: center; gap: 6px; }
.home-legend i { width: 18px; border-top: 2px solid var(--home-accent); }
.home-legend i.dashed { border-top: 2px dashed var(--home-secondary); }
.home-figure { position: relative; min-width: 0; }
.home-figure canvas { display: block; width: 100%; height: 210px; }
.home-trends > .home-panel:first-child { display: flex; flex-direction: column; }
.home-trends .home-figure { flex: 1; min-height: 210px; }
.home-trends .home-figure canvas { position: absolute; inset: 0; height: 100%; }
.home-record .home-figure canvas { height: 175px; }
.home-tooltip { position: absolute; top: 4px; z-index: 1; pointer-events: none; max-width: 100%; padding: 6px 8px; border-radius: 5px; border: 1px solid var(--line); color: var(--text); background: var(--surface2); font-size: 11px; }
.home-note, .home-empty { color: var(--muted); font-size: 11px; margin: 6px 0 2px; }
.home-empty { padding: 12px 0; }
.home-operations th, .home-operations td { padding: 7px 8px; }
.home-operations th:not(:first-child), .home-operations td:not(:first-child) { text-align: right; }
.home-operations td { font-variant-numeric: tabular-nums; }
.home-panel .home-text-action { background: none; border: 0; padding: 4px 0; color: var(--home-accent); text-decoration: underline; }
:root[data-theme=light] .home-dashboard { --home-accent: #265f92; --home-secondary: #517b99; }
:root[data-theme=light] :is(.home-record, .home-feature-counts) { --home-accent: #7452a2; --home-secondary: #9679b6; }
:root[data-theme=light] .home-amber { --home-accent: #8c6118; }
@media (max-width: 1150px) { .home-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 830px) { .home-trends, .home-operations { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 500px) {
  .home-heading { align-items: flex-start; }
  .home-heading .heading-actions { flex-wrap: wrap; justify-content: flex-end; }
  .home-record-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .home-record-totals > :last-child { grid-column: 1 / -1; }
  .home-feature-counts .home-metric { flex-direction: column; align-items: flex-start; }
}
