/* assets/css/generator-tier.css */

.generator-bottom-wrapper-tier {
    display: flex;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    min-width: 0;
    align-self: stretch;
    box-sizing: border-box;
}

.generator-tier-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    max-width: none;
    align-self: stretch;
    box-sizing: border-box;
}

.generator-tier-input-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
    min-width: 0;
    max-width: none;
    align-self: stretch;
    box-sizing: border-box;
}

.generator-tier-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    align-items: stretch;
    gap: 0;
    flex: 0 0 30px;
    width: 30px;
    min-width: 30px;
    margin-right: 0;
    align-self: stretch;
}

.generator-tier-tab {
    position: relative;
    flex: 1 1 0;
    min-height: 0;
    padding: 6px 0;
    border: 1px solid rgba(255,255,255,0.12);
    border-right: none;
    border-radius: 12px 0 0 12px;
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.56);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.generator-tier-tab + .generator-tier-tab {
    margin-top: 0;
}

.generator-tier-tab-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 9px;
    line-height: 1;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    user-select: none;
    pointer-events: none;
}

.generator-tier-tab:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
}

.generator-tier-tab.is-active {
    color: #ffffff;
}

.generator-bottom-wrapper-tier-image[data-active-tier="light"] .generator-tier-tab[data-tier="light"] {
    background: rgba(141, 198, 63, 0.22);
    border-color: rgba(141, 198, 63, 0.42);
    box-shadow: inset 0 0 0 1px rgba(141, 198, 63, 0.16);
}

.generator-bottom-wrapper-tier-image[data-active-tier="standard"] .generator-tier-tab[data-tier="standard"] {
    background: rgba(59, 156, 255, 0.22);
    border-color: rgba(59, 156, 255, 0.42);
    box-shadow: inset 0 0 0 1px rgba(59, 156, 255, 0.16);
}

.generator-bottom-wrapper-tier-image[data-active-tier="pro"] .generator-tier-tab[data-tier="pro"] {
    background: rgba(122, 33, 58, 0.3);
    border-color: rgba(122, 33, 58, 0.48);
    box-shadow: inset 0 0 0 1px rgba(122, 33, 58, 0.18);
}

.generator-bottom-wrapper-tier-image[data-active-tier="light"] .technical-tray,
.generator-bottom-wrapper-tier-image[data-active-tier="light"] .floating-input-island {
    border-color: rgba(141, 198, 63, 0.34);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.8),
        0 -4px 20px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(141, 198, 63, 0.08);
}

.generator-bottom-wrapper-tier-image[data-active-tier="standard"] .technical-tray,
.generator-bottom-wrapper-tier-image[data-active-tier="standard"] .floating-input-island {
    border-color: rgba(59, 156, 255, 0.34);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.8),
        0 -4px 20px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(59, 156, 255, 0.1);
}

.generator-bottom-wrapper-tier-image[data-active-tier="pro"] .technical-tray,
.generator-bottom-wrapper-tier-image[data-active-tier="pro"] .floating-input-island {
    border-color: rgba(122, 33, 58, 0.42);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.8),
        0 -4px 20px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(122, 33, 58, 0.12);
}

.generator-bottom-wrapper-tier-image[data-active-tier="light"] .send-btn:not(:disabled) {
    background: linear-gradient(180deg, rgba(141, 198, 63, 0.92) 0%, rgba(106, 157, 37, 0.92) 100%);
    box-shadow: 0 0 16px rgba(141, 198, 63, 0.26);
}

.generator-bottom-wrapper-tier-image[data-active-tier="standard"] .send-btn:not(:disabled) {
    background: linear-gradient(180deg, rgba(59, 156, 255, 0.92) 0%, rgba(34, 116, 193, 0.92) 100%);
    box-shadow: 0 0 16px rgba(59, 156, 255, 0.26);
}

.generator-bottom-wrapper-tier-image[data-active-tier="pro"] .send-btn:not(:disabled) {
    background: linear-gradient(180deg, rgba(122, 33, 58, 0.96) 0%, rgba(90, 21, 43, 0.96) 100%);
    box-shadow: 0 0 16px rgba(122, 33, 58, 0.28);
}

.generator-bottom-wrapper-tier-image[data-active-tier="light"] .sq-action-btn[data-action="upscale"]:not(:disabled) {
    color: rgba(214, 255, 170, 0.96);
    border-color: rgba(141, 198, 63, 0.42);
    background: rgba(141, 198, 63, 0.08);
}

.generator-bottom-wrapper-tier-image[data-active-tier="light"] .sq-action-btn[data-action="upscale"]:hover:not(:disabled) {
    color: #ffffff;
    border-color: rgba(141, 198, 63, 0.7);
    background: rgba(141, 198, 63, 0.18);
    box-shadow: 0 0 14px rgba(141, 198, 63, 0.2);
}

.generator-bottom-wrapper-tier-image[data-active-tier="standard"] .sq-action-btn[data-action="upscale"]:not(:disabled) {
    color: rgba(199, 227, 255, 0.98);
    border-color: rgba(59, 156, 255, 0.44);
    background: rgba(59, 156, 255, 0.08);
}

.generator-bottom-wrapper-tier-image[data-active-tier="standard"] .sq-action-btn[data-action="upscale"]:hover:not(:disabled) {
    color: #ffffff;
    border-color: rgba(59, 156, 255, 0.72);
    background: rgba(59, 156, 255, 0.18);
    box-shadow: 0 0 14px rgba(59, 156, 255, 0.22);
}

.generator-bottom-wrapper-tier-image[data-active-tier="pro"] .sq-action-btn[data-action="upscale"]:not(:disabled) {
    color: rgba(255, 202, 217, 0.98);
    border-color: rgba(122, 33, 58, 0.46);
    background: rgba(122, 33, 58, 0.1);
}

.generator-bottom-wrapper-tier-image[data-active-tier="pro"] .sq-action-btn[data-action="upscale"]:hover:not(:disabled) {
    color: #ffffff;
    border-color: rgba(122, 33, 58, 0.74);
    background: rgba(122, 33, 58, 0.2);
    box-shadow: 0 0 14px rgba(122, 33, 58, 0.24);
}

.generator-bottom-wrapper-tier-video[data-active-tier="light"] .generator-tier-tab[data-tier="light"] {
    background: rgba(141, 198, 63, 0.22);
    border-color: rgba(141, 198, 63, 0.42);
    box-shadow: inset 0 0 0 1px rgba(141, 198, 63, 0.16);
}

.generator-bottom-wrapper-tier-video[data-active-tier="standard"] .generator-tier-tab[data-tier="standard"] {
    background: rgba(181, 59, 255, 0.22);
    border-color: rgba(181, 59, 255, 0.42);
    box-shadow: inset 0 0 0 1px rgba(181, 59, 255, 0.16);
}

.generator-bottom-wrapper-tier-video[data-active-tier="pro"] .generator-tier-tab[data-tier="pro"] {
    background: rgba(122, 33, 58, 0.3);
    border-color: rgba(122, 33, 58, 0.48);
    box-shadow: inset 0 0 0 1px rgba(122, 33, 58, 0.18);
}

.generator-bottom-wrapper-tier-video[data-active-tier="light"] .technical-tray,
.generator-bottom-wrapper-tier-video[data-active-tier="light"] .floating-input-island {
    border-color: rgba(141, 198, 63, 0.34);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.8),
        0 -4px 20px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(141, 198, 63, 0.08);
}

.generator-bottom-wrapper-tier-video[data-active-tier="standard"] .technical-tray,
.generator-bottom-wrapper-tier-video[data-active-tier="standard"] .floating-input-island {
    border-color: rgba(181, 59, 255, 0.34);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.8),
        0 -4px 20px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(181, 59, 255, 0.1);
}

.generator-bottom-wrapper-tier-video[data-active-tier="pro"] .technical-tray,
.generator-bottom-wrapper-tier-video[data-active-tier="pro"] .floating-input-island {
    border-color: rgba(122, 33, 58, 0.42);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.8),
        0 -4px 20px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(122, 33, 58, 0.12);
}

.generator-bottom-wrapper-tier-video[data-active-tier="light"] .send-btn:not(:disabled) {
    background: linear-gradient(180deg, rgba(141, 198, 63, 0.92) 0%, rgba(106, 157, 37, 0.92) 100%);
    box-shadow: 0 0 16px rgba(141, 198, 63, 0.26);
}

.generator-bottom-wrapper-tier-video[data-active-tier="standard"] .send-btn:not(:disabled) {
    background: linear-gradient(180deg, rgba(181, 59, 255, 0.92) 0%, rgba(132, 39, 188, 0.92) 100%);
    box-shadow: 0 0 16px rgba(181, 59, 255, 0.26);
}

.generator-bottom-wrapper-tier-video[data-active-tier="pro"] .send-btn:not(:disabled) {
    background: linear-gradient(180deg, rgba(122, 33, 58, 0.96) 0%, rgba(90, 21, 43, 0.96) 100%);
    box-shadow: 0 0 16px rgba(122, 33, 58, 0.28);
}

@media (min-width: 769px) {
    .generator-bottom-wrapper-tier {
        align-items: flex-start !important;
    }

    .generator-bottom-wrapper-tier .generator-tier-main {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .generator-bottom-wrapper-tier .generator-tier-input-row {
        display: flex !important;
        align-items: stretch !important;
        gap: 0 !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .generator-bottom-wrapper-tier .generator-tier-input-row > .generator-tier-sidebar {
        flex: 0 0 30px !important;
        width: 30px !important;
        min-width: 30px !important;
        align-self: stretch !important;
        margin-right: -1px !important;
        margin-bottom: 0 !important;
        transform: none !important;
        position: relative !important;
        z-index: 1 !important;
        overflow: hidden !important;
        border-radius: 12px 0 0 12px !important;
        background: transparent !important;
    }

    .generator-bottom-wrapper-tier .generator-tier-input-row > .generator-tier-sidebar .generator-tier-tab {
        box-sizing: border-box !important;
        border-radius: 0 !important;
    }

    .generator-bottom-wrapper-tier .generator-tier-input-row > .generator-tier-sidebar .generator-tier-tab:first-child {
        border-top-left-radius: 12px !important;
        border-bottom-left-radius: 0 !important;
    }

    .generator-bottom-wrapper-tier .generator-tier-input-row > .generator-tier-sidebar .generator-tier-tab:last-child {
        border-top-left-radius: 0 !important;
        border-bottom-left-radius: 12px !important;
        margin-bottom: 0 !important;
    }

    .generator-bottom-wrapper-tier .generator-tier-input-row > .floating-input-island {
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        border-top-left-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
        margin-left: 0 !important;
        position: relative !important;
        z-index: 2 !important;
    }

    .generator-bottom-wrapper-tier .generator-tier-input-row > .floating-input-island::before {
        content: '' !important;
        position: absolute !important;
        left: -1px !important;
        top: 0 !important;
        bottom: 0 !important;
        width: 1px !important;
        background: inherit !important;
        pointer-events: none !important;
        z-index: 3 !important;
    }

    .generator-bottom-wrapper-tier .technical-tray {
        width: max-content !important;
        min-width: 0 !important;
    }

    .generator-bottom-wrapper-tier .generator-tier-main > .technical-tray {
        margin-bottom: 0 !important;
    }

    .generator-bottom-wrapper-tier .generator-tier-main > .generator-tier-input-row {
        margin-top: 0 !important;
    }

    .generator-bottom-wrapper-tier-image .generator-tier-main,
    .generator-bottom-wrapper-tier-video .generator-tier-main {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        min-width: 0;
    }

    .generator-bottom-wrapper-tier-image .generator-tier-sidebar,
    .generator-bottom-wrapper-tier-video .generator-tier-sidebar {
        position: relative;
        top: auto;
        align-self: stretch;
        margin-right: 0;
        margin-top: 0;
        transform: translateX(1px);
        z-index: 2;
        height: auto;
    }

    .generator-bottom-wrapper-tier-image .floating-input-island,
    .generator-bottom-wrapper-tier-video .floating-input-island {
        width: 100%;
        min-width: 0;
    }

    .generator-bottom-wrapper-tier-image .technical-tray,
    .generator-bottom-wrapper-tier-video .technical-tray {
        width: max-content;
        min-width: 0;
    }

    .generator-bottom-wrapper-tier-video .generator-tier-input-row > .generator-tier-sidebar {
        margin-top: 0 !important;
    }

    .generator-bottom-wrapper-tier-video .generator-tier-input-row > .floating-input-island {
        box-shadow: 0 24px 64px rgba(0, 0, 0, 0.9), 0 -8px 32px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    }

    .generator-bottom-wrapper.generator-bottom-wrapper-tier.generator-bottom-wrapper-tier-video {
        width: 100% !important;
        min-width: 0 !important;
        align-self: stretch !important;
        box-sizing: border-box !important;
    }

    .generator-bottom-wrapper.generator-bottom-wrapper-tier.generator-bottom-wrapper-tier-video > .generator-tier-main {
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        align-self: stretch !important;
        box-sizing: border-box !important;
    }

    .generator-bottom-wrapper.generator-bottom-wrapper-tier.generator-bottom-wrapper-tier-video > .generator-tier-main > .generator-tier-input-row {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        align-self: stretch !important;
        box-sizing: border-box !important;
    }

    .generator-bottom-wrapper.generator-bottom-wrapper-tier.generator-bottom-wrapper-tier-video > .generator-tier-main > .generator-tier-input-row > .generator-tier-sidebar {
        flex: 0 0 30px !important;
        width: 30px !important;
        min-width: 30px !important;
        max-width: 30px !important;
        box-sizing: border-box !important;
    }

    .generator-bottom-wrapper.generator-bottom-wrapper-tier.generator-bottom-wrapper-tier-video > .generator-tier-main > .generator-tier-input-row > .floating-input-island {
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        box-sizing: border-box !important;
    }

    .generator-bottom-wrapper.generator-bottom-wrapper-tier.generator-bottom-wrapper-tier-video > .generator-tier-main > .technical-tray {
        align-self: flex-start;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 768px) {
    .generator-bottom-wrapper-tier {
        display: block;
    }

    .technical-tray {
        margin-left: 0 !important;
    }

        .generator-tier-input-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    .generator-tier-sidebar {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        width: 100%;
        min-width: 0;
        margin-right: 0;
        margin-bottom: 0;
        gap: 8px;
        order: -1;
        align-self: auto !important;
    }

    .generator-tier-main,
    .generator-bottom-wrapper-tier-image .generator-tier-main,
    .generator-bottom-wrapper-tier-video .generator-tier-main {
        width: 100% !important;
        min-width: 0 !important;
    }

    .generator-tier-main {
        width: 100%;
        min-width: 0;
    }

        .generator-tier-tab {
        flex: 1 1 0;
        min-height: 40px;
        height: 40px;
        max-height: 40px;
        padding: 0 10px;
        border-right: 1px solid rgba(255,255,255,0.12);
        border-radius: 12px;
        overflow: hidden;
    }

    .generator-tier-tab + .generator-tier-tab {
        margin-top: 0;
    }

    .generator-tier-tab-label {
        writing-mode: initial;
        transform: none;
        font-size: 10px;
        font-weight: 500;
        letter-spacing: 0.04em;
        text-align: center;
    }.generator-tier-input-row > .floating-input-island {
        width: 100% !important;
        min-width: 0 !important;
    }

    .generator-bottom-wrapper-tier-image,
    .generator-bottom-wrapper-tier-video {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .generator-tier-sidebar {
        flex: 0 0 auto !important;
    }

    .generator-bottom-wrapper-tier-image .technical-tray,
    .generator-bottom-wrapper-tier-video .technical-tray,
    .generator-bottom-wrapper-tier-image .floating-input-island,
    .generator-bottom-wrapper-tier-video .floating-input-island {
        width: 100% !important;
        min-width: 0 !important;
    }

    .generator-bottom-wrapper-tier-video .send-action-wrapper {
        width: 100% !important;
        min-width: 0 !important;
    }

    .generator-bottom-wrapper-tier-video .send-btn {
        width: 100% !important;
    }
}/* Restricted Mode Badge */
.video-restricted-mode {
    display: flex;
    align-items: center;
    margin-bottom: 2px;
}

.video-restricted-mode[hidden] {
    display: none !important;
}

.video-restricted-mode__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
    user-select: none;
    outline: none;
}

.video-restricted-mode__toggle:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.video-restricted-mode__toggle:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.video-restricted-mode__label {
    font-weight: 600;
}

.video-restricted-mode__state {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Badge States */
.video-restricted-mode.is-unavailable .video-restricted-mode__toggle {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.08);
}

.video-restricted-mode.is-unavailable .video-restricted-mode__state {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
}

.video-restricted-mode.is-available .video-restricted-mode__toggle {
    border-color: rgba(255, 180, 0, 0.35);
    color: rgba(255, 255, 255, 0.9);
}

.video-restricted-mode.is-available .video-restricted-mode__toggle:hover:not(:disabled) {
    border-color: rgba(255, 180, 0, 0.6);
    background: rgba(255, 180, 0, 0.1);
}

.video-restricted-mode.is-available .video-restricted-mode__state {
    background: rgba(255, 180, 0, 0.2);
    color: #ffc107;
}

.video-restricted-mode.is-enabled .video-restricted-mode__toggle {
    border-color: rgba(59, 156, 255, 0.45);
    background: rgba(59, 156, 255, 0.1);
    color: #ffffff;
}

.video-restricted-mode.is-enabled .video-restricted-mode__toggle:hover:not(:disabled) {
    border-color: rgba(59, 156, 255, 0.7);
    background: rgba(59, 156, 255, 0.18);
}

.video-restricted-mode.is-enabled .video-restricted-mode__state {
    background: rgba(59, 156, 255, 0.25);
    color: #3b9cff;
}

.video-restricted-mode.is-admin-locked .video-restricted-mode__toggle {
    border-color: rgba(255, 77, 77, 0.35);
    opacity: 0.6;
    cursor: not-allowed;
}

.video-restricted-mode.is-admin-locked .video-restricted-mode__state {
    background: rgba(255, 77, 77, 0.2);
    color: #ff4d4d;
}

/* Restricted Mode Control */
.generator-bottom-wrapper-tier-video .send-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.generator-bottom-wrapper-tier-video .video-restricted-mode {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    margin: 0;
}

.generator-bottom-wrapper-tier-video .video-restricted-mode__toggle {
    width: 38px;
    height: 38px;
    min-width: 38px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    font-size: 0;
}

.generator-bottom-wrapper-tier-video .video-restricted-mode__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.generator-bottom-wrapper-tier-video .video-restricted-mode__label,
.generator-bottom-wrapper-tier-video .video-restricted-mode__state {
    display: none;
}

.generator-bottom-wrapper-tier-video .video-restricted-mode.is-unavailable .video-restricted-mode__toggle {
    opacity: 0.58;
    cursor: help;
}

.generator-bottom-wrapper-tier-video .video-restricted-mode.is-available .video-restricted-mode__toggle {
    opacity: 1;
    cursor: help;
}

.generator-bottom-wrapper-tier-video .video-restricted-mode.is-enabled .video-restricted-mode__toggle {
    opacity: 1;
    cursor: help;
}

.video-restricted-mode-tooltip {
    position: fixed;
    z-index: 2147483647;
    max-width: min(360px, calc(100vw - 24px));
    padding: 9px 12px;
    border: 1px solid rgba(59, 156, 255, 0.55);
    border-radius: 9px;
    background: #1e2028;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    font-size: 12px;
    line-height: 1.4;
    white-space: normal;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.video-restricted-mode-tooltip.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}/* Restricted Mode Modal */
.video-restricted-mode__modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 1;
    transition: opacity 0.25s ease;
}

.video-restricted-mode__modal[hidden] {
    display: none !important;
}

.video-restricted-mode__dialog {
    position: relative;
    width: 100%;
    max-width: 520px;
    padding: 28px 24px 24px;
    background: #181920;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
}

.video-restricted-mode__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.video-restricted-mode__warning {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.85);
}

.video-restricted-mode__rules {
    margin: 0;
    padding: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
}

.video-restricted-mode__consents {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 4px;
}

.video-restricted-mode__consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    user-select: none;
}

.video-restricted-mode__consent input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin-top: 1px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.video-restricted-mode__consent input[type="checkbox"]:hover {
    border-color: rgba(59, 156, 255, 0.6);
    background: rgba(59, 156, 255, 0.1);
}

.video-restricted-mode__consent input[type="checkbox"]:checked {
    background: #3b9cff;
    border-color: #3b9cff;
}

.video-restricted-mode__consent input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.video-restricted-mode__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}

.video-restricted-mode__cancel {
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: all 0.2s ease;
}

.video-restricted-mode__cancel:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.video-restricted-mode__confirm {
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(180deg, #3b9cff 0%, #2274c1 100%);
    border: none;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(59, 156, 255, 0.3);
    transition: all 0.2s ease;
}

.video-restricted-mode__confirm:hover:not(:disabled) {
    background: linear-gradient(180deg, #4da4ff 0%, #2980d4 100%);
    box-shadow: 0 6px 18px rgba(59, 156, 255, 0.45);
}

.video-restricted-mode__confirm:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}#ai-model-tool .icon-panel-popup .icon-panel-btn[data-category="model"] > .icon-panel-btn-icon {
    display: none !important;
}

#ai-model-tool .icon-panel-popup .icon-panel-btn[data-category="model"] {
    position: relative;
    grid-template-columns: minmax(0, 1fr) auto !important;
    padding-left: 16px !important;
    padding-right: 10px !important;
}

#ai-model-tool .icon-panel-popup .icon-panel-btn[data-category="model"] .icon-panel-btn-text {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

#ai-model-tool .icon-panel-popup .icon-panel-btn[data-category="model"].is-tier-unavailable {
    color: rgba(255, 255, 255, 0.48);
}

#ai-model-tool .icon-panel-popup .icon-panel-btn[data-category="model"].is-tier-unavailable:hover {
    color: rgba(255, 255, 255, 0.82);
}

#ai-model-tool .icon-panel-popup .video-mode-tier-actions {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 30px;
    height: 18px;
    margin-left: 8px;
    padding: 0 6px;
    border: 1px solid rgba(181, 59, 255, 0.62);
    border-radius: 999px;
    background: linear-gradient(
        180deg,
        rgba(181, 59, 255, 0.28) 0%,
        rgba(122, 33, 58, 0.28) 100%
    );
    color: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    user-select: none;
    z-index: 1;
}

#ai-model-tool .icon-panel-popup .video-mode-tier-actions:hover,
#ai-model-tool .icon-panel-popup .video-mode-tier-actions:focus-visible {
    border-color: rgba(255, 255, 255, 0.86);
    background: linear-gradient(
        180deg,
        rgba(181, 59, 255, 0.48) 0%,
        rgba(122, 33, 58, 0.48) 100%
    );
    box-shadow: 0 0 12px rgba(181, 59, 255, 0.28);
    outline: none;
    transform: translateY(-1px);
}

#ai-model-tool .icon-panel-popup .video-mode-tier-actions__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.04em;
    pointer-events: none;
}.ready-cards-layout .ready-exporter-shell .generator-tier-main,
.ready-cards-layout .ready-exporter-shell .generator-tier-input-row,
.ready-cards-layout .ready-exporter-shell .technical-tray,
.ready-cards-layout .ready-exporter-shell .floating-input-island,
.ready-cards-layout .ready-exporter-shell .input-core,
.ready-cards-layout .ready-exporter-shell .input-main-col,
.ready-cards-layout .ready-exporter-shell .prompt-input-wrapper {
    position: relative;
    z-index: 5;
    pointer-events: auto;
}

.ready-cards-layout .ready-exporter-shell .technical-tray,
.ready-cards-layout .ready-exporter-shell .ready-export-search-shell,
.ready-cards-layout .ready-exporter-shell .ready-export-search-card,
.ready-cards-layout .ready-exporter-shell .ready-export-search-field,
.ready-cards-layout .ready-exporter-shell .ready-export-search-input {
    pointer-events: auto;
}/* Image restricted-mode control follows the canonical video-generator layout. */
.images-generator-layout .generator-bottom-wrapper-tier-image .send-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.images-generator-layout .generator-bottom-wrapper-tier-image #image-restricted-mode {
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 2 !important;
    overflow: visible !important;
    isolation: auto !important;
}

.images-generator-layout .generator-bottom-wrapper-tier-image #image-restricted-mode[hidden] {
    display: none !important;
}

.images-generator-layout .generator-bottom-wrapper-tier-image #image-restricted-mode-toggle {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 3 !important;
}

.images-generator-layout .generator-bottom-wrapper-tier-image #image-restricted-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.09) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
}

.images-generator-layout .generator-bottom-wrapper-tier-image #image-restricted-mode-toggle.is-enabled,
.images-generator-layout .generator-bottom-wrapper-tier-image #image-restricted-mode-toggle.is-active {
    border-color: rgba(59, 156, 255, 0.45) !important;
    background: rgba(59, 156, 255, 0.1) !important;
    color: #ffffff !important;
}

.images-generator-layout .generator-bottom-wrapper-tier-image #image-restricted-mode-toggle .generator-restricted-mode-badge,
.images-generator-layout .generator-bottom-wrapper-tier-image #image-restricted-mode-toggle .video-restricted-mode__icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid currentColor !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: inherit !important;
    font-size: 10px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    letter-spacing: -0.04em !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

.images-generator-layout .generator-bottom-wrapper-tier-image #image-restricted-mode-toggle .video-restricted-mode__label,
.images-generator-layout .generator-bottom-wrapper-tier-image #image-restricted-mode-toggle .video-restricted-mode__state {
    display: none !important;
}

.images-generator-layout .generator-bottom-wrapper-tier-image #image-restricted-mode.is-unavailable .video-restricted-mode__toggle,
.images-generator-layout .generator-bottom-wrapper-tier-image #image-restricted-mode.is-unavailable #image-restricted-mode-toggle {
    opacity: 0.58 !important;
    cursor: help !important;
}

.images-generator-layout .generator-bottom-wrapper-tier-image #image-restricted-mode.is-available .video-restricted-mode__toggle,
.images-generator-layout .generator-bottom-wrapper-tier-image #image-restricted-mode.is-enabled .video-restricted-mode__toggle,
.images-generator-layout .generator-bottom-wrapper-tier-image #image-restricted-mode.is-available #image-restricted-mode-toggle,
.images-generator-layout .generator-bottom-wrapper-tier-image #image-restricted-mode.is-enabled #image-restricted-mode-toggle {
    opacity: 1 !important;
    cursor: help !important;
}

@media (max-width: 768px) {
    .images-generator-layout .generator-bottom-wrapper-tier-image #image-restricted-mode-toggle {
        width: 38px !important;
        min-width: 38px !important;
        height: 38px !important;
        min-height: 38px !important;
    }
}