html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 .1rem white, 0 0 0 .25rem rgba(145, 67, 84, .25);
}

body {
    background: #1d1b20;
    color: #222;
    font-size: 13px;
    letter-spacing: 0;
}

.app-inline-notice {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 2100;
    max-width: min(420px, calc(100vw - 36px));
    border: 1px solid rgba(79, 42, 112, .12);
    border-radius: 18px;
    background: #fff;
    color: #2c173f;
    box-shadow: 0 18px 44px rgba(38, 28, 42, .18);
    padding: 14px 18px;
    font-weight: 800;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

.app-inline-notice.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.app-inline-notice.is-warning {
    border-color: rgba(212, 99, 54, .28);
    background: #fff7f0;
}

.login-body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 18% 18%, rgba(210, 90, 42, .16), transparent 34%), #f2eee5;
}

.login-shell {
    width: 100%;
    max-width: 360px;
    padding: 28px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 28px;
    box-shadow: 0 24px 80px rgba(79, 42, 112, .18);
    backdrop-filter: blur(12px);
}

.login-form {
    display: flex;
    flex-direction: column;
}

.login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.login-logo img {
    display: block;
    width: 260px;
    max-width: 100%;
    height: auto;
}

.login-form .form-control,
.login-form .form-select,
.login-form .form-check-input,
.login-form .btn {
    border-radius: 999px;
}

.auth-shell-wide {
    max-width: 560px;
}

.auth-title {
    color: #2c173f;
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 6px;
}

.auth-help {
    color: #766b75;
    text-align: center;
    margin-bottom: 18px;
}

.auth-links a {
    color: #6b3476;
    font-weight: 700;
}

.marketplace-auth-button {
    display: grid;
    grid-template-columns: minmax(118px, 1fr) minmax(116px, 1.15fr);
    align-items: center;
    justify-items: center;
    min-height: 58px;
    padding: 8px 18px;
    border: 1px solid rgba(44, 23, 63, .16);
    border-radius: 6px !important;
    background: #fff;
    color: #6b3476;
    font-weight: 500;
    box-shadow: none;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.marketplace-auth-button:hover,
.marketplace-auth-button:focus {
    border-color: rgba(79, 42, 112, .34);
    background: #fff;
    color: #4f2a70;
    box-shadow: 0 10px 22px rgba(79, 42, 112, .08);
    transform: translateY(-1px);
}

.marketplace-auth-button span {
    white-space: nowrap;
}

.marketplace-auth-button img {
    display: block;
    width: auto;
    max-width: 136px;
    max-height: 38px;
    object-fit: contain;
}

.marketplace-auth-button.ml img {
    max-width: 142px;
    max-height: 36px;
}

.marketplace-auth-button.gs img {
    max-width: 128px;
    max-height: 40px;
}

.auth-marketplace-login {
    margin-top: 18px;
}

.auth-marketplace-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #6d6470;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

.auth-marketplace-divider::before,
.auth-marketplace-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(44, 23, 63, .13);
}

.auth-marketplace-divider span {
    white-space: nowrap;
}

.auth-marketplace-login-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.auth-marketplace-login-grid form {
    margin: 0;
}

.marketplace-oauth-login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 66px;
    padding: 10px 14px;
    border: 1px solid rgba(44, 23, 63, .16);
    border-radius: 6px !important;
    background: #fff;
    box-shadow: none;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.marketplace-oauth-login-button:hover,
.marketplace-oauth-login-button:focus {
    border-color: rgba(79, 42, 112, .34);
    background: #fff;
    box-shadow: 0 10px 22px rgba(79, 42, 112, .08);
    transform: translateY(-1px);
}

.marketplace-oauth-login-button img {
    display: block;
    width: auto;
    max-width: 128px;
    max-height: 42px;
    object-fit: contain;
}

.marketplace-account-summary {
    display: grid;
    gap: 4px;
    padding: 18px;
    margin-bottom: 20px;
    border-radius: 18px;
    background: #f5efe7;
    color: #2c173f;
}

.login-form .form-control {
    min-height: 44px;
    border-color: rgba(79, 42, 112, .2);
    box-shadow: 0 8px 20px rgba(79, 42, 112, .06);
}

.btn-primary {
    background: linear-gradient(135deg, #4f2a70, #d25a2a);
    border: 0;
    box-shadow: 0 12px 24px rgba(153, 64, 80, .22);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #5d337f, #df6635);
}

.admin-body {
    padding-top: 64px;
}

.seller-body {
    padding-top: 112px;
}

.internal-impersonation-body.seller-body {
    padding-top: 158px;
}

#wrapper {
    min-height: 100vh;
}

.admin-navbar {
    min-height: 64px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .22);
}

.admin-brand {
    width: auto;
    display: flex;
    align-items: center;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: .2px;
}

.admin-brand img {
    width: 128px;
    height: auto;
    filter: brightness(1.15);
}

.brand-beta-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    padding: 3px 8px;
    border: 1px solid rgba(79, 42, 112, .18);
    border-radius: 999px;
    background: rgba(255, 250, 246, .92);
    color: #4f2a70;
    font-size: .72rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .02em;
    text-transform: uppercase;
    vertical-align: middle;
}

.seller-body .admin-navbar {
    min-height: 112px;
    background: #fff !important;
    border-bottom: 1px solid rgba(79, 42, 112, .12);
    box-shadow: 0 12px 28px rgba(38, 28, 42, .1);
}

.internal-impersonation-body .admin-navbar {
    top: 46px;
}

.internal-impersonation-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1045;
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 7px 24px;
    background: #f7b5a5;
    color: #2c173f;
    border-bottom: 1px solid rgba(79, 42, 112, .14);
    box-shadow: 0 10px 26px rgba(38, 28, 42, .12);
}

.internal-impersonation-message {
    font-weight: 800;
    white-space: nowrap;
}

.internal-impersonation-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 720px;
}

.internal-impersonation-select,
.internal-impersonation-input {
    min-width: 260px;
    border-radius: 999px;
    border-color: rgba(79, 42, 112, .18);
    font-weight: 700;
}

.internal-impersonation-select {
    max-width: 280px;
}

.internal-impersonation-submit {
    border-radius: 999px;
    background: #4f2a70;
    color: #fff;
    font-weight: 800;
    padding-inline: 16px;
}

.internal-impersonation-submit:hover,
.internal-impersonation-submit:focus {
    background: #613481;
    color: #fff;
}

.internal-impersonation-error {
    color: #8f1d1d;
    font-weight: 800;
}

.seller-body {
    overflow-x: hidden;
}

.seller-body .admin-brand img {
    width: auto;
    height: 86px;
    max-width: 300px;
    object-fit: contain;
    filter: none;
}

.seller-body .admin-brand {
    min-width: 0;
}

.seller-body .navbar-text {
    color: #4f2a70 !important;
    font-weight: 800;
}

.user-menu-button {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(79, 42, 112, .16);
    border-radius: 50%;
    background: #fff7f0;
    color: #4f2a70;
    display: grid;
    place-items: center;
    padding: 0;
    box-shadow: 0 10px 22px rgba(38, 28, 42, .1);
}

.user-menu-button::after {
    display: none;
}

.user-menu-button svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.user-menu-button:hover,
.user-menu-button:focus {
    border-color: #d46336;
    color: #d46336;
    background: #fff;
}

@media (min-width: 768px) {
    .seller-body .user-menu-button {
        transform: translateY(-4px);
    }
}

.seller-credits-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 13px;
    border: 1px solid rgba(20, 128, 72, .14);
    border-radius: 999px;
    background: #ddf8e7;
    color: #167247;
    font-size: .84rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(20, 128, 72, .12);
}

.seller-credits-chip:hover,
.seller-credits-chip:focus {
    border-color: rgba(20, 128, 72, .34);
    background: #d4f4df;
    outline: none;
}

.seller-credits-popover-modal {
    pointer-events: none;
}

.seller-credits-popover-modal .modal-dialog {
    position: fixed;
    top: var(--seller-credits-popover-top, 72px);
    left: var(--seller-credits-popover-left, auto);
    width: var(--seller-credits-popover-width, min(420px, calc(100vw - 24px)));
    max-width: calc(100vw - 24px);
    margin: 0;
    transform: none !important;
}

.seller-credits-popover-modal .modal-content {
    pointer-events: auto;
}

.seller-credits-breakdown-modal .modal-title {
    color: #2c173f;
    font-size: 1.05rem;
    font-weight: 900;
}

.seller-credits-breakdown-loading {
    padding: 20px 4px;
    color: #6e6575;
    font-weight: 800;
    text-align: center;
}

.seller-credits-breakdown-rows {
    display: grid;
    gap: 8px;
}

.seller-credits-breakdown-row,
.seller-credits-breakdown-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 12px;
    border-radius: 10px;
    font-size: .92rem;
}

.seller-credits-breakdown-row span,
.seller-credits-breakdown-total span {
    color: #5f5667;
    font-weight: 800;
}

.seller-credits-breakdown-row strong,
.seller-credits-breakdown-total strong {
    white-space: nowrap;
    font-weight: 950;
}

.seller-credits-breakdown-row.is-credit {
    background: #e6f8ed;
    color: #167247;
}

.seller-credits-breakdown-row.is-debit {
    background: #fff0f3;
    color: #b4233c;
}

.seller-credits-breakdown-row.is-summary {
    margin-top: 4px;
    border: 1px dashed rgba(79, 42, 112, .2);
    background: #fbf8ff;
    color: #2c173f;
}

.seller-credits-breakdown-total {
    margin-top: 12px;
    border: 1px solid rgba(20, 128, 72, .16);
    background: #ddf8e7;
    color: #167247;
}

#billingBalanceTopupSection {
    scroll-margin-top: 92px;
}

.seller-menu-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.seller-menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    min-width: 1.35rem;
    color: #51256f;
    font-size: 0.95rem;
}

.seller-menu-icon svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

.seller-menu-frame-modal .modal-dialog {
    max-width: min(1040px, calc(100vw - 32px));
}

.seller-menu-frame-modal .modal-content {
    overflow: hidden;
    border: 1px solid rgba(63, 30, 74, 0.12);
}

.seller-menu-frame-modal .modal-header {
    min-height: 58px;
    padding: 14px 20px;
    background: #fff;
}

.seller-menu-frame-modal .modal-title {
    color: #2b093b;
    font-size: 1.05rem;
    font-weight: 800;
}

.seller-menu-frame-modal .modal-body {
    min-height: 360px;
    background: #fffaf6;
    position: relative;
}

.seller-menu-frame {
    display: block;
    width: 100%;
    height: min(76vh, 760px);
    border: 0;
    background: #fffaf6;
}

.seller-menu-frame-loading {
    display: flex;
    min-height: 360px;
    align-items: center;
    justify-content: center;
    color: #4b1c5f;
    font-weight: 800;
}

.seller-menu-frame-loading::before {
    content: "";
    width: 22px;
    height: 22px;
    margin-right: 10px;
    border: 3px solid rgba(75, 28, 95, 0.16);
    border-top-color: #4b1c5f;
    border-radius: 999px;
    animation: clip-upload-spin 0.75s linear infinite;
}

.seller-modal-embedded-body {
    margin: 0;
    background: transparent;
}

.seller-modal-embedded-body .seller-settings-card {
    border: 0;
    box-shadow: none;
    margin: 0;
}

.seller-modal-embedded-body .seller-preferences-page {
    min-height: 0;
    background: transparent;
}

.seller-plan-upgrade-message {
    font-size: 0.75rem;
    line-height: 1.35;
}

.seller-plan-upgrade-modal {
    z-index: 2100;
}

.seller-plan-upgrade-modal + .modal-backdrop {
    z-index: 2099;
}

.seller-modal-embedded-body .seller-preferences-embedded {
    display: block;
    position: static;
    width: 100%;
}

.seller-modal-embedded-body .seller-preferences-modal .modal-dialog {
    margin: 0 auto;
}

.seller-modal-embedded-body .seller-preferences-modal .modal-content {
    border-color: transparent;
    box-shadow: none;
}

.seller-modal-embedded-body .seller-preferences-modal .modal-header {
    display: none;
    background: #fff;
}

.seller-modal-embedded-body .seller-preferences-modal .modal-body {
    background: #fff;
    max-height: none;
    overflow: visible;
}

.seller-modal-embedded-body .seller-preferences-embedded .modal-dialog {
    max-width: 100%;
    margin: 0;
}

.seller-modal-embedded-body .seller-preferences-embedded .modal-content.clip-advanced-modal {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.seller-preference-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgba(81, 37, 111, 0.14);
    border-radius: 18px;
    background: rgba(255, 251, 247, 0.75);
}

.seller-preferences-page {
    min-height: calc(100vh - 90px);
}

.seller-preferences-modal .modal-dialog {
    max-width: min(980px, calc(100vw - 32px));
}

.seller-preferences-modal .modal-content {
    border: 1px solid rgba(81, 37, 111, 0.12);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(29, 20, 37, 0.18);
    overflow: hidden;
}

.seller-preferences-modal .modal-header {
    align-items: flex-start;
    padding: 1.35rem 1.5rem 1.05rem;
    border-bottom: 1px solid rgba(81, 37, 111, 0.1);
    background: linear-gradient(135deg, rgba(81, 37, 111, 0.08), rgba(213, 83, 35, 0.08));
}

.seller-preferences-modal .modal-title {
    color: #2d123f;
    font-size: 1.45rem;
    font-weight: 900;
    margin: 0;
}

.seller-preferences-modal .modal-header p {
    color: #7b6f7c;
    margin: 0.25rem 0 0;
}

.seller-preferences-modal .modal-body {
    padding: 1.4rem 1.5rem;
}

.seller-preferences-modal .modal-footer {
    padding: 1rem 1.5rem 1.25rem;
    border-top: 0;
}

.seller-preference-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem;
    border: 1px solid rgba(81, 37, 111, 0.14);
    border-radius: 18px;
    background: #fffaf6;
    box-shadow: 0 12px 30px rgba(81, 37, 111, 0.08);
}

.seller-preference-copy .form-label {
    color: #2d123f;
    font-weight: 900;
    margin-bottom: 0.25rem;
}

.seller-preference-copy p {
    color: #7b6f7c;
    margin: 0;
}

.preference-switch {
    margin: 0;
    flex: 0 0 auto;
}

.seller-preference-stack {
    align-items: stretch;
    flex-direction: column;
}

.preferences-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.preferences-voice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.preference-field {
    display: grid;
    gap: 6px;
}

.preference-field span {
    color: #2d123f;
    font-size: 0.82rem;
    font-weight: 900;
}

.preference-wide {
    grid-column: 1 / -1;
}

.clip-music-fields {
    display: grid;
    gap: 8px;
}

.clip-music-toggle-bra {
    width: 100%;
}

.clip-voice-language-title {
    color: #2d123f;
    font-size: 0.9rem;
    font-weight: 900;
    margin: 8px 0 0;
}

.clip-voice-language-title.clip-voice-language-highlight {
    color: #7b2f74;
}

.seller-preference-config-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

@media (max-width: 575.98px) {
    .seller-preferences-page {
        min-height: 100dvh;
    }

    .seller-preferences-modal .modal-dialog {
        max-width: calc(100vw - 12px);
        margin: 6px auto;
    }

    .seller-preferences-modal .modal-content {
        max-height: calc(100dvh - 12px);
        border-radius: 18px;
    }

    .seller-preferences-modal .modal-header {
        padding: 12px 14px 10px;
    }

    .seller-preferences-modal .modal-header p {
        font-size: .84rem;
        line-height: 1.25;
    }

    .seller-preferences-modal .modal-body {
        max-height: calc(100dvh - 132px);
        overflow-y: auto;
        padding: 12px 10px;
    }

    .seller-preferences-modal .modal-footer {
        padding: 10px 12px 12px;
    }

    .seller-preferences-modal .clip-advanced-section {
        gap: 10px;
        padding: 11px 10px;
        border-radius: 12px;
    }

    .seller-preferences-modal .clip-advanced-section > .clip-subtitle-config,
    .seller-preferences-modal .clip-advanced-section > .clip-cta-help {
        margin-top: 0;
    }

    .seller-preferences-modal .seller-preference-toggle {
        width: 100%;
        max-width: 100%;
    }

    .seller-preferences-modal .seller-preference-config-stack {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }

    .seller-preferences-modal .clip-subtitle-config {
        width: 100%;
        min-height: 38px;
    }

    .seller-preferences-modal .clip-cta-toggle {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .seller-preferences-modal .clip-cta-help {
        font-size: .82rem;
        line-height: 1.25;
    }

    .seller-preferences-modal .clip-subtitle-config-grid {
        gap: 12px;
    }

    .seller-preferences-modal .clip-subtitle-nudge {
        justify-content: center;
    }

    .seller-preference-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .preferences-grid,
    .preferences-voice-grid {
        grid-template-columns: 1fr;
    }
}

.seller-credits-chip.is-updating {
    opacity: .72;
}

.seller-user-dropdown {
    min-width: 210px;
    padding: 10px;
    border: 1px solid rgba(79, 42, 112, .1);
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(38, 28, 42, .16);
}

.seller-user-dropdown .dropdown-item {
    border-radius: 12px;
    color: #2c173f;
    font-weight: 800;
    padding: 10px 12px;
}

.seller-user-dropdown .dropdown-item:hover,
.seller-user-dropdown .dropdown-item:focus {
    background: #fff0e8;
    color: #4f2a70;
}

#page-wrapper {
    min-height: calc(100vh - 64px);
    background: #f6f3ec;
    padding: 24px;
}

.side-nav {
    background: #1e1727;
    color: #fff;
    z-index: 1020;
}

.side-menu .nav-link {
    color: #d7cedf;
    border-radius: 16px;
}

.side-menu .nav-link:hover,
.side-menu .nav-link:focus,
.side-menu .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, .1);
}

.page-title {
    margin-bottom: 18px;
    border-bottom: 0;
    background: #fff;
    border-radius: 24px;
    padding: 20px 24px;
    box-shadow: 0 14px 36px rgba(38, 28, 42, .08);
}

.page-title h1 {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
    color: #2c173f;
}

.page-title p {
    color: #777;
    margin: 4px 0 12px;
}

@media (min-width: 992px) {
    #wrapper {
        padding-left: 252px;
    }

    #wrapper.seller-wrapper {
        padding-left: 0;
    }

    .side-nav {
        position: fixed;
        top: 64px;
        left: 0;
        width: 252px;
        height: calc(100vh - 64px);
        padding: 18px 14px 14px;
        display: block;
        border-right: 1px solid rgba(255, 255, 255, .08);
        box-shadow: 18px 0 36px rgba(38, 28, 42, .18);
        overflow-y: auto;
    }

    .side-brand {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 104px;
        margin-bottom: 12px;
        border-radius: 24px;
        background: #f2eee5;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .65);
    }

    .side-brand img {
        width: 176px;
        height: auto;
        display: block;
    }

    .side-menu {
        display: block;
    }

    .side-menu .nav-item {
        width: 100%;
    }

    .side-menu .nav-link {
        padding: 12px 18px;
        margin-bottom: 4px;
    }
}

.seller-wrapper #page-wrapper {
    padding: 34px 24px 24px;
}

.seller-view-panel[hidden] {
    display: none !important;
}

.seller-mode-toggle {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    width: min(100%, 460px);
    padding: 5px;
    border: 1px solid rgba(79, 42, 112, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .82);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), 0 10px 24px rgba(38, 28, 42, .08);
}

.seller-mode-toggle-button {
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #6b5d6d;
    font-weight: 850;
    line-height: 1.1;
    padding: 9px 14px;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.seller-mode-toggle-button.is-active {
    background: linear-gradient(135deg, #4f2a70, #d45722);
    color: #fff;
    box-shadow: 0 10px 22px rgba(79, 42, 112, .2);
}

.seller-mode-toggle-button:focus-visible {
    outline: 3px solid rgba(212, 87, 34, .28);
    outline-offset: 2px;
}

@media (max-width: 991.98px) {
    .seller-body .navbar-toggler {
        display: none;
    }

    .seller-body #adminNavbar {
        display: flex !important;
        flex-basis: auto;
        flex-grow: 0;
    }

    .seller-body .top-nav {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .seller-body .navbar-text {
        max-width: 36vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .side-brand {
        display: none;
    }

    .side-nav {
        width: 100%;
        padding: 10px 16px;
        box-shadow: 0 14px 30px rgba(38, 28, 42, .16);
    }

    .side-menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .side-menu .nav-link {
        padding: 9px 12px;
        background: rgba(255, 255, 255, .08);
    }

    .table-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .seller-publications-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .seller-publications-filter-group {
        margin-left: 0;
        max-width: none;
    }

    .seller-publications-filter-group .table-filter {
        max-width: none;
        min-width: 0;
    }

    .parameters-filters {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .clip-generation-modal .modal-body {
        grid-template-columns: 1fr;
    }

    .seller-table-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .seller-pagination-pages {
        justify-content: center;
    }

    .category-prompts-toolbar,
    .category-prompts-actions,
    .category-prompts-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .category-prompts-actions .table-filter {
        max-width: none;
    }

    .seller-own-products-actions {
        margin-left: 0;
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .admin-body {
        padding-top: 58px;
    }

    .admin-navbar {
        min-height: 58px;
    }

    .seller-body {
        padding-top: 96px;
    }

    .internal-impersonation-body.seller-body {
        padding-top: 168px;
    }

    .seller-body .admin-navbar {
        min-height: 96px;
    }

    .internal-impersonation-body .admin-navbar {
        top: 72px;
    }

    .internal-impersonation-bar {
        min-height: 72px;
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
        padding: 8px 12px;
    }

    .internal-impersonation-message {
        white-space: normal;
        font-size: .9rem;
    }

    .internal-impersonation-form {
        width: 100%;
        max-width: none;
    }

    .internal-impersonation-input {
        min-width: 0;
        flex: 1;
    }

    .seller-body .admin-brand img {
        width: auto;
        height: 68px;
        max-width: 220px;
    }

    .brand-beta-badge {
        margin-left: 6px;
        padding: 3px 7px;
        font-size: .66rem;
    }

    .seller-wrapper #page-wrapper,
    #page-wrapper {
        padding: 14px 10px 12px;
        max-width: 100vw;
        overflow-x: hidden;
    }

    #page-wrapper main.container-fluid {
        padding-left: 0;
        padding-right: 0;
    }

    .page-title {
        margin-bottom: 12px;
        border-radius: 18px;
        padding: 12px;
    }

    .seller-mode-toggle {
        width: 100%;
        border-radius: 18px;
        min-width: 0;
    }

    .seller-mode-toggle-button {
        min-width: 0;
        min-height: 40px;
        border-radius: 14px;
        font-size: .9rem;
        padding: 8px 10px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .page-title h1 {
        font-size: 22px;
    }

    .page-title p {
        margin-bottom: 0;
        font-size: .9rem;
    }

    .seller-publications-card,
    .seller-settings-card {
        border-radius: 18px;
        padding: 12px;
    }

    .seller-publications-actions {
        padding: 12px;
        border-radius: 16px;
    }

    .generate-clips-button {
        width: 100%;
    }

    .seller-publications-filter-group {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 42px;
        width: 100%;
        gap: 10px;
    }

    .seller-filter-field {
        grid-column: 1 / -1;
        width: 100%;
    }

    .seller-login-filter,
    .seller-clip-filter,
    .seller-text-filter-field,
    .seller-publications-filter-group .table-filter {
        width: 100%;
        min-width: 0;
    }

    .seller-clip-toggle {
        width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        border-radius: 16px;
    }

    .seller-clip-toggle-button {
        min-width: 0;
        padding: 0 6px;
        font-size: .72rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .seller-text-filter-field {
        grid-column: 1;
    }

    .seller-publications-search-button {
        grid-column: 2;
        align-self: end;
    }

    .seller-own-products-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .seller-publications-table-wrap {
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        overflow: visible;
    }

    .seller-posts-table,
    .seller-posts-table tbody,
    .seller-posts-table tr,
    .seller-posts-table td,
    .seller-own-products-table,
    .seller-own-products-table tbody,
    .seller-own-products-table tr,
    .seller-own-products-table td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .seller-posts-table thead,
    .seller-own-products-table thead {
        display: none;
    }

    .seller-posts-table tbody tr,
    .seller-own-products-table tbody tr {
        display: grid;
        grid-template-columns: 28px 76px minmax(0, 1fr);
        grid-template-areas:
            "select image title"
            "select image code"
            "status status status"
            "actions actions clips";
        gap: 8px 10px;
        margin-bottom: 12px;
        padding: 12px;
        border: 1px solid #eadfd6;
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 10px 24px rgba(38, 28, 42, .07);
    }

    .seller-own-products-table tbody tr {
        grid-template-columns: 86px minmax(0, 1fr) 92px;
        grid-template-areas:
            "image title clips";
        align-items: center;
    }

    .seller-posts-table tbody td,
    .seller-own-products-table tbody td {
        border: 0;
        padding: 0 !important;
        text-align: left !important;
    }

    .publication-select-cell {
        grid-area: select;
        width: auto;
        min-width: 0;
        max-width: none;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .publication-image-cell {
        grid-area: image;
    }

    .seller-own-products-table td:nth-child(1) {
        grid-area: image;
    }

    .seller-own-products-table td:nth-child(2) {
        grid-area: title;
    }

    .seller-own-products-table td:nth-child(3) {
        grid-area: clips;
        justify-self: end;
    }

    .post-image-button,
    .post-image-placeholder,
    .own-product-thumb-button,
    .own-product-thumb {
        width: 76px;
        height: 76px;
        border-radius: 16px;
        margin: 0;
    }

    .seller-post-title {
        grid-area: title;
        min-width: 0;
        max-width: none;
        color: #2c173f;
        font-size: .98rem;
        font-weight: 800;
        line-height: 1.25;
    }

    .own-product-title-cell {
        min-width: 0;
        font-size: .96rem;
        line-height: 1.25;
    }

    .own-product-title-cell strong {
        display: block;
        overflow-wrap: anywhere;
    }

    .own-product-error {
        max-width: none;
        font-size: .78rem;
    }

    .publication-code-cell {
        grid-area: code;
        color: #766b75;
        font-size: .82rem;
        font-weight: 800;
        overflow-wrap: anywhere;
    }

    .publication-status-cell {
        grid-area: status;
        width: auto;
        min-width: 0;
        padding-top: 4px !important;
    }

    .publication-actions-cell {
        grid-area: actions;
        display: flex !important;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
    }

    .publication-actions-cell::before,
    .publication-clips-cell::before {
        color: #766b75;
        font-size: .72rem;
        font-weight: 900;
        text-transform: uppercase;
    }

    .publication-actions-cell::before {
        content: "Generar";
    }

    .publication-clips-cell {
        grid-area: clips;
        display: grid !important;
        justify-items: end;
        gap: 5px;
        width: auto;
        min-width: 0;
    }

    .own-product-clip-layout {
        display: grid !important;
        justify-items: end;
        gap: 5px;
        min-width: 0;
    }

    .publication-clips-cell::before {
        content: "Clips";
        justify-self: end;
    }

    .klipia-action-button {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .clip-preview {
        max-width: 76px;
    }

    .clip-preview video {
        width: 64px;
        border-radius: 10px;
    }

    .clip-download-button,
    .clip-upload-button {
        width: 64px;
        height: 26px;
        border-radius: 8px;
    }

    .clip-nav-button {
        width: 22px;
        height: 22px;
    }

    .clip-expand-button {
        width: 24px;
        height: 24px;
        top: -7px;
        left: -7px;
    }

    .seller-table-pagination {
        padding: 12px;
        border-radius: 16px;
    }

    .seller-page-size {
        justify-content: center;
    }

    .seller-pagination-button {
        min-width: 34px;
        min-height: 34px;
        font-size: .78rem;
    }

    .settings-header {
        flex-direction: column;
    }

    .settings-header .btn {
        width: 100%;
    }

    .seller-settings-table-wrap {
        border-radius: 16px;
    }
}

@media (max-width: 575.98px) {
    .user-menu-button {
        width: 40px;
        height: 40px;
    }

    .seller-body .navbar-text {
        display: none;
    }

    .seller-body .admin-navbar .container-fluid {
        gap: 8px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .seller-body .admin-brand img {
        height: 56px;
        max-width: 184px;
    }

    .seller-credits-chip {
        min-height: 30px;
        padding: 6px 9px;
        font-size: .74rem;
    }

    .seller-user-dropdown {
        min-width: min(220px, calc(100vw - 24px));
    }

    .image-zoom-modal .modal-body {
        min-height: 320px;
        padding: 18px 54px;
    }

    .image-gallery-nav {
        width: 38px;
        height: 38px;
    }

    .image-gallery-prev {
        left: 8px;
    }

    .image-gallery-next {
        right: 8px;
    }

    .image-gallery-footer .image-gallery-counter {
        position: static;
        transform: none;
    }

    .clip-generation-modal .modal-dialog,
    .avatar-picker-modal .modal-dialog,
    .clip-preview-modal .modal-dialog,
    .clip-debug-modal .modal-dialog {
        margin: 8px;
    }

    .clip-generation-modal .modal-body {
        gap: 14px;
        min-height: 0;
        padding: 14px;
    }

    .clip-generation-product,
    .clip-generation-avatar,
    .clip-generation-submit {
        min-height: 0;
    }

    .clip-generation-product img,
    .clip-generation-avatar-frame {
        height: min(170px, 38vh);
        max-width: min(220px, 100%);
    }

    .clip-generation-avatar img {
        height: 100%;
        max-width: 100%;
    }

    .clip-generation-avatar {
        grid-template-rows: auto auto;
    }

    .clip-generate-button {
        max-width: min(220px, 100%);
        height: min(170px, 38vh);
    }

    .clip-bulk-count {
        font-size: 1.05rem;
        padding: 16px;
    }

    .clip-generation-message,
    .clip-generation-progress,
    .clip-debug-open {
        max-width: min(220px, 100%);
    }

    .seller-posts-table tbody tr {
        grid-template-columns: 26px 68px minmax(0, 1fr);
        gap: 8px;
        padding: 10px;
    }

    .seller-own-products-table tbody tr {
        grid-template-columns: 76px minmax(0, 1fr);
        grid-template-areas:
            "image title"
            "clips clips";
    }

    .seller-own-products-table td:nth-child(3) {
        justify-self: stretch;
    }

    .own-product-clip-layout {
        justify-items: start;
        padding-top: 6px !important;
    }

    .post-image-button,
    .post-image-placeholder,
    .own-product-thumb-button,
    .own-product-thumb {
        width: 68px;
        height: 68px;
        border-radius: 14px;
    }

    .publication-clips-cell {
        justify-items: start;
    }

    .publication-clips-cell::before {
        justify-self: start;
    }

    .avatar-picker-modal .modal-body {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 14px;
    }

    .clip-preview-modal .modal-body {
        min-height: 62vh;
    }

    .clip-preview-modal video {
        max-height: 62vh;
    }
}

.admin-panel {
    min-height: 126px;
    border-radius: 24px;
    padding: 22px;
    color: #fff;
    box-shadow: 0 18px 34px rgba(38, 28, 42, .16);
    position: relative;
    overflow: hidden;
}

.admin-metrics-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, 1fr);
    gap: 12px;
    margin-bottom: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.admin-metric-item {
    min-width: 190px;
}

.admin-panel::after {
    content: "";
    position: absolute;
    right: -34px;
    top: -34px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
}

.metric-value {
    font-size: 42px;
    line-height: 1;
    font-weight: 700;
}

.metric-label {
    font-size: 15px;
    font-weight: 700;
}

.admin-panel small {
    opacity: .85;
}

.panel-primary {
    background: linear-gradient(135deg, #4f2a70, #74335f);
}

.panel-green {
    background: linear-gradient(135deg, #31785a, #59a676);
}

.panel-yellow {
    background: linear-gradient(135deg, #d25a2a, #e2843f);
}

.panel-red {
    background: linear-gradient(135deg, #994050, #c54f43);
}

.admin-card {
    background: #fff;
    border: 1px solid rgba(38, 28, 42, .06);
    border-radius: 24px;
    box-shadow: 0 18px 44px rgba(38, 28, 42, .1);
    overflow: hidden;
    font-size: 1.03rem;
}

.admin-tabs {
    padding: 14px 18px 0;
    border-bottom-color: #eadfd6;
}

.admin-tabs-menu-driven {
    display: none;
}

.admin-tabs .nav-link {
    border-radius: 999px;
    color: #6a5d68;
    margin-right: 8px;
    border: 1px solid transparent;
}

.admin-tabs .nav-link.active {
    color: #4f2a70;
    background: #f3e8e3;
    border-color: #eadfd6;
    font-weight: 700;
}

.admin-tab-content {
    border: 0;
    padding: 20px;
    background: #fff;
}

.table-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.table-toolbar h4 {
    margin: 0;
}

.admin-report-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.admin-report-grid-secondary {
    grid-template-columns: minmax(320px, .85fr) minmax(420px, 1.15fr);
}

.admin-report-panel {
    border: 1px solid #eadfd6;
    border-radius: 18px;
    padding: 16px;
    background: #fffaf7;
}

.admin-report-panel-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.admin-report-panel-title h5 {
    margin: 0;
    color: #2f103f;
    font-weight: 800;
}

.admin-report-panel-title span {
    color: #746475;
    font-size: .86rem;
    white-space: nowrap;
}

.admin-report-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4f2a70;
    font-size: .82rem;
    font-weight: 800;
    cursor: pointer;
    user-select: none;
}

.admin-report-toggle input {
    width: 40px;
    height: 22px;
    appearance: none;
    border-radius: 999px;
    border: 1px solid #dccfc7;
    background: #fff;
    position: relative;
    transition: background .16s ease, border-color .16s ease;
}

.admin-report-toggle input::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #8a7a8a;
    transition: transform .16s ease, background .16s ease;
}

.admin-report-toggle input:checked {
    border-color: #6e3a7d;
    background: #f3e8e3;
}

.admin-report-toggle input:checked::after {
    transform: translateX(18px);
    background: #6e3a7d;
}

.admin-mini-chart {
    display: grid;
    grid-template-columns: repeat(30, minmax(12px, 1fr));
    align-items: end;
    gap: 5px;
    height: 210px;
    padding-top: 8px;
}

.admin-mini-chart-bar {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
    height: 100%;
    min-width: 0;
}

.admin-mini-chart-bar span {
    display: block;
    min-height: 4px;
    border-radius: 999px 999px 4px 4px;
    background: linear-gradient(180deg, #30a76c, #5ed594);
}

.admin-mini-chart-sellers .admin-mini-chart-bar span {
    background: linear-gradient(180deg, #6e3a7d, #c95b3a);
}

.admin-mini-chart-bar small {
    color: #82727f;
    font-size: .66rem;
    line-height: 1;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.admin-top-users {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-top-user-row {
    display: grid;
    grid-template-columns: minmax(150px, 1.1fr) minmax(90px, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.admin-top-user-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-top-user-meta strong,
.admin-top-user-meta small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-top-user-meta small {
    color: #746475;
}

.admin-top-user-bar {
    height: 10px;
    border-radius: 999px;
    background: #f0e8e2;
    overflow: hidden;
}

.admin-top-user-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #6e3a7d, #c95b3a);
}

.admin-top-user-value {
    min-width: 34px;
    text-align: right;
    color: #2f103f;
    font-weight: 800;
}

.admin-report-table {
    font-size: .92rem;
}

.admin-usage-pagination {
    margin-top: 12px;
}

.admin-usage-clips-row td {
    padding: 12px 18px !important;
    background: #fffaf6 !important;
}

.admin-usage-clip-table {
    background: transparent;
}

.admin-usage-clip-table > :not(caption) > * > * {
    background: transparent;
}

.admin-usage-clip-table .admin-comment-clip-preview {
    width: 21px;
}

#admin-usage-report-table .admin-comment-clip-preview {
    width: 37px;
    border-radius: 6px;
}

#admin-usage-report-table .admin-comment-clip-expand {
    top: 2px;
    right: 2px;
    width: 17px;
    height: 17px;
}

#admin-usage-report-table .admin-comment-clip-expand svg {
    width: 10px;
    height: 10px;
}

.admin-usage-clip-table .admin-comment-clip-expand {
    top: 1px;
    right: 1px;
    width: 15px;
    height: 15px;
}

.admin-usage-clip-table .admin-comment-clip-expand svg {
    width: 9px;
    height: 9px;
}

.commercial-prospects-table-wrap {
    border: 1px solid #eadfd6;
    border-radius: 8px;
    background: #fff;
}

.commercial-prospects-table {
    margin-bottom: 0;
}

.commercial-prospects-table th {
    color: #4b3b53;
    font-size: 0.78rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.commercial-table-actions {
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .admin-report-grid,
    .admin-report-grid-secondary {
        grid-template-columns: 1fr;
    }

    .admin-mini-chart {
        overflow-x: auto;
        grid-template-columns: repeat(30, minmax(18px, 1fr));
    }
}

@media (max-width: 767.98px) {
    .admin-report-panel {
        padding: 12px;
        border-radius: 14px;
    }

    .admin-report-panel-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .admin-top-user-row {
        grid-template-columns: 1fr auto;
    }

    .admin-top-user-bar {
        grid-column: 1 / -1;
        order: 3;
    }
}

.seller-publications-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 14px;
    border: 1px solid #efe4dd;
    border-radius: 18px;
    background: #fffaf6;
}

.seller-publications-filter-group {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 8px;
    flex: 1;
    max-width: none;
    margin-left: auto;
}

.seller-filter-field {
    display: grid;
    gap: 4px;
    margin: 0;
}

.seller-filter-field span {
    color: #4f2a70;
    font-size: .76rem;
    font-weight: 900;
    line-height: 1;
    padding-left: 12px;
}

.seller-login-filter,
.seller-clip-filter {
    width: 190px;
    min-height: 42px;
    border-radius: 999px;
    border-color: #eadfd6;
    color: #4f2a70;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(79, 42, 112, .05);
}

.seller-clip-toggle {
    display: inline-grid;
    grid-template-columns: repeat(3, auto);
    align-items: center;
    min-height: 42px;
    padding: 3px;
    border: 1px solid #eadfd6;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(79, 42, 112, .05);
}

.seller-clip-toggle-button {
    min-height: 34px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #4f2a70;
    font-size: .78rem;
    font-weight: 900;
    padding: 0 12px;
    white-space: nowrap;
}

.seller-clip-toggle-button.is-active {
    background: linear-gradient(120deg, #4f2a70, #d85a2a);
    color: #fff;
    box-shadow: 0 8px 18px rgba(79, 42, 112, .16);
}

.seller-clip-filter {
    width: 150px;
}

.seller-text-filter-field {
    width: 320px;
    min-width: 220px;
}

.seller-search-import-wrap {
    position: relative;
    display: block;
    width: 100%;
}

.seller-search-import-wrap .table-filter {
    padding-right: 92px;
}

.seller-import-publication-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #6f2d74, #d35a2f);
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    min-height: 32px;
    padding: 0 14px;
    box-shadow: 0 8px 18px rgba(79, 42, 112, .18);
}

.seller-import-publication-button:disabled {
    opacity: .75;
}

.table-filter {
    max-width: 320px;
    border-radius: 999px;
    min-height: 42px;
    border-color: #eadfd6;
    box-shadow: 0 8px 18px rgba(79, 42, 112, .05);
}

.seller-publications-filter-group .table-filter {
    width: 100%;
    max-width: 320px;
    min-width: 0;
}

.seller-advanced-filters-toggle {
    width: 42px;
    min-width: 42px;
    height: 42px;
    border-radius: 999px;
    border-color: #eadfd6;
    background: #fff;
    color: #4f2a70;
    display: inline-grid;
    place-items: center;
    box-shadow: 0 8px 18px rgba(79, 42, 112, .05);
}

.seller-advanced-filters-toggle svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.seller-advanced-filters-toggle.is-active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(120deg, #4f2a70, #d85a2a);
}

.seller-numeric-filters {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.seller-number-filter-field {
    width: 128px;
}

.seller-number-filter {
    min-height: 42px;
    border-radius: 999px;
    border-color: #eadfd6;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(79, 42, 112, .05);
}

.seller-own-products-actions {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
    min-width: min(100%, 520px);
}

.own-products-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

.own-products-title-row .section-help {
    margin-bottom: 0;
}

.own-products-title-row .generate-clips-button {
    min-height: 38px;
    padding: 9px 18px;
}

.seller-publications-clear-button,
.seller-publications-search-button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border-color: #eadfd6;
    background: #fff;
    color: #4f2a70;
    display: grid;
    place-items: center;
    padding: 0;
    box-shadow: 0 8px 18px rgba(79, 42, 112, .05);
}

.seller-publications-clear-button {
    width: auto;
    min-width: 78px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 900;
}

.seller-publications-clear-button:hover,
.seller-publications-clear-button:focus,
.seller-publications-search-button:hover,
.seller-publications-search-button:focus {
    border-color: #d46336;
    background: #fff7f0;
    color: #4f2a70;
}

.seller-publications-search-button svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.generate-clips-button {
    min-height: 42px;
    padding-inline: 22px;
    border-radius: 999px;
    white-space: nowrap;
}

.parameters-filters {
    display: grid;
    grid-template-columns: minmax(150px, 190px) minmax(150px, 220px) minmax(190px, 260px) auto;
    gap: 10px;
    align-items: end;
    max-width: 820px;
    width: 100%;
}

.parameters-filters .form-label {
    margin-bottom: 4px;
    color: #6c5f72;
    font-size: 12px;
    font-weight: 700;
}

.parameters-filters .form-control,
.parameter-clear-filters {
    border-radius: 999px;
    min-height: 42px;
}

.parameters-filters .table-filter {
    max-width: none;
}

.parameter-clear-filters {
    padding-inline: 18px;
    border-color: #eadfd6;
}

.category-prompts-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 1;
}

.category-prompts-actions .table-filter {
    max-width: 360px;
}

.section-help {
    margin: 2px 0 0;
    color: #766b75;
}

.admin-table {
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table thead th {
    color: #5f5160;
    background: #fbf8f4;
    border-bottom: 1px solid #eadfd6;
    font-size: 13px;
    text-transform: uppercase;
}

.admin-table tbody tr {
    transition: background .15s ease, transform .15s ease;
}

.admin-table tbody tr:hover {
    background: #fff7f2;
}

.admin-table td,
.admin-table th {
    padding: 12px 14px;
}

.modal-content {
    border: 0;
}

.admin-edit-modal {
    border: 1px solid rgba(79, 42, 112, .08);
    box-shadow: 0 24px 70px rgba(38, 28, 42, .18);
}

.admin-edit-modal .modal-header {
    background: linear-gradient(135deg, #fffaf6, #f3e8e3);
}

.admin-edit-modal .modal-title {
    color: #2c173f;
    font-weight: 800;
}

.admin-edit-modal .modal-body {
    background: #fffdf9;
}

.admin-edit-modal .form-label {
    margin-bottom: 6px;
    color: #4f2a70;
    font-size: 1.05em;
    font-weight: 800;
}

.admin-edit-modal .form-control,
.admin-edit-modal .form-select {
    min-height: 42px;
    border-color: #dbcfc5;
    background-color: #fff;
    box-shadow: 0 8px 18px rgba(79, 42, 112, .05);
}

.admin-edit-modal textarea.form-control {
    border-radius: 18px;
}

.modal-header,
.modal-footer {
    border-color: #f0e7df;
}

.form-control,
.form-select {
    border-radius: 14px;
    border-color: #e3d8cf;
}

.seller-active-switch {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 0 0 44px;
}

.seller-active-switch .form-check-input {
    width: 42px;
    height: 22px;
    margin-left: -44px;
    cursor: pointer;
}

.seller-active-switch .form-check-label {
    color: #5f5160;
    font-weight: 700;
}

.parameters-table-wrap {
    max-height: 58vh;
    overflow: auto;
}

.parameters-table-wrap thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

.category-prompts-table-wrap {
    border: 1px solid #eadfd6;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(38, 28, 42, .06);
    overflow: auto;
}

.category-prompts-table {
    margin-bottom: 0;
}

.category-prompts-toolbar {
    align-items: flex-start;
}

.category-prompts-heading {
    display: grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    column-gap: 12px;
}

.category-prompts-heading .section-help {
    grid-column: 1 / -1;
}

.category-prompts-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-prompts-filter {
    min-width: 260px;
}

.category-prompts-table thead th {
    background: #f9f3ed;
    font-weight: 800;
}

.category-prompts-table tbody td {
    border-bottom: 1px solid #f1e8e0;
}

.category-prompts-table tbody tr:last-child td {
    border-bottom: 0;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    max-width: 260px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eee5fb;
    color: #4f2a70;
    font-size: .78rem;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-prompt-text {
    max-width: 520px;
    color: #5f5160;
    line-height: 1.45;
    white-space: normal;
}

.category-prompts-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid #efe4dd;
    border-radius: 16px;
    background: #fffaf6;
}

.seller-publications-card {
    overflow: visible;
    padding: 18px;
}

.seller-settings-card {
    padding: 22px;
    overflow: visible;
}

.settings-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.settings-header h2 {
    margin: 0;
    color: #2c173f;
    font-size: 1.55rem;
    font-weight: 800;
}

.settings-header p {
    margin: 4px 0 0;
    color: #766b75;
    font-weight: 700;
}

.seller-settings-form {
    max-width: 920px;
}

.seller-settings-form .form-label,
.section-card .form-label {
    color: #4f2a70;
    font-weight: 800;
}

.seller-settings-form .form-control,
.section-card .form-control {
    min-height: 44px;
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(79, 42, 112, .05);
}

.seller-settings-table-wrap {
    border: 1px solid #eadfd6;
    border-radius: 18px;
    background: #fff;
    overflow: auto;
}

.seller-page-title-hidden {
    display: none !important;
}

.app-language-select {
    min-width: 74px;
    border-radius: 999px;
    border-color: rgba(255,255,255,.28);
    background-color: rgba(255,255,255,.92);
    color: #4f2a70;
    font-weight: 900;
}

.section-card {
    border: 1px solid #e7e2ec;
    border-radius: 18px;
    background: #fbfafc;
    padding: 1rem;
    box-shadow: 0 10px 24px rgba(38, 28, 42, .05);
}

.settings-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #eee5fb;
    color: #4f2a70;
    font-weight: 800;
}

.billing-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.billing-summary-card {
    border: 1px solid #eadfd6;
    border-radius: 20px;
    background: linear-gradient(135deg, #fffaf6, #f3e8e3);
    padding: 18px;
    box-shadow: 0 12px 28px rgba(38, 28, 42, .08);
}

.billing-summary-card span,
.billing-summary-card small {
    display: block;
    color: #766b75;
    font-weight: 800;
}

.billing-summary-card strong {
    display: block;
    margin: 8px 0;
    color: #2c173f;
    font-size: 1.45rem;
    font-weight: 900;
}

.billing-inline-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 14px 0;
    padding: 12px 16px;
    border: 1px solid #eadfd6;
    border-radius: 16px;
    background: #fffaf6;
    color: #4f2a70;
    font-weight: 800;
}

.billing-plans-section {
    margin: 22px 0;
    padding: 18px;
    border: 1px solid #eadfd6;
    border-radius: 20px;
    background: #fffaf6;
}

.billing-plans-header h3 {
    margin: 0;
    color: #2c173f;
    font-weight: 900;
}

.billing-plans-header p {
    margin: 4px 0 16px;
    color: #766b75;
    font-weight: 700;
}

.billing-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.billing-plan-card {
    min-height: 220px;
    border: 1px solid #eadfd6;
    border-radius: 18px;
    background: #fff;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 12px 26px rgba(38, 28, 42, .06);
}

.billing-plan-card.is-current {
    border-color: rgba(32, 163, 91, .44);
    background: #f5fcf7;
}

.billing-plan-card span {
    color: #d46336;
    font-size: .76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.billing-plan-card h4 {
    margin: 0;
    color: #2c173f;
    font-weight: 900;
}

.billing-plan-card p {
    margin: 0;
    color: #6d606e;
    font-size: .92rem;
    font-weight: 700;
}

.billing-plan-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.billing-plan-missing {
    color: #9a4b2f;
    font-weight: 800;
}

.billing-links {
    margin-top: 14px;
    display: flex;
    justify-content: center;
}

.billing-page {
    display: grid;
    gap: 18px;
}

.billing-dev-note {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 14px;
    border: 1px dashed #d9c9bc;
    border-radius: 14px;
    background: #fffaf6;
    color: #6d606e;
    font-size: .9rem;
    font-weight: 700;
}

.billing-dev-note strong {
    color: #4f2a70;
}

.billing-state-grid,
.billing-history-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.billing-history-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.billing-status-panel,
.billing-usage-panel,
.billing-period-panel,
.billing-current-plan-card,
.billing-balance-section,
.billing-actions-section,
.billing-history-card,
.billing-ui-states {
    border: 1px solid #eadfd6;
    border-radius: 18px;
    background: #fff;
    padding: 16px;
    box-shadow: 0 12px 26px rgba(38, 28, 42, .06);
}

.billing-panel-title,
.billing-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.billing-panel-title {
    display: grid;
}

.billing-panel-title span,
.billing-period-panel span,
.billing-section-heading p {
    color: #766b75;
    font-size: .86rem;
    font-weight: 800;
}

.billing-panel-title strong,
.billing-period-panel strong,
.billing-section-heading h3 {
    margin: 0;
    color: #2c173f;
    font-weight: 900;
}

.billing-period-panel {
    display: grid;
    align-content: start;
    gap: 8px;
}

.billing-period-panel small {
    color: #766b75;
    font-weight: 750;
}

.billing-alert-list {
    display: grid;
    gap: 8px;
}

.billing-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: .84rem;
    font-weight: 850;
}

.billing-alert.info {
    background: #e9f2ff;
    color: #255d98;
}

.billing-alert.warning {
    background: #fff3d6;
    color: #856111;
}

.billing-alert.danger {
    background: #fde4e4;
    color: #a93030;
}

.billing-alert.success {
    background: #e1f5e8;
    color: #176a3c;
}

.billing-feedback-message {
    font-size: 2em;
}

.billing-usage-bar {
    width: 100%;
    height: 14px;
    border-radius: 999px;
    background: #efe8e1;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(38, 28, 42, .12);
}

.billing-usage-bar div {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #20a35b, #d85a2a);
    transition: width .25s ease;
}

.billing-usage-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    color: #6d606e;
    font-size: .86rem;
    font-weight: 750;
}

.billing-current-plan-card {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(220px, .7fr);
    gap: 16px;
}

.billing-current-plan-card h4 {
    margin: 0;
    color: #2c173f;
    font-size: 1.35rem;
    font-weight: 950;
}

.billing-benefits-list,
.billing-plan-benefits {
    display: grid;
    gap: 6px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.billing-benefits-list li,
.billing-plan-benefits li {
    color: #554958;
    font-size: .9rem;
    font-weight: 750;
}

.billing-plan-meta,
.billing-current-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.billing-meta-pill,
.billing-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f1e9f6;
    color: #4f2a70;
    font-size: .78rem;
    font-weight: 900;
}

.billing-status-pill.success {
    background: #e1f5e8;
    color: #176a3c;
}

.billing-status-pill.warning {
    background: #fff3d6;
    color: #856111;
}

.billing-status-pill.danger {
    background: #fde4e4;
    color: #a93030;
}

.billing-cycle-toggle {
    display: inline-grid;
    grid-template-columns: repeat(2, auto);
    gap: 4px;
    padding: 4px;
    border: 1px solid #eadfd6;
    border-radius: 999px;
    background: #fff;
}

.billing-cycle-button {
    min-height: 34px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #4f2a70;
    font-weight: 900;
    padding: 0 14px;
}

.billing-cycle-button.is-active {
    background: linear-gradient(120deg, #4f2a70, #d85a2a);
    color: #fff;
}

.billing-plan-card {
    min-height: 260px;
}

.billing-plan-button {
    width: 100%;
    margin-top: auto;
}

.billing-plan-benefit-groups {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.billing-plan-benefit-groups h5 {
    margin: 4px 0 0;
    color: #2c173f;
    font-size: .86rem;
    font-weight: 950;
}

.billing-plan-benefit-groups .billing-plan-benefits {
    margin-top: 0;
}

.billing-plan-price {
    color: #2c173f;
    font-size: 1.45rem;
    font-weight: 950;
}

.billing-plan-card.is-recommended {
    border-color: rgba(212, 99, 54, .42);
    box-shadow: 0 16px 34px rgba(212, 99, 54, .12);
}

.billing-plan-card.is-next-highlight {
    position: relative;
    border-color: rgba(79, 42, 112, .62);
    box-shadow: 0 20px 44px rgba(79, 42, 112, .2), 0 0 0 4px rgba(212, 99, 54, .12);
    transform: translateY(-3px);
}

.billing-plan-card.is-custom {
    background: #fbf8ff;
}

.billing-balance-actions,
.billing-action-buttons,
.billing-state-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.billing-subscription-action-button {
    min-width: 210px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.billing-balance-actions {
    align-items: flex-end;
}

.billing-balance-actions [data-balance-amount].is-selected {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(90deg, #5b2374, #d4562f);
    box-shadow: 0 14px 28px rgba(91, 35, 116, 0.16);
}

.billing-custom-balance {
    display: grid;
    gap: 5px;
    min-width: 150px;
    margin: 0;
    color: #5b4f5e;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.billing-balance-estimate {
    margin-top: 10px;
    color: #6f6470;
    font-size: .92rem;
    font-weight: 700;
}

.billing-affiliate-section {
    border: 1px solid rgba(91, 35, 116, 0.14);
    border-radius: 18px;
    padding: 20px;
    background: #fffdfa;
    box-shadow: 0 18px 44px rgba(73, 42, 95, 0.08);
}

.billing-affiliate-section .billing-section-heading {
    justify-content: flex-start;
    align-items: center;
    gap: clamp(56px, 10vw, 180px);
}

.billing-affiliate-switch {
    position: relative;
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    min-width: 150px;
    padding: 4px;
    border: 1px solid rgba(91, 35, 116, 0.18);
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
}

.billing-affiliate-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.billing-affiliate-switch span,
.billing-affiliate-switch strong {
    border-radius: 999px;
    padding: 9px 18px;
    text-align: center;
    font-size: 0.85rem;
    color: #5b4365;
}

.billing-affiliate-switch input:checked ~ strong,
.billing-affiliate-switch:not(:has(input:checked)) span {
    color: #fff;
    background: linear-gradient(90deg, #5b2374, #d4562f);
}

.billing-affiliate-details {
    display: grid;
    gap: 14px;
}

.billing-affiliate-code {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    padding: 10px 14px;
    border-radius: 999px;
    background: #e7f7ec;
    color: #145c32;
}

.billing-affiliate-code span {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.billing-affiliate-code strong {
    font-size: 1rem;
    letter-spacing: 0.04em;
}

.billing-affiliate-steps {
    margin: 0;
    padding-left: 20px;
    color: #493a52;
}

.billing-affiliate-balance {
    display: grid;
    gap: 10px;
}

.billing-affiliate-balance > strong {
    color: #2c173f;
    font-size: 1rem;
    font-weight: 900;
}

.billing-affiliate-action-row {
    display: grid;
    grid-template-columns: 390px 150px 180px;
    gap: 16px;
    align-items: center;
    justify-content: flex-start;
    margin-left: 28px;
}

.billing-affiliate-action-row div {
    display: flex;
    align-items: center;
    min-height: 40px;
    width: 390px;
}

.billing-affiliate-action-row span,
.billing-affiliate-refunds {
    color: #786f7e;
    font-size: 0.9rem;
    white-space: nowrap;
}

.billing-affiliate-action-row input,
.billing-affiliate-action-row button {
    width: 100%;
    min-height: 40px;
}

.billing-affiliate-refunds {
    display: grid;
    gap: 6px;
}

.billing-affiliate-refunds div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid rgba(91, 35, 116, 0.08);
}

.billing-affiliate-choice {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

@media (max-width: 760px) {
    .billing-affiliate-action-row {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-left: 0;
    }

    .billing-affiliate-action-row div {
        min-height: auto;
        width: 100%;
    }
}

.billing-plan-benefits-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 420px;
}

.billing-plan-modal-row > td {
    height: 0;
    padding: 0 !important;
    border: 0 !important;
}

.billing-plan-benefits-preview span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #fff7ef;
    color: #5b2f65;
    font-size: .76rem;
    font-weight: 800;
}

.admin-avatar-thumb {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border: 1px solid #eadfd6;
    border-radius: 14px;
    background: #fffaf6;
    padding: 4px;
    box-shadow: 0 8px 18px rgba(38, 28, 42, .08);
}

.admin-avatar-view-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid #eadfd6;
    border-radius: 999px;
    background: #fffaf6;
    box-shadow: 0 8px 18px rgba(38, 28, 42, .06);
}

.admin-avatar-view-button {
    min-height: 34px;
    padding: 7px 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #5b2f65;
    font-size: .82rem;
    font-weight: 900;
}

.admin-avatar-view-button.is-active {
    color: #fff;
    background: linear-gradient(135deg, #50246c 0%, #d65626 100%);
    box-shadow: 0 10px 22px rgba(126, 54, 92, .2);
}

.admin-avatar-general-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.avatar-image-loading-frame {
    position: relative;
}

.avatar-image-loading-frame.is-loading img.avatar-loading-image {
    opacity: .28;
}

.avatar-image-loading-frame.is-loading::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 4;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid rgba(81, 37, 111, .18);
    border-top-color: #51256f;
    border-radius: 999px;
    animation: clip-upload-spin .75s linear infinite;
    pointer-events: none;
}

#avatars-table tbody tr.is-avatar-view-hidden {
    display: none;
}

.admin-avatar-gallery {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-avatar-gallery-button {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 24px;
    height: 24px;
    border: 1px solid #eadfd6;
    border-radius: 999px;
    background: #fff;
    color: #50246c;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(38, 28, 42, .12);
    transform: translateY(-50%);
}

.admin-avatar-gallery-prev {
    left: -10px;
}

.admin-avatar-gallery-next {
    right: -10px;
}

.avatar-edit-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid #eadfd6;
    border-radius: 18px;
    background: #fffaf6;
}

.avatar-edit-preview img {
    width: 92px;
    height: 92px;
    object-fit: contain;
    border-radius: 16px;
    background: #fff;
}

.avatar-edit-preview span {
    color: #6f6470;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.billing-status-badge {
    display: inline-flex;
    min-width: 82px;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.billing-status-badge.paid,
.billing-status-badge.success {
    background: #e1f5e8;
    color: #176a3c;
}

.billing-status-badge.pending {
    background: #fff3d6;
    color: #856111;
}

.billing-status-badge.failed,
.billing-status-badge.canceled {
    background: #fde4e4;
    color: #a93030;
}

.billing-empty-state,
.billing-action-state {
    padding: 14px;
    border: 1px dashed #d9c9bc;
    border-radius: 14px;
    background: #fffaf6;
    color: #766b75;
    font-weight: 800;
    text-align: center;
}

.billing-payment-options {
    display: grid;
    gap: 12px;
}

.billing-payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #eadfd6;
    border-radius: 14px;
    background: #fff;
    color: #3b293f;
    font-weight: 800;
    cursor: pointer;
}

.billing-payment-option .form-check-input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.billing-loading {
    min-height: 220px;
    display: grid;
    place-items: center;
    color: #4f2a70;
    font-weight: 900;
}

@media (max-width: 980px) {
    .billing-state-grid,
    .billing-history-grid,
    .billing-current-plan-card,
    .billing-plans-grid {
        grid-template-columns: 1fr;
    }

    .billing-panel-title,
    .billing-section-heading {
        display: grid;
    }
}

@media (max-width: 767.98px) {
    .billing-page {
        gap: 14px;
        padding: 14px 12px;
        overflow: hidden;
    }

    .billing-page .settings-header {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        align-items: start;
    }

    .billing-page .settings-header .btn {
        justify-self: start;
    }

    .billing-state-grid,
    .billing-history-grid,
    .billing-current-plan-card,
    .billing-plans-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .billing-status-panel,
    .billing-usage-panel,
    .billing-period-panel,
    .billing-current-plan-card,
    .billing-balance-section,
    .billing-actions-section,
    .billing-history-card,
    .billing-ui-states,
    .billing-affiliate-section {
        padding: 14px;
        border-radius: 16px;
        min-width: 0;
    }

    .billing-plans-section {
        margin: 12px 0;
        padding: 14px;
        border-radius: 16px;
        min-width: 0;
    }

    .billing-plans-header {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .billing-plans-header p {
        margin-bottom: 0;
        line-height: 1.3;
    }

    .billing-cycle-toggle {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .billing-cycle-button {
        min-width: 0;
        padding-inline: 8px;
    }

    .billing-plan-card {
        min-height: 0;
        width: 100%;
        gap: 9px;
    }

    .billing-plan-card.is-next-highlight {
        transform: none;
    }

    .billing-plan-price {
        font-size: 1.25rem;
    }

    .billing-plan-button {
        min-height: 40px;
    }

    .billing-dev-note {
        display: grid;
        gap: 6px;
        align-items: start;
        font-size: .84rem;
        line-height: 1.35;
    }

    .billing-balance-actions,
    .billing-action-buttons,
    .billing-state-buttons {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: end;
        gap: 10px;
    }

    .billing-balance-actions .billing-custom-balance,
    .billing-balance-actions .billing-discount-code,
    .billing-balance-actions #billingCustomBalanceButton {
        grid-column: 1 / -1;
    }

    .billing-custom-balance {
        min-width: 0;
    }

    .billing-subscription-action-button {
        min-width: 0;
        width: 100%;
    }

    .billing-section-heading {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .billing-section-heading h3 {
        font-size: 1.05rem;
    }

    .billing-usage-meta,
    .billing-plan-meta,
    .billing-current-meta {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .billing-history-card .seller-settings-table-wrap {
        max-width: 100%;
        overflow-x: auto;
    }

    .billing-history-card .admin-table {
        min-width: 560px;
    }

    .billing-affiliate-section .billing-section-heading {
        grid-template-columns: 1fr;
        justify-content: stretch;
        align-items: start;
        gap: 10px;
    }

    .billing-affiliate-switch {
        width: 100%;
        min-width: 0;
    }

    .billing-affiliate-code {
        width: 100%;
        justify-content: space-between;
        border-radius: 14px;
    }

    .billing-affiliate-steps {
        padding-left: 18px;
    }

    .billing-affiliate-action-row {
        grid-template-columns: 1fr;
        margin-left: 0;
        gap: 8px;
    }

    .billing-affiliate-action-row div,
    .billing-affiliate-action-row input,
    .billing-affiliate-action-row button {
        width: 100%;
    }

    .billing-affiliate-action-row span {
        white-space: normal;
    }

    .billing-affiliate-refunds div {
        display: grid;
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@media (max-width: 420px) {
    .billing-page {
        padding-inline: 10px;
    }

    .billing-balance-actions,
    .billing-action-buttons,
    .billing-state-buttons {
        grid-template-columns: 1fr;
    }

    .billing-plan-card,
    .billing-status-panel,
    .billing-usage-panel,
    .billing-period-panel,
    .billing-current-plan-card,
    .billing-balance-section,
    .billing-actions-section,
    .billing-history-card,
    .billing-affiliate-section {
        padding: 12px;
    }
}

.seller-publications-card .table-toolbar {
    margin-bottom: 18px;
}

.seller-publications-table-wrap {
    border: 1px solid #eadfd6;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(38, 28, 42, .06);
    overflow: auto;
}

.seller-posts-table {
    margin-bottom: 0;
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.seller-own-products-table {
    margin-bottom: 0;
    width: 100%;
    table-layout: fixed;
    min-width: 760px;
}

.seller-own-products-table th:nth-child(1),
.seller-own-products-table td:nth-child(1) {
    width: 96px;
    padding-left: 18px;
    padding-right: 6px;
    text-align: left;
}

.seller-own-products-table th:nth-child(2),
.seller-own-products-table td:nth-child(2) {
    width: auto;
    padding-left: 38px;
}

.seller-own-products-table th:nth-child(3),
.seller-own-products-table td:nth-child(3) {
    width: 250px;
    padding-right: 60px;
    text-align: center;
}

.own-product-clip-header {
    display: grid;
    grid-template-columns: 54px 96px;
    justify-content: end;
    align-items: center;
    column-gap: 18px;
    width: 100%;
}

.own-product-clip-header span:first-child {
    transform: translateX(-24px);
}

.own-product-thumb {
    width: 76px;
    height: 76px;
    border: 1px solid #eadfd6;
    border-radius: 16px;
    background: #f7f2ea;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(38, 28, 42, .08);
}

.own-product-thumb-button {
    width: 76px;
    height: 76px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    padding: 0;
    cursor: zoom-in;
}

.own-product-thumb-button:focus-visible {
    outline: 3px solid rgba(212, 99, 54, .28);
    outline-offset: 3px;
}

.own-product-error {
    max-width: 280px;
    margin-top: 6px;
    color: #b42c2c;
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.25;
}

.own-product-title-cell {
    color: #2c173f;
    font-weight: 800;
    text-align: left;
}

.own-product-clips-cell {
    text-align: center;
    white-space: nowrap;
}

.own-product-clip-layout {
    display: grid;
    grid-template-columns: 54px 96px !important;
    align-items: center;
    justify-content: end;
    column-gap: 18px;
    text-align: center;
    min-height: 92px;
    width: 100%;
}

.own-product-clip-layout > .klipia-action-button,
.own-product-clip-layout > .clip-empty,
.own-product-clip-layout > .clip-pending,
.own-product-clip-layout > .clip-preview {
    vertical-align: middle;
}

.own-product-clip-layout > .klipia-action-button {
    grid-column: 1;
    justify-self: center;
    transform: translateX(-24px);
}

.own-product-clip-layout > .clip-empty,
.own-product-clip-layout > .clip-pending,
.own-product-clip-layout > .clip-preview {
    grid-column: 2;
    justify-self: center;
}

.clip-pending {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 104px;
    padding: 9px 12px;
    border: 1px solid rgba(32, 163, 91, .24);
    border-radius: 999px;
    background: #effaf3;
    color: #257348;
    font-size: .82rem;
    font-weight: 900;
}

.publication-clips-cell > .clip-pending {
    margin-right: 60px;
}

.clip-pending::before {
    content: "";
    width: 14px;
    height: 14px;
    border: 2px solid rgba(32, 163, 91, .25);
    border-top-color: #20a35b;
    border-radius: 50%;
    animation: clipSpin .75s linear infinite;
}

@keyframes clipSpin {
    to {
        transform: rotate(360deg);
    }
}

.seller-table-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid #efe4dd;
    border-radius: 16px;
    background: #fffaf6;
}

.seller-page-size {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #665b67;
    font-size: .88rem;
    font-weight: 700;
    white-space: nowrap;
}

.seller-page-size .form-select {
    width: 78px;
    min-height: 36px;
    border-radius: 999px;
    border-color: #eadfd6;
    font-weight: 700;
}

.seller-pagination-summary {
    color: #766b75;
    font-size: .88rem;
    font-weight: 700;
    text-align: center;
}

.seller-pagination-pages {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.seller-pagination-button {
    min-width: 36px;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid #eadfd6;
    border-radius: 999px;
    background: #fff;
    color: #4f2a70;
    font-size: .84rem;
    font-weight: 800;
}

.seller-pagination-button:hover:not(:disabled),
.seller-pagination-button:focus:not(:disabled),
.seller-pagination-button.is-active {
    border-color: #d46336;
    background: #fff0e8;
    color: #2c173f;
}

.seller-pagination-button:disabled {
    color: #aaa0aa;
    cursor: not-allowed;
    opacity: .65;
}

.seller-posts-table thead th {
    padding-top: 15px;
    padding-bottom: 15px;
    background: #f9f3ed;
    border-bottom: 1px solid #eadfd6;
    font-weight: 800;
}

.seller-posts-table tbody td {
    border-bottom: 1px solid #f1e8e0;
}

.seller-posts-table tbody tr:last-child td {
    border-bottom: 0;
}

.seller-posts-table tbody tr:hover {
    background: #fff;
}

.seller-posts-table.table-hover > tbody > tr:hover > *,
.seller-posts-table.table-hover > tbody > tr:focus-within > * {
    --bs-table-bg-state: transparent;
    background-color: transparent;
}

.seller-posts-table tbody tr.is-pagination-hidden,
.category-prompts-table tbody tr.is-pagination-hidden {
    display: none !important;
}

.seller-posts-table thead th:not(.publication-title-column),
.seller-posts-table tbody td:not(.seller-post-title) {
    text-align: center;
    vertical-align: middle;
}

.seller-posts-table th:nth-child(2),
.seller-posts-table td:nth-child(2) {
    width: 96px;
}

.publication-code-cell {
    width: 170px;
    min-width: 170px;
    overflow-wrap: anywhere;
}

.publication-family-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    margin-top: 5px;
    padding: 0 6px;
    border-radius: 999px;
    background: #f6efe7;
    border: 1px solid #e5d6c8;
    color: #4c1c63;
    font-size: .72rem;
    font-weight: 900;
}

.billing-benefit-editor {
    display: grid;
    gap: 10px;
}

.billing-benefit-editor-head,
.billing-benefit-editor-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px auto;
    gap: 10px;
    align-items: center;
}

.billing-benefit-editor-head {
    color: #5b4f5e;
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.billing-benefit-next-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    margin: 0;
    padding: 6px 12px;
    border: 1px solid #eadfd6;
    border-radius: 999px;
    background: #fffaf6;
    color: #4f2a70;
    font-weight: 850;
}

.billing-benefit-next-check .form-check-input {
    margin: 0;
}

.billing-plan-avatar-limits {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.billing-plan-avatar-limits .form-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: 700;
    color: var(--klipia-purple);
}

.billing-plan-avatar-limits input[type="number"] {
    max-width: 150px;
}

.billing-plan-avatar-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    margin-top: 0;
}

.billing-plan-avatar-counter {
    margin-right: auto;
    color: var(--klipia-purple);
    font-weight: 800;
}

.billing-plan-avatar-option {
    display: grid;
    grid-template-columns: auto 84px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 100px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid rgba(87, 39, 110, .12);
    border-radius: 14px;
    background: #fff;
    font-weight: 700;
    color: var(--klipia-purple);
}

.billing-plan-avatar-option img {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 12px;
    background: #f8f3ef;
}

.billing-plan-avatar-option span {
    min-width: 0;
}

.billing-plan-avatar-option.is-current-plan-selection {
    border-color: #55b985;
    background: #e5f7ec;
}

.billing-plan-avatar-option.is-inherited {
    background: #f6f2ed;
    opacity: .86;
}

.avatar-plan-upgrade-card .avatar-option-button {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(87, 39, 110, .35);
    background: rgba(255, 250, 246, .92);
    color: var(--klipia-purple);
    font-weight: 800;
}

.publication-title-column,
.seller-post-title {
    width: 60ch;
    max-width: 60ch;
}

.publication-price-column,
.publication-price-cell,
.publication-visits-column,
.publication-visits-cell {
    width: 76px;
    min-width: 76px;
    text-align: center !important;
}

.publication-price-column,
.publication-visits-column {
    white-space: nowrap;
}

.publication-sort-button {
    border: 0;
    background: transparent;
    color: #3a2a3f;
    font: inherit;
    font-weight: 900;
    padding: 0;
    white-space: nowrap;
    text-transform: uppercase;
}

.publication-sort-button.is-active {
    color: #4f2a70;
}

.sales-sort-arrow {
    display: inline-block;
    margin-left: 5px;
    font-size: 1.02em;
    font-weight: 900;
    color: #4f2a70;
    line-height: 1;
    transform: translateY(-1px) scaleX(.82);
}

.publication-price-cell,
.publication-visits-cell {
    color: #2c173f;
    font-weight: 400;
}

.seller-free-plan-note {
    margin: 16px 4px 0;
    color: #6f6874;
    font-size: .9rem;
    font-weight: 700;
    text-align: center;
}

.seller-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 18px;
    margin: 18px auto 0;
    padding: 18px 16px 8px;
    color: #6f6874;
    font-size: .86rem;
    font-weight: 700;
}

.seller-footer a {
    color: #4f2a70;
    text-decoration: none;
}

.seller-footer a:hover,
.seller-footer a:focus {
    color: #d85a2a;
    text-decoration: underline;
}

.publication-title-column {
    position: relative;
    top: -1px;
    vertical-align: middle !important;
}

.seller-post-title {
    padding-right: 8px !important;
    white-space: normal;
    vertical-align: middle !important;
    overflow-wrap: anywhere;
    word-break: normal;
}

.publication-select-column,
.publication-select-cell {
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    padding-left: 12px;
    padding-right: 12px;
    text-align: center;
    vertical-align: middle;
}

.publication-select-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
}

.publication-select-all .form-check-input,
.publication-select-cell .form-check-input {
    float: none;
    margin: 0;
    cursor: pointer;
    width: 20px;
    height: 20px;
    border: 2px solid #4f2a70;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(79, 42, 112, .12);
}

.publication-select-all .form-check-input:hover,
.publication-select-cell .form-check-input:hover {
    border-color: #d46336;
    box-shadow: 0 0 0 4px rgba(212, 99, 54, .16);
}

.publication-select-all .form-check-input:checked,
.publication-select-cell .form-check-input:checked {
    border-color: #4f2a70;
    background-color: #4f2a70;
}

.publication-select-all .form-check-input:focus,
.publication-select-cell .form-check-input:focus {
    border-color: #d46336;
    box-shadow: 0 0 0 .12rem #fff, 0 0 0 .34rem rgba(212, 99, 54, .24);
}

.publication-status-column,
.publication-status-cell {
    text-align: left !important;
    width: 150px;
    min-width: 150px;
    padding-left: 0 !important;
    padding-right: 14px !important;
}

.publication-actions-column,
.publication-actions-cell {
    width: 104px;
    min-width: 104px;
    padding-left: 0 !important;
    padding-right: 16px !important;
    text-align: center !important;
}

.publication-actions-column {
    padding-right: 16px !important;
    text-indent: -32px;
}

.publication-actions-cell .klipia-action-button {
    transform: translateX(-32px);
}

.category-cod-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.category-cod-switch {
    min-height: 34px;
    display: flex;
    align-items: center;
    padding-left: 48px;
}

.category-cod-switch .form-check-input {
    width: 48px;
    height: 26px;
    margin-left: -48px;
    cursor: pointer;
    border-color: #d9c7bb;
    background-color: #d7cfc9;
}

.category-cod-switch .form-check-input:checked {
    border-color: #20a35b;
    background-color: #20a35b;
}

.category-cod-control-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.category-browser-subtitle,
.category-browser-status {
    color: #766b75;
    font-size: .86rem;
    font-weight: 700;
}

.category-browser-account-row {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) minmax(220px, 1.4fr);
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid #eadfd6;
    border-radius: 16px;
    background: #fffaf6;
}

.category-browser-account-row .form-label {
    margin: 0;
    color: #4f2a70;
    font-weight: 800;
}

.category-browser-api-hint {
    min-width: 0;
    display: grid;
    gap: 4px;
    color: #6b5b6c;
    font-size: .78rem;
}

.category-browser-api-hint span {
    color: #4f2a70;
    font-weight: 800;
}

.category-browser-api-hint strong {
    min-width: 0;
    overflow-wrap: anywhere;
    font-weight: 700;
}

.prompt-category-links {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid #eadfd6;
    border-radius: 18px;
    background: #fffaf6;
}

.prompt-category-links-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
}

.prompt-category-links-header h6 {
    margin: 0;
    color: #4f2a70;
    font-weight: 900;
}

.prompt-category-links-header small,
.empty-inline-note {
    color: #7f737d;
}

.prompt-category-list {
    display: grid;
    gap: 8px;
}

.prompt-category-link-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #efe5de;
}

.prompt-category-link-item span {
    color: #6a526b;
    font-weight: 700;
}

.prompt-category-link-item strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.prompt-category-add-form {
    display: grid;
    grid-template-columns: auto minmax(180px, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.prompt-edit-form {
    margin-top: 4px;
}

@media (max-width: 900px) {
    .category-browser-account-row,
    .prompt-category-add-form,
    .prompt-category-link-item {
        grid-template-columns: 1fr;
    }
}

#categoryBrowserModal {
    z-index: 1085;
}

.category-browser-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.category-browser-crumb {
    border: 1px solid #eadfd6;
    border-radius: 999px;
    background: #fff;
    color: #4f2a70;
    font-weight: 800;
    padding: 6px 12px;
}

.category-browser-separator {
    color: #9a8f99;
    font-weight: 800;
}

.category-browser-list {
    display: grid;
    gap: 10px;
}

.category-browser-item {
    width: 100%;
    border: 1px solid #eadfd6;
    border-radius: 16px;
    background: #fff;
    color: #2c173f;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    text-align: left;
    box-shadow: 0 8px 18px rgba(38, 28, 42, .05);
}

.category-browser-item:hover {
    border-color: #d46336;
    background: #fff7f0;
}

.category-browser-item strong {
    color: #8c8088;
    font-size: .84rem;
}

.category-browser-next {
    color: #d46336;
    font-weight: 900;
}

.publication-status-cell {
    vertical-align: middle;
}

.publication-status-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
}

.publication-country-flags {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    line-height: 1;
    white-space: nowrap;
    width: 100%;
}

.publication-country-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 18px;
    padding: 0 5px;
    border: 1px solid rgba(79, 42, 112, .18);
    border-radius: 999px;
    background: #fff;
    color: #4f2a70;
    font-size: .64rem;
    font-weight: 900;
    line-height: 1;
}

.post-image-button,
.post-image-placeholder {
    width: 84px;
    height: 84px;
    border-radius: 18px;
    border: 1px solid #eadfd6;
    background: #f7f2ea;
    display: grid;
    place-items: center;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(38, 28, 42, .08);
}

.post-image-button {
    padding: 0;
    cursor: zoom-in;
    margin: 0 auto;
}

.post-image-placeholder {
    margin: 0 auto;
}

.post-image-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.publication-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    min-width: 92px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.publication-status-active {
    background: #e1f5e8;
    color: #176a3c;
}

.publication-status-paused {
    background: #efe4da;
    color: #70441f;
}

.publication-status-finished {
    background: #e1ecfb;
    color: #245d9f;
}

.publication-status-review {
    background: #eee5fb;
    color: #683ba4;
}

.publication-status-deleted {
    background: #fde4e4;
    color: #b42c2c;
}

.publication-status-undefined {
    background: #ece8ee;
    color: #645b67;
}

.post-image-placeholder img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: .58;
}

.seller-posts-table .seller-post-title {
    width: auto;
    min-width: 0;
    max-width: none;
}

.klipia-action-button {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid #eadfd6;
    background: #f5efe7;
    display: inline-grid;
    place-items: center;
    padding: 6px;
    box-shadow: 0 10px 20px rgba(38, 28, 42, .08);
}

.klipia-action-button:hover,
.klipia-action-button:focus {
    border-color: #d46336;
    background: #fff7f0;
}

.klipia-action-button img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.publication-clips-column,
.publication-clips-cell {
    width: 132px;
    min-width: 132px;
    padding-right: 18px !important;
    text-align: center;
}

.clip-preview {
    position: relative;
    display: inline-grid;
    justify-items: center;
    gap: 6px;
}

.clip-preview video {
    width: 82px;
    aspect-ratio: 9 / 16;
    border: 1px solid #eadfd6;
    border-radius: 12px;
    background: #111;
    object-fit: cover;
    box-shadow: 0 8px 18px rgba(38, 28, 42, .12);
    cursor: pointer;
}

.clip-expand-button {
    position: absolute;
    top: -8px;
    left: -8px;
    z-index: 1;
    width: 28px;
    height: 28px;
    border: 1px solid #eadfd6;
    border-radius: 999px;
    background: #fff;
    color: #4f2a70;
    display: grid;
    place-items: center;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(38, 28, 42, .16);
}

.clip-expand-button:hover,
.clip-expand-button:focus {
    color: #d46336;
    border-color: #d46336;
}

.clip-nav-button {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 24px;
    height: 24px;
    border: 1px solid #eadfd6;
    border-radius: 999px;
    background: #fff;
    color: #4f2a70;
    display: grid;
    place-items: center;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
    transform: translateY(-50%);
    box-shadow: 0 8px 18px rgba(38, 28, 42, .16);
}

.clip-prev-button {
    left: -10px;
}

.clip-next-button {
    right: -10px;
}

.clip-nav-button:hover,
.clip-nav-button:focus {
    color: #d46336;
    border-color: #d46336;
}

.clip-download-button,
.clip-upload-button {
    width: 82px;
    height: 28px;
    border: 1px solid #151515;
    border-radius: 8px;
    background: #f0f0f0;
    color: #111;
    display: inline-grid;
    place-items: center;
    font-weight: 900;
    text-decoration: none;
}

.clip-file-actions {
    width: 82px;
    max-width: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.clip-file-actions .clip-download-button,
.clip-file-actions .clip-upload-button {
    width: 38px !important;
    min-width: 38px;
    max-width: 38px !important;
    height: 28px;
    padding: 0;
}

.clip-file-actions .clip-download-button svg,
.clip-file-actions .clip-upload-button svg {
    width: 15px;
    height: 15px;
}

.clip-file-actions .clip-upload-button.is-uploaded {
    width: auto !important;
    min-width: 64px;
    max-width: none !important;
    padding: 0 0.55rem;
    font-size: 0.72rem;
}

.clip-language-flag {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6rem;
    height: 1.2rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: #d9f7df;
    color: #04733b;
    font-size: 0.68rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(4, 115, 59, 0.18);
}

.clip-language-nav-button {
    position: absolute;
    top: 28%;
    z-index: 5;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(79, 42, 112, .24);
    border-radius: 999px;
    background: #fff;
    color: #4f2a70;
    display: grid;
    place-items: center;
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1;
    transform: translateY(-50%);
    box-shadow: 0 8px 18px rgba(38, 28, 42, .16);
}

.clip-language-prev-button {
    left: -16px;
}

.clip-language-next-button {
    right: -16px;
}

.clip-language-nav-button:hover,
.clip-language-nav-button:focus {
    color: #d46336;
    border-color: #d46336;
}

.clip-download-button svg,
.clip-upload-button svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.clip-download-button:hover,
.clip-download-button:focus,
.clip-upload-button:hover,
.clip-upload-button:focus {
    color: #111;
    background: #e4e4e4;
    border-color: #111;
}

.clip-upload-button.is-uploading {
    cursor: wait;
    opacity: 0.85;
}

.clip-upload-button.is-uploaded,
.clip-upload-button.is-uploaded:hover,
.clip-upload-button.is-uploaded:focus {
    width: auto;
    min-width: 82px;
    padding: 0 0.75rem;
    border-color: #128a4a;
    background: #d9f7df;
    color: #04733b;
    cursor: default;
    font-size: 0.78rem;
}

.clip-upload-spinner {
    width: 15px;
    height: 15px;
    border: 2px solid rgba(81, 37, 111, 0.22);
    border-top-color: #51256f;
    border-radius: 999px;
    animation: clip-upload-spin 0.75s linear infinite;
}

@keyframes clip-upload-spin {
    to {
        transform: rotate(360deg);
    }
}

.clip-empty {
    color: #8c8088;
    font-size: .82rem;
    font-weight: 700;
}

.clip-unavailable {
    display: inline-block;
    max-width: 92px;
    line-height: 1.2;
    text-align: center;
}

.clip-row-generated td {
    background: #e8f7ed !important;
}

.clip-row-failed td {
    background: #fdeaea !important;
}

.clip-result-modal .modal-body {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 28px;
    text-align: center;
    background: #fffaf6;
}

.clip-result-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fdeaea;
    color: #b42c2c;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    font-weight: 900;
}

.clip-result-modal h6 {
    margin: 0;
    color: #2c173f;
    font-size: 1.15rem;
    font-weight: 900;
}

.clip-result-modal p {
    margin: 0;
    color: #665b67;
    font-weight: 700;
}

.clip-result-details {
    width: 100%;
    max-height: 220px;
    overflow: auto;
    display: grid;
    gap: 8px;
    margin-top: 6px;
    text-align: left;
}

.clip-result-details div {
    border: 1px solid #f3caca;
    border-radius: 12px;
    background: #fff;
    color: #5f5160;
    padding: 9px 11px;
}

.clip-result-details strong {
    color: #2c173f;
}

.clip-result-more {
    color: #b42c2c !important;
    font-weight: 800;
}

.clip-preview-modal .modal-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    background: #17111f;
    min-height: 70vh;
    position: relative;
    overflow: hidden;
}

.clip-preview-modal .modal-body.is-editing {
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
}

.clip-preview-video-panel {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 70vh;
}

.clip-subtitle-edit-panel {
    align-self: stretch;
    background: #fffaf6;
    border: 1px solid #eadfd6;
    border-radius: 18px;
    color: #2d163b;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 70vh;
    min-height: 0;
    padding: 14px;
}

.clip-subtitle-edit-header h6 {
    font-weight: 900;
    margin: 0 0 4px;
}

.clip-subtitle-edit-title {
    display: grid;
    gap: 6px;
    justify-items: start;
}

.clip-subtitle-edit-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.clip-subtitle-edit-header span {
    color: #6f6874;
    display: block;
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.3;
}

.clip-subtitle-edit-close {
    width: 28px;
    height: 28px;
    border: 1px solid #eadfd6;
    border-radius: 50%;
    background: #fff;
    color: #6f6874;
    font-weight: 900;
    line-height: 1;
}

.clip-subtitle-voice-open {
    border: 1px solid #54c77a;
    border-radius: 999px;
    background: #e5f8ec;
    color: #08793a;
    font-weight: 900;
    min-height: 38px;
    padding: 0 14px;
}

.clip-subtitle-edit-actions {
    align-self: stretch;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    min-height: 38px;
    margin-top: 6px;
    padding-top: 5px;
    background: #fffaf6;
    position: relative;
    z-index: 1;
}

.clip-comment-button {
    position: absolute;
    top: -8px;
    right: -8px;
    z-index: 2;
    width: 28px;
    height: 28px;
    border: 1px solid #eadfd6;
    border-radius: 999px;
    background: #fff;
    color: #4f2a70;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 18px rgba(38, 28, 42, .16);
}

.clip-comment-button svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.clip-comment-button:hover,
.clip-comment-button:focus {
    color: #0f7d43;
    border-color: #0f7d43;
}

.clip-comment-rating {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 18px;
}

.clip-comment-rating-button {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border: 2px solid #eadfd6;
    border-radius: 50%;
    background: #fff;
    font-size: 1.55rem;
    box-shadow: 0 4px 12px rgba(38, 28, 42, .1);
}

.clip-comment-rating-button:hover,
.clip-comment-rating-button:focus-visible {
    border-color: #8a4c72;
    background: #fff8ee;
}

.clip-comment-rating-button.is-selected[data-clip-comment-rating="1"] {
    border-color: #159451;
    background: #d9f6e4;
}

.clip-comment-rating-button.is-selected[data-clip-comment-rating="-1"] {
    border-color: #cc554c;
    background: #fde5e2;
}

.admin-comment-alert {
    min-width: 36px;
    height: 32px;
    padding: 0 8px;
    border-radius: 999px;
    background: #f9dfdf;
    color: #9a2e35;
    border: 1px solid #e69aa0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-weight: 900;
    text-decoration: none;
}

.admin-comment-alert strong {
    font-size: .78rem;
}

.admin-comment-alert:hover,
.admin-comment-alert:focus-visible {
    background: #f5c8ca;
    color: #7b2027;
}

.admin-clip-comments-filters {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-clip-comments-filters select {
    width: 210px;
}

.admin-clip-comments-filters input {
    width: 250px;
}

@media (max-width: 767.98px) {
    .admin-clip-comments-filters {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .admin-clip-comments-filters select,
    .admin-clip-comments-filters input {
        width: 100%;
    }
}

.admin-comment-unseen td {
    background: #fff8ee !important;
}

.admin-clip-comment-text {
    min-width: 260px;
    white-space: pre-wrap;
}

.admin-clip-comment-rating {
    font-size: 1.3rem;
    text-align: center;
}

.admin-comment-clip-preview {
    position: relative;
    display: grid;
    width: 74px;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border: 1px solid #eadfd6;
    border-radius: 10px;
    background: #251b2d;
}

.admin-comment-clip-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-comment-clip-expand {
    position: absolute;
    top: 5px;
    right: 5px;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid #e6d9ed;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: #54256f;
    box-shadow: 0 2px 8px rgba(38, 23, 53, .22);
}

.admin-comment-clip-expand svg {
    width: 16px;
    height: 16px;
}

.admin-comment-clip-expand:hover,
.admin-comment-clip-expand:focus-visible {
    border-color: #159451;
    color: #0f7d43;
}

.admin-comment-clip-video-panel {
    min-height: 62vh;
}

.app-selection-limit-modal .modal-body {
    padding: 28px;
    color: #482354;
    font-size: 1.05rem;
    font-weight: 800;
}

.clip-subtitle-edit-panel #clipSubtitleEditConfirm {
    flex: 0 0 auto;
    min-height: 38px;
    width: auto;
    padding-inline: 18px;
}

.clip-subtitle-selected-voice {
    color: #6f6874;
    font-size: .8rem;
    font-weight: 800;
}

.clip-subtitle-edit-segments {
    flex: 1 1 auto;
    display: grid;
    gap: 8px;
    min-height: 0;
    overflow: auto;
    padding-right: 4px;
    padding-bottom: 5px;
}

.clip-subtitle-edit-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    align-items: start;
}

.clip-subtitle-edit-time {
    grid-column: 1 / -1;
    color: #6f6874;
    font-size: .78rem;
    font-weight: 900;
    margin-bottom: 0;
}

.clip-subtitle-edit-text {
    border: 1px solid #eadfd6;
    border-radius: 12px;
    min-height: 76px;
    padding: 9px 10px;
    resize: vertical;
}

.clip-subtitle-edit-text.is-dirty {
    background: #fff8df;
    border-color: #e2c66b;
}

.clip-subtitle-edit-verify {
    align-self: start;
    background: #e5f8ec;
    border: 1px solid #54c77a;
    border-radius: 999px;
    color: #08793a;
    font-weight: 900;
    min-height: 36px;
    padding: 0 12px;
}

.clip-voice-picker-list {
    display: grid;
    gap: 10px;
}

.clip-voice-option-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: stretch;
    gap: 8px;
}

.clip-voice-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #eadfd6;
    border-radius: 14px;
    background: #fffaf6;
    color: #32164f;
    padding: 12px 14px;
    text-align: left;
}

.clip-voice-preview-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eadfd6;
    border-radius: 14px;
    background: #fffaf6;
    color: #32164f;
    font-size: .9rem;
    font-weight: 900;
    min-height: 48px;
}

.clip-voice-preview-button.is-playing {
    background: linear-gradient(135deg, #6f2d7d, #cf4d26);
    border-color: transparent;
    color: #fff;
}

.clip-voice-option strong {
    font-weight: 900;
}

.clip-voice-option span,
.clip-voice-empty,
.clip-voice-preview-error {
    color: #7b7280;
    font-size: .86rem;
    font-weight: 800;
}

.clip-voice-preview-error {
    border: 1px solid #f1c7bd;
    border-radius: 12px;
    background: #fff1ed;
    color: #9d2b25;
    padding: 10px 12px;
}

.clip-subtitle-edit-error {
    grid-column: 1 / -1;
    color: #b42c2c;
    font-size: .78rem;
    font-weight: 800;
}

.clip-subtitle-edit-warning {
    color: #b42c2c;
    font-size: .84rem;
    font-weight: 800;
}

.clip-preview-modal .modal-footer.clip-preview-modify-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-top: 1px solid #eadfd6;
    border-radius: 0 0 1rem 1rem;
    background: #fff;
}

.clip-preview-footer-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: auto;
}

.clip-preview-video-counter,
.clip-preview-modification-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: .82rem;
    font-weight: 900;
    line-height: 1;
}

.clip-preview-video-counter {
    color: #4e266c;
    background: #fffaf6;
    border: 1px solid #eadfd6;
}

.clip-preview-modification-chip {
    color: #6b3c21;
    background: #fff2df;
    border: 1px solid #eed2ae;
}

.clip-preview-modify-bar .form-control {
    min-height: 42px;
    border-radius: 999px;
    border-color: #eadfd6;
    background: #fffaf6;
    font-weight: 700;
}

.clip-preview-modify-bar .btn {
    min-width: 112px;
    font-weight: 900;
}

.clip-preview-modify-note {
    color: #6f6874;
    font-size: 0.8rem;
    font-weight: 700;
    grid-column: 1 / -1;
    line-height: 1.35;
}

.clip-modification-progress {
    background: #e9f7ed;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(26, 135, 84, 0.14);
    flex-basis: 100%;
    height: 9px;
    overflow: hidden;
}

.clip-modification-progress-bar {
    background: linear-gradient(90deg, #5ac678, #1f9f55);
    border-radius: inherit;
    height: 100%;
    transition: width 0.35s ease;
    width: 0%;
}

.clip-preview-modal video {
    max-height: 72vh;
    max-width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 18px;
    background: #000;
}

.clip-preview-modal-nav {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: #4f2a70;
    display: grid;
    place-items: center;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    transform: translateY(-50%);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .24);
}

.clip-preview-modal-nav:hover,
.clip-preview-modal-nav:focus {
    color: #d46336;
    border-color: #d46336;
}

.clip-preview-modal-prev {
    left: 18px;
}

.clip-preview-modal-next {
    right: 18px;
}

.clip-preview-language-switcher {
    position: absolute;
    left: 50%;
    bottom: 18px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
    transform: translateX(-50%);
}

.clip-preview-language-button {
    width: 36px;
    height: 30px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    display: grid;
    place-items: center;
    font-size: 1.05rem;
    line-height: 1;
}

.clip-preview-language-button.is-active {
    border-color: rgba(79, 42, 112, .22);
    background: #efe5f5;
    box-shadow: 0 6px 14px rgba(79, 42, 112, .14);
}

.image-zoom-modal .modal-body {
    background: #1e1727;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    justify-items: center;
    align-items: center;
    row-gap: 14px;
    min-height: 360px;
    position: relative;
    overflow: hidden;
    padding: 28px 76px;
}

.image-zoom-modal .modal-body img {
    max-width: 100%;
    max-height: 66vh;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .32);
}

.image-gallery-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    max-width: 100%;
}

.image-gallery-check {
    display: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    min-width: 28px;
}

.image-gallery-check.is-visible {
    display: flex;
}

.image-gallery-check input {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

.post-image-selected-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #e2f8ea;
    color: #0f7d43;
    font-size: 18px;
    box-shadow: 0 8px 18px rgba(15, 125, 67, .12);
}

.prompt-suffix-read-card {
    background: #fffdfb;
}

.prompt-suffix-read-card p {
    white-space: pre-wrap;
}

.prompt-suffix-active-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid #eadfd6;
    border-radius: 999px;
    background: #fff;
}

.stacked-admin-modal {
    z-index: 1065;
}

.stacked-admin-modal + .modal-backdrop {
    z-index: 1060;
}

.image-gallery-nav {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    display: grid;
    place-items: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: background .15s ease, border-color .15s ease, opacity .15s ease;
}

.image-gallery-nav:hover,
.image-gallery-nav:focus {
    background: rgba(255, 255, 255, .22);
    border-color: rgba(255, 255, 255, .48);
}

.image-gallery-nav:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.image-gallery-nav span {
    font-size: 38px;
    line-height: 1;
    margin-top: -3px;
}

.image-gallery-prev {
    left: 18px;
}

.image-gallery-next {
    right: 18px;
}

.image-gallery-counter {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .48);
    color: #fff;
    font-size: .78rem;
    line-height: 1.2;
    position: static;
    transform: none;
}

.image-zoom-modal .modal-footer {
    justify-content: center;
    min-height: 42px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.clip-generation-modal .modal-body {
    --clip-generation-controls-height: 92px;
    --clip-generation-media-height: 276px;
    --clip-generation-button-height: 38px;
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 42px minmax(180px, 1fr) 42px minmax(150px, .8fr);
    grid-template-rows: var(--clip-generation-controls-height) var(--clip-generation-media-height) var(--clip-generation-button-height);
    gap: 14px;
    align-items: start;
    min-height: 524px;
    padding: 28px 28px 42px;
    background: #fffaf6;
}

.commercial-body {
    background: #fbf8fb;
}

.commercial-page,
.admin-prospects-page {
    max-width: 1240px;
    margin: 0 auto;
    padding: 8px 0 28px;
}

.commercial-section-heading,
.commercial-contact-sheet-head,
.admin-prospect-list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.commercial-section-heading h2,
.commercial-contact-sheet-head h3,
.commercial-contact-history h4 {
    margin: 0;
    color: #2f103f;
    font-weight: 800;
}

.commercial-section-heading p,
.commercial-contact-sheet-head p {
    margin: 4px 0 0;
    color: #746475;
}

.commercial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
    gap: 14px;
}

.commercial-prospect-card,
.commercial-contact-sheet,
.commercial-empty {
    border: 1px solid #eadce5;
    border-radius: 8px;
    background: #fffdfb;
    box-shadow: 0 8px 24px rgba(74, 33, 81, .06);
}

.commercial-prospect-card {
    padding: 16px;
}

.commercial-prospect-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.commercial-prospect-card h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #2f103f;
}

.commercial-prospect-card h3 + p {
    margin: 3px 0 0;
    color: #756979;
    min-height: 20px;
}

.commercial-prospect-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 14px 0;
}

.commercial-prospect-details div {
    min-width: 0;
}

.commercial-prospect-details dt {
    color: #82727f;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.commercial-prospect-details dd {
    margin: 2px 0 0;
    overflow: hidden;
    color: #3f3640;
    font-size: .9rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.commercial-chip {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #f0e8e2;
    color: #6b536a;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: 0;
}

.commercial-chip-registered {
    background: #dff4e6;
    color: #137242;
}

.commercial-chip-status {
    margin-left: 5px;
    background: #f5ebd6;
    color: #76531a;
}

.commercial-card-actions,
.commercial-history-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.commercial-primary-button,
.commercial-outline-button,
.commercial-text-button {
    border-radius: 999px;
    font-weight: 800;
}

.commercial-primary-button {
    border: 1px solid #743078;
    background: linear-gradient(90deg, #6e3a7d, #c95b3a);
    color: #fff;
}

.commercial-primary-button:hover,
.commercial-primary-button:focus {
    color: #fff;
    filter: brightness(1.04);
}

.commercial-outline-button {
    border: 1px solid #6e3a7d;
    background: #fff;
    color: #5d2b76;
}

.commercial-text-button {
    border: 0;
    background: transparent;
    color: #5d2b76;
}

.commercial-danger-text {
    color: #a63d44;
}

.commercial-alert {
    max-width: 1240px;
    margin: 0 auto 16px;
}

.commercial-empty {
    padding: 26px;
    color: #756979;
    text-align: center;
}

.commercial-modal .modal-header,
.commercial-modal .modal-footer {
    border-color: #eee2e9;
}

.commercial-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.commercial-form-grid label,
.commercial-contact-entry-form label,
.commercial-history-entry label {
    display: grid;
    gap: 6px;
    color: #452357;
    font-size: .86rem;
    font-weight: 800;
}

.commercial-client-picker {
    display: grid;
    grid-template-columns: auto minmax(260px, 460px) auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.commercial-client-picker label {
    color: #452357;
    font-weight: 800;
}

.commercial-contact-sheet {
    padding: 18px;
}

.commercial-contact-entry-form {
    display: grid;
    grid-template-columns: 150px minmax(360px, 1fr) 170px auto;
    align-items: end;
    gap: 12px;
    padding: 14px;
    border-radius: 8px;
    background: #f5faf7;
}

.commercial-contact-notes {
    min-width: 0;
}

.commercial-contact-resolution {
    min-width: 0;
}

.commercial-contact-history {
    margin-top: 22px;
}

.commercial-history-entry {
    display: grid;
    grid-template-columns: 150px minmax(360px, 1fr) 170px auto;
    align-items: end;
    gap: 12px;
    margin-top: 12px;
    padding: 14px;
    border: 1px solid #eee2e9;
    border-radius: 8px;
}

.admin-prospects-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.admin-prospects-filter label {
    color: #452357;
    font-weight: 800;
}

.admin-prospects-filter select {
    width: min(420px, 100%);
}

.admin-prospect-chart {
    margin-bottom: 20px;
}

.admin-prospect-chart-bars {
    display: grid;
    grid-template-columns: repeat(20, minmax(12px, 1fr));
    align-items: end;
    height: 180px;
    gap: 6px;
}

.admin-prospect-chart-bar {
    display: grid;
    grid-template-rows: 1fr auto;
    align-items: end;
    height: 100%;
}

.admin-prospect-chart-bar span {
    display: block;
    min-height: 4px;
    border-radius: 999px 999px 3px 3px;
    background: linear-gradient(180deg, #6e3a7d, #c95b3a);
}

.admin-prospect-chart-bar small {
    padding-top: 6px;
    color: #82727f;
    font-size: .68rem;
    text-align: center;
}

.admin-prospect-linker {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: stretch;
    gap: 14px;
    margin-top: 20px;
}

.admin-linked-sellers-card {
    margin-top: 20px;
}

.admin-linked-sellers-card .admin-prospect-link-row {
    justify-content: space-between;
}

.admin-prospect-list-heading {
    margin-bottom: 12px;
}

.admin-prospect-list-heading h5 {
    margin: 0;
    color: #2f103f;
    font-weight: 800;
}

.admin-prospect-search {
    display: flex;
    gap: 7px;
}

.admin-prospect-search .form-control {
    min-width: 180px;
}

.admin-prospect-link-list {
    display: grid;
    gap: 8px;
    min-height: 310px;
}

.admin-prospect-link-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #f0e6ed;
    cursor: pointer;
}

.admin-prospect-link-row input {
    width: 18px;
    height: 18px;
    accent-color: #6e3a7d;
}

.admin-prospect-link-row span {
    display: grid;
    min-width: 0;
}

.admin-prospect-link-row small {
    overflow: hidden;
    color: #756979;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-prospect-link-action {
    display: grid;
    place-items: center;
}

@media (max-width: 767.98px) {
    .commercial-section-heading,
    .commercial-contact-sheet-head,
    .admin-prospect-list-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .commercial-section-heading .commercial-primary-button {
        width: 100%;
    }

    .commercial-form-grid,
    .commercial-contact-entry-form,
    .commercial-history-entry,
    .commercial-client-picker {
        grid-template-columns: 1fr;
    }

    .commercial-client-picker .commercial-primary-button {
        width: 100%;
    }

    .admin-prospects-filter,
    .admin-prospect-search {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-prospect-linker {
        grid-template-columns: 1fr;
    }

    .admin-prospect-link-action {
        min-height: 44px;
    }

    .admin-prospect-link-action .btn {
        width: 100%;
    }
}

@media (min-width: 768px) {
    #clipGenerationModal.clip-product-has-many-images .modal-dialog {
        align-items: flex-start;
        margin-top: 28px;
        margin-bottom: 28px;
    }

    #clipGenerationModal.clip-product-has-many-images .clip-generation-modal {
        max-height: calc(100dvh - 56px);
        overflow: hidden;
    }

    #clipGenerationModal.clip-product-has-many-images .clip-generation-modal .modal-body {
        grid-template-rows: auto;
        min-height: 0;
        max-height: calc(100dvh - 108px);
        overflow-y: auto;
        overflow-x: hidden;
    }

    #clipGenerationModal.clip-product-has-many-images .clip-generation-product,
    #clipGenerationModal.clip-product-has-many-images .clip-generation-avatar,
    #clipGenerationModal.clip-product-has-many-images .clip-generation-submit,
    #clipGenerationModal.clip-product-has-many-images .clip-generation-operator {
        grid-row: 1;
    }

    #clipGenerationModal.clip-product-has-many-images .clip-generation-product {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        min-height: 0;
    }

    #clipGenerationModal.clip-product-has-many-images .clip-generation-product > .own-product-upload:not([hidden]) {
        display: contents;
    }

    #clipGenerationModal.clip-product-has-many-images .clip-generation-product-controls,
    #clipGenerationModal.clip-product-has-many-images .own-product-upload-controls {
        order: 1;
        width: 100%;
    }

    #clipGenerationModal.clip-product-has-many-images .clip-generation-product-title {
        position: static;
        order: 2;
        transform: none;
        margin: 0;
    }

    #clipGenerationModal.clip-product-has-many-images .post-product-selection,
    #clipGenerationModal.clip-product-has-many-images #ownProductPreviewGrid,
    #clipGenerationModal.clip-product-has-many-images .clip-generation-product > #clipProductImage {
        position: static;
        order: 3;
        width: 100%;
        height: auto;
        max-height: none;
        margin: 0;
    }

    #clipGenerationModal.clip-product-has-many-images .post-product-selection .own-product-preview-grid,
    #clipGenerationModal.clip-product-has-many-images .own-product-upload .own-product-preview-grid {
        height: auto;
        max-height: none;
    }

    #clipGenerationModal.clip-product-has-many-images .clip-advanced-open {
        position: static;
        order: 4;
        margin: 0 auto;
    }
}

#clipGenerationModal.clip-mode-single .clip-generation-modal .modal-body {
    --clip-generation-controls-height: 48px;
}

.clip-generation-product,
.clip-generation-avatar,
.clip-generation-submit {
    min-height: var(--clip-generation-media-height);
    display: grid;
    justify-items: center;
    align-items: start;
    position: relative;
}

.clip-generation-product {
    grid-column: 1;
    grid-row: 1 / span 3;
}

.clip-generation-avatar {
    grid-column: 3;
    grid-row: 2;
    margin-top: 0;
    grid-template-rows: var(--clip-generation-media-height) var(--clip-generation-button-height);
    gap: 14px;
}

.clip-generation-avatar .btn {
    height: var(--clip-generation-button-height);
    padding-top: 0;
    padding-bottom: 0;
    color: #5e5260;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.clip-generation-panel-title {
    color: #5e5260;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.1;
    text-align: center;
}

.clip-generation-product-title {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    justify-self: center;
    transform: translateY(-24px);
    z-index: 1;
}

.clip-generation-avatar-title {
    position: absolute;
    top: -24px;
    left: 0;
    right: 0;
    z-index: 1;
}

.clip-generation-submit {
    grid-column: 5;
    grid-row: 2;
    margin-top: 0;
}

.clip-generation-modal .modal-header {
    align-items: center;
    gap: 12px;
}

.clip-generation-modal .modal-title {
    flex: 0 0 auto;
}

.clip-generation-close-hint {
    flex: 1 1 auto;
    margin-left: auto;
    text-align: right;
    color: #8a7c88;
    font-size: .86rem;
    font-weight: 700;
}

.clip-generation-close-hint[hidden] {
    display: none !important;
}

.clip-generation-submit {
    align-content: start;
    gap: 14px;
}

.clip-generate-button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
}

.clip-generate-button span {
    order: 0;
}

.clip-generate-button img {
    order: 1;
}

.clip-generation-operator {
    grid-row: 2;
    align-self: start;
    justify-self: stretch;
    display: grid;
    place-items: center;
    width: 100%;
    height: var(--clip-generation-media-height);
    margin: 0;
    position: relative;
}

.clip-generation-operator::before {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    width: 38px;
    height: 38px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(79, 42, 112, .16);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(38, 28, 42, .08);
}

.clip-generation-operator {
    color: #4f2a70;
    font-size: 1.45rem;
    font-weight: 950;
    line-height: 1;
}

.clip-generation-operator::after {
    content: attr(data-symbol);
    position: absolute;
    inset: 50% auto auto 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    line-height: 0;
    transform: translate(-50%, -50%);
}

.clip-generation-plus {
    grid-column: 2;
    transform: translateX(15px);
}

.clip-generation-equals {
    grid-column: 4;
    transform: translateX(-15px);
}

.clip-generation-product {
    min-height: calc(var(--clip-generation-controls-height) + var(--clip-generation-media-height) + var(--clip-generation-button-height) + 28px);
    gap: 12px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: var(--clip-generation-controls-height) var(--clip-generation-media-height) var(--clip-generation-button-height);
    align-content: start;
}

.clip-generation-product-controls {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    min-height: 0;
}

.clip-generation-product img {
    width: 100%;
    height: var(--clip-generation-media-height);
    object-fit: contain;
    padding: 14px;
    border: 1px solid #eadfd6;
    border-radius: 18px;
    background: #fff;
}

.clip-generation-product > #clipProductImage {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
}

.clip-advanced-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    justify-self: center;
    width: auto;
    height: var(--clip-generation-button-height);
    min-width: 220px;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-radius: 999px;
    font-weight: 850;
}

.clip-advanced-open svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

#clipAdvancedSettingsModal {
    z-index: 1095;
}

#clipSubtitleSettingsModal {
    z-index: 1105;
}

#clipVoiceSettingsModal {
    z-index: 1105;
}

#clipAdvancedSettingsModal + .modal-backdrop,
.clip-advanced-backdrop {
    z-index: 1090;
}

.clip-voice-backdrop,
.clip-subtitle-backdrop {
    z-index: 1100;
}

.image-modal-backdrop {
    z-index: 1105;
}

#clipAdvancedSettingsModal .modal-xl {
    max-width: min(1120px, calc(100vw - 32px));
}

.clip-advanced-modal .modal-header,
.clip-advanced-modal .modal-footer {
    padding: 12px 18px;
}

.clip-advanced-modal .modal-body {
    padding: 14px 18px;
}

.clip-advanced-grid {
    display: grid;
    gap: 10px;
}

.clip-advanced-section {
    display: grid;
    grid-template-columns: minmax(456px, 456px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    padding: 12px 14px;
    border: 1px solid #eadfd6;
    border-radius: 14px;
    background: #fffaf6;
}

.clip-advanced-duration-section {
    align-items: center;
    grid-template-columns: minmax(456px, 456px) minmax(0, 1fr);
}

.clip-advanced-duration-section select {
    min-height: 42px;
    border-color: #eadfd6;
    font-weight: 800;
}

.clip-advanced-section > textarea,
.clip-advanced-section > .clip-subtitle-config,
.clip-advanced-section > .clip-cta-help {
    margin-top: 24px;
}

.clip-advanced-section > textarea {
    margin-top: 0;
}

.clip-advanced-section > .clip-subtitle-config {
    margin-top: 28px;
}

.clip-advanced-duration-section > select {
    margin-top: 0;
}

.clip-advanced-duration-help {
    display: grid;
    align-content: center;
    gap: 2px;
    min-height: 42px;
    color: #4f2a70;
    font-weight: 800;
}

.clip-advanced-duration-help[hidden] {
    display: none;
}

.clip-advanced-duration-help small {
    color: #766979;
    font-size: .78rem;
    font-weight: 700;
}

.clip-advanced-duration-control {
    display: grid;
    grid-template-columns: minmax(92px, auto) minmax(170px, 1fr);
    align-items: center;
    gap: 14px;
    width: 100%;
}

.clip-advanced-label-column {
    display: grid;
    gap: 6px;
    align-content: start;
}

.clip-advanced-label-column .form-label {
    margin-bottom: 0;
    color: #321244;
    font-size: .95rem;
    font-weight: 950;
    letter-spacing: 0;
}

.clip-advanced-toggle {
    display: inline-grid;
    grid-template-columns: 72px 72px minmax(150px, 1fr);
    gap: 4px;
    width: 100%;
    padding: 5px;
    border: 1px solid rgba(79, 42, 112, .14);
    border-radius: 999px;
    background: #fff;
}

.clip-advanced-mode,
.seller-preference-mode {
    min-height: 32px;
    min-width: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #6b5d6d;
    font-size: .82rem;
    font-weight: 850;
    padding: 5px 12px;
    white-space: nowrap;
}

.clip-advanced-mode.is-active,
.seller-preference-mode.is-active {
    background: linear-gradient(135deg, #4f2a70, #d45722);
    color: #fff;
    box-shadow: 0 8px 18px rgba(79, 42, 112, .16);
}

.seller-preferences-modal .modal-content.clip-advanced-modal {
    border-radius: 24px;
}

.seller-preferences-modal .clip-advanced-modal .modal-header {
    align-items: flex-start;
    background: #fff;
}

.seller-preferences-modal .modal-header p {
    color: #7b6f7c;
    margin: 0.25rem 0 0;
}

.seller-preferences-advanced-grid .clip-advanced-toggle {
    grid-template-columns: 1fr 1fr;
}

.seller-preferences-group-title {
    margin: 4px 2px 0;
    color: #321244;
    font-size: .95rem;
    font-weight: 950;
}

.clip-advanced-group-title {
    grid-column: 1 / -1;
    margin: -12px -12px 4px;
    padding: 10px 14px;
    border-radius: 14px 14px 0 0;
    background: rgba(79, 42, 112, .08);
    color: #321244;
    font-size: 1rem;
    font-weight: 950;
}

.post-image-selection-grid {
    display: none;
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    align-content: start;
}

.image-zoom-modal .modal-body.is-selection-grid {
    display: block;
    min-height: 360px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 24px;
}

.image-zoom-modal .modal-body.is-selection-grid > :not(.post-image-selection-grid) {
    display: none;
}

.image-zoom-modal .modal-body.is-selection-grid .post-image-selection-grid {
    display: grid;
}

.post-image-selection-card {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 190px;
    margin: 0;
    padding: 10px;
    border: 2px solid transparent;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.post-image-selection-card.is-selected {
    border: 4px solid #0b7b40;
    background: #c9f3d9;
    box-shadow: 0 0 0 6px rgba(21, 148, 81, .32), 0 10px 20px rgba(21, 148, 81, .16);
}

.post-image-selection-card input {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    display: grid;
    width: 30px;
    height: 30px;
    appearance: none;
    place-items: center;
    border: 3px solid #5b256d;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(48, 25, 62, .28);
}

.post-image-selection-card input:checked {
    border-color: #087438;
    background: #159451;
}

.post-image-selection-card input:checked::after {
    content: "\2713";
    color: #fff;
    font-size: 1.2rem;
    font-weight: 950;
    line-height: 1;
}

.post-image-selection-maximize {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 2px solid #5b256d;
    border-radius: 50%;
    background: #fff;
    color: #5b256d;
    box-shadow: 0 2px 8px rgba(48, 25, 62, .22);
}

.post-image-selection-maximize svg {
    width: 17px;
    height: 17px;
}

.post-image-selection-maximize:hover,
.post-image-selection-maximize:focus-visible {
    border-color: #087438;
    background: #d9f6e4;
    color: #087438;
}

.post-image-selection-card img {
    width: 100%;
    height: 210px;
    max-height: 28vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: none;
}

.post-image-selection-status {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(55, 51, 57, .78);
    color: #fff;
    font-size: .76rem;
    font-weight: 800;
}

.post-image-selection-card.is-selected .post-image-selection-status {
    background: #159451;
}

.post-image-selection-card.is-selected::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 3px solid rgba(255, 255, 255, .92);
    border-radius: 5px;
}

.post-image-fullscreen-modal .modal-body {
    min-height: 420px;
}

.clip-advanced-group {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(87, 39, 110, .12);
    border-radius: 16px;
}

.clip-advanced-group-video {
    background: #f6fbff;
}

.clip-advanced-group-video .clip-advanced-group-title {
    background: #e9f4fb;
}

.clip-advanced-group-audio {
    background: #f3fbf3;
}

.clip-advanced-group-audio .clip-advanced-group-title {
    background: #e3f3e6;
}

.seller-preferences-advanced-grid .clip-cta-toggle {
    grid-template-columns: 52px 82px 88px 82px 82px 52px;
}

.seller-preferences-advanced-grid .clip-cta-help {
    align-self: center;
}

.clip-speech-toggle {
    grid-template-columns: minmax(98px, 1fr) minmax(126px, 1.2fr) minmax(118px, 1.1fr);
}

.clip-prompt-toggle {
    grid-template-columns: minmax(98px, 1fr) minmax(86px, .85fr) minmax(138px, 1.25fr);
}

.clip-subtitle-toggle {
    grid-template-columns: 1fr 1fr;
}

.clip-mention-brand-toggle {
    grid-template-columns: 1fr 1fr;
}

.clip-mention-brand-input {
    align-self: center;
    min-height: 42px;
    border-color: #eadfd6;
    font-weight: 750;
}

.clip-music-toggle {
    grid-template-columns: 1fr 1fr;
}

.clip-advanced-section > .clip-music-toggle-bra {
    margin-top: 25px;
}

.clip-cta-toggle {
    grid-template-columns: 52px 82px 88px 82px 82px 52px;
    max-width: none;
}

.clip-cta-toggle .clip-advanced-mode,
.clip-cta-toggle .seller-preference-mode {
    white-space: normal;
    line-height: 1.1;
    padding-inline: 8px;
}

.clip-speech-toggle .clip-advanced-mode {
    white-space: normal;
    line-height: 1.1;
}

.clip-prompt-toggle .clip-advanced-mode {
    white-space: normal;
    line-height: 1.1;
}

.clip-advanced-label-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.clip-advanced-label-row span {
    color: #8b808d;
    font-size: .82rem;
    font-weight: 800;
}

.clip-advanced-label-column span {
    align-self: end;
    color: #8b808d;
    font-size: .78rem;
    font-weight: 800;
}

.clip-advanced-helper-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 24px;
}

.clip-advanced-tips-button {
    justify-self: end;
    min-height: 24px;
    border: 1px solid rgba(79, 42, 112, .24);
    border-radius: 999px;
    background: #fff;
    color: #4f2a70;
    font-size: .76rem;
    font-weight: 850;
    padding: 2px 10px;
}

.clip-advanced-tips-button:hover {
    border-color: rgba(79, 42, 112, .45);
    background: #f8f0fb;
}

.clip-writing-tips-modal {
    border: 1px solid rgba(79, 42, 112, .14);
}

.clip-writing-tips-modal .modal-body p {
    margin: 0;
    color: #4d4054;
    font-size: .95rem;
    font-weight: 750;
    line-height: 1.45;
}

.clip-speech-remaining {
    display: block;
    min-height: 16px;
    line-height: 16px;
}

.clip-speech-remaining.is-hidden {
    visibility: hidden;
}

.clip-advanced-section textarea {
    min-height: 68px;
    resize: vertical;
}

.clip-advanced-section #clipAdvancedSpeechText,
.clip-advanced-section #clipAdvancedPromptText {
    min-height: 92px;
}

.clip-subtitle-section {
    align-items: start;
    grid-template-columns: minmax(456px, 456px) minmax(0, 1fr);
}

.clip-cta-section {
    align-items: start;
    grid-template-columns: minmax(456px, 456px) minmax(0, 1fr);
}

.clip-cta-help {
    margin: 0;
    align-self: center;
    color: #6f6471;
    font-size: .9rem;
    font-weight: 750;
    line-height: 1.35;
}

.clip-subtitle-config {
    justify-self: start;
    min-width: 160px;
    min-height: 40px;
    border-color: #4f2a70;
    color: #4f2a70;
    font-weight: 850;
}

.clip-subtitle-config:disabled {
    opacity: .45;
}

.clip-subtitle-modal .modal-body {
    padding: 18px;
}

.clip-subtitle-config-grid {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.clip-subtitle-stage-panel,
.clip-subtitle-style-panel {
    padding: 14px;
    border: 1px solid #eadfd6;
    border-radius: 16px;
    background: #fffaf6;
}

.clip-subtitle-stage {
    position: relative;
    width: min(220px, 100%);
    aspect-ratio: 9 / 16;
    margin: 0 auto 14px;
    overflow: hidden;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(79, 42, 112, .15), rgba(212, 87, 34, .12)),
        #efe9df;
    box-shadow: inset 0 0 0 1px rgba(79, 42, 112, .18);
}

.clip-subtitle-safe-area {
    position: absolute;
    inset: 8%;
    border: 1px dashed rgba(79, 42, 112, .25);
    border-radius: 16px;
}

.clip-subtitle-preview-text {
    position: absolute;
    left: 50%;
    top: 82%;
    width: 78%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: .9rem;
    font-weight: 950;
    line-height: 1.12;
    pointer-events: none;
}

.clip-subtitle-nudge {
    display: grid;
    grid-template-columns: 46px 78px 46px;
    column-gap: 16px;
    row-gap: 8px;
    align-items: center;
    justify-content: center;
}

.clip-subtitle-nudge button {
    width: 40px;
    min-height: 36px;
    border: 1px solid #eadfd6;
    border-radius: 999px;
    background: #fff;
    color: #4f2a70;
    font-weight: 900;
    justify-self: center;
}

.clip-subtitle-nudge [data-subtitle-reset],
.clip-subtitle-nudge [data-pref-subtitle-reset] {
    width: 78px;
    font-size: .78rem;
}

.clip-subtitle-style-panel {
    display: grid;
    gap: 10px;
}

.clip-subtitle-style-panel h6 {
    margin: 0 0 4px;
    color: #321244;
    font-size: .95rem;
    font-weight: 950;
}

.clip-subtitle-style-option {
    display: grid;
    gap: 6px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #eadfd6;
    border-radius: 14px;
    background: #fff;
    text-align: left;
}

.clip-subtitle-style-option.is-active {
    border-color: #4f2a70;
    box-shadow: 0 10px 24px rgba(79, 42, 112, .12);
}

.clip-subtitle-style-option small {
    color: #7c717e;
    font-size: .78rem;
    font-weight: 750;
}

.subtitle-style-sample {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 950;
    line-height: 1.12;
}

.subtitle-style-bold-white-shadow {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .95), 0 0 2px #000;
}

.subtitle-style-yellow-black {
    color: #ffe95c;
    -webkit-text-stroke: 1px #111;
    text-shadow: 0 2px 3px rgba(0, 0, 0, .65);
}

.subtitle-style-white-purple-box {
    color: #fff;
    background: rgba(79, 42, 112, .82);
    box-shadow: 0 8px 18px rgba(79, 42, 112, .22);
}

.subtitle-style-black-cream-box {
    color: #241426;
    background: rgba(255, 247, 235, .9);
    box-shadow: 0 8px 18px rgba(38, 28, 42, .12);
}

.subtitle-style-orange-white {
    color: #d45722;
    -webkit-text-stroke: .7px #fff;
    text-shadow: 0 2px 3px rgba(255, 255, 255, .75), 0 3px 8px rgba(0, 0, 0, .22);
}

@media (max-width: 860px) {
    .clip-advanced-section {
        grid-template-columns: 1fr;
    }

    .clip-advanced-toggle {
        grid-template-columns: 72px 72px minmax(140px, 1fr);
    }

    .clip-advanced-section > .clip-music-toggle-bra {
        margin-top: 0;
    }

    .clip-subtitle-toggle {
        grid-template-columns: 1fr 1fr;
    }

    .clip-cta-toggle {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-radius: 18px;
    }

    .clip-subtitle-config-grid {
        grid-template-columns: 1fr;
    }
}

.prompt-model-block {
    padding: 14px 16px;
    margin-bottom: 12px;
    border: 1px solid #eadfd6;
    border-radius: 16px;
    background: #fffaf6;
}

.prompt-model-block h6 {
    color: #2c173f;
    font-weight: 900;
}

.prompt-model-block p {
    margin-bottom: 6px;
    color: #5b4f5e;
}

.own-product-upload {
    width: 100%;
    min-height: 360px;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 12px;
    align-content: start;
    padding: 0;
}

.clip-generation-product > .own-product-upload:not([hidden]) {
    display: contents;
}

.own-product-upload-controls {
    grid-column: 1;
    grid-row: 1;
    display: grid;
    gap: 8px;
    width: 100%;
    justify-self: stretch;
    justify-items: center;
}

.clip-generation-product .post-product-selection,
.clip-generation-product #ownProductPreviewGrid {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    justify-self: center;
}

.clip-generation-product .own-product-upload-controls {
    grid-column: 1;
    grid-row: 1;
}

.own-product-upload[hidden] {
    display: none !important;
}

.own-product-title-input {
    width: 100%;
    justify-self: stretch;
    min-height: 44px;
    border-radius: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}

.own-product-dropzone {
    width: 220px;
    max-width: 100%;
    margin-top: -10px;
    min-height: 40px;
    border: 1px solid rgba(32, 163, 91, .32);
    border-radius: 999px;
    background: #e8f8ed;
    color: #0f7d43;
    display: flex;
    align-items: center;
    justify-content: center;
    place-items: center;
    gap: 0;
    padding: 7px 16px;
    text-align: center;
    font-weight: 850;
    line-height: 1.1;
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.own-product-dropzone small {
    display: none;
}

.own-product-dropzone:hover,
.own-product-dropzone:focus,
.own-product-dropzone.is-dragging {
    border-color: rgba(15, 125, 67, .6);
    background: #d9f5e2;
    transform: translateY(-1px);
}

.own-product-dropzone.has-file {
    border-style: solid;
    border-color: rgba(32, 163, 91, .55);
    background: #e8f8ed;
}

.own-product-upload #ownProductPreview {
    width: 100%;
    height: 120px;
    border: 1px solid #eadfd6;
    border-radius: 16px;
    background: #fff;
    object-fit: contain;
    padding: 8px;
}

.own-product-preview-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: center;
    justify-items: center;
}

.post-product-selection {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    height: var(--clip-generation-media-height);
    align-self: start;
}

#ownProductPreviewGrid {
    grid-column: 1;
    grid-row: 2;
    height: var(--clip-generation-media-height);
}

.clip-advanced-open {
    grid-column: 1;
    grid-row: 3;
}

.post-product-selection .own-product-preview-grid,
.own-product-upload .own-product-preview-grid {
    grid-template-columns: 1fr;
    height: 100%;
    width: 100%;
}

.post-product-selection[data-image-count="1"] .own-product-preview-grid,
.own-product-upload[data-image-count="1"] .own-product-preview-grid {
    width: min(276px, 100%);
    max-width: 276px;
    justify-self: center;
    justify-items: stretch;
}

.post-product-selection[data-image-count="2"] .own-product-preview-grid,
.own-product-upload[data-image-count="2"] .own-product-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
}

.post-product-selection:not([data-image-count="0"]):not([data-image-count="1"]):not([data-image-count="2"]) .own-product-preview-grid,
.own-product-upload:not([data-image-count="0"]):not([data-image-count="1"]):not([data-image-count="2"]) .own-product-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-product-selection .own-product-preview-card,
.own-product-upload .own-product-preview-card {
    height: 132px;
    min-height: 0;
    aspect-ratio: auto;
}

.post-product-selection[data-image-count="1"] .own-product-preview-card,
.own-product-upload[data-image-count="1"] .own-product-preview-card {
    width: min(276px, 100%) !important;
    height: var(--clip-generation-media-height) !important;
    min-height: 0;
    aspect-ratio: auto !important;
    justify-self: stretch;
}

.post-product-selection:not([data-image-count="0"]):not([data-image-count="1"]):not([data-image-count="2"]) .own-product-preview-card,
.own-product-upload:not([data-image-count="0"]):not([data-image-count="1"]):not([data-image-count="2"]) .own-product-preview-card {
    height: 132px;
    width: 100%;
}

.own-product-dropzone.is-disabled,
.own-product-dropzone:disabled {
    cursor: not-allowed;
    opacity: .72;
    transform: none;
}

.billing-balance-estimate,
#billingConfirmMessage {
    white-space: pre-line;
}

.collaborator-add-button {
    transform: translateY(-3px);
    min-width: 86px;
}

.settings-header-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.marketplace-connect-button {
    background: #ffe600;
    border: 1px solid #d8c400;
    color: #2c173f;
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(38, 28, 42, .08);
}

.marketplace-connect-button:hover,
.marketplace-connect-button:focus {
    background: #fff04a;
    border-color: #c8b400;
    color: #2c173f;
}

.own-product-preview-grid[hidden] {
    display: none !important;
}

.own-product-preview-card {
    position: relative;
    aspect-ratio: 1;
    border: 1px solid #eadfd6;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(38, 28, 42, .08);
}

.own-product-preview-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.clip-generation-modal .post-product-selection[data-image-count="1"] .own-product-preview-grid,
.clip-generation-modal .own-product-upload[data-image-count="1"] .own-product-preview-grid {
    width: 276px;
    max-width: 100%;
    height: var(--clip-generation-media-height);
}

.clip-generation-modal .post-product-selection[data-image-count="1"] .own-product-preview-card,
.clip-generation-modal .own-product-upload[data-image-count="1"] .own-product-preview-card {
    width: 276px !important;
    min-width: 276px;
    max-width: 100%;
    height: var(--clip-generation-media-height) !important;
}

.own-product-preview-zoom,
.own-product-preview-remove {
    position: absolute;
    z-index: 2;
    width: 26px;
    height: 26px;
    border: 1px solid #eadfd6;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: #4f2a70;
    display: grid;
    place-items: center;
    font-size: .82rem;
    font-weight: 900;
    box-shadow: 0 8px 16px rgba(38, 28, 42, .14);
}

.own-product-preview-zoom {
    top: 6px;
    left: 6px;
}

.own-product-preview-remove {
    top: 6px;
    right: 6px;
    color: #b42c2c;
}

.own-product-preview-zoom:hover,
.own-product-preview-zoom:focus,
.own-product-preview-remove:hover,
.own-product-preview-remove:focus {
    border-color: #d46336;
    color: #d46336;
}

.clip-bulk-count {
    color: #2c173f;
    font-size: 1.35rem;
    font-weight: 800;
    text-align: center;
    padding: 18px;
}

.clip-generation-avatar {
    grid-template-rows: 276px auto;
    gap: 14px;
}

.clip-generation-avatar-frame {
    width: 100%;
    max-width: 276px;
    height: 276px;
    border: 1px solid #eadfd6;
    border-radius: 18px;
    background: #fff;
    padding: 18px;
    box-shadow: 0 12px 26px rgba(38, 28, 42, .08);
    position: relative;
}

.clip-generation-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: 0;
    border-radius: 12px;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.clip-generation-avatar .btn {
    border-radius: 999px;
    min-width: 112px;
}

.clip-generate-button {
    width: 100%;
    max-width: 276px;
    height: 276px;
    border: 1px solid #eadfd6;
    border-radius: 22px;
    background: #f5efe7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    box-shadow: 0 16px 34px rgba(38, 28, 42, .12);
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.clip-generate-button:hover,
.clip-generate-button:focus {
    background: #fff7f0;
    border-color: #d46336;
    transform: translateY(-1px);
}

.clip-generate-button img {
    width: 68%;
    height: 68%;
    object-fit: contain;
    border-radius: 16px;
    order: 2;
}

.clip-generate-button span {
    color: #5e5260;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0;
    order: 1;
}

.clip-generate-button.is-saving,
.clip-generate-button.is-generating {
    cursor: progress;
}

.clip-save-spinner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #4f2a70;
    font-weight: 800;
}

.clip-generation-message {
    width: 100%;
    max-width: 276px;
    border: 1px solid rgba(212, 99, 54, .28);
    border-radius: 16px;
    background: #fff7f0;
    color: #4f2a70;
    font-size: .98rem;
    font-weight: 800;
    text-align: center;
    padding: 12px 14px;
    box-shadow: 0 10px 22px rgba(38, 28, 42, .08);
}

.clip-generation-progress {
    width: 100%;
    max-width: 276px;
    height: 12px;
    border-radius: 999px;
    background: #dfeee4;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(38, 28, 42, .1);
}

.clip-generation-progress-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #20a35b;
    transition: width .45s linear;
}

.clip-debug-open {
    width: 100%;
    max-width: 276px;
    border-radius: 999px;
    font-weight: 800;
}

.clip-debug-modal .modal-body {
    background: #fffaf6;
}

.clip-debug-textarea {
    min-height: 220px;
    font-family: Consolas, "Liberation Mono", monospace;
    font-size: .82rem;
    line-height: 1.45;
    white-space: pre;
}

.avatar-picker-modal .modal-body {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
    gap: 16px;
    padding: 22px;
    background: #fffaf6;
}

.avatar-option-card {
    position: relative;
}

.avatar-api-id {
    display: block;
    margin-top: 6px;
    color: #4f2b73;
    font-size: .78rem;
    font-weight: 800;
    text-align: center;
}

.avatar-own-card {
    align-self: start;
}

.avatar-upload-panel {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px dashed rgba(79, 42, 112, .28);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(79, 42, 112, .06), rgba(214, 84, 38, .06));
}

.avatar-upload-panel strong,
.avatar-upload-panel span {
    display: block;
}

.avatar-upload-panel strong {
    color: #32164f;
    font-weight: 800;
}

.avatar-upload-panel span {
    color: #7b7280;
    font-size: .9rem;
}

.seller-avatar-upload-gender {
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    min-width: 190px;
    padding: 4px;
    border: 1px solid #eadfd6;
    border-radius: 999px;
    background: #fff;
}

.seller-avatar-upload-gender button {
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #5d5265;
    font-weight: 900;
    min-height: 34px;
    padding: 0 14px;
}

.seller-avatar-upload-gender button.is-active {
    background: linear-gradient(135deg, #6c2d72, #d65426);
    color: #fff;
}

.avatar-gender-dialog {
    max-width: 420px;
}

.avatar-gender-modal .modal-body {
    display: grid;
    gap: 14px;
    background: #fffaf6;
    padding: 20px;
}

.avatar-gender-modal p {
    color: #6f6874;
    font-weight: 800;
    margin: 0;
}

.avatar-gender-choice {
    grid-template-columns: 1fr .36fr 1fr;
    width: 100%;
    min-width: 0;
}

.avatar-gender-choice .avatar-gender-neutral {
    min-width: 36px;
    padding-inline: 0;
}

.avatar-gender-warning {
    color: #b42c2c;
    font-size: .84rem;
    font-weight: 800;
}

.avatar-picker-section-title {
    grid-column: 1 / -1;
    color: #32164f;
    font-size: .9rem;
    font-weight: 800;
    margin-top: .35rem;
}

.avatar-klipia-filters {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(150px, 220px) minmax(220px, 1fr);
    gap: .75rem;
    align-items: end;
    padding: .85rem;
    border: 1px solid #eadfd6;
    border-radius: 16px;
    background: rgba(255, 255, 255, .72);
}

.avatar-klipia-filters label {
    display: grid;
    gap: .35rem;
    margin: 0;
}

.avatar-klipia-filters span {
    color: #4f2a70;
    font-size: .82rem;
    font-weight: 800;
}

.avatar-option-button {
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid #eadfd6;
    border-radius: 18px;
    background: #fff;
    display: grid;
    place-items: center;
    padding: 10px;
    box-shadow: 0 12px 24px rgba(38, 28, 42, .08);
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.avatar-option-button:hover,
.avatar-option-button:focus {
    background: #fff7f0;
    border-color: #d46336;
    transform: translateY(-1px);
}

.avatar-option-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 14px;
}

.avatar-expand-button {
    position: absolute;
    top: 7px;
    right: 7px;
    z-index: 2;
    width: 30px;
    height: 30px;
    border: 1px solid #eadfd6;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: #4f2a70;
    display: grid;
    place-items: center;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(38, 28, 42, .16);
}

.avatar-delete-button {
    position: absolute;
    top: 7px;
    left: 7px;
    z-index: 2;
    width: 30px;
    height: 30px;
    border: 1px solid #eadfd6;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: #a83232;
    display: grid;
    place-items: center;
    font-weight: 900;
    line-height: 1;
}

.avatar-reference-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 9px;
}

.avatar-reference-add,
.avatar-reference-card {
    width: 44px;
    height: 44px;
    border: 1px solid #eadfd6;
    border-radius: 12px;
    background: #fffaf6;
}

.avatar-reference-add {
    color: #4f2a70;
    display: grid;
    place-items: center;
    font-size: 1.45rem;
    font-weight: 900;
}

.avatar-reference-card {
    position: relative;
    overflow: hidden;
}

.avatar-reference-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-reference-zoom,
.avatar-reference-remove {
    position: absolute;
    z-index: 2;
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    display: grid;
    place-items: center;
    font-size: .7rem;
    line-height: 1;
}

.avatar-reference-zoom {
    left: 3px;
    top: 3px;
    color: #4f2a70;
}

.avatar-reference-remove {
    right: 3px;
    top: 3px;
    color: #a83232;
    font-weight: 900;
}

.avatar-expand-button:hover,
.avatar-expand-button:focus {
    color: #d46336;
    border-color: #d46336;
}

.avatar-preview-modal .modal-body {
    display: grid;
    place-items: center;
    min-height: 60vh;
    padding: 18px;
    background: #fffaf6;
    cursor: zoom-out;
}

.avatar-preview-modal img {
    max-width: 100%;
    max-height: 72vh;
    border-radius: 22px;
    object-fit: contain;
    box-shadow: 0 18px 44px rgba(38, 28, 42, .16);
    cursor: zoom-out;
}

.empty-state {
    min-height: 320px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 42px 18px;
    color: #766b75;
}

.empty-state img {
    width: 82px;
    height: 82px;
    object-fit: contain;
    margin-bottom: 14px;
    opacity: .78;
}

.empty-state h5 {
    color: #2c173f;
    font-weight: 800;
    margin-bottom: 6px;
}

.seller-publications-loading-splash {
    min-height: 360px;
    border: 1px solid #eadfd6;
    border-radius: 22px;
    background: linear-gradient(135deg, #fffaf6, #f4fff8);
}

.seller-publications-loading-splash img {
    margin-bottom: 8px;
}

.seller-publications-loading-splash h5 {
    max-width: 620px;
    margin: 4px auto 8px;
    font-size: 1.15rem;
}

@media (min-width: 720px) {
    .seller-publications-loading-splash h5 {
        max-width: none;
        white-space: nowrap;
    }
}

.seller-publications-loading-splash p {
    max-width: 680px;
    margin: 0 auto;
    color: #6d606e;
    font-weight: 700;
}

.seller-publications-loading-spinner {
    width: 34px;
    height: 34px;
    border: 3px solid rgba(34, 167, 97, .18);
    border-top-color: #22a761;
    border-radius: 999px;
    animation: klipia-spin .8s linear infinite;
}

@keyframes klipia-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (min-width: 768px) {
    .seller-publications-table-wrap {
        overflow-x: hidden;
    }

    .seller-posts-table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
    }

    .seller-posts-table th:nth-child(2),
    .seller-posts-table td:nth-child(2) {
        width: 92px;
    }

    .publication-select-column,
    .publication-select-cell {
        width: 42px;
        min-width: 42px;
        max-width: 42px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .publication-code-cell,
    .seller-posts-table th:nth-child(3) {
        width: 170px;
    }

    .publication-title-column,
    .seller-post-title,
    .seller-posts-table .seller-post-title {
        width: 60ch;
        min-width: 0;
        max-width: 60ch;
    }

    .seller-post-title {
        overflow: hidden;
        overflow-wrap: anywhere;
        vertical-align: middle !important;
    }

    .publication-status-column,
    .publication-status-cell {
        width: 150px;
        min-width: 150px;
        padding-left: 0 !important;
        padding-right: 14px !important;
    }

    .publication-price-column,
    .publication-price-cell {
        width: 86px;
        min-width: 86px;
    }

    .publication-visits-column,
    .publication-visits-cell {
        width: 76px;
        min-width: 76px;
    }

    .publication-actions-column,
    .publication-actions-cell {
        width: 104px;
        min-width: 104px;
        padding-right: 8px !important;
        text-align: center !important;
    }

    .publication-clips-column,
    .publication-clips-cell {
        width: 132px;
        min-width: 132px;
        padding-right: 10px !important;
    }

    .post-image-button,
    .post-image-placeholder {
        width: 76px;
        height: 76px;
    }

    .klipia-action-button {
        width: 42px;
        height: 42px;
    }

    .clip-preview video {
        width: 72px;
    }

    .clip-download-button,
    .clip-upload-button {
        width: 72px;
    }
}

@media (min-width: 768px) and (max-width: 1180px) {
    .publication-title-column,
    .seller-post-title,
    .seller-posts-table .seller-post-title {
        width: 33%;
        max-width: 33vw;
    }

    .seller-post-title {
        font-size: .92rem;
    }
}

@media (min-width: 768px) and (max-width: 1120px) {
    .publication-visits-column,
    .publication-visits-cell {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1040px) {
    .seller-posts-table th:nth-child(3),
    .publication-code-cell {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 960px) {
    .publication-price-column,
    .publication-price-cell {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 900px) {
    .publication-status-column,
    .publication-status-cell {
        display: none;
    }

    .seller-post-title {
        font-size: .88rem;
    }

    .post-image-button,
    .post-image-placeholder {
        width: 68px;
        height: 68px;
    }

    .seller-posts-table th:nth-child(2),
    .seller-posts-table td:nth-child(2) {
        width: 78px;
    }
}

@media (max-width: 767.98px) {
    html,
    body,
    .seller-body,
    .seller-wrapper,
    #page-wrapper,
    #page-wrapper main.container-fluid {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .seller-wrapper #page-wrapper {
        padding: 12px 10px 18px;
    }

    .seller-body .admin-navbar {
        min-height: 96px;
    }

    .seller-body .admin-navbar .container-fluid {
        min-width: 0;
        padding-left: 14px;
        padding-right: 14px;
    }

    .seller-body .admin-brand img {
        height: 62px;
        max-width: 204px;
    }

    .seller-user-menu {
        min-width: 0;
    }

    .language-selector {
        max-width: 56px;
    }

    .page-title,
    .seller-publications-card,
    .seller-own-products-card {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: 12px;
        border-radius: 18px;
        overflow: hidden;
    }

    .seller-mode-toggle {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .seller-mode-toggle-button {
        min-width: 0;
        white-space: normal;
        line-height: 1.15;
        padding: 10px 8px;
        font-size: .86rem;
    }

    .seller-publications-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
        max-width: 100%;
        padding: 12px;
        overflow: hidden;
    }

    .seller-publications-actions .generate-clips-button {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .seller-publications-filter-group {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr) 74px 42px;
        grid-template-areas:
            "advanced text clear search"
            "numeric numeric numeric numeric"
            "account account account account"
            "clip clip clip clip";
        gap: 10px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        align-items: end;
    }

    .seller-filter-field,
    .seller-login-filter,
    .seller-clip-filter-field,
    .seller-text-filter-field,
    .seller-publications-filter-group .table-filter {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .seller-advanced-filters-toggle {
        grid-area: advanced;
        align-self: end;
    }

    .seller-numeric-filters {
        grid-area: numeric;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .seller-filter-field {
        grid-column: 1 / -1;
    }

    .seller-login-filter-field {
        grid-area: account;
    }

    .seller-numeric-filters[hidden] {
        display: none !important;
    }

    .seller-clip-filter-field {
        grid-area: clip;
    }

    .seller-text-filter-field {
        grid-area: text;
    }

    .seller-publications-clear-button {
        grid-area: clear;
        align-self: end;
        width: 100%;
        min-width: 0;
        padding-left: 0;
        padding-right: 0;
        font-size: .78rem;
    }

    .seller-publications-search-button {
        grid-area: search;
        align-self: end;
        width: 42px;
        min-width: 42px;
        padding-left: 0;
        padding-right: 0;
    }

    .seller-clip-toggle {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        border-radius: 16px;
    }

    .seller-clip-toggle-button {
        min-width: 0;
        padding: 0 4px;
        font-size: .7rem;
        line-height: 1.05;
        white-space: normal;
        overflow: hidden;
    }

    .seller-publications-table-wrap {
        width: 100%;
        max-width: 100%;
        overflow: visible !important;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .seller-posts-table,
    .seller-posts-table tbody,
    .seller-posts-table tr,
    .seller-posts-table td,
    .seller-own-products-table,
    .seller-own-products-table tbody,
    .seller-own-products-table tr,
    .seller-own-products-table td {
        display: block;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .seller-posts-table,
    .seller-own-products-table {
        table-layout: auto;
        border-collapse: separate;
        border-spacing: 0;
    }

    .seller-posts-table thead,
    .seller-own-products-table thead {
        display: none;
    }

    .seller-posts-table tbody tr {
        position: relative;
        display: grid;
        grid-template-columns: 26px 92px minmax(0, 1fr) 72px 52px minmax(82px, auto);
        grid-template-areas:
            "select image title title title title"
            "select image code price price price"
            "visits visits status status actions clips";
        gap: 8px 10px;
        margin: 0 0 12px;
        padding: 12px;
        border: 1px solid #eadfd6;
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 10px 24px rgba(38, 28, 42, .07);
        overflow: hidden;
    }

    .seller-posts-table tbody tr:hover,
    .seller-posts-table.table-hover > tbody > tr:hover > *,
    .seller-posts-table.table-hover > tbody > tr:focus-within > * {
        --bs-table-bg-state: transparent;
        background: transparent !important;
        background-color: transparent !important;
    }

    .seller-posts-table tbody tr:hover {
        background: #fff !important;
    }

    .seller-posts-table tbody td,
    .seller-own-products-table tbody td {
        border: 0 !important;
        padding: 0 !important;
        text-align: left !important;
        vertical-align: top;
        background: transparent !important;
    }

    .publication-select-cell {
        grid-area: select;
        position: static;
        z-index: 2;
        width: auto !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 0 !important;
    }

    .publication-select-cell .form-check-input {
        margin: 0;
        background-color: rgba(255, 255, 255, .92);
        box-shadow: 0 4px 10px rgba(38, 28, 42, .16);
    }

    .publication-image-cell {
        grid-area: image;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .post-image-button,
    .post-image-placeholder {
        width: 92px;
        height: 92px;
        margin: 0;
        border-radius: 16px;
        background: #fff;
    }

    .seller-post-title {
        grid-area: title;
        min-width: 0 !important;
        max-width: 100% !important;
        color: #2c173f;
        font-size: .96rem;
        line-height: 1.22;
        font-weight: 800;
        white-space: normal;
        overflow: hidden;
        overflow-wrap: anywhere;
        display: -webkit-box !important;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .publication-code-cell {
        grid-area: code;
        display: flex !important;
        align-items: center;
        gap: 6px;
        color: #2c173f;
        font-size: .82rem;
        font-weight: 800;
        overflow-wrap: anywhere;
        min-width: 0 !important;
    }

    .publication-code-cell span:first-child {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .publication-price-cell {
        grid-area: price;
        color: #2c173f;
        font-size: .82rem;
        font-weight: 400;
        text-align: right !important;
        align-self: center;
        justify-self: end;
        white-space: nowrap;
    }

    .publication-price-cell::before {
        content: "Precio ";
        color: #7b6f7e;
        font-weight: 700;
    }

    .publication-visits-cell {
        grid-area: visits;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #2c173f;
        font-size: .82rem;
        font-weight: 400;
        text-align: center !important;
        align-self: center;
        justify-self: start;
        width: 42px !important;
        min-width: 42px !important;
        margin-left: 0;
        line-height: 1.05;
    }

    .publication-visits-cell::before {
        content: "Visitas";
        color: #7b6f7e;
        font-weight: 700;
        display: block;
    }

    .publication-status-cell {
        grid-area: status;
        width: auto !important;
        min-width: 0 !important;
        display: flex !important;
        align-items: center;
        justify-content: flex-start;
        justify-self: start;
        padding-left: 5px !important;
        padding-right: 4px !important;
        overflow: visible;
    }

    .publication-status-wrap {
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        flex-wrap: wrap;
        overflow: visible;
    }

    .publication-status {
        width: auto;
        max-width: none;
        padding: 6px 12px;
        font-size: .68rem;
    }

    .publication-actions-cell {
        grid-area: actions;
        display: flex !important;
        align-items: center;
        justify-content: flex-start;
        background: transparent !important;
    }

    .publication-actions-cell::before {
        display: none;
    }

    .publication-clips-cell {
        grid-area: clips;
        display: grid !important;
        grid-template-columns: 1fr;
        align-items: center;
        justify-items: end;
        width: 100% !important;
        min-width: 0 !important;
        background: transparent !important;
        overflow: visible !important;
    }

    .seller-posts-table .klipia-action-button {
        background: #fff;
    }

    .publication-clips-cell::before {
        display: none;
        content: none;
    }

    .clip-preview {
        max-width: 82px;
        width: 82px;
    }

    .clip-preview video {
        width: 82px;
        max-width: 82px;
        border-radius: 12px;
    }

    .clip-download-button,
    .clip-upload-button {
        width: 82px;
    }

    .publication-clips-cell .clip-empty {
        max-width: 82px;
        white-space: normal;
        text-align: right;
        line-height: 1.15;
    }

    .seller-own-products-table tbody tr {
        display: grid;
        grid-template-columns: 78px minmax(0, 1fr);
        grid-template-areas:
            "image title"
            "clips clips";
        gap: 10px 18px;
        margin: 0 0 12px;
        padding: 12px;
        border: 1px solid #eadfd6;
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 10px 24px rgba(38, 28, 42, .07);
        overflow: hidden;
        -webkit-tap-highlight-color: transparent;
    }

    .seller-own-products-table tbody tr:hover,
    .seller-own-products-table tbody tr:active,
    .seller-own-products-table tbody tr:focus,
    .seller-own-products-table.table-hover > tbody > tr:hover > *,
    .seller-own-products-table.table-hover > tbody > tr:active > *,
    .seller-own-products-table.table-hover > tbody > tr:focus > *,
    .seller-own-products-table.table-hover > tbody > tr:focus-within > * {
        --bs-table-bg-state: transparent;
        background: #fff !important;
        background-color: transparent !important;
    }

    .seller-own-products-table td:nth-child(1) {
        grid-area: image;
    }

    .seller-own-products-table td:nth-child(2) {
        grid-area: title;
    }

    .seller-own-products-table td:nth-child(3) {
        grid-area: clips;
    }

    .own-product-thumb-button,
    .own-product-thumb {
        width: 78px;
        height: 78px;
        border-radius: 15px;
    }

    .own-product-title-cell {
        min-width: 0 !important;
        overflow-wrap: anywhere;
    }

    .own-product-clip-layout {
        display: grid !important;
        grid-template-columns: 48px minmax(92px, auto) !important;
        justify-content: start;
        justify-items: center;
        column-gap: 14px;
        padding-top: 4px !important;
    }

    .own-product-clip-layout > .klipia-action-button {
        transform: none;
    }

    .clip-generation-modal {
        max-height: calc(100dvh - 24px);
        overflow: hidden;
    }

    .clip-generation-modal .modal-header {
        flex: 0 0 auto;
        padding: 14px 16px;
    }

    .clip-generation-modal .modal-title {
        font-size: 1.35rem;
        line-height: 1.2;
    }

    .clip-generation-modal .modal-body {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px;
        min-height: 0;
        max-height: calc(100dvh - 112px);
        overflow-x: hidden;
        overflow-y: auto;
        padding: 16px;
    }

    .clip-generation-operator {
        display: none !important;
    }

    .clip-generation-product,
    .clip-generation-avatar,
    .clip-generation-submit {
        grid-column: auto;
        grid-row: auto;
        margin-top: 0;
        width: 100%;
        min-width: 0;
        min-height: 0;
        display: grid;
        justify-items: center;
    }

    .clip-generation-product {
        gap: 10px;
    }

    .clip-generation-product img,
    .clip-generation-avatar-frame {
        width: 100%;
        max-width: min(300px, 100%);
        height: 230px;
        max-height: 230px;
        object-fit: contain;
        padding: 12px;
    }

    .clip-generation-avatar img {
        height: 100%;
        max-height: none;
        padding: 0;
    }

    .clip-generation-avatar {
        grid-template-rows: auto auto;
        gap: 10px;
    }

    .clip-generation-avatar .btn,
    .clip-advanced-open {
        width: 100%;
        max-width: 300px;
        min-width: 0;
    }

    .clip-generation-submit {
        gap: 12px;
    }

    .clip-generate-button {
        width: 100%;
        max-width: 300px;
        height: 150px;
        min-height: 150px;
    }

    .clip-generate-button img {
        width: 86px;
        height: 86px;
    }

    .publication-actions-column,
    .publication-actions-cell .klipia-action-button {
        transform: none;
    }

    .clip-generation-message,
    .clip-generation-progress,
    .clip-debug-open {
        max-width: 300px;
    }

    .seller-accounts-table-wrap {
        width: 100%;
        max-width: 100%;
        overflow: visible !important;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .seller-accounts-table,
    .seller-accounts-table tbody,
    .seller-accounts-table tr,
    .seller-accounts-table td {
        display: block;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .seller-accounts-table thead {
        display: none;
    }

    .seller-accounts-table tbody {
        display: grid;
        gap: 12px;
    }

    .seller-accounts-table tbody tr {
        display: grid;
        gap: 8px;
        padding: 14px;
        border: 1px solid #eadfd6;
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 10px 24px rgba(38, 28, 42, .07);
    }

    .seller-accounts-table tbody td {
        display: grid;
        grid-template-columns: minmax(88px, .7fr) minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        border: 0 !important;
        padding: 0 !important;
        text-align: left !important;
        overflow-wrap: anywhere;
    }

    .seller-accounts-table tbody td::before {
        content: attr(data-label);
        color: #766b75;
        font-size: .72rem;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: .02em;
    }

    .seller-accounts-table .settings-pill,
    .seller-accounts-table .badge {
        justify-self: start;
        max-width: 100%;
        white-space: normal;
        text-align: left;
    }
}

@media (max-width: 420px) {
    .seller-posts-table tbody tr {
        grid-template-columns: 78px minmax(0, 1fr) 44px minmax(72px, auto);
        grid-template-areas:
            "image title title title"
            "image code code price"
            "visits status actions clips";
        gap: 8px;
        padding: 10px;
    }

    .post-image-button,
    .post-image-placeholder {
        width: 78px;
        height: 78px;
        border-radius: 14px;
    }

    .seller-post-title {
        font-size: .9rem;
        -webkit-line-clamp: 2;
    }

    .publication-code-cell {
        font-size: .78rem;
    }

    .publication-price-cell,
    .publication-visits-cell {
        font-size: .76rem;
    }

    .publication-status {
        padding: 5px 9px;
        font-size: .64rem;
    }

    .clip-preview,
    .clip-preview video,
    .clip-download-button,
    .clip-upload-button {
        width: 72px;
        max-width: 72px;
    }

    .publication-clips-cell .clip-empty {
        max-width: 72px;
        font-size: .76rem;
    }

    .seller-publications-card {
        padding: 10px;
    }

    .clip-generation-modal .modal-body {
        padding: 14px;
        gap: 14px;
    }

    .clip-generation-product img,
    .clip-generation-avatar-frame {
        max-height: 210px;
    }

    .clip-generate-button {
        height: 132px;
        min-height: 132px;
    }

    .seller-accounts-table tbody td {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 8px;
    }
}

@media (max-width: 767.98px) {
    .seller-body .admin-navbar .container-fluid {
        display: grid;
        grid-template-columns: minmax(96px, 1fr) auto;
        align-items: center;
        gap: 8px;
    }

    .seller-body .admin-brand {
        min-width: 0;
        overflow: hidden;
    }

    .seller-body .admin-brand img {
        max-width: min(190px, 42vw);
    }

    .seller-body #adminNavbar {
        min-width: 0;
        justify-content: end;
    }

    .seller-body .top-nav {
        gap: 6px;
        min-width: 0;
        flex-wrap: nowrap;
    }

    .seller-body .top-nav .nav-item {
        min-width: 0;
    }

    .app-language-select {
        min-width: 58px;
        width: 58px;
        padding-left: 8px;
        padding-right: 22px;
        font-size: .8rem;
    }

    .seller-credits-chip {
        max-width: 104px;
        min-height: 30px;
        padding: 6px 8px;
        font-size: .72rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .user-menu-button {
        width: 38px;
        height: 38px;
    }

    .user-menu-button svg {
        width: 21px;
        height: 21px;
    }

    .clip-generation-modal .modal-body {
        grid-template-columns: 1fr !important;
        max-width: 100%;
    }

    .clip-generation-operator {
        display: none !important;
    }

    .clip-generation-product,
    .clip-generation-avatar,
    .clip-generation-submit {
        grid-column: auto;
        grid-row: auto;
        margin-top: 0;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .clip-generation-product img,
    .clip-generation-avatar-frame,
    .clip-generate-button,
    .clip-advanced-open,
    .clip-generation-avatar .btn {
        max-width: min(300px, 100%);
    }

    #clipAdvancedSettingsModal .modal-dialog {
        margin: 10px;
    }

    #clipAdvancedSettingsModal .modal-xl {
        max-width: calc(100vw - 20px);
    }

    .clip-advanced-modal {
        max-height: calc(100dvh - 20px);
        overflow: hidden;
    }

    .clip-advanced-modal .modal-body {
        max-height: calc(100dvh - 132px);
        overflow-y: auto;
    }

    .clip-advanced-section,
    .clip-advanced-duration-section {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }

    .clip-advanced-group {
        min-width: 0;
        padding: 10px;
        border-radius: 14px;
    }

    .clip-advanced-group-title {
        margin: -10px -10px 2px;
        padding: 10px 12px;
        border-radius: 14px 14px 0 0;
    }

    .clip-advanced-duration-control {
        grid-template-columns: minmax(84px, auto) minmax(0, 170px);
        justify-content: start;
    }

    .clip-advanced-toggle,
    .clip-speech-toggle,
    .clip-prompt-toggle {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        border-radius: 16px;
    }

    .clip-advanced-mode {
        min-height: 36px;
        padding: 5px 7px;
        font-size: .72rem;
        white-space: normal;
        line-height: 1.1;
    }

    .seller-modal-embedded-body .seller-preferences-page,
    .seller-modal-embedded-body .seller-preferences-modal,
    .seller-modal-embedded-body .seller-preferences-modal .modal-dialog,
    .seller-modal-embedded-body .seller-preferences-modal .modal-content {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
    }

    .seller-modal-embedded-body .seller-preferences-modal .modal-content.clip-advanced-modal {
        max-height: none;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
    }

    .seller-modal-embedded-body .seller-preferences-modal .modal-header {
        display: none;
    }

    .seller-modal-embedded-body .seller-preferences-modal .modal-body {
        max-height: none;
        padding: 12px;
        overflow-x: hidden;
        overflow-y: visible;
    }

    .seller-modal-embedded-body .seller-preferences-modal .modal-footer {
        padding: 10px 12px;
        background: #fff;
    }

    .seller-modal-embedded-body .seller-preferences-modal .clip-advanced-grid {
        width: 100%;
        min-width: 0;
    }

    .seller-modal-embedded-body .seller-preferences-modal .clip-advanced-section {
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        min-width: 0;
        overflow: hidden;
    }

    .seller-modal-embedded-body .seller-preferences-modal .clip-advanced-label-column {
        min-width: 0;
    }

    .seller-modal-embedded-body .seller-preferences-modal .seller-preference-toggle,
    .seller-modal-embedded-body .seller-preferences-modal .seller-preferences-advanced-grid .clip-advanced-toggle {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        border-radius: 18px;
    }

    .seller-modal-embedded-body .seller-preferences-modal .seller-preferences-advanced-grid .clip-cta-toggle {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .seller-modal-embedded-body .seller-preferences-modal .seller-preference-mode {
        min-height: 38px;
        padding: 6px 8px;
        font-size: .78rem;
        line-height: 1.1;
        white-space: normal;
    }

    .seller-modal-embedded-body .seller-preferences-modal .clip-subtitle-config,
    .seller-modal-embedded-body .seller-preferences-modal .seller-preference-config-stack {
        width: 100%;
        max-width: 100%;
    }

    .clip-advanced-section textarea {
        min-height: 86px;
    }

    .seller-posts-table tbody tr {
        grid-template-columns: 92px minmax(0, 1fr) 48px minmax(82px, auto);
        grid-template-areas:
            "image title title title"
            "image code code price"
            "visits status actions clips";
        align-items: center;
        max-width: 100%;
    }

    .publication-actions-cell {
        justify-content: center;
    }

    .publication-clips-cell {
        justify-items: end;
        overflow: visible !important;
    }

    .publication-price-cell:empty::before,
    .publication-visits-cell:empty::before {
        content: none;
    }

    .seller-own-products-table tbody tr {
        grid-template-columns: 78px minmax(0, 1fr);
        grid-template-areas:
            "image title"
            "clips clips";
    }

    .own-product-clip-layout {
        grid-template-columns: 48px minmax(92px, auto) !important;
        justify-content: end;
        column-gap: 14px;
    }
}

@media (max-width: 420px) {
    .seller-posts-table tbody tr {
        grid-template-columns: 22px 78px minmax(0, 1fr) 66px 48px minmax(72px, auto);
        gap: 8px;
        padding: 10px;
    }

    .post-image-button,
    .post-image-placeholder {
        width: 78px;
        height: 78px;
        border-radius: 14px;
    }

    .seller-post-title {
        font-size: .9rem;
    }

    .publication-code-cell,
    .publication-price-cell,
    .publication-visits-cell {
        font-size: .76rem;
    }

    .publication-visits-cell {
        width: 38px !important;
        min-width: 38px !important;
    }

    .publication-status {
        padding: 5px 9px;
        font-size: .64rem;
    }

    .clip-preview,
    .clip-preview video,
    .clip-download-button,
    .clip-upload-button {
        width: 72px;
        max-width: 72px;
    }

    .publication-clips-cell .clip-empty {
        max-width: 72px;
        font-size: .76rem;
    }
}

@media (max-width: 380px) {
    .seller-body .admin-brand img {
        max-width: 150px;
    }

    .brand-beta-badge {
        padding: 2px 5px;
        font-size: .58rem;
    }

    .app-language-select {
        min-width: 52px;
        width: 52px;
    }

    .seller-credits-chip {
        max-width: 88px;
        padding-inline: 7px;
        font-size: .68rem;
    }

    .seller-posts-table tbody tr {
        grid-template-columns: 20px 74px minmax(0, 1fr) 62px 44px minmax(68px, auto);
        gap: 8px;
    }

    .post-image-button,
    .post-image-placeholder,
    .clip-preview,
    .clip-preview video,
    .clip-download-button,
    .clip-upload-button {
        width: 68px;
        max-width: 68px;
    }

    .post-image-button,
    .post-image-placeholder {
        height: 74px;
    }

    .publication-clips-cell .clip-empty {
        max-width: 68px;
    }
}

@media (max-width: 767.98px) {
    #clipGenerationModal .modal-dialog {
        max-width: calc(100vw - 20px);
        margin: 10px auto;
    }

    #clipGenerationModal .clip-generation-modal {
        display: flex;
        flex-direction: column;
        max-height: calc(100dvh - 20px);
        border-radius: 22px !important;
        overflow: hidden;
    }

    #clipGenerationModal .clip-generation-modal .modal-header {
        flex: 0 0 auto;
        padding: 14px 18px;
    }

    #clipGenerationModal .clip-generation-modal .modal-body {
        --clip-generation-controls-height: auto;
        --clip-generation-media-height: 220px;
        --clip-generation-button-height: 38px;
        display: flex !important;
        flex: 1 1 auto;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        min-height: 0;
        max-height: calc(100dvh - 86px);
        padding: 14px;
        overflow-x: hidden;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    #clipGenerationModal .clip-generation-operator {
        display: none !important;
    }

    #clipGenerationModal .clip-generation-product,
    #clipGenerationModal .clip-generation-avatar,
    #clipGenerationModal .clip-generation-submit {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        align-content: start;
        justify-items: center;
        gap: 10px;
        width: 100%;
        min-width: 0;
        min-height: 0 !important;
        margin: 0;
    }

    #clipGenerationModal .clip-generation-product {
        order: 1;
    }

    #clipGenerationModal .clip-generation-avatar {
        order: 2;
    }

    #clipGenerationModal .clip-generation-submit {
        order: 3;
        gap: 12px;
    }

    #clipGenerationModal .clip-generation-product-controls,
    #clipGenerationModal .own-product-upload-controls,
    #clipGenerationModal .clip-generation-panel-title,
    #clipGenerationModal .post-product-selection,
    #clipGenerationModal #ownProductPreviewGrid,
    #clipGenerationModal .clip-advanced-open,
    #clipGenerationModal .clip-generation-avatar-frame,
    #clipGenerationModal .clip-generation-avatar .btn,
    #clipGenerationModal .clip-generate-button,
    #clipGenerationModal .clip-generation-message,
    #clipGenerationModal .clip-generation-progress,
    #clipGenerationModal .clip-debug-open {
        width: 100%;
        max-width: 300px;
        min-width: 0;
    }

    #clipGenerationModal .clip-generation-product > .own-product-upload:not([hidden]) {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto;
        gap: 10px;
        width: 100%;
        max-width: 300px;
        min-height: 0;
    }

    #clipGenerationModal .clip-generation-product .own-product-upload-controls,
    #clipGenerationModal .clip-generation-product .post-product-selection,
    #clipGenerationModal .clip-generation-product #ownProductPreviewGrid,
    #clipGenerationModal .clip-generation-product > #clipProductImage,
    #clipGenerationModal .clip-advanced-open {
        grid-column: auto;
        grid-row: auto;
    }

    #clipGenerationModal .post-product-selection:not([hidden]),
    #clipGenerationModal #ownProductPreviewGrid:not([hidden]) {
        display: grid;
        height: auto;
        justify-self: center;
    }

    #clipGenerationModal .post-product-selection .own-product-preview-grid,
    #clipGenerationModal .own-product-upload .own-product-preview-grid {
        width: 100%;
        max-width: 300px;
        min-height: 220px;
        height: auto;
    }

    #clipGenerationModal .post-product-selection[data-image-count="1"] .own-product-preview-grid,
    #clipGenerationModal .own-product-upload[data-image-count="1"] .own-product-preview-grid {
        width: 100%;
        max-width: 300px;
    }

    #clipGenerationModal .post-product-selection .own-product-preview-card,
    #clipGenerationModal .own-product-upload .own-product-preview-card,
    #clipGenerationModal .post-product-selection[data-image-count="1"] .own-product-preview-card,
    #clipGenerationModal .own-product-upload[data-image-count="1"] .own-product-preview-card {
        width: 100% !important;
        min-width: 0;
        max-width: 300px;
        height: 220px !important;
        min-height: 0;
    }

    #clipGenerationModal .clip-generation-product > #clipProductImage,
    #clipGenerationModal .clip-generation-avatar-frame {
        width: 100%;
        max-width: 300px;
        height: 220px;
        max-height: 220px;
        padding: 12px;
    }

    #clipGenerationModal .clip-generation-avatar img {
        width: 100%;
        height: 100%;
        max-height: none;
        padding: 0;
        object-fit: contain;
    }

    #clipGenerationModal .clip-generation-avatar .btn,
    #clipGenerationModal .clip-advanced-open {
        height: 38px;
    }

    #clipGenerationModal .clip-generate-button {
        height: 150px;
        min-height: 150px;
    }

    #clipGenerationModal .clip-generate-button img {
        width: 82px;
        height: 82px;
    }
}

@media (max-width: 767.98px) {
    .seller-posts-table tbody tr {
        grid-template-columns: 26px 86px minmax(0, 1fr) 68px 48px minmax(78px, auto) !important;
        grid-template-areas:
            "select image title title title title"
            "select image code code price price"
            "visits visits status status actions clips" !important;
        align-items: center;
        row-gap: 14px;
    }

    .publication-select-cell {
        position: static !important;
        grid-area: select;
        align-self: center;
        justify-self: center;
        z-index: 1;
    }

    .publication-select-cell .form-check-input {
        width: 20px;
        height: 20px;
        margin: 0;
    }

    .publication-image-cell {
        justify-self: start;
    }

    .seller-post-title {
        min-height: 2.35em;
    }

    .publication-code-cell {
        grid-column: 3 / 5 !important;
        justify-self: start !important;
    }

    .publication-price-cell {
        grid-column: 5 / -1 !important;
        justify-self: end !important;
        text-align: right !important;
        margin-left: auto !important;
    }

    .publication-visits-cell {
        grid-column: 1 / 3 !important;
        justify-self: start !important;
        align-items: flex-start !important;
        text-align: left !important;
        margin-left: 0 !important;
    }

    #clipGenerationModal .modal-dialog {
        max-width: calc(100vw - 18px);
        margin: 9px auto;
    }

    #clipGenerationModal .clip-generation-modal {
        max-height: calc(100dvh - 18px);
    }

    #clipGenerationModal .clip-generation-modal .modal-body {
        display: flex !important;
        flex-direction: column;
        gap: 18px;
        max-height: calc(100dvh - 86px);
        padding: 18px 14px 34px;
        overflow-y: auto !important;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    #clipGenerationModal .clip-generation-product,
    #clipGenerationModal .clip-generation-avatar,
    #clipGenerationModal .clip-generation-submit {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
        max-width: 100%;
        min-height: 0 !important;
        position: relative;
    }

    #clipGenerationModal .clip-generation-product > .own-product-upload:not([hidden]) {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
        max-width: 316px;
    }

    #clipGenerationModal .clip-generation-product-controls,
    #clipGenerationModal .own-product-upload-controls,
    #clipGenerationModal .post-product-selection,
    #clipGenerationModal #ownProductPreviewGrid,
    #clipGenerationModal .clip-advanced-open,
    #clipGenerationModal .clip-generation-avatar-frame,
    #clipGenerationModal .clip-generation-avatar .btn,
    #clipGenerationModal .clip-generate-button,
    #clipGenerationModal .clip-generation-message,
    #clipGenerationModal .clip-generation-progress,
    #clipGenerationModal .clip-debug-open {
        width: min(100%, 316px);
        max-width: 316px;
    }

    #clipGenerationModal .own-product-upload-controls {
        order: 1;
    }

    #clipGenerationModal .clip-generation-panel-title {
        position: static;
        transform: none;
        width: min(100%, 316px);
        max-width: 316px;
        margin-bottom: -4px;
    }

    #clipGenerationModal .clip-generation-product-title {
        order: 2;
    }

    #clipGenerationModal .clip-generation-avatar-title {
        order: 1;
    }

    #clipGenerationModal .post-product-selection,
    #clipGenerationModal #ownProductPreviewGrid,
    #clipGenerationModal .clip-generation-product > #clipProductImage {
        order: 3;
    }

    #clipGenerationModal .clip-advanced-open {
        order: 4;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        min-height: 38px;
        height: 38px;
        margin-top: 0;
        overflow: hidden;
    }

    #clipGenerationModal .post-product-selection:not([hidden]),
    #clipGenerationModal #ownProductPreviewGrid:not([hidden]) {
        display: flex !important;
        justify-content: center;
        min-height: 0;
        height: auto;
    }

    #clipGenerationModal .post-product-selection .own-product-preview-grid,
    #clipGenerationModal .own-product-upload .own-product-preview-grid {
        display: grid;
        width: 100%;
        min-height: 0;
        height: auto;
        gap: 10px;
    }

    #clipGenerationModal .post-product-selection[data-image-count="1"] .own-product-preview-grid,
    #clipGenerationModal .own-product-upload[data-image-count="1"] .own-product-preview-grid {
        width: min(100%, 316px);
        max-width: 316px;
    }

    #clipGenerationModal .post-product-selection[data-image-count="1"] .own-product-preview-card,
    #clipGenerationModal .own-product-upload[data-image-count="1"] .own-product-preview-card {
        width: min(100%, 316px) !important;
        min-width: 0;
        max-width: 316px;
        height: min(316px, calc(100vw - 56px)) !important;
        aspect-ratio: 1 / 1 !important;
    }

    #clipGenerationModal .post-product-selection[data-image-count="2"] .own-product-preview-grid,
    #clipGenerationModal .own-product-upload[data-image-count="2"] .own-product-preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #clipGenerationModal .post-product-selection:not([data-image-count="0"]):not([data-image-count="1"]):not([data-image-count="2"]) .own-product-preview-grid,
    #clipGenerationModal .own-product-upload:not([data-image-count="0"]):not([data-image-count="1"]):not([data-image-count="2"]) .own-product-preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #clipGenerationModal .post-product-selection[data-image-count="2"] .own-product-preview-card,
    #clipGenerationModal .own-product-upload[data-image-count="2"] .own-product-preview-card,
    #clipGenerationModal .post-product-selection:not([data-image-count="0"]):not([data-image-count="1"]):not([data-image-count="2"]) .own-product-preview-card,
    #clipGenerationModal .own-product-upload:not([data-image-count="0"]):not([data-image-count="1"]):not([data-image-count="2"]) .own-product-preview-card {
        width: 100% !important;
        height: 150px !important;
    }

    #clipGenerationModal .clip-generation-avatar-frame {
        order: 2;
        height: 316px;
        max-height: 316px;
    }

    #clipGenerationModal .clip-generation-avatar .btn {
        order: 3;
        position: relative;
        z-index: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 38px;
        height: 38px;
        background: #fffaf6;
    }

    #clipGenerationModal .clip-generation-submit {
        padding-bottom: 18px;
        margin-top: 0;
        margin-bottom: 10px;
    }

    #clipGenerationModal .clip-generate-button {
        height: 216px;
        min-height: 216px;
        margin-bottom: 6px;
    }

    #clipGenerationModal .clip-generation-progress {
        margin-bottom: 12px;
    }

    body.modal-open {
        overflow: hidden;
    }

    body.modal-open .modal-backdrop {
        position: fixed;
        inset: 0;
        pointer-events: auto;
    }

    #clipGenerationModal {
        pointer-events: auto;
        z-index: 1060;
    }

    #clipGenerationModal .modal-dialog,
    #clipGenerationModal .modal-content {
        pointer-events: auto;
    }

    .avatar-upload-panel {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "copy upload";
        align-items: center;
        gap: 12px;
    }

    .avatar-upload-panel > div:first-child {
        grid-area: copy;
    }

    .avatar-upload-panel strong {
        white-space: nowrap;
    }

    .avatar-upload-panel span {
        display: block;
        margin-top: 2px;
    }

    #sellerAvatarUploadButton {
        grid-area: upload;
        min-width: 130px;
        min-height: 38px;
        padding-inline: 14px;
        white-space: nowrap;
    }

    .avatar-klipia-filters {
        grid-template-columns: 1fr;
        padding: 12px;
        overflow: hidden;
    }

    #avatarNameFilter {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .clip-preview-modal .modal-body.is-editing {
        display: flex;
        flex-direction: column;
        gap: 12px;
        max-height: calc(100dvh - 112px);
        min-height: 0;
        overflow-y: auto;
        align-items: stretch;
        padding-bottom: 16px;
    }

    .clip-subtitle-edit-panel {
        order: 1;
        flex: 0 0 auto;
        width: 100%;
        max-height: none;
        padding: 12px;
    }

    .clip-preview-modal .modal-body.is-editing .clip-preview-video-panel {
        order: 2;
        width: 100%;
        min-height: 58vh;
        padding: 8px 0 14px;
    }

    .clip-preview-modal .modal-body.is-editing video {
        width: 100%;
        max-width: 100%;
        max-height: 56vh;
        object-fit: contain;
    }

    .clip-subtitle-edit-segments {
        max-height: 44vh;
        overflow-y: auto;
    }

    .clip-subtitle-edit-panel #clipSubtitleEditConfirm {
        width: auto;
        min-width: 116px;
        min-height: 38px;
        align-self: start;
        justify-self: start;
        border-radius: 999px;
    }

    .clip-subtitle-edit-actions {
        margin-top: 8px;
        padding-top: 8px;
        flex-wrap: wrap;
    }
}

@media (max-width: 420px) {
    .seller-posts-table tbody tr {
        grid-template-columns: 22px 76px minmax(0, 1fr) 58px 42px minmax(66px, auto) !important;
        gap: 8px 6px;
        padding: 10px;
    }

    #clipGenerationModal .clip-generation-product-controls,
    #clipGenerationModal .own-product-upload-controls,
    #clipGenerationModal .post-product-selection,
    #clipGenerationModal #ownProductPreviewGrid,
    #clipGenerationModal .clip-advanced-open,
    #clipGenerationModal .clip-generation-avatar-frame,
    #clipGenerationModal .clip-generation-avatar .btn,
    #clipGenerationModal .clip-generate-button,
    #clipGenerationModal .clip-generation-message,
    #clipGenerationModal .clip-generation-progress,
    #clipGenerationModal .clip-debug-open,
    #clipGenerationModal .clip-generation-product > .own-product-upload:not([hidden]) {
        width: min(100%, 284px);
        max-width: 284px;
    }

    #clipGenerationModal .post-product-selection[data-image-count="1"] .own-product-preview-card,
    #clipGenerationModal .own-product-upload[data-image-count="1"] .own-product-preview-card,
    #clipGenerationModal .clip-generation-avatar-frame {
        height: min(284px, calc(100vw - 54px)) !important;
    }

    .avatar-upload-panel {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "copy"
            "upload";
    }

    #sellerAvatarUploadButton {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .clip-preview-modal .modal-dialog,
    #clipPreviewModal .modal-dialog {
        align-items: flex-start;
        margin: 8px auto;
        max-width: calc(100vw - 16px);
    }

    .clip-preview-modal {
        max-height: calc(100dvh - 16px);
        overflow: hidden;
    }

    #clipGenerationModal .modal-dialog {
        max-width: calc(100vw - 18px);
        margin: 9px auto;
    }

    #clipGenerationModal .clip-generation-modal {
        max-height: calc(100dvh - 18px);
        overflow: hidden;
    }

    #clipGenerationModal .clip-generation-modal .modal-body {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 16px !important;
        max-height: calc(100dvh - 86px);
        padding: 18px 14px 30px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
    }

    #clipGenerationModal .clip-generation-operator {
        display: none !important;
    }

    #clipGenerationModal .clip-generation-product,
    #clipGenerationModal .clip-generation-avatar,
    #clipGenerationModal .clip-generation-submit {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 320px !important;
        gap: 10px !important;
        min-height: 0 !important;
        position: relative !important;
    }

    #clipGenerationModal .clip-generation-product {
        order: 1;
    }

    #clipGenerationModal .clip-generation-avatar {
        order: 2;
    }

    #clipGenerationModal .clip-generation-submit {
        order: 3;
        padding-bottom: 10px;
    }

    #clipGenerationModal .clip-generation-product-controls,
    #clipGenerationModal .own-product-upload-controls,
    #clipGenerationModal .clip-generation-panel-title,
    #clipGenerationModal .post-product-selection,
    #clipGenerationModal #ownProductPreviewGrid,
    #clipGenerationModal .clip-generation-product > #clipProductImage,
    #clipGenerationModal .clip-generation-avatar-frame,
    #clipGenerationModal .clip-generation-avatar .btn,
    #clipGenerationModal .clip-generate-button,
    #clipGenerationModal .clip-generation-message,
    #clipGenerationModal .clip-generation-progress,
    #clipGenerationModal .clip-debug-open {
        width: 100% !important;
        max-width: 320px !important;
        min-width: 0 !important;
    }

    #clipGenerationModal .clip-generation-panel-title {
        position: static !important;
        transform: none !important;
        order: 1;
        margin: 0 0 2px !important;
        text-align: center;
        z-index: auto;
    }

    #clipGenerationModal .clip-generation-product-controls,
    #clipGenerationModal .own-product-upload-controls {
        order: 0;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 8px;
    }

    #clipGenerationModal .own-product-title-input {
        order: 0;
    }

    #clipGenerationModal .own-product-dropzone {
        order: 1;
        width: 220px !important;
        max-width: 100% !important;
        min-height: 38px !important;
        margin: 0 !important;
    }

    #clipGenerationModal .post-product-selection,
    #clipGenerationModal #ownProductPreviewGrid,
    #clipGenerationModal .clip-generation-product > #clipProductImage {
        order: 2;
    }

    #clipGenerationModal .clip-advanced-open {
        order: 3;
        width: 220px !important;
        max-width: 100% !important;
        height: 38px !important;
        margin: 0 !important;
        align-self: center !important;
    }

    #clipGenerationModal .clip-generation-avatar-frame {
        order: 2;
        height: 260px !important;
        max-height: 260px !important;
        padding: 12px !important;
    }

    #clipGenerationModal .clip-generation-avatar .btn {
        order: 3;
        height: 38px !important;
        color: #5e5260 !important;
        font-weight: 800;
    }

    #clipGenerationModal .clip-generation-product > #clipProductImage,
    #clipGenerationModal .post-product-selection .own-product-preview-card,
    #clipGenerationModal .own-product-upload .own-product-preview-card {
        height: 220px !important;
    }

    #clipGenerationModal .clip-generation-submit .clip-generate-button {
        order: 1;
        height: 170px !important;
        min-height: 170px !important;
    }

    #clipGenerationModal .clip-generation-message {
        order: 2;
    }

    #clipGenerationModal .clip-generation-progress {
        order: 3;
    }

    #clipGenerationModal .clip-generation-product > .own-product-upload:not([hidden]) {
        display: contents !important;
    }

    #clipGenerationModal .clip-generation-product-controls,
    #clipGenerationModal .own-product-upload-controls {
        order: 1 !important;
    }

    #clipGenerationModal .clip-generation-product-title {
        order: 2 !important;
    }

    #clipGenerationModal .post-product-selection,
    #clipGenerationModal #ownProductPreviewGrid,
    #clipGenerationModal .clip-generation-product > #clipProductImage {
        order: 3 !important;
        margin: 0 !important;
    }

    #clipGenerationModal .clip-advanced-open {
        order: 4 !important;
        margin-top: 0 !important;
    }

    #clipGenerationModal .clip-generation-avatar-title {
        order: 1 !important;
    }

    #clipGenerationModal .clip-generation-avatar-frame {
        order: 2 !important;
        margin: 0 !important;
    }

    #clipGenerationModal .clip-generation-avatar .btn {
        order: 3 !important;
        margin: 0 !important;
    }

    #clipGenerationModal .clip-generation-submit {
        margin-top: 0 !important;
    }

    #clipGenerationModal .clip-generation-modal .modal-body {
        justify-content: flex-start !important;
        align-content: center !important;
        gap: 22px !important;
        padding-bottom: 44px !important;
    }

    #clipGenerationModal .clip-generation-product > .own-product-upload:not([hidden]) {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 320px !important;
        gap: 12px !important;
        min-height: 0 !important;
    }

    #clipGenerationModal .clip-generation-product-controls,
    #clipGenerationModal .own-product-upload-controls {
        order: 1 !important;
        width: 100% !important;
        max-width: 220px !important;
        margin: 0 auto !important;
    }

    #clipGenerationModal .clip-generation-product-title {
        order: 2 !important;
        width: 100% !important;
        margin: 0 !important;
        line-height: 1.15 !important;
    }

    #clipGenerationModal .post-product-selection,
    #clipGenerationModal #ownProductPreviewGrid,
    #clipGenerationModal .clip-generation-product > #clipProductImage {
        order: 3 !important;
        position: relative !important;
        width: min(100%, 320px) !important;
        max-width: 320px !important;
        margin: 0 auto !important;
        z-index: 1 !important;
    }

    #clipGenerationModal .clip-advanced-open {
        order: 4 !important;
        position: relative !important;
        z-index: 1 !important;
        width: 220px !important;
        margin: 0 auto !important;
    }

    #clipGenerationModal .clip-generation-avatar {
        margin-top: 0 !important;
    }

    #clipGenerationModal .clip-generation-avatar-title {
        order: 1 !important;
        width: 100% !important;
        margin: 0 !important;
        line-height: 1.15 !important;
    }

    #clipGenerationModal .clip-generation-avatar-frame {
        order: 2 !important;
        position: relative !important;
        width: min(100%, 320px) !important;
        max-width: 320px !important;
        height: 300px !important;
        max-height: none !important;
        margin: 0 auto !important;
        z-index: 1 !important;
    }

    #clipGenerationModal .clip-generation-avatar .btn {
        order: 3 !important;
        position: relative !important;
        width: 220px !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        z-index: 1 !important;
    }

    #clipGenerationModal .clip-generation-submit {
        width: 100% !important;
        max-width: 320px !important;
        margin: 0 auto !important;
        padding-bottom: 20px !important;
    }

    #clipGenerationModal .clip-generation-submit .clip-generate-button {
        position: relative !important;
        width: min(100%, 320px) !important;
        max-width: 320px !important;
        height: 220px !important;
        min-height: 220px !important;
        margin: 0 auto !important;
        z-index: 1 !important;
    }

    .clip-preview-modal .modal-body.is-editing {
        display: block !important;
        max-height: calc(100dvh - 112px);
        min-height: 0;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding-bottom: 16px;
    }

    .clip-preview-modal .modal-body.is-editing .clip-subtitle-edit-panel {
        display: grid !important;
        position: static !important;
        width: 100%;
        max-height: none;
        margin: 0 0 12px;
    }

    .clip-preview-modal .modal-body.is-editing .clip-preview-video-panel {
        display: grid !important;
        position: relative !important;
        width: 100%;
        min-height: auto !important;
        height: auto !important;
        padding: 8px 0 14px;
        clear: both;
    }

    .clip-preview-modal .modal-body.is-editing video {
        width: 100%;
        max-width: 100%;
        height: auto !important;
        max-height: 70vh;
        object-fit: contain;
    }

    #clipGenerationModal .own-product-title-input {
        position: static !important;
        margin-top: 0 !important;
        margin-bottom: 4px !important;
        transform: translateY(-13px);
    }

    #clipGenerationModal .own-product-dropzone {
        position: static !important;
        margin: 0 auto 16px !important;
        transform: translateY(-4px);
    }

    #clipGenerationModal .clip-generation-product-title {
        margin: 0 0 8px !important;
    }

    #clipGenerationModal.clip-mode-own .clip-generation-product .own-product-upload-controls {
        margin-bottom: 12px !important;
    }

    #clipGenerationModal.clip-mode-own .clip-generation-product .own-product-title-input {
        transform: translateY(-13px) !important;
    }

    #clipGenerationModal.clip-mode-own .clip-generation-product .own-product-dropzone {
        transform: translateY(-4px) !important;
    }
}

/* Own product: reserve vertical room so the product name and image button do not overlap. */
#clipGenerationModal.clip-mode-own .clip-generation-product .own-product-title-input {
    transform: translateY(-13px) !important;
}

#clipGenerationModal.clip-mode-own .clip-generation-product .own-product-dropzone {
    transform: translateY(-4px) !important;
}

/* Public API documentation */
.public-body {
    background: #f6f8fb;
    color: #14213d;
}

.public-body #wrapper {
    min-height: 100vh;
}

.public-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
    padding: 14px clamp(18px, 5vw, 72px);
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid #dce3ea;
    backdrop-filter: blur(12px);
}

.public-navbar-brand img {
    display: block;
    width: 132px;
    height: auto;
}

.public-navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.public-navbar-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid #c8d2dc;
    border-radius: 8px;
    color: #14213d;
    font-weight: 700;
    text-decoration: none;
}

.public-navbar-login:hover {
    border-color: #0f766e;
    color: #0f766e;
}

.public-page-wrapper {
    margin: 0;
    padding: 0;
}

.public-main {
    max-width: none;
    padding: 0;
}

.api-doc-hero,
.api-doc-section {
    padding: clamp(42px, 6vw, 84px) clamp(18px, 5vw, 72px);
}

.api-doc-hero {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(340px, 1.1fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
    min-height: calc(100vh - 72px);
    background: linear-gradient(135deg, #f8fafc 0%, #eef7f5 52%, #fff7ed 100%);
}

.api-doc-hero-copy {
    max-width: 680px;
}

.api-doc-eyebrow,
.api-doc-section-heading span,
.api-doc-pricing span {
    display: inline-flex;
    margin-bottom: 12px;
    color: #0f766e;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.api-doc-hero h1,
.api-doc-section h2 {
    margin: 0;
    color: #101828;
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: 0;
}

.api-doc-hero h1 {
    max-width: 720px;
    font-size: clamp(2.4rem, 4.8vw, 4.9rem);
}

.api-doc-section h2 {
    font-size: clamp(1.8rem, 3vw, 3rem);
}

.api-doc-hero p,
.api-doc-card p,
.api-doc-steps p,
.api-doc-pricing p,
.api-doc-marketplaces p {
    color: #475467;
    font-size: 1rem;
    line-height: 1.65;
}

.api-doc-hero p {
    max-width: 620px;
    margin: 22px 0 0;
    font-size: 1.1rem;
}

.api-doc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.api-doc-primary-button,
.api-doc-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
}

.api-doc-primary-button {
    background: #0f766e;
    color: #fff;
    box-shadow: 0 12px 28px rgba(15, 118, 110, .22);
}

.api-doc-primary-button:hover {
    background: #115e59;
    color: #fff;
}

.api-doc-secondary-button {
    border: 1px solid #cbd5e1;
    color: #14213d;
    background: #fff;
}

.api-doc-secondary-button:hover {
    border-color: #0f766e;
    color: #0f766e;
}

.api-doc-marketplace-note {
    max-width: 620px;
    margin-top: 24px;
    padding-left: 14px;
    border-left: 4px solid #f59e0b;
    color: #344054;
    font-weight: 700;
    line-height: 1.5;
}

.api-doc-example {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(220px, .7fr);
    gap: 16px;
    align-items: stretch;
}

.api-doc-media-card {
    min-width: 0;
    margin: 0;
    padding: 12px;
    border: 1px solid #d8e0e8;
    border-radius: 8px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 18px 46px rgba(16, 24, 40, .12);
}

.api-doc-media-card figcaption,
.api-doc-code-title {
    margin-bottom: 10px;
    color: #344054;
    font-size: .84rem;
    font-weight: 800;
}

.api-doc-media-card img,
.api-doc-media-card video {
    display: block;
    width: 100%;
    border-radius: 6px;
    background: #fff;
    object-fit: cover;
}

.api-doc-media-card img {
    aspect-ratio: 4 / 3;
}

.api-doc-media-card video {
    aspect-ratio: 9 / 16;
    max-height: 560px;
}

.api-doc-section {
    background: #fff;
}

.api-doc-section:nth-of-type(odd) {
    background: #f8fafc;
}

.api-doc-section-heading {
    max-width: 760px;
    margin-bottom: 26px;
}

.api-doc-grid {
    display: grid;
    gap: 16px;
}

.api-doc-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.api-doc-card,
.api-doc-steps article {
    min-width: 0;
    padding: 22px;
    border: 1px solid #dce3ea;
    border-radius: 8px;
    background: #fff;
}

.api-doc-card strong,
.api-doc-steps h3 {
    display: block;
    margin-bottom: 10px;
    color: #101828;
    font-size: 1.08rem;
}

.api-doc-card p,
.api-doc-steps p {
    margin: 0;
}

.api-doc-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.api-doc-steps span {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: #e0f2f1;
    color: #0f766e;
    font-weight: 900;
}

.api-doc-docs-layout {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(340px, 1.05fr);
    gap: 18px;
    align-items: start;
}

.api-doc-endpoints,
.api-doc-code-panel {
    border: 1px solid #dce3ea;
    border-radius: 8px;
    background: #fff;
}

.api-doc-endpoints div {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 8px 12px;
    padding: 16px;
    border-bottom: 1px solid #edf1f5;
}

.api-doc-endpoints div:last-child {
    border-bottom: 0;
}

.api-doc-endpoints code {
    align-self: start;
    color: #0f766e;
    font-weight: 900;
}

.api-doc-endpoints strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #101828;
}

.api-doc-endpoints span {
    grid-column: 2;
    color: #667085;
}

.api-doc-code-panel {
    padding: 16px;
}

.api-doc-code-panel pre {
    max-height: 430px;
    margin: 0;
    padding: 16px;
    overflow: auto;
    border-radius: 8px;
    background: #101828;
    color: #e6edf3;
    font-size: .88rem;
    line-height: 1.55;
    white-space: pre-wrap;
}

.api-doc-auth-note {
    margin-top: 14px;
    color: #475467;
    font-weight: 700;
    line-height: 1.5;
}

.api-doc-section.api-doc-pricing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    background: #102a43;
    color: #fff;
}

.api-doc-pricing h2,
.api-doc-pricing p,
.api-doc-pricing span {
    color: #fff;
}

.api-doc-pricing p {
    max-width: 760px;
    margin: 14px 0 0;
    color: #d9e2ec;
}

.api-doc-marketplaces p {
    max-width: 920px;
    margin: 0;
    font-size: 1.08rem;
}

.api-doc-tech {
    background: #fff;
}

.api-doc-tech-block {
    margin-top: 18px;
    padding: 22px;
    border: 1px solid #dce3ea;
    border-radius: 8px;
    background: #fff;
}

.api-doc-tech-block h3 {
    margin: 0 0 14px;
    color: #101828;
    font-size: 1.18rem;
    font-weight: 800;
}

.api-doc-tech-block p {
    margin: 12px 0 0;
    color: #475467;
    line-height: 1.6;
}

.api-doc-tech-block pre {
    margin: 0;
    padding: 16px;
    overflow: auto;
    border-radius: 8px;
    background: #101828;
    color: #e6edf3;
    font-size: .88rem;
    line-height: 1.55;
    white-space: pre-wrap;
}

.api-doc-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.api-doc-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    color: #344054;
}

.api-doc-table th,
.api-doc-table td {
    padding: 13px 14px;
    border-bottom: 1px solid #edf1f5;
    vertical-align: top;
    text-align: left;
}

.api-doc-table th {
    color: #101828;
    font-size: .82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.api-doc-table td:first-child,
.api-doc-table td:nth-child(2),
.api-doc-table td:nth-child(3) {
    white-space: nowrap;
}

.api-doc-samples-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(220px, .7fr);
    gap: 18px;
}

.api-doc-endpoints-compact {
    border: 0;
}

@media (max-width: 980px) {
    .api-doc-hero,
    .api-doc-docs-layout,
    .api-doc-grid-three,
    .api-doc-steps,
    .api-doc-samples-grid {
        grid-template-columns: 1fr;
    }

    .api-doc-hero {
        min-height: auto;
    }

    .api-doc-example {
        grid-template-columns: minmax(0, 1fr) minmax(180px, .58fr);
    }

    .api-doc-pricing {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .public-navbar {
        padding: 12px 16px;
    }

    .public-navbar-brand img {
        width: 112px;
    }

    .public-navbar-actions {
        gap: 8px;
    }

    .public-navbar-login {
        min-height: 34px;
        padding: 0 12px;
        font-size: .9rem;
    }

    .api-doc-hero,
    .api-doc-section {
        padding: 34px 16px;
    }

    .api-doc-example {
        grid-template-columns: 1fr;
    }

    .api-doc-endpoints div {
        grid-template-columns: 1fr;
    }

    .api-doc-endpoints span {
        grid-column: auto;
    }
}
/* Keep the two API credentials together without squeezing their values on mobile. */
.seller-api-credentials-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: end;
}

.seller-api-credential {
    min-width: 0;
}

@media (max-width: 575.98px) {
    .seller-api-credentials-row {
        grid-template-columns: 1fr;
        gap: .75rem;
    }
}
