:root {
    --panel-border: rgba(255, 255, 255, 0.10);
    --panel-bg-soft: rgba(15, 23, 42, 0.60);
    --panel-bg-deep: rgba(2, 6, 23, 0.70);
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    --accent-cyan: #22d3ee;
    --accent-emerald: #34d399;
    --accent-rose: #fb7185;
}

.ds-panel {
    border: 1px solid var(--panel-border);
    background: var(--panel-bg-soft);
}

.ds-panel-deep {
    border: 1px solid var(--panel-border);
    background: var(--panel-bg-deep);
}

.ds-title {
    color: var(--text-primary);
}

.ds-muted {
    color: var(--text-muted);
}

.ds-card-hover {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ds-card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
    border-color: rgba(34, 211, 238, .35);
}

.ds-skeleton {
    position: relative;
    overflow: hidden;
    background: rgba(51, 65, 85, .35);
}

.ds-skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08), transparent);
    animation: ds-shimmer 1.4s infinite;
}

@keyframes ds-shimmer {
    100% {
        transform: translateX(100%);
    }
}

.cmp-current {
    color: #22d3ee;
}

.cmp-prev {
    color: #fbbf24;
}

.cmp-prev-year {
    color: #c084fc;
}

.cmp-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border: 1px solid var(--panel-border);
    background: rgba(15, 23, 42, .55);
    padding: .2rem .5rem;
    font-size: .75rem;
    line-height: 1;
}

.ds-glass-control {
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(2, 8, 23, .82);
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.ds-glass-control:hover,
.ds-glass-control:focus,
.ds-glass-control:focus-visible {
    border-color: rgba(103, 232, 249, .24);
    background: rgba(2, 8, 23, .88);
    box-shadow: inset 0 -10px 18px rgba(8, 15, 30, .34);
    outline: none;
}

.ds-filter-control {
    height: 46px;
    width: 100%;
    padding: 0 1rem;
    color: #f8fafc;
}

.ds-filter-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 2.75rem;
    background-image: linear-gradient(45deg, transparent 50%, rgba(148, 163, 184, .92) 50%), linear-gradient(135deg, rgba(148, 163, 184, .92) 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(50% - 1px), calc(100% - 14px) calc(50% - 1px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.ds-filter-select option {
    background: #111827;
    color: #f8fafc;
}

.ds-date-input {
    color-scheme: dark;
}

.ds-date-input::-webkit-calendar-picker-indicator {
    opacity: .92;
    filter: invert(86%) sepia(15%) saturate(385%) hue-rotate(160deg) brightness(105%) contrast(96%);
    cursor: pointer;
}

.ds-date-input::-webkit-date-and-time-value {
    text-align: left;
}

.ds-date-input::-webkit-datetime-edit,
.ds-date-input::-webkit-datetime-edit-fields-wrapper,
.ds-date-input::-webkit-datetime-edit-text,
.ds-date-input::-webkit-datetime-edit-month-field,
.ds-date-input::-webkit-datetime-edit-day-field,
.ds-date-input::-webkit-datetime-edit-year-field {
    color: #f8fafc;
}

.ds-neon-card {
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(15, 23, 42, .62);
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.ds-neon-card:hover {
    background: rgba(15, 23, 42, .68);
}

.ds-neon-chip {
    display: inline-flex;
    align-items: center;
    gap: .625rem;
    height: 46px;
    padding: 0 1rem;
    font-size: .875rem;
    font-weight: 500;
    box-shadow: inset 0 -12px 20px rgba(2, 6, 23, .34);
}

.ds-neon-chip input {
    width: 1rem;
    height: 1rem;
}

.ds-neon-card--cyan,
.ds-neon-chip--cyan {
    border-color: rgba(34, 211, 238, .34);
    background: rgba(20, 36, 56, .66);
    box-shadow: inset 0 -14px 22px rgba(8, 47, 73, .34), 0 0 0 1px rgba(34, 211, 238, .05);
}

.ds-neon-card--violet,
.ds-neon-chip--violet {
    border-color: rgba(167, 139, 250, .34);
    background: rgba(35, 34, 58, .66);
    box-shadow: inset 0 -14px 22px rgba(76, 29, 149, .28), 0 0 0 1px rgba(167, 139, 250, .05);
}

.ds-neon-card--emerald,
.ds-neon-chip--emerald {
    border-color: rgba(52, 211, 153, .34);
    background: rgba(22, 41, 49, .66);
    box-shadow: inset 0 -14px 22px rgba(6, 78, 59, .30), 0 0 0 1px rgba(52, 211, 153, .05);
}

.ds-neon-card--slate,
.ds-neon-chip--slate {
    border-color: rgba(255, 255, 255, .12);
    background: rgba(30, 41, 59, .42);
    box-shadow: inset 0 -12px 20px rgba(15, 23, 42, .22);
}

.ds-neon-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(34, 211, 238, .22);
    background: rgba(34, 211, 238, .06);
    color: #67e8f9;
}

.ds-neon-meta {
    color: rgba(226, 232, 240, .68);
}

main[data-detail-root="1"] {
    position: relative;
}

main[data-detail-root="1"].ds-page-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    margin-top: -24px;
    margin-left: -24px;
    border-radius: 9999px;
    border: 3px solid rgba(148, 163, 184, .35);
    border-top-color: #22d3ee;
    z-index: 10;
    animation: ds-spin .9s linear infinite;
}

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