:root {
    color-scheme: dark;
    --bg: #050708;
    --panel: #0c1115;
    --line: rgba(255, 255, 255, 0.11);
    --text: #f7fafc;
    --muted: #9aa8b2;
    --blue: #0096ff;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
    overflow-x: clip;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: clip;
    color: var(--text);
    background:
        radial-gradient(circle at 76% 0, rgba(0, 150, 255, 0.16), transparent 34rem),
        var(--bg);
}

a { color: #8bd6ff; }

.skip-link {
    position: fixed;
    z-index: 200;
    top: 8px;
    left: -9999px;
    padding: 10px 14px;
    color: #00111d;
    background: #fff;
}

.skip-link:focus { left: 8px; }

.site-nav.vl-nav-unified,
main,
footer {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.site-nav.vl-nav-unified {
    margin-inline: auto !important;
}

main { padding: 76px 0; }

.kit-hero {
    max-width: 850px;
    padding: 46px 0 64px;
}

.eyebrow,
.step-label {
    margin: 0 0 12px;
    color: #8bd6ff;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

h1 {
    margin-bottom: 24px;
    font-size: clamp(2.7rem, 8vw, 6.8rem);
    line-height: 0.94;
    letter-spacing: -0.065em;
}

h2 {
    margin-bottom: 10px;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.kit-hero > p:last-child,
.kit-panel p,
.kit-section__heading > p {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.kit-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    gap: clamp(24px, 5vw, 64px);
    padding: clamp(24px, 5vw, 52px);
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--panel);
}

.kit-fields {
    display: grid;
    gap: 14px;
}

.kit-fields label {
    display: grid;
    gap: 7px;
    color: #dfe6eb;
    font-size: 0.86rem;
    font-weight: 750;
}

.kit-fields input {
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 9px;
    color: #fff;
    background: #07090b;
    font: inherit;
}

.kit-fields input:focus {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.field-help {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
}

.field-help.is-warning { color: #f6c86b; }

.kit-section { padding: 84px 0 0; }

.kit-section__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.kit-section__heading > p {
    max-width: 390px;
    margin-bottom: 0;
}

.asset-heading-tools {
    display: grid;
    justify-items: end;
    gap: 12px;
    max-width: 430px;
}

.asset-heading-tools > p {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.safe-zone-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #dfe6eb;
    font-size: 0.82rem;
    font-weight: 750;
    cursor: pointer;
}

.safe-zone-toggle input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--blue);
}

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

.asset-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel);
}

.asset-preview {
    position: relative;
}

.asset-card canvas {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    background: #050708;
}

.preview-safe-zone {
    position: absolute;
    inset: 12.5% 14.8% 15.6% 7.4%;
    display: none;
    border: 2px dashed rgba(139, 214, 255, 0.86);
    border-radius: 12px;
    box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.17);
    pointer-events: none;
}

.show-safe-zones .preview-safe-zone { display: flex; }

.preview-safe-zone span {
    position: absolute;
    top: -2px;
    right: -2px;
    transform: translateY(-100%);
    padding: 5px 9px;
    border-radius: 7px 7px 0 0;
    color: #00111d;
    background: rgba(139, 214, 255, 0.92);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.asset-card__footer {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.asset-primary-actions {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 8px;
}

.asset-card__footer strong,
.asset-card__footer span {
    display: block;
}

.asset-card__footer span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.82rem;
}

button {
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid rgba(0, 150, 255, 0.46);
    border-radius: 9px;
    color: #fff;
    background: rgba(0, 150, 255, 0.16);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

button:hover { background: rgba(0, 150, 255, 0.27); }

button:disabled {
    cursor: progress;
    opacity: 0.72;
}

.button-secondary {
    border-color: rgba(255, 255, 255, 0.17);
    background: rgba(255, 255, 255, 0.055);
}

.button-secondary:hover { background: rgba(255, 255, 255, 0.1); }

button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.export-more {
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.export-more summary {
    color: #cbd6dc;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}

.export-more[open] summary { margin-bottom: 10px; }

.export-more > div {
    display: grid;
    gap: 8px;
}

.export-more button {
    width: 100%;
    min-height: 40px;
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.045);
    font-size: 0.78rem;
}

.bulk-export {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
}

.bulk-export strong,
.bulk-export span {
    display: block;
}

.bulk-export span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.82rem;
}

.export-status {
    min-height: 24px;
    margin: 12px 0 0;
    color: #8bd6ff;
}

.export-status.is-error { color: #ff9f9f; }

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

.copy-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
}

.copy-card > span {
    color: #8bd6ff;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.copy-card p {
    min-height: 76px;
    margin: 14px 0 18px;
    color: #d5dde2;
}

.copy-status {
    min-height: 24px;
    margin: 14px 0 0;
    color: #8bd6ff;
}

.checklist {
    margin-top: 84px;
}

.checklist ol {
    display: grid;
    gap: 14px;
    margin: 0;
    padding-left: 24px;
}

.checklist li {
    padding-left: 6px;
    color: #d7dfe4;
}

footer {
    padding: 28px 0 50px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

html[data-theme="light"] .kit-panel,
html[data-theme="light"] .asset-card,
html[data-theme="light"] .bulk-export,
html[data-theme="light"] .copy-card {
    border-color: #d7e2ed;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(30, 73, 112, 0.07);
}

html[data-theme="light"] .kit-fields label,
html[data-theme="light"] .safe-zone-toggle,
html[data-theme="light"] .export-more summary,
html[data-theme="light"] .copy-card p,
html[data-theme="light"] .checklist li {
    color: #253b50;
}

html[data-theme="light"] .kit-fields input {
    color: #0b1725;
    border-color: #bdccda;
    background: #ffffff;
}

html[data-theme="light"] #kit button {
    color: #ffffff;
    border-color: #0073b7;
    background: #0073b7;
    box-shadow: 0 6px 16px rgba(0, 115, 183, 0.14);
}

html[data-theme="light"] #kit button:hover {
    color: #ffffff;
    border-color: #005f98;
    background: #005f98;
}

html[data-theme="light"] #kit .button-secondary {
    color: #005b8f;
    border-color: #78b8df;
    background: #e5f3ff;
    box-shadow: none;
}

html[data-theme="light"] #kit .button-secondary:hover {
    color: #ffffff;
    border-color: #005f98;
    background: #005f98;
}

html[data-theme="light"] .export-more {
    border-color: #d7e2ed;
}

html[data-theme="light"] #kit .export-more button {
    color: #005b8f;
    border-color: #a8cde5;
    background: #f2f8fd;
    box-shadow: none;
}

html[data-theme="light"] #kit .export-more button:hover {
    color: #ffffff;
    border-color: #005f98;
    background: #005f98;
}

html[data-theme="light"] #kit button:focus-visible {
    outline-color: #004f7e;
}

html[data-theme="light"] .export-status,
html[data-theme="light"] .copy-status,
html[data-theme="light"] .eyebrow,
html[data-theme="light"] .step-label,
html[data-theme="light"] .copy-card > span {
    color: #00699f;
}

@media (max-width: 780px) {
    main { padding-top: 40px; }

    .kit-panel,
    .asset-grid,
    .copy-grid {
        grid-template-columns: 1fr;
    }

    .kit-section__heading {
        display: block;
    }

    .kit-section__heading > p,
    .asset-heading-tools {
        margin-top: 14px;
    }

    .asset-heading-tools {
        justify-items: start;
        max-width: none;
    }

    .asset-card {
        max-width: 420px;
        margin-inline: auto;
    }

    .bulk-export {
        align-items: stretch;
        flex-direction: column;
    }

    .bulk-export button { width: 100%; }
}

@media (max-width: 430px) {
    .asset-primary-actions {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
