/* Jaddylux members site.
   Layout: a private house. Public pages open on a cobalt cover with the logo; inside, a calm paper-white workspace
   with a tab bar, a two-column dashboard (feed + new releases) and an admin area marked by a navy header. */
:root {
  --bg: #F5F6FA;
  --surface: #FFFFFF;
  --sunk: #ECEEF5;
  --fg: #12162B;
  --muted: #5B6078;
  --line: #DCDFE9;
  --cobalt: #1F33A6;
  --on-cobalt: #F5F6FA;
  --blush: #EBC9C2;
  --blush-ink: #6E2F2A;
  --ok: #1D6B4A;
  --warn: #8A5A00;
  --err: #A3262E;
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --body: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
  --gl: max(16px, env(safe-area-inset-left, 0px));
  --gr: max(16px, env(safe-area-inset-right, 0px));
  --radius: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0D1020; --surface: #151A30; --sunk: #1B2140; --fg: #EDEFF7; --muted: #A2A8C2; --line: #2A3150;
    --cobalt: #3B52D6; --on-cobalt: #F5F6FA; --blush: #E5BDB5; --blush-ink: #5A2420;
    --ok: #5FC79A; --warn: #E3B35C; --err: #F08A8F; color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 1rem; line-height: 1.55;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 400; }
h1 { font-family: var(--display); font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.05; }
h1 em, h2 em { font-style: italic; color: var(--cobalt); }
h2 { font-family: var(--display); font-size: 1.55rem; line-height: 1.15; }
h3 { font-size: 1.02rem; font-weight: 600; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: var(--gl); padding-right: var(--gr); }
.kicker { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); font-size: .9rem; }
.hint { display: block; color: var(--muted); font-size: .8rem; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.link { background: none; border: 0; padding: 0; color: var(--cobalt); text-decoration: underline; text-underline-offset: 3px; font-size: .9rem; }
.link.danger { color: var(--err); }
.pad { padding: 1rem 0; }

/* Logo (transparent cut-outs used as masks, so they take the surrounding text colour) */
.logo-full, .logo-mark { display: block; background: currentColor; -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }
.logo-full { --src: url("../assets/logo-full.png"); aspect-ratio: 1292 / 666; }
.logo-mark { --src: url("../assets/logo-mark.png"); aspect-ratio: 681 / 666; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand .logo-mark { height: 34px; }
.brand-word { font-weight: 500; font-size: 1.05rem; letter-spacing: .12em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .7rem 1.35rem; border-radius: 999px;
  border: 1px solid var(--fg); background: var(--fg); color: var(--bg); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; transition: background .15s, color .15s, opacity .15s; }
.btn:hover { background: transparent; color: var(--fg); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn.line { background: transparent; color: var(--fg); }
.btn.line:hover { background: var(--fg); color: var(--bg); }
.btn.small { min-height: 36px; padding: .45rem .95rem; font-size: .7rem; }
.btn.block { width: 100%; }
.btn.danger { border-color: var(--err); color: var(--err); }
.btn.danger:hover, .btn.armed { background: var(--err); color: var(--surface); border-color: var(--err); }
.btn.light { background: var(--on-cobalt); color: #1F33A6; border-color: var(--on-cobalt); }
.btn.light:hover { background: transparent; color: var(--on-cobalt); }
.btn.ghost-light { background: transparent; color: var(--on-cobalt); border-color: var(--on-cobalt); }
.btn.ghost-light:hover { background: var(--on-cobalt); color: #1F33A6; }
.link.armed { color: var(--err); font-weight: 600; }
.pill { display: inline-flex; align-items: center; gap: .4rem; min-height: 38px; padding: .4rem .95rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: .85rem; text-decoration: none; }
.pill:hover { border-color: var(--fg); }
.pill.solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pill.accent { background: var(--cobalt); color: var(--on-cobalt); border-color: var(--cobalt); }
.row-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.row-actions.end { justify-content: flex-end; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* Preview bar */
.preview-bar { background: var(--blush); color: var(--blush-ink); font-size: .8rem; display: flex; flex-wrap: wrap; gap: .4rem 1rem; justify-content: center; align-items: center;
  padding: .45rem var(--gr) .45rem var(--gl); }
.preview-switch { display: inline-flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.preview-switch button { border: 1px solid currentColor; background: transparent; border-radius: 999px; padding: .1rem .6rem; font-size: .75rem; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.top.is-admin { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.top.is-admin .pill { border-color: color-mix(in srgb, var(--bg) 35%, transparent); }
.top.is-admin .pill:hover { border-color: var(--bg); }
.top-row { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.top-tools { margin-left: auto; display: flex; gap: .5rem; align-items: center; }
.area-tag { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; border: 1px solid currentColor; border-radius: 999px; padding: .15rem .55rem; opacity: .8; }
.tabs-nav { display: flex; gap: 1.6rem; overflow-x: auto; scrollbar-width: none; }
.tabs-nav::-webkit-scrollbar { display: none; }
.tabs-nav a { display: inline-flex; align-items: center; gap: .4rem; padding: .7rem 0 .8rem; text-decoration: none; font-size: .92rem; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.is-admin .tabs-nav a { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.tabs-nav a:hover { color: inherit; }
.tabs-nav a[aria-current="page"] { color: inherit; border-color: currentColor; font-weight: 500; }
.top:not(.is-admin) .tabs-nav a[aria-current="page"] { color: var(--fg); }
.dot-count { font-family: var(--mono); font-size: .66rem; background: var(--cobalt); color: var(--on-cobalt); border-radius: 999px; min-width: 1.25rem; height: 1.25rem; display: inline-grid; place-items: center; padding: 0 .3rem; }

/* Page */
.page { padding-block: clamp(1.6rem, 4vw, 2.8rem) 4rem; display: grid; gap: 1.8rem; align-content: start; min-height: 60vh; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; }
.page-head > div { display: grid; gap: .35rem; min-width: 0; }
.back { justify-self: start; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1rem, 2.5vw, 1.5rem); display: grid; gap: 1rem; align-content: start; min-width: 0; }
.panel h2 { font-size: 1.3rem; }

/* Dashboard */
.welcome { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.2rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.welcome > div { display: grid; gap: .4rem; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.feed { display: grid; gap: .8rem; }
.feed-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; display: grid; gap: .5rem; border-left: 3px solid var(--line); }
.feed-item.kind-release { border-left-color: var(--cobalt); }
.feed-item.kind-announcement { border-left-color: var(--blush-ink); }
.feed-item.kind-site { border-left-color: var(--muted); }
.feed-meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.feed-meta time { margin-left: auto; font-family: var(--mono); font-size: .72rem; }
.feed-body { display: grid; gap: .55rem; color: var(--muted); font-size: .94rem; }
.feed-body.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.feed-body.clamp p + p { margin-top: .5rem; }
.feed.wide { max-width: 760px; }
.kind-chip { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; padding: .18rem .55rem; border-radius: 999px; background: var(--sunk); color: var(--fg); }
.kind-chip.release { background: color-mix(in srgb, var(--cobalt) 16%, var(--surface)); color: var(--cobalt); }
.kind-chip.announcement { background: color-mix(in srgb, var(--blush) 60%, var(--surface)); color: var(--blush-ink); }
.new-dot { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cobalt); font-weight: 500; }
.new-dot::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--cobalt); margin-right: .35rem; vertical-align: middle; }
.mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }

/* Product cards & art */
.p-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.1rem; }
.p-card { display: grid; gap: .45rem; text-decoration: none; align-content: start; min-width: 0; }
.p-pic { aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; background: var(--sunk); }
.p-row { display: flex; justify-content: space-between; gap: .6rem; align-items: baseline; }
.p-row h3 { font-weight: 500; font-size: .95rem; min-width: 0; }
.p-card:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.price { font-family: var(--mono); font-size: .86rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.art { width: 100%; height: 100%; object-fit: cover; }
.art.placeholder { display: grid; place-items: center; background: var(--sw-bg); color: var(--sw-fg); }
.art.placeholder svg { width: 55%; height: auto; }
.art.placeholder g { fill: currentColor; }
.p-card .art, .p-card .art svg { transition: transform .4s ease; }
.p-card:hover img.art, .p-card:hover .art svg { transform: scale(1.03); }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.search { min-height: 40px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: .45rem 1rem; min-width: 0; width: 220px; max-width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; min-height: 36px; border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: .35rem .9rem; font-size: .82rem; }
.chip[aria-pressed="true"], .chip.radio:has(input:checked) { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip.radio { cursor: pointer; }
.chip.radio input { position: absolute; opacity: 0; pointer-events: none; }
.chip.radio:has(input:focus-visible) { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.chip-n { font-family: var(--mono); font-size: .7rem; opacity: .75; }

/* Product page */
.pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.gallery { display: grid; gap: .7rem; }
.g-main { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--sunk); }
.thumbs { display: flex; gap: .5rem; flex-wrap: wrap; }
.thumb { width: 72px; aspect-ratio: 4 / 5; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: none; }
.thumb[aria-pressed="true"] { border-color: var(--fg); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info { display: grid; gap: 1rem; align-content: start; position: sticky; top: 130px; }
.pdp-price { font-family: var(--mono); font-size: 1.15rem; }
.specs { margin: 0; display: grid; border-top: 1px solid var(--line); }
.specs div { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; text-align: right; }
.prose { display: grid; gap: .7rem; color: var(--muted); max-width: 60ch; }
.ask { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; background: var(--sunk); border-radius: var(--radius); padding: .9rem 1rem; font-size: .9rem; }
.copyable { font-family: var(--mono); font-size: .85rem; user-select: all; }

/* Forms */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; min-width: 0; }
.field label { font-size: .82rem; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: .7rem .9rem; }
.field textarea { resize: vertical; line-height: 1.5; }
.field input:disabled { background: var(--sunk); color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus, .search:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cobalt) 22%, transparent); }
[aria-invalid="true"] { border-color: var(--err) !important; }
.err { color: var(--err); font-size: .8rem; }
.err:empty { display: none; }
.form-err:not(:empty) { background: color-mix(in srgb, var(--err) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--err) 35%, transparent); padding: .7rem .9rem; border-radius: 10px; font-size: .88rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.three { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: .8rem; }
.pw { position: relative; }
.pw input { padding-right: 4.2rem; }
.pw-toggle { position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); font-size: .8rem; text-decoration: underline; padding: .4rem; }
.meter4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.meter4 i { height: 3px; border-radius: 3px; background: var(--line); }
.meter4[data-score="1"] i:nth-child(-n+1), .meter4[data-score="2"] i:nth-child(-n+2) { background: var(--err); }
.meter4[data-score="3"] i:nth-child(-n+3) { background: var(--warn); }
.meter4[data-score="4"] i { background: var(--ok); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.check input { margin-top: .25rem; accent-color: var(--cobalt); width: 1rem; height: 1rem; }
.switch-row { display: flex; gap: .8rem; align-items: flex-start; cursor: pointer; }
.switch-row > span { display: grid; gap: .15rem; font-size: .92rem; }
.switch-row input { appearance: none; flex: none; width: 2.6rem; height: 1.5rem; border-radius: 999px; background: var(--line); position: relative; transition: background .15s; margin-top: .1rem; cursor: pointer; }
.switch-row input::after { content: ""; position: absolute; top: 3px; left: 3px; width: calc(1.5rem - 6px); aspect-ratio: 1; border-radius: 50%; background: var(--surface); transition: transform .15s; box-shadow: 0 1px 2px rgb(0 0 0 / .2); }
.switch-row input:checked { background: var(--cobalt); }
.switch-row input:checked::after { transform: translateX(1.1rem); }
.notice { background: color-mix(in srgb, var(--cobalt) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--cobalt) 25%, transparent); border-radius: 10px; padding: .8rem 1rem; font-size: .88rem; }
.notice.warn { background: color-mix(in srgb, var(--warn) 10%, var(--surface)); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.status-pill { display: inline-flex; align-items: center; font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 999px; white-space: nowrap; }
.status-pill.pending { background: color-mix(in srgb, var(--warn) 16%, var(--surface)); color: var(--warn); }
.status-pill.approved { background: color-mix(in srgb, var(--ok) 15%, var(--surface)); color: var(--ok); }
.status-pill.blocked { background: color-mix(in srgb, var(--err) 13%, var(--surface)); color: var(--err); }
.status-pill.draft { background: var(--sunk); color: var(--muted); }
.status-pill.admin { background: color-mix(in srgb, var(--cobalt) 15%, var(--surface)); color: var(--cobalt); margin-left: .3rem; }
.settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; max-width: 980px; align-items: start; }

/* Admin */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; display: grid; gap: .2rem; text-decoration: none; font-size: .88rem; color: var(--muted); }
.stat:hover { border-color: var(--fg); }
.stat-n { font-family: var(--display); font-size: 2.4rem; line-height: 1; color: var(--fg); font-variant-numeric: tabular-nums; }
.stat-n small { font-size: 1.1rem; color: var(--muted); }
.stat.attention { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 7%, var(--surface)); }
.req { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1rem; padding: .8rem 0; border-top: 1px solid var(--line); }
.req-who, .who { display: grid; min-width: 0; }
.req-who .muted, .who .muted { overflow-wrap: anywhere; }
.mini-update { display: grid; gap: .3rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.panel.mini-update { padding: 1rem 1.1rem; border-top: 1px solid var(--line); }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .9rem; }
.table th { text-align: left; font-family: var(--mono); font-weight: 500; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.table td { padding: .75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: .85rem; }
.t-piece { display: flex; align-items: center; gap: .8rem; }
.t-thumb { width: 44px; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; flex: none; background: var(--sunk); }
.editor { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.side-col { display: grid; gap: 1rem; align-content: start; min-width: 0; }
.side-title { font-size: 1.3rem; }
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.photo { margin: 0; display: grid; gap: .3rem; }
.photo img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; width: 100%; }
.photo figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem; font-size: .75rem; }
.photo .link { font-size: .75rem; }
.cover-tag { font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cobalt); }
.drop { display: grid; gap: .3rem; justify-items: center; text-align: center; border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 1.3rem 1rem; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--cobalt); background: color-mix(in srgb, var(--cobalt) 6%, transparent); }
.drop:has(input:focus-visible) { outline: 2px solid var(--cobalt); outline-offset: 2px; }

/* Empty */
.empty { display: grid; justify-items: center; text-align: center; gap: .5rem; padding: 2.5rem 1rem; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); grid-column: 1 / -1; }
.empty h3 { color: var(--fg); font-family: var(--display); font-weight: 400; font-size: 1.4rem; }
.empty p { max-width: 42ch; font-size: .92rem; }
.empty .btn { margin-top: .5rem; }
.empty-mark { width: 40px; color: var(--line); }

/* Public: landing */
.top.public { position: sticky; }
.hero { background: var(--cobalt); color: var(--on-cobalt); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; padding-block: clamp(3rem, 8vw, 6rem); }
.hero-copy { display: grid; gap: 1.3rem; }
.hero-copy .kicker { color: var(--on-cobalt); opacity: .75; }
.hero-copy h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); }
.hero-copy h1 em { color: var(--blush); }
.hero-copy p { max-width: 46ch; font-size: 1.06rem; opacity: .9; }
.hero-logo { width: min(100%, 520px); justify-self: end; color: var(--on-cobalt); }
.steps-sec { padding-block: clamp(3rem, 7vw, 5rem) 2rem; display: grid; gap: 1.6rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.steps li { display: grid; gap: .5rem; align-content: start; padding-top: 1rem; border-top: 1px solid var(--fg); }
.step-n { font-family: var(--display); font-style: italic; font-size: 2rem; line-height: 1; color: var(--cobalt); }
.steps p { color: var(--muted); font-size: .93rem; }
.locked-sec { position: relative; padding-block: 1rem 5rem; }
.locked-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; filter: blur(7px); opacity: .75; pointer-events: none; user-select: none; }
.locked-card { display: grid; gap: .5rem; }
.locked-art { aspect-ratio: 4 / 5; border-radius: 8px; }
.locked-art.sw0 { background: #EBC9C2; } .locked-art.sw1 { background: #E7E3DA; } .locked-art.sw2 { background: #D7DCF2; } .locked-art.sw3 { background: #12162B; }
.locked-line { height: 10px; border-radius: 5px; background: var(--line); }
.locked-line.short { width: 40%; }
.lock-label { display: none; }
.locked-cta { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1rem; text-align: center; padding-inline: var(--gl) var(--gr); }
.locked-cta p { font-family: var(--display); font-size: clamp(1.4rem, 3vw, 2rem); max-width: 22ch; }

/* Public: auth */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: 100vh; min-height: 100dvh; }
.auth-side { background: var(--cobalt); color: var(--on-cobalt); position: relative; overflow: hidden; display: grid; align-content: space-between; gap: 2.5rem;
  padding: clamp(1.6rem, 4vw, 3.5rem) clamp(1.5rem, 4vw, 3.5rem) clamp(1.6rem, 4vw, 3.5rem) var(--gl); }
.auth-logo { width: 150px; color: var(--on-cobalt); position: relative; }
.auth-pitch { display: grid; gap: 1.2rem; position: relative; }
.auth-pitch .kicker { color: var(--on-cobalt); opacity: .75; }
.auth-pitch h2 { font-style: italic; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.02; }
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; max-width: 38ch; font-size: .95rem; }
.perks li { display: grid; grid-template-columns: 1.2rem 1fr; gap: .5rem; }
.perks li::before { content: "✦"; font-size: .75rem; padding-top: .25rem; }
.auth-ghost { position: absolute; right: -8%; bottom: -10%; width: clamp(14rem, 32vw, 24rem); opacity: .1; color: var(--on-cobalt); pointer-events: none; }
.auth-main { display: grid; place-items: center; padding: clamp(1.6rem, 4vw, 3.5rem) var(--gr) clamp(1.6rem, 4vw, 3.5rem) clamp(1.5rem, 4vw, 3.5rem); }
.auth-card { width: 100%; max-width: 430px; display: grid; gap: 1.2rem; }
.auth-card h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.auth-card .sub { color: var(--muted); }
.switch { font-size: .9rem; color: var(--muted); }
.auth-card .status-pill { justify-self: start; }

/* Setup / error */
.setup { min-height: 100vh; display: grid; place-items: center; padding: 2rem var(--gr) 2rem var(--gl); }
.setup-card { max-width: 480px; display: grid; gap: 1rem; justify-items: start; }
.setup-logo { width: 160px; color: var(--fg); margin-bottom: .5rem; }
.setup-card p { color: var(--muted); }

/* Footer */
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.foot-row { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; padding-block: 1.6rem; }
.foot-logo { width: 110px; color: var(--fg); }

/* Toasts */
#toasts { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); display: grid; gap: .5rem; width: min(440px, calc(100% - 32px)); pointer-events: none; }
.toast { background: var(--fg); color: var(--bg); border-radius: 10px; padding: .8rem 1rem; font-size: .9rem; box-shadow: 0 8px 24px rgb(10 12 30 / .25); transition: opacity .3s, transform .3s; pointer-events: auto; }
.toast.err { background: var(--err); color: #fff; }
.toast.out { opacity: 0; transform: translateY(6px); }

/* Responsive */
@media (max-width: 1000px) {
  .p-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .dash-grid, .pdp, .editor, .settings, .hero-grid { grid-template-columns: 1fr; }
  .pdp-info { position: static; }
  .hero-logo { justify-self: start; width: min(70%, 320px); order: -1; }
  .auth { grid-template-columns: 1fr; min-height: 0; }
  .auth-side { padding-right: var(--gr); gap: 1.4rem; }
  .auth-pitch h2 { font-size: 1.9rem; }
  .perks { display: none; }
  .auth-main { padding-left: var(--gl); place-items: start center; }
  .steps { grid-template-columns: 1fr; }
  .locked-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem .8rem; }
}
@media (max-width: 560px) {
  .two, .three { grid-template-columns: 1fr; }
  .brand-word { display: none; }
  .tabs-nav { gap: 1.2rem; }
  .search { width: 100%; }
  .filters { width: 100%; }
  .photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
