.page-layout {
    position: relative;
    min-height: 100vh;
    padding: 0 32px 40px 32px !important;
    background: var(--color-bg);
    box-sizing: border-box;
}

.container-main {
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .page-layout {
        padding: 40px 16px;
    }
}

.page-layout.layout-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    /* No padding allowed for perfect centering in 100dvh */
}

.page-layout.layout-center .container-main {
    margin: auto;
}

.page-layout.full-height-layout {
    height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
    padding-bottom: 20px !important;
}.loader-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* 
 * Continuous linear rotation host: 
 * Eliminates zero-velocity dead spots so the loader never freezes
 */
.loader-spinner {
    display: inline-block;
    flex-shrink: 0;
    transform-origin: center center;
    animation: loader-spin 1.4s linear infinite;
}

/* 
 * Fluid kinetic dash arc:
 * Smoothly stretches to 80% circle (accelerates) and contracts to a dot (decelerates)
 */
.loader-path {
    stroke: currentColor;
    stroke-linecap: round;
    /* Circumference for r=20 circle: 2 * PI * 20 ≈ 125.66 */
    animation: loader-dash 1.4s ease-in-out infinite;
}

.loader-label {
    font-size: 10px;
    letter-spacing: 1px;
    background: linear-gradient(90deg,
            rgba(194, 194, 194, 0.3) 0%,
            rgba(218, 218, 218, 0.8) 50%,
            rgba(192, 192, 192, 0.3) 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 0.32s linear infinite;
    font-weight: 700;
}

/* Constant rotational velocity */
@keyframes loader-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/*
 * Seamless cyclic arc morphing:
 * - 0%: Dot state (3px arc), smooth glide
 * - 50%: Maximum expansion (96px arc), rapid forward sweep
 * - 100%: Contracted tail catches up (-125.66 offset wraps exactly to 0)
 */
@keyframes loader-dash {
    0% {
        stroke-dasharray: 3, 126;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 96, 126;
        stroke-dashoffset: -20;
    }
    100% {
        stroke-dasharray: 3, 126;
        stroke-dashoffset: -125.66;
    }
}

@keyframes shimmer {
    to {
        background-position: -200% center;
    }
}.empty-state-container {
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-text-dim);
}

.empty-icon {
    margin-bottom: 24px;
    opacity: 0.5;
}

.empty-message {
    font-size: 12px;
    letter-spacing: 0.1em;
    font-weight: 700;
    white-space: nowrap;
}

.empty-action {
    margin-top: 24px;
}.btn {
    display: inline-grid;
    grid-template-areas: "stack";
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    height: 40px;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    color: var(--color-text);
    font-weight: 700;
    position: relative;
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
    user-select: none;
}

.btn:hover:not(:disabled) {
    background: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

/* Regular disabled state */
.btn:disabled:not(.is-loading) {
    opacity: 0.25;
    cursor: not-allowed;
}

/* Base loading state */
.btn.is-loading {
    cursor: wait;
    opacity: 1 !important;
    border-color: var(--color-border-hover);
    background: var(--color-surface-soft);
}

/* --------------------------------------------------------------------------
   Variant-Specific Loading Personalities
   -------------------------------------------------------------------------- */

/* 1. Primary: strictly monochrome high-contrast white border & radiant white wave */
.btn-primary.is-loading {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: var(--color-text) !important;
}

.btn-primary.is-loading .loader-spinner circle {
    stroke: var(--color-text);
}

.btn-primary.is-loading::after {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.05) 12%,
        rgba(255, 255, 255, 0.16) 28%,
        rgba(255, 255, 255, 0.28) 45%,
        rgba(255, 255, 255, 0.32) 50%,
        rgba(255, 255, 255, 0.28) 55%,
        rgba(255, 255, 255, 0.16) 72%,
        rgba(255, 255, 255, 0.05) 88%,
        rgba(255, 255, 255, 0) 100%
    ) !important;
}

/* 2. Secondary & Ghost */
.btn-secondary.is-loading,
.btn-ghost.is-loading {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--color-border-hover);
}

.btn-secondary.is-loading .loader-spinner circle,
.btn-ghost.is-loading .loader-spinner circle {
    stroke: var(--color-text-dim);
}

/* 3. Danger */
.btn-danger.is-loading {
    background: rgba(244, 135, 113, 0.08) !important;
    border-color: rgba(244, 135, 113, 0.4) !important;
}

.btn-danger.is-loading .loader-spinner circle {
    stroke: var(--color-error);
}

.btn-danger.is-loading::after {
    background: linear-gradient(
        90deg,
        rgba(244, 135, 113, 0) 0%,
        rgba(244, 135, 113, 0.08) 20%,
        rgba(255, 180, 180, 0.22) 50%,
        rgba(244, 135, 113, 0.08) 80%,
        rgba(244, 135, 113, 0) 100%
    ) !important;
}

/* Loading wave animation */
.btn.is-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.03) 10%,
        rgba(255, 255, 255, 0.10) 25%,
        rgba(255, 255, 255, 0.16) 40%,
        rgba(255, 255, 255, 0.18) 50%,
        rgba(255, 255, 255, 0.16) 60%,
        rgba(255, 255, 255, 0.10) 75%,
        rgba(255, 255, 255, 0.03) 90%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: translateX(-100%);
    animation: btn-loading-sweep 2.2s infinite cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
}

@keyframes btn-loading-sweep {
    0% {
        transform: translateX(-100%);
    }
    70% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* --------------------------------------------------------------------------
   Success & Feedback Interaction State
   -------------------------------------------------------------------------- */
.btn.is-success {
    border-color: rgba(129, 184, 139, 0.6) !important;
    color: var(--color-success, #81b88b) !important;
    background: rgba(129, 184, 139, 0.08) !important;
    box-shadow: 0 0 16px -4px rgba(129, 184, 139, 0.25);
}

/* Primary keeps high-contrast monochrome border while accenting the checkmark */
.btn-primary.is-success {
    border-color: var(--color-text) !important;
    color: var(--color-text) !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

.btn-primary.is-success .btn-success-check-icon {
    color: var(--color-success, #81b88b);
}

.btn-success-check-icon {
    display: inline-block;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Size Scales
   -------------------------------------------------------------------------- */
.btn-sm {
    padding: 6px 12px;
    height: 30px;
    font-size: 10px;
}

.btn-lg {
    padding: 14px 32px;
    height: 52px;
    font-size: 14px;
}

.btn-primary {
    border-color: var(--color-text);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--color-border);
    color: var(--color-text-dim);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--color-surface-soft);
    color: var(--color-text-primary);
    border-color: var(--color-border-hover);
}

.btn-ghost {
    background: transparent;
    border-color: var(--color-border);
    color: var(--color-text-dim);
}

.btn-ghost:hover:not(:disabled) {
    background: var(--color-surface-soft);
    color: var(--color-text-primary);
    border-color: var(--color-border-hover);
}

.btn-danger {
    background: rgba(244, 135, 113, 0.1);
    border-color: rgba(244, 135, 113, 0.3);
    color: var(--color-error);
}

.btn-danger:hover:not(:disabled) {
    background: var(--color-error);
    border-color: var(--color-error);
    color: var(--color-bg);
}

.btn-link {
    background: transparent;
    border: none !important;
    padding: 0 !important;
    color: var(--color-text-dim);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 1px;
}

.btn-link:hover:not(:disabled) {
    color: var(--color-text-primary);
    background: transparent !important;
}

/* --------------------------------------------------------------------------
   Layout Stacking: Sizer + ContentSwitcher
   -------------------------------------------------------------------------- */
.btn-sizer {
    grid-area: stack;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    visibility: hidden;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    line-height: 1;
    opacity: 0;
}

.btn-content-switcher {
    grid-area: stack;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}

.btn-content-layer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    line-height: 1;
    white-space: nowrap;
    will-change: transform, opacity, filter;
}

.btn-success-layer {
    color: inherit;
}

.btn-icon-left,
.btn-icon-right {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}.input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.input-label {
    font-size: 10px;
    color: var(--color-text-dim);
    font-weight: 700;
}

.input-field-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-icon-left,
.input-icon-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-dim);
    display: flex;
    align-items: center;
    z-index: 1;
    transition: var(--transition-fast);
}

.input-icon-left {
    left: 14px;
    pointer-events: none;
}

.input-icon-right {
    right: 14px;
    cursor: pointer;
}

.input-icon-right:hover {
    color: var(--color-text-primary);
}

.input-field {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    padding: 10px 14px;
    height: 40px;
    width: 100%;
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-size: 14px;
    transition: var(--transition-fast);
}

.input-field.has-icon-left {
    padding-left: 42px;
}

.input-field.has-icon-right {
    padding-right: 42px;
}

/* Size Variants */
.size-sm .input-field {
    height: 32px;
    padding: 6px 12px;
    font-size: 13px;
}

.size-sm .input-field.has-icon-left {
    padding-left: 32px;
}

.size-sm .input-field.has-icon-right {
    padding-right: 32px;
}

.size-sm .input-icon-left {
    left: 10px;
}

.size-sm .input-icon-right {
    right: 10px;
}

.input-field:focus {
    border-color: var(--color-accent);
    outline: none;
    background: var(--color-surface-soft);
}

.input-field::placeholder {
    color: var(--color-text-dim);
    opacity: 0.5;
}.page-error-wrapper {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-error-wrapper .empty-state-container {
    width: 100%;
    padding: 48px 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-error-wrapper .empty-action {
    width: 100%;
    margin-top: 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-error-action-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-error-action-box > * {
    width: 100%;
}

/* Начальный шаг: компактная связка кнопок строго по центру */
.reauth-step-initial {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
}

.btn-reauth-back {
    width: 44px !important;
    height: 40px !important;
    padding: 0 !important;
    flex: 0 0 44px !important;
    flex-shrink: 0 !important;
}

.btn-reauth-primary {
    height: 40px !important;
    padding: 0 22px !important;
    flex: 0 0 auto !important;
    width: auto !important;
    white-space: nowrap;
}

/* Шаг с формой логина: раскрывается на полную ширину (480px) */
.reauth-form-container {
    width: 100%;
}

.reauth-form-container form {
    width: 100%;
}

.reauth-form-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.reauth-actions {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-top: 6px;
}

.reauth-actions .btn {
    flex: 1;
    height: 40px;
}/* Universal Background Recession Rules for Toast system */
#root,
#storybook-root,
.sheet-recede-target {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-radius 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center top;
}

body.has-modal #root,
body.has-modal #storybook-root,
body.has-modal .sheet-recede-target {
    transform: scale(0.97) translateY(-6px) !important;
    filter: brightness(0.82) blur(3px) !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

.toast-container {
    position: fixed;
    top: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    pointer-events: none;
    width: auto;
    max-width: calc(100vw - 48px);
}

.toast-container.top-left {
    left: 24px;
    align-items: flex-start;
}

.toast-container.top-center {
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
}

.toast-container.top-right {
    right: 24px;
    align-items: flex-end;
}

/* --------------------------------------------------------------------------
   Ambient Backdrop Blur (Munted via portal directly to document.body)
   -------------------------------------------------------------------------- */
.toast-backdrop {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 99980 !important;
    pointer-events: auto !important;
}

/* --------------------------------------------------------------------------
   Deck Host & Lateral Action Controls (Strict 380px Zero-Shrink Architecture)
   -------------------------------------------------------------------------- */
.toast-deck-host {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 380px;
    max-width: calc(100vw - 120px);
    pointer-events: auto;
    z-index: 99995;
    transition: width 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* При раскрытии хост расширяется ровно на ширину дорожки скроллбара, чтобы тосты не сжимались */
.toast-deck-host.is-open {
    width: 386px;
}

.toast-deck-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Строго фиксированная ширина элементов — предотвращает сжатие на 1px */
.toast-deck-inner .toast-item-wrapper {
    width: 380px;
    max-width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
}

/* Normal list mode (<= 3 toasts): strictly overflow visible, no scrollbar flicker! */
.toast-deck-inner.is-list,
.toast-deck-inner:not(.is-stacked):not(.is-expanded) {
    gap: 8px;
    overflow: visible !important;
    max-height: none !important;
    padding: 0;
}

/* Stacked mode (>= 4 toasts and collapsed): rear cards peek underneath the front card */
.toast-deck-inner.is-stacked {
    min-height: 52px;
    overflow: visible !important;
    max-height: none !important;
}

.toast-deck-inner.is-stacked .toast-item-wrapper.is-front {
    position: relative;
    width: 380px;
    z-index: 30;
}

.toast-deck-inner.is-stacked .toast-item-wrapper.is-behind {
    position: absolute;
    top: 0;
    left: 0;
    width: 380px;
    transform-origin: center top;
    box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.7);
}

/* Expanded list mode (>= 4 toasts when opened): scrollable container with mask fades */
.toast-deck-inner.is-expanded {
    gap: 8px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: 6px;
    padding-bottom: 32px;
    padding-left: 0;
    padding-right: 6px;
    margin: -6px 0 0 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
    transition: -webkit-mask-image 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                mask-image 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-mask-image: none;
    mask-image: none;
}

.toast-deck-inner.is-expanded::-webkit-scrollbar {
    width: 4px;
}

.toast-deck-inner.is-expanded::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.toast-deck-inner.is-expanded::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.toast-deck-inner.is-expanded .toast-item-wrapper,
.toast-deck-inner.is-list .toast-item-wrapper {
    position: relative;
}

/* Smooth Alpha Dissolve at boundaries */
.toast-deck-inner.is-expanded.has-top-fade {
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 10px,
        rgba(0, 0, 0, 0.85) 24px,
        black 36px,
        black 100%
    );
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 10px,
        rgba(0, 0, 0, 0.85) 24px,
        black 36px,
        black 100%
    );
}

.toast-deck-inner.is-expanded.has-bottom-fade {
    -webkit-mask-image: linear-gradient(
        to top,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 10px,
        rgba(0, 0, 0, 0.85) 24px,
        black 36px,
        black 100%
    );
    mask-image: linear-gradient(
        to top,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 10px,
        rgba(0, 0, 0, 0.85) 24px,
        black 36px,
        black 100%
    );
}

.toast-deck-inner.is-expanded.has-top-fade.has-bottom-fade {
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 10px,
        rgba(0, 0, 0, 0.85) 24px,
        black 36px,
        black calc(100% - 36px),
        rgba(0, 0, 0, 0.85) calc(100% - 24px),
        rgba(0, 0, 0, 0.3) calc(100% - 10px),
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 10px,
        rgba(0, 0, 0, 0.85) 24px,
        black 36px,
        black calc(100% - 36px),
        rgba(0, 0, 0, 0.85) calc(100% - 24px),
        rgba(0, 0, 0, 0.3) calc(100% - 10px),
        transparent 100%
    );
}

/* --------------------------------------------------------------------------
   Expand Button & Close All Action Column
   -------------------------------------------------------------------------- */
.toast-expand-action {
    position: absolute;
    left: calc(100% + 12px);
    top: 4px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    flex-shrink: 0;
    z-index: 40;
    pointer-events: auto;
}

.btn-toast-expand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(26, 26, 26, 0.92);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid var(--color-border, #333333);
    border-radius: var(--radius-sm, 6px);
    color: var(--color-text-primary, #ffffff);
    font-family: var(--font-mono, monospace);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    outline: none;
    white-space: nowrap;
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.6);
    transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    height: 34px;
    box-sizing: border-box;
    user-select: none;
}

.btn-toast-expand:hover {
    background: var(--color-surface-soft, #333333);
    border-color: var(--color-border-hover, #555555);
    color: var(--color-accent, #ffffff);
    transform: translateY(-1px);
}

.btn-toast-close-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(26, 26, 26, 0.92);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(244, 135, 113, 0.3);
    border-radius: var(--radius-sm, 6px);
    color: var(--color-error, #f48771);
    font-family: var(--font-mono, monospace);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    outline: none;
    white-space: nowrap;
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.6);
    transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    height: 30px;
    box-sizing: border-box;
    user-select: none;
}

.btn-toast-close-all:hover {
    background: rgba(244, 135, 113, 0.15);
    border-color: var(--color-error, #f48771);
    color: #ffffff;
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .toast-deck-host {
        width: calc(100vw - 40px);
        max-width: 100%;
    }

    .toast-expand-action {
        position: static;
        align-self: flex-end;
        flex-direction: row;
        margin-top: 6px;
        margin-bottom: 4px;
    }
}

/* --------------------------------------------------------------------------
   Toast Item Base Styles
   -------------------------------------------------------------------------- */
.toast-item {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm, 6px);
    background: rgba(20, 20, 20, 0.94);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 12px 32px -8px rgba(0, 0, 0, 0.8),
        inset 0 1px 1px rgba(255, 255, 255, 0.06);
    color: var(--color-text-primary, #ffffff);
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.toast-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-content {
    flex: 1;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.02em;
    word-break: break-word;
}

.toast-close {
    background: none;
    border: none;
    color: var(--color-text-dim, #858585);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    opacity: 0.5;
    transition: opacity 0.15s ease, color 0.15s ease;
}

.toast-close:hover {
    opacity: 1;
    color: #ffffff;
}

/* Type Variants */
.toast-success {
    border-left: 3px solid var(--color-success, #81b88b);
}
.toast-success .toast-icon {
    color: var(--color-success, #81b88b);
}

.toast-error {
    border-left: 3px solid var(--color-error, #f48771);
}
.toast-error .toast-icon {
    color: var(--color-error, #f48771);
}

.toast-warning {
    border-left: 3px solid var(--color-warning, #e2c08d);
}
.toast-warning .toast-icon {
    color: var(--color-warning, #e2c08d);
}

.toast-info {
    border-left: 3px solid var(--color-primary, #a582ff);
}
.toast-info .toast-icon {
    color: var(--color-primary, #a582ff);
}

/* Native Progress Bar: shrinks linearly and pauses seamlessly without rewinding */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: currentColor;
    opacity: 0.3;
    transform-origin: left center;
    animation: toast-progress-shrink var(--toast-duration, 5000ms) linear forwards;
}

@keyframes toast-progress-shrink {
    0% {
        transform: scaleX(1);
    }
    100% {
        transform: scaleX(0);
    }
}.footer-main {
    position: absolute;
    bottom: var(--spacing-std);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    color: var(--color-text-dim);
    opacity: 0.8;
}

.discord-link {
    color: var(--color-text-dim);
    transition: var(--transition-fast);
    text-decoration: none;
    font-weight: 600;
}

.discord-link:hover {
    color: var(--color-accent);
    opacity: 1;
}.page-header {
    width: 100%;
    min-height: 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 24px 0 16px 0 !important;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    z-index: -1;
    background: rgba(30, 30, 30, 0.25);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    pointer-events: none;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 64px;
}

.header-left-side {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
}

.header-title-group h1 {
    font-size: 18px !important;
    letter-spacing: 2px;
    margin: 0;
}

.header-center-side {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    padding: 0 8px;
}

.header-right-side {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
}

@media (max-width: 600px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .header-center-side {
        width: 100%;
        justify-content: flex-start;
        padding: 0;
    }

    .header-right-side {
        width: 100%;
        justify-content: flex-start;
    }
}.badge-ui {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    letter-spacing: 0.05em;
    border: 1px solid transparent;
}

.badge-default {
    background: var(--color-surface-soft);
    color: var(--color-text);
    border-color: var(--color-border);
}

.badge-primary {
    background: hsla(257, 100%, 83%, 0.089);
    /* Distinct Violet/Indigo */
    color: #a582ff;
    border-color: rgba(163, 127, 255, 0.199);
}

.badge-dim {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-dim);
    border-color: var(--color-border);
}

.badge-success {
    background: rgba(0, 255, 149, 0.1);
    color: var(--color-success);
    border-color: rgba(0, 255, 149, 0.2);
}

.badge-warning {
    background: rgba(255, 174, 0, 0.1);
    color: var(--color-warning);
    border-color: rgba(255, 174, 0, 0.2);
}

.badge-error {
    background: rgba(255, 68, 68, 0.1);
    color: var(--color-error);
    border-color: rgba(255, 68, 68, 0.2);
}

.badge-accent {
    background: rgba(0, 195, 255, 0.1);
    color: #4cd3ff;
    border-color: rgba(0, 195, 255, 0.2);
}

.pulsing {
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}.blur-loader-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: inherit;
    border-radius: inherit;
}

.blur-content {
    transition: filter var(--transition-fast), opacity var(--transition-fast);
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

.blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent; /* No background to avoid 'square' effect */
    z-index: 100;
    border-radius: inherit;
    pointer-events: none;
}

.is-loading {
    pointer-events: none;
    user-select: none;
}
/* ==========================================================================
   ModuleCard Styles - Clean Dashboard Grid Node
   ========================================================================== */

.module-card {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 90px;
    outline: none;
    transition: background 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.module-card:hover:not(.restricted):not(.loading) {
    background: var(--color-surface-soft);
    border-color: var(--color-border-hover);
}

.module-card:focus-visible:not(.restricted) {
    border-color: var(--color-accent);
}

.module-content {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.module-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    flex-shrink: 0;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.module-card:hover:not(.restricted):not(.loading) .module-icon-box {
    border-color: var(--color-border-hover);
    color: var(--color-accent);
}

.module-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.module-title {
    font-size: 13px;
    font-weight: 700;
    margin: 0;
    color: var(--color-text-primary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
    transition: color 0.2s ease;
}

.module-card:hover:not(.restricted):not(.loading) .module-title {
    color: var(--color-accent);
}

.module-desc {
    font-size: 11px;
    margin: 0;
    color: var(--color-text-dim);
    line-height: 1.4;
    white-space: normal;
    word-break: break-word;
}

/* Restricted State - Completely Static & Subtle */
.module-card.restricted {
    cursor: not-allowed;
    opacity: 0.25;
    background: rgba(0, 0, 0, 0.15);
    border: 1px dashed var(--color-border);
    user-select: none;
}

.module-restricted-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 52px;
    color: var(--color-text-disabled);
}

.restricted-lock-icon {
    opacity: 0.45;
}.status-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding: 24px 0;
    font-size: 10px;
    letter-spacing: 1px;
    opacity: 0.6;
    border-top: 1px solid var(--color-border);
    width: 100%;
}

.footer-left {
    text-transform: uppercase;
}

.footer-right {
    text-align: right;
    text-transform: uppercase;
}

@media (max-width: 600px) {
    .status-footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .footer-right {
        text-align: center;
    }
}.scroll-shadow-host {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    min-height: 0;
}

.scroll-shadow-content {
    width: 100%;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    transition: -webkit-mask-image 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                mask-image 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-mask-image: none;
    mask-image: none;
}

/*
 * Smooth Text Alpha Dissolve:
 * Letters seamlessly fade out into transparency towards the edges.
 * Zero neon glow, zero hard cutoff lines, zero color mismatches.
 */
.scroll-shadow-host.has-top-fade .scroll-shadow-content {
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 14px,
        rgba(0, 0, 0, 0.8) 32px,
        black 48px,
        black 100%
    );
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 14px,
        rgba(0, 0, 0, 0.8) 32px,
        black 48px,
        black 100%
    );
}

.scroll-shadow-host.has-bottom-fade .scroll-shadow-content {
    -webkit-mask-image: linear-gradient(
        to top,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 14px,
        rgba(0, 0, 0, 0.8) 32px,
        black 48px,
        black 100%
    );
    mask-image: linear-gradient(
        to top,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 14px,
        rgba(0, 0, 0, 0.8) 32px,
        black 48px,
        black 100%
    );
}

.scroll-shadow-host.has-top-fade.has-bottom-fade .scroll-shadow-content {
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 14px,
        rgba(0, 0, 0, 0.8) 32px,
        black 48px,
        black calc(100% - 48px),
        rgba(0, 0, 0, 0.8) calc(100% - 32px),
        rgba(0, 0, 0, 0.3) calc(100% - 14px),
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 14px,
        rgba(0, 0, 0, 0.8) 32px,
        black 48px,
        black calc(100% - 48px),
        rgba(0, 0, 0, 0.8) calc(100% - 32px),
        rgba(0, 0, 0, 0.3) calc(100% - 14px),
        transparent 100%
    );
}

/* Custom Scrollbar */
.scroll-shadow-content::-webkit-scrollbar {
    width: 6px;
}

.scroll-shadow-content::-webkit-scrollbar-track {
    background: transparent;
}

.scroll-shadow-content::-webkit-scrollbar-thumb {
    background: var(--color-border, #333333);
    border-radius: 10px;
}

.scroll-shadow-content::-webkit-scrollbar-thumb:hover {
    background: var(--color-border-hover, #444444);
}.sidebar-header-ui {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-dim);
    letter-spacing: 0.5px;
    min-height: 40px;
    box-sizing: border-box;
}

.sidebar-header-ui::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: rgba(var(--color-surface-rgb), var(--header-opacity, 0.45));
    backdrop-filter: blur(var(--blur-amount, 12px)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--blur-amount, 12px)) saturate(180%);
    border-bottom: 1px solid var(--color-border);
    pointer-events: none;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-main-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    opacity: 0.8;
}

.header-title {
    text-transform: uppercase;
}

.header-extra {
    display: flex;
    align-items: center;
}.ui-select-container {
    position: relative;
    min-width: 80px;
    user-select: none;
    flex: 1;
}

.ui-select-trigger {
    width: 100%;
    height: 32px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-dim);
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 0;
}

.ui-select-trigger:hover,
.ui-select-trigger.open {
    border-color: var(--color-border-hover);
    color: var(--color-text-primary);
    background: var(--color-surface-soft);
}

.ui-select-trigger.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--color-surface);
    border-color: var(--color-border);
    color: var(--color-text-dim);
}

.trigger-content {
    position: relative;
    overflow: hidden;
    height: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}

.display-label {
    display: block;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.chevron-icon {
    display: flex;
    align-items: center;
    margin-left: 8px;
    opacity: 0.6;
}

.ui-select-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border-hover);
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.options-list {
    padding: 4px;
    max-height: 300px;
    overflow-y: auto;
}

.option-item {
    padding: 8px 10px;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, padding 0.2s ease;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--color-text-dim);
}

.option-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-primary);
    padding-left: 14px;
}

.option-item.selected {
    background: rgba(var(--color-accent-rgb), 0.1);
    color: var(--color-accent);
    pointer-events: none;
}

/* Custom Scrollbar for dropdown */
.options-list::-webkit-scrollbar {
    width: 4px;
}

.options-list::-webkit-scrollbar-track {
    background: transparent;
}

.options-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.options-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}.log-tooltip {
    position: fixed;
    z-index: 10000;
    pointer-events: none;
    background: #1a1a1a;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    min-width: 140px;
    backdrop-filter: blur(4px);
}

.tooltip-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-left: 2px solid var(--color-accent);
    padding-left: 8px;
}

.tooltip-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tooltip-time {
    font-size: 0.75rem;
    color: var(--color-text-primary);
    font-weight: 600;
}.scroll-minimap {
    width: 14px;
    height: 100%;
    position: relative;
    background: rgba(0, 0, 0, 0.25);
    border-left: 1px solid var(--color-border);
    flex-shrink: 0;
    user-select: none;
    z-index: 100;
    cursor: pointer;
    transition: background 0.2s ease;
}

.scroll-minimap:hover {
    background: rgba(0, 0, 0, 0.4);
}

.minimap-track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Current Viewport Indicator */
.minimap-viewport {
    position: absolute;
    left: 0;
    width: 100%;
    background: rgba(var(--color-accent-rgb), 0.15);
    border-top: 1px solid rgba(var(--color-accent-rgb), 0.3);
    border-bottom: 1px solid rgba(var(--color-accent-rgb), 0.3);
    pointer-events: none;
    /* Removed transiton for better feel during direct scroll */
}

/* Marker Ticks */
.minimap-marker {
    position: absolute;
    left: 0;
    right: 0;
    height: 4px;
    cursor: pointer;
    transition: transform 0.1s ease;
    border-radius: 1px;
    z-index: 5;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

.minimap-marker:hover {
    transform: scaleX(1.4) scaleY(2);
    z-index: 10;
    filter: brightness(1.3);
}

/* Page Specific Overrides */
.viewer-body .scroll-minimap {
    border-top-right-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
    overflow: hidden;
}.ui-tabs-nav {
    display: inline-flex;
    gap: 4px;
    background: rgba(0, 0, 0, 0.4);
    padding: 3px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    width: fit-content;
    box-sizing: border-box;
}

/* Alignment Presets */
.ui-tabs-nav.align-center {
    margin: 0 auto;
}

.ui-tabs-nav.align-left {
    margin: 0;
    margin-right: auto;
}

.ui-tabs-nav.align-right {
    margin: 0;
    margin-left: auto;
}

/* Sizing */
.ui-tabs-nav.size-md .ui-tab-btn {
    padding: 6px 12px;
    font-size: 0.7rem;
    border-radius: 6px;
}

.ui-tabs-nav.size-sm {
    padding: 2px;
    gap: 2px;
    border-radius: 6px;
}

.ui-tabs-nav.size-sm .ui-tab-btn {
    padding: 4px 9px;
    font-size: 9.5px;
    border-radius: 4px;
    letter-spacing: 0.04em;
}

.ui-tab-btn {
    position: relative;
    background: none;
    border: none;
    color: var(--color-text-dim);
    cursor: pointer;
    transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.ui-tab-btn:hover {
    color: var(--color-text);
}

.ui-tab-btn.active {
    color: var(--color-accent);
}

.active-indicator {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-radius: inherit;
    z-index: 1;
}

.tab-label {
    position: relative;
    z-index: 2;
}

@media (max-width: 600px) {
    .ui-tabs-nav {
        width: 100%;
    }
    .ui-tab-btn {
        flex: 1;
    }
}.modal-root {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: auto;
}

.modal-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1;
}

.modal-window {
    width: 100%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-title {
    font-size: 16px;
    margin: 0;
    color: var(--color-accent);
    letter-spacing: 1px;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-accent);
}

.modal-body {
    padding: 24px;
    max-height: 80vh;
    overflow-y: auto;
}

/* Animations for scrollbar inside modal */
.modal-body::-webkit-scrollbar {
    width: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 10px;
}.ui-shimmer {
    position: relative;
    overflow: hidden;
    background-color: var(--color-bg);
    /* Use page background as base */
    min-height: 1em;
    width: 100%;

    /* Shared Shimmer Logic */
    background-attachment: fixed;
    background-repeat: no-repeat;
    pointer-events: none;
}

/* Horizontal Shimmer (Left to Right) */
.ui-shimmer.direction-horizontal {
    background-image: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.03) 45%,
            rgba(255, 255, 255, 0.04) 50%,
            rgba(255, 255, 255, 0.03) 55%,
            rgba(255, 255, 255, 0) 100%);
    background-size: 200% 100%;
    animation: uiShimmerRight 1.5s infinite linear;
}

/* Vertical Shimmer (Top to Bottom) */
.ui-shimmer.direction-vertical {
    background-image: linear-gradient(180deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.03) 45%,
            rgba(255, 255, 255, 0.04) 50%,
            rgba(255, 255, 255, 0.03) 55%,
            rgba(255, 255, 255, 0) 100%);
    background-size: 100% 100vh;
    animation: uiShimmerDown 1.5s infinite linear;
}

@keyframes uiShimmerRight {
    from {
        background-position: -150% 0;
    }

    to {
        background-position: 150% 0;
    }
}

@keyframes uiShimmerDown {
    from {
        background-position: 0 -100vh;
    }

    to {
        background-position: 0 100vh;
    }
}.ui-accordion-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.accordion-item-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.accordion-header-wrapper {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.4s cubic-bezier(0.09, 0.57, 0, 1),
        border-color 0.4s cubic-bezier(0.09, 0.57, 0, 1);
}

.accordion-content-overflow {
    width: 100%;
}/* ==========================================================================
   SlideText Component Styles - Vertical Blur Slide with Fluid Auto-Width
   ========================================================================== */

.ui-slide-text-wrapper {
    display: inline-flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    vertical-align: middle;
    line-height: inherit;
    min-width: 0;
    box-sizing: border-box;
    padding: 3px 0;
    margin: -3px 0;
}

.ui-slide-text-content {
    display: inline-flex;
    align-items: center;
    width: max-content;
    min-width: max-content;
    line-height: inherit;
    white-space: nowrap;
    box-sizing: border-box;
}/* ==========================================================================
   DataTable Component Styles - Cyber Engineering Dark Theme with Slide Text & Content Switcher
   ========================================================================== */

.ui-data-table {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 0;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* Background Theme Variants */
.ui-data-table.variant-default {
    background: var(--color-bg, #1e1e1e);
}

.ui-data-table.variant-deep {
    background: var(--color-bg-deep, #121212);
}

.ui-data-table.variant-soft {
    background: var(--color-surface, #252525);
}

.ui-data-table.variant-ghost {
    background: rgba(255, 255, 255, 0.015);
}

.ui-data-table.variant-transparent {
    background: transparent;
}

.ui-data-table.is-bordered {
    border: 1px solid var(--color-border, #333333);
    border-radius: var(--radius-sm, 6px);
}

.ui-data-table.has-size-constraint {
    min-height: 0;
}

/* Deep / Transparent Theme Sub-Styling */
.ui-data-table.variant-deep .data-table-banner.variant-default,
.ui-data-table.variant-transparent .data-table-banner.variant-default {
    background: rgba(255, 255, 255, 0.015);
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.ui-data-table.variant-deep .data-table-header,
.ui-data-table.variant-transparent .data-table-header {
    background: rgba(18, 18, 18, 0.75);
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.ui-data-table.variant-deep .data-table-row,
.ui-data-table.variant-transparent .data-table-row {
    border-bottom-color: rgba(255, 255, 255, 0.03);
}

.ui-data-table.variant-deep .data-table-row.is-striped:nth-child(even),
.ui-data-table.variant-transparent .data-table-row.is-striped:nth-child(even) {
    background: rgba(255, 255, 255, 0.006);
}

.ui-data-table.variant-deep .data-table-row.is-hoverable:hover,
.ui-data-table.variant-transparent .data-table-row.is-hoverable:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* ==========================================================================
   Header Banners & Stats (Static Label + Sliding Value with Fluid Width)
   ========================================================================== */

.data-table-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--color-border, #333333);
    font-size: 10.5px;
    box-sizing: border-box;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.02);
}

.data-table-banner.variant-success {
    background: rgba(var(--color-success-rgb, 129, 184, 139), 0.05);
    border-bottom-color: rgba(var(--color-success-rgb, 129, 184, 139), 0.2);
}

.data-table-banner.variant-accent {
    background: rgba(var(--color-accent-rgb, 255, 255, 255), 0.03);
    border-bottom-color: rgba(var(--color-accent-rgb, 255, 255, 255), 0.12);
}

.data-table-banner.variant-warning {
    background: rgba(var(--color-warning-rgb, 226, 192, 141), 0.05);
    border-bottom-color: rgba(var(--color-warning-rgb, 226, 192, 141), 0.2);
}

.data-table-banner.variant-error {
    background: rgba(var(--color-error-rgb, 244, 135, 113), 0.05);
    border-bottom-color: rgba(var(--color-error-rgb, 244, 135, 113), 0.2);
}

.data-table-banner.variant-subtle {
    background: transparent;
    padding: 6px 16px;
    font-size: 10px;
}

.data-table-banner-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

.data-table-banner-left::-webkit-scrollbar {
    display: none;
}

.data-table-banner-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Stat Item */
.data-table-stat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.data-table-stat-label {
    color: var(--color-text-dim, #858585);
    user-select: none;
    flex-shrink: 0;
}

.data-table-stat-val {
    line-height: inherit;
    display: inline-flex;
}

/* Fluid Animated Divider */
.data-table-divider {
    color: var(--color-border-hover, #444444);
    user-select: none;
    opacity: 0.6;
    display: inline-block;
    flex-shrink: 0;
}

/* ==========================================================================
   Column Headers
   ========================================================================== */

.data-table-header {
    display: grid;
    align-items: center;
    padding: 6px 16px;
    border-bottom: 1px solid var(--color-border, #333333);
    background: rgba(var(--color-surface-rgb, 37, 37, 37), 0.45);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    font-size: 9.5px;
    font-weight: 700;
    color: var(--color-text-dim, #858585);
    letter-spacing: 0.05em;
    user-select: none;
    box-sizing: border-box;
    flex-shrink: 0;
    width: 100%;
}

.data-table-header.has-switcher {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.data-table-header-animated-flow {
    display: grid;
    align-items: center;
    padding: 6px 16px;
    width: 100%;
    box-sizing: border-box;
}

.data-table-header.is-sticky {
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table-header-cell {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
    text-transform: uppercase;
    box-sizing: border-box;
}

.data-table-header-cell.align-center {
    justify-content: center;
    text-align: center;
}

.data-table-header-cell.align-right {
    justify-content: flex-end;
    text-align: right;
    margin-left: auto;
}

.data-table-header-cell.is-sortable {
    cursor: pointer;
    transition: color 0.15s ease;
}

.data-table-header-cell.is-sortable:hover {
    color: var(--color-text-primary, #ffffff);
}

.data-table-sort-arrow {
    font-size: 8.5px;
    opacity: 0.3;
}

.data-table-sort-arrow.is-active {
    opacity: 1;
    color: var(--color-accent, #ffffff);
    font-weight: 900;
}

/* ==========================================================================
   Table Body, ScrollShadow Host & ContentSwitcher
   ========================================================================== */

.data-table-body-scroll-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.data-table-scroll-shadow {
    width: 100%;
    flex: 1;
    min-height: 0;
}

.data-table-body {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 0;
}

.data-table-content-switcher {
    width: 100%;
    min-height: 0;
    position: relative;
}

.ui-content-switcher-static {
    width: 100%;
    min-height: 0;
    position: relative;
}

.data-table-body-animated-flow {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 0;
    position: relative;
}

.data-table-row {
    display: grid;
    align-items: center;
    padding: 6px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 11px;
    box-sizing: border-box;
    width: 100%;
    transition: background 0.15s ease;
}

/* Density Scales */
.ui-data-table.density-compact .data-table-row,
.ui-data-table.density-compact .data-table-header-animated-flow,
.ui-data-table.density-compact .data-table-header:not(.has-switcher) {
    padding-top: 4px;
    padding-bottom: 4px;
    font-size: 10.5px;
}

.ui-data-table.density-spacious .data-table-row,
.ui-data-table.density-spacious .data-table-header-animated-flow,
.ui-data-table.density-spacious .data-table-header:not(.has-switcher) {
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 12px;
}

.data-table-row.is-striped:nth-child(even) {
    background: rgba(255, 255, 255, 0.005);
}

.data-table-row.is-hoverable:hover {
    background: rgba(255, 255, 255, 0.03);
}

.data-table-row.is-clickable {
    cursor: pointer;
}

.data-table-row.is-active {
    background: rgba(165, 130, 255, 0.08) !important;
    border-bottom-color: rgba(165, 130, 255, 0.2);
}

/* ==========================================================================
   Collapse Drawer & Row Group
   ========================================================================== */

.data-table-row-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 0;
}

.data-table-collapse {
    width: 100%;
    background: #0d0d0d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-sizing: border-box;
}

.data-table-collapse-inner {
    padding: 10px 16px 14px 16px;
    box-sizing: border-box;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ==========================================================================
   Cells
   ========================================================================== */

.data-table-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
    color: var(--color-text-primary, #ffffff);
    box-sizing: border-box;
}

.data-table-cell.align-center {
    justify-content: center;
    text-align: center;
}

.data-table-cell.align-right {
    justify-content: flex-end;
    text-align: right;
    margin-left: auto;
}

.data-table-cell.is-dim {
    color: var(--color-text-dim, #858585);
}

.data-table-cell.is-mono {
    font-family: var(--font-mono, monospace);
}

.data-table-cell.is-truncate {
    white-space: nowrap;
    text-overflow: ellipsis;
    display: block;
}

/* ==========================================================================
   Footer & Footer Items
   ========================================================================== */

.data-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--color-border, #333333);
    font-size: 10px;
    color: var(--color-text-dim, #858585);
    flex-shrink: 0;
    min-height: 34px;
    box-sizing: border-box;
}

.data-table-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
}

.data-table-footer-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.data-table-footer-item .footer-item-label {
    color: var(--color-text-disabled, #555555);
    user-select: none;
}

.data-table-footer-item .footer-item-value {
    color: var(--color-text-dim, #858585);
    font-weight: 600;
}

.data-table-state-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    width: 100%;
    min-height: 140px;
}

@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }
}/* ==========================================================================
   Shared UI Component: PipelineCard
   ========================================================================== */

.pipeline-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.pipeline-card:hover {
    border-color: var(--color-border-hover);
}

.pipeline-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
    position: relative;
    z-index: 2;
}

.pipeline-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: opacity 0.3s ease;
}

.pipeline-card-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.pipeline-card-header-right {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.pipeline-card-desc {
    font-size: 10px;
    color: var(--color-text-dim);
    line-height: 1.35;
    margin: 0;
    flex: 1;
    position: relative;
    z-index: 2;
    transition: opacity 0.3s ease;
}

/* Блок кнопок: изолирован на верхнем слое, сохраняет полную яркость */
.pipeline-card-actions {
    position: relative;
    z-index: 3;
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: auto;
    flex-wrap: wrap;
}

/* ==========================================================================
   Состояние загрузки карточки: тускнеет только текст (фон не трогается)
   ========================================================================== */
.pipeline-card.is-loading .pipeline-card-title {
    color: var(--color-text-secondary);
    opacity: 0.75;
}

.pipeline-card.is-loading .pipeline-card-icon {
    opacity: 0.65;
}

.pipeline-card.is-loading .pipeline-card-desc {
    opacity: 0.55;
}

/*
 * Широкая световая волна по подложке:
 * 0% -> 70%: плавно проходит слева направо
 * 70% -> 100%: фаза чистого покоя без резкого отката назад
 */
.pipeline-card.is-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.015) 20%,
        rgba(255, 255, 255, 0.07) 50%,
        rgba(255, 255, 255, 0.015) 80%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: translateX(-100%);
    animation: card-ambient-sweep 2.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
}

/*
 * Синхронный ритмичный перелив приглушенного текста:
 * Текст мягко мерцает в такт фоновой волне
 */
.pipeline-card.is-loading .pipeline-card-title,
.pipeline-card.is-loading .pipeline-card-icon,
.pipeline-card.is-loading .pipeline-card-desc {
    -webkit-mask-image: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.6) 20%,
        black 50%,
        rgba(0, 0, 0, 0.6) 80%,
        rgba(0, 0, 0, 0.6) 100%
    );
    mask-image: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.6) 20%,
        black 50%,
        rgba(0, 0, 0, 0.6) 80%,
        rgba(0, 0, 0, 0.6) 100%
    );
    -webkit-mask-size: 200% 100%;
    mask-size: 200% 100%;
    animation: card-text-sweep 2.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes card-ambient-sweep {
    0% {
        transform: translateX(-100%);
    }
    70% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes card-text-sweep {
    0% {
        -webkit-mask-position: 100% 0;
        mask-position: 100% 0;
    }
    70% {
        -webkit-mask-position: -100% 0;
        mask-position: -100% 0;
    }
    100% {
        -webkit-mask-position: -100% 0;
        mask-position: -100% 0;
    }
}/* ==========================================================================
   Shared UI Component: PipelineCardsGrid
   ========================================================================== */

.pipeline-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
}/* ==========================================================================
   SheetModal Component Styles - Subtle Recession & ZERO SHADOWS
   ========================================================================== */

/* Universal Background Recession Rules (App & Storybook) */
#root,
#storybook-root,
.sheet-recede-target {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-radius 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center top;
}

body.has-modal #root,
body.has-modal #storybook-root,
body.has-modal .sheet-recede-target {
    transform: scale(0.97) translateY(-6px) !important;
    filter: brightness(0.82) blur(3px) !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

.sheet-modal-root {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    overflow: hidden;
    box-sizing: border-box;
}

/* Soft backdrop overlay with gentle 3px blur */
.sheet-modal-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    pointer-events: auto;
}

/* Level 2+ Nested Backdrop */
.sheet-modal-backdrop.is-nested {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* 
 * Sheet Window:
 * Positioned at bottom, strictly flat, ZERO BOX SHADOW, smooth height transition
 */
.sheet-modal-window {
    position: fixed;
    bottom: 0;
    left: 20px;
    right: 20px;
    background: var(--color-surface, #252525);
    border: 1px solid var(--color-border, #333333);
    border-bottom: none;
    border-radius: 18px 18px 0 0;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    overflow: hidden;
    box-sizing: border-box;
    transform-origin: center top;
    transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, height, filter;
}

/* Level 2+ Nested Sheet styling */
.sheet-modal-window.is-nested {
    border-color: rgba(255, 255, 255, 0.12);
    background: #282828;
    box-shadow: none !important;
}

@media (max-width: 768px) {
    .sheet-modal-window {
        left: 8px;
        right: 8px;
        border-radius: 16px 16px 0 0;
    }
}

/* Drag Grab Bar at top */
.sheet-drag-handle-zone {
    width: 100%;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    flex-shrink: 0;
    user-select: none;
    touch-action: none;
    background: transparent;
}

.sheet-drag-handle-zone:active {
    cursor: grabbing;
}

.sheet-drag-pill {
    width: 44px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    transition: background 0.2s ease, transform 0.2s ease;
}

.sheet-drag-handle-zone:hover .sheet-drag-pill {
    background: rgba(255, 255, 255, 0.45);
    transform: scaleX(1.15);
}

/* Header */
.sheet-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 24px 14px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    min-height: 44px;
    box-sizing: border-box;
}

.sheet-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.sheet-title-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.sheet-modal-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text-primary, #ffffff);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.25;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sheet-modal-subtitle {
    font-size: 11px;
    color: var(--color-text-dim, #858585);
    letter-spacing: 0.02em;
    line-height: 1.35;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sheet-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    min-height: 32px;
}

.sheet-close-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm, 6px);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-text-dim, #858585);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.sheet-close-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-primary, #ffffff);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Scrollable Content Body */
.sheet-modal-body {
    padding: 14px 20px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
    position: relative;
    box-sizing: border-box;
}

.sheet-modal-body::-webkit-scrollbar {
    width: 6px;
}

.sheet-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Optional Footer: Fixed height so it never causes layout jumps */
.sheet-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    min-height: 48px;
    box-sizing: border-box;
}/* ==========================================================================
   FilterNavList Component Styles - High-Density Gliding Selection List
   ========================================================================== */

.ui-filter-nav-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.ui-filter-nav-search {
    width: 100%;
    flex-shrink: 0;
}

.ui-filter-nav-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    box-sizing: border-box;
    padding-right: 4px;
}

.ui-filter-nav-list::-webkit-scrollbar {
    width: 4px;
}

.ui-filter-nav-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

.ui-filter-nav-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.16);
}

/* Individual Row Item */
.ui-filter-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    border-radius: 4px;
    border: none;
    background: transparent;
    color: var(--color-text-dim, #858585);
    cursor: pointer;
    text-align: left;
    font-size: 11px;
    font-family: var(--font-mono, monospace);
    font-weight: 400;
    transition: color 0.15s ease;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    user-select: none;
}

.ui-filter-nav-item:hover:not(.is-disabled) {
    color: var(--color-text-primary, #dcdcdc);
}

.ui-filter-nav-item.is-active {
    color: #ffffff;
    font-weight: 700;
}

.ui-filter-nav-item.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* Gliding Background Pill (Animated via layoutId) */
.ui-filter-nav-gliding-pill {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.08);
    border-radius: inherit;
    z-index: 0;
    pointer-events: none;
}

/* Item Content Layers */
.ui-filter-nav-item-left {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.ui-filter-nav-item-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.35;
}

.ui-filter-nav-item-right {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.ui-filter-nav-item-count {
    font-size: 9.5px;
    opacity: 0.45;
    font-weight: 400;
}

.ui-filter-nav-item.is-active .ui-filter-nav-item-count {
    opacity: 0.8;
    color: #ffffff;
}

/* Empty & Loading States */
.ui-filter-nav-empty {
    padding: 24px 8px;
    text-align: center;
    color: var(--color-text-disabled, #555555);
    font-size: 10px;
    letter-spacing: 0.05em;
}

.ui-filter-nav-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
}