html:has(body.ds-client-dashboard) {
    background-color: #0a1224;
}
.ds-global-brand {
    padding: 14px 16px 10px;
}
.ds-global-brand__inner {
    margin: 0 auto;
    max-width: 1280px;
    display: flex;
    justify-content: center;
}
.ds-global-brand__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: linear-gradient(120deg, rgba(11, 15, 25, 0.32), rgba(30, 41, 59, 0.16));
    backdrop-filter: blur(6px);
}
.ds-global-brand__logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
}
.ds-global-footer {
    padding: 10px 16px 18px;
    text-align: center;
    font-size: 12px;
    line-height: 1.45;
}
:root {
    --ds-chart-1: #60a5fa;
    --ds-chart-2: #22d3ee;
    --ds-chart-3: #22c55e;
    --ds-chart-4: #facc15;
    --ds-chart-5: #f97316;
    --ds-chart-6: #c084fc;
    --ds-chart-7: #f43f5e;
    --ds-chart-8: #38bdf8;
}

body.ds-client-dashboard {
    background: radial-gradient(1200px 700px at 100% 0, rgba(15, 124, 182, 0.16), transparent 60%), #0a1224;
    font-family: "Inter", "Segoe UI", sans-serif;
}
body.ds-client-dashboard .ds-client-shell {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 40;
}
body.ds-client-dashboard .ds-client-sidebar,
body.ds-client-dashboard .ds-client-topbar {
    pointer-events: auto;
}
body.ds-client-dashboard .ds-client-sidebar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 252px;
    background: linear-gradient(180deg, #0f1730, #121f3d 46%, #0f1730);
    border-right: 1px solid rgba(148, 163, 184, 0.22);
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
body.ds-client-dashboard .ds-client-sidebar__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #e2e8f0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
body.ds-client-dashboard .ds-client-sidebar__brand img {
    width: 50px;
    height: 50px;
}
body.ds-client-dashboard .ds-client-user {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    padding: 8px;
    background: rgba(10, 18, 36, 0.35);
}
body.ds-client-dashboard .ds-client-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #0f172a;
    font-size: 12px;
    font-weight: 700;
    background: linear-gradient(120deg, #93c5fd, #22d3ee);
}
body.ds-client-dashboard .ds-client-avatar.ds-client-avatar--image {
    background: transparent;
}
body.ds-client-dashboard .ds-client-avatar__img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
    object-fit: cover;
}
body.ds-client-dashboard .ds-client-user-info {
    min-width: 0;
    flex: 1;
}
body.ds-client-dashboard .ds-client-user-name,
body.ds-client-dashboard .ds-client-user-role {
    margin: 0;
    line-height: 1.2;
}
body.ds-client-dashboard .ds-client-user-name {
    color: #f8fafc;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.ds-client-dashboard .ds-client-user-role {
    color: #94a3b8;
    font-size: 11px;
}
body.ds-client-dashboard .ds-client-icon-button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #cbd5f5;
    text-decoration: none;
    border: 1px solid rgba(148, 163, 184, 0.26);
    background: rgba(2, 6, 23, 0.35);
    transition: all .2s ease;
}
body.ds-client-dashboard .ds-client-icon-button:hover {
    color: #fff;
    background: rgba(244, 63, 94, 0.22);
    border-color: rgba(251, 113, 133, 0.55);
}
body.ds-client-dashboard .ds-client-nav {
    display: grid;
    gap: 6px;
}
body.ds-client-dashboard .ds-client-nav a {
    text-decoration: none;
    color: #cbd5f5;
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    transition: all .2s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
body.ds-client-dashboard .ds-client-nav a:hover {
    border-color: rgba(148, 163, 184, 0.26);
    background: rgba(30, 41, 59, 0.28);
}
body.ds-client-dashboard .ds-client-nav a.active {
    color: #f8fafc;
    background: rgba(56, 189, 248, 0.18);
    border-color: rgba(56, 189, 248, 0.45);
}
body.ds-client-dashboard .ds-client-nav a.active::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, #22d3ee, #38bdf8);
}
body.ds-client-dashboard .ds-client-nav-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background: linear-gradient(120deg, #ef4444, #f97316);
    box-shadow: 0 6px 14px rgba(239, 68, 68, 0.25);
    flex: 0 0 auto;
}
body.ds-client-dashboard .ds-client-nav a.active .ds-client-nav-badge {
    background: linear-gradient(120deg, #2563eb, #38bdf8);
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.22);
}
body.ds-client-dashboard .ds-client-sidebar__copyright {
    margin-top: auto;
    font-size: 11px;
    line-height: 1.4;
    color: #94a3b8;
    text-align: left;
    padding: 10px 0 0;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}
body.ds-client-dashboard .ds-global-footer {
    display: none;
}
body.ds-client-dashboard .ds-client-topbar {
    position: absolute;
    left: 252px;
    right: 0;
    top: 0;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.55));
}
body.ds-client-dashboard .ds-client-topbar__title {
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
body.ds-client-dashboard .ds-client-period-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
body.ds-client-dashboard .ds-client-period-label {
    font-size: 12px;
    color: #94a3b8;
}
body.ds-client-dashboard .ds-client-period-select {
    min-height: 36px;
    border-radius: 11px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.5);
    color: #e2e8f0;
    font-size: 13px;
    padding: 0 10px;
}
body.ds-client-dashboard .page {
    margin-left: 252px;
    padding-top: 98px;
}
body.ds-client-dashboard .hero {
    border-radius: 20px;
    padding: 28px;
    background: var(--hero-bg, var(--primary-gradient, linear-gradient(135deg, #4285F4 0%, #34A853 35%, #FBBC05 65%, #EA4335 100%)));
    position: relative;
    overflow: hidden;
}
body.ds-client-dashboard .hero.hero-glow {
    isolation: isolate;
    box-shadow:
        0 26px 62px rgba(7, 12, 30, 0.5),
        0 10px 24px rgba(56, 189, 248, 0.16),
        0 8px 20px rgba(34, 211, 238, 0.12);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}
body.ds-client-dashboard .hero.hero-glow::before {
    content: "";
    position: absolute;
    inset: -34% -12% auto auto;
    width: 360px;
    height: 360px;
    background: var(--hero-glow, radial-gradient(circle at 88% 12%, rgba(125, 211, 252, 0.42), rgba(125, 211, 252, 0) 58%));
    filter: blur(4px);
    pointer-events: none;
    z-index: 0;
}
body.ds-client-dashboard .hero.hero-glow::after {
    content: "";
    position: absolute;
    top: -45%;
    left: -40%;
    width: 42%;
    height: 190%;
    background: linear-gradient(110deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.34) 48%, rgba(255, 255, 255, 0.1) 60%, rgba(255, 255, 255, 0) 100%);
    transform: translateX(-140%) rotate(16deg);
    opacity: 0;
    transition: transform 0.85s ease, opacity 0.35s ease;
    pointer-events: none;
    mix-blend-mode: screen;
}
body.ds-client-dashboard .hero.hero-glow:hover {
    transform: translateY(-2px);
    box-shadow:
        0 32px 74px rgba(7, 12, 30, 0.56),
        0 14px 30px rgba(56, 189, 248, 0.2),
        0 12px 24px rgba(34, 211, 238, 0.16);
}
body.ds-client-dashboard .hero.hero-glow:hover::after {
    opacity: 0.95;
    transform: translateX(300%) rotate(16deg);
}
body.ds-client-dashboard .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.14), transparent 60%);
    pointer-events: none;
}
body.ds-client-dashboard .hero h1 {
    font-family: "Inter", "Segoe UI", sans-serif;
    font-size: clamp(26px, 3vw, 36px);
    margin: 0 0 10px;
}
body.ds-client-dashboard .hero p {
    margin: 0;
    font-size: 15px;
    color: rgba(248, 250, 252, 0.88);
}
body.ds-client-dashboard .card {
    background: linear-gradient(155deg, var(--glass-bg-strong, rgba(255, 255, 255, 0.12)) 0%, var(--glass-bg, rgba(255, 255, 255, 0.06)) 52%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.18));
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--glass-shadow, 0 18px 40px rgba(8, 12, 24, 0.42)), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px) saturate(145%);
    -webkit-backdrop-filter: blur(14px) saturate(145%);
}
body.ds-client-dashboard .card h3 {
    font-size: 14px;
    color: var(--muted, #9aa3b2);
    font-weight: 500;
}
body.ds-client-dashboard .card .value,
body.ds-client-dashboard .value {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
}
body.ds-client-dashboard .delta {
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.15);
    color: var(--positive, #22c55e);
    width: fit-content;
}
body.ds-client-dashboard .delta.negative {
    background: rgba(244, 63, 94, 0.15);
    color: var(--negative, #f43f5e);
}
body.ds-client-dashboard .chart-card {
    border-radius: 20px;
    padding: 18px;
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.18));
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.07) 54%, rgba(255, 255, 255, 0.03) 100%);
    box-shadow: var(--glass-shadow, 0 18px 40px rgba(8, 12, 24, 0.42)), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
}
body.ds-client-dashboard .chart-card h3,
body.ds-client-dashboard .table-card h3,
body.ds-client-dashboard .comment-card h3 {
    font-family: "Inter", "Segoe UI", sans-serif;
    font-size: 16px;
}
body.ds-client-dashboard .table-card,
body.ds-client-dashboard .comment-card {
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.18));
    border-radius: 18px;
    padding: 18px;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.06) 56%, rgba(255, 255, 255, 0.03) 100%);
    box-shadow: var(--glass-shadow, 0 18px 40px rgba(8, 12, 24, 0.42)), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
}
body.ds-client-dashboard .data-table {
    font-size: 13px;
}
body.ds-client-dashboard .data-table th,
body.ds-client-dashboard .data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
body.ds-client-dashboard .data-table th {
    color: var(--muted, #9aa3b2);
    font-weight: 500;
}
body.ds-client-dashboard .footer {
    color: var(--muted, #9aa3b2);
    font-size: 12px;
    text-align: center;
}

@media (max-width: 1024px) {
    body.ds-client-dashboard .ds-client-shell {
        position: static;
        pointer-events: auto;
    }
    body.ds-client-dashboard .ds-client-sidebar,
    body.ds-client-dashboard .ds-client-topbar {
        position: static;
        width: auto;
        height: auto;
    }
    body.ds-client-dashboard .ds-client-sidebar {
        border-right: 0;
        border-bottom: 1px solid rgba(148, 163, 184, 0.22);
        padding: 12px;
    }
    body.ds-client-dashboard .ds-client-topbar {
        padding: 10px 12px;
        border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    }
    body.ds-client-dashboard .ds-client-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    body.ds-client-dashboard .ds-client-nav a.active::before {
        left: 8px;
        right: 8px;
        top: auto;
        bottom: 0;
        width: auto;
        height: 3px;
    }
    body.ds-client-dashboard .ds-client-topbar,
    body.ds-client-dashboard .ds-client-period-form {
        flex-wrap: wrap;
    }
    body.ds-client-dashboard .ds-client-period-select {
        width: 100%;
    }
    body.ds-client-dashboard .ds-client-sidebar__copyright {
        margin-top: 6px;
        border-top: 0;
        padding-top: 0;
    }
    body.ds-client-dashboard .page {
        margin-left: 0;
        padding-top: 20px;
    }
}

@media (max-width: 640px) {
    .ds-global-brand {
        padding-top: 8px;
        padding-bottom: 8px;
    }
    .ds-global-brand__link {
        font-size: 12px;
    }
    .ds-global-brand__logo {
        width: 18px;
        height: 18px;
    }
    .ds-global-footer {
        font-size: 11px;
    }
    body.ds-client-dashboard .ds-client-sidebar__brand {
        font-size: 18px;
    }
    body.ds-client-dashboard .ds-client-nav {
        grid-template-columns: 1fr;
    }
    body.ds-client-dashboard .ds-client-sidebar__copyright {
        text-align: center;
    }
}
@media (prefers-reduced-motion: reduce) {
    body.ds-client-dashboard .hero.hero-glow,
    body.ds-client-dashboard .hero.hero-glow::after {
        transition: none;
    }
}
