:root {
  /* Vault (dark) is the default identity */
  --bg: #09090b;
  --surface: #111114;
  --surface-2: #18181c;
  --line: #27272a;
  --line-strong: #3f3f46;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --gold: #d4af37;
  --primary: #d4af37;
  --primary-ink: #09090b;
  --ok: #34d399;
  --hold: #fbbf24;
  --sold: #a1a1aa;
  --wa: #14803f;
  --tg: #1d7fb8;
  --art-bg: radial-gradient(circle at 50% 38%, #1d1d22 0%, #0c0c0e 78%);
  --page-glow: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.07), transparent 55%);
  --art-shadow: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.7));
  --overlay: rgba(0, 0, 0, 0.74);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 40px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.85);
  color-scheme: dark;
}

[data-theme="archive"] {
  --bg: #f8f7f4;
  --surface: #ffffff;
  --surface-2: #f1efea;
  --line: #dedad1;
  --line-strong: #b9b4a8;
  --text: #1a1a1a;
  --muted: #5e5c57;
  --gold: #86690f;
  --primary: #1a1a1a;
  --primary-ink: #f8f7f4;
  --ok: #0b7a53;
  --hold: #a25a06;
  --sold: #6b6a66;
  --art-bg: radial-gradient(circle at 50% 38%, #ffffff 0%, #ece9e1 85%);
  --page-glow: none;
  --art-shadow: drop-shadow(0 12px 16px rgba(26, 26, 26, 0.28));
  --overlay: rgba(26, 26, 26, 0.55);
  --shadow: 0 24px 48px -24px rgba(26, 26, 26, 0.35);
  color-scheme: light;
}

[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image: var(--page-glow);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--s4); top: -60px; z-index: 100; background: var(--primary); color: var(--primary-ink); padding: var(--s2) var(--s4); border-radius: var(--radius-sm); }
.skip:focus { top: var(--s2); }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--s4); }
.dim { color: var(--muted); }
.gold { color: var(--gold); }
.ok { color: var(--ok); }

.eyebrow { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.mono-note { font-size: 11px; letter-spacing: 0.04em; color: var(--muted); }
.mono-note--ok { color: var(--ok); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.section-title { font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s3); }

/* Telemetry strip */
.strip { border-bottom: 1px solid var(--line); background: var(--surface); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.strip__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding-top: var(--s2); padding-bottom: var(--s2); flex-wrap: wrap; }
.strip__live { display: inline-flex; align-items: center; gap: var(--s2); color: var(--text); font-weight: 500; }
.strip__desk { display: none; }
.strip__clock { color: var(--gold); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* Header */
.top { background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); z-index: 30; }
.top__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3) var(--s4); padding-top: var(--s4); padding-bottom: var(--s3); }
.brand { display: flex; align-items: center; gap: var(--s3); background: none; border: 0; padding: 0; text-align: left; flex: 1 1 100%; }
.brand__mark { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); color: var(--gold); background: var(--surface); }
.brand__mark svg { width: 22px; height: 22px; }
.brand__text { display: flex; flex-direction: column; }
.brand__name { font-family: var(--font-display); font-size: 27px; font-weight: 600; letter-spacing: 0.14em; line-height: 1.1; }
.brand__sub { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.tabs { display: flex; gap: var(--s1); padding: var(--s1); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.tab { min-height: 40px; padding: 0 var(--s4); border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 12px; letter-spacing: 0.06em; }
.tab:hover { color: var(--text); }
.tab.is-active { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }

.filters { border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 55%, transparent); }
.filters__inner { display: flex; flex-direction: column; gap: var(--s3); padding-top: var(--s3); padding-bottom: var(--s3); }
.filters__right { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.chips { display: flex; gap: var(--s2); overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; padding: 0 var(--s4); border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; transition: all 0.2s; }
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip.is-active { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); font-weight: 600; }
.search { position: relative; flex: 1 1 220px; display: block; }
.search svg { position: absolute; left: 12px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); color: var(--muted); }
.search input { width: 100%; min-height: 44px; padding: 0 var(--s3) 0 38px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); font-size: 12px; }
.search input::placeholder { color: var(--muted); opacity: 0.8; }
.search input:focus { border-color: var(--gold); outline: none; }
.switch { display: inline-flex; align-items: center; gap: var(--s3); min-height: 44px; padding: 0 var(--s3); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { position: relative; width: 34px; height: 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-2); transition: all 0.2s; }
.switch__track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--muted); transition: all 0.2s; }
.switch input:checked + .switch__track { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 25%, transparent); }
.switch input:checked + .switch__track::after { transform: translateX(16px); background: var(--ok); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Hero */
.hero { border-bottom: 1px solid var(--line); }
.hero__inner { display: flex; flex-direction: column; gap: var(--s5); padding-top: var(--s5); padding-bottom: var(--s5); }
.hero h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 5vw, 42px); line-height: 1.12; max-width: 24ch; margin-top: var(--s2); }
.hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--line); }
.hero__stats dt { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.hero__stats dd { font-size: 12px; font-weight: 600; margin-top: 2px; }

/* Grid */
.main { flex: 1; padding-top: var(--s5); padding-bottom: var(--s6); }
.results-bar { display: flex; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); flex-wrap: wrap; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); grid-auto-flow: dense; gap: var(--s4); }
.card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s, box-shadow 0.3s; }
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--gold) 60%, var(--line)); box-shadow: var(--shadow); }
.card.is-sold .card__art { filter: grayscale(0.75); opacity: 0.8; }
.card__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: var(--s3) var(--s4); }
.card__meta { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.card__art { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; background: var(--art-bg); border-block: 1px solid var(--line); overflow: hidden; }
.card__art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.card:hover .card__art img, .card:hover .watch-art { transform: scale(1.04); }
.watch-art { width: min(62%, 230px); height: auto; filter: var(--art-shadow); transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.ref-tag { position: absolute; right: var(--s3); bottom: var(--s3); padding: 2px var(--s2); border: 1px solid var(--line); border-radius: 6px; background: color-mix(in srgb, var(--bg) 85%, transparent); font-size: 10px; letter-spacing: 0.06em; color: var(--muted); }
.card__body { flex: 1; display: flex; flex-direction: column; gap: var(--s2); padding: var(--s4); }
.card__brandline { display: flex; justify-content: space-between; gap: var(--s2); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.card__brandline span:last-child { color: var(--muted); text-align: right; }
.card__title { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.15; }
.card__open { all: unset; cursor: pointer; }
.card__open::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__open:focus-visible::after { outline: 2px solid var(--gold); outline-offset: -3px; border-radius: var(--radius); }
.card__listed { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.mini-matrix { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: var(--s2); }
.mini-matrix li { padding: 1px 7px; border: 1px solid var(--line); border-radius: 5px; font-size: 10px; letter-spacing: 0.02em; color: var(--muted); }
.mini-matrix li.on { color: var(--text); border-color: var(--line-strong); }
.mini-matrix li.on::before { content: "✓ "; color: var(--ok); }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s3) var(--s4); border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 50%, var(--surface)); }
.card__price small { display: block; font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.card__price strong { font-size: 17px; font-weight: 600; }
.card__cta { display: inline-flex; align-items: center; gap: var(--s2); min-height: 36px; padding: 0 var(--s3); border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); border-radius: 8px; color: var(--gold); font-size: 11px; font-weight: 500; transition: all 0.2s; }
.card:hover .card__cta { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.card .pill.is-admin { position: relative; z-index: 2; cursor: pointer; box-shadow: 0 0 0 2px color-mix(in srgb, var(--hold) 60%, transparent); }

@media (min-width: 700px) {
  .card--wide { grid-column: span 2; }
  .card--wide .card__art { aspect-ratio: 2 / 1; }
  .card--wide .watch-art { width: auto; height: 82%; }
  .card--wide .card__title { font-size: 28px; }
}

/* Status pill */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid; border-radius: 999px; background: transparent; font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--available { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.pill--hold { color: var(--hold); border-color: color-mix(in srgb, var(--hold) 45%, transparent); background: color-mix(in srgb, var(--hold) 12%, transparent); }
.pill--sold { color: var(--sold); border-color: var(--line-strong); background: var(--surface-2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s4); border: 1px solid transparent; border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; transition: all 0.2s; }
.btn--sm { min-height: 40px; padding: 0 var(--s3); font-size: 11px; }
.btn--block { width: 100%; min-height: 50px; }
.btn--primary { background: var(--primary); color: var(--primary-ink); }
.btn--primary:hover { filter: brightness(1.1); }
.btn--outline { background: transparent; border-color: color-mix(in srgb, var(--gold) 65%, transparent); color: var(--gold); }
.btn--outline:hover { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--muted); font-weight: 500; }
.btn--ghost:hover { color: var(--text); border-color: var(--line-strong); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--tg { background: var(--tg); color: #fff; }
.btn--wa:hover, .btn--tg:hover { filter: brightness(1.12); }
.btn:disabled { opacity: 0.55; cursor: progress; }
.link-btn { background: none; border: 0; padding: var(--s2) 0; min-height: 36px; color: var(--gold); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); background: transparent; color: var(--muted); }
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }
.icon-btn svg { width: 16px; height: 16px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.dot.is-on { background: var(--hold); animation: pulse 2s infinite; }

/* Admin + empty */
.admin-banner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin-bottom: var(--s4); padding: var(--s3) var(--s4); border: 1px solid color-mix(in srgb, var(--hold) 50%, transparent); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--hold) 10%, transparent); font-size: 12px; color: var(--hold); }
.admin-banner__badge { padding: 2px 8px; border-radius: 5px; background: var(--hold); color: var(--bg); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.admin-banner__text { flex: 1 1 240px; }
.admin-banner__actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.admin-banner__status { flex: 1 1 100%; margin: 0; min-height: 1em; }
.admin-banner .btn:disabled { opacity: 0.5; cursor: not-allowed; }
.empty { padding: var(--s6) var(--s4); text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.empty__title { font-family: var(--font-display); font-size: 26px; margin-bottom: var(--s2); }
.empty__text { color: var(--muted); font-size: 12px; margin-bottom: var(--s4); }

/* Footer */
.foot { border-top: 1px solid var(--line); background: var(--surface); }
.foot__inner { display: flex; flex-direction: column; gap: var(--s3); padding-top: var(--s5); padding-bottom: var(--s5); font-size: 11px; }
.foot__actions { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: center; }

/* Ownership credit */
.credit { border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 55%, var(--surface)); }
.credit__inner { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s2); padding-top: var(--s4); padding-bottom: var(--s4); font-size: 11px; color: var(--muted); }
.credit__mark { color: var(--gold); flex: none; }
.credit__line { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2); margin: 0; }
.credit__label { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.credit__line strong { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: 0.02em; color: var(--text); }
.credit__site { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--gold); text-decoration: none; border-bottom: 1px solid transparent; }
.credit__site:hover, .credit__site:focus-visible { border-bottom-color: var(--gold); outline: none; }
.credit__site:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (min-width: 720px) {
  .credit__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--s5); }
}
@media (prefers-reduced-motion: no-preference) {
  .credit__mark { animation: credit-glow 4s ease-in-out infinite; }
}
@keyframes credit-glow { 0%, 100% { filter: drop-shadow(0 0 0 rgba(212, 175, 55, 0)); } 50% { filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.7)); } }

/* Overlays */
.overlay { position: fixed; inset: 0; z-index: 50; background: var(--overlay); backdrop-filter: blur(4px); }
.overlay--right { display: flex; justify-content: flex-end; }
.overlay--center { display: grid; place-items: center; padding: var(--s4); }
.drawer { position: relative; width: min(680px, 100%); height: 100%; overflow-y: auto; background: var(--bg); border-left: 1px solid var(--line); box-shadow: var(--shadow); animation: slideIn 0.32s cubic-bezier(0.16, 1, 0.3, 1); outline: none; }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer__bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s3) var(--s4); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.drawer__badges { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.ref-badge { padding: 3px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--gold); font-size: 11px; letter-spacing: 0.06em; }
.drawer__body { display: flex; flex-direction: column; gap: var(--s5); padding: var(--s4) var(--s4) var(--s6); }
.dossier-hero { display: grid; gap: var(--s4); padding: var(--s4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.dossier-hero__art { display: grid; place-items: center; aspect-ratio: 1 / 1; border-radius: var(--radius-sm); background: var(--art-bg); overflow: hidden; }
.dossier-hero__art img { width: 100%; height: 100%; object-fit: cover; }
.dossier-hero__art .watch-art { width: 72%; }
.dossier-hero__info { display: flex; flex-direction: column; gap: var(--s2); justify-content: center; }
.dossier-hero h2 { font-family: var(--font-display); font-size: clamp(26px, 5vw, 34px); font-weight: 600; line-height: 1.1; }
.tier { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.price { font-size: 26px; font-weight: 600; color: var(--gold); }
.listed { display: flex; align-items: center; gap: 6px; padding-top: var(--s2); border-top: 1px solid var(--line); }
.listed svg { width: 14px; height: 14px; color: var(--gold); flex: none; }
@media (min-width: 560px) { .dossier-hero { grid-template-columns: 5fr 7fr; align-items: center; } }

.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s2); }
.specs > div { padding: var(--s3); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.specs dt { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin-top: 2px; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
@media (min-width: 560px) { .specs { grid-template-columns: repeat(3, 1fr); } }

.matrix { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s2); }
.matrix li { display: flex; align-items: center; gap: var(--s2); min-height: 44px; padding: var(--s2) var(--s3); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-size: 12px; color: var(--muted); }
.matrix li.on { color: var(--text); border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.matrix__icon { flex: none; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; font-size: 11px; background: var(--surface-2); }
.matrix li.on .matrix__icon { background: var(--ok); color: var(--bg); font-weight: 700; }
@media (min-width: 560px) { .matrix { grid-template-columns: repeat(4, 1fr); } .matrix li { flex-direction: column; text-align: center; justify-content: center; } }
.chips-static { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.chips-static li { padding: 3px 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); font-size: 11px; color: var(--muted); }
.notes { margin-top: var(--s4); font-family: var(--font-display); font-size: 19px; line-height: 1.45; color: var(--text); }

.admin-tools { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s4); border: 1px dashed color-mix(in srgb, var(--hold) 60%, transparent); border-radius: var(--radius); }
.admin-tools .section-title { color: var(--hold); margin-bottom: 0; }
.admin-tools__row { display: flex; flex-wrap: wrap; gap: var(--s2); }
.admin-tools__link { display: flex; gap: var(--s2); }
.admin-tools__link input { flex: 1; min-width: 0; min-height: 44px; padding: 0 var(--s3); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); font-size: 13px; }
.admin-tools__link input::placeholder { color: var(--muted); opacity: 0.7; }
.admin-tools__link input:focus { border-color: var(--gold); outline: none; }
.admin-tools__link .btn { flex-shrink: 0; }

/* Handoff */
.handoff { padding: var(--s4); border: 1px solid color-mix(in srgb, var(--gold) 50%, var(--line)); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.handoff__title { font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1.15; }
.handoff__intro { margin: var(--s2) 0 var(--s4); padding-bottom: var(--s4); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }

/* Forms */
.form { display: flex; flex-direction: column; gap: var(--s4); }
.form__grid { display: grid; gap: var(--s4); }
@media (min-width: 560px) { .form__grid { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field > legend { padding: 0; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field input[type="text"], .field input[type="password"], .field select { width: 100%; min-height: 46px; padding: 0 var(--s3); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); font-size: 13px; }
.field select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%238a8a90' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field input::placeholder { color: var(--muted); opacity: 0.7; }
.field input:focus, .field select:focus { border-color: var(--gold); outline: none; }
.channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
.channels legend { grid-column: 1 / -1; margin-bottom: 6px; }
.channel { position: relative; display: block; cursor: pointer; }
.channel input { position: absolute; opacity: 0; inset: 0; }
.channel span { display: grid; place-items: center; min-height: 46px; padding: var(--s2); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); color: var(--muted); font-size: 11px; text-align: center; letter-spacing: 0.04em; transition: all 0.2s; }
.channel input:checked + span { border-color: var(--gold); color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, transparent); font-weight: 600; }
.channel input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.result { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s4); border: 1px solid color-mix(in srgb, var(--ok) 50%, transparent); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--ok) 6%, var(--bg)); }
.result__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding-bottom: var(--s2); border-bottom: 1px solid var(--line); }
.result__title { display: inline-flex; align-items: center; gap: var(--s2); color: var(--ok); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.result__title svg { width: 18px; height: 18px; }
.result__hint { font-size: 12px; color: var(--muted); }
.packet { margin: 0; padding: var(--s3); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); font-family: var(--font-mono); font-size: 11px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.result__actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.result__actions .btn { flex: 1 1 160px; }

/* Sell modal */
.modal { width: min(560px, 100%); max-height: 92vh; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); box-shadow: var(--shadow); overflow: hidden; animation: pop 0.25s cubic-bezier(0.16, 1, 0.3, 1); outline: none; }
@keyframes pop { from { transform: scale(0.96) translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal__bar { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); padding: var(--s4); background: var(--surface); border-bottom: 1px solid var(--line); }
.modal__bar h2 { font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1.1; margin-top: 2px; }
.modal__body { padding: var(--s4); overflow-y: auto; }
.modal--sm { width: min(400px, 100%); }
.modal--sm .modal__bar h2 { font-size: 26px; }
.check { display: flex; align-items: center; gap: var(--s2); min-height: 44px; font-size: 12px; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--gold); flex-shrink: 0; }
.login-error { min-height: 1.4em; margin: 0; font-size: 12px; color: var(--hold); }
.dropzone { display: flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 52px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--muted); font-size: 12px; cursor: pointer; transition: all 0.2s; }
.dropzone:hover { border-color: var(--gold); color: var(--text); }
.dropzone svg { width: 18px; height: 18px; color: var(--gold); }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
.thumbs:empty { display: none; }
.thumb { position: relative; aspect-ratio: 1 / 1; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.7); color: #fff; font-size: 16px; line-height: 1; }

.toast { position: fixed; left: 50%; bottom: var(--s5); z-index: 80; transform: translateX(-50%); max-width: calc(100% - 32px); padding: var(--s3) var(--s4); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-2); box-shadow: var(--shadow); font-size: 12px; }

@media (min-width: 640px) {
  .wrap { padding: 0 var(--s5); }
  .strip__desk { display: inline; }
  .brand { flex: 0 1 auto; }
  .filters__inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .filters__right { flex-wrap: nowrap; }
  .search { flex: 0 0 240px; }
  .hero__inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .hero__stats { border-top: 0; padding-top: 0; padding-left: var(--s5); border-left: 1px solid var(--line); flex: none; }
  .foot__inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (min-width: 900px) {
  .top { position: sticky; top: 0; }
  .drawer__body { padding: var(--s5) var(--s5) var(--s6); }
}

/* Watch illustration motion */
.second-hand-sweep { transform-origin: 100px 100px; animation: sweep 60s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }

/* Admin editor + live database status */
:root { --danger: #f87171; }
[data-theme="archive"] { --danger: #b42318; }
.field textarea { width: 100%; min-height: 84px; padding: var(--s3); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); font: inherit; font-size: 13px; line-height: 1.5; resize: vertical; }
.field textarea::placeholder { color: var(--muted); opacity: 0.7; }
.field textarea:focus { border-color: var(--gold); outline: none; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s3); }
.btn--danger { border-color: color-mix(in srgb, var(--danger) 55%, transparent); background: transparent; color: var(--danger); }
.btn--danger:hover { background: color-mix(in srgb, var(--danger) 12%, transparent); }
.editor-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.editor-actions .btn--danger { margin-left: auto; }
.admin-banner__db { font-size: 12px; color: var(--muted); }
.admin-banner__db.is-live { color: var(--ok); }
.admin-banner__db.is-warn { color: var(--hold); }
.editor-photo { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.editor-photo__row { display: flex; align-items: center; gap: var(--s3); }
.editor-photo__preview { display: flex; align-items: center; justify-content: center; flex: 0 0 96px; width: 96px; height: 96px; padding: var(--s2); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; text-align: center; }
.editor-photo__preview img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.editor-photo__preview .mono-note { font-size: 10px; line-height: 1.3; }
.editor-photo__actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.field input[type="datetime-local"] { width: 100%; min-height: 46px; padding: 0 var(--s3); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); font: inherit; font-size: 13px; }
.field input[type="datetime-local"]:focus { border-color: var(--gold); outline: none; }
.field > .field__note { text-transform: none; letter-spacing: 0.02em; font-size: 11px; }
.select-filter { display: inline-flex; flex: 0 1 190px; min-width: 150px; }
.select-filter select { appearance: none; width: 100%; min-height: 44px; padding: 0 36px 0 var(--s3); border: 1px solid var(--line); border-radius: var(--radius-sm); background-color: var(--bg); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%238a8a90' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; color: var(--text); font-family: inherit; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; }
.select-filter select:focus { border-color: var(--gold); outline: none; }
.kind-tag { position: absolute; left: var(--s3); bottom: var(--s3); padding: 2px var(--s2); border: 1px solid var(--line-strong); border-radius: 6px; background: color-mix(in srgb, var(--bg) 85%, transparent); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.kind-tag--normal { color: var(--muted); border-color: var(--line); }
.field.look { gap: var(--s3); padding: var(--s4); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.field.look > legend { padding: 0 var(--s2); }
.look__presets { display: flex; flex-wrap: wrap; gap: var(--s2); }
.look__preset { min-height: 36px; padding: 0 var(--s3); border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; transition: all 0.2s; }
.look__preset:hover { color: var(--text); border-color: var(--gold); }
.look__preset:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.look__body { display: grid; gap: var(--s4); }
@media (min-width: 560px) { .look__body { grid-template-columns: 170px 1fr; align-items: start; } }
.look__preview { display: grid; place-items: center; width: 100%; max-width: 200px; aspect-ratio: 1 / 1; margin-inline: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--art-bg); overflow: hidden; }
.look__preview .watch-art { width: 82%; height: auto; filter: var(--art-shadow); }
.look__fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.look__colors { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s2); }
@media (min-width: 560px) { .look__colors { grid-template-columns: repeat(4, 1fr); } }
.swatch { display: flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s2); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.swatch:focus-within { border-color: var(--gold); }
.swatch input { appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 28px; height: 28px; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: none; cursor: pointer; }
.swatch input::-webkit-color-swatch-wrapper { padding: 0; }
.swatch input::-webkit-color-swatch { border: 0; border-radius: 50%; }
.swatch input::-moz-color-swatch { border: 0; border-radius: 50%; }
#loadingState { border-style: solid; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
