.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: none;
    border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
    color: inherit;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.theme-toggle:hover { border-color: currentColor; }
.theme-toggle svg { width: 17px; height: 17px; display: block; }
.theme-toggle .icon-to-light { display: none; }
.theme-toggle .icon-to-dark { display: block; }
.sidebar-nav .theme-toggle {
    width: auto;
    justify-content: flex-start;
    border: 0;
    padding: 0;
}
@media (prefers-reduced-motion: reduce) {
    .theme-toggle { transition: none; }
}
.sidebar-nav .theme-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: 40px;
    padding: 0 16px;
    color: var(--sidebar-text);
    background: none;
    border: 0;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}
.sidebar-nav .theme-toggle:hover {
    color: var(--sidebar-text-active);
    background: rgba(255, 255, 255, 0.04);
}
.sidebar-nav .theme-toggle svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-nav .theme-toggle span { display: none; white-space: nowrap; }
.dashboard-sidebar.expanded .sidebar-nav .theme-toggle span { display: inline; }
.dashboard-sidebar:not(.expanded) .sidebar-nav .theme-toggle {
    justify-content: center;
    padding: 0;
}
.sidebar-nav .theme-toggle {
    width: auto;
    height: 38px;
    margin: 1px 6px;
    padding: 0;
    gap: 0;
    border: 0;
    border-radius: 9px;
    justify-content: center;
}
.sidebar-nav .theme-toggle svg { width: 17px; height: 17px; opacity: 0.65; }
.sidebar-nav .theme-toggle:hover svg { opacity: 1; }
.dashboard-sidebar.expanded .sidebar-nav .theme-toggle {
    justify-content: flex-start;
    gap: 12px;
    padding: 0 11px;
}
.dash-chart-foot {
    margin-top: 14px;
    padding-top: 0;
    text-align: center;
    width: 100%;
}
