:root {
    --content-width: 1920px;
    --content-gutter: clamp(1rem, 2.3vw, 2.4rem);
    --paper: #f4f8f1;
    --paper-strong: #fefff8;
    --ink: #0e2430;
    --ink-soft: #173744;
    --muted: #5b7280;
    --line: rgba(14, 36, 48, 0.08);
    --brand-lime: #90d438;
    --brand-lime-soft: #d8f08f;
    --brand-green: #2d7e2d;
    --brand-green-deep: #164d28;
    --brand-teal: #27bdd0;
    --brand-cyan: #bff4f6;
    --brand-navy: #0c2d4f;
    --brand-coral: #ff6659;
    --red: #d71920;
    --red-deep: #a80e16;
    --blue: #1f6bff;
    --blue-soft: #d8e5ff;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: rgba(255, 255, 255, 0.94);
    --shadow: 0 22px 60px rgba(10, 34, 47, 0.12);
    --radius-xl: 32px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--paper);
    color: var(--ink);
    font-family: "Archivo", sans-serif;
}

html[data-theme="dark"] {
    --paper: #07161f;
    --paper-strong: #0d202b;
    --ink: #eefbf7;
    --ink-soft: #cee6df;
    --muted: #91b1b8;
    --line: rgba(238, 251, 247, 0.08);
    --surface: rgba(12, 31, 40, 0.84);
    --surface-strong: rgba(13, 38, 49, 0.94);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

body[data-protected-preview="on"] {
    -webkit-user-select: none;
    user-select: none;
}

img {
    display: block;
    max-width: 100%;
}

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

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

.site-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at top right, rgba(39, 189, 208, 0.18), transparent 28%),
        radial-gradient(circle at top left, rgba(144, 212, 56, 0.2), transparent 32%),
        radial-gradient(circle at 50% 8%, rgba(191, 244, 246, 0.3), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 241, 0.98)),
        repeating-linear-gradient(90deg, rgba(12, 45, 79, 0.026) 0, rgba(12, 45, 79, 0.026) 1px, transparent 1px, transparent 120px);
}

html[data-theme="dark"] .site-bg {
    background:
        radial-gradient(circle at top right, rgba(39, 189, 208, 0.16), transparent 28%),
        radial-gradient(circle at top left, rgba(144, 212, 56, 0.14), transparent 32%),
        radial-gradient(circle at 50% 8%, rgba(39, 189, 208, 0.14), transparent 24%),
        linear-gradient(180deg, rgba(7, 22, 31, 0.98), rgba(8, 27, 37, 0.98)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.028) 0, rgba(255, 255, 255, 0.028) 1px, transparent 1px, transparent 120px);
}

.topbar,
.locale-strip,
.section-block,
.site-footer,
.admin-topbar,
.admin-main {
    width: min(100%, var(--content-width));
    margin-inline: auto;
    padding-inline: var(--content-gutter);
}

.flash-stack,
.hero-panel,
.gate-panel {
    width: min(calc(100% - 2rem), var(--content-width));
    margin-inline: auto;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    padding-top: 1.2rem;
    padding-bottom: 0.6rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.brand-mark {
    width: 4.3rem;
    height: 4.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.5rem;
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.48)),
        linear-gradient(145deg, rgba(144, 212, 56, 0.34), rgba(39, 189, 208, 0.16));
    border: 1px solid rgba(39, 189, 208, 0.2);
    box-shadow: var(--shadow);
}

.brand-logo {
    width: 3.8rem;
    height: 3.8rem;
    object-fit: contain;
}

.brand-copy {
    display: grid;
}

.brand-copy strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.1rem;
    color: var(--brand-navy);
}

.brand-copy small {
    color: var(--muted);
    font-size: 0.92rem;
}

.topnav,
.admin-nav {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.topnav > a:not(.button),
.admin-nav a {
    font-size: 0.95rem;
    color: var(--ink-soft);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown summary {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.72rem 0.95rem;
    border: 1px solid rgba(14, 36, 48, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--ink-soft);
    cursor: pointer;
    user-select: none;
    list-style: none;
    font-size: 0.95rem;
    font-weight: 600;
}

.nav-dropdown summary::-webkit-details-marker {
    display: none;
}

.nav-dropdown summary::after {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.2s ease;
}

.nav-dropdown[open] summary::after {
    transform: rotate(-135deg) translateY(-1px);
}

.nav-dropdown-panel {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    min-width: 240px;
    display: grid;
    gap: 0.35rem;
    padding: 0.6rem;
    border: 1px solid rgba(14, 36, 48, 0.1);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 32px rgba(14, 36, 48, 0.14);
    z-index: 20;
}

.nav-dropdown-panel a {
    display: block;
    padding: 0.72rem 0.8rem;
    border-radius: 0.8rem;
    color: var(--ink-soft);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-dropdown-panel a:hover,
.nav-dropdown-panel a:focus-visible {
    background: rgba(15, 83, 160, 0.08);
    color: var(--ink);
}

.top-search {
    min-width: min(100%, 260px);
}

.top-search input,
.hero-search input {
    width: 100%;
    min-height: 2.85rem;
    border-radius: 999px;
    border: 1px solid rgba(14, 36, 48, 0.12);
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.74);
    color: var(--ink);
}

html[data-theme="dark"] .top-search input,
html[data-theme="dark"] .hero-search input,
html[data-theme="dark"] .search-input,
html[data-theme="dark"] .admin-form input,
html[data-theme="dark"] .admin-form select,
html[data-theme="dark"] .admin-form textarea,
html[data-theme="dark"] .gate-form input,
html[data-theme="dark"] .locale-dropdown select {
    background: rgba(9, 28, 38, 0.88);
    color: var(--ink);
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .brand-copy strong,
html[data-theme="dark"] .stat-card strong,
html[data-theme="dark"] .card-meta a,
html[data-theme="dark"] .back-link,
html[data-theme="dark"] .chip,
html[data-theme="dark"] .price-chip,
html[data-theme="dark"] .topnav > a:not(.button),
html[data-theme="dark"] .admin-nav a,
html[data-theme="dark"] .breadcrumbs a {
    color: var(--ink);
}

html[data-theme="dark"] .nav-dropdown summary,
html[data-theme="dark"] .nav-dropdown-panel {
    background: rgba(10, 31, 41, 0.94);
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .nav-dropdown-panel {
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .nav-dropdown-panel a {
    color: var(--ink);
}

html[data-theme="dark"] .nav-dropdown-panel a:hover,
html[data-theme="dark"] .nav-dropdown-panel a:focus-visible {
    background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .brand-copy small,
html[data-theme="dark"] .compact-summary {
    color: var(--ink-soft);
}

html[data-theme="dark"] .button-ghost {
    background: rgba(39, 189, 208, 0.16);
    color: var(--ink);
    border-color: rgba(39, 189, 208, 0.3);
}

html[data-theme="dark"] .chip {
    background: rgba(39, 189, 208, 0.18);
    border-color: rgba(39, 189, 208, 0.24);
}

html[data-theme="dark"] .chip-style {
    background: rgba(144, 212, 56, 0.18);
    border-color: rgba(144, 212, 56, 0.24);
}

html[data-theme="dark"] .hero-panel,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .media-plate,
html[data-theme="dark"] .preview-frame,
html[data-theme="dark"] .mini-card,
html[data-theme="dark"] .mini-card img,
html[data-theme="dark"] .pricing-table-wrap,
html[data-theme="dark"] .flash,
html[data-theme="dark"] .admin-topbar,
html[data-theme="dark"] .admin-disclosure,
html[data-theme="dark"] .locale-panel,
html[data-theme="dark"] .upload-dropzone,
html[data-theme="dark"] .draft-card,
html[data-theme="dark"] .batch-card,
html[data-theme="dark"] .batch-card-media,
html[data-theme="dark"] .validation-block {
    background:
        linear-gradient(145deg, rgba(15, 39, 51, 0.96), rgba(8, 26, 35, 0.94)),
        rgba(10, 31, 41, 0.9);
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .pricing-table thead th {
    background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .admin-shell {
    background: #07161f;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 2.8rem;
    padding: 0.82rem 1.2rem;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: linear-gradient(135deg, var(--brand-green), var(--brand-lime));
    color: white;
    box-shadow: 0 16px 30px rgba(45, 126, 45, 0.22);
}

.button-secondary {
    background: linear-gradient(135deg, var(--brand-navy), #174a66);
    color: white;
}

.button-outline {
    border-color: rgba(14, 36, 48, 0.14);
    background: rgba(255, 255, 255, 0.7);
}

.button-ghost {
    border-color: rgba(39, 189, 208, 0.25);
    color: var(--brand-navy);
    background: rgba(39, 189, 208, 0.08);
}

.button-theme-toggle {
    border-color: rgba(14, 36, 48, 0.14);
    background: rgba(255, 255, 255, 0.6);
    color: var(--ink-soft);
}

html[data-theme="dark"] .button-outline,
html[data-theme="dark"] .button-theme-toggle,
html[data-theme="dark"] .page-pill {
    background: rgba(10, 31, 41, 0.86);
    color: var(--ink);
    border-color: rgba(255, 255, 255, 0.08);
}

.locale-strip {
    display: flex;
    justify-content: flex-end;
    padding-bottom: 0.9rem;
}

.locale-dropdown {
    display: grid;
    gap: 0.35rem;
    min-width: min(100%, 220px);
}

.locale-dropdown span {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
}

.locale-dropdown select {
    width: 100%;
    border: 1px solid rgba(8, 8, 8, 0.1);
    border-radius: 999px;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink-soft);
    box-shadow: var(--shadow);
}

.hero-panel,
.gate-panel,
.admin-card,
.pricing-editor-card,
.stat-card,
.category-card,
.clipart-card,
.extra-card,
.info-card,
.purchase-box,
.preview-frame,
.flash {
    border: 1px solid rgba(8, 8, 8, 0.06);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.hero-panel {
    margin: 0 auto 1rem;
    padding: clamp(1.4rem, 4vw, 3rem);
    border-radius: 2.1rem;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.9), rgba(244, 248, 241, 0.97)),
        linear-gradient(120deg, rgba(39, 189, 208, 0.08), rgba(144, 212, 56, 0.11));
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.6rem;
    overflow: hidden;
}

.hero-panel-home {
    align-items: center;
}

.eyebrow {
    margin: 0 0 0.8rem;
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brand-green);
    font-weight: 700;
}

.hero-copy h1,
.page-intro h1,
.clipart-sidebar h1,
.empty-state h1,
.admin-card h1 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.2rem, 6vw, 4.7rem);
    line-height: 0.95;
    max-width: 12ch;
}

.lead {
    max-width: 66ch;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-top: 1.4rem;
}

.hero-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.8rem;
    margin-top: 1.4rem;
    max-width: 720px;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-self: end;
}

.hero-visual {
    display: grid;
    gap: 1rem;
}

.hero-art {
    position: relative;
    min-height: 400px;
    display: grid;
    place-items: center;
    border-radius: 2rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.62) 34%, rgba(191, 244, 246, 0.46) 60%, rgba(39, 189, 208, 0.18) 100%),
        linear-gradient(145deg, rgba(144, 212, 56, 0.2), rgba(39, 189, 208, 0.16));
    border: 1px solid rgba(39, 189, 208, 0.14);
}

.hero-glow {
    position: absolute;
    inset: auto 18% 3% 18%;
    height: 22%;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(12, 45, 79, 0.18), transparent 68%);
    filter: blur(12px);
}

.hero-orbit {
    position: absolute;
    border-radius: 999px;
    border: 3px solid rgba(12, 45, 79, 0.12);
    pointer-events: none;
}

.hero-orbit::after,
.hero-orbit::before {
    content: "";
    position: absolute;
    width: 0.95rem;
    height: 0.95rem;
    border-radius: 999px;
    background: var(--brand-teal);
    border: 2px solid white;
    box-shadow: 0 6px 18px rgba(12, 45, 79, 0.14);
}

.hero-orbit-a {
    width: 72%;
    height: 38%;
    top: 5%;
    right: -4%;
    transform: rotate(7deg);
}

.hero-orbit-a::before {
    top: 24%;
    left: 7%;
}

.hero-orbit-a::after {
    right: 11%;
    bottom: 18%;
}

.hero-orbit-b {
    width: 58%;
    height: 36%;
    top: 23%;
    left: -10%;
    transform: rotate(-18deg);
    border-color: rgba(39, 189, 208, 0.22);
}

.hero-orbit-b::before {
    left: 10%;
    top: 34%;
}

.hero-orbit-b::after {
    right: 8%;
    bottom: 12%;
}

.hero-mascot {
    position: relative;
    z-index: 1;
    width: min(100%, 440px);
    max-height: 440px;
    object-fit: contain;
    filter: drop-shadow(0 24px 36px rgba(12, 45, 79, 0.18));
}

.stat-card {
    padding: 1.2rem;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.74)),
        linear-gradient(145deg, rgba(191, 244, 246, 0.1), rgba(144, 212, 56, 0.08));
}

.stat-card strong {
    display: block;
    font-family: "Space Grotesk", sans-serif;
    font-size: 2.1rem;
    color: var(--brand-navy);
}

.stat-card span {
    color: var(--muted);
}

.section-block {
    padding-top: 1.4rem;
    padding-bottom: 1.6rem;
}

.breadcrumbs {
    width: min(calc(100% - 2rem), var(--content-width));
    margin: 0.4rem auto 0;
    padding-inline: 0.2rem;
    display: flex;
    gap: 0.55rem;
    align-items: center;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.92rem;
}

.breadcrumbs a {
    color: var(--ink-soft);
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1.3rem;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-family: "Space Grotesk", sans-serif;
}

.search-input,
.admin-form input,
.admin-form select,
.admin-form textarea,
.gate-form input {
    width: 100%;
    border: 1px solid rgba(8, 8, 8, 0.12);
    border-radius: 1rem;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.78);
}

.category-grid,
.clipart-grid,
.extras-grid,
.admin-grid {
    display: grid;
    gap: 1rem;
}

.category-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.clipart-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.extras-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.admin-grid {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.taxonomy-grid,
.mini-grid {
    display: grid;
    gap: 1rem;
}

.taxonomy-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.mini-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.category-card,
.clipart-card,
.extra-card,
.admin-card,
.gate-panel,
.purchase-box,
.info-card,
.preview-frame {
    border-radius: var(--radius-xl);
    background: var(--surface);
}

.category-card,
.clipart-card {
    overflow: hidden;
}

.media-plate {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background:
        linear-gradient(145deg, rgba(39, 189, 208, 0.12), rgba(144, 212, 56, 0.12)),
        rgba(255, 255, 255, 0.82);
}

.media-plate img,
.preview-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: clamp(0.28rem, 1vw, 0.75rem);
}

.watermark {
    position: absolute;
    inset: auto 0 48%;
    display: block;
    text-align: center;
    transform: rotate(-17deg);
    font-family: "Space Grotesk", sans-serif;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    font-size: clamp(0.7rem, 1.2vw, 1rem);
    font-weight: 700;
    color: rgba(8, 8, 8, 0.16);
    pointer-events: none;
}

.watermark.large {
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%) rotate(-18deg);
    font-size: clamp(1.05rem, 2vw, 1.7rem);
    white-space: nowrap;
}

.card-copy,
.preview-frame,
.purchase-box,
.info-card,
.gate-panel,
.admin-card {
    padding: 1.2rem;
}

.card-copy h3 {
    margin: 0 0 0.55rem;
    font-size: 1.15rem;
}

.chip-row {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-top: 0.8rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(39, 189, 208, 0.09);
    color: var(--brand-navy);
    border: 1px solid rgba(39, 189, 208, 0.16);
    font-size: 0.83rem;
    font-weight: 700;
}

.chip-style {
    background: rgba(144, 212, 56, 0.12);
    border-color: rgba(144, 212, 56, 0.18);
}

.card-copy p,
.gate-copy p,
.purchase-box p,
.info-card p,
.admin-card p {
    color: var(--muted);
    line-height: 1.6;
}

.label {
    color: var(--brand-green);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
}

.card-meta,
.footer-note,
.row-actions,
.swatch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.card-meta {
    margin-top: 1rem;
    font-size: 0.92rem;
}

.card-meta a,
.back-link {
    color: var(--brand-navy);
    font-weight: 700;
}

.swatch-row {
    justify-content: flex-start;
}

.swatch {
    display: inline-block;
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 999px;
    border: 1px solid rgba(8, 8, 8, 0.12);
    background: var(--swatch, #000);
}

.swatch-link {
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.swatch-link:hover,
.swatch-link:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 0 0 3px rgba(16, 196, 255, 0.2);
}

.gate-panel,
.clipart-page {
    display: grid;
    gap: 1.2rem;
}

.taxonomy-card,
.mini-card {
    border: 1px solid rgba(14, 36, 48, 0.07);
    box-shadow: var(--shadow);
}

.taxonomy-card {
    padding: 1.2rem;
    border-radius: var(--radius-xl);
    background: var(--surface);
}

.taxonomy-card h3 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
}

.dual-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.mini-card {
    display: grid;
    gap: 0.75rem;
    padding: 0.9rem;
    border-radius: 1.4rem;
    background: var(--surface);
}

.mini-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 1rem;
    background: linear-gradient(145deg, rgba(39, 189, 208, 0.12), rgba(144, 212, 56, 0.12)), rgba(255, 255, 255, 0.84);
    padding: 0.75rem;
}

.search-layout {
    display: grid;
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
    gap: 1.2rem;
    align-items: start;
}

.search-sidebar {
    position: sticky;
    top: 1rem;
    display: grid;
    gap: 1rem;
}

.search-results-wrap {
    display: grid;
    gap: 1rem;
}

.favorite-form {
    margin-top: 0.85rem;
}

.gate-panel {
    grid-template-columns: 1.1fr 0.9fr;
}

.gate-form,
.admin-form {
    display: grid;
    gap: 1rem;
}

.clipart-page {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    align-items: start;
}

.preview-frame {
    position: relative;
    min-height: 540px;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(39, 189, 208, 0.11), rgba(144, 212, 56, 0.09)),
        rgba(255, 255, 255, 0.86);
}

.preview-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.55rem 0.75rem;
    border-radius: 999px;
    background: rgba(8, 8, 8, 0.9);
    color: white;
    font-size: 0.84rem;
}

.clipart-sidebar {
    display: grid;
    gap: 1rem;
}

.compact-section {
    padding-top: 0.5rem;
}

.compact-head {
    align-items: center;
}

.compact-summary {
    color: var(--muted);
    font-weight: 600;
}

.clipart-grid-compact {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.85rem;
}

.clipart-card-compact {
    border-radius: 1.2rem;
}

.compact-media-plate {
    aspect-ratio: 1 / 1;
}

.clipart-grid-compact .compact-media-plate img {
    padding: 0.12rem;
    image-rendering: auto;
}

.compact-watermark {
    inset: auto 0 50%;
    font-size: clamp(0.5rem, 0.7vw, 0.72rem);
    letter-spacing: 0.16em;
}

.compact-card-copy {
    padding: 0.8rem 0.85rem 0.9rem;
}

.compact-card-copy h3 {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.25;
    min-height: 2.35em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.compact-swatch-row {
    margin-top: 0.6rem;
    gap: 0.45rem;
}

.compact-swatch-row .swatch {
    width: 0.85rem;
    height: 0.85rem;
}

.compact-card-meta {
    margin-top: 0.65rem;
    font-size: 0.83rem;
    gap: 0.45rem;
}

.compact-card-meta a {
    font-size: 0.8rem;
}

.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-top: 1.2rem;
}

.page-pill {
    min-width: 2.6rem;
    min-height: 2.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(8, 8, 8, 0.1);
    background: rgba(255, 255, 255, 0.82);
    font-weight: 700;
    color: var(--ink-soft);
}

.page-pill.is-active {
    background: linear-gradient(135deg, var(--brand-green), var(--brand-lime));
    color: white;
    border-color: transparent;
    box-shadow: 0 14px 24px rgba(45, 126, 45, 0.22);
}

.price-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 6.2rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(39, 189, 208, 0.12);
    color: var(--brand-navy);
    font-weight: 800;
}

.color-list,
.admin-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.8rem;
}

.color-list li,
.admin-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    justify-content: space-between;
}

.pricing-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow);
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.pricing-table thead th {
    background: rgba(8, 8, 8, 0.04);
}

.extras-band .extra-card {
    padding: 1.1rem 1.2rem;
    font-weight: 700;
}

.flash-stack {
    display: grid;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
}

.flash {
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.88);
}

.flash-success {
    border-left: 4px solid #1d8f51;
}

.flash-error {
    border-left: 4px solid var(--red);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    color: var(--muted);
}

.admin-shell {
    background: #f2eee8;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(8, 8, 8, 0.07);
    background: rgba(255, 255, 255, 0.84);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(12px);
}

.admin-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}

.admin-brand-logo {
    width: 2.8rem;
    height: 2.8rem;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(15, 83, 160, 0.16));
}

.admin-brand-copy {
    display: grid;
    gap: 0.1rem;
}

.admin-brand-copy strong {
    font-size: 1rem;
    line-height: 1.2;
}

.admin-brand-copy small {
    color: var(--muted);
    line-height: 1.35;
}

.admin-nav a {
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.admin-nav a:hover,
.admin-nav a:focus-visible {
    background: rgba(15, 83, 160, 0.08);
    color: var(--ink);
    transform: translateY(-1px);
}

.admin-main {
    padding-top: 1.2rem;
    padding-bottom: 2rem;
}

.admin-dashboard-shell,
.admin-stack,
.admin-overview-actions {
    display: grid;
    gap: 1rem;
}

.admin-overview-card {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
    gap: 1.2rem;
    align-items: end;
}

.admin-overview-copy h1 {
    margin-bottom: 0.65rem;
}

.admin-overview-copy p:last-child {
    margin-bottom: 0;
}

.admin-overview-actions {
    align-self: stretch;
}

.admin-overview-actions .button {
    justify-content: center;
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.admin-stat-card {
    display: grid;
    gap: 0.35rem;
    padding: 1rem 1.05rem;
    border-radius: 1.15rem;
    border: 1px solid rgba(15, 83, 160, 0.12);
    background: rgba(255, 255, 255, 0.7);
}

.admin-stat-label {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.admin-stat-value {
    font-family: "Space Grotesk", sans-serif;
    font-size: 2rem;
    line-height: 1;
}

.admin-stat-meta {
    color: var(--muted);
    font-size: 0.92rem;
}

.admin-section-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(290px, 1fr);
    gap: 1rem;
    align-items: start;
}

.admin-card {
    padding: 1.25rem;
}

.admin-card-head {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.admin-card h2 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
}

.admin-card-intro {
    margin: 0.35rem 0 0;
    max-width: 64ch;
}

.admin-empty-copy {
    margin: 0;
    padding: 1rem;
    border: 1px dashed rgba(15, 83, 160, 0.18);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.55);
}

.admin-mini-note {
    margin: 0.85rem 0 0;
    font-size: 0.92rem;
    color: var(--muted);
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-page-head,
.button-row,
.draft-card,
.upload-dropzone,
.batch-card,
.validation-block {
    display: flex;
    gap: 1rem;
}

.admin-page-head,
.draft-card {
    justify-content: space-between;
    align-items: flex-start;
}

.admin-page-head {
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.button-row {
    align-items: center;
    flex-wrap: wrap;
}

.admin-help {
    color: var(--muted);
    margin: 0;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.admin-table th,
.admin-table td {
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.admin-preview-cell {
    display: grid;
    gap: 0.45rem;
    min-width: 84px;
}

.admin-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 1rem;
    border: 1px solid rgba(8, 8, 8, 0.1);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 24px rgba(9, 21, 37, 0.08);
}

.admin-thumb-category {
    aspect-ratio: 1 / 1;
}

.admin-live-note,
.admin-preview-panel {
    border: 1px solid rgba(8, 8, 8, 0.08);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.72);
    padding: 1rem 1.1rem;
}

.admin-live-note {
    display: grid;
    gap: 0.35rem;
}

.admin-preview-panel {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
    align-items: center;
}

.admin-preview-panel__media {
    display: flex;
    justify-content: center;
}

.admin-editor-preview {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 1.25rem;
    border: 1px solid rgba(8, 8, 8, 0.1);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(173, 203, 255, 0.35));
    box-shadow: 0 18px 36px rgba(9, 21, 37, 0.12);
    padding: 0.85rem;
}

.admin-preview-panel__meta {
    display: grid;
    gap: 0.35rem;
}

.admin-preview-panel__meta p,
.admin-preview-panel__meta small,
.admin-preview-cell small {
    margin: 0;
}

.admin-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    background: rgba(15, 83, 160, 0.08);
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
}

.admin-checklist {
    margin: 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.72rem;
    color: var(--muted);
}

.row-actions form {
    margin: 0;
}

.row-actions a {
    padding: 0.28rem 0.55rem;
    border-radius: 0.75rem;
    background: rgba(15, 83, 160, 0.06);
    color: var(--ink);
    text-decoration: none;
}

.row-actions a:hover,
.row-actions a:focus-visible {
    background: rgba(15, 83, 160, 0.14);
}

.row-actions button {
    border: none;
    background: transparent;
    color: var(--red);
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.row-actions button:hover,
.row-actions button:focus-visible {
    opacity: 0.8;
}

html[data-theme="dark"] .admin-stat-card,
html[data-theme="dark"] .admin-empty-copy,
html[data-theme="dark"] .row-actions a,
html[data-theme="dark"] .admin-pill {
    background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .admin-live-note,
html[data-theme="dark"] .admin-preview-panel,
html[data-theme="dark"] .admin-thumb,
html[data-theme="dark"] .admin-editor-preview {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .admin-stat-card,
html[data-theme="dark"] .admin-empty-copy {
    border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .admin-nav a:hover,
html[data-theme="dark"] .admin-nav a:focus-visible {
    background: rgba(255, 255, 255, 0.08);
}

.form-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

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

.checkbox-line {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}

.checkbox-line input {
    width: auto;
}

.translations-stack,
.pricing-editor {
    display: grid;
    gap: 1rem;
}

.admin-disclosure {
    border: 1px solid rgba(8, 8, 8, 0.08);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.68);
    padding: 0.8rem 1rem 1rem;
}

.admin-disclosure summary {
    cursor: pointer;
    font-weight: 700;
}

.locale-panel {
    border: 1px solid rgba(8, 8, 8, 0.08);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.68);
    padding: 0.25rem 1rem 1rem;
}

.locale-panel summary {
    cursor: pointer;
    padding: 0.8rem 0 0.6rem;
    font-weight: 700;
}

.upload-dropzone {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.3rem;
    border-radius: 1.4rem;
    border: 1px dashed rgba(8, 8, 8, 0.18);
    background:
        linear-gradient(145deg, rgba(39, 189, 208, 0.05), rgba(144, 212, 56, 0.05)),
        rgba(255, 255, 255, 0.7);
}

.upload-dropzone p {
    margin: 0;
    color: var(--muted);
}

.admin-draft-list,
.batch-review-grid {
    display: grid;
    gap: 1rem;
}

.draft-card,
.batch-card {
    padding: 1rem;
    border: 1px solid rgba(8, 8, 8, 0.08);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.78);
}

.draft-card p {
    margin: 0.3rem 0 0;
    color: var(--muted);
}

.batch-review-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.batch-card {
    flex-direction: column;
}

.batch-card-media {
    position: relative;
    min-height: 220px;
    border-radius: 1rem;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(39, 189, 208, 0.1), rgba(144, 212, 56, 0.08)),
        rgba(255, 255, 255, 0.86);
}

.batch-card-media img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: contain;
    padding: 1rem;
}

.batch-card-copy {
    display: grid;
    gap: 1rem;
}

.validation-block {
    flex-direction: column;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    border: 1px solid rgba(215, 25, 32, 0.15);
    background: rgba(215, 25, 32, 0.06);
    margin-bottom: 1rem;
}

.validation-block ul {
    margin: 0;
    padding-left: 1.1rem;
}

.empty-state {
    display: grid;
    gap: 1rem;
    justify-items: start;
}

.capture-toast {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 40;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: rgba(8, 8, 8, 0.92);
    color: white;
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity 180ms ease, transform 180ms ease;
    pointer-events: none;
}

.capture-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

body.capture-warning .media-plate img,
body.capture-warning .preview-frame img {
    filter: blur(10px) grayscale(0.2);
}

.admin-bulk-bar,
.account-balance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.account-shell {
    display: grid;
    gap: 1.25rem;
}

.account-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

@media print {
    body {
        display: none !important;
    }
}

@media (max-width: 1080px) {
    .hero-panel,
    .gate-panel,
    .clipart-page,
    .search-layout,
    .dual-sections {
        grid-template-columns: 1fr;
    }

    .hero-art {
        min-height: 320px;
    }

    .preview-frame {
        min-height: 400px;
    }

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

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

@media (max-width: 680px) {
    .clipart-grid-compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .topbar,
    .site-footer,
    .section-head,
    .admin-page-head,
    .draft-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-preview-panel {
        grid-template-columns: 1fr;
    }

    .admin-overview-card,
    .admin-section-grid,
    .account-info-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        width: min(calc(100% - 1.2rem), var(--content-width));
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown summary {
        width: 100%;
        justify-content: space-between;
    }

    .nav-dropdown-panel {
        position: static;
        margin-top: 0.55rem;
        min-width: 0;
        width: 100%;
    }

    .locale-strip {
        justify-content: stretch;
    }

    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-search {
        grid-template-columns: 1fr;
    }

    .brand-mark {
        width: 3.5rem;
        height: 3.5rem;
    }

    .brand-logo {
        width: 3rem;
        height: 3rem;
    }

    .hero-art {
        min-height: 280px;
    }

    .preview-frame {
        min-height: 300px;
    }
}

@media (max-width: 460px) {
    .clipart-grid-compact {
        grid-template-columns: 1fr;
    }
}
