:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --text: #172033;
    --muted: #667085;
    --line: #d8dee8;
    --accent: #0b66c3;
    --accent-dark: #084f99;
    --ok: #0f7b45;
    --warn: #b45309;
    --danger: #b42318;
    --shadow: 0 10px 30px rgba(31, 41, 55, 0.08);
}

/* Landing page publica */
.landing-page {
    background: #0b1010;
    color: #f8f8f3;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    overflow-x: clip;
}

.landing-page a:hover {
    text-decoration: none;
}

.social-landing {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    overflow: hidden;
    background-color: #0b1010;
    background-image: url("https://images.higgs.ai/?default=1&output=webp&url=https%3A%2F%2Fd8j0ntlcm91z4.cloudfront.net%2Fuser_38xzZboKViGWJOttwIXH07lWA1P%2Fhf_20260624_111401_56af5012-2263-45d3-849a-8688084d7c2a.png&w=1280&q=85");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.social-landing::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background: rgba(7, 11, 11, 0.8);
}

.landing-header,
.landing-hero,
.landing-ticker {
    position: relative;
    z-index: 1;
    width: min(1440px, 100%);
    margin: 0 auto;
}

.landing-header {
    z-index: 2;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 36px;
    padding: 24px 48px;
    animation: landing-enter-down 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.landing-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
    color: #ffffff;
}

.landing-brand img {
    width: 44px;
    height: 46px;
    object-fit: contain;
}

.landing-brand span {
    display: grid;
    gap: 1px;
}

.landing-brand strong,
.landing-brand em {
    font-style: normal;
    letter-spacing: 0;
}

.landing-brand strong {
    color: #ffffff;
    font-family: Urbanist, Inter, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.landing-brand em {
    color: #b7c0b2;
    font-size: 11px;
    font-weight: 500;
}

.landing-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.landing-nav a,
.landing-login-link {
    position: relative;
    color: #e9eee4;
    font-size: 14px;
    font-weight: 500;
}

.landing-nav a::after,
.landing-login-link::after {
    position: absolute;
    right: 0;
    bottom: -7px;
    left: 0;
    height: 1px;
    content: "";
    background: #c7fd72;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.landing-nav a:hover::after,
.landing-login-link:hover::after {
    transform: scaleX(1);
}

.landing-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}

.landing-header-cta,
.landing-primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    border: 1px solid #c7fd72;
    border-radius: 8px;
    background: #c7fd72;
    color: #102008;
    font-size: 14px;
    font-weight: 700;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.landing-header-cta {
    padding: 0 16px;
}

.landing-header-cta .button-icon,
.landing-primary-action .button-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.landing-header-cta:hover,
.landing-primary-action:hover {
    border-color: #ffffff;
    background: #ffffff;
    color: #102008;
    transform: translateY(-2px);
}

.landing-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    background: rgba(7, 11, 11, 0.62);
    color: #ffffff;
    cursor: pointer;
}

.landing-menu-toggle .button-icon {
    width: 20px;
    height: 20px;
}

.landing-mobile-menu {
    position: absolute;
    top: calc(100% - 8px);
    right: 18px;
    z-index: 5;
    display: grid;
    min-width: 210px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    background: #101514;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.landing-mobile-menu a {
    padding: 13px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: #f8f8f3;
    font-size: 14px;
    font-weight: 600;
}

.landing-mobile-menu a:last-child {
    border-bottom: 0;
    background: #c7fd72;
    color: #102008;
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
    align-items: center;
    gap: 38px;
    min-height: 660px;
    min-width: 0;
    padding: 42px 48px 72px;
}

.landing-hero-copy {
    max-width: 610px;
    min-width: 0;
    padding-top: 20px;
    animation: landing-enter-up 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.landing-eyebrow {
    margin: 0 0 16px;
    color: #c7fd72;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.landing-hero h1,
.landing-workflow h2,
.landing-access h2 {
    margin: 0;
    font-family: Urbanist, Inter, sans-serif;
    letter-spacing: 0;
}

.landing-hero h1 {
    color: #ffffff;
    font-size: 76px;
    font-weight: 700;
    line-height: 0.92;
}

.landing-typewriter {
    min-height: 122px;
    margin: 22px 0 0;
    color: #e9eee4;
    font-family: Urbanist, Inter, sans-serif;
    font-size: 40px;
    font-weight: 600;
    line-height: 1.05;
}

.landing-typewriter::after {
    display: inline-block;
    width: 3px;
    height: 0.9em;
    margin-left: 5px;
    content: "";
    background: #c7fd72;
    vertical-align: -0.08em;
    animation: landing-cursor-blink 0.8s step-end infinite;
}

.landing-typewriter.is-complete::after {
    animation: none;
    opacity: 0;
}

.landing-summary {
    max-width: 510px;
    margin: 22px 0 0;
    color: #c4cdc0;
    font-size: 17px;
    line-height: 1.65;
}

.landing-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.landing-primary-action {
    min-height: 50px;
    padding: 0 20px;
    font-size: 15px;
}

.landing-secondary-action {
    display: inline-flex;
    align-items: center;
    min-height: 50px;
    padding: 0 8px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
}

.landing-secondary-action:hover {
    color: #c7fd72;
}

.landing-signal {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 46px;
    color: #f3f7ee;
    font-size: 14px;
    font-weight: 600;
    animation: landing-enter-up 0.8s 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.landing-signal-pointer {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid #c7fd72;
    border-radius: 50%;
    background: #c7fd72;
    color: #102008;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.landing-orbit-wrap {
    display: grid;
    min-width: 0;
    width: 100%;
    place-items: center;
    animation: landing-orbit-in 1.15s 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.landing-orbit-stage {
    position: relative;
    width: 640px;
    height: 640px;
    max-width: 100%;
    max-height: min(640px, 58vw);
    aspect-ratio: 1;
}

.landing-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(214, 255, 164, 0.36);
    border-radius: 50%;
}

.landing-orbit-one {
    width: 34%;
    height: 34%;
    animation: landing-orbit-reverse 30s linear infinite;
}

.landing-orbit-two {
    width: 49%;
    height: 49%;
    animation: landing-orbit-forward 40s linear infinite;
}

.landing-orbit-three {
    width: 66%;
    height: 66%;
    animation: landing-orbit-forward 50s linear infinite;
}

.landing-orbit-four {
    width: 83%;
    height: 83%;
    border-color: rgba(84, 228, 255, 0.42);
    animation: landing-orbit-reverse 60s linear infinite;
}

.landing-orbit-card {
    position: absolute;
    display: grid;
    width: 78px;
    height: 78px;
    place-items: center;
    gap: 3px;
    border: 1px solid rgba(255, 255, 255, 0.44);
    border-radius: 8px;
    background: rgba(9, 15, 14, 0.84);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
    animation: landing-card-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.landing-orbit-card img,
.landing-orbit-card .button-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.landing-card-symbol {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: #ffffff;
    color: #111716;
    font-size: 17px;
    font-weight: 700;
}

.landing-orbit-card-facebook {
    top: 0;
    left: 50%;
    border-color: #75a7ff;
    animation-delay: 0.7s;
}

.landing-orbit-card-instagram {
    top: 22%;
    left: 96%;
    border-color: #ff9d9d;
    animation-delay: 0.9s;
}

.landing-orbit-card-library {
    top: 84%;
    left: 13%;
    border-color: #c7fd72;
    animation-delay: 1.05s;
}

.landing-orbit-card-tiktok {
    top: 58%;
    left: -3%;
    border-color: #79f2e5;
    animation-delay: 1.2s;
}

.landing-orbit-card-text {
    top: 4%;
    left: 71%;
    border-color: #f7d985;
    animation-delay: 1.35s;
}

.landing-orbit-card-share {
    top: 23%;
    left: 3%;
    border-color: #54e4ff;
    animation-delay: 1.5s;
}

.landing-orbit-card-review {
    top: 83%;
    left: 83%;
    border-color: #c7fd72;
    animation-delay: 1.65s;
}

.landing-orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 178px;
    height: 178px;
    place-items: center;
    align-content: center;
    gap: 3px;
    border: 1px solid #ffffff;
    border-radius: 50%;
    background: #f4f8e9;
    color: #0f1714;
    box-shadow: 0 22px 62px rgba(0, 0, 0, 0.3);
    text-align: center;
    transform: translate(-50%, -50%);
}

.landing-orbit-center img {
    width: 48px;
    height: 51px;
    object-fit: contain;
}

.landing-orbit-center strong {
    font-family: Urbanist, Inter, sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
}

.landing-orbit-center span {
    max-width: 130px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
}

.landing-ticker {
    display: grid;
    grid-template-columns: 225px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.23);
    background: rgba(8, 13, 12, 0.72);
    animation: landing-enter-up 0.85s 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.landing-ticker > p {
    margin: 0;
    padding: 20px 0 20px 48px;
    color: #b7c0b2;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    text-transform: uppercase;
}

.landing-ticker-mask {
    min-width: 0;
    overflow: hidden;
}

.landing-ticker-track {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 52px;
    padding: 16px 52px 16px 0;
    animation: landing-ticker-scroll 22s linear infinite;
}

.landing-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: max-content;
    color: #f3f7ee;
    font-family: Urbanist, Inter, sans-serif;
    font-size: 18px;
    font-weight: 700;
}

.landing-ticker-item img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.landing-ticker-item-cloud,
.landing-ticker-item-ai {
    color: #c7fd72;
}

.landing-workflow,
.landing-access {
    width: 100%;
    padding: 104px max(48px, calc((100% - 1344px) / 2));
}

.landing-workflow {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    gap: 72px;
    background: #f4f8e9;
    color: #101714;
}

.landing-workflow .landing-eyebrow,
.landing-access .landing-eyebrow {
    color: #48742d;
}

.landing-workflow h2,
.landing-access h2 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.02;
}

.landing-workflow-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid #aab3a4;
}

.landing-workflow-list li {
    display: grid;
    gap: 14px;
    min-height: 250px;
    padding: 24px 20px 12px 0;
    border-right: 1px solid #aab3a4;
}

.landing-workflow-list li + li {
    padding-left: 20px;
}

.landing-workflow-list li:last-child {
    border-right: 0;
}

.landing-workflow-list span {
    color: #48742d;
    font-size: 13px;
    font-weight: 700;
}

.landing-workflow-list strong {
    font-family: Urbanist, Inter, sans-serif;
    font-size: 26px;
    line-height: 1;
}

.landing-workflow-list p {
    margin: 0;
    color: #4e5953;
    font-size: 15px;
    line-height: 1.55;
}

.landing-access {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 36px;
    background: #0b1010;
    color: #f8f8f3;
}

.landing-access > div {
    max-width: 760px;
}

.landing-access h2 {
    max-width: 740px;
}

.landing-access-action {
    min-width: max-content;
}

.public-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 20px;
    padding: 8px 0;
    font-size: 12px;
    line-height: 1.6;
}

.public-legal-links a {
    padding: 8px 0;
    color: #c9d3cf;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.public-legal-links a:hover {
    color: #fff;
}

.public-legal-links a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.landing-page > .public-legal-links {
    padding: 22px 20px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

@keyframes landing-enter-down {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes landing-enter-up {
    from { opacity: 0; transform: translateY(34px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes landing-orbit-in {
    from { opacity: 0; transform: scale(0.86); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes landing-cursor-blink {
    50% { opacity: 0; }
}

@keyframes landing-orbit-forward {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes landing-orbit-reverse {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(-360deg); }
}

@keyframes landing-card-in {
    from { opacity: 0; transform: translate(-50%, -50%) rotate(-120deg) scale(0.5); }
    to { opacity: 1; transform: translate(-50%, -50%) rotate(0deg) scale(1); }
}

@keyframes landing-ticker-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (max-width: 1280px) {
    .landing-header,
    .landing-hero {
        padding-right: 34px;
        padding-left: 34px;
    }

    .landing-header {
        gap: 26px;
    }

    .landing-nav {
        gap: 20px;
    }

    .landing-hero {
        grid-template-columns: minmax(0, 0.95fr) minmax(450px, 1.05fr);
    }

    .landing-orbit-stage {
        width: 550px;
        height: 550px;
    }

    .landing-workflow,
    .landing-access {
        padding-right: 34px;
        padding-left: 34px;
    }
}

@media (max-width: 1024px) {
    .landing-header {
        grid-template-columns: auto 1fr auto;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .landing-hero {
        grid-template-columns: 1fr;
        min-height: 0;
        padding-top: 56px;
        padding-bottom: 74px;
    }

    .landing-hero-copy {
        max-width: 680px;
        padding-top: 0;
    }

    .landing-hero h1 {
        font-size: 58px;
    }

    .landing-typewriter {
        min-height: 0;
        font-size: 34px;
    }

    .landing-orbit-stage {
        width: 570px;
        height: 570px;
        max-height: none;
        margin-top: 10px;
    }

    .landing-ticker {
        grid-template-columns: 190px minmax(0, 1fr);
    }

    .landing-workflow {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .landing-header {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 14px;
        padding: 16px 18px;
    }

    .landing-brand img {
        width: 38px;
        height: 40px;
    }

    .landing-brand strong {
        font-size: 16px;
    }

    .landing-nav,
    .landing-header-cta {
        display: none;
    }

    .landing-header-actions {
        gap: 12px;
    }

    .landing-menu-toggle {
        display: inline-flex;
    }

    .landing-hero {
        gap: 38px;
        padding: 42px 18px 50px;
    }

    .landing-hero-copy,
    .landing-typewriter,
    .landing-summary {
        width: 100%;
        max-width: calc(100vw - 36px);
        overflow-wrap: anywhere;
    }

    .landing-hero h1 {
        font-size: 48px;
    }

    .landing-typewriter {
        font-size: 30px;
    }

    .landing-summary {
        font-size: 16px;
    }

    .landing-signal {
        margin-top: 32px;
    }

    .landing-orbit-stage {
        width: min(440px, calc(100vw - 36px));
        height: auto;
        max-width: 100%;
        aspect-ratio: 1;
    }

    .landing-orbit-wrap {
        overflow: clip;
    }

    .landing-orbit-card {
        width: 62px;
        height: 62px;
        font-size: 10px;
    }

    .landing-orbit-card img,
    .landing-orbit-card .button-icon {
        width: 23px;
        height: 23px;
    }

    .landing-card-symbol {
        width: 23px;
        height: 23px;
        font-size: 14px;
    }

    .landing-orbit-center {
        width: 142px;
        height: 142px;
    }

    .landing-orbit-center img {
        width: 40px;
        height: 42px;
    }

    .landing-orbit-center strong {
        font-size: 32px;
    }

    .landing-ticker {
        display: block;
        width: 100%;
    }

    .landing-ticker > p {
        padding: 16px 18px 2px;
    }

    .landing-ticker-track {
        gap: 36px;
        padding: 13px 36px 16px 18px;
    }

    .landing-workflow,
    .landing-access {
        padding: 72px 18px;
    }

    .landing-workflow h2,
    .landing-access h2 {
        font-size: 36px;
    }

    .landing-workflow-list {
        grid-template-columns: 1fr;
    }

    .landing-workflow-list li,
    .landing-workflow-list li + li {
        min-height: 0;
        padding: 22px 0;
        border-right: 0;
        border-bottom: 1px solid #aab3a4;
    }

    .landing-workflow-list li:last-child {
        border-bottom: 0;
    }

    .landing-access {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .landing-login-link {
        font-size: 13px;
    }

    .landing-hero h1 {
        font-size: 40px;
    }

    .landing-typewriter {
        font-size: 25px;
    }

    .landing-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .landing-primary-action,
    .landing-secondary-action {
        width: 100%;
    }

    .landing-secondary-action {
        justify-content: center;
    }

    .landing-orbit-stage {
        width: min(320px, calc(100vw - 36px));
        height: auto;
    }

    .landing-orbit-card {
        width: 48px;
        height: 48px;
        gap: 0;
        font-size: 0;
    }

    .landing-orbit-card img,
    .landing-orbit-card .button-icon {
        width: 22px;
        height: 22px;
    }

    .landing-card-symbol {
        width: 22px;
        height: 22px;
        font-size: 13px;
    }

    .landing-orbit-center {
        width: 112px;
        height: 112px;
    }

    .landing-orbit-center img {
        display: none;
    }

    .landing-orbit-center strong {
        font-size: 29px;
    }

    .landing-orbit-center span {
        max-width: 92px;
        font-size: 9px;
    }

    .landing-workflow h2,
    .landing-access h2 {
        font-size: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-header,
    .landing-hero-copy,
    .landing-orbit-wrap,
    .landing-signal,
    .landing-ticker,
    .landing-orbit,
    .landing-orbit-card,
    .landing-ticker-track,
    .landing-typewriter::after {
        animation: none;
    }
}

@font-face {
    font-family: "WebHat Manrope";
    font-style: normal;
    font-weight: 700 800;
    font-display: optional;
    src: url("fonts/webhat-manrope-latin.woff2") format("woff2");
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

input,
select,
textarea,
button {
    font: inherit;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    padding: 10px 11px;
}

textarea {
    resize: vertical;
}

label {
    display: grid;
    gap: 6px;
    color: #344054;
    font-weight: 600;
}

label input,
label select,
label textarea {
    font-weight: 400;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 0;
    font-size: 28px;
    line-height: 1.15;
}

h2 {
    font-size: 18px;
    margin-bottom: 16px;
}

h3 {
    font-size: 15px;
    margin: 18px 0 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 12px 10px;
    text-align: left;
    vertical-align: top;
}

th {
    color: #475467;
    background: var(--surface-soft);
    font-size: 12px;
    text-transform: uppercase;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 0 28px;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
}

.app-preloader {
    display: none;
}

.js-enabled body.app-shell-loading {
    overflow: hidden;
}

.js-enabled body.app-shell-loading .app-preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    background: #ffffff;
}

.app-preloader-card {
    display: grid;
    place-items: center;
    gap: 8px;
    color: var(--text);
    text-align: center;
}

.app-preloader-mark {
    width: 46px;
    height: 48px;
    object-fit: contain;
}

.app-preloader-card strong {
    font-size: 18px;
    letter-spacing: 0;
}

.app-preloader-card span {
    color: var(--muted);
    font-size: 13px;
}

.app-preloader-card i {
    width: 26px;
    height: 26px;
    border: 2px solid #d9e1ec;
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: app-preloader-spin 0.8s linear infinite;
}

@keyframes app-preloader-spin {
    to {
        transform: rotate(360deg);
    }
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    display: block;
    width: 38px;
    height: 40px;
    object-fit: contain;
}

.topbar strong {
    display: block;
    font-size: 18px;
}

.userline {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
}

.topbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.topbar-icon-action {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
}

.tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding: 10px 28px 0;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
}

.tabs a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-bottom: 0;
    border-radius: 6px 6px 0 0;
    color: #475467;
    white-space: nowrap;
}

.tabs a:hover {
    border-color: var(--line);
    background: #f3f7fc;
    color: var(--accent-dark);
    text-decoration: none;
}

.tabs a .button-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    stroke-width: 2.1;
}

.tabs a.active {
    background: var(--bg);
    border-color: var(--line);
    color: var(--accent-dark);
    font-weight: 700;
}

.client-switch-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 6px 6px 0 0;
    background: var(--bg);
    color: var(--text);
    padding: 7px 13px 8px 9px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

.client-switch-button:hover {
    border-color: #a8b2c1;
    background: #f3f7fc;
    color: var(--accent-dark);
}

.mobile-tabs {
    display: none;
}

.client-switch-logo {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line);
    font-size: 12px;
    font-weight: 900;
}

.page {
    width: min(1440px, calc(100vw - 32px));
    margin: 0 auto;
    padding: 28px 0 48px;
}

.page-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.page-head-main {
    display: flex;
    align-items: end;
    gap: 14px;
    min-width: 0;
}

.page-head-main h1 {
    overflow-wrap: anywhere;
}

.preview-back-button {
    margin-top: 12px;
}

.eyebrow {
    margin-bottom: 6px;
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.muted {
    color: var(--muted);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: #1d2939;
    padding: 8px 14px;
    font-weight: 700;
    cursor: pointer;
}

.button-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.icon-only-button {
    display: inline-grid;
    place-items: center;
    width: 42px;
    min-width: 42px;
    min-height: 42px;
    padding: 8px;
}

.icon-only-button.button.ghost {
    padding: 8px;
}

.icon-only-button.is-feedback {
    border-color: var(--ok);
    color: var(--ok);
    background: #e8f6ee;
}

.button:hover {
    text-decoration: none;
    border-color: #a8b2c1;
}

.button.is-loading {
    cursor: wait;
    opacity: 0.72;
}

.is-ai-loading {
    position: relative;
    pointer-events: none;
}

.is-ai-loading::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: 24;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(1px);
}

.is-ai-loading::after {
    content: attr(data-ai-loading-label);
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 25;
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 9px 14px 9px 40px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #172033;
    background: #fff radial-gradient(circle at 20px 50%, transparent 0 5px, var(--accent) 5px 8px, transparent 8px) no-repeat;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
    font-size: 13px;
    font-weight: 900;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    animation: ai-loading-pulse 0.95s ease-in-out infinite alternate;
}

.is-ai-loading > * {
    opacity: 0.55;
}

@keyframes ai-loading-pulse {
    from {
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    }
    to {
        box-shadow: 0 16px 38px rgba(15, 23, 42, 0.22);
    }
}

.button.primary {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.button.primary:hover {
    background: var(--accent-dark);
}

.button.ghost {
    min-height: 32px;
    padding: 6px 10px;
}

.button.danger {
    border-color: #f4c7c3;
    background: #fff5f5;
    color: var(--danger);
}

.button.danger:hover {
    border-color: var(--danger);
    background: #fee4e2;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

.grid {
    display: grid;
    gap: 22px;
}

.grid > * {
    min-width: 0;
}

.grid.two {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
}

.grid.form-layout {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.34fr);
}

.grid.preview-layout {
    grid-template-columns: minmax(520px, 760px) minmax(360px, 1fr);
    align-items: start;
}

.grid.preview-workspace {
    grid-template-columns: 1fr;
    align-items: start;
}

.grid.preview-detail-layout {
    grid-template-columns: minmax(460px, 760px) minmax(330px, 1fr);
    align-items: start;
}

.grid.user-admin-layout {
    grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1.1fr);
    align-items: start;
}

.panel,
.fb-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.panel {
    padding: 20px;
}

.sticky {
    position: sticky;
    top: 132px;
}

.stack {
    display: grid;
    gap: 16px;
}

.compact-form {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.settings-layout {
    display: grid;
    gap: 18px;
}

.settings-summary-grid,
.settings-primary-grid {
    display: grid;
    gap: 12px;
}

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

.settings-primary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-summary-card {
    display: grid;
    gap: 3px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 13px 14px;
}

.settings-summary-card span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.settings-summary-card strong,
.settings-summary-card em {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settings-summary-card strong {
    color: var(--text);
    font-size: 17px;
}

.settings-summary-card em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.settings-panel,
.settings-wide-panel {
    min-width: 0;
}

.settings-panel .details,
.settings-wide-panel .details {
    margin-bottom: 4px;
}

.settings-layout code {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.danger-zone {
    border-top-color: #f4c7c3;
}

.wide-form {
    min-width: 0;
}

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

.ai-option-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}

.ai-check-row {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    color: #344054;
    font-weight: 700;
}

.ai-check-row input {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin: 0;
    padding: 0;
}

.ai-rule-list {
    display: grid;
    gap: 12px;
}

.ai-rule-card {
    display: grid;
    gap: 9px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.ai-rule-card textarea {
    min-height: 76px;
    background: #fff;
}

.actions,
.row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.row-actions .icon-only-button,
.network-text-actions .icon-only-button,
.preview-media-list .icon-only-button {
    width: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 6px;
}

.notice {
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-left-width: 4px;
    border-radius: 6px;
    background: #fff;
    padding: 12px 14px;
}

.notice.success {
    border-left-color: var(--ok);
}

.notice.warning,
.notice.info {
    border-left-color: var(--warn);
}

.notice.danger {
    border-left-color: var(--danger);
}

.metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.metrics div {
    display: grid;
    gap: 5px;
    min-height: 94px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.metrics span {
    color: var(--muted);
    font-weight: 700;
}

.metrics strong {
    font-size: 30px;
}

.clean-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 18px;
}

.post-list {
    display: grid;
    gap: 8px;
}

.post-list a,
.asset-row,
.selected-post,
.download-list li {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface-soft);
    padding: 10px;
}

.post-list a {
    color: var(--text);
}

.post-list a:hover {
    border-color: #a8b2c1;
    text-decoration: none;
}

.post-list a.active {
    border-color: var(--accent);
    background: #eef6ff;
    box-shadow: inset 4px 0 0 var(--accent);
}

.post-list span,
.asset-row span,
.selected-post span,
.download-list span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.post-list strong,
.asset-row strong,
.selected-post strong,
.download-list strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-list em,
.selected-post em {
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.user-list,
.permission-list {
    display: grid;
    gap: 10px;
}

.user-list-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--text);
    padding: 10px;
}

.user-list-row:hover {
    border-color: #a8b2c1;
    background: #fff;
    text-decoration: none;
}

.user-list-row.active {
    border-color: var(--accent);
    background: #eef6ff;
    box-shadow: inset 4px 0 0 var(--accent);
}

.user-avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-weight: 900;
}

.user-list-row strong,
.user-list-row em {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-list-row em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.user-list-row small {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 900;
}

.user-form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.permission-row {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    padding: 10px;
}

.permission-row > span {
    border-radius: 999px;
    padding: 4px 8px;
    text-align: center;
    font-size: 11px;
    font-weight: 900;
}

.permission-row.enabled > span {
    background: #dcfce7;
    color: var(--ok);
}

.permission-row.disabled {
    opacity: 0.72;
}

.permission-row.disabled > span {
    background: #f2f4f7;
    color: var(--muted);
}

.permission-row strong,
.permission-row em {
    display: block;
}

.permission-row em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.section-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.section-head h2,
.section-head p {
    margin-bottom: 0;
}

.link-button {
    display: inline;
    border: 0;
    background: transparent;
    color: var(--accent);
    padding: 0;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.link-button:hover {
    text-decoration: underline;
}

.drive-library-panel {
    display: grid;
    gap: 16px;
    margin-bottom: 18px;
}

.drive-folder-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.drive-folder-card {
    display: grid;
    gap: 6px;
    min-height: 96px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    padding: 14px;
}

.drive-folder-card strong {
    font-size: 16px;
}

.drive-folder-card span {
    color: var(--muted);
    font-size: 13px;
}

.drive-folder-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.drive-folder-tab {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font-weight: 800;
    overflow: hidden;
    transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.drive-folder-tab:hover {
    text-decoration: none;
    border-color: #a8b2c1;
}

.drive-folder-tab.active {
    border-color: var(--accent);
    background: #eff6ff;
    color: var(--accent-dark);
}

.drive-folder-tab-main {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    min-height: 46px;
    color: inherit;
    padding: 10px 8px 10px 12px;
    text-decoration: none;
}

.drive-folder-tab-main:hover {
    text-decoration: none;
}

.drive-folder-tab-main span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.drive-folder-tab-drive {
    display: inline-grid;
    place-items: center;
    align-self: center;
    width: 32px;
    min-width: 32px;
    max-width: 20%;
    min-height: 32px;
    border-left: 1px solid transparent;
    border-radius: 6px;
    color: var(--muted);
    margin-right: 7px;
    padding: 0;
    text-decoration: none;
}

.drive-folder-tab-drive:hover {
    background: rgba(11, 102, 195, 0.08);
    color: var(--accent);
    text-decoration: none;
}

.drive-folder-tab-drive .button-icon {
    width: 15px;
    height: 15px;
    stroke-width: 2.1;
}

.drive-folder-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 16px;
    align-items: stretch;
    border-top: 1px solid var(--line);
    padding-top: 16px;
}

.drive-folder-toolbar h3 {
    margin-top: 0;
    margin-bottom: 4px;
}

.drive-folder-files {
    min-height: 120px;
}

.drive-folder-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 118px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--muted);
    padding: 18px;
}

.drive-folder-loading span {
    width: 22px;
    height: 22px;
    border: 2px solid #d9e1ec;
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: app-preloader-spin 0.8s linear infinite;
}

.drive-folder-loading strong {
    color: var(--text);
    font-size: 14px;
}

.drive-folder-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.drive-folder-title-row .icon-only-button {
    flex: 0 0 auto;
}

.drive-folder-title-row h3 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.drive-folder-title-row h3 span {
    border-left: 1px solid var(--line);
    color: var(--muted);
    font-size: 15px;
    font-weight: 800;
    padding-left: 8px;
}

.drive-folder-root-name {
    color: var(--text);
    font-size: 16px;
    font-weight: 900;
}

.drive-current-subfolder-card {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    max-width: min(520px, 100%);
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    padding: 8px 11px;
}

.drive-current-subfolder-card .button-icon {
    flex: 0 0 21px;
    width: 21px;
    height: 21px;
    color: var(--accent);
    stroke-width: 1.8;
}

.drive-current-subfolder-card span {
    display: grid;
    min-width: 0;
}

.drive-current-subfolder-card strong {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: var(--text);
    font-size: 13px;
    line-height: 1.2;
}

.drive-folder-warning {
    color: #b45309;
    font-size: 13px;
    font-weight: 700;
    margin: 6px 0;
}

.drive-upload-form {
    display: grid;
    gap: 12px;
}

.drive-smart-upload-form {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.drive-smart-upload-form .section-head {
    align-items: start;
}

.drive-smart-upload-form .form-status {
    min-height: 20px;
}

.drive-upload-note {
    display: grid;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    padding: 14px;
}

.drive-upload-note strong {
    font-size: 14px;
}

.drive-upload-note span {
    color: var(--muted);
    font-size: 13px;
}

.drive-dropzone {
    border: 1px dashed #9eb3c9;
    border-radius: 8px;
    background: #f8fbff;
    padding: 14px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.drive-dropzone.is-dragging {
    border-color: var(--accent);
    background: #eff6ff;
}

.drive-dropzone label {
    display: grid;
    gap: 4px;
    margin: 0;
    cursor: pointer;
}

.drive-dropzone label span {
    color: var(--text);
    font-size: 16px;
    font-weight: 900;
}

.drive-dropzone label em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.drive-dropzone input[type="file"] {
    margin-top: 6px;
}

.drive-file-list {
    display: grid;
    gap: 10px;
}

.drive-file-list.photo-grid {
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 8px;
}

.drive-subfolder-section {
    border-top: 1px solid var(--line);
    margin-top: 14px;
    padding-top: 22px;
}

.drive-subfolder-section .section-head {
    margin-bottom: 18px;
}

.drive-subfolder-section h3 {
    font-size: 15px;
    margin: 0;
}

.drive-subfolder-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.drive-subfolder-card {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 58px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    padding: 9px 10px;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.drive-subfolder-card:hover {
    border-color: #a8b2c1;
    background: #f8fbff;
    text-decoration: none;
}

.drive-subfolder-card .button-icon {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    color: var(--accent);
    stroke-width: 1.8;
}

.drive-subfolder-card span {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.drive-subfolder-card strong {
    color: var(--text);
    font-size: 15px;
    line-height: 1.2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.drive-subfolder-card em {
    color: var(--muted);
    font-size: 11px;
    font-style: normal;
}

.drive-file-card {
    position: relative;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 10px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.drive-file-card.is-selected {
    box-shadow: none;
}

.drive-file-card.photo-card {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border: 0;
    border-radius: 6px;
    background: #eef2f7;
    padding: 0;
}

.drive-file-select {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.drive-file-select input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.drive-file-select span {
    display: grid;
    place-items: center;
    width: 14px;
    height: 14px;
    border: 0;
    border-radius: 3px;
    background: rgba(15, 23, 42, 0.5);
    opacity: 0.48;
    transition: opacity 0.15s ease, background 0.15s ease;
}

.drive-file-select span::before {
    content: "";
    width: 7px;
    height: 4px;
    border-bottom: 1.6px solid #fff;
    border-left: 1.6px solid #fff;
    transform: rotate(-45deg) scale(0);
    transition: transform 0.15s ease;
}

.drive-file-select input:focus-visible + span {
    outline: 2px solid rgba(0, 111, 209, 0.24);
    outline-offset: 2px;
}

.drive-file-card:hover .drive-file-select span,
.drive-file-card:focus-within .drive-file-select span,
.drive-file-select input:checked + span {
    opacity: 1;
}

.drive-file-select input:checked + span {
    background: var(--accent);
}

.drive-file-select input:checked + span::before {
    transform: rotate(-45deg) scale(1);
}

.drive-file-quick-preview {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.46);
    color: #fff;
    cursor: pointer;
    line-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0;
    pointer-events: none;
    transform: translateY(-1px);
    transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.drive-file-quick-preview .button-icon {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    stroke-width: 2.25;
}

.drive-file-card:hover .drive-file-quick-preview,
.drive-file-card:focus-within .drive-file-quick-preview {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.drive-file-quick-preview:hover {
    background: var(--accent);
}

.drive-file-delete-form {
    position: absolute;
    right: 5px;
    bottom: 5px;
    z-index: 3;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(1px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.drive-file-card:hover .drive-file-delete-form,
.drive-file-card:focus-within .drive-file-delete-form,
.drive-file-delete-form:focus-within {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.drive-file-delete-button {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.52);
    color: #fff;
    cursor: pointer;
    line-height: 0;
    padding: 0;
    transition: background 0.15s ease;
}

.drive-file-delete-button:hover {
    background: #b42318;
}

.drive-file-delete-button .button-icon {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    stroke-width: 2.2;
}

.drive-file-thumb-shell {
    position: relative;
    display: grid;
    width: 72px;
    aspect-ratio: 1;
}

.drive-file-thumb {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    border: 0;
    overflow: hidden;
    border-radius: 6px;
    background: #eef2f7;
    color: var(--muted);
    font-weight: 900;
    padding: 0;
}

.drive-file-thumb.is-clickable {
    cursor: pointer;
}

.drive-file-thumb.is-clickable:hover {
    filter: brightness(0.96);
}

.photo-grid .drive-file-thumb {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.photo-grid .drive-file-thumb-shell {
    width: 100%;
    height: 100%;
}

.drive-file-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.drive-file-card.is-pending {
    opacity: 0.82;
}

.drive-file-card.is-pending .drive-file-thumb {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 42%),
        repeating-linear-gradient(135deg, #eef3f8 0 10px, #e4ebf4 10px 20px);
}

.drive-file-pending-status {
    color: #b45309 !important;
    font-weight: 900;
}

.drive-file-main {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.photo-grid .drive-file-main {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: 24px 7px 7px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.8));
    color: #fff;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.photo-grid .drive-file-card:hover .drive-file-main,
.photo-grid .drive-file-card:focus-within .drive-file-main {
    opacity: 1;
    transform: translateY(0);
}

.photo-grid .folder-card .drive-file-main {
    opacity: 1;
    transform: none;
}

.photo-grid .folder-card .drive-file-thumb {
    background: #eef6ff;
    color: var(--accent);
}

.drive-file-main strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.photo-grid .drive-file-main strong {
    font-size: 11px;
    line-height: 1.2;
}

.drive-file-main span,
.drive-file-main em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.photo-grid .drive-file-main span,
.photo-grid .drive-file-main em,
.photo-grid .row-actions {
    display: none;
}

.drive-file-note {
    grid-column: 2 / -1;
}

.drive-file-note {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.library-create-post-fab {
    position: fixed;
    right: max(22px, env(safe-area-inset-right));
    bottom: max(22px, env(safe-area-inset-bottom));
    z-index: 58;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 64px;
    height: 64px;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    box-shadow: 0 18px 42px rgba(0, 111, 209, 0.32);
    cursor: pointer;
}

.library-create-post-fab[hidden] {
    display: none;
}

.library-create-post-fab .button-icon {
    width: 28px;
    height: 28px;
}

.library-create-post-fab span {
    display: grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 13px;
    font-weight: 900;
}

.library-post-modal {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: none;
    padding: 22px;
}

.library-post-modal.is-open {
    display: grid;
    place-items: center;
}

.library-post-modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.58);
    cursor: pointer;
}

.library-post-modal-panel {
    position: relative;
    display: grid;
    width: min(920px, calc(100vw - 32px));
    max-height: calc(100dvh - 44px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.32);
}

.library-post-modal-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 18px 12px;
    border-bottom: 1px solid var(--line);
}

.library-post-modal-header h2 {
    margin-bottom: 2px;
}

.library-post-editor {
    overflow: auto;
    padding: 16px 18px 18px;
}

.selected-drive-summary {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 10px;
}

.selected-drive-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    padding: 8px;
}

.selected-drive-item strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}

.selected-drive-thumb {
    display: grid;
    place-items: center;
    width: 48px;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 6px;
    background: #e5eaf1;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
}

.selected-drive-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.selected-drive-thumb em {
    font-style: normal;
}

.preview-create-media-section {
    display: grid;
    gap: 10px;
}

.preview-create-upload-section + .preview-create-media-section {
    margin-top: 12px;
}

.preview-media-picker-head {
    display: grid;
    justify-content: start;
    gap: 6px;
}

.preview-media-picker-head .button {
    justify-self: start;
}

.section-head.tight {
    margin-bottom: 0;
}

.preview-create-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 8px;
    max-height: 280px;
    overflow: auto;
    padding: 2px;
}

.preview-create-media-card {
    position: relative;
    display: grid;
    gap: 7px;
    margin: 0;
    cursor: pointer;
}

.preview-create-media-card input {
    position: absolute;
    top: 7px;
    left: 7px;
    z-index: 2;
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--accent);
}

.preview-create-media-thumb {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 7px;
    background: #e5eaf1;
    box-shadow: inset 0 0 0 1px var(--line);
}

.preview-create-media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-create-media-thumb em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.preview-create-media-card.is-selected .preview-create-media-thumb {
    box-shadow: inset 0 0 0 2px var(--accent);
}

.preview-create-media-card.is-pending {
    cursor: default;
    opacity: 0.78;
}

.preview-create-media-card.is-pending input {
    pointer-events: none;
}

.preview-create-media-card.is-pending .preview-create-media-thumb {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 42%),
        repeating-linear-gradient(135deg, #eef3f8 0 10px, #e4ebf4 10px 20px);
}

.preview-create-media-card.is-pending .preview-create-media-info em {
    color: #b45309;
    font-weight: 900;
}

.preview-create-media-info {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.preview-create-media-info strong {
    overflow: hidden;
    color: var(--text);
    font-size: 12px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-create-media-info em,
.form-status {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.form-status {
    min-height: 16px;
    margin: 0;
    font-weight: 800;
}

.drive-quick-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 14000;
    display: none;
    padding: 22px;
}

.drive-quick-preview-modal.is-open {
    display: grid;
    place-items: center;
}

.drive-quick-preview-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.66);
    cursor: pointer;
}

.drive-quick-preview-panel {
    position: relative;
    display: grid;
    width: min(920px, calc(100vw - 32px));
    max-height: calc(100dvh - 44px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.34);
}

.drive-quick-preview-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--line);
}

.drive-quick-preview-header h2 {
    margin: 0;
    max-width: min(720px, calc(100vw - 140px));
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 18px;
}

.drive-quick-preview-stage {
    display: grid;
    place-items: center;
    min-height: 260px;
    overflow: auto;
    background: #0b1220;
    position: relative;
}

.drive-quick-preview-loader {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #f8fafc;
    background: rgba(11, 18, 32, 0.72);
    backdrop-filter: blur(2px);
}

.drive-quick-preview-loader[hidden] {
    display: none;
}

.drive-quick-preview-loader span {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.26);
    border-top-color: #fff;
    border-radius: 999px;
    animation: driveQuickPreviewSpin 0.8s linear infinite;
}

.drive-quick-preview-loader strong {
    font-size: 0.95rem;
}

@keyframes driveQuickPreviewSpin {
    to {
        transform: rotate(360deg);
    }
}

.drive-quick-preview-image-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
    max-height: calc(100dvh - 180px);
    line-height: 0;
}

.drive-quick-preview-image-wrap[hidden] {
    display: none !important;
}

.drive-quick-preview-stage img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: calc(100dvh - 180px);
    object-fit: contain;
    transform-origin: center;
    transition: transform 0.16s ease;
}

.drive-quick-preview-crop-box {
    position: absolute;
    z-index: 3;
    border: 2px solid #fff;
    border-radius: 6px;
    box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.48), 0 10px 28px rgba(15, 23, 42, 0.24);
    cursor: move;
    touch-action: none;
}

.drive-quick-preview-crop-box[hidden] {
    display: none !important;
}

.drive-quick-preview-crop-box::before,
.drive-quick-preview-crop-box::after {
    position: absolute;
    inset: 33.333% 0 auto;
    height: 1px;
    background: rgba(255, 255, 255, 0.72);
    content: "";
}

.drive-quick-preview-crop-box::after {
    inset: 66.666% 0 auto;
}

.drive-quick-preview-crop-box span {
    position: absolute;
    right: -8px;
    bottom: -8px;
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.28);
    cursor: nwse-resize;
}

.drive-quick-preview-modal.is-cropping .drive-quick-preview-stage {
    background: #111827;
}

.drive-quick-preview-stage video {
    display: block;
    width: min(100%, 980px);
    max-height: calc(100dvh - 180px);
    background: #000;
}

.drive-quick-preview-audio-wrap {
    display: grid;
    width: min(720px, calc(100vw - 48px));
    padding: 28px 20px;
    place-items: center;
}

.drive-quick-preview-audio-wrap[hidden] {
    display: none !important;
}

.drive-audio-player {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 18px;
    width: 100%;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 8px;
    color: #e5eefc;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96));
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.drive-audio-art {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    border-radius: 8px;
    color: #0f172a;
    background: #bae6fd;
}

.drive-audio-art .button-icon {
    width: 32px;
    height: 32px;
}

.drive-audio-main {
    display: grid;
    min-width: 0;
    gap: 16px;
}

.drive-audio-meta {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.drive-audio-meta strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1rem;
}

.drive-audio-meta span {
    color: #cbd5e1;
    font-size: 0.86rem;
}

.drive-audio-controls {
    display: grid;
    grid-template-columns: 44px auto minmax(120px, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.drive-audio-toggle {
    width: 44px;
    height: 44px;
}

.drive-audio-time {
    min-width: 38px;
    color: #dbeafe;
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.drive-audio-progress {
    width: 100%;
    min-width: 0;
    margin: 0;
    accent-color: var(--accent);
    cursor: pointer;
}

.drive-audio-progress:disabled {
    cursor: wait;
    opacity: 0.6;
}

.drive-audio-player audio {
    display: none;
}

@media (max-width: 560px) {
    .drive-quick-preview-audio-wrap {
        width: min(100%, calc(100vw - 24px));
        padding: 18px 12px;
    }

    .drive-audio-player {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 12px;
        padding: 14px;
    }

    .drive-audio-art {
        width: 52px;
        height: 52px;
    }

    .drive-audio-art .button-icon {
        width: 24px;
        height: 24px;
    }

    .drive-audio-controls {
        grid-template-columns: 44px minmax(0, 1fr) auto;
        row-gap: 6px;
    }

    .drive-audio-toggle {
        grid-row: 1 / 3;
    }

    .drive-audio-time[data-drive-audio-current] {
        grid-column: 2;
        grid-row: 1;
        justify-self: start;
    }

    .drive-audio-time[data-drive-audio-duration] {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
    }

    .drive-audio-progress {
        grid-column: 2 / 4;
        grid-row: 2;
    }
}

.drive-quick-preview-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid var(--line);
    background: var(--surface-soft);
}

.drive-quick-preview-tools {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 8px;
    margin-right: auto;
}

.drive-quick-preview-tools .icon-only-button.is-active {
    border-color: var(--accent);
    background: rgba(13, 110, 253, 0.12);
    color: var(--accent);
}

.drive-quick-preview-actions [hidden] {
    display: none !important;
}

.drive-quick-preview-actions .is-processing {
    opacity: 0.62;
    cursor: progress;
    pointer-events: none;
}

.drive-quick-preview-modal.is-applying .drive-quick-preview-tools .button,
.drive-quick-preview-modal.is-applying .drive-quick-preview-actions [data-drive-quick-preview-share],
.drive-quick-preview-modal.is-applying .drive-quick-preview-actions [data-drive-quick-preview-download] {
    opacity: 0.58;
    cursor: progress;
    pointer-events: none;
}

.drive-text-editor-modal {
    position: fixed;
    inset: 0;
    z-index: 76;
    display: none;
    padding: 22px;
}

.drive-text-editor-modal.is-open {
    display: grid;
    place-items: center;
}

.drive-text-editor-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.58);
    cursor: pointer;
}

.drive-text-editor-panel {
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(820px, calc(100vw - 32px));
    max-height: calc(100dvh - 44px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.3);
}

.drive-text-editor-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--line);
}

.drive-text-editor-header h2 {
    margin: 0;
    max-width: min(640px, calc(100vw - 140px));
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 18px;
}

.drive-text-editor-form {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 0;
}

.drive-text-editor-field {
    min-height: 0;
    margin: 0;
}

.drive-text-editor-field textarea {
    display: block;
    width: 100%;
    height: min(58dvh, 560px);
    min-height: 320px;
    border: 0;
    border-radius: 0;
    resize: vertical;
    padding: 16px;
    font: inherit;
    line-height: 1.55;
}

.drive-text-editor-field textarea:focus {
    outline: 0;
    box-shadow: inset 0 0 0 2px rgba(0, 111, 209, 0.18);
}

.drive-text-editor-footer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-top: 1px solid var(--line);
    background: var(--surface-soft);
}

.drive-text-status {
    min-height: 18px;
    color: var(--muted);
    font-size: 13px;
}

.preview-list-panel {
    overflow: auto;
}

.preview-detail {
    min-width: 0;
}

.list-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.list-card {
    display: grid;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 16px;
}

.list-card-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    color: var(--text);
}

.list-card-main:hover {
    text-decoration: none;
}

.list-card-main strong,
.list-card-main em {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.list-card-main strong {
    font-size: 17px;
    line-height: 1.25;
}

.list-card-main em {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.list-card-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #eef6ff;
    color: var(--accent-dark);
    font-size: 20px;
    font-weight: 900;
}

.list-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.list-card-meta span {
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--muted);
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 800;
}

.list-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    padding: 18px;
}

.list-modal.is-open {
    display: grid;
    place-items: center;
}

.list-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
}

.list-modal-panel {
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(620px, calc(100vw - 28px));
    max-height: calc(100dvh - 28px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.34);
}

.list-campaign-panel,
.list-create-panel {
    width: min(1120px, calc(100vw - 28px));
}

.list-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--line);
}

.list-modal-header h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
}

.list-modal-body {
    overflow: auto;
    padding: 16px;
}

.list-modal-body textarea {
    min-height: 92px;
}

.list-modal-actions {
    justify-content: flex-end;
}

.campaign-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ai-media-source-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    border: 1px solid #c7d7ee;
    border-radius: 8px;
    background: #f5f9ff;
    color: #344054;
    padding: 10px 12px;
}

.ai-media-source-note strong {
    color: var(--accent-dark);
}

.ai-media-source-note span {
    color: var(--muted);
}

.ai-context-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.ai-context-summary strong,
.ai-context-summary em {
    display: block;
    min-width: 0;
}

.ai-context-summary em {
    color: var(--muted);
    font-style: normal;
}

.ai-generate-modal .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ai-generate-modal .list-modal-panel {
    width: min(760px, calc(100vw - 28px));
}

.ai-priority-brief,
.ai-source-controls {
    display: grid;
    gap: 8px;
}

.ai-source-controls h3 {
    margin: 0;
}

.ai-source-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.ai-source-grid .check-row {
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.campaign-upload-block {
    display: grid;
    gap: 10px;
    padding-top: 4px;
}

.list-upload-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.list-upload-tile {
    position: relative;
    display: grid;
    gap: 6px;
    min-height: 142px;
    padding: 14px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.list-upload-tile:hover,
.list-upload-tile.is-dragging,
.list-upload-tile.has-files {
    border-color: rgba(10, 102, 194, 0.58);
    background: #f4f9ff;
}

.list-upload-tile.is-dragging {
    transform: translateY(-1px);
}

.list-upload-tile > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #fff;
    color: var(--accent);
    box-shadow: inset 0 0 0 1px var(--line);
}

.list-upload-tile strong,
.list-upload-tile em,
.list-upload-tile small {
    min-width: 0;
}

.list-upload-tile strong {
    color: var(--text);
    font-size: 14px;
}

.list-upload-tile em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    line-height: 1.35;
}

.list-upload-tile small {
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
}

.list-upload-tile input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-progress-modal {
    position: fixed;
    inset: 0;
    z-index: 92;
    display: none;
    padding: 18px;
}

.upload-progress-modal.is-open {
    display: grid;
    place-items: center;
}

.upload-progress-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.52);
}

.upload-progress-panel {
    position: relative;
    display: grid;
    gap: 14px;
    width: min(720px, calc(100vw - 28px));
    max-height: calc(100dvh - 36px);
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.32);
    padding: 18px;
}

.upload-progress-panel header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.upload-progress-panel header h2 {
    margin: 0;
}

.upload-progress-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.upload-progress-head-actions > span {
    border-radius: 999px;
    background: #e8f7ee;
    color: #087443;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 900;
}

.upload-progress-close {
    display: none;
    width: 34px;
    height: 34px;
}

.upload-progress-close.is-visible {
    display: inline-flex;
}

.upload-progress-modal.has-error .upload-progress-head-actions > span {
    background: #fff1f1;
    color: #b42318;
}

.upload-progress-list {
    display: grid;
    gap: 12px;
}

.upload-progress-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px;
    gap: 7px 10px;
    align-items: center;
}

.upload-progress-file {
    grid-column: 1 / -1;
    min-width: 0;
}

.upload-progress-file strong,
.upload-progress-file em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-progress-file strong {
    color: var(--accent-dark);
    font-size: 14px;
}

.upload-progress-file em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.upload-progress-track {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5eaf1;
}

.upload-progress-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #42b650;
    transition: width 0.16s ease;
}

.upload-progress-row small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-align: right;
}

.upload-progress-row.is-complete small {
    color: #087443;
}

.background-job-toasts {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 88;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 28px));
    pointer-events: none;
}

.background-job-toast {
    display: grid;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
    padding: 12px;
    pointer-events: auto;
}

.background-job-toast header {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 8px;
}

.background-job-toast header > span {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(17, 110, 201, 0.22);
    border-top-color: var(--accent);
    border-radius: 999px;
    animation: ai-job-spin 0.8s linear infinite;
}

.background-job-toast[data-status="completed"] header > span,
.background-job-toast[data-status="failed"] header > span {
    border-color: transparent;
    animation: none;
}

.background-job-toast[data-status="completed"] header > span {
    background: #18a058;
}

.background-job-toast[data-status="failed"] header > span {
    background: var(--danger);
}

.background-job-toast strong,
.background-job-toast p {
    margin: 0;
}

.background-job-toast p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.background-job-toast header button {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
}

.background-job-progress {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8eef6;
}

.background-job-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
    transition: width 0.18s ease;
}

.background-job-toast[data-status="completed"] .background-job-progress span {
    background: #18a058;
}

.background-job-toast[data-status="failed"] .background-job-progress span {
    background: var(--danger);
}

@keyframes ai-job-spin {
    to {
        transform: rotate(360deg);
    }
}

.fast-upload-modal {
    position: fixed;
    inset: 0;
    z-index: 74;
    display: none;
    padding: 18px;
}

.fast-upload-modal.is-open {
    display: grid;
    place-items: center;
}

.fast-upload-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.58);
    cursor: pointer;
}

.fast-upload-panel {
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(1120px, calc(100vw - 32px));
    max-height: calc(100dvh - 36px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.34);
}

.fast-upload-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px 16px;
    border-bottom: 1px solid var(--line);
}

.fast-upload-header h2 {
    margin: 0 0 4px;
    font-size: 22px;
}

.fast-upload-body {
    display: grid;
    gap: 18px;
    min-height: 0;
    overflow-y: auto;
    padding: 18px 22px 22px;
    -webkit-overflow-scrolling: touch;
}

.fast-upload-create,
.fast-upload-card {
    display: grid;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 16px;
}

.fast-upload-list {
    display: grid;
    gap: 14px;
}

.fast-upload-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.fast-upload-card-head > div:first-child {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.fast-upload-card-head strong {
    max-width: min(480px, 100%);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text);
    font-size: 16px;
}

.fast-upload-folder-card .button-icon {
    flex: 0 0 auto;
}

.fast-upload-folder-card {
    cursor: pointer;
}

.fast-upload-folder-card .fast-upload-card-head > div:first-child > .button-icon {
    color: var(--accent);
}

.fast-upload-folder-open {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: center;
    min-width: 0;
    border: 0;
    background: transparent;
    color: inherit;
    gap: 8px;
    padding: 0;
    text-align: left;
    cursor: pointer;
}

.fast-upload-folder-open:hover strong,
.fast-upload-folder-open:focus-visible strong {
    color: var(--accent-dark);
}

.fast-upload-folder-open:focus-visible {
    outline: 2px solid rgba(21, 101, 192, 0.22);
    outline-offset: 4px;
    border-radius: 8px;
}

.fast-upload-folder-modal {
    position: fixed;
    inset: 0;
    z-index: 86;
    display: none;
    padding: 24px;
}

.fast-upload-folder-modal.is-open {
    display: grid;
    place-items: center;
}

.fast-upload-folder-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.58);
}

.fast-upload-folder-panel {
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(1680px, calc(100vw - 48px));
    height: calc(100dvh - 48px);
    max-height: calc(100dvh - 48px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.34);
}

.fast-upload-folder-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 28px 18px;
    border-bottom: 1px solid var(--line);
}

.fast-upload-folder-header h2 {
    margin: 0 0 4px;
    font-size: 22px;
}

.fast-upload-folder-body {
    display: grid;
    gap: 18px;
    align-content: start;
    grid-auto-rows: max-content;
    min-height: 0;
    overflow-y: auto;
    padding: 22px 28px 28px;
    -webkit-overflow-scrolling: touch;
}

.fast-upload-folder-upload {
    display: grid;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 14px;
}

.fast-upload-folder-upload h3 {
    margin: 0;
    font-size: 16px;
}

.fast-upload-folder-upload-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fast-upload-options-modal {
    position: fixed;
    inset: 0;
    z-index: 88;
    display: none;
    padding: 18px;
}

.fast-upload-options-modal.is-open {
    display: grid;
    place-items: center;
}

.fast-upload-options-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.58);
}

.fast-upload-options-panel {
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(940px, calc(100vw - 32px));
    max-height: calc(100dvh - 36px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.34);
}

.fast-upload-options-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--line);
}

.fast-upload-options-header h3 {
    margin: 0 0 4px;
    font-size: 20px;
}

.fast-upload-options-body {
    display: grid;
    gap: 16px;
    min-height: 0;
    overflow-y: auto;
    padding: 18px 20px 20px;
    -webkit-overflow-scrolling: touch;
}

.fast-upload-folder-link-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.fast-upload-link-field input {
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
}

.fast-upload-options,
.fast-upload-usage {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fast-upload-options .check-row {
    width: auto;
    margin: 0;
}

.fast-upload-usage span {
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--muted);
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
}

.fast-upload-files {
    display: grid;
    gap: 10px;
}

.fast-upload-files h4 {
    margin: 0;
    font-size: 14px;
}

.fast-upload-file-list {
    display: grid;
    gap: 8px;
}

.fast-upload-file-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    padding: 9px;
}

.fast-upload-file-row.is-pending {
    opacity: 0.82;
}

.fast-upload-file-row.is-pending .fast-upload-file-thumb {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 42%),
        repeating-linear-gradient(135deg, #eef3f8 0 10px, #e4ebf4 10px 20px);
}

.fast-upload-file-row.is-pending .fast-upload-file-name em:last-child {
    color: #b45309;
    font-weight: 900;
}

.fast-upload-file-thumb {
    position: relative;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #eef3f8;
    color: var(--accent-dark);
    padding: 0;
    cursor: pointer;
}

.fast-upload-file-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fast-upload-file-thumb > span {
    font-size: 11px;
    font-weight: 900;
}

.fast-upload-file-thumb small {
    position: absolute;
    right: 4px;
    bottom: 4px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    padding: 3px 6px;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
}

.fast-upload-file-thumb:hover,
.fast-upload-file-thumb:focus-visible {
    border-color: rgba(10, 102, 194, 0.58);
}

.fast-upload-file-thumb.is-placeholder {
    cursor: default;
}

.fast-upload-file-name {
    display: grid;
    min-width: 0;
}

.fast-upload-file-name strong,
.fast-upload-file-name em {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fast-upload-file-name em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.fast-upload-delete-form {
    justify-self: end;
}

.fast-upload-public-body {
    min-height: 100vh;
    background: linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
}

.fast-upload-public-page {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 24px;
}

.fast-upload-public-card {
    display: grid;
    gap: 18px;
    width: min(760px, 100%);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 22px;
}

.fast-upload-public-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.fast-upload-public-head h1 {
    font-size: clamp(22px, 4vw, 30px);
}

.fast-upload-public-brand {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 6px 0 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f8fafc;
    color: var(--text);
    padding: 5px 9px 5px 7px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    width: fit-content;
}

.fast-upload-public-brand img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.fast-upload-quota {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    align-self: start;
}

.fast-upload-quota span {
    display: inline-flex;
    align-items: center;
    min-height: 0;
    line-height: 1;
    border-radius: 999px;
    background: #eef6ff;
    color: var(--accent-dark);
    padding: 7px 10px;
    font-size: 13px;
    font-weight: 900;
}

.fast-upload-public-form {
    display: grid;
    gap: 14px;
}

.fast-upload-public-files {
    display: grid;
    gap: 12px;
    border-top: 1px solid var(--line);
    padding-top: 16px;
}

.fast-upload-public-file-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.fast-upload-public-file-card {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.fast-upload-public-thumb {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--muted);
    cursor: pointer;
}

.fast-upload-public-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fast-upload-public-thumb span {
    font-size: 12px;
    font-weight: 900;
}

.fast-upload-public-file-meta {
    display: grid;
    min-width: 0;
}

.fast-upload-public-file-meta strong,
.fast-upload-public-file-meta span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fast-upload-public-file-meta strong {
    color: var(--text);
    font-size: 13px;
}

.fast-upload-public-file-meta span {
    color: var(--muted);
    font-size: 12px;
}

.list-featured-preview.compact {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.list-featured-preview.compact .public-list-featured {
    height: 74px;
}

.preview-selected {
    margin-bottom: 14px;
    background: #fff;
}

.preview-post-list {
    display: grid;
    gap: 10px;
}

.preview-post-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, auto);
    gap: 12px;
    align-items: center;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    padding: 12px;
    color: var(--text);
    text-align: left;
}

.preview-post-open {
    position: relative;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-width: 0;
    border: 0;
    background: transparent;
    color: inherit;
    padding: 0;
    text-align: left;
    cursor: pointer;
}

.preview-post-open.is-loading {
    cursor: wait;
    opacity: 0.72;
}

.preview-post-open.is-loading::after {
    content: "";
    position: absolute;
    right: 0;
    top: calc(50% - 9px);
    width: 18px;
    height: 18px;
    border: 2px solid #d9e1ec;
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: app-preloader-spin 0.8s linear infinite;
}

.preview-post-thumb {
    position: relative;
    display: grid;
    place-items: center;
    width: 72px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    background: #e4e7ec;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.preview-post-thumb:not(.is-empty)::before,
.media-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(110deg, #dfe4ec 8%, #f4f7fb 18%, #dfe4ec 33%);
    background-size: 200% 100%;
    animation: media-loading-shimmer 1.15s linear infinite;
}

.preview-post-thumb.is-loaded::before,
.media-tile.is-loaded::before {
    display: none;
}

.preview-post-thumb img {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-post-thumb small {
    position: absolute;
    right: 5px;
    bottom: 5px;
    z-index: 3;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    color: #fff;
    padding: 2px 5px;
    font-size: 10px;
    line-height: 1;
}

.preview-post-thumb.is-empty {
    background: repeating-linear-gradient(135deg, #eef2f6, #eef2f6 8px, #e4e7ec 8px, #e4e7ec 16px);
}

.preview-post-thumb.is-video {
    background: linear-gradient(145deg, #111827, #344054);
    color: #fff;
}

.preview-post-thumb.is-video.is-empty::before {
    display: none;
}

.preview-post-video-placeholder {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.preview-post-video-placeholder .button-icon {
    width: 18px;
    height: 18px;
    margin-left: 2px;
    fill: currentColor;
}

.preview-post-video-indicator {
    position: absolute;
    right: 6px;
    bottom: 6px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.22);
}

.preview-post-video-indicator .button-icon {
    width: 12px;
    height: 12px;
    margin-left: 1px;
    fill: currentColor;
    stroke-width: 1.8;
}

.preview-post-row:hover,
.preview-post-row.active {
    border-color: var(--accent);
    background: #eef6ff;
}

.preview-post-id {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.preview-post-main,
.preview-post-meta {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.preview-post-main strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-post-main em,
.preview-post-meta small {
    color: var(--muted);
    font-style: normal;
}

.preview-post-meta {
    justify-items: end;
}

.preview-media-count-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border: 1px solid rgba(100, 116, 139, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    padding: 2px 7px;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
}

.post-row-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 4px;
}

.post-action-button {
    width: 32px;
    min-width: 32px;
    min-height: 32px;
    padding: 6px;
}

.media-icon-tile {
    place-items: center;
    min-height: 220px;
}

.preview-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    padding: 24px;
}

.preview-modal.is-open {
    display: grid;
    place-items: center;
}

.preview-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.62);
}

.preview-modal-panel {
    position: relative;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    width: min(1380px, calc(100vw - 34px));
    max-height: calc(100vh - 34px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.34);
}

.preview-unsaved-confirm {
    position: fixed;
    inset: 0;
    z-index: 13000;
    display: grid;
    place-items: center;
    padding: 18px;
}

.preview-unsaved-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.68);
}

.preview-unsaved-panel {
    position: relative;
    display: grid;
    gap: 12px;
    width: min(430px, calc(100vw - 32px));
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 22px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

.preview-unsaved-panel h2 {
    margin: 0;
    font-size: 24px;
}

.preview-unsaved-panel p:not(.eyebrow) {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
}

.preview-unsaved-panel .actions {
    justify-content: flex-end;
    margin-top: 4px;
}

.preview-save-popup {
    position: fixed;
    inset: 0;
    z-index: 10060;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.preview-save-popup-card {
    display: grid;
    gap: 6px;
    min-width: min(360px, calc(100vw - 32px));
    border: 1px solid #b7ebc6;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.2);
    color: var(--text);
    padding: 18px 20px;
    text-align: center;
}

.preview-save-popup-card strong {
    color: var(--ok);
    font-size: 17px;
}

.preview-save-popup-card span {
    color: var(--muted);
    font-size: 13px;
}

.preview-editor-saving {
    position: relative;
    pointer-events: none;
}

.preview-editor-saving::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: 28;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(1px);
}

.preview-editor-saving::after {
    content: attr(data-saving-label);
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 29;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
    color: var(--text);
    padding: 9px 15px;
    font-size: 13px;
    font-weight: 900;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

.preview-modal-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.preview-modal-header h2 {
    margin-bottom: 8px;
}

.icon-button {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: #111827;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.network-switch {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.network-switch button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: #344054;
    padding: 8px 14px;
    font-weight: 800;
    cursor: pointer;
}

.network-switch button.active {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.preview-modal-body {
    display: grid;
    grid-template-columns: minmax(430px, 760px) minmax(340px, 1fr);
    gap: 18px;
    min-height: 0;
    overflow: auto;
    padding: 18px 20px;
}

.preview-create-modal .preview-create-editor {
    display: grid;
    width: 100%;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

.preview-create-modal .preview-modal-body {
    min-height: 0;
    min-width: 0;
    overflow-x: hidden;
}

.preview-create-modal .network-preview-stack,
.preview-create-modal .preview-export-panel {
    min-width: 0;
}

.preview-create-modal .notice,
.preview-create-modal .form-status {
    overflow-wrap: anywhere;
}

.network-preview-stack {
    min-width: 0;
}

.network-preview {
    display: none;
}

.network-preview.active {
    display: block;
}

.social-logo {
    display: inline-block;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border-radius: 7px;
    background-color: #fff;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.08);
}

.social-logo-facebook {
    background-image: url("logo-facebook.svg");
    border-radius: 50%;
    background-color: transparent;
    background-size: 100% 100%;
    box-shadow: none;
}

.social-logo-instagram {
    background-image: url("logo-instagram.svg");
}

.social-logo-tiktok {
    background-image: url("logo-tiktok.svg");
    background-size: 20px 20px;
}

.network-switch button.active .social-logo {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
}

.network-switch button.active .social-logo-facebook {
    filter: brightness(0) invert(1);
    box-shadow: none;
}

.placement-switch {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    margin-bottom: 12px;
    padding-bottom: 2px;
}

.placement-switch button {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: #344054;
    padding: 7px 11px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.placement-switch button.active {
    border-color: #1f2937;
    background: #1f2937;
    color: #fff;
}

.placement-preview {
    display: none;
}

.placement-preview.active {
    display: block;
}

.placement-note {
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 13px;
}

.preview-export-panel {
    align-self: start;
}

.preview-editor-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.preview-editor-heading h2,
.editor-section-heading h3 {
    margin: 0;
}

.preview-editor-heading p,
.editor-section-heading span {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.editor-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin: 16px 0 8px;
}

.preview-warning-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: -2px 0 10px;
}

.preview-warning-badges span {
    border: 1px solid #f4c56f;
    border-radius: 999px;
    background: #fff8e8;
    color: #92400e;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 850;
}

.asset-list {
    display: grid;
    gap: 8px;
}

.download-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.download-list li {
    grid-template-columns: 78px minmax(0, 1fr) auto auto;
}

.status,
.status-line {
    display: inline-flex;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 800;
}

.status.ok,
.status-line.ok {
    color: var(--ok);
    background: #e8f6ee;
}

.status.warn,
.status-line.warn {
    color: var(--warn);
    background: #fff4e6;
}

.status-line {
    margin-bottom: 14px;
}

.copy-field {
    display: grid;
    gap: 8px;
    margin: 14px 0;
}

.network-text-stack {
    display: grid;
    gap: 12px;
}

.network-editor-chip {
    margin: 4px 0 14px;
}

.network-text-platform-chip {
    margin-top: 0;
}

.network-editor-chip > span {
    display: none;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 9px 10px;
}

.network-editor-chip > span.active {
    display: grid;
}

.network-editor-chip strong {
    min-width: 0;
    color: #172033;
    font-size: 14px;
}

.network-editor-chip small {
    grid-column: 2;
    margin-left: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.3;
}

.network-text-panel,
.network-media-panel {
    display: none;
}

.network-text-panel.active,
.network-media-panel.active {
    display: grid;
    gap: 10px;
}

.network-text-panel textarea {
    min-height: 220px;
    line-height: 1.55;
}

.network-text-actions {
    gap: 8px;
}

.network-text-status {
    min-height: 20px;
    margin: 0;
    font-size: 13px;
}

.network-media-stack {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.network-media-note {
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 9px 10px;
}

.network-media-note > div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.network-media-note .network-media-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.network-media-note strong {
    color: #172033;
    font-size: 13px;
}

.network-media-state {
    width: fit-content;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 2px 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.network-media-panel.is-custom .network-media-state {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #075985;
}

.network-media-state.is-custom {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #075985;
}

.network-media-control-button {
    width: 34px;
    height: 34px;
    min-height: 34px;
}

.network-media-note span:not(.social-logo):not(.network-media-state) {
    color: var(--muted);
    font-size: 12px;
}

.note-text {
    white-space: pre-wrap;
    color: #344054;
}

.note-list {
    display: grid;
    gap: 10px;
    margin: 8px 0 18px;
    padding-left: 22px;
    color: #344054;
}

.note-list li {
    line-height: 1.5;
}

.note-list li::marker {
    color: var(--primary);
}

.ai-module-card {
    min-height: 240px;
}

.ai-placeholder {
    display: grid;
    gap: 6px;
    border: 1px dashed #b8c2d2;
    border-radius: 8px;
    background: var(--surface-soft);
    padding: 16px;
}

.ai-placeholder strong {
    color: #172033;
}

.ai-placeholder span {
    color: var(--muted);
}

.preview-post-editor {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    padding: 12px;
}

.preview-editor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.preview-editor-title-grid {
    grid-template-columns: 1fr;
    align-items: stretch;
}

.preview-title-field {
    min-width: 0;
}

.preview-editor-column {
    display: grid;
    gap: 8px;
}

.preview-list-field {
    display: grid;
    gap: 8px;
}

.preview-editor-context-card,
.preview-editor-context {
    display: grid;
    gap: 8px;
}

.preview-editor-context {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.preview-editor-context-card,
.preview-editor-context span {
    display: grid;
    gap: 2px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 9px 10px;
}

.preview-editor-client-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.preview-editor-client-card > span {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.preview-ai-all-button {
    width: 46px;
    min-width: 46px;
    min-height: 46px;
    color: var(--accent);
}

.preview-ai-all-button .button-icon {
    width: 21px;
    height: 21px;
    stroke-width: 2.35;
}

.preview-editor-context-card small,
.preview-editor-context small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.preview-editor-context-card strong,
.preview-editor-context strong {
    overflow: hidden;
    color: #172033;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-post-editor label {
    font-size: 13px;
}

.preview-post-editor input,
.preview-post-editor select,
.preview-post-editor textarea {
    min-height: 36px;
    padding: 8px 9px;
    font-size: 14px;
}

.preview-approval-field {
    display: grid;
    gap: 8px;
    margin: 0;
    border: 0;
    padding: 0;
}

.preview-approval-field legend {
    margin-bottom: 2px;
    color: #344054;
    font-size: 13px;
    font-weight: 800;
}

.preview-approval-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.preview-approval-choice {
    display: inline-flex;
    cursor: pointer;
}

.preview-approval-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.preview-approval-choice span,
.approval-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 850;
    text-align: center;
}

.preview-approval-choice span {
    width: 40px;
    min-height: 40px;
    border: 1px solid var(--line);
    background: #fff;
    color: #475467;
    padding: 0;
}

.preview-approval-choice .button-icon {
    width: 18px;
    height: 18px;
}

.preview-approval-choice input:checked + span,
.approval-approved {
    border-color: #9bd6b4;
    background: #e8f6ee;
    color: #027a48;
}

.preview-approval-choice.approval-changes_requested input:checked + span,
.approval-changes_requested {
    border-color: #ffd699;
    background: #fff4e6;
    color: #b54708;
}

.preview-approval-choice.approval-rejected input:checked + span,
.approval-rejected {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b42318;
}

.preview-editor-state {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.preview-editor-state span {
    border-radius: 999px;
    background: #fff;
    color: #475467;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 800;
}

.preview-approval-state {
    min-height: 32px;
}

.preview-approval-state .approval-badge {
    min-height: 28px;
    padding: 4px 10px;
}

.preview-editor-state .approval-approved {
    background: #e8f6ee;
    color: #027a48;
}

.preview-editor-state .approval-changes_requested {
    background: #fff4e6;
    color: #b54708;
}

.preview-editor-state .approval-rejected {
    background: #fef2f2;
    color: #b42318;
}

.preview-editor-actions {
    justify-content: space-between;
}

.preview-media-list li {
    display: grid;
    grid-template-columns: 52px 72px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 9px;
}

.preview-media-thumb {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    overflow: hidden;
    border-radius: 6px;
    background: #e4e7ec;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
}

.preview-media-thumb.is-clickable {
    border: 0;
    padding: 0;
    cursor: zoom-in;
}

.preview-media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-preview-open {
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    cursor: zoom-in;
}

.media-preview-open img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
}

.preview-media-actions {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 8;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    max-width: 210px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.preview-media-actions-root {
    display: contents;
}

.preview-media-actions-toggle {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 9;
    display: none;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.5);
    color: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(8px);
    pointer-events: auto;
}

.media-tile:hover .preview-media-actions,
.media-tile:focus-within .preview-media-actions,
.ig-media:hover .preview-media-actions,
.ig-media:focus-within .preview-media-actions,
.ig-desktop-media:hover .preview-media-actions,
.ig-desktop-media:focus-within .preview-media-actions,
.story-media:hover .preview-media-actions,
.story-media:focus-within .preview-media-actions,
.reel-media:hover .preview-media-actions,
.reel-media:focus-within .preview-media-actions,
.carousel-slide:hover .preview-media-actions,
.carousel-slide:focus-within .preview-media-actions,
.tt-media:hover .preview-media-actions,
.tt-media:focus-within .preview-media-actions,
.tt-photo-track:hover .preview-media-actions,
.tt-photo-track:focus-within .preview-media-actions {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.preview-media-action-button {
    width: 30px;
    min-width: 30px;
    min-height: 30px;
    border-color: rgba(255, 255, 255, 0.52);
    background: rgba(15, 23, 42, 0.68);
    color: #fff;
    padding: 5px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.2);
    backdrop-filter: blur(6px);
}

.preview-media-action-button:hover {
    background: rgba(15, 23, 42, 0.86);
    color: #fff;
}

.preview-media-action-button [class*="button-icon"] {
    width: 17px;
    height: 17px;
}

.preview-media-actions-toggle.preview-media-action-button {
    border: 0;
    background: rgba(15, 23, 42, 0.5);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.preview-media-actions-toggle.preview-media-action-button:hover,
.preview-media-actions-toggle.preview-media-action-button:focus-visible,
.is-preview-media-actions-open .preview-media-actions-toggle.preview-media-action-button {
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
}

.preview-media-action-button.danger:hover {
    background: rgba(180, 35, 24, 0.9);
}

.compact-media-action-panel {
    width: min(960px, calc(100vw - 32px));
}

.preview-ai-text-panel {
    width: min(620px, calc(100vw - 32px));
}

.preview-ai-text-editor textarea {
    min-height: 132px;
    resize: vertical;
}

.preview-media-action-delete {
    display: grid;
    gap: 4px;
    margin: 0;
}

.preview-media-action-delete[hidden],
.preview-media-action-picker[hidden] {
    display: none !important;
}

.preview-ai-image-editor {
    gap: 14px;
}

.ai-image-options-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.preview-ai-design-fields {
    display: grid;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    padding: 12px;
}

.preview-ai-design-fields[hidden] {
    display: none !important;
}

.social-connections-panel {
    border-color: #c7d7ee;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.social-connection-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.social-connection-card {
    display: grid;
    gap: 10px;
    min-width: 0;
    margin: 0;
    border: 1px solid #d7e2f1;
    border-radius: 8px;
    background: #fff;
    padding: 14px;
}

.social-connection-card legend {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 5px;
    color: #172033;
    font-weight: 900;
}

.social-connection-card label {
    font-size: 13px;
}

.social-connection-card input,
.social-connection-card select,
.social-connection-card textarea {
    min-height: 36px;
    padding: 8px 9px;
    font-size: 14px;
}

.social-connection-summary {
    align-content: start;
}

.social-connection-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.social-connection-summary > strong {
    overflow-wrap: anywhere;
}

.meta-page-selection {
    max-width: 620px;
}

.social-publish-panel {
    display: grid;
    gap: 14px;
    margin-top: 20px;
    padding: 16px;
    border: 1px solid #c7d7ee;
    border-radius: 8px;
    background: #f8fbff;
}

.social-publish-panel h3,
.social-publish-panel h4 {
    margin: 0;
}

.social-publish-form {
    display: grid;
    gap: 12px;
}

.social-publish-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-publish-network {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid #d7e2f1;
    border-radius: 8px;
    background: #fff;
}

.social-publish-network em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.social-schedule-field {
    width: min(100%, 320px);
}

.social-publication-history {
    display: grid;
    gap: 8px;
    padding-top: 4px;
}

.social-publication-row {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: start;
    gap: 9px;
    padding: 10px 0;
    border-top: 1px solid #d7e2f1;
}

.social-publication-row > div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.social-publication-row span:not(.social-logo),
.social-publication-row em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    overflow-wrap: anywhere;
}

.social-publication-row form {
    margin: 0;
}

.details {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 12px 16px;
    margin: 0;
}

.details dt {
    color: var(--muted);
    font-weight: 800;
}

.details dd {
    margin: 0;
}

.inline-folder-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.inline-folder-list a {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 9px;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
}

.fb-card,
.social-preview-card {
    overflow: hidden;
    width: 100%;
    max-width: 760px;
}

.fb-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px 10px;
}

.fb-header span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.avatar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1f2937;
    color: #fff;
    font-weight: 900;
}

.logo-avatar,
.client-logo {
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    border: 1px solid var(--line);
}

.client-logo {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
}

.client-logo.large {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
}

.logo-fallback {
    display: grid;
    place-items: center;
    background: #1f2937;
    color: #fff;
    font-weight: 900;
}

.client-list {
    display: grid;
    gap: 12px;
}

.client-card {
    display: grid;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    padding: 12px;
}

.client-card.active {
    border-color: var(--accent);
    background: #eef6ff;
}

.client-card-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.client-card-head strong,
.client-lists span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-card-head span,
.client-lists em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.client-lists {
    display: grid;
    gap: 8px;
}

.client-lists a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    padding: 8px 10px;
    color: var(--text);
}

.client-lists a.muted-link {
    border-style: dashed;
    background: #fff;
    color: var(--muted);
}

.client-lists a:hover,
.client-lists a.active {
    border-color: var(--accent);
    text-decoration: none;
}

.client-settings-layout {
    display: grid;
    gap: 22px;
}

.client-edit-panel {
    width: 100%;
}

.client-edit-head {
    align-items: center;
    justify-content: flex-start;
}

.client-edit-title {
    min-width: 0;
}

.client-edit-title h2,
.client-edit-title p {
    overflow-wrap: anywhere;
}

.client-identity-summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-width: min(280px, 100%);
    max-width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    padding: 10px 12px;
}

.client-identity-summary strong,
.client-identity-summary em {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-identity-summary em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.client-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(0, 1.2fr);
    gap: 14px;
}

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

.client-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    padding: 22px;
}

.client-modal.is-open {
    display: grid;
    place-items: start center;
}

.client-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.54);
}

.client-modal-panel {
    position: relative;
    display: grid;
    width: min(560px, calc(100vw - 32px));
    max-height: calc(100dvh - 44px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

.client-modal-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 18px 12px;
    border-bottom: 1px solid var(--line);
}

.client-modal-header h2 {
    margin-bottom: 0;
}

.client-picker-list {
    display: grid;
    gap: 8px;
    overflow: auto;
    padding: 14px;
}

.client-picker-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    padding: 11px;
    color: var(--text);
}

.client-picker-row:hover,
.client-picker-row.active {
    border-color: var(--accent);
    background: #eef6ff;
    text-decoration: none;
}

.client-picker-row strong,
.client-picker-row em {
    display: block;
}

.client-picker-row em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.client-modal-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px;
    border-top: 1px solid var(--line);
    background: var(--surface-soft);
}

.logo-preview-line,
.public-list-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.public-list-title {
    min-width: 0;
}

.public-list-title > div {
    flex: 1 1 auto;
    min-width: 0;
}

.public-list-title h1 {
    overflow-wrap: anywhere;
}

.public-list-title-stacked {
    align-items: flex-start;
    width: 100%;
}

.public-list-heading-line {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.public-list-heading-line h1 {
    margin: 0;
}

.public-list-logo {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
}

.public-share-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.public-list-head {
    margin-bottom: 18px;
}

.download-menu {
    position: relative;
    flex: 0 0 auto;
}

.download-menu summary {
    list-style: none;
}

.download-menu summary::-webkit-details-marker {
    display: none;
}

.download-menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 20;
    display: grid;
    min-width: 176px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 6px;
}

.download-menu-panel a {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 6px;
    color: var(--text);
    padding: 10px 11px;
    font-weight: 800;
}

.download-menu-panel a:hover {
    background: var(--surface-soft);
    text-decoration: none;
}

.public-list-featured {
    display: grid;
    place-items: center;
    width: 100%;
    height: clamp(136px, 22vw, 240px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.public-list-featured img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-list-featured.uses-client-logo img {
    width: auto;
    height: auto;
    max-width: min(280px, 54%);
    max-height: 70%;
    object-fit: contain;
}

.public-list-featured-fallback {
    display: grid;
    place-items: center;
    width: min(160px, 46vw);
    aspect-ratio: 1;
    border-radius: 50%;
    background: #111827;
    color: #fff;
    font-size: 40px;
    font-weight: 900;
}

.list-featured-preview {
    display: grid;
    gap: 8px;
}

.list-featured-preview .public-list-featured {
    height: 112px;
}

.list-featured-preview .public-list-featured.uses-client-logo img {
    max-width: 180px;
    max-height: 68px;
}

.list-filter {
    margin-bottom: 16px;
}

.list-filter label {
    margin-bottom: 0;
}

.share-inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.check-row {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: auto;
    margin: 0;
    color: var(--text);
    font-weight: 700;
}

.check-row input {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    padding: 0;
}

.public-list-stack {
    display: grid;
    gap: 22px;
}

.public-list-group {
    display: grid;
    gap: 16px;
}

.public-list-post {
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.fb-text {
    padding: 8px 18px 16px;
    white-space: normal;
    font-size: 15px;
    overflow-wrap: anywhere;
}

.preview-text-toggle {
    white-space: normal;
}

.preview-text-ellipsis {
    margin-left: 2px;
}

.preview-see-more {
    display: inline;
    border: 0;
    background: transparent;
    color: #667085;
    padding: 0 0 0 4px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.preview-see-more:hover {
    text-decoration: underline;
}

.preview-modal .fb-text,
.preview-modal .fb-text.is-preview-text-expanded {
    max-height: none;
    overflow: visible;
}

.media-grid {
    display: grid;
    background: #e5e7eb;
    gap: 2px;
}

.media-grid.count-1 {
    grid-template-columns: 1fr;
}

.media-grid.count-2,
.media-grid.count-3,
.media-grid.count-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.media-tile {
    position: relative;
    min-height: 260px;
    background: #d0d5dd;
    overflow: hidden;
}

.media-grid.count-1 .media-tile {
    min-height: 520px;
}

.media-tile img,
.media-tile iframe,
.media-tile video {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    border: 0;
    object-fit: cover;
}

.video-preview-shell {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    overflow: hidden;
    background: linear-gradient(135deg, #eef4fb 0%, #f8fafc 52%, #e7eef7 100%);
}

[data-video-quality-root] {
    position: relative;
}

.video-playback-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 8;
    display: flex;
    gap: 6px;
}

.video-quality-control,
.video-fullscreen-control {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    min-height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.28);
    color: #fff;
    font: 700 12px/1 system-ui, sans-serif;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.video-quality-control[hidden],
.video-fullscreen-control[hidden],
.video-fullscreen-control span[hidden] {
    display: none;
}

.video-quality-control[aria-pressed="true"] {
    background: rgba(3, 105, 161, 0.62);
    box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.85);
}

.video-quality-control:hover,
.video-fullscreen-control:hover {
    background: rgba(15, 23, 42, 0.65);
}

.video-quality-control:focus-visible,
.video-fullscreen-control:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.video-fullscreen-control span {
    display: grid;
    place-items: center;
}

.video-fullscreen-control svg {
    width: 18px;
    height: 18px;
}

[data-video-quality-root]:fullscreen,
[data-video-quality-root].has-poster:fullscreen {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    min-height: 0;
    aspect-ratio: auto;
    margin: 0;
    border-radius: 0;
    background: #000;
}

[data-video-quality-root]:fullscreen video,
[data-video-quality-root]:fullscreen .video-preview-poster-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: none;
}

[data-video-quality-root].is-frame-ready:fullscreen .video-preview-poster-button {
    opacity: 0;
    pointer-events: none;
}

[data-video-quality-root]:-webkit-full-screen,
[data-video-quality-root].has-poster:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    min-height: 0;
    aspect-ratio: auto;
    margin: 0;
    border-radius: 0;
    background: #000;
}

[data-video-quality-root]:-webkit-full-screen video,
[data-video-quality-root]:-webkit-full-screen .video-preview-poster-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: none;
}

[data-video-quality-root].is-frame-ready:-webkit-full-screen .video-preview-poster-button {
    opacity: 0;
    pointer-events: none;
}

.video-preview-shell.has-poster {
    background-image: var(--video-poster-preview), linear-gradient(135deg, #eef4fb 0%, #f8fafc 52%, #e7eef7 100%);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.video-preview-shell video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    object-fit: cover;
}

.video-preview-shell video {
    z-index: 4;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease;
}

.video-preview-shell.is-frame-ready video {
    opacity: 1;
    pointer-events: auto;
}

.video-preview-poster-button {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.video-preview-poster-button::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(110deg, rgba(255, 255, 255, 0.18) 8%, rgba(255, 255, 255, 0.42) 18%, rgba(255, 255, 255, 0.18) 33%);
    background-size: 200% 100%;
    animation: media-loading-shimmer 1.2s linear infinite;
}

.video-preview-poster-button img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-preview-play-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.66);
    color: #fff;
    transform: translate(-50%, -50%);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.26);
}

.video-preview-play-icon .button-icon {
    width: 34px;
    height: 34px;
    margin-left: 4px;
    fill: currentColor;
    stroke-width: 1.8;
}

.video-preview-shell.is-frame-ready.is-video-active .video-preview-poster-button {
    opacity: 0;
    pointer-events: none;
}

@keyframes media-loading-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.folder-tile,
.missing-media {
    display: grid;
    place-content: center;
    gap: 8px;
    min-height: 260px;
    padding: 24px;
    color: #344054;
    text-align: center;
}

.missing-media {
    box-sizing: border-box;
    width: 100%;
    min-height: 220px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #fff7ed;
    color: var(--warn);
}

.missing-media.with-actions {
    align-content: center;
    background: #fffaf4;
    color: #7a3f00;
}

.missing-media.with-actions span {
    max-width: 360px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.4;
}

.missing-media-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}

.missing-media-action-button {
    min-height: 38px;
    border-color: #fed7aa;
    background: #fff;
    color: #172033;
    padding: 8px 12px;
}

.missing-media-action-button:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
}

.ig-media .missing-media,
.ig-desktop-media .missing-media {
    height: 100%;
    min-height: 100%;
    border: 0;
}

.carousel-card > .missing-media {
    min-height: 360px;
    border-top: 1px solid var(--line);
}

.story-media .missing-media,
.reel-media .missing-media,
.tt-media .missing-media,
.tt-photo-track .missing-media {
    height: 100%;
    min-height: 100%;
    border: 0;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.5) 0%, rgba(255, 250, 244, 0.92) 32%, rgba(255, 250, 244, 0.9) 58%, rgba(15, 23, 42, 0.86) 100%);
}

.missing-media-vertical {
    padding: 96px 28px 120px;
}

.missing-media-vertical.with-actions span {
    max-width: 300px;
}

.reel-media .missing-media {
    padding-right: 74px;
    padding-bottom: 156px;
}

.tt-media .missing-media,
.tt-photo-track .missing-media {
    padding-right: 72px;
    padding-bottom: 152px;
}

.more-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(17, 24, 39, 0.62);
    color: #fff;
    font-size: 42px;
    font-weight: 900;
}

.fb-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-weight: 800;
    text-align: center;
}

.fb-actions span {
    padding: 13px 8px;
}

.fb-engagement-bar {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 58px;
    padding: 0 18px;
    color: #667085;
    text-align: left;
}

.fb-engagement-bar span {
    padding: 0;
}

.fb-engagement-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

.fb-engagement-item strong {
    color: inherit;
    font-size: 17px;
    font-weight: 800;
}

.fb-like-count {
    color: #1877f2;
}

.fb-engagement-item .preview-action-icon {
    width: 31px;
    height: 31px;
}

.fb-engagement-item .preview-action-icon-comment,
.fb-engagement-item .preview-action-icon-share {
    color: #667085;
}

.fb-reaction-stack {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
}

.fb-reaction {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.2);
}

.fb-reaction + .fb-reaction {
    margin-left: -7px;
}

.fb-reaction .preview-action-icon {
    width: 14px;
    height: 14px;
}

.fb-reaction .preview-action-icon-heart svg {
    fill: currentColor;
    stroke: none;
}

.fb-reaction-like {
    background: #1877f2;
}

.fb-reaction-heart {
    background: #f04461;
}

.fb-desktop-shell {
    display: grid;
    grid-template-columns: 150px minmax(360px, 620px) 150px;
    gap: 14px;
    max-width: 960px;
    padding: 14px;
    background: #eef2f7;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.fb-desktop-rail {
    display: grid;
    align-content: start;
    gap: 10px;
    color: #475467;
    font-size: 13px;
}

.fb-desktop-rail strong {
    color: #1d2939;
    font-size: 15px;
}

.fb-desktop-feed {
    min-width: 0;
}

.fb-desktop-feed .fb-card {
    max-width: 620px;
    box-shadow: none;
}

.fb-desktop-feed .media-grid.count-1 .media-tile {
    min-height: 420px;
}

.ig-card {
    width: min(520px, 100%);
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.ig-header {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
}

.ig-media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #d0d5dd;
    overflow: hidden;
}

.ig-media img,
.ig-media iframe,
.ig-media video,
.tt-media img,
.tt-media iframe,
.tt-media video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.preview-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: inherit;
    line-height: 1;
    vertical-align: middle;
    flex: 0 0 auto;
}

.preview-action-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ig-header .preview-action-icon {
    justify-self: end;
    width: 22px;
    height: 22px;
    color: #111827;
}

.ig-actions {
    display: grid;
    grid-template-columns: auto auto auto 1fr;
    gap: 14px;
    padding: 12px 14px 4px;
    color: #111827;
}

.ig-actions .preview-action-icon:last-child {
    justify-self: end;
}

.ig-social-proof {
    display: grid;
    gap: 4px;
    padding: 0 14px 8px;
    color: #667085;
    font-size: 13px;
    line-height: 1.25;
}

.ig-social-proof strong {
    color: #111827;
    font-size: 14px;
    font-weight: 800;
}

.ig-caption {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px;
    padding: 8px 14px 18px;
    font-size: 14px;
}

.ig-caption > span {
    min-width: 0;
    overflow: visible;
}

.ig-caption > span.is-preview-text-expanded {
    max-height: none;
    overflow: visible;
}

.ig-caption .preview-see-more {
    color: #737373;
}

.ig-desktop-card {
    max-width: 920px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.ig-desktop-top {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    color: #475467;
}

.ig-desktop-top strong {
    margin-right: auto;
    color: #111827;
    font-size: 18px;
}

.ig-desktop-post {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) minmax(260px, 330px);
    min-height: 520px;
}

.ig-desktop-media {
    position: relative;
    display: grid;
    min-height: 520px;
    background: #d0d5dd;
}

.ig-desktop-media img,
.ig-desktop-media iframe,
.ig-desktop-media video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.ig-desktop-side {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    border-left: 1px solid var(--line);
}

.story-card,
.reel-phone {
    position: relative;
    width: min(390px, 100%);
    aspect-ratio: 9 / 16;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 28px;
    background: #111827;
    box-shadow: var(--shadow);
}

.story-media,
.reel-media,
.tt-photo-track {
    position: absolute;
    inset: 0;
    background: #111827;
}

.story-media img,
.story-media iframe,
.story-media video,
.reel-media img,
.reel-media iframe,
.reel-media video,
.tt-photo-track img,
.tt-photo-track iframe,
.tt-photo-track video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.story-card::before,
.reel-phone::before,
.tt-phone::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 28%, transparent 58%, rgba(0, 0, 0, 0.68));
    z-index: 1;
}

.story-progress {
    position: absolute;
    top: 12px;
    left: 14px;
    right: 14px;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.story-progress span {
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
}

.story-progress span:first-child {
    background: #fff;
}

.story-top,
.reel-top {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
}

.story-top {
    top: 24px;
    left: 14px;
    right: 14px;
}

.story-top .avatar {
    width: 32px;
    height: 32px;
    font-size: 13px;
}

.story-top span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
}

.story-bottom {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 18px;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    color: #fff;
}

.story-bottom span:first-child {
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 999px;
    padding: 9px 14px;
    color: rgba(255, 255, 255, 0.92);
}

.story-bottom span:not(:first-child) {
    font-size: 24px;
}

.story-bottom .preview-action-icon,
.reel-actions .preview-action-icon,
.tt-side-actions .preview-action-icon {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.55));
}

.tt-side-actions .preview-action-icon-record {
    width: 32px;
    height: 32px;
    margin-inline: -4px;
}

.reel-card {
    display: grid;
    place-items: center;
}

.reel-top {
    top: 14px;
    left: 16px;
}

.reel-actions {
    position: absolute;
    right: 12px;
    bottom: 96px;
    z-index: 2;
    display: grid;
    gap: 14px;
    color: #fff;
    font-size: 24px;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.social-side-action {
    display: grid;
    justify-items: center;
    gap: 3px;
    color: inherit;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.social-side-action strong {
    color: inherit;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.reel-caption {
    position: absolute;
    left: 16px;
    right: 58px;
    bottom: 18px;
    z-index: 2;
    display: grid;
    gap: 7px;
    max-height: none;
    overflow: visible;
    color: #fff;
    font-size: 14px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.reel-caption .preview-see-more,
.tt-caption .preview-see-more {
    color: #fff;
    text-shadow: inherit;
}

.reel-caption > span.is-preview-text-expanded,
.tt-caption > span.is-preview-text-expanded {
    max-height: none;
    overflow: visible;
}

.carousel-card {
    width: min(540px, 100%);
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.carousel-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 86%;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding: 0 14px 10px;
}

.carousel-slide {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #d0d5dd;
}

.carousel-slide img,
.carousel-slide iframe,
.carousel-slide video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 4px 0 10px;
}

.carousel-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cbd5e1;
}

.carousel-dots span.active {
    background: var(--accent);
}

.tt-card {
    display: grid;
    place-items: center;
    width: 100%;
}

.tt-phone {
    position: relative;
    width: min(390px, 100%);
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border: 10px solid #111827;
    border-radius: 28px;
    background: #050505;
    box-shadow: var(--shadow);
}

.tt-media {
    position: absolute;
    inset: 0;
    background: #111827;
}

.tt-media .missing-media {
    min-height: 100%;
}

.tt-side-actions {
    position: absolute;
    right: 10px;
    bottom: 96px;
    z-index: 2;
    display: grid;
    gap: 14px;
    color: #fff;
    font-size: 24px;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.tt-caption {
    position: absolute;
    left: 14px;
    right: 58px;
    bottom: 18px;
    z-index: 2;
    display: grid;
    gap: 7px;
    max-height: none;
    overflow: visible;
    color: #fff;
    font-size: 14px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.tt-caption strong {
    font-size: 15px;
}

.tt-desktop-card {
    display: grid;
    grid-template-columns: 170px minmax(300px, 1fr);
    gap: 16px;
    max-width: 820px;
    margin: 0 auto;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.tt-desktop-nav {
    display: grid;
    align-content: start;
    gap: 12px;
    color: #475467;
}

.tt-desktop-nav strong {
    color: #050505;
    font-size: 22px;
}

.tt-desktop-stage {
    display: grid;
    justify-items: center;
    min-width: 0;
    padding: 14px;
    border-radius: 8px;
    background: #f1f5f9;
}

.tt-desktop-stage .tt-phone {
    width: min(330px, calc(100% - 20px));
}

.tt-photo-phone {
    background: #050505;
}

.tt-photo-track {
    display: grid;
}

.tt-photo-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 88px;
    z-index: 2;
}

body.modal-open {
    overflow: hidden;
}

.library-post-modal,
.drive-quick-preview-modal,
.drive-text-editor-modal,
.list-modal,
.preview-modal,
.client-modal,
.fast-upload-modal,
.fast-upload-folder-modal {
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.library-post-modal-panel,
.drive-quick-preview-panel,
.drive-text-editor-panel,
.list-modal-panel,
.preview-modal-panel,
.client-modal-panel,
.fast-upload-panel,
.fast-upload-folder-panel {
    min-height: 0;
    max-height: calc(100dvh - 32px);
}

.library-post-modal-panel,
.drive-quick-preview-panel,
.client-modal-panel,
.fast-upload-panel,
.fast-upload-folder-panel {
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.library-post-editor,
.drive-quick-preview-stage,
.drive-text-editor-form,
.client-picker-list,
.list-modal-body,
.preview-modal-body,
.fast-upload-body,
.fast-upload-folder-body {
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.client-modal-footer,
.drive-quick-preview-actions {
    flex: 0 0 auto;
}

.auth-page {
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-shell {
    width: min(460px, 100%);
}

.auth-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 28px;
}

.login-auth-page {
    position: relative;
    isolation: isolate;
    min-height: 100dvh;
    overflow: hidden;
    background-color: #0b1010;
    background-image: url("https://images.higgs.ai/?default=1&output=webp&url=https%3A%2F%2Fd8j0ntlcm91z4.cloudfront.net%2Fuser_38xzZboKViGWJOttwIXH07lWA1P%2Fhf_20260624_111401_56af5012-2263-45d3-849a-8688084d7c2a.png&w=1280&q=85");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.login-auth-page::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background: rgba(7, 11, 11, 0.82);
}

.login-shell {
    position: relative;
    z-index: 1;
    width: min(460px, 100%);
}

.login-screen {
    display: grid;
    gap: 22px;
}

.login-identity {
    display: grid;
    justify-items: center;
    gap: 14px;
    color: #fff;
    text-align: center;
}

.login-brand.crm-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    color: #fff;
}

.login-brand .crm-logo-mark {
    display: inline-flex;
    flex: 0 0 auto;
    width: 58px;
}

.login-brand .crm-logo-mark img {
    display: block;
    width: 58px;
    height: auto;
}

.login-brand .crm-brand-copy {
    display: grid;
    gap: 8px;
    justify-items: center;
    color: #fff;
    font-family: "WebHat Manrope", "Trebuchet MS", "Segoe UI", Arial, sans-serif;
    line-height: 1;
}

.login-brand .crm-brand-name {
    display: block;
    color: #fff;
    font-size: 26.56px;
    font-weight: 800;
    letter-spacing: .015em;
    line-height: 1;
    white-space: nowrap;
}

.login-brand .crm-brand-badge {
    display: block;
    margin: 0;
    border-radius: 8px;
    background: #c7fd72;
    color: #101714;
    padding: 6px 10px;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.login-card {
    display: grid;
    gap: 14px;
    padding: 22px;
    border: 1px solid rgba(199, 253, 114, 0.34);
    border-radius: 8px;
    background: rgba(9, 15, 14, 0.86);
    backdrop-filter: blur(12px);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
    color: #fff;
}

.login-card label {
    display: grid;
    gap: 0;
    color: #f2f6f4;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
}

.login-card input {
    width: 100%;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(4, 9, 8, 0.82);
    color: #fff;
    padding: 10px 12px;
    font: 16px / 1.5 Inter, "Segoe UI", Arial, sans-serif;
    outline: none;
}

.login-card input:focus {
    border-color: #c7fd72;
    box-shadow: 0 0 0 3px rgba(199, 253, 114, 0.18);
}

.login-password-field {
    position: relative;
    display: block;
}

.login-password-field input {
    padding-right: 46px;
}

.login-password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #f4f7f6;
    padding: 0;
    transform: translateY(-50%);
    cursor: pointer;
}

.login-password-toggle:hover,
.login-password-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.08);
}

.login-password-toggle .button-icon {
    width: 20px;
    height: 20px;
}

.login-remember {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 10px !important;
    min-height: 24px;
    color: #f2f6f4;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;
    cursor: pointer;
}

.login-remember input {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    accent-color: #c7fd72;
    cursor: pointer;
}

.login-remember span {
    min-width: 0;
}

.login-submit-button {
    justify-content: center;
    width: 100%;
    min-height: 42px;
    border: 1px solid #c7fd72;
    border-radius: 8px;
    background: #c7fd72;
    color: #101714;
    box-shadow: 0 10px 22px rgba(199, 253, 114, 0.16);
    font: 800 16px / 1.15 Inter, "Segoe UI", Arial, sans-serif;
}

.login-submit-button:hover {
    background: #defead;
    border-color: #defead;
}

.login-actions {
    display: flex;
    justify-content: center;
    min-height: 22px;
}

.login-link {
    color: #c7fd72;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.5;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.login-link:hover {
    color: #defead;
}

.login-card .notice {
    margin: 0;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #f2f6f4;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.login-card .notice.warning {
    border-left-color: #f7d985;
}

.login-card .notice.danger {
    border-left-color: #ff9d9d;
}

@media (max-width: 560px) {
    .login-auth-page {
        padding: 18px;
    }

    .login-shell {
        width: 100%;
    }

    .login-card {
        padding: 20px;
    }

    .login-brand .crm-brand-name {
        font-size: 25px;
    }

}

.table-panel {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.public-page {
    padding-top: 28px;
}

@media (max-width: 1100px) {
    .grid.two,
    .grid.form-layout,
    .grid.preview-layout,
    .grid.preview-workspace,
    .grid.preview-detail-layout,
    .grid.user-admin-layout {
        grid-template-columns: 1fr;
    }

    .settings-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .settings-primary-grid {
        grid-template-columns: 1fr;
    }

    .sticky {
        position: static;
    }

    .preview-modal-body {
        grid-template-columns: 1fr;
    }

    .fb-card {
        max-width: none;
    }

    .fb-desktop-shell,
    .tt-desktop-card {
        grid-template-columns: 1fr;
    }

    .fb-desktop-rail.right {
        display: none;
    }

    .fb-desktop-rail {
        grid-template-columns: repeat(4, auto);
        overflow-x: auto;
    }

    .ig-desktop-post {
        grid-template-columns: 1fr;
    }

    .ig-desktop-side {
        border-top: 1px solid var(--line);
        border-left: 0;
    }
}

@media (hover: none) {
    .drive-file-quick-preview {
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .preview-media-actions-toggle {
        display: inline-flex;
        width: 34px;
        min-width: 34px;
        min-height: 34px;
        padding: 7px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .preview-media-actions {
        right: 8px;
        bottom: 46px;
        flex-direction: column;
        flex-wrap: nowrap;
        max-width: none;
        padding: 4px;
        border: 1px solid rgba(255, 255, 255, 0.22);
        border-radius: 10px;
        background: rgba(15, 23, 42, 0.42);
        backdrop-filter: blur(7px);
        transform: translateY(8px) scale(0.96);
        transform-origin: right bottom;
    }

    .media-tile:hover .preview-media-actions,
    .media-tile:focus-within .preview-media-actions,
    .ig-media:hover .preview-media-actions,
    .ig-media:focus-within .preview-media-actions,
    .ig-desktop-media:hover .preview-media-actions,
    .ig-desktop-media:focus-within .preview-media-actions,
    .story-media:hover .preview-media-actions,
    .story-media:focus-within .preview-media-actions,
    .reel-media:hover .preview-media-actions,
    .reel-media:focus-within .preview-media-actions,
    .carousel-slide:hover .preview-media-actions,
    .carousel-slide:focus-within .preview-media-actions,
    .tt-media:hover .preview-media-actions,
    .tt-media:focus-within .preview-media-actions,
    .tt-photo-track:hover .preview-media-actions,
    .tt-photo-track:focus-within .preview-media-actions {
        opacity: 0;
        pointer-events: none;
        transform: translateY(8px) scale(0.96);
    }

    .media-tile.is-preview-media-actions-open .preview-media-actions,
    .ig-media.is-preview-media-actions-open .preview-media-actions,
    .ig-desktop-media.is-preview-media-actions-open .preview-media-actions,
    .story-media.is-preview-media-actions-open .preview-media-actions,
    .reel-media.is-preview-media-actions-open .preview-media-actions,
    .carousel-slide.is-preview-media-actions-open .preview-media-actions,
    .tt-media.is-preview-media-actions-open .preview-media-actions,
    .tt-photo-track.is-preview-media-actions-open .preview-media-actions {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .preview-media-action-button {
        width: 34px;
        min-width: 34px;
        min-height: 34px;
    }
}

@media (max-width: 760px) {
    .topbar,
    .page-head,
    .userline {
        align-items: stretch;
        flex-direction: column;
    }

    .page-head-main {
        align-items: flex-start;
    }

    .topbar {
        position: sticky;
        gap: 10px;
        padding: 14px 58px 14px 16px;
    }

    .brand-lockup {
        align-items: center;
    }

    .topbar .userline {
        display: contents;
    }

    .topbar .userline > span:first-child {
        display: none;
    }

    .topbar-actions {
        position: absolute;
        top: 8px;
        right: 8px;
        gap: 4px;
        z-index: 2;
    }

    .topbar-icon-action {
        width: 26px;
        min-width: 26px;
        height: 26px;
        min-height: 26px;
        border-radius: 6px;
        border-color: transparent;
        background: transparent;
        color: #475467;
        box-shadow: none;
    }

    .topbar-icon-action .button-icon {
        width: 15px;
        height: 15px;
    }

    .tabs {
        display: none;
    }

    .mobile-tabs {
        position: sticky;
        top: 65px;
        z-index: 9;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        padding: 8px 10px;
        background: #fff;
        border-bottom: 1px solid var(--line);
    }

    .mobile-tabs .client-switch-button {
        min-width: 0;
        width: 100%;
        min-height: 40px;
        border: 1px solid var(--line);
        border-radius: 7px;
        background: var(--surface-soft);
        padding: 7px 10px 7px 8px;
    }

    .mobile-tabs .client-switch-button > span:last-child {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-nav-menu {
        position: relative;
        min-width: 150px;
    }

    .mobile-nav-menu summary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        width: 100%;
        min-height: 40px;
        border: 1px solid var(--line);
        border-radius: 7px;
        background: var(--surface-soft);
        color: var(--accent-dark);
        padding: 7px 10px;
        font-weight: 800;
        list-style: none;
        cursor: pointer;
    }

    .mobile-nav-menu summary::-webkit-details-marker {
        display: none;
    }

    .mobile-nav-menu summary .button-icon {
        width: 16px;
        height: 16px;
        flex: 0 0 16px;
    }

    .mobile-nav-menu[open] summary {
        border-color: #a8b2c1;
        background: #edf4fb;
    }

    .mobile-nav-menu[open] summary .button-icon:last-child {
        transform: rotate(180deg);
    }

    .mobile-nav-panel {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        display: grid;
        gap: 4px;
        width: min(260px, calc(100vw - 20px));
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fff;
        padding: 6px;
        box-shadow: var(--shadow);
    }

    .mobile-nav-panel a {
        display: flex;
        align-items: center;
        gap: 9px;
        border-radius: 6px;
        color: #344054;
        padding: 10px 11px;
        font-weight: 750;
    }

    .mobile-nav-panel a:hover,
    .mobile-nav-panel a.active {
        background: #edf4fb;
        color: var(--accent-dark);
        text-decoration: none;
    }

    .mobile-nav-panel a .button-icon {
        width: 17px;
        height: 17px;
        flex: 0 0 17px;
    }

    .client-modal {
        padding: 8px;
    }

    .client-modal-panel {
        width: calc(100vw - 16px);
        max-height: calc(100dvh - 16px);
    }

    .page {
        width: min(100vw - 20px, 1440px);
        padding-top: 20px;
    }

    .public-page {
        overflow-x: hidden;
    }

    .metrics,
    .form-grid,
    .settings-summary-grid,
    .client-form-grid,
    .client-ai-grid,
    .ai-option-grid,
    .user-form-grid,
    .preview-editor-grid,
    .social-connection-grid {
        grid-template-columns: 1fr;
    }

    .settings-layout {
        gap: 12px;
    }

    .settings-layout .panel {
        padding: 14px;
    }

    .settings-layout .details {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .settings-layout .details dt {
        margin-top: 8px;
    }

    .settings-layout .details dt:first-child {
        margin-top: 0;
    }

    .settings-layout .details dd {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .settings-layout .actions .button {
        width: 100%;
        justify-content: center;
    }

    .preview-layout,
    .preview-layout > *,
    .public-list-post,
    .public-list-post > *,
    .fb-card,
    .panel {
        min-width: 0;
        max-width: 100%;
    }

    .public-list-post.grid.preview-layout {
        display: block;
        width: calc(100vw - 20px);
    }

    .public-list-post > aside {
        margin-top: 14px;
    }

    .public-list-post .fb-card,
    .public-list-post .panel {
        max-width: calc(100vw - 20px);
    }

    .public-list-post h2,
    .public-list-post h3 {
        max-width: calc(100vw - 20px);
        font-size: 17px;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .post-list a,
    .asset-row,
    .selected-post,
    .download-list li,
    .drive-file-card,
    .preview-post-row,
    .client-card-head,
    .client-lists a,
    .client-identity-summary {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .client-edit-head,
    .social-connections-panel .section-head {
        align-items: flex-start;
    }

    .client-edit-head {
        display: grid;
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 12px;
    }

    .client-edit-title {
        width: 100%;
    }

    .client-edit-title h2 {
        font-size: 20px;
        line-height: 1.2;
    }

    .client-edit-title p {
        max-width: 100%;
        line-height: 1.35;
    }

    .preview-post-meta,
    .client-lists a {
        justify-items: start;
    }

    .drive-folder-grid,
    .drive-folder-tabs,
    .drive-folder-toolbar,
    .drive-upload-form {
        grid-template-columns: 1fr;
    }

    .drive-folder-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .drive-folder-tab,
    .drive-folder-tab-main {
        min-height: 44px;
    }

    .drive-folder-tab-main {
        padding: 9px 10px;
    }

    .drive-folder-tab-drive {
        width: 30px;
        min-width: 30px;
        min-height: 30px;
        margin-right: 7px;
    }

    .drive-folder-title-row {
        align-items: flex-start;
    }

    .drive-subfolder-grid {
        grid-template-columns: 1fr;
    }

    .drive-file-list.photo-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
    }

    .photo-grid .drive-file-main {
        display: none;
    }

    .drive-file-select,
    .drive-file-quick-preview {
        top: 5px;
    }

    .drive-file-select {
        left: 5px;
    }

    .drive-file-quick-preview {
        right: 5px;
    }

    .drive-file-delete-form {
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .drive-file-select span {
        width: 14px;
        height: 14px;
    }

    .drive-file-select span::before {
        width: 7px;
        height: 4px;
    }

    .drive-file-quick-preview {
        border: 0;
    }

    .drive-file-quick-preview .button-icon {
        width: 12px;
        height: 12px;
    }

    .drive-file-thumb {
        width: 100%;
        max-width: 110px;
    }

    .drive-file-thumb-shell {
        width: 100%;
        max-width: 110px;
    }

    .photo-grid .drive-file-thumb {
        max-width: none;
    }

    .photo-grid .drive-file-thumb-shell {
        max-width: none;
    }

    .drive-file-card .row-actions {
        width: 100%;
    }

    .drive-file-note {
        grid-column: 1;
        width: 100%;
    }

    .library-create-post-fab {
        right: max(14px, env(safe-area-inset-right));
        bottom: max(14px, env(safe-area-inset-bottom));
        min-width: 58px;
        height: 58px;
    }

    .library-post-modal {
        padding: 10px;
    }

    .library-post-modal-panel {
        width: min(100%, calc(100vw - 20px));
        max-height: calc(100dvh - 20px);
    }

    .library-post-modal-header {
        padding: 14px;
    }

    .library-post-editor {
        padding: 14px;
    }

    .ai-image-options-grid,
    .preview-ai-design-fields .form-grid {
        grid-template-columns: 1fr;
    }

    .selected-drive-summary {
        grid-template-columns: 1fr;
    }

    .drive-quick-preview-modal {
        padding: 10px;
    }

    .drive-quick-preview-panel {
        width: min(100%, calc(100vw - 20px));
        max-height: calc(100dvh - 20px);
    }

    .drive-quick-preview-header {
        padding: 12px;
    }

    .drive-quick-preview-header h2 {
        max-width: calc(100vw - 100px);
        font-size: 15px;
    }

    .drive-quick-preview-stage {
        min-height: 220px;
    }

    .drive-quick-preview-image-wrap {
        max-height: calc(100dvh - 160px);
    }

    .drive-quick-preview-stage img {
        max-height: calc(100dvh - 160px);
    }

    .drive-quick-preview-actions {
        flex-wrap: wrap;
        justify-content: stretch;
        padding: 10px;
    }

    .drive-quick-preview-tools {
        flex: 1 1 100%;
        margin-right: 0;
    }

    .drive-quick-preview-actions .button {
        flex: 1 1 0;
        padding-left: 8px;
        padding-right: 8px;
    }

    .drive-quick-preview-actions .icon-only-button {
        flex: 0 0 42px;
        padding: 8px;
    }

    .drive-text-editor-modal {
        padding: 10px;
    }

    .drive-text-editor-panel {
        width: min(100%, calc(100vw - 20px));
        max-height: calc(100dvh - 20px);
    }

    .drive-text-editor-header {
        padding: 12px;
    }

    .drive-text-editor-header h2 {
        max-width: calc(100vw - 100px);
        font-size: 15px;
    }

    .drive-text-editor-field textarea {
        height: min(60dvh, 520px);
        min-height: 260px;
        padding: 12px;
    }

    .drive-text-editor-footer {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .drive-text-editor-footer .actions {
        justify-content: flex-end;
    }

    .preview-post-editor {
        padding: 10px;
    }

    .preview-editor-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .preview-media-list li {
        grid-template-columns: 46px minmax(0, 1fr) auto auto;
        gap: 8px;
    }

    .preview-media-list li > span:nth-child(2) {
        display: none;
    }

    .preview-media-list li a {
        font-size: 13px;
    }

    .preview-media-thumb {
        width: 46px;
        height: 46px;
    }

    .preview-post-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .list-modal {
        padding: 8px;
    }

    .list-modal-panel {
        width: calc(100vw - 16px);
        max-height: calc(100dvh - 16px);
    }

    .campaign-field-grid,
    .ai-generate-modal .form-grid,
    .ai-source-grid,
    .list-upload-grid,
    .fast-upload-settings-form .form-grid {
        grid-template-columns: 1fr;
    }

    .fast-upload-modal,
    .fast-upload-folder-modal {
        padding: 8px;
    }

    .fast-upload-panel,
    .fast-upload-folder-panel {
        width: calc(100vw - 16px);
        max-height: calc(100dvh - 16px);
    }

    .fast-upload-folder-panel {
        height: calc(100dvh - 16px);
    }

    .fast-upload-header,
    .fast-upload-body,
    .fast-upload-folder-header,
    .fast-upload-folder-body {
        padding: 12px;
    }

    .fast-upload-folder-upload-grid {
        grid-template-columns: 1fr;
    }

    .fast-upload-card-head,
    .fast-upload-public-head {
        align-items: flex-start;
    }

    .fast-upload-card-head,
    .fast-upload-file-row,
    .fast-upload-public-head {
        grid-template-columns: 1fr;
    }

    .fast-upload-card-head {
        display: grid;
    }

    .fast-upload-public-head {
        display: grid;
    }

    .fast-upload-file-row {
        align-items: start;
    }

    .fast-upload-file-row .row-actions,
    .fast-upload-delete-form {
        justify-self: start;
    }

    .fast-upload-public-page {
        align-items: start;
        padding: 12px;
    }

    .fast-upload-public-card {
        padding: 14px;
    }

    .list-upload-tile {
        min-height: 112px;
        padding: 12px;
    }

    .list-modal-header,
    .list-modal-body {
        padding: 12px;
    }

    .list-featured-preview.compact {
        grid-template-columns: 1fr;
    }

    .preview-post-open {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 10px;
    }

    .preview-post-thumb {
        width: 64px;
    }

    .preview-post-meta {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
        padding-left: 74px;
    }

    .post-row-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .post-action-button {
        width: 30px;
        min-width: 30px;
        min-height: 30px;
        padding: 5px;
    }

    .logo-preview-line {
        align-items: flex-start;
        flex-direction: column;
    }

    .public-list-title {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr);
        align-items: start;
        gap: 10px;
        width: 100%;
    }

    .public-list-title.public-list-title-stacked {
        display: block;
    }

    .public-list-title > div {
        width: 100%;
        max-width: 100%;
    }

    .public-list-heading-line {
        align-items: center;
        gap: 9px;
    }

    .public-list-logo {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .public-list-featured {
        height: 126px;
    }

    .public-list-featured.uses-client-logo img {
        max-width: min(170px, 58%);
        max-height: 72px;
    }

    .public-list-featured-fallback {
        width: 82px;
        font-size: 24px;
    }

    .public-share-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .preview-export-panel .network-media-stack {
        margin-top: 18px;
    }

    .public-list-head .button {
        width: 100%;
    }

    .download-menu-panel {
        min-width: 168px;
    }

    .preview-modal {
        padding: 8px;
    }

    .preview-modal-panel {
        width: calc(100vw - 16px);
        max-height: calc(100dvh - 16px);
    }

    .preview-modal-header {
        gap: 10px;
        padding: 12px;
    }

    .preview-modal-header h2 {
        margin-bottom: 6px;
        font-size: 17px;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .preview-modal-header .eyebrow {
        margin-bottom: 4px;
    }

    .icon-button {
        width: 36px;
        height: 36px;
        font-size: 23px;
    }

    .network-switch {
        gap: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding: 10px 12px;
    }

    .network-switch button {
        flex: 1 0 auto;
        padding: 8px 10px;
        font-size: 14px;
    }

    .social-logo {
        width: 20px;
        height: 20px;
        flex-basis: 20px;
    }

    .preview-modal-body {
        gap: 12px;
        padding: 12px;
    }

    .preview-editor-heading,
    .editor-section-heading {
        display: grid;
        gap: 6px;
    }

    .preview-editor-heading .status-line {
        justify-self: start;
    }

    .preview-editor-context {
        grid-template-columns: 1fr;
    }

    .preview-approval-options {
        gap: 7px;
    }

    .preview-approval-choice span {
        width: 38px;
        min-height: 38px;
    }

    .placement-switch {
        gap: 6px;
        margin-bottom: 10px;
        padding: 0 2px 4px;
        scrollbar-width: none;
    }

    .placement-switch::-webkit-scrollbar {
        display: none;
    }

    .placement-switch button {
        padding: 7px 10px;
        font-size: 12px;
    }

    .placement-note {
        font-size: 12px;
    }

    .preview-modal .fb-text {
        max-height: none;
        overflow: visible;
        font-size: 14px;
    }

    .fb-text {
        padding-left: 14px;
        padding-right: 14px;
    }

    .media-grid.count-2,
    .media-grid.count-3,
    .media-grid.count-4 {
        grid-template-columns: 1fr;
    }

    .media-grid.count-1 .media-tile,
    .media-tile {
        min-height: 360px;
    }

    .preview-modal .media-grid.count-1 .media-tile,
    .preview-modal .media-tile {
        min-height: 300px;
    }

    .ig-caption > span {
        max-height: none;
        overflow: visible;
    }

    .fb-desktop-shell,
    .tt-desktop-card {
        padding: 10px;
    }

    .fb-desktop-rail,
    .ig-desktop-top {
        font-size: 12px;
    }

    .ig-desktop-media {
        min-height: 360px;
    }

    .story-card,
    .reel-phone,
    .tt-phone {
        border-radius: 22px;
    }

    .carousel-track {
        grid-auto-columns: 92%;
        padding-left: 10px;
        padding-right: 10px;
    }
}
