:root {
  --viz-ink: #142f50;
  --viz-muted: #4f667c;
  --viz-royal: #1755be;
  --viz-teal: #087e7b;
  --viz-sky: #0c8bb9;
  --viz-prior: #71869d;
  --viz-grid: #d1e1eb;
  --viz-field: #f0f6fa;
  --viz-tint: #e5f2f6;
  --viz-paper: #fff;
}

.page-rail {
  background: linear-gradient(163deg, #f6fafc, #eef5f8 66%, #f6fafb);
  border-color: var(--viz-grid);
}
.page-nav a[aria-current] {
  color: #164d9f;
  background: linear-gradient(100deg, #d9eafa, #e5f4f5);
  box-shadow: inset 3px 0 var(--viz-royal);
}
#review-queue .table-wrap { position: relative; }
.overview-layout :is(.patient-demand, .practice-attention, .overview-trend, .intake-profile, .overview-reports) {
  border-color: var(--viz-grid);
  box-shadow: 0 4px 16px -8px rgb(21 64 91 / 12%);
}
.overview-layout .practice-attention {
  background: linear-gradient(158deg, #e6f2f6 0, #f8fbfc 48%, #fff 85%);
}
.attention-queues { border-block: 1px solid var(--viz-grid); }
.attention-row .attention-icon {
  color: #255780;
  background: var(--viz-paper);
  border: 1px solid #c6dce7;
  border-radius: 50%;
}
.attention-row.attention-overdue .attention-icon { color: #85531b; border-color: #e3c7a3; background: #fff6e9; }
.attention-row .attention-count { letter-spacing: -.02em; }
a.attention-row:is(:hover, :focus-visible) { background: #e5f1f5; }
.attention-footer { border-top: 0; }

.ha-signals { gap: 6px; }
.ha-signals .ha-signal {
  grid-template-columns: 33px minmax(0, 1fr) auto;
  align-items: center;
  align-content: center;
  gap: 1px 7px;
  min-height: 48px;
  padding: 6px 8px;
  border: 1px solid var(--viz-grid);
  border-radius: 8px;
  background: linear-gradient(115deg, #f1f7fa, #fff 85%);
}
.ha-signals .ha-signal > svg {
  grid-row: 1 / span 2;
  align-self: center;
  width: 33px;
  height: 33px;
  color: var(--viz-teal);
}
.ha-signal .theme-track { stroke: #c5dce4; stroke-width: 2.4; }
.ha-signal .theme-share { stroke: var(--viz-teal); stroke-width: 2.4; stroke-linecap: butt; }
.ha-signals strong { color: var(--viz-ink); }
.ha-signals .ha-signal small { line-height: 1.2; }
.ha-signals .ha-signal:not(:has(small)) > svg { grid-row: 1; }

.staff-activity-counts {
  padding: 12px;
  border: 1px solid var(--viz-grid);
  border-radius: 10px;
  background: var(--viz-field);
}
.staff-activity-counts > div { padding-inline-start: 9px; border-inline-start: 2px solid #aac9d8; }
.staff-activity-counts dd { color: var(--viz-ink); }
.overview-layout .summary-strip { border-color: var(--viz-grid); }
.access-callouts button { background: var(--viz-field); }
.access-callouts button:is(:hover, :focus-visible) { background: var(--viz-tint); }
.report-icon { border: 1px solid rgb(41 88 134 / 13%); }
.overview-report > summary { border-radius: 6px; }

.queue-grid th, .users-table th { background: var(--viz-field); color: var(--viz-muted); }
.queue-grid tr:hover td, .users-table tbody tr:hover { background: #f2f8fb; }
.inbox-page #workspace, .signin-card, .connection-panel { border-color: var(--viz-grid); }
.inbox-page #workspace, .signin-card { box-shadow: 0 8px 28px -18px rgb(14 60 93 / 28%); }
.inbox-page .drawer-head { background: linear-gradient(110deg, var(--viz-field), #fafcfd); }
.queue-grid tbody, .users-table tbody { font-variant-numeric: tabular-nums; }

@media (forced-colors: active) {
  .ha-signal .theme-track { stroke: GrayText; }
  .ha-signal .theme-share { stroke: CanvasText; }
  .page-nav a[aria-current] { outline: 1px solid Highlight; outline-offset: -2px; }
}
