/* Desktop-only structures are injected for shared behavior but must stay hidden on mobile. */
.desktop-side-nav,
.desktop-character-profile,
.desktop-home-search,
.desktop-auth-gate {
    display: none;
}

@media (max-width: 1023.98px) {
    .desktop-synced-bottom-nav {
        min-height: 64px;
    }

    .desktop-synced-bottom-nav .nav-item {
        min-width: 56px;
        flex: 1 1 0;
        color: #8f8f98;
    }

    .desktop-synced-bottom-nav .nav-item.active {
        color: #fff;
    }

    .desktop-synced-bottom-nav .nav-item.active svg {
        color: #ff2c55;
        stroke: #ff2c55;
    }

    .desktop-synced-bottom-nav .nav-item[data-desktop-nav-key="create"] {
        margin-top: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        animation: none !important;
    }

    .desktop-synced-bottom-nav .nav-item[data-desktop-nav-key="create"] > div {
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    body.desktop-auth-gate-open {
        overflow: hidden;
    }

    .desktop-auth-gate {
        position: fixed;
        inset: 0;
        z-index: 220;
        display: grid;
        place-items: center;
        padding:
            max(16px, env(safe-area-inset-top))
            14px
            max(16px, env(safe-area-inset-bottom));
    }

    .desktop-auth-gate-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.68);
        backdrop-filter: blur(8px);
    }

    .desktop-auth-gate-panel {
        position: relative;
        z-index: 1;
        width: min(100%, 390px);
        max-height: calc(100svh - 32px);
        overflow-y: auto;
        padding: 34px 18px 22px;
        border-radius: 18px;
        border: 1px solid rgba(17, 24, 39, 0.08);
        background: #fff;
        color: #111;
        box-shadow: 0 24px 70px rgba(0, 0, 0, 0.56);
        text-align: center;
    }

    .desktop-auth-gate-close {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 34px;
        height: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 999px;
        background: transparent;
        color: #555;
    }

    .desktop-auth-gate-panel h2 {
        margin: 0 34px 12px;
        color: #050505;
        font-size: 24px;
        line-height: 1.18;
        font-weight: 800;
    }

    .desktop-auth-gate-subtitle {
        margin: 0 0 24px;
        color: #333;
        font-size: 14px;
        line-height: 1.42;
    }

    .desktop-auth-gate-form,
    .desktop-auth-code-step {
        display: flex;
        flex-direction: column;
        gap: 14px;
        margin-bottom: 24px;
    }

    .desktop-auth-gate-form[hidden],
    .desktop-auth-code-step[hidden] {
        display: none;
    }

    .desktop-auth-email-input,
    .desktop-auth-code-input {
        width: 100%;
        min-height: 48px;
        padding: 0 14px;
        border: 1px solid #d4d4d4;
        border-radius: 999px;
        outline: 0;
        background: #f5f5f5;
        color: #374151;
        font-size: 16px;
        font-weight: 500;
    }

    .desktop-auth-email-input::placeholder,
    .desktop-auth-code-input::placeholder {
        color: #6b7280;
    }

    .desktop-auth-error,
    .desktop-auth-code-error {
        margin: -8px 0 0;
        color: #dc2626;
        font-size: 12px;
        line-height: 1.35;
        text-align: left;
    }

    .desktop-auth-code-copy {
        margin: 0;
        color: #333;
        font-size: 13px;
        line-height: 1.42;
        text-align: left;
    }

    .desktop-auth-code-copy strong {
        color: #050505;
        font-weight: 800;
        overflow-wrap: anywhere;
    }

    .desktop-auth-code-row {
        display: flex;
        gap: 8px;
        align-items: stretch;
    }

    .desktop-auth-code-row .desktop-auth-code-input {
        flex: 1 1 auto;
        min-width: 0;
    }

    .desktop-auth-resend {
        flex: 0 0 74px;
        min-height: 48px;
        padding: 0 8px;
        border: 1px solid #d4d4d4;
        border-radius: 999px;
        background: #fff;
        color: #252525;
        font-size: 12px;
        font-weight: 800;
    }

    .desktop-auth-resend.is-disabled {
        cursor: not-allowed;
        background: #f1f1f1;
        color: #858585;
        border-color: #dedede;
    }

    .desktop-auth-gate-primary {
        width: 100%;
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 999px;
        background: #e2e2e2;
        color: #737373;
        font-size: 16px;
        font-weight: 800;
        transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    }

    .desktop-auth-gate-primary.is-active {
        background: linear-gradient(145deg, #ff4d8d, #d54f98);
        color: #fff;
        box-shadow: 0 14px 32px rgba(255, 77, 141, 0.25);
    }

    .desktop-auth-change-email {
        min-height: 36px;
        border: 0;
        background: transparent;
        color: #555;
        font-size: 13px;
        font-weight: 800;
    }

    .desktop-auth-divider {
        display: flex;
        align-items: center;
        gap: 14px;
        margin: 0 0 22px;
        color: #111;
        font-size: 12px;
        font-weight: 500;
    }

    .desktop-auth-divider::before,
    .desktop-auth-divider::after {
        content: "";
        height: 1px;
        flex: 1;
        background: #c7c7c7;
    }

    .desktop-auth-provider-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 18px;
    }

    .desktop-auth-provider {
        width: 100%;
        min-height: 48px;
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 8px;
        padding: 0 18px;
        border: 1px solid #cfcfcf;
        border-radius: 999px;
        background: #fff;
        color: #161616;
        font-size: 14px;
        font-weight: 700;
        text-align: center;
    }

    .desktop-auth-provider-icon,
    .desktop-auth-provider-mark {
        width: 20px;
        height: 20px;
        justify-self: end;
    }

    .desktop-auth-provider span:last-child {
        justify-self: center;
    }

    .desktop-auth-legal {
        margin: 0 4px;
        color: #333;
        font-size: 11px;
        line-height: 1.35;
    }

    .desktop-auth-legal a {
        color: #2b7de9;
        text-decoration: underline;
    }
}

@media (min-width: 1024px) {
    :root {
        --desktop-nav-width: 224px;
        --desktop-page-pad: 32px;
        --desktop-content-max: 1240px;
        --desktop-card: rgba(26, 26, 26, 0.72);
        --desktop-border: rgba(255, 255, 255, 0.08);
    }

    html {
        min-height: 100%;
        background: #000;
    }

    body {
        min-height: 100vh;
        overflow-x: hidden;
        background: #000 !important;
        padding-left: var(--desktop-nav-width) !important;
        padding-bottom: 0 !important;
    }

    body.desktop-no-nav {
        padding-left: 0 !important;
    }

    .desktop-side-nav {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 120;
        width: var(--desktop-nav-width);
        padding: 26px 14px;
        display: flex;
        flex-direction: column;
        gap: 28px;
        color: #fff;
        background: rgba(10, 10, 10, 0.94);
        border-right: 1px solid var(--desktop-border);
        backdrop-filter: blur(18px);
    }

    .desktop-nav-brand {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 0 10px 6px;
        color: #fff;
        font-size: 19px;
        font-weight: 800;
        text-decoration: none;
    }

    .desktop-nav-mark {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        display: block;
        overflow: hidden;
        background: #ff2c55;
        box-shadow: 0 14px 34px rgba(255, 44, 85, 0.26);
        flex: 0 0 42px;
    }

    .desktop-nav-mark img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

    .desktop-nav-links {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .desktop-nav-link {
        display: flex;
        align-items: center;
        gap: 14px;
        min-height: 50px;
        padding: 0 16px;
        border-radius: 8px;
        color: #a7a7ad;
        text-decoration: none;
        font-size: 16px;
        font-weight: 700;
        transition: background 0.18s ease, color 0.18s ease;
    }

    .desktop-nav-link:hover,
    .desktop-nav-link.active {
        color: #fff;
        background: rgba(255, 255, 255, 0.09);
    }

    .desktop-nav-link.active svg {
        color: #ff2c55;
        stroke: #ff2c55;
    }

    .desktop-nav-spacer {
        flex: 1;
    }

    .desktop-nav-legal {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 16px 10px 2px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        color: #686870;
        font-size: 11px;
        font-weight: 600;
        line-height: 1.35;
    }

    .desktop-nav-legal-row {
        display: flex;
        align-items: center;
        gap: 5px;
        white-space: nowrap;
    }

    .desktop-nav-legal a {
        color: #ff6aa2;
        text-decoration: none;
        transition: color 0.18s ease;
    }

    .desktop-nav-legal span {
        color: #686870;
    }

    .desktop-nav-legal a:hover {
        color: #fff;
    }

    .desktop-auth-gate {
        position: fixed;
        inset: 0;
        z-index: 220;
        display: grid;
        place-items: center;
        padding: 24px;
    }

    .desktop-auth-gate-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.56);
        backdrop-filter: blur(8px);
    }

    .desktop-auth-gate-panel {
        position: relative;
        z-index: 1;
        width: 100%;
        max-width: 440px;
        max-height: calc(100vh - 48px);
        overflow-y: auto;
        padding: 40px 40px 34px;
        border-radius: 20px;
        border: 1px solid rgba(17, 24, 39, 0.08);
        background: #fff;
        color: #111;
        box-shadow: 0 28px 90px rgba(0, 0, 0, 0.64);
        text-align: center;
    }

    .desktop-auth-gate-close {
        position: absolute;
        top: 14px;
        right: 16px;
        width: 32px;
        height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 0;
        background: transparent;
        color: #555;
    }

    .desktop-auth-gate-panel h2 {
        margin: 0 28px 22px;
        color: #050505;
        font-size: 28px;
        line-height: 1.15;
        font-weight: 800;
        text-align: center;
        white-space: nowrap;
    }

    .desktop-auth-gate-subtitle {
        margin: 0 0 36px;
        color: #333;
        font-size: 16px;
        line-height: 1.45;
    }

    .desktop-auth-gate-form {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-bottom: 34px;
    }

    .desktop-auth-gate-form[hidden],
    .desktop-auth-code-step[hidden] {
        display: none;
    }

    .desktop-auth-email-input,
    .desktop-auth-code-input {
        width: 100%;
        min-height: 52px;
        padding: 0 16px;
        border: 1px solid #d4d4d4;
        border-radius: 999px;
        outline: 0;
        background: #f5f5f5;
        color: #374151;
        font-size: 16px;
        font-weight: 500;
    }

    .desktop-auth-email-input::placeholder,
    .desktop-auth-code-input::placeholder {
        color: #6b7280;
    }

    .desktop-auth-error,
    .desktop-auth-code-error {
        margin: -12px 0 0;
        color: #dc2626;
        font-size: 12px;
        line-height: 1.35;
        text-align: left;
    }

    .desktop-auth-code-step {
        display: flex;
        flex-direction: column;
        gap: 14px;
        margin-bottom: 34px;
    }

    .desktop-auth-code-copy {
        margin: 0;
        color: #333;
        font-size: 14px;
        line-height: 1.45;
        text-align: left;
    }

    .desktop-auth-code-copy strong {
        color: #050505;
        font-weight: 800;
        overflow-wrap: anywhere;
    }

    .desktop-auth-code-row {
        display: flex;
        gap: 8px;
        align-items: stretch;
    }

    .desktop-auth-code-row .desktop-auth-code-input {
        flex: 1 1 auto;
        min-width: 0;
    }

    .desktop-auth-change-email {
        min-height: 38px;
        border: 0;
        background: transparent;
        color: #555;
        font-size: 13px;
        font-weight: 800;
    }

    .desktop-auth-resend {
        flex: 0 0 82px;
        min-height: 52px;
        padding: 0 10px;
        border: 1px solid #d4d4d4;
        border-radius: 999px;
        background: #fff;
        color: #252525;
        font-size: 12px;
        font-weight: 800;
        transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    }

    .desktop-auth-resend:hover {
        border-color: #ff4d8d;
    }

    .desktop-auth-resend.is-disabled {
        cursor: not-allowed;
        background: #f1f1f1;
        color: #858585;
        border-color: #dedede;
    }

    .desktop-auth-gate-primary {
        width: 100%;
        min-height: 52px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 999px;
        background: #e2e2e2;
        color: #737373;
        font-size: 16px;
        font-weight: 800;
        transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    }

    .desktop-auth-gate-primary.is-active {
        background: linear-gradient(145deg, #ff4d8d, #d54f98);
        color: #fff;
        box-shadow: 0 14px 32px rgba(255, 77, 141, 0.25);
    }

    .desktop-auth-divider {
        display: flex;
        align-items: center;
        gap: 20px;
        margin: 0 0 34px;
        color: #111;
        font-size: 13px;
        font-weight: 500;
    }

    .desktop-auth-divider::before,
    .desktop-auth-divider::after {
        content: "";
        height: 1px;
        flex: 1;
        background: #c7c7c7;
    }

    .desktop-auth-provider-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 26px;
    }

    .desktop-auth-provider {
        width: 100%;
        min-height: 52px;
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 8px;
        padding: 0 28px;
        border: 1px solid #cfcfcf;
        border-radius: 999px;
        background: #fff;
        color: #161616;
        font-size: 16px;
        font-weight: 700;
        text-align: center;
        transition: background 0.16s ease, border-color 0.16s ease;
    }

    .desktop-auth-provider:hover {
        background: #fafafa;
        border-color: #a8a8a8;
    }

    .desktop-auth-provider-icon,
    .desktop-auth-provider-mark {
        width: 20px;
        height: 20px;
        justify-self: end;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .desktop-auth-provider span:last-child {
        justify-self: center;
    }

    .desktop-auth-legal {
        margin: 0 4px;
        color: #333;
        font-size: 12px;
        line-height: 1.35;
    }

    .desktop-auth-legal a {
        color: #2b7de9;
        text-decoration: underline;
    }

    .desktop-upgrade-modal {
        position: fixed;
        inset: 0;
        z-index: 260;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.22s ease, visibility 0.22s ease;
    }

    .desktop-upgrade-modal.active {
        opacity: 1;
        visibility: visible;
    }

    .desktop-upgrade-backdrop {
        position: absolute;
        inset: 0;
        border: 0;
        background: rgba(0, 0, 0, 0.72);
        backdrop-filter: blur(6px);
    }

    .desktop-upgrade-dialog {
        position: relative;
        width: min(1120px, calc(100vw - var(--desktop-nav-width) - 80px));
        max-height: calc(100vh - 48px);
        overflow-y: auto;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 18px;
        background: #1a1a1a;
        padding: 24px;
        color: #fff;
        box-shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
        transform: translateY(10px) scale(0.985);
        transition: transform 0.22s ease;
    }

    .desktop-upgrade-modal.active .desktop-upgrade-dialog {
        transform: translateY(0) scale(1);
    }

    .desktop-upgrade-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 20px;
        margin-bottom: 20px;
    }

    .desktop-upgrade-header p {
        color: #ff7aae;
        font-size: 13px;
        font-weight: 850;
        text-transform: uppercase;
    }

    .desktop-upgrade-header h2 {
        margin-top: 4px;
        font-size: 26px;
        font-weight: 850;
        line-height: 1.1;
    }

    .desktop-upgrade-header span {
        display: block;
        margin-top: 8px;
        color: #a7a7ad;
        font-size: 14px;
    }

    .desktop-upgrade-close {
        display: inline-flex;
        width: 40px;
        height: 40px;
        flex-shrink: 0;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 999px;
        color: #fff;
        background: transparent;
    }

    .desktop-upgrade-close:hover {
        background: rgba(255, 255, 255, 0.08);
    }

    .desktop-upgrade-billing {
        position: relative;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: min(360px, 100%);
        margin: 0 auto 18px;
        padding: 4px;
        border-radius: 999px;
        background: #2a2a2a;
    }

    .desktop-upgrade-billing-slider {
        position: absolute;
        inset: 4px auto 4px 4px;
        width: calc(50% - 4px);
        border-radius: 999px;
        background: #ff4d8d;
        transition: transform 0.24s ease;
    }

    .desktop-upgrade-billing button {
        position: relative;
        z-index: 1;
        display: inline-flex;
        min-height: 38px;
        align-items: center;
        justify-content: center;
        gap: 6px;
        border: 0;
        border-radius: 999px;
        color: #a7a7ad;
        background: transparent;
        font-size: 14px;
        font-weight: 850;
    }

    .desktop-upgrade-billing button.active {
        color: #fff;
    }

    .desktop-upgrade-billing small {
        color: #ffd1e2;
        font-size: 11px;
        font-weight: 850;
    }

    .desktop-upgrade-plans {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .desktop-upgrade-plan {
        display: flex;
        min-width: 0;
        min-height: 344px;
        flex-direction: column;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.04);
        padding: 18px;
    }

    .desktop-upgrade-plan.featured {
        border-color: rgba(255, 77, 141, 0.32);
        background: rgba(255, 77, 141, 0.08);
    }

    .desktop-upgrade-plan.ultra {
        border-color: rgba(250, 204, 21, 0.3);
        background: rgba(250, 204, 21, 0.07);
    }

    .desktop-upgrade-plan-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 14px;
    }

    .desktop-upgrade-plan-heading {
        display: flex;
        min-width: 0;
        align-items: center;
        gap: 12px;
    }

    .desktop-upgrade-plan-icon {
        display: inline-flex;
        width: 44px;
        height: 44px;
        flex-shrink: 0;
        align-items: center;
        justify-content: center;
        border-radius: 14px;
    }

    .desktop-upgrade-plan-icon.starter {
        overflow: hidden;
        background: #a855f7;
    }

    .desktop-upgrade-plan-icon.starter img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .desktop-upgrade-plan-icon.premium {
        color: #fff;
        background: linear-gradient(135deg, #ff4d8d, #ff8ab8);
    }

    .desktop-upgrade-plan-icon.ultra {
        color: #0f0f0f;
        background: linear-gradient(135deg, #facc15, #f59e0b);
    }

    .desktop-upgrade-plan h3 {
        font-size: 18px;
        font-weight: 850;
        line-height: 1.2;
        white-space: nowrap;
    }

    .desktop-upgrade-plan p {
        color: #a7a7ad;
        font-size: 13px;
    }

    .desktop-upgrade-plan strong {
        flex-shrink: 0;
        text-align: right;
        font-size: 18px;
        white-space: nowrap;
    }

    .desktop-upgrade-plan strong small {
        margin-left: 2px;
        color: #a7a7ad;
        font-size: 12px;
    }

    .desktop-upgrade-yearly {
        margin: -8px 0 12px;
        text-align: right;
    }

    .desktop-upgrade-yearly.hidden {
        display: none;
    }

    .desktop-upgrade-strike {
        color: #6b7280;
        font-size: 14px;
        text-decoration: line-through;
    }

    .desktop-upgrade-plan ul {
        display: grid;
        gap: 10px;
        margin-bottom: 18px;
        color: #e5e7eb;
        font-size: 14px;
    }

    .desktop-upgrade-plan li {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .desktop-upgrade-plan li i {
        color: #ff7aae;
    }

    .desktop-upgrade-plan.ultra li i,
    .desktop-upgrade-plan.ultra h3 {
        color: #facc15;
    }

    .desktop-upgrade-plan > button {
        width: 100%;
        min-height: 48px;
        margin-top: auto;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        color: #fff;
        background: rgba(255, 255, 255, 0.04);
        font-weight: 800;
    }

    .desktop-upgrade-plan.featured > button {
        border-color: transparent;
        background: #ff4d8d;
    }

    .desktop-upgrade-plan.ultra > button {
        border-color: transparent;
        color: #0f0f0f;
        background: #fff;
    }

    .desktop-shared-toast {
        position: fixed;
        left: 50%;
        bottom: 34px;
        z-index: 280;
        transform: translateX(-50%) translateY(16px);
        opacity: 0;
        padding: 12px 18px;
        border-radius: 999px;
        color: #fff;
        background: #2a2a2a;
        box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
        transition: opacity 0.22s ease, transform 0.22s ease;
        pointer-events: none;
    }

    .desktop-shared-toast.show {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    @media (max-height: 760px) {
        .desktop-upgrade-modal {
            align-items: flex-start;
        }

        .desktop-upgrade-dialog {
            padding: 20px;
        }

        .desktop-upgrade-plan {
            min-height: 320px;
            padding: 14px;
        }
    }

    .app-bottom-nav,
    body > nav.fixed.bottom-0,
    .home-toggle-btn,
    #fabBtn {
        display: none !important;
    }

    body > header {
        left: var(--desktop-nav-width) !important;
        right: 0 !important;
        width: auto !important;
    }

    body > main,
    body > .video-feed,
    body > .px-4,
    body > #pullIndicator,
    body > #chatList,
    body > #emptyState {
        width: min(var(--desktop-content-max), calc(100vw - var(--desktop-nav-width) - var(--desktop-page-pad) * 2)) !important;
        max-width: var(--desktop-content-max) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .fixed.bottom-24,
    .fixed.bottom-20,
    .toast {
        left: calc(var(--desktop-nav-width) + (100vw - var(--desktop-nav-width)) / 2) !important;
    }

    body.desktop-page-auth {
        padding-left: 0 !important;
        min-height: 100vh;
        display: grid;
        place-items: center;
        overflow: hidden;
        background: #000 !important;
    }

    body.desktop-page-auth .desktop-side-nav {
        display: none !important;
    }

    body.desktop-page-auth > main {
        position: fixed;
        inset: 0;
        width: 100vw !important;
        max-width: none !important;
        min-height: 100vh !important;
        padding: 32px !important;
        display: grid !important;
        place-items: center !important;
        background: rgba(0, 0, 0, 0.72);
    }

    body.desktop-page-auth .auth-panel {
        width: min(440px, calc(100vw - 48px));
        max-width: 440px;
        max-height: calc(100vh - 64px);
        justify-content: flex-start;
        gap: 14px;
    }

    body.desktop-page-auth .app-logo-wrap {
        margin-bottom: 2px;
    }

    body.desktop-page-auth .app-logo {
        width: 52px;
        height: 52px;
        border-radius: 14px;
        box-shadow: none;
    }

    body.desktop-page-auth .auth-card {
        max-height: calc(100vh - 142px);
        overflow-y: auto;
        padding: 24px;
        border-radius: 16px;
        background: #090909;
        border-color: rgba(255, 255, 255, 0.12);
        box-shadow: 0 28px 90px rgba(0, 0, 0, 0.64);
    }

    body.desktop-page-auth #authTitle {
        margin-bottom: 22px !important;
        font-size: 30px !important;
        line-height: 1.15 !important;
    }

    body.desktop-page-home > main {
        width: calc(100vw - var(--desktop-nav-width) - 48px) !important;
        max-width: none !important;
        padding: 24px 0 48px !important;
    }

    body.desktop-page-home > .app-header {
        background: rgba(15, 15, 15, 0.92) !important;
    }

    body.desktop-page-home .app-header nav {
        width: calc(100vw - var(--desktop-nav-width) - 48px);
        max-width: none;
        margin-left: auto;
        margin-right: auto;
        padding: 14px 0 14px !important;
        justify-content: flex-start !important;
        gap: 26px !important;
    }

    body.desktop-page-home .tab-item {
        flex: 0 0 auto;
    }

    .desktop-home-search {
        margin-left: auto;
        width: min(420px, 34vw);
        height: 44px;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 0 16px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 999px;
        background: rgba(20, 20, 22, 0.78);
        color: #fff;
        backdrop-filter: blur(18px);
        box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
        transition: border-color 0.18s ease, background 0.18s ease;
    }

    .desktop-home-search:focus-within {
        border-color: rgba(255, 77, 141, 0.7);
        background: rgba(24, 24, 26, 0.92);
    }

    .desktop-home-search button {
        width: 24px;
        height: 24px;
        flex: 0 0 24px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #a7a7ad;
    }

    .desktop-home-search input {
        width: 100%;
        min-width: 0;
        border: 0;
        outline: 0;
        background: transparent;
        color: #fff;
        font-size: 14px;
        font-weight: 600;
    }

    .desktop-home-search input::placeholder {
        color: #8b8b93;
    }

    body.desktop-page-home #characterGrid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }

    body.desktop-page-home .character-card {
        border-radius: 10px !important;
        border: 1px solid var(--desktop-border);
        background: var(--desktop-card);
    }

    body.desktop-page-home .character-card .p-3 {
        padding: 10px !important;
    }

    body.desktop-page-feed .feed-topbar {
        left: var(--desktop-nav-width);
        right: 0;
        width: auto;
    }

    body.desktop-page-feed {
        --desktop-feed-card-height: min(92vh, 840px);
        --desktop-feed-card-width: min(calc(var(--desktop-feed-card-height) * 0.5625), calc(100vw - var(--desktop-nav-width) - 360px));
        --desktop-feed-action-gap: 18px;
        --desktop-feed-card-top: calc((100vh - min(var(--desktop-feed-card-height), calc(100vh - 24px))) / 2);
        --desktop-feed-tabs-top: max(48px, calc(var(--desktop-feed-card-top) + 18px));
        background: #000 !important;
    }

    html.desktop-page-feed,
    html.desktop-page-feed body {
        height: 100% !important;
        min-height: 100% !important;
        overflow-y: hidden !important;
        overflow-x: hidden !important;
    }

    body.desktop-page-feed .video-feed {
        width: calc(100vw - var(--desktop-nav-width)) !important;
        max-width: none !important;
        height: 100vh !important;
        min-height: 100vh !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 !important;
        display: block !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        scroll-snap-type: y mandatory !important;
        scrollbar-width: none;
        background: #000;
    }

    body.desktop-page-feed .video-feed::-webkit-scrollbar {
        display: none;
    }

    body.desktop-page-feed .video-slide {
        position: relative !important;
        width: 100% !important;
        height: 100vh !important;
        min-height: 100vh !important;
        display: grid !important;
        place-items: center;
        overflow: visible;
        border: 0;
        border-radius: 0;
        scroll-snap-align: start !important;
        scroll-snap-stop: always !important;
        background: #000;
    }

    body.desktop-page-feed .video-slide video {
        position: absolute;
        left: 50%;
        top: 50%;
        width: var(--desktop-feed-card-width) !important;
        height: var(--desktop-feed-card-height) !important;
        max-width: calc(100vw - var(--desktop-nav-width) - 180px);
        max-height: calc(100vh - 24px);
        transform: translate(-50%, -50%);
        border-radius: 16px;
        object-fit: contain;
        object-position: center center;
        background: #000;
        box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
    }

    body.desktop-page-feed .slide-content {
        left: calc(50% - var(--desktop-feed-card-width) / 2 + 12px);
        right: auto;
        bottom: max(36px, calc((100vh - var(--desktop-feed-card-height)) / 2 + 24px));
        width: calc(var(--desktop-feed-card-width) - 24px);
        max-width: calc(var(--desktop-feed-card-width) - 24px);
    }

    body.desktop-page-feed .slide-actions {
        left: calc(50% + var(--desktop-feed-card-width) / 2 + var(--desktop-feed-action-gap));
        right: auto;
        bottom: max(34px, calc((100vh - var(--desktop-feed-card-height)) / 2 + 18px));
        gap: 12px;
        color: #fff;
        text-shadow: none;
    }

    body.desktop-page-feed .action-button {
        gap: 3px;
        color: #fff;
        font-size: 10px;
        line-height: 1.05;
        text-shadow: none;
    }

    body.desktop-page-feed .action-icon {
        width: 48px;
        height: 34px;
        border-radius: 999px;
        background: transparent;
        color: #fff;
    }

    body.desktop-page-feed .action-icon svg {
        width: 26px;
        height: 26px;
        filter: none;
    }

    body.desktop-page-feed .profile-action {
        background: transparent;
        box-shadow: none;
    }

    body.desktop-page-feed .video-slide::before {
        left: 50%;
        top: 50%;
        right: auto;
        bottom: auto;
        width: var(--desktop-feed-card-width);
        height: var(--desktop-feed-card-height);
        transform: translate(-50%, -50%);
        border-radius: 16px;
        overflow: hidden;
        background:
            linear-gradient(to bottom, rgba(0, 0, 0, 0.24), transparent 24%),
            linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18) 34%, transparent 58%);
    }

    body.desktop-page-feed .pause-indicator {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    body.desktop-page-feed .feed-tabs {
        top: var(--desktop-feed-tabs-top);
        left: 50%;
        transform: translateX(-50%);
        height: 42px;
        gap: 4px;
        padding: 4px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 999px;
        background: rgba(8, 8, 10, 0.62);
        box-shadow: 0 16px 44px rgba(0, 0, 0, 0.32);
        backdrop-filter: blur(18px);
        text-shadow: none;
    }

    body.desktop-page-feed .feed-tabs button {
        min-width: 96px;
        height: 34px;
        padding: 0 18px;
        border-radius: 999px;
        color: rgba(255, 255, 255, 0.68);
        font-size: 14px;
        font-weight: 800;
        text-shadow: none;
        transition: color 0.18s ease, background 0.18s ease;
    }

    body.desktop-page-feed .feed-tabs button:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.08);
    }

    body.desktop-page-feed .feed-tabs .active {
        color: #111;
        background: rgba(255, 255, 255, 0.88);
    }

    body.desktop-page-feed .feed-tabs .active::after {
        display: none;
    }

    body.desktop-page-search > main {
        display: grid;
        grid-template-columns: 380px minmax(0, 1fr);
        gap: 24px;
        align-items: start;
        padding: 24px 0 48px !important;
    }

    body.desktop-page-search .search-desktop-sidebar,
    body.desktop-page-search .search-desktop-results {
        min-width: 0;
    }

    body.desktop-page-search .search-desktop-sidebar {
        position: sticky;
        top: 88px;
        overflow: visible;
        border: 1px solid var(--desktop-border);
        border-radius: 16px;
        background: var(--desktop-card);
    }

    body.desktop-page-search .search-desktop-results {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    body.desktop-page-search > main section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.desktop-page-search #recentSearchesSection,
    body.desktop-page-search #trendingSection,
    body.desktop-page-search #filterSection {
        border-top: 1px solid var(--desktop-border) !important;
        padding: 18px !important;
    }

    body.desktop-page-search #recentSearchesSection {
        border-top: 0 !important;
    }

    body.desktop-page-search .search-desktop-results > section {
        border-top: 0 !important;
        padding: 0 !important;
    }

    body.desktop-page-search #resultsCount {
        margin: 0;
        line-height: 1.4;
    }

    body.desktop-page-search #genderFilter {
        flex-wrap: wrap;
        gap: 8px;
    }

    body.desktop-page-search #genderFilter .filter-chip {
        min-width: 0;
        flex: 1 1 calc(50% - 4px);
        padding-left: 12px !important;
        padding-right: 12px !important;
        text-align: center;
        white-space: nowrap;
    }

    body.desktop-page-search #categoryFilter {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        overflow: visible !important;
        padding-bottom: 0 !important;
    }

    body.desktop-page-search #categoryFilter .filter-chip {
        min-width: 0;
        max-width: 100%;
        flex: 0 1 auto;
        padding-left: 12px !important;
        padding-right: 12px !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.desktop-page-search #tagsFilter {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        overflow: visible !important;
        padding-bottom: 0 !important;
    }

    body.desktop-page-search #tagsFilter .tag-chip {
        min-width: 0;
        flex: 0 1 auto;
        max-width: 100%;
        padding-left: 12px !important;
        padding-right: 12px !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.desktop-page-search #resultsGrid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 18px !important;
    }

    body.desktop-page-chats .chat-card,
    body.desktop-page-settings main > *,
    body.desktop-page-premium main > *,
    body.desktop-page-wallet main > *,
    body.desktop-page-create main > *,
    body.desktop-page-profile main > * {
        border-color: var(--desktop-border);
    }

    body.desktop-page-chats {
        height: 100vh;
        overflow: hidden;
        padding-bottom: 0 !important;
    }

    body.desktop-page-chats > .messages-shell {
        width: min(1320px, calc(100vw - var(--desktop-nav-width) - 64px)) !important;
        max-width: 1320px !important;
        height: calc(100vh - 48px);
        margin: 24px auto !important;
        display: grid;
        grid-template-columns: 380px minmax(0, 1fr);
        gap: 18px;
        padding: 0 !important;
    }

    body.desktop-page-chats .messages-list-pane,
    body.desktop-page-chats .messages-chat-pane {
        min-width: 0;
        min-height: 0;
        overflow: hidden;
        border: 1px solid var(--desktop-border);
        border-radius: 18px;
        background: rgba(18, 18, 20, 0.82);
        box-shadow: 0 20px 70px rgba(0, 0, 0, 0.24);
    }

    body.desktop-page-chats .messages-list-pane {
        display: flex;
        flex-direction: column;
    }

    body.desktop-page-chats .messages-list-header {
        position: static !important;
        flex: 0 0 auto;
        border-bottom-color: rgba(255, 255, 255, 0.07) !important;
        background: rgba(18, 18, 20, 0.94) !important;
    }

    body.desktop-page-chats .messages-list-header h1 {
        font-size: 18px;
    }

    body.desktop-page-chats #bulkDeleteBtn {
        min-width: 92px;
        justify-content: center;
    }

    body.desktop-page-chats .messages-search {
        flex: 0 0 auto;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        background: rgba(18, 18, 20, 0.9);
    }

    body.desktop-page-chats #pullIndicator {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        flex: 0 0 auto;
    }

    body.desktop-page-chats #chatList {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        display: flex;
        flex: 1 1 auto;
        min-height: 0;
        flex-direction: column;
        gap: 10px;
        overflow-y: auto;
        padding: 12px 12px 18px !important;
    }

    body.desktop-page-chats #chatList > * {
        margin-top: 0 !important;
    }

    body.desktop-page-chats .chat-card {
        border: 1px solid transparent;
        border-radius: 14px !important;
        background: rgba(42, 42, 42, 0.72) !important;
    }

    body.desktop-page-chats .chat-card:hover,
    body.desktop-page-chats .chat-card.is-active {
        border-color: rgba(255, 77, 141, 0.48);
        background: rgba(255, 77, 141, 0.12) !important;
    }

    body.desktop-page-chats .chat-card:active {
        transform: none;
    }

    body.desktop-page-chats #emptyState {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        flex: 1 1 auto;
        padding: 40px 20px !important;
    }

    body.desktop-page-chats .messages-chat-pane {
        display: flex;
        flex-direction: column;
    }

    body.desktop-page-chats .messages-chat-empty {
        height: 100%;
        min-height: 0;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 32px;
    }

    body.desktop-page-chats .messages-chat-empty:not(.hidden) {
        display: flex;
        flex-direction: column;
    }

    body.desktop-page-chats .messages-chat-content {
        height: 100%;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    body.desktop-page-chats .messages-chat-content.hidden {
        display: none !important;
    }

    body.desktop-page-chats .messages-chat-header {
        min-height: 72px;
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        padding: 14px 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        background: rgba(31, 31, 31, 0.78);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    body.desktop-page-chats .messages-premium-banner {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 13px 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        background: linear-gradient(90deg, rgba(255, 77, 141, 0.16), rgba(124, 58, 237, 0.12));
    }

    body.desktop-page-chats .messages-chat-scroll {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        padding: 20px 32px;
        display: flex;
        flex-direction: column;
        gap: 16px;
        background: linear-gradient(
            to bottom,
            rgba(15, 15, 15, 0.2) 0%,
            rgba(15, 15, 15, 0.06) 48%,
            rgba(15, 15, 15, 0.2) 100%
        );
    }

    body.desktop-page-chats .messages-chat-scroll > .flex {
        max-width: 760px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    body.desktop-page-chats .messages-chat-scroll > .desktop-ai-message-row {
        max-width: 840px;
        margin-left: 0;
        margin-right: auto;
    }

    body.desktop-page-chats .messages-chat-scroll > .desktop-user-message-row {
        max-width: 840px;
        margin-left: auto;
        margin-right: 0;
    }

    body.desktop-page-chats .messages-chat-footer {
        flex: 0 0 auto;
        padding: 14px 18px 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.07);
        background: rgba(31, 31, 31, 0.8);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    body.desktop-page-chat {
        height: 100vh;
        overflow: hidden;
    }

    body.desktop-page-chat > .relative.z-10 {
        width: min(920px, calc(100vw - var(--desktop-nav-width) - 64px));
        height: calc(100vh - 48px) !important;
        margin: 24px auto;
        border: 1px solid var(--desktop-border);
        border-radius: 20px;
        overflow: hidden;
        background: rgba(15, 15, 15, 0.28);
        backdrop-filter: blur(1px);
        -webkit-backdrop-filter: blur(1px);
        box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
    }

    body.desktop-page-chat header,
    body.desktop-page-chat footer {
        position: static !important;
    }

    body.desktop-page-chat header.glass {
        background: rgba(31, 31, 31, 0.76) !important;
    }

    body.desktop-page-chat footer {
        background: rgba(31, 31, 31, 0.74) !important;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    body.desktop-page-chat #chatContainer {
        width: 100% !important;
        max-width: none !important;
        padding-left: 32px !important;
        padding-right: 32px !important;
        background: linear-gradient(
            to bottom,
            rgba(15, 15, 15, 0.24) 0%,
            rgba(15, 15, 15, 0.08) 42%,
            rgba(15, 15, 15, 0.22) 100%
        );
    }

    body.desktop-page-chat #chatContainer > .flex {
        max-width: 760px;
        margin-left: auto;
        margin-right: auto;
    }

    body.desktop-page-character {
        --desktop-character-page-width: min(100vw, calc(100vh * 9 / 16));
        --desktop-character-page-height: min(100vh, calc(100vw * 16 / 9));
    }

    body.desktop-page-character.desktop-character-drawer-page {
        min-height: 100vh;
        overflow: hidden;
        background: #000 !important;
    }

    body.desktop-page-character.desktop-character-drawer-page::after {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 40;
        pointer-events: none;
        background: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.34) 54%, rgba(0, 0, 0, 0.72) 100%);
    }

    body.desktop-page-character.desktop-character-drawer-page > main {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        z-index: 80;
        width: var(--desktop-character-page-width) !important;
        max-width: 100vw !important;
        min-height: var(--desktop-character-page-height) !important;
        height: var(--desktop-character-page-height) !important;
        margin: 0 !important;
        padding-bottom: 84px !important;
        background: #0f0f0f !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        box-shadow: -28px 0 70px rgba(0, 0, 0, 0.48);
        animation: desktopCharacterSlideIn 0.28s ease-out;
    }

    body.desktop-page-character.desktop-character-drawer-page > main::-webkit-scrollbar {
        width: 0;
    }

    body.desktop-page-character.desktop-character-drawer-page .floating-back-btn {
        top: 14px !important;
        left: auto !important;
        right: calc(var(--desktop-character-page-width) - 56px) !important;
        z-index: 95;
    }

    body.desktop-page-character.desktop-character-drawer-page .bottom-chat-bar {
        left: auto !important;
        right: 0 !important;
        width: var(--desktop-character-page-width) !important;
        z-index: 90;
        border-left: 1px solid rgba(255, 255, 255, 0.08);
    }

    body.desktop-page-character.desktop-character-drawer-page .bottom-chat-bar > div {
        max-width: none !important;
    }

    body.desktop-page-character.desktop-character-drawer-page .toast,
    body.desktop-page-character.desktop-character-drawer-page #toast {
        left: auto !important;
        right: 24px !important;
        transform: none !important;
    }

    body.desktop-page-character.desktop-character-drawer-page #mediaDetail,
    body.desktop-page-character.desktop-character-drawer-page #premiumModal {
        z-index: 140 !important;
    }

    body.desktop-page-character .media-grid,
    body.desktop-page-character .desktop-media-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    /* Character.vue standalone page */
    body.desktop-page-character.desktop-character-vue-page {
        min-height: 100vh;
        overflow-y: auto;
        background: #000 !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0 !important;
    }

    body.desktop-page-character.desktop-character-vue-page > .character-profile {
        width: 100%;
        max-width: 480px;
        min-height: 100vh;
    }

    body.desktop-page-character.desktop-character-vue-page .char-topbar {
        position: relative;
    }

    body.desktop-page-character.desktop-character-vue-page .char-bottom-chat-bar {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
        background: #141414;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        z-index: auto;
    }

    body.desktop-page-character.desktop-character-vue-page .char-bottom-chat-bar > div {
        max-width: none !important;
    }

    body.desktop-page-character.desktop-character-vue-page .bottom-chat-btn {
        border: none;
        color: #fff;
        background: linear-gradient(135deg, #ff4d8d, #e63a7a);
        box-shadow: 0 8px 24px rgba(255, 77, 141, 0.32);
    }

    body.desktop-page-character.desktop-character-vue-page .bottom-chat-btn:hover {
        filter: brightness(1.08);
        box-shadow: 0 12px 32px rgba(255, 77, 141, 0.42);
    }

    /* Media grid square aspect on desktop */
    body.desktop-page-character.desktop-character-vue-page .media-card {
        aspect-ratio: 1 / 1 !important;
    }

    body.desktop-page-character.desktop-character-standalone-page {
        min-height: 100vh;
        overflow-y: auto;
        background: #000 !important;
    }

    body.desktop-page-character.desktop-character-standalone-page > main {
        width: var(--desktop-character-page-width) !important;
        max-width: min(430px, calc(100vw - 64px)) !important;
        min-height: 100vh !important;
        height: auto !important;
        margin: 0 auto !important;
        padding-bottom: 84px !important;
        background: #0f0f0f !important;
        overflow-x: hidden !important;
        box-shadow: 0 0 70px rgba(0, 0, 0, 0.42);
    }

    body.desktop-page-character.desktop-character-standalone-page .bottom-chat-bar {
        left: calc((100vw - min(430px, calc(100vw - 64px))) / 2) !important;
        right: auto !important;
        width: min(430px, calc(100vw - 64px)) !important;
        z-index: 90;
    }

    body.desktop-page-character.desktop-character-standalone-page .bottom-chat-bar > div {
        max-width: none !important;
    }

    body.desktop-character-drawer-open {
        overflow: hidden !important;
    }

    .desktop-character-drawer {
        position: fixed;
        inset: 0 0 0 var(--desktop-nav-width);
        z-index: 180;
        pointer-events: none;
    }

    .desktop-character-drawer-backdrop {
        position: absolute;
        inset: 0;
        border: 0;
        background: linear-gradient(90deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.46));
        pointer-events: auto;
    }

    .desktop-character-drawer-panel {
        --desktop-character-drawer-width: min(calc(100vh * 9 / 16), calc(100vw - var(--desktop-nav-width)));
        --desktop-character-drawer-height: min(100vh, calc((100vw - var(--desktop-nav-width)) * 16 / 9));
        position: absolute;
        top: 50%;
        right: 0;
        bottom: auto;
        width: var(--desktop-character-drawer-width);
        height: var(--desktop-character-drawer-height);
        max-width: calc(100vw - var(--desktop-nav-width));
        max-height: 100vh;
        aspect-ratio: 9 / 16;
        transform: translateY(-50%);
        overflow: hidden;
        background: #0f0f0f;
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: -28px 0 70px rgba(0, 0, 0, 0.48);
        pointer-events: auto;
        animation: desktopCharacterSlideIn 0.28s ease-out;
    }

    .desktop-character-drawer.is-closing .desktop-character-drawer-panel {
        animation: desktopCharacterSlideOut 0.22s ease-in both;
    }

    .desktop-character-drawer.is-closing .desktop-character-drawer-backdrop {
        opacity: 0;
        transition: opacity 0.18s ease;
    }

    .desktop-character-drawer-frame {
        width: 100%;
        height: 100%;
        border: 0;
        display: block;
        background: #0f0f0f;
    }

    .desktop-media-viewer {
        --desktop-media-height: min(92vh, 840px);
        --desktop-media-width: min(calc(var(--desktop-media-height) * 0.5625), calc(100vw - var(--desktop-nav-width) - 360px));
        --desktop-media-radius: 16px;
        position: fixed;
        inset: 0 0 0 var(--desktop-nav-width);
        z-index: 230;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        background: #000;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.18s ease, visibility 0.18s ease;
    }

    .desktop-media-viewer.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .desktop-media-viewer-backdrop {
        position: absolute;
        inset: 0;
        border: 0;
        background: #000;
    }

    .desktop-media-viewer-stage {
        position: relative;
        width: 100%;
        height: 100%;
        overflow: hidden;
        border-radius: 0;
        background: #000;
        box-shadow: none;
    }

    .desktop-media-viewer-close {
        position: absolute;
        top: max(12px, calc((100vh - var(--desktop-media-height)) / 2 + 12px + env(safe-area-inset-top, 0px)));
        left: calc((100% - var(--desktop-media-width)) / 2 + 16px);
        right: auto;
        z-index: 20;
        width: 40px;
        height: 40px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        background: rgba(0, 0, 0, 0.48);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .desktop-media-viewer-close svg {
        width: 20px;
        height: 20px;
    }

    .desktop-media-viewer-index {
        position: absolute;
        top: max(14px, calc((100vh - var(--desktop-media-height)) / 2 + 14px + env(safe-area-inset-top, 0px)));
        left: calc(50% + var(--desktop-media-width) / 2 - 16px);
        z-index: 20;
        padding: 6px 12px;
        border-radius: 999px;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: #fff;
        font-size: 13px;
        font-weight: 600;
        transform: translateX(-100%);
        pointer-events: none;
    }

    .desktop-media-viewer-stage::after {
        content: '';
        position: absolute;
        left: 50%;
        top: 50%;
        width: var(--desktop-media-width);
        height: var(--desktop-media-height);
        transform: translate(-50%, -50%);
        z-index: 1;
        pointer-events: none;
        background:
            linear-gradient(to bottom, rgba(0, 0, 0, 0.34), transparent 28%),
            linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.22) 42%, transparent 68%);
        border-radius: var(--desktop-media-radius);
    }

    .desktop-media-viewer.is-locked .desktop-media-viewer-stage::after {
        z-index: 1;
        background: rgba(0, 0, 0, 0.34);
    }

    .desktop-media-viewer-frame {
        position: absolute;
        left: 50%;
        top: 50%;
        z-index: 2;
        width: var(--desktop-media-width);
        height: var(--desktop-media-height);
        transform: translate(-50%, -50%);
        overflow: hidden;
        background: #000;
        border-radius: var(--desktop-media-radius);
        isolation: isolate;
    }

    .desktop-media-viewer-frame::after {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 3;
        pointer-events: none;
        background:
            linear-gradient(to bottom, rgba(0, 0, 0, 0.34), transparent 28%),
            linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.22) 42%, transparent 68%);
        border-radius: inherit;
    }

    .desktop-media-viewer.is-locked .desktop-media-viewer-frame::after {
        background: rgba(0, 0, 0, 0.34);
    }

    .desktop-media-viewer-content,
    .desktop-media-viewer-frame video,
    .desktop-media-viewer-frame img {
        position: absolute;
        inset: 0;
        z-index: 1;
        width: 100%;
        height: 100%;
    }

    .desktop-media-viewer-frame video,
    .desktop-media-viewer-frame img {
        object-fit: contain;
        background: #000;
    }

    .desktop-media-viewer-content.slide-next {
        animation: desktopMediaSlideNext 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .desktop-media-viewer-content.slide-prev {
        animation: desktopMediaSlidePrev 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    @keyframes desktopMediaSlideNext {
        from { transform: translateY(28px); opacity: 0.2; }
        to { transform: translateY(0); opacity: 1; }
    }

    @keyframes desktopMediaSlidePrev {
        from { transform: translateY(-28px); opacity: 0.2; }
        to { transform: translateY(0); opacity: 1; }
    }

    .desktop-media-viewer.is-locked .desktop-media-viewer-frame img,
    .desktop-media-viewer.is-locked .desktop-media-viewer-frame video {
        filter: blur(5px) brightness(0.72) saturate(0.9);
        transform: scale(1.018);
    }

    .desktop-media-viewer-lock {
        position: absolute;
        left: 50%;
        top: 44%;
        z-index: 20;
        width: min(292px, calc(var(--desktop-media-width) - 36px));
        min-height: 226px;
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        padding: 16px;
        text-align: center;
        color: #fff;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        text-shadow: none;
        transform: translate(-50%, -50%);
    }

    .desktop-media-viewer.is-locked .desktop-media-viewer-lock {
        display: flex;
    }

    .desktop-media-viewer-lock-icon {
        width: 68px;
        height: 68px;
        margin-bottom: 3px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        color: #ff4d8d;
        border: 0;
        box-shadow: none;
        filter: drop-shadow(0 8px 18px rgba(255, 77, 141, 0.38));
    }

    .desktop-media-viewer-lock-icon svg {
        width: 58px;
        height: 58px;
        stroke-width: 2.4;
    }

    .desktop-media-viewer-lock h3 {
        display: none;
    }

    .desktop-media-viewer-lock p {
        display: none;
    }

    .desktop-media-viewer-lock-price {
        display: block;
        margin-bottom: 12px;
        font-size: 12px;
        line-height: 1.2;
        font-weight: 800;
        color: #fff;
    }

    .desktop-media-viewer-action {
        min-height: 42px;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.22);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 0 28px;
        font-size: 14px;
        font-weight: 800;
        color: #fff;
        text-shadow: none;
        box-shadow: 0 12px 26px rgba(255, 77, 141, 0.28);
    }

    .desktop-media-viewer-action.premium {
        display: none;
    }

    .desktop-media-viewer-action svg {
        width: 17px;
        height: 17px;
    }

    .desktop-media-viewer-action.premium {
        display: none;
    }

    .desktop-media-viewer-action.coins {
        margin-top: 0;
        border-color: transparent;
        background: #ff4d8d;
    }

    .desktop-media-viewer-meta {
        position: absolute;
        left: calc((100% - var(--desktop-media-width)) / 2 + 16px);
        right: calc((100% - var(--desktop-media-width)) / 2 + 16px);
        bottom: max(28px, calc((100vh - var(--desktop-media-height)) / 2 + 24px + env(safe-area-inset-bottom, 0px)));
        z-index: 5;
        color: #fff;
        text-shadow: 0 2px 14px rgba(0, 0, 0, 0.68);
    }

    .desktop-media-character-name {
        display: block;
        margin-bottom: 10px;
        font-size: 16px;
        line-height: 1.25;
        font-weight: 800;
        color: #fff;
    }

    .desktop-media-viewer-meta p {
        margin: 0;
        color: rgba(255, 255, 255, 0.94);
        font-size: 14px;
        line-height: 1.58;
    }

    .desktop-media-caption-toggle {
        margin-left: 4px;
        padding: 0;
        background: transparent;
        border: 0;
        font: inherit;
        font-weight: 600;
        color: #ff4d8d;
        cursor: pointer;
    }

    .desktop-media-actions {
        position: absolute;
        left: calc(50% + var(--desktop-media-width) / 2 + 14px);
        right: auto;
        bottom: max(28px, calc((100vh - var(--desktop-media-height)) / 2 + 18px + env(safe-area-inset-bottom, 0px)));
        z-index: 6;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .desktop-media-profile {
        width: 50px;
        height: 50px;
        border: 0;
        border-radius: 50%;
        padding: 0;
        background: rgba(0, 0, 0, 0.34);
        cursor: pointer;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.36);
    }

    .desktop-media-profile img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        object-position: top center;
        border: 2px solid rgba(255, 255, 255, 0.86);
        display: block;
    }

    .desktop-media-action {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        color: #fff;
        border: 0;
        background: transparent;
        padding: 0;
        font-size: 10px;
        font-weight: 700;
        line-height: 1.05;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.56);
        cursor: pointer;
    }

    .desktop-media-action-icon {
        width: 48px;
        height: 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.18s ease, color 0.18s ease;
    }

    .desktop-media-action-icon svg {
        width: 28px;
        height: 28px;
        filter: drop-shadow(0 2px 7px rgba(0, 0, 0, 0.62));
    }

    .desktop-media-action.active .desktop-media-action-icon {
        color: #ff4d8d;
    }

    .desktop-media-action.active .desktop-media-action-icon svg {
        fill: currentColor;
    }

    .desktop-media-action.pulse .desktop-media-action-icon {
        animation: desktopMediaActionPulse 0.26s ease both;
    }

    @keyframes desktopMediaActionPulse {
        0% { transform: scale(1); }
        50% { transform: scale(1.24); }
        100% { transform: scale(1); }
    }

    .desktop-media-like-burst {
        position: absolute;
        left: 50%;
        top: 50%;
        z-index: 7;
        color: #ff4d8d;
        opacity: 0;
        pointer-events: none;
        transform: translate(-50%, -50%) scale(0.6);
        filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.55));
    }

    .desktop-media-like-burst svg {
        width: 92px;
        height: 92px;
        fill: currentColor;
    }

    .desktop-media-like-burst.show {
        animation: desktopMediaLikeBurst 0.72s cubic-bezier(0.2, 0.9, 0.22, 1) both;
    }

    @keyframes desktopMediaLikeBurst {
        0% { opacity: 0; transform: translate(-50%, -50%) scale(0.55) rotate(-10deg); }
        24% { opacity: 1; transform: translate(-50%, -50%) scale(1.15) rotate(7deg); }
        50% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
        100% { opacity: 0; transform: translate(-50%, -58%) scale(1.35) rotate(0deg); }
    }

    @keyframes desktopCharacterSlideIn {
        from {
            transform: translateY(-50%) translateX(100%);
        }
        to {
            transform: translateY(-50%) translateX(0);
        }
    }

    @keyframes desktopCharacterSlideOut {
        from {
            transform: translateY(-50%) translateX(0);
        }
        to {
            transform: translateY(-50%) translateX(100%);
        }
    }

    body.desktop-page-settings > main,
    body.desktop-page-premium > main,
    body.desktop-page-wallet > main {
        width: min(960px, calc(100vw - var(--desktop-nav-width) - 64px)) !important;
        max-width: 960px !important;
        padding: 24px 0 48px !important;
    }

    body.desktop-page-profile > main {
        width: min(1180px, calc(100vw - var(--desktop-nav-width) - 64px)) !important;
        max-width: 1180px !important;
        padding: 24px 0 56px !important;
        display: grid;
        grid-template-columns: 320px minmax(0, 1fr);
        gap: 24px;
        align-items: start;
    }

    body.desktop-page-profile {
        min-height: 100vh;
        display: flex;
        align-items: center;
    }

    body.desktop-page-profile .profile-mobile-header {
        display: none !important;
    }

    body.desktop-page-profile .profile-desktop-sidebar {
        position: sticky;
        top: 24px;
        display: flex;
        min-width: 0;
        flex-direction: column;
        gap: 16px;
    }

    body.desktop-page-profile .profile-user-card,
    body.desktop-page-profile .profile-plan-card,
    body.desktop-page-profile .profile-tab-nav,
    body.desktop-page-profile .tab-content {
        border: 1px solid var(--desktop-border);
        background: var(--desktop-card);
        box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
    }

    body.desktop-page-profile .profile-user-card {
        margin-bottom: 0 !important;
        min-height: 340px;
        justify-content: center;
        padding: 38px 22px !important;
        border-radius: 18px !important;
        text-align: center;
    }

    body.desktop-page-profile .profile-user-card .w-24.h-24 {
        width: 124px !important;
        height: 124px !important;
    }

    body.desktop-page-profile .profile-user-card h2 {
        margin-bottom: 22px !important;
        font-size: 19px !important;
        line-height: 1.25 !important;
    }

    body.desktop-page-profile .profile-user-card > button:last-child {
        width: 100%;
        border-radius: 12px !important;
        padding: 12px 16px !important;
    }

    body.desktop-page-profile .profile-plan-card {
        display: flex;
        flex: 0 0 auto;
        flex-direction: column;
        justify-content: flex-start;
        margin-bottom: 0 !important;
        padding: 18px !important;
        border-radius: 18px !important;
    }

    body.desktop-page-profile .profile-plan-card > button:last-child {
        min-height: 42px;
        border-radius: 12px !important;
    }

    body.desktop-page-profile .profile-coin-balance {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        width: 100%;
        margin: 14px 0;
        padding: 14px 12px 14px 14px;
        border: 1px solid rgba(255, 77, 141, 0.18);
        border-radius: 16px;
        color: #fff;
        text-align: left;
        background: rgba(255, 77, 141, 0.08);
        transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    }

    body.desktop-page-profile .profile-coin-balance:hover {
        border-color: rgba(255, 77, 141, 0.34);
        background: rgba(255, 77, 141, 0.12);
    }

    body.desktop-page-profile .profile-coin-copy {
        gap: 12px;
    }

    body.desktop-page-profile .profile-coin-icon {
        display: inline-flex;
        width: 40px;
        height: 40px;
        flex-shrink: 0;
        align-items: center;
        justify-content: center;
        border-radius: 13px;
        color: #fff;
        background: linear-gradient(135deg, #ff4d8d, #ff8ab8);
        box-shadow: 0 12px 28px rgba(255, 77, 141, 0.24);
    }

    body.desktop-page-profile .profile-coin-label,
    body.desktop-page-profile .profile-coin-subtitle,
    body.desktop-page-profile .profile-coin-value {
        display: block;
        line-height: 1.1;
    }

    body.desktop-page-profile .profile-coin-label {
        color: #a7a7ad;
        font-size: 13px;
        font-weight: 700;
    }

    body.desktop-page-profile .profile-coin-subtitle {
        margin-top: 4px;
        color: #7b7b84;
        font-size: 12px;
        font-weight: 650;
    }

    body.desktop-page-profile .profile-coin-amount {
        gap: 4px;
        color: #ff8ab8;
    }

    body.desktop-page-profile .profile-coin-value {
        font-size: 26px;
        font-weight: 850;
        letter-spacing: 0;
    }

    body.desktop-page-profile .profile-workspace {
        display: flex;
        min-width: 0;
        flex-direction: column;
        gap: 16px;
    }

    body.desktop-page-profile .profile-workspace-hero {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        padding: 20px 22px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 20px;
        background: linear-gradient(180deg, rgba(27, 27, 27, 0.96) 0%, rgba(21, 21, 21, 0.98) 100%);
        box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
    }

    body.desktop-page-profile .profile-workspace-hero-copy {
        min-width: 0;
    }

    body.desktop-page-profile .profile-workspace-kicker {
        display: block;
        margin-bottom: 6px;
        color: #ff6fa1;
        font-size: 13px;
        font-weight: 800;
        letter-spacing: 0.02em;
    }

    body.desktop-page-profile .profile-workspace-title {
        font-size: 31px;
        font-weight: 900;
        line-height: 1.05;
        letter-spacing: -0.02em;
    }

    body.desktop-page-profile .profile-workspace-actions {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-shrink: 0;
    }

    body.desktop-page-profile .profile-workspace-share {
        display: inline-flex;
        width: 42px;
        height: 42px;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.03);
        color: #e9e9ee;
        transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    }

    body.desktop-page-profile .profile-workspace-share:hover {
        border-color: rgba(255, 255, 255, 0.14);
        background: rgba(255, 255, 255, 0.06);
    }

    body.desktop-page-profile .profile-workspace-share:active {
        transform: scale(0.98);
    }

    body.desktop-page-profile .profile-workspace-create {
        min-height: 42px;
        padding: 0 18px;
        border-radius: 14px;
        font-size: 15px;
        font-weight: 800;
        box-shadow: 0 16px 30px rgba(255, 77, 141, 0.22);
    }

    body.desktop-page-profile .profile-tab-nav {
        margin-bottom: 0 !important;
        padding: 6px !important;
        border-radius: 16px !important;
    }

    body.desktop-page-profile .profile-tab-nav .tab-btn {
        min-height: 42px;
        border-radius: 12px !important;
        font-size: 14px !important;
    }

    body.desktop-page-profile .tab-content {
        min-width: 0;
        min-height: 520px;
        padding: 18px !important;
        border-radius: 18px !important;
    }

    body.desktop-page-profile #characters-tab > .flex:first-child {
        justify-content: flex-start;
        gap: 28px !important;
        margin: 0 0 18px !important;
        padding: 0 2px 8px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        overflow: visible !important;
    }

    body.desktop-page-profile #characters-tab .filter-chip {
        position: relative;
        min-height: 36px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: #a7a7ad;
        font-size: 15px;
        font-weight: 700;
    }

    body.desktop-page-profile #characters-tab .filter-chip.active {
        background: transparent;
        color: #ff7aae;
    }

    body.desktop-page-profile #characters-tab .filter-chip.active::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -7px;
        height: 3px;
        border-radius: 999px;
        background: #ff4d8d;
    }

    body.desktop-page-profile #characterList {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }

    body.desktop-page-profile #likedResourcesGrid {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)) !important;
        gap: 6px !important;
        background: transparent;
    }

    body.desktop-page-profile .liked-media-tile {
        border-radius: 10px;
        background: rgba(21, 21, 21, 0.9);
    }

    body.desktop-page-profile .character-card {
        border: 1px solid rgba(255, 255, 255, 0.07);
        border-radius: 14px !important;
        background: rgba(21, 21, 21, 0.9) !important;
    }

    body.desktop-page-profile .character-card > div:first-child {
        aspect-ratio: 4 / 5 !important;
    }

    body.desktop-page-profile .character-card > .p-3 {
        padding: 12px !important;
    }

    body.desktop-page-profile .character-card h3 {
        font-size: 14px !important;
    }

    body.desktop-page-profile .character-card button {
        min-height: 34px;
        border-radius: 10px !important;
    }

    body.desktop-page-profile #followingList {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    body.desktop-page-profile #followingList.space-y-3 > :not([hidden]) ~ :not([hidden]) {
        margin-top: 0 !important;
    }

    body.desktop-page-profile .following-card {
        min-height: 86px;
        border: 1px solid rgba(255, 255, 255, 0.07);
        border-radius: 14px !important;
        background: rgba(21, 21, 21, 0.9) !important;
    }

    body.desktop-page-profile .following-card .h-12.w-12 {
        width: 56px !important;
        height: 56px !important;
        border-radius: 14px !important;
    }

    body.desktop-page-profile #settings-tab .profile-settings-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    body.desktop-page-profile #settings-tab .profile-settings-grid.space-y-2 > :not([hidden]) ~ :not([hidden]) {
        margin-top: 0 !important;
    }

    body.desktop-page-profile #settings-tab .settings-item {
        min-height: 76px;
        border: 1px solid rgba(255, 255, 255, 0.07);
        border-radius: 14px !important;
        background: rgba(21, 21, 21, 0.9) !important;
    }

    body.desktop-page-profile #emptyCharactersState,
    body.desktop-page-profile #emptyFollowingState,
    body.desktop-page-profile #emptyLikedResourcesState {
        min-height: 360px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.025);
    }

    body.desktop-page-profile #fabBtn {
        display: none !important;
    }

    body.desktop-page-create > main {
        width: min(1180px, calc(100vw - var(--desktop-nav-width) - 64px)) !important;
        max-width: 1180px !important;
        padding: 24px 0 48px !important;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
        gap: 18px;
        align-items: start;
    }

    body.desktop-page-create > main > section,
    body.desktop-page-create > main > .desktop-create-aside {
        min-width: 0;
    }

    body.desktop-page-create > main > section:first-child {
        grid-column: 1 / -1;
        width: 100% !important;
        padding: 14px 18px !important;
        border-radius: 16px !important;
        background: rgba(26, 26, 26, 0.82) !important;
        border-color: rgba(255, 255, 255, 0.08) !important;
    }

    body.desktop-page-create > main > section:first-child > div {
        align-items: center !important;
    }

    body.desktop-page-create > main > section:first-child .flex-1 {
        flex: 0 1 auto !important;
    }

    body.desktop-page-create > main > section:first-child p:first-child {
        margin-bottom: 2px !important;
        font-size: 11px !important;
    }

    body.desktop-page-create > main > section:first-child h2 {
        margin-bottom: 2px !important;
        font-size: 18px !important;
        line-height: 1.25 !important;
    }

    body.desktop-page-create > main > section:first-child .w-12.h-12 {
        width: 40px !important;
        height: 40px !important;
        border-radius: 12px !important;
    }

    body.desktop-page-create > main > section:nth-of-type(2),
    body.desktop-page-create > main > section:nth-of-type(3) {
        grid-column: 1;
    }

    body.desktop-page-create > main > .desktop-create-aside {
        grid-column: 2;
        grid-row: 2 / span 2;
        position: sticky;
        top: 24px;
        align-self: start;
    }

    body.desktop-page-create .desktop-create-aside > section:first-child {
        padding: 14px !important;
    }

    body.desktop-page-create .desktop-create-aside > section:first-child h3 {
        margin-bottom: 10px !important;
    }

    body.desktop-page-create .desktop-create-aside > section:first-child > div {
        padding: 12px !important;
    }

    body.desktop-page-create .desktop-create-aside > section:first-child .space-y-2 > :not([hidden]) ~ :not([hidden]) {
        margin-top: 6px !important;
    }

    body.desktop-page-create .desktop-create-aside > section:first-child .bg-dark-card.rounded-xl {
        padding: 8px !important;
    }

    body.desktop-page-create #tagPicker {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

}

@media (min-width: 1280px) {
    body.desktop-page-search #resultsGrid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    body.desktop-page-home #characterGrid {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    }

    body.desktop-page-profile > main {
        grid-template-columns: 336px minmax(0, 1fr);
    }
}

@media (min-width: 1680px) {
    body.desktop-page-home > main,
    body.desktop-page-home .app-header nav {
        width: calc(100vw - var(--desktop-nav-width) - 64px) !important;
    }

    body.desktop-page-home #characterGrid {
        grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    }

    body.desktop-page-profile > main {
        width: min(1320px, calc(100vw - var(--desktop-nav-width) - 80px)) !important;
        max-width: 1320px !important;
    }

    body.desktop-page-profile #characterList {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    body.desktop-page-profile #likedResourcesGrid {
        grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)) !important;
    }
}

@media (min-width: 1880px) {
    body.desktop-page-home #characterGrid {
        grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
    }
}
