/* Chasing Hits: "Arcade glow".
   Near-black stage, one orange accent sampled from the logo (#FA9A04).
   Glow is decoration only: every text and control passes contrast without it.
   Contrast is checked by tests/unit/contrast.test.js. */

:root {
  /* colour */
  --bg: #0a0a0a;
  --bg-warm: #1a1206;          /* the faint warm end of the page gradient */
  --surface: #17140f;
  --surface-2: #211c14;
  --text: #f5f1ea;
  --text-muted: #b8afa2;
  --accent: #FA9A04;           /* sampled from Chasing Hits Logo.png */
  --accent-ink: #0a0a0a;       /* text on an accent fill */
  --error: #ff9f94;
  --line: #6b5a3e;             /* decorative hairlines only */
  --line-strong: #8a7653;      /* control borders, 3:1 or better */
  --glow: 0 0 0 1px rgba(250, 154, 4, 0.35), 0 0 18px rgba(250, 154, 4, 0.28);
  --glow-strong: 0 0 0 1px rgba(250, 154, 4, 0.6), 0 0 26px rgba(250, 154, 4, 0.45);

  /* spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 32px;
  --space-5: 64px;

  /* radii */
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-pill: 999px;

  --tap: 44px;                 /* minimum tap target */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Trebuchet MS", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;             /* 16px */
  line-height: 1.5;
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(120% 60% at 50% 0%, var(--bg-warm) 0%, var(--bg) 70%);
  background-repeat: no-repeat;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 var(--space-2);
}
h1 { font-size: 1.75rem; }
h2 { font-size: 1.375rem; }
h3 { font-size: 1.125rem; }
p { margin: 0 0 var(--space-3); }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -100px;
  z-index: 10;
  padding: var(--space-2) var(--space-3);
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius-s);
}
.skip-link:focus { top: var(--space-2); }

/* ---------------------------------------------------------------- layout */

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

main { padding: var(--space-4) 0 var(--space-5); }

.stack > * + * { margin-top: var(--space-3); }

.grid-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

/* ---------------------------------------------------------------- header + nav */

.site-header {
  background: rgba(10, 10, 10, 0.92);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-3);
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
}
.brand img { display: block; height: 48px; width: auto; }

.nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a,
.nav .nav-text,
.nav button {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 var(--space-2);
  color: var(--text);
  font: inherit;
  text-decoration: none;
  border-radius: var(--radius-s);
}
.nav a:hover,
.nav button:hover { color: var(--accent); }
.nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: 6px; }
.nav .nav-text { color: var(--text-muted); }
.nav button { background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.nav .nav-cta {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  padding: 0 var(--space-3);
  border-radius: var(--radius-pill);
}
.nav a.nav-cta:hover { color: var(--accent-ink); box-shadow: var(--glow); }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0 var(--space-3);
  font: inherit;
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--accent);
  border: 2px solid var(--accent);
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--glow);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.btn:hover { box-shadow: var(--glow-strong); }
.btn:active { transform: translateY(1px); }
.btn[disabled],
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  color: var(--text-muted);
  background: var(--surface-2);
  border-color: var(--line-strong);
  box-shadow: none;
}
.btn[hidden] { display: none; }
.btn-block { display: flex; width: 100%; }
.btn-ghost {
  color: var(--accent);
  background: transparent;
  box-shadow: none;
}
.btn-ghost:hover { box-shadow: var(--glow); }

/* ---------------------------------------------------------------- forms */

.field { display: block; margin: 0 0 var(--space-3); }
.field label,
.field .label {
  display: block;
  margin-bottom: var(--space-1);
  font-weight: 600;
}
.field .hint {
  display: block;
  margin-top: var(--space-1);
  font-size: 0.875rem;         /* hint only; body text stays 16px */
  color: var(--text-muted);
}

.input {
  display: block;
  width: 100%;
  min-height: var(--tap);
  padding: 10px var(--space-3);
  font: inherit;               /* 16px, so iOS does not zoom on focus */
  color: var(--text);
  background: var(--surface-2);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-s);
}
.input::placeholder { color: #9a9184; opacity: 1; }
.input:focus { outline: 3px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.input[aria-invalid="true"] { border-color: var(--error); }

/* ---------------------------------------------------------------- panels, tiles, notices */

.panel {
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}

.card-tile {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-2);
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius-m);
  box-shadow: var(--glow);
}
.card-tile img { display: block; width: 100%; aspect-ratio: 5 / 7; object-fit: cover; border-radius: var(--radius-s); background: var(--surface-2); color: transparent; }
.card-tile .tile-name { font-weight: 700; }
.card-tile .tile-meta { color: var(--text-muted); }
.card-tile .tile-price { font-weight: 800; color: var(--accent); }

.notice {
  padding: var(--space-3);
  margin: 0 0 var(--space-3);
  background: var(--surface-2);
  border: 2px solid var(--accent);
  border-radius: var(--radius-m);
}
.notice-error { border-color: var(--error); color: var(--error); }
.notice strong { display: block; font-family: var(--font-display); font-size: 1.125rem; }
.notice[hidden] { display: none; }

.price-note { color: var(--text-muted); font-style: italic; }

.site-footer {
  padding: var(--space-3) 0 var(--space-4);
  color: var(--text-muted);
  border-top: 1px solid var(--line);
}

@media (min-width: 640px) {
  .grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  h1 { font-size: 2.25rem; }
}

@media (min-width: 900px) {
  .grid-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.hint-line { color: var(--text-muted); margin: 0 0 var(--space-3); }
.site-footer a { display: inline-flex; align-items: center; min-height: var(--tap); }

/* ---------------------------------------------------------------- owner pages */

.admin-nav { border-bottom: 1px solid var(--line); margin-bottom: var(--space-3); }

.field select.input { appearance: auto; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.field .field-error { display: block; margin-top: var(--space-1); color: var(--error); }
.field .field-error[hidden] { display: none; }

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  min-height: 120px;
  padding: var(--space-3);
  text-align: center;
  cursor: pointer;
  background: var(--surface-2);
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius-m);
}
.dropzone:hover,
.dropzone.is-over,
.dropzone:focus-within { border-color: var(--accent); box-shadow: var(--glow); }
.dropzone.is-disabled { cursor: not-allowed; opacity: 0.6; border-color: var(--line-strong); box-shadow: none; }
.dropzone .hint { color: var(--text-muted); font-weight: 400; }

.thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
}
.thumbs:empty { display: none; }
.thumb {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-1);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
}
.thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 7;
  object-fit: cover;
  border-radius: var(--radius-s);
  background: var(--surface-2);
  cursor: grab;
  touch-action: none;           /* a finger drags the thumbnail instead of scrolling the page */
  user-select: none;
  -webkit-user-drag: none;
}
.thumb.is-dragging { z-index: 5; opacity: 0.85; box-shadow: var(--glow-strong); }
.thumb.drop-before { box-shadow: -6px 0 0 0 var(--accent); }
.thumb.drop-after { box-shadow: 6px 0 0 0 var(--accent); }
.thumb .cover-badge {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  padding: 2px var(--space-2);
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: var(--radius-pill);
}
.thumb-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.btn-small { padding: 0 var(--space-2); box-shadow: none; }
.btn-danger { color: var(--error); border-color: var(--error); background: transparent; box-shadow: none; }

.admin-list { margin: var(--space-3) 0 0; padding: 0; list-style: none; display: grid; gap: var(--space-2); }
.admin-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--space-2) var(--space-3);
  align-items: start;
  padding: var(--space-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}
.admin-row img { display: block; width: 64px; aspect-ratio: 5 / 7; object-fit: cover; border-radius: var(--radius-s); background: var(--surface-2); }
.admin-row .no-photo { width: 64px; aspect-ratio: 5 / 7; border: 1px dashed var(--line-strong); border-radius: var(--radius-s); background: var(--surface-2); }
.admin-row .row-name { font-weight: 700; }
.admin-row .row-meta { color: var(--text-muted); }
.admin-row .row-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--space-2); }

@media (min-width: 640px) {
  .thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .admin-row { grid-template-columns: 64px 1fr auto; align-items: center; }
  .admin-row .row-actions { grid-column: auto; }
}

/* ---------------------------------------------------------------- products page */

.search-form { margin: 0 0 var(--space-3); }

.tabs { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0 0 var(--space-3); }
.tab {
  min-height: var(--tap);
  padding: 0 var(--space-3);
  font: inherit;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-2);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.tab:hover { border-color: var(--accent); }
.tab[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); box-shadow: var(--glow); }

.grid-cards { margin: 0; padding: 0; list-style: none; }
.grid-cards[aria-busy="true"] { opacity: 0.6; }

.card-tile { padding: var(--space-2); }
.tile-open {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  width: 100%;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  background: none;
  border: 0;
  border-radius: var(--radius-s);
  cursor: pointer;
}
.photo-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 5 / 7;
  padding: var(--space-2);
  text-align: center;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-s);
}
.tile-actions { margin-top: auto; padding-top: var(--space-1); }
.tile-actions .btn { width: 100%; text-align: center; line-height: 1.2; padding-top: 6px; padding-bottom: 6px; }
.sold-out { margin: 0; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }

.toast {
  position: sticky;
  bottom: var(--space-3);
  margin: 0;
  padding: var(--space-2) var(--space-3);
  color: var(--text);
  background: var(--surface-2);
  border: 2px solid var(--accent);
  border-radius: var(--radius-m);
  box-shadow: var(--glow);
}
.toast[hidden] { display: none; }

.gallery {
  width: calc(100% - 24px);
  max-width: 520px;
  max-height: 94vh;
  padding: var(--space-3);
  overflow: auto;
  color: var(--text);
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: var(--radius-m);
  box-shadow: var(--glow-strong);
}
.gallery::backdrop { background: rgba(0, 0, 0, 0.82); }
.gallery-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-2); }
.gallery-head h2 { margin: 0; }
.gallery-head .tile-meta { margin: 0; color: var(--text-muted); }
.gallery-stage { margin: var(--space-2) 0; aspect-ratio: 5 / 7; max-height: 58vh; margin-inline: auto; touch-action: pan-y; }
.gallery-stage img, .gallery-stage .photo-ph { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--surface-2); border-radius: var(--radius-s); }
.gallery-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.gallery-buy { margin-top: var(--space-2); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.gallery-buy .tile-price { font-size: 1.25rem; }
.gallery .toast { position: static; margin-top: var(--space-2); }

.more-wrap { margin-top: var(--space-3); }
.more-wrap[hidden] { display: none; }

/* ---------------------------------------------------------------- cart and checkout */

textarea.input { min-height: 96px; resize: vertical; }
.field input[type="file"].input { padding: 8px var(--space-3); }
.field-error { color: var(--error); }

.cart-lines { margin: 0 0 var(--space-3); padding: 0; list-style: none; display: grid; gap: var(--space-2); }
.cart-line {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: var(--space-2) var(--space-3);
  align-items: center;
  padding: var(--space-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}
.line-photo { display: block; width: 60px; aspect-ratio: 5 / 7; object-fit: cover; border-radius: var(--radius-s); background: var(--surface-2); }
.line-photo.photo-ph { font-size: 0.75rem; padding: 2px; overflow: hidden; }
.line-info { display: flex; flex-direction: column; min-width: 0; }
.line-name { font-weight: 700; }
.line-meta { color: var(--text-muted); }
.stepper { display: inline-flex; align-items: center; gap: var(--space-2); }
.btn-step { width: var(--tap); padding: 0; font-size: 1.25rem; box-shadow: none; }
.step-qty { min-width: 2ch; text-align: center; font-weight: 700; }
.line-total { font-weight: 800; color: var(--accent); justify-self: end; }
.cart-line .btn-small { justify-self: start; }
.cart-line > .stepper { grid-column: 1 / -1; }

.summary-lines { margin: 0 0 var(--space-2); padding: 0; list-style: none; }
.summary-item,
.summary-row { display: flex; justify-content: space-between; gap: var(--space-3); margin: 0 0 var(--space-2); }
.summary-total { padding-top: var(--space-2); border-top: 1px solid var(--line); font-size: 1.25rem; font-weight: 800; }
.summary-total strong { color: var(--accent); }
.cart-summary .summary-row { font-size: 1.125rem; }

/* One QR per row on a phone, at the full card width, so each is big enough to scan from another device. */
.qr-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
@media (min-width: 900px) {
  .qr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
}
.qr { margin: 0; text-align: center; }
.qr img { display: block; width: 100%; height: auto; background: #fff; border-radius: var(--radius-s); }
.qr figcaption { margin-bottom: var(--space-1); font-weight: 700; font-size: 1.125rem; }

.shot-preview { display: block; max-width: 100%; max-height: 280px; margin-top: var(--space-2); object-fit: contain; border: 1px solid var(--line-strong); border-radius: var(--radius-s); background: var(--surface-2); }
.shot-preview[hidden] { display: none; }

.order-no {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-shadow: 0 0 18px rgba(250, 154, 4, 0.45);
}
.order-no[hidden],
#done-keep[hidden] { display: none; }

#checkout > * + * { margin-top: var(--space-3); }
#gone .btn { margin-top: var(--space-2); }
#expired .btn { margin-top: var(--space-2); }
#status .btn { margin-top: var(--space-2); }
.summary-row[hidden] { display: none; }
.qr .btn { margin-top: var(--space-1); }

/* ---------------------------------------------------------------- order status page */

#order-no { text-transform: uppercase; }
#order-no::placeholder { text-transform: none; }
#outcome > * + * { margin-top: var(--space-3); }
#outcome .notice { margin-bottom: 0; }
#outcome [hidden] { display: none; }

.result-no {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-shadow: 0 0 18px rgba(250, 154, 4, 0.45);
}
.status-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  font-weight: 800;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: var(--radius-pill);
  box-shadow: var(--glow);
}

.steps { margin: 0 0 var(--space-3); padding: 0; list-style: none; display: grid; gap: var(--space-2); }
.step {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--tap);
  padding: var(--space-1) var(--space-3);
  color: var(--text-muted);
  background: var(--surface-2);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-s);
}
/* A shape in front of each step, so the state never rests on colour alone. */
.step::before { content: "\25CB"; font-size: 1.25rem; line-height: 1; }
.step-done { color: var(--text); }
.step-done::before { content: "\2713"; color: var(--accent); font-weight: 800; }
.step-current {
  color: var(--text);
  font-weight: 800;
  border-color: var(--accent);
  box-shadow: var(--glow);
}
.step-current::before { content: "\25CF"; color: var(--accent); }

.item-list { margin: 0; padding-left: var(--space-4); }
.item-list li { margin: 0 0 var(--space-1); }
#items-wrap { margin-top: var(--space-3); }

/* ---------------------------------------------------------------- owner: buyers and orders */

.toast-error { color: var(--error); border-color: var(--error); box-shadow: none; }
.toast[role="alert"] { margin-top: var(--space-2); }
/* The message boxes stay in the page (so screen readers announce the first
   message) and take no room while they are empty. */
.toast:empty,
#reset-ok:empty { margin: 0; padding: 0; border-width: 0; box-shadow: none; min-height: 0; }

.owner-section { margin: 0 0 var(--space-4); }
.owner-section h2:focus { outline: 3px solid var(--accent); outline-offset: 3px; }

.buyer-list,
.order-list { margin: var(--space-2) 0 0; padding: 0; list-style: none; display: grid; gap: var(--space-2); }

.buyer-row,
.order-row {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}
.buyer-row .row-name,
.order-row .row-name { font-weight: 700; }
.buyer-row .row-meta,
.order-row .row-meta { margin: 0; color: var(--text-muted); }
.buyer-row .row-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }

.discount-field { display: grid; gap: var(--space-1); max-width: 14rem; }
.discount-field label { font-weight: 600; }
.discount-field .input { max-width: 8rem; }
.row-note { margin: 0; min-height: 1.5rem; color: var(--text-muted); }
.row-note.is-error { color: var(--error); }
.row-note.is-ok { color: var(--text); font-weight: 600; }

.order-row.needs-refund { border: 2px solid var(--error); }
.order-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); }
.order-no-text { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; letter-spacing: 0.04em; color: var(--accent); }
.refund-badge {
  display: inline-block;
  padding: 2px var(--space-2);
  font-weight: 800;
  color: var(--error);
  border: 2px solid var(--error);
  border-radius: var(--radius-pill);
}
.refund-badge[hidden] { display: none; }
.order-controls { display: grid; gap: var(--space-2); }
.order-controls .field { margin: 0; }
.order-controls select.input { appearance: auto; }
.order-details { display: grid; gap: var(--space-3); padding-top: var(--space-2); border-top: 1px solid var(--line); }
.order-details[hidden] { display: none; }
.order-details h3 { margin: 0 0 var(--space-1); }
.order-details ul { margin: 0; padding-left: var(--space-4); }
.order-details li { margin: 0 0 var(--space-1); }
.order-address { margin: 0; white-space: pre-line; }
.item-flag { color: var(--error); font-weight: 700; }
.shot-box { min-height: 3rem; }
.order-shot { display: block; max-width: 100%; max-height: 420px; object-fit: contain; border: 1px solid var(--line-strong); border-radius: var(--radius-s); background: var(--surface-2); }

@media (min-width: 640px) {
  .order-controls { grid-template-columns: minmax(0, 18rem) auto; align-items: end; justify-content: start; }
}

.owner-dialog {
  width: calc(100% - 24px);
  max-width: 480px;
  padding: var(--space-3);
  color: var(--text);
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: var(--radius-m);
  box-shadow: var(--glow-strong);
}
.owner-dialog::backdrop { background: rgba(0, 0, 0, 0.82); }
.owner-dialog form > * + * { margin-top: var(--space-3); }
.owner-dialog .notice { margin: 0; }
