@import url("https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;500;600;700;800;900&display=swap");

:root {
  --page: #f4f4ef;
  --surface: #ffffff;
  --surface-soft: #f8f7f0;
  --ink: #101113;
  --muted: #60656f;
  --line: #deded6;
  --brand: #f3c400;
  --brand-dark: #111111;
  --accent: #ffe24d;
  --teal: #028579;
  --blue: #2454a6;
  --success: #14804a;
  --warning: #9c6b00;
  --danger: #c01825;
  --sidebar: #101113;
  --sidebar-soft: #181a1e;
  --shadow: 0 12px 28px rgba(16, 17, 19, 0.08);
  --radius: 3px;
  --event-radius: 3px;
  --content: 1480px;
  --wide-content: 1760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Barlow, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(243, 196, 0, 0.55);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-140%);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

body.home-mode .site-header,
body.event-mode .site-header {
  position: absolute;
  width: 100%;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
}

.header-inner {
  width: min(100% - 48px, var(--wide-content));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 3px;
  display: grid;
  place-items: center;
  color: #111;
  background: var(--brand);
  font-size: 14px;
  box-shadow: none;
}

.brand-name {
  font-size: 19px;
}

body.home-mode .brand,
body.event-mode .brand {
  color: #fff;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.primary-nav a,
.primary-nav button,
.login-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  position: relative;
  border-radius: 3px;
  padding: 0 15px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
}

.primary-nav a:not(.login-link)::after,
.primary-nav button::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 4px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"],
.primary-nav button:hover {
  color: var(--ink);
  background: transparent;
}

.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after,
.primary-nav button:hover::after {
  transform: scaleX(1);
}

.primary-nav .login-link {
  color: #fff;
  background: var(--brand);
  font-weight: 700;
}

.primary-nav .login-link:hover {
  color: #fff;
  background: var(--accent);
}

body.home-mode .primary-nav a,
body.home-mode .primary-nav button,
body.event-mode .primary-nav a,
body.event-mode .primary-nav button {
  color: rgba(255, 255, 255, 0.86);
}

body.home-mode .primary-nav a:hover,
body.home-mode .primary-nav a[aria-current="page"],
body.home-mode .primary-nav button:hover,
body.event-mode .primary-nav a:hover,
body.event-mode .primary-nav a[aria-current="page"],
body.event-mode .primary-nav button:hover {
  color: #fff;
}

body.home-mode .primary-nav .login-link,
body.event-mode .primary-nav .login-link {
  background: var(--brand);
  color: #fff;
}

body.home-mode .primary-nav .login-link:hover,
body.event-mode .primary-nav .login-link:hover {
  background: var(--accent);
  color: #fff;
}

body.participant-mode .header-inner {
  min-height: 58px;
}

body.participant-mode .brand-mark {
  width: 42px;
  height: 42px;
  font-size: 12px;
}

body.participant-mode .brand-name {
  font-size: 17px;
}

.participant-primary-nav {
  gap: 8px;
}

.participant-nav-greeting {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px 0 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  background: #eef8fe;
  border: 1px solid #d7ecf8;
}

.participant-nav-separator {
  color: #94a3b8;
  font-weight: 800;
  padding: 0 4px;
}

.participant-primary-nav a,
.participant-primary-nav button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 600;
  gap: 7px;
}

.participant-primary-nav i {
  flex: 0 0 auto;
}

.participant-primary-nav .participant-account-link {
  border: 1px solid #76bfdf;
  background: transparent;
  color: #0b5f86;
  font-weight: 700;
}

.participant-primary-nav .participant-account-link:hover,
.participant-primary-nav .participant-account-link[aria-current="page"] {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

body.home-mode .participant-primary-nav .participant-account-link,
body.event-mode .participant-primary-nav .participant-account-link {
  border-color: rgba(255, 255, 255, 0.7);
  background: transparent;
  color: #fff;
}

body.home-mode .participant-primary-nav .participant-account-link:hover,
body.event-mode .participant-primary-nav .participant-account-link:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.icon-button,
.ghost-button,
.solid-button,
.soft-button,
.danger-button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 23px;
  font-size: 17px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.icon-button {
  width: 44px;
  padding: 0;
  color: #111;
  background: var(--brand);
}

.solid-button {
  color: #111;
  background: var(--brand);
  box-shadow: 0 12px 28px rgba(16, 17, 19, 0.12);
}

.solid-button:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(16, 17, 19, 0.14);
}

.soft-button {
  color: #111;
  background: #fff0a8;
}

.ghost-button {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.ghost-button:hover,
.soft-button:hover,
.danger-button:hover {
  transform: translateY(-2px);
}

.solid-button:disabled,
.ghost-button:disabled,
.soft-button:disabled,
.danger-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.hero .ghost-button,
.event-detail-hero .ghost-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.hero .ghost-button:hover,
.event-detail-hero .ghost-button:hover {
  color: #111;
  background: #fff;
}

.danger-button {
  color: #fff;
  background: var(--danger);
}

.danger-icon-button {
  color: #fff;
  background: var(--danger);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.table-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.pagination-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}

.pagination-size-field {
  width: min(180px, 100%);
  margin: 0;
}

.pagination-fixed-size {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: var(--muted);
  font-weight: 700;
}

.pagination-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.pagination-summary {
  min-width: 118px;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.icon-button.nav-toggle,
.admin-nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #151a22;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(16, 17, 19, 0.93), rgba(16, 17, 19, 0.66), rgba(16, 17, 19, 0.08)), url("../img/hero-events.jpg");
  background-position: center;
  background-size: cover;
}

.hero::after {
  content: "";
  position: absolute;
  left: calc((100% - min(100% - 48px, var(--wide-content))) / 2);
  top: 258px;
  width: 3px;
  height: 168px;
  background: #fff;
}

.hero-content {
  position: relative;
  width: min(100% - 48px, var(--wide-content));
  margin: 0 auto;
  padding: 150px 0 110px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: #017eff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 740px;
  margin: 0;
  padding-left: 22px;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
}

.search-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0;
  border: 1px solid var(--line);
  border-left: 0;
  border-right: 0;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: none;
  padding: 28px max(24px, calc((100vw - var(--wide-content)) / 2));
}

.search-panel h1,
.search-panel h2,
.section-head h2,
.auth-card h1,
.panel-title h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: 0;
}

.search-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
}

.field span,
.field label,
.label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.field input,
.field select,
.field textarea,
.rich-editor {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  padding: 13px 15px;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.rich-editor {
  min-height: 180px;
  overflow: auto;
}

.search-grid .solid-button {
  align-self: end;
}

.section {
  width: 100%;
  margin: 0;
  padding: 72px max(24px, calc((100vw - var(--wide-content)) / 2));
}

.section:nth-of-type(even) {
  background: transparent;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-head p,
.muted {
  color: var(--muted);
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 18px;
}

.event-card,
.dash-card,
.auth-card,
.panel-card,
.profile-card,
.office-tile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: none;
}

.event-card {
  border-radius: var(--event-radius);
  overflow: hidden;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(35, 35, 35, 0.12);
}

.event-card-image {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #cbd5e1;
  overflow: hidden;
}

.event-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.date-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  width: 68px;
  height: 68px;
  border-radius: var(--event-radius);
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--brand);
  font-weight: 900;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.date-badge span {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.date-badge small {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
}

.event-card-body {
  display: grid;
  gap: 14px;
  padding: 18px;
  flex: 1;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.pill,
.status-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 3px;
  padding: 0 10px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.status-paid,
.status-checked {
  color: #0a6b3d;
  background: #ddf7e8;
}

.status-pending {
  color: #8c5a00;
  background: #fff3d6;
}

.status-unpaid,
.status-open {
  color: #b41735;
  background: #ffe5eb;
}

.family-participant-list { display:grid; gap:8px; margin:14px 0; }
.family-participant-row { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:10px; padding:10px 12px; background:rgba(0,134,205,.06); border-left:3px solid #0086cd; }
.family-participant-row span:nth-child(2) { display:grid; gap:2px; }
.family-participant-row small { color:#64748b; }
.family-order-actions { display:flex; align-items:center; justify-content:flex-end; gap:6px; flex-wrap:wrap; }
.pending-order-resume { min-height:28px; border:1px solid #2454a6; border-radius:3px; background:#fff; color:#2454a6; padding:4px 8px; font-size:11px; font-weight:700; cursor:pointer; }
.pending-order-resume:hover { background:#eef5ff; }
.pending-order-delete { display:inline-flex; width:28px; height:28px; align-items:center; justify-content:center; border:1px solid rgba(220,38,38,.28); border-radius:3px; background:rgba(220,38,38,.07); color:#dc2626; padding:0; cursor:pointer; }
.pending-order-delete:hover { border-color:#dc2626; background:#dc2626; color:#fff; }
.child-registration-error { margin:0; padding:10px 12px; color:#991b1b; background:rgba(220,38,38,.08); border-left:3px solid #dc2626; font-weight:700; }
.child-registration-form .has-error { outline:2px solid rgba(220,38,38,.45); outline-offset:4px; }

.footer {
  border-top: 1px solid var(--line);
  background: #fbfcfe;
  color: var(--ink);
}

.footer-inner {
  width: min(100% - 48px, var(--wide-content));
  margin: 0 auto;
  padding: 34px 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.4fr;
  gap: 24px;
}

.footer h2,
.footer h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer a {
  color: var(--muted);
}

.auth-shell {
  width: 100%;
  margin: 0 auto;
  padding: 56px max(24px, calc((100vw - var(--wide-content)) / 2));
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
}

.auth-visual {
  min-height: 480px;
  border-radius: var(--radius);
  background-image: linear-gradient(0deg, rgba(16, 17, 19, 0.82), rgba(16, 17, 19, 0.34)), url("../img/registration-bg.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.auth-visual-organizer {
  background-image: linear-gradient(0deg, rgba(16, 17, 19, 0.86), rgba(16, 17, 19, 0.42)), url("../img/hero-events.jpg");
}

.auth-card {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 28px;
}

.auth-form {
  display: grid;
  gap: 15px;
  margin-top: 22px;
}

.participant-profile-form {
  gap: 16px;
}

.participant-profile-start {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.participant-avatar-field {
  display: grid;
  gap: 7px;
}

.participant-field-label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.participant-avatar-picker {
  width: 118px;
  height: 118px;
}

.participant-avatar-frame {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #f8fafc;
  overflow: hidden;
}

.participant-avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.participant-avatar-empty {
  display: grid;
  justify-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.participant-avatar-empty i {
  color: var(--brand);
  font-size: 30px;
}

.participant-avatar-actions {
  position: absolute;
  right: 7px;
  bottom: 7px;
  display: flex;
  gap: 5px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.participant-avatar-frame:hover .participant-avatar-actions,
.participant-avatar-frame:focus-within .participant-avatar-actions,
.participant-avatar-frame.is-empty .participant-avatar-actions {
  opacity: 1;
  transform: translateY(0);
}

.participant-avatar-action {
  width: 34px;
  height: 34px;
  min-height: 34px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  color: var(--ink);
  display: inline-grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

.participant-avatar-action:hover {
  background: var(--brand);
  color: #111;
}

.participant-avatar-action.is-danger:hover {
  background: #fee2e2;
  color: #b42318;
}

.participant-identity-grid,
.participant-profile-third-grid,
.participant-company-grid {
  display: grid;
  gap: 14px;
}

.participant-identity-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.participant-profile-third-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.participant-company-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.participant-company-grid .wide {
  grid-column: 1 / -1;
}

.participant-bio-field textarea,
.participant-company-grid textarea {
  min-height: 82px;
}

.participant-big-checkbox {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 14px 16px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}

.participant-big-checkbox input {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  accent-color: var(--brand);
}

.participant-profile-divider {
  min-height: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.participant-invoice-block {
  display: grid;
  gap: 14px;
}

.participant-invoice-fields {
  display: grid;
  gap: 12px;
  padding-top: 2px;
}

.participant-invoice-fields[hidden] {
  display: none;
}

.participant-invoice-fields h3 {
  margin: 0;
  font-size: 16px;
}

.participant-profile-actions {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 760px) {
  .participant-profile-start,
  .participant-identity-grid,
  .participant-profile-third-grid,
  .participant-company-grid {
    grid-template-columns: 1fr;
  }

  .participant-profile-start {
    gap: 14px;
  }

  .participant-avatar-picker {
    width: 96px;
    height: 96px;
  }

  .participant-big-checkbox {
    align-items: flex-start;
    font-size: 15px;
  }

  .participant-profile-actions,
  .participant-profile-actions .solid-button {
    width: 100%;
  }
}

.inline-note {
  color: var(--muted);
  font-size: 14px;
}

.account-notice {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand);
  background: #fff8ed;
  padding: 16px 18px;
}

.account-notice strong {
  font-size: 18px;
}

.account-notice p,
.account-notice ul {
  margin: 0;
  color: var(--ink);
}

.account-notice ul {
  padding-left: 20px;
  color: var(--muted);
}

.account-notice-success {
  border-left-color: #0a6b3d;
  background: #ecfdf3;
}

.account-notice-warning {
  border-left-color: var(--accent);
}

.account-notice-info {
  border-left-color: #1d6fb8;
  background: #eef7ff;
}

.activation-form {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.auth-secondary-actions {
  margin-top: 8px;
}

.app-shell {
  width: min(100% - 48px, var(--wide-content));
  margin: 0 auto;
  padding: 28px 0 56px;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 18px;
}

.sidebar {
  position: sticky;
  top: 92px;
  height: calc(100vh - 112px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sidebar);
  color: #e7edf6;
  padding: 16px;
  overflow: auto;
}

.sidebar .brand {
  color: #fff;
  margin-bottom: 18px;
}

.admin-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.admin-sidebar-head .brand {
  margin-bottom: 0;
}

.side-nav {
  display: grid;
  gap: 6px;
}

.side-nav a,
.side-nav button {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 12px;
  color: #c9d4e5;
  background: transparent;
  font-weight: 800;
  text-align: left;
}

.side-nav i {
  width: 20px;
  flex: 0 0 20px;
  text-align: center;
  font-size: 15px;
}

.side-nav span {
  min-width: 0;
}

.side-nav a:hover,
.side-nav a[aria-current="page"],
.side-nav button:hover {
  color: #fff;
  background: var(--brand);
}

.panel-main {
  min-width: 0;
}

body.admin-mode {
  background: #f6f7fb;
}

body.admin-mode .site-header {
  display: none;
}

body.admin-mode .app-shell {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 0;
}

body.admin-mode .sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 270px;
  height: 100vh;
  border: 0;
  border-right: 1px solid #25272c;
  background: var(--sidebar);
  padding: 0;
  z-index: 70;
}

body.admin-mode .sidebar .brand {
  min-height: 70px;
  margin: 0;
  padding: 0 18px;
}

body.admin-mode .admin-sidebar-head {
  min-height: 70px;
  margin: 0;
  padding-right: 14px;
  border-bottom: 1px solid #25272c;
}

body.admin-mode .admin-sidebar-head .brand {
  flex: 1;
  min-width: 0;
}

body.admin-mode .sidebar .brand-mark {
  width: 42px;
  height: 42px;
}

body.admin-mode .side-nav {
  padding: 14px;
  gap: 2px;
}

body.admin-mode .side-nav a,
body.admin-mode .side-nav button {
  min-height: 46px;
  padding: 0 14px;
  color: #d7dbe2;
  border-left: 3px solid transparent;
  font-size: 14px;
}

body.admin-mode .side-nav a:hover,
body.admin-mode .side-nav button:hover,
body.admin-mode .side-nav a[aria-current="page"] {
  color: #fff;
  border-left-color: var(--accent);
  background: var(--brand);
}

body.admin-mode .panel-main {
  grid-column: 2;
  min-height: 100vh;
  background: #f6f7fb;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 24px;
}

.admin-section-heading {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.admin-topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-section-heading strong,
.admin-topbar strong {
  display: inline-block;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.1;
}

.admin-section-heading span,
.admin-topbar span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-search input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7f7f4;
  padding: 0 14px;
}

.admin-user {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-left: 1px solid var(--line);
  padding-left: 18px;
  font-weight: 800;
}

.admin-user .brand-mark {
  width: 34px;
  height: 34px;
  font-size: 12px;
}

.admin-content {
  max-width: 1720px;
  margin: 0 auto;
  padding: 24px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.dash-card {
  padding: 18px;
}

body.admin-mode .panel-grid {
  gap: 16px;
}

body.admin-mode .dash-card {
  min-height: 128px;
  border-top: 3px solid var(--brand);
  background: #fff;
  box-shadow: none;
}

body.admin-mode .dash-card strong {
  font-size: 36px;
}

.dash-card strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
  line-height: 1;
}

.panel-card {
  padding: 20px;
  margin-bottom: 18px;
}

body.admin-mode .panel-card {
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: none;
}

body.admin-mode .panel-card h2,
body.admin-mode .panel-card h3 {
  color: #111;
}

.email-preview-frame {
  width: 100%;
  min-height: 560px;
  border: 1px solid var(--line);
  background: #fff;
}

body.admin-mode .panel-title {
  min-height: 54px;
  border-bottom: 1px solid var(--line);
  margin: -24px -24px 14px;
  padding: 12px 24px;
  background: #fff;
}

body.admin-mode .panel-title .eyebrow {
  color: #8b6f00;
}

body.admin-mode .panel-title h1 {
  font-size: 28px;
}

body.admin-mode .panel-title .eyebrow {
  margin-bottom: 4px;
}

.panel-card h2,
.panel-card h3,
.profile-card h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.participant-filter-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
}

.participant-filter-grid .field:first-child {
  grid-column: span 2;
}

.office-main-filters .field:first-child,
.office-extra-filters .field:first-child {
  grid-column: span 1;
}

.participant-filter-grid + .table-wrap {
  margin-top: 14px;
}

.office-extra-filters {
  margin-top: 12px;
}

.consent-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #f8fafc;
}

.consent-box strong {
  font-size: 14px;
}

.checkout-consent-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 0;
  border-top: 1px solid #e7edf5;
}

.checkout-consent-row:first-of-type {
  border-top: 0;
}

.link-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #0078b8;
  font: inherit;
  font-weight: 700;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.link-button:hover {
  text-decoration: underline;
}

.required-pill {
  border: 1px solid #f5c48f;
  background: #fff7ed;
  color: #9a4b00;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 700;
}

.compact-panel-title {
  align-items: flex-start;
  gap: 16px;
}

.child-account-list,
.child-selection-list,
.child-addon-panels {
  display: grid;
  gap: 10px;
}

.child-account-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.child-profile-icons {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.child-profile-icon {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px 3px 4px;
  min-height: 34px;
  cursor: pointer;
}

.child-profile-icon[aria-expanded="true"] {
  border-color: #0078b8;
  box-shadow: 0 0 0 3px rgba(0, 120, 184, 0.14);
}

.child-profile-icon span:last-child {
  font-weight: 800;
  font-size: 0.78rem;
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.child-profile-panels {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.child-profile-panel,
.child-inline-panel {
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px;
}

.child-profile-panel[hidden],
.child-inline-panel[hidden],
.child-addon-panel[hidden] {
  display: none;
}

.child-profile-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.child-profile-panel small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

.child-account-picker h3 + .child-account-toolbar,
.child-inline-panel {
  margin-top: 8px;
}

.child-registration-form .checkout-step h3 {
  margin: 14px 0 8px;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
}

.child-registration-form .checkout-step > h3:first-child {
  margin-top: 0;
}

.child-account-item,
.child-select-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  background: #f8fafc;
  padding: 12px;
  min-height: 62px;
}

.child-select-card {
  cursor: pointer;
}

.child-select-card input {
  inline-size: 18px;
  block-size: 18px;
}

.child-select-card.is-disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.child-account-item small,
.child-select-card small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

.child-account-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.child-account-marker {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #eef8fe;
  color: #0078b8;
  flex: 0 0 auto;
}

.child-delete-warning {
  display: grid;
  gap: 14px;
}

.child-delete-warning-box {
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #7f1d1d;
  padding: 14px;
}

.child-delete-warning-box strong {
  display: block;
  margin-bottom: 8px;
}

.child-delete-warning-box p {
  margin: 8px 0 0;
}

.child-delete-warning-box ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.child-delete-confirm-row {
  align-items: flex-start;
}

.participant-name-with-marker,
.registration-child-owner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.registration-child-owner {
  margin: 4px 0 8px;
}

.child-inline-form {
  margin-bottom: 10px;
}

.child-addon-panel,
.family-links-box {
  border: 1px solid var(--line);
  background: #fff;
  padding: 14px;
}

.child-addon-panel h4 {
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.child-login-prompt {
  text-align: left;
}

.form-grid .wide,
.wide {
  grid-column: 1 / -1;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  background: #fff;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
  background: #f4f5f1;
}

body.admin-mode th {
  background: #111;
  color: #fff;
}

body.admin-mode tr:hover td {
  background: #fffdf2;
}

tr:last-child td {
  border-bottom: 0;
}

.participant-layout {
  width: 100%;
  margin: 0;
  padding: 10px max(24px, calc((100vw - var(--wide-content)) / 2)) 54px;
}

.participant-hero {
  margin-bottom: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #f7f8fa;
  color: var(--ink);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.participant-hero h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.08;
}

.participant-top-heading {
  margin: 0 0 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.participant-child-actions {
  margin-left: auto;
  min-width: 0;
  display: grid;
  justify-items: end;
  gap: 8px;
}

.participant-child-actions .child-profile-panels {
  width: min(360px, calc(100vw - 48px));
  margin-top: 0;
}

.participant-children-page {
  width: min(100%, 760px);
}

.participant-children-page .participant-child-actions {
  width: 100%;
  margin-left: 0;
  justify-items: stretch;
}

.participant-children-page .guardian-children-card,
.participant-children-page .child-account-toolbar {
  width: 100%;
}

.participant-children-page .child-account-toolbar {
  justify-content: flex-start;
}

.participant-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.participant-tabs a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.participant-tabs a[aria-current="page"] {
  border-color: var(--brand);
  background: #eef8fe;
  color: var(--brand-dark);
}

.participant-tabs strong {
  color: var(--brand);
}

.participant-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.participant-main {
  display: grid;
  gap: 14px;
}

.participant-events-card {
  border: 0;
  background: transparent;
  overflow: hidden;
  padding: 0;
}

.participant-card-strip {
  background: var(--brand-dark);
  color: #fff;
  padding: 10px 14px;
}

.participant-card-strip h2 {
  margin: 0;
  color: #fff;
  font-size: 18px;
}

.participant-card-body {
  padding: 14px 0 0;
  background: transparent;
}

.participant-new-events-card {
  width: 100%;
  min-width: 0;
  justify-self: start;
  padding: 10px;
}

.participant-new-events-card h2 {
  margin-bottom: 10px;
  font-size: 15px;
}

.participant-new-events-card .event-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.participant-new-events-card .event-card-body {
  gap: 8px;
  padding: 10px;
}

.participant-new-events-card .event-card-image {
  aspect-ratio: 16 / 8;
}

.participant-new-events-card .date-badge {
  left: 8px;
  bottom: 8px;
  width: 46px;
  height: 46px;
}

.participant-new-events-card .date-badge span {
  font-size: 17px;
}

.participant-new-events-card .date-badge small,
.participant-new-events-card .meta-line,
.participant-new-events-card .pill {
  font-size: 10px;
}

.participant-new-events-card .event-card-body h3 {
  font-size: 14px;
}

.spacious-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.office-command-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.office-metrics-bar {
  display: flex;
  flex-wrap: nowrap;
  flex: 0 0 auto;
  gap: 0;
  margin-bottom: 0;
  border: 1px solid var(--line);
  background: #fff;
}

.office-metrics-bar span {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 7px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.office-metrics-bar span:last-child {
  border-right: 0;
}

.office-metrics-bar strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1;
}

.office-event-picker {
  display: grid;
  gap: 16px;
}

.office-event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.office-event-card {
  border: 1px solid var(--line);
  background: #fff;
  text-align: left;
  padding: 16px;
  display: grid;
  gap: 6px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.office-event-card:hover {
  border-color: var(--primary);
  box-shadow: 0 14px 34px rgba(0, 134, 205, 0.14);
  transform: translateY(-1px);
}

.office-event-card span,
.office-event-card small,
.office-event-card em {
  color: var(--muted);
  font-style: normal;
}

.office-event-card strong {
  color: var(--ink);
  font-size: 17px;
}

.office-event-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 1 1 320px;
  min-width: 320px;
  margin-bottom: 0;
  border: 1px solid var(--line);
  background: #fff;
  padding: 7px 10px;
}

.office-event-context > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.office-event-context strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.office-event-context .field {
  min-width: min(220px, 100%);
  gap: 2px;
}

.office-event-context .field span,
.office-event-context .muted {
  font-size: 11px;
}

.office-event-context .field select {
  min-height: 34px;
  padding: 0 9px;
  font-size: 12px;
}

.office-event-context strong {
  font-size: 13px;
}

.office-action-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 0;
}

.office-action-row .solid-button {
  min-height: 40px;
  padding: 0 12px;
  font-size: 13px;
  white-space: nowrap;
}

.office-list-panel {
  padding-top: 14px;
}

.office-filter-grid {
  grid-template-columns: minmax(180px, 1.45fr) repeat(7, minmax(84px, 1fr));
  gap: 8px;
  align-items: end;
  margin-bottom: 10px;
}

.participant-filter-grid.office-filter-grid .field:first-child {
  grid-column: span 1;
}

.office-filter-grid .field {
  gap: 4px;
}

.office-filter-grid .field span {
  font-size: 11px;
}

.office-filter-grid .field input,
.office-filter-grid .field select {
  min-height: 36px;
  padding: 0 10px;
  font-size: 13px;
}

.office-filter-grid + .table-wrap {
  margin-top: 10px;
}

.export-event-picker {
  margin-bottom: 14px;
}

.export-filter-grid {
  margin-bottom: 16px;
}

.export-download-grid {
  display: grid;
  gap: 18px;
}

.consent-manager {
  display: grid;
  gap: 12px;
}

.consent-manager-head,
.consent-editor-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.consent-editor-list {
  display: grid;
  gap: 10px;
}

.consent-editor-item {
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px;
}

.consent-editor-item small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

.office-add-button {
  background: var(--success);
  box-shadow: 0 12px 28px rgba(20, 128, 74, 0.18);
}

.office-add-button:hover {
  background: #0f6b3d;
  box-shadow: 0 16px 34px rgba(20, 128, 74, 0.22);
}

.office-generate-button {
  background: #7c3aed;
  color: #fff;
  box-shadow: 0 14px 30px rgba(124, 58, 237, 0.28);
}

.office-generate-button:hover {
  background: #6d28d9;
  color: #fff;
  box-shadow: 0 18px 38px rgba(124, 58, 237, 0.34);
}

.office-participants-table {
  min-width: 1080px;
}

.office-participants-table th,
.office-participants-table td {
  padding: 10px 12px;
}

.office-row-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
}

.office-row-actions .icon-button,
.office-mini-edit {
  width: 34px;
  min-height: 34px;
  height: 34px;
  padding: 0;
  flex: 0 0 34px;
  font-size: 14px;
}

.office-row-actions .icon-button i {
  font-size: 14px;
}

.office-check-button {
  min-height: 34px;
  height: 34px;
  border: 0;
  padding: 0 12px;
  color: #fff;
  background: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.office-check-button.is-checked {
  background: var(--success);
}

.office-comment-button {
  position: relative;
  color: #9aa4b2;
  background: #f1f5f9;
}

.office-comment-button.has-comments {
  color: #fff;
  background: #dc2626;
}

.office-comment-button span {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #111827;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.order-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.order-row-actions .office-comment-button {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
}

.staff-comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(420px, 50vh);
  overflow: auto;
  padding: 2px 4px 2px 0;
}

.staff-comment-item {
  width: min(720px, 100%);
  border: 1px solid #dbe7f2;
  background: #eef8fe;
  padding: 10px 12px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.staff-comment-item:nth-child(even) {
  margin-left: auto;
  background: #fff;
}

.staff-comment-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.staff-comment-item small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}

.staff-comment-actions {
  justify-content: flex-end;
  margin-top: 8px;
}

.staff-comment-edit textarea {
  min-height: 72px;
  background: #fff;
  border-color: #cfe1ef;
}

.staff-comment-delete {
  color: #dc2626;
  border-color: #fecaca;
  background: #fff5f5;
}

.staff-accounts-table {
  min-width: 900px;
}

.staff-permission-summary {
  display: block;
  max-width: 520px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.staff-permissions-box {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  background: #f8fafc;
  padding: 14px;
}

.staff-permission-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.staff-permission-tags span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #cfe1ef;
  background: #fff;
  color: var(--brand-dark);
  padding: 0 9px;
  font-size: 12px;
  font-weight: 800;
}

.addon-inline-pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  margin: 0 6px 6px 0;
  padding: 0 8px;
  background: #eef8fe;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.profile-card {
  padding: 20px;
}

.registration-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  background: #fff;
}

.qr-card {
  width: 132px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  text-align: center;
}

.qr-token {
  display: block;
  width: 132px;
  max-width: 100%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.qr-grid {
  width: 108px;
  height: 108px;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 3px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
}

.qr-grid span {
  border-radius: 3px;
  background: #111827;
}

.qr-grid span.off {
  background: #fff;
}

.event-detail-hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: end;
  color: #fff;
  background: #111827;
}

.event-detail-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.event-detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(16, 17, 19, 0.92), rgba(16, 17, 19, 0.18));
}

.event-detail-content {
  position: relative;
  z-index: 1;
  width: min(100% - 48px, var(--wide-content));
  margin: 0 auto;
  padding: 72px 0 44px;
}

.event-detail-content h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 0.98;
}

.event-detail-content,
.detail-grid,
.detail-grid > div,
.content-block,
.rich-content {
  min-width: 0;
}

.anchor-tabs {
  position: sticky;
  top: 73px;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
}

body.event-mode .anchor-tabs {
  top: 0;
}

.anchor-tabs-inner {
  width: min(100% - 48px, var(--wide-content));
  margin: 0 auto;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0;
}

.anchor-tabs a,
.anchor-tabs button {
  border: 0;
  border-left: 1px solid var(--line);
  white-space: nowrap;
  border-radius: 3px;
  background: transparent;
  padding: 9px 12px;
  color: var(--muted);
  font-weight: 800;
}

.anchor-tabs a:first-child,
.anchor-tabs button:first-child {
  border-left: 0;
}

.anchor-tabs a:hover,
.anchor-tabs button:hover {
  color: #fff;
  background: var(--brand);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  align-items: start;
}

.content-block {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  scroll-margin-top: 132px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.summary-classifications {
  scroll-margin-top: 132px;
}

.content-block:first-child {
  border-top: 0;
}

.content-block h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 42px);
}

.content-block .section-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  border-radius: var(--event-radius);
  background: var(--brand);
  color: #fff;
  padding: 10px 14px;
  font-size: clamp(15px, 2vw, 21px);
}

.section-bar i {
  color: #fff;
  font-size: 16px;
}

.route-list,
.schedule-list,
.materials-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.participant-materials-heading {
  margin: 12px 0 8px;
  font-size: 14px;
}

.participant-materials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.participant-materials-list li {
  margin: 0;
}

.participant-material-button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #dbeaf4;
  background: #f4f9fd;
  color: #1b6f9a;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.participant-material-button:hover {
  background: #eaf6fd;
  border-color: #b7dcee;
}

.route-item,
.schedule-item,
.material-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
}

.route-list.route-list-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.schedule-list.schedule-timeline {
  position: relative;
  gap: 18px;
  padding-left: 28px;
}

.schedule-list.schedule-timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 8px;
  width: 3px;
  border-radius: 999px;
  background: #017eff;
}

.schedule-timeline .schedule-item {
  position: relative;
  border-color: rgba(1, 126, 255, 0.22);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.schedule-timeline .schedule-item::before {
  content: "";
  position: absolute;
  top: 20px;
  left: -27px;
  width: 15px;
  height: 15px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #017eff;
  box-shadow: 0 0 0 3px rgba(1, 126, 255, 0.18);
}

.schedule-timeline .schedule-item h3 {
  margin-top: 0;
}

.schedule-timeline .schedule-item ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 18px;
}

.detail-popup-button {
  width: 100%;
  justify-content: center;
}

.sticky-summary {
  position: sticky;
  top: 138px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
}

.sticky-summary h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.summary-list {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.summary-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.summary-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.summary-list-icons li {
  grid-template-columns: 20px minmax(0, 1fr) auto;
}

.summary-list-icons i {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #017eff;
  color: #fff;
  font-size: 10px;
}

.summary-classifications,
.summary-fees {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin: 14px 0;
}

.summary-classifications h3,
.summary-fees h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 16px;
}

.summary-classifications h3 i,
.summary-fees h3 i {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #017eff;
  color: #fff;
  font-size: 10px;
}

.summary-fees ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.summary-fees li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
}

.materials-list-modal .material-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.materials-list-modal .material-item i {
  color: #017eff;
  font-size: 22px;
  margin-top: 2px;
}

.floating-signup {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 45;
  transform: translateX(-50%);
  width: min(calc(100% - 32px), 440px);
  min-height: 56px;
  border: 0;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #111;
  background: var(--brand);
  box-shadow: 0 18px 38px rgba(16, 17, 19, 0.18);
  font-weight: 900;
}

.toast-region {
  position: fixed;
  top: 86px;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, calc(100vw - 32px));
  z-index: 90;
  display: grid;
  gap: 12px;
  pointer-events: none;
}

.toast {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 3px;
  background: linear-gradient(135deg, #1769d2 0%, #2454a6 100%);
  box-shadow: 0 14px 34px rgba(23, 78, 153, 0.3);
  padding: 14px 14px 14px 18px;
  color: #fff;
  font-weight: 700;
  line-height: 1.4;
  pointer-events: auto;
}

.toast-message {
  flex: 1;
  min-width: 0;
}

.toast-icon {
  display: inline-flex;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 15px;
}

.payment-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(241, 247, 253, 0.72);
  backdrop-filter: blur(2px);
}

.payment-loading-card {
  display: flex;
  width: min(360px, 100%);
  align-items: center;
  gap: 14px;
  border: 1px solid #d7e4f3;
  border-radius: 3px;
  background: #fff;
  padding: 16px 18px;
  color: #1b2735;
  box-shadow: 0 14px 38px rgba(35, 79, 139, 0.16);
}

.payment-loading-card strong,
.payment-loading-card small {
  display: block;
}

.payment-loading-card small {
  margin-top: 2px;
  color: #65758a;
}

.payment-loading-spinner {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 3px solid #dbe9f8;
  border-top-color: #1769d2;
  border-radius: 50%;
  animation: payment-loading-spin 720ms linear infinite;
}

@keyframes payment-loading-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .payment-loading-spinner { animation-duration: 1400ms; }
}

.empty-state {
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
  background: #fff;
  padding: 22px;
  color: var(--muted);
}

.admin-note {
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: #fff8ed;
  padding: 12px 14px;
}

.integration-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.integration-status-grid > div {
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  background: #fff;
  padding: 14px;
}

.integration-status-grid strong {
  overflow-wrap: anywhere;
  font-size: 15px;
}

.order-filter-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.archive-sales-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.archive-sales-row .field {
  flex: 1;
}

.order-details-toggle.is-open {
  background: #eaf4ff;
  border-color: #b7d6f3;
  color: var(--brand-dark);
}

.ticket-purchase-details {
  margin-top: 8px;
}

.ticket-purchase-details summary {
  width: max-content;
  cursor: pointer;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}

.ticket-purchase-card {
  display: grid;
  grid-template-columns: 152px minmax(260px, 1fr);
  gap: 16px;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #f8fafc;
}

.ticket-purchase-qr {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
}

.ticket-purchase-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.ticket-purchase-meta div {
  min-width: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.ticket-purchase-meta dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.ticket-purchase-meta dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.order-detail-box {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  overflow-x: auto;
}

.order-detail-row td {
  padding: 0 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.order-detail-row[hidden] {
  display: none;
}

.order-detail-row .order-items-table {
  min-width: 680px;
}

.order-detail-box h4 {
  margin: 14px 0 8px;
}

.order-items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.order-items-table th,
.order-items-table td,
.mini-summary-table td {
  padding: 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.compact-order-table {
  margin-top: 6px;
}

.sales-summary-grid {
  display: grid;
  gap: 14px;
}

.sales-summary-event {
  border: 1px solid var(--line);
  background: #fff;
  padding: 14px;
}

.sales-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sales-summary-head h3,
.sales-summary-event h4 {
  margin: 0;
}

.sales-summary-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mini-summary-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 13px;
}

.mini-summary-table td:nth-child(2),
.mini-summary-table td:nth-child(3) {
  text-align: right;
  white-space: nowrap;
}

.archive-event-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.archive-event-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  background: #f8fafc;
  font-size: 13px;
}

.archive-event-pill button {
  border: 0;
  background: transparent;
  color: var(--brand);
  font-weight: 700;
  cursor: pointer;
}

.file-preview {
  min-height: 170px;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f8fafc;
}

.file-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-thumb-preview {
  min-height: 180px;
  aspect-ratio: 1;
}

.product-gallery-preview {
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
}

.ticket-visual-preview {
  min-height: 220px;
}

.media-modal-overlay {
  z-index: 90;
}

.media-library-panel {
  max-width: min(1080px, calc(100vw - 28px));
}

.media-library-modal {
  display: grid;
  gap: 16px;
}

.media-dropzone {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 160px;
  padding: 20px;
  border: 1px dashed #9fb4cc;
  background: #f8fafc;
  text-align: center;
}

.media-dropzone.is-dragover {
  border-color: var(--brand);
  background: #eef8fe;
}

.media-dropzone i {
  color: var(--brand);
  font-size: 28px;
}

.media-dropzone span {
  color: var(--muted);
  font-size: 13px;
}

.media-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.media-toolbar .field {
  flex: 1;
  margin: 0;
}

.media-selected-pill {
  white-space: nowrap;
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  max-height: min(48vh, 520px);
  overflow: auto;
  padding: 2px;
}

.media-tile {
  position: relative;
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.media-tile:focus-visible {
  outline: 3px solid rgba(0, 134, 205, .28);
  outline-offset: 2px;
}

.media-tile.is-selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(0, 134, 205, .15);
}

.media-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #edf5fb;
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  font-size: 12px;
}

.media-tile small {
  color: var(--muted);
}

.media-delete-button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .78);
  background: rgba(17, 24, 39, .82);
  color: #fff;
  opacity: 0;
  cursor: pointer;
  transition: opacity .15s ease, background .15s ease;
}

.media-tile:hover .media-delete-button,
.media-delete-button:focus-visible {
  opacity: 1;
}

.media-delete-button:hover {
  background: var(--danger);
}

.media-modal-actions {
  justify-content: flex-end;
}

.field-error {
  display: none;
  margin-top: 6px;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 700;
}

.is-invalid {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, .14) !important;
}

.checkout-addon.has-error {
  border-color: #dc2626;
  background: #fff7f7;
}

.checkout-addon.has-error .field-error,
.is-invalid + .field-error {
  display: block;
}

.ticket-shape {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 16 / 9;
  display: block;
  overflow: hidden;
  background: #edf5fb;
  clip-path: polygon(0 0, 100% 0, 100% 38%, 97% 50%, 100% 62%, 100% 100%, 0 100%, 0 62%, 3% 50%, 0 38%);
}

.ticket-shape img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ticket-shape-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.catalog-item-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.product-thumb-mini {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  object-fit: cover;
  background: #edf5fb;
}

.ticket-shape-mini {
  width: 72px;
  flex: 0 0 72px;
}

.compact-button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 14px;
}

.big-action-button {
  min-height: 54px;
  padding: 0 28px;
}

.compact-section-head {
  margin-bottom: 12px;
}

.compact-section-head h2,
.compact-section-head h3 {
  margin: 0;
}

.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

body.quill-ready .rich-toolbar {
  display: none;
}

.ql-toolbar.ql-snow {
  border: 1px solid var(--line);
  border-bottom: 0;
  background: #fff;
  font-family: inherit;
}

.rich-editor.ql-container.ql-snow {
  border: 1px solid var(--line);
  min-height: 180px;
  padding: 0;
  font-family: inherit;
  font-size: 16px;
}

.rich-editor.ql-container .ql-editor {
  min-height: inherit;
  padding: 13px 15px;
  line-height: 1.65;
}

.compact-rich.ql-container.ql-snow {
  min-height: 118px;
}

.rules-rich.ql-container.ql-snow {
  min-height: 360px;
}

.wysiwyg-large.ql-container.ql-snow {
  min-height: 240px;
}

.ql-editor h2,
.ql-editor h3,
.ql-editor p {
  margin: 0 0 12px;
}

.ql-editor ul,
.ql-editor ol {
  padding-left: 1.45em;
}

.rich-content {
  color: var(--ink);
}

.rich-content p,
.rich-content ul,
.rich-content ol {
  margin: 0 0 12px;
}

.rich-content,
.rich-content * {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.rich-content img,
.rich-content iframe,
.rich-content table {
  max-width: 100%;
}

.compact-rich {
  min-height: 118px;
}

.rules-rich {
  min-height: 360px;
}

.wysiwyg-large {
  min-height: 240px;
  line-height: 1.65;
}

.wysiwyg-large h2,
.wysiwyg-large h3,
.rich-editor h2,
.rich-editor h3 {
  margin: 0 0 12px;
}

.wysiwyg-large p,
.rich-editor p {
  margin: 0 0 12px;
}

.editor-accordion {
  border: 1px solid var(--line);
  background: #fff;
}

.editor-accordion + .editor-accordion {
  margin-top: 14px;
}

.editor-accordion summary {
  min-height: 68px;
  display: grid;
  gap: 4px;
  border-left: 5px solid var(--brand);
  background: #f8fbfd;
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 900;
}

.editor-accordion summary small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.accordion-content {
  padding: 14px;
}

.event-editor-form {
  gap: 12px;
}

.event-editor-form .accordion-content,
.event-step-grid,
.compact-form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.event-wizard-form {
  display: grid;
  gap: 14px;
}

.event-editor-timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  background: #f8fbfd;
}

.event-step-tab {
  min-width: 0;
  min-height: 58px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border: 1px solid #d6e5f0;
  background: #fff;
  color: var(--text);
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
}

.event-step-tab span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: #edf6fc;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
}

.event-step-tab strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.25;
}

.event-step-tab.is-active {
  border-color: var(--brand);
  background: #eaf6fc;
  box-shadow: inset 0 0 0 2px rgba(0, 134, 205, 0.14);
}

.event-step-tab.is-active span {
  background: var(--brand);
  color: #fff;
}

.event-step-panel {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 16px;
}

.event-step-panel[hidden] {
  display: none;
}

.event-step-head {
  border-left: 5px solid var(--brand);
  background: #f8fbfd;
  padding: 12px 14px;
}

.event-step-head h3 {
  margin: 2px 0 0;
  font-size: 20px;
}

.event-wizard-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.event-wizard-actions [data-event-step-prev] {
  margin-right: auto;
}

.classification-editor {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 14px;
}

.classification-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.classification-chip-list,
.classification-quick-list,
.classification-add-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.classification-add-row {
  align-items: center;
}

.classification-add-row input {
  flex: 1 1 260px;
  min-height: 38px;
  border: 1px solid var(--line);
  padding: 0 10px;
  font: inherit;
}

.classification-chip {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #cfe1ef;
  background: #eef8fe;
  padding: 4px 6px 4px 10px;
  font-size: 13px;
  font-weight: 800;
}

.classification-chip .icon-button {
  width: 26px;
  height: 26px;
  min-height: 26px;
  color: var(--muted);
}

.classification-quick-list .is-added {
  border-color: var(--brand);
  background: #eaf6fc;
  color: var(--brand-dark);
}

.event-editor-form .field {
  gap: 5px;
}

.event-editor-form .field input,
.event-editor-form .field select,
.event-editor-form .field textarea,
.event-editor-form .rich-editor {
  padding: 10px 12px;
}

.event-editor-form .field textarea {
  min-height: 86px;
}

.event-editor-form .file-preview {
  min-height: 136px;
}

.modal-sticky-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  padding: 14px 0 0;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.check-tile,
.check-row {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 9px 11px;
  font-weight: 800;
}

.check-tile input,
.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.rules-editor-summary {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 16px;
}

.rules-preview {
  max-height: 220px;
  overflow: auto;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.visual-builder-shell {
  display: grid;
  gap: 14px;
  border: 1px solid #d7e5f0;
  background: linear-gradient(180deg, #f6fbff, #eef7fd);
  padding: 16px;
}

.builder-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid #d7e5f0;
  padding-bottom: 12px;
}

.visual-builder {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.visual-section-block {
  display: grid;
  gap: 12px;
  border: 1px solid #c5d9e8;
  border-left: 5px solid var(--brand);
  background: #fff;
  padding: 16px;
  box-shadow: 0 14px 34px rgba(0, 72, 112, 0.12);
}

.section-span-full {
  grid-column: span 4;
}

.section-span-half {
  grid-column: span 2;
}

.section-span-quarter {
  grid-column: span 1;
}

.visual-section-block.is-dragging {
  opacity: 0.55;
}

.visual-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.section-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title-row small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.drag-handle {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: var(--sidebar);
  font-weight: 900;
}

.section-type-divider {
  border-left-color: #94a3b8;
}

.builder-divider-preview {
  display: grid;
  place-items: center;
  min-height: 54px;
  background: #f8fafc;
}

.builder-divider-preview span,
.landing-divider {
  display: block;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
}

.builder-section-preview {
  min-height: 72px;
  border: 1px dashed #bfd4e3;
  background: #f9fcff;
  padding: 12px;
}

.section-type-divider .builder-section-preview,
.section-type-heading .builder-section-preview {
  min-height: 44px;
  padding: 8px 10px;
}

.preview-heading h3,
.preview-paragraph h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.preview-image {
  margin: 0;
}

.preview-image img,
.preview-gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.preview-image figcaption {
  display: grid;
  gap: 3px;
  padding-top: 8px;
  font-size: 13px;
}

.preview-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.preview-placeholder {
  min-height: 86px;
  display: grid;
  place-items: center;
  border: 1px dashed #bdd0df;
  color: var(--muted);
  background: #fff;
  font-weight: 800;
}

.section-width-control {
  display: inline-flex;
  width: fit-content;
  border: 1px solid var(--line);
  background: #fff;
}

.segment-button {
  min-height: 32px;
  border: 0;
  border-right: 1px solid var(--line);
  background: #fff;
  padding: 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.segment-button:last-child {
  border-right: 0;
}

.segment-button.is-active {
  color: #fff;
  background: var(--brand);
}

.landing-divider {
  margin: 34px 0;
}

.section-image-preview {
  min-height: 220px;
}

.gallery-preview,
.landing-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.gallery-preview {
  min-height: 120px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  padding: 10px;
}

.gallery-preview img,
.landing-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.landing-media {
  margin: 0;
}

.landing-media img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
}

.landing-media figcaption {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-top: 0;
  background: #fff;
  padding: 12px 14px;
}

.communication-search {
  max-width: 520px;
}

.communication-thread {
  display: grid;
  gap: 12px;
}

.message-bubble {
  border: 1px solid var(--line);
  background: #fff;
  padding: 14px;
}

.message-bubble.is-inbound {
  border-left: 4px solid var(--brand);
}

.message-bubble.is-outbound {
  border-left: 4px solid #16a34a;
}

.message-bubble header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.message-bubble h3 {
  margin: 8px 0;
  font-size: 16px;
}

.landing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.landing-span-full {
  grid-column: span 4;
}

.landing-span-half {
  grid-column: span 2;
}

.landing-span-quarter {
  grid-column: span 1;
}

.landing-grid .content-block {
  border-top: 1px solid var(--line);
}

.event-row-list {
  display: grid;
  gap: 10px;
}

.event-row {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px;
}

.event-row[hidden],
.event-card[hidden],
[data-event-card][hidden],
[data-admin-search-item][hidden] {
  display: none !important;
}

.event-row img {
  width: 168px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.event-row h3 {
  margin: 8px 0 4px;
  font-size: 22px;
}

.event-row p {
  margin: 0;
}

.event-row-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.event-toggle-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 190px));
  gap: 6px;
  margin-bottom: 14px;
}

.event-toggle {
  min-height: 34px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 190px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.event-toggle span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-toggle i {
  flex: 0 0 auto;
  color: inherit;
}

.event-toggle:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.event-toggle.is-active {
  border-color: #16a34a;
  background: #16a34a;
  color: #fff;
}

.event-toggle.is-active:hover {
  border-color: #15803d;
  background: #15803d;
  color: #fff;
}

.ticket-event-panel {
  display: none;
}

.ticket-event-panel.is-active {
  display: block;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background: rgba(16, 17, 19, 0.58);
  padding: 22px;
}

.stacked-modal-overlay {
  z-index: 140;
}

.modal-panel {
  width: min(940px, 100%);
  max-height: min(88vh, 920px);
  overflow: auto;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
}

.modal-panel-wide {
  width: min(1180px, 100%);
}

.modal-panel-fullscreen {
  width: min(1720px, calc(100vw - 32px));
  height: calc(100vh - 32px);
  max-height: none;
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 12px 16px;
}

.modal-head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.modal-body {
  padding: 16px;
}

.modal-panel:not(.modal-panel-fullscreen) .auth-form {
  gap: 10px;
  margin-top: 10px;
}

.modal-panel:not(.modal-panel-fullscreen) .form-grid {
  gap: 10px;
}

.modal-panel:not(.modal-panel-fullscreen) .field {
  gap: 4px;
}

.modal-panel:not(.modal-panel-fullscreen) .field span,
.modal-panel:not(.modal-panel-fullscreen) .field label,
.modal-panel:not(.modal-panel-fullscreen) .label {
  font-size: 12px;
  font-weight: 700;
}

.modal-panel:not(.modal-panel-fullscreen) .field input,
.modal-panel:not(.modal-panel-fullscreen) .field select,
.modal-panel:not(.modal-panel-fullscreen) .field textarea {
  padding: 9px 11px;
  font-size: 13px;
}

.modal-panel:not(.modal-panel-fullscreen) .field textarea {
  min-height: 82px;
}

.modal-panel:not(.modal-panel-fullscreen) .button-row {
  gap: 8px;
}

.modal-panel:not(.modal-panel-fullscreen) .solid-button,
.modal-panel:not(.modal-panel-fullscreen) .ghost-button,
.modal-panel:not(.modal-panel-fullscreen) .soft-button,
.modal-panel:not(.modal-panel-fullscreen) .danger-button {
  min-height: 36px;
  padding: 0 14px;
  gap: 6px;
  font-size: 14px;
}

.modal-panel:not(.modal-panel-fullscreen) .empty-state {
  padding: 14px;
}

.modal-panel:not(.modal-panel-fullscreen) .modal-sticky-actions {
  padding-top: 10px;
}

@media (max-width: 1060px) {
  .event-grid,
  .panel-grid,
  .route-list.route-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .participant-new-events-card .event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-grid,
  .detail-grid,
  .participant-grid,
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .sticky-summary {
    position: static;
  }

  .event-editor-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  body.admin-mode .app-shell {
    display: block;
  }

  body.admin-mode .sidebar {
    position: sticky;
    top: 0;
    z-index: 80;
    width: auto;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid #25272c;
    overflow: visible;
  }

  body.admin-mode .sidebar .brand {
    min-height: 64px;
  }

  body.admin-mode .admin-sidebar-head {
    min-height: 64px;
    padding: 0 14px 0 0;
  }

  body.admin-mode .admin-nav-toggle {
    display: inline-flex;
  }

  body.admin-mode .side-nav {
    display: none;
    grid-template-columns: 1fr;
    max-height: calc(100vh - 64px);
    overflow: auto;
    padding: 10px;
  }

  body.admin-mode.admin-menu-open .side-nav {
    display: grid;
  }

  body.admin-mode .panel-main {
    grid-column: auto;
    min-height: auto;
  }

  .admin-topbar {
    position: static;
    min-height: auto;
    flex-wrap: wrap;
    padding: 10px 16px;
  }

  .admin-content {
    padding: 16px;
  }

  .participant-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .participant-filter-grid .field:first-child {
    grid-column: 1 / -1;
  }

  .office-command-bar {
    display: grid;
  }

  .office-metrics-bar {
    flex-wrap: wrap;
  }

  .office-event-context {
    min-width: 0;
  }

  .office-action-row {
    flex-wrap: wrap;
  }

  .office-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .participant-filter-grid.office-filter-grid .field:first-child {
    grid-column: 1 / -1;
  }

  body.admin-mode .panel-title {
    margin: -16px -16px 18px;
    padding: 16px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 64px;
  }

  .icon-button.nav-toggle,
  .admin-nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: fixed;
    inset: 64px 0 auto 0;
    display: none;
    padding: 12px 16px 18px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
  }

  body.menu-open .primary-nav {
    display: grid;
  }

  .route-list.route-list-grid {
    grid-template-columns: 1fr;
  }

  body.home-mode .primary-nav a,
  body.event-mode .primary-nav a {
    color: var(--muted);
  }

  body.home-mode .primary-nav a:hover,
  body.home-mode .primary-nav a[aria-current="page"],
  body.event-mode .primary-nav a:hover,
  body.event-mode .primary-nav a[aria-current="page"] {
    color: var(--ink);
  }

  body.home-mode .primary-nav .login-link,
  body.event-mode .primary-nav .login-link {
    color: #111;
    background: var(--brand);
  }

  .primary-nav a,
  .primary-nav button {
    justify-content: center;
  }

  body.admin-mode .sidebar {
    position: sticky;
    top: 0;
    z-index: 80;
    width: 100%;
    overflow: visible;
    border-bottom: 1px solid #25272c;
  }

  body.admin-mode .admin-sidebar-head {
    min-height: 64px;
    padding: 0 14px 0 0;
  }

  body.admin-mode .side-nav {
    display: none;
    grid-template-columns: 1fr;
    max-height: calc(100vh - 64px);
    overflow: auto;
    padding: 10px;
  }

  .office-metrics-bar span {
    flex: 1 1 calc(50% - 1px);
    border-bottom: 1px solid var(--line);
  }

  .office-metrics-bar span:nth-child(even) {
    border-right: 0;
  }

  .office-metrics-bar span:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .office-event-context {
    display: grid;
  }

  .office-event-context strong {
    white-space: normal;
  }

  .office-action-row .solid-button {
    flex: 1 1 180px;
  }

  body.admin-mode.admin-menu-open .side-nav {
    display: grid;
  }

  .brand-name {
    display: none;
  }

  .hero {
    min-height: 640px;
  }

  .hero::after {
    top: 228px;
    height: 130px;
  }

  .hero h1,
  .event-detail-content h1 {
    font-size: 42px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .search-panel {
    margin-top: 0;
    padding: 16px;
  }

  .section {
    padding: 48px 16px;
  }

  .section-head,
  .panel-title,
  .participant-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .event-grid,
  .panel-grid,
  .form-grid,
  .spacious-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .participant-filter-grid .field:first-child {
    grid-column: auto;
  }

  .admin-section-heading {
    display: grid;
    gap: 3px;
  }

  .admin-topbar-actions,
  .admin-topbar-actions .button-row,
  .media-toolbar {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .media-selected-pill {
    white-space: normal;
  }

  .office-row-actions {
    flex-wrap: wrap;
  }

  .staff-access-card .panel-title {
    align-items: stretch;
  }

  .auth-visual {
    min-height: 240px;
  }

  .auth-card,
  .panel-card,
  .profile-card {
    padding: 16px;
  }

  .participant-events-card {
    padding: 0;
  }

  .participant-new-events-card {
    width: 100%;
    min-width: 0;
  }

  .participant-new-events-card .event-grid {
    grid-template-columns: 1fr;
  }

  .registration-card {
    grid-template-columns: 1fr;
  }

  .event-row {
    grid-template-columns: 1fr;
  }

  .event-row img {
    width: 100%;
  }

  .event-row-actions,
  .visual-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .event-editor-form .accordion-content,
  .event-step-grid,
  .compact-form-grid,
  .visual-builder,
  .landing-grid {
    grid-template-columns: 1fr;
  }

  .event-editor-timeline {
    grid-template-columns: 1fr;
  }

  .event-wizard-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .event-wizard-actions [data-event-step-prev] {
    margin-right: 0;
  }

  .section-span-full,
  .section-span-half,
  .section-span-quarter,
  .landing-span-full,
  .landing-span-half,
  .landing-span-quarter {
    grid-column: 1 / -1;
  }

  .modal-overlay {
    align-items: stretch;
    padding: 10px;
  }

  .qr-card {
    width: 100%;
  }

  .anchor-tabs {
    top: 64px;
  }

  .toast-region {
    top: 76px;
    left: 50%;
    right: auto;
    bottom: auto;
    width: min(520px, calc(100vw - 20px));
  }

  body.admin-mode .side-nav {
    grid-template-columns: 1fr;
    max-height: 55vh;
    overflow: auto;
  }

  .modal-panel,
  .media-library-panel {
    max-height: calc(100vh - 20px);
  }

  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 42vh;
  }

  .media-delete-button {
    opacity: 1;
  }
}

@media (max-width: 460px) {
  body {
    font-size: 15px;
  }

  .hero h1,
  .event-detail-content h1 {
    font-size: 36px;
  }

  .button-row,
  .meta-line {
    align-items: stretch;
    flex-direction: column;
  }

  .button-row > * {
    width: 100%;
  }

  .solid-button,
  .soft-button,
  .ghost-button,
  .danger-button {
    width: 100%;
  }

  th,
  td,
  .media-name,
  .staff-permission-summary {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 640px) {
  .family-participant-row {
    grid-template-columns: auto 1fr;
  }

  .family-order-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

/* Participant dashboard visual refresh */
body.participant-mode {
  background: #f3f6fa;
}

body.participant-mode .site-header {
  border-bottom-color: #e4eaf1;
  box-shadow: 0 5px 18px rgba(34, 48, 66, 0.05);
}

@media (min-width: 761px) {
  body.participant-mode .header-inner {
    min-height: 70px;
  }

  .participant-primary-nav {
    gap: 4px;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: transparent;
  }

  .participant-nav-greeting {
    min-height: 40px;
    padding: 0 8px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: #1b2735;
    box-shadow: none;
  }

  .participant-nav-separator {
    display: none;
  }

  .participant-primary-nav a,
  .participant-primary-nav button,
  .participant-primary-nav .participant-account-link {
    min-height: 42px;
    padding: 0 14px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: #5a6878;
    font-size: 14px;
    font-weight: 600;
    transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  }

  .participant-primary-nav a::after,
  .participant-primary-nav button::after {
    display: none;
  }

  .participant-primary-nav a:hover,
  .participant-primary-nav button:hover,
  .participant-primary-nav .participant-account-link:hover {
    color: #2454a6;
    background: #fff;
    box-shadow: 0 3px 10px rgba(34, 48, 66, 0.08);
    transform: translateY(-1px);
  }

  .participant-primary-nav a[aria-current="page"],
  .participant-primary-nav .participant-account-link[aria-current="page"] {
    color: #2454a6;
    background: transparent;
    outline: 1px solid #2454a6;
    outline-offset: -1px;
    box-shadow: none;
  }

  .participant-primary-nav .participant-nav-action[data-logout]:hover {
    color: #b4232f;
    background: #fff1f2;
    box-shadow: none;
  }

  body.home-mode .participant-primary-nav,
  body.event-mode .participant-primary-nav {
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  body.home-mode .participant-nav-greeting,
  body.event-mode .participant-nav-greeting {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: none;
  }

  body.home-mode .participant-primary-nav a,
  body.home-mode .participant-primary-nav button,
  body.home-mode .participant-primary-nav .participant-account-link,
  body.event-mode .participant-primary-nav a,
  body.event-mode .participant-primary-nav button,
  body.event-mode .participant-primary-nav .participant-account-link {
    border: 0;
    color: rgba(255, 255, 255, 0.88);
    background: transparent;
  }

  body.home-mode .participant-primary-nav a:hover,
  body.home-mode .participant-primary-nav button:hover,
  body.home-mode .participant-primary-nav .participant-account-link:hover,
  body.event-mode .participant-primary-nav a:hover,
  body.event-mode .participant-primary-nav button:hover,
  body.event-mode .participant-primary-nav .participant-account-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
  }

  body.home-mode .participant-primary-nav a[aria-current="page"],
  body.home-mode .participant-primary-nav .participant-account-link[aria-current="page"],
  body.event-mode .participant-primary-nav a[aria-current="page"],
  body.event-mode .participant-primary-nav .participant-account-link[aria-current="page"] {
    color: #fff;
    background: transparent;
    outline: 1px solid rgba(255, 255, 255, 0.9);
    outline-offset: -1px;
    box-shadow: none;
  }
}

body.participant-mode .participant-layout {
  padding-top: 8px;
  padding-bottom: 64px;
}

body.participant-mode .participant-top-heading {
  margin-bottom: 22px;
}

body.participant-mode .participant-tabs {
  gap: 4px;
  padding: 5px;
  border: 1px solid #e2e9f1;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(34, 48, 66, 0.05);
}

body.participant-mode .participant-tabs a {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #627083;
  font-weight: 700;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

body.participant-mode .participant-tabs a:hover {
  color: #2454a6;
  background: #f1f5fb;
}

body.participant-mode .participant-tabs a[aria-current="page"] {
  color: #fff;
  background: #2454a6;
  box-shadow: 0 6px 14px rgba(36, 84, 166, 0.2);
}

body.participant-mode .participant-tabs a[aria-current="page"] strong {
  color: #fff;
}

body.participant-mode .participant-main {
  gap: 24px;
}

body.participant-mode .participant-events-card,
body.participant-mode .participant-new-events-card,
body.participant-mode .guardian-children-card {
  border: 1px solid #e1e8f0;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(34, 48, 66, 0.06);
}

body.participant-mode .participant-events-card {
  padding: 0;
}

body.participant-mode .participant-card-strip {
  position: relative;
  padding: 18px 20px;
  border-bottom: 1px solid #e8edf3;
  background: #fff;
  color: #1b2735;
}

body.participant-mode .participant-card-strip h2 {
  color: #1b2735;
  font-size: 18px;
}

body.participant-mode .participant-card-body {
  padding: 18px;
}

body.participant-mode .registration-card {
  gap: 20px;
  margin-bottom: 14px;
  padding: 20px;
  border-color: #e4eaf1;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(34, 48, 66, 0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

body.participant-mode .registration-card:hover {
  border-color: #cfdae7;
  box-shadow: 0 10px 24px rgba(34, 48, 66, 0.08);
  transform: translateY(-1px);
}

body.participant-mode .registration-card h3 {
  margin: 10px 0 2px;
  color: #1b2735;
  font-size: 20px;
  line-height: 1.25;
}

body.participant-mode .registration-card h3 ~ p.muted {
  margin-top: 0;
  font-size: 13px;
  line-height: 1.35;
}

body.participant-mode .participant-new-events-card {
  padding: 18px;
}

body.participant-mode .participant-new-events-card > h2 {
  margin: 0 0 16px;
  color: #1b2735;
  font-size: 18px;
}

body.participant-mode .participant-new-events-card .event-card {
  border-color: #e4eaf1;
  border-radius: 3px;
  box-shadow: 0 5px 16px rgba(34, 48, 66, 0.05);
}

body.participant-mode .participant-new-events-card .event-card:hover {
  box-shadow: 0 12px 26px rgba(34, 48, 66, 0.1);
}

body.participant-mode .solid-button,
body.participant-mode .ghost-button,
body.participant-mode .soft-button,
body.participant-mode .participant-material-button {
  border-radius: 3px;
}

body.participant-mode .ghost-button {
  border-color: #dce4ed;
  background: #fff;
}

body.participant-mode .empty-state {
  border-radius: 3px;
  background: #f7f9fc;
  color: #68778a;
}

@media (max-width: 760px) {
  body.participant-mode .participant-layout {
    padding-top: 16px;
    padding-bottom: 44px;
  }

  body.participant-mode .participant-card-strip {
    padding: 15px 16px;
  }

  body.participant-mode .participant-card-body,
  body.participant-mode .participant-new-events-card {
    padding: 14px;
  }

  body.participant-mode .registration-card {
    padding: 16px;
  }

  body.menu-open .participant-primary-nav {
    gap: 8px;
    background: #f3f6fa;
  }

  body.menu-open .participant-primary-nav a,
  body.menu-open .participant-primary-nav button,
  body.menu-open .participant-primary-nav .participant-account-link {
    border-color: #e1e8f0;
    border-radius: 3px;
    background: #fff;
    color: #334155;
    box-shadow: 0 4px 12px rgba(34, 48, 66, 0.04);
  }

  body.menu-open .participant-primary-nav a[aria-current="page"],
  body.menu-open .participant-primary-nav .participant-account-link[aria-current="page"] {
    border-color: #2454a6;
    background: #2454a6;
    color: #fff;
  }
}

/* Visual tokens */
:root {
  --page: #ffffff;
  --surface: #ffffff;
  --surface-soft: #eef8fe;
  --ink: #232323;
  --muted: #595959;
  --line: #e8edf4;
  --brand: #0086cd;
  --brand-dark: #232323;
  --accent: #f48723;
  --sidebar: #17181f;
  --sidebar-soft: #222431;
  --shadow: 0 22px 48px rgba(0, 134, 205, 0.14);
  --radius: 3px;
  --event-radius: 3px;
}

.brand-mark,
.primary-nav .login-link,
body.home-mode .primary-nav .login-link,
body.event-mode .primary-nav .login-link,
.icon-button,
.solid-button,
.soft-button,
.floating-signup {
  color: #fff;
}

.brand-mark {
  box-shadow: 0 12px 30px rgba(0, 134, 205, 0.24);
}

body.home-mode .brand,
body.event-mode .brand,
.hero .ghost-button,
.event-detail-hero .ghost-button {
  color: #fff;
}

.solid-button {
  box-shadow: 0 12px 28px rgba(0, 134, 205, 0.22);
}

.solid-button:hover {
  box-shadow: 0 16px 34px rgba(0, 134, 205, 0.24);
}

.pay-now-button {
  background: #dc2626;
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.22);
}

.pay-now-button:hover {
  background: #b91c1c;
}

.view-event-button {
  background: #16a34a;
  box-shadow: 0 12px 28px rgba(22, 163, 74, 0.22);
}

.registration-card .view-event-button,
.registration-card [data-send-starter-card],
.registration-card [data-download-starter] {
  min-height: 36px;
  padding: 7px 11px;
  font-size: 0.86rem;
  gap: 6px;
}

.checkout-steps {
  display: grid;
  gap: 18px;
}

.checkout-step {
  padding: 16px;
  border: 1px solid rgba(15, 111, 255, 0.12);
  background: #fff;
}

.checkout-step > h3:first-child {
  margin-top: 0;
}

.checkout-step-coupon,
.checkout-step-summary {
  border-color: rgba(15, 111, 255, 0.16);
  background: rgba(15, 111, 255, 0.05);
}

.checkout-step-consents {
  border-color: rgba(22, 163, 74, 0.16);
  background: rgba(22, 163, 74, 0.05);
}

/* Zwarty formularz zapisu dzieci */
.child-registration-form {
  gap: 10px;
  margin-top: 10px;
}

.child-registration-form .checkout-steps {
  gap: 10px;
}

.child-registration-form .checkout-step,
.child-registration-form .checkout-step-consents {
  padding: 0;
  border: 0;
  background: transparent;
}

.child-registration-form .checkout-step > h3 {
  margin: 8px 0 7px;
  padding: 7px 10px;
  border: 0;
  border-radius: 3px;
  background: #2454a6;
  color: #fff;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
}

.child-registration-form .checkout-step > h3:first-child {
  margin-top: 0;
}

.child-registration-form .field {
  gap: 4px;
}

.child-registration-form .field span,
.child-registration-form .field label {
  font-size: 12px;
  font-weight: 700;
}

.child-registration-form .field input,
.child-registration-form .field select,
.child-registration-form .field textarea {
  padding: 9px 11px;
  font-size: 13px;
}

.child-registration-form .child-profile-panels {
  gap: 6px;
  margin-top: 8px;
}

.child-registration-form .child-profile-panel,
.child-registration-form .child-inline-panel {
  padding: 8px 10px;
}

.child-registration-form .child-selection-list,
.child-registration-form .child-addon-panels {
  gap: 6px;
}

.child-registration-form .child-select-card {
  min-height: 50px;
  gap: 8px;
  padding: 8px 10px;
  font-size: 13px;
}

.child-registration-form .child-select-card small,
.child-registration-form .child-profile-panel small {
  margin-top: 1px;
  font-size: 11px;
}

.child-registration-form .checkout-option,
.child-registration-form .checkout-addon {
  padding: 8px 10px;
}

/* Spójny, zwarty checkout w popupie „Kontynuuj zapis” */
.registration-checkout .checkout-steps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.registration-checkout .checkout-step {
  padding: 0;
  border: 0;
  background: transparent;
}

.registration-checkout .checkout-step > h3 {
  margin: 0 0 7px;
  padding: 7px 10px;
  border-radius: 3px;
  background: #2454a6;
  color: #fff;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
}

.registration-checkout .checkout-summary {
  grid-column: 1 / -1;
}

.registration-checkout .checkout-options,
.registration-checkout .checkout-addons {
  gap: 6px;
}

.registration-checkout .checkout-option,
.registration-checkout .checkout-addon {
  padding: 8px 10px;
  font-size: 13px;
}

.registration-checkout .checkout-option small,
.registration-checkout .checkout-addon small,
.registration-checkout .inline-note,
.registration-checkout .muted {
  font-size: 11px;
}

.registration-checkout .field {
  gap: 4px;
}

.registration-checkout .field span,
.registration-checkout .field label {
  font-size: 12px;
}

.registration-checkout .field input,
.registration-checkout .field select,
.registration-checkout .field textarea {
  padding: 9px 11px;
  font-size: 13px;
}

.registration-checkout .checkout-summary p {
  margin: 4px 0;
}

.registration-checkout .modal-sticky-actions {
  padding-top: 10px;
}

@media (max-width: 760px) {
  .registration-checkout .checkout-steps {
    grid-template-columns: 1fr;
  }

  .registration-checkout .checkout-summary {
    grid-column: auto;
  }
}

.checkout-options,
.checkout-addons {
  display: grid;
  gap: 10px;
}

.checkout-option,
.checkout-addon {
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px;
}

.checkout-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.checkout-addon {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: start;
}

.checkout-addon .field {
  grid-column: 2;
}

.checkout-addon-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: #eef6ff;
  color: #0f6fff;
  overflow: hidden;
}

.checkout-addon-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.checkout-option small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.participant-accounts-table tr .participant-edit-button {
  opacity: 0;
}

.participant-accounts-table tr:hover .participant-edit-button,
.participant-edit-button:focus-visible {
  opacity: 1;
}

.soft-button {
  background: var(--accent);
}

.ghost-button {
  color: var(--brand);
  border-color: rgba(0, 134, 205, 0.22);
}

.side-nav a:hover,
.side-nav a[aria-current="page"],
.side-nav button:hover,
body.admin-mode .side-nav a:hover,
body.admin-mode .side-nav button:hover,
body.admin-mode .side-nav a[aria-current="page"],
.anchor-tabs a:hover,
.anchor-tabs button:hover {
  color: #fff;
}

.floating-signup {
  border-radius: 3px;
  box-shadow: 0 18px 38px rgba(0, 134, 205, 0.22);
}

@media (min-width: 761px) {
  .floating-signup {
    display: none;
  }
}

/* UI adjustments */
.hero {
  min-height: 380px;
}

.hero::after {
  top: 148px;
  height: 112px;
}

.hero-content {
  padding: 118px 0 58px;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(40px, 6vw, 70px);
}

.hero-copy {
  font-size: 18px;
  margin-top: 16px;
}

.search-panel {
  padding-top: 18px;
  padding-bottom: 18px;
}

.search-panel h1,
.search-panel h2 {
  font-size: clamp(22px, 3vw, 30px);
}

.search-grid {
  margin-top: 12px;
  gap: 10px;
}

.search-grid .field span {
  font-size: 12px;
}

.search-grid .field input,
.search-grid .field select {
  padding: 10px 12px;
}

.search-grid .solid-button {
  min-height: 44px;
  padding-inline: 18px;
}

#events.section {
  padding-top: 30px;
}

.event-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sales-dashboard-card .panel-title {
  align-items: flex-start;
}

.stats-chart-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-chart-card {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  padding: 16px;
}

.stat-chart-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 10px;
}

.stat-chart-head span {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}

.stat-chart-head strong {
  font-size: 28px;
  line-height: 1;
}

.stat-chart-card svg {
  width: 100%;
  height: 72px;
  color: var(--brand-dark);
}

@media (max-width: 1020px) {
  .event-grid,
  .stats-chart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: 360px;
  }
  .event-grid,
  .stats-chart-grid {
    grid-template-columns: 1fr;
  }
}

/* Homepage search */
.hero {
  min-height: 560px;
  align-items: end;
  overflow: visible;
}

.hero::before {
  background-image:
    linear-gradient(90deg, rgba(10, 22, 38, 0.82), rgba(10, 22, 38, 0.48), rgba(10, 22, 38, 0.10)),
    url("../img/hero-events.jpg");
  background-position: center;
}

.hero::after {
  display: none;
}

.hero-content {
  padding: 150px 0 165px;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  letter-spacing: .08em;
}

.hero h1 {
  max-width: 820px;
  padding-left: 0;
  font-size: clamp(44px, 6vw, 78px);
  line-height: 1.02;
  text-shadow: 0 16px 38px rgba(0, 0, 0, .25);
}

.hero-copy {
  max-width: 560px;
  font-size: clamp(18px, 2vw, 25px);
  color: rgba(255, 255, 255, .92);
}

.home-search-panel {
  z-index: 8;
  width: min(calc(100% - 96px), var(--wide-content));
  margin: -74px auto 0;
  padding: 22px 26px;
  border: 0;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .16);
}

.home-search-panel h2 {
  display: none;
}

.home-search-panel .search-grid {
  margin-top: 0;
  grid-template-columns: minmax(240px, 2fr) minmax(170px, 1fr) minmax(170px, 1fr) 170px;
  gap: 0;
  align-items: stretch;
}

.home-search-panel .field {
  gap: 8px;
  padding: 6px 24px 6px 0;
  margin: 0 24px 0 0;
  border-right: 1px solid rgba(15, 23, 42, .12);
}

.home-search-panel .field span {
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
}

.home-search-panel input,
.home-search-panel select {
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  box-shadow: none;
  font-size: 16px;
  font-weight: 600;
}

.home-search-panel .solid-button {
  min-height: 48px;
  align-self: center;
  justify-content: center;
  border-radius: 3px;
  box-shadow: 0 10px 24px rgba(0, 95, 210, .24);
}

#events.section {
  padding-top: 86px;
  padding-left: max(44px, calc((100vw - var(--wide-content)) / 2));
  padding-right: max(44px, calc((100vw - var(--wide-content)) / 2));
}

.event-grid {
  gap: 24px;
}

.event-card,
.event-card-image,
.event-card img,
.date-badge {
  border-radius: 3px;
}

.event-card {
  box-shadow: 0 14px 36px rgba(15, 23, 42, .08);
}

.empty-events {
  grid-column: 1 / -1;
  margin: 12px 0 0;
  padding: 24px;
  border: 1px solid var(--line);
  background: #fff;
  text-align: center;
}

@media (max-width: 900px) {
  .hero {
    min-height: 500px;
  }

  .hero-content {
    padding: 120px 0 150px;
  }

  .home-search-panel {
    width: min(calc(100% - 32px), var(--wide-content));
    margin-top: -96px;
    padding: 18px;
  }

  .home-search-panel .search-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .home-search-panel .field {
    padding: 0 0 12px;
    margin: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(15, 23, 42, .10);
  }

  #events.section {
    padding-top: 54px;
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Dashboard charts */
body.admin-mode .sales-dashboard-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #e6eef8;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .07);
}

body.admin-mode .sales-dashboard-card .panel-title {
  margin-bottom: 18px;
}

body.admin-mode .stats-chart-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

body.admin-mode .apex-stat-card {
  min-height: 172px;
  background: #fff;
  border: 1px solid #e6eef8;
  box-shadow: 0 14px 35px rgba(15, 23, 42, .06);
  overflow: hidden;
}

body.admin-mode .stat-chart-head {
  align-items: flex-start;
  margin-bottom: 12px;
}

body.admin-mode .stat-chart-head small {
  display: block;
  margin-top: 4px;
  color: #8090a6;
  font-size: 11px;
  font-weight: 700;
}

body.admin-mode .dashboard-chart-mini {
  min-height: 92px;
  margin: 2px -8px -10px;
}

.dashboard-analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, .85fr);
  gap: 16px;
}

.analytics-panel {
  background: #fff;
  border: 1px solid #e6eef8;
  padding: 18px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, .055);
}

.analytics-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 8px;
}

.analytics-panel-head h3 {
  margin: 4px 0 0;
  font-size: 18px;
}

.analytics-panel-head strong {
  font-size: 20px;
  color: var(--brand-dark);
  white-space: nowrap;
}

.panel-kicker {
  display: inline-flex;
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dashboard-chart-large,
.dashboard-chart-donut {
  min-height: 285px;
}

.apexcharts-tooltip,
.apexcharts-menu {
  border-radius: 3px !important;
  border-color: #e6eef8 !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .12) !important;
  font-family: Poppins, Arial, sans-serif !important;
}

.apexcharts-legend-text,
.apexcharts-text {
  font-family: Poppins, Arial, sans-serif !important;
}

@media (max-width: 1120px) {
  body.admin-mode .stats-chart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-analytics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body.admin-mode .stats-chart-grid {
    grid-template-columns: 1fr;
  }
  .analytics-panel-head {
    display: block;
  }
  .analytics-panel-head strong {
    display: block;
    margin-top: 8px;
  }
}

/* Footer downloads */
.footer {
  border-top: 0;
  background: #07111f;
  color: #eaf2ff;
}

.footer .brand-name,
.footer h2,
.footer h3 {
  color: #fff;
}

.footer .brand-mark {
  background: #0b7fd3;
  color: #fff;
}

.footer .muted,
.footer p {
  color: rgba(234, 242, 255, .72);
}

.footer a {
  color: rgba(234, 242, 255, .78);
}

.footer a:hover {
  color: #fff;
}

.qr-image {
  width: 132px;
  height: 132px;
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  object-fit: contain;
}

.download-module {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  align-items: center;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.download-icon {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  background: #eaf6ff;
  color: var(--blue);
  font-size: 44px;
}

.download-module h2 {
  margin-top: 0;
}

@media (max-width: 720px) {
  .download-module {
    grid-template-columns: 1fr;
  }
}

/* Participant addons */
.participant-greeting {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.participant-avatar-preview {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--brand);
  font-size: 22px;
  overflow: hidden;
}

.participant-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.participant-addons {
  margin: 14px 0 16px;
  padding: 14px;
  background: #f7fbff;
  border: 1px solid #e0edf7;
}

.participant-addons h4 {
  margin: 0 0 10px;
}

.participant-addon-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.participant-addon-tile {
  border: 1px solid #dbe7f2;
  background: #fff;
  color: var(--text);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.participant-addon-tile:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--blue);
  box-shadow: 0 10px 24px rgba(0,134,205,.12);
}

.participant-addon-tile.is-disabled,
.participant-addon-tile:disabled {
  opacity: .55;
  cursor: not-allowed;
  filter: grayscale(1);
}

.addon-tile-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: #eaf6fd;
  color: var(--blue);
  flex: 0 0 38px;
}

.participant-addon-tile strong,
.participant-addon-tile small,
.participant-addon-tile em {
  display: block;
}

.participant-addon-tile small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.participant-addon-tile em {
  margin-top: 4px;
  color: #9b4a14;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

@media (max-width: 760px) {
  .participant-greeting {
    align-items: flex-start;
  }
  .participant-avatar-preview {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    font-size: 18px;
  }
  .participant-addon-grid {
    grid-template-columns: 1fr;
  }
}

/* Addon shop */
.participant-addon-tile .addon-tile-icon img,
.bought-addon-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.participant-addon-tile .addon-tile-icon{
  overflow:hidden;
  background:#f3f7fb;
}
.participant-bought-addons{
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid rgba(15,23,42,.08);
}
.bought-addon-list{
  display:grid;
  gap:10px;
}
.bought-addon-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px;
  border:1px solid rgba(15,23,42,.08);
  background:#f8fafc;
}
.bought-addon-thumb{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  background:#eef6ff;
  color:#0f6fff;
  overflow:hidden;
  flex:0 0 auto;
}
.bought-addon-item strong,
.bought-addon-item small{
  display:block;
}
.addon-shop-grid{
  display:grid;
  grid-template-columns:minmax(240px, .9fr) minmax(280px, 1.1fr);
  gap:24px;
  align-items:start;
}
.addon-shop-main-img{
  min-height:280px;
  display:grid;
  place-items:center;
  background:#f3f7fb;
  border:1px solid rgba(15,23,42,.08);
  color:#0f6fff;
  font-size:48px;
  overflow:hidden;
}
.addon-shop-main-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.addon-shop-gallery{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
  margin-top:10px;
}
.addon-shop-gallery img{
  aspect-ratio:1;
  width:100%;
  object-fit:cover;
  border:1px solid rgba(15,23,42,.08);
}
.addon-shop-price{
  font-size:32px;
  font-weight:800;
  margin:16px 0;
}
@media (max-width: 760px){
  .addon-shop-grid{grid-template-columns:1fr;}
}

@media (max-width: 900px) {
  .order-filter-grid,
  .sales-summary-columns {
    grid-template-columns: 1fr;
  }

  .archive-sales-row {
    display: grid;
  }

  .order-detail-box {
    min-width: 0;
  }

  .ticket-purchase-card,
  .ticket-purchase-meta {
    grid-template-columns: 1fr;
  }
}

/* Checkout preview */
.addon-shop .button-row{
  margin-top:22px;
}
.addon-shop-main-img{
  min-height:360px;
  background:#f7f9fc;
}
.addon-shop-main-img img{
  object-fit:contain;
  background:#fff;
}
.product-thumb-preview img{
  max-width:220px;
  max-height:220px;
  object-fit:contain;
}

/* Mobile event, participant, and download polish */
.guardian-children-card {
  width: min(420px, 100%);
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px;
}

.guardian-children-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.guardian-children-head h2 {
  margin: 0;
  font-size: 16px;
}

.guardian-children-head span {
  min-width: 28px;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  background: #eef8fe;
  color: var(--brand);
  font-weight: 900;
}

.guardian-children-list .child-account-item {
  grid-template-columns: auto minmax(0, 1fr) auto;
  background: #f8fbfe;
}

.guardian-children-empty {
  padding: 14px;
  text-align: left;
}

.download-module .button-row {
  min-width: 0;
}

.download-module .solid-button,
.download-module .ghost-button {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

@media (max-width: 760px) {
  body.menu-open .site-header {
    position: fixed;
    inset: 0 0 auto;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    backdrop-filter: none;
  }

  body.menu-open .brand,
  body.menu-open.home-mode .brand,
  body.menu-open.event-mode .brand {
    color: var(--ink);
  }

  body.menu-open .icon-button.nav-toggle {
    position: relative;
    z-index: 82;
    color: #fff;
    background: var(--brand);
  }

  .primary-nav,
  body.home-mode .primary-nav,
  body.event-mode .primary-nav {
    position: fixed;
    inset: 64px 0 0;
    z-index: 81;
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 20px 18px 28px;
    width: 100vw;
    max-width: 100vw;
    border: 0;
    background: #fff;
    box-shadow: none;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  body.menu-open .primary-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .primary-nav a,
  .primary-nav button,
  body.home-mode .primary-nav a,
  body.home-mode .primary-nav button,
  body.event-mode .primary-nav a,
  body.event-mode .primary-nav button,
  .participant-primary-nav a,
  .participant-primary-nav button {
    width: 100%;
    min-height: 52px;
    justify-content: flex-start;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    padding: 0 16px;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    min-width: 0;
    white-space: normal;
    text-align: left;
  }

  .primary-nav a::after,
  .primary-nav button::after {
    display: none;
  }

  .participant-nav-greeting,
  .participant-nav-separator {
    display: none;
  }

  .primary-nav .login-link,
  body.home-mode .primary-nav .login-link,
  body.event-mode .primary-nav .login-link,
  .participant-primary-nav .participant-account-link {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
  }

  body.home-mode .participant-primary-nav .participant-account-link,
  body.event-mode .participant-primary-nav .participant-account-link,
  body.home-mode .participant-primary-nav .participant-account-link:hover,
  body.event-mode .participant-primary-nav .participant-account-link:hover,
  body.home-mode .participant-primary-nav .participant-account-link[aria-current="page"],
  body.event-mode .participant-primary-nav .participant-account-link[aria-current="page"] {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
  }

  .event-detail-hero {
    min-height: 360px;
  }

  .event-detail-content {
    width: min(100% - 32px, var(--wide-content));
    padding: 104px 0 30px;
  }

  .event-detail-content h1 {
    line-height: 1.02;
    overflow-wrap: anywhere;
  }

  .event-hero-meta {
    display: none;
  }

  .detail-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-left: 16px;
    padding-right: 16px;
    overflow: hidden;
  }

  .detail-grid > div,
  .content-block,
  .rich-content,
  .panel-grid,
  .dash-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .content-block .panel-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid > aside {
    order: -1;
  }

  .sticky-summary {
    width: 100%;
    padding: 14px;
  }

  .sticky-summary [data-start-signup],
  .sticky-summary [data-start-child-signup] {
    display: none;
  }

  .summary-list li,
  .summary-list-icons li {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 3px;
  }

  .summary-list-icons i {
    display: none;
  }

  .content-block {
    padding: 24px 0;
    scroll-margin-top: 164px;
    overflow-wrap: anywhere;
  }

  .summary-classifications {
    scroll-margin-top: 164px;
  }

  .content-block h2 {
    font-size: 28px;
  }

  .content-block .section-bar {
    align-items: flex-start;
    font-size: 16px;
  }

  .route-item,
  .schedule-item,
  .material-item {
    padding: 14px;
  }

  .floating-signup {
    left: auto;
    right: 14px;
    bottom: 14px;
    transform: none;
    width: auto;
    max-width: calc(100vw - 28px);
    min-height: 48px;
    padding: 0 15px;
    gap: 7px;
    border-radius: 999px;
    font-size: 14px;
    line-height: 1;
    color: #fff;
    background: #16a34a;
    box-shadow: 0 16px 34px rgba(22, 163, 74, 0.32);
  }

  .floating-signup:hover,
  .floating-signup:focus-visible {
    background: #15803d;
  }

  .floating-signup span {
    max-width: 94px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .participant-layout {
    padding: 10px 14px 44px;
  }

  .participant-top-heading,
  .participant-child-actions,
  .participant-child-actions .child-account-toolbar,
  .guardian-children-card {
    width: 100%;
  }

  .participant-child-actions {
    justify-items: stretch;
    margin-left: 0;
  }

  .participant-child-actions .child-account-toolbar {
    justify-content: stretch;
  }

  .participant-child-actions .child-account-toolbar .solid-button {
    width: 100%;
  }

  .guardian-children-list .child-account-item,
  .child-account-item {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .child-select-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .child-account-actions {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    justify-self: end;
    display: inline-flex;
    width: auto;
  }

  .guardian-children-list .child-account-item .participant-edit-button,
  .child-account-item .participant-edit-button,
  .child-account-item .danger-icon-button {
    grid-column: auto;
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
  }

  .child-account-item .participant-edit-button {
    border-color: #16a34a;
    background: #16a34a;
    color: #fff;
  }

  .child-account-item .danger-icon-button {
    border-color: var(--danger);
    background: var(--danger);
    color: #fff;
  }

  .participant-tabs {
    display: none;
  }

  .registration-card .button-row > *,
  .participant-new-events-card .button-row > * {
    width: 100%;
  }

  .participant-card-body {
    padding-top: 10px;
  }

  .participant-materials-list,
  .registration-card .button-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .download-module {
    padding: 18px;
    gap: 16px;
  }

  .download-icon {
    width: 64px;
    height: 64px;
    font-size: 32px;
  }

  .download-module .button-row {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

@media (max-width: 460px) {
  .event-detail-content h1 {
    font-size: 32px;
  }

  .anchor-tabs-inner {
    width: calc(100% - 20px);
  }

  .download-module code,
  .qr-token {
    overflow-wrap: anywhere;
  }
}
