:root {
    --dashboard-green: #17653d;
    --dashboard-green-dark: #10492d;
    --dashboard-green-soft: #eef6f1;
    --dashboard-gold: #b28a2e;
    --dashboard-orange: #b96d22;
    --dashboard-red: #b93f3f;
    --dashboard-ink: #172019;
    --dashboard-muted: #66736c;
    --dashboard-border: #e3e9e5;
    --dashboard-page: #f4f6f8;
    --dashboard-surface: #ffffff;
    --dashboard-shadow: 0 10px 30px rgba(22, 35, 27, 0.07);
    --dashboard-radius: 16px;
    --focus-ring: 0 0 0 3px rgba(23, 101, 61, 0.2);
}

html { scrollbar-color: #aab6af var(--dashboard-page); }

body {
    background: var(--dashboard-page);
    color: var(--dashboard-ink);
    font-family: "Prompt", "Noto Sans Thai", sans-serif;
}

::selection { background: rgba(23, 101, 61, 0.18); color: var(--dashboard-ink); }

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 300;
    padding: 10px 14px;
    background: var(--dashboard-green);
    color: #fff;
    border-radius: 10px;
    transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.dashboard-main {
    padding: 28px 30px 44px;
    overflow: clip;
}

.sidebar-footer {
    padding: 14px 16px 22px;
    border-top: 1px solid rgba(126, 170, 79, 0.14);
}

.dashboard-title-group {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.dashboard-title-group h1 {
    color: var(--dashboard-ink);
    font-size: clamp(1.7rem, 2.3vw, 2.2rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.dashboard-title-group p {
    margin-top: 5px;
    color: var(--dashboard-muted);
    font-size: 0.86rem;
}

.dashboard-topbar { margin-bottom: 24px; }

.topbar-actions { flex: 0 0 auto; }

.icon-btn,
.user-profile {
    border: 0;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.icon-btn {
    width: 46px;
    height: 46px;
    color: #2f3933;
}

.icon-btn:hover {
    background: #f0f3f1;
    color: var(--dashboard-green);
    transform: translateY(-1px);
}

.user-profile { height: 50px; }
.user-avatar { background: #25342b; }

.mobile-menu-button {
    display: none;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    background: var(--dashboard-surface);
    color: var(--dashboard-ink);
    border: 0;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    cursor: pointer;
}

.mobile-menu-button i { font-size: 1.35rem; }

.dashboard-nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(4, 12, 7, 0.48);
    border: 0;
}

.dashboard-error-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 52px;
    margin-bottom: 18px;
    padding: 10px 12px 10px 16px;
    background: #fff8f2;
    color: #7e451a;
    border: 1px solid #f1d6bd;
    border-radius: 12px;
}

.dashboard-error-banner[hidden] { display: none; }
.dashboard-error-banner > div { display: flex; align-items: center; gap: 10px; }
.dashboard-error-banner p { font-size: 0.84rem; }
.dashboard-error-banner button {
    min-height: 38px;
    padding: 0 14px;
    background: #fff;
    color: #7e451a;
    border: 1px solid #e7b991;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.summary-card {
    min-width: 0;
    min-height: 142px;
    padding: 18px;
    background: var(--dashboard-surface);
    border-radius: var(--dashboard-radius);
    box-shadow: var(--dashboard-shadow);
}

.summary-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    color: #46524b;
    font-size: 0.82rem;
    font-weight: 600;
}

.summary-card-head span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.summary-card-head a,
.card-header > a {
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    color: #79847d;
    border-radius: 10px;
    transition: background 160ms ease, color 160ms ease;
}

.summary-card-head a:hover,
.card-header > a:hover { background: #f2f5f3; color: var(--dashboard-green); }

.summary-card > strong {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 16px;
    color: var(--dashboard-ink);
    font-size: clamp(1.75rem, 2.35vw, 2.3rem);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
}

.summary-card > strong em {
    color: var(--dashboard-muted);
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0;
}

.summary-card > small {
    display: block;
    min-height: 18px;
    margin-top: 12px;
    color: var(--dashboard-muted);
    font-size: 0.72rem;
}

.summary-card > small[data-state="error"] { color: var(--dashboard-red); }
.summary-card-revenue .summary-card-head a { color: var(--dashboard-gold); }

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-card {
    min-width: 0;
    overflow: hidden;
    background: var(--dashboard-surface);
    border-radius: var(--dashboard-radius);
    box-shadow: var(--dashboard-shadow);
}

.sales-card { grid-column: span 7; min-height: 320px; }
.order-status-card { grid-column: span 5; min-height: 320px; }
.breed-card { grid-column: span 6; min-height: 300px; }
.cost-card { grid-column: span 6; min-height: 300px; }
.vaccine-card { grid-column: span 4; min-height: 270px; }
.listing-card { grid-column: span 4; min-height: 270px; }
.activity-card { grid-column: span 4; min-height: 270px; }
.health-card { grid-column: span 6; min-height: 270px; }
.comparison-card { grid-column: span 6; min-height: 300px; }

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-height: 76px;
    padding: 18px 18px 13px;
}

.card-header > div { min-width: 0; }

.card-header h2 {
    color: var(--dashboard-ink);
    font-size: 0.93rem;
    font-weight: 650;
    line-height: 1.4;
    letter-spacing: -0.015em;
}

.card-header p {
    margin-top: 4px;
    color: var(--dashboard-muted);
    font-size: 0.7rem;
    line-height: 1.45;
}

.record-list,
.activity-list,
.cost-summary,
.chart-shell { min-height: 0; }

.record-list,
.activity-list { padding: 0 18px 12px; }

.record-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 51px;
    padding: 7px 0;
    border-top: 1px solid #edf1ee;
}

.record-row:first-child { border-top: 0; }

.record-row img {
    width: 42px;
    height: 38px;
    object-fit: cover;
    border-radius: 9px;
    background: #eef1ef;
}

.record-copy { min-width: 0; }

.record-copy strong,
.record-copy span,
.record-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.record-copy strong { color: #27332c; font-size: 0.74rem; font-weight: 600; }
.record-copy span { margin-top: 2px; color: var(--dashboard-muted); font-size: 0.66rem; }
.record-copy small { margin-top: 1px; color: #89928d; font-size: 0.62rem; }

.record-meta {
    max-width: 88px;
    color: var(--dashboard-green);
    font-size: 0.68rem;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    text-align: right;
}

button.record-meta {
    min-width: 40px;
    min-height: 36px;
    padding: 0 10px;
    background: #f2f5f3;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
}

.record-meta.is-warning { color: var(--dashboard-orange); }
.record-meta.is-overdue { color: var(--dashboard-red); }

.cost-summary {
    display: grid;
    gap: 0;
    padding: 0 18px 14px;
}

.cost-summary > div:not(.panel-loading) {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    min-height: 46px;
    padding: 9px 0;
    border-top: 1px solid #edf1ee;
}

.cost-summary dt { color: var(--dashboard-muted); font-size: 0.7rem; }
.cost-summary dd { color: #26332b; font-size: 0.82rem; font-variant-numeric: tabular-nums; font-weight: 650; text-align: right; }
.cost-summary > div:first-child dd { color: var(--dashboard-green); font-size: 1.05rem; }

.chart-shell {
    position: relative;
    height: calc(100% - 76px);
    min-height: 220px;
    padding: 4px 18px 18px;
}

.chart-shell canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-height: 250px;
}

.chart-frame {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chart-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    margin-bottom: 8px;
    padding: 0 4px;
}

.chart-summary strong {
    color: var(--dashboard-ink);
    font-size: 1.5rem;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.chart-summary span { color: var(--dashboard-muted); font-size: 0.7rem; }

.chart-legend { display: flex; flex-wrap: wrap; gap: 12px; color: var(--dashboard-muted); font-size: 0.68rem; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 16px; height: 3px; border-radius: 3px; background: var(--dashboard-green); }
.chart-legend .expense-key { background: var(--dashboard-gold); }

.bar-chart {
    display: grid;
    grid-template-columns: repeat(6, minmax(32px, 1fr));
    align-items: end;
    gap: 12px;
    flex: 1;
    min-height: 200px;
    padding-top: 18px;
    border-bottom: 1px solid #e8ede9;
    background-image: linear-gradient(to bottom, transparent calc(25% - 1px), #edf1ee 25%, transparent calc(25% + 1px), transparent calc(50% - 1px), #edf1ee 50%, transparent calc(50% + 1px), transparent calc(75% - 1px), #edf1ee 75%, transparent calc(75% + 1px));
}

.bar-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    height: 100%;
}

.bar-column strong { color: #58645d; font-size: 0.64rem; font-variant-numeric: tabular-nums; }
.bar-column i { display: block; width: min(34px, 72%); min-height: 3px; background: var(--dashboard-green); border-radius: 6px 6px 2px 2px; }
.bar-column span { min-height: 20px; color: #7c8680; font-size: 0.62rem; white-space: nowrap; }

.line-chart { flex: 1; width: 100%; min-height: 190px; overflow: visible; }
.chart-grid-line { stroke: #edf1ee; stroke-width: 1; }
.chart-income-line { fill: none; stroke: var(--dashboard-green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-expense-line { fill: none; stroke: var(--dashboard-gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-income-dot { fill: var(--dashboard-green); }
.chart-expense-dot { fill: var(--dashboard-gold); }
.chart-axis-label { fill: #7d8881; font-family: "Prompt", sans-serif; font-size: 11px; }

.activity-row {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 8px 0;
    border-top: 1px solid #edf1ee;
}

.activity-row:first-child { border-top: 0; }
.activity-icon { display: grid; place-items: center; width: 32px; height: 32px; background: #f0f3f1; color: #506057; border-radius: 9px; }
.activity-icon.is-income { color: var(--dashboard-green); background: var(--dashboard-green-soft); }
.activity-icon.is-expense { color: var(--dashboard-orange); background: #fff4e9; }
.activity-icon.is-health { color: var(--dashboard-red); background: #fff0f0; }
.activity-copy { min-width: 0; }
.activity-copy strong,
.activity-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-copy strong { color: #2a352e; font-size: 0.72rem; font-weight: 600; }
.activity-copy span { margin-top: 2px; color: var(--dashboard-muted); font-size: 0.64rem; }
.activity-row time { color: #87918b; font-size: 0.61rem; white-space: nowrap; }

.panel-loading,
.panel-empty,
.panel-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 128px;
    color: var(--dashboard-muted);
    text-align: center;
}

.chart-shell .panel-loading,
.chart-shell .panel-empty,
.chart-shell .panel-error { height: 100%; min-height: 180px; }
.panel-loading span { width: 24px; height: 24px; border: 2px solid #dfe6e1; border-top-color: var(--dashboard-green); border-radius: 50%; animation: dashboard-spin 800ms linear infinite; }
.panel-loading p,
.panel-empty p,
.panel-error p { max-width: 34ch; font-size: 0.72rem; line-height: 1.6; }
.panel-empty i,
.panel-error i { font-size: 1.2rem; }
.panel-error { color: var(--dashboard-red); }

@keyframes dashboard-spin { to { transform: rotate(360deg); } }

.dashboard-health-modal[hidden] { display: none; }
.dashboard-health-modal { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; padding: 20px; }
.dashboard-health-modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; background: rgba(5, 14, 8, 0.58); border: 0; cursor: default; }
.dashboard-health-modal-dialog { position: relative; width: min(620px, 100%); max-height: min(760px, calc(100vh - 40px)); overflow: hidden; background: #fff; border-radius: 16px; box-shadow: 0 24px 70px rgba(5, 14, 8, 0.28); }
.dashboard-health-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 22px 16px; border-bottom: 1px solid var(--dashboard-border); }
.dashboard-health-modal-header p { color: var(--dashboard-muted); font-size: 0.7rem; }
.dashboard-health-modal-header h2 { margin-top: 3px; font-size: 1.1rem; }
.dashboard-health-modal-close {
    flex: 0 0 46px !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    color: #374151 !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.1) !important;
    font-size: 20px !important;
    cursor: pointer !important;
    z-index: 30 !important;
    transition:
        background-color 140ms ease,
        border-color 140ms ease,
        color 140ms ease,
        transform 160ms cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 140ms ease !important;
}

.dashboard-health-modal-close:hover {
    background: #111827 !important;
    border-color: #111827 !important;
    color: #ffffff !important;
    transform: rotate(90deg) !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18) !important;
}

.dashboard-health-modal-close:active {
    transform: rotate(90deg) scale(0.92) !important;
}

.dashboard-health-modal-close:focus-visible {
    outline: 3px solid rgba(242, 101, 34, 0.24) !important;
    outline-offset: 2px !important;
}
.dashboard-health-modal-body { max-height: calc(100vh - 150px); padding: 20px 22px 24px; overflow-y: auto; }
.dashboard-health-summary { display: flex; align-items: center; gap: 14px; padding: 14px; background: #f7f9f7; border-radius: 12px; }
.dashboard-health-summary img { width: 70px; height: 64px; object-fit: cover; border-radius: 10px; }
.dashboard-health-summary div { min-width: 0; }
.dashboard-health-summary small,
.dashboard-health-summary strong,
.dashboard-health-summary span { display: block; }
.dashboard-health-summary small { color: var(--dashboard-muted); font-size: 0.68rem; }
.dashboard-health-summary strong { margin-top: 2px; font-size: 1rem; }
.dashboard-health-summary span { margin-top: 3px; color: var(--dashboard-green); font-size: 0.75rem; }
.dashboard-health-history-section { margin-top: 20px; }
.dashboard-health-history-section h3 { margin-bottom: 10px; font-size: 0.82rem; }
.dashboard-health-history-card { padding: 12px 0; border-top: 1px solid var(--dashboard-border); }
.dashboard-health-history-card > div { display: flex; justify-content: space-between; gap: 12px; }
.dashboard-health-history-card strong { font-size: 0.76rem; }
.dashboard-health-history-card time { color: var(--dashboard-muted); font-size: 0.67rem; }
.dashboard-health-history-card p { margin-top: 5px; color: #4f5b54; font-size: 0.7rem; line-height: 1.55; }
.dashboard-health-modal-empty { padding: 12px 0; color: var(--dashboard-muted); font-size: 0.72rem; }
.dashboard-modal-open { overflow: hidden; }

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--dashboard-green);
    outline-offset: 3px;
    box-shadow: var(--focus-ring);
}

button:disabled { cursor: wait; opacity: 0.65; }

/* =========================================================
   DASHBOARD RESPONSIVE BREAKPOINTS (Desktop, Tablet, Mobile)
   ========================================================= */

/* 1. Laptop / Notebook / Medium Desktop (901px - 1200px) */
@media (max-width: 1200px) {
    .stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
    .summary-card-revenue {
        grid-column: span 3;
    }
    .analytics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
    .sales-card,
    .order-status-card,
    .breed-card,
    .health-card,
    .comparison-card {
        grid-column: span 2;
    }
    .cost-card,
    .vaccine-card,
    .listing-card,
    .activity-card {
        grid-column: span 1;
    }
}

/* 2. Tablet & Mobile Base (< 900px) */
@media (max-width: 900px) {
    .dashboard-main {
        margin-left: 0;
        padding: 20px;
    }

    .sidebar {
        z-index: 110;
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar[aria-hidden="true"] {
        visibility: hidden;
    }

    body.dashboard-nav-open {
        overflow: hidden;
    }

    /* Topbar 2-Row Grid: Row 1 = Hamburger + Actions, Row 2 = Page Title */
    .dashboard-topbar {
        display: grid !important;
        grid-template-columns: auto 1fr !important;
        grid-template-rows: auto auto !important;
        align-items: center !important;
        gap: 12px 10px !important;
        margin-bottom: 20px !important;
    }

    .dashboard-title-group {
        display: contents !important;
    }

    .mobile-menu-button {
        grid-column: 1 !important;
        grid-row: 1 !important;
        display: inline-grid !important;
        place-items: center !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        border-radius: 12px !important;
        background: var(--dashboard-surface) !important;
        color: var(--dashboard-ink) !important;
        border: 1px solid var(--dashboard-border) !important;
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
        font-size: 20px !important;
        cursor: pointer !important;
    }

    .topbar-actions {
        grid-column: 2 !important;
        grid-row: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 8px !important;
        width: auto !important;
    }

    .dashboard-title-group > div {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        margin-top: 2px !important;
    }

    .dashboard-title-group h1 {
        font-size: clamp(1.45rem, 5vw, 1.85rem) !important;
        line-height: 1.25 !important;
    }

    .dashboard-title-group p {
        font-size: 0.82rem !important;
        margin-top: 2px !important;
    }

    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .summary-card {
        min-height: 130px;
        padding: 16px;
    }

    .summary-card-revenue {
        grid-column: 1 / -1 !important;
    }

    .analytics-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
    }

    .dashboard-card {
        min-height: 252px;
    }

    .sales-card {
        height: 400px;
    }

    .comparison-card {
        height: 340px;
    }

    .activity-card {
        min-height: 300px;
    }
}

/* 3. Smartphone / Mobile (< 640px) */
@media (max-width: 640px) {
    .dashboard-main {
        padding: 14px 12px 36px !important;
    }

    .user-info {
        display: none !important;
    }

    .user-profile {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        padding: 0 !important;
        display: inline-grid !important;
        place-items: center !important;
        border-radius: 50% !important;
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
    }

    .user-avatar {
        width: 36px !important;
        height: 36px !important;
        flex: none !important;
    }

    .icon-btn,
    .mobile-menu-button {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        border-radius: 12px !important;
    }

    .topbar-actions {
        gap: 6px !important;
    }

    .dashboard-title-group h1 {
        font-size: 1.4rem !important;
    }

    .dashboard-title-group p {
        font-size: 0.78rem !important;
    }

    .stat-grid {
        gap: 10px !important;
    }

    .summary-card {
        min-height: 118px;
        padding: 14px;
        border-radius: 14px;
    }

    .summary-card > strong {
        font-size: clamp(1.55rem, 5vw, 1.85rem) !important;
        margin-top: 10px;
    }

    .summary-card > small {
        margin-top: 8px;
        font-size: 0.68rem;
    }

    .dashboard-error-banner {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .dashboard-error-banner button {
        width: 100%;
    }

    .card-header {
        padding-inline: 14px;
    }

    .record-list,
    .activity-list,
    .cost-summary {
        padding-inline: 14px;
    }

    .chart-shell {
        padding-inline: 10px;
    }

    .dashboard-health-modal {
        padding: 10px;
    }

    .dashboard-health-modal-header,
    .dashboard-health-modal-body {
        padding-inline: 14px;
    }
}

/* 4. Small Mobile / Narrow Screen (< 375px) */
@media (max-width: 375px) {
    .dashboard-main {
        padding: 12px 8px 30px !important;
    }

    .icon-btn,
    .mobile-menu-button,
    .user-profile {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
    }

    .user-avatar {
        width: 32px !important;
        height: 32px !important;
    }

    .topbar-actions {
        gap: 4px !important;
    }

    .dashboard-title-group h1 {
        font-size: 1.25rem !important;
    }

    .dashboard-title-group p {
        font-size: 0.74rem !important;
    }

    .stat-grid {
        gap: 8px !important;
    }

    .summary-card {
        padding: 10px 12px;
        min-height: 106px;
    }

    .summary-card > strong {
        font-size: 1.45rem !important;
    }

    .summary-card-head a {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
