/* POD Designer — shared styles for studio, admin and storefront. */

@font-face { font-family: "Anton"; src: url("/fonts/Anton-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Bebas Neue"; src: url("/fonts/BebasNeue-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Pacifico"; src: url("/fonts/Pacifico-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Permanent Marker"; src: url("/fonts/PermanentMarker-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Monoton"; src: url("/fonts/Monoton-Regular.ttf") format("truetype"); font-display: swap; }

/* The hidden attribute must win over component display rules (e.g. .field's flex). */
[hidden] { display: none !important; }

:root {
  /* Category theme (set from the active category in JS). */
  --accent: #ff3d9a;
  --accent-2: #ffd166;
  --hero-dark: #140a17;
  --hero-light: #fff1f7;
  --display: "Anton", Impact, sans-serif;
  --script: "Pacifico", cursive;

  --bg: #f6f3f1;
  --surface: #ffffff;
  --surface-2: #efebe7;
  --text: #17141b;
  --muted: #6d6874;
  --line: #e2ddd7;
  --accent-ink: #ffffff;
  --ok: #117a4a;
  --ok-bg: #dff4e8;
  --warn: #a33a12;
  --warn-bg: #fde9dc;
  --info: #2a4bb8;
  --info-bg: #e3e9ff;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(20, 10, 25, .06), 0 8px 24px -12px rgba(20, 10, 25, .18);
  --shadow-lift: 0 2px 4px rgba(20, 10, 25, .08), 0 22px 40px -18px rgba(20, 10, 25, .35);
  --grad: linear-gradient(120deg, var(--accent), var(--accent-2));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111014; --surface: #1b1a20; --surface-2: #25242b; --text: #f3f1f6; --muted: #a5a0ad;
    --line: #312f38; --accent-ink: #160a10; --ok: #6ee7a8; --ok-bg: #12301f; --warn: #fdba8c;
    --warn-bg: #3a2216; --info: #a9b9ff; --info-bg: #1d2447;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
    --shadow-lift: 0 2px 4px rgba(0,0,0,.4), 0 22px 40px -18px rgba(0,0,0,.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111014; --surface: #1b1a20; --surface-2: #25242b; --text: #f3f1f6; --muted: #a5a0ad;
  --line: #312f38; --accent-ink: #160a10; --ok: #6ee7a8; --ok-bg: #12301f; --warn: #fdba8c;
  --warn-bg: #3a2216; --info: #a9b9ff; --info-bg: #1d2447; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
img { max-width: 100%; }
h2 { font: 400 15px/1 "Bebas Neue", sans-serif; letter-spacing: .14em; color: var(--muted); margin: 0 0 12px; }
h3 { font: 400 20px/1.1 "Bebas Neue", sans-serif; letter-spacing: .06em; margin: 0 0 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- header ---------------------------------------------------------------- */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 20px; padding: 12px 24px; flex-wrap: wrap;
  background: color-mix(in srgb, var(--hero-dark) 92%, transparent);
  backdrop-filter: blur(12px); color: #fff;
  border-bottom: 3px solid transparent; border-image: var(--grad) 1;
}
.brand { font: 400 26px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.brand span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-left: 4px; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; padding: 6px 12px; border-radius: 999px; font: 400 17px/1 "Bebas Neue", sans-serif; letter-spacing: .08em; color: rgba(255,255,255,.75); }
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav a[aria-current="page"] { color: var(--hero-dark); background: var(--grad); }
.poc-note { margin: 0 0 0 auto; color: rgba(255,255,255,.6); font-size: 12px; }

/* ---- layout ---------------------------------------------------------------- */
.shell { display: grid; grid-template-columns: 300px 1fr; min-height: calc(100vh - 60px); }
.panel { border-right: 1px solid var(--line); padding: 22px 20px; display: flex; flex-direction: column; gap: 26px; background: var(--surface); }
main { padding: 24px; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > .field { min-width: 140px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

.cat { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer; font: 400 22px/1.1 var(--display); text-transform: uppercase; letter-spacing: .01em; position: relative; overflow: hidden; }
.cat small { display: block; color: var(--muted); font: 12px/1.4 ui-sans-serif, system-ui, sans-serif; text-transform: none; margin-top: 4px; }
.cat[aria-pressed="true"] { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; border: 2px solid transparent; }
.cat[aria-pressed="true"]::after { content: ""; position: absolute; right: -24px; top: -24px; width: 70px; height: 70px; border-radius: 50%; background: var(--grad); opacity: .25; }
.cat:disabled { opacity: .5; cursor: default; font-size: 18px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 13px; cursor: pointer; font-size: 13px; transition: background .15s, border-color .15s; }
.chip:hover { border-color: var(--accent); }
.chip[aria-checked="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); cursor: pointer; padding: 0; box-shadow: inset 0 -3px 6px rgba(0,0,0,.12); }
.swatch[aria-checked="true"] { outline: 2px solid var(--accent); outline-offset: 3px; }

.field > button { align-self: flex-start; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); margin-bottom: 10px; flex: 1; }
.field input:not([type]), .field input[type="text"], .field input[type="date"], .field input[type="email"], .field input[type="password"], .field input[type="search"], .field input[type="url"], .field input[type="number"], .field select, .field textarea, .note-add input {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; color: var(--text); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
input[type="range"] { accent-color: var(--accent); width: 100%; }
input[type="checkbox"] { accent-color: var(--accent); }
input[type="color"] { width: 30px; height: 24px; border: 1px solid var(--line); border-radius: 6px; padding: 0; background: none; }
.check { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 10px; align-items: center; }

button.primary, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--grad); color: var(--hero-dark); border: 0; border-radius: 12px;
  padding: 11px 18px; font: 400 17px/1 "Bebas Neue", sans-serif; letter-spacing: .08em; cursor: pointer; text-decoration: none;
  box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--accent) 70%, transparent); transition: transform .12s, box-shadow .12s;
}
button.primary:hover, .button:hover { transform: translateY(-1px); }
.panel button.primary { width: 100%; }
button.primary:disabled, button.ghost:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.ghost, .button.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 9px 14px; cursor: pointer; box-shadow: none; font: 400 16px/1 "Bebas Neue", sans-serif; letter-spacing: .08em; }
.ghost:hover { border-color: var(--accent); }
.button.small, .ghost.small { padding: 7px 11px; font-size: 14px; }
.danger { color: var(--warn); }

.notice { background: var(--warn-bg); color: var(--warn); border-radius: 14px; padding: 12px 16px; margin-bottom: 16px; font-size: 14px; }
.notice.info { background: var(--info-bg); color: var(--info); }
.empty { color: var(--muted); text-align: center; margin: 70px auto; max-width: 420px; }

/* ---- tabs + grids ---------------------------------------------------------- */
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs button { background: none; border: 0; padding: 8px 0 10px; cursor: pointer; font: 400 22px/1 var(--display); text-transform: uppercase; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--text); border-image: var(--grad) 1; border-bottom: 3px solid; }
.chips.filter { margin-bottom: 10px; }

.design-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin-top: 8px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card button.open { all: unset; cursor: pointer; display: block; aspect-ratio: 1; background: var(--surface-2); }
.card button.open:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .meta { padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.card-foot { padding: 0 12px 12px; }
.note-preview { margin: 6px 0 0; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.note-preview.rejection { color: var(--warn); }
.id-meta { display: flex; gap: 6px; align-items: center; }
.design-id { font: 400 17px/1 "Bebas Neue", sans-serif; letter-spacing: .08em; color: var(--text); }

.pill { border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 600; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.no { background: var(--warn-bg); color: var(--warn); }
.pill.stage-in_review { background: var(--info-bg); color: var(--info); }
.pill.stage-approved { background: var(--ok-bg); color: var(--ok); }
.pill.stage-listed { background: var(--grad); color: var(--hero-dark); }
.pill.stage-archived { opacity: .7; }

.images { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 20px; }
.images-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.thumb { all: unset; cursor: pointer; border-radius: 12px; overflow: hidden; background: var(--surface-2); position: relative; display: block; aspect-ratio: 4 / 5; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .lic, .thumb .res { position: absolute; font-size: 10px; background: rgba(0,0,0,.72); color: #fff; padding: 1px 6px; border-radius: 6px; }
.thumb .lic { left: 6px; bottom: 6px; }
.thumb .res { right: 6px; top: 6px; }
.thumb .res.hd { background: var(--grad); color: var(--hero-dark); font-weight: 700; }
.thumb[aria-pressed="true"] { outline: 3px solid var(--accent); outline-offset: -3px; }
.thumb.blocked img { opacity: .45; }

/* ---- editor dialog --------------------------------------------------------- */
dialog { border: 0; border-radius: 22px; padding: 0; width: min(1180px, calc(100vw - 32px)); max-height: calc(100vh - 32px); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lift); }
dialog::backdrop { background: rgba(10, 6, 14, .62); backdrop-filter: blur(3px); }
.editor-close { position: absolute; right: 12px; top: 10px; z-index: 1; }
.editor-close button { background: transparent; border: 0; font-size: 20px; cursor: pointer; color: var(--muted); }
.editor { display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; padding: 26px; }
.editor-preview { display: flex; flex-direction: column; gap: 10px; }
.editor-preview img#editor-img { width: 100%; aspect-ratio: 1; border-radius: 16px; background: var(--surface-2); display: block; }
.product-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.product-strip button { all: unset; cursor: pointer; border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: var(--surface-2); }
.product-strip button[aria-current="true"] { outline: 2px solid var(--accent); outline-offset: -2px; }
.product-strip img { width: 100%; height: 100%; display: block; }
.editor-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; padding-right: 30px; }
.editor-head h2 { font: 400 30px/1 var(--display); text-transform: uppercase; letter-spacing: 0; color: var(--text); margin: 0; }
.meta-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inks { align-items: center; gap: 18px; }
.palettes { display: flex; flex-wrap: wrap; gap: 6px; }
.palette { display: flex; border-radius: 9px; overflow: hidden; border: 2px solid transparent; cursor: pointer; padding: 0; background: none; }
.palette span { width: 14px; height: 26px; display: block; }
.palette[aria-checked="true"] { border-color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 10px; }
.downloads { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.downloads #e-prints { display: contents; }
.clearance { border-radius: 14px; padding: 12px 14px; font-size: 13px; }
.clearance.no { background: var(--warn-bg); color: var(--warn); }
.clearance.ok { background: var(--ok-bg); color: var(--ok); }
.clearance ul { margin: 6px 0 0; padding-left: 18px; }
.notes { margin-top: 14px; }
.notes ul { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.notes li { background: var(--surface-2); border-radius: 10px; padding: 8px 10px; }
.notes li.rejection { background: var(--warn-bg); color: var(--warn); }
.note-add { display: flex; gap: 6px; }
.attribution { margin-top: 12px; font-size: 12px; color: var(--muted); }
.attribution p { word-break: break-word; }

/* ---- admin ----------------------------------------------------------------- */
.admin-shell { max-width: 1240px; margin: 0 auto; padding: 24px; }
.admin-hero { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-hero h1 { font: 400 44px/1 var(--display); text-transform: uppercase; margin: 0; }
.admin-hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats { display: flex; gap: 10px; flex-wrap: wrap; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; min-width: 110px; box-shadow: var(--shadow); }
.stat b { display: block; font: 400 30px/1 var(--display); }
.stat span { font-size: 12px; color: var(--muted); }
.login { max-width: 420px; margin: 80px auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.login h1 { font: 400 34px/1 var(--display); text-transform: uppercase; margin: 0 0 8px; }
.review-item { display: grid; grid-template-columns: 340px 1fr; gap: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; box-shadow: var(--shadow); }
.review-item img { width: 100%; border-radius: 14px; background: var(--surface-2); display: block; }
.review-item h3 { font: 400 26px/1.05 var(--display); text-transform: uppercase; letter-spacing: 0; }
.review-item .checklist { display: flex; flex-direction: column; gap: 4px; margin: 12px 0; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.review-item textarea { min-height: 60px; }
.panel-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; box-shadow: var(--shadow); }
.panel-card h3 { font: 400 26px/1.05 var(--display); text-transform: uppercase; letter-spacing: 0; }
.release-designs { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.release-designs figure { margin: 0; width: 120px; font-size: 12px; }
.release-designs img { width: 120px; height: 120px; border-radius: 12px; object-fit: cover; background: var(--surface-2); display: block; }
.results { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 10px; }
.results th, .results td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.results pre, pre.payload { white-space: pre-wrap; word-break: break-word; font-size: 11px; background: var(--surface-2); padding: 10px; border-radius: 10px; max-height: 320px; overflow: auto; margin: 6px 0 0; }
.blockers { background: var(--warn-bg); color: var(--warn); border-radius: 12px; padding: 10px 14px; font-size: 13px; }
.blockers ul { margin: 4px 0 0; padding-left: 18px; }
.readiness { font-size: 13px; }
.readiness.ok { color: var(--ok); }
.readiness.no { color: var(--warn); }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0 12px; }
.table-wrap { overflow-x: auto; }

/* ---- storefront ------------------------------------------------------------ */
.shop-hero { position: relative; overflow: hidden; background: var(--hero-dark); color: var(--hero-light); padding: 56px 24px 0; }
.shop-hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 560px; height: 560px; border-radius: 50%; background: var(--grad); filter: blur(90px); opacity: .45; }
.shop-hero .inner { position: relative; max-width: 1200px; margin: 0 auto; }
.shop-hero .kicker { font: 400 18px/1 "Bebas Neue", sans-serif; letter-spacing: .25em; color: var(--accent-2); }
.shop-hero h1 { font: 400 clamp(52px, 10vw, 128px)/.9 var(--display); text-transform: uppercase; margin: 10px 0 12px; letter-spacing: -.01em; }
.shop-hero h1 .script { display: block; font: 400 clamp(28px, 4.2vw, 52px)/1.1 var(--script); text-transform: none; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-top: 6px; }
.shop-hero p.tagline { max-width: 560px; font-size: 17px; color: color-mix(in srgb, var(--hero-light) 78%, transparent); margin: 0 0 26px; }
.search { position: relative; max-width: 640px; margin-bottom: 34px; }
.search input { width: 100%; padding: 16px 20px 16px 50px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: var(--hero-light); font-size: 17px; backdrop-filter: blur(6px); }
.search input::placeholder { color: rgba(255,255,255,.55); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent); }
.search svg { z-index: 1; pointer-events: none; color: var(--hero-light); position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; opacity: .7; }
.marquee { position: relative; background: var(--grad); color: var(--hero-dark); overflow: hidden; white-space: nowrap; margin: 0 -24px; padding: 12px 0; transform: rotate(-1.2deg); margin-bottom: -8px; }
.marquee .track { display: inline-block; font: 400 30px/1 var(--display); text-transform: uppercase; animation: marquee 28s linear infinite; }
.marquee .track span { margin: 0 20px; }
.marquee .track i { font-style: normal; opacity: .55; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none; } }
.shop-main { max-width: 1200px; margin: 0 auto; padding: 40px 24px 60px; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.section-title h2 { font: 400 34px/1 var(--display); text-transform: uppercase; color: var(--text); letter-spacing: 0; margin: 0; }
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 44px; }
.cat-tile { position: relative; overflow: hidden; display: block; text-decoration: none; border-radius: 22px; padding: 22px 22px 54px; min-height: 170px; color: var(--tile-light, #fff); background: var(--tile-dark, #111); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.cat-tile::after { content: ""; position: absolute; width: 220px; height: 220px; right: -60px; bottom: -80px; border-radius: 50%; background: linear-gradient(120deg, var(--tile-accent, #f39), var(--tile-accent-2, #fc6)); filter: blur(4px); opacity: .85; }
.cat-tile:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: var(--shadow-lift); }
.cat-tile b { position: relative; z-index: 1; display: block; font: 400 38px/1 var(--display); text-transform: uppercase; }
.cat-tile span { position: relative; z-index: 1; font-size: 13px; opacity: .8; display: block; max-width: 70%; margin-top: 8px; }
.cat-tile em { position: absolute; z-index: 1; left: 22px; bottom: 18px; font: 400 16px/1 "Bebas Neue", sans-serif; letter-spacing: .12em; font-style: normal; }
.cat-tile.soon { --tile-dark: var(--surface-2); --tile-light: var(--muted); --tile-accent: var(--line); --tile-accent-2: var(--line); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.product { background: var(--surface); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; border: 1px solid var(--line); }
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.product .img { position: relative; aspect-ratio: 1; background: var(--surface-2); }
.product .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product .badge { position: absolute; left: 12px; top: 12px; }
.product .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product .cat-name { font: 400 14px/1 "Bebas Neue", sans-serif; letter-spacing: .14em; color: var(--accent); }
.product h3 { font: 600 15px/1.3 ui-sans-serif, system-ui, sans-serif; letter-spacing: 0; margin: 0; }
.product .price-row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 8px; }
.product .price { font: 400 26px/1 var(--display); }
.product .credit { font-size: 11px; color: var(--muted); }
.shop-empty { text-align: center; padding: 60px 20px; border: 2px dashed var(--line); border-radius: 24px; color: var(--muted); }
.shop-empty b { display: block; font: 400 34px/1 var(--display); text-transform: uppercase; color: var(--text); margin-bottom: 6px; }
.preview-banner { background: var(--info-bg); color: var(--info); text-align: center; padding: 8px 16px; font-size: 13px; }
.shop-foot { text-align: center; color: var(--muted); font-size: 12px; padding: 30px 24px 50px; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .panel { border-right: 0; border-bottom: 1px solid var(--line); padding: 16px; }
  main { padding: 16px; }
  .editor { grid-template-columns: 1fr; padding: 16px; gap: 16px; }
  .design-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .review-item { grid-template-columns: 1fr; }
  .top { padding: 10px 16px; gap: 10px; }
  .poc-note { display: none; }
  .admin-shell, .shop-main { padding: 16px; }
  .shop-hero { padding: 36px 16px 0; }
  .marquee { margin: 0 -16px -8px; }
  .product-strip { grid-template-columns: repeat(3, 1fr); }
}

/* Admin: all designs + licences & assets */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.filter-bar .field { flex: 0 1 180px; margin-bottom: 0; }
.filter-bar .field.grow { flex: 1 1 240px; }
.bulk-bar { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 12px 0; margin: 10px 0; border-bottom: 1px solid var(--line); }
.bulk-row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.bulk-row .check { margin: 0; color: var(--text); }
.bulk-count { font: 400 18px/1 "Bebas Neue", sans-serif; letter-spacing: .08em; }
.bulk-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bulk-actions select { padding: 7px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.bulk-actions button:disabled, .bulk-actions select:disabled { opacity: .45; cursor: not-allowed; }
.bulk-panel { margin-top: 12px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); max-width: 640px; }
.design-grid, .asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; align-items: start; }
.asset-card.editing { grid-column: span 2; }
.asset-card.editing img { aspect-ratio: 2; }
@media (max-width: 520px) { .asset-card.editing { grid-column: auto; } }
.tabs { overflow-x: auto; scrollbar-width: thin; }
.tabs button { white-space: nowrap; flex: none; }
.design-card, .asset-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.design-card.selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.design-pick { position: relative; display: block; cursor: pointer; }
.design-pick input { position: absolute; top: 10px; left: 10px; width: 20px; height: 20px; accent-color: var(--accent); }
.design-pick img, .asset-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--surface-2); }
.design-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.design-body p { margin: 0; }
.design-name { font-weight: 600; }
.card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.asset-card .lyric { margin: 0; padding: 18px; min-height: 120px; background: var(--surface-2); font: 400 20px/1.2 var(--display); text-transform: uppercase; }
.asset-card .ref { overflow-wrap: anywhere; }
.asset-editor { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; }
.two-up { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.notice.ok { background: var(--ok-bg); color: var(--ok); }
.signout { margin-left: 10px; }

/* Items: one design offered on many products, each reviewed on its own. */
.pill.item-unreviewed { background: var(--info-bg); color: var(--info); }
.pill.item-approved { background: var(--ok-bg); color: var(--ok); }
.pill.item-rejected { background: var(--warn-bg); color: var(--warn); }
.items-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0; }
.items-panel { border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin: 12px 0 18px; background: var(--surface); }
.items-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; }
.items-head h3 { margin: 0 0 4px; }
.items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 12px; }
.item-tile { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg); display: flex; flex-direction: column; }
.item-tile img { width: 100%; height: auto; display: block; }
.item-tile.is-unreviewed { border-color: var(--info); }
.item-tile.is-rejected { opacity: .72; }
.item-body { padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.item-body .downloads { display: flex; flex-wrap: wrap; gap: 4px; }
.items-waiting { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 16px; }
.waiting-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.waiting-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.waiting-list img { border-radius: 8px; background: var(--surface-2); }
@media (max-width: 520px) { .items-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
.product .badge.item-badge { top: auto; bottom: 12px; }

/* Storefront item view: one item large, plus the same design on its other items. */
button.open-item { all: unset; cursor: pointer; display: block; box-sizing: border-box; }
.product button.img.open-item { width: 100%; }
.product h3 button.link { font: inherit; color: inherit; text-align: left; }
button.open-item:focus-visible, .also-item:focus-visible { outline: 2px solid var(--accent, #e0217f); outline-offset: 2px; }
.product .also { margin: 0; font-size: 12px; color: var(--muted); }
.item-dialog { width: min(960px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 18px; background: var(--surface); color: var(--text); }
.item-dialog::backdrop { background: rgba(10, 8, 14, .55); }
.item-view { position: relative; padding: 20px; }
.item-view .close { position: absolute; right: 12px; top: 10px; border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; color: var(--muted); }
.item-main { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.item-main .img { position: relative; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.item-main .img img { width: 100%; height: auto; display: block; }
.item-main .img .badge { position: absolute; left: 12px; top: 12px; }
.item-main .img .badge.item-badge { top: auto; bottom: 12px; }
.item-info { display: flex; flex-direction: column; gap: 8px; }
.item-info h2 { margin: 0; font-size: 24px; line-height: 1.15; }
.item-info .desc { margin: 0; }
.item-info .price-row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.also-on { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 14px; }
.also-on h3 { margin: 0 0 10px; font-size: 16px; }
.also-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.also-item { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.also-item .img { position: relative; border-radius: 10px; overflow: hidden; background: var(--surface-2); aspect-ratio: 1; display: block; }
.also-item .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.also-item .badge { position: absolute; left: 6px; bottom: 6px; font-size: 9px; }
.also-item .also-name { font-weight: 600; }
@media (max-width: 640px) { .item-main { grid-template-columns: 1fr; } .item-view { padding: 16px; } }
.pw-panel { max-width: 460px; }
