:root {
    --canvas: #eef2f6;
    --panel: #ffffff;
    --panel-soft: #f7f9fc;
    --ink: #101318;
    --muted: #66707f;
    --line: #dce3ec;
    --line-strong: #c6d0dc;
    --green: #4bd96f;
    --green-dark: #16833a;
    --blue: #246bfe;
    --coral: #ff6b4a;
    --yellow: #ffc64a;
    --shadow: 0 24px 70px rgba(29, 42, 62, 0.13);
    --radius: 8px;
    --font: "Manrope", "IBM Plex Sans", "Aptos", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        linear-gradient(135deg, rgba(75, 217, 111, 0.16), transparent 30%),
        linear-gradient(180deg, #f8fafc 0%, var(--canvas) 100%);
    color: var(--ink);
    font-family: var(--font);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(420px, 1.05fr);
}

.brand-panel {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 48px;
    padding: 34px;
    background: #101318;
    color: #ffffff;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 900;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    background: var(--green);
    color: #101318;
    font-weight: 900;
}

.brand-copy {
    max-width: 560px;
    margin-top: 92px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--green);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.brand-copy h1,
.dashboard-content h1 {
    margin: 0 0 16px;
    font-size: clamp(36px, 5vw, 68px);
    line-height: 1;
    letter-spacing: 0;
}

.brand-copy p:last-child,
.lead {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 16px;
    line-height: 1.55;
}

.preview-stack {
    display: grid;
    gap: 14px;
}

.preview-card {
    max-width: 420px;
    min-height: 92px;
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
}

.preview-card span {
    width: 52px;
    height: 64px;
    grid-row: span 2;
    border-radius: var(--radius);
    background:
        linear-gradient(155deg, rgba(36, 107, 254, 0.74), transparent 46%),
        linear-gradient(20deg, rgba(75, 217, 111, 0.54), transparent 42%),
        #151a22;
}

.preview-card strong {
    align-self: end;
    font-size: 18px;
}

.preview-card small {
    align-self: start;
    color: rgba(255, 255, 255, 0.58);
    font-weight: 700;
}

.preview-grid {
    max-width: 420px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.video-tile {
    aspect-ratio: 9 / 14;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    background: #151a22;
    background-position: center;
    background-size: cover;
    overflow: hidden;
}

.video-tile.cover-tile {
    box-shadow: inset 0 -42px 54px rgba(0, 0, 0, 0.28);
}

.video-tile.green {
    background:
        linear-gradient(155deg, rgba(75, 217, 111, 0.52), transparent 38%),
        linear-gradient(20deg, rgba(36, 107, 254, 0.42), transparent 40%),
        #0f1419;
}

.video-tile.coral {
    background:
        linear-gradient(155deg, rgba(255, 198, 74, 0.72), transparent 42%),
        linear-gradient(20deg, rgba(255, 107, 74, 0.46), transparent 38%),
        #18130f;
}

.video-tile.blue {
    background:
        linear-gradient(155deg, rgba(36, 107, 254, 0.54), transparent 42%),
        linear-gradient(20deg, rgba(75, 217, 111, 0.34), transparent 38%),
        #151a22;
}

.form-panel {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px;
}

.form-card {
    width: min(100%, 520px);
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
}

.auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 4px;
    border-radius: 999px;
    background: var(--panel-soft);
}

.auth-tabs a {
    min-height: 40px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.auth-tabs a.active {
    background: #ffffff;
    color: var(--ink);
    box-shadow: 0 6px 18px rgba(29, 42, 62, 0.08);
}

.message {
    margin-top: 16px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 800;
}

.message.error {
    border: 1px solid rgba(255, 107, 74, 0.35);
    background: rgba(255, 107, 74, 0.12);
    color: #9c2f18;
}

.form-head {
    margin-top: 28px;
}

.form-head h2 {
    margin: 0 0 22px;
    font-size: 30px;
    line-height: 1.12;
}

.auth-form {
    display: grid;
    gap: 14px;
}

.auth-form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.auth-form input {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: #ffffff;
    color: var(--ink);
    outline: none;
    font-size: 15px;
    font-weight: 750;
}

.auth-form input:focus {
    border-color: var(--green-dark);
    box-shadow: 0 0 0 4px rgba(75, 217, 111, 0.18);
}

.password-field {
    position: relative;
    display: block;
}

.password-field input {
    padding-right: 52px;
}

.password-toggle {
    width: 38px;
    height: 38px;
    position: absolute;
    top: 6px;
    right: 6px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    background: var(--panel-soft);
    color: var(--ink);
    outline: none;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.password-toggle .icon-eye-off {
    display: none;
}

.password-toggle[aria-pressed="true"] .icon-eye {
    display: none;
}

.password-toggle[aria-pressed="true"] .icon-eye-off {
    display: block;
}

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

.consent-field {
    grid-template-columns: 20px 1fr;
    align-items: flex-start;
    gap: 10px;
    color: var(--muted);
    line-height: 1.45;
}

.consent-field input {
    width: 18px;
    height: 18px;
    min-height: 18px;
    margin: 1px 0 0;
    accent-color: var(--green);
}

.consent-field a {
    color: var(--green-dark);
    font-weight: 950;
}

.button {
    min-height: 50px;
    padding: 0 20px;
    border: 0;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #101318;
    background: var(--green);
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(75, 217, 111, 0.26);
}

.button[hidden] {
    display: none;
}

.button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.button.secondary {
    color: var(--ink);
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: none;
}

.button.danger-button {
    color: #9c2f18;
    border-color: rgba(156, 47, 24, 0.28);
}

.button.dark {
    color: #ffffff;
    background: #101318;
    box-shadow: none;
}

.dashboard-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 248px 1fr;
}

.sidebar {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px 22px;
    background: #101318;
    color: #ffffff;
}

.user-box {
    margin-top: 26px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
}

.user-name {
    font-size: 15px;
    font-weight: 800;
}

.user-role {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
}

.app-nav {
    margin-top: 30px;
    display: grid;
    gap: 8px;
}

.nav-item {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-radius: var(--radius);
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
    font-weight: 850;
}

.nav-item.active {
    color: #101318;
    background: var(--green);
}

.nav-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-item.active:hover {
    color: #101318;
    background: var(--green);
}

.logout {
    width: 100%;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    background: transparent;
    color: rgba(255, 255, 255, 0.76);
    font-weight: 800;
    cursor: pointer;
}

.dashboard-content {
    padding: 0;
    min-width: 0;
    overflow: auto;
}

.dashboard-content .lead {
    color: var(--muted);
}

.dashboard-content > .eyebrow,
.dashboard-content > h1,
.dashboard-content > .lead,
.page-head,
.message,
.table-shell {
    margin-left: 48px;
    margin-right: 48px;
}

.dashboard-content > .eyebrow {
    margin-top: 48px;
}

.page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 24px;
    margin-top: 48px;
}

.topbar {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 34px;
    background: rgba(255, 255, 255, 0.76);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.crumb {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.pill {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--ink);
    font-size: 13px;
    font-weight: 850;
}

.pill strong {
    color: var(--green-dark);
}

.prototype-content {
    padding: 28px 34px 34px;
}

.headline-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 28px;
    margin-bottom: 22px;
}

.headline-row h1,
.empty-create h1,
.modal-info h1 {
    margin: 0 0 8px;
    font-size: 34px;
    line-height: 1.08;
    letter-spacing: 0;
}

.empty-create {
    min-height: 610px;
    display: grid;
    align-content: center;
    gap: 24px;
}

.smart-input {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.smart-input.compact {
    grid-template-columns: 1fr;
    box-shadow: none;
}

.smart-input input,
.smart-input span {
    min-height: 54px;
    padding: 0 16px;
    border: 0;
    border-radius: 6px;
    color: #8a94a3;
    background: var(--panel-soft);
    font-size: 16px;
    font-weight: 800;
}

.smart-input span {
    display: flex;
    align-items: center;
}

.smart-input input {
    width: 100%;
    min-width: 0;
    display: block;
    color: var(--ink);
    outline: none;
}

.smart-input input::placeholder {
    color: #8a94a3;
}

.smart-input input:focus {
    box-shadow: 0 0 0 3px rgba(75, 217, 111, 0.18);
}

.product-strip {
    display: grid;
    grid-template-columns: 76px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
}

.product-photo {
    width: 76px;
    aspect-ratio: 9 / 16;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(255, 107, 74, 0.18), transparent 52%),
        linear-gradient(160deg, #eef3f8, #d3dde9);
}

.product-photo::before {
    content: "";
    position: absolute;
    left: 21px;
    top: 14px;
    width: 34px;
    height: 70px;
    border-radius: 20px 20px 10px 10px;
    background: #1d2c4c;
    box-shadow: 0 10px 0 #253d74;
}

.product-photo.real-product {
    background-size: cover;
    background-position: center;
}

.product-photo.real-product::before {
    content: none;
}

.product-title {
    margin-bottom: 6px;
    font-size: 18px;
    font-weight: 950;
}

.product-description {
    max-width: 760px;
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.45;
    font-weight: 500;
}

.mini-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mini-stat {
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--panel-soft);
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.inline-stat {
    display: inline-flex;
    margin-bottom: 14px;
}

.section {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.86);
}

.first-section {
    margin-top: 0;
}

.magic-section {
    border-color: rgba(75, 217, 111, 0.56);
    box-shadow: 0 22px 60px rgba(75, 217, 111, 0.12);
}

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

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.section-title h2,
.section h2,
.status-panel h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
}

.tabs {
    position: relative;
    display: flex;
    gap: 6px;
    padding: 4px;
    border-radius: 999px;
    background: var(--panel-soft);
}

.tab {
    position: relative;
    z-index: 1;
    min-height: 32px;
    padding: 8px 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

.tab.active {
    color: var(--ink);
}

.tab-slider {
    position: absolute;
    z-index: 0;
    top: 4px;
    left: 4px;
    width: var(--tab-slider-width, 0);
    height: var(--tab-slider-height, 32px);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(29, 42, 62, 0.08);
    transform: translateX(var(--tab-slider-x, 0));
    transition: transform 180ms ease, width 180ms ease;
}

.generation-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 18px;
}

.generating-videos {
    display: grid;
    grid-template-columns: repeat(3, minmax(128px, 160px));
    gap: 14px;
    align-items: start;
}

.generating-card {
    width: 100%;
    max-width: 160px;
    height: 268px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(16, 19, 24, 0.1), rgba(16, 19, 24, 0.7)),
        linear-gradient(145deg, #243b55, #111820);
}

.generating-card:nth-child(2) {
    background:
        linear-gradient(180deg, rgba(16, 19, 24, 0.04), rgba(16, 19, 24, 0.68)),
        linear-gradient(145deg, #79513a, #161411);
}

.generating-card:nth-child(3) {
    background:
        linear-gradient(180deg, rgba(16, 19, 24, 0.06), rgba(16, 19, 24, 0.68)),
        linear-gradient(145deg, #20443b, #111820);
}

.generating-center {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: start center;
    padding-top: 64px;
}

.progress-ring {
    --progress: 0%;
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(var(--green) 0 var(--progress), rgba(255, 255, 255, 0.22) var(--progress) 100%);
    color: #ffffff;
    font-size: 18px;
    font-weight: 950;
    box-shadow: inset 0 0 0 10px rgba(16, 19, 24, 0.35);
}

.generating-foot {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    color: #ffffff;
}

.generating-foot h3 {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.08;
}

.generating-foot p {
    margin: 0;
    font-size: 12px;
    line-height: 1.25;
}

.telegram-box {
    margin-top: 0;
    padding: 14px;
    border-radius: var(--radius);
    background: #101318;
    color: #ffffff;
}

.floating-generation-contact {
    position: fixed;
    z-index: 80;
    top: 18px;
    right: 18px;
    width: min(360px, calc(100vw - 36px));
    padding-right: 48px;
    box-shadow: 0 24px 70px rgba(16, 19, 24, 0.24);
}

.floating-generation-contact[hidden] {
    display: none;
}

.floating-contact-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
}

.floating-contact-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.telegram-box p {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.4;
}

.video-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.video-row.is-collapsed {
    overflow: hidden;
}

.video-row[hidden] {
    display: none;
}

.video-row.is-collapsed .video-card:nth-child(n+6) {
    display: none;
}

.video-row.is-expanded {
    overflow: visible;
}

.video-row.is-expanded .video-card {
    display: flex;
}

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

.exclusive-video-row.is-collapsed .video-card:nth-child(n+5) {
    display: none;
}

.video-card {
    margin-bottom: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
}

.video-card.is-generating {
    cursor: wait;
}

.video-card-button {
    width: 100%;
    padding: 0;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.video-card-button:hover {
    border-color: var(--green);
    box-shadow: 0 12px 30px rgba(75, 217, 111, 0.14);
}

.video-card-button.is-inactive {
    cursor: not-allowed;
}

.video-card-button.is-inactive:hover {
    border-color: var(--line);
    box-shadow: none;
}

.video-card-button.is-inactive .video-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(232, 237, 244, 0.58);
    backdrop-filter: grayscale(1);
}

.video-card-button.is-inactive .watermark,
.video-card-button.is-inactive .value-tag,
.video-card-button.is-inactive .play {
    z-index: 2;
}

.inactive-label {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 4;
    transform: translate(-50%, -50%);
    width: max-content;
    max-width: calc(100% - 20px);
    padding: 7px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(16, 19, 24, 0.72);
    font-size: 12px;
    font-weight: 950;
    text-align: center;
}

.video-thumb {
    aspect-ratio: 9 / 16;
    position: relative;
    flex: 0 0 auto;
    background:
        linear-gradient(155deg, rgba(36, 107, 254, 0.54), transparent 42%),
        linear-gradient(20deg, rgba(75, 217, 111, 0.34), transparent 38%),
        #151a22;
}

.video-thumb.alt {
    background:
        linear-gradient(155deg, rgba(255, 198, 74, 0.72), transparent 42%),
        linear-gradient(20deg, rgba(255, 107, 74, 0.46), transparent 38%),
        #18130f;
}

.video-thumb.dark {
    background:
        linear-gradient(155deg, rgba(75, 217, 111, 0.52), transparent 36%),
        linear-gradient(20deg, rgba(36, 107, 254, 0.42), transparent 40%),
        #0f1419;
}

.video-thumb.real-video {
    background-size: cover;
    background-position: center;
}

.generation-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, rgba(16, 19, 24, 0.1), rgba(16, 19, 24, 0.48));
}

.generation-overlay .progress-ring {
    box-shadow:
        inset 0 0 0 10px rgba(16, 19, 24, 0.36),
        0 12px 30px rgba(0, 0, 0, 0.24);
}

.play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}

.play::before {
    content: "";
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.play::after {
    content: "";
    position: absolute;
    margin-left: 4px;
    border-left: 13px solid #101318;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.watermark {
    position: absolute;
    right: 9px;
    top: 9px;
    padding: 4px 7px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(16, 19, 24, 0.48);
    font-size: 11px;
    font-weight: 900;
}

.value-tag {
    position: absolute;
    left: 9px;
    bottom: 9px;
    padding: 5px 8px;
    border-radius: 999px;
    color: #101318;
    background: var(--green);
    font-size: 11px;
    font-weight: 950;
}

.locked-tag {
    background: var(--yellow);
}

.card-body {
    padding: 10px 11px 11px;
}

.card-title {
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 950;
}

.card-meta {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
    font-weight: 750;
}

.empty-state {
    padding: 16px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    color: var(--muted);
    background: var(--panel-soft);
    font-size: 14px;
    font-weight: 850;
}

.expanded-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(130px, 1fr));
    gap: 12px;
}

.expanded-row .video-card {
    min-height: 0;
}

.expanded-row .video-thumb {
    min-height: 0;
}

.pagination-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.modal-page {
    position: relative;
    min-height: 860px;
}

.modal-backdrop.inline-modal {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(16, 19, 24, 0.56);
    backdrop-filter: blur(10px);
}

.video-detail-modal[hidden] {
    display: none;
}

.video-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: grid;
    place-items: center;
    padding: 28px;
    background: rgba(16, 19, 24, 0.56);
    backdrop-filter: blur(10px);
}

.video-detail-modal:has(.modal.is-source-preview) {
    align-items: start;
    padding-top: 28px;
}

.modal {
    width: min(100%, 1040px);
    min-height: 720px;
    position: relative;
    display: grid;
    grid-template-columns: 430px 1fr;
    overflow: hidden;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.38);
}

.modal.is-source-preview {
    width: min(430px, calc(100vw - 56px));
    max-width: calc(var(--source-video-max-height, 760px) * 9 / 16);
    min-height: 0;
    grid-template-columns: 1fr;
    background: transparent;
    overflow: visible;
    box-shadow: none;
}

.modal.is-source-preview .modal-info {
    display: none;
}

.modal.is-source-preview .modal-video {
    overflow: visible;
    aspect-ratio: 9 / 16;
    max-height: var(--source-video-max-height, calc(100vh - 180px));
    border-radius: 12px;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.38);
}

.modal.is-source-preview .modal-video-player video {
    overflow: hidden;
    border-radius: 12px;
}

.modal-video {
    position: relative;
    background:
        linear-gradient(180deg, rgba(16, 19, 24, 0.02), rgba(16, 19, 24, 0.72)),
        linear-gradient(145deg, #32445f, #101318);
}

.modal-video .watermark {
    right: 18px;
    top: 18px;
    font-size: 18px;
}

.modal-video-player {
    display: grid;
    place-items: center;
    padding: 0;
}

.modal-video-player video {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    border-radius: 0;
    background: #101318;
}

.modal-player-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 5;
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.modal-player-play[hidden] {
    display: none;
}

.modal-player-play span {
    width: 0;
    height: 0;
    margin-left: 5px;
    border-left: 20px solid #101318;
    border-top: 13px solid transparent;
    border-bottom: 13px solid transparent;
}

.source-video-actions {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 15px);
    z-index: 4;
    display: grid;
    gap: 10px;
}

.source-video-actions[hidden] {
    display: none;
}

.source-video-actions .button {
    width: 100%;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
}

.video-source-status {
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
    font-weight: 850;
    text-align: center;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.video-source-status:empty {
    display: none;
}

.video-source-status.is-success {
    color: #c7ffd7;
}

.video-source-status.is-error {
    color: #ffd2c7;
}

.modal-info {
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
}

.textarea {
    min-height: 118px;
    margin-top: 12px;
    padding: 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    color: var(--muted);
    background: var(--panel-soft);
    line-height: 1.45;
}

.edit-section {
    margin-top: 18px;
}

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

.video-detail-status {
    min-height: 22px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.video-detail-status.is-success {
    color: var(--green-dark);
}

.video-detail-status.is-error {
    color: #9c2f18;
}

.video-detail-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #ffffff;
}

.modal.is-source-preview .video-detail-close {
    top: 0;
    right: -52px;
    color: #ffffff;
    background: rgba(16, 19, 24, 0.54);
    border-color: rgba(255, 255, 255, 0.2);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.product-card {
    display: block;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
}

.product-card-link {
    color: inherit;
    text-decoration: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.product-card-link:hover {
    border-color: #c8ccd2;
    box-shadow: 0 10px 24px rgba(16, 19, 24, 0.08);
    transform: translateY(-1px);
}

.product-card .product-photo {
    width: 100%;
    margin: 0;
    border-radius: 0;
}

.product-card-body {
    padding: 14px;
}

.product-card-body h3,
.plan h3 {
    margin: 0 0 8px;
}

.numbers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.number-box {
    padding: 10px;
    border-radius: var(--radius);
    background: var(--panel-soft);
}

.number-box strong {
    display: block;
    font-size: 22px;
}

.number-box span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.products-limit {
    margin-top: 24px;
}

.limit-badge {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: var(--coral);
    color: #ffffff;
    font-size: 14px;
    font-weight: 950;
}

.billing-layout {
    display: grid;
    grid-template-columns: 1fr 410px;
    gap: 18px;
}

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

.plan {
    min-height: 250px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
}

.plan.featured {
    border-color: rgba(75, 217, 111, 0.7);
    box-shadow: 0 18px 50px rgba(75, 217, 111, 0.2);
}

.price {
    margin: 12px 0;
    font-size: 28px;
    font-weight: 950;
}

.status-panel {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.token-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.token-item {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
}

.full-width {
    width: 100%;
    margin-top: 18px;
}

.message.success {
    border: 1px solid rgba(75, 217, 111, 0.45);
    background: rgba(75, 217, 111, 0.14);
    color: var(--green-dark);
}

.table-shell {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.users-table {
    width: 100%;
    min-width: 960px;
    border-collapse: collapse;
}

.video-admin-table {
    min-width: 1640px;
}

.product-admin-table {
    min-width: 1780px;
}

.queue-table {
    min-width: 1280px;
}

.queue-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.queue-status {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--panel-soft);
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.queue-status-completed {
    background: rgba(75, 217, 111, 0.18);
    color: var(--green-dark);
}

.queue-status-running {
    background: rgba(255, 184, 77, 0.22);
    color: #9a5b00;
}

.queue-status-submitted {
    background: rgba(75, 115, 217, 0.12);
    color: #244899;
}

.queue-status-failed {
    background: rgba(229, 57, 53, 0.12);
    color: #b3261e;
}

.queue-status-waiting {
    background: rgba(75, 115, 217, 0.12);
    color: #244899;
}

.queue-error {
    max-width: 320px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.queue-result {
    max-width: 360px;
}

.queue-result summary {
    cursor: pointer;
    color: var(--green-dark);
    font-weight: 900;
}

.queue-result pre {
    max-height: 180px;
    overflow: auto;
    margin: 8px 0 0;
    padding: 10px;
    border-radius: 8px;
    background: var(--panel-soft);
    color: var(--ink);
    font-size: 12px;
    line-height: 1.4;
    white-space: pre-wrap;
}

.users-table th,
.users-table td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.users-table th {
    color: var(--muted);
    background: var(--panel-soft);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.users-table tr:last-child td {
    border-bottom: 0;
}

.users-table .create-row td {
    background: rgba(75, 217, 111, 0.08);
    border-bottom-color: var(--line-strong);
}

.users-table input,
.users-table select,
.users-table textarea {
    width: 100%;
    min-height: 40px;
    padding: 0 10px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: #ffffff;
    color: var(--ink);
    outline: none;
    font-size: 14px;
    font-weight: 750;
}

.users-table textarea {
    min-height: 74px;
    padding: 10px;
    resize: vertical;
    line-height: 1.35;
}

.users-table input:focus,
.users-table select:focus,
.users-table textarea:focus {
    border-color: var(--green-dark);
    box-shadow: 0 0 0 3px rgba(75, 217, 111, 0.18);
}

.users-table input[type="checkbox"] {
    width: 18px;
    min-height: 18px;
    padding: 0;
    accent-color: var(--green);
}

.flag-cell {
    text-align: center;
}

.status-dot {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--panel-soft);
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.status-dot.is-on {
    background: rgba(75, 217, 111, 0.18);
    color: var(--green-dark);
}

.search-select {
    position: relative;
}

.search-select-menu {
    display: none;
    position: fixed;
    z-index: 1000;
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(16, 19, 24, 0.14);
}

.search-select.is-open .search-select-menu {
    display: grid;
}

.search-select-menu button,
.search-select-empty {
    min-height: 38px;
    padding: 0 10px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.search-select-menu button:last-child,
.search-select-empty:last-child {
    border-bottom: 0;
}

.search-select-menu button:hover,
.search-select-menu button.is-active {
    background: rgba(75, 217, 111, 0.14);
}

.search-select-empty {
    display: flex;
    align-items: center;
    color: var(--muted);
    cursor: default;
}

.table-link {
    color: var(--green-dark);
    font-weight: 850;
    overflow-wrap: anywhere;
}

.inline-user-form {
    margin: 0;
}

.id-cell,
.muted-cell {
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
    white-space: nowrap;
}

.action-cell {
    width: 112px;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.icon-button {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 6px;
    display: inline-grid;
    place-items: center;
    color: #101318;
    background: var(--green);
    cursor: pointer;
}

.icon-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
}

.save-button {
    color: #ffffff;
    background: #101318;
}

.create-button {
    background: var(--green);
    color: #101318;
}

.delete-button {
    color: #ffffff;
    background: var(--coral);
}

.icon-button:disabled {
    cursor: not-allowed;
    opacity: 0.36;
}

.secondary-icon-button {
    color: var(--ink);
    background: #ffffff;
    border: 1px solid var(--line);
}

.preview-cell {
    width: 58px;
    min-width: 58px;
}

.video-admin-thumb-link {
    display: block;
    width: 42px;
    height: 58px;
    border-radius: 6px;
    overflow: hidden;
    background: #eef0f3;
}

.video-admin-thumb {
    display: block;
    width: 42px;
    height: 58px;
    border-radius: 6px;
    object-fit: cover;
    background: #eef0f3;
}

.video-admin-thumb.is-empty {
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
    border: 1px dashed var(--line);
}

.cover-cell {
    min-width: 230px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cover-cell .table-link {
    max-width: 180px;
}

.cover-button {
    flex: 0 0 40px;
}

.description-cell {
    min-width: 230px;
}

.admin-video-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
    margin: 0 48px 48px;
}

.admin-category-detail {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 18px;
    margin: 0 48px 48px;
}

.admin-video-preview,
.admin-video-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.admin-video-preview {
    padding: 16px;
}

.admin-video-preview video {
    display: block;
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border-radius: 6px;
    background: #101318;
}

.admin-video-card {
    display: grid;
    align-content: start;
    gap: 18px;
    padding: 18px;
}

.admin-video-card h2 {
    margin: 4px 0 0;
    font-size: 24px;
    line-height: 1.15;
}

.admin-category-card {
    min-width: 0;
}

.admin-video-flags,
.admin-video-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.admin-video-meta {
    display: grid;
    gap: 10px;
    margin: 0;
}

.admin-video-meta div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.admin-video-meta dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-video-meta dd {
    margin: 0;
    font-size: 13px;
    font-weight: 850;
    text-align: right;
}

.admin-video-form {
    display: grid;
    gap: 12px;
}

.admin-video-form label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 850;
}

.admin-video-form input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--green);
}

.admin-video-image-prep {
    grid-column: 1 / -1;
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.admin-category-pipeline {
    grid-column: auto;
}

.image-prep-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.image-prep-cover,
.image-prep-field {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel-soft);
}

.image-prep-cover img,
.image-prep-empty {
    width: 100%;
    aspect-ratio: 9 / 16;
    margin-top: 10px;
    border-radius: 6px;
}

.image-prep-cover img {
    display: block;
    object-fit: cover;
}

.image-prep-empty {
    display: grid;
    place-items: center;
    padding: 14px;
    color: var(--muted);
    background: #ffffff;
    border: 1px dashed var(--line-strong);
    font-size: 13px;
    font-weight: 850;
    text-align: center;
}

.image-prep-empty[hidden],
.image-prep-cover img[hidden],
.image-prep-product-preview img[hidden] {
    display: none;
}

.image-prep-field {
    display: grid;
    align-content: start;
    gap: 10px;
}

.image-prep-title,
.image-prep-field span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.image-prep-upload-trigger {
    cursor: pointer;
}

.image-prep-upload-trigger span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-bottom: 1px dashed var(--green-dark);
    color: var(--ink);
}

.image-prep-field input,
.image-prep-field textarea {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: #ffffff;
    color: var(--ink);
    outline: none;
    font: inherit;
    font-size: 14px;
    font-weight: 750;
}

.image-prep-field input {
    min-height: 44px;
    padding: 0 12px;
}

.image-prep-field input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.image-prep-field textarea {
    min-height: 140px;
    padding: 12px;
    resize: vertical;
    line-height: 1.4;
}

.image-prep-field input:focus,
.image-prep-field textarea:focus {
    border-color: var(--green-dark);
    box-shadow: 0 0 0 3px rgba(75, 217, 111, 0.18);
}

.image-prep-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.image-prep-product-preview img {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 6px;
    object-fit: cover;
    background: #ffffff;
}

.image-prep-product-preview .image-prep-empty {
    margin-top: 0;
}

.image-prep-prompts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.image-prep-prompt {
    width: 100%;
}

.image-prep-prompt textarea {
    min-height: 112px;
}

.image-prep-status {
    min-height: 18px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.image-prep-status.is-error {
    color: #9c2f18;
}

.image-prep-status.is-success {
    color: var(--green-dark);
}

.image-prep-video-result {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.image-prep-video-result[hidden] {
    display: none;
}

.image-prep-video-result video {
    display: block;
    width: min(360px, 100%);
    aspect-ratio: 9 / 16;
    margin-top: 10px;
    border-radius: 8px;
    background: #101318;
    object-fit: cover;
}

.image-prep-queue {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.image-prep-queue-head,
.image-prep-queue-list,
.image-prep-queue-item {
    display: flex;
    align-items: center;
}

.image-prep-queue-head {
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.image-prep-queue-list {
    flex-wrap: wrap;
    gap: 8px;
}

.image-prep-queue-item {
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
}

.cover-modal[hidden] {
    display: none;
}

.cover-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 28px;
}

.cover-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 19, 24, 0.62);
    backdrop-filter: blur(8px);
}

.cover-modal-panel {
    width: var(--cover-panel-width, min(100%, 980px));
    max-width: calc(100vw - 56px);
    position: relative;
    z-index: 1;
    display: grid;
    gap: 16px;
    padding: 20px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 32px 90px rgba(16, 19, 24, 0.34);
}

.cover-modal-head,
.cover-modal-actions,
.cover-preview-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cover-modal-head h2 {
    margin: 4px 0 0;
    font-size: 24px;
    line-height: 1.15;
}

.cover-video {
    width: 100%;
    max-height: var(--cover-video-max-height, 560px);
    object-fit: contain;
    border-radius: var(--radius);
    background: #101318;
}

.cover-preview {
    width: 140px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: var(--panel-soft);
}

.cover-help,
.cover-status {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.cover-status {
    min-height: 20px;
    flex: 1;
}

.cover-status.is-error {
    color: #9c2f18;
}

.cover-status.is-success {
    color: var(--green-dark);
}

.legal-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px;
}

.legal-document {
    width: min(100%, 720px);
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.legal-document .brand {
    margin-bottom: 48px;
}

.legal-document h1 {
    margin: 0 0 16px;
    font-size: 38px;
    line-height: 1.1;
}

.legal-document p:not(.eyebrow) {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

.legal-back {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    margin-top: 28px;
    color: var(--ink);
    font-weight: 950;
}

@media (max-width: 1280px) {
    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .video-row.is-collapsed .video-card:nth-child(n+5) {
        display: none;
    }

    .exclusive-video-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .exclusive-video-row.is-collapsed .video-card:nth-child(n+4) {
        display: none;
    }
}

@media (max-width: 1080px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .video-row.is-collapsed .video-card:nth-child(n+4) {
        display: none;
    }

    .exclusive-video-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .exclusive-video-row.is-collapsed .video-card:nth-child(n+3) {
        display: none;
    }
}

@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .brand-panel {
        min-height: auto;
        padding: 24px;
    }

    .brand-copy {
        margin-top: 46px;
    }

    .form-panel {
        min-height: auto;
        padding: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .dashboard-shell {
        grid-template-columns: 1fr;
    }

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

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

    .video-row.is-collapsed .video-card:nth-child(n+3) {
        display: none;
    }

    .admin-video-detail,
    .admin-category-detail {
        grid-template-columns: 1fr;
        margin-left: 24px;
        margin-right: 24px;
    }

    .image-prep-prompts,
    .image-prep-grid {
        grid-template-columns: 1fr;
    }

    .floating-generation-contact {
        top: 12px;
        right: 12px;
        width: calc(100vw - 24px);
    }

    .modal.is-source-preview .video-detail-close {
        top: -46px;
        right: 0;
    }

    .sidebar {
        min-height: auto;
        gap: 24px;
    }
}
