/* Gäste- und Admin-Oberfläche. Setzt tokens.css voraus. */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--ivory);
  color: var(--ink);
  font: 300 16px/1.6 var(--sans);
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
body.noscroll { overflow: hidden; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
img, video { display: block; max-width: 100%; }
a { color: var(--gold-deep); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Weiches Licht und Papierkorn */
.backdrop {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vmax 50vmax at 85% -10%, rgba(236, 217, 209, .9), transparent 60%),
    radial-gradient(55vmax 45vmax at -10% 30%, rgba(239, 229, 216, .95), transparent 65%),
    radial-gradient(50vmax 40vmax at 110% 95%, rgba(216, 191, 143, .25), transparent 60%),
    var(--ivory);
}
.backdrop::after {
  content: ""; position: absolute; inset: 0; opacity: .3; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .45 0 0 0 0 .35 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.screen { width: min(100% - 32px, 1080px); margin-inline: auto; padding-bottom: env(safe-area-inset-bottom); }

/* --- Typografie & Schmuck ------------------------------------------------ */
.monogram {
  width: 64px; height: 64px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center; white-space: nowrap;
  border: 1px solid var(--gold-light); border-radius: 50%;
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px rgba(216, 191, 143, .55);
  font: italic 400 26px/1 var(--serif); color: var(--gold-deep); letter-spacing: -.02em;
}
.monogram span { color: var(--gold); margin: 0 1px; font-style: normal; font-weight: 500; font-size: .86em; }
.monogram-lg { width: 96px; height: 96px; font-size: 38px; }
.monogram-sm { width: 44px; height: 44px; font-size: 18px; margin-bottom: 8px; }
.names {
  margin: 0; font: italic 300 clamp(44px, 13vw, 84px)/1.02 var(--serif);
  letter-spacing: -.01em; color: var(--ink); text-align: center;
}
.names em { color: var(--gold); font-style: normal; font-weight: 500; font-size: .82em; margin: 0 .04em; }
.date { text-align: center; font: 400 13px/1 var(--sans); letter-spacing: .38em; color: var(--ink-soft); margin-top: 14px; padding-left: .38em; }
.eyebrow { text-align: center; font: 400 11px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 14px; padding-left: .32em; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 22px auto 0; width: min(260px, 70%); }
.ornament i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-light)); }
.ornament i:last-child { background: linear-gradient(90deg, var(--gold-light), transparent); }
.ornament b { width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg); }
.lead { color: var(--ink-soft); text-align: center; margin: 18px 0 0; }
h2 { font: italic 400 30px/1.15 var(--serif); margin: 0; color: var(--ink); }

/* --- Karten, Felder, Knöpfe ---------------------------------------------- */
.card {
  background: rgba(255, 253, 249, .86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.field { display: block; margin-top: 22px; text-align: left; }
.field span { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px 2px; }
.field input {
  width: 100%; height: 52px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--paper);
  font-size: 17px; font-weight: 400; outline: none; transition: border-color .2s, box-shadow .2s;
}
.field input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(216, 191, 143, .25); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 400; font-size: 16px; letter-spacing: .04em; text-decoration: none; cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .2s, background .2s;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: linear-gradient(180deg, #b8935b, var(--gold-deep)); color: #fffaf2; box-shadow: 0 10px 24px -12px rgba(138, 106, 58, .8); }
.btn-primary:hover { box-shadow: 0 14px 28px -12px rgba(138, 106, 58, .9); }
.btn-ghost { background: var(--paper); border-color: var(--line); color: var(--ink); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; margin-top: 18px; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.link { background: none; border: 0; padding: 0; color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: inherit; }
.form-error { min-height: 1.4em; margin: 12px 0 0; color: var(--danger); font-size: 14px; text-align: center; }
.hint { color: var(--muted); font-size: 13px; text-align: center; margin: 10px 0 0; }

/* --- Ladebild ------------------------------------------------------------- */
.splash { position: fixed; inset: 0; display: grid; place-items: center; z-index: 50; transition: opacity .5s; }
.splash .monogram { animation: breathe 1.6s ease-in-out infinite; }
.splash.is-gone { opacity: 0; pointer-events: none; }
@keyframes breathe { 50% { transform: scale(1.06); opacity: .7; } }

/* --- Eingang -------------------------------------------------------------- */
.gate { min-height: 100svh; display: grid; place-items: center; padding: 32px 0; }
.gate-card { width: 100%; max-width: 420px; padding: 40px 28px 30px; text-align: center; animation: rise .8s var(--ease) both; }
.gate-card .names { font-size: clamp(44px, 12vw, 60px); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* --- Namensabfrage -------------------------------------------------------- */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 40; display: grid; place-items: end center;
  background: rgba(47, 41, 37, .35); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: fade .3s both; padding: 16px; grid-template-columns: minmax(0, 440px); justify-content: center;
}
.sheet { width: 100%; padding: 32px 24px calc(24px + env(safe-area-inset-bottom)); text-align: center; animation: rise .45s var(--ease) both; background: var(--paper); }
@media (min-width: 640px) { .sheet-backdrop { place-items: center; } }
@keyframes fade { from { opacity: 0; } }

/* --- Hero (Animation 1: Namen erscheinen weich, Linie wächst) ------------- */
.hero { text-align: center; padding: calc(44px + env(safe-area-inset-top)) 0 10px; }
.hero-names span, .hero-names em { display: inline-block; animation: write 1.4s var(--ease) both; }
.hero-names em { animation-delay: .35s; }
.hero-names span:last-of-type { animation-delay: .55s; }
.hero .date { animation: fade 1s .9s both; }
.hero .ornament i { transform-origin: center; animation: grow 1.2s 1s var(--ease) both; }
.hero .ornament b { animation: fade .8s 1.4s both; }
@keyframes write { from { opacity: 0; transform: translateY(12px); filter: blur(6px); letter-spacing: .08em; } }
@keyframes grow { from { transform: scaleX(0); } }

.counter {
  display: inline-flex; align-items: center; gap: 8px; margin: 22px auto 0;
  padding: 7px 16px; border-radius: 999px; background: rgba(255, 253, 249, .8); border: 1px solid var(--line);
  font-size: 14px; color: var(--ink-soft); animation: fade .8s 1.6s both;
}
.counter b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.counter-dot { width: 7px; height: 7px; border-radius: 50%; background: #c98a7c; box-shadow: 0 0 0 0 rgba(201, 138, 124, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(201, 138, 124, 0); } 100% { box-shadow: 0 0 0 0 rgba(201, 138, 124, 0); } }

.hello { text-align: center; margin: 26px auto 0; max-width: 520px; }
.hello p { margin: 0; font-size: 17px; }
.hello strong { font-weight: 500; }
.hello .link { font-size: 13px; margin-left: 6px; color: var(--muted); }
.hello-sub { color: var(--ink-soft); font-size: 15px !important; margin-top: 4px !important; }

/* --- Hauptaktionen -------------------------------------------------------- */
.actions { display: grid; gap: 12px; margin: 22px auto 0; max-width: 620px; }
@media (min-width: 640px) { .actions { grid-template-columns: 1fr 1fr; } }
.action {
  position: relative; display: flex; align-items: center; gap: 16px; width: 100%;
  padding: 18px 20px; border-radius: 22px; cursor: pointer; text-align: left;
  border: 1px solid var(--line); background: rgba(255, 253, 249, .9); box-shadow: var(--shadow);
  transition: transform .18s var(--ease), box-shadow .2s;
}
.action:active { transform: scale(.985); }
.action input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.action:focus-within { outline: 2px solid var(--gold); outline-offset: 3px; }
.action-icon {
  flex: none; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
}
.action-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.action-upload { background: linear-gradient(135deg, #b8935b, var(--gold-deep)); border-color: transparent; color: #fffaf2; }
.action-upload .action-icon { background: rgba(255, 250, 242, .16); }
.action-upload .action-text small { color: rgba(255, 250, 242, .85); }
.action-booth .action-icon { background: var(--blush); color: var(--gold-deep); }
.action-text b { display: block; font-weight: 500; font-size: 17px; letter-spacing: .01em; }
.action-text small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.action.is-disabled { opacity: .5; pointer-events: none; }
.closed-note { max-width: 620px; margin: 16px auto 0; text-align: center; color: var(--ink-soft); font-size: 15px; }

/* --- Fortschritt ---------------------------------------------------------- */
.progress { max-width: 620px; margin: 18px auto 0; padding: 18px 18px 8px; animation: rise .4s var(--ease) both; }
.progress-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; }
.progress-head b { font-weight: 500; font-variant-numeric: tabular-nums; }
.bar { height: 6px; border-radius: 99px; background: var(--sand); overflow: hidden; margin-top: 10px; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--gold-light), var(--gold)); transition: width .35s var(--ease); }
.progress-hint { font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
.queue { list-style: none; margin: 6px 0 0; padding: 0; max-height: 260px; overflow-y: auto; }
.queue li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid rgba(169, 132, 78, .14); font-size: 14px; }
.queue .q-thumb { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--sand) center/cover no-repeat; }
.queue .q-main { flex: 1; min-width: 0; }
.queue .q-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue .q-bar { height: 3px; background: var(--sand); border-radius: 9px; margin-top: 5px; overflow: hidden; }
.queue .q-bar i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .3s; }
.queue .q-state { flex: none; font-size: 13px; color: var(--muted); }
.queue li.is-done .q-state { color: #5f8a5a; }
.queue li.is-error .q-state { color: var(--danger); }
.queue li.is-error .q-name { color: var(--danger); }
.q-retry { margin-left: 8px; }

/* --- Galerie -------------------------------------------------------------- */
.gallery-section { margin-top: 46px; }
.section-head { text-align: center; margin-bottom: 16px; }
.filters {
  position: relative; display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin: 0 -16px; padding-inline: 16px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; justify-content: flex-start;
}
@media (min-width: 720px) { .filters { justify-content: center; } }
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 253, 249, .85); font-size: 14px; cursor: pointer; white-space: nowrap; color: var(--ink-soft);
  transition: background .2s, color .2s;
}
.chip.is-active { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.chip-select { position: relative; display: inline-flex; align-items: center; padding: 0 6px 0 12px; }
.chip-select select { border: 0; background: transparent; height: 100%; font-size: 14px; color: inherit; max-width: 170px; outline: none; cursor: pointer; }
.chip-select.is-active select { color: var(--ivory); }
.chip-select select option { color: var(--ink); }

.new-pill {
  position: sticky; top: 12px; z-index: 5; display: block; margin: 0 auto 10px;
  padding: 9px 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--ink); color: var(--ivory); font-size: 14px; box-shadow: var(--shadow); animation: rise .4s var(--ease) both;
}

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; border-radius: 14px; overflow: hidden; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 6px; } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(5, 1fr); } }
.tile {
  position: relative; aspect-ratio: 1; padding: 0; border: 0; cursor: pointer; overflow: hidden;
  background: linear-gradient(135deg, var(--sand), var(--blush));
  animation: fade .5s both;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), opacity .4s; opacity: 0; }
.tile img.is-loaded { opacity: 1; }
.tile:hover img { transform: scale(1.04); }
.tile .tile-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold-deep); }
.tile .tile-ph svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.tile .badge {
  position: absolute; display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 7px; border-radius: 99px; font-size: 11px; line-height: 1.3; font-weight: 400;
  background: rgba(30, 25, 22, .55); color: #fff; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.tile .badge-video { right: 6px; bottom: 6px; }
.tile .badge-video svg { width: 10px; height: 10px; fill: currentColor; }
.tile .badge-top { left: 6px; top: 6px; background: rgba(169, 132, 78, .9); }
.tile .badge-booth { left: 6px; bottom: 6px; }
.tile .badge-hidden { right: 6px; top: 6px; background: rgba(164, 71, 59, .9); }
.tile.is-hidden img { opacity: .4; filter: grayscale(.8); }
.tile.is-selected::after { content: ""; position: absolute; inset: 0; border: 3px solid var(--gold); background: rgba(169, 132, 78, .2); }
.tile .tick { position: absolute; right: 6px; top: 6px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.2); display: none; }
.selecting .tile .tick { display: block; }
.tile.is-selected .tick { background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; border-color: var(--gold); }
.grid-empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.grid-empty b { display: block; font: italic 400 24px/1.3 var(--serif); color: var(--ink-soft); margin-bottom: 6px; }
.grid-sentinel { height: 1px; }

.download-all { text-align: center; margin-top: 28px; }

.footer { text-align: center; padding: 56px 0 calc(40px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 13px; }
.footer p { margin: 0; letter-spacing: .06em; }

/* --- Großansicht ---------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 60; background: #14110f; color: #fff;
  display: grid; grid-template-rows: auto 1fr auto; animation: fade .25s both; touch-action: pan-y;
}
.lb-top, .lb-bottom { display: flex; align-items: center; gap: 8px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; }
.lb-bottom { padding: 10px 12px calc(14px + env(safe-area-inset-bottom)); justify-content: center; flex-wrap: wrap; }
.lb-count { flex: 1; text-align: center; font-size: 13px; letter-spacing: .1em; color: rgba(255,255,255,.7); }
.lb-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 14px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; font-size: 14px; text-decoration: none;
}
.lb-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lb-btn.is-on { background: var(--gold); border-color: var(--gold); }
.lb-btn-danger { color: #ffb4a8; border-color: rgba(255, 140, 120, .35); }
.lb-stage { position: relative; display: grid; place-items: center; overflow: hidden; min-height: 0; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; transition: transform .25s var(--ease), opacity .25s; }
.lb-stage .lb-fallback { text-align: center; padding: 24px; color: rgba(255,255,255,.8); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; display: none; }
.lb-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
@media (hover: hover) { .lb-nav { display: grid; place-items: center; } }
.lb-prev { left: 14px; } .lb-next { right: 14px; }
.lb-meta { width: 100%; text-align: center; font-size: 14px; color: rgba(255,255,255,.75); margin-bottom: 6px; }
.lb-meta b { color: #fff; font-weight: 400; }

/* --- Bestätigungsdialog --------------------------------------------------- */
.confirm-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(20, 17, 15, .5); animation: fade .2s both; }
.confirm-backdrop { grid-template-columns: minmax(0, 380px); justify-content: center; }
.confirm { width: 100%; padding: 26px 22px 20px; text-align: center; background: var(--paper); border-radius: 20px; box-shadow: var(--shadow); color: var(--ink); }
.confirm p { margin: 0 0 18px; }
.confirm .row { display: flex; gap: 10px; justify-content: center; }
.confirm .btn { min-height: 46px; padding: 0 20px; }

/* --- Toast & Feier (Animation 2) ------------------------------------------ */
.toast {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 90; max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 999px;
  background: var(--ink); color: var(--ivory); font-size: 15px; box-shadow: var(--shadow); text-align: center;
  animation: rise .35s var(--ease) both;
}
.toast.is-error { background: var(--danger); }
.celebrate { position: fixed; inset: 0; pointer-events: none; z-index: 85; overflow: hidden; }
.celebrate .heart {
  position: absolute; bottom: -40px; width: 22px; height: 22px; opacity: 0;
  animation: float-up var(--dur, 2.6s) var(--ease) forwards; animation-delay: var(--delay, 0s);
}
.celebrate .heart svg { width: 100%; height: 100%; }
@keyframes float-up {
  0% { opacity: 0; transform: translate(0, 0) scale(.6) rotate(0); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx, 0), -78vh) scale(1.1) rotate(var(--rot, 20deg)); }
}

/* --- Admin ---------------------------------------------------------------- */
.admin-bar { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; padding: 10px 0; background: rgba(251, 247, 241, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); margin: 0 -16px; padding-inline: 16px; }
.admin-bar .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
.admin-bar .sel-count { font-size: 14px; color: var(--ink-soft); margin-right: 4px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 16px; text-align: center; }
.stat b { display: block; font: 400 30px/1.1 var(--serif); color: var(--ink); }
.stat span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.disk { padding: 16px 18px; margin-top: 10px; }
.disk .bar { height: 8px; }
.disk-text { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-soft); }
.people { margin-top: 10px; padding: 6px 0; overflow-x: auto; }
.people table { width: 100%; border-collapse: collapse; font-size: 14px; }
.people th, .people td { padding: 9px 14px; text-align: left; border-bottom: 1px solid rgba(169, 132, 78, .14); white-space: nowrap; }
.people th { font-weight: 400; color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.people td.num { text-align: right; font-variant-numeric: tabular-nums; }
.people tr[data-person] { cursor: pointer; }
.people tr[data-person]:hover td { background: rgba(236, 217, 209, .35); }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; }
.switch input { width: 46px; height: 28px; appearance: none; border-radius: 99px; background: var(--sand); position: relative; cursor: pointer; transition: background .2s; border: 1px solid var(--line); }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s var(--ease); }
.switch input:checked { background: var(--gold); }
.switch input:checked::after { transform: translateX(18px); }
.admin-tools { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; margin-top: 16px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .celebrate { display: none; }
}
.lb-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.lb-spacer { width: 44px; }
.grid-empty:not([hidden]) ~ .download-all { display: none; }
