:root {
  --bg: #14171c; --panel: #1d2128; --panel2: #262b34; --line: #333a45;
  --text: #e8eaed; --muted: #9aa3ae; --accent: #f2b33d; --accent-ink: #1a1400;
  --good: #4cc38a; --warn: #f2b33d; --bad: #ef5d5d;
  --radius: 12px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
main { padding: 12px 16px 96px; max-width: 1200px; margin: 0 auto; }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: rgba(20,23,28,.95); border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; color: var(--text); letter-spacing: .3px; }
.stats { color: var(--muted); font-size: 13px; text-align: right; }
.stats b { color: var(--text); }

.tabs { position: fixed; bottom: 0; left: 0; right: 0; z-index: 5; display: flex; gap: 6px;
  padding: 8px 16px; padding-bottom: max(8px, env(safe-area-inset-bottom));
  background: rgba(20,23,28,.97); border-top: 1px solid var(--line); }
.tabs a { flex: 1; text-align: center; padding: 10px 0; font-size: 14px; white-space: nowrap; border-radius: 10px; color: var(--muted); font-weight: 600; }
.tabs a.active { color: var(--text); background: var(--panel2); }
.tabs a.primary { background: var(--accent); color: var(--accent-ink); }
.badge[hidden] { display: none; }
.badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--bad);
  color: #fff; font-size: 12px; line-height: 20px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 14px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); cursor: pointer; font-weight: 600; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.danger { color: var(--bad); }
.btn.small { padding: 6px 10px; font-size: 13px; }
.btn:disabled { opacity: .5; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

input[type=text], input[type=number], input[type=search], select, textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); }
textarea { min-height: 60px; resize: vertical; }
label.field { display: block; font-size: 12px; color: var(--muted); }
label.field > input, label.field > select, label.field > textarea { margin-top: 4px; font-size: 15px; color: var(--text); }
.field.uncertain > input { border-color: var(--warn); box-shadow: 0 0 0 1px var(--warn) inset; }

/* Browse */
.filters { display: grid; gap: 8px; margin-bottom: 12px; }
.filters .selects { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 6px 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel);
  cursor: pointer; font-size: 13px; user-select: none; }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.count { color: var(--muted); font-size: 13px; margin: 4px 0 10px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  color: var(--text); display: flex; flex-direction: column; }
.tile .img { aspect-ratio: 5/7; background: #000 center/contain no-repeat; }
.tile .img { position: relative; }
.star { width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff;
  font-size: 22px; line-height: 1; cursor: pointer; padding: 0; flex: none; }
.star.on { color: var(--accent); }
.tile .star { position: absolute; top: 6px; right: 6px; }
.star.inline { background: var(--panel2); }
.tile-wrap { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tile-wrap .tile { flex: 1; }
.tile-wrap { transition: opacity .15s, transform .15s; }
.tile-wrap.leaving { opacity: 0; transform: scale(.96); pointer-events: none; }
.tile-wrap .value { display: none; }
.quick { display: flex; gap: 6px; align-items: center; }
.quick-value { display: flex; align-items: center; gap: 3px; flex: 1; min-width: 0; color: var(--muted); font-size: 14px; }
.quick-value input { width: 100%; min-width: 0; padding: 6px; font-size: 16px; color: var(--text); background: var(--panel2);
  border: 1px solid var(--line); border-radius: 6px; }
.quick-value input.saved { border-color: var(--good); box-shadow: 0 0 0 1px var(--good) inset; }
.quick .btn { flex: none; white-space: nowrap; }
.quick-reviewed { display: flex; align-items: center; gap: 6px; min-height: 32px; color: var(--muted); font-size: 13px; cursor: pointer; }
.quick-reviewed input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.quick-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.cropper { position: fixed; inset: 0; z-index: 8; display: flex; flex-direction: column; background: var(--bg); }
.crop-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; min-height: 48px; }
.crop-top b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crop-sides { display: flex; gap: 6px; flex: none; }
.crop-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; margin: 0 12px; }
.crop-frame { position: relative; touch-action: none; user-select: none; -webkit-user-select: none; }
.crop-frame img { display: block; width: 100%; height: 100%; pointer-events: none; }
.crop-frame svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.crop-shade { fill: rgba(0, 0, 0, .55); }
.crop-box { fill: transparent; stroke: var(--accent); stroke-width: 2px; vector-effect: non-scaling-stroke; pointer-events: all; cursor: move; }
.crop-handle { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; display: flex; align-items: center; justify-content: center; cursor: grab; }
.crop-handle i { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); border: 2px solid #000; }
.crop-loupe { position: absolute; width: 120px; height: 120px; border-radius: 50%; border: 2px solid var(--accent); background-repeat: no-repeat; background-color: #000; pointer-events: none; }
.crop-loupe[hidden] { display: none; }
.crop-loupe::before, .crop-loupe::after { content: ""; position: absolute; background: var(--accent); }
.crop-loupe::before { left: 50%; top: 40%; bottom: 40%; width: 1px; }
.crop-loupe::after { top: 50%; left: 40%; right: 40%; height: 1px; }
.crop-help { padding: 6px 12px; color: var(--muted); font-size: 13px; text-align: center; }
.crop-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
.crop-bar .btn { padding-left: 4px; padding-right: 4px; white-space: nowrap; }
.tile .meta { padding: 8px 10px; font-size: 13px; }
.tile .name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .sub { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .flags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.flag { font-size: 11px; padding: 1px 6px; border-radius: 6px; background: var(--panel2); color: var(--muted); }
.flag.rc { background: #3b2f12; color: var(--accent); }
.flag.status-review, .flag.status-error { background: #3d1e1e; color: var(--bad); }
.flag.status-pending, .flag.status-processing { background: #1e2f3d; color: #7cc0f2; }
.value { color: var(--good); font-weight: 600; }

/* Capture */
.capture { max-width: 520px; margin: 0 auto; display: grid; gap: 12px; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.shot { position: relative; aspect-ratio: 5/7; border: 2px dashed var(--line); border-radius: var(--radius);
  background: var(--panel) center/cover no-repeat; display: flex; align-items: center; justify-content: center;
  flex-direction: column; color: var(--muted); font-weight: 600; cursor: pointer; overflow: hidden; }
.shot.filled { border-style: solid; border-color: var(--good); color: transparent; }
.shot.next { border-color: var(--accent); color: var(--accent); }
.shot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.shot .big { font-size: 32px; }
.session { color: var(--muted); font-size: 13px; text-align: center; }
details.opts { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
details.opts summary { cursor: pointer; color: var(--muted); }
details.more summary { cursor: pointer; color: var(--muted); font-size: 13px; padding: 2px 0; }
details.more .selects { margin-top: 8px; }
details.opts .body { display: grid; gap: 8px; margin-top: 10px; }

/* Card detail */
.detail { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .detail { grid-template-columns: 420px minmax(0, 1fr); } }
.viewer img { width: 100%; max-height: 70vh; object-fit: contain; border-radius: 10px; background: #000; display: block; cursor: zoom-in; }
.viewer .flip { margin-top: 8px; }
.btn.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.title { font-size: 24px; line-height: 1.2; margin: 0; }
.subtitle { color: var(--muted); margin-top: 4px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.facts dt { font-size: 12px; color: var(--muted); }
.facts dd { margin: 2px 0 0; }
.facts .wide { grid-column: 1 / -1; }
.detail .flag { font-size: 12px; padding: 2px 8px; }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
.photos figure { margin: 0; }
.photos img { width: 100%; border-radius: 8px; background: #000; display: block; }
.photos figcaption { display: flex; justify-content: space-between; align-items: center; font-size: 12px;
  color: var(--muted); margin-top: 4px; }
.form { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form .full { grid-column: 1 / -1; }
.checks { display: flex; flex-wrap: wrap; gap: 6px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.notice { padding: 10px 12px; border-radius: 10px; background: var(--panel2); font-size: 14px; }
.notice.warn { background: #3b2f12; color: #f6d38a; }
.notice.bad { background: #3d1e1e; color: #f6a5a5; }
.links { display: flex; gap: 8px; flex-wrap: wrap; }
.muted { color: var(--muted); }
h2 { font-size: 18px; margin: 4px 0 12px; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 10;
  background: var(--panel2); border: 1px solid var(--line); padding: 10px 16px; border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,.4); max-width: calc(100% - 32px); }
.toast.bad { border-color: var(--bad); color: #f6a5a5; }

.zoom { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.92); display: flex; align-items: center;
  justify-content: center; padding: 16px; }
.zoom img { max-width: 100%; max-height: 100%; }

/* Showcase */
.sc-hero { position: relative; overflow: hidden; border-radius: 18px; padding: 22px 20px; margin-bottom: 8px;
  background: radial-gradient(120% 140% at 0% 0%, #3a2c0e 0%, #1d2128 55%), var(--panel);
  border: 1px solid #4a3a16; }
.sc-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(242,179,61,.10) 50%, transparent 65%); }
.sc-hero-label { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.sc-hero-big { font-size: 44px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; margin: 6px 0 14px; }
.sc-hero p, .sc-hint { color: var(--muted); font-size: 13px; margin: 12px 0 0; }
.sc-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; }
.sc-stat { background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 6px 10px; }
.sc-stat b { display: block; font-size: 18px; }
.sc-stat span { color: var(--muted); font-size: 11px; }

.sc-section { margin-top: 26px; }
.sc-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.sc-head h2 { margin: 0; font-size: 20px; }
.sc-head .muted { font-size: 13px; }

.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 46%); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 10px; margin: 0 -16px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.shelf::-webkit-scrollbar { display: none; }
@media (min-width: 700px) { .shelf { grid-auto-columns: 210px; } }
.showcard { scroll-snap-align: start; color: var(--text); display: block; }
.showcard .art { position: relative; aspect-ratio: 5 / 7; border-radius: 12px; overflow: hidden; background: #000;
  box-shadow: 0 10px 24px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06), 0 -3px 0 0 var(--team) inset;
  transition: transform .2s ease; }
.showcard .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.showcard .art::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.22) 45%, rgba(160,220,255,.12) 50%, transparent 62%);
  background-size: 300% 100%; animation: sheen 7s ease-in-out infinite; }
.showcard:active .art, .showcard:hover .art { transform: translateY(-3px) scale(1.02); }
@keyframes sheen { 0%, 60% { background-position: 120% 0; } 100% { background-position: -60% 0; } }
@media (prefers-reduced-motion: reduce) { .showcard .art::after { animation: none; } }
.showcard .rank { position: absolute; top: 8px; left: 8px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 2px 8px rgba(0,0,0,.5); }
.showcard .price { position: absolute; right: 8px; bottom: 10px; padding: 3px 9px; border-radius: 8px; font-weight: 700;
  background: rgba(10,12,15,.85); color: var(--good); font-size: 14px; }
.showcard .cap { padding: 8px 2px 0; }
.showcard .who { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.showcard .what { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.showcard .flags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 5px; }
.flag.hit { background: #14342a; color: var(--good); }

.teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.team { position: relative; overflow: hidden; text-align: left; border: 0; border-radius: 16px; padding: 14px; min-height: 170px;
  cursor: pointer; color: #fff; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(150deg, var(--a) 0%, color-mix(in srgb, var(--a) 55%, #000) 60%, color-mix(in srgb, var(--b) 45%, #000) 100%); }
.team::before { content: ""; position: absolute; inset: auto -30% -40% auto; width: 80%; height: 60%; border-radius: 50%;
  background: var(--b); opacity: .25; filter: blur(20px); }
.team .fan { position: absolute; top: 12px; right: 10px; height: 92px; width: 110px; }
.team .fan img { position: absolute; top: 0; right: calc(30px + var(--i) * 26px); height: 88px; border-radius: 5px;
  transform: rotate(calc(var(--i) * 9deg)); transform-origin: bottom center; box-shadow: 0 4px 12px rgba(0,0,0,.5); }
.team-name { position: relative; font-weight: 800; font-size: 16px; line-height: 1.2; text-shadow: 0 1px 4px rgba(0,0,0,.5); max-width: 95%; }
.team-meta { position: relative; font-size: 12px; opacity: .85; margin-top: 3px; }

.sets { display: grid; gap: 8px; }
.set-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; text-align: left; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px 8px 8px; color: var(--text); }
.set-row img { width: 44px; height: 62px; object-fit: cover; border-radius: 5px; background: #000; }
.set-name { font-weight: 700; }
.set-row .muted { font-size: 12px; }
.chip b { color: var(--accent); margin-left: 4px; }

/* Bulk add */
.bulk-link { text-align: center; }
.bulk-steps { margin: 0; padding-left: 20px; font-size: 14px; display: grid; gap: 4px; }
.btn.pick { position: relative; text-align: center; overflow: hidden; }
.btn.pick input { position: absolute; inset: 0; opacity: 0; }
.bulk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.bulk-pair { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 10px; padding: 6px; padding-top: 22px; }
.bulk-pair .n { position: absolute; top: 4px; left: 8px; font-size: 12px; color: var(--muted); font-weight: 600; }
.bulk-pair .swap { position: absolute; top: 2px; right: 4px; padding: 0 8px; font-size: 13px; }
.bulk-shot { aspect-ratio: 3/4; border: 0; border-radius: 6px; padding: 0; background: #000 center/cover no-repeat;
  display: flex; align-items: flex-end; justify-content: center; cursor: pointer; }
.bulk-shot span { font-size: 10px; background: rgba(0,0,0,.6); color: #fff; padding: 1px 6px; border-radius: 4px; margin-bottom: 3px; }
.bulk-shot.empty { background: var(--panel2); align-items: center; cursor: default; }

/* scan check */
.scan-alert { display: block; color: var(--text); margin-bottom: 12px; }
.scan-list { display: flex; flex-direction: column; gap: 8px; }
.scan-row { display: flex; align-items: center; gap: 12px; padding: 8px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--text); }
.scan-row img, .scan-row .noimg { width: 48px; aspect-ratio: 8.5/11; object-fit: cover; border-radius: 4px; background: #000; flex: none; }
.scan-row .noimg { font-size: 10px; color: var(--muted); display: grid; place-items: center; text-align: center; }
.scan-row > div { flex: 1; min-width: 0; font-size: 14px; }
.flag.status-done { background: #17331f; color: var(--good); }
.scan-actions { flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.scan-help { flex-basis: 100%; color: var(--accent); font-size: 14px; }
.scan-panes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
@media (max-width: 700px) { .scan-panes { grid-template-columns: 1fr; } }
.scan-label { font-size: 12px; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .5px; }
.scan-box { position: relative; user-select: none; -webkit-user-select: none; line-height: 0; }
.scan-box img { width: 100%; border-radius: 6px; -webkit-touch-callout: none; }
.scan-box svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.scan-box polygon { fill: rgba(76,195,138,.12); stroke: var(--good); stroke-width: 2; vector-effect: non-scaling-stroke; }
.scan-box polygon.sel { fill: rgba(242,179,61,.2); stroke: var(--accent); stroke-width: 3; }
.scan-tag { position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff;
  background: var(--good); color: #062; font-weight: 700; font-size: 14px; line-height: 1; cursor: pointer; padding: 0; }
.scan-tag.sel { background: var(--accent); color: var(--accent-ink); }
.scan-draw { position: absolute; border: 2px dashed var(--accent); background: rgba(242,179,61,.18); pointer-events: none; }
.drawing-front .scan-box[data-side="front"], .drawing-back .scan-box[data-side="back"] { touch-action: none; cursor: crosshair;
  outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.drawing-front .scan-box[data-side="front"] .scan-tag, .drawing-back .scan-box[data-side="back"] .scan-tag { pointer-events: none; }

/* ---------- selling on eBay ---------- */
.tabs a[data-tab="sell"] { flex: .8; }
.flag.ebay-live { background: #1d3550; color: #9cc8ff; }
.flag.ebay-sold { background: var(--text); color: var(--bg); font-weight: 700; }
.grid.picking .tile { outline: 2px dashed var(--line); }
.grid.picking .tile.picked { outline: 3px solid var(--accent); }
.grid.picking .tile.picked .img::after { content: "✓ PICKED"; position: absolute; left: 6px; bottom: 6px; padding: 2px 8px;
  border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; }
.pick-bar { position: fixed; left: 0; right: 0; bottom: calc(62px + env(safe-area-inset-bottom)); z-index: 6;
  display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding: 8px 16px;
  background: var(--panel); border-top: 1px solid var(--line); }
.pick-bar span { margin-right: auto; }
.sell-section { margin: 18px 0; }
.sell-section h2 { font-size: 17px; margin: 0 0 6px; }
.sell-row { display: flex; gap: 12px; padding: 10px; margin-bottom: 8px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); }
.sell-thumb { flex: none; align-self: flex-start; width: 72px; aspect-ratio: 5/7; border-radius: 6px; background: #000 center/contain no-repeat; }
.sell-body { flex: 1; min-width: 0; display: grid; gap: 6px; align-content: start; }
.sell-body .name { font-weight: 600; overflow-wrap: anywhere; }
.sell-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
label.field.check { display: flex; flex-direction: row; align-items: center; gap: 8px; align-self: end; min-height: 40px; }
label.field.check > input { width: 20px; height: 20px; accent-color: var(--accent); }
.count-chars { font-size: 12px; font-weight: 400; }

/* ---------- log in, account, admin ---------- */
input[type=password], input[type=email] { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel); }
main.auth { display: grid; place-items: center; min-height: 100vh; padding: 16px; }
.auth-box { width: 100%; max-width: 380px; display: grid; gap: 12px; padding: 20px; }
.auth-brand { margin: 0; font-size: 28px; color: var(--accent); }
.auth-form { display: grid; gap: 12px; }
.auth-form p { margin: 0; }
.auth-link { font-size: 14px; justify-self: center; text-decoration: none; }
.auth-link:hover { text-decoration: underline; }
.notice a { color: inherit; }
.user-menu { color: var(--muted); font-size: 13px; margin-left: 12px; white-space: nowrap; }
.acct { display: grid; gap: 16px; max-width: 640px; }
.acct h2 { margin: 0 0 8px; font-size: 17px; }
.acct form { display: grid; gap: 10px; }
.qr svg { width: 200px; height: 200px; background: #fff; border-radius: 8px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { color: var(--muted); font-weight: 600; font-size: 12px; }
.table-wrap { overflow-x: auto; }
.copy-box { display: flex; gap: 8px; }
.copy-box input { flex: 1; min-width: 0; }
