.fx-customizer-panel {
    --ts-theme-rgb: 148, 163, 184;
}

body[data-theme="Light"] .fx-customizer-panel { --ts-theme-rgb: 139, 115, 85; }
body[data-theme="Dark"] .fx-customizer-panel { --ts-theme-rgb: 167, 139, 246; }
body[data-theme="Purple"] .fx-customizer-panel { --ts-theme-rgb: 196, 181, 253; }
body[data-theme="Green"] .fx-customizer-panel { --ts-theme-rgb: 52, 211, 153; }
body[data-theme="Midnight"] .fx-customizer-panel { --ts-theme-rgb: 125, 211, 252; }
body[data-theme="Crimson"] .fx-customizer-panel { --ts-theme-rgb: 248, 113, 113; }
body[data-theme="Cyber"] .fx-customizer-panel { --ts-theme-rgb: 45, 212, 191; }
body[data-theme="Slate"] .fx-customizer-panel { --ts-theme-rgb: 148, 163, 184; }


.fx-customizer-toggle {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 110px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-right: 0;
    border-radius: 14px 0 0 14px;
    background: var(--iq-primary, #f43f5e);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 2147482101 !important;
    box-shadow: none;
    
    backdrop-filter: blur(14px) saturate(1.08);
    -webkit-backdrop-filter: blur(14px) saturate(1.08);
    transition:
        transform 0.28s cubic-bezier(0.25, 0.75, 0.35, 1),
        opacity 0.22s ease,
        background-color 0.2s ease,
        border-color 0.45s ease,
        color 0.35s ease;
}

.fx-customizer-toggle:hover {
    transform: translateY(-50%) translateX(6px);
    background: var(--iq-primary, #f43f5e);
    box-shadow: none;
}


body[data-theme="Light"] .fx-customizer-toggle {
    border-color: rgba(255, 255, 255, 0.18);
    background: var(--iq-primary, #f43f5e);
    color: #fff;
    box-shadow: none;
}

body[data-theme="Light"] .fx-customizer-toggle:hover {
    background: var(--iq-primary, #f43f5e);
    box-shadow: none;
}

.fx-customizer-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 370px;
    max-width: calc(100vw - 20px);
    height: 100vh;
    z-index: 2147483644 !important;
    background: rgba(12, 14, 20, 0.94);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    
    box-shadow: none;
    backdrop-filter: none;
    transform: translate3d(100%, 0, 0);
    will-change: transform;
    transition: transform 0.24s ease;
    overflow: hidden;
}

.fx-customizer-panel.open {
    transform: translate3d(0, 0, 0);
    box-shadow: -20px 0 70px rgba(0, 0, 0, 0.5);
}

.fx-customizer-backdrop {
    position: fixed;
    z-index: 2147483643;
    inset: 0;
    background: color-mix(in srgb, var(--iq-body-bg, #0f1216) 68%, transparent);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.fx-customizer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

@supports not (background: color-mix(in srgb, #000 50%, #fff)) {
    .fx-customizer-backdrop {
        background: rgba(15, 18, 22, .68);
    }
}

.ts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ts-title {
    margin: 0;
    font-size: 1.03rem !important;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

.ts-close {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.92);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ts-close:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: scale(1.03);
}

.ts-body {
    height: calc(100vh - 68px);
    overflow-y: auto;
    padding: 14px 14px 20px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.ts-section {
    margin-bottom: 14px;
}

.ts-section:last-child {
    margin-bottom: 0;
}

.ts-divider {
    height: 1px;
    margin: 12px 2px 14px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
}

.ts-section-label {
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.68rem !important;
    letter-spacing: 0.09em !important;
    font-weight: 700;
    text-transform: uppercase;
}

.ts-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.ts-colors {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ts-card {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.95);
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ts-card:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: none;
}

.ts-card.active {
    border-color: rgba(var(--ts-theme-rgb, 148, 163, 184), 0.8);
    background: rgba(var(--ts-theme-rgb, 148, 163, 184), 0.16);
    box-shadow: none;
}

.ts-card-icon {
    margin-bottom: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ts-card-label {
    font-size: 0.74rem;
    line-height: 1.2;
    text-align: center;
    font-weight: 600;
}

.ts-theme-preview {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.ts-color-card {
    min-height: 72px;
}

.ts-color-circle {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.ts-font-preview {
    font-size: 1.2rem;
    font-weight: 700;
}

.ts-apply-btn {
    height: 40px;
    border: 1px solid rgba(var(--iq-accent-rgb, 244, 63, 94), 0.45);
    border-radius: 10px;
    background: rgba(var(--iq-accent-rgb, 244, 63, 94), 0.32);
    color: #fff;
    padding: 0 12px;
    font-size: 0.77rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.ts-apply-btn:hover {
    filter: brightness(1.08);
    box-shadow: none;
}

.ts-section-actions .ts-reset-btn {
    width: 100%;
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(239, 68, 68, 0.45);
}

body[data-theme="Light"] .fx-customizer-panel {
    background: rgba(247, 241, 232, 0.95);
    border-left-color: rgba(117, 105, 94, 0.18);
}

body[data-theme="Light"] .ts-title,
body[data-theme="Light"] .ts-card-label {
    color: rgba(56, 44, 33, 0.95);
}

body[data-theme="Light"] .ts-close,
body[data-theme="Light"] .ts-card,
body[data-theme="Light"] .ts-apply-btn {
    border-color: rgba(90, 78, 66, 0.2);
    background: rgba(255, 255, 255, 0.72);
    color: rgba(56, 44, 33, 0.95);
}


body[data-theme="Light"] .ts-section-actions .ts-reset-btn {
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(239, 68, 68, 0.45);
    color: #fff;
}

body[data-theme="Light"] .ts-section-label {
    background: rgba(124, 108, 92, 0.14);
    color: rgba(69, 54, 42, 0.9);
}

body[data-theme="Light"] .ts-header {
    border-color: rgba(90, 78, 66, 0.18);
}


body[data-theme="Light"] .ts-themes .ts-theme-preview {
    border-width: 2px;
    box-sizing: border-box;
}

body[data-theme="Light"] .element-theme[data-theme-id="Light"] .ts-theme-preview {
    background: linear-gradient(145deg, #fffefb, #e8dfd0) !important;
    border-color: rgba(139, 115, 85, 0.75) !important;
    box-shadow:
        0 2px 10px rgba(139, 115, 85, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

body[data-theme="Light"] .element-theme[data-theme-id="Dark"] .ts-theme-preview {
    background: linear-gradient(145deg, #2a2838, #15151c) !important;
    border-color: rgba(167, 139, 246, 0.85) !important;
    box-shadow: 0 3px 14px rgba(167, 139, 246, 0.42);
}

body[data-theme="Light"] .element-theme[data-theme-id="Purple"] .ts-theme-preview {
    background: linear-gradient(145deg, #2a2438, #1a1624) !important;
    border-color: rgba(196, 181, 253, 0.9) !important;
    box-shadow: 0 3px 14px rgba(167, 139, 246, 0.45);
}

body[data-theme="Light"] .element-theme[data-theme-id="Green"] .ts-theme-preview {
    background: linear-gradient(145deg, #1a2e24, #0d1812) !important;
    border-color: rgba(52, 211, 153, 0.88) !important;
    box-shadow: 0 3px 14px rgba(52, 211, 153, 0.38);
}

body[data-theme="Light"] .element-theme[data-theme-id="Midnight"] .ts-theme-preview {
    background: linear-gradient(145deg, #1a2832, #0c1218) !important;
    border-color: rgba(125, 211, 252, 0.9) !important;
    box-shadow: 0 3px 14px rgba(56, 189, 248, 0.4);
}

body[data-theme="Light"] .element-theme[data-theme-id="Crimson"] .ts-theme-preview {
    background: linear-gradient(145deg, #4a1818, #1f0c0c) !important;
    border-color: rgba(248, 113, 113, 0.95) !important;
    box-shadow:
        0 3px 16px rgba(220, 38, 38, 0.5),
        0 0 12px rgba(248, 113, 113, 0.35);
}

body[data-theme="Light"] .element-theme[data-theme-id="Cyber"] .ts-theme-preview {
    background: linear-gradient(145deg, #153028, #0a1512) !important;
    border-color: rgba(45, 212, 191, 0.9) !important;
    box-shadow: 0 3px 14px rgba(45, 212, 191, 0.42);
}

body[data-theme="Light"] .element-theme[data-theme-id="Slate"] .ts-theme-preview {
    background: linear-gradient(145deg, #252b36, #0e1116) !important;
    border-color: rgba(148, 163, 184, 0.92) !important;
    box-shadow: 0 3px 14px rgba(100, 116, 139, 0.45);
}


@keyframes fx-font-swap-reveal {
    from {
        opacity: 0.86;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fx-content-entrance:not(.fx-purchase-page) .container-fluid.fx-font-swap-enter,
.fx-landing-font-swap.fx-font-swap-enter {
    animation: fx-font-swap-reveal 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}


.fx-content-entrance:not(.fx-purchase-page) .container-fluid.fx-no-entrance-repeat {
    animation: none;
}

@media (prefers-reduced-motion: reduce) {
    .fx-content-entrance:not(.fx-purchase-page) .container-fluid.fx-font-swap-enter,
    .fx-landing-font-swap.fx-font-swap-enter {
        animation: none;
    }
}

body[data-theme] .fx-customizer-toggle {
    border-color: color-mix(in srgb, var(--iq-body-text, #cbd5e1) 16%, transparent);
    background: color-mix(in srgb, var(--iq-card-bg, #181c22) 82%, var(--iq-body-bg, #0f1216) 18%);
    color: var(--iq-primary, #1478b8);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--iq-body-bg, #0f1216) 58%, transparent);
}

body[data-theme] .fx-customizer-toggle:hover,
body[data-theme] .fx-customizer-toggle:focus-visible {
    border-color: color-mix(in srgb, var(--iq-primary, #1478b8) 44%, transparent);
    background: var(--fx-hover-bg, #242b33);
    color: var(--iq-primary, #1478b8);
    box-shadow: 0 12px 28px color-mix(in srgb, var(--iq-body-bg, #0f1216) 64%, transparent);
}

body[data-theme] .fx-customizer-panel {
    border-color: color-mix(in srgb, var(--iq-body-text, #cbd5e1) 15%, transparent);
    background: color-mix(in srgb, var(--iq-card-bg, #181c22) 80%, var(--iq-body-bg, #0f1216) 20%);
    box-shadow: -20px 0 52px color-mix(in srgb, var(--iq-body-bg, #0f1216) 66%, transparent);
}

body[data-theme] .ts-header {
    border-color: color-mix(in srgb, var(--iq-body-text, #cbd5e1) 13%, transparent);
    background: transparent;
}

body[data-theme] .ts-title,
body[data-theme] .ts-card.active .ts-card-label {
    color: var(--iq-title-text, #f1f5f9);
}

body[data-theme] .ts-title-icon {
    border-color: color-mix(in srgb, var(--iq-primary, #1478b8) 28%, transparent);
    background: color-mix(in srgb, var(--iq-primary, #1478b8) 12%, transparent);
    color: var(--iq-primary, #1478b8);
}

body[data-theme] .ts-section-label,
body[data-theme] .ts-card-label {
    background: transparent;
    color: color-mix(in srgb, var(--iq-body-text, #cbd5e1) 68%, transparent);
}

body[data-theme] .ts-divider {
    background: color-mix(in srgb, var(--iq-body-text, #cbd5e1) 13%, transparent);
}

body[data-theme] .ts-close,
body[data-theme] .ts-card {
    border-color: color-mix(in srgb, var(--iq-body-text, #cbd5e1) 15%, transparent);
    background: color-mix(in srgb, var(--iq-body-text, #cbd5e1) 5%, transparent);
    color: var(--iq-title-text, #f1f5f9);
}

body[data-theme] .ts-close:hover,
body[data-theme] .ts-card:hover {
    border-color: color-mix(in srgb, var(--iq-body-text, #cbd5e1) 24%, transparent);
    background: var(--fx-hover-bg, #242b33);
}

body[data-theme] .ts-card.active {
    border-color: color-mix(in srgb, var(--iq-primary, #1478b8) 48%, transparent);
    background: color-mix(in srgb, var(--iq-primary, #1478b8) 13%, transparent);
}


@keyframes tsTypographySoft {
    0% {
        opacity: 1;
    }
    45% {
        opacity: 0.88;
    }
    100% {
        opacity: 1;
    }
}

.fx-customizer-panel.ts-typography-switch .ts-fonts {
    animation: tsTypographySoft 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.fx-customizer-panel.ts-typography-switch .ts-font-card .ts-font-preview {
    animation: tsTypographySoft 0.3s cubic-bezier(0.22, 1, 0.36, 1) 0.02s both;
}

@media (prefers-reduced-motion: reduce) {
    .fx-customizer-panel.ts-typography-switch .ts-fonts,
    .fx-customizer-panel.ts-typography-switch .ts-font-card .ts-font-preview {
        animation: none;
    }
}

@media (max-width: 768px) {
    .fx-customizer-toggle {
        width: 40px;
        height: 90px;
    }

    .fx-customizer-panel {
        width: min(350px, calc(100vw - 12px));
    }
}


[dir="rtl"] .fx-customizer-toggle {
    right: auto;
    left: 0;
    border-radius: 0 14px 14px 0;
    border-right: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
}

[dir="rtl"] .fx-customizer-toggle:hover {
    transform: translateY(-50%) translateX(-6px);
}

[dir="rtl"] .fx-customizer-panel {
    right: auto;
    left: 0;
    border-left: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transform: translate3d(-100%, 0, 0);
}

[dir="rtl"] .fx-customizer-panel.open {
    transform: translate3d(0, 0, 0);
    box-shadow: 20px 0 70px rgba(0, 0, 0, 0.5);
}

[dir="rtl"] body[data-theme="Light"] .fx-customizer-toggle {
    box-shadow: 4px 6px 20px color-mix(in srgb, var(--iq-body-text, #5c5248) 8%, transparent),
                inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.ts-card.ts-card-disabled {
    cursor: not-allowed;
    pointer-events: auto;
    position: relative;
    filter: grayscale(1) brightness(0.62);
    opacity: 0.58;
    border-color: rgba(255, 255, 255, 0.10) !important;
    background: rgba(255, 255, 255, 0.035) !important;
    box-shadow: none !important;
    transition: none !important;
}
.ts-card.ts-card-disabled .ts-card-label {
    color: rgba(var(--iq-accent-rgb, 244, 63, 94), 0.76) !important;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: rgba(var(--iq-accent-rgb, 244, 63, 94), 0.86);
    text-shadow: none;
    font-weight: 600;
}
.ts-card.ts-card-disabled .ts-theme-preview {
    box-shadow: none;
    opacity: 0.52;
}
.ts-card.ts-card-disabled::before {
    content: '';
    position: absolute;
    left: 9%;
    right: 9%;
    top: 50%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(var(--iq-accent-rgb, 244, 63, 94), 0.62) 12%,
        rgba(var(--iq-accent-rgb, 244, 63, 94), 0.95) 50%,
        rgba(var(--iq-accent-rgb, 244, 63, 94), 0.62) 88%,
        transparent 100%);
    transform: translateY(-50%) rotate(-22deg);
    border-radius: 2px;
    pointer-events: none;
    z-index: 3;
    box-shadow: 0 0 10px rgba(var(--iq-accent-rgb, 244, 63, 94), 0.55),
                0 0 20px rgba(var(--iq-accent-rgb, 244, 63, 94), 0.25);
}
.ts-card.ts-card-disabled::after {
    content: '';
    position: absolute;
    left: 9%;
    right: 9%;
    top: 50%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(var(--iq-accent-rgb, 244, 63, 94), 0.62) 12%,
        rgba(var(--iq-accent-rgb, 244, 63, 94), 0.95) 50%,
        rgba(var(--iq-accent-rgb, 244, 63, 94), 0.62) 88%,
        transparent 100%);
    transform: translateY(-50%) rotate(22deg);
    border-radius: 2px;
    pointer-events: none;
    z-index: 3;
    box-shadow: 0 0 10px rgba(var(--iq-accent-rgb, 244, 63, 94), 0.55),
                0 0 20px rgba(var(--iq-accent-rgb, 244, 63, 94), 0.25);
}
.ts-card.ts-card-disabled:hover {
    filter: grayscale(1) brightness(0.62) !important;
    border-color: rgba(var(--iq-accent-rgb, 244, 63, 94), 0.32) !important;
    background: linear-gradient(135deg,
        rgba(var(--iq-accent-rgb, 244, 63, 94), 0.07),
        rgba(0, 0, 0, 0.20) 70%) !important;
    box-shadow: inset 0 0 0 1px rgba(var(--iq-accent-rgb, 244, 63, 94), 0.20),
                0 4px 14px rgba(var(--iq-accent-rgb, 244, 63, 94), 0.10) !important;
    animation: tsDisabledShake 0.36s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}
.ts-card.ts-card-disabled:active {
    transform: none !important;
}
.ts-card.ts-card-disabled.active {
    background: rgba(255, 255, 255, 0.035) !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
}

@keyframes tsDisabledShake {
    10%, 90% { transform: translateX(-2px); }
    20%, 80% { transform: translateX(3px); }
    30%, 50%, 70% { transform: translateX(-5px); }
    40%, 60% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
    .ts-card.ts-card-disabled:hover {
        animation: none;
        transform: none !important;
    }
}
@media (max-width: 768px) {
    .fx-customizer-toggle {
        top: 104px;
        transform: none;
    }
    .fx-customizer-toggle:hover,
    .fx-customizer-toggle:active {
        transform: translateX(6px);
    }
}

.fx-customizer-toggle {
    right: 12px;
    top: 50%;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(133, 158, 179, .3);
    border-radius: 15px;
    background: rgba(29, 40, 51, .96);
    color: var(--iq-primary, #55b9ed);
    font-size: 1.18rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .06);
    backdrop-filter: blur(14px) saturate(1.08);
    -webkit-backdrop-filter: blur(14px) saturate(1.08);
    transform: translateY(-50%);
    transition: transform .22s cubic-bezier(.22, 1, .36, 1), background-color .18s ease, border-color .18s ease, color .18s ease, opacity .18s ease;
}

.fx-customizer-toggle:hover,
.fx-customizer-toggle:focus-visible {
    width: 54px !important;
    border-color: rgba(var(--iq-accent-rgb, 85, 185, 237), .46);
    background: #273746;
    color: var(--iq-primary, #55b9ed);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .08);
    transform: translateY(-50%) translateY(-2px);
}

.fx-customizer-toggle:active {
    transform: translateY(-50%) scale(.95);
}

.fx-customizer-toggle:focus-visible,
.ts-close:focus-visible,
.ts-card:focus-visible,
.ts-apply-btn:focus-visible {
    outline: 2px solid rgba(var(--iq-accent-rgb, 85, 185, 237), .76);
    outline-offset: 2px;
}

.fx-customizer-panel {
    width: 380px;
    max-width: calc(100vw - 12px);
    height: 100dvh;
    border-left: 1px solid rgba(133, 158, 179, .22);
    border-radius: 24px 0 0 24px;
    background: rgba(24, 33, 42, .985);
    box-shadow: -22px 0 58px rgba(0, 0, 0, .38);
    backdrop-filter: blur(18px) saturate(1.06);
    -webkit-backdrop-filter: blur(18px) saturate(1.06);
    transition: transform .28s cubic-bezier(.22, 1, .36, 1);
}

.fx-customizer-panel.open {
    box-shadow: -22px 0 58px rgba(0, 0, 0, .42);
}

.ts-header {
    min-height: 76px;
    padding: 14px 16px 14px 18px;
    border-bottom: 1px solid rgba(133, 158, 179, .16);
    background: rgba(255, 255, 255, .018);
}

.ts-title-wrap {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
}

.ts-title-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border: 1px solid rgba(var(--iq-accent-rgb, 85, 185, 237), .24);
    border-radius: 12px;
    background: rgba(var(--iq-accent-rgb, 85, 185, 237), .11);
    color: var(--iq-primary, #55b9ed);
    font-size: 1rem;
}

.ts-title {
    color: #f1f3f5;
    font-size: .96rem !important;
    font-weight: 750;
    letter-spacing: -.01em;
}

.ts-close {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(133, 158, 179, .2);
    border-radius: 12px;
    background: rgba(255, 255, 255, .045);
    color: rgba(226, 231, 235, .82);
}

.ts-close:hover {
    border-color: rgba(133, 158, 179, .34);
    background: rgba(255, 255, 255, .09);
    transform: none;
}

.ts-body {
    height: calc(100dvh - 76px);
    padding: 16px 15px 24px;
    scrollbar-color: rgba(133, 158, 179, .3) transparent;
}

.ts-section {
    margin-bottom: 16px;
}

.ts-section-label {
    margin: 0 0 9px 2px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(211, 218, 224, .56);
    font-size: .64rem !important;
    font-weight: 700;
    letter-spacing: .085em !important;
}

.ts-divider {
    margin: 15px 2px;
    background: rgba(133, 158, 179, .14);
}

.ts-cards {
    gap: 8px;
}

.ts-card {
    min-height: 76px;
    padding: 10px 8px;
    border: 1px solid rgba(133, 158, 179, .16);
    border-radius: 14px;
    background: rgba(255, 255, 255, .035);
    color: #e6ebee;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
    transition: transform .18s cubic-bezier(.22, 1, .36, 1), border-color .18s ease, background-color .18s ease;
}

.ts-card:hover {
    border-color: rgba(133, 158, 179, .3);
    background: rgba(255, 255, 255, .065);
    transform: translateY(-1px);
}

.ts-card:active {
    transform: scale(.98);
}

.ts-card.active {
    border-color: rgba(var(--iq-accent-rgb, 85, 185, 237), .42);
    background: rgba(var(--iq-accent-rgb, 85, 185, 237), .11);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.ts-card.active .ts-card-label {
    color: #f4f7f9;
}

.ts-theme-preview {
    border-radius: 10px;
    box-shadow: 0 5px 12px rgba(0, 0, 0, .24);
}

.ts-color-circle {
    border-color: rgba(255, 255, 255, .3);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .22);
}

.ts-card-label {
    color: rgba(226, 231, 235, .78);
    font-size: .7rem;
    font-weight: 650;
}

.ts-apply-btn {
    min-height: 42px;
    border: 1px solid rgba(239, 68, 68, .28);
    border-radius: 12px;
    background: rgba(239, 68, 68, .1);
    color: #fda4af;
    transition: background-color .18s ease, border-color .18s ease, transform .15s ease;
}

.ts-apply-btn:hover {
    border-color: rgba(239, 68, 68, .42);
    background: rgba(239, 68, 68, .17);
    filter: none;
}

.ts-apply-btn:active {
    transform: scale(.985);
}

[data-theme="Light"] .fx-customizer-toggle {
    border-color: rgba(76, 99, 118, .24);
    background: rgba(238, 243, 246, .97);
    color: var(--iq-primary, #3b82f6);
    box-shadow: 0 12px 26px rgba(48, 67, 82, .16), inset 0 1px 0 rgba(255, 255, 255, .8);
}

[data-theme="Light"] .fx-customizer-panel {
    border-left-color: rgba(76, 99, 118, .2);
    background: rgba(238, 243, 246, .99);
    box-shadow: -20px 0 52px rgba(48, 67, 82, .17);
}

[data-theme="Light"] .ts-header,
[data-theme="Light"] .ts-divider {
    border-color: rgba(76, 99, 118, .15);
}

[data-theme="Light"] .ts-title,
[data-theme="Light"] .ts-card.active .ts-card-label {
    color: #22313c;
}

[data-theme="Light"] .ts-section-label {
    background: transparent;
    color: rgba(47, 62, 74, .56);
}

[data-theme="Light"] .ts-close,
[data-theme="Light"] .ts-card {
    border-color: rgba(76, 99, 118, .17);
    background: rgba(255, 255, 255, .52);
    color: #334651;
}

[data-theme="Light"] .ts-card-label {
    color: rgba(47, 62, 74, .72);
}

[data-theme="Light"] .ts-card.active {
    border-color: rgba(var(--iq-accent-rgb, 59, 130, 246), .35);
    background: rgba(var(--iq-accent-rgb, 59, 130, 246), .09);
}

@media (max-width: 575.98px) {
    .fx-customizer-toggle {
        right: 10px;
        top: auto;
        bottom: calc(90px + env(safe-area-inset-bottom, 0px));
        width: 46px;
        height: 46px;
        transform: none;
    }

    .fx-customizer-toggle:hover,
    .fx-customizer-toggle:focus-visible {
        transform: translateY(-2px);
    }

    .fx-customizer-toggle:active {
        transform: scale(.95);
    }

    .fx-customizer-panel {
        top: 8px;
        right: 8px;
        width: calc(100vw - 16px);
        max-width: none;
        height: calc(100dvh - 98px - env(safe-area-inset-bottom, 0px));
        border: 1px solid rgba(133, 158, 179, .22);
        border-radius: 22px;
        transform: translate3d(calc(100% + 16px), 0, 0);
    }

    .fx-customizer-panel.open {
        transform: translate3d(0, 0, 0);
    }

    .ts-body {
        height: calc(100% - 76px);
        padding-bottom: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fx-customizer-toggle,
    .fx-customizer-panel,
    .ts-card,
    .ts-close,
    .ts-apply-btn {
        transition: none;
    }
}

.fx-customizer-toggle {
    right: 0;
    top: 50%;
    bottom: auto;
    width: 40px;
    height: 96px;
    border: 1px solid color-mix(in srgb, var(--iq-primary, #f43f5e) 62%, transparent);
    border-right: 0;
    border-radius: 15px 0 0 15px;
    background: color-mix(in srgb, var(--iq-card-bg, #181c22) 94%, var(--iq-primary, #f43f5e) 6%);
    color: var(--iq-primary, #f43f5e);
    box-shadow: 0 12px 28px color-mix(in srgb, var(--iq-body-bg, #0f1216) 62%, transparent), inset 0 1px 0 color-mix(in srgb, var(--iq-title-text, #f1f5f9) 6%, transparent);
    overflow: hidden;
    isolation: isolate;
    transform: translateY(-50%);
    transition: width .24s cubic-bezier(.22, 1, .36, 1), border-color .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.fx-customizer-toggle:hover,
.fx-customizer-toggle:focus-visible {
    width: 48px;
    border-color: var(--iq-primary, #f43f5e);
    background: color-mix(in srgb, var(--iq-card-bg, #181c22) 94%, var(--iq-primary, #f43f5e) 6%);
    color: var(--iq-primary, #f43f5e);
    box-shadow: 0 12px 28px color-mix(in srgb, var(--iq-body-bg, #0f1216) 62%, transparent), inset 0 1px 0 color-mix(in srgb, var(--iq-title-text, #f1f5f9) 6%, transparent);
    transform: translateY(-50%);
}

.fx-customizer-toggle:active {
    transform: translateY(-50%);
}

[data-theme="Light"] .fx-customizer-toggle {
    background: color-mix(in srgb, var(--iq-card-bg, #faf6ef) 95%, var(--iq-primary, #f43f5e) 5%);
    box-shadow: 0 12px 28px rgba(64, 49, 35, .14), inset 0 1px 0 rgba(255, 255, 255, .7);
}

[dir="rtl"] .fx-customizer-toggle {
    right: auto;
    left: 0;
    border-right: 1px solid color-mix(in srgb, var(--iq-primary, #f43f5e) 62%, transparent);
    border-left: 0;
    border-radius: 0 15px 15px 0;
}

[dir="rtl"] .fx-customizer-toggle:hover,
[dir="rtl"] .fx-customizer-toggle:focus-visible {
    transform: translateY(-50%);
}

[dir="rtl"] .fx-customizer-toggle:active {
    transform: translateY(-50%);
}

@media (max-width: 575.98px) {
    .fx-customizer-toggle {
        right: 0;
        top: 50%;
        bottom: auto;
        width: 38px;
        height: 64px;
        border-radius: 14px 0 0 14px;
        transform: translateY(-50%);
    }

    .fx-customizer-toggle:hover,
    .fx-customizer-toggle:focus-visible {
        width: 44px !important;
        transform: translateY(-50%);
    }

    .fx-customizer-toggle:active {
        transform: translateY(-50%);
    }

    [dir="rtl"] .fx-customizer-toggle {
        right: auto;
        left: 0;
        border-radius: 0 14px 14px 0;
    }

    [dir="rtl"] .fx-customizer-toggle:hover,
    [dir="rtl"] .fx-customizer-toggle:focus-visible {
        transform: translateY(-50%);
    }

    [dir="rtl"] .fx-customizer-toggle:active {
        transform: translateY(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fx-customizer-toggle {
        transition: none !important;
    }
}

.fx-customizer-toggle {
    top: 50% !important;
    right: 0 !important;
    bottom: auto !important;
    width: 40px !important;
    background: color-mix(in srgb, var(--iq-card-bg, #181c22) 62%, transparent) !important;
    border-color: color-mix(in srgb, var(--iq-body-text, #cbd5e1) 18%, transparent) !important;
    box-shadow: 0 14px 30px color-mix(in srgb, var(--iq-body-bg, #0f1216) 68%, transparent), inset 0 1px 0 color-mix(in srgb, var(--iq-title-text, #f1f5f9) 14%, transparent) !important;
    backdrop-filter: blur(24px) saturate(1.28) !important;
    -webkit-backdrop-filter: blur(24px) saturate(1.28) !important;
    transform: translate3d(0, -50%, 0) !important;
    transform-origin: center center;
    transition: width .26s cubic-bezier(.22, 1, .36, 1), transform .26s cubic-bezier(.22, 1, .36, 1), background-color .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease !important;
}

.fx-customizer-toggle::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    content: "";
    pointer-events: none;
    background: linear-gradient(180deg, color-mix(in srgb, var(--iq-title-text, #f1f5f9) 8%, transparent), color-mix(in srgb, var(--iq-body-bg, #0f1216) 18%, transparent));
}

.fx-customizer-toggle > * {
    position: relative;
    z-index: 1;
}

.fx-customizer-toggle:hover,
.fx-customizer-toggle:focus-visible {
    width: 48px !important;
    background: color-mix(in srgb, var(--iq-card-bg, #181c22) 70%, transparent) !important;
    border-color: color-mix(in srgb, var(--iq-primary, #f43f5e) 44%, transparent) !important;
    box-shadow: 0 16px 34px color-mix(in srgb, var(--iq-body-bg, #0f1216) 74%, transparent), inset 0 1px 0 color-mix(in srgb, var(--iq-title-text, #f1f5f9) 16%, transparent) !important;
    transform: translate3d(-2px, -50%, 0) !important;
}

.fx-customizer-toggle:active {
    transform: translate3d(0, -50%, 0) !important;
}

@media (max-width: 575.98px) {
    .fx-customizer-toggle {
        width: 38px !important;
    }

    .fx-customizer-toggle:hover,
    .fx-customizer-toggle:focus-visible {
        width: 42px !important;
        transform: translate3d(-1px, -50%, 0) !important;
    }

    .fx-customizer-toggle:active {
        transform: translate3d(0, -50%, 0) !important;
    }
}

.ts-themes .element-theme {
    --preview-bg: #15161a;
    --preview-rail: #9aa4b2;
    --preview-rail-muted: rgba(154, 164, 178, .38);
    --preview-canvas: #c5ccd6;
    --preview-canvas-muted: rgba(197, 204, 214, .42);
    --preview-panel: #627080;
    --preview-label-bg: rgba(15, 18, 22, .72);
    --preview-label: #eff3f7;
    --preview-text-shadow: 0 1px 2px rgba(0, 0, 0, .68);
    --preview-dot: #a9b7c8;
    --preview-active: #a9bfd7;
    position: relative;
    isolation: isolate;
    min-height: 120px;
    padding: 0;
    overflow: hidden;
    align-items: stretch;
    justify-content: stretch;
    border-color: color-mix(in srgb, var(--preview-rail) 26%, transparent) !important;
    background: var(--preview-bg) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045) !important;
}

.ts-themes .element-theme:hover {
    border-color: color-mix(in srgb, var(--preview-rail) 48%, transparent) !important;
    background: var(--preview-bg) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .075) !important;
}

.ts-themes .element-theme.active {
    border-color: var(--preview-active) !important;
    background: var(--preview-bg) !important;
    box-shadow: 0 0 0 1px var(--preview-active), inset 0 1px 0 rgba(255, 255, 255, .08) !important;
}

.ts-themes .element-theme .ts-card-icon {
    position: absolute;
    inset: 0;
    display: block;
    margin: 0;
}

.ts-themes .ts-theme-preview {
    position: absolute;
    inset: 0;
    display: block;
    width: auto;
    height: auto;
    overflow: hidden;
    border: 0 !important;
    border-radius: inherit;
    background: var(--preview-bg) !important;
    box-shadow: none !important;
}

.ts-theme-preview::before {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(138deg, rgba(255, 255, 255, .08), transparent 42%);
    pointer-events: none;
}

.ts-preview-sidebar {
    position: absolute;
    top: 12px;
    left: 10px;
    display: grid;
    gap: 6px;
    width: 22px;
}

.ts-preview-sidebar i,
.ts-preview-canvas i {
    display: block;
    border-radius: 999px;
}

.ts-preview-sidebar i {
    height: 5px;
    background: var(--preview-rail-muted);
}

.ts-preview-sidebar i:first-child {
    background: var(--preview-rail);
}

.ts-preview-sidebar i:nth-child(2) {
    width: 19px;
}

.ts-preview-sidebar i:nth-child(3) {
    width: 15px;
}

.ts-preview-sidebar i:nth-child(4) {
    width: 20px;
}

.ts-preview-canvas {
    position: absolute;
    top: 26px;
    right: 11px;
    left: 40px;
    display: grid;
    gap: 7px;
}

.ts-preview-canvas i {
    height: 6px;
    background: var(--preview-canvas);
}

.ts-preview-canvas i:nth-child(1) {
    width: 78%;
}

.ts-preview-canvas i:nth-child(2) {
    width: 100%;
    height: 13px;
    background: var(--preview-panel);
}

.ts-preview-canvas i:nth-child(3) {
    width: 72%;
    background: var(--preview-canvas-muted);
}

.ts-preview-canvas i:nth-child(4) {
    width: 46%;
    background: var(--preview-canvas-muted);
}

.ts-themes .element-theme .ts-card-label {
    position: absolute;
    z-index: 2;
    bottom: 9px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    min-height: 0;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: transparent !important;
    color: var(--preview-label) !important;
    font-size: .72rem;
    font-weight: 750;
    line-height: 1;
    text-align: start;
    text-shadow: var(--preview-text-shadow);
}

.ts-themes .element-theme .ts-card-label::before {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--preview-dot);
    content: "";
}

.ts-themes .element-theme[data-theme-id="Light"] {
    --preview-bg: #f6f2ea;
    --preview-rail: #806542;
    --preview-rail-muted: #c6bcae;
    --preview-canvas: #776c60;
    --preview-canvas-muted: #b8aea2;
    --preview-panel: #d5c5ad;
    --preview-label-bg: rgba(255, 252, 246, .82);
    --preview-label: #50483f;
    --preview-text-shadow: 0 1px 0 rgba(255, 255, 255, .7);
    --preview-dot: #9a7849;
    --preview-active: #a58a62;
}

.ts-themes .element-theme[data-theme-id="Dark"] {
    --preview-bg: #16161a;
    --preview-rail: #a48bf4;
    --preview-rail-muted: #50515a;
    --preview-canvas: #c1c4ca;
    --preview-canvas-muted: #52545d;
    --preview-panel: #6b5a99;
    --preview-label-bg: rgba(19, 19, 22, .84);
    --preview-label: #ededf2;
    --preview-dot: #a88cff;
    --preview-active: #a88cff;
}

.ts-themes .element-theme[data-theme-id="Purple"] {
    --preview-bg: #282333;
    --preview-rail: #c4adff;
    --preview-rail-muted: #756a89;
    --preview-canvas: #ded3ef;
    --preview-canvas-muted: #9489a5;
    --preview-panel: #786a9e;
    --preview-label-bg: rgba(29, 25, 38, .84);
    --preview-label: #f0eafa;
    --preview-dot: #bda6ff;
    --preview-active: #c3aeff;
}

.ts-themes .element-theme[data-theme-id="Green"] {
    --preview-bg: #10241a;
    --preview-rail: #38d59a;
    --preview-rail-muted: #476c58;
    --preview-canvas: #d1e6d8;
    --preview-canvas-muted: #6d9179;
    --preview-panel: #287b58;
    --preview-label-bg: rgba(13, 29, 20, .84);
    --preview-label: #e6f6eb;
    --preview-dot: #3cdda1;
    --preview-active: #4ce1a9;
}

.ts-themes .element-theme[data-theme-id="Midnight"] {
    --preview-bg: #172536;
    --preview-rail: #79d7ff;
    --preview-rail-muted: #51677f;
    --preview-canvas: #d2e1eb;
    --preview-canvas-muted: #66859c;
    --preview-panel: #477d9a;
    --preview-label-bg: rgba(16, 27, 41, .84);
    --preview-label: #eaf6ff;
    --preview-dot: #74d4ff;
    --preview-active: #80d9ff;
}

.ts-themes .element-theme[data-theme-id="Crimson"] {
    --preview-bg: #2a1718;
    --preview-rail: #ff747d;
    --preview-rail-muted: #735253;
    --preview-canvas: #ead4d4;
    --preview-canvas-muted: #9b7071;
    --preview-panel: #914a4c;
    --preview-label-bg: rgba(37, 20, 21, .84);
    --preview-label: #fff0f0;
    --preview-dot: #ff727a;
    --preview-active: #ff7a84;
}

.ts-themes .element-theme[data-theme-id="Cyber"] {
    --preview-bg: #0e291f;
    --preview-rail: #35d6c0;
    --preview-rail-muted: #426b60;
    --preview-canvas: #d4ede6;
    --preview-canvas-muted: #6d9589;
    --preview-panel: #197d69;
    --preview-label-bg: rgba(10, 31, 24, .84);
    --preview-label: #e3fbf5;
    --preview-dot: #32dac2;
    --preview-active: #42dfca;
}

.ts-themes .element-theme[data-theme-id="Slate"] {
    --preview-bg: #151c1d;
    --preview-rail: #afbdcf;
    --preview-rail-muted: #57616b;
    --preview-canvas: #d0d7e1;
    --preview-canvas-muted: #78838e;
    --preview-panel: #657383;
    --preview-label-bg: rgba(15, 20, 22, .84);
    --preview-label: #eff4f8;
    --preview-dot: #b1c0d4;
    --preview-active: #adbfda;
}

@media (max-width: 575.98px) {
    .ts-themes .element-theme {
        min-height: 112px;
    }
}
