.dashboard-panel {
    --dashboard-surface: #fff;
    --dashboard-line: #dbe6ef;
    --dashboard-ink: #253f58;
    --dashboard-muted: #657c91;
    display: grid;
    flex: 1;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    align-content: start;
    padding: 0 3px 8px;
    gap: 20px;
    min-width: 0;
}
.dashboard-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dashboard-toolbar button { display: inline-flex; align-items: center; gap: 8px; }
.dashboard-toolbar svg { width: 17px; height: 17px; flex: none; }
.dashboard-status, .dashboard-note { color: var(--dashboard-muted); font-size: .75rem; line-height: 1.5; }
.dashboard-note { margin: 0; }
.dashboard-error { margin: 0; }
.dashboard-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dashboard-card {
    --dashboard-tint: #eef5fb;
    --dashboard-accent: #417fae;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--dashboard-line);
    border-top: 3px solid var(--dashboard-accent);
    border-radius: 12px;
    background: var(--dashboard-surface);
    min-width: 0;
}
.dashboard-card[data-tone="amber"] { --dashboard-tint: #fff7e9; --dashboard-accent: #a97b27; }
.dashboard-card[data-tone="violet"] { --dashboard-tint: #f4f0fa; --dashboard-accent: #8465ae; }
.dashboard-card[data-tone="teal"] { --dashboard-tint: #eaf7f3; --dashboard-accent: #3c887d; }
.dashboard-card-link { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 12px; width: 100%; min-width: 0; padding: 20px; border: 0; border-radius: 0; color: var(--dashboard-ink); background: linear-gradient(135deg, var(--dashboard-tint), var(--dashboard-surface) 80%); text-align: left; font: inherit; cursor: pointer; }
.dashboard-card-title { font-size: .875rem; font-weight: 650; }
.dashboard-card-count { color: var(--dashboard-accent); font-size: 2.25rem; line-height: 1.05; font-variant-numeric: tabular-nums; }
.dashboard-card-description { color: var(--dashboard-muted); font-size: .75rem; line-height: 1.5; }
.dashboard-card-action { margin-top: auto; padding-top: 4px; color: var(--dashboard-accent); font-size: .75rem; font-weight: 650; }
.dashboard-card-secondary { align-self: flex-start; margin: 0 20px 16px; padding: 5px 9px; border: 1px solid var(--dashboard-line); border-radius: 6px; background: var(--dashboard-tint); color: var(--dashboard-muted); font-size: .75rem; cursor: pointer; }
.dashboard-card-secondary.has-errors { color: #855616; background: #fff4df; border-color: #ead6ad; }
.dashboard-card-link:hover .dashboard-card-action, .dashboard-card-secondary:hover { text-decoration: underline; }
.dashboard-card-link:focus-visible, .dashboard-card-secondary:focus-visible, .dashboard-shortcut:focus-visible { outline: 3px solid var(--dashboard-accent, #417fae); outline-offset: -3px; }
.dashboard-shortcuts { padding: 20px; border: 1px solid var(--dashboard-line); border-radius: 12px; background: var(--dashboard-surface); }
.dashboard-shortcuts h2 { margin: 0 0 16px; color: var(--dashboard-ink); font-size: .9375rem; }
.dashboard-shortcut-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.dashboard-shortcut { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; padding: 12px; border: 1px solid var(--dashboard-line); border-radius: 8px; color: var(--dashboard-ink); background: var(--dashboard-surface); text-align: left; font-size: .8125rem; line-height: 1.4; cursor: pointer; }
.dashboard-shortcut:hover { border-color: #8bb2cf; background: #f5f9fc; }
.dashboard-shortcut-group { color: var(--dashboard-muted); font-size: .6875rem; }
.dashboard-empty { color: var(--dashboard-muted); font-size: .875rem; }
html[data-theme="dark"] .dashboard-panel { --dashboard-surface: #1a283a; --dashboard-line: #34485f; --dashboard-ink: #e0e9f3; --dashboard-muted: #abbdd1; }
html[data-theme="dark"] .dashboard-card { --dashboard-tint: #233b50; --dashboard-accent: #8fbfe6; }
html[data-theme="dark"] .dashboard-card[data-tone="amber"] { --dashboard-tint: #3c3324; --dashboard-accent: #dec184; }
html[data-theme="dark"] .dashboard-card[data-tone="violet"] { --dashboard-tint: #342e46; --dashboard-accent: #c4ace4; }
html[data-theme="dark"] .dashboard-card[data-tone="teal"] { --dashboard-tint: #213d3c; --dashboard-accent: #8ac9bc; }
html[data-theme="dark"] .dashboard-card-secondary.has-errors { color: #e3c590; background: #3c3324; border-color: #6c5935; }
html[data-theme="dark"] .dashboard-shortcut:hover { background: #253d54; border-color: #8fbfe6; }
@media (max-width: 1150px) { .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dashboard-shortcut-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .dashboard-metrics { grid-template-columns: 1fr; } .dashboard-shortcut-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dashboard-card-link, .dashboard-shortcuts { padding: 16px; } .dashboard-toolbar { flex-wrap: wrap; } }
@media (max-width: 440px) { .dashboard-shortcut-grid { grid-template-columns: 1fr; } }
