﻿:root {
    --bg: #071019;
    --surface: rgba(16, 24, 39, 0.84);
    --surface-strong: rgba(12, 20, 33, 0.96);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f7fbff;
    --muted: #96a7bc;
    --accent: #38bdf8;
    --accent-warm: #fb7185;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

html,
body {
    margin: 0;
    min-height: 100%;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 32%),
        radial-gradient(circle at 86% 8%, rgba(251, 113, 133, 0.18), transparent 24%),
        linear-gradient(180deg, #071019 0%, #0c1625 100%);
    color: var(--text);
    font-family: Bahnschrift, "Segoe UI Variable Text", "Trebuchet MS", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.site-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px;
}

.site-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(7, 16, 25, 0.7);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-warm));
    color: #04111b;
}

.brand-title {
    font-size: 1.2rem;
    font-weight: 800;
}

.brand-subtitle,
.section-copy,
.hero-copy,
.meta-grid,
.meta-stack,
.file-note,
.feature-list,
.log-shell,
.status-banner {
    color: var(--muted);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.site-nav a,
.ghost-button,
.primary-link,
.ghost-link,
.primary-button {
    border-radius: 999px;
    padding: 0.8rem 1.1rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    cursor: pointer;
    transition: transform 120ms ease, filter 120ms ease, background 120ms ease;
}

.primary-link,
.primary-button {
    background: linear-gradient(135deg, var(--accent), var(--accent-warm));
    color: #04111b;
    border-color: transparent;
    font-weight: 700;
}

.site-nav a:hover,
.ghost-button:hover,
.primary-link:hover,
.ghost-link:hover,
.primary-button:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.user-chip,
.meta-chip,
.eyebrow,
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.24);
    background: rgba(56, 189, 248, 0.08);
    color: #b8e7ff;
    font-size: 0.92rem;
}

.site-main {
    padding-top: 28px;
}

.hero-grid,
.stats-grid,
.info-grid,
.form-shell,
.two-column-shell,
.gallery-grid {
    display: grid;
    gap: 20px;
}

.hero-grid,
.info-grid,
.two-column-shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 22px 0;
}

.hero-card,
.panel-card,
.stat-card,
.gallery-card {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.hero-card,
.panel-card,
.stat-card {
    padding: 24px;
}

.hero-primary {
    min-height: 320px;
    background:
        radial-gradient(circle at 80% 20%, rgba(251, 113, 133, 0.18), transparent 24%),
        linear-gradient(160deg, rgba(56, 189, 248, 0.1), rgba(12, 20, 33, 0.96));
}

.hero-secondary,
.accent-card {
    background:
        radial-gradient(circle at 20% 0%, rgba(56, 189, 248, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(9, 15, 24, 0.94), rgba(15, 25, 39, 0.94));
}

h1,
h2,
h3,
p,
ul {
    margin-top: 0;
}

h1 {
    font-size: clamp(2.2rem, 4vw, 4.5rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

h2 {
    font-size: 1.5rem;
}

.page-heading {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    margin-bottom: 20px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.form-stack {
    display: grid;
    gap: 12px;
}

.text-input,
.text-area,
select,
textarea,
input {
    width: 100%;
    border-radius: 18px;
    border: 1.5px solid rgba(125, 211, 252, .28);
    padding: 0.95rem 1rem;
    background: rgba(4, 10, 22, .86);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 0 0 1px rgba(15, 23, 42, .55);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.text-input:hover,
.text-area:hover,
select:hover,
textarea:hover,
input:hover {
    border-color: rgba(125, 211, 252, .46);
    background: rgba(6, 14, 30, .92);
}

.text-input:focus,
.text-area:focus,
select:focus,
textarea:focus,
input:focus {
    outline: none;
    border-color: rgba(56, 189, 248, .95);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 0 3px rgba(14, 165, 233, .2);
}

.text-area {
    min-height: 120px;
}

.text-area.large {
    min-height: 180px;
}

label {
    font-size: 0.92rem;
    font-weight: 700;
    color: #d8e4ef;
}

.section-rule {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 22px 0;
}

.feature-list {
    padding-left: 1.1rem;
    line-height: 1.7;
}

.list-shell {
    display: grid;
    gap: 16px;
}

.job-card-header,
.meta-grid {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.meta-stack {
    display: grid;
    gap: 6px;
    text-align: right;
    font-size: 0.92rem;
}

.status-banner {
    padding: 0.85rem 1rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
}

.status-info {
    color: #b8e7ff;
    border-color: rgba(56, 189, 248, 0.24);
}

.status-error {
    color: #ffd3d8;
    border-color: rgba(251, 113, 133, 0.28);
}

.status-completed {
    color: #b5f5ca;
}

.status-running,
.status-queued {
    color: #f7d78e;
}

.status-failed,
.status-cancelled {
    color: #ffd3d8;
}

.log-shell {
    max-height: 360px;
    overflow: auto;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(4, 12, 20, 0.75);
    padding: 16px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.88rem;
    line-height: 1.6;
}

.gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-card {
    overflow: hidden;
}

.gallery-card img {
    width: 100%;
    display: block;
    background: #04111b;
}

.gallery-card figcaption {
    padding: 12px 16px 16px;
    color: var(--muted);
}

@media (max-width: 980px) {
    .hero-grid,
    .info-grid,
    .two-column-shell,
    .gallery-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .site-header,
    .page-heading,
    .job-card-header,
    .meta-grid {
        flex-direction: column;
        align-items: stretch;
    }

    .meta-stack {
        text-align: left;
    }
}
/* Live-site polish for AIPhotoJam */
.live-hero {
    align-items: stretch;
}

.hero-sales-card {
    position: relative;
    overflow: hidden;
}

.hero-sales-card::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -80px;
    width: 240px;
    height: 240px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(251, 113, 133, 0.28), transparent 68%);
    pointer-events: none;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.trust-row span,
.callout-row span,
.optional-note,
.queue-timeline span {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.055);
    border-radius: 999px;
    padding: 0.5rem 0.75rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.hero-showcase {
    display: grid;
    gap: 16px;
    overflow: hidden;
    background:
        radial-gradient(circle at 65% 8%, rgba(56, 189, 248, 0.24), transparent 28%),
        radial-gradient(circle at 30% 82%, rgba(251, 113, 133, 0.18), transparent 30%),
        rgba(11, 20, 32, 0.94);
}

.mock-sheet {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 26px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04));
    padding: 24px;
    min-height: 250px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.mock-product-orb {
    width: 120px;
    height: 120px;
    border-radius: 34px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(148, 163, 184, 0.18)),
        radial-gradient(circle at 30% 20%, rgba(56, 189, 248, 0.75), transparent 32%);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
    margin-bottom: 20px;
}

.mock-sheet-label {
    color: #b8e7ff;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.74rem;
    font-weight: 800;
}

.callout-row,
.mini-showcase-grid,
.example-grid,
.preset-preview-grid,
.compact-field-grid {
    display: grid;
    gap: 12px;
}

.callout-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 18px;
}

.mini-showcase-grid,
.example-grid,
.preset-preview-grid,
.compact-field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-sheet,
.example-grid div,
.preset-preview-grid div {
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    min-height: 76px;
}

.mini-sheet {
    display: flex;
    align-items: end;
    font-weight: 800;
}

.mini-sheet.luxury {
    background: linear-gradient(145deg, rgba(251, 191, 36, 0.16), rgba(255, 255, 255, 0.04));
}

.mini-sheet.technical {
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.16), rgba(255, 255, 255, 0.04));
}

.mini-sheet.social {
    background: linear-gradient(145deg, rgba(251, 113, 133, 0.18), rgba(255, 255, 255, 0.04));
}

.step-list {
    display: grid;
    gap: 14px;
    padding-left: 0;
    list-style: none;
    counter-reset: steps;
}

.step-list li {
    counter-increment: steps;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
}

.step-list li::before {
    content: counter(steps);
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #04111b;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent), var(--accent-warm));
}

.step-list li strong,
.step-list li span,
.example-grid strong,
.example-grid span,
.preset-preview-grid strong,
.preset-preview-grid span {
    display: block;
}

.step-list li span,
.example-grid span,
.preset-preview-grid span {
    color: var(--muted);
    margin-top: 4px;
}

.live-copy-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 20px;
}

.upload-box {
    border: 1px dashed rgba(148, 163, 184, 0.42);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 22px;
    padding: 18px;
    display: grid;
    gap: 8px;
    color: var(--muted);
}

.empty-state-card,
.empty-output-preview {
    text-align: center;
    display: grid;
    place-items: center;
    gap: 14px;
}

.empty-output-preview {
    min-height: 320px;
    border-radius: 24px;
    border: 1px dashed var(--line);
    padding: 28px;
    color: var(--muted);
}

.job-meta-grid {
    margin: 18px 0 4px;
}

.queue-timeline {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 18px 0;
}

.queue-timeline span.active {
    color: #04111b;
    background: linear-gradient(135deg, var(--accent), var(--accent-warm));
    border-color: transparent;
    font-weight: 800;
}

@media (max-width: 720px) {
    .mini-showcase-grid,
    .example-grid,
    .preset-preview-grid,
    .compact-field-grid,
    .callout-row {
        grid-template-columns: 1fr;
    }

    .live-copy-section {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Builder layout refinement */
*,
*::before,
*::after {
    box-sizing: border-box;
}

.builder-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    margin-bottom: 24px;
}

.builder-hero h1 {
    max-width: 980px;
    margin-bottom: 16px;
}

.builder-hero-copy .section-copy {
    max-width: 850px;
    font-size: 1.05rem;
}

.builder-hero-side {
    display: grid;
    gap: 12px;
    justify-items: end;
}

.signed-in-chip {
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.builder-steps-mini {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.builder-steps-mini span {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.055);
    color: var(--muted);
    border-radius: 999px;
    padding: 0.5rem 0.7rem;
    font-size: 0.82rem;
    font-weight: 700;
}

.builder-workspace {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(520px, 1.3fr);
    gap: 22px;
    align-items: start;
}

.aj-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0 2rem;
    color: rgba(226, 232, 240, 0.68);
    font-size: 0.92rem;
}

.aj-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.aj-footer a {
    color: rgba(226, 232, 240, 0.82);
    text-decoration: none;
}

.aj-footer a:hover {
    color: #fff;
}

.builder-card-header,
.builder-section-title {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
}

.builder-card-header h2,
.builder-section-title h3 {
    margin-bottom: 6px;
}

.product-upload-dropzone {
    position: relative;
    min-height: 340px;
    margin: 20px 0 16px;
    border-radius: 28px;
    border: 1.5px dashed rgba(148, 163, 184, 0.42);
    background:
        radial-gradient(circle at 50% 10%, rgba(56, 189, 248, 0.14), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
    display: grid;
    place-items: center;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.product-upload-dropzone:hover {
    border-color: rgba(56, 189, 248, 0.85);
    transform: translateY(-1px);
    background:
        radial-gradient(circle at 50% 10%, rgba(56, 189, 248, 0.2), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03));
}

.product-upload-dropzone.is-loading {
    cursor: wait;
    border-color: rgba(125, 211, 252, 0.86);
}

.product-upload-dropzone.is-loading .dropzone-file-input {
    pointer-events: none;
}

.product-upload-dropzone img {
    width: 100%;
    height: 100%;
    max-height: 520px;
    object-fit: contain;
    display: block;
    padding: 18px;
}

.dropzone-file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 4;
}

.dropzone-overlay {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 3;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 18px;
    padding: 12px 14px;
    background: rgba(4, 12, 20, 0.82);
    backdrop-filter: blur(12px);
    display: grid;
    gap: 4px;
}

.dropzone-overlay strong {
    color: var(--text);
}

.dropzone-overlay span,
.dropzone-existing-file {
    color: var(--muted);
    font-size: 0.92rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropzone-existing-file {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 3;
    border-radius: 16px;
    padding: 10px 12px;
    background: rgba(4, 12, 20, 0.72);
}

.upload-preview-loading {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    padding: 24px;
    color: var(--text);
    text-align: center;
    background: rgba(4, 12, 20, 0.74);
    backdrop-filter: blur(8px);
}

.upload-preview-loading strong {
    font-size: 1.05rem;
}

.upload-preview-loading span:last-child {
    color: var(--muted);
    font-size: 0.92rem;
}

.upload-preview-loading.compact {
    inset: auto 18px 18px auto;
    min-width: 220px;
    max-width: calc(100% - 36px);
    border: 1px solid rgba(125, 211, 252, 0.28);
    border-radius: 18px;
    grid-template-columns: auto 1fr;
    place-items: center start;
    align-content: center;
    gap: 4px 10px;
    padding: 12px 14px;
    text-align: left;
    background: rgba(4, 12, 20, 0.9);
}

.upload-preview-loading.compact span:last-child {
    grid-column: 2;
}

.upload-spinner {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 3px solid rgba(226, 232, 240, 0.26);
    border-top-color: #f8fafc;
    animation: upload-spin 0.82s linear infinite;
}

.upload-preview-loading.compact .upload-spinner {
    grid-row: span 2;
    width: 30px;
    height: 30px;
    border-width: 2px;
}

@keyframes upload-spin {
    to {
        transform: rotate(360deg);
    }
}

.product-preview-empty {
    text-align: center;
    display: grid;
    justify-items: center;
    gap: 10px;
    color: var(--muted);
    padding: 28px;
}

.product-preview-empty strong {
    color: var(--text);
    font-size: 1.12rem;
}

.upload-divider {
    color: rgba(226, 232, 240, 0.64);
    font-size: 0.94rem;
    font-weight: 700;
}

.upload-secondary-action {
    color: rgba(248, 250, 252, 0.92);
    font-size: 1rem;
    font-weight: 800;
}

.upload-desktop-hint {
    display: none;
    color: rgba(186, 230, 253, 0.82);
    font-size: 0.9rem;
    font-weight: 700;
}

@media (hover: hover) and (pointer: fine) {
    .upload-desktop-hint {
        display: inline;
    }
}

.check-row {
    display: flex;
    align-items: start;
    gap: 0.65rem;
    color: var(--muted);
}

.check-row input {
    margin-top: 0.2rem;
    accent-color: #8b5cf6;
}

.check-row a {
    color: #c4b5fd;
}

.login-form-card {
    display: flex;
}

.login-form-shell {
    width: 100%;
    display: grid;
    gap: 1rem;
    align-content: center;
    min-height: 100%;
}

.login-form-shell > .eyebrow {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #9bd5ff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.cookie-notice-card {
    display: grid;
    gap: 0.65rem;
    padding: 1rem 1.05rem;
    border-radius: 18px;
    border: 1px solid rgba(125, 211, 252, 0.22);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(15, 23, 42, 0.24));
}

.cookie-notice-card .section-copy,
.remembered-email-note {
    margin: 0;
}

.cookie-notice-card strong,
.remembered-email-note {
    color: rgba(224, 242, 254, 0.95);
}

.cookie-notice-actions {
    margin-top: 0;
}

.builder-tip-card {
    margin-top: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.045);
    display: grid;
    gap: 4px;
}

.builder-tip-card span {
    color: var(--muted);
    line-height: 1.45;
}

.builder-form-card {
    overflow: hidden;
}

.builder-form-stack {
    gap: 16px;
}

.builder-edit-context {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    border: 1px solid rgba(125, 211, 252, .22);
    background: linear-gradient(135deg, rgba(14, 165, 233, .10), rgba(15, 23, 42, .30));
}

.builder-edit-context h3 {
    margin: .35rem 0 .4rem;
}

.builder-edit-link {
    white-space: nowrap;
}

.builder-content-panel {
    margin-top: .2rem;
}

.builder-content-help {
    padding: 0 .95rem .4rem;
}

.content-guidance-list {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: .38rem;
    color: rgba(203, 213, 225, .78);
}

.content-guidance-list strong {
    color: rgba(248, 250, 252, .95);
}

.field-grid {
    display: grid;
    gap: 14px;
}

.two-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.align-end {
    align-items: end;
}

.description-area {
    min-height: 96px;
}

.prompt-area {
    min-height: 132px;
}

.builder-submit-grid {
    grid-template-columns: minmax(0, 1fr) auto;
}

.style-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.style-card {
    text-align: left;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    cursor: pointer;
    min-height: 104px;
    transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.style-card:hover,
.style-card.selected {
    transform: translateY(-1px);
    border-color: rgba(56, 189, 248, 0.58);
    background:
        linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(251, 113, 133, 0.08)),
        rgba(255, 255, 255, 0.055);
}

.style-card strong,
.style-card span {
    display: block;
}

.style-card span {
    color: var(--muted);
    margin-top: 7px;
    line-height: 1.35;
}

.builder-submit {
    min-height: 52px;
    width: 100%;
}

.builder-submit-stack {
    display: grid;
    gap: 8px;
    align-self: end;
}

.queue-limit-message {
    margin: 0;
    color: #fecaca;
    font-size: .85rem;
    line-height: 1.35;
}

.text-input,
.text-area,
select,
textarea,
input {
    min-width: 0;
}

@media (max-width: 1080px) {
    .builder-workspace {
        grid-template-columns: 1fr;
    }

    .product-preview-frame {
        min-height: 280px;
    }
}

@media (max-width: 760px) {
    .builder-hero {
        grid-template-columns: 1fr;
    }

    .builder-hero-side {
        justify-items: start;
    }

    .builder-steps-mini {
        justify-content: flex-start;
    }

    .two-fields,
    .style-card-grid {
        grid-template-columns: 1fr;
    }
}


/* AIPhotoJam example gallery */
.examples {
    margin-top: 28px;
    padding: 32px;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 28px;
    background: rgba(16, 24, 39, .72);
    box-shadow: 0 24px 80px rgba(0,0,0,.26);
}
.section-kicker {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(6, 182, 212, .12);
    border: 1px solid rgba(6, 182, 212, .28);
    color: #A5F3FC;
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 10px;
}
.examples h2 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -1.3px;
}
.section-copy {
    max-width: 760px;
    color: #94A3B8;
    line-height: 1.6;
    margin: 0 0 22px;
}
.example-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.example-card {
    background: rgba(11, 18, 34, .72);
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 24px;
    padding: 16px;
}
.example-card strong {
    display: block;
    margin: 14px 0 4px;
    font-size: 16px;
}
.example-card small {
    color: #94A3B8;
}
.example-sheet {
    min-height: 360px;
    border-radius: 20px;
    padding: 22px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.example-sheet::after {
    content: "";
    position: absolute;
    right: 22px;
    bottom: 72px;
    width: 38%;
    height: 46%;
    border-radius: 28px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.16);
}
.example-tag {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 18px;
}
.example-sheet h3 {
    margin: 0 0 10px;
    font-size: 30px;
    letter-spacing: -1px;
    line-height: 1.05;
}
.example-sheet p {
    max-width: 58%;
    color: rgba(255,255,255,.78);
    line-height: 1.45;
    font-size: 14px;
}
.example-lines {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.example-lines span {
    height: 42px;
    border-radius: 13px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.12);
}
.example-skincare .example-sheet {
    background:
        radial-gradient(circle at 78% 26%, rgba(255,255,255,.38), transparent 16%),
        linear-gradient(135deg, #f5eadc, #b88965);
    color: #2f1f19;
}
.example-skincare .example-sheet p {
    color: rgba(47,31,25,.78);
}
.example-tech .example-sheet {
    background:
        radial-gradient(circle at 80% 30%, rgba(6,182,212,.24), transparent 28%),
        linear-gradient(135deg, #020617, #172554);
}
.example-food .example-sheet {
    background:
        radial-gradient(circle at 80% 18%, rgba(34,197,94,.18), transparent 22%),
        linear-gradient(135deg, #1c120b, #5f341e);
}
.example-cta {
    margin-top: 22px;
    display: flex;
    justify-content: center;
}
@media (max-width: 980px) {
    .example-grid {
        grid-template-columns: 1fr;
    }
    .example-sheet {
        min-height: 300px;
    }
}


/* =========================================================
   AIPhotoJam landing redesign — cohesive SaaS marketing page
   ========================================================= */

:root {
    --aj-bg: #070a12;
    --aj-panel: rgba(14, 22, 36, 0.78);
    --aj-panel-strong: rgba(16, 24, 39, 0.92);
    --aj-line: rgba(148, 163, 184, 0.16);
    --aj-text: #f8fafc;
    --aj-muted: #94a3b8;
    --aj-soft: #cbd5e1;
    --aj-purple: #7c3aed;
    --aj-cyan: #06b6d4;
    --aj-pink: #fb7185;
    --aj-shadow: 0 26px 90px rgba(0,0,0,.36);
}

body {
    background:
        radial-gradient(circle at 18% 0%, rgba(124, 58, 237, .28), transparent 34%),
        radial-gradient(circle at 88% 10%, rgba(6, 182, 212, .18), transparent 28%),
        linear-gradient(180deg, #070a12 0%, #0b1020 100%);
}

.site-shell {
    max-width: 1240px;
    padding: 22px;
}

.site-header {
    border-radius: 22px;
    background: rgba(7, 10, 18, 0.66);
    box-shadow: none;
    border-color: var(--aj-line);
}

.brand-mark {
    background: linear-gradient(135deg, var(--aj-purple), var(--aj-cyan));
    color: white;
}

.brand-subtitle {
    color: var(--aj-muted);
}

.primary-link,
.primary-button,
.btn-primary {
    background: linear-gradient(135deg, var(--aj-purple), var(--aj-cyan));
    color: white !important;
    border-color: transparent;
    font-weight: 800;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .92rem 1.2rem;
}

.btn-secondary {
    border-radius: 999px;
    padding: .92rem 1.2rem;
    border: 1px solid var(--aj-line);
    background: rgba(255,255,255,.06);
    color: var(--aj-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.landing-v2 {
    display: grid;
    gap: 34px;
}

.landing-hero-v2 {
    min-height: calc(100vh - 170px);
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
    gap: 34px;
    align-items: center;
    padding: 42px 0 18px;
}

.hero-copy-v2 h1 {
    font-size: clamp(3rem, 7vw, 6.2rem);
    line-height: .9;
    letter-spacing: -.075em;
    margin-bottom: 22px;
}

.hero-copy-v2 .sub {
    max-width: 650px;
    font-size: clamp(1.05rem, 1.5vw, 1.32rem);
    line-height: 1.62;
    color: var(--aj-soft);
}

.badge,
.section-kicker {
    display: inline-flex;
    width: max-content;
    padding: .52rem .78rem;
    border-radius: 999px;
    background: rgba(124, 58, 237, .12);
    border: 1px solid rgba(124, 58, 237, .32);
    color: #ddd6fe;
    font-size: .86rem;
    font-weight: 900;
    margin-bottom: 16px;
}

.cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 26px 0 18px;
}

.hero-proof-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-proof-row span {
    color: var(--aj-muted);
    border: 1px solid var(--aj-line);
    background: rgba(255,255,255,.045);
    border-radius: 999px;
    padding: .56rem .78rem;
    font-size: .9rem;
}

.hero-transform-card {
    position: relative;
    min-height: 620px;
    border: 1px solid var(--aj-line);
    border-radius: 34px;
    background:
        radial-gradient(circle at 72% 12%, rgba(6, 182, 212, .19), transparent 25%),
        radial-gradient(circle at 26% 84%, rgba(124, 58, 237, .20), transparent 32%),
        rgba(16, 24, 39, .68);
    box-shadow: var(--aj-shadow);
    padding: 24px;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr auto 1.2fr;
    gap: 16px;
}

.transform-label {
    color: var(--aj-muted);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .74rem;
}

.input-photo-card {
    border-radius: 26px;
    border: 1px dashed rgba(148, 163, 184, .32);
    background: rgba(7, 10, 18, .56);
    display: grid;
    place-items: center;
    gap: 12px;
    padding: 26px;
    color: var(--aj-muted);
}

.product-bottle,
.raw-product {
    width: 96px;
    height: 150px;
    border-radius: 28px 28px 18px 18px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(203,213,225,.82)),
        radial-gradient(circle at 35% 25%, rgba(6,182,212,.7), transparent 32%);
    box-shadow: 0 24px 60px rgba(0,0,0,.32);
    position: relative;
}

.product-bottle::before,
.raw-product::before {
    content: "";
    position: absolute;
    left: 31px;
    right: 31px;
    top: -22px;
    height: 28px;
    border-radius: 10px 10px 4px 4px;
    background: #e2e8f0;
}

.transform-arrow {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    justify-self: center;
    background: linear-gradient(135deg, var(--aj-purple), var(--aj-cyan));
    color: white;
    font-size: 1.7rem;
    font-weight: 900;
    box-shadow: 0 16px 42px rgba(124,58,237,.28);
}

.output-sheet-card {
    position: relative;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,.13);
    background:
        radial-gradient(circle at 82% 26%, rgba(255,255,255,.13), transparent 22%),
        linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.045));
    padding: 28px;
    overflow: hidden;
    min-height: 250px;
}

.sheet-topline,
.mini-kicker {
    display: inline-flex;
    padding: .38rem .62rem;
    border-radius: 999px;
    background: rgba(6,182,212,.13);
    color: #a5f3fc;
    font-size: .74rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 14px;
}

.output-sheet-card h3,
.finished-sheet h3 {
    margin-bottom: 10px;
    font-size: 2.05rem;
    letter-spacing: -.05em;
}

.output-sheet-card p,
.finished-sheet p {
    max-width: 58%;
    color: var(--aj-soft);
    line-height: 1.5;
}

.sheet-callouts {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.sheet-callouts span {
    border-radius: 14px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.10);
    padding: .72rem;
    color: var(--aj-soft);
    font-size: .84rem;
    font-weight: 800;
}

.sheet-product-orb {
    position: absolute;
    right: 30px;
    top: 58px;
    width: 34%;
    height: 42%;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(124,58,237,.8), rgba(6,182,212,.38));
    border: 1px solid rgba(255,255,255,.16);
}

.before-after-section,
.examples-v2,
.audience-section,
.how-v2,
.final-cta-section {
    border: 1px solid var(--aj-line);
    border-radius: 32px;
    background: rgba(16, 24, 39, .62);
    box-shadow: 0 20px 70px rgba(0,0,0,.22);
    padding: clamp(24px, 4vw, 42px);
}

.section-heading {
    max-width: 850px;
    margin-bottom: 28px;
}

.section-heading h2,
.final-cta-section h2 {
    font-size: clamp(2rem, 4vw, 3.45rem);
    line-height: 1;
    letter-spacing: -.055em;
    margin-bottom: 14px;
}

.section-heading p,
.final-cta-section p {
    color: var(--aj-muted);
    line-height: 1.62;
    font-size: 1.05rem;
}

.before-after-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 18px;
    align-items: stretch;
}

.before-panel,
.after-panel,
.audience-grid article,
.steps-v2 > div,
.example-card,
.featured-sheet {
    border: 1px solid var(--aj-line);
    border-radius: 26px;
    background: rgba(7, 10, 18, .42);
    padding: 20px;
}

.panel-label {
    display: inline-flex;
    padding: .42rem .66rem;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    color: var(--aj-muted);
    font-weight: 900;
    margin-bottom: 16px;
}

.panel-label.highlight {
    background: rgba(6,182,212,.12);
    color: #a5f3fc;
}

.raw-photo-frame,
.finished-sheet-frame {
    min-height: 260px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
}

.raw-photo-frame {
    border: 1px dashed rgba(148,163,184,.28);
    background: rgba(255,255,255,.035);
}

.finished-sheet-frame {
    background:
        radial-gradient(circle at 84% 16%, rgba(6,182,212,.15), transparent 24%),
        rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.08);
    padding: 18px;
}

.finished-sheet {
    width: 100%;
    min-height: 230px;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
    padding: 22px;
    position: relative;
    overflow: hidden;
}

.mini-bars {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.mini-bars span {
    height: 42px;
    border-radius: 12px;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.09);
}

.featured-example-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    gap: 18px;
}

.supporting-examples {
    display: grid;
    gap: 18px;
}

.example-card {
    padding: 16px;
}

.example-card strong,
.featured-sheet strong {
    display: block;
    margin-top: 14px;
}

.example-card small {
    color: var(--aj-muted);
}

.example-sheet {
    min-height: 360px;
    border-radius: 22px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.10);
}

.example-sheet.large {
    min-height: 520px;
}

.example-sheet.compact {
    min-height: 235px;
}

.example-tag {
    display: inline-flex;
    padding: .46rem .68rem;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    font-size: .78rem;
    font-weight: 900;
    margin-bottom: 18px;
}

.example-sheet h3 {
    font-size: clamp(1.6rem, 3vw, 3.1rem);
    letter-spacing: -.055em;
    line-height: 1;
    margin-bottom: 12px;
}

.example-sheet p {
    max-width: 58%;
    line-height: 1.48;
}

.example-lines {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.example-lines span {
    height: 52px;
    border-radius: 15px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.12);
}

.example-skincare .example-sheet {
    background:
        radial-gradient(circle at 78% 25%, rgba(255,255,255,.40), transparent 16%),
        linear-gradient(135deg, #f5eadc, #b88965);
    color: #2f1f19;
}

.example-skincare .example-sheet p {
    color: rgba(47,31,25,.78);
}

.example-tech .example-sheet {
    background:
        radial-gradient(circle at 80% 30%, rgba(6,182,212,.24), transparent 28%),
        linear-gradient(135deg, #020617, #172554);
}

.example-food .example-sheet {
    background:
        radial-gradient(circle at 80% 18%, rgba(34,197,94,.18), transparent 22%),
        linear-gradient(135deg, #1c120b, #5f341e);
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.audience-grid h3,
.steps-v2 strong {
    font-size: 1.05rem;
}

.audience-grid p,
.steps-v2 p,
.before-panel p,
.after-panel p {
    color: var(--aj-muted);
    line-height: 1.55;
}

.steps-v2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.final-cta-section {
    text-align: center;
    padding: clamp(34px, 6vw, 72px);
    background:
        radial-gradient(circle at 50% 0%, rgba(124,58,237,.22), transparent 38%),
        rgba(16, 24, 39, .72);
}

.final-cta-section p {
    margin-left: auto;
    margin-right: auto;
    max-width: 620px;
    margin-bottom: 24px;
}

@media (max-width: 1040px) {
    .landing-hero-v2,
    .before-after-grid,
    .featured-example-grid {
        grid-template-columns: 1fr;
    }

    .hero-transform-card {
        min-height: auto;
    }

    .audience-grid,
    .steps-v2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .site-shell {
        padding: 14px;
    }

    .site-header {
        align-items: stretch;
    }

    .site-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .landing-hero-v2 {
        padding-top: 24px;
    }

    .hero-copy-v2 h1 {
        font-size: clamp(2.6rem, 13vw, 4rem);
    }

    .hero-transform-card,
    .before-after-section,
    .examples-v2,
    .audience-section,
    .how-v2,
    .final-cta-section {
        border-radius: 24px;
    }

    .sheet-callouts,
    .example-lines {
        grid-template-columns: 1fr;
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        margin-top: 18px;
    }

    .output-sheet-card p,
    .finished-sheet p,
    .example-sheet p {
        max-width: 100%;
    }

    .sheet-product-orb {
        display: none;
    }

    .audience-grid,
    .steps-v2 {
        grid-template-columns: 1fr;
    }
}


/* Real example imagery for landing page */
.examples-v3 {
    overflow: hidden;
}

.real-example-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr);
    grid-auto-rows: auto;
    gap: 18px;
}

.real-example-card {
    border: 1px solid var(--aj-line);
    border-radius: 26px;
    background: rgba(7, 10, 18, .45);
    padding: 14px;
    overflow: hidden;
}

.real-example-card.featured {
    grid-row: span 3;
}

.real-example-card img {
    width: 100%;
    display: block;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.10);
    background: #0b1020;
    box-shadow: 0 18px 48px rgba(0,0,0,.24);
}

.real-example-card:not(.featured) {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 14px;
    align-items: center;
}

.real-example-card:not(.featured) img {
    height: 190px;
    object-fit: cover;
    object-position: top;
}

.real-example-card div {
    padding: 12px 4px 4px;
}

.real-example-card strong {
    display: block;
    color: var(--aj-text);
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.real-example-card span {
    color: var(--aj-muted);
    line-height: 1.4;
}

.example-footer-cta {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

@media (max-width: 980px) {
    .real-example-grid {
        grid-template-columns: 1fr;
    }

    .real-example-card.featured {
        grid-row: auto;
    }

    .real-example-card:not(.featured) {
        grid-template-columns: 1fr;
    }

    .real-example-card:not(.featured) img {
        height: auto;
        object-fit: contain;
    }
}

/* === AIPhotoJam latest layout patch BEGIN === */
:root {
    --aj-bg0: #070711;
    --aj-bg1: #0d1020;
    --aj-card: rgba(15, 23, 42, .72);
    --aj-card-strong: rgba(15, 23, 42, .92);
    --aj-border: rgba(148, 163, 184, .16);
    --aj-text2: #f8fafc;
    --aj-muted2: #94a3b8;
    --aj-soft2: #cbd5e1;
    --aj-purple2: #8b5cf6;
    --aj-cyan2: #06b6d4;
    --aj-pink2: #fb7185;
}

html, body {
    background:
        radial-gradient(circle at 18% -4%, rgba(139, 92, 246, .30), transparent 34%),
        radial-gradient(circle at 88% 2%, rgba(6, 182, 212, .20), transparent 28%),
        linear-gradient(180deg, var(--aj-bg0), var(--aj-bg1));
    color: var(--aj-text2);
}

.aj-shell,
.site-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 18px;
}

.aj-main,
.site-main { padding-top: 24px; }

.aj-topnav,
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    border: 1px solid var(--aj-border);
    background: rgba(7, 7, 17, .68);
    backdrop-filter: blur(18px);
    border-radius: 24px;
    padding: 14px 16px;
    box-shadow: 0 22px 70px rgba(0,0,0,.24);
}

.aj-brand,
.site-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.aj-brand-mark,
.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #020617;
    color: white;
    font-weight: 950;
    letter-spacing: -.04em;
    box-shadow: 0 0 0 1px rgba(125, 211, 252, .22), 0 10px 26px rgba(14, 165, 233, .18);
}

.aj-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.aj-brand strong,
.brand-title { display: block; font-size: 1.05rem; font-weight: 950; }
.aj-brand small,
.brand-subtitle { display: block; color: var(--aj-muted2); font-size: .86rem; }

.aj-navlinks,
.site-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.aj-navlinks > a:not(.aj-btn),
.site-nav > a:not(.primary-link) {
    color: var(--aj-soft2);
    border: 1px solid transparent;
    border-radius: 999px;
    padding: .72rem .88rem;
}

.aj-navlinks > a:not(.aj-btn):hover,
.site-nav > a:not(.primary-link):hover {
    border-color: var(--aj-border);
    background: rgba(255,255,255,.055);
}

.aj-user-chip,
.user-chip {
    display: inline-block;
    min-width: 0;
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 1px solid rgba(6,182,212,.25);
    background: rgba(6,182,212,.08);
    color: #a5f3fc;
    border-radius: 999px;
    padding: .62rem .78rem;
    font-size: .88rem;
}

.aj-current-plan-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    border: 1px solid rgba(139, 92, 246, .42);
    background: linear-gradient(135deg, rgba(139, 92, 246, .16), rgba(6, 182, 212, .10));
    color: #e0f2fe;
    border-radius: 999px;
    padding: .58rem .78rem;
    font-size: .82rem;
    line-height: 1;
    white-space: nowrap;
}

.aj-current-plan-chip:hover {
    border-color: rgba(125, 211, 252, .6);
    background: linear-gradient(135deg, rgba(139, 92, 246, .22), rgba(6, 182, 212, .16));
}

.aj-current-plan-chip span {
    color: rgba(203, 213, 225, .82);
}

.aj-current-plan-chip strong {
    color: #ffffff;
    font-weight: 950;
}

.aj-current-plan-chip em {
    padding-left: .18rem;
    color: #a5f3fc;
    font-style: normal;
    font-weight: 850;
}

.aj-page { display: grid; gap: 28px; }

.aj-hero-v4 {
    min-height: calc(100vh - 160px);
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
    gap: 32px;
    align-items: center;
    padding: 28px 0 8px;
}

.aj-hero-copy h1 {
    font-size: clamp(3rem, 7.4vw, 6.4rem);
    line-height: .88;
    letter-spacing: -.078em;
    margin: 0 0 22px;
}

.aj-lead {
    max-width: 680px;
    color: var(--aj-soft2);
    font-size: clamp(1.05rem, 1.4vw, 1.28rem);
    line-height: 1.64;
}

.aj-badge,
.aj-kicker {
    display: inline-flex;
    width: max-content;
    padding: .52rem .78rem;
    border-radius: 999px;
    border: 1px solid rgba(139, 92, 246, .35);
    background: rgba(139, 92, 246, .12);
    color: #ddd6fe;
    font-weight: 950;
    font-size: .84rem;
    margin-bottom: 16px;
}

.aj-actions,
.hero-actions,
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.aj-btn,
.primary-link,
.primary-button,
.btn-primary,
.ghost-button,
.ghost-link,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: .92rem 1.14rem;
    font-weight: 900;
    border: 1px solid var(--aj-border);
    cursor: pointer;
    text-decoration: none;
    transition: transform .14s ease, filter .14s ease, background .14s ease;
}

.aj-btn:hover,
.primary-link:hover,
.primary-button:hover,
.btn-primary:hover,
.ghost-button:hover,
.ghost-link:hover,
.btn-secondary:hover { transform: translateY(-1px); filter: brightness(1.06); }

.aj-btn:focus:not(:focus-visible),
.primary-link:focus:not(:focus-visible),
.primary-button:focus:not(:focus-visible),
.btn-primary:focus:not(:focus-visible),
.ghost-button:focus:not(:focus-visible),
.ghost-link:focus:not(:focus-visible),
.btn-secondary:focus:not(:focus-visible) {
    outline: none;
}

.aj-btn:focus-visible,
.primary-link:focus-visible,
.primary-button:focus-visible,
.btn-primary:focus-visible,
.ghost-button:focus-visible,
.ghost-link:focus-visible,
.btn-secondary:focus-visible {
    outline: 2px solid rgba(125, 211, 252, .72);
    outline-offset: 3px;
}

.aj-btn-primary,
.primary-link,
.primary-button,
.btn-primary {
    background: linear-gradient(135deg, var(--aj-purple2), var(--aj-cyan2));
    color: white !important;
    border-color: transparent;
}

.aj-btn-ghost,
.ghost-button,
.ghost-link,
.btn-secondary {
    background: rgba(255,255,255,.055);
    color: var(--aj-soft2) !important;
}

.aj-btn.small { padding: .68rem .86rem; font-size: .9rem; }

.aj-proof-strip,
.hero-proof-row,
.trust-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.aj-proof-strip span,
.hero-proof-row span,
.trust-row span {
    border: 1px solid var(--aj-border);
    background: rgba(255,255,255,.045);
    color: var(--aj-muted2);
    border-radius: 999px;
    padding: .56rem .74rem;
    font-size: .88rem;
}

.aj-studio-card {
    border: 1px solid var(--aj-border);
    border-radius: 34px;
    background:
        radial-gradient(circle at 78% 10%, rgba(6, 182, 212, .20), transparent 28%),
        radial-gradient(circle at 28% 86%, rgba(139, 92, 246, .24), transparent 34%),
        rgba(15, 23, 42, .72);
    box-shadow: 0 28px 90px rgba(0,0,0,.34);
    padding: 20px;
    overflow: hidden;
}

.aj-studio-topbar {
    display: flex;
    justify-content: space-between;
    color: var(--aj-muted2);
    margin-bottom: 16px;
    font-size: .9rem;
}
.aj-studio-topbar strong { color: var(--aj-text2); }

.aj-transform-grid { display: grid; grid-template-rows: .72fr auto 1.55fr; gap: 16px; }

.aj-upload-demo,
.aj-sheet-demo {
    position: relative;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 28px;
    background: rgba(7, 10, 18, .46);
    min-height: 190px;
    padding: 24px;
    overflow: hidden;
}

.aj-upload-demo {
    display: grid;
    place-items: center;
    gap: 10px;
    border-style: dashed;
    color: var(--aj-muted2);
}

.aj-mini-label {
    position: absolute;
    left: 18px;
    top: 16px;
    font-size: .72rem;
    color: #a5f3fc;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .11em;
}

.aj-product-demo {
    width: 98px;
    height: 154px;
    border-radius: 28px 28px 18px 18px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(203,213,225,.83)),
        radial-gradient(circle at 35% 25%, rgba(6,182,212,.72), transparent 33%);
    box-shadow: 0 24px 60px rgba(0,0,0,.32);
    position: relative;
}
.aj-product-demo.small { width: 72px; height: 112px; }
.aj-product-demo::before {
    content: "";
    position: absolute;
    top: -22px;
    left: 31px;
    right: 31px;
    height: 28px;
    border-radius: 10px 10px 4px 4px;
    background: #e2e8f0;
}

.aj-reference-product,
.aj-before-product {
    display: block;
    width: min(220px, 86%);
    aspect-ratio: 1 / 1;
    background-image: url("/images/examples/example-headphones-source.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #050816;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 24px 60px rgba(0,0,0,.32);
}

.aj-before-product {
    width: min(260px, 88%);
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
}

.aj-arrow-demo {
    justify-self: center;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: white;
    font-weight: 950;
    font-size: 1.65rem;
    background: linear-gradient(135deg, var(--aj-purple2), var(--aj-cyan2));
    box-shadow: 0 16px 44px rgba(139,92,246,.3);
}

.aj-sheet-demo {
    min-height: 340px;
    background: linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.045));
}
.aj-sheet-demo h3 { font-size: 2rem; letter-spacing: -.05em; margin: 34px 0 8px; }
.aj-sheet-demo p { max-width: 58%; color: var(--aj-soft2); line-height: 1.45; }
.aj-callouts-demo { position: absolute; left: 24px; right: 24px; bottom: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.aj-callouts-demo span { border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); padding: .66rem; color: var(--aj-soft2); font-size: .82rem; font-weight: 800; }
.aj-sheet-demo-real {
    display: grid;
    align-items: end;
    padding: 34px 22px 22px;
}

.aj-sheet-demo-real img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    object-position: top center;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(2, 6, 23, .78);
    box-shadow: 0 24px 60px rgba(0,0,0,.36);
}

.aj-sheet-object {
    position: absolute;
    right: 28px;
    top: 58px;
    width: 34%;
    height: 42%;
    border-radius: 28px;
    background-image: url("/images/examples/example-tech-headphones.jpg");
    background-size: cover;
    background-position: top center;
    background-color: #020617;
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 22px 50px rgba(0,0,0,.28);
}

.aj-section,
.aj-final-cta {
    border: 1px solid var(--aj-border);
    border-radius: 32px;
    background: var(--aj-card);
    box-shadow: 0 22px 72px rgba(0,0,0,.22);
    padding: clamp(24px, 4vw, 42px);
}

.aj-section-heading { max-width: 840px; margin-bottom: 26px; }
.aj-section h2,
.aj-final-cta h2 { font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1; letter-spacing: -.055em; margin: 0 0 14px; }
.aj-section p,
.aj-final-cta p { color: var(--aj-muted2); line-height: 1.58; }

.aj-split-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 24px; align-items: center; }
.aj-before-after { display: grid; grid-template-columns: .9fr 1.1fr; gap: 16px; }
.aj-before-after article,
.aj-usecase-grid article,
.aj-steps-grid article,
.aj-example-card {
    border: 1px solid var(--aj-border);
    background: rgba(7,10,18,.42);
    border-radius: 26px;
    padding: 18px;
}
.aj-before-after article > span { display: inline-flex; border-radius: 999px; padding: .38rem .62rem; background: rgba(255,255,255,.06); color: var(--aj-muted2); font-weight: 950; margin-bottom: 14px; }
.aj-before-after article.after > span { color: #a5f3fc; background: rgba(6,182,212,.12); }
.aj-before-box,
.aj-after-box { min-height: 230px; border-radius: 22px; display: grid; place-items: center; margin-bottom: 16px; }
.aj-before-box { border: 1px dashed rgba(148,163,184,.28); background: rgba(255,255,255,.035); }
.aj-after-box { border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.045); padding: 16px; }
.aj-sheet-mini { width: 100%; min-height: 190px; border-radius: 20px; background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.04)); padding: 16px; display: grid; grid-template-columns: .74fr 1fr; gap: 12px; align-content: space-between; align-items: center; }
.aj-sheet-mini img { width: 100%; aspect-ratio: 1 / 1.18; object-fit: cover; object-position: 74% 34%; border-radius: 16px; border: 1px solid rgba(255,255,255,.12); grid-row: span 3; }
.aj-sheet-mini b, .aj-sheet-mini i { display: block; }
.aj-sheet-mini i { color: var(--aj-muted2); font-style: normal; }
.aj-sheet-mini div { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.aj-sheet-mini em { height: 38px; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.08); }

.aj-example-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); gap: 18px; }
.aj-example-card { overflow: hidden; }
.aj-example-card.featured { grid-row: span 3; }
.aj-example-card img { width: 100%; display: block; border-radius: 20px; border: 1px solid rgba(255,255,255,.1); background: #0b1020; box-shadow: 0 18px 48px rgba(0,0,0,.24); }
.aj-example-card:not(.featured) { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 14px; }
.aj-example-card:not(.featured) img { height: 178px; object-fit: cover; object-position: top; }
.aj-example-card strong,
.aj-usecase-grid strong,
.aj-steps-grid strong { display: block; color: var(--aj-text2); font-size: 1.06rem; margin-bottom: 6px; }
.aj-example-card span { color: var(--aj-muted2); line-height: 1.42; }
.aj-example-card div { padding: 12px 4px 4px; }

.aj-usecase-grid,
.aj-steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.aj-steps-grid article > span { width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; background: linear-gradient(135deg, var(--aj-purple2), var(--aj-cyan2)); color: white; font-weight: 950; margin-bottom: 14px; }

.aj-final-cta { text-align: center; background: radial-gradient(circle at 50% 0%, rgba(139,92,246,.24), transparent 38%), var(--aj-card); padding: clamp(34px, 6vw, 72px); }
.aj-final-cta .aj-kicker { margin-left: auto; margin-right: auto; }
.aj-final-cta p { max-width: 620px; margin: 0 auto 24px; }

/* Builder/status/jobs polish layered over existing Razor */
.builder-hero,
.page-heading { border: 1px solid var(--aj-border); background: rgba(15,23,42,.54); border-radius: 28px; padding: 24px; }
.builder-workspace { grid-template-columns: minmax(340px, .92fr) minmax(520px, 1.08fr); }
.builder-preview,
.builder-form-card,
.style-selector-shell,
.style-selection-layout,
.style-selector-toolbar,
.builder-section-title { min-width: 0; }
.product-upload-dropzone { min-height: 340px; border-radius: 30px; background: radial-gradient(circle at 50% 0%, rgba(6,182,212,.16), transparent 36%), rgba(255,255,255,.035); }
.panel-card, .hero-card, .stat-card, .gallery-card { border-color: var(--aj-border); background: rgba(15,23,42,.70); border-radius: 28px; }
.text-input, .text-area, select, textarea, input { border-color: rgba(125, 211, 252, .28); background: rgba(4,10,22,.86); }
.style-card.selected, .style-card:hover { border-color: rgba(139,92,246,.64); background: linear-gradient(135deg, rgba(139,92,246,.14), rgba(6,182,212,.08)), rgba(255,255,255,.055); }
.gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-card img { aspect-ratio: 4 / 3; object-fit: contain; }

@media (max-width: 1380px) {
    .builder-workspace {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1040px) {
    .aj-hero-v4,
    .aj-split-section,
    .aj-before-after,
    .aj-example-grid,
    .builder-workspace { grid-template-columns: 1fr; }
    .aj-usecase-grid,
    .aj-steps-grid { grid-template-columns: repeat(2, 1fr); }
    .aj-studio-card { max-width: 720px; width: 100%; justify-self: center; }
}

@media (max-width: 720px) {
    .aj-shell, .site-shell { padding: 12px; }
    .aj-topnav, .site-header { align-items: stretch; flex-direction: column; }
    .aj-brand { min-width: 0; }
    .aj-navlinks, .site-nav { display: grid; grid-template-columns: 1fr 1fr; justify-content: stretch; }
    .aj-hero-v4 { min-height: auto; padding-top: 18px; }
    .aj-hero-copy h1 { font-size: clamp(2.55rem, 13vw, 4rem); }
    .aj-section, .aj-final-cta, .aj-studio-card { border-radius: 24px; }
    .aj-callouts-demo { position: static; grid-template-columns: 1fr; margin-top: 16px; }
    .aj-sheet-demo p { max-width: 100%; }
    .aj-sheet-object { display: none; }
    .aj-example-card:not(.featured) { grid-template-columns: 1fr; }
    .aj-example-card:not(.featured) img { height: auto; object-fit: contain; }
    .aj-usecase-grid, .aj-steps-grid, .gallery-grid { grid-template-columns: 1fr; }
}
/* === AIPhotoJam latest layout patch END === */

/* AIPhotoJam status/progress polish - generated patch */
.status-page-heading .section-copy {
    font-size: 1.05rem;
    color: rgba(255,255,255,.72);
    margin-bottom: 0;
}

.status-page-heading.clean-output-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .85rem;
    padding: 14px 20px;
    margin-bottom: 12px;
    min-height: 0;
}

.status-page-heading.clean-output-heading .compact-link {
    flex: 0 0 auto;
}

.status-shell-polished {
    align-items: start;
}

.status-control-card,
.output-gallery-panel,
.polished-job-card {
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 24px 80px rgba(10, 8, 20, .28);
}

.status-card-topline,
.gallery-heading-row,
.job-progress-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.status-percent {
    font-weight: 800;
    font-size: 1.05rem;
    color: #fff;
    padding: .35rem .65rem;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.14);
}

.small-percent {
    font-size: .9rem;
    min-width: 3.5rem;
    text-align: right;
}

.progress-shell {
    position: relative;
    width: 100%;
    height: 14px;
    margin: 1.1rem 0 .9rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.14);
}

.progress-shell-active::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.32), transparent);
    transform: translateX(-100%);
    animation: aipp-progress-sheen 1.2s ease-in-out infinite;
}

.list-progress {
    height: 11px;
    margin: .4rem 0;
}

.progress-fill {
    height: 100%;
    min-width: 8px;
    border-radius: inherit;
    background: linear-gradient(90deg, #8b5cf6, #ec4899, #f97316);
    transition: width .45s ease;
    box-shadow: 0 0 24px rgba(236,72,153,.28);
}

.progress-running {
    background-size: 200% 100%;
    animation: aiphotojam-progress-glow 1.1s linear infinite;
}

.progress-completed {
    background: linear-gradient(90deg, #22c55e, #84cc16);
}

.progress-failed,
.progress-cancelled {
    background: linear-gradient(90deg, #ef4444, #f97316);
}

@keyframes aiphotojam-progress-glow {
    from { background-position: 0% 50%; }
    to { background-position: 200% 50%; }
}

@keyframes aipp-progress-sheen {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

.queue-timeline-progress {
    margin-top: .7rem;
}

.status-success {
    background: rgba(34,197,94,.12);
    border: 1px solid rgba(34,197,94,.35);
    color: #dcfce7;
}

.compact-log-shell {
    max-height: 220px;
    overflow: auto;
}

.soft-count {
    white-space: nowrap;
    padding: .35rem .65rem;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.74);
    font-size: .9rem;
}

.gallery-heading-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: .7rem;
}

.compact-link {
    padding: .55rem .85rem;
    font-size: .86rem;
}

.gallery-heading-row-actions-only {
    justify-content: flex-end;
}

.gallery-heading-row-actions-only .gallery-heading-actions {
    width: 100%;
}

.my-creatives-return {
    box-shadow: 0 10px 24px rgba(14, 165, 233, .18);
}

.enhanced-gallery-grid {
    gap: 1.1rem;
}

.enhanced-gallery-card {
    overflow: hidden;
}

.gallery-image-link {
    position: relative;
    display: block;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255,255,255,.06);
    text-decoration: none;
}

.gallery-image-link img {
    display: block;
    width: 100%;
    transition: transform .25s ease, filter .25s ease;
}

.gallery-image-link:hover img {
    transform: scale(1.025);
    filter: brightness(1.06);
}

.open-full-size-badge {
    position: absolute;
    right: .75rem;
    bottom: .75rem;
    padding: .4rem .65rem;
    border-radius: 999px;
    background: rgba(0,0,0,.62);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease;
    backdrop-filter: blur(10px);
}

.gallery-image-link:hover .open-full-size-badge {
    opacity: 1;
    transform: translateY(0);
}

.trial-preview-link {
    min-height: 320px;
}

.trial-preview-link img {
    filter: saturate(.92) contrast(.96);
}

.trial-watermark-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255,255,255,.12);
    font-size: clamp(2rem, 4vw, 3.7rem);
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    transform: rotate(-24deg);
    z-index: 2;
    text-align: center;
    padding: 1rem;
    pointer-events: none;
}

.clean-download-badge {
    left: 12px;
    right: auto;
    pointer-events: auto;
    text-decoration: none;
    background: rgba(14, 165, 233, .9);
}

.final-download-panel {
    display: grid;
    gap: .85rem;
    margin-top: .85rem;
    padding: .9rem;
    border-radius: 18px;
    border: 1px solid rgba(56, 189, 248, .24);
    background: rgba(8, 15, 30, .5);
}

.final-download-panel.unlocked {
    border-color: rgba(34, 197, 94, .34);
    background: rgba(15, 23, 42, .62);
}

.final-download-copy {
    display: grid;
    gap: .25rem;
}

.final-download-copy strong {
    color: #fff;
    font-size: .95rem;
}

.final-download-copy span {
    color: rgba(226, 232, 240, .72);
    font-size: .84rem;
    line-height: 1.45;
}

.final-download-button,
.final-download-link {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.annotation-help-actions .final-download-button,
.annotation-help-actions .final-download-link,
.sheet-lightbox-actions .final-download-button,
.sheet-lightbox-actions .final-download-link {
    width: auto;
    min-height: 38px;
    padding: .55rem .82rem;
    font-size: .82rem;
}

.annotation-help-panel {
    display: grid;
    gap: .75rem;
    margin-top: .85rem;
    padding: .9rem;
    border-radius: 18px;
    border: 1px solid rgba(125, 211, 252, .22);
    background: rgba(8, 15, 30, .38);
}

.annotation-help-panel .compact-action-button {
    justify-self: end;
}

.annotation-help-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .6rem;
}

.annotation-help-actions .high-quality-download-action {
    flex: 0 1 auto;
}

.annotation-help-actions .compact-action-button {
    flex: 0 0 auto;
}

.high-quality-download-action {
    width: auto;
    min-height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .52rem .9rem;
    border-radius: 999px;
    line-height: 1.2;
    white-space: normal;
}

.high-quality-download-action.unlocked {
    border-color: rgba(34, 197, 94, .42);
    background: rgba(34, 197, 94, .16);
    color: #bbf7d0;
}

.high-quality-download-action:disabled {
    cursor: wait;
    opacity: .7;
}

.polished-empty-output {
    min-height: 340px;
    border: 1px dashed rgba(255,255,255,.18);
    background: radial-gradient(circle at top, rgba(139,92,246,.18), rgba(255,255,255,.04));
}

.clean-meta-stack strong {
    color: #fff;
    font-size: .98rem;
}

.compact-job-meta-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 760px) {
    .status-card-topline,
    .gallery-heading-row,
    .job-progress-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .small-percent {
        text-align: left;
    }

    .compact-job-meta-grid {
        grid-template-columns: 1fr;
    }
}

/* Python AIPhotoJam builder alignment */
.builder-card { margin-bottom: 20px; }
.helper-text { color: var(--muted); font-size: 0.9rem; line-height: 1.45; margin-top: -4px; }
.upload-card { display: grid; place-items: center; gap: 8px; min-height: 160px; border: 2px dashed var(--line); border-radius: 22px; background: rgba(11, 18, 34, 0.56); cursor: pointer; text-align: center; padding: 28px; }
.upload-card:hover { border-color: var(--accent); }
.upload-card input[type="file"] { display: none; }
.upload-card strong { color: var(--text); font-size: 1.05rem; }
.upload-card span { color: var(--muted); }
.preset-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.preset-card { border: 1px solid var(--line); background: rgba(24, 34, 56, 0.75); border-radius: 18px; padding: 12px; cursor: pointer; text-align: left; color: var(--text); transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease; }
.preset-card:hover, .preset-card.active { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12); transform: translateY(-1px); }
.preset-thumb { display: block; height: 105px; border-radius: 14px; margin-bottom: 12px; position: relative; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.08); }
.preset-thumb::before { content: ""; position: absolute; left: 18px; top: 20px; width: 46%; height: 10px; border-radius: 999px; background: rgba(248, 250, 252, 0.92); box-shadow: 0 24px 0 rgba(203, 213, 225, 0.65), 0 48px 0 rgba(203, 213, 225, 0.38); }
.preset-thumb::after { content: ""; position: absolute; right: 16px; bottom: 16px; width: 34%; height: 54%; border-radius: 16px; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.14); }
.preset-thumb.clean { background: linear-gradient(135deg, #0f172a, #1e293b); }
.preset-thumb.luxury { background: radial-gradient(circle at 80% 20%, rgba(250, 204, 21, 0.28), transparent 30%), linear-gradient(135deg, #2e1065, #111827); }
.preset-thumb.tech { background: linear-gradient(90deg, rgba(6, 182, 212, 0.24) 1px, transparent 1px), linear-gradient(180deg, rgba(6, 182, 212, 0.18) 1px, transparent 1px), linear-gradient(135deg, #0f172a, #082f49); background-size: 18px 18px, 18px 18px, auto; }
.preset-thumb.social { background: radial-gradient(circle at 25% 25%, rgba(236, 72, 153, 0.42), transparent 26%), linear-gradient(135deg, #831843, #111827); }
.preset-title, .preset-copy { display: block; }
.preset-title { font-weight: 800; margin-bottom: 5px; }
.preset-copy { color: var(--muted); font-size: 0.86rem; line-height: 1.35; }
@media (max-width: 980px) { .preset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .preset-grid { grid-template-columns: 1fr; } }

/* AIPP:ExamplesShowcaseV4:start */
.aipp-kicker {
    margin: 0 0 .75rem;
    color: #a78bfa;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-weight: 800;
    font-size: .78rem;
}

.aipp-showcase-page,
.aipp-home-examples {
    color: #f8fafc;
}

.aipp-showcase-page {
    padding: 2rem clamp(1rem, 4vw, 4rem) 5rem;
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% 0%, rgba(124, 58, 237, .24), transparent 38%),
        linear-gradient(180deg, #020617 0%, #060b18 48%, #020617 100%);
}

.aipp-showcase-hero {
    max-width: 1340px;
    margin: 0 auto 3rem;
    display: grid;
    grid-template-columns: minmax(360px, .78fr) minmax(420px, 1.22fr);
    gap: 2rem;
    align-items: center;
}

.aipp-showcase-copy h1 {
    margin: 0;
    max-width: 720px;
    font-size: clamp(2.4rem, 5vw, 4.85rem);
    line-height: .98;
    letter-spacing: 0;
}

.aipp-showcase-copy h1:focus-visible {
    outline: 3px solid rgba(56, 189, 248, .72);
    outline-offset: .35rem;
    border-radius: 10px;
}

.aipp-showcase-copy p:not(.aipp-kicker) {
    margin: 1.1rem 0 0;
    color: rgba(226, 232, 240, .78);
    font-size: clamp(1rem, 1.6vw, 1.28rem);
    max-width: 640px;
}

.aipp-showcase-actions,
.aipp-home-examples-cta {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin-top: 1.5rem;
}

.aipp-showcase-hero-art,
.aipp-home-hero-preview {
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(139, 92, 246, .28);
    background: rgba(15, 23, 42, .52);
    box-shadow: 0 32px 100px rgba(0, 0, 0, .44);
}

.aipp-showcase-hero-art img,
.aipp-home-hero-preview img {
    display: block;
    width: 100%;
    height: auto;
}

.aipp-showcase-grid {
    max-width: 1340px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
}

.aipp-showcase-card,
.aipp-home-example-strip article {
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, .18);
    background: rgba(15, 23, 42, .74);
    box-shadow: 0 18px 54px rgba(0, 0, 0, .34);
}

.aipp-showcase-card img,
.aipp-home-example-strip img {
    display: block;
    width: 100%;
    aspect-ratio: 10 / 15;
    object-fit: cover;
}

.aipp-showcase-card div {
    padding: 1.1rem;
}

.aipp-showcase-card p {
    margin: 0 0 .35rem;
    color: #c084fc;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .78rem;
    font-weight: 800;
}

.aipp-showcase-card h2 {
    margin: 0 0 .5rem;
    font-size: 1.05rem;
}

.aipp-showcase-card span {
    display: block;
    min-height: 4.1rem;
    color: rgba(226, 232, 240, .7);
    font-size: .92rem;
    line-height: 1.45;
}

.aipp-showcase-card a {
    display: inline-flex;
    margin-top: .9rem;
    color: #ddd6fe;
    font-weight: 800;
    text-decoration: none;
}

.aipp-home-examples {
    max-width: 1220px;
    margin: 2.25rem auto;
    padding: clamp(1.25rem, 3vw, 2.25rem);
    border-radius: 30px;
    border: 1px solid rgba(139, 92, 246, .22);
    background:
        radial-gradient(circle at 50% 0%, rgba(124, 58, 237, .19), transparent 45%),
        rgba(2, 6, 23, .84);
    box-shadow: 0 24px 90px rgba(0, 0, 0, .35);
}

.aipp-home-examples-heading {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 1.4rem;
}

.aipp-home-examples-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1;
    letter-spacing: -.045em;
}

.aipp-home-examples-heading p:last-child {
    color: rgba(226, 232, 240, .74);
    font-size: 1.05rem;
}

.aipp-home-hero-preview {
    display: block;
    transition: transform .18s ease, border-color .18s ease;
}

.aipp-home-hero-preview:hover {
    transform: translateY(-2px);
    border-color: rgba(167, 139, 250, .58);
}

.aipp-home-example-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.aipp-home-example-strip span {
    display: block;
    padding: .75rem .85rem;
    color: #e9d5ff;
    font-weight: 800;
}

.aipp-home-examples-cta {
    justify-content: center;
}

@media (max-width: 1050px) {
    .aipp-showcase-hero { grid-template-columns: 1fr; }
    .aipp-showcase-grid,
    .aipp-home-example-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    .aipp-showcase-page { padding-inline: 1rem; }
    .aipp-showcase-grid,
    .aipp-home-example-strip { grid-template-columns: 1fr; }
    .aipp-showcase-hero-art,
    .aipp-home-hero-preview { border-radius: 18px; }
}
/* AIPP:ExamplesShowcaseV4:end */



/* AIPP Output Run UI Clean Up */
.upload-card-preview {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    display: grid;
    place-items: center;
    text-align: center;
    gap: .65rem;
    border: 1px dashed rgba(139, 92, 246, .65);
    background: radial-gradient(circle at top, rgba(139, 92, 246, .16), rgba(15, 23, 42, .28));
}

/* AIPP:LandingDesignRework20260516:start */
.aipp-live-home {
    color: #f8f6ee;
    display: grid;
    gap: 0;
}

.aipp-live-hero {
    align-items: center;
    background-image:
        linear-gradient(90deg, rgba(5, 7, 19, .98) 0%, rgba(5, 7, 19, .84) 38%, rgba(5, 7, 19, .18) 78%, rgba(5, 7, 19, .34) 100%),
        url("/images/examples/examples-hero-product-sheets.jpg");
    background-position: center right;
    background-size: cover;
    display: flex;
    min-height: calc(100svh - 164px);
    padding: 72px 36px 74px;
}

.aipp-live-hero-copy {
    max-width: 760px;
    width: 100%;
}

.aipp-live-kicker,
.aipp-live-section-kicker,
.aipp-live-copy-tag {
    font-size: .86rem;
    font-weight: 900;
    letter-spacing: 0;
    margin: 0 0 18px;
    text-transform: uppercase;
}

.aipp-live-kicker,
.aipp-live-copy-tag {
    color: #b7f252;
}

.aipp-live-hero h1,
.aipp-live-section h2,
.aipp-live-final-cta h2,
.aipp-live-workflow h2,
.aipp-live-style-card h3,
.aipp-live-message-grid h3 {
    letter-spacing: 0;
    margin-top: 0;
}

.aipp-live-hero h1 {
    font-size: 5rem;
    line-height: .95;
    margin-bottom: 24px;
    max-width: 780px;
}

.aipp-live-lead {
    color: #eef2fb;
    font-size: 1.22rem;
    line-height: 1.55;
    margin-bottom: 30px;
    max-width: 620px;
}

.aipp-live-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

.aipp-live-btn {
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    text-decoration: none;
    white-space: nowrap;
}

.aipp-live-btn-primary {
    background: linear-gradient(135deg, #7b63ff, #24d4e9);
    box-shadow: 0 16px 40px rgba(36, 212, 233, .2);
    color: white !important;
}

.aipp-live-btn-secondary {
    background: rgba(255, 255, 255, .08);
    color: white !important;
}

.aipp-live-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.aipp-live-proof span {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    color: #f2f5fb;
    font-size: .92rem;
    font-weight: 800;
    padding: 10px 14px;
}

.aipp-live-section {
    padding: 62px 36px;
    scroll-margin-top: 120px;
}

.aipp-live-section-light {
    background: #f4efe4;
    color: #10131e;
}

.aipp-live-section-dark {
    background: #080b18;
    color: #f8f6ee;
}

.aipp-live-section-inner {
    margin: 0 auto;
    max-width: 1180px;
}

.aipp-live-section-kicker {
    color: #714cff;
    margin-bottom: 12px;
}

.aipp-live-section-dark .aipp-live-section-kicker {
    color: #24d4e9;
}

.aipp-live-section h2,
.aipp-live-final-cta h2 {
    font-size: 2.55rem;
    line-height: 1.05;
    margin-bottom: 16px;
    max-width: 780px;
}

.aipp-live-section-intro {
    color: #3d4350;
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 0 0 30px;
    max-width: 720px;
}

.aipp-live-section-dark .aipp-live-section-intro {
    color: #c6cbda;
}

.aipp-live-style-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.aipp-live-style-card {
    background: #111522;
    border: 1px solid rgba(16, 19, 30, .15);
    border-radius: 8px;
    color: white;
    min-width: 0;
    overflow: hidden;
}

.aipp-live-style-card img {
    aspect-ratio: .74;
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.aipp-live-style-caption {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 16px;
}

.aipp-live-style-caption span {
    color: #b7f252;
    display: block;
    font-size: .74rem;
    font-weight: 900;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.aipp-live-style-caption strong {
    display: block;
    font-size: 1rem;
    line-height: 1.18;
}

.aipp-live-copy-card {
    display: flex;
    flex-direction: column;
    grid-column: auto / span 2;
    justify-content: space-between;
    min-height: 100%;
    padding: 24px;
}

.aipp-live-copy-card h3 {
    font-size: 1.32rem;
    line-height: 1.15;
    margin-bottom: 14px;
}

.aipp-live-copy-card p:last-child {
    color: #d8dfec;
    line-height: 1.55;
    margin-bottom: 0;
}

.aipp-live-message-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.aipp-live-message-grid article {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    min-height: 230px;
    padding: 26px;
}

.aipp-live-message-grid article > span {
    align-items: center;
    background: rgba(183, 242, 82, .14);
    border: 1px solid rgba(183, 242, 82, .35);
    border-radius: 8px;
    color: #b7f252;
    display: flex;
    font-weight: 900;
    height: 42px;
    justify-content: center;
    margin-bottom: 22px;
    width: 42px;
}

.aipp-live-message-grid h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.aipp-live-message-grid p {
    color: #cad0df;
    line-height: 1.58;
    margin-bottom: 0;
}

.aipp-live-workflow {
    align-items: center;
    background: linear-gradient(90deg, rgba(123, 99, 255, .18), rgba(36, 212, 233, .16)), #10131e;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    display: grid;
    gap: 28px;
    grid-template-columns: 1.15fr .85fr;
    padding: 34px;
}

.aipp-live-workflow h2 {
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 12px;
}

.aipp-live-workflow p {
    color: #d6dce9;
    font-size: 1.04rem;
    line-height: 1.62;
    margin-bottom: 0;
}

.aipp-live-workflow-steps {
    display: grid;
    gap: 10px;
}

.aipp-live-workflow-steps div {
    align-items: center;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    display: flex;
    gap: 12px;
    min-height: 58px;
    padding: 12px 14px;
}

.aipp-live-workflow-steps strong {
    color: #b7f252;
    min-width: 72px;
}

.aipp-live-final-cta {
    background-image:
        linear-gradient(rgba(5, 7, 19, .82), rgba(5, 7, 19, .82)),
        url("/images/examples/example-tech-headphones.jpg");
    background-position: center;
    background-size: cover;
    padding: 82px 36px;
    text-align: center;
}

.aipp-live-final-cta h2 {
    margin-left: auto;
    margin-right: auto;
    max-width: 780px;
}

.aipp-live-final-cta p {
    color: #dce3ef;
    font-size: 1.1rem;
    line-height: 1.55;
    margin: 0 auto 28px;
    max-width: 660px;
}

@media (max-width: 1040px) {
    .aipp-live-hero {
        background-position: center;
        min-height: 76svh;
        padding: 58px 22px 62px;
    }

    .aipp-live-hero h1 {
        font-size: 3.45rem;
    }

    .aipp-live-style-grid,
    .aipp-live-message-grid,
    .aipp-live-workflow {
        grid-template-columns: 1fr 1fr;
    }

    .aipp-live-copy-card,
    .aipp-live-workflow > :first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 860px) {
    .aipp-live-hero {
        background-image:
            linear-gradient(180deg, rgba(5, 7, 19, .94) 0%, rgba(5, 7, 19, .84) 58%, rgba(5, 7, 19, .98) 100%),
            url("/images/examples/examples-hero-product-sheets.jpg");
    }

    .aipp-live-hero-copy {
        max-width: 660px;
    }
}

@media (max-width: 640px) {
    .aipp-live-hero {
        background-image:
            linear-gradient(180deg, rgba(5, 7, 19, .94) 0%, rgba(5, 7, 19, .84) 58%, rgba(5, 7, 19, .98) 100%),
            url("/images/examples/examples-hero-product-sheets.jpg");
        min-height: 72svh;
        padding: 48px 22px 62px;
    }

    .aipp-live-hero h1 {
        font-size: 2.5rem;
        line-height: 1;
    }

    .aipp-live-lead {
        font-size: 1.04rem;
    }

    .aipp-live-btn {
        width: 100%;
    }

    .aipp-live-section {
        padding: 48px 22px;
        scroll-margin-top: 0;
    }

    .aipp-live-section h2,
    .aipp-live-final-cta h2 {
        font-size: 2rem;
    }

    .aipp-live-style-grid,
    .aipp-live-message-grid,
    .aipp-live-workflow {
        grid-template-columns: 1fr;
    }

    .aipp-live-copy-card {
        grid-column: auto;
    }

    .aipp-live-workflow {
        padding: 24px;
    }
}
/* AIPP:LandingDesignRework20260516:end */

.upload-card-preview input[type="file"] {
    position: absolute;
    inset: 0;
    z-index: 5;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.upload-card-preview:hover,
.upload-card-preview:focus-within {
    border-color: rgba(167, 139, 250, .95);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, .14);
}

.upload-empty-icon {
    width: 62px;
    height: 62px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 2rem;
    font-weight: 800;
    color: #c4b5fd;
    background: rgba(139, 92, 246, .16);
    border: 1px solid rgba(167, 139, 250, .36);
}

.uploaded-funnel-preview {
    width: min(74%, 360px);
    aspect-ratio: 1 / 1;
    clip-path: none;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .32);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .16);
    pointer-events: none;
}

.uploaded-funnel-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.upload-card-preview.has-preview strong,
.upload-card-preview.has-preview span {
    position: relative;
    z-index: 1;
    max-width: 90%;
    overflow-wrap: anywhere;
}

.preset-thumb.reference-match {
    background:
        linear-gradient(135deg, rgba(124, 58, 237, .90), rgba(56, 189, 248, .72)),
        repeating-linear-gradient(90deg, rgba(255,255,255,.28) 0 2px, transparent 2px 10px);
}

.output-review-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
}

@media (min-width: 1288px) {
    .output-review-shell {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

.output-review-main,
.output-review-side .panel-card {
    border-color: rgba(148, 163, 184, .18);
}

.output-review-side .selected-parameters-card:first-child {
    background: rgba(16, 24, 39, .80);
}

.output-review-side .eyebrow {
    display: block;
    width: fit-content;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #7dd3fc;
    font-size: .78rem;
    font-weight: 850;
    line-height: 1.2;
    text-transform: uppercase;
}

.output-review-side {
    display: grid;
    gap: 1rem;
    align-self: stretch;
}

.clean-output-heading {
    margin-bottom: .85rem;
}

.status-run-title {
    margin: .25rem 0 0;
    font-size: clamp(1.45rem, 2.7vw, 2rem);
    line-height: 1.05;
}

.run-review-status {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    margin: 0.25rem 0 0.85rem;
}

.run-review-status h3 {
    margin: 0.5rem 0 0.3rem;
    font-size: clamp(1.3rem, 2.4vw, 1.7rem);
}

.review-progress-shell {
    margin-bottom: 1rem;
}

.disabled-action {
    opacity: .48;
    filter: grayscale(.35);
    pointer-events: none;
    cursor: not-allowed;
}

.clean-empty-output {
    min-height: 300px;
}

.clean-empty-output .mock-product-orb {
    width: 88px;
    height: 88px;
    margin: 0;
}

.generation-orb-wrap {
    position: relative;
    display: inline-grid;
    place-items: center;
    margin-bottom: 8px;
}

.clean-empty-output .generation-orb-wrap {
    width: 88px;
    height: 88px;
    margin: 0 auto 1rem;
}

.generation-preview-percent {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    line-height: 1;
    color: rgba(15, 23, 42, .92);
    font-size: 1.25rem;
    font-weight: 900;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .25);
    transform: translateY(-1px);
}

.output-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.compact-action-button {
    min-height: 2.35rem;
    padding: .48rem .8rem;
    font-size: .84rem;
}

.review-compare-card {
    display: grid;
    grid-template-columns: minmax(110px, .42fr) auto minmax(230px, 1fr);
    align-items: center;
    gap: .75rem;
    padding: .35rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(14, 165, 233, .08), rgba(124, 58, 237, .05));
}

.review-compare-panel {
    position: relative;
    display: grid;
    align-content: center;
    min-height: 190px;
    border-radius: 18px;
    background: rgba(2, 6, 23, .38);
    overflow: hidden;
}

.review-compare-panel.source-panel {
    padding: .7rem;
}

.source-photo-trigger {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 160px;
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: rgba(2, 6, 23, .3);
    cursor: zoom-in;
    overflow: hidden;
}

.source-photo-trigger img {
    width: 100%;
    max-height: 340px;
    object-fit: contain;
    border-radius: 14px;
    transition: transform .18s ease, filter .18s ease;
}

.source-photo-trigger:hover img {
    transform: scale(1.025);
    filter: brightness(1.07);
}

.source-photo-zoom {
    position: absolute;
    left: 50%;
    bottom: .75rem;
    transform: translateX(-50%);
    z-index: 5;
    padding: .38rem .65rem;
    border-radius: 999px;
    background: rgba(2, 6, 23, .74);
    border: 1px solid rgba(125, 211, 252, .24);
    color: #dbeafe;
    font-size: .72rem;
    font-weight: 900;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
}

.source-photo-trigger:hover .source-photo-zoom {
    opacity: 1;
}

.review-compare-panel.sheet-panel {
    background: rgba(2, 6, 23, .34);
}

.review-compare-panel.sheet-panel .gallery-image-link {
    height: 100%;
    min-height: 190px;
}

.review-compare-panel.sheet-panel .sheet-preview-shell,
.review-compare-panel.sheet-panel img {
    height: 100%;
}

.review-compare-panel.sheet-panel img {
    object-fit: contain;
}

.review-compare-label {
    position: absolute;
    left: .85rem;
    top: .75rem;
    z-index: 4;
    color: #bae6fd;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.review-compare-arrow {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
    color: white;
    font-size: 1.15rem;
    font-weight: 900;
    box-shadow: 0 16px 34px rgba(14, 165, 233, .22);
}

.source-photo-placeholder {
    display: grid;
    place-items: center;
    min-height: 180px;
    padding: 1rem;
    color: var(--muted);
    text-align: center;
}

@media (max-width: 760px) {
    .review-compare-card {
        grid-template-columns: 1fr;
    }

    .review-compare-arrow {
        margin: -.2rem auto;
        transform: rotate(90deg);
    }

    .annotation-help-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .annotation-help-actions .high-quality-download-action,
    .annotation-help-actions .compact-action-button {
        width: 100%;
        min-width: 0;
        flex-basis: auto;
        justify-content: center;
    }

    .sheet-lightbox-actions {
        align-items: center;
        flex-direction: row;
    }

    .sheet-lightbox-actions .high-quality-download-action,
    .sheet-lightbox-actions .compact-action-button {
        width: auto;
        min-width: 0;
        flex-basis: auto;
        justify-content: center;
    }
}

.clean-empty-output {
    min-height: 420px;
    display: grid;
    place-items: center;
    text-align: center;
    gap: .5rem;
    border: 1px dashed rgba(148, 163, 184, .26);
    border-radius: 24px;
    background: radial-gradient(circle at center, rgba(139, 92, 246, .10), rgba(15, 23, 42, .18));
}

.clean-empty-output h3 {
    margin: 0;
}

.output-first-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.output-first-card img {
    max-height: 72vh;
    object-fit: contain;
    background: rgba(2, 6, 23, .74);
}

.sheet-preview-shell {
    position: relative;
}

.preview-guide-label {
    position: absolute;
    left: .85rem;
    bottom: .85rem;
    z-index: 5;
    padding: .4rem .65rem;
    border-radius: 999px;
    background: rgba(8, 15, 30, .82);
    border: 1px solid rgba(125, 211, 252, .28);
    color: rgba(224, 242, 254, .96);
    font-size: .78rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.preview-guide-box {
    position: absolute;
    border: 2px solid rgba(56, 189, 248, .22);
    border-radius: 16px;
    background: rgba(56, 189, 248, .08);
    opacity: 0;
    transition: opacity .18s ease, transform .18s ease, border-color .18s ease, background .18s ease;
    pointer-events: none;
}

.preview-guide-box.active {
    opacity: 1;
    border-color: rgba(125, 211, 252, .82);
    background: rgba(56, 189, 248, .16);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, .12), 0 18px 36px rgba(8, 47, 73, .22);
}

.preview-guide-box-headline {
    left: 4%;
    top: 10%;
    width: 42%;
    height: 14%;
}

.preview-guide-box-subheading {
    left: 4%;
    top: 24%;
    width: 34%;
    height: 10%;
}

.preview-guide-box-benefits {
    left: 3%;
    top: 41%;
    width: 24%;
    height: 26%;
}

.preview-guide-box-specifications {
    left: 4%;
    bottom: 5%;
    width: 44%;
    height: 16%;
}

.preview-guide-box-cta {
    left: 51%;
    bottom: 5%;
    width: 28%;
    height: 16%;
}

.preview-guide-box-mustinclude {
    right: 4%;
    top: 20%;
    width: 22%;
    height: 28%;
}

.preview-guide-box-mustremove {
    inset: 6%;
    border-style: dashed;
}

.trial-output-banner {
    margin-bottom: 1rem;
}

.clean-run-card h2,
.selected-parameters-card h2,
.run-updates-card h2 {
    margin-top: .35rem;
}

.run-progress-text {
    min-height: 1.5em;
}

.parameter-list {
    display: grid;
    gap: .7rem;
    margin: 1rem 0 0;
}

.parameter-list div {
    display: grid;
    gap: .25rem;
    padding: .75rem .85rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, .38);
    border: 1px solid rgba(148, 163, 184, .15);
}

.parameter-list dt {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(226, 232, 240, .58);
}

.parameter-list dd {
    margin: 0;
    color: rgba(248, 250, 252, .94);
    overflow-wrap: anywhere;
}

.parameter-list .long-value {
    max-height: 9rem;
    overflow: auto;
    line-height: 1.45;
}

.parameter-list .mono-value {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: .8rem;
}

.revision-studio {
    display: grid;
    gap: .9rem;
    margin-top: 1rem;
}

.revision-mode-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .45rem;
}

.revision-mode-card {
    text-align: left;
    min-height: 7.5rem;
    padding: .9rem 1rem;
    border-radius: 16px;
    color: rgba(248, 250, 252, .9);
    background: rgba(15, 23, 42, .44);
    border: 1px solid rgba(148, 163, 184, .16);
    cursor: pointer;
    transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.revision-mode-card strong,
.revision-mode-card span {
    display: block;
}

.revision-mode-card strong {
    margin-bottom: .35rem;
}

.revision-mode-card span {
    color: rgba(203, 213, 225, .76);
    line-height: 1.45;
    font-size: .9rem;
}

.revision-mode-card:hover,
.revision-mode-card.active {
    transform: translateY(-1px);
    border-color: rgba(125, 211, 252, .42);
    background: linear-gradient(135deg, rgba(14, 165, 233, .14), rgba(124, 58, 237, .12));
}

.revision-mode-help {
    margin: 0;
}

.revision-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.revision-chip {
    border: 1px solid rgba(125, 211, 252, .24);
    background: rgba(14, 165, 233, .10);
    color: rgba(224, 242, 254, .95);
    border-radius: 999px;
    padding: .45rem .7rem;
    font-size: .86rem;
    cursor: pointer;
}

.revision-chip:hover {
    border-color: rgba(125, 211, 252, .5);
    background: rgba(14, 165, 233, .18);
}

.revision-chip.active {
    border-color: rgba(125, 211, 252, .62);
    background: linear-gradient(135deg, rgba(14, 165, 233, .28), rgba(124, 58, 237, .2));
    color: #fff;
    box-shadow: 0 0 0 1px rgba(125, 211, 252, .18) inset;
}

.trial-banner,
.pricing-current-plan,
.pricing-success-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.trial-banner > div:first-child {
    display: grid;
    gap: .45rem;
}

.trial-banner h2,
.trial-banner .section-copy {
    margin: 0;
}

.trial-banner h2 {
    line-height: 1.05;
}

.trial-banner .section-copy {
    max-width: 48rem;
}

.trial-banner .hero-actions {
    margin-top: 0;
}

.billing-status-pill {
    align-self: flex-end;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.pricing-card {
    display: grid;
    align-content: start;
}

.pricing-card-featured {
    border-color: rgba(125, 211, 252, .45);
    box-shadow: 0 22px 70px rgba(14, 165, 233, .10);
}

.pricing-card-trial {
    background: rgba(15, 23, 42, .52);
}

.pricing-price {
    margin: .35rem 0 .75rem;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: #fff;
}

.pricing-price span {
    font-size: .42em;
    color: rgba(226, 232, 240, .72);
    font-weight: 700;
    margin-left: .2rem;
}

.pricing-button {
    margin-top: .75rem;
}

.revision-request-area {
    min-height: 8rem;
}

.content-edit-panel {
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 16px;
    background: rgba(15, 23, 42, .34);
    overflow: hidden;
}

.content-edit-panel-header,
.content-edit-panel summary,
.look-style-panel summary,
.revision-template-feature-editor summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem .95rem;
}

.content-edit-panel-header {
    border-bottom: 1px solid rgba(148, 163, 184, .14);
}

.content-edit-panel summary,
.look-style-panel summary,
.revision-template-feature-editor summary {
    cursor: pointer;
    list-style: none;
    position: relative;
}

.content-edit-panel summary::-webkit-details-marker,
.look-style-panel summary::-webkit-details-marker,
.revision-template-feature-editor summary::-webkit-details-marker {
    display: none;
}

.look-style-panel {
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 16px;
    background: rgba(15, 23, 42, .18);
    overflow: hidden;
}

.look-style-panel summary::after,
.revision-template-feature-editor summary::after {
    content: "";
    display: grid;
    place-items: center;
    position: absolute;
    right: .95rem;
    top: 50%;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(148, 163, 184, .16);
    transform: translateY(-50%);
    transition: background .18s ease, border-color .18s ease;
}

.look-style-panel summary::before,
.revision-template-feature-editor summary::before {
    content: "";
    position: absolute;
    right: 1.62rem;
    top: 50%;
    width: .45rem;
    height: .45rem;
    border-right: 2px solid rgba(248, 250, 252, .88);
    border-bottom: 2px solid rgba(248, 250, 252, .88);
    transform: translateY(-62%) rotate(45deg);
    transform-origin: 60% 60%;
    transition: transform .18s ease;
    z-index: 1;
}

.look-style-panel[open] summary::after,
.revision-template-feature-editor[open] summary::after {
    background: rgba(125, 211, 252, .12);
    border-color: rgba(125, 211, 252, .32);
}

.look-style-panel[open] summary::before,
.revision-template-feature-editor[open] summary::before {
    transform: translateY(-38%) rotate(225deg);
}

.content-edit-panel-header strong,
.content-edit-panel summary strong,
.look-style-panel summary strong,
.revision-template-feature-editor summary strong {
    display: block;
    color: rgba(248, 250, 252, .95);
}

.content-edit-panel-header > div > span,
.content-edit-panel summary > div > span,
.look-style-panel summary > div > span,
.revision-template-feature-editor summary .feature-summary-copy > span {
    display: block;
    margin-top: .18rem;
    color: rgba(203, 213, 225, .72);
    font-size: .86rem;
}

.content-summary-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 5.5rem;
    padding: .35rem .65rem;
    border-radius: 999px;
    border: 1px solid rgba(125, 211, 252, .24);
    background: rgba(14, 165, 233, .10);
    color: rgba(224, 242, 254, .95);
    font-size: .8rem;
    font-weight: 700;
}

.content-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    padding: .95rem;
}

.content-guardrail-grid {
    grid-template-columns: 1fr;
}

.content-field-span {
    grid-column: 1 / -1;
}

.content-edit-grid label {
    margin-bottom: .32rem;
}

.content-edit-short {
    min-height: 4.8rem;
}

.content-edit-area {
    min-height: 7.2rem;
}

.content-lab-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    gap: 1rem;
    align-items: start;
}

.content-lab-editor h2,
.content-lab-preview h2 {
    margin-top: .35rem;
}

.content-lab-grid {
    padding: 0;
    margin-top: 1rem;
}

.content-lab-preview pre {
    margin: 1rem 0 0;
    max-height: 70vh;
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    border-radius: 16px;
    padding: 1rem;
    color: rgba(226, 232, 240, .92);
    background: rgba(2, 6, 23, .72);
    border: 1px solid rgba(148, 163, 184, .18);
    font: .86rem/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.revision-submit {
    width: 100%;
}

.revision-content-note {
    color: rgba(203, 213, 225, .74);
    font-size: .9rem;
    line-height: 1.5;
}

.look-style-panel-body {
    display: grid;
    gap: .9rem;
    padding: 0 .95rem .95rem;
}

.revision-template-feature-editor {
    border-top: 1px solid rgba(148, 163, 184, .14);
    padding-top: .95rem;
}

.revision-feature-summary {
    position: relative;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .85rem;
    margin: 0;
    border: 1px solid rgba(125, 211, 252, .22);
    border-radius: 16px;
    background: rgba(14, 165, 233, .10);
    padding-right: .95rem;
}

.revision-feature-summary::before,
.revision-feature-summary::after {
    content: none !important;
}

.revision-feature-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: .55rem;
    min-width: max-content;
}

.revision-feature-summary .advanced-template-count {
    margin: 0;
    flex: 0 0 auto;
}

.revision-feature-disclosure {
    position: relative;
    display: grid;
    place-items: center;
    width: 1.8rem;
    height: 1.8rem;
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(148, 163, 184, .16);
    transition: background .18s ease, border-color .18s ease;
}

.revision-feature-disclosure::before {
    content: "";
    width: .45rem;
    height: .45rem;
    border-right: 2px solid rgba(248, 250, 252, .88);
    border-bottom: 2px solid rgba(248, 250, 252, .88);
    transform: translateY(-18%) rotate(45deg);
    transform-origin: 60% 60%;
    transition: transform .18s ease;
}

.revision-template-feature-editor[open] .revision-feature-disclosure {
    background: rgba(125, 211, 252, .12);
    border-color: rgba(125, 211, 252, .32);
}

.revision-template-feature-editor[open] .revision-feature-disclosure::before {
    transform: translateY(18%) rotate(225deg);
}

.revision-template-feature-body {
    display: grid;
    gap: .95rem;
    padding-top: .95rem;
}

.revision-feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.revision-feature-grid .advanced-option-card {
    border-radius: 16px;
    padding: .82rem;
}

.revision-feature-grid .advanced-option-thumb {
    border-radius: 12px;
}

.revision-feature-grid .advanced-option-copy strong {
    font-size: .88rem;
}

.revision-feature-grid .advanced-option-copy span {
    font-size: .8rem;
}

.job-card-layout {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.job-card-layout-no-thumbnail {
    grid-template-columns: 1fr;
}

.job-card-thumbnail-shell {
    position: relative;
    display: grid;
    gap: .85rem;
}

.job-card-thumbnail-link {
    display: block;
}

.job-card-thumbnail {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, .18);
    background: rgba(2, 6, 23, .8);
    display: block;
}

.job-card-thumbnail-placeholder {
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 35% 25%, rgba(139, 92, 246, .38), transparent 30%), linear-gradient(135deg, rgba(15, 23, 42, .92), rgba(30, 41, 59, .84));
    color: rgba(248, 250, 252, .92);
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: .08em;
}

.job-card-body {
    display: grid;
    gap: .95rem;
}

.job-thumbnail-action {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.clean-lightbox-trigger {
    width: 100%;
    padding: 0;
    border: 0;
    text-align: inherit;
    background: transparent;
    cursor: zoom-in;
}

.job-card-id {
    margin: .25rem 0 0;
    color: rgba(148, 163, 184, .8);
    font-size: .82rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

@media (max-width: 980px) {
    .builder-submit-grid {
        grid-template-columns: 1fr 1fr;
    }

    .builder-submit-grid .builder-submit-stack {
        grid-column: 1 / -1;
    }

    .content-lab-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .builder-submit-grid {
        grid-template-columns: 1fr;
    }

    .run-review-status {
        flex-direction: column;
    }

    .content-edit-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .builder-edit-context,
    .revision-mode-toggle {
        grid-template-columns: 1fr;
    }

    .builder-edit-context {
        flex-direction: column;
    }
}

.run-update-list {
    margin: 1rem 0 0;
    padding-left: 1.1rem;
    display: grid;
    gap: .55rem;
    color: rgba(226, 232, 240, .82);
}

.progress-running {
    background-image: linear-gradient(90deg, rgba(139, 92, 246, .88), rgba(56, 189, 248, .88), rgba(139, 92, 246, .88));
    background-size: 220% 100%;
    animation: aipp-progress-flow 1.8s linear infinite;
}

.sheet-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 2rem;
    background: rgba(2, 6, 23, .82);
    backdrop-filter: blur(14px);
}

.sheet-lightbox-panel {
    position: relative;
    width: min(1100px, 92vw);
    max-height: 90vh;
    display: grid;
    gap: .9rem;
    padding: 1.1rem;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, .22);
    background: rgba(15, 23, 42, .96);
    box-shadow: 0 28px 90px rgba(0, 0, 0, .45);
}

.sheet-lightbox-image-frame {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(2, 6, 23, .92);
    touch-action: none;
    transform: scale(var(--annotation-local-zoom, 1));
    transform-origin: center center;
    transition: transform .12s ease;
    will-change: transform;
}

.sheet-lightbox-image-frame.local-zooming {
    transition: none;
}

.sheet-lightbox-panel img {
    width: 100%;
    max-height: calc(90vh - 120px);
    object-fit: contain;
    border-radius: inherit;
}

.modal-watermark-overlay {
    font-size: clamp(2.6rem, 7vw, 6rem);
    color: rgba(255, 255, 255, .16);
    text-shadow: 0 8px 28px rgba(2, 6, 23, .18);
}

.annotation-watermark-overlay {
    z-index: 2;
    color: rgba(255, 255, 255, .13);
    font-size: clamp(2rem, 6vw, 4.8rem);
}

.sheet-lightbox-caption {
    display: grid;
    gap: .25rem;
    color: rgba(226, 232, 240, .82);
}

.sheet-lightbox-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
    margin-top: .45rem;
}

.sheet-lightbox-actions .high-quality-download-action {
    min-width: 0;
}

.source-lightbox-download {
    justify-self: start;
    margin-top: .4rem;
    padding: .55rem .85rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(124, 58, 237, .95), rgba(6, 182, 212, .95));
    color: #fff;
    font-size: .84rem;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(14, 165, 233, .2);
}

.sheet-lightbox-close {
    position: absolute;
    top: -1.05rem;
    right: -1.05rem;
    z-index: 4;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, .22);
    background: rgba(15, 23, 42, .92);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.annotation-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: grid;
    place-items: center;
    padding: .75rem;
    background: rgba(2, 6, 23, .9);
    backdrop-filter: blur(10px);
}

.annotation-panel {
    position: relative;
    width: 100%;
    height: 100%;
    max-height: 100%;
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    gap: 0;
    padding: 0;
    border-radius: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.annotation-header {
    position: absolute;
    inset: .35rem .35rem auto .35rem;
    z-index: 150;
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 3rem;
    padding: .35rem 3.2rem .35rem .45rem;
    pointer-events: none;
}

.annotation-header h2 {
    margin: .25rem 0 0;
}

.annotation-header-actions {
    position: absolute;
    top: .35rem;
    right: .35rem;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    pointer-events: auto;
}

.annotation-history-button {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 999px;
    background: rgba(15, 23, 42, .92);
    color: #e0f2fe;
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.annotation-history-button:disabled {
    cursor: default;
    opacity: .42;
}

.annotation-header-actions .sheet-lightbox-close {
    position: static;
    flex: 0 0 auto;
}

.annotation-workspace {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: .55rem;
    height: 100%;
}

.annotation-template-strip {
    display: flex;
    gap: .55rem;
    overflow-x: auto;
    padding: .1rem .1rem .25rem;
    scrollbar-width: thin;
}

.annotation-template-chip {
    flex: 0 0 auto;
    display: grid;
    gap: .12rem;
    min-width: 8.8rem;
    border: 1px solid rgba(148, 163, 184, .2);
    border-radius: 14px;
    padding: .55rem .7rem;
    background: rgba(2, 6, 23, .54);
    color: rgba(226, 232, 240, .88);
    text-align: left;
    cursor: pointer;
}

.annotation-template-chip strong {
    font-size: .82rem;
}

.annotation-template-chip span {
    overflow: hidden;
    color: rgba(203, 213, 225, .58);
    font-size: .72rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.annotation-template-chip.selected {
    border-color: rgba(251, 191, 36, .62);
    background: rgba(251, 191, 36, .12);
}

.annotation-template-chip.confirmed {
    border-color: rgba(34, 197, 94, .46);
}

.annotation-image-stage {
    position: relative;
    align-self: center;
    justify-self: center;
    width: fit-content;
    max-width: 100%;
    max-height: calc(100vh - 118px);
    overflow: visible;
    border-radius: 0;
    border: 0;
    background: transparent;
    cursor: crosshair;
    touch-action: none;
    transform: scale(var(--annotation-local-zoom, 1));
    transform-origin: center center;
    transition: transform .12s ease;
    will-change: transform;
}

.annotation-image-stage.moving {
    cursor: move;
}

.annotation-image-stage.local-zooming {
    transition: none;
}

.annotation-template-region,
.annotation-region-handle,
.annotation-region-rotate {
    touch-action: none;
}

.annotation-image-stage img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: calc(100vh - 118px);
    height: auto;
    border-radius: 12px;
    user-select: none;
}

.annotation-workspace.has-review-strip .annotation-image-stage,
.annotation-workspace.has-review-strip .annotation-image-stage img {
    max-height: calc(100vh - 248px);
}

.annotation-image-hint {
    position: absolute;
    left: 50%;
    bottom: .9rem;
    z-index: 3;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100% - 1.5rem);
    padding: .55rem .85rem;
    border: 1px solid rgba(125, 211, 252, .36);
    border-radius: 999px;
    background: rgba(2, 6, 23, .76);
    color: #e0f2fe;
    font-size: .86rem;
    font-weight: 850;
    line-height: 1.2;
    text-align: center;
    box-shadow: 0 16px 34px rgba(2, 6, 23, .32);
    pointer-events: none;
}

.annotation-marker {
    position: absolute;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    transform: translate(-50%, -50%);
    border: 2px solid #f8fafc;
    border-radius: 999px;
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
    color: #fff;
    font-size: .86rem;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(2, 6, 23, .42), 0 0 0 5px rgba(14, 165, 233, .18);
    cursor: pointer;
}

.annotation-marker.selected {
    width: 2.35rem;
    height: 2.35rem;
    background: linear-gradient(135deg, #f59e0b, #ec4899);
    box-shadow: 0 14px 30px rgba(2, 6, 23, .48), 0 0 0 6px rgba(251, 191, 36, .18);
}

.annotation-marker.moving {
    z-index: 9;
    width: 2.55rem;
    height: 2.55rem;
    border-color: #fef3c7;
    background: linear-gradient(135deg, #f59e0b, #06b6d4);
    box-shadow:
        0 16px 34px rgba(2, 6, 23, .52),
        0 0 0 7px rgba(251, 191, 36, .2),
        0 0 0 13px rgba(14, 165, 233, .13);
    animation: annotation-moving-pulse 1.2s ease-in-out infinite;
}

.annotation-marker.editing {
    z-index: 8;
}

.annotation-marker.confirmed {
    border-color: #bbf7d0;
}

.annotation-marker.confirmed::after {
    content: "";
    position: absolute;
    right: -.18rem;
    bottom: -.18rem;
    width: .78rem;
    height: .78rem;
    border: 2px solid rgba(15, 23, 42, .96);
    border-radius: 999px;
    background: #22c55e;
}

.annotation-template-region {
    position: absolute;
    display: grid;
    place-items: start;
    min-width: 1.8rem;
    min-height: 1.6rem;
    padding: .22rem;
    border: 1px dashed rgba(224, 242, 254, .82);
    border-radius: 10px;
    background: rgba(14, 165, 233, .08);
    color: #f8fafc;
    font-size: .72rem;
    font-weight: 900;
    line-height: 1;
    text-align: left;
    text-shadow: 0 1px 8px rgba(2, 6, 23, .9);
    transform-origin: center;
    cursor: grab;
    user-select: none;
}

.annotation-template-region span {
    max-width: 100%;
    overflow: hidden;
    border-radius: 999px;
    padding: .18rem .38rem;
    background: rgba(2, 6, 23, .62);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.annotation-template-region.selected {
    border-style: solid;
    border-color: #8b5cf6;
    border-radius: 6px;
    background: rgba(139, 92, 246, .1);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, .22);
    cursor: move;
}

.annotation-template-region.confirmed {
    border-color: #22c55e;
}

.annotation-region-handle,
.annotation-region-rotate {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    width: .85rem;
    height: .85rem;
    border: 2px solid rgba(124, 58, 237, .95);
    border-radius: 999px;
    background: #f8fafc;
    box-shadow: 0 0 0 2px rgba(248, 250, 252, .88);
    cursor: nwse-resize;
}

.annotation-region-handle.handle-nw {
    top: -.45rem;
    left: -.45rem;
}

.annotation-region-handle.handle-ne {
    top: -.45rem;
    right: -.45rem;
    cursor: nesw-resize;
}

.annotation-region-handle.handle-sw {
    bottom: -.45rem;
    left: -.45rem;
    cursor: nesw-resize;
}

.annotation-region-handle.handle-se {
    right: -.45rem;
    bottom: -.45rem;
}

.annotation-region-rotate {
    top: -1.55rem;
    left: 50%;
    width: .95rem;
    height: .95rem;
    transform: translateX(-50%);
    background: #bae6fd;
    cursor: grab;
}

.annotation-region-rotate::before {
    content: "";
    position: absolute;
    top: .86rem;
    left: 50%;
    width: 1px;
    height: .72rem;
    transform: translateX(-50%);
    background: #f59e0b;
}

.annotation-region-toolbar {
    position: absolute;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: .12rem;
    max-width: calc(100% - .5rem);
    padding: .16rem;
    border: 1px solid rgba(148, 163, 184, .38);
    border-radius: 999px;
    background: rgba(248, 250, 252, .96);
    color: #0f172a;
    box-shadow: 0 14px 36px rgba(2, 6, 23, .38);
    white-space: nowrap;
}

.annotation-region-toolbar.place-above {
    transform: translate(-50%, calc(-100% - .55rem));
}

.annotation-region-toolbar.place-below {
    transform: translate(-50%, .55rem);
}

.annotation-region-toolbar-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.45rem;
    min-height: 1.45rem;
    height: 1.45rem;
    padding: 0 .42rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #0f172a;
    font: inherit;
    font-size: .68rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.annotation-region-toolbar-button:hover,
.annotation-region-toolbar-button:focus-visible {
    background: rgba(14, 165, 233, .14);
    outline: none;
}

.annotation-region-toolbar-edit {
    min-width: 2.35rem;
    background: rgba(14, 165, 233, .16);
    color: #075985;
}

.annotation-marker-toolbar {
    z-index: 92;
    gap: .18rem;
    padding: .24rem;
}

.annotation-marker-toolbar .annotation-region-toolbar-button {
    min-width: 2.4rem;
    min-height: 2.18rem;
    height: 2.18rem;
    padding-inline: .52rem;
    font-size: 1.02rem;
}

.annotation-marker-toolbar-move {
    min-width: 2.55rem;
    background: rgba(251, 191, 36, .2);
    color: #854d0e;
    cursor: pointer;
}

.annotation-move-icon,
.annotation-move-icon::before,
.annotation-move-icon::after {
    width: 3px;
    height: 3px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 7px 0 currentColor, 0 -7px 0 currentColor;
}

.annotation-move-icon {
    position: relative;
}

.annotation-move-icon::before,
.annotation-move-icon::after {
    content: "";
    position: absolute;
    top: 0;
}

.annotation-move-icon::before {
    left: -7px;
}

.annotation-move-icon::after {
    right: -7px;
}

.annotation-marker-toolbar-move:hover,
.annotation-marker-toolbar-move:focus-visible,
.annotation-marker-toolbar-move.active {
    background: rgba(251, 191, 36, .3);
    color: #713f12;
}

.annotation-marker-toolbar-move.active {
    box-shadow: inset 0 0 0 2px rgba(251, 191, 36, .38);
}

.annotation-marker-toolbar-edit {
    min-width: 2.4rem;
    background: rgba(14, 165, 233, .16);
    color: #075985;
}

.annotation-marker-toolbar-delete {
    min-width: 2.4rem;
    background: rgba(248, 113, 113, .18);
    color: #991b1b;
}

.annotation-marker-toolbar-delete svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: currentColor;
}

.annotation-marker-toolbar-delete:hover,
.annotation-marker-toolbar-delete:focus-visible {
    background: rgba(248, 113, 113, .28);
    color: #7f1d1d;
}

.annotation-region-toolbar-more {
    min-width: 1.45rem;
    padding-inline: .28rem;
}

.annotation-region-more-menu {
    position: absolute;
    top: calc(100% + .32rem);
    right: .18rem;
    display: grid;
    gap: .14rem;
    min-width: 7.25rem;
    padding: .24rem;
    border: 1px solid rgba(148, 163, 184, .3);
    border-radius: 8px;
    background: rgba(15, 23, 42, .96);
    box-shadow: 0 14px 32px rgba(2, 6, 23, .38);
}

.annotation-region-more-menu button {
    min-height: 1.45rem;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #e0f2fe;
    font: inherit;
    font-size: .68rem;
    font-weight: 900;
    text-align: left;
    cursor: pointer;
}

.annotation-region-more-menu button:hover,
.annotation-region-more-menu button:focus-visible {
    background: rgba(14, 165, 233, .16);
    outline: none;
}

.annotation-comment-popover {
    position: absolute;
    z-index: 80;
    width: min(13.5rem, calc(100% - 1.5rem));
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .48rem;
    padding: .62rem;
    border: 1px solid rgba(251, 191, 36, .72);
    border-radius: 16px;
    background: rgba(17, 24, 39, .73);
    box-shadow: 0 22px 50px rgba(0, 0, 0, .46);
    cursor: default;
}

.annotation-comment-popover.saved {
    border-color: rgba(34, 197, 94, .86);
    box-shadow: 0 0 0 2px rgba(34, 197, 94, .16), 0 22px 50px rgba(0, 0, 0, .46);
}

.annotation-comment-popover.move-mode {
    border-color: rgba(56, 189, 248, .86);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, .18), 0 22px 50px rgba(0, 0, 0, .46);
}

.annotation-comment-popover.move-mode .annotation-popover-heading {
    border-color: rgba(56, 189, 248, .34);
    background: rgba(14, 165, 233, .16);
}

.annotation-move-mode-hint {
    position: absolute;
    left: 50%;
    top: -.7rem;
    transform: translate(-50%, -100%);
    z-index: 2;
    padding: .28rem .52rem;
    border: 1px solid rgba(56, 189, 248, .38);
    border-radius: 999px;
    background: rgba(8, 47, 73, .94);
    color: #e0f2fe;
    font-size: .66rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
}

.annotation-edge-editor {
    width: min(22rem, calc(100% - .35rem));
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .18rem;
    padding: .18rem;
    border-color: rgba(251, 191, 36, .82);
    border-radius: 8px;
    background: rgba(15, 23, 42, .92);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .36);
}

.annotation-edge-editor.edge-top,
.annotation-edge-editor.edge-bottom {
    transform: translateX(-50%);
}

.annotation-edge-editor .annotation-popover-heading {
    display: none;
}

.annotation-edge-editor .annotation-list-marker {
    width: 1.35rem;
    height: 1.35rem;
    font-size: .68rem;
}

.annotation-edge-editor .annotation-popover-heading strong {
    max-width: 4.8rem;
    overflow: hidden;
    font-size: .74rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.annotation-edge-editor .annotation-popover-note {
    border-color: rgba(56, 189, 248, .34);
    background: rgba(2, 6, 23, .7);
    min-height: 1.34rem;
    height: 1.34rem;
    padding: .17rem .34rem;
    font-size: .68rem;
    overflow: hidden;
    resize: none;
}

.annotation-edge-editor .annotation-popover-actions {
    display: inline-flex;
    grid-column: auto;
    align-self: center;
    gap: .16rem;
}

.annotation-edge-editor .annotation-inline-confirm-button,
.annotation-edge-editor .annotation-remove-button {
    width: 1.34rem;
    min-height: 1.34rem;
    height: 1.34rem;
}

.annotation-edge-editor .annotation-confirm-icon {
    width: .92rem;
    height: .92rem;
    font-size: .58rem;
}

.annotation-edge-editor .annotation-region-delete-action {
    min-height: 1.34rem;
    padding: .08rem .34rem;
    border: 1px solid rgba(248, 113, 113, .32);
    border-radius: 999px;
    background: rgba(127, 29, 29, .3);
    color: #fecaca;
    font: inherit;
    font-size: .58rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.annotation-comment-popover.place-above {
    transform: translate(-50%, calc(-100% - 1.15rem));
}

.annotation-comment-popover.place-below {
    transform: translate(-50%, 1.15rem);
}

.annotation-comment-popover.place-left {
    transform: translate(calc(-100% - 1.15rem), -50%);
}

.annotation-comment-popover.place-right {
    transform: translate(1.15rem, -50%);
}

.annotation-comment-popover.place-left.place-above,
.annotation-comment-popover.place-left.place-below {
    transform: translate(calc(-100% - 1.15rem), -50%);
}

.annotation-comment-popover.place-right.place-above,
.annotation-comment-popover.place-right.place-below {
    transform: translate(1.15rem, -50%);
}

.annotation-popover-heading {
    display: flex;
    align-items: center;
    grid-column: 1 / -1;
    min-height: 2.25rem;
    gap: .5rem;
    margin: -.08rem -.08rem 0;
    padding: .34rem 2.28rem .34rem .48rem;
    border: 1px solid transparent;
    border-radius: 12px;
    background: rgba(2, 6, 23, .18);
    color: #f8fafc;
    font-size: .86rem;
    line-height: 1.15;
    transition: background .16s ease, border-color .16s ease;
}

.annotation-title-grip,
.annotation-title-grip::before,
.annotation-title-grip::after {
    width: 2px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor;
}

.annotation-title-grip {
    position: relative;
    margin: 0 .22rem;
    color: rgba(226, 232, 240, .62);
}

.annotation-title-grip::before,
.annotation-title-grip::after {
    content: "";
    position: absolute;
    top: 0;
}

.annotation-title-grip::before {
    left: -4px;
}

.annotation-title-grip::after {
    right: -4px;
}

.annotation-popover-help-icon {
    display: inline-grid;
    place-items: center;
    width: 1.2rem;
    height: 1.2rem;
    margin-left: auto;
    border: 1px solid rgba(125, 211, 252, .34);
    border-radius: 999px;
    background: rgba(14, 165, 233, .12);
    color: #bae6fd;
    font-size: .72rem;
    font-weight: 950;
    cursor: help;
}

.annotation-popover-help-icon:focus-visible {
    outline: 2px solid rgba(56, 189, 248, .7);
    outline-offset: 2px;
}

.annotation-popover-close {
    position: absolute;
    top: -.8rem;
    right: -.8rem;
    display: inline-grid;
    place-items: center;
    width: 2.15rem;
    height: 2.15rem;
    margin-left: 0;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 999px;
    background: rgba(15, 23, 42, .96);
    color: #f8fafc;
    font: inherit;
    font-size: 1.32rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.annotation-popover-close:hover,
.annotation-popover-close:focus-visible {
    border-color: rgba(226, 232, 240, .38);
    background: rgba(30, 41, 59, .86);
    color: #f8fafc;
}

.annotation-popover-note {
    min-height: 2.05rem;
    max-height: 6.7rem;
    field-sizing: content;
    line-height: 1.35;
    overflow-y: auto;
    resize: none;
}

.annotation-popover-actions {
    display: inline-flex;
    gap: .24rem;
    align-self: start;
    align-items: center;
}

.annotation-region-quick-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(4.5rem, 1fr) auto;
    align-items: center;
    gap: .16rem;
}

.annotation-region-quick-actions .annotation-region-rotation-field {
    display: flex;
    align-items: center;
    gap: .22rem;
    min-width: 0;
    color: rgba(226, 232, 240, .58);
    font-size: .6rem;
    font-weight: 900;
}

.annotation-region-quick-actions input[type="range"] {
    width: 100%;
    min-width: 0;
    height: .95rem;
}

.annotation-region-controls {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .42rem;
    padding-top: .12rem;
}

.annotation-region-controls label {
    display: grid;
    gap: .18rem;
    color: rgba(203, 213, 225, .72);
    font-size: .68rem;
    font-weight: 900;
}

.annotation-region-controls input[type="text"] {
    min-width: 0;
    border: 1px solid rgba(56, 189, 248, .28);
    border-radius: 10px;
    background: rgba(2, 6, 23, .72);
    color: #f8fafc;
    font: inherit;
    font-size: .78rem;
    font-weight: 850;
    padding: .36rem .42rem;
}

.annotation-region-rotation-field,
.annotation-region-layer-actions {
    grid-column: 1 / -1;
}

.annotation-region-layer-actions {
    display: flex;
    align-items: center;
    gap: .14rem;
    flex-wrap: nowrap;
}

.annotation-region-layer-actions button {
    border: 1px solid rgba(125, 211, 252, .28);
    border-radius: 999px;
    background: rgba(14, 165, 233, .08);
    color: #e0f2fe;
    font: inherit;
    font-size: .6rem;
    font-weight: 900;
    min-height: 1.25rem;
    padding: .12rem .32rem;
    cursor: pointer;
}

.annotation-region-layer-actions .annotation-region-delete-action {
    border-color: rgba(248, 113, 113, .32);
    background: rgba(127, 29, 29, .14);
    color: #fecaca;
}

.annotation-sidebar {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .85rem;
    align-items: start;
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, .18);
    background: rgba(2, 6, 23, .38);
}

.annotation-sidebar-heading {
    display: grid;
    gap: .25rem;
    grid-column: 1 / -1;
}

.annotation-sidebar-heading strong {
    color: rgba(248, 250, 252, .96);
}

.annotation-sidebar-heading span,
.annotation-empty-state {
    color: rgba(203, 213, 225, .72);
    font-size: .88rem;
    line-height: 1.45;
}

.annotation-list {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    max-height: 30vh;
    overflow: auto;
    padding-right: .15rem;
}

.annotation-list-item {
    display: inline-grid;
    grid-template-columns: auto minmax(8rem, 1fr);
    align-items: center;
    gap: .6rem;
    min-width: min(100%, 15rem);
    max-width: 100%;
    border: 1px solid rgba(148, 163, 184, .17);
    border-radius: 14px;
    padding: .6rem;
    background: rgba(15, 23, 42, .62);
    color: rgba(226, 232, 240, .9);
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.annotation-list-marker {
    display: grid;
    place-items: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 999px;
    background: rgba(14, 165, 233, .18);
    color: #bae6fd;
    font-weight: 900;
}

.annotation-note-column {
    min-width: 0;
    display: grid;
    gap: .35rem;
}

.annotation-note-summary {
    width: 100%;
    min-height: 2rem;
    display: grid;
    align-content: center;
    gap: .1rem;
    padding: .1rem 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.annotation-note-summary strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .86rem;
}

.annotation-note-summary span {
    color: rgba(203, 213, 225, .6);
    font-size: .74rem;
    font-weight: 800;
}

.annotation-inline-note {
    width: 100%;
    min-height: 2.45rem;
    resize: vertical;
    padding: .55rem .65rem;
    border: 1px solid rgba(56, 189, 248, .34);
    border-radius: 12px;
    background: rgba(2, 6, 23, .7);
    color: #f8fafc;
    font: inherit;
    font-size: .88rem;
    font-weight: 800;
    line-height: 1.25;
    outline: none;
}

.annotation-inline-note::placeholder {
    color: rgba(203, 213, 225, .48);
}

.annotation-inline-note:focus {
    border-color: rgba(56, 189, 248, .88);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, .18);
}

.annotation-list-item.confirmed {
    border-color: rgba(34, 197, 94, .42);
}

.annotation-list-item.selected {
    border-color: rgba(251, 191, 36, .52);
    background: rgba(251, 191, 36, .12);
}

.annotation-editor-controls {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    flex-shrink: 0;
}

.annotation-inline-controls {
    align-self: start;
    gap: .35rem;
}

.annotation-confirm-button {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 2.25rem;
    padding: .28rem .7rem .28rem .38rem;
    border: 1px solid rgba(125, 211, 252, .46);
    border-radius: 999px;
    background: rgba(14, 165, 233, .12);
    color: #bae6fd;
    font: inherit;
    font-size: .84rem;
    font-weight: 900;
    cursor: pointer;
}

.annotation-inline-confirm-button {
    width: 2.25rem;
    min-height: 2.25rem;
    justify-content: center;
    padding: 0;
}

.annotation-comment-popover .annotation-inline-confirm-button {
    display: none;
}

.annotation-comment-popover.has-editor-changes .annotation-inline-confirm-button {
    display: inline-flex;
}

.annotation-confirm-button:disabled {
    cursor: default;
    opacity: .78;
}

.annotation-confirm-button.confirmed {
    border-color: rgba(34, 197, 94, .52);
    background: rgba(34, 197, 94, .16);
    color: #bbf7d0;
}

.annotation-confirm-icon {
    display: grid;
    place-items: center;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 999px;
    background: #f8fafc;
    color: #0f172a;
    line-height: 1;
}

.annotation-inline-confirm-button .annotation-confirm-icon {
    width: 1.55rem;
    height: 1.55rem;
}

.annotation-remove-button {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid rgba(248, 113, 113, .52);
    border-radius: 999px;
    background: rgba(127, 29, 29, .22);
    color: #fecaca;
    font: inherit;
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.annotation-remove-button svg {
    width: 1.05rem;
    height: 1.05rem;
    fill: currentColor;
}

.annotation-remove-button:hover,
.annotation-remove-button:focus-visible {
    border-color: rgba(248, 113, 113, .58);
    background: rgba(127, 29, 29, .22);
    color: #fecaca;
}

.annotation-confirm-hint {
    margin: 0;
    color: rgba(203, 213, 225, .7);
    font-size: .82rem;
    line-height: 1.4;
}

.annotation-actions {
    display: flex;
    gap: .6rem;
    justify-content: flex-end;
    align-items: center;
}

.annotation-actions .primary-button,
.annotation-actions .secondary-button {
    min-height: 2.55rem;
}

.annotation-state-bar {
    width: min(34rem, calc(100% - 1rem));
    justify-self: center;
    align-self: end;
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(4, auto);
    gap: .42rem;
    align-items: center;
    padding: .42rem;
    border: 1px solid rgba(148, 163, 184, .2);
    border-radius: 999px;
    background: rgba(15, 23, 42, .88);
    color: rgba(226, 232, 240, .88);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .34);
}

.annotation-state-main {
    min-width: 0;
    display: grid;
    gap: .05rem;
    padding-left: .35rem;
}

.annotation-state-main strong,
.annotation-state-main span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.annotation-state-main strong {
    color: #f8fafc;
    font-size: .88rem;
    font-weight: 900;
}

.annotation-state-main span {
    color: rgba(203, 213, 225, .68);
    font-size: .72rem;
    font-weight: 800;
}

.annotation-state-count {
    padding: .35rem .62rem;
    border: 1px solid rgba(125, 211, 252, .24);
    border-radius: 999px;
    background: rgba(14, 165, 233, .1);
    color: #bae6fd;
    font-size: .78rem;
    font-weight: 900;
    white-space: nowrap;
}

.annotation-state-done,
.annotation-state-cancel {
    min-height: 2rem;
    border-radius: 999px;
    font: inherit;
    font-size: .82rem;
    font-weight: 900;
    cursor: pointer;
}

.annotation-state-done {
    padding: .35rem .78rem;
    border: 1px solid rgba(34, 197, 94, .38);
    background: rgba(34, 197, 94, .16);
    color: #bbf7d0;
}

.annotation-state-cancel {
    padding: .35rem .5rem;
    border: 0;
    background: transparent;
    color: rgba(248, 250, 252, .76);
}

.annotation-state-cancel-move {
    padding: .35rem .68rem;
    border: 1px solid rgba(251, 191, 36, .3);
    background: rgba(251, 191, 36, .1);
    color: #fde68a;
}

.annotation-state-done:hover,
.annotation-state-done:focus-visible {
    background: rgba(34, 197, 94, .24);
    border-color: rgba(74, 222, 128, .54);
}

.annotation-state-cancel:hover,
.annotation-state-cancel:focus-visible {
    color: #fecaca;
}

.annotation-state-cancel-move:hover,
.annotation-state-cancel-move:focus-visible {
    border-color: rgba(251, 191, 36, .48);
    background: rgba(251, 191, 36, .16);
    color: #fef3c7;
}

.annotation-review-strip {
    width: min(34rem, 100%);
    justify-self: center;
    align-self: end;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .2);
    border-radius: 16px;
    background: rgba(20, 20, 22, .92);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .34);
}

.annotation-review-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .6rem;
    padding: .42rem;
    border-bottom: 1px solid rgba(148, 163, 184, .14);
    color: rgba(226, 232, 240, .7);
    font-size: .86rem;
    font-weight: 850;
}

.annotation-review-done {
    min-width: 0;
    min-height: 2.28rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .46rem .6rem;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 999px;
    background: rgba(15, 23, 42, .62);
    color: rgba(226, 232, 240, .74);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.annotation-review-done strong {
    color: #f8fafc;
}

.annotation-review-cancel {
    min-height: 2.28rem;
    padding: .46rem .72rem;
    border: 0;
    background: transparent;
    color: rgba(248, 250, 252, .82);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.annotation-review-done:hover,
.annotation-review-done:focus-visible {
    background: rgba(30, 41, 59, .86);
    border-color: rgba(56, 189, 248, .34);
    transform: translateY(-1px);
}

.annotation-review-cancel:hover,
.annotation-review-cancel:focus-visible {
    color: #fecaca;
}

.annotation-review-list {
    display: grid;
    max-height: 8.5rem;
    overflow-y: auto;
    scrollbar-width: thin;
}

.annotation-review-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .35rem;
    padding: .38rem .46rem .38rem .78rem;
}

.annotation-review-row + .annotation-review-row {
    border-top: 1px solid rgba(148, 163, 184, .1);
}

.annotation-review-row-main {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: .56rem;
    padding: .2rem 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.annotation-review-marker {
    display: grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    background: rgba(14, 165, 233, .2);
    color: #bae6fd;
    font-size: .76rem;
    font-weight: 900;
}

.annotation-review-copy {
    min-width: 0;
    display: grid;
    gap: .06rem;
}

.annotation-review-copy strong {
    overflow: hidden;
    color: rgba(248, 250, 252, .88);
    font-size: .86rem;
    font-weight: 850;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.annotation-review-copy span {
    color: rgba(203, 213, 225, .55);
    font-size: .72rem;
    font-weight: 800;
    line-height: 1.15;
}

.annotation-review-row.selected,
.annotation-review-row.editing {
    background: rgba(251, 191, 36, .1);
}

.annotation-review-row.confirmed .annotation-review-marker {
    background: rgba(34, 197, 94, .22);
    color: #bbf7d0;
}

.annotation-review-delete {
    display: grid;
    place-items: center;
    width: 1.9rem;
    height: 1.9rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(226, 232, 240, .52);
    font: inherit;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.annotation-review-delete:hover,
.annotation-review-delete:focus-visible {
    background: rgba(248, 113, 113, .14);
    color: #fecaca;
}

.revision-source-banner {
    margin: 0;
}

@keyframes aipp-progress-flow {
    from { background-position: 0% 50%; }
    to { background-position: 220% 50%; }
}

@keyframes annotation-moving-pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.08);
    }
}

@media (max-width: 980px) {
    .output-review-shell {
        grid-template-columns: 1fr;
    }

    .annotation-workspace {
        grid-template-columns: 1fr;
    }

    .annotation-image-stage {
        max-height: calc(100vh - 118px);
    }

    .annotation-image-stage img {
        max-height: calc(100vh - 118px);
    }

    .annotation-workspace.has-review-strip .annotation-image-stage,
    .annotation-workspace.has-review-strip .annotation-image-stage img {
        max-height: calc(100vh - 248px);
    }

    .uploaded-funnel-preview {
        width: min(86%, 360px);
    }

    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .trial-banner,
    .pricing-current-plan,
    .pricing-success-card {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .job-card-layout {
        grid-template-columns: 1fr;
    }

    .job-card-thumbnail {
        max-width: 220px;
    }

    .annotation-state-bar {
        width: calc(100% - .7rem);
        grid-template-columns: minmax(0, 1fr) repeat(3, auto);
        border-radius: 18px;
    }

    .annotation-state-count {
        display: none;
    }

    .annotation-state-main span {
        white-space: normal;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }
}
/* End AIPP Output Run UI Clean Up */

/* AIPP ADVANCED TEMPLATE TUNING START */
.expanded-style-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.style-selector-shell {
    display: grid;
    gap: 1rem;
}

.style-selector-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.style-selector-status {
    display: grid;
    gap: 0.2rem;
}

.style-selector-status strong {
    font-size: 1.06rem;
}

.style-selector-status span:last-child {
    color: var(--muted);
    font-size: 0.9rem;
}

.style-scroll-hint {
    margin: -0.35rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.style-scroll-hint strong {
    color: rgba(248, 250, 252, 0.95);
}

.style-selector-nav {
    display: inline-flex;
    gap: 0.6rem;
}

.style-nav-button {
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border-radius: 999px;
    padding: 0.55rem 0.95rem;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
}

.style-nav-button:hover {
    border-color: rgba(139, 92, 246, 0.48);
    background: rgba(139, 92, 246, 0.08);
}

.style-selection-layout {
    display: block;
}

.style-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(320px, calc(50% - 0.5rem));
    gap: 1rem;
    overflow-x: auto;
    padding: 0.1rem 0.2rem 0.8rem;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}

.style-rail .style-card {
    min-height: 340px;
    scroll-snap-align: start;
    padding: 1rem;
}

.preset-thumb {
    display: block;
    height: 180px;
    border-radius: 16px;
    margin-bottom: 0.9rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.preset-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.style-card-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 0.18rem 0.55rem;
    margin-bottom: 0.4rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(124, 58, 237, 0.12);
    color: #6d28d9;
}

.advanced-template-panel {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.46);
    overflow: hidden;
}

.advanced-template-panel summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    padding: 1rem 1.1rem;
    list-style: none;
}

.advanced-template-panel summary::-webkit-details-marker {
    display: none;
}

.advanced-template-panel summary::after {
    content: "+";
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(125, 211, 252, 0.38);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(124, 58, 237, 0.2));
    color: #f8fafc;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.22);
}

@media (max-width: 640px) {
    .annotation-modal {
        padding: .75rem;
    }

    .annotation-panel {
        width: 100%;
        max-height: 100%;
        padding: 0;
        border-radius: 0;
    }

    .annotation-header {
        padding-right: 3rem;
    }

    .annotation-actions {
        flex-direction: column;
    }

    .annotation-actions .primary-button,
    .annotation-actions .secondary-button {
        width: 100%;
    }
}

.advanced-template-panel[open] summary::after {
    content: "-";
}

.advanced-template-panel summary strong {
    display: block;
    font-size: 1rem;
}

.advanced-template-panel summary span {
    display: block;
    margin-top: 0.2rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.advanced-template-panel summary .advanced-template-count {
    flex: 0 0 auto;
    margin: 0;
    border: 1px solid rgba(125, 211, 252, 0.34);
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    background: rgba(14, 165, 233, 0.12);
    color: #bae6fd;
    font-size: 0.78rem;
    font-weight: 900;
}

.advanced-template-panel summary .advanced-template-summary-action {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0.7rem 0 auto;
}

.advanced-template-panel summary .advanced-template-summary-action span {
    margin-top: 0;
}

.advanced-template-panel summary .advanced-template-toggle-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(248, 250, 252, 0.96);
    font-size: 0.78rem;
    font-weight: 900;
}

.advanced-template-panel summary .toggle-open {
    display: none;
}

.advanced-template-panel[open] summary .toggle-open {
    display: inline;
}

.advanced-template-panel[open] summary .toggle-closed {
    display: none;
}

@media (max-width: 640px) {
    .advanced-template-panel summary {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 0.8rem;
        padding: 1rem 3.6rem 1rem 1rem;
    }

    .advanced-template-panel summary::after {
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 34px;
        height: 34px;
    }

    .advanced-template-panel summary .advanced-template-summary-action {
        justify-content: flex-start;
        flex-wrap: wrap;
        margin: 0;
    }

    .advanced-template-panel summary .advanced-template-count,
    .advanced-template-panel summary .advanced-template-toggle-text {
        min-height: 34px;
    }
}

.advanced-feature-group {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    padding: 1rem 1rem 0;
}

.advanced-feature-group-header {
    display: grid;
    gap: 0.2rem;
    margin-bottom: 0.85rem;
}

.advanced-feature-group-header strong {
    color: var(--text);
    font-size: 0.96rem;
}

.advanced-feature-group-header span {
    color: var(--muted);
    line-height: 1.45;
    font-size: 0.88rem;
}

.advanced-template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
    padding: 0 0 1rem;
}

@media (max-width: 980px) {
    .style-rail {
        grid-auto-columns: minmax(280px, 78vw);
    }
}

@media (max-width: 640px) {
    .style-selector-toolbar {
        align-items: start;
        flex-direction: column;
    }

    .style-selector-nav {
        width: 100%;
    }

    .style-nav-button {
        flex: 1 1 0;
    }

    .style-rail {
        grid-auto-columns: minmax(250px, 84vw);
    }
}

.advanced-option-card {
    position: relative;
    display: grid;
    gap: 0.85rem;
    align-content: start;
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: border-color 120ms ease, transform 120ms ease, background 120ms ease;
}

.advanced-option-card:hover,
.advanced-option-card.selected {
    transform: translateY(-1px);
    border-color: rgba(125, 211, 252, 0.42);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(124, 58, 237, 0.12));
}

.advanced-option-card:not(.selected) {
    opacity: 0.78;
}

.advanced-option-card.unavailable {
    opacity: 0.44;
    cursor: not-allowed;
    filter: saturate(0.45);
}

.advanced-option-card.unavailable:hover {
    transform: none;
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.04);
}

.advanced-option-card input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #7c3aed;
}

.advanced-option-card input[type="checkbox"]:disabled {
    cursor: not-allowed;
}

.advanced-option-state {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    border-radius: 999px;
    padding: 0.2rem 0.5rem;
    background: rgba(15, 23, 42, 0.78);
    color: rgba(226, 232, 240, 0.72);
    font-size: 0.7rem;
    font-weight: 900;
}

.advanced-option-card.selected .advanced-option-state {
    background: rgba(34, 197, 94, 0.18);
    color: #bbf7d0;
}

.advanced-option-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(2, 6, 23, 0.72);
    position: relative;
    overflow: hidden;
}

.advanced-option-thumb::before,
.advanced-option-thumb::after {
    content: "";
    position: absolute;
    border-radius: 12px;
}

.preview-callouts::before {
    left: 10%;
    top: 16%;
    width: 32%;
    height: 46%;
    background: rgba(248, 250, 252, 0.92);
}

.preview-callouts::after {
    right: 10%;
    top: 20%;
    width: 26%;
    height: 36%;
    border: 2px solid rgba(56, 189, 248, 0.78);
}

.preview-icons::before {
    left: 11%;
    top: 24%;
    width: 20%;
    height: 20%;
    background: rgba(125, 211, 252, 0.9);
    box-shadow: 0 40px 0 rgba(125, 211, 252, 0.9), 0 80px 0 rgba(125, 211, 252, 0.9);
}

.preview-icons::after {
    right: 10%;
    top: 20%;
    width: 44%;
    height: 50%;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.9), rgba(148, 163, 184, 0.7));
}

.preview-lines::before {
    left: 12%;
    top: 18%;
    width: 34%;
    height: 46%;
    background: rgba(248, 250, 252, 0.9);
}

.preview-lines::after {
    right: 10%;
    top: 32%;
    width: 36%;
    height: 2px;
    background: rgba(125, 211, 252, 0.9);
    box-shadow: -58px -24px 0 rgba(125, 211, 252, 0.9), -44px 24px 0 rgba(125, 211, 252, 0.9);
}

.preview-badges::before {
    left: 10%;
    top: 18%;
    width: 42%;
    height: 52%;
    background: rgba(248, 250, 252, 0.92);
}

.preview-badges::after {
    right: 10%;
    bottom: 16%;
    width: 26%;
    height: 20%;
    background: rgba(139, 92, 246, 0.86);
}

.preview-specstrip::before {
    left: 10%;
    top: 16%;
    width: 38%;
    height: 42%;
    background: rgba(248, 250, 252, 0.92);
}

.preview-specstrip::after {
    left: 8%;
    right: 8%;
    bottom: 10%;
    height: 22%;
    background: rgba(226, 232, 240, 0.78);
    border-radius: 10px;
}

.preview-specblocks::before {
    left: 10%;
    top: 18%;
    width: 30%;
    height: 46%;
    background: rgba(248, 250, 252, 0.92);
}

.preview-specblocks::after {
    right: 10%;
    top: 18%;
    width: 32%;
    height: 52%;
    background: rgba(226, 232, 240, 0.78);
    box-shadow: 0 58px 0 rgba(148, 163, 184, 0.65);
}

.preview-zoom::before {
    left: 10%;
    top: 16%;
    width: 38%;
    height: 52%;
    background: rgba(248, 250, 252, 0.92);
}

.preview-zoom::after {
    right: 10%;
    top: 20%;
    width: 26%;
    height: 26%;
    border: 4px solid rgba(125, 211, 252, 0.9);
    background: rgba(15, 23, 42, 0.6);
}

.preview-floating::before {
    left: 14%;
    top: 22%;
    width: 32%;
    height: 42%;
    background: rgba(248, 250, 252, 0.92);
}

.preview-floating::after {
    right: 12%;
    top: 18%;
    width: 22%;
    height: 18%;
    background: rgba(125, 211, 252, 0.78);
    box-shadow: -18px 44px 0 rgba(125, 211, 252, 0.7), 6px 84px 0 rgba(125, 211, 252, 0.6);
}

.preview-fullbleed {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.5), rgba(6, 182, 212, 0.32));
}

.preview-fullbleed::before {
    left: 18%;
    top: 16%;
    width: 28%;
    height: 54%;
    background: rgba(248, 250, 252, 0.92);
}

.preview-fullbleed::after {
    inset: 0;
    border-radius: 0;
    border: 3px solid rgba(255, 255, 255, 0.28);
}

.preview-air::before {
    left: 24%;
    top: 22%;
    width: 24%;
    height: 40%;
    background: rgba(248, 250, 252, 0.92);
}

.preview-air::after {
    inset: 12%;
    border: 2px dashed rgba(125, 211, 252, 0.56);
    background: transparent;
}

.advanced-option-thumb.template-impact-thumb {
    background:
        linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        linear-gradient(180deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        radial-gradient(circle at 72% 24%, rgba(125, 211, 252, 0.16), transparent 34%),
        rgba(2, 6, 23, 0.78);
    background-size: 20% 20%, 20% 20%, auto, auto;
}

.template-impact-thumb::before,
.template-impact-thumb::after {
    content: none;
    display: none;
}

.template-impact-region {
    position: absolute;
    box-sizing: border-box;
    border: 1px solid rgba(125, 211, 252, 0.78);
    border-radius: 6px;
    background: rgba(56, 189, 248, 0.22);
    box-shadow: 0 0 0 1px rgba(2, 6, 23, 0.28), 0 8px 20px rgba(2, 6, 23, 0.25);
    pointer-events: none;
}

.template-impact-background {
    border-radius: 12px;
    border-color: rgba(139, 92, 246, 0.52);
    background:
        linear-gradient(135deg, rgba(124, 58, 237, 0.24), rgba(14, 165, 233, 0.16)),
        rgba(15, 23, 42, 0.42);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.template-impact-product {
    border-color: rgba(248, 250, 252, 0.85);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(148, 163, 184, 0.74));
}

.template-impact-headline,
.template-impact-subheading {
    border-color: rgba(251, 113, 133, 0.78);
    background: rgba(251, 113, 133, 0.28);
}

.template-impact-callouts,
.template-impact-benefits {
    border-color: rgba(34, 197, 94, 0.76);
    background: rgba(34, 197, 94, 0.22);
}

.template-impact-specifications,
.template-impact-footer {
    border-color: rgba(250, 204, 21, 0.78);
    background: rgba(250, 204, 21, 0.22);
}

.advanced-option-copy {
    display: grid;
    gap: 0.28rem;
}

.advanced-option-copy strong {
    color: var(--text);
    font-size: 0.96rem;
}

.advanced-option-copy span {
    color: var(--muted);
    line-height: 1.45;
    font-size: 0.88rem;
}

.advanced-option-copy .advanced-option-disabled-note {
    color: rgba(226, 232, 240, 0.58);
    font-size: 0.78rem;
    font-weight: 800;
}

.advanced-template-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1rem 1rem;
    flex-wrap: wrap;
}

.advanced-template-actions span {
    color: var(--muted);
    font-size: 0.88rem;
}

.advanced-feature-impact {
    display: grid;
    gap: 0.25rem;
    margin: 0 1rem 1rem;
    border: 1px solid rgba(125, 211, 252, 0.2);
    border-radius: 16px;
    padding: 0.85rem 1rem;
    background: rgba(14, 165, 233, 0.08);
}

.advanced-feature-impact strong {
    color: var(--text);
    font-size: 0.9rem;
}

.advanced-feature-impact span {
    color: var(--muted);
    line-height: 1.45;
    font-size: 0.88rem;
}

.secondary-button {
    border: 1px solid rgba(124, 58, 237, 0.28);
    border-radius: 999px;
    padding: 0.75rem 1rem;
    background: #fff;
    color: #5b21b6;
    font-weight: 800;
    cursor: pointer;
}

.product-upload-funnel .uploaded-funnel-preview {
    width: min(78%, 330px);
    aspect-ratio: 1 / 1;
    margin: auto;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.22);
    background: rgba(255, 255, 255, 0.04);
}

.product-upload-funnel .uploaded-funnel-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    padding: 4px;
}

.product-upload-funnel.product-upload-dropzone {
    border-width: 1px;
}

.legal-card {
    display: grid;
    gap: 1.25rem;
}

.legal-section h2 {
    margin-bottom: 0.35rem;
    font-size: 1.08rem;
}

.legal-section p,
.legal-version {
    color: var(--muted);
    line-height: 1.6;
}

.support-heading {
    align-items: center;
}

.support-heading h1 {
    margin-bottom: 0.75rem;
}

.support-email-link {
    white-space: nowrap;
}

.support-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.7fr);
    gap: 20px;
    align-items: start;
}

.support-faq-card,
.support-question-card {
    display: grid;
    gap: 1rem;
}

.support-faq-list {
    display: grid;
    gap: 0.75rem;
}

.support-faq-item {
    border: 1px solid rgba(125, 211, 252, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
    overflow: hidden;
}

.support-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    color: var(--text);
    cursor: pointer;
    font-weight: 800;
    list-style: none;
}

.support-faq-item summary::-webkit-details-marker {
    display: none;
}

.support-faq-item summary::after {
    content: "+";
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(125, 211, 252, 0.24);
    background: rgba(56, 189, 248, 0.08);
    color: #b8e7ff;
}

.support-faq-item[open] summary::after {
    content: "-";
}

.support-faq-item p {
    margin: 0;
    padding: 0 1rem 1rem;
    color: var(--muted);
    line-height: 1.6;
}

.support-form-stack .status-banner,
.support-question-card .status-banner {
    display: grid;
    gap: 0.35rem;
}

.support-question-area {
    min-height: 150px;
}

.optional-pill {
    display: inline-flex;
    margin-left: 0.35rem;
    padding: 0.18rem 0.5rem;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

@media (max-width: 980px) {
    .support-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .support-heading {
        align-items: stretch;
    }

    .support-email-link {
        width: 100%;
        text-align: center;
    }

    .support-faq-item summary {
        align-items: start;
    }
}

/* Mobile usability pass: compact navigation, clearer auth handoff, and safer debug chrome. */
.route-handoff-card {
    display: grid;
    gap: 1rem;
    max-width: 620px;
    margin: 0 auto;
}

.route-handoff-card h1 {
    margin: 0;
    font-size: clamp(2rem, 6vw, 3.2rem);
    line-height: 0.98;
}

.terms-check-row {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: start;
    gap: 0.75rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(125, 211, 252, 0.2);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
    color: rgba(226, 232, 240, 0.9);
    line-height: 1.35;
}

.terms-check-row input,
.terms-checkbox {
    width: 20px;
    height: 20px;
    margin: 0.1rem 0 0;
}

.terms-check-row span {
    min-width: 0;
}

@media (max-width: 720px) {
    .aj-shell,
    .site-shell {
        padding: 10px 12px 18px;
    }

    .aj-main,
    .site-main {
        padding-top: 16px;
    }

    .aj-topnav,
    .site-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px 10px;
        border-radius: 18px;
        padding: 10px 10px 9px;
    }

    .aj-brand,
    .site-brand {
        flex: 0 0 auto;
        gap: 9px;
        min-width: 0;
    }

    .aj-brand-mark,
    .brand-mark {
        width: 42px;
        height: 42px;
        border-radius: 13px;
    }

    .aj-brand strong,
    .brand-title {
        font-size: 0.98rem;
    }

    .aj-brand small,
    .brand-subtitle {
        display: none;
    }

    .aj-navlinks,
    .site-nav {
        display: contents;
    }

    .aj-navlinks > a[href="/#how"],
    .aj-navlinks > a[href="/builder"]:not(.aj-btn) {
        display: none;
    }

    .aj-navlinks.is-authenticated > a[href="/pricing"]:not(.aj-current-plan-chip) {
        display: none;
    }

    .aj-navlinks > a:not(.aj-btn),
    .site-nav > a:not(.primary-link),
    .aj-current-plan-chip {
        justify-self: start;
        min-height: 36px;
        padding: 0.48rem 0.72rem;
        font-size: 0.84rem;
    }

    .aj-current-plan-chip {
        gap: 0.32rem;
    }

    .aj-current-plan-chip span {
        display: none;
    }

    .aj-btn.small {
        min-height: 36px;
        padding: 0.48rem 0.72rem;
        font-size: 0.86rem;
    }

    .aj-navlinks .aj-btn-primary {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        min-width: 92px;
    }

    .aj-navlinks > a[href="/examples"] {
        grid-column: 1;
        grid-row: 2;
    }

    .aj-navlinks > a[href="/pricing"] {
        grid-column: 1;
        grid-row: 3;
        justify-self: start;
    }

    .aj-navlinks > a[href="/jobs"] {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
    }

    .aj-navlinks.is-authenticated > a[href="/jobs"] {
        grid-column: 1;
        justify-self: start;
    }

    .aj-navlinks.is-authenticated > a[href="/examples"],
    .aj-navlinks.is-authenticated > a[href="/support"] {
        display: none;
    }

    .aj-navlinks > a[href="/support"] {
        grid-column: 2;
        grid-row: 3;
        justify-self: end;
    }

    .aj-user-chip {
        display: none;
    }

    .aj-navlinks.is-authenticated .aj-btn-ghost {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
        width: auto;
        min-width: 0;
        min-height: 36px;
        padding: 0.48rem 0.72rem;
    }

    .aj-navlinks.is-authenticated > .aj-current-plan-chip {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        max-width: 9.6rem;
        overflow: hidden;
    }

    .aj-hero-v4 {
        padding-top: 10px;
        gap: 20px;
    }

    .aj-hero-copy h1 {
        font-size: clamp(2.25rem, 10.5vw, 3.35rem);
        line-height: 0.94;
        margin-bottom: 16px;
    }

    .aj-lead,
    .hero-copy,
    .section-copy {
        line-height: 1.52;
    }

    .aj-actions,
    .hero-actions,
    .cta {
        gap: 10px;
        margin-top: 18px;
    }

    .aj-actions .aj-btn,
    .hero-actions .primary-link,
    .hero-actions .ghost-link,
    .primary-button,
    .ghost-button {
        min-height: 48px;
    }

    .live-hero,
    .hero-transform-card,
    .aj-studio-card {
        border-radius: 20px;
    }

    .aj-transform-grid {
        grid-template-rows: auto auto auto;
        gap: 12px;
    }

    .aj-upload-demo,
    .aj-sheet-demo {
        min-height: 220px;
        padding: 18px;
    }

    .aj-sheet-demo-real {
        align-items: center;
        padding: 42px 18px 18px;
    }

    .aj-sheet-demo-real img {
        aspect-ratio: auto;
        max-height: 220px;
    }

    .login-form-card,
    .accent-card,
    .route-handoff-card {
        padding: 24px;
        border-radius: 22px;
    }

    .login-form-card h2,
    .accent-card h1 {
        font-size: clamp(1.75rem, 8vw, 2.35rem);
        line-height: 1.05;
    }

    .product-upload-dropzone {
        min-height: 240px;
        margin-block: 14px 10px;
    }

    .trial-banner {
        gap: .75rem;
    }

    .status-page-heading.clean-output-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .aipp-home-examples {
        margin: 1.25rem auto;
        padding: 1rem;
    }

    .terms-check-row {
        grid-template-columns: 24px minmax(0, 1fr);
        padding: 0.9rem;
    }

}

@media (min-width: 721px) and (max-width: 1040px) {
    .aj-shell,
    .site-shell {
        padding: 18px;
    }

    .aj-main,
    .site-main {
        padding-top: 18px;
    }

    .aj-topnav,
    .site-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px 18px;
        border-radius: 22px;
        padding: 14px 18px;
    }

    .aj-brand,
    .site-brand {
        min-width: 0;
    }

    .aj-navlinks,
    .site-nav {
        display: contents;
    }

    .aj-navlinks > a[href="/builder"]:not(.aj-btn) {
        display: none;
    }

    .aj-navlinks > a:not(.aj-btn),
    .site-nav > a:not(.primary-link),
    .aj-current-plan-chip {
        min-height: 40px;
        padding: 0.58rem 0.78rem;
        font-size: 0.9rem;
    }

    .aj-current-plan-chip span {
        display: none;
    }

    .aj-navlinks .aj-btn-primary {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        min-width: 96px;
    }

    .aj-navlinks > a[href="/examples"] {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
    }

    .aj-navlinks > a[href="/#how"] {
        grid-column: 1;
        grid-row: 2;
        justify-self: center;
    }

    .aj-navlinks > a[href="/jobs"] {
        grid-column: 2;
        grid-row: 2;
        justify-self: center;
    }

    .aj-navlinks > a[href="/pricing"] {
        grid-column: 2;
        grid-row: 3;
        justify-self: end;
    }

    .aj-current-plan-chip {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .aj-navlinks.is-authenticated .aj-user-chip {
        grid-column: 1;
        grid-row: 3;
        justify-self: start;
        max-width: min(100%, 220px);
    }

    .aj-navlinks.is-authenticated .aj-current-plan-chip {
        grid-column: 2;
        grid-row: 3;
        justify-self: end;
    }

    .aj-navlinks.is-authenticated .aj-btn-ghost {
        grid-column: 2;
        grid-row: 4;
        justify-self: end;
        width: auto;
        min-width: 0;
        min-height: 38px;
        padding: 0.5rem 0.72rem;
    }

    .aj-hero-v4 {
        min-height: auto;
        padding-top: 22px;
        gap: 24px;
    }

    .aj-hero-copy h1 {
        font-size: clamp(3rem, 7.2vw, 4.45rem);
        line-height: 0.94;
    }

    .two-column-shell {
        grid-template-columns: 1fr;
    }

    .login-form-card,
    .accent-card {
        padding: 26px;
    }
}

@media (min-width: 1041px) and (max-height: 840px) {
    .aj-hero-v4 {
        min-height: auto;
        align-items: center;
        padding: 36px 0 16px;
        gap: 26px;
    }

    .aj-hero-copy h1 {
        font-size: clamp(4.1rem, 5.7vw, 5.45rem);
        line-height: 0.92;
        margin-bottom: 16px;
    }

    .aj-lead {
        font-size: 1.02rem;
        line-height: 1.52;
    }

    .aj-actions,
    .hero-actions,
    .cta {
        margin-top: 18px;
    }

    .hero-proof-row,
    .aj-proof-row {
        margin-top: 16px;
    }
}
/* AIPP ADVANCED TEMPLATE TUNING END */


/* Admin launch monitor */
.admin-heading h1 {
    max-width: 760px;
}

.admin-stats-grid .stat-card h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 0.35rem;
}

.admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.admin-control-row {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(120px, 180px) auto;
    gap: 12px;
    align-items: end;
}

.admin-control-label {
    align-self: center;
    color: var(--muted);
}

.admin-select {
    min-height: 46px;
    border-radius: 14px;
}

.admin-section-card {
    margin-top: 20px;
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}

.health-list {
    display: grid;
    gap: 10px;
}

.health-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
}

.health-row:last-child {
    border-bottom: 0;
}

.health-ok,
.health-warning {
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--line);
}

.health-ok {
    color: #b5f5ca;
    border-color: rgba(34, 197, 94, 0.28);
    background: rgba(34, 197, 94, 0.1);
}

.health-warning,
.admin-error-text {
    color: #ffd3d8;
}

.health-warning {
    border-color: rgba(251, 113, 133, 0.28);
    background: rgba(251, 113, 133, 0.1);
}

.table-scroll {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
}

.admin-table th,
.admin-table td {
    padding: 0.9rem 0.8rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: #b8e7ff;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-table small,
.admin-table td span {
    display: block;
}

.admin-log-row td {
    background: rgba(4, 12, 20, 0.52);
}

.admin-user-jobs-row td {
    background: rgba(4, 12, 20, 0.38);
}

.admin-user-jobs-panel {
    display: grid;
    gap: 14px;
    padding: 0.4rem 0;
}

.admin-user-jobs-title {
    margin-bottom: 0;
}

.admin-user-jobs-title h3 {
    margin: 0.25rem 0 0;
    font-size: 1rem;
}

.admin-user-jobs-table {
    min-width: 820px;
}

.compact-admin-link {
    font-size: 0.9rem;
    font-weight: 800;
}

.admin-inline-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.danger-action-button {
    border-color: rgba(248, 113, 113, 0.5);
    color: #fecaca;
}

.danger-action-button:hover,
.danger-action-button:focus-visible {
    border-color: rgba(248, 113, 113, 0.78);
    background: rgba(127, 29, 29, 0.28);
    color: #fff1f2;
}

.job-log-output {
    max-height: 320px;
    overflow: auto;
    margin: 0;
    white-space: pre-wrap;
    color: var(--muted);
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.86rem;
    line-height: 1.55;
}

.compact-action-button {
    padding: 0.5rem 0.8rem;
}

.aj-brand strong,
.brand-title,
.aj-footer > span {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    letter-spacing: 0;
}

@media (max-width: 980px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .section-title-row {
        flex-direction: column;
    }

    .admin-control-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
}
