/* Layout: one centered 1200px column; sticky header; product grids that collapse to 2 then 1 column.
   Brand cues from the Prompt Vault cover: deep ink navy, brass/gold hairlines, corner-bracket frames. */
:root {
  --paper: #F6F7F4;      /* cool porcelain, faint sage bias */
  --surface: #FFFFFF;
  --sunken: #EDF0EC;
  --ink: #15203A;        /* navy from the brand cover */
  --ink-2: #2A3654;
  --muted: #586274;
  --line: #DCE1DB;
  --brass: #8C6A2A;      /* text-safe gold */
  --brass-soft: #C9A961;
  --sage: #4D6E5C;
  --sage-soft: #E3EBE5;
  --ok: #2E6A4C;
  --ok-soft: #E1EFE6;
  --warn: #8A5A00;
  --warn-soft: #FBF0D9;
  --bad: #A2321F;
  --bad-soft: #F8E4DF;
  --on-ink: #F6F7F4;
  --shadow: 0 1px 2px rgba(21,32,58,.06), 0 8px 24px rgba(21,32,58,.07);
  --f-display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 10px;
  --r-sm: 6px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0F1522; --surface: #161E2E; --sunken: #121A28; --ink: #ECEFF4; --ink-2: #C9D0DC; --muted: #9AA4B6;
    --line: #273146; --brass: #D7B66E; --brass-soft: #A88A48; --sage: #93B8A2; --sage-soft: #1B2A25;
    --ok: #8CCBA6; --ok-soft: #173023; --warn: #E8C46F; --warn-soft: #2E2713; --bad: #F0998A; --bad-soft: #3A1E1A;
    --on-ink: #0F1522; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0F1522; --surface: #161E2E; --sunken: #121A28; --ink: #ECEFF4; --ink-2: #C9D0DC; --muted: #9AA4B6;
  --line: #273146; --brass: #D7B66E; --brass-soft: #A88A48; --sage: #93B8A2; --sage-soft: #1B2A25;
  --ok: #8CCBA6; --ok-soft: #173023; --warn: #E8C46F; --warn-soft: #2E2713; --bad: #F0998A; --bad-soft: #3A1E1A;
  --on-ink: #0F1522; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
a { color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; }
p { margin: 0; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--on-ink); padding: 8px 14px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }
.num { font-variant-numeric: tabular-nums; }

/* Prototype bar */
.proto-bar { background: var(--ink); color: var(--on-ink); font-size: 13px; }
.proto-inner { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding-block: 7px; }
.proto-inner a { color: var(--brass-soft); }
:root[data-theme="dark"] .proto-inner a { color: var(--brass); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.pill-test { background: var(--brass-soft); color: #15203A; }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-bad { background: var(--bad-soft); color: var(--bad); }
.pill-muted { background: var(--sunken); color: var(--muted); border: 1px solid var(--line); }
.pill-sage { background: var(--sage-soft); color: var(--sage); }

/* Header */
header.site { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.head-inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: var(--f-display); font-size: 28px; letter-spacing: .01em; }
.logo-tag { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); margin-top: 3px; }
.head-search { flex: 1; max-width: 420px; display: flex; align-items: center; background: var(--sunken); border: 1px solid var(--line); border-radius: 999px; padding: 0 4px 0 14px; }
.head-search input[type="search"] { box-shadow: none; flex: 1; min-width: 0; border: 0; background: transparent; padding: 9px 0; outline: none; }
.head-search:focus-within { border-color: var(--brass); }
.main-nav { display: flex; gap: 22px; margin-left: auto; }
.main-nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-2); padding: 4px 0; border-bottom: 1.5px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brass); }
.head-actions { display: flex; gap: 4px; align-items: center; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 0; background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--sunken); }
.cart-count { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brass); color: var(--surface); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .head-search { display: none; }
  .menu-btn { display: inline-grid; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px max(16px, env(safe-area-inset-left, 0px)) 16px; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .head-actions { margin-left: auto; }
}

/* Buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, transform .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { background: var(--ink-2); }
.btn-line { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--sunken); }
.btn-soft { background: var(--sunken); color: var(--ink); border-color: var(--line); }
.btn-soft:hover { border-color: var(--muted); }
.btn-danger { background: transparent; color: var(--bad); border-color: var(--bad); }
.btn-sm { padding: 7px 14px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.linkish { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font-size: inherit; }
.field { display: grid; gap: 6px; }
.field label, .lbl { font-weight: 600; font-size: 14px; }
.field .hint, .hint { color: var(--muted); font-size: 13px; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="number"], input[type="url"], input[type="date"], select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); outline: none; min-width: 0;
}
input:focus, select:focus, textarea:focus { border-color: var(--brass); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brass) 18%, transparent); }
textarea { min-height: 120px; resize: vertical; }
.inline-field { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-field input { flex: 1 1 200px; }
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.check input { margin-top: 4px; accent-color: var(--ink); width: 17px; height: 17px; flex-shrink: 0; }
.err { color: var(--bad); font-size: 14px; font-weight: 500; }
.notice { border: 1px solid var(--line); background: var(--sunken); border-radius: var(--r); padding: 14px 16px; font-size: 14.5px; display: flex; gap: 12px; align-items: flex-start; }
.notice.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.notice.ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.notice strong { display: block; }

/* Type */
main { outline: none; min-height: 60vh; }
.eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); font-weight: 600; }
.display { font-family: var(--f-display); font-weight: 400; line-height: 1.02; letter-spacing: -.01em; }
.display em { font-style: italic; color: var(--brass); }
.h-page { font-family: var(--f-display); font-weight: 400; font-size: clamp(36px, 5vw, 54px); line-height: 1.05; }
.h-sec { font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; }
.lede { font-size: 18px; color: var(--muted); max-width: 60ch; }
.prose { max-width: 70ch; }
.prose h2 { font-family: var(--f-display); font-weight: 400; font-size: 28px; margin: 34px 0 10px; }
.prose h3 { font-size: 17px; margin: 22px 0 6px; }
.prose p, .prose ul { margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.section { padding-block: 64px; }
.section-tight { padding-block: 40px; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.sec-head p { color: var(--muted); max-width: 52ch; margin-top: 6px; }
.page-head { padding-block: 44px 24px; display: grid; gap: 10px; }
.crumbs { font-size: 13.5px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }

/* Corner-bracket frame, from the Prompt Vault cover */
.framed { position: relative; }
.framed::before, .framed::after { content: ""; position: absolute; width: 22px; height: 22px; border-color: var(--brass-soft); border-style: solid; pointer-events: none; }
.framed::before { top: -10px; left: -10px; border-width: 1.5px 0 0 1.5px; }
.framed::after { bottom: -10px; right: -10px; border-width: 0 1.5px 1.5px 0; }

/* Hero */
.hero { padding-block: 56px 64px; border-bottom: 1px solid var(--line); background:
  radial-gradient(900px 420px at 85% 20%, color-mix(in srgb, var(--sage-soft) 90%, transparent), transparent 70%), var(--paper); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6.6vw, 82px); margin: 16px 0 20px; }
.hero .lede { margin-bottom: 28px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-facts { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.hero-facts strong { display: block; color: var(--ink); font-size: 15px; }
.hero-art { position: relative; justify-self: center; width: min(100%, 380px); aspect-ratio: 3 / 3.6; }
.hero-art img { position: absolute; border-radius: 4px; box-shadow: 0 20px 50px rgba(21,32,58,.25); }
.hero-art .back { width: 70%; right: 0; top: 0; transform: rotate(4deg); }
.hero-art .front { width: 74%; left: 0; bottom: 0; }
.hero-art .tag { position: absolute; right: -6px; bottom: 18%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; box-shadow: var(--shadow); font-size: 13px; line-height: 1.35; }
.hero-art .tag b { font-family: var(--f-display); font-size: 22px; font-weight: 400; display: block; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero-art { width: min(100%, 320px); } }

/* Category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cat-tile { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; transition: border-color .15s, transform .15s; }
.cat-tile:hover { border-color: var(--brass-soft); transform: translateY(-2px); }
.cat-ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--sage-soft); color: var(--sage); }
.cat-tile h3 { font-size: 16px; font-weight: 600; }
.cat-tile p { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.cat-tile .count { font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .cat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: 1fr; } }

/* Product cards */
.grid-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
@media (max-width: 1000px) { .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; } }
.card { display: grid; gap: 12px; align-content: start; position: relative; }
.card-link { text-decoration: none; display: grid; gap: 12px; }
.card .cover-wrap { border-radius: var(--r-sm); overflow: hidden; background: var(--sunken); aspect-ratio: 3 / 4; transition: transform .2s; box-shadow: 0 1px 0 var(--line); }
.card-link:hover .cover-wrap { transform: translateY(-3px); }
.card .meta { display: grid; gap: 3px; min-width: 0; }
.card .cat { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card h3 { font-size: 16px; font-weight: 600; line-height: 1.3; }
.card .sub { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.price-row { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.price { font-weight: 700; font-variant-numeric: tabular-nums; }
.was { color: var(--muted); text-decoration: line-through; font-size: 14px; }
.card .badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 6px; z-index: 1; flex-wrap: wrap; }
.card-actions { display: flex; gap: 8px; }
.stars { color: var(--brass); letter-spacing: 1px; font-size: 14px; }

/* Generated covers for sample listings */
.cover-img { width: 100%; height: 100%; object-fit: cover; }
.gen-cover { width: 100%; height: 100%; position: relative; color: #F6F7F4; padding: 14% 12%; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(165deg, var(--c1), var(--c2)); overflow: hidden; container-type: inline-size; }
.gen-cover::before { content: ""; position: absolute; inset: 0; opacity: .22; background: var(--pat); }
.gen-cover::after { content: ""; position: absolute; inset: 7%; border: 1px solid rgba(246,247,244,.35); pointer-events: none; }
.gen-cover .gc-cat { position: relative; font-size: max(9px, 5.5cqi); letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
.gen-cover .gc-title { position: relative; font-family: var(--f-display); font-size: max(16px, 12.5cqi); line-height: 1.02; }
.gen-cover .gc-mark { position: relative; font-size: max(8px, 4.5cqi); letter-spacing: .28em; text-transform: uppercase; opacity: .75; }

/* Product page */
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; padding-block: 28px 56px; align-items: start; }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; gap: 28px; } }
.gallery { display: grid; gap: 12px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); }
@media (max-width: 860px) { .gallery { position: static; } }
.gallery-main { aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; background: var(--sunken); border: 1px solid var(--line); max-width: 520px; width: 100%; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: var(--sunken); }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.thumb { width: 70px; aspect-ratio: 3/4; border-radius: var(--r-sm); overflow: hidden; border: 1.5px solid var(--line); padding: 0; cursor: pointer; background: var(--sunken); }
.thumb[aria-pressed="true"] { border-color: var(--brass); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info { display: grid; gap: 20px; min-width: 0; }
.pdp-info h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(34px, 4.4vw, 50px); line-height: 1.05; }
.pdp-info .subtitle { font-size: 18px; color: var(--muted); }
.pdp-price { font-size: 26px; font-weight: 700; }
.buy-row { display: flex; gap: 10px; flex-wrap: wrap; }
.buy-row .btn { flex: 1 1 180px; padding-block: 14px; }
.spec { display: grid; grid-template-columns: auto 1fr; gap: 8px 22px; padding: 18px 0; border-block: 1px solid var(--line); font-size: 14.5px; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-weight: 500; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.ticks li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.ticks li::before { content: ""; width: 14px; height: 8px; border-left: 1.6px solid var(--sage); border-bottom: 1.6px solid var(--sage); transform: rotate(-45deg); margin-top: 6px; }

/* Reviews */
.reviews { border-top: 1px solid var(--line); padding-block: 48px; display: grid; grid-template-columns: 300px 1fr; gap: 48px; }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; gap: 24px; } }
.review { padding-block: 18px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.empty { border: 1.5px dashed var(--line); border-radius: var(--r); padding: 28px; text-align: center; color: var(--muted); display: grid; gap: 10px; justify-items: center; }
.empty h3 { color: var(--ink); font-size: 18px; }
.rating-input { display: flex; gap: 4px; flex-direction: row-reverse; justify-content: flex-end; }
.rating-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-input label { font-size: 26px; color: var(--line); cursor: pointer; line-height: 1; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: var(--brass); }
.rating-input input:focus-visible + label { outline: 2px solid var(--brass); border-radius: 4px; }

/* Shop */
.shop-layout > *, .filters > * { min-width: 0; }
.shop-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; padding-bottom: 64px; }
@media (max-width: 860px) { .shop-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
.filters { display: grid; gap: 22px; align-content: start; }
.filters h2 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.cat-list { display: grid; gap: 2px; }
.cat-list a { display: flex; justify-content: space-between; text-decoration: none; padding: 7px 10px; border-radius: var(--r-sm); font-size: 15px; }
.cat-list a:hover { background: var(--sunken); }
.cat-list a[aria-current="true"] { background: var(--ink); color: var(--on-ink); }
@media (max-width: 860px) { .cat-list { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; } .cat-list a { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; } .cat-list a span { display: none; } }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.toolbar .search-box { flex: 1 1 260px; max-width: 420px; }
.toolbar select { width: auto; }
.result-count { color: var(--muted); font-size: 14px; }

/* Bundles */
.bundle-card { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); align-items: center; }
@media (max-width: 720px) { .bundle-card { grid-template-columns: 1fr; } }
.stack { position: relative; height: 200px; }
.stack .s { position: absolute; width: 46%; aspect-ratio: 3/4; border-radius: 4px; overflow: hidden; box-shadow: 0 8px 20px rgba(21,32,58,.18); }
.bundle-card h3 { font-family: var(--f-display); font-weight: 400; font-size: 30px; line-height: 1.1; }
.save { color: var(--ok); font-weight: 600; font-size: 14px; }

/* Brand story band */
.band { background: var(--ink); color: var(--on-ink); }
.band .wrap { padding-block: 72px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.band .display { font-size: clamp(36px, 5vw, 60px); }
.band .display em { color: var(--brass-soft); }
.band p { opacity: .82; font-size: 17px; max-width: 52ch; }
.band .kana { font-family: var(--f-display); font-style: italic; font-size: 20px; color: var(--brass-soft); }
@media (max-width: 760px) { .band .wrap { grid-template-columns: 1fr; gap: 20px; } }
:root[data-theme="dark"] .band, .band { --on-ink: #F6F7F4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .band { background: #0A0F19; border-block: 1px solid var(--line); } }
:root[data-theme="dark"] .band { background: #0A0F19; border-block: 1px solid var(--line); }

.sub-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 760px) { .sub-panel { grid-template-columns: 1fr; padding: 24px; } }

/* Spotlight */
.spot { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: center; }
.spot .shot { border-radius: 4px; box-shadow: 0 18px 40px rgba(21,32,58,.22); }
@media (max-width: 800px) { .spot { grid-template-columns: 1fr; } .spot .framed { max-width: 300px; } }
.spot-list { columns: 2; column-gap: 28px; font-size: 15px; }
.spot-list li { break-inside: avoid; }
@media (max-width: 560px) { .spot-list { columns: 1; } }

/* Cart & checkout */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; padding-bottom: 64px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; padding-block: 18px; border-bottom: 1px solid var(--line); align-items: center; }
.line .mini { width: 72px; aspect-ratio: 3/4; border-radius: 4px; overflow: hidden; background: var(--sunken); }
.line h3 { font-size: 16px; font-weight: 600; }
.line .sub { font-size: 13.5px; color: var(--muted); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; gap: 16px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; font-size: 15px; }
.sum-row.total { font-size: 19px; font-weight: 700; padding-top: 12px; border-top: 1px solid var(--line); }
.sum-row .neg { color: var(--ok); }
.steps { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.steps b { color: var(--ink); }
.card-box { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; background: var(--sunken); display: grid; gap: 14px; }
.testcards { font-size: 13px; color: var(--muted); display: grid; gap: 4px; }
.testcards code { font-size: 12.5px; background: var(--surface); border: 1px solid var(--line); padding: 1px 6px; border-radius: 4px; color: var(--ink); }
.spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Account & admin */
.dash { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 36px; padding-bottom: 64px; align-items: start; }
@media (max-width: 860px) { .dash { grid-template-columns: 1fr; gap: 18px; } }
.side-nav { display: grid; gap: 2px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); }
.side-nav a { text-decoration: none; padding: 9px 12px; border-radius: var(--r-sm); font-size: 15px; display: flex; justify-content: space-between; gap: 8px; }
.side-nav a:hover { background: var(--sunken); }
.side-nav a[aria-current="page"] { background: var(--ink); color: var(--on-ink); }
.side-nav .grp { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 14px 12px 4px; }
@media (max-width: 860px) { .side-nav { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; } .side-nav a { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; } .side-nav .grp { display: none; } }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: grid; gap: 4px; }
.stat .k { font-size: 13px; color: var(--muted); }
.stat .v { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--sunken); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.lib-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.lib-item .mini { width: 64px; aspect-ratio: 3/4; border-radius: 4px; overflow: hidden; }
@media (max-width: 560px) { .lib-item { grid-template-columns: 56px minmax(0, 1fr); } .lib-item .acts { grid-column: 1 / -1; } }
.bar-list { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 160px minmax(0, 1fr) 48px; gap: 12px; align-items: center; font-size: 14px; }
.bar { height: 10px; background: var(--sunken); border-radius: 5px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--sage); border-radius: 5px; }
.integ { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.integ h3 { font-size: 16px; }
.integ p { font-size: 14px; color: var(--muted); grid-column: 1 / -1; }
.auth-box { max-width: 440px; margin: 0 auto; padding-block: 48px 72px; display: grid; gap: 20px; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); background: var(--surface); margin-top: 40px; }
.foot-top { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; padding-block: 56px 40px; }
.foot-brand { display: grid; gap: 14px; max-width: 440px; }
.foot-brand p { color: var(--muted); font-size: 15px; }
.sub-form { display: grid; gap: 8px; }
.sub-form label { font-weight: 600; font-size: 14px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot-cols h2 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; font-weight: 600; }
.foot-cols a { display: block; text-decoration: none; padding: 4px 0; font-size: 15px; }
.foot-cols a:hover { color: var(--brass); }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
@media (max-width: 820px) { .foot-top { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .foot-cols { grid-template-columns: 1fr 1fr; } }

/* Toasts & modal */
.toasts { position: fixed; z-index: 60; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
.toast { background: var(--ink); color: var(--on-ink); padding: 12px 16px; border-radius: var(--r); box-shadow: var(--shadow); font-size: 14.5px; display: flex; gap: 12px; align-items: center; justify-content: space-between; animation: rise .2s ease-out; }
.toast a { color: var(--brass-soft); font-weight: 600; white-space: nowrap; }
@keyframes rise { from { transform: translateY(8px); opacity: .4; } }
.modal-back { position: fixed; inset: 0; z-index: 70; background: rgba(10,15,25,.5); display: grid; place-items: center; padding: 16px; }
.modal { background: var(--surface); border-radius: var(--r); max-width: 520px; width: 100%; padding: 28px; box-shadow: 0 24px 60px rgba(0,0,0,.3); display: grid; gap: 16px; max-height: 90vh; overflow: auto; outline: none; }
.modal h2 { font-family: var(--f-display); font-weight: 400; font-size: 30px; line-height: 1.1; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; word-break: break-all; background: var(--sunken); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; }
.stack-gap { display: grid; gap: 16px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 8px 0; }

/* ---------- production additions ---------- */
.logo-mark { display: inline-grid; place-items: center; }
.logo-img { display: block; width: 34px; height: 34px; object-fit: contain; }
.inline-form { display: inline; margin: 0; }
.buy-row .inline-form, .buy-row .inline-form .btn { display: block; width: 100%; }
.flash-wrap { display: grid; gap: 8px; padding-top: 16px; }
.notice.bad { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.side-link { display: block; text-align: left; padding: 8px 12px; width: 100%; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14.5px; }
.checklist li.ok span[aria-hidden] { color: var(--ok); font-weight: 700; }
.checklist li.todo span[aria-hidden] { color: var(--warn); font-weight: 700; }
.admin-thumb { width: 40px; aspect-ratio: 3/4; border-radius: 3px; overflow: hidden; flex-shrink: 0; }
.admin-thumb .gen-cover .gc-title, .admin-thumb .gen-cover .gc-cat, .admin-thumb .gen-cover .gc-mark { display: none; }
.admin-fs { border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; display: grid; gap: 12px; min-width: 0; }
.img-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.img-admin-item { display: grid; gap: 6px; }
.img-admin-item img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }
.file-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.file-list li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pick-grid { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.log { font-size: 12px; white-space: pre-wrap; word-break: break-word; max-height: 260px; overflow: auto; background: var(--sunken); padding: 10px; border-radius: 6px; margin: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.consent { position: fixed; inset: auto 0 0 0; z-index: 60; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(0,0,0,.08); }
.consent-inner { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-block: 14px; font-size: 14.5px; }
.consent-inner p { margin: 0; max-width: 680px; }
.toolbar { flex-wrap: wrap; }
details summary { cursor: pointer; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
.form-grid { align-items: start; }
