/* /board — instagram-style live feed of every strip + clip in R2.
 * Layered on top of booth.css. booth.css sets `overflow: hidden` on the
 * html/body for the camera flow; we override that here so the feed scrolls. */

html.board-html, body.board-body {
  overflow: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
body.board-body.modal-open { overflow: hidden !important; }
body.board-body {
  display: block;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
}

.board-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: calc(env(safe-area-inset-top) + 0.85rem) 1rem 0.85rem;
  background: rgba(14,14,15,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.board-back {
  appearance: none;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--fg);
  font-size: 1.15rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 1;
}
.board-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  flex: 1;
}
/* Header settings pill — visible only in admin mode, sits next to the
   live badge so the path to /admin is obvious from any board view. */
.header-settings {
  display: none;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0e0e0f;
  background: #f7f5f0;
  border: 1px solid #f7f5f0;
  padding: 0.4rem 0.75rem 0.4rem 0.6rem;
  border-radius: 999px;
  text-decoration: none;
  min-height: 36px;
  transition: transform 0.12s ease, background 0.18s ease;
}
.header-settings:hover, .header-settings:focus-visible {
  background: #fff;
  transform: translateY(-1px);
}
body.admin-on .header-settings { display: inline-flex; }

/* photos / videos segmented toggle — anyone can switch view modes. */
.view-toggle {
  display: inline-flex;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.view-toggle__btn {
  appearance: none;
  background: transparent;
  border: 0;
  color: rgba(247,245,240,0.7);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  min-height: 28px;
  transition: background 0.15s ease, color 0.15s ease;
}
.view-toggle__btn:hover { color: var(--fg); }
.view-toggle__btn.is-active {
  background: #f7f5f0;
  color: #0e0e0f;
}

/* In videos mode, cards without a clip drop out of the feed. */
body.view-videos .board-card:not([data-video-url]):not([data-has-video]) { display: none; }
body.view-videos .board-card[data-video-url=""] { display: none; }

.board-live {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #84e0a0;
  background: rgba(132, 224, 160, 0.10);
  border: 1px solid rgba(132, 224, 160, 0.35);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}
.board-live.pulse { animation: live-pulse 1.2s ease-out 1; }
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(132,224,160,0.55); }
  100% { box-shadow: 0 0 0 12px rgba(132,224,160,0); }
}

/* Admin banner — appears under the header when admin mode is on. Wide,
   tinted, with a clear CTA to settings so admins never have to hunt. */
.admin-banner { display: none !important; }

/* ---- admin tools cluster (top-right) ---------------------------------
   Replaces both the bottom "admin access" link and the green banner.
   Public state: a single low-key "admin access" text button.
   Unlocked state: a row of round icon buttons with hover tooltips. */
.admin-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.admin-tools__entry {
  appearance: none;
  background: transparent;
  border: none;
  color: rgba(247,245,240,0.35);
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  transition: color 0.18s ease;
}
.admin-tools__entry:hover,
.admin-tools__entry:focus-visible { color: rgba(247,245,240,0.85); }
body.admin-on .admin-tools__entry { display: none; }

.admin-tools__cluster {
  display: none;
  align-items: center;
  gap: 0.35rem;
  padding: 3px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
}
body.admin-on .admin-tools__cluster { display: inline-flex; }

a.admin-tools__icon,
button.admin-tools__icon,
.admin-tools__icon {
  appearance: none;
  background: transparent;
  border: 0;
  color: rgba(247,245,240,0.78);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
.admin-tools__icon svg { display: block; stroke: currentColor; fill: none; }
a.admin-tools__icon:visited { color: rgba(247,245,240,0.78); }
.admin-tools__icon:hover,
.admin-tools__icon:focus-visible {
  background: rgba(247,245,240,0.12);
  color: #fff;
}
.admin-tools__icon.is-active {
  background: #f7f5f0;
  color: #0e0e0f;
}
.admin-tools__icon--danger:hover,
.admin-tools__icon--danger:focus-visible {
  background: rgba(210,59,59,0.18);
  color: #ff8a8a;
}
.admin-tools__icon[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 6px);
  right: 50%;
  transform: translate(50%, -4px);
  background: rgba(14,14,15,0.95);
  color: #f7f5f0;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  padding: 0.3rem 0.55rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(255,255,255,0.1);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 20;
}
.admin-tools__icon[data-tip]:hover::after,
.admin-tools__icon[data-tip]:focus-visible::after {
  opacity: 1;
  transform: translate(50%, 0);
}
@media (max-width: 480px) {
  .admin-tools__icon { width: 28px; height: 28px; }
}
body.admin-on .admin-banner:not([hidden]) { display: flex; }
.admin-banner__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #84e0a0;
  box-shadow: 0 0 0 3px rgba(132,224,160,0.25);
  flex-shrink: 0;
}
.admin-banner__text { flex: 1; letter-spacing: 0.01em; }
.admin-banner__btn {
  appearance: none;
  background: #84e0a0;
  color: #0e0e0f;
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  white-space: nowrap;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease;
}
.admin-banner__btn:hover, .admin-banner__btn:focus-visible {
  background: #9eecb6;
  transform: translateY(-1px);
}
.admin-banner__btn--ghost {
  background: transparent;
  color: #cfeed8;
  border: 1px solid rgba(132,224,160,0.5);
}
.admin-banner__btn--ghost:hover, .admin-banner__btn--ghost:focus-visible {
  background: rgba(132,224,160,0.18);
  color: #fff;
  transform: translateY(-1px);
}
@media (max-width: 480px) {
  .admin-banner { font-size: 0.78rem; padding: 0.55rem 0.75rem; gap: 0.55rem; flex-wrap: wrap; }
  .admin-banner__btn { font-size: 0.78rem; padding: 0.4rem 0.7rem; }
}

/* ---------- selection mode + bulk export ---------- */

/* Each card gets a checkmark circle, hidden by default. Reveals when
   the body enters selection mode; fills when the card is .selected. */
.board-card__check {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  border: 2px solid rgba(255,255,255,0.7);
  color: transparent;
  font-size: 0.95rem;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
body.selection-on .board-card__check { display: inline-flex; }
body.selection-on .board-card.selected .board-card__check {
  background: #f7f5f0;
  color: #0e0e0f;
  border-color: #f7f5f0;
}
body.selection-on .board-card {
  cursor: pointer;
}
body.selection-on .board-card.selected {
  outline: 3px solid #f7f5f0;
  outline-offset: -3px;
}
/* Hide the per-card hover/delete bar in selection mode — too noisy. */
body.selection-on .board-card__admin { display: none; }
/* Hide the lightbox-corner ribbon too, the card is now an item-row. */
body.selection-on .board-card__corner { opacity: 0.5; }
/* Selection mode should read like a contact sheet — kill the autoplay
   videos so each tile is just the still strip. JS also pauses+rips them
   so we're not burning CPU decoding under a hidden layer. */
body.selection-on .board-card__video { display: none !important; }

/* Sticky bottom action bar — only shown in selection mode. */
.selection-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 15;
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem calc(env(safe-area-inset-bottom) + 0.7rem);
  background: rgba(14,14,15,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 -12px 30px rgba(0,0,0,0.45);
}
body.selection-on .selection-bar:not([hidden]) { display: flex; }
.selection-bar__count {
  flex: 1;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--fg);
  letter-spacing: 0.01em;
  text-align: center;
}
.selection-bar__btn {
  appearance: none;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.18s ease, transform 0.12s ease, opacity 0.18s ease;
}
.selection-bar__btn:active { transform: scale(0.97); }
.selection-bar__btn:disabled { opacity: 0.45; cursor: default; }
.selection-bar__btn--ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid rgba(255,255,255,0.22);
}
.selection-bar__btn--ghost:hover { background: rgba(255,255,255,0.08); }
.selection-bar__btn--primary {
  background: var(--accent);
  color: var(--accent-fg);
  border: 1px solid var(--accent);
}
.selection-bar__btn--primary:hover { background: #fff; }
.selection-bar__btn:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}
/* iPhone: 5 children in the selection bar (cancel, count, all, print,
   download). Tighten so nothing overflows on narrow screens. */
@media (max-width: 480px) {
  .selection-bar { gap: 0.4rem; padding: 0.55rem 0.55rem calc(env(safe-area-inset-bottom) + 0.55rem); }
  .selection-bar__btn { font-size: 0.8rem; padding: 0.5rem 0.75rem; min-height: 40px; }
  .selection-bar__count { font-size: 0.8rem; min-width: 0; }
}

@media (hover: none) {
  .selection-bar__btn--ghost:hover { background: transparent; }
  .selection-bar__btn--primary:hover { background: var(--accent); }
  .admin-banner__btn--ghost:hover { background: transparent; transform: none; color: #cfeed8; }
}

/* Pad the feed so the last row clears the sticky action bar. */
body.selection-on .board-feed { padding-bottom: 7.5rem; }

/* Tablet / desktop: a touch more breathing room in the bar. */
@media (min-width: 768px) {
  .selection-bar { gap: 0.85rem; padding: 0.85rem 1.5rem calc(env(safe-area-inset-bottom) + 0.85rem); }
  .selection-bar__btn { font-size: 0.95rem; padding: 0.7rem 1.25rem; }
  .board-card__check { width: 1.85rem; height: 1.85rem; top: 0.65rem; left: 0.65rem; }
}

.board-feed {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  padding: 0.85rem 0.85rem 6rem;
  max-width: 980px;
  margin: 0 auto;
}
@media (min-width: 720px) {
  .board-feed { grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 1.25rem 1.25rem 6rem; }
}
@media (min-width: 1100px) {
  .board-feed { grid-template-columns: repeat(4, 1fr); }
}

.board-card {
  position: relative;
  background: #1a1a1a;
  border-radius: 0.75rem;
  overflow: hidden;
  cursor: pointer;
  display: block;
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.18s ease, border-color 0.18s ease;
  /* polaroid-ish portrait aspect, works for both 2x2 grids and 1x4 strips */
  aspect-ratio: 3 / 4;
}
.board-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.18); }
.board-card.appear { animation: card-in 0.45s ease-out both; }
@keyframes card-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)  scale(1); }
}

.board-card__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #1a1a1a;
}
.board-card__video {
  /* Layered on top of the strip image. Fades in when it starts playing so
     there's no flash of an empty <video> element. */
  opacity: 0;
  transition: opacity 0.4s ease;
}
.board-card.playing .board-card__video { opacity: 1; }

.board-card__corner {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.55);
  color: #fff;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  pointer-events: none;
  backdrop-filter: blur(6px);
}

/* Admin overlay: hide + delete buttons stacked top-right on each card. */
.board-card__admin {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  display: none;
  flex-direction: row;
  gap: 0.35rem;
  z-index: 2;
}
body.admin-on .board-card__admin { display: inline-flex; }

.board-card__actions {
  position: absolute;
  bottom: 0.45rem;
  right: 0.45rem;
  display: inline-flex;
  flex-direction: row;
  gap: 0.3rem;
  z-index: 2;
}
body.selection-on .board-card__actions { display: none; }

.board-card__actions .board-card__save,
.board-card__actions .board-card__print {
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* iPhone: cards are ~half-viewport wide; keep buttons compact but
   still ≥34px so a thumb hits cleanly. SVG icon scales with font-size. */
@media (max-width: 480px) {
  .board-card__actions { bottom: 0.35rem; right: 0.35rem; gap: 0.28rem; }
  .board-card__actions .board-card__save,
  .board-card__actions .board-card__print {
    width: 2.1rem;
    height: 2.1rem;
  }
  .board-card__actions svg { width: 15px; height: 15px; }
}

/* iPad portrait + small tablets: a hair larger for comfortable taps. */
@media (min-width: 481px) and (max-width: 1024px) {
  .board-card__actions { bottom: 0.5rem; right: 0.5rem; }
  .board-card__actions .board-card__save,
  .board-card__actions .board-card__print {
    width: 2.1rem;
    height: 2.1rem;
  }
  .board-card__actions svg { width: 16px; height: 16px; }
}

.board-card__hide,
.board-card__delete,
.board-card__save,
.board-card__print {
  appearance: none;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.65);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 1.05rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}
.board-card__delete:hover { background: #d23b3b; border-color: #d23b3b; }
.board-card__hide:hover { background: rgba(132,224,160,0.85); border-color: #84e0a0; color: #0e0e0f; }
.board-card__save:hover { background: #f7f5f0; border-color: #f7f5f0; color: #0e0e0f; }
.board-card__save:disabled { opacity: 0.6; cursor: default; }
.board-card__print:hover { background: #f7f5f0; border-color: #f7f5f0; color: #0e0e0f; }
.board-card__print:disabled { opacity: 0.6; cursor: default; }

/* Hidden strips: dimmed and tagged in admin view, completely filtered for public viewers. */
.board-card.is-hidden-strip {
  opacity: 0.45;
  outline: 2px dashed rgba(132,224,160,0.55);
  outline-offset: -2px;
}
.board-card.is-hidden-strip::before {
  content: 'hidden';
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  z-index: 3;
  background: rgba(0,0,0,0.7);
  color: #84e0a0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  pointer-events: none;
}

.board-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 4rem 1rem;
  font-size: 0.95rem;
}

.board-sentinel {
  height: 1px;
  width: 100%;
}

/* ---------- viewer ---------- */
.board-viewer {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: viewer-in 0.2s ease-out;
}
@keyframes viewer-in { from { opacity: 0; } to { opacity: 1; } }
.board-viewer__inner {
  width: 100%;
  max-width: 480px;
  max-height: calc(100dvh - 6rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  overflow-y: auto;
}
.board-viewer__strip {
  max-width: 100%;
  max-height: 60dvh;
  border-radius: 0.6rem;
  display: block;
  background: #1a1a1a;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.board-viewer__video {
  width: 100%;
  max-height: 45dvh;
  border-radius: 0.6rem;
  background: #000;
  display: none;
}
.board-viewer__video.has-src { display: block; }
.board-viewer__meta {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.board-viewer__close {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 0.75rem);
  right: 0.85rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.board-viewer__close:hover { background: rgba(255,255,255,0.2); }

/* ---------- admin footer ---------- */
.board-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.6rem 1rem calc(env(safe-area-inset-bottom) + 0.6rem);
  background: linear-gradient(to top, rgba(14,14,15,0.95), rgba(14,14,15,0));
  text-align: center;
  pointer-events: none;
  z-index: 9;
}
.admin-toggle {
  pointer-events: auto;
  appearance: none;
  background: transparent;
  border: none;
  color: rgba(247,245,240,0.35);
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  transition: color 0.18s ease;
}
.admin-toggle:hover { color: rgba(247,245,240,0.85); }
body.admin-on .admin-toggle { color: #d23b3b; }
.admin-status {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.7rem;
  color: #d23b3b;
  letter-spacing: 0.05em;
}
body.admin-on .admin-status:not([hidden]) { display: block; }
.admin-settings-link {
  color: #d23b3b;
  text-decoration: underline;
  text-underline-offset: 3px;
  pointer-events: auto;
}
.admin-settings-link:hover { color: #fff; }

/* ---------- admin password modal (replaces unstyled native prompt) ---------- */
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: viewer-in 0.18s ease-out;
}
.admin-modal__card {
  width: 100%;
  max-width: 22rem;
  background: #181818;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 1.1rem;
  padding: 1.6rem 1.4rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.admin-modal__title { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
.admin-modal__sub { color: var(--muted); font-size: 0.9rem; }
.admin-modal__input {
  appearance: none;
  background: rgba(0,0,0,0.5);
  border: 1.5px solid rgba(255,255,255,0.15);
  color: var(--fg);
  font: inherit;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.65rem;
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.admin-modal__input:focus {
  border-color: rgba(255,255,255,0.55);
  background: rgba(0,0,0,0.65);
}
.admin-modal__err {
  color: #ff7c7c;
  font-size: 0.85rem;
  margin: 0;
}
.admin-modal__actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.25rem;
}
.admin-modal__btn {
  appearance: none;
  flex: 1;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  min-height: 44px;
  transition: transform 0.1s ease, background 0.18s ease;
}
.admin-modal__btn:active { transform: scale(0.97); }
.admin-modal__btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.18);
  color: var(--fg);
}
.admin-modal__btn--ghost:hover { background: rgba(255,255,255,0.06); }
.admin-modal__btn--primary {
  background: var(--accent);
  color: var(--accent-fg);
}
@media (hover: none) {
  .admin-modal__btn--ghost:hover { background: transparent; }
}
.admin-modal__input:focus-visible,
.admin-modal__btn:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

/* ---------- accessibility ---------- */
.board-back:focus-visible,
.admin-toggle:focus-visible,
.board-card:focus-visible,
.board-card__delete:focus-visible,
.board-viewer__close:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}
.board-card:focus-visible { outline-offset: -2px; border-radius: 0.75rem; }

@media (hover: none) {
  .board-card:hover { transform: none; border-color: rgba(255,255,255,0.05); }
  .admin-toggle:hover { color: rgba(247,245,240,0.35); }
  .board-card__delete:hover { background: rgba(0,0,0,0.65); border-color: rgba(255,255,255,0.25); }
  .board-viewer__close:hover { background: rgba(255,255,255,0.12); }
}

@media (prefers-reduced-motion: reduce) {
  .board-card.appear,
  .board-live.pulse,
  .board-viewer { animation: none !important; }
  .board-card, .board-card__video { transition: none; }
}

@media (prefers-contrast: more) {
  .board-card { border-color: rgba(255,255,255,0.35); }
  .board-back { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.5); }
}
