/* Big Boys Vault — brass, steel and night.
   Palette is lifted from the badge: near-black slate, riveted steel, brass gold, cream lettering, a touch of Snorlax teal.
   Display type is a heavy slab (like the badge lettering); labels are condensed caps. Spacing sits on a 4/8-pt grid.
   Decoration lives in a few repeatable parts: rivets, brass plates, star dividers, the vault ring. Motion is slow and optional. */
:root {
  color-scheme: dark;
  --bg: #0b0d12; --surface: #141821; --surface-2: #1c212b; --text: #f4eee0; --muted: #9ba1ab;
  --line: rgba(255,255,255,.10); --line-2: #2a303b; --fill: rgba(255,255,255,.07);
  --gold: #e2b94b; --gold-hi: #f6e3a0; --gold-lo: #a9812a; --gold-ink: #1a1405;
  --steel: #6f757e; --steel-hi: #a3a9b1; --steel-lo: #3b4048; --teal: #3f8f9c;
  --accent: var(--gold); --accent-ink: var(--gold-ink); --sand: var(--gold-hi); --sale: var(--gold); --ok: #30d158; --danger: #ff6b60;
  --brass: linear-gradient(180deg, #f6e3a0 0%, #e2b94b 52%, #b48a2c 100%);
  --steel-plate: linear-gradient(160deg, #1f242e 0%, #151922 55%, #1a1f28 100%);
  --rivet: radial-gradient(circle at 35% 30%, #c9ced5 0 22%, #6f757e 55%, #2b3037 100%);
  --bar: rgba(11,13,18,.9);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --r-sm: 4px; --r-md: 8px; --r-lg: 10px; --r-xl: 14px;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
  --gut: 16px; --gutter: max(var(--gut), var(--sal), var(--sar)); --sec: 48px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --display: "Alfa Slab One", Rockwell, "Roboto Slab", "Rockwell Extra Bold", Georgia, serif;
  --cond: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --t-label: .75rem; --t-caption: .75rem; --t-foot: .8125rem; --t-sub: .9375rem; --t-body: 1rem; --t-h3: 1.25rem;
  --t-h2: clamp(1.25rem, 1.1rem + .7vw, 1.625rem);
  --t-h1: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  --t-hero: clamp(3.5rem, 2.2rem + 7vw, 8rem);
  --ease: cubic-bezier(.25,.1,.25,1);
  --bar-h: 64px; --tab-h: 49px; --ctl: 44px; --maxw: 1200px;
}
@media (min-width: 700px) { :root { --gut: 24px; --sec: 56px; } }
@media (min-width: 1100px) { :root { --gut: 32px; } }
@media (max-width: 899px) { :root { --bar-h: 112px; } }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + var(--sat) + var(--s4)); background: var(--bg); }
body { margin: 0; min-height: 100dvh; color: var(--text); font: 400 var(--t-body)/1.5 var(--font); letter-spacing: -.005em; -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tab-h) + var(--sab)); overscroll-behavior-y: none; background-color: var(--bg);
  background-image: radial-gradient(70% 520px at 88% 0, rgba(226,185,75,.12), transparent 70%),
                    radial-gradient(50% 420px at 0 30%, rgba(63,143,156,.08), transparent 70%),
                    radial-gradient(circle, rgba(246,227,160,.07) 1px, transparent 1.5px);
  background-size: auto, auto, 36px 36px; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--gold); color: var(--gold-ink); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--gold) 75%, transparent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Top bar + tab bar ---------- */
.bar { position: sticky; top: 0; z-index: 20; padding-top: var(--sat); background: var(--bar); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid #000; box-shadow: 0 1px 0 rgba(226,185,75,.45), 0 8px 24px rgba(0,0,0,.35); }
.bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; background: repeating-linear-gradient(90deg, var(--steel-lo) 0 10px, #23272e 10px 20px); opacity: .9; pointer-events: none; }
.bar-in { max-width: var(--maxw); margin: 0 auto; min-height: var(--bar-h); padding: 0 var(--gutter); display: flex; align-items: center; gap: var(--s5); }
.brand { display: inline-flex; align-items: center; gap: var(--s3); white-space: nowrap; }
.brand-mark { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(226,185,75,.55), 0 4px 14px rgba(0,0,0,.6); }
.brand-t { font: 400 1.25rem/1 var(--display); letter-spacing: .03em; text-transform: uppercase; }
.brand .b1 { color: var(--gold-hi); } .brand .b2 { color: var(--text); }
.menu { display: none; gap: var(--s5); flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.menu::-webkit-scrollbar { display: none; }
.menu { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
.menu a { padding: var(--s2) 0; font: 700 .9375rem/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; color: var(--steel-hi); border-bottom: 2px solid transparent; transition: color .15s var(--ease), border-color .15s var(--ease); }
.menu a:hover { color: var(--gold-hi); border-color: var(--gold); }
@media (min-width: 900px) { .menu { display: flex; } }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: space-around; height: calc(var(--tab-h) + var(--sab));
  padding: 0 var(--sal) var(--sab) var(--sar); background: var(--bar); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid rgba(226,185,75,.4); }
.tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: 700 .6875rem/1 var(--cond); letter-spacing: .12em; text-transform: uppercase; color: var(--steel-hi); }
.tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.tabs a:active { color: var(--gold); }
@media (min-width: 900px) { .tabs { display: none; } body { padding-bottom: 0; } }

/* ---------- Search (header + filter fields): the most prominent control on the page ---------- */
.search { position: relative; margin-left: auto; flex: 0 1 360px; }
.sg { position: relative; display: block; width: 100%; }
.search input[type=search], .filters .q {
  display: block; width: 100%; height: 46px; padding: 0 16px 0 46px; border: 2px solid var(--gold); border-radius: var(--r-md); color: var(--text);
  font: inherit; font-size: 16px; /* 16px stops iOS focus-zoom */ -webkit-appearance: none; appearance: none;
  background: #0f1218 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2b94b' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") 15px 50% / 18px 18px no-repeat;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.55), 0 0 0 3px rgba(226,185,75,.14); transition: box-shadow .15s var(--ease); }
.search input[type=search]:focus, .filters .q:focus { outline: none; box-shadow: inset 0 2px 6px rgba(0,0,0,.55), 0 0 0 4px rgba(226,185,75,.4); }
.search input::placeholder, .filters .q::placeholder { color: var(--muted); }
@media (max-width: 899px) {
  .bar-in { flex-wrap: wrap; row-gap: var(--s2); padding-top: var(--s2); padding-bottom: var(--s3); min-height: 0; }
  .brand { flex: 1 1 100%; justify-content: center; min-height: 44px; }
  .brand-t { font-size: 1.125rem; }
  .search { flex: 1 1 100%; margin: 0; }
}
input[type=search], select { width: 100%; height: 40px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); color: var(--text); font: inherit; font-size: 16px; padding: 0 var(--s3); -webkit-appearance: none; appearance: none; }
select { width: auto; padding-right: var(--s5); }
select option { background: var(--surface); color: var(--text); }

/* ---------- Layout + type ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: var(--sec) var(--gutter) 0; }
.h1 { margin: 0 0 var(--s2); font: 400 var(--t-h1)/1.08 var(--display); letter-spacing: .01em; color: var(--gold-hi); text-shadow: 0 3px 0 rgba(0,0,0,.55); }
.h2 { display: flex; align-items: center; gap: var(--s3); margin: 0 0 var(--s4); font: 400 var(--t-h2)/1.15 var(--display); letter-spacing: .04em; text-transform: uppercase; text-shadow: 0 2px 0 rgba(0,0,0,.5); }
.h2::before { content: ""; flex: none; width: 14px; height: 14px; background: var(--brass); clip-path: polygon(50% 0, 62% 36%, 100% 38%, 70% 60%, 80% 98%, 50% 75%, 20% 98%, 30% 60%, 0 38%, 38% 36%); }
.h3 { margin: var(--s5) 0 0; font: 400 var(--t-h3)/1.2 var(--display); }
.sub { margin: 0 0 var(--s5); color: var(--muted); font: 600 var(--t-foot)/1.4 var(--mono); letter-spacing: 0; }
.eyebrow { margin: 0 0 var(--s2); color: var(--gold); font: 700 .875rem/1 var(--cond); letter-spacing: .2em; text-transform: uppercase; }
.lede { margin: 0 0 var(--s5); color: var(--text); font-size: 1.125rem; line-height: 1.5; font-weight: 500; text-wrap: balance; }
.hint { margin: 0; font-size: var(--t-foot); color: var(--muted); } .hint:empty { display: none; } .hint.warn { color: var(--sale); }
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--s6); border: 0; border-radius: var(--r-md);
  background: var(--brass); color: var(--gold-ink); font: 700 1.0625rem/1 var(--cond); letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -3px 0 rgba(90,60,8,.45), 0 3px 0 #5b4210, 0 10px 22px rgba(226,185,75,.18);
  transition: filter .15s var(--ease), transform .12s var(--ease), box-shadow .12s var(--ease); }
.btn:hover { filter: brightness(1.07); } .btn:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -2px 0 rgba(90,60,8,.45), 0 1px 0 #5b4210; }
.btn.ghost { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--steel), 0 2px 0 #000; }
.btn:disabled { opacity: .5; pointer-events: none; }
.row-h { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s4); margin-bottom: var(--s4); padding-bottom: var(--s3); border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, rgba(226,185,75,.65), rgba(226,185,75,.05)) 1; }
.row-h .h2 { margin: 0; }
.row-h a { color: var(--gold); font: 700 .875rem/1 var(--cond); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; padding-bottom: 2px; }
.row-h a:hover { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Hero ---------- */
.hero { position: relative; max-width: var(--maxw); margin: 0 auto; padding: var(--s6) var(--gutter) 0; }
.hero-v { display: grid; grid-template-columns: 1fr; gap: var(--s5); align-items: center; }
.eyebrow.plate { position: relative; display: inline-block; margin: 0 0 var(--s4); padding: 9px 22px 8px; border-radius: var(--r-sm); background: var(--brass); color: var(--gold-ink);
  font: 800 .9375rem/1 var(--cond); letter-spacing: .2em; box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 2px 0 #5b4210; }
.eyebrow.plate::before, .eyebrow.plate::after { content: ""; position: absolute; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 15%, #8f6a1f 70%); }
.eyebrow.plate::before { left: 8px; } .eyebrow.plate::after { right: 8px; }
.hero-copy h1 { margin: 0 0 var(--s4); font: 400 var(--t-hero)/.94 var(--display); letter-spacing: .005em; text-transform: uppercase; text-wrap: balance;
  background: linear-gradient(180deg, #fff3c4 0%, #f0cf72 38%, #c89a34 72%, #8f6a1f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 0 rgba(0,0,0,.65)) drop-shadow(0 12px 28px rgba(226,185,75,.18)); }
.hero-copy .lede { max-width: 34ch; color: #d9d3c2; }
.hero-art { --pad: 10%; position: relative; display: flex; align-items: flex-end; justify-content: center; width: min(100%, 560px); margin: 0 auto; aspect-ratio: 600 / 640; padding: 0 var(--pad) 14%; }
.vault-ring { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; filter: drop-shadow(0 24px 40px rgba(0,0,0,.55)); }
.art { position: relative; z-index: 1; margin: 0; }
.art img { width: 100%; height: auto; filter: drop-shadow(0 10px 14px rgba(0,0,0,.55)); }
.art-a { flex: 0 0 42%; margin-right: -3%; }
.art-b { flex: 0 0 59%; transform-origin: 50% 100%; animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.018, 1.035); } }
.sticker { position: absolute; right: 2%; top: 2%; z-index: 2; padding: 6px 14px; border-radius: var(--r-sm); background: var(--brass); color: var(--gold-ink); font: 800 .875rem/1 var(--cond); letter-spacing: .14em; text-transform: uppercase; transform: rotate(4deg); box-shadow: 0 3px 0 #5b4210; }
.hero::before { content: ""; position: absolute; z-index: -1; left: -14%; top: 4%; width: 62%; aspect-ratio: 1; background: url(/static/img/vault-ring.svg) center / contain no-repeat; opacity: .055; pointer-events: none; }
@media (min-width: 760px) {
  .hero { padding-top: var(--s7); }
  .hero-v { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s6); }
  .hero-art { margin: 0 0 0 auto; }
}

/* ---------- Stats: riveted plates ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); margin: 0; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); gap: var(--s4); } }
.stats div { position: relative; padding: var(--s4) var(--s4) var(--s4) var(--s5); background: var(--steel-plate); border: 1px solid #343a45; border-radius: var(--r-lg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), inset 0 0 0 1px rgba(0,0,0,.4), 0 8px 20px rgba(0,0,0,.35); }
.stats div::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 3px 3px 0; background: var(--brass); }
.stats div::after { content: ""; position: absolute; right: 10px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--rivet); box-shadow: 0 1px 0 rgba(0,0,0,.6); }
.stats div:nth-child(4) { border-color: rgba(226,185,75,.55); background: linear-gradient(160deg, #2a2412 0%, #17150f 60%, #1c1a12 100%); }
.stats dt { color: var(--steel-hi); font: 700 .8125rem/1 var(--cond); letter-spacing: .18em; text-transform: uppercase; }
.stats dd { margin: var(--s2) 0 0; font: 400 clamp(1.5rem, 1.1rem + 1.6vw, 2.125rem)/1.1 var(--display); color: var(--gold-hi); letter-spacing: .01em; font-variant-numeric: tabular-nums; text-shadow: 0 2px 0 rgba(0,0,0,.5); }

/* ---------- Binders: framed brass plaques ---------- */
.binders { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
@media (min-width: 700px) { .binders { grid-template-columns: repeat(3, 1fr); gap: var(--s4); } }
.binder { position: relative; aspect-ratio: 16 / 10; overflow: hidden; isolation: isolate; background: var(--surface-2); border: 2px solid var(--gold-lo); border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 2px #0b0d12, 0 10px 24px rgba(0,0,0,.4); transition: transform .2s var(--ease), border-color .15s var(--ease), box-shadow .2s var(--ease); }
.binder:hover { transform: translateY(-3px); border-color: var(--gold-hi); box-shadow: inset 0 0 0 2px #0b0d12, 0 16px 32px rgba(0,0,0,.5), 0 0 0 1px rgba(226,185,75,.35); }
.binder::before { content: ""; position: absolute; inset: 7px; z-index: 3; pointer-events: none;
  background: var(--rivet) 0 0 / 7px 7px no-repeat, var(--rivet) 100% 0 / 7px 7px no-repeat, var(--rivet) 0 100% / 7px 7px no-repeat, var(--rivet) 100% 100% / 7px 7px no-repeat; }
.binder img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.binder:hover img { transform: scale(1.04); }
.binder::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 34%, rgba(8,9,12,.88)); }
.binder-t { position: absolute; left: var(--s4); right: var(--s4); bottom: var(--s3); z-index: 2; color: var(--gold-hi); font: 400 1rem/1.15 var(--display); letter-spacing: .02em; text-transform: uppercase; text-shadow: 0 2px 4px rgba(0,0,0,.7); }
.binder-t small { display: block; margin-top: 4px; color: #d6d1c2; font: 600 .8125rem/1 var(--cond); letter-spacing: .14em; text-transform: uppercase; text-shadow: none; }

/* ---------- Rails + spotlight band ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(152px, 42vw, 220px); gap: var(--s3); overflow-x: auto; scroll-snap-type: x proximity; margin: 0 calc(var(--gutter) * -1);
  padding: var(--s2) var(--gutter) var(--s3); scroll-padding: 0 var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 700px) { .rail { gap: var(--s4); } }
.rail-lg { grid-auto-columns: clamp(168px, 46vw, 248px); }
.spotlight { position: relative; margin-top: var(--sec); background: radial-gradient(60% 100% at 50% 0, rgba(226,185,75,.14), transparent 70%), linear-gradient(180deg, #11141b, #0d1016);
  border-block: 1px solid rgba(226,185,75,.5); box-shadow: inset 0 1px 0 #000, inset 0 -1px 0 #000; }
.spotlight::before { content: "★  ★  ★  ★  ★  ★  ★  ★  ★  ★  ★  ★  ★  ★  ★  ★  ★  ★  ★  ★  ★  ★  ★  ★  ★  ★  ★  ★  ★  ★"; position: absolute; left: 0; right: 0; top: 6px; overflow: hidden; white-space: nowrap; text-align: center; color: var(--gold); opacity: .35; font-size: 9px; letter-spacing: 6px; pointer-events: none; }
.spotlight .wrap { padding-top: calc(var(--sec) - 8px); padding-bottom: var(--sec); }
.spotlight .card-img { background: var(--surface-2); }
.eyebrow.gold { color: var(--gold-hi); }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(148px, 22vw, 220px), 1fr)); gap: var(--s5) var(--s3); }
@media (min-width: 700px) { .grid { gap: var(--s5) var(--s4); } }
.card { display: block; transition: transform .2s var(--ease); }
.card:hover { transform: translateY(-4px); }
.card-img { position: relative; display: grid; place-items: center; aspect-ratio: 5 / 7; padding: var(--s3); overflow: hidden; background: radial-gradient(80% 60% at 50% 30%, #222834, var(--surface)); border: 1px solid #343a45; border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.5), 0 6px 16px rgba(0,0,0,.35); transition: border-color .15s var(--ease), box-shadow .2s var(--ease); }
.card:hover .card-img { border-color: var(--gold); box-shadow: inset 0 0 0 1px rgba(0,0,0,.5), 0 14px 30px rgba(0,0,0,.5), 0 0 0 1px rgba(226,185,75,.45); }
.card-img img { max-width: 100%; max-height: 100%; width: auto; object-fit: contain; border-radius: var(--r-sm); }
.card-t { margin-top: var(--s3); font-size: var(--t-foot); font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-p { margin-top: var(--s1); color: var(--gold); font: 700 .9375rem/1.3 var(--mono); }
.badge { position: absolute; top: var(--s2); left: var(--s2); padding: 3px 8px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--text); font: 700 .75rem/1 var(--cond); letter-spacing: .12em; text-transform: uppercase; }
.grade { position: absolute; left: var(--s2); bottom: var(--s2); padding: 4px 9px 3px; border-radius: var(--r-sm); background: var(--brass); color: var(--gold-ink); font: 800 .8125rem/1 var(--cond); letter-spacing: .1em; box-shadow: 0 2px 0 #5b4210; }

/* ---------- Feature banner: steel plate with the badge ---------- */
.feature { position: relative; overflow: hidden; display: grid; justify-items: start; gap: var(--s5); padding: var(--s6) var(--s5) var(--s6); background: radial-gradient(60% 90% at 88% 50%, rgba(226,185,75,.22), transparent 70%), var(--steel-plate);
  border: 2px solid #3b414c; border-radius: var(--r-xl); box-shadow: inset 0 0 0 2px #0b0d12, inset 0 1px 0 rgba(255,255,255,.08), 0 18px 40px rgba(0,0,0,.45); }
.feature::before { content: ""; position: absolute; inset: 9px; pointer-events: none; z-index: 2;
  background: var(--rivet) 0 0 / 9px 9px no-repeat, var(--rivet) 100% 0 / 9px 9px no-repeat, var(--rivet) 0 100% / 9px 9px no-repeat, var(--rivet) 100% 100% / 9px 9px no-repeat; }
.feature h2 { margin: 0 0 var(--s3); font: 400 var(--t-h1)/1.08 var(--display); text-transform: uppercase; color: var(--gold-hi); text-shadow: 0 3px 0 rgba(0,0,0,.55); text-wrap: balance; }
.feature .lede { color: #cfc9b8; font-size: 1rem; }
.feature img { justify-self: center; width: auto; height: auto; max-width: 62%; max-height: 260px; filter: drop-shadow(0 14px 22px rgba(0,0,0,.6)); }
@media (min-width: 760px) {
  .feature { padding: var(--s6) var(--s7); }
  .feature.has-img { grid-template-columns: 1fr auto; gap: var(--s7); align-items: center; }
  .feature-copy { max-width: 520px; padding: var(--s5) 0; }
  .feature img { justify-self: end; max-width: none; max-height: clamp(220px, 24vw, 300px); }
}
.textblock .prose { max-width: 680px; color: #cfc9b8; font-size: var(--t-h3); line-height: 1.45; }

/* ---------- Ticker: brass strip ---------- */
.ticker { margin-top: var(--sec); overflow: hidden; background: var(--brass); border-block: 2px solid #5b4210; box-shadow: 0 6px 18px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.5); }
.ticker-track { display: flex; width: max-content; padding: 10px 0; animation: marquee 56s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { display: inline-flex; align-items: center; gap: var(--s5); padding-left: var(--s5); color: var(--gold-ink); font: 800 1rem/1 var(--cond); letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; }
.ticker span::after { content: "★"; color: #6e5216; font-size: .85em; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; row-gap: var(--s2); } }

/* ---------- Footer ---------- */
.foot { position: relative; margin-top: var(--sec); background: #090b0f; border-top: 2px solid var(--gold-lo); }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 3px; background: repeating-linear-gradient(90deg, var(--steel-lo) 0 10px, #1d2026 10px 20px); }
.foot-in { max-width: var(--maxw); margin: 0 auto; padding: var(--s6) var(--gutter); display: flex; justify-content: space-between; align-items: center; gap: var(--s4); color: var(--muted); font-size: var(--t-caption); }
.foot-brand { display: inline-flex; align-items: center; gap: var(--s3); }
.foot-brand img { width: 48px; height: 48px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(226,185,75,.45); }
.foot-brand b { display: block; color: var(--gold-hi); font: 400 1rem/1.1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.foot-brand small { display: block; margin-top: 3px; color: var(--steel-hi); font: 700 .8125rem/1 var(--cond); letter-spacing: .2em; text-transform: uppercase; }
.foot a:hover { color: var(--gold-hi); }
body:has(.admin) .foot { display: none; }
.wrap:has(.feature) { padding-bottom: 0; }

/* ---------- Collection / search pages ---------- */
.filters { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); align-items: center; margin-bottom: var(--s5); }
.filters .sg { flex: 1 1 260px; max-width: 420px; }
.check { display: inline-flex; align-items: center; gap: var(--s2); min-height: var(--ctl); color: var(--muted); font-size: var(--t-sub); }
.check input { width: 20px; height: 20px; accent-color: var(--gold); }
.empty { grid-column: 1 / -1; padding: var(--s7) 0; color: var(--muted); text-align: center; }
div.more { grid-column: 1 / -1; display: grid; place-items: center; height: var(--s8); }
.spin { width: 24px; height: 24px; border: 2px solid var(--line-2); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Card page ---------- */
.detail { display: grid; gap: var(--s5); }
.detail-img { display: grid; place-items: center; padding: var(--s5); background: radial-gradient(70% 60% at 50% 35%, rgba(226,185,75,.16), transparent 70%), var(--steel-plate); border: 2px solid #3b414c; border-radius: var(--r-xl);
  box-shadow: inset 0 0 0 2px #0b0d12, 0 18px 40px rgba(0,0,0,.4); }
.detail-img img { max-height: min(70dvh, 720px); width: auto; border-radius: var(--r-md); box-shadow: 0 16px 48px rgba(0,0,0,.65); }
@media (min-width: 900px) { .detail { grid-template-columns: 1.2fr 1fr; gap: var(--s7); align-items: start; } .detail-img { position: sticky; top: calc(var(--bar-h) + var(--s5)); } }
.price { margin: var(--s3) 0 var(--s1); color: var(--gold); font: 400 clamp(1.875rem, 1.4rem + 1.6vw, 2.75rem)/1.1 var(--display); letter-spacing: .01em; text-shadow: 0 2px 0 rgba(0,0,0,.5); }
.stock { margin: 0 0 var(--s5); font: 800 .9375rem/1 var(--cond); letter-spacing: .14em; text-transform: uppercase; } .stock.in { display: inline-block; padding: 6px 12px 5px; border-radius: var(--r-sm); background: var(--brass); color: var(--gold-ink); }
.prose { white-space: pre-line; color: var(--text); }
.tags { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }
.tags a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 var(--s3); border-radius: var(--r-sm); background: var(--fill); border: 1px solid var(--line-2); font: 700 .875rem/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; }
.tags a:hover { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.adminlink { margin-top: var(--s5); font-size: var(--t-foot); } .adminlink a { color: var(--muted); }
.textblock .h2 { margin-bottom: var(--s3); }

/* ---------- Search suggestions ---------- */
.sg-ghost { position: absolute; inset: 0; display: flex; align-items: center; overflow: hidden; white-space: pre; pointer-events: none; border: 0 solid transparent; }
.sg-ghost span { color: transparent; } .sg-ghost .rest { color: color-mix(in srgb, var(--text) 40%, transparent); }
.sg-panel { position: absolute; left: 0; right: 0; top: calc(100% + var(--s2)); z-index: 60; max-height: min(70vh, 540px); overflow: auto; padding: var(--s2);
  background: var(--surface); border: 1px solid var(--gold-lo); border-radius: var(--r-md); box-shadow: 0 24px 56px rgba(0,0,0,.7); }
.sg-sec { padding: var(--s2) var(--s3) var(--s1); color: var(--gold); font: 700 .8125rem/1 var(--cond); letter-spacing: .18em; text-transform: uppercase; }
.sg-item { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); width: 100%; min-height: 44px; padding: 0 var(--s3); border: 0; border-radius: var(--r-sm); color: var(--text); font: inherit; text-align: left; cursor: pointer;
  background: linear-gradient(90deg, rgba(226,185,75,.22) var(--p, 0%), transparent var(--p, 0%)); }
.sg-item[aria-selected=true], .sg-item:hover { background-color: var(--fill); }
.sg-t b { font-weight: 800; }
.sg-meta { display: flex; align-items: center; gap: var(--s2); flex: none; }
.sg-p { color: var(--muted); font: 600 var(--t-foot) var(--mono); font-variant-numeric: tabular-nums; }
.sg-k { padding: 2px 8px 1px; border-radius: var(--r-sm); background: var(--fill); color: var(--steel-hi); font: 700 .75rem/1.3 var(--cond); letter-spacing: .14em; text-transform: uppercase; }
.sg-card { display: flex; align-items: center; gap: var(--s3); padding: var(--s2) var(--s3); border-radius: var(--r-sm); }
.sg-card:hover { background: var(--fill); }
.sg-card img { flex: none; width: 36px; height: 50px; object-fit: contain; border-radius: 3px; background: var(--surface-2); }
.sg-ct { display: grid; min-width: 0; } .sg-ct b { overflow: hidden; font-size: var(--t-sub); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; } .sg-ct small { color: var(--gold); font: 700 var(--t-foot) var(--mono); }
.sg-note { margin: var(--s2) 0 0; padding: var(--s2) var(--s3) var(--s1); border-top: 1px solid var(--line-2); color: var(--muted); font-size: var(--t-caption); }

/* ---------- Motion: slow and optional ---------- */
@view-transition { navigation: auto; }
.htmx-added { opacity: 0; } .htmx-settling .htmx-added { opacity: 1; transition: opacity .2s var(--ease); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Admin (manual entry) ---------- */
.admin { max-width: 1040px; }
.a-head { margin-bottom: var(--s5); }
.a-grid { display: grid; gap: var(--s5); }
@media (min-width: 900px) { .a-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--s7); align-items: start; } .a-side { position: sticky; top: calc(var(--bar-h) + var(--s5)); } }
body:has(.admin) .tabs { display: none; } body:has(.admin) { padding-bottom: 0; }
.form { display: grid; gap: var(--s5); }
.step { display: grid; gap: var(--s3); background: var(--surface); border-radius: var(--r-lg); padding: var(--s5); border: 0; margin: 0; }
.step-n { margin: 0; font-size: var(--t-caption); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.field { display: grid; gap: var(--s2); font-size: var(--t-foot); font-weight: 500; color: var(--muted); }
.lab { font-size: var(--t-foot); }
.form input:not([type=checkbox]):not(.sr), .form textarea { width: 100%; min-height: 48px; border: .5px solid var(--line); border-radius: var(--r-md); background: var(--bg); color: var(--text);
  font: inherit; font-size: var(--t-body); padding: var(--s3) var(--s4); -webkit-appearance: none; appearance: none; }
.form input:focus, .form textarea:focus { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); outline-offset: 0; border-color: var(--accent); }
.form textarea { resize: vertical; line-height: 1.5; }
.sr { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.drop { display: grid; place-items: center; aspect-ratio: 5 / 7; max-height: 360px; width: min(100%, 257px); margin: 0 auto; border-radius: var(--r-md); border: 2px dashed var(--line);
        background: var(--bg); cursor: pointer; overflow: hidden; transition: border-color .2s; }
.drop:hover, .drop:focus-within { border-color: var(--accent); }
.drop img { width: 100%; height: 100%; object-fit: contain; }
.drop-t { display: grid; justify-items: center; gap: var(--s1); color: var(--muted); text-align: center; padding: var(--s4); }
.drop-t svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; margin-bottom: var(--s2); }
.drop-t strong { color: var(--text); font-size: var(--t-body); } .drop-t small { font-size: var(--t-foot); }
.chips, .pills { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chips button, .pill span { display: inline-flex; align-items: center; min-height: var(--ctl); padding: 0 var(--s4); border-radius: 980px; border: 0; cursor: pointer; background: var(--fill);
  color: var(--text); font: inherit; font-size: var(--t-sub); transition: background .2s, color .2s, transform .25s var(--spring); }
.chips button[aria-pressed=true], .pill input:checked + span { background: var(--accent); color: #fff; }
.chips button:active, .pill:active span { transform: scale(.96); }
.pill { position: relative; } .pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.hint { margin: 0; font-size: var(--t-foot); color: var(--muted); } .hint:empty { display: none; } .hint.warn { color: var(--sale); }
details.more summary { cursor: pointer; min-height: var(--ctl); display: flex; align-items: center; font-weight: 500; list-style: none; }
details.more summary::-webkit-details-marker { display: none; } details.more summary small { color: var(--muted); margin-left: var(--s2); font-weight: 400; }
details.more[open] summary { margin-bottom: var(--s2); }
.bar-actions { position: sticky; bottom: 0; z-index: 5; margin: 0 calc(var(--gutter) * -1); padding: var(--s3) var(--gutter) calc(var(--s3) + var(--sab)); background: var(--bar);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: .5px solid var(--line); display: grid; gap: var(--s2); }
.actions { display: grid; gap: var(--s2); }                       /* phone: primary on top, secondary below, full width */
@media (min-width: 600px) { .actions { grid-template-columns: 1fr 1fr; gap: var(--s3); } .actions:has(> :only-child) { grid-template-columns: 1fr; } }
.actions .btn { min-height: 50px; font-size: var(--t-body); font-weight: 600; }
.status { margin: 0; text-align: center; font-size: var(--t-foot); color: var(--muted); } .status:empty { display: none; }
@media (min-width: 900px) { .bar-actions { position: static; margin: 0; padding: 0; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; } }
.a-side { display: grid; gap: var(--s3); align-content: start; }
.a-side .card { width: min(100%, 220px); justify-self: center; pointer-events: none; }
.pv-empty { color: var(--muted); font-size: var(--t-foot); }
@media (max-width: 899px) { .a-side .card, .a-side > .step-n { display: none; } }
.recent { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; }
.recent li + li { border-top: .5px solid var(--line); }
.recent a { display: flex; justify-content: space-between; gap: var(--s3); min-height: 48px; align-items: center; padding: 0 var(--s4); }
.recent span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .recent small { color: var(--muted); flex: none; }
.danger button { border: 0; background: none; color: var(--danger); font: inherit; min-height: var(--ctl); cursor: pointer; }
.linkbtn { border: 0; background: none; color: var(--muted); font: inherit; min-height: var(--ctl); cursor: pointer; padding: 0 var(--s3); }
.linkbtn.inline { min-height: 0; padding: 0; color: var(--accent); }
.narrow { max-width: 480px; } .err { color: var(--danger); } .ok { color: var(--ok); }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(96px + var(--sab)); z-index: 40; max-width: min(92vw, 360px); padding: var(--s3) var(--s5);
  border-radius: 980px; background: rgba(29,29,31,.92); color: #fff; font-size: var(--t-sub); text-align: center; box-shadow: 0 8px 32px rgba(0,0,0,.25); }
.toast.err { background: #b3001b; border-radius: var(--r-md); }


/* ---------- Admin shell: segmented control, toolbar, rows ---------- */
.admin.wide { max-width: 1200px; }
.adm-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s5); }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--fill); }
.seg a { min-height: 36px; padding: 0 var(--s5); display: inline-flex; align-items: center; border-radius: 9px; font-size: var(--t-sub); font-weight: 500; color: var(--muted); transition: background .25s var(--ease), color .25s; }
.seg a.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.toolbar { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; margin-bottom: var(--s3); }
.tb-form { display: flex; flex: 1 1 280px; gap: var(--s2); min-width: 0; }
.tb-form input[type=search] { flex: 1 1 auto; height: 44px; }
.tb-form select { height: 44px; width: auto; max-width: 46%; }
.center { text-align: center; margin: var(--s5) 0; }

.pbtn { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 var(--s4); border: 0; border-radius: 980px; background: var(--fill); color: var(--text);
        font: inherit; font-size: var(--t-sub); font-weight: 500; cursor: pointer; transition: transform .2s var(--spring), background .2s; white-space: nowrap; }
.pbtn:hover { background: rgba(120,120,128,.2); } .pbtn:active { transform: scale(.95); }
.pbtn.danger { color: var(--danger); }
.pbtn[hidden] { display: none !important; }
.ibtn { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--fill); color: var(--text); font: inherit; font-size: 17px; cursor: pointer; transition: transform .2s var(--spring), opacity .2s; }
.ibtn:active { transform: scale(.9); } .ibtn:disabled { opacity: .3; pointer-events: none; }
.photo-acts { display: flex; gap: var(--s2); justify-content: center; flex-wrap: wrap; }

.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.crow { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: var(--s3); align-items: center; background: var(--surface); border-radius: var(--r-md); padding: var(--s2) var(--s3) var(--s2) var(--s2);
        overflow: hidden; transition: height .3s var(--ease), opacity .25s, margin .3s, padding .3s, transform .3s var(--ease); }
.crow.gone, .blk.gone { height: 0 !important; opacity: 0; padding-top: 0; padding-bottom: 0; margin-bottom: -8px; transform: scale(.98); pointer-events: none; }
.thumb { position: relative; width: 56px; aspect-ratio: 5 / 7; border-radius: 8px; overflow: hidden; background: var(--bg); cursor: pointer; display: grid; place-items: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-empty { font-size: 10px; color: var(--muted); text-align: center; }
.thumb-ov { position: absolute; inset: auto 0 0 0; padding: 2px 0; text-align: center; font-size: 10px; font-weight: 600; color: #fff; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .2s; }
.thumb:hover .thumb-ov, .thumb:focus-within .thumb-ov { opacity: 1; }
@media (hover: none) { .thumb-ov { opacity: 1; } }
.thumb.busy::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.6) center / 20px no-repeat; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .4; } }
.crow-main { min-width: 0; display: grid; gap: 2px; }
.crow-main strong { font-weight: 600; font-size: var(--t-sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crow-main small { color: var(--muted); font-size: var(--t-foot); }
.crow-acts { display: flex; gap: var(--s2); }
@media (max-width: 599px) { .crow { grid-template-columns: 56px minmax(0, 1fr); } .crow-acts { grid-column: 1 / -1; justify-content: flex-end; } }

/* ---------- Page editor ---------- */
.pg-grid { display: grid; gap: var(--s5); }
@media (min-width: 1100px) { .pg-grid { grid-template-columns: minmax(0, 1fr) 420px; gap: var(--s6); align-items: start; } .pg-preview { position: sticky; top: calc(var(--bar-h) + var(--s5)); } }
.pg-edit { display: grid; gap: var(--s3); align-content: start; }
.pg-hint { margin: var(--s2) 0 0; }
.blocks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.blk { display: grid; gap: var(--s3); background: var(--surface); border-radius: var(--r-md); padding: var(--s4); overflow: hidden;
       transition: transform .35s var(--ease), height .3s var(--ease), opacity .25s, margin .3s, padding .3s; }
.blk.off { opacity: .55; }
.blk.enter { animation: pop .4s var(--spring); }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(8px); } }
.blk-main { display: grid; gap: 2px; min-width: 0; }
.blk-kind { font-size: var(--t-caption); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.blk-sum { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blk-off { font-size: var(--t-caption); color: var(--sale); font-weight: 600; }
.blk-acts { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.add-btn { width: 100%; min-height: 50px; margin-top: var(--s2); }
.device { width: 390px; max-width: 100%; margin: 0 auto; border-radius: 40px; padding: 10px; background: #1d1d1f; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.device iframe { display: block; width: 100%; height: min(760px, calc(100dvh - 140px)); border: 0; border-radius: 30px; background: var(--bg); }
.pg-preview { display: none; } @media (min-width: 1100px) { .pg-preview { display: block; } }

/* ---------- Bottom sheet (iOS style; centered card on large screens) ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0,0,0,.4); opacity: 0; transition: opacity .28s var(--ease); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92dvh; display: flex; flex-direction: column; background: var(--bg); border-radius: var(--r-xl) var(--r-xl) 0 0;
               transform: translateY(100%); transition: transform .35s var(--ease); padding-bottom: var(--sab); }
.sheet.open .sheet-bg { opacity: 1; } .sheet.open .sheet-panel { transform: none; }
.sheet-h { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: var(--s2) var(--s3); border-bottom: .5px solid var(--line); }
.sheet-h h2 { margin: 0; font-size: var(--t-body); font-weight: 600; text-align: center; }
.sheet-h .linkbtn { color: var(--accent); } .sheet-h .linkbtn:first-child { justify-self: start; } .sheet-h .linkbtn.strong { justify-self: end; font-weight: 600; }
.sheet-body { overflow-y: auto; padding: var(--s4) var(--gutter) var(--s5); -webkit-overflow-scrolling: touch; }
@media (min-width: 760px) { .sheet-panel { left: 50%; right: auto; bottom: auto; top: 50%; width: 520px; max-height: 86dvh; border-radius: var(--r-xl); transform: translate(-50%, -46%) scale(.97); opacity: 0; transition: transform .3s var(--ease), opacity .25s; }
  .sheet.open .sheet-panel { transform: translate(-50%, -50%); opacity: 1; } }
.sheet-form { display: grid; gap: var(--s4); }
.sf { display: grid; gap: var(--s2); }
.sf-label { display: grid; gap: var(--s2); }
.sf-l { font-size: var(--t-foot); font-weight: 500; color: var(--muted); }
.sf input[type=text], .sf textarea, .sf select { width: 100%; min-height: 48px; border: .5px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--text);
  font: inherit; font-size: var(--t-body); padding: var(--s3) var(--s4); -webkit-appearance: none; appearance: none; }
.sf select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.sf input:focus, .sf textarea:focus, .sf select:focus { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); border-color: var(--accent); }
.sf-img { display: grid; place-items: center; min-height: 140px; max-height: 200px; border-radius: var(--r-md); background: var(--surface); padding: var(--s3); border: .5px solid var(--line); }
.sf-img img { max-height: 170px; width: auto; object-fit: contain; } .sf-ph { color: var(--muted); font-size: var(--t-foot); }
.sf-img-acts { display: flex; gap: var(--s2); }
.sf-switch { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 48px; padding: 0 var(--s4); background: var(--surface); border-radius: var(--r-md); cursor: pointer; position: relative; }
.knob { position: relative; width: 51px; height: 31px; border-radius: 980px; background: rgba(120,120,128,.32); transition: background .25s; flex: none; }
.knob::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); transition: transform .25s var(--spring); }
.sf-switch input:checked ~ .knob { background: var(--ok); } .sf-switch input:checked ~ .knob::after { transform: translateX(20px); }
.sf-switch input:focus-visible ~ .knob { outline: 3px solid var(--accent); outline-offset: 2px; }
.picker { display: grid; gap: var(--s2); }
.pick { display: grid; gap: 2px; text-align: left; padding: var(--s3) var(--s4); border: 0; border-radius: var(--r-md); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; transition: transform .2s var(--spring); }
.pick:active { transform: scale(.98); } .pick strong { font-weight: 600; } .pick small { color: var(--muted); font-size: var(--t-foot); }
.toast-undo { margin-left: var(--s4); border: 0; background: none; color: #7cc0ff; font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
.toast { z-index: 80; }

.pg-edit .step input { width: 100%; min-height: 48px; border: .5px solid var(--line); border-radius: var(--r-md); background: var(--bg); color: var(--text); font: inherit; font-size: var(--t-body); padding: var(--s3) var(--s4); -webkit-appearance: none; appearance: none; }
.pg-edit .step input:focus { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); border-color: var(--accent); }


/* ---------- Market price panel (card form) ---------- */
.market { display: grid; gap: var(--s3); padding: var(--s4); border-radius: var(--r-md); border: .5px solid var(--line);
  background: linear-gradient(135deg, rgba(20,184,207,.10), rgba(255,159,122,.10)); animation: pop .35s var(--spring); }
.mk-state { margin: 0; font-size: var(--t-sub); color: var(--muted); }
.mk-card { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: var(--s3); align-items: start; }
.mk-card img { width: 84px; height: auto; border-radius: 6px; box-shadow: 0 4px 14px rgba(0,0,0,.22); }
.mk-info { display: grid; gap: var(--s2); min-width: 0; }
.mk-info strong { font-size: var(--t-body); } .mk-info small { color: var(--muted); font-size: var(--t-foot); }
.mk-price { margin: 0; font-size: var(--t-foot); color: var(--muted); line-height: 1.45; }
.mk-acts { display: flex; flex-wrap: wrap; gap: var(--s2); }
.mk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.mk-list button { display: flex; align-items: center; gap: var(--s3); width: 100%; min-height: 66px; padding: var(--s2) var(--s3); border: 0; border-radius: var(--r-sm); background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: transform .2s var(--spring); }
.mk-list button:active { transform: scale(.98); } .mk-list img { border-radius: 4px; flex: none; }
.hint.show { display: block; }

/* ---------- Selection + bulk bar ---------- */
.listhead { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s2); }
.listhead .sub { margin: 0; }
.selnote { margin: 0 0 var(--s2); font-size: var(--t-foot); color: var(--muted); }
.chk, .chk-all { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-width: 44px; min-height: 44px; cursor: pointer; }
.chk-all { justify-content: flex-start; }
.chk-txt { font-size: var(--t-sub); color: var(--muted); }
.chk-box { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid rgba(120,120,128,.55); background: var(--surface); display: grid; place-items: center; transition: background .2s, border-color .2s, transform .25s var(--spring); }
.chk-box::after { content: ""; width: 11px; height: 6px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg) scale(0) translate(1px, -1px); transition: transform .22s var(--spring); }
input:checked + .chk-box, input:indeterminate + .chk-box { background: var(--accent); border-color: var(--accent); }
input:checked + .chk-box::after { transform: rotate(-45deg) scale(1) translate(1px, -1px); }
input:indeterminate + .chk-box::after { width: 11px; height: 0; border-left: 0; border-bottom: 2.5px solid #fff; transform: none; }
input:focus-visible + .chk-box { outline: 3px solid var(--accent); outline-offset: 2px; }
.chk:active .chk-box, .chk-all:active .chk-box { transform: scale(.9); }
.crow { grid-template-columns: 44px 56px minmax(0, 1fr) auto; padding-left: 0; }
.crow.sel { box-shadow: inset 0 0 0 2px var(--accent); }
@media (max-width: 599px) { .crow { grid-template-columns: 44px 56px minmax(0, 1fr); } }
.selbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--s4) + var(--sab)); z-index: 30; display: flex; align-items: center; gap: var(--s4); padding: var(--s2) var(--s2) var(--s2) var(--s5);
  border-radius: 980px; background: rgba(29,29,31,.92); color: #fff; box-shadow: 0 12px 40px rgba(0,0,0,.32); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); animation: pop .3s var(--spring); max-width: calc(100vw - 2 * var(--s3)); }
.selbar-n { font-weight: 600; font-size: var(--t-sub); white-space: nowrap; }
.selbar-acts { display: flex; gap: var(--s2); align-items: center; }
.selbar .pbtn, .selbar .ibtn { background: rgba(255,255,255,.16); color: #fff; } .selbar .pbtn:hover { background: rgba(255,255,255,.24); } .selbar .pbtn.danger { color: #ff8a80; }
@media (max-width: 599px) {
  .selbar { flex-direction: column; align-items: stretch; gap: var(--s2); left: var(--s3); right: var(--s3); transform: none; bottom: calc(var(--s3) + var(--sab)); border-radius: var(--r-lg); padding: var(--s3); }
  .selbar-n { text-align: center; } .selbar-acts { justify-content: space-between; } .selbar .pbtn { flex: 1; }
}
body.has-sel { padding-bottom: 150px; }
body.has-sel .toast { bottom: calc(150px + var(--sab)); }
.seg button { flex: 1; min-height: 36px; padding: 0 var(--s4); border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-size: var(--t-sub); font-weight: 500; cursor: pointer; transition: background .25s var(--ease), color .25s; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.seg-wide { display: flex; width: 100%; }
.sheet-input { width: 100%; min-height: 48px; border: .5px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--text); font: inherit; font-size: var(--t-body); padding: var(--s3) var(--s4); -webkit-appearance: none; appearance: none; }
.sheet-input:focus { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); border-color: var(--accent); }
.confirm { margin: 0; font-size: var(--t-body); }
.sheet-body .pills { margin-top: var(--s2); }



/* =====================================================================
   Voltage: dark-mode corrections for the admin screens (same components, new palette)
   ===================================================================== */
.btn, .pbtn, .chips button, .pill span, .tags a, .toast, .seg, .seg a, .seg button, .thumb, .ibtn, .sticker { border-radius: var(--r-md); }
.pbtn { border-radius: var(--r-sm); font-weight: 700; }
.pbtn:hover { background: rgba(255,255,255,.16); }
.chips button, .pill span { border-radius: var(--r-sm); font-weight: 600; }
.chips button[aria-pressed=true], .pill input:checked + span { background: var(--accent); color: var(--accent-ink); }
.chk-box { border-color: rgba(255,255,255,.35); background: var(--surface); border-radius: 4px; }
.chk-box::after { border-color: var(--accent-ink); }
input:checked + .chk-box, input:indeterminate + .chk-box { background: var(--accent); border-color: var(--accent); }
.crow, .step, .recent, .stats div { border-radius: var(--r-md); }
.crow { border: 1px solid var(--line-2); } .crow.sel { box-shadow: inset 0 0 0 2px var(--accent); }
.step { border: 1px solid var(--line-2); }
.step-n { color: var(--muted); }
.form input:not([type=checkbox]):not(.sr), .form textarea, .pg-edit .step input, .sheet-input, .sf input[type=text], .sf textarea, .sf select { background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-md); color: var(--text); }
.form input:focus, .form textarea:focus, .pg-edit .step input:focus, .sheet-input:focus, .sf input:focus, .sf textarea:focus, .sf select:focus { outline: 3px solid rgba(255,214,10,.35); outline-offset: 0; border-color: var(--accent); }
.drop { border-color: var(--line-2); } .drop:hover, .drop:focus-within { border-color: var(--accent); }
.market { background: var(--surface-2); border: 1px solid var(--line-2); border-left: 3px solid var(--accent); animation: none; }
.mk-list button { background: var(--surface); }
.seg { background: var(--fill); } .seg a.on, .seg button.on { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.seg a, .seg button { color: var(--muted); font-weight: 700; }
.toast { background: var(--surface-2); color: var(--text); border: 1px solid var(--line-2); box-shadow: 0 16px 48px rgba(0,0,0,.6); }
.toast.err { background: #4a1713; border-color: #7a2a24; }
.toast-undo { color: var(--accent); }
.selbar { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-md); animation: none; }
.selbar .pbtn, .selbar .ibtn { background: var(--fill); color: var(--text); } .selbar .pbtn.danger { color: var(--danger); }
.sheet-panel { background: var(--surface); border: 1px solid var(--line-2); }
.sheet-h { border-bottom: 1px solid var(--line-2); } .sheet-h .linkbtn { color: var(--accent); }
.sheet-bg { background: rgba(0,0,0,.66); }
.sf-img, .sf-switch, .pick { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-md); }
.knob { background: rgba(255,255,255,.22); } .sf-switch input:checked ~ .knob { background: var(--accent); }
.sf-switch input:checked ~ .knob::after { background: var(--accent-ink); }
.blk { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-md); }
.blk-off { color: var(--sale); }
.device { background: #000; border: 1px solid var(--line-2); border-radius: 32px; }
.device iframe { border-radius: 24px; }
.recent a:hover, .crow-main:hover strong { color: var(--accent); }
.danger button, .pbtn.danger { color: var(--danger); }
.bar-actions { background: var(--bar); border-top: 1px solid var(--line-2); }
.linkbtn.inline, .linkbtn:hover { color: var(--accent); }
.ok { color: var(--accent); } .err { color: var(--danger); }
.thumb { background: var(--surface-2); } .thumb.busy::after { background-color: rgba(9,11,14,.6); }
.a-side .card { pointer-events: none; }

/* Card pictures fill their frame (card art is 5:7, same as the frame), even when the file is small. Other shapes are letterboxed, not cropped. */
.card-img { padding: 0; }
.card-img img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; border-radius: 0; }
.detail-img img { width: min(100%, 520px); height: auto; }
