/* admin.css — warstwa CSS QR3 (Faza 3 reorg 2026-09-02)
   Panel organizatora (PA) + panel supervisora: dashboard, admin panel, plan stołów,
   modale kreatora/wydarzenia, wydatki, karty-kafle, supervisor.
   Ładowana przez {% block page_css %} w admin_base.html.
   Nie edytować wartości reguł tutaj bez świadomej decyzji — patrz q:\docs\CSS.md */

/* ============================================================
   DASHBOARD
   ============================================================ */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.page-title { font-family: var(--font-heading); font-size: 1.7rem; font-weight: 700; color: var(--text-primary); }
.page-subtitle { font-size: 0.88rem; color: var(--text-muted); margin-top: 3px; }

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.event-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition);
  box-shadow: var(--shadow-xs);
}
.event-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
}
/* Wydarzenie współdzielone (współorganizator) — obwódka akcentem (CSP Etap 5) */
.event-card--co { border: 1px solid var(--accent); }
.event-card__cover {
  height: 120px;
  background: linear-gradient(135deg, var(--bg-surface-2) 0%, var(--bg-surface-3) 100%);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 12px;
  background-size: cover;
  background-position: center;
}
.event-status {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
}
.event-status--active   { background: rgba(22,163,74,0.12);  color: #15803d; border: 1px solid rgba(22,163,74,0.25); }
.event-status--upcoming { background: var(--accent-light);   color: var(--accent); border: 1px solid rgba(79,70,229,0.25); }
.event-status--ended    { background: var(--bg-surface-2);   color: var(--text-faint); border: 1px solid var(--border); }
[data-theme="dark"] .event-status--active { color: #86efac; border-color: rgba(134,239,172,0.25); }
.event-card__body { padding: 16px; }
.event-card__name { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.event-card__type { font-size: 0.78rem; color: var(--accent); font-weight: 500; margin-bottom: 4px; }
.event-card__location { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; }
.event-card__meta { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--text-faint); }

/* ============================================================
   ADMIN PANEL — Premium Warm Design
   ============================================================ */

/* Admin layout */
.admin-layout {
  min-height: 100vh;
  background: #FAFAF8;
  font-family: 'Plus Jakarta Sans', 'Outfit', system-ui, sans-serif;
}

[data-theme="dark"] .admin-layout {
  background: #0f1117;
}

/* Admin topbar — clean, minimal */
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
[data-theme="dark"] .admin-topbar {
  background: rgba(15,17,23,0.92);
  border-bottom-color: rgba(255,255,255,0.06);
}
.admin-topbar__left { display: flex; align-items: center; gap: 16px; }
.admin-topbar__right { display: flex; align-items: center; gap: 10px; }
.admin-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 8px;
  transition: all 0.15s;
}
.admin-back-link:hover { background: rgba(0,0,0,0.05); color: var(--text-primary); }
.admin-back-link svg { width: 14px; height: 14px; }
.admin-brand-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* Hero banner */
.admin-hero {
  margin: 24px 24px 0;
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
  padding: 36px 40px;
  border-radius: 24px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 60%, #a855f7 100%);
  position: relative;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 20px 60px -10px rgba(79,70,229,0.45), 0 4px 16px rgba(0,0,0,0.08);
}
.admin-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.admin-hero::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  pointer-events: none;
}
.admin-hero__inner { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.admin-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.15;
}
.admin-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
}
.admin-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 5px 12px;
  border-radius: 99px;
  backdrop-filter: blur(8px);
}
.admin-hero__chip svg { width: 13px; height: 13px; flex-shrink: 0; }
.admin-hero__chip a { color: inherit; text-decoration: none; }
.admin-hero__chip a:hover { text-decoration: underline; }

/* QR box in hero */
.admin-hero__qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.admin-hero__qr-img {
  width: 110px; height: 110px;
  border-radius: 16px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.admin-hero__qr-actions {
  display: flex;
  gap: 8px;
}
.btn--hero-ghost {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 5px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
}
.btn--hero-ghost:hover { background: rgba(255,255,255,0.2); color: #fff; }

/* Admin content area */
.admin-content {
  max-width: 940px;
  margin: 24px auto;
  padding: 0 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Section card */
.admin-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 6px 24px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
}
[data-theme="dark"] .admin-card {
  background: #1a1d27;
  border-color: rgba(255,255,255,0.06);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3), 0 6px 24px rgba(0,0,0,0.2);
}
.admin-card:hover {
  box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 10px 36px rgba(0,0,0,0.07);
}
.admin-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
[data-theme="dark"] .admin-card__header { border-bottom-color: rgba(255,255,255,0.06); }
.admin-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.admin-card__icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.admin-card__icon--purple { background: rgba(99,102,241,0.1); }
.admin-card__icon--rose   { background: rgba(244,63,94,0.1); }
.admin-card__icon--amber  { background: rgba(245,158,11,0.1); }
.admin-card__icon--emerald{ background: rgba(16,185,129,0.1); }
.admin-card__icon--blue   { background: rgba(59,130,246,0.1); }

/* Module rows — premium */
.module-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: #FAFAF8;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  transition: all 0.2s;
  position: relative;
}
[data-theme="dark"] .module-row { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.06); }
.module-row:hover { border-color: rgba(99,102,241,0.25); box-shadow: 0 2px 12px rgba(99,102,241,0.08); }
.module-row--disabled {
  opacity: 0.42;
}
.module-row__info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.module-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
[data-theme="dark"] .module-icon { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.1); }
.module-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  display: block;
  letter-spacing: -0.01em;
}
.module-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.18);
  color: #6366f1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="dark"] .module-icon-badge {
  background: rgba(129, 140, 248, 0.12);
  border-color: rgba(129, 140, 248, 0.25);
  color: #a5b4fc;
}

.module-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.module-dates-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: color 0.15s;
}
.module-dates-text:hover { color: var(--accent); }

.module-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.module-badge--interactive {
  background: rgba(99,102,241,0.1);
  color: #6366f1;
  border: 1px solid rgba(99,102,241,0.2);
}
[data-theme="dark"] .module-badge--interactive { color: #a5b4fc; border-color: rgba(165,180,252,0.2); }
.module-badge--gallery {
  background: rgba(16,185,129,0.1);
  color: #059669;
  border: 1px solid rgba(16,185,129,0.2);
}
[data-theme="dark"] .module-badge--gallery { color: #6ee7b7; border-color: rgba(110,231,183,0.2); }

.module-row__dates {
  min-width: 0;
}
.module-row__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.module-move-buttons {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}
.module-move-btn {
  width: 22px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 5px;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.module-move-btn:hover:not(:disabled) {
  background: rgba(99,102,241,0.1);
  color: #6366f1;
}
.module-move-btn:disabled {
  opacity: 0.25;
  cursor: default;
}

/* Toggle switch (zgodny ze stylem .delicate-switch ze strony konfiguracji) */
.module-toggle {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background-color: #f8fafc;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease;
  padding: 0;
  flex-shrink: 0;
  outline: none;
  box-sizing: border-box;
}
.module-toggle--on {
  background-color: #e0e7ff;
  border-color: #6366f1;
  box-shadow: none;
}
.module-toggle--off {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: none;
}
.module-toggle:hover.module-toggle--off {
  border-color: #94a3b8;
}
.module-toggle:hover.module-toggle--on {
  border-color: #4f46e5;
}
[data-theme="dark"] .module-toggle--off {
  background-color: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.2);
}
[data-theme="dark"] .module-toggle--on {
  background-color: rgba(99,102,241,0.25);
  border-color: #818cf8;
}
.module-toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  transition: transform 0.25s ease, background-color 0.25s ease;
  display: block;
  box-shadow: none;
}
.module-toggle--on .module-toggle__thumb {
  transform: translateX(16px);
  background-color: #4f46e5;
}
.module-toggle--off .module-toggle__thumb {
  transform: translateX(0);
  background-color: #94a3b8;
}
[data-theme="dark"] .module-toggle--on .module-toggle__thumb {
  background-color: #818cf8;
}
[data-theme="dark"] .module-toggle--off .module-toggle__thumb {
  background-color: #94a3b8;
}

/* Przełącznik 3-stanowy: Wyłączony / Włączony / Live (moduł quiz) */
.quiz-mode-switch {
  display: flex;
  flex-shrink: 0;
  border: 1px solid var(--border-strong, rgba(0,0,0,0.12));
  border-radius: 999px;
  overflow: hidden;
}
.quiz-mode-switch__seg {
  border: none;
  background: transparent;
  padding: 6px 11px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.quiz-mode-switch__seg + .quiz-mode-switch__seg { border-left: 1px solid var(--border-strong, rgba(0,0,0,0.12)); }
.quiz-mode-switch__seg:hover { background: var(--bg-surface-2); }
.quiz-mode-switch__seg--active { background: var(--accent); color: #fff; }
.quiz-mode-switch__seg--active:hover { background: var(--accent); }
/* Live ma dwa kolory zależnie od tego, czy runda faktycznie trwa, czy tylko czeka na start */
.quiz-mode-switch__seg--live-waiting.quiz-mode-switch__seg--active { background: #f59e0b; }
.quiz-mode-switch__seg--live-waiting.quiz-mode-switch__seg--active:hover { background: #f59e0b; }
.quiz-mode-switch__seg--live-running.quiz-mode-switch__seg--active { background: #dc2626; animation: quiz-live-pulse 1.8s ease-in-out infinite; }
.quiz-mode-switch__seg--live-running.quiz-mode-switch__seg--active:hover { background: #dc2626; }
.quiz-mode-switch__seg--live-revealed.quiz-mode-switch__seg--active { background: #2563eb; }
.quiz-mode-switch__seg--live-revealed.quiz-mode-switch__seg--active:hover { background: #2563eb; }
.quiz-mode-switch__seg--live-paused.quiz-mode-switch__seg--active { background: #64748b; }
.quiz-mode-switch__seg--live-paused.quiz-mode-switch__seg--active:hover { background: #64748b; }

.input--sm {
  padding: 6px 10px;
  font-size: 0.82rem;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-primary);
}
.input--sm:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }

/* .admin-list-item — przeniesione do base.css (SHARED COMPONENTS): mimo prefiksu
   'admin-' używają go też event/expenses.html i event/seating.html (front gościa). */

/* Harmonogram: pole daty jako "chip" (nie zwykłe pole tekstowe) + siatka ikon + grupowanie dni */
.schedule-date-field { display: flex; align-items: center; gap: 8px; }
.schedule-date-field__icon { font-size: 1rem; flex-shrink: 0; }
.schedule-date-field input.flatpickr-date-schedule { font-weight: 600; cursor: pointer; }

.schedule-icon-picker { position: relative; flex: 0 0 auto; }
.schedule-icon-trigger {
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--accent);
  font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s;
}
.schedule-icon-trigger:hover { border-color: var(--accent); }
.schedule-icon-popover {
  position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 100;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px;
  padding: 12px; width: 280px; max-height: 280px; overflow-y: auto;
  background: var(--bg-surface, #ffffff); border: 1.5px solid var(--border-strong, #cbd5e1); border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}
.icon-picker-btn {
  width: 36px; height: 36px;
  border-radius: 8px; border: 1px solid transparent;
  background: var(--bg-surface-2); color: var(--accent);
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform 0.1s, background 0.15s;
}
.icon-picker-btn:hover { background: var(--bg-surface-3); transform: scale(1.08); }
.icon-picker-btn--active { border-color: var(--accent); background: rgba(99,102,241,0.12); }

/* Wariant popovera otwierany W DÓŁ zamiast w górę (domyślny .schedule-icon-popover
   otwiera się nad triggerem — dobre dla list na środku strony, ale przy triggerze
   blisko góry okna/modala lista ikon wychodzi poza widoczny obszar). */
.schedule-icon-popover--down { bottom: auto; top: calc(100% + 6px); }

.schedule-date-group__header {
  font-family: var(--font-heading);
  font-weight: 700; font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

/* Modern Centered Admin Layout & Modals */
/* .topbar* — ujednolicony partial admin/_topbar.html (2026-09-06, patrz
   rebranding-eventegro-checklist-techniczna.md / changelog). Jeden markup dla
   WSZYSTKICH widoków PA + supervisora. Model nawigacji od 2026-09-06:
   .topbar sam w sobie NIE zawiera już linków powrotu (usunięte .topbar-back/
   .topbar-title) — tylko logo-link (.topbar-brand) i menu użytkownika
   (.topbar-user-menu). Ścieżka nawigacji (breadcrumbs) renderuje się w
   osobnym pasku .topbar-crumbs POD topbarem. Wcześniejsza historia (4
   niezależne kopie topbara, potem back-linki w topbarze) — patrz Faza 6c
   2026-09-03 i checkpoint 2026-09-06 wcześniej w tym pliku. Jedyny
   konsument: szablony extends "admin_base.html". */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  height: 64px;
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.topbar-name { font-size: 0.88rem; color: var(--text-muted); font-weight: 500; }

.topbar-inner {
  max-width: 1080px;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 0; /* .topbar już ma padding 0 24px — druga warstwa paddingu tutaj zabierała ~48px szerokości na telefonie */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar-left { display: flex; align-items: center; min-width: 0; flex-shrink: 0; }
.topbar-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Pasek breadcrumbs pod topbarem — jedyne źródło nawigacji "wstecz" w PA.
   Osobny pasek (nie wewnątrz .topbar) żeby topbar zostawał stałej wysokości
   64px niezależnie od długości ścieżki. */
.topbar-crumbs {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
}
.topbar-crumbs-inner {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.84rem;
}
.topbar-crumbs__link { color: var(--text-muted); text-decoration: none; }
.topbar-crumbs__link:hover { color: var(--accent); text-decoration: underline; }
.topbar-crumbs__current { color: var(--text-primary); font-weight: 600; }
.topbar-crumbs__sep { color: var(--border-strong); }

/* Menu użytkownika (dropdown) — trigger avatar+imię+chevron, panel Zmień dane/Wyloguj. */
.topbar-user-menu { position: relative; }
.topbar-user-menu__trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.topbar-user-menu__trigger:hover { background: var(--bg-surface-2); }
.topbar-user-menu__chevron { color: var(--text-muted); transition: transform var(--transition); flex-shrink: 0; }
.topbar-user-menu__chevron.is-open { transform: rotate(180deg); }
.topbar-user-menu__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 6px;
  z-index: 110;
}
.topbar-user-menu__item {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  color: var(--text-primary);
  text-decoration: none;
}
.topbar-user-menu__item:hover { background: var(--bg-surface-2); }

/* Kontener głównej treści PA — jedna szerokość dla wszystkiego (dashboard,
   panel wydarzenia, wszystkie podstrony modułów), .pa-page--wide tylko dla
   szerokich tabel wyników. Zastępuje .dashboard-main/.admin-main/
   .admin-subpage/.exp-page/.dates-page/.gm-container/.mc-main (rozjechane
   max-width, patrz audyt 2026-09-06). */
.pa-page { max-width: 1040px; width: 100%; margin: 0 auto; padding: 32px 24px 80px; }
.pa-page--wide { max-width: 1100px; }

.admin-section {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.admin-section-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.admin-event-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.qr-box { text-align: center; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.qr-img { width: 140px; height: 140px; border-radius: 16px; background: #fff; border: 1px solid var(--border); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04); }
.qr-url-link { font-size: 0.85rem; font-weight: 600; color: #6366f1; text-decoration: none; transition: color 0.15s; }
.qr-url-link:hover { color: #4f46e5; text-decoration: underline; }

/* Fix Flatpickr altInput widths inside modals & forms */
.flatpickr-input[readonly],
input.flatpickr-datetime,
input.flatpickr-time,
input.flatpickr-date-schedule,
.flatpickr-mobile {
  width: 100% !important;
  box-sizing: border-box !important;
}

.flatpickr-wrapper {
  width: 100% !important;
}

/* Modal form grid fixes to prevent right side overflow */
.modal-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.modal-grid-2 > div {
  min-width: 0;
}

.quiz-controls { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

/* ============================================================
   Plan Stołów — panel admina (js/seating_admin.js)
   ============================================================ */
.seating-columns {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.seating-pool-col {
  flex: 1 1 280px;
  min-width: 260px;
  background: var(--bg-subtle, #f8fafc);
  border-radius: var(--radius-md, 12px);
  padding: 16px;
}
.seating-tables-col {
  flex: 2 1 380px;
  min-width: 280px;
}
.seating-pool-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 60px;
  padding: 6px;
  border-radius: var(--radius-sm, 8px);
  transition: background var(--transition, 0.15s), box-shadow var(--transition, 0.15s);
}
.seating-tables-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.seating-table-box {
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-md, 12px);
  background: var(--bg-card, #fff);
  padding: 0;
  transition: box-shadow var(--transition, 0.15s), border-color var(--transition, 0.15s);
}
.seating-table-box > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  font-weight: 600;
}
.seating-table-box > summary::-webkit-details-marker { display: none; }
.seating-table-box > summary::before {
  content: "▸";
  color: var(--text-muted);
  margin-right: 6px;
  transition: transform var(--transition, 0.15s);
}
.seating-table-box[open] > summary::before { transform: rotate(90deg); }
.seating-table-label {
  padding: 2px 6px;
  border-radius: var(--radius-xs, 4px);
  cursor: text;
}
.seating-table-label:hover { background: var(--accent-light); }
.seating-table-label-input {
  font: inherit;
  font-weight: 600;
  border: 1px solid var(--accent);
  border-radius: var(--radius-xs, 4px);
  padding: 1px 5px;
  width: 160px;
  max-width: 60vw;
}
.seating-table-guests {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 48px;
  padding: 4px 14px 14px 14px;
}
.seating-drop-target {
  background: var(--accent-light) !important;
  box-shadow: inset 0 0 0 2px var(--accent);
}
.seating-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-sm, 8px);
  padding: 7px 10px;
  font-size: 0.87rem;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.seating-pool-list .seating-chip { background: var(--bg-card, #fff); }
.seating-chip--dragging { opacity: 0.35; }
.seating-chip--ghost {
  box-shadow: 0 10px 28px rgba(0,0,0,0.25);
  opacity: 0.95;
  transform: scale(1.03);
}
.seating-chip--child { border-left: 3px solid #f59e0b; }
.seating-chip-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: text;
}
.seating-chip-name-input {
  flex: 1;
  min-width: 0;
  font: inherit;
  border: 1px solid var(--accent);
  border-radius: var(--radius-xs, 4px);
  padding: 1px 5px;
}
.seating-chip-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  padding: 2px 4px;
  border-radius: var(--radius-xs, 4px);
  color: var(--text-muted);
}
.seating-chip-btn:hover { background: var(--accent-light); color: var(--accent); }
@media (max-width: 720px) {
  .seating-columns { flex-direction: column; }
  .seating-pool-col, .seating-tables-col { width: 100%; }
}

/* Notatki (diety/alergie) — ikonka podświetlona gdy notatka jest wypełniona */
.seating-chip-btn--active { background: rgba(245, 158, 11, 0.15); color: #b45309; }

/* Kategorie/grupy gości — kolorowa kropka na chipie, otwiera dropdown wyboru/zarządzania */
.seating-chip-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border-color, #cbd5e1);
  background: transparent;
  flex-shrink: 0;
}
.seating-cat-wrap { position: relative; display: inline-flex; }
.seating-cat-dropdown {
  position: absolute;
  left: 0;
  z-index: 60;
  min-width: 220px;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-sm, 8px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
  padding: 6px;
  cursor: default;
}
.seating-cat-dropdown--down { top: calc(100% + 6px); }
.seating-cat-dropdown--up { bottom: calc(100% + 6px); }
.seating-cat-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 6px 8px;
  border-radius: var(--radius-xs, 4px);
  color: var(--text-color, #1e293b);
}
.seating-cat-option:hover { background: var(--accent-light); }
.seating-cat-row { display: flex; align-items: center; gap: 2px; }
.seating-cat-row .seating-cat-option { flex: 1; min-width: 0; }
.seating-cat-edit-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  padding: 4px 6px;
  border-radius: var(--radius-xs, 4px);
  color: var(--text-muted);
}
.seating-cat-edit-btn:hover { background: var(--accent-light); color: var(--accent); }
.seating-cat-add {
  border-top: 1px solid var(--border-color, #e2e8f0);
  margin-top: 6px;
  padding-top: 8px;
}
.seating-cat-add input { width: 100%; font-size: 0.85rem; padding: 5px 8px; }
.seating-cat-palette { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.seating-cat-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
}
.seating-cat-swatch--selected { border-color: var(--text-color, #1e293b); }

/* Limit miejsc na stolik — 0 = bez limitu, licznik czerwony po przekroczeniu */
.seating-capacity-input {
  width: 52px;
  padding: 3px 6px;
  font-size: 0.8rem;
  text-align: center;
}
.seating-capacity--over { color: #dc2626 !important; font-weight: 700; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .modal-alert--error { color: #fca5a5; }
}

@media (max-width: 480px) {
  .type-picker { grid-template-columns: 1fr; }
  .modal-card--dark { padding: 24px; }
  /* .topbar* — override responsywny (Faza 6c 2026-09-03, zaktualizowane po
     ujednoliceniu partiala 2026-09-06: .topbar-left/.topbar-right zamiast
     .topbar-inner > div:first-child/:last-child). */
  .topbar { padding: 0 16px; }
  .topbar-inner { gap: 8px; }
  .topbar-left { gap: 8px; }
  .topbar-right { gap: 8px; }
  .topbar-new-event-label { display: none; }
  .topbar-crumbs-inner { padding: 8px 16px; font-size: 0.78rem; }
  .topbar-user-menu__trigger .topbar-name { display: none; }
}

/* ============================================================
   MODUŁ WYDATKI (event_expenses) — podstrona PA (od 2026-08-28)
   Theme-aware (tokeny), namespace .exp-*. Layout (max-width/margin/padding)
   w .pa-page (admin.css) od 2026-09-06.
   ============================================================ */
.exp-lead {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 22px;
}

.exp-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.exp-stat {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}
.exp-stat__label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 600;
}
.exp-stat__value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 4px;
}
.exp-stat__value--ok { color: #10b981; }
.exp-stat__value--warn { color: #f59e0b; }

.exp-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 24px;
}
.exp-card__title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.exp-card--collapsible > summary {
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}
.exp-card--collapsible > summary::marker { color: var(--text-muted); }
.exp-card__inner { margin-top: 14px; }

.exp-tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.exp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  font-size: 0.82rem;
}
.exp-chip--editable { padding: 4px 6px 4px 12px; background: var(--bg-surface-2); }
.exp-chip__btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 2px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1;
}
.exp-chip__btn--danger { color: #ef4444; font-size: 0.9rem; }
.exp-chip__btn--ok { color: #10b981; font-size: 0.9rem; }
.exp-chip__input {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  font-size: 0.82rem;
  width: 130px;
  background: var(--bg-primary);
  color: var(--text-primary);
}
.exp-muted { font-size: 0.82rem; color: var(--text-muted); }

.exp-tag-add { display: flex; gap: 8px; }
.exp-input {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.88rem;
  font-weight: 400;
  background: var(--bg-primary);
  color: var(--text-primary);
  width: 100%;
  box-sizing: border-box;
}
.exp-input::placeholder { color: var(--text-faint); }
.exp-tag-add .exp-input { flex: 1; max-width: 240px; }

.exp-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  align-items: end;
}
.exp-field { display: flex; flex-direction: column; gap: 4px; }
.exp-field__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}
.exp-field--edit .exp-field__label { font-size: 0.75rem; }

.exp-filters { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.exp-filters .exp-input { max-width: 220px; }

.exp-list { display: flex; flex-direction: column; gap: 10px; }
.exp-row {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  background: var(--bg-surface);
}
.exp-row__main { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.exp-row__body { flex: 1; min-width: 200px; }
.exp-row__head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.exp-row__title { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); }
.exp-row__meta { font-size: 0.82rem; color: var(--text-muted); }
.exp-row__meta strong { color: var(--text-primary); }
.exp-row__note { font-size: 0.8rem; color: var(--text-faint); margin-top: 4px; }
.exp-row__receipt { font-size: 0.78rem; color: var(--accent); text-decoration: underline; display: inline-block; margin-top: 4px; }
.exp-row__side { text-align: right; }
.exp-row__amount { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }
.exp-row__actions { display: flex; gap: 6px; margin-top: 8px; justify-content: flex-end; }
.exp-row__edit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  align-items: end;
}

.exp-badge {
  border-radius: var(--radius-full);
  padding: 2px 10px;
  font-size: 0.75rem;
  font-weight: 600;
}
.exp-badge--tag { background: var(--accent-light); color: var(--accent); }
.exp-badge--settled { background: #dcfce7; color: #15803d; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .exp-badge--settled { background: rgba(34, 197, 94, 0.18); color: #4ade80; }
}
:root[data-theme="dark"] .exp-badge--settled { background: rgba(34, 197, 94, 0.18); color: #4ade80; }

.text-danger { color: #ef4444; }
.exp-inline { display: inline-flex; align-items: center; gap: 6px; }
.exp-inline--tight { gap: 4px; }
.exp-btn-row { display: flex; gap: 6px; }

/* ============================================================
   SAMODZIELNE PODSTRONY PANELU PA (od 2026-08-28)
   gallery_comments.html, guest_book_entries.html — wspólny szkielet.
   Layout (max-width/margin/padding) w .pa-page (admin.css) od 2026-09-06.
   ============================================================ */
.admin-subpage__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.admin-subpage__lead {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.admin-filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.admin-filter-bar .input,
.admin-filter-bar select { max-width: 220px; }

.admin-list { display: flex; flex-direction: column; gap: 10px; }
.admin-list-row {
  display: flex;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  background: var(--bg-surface);
}
.admin-list-row--col { flex-direction: column; gap: 6px; }
.admin-list-row--flagged { border-color: #fbbf24; background: rgba(251, 191, 36, 0.08); }
.admin-list-row__thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.admin-list-row__body { flex: 1; min-width: 0; }
.admin-list-row__head {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.admin-list-row__name { font-size: 0.88rem; font-weight: 700; }
.admin-list-row__time { font-size: 0.75rem; color: var(--text-muted); }
.admin-list-row__text { font-size: 0.9rem; margin: 0 0 6px; color: var(--text-primary); }
.admin-list-row__meta { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 8px; }
.admin-list-row__actions { display: flex; gap: 8px; }
.badge--muted { background: var(--bg-surface-2); color: var(--text-muted); }
.badge--inline-gap { margin-left: 6px; }

/* ============================================================
   MODALE PANELU WYDARZENIA (admin/event.html) — od 2026-08-28
   ~15 modali dzieli ten sam wzorzec: białe okno + ✕ + tytuł +
   podtytuł + pola z etykietami + czerwony baner błędu.
   ============================================================ */
.ev-modal-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 32px;
  max-width: 520px;
  width: 92%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  position: relative;
}
.ev-modal-card--sm { max-width: 460px; width: 90%; }
.ev-modal-card--md { max-width: 540px; }
.ev-modal-card--lg { max-width: 840px; width: 95%; max-height: 90vh; }
.ev-modal-card__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  border: none;
  color: #64748b;
  font-size: 1.1rem;
  cursor: pointer;
}
.ev-modal-card__close:hover { background: rgba(0, 0, 0, 0.12); }
.ev-modal-card__title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.ev-modal-card__title--lg { font-size: 1.6rem; font-weight: 800; color: #0f172a; }
.ev-modal-card__title--icon { display: flex; align-items: center; gap: 10px; }
.ev-modal-card__sub {
  font-size: 0.83rem;
  color: #64748b;
  margin-bottom: 20px;
}
.ev-modal-card__sub--center { text-align: center; max-width: 580px; margin-left: auto; margin-right: auto; }
.ev-modal-head-center { text-align: center; margin-bottom: 24px; }
.ev-modal-emoji { font-size: 2.2rem; display: inline-block; margin-bottom: 6px; }
.ev-modal-emoji--sm { font-size: 1.5rem; }

.ev-field { margin-bottom: 14px; }
.ev-field--lg { margin-bottom: 18px; }
.ev-field__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}
.ev-field__label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.ev-field__label-row .ev-field__label { margin-bottom: 0; }
.ev-field-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ev-hint { font-size: 0.78rem; color: #94a3b8; margin-bottom: 14px; }

.ev-alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #b91c1c;
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  font-size: 0.83rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.ev-alert-error--center { text-align: center; padding: 12px; border-radius: var(--radius-xs); border-color: rgba(239, 68, 68, 0.3); }
.ev-form-actions { margin-bottom: 10px; }

/* Sekcja podrzędna w modalu (np. „Prywatne zdjęcia" w modalu dat) */
.ev-modal-subsection {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.ev-modal-subsection__head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ev-modal-subsection__title { font-family: var(--font-heading, 'Outfit', sans-serif); font-size: 0.95rem; font-weight: 700; margin: 0; }
.ev-modal-subsection__desc { font-size: 0.8rem; color: #64748b; margin-bottom: 12px; }
.ev-icon-lg { font-size: 1.2rem; }

.ev-check-tile {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-xs);
  margin-bottom: 6px;
}
.ev-check-tile input { margin-top: 2px; width: auto; }
.ev-check-tile__hint { color: #64748b; }
.ev-saved-ok { font-size: 0.78rem; color: #15803d; margin: 0; }

/* Pakiety — karty w modalu „Opublikuj" i „Upgrade" */
.ev-package__note { font-size: 0.82rem; color: var(--text-muted); text-align: center; margin: 0 0 18px; }
.ev-package-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 24px; }
.ev-package {
  border: 2px solid var(--border, #e2e8f0);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fafafa;
  transition: border-color .2s;
  position: relative;
}
.ev-package--featured {
  border: 2.5px solid #6366f1;
  background: #fff;
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.15);
}
.ev-package__name { font-size: 1.15rem; font-weight: 700; color: #0f172a; margin-bottom: 4px; }
.ev-package__name--featured { color: #6366f1; }
.ev-package__per { font-size: 0.8rem; font-weight: 500; color: #64748b; }
.ev-package__badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: #6366f1;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ev-package__feats {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: 0.83rem;
  color: #475569;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ev-package__feats li { display: flex; align-items: center; gap: 8px; }
.ev-package__feats li.is-highlight {
  font-weight: 700;
  color: #059669;
  font-size: 0.88rem;
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 8px;
  border-radius: var(--radius-xs);
}
.ev-package__feats li.is-total { color: #0f172a; font-weight: 600; margin-top: 2px; }
.ev-package__feats li.is-total--green { color: #10b981; }

/* Upgrade — wiersze wyboru */
.ev-upgrade-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.ev-upgrade-row {
  border: 1.5px solid var(--border-strong, #cbd5e1);
  border-radius: var(--radius-xs);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ev-upgrade-row__name { font-weight: 700; font-size: 1.05rem; color: #0f172a; }
.ev-upgrade-row__desc { font-size: 0.8rem; color: #64748b; }
.ev-upgrade-note { font-size: 0.85rem; color: #10b981; font-weight: 600; text-align: center; }

/* Pasek „opublikuj" / „pakiet" nad siatką modułów */
.ev-publish-bar {
  border-radius: var(--radius-sm);
  padding: 18px 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.ev-publish-bar--cta {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(16, 185, 129, 0.08) 100%);
  border: 1.5px dashed #818cf8;
}
.ev-publish-bar--paid {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.25);
}
/* Epik 2: < 3 dni do payment_deadline (albo już minął) — baner blokujący, czerwony */
.ev-publish-bar--urgent {
  background: rgba(239, 68, 68, 0.08);
  border: 1.5px solid #ef4444;
}
.ev-publish-bar--urgent .ev-publish-bar__title { color: #dc2626; }
.ev-publish-bar__title { font-weight: 700; font-size: 1.05rem; color: var(--text-primary); margin-bottom: 4px; }
.ev-publish-bar__desc { font-size: 0.85rem; color: var(--text-muted); }
.ev-publish-bar__chip {
  background: #10b981;
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
}
.ev-publish-bar__note { color: #059669; font-weight: 600; }
/* Druga karta pod banerem pakietu — zakres dostępności serwisu + link do /dates
   (PA restrukturyzacja 2026-09-05: pigułka dat i "Przedłuż" przeniesione tu z kafli modułów). */
/* Cały pasek jako przycisk/link (karta "Daty" i baner pakietu z dostępnym upgrade'em,
   PA restrukturyzacja 2026-09-05) — reset stylów natywnego <button>/<a>, zachowuje wygląd .ev-publish-bar. */
.ev-publish-bar--clickable {
  width: 100%;
  text-align: left;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  transition: filter 0.15s, border-color 0.15s;
}
.ev-publish-bar--clickable:hover { filter: brightness(0.97); border-color: rgba(16, 185, 129, 0.45); }

/* Karta "Zarządzaj datami" — czytelna jako duży przycisk, nie karta informacyjna
   (Mariusz 2026-09-05: dotychczasowy .ev-publish-bar--clickable za mało wyróżniał się na tle). */
.ev-publish-bar--btn {
  border: 2px solid #10b981;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.18);
}
.ev-publish-bar--btn:hover {
  border-color: #059669;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.28);
}
.ev-publish-bar--btn .ev-publish-bar__chip { font-size: 0.85rem; padding: 6px 14px; }

/* Sekcja modułów — nagłówek + siatka kafli */
.ev-modules-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.ev-modules-head__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ev-modules-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-top: 16px; }
.ev-modules-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  border: 1.5px dashed var(--border-strong);
}
.btn--publish { background: linear-gradient(135deg, #10b981 0%, #059669 100%); border: none; font-weight: 700; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); }

/* Karta modułu — nagłówek/ikona/badge */
.ev-modcard__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ev-modcard__title-row { display: flex; align-items: center; gap: 12px; }
.ev-modcard__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-xs);
  background: rgba(99, 102, 241, 0.1);
  color: #4f46e5;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.ev-modcard__unread {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 8px;
  background: #dc2626;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #fff;
}
.ev-modcard__name { font-size: 1.02rem; font-weight: 700; color: var(--text-primary); margin: 0; }
.ev-modcard__sub { font-size: 0.82rem; color: var(--text-muted); margin: 0 0 12px; line-height: 1.4; }
.ev-modcard__info-icons { display: flex; align-items: center; gap: 5px; margin-bottom: 12px; flex-wrap: wrap; }
.ev-modcard__info-icon {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-xs);
  background: rgba(99, 102, 241, 0.12);
  color: #4f46e5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ev-modcard__period { margin-bottom: 14px; }
.ev-modcard__period-text { font-size: 0.78rem; display: inline-block; }
.ev-modcard__cta { width: 100%; text-align: center; }

/* Współorganizatorzy */
.ev-coorg-intro { margin-bottom: 16px; }
.ev-coorg-form { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.ev-coorg-row { display: flex; gap: 8px; }
.ev-coorg-hint { font-size: 0.78rem; margin: 0; }
.ev-coorg-check { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; }
.ev-coorg-list { display: flex; flex-direction: column; gap: 8px; }
.ev-coorg-item { flex-direction: column; align-items: stretch; }
.ev-coorg-item__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ev-coorg-item__name { display: flex; align-items: center; gap: 8px; }
.ev-coorg-item__actions { display: flex; gap: 6px; flex-shrink: 0; }
.ev-coorg-edit {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eef2f7;
}
.ev-locked-msg { font-size: 0.85rem; margin-bottom: 16px; }
.ev-coorg-edit .btn[type="submit"], .u-self-start { align-self: flex-start; }
.ev-invited-msg { font-size: 0.88rem; margin-bottom: 16px; }
.ev-empty-msg { font-size: 0.85rem; }

/* Danger zone */
.ev-danger { border-color: var(--color-danger, #dc2626); }
.ev-danger__head { display: flex; align-items: center; gap: 8px; color: var(--color-danger, #dc2626); }
.ev-danger__text { margin-bottom: 16px; }

/* Topbar wewnątrz event.html — .ev-topbar-left/right usunięte 2026-09-06,
   zastąpione wspólnymi .topbar-left/.topbar-right (patrz góra pliku). */
.ev-adv-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  font-size: 0.82rem;
  cursor: pointer;
  user-select: none;
}
.btn--newevent { background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); border: none; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: var(--radius-xs); color: #fff; cursor: pointer; }

/* Kody dostępu (test / readonly / custom) */
.ev-access-block { align-items: flex-start; margin-left: auto; }
.ev-access-toggles { display: flex; flex-direction: row; align-items: center; gap: 14px; }
.ev-access-col { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ev-access-copy-row { display: flex; align-items: center; gap: 6px; }
.ev-access-copy-btn { background: none; border: none; padding: 2px; cursor: pointer; color: #6366f1; display: flex; }
.ev-access-err { color: #dc2626; }

/* Dawny osobny ciemny topbar podstron (admin/_topbar.html, tło #0f172a hardcoded)
   usunięty 2026-09-06 — podstrony modułu używają teraz wspólnego jasnego,
   theme-aware .topbar z topbar_variant='sub' (patrz góra pliku i
   admin/_topbar.html). */

.seating-cat-add-btn { width: 100%; margin-top: 4px; }

/* Modal podglądu QR (admin/_qr_challenge_preview_modal.html) */
.qr-preview-card {
  max-width: 320px;
  width: 90%;
  text-align: center;
  position: relative;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 28px 24px;
}
.qr-preview-card__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  background: rgba(0, 0, 0, 0.06);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.qr-preview-card__title { margin: 0 0 16px; font-size: 0.95rem; }
.qr-preview-card__img {
  width: 260px;
  height: 260px;
  max-width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border, #e2e8f0);
}

/* Strona powrotu z płatności (admin/payment_return.html) */
.payment-return { max-width: 480px; margin: 60px auto; padding: 0 16px; text-align: center; }
.payment-return__card {
  padding: 32px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border, #e2e8f0);
  background: var(--bg-primary, #fff);
}
.payment-return__card--ok { border-color: #bbf7d0; background: #f0fdf4; }
.payment-return__card--fail { border-color: #fecaca; background: #fef2f2; }
:root[data-theme="dark"] .payment-return__card--ok { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.3); }
:root[data-theme="dark"] .payment-return__card--fail { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); }
.payment-return__emoji { font-size: 2rem; margin-bottom: 8px; }
.payment-return__card h2 { margin: 0 0 8px; }
.payment-return__msg { font-size: 0.9rem; margin-bottom: 18px; }
.payment-return__msg--tight { margin-bottom: 0; }

/* Statystyki wizyt (admin/visit_stats.html) */
.vstats { max-width: 760px; margin: 28px auto 60px; padding: 0 16px; }
.vstats__card {
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border, #e2e8f0);
  background: var(--bg-primary, #fff);
}
.vstats__lead { font-size: 0.8rem; margin-top: 0; margin-bottom: 18px; }
.vstats__empty { text-align: center; padding: 24px 0; }
.vstats__tiles { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.vstats__tile {
  flex: 1;
  min-width: 130px;
  background: var(--bg-surface, #f8fafc);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.vstats__tile--ok { background: #ecfdf5; }
.vstats__tile--warn { background: #fef2f2; }
:root[data-theme="dark"] .vstats__tile--ok { background: rgba(34,197,94,0.1); }
:root[data-theme="dark"] .vstats__tile--warn { background: rgba(239,68,68,0.1); }
.vstats__num { font-size: 1.4rem; font-weight: 700; }
.vstats__num-sub { font-size: 0.9rem; }
.vstats__tile-label { font-size: 0.78rem; }
.vstats__chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 130px;
  border-bottom: 1px solid var(--border-subtle, #eef2f7);
  padding-bottom: 2px;
}
.vstats__bar {
  flex: 1;
  min-width: 6px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  gap: 1px;
  cursor: default;
}
.vstats__bar-seg--named { background: #6366f1; border-radius: 2px 2px 0 0; height: var(--vstats-h, 0%); }
.vstats__bar-seg--anon { background: #c7d2fe; height: var(--vstats-h, 0%); }
.vstats__xaxis { display: flex; gap: 3px; margin-top: 4px; }
.vstats__xlabel {
  flex: 1;
  min-width: 6px;
  text-align: center;
  font-size: 0.62rem;
  color: var(--text-faint, #94a3b8);
  white-space: nowrap;
}
.vstats__legend { display: flex; gap: 14px; margin-top: 12px; font-size: 0.75rem; color: var(--text-muted, #64748b); }
.vstats__legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 4px;
}
.vstats__legend-dot--named { background: #6366f1; }
.vstats__legend-dot--anon { background: #c7d2fe; }

/* ============================================================
   KARTY-KAFLE w partialach panelu (ankiety, wyzwania QR) — od 2026-08-28
   ============================================================ */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.cfg-tile {
  background: var(--bg-primary, #fff);
  border: 1.5px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-xs);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cfg-tile.info-tile--active,
.cfg-tile--active { border-color: rgba(99, 102, 241, 0.4); }
.cfg-tile__row { display: flex; justify-content: space-between; align-items: center; }
.cfg-tile__title-wrap { display: flex; align-items: center; gap: 6px; }
.cfg-tile__title { font-weight: 700; font-size: 0.9rem; color: var(--text-primary, #1e293b); }
.cfg-tile__meta { font-size: 0.78rem; color: var(--text-muted, #64748b); }
.cfg-tile__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.pill {
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  font-weight: 600;
}
.pill--danger { background: #fef2f2; color: #dc2626; }
.pill--accent { background: var(--accent-light, #eef2ff); color: var(--accent, #4f46e5); }
.warn-inline { color: #d97706; }

.drag-handle { cursor: grab; color: var(--text-faint, #94a3b8); flex-shrink: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-shrink-0 { flex-shrink: 0; }
.u-min-w-0 { min-width: 0; }

/* Wyzwania QR — lista zestawów + kody (admin/_qr_challenge_list.html, _tasks.html) */
.qrc-set-title { font-weight: 700; font-size: 0.9rem; color: var(--text-primary, #1e293b); }
.qrc-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.qrc-row__left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.qrc-addbox {
  background: var(--bg-surface-2, #f1f5f9);
  padding: 16px;
  border-radius: var(--radius-xs);
  margin-bottom: 16px;
}
.qrc-addbox__title { margin: 0 0 12px; font-size: 0.9rem; font-weight: 700; }
.qrc-addbox__row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.qrc-input-grow2 { flex: 2; min-width: 200px; }
.qrc-input-grow1 { flex: 1; min-width: 150px; }
.qrc-edit-row .qrc-input-grow2 { min-width: 180px; }
.qrc-edit-row .qrc-input-grow1 { min-width: 120px; }
.qrc-textarea { width: 100%; resize: vertical; margin-bottom: 8px; }
.qrc-toolbar { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.qrc-task-list { display: flex; flex-direction: column; gap: 6px; }
.qrc-task-item { display: block; }
.qrc-task-summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  gap: 8px;
}
.qrc-task-summary::-webkit-details-marker { display: none; }
.qrc-task-summary__left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.qrc-task-summary__right { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.qrc-task-thumb {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border, #e2e8f0);
  flex-shrink: 0;
}
.qrc-task-count { font-size: 0.78rem; }
.qrc-edit-form { margin-top: 10px; }
.qrc-edit-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.qrc-empty { text-align: center; padding: 16px 0; }

/* Lista pytań ankiety (admin/_survey_questions.html) */
.sq-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.sq-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: var(--radius-xs);
}
:root[data-theme="dark"] .sq-item { background: rgba(255, 255, 255, 0.04); }
.sq-item__label { font-size: 0.85rem; color: var(--text-primary, #1e293b); }
.sq-item__type { color: var(--text-faint, #94a3b8); font-size: 0.75rem; }
.sq-item__actions { display: flex; gap: 2px; flex-shrink: 0; }
.sq-required-wrap { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 400; }
.ev-field__label--form {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

/* Kontener podstrony panelu (survey_edit, info_page_edit itd.) */
.panel-page { max-width: 880px; margin: 28px auto 60px; padding: 0 16px; }

/* Karta panelu podstrony (survey_edit, info_page_edit itd.) */
.panel-card {
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border, #e2e8f0);
  background: var(--bg-primary, #fff);
}
.panel-card__title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--text-primary, #1e293b);
}
.panel-card__subtitle { font-size: 0.95rem; font-weight: 700; margin: 0 0 12px; }
.panel-back { margin-bottom: 16px; }
.panel-form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.panel-card__title--icon { display: flex; align-items: center; gap: 8px; }
.flex-field-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.flex-field-row--tight { margin-bottom: 8px; }
.flex-field-row > div { flex: 1; min-width: 150px; }
.flex-field-row > div.min-160 { min-width: 160px; }
.panel-hint { font-size: 0.75rem; margin: 0 0 18px; }
.panel-alert-error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #dc2626;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 0.85rem;
}

/* Kafel-zgoda z kolorowym tłem (survey_edit — RODO / wymuszenie) */
.consent-tile {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 18px;
  cursor: pointer;
}
.consent-tile input { margin-top: 2px; }
.consent-tile__text { font-size: 0.82rem; color: #374151; line-height: 1.4; }
.consent-tile--amber { background: rgba(217, 119, 6, 0.08); border: 1px solid rgba(217, 119, 6, 0.3); }
.consent-tile--red { background: rgba(220, 38, 38, 0.06); border: 1px solid rgba(220, 38, 38, 0.25); }

/* Tabela wyników (survey_results, qr_challenge_results...) */
.panel-page--wide { max-width: 1100px; }
.panel-lead { color: var(--text-muted, #64748b); margin-bottom: 20px; }
.panel-h1 { font-size: 1.4rem; font-weight: 700; margin-bottom: 4px; }
.panel-back--tight { margin-bottom: 8px; }
.data-table-wrap { padding: 0; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table thead tr { background: var(--bg-surface-2, rgba(0, 0, 0, 0.03)); }
.data-table th { padding: 10px 14px; text-align: left; white-space: nowrap; }
.data-table td { padding: 10px 14px; }
.data-table td.nowrap { white-space: nowrap; }
.data-table td.muted { color: var(--text-muted, #64748b); }
.data-table tbody tr { border-top: 1px solid var(--border, rgba(0, 0, 0, 0.08)); }
.card--empty { padding: 1.5rem; text-align: center; color: var(--text-muted, #64748b); }
.data-table th.center, .data-table td.center { text-align: center; }
.tick-done { color: #16a34a; font-weight: 700; }
.tick-none { color: var(--border-strong, #cbd5e1); }

/* Uczestnicy i aktywność (admin/guest_activity.html) */
.ga-addbox {
  background: var(--bg-surface, #f8fafc);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ga-addbox__tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.ga-add-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ga-import-col { display: flex; flex-direction: column; gap: 8px; }
.ga-import-hint { font-size: 0.78rem; margin: 0; }
.ga-import-textarea { font-family: monospace; font-size: 0.82rem; }
.ga-input-grow { flex: 1; min-width: 160px; }
.ga-checkline { display: flex; align-items: center; gap: 4px; font-size: 0.8rem; }
.ga-checkline--nowrap { white-space: nowrap; }
.ga-err { color: #b91c1c; font-size: 0.8rem; }
.ga-err--sm { font-size: 0.78rem; }
.ga-err--pre { white-space: pre-line; }
.ga-preview {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-xs);
  overflow: hidden;
}
.ga-preview__table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.ga-preview__table td { padding: 4px 8px; }
.ga-preview__table tr { border-bottom: 1px solid var(--border-subtle, #f1f5f9); }
.ga-preview__row--dim { opacity: 0.5; }
.ga-preview__row--err { background: #fef2f2; }
.ga-preview__status { font-size: 0.72rem; color: var(--text-muted, #64748b); }
.ga-preview__status--err { color: #b91c1c; font-weight: 600; }

.ga-table-wrap { overflow-x: auto; }
.ga-table { width: 100%; border-collapse: collapse; font-size: 0.83rem; }
.ga-table thead tr { text-align: left; color: var(--text-muted, #64748b); border-bottom: 1px solid var(--border-subtle, #eef2f7); }
.ga-table th { padding: 6px 8px; }
.ga-table th.sortable { cursor: pointer; user-select: none; }
.ga-table td { padding: 6px 8px; }
.ga-table td.nowrap { white-space: nowrap; }
.ga-table td.center { text-align: center; }
.ga-table td.strong { font-weight: 600; }
.ga-table tbody tr { border-bottom: 1px solid var(--bg-surface, #f8fafc); }
.ga-row--dim { opacity: 0.5; }
.ga-placeholder-tag { color: var(--text-faint, #94a3b8); font-weight: 400; font-size: 0.75rem; }
.ga-contact-edit { display: flex; gap: 4px; }
.ga-contact-input { width: 150px; font-size: 0.78rem; }
.ga-clickable { cursor: pointer; }
.ga-btn-tight { padding: 2px 6px; }
.ga-btn-danger:hover { color: #dc2626; }
.ga-quiz-ok { color: #16a34a; }
.ga-quiz-bad { color: #dc2626; }
.ga-empty { text-align: center; padding: 20px 0; }
.ga-dl-check { width: 15px; height: 15px; accent-color: #4f46e5; cursor: pointer; }
.ga-unread-badge {
  display: inline-block;
  margin-left: 4px;
  background: #dc2626;
  color: #fff;
  border-radius: 9px;
  padding: 0 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
}

/* Modal QR uczestnika (guest_activity) */
.ga-qr-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 28px;
  max-width: 320px;
  width: 90%;
  text-align: center;
  position: relative;
}
.ga-qr-card__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  border: none;
  cursor: pointer;
}
.ga-qr-card__title { margin: 0 0 12px; }
.ga-qr-card__img { width: 220px; height: 220px; }
.ga-qr-card__hint { font-size: 0.8rem; margin-top: 10px; }

/* Edytor podstrony informacyjnej (admin/info_page_edit.html) */
.ipe-topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.ipe-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.ipe-icon-picker { position: relative; flex-shrink: 0; }
.ipe-icon-trigger { width: 42px; height: 42px; }
.ipe-icon-static {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-xs);
  background: rgba(99, 102, 241, 0.12);
  color: #4f46e5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ipe-title-wrap { flex: 1; min-width: 180px; }
.ipe-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary, #1e293b);
}
.ipe-btn-shrink { flex-shrink: 0; }
.ipe-btn-tight { padding: 5px 9px; }
.ipe-dates-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: var(--radius-xs);
}
:root[data-theme="dark"] .ipe-dates-summary { background: rgba(255, 255, 255, 0.04); }
.ipe-dates-summary__text { font-size: 0.83rem; color: #374151; }
.ipe-content-block { margin-bottom: 20px; }
.ipe-content-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ipe-content-label { font-size: 0.8rem; font-weight: 600; color: #374151; margin: 0; }
.ipe-btn-reset { font-size: 0.78rem; color: #6366f1; border: 1px solid rgba(99, 102, 241, 0.2); }
.ipe-editor { height: 640px; }

.wse-image-block { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.wse-image-preview { max-width: 320px; max-height: 180px; object-fit: cover; border-radius: var(--radius-xs); }
.wse-image-actions { display: flex; gap: 8px; align-items: center; }
.wse-image-actions label.btn { cursor: pointer; }

.access-toggle-btn--test, .access-panel--test, .access-tab--test { --ac-color: #dc2626; }
.access-toggle-btn--readonly, .access-panel--readonly, .access-tab--readonly { --ac-color: #0284c7; }
.access-toggle-btn--gallery-readonly, .access-panel--gallery-readonly, .access-tab--gallery-readonly { --ac-color: #059669; }
.access-toggle-btn--custom, .access-panel--custom, .access-tab--custom { --ac-color: #334155; }

/* ============================================================
   CSP Etap 5 — gałąź supervisora (prices / cron / blog_edit)
   Namespace .spv-*. Panel supervisora jest dark-only.
   Reużywa istniejących: .pa-page, .dashboard-header, .card,
   .supervisor-table, .badge, .alert, .page-title, .input.
   ============================================================ */

/* Baner potwierdzenia / błędu — pełna szerokość (globalny .alert ma max-width:400px) */
.spv-alert { max-width: none; margin-bottom: 24px; font-weight: 500; }
.spv-alert--ok { display: flex; align-items: center; gap: 10px; }

/* Callout informacyjny (cron: ostrzeżenie o 2 workerach) */
.spv-callout {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Panel-karta obejmujący tabelę (ciemne tło, zaokrąglenie, cień) —
   panel supervisora jest dark-only (patrz nagłówek sekcji), więc kolor stały,
   nie token motywu (alias --bg-card przełączyłby to na białe w light). */
.spv-panel {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin-bottom: 24px;
}
.spv-panel__scroll { overflow-x: auto; }
.spv-panel__footer {
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Tabela cennika/cronu — dopina się do .supervisor-table */
.spv-table { width: 100%; border-collapse: collapse; }
.spv-table thead tr { border-bottom: 1px solid rgba(255, 255, 255, 0.1); background: rgba(0, 0, 0, 0.2); }
.spv-table th { padding: 14px 18px; text-align: left; }
.spv-table td { padding: 14px 18px; }
.spv-table tbody tr { border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.spv-table .th--center,
.spv-table .td--center { text-align: center; }
.spv-table .th--right,
.spv-table .td--right { text-align: right; }
.spv-table .th--price { text-align: right; width: 160px; }
.spv-table .th--action { text-align: center; width: 130px; }
.spv-table .td--muted { color: #94a3b8; font-size: 0.9rem; }
.spv-table .td--empty { padding: 24px 18px; text-align: center; color: var(--text-muted); }

/* Wiersz modułu w cenniku */
.spv-mod { display: flex; align-items: center; gap: 12px; }
.spv-mod__icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: rgba(99, 102, 241, 0.15); color: #818cf8;
  display: flex; align-items: center; justify-content: center;
}
.spv-mod__name { font-weight: 600; font-size: 0.95rem; color: var(--text-primary, #f8fafc); }
.spv-mod__soon {
  font-size: 0.72rem; padding: 2px 8px; border-radius: 99px; margin-left: 6px;
  background: rgba(255, 255, 255, 0.1); color: #94a3b8; font-weight: 500;
}
.spv-mod__subtitle { font-size: 0.8rem; color: #94a3b8; }

.spv-badge-default { background: rgba(255, 255, 255, 0.08); color: #cbd5e1; }

/* Pole ceny (input number + jednostka) */
.spv-price { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.spv-price__input {
  width: 110px; text-align: right; font-weight: 600; font-family: monospace;
  font-size: 0.95rem; padding: 6px 10px; border-radius: 8px;
}
.spv-price__unit { font-size: 0.85rem; color: #94a3b8; }
.spv-price__dash { font-size: 0.8rem; color: #64748b; }

.spv-btn-reset { color: #ef4444; border-color: rgba(239, 68, 68, 0.3); font-size: 0.78rem; padding: 4px 8px; }
.spv-btn-save {
  padding: 10px 24px; font-size: 0.95rem; font-weight: 600; border-radius: 12px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

/* Chipy "darmowy dla typu" (Etap 7, 2026-09-06) — checkbox + label, wiersz modułu */
.spv-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.spv-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px;
  border-radius: 99px; font-size: 0.75rem; cursor: pointer;
  background: rgba(255, 255, 255, 0.06); color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.spv-chip input { accent-color: #10b981; }
.spv-chip:has(input:checked) { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; border-color: rgba(16, 185, 129, 0.3); }

.spv-price__default { text-align: right; font-size: 0.75rem; margin-top: 4px; }

/* Nadpisania per typ wydarzenia — wiersz rozszerzony pod wierszem modułu */
.spv-override-row td { padding: 8px 18px 14px; background: rgba(0, 0, 0, 0.12); }
.spv-overrides { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 0.82rem; color: #cbd5e1; }
.spv-override-chip {
  padding: 3px 10px; border-radius: 8px; background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc; font-family: monospace;
}
.spv-override-form summary { font-size: 0.82rem; color: #94a3b8; cursor: pointer; }
.spv-override-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.spv-override-inline .input { padding: 6px 10px; font-size: 0.85rem; }
.spv-override-inline select.input { min-width: 160px; }
.spv-override-inline input[type="number"] { width: 110px; }

/* cron — sekcja statusu retencji */
.spv-section-title { font-size: 1.05rem; margin: 32px 0 12px; }
.spv-status-card {
  background: #1e293b;  /* dark-only, jak .spv-panel wyżej */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
}
.spv-status-card__line { margin: 0 0 8px; }
.spv-status-card__note { margin: 0; font-size: 0.85rem; color: var(--text-muted); }
.spv-status--apply { color: #ef4444; }
.spv-status--dryrun { color: #10b981; }

/* blog_edit — formularz edycji wpisu */
.spv-blog-main { max-width: 880px; margin: 28px auto 60px; padding: 0 16px; }
.spv-blog-card { padding: 24px; border-radius: 10px; }
.spv-field { margin-bottom: 16px; }
.spv-field--lg { margin-bottom: 20px; }
.spv-label {
  display: block; font-size: 0.8rem; font-weight: 600;
  color: var(--text-muted); margin-bottom: 6px;
}
.spv-cover-preview { max-width: 240px; border-radius: 8px; display: block; margin-bottom: 8px; }
.spv-editor { height: 520px; }
.spv-blog-actions { display: flex; justify-content: space-between; gap: 10px; }
.spv-blog-actions__group { display: flex; gap: 10px; }

/* CSP Etap 5 (kolejna partia) — supervisor/{dashboard,event_detail,login}.html
   28 inline style=. Reużywa .dashboard-header, .admin-section, .card, .badge. */
.spv-dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.spv-dash-actions {
  display: flex;
  gap: 10px;
}
.spv-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
}
.spv-nav-btn--accent {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  border: none;
  color: #fff;
}
.spv-spotify-box { margin-bottom: 20px; }
.spv-spotify-note { font-size: 0.85rem; }
/* Ikona SVG w nagłówku boxu Spotify — zastąpiła emoji 🎧 (headless Chromium
   renderował je jako magenta placeholder o niestabilnym wymiarze → drift regresji wizualnej). */
.spv-inline-ico { vertical-align: -3px; margin-right: 4px; }
.spv-quick-form {
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
}
.spv-quick-input { max-width: 320px; }
.spv-table-scroll { overflow-x: auto; }
.spv-modules-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.spv-danger-zone { border-color: var(--color-danger, #dc2626); }
.spv-danger-title { color: var(--color-danger, #dc2626); }
.spv-danger-lead { margin-bottom: 16px; }
.spv-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.spv-login-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 400px;
  width: 100%;
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.spv-login-title {
  font-size: 1.3rem;
  margin-bottom: 20px;
}
.spv-login-error {
  color: #dc2626;
  font-size: 0.88rem;
  margin-bottom: 16px;
}

/* ============================================================================
   CSP Etap 5 — dashboard.html (panel organizatora) + _footer.html + _nav.html
   ~15 inline style=. Nagłówki sekcji list wydarzeń, ikona lokalizacji w karcie,
   stopka i logo nawigacji. Reużywa .events-grid/.event-card.
   ============================================================================ */
.dsh-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.dsh-section-title--icon {
  display: flex;
  align-items: center;
}
.dsh-section-icon { margin-right: 8px; }
.dsh-events-grid { margin-bottom: 36px; }
.dsh-loc-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
}

/* stopka (_footer.html) */
.ft-links { opacity: 0.8; }
.ft-links a {
  color: inherit;
  text-decoration: underline;
}
/* JS-toggled (admin/_qr_challenge_preview_modal.html — admin_module_config.js) */
.ev-modal-backdrop[hidden] { display: none; }

/* Chip taga w admin/gallery_manage.html — kolor z bazy (t.color) przez custom
   property (§4.5); pojedyncza deklaracja inline dozwolona pod style-src-attr. */
.gm-tag-chip {
  background: var(--gm-chip-bg, transparent);
  color: var(--gm-chip-fg, inherit);
  border: 1px solid var(--gm-chip-bd, transparent);
}

/* Słupki wykresu wizyt (admin/visit_stats.html) — wysokość runtime z danych:
   --vstats-h dodane wyżej do .vstats__bar-seg--named/--anon (obok background). */

/* --- Range-Gantt (static/js/range_gantt.js) — helper uniwersalny: dwa wiersze na
   wspólnej osi czasu. Wiersz 1 (--reference) nieinteraktywny = punkt odniesienia
   (np. zakres wydarzenia). Wiersz 2 (--value) interaktywny = zakres edytowalny
   (drag uchwytów + klik otwiera popover z dokładnymi datami). Używany dziś w
   module_config.html ("Okres widoczności"); wspólny dla całego zaplecza, nie
   tylko module_config, stąd w admin.css a nie w admin_module_config.css. --- */
.range-gantt { position: relative; }
.range-gantt__row {
  position: relative;
  height: 22px;
}
.range-gantt__row + .range-gantt__row { margin-top: 6px; }
/* Linia bazowa osi — pełna szerokość obu wierszy, żeby lewa krawędź czytała się
   jako "początek osi czasu", nie jako przypadkowe wcięcie paska (oba zakresy,
   Wydarzenie i moduł, zwykle zaczynają się PO axis_from, bo oś sięga od
   utworzenia wydarzenia w systemie — feedback 2026-09-06). */
.range-gantt__row::before {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--border, #e2e8f0);
  border-radius: 1px;
}
/* Granice dozwolone dla wiersz 2 (min_from..max_until) — cienka linia-prowadnica
   pod paskiem wartości, nie mylona z żadnym z 3 stanów paska (referencja/domyślny/
   niestandardowy): tylko dolna kreska, nie pełne tło. */
.range-gantt__bounds {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--border-strong, #94a3b8);
  border-radius: 1px;
}
.range-gantt__bounds[hidden] { display: none; }
.range-gantt__bar {
  position: absolute; top: 0; bottom: 0;
  min-width: 18px;
  border-radius: var(--radius-xs, 4px);
  display: flex; align-items: center; padding: 0 6px;
  /* BEZ overflow:hidden (usunięte 2026-09-06) — ucinało hit-testing uchwytów
     drag (.range-gantt__handle--from/--until, position:absolute z left/right
     -4px, świadomie wystające poza kontener żeby dać wygodniejszy obszar do
     chwycenia) przy pasku bliskim 100% szerokości osi, np. domyślny zakres
     w gantcie ZIP-a. Tekst etykiety przycina się sam przez własny
     overflow:hidden na .range-gantt__bar-label, więc nic więcej nie wylewa
     się poza zaokrąglone rogi paska. */
}
/* Wiersz 1 — referencja (punkt odniesienia, np. zakres wydarzenia): wypełniony,
   w jaśniejszym odcieniu akcentu niż wartość niestandardowa — czytelne jako
   "informacja obecna" (nie disabled), a jednocześnie wyraźnie odróżnialne od
   szarej linii bazowej osi. */
.range-gantt__bar--reference {
  background: color-mix(in srgb, var(--accent, #4f46e5) 55%, var(--bg-surface-3, #e2e8f0));
  cursor: default;
}
/* Wiersz 2 — wartość niestandardowa (zakres ręcznie zmieniony): pełny akcent. */
.range-gantt__bar--value {
  background: var(--accent-grad, #4f46e5);
  box-shadow: var(--shadow-xs, 0 1px 2px rgba(0,0,0,0.08));
  cursor: pointer;
}
/* Wiersz 2 — wartość domyślna (zakres = cały dozwolony okres, nieedytowany):
   jasny odcień akcentu z pełną (nie przerywaną) ramką — trzeci, odrębny stan od
   referencji (szary) i od wartości niestandardowej (pełny fiolet). */
.range-gantt__bar--value.range-gantt__bar--default {
  background: color-mix(in srgb, var(--accent, #4f46e5) 14%, var(--bg-surface, #fff));
  border: 1px solid color-mix(in srgb, var(--accent, #4f46e5) 45%, transparent);
  box-shadow: none;
}
.range-gantt__bar-label {
  font-size: 0.68rem; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; pointer-events: none;
}
.range-gantt__bar--reference .range-gantt__bar-label { color: #fff; }
.range-gantt__bar--value .range-gantt__bar-label { color: #fff; }
.range-gantt__bar--value.range-gantt__bar--default .range-gantt__bar-label { color: var(--accent, #4f46e5); }
.range-gantt__ref-label {
  position: absolute; top: 50%; right: 0; transform: translateY(-50%);
  font-size: 0.7rem; color: var(--text-muted, #64748b);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.range-gantt__handle {
  position: absolute; top: 0; bottom: 0; width: 8px;
  cursor: ew-resize; touch-action: none;
}
.range-gantt__handle--from { left: -4px; }
.range-gantt__handle--until { right: -4px; }

.range-gantt__popover {
  position: absolute; top: 100%; left: 0; margin-top: 6px; z-index: 30;
  background: var(--bg-surface, #fff); border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-md, 8px); box-shadow: var(--shadow-md, 0 8px 24px rgba(0,0,0,0.12));
  padding: 16px; min-width: 320px;
}
.range-gantt__popover[hidden] { display: none; }
.range-gantt__popover-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px;
}
.range-gantt__popover-field { display: flex; flex-direction: column; gap: 6px; }
.range-gantt__popover-label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted, #64748b); }
/* Pole tekstowe popovera — świadomie NIE .mc-datetime-input (tamta ma padding-left:38px
   zarezerwowany na ikonę kalendarza po lewej, tu jej nie ma — tekst "DD.MM.RRRR HH:MM"
   się nie mieścił i minuty ucinały się poza widocznym polem). Mniejsza czcionka/wysokość,
   spójna ze skalą reszty formularzy w tym popoverze. */
/* Komponuje z .input (base.css) — nadpisuje tylko wysokość/padding/czcionkę,
   nie border/background/color, które .input już definiuje poprawnie. */
.range-gantt__popover-input {
  height: 34px; padding: 0 10px;
  font-size: 0.82rem; font-weight: 600;
}
.range-gantt__popover-error { font-size: 0.8rem; color: #b91c1c; margin-top: 8px; }
.range-gantt__popover-actions {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 14px;
}

/* Sticky footer podglądu nawigacji gościa (`admin/_guest_nav_preview.html`,
   `admin_guest_nav_preview.js`) — współdzielony przez event.html/module_config.html/
   event_dates.html. Przyklejony do samego dołu, na PEŁNĄ szerokość ekranu (2026-09-06,
   poprawka po feedbacku: wcześniej to była floating "pastylka" wyśrodkowana z odstępem
   od krawędzi — ma wyglądać i zachowywać się jak prawdziwy footerbar aplikacji, zwinięty
   = cienki pasek na całą szerokość, rozwinięty = ten sam pasek, tylko wyższy, BEZ zmiany
   szerokości). Kafle WEWNĄTRZ renderują się identycznymi klasami co realny navbar gościa
   (.event-nav/.nav-item/.nav-icon/.nav-label, base.css) — świadomie NIE ma tu osobnego
   stylu kafli, żeby admin oceniał realne rozmieszczenie/zawijanie/nachodzenie etykiet,
   nie przybliżoną kopię. Jedyne nadpisanie: .guest-nav-preview__inner zmienia `position`
   z fixed (potrzebny u gościa, przyklejony bezpośrednio do dołu ekranu) na static (tu
   żyje wewnątrz tej samej przyklejonej powłoki, nie duplikuje fixed). */
.guest-nav-preview {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 110;
  width: 100%;
  background: var(--event-nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -1px 0 var(--border);
}
.guest-nav-preview__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}
.guest-nav-preview__toggle:hover { color: var(--text); }
.guest-nav-preview__chevron { transition: transform var(--transition); }
.guest-nav-preview.is-collapsed .guest-nav-preview__chevron { transform: rotate(180deg); }
.guest-nav-preview__body {
  border-top: 1px solid var(--border);
}
.guest-nav-preview__error, .guest-nav-preview__empty {
  font-size: 0.82rem; color: var(--text-muted); text-align: center; padding: 12px 0;
}
.guest-nav-preview__inner.event-nav {
  position: static;
  width: 100%;
  border-top: none;
  box-shadow: none;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.guest-nav-preview__tile--disabled { pointer-events: none; opacity: 0.5; }

/* Widżet w trybie testowym (2026-09-06) — link w kaflach omija bramkę dostępności/
   opłacenia (kod dostępu 'test'), więc admin musi mieć jednoznaczny sygnał "to NIE
   jest to co zobaczy gość, gdy skopiujesz ten link i wyślesz go teraz". Czerwień
   #dc2626 — ten sam kolor co istniejący .event-layout--test (base.css) i kolor
   kodu dostępu 'test' w ACCESS_CODE_COLORS (events.py), spójne w całym systemie. */
.guest-nav-preview--test {
  border-top-color: #dc2626;
  box-shadow: 0 -1px 0 #dc2626;
}
.guest-nav-preview--test .guest-nav-preview__toggle-label { color: #dc2626; }
.guest-nav-preview--test .guest-nav-preview__inner .nav-item { color: #dc2626; }
.guest-nav-preview--test .guest-nav-preview__inner .nav-item:hover { color: #b91c1c; }

/* Kafel info_page/survey z >1 aktywną podstroną (2026-09-07) — .nav-item jest
   normalnie dzieckiem BEZPOŚREDNIM .event-nav (flex:1, base.css), ale tu żyje w
   dodatkowym wrapperze potrzebnym do pozycjonowania dropdownu — flex:1 przenosi
   się na wrapper, .nav-item (<a> ZWYKŁEGO kafla LUB <button> kafla-sheet) jest
   zawsze BEZPOŚREDNIM dzieckiem .tile-wrap, identyczna struktura w obu gałęziach
   (poprawka po feedbacku 2026-09-07: wcześniejsza wersja opakowywała <button> w
   dodatkowy <div>, co psuło flex-wyrównanie — kafel "Info" wisiał wyżej niż reszta
   paska, bo <button> nie dostawał tego samego stretch co <a> w innych kaflach). */
.guest-nav-preview__tile-wrap { position: relative; flex: 1; display: flex; max-width: 132px; }
.guest-nav-preview__tile-wrap > .nav-item { width: 100%; }
.guest-nav-preview__tile-wrap button.nav-item { background: none; border: none; cursor: pointer; }
.guest-nav-preview__sheet {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  /* transform: translateX(...) ustawiany inline przez :style (partial) — koryguje
     wyśrodkowanie o sheetOffsetX, żeby dropdown przy skrajnym kaflu (np. "QR")
     nie wychodził poza krawędź ekranu (patrz toggleSheet(), admin_guest_nav_preview.js). */
  min-width: 180px;
  max-width: 240px;
  max-height: 260px;
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 10px);
  box-shadow: var(--shadow-md, 0 4px 20px rgba(0,0,0,0.12));
  padding: 6px;
  z-index: 120;
}
.guest-nav-preview__sheet-item {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.guest-nav-preview__sheet-item:hover { background: var(--bg-hover, rgba(0,0,0,0.04)); }

/* Popover-notatka (2026-09-07) — kafel bez url ale z wyjaśnieniem (np. 'qr': "działa
   tylko na stronie aplikacji"), reużywa .guest-nav-preview__sheet jako powłokę, tylko
   tekst zamiast listy linków — stąd white-space:normal (długi tekst się zawija, nie
   ucina jak krótkie tytuły podstron w .sheet-item). */
.guest-nav-preview__sheet--note {
  padding: 10px 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: normal;
  text-align: center;
}

