﻿:root {
    --bg: #f2efe8;
    --bg-soft: #e9e2d7;
    --surface: #fffdf9;
    --surface-2: #f7f2e9;
    --ink: #1d1b19;
    --muted: #6b665f;
    --border: #d8d2c7;
    --accent: #cc5a2f;
    --accent-2: #234a9f;
    --success: #1f7d3c;
    --danger: #a3261f;
    --shadow: 0 14px 36px #00000014;
}

/* Shirt-Lab Theme */
:root {
    --bg: #edf4f7;
    --bg-soft: #dceaf0;
    --surface: #f7fcff;
    --surface-2: #ecf7fb;
    --ink: #0f1e28;
    --muted: #4d6575;
    --border: #bdd5df;
    --accent: #1aa8c4;
    --accent-2: #2f78d5;
    --success: #1eaa74;
    --danger: #d45757;
    --shadow: 0 16px 36px #06202c1a;
}

:root[data-theme='dark'] {
    --bg: #060d12;
    --bg-soft: #0d1822;
    --surface: #0e1a25;
    --surface-2: #132433;
    --ink: #e7f4ff;
    --muted: #8aa5b8;
    --border: #244157;
    --accent: #2ed6ef;
    --accent-2: #66a7ff;
    --success: #34d08f;
    --danger: #ff7f7f;
    --shadow: 0 22px 46px #0000006e;
}

body {
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(circle at 12% 4%, color-mix(in oklab, var(--accent), transparent 85%), transparent 36%),
        radial-gradient(circle at 88% 18%, color-mix(in oklab, var(--accent-2), transparent 88%), transparent 30%),
        linear-gradient(180deg, var(--bg), color-mix(in oklab, var(--bg), black 4%));
    font-family: "Manrope", sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0.34;
    background:
        linear-gradient(to right, color-mix(in oklab, var(--border), transparent 72%) 1px, transparent 1px),
        linear-gradient(to bottom, color-mix(in oklab, var(--border), transparent 72%) 1px, transparent 1px);
    background-size: 34px 34px;
}

.site-header {
    background: color-mix(in oklab, var(--surface), transparent 6%);
    border-bottom: 1px solid color-mix(in oklab, var(--accent), var(--border) 75%);
    box-shadow: 0 10px 30px #02111b17;
}

.brand {
    letter-spacing: 0.08em;
}

.brand-logo {
    border-radius: 12px;
    border-color: color-mix(in oklab, var(--accent), var(--border) 72%);
    background: #fff;
}

.brand-copy small,
.section-kicker,
.control-step {
    font-family: "IBM Plex Mono", monospace;
    letter-spacing: 0.08em;
}

.panel,
.admin-surface-card,
.admin-item,
.card,
.control-card {
    border-color: color-mix(in oklab, var(--accent), var(--border) 78%);
    background:
        linear-gradient(165deg, color-mix(in oklab, var(--surface), transparent 0%), color-mix(in oklab, var(--surface-2), transparent 6%));
}

.hero {
    position: relative;
    overflow: clip;
    border-color: color-mix(in oklab, var(--accent), var(--border) 68%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--accent), white 10%), transparent);
}

.hero-cta-primary,
button[type='submit'],
.share-btn {
    border-color: color-mix(in oklab, var(--accent), black 18%);
    background: linear-gradient(135deg, color-mix(in oklab, var(--accent), white 3%), color-mix(in oklab, var(--accent-2), var(--accent) 35%));
    color: #f7fcff;
}

.hero-cta-secondary,
.share-link {
    border-color: color-mix(in oklab, var(--accent), var(--border) 65%);
}

.category-rail-btn.is-active,
.admin-nav-btn.is-active {
    background: linear-gradient(140deg, color-mix(in oklab, var(--accent), white 18%), color-mix(in oklab, var(--accent-2), var(--accent) 44%));
    border-color: color-mix(in oklab, var(--accent), var(--accent-2) 36%);
    color: #f6fdff;
}

.tshirt-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 22% 12%, #ffffff22, transparent 40%),
        radial-gradient(circle at 78% 88%, #2ed6ef18, transparent 42%);
}

:root[data-theme='dark'] {
    --bg: #101216;
    --bg-soft: #181b22;
    --surface: #171b22;
    --surface-2: #1f2530;
    --ink: #f5f7fb;
    --muted: #a9b1c0;
    --border: #2f3644;
    --accent: #f07a44;
    --accent-2: #7aa9ff;
    --success: #53c97d;
    --danger: #ff7f73;
    --shadow: 0 16px 42px #00000060;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    overflow-x: clip;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 12%, color-mix(in oklab, var(--bg-soft), transparent 40%), transparent 36%),
        radial-gradient(circle at 90% 8%, color-mix(in oklab, var(--accent), transparent 88%), transparent 28%),
        linear-gradient(180deg, var(--bg), color-mix(in oklab, var(--bg), black 3%));
    font-family: "Space Grotesk", sans-serif;
    letter-spacing: 0.01em;
    overflow-x: hidden;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.3rem;
    border-bottom: 1px solid var(--border);
    background: color-mix(in oklab, var(--surface), transparent 8%);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 30;
}

.brand {
    color: var(--ink);
    text-decoration: none;
    font-family: "Sora", sans-serif;
    font-weight: 800;
    letter-spacing: 0.09em;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px #00000033;
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.top-nav a {
    color: var(--ink);
    text-decoration: none;
    padding: 0.5rem 0.7rem;
    border-radius: 10px;
    border: 1px solid transparent;
}

.top-nav a:hover {
    border-color: var(--border);
    background: color-mix(in oklab, var(--surface-2), transparent 12%);
}

.theme-toggle {
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--ink);
    border-radius: 10px;
    padding: 0.5rem 0.7rem;
    cursor: pointer;
    min-width: 66px;
}

main {
    max-width: 1220px;
    margin: 0 auto;
    padding: 1.6rem;
}

.site-footer {
    border-top: 1px solid var(--border);
    margin-top: 1.6rem;
    padding: 1rem 1.3rem 1.35rem;
    display: flex;
    gap: 0.9rem;
    justify-content: center;
    align-items: center;
    background: color-mix(in oklab, var(--surface), transparent 8%);
}

.site-footer a {
    color: var(--muted);
    text-decoration: none;
    padding: 0.35rem 0.55rem;
    border-radius: 8px;
    border: 1px solid transparent;
}

.site-footer a:hover {
    color: var(--ink);
    border-color: var(--border);
    background: color-mix(in oklab, var(--surface-2), transparent 15%);
}

.site-footer .footer-link-btn {
    color: var(--muted);
    text-decoration: none;
    padding: 0.35rem 0.55rem;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    font: inherit;
}

.site-footer .footer-link-btn:hover {
    color: var(--ink);
    border-color: var(--border);
    background: color-mix(in oklab, var(--surface-2), transparent 15%);
}

.cookie-banner {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 80;
    width: min(480px, calc(100% - 24px));
    margin: 0;
    display: grid;
    gap: 0.85rem;
    background: linear-gradient(180deg, #14211bf2, #0f1815f4);
}

.cookie-banner[hidden] {
    display: none !important;
}

.cookie-banner-copy h2 {
    margin: 0.18rem 0 0.32rem;
}

.cookie-banner-copy p:last-child,
.cookie-banner-note {
    margin: 0;
}

.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.cookie-banner-actions > * {
    flex: 1 1 210px;
}

.cookie-banner-note,
.cookie-banner-note a {
    color: var(--muted);
}

.hero {
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.2rem 1.2rem 1rem;
    background:
        linear-gradient(155deg, color-mix(in oklab, var(--surface), transparent 0%), color-mix(in oklab, var(--surface-2), transparent 10%));
    box-shadow: var(--shadow);
}

.hero h1 {
    margin: 0;
    font-family: "Sora", sans-serif;
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    letter-spacing: 0.01em;
}

.hero p {
    margin: 0.65rem 0 0;
    max-width: 840px;
    color: var(--muted);
}

.controls {
    display: flex;
    gap: 0.8rem;
    margin: 1rem 0 1.35rem;
    flex-wrap: wrap;
    align-items: end;
    padding: 0.85rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: color-mix(in oklab, var(--surface), transparent 3%);
}

.controls > label,
.controls > .control-field {
    min-width: 220px;
}

.controls > .control-field.search-field {
    min-width: 0;
}

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

.gallery-main {
    min-width: 0;
}

.category-rail {
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 104px);
    overflow: auto;
    margin-bottom: 0;
    padding: 0.85rem;
}

.category-rail h2 {
    margin: 0;
    font-family: "Sora", sans-serif;
    font-size: 1.05rem;
}

.category-rail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    margin: 0 0 0.55rem;
}

.category-rail-toggle {
    min-height: 34px;
    padding: 0.35rem 0.6rem;
    border-radius: 10px;
    font-size: 0.86rem;
    background: color-mix(in oklab, var(--surface-2), transparent 8%);
    color: var(--ink);
    border: 1px solid var(--border);
}

.category-rail-list {
    display: grid;
    gap: 0.35rem;
}

.category-rail-btn {
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.48rem 0.68rem;
    min-height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: color-mix(in oklab, var(--surface-2), transparent 14%);
    color: var(--ink);
    font-weight: 600;
}

.category-rail-btn:hover {
    border-color: color-mix(in oklab, var(--accent-2), var(--border) 58%);
    background: color-mix(in oklab, var(--surface-2), var(--accent-2) 13%);
}

.category-rail-btn.is-active {
    border-color: color-mix(in oklab, var(--accent-2), black 10%);
    background: linear-gradient(135deg, color-mix(in oklab, var(--accent-2), white 8%), color-mix(in oklab, var(--accent-2), black 12%));
    color: #fff;
}

.category-rail-btn.is-child {
    font-weight: 700;
    opacity: 0.96;
}

.category-caret {
    width: 0.8rem;
    text-align: center;
    opacity: 0.9;
}

.category-caret-empty {
    opacity: 0.35;
}

.shirt-color-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.shirt-menu {
    position: relative;
}

.shirt-menu-summary {
    list-style: none;
    min-height: 44px;
    min-width: 210px;
    padding: 0.56rem 0.8rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    background: color-mix(in oklab, var(--surface), transparent 2%);
    color: var(--ink);
    border: 1px solid var(--border);
    font-weight: 700;
    user-select: none;
}

.shirt-menu-summary::-webkit-details-marker {
    display: none;
}

.shirt-menu-summary::after {
    content: "▾";
    margin-left: auto;
    opacity: 0.8;
}

.shirt-preset-dot {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: var(--preset-color, #808080);
    border: 1px solid color-mix(in oklab, var(--ink), transparent 75%);
    box-shadow: inset 0 1px 2px #ffffff66;
}

.shirt-menu[open] .shirt-menu-summary {
    border-color: color-mix(in oklab, var(--accent-2), black 8%);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent-2), transparent 82%);
}

.shirt-menu.is-auto .shirt-menu-summary {
    opacity: 0.88;
}

.shirt-menu-list {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    z-index: 25;
    width: min(360px, 78vw);
    max-height: 320px;
    overflow: auto;
    display: grid;
    gap: 0.4rem;
    padding: 0.55rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: color-mix(in oklab, var(--surface), transparent 0%);
    box-shadow: var(--shadow);
}

.shirt-menu-group-title {
    margin: 0.2rem 0 0;
    padding: 0.2rem 0.35rem 0;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.shirt-menu-item {
    min-height: 42px;
    padding: 0.48rem 0.62rem;
    border-radius: 12px;
    background: color-mix(in oklab, var(--surface-2), transparent 10%);
    color: var(--ink);
    border: 1px solid var(--border);
    display: grid;
    grid-template-columns: 18px 1fr auto;
    align-items: center;
    gap: 0.6rem;
    text-align: left;
}

.shirt-menu-item code {
    color: var(--muted);
    background: transparent;
    font-size: 0.82rem;
}

.shirt-menu-item.is-active {
    border-color: color-mix(in oklab, var(--accent-2), black 8%);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent-2), transparent 82%);
}

.control-field {
    display: grid;
    gap: 0.32rem;
    font-weight: 600;
}

.control-title {
    font-weight: 700;
}

.group-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0.56rem 0.72rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: color-mix(in oklab, var(--surface), transparent 6%);
}

.search-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.search-toggle {
    min-width: 42px;
    min-height: 42px;
    padding: 0;
    border-radius: 11px;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in oklab, var(--surface-2), transparent 8%);
    color: var(--ink);
    border: 1px solid var(--border);
}

#designSearchInput {
    width: 0;
    min-width: 0;
    opacity: 0;
    pointer-events: none;
    padding-inline: 0;
    transition: width 0.18s ease, opacity 0.18s ease, padding 0.18s ease;
}

.search-inline.is-open #designSearchInput {
    width: 150px;
    opacity: 1;
    pointer-events: auto;
    padding-inline: 0.65rem;
}

.group-toggle input {
    margin: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--accent-2);
}

.gallery-meta {
    color: var(--muted);
    margin: -0.2rem 0 0.9rem;
    font-size: 0.92rem;
    font-weight: 600;
}

.auto-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0.56rem 0.72rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: color-mix(in oklab, var(--surface), transparent 6%);
}

.auto-toggle input {
    margin: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--accent-2);
}

.auto-toggle span {
    font-weight: 700;
    font-size: 0.95rem;
}

label {
    display: grid;
    gap: 0.32rem;
    font-weight: 600;
}

select,
input,
button,
textarea {
    font: inherit;
    color: var(--ink);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.62rem 0.78rem;
    background: color-mix(in oklab, var(--surface), transparent 6%);
}

button {
    cursor: pointer;
    background: linear-gradient(135deg, var(--ink), color-mix(in oklab, var(--ink), black 18%));
    color: #fff;
    border-color: color-mix(in oklab, var(--ink), black 12%);
}

button:hover {
    filter: brightness(1.06);
}

.gallery {
    display: grid;
    gap: 1.05rem;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    user-select: none;
    -webkit-user-select: none;
}

.gallery.gallery-grouped {
    display: block;
}

.gallery-group {
    margin: 0 0 1.35rem;
}

.gallery-group-title {
    margin: 0 0 0.7rem;
    font-family: "Sora", sans-serif;
    font-size: 1.12rem;
    padding: 0.42rem 0.6rem;
    border-radius: 10px;
    background: color-mix(in oklab, var(--surface-2), transparent 5%);
    border: 1px solid var(--border);
}

.gallery-grid {
    display: grid;
    gap: 1.05rem;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

.card {
    background: color-mix(in oklab, var(--surface), transparent 4%);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1rem;
    box-shadow: var(--shadow);
    animation: cardIn 0.42s ease;
}

.card:nth-child(2n) {
    animation-delay: 0.04s;
}

.card:nth-child(3n) {
    animation-delay: 0.08s;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tshirt {
    --tee-color: #f4f4f5;
    position: relative;
    border-radius: 18px;
    height: 450px;
    margin: 0 0 0.85rem;
    border: none;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 10%, color-mix(in oklab, var(--surface), white 10%), transparent 58%),
        linear-gradient(180deg, color-mix(in oklab, var(--surface-2), transparent 8%), color-mix(in oklab, var(--surface), transparent 4%));
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.tshirt[data-render-mode='photo'] {
    background:
        radial-gradient(circle at 50% 8%, #ffffff75, transparent 34%),
        linear-gradient(180deg, #d8d8d8, #cfcfcf);
}

.tshirt[data-render-mode='photo-tint'] {
    background:
        radial-gradient(circle at 50% 8%, color-mix(in oklab, var(--shirt-custom, #808080), white 72%) 0%, transparent 34%),
        linear-gradient(180deg, color-mix(in oklab, var(--shirt-custom, #808080), white 86%), color-mix(in oklab, var(--shirt-custom, #808080), white 90%));
}

.tshirt-shape {
    position: relative;
    width: min(92%, 390px);
    height: min(92%, 390px);
    clip-path: polygon(
        18% 12%,
        30% 4%,
        42% 4%,
        47% 9%,
        53% 9%,
        58% 4%,
        70% 4%,
        82% 12%,
        95% 24%,
        87% 37%,
        74% 31%,
        74% 92%,
        26% 92%,
        26% 31%,
        13% 37%,
        5% 24%
    );
    background: var(--tee-color);
    box-shadow:
        inset 0 0 0 2px color-mix(in oklab, var(--tee-color), black 18%),
        inset 0 14px 24px color-mix(in oklab, white, transparent 65%),
        inset 0 -12px 18px color-mix(in oklab, black, transparent 88%);
    filter: drop-shadow(0 16px 18px #00000028);
    transition: transform 0.22s ease, filter 0.22s ease;
}

.tshirt-photo {
    display: none;
    position: relative;
    width: min(148%, 620px);
    height: min(148%, 620px);
    isolation: isolate;
}

.tshirt[data-render-mode='photo'] .tshirt-photo {
    display: block;
}

.tshirt[data-render-mode='photo-tint'] .tshirt-photo {
    display: block;
}

.tshirt[data-render-mode='photo'] .tshirt-shape {
    display: none;
}

.tshirt[data-render-mode='photo-tint'] .tshirt-shape {
    display: none;
}

.tshirt-photo-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 18px 22px #00000022);
}

.tshirt[data-render-mode='photo-tint'] .tshirt-photo-image {
    filter:
        drop-shadow(0 12px 16px #00000018)
        contrast(0.92)
        brightness(0.98);
}

.tshirt-photo-tint {
    position: absolute;
    inset: 0;
    background: var(--shirt-custom, #808080);
    -webkit-mask-image: var(--shirt-mask);
    mask-image: var(--shirt-mask);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    mix-blend-mode: multiply;
    opacity: 0.74;
    pointer-events: none;
}

.tshirt-shape::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(140deg, color-mix(in oklab, white, transparent 78%) 0%, transparent 36%),
        linear-gradient(215deg, color-mix(in oklab, black, transparent 94%) 20%, transparent 62%);
    pointer-events: none;
}

.tshirt-shape::after {
    content: "";
    position: absolute;
    top: 6%;
    left: 50%;
    width: 24%;
    height: 11%;
    transform: translateX(-50%);
    border-bottom-left-radius: 90% 100%;
    border-bottom-right-radius: 90% 100%;
    background: color-mix(in oklab, var(--surface), black 4%);
    box-shadow: inset 0 2px 0 color-mix(in oklab, var(--tee-color), black 24%);
    pointer-events: none;
}

.tshirt[data-shirt='white'] {
    --tee-color: #f7f7f8;
}

.tshirt[data-shirt='black'] {
    --tee-color: #090b0f;
}

.tshirt[data-shirt='custom'] {
    --tee-color: var(--shirt-custom, #808080);
}

.design-image {
    position: absolute;
    left: calc(var(--design-x, 50) * 1%);
    top: calc(var(--design-y, 53) * 1%);
    width: calc(var(--design-scale, 62) * 1%);
    height: calc(var(--design-scale, 62) * 1%);
    transform: translate(-50%, -50%);
    object-fit: contain;
    -webkit-user-drag: none;
    pointer-events: none;
    filter: drop-shadow(0 3px 2px #0000002d);
    transition: transform 0.24s ease, filter 0.24s ease;
}

.design-image-photo {
    left: calc(50% + ((var(--design-x, 50) - 50) * 0.72%));
    top: calc(7% + ((var(--design-y, 28) - 28) * 1.62%));
    width: calc(var(--design-scale, 32) * 0.68%);
    height: calc(var(--design-scale, 32) * 0.68%);
    filter: drop-shadow(0 3px 3px #00000038);
}

.card:hover .tshirt {
    transform: scale(1.015);
    box-shadow: 0 10px 24px #00000020;
}

.card:hover .tshirt-shape {
    transform: scale(1.02);
    filter: drop-shadow(0 18px 22px #00000035);
}

.card:hover .design-image {
    transform: translate(-50%, -50%) scale(1.1);
}

.card h3,
.card h2 {
    margin: 0 0 0.35rem;
    font-family: "Sora", sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

.muted {
    margin: 0.1rem 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.card-actions {
    margin-top: 0.7rem;
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.share-link,
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    text-decoration: none;
    padding: 0.52rem 0.82rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: color-mix(in oklab, var(--surface-2), transparent 18%);
    color: var(--ink);
    font-size: 0.93rem;
}

.share-link:hover,
.share-btn:hover {
    border-color: color-mix(in oklab, var(--accent), var(--border) 55%);
}

.share-btn {
    cursor: pointer;
}

.detail-wrap {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.card-detail {
    max-width: 700px;
    width: 100%;
}

.panel {
    background: color-mix(in oklab, var(--surface), transparent 4%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.05rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.narrow {
    max-width: 460px;
    margin-inline: auto;
}

.stack {
    display: grid;
    gap: 0.75rem;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.upload-form {
    display: grid;
    gap: 0.9rem;
    max-width: 100%;
}

.js-drop-input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.drop-zone {
    border: 1px dashed var(--border);
    border-radius: 12px;
    min-height: 66px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--muted);
    background: color-mix(in oklab, var(--surface-2), transparent 18%);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.drop-zone:hover,
.drop-zone-hover {
    border-color: color-mix(in oklab, var(--accent-2), var(--border) 40%);
    background: color-mix(in oklab, var(--surface-2), var(--accent-2) 9%);
    transform: translateY(-1px);
}

.drop-zone-invalid {
    border-color: var(--danger);
    background: color-mix(in oklab, var(--danger), transparent 86%);
}

.admin-list {
    display: grid;
    gap: 0.75rem;
}

.design-filter-row {
    display: grid;
    grid-template-columns: minmax(240px, 1.2fr) minmax(180px, 240px) auto;
    gap: 0.55rem;
    align-items: center;
    margin: 0 0 0.8rem;
}

.uncat-bulk-form {
    display: grid;
    gap: 0.75rem;
}

.uncat-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.uncat-album {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.65rem;
}

.uncat-card {
    display: grid;
    gap: 0.45rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.55rem;
    background: color-mix(in oklab, var(--surface), transparent 3%);
    cursor: pointer;
}

.uncat-card:has(input:checked) {
    border-color: color-mix(in oklab, var(--accent-2), var(--border) 35%);
    background: color-mix(in oklab, var(--surface-2), var(--accent-2) 10%);
}

.uncat-card input[type='checkbox'] {
    margin: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--accent-2);
}

.uncat-card .mini-shirt {
    width: 100%;
    height: 140px;
}

.uncat-card .mini-shirt-shape {
    width: min(130px, 90%);
    height: min(130px, 90%);
}

.uncat-card .mini-shirt-shape img {
    width: 72%;
    height: 72%;
}

.uncat-info h3,
.uncat-info p {
    margin: 0;
}

.uncat-info h3 {
    font-size: 0.98rem;
    line-height: 1.2;
}

.uncat-info p {
    color: var(--muted);
    font-size: 0.84rem;
}

.uncat-bulk-actions {
    display: grid;
    grid-template-columns: minmax(240px, 360px) auto;
    grid-template-areas:
        "search action"
        "select action";
    gap: 0.6rem;
    align-items: start;
}

.uncat-bulk-actions input[type='text'] {
    grid-area: search;
}

.uncat-bulk-actions select {
    grid-area: select;
    min-height: 146px;
}

.uncat-submit-btn {
    grid-area: action;
    min-height: 46px;
    padding-inline: 1rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    background: linear-gradient(135deg, var(--accent-2), color-mix(in oklab, var(--accent-2), black 16%));
    border-color: color-mix(in oklab, var(--accent-2), black 18%);
    color: #fff;
    box-shadow: 0 8px 20px color-mix(in oklab, var(--accent-2), transparent 72%);
}

.uncat-submit-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.admin-item {
    display: grid;
    grid-template-columns: 96px 1fr auto;
    gap: 0.9rem;
    align-items: start;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 0.9rem;
    background: linear-gradient(180deg, color-mix(in oklab, var(--surface), transparent 2%), color-mix(in oklab, var(--surface-2), transparent 12%));
}

.js-design-item.is-filter-hidden {
    display: none !important;
}

.design-title-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.design-category-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.design-shirt-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.design-placement-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.inline-link {
    border: none;
    background: none;
    color: var(--ink);
    padding: 0;
    min-height: 0;
    font-weight: 800;
    text-align: left;
}

.inline-link:hover {
    color: var(--accent-2);
    text-decoration: underline;
    filter: none;
}

.inline-edit {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.inline-edit[hidden] {
    display: none !important;
}

.inline-edit input,
.inline-edit select {
    min-height: 34px;
    padding: 0.35rem 0.5rem;
}

.inline-edit select {
    min-width: 220px;
    max-width: 340px;
}

.icon-btn {
    min-width: 34px;
    min-height: 34px;
    padding: 0.22rem 0.48rem;
    border-radius: 10px;
    font-weight: 800;
}

.icon-ok {
    background: linear-gradient(135deg, #1e9d57, #157742);
    border-color: #14693b;
    color: #fff;
}

.icon-cancel {
    background: linear-gradient(135deg, var(--danger), color-mix(in oklab, var(--danger), black 14%));
    border-color: color-mix(in oklab, var(--danger), black 14%);
    color: #fff;
}

.admin-actions {
    display: grid;
    gap: 0.5rem;
    align-self: stretch;
    align-content: start;
}

.admin-actions .share-link,
.admin-actions .share-btn,
.admin-actions button {
    width: 100%;
}

.delete-only-form {
    display: grid;
}

.trash-btn {
    min-width: 132px;
    min-height: 44px;
}

.quick-cat-form {
    display: grid;
    gap: 0.5rem;
    min-width: 230px;
}

.quick-cat-form select {
    min-height: 132px;
}

.edit-toggle {
    background: linear-gradient(135deg, var(--accent-2), color-mix(in oklab, var(--accent-2), black 18%));
    border-color: color-mix(in oklab, var(--accent-2), black 15%);
    color: #fff;
}

.edit-panel {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: color-mix(in oklab, var(--surface), transparent 3%);
    margin: -0.2rem 0 0.8rem;
    padding: 0.8rem;
    display: grid;
    gap: 0.7rem;
}

.edit-panel[hidden] {
    display: none !important;
}

.edit-panel h4 {
    margin: 0;
    font-family: "Sora", sans-serif;
}

.placement-panel {
    grid-column: 1 / -1;
}

.placement-label {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: color-mix(in oklab, var(--surface-2), transparent 8%);
    font-weight: 700;
    color: var(--ink);
}

.placement-editor {
    display: grid;
    grid-template-columns: minmax(240px, 340px) minmax(260px, 1fr);
    gap: 0.9rem;
    align-items: start;
}

.placement-preview-wrap {
    display: grid;
    gap: 0.5rem;
}

.placement-preview {
    height: 340px;
    margin: 0;
    user-select: none;
    -webkit-user-select: none;
}

.placement-preview .tshirt-photo {
    width: min(148%, 620px);
    height: min(148%, 620px);
}

.placement-preview-note {
    margin: 0;
    font-size: 0.84rem;
}

.placement-object {
    position: absolute;
    left: calc(var(--design-x, 50) * 1%);
    top: calc(var(--design-y, 53) * 1%);
    width: calc(var(--design-scale, 62) * 1%);
    height: calc(var(--design-scale, 62) * 1%);
    transform: translate(-50%, -50%);
    border: 2px dashed color-mix(in oklab, var(--accent-2), transparent 18%);
    border-radius: 18px;
    cursor: grab;
    touch-action: none;
}

.placement-object.is-dragging {
    cursor: grabbing;
}

.placement-object .design-image {
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
}

.placement-object.is-photo-mode {
    left: calc(50% + ((var(--design-x, 50) - 50) * 0.72%));
    top: calc(7% + ((var(--design-y, 28) - 28) * 1.62%));
    width: calc(var(--design-scale, 32) * 0.68%);
    height: calc(var(--design-scale, 32) * 0.68%);
}

.placement-resize-handle {
    position: absolute;
    right: -11px;
    bottom: -11px;
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    padding: 0;
    border-radius: 999px;
    border: 2px solid #fff;
    background: linear-gradient(135deg, var(--accent), color-mix(in oklab, var(--accent), black 14%));
    box-shadow: 0 4px 12px #0000002e;
    cursor: nwse-resize;
}

.placement-form {
    display: grid;
    gap: 0.8rem;
}

.placement-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.placement-preset-btn {
    min-height: 38px;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: color-mix(in oklab, var(--surface-2), transparent 10%);
    color: var(--ink);
}

.placement-preset-btn.is-active {
    background: linear-gradient(135deg, var(--accent-2), color-mix(in oklab, var(--accent-2), black 18%));
    border-color: color-mix(in oklab, var(--accent-2), black 12%);
    color: #fff;
}

.placement-form input[type='range'] {
    width: 100%;
    padding-inline: 0;
}

.placement-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.mini-shirt {
    --tee-color: #f7f7f8;
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    background:
        radial-gradient(circle at 50% 12%, color-mix(in oklab, var(--surface), white 10%), transparent 60%),
        linear-gradient(180deg, color-mix(in oklab, var(--surface-2), transparent 10%), color-mix(in oklab, var(--surface), transparent 6%));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mini-shirt-shape {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 84px;
    height: 84px;
    clip-path: polygon(
        18% 12%,
        30% 4%,
        42% 4%,
        47% 9%,
        53% 9%,
        58% 4%,
        70% 4%,
        82% 12%,
        95% 24%,
        87% 37%,
        74% 31%,
        74% 92%,
        26% 92%,
        26% 31%,
        13% 37%,
        5% 24%
    );
    background: var(--tee-color);
    box-shadow:
        inset 0 0 0 1px color-mix(in oklab, var(--tee-color), black 22%),
        inset 0 8px 12px color-mix(in oklab, white, transparent 72%),
        inset 0 -8px 12px color-mix(in oklab, black, transparent 90%);
    filter: drop-shadow(0 4px 7px #0000002a);
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease;
}

.mini-shirt-shape::after {
    content: "";
    position: absolute;
    top: 6%;
    left: 50%;
    width: 24%;
    height: 11%;
    transform: translateX(-50%);
    border-bottom-left-radius: 90% 100%;
    border-bottom-right-radius: 90% 100%;
    background: color-mix(in oklab, var(--surface), black 4%);
    box-shadow: inset 0 1px 0 color-mix(in oklab, var(--tee-color), black 26%);
}

.mini-shirt[data-shirt='white'] {
    --tee-color: #f7f7f8;
}

.mini-shirt[data-shirt='black'] {
    --tee-color: #090b0f;
}

.mini-shirt-shape img {
    position: absolute;
    left: calc(var(--design-x, 50) * 1%);
    top: calc(var(--design-y, 53) * 1%);
    width: calc(var(--design-scale, 68) * 1%);
    height: calc(var(--design-scale, 68) * 1%);
    transform: translate(-50%, -50%);
    object-fit: contain;
    transition: transform 0.22s ease;
}

.mini-shirt:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 18px #00000026;
    z-index: 2;
}

.mini-shirt:hover .mini-shirt-shape {
    transform: translate(-50%, -50%) scale(1.03);
}

.mini-shirt:hover img {
    transform: translate(-50%, -50%) scale(1.12);
}

.admin-item h3,
.admin-item p {
    margin: 0;
}

.danger {
    background: linear-gradient(135deg, var(--danger), color-mix(in oklab, var(--danger), black 14%));
    border-color: color-mix(in oklab, var(--danger), black 12%);
    color: #fff;
}

.error {
    color: var(--danger);
    font-weight: 700;
}

.ok {
    color: var(--success);
    font-weight: 700;
}

.multi-check {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.62rem;
    max-height: 280px;
    overflow: auto;
    background: color-mix(in oklab, var(--surface-2), transparent 8%);
}

.check-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.35rem;
}

.check-item small {
    color: var(--muted);
    font-size: 0.8rem;
}

.category-create {
    display: grid;
    grid-template-columns: 1fr 1fr 110px auto;
    gap: 0.55rem;
    margin-bottom: 0.95rem;
}

.category-create.simple-create {
    grid-template-columns: 1fr auto;
    max-width: 780px;
}

.category-create.compact {
    grid-template-columns: 1fr 1fr 82px auto;
    margin: 0.6rem 0 0.65rem;
}

.category-list {
    display: grid;
    gap: 0.4rem;
}

.category-dnd-wrap {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.6rem;
    margin: 0 0 0.8rem;
    background: color-mix(in oklab, var(--surface-2), transparent 8%);
}

.cat-drop-root {
    border: 1px dashed var(--border);
    border-radius: 10px;
    padding: 0.55rem 0.65rem;
    margin: 0 0 0.55rem;
    color: var(--muted);
    font-weight: 700;
}

.cat-dnd-list {
    display: grid;
    gap: 0.34rem;
}

.cat-dnd-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.42rem 0.55rem;
    background: color-mix(in oklab, var(--surface), transparent 4%);
    cursor: grab;
}

.cat-dnd-item:active {
    cursor: grabbing;
}

.cat-dnd-item small {
    color: var(--muted);
    font-size: 0.75rem;
}

.cat-dnd-item.is-dragging {
    opacity: 0.55;
}

.cat-dnd-item.is-drop-target,
.cat-drop-root.is-drop-target {
    border-color: color-mix(in oklab, var(--accent-2), var(--border) 35%);
    background: color-mix(in oklab, var(--surface-2), var(--accent-2) 14%);
}

.cat-manage-item {
    --cat-depth: 0;
    margin-left: calc(var(--cat-depth) * 1.15rem);
    border: 1px solid var(--border);
    border-radius: 10px;
    background: color-mix(in oklab, var(--surface-2), transparent 8%);
}

.cat-manage-item.is-child {
    border-left: 3px solid color-mix(in oklab, var(--accent-2), var(--border) 45%);
    background: color-mix(in oklab, var(--surface-2), var(--accent-2) 5%);
}

.cat-manage-item > summary {
    list-style: none;
}

.cat-manage-item > summary::-webkit-details-marker {
    display: none;
}

.cat-main {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.cat-hint {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.cat-manage-item.is-child .cat-hint {
    opacity: 0.86;
}

.cat-edit-wrap {
    display: flex;
    align-items: end;
    gap: 0.5rem;
    padding: 0.5rem 0.55rem 0.6rem;
    border-top: 1px solid var(--border);
}

.cat-edit-form {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: end;
    gap: 0.45rem;
}

.cat-edit-form label {
    display: grid;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.compact-scroll {
    max-height: 320px;
    overflow: auto;
    padding-right: 0.2rem;
}

.category-collapsible {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: color-mix(in oklab, var(--surface-2), transparent 6%);
    padding: 0.45rem 0.55rem;
}

.category-collapsible summary {
    cursor: pointer;
    font-family: "Sora", sans-serif;
    font-size: 0.95rem;
    list-style: none;
}

.category-collapsible summary::-webkit-details-marker {
    display: none;
}

.category-collapsible summary::before {
    content: "▸ ";
}

.category-collapsible[open] summary::before {
    content: "▾ ";
}

.category-row-wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.4rem;
    align-items: center;
}

.category-row {
    display: grid;
    grid-template-columns: auto 1fr 1fr 100px 100px auto;
    gap: 0.45rem;
    align-items: center;
    background: color-mix(in oklab, var(--surface), transparent 4%);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.48rem;
}

.category-row.compact {
    grid-template-columns: 1fr 1fr 86px auto auto auto;
    gap: 0.35rem;
    padding: 0.36rem;
}

.category-row.compact input,
.category-row.compact select,
.category-row.compact button {
    padding: 0.38rem 0.5rem;
    min-height: 34px;
    font-size: 0.86rem;
}

.category-row.compact .tiny-check {
    font-size: 0.82rem;
}

.category-delete {
    justify-self: end;
}

.category-delete .danger {
    min-height: 34px;
    padding: 0.35rem 0.55rem;
    font-size: 0.83rem;
}

.category-item {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: color-mix(in oklab, var(--surface), transparent 4%);
}

.category-item summary {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.55rem;
    cursor: pointer;
    list-style: none;
}

.category-item summary::-webkit-details-marker {
    display: none;
}

.cat-name {
    font-weight: 700;
}

.cat-meta {
    font-size: 0.78rem;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.05rem 0.4rem;
}

.category-item-body {
    border-top: 1px solid var(--border);
    padding: 0.45rem;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 0.42rem;
    align-items: start;
}

.cat-indent {
    height: 1px;
}

.tiny-check {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.category-move {
    display: inline-flex;
    gap: 0.3rem;
    align-items: center;
}

.move-btn {
    min-height: 34px;
    min-width: 34px;
    padding: 0.28rem 0.45rem;
    border-radius: 10px;
    font-size: 0.92rem;
    line-height: 1;
    background: color-mix(in oklab, var(--surface-2), transparent 10%);
    color: var(--ink);
    border: 1px solid var(--border);
}

.move-btn:hover {
    border-color: color-mix(in oklab, var(--accent-2), var(--border) 55%);
    background: color-mix(in oklab, var(--surface-2), var(--accent-2) 16%);
}

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

@media (max-width: 930px) {
    .gallery-layout {
        grid-template-columns: 1fr;
    }

    .category-rail {
        position: static;
        max-height: none;
        padding: 0.72rem;
    }

    .category-rail-list {
        grid-template-columns: 1fr;
    }

    .category-rail:not(.is-open) .category-rail-list {
        display: none;
    }

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

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

    .tshirt {
        height: 410px;
    }

    .uncat-bulk-actions {
        grid-template-columns: 1fr;
        grid-template-areas:
            "search"
            "select"
            "action";
    }

    .placement-editor {
        grid-template-columns: 1fr;
    }

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

    .search-inline.is-open #designSearchInput {
        width: 130px;
    }
}

@media (max-width: 700px) {
    .site-header {
        flex-direction: column;
        align-items: stretch;
    }

    .top-nav {
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .brand {
        font-size: 0.85rem;
        letter-spacing: 0.06em;
    }

    .brand-logo {
        width: 34px;
        height: 34px;
    }

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

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

    .tshirt {
        height: 380px;
    }

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

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

    .category-create,
    .category-row {
        grid-template-columns: 1fr;
    }

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

    .category-item-body {
        grid-template-columns: 1fr;
    }

    .category-move {
        order: 2;
    }

    .category-delete {
        justify-self: start;
    }
}

/* Premium public redesign */
:root {
    --bg: #07110d;
    --bg-soft: #102019;
    --surface: #0f1b16;
    --surface-2: #16251f;
    --surface-3: #1d3028;
    --ink: #f4efe4;
    --muted: #aeb9b0;
    --border: #294338;
    --accent: #d9b96e;
    --accent-2: #5a8b70;
    --success: #77c995;
    --danger: #dc7a6b;
    --shadow: 0 28px 70px #00000052;
}

:root[data-theme='dark'] {
    --bg: #07110d;
    --bg-soft: #102019;
    --surface: #0f1b16;
    --surface-2: #16251f;
    --surface-3: #1d3028;
    --ink: #f4efe4;
    --muted: #aeb9b0;
    --border: #294338;
    --accent: #d9b96e;
    --accent-2: #5a8b70;
    --success: #77c995;
    --danger: #dc7a6b;
    --shadow: 0 28px 70px #00000052;
}

body {
    background:
        radial-gradient(circle at top left, #204433 0%, transparent 28%),
        radial-gradient(circle at 82% 12%, #87734924 0%, transparent 20%),
        linear-gradient(180deg, #07110d 0%, #0b1713 38%, #09120f 100%);
    color: var(--ink);
    font-family: "Manrope", sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent 0, transparent 49.5%, #ffffff05 50%, transparent 50.5%, transparent 100%),
        linear-gradient(#ffffff05 1px, transparent 1px);
    background-size: 100% 100%, 100% 64px;
    mask-image: linear-gradient(180deg, #00000066, transparent 72%);
}

.site-header {
    width: min(1320px, calc(100% - 28px));
    margin: 18px auto 0;
    padding: 1rem 1.2rem;
    border: 1px solid #ffffff14;
    border-radius: 24px;
    background: linear-gradient(180deg, #102019f0, #0b1511dc);
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px #00000034;
}

.brand {
    gap: 0.9rem;
    font-family: "Manrope", sans-serif;
    letter-spacing: 0.12em;
}

.brand-logo {
    width: 48px;
    height: 48px;
    border: 1px solid #ffffff18;
    box-shadow: 0 10px 24px #00000050;
}

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

.brand-copy strong {
    font-size: 0.92rem;
    letter-spacing: 0.22em;
    color: #f7f2e8;
}

.brand-copy small {
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.top-nav {
    gap: 0.7rem;
}

.top-nav a,
.theme-toggle {
    min-height: 44px;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    border: 1px solid #ffffff10;
    background: #ffffff06;
    color: #f6efe1;
    font-weight: 700;
}

.top-nav a:hover,
.theme-toggle:hover {
    background: linear-gradient(135deg, #ffffff12, #d9b96e18);
    border-color: #d9b96e33;
}

main {
    max-width: 1320px;
    padding: 1.8rem 1.2rem 2.5rem;
}

.site-footer {
    width: min(1320px, calc(100% - 28px));
    margin: 0 auto 20px;
    border: 1px solid #ffffff10;
    border-radius: 22px;
    background: linear-gradient(180deg, #101b17d6, #0c1511d0);
}

.site-footer a {
    color: #d9ddcf;
}

.hero {
    position: relative;
    overflow: hidden;
    border: 1px solid #ffffff14;
    border-radius: 32px;
    padding: clamp(1.5rem, 2vw, 2rem);
    background:
        linear-gradient(135deg, #11221bf5 0%, #0a140ff4 48%, #12231bf2 100%),
        radial-gradient(circle at top left, #254636 0%, transparent 36%);
    box-shadow: var(--shadow);
}

.hero-gallery,
.hero-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 1.4rem;
    align-items: stretch;
}

.hero-copy {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: center;
    gap: 1.15rem;
    padding: clamp(0.2rem, 1vw, 0.8rem);
}

.hero-eyebrow,
.section-kicker {
    margin: 0;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    max-width: 10ch;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(3.2rem, 7vw, 5.9rem);
    line-height: 0.92;
    letter-spacing: -0.03em;
    color: #fbf7ed;
}

.hero-lead,
.hero p {
    margin: 0;
    max-width: 60ch;
    color: #c1cbc2;
    font-size: clamp(1rem, 1.5vw, 1.08rem);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: stretch;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 68px;
    min-width: 240px;
    padding: 1.05rem 1.8rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.18rem;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.hero-cta:hover {
    transform: translateY(-2px);
}

.hero-cta-primary {
    background: linear-gradient(135deg, var(--accent), color-mix(in oklab, var(--accent), black 12%));
    color: #112017;
    border: 1px solid #e1c588;
    box-shadow: 0 18px 34px #d9b96e3a;
}

.hero-cta-secondary {
    background: #ffffff06;
    color: #f8f3e8;
    border: 1px solid #ffffff18;
    box-shadow: 0 14px 28px #0000001d;
}

.hero-signals {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.hero-signal {
    padding: 0.95rem 1rem;
    border-radius: 22px;
    border: 1px solid #ffffff14;
    background: linear-gradient(180deg, #ffffff08, #ffffff04);
}

.hero-signal strong {
    display: block;
    margin-bottom: 0.3rem;
    color: #fbf6e8;
    font-size: 1.05rem;
}

.hero-signal span {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.hero-stage {
    position: relative;
    min-height: 100%;
    border-radius: 28px;
    border: 1px solid #ffffff10;
    background:
        radial-gradient(circle at 30% 20%, #4d7c643d 0%, transparent 30%),
        radial-gradient(circle at 70% 70%, #c7a85f20 0%, transparent 28%),
        linear-gradient(180deg, #15241df4, #0b1612f2);
    overflow: hidden;
}

.hero-stage-card {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 2;
    padding: 1.2rem 1.25rem;
    border-radius: 24px;
    border: 1px solid #ffffff14;
    background: linear-gradient(180deg, #0e1814ea, #0b1310e0);
    box-shadow: 0 20px 38px #0000003c;
}

.hero-stage-card p,
.hero-stage-card span {
    margin: 0;
    color: var(--muted);
}

.hero-stage-card p {
    margin-bottom: 0.25rem;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-stage-card h2 {
    margin: 0 0 0.3rem;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: #f8f2e6;
}

.hero-stage-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(10px);
}

.hero-stage-orb-a {
    top: 12%;
    right: 10%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, #6ca07b66 0%, transparent 65%);
}

.hero-stage-orb-b {
    left: 8%;
    bottom: 18%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, #d9b96e33 0%, transparent 66%);
}

.premium-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.1rem 0 1.35rem;
}

.premium-strip-item {
    padding: 1rem 1.1rem;
    border: 1px solid #ffffff10;
    border-radius: 22px;
    background: linear-gradient(180deg, #11201ad4, #0d1713d2);
    box-shadow: 0 16px 34px #00000022;
}

.premium-strip-item span {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.premium-strip-item strong {
    color: #f4eee2;
    font-size: 1rem;
    line-height: 1.5;
}

.gallery-layout {
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 1.1rem;
}

.panel,
.controls,
.card,
.category-rail {
    border: 1px solid #ffffff10;
    background: linear-gradient(180deg, #101b17f2, #0c1512ec);
    box-shadow: 0 22px 48px #00000028;
}

.category-rail {
    top: 104px;
    border-radius: 26px;
}

.category-rail h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
    color: #f7f2e7;
}

.category-rail-toggle,
.category-rail-btn,
.search-toggle,
.group-toggle,
.auto-toggle,
.shirt-menu-summary,
select,
input,
button,
textarea {
    border-color: #ffffff14;
    background: color-mix(in oklab, var(--surface-2), transparent 2%);
    color: var(--ink);
}

.category-rail-btn {
    min-height: 42px;
    border-radius: 14px;
    background: linear-gradient(180deg, #15231df4, #101a16f2);
}

.category-rail-btn.is-active {
    background: linear-gradient(135deg, #315342, #20382d);
    border-color: #6aa17b55;
}

.controls {
    border-radius: 26px;
    padding: 1rem;
}

.control-title,
label {
    color: #f4efe2;
}

.gallery-meta {
    margin: 0.4rem 0 1rem;
    color: #c7d0c7;
    font-size: 0.96rem;
}

.gallery-group-title {
    padding: 0.7rem 0.9rem;
    border-radius: 18px;
    background: linear-gradient(180deg, #182822, #111c17);
    color: #f8f3e8;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.8rem;
}

.card {
    position: relative;
    border-radius: 28px;
    padding: 1.05rem;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, #ffffff03 65%, transparent);
    pointer-events: none;
}

.card h3,
.card h2 {
    position: relative;
    z-index: 1;
    margin-bottom: 0.45rem;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2rem, 3vw, 2.45rem);
    color: #fcf7eb;
}

.muted {
    color: #b5c0b7;
}

.tshirt {
    border-radius: 26px;
    border: none;
    background:
        radial-gradient(circle at 50% 8%, #f6efe112, transparent 38%),
        linear-gradient(180deg, #ebe5d7, #dad3c4);
}

.tshirt[data-render-mode='photo'],
.tshirt[data-render-mode='photo-tint'] {
    background: transparent;
}

.share-link,
.share-btn {
    min-height: 44px;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    border: 1px solid #ffffff14;
    background: linear-gradient(180deg, #16251fd8, #101b17d0);
    color: #f9f4e8;
    font-weight: 700;
}

.share-link:hover,
.share-btn:hover {
    background: linear-gradient(180deg, #1c3027e5, #14211be0);
    border-color: #d9b96e44;
}

.detail-wrap {
    margin-top: 1.25rem;
}

.card-detail-premium {
    padding: 1.2rem;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1rem;
}

.detail-meta-card {
    padding: 0.9rem 1rem;
    border-radius: 20px;
    border: 1px solid #ffffff10;
    background: linear-gradient(180deg, #15221ce8, #101a15e4);
}

.detail-meta-card span {
    display: block;
    margin-bottom: 0.22rem;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.detail-meta-card strong {
    color: #f8f2e7;
    font-size: 1rem;
    line-height: 1.45;
}

.empty-state {
    padding: 1rem 1.2rem;
    border-radius: 18px;
    border: 1px solid #ffffff10;
    background: linear-gradient(180deg, #111c18, #0d1713);
}

@media (max-width: 930px) {
    .hero-gallery,
    .hero-detail,
    .premium-strip,
    .detail-meta-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        max-width: none;
    }

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

    .gallery-layout {
        grid-template-columns: 1fr;
    }

    .site-header,
    .site-footer {
        width: min(100% - 20px, 1320px);
    }
}

@media (max-width: 700px) {
    main {
        padding-inline: 0.85rem;
    }

    .site-header {
        width: calc(100% - 16px);
        margin-top: 8px;
        padding: 0.85rem;
        border-radius: 20px;
    }

    .site-footer {
        width: calc(100% - 16px);
        margin-bottom: 10px;
    }

    .top-nav {
        justify-content: stretch;
    }

    .top-nav a,
    .theme-toggle {
        flex: 1 1 calc(50% - 0.35rem);
        justify-content: center;
    }

    .hero {
        border-radius: 26px;
        padding: 1.15rem;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 13vw, 4rem);
    }

    .premium-strip-item,
    .card,
    .controls,
    .category-rail {
        border-radius: 22px;
    }

    .detail-meta-grid {
        grid-template-columns: 1fr;
    }
}

/* Premium refinement */
.top-nav {
    flex-wrap: wrap;
}

.hero-gallery,
.hero-detail {
    gap: 1rem;
}

.hero h1 {
    max-width: 12ch;
    font-size: clamp(2.6rem, 5.8vw, 4.9rem);
}

.hero-lead,
.hero p {
    max-width: 56ch;
    font-size: 1rem;
}

.hero-signals {
    gap: 0.65rem;
}

.hero-signal,
.premium-strip-item {
    border-radius: 18px;
}

.hero-stage {
    min-height: 360px;
}

.controls {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    align-items: stretch;
}

.controls > label,
.controls > .control-field,
.controls > .control-field.search-field {
    min-width: 0;
}

.control-card {
    position: relative;
    padding: 0.95rem;
    border: 1px solid #ffffff10;
    border-radius: 20px;
    background: linear-gradient(180deg, #14231ce5, #0f1915df);
}

.control-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 0.45rem;
    border-radius: 999px;
    border: 1px solid #d9b96e33;
    background: #d9b96e12;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.control-title,
.controls label {
    font-size: 0.94rem;
}

.shirt-color-controls {
    align-items: stretch;
}

.shirt-menu,
.shirt-menu-summary,
.auto-toggle,
.group-toggle,
.search-inline {
    width: 100%;
}

.shirt-menu-summary,
.auto-toggle,
.group-toggle {
    min-height: 48px;
}

.search-inline {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
}

#designSearchInput {
    width: 100%;
}

.search-inline.is-open #designSearchInput,
#designSearchInput {
    opacity: 1;
    pointer-events: auto;
    padding-inline: 0.65rem;
}

.search-toggle {
    min-width: 44px;
}

.category-rail {
    padding: 1rem;
}

.gallery {
    gap: 1.15rem;
}

.card {
    padding: 0.9rem;
}

.tshirt {
    height: 420px;
    margin-bottom: 0.75rem;
}

.card-actions {
    gap: 0.65rem;
}

.legal-hero .hero-copy {
    min-height: auto;
}

.legal-panel {
    padding: 1.2rem;
}

.legal-copy h2 {
    margin: 1.15rem 0 0.35rem;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.7rem;
    color: #f8f2e7;
}

.legal-copy h2:first-child {
    margin-top: 0;
}

.legal-copy p {
    color: #c5cec5;
    line-height: 1.75;
}

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

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

    .hero h1 {
        max-width: none;
    }
}

@media (max-width: 700px) {
    .controls {
        grid-template-columns: 1fr;
    }

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

    .tshirt {
        height: 360px;
    }
}

/* Light theme + shared navigation */
:root[data-theme='light'] {
    --bg: #f2efe7;
    --bg-soft: #e4ded2;
    --surface: #fffdf8;
    --surface-2: #f7f2e8;
    --surface-3: #ece5d8;
    --ink: #1b1c18;
    --muted: #667067;
    --border: #d6ccbc;
    --accent: #a78b4b;
    --accent-2: #496e5a;
    --success: #2f8a54;
    --danger: #b14a3d;
    --shadow: 0 18px 48px #00000012;
}

:root[data-theme='light'] body {
    background:
        radial-gradient(circle at top left, #d9e5dc 0%, transparent 28%),
        radial-gradient(circle at 82% 12%, #cab78c24 0%, transparent 20%),
        linear-gradient(180deg, #f3f0e9 0%, #ebe5da 40%, #f6f3ed 100%);
    color: var(--ink);
}

:root[data-theme='light'] body::before {
    background:
        linear-gradient(90deg, transparent 0, transparent 49.5%, #00000005 50%, transparent 50.5%, transparent 100%),
        linear-gradient(#00000005 1px, transparent 1px);
}

:root[data-theme='light'] .site-header,
:root[data-theme='light'] .site-footer,
:root[data-theme='light'] .panel,
:root[data-theme='light'] .controls,
:root[data-theme='light'] .card,
:root[data-theme='light'] .category-rail,
:root[data-theme='light'] .premium-strip-item,
:root[data-theme='light'] .hero,
:root[data-theme='light'] .hero-stage-card,
:root[data-theme='light'] .hero-signal,
:root[data-theme='light'] .control-card,
:root[data-theme='light'] .detail-meta-card,
:root[data-theme='light'] .admin-stat-card,
:root[data-theme='light'] .admin-surface-card,
:root[data-theme='light'] .admin-mini-stat,
:root[data-theme='light'] .shop-card {
    background: linear-gradient(180deg, #fffdf8, #f6f0e5);
    border-color: #dbcdbd;
    box-shadow: 0 18px 36px #00000010;
}

:root[data-theme='light'] .top-nav a,
:root[data-theme='light'] .theme-toggle,
:root[data-theme='light'] .site-nav-toggle,
:root[data-theme='light'] .share-link,
:root[data-theme='light'] .share-btn,
:root[data-theme='light'] .admin-nav-btn,
:root[data-theme='light'] .check-chip {
    background: #ffffffd9;
    color: #1b1c18;
    border-color: #d9cfbf;
}

:root[data-theme='light'] .hero-stage {
    background: linear-gradient(180deg, #efe7d8, #ddd4c5);
}

:root[data-theme='light'] .hero h1,
:root[data-theme='light'] .card h3,
:root[data-theme='light'] .card h2,
:root[data-theme='light'] .gallery-group-title,
:root[data-theme='light'] .category-rail h2,
:root[data-theme='light'] .detail-meta-card strong,
:root[data-theme='light'] .hero-stage-card h2 {
    color: #1d201b;
}

:root[data-theme='light'] .hero-lead,
:root[data-theme='light'] .hero p,
:root[data-theme='light'] .muted,
:root[data-theme='light'] .detail-meta-card span,
:root[data-theme='light'] .hero-signal span,
:root[data-theme='light'] .brand-copy small {
    color: #5f675f;
}

.site-nav-toggle {
    display: none;
}

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

.admin-sidebar {
    position: sticky;
    top: 104px;
    border-radius: 26px;
    padding: 1.05rem;
    background: linear-gradient(180deg, #102019f2, #0c1612f3);
}

.admin-sidebar-head {
    display: grid;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.admin-brand-block h1 {
    margin-bottom: 0.35rem;
}

.admin-sidebar-copy {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.admin-sidebar-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.admin-mini-stat {
    padding: 0.7rem 0.8rem;
    border-radius: 16px;
    border: 1px solid #ffffff14;
    background: linear-gradient(180deg, #16231dd7, #111b17d8);
}

.admin-mini-stat span {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.admin-mini-stat strong {
    font-size: 1.25rem;
    font-family: "Cormorant Garamond", serif;
}

.admin-nav {
    display: grid;
    gap: 0.55rem;
}

.admin-nav-btn {
    display: grid;
    justify-items: start;
    align-content: center;
    gap: 0.14rem;
    min-height: 58px;
    border-radius: 16px;
    background: linear-gradient(180deg, #16231ddc, #111b17d8);
    color: var(--ink);
    text-align: left;
    padding: 0.8rem 0.95rem;
}

.admin-nav-btn.is-active {
    background: linear-gradient(135deg, #355643, #22372c);
    border-color: #5d8f7040;
}

.admin-nav-btn span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 800;
}

.admin-nav-btn small {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

.admin-nav-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.65rem;
    min-height: 1.65rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: #ffffff14;
    color: var(--ink);
    font-size: 0.74rem;
    font-weight: 800;
}

.admin-sidebar-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #ffffff10;
}

.subtle-link {
    width: 100%;
    justify-content: center;
    min-height: 42px;
}

.admin-main {
    min-width: 0;
    display: grid;
    gap: 1rem;
}

.admin-mobile-bar {
    display: none;
}

.admin-tab-panel[hidden] {
    display: none !important;
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
}

.admin-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
}

.admin-topbar h2 {
    margin-bottom: 0.3rem;
}

.admin-topbar-actions,
.admin-shortcut-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.admin-quick-btn {
    min-height: 44px;
}

.admin-stat-card {
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid #ffffff10;
    background: linear-gradient(180deg, #14211bdd, #101915d9);
}

.admin-stat-card span {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--muted);
}

.admin-stat-card strong {
    font-size: 1.7rem;
    font-family: "Cormorant Garamond", serif;
}

.admin-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.admin-overview-grid,
.admin-workbench-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1rem;
}

.admin-analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1rem;
}

.admin-focus-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1rem;
}

.admin-surface-card {
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: 22px;
    border: 1px solid #ffffff10;
    background: linear-gradient(180deg, #14211bdb, #101915d7);
}

.admin-focus-card {
    display: grid;
    gap: 0.7rem;
    padding: 1rem;
    border-radius: 22px;
    border: 1px solid #ffffff10;
    background: linear-gradient(180deg, #16231de0, #0f1815de);
}

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

.admin-card-head h3 {
    margin: 0.15rem 0 0;
}

.admin-inline-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
}

.admin-inline-tools input {
    width: min(100%, 320px);
}

.admin-filter-tools {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(180px, 220px) auto;
    gap: 0.6rem;
    align-items: center;
    margin: 0 0 0.9rem;
}

.admin-filter-tools > span {
    justify-self: end;
}

.admin-filter-tools input,
.admin-filter-tools select {
    min-height: 46px;
}

.admin-kpi-list,
.admin-table-list {
    display: grid;
    gap: 0.55rem;
}

.admin-kpi-list div,
.admin-table-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.75rem 0.85rem;
    border-radius: 16px;
    border: 1px solid #ffffff10;
    background: #ffffff06;
}

.admin-kpi-list span,
.admin-table-row small {
    color: var(--muted);
}

.admin-table-row > div {
    display: grid;
    gap: 0.14rem;
}

.admin-table-row strong,
.admin-kpi-list strong {
    font-weight: 800;
}

.admin-item h3 {
    font-size: 1.05rem;
    line-height: 1.2;
}

.admin-item p {
    color: var(--muted);
    line-height: 1.45;
}

.admin-actions {
    display: grid;
    gap: 0.5rem;
    justify-items: stretch;
    align-content: start;
    min-width: 150px;
}

.admin-actions > * {
    width: 100%;
}

.check-chip.is-filter-hidden,
.js-product-item[hidden],
.js-inquiry-item[hidden],
.js-category-item[hidden] {
    display: none !important;
}

.admin-submit-row {
    display: flex;
    justify-content: flex-start;
}

.upload-workbench {
    gap: 1rem;
}

.multi-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    max-height: 340px;
}

.check-chip {
    margin: 0;
    min-height: 42px;
    padding: 0.55rem 0.7rem;
    border-radius: 14px;
    border: 1px solid #ffffff10;
    background: linear-gradient(180deg, #17241ed1, #121d18d3);
}

.check-chip span {
    display: block;
    line-height: 1.4;
}

.check-chip.is-filter-hidden {
    display: none !important;
}

.logo-preview-box {
    display: grid;
    align-content: start;
    gap: 0.55rem;
    padding: 0.8rem;
    border-radius: 18px;
    border: 1px solid #ffffff12;
    background: linear-gradient(180deg, #15221cdf, #101915d8);
}

.slim-panel {
    margin-top: 1rem;
}

.inquiry-panel,
.shop-card {
    border-radius: 28px;
}

.inquiry-form {
    max-width: 780px;
}

.legal-check {
    align-items: start;
    line-height: 1.6;
}

.shop-card {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #ffffff10;
    background: linear-gradient(180deg, #14211bdf, #101915da);
}

.shop-card-head h3 {
    margin: 0 0 0.2rem;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.8rem;
}

.shop-card-head p {
    margin: 0 0 0.9rem;
    color: var(--muted);
}

.shop-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 0.9rem;
}

@media (max-width: 930px) {
    .site-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 0.7rem 1rem;
        border-radius: 999px;
        border: 1px solid #ffffff14;
        background: #ffffff06;
        color: var(--ink);
    }

    .top-nav {
        display: none;
        width: 100%;
        grid-template-columns: 1fr;
    }

    .top-nav.is-open {
        display: grid;
    }

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

    .admin-sidebar {
        position: static;
        display: none;
    }

    .admin-sidebar.is-open {
        display: block;
    }

    .admin-mobile-bar {
        display: flex;
        justify-content: flex-end;
    }

    .admin-stat-grid,
    .admin-settings-grid,
    .admin-analytics-grid,
    .admin-overview-grid,
    .admin-focus-grid,
    .admin-workbench-grid,
    .shop-fields {
        grid-template-columns: 1fr;
    }

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

    .admin-filter-tools,
    .design-filter-row {
        grid-template-columns: 1fr;
    }

    .admin-filter-tools > span {
        justify-self: start;
    }

    .multi-check-grid {
        grid-template-columns: 1fr;
    }
}

main {
    max-width: 1540px;
}

.site-header,
.site-footer {
    width: min(1540px, calc(100% - 28px));
}

.hero-gallery {
    grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
    gap: 1.2rem;
}

.hero-detail {
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
    gap: 1rem;
}

.hero-stage.hero-stage-detail {
    min-height: 260px;
    padding: 1.2rem;
}

.hero-stage-detail .hero-stage-card {
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 1rem 1.1rem;
}

.hero-stage-detail .hero-stage-card h2 {
    font-size: clamp(1.65rem, 2.2vw, 2.4rem);
}

.gallery-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 1.15rem;
}

.controls {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
    padding: 0;
    border: 0;
    background: transparent;
}

.control-card {
    min-height: 100%;
}

.gallery-main {
    display: grid;
    gap: 0.9rem;
}

.gallery-status {
    margin: -0.2rem 0 0.2rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.gallery-status[data-mode='loading'] {
    color: var(--accent);
}

.gallery-status[data-mode='error'] {
    color: #f2a39b;
}

.gallery-load-sentinel {
    height: 2px;
}

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

.card {
    padding: 0.85rem;
}

.card-linkable .tshirt {
    cursor: pointer;
}

.card-visual-link,
.card-title-link {
    color: inherit;
    text-decoration: none;
}

.card-title-link:hover {
    color: var(--accent);
}

.card .tshirt {
    min-height: 320px;
}

.featured-design-card .tshirt {
    min-height: 360px;
}

.detail-wrap {
    margin-top: 0.9rem;
}

.card-detail-premium {
    padding: 1rem;
}

.card-detail-premium .tshirt {
    min-height: 540px;
}

.detail-meta-grid {
    gap: 0.8rem;
}

@media (min-width: 1280px) {
    .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1640px) {
    main {
        max-width: 1680px;
    }

    .site-header,
    .site-footer {
        width: min(1680px, calc(100% - 28px));
    }

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

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

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

    .hero-stage.hero-stage-detail {
        min-height: 220px;
    }
}

@media (max-width: 930px) {
    main {
        max-width: 1320px;
    }

    .site-header,
    .site-footer {
        width: min(100% - 20px, 1320px);
    }

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

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

    .card .tshirt,
    .featured-design-card .tshirt,
    .card-detail-premium .tshirt {
        min-height: 300px;
    }
}

.hero-stage {
    min-height: 540px;
    overflow: hidden;
}

.hero-stage-featured {
    position: absolute;
    inset: 20px 20px 170px;
    z-index: 2;
    display: grid;
    place-items: center;
    text-decoration: none;
    color: inherit;
    opacity: 0;
    transform: translateX(18px) scale(0.985);
    pointer-events: none;
    transition: opacity 0.48s ease, transform 0.48s ease;
}

.hero-stage-featured.is-active {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

.hero-stage-featured::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(180deg, transparent 0%, rgba(5, 10, 8, 0.06) 100%);
    pointer-events: none;
}

.tshirt-hero {
    width: min(100%, 430px);
    height: min(100%, 430px);
    min-height: 0;
    transform: translateY(4px);
}

.tshirt-hero .tshirt-photo {
    width: min(145%, 640px);
    height: min(145%, 640px);
}

.hero-stage-card {
    z-index: 3;
}

.hero-stage-dots {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 18px;
    bottom: auto;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
}

.hero-stage-dot {
    position: relative;
    width: 54px;
    height: 5px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    overflow: hidden;
    background: #ffffff24;
    cursor: pointer;
}

.hero-stage-dot-fill {
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    background: linear-gradient(90deg, color-mix(in oklab, var(--accent), white 18%), var(--accent));
}

.hero-stage-dot.is-active .hero-stage-dot-fill {
    animation: heroDotProgress 5.2s linear forwards;
}

@keyframes heroDotProgress {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

@media (min-width: 1440px) {
    .hero-stage {
        min-height: 580px;
    }

    .tshirt-hero {
        width: min(100%, 470px);
        height: min(100%, 470px);
    }
}

@media (max-width: 1180px) {
    .hero-stage {
        min-height: 500px;
    }

    .hero-stage-featured {
        inset: 18px 18px 156px;
    }

    .tshirt-hero {
        width: min(100%, 390px);
        height: min(100%, 390px);
    }
}

@media (max-width: 930px) {
    .hero-stage {
        min-height: 460px;
    }

    .hero-actions {
        width: 100%;
        gap: 0.8rem;
    }

    .hero-cta {
        width: 100%;
        min-width: 0;
        min-height: 62px;
        font-size: 1.08rem;
    }

    .hero-stage-featured {
        inset: 14px 14px 154px;
    }

    .hero-stage-dots {
        left: 14px;
        right: 14px;
        bottom: 126px;
    }

    .tshirt-hero {
        width: min(100%, 320px);
        height: min(100%, 320px);
        transform: translateY(-2px);
    }

    .hero-stage-card {
        left: 14px;
        right: 14px;
        bottom: 14px;
        padding: 1rem;
    }

    .hero-stage-card h2 {
        font-size: clamp(1.8rem, 6vw, 2.35rem);
    }
}

body.page-home {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

body.page-home main {
    width: min(1540px, calc(100% - 28px));
    max-width: 1540px;
    padding: 0.9rem 0 0.55rem;
    display: grid;
    align-content: start;
}

body.page-home .hero {
    padding: 1rem;
}

body.page-home .hero-gallery {
    grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
    gap: 1rem;
}

body.page-home .hero-copy {
    gap: 0.85rem;
    padding: 0.1rem;
}

body.page-home .hero h1 {
    max-width: 13.5ch;
    font-size: clamp(2.55rem, 4.1vw, 4.7rem);
    line-height: 0.92;
}

body.page-home .hero-lead,
body.page-home .hero p {
    max-width: 54ch;
    font-size: 0.98rem;
    line-height: 1.55;
}

body.page-home .hero-actions {
    gap: 0.8rem;
}

body.page-home .hero-cta {
    min-height: 74px;
    min-width: 260px;
    padding-inline: 1.5rem;
    font-size: 1.18rem;
}

body.page-home .hero-stage {
    min-height: 408px;
}

body.page-home .hero-stage-featured {
    inset: 8px 12px 126px;
}

body.page-home .hero-stage-dots {
    left: 14px;
    right: 14px;
    top: 14px;
    bottom: auto;
}

body.page-home .tshirt-hero {
    width: min(100%, 350px);
    height: min(100%, 350px);
    transform: translateY(-4px);
}

body.page-home .tshirt-hero .tshirt-photo {
    width: min(148%, 590px);
    height: min(148%, 590px);
}

body.page-home .hero-stage-card {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 0.95rem 1rem;
    border-radius: 22px;
}

body.page-home .hero-stage-card p {
    margin-bottom: 0.2rem;
    font-size: 0.74rem;
}

body.page-home .hero-stage-card h2 {
    font-size: clamp(1.7rem, 2.5vw, 2.55rem);
    line-height: 0.94;
}

body.page-home .hero-stage-card span {
    display: block;
    font-size: 0.95rem;
    line-height: 1.45;
}

body.page-home .premium-strip {
    margin: 0.8rem 0 0;
    gap: 0.8rem;
}

body.page-home .premium-strip-item {
    padding: 0.9rem 1rem;
    min-height: 122px;
}

body.page-home .premium-strip-item span {
    margin-bottom: 0.18rem;
    font-size: 0.72rem;
}

body.page-home .premium-strip-item strong {
    display: block;
    font-size: 0.95rem;
    line-height: 1.4;
}

body.page-home .site-footer {
    margin-top: 0.5rem;
    margin-bottom: 10px;
    padding: 0.7rem 0.9rem;
    gap: 0.45rem;
    border-radius: 20px;
}

body.page-home .site-footer a {
    padding: 0.22rem 0.4rem;
    font-size: 0.92rem;
}

@media (min-width: 1440px) and (max-height: 980px) {
    body.page-home .hero {
        padding: 0.95rem;
    }

    body.page-home .hero-stage {
        min-height: 386px;
    }

    body.page-home .hero-stage-featured {
        inset: 6px 10px 120px;
    }

    body.page-home .tshirt-hero {
        width: min(100%, 332px);
        height: min(100%, 332px);
    }

    body.page-home .premium-strip-item {
        min-height: 114px;
    }
}

@media (max-width: 1180px) {
    body.page-home main {
        width: min(100% - 24px, 1320px);
        padding-top: 0.8rem;
    }

    body.page-home .hero-gallery {
        grid-template-columns: 1fr;
    }

    body.page-home .hero h1 {
        max-width: none;
    }

    body.page-home .hero-stage {
        min-height: 420px;
    }
}

@media (max-width: 930px) {
    body.page-home {
        display: block;
        min-height: auto;
    }

    body.page-home main {
        width: auto;
        max-width: 1320px;
        padding: 0.85rem 0 0.7rem;
    }

    body.page-home .hero {
        padding: 0.95rem;
    }

    body.page-home .hero-copy {
        gap: 0.8rem;
    }

    body.page-home .hero h1 {
        font-size: clamp(2.25rem, 11vw, 3.85rem);
        line-height: 0.95;
    }

    body.page-home .hero-lead,
    body.page-home .hero p {
        font-size: 0.96rem;
        line-height: 1.55;
    }

    body.page-home .hero-cta {
        min-width: 0;
        min-height: 66px;
        width: 100%;
        font-size: 1.08rem;
    }

    body.page-home .hero-stage {
        min-height: 372px;
    }

    body.page-home .hero-stage-featured {
        inset: 10px 12px 128px;
    }

    body.page-home .hero-stage-dots {
        left: 12px;
        right: 12px;
        top: 12px;
        bottom: auto;
        gap: 0.45rem;
    }

    body.page-home .hero-stage-dot {
        width: 42px;
    }

    body.page-home .tshirt-hero {
        width: min(100%, 286px);
        height: min(100%, 286px);
    }

    body.page-home .premium-strip {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    body.page-home .premium-strip-item {
        min-height: auto;
    }

    body.page-home .site-footer {
        width: calc(100% - 16px);
        padding: 0.8rem;
        gap: 0.4rem 0.55rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-stage-featured,
    .hero-stage-dot-fill {
        transition: none;
        animation: none !important;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.brand-copy small {
    letter-spacing: 0.14em;
}

.hero-proof {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    border: 1px solid #ffffff12;
    background: linear-gradient(180deg, #16231dd8, #101915d4);
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.category-rail-copy {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.top-nav {
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.top-nav a {
    letter-spacing: 0.01em;
}

.theme-toggle {
    min-width: 44px;
    width: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
}

.theme-toggle-icon {
    width: 18px;
    height: 18px;
    display: block;
}

.search-inline.is-static {
    width: 100%;
}

.search-inline.is-static #designSearchInput {
    width: 100%;
    opacity: 1;
    pointer-events: auto;
    padding-inline: 0.65rem;
}

.search-inline.is-static .search-toggle {
    display: none;
}

.gallery-load-more-wrap {
    display: flex;
    justify-content: center;
    margin: 0.85rem 0 0;
}

.gallery-load-more {
    min-width: 220px;
}

.admin-span-2 {
    grid-column: 1 / -1;
}

.product-thumb {
    background: transparent;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.products-grid {
    margin-top: 1rem;
    align-items: start;
}

.product-card .product-media {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid #ffffff12;
    background: linear-gradient(180deg, #13211b, #0d1713);
    margin-bottom: 0.8rem;
}

.product-card .product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.page-home .hero h1 {
    max-width: 11.5ch;
}

body.page-home .hero-copy {
    max-width: 680px;
}

body.page-home .premium-strip-item {
    min-height: 108px;
}

body.page-home .premium-strip-item strong {
    font-size: 0.93rem;
    line-height: 1.45;
}

body.page-gallery .controls {
    align-items: stretch;
}

body.page-gallery .control-card {
    display: grid;
    align-content: start;
    gap: 0.55rem;
    min-height: 100%;
}

body.page-gallery .control-card select,
body.page-gallery .control-card input,
body.page-gallery .control-card details,
body.page-gallery .control-card .shirt-color-controls,
body.page-gallery .control-card .group-toggle {
    margin-top: auto;
}

@media (max-width: 930px) {
    .theme-toggle {
        width: 100%;
        min-width: 0;
        flex: 1 1 calc(50% - 0.35rem);
    }

    .brand {
        gap: 0.5rem;
    }

    .brand-copy strong {
        font-size: 0.88rem;
        letter-spacing: 0.08em;
    }

    .brand-copy small {
        font-size: 0.68rem;
        letter-spacing: 0.12em;
    }

    .site-header {
        align-items: flex-start;
    }

    .top-nav {
        gap: 0.6rem;
    }

    .top-nav a,
    .theme-toggle {
        min-height: 48px;
        justify-content: center;
    }

    .hero-proof {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    body.page-home .hero-stage-card span {
        font-size: 0.9rem;
    }

    body.page-gallery .category-rail {
        max-height: none;
    }

    body.page-gallery .category-rail.is-open {
        margin-bottom: 0.95rem;
    }

    body.page-gallery .controls {
        gap: 0.75rem;
    }

    body.page-gallery .control-card {
        padding: 0.95rem;
    }

    body.page-gallery main {
        padding-top: 0.75rem;
    }

    body.page-gallery .gallery-main {
        gap: 0.75rem;
    }

    body.page-gallery .gallery-meta,
    body.page-gallery .gallery-status {
        margin: 0;
        padding-inline: 0.15rem;
        font-size: 0.88rem;
        line-height: 1.45;
    }

    body.page-gallery .category-rail {
        padding: 0.9rem;
        border-radius: 22px;
    }

    body.page-gallery .category-rail-head {
        align-items: flex-start;
    }

    body.page-gallery .category-rail h2 {
        font-size: 1.55rem;
        line-height: 1;
    }

    body.page-gallery .category-rail-copy {
        font-size: 0.88rem;
        line-height: 1.45;
    }

    body.page-gallery .category-rail-toggle {
        min-height: 40px;
        padding-inline: 0.8rem;
    }

    body.page-gallery .shirt-color-controls {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.55rem;
        width: 100%;
    }

    body.page-gallery .shirt-menu,
    body.page-gallery .shirt-menu-summary,
    body.page-gallery .group-toggle,
    body.page-gallery .auto-toggle {
        width: 100%;
    }

    body.page-gallery .shirt-menu-summary {
        min-width: 0;
    }

    body.page-gallery .gallery,
    body.page-gallery .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    body.page-gallery .card {
        padding: 0.82rem;
        border-radius: 20px;
    }

    body.page-gallery .card .tshirt {
        min-height: 280px;
        margin-bottom: 0.72rem;
    }

    body.page-gallery .card h3,
    body.page-gallery .card h2 {
        font-size: clamp(1.05rem, 6vw, 1.35rem);
        line-height: 1.02;
    }

    body.page-gallery .muted {
        font-size: 0.9rem;
        line-height: 1.45;
    }

    body.page-gallery .card-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.55rem;
    }

    body.page-gallery .share-link,
    body.page-gallery .share-btn {
        width: 100%;
        min-height: 46px;
        padding: 0.72rem 0.5rem;
        font-size: 0.9rem;
        text-align: center;
    }

    body.page-detail .hero-actions,
    body.page-inquiry .hero-actions {
        width: 100%;
    }

    body.page-detail .hero-cta,
    body.page-inquiry .hero-cta {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 700px) {
    body.page-gallery .card .tshirt {
        min-height: 252px;
    }

    body.page-gallery .card-actions {
        grid-template-columns: 1fr;
    }

    body.page-gallery .share-link,
    body.page-gallery .share-btn {
        min-height: 48px;
        font-size: 0.95rem;
    }

    body.page-gallery .category-rail-head {
        gap: 0.7rem;
    }
}

@media (max-width: 930px) {
    .site-header {
        gap: 0.85rem;
        padding: 0.9rem;
    }

    .brand {
        width: 100%;
        min-width: 0;
    }

    .brand-copy {
        min-width: 0;
    }

    .brand-copy strong,
    .brand-copy small {
        display: block;
        overflow-wrap: anywhere;
    }

    .site-nav-toggle {
        width: 100%;
        min-height: 46px;
        justify-content: center;
    }

    .top-nav {
        width: 100%;
        gap: 0.55rem;
    }

    .top-nav a,
    .theme-toggle {
        flex: 1 1 calc(50% - 0.35rem);
    }

    body.page-home .hero,
    body.page-detail .hero,
    body.page-inquiry .hero,
    body.page-legal .hero {
        padding: 1rem;
        border-radius: 24px;
    }

    body.page-home .hero-copy,
    body.page-detail .hero-copy,
    body.page-inquiry .hero-copy,
    body.page-legal .hero-copy {
        gap: 0.85rem;
    }

    body.page-home .hero h1,
    body.page-detail .hero h1,
    body.page-inquiry .hero h1,
    body.page-legal .hero h1 {
        font-size: clamp(2.2rem, 11vw, 4rem);
        line-height: 0.96;
    }

    body.page-home .hero-lead,
    body.page-detail .hero-lead,
    body.page-inquiry .hero-lead,
    body.page-legal .hero-lead {
        font-size: 0.96rem;
        line-height: 1.55;
    }

    body.page-home .hero-actions,
    body.page-detail .hero-actions,
    body.page-inquiry .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.7rem;
        width: 100%;
    }

    body.page-home .hero-cta,
    body.page-detail .hero-cta,
    body.page-inquiry .hero-cta {
        width: 100%;
        justify-content: center;
        min-height: 50px;
    }

    body.page-home .hero-stage {
        min-height: 300px;
        padding: 1rem;
    }

    body.page-home .hero-stage-card,
    body.page-detail .hero-stage-card,
    body.page-inquiry .hero-stage-card {
        left: 14px;
        right: 14px;
        bottom: 14px;
        padding: 0.95rem;
        gap: 0.35rem;
    }

    body.page-home .hero-stage-card h2,
    body.page-detail .hero-stage-card h2,
    body.page-inquiry .hero-stage-card h2 {
        font-size: clamp(1.35rem, 6vw, 2rem);
        line-height: 0.98;
    }

    body.page-home .premium-strip {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    body.page-home .premium-strip-item {
        min-height: 0;
        padding: 1rem;
    }

    body.page-detail .card-detail,
    body.page-inquiry .inquiry-panel,
    body.page-legal .legal-panel {
        padding: 1rem;
        border-radius: 22px;
    }

    body.page-detail .detail-meta-grid,
    body.page-detail .shop-fields {
        grid-template-columns: 1fr;
    }

    body.page-detail .card-actions {
        grid-template-columns: 1fr;
    }

    body.page-detail .share-link,
    body.page-detail .share-btn {
        width: 100%;
        min-height: 48px;
        justify-content: center;
    }

    body.page-inquiry .panel-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    body.page-inquiry .upload-form,
    body.page-admin .upload-form {
        gap: 0.9rem;
    }

    body.page-inquiry .drop-zone {
        min-height: 120px;
        padding: 1rem;
    }

    body.page-legal .legal-copy h2 {
        font-size: clamp(1.35rem, 6vw, 1.75rem);
    }

    body.page-admin .admin-main {
        gap: 0.85rem;
    }

    body.page-admin .admin-mobile-bar {
        display: flex;
        justify-content: stretch;
    }

    body.page-admin .admin-mobile-bar .theme-toggle {
        width: 100%;
        min-width: 0;
        flex: 1 1 auto;
    }

    body.page-admin .admin-sidebar {
        padding: 0.9rem;
    }

    body.page-admin .admin-sidebar-head {
        gap: 0.7rem;
        margin-bottom: 0.85rem;
    }

    body.page-admin .admin-nav {
        display: grid;
        gap: 0.55rem;
    }

    body.page-admin .admin-nav-btn {
        min-height: 54px;
        padding: 0.75rem 0.85rem;
    }

    body.page-admin .admin-topbar,
    body.page-admin .admin-tab-panel {
        padding: 1rem;
        border-radius: 22px;
    }

    body.page-admin .admin-topbar-actions,
    body.page-admin .admin-shortcut-list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    body.page-admin .admin-quick-btn,
    body.page-admin .subtle-link {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }

    body.page-admin .admin-settings-grid,
    body.page-admin .admin-stat-grid,
    body.page-admin .admin-analytics-grid,
    body.page-admin .admin-overview-grid,
    body.page-admin .admin-focus-grid,
    body.page-admin .admin-workbench-grid,
    body.page-admin .shop-fields {
        grid-template-columns: 1fr;
    }

    body.page-admin .admin-filter-tools,
    body.page-admin .design-filter-row {
        grid-template-columns: 1fr;
    }

    body.page-admin .admin-design-card,
    body.page-admin .inquiry-card,
    body.page-admin .admin-surface-card {
        padding: 0.9rem;
    }

    body.page-admin .admin-design-actions,
    body.page-admin .inquiry-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    body.page-admin .admin-search-input,
    body.page-admin input[type="text"],
    body.page-admin input[type="password"],
    body.page-admin input[type="email"],
    body.page-admin input[type="number"],
    body.page-admin select,
    body.page-admin textarea {
        min-height: 46px;
    }

    body.page-admin .category-check-grid {
        grid-template-columns: 1fr;
        max-height: 360px;
    }
}

@media (max-width: 700px) {
    main {
        padding: 0.8rem 0.75rem 1.6rem;
    }

    .site-header,
    .site-footer {
        width: calc(100% - 12px);
    }

    .site-header {
        margin-top: 6px;
        padding: 0.72rem 0.78rem;
        border-radius: 18px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .brand-logo {
        width: 36px;
        height: 36px;
    }

    .brand-copy strong {
        font-size: 0.84rem;
        letter-spacing: 0.07em;
    }

    .brand-copy small {
        font-size: 0.62rem;
    }

    .top-nav a,
    .theme-toggle,
    .site-nav-toggle {
        min-height: 48px;
    }

    .brand {
        width: auto;
        flex: 1 1 auto;
        min-width: 0;
    }

    .site-nav-toggle {
        width: auto;
        min-width: 104px;
        padding-inline: 1rem;
        flex: 0 0 auto;
    }

    .top-nav {
        width: 100%;
        display: none;
        margin-top: 0.65rem;
    }

    .top-nav.is-open {
        display: grid;
    }

    body.page-home .hero-stage {
        min-height: 270px;
    }

    body.page-home .hero-stage-featured {
        inset: 12px;
    }

    body.page-home .hero-stage-card,
    body.page-detail .hero-stage-card,
    body.page-inquiry .hero-stage-card {
        padding: 0.85rem;
    }

    body.page-home .hero-stage-dots {
        left: 14px;
        right: 14px;
        bottom: 104px;
    }

    body.page-legal .legal-panel p,
    body.page-inquiry .panel p,
    body.page-detail .muted,
    body.page-gallery .gallery-meta,
    body.page-gallery .gallery-status {
        font-size: 0.92rem;
        line-height: 1.55;
    }

    body.page-admin .admin-topbar h2,
    body.page-admin .panel-head h2,
    body.page-legal .hero h1,
    body.page-inquiry .hero h1,
    body.page-detail .hero h1 {
        font-size: clamp(1.9rem, 9vw, 2.8rem);
    }
}

@media (max-width: 930px) {
    body.page-gallery .site-header {
        position: sticky;
        top: 0;
        z-index: 35;
    }

    body.page-gallery main {
        padding-top: 0.55rem;
    }

    body.page-gallery .gallery-layout {
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
    }

    body.page-gallery .gallery-main {
        order: 1;
        width: 100%;
    }

    body.page-gallery .category-rail {
        order: 2;
        position: static;
        top: auto;
        max-height: none;
        width: 100%;
        padding: 0.9rem;
        border-radius: 20px;
    }

    body.page-gallery .category-rail-head {
        margin-bottom: 0;
        gap: 0.65rem;
    }

    body.page-gallery .category-rail-head > div {
        display: grid;
        gap: 0.3rem;
    }

    body.page-gallery .category-rail h2 {
        font-size: 1.45rem;
        line-height: 0.96;
    }

    body.page-gallery .category-rail-copy {
        display: none;
    }

    body.page-gallery .category-rail-toggle {
        width: 100%;
        min-height: 46px;
        justify-content: center;
        font-weight: 700;
    }

    body.page-gallery .category-rail-list {
        padding-top: 0.75rem;
        gap: 0.45rem;
    }

    body.page-gallery .controls {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.7rem;
        margin: 0 0 0.8rem;
        padding: 0.85rem;
        border-radius: 20px;
    }

    body.page-gallery .control-card,
    body.page-gallery .control-field {
        min-width: 0;
        width: 100%;
    }

    body.page-gallery .control-card {
        padding: 0.85rem;
        border-radius: 18px;
        gap: 0.55rem;
    }

    body.page-gallery .control-card select,
    body.page-gallery .control-card input,
    body.page-gallery .control-card details {
        width: 100%;
    }

    body.page-gallery .shirt-color-controls {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    body.page-gallery .shirt-menu,
    body.page-gallery .shirt-menu-summary,
    body.page-gallery .auto-toggle,
    body.page-gallery .group-toggle,
    body.page-gallery .search-inline.is-static,
    body.page-gallery #designSearchInput {
        width: 100%;
    }

    body.page-gallery .shirt-menu-summary,
    body.page-gallery .auto-toggle,
    body.page-gallery .group-toggle {
        min-height: 48px;
    }

    body.page-gallery .gallery-meta {
        margin: 0 0.1rem 0.55rem;
        font-size: 0.86rem;
    }

    body.page-gallery .gallery-status {
        margin: 0 0.1rem 0.55rem;
        font-size: 0.86rem;
    }

    body.page-gallery .gallery,
    body.page-gallery .gallery-grid {
        grid-template-columns: 1fr !important;
        gap: 0.85rem;
    }

    body.page-gallery .gallery-group {
        margin-bottom: 1rem;
    }

    body.page-gallery .gallery-group-title {
        padding: 0.62rem 0.78rem;
        font-size: 1.35rem;
        border-radius: 16px;
    }

    body.page-gallery .card {
        padding: 0.74rem;
        border-radius: 18px;
    }

    body.page-gallery .card .tshirt {
        height: auto;
        min-height: 208px;
        aspect-ratio: 1 / 0.96;
        margin-bottom: 0.62rem;
        border-radius: 18px;
    }

    body.page-gallery .card h2,
    body.page-gallery .card h3 {
        font-size: clamp(1.2rem, 7vw, 1.65rem);
        line-height: 0.96;
        margin-bottom: 0.2rem;
    }

    body.page-gallery .muted {
        font-size: 0.86rem;
        line-height: 1.42;
    }

    body.page-gallery .card-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.42rem;
    }

    body.page-gallery .share-link,
    body.page-gallery .share-btn {
        min-height: 42px;
        width: 100%;
        padding: 0.58rem 0.35rem;
        font-size: 0.82rem;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    body.page-home .hero-stage-dots {
        left: 12px;
        right: 12px;
        bottom: 102px;
        gap: 0.45rem;
    }

    body.page-home .hero-stage-dot {
        width: 42px;
    }

    body.page-gallery .card .tshirt {
        min-height: 188px;
        aspect-ratio: 1 / 0.9;
    }

    body.page-gallery .gallery-group-title {
        font-size: 1.12rem;
        padding: 0.56rem 0.68rem;
    }

    body.page-gallery .card {
        padding: 0.68rem;
    }

    body.page-gallery .muted {
        font-size: 0.82rem;
    }

    body.page-gallery .card-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body.page-gallery .share-link,
    body.page-gallery .share-btn {
        min-height: 40px;
        font-size: 0.78rem;
        border-radius: 999px;
    }
}
