:root {
  --bg: oklch(98% 0.004 80);
  --text: oklch(20% 0.01 80);
  --muted: oklch(46% 0.01 80);
  --white: oklch(100% 0 0);

  --primary: oklch(40% 0.09 250);
  --primary-hover: oklch(32% 0.09 250);
  --primary-tint: oklch(94% 0.02 250);

  --border: oklch(90% 0.006 80);
  --border-light: oklch(88% 0.006 80);
  --surface-1: oklch(97% 0.004 80);
  --surface-2: oklch(96% 0.004 80);
  --surface-3: oklch(94% 0.006 80);
  --surface-4: oklch(93% 0.004 80);

  --dark: oklch(20% 0.01 80);
  --dark-border: oklch(30% 0.01 80);
  --dark-hover: oklch(27% 0.015 80);
  --dark-muted: oklch(65% 0.01 80);
  --dark-light: oklch(85% 0.005 80);
  --dark-text: oklch(98% 0.004 80);

  --live: oklch(52% 0.16 25);
  --live-bright: oklch(65% 0.19 25);
  --success: oklch(52% 0.13 150);
  --warning: oklch(60% 0.14 75);

  --font-serif: 'Newsreader', serif;
  --font-sans: 'Work Sans', sans-serif;
}

/* Dark mode: follows the OS preference by default; [data-theme] on <html>
   (set by static/js/theme.js from a manual toggle) overrides it either way.
   Only the "light surface" tokens flip — --dark/--dark-* stay as-is since
   the header/sidebar/footer are already dark in both themes. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: oklch(16% 0.012 80);
    --text: oklch(92% 0.006 80);
    --muted: oklch(66% 0.012 80);
    --white: oklch(23% 0.012 80);

    --primary: oklch(66% 0.13 250);
    --primary-hover: oklch(74% 0.12 250);
    --primary-tint: oklch(30% 0.06 250);

    --border: oklch(32% 0.012 80);
    --border-light: oklch(36% 0.012 80);
    --surface-1: oklch(20% 0.012 80);
    --surface-2: oklch(22% 0.012 80);
    --surface-3: oklch(27% 0.014 80);
    --surface-4: oklch(25% 0.012 80);

    --live: oklch(64% 0.17 25);
    --live-bright: oklch(70% 0.19 25);
    --success: oklch(64% 0.14 150);
    --warning: oklch(70% 0.14 75);
  }
}

:root[data-theme="dark"] {
  --bg: oklch(16% 0.012 80);
  --text: oklch(92% 0.006 80);
  --muted: oklch(66% 0.012 80);
  --white: oklch(23% 0.012 80);

  --primary: oklch(66% 0.13 250);
  --primary-hover: oklch(74% 0.12 250);
  --primary-tint: oklch(30% 0.06 250);

  --border: oklch(32% 0.012 80);
  --border-light: oklch(36% 0.012 80);
  --surface-1: oklch(20% 0.012 80);
  --surface-2: oklch(22% 0.012 80);
  --surface-3: oklch(27% 0.014 80);
  --surface-4: oklch(25% 0.012 80);

  --live: oklch(64% 0.17 25);
  --live-bright: oklch(70% 0.19 25);
  --success: oklch(64% 0.14 150);
  --warning: oklch(70% 0.14 75);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  transition: background-color .15s ease, color .15s ease;
}

.eg-card, .eg-header, .eg-admin-header, .eg-input, .eg-btn-secondary {
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

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

input, select, textarea, button { font-family: var(--font-sans); }

.eg-nav:hover { color: var(--primary); }
.eg-nav.active { color: var(--primary); font-weight: 600; }

.eg-btn-primary {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 8px;
  background: var(--primary);
  color: var(--dark-text);
  font-size: 14.5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.eg-btn-primary:hover { background: var(--primary-hover); }

.eg-btn-secondary {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid var(--border-light);
  cursor: pointer;
}
.eg-btn-secondary:hover { background: var(--primary-tint); }

.eg-btn-danger { border-color: var(--live); color: var(--live); }
.eg-btn-danger:hover { background: color-mix(in oklch, var(--live) 14%, var(--bg)); }

.eg-tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.eg-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 2px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.eg-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.eg-chip {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-tint);
  padding: 3px 9px;
  border-radius: 20px;
}

.eg-avatar {
  border-radius: 50%;
  background: var(--primary-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  flex: none;
}

.eg-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live-bright);
  animation: eg-pulse 1.6s infinite;
}
@keyframes eg-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.eg-waveform-wrap {
  margin-top: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.eg-waveform-wrap canvas {
  display: block;
  width: 100%;
  height: 84px;
}

.eg-rec-editor-controls .eg-rec-editor-zoom-btn {
  min-width: 44px;
  padding: 10px 16px;
  font-size: 18px;
  line-height: 1;
}

.eg-busy-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: color-mix(in srgb, var(--surface-2) 88%, transparent);
  border-radius: inherit;
  text-align: center;
  padding: 16px;
}
.eg-busy-overlay[hidden] { display: none; }
.eg-spinner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  animation: eg-spin 0.8s linear infinite;
}
.eg-busy-overlay span {
  font-size: 13px;
  color: var(--muted);
  max-width: 280px;
}
@keyframes eg-spin { to { transform: rotate(360deg); } }

.eg-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--primary);
  position: relative;
  flex: none;
}
.eg-mark::before {
  content: "";
  position: absolute; left: 17px; top: 8px;
  width: 4px; height: 22px; background: var(--dark-text);
}
.eg-mark::after {
  content: "";
  position: absolute; left: 9px; top: 15px;
  width: 20px; height: 4px; background: var(--dark-text);
}
.eg-mark--sm { width: 34px; height: 34px; }
.eg-mark--sm::before { left: 15px; top: 7px; width: 4px; height: 20px; }
.eg-mark--sm::after { left: 8px; top: 13px; width: 18px; height: 4px; }

.eg-sidenav {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: var(--dark-light);
}
.eg-sidenav:hover { background: var(--dark-hover); }
.eg-sidenav.active { background: var(--primary); color: var(--dark-text); }

.eg-img-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--surface-3);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.eg-container { max-width: 1240px; margin: 0 auto; width: 100%; box-sizing: border-box; }
.eg-container--narrow { max-width: 840px; }
.eg-container--admin { max-width: 560px; }

.eg-footer { margin-top: auto; padding: 44px 48px; background: var(--dark); color: var(--dark-light); }
.eg-footer a { color: var(--dark-muted); }

.eg-input {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  font-size: 14px;
  background: var(--white);
  color: var(--text);
  width: 100%;
}

.eg-input::placeholder { color: var(--muted); }

.htmx-request.eg-loading-hide { display: none; }

.eg-theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--white);
  color: var(--text);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
  line-height: 1;
}
.eg-theme-toggle:hover { background: var(--primary-tint); }

.eg-nav-toggle {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: var(--white);
  color: var(--text);
  font-size: 16px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
  line-height: 1;
}
.eg-nav-toggle:hover { background: var(--primary-tint); }

/* ---- account menu ---- */

.eg-account-menu { position: relative; }
.eg-account-trigger {
  display: flex; align-items: center; gap: 8px;
  background: none; border: none; cursor: pointer;
  padding: 4px 8px 4px 4px; border-radius: 999px;
  font: inherit; color: inherit;
}
.eg-account-trigger:hover { background: var(--primary-tint); }
.eg-account-name { font-size: 13.5px; font-weight: 500; }
.eg-account-caret { font-size: 10px; color: var(--muted); transition: transform .15s; }
.eg-account-menu.eg-account-open .eg-account-caret { transform: rotate(180deg); }
.eg-account-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 220px;
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .14); padding: 6px; display: none; z-index: 30;
}
.eg-account-menu.eg-account-open .eg-account-dropdown { display: block; }
.eg-account-item {
  display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px;
  font-size: 13.5px; font-weight: 500; color: var(--text); background: none; border: none;
  cursor: pointer; text-decoration: none; box-sizing: border-box;
}
.eg-account-item:hover { background: var(--surface-2); }
.eg-account-item--danger { color: var(--live); }
.eg-account-divider { height: 1px; background: var(--border); margin: 6px 4px; }

/* ---- layout shell ---- */

.eg-page { min-height: 100vh; display: flex; flex-direction: column; }

.eg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.eg-brand { display: flex; align-items: center; gap: 12px; }
.eg-brand-name { font-family: var(--font-serif); font-size: 19px; font-weight: 600; }
.eg-brand-sub { font-size: 11px; color: var(--muted); letter-spacing: .02em; }
.eg-nav-list { display: flex; align-items: center; gap: 34px; font-size: 14px; font-weight: 500; }

.eg-viewing-bar { padding: 14px 48px; }

.eg-live-banner {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px; background: var(--primary); color: var(--dark-text);
  font-size: 14px; font-weight: 600;
}

.eg-hero {
  padding: 72px 48px; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 60px; align-items: center;
}
.eg-hero-eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: 16px; }
.eg-hero-title { font-family: var(--font-serif); font-size: 46px; line-height: 1.15; font-weight: 600; margin: 0 0 20px; }
.eg-hero-lede { font-size: 16px; line-height: 1.7; color: var(--muted); max-width: 480px; margin: 0 0 32px; }
.eg-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.eg-hero-contact {
  list-style: none; margin: 32px 0 0; padding: 24px 0 0; max-width: 480px;
  border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px;
}
.eg-hero-contact li { display: flex; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--text); }
.eg-hero-contact li > span {
  flex: 0 0 52px; font-size: 12px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); padding-top: 2px;
}
.eg-hero-contact a { color: var(--primary); text-decoration: none; }
.eg-hero-contact a:hover { text-decoration: underline; }
.eg-hero-image { aspect-ratio: 4/3; width: 100%; border-radius: 18px; overflow: hidden; }

.eg-section { padding: 8px 48px 72px; }
.eg-section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; }
.eg-section-title { font-family: var(--font-serif); font-size: 26px; font-weight: 600; margin: 0; }

.eg-sermon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.eg-sermon-card { display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.eg-sermon-card h3 { margin: 0 0 6px; font-family: var(--font-serif); font-size: 19px; font-weight: 600; line-height: 1.3; }
.eg-sermon-card p { margin: 0; font-size: 12.5px; color: var(--muted); }
.eg-sermon-listen { margin-top: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--primary); }
.eg-play-triangle { width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid currentColor; }

.eg-cta-band { padding: 0 48px 72px; }
.eg-cta-band .eg-card { padding: 36px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.eg-cta-band h3 { font-family: var(--font-serif); font-size: 21px; font-weight: 600; margin: 0 0 6px; }
.eg-cta-band p { margin: 0; font-size: 14px; color: var(--muted); }

.eg-footer-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; font-size: 13.5px; }
.eg-footer-col { display: flex; flex-direction: column; gap: 6px; }
.eg-footer-col > span:first-child { color: var(--dark-text); font-weight: 600; margin-bottom: 6px; }

/* ---- broadcasts / preke list ---- */

.eg-broadcast-row { display: flex; align-items: center; gap: 24px; padding: 24px 28px; transition: background-color .2s, box-shadow .2s; }
.eg-broadcast-icon { width: 56px; height: 56px; border-radius: 10px; background: var(--primary-tint); display: flex; align-items: center; justify-content: center; flex: none; }
.eg-broadcast-icon .eg-play-triangle { border-left-width: 14px; border-top-width: 9px; border-bottom-width: 9px; color: var(--primary); }
.eg-live-label { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .05em; color: var(--live); }
.eg-notlive-label { font-size: 11px; font-weight: 700; letter-spacing: .05em; color: var(--muted); }
.eg-pill { padding: 10px 22px; border-radius: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.eg-pill--live { background: var(--primary); color: var(--dark-text); }
.eg-pill--off { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }

.eg-eq-bars { display: none; align-items: flex-end; gap: 3px; height: 16px; }
.eg-eq-bars span { width: 3px; background: var(--primary); border-radius: 2px; animation: eg-eq 0.9s ease-in-out infinite; }
.eg-eq-bars span:nth-child(1) { height: 40%; animation-delay: -0.6s; }
.eg-eq-bars span:nth-child(2) { height: 100%; animation-delay: -0.3s; }
.eg-eq-bars span:nth-child(3) { height: 65%; animation-delay: 0s; }
@keyframes eg-eq { 0%, 100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }

.js-broadcast-row.is-listening { background: var(--primary-tint); box-shadow: inset 0 0 0 1.5px var(--primary); }
.js-broadcast-row.is-listening .eg-play-triangle { display: none; }
.js-broadcast-row.is-listening .eg-eq-bars { display: inline-flex; }
.js-broadcast-row.is-connecting .eg-play-triangle { opacity: .35; }

.js-listen-btn.is-listening { background: var(--live); color: var(--dark-text); }
.js-listen-btn.is-connecting { background: var(--surface-2); color: var(--muted); }

.eg-filter-bar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.eg-filter-bar input[type="text"] { flex: 1; min-width: 220px; }
.eg-filter-bar select { padding: 11px 14px; border-radius: 8px; border: 1px solid var(--border-light); font-size: 14px; background: var(--white); color: var(--text); }

.eg-multiselect-filter { position: relative; min-width: 180px; flex: none; }
.eg-multiselect-filter__trigger {
  width: 100%;
  min-width: 180px;
  padding: 11px 36px 11px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  font-size: 14px;
  background: var(--white);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.eg-multiselect-filter__trigger::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  margin-top: -3px;
  border: 5px solid transparent;
  border-top-color: var(--muted);
  pointer-events: none;
}
.eg-multiselect-filter__trigger[data-has-selection] { font-weight: 500; }
.eg-multiselect-filter__panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 40;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}
.eg-multiselect-filter__search {
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  background: var(--white);
  color: var(--text);
  box-sizing: border-box;
}
.eg-multiselect-filter__list { max-height: 240px; overflow-y: auto; }
.eg-multiselect-filter__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 14px;
  cursor: pointer;
  margin: 0;
}
.eg-multiselect-filter__option:hover { background: var(--surface-2); }
.eg-multiselect-filter__option input { flex: none; margin: 0; }
.eg-multiselect-filter__option span { flex: 1; min-width: 0; }

.eg-date-range-picker { position: relative; min-width: 180px; flex: none; }
.eg-date-range-picker__trigger {
  width: 100%;
  min-width: 180px;
  padding: 11px 36px 11px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  font-size: 14px;
  background: var(--white);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.eg-date-range-picker__trigger::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  margin-top: -3px;
  border: 5px solid transparent;
  border-top-color: var(--muted);
  pointer-events: none;
}
.eg-date-range-picker__trigger[data-has-selection] { font-weight: 500; }
.eg-date-range-picker__panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 40;
  width: min(100vw - 32px, 320px);
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 12px;
}
.eg-meer-block .eg-date-range-picker__panel {
  position: static;
  width: 100%;
  box-shadow: none;
  border: none;
  padding: 0;
}
.eg-date-range-picker__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.eg-date-range-picker__nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.eg-date-range-picker__month { font-size: 14px; font-weight: 600; }
.eg-date-range-picker__weekdays,
.eg-date-range-picker__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.eg-date-range-picker__weekday {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  padding: 4px 0;
}
.eg-date-range-picker__day {
  aspect-ratio: 1;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  position: relative;
}
.eg-date-range-picker__day.is-outside { visibility: hidden; pointer-events: none; }
.eg-date-range-picker__day.has-sermon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--primary);
}
.eg-date-range-picker__day.is-selected,
.eg-date-range-picker__day.is-pending {
  background: var(--primary);
  color: var(--dark-text);
  font-weight: 600;
}
.eg-date-range-picker__day.is-selected.has-sermon::after,
.eg-date-range-picker__day.is-pending.has-sermon::after { background: var(--dark-text); }
.eg-date-range-picker__day.is-in-range { background: var(--primary-tint); }
.eg-date-range-picker__clear {
  width: 100%;
  margin-top: 10px;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}

.eg-sermon-list { display: flex; flex-direction: column; gap: 14px; }
.eg-sermon-row { display: flex; align-items: center; gap: 20px; padding: 18px 24px; }
.eg-sermon-row h3 { margin: 0 0 2px; font-family: var(--font-serif); font-size: 18px; font-weight: 600; }
.eg-sermon-row p { margin: 0; font-size: 13px; color: var(--muted); }
.eg-sermon-row-play { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); display: flex; align-items: center; justify-content: center; flex: none; }
.eg-sermon-row-play .eg-play-triangle { color: var(--primary); }
.eg-empty-state { padding: 48px; text-align: center; color: var(--muted); font-size: 14px; }

/* ---- sermon detail / player ---- */

.eg-player { padding: 24px 28px 20px; display: flex; flex-direction: column; gap: 14px; }
.eg-player-row { display: flex; align-items: center; gap: 14px; }
.eg-player-row--secondary { justify-content: flex-end; gap: 10px; }
.eg-player-toggle { width: 56px; height: 56px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; flex: none; cursor: pointer; border: none; }
.eg-player-skip { width: 38px; height: 38px; border-radius: 50%; background: var(--surface-2); color: var(--text); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; flex: none; cursor: pointer; border: none; font-size: 9px; font-weight: 700; line-height: 1; }
.eg-player-skip svg { display: block; }
.eg-player-skip:hover { background: var(--primary-tint); color: var(--primary); }
.eg-player-track { flex: 1; min-width: 0; }
.eg-player-bar { height: 6px; border-radius: 3px; background: var(--border); position: relative; overflow: hidden; cursor: pointer; }
.eg-player-bar > div { height: 100%; border-radius: 3px; background: var(--primary); width: 0%; pointer-events: none; }
.eg-player-waveform { display: none; width: 100%; height: 40px; cursor: pointer; }
.eg-player-track.has-waveform .eg-player-bar { display: none; }
.eg-player-track.has-waveform .eg-player-waveform { display: block; }
.eg-player-time { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.eg-player-select { padding: 6px 10px; border-radius: 20px; background: var(--surface-2); color: var(--text); border: none; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.eg-player-select:hover { background: var(--primary-tint); color: var(--primary); }
.eg-player-chip-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 20px; background: var(--surface-2); color: var(--text); border: none; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.eg-player-chip-btn svg { display: block; flex: none; }
.eg-player-chip-btn:hover { background: var(--primary-tint); color: var(--primary); }

.eg-share-modal { max-width: 340px; }
.eg-share-options { display: flex; flex-direction: column; gap: 2px; }
.eg-share-option {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 10px 8px;
  border-radius: 10px;
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.eg-share-option:hover { background: var(--surface-2); }
.eg-share-icon { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); color: var(--muted); flex: none; }
.eg-related-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; }

/* ---- admin shell ---- */

.eg-admin-shell { min-height: 100vh; display: flex; }
.eg-sidebar-backdrop { display: none; position: fixed; inset: 0; background: oklch(20% 0.01 80 / 45%); z-index: 150; }
.eg-admin-sidebar { width: 240px; flex: none; background: var(--dark); color: var(--dark-light); display: flex; flex-direction: column; padding: 22px 0; }
.eg-admin-sidebar-top { padding: 0 22px 16px; border-bottom: 1px solid var(--dark-border); margin-bottom: 16px; }
.eg-admin-switcher {
  width: 100%;
  box-sizing: border-box;
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid var(--dark-border);
  border-radius: 8px;
  background: var(--dark-hover);
  color: var(--dark-text);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
div.eg-admin-switcher { display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: default; }
div.eg-admin-switcher > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* Native select needs an explicit colour + colour-scheme, otherwise the text
   and the OS dropdown popup render light-themed inside the dark sidebar. */
select.eg-admin-switcher {
  appearance: none;
  -webkit-appearance: none;
  color-scheme: dark;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%23a8a29a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
}
select.eg-admin-switcher:hover { border-color: var(--dark-muted); }
select.eg-admin-switcher:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
select.eg-admin-switcher option { background: var(--dark); color: var(--dark-text); }

.eg-admin-switcher-list { margin-top: 8px; background: var(--dark-hover); border-radius: 8px; overflow: hidden; }
.eg-admin-switcher-list > * { padding: 10px 12px; font-size: 13px; cursor: pointer; }
.eg-admin-nav { display: flex; flex-direction: column; gap: 2px; padding: 0 12px; }
.eg-admin-back { margin-top: auto; padding: 0 22px; font-size: 13px; color: var(--dark-muted); }

.eg-admin-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.eg-admin-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 40px; background: var(--white); border-bottom: 1px solid var(--border); }
.eg-admin-header h1 { font-family: var(--font-serif); font-size: 20px; font-weight: 600; margin: 0; }
.eg-admin-main { flex: 1; padding: 36px 40px; overflow: auto; }

.eg-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 28px; }
.eg-stat-card { padding: 20px 22px; }
.eg-stat-card > span { font-size: 12px; color: var(--muted); }
.eg-stat-value { font-family: var(--font-serif); font-size: 28px; font-weight: 600; margin-top: 6px; }
.eg-stat-status { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.eg-dot { width: 8px; height: 8px; border-radius: 50%; }

.eg-chart-card { padding: 20px 22px 14px; margin-bottom: 28px; }
.eg-chart-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.eg-chart-title { font-size: 13px; font-weight: 600; }
.eg-chart-total { font-family: var(--font-serif); font-size: 18px; font-weight: 600; }
.eg-chart-svg { display: block; width: 100%; height: auto; }
.eg-chart-area { fill: color-mix(in oklch, var(--primary) 12%, transparent); }
.eg-chart-line { fill: none; stroke: var(--primary); stroke-width: 2px; stroke-linejoin: round; stroke-linecap: round; }
.eg-chart-dot { fill: var(--primary); stroke: var(--white); stroke-width: 2px; }
.eg-chart-baseline { stroke: var(--border); stroke-width: 1px; }
.eg-chart-tick { fill: var(--muted); font-size: 10.5px; }
.eg-chart-empty { color: var(--muted); font-size: 12.5px; padding: 24px 0; text-align: center; }

.eg-sparkline-cell { display: flex; align-items: center; }
.eg-sparkline-cell .eg-chart-line { stroke-width: 1.5px; }
.eg-sparkline-cell .eg-chart-area { fill: color-mix(in oklch, var(--primary) 9%, transparent); }
.eg-sparkline-empty { color: var(--muted); font-size: 12px; }

.eg-list-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; font-size: 13.5px; border-bottom: 1px solid var(--surface-4); }
.eg-list-row:last-child { border-bottom: none; }

.eg-schedule-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--surface-4); }
.eg-schedule-row:last-child { border-bottom: none; }

.eg-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.eg-field { display: flex; flex-direction: column; gap: 6px; }
.eg-field label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.eg-dropzone { border: 2px dashed var(--border); border-radius: 10px; padding: 28px; text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 16px; }

.eg-table-head { display: grid; padding: 12px 22px; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); background: var(--surface-1); border-bottom: 1px solid var(--border); }
.eg-table-row { display: grid; padding: 16px 22px; font-size: 13.5px; align-items: center; border-bottom: 1px solid var(--surface-4); }
.eg-churches-cols { grid-template-columns: 2fr 1.4fr .8fr .8fr 1fr 1fr; }
.eg-storage-cols { grid-template-columns: 2fr 1fr 1fr 1fr; }

.eg-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.eg-badge-count { font-size: 12.5px; color: var(--muted); background: var(--surface-3); padding: 2px 9px; border-radius: 20px; }

.eg-panel { padding: 26px 28px; margin-bottom: 20px; }

.eg-row-clickable { cursor: pointer; }
.eg-row-clickable:hover { background: var(--surface-1); }

.eg-readonly {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: var(--surface-1);
  color: var(--muted);
  font-size: 13.5px;
}

.eg-admins-cols { grid-template-columns: 1.4fr 1.6fr .7fr 104px; }
.eg-invites-cols { grid-template-columns: 1.6fr 1fr 104px; }
.eg-platform-admins-cols { grid-template-columns: 1.2fr 1.4fr .9fr 1.6fr 104px; }
.eg-signups-cols { grid-template-columns: 1.6fr 1.6fr 1fr 190px; }
.eg-listeners-cols { grid-template-columns: 1.6fr 1fr 1fr .9fr; }

/* ---- broadcast metrics ---- */

.eg-metrics-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .02em;
  margin: 0 0 14px;
}
.eg-metric-icon { width: 18px; height: 18px; color: var(--muted); flex: none; }

.eg-hero-stat {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 22px 26px;
  border-radius: 12px;
  background: color-mix(in oklch, var(--live) 7%, var(--white));
  border: 1px solid color-mix(in oklch, var(--live) 22%, var(--border));
  margin-bottom: 18px;
}
.eg-hero-stat--plain { background: var(--surface-1); border-color: var(--border-light); }
.eg-hero-stat--tile { flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 0; }
.eg-hero-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.eg-hero-num { font-family: var(--font-serif); font-size: 52px; font-weight: 700; line-height: 1; color: var(--live); }
.eg-hero-num--sm { font-size: 34px; }
.eg-hero-num--plain { color: var(--text); }
.eg-hero-unit { font-size: 20px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.eg-hero-unit--sm { font-size: 15px; margin-left: 4px; }
.eg-hero-formula { font-size: 12px; color: var(--muted); margin-top: 6px; }
.eg-hero-row { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }

.eg-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.eg-metric-grid--wide { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 28px; }
.eg-metric-tile {
  background: var(--surface-1);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.eg-metric-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.eg-metric-value { font-family: var(--font-serif); font-size: 21px; font-weight: 600; color: var(--text); }
.eg-metric-value small { font-family: var(--font-sans); font-size: 12px; font-weight: 500; color: var(--muted); }
.eg-metric-value--sm { font-size: 16px; }
.eg-metric-value--live { color: var(--live); }

/* The session sparklines are the storage chart geometry in the live tone. */
.eg-spark--live .eg-chart-line { stroke: var(--live); }
.eg-spark--live .eg-chart-area { fill: color-mix(in oklch, var(--live) 12%, transparent); }
.eg-spark--live .eg-chart-dot { fill: var(--live); }

.eg-broadcast-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.eg-bcard {
  display: block;
  width: 100%;
  text-align: left;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.eg-bcard:hover { border-color: var(--live); box-shadow: 0 4px 18px oklch(20% 0.01 80 / 8%); }
.eg-bcard-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.eg-bcard-church { font-family: var(--font-serif); font-size: 16.5px; font-weight: 600; margin: 0 0 2px; }
.eg-bcard-preacher { font-size: 12.5px; color: var(--muted); }
.eg-bcard-band { display: flex; align-items: baseline; gap: 6px; margin-bottom: 10px; }
.eg-bcard-band-num { font-family: var(--font-serif); font-size: 30px; font-weight: 700; color: var(--live); }
.eg-bcard-band-unit { font-size: 13px; color: var(--muted); }
.eg-bcard-spark { display: block; width: 100%; margin-bottom: 12px; }
.eg-bcard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--surface-4);
  padding-top: 10px;
}
.eg-bcard-foot b { color: var(--text); font-weight: 600; }

.eg-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: var(--dark-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.eg-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--surface-3);
  color: var(--muted);
}
.eg-status-pill--on { background: color-mix(in oklch, var(--success) 16%, var(--white)); color: var(--success); }

.eg-health-sev--ok {
  background: color-mix(in oklch, var(--success) 16%, var(--white));
  color: var(--success);
}
.eg-health-sev--waarskuwing {
  background: color-mix(in oklch, var(--warning) 16%, var(--white));
  color: var(--warning);
}
.eg-health-sev--kritiek {
  background: color-mix(in oklch, var(--live) 14%, var(--bg));
  color: var(--live);
}
.eg-health-overall.eg-health-sev--ok { border-color: color-mix(in oklch, var(--success) 35%, var(--border)); }
.eg-health-overall.eg-health-sev--waarskuwing { border-color: color-mix(in oklch, var(--warning) 40%, var(--border)); }
.eg-health-overall.eg-health-sev--kritiek { border-color: color-mix(in oklch, var(--live) 40%, var(--border)); }
.eg-health-cols-live {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.6fr 0.8fr 1.2fr 0.7fr;
  gap: 10px;
  align-items: center;
}
.eg-health-cols-email,
.eg-health-cols-attention {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 2fr;
  gap: 10px;
  align-items: center;
}
.eg-health-card .eg-table-head,
.eg-health-card .eg-table-row {
  padding: 10px 14px;
}
@media (max-width: 900px) {
  .eg-health-cols-live,
  .eg-health-cols-email,
  .eg-health-cols-attention {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.eg-modal-overlay {
  position: fixed;
  inset: 0;
  background: oklch(20% 0.01 80 / 55%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5vh 20px;
  z-index: 100;
  overflow-y: auto;
}
.eg-modal-overlay[hidden] { display: none; }

.eg-modal {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: 100%;
  max-width: 640px;
  padding: 28px 30px 32px;
  box-shadow: 0 20px 60px oklch(20% 0.01 80 / 25%);
}

.eg-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }

.eg-modal-close {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 2px 6px;
}
.eg-modal-close:hover { color: var(--text); }

.eg-modal-notice {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  margin-bottom: 16px;
}
.eg-modal-notice--ok { background: var(--primary-tint); color: var(--primary); }
.eg-modal-notice--err { background: color-mix(in oklch, var(--live) 14%, var(--bg)); color: var(--live); }

/* Near-fullscreen variant for the broadcast detail modal: same overlay,
   backdrop and close button, only the box itself grows and splits into a
   fixed head plus its own scrolling body. */
.eg-modal-overlay--large { align-items: center; padding: 4vh 3vw; }
.eg-modal--large {
  max-width: 1360px;
  height: 92vh;
  padding: 0;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 70px oklch(20% 0.01 80 / 30%);
}
.eg-modal-fixed-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 34px;
  border-bottom: 1px solid var(--border);
  flex: none;
}
.eg-modal-scroll { flex: 1; overflow-y: auto; padding: 30px 34px 40px; }

.eg-modal-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.eg-modal-tab {
  background: none;
  border: none;
  padding: 10px 4px;
  margin-right: 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.eg-modal-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

@media (max-width: 900px) {
  .eg-hero { grid-template-columns: 1fr; padding: 40px 24px; }
  .eg-hero-title { font-size: 34px; }
  .eg-hero-image { order: -1; }
  .eg-hero-contact { margin-top: 24px; padding-top: 20px; }
  .eg-sermon-grid { grid-template-columns: 1fr; }
  .eg-header, .eg-section, .eg-cta-band, .eg-footer, .eg-viewing-bar { padding-left: 20px; padding-right: 20px; }
  .eg-viewing-bar { flex-wrap: wrap; row-gap: 8px; }
  .eg-footer-grid { grid-template-columns: 1fr 1fr; }

  .eg-nav-toggle { display: flex; }
  .eg-nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 8px 20px 16px;
    box-shadow: 0 12px 24px oklch(20% 0.01 80 / 12%);
  }
  .eg-nav-list.eg-nav-open { display: flex; }
  .eg-nav-list .eg-nav { padding: 12px 4px; border-bottom: 1px solid var(--border-light); }
  .eg-nav-list .eg-theme-toggle { margin-top: 10px; }

  .eg-admin-header { padding: 14px 16px; gap: 10px; }
  .eg-admin-header h1 { font-size: 17px; }
  .eg-admin-header > div:last-child span { display: none; }
  .eg-admin-main { padding: 24px 20px; }
  .eg-admin-sidebar {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 200;
    transform: translateX(-100%);
    transition: transform .2s ease;
  }
  .eg-admin-sidebar.eg-sidebar-open { transform: translateX(0); }
  .eg-sidebar-backdrop.eg-sidebar-open { display: block; }

  .eg-stat-grid { grid-template-columns: 1fr; }
  .eg-form-grid { grid-template-columns: 1fr; }
  .eg-churches-cols { grid-template-columns: 1fr; }
  .eg-storage-cols { grid-template-columns: 1fr; }
  .eg-admins-cols, .eg-invites-cols, .eg-platform-admins-cols, .eg-signups-cols { grid-template-columns: 1fr; }
  .eg-table-row { gap: 4px; }

  /* On a single-column grid, the old side-by-side header row just becomes a
     disconnected list of labels above every row — hide it and instead label
     each value inline via its data-label attribute (set in the templates). */
  .eg-table-head { display: none; }
  .eg-table-row > [data-label]::before {
    content: attr(data-label);
    display: block;
    flex-basis: 100%;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 2px;
  }

  .eg-broadcast-row, .eg-sermon-row, .eg-related-row { flex-wrap: wrap; }
  /* The live/listen pill competes with the icon + title for space on a
     narrow row and the title text (often a single unbreakable church name)
     overflows into it. Push the pill to its own full-width line instead. */
  .eg-broadcast-row .eg-pill {
    flex: 1 1 100%;
    text-align: center;
    margin-top: 2px;
    min-height: 44px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .eg-player { padding: 20px 18px; }
  .eg-player-row { flex-wrap: wrap; }
  .eg-player-row--secondary { justify-content: flex-start; }

  .eg-modal { padding: 22px 18px 26px; }
  .eg-modal-overlay { padding: 0; align-items: stretch; }
  .eg-modal { max-width: none; min-height: 100%; border-radius: 0; border-width: 0; }
  /* Three tabs' worth of labels + their margins don't fit a phone-width
     modal; without this, the flex items get crushed and their text wraps
     mid-word instead. Let the tab strip scroll horizontally, one line each. */
  .eg-modal-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .eg-modal-tab { flex: none; white-space: nowrap; margin-right: 16px; }

  .eg-wt-main { padding: 24px 20px; }
  .eg-wt-controls { padding: 12px 14px; }

  .eg-modal--large { height: auto; padding: 0; }
  .eg-modal-fixed-head, .eg-modal-scroll { padding-left: 18px; padding-right: 18px; }
  .eg-modal-scroll { padding-top: 22px; }

  .eg-hero-row { grid-template-columns: 1fr; }
  .eg-hero-num { font-size: 40px; }
  .eg-metric-grid, .eg-metric-grid--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eg-broadcast-grid { grid-template-columns: 1fr; }
  .eg-listeners-cols { grid-template-columns: 1fr; }

  /* Platform admin mobile: hide drawer chrome; bottom tab bar takes over. */
  .eg-admin-shell--platform .eg-nav-toggle { display: none; }
  .eg-admin-shell--platform .eg-admin-sidebar,
  .eg-admin-shell--platform .eg-sidebar-backdrop { display: none !important; }
  .eg-admin-shell--platform .eg-admin-header-actions { display: none; }
  .eg-admin-shell--platform .eg-admin-main { padding: 14px 16px 100px; }
  .eg-admin-shell--platform .eg-admin-header { padding: 14px 18px; }
  .eg-admin-shell--platform .eg-admin-header h1 { font-size: 19px; }
  .eg-admin-shell--platform .eg-admin-header h1 .eg-badge-count {
    vertical-align: middle;
    margin-left: 8px;
    font-family: var(--font-sans);
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
  }

  .eg-pa-desktop-only { display: none !important; }
  .eg-pa-mobile-only { display: block; }
  .eg-pa-mcard-list.eg-pa-mobile-only { display: flex; flex-direction: column; gap: 10px; }
  .eg-pa-fab.eg-pa-mobile-only { display: flex; }
  .eg-pa-clist.eg-pa-mobile-only,
  .eg-pa-listener-list.eg-pa-mobile-only { display: block; }

  /* Higher specificity than the later base `.eg-pa-tabbar { display: none }`
     so the tab bar actually shows on phone widths (see #73). */
  .eg-admin-shell--platform .eg-pa-tabbar { display: flex; }
  .eg-admin-shell--platform .eg-pa-mobile-only { display: block; }

  .eg-bcard { padding: 16px; }
  .eg-live-badge {
    background: color-mix(in oklch, var(--live) 12%, var(--white));
    color: var(--live);
  }
  .eg-bcard-spark { height: 36px; }

  .eg-modal-close--back {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 0;
  }
  .eg-modal-head--sticky {
    position: sticky;
    top: 0;
    z-index: 3;
    background: var(--bg);
    margin: -22px -18px 0;
    padding: 14px 18px 12px;
    border-bottom: 1px solid var(--border);
  }
  .eg-modal-tabs--sticky {
    position: sticky;
    top: 66px;
    z-index: 2;
    background: var(--bg);
    margin: 0 -18px 16px;
    padding: 0 18px;
  }
  .eg-modal--large .eg-modal-fixed-head {
    position: sticky;
    top: 0;
    z-index: 3;
    background: var(--bg);
  }
  .eg-hero-num--sm { font-size: 26px; }
  .eg-hero-stat--tile { padding: 14px 16px; }
  .eg-metric-tile { padding: 12px 14px; }

  /* Training cards → list rows inside admin shells (platform + church). */
  .eg-admin-shell .eg-training-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .eg-admin-shell .eg-training-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    min-height: 72px;
  }
  .eg-admin-shell .eg-training-thumb {
    width: 42px;
    height: 42px;
    aspect-ratio: auto;
    flex: none;
    border-radius: 10px;
    overflow: hidden;
    background: var(--primary-tint);
  }
  .eg-admin-shell .eg-training-thumb img,
  .eg-admin-shell .eg-training-thumb .eg-img-fallback { display: none; }
  .eg-admin-shell .eg-training-play {
    position: static;
    inset: auto;
    opacity: 1;
    width: 100%;
    height: 100%;
    background: transparent;
    color: var(--primary);
    font-size: 14px;
  }
  .eg-admin-shell .eg-training-body { padding: 0; flex: 1; min-width: 0; }
  .eg-admin-shell .eg-training-meta { display: none; }
  .eg-admin-shell .eg-training-chev {
    display: block;
    width: 16px;
    height: 16px;
    color: var(--border);
    flex: none;
  }

  .eg-pa-instellings { max-width: none; }
  .eg-pa-instellings-form { margin-top: 0 !important; }
  .eg-pa-btn-block { width: 100%; align-self: stretch !important; min-height: 46px; }
  .eg-pa-hero-preview {
    width: 100%;
    max-width: none;
    border-radius: 10px;
    margin-bottom: 10px;
    object-fit: cover;
    aspect-ratio: 4 / 3;
  }
  .eg-pa-admins-panel { margin-bottom: 12px; }
}

/* Training walkthrough cards */
.eg-training-group { margin-bottom: 32px; }
.eg-training-group:last-child { margin-bottom: 0; }
.eg-training-group-title {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.eg-training-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.eg-training-card { overflow: hidden; display: block; }
.eg-training-card:hover { border-color: var(--primary); }
.eg-training-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
}
.eg-training-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eg-training-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--dark-text);
  background: oklch(20% 0.01 80 / 22%);
  opacity: 0;
  transition: opacity .15s ease;
}
.eg-training-card:hover .eg-training-play { opacity: 1; }
.eg-training-body { padding: 14px 16px 16px; }
.eg-training-title { font-size: 14.5px; font-weight: 600; }
.eg-training-desc { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.eg-training-meta { font-size: 11.5px; color: var(--muted); margin-top: 10px; text-transform: uppercase; letter-spacing: .03em; }

/* Walkthrough player */
.eg-wt-page { min-height: 100vh; display: flex; flex-direction: column; }
.eg-wt-main { padding: 40px 24px 64px; }
.eg-wt-title { font-family: var(--font-serif); font-size: 24px; font-weight: 600; margin: 0 0 6px; }
.eg-wt-desc { color: var(--muted); font-size: 14px; margin: 0 0 24px; }

.eg-wt-player { overflow: hidden; }
.eg-wt-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--dark);
  overflow: hidden;
}
.eg-wt-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .35s ease;
}
.eg-wt-img--visible { opacity: 1; }

.eg-wt-cursor {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--dark-text);
  border: 2px solid var(--primary);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: left .6s ease, top .6s ease, opacity .3s ease;
  pointer-events: none;
  box-shadow: 0 2px 8px oklch(20% 0.01 80 / 30%);
}
.eg-wt-cursor--visible { opacity: 1; }

.eg-wt-highlight {
  position: absolute;
  border: 2px solid var(--primary);
  border-radius: 8px;
  opacity: 0;
  transition: left .6s ease, top .6s ease, width .6s ease, height .6s ease, opacity .3s ease;
  pointer-events: none;
  animation: eg-wt-pulse 1.6s infinite;
}
.eg-wt-highlight--visible { opacity: 1; }
@keyframes eg-wt-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--primary) 45%, transparent); }
  50% { box-shadow: 0 0 0 6px color-mix(in oklch, var(--primary) 0%, transparent); }
}

.eg-wt-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  background: oklch(20% 0.01 80 / 78%);
  color: var(--dark-text);
  font-size: 14px;
  line-height: 1.5;
  opacity: 1;
  transition: opacity .15s ease;
}
.eg-wt-caption--hidden { opacity: 0; }

.eg-wt-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 20px 16px;
  border-top: 1px solid var(--border);
}
.eg-wt-buttons { display: flex; align-items: center; gap: 10px; }
.eg-wt-buttons .eg-btn-primary,
.eg-wt-buttons .eg-btn-secondary { padding: 8px 14px; font-size: 15px; }

.eg-wt-timeline { display: flex; align-items: center; gap: 4px; }
.eg-wt-seg {
  flex: 1;
  height: 4px;
  padding: 0;
  border: none;
  border-radius: 2px;
  background: var(--border);
  cursor: pointer;
  overflow: hidden;
}
.eg-wt-seg-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--primary);
  border-radius: 2px;
}
.eg-wt-seg.done .eg-wt-seg-fill { width: 100%; }

.eg-wt-fallback { margin: 28px 0 0; padding: 0; list-style: none; }
.eg-wt-fallback li { margin-bottom: 20px; }
.eg-wt-fallback img { width: 100%; border-radius: 8px; border: 1px solid var(--border); display: block; margin-bottom: 8px; }
.eg-wt-fallback p { font-size: 13.5px; color: var(--muted); margin: 0; }
body.wt-js-ready .eg-wt-fallback { display: none; }

/* ---- notification bell ---- */

.eg-notif-bell { position: relative; }
.eg-notif-trigger {
  position: relative;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border-light); background: var(--white); color: var(--text);
  font-size: 15px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex: none; line-height: 1;
}
.eg-notif-trigger:hover { background: var(--primary-tint); }
.eg-notif-badge {
  position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--live); color: var(--dark-text);
  font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
}
.eg-notif-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; width: 320px; max-width: 90vw;
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .14); padding: 6px; display: none; z-index: 30;
}
.eg-notif-bell.eg-notif-open .eg-notif-dropdown { display: block; }
.eg-notif-dropdown-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px 6px; font-size: 12.5px; font-weight: 600; color: var(--muted);
}
.eg-notif-markall {
  background: none; border: none; color: var(--primary); font: inherit; font-size: 12px;
  font-weight: 600; cursor: pointer; padding: 0;
}
.eg-notif-list { max-height: 320px; overflow-y: auto; }
.eg-notif-item {
  display: flex; align-items: flex-start; gap: 8px; padding: 9px 10px; border-radius: 8px;
  text-decoration: none; color: var(--text);
}
.eg-notif-item:hover { background: var(--surface-2); }
.eg-notif-dot {
  width: 7px; height: 7px; border-radius: 50%; margin-top: 5px; flex: none; background: transparent;
}
.eg-notif-item--unread .eg-notif-dot { background: var(--primary); }
.eg-notif-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.eg-notif-title { font-size: 13px; font-weight: 500; line-height: 1.4; }
.eg-notif-item--unread .eg-notif-title { font-weight: 600; }
.eg-notif-time { font-size: 11.5px; color: var(--muted); }
.eg-notif-empty { padding: 20px 10px; text-align: center; font-size: 13px; color: var(--muted); margin: 0; }
.eg-notif-prefs-link {
  display: block; margin-top: 4px; padding: 9px 10px; border-top: 1px solid var(--border);
  font-size: 12.5px; font-weight: 600; color: var(--primary); text-decoration: none;
}
.eg-notif-prefs-link:hover { background: var(--surface-2); border-radius: 0 0 8px 8px; }

.eg-notif-pref-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid var(--border-light); font-size: 14px; cursor: pointer;
}
.eg-notif-pref-row:last-of-type { border-bottom: none; }
.eg-notif-pref-row input { width: 17px; height: 17px; flex: none; }


/* ---- Church admin mobile shell (epic #60) ----
   Scoped to .eg-admin-shell--church so platform admin (#49) can add its
   own shell class without fighting these rules. Desktop stays unchanged. */

.eg-admin-tabbar,
.eg-meer-overlay,
.eg-fab { display: none; }

@media (min-width: 901px) {
  .eg-ca-mob-only { display: none !important; }
  .eg-ca-card-chevron { display: none; }
}

.eg-draft-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--warning);
  background: color-mix(in oklch, var(--warning) 16%, var(--bg));
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 6px;
  vertical-align: middle;
}

.eg-ca-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--surface-4);
  text-decoration: none;
  color: inherit;
  min-height: 56px;
  box-sizing: border-box;
}
.eg-ca-card:last-child { border-bottom: none; }
.eg-ca-card-body { min-width: 0; flex: 1; }
.eg-ca-card-title {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.eg-ca-card-meta {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
}
.eg-ca-card-chevron {
  flex: none;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}
.eg-ca-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.eg-ca-card-actions .eg-btn-secondary,
.eg-ca-card-actions .eg-btn-primary {
  width: 100%;
  text-align: center;
  min-height: 44px;
  box-sizing: border-box;
}

.eg-sheet-back {
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex: none;
  padding: 0;
}
.eg-sheet-back:hover { background: var(--primary-tint); }

.eg-fab {
  position: fixed;
  right: 18px;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  z-index: 120;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: var(--dark-text);
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  box-shadow: 0 8px 24px oklch(20% 0.01 80 / 22%);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.eg-fab:hover { background: var(--primary-hover); }

.eg-admin-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 160;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px oklch(20% 0.01 80 / 6%);
}
.eg-admin-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 48px;
  padding: 4px 2px;
  border: none;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 10px;
}
.eg-admin-tab-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.eg-admin-tab-icon svg { width: 20px; height: 20px; }
.eg-admin-tab-label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.eg-admin-tab.active { color: var(--primary); }

.eg-meer-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: none;
  align-items: flex-end;
}
.eg-meer-overlay:not([hidden]) { display: flex; }
.eg-meer-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: oklch(20% 0.01 80 / 45%);
  cursor: pointer;
}
.eg-meer-sheet {
  position: relative;
  width: 100%;
  max-height: min(88vh, 720px);
  overflow: auto;
  background: var(--white);
  border-radius: 18px 18px 0 0;
  padding: 8px 18px calc(20px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -12px 40px oklch(20% 0.01 80 / 18%);
  z-index: 1;
}
.eg-meer-handle {
  width: 36px;
  height: 4px;
  border-radius: 99px;
  background: var(--border);
  margin: 4px auto 10px;
}
.eg-meer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.eg-meer-head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
}
.eg-meer-block { margin-bottom: 16px; }
.eg-meer-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.eg-meer-church-name {
  font-size: 15px;
  font-weight: 600;
  padding: 12px 14px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.eg-meer-switcher { min-height: 44px; }
.eg-meer-nav,
.eg-meer-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}
.eg-meer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: none;
  border-radius: 10px;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}
.eg-meer-item:hover,
.eg-meer-item.active { background: var(--primary-tint); color: var(--primary); }
.eg-meer-item--danger { color: var(--live); }
.eg-meer-item--danger:hover { background: color-mix(in oklch, var(--live) 12%, var(--bg)); color: var(--live); }
.eg-meer-actions form { margin: 0; }

.eg-ca-live-console { margin-top: 20px; }
.eg-ca-live-console-inner { /* filled by cards */ }

.eg-chat-thread { display: flex; flex-direction: column; gap: 14px; }
.eg-chat-bubble-wrap {
  display: flex;
  flex-direction: column;
}
.eg-chat-bubble-wrap--in { align-items: flex-start; }
.eg-chat-bubble-wrap--out { align-items: flex-end; }
.eg-chat-bubble {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.5;
}
.eg-chat-bubble--in { background: var(--surface-2); color: var(--text); }
.eg-chat-bubble--out { background: var(--primary); color: #fff; border-color: transparent; }
.eg-chat-meta {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 4px;
}
.eg-chat-composer { margin-top: 0; }

@media (max-width: 900px) {
  .eg-admin-shell--church .eg-nav-toggle { display: none !important; }
  .eg-admin-shell--church .eg-admin-sidebar { display: none !important; }
  .eg-admin-shell--church .eg-sidebar-backdrop,
  .eg-admin-shell--church .eg-sidebar-backdrop.eg-sidebar-open { display: none !important; }
  .eg-admin-shell--church .eg-admin-header-actions .eg-theme-toggle,
  .eg-admin-shell--church .eg-admin-header-actions .eg-account-menu { display: none; }
  .eg-admin-shell--church .eg-admin-main {
    padding: 16px 16px calc(88px + env(safe-area-inset-bottom, 0px));
  }
  .eg-admin-shell--church .eg-admin-tabbar { display: grid; }
  .eg-admin-shell--church .eg-ca-desk-only { display: none !important; }
  .eg-admin-shell--church .eg-fab { display: flex; }
  .eg-admin-shell--church #sermon-upload-sheet { z-index: 230; }
  body:has(.eg-admin-shell--church) #eg-modal-root .eg-ca-desk-only { display: none !important; }

  /* Oorsig */
  .eg-admin-shell--church .eg-ca-oorsig .eg-list-row {
    min-height: 52px;
    padding: 16px 18px;
    font-size: 14.5px;
    gap: 12px;
  }

  /* Uitsendings actions + rows */
  .eg-admin-shell--church .eg-ca-uitsendings-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .eg-admin-shell--church .eg-ca-uitsendings-actions .eg-pill {
    width: 100%;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    text-align: center;
  }
  .eg-admin-shell--church .eg-schedule-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px 18px;
  }

  /* Live console as full-screen mobile view */
  .eg-admin-shell--church .eg-ca-live-console:not(:empty) {
    position: fixed;
    inset: 0;
    z-index: 240;
    margin: 0;
    background: var(--bg);
    overflow: auto;
    padding: 0 0 env(safe-area-inset-bottom, 0px);
  }
  .eg-admin-shell--church .eg-ca-live-console .eg-ca-live-console-inner {
    min-height: 100%;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .eg-admin-shell--church .eg-ca-live-console .eg-card {
    margin: 0;
  }
  .eg-admin-shell--church .eg-ca-live-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .eg-admin-shell--church .eg-ca-live-actions .eg-btn-primary,
  .eg-admin-shell--church .eg-ca-live-actions .eg-btn-secondary {
    width: 100%;
    min-height: 48px;
    text-align: center;
  }
  .eg-admin-shell--church .eg-ca-live-listeners {
    text-align: center;
    padding: 18px 12px;
    background: color-mix(in oklch, var(--live) 8%, var(--bg));
    border-radius: 12px;
    margin-top: 12px;
  }
  .eg-admin-shell--church .eg-ca-live-listeners #viewer-count {
    font-size: 56px !important;
  }
  .eg-admin-shell--church .eg-ca-live-console .eg-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .eg-admin-shell--church .eg-ca-live-console .eg-hero-stat {
    flex-direction: column;
    align-items: stretch;
  }

  /* Preke cards */
  .eg-admin-shell--church .eg-ca-preke-list .eg-ca-card { cursor: pointer; }

  /* Sermon modal sheet */
  body:has(.eg-admin-shell--church) #eg-modal-root .eg-modal-head {
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--white);
    margin: -22px -18px 0;
    padding: 14px 18px 10px;
    border-bottom: 1px solid var(--border);
  }
  body:has(.eg-admin-shell--church) #eg-modal-root .eg-modal-tabs {
    position: sticky;
    top: 62px;
    z-index: 2;
    background: var(--white);
    margin: 0 -18px 16px;
    padding: 0 18px;
  }

  /* Boodskappe list */
  .eg-admin-shell--church .eg-ca-boodskappe .eg-list-row {
    min-height: 64px;
    padding: 14px 16px;
  }
  .eg-admin-shell--church .eg-ca-boodskappe .eg-avatar {
    width: 44px !important;
    height: 44px !important;
    font-size: 14px !important;
  }

  /* Conversation thread as full-screen chat */
  .eg-admin-shell--church.eg-admin-shell--thread .eg-admin-tabbar { display: none; }
  .eg-admin-shell--church.eg-admin-shell--thread .eg-admin-main {
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 57px);
    overflow: hidden;
  }
  .eg-admin-shell--church.eg-admin-shell--thread .eg-thread-back-desk { display: none; }
  .eg-admin-shell--church.eg-admin-shell--thread .eg-chat-shell {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-width: none;
  }
  .eg-admin-shell--church.eg-admin-shell--thread .eg-chat-messages {
    flex: 1;
    overflow: auto;
    padding: 16px;
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    max-width: none;
  }
  .eg-admin-shell--church.eg-admin-shell--thread .eg-chat-bubble { max-width: 82%; }
  .eg-admin-shell--church.eg-admin-shell--thread .eg-chat-composer {
    position: sticky;
    bottom: 0;
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    max-width: none;
    background: var(--white);
  }
  .eg-admin-shell--church.eg-admin-shell--thread .eg-chat-composer .eg-btn-primary {
    width: 100%;
    min-height: 44px;
  }
  .eg-admin-shell--church.eg-admin-shell--thread .eg-admin-header h1 {
    font-size: 16px;
  }

  /* Admins cards */
  .eg-admin-shell--church .eg-ca-admins .eg-table-head { display: none; }
  .eg-admin-shell--church .eg-ca-admins .eg-table-row.eg-admins-cols,
  .eg-admin-shell--church .eg-ca-admins .eg-table-row.eg-invites-cols {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px 18px;
  }
  .eg-admin-shell--church .eg-ca-admins .eg-table-row > [data-label]::before { display: none; }
  .eg-admin-shell--church .eg-ca-admins .eg-table-row > span:last-child {
    text-align: left !important;
    margin-top: 4px;
  }
  .eg-admin-shell--church .eg-ca-admins .eg-table-row .eg-btn-secondary,
  .eg-admin-shell--church .eg-ca-admins .eg-table-row .eg-btn-danger {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px !important;
    font-size: 13.5px !important;
  }
  .eg-admin-shell--church .eg-ca-admins .eg-ca-you-tag {
    display: inline-block;
    margin-left: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-tint);
    padding: 2px 8px;
    border-radius: 6px;
  }

  /* Berging / Profiel / Opleiding */
  .eg-admin-shell--church .eg-chart-card { padding: 16px; }
  .eg-admin-shell--church .eg-ca-profiel .eg-btn-primary {
    width: 100%;
    min-height: 44px;
    align-self: stretch !important;
  }
  .eg-admin-shell--church .eg-ca-profiel-logo {
    flex-direction: column;
    align-items: stretch !important;
  }
  .eg-admin-shell--church .eg-training-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .eg-admin-shell--church .eg-training-card {
    display: grid;
    grid-template-columns: 56px 1fr 18px;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    min-height: 64px;
  }
  .eg-admin-shell--church .eg-training-thumb {
    aspect-ratio: 1;
    width: 56px;
    border-radius: 10px;
    overflow: hidden;
  }
  .eg-admin-shell--church .eg-training-play {
    opacity: 1;
    font-size: 16px;
    background: oklch(20% 0.01 80 / 35%);
  }
  .eg-admin-shell--church .eg-training-body {
    padding: 0;
    min-width: 0;
  }
  .eg-admin-shell--church .eg-training-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .eg-admin-shell--church .eg-training-meta { display: none; }
  .eg-admin-shell--church .eg-training-card::after {
    content: "›";
    color: var(--muted);
    font-size: 20px;
    line-height: 1;
  }
}


/* ---- platform admin mobile primitives ----
   Hide defaults use min-width so they cannot override the max-width:900px
   show rules earlier in this file (#73). */

.eg-training-chev { display: none; }

@media (min-width: 901px) {
  .eg-pa-mobile-only { display: none !important; }
  .eg-pa-tabbar { display: none !important; }
}

.eg-pa-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 160;
  display: none;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 6px 4px calc(10px + env(safe-area-inset-bottom, 0px));
  align-items: stretch;
  box-shadow: 0 -8px 24px oklch(20% 0.01 80 / 6%);
}
.eg-pa-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 48px;
  padding: 6px 2px;
  border: none;
  background: none;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
}
.eg-pa-tab.active { color: var(--primary); }
.eg-pa-tab svg { width: 21px; height: 21px; }

.eg-pa-meer-overlay { z-index: 130; }
.eg-pa-meer-panel { max-width: 560px; }
.eg-pa-meer-group {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}
.eg-pa-meer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: none;
  border-bottom: 1px solid var(--surface-2);
  background: none;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}
.eg-pa-meer-group > .eg-pa-meer-item:last-child,
.eg-pa-meer-group > form:last-child .eg-pa-meer-item { border-bottom: none; }
.eg-pa-meer-item svg { width: 19px; height: 19px; color: var(--muted); flex: none; }
.eg-pa-meer-chev { margin-left: auto; width: 16px !important; height: 16px !important; color: var(--border-light) !important; }
.eg-pa-meer-item--danger { color: var(--live); font-weight: 600; }
.eg-pa-meer-item--danger svg { color: var(--live); }
.eg-pa-theme-switch {
  margin-left: auto;
  width: 42px;
  height: 24px;
  border-radius: 20px;
  background: var(--border-light);
  position: relative;
  flex: none;
}
.eg-pa-theme-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 3px oklch(20% 0.01 80 / 25%);
  transition: transform .15s ease;
}
html[data-theme="dark"] .eg-pa-theme-switch { background: var(--primary); }
html[data-theme="dark"] .eg-pa-theme-switch::after { transform: translateX(18px); }

.eg-pa-mcard {
  display: block;
  width: 100%;
  text-align: left;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
}
.eg-pa-mcard--static { cursor: default; }
.eg-pa-mcard-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.eg-pa-mcard-title { font-weight: 600; font-size: 15px; }
.eg-pa-mcard-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.eg-pa-mcard-sub-inline { font-weight: 400; color: var(--muted); }
.eg-pa-mcard-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  flex: none;
}
.eg-pa-mcard-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--surface-4);
  font-size: 12.5px;
  color: var(--muted);
}
.eg-pa-mcard-foot b { color: var(--text); font-weight: 600; }
.eg-pa-mcard-foot-end { margin-left: auto; }
.eg-pa-mcard-by { font-size: 13px; color: var(--muted); margin-top: 6px; }
.eg-pa-mcard-date { font-size: 12px; color: var(--muted); margin-top: 3px; }
.eg-pa-mcard-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.eg-pa-mcard-actions form { flex: 1; }
.eg-pa-mcard-tags { margin-top: 10px; }
.eg-pa-mcard-remove { margin-top: 12px; min-height: 40px; }
.eg-pa-you { font-weight: 400; color: var(--muted); font-size: 13px; }
.eg-pa-role-chip {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-tint);
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
  flex: none;
}
.eg-pa-empty {
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  padding: 40px 20px;
}
.eg-pa-btn-block {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  box-sizing: border-box;
}

.eg-pa-fab {
  position: fixed;
  right: 18px;
  bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: var(--dark-text);
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px oklch(20% 0.01 80 / 22%);
  z-index: 110;
  cursor: pointer;
}

.eg-pa-clist { overflow: hidden; }
.eg-pa-crow {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-bottom: 1px solid var(--surface-4);
  background: none;
  color: var(--text);
  font-family: var(--font-sans);
  text-align: left;
  cursor: pointer;
}
.eg-pa-crow:last-child { border-bottom: none; }
.eg-pa-crow--static { cursor: default; }
.eg-pa-crow-name { font-weight: 600; font-size: 14px; flex: 1; min-width: 0; }
.eg-pa-crow-meta { font-size: 12.5px; color: var(--muted); flex: none; }
.eg-pa-crow-spark { flex: none; max-width: 72px; }

.eg-pa-listener-list { padding: 4px 14px; }
.eg-pa-lrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--surface-2);
  font-size: 13px;
}
.eg-pa-lrow:last-child { border-bottom: none; }
.eg-pa-lrow-id { font-weight: 600; flex: 1; min-width: 0; }
.eg-pa-lrow-meta { color: var(--muted); font-size: 12px; flex: none; }

.eg-pa-instellings { max-width: 560px; }
.eg-pa-hero-preview {
  width: 100%;
  max-width: 320px;
  border-radius: 10px;
  margin-bottom: 10px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  display: block;
}

.eg-modal-close--back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.eg-modal-close--back svg { display: block; }

/* ---- public site mobile shell (public-site mobile-first milestone, #81) ----
   Reuses the shell-agnostic tab bar / Meer sheet primitives added for church
   admin (#60) — .eg-admin-tabbar, .eg-admin-tab, .eg-meer-* — scoped under
   .eg-page (public_base.html's root wrapper) the same way #60 scopes its
   copy under .eg-admin-shell--church. Every "show on mobile" rule below is a
   compound selector, so it always outranks the bare unconditional
   `.eg-admin-tabbar, .eg-meer-overlay, .eg-fab { display: none; }` default a
   few hundred lines up regardless of source order — see the e042d74
   postmortem referenced in docs/public-site-mobile-first.md §2. */

.eg-mob-only { display: none; }

@media (min-width: 901px) {
  .eg-page .eg-mob-only { display: none !important; }
}

.eg-mob-header-actions { align-items: center; gap: 10px; }
.eg-mob-avatar-btn { padding: 0; border: none; background: none; cursor: pointer; line-height: 0; }

@media (max-width: 900px) {
  .eg-page .eg-desk-only { display: none !important; }
  .eg-page .eg-mob-header-actions.eg-mob-only { display: flex; }
  .eg-page .eg-admin-tabbar { display: grid; }
  .eg-page .eg-footer { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}

/* ---- persistent cross-page mini-player (#85, extended for #111) ----
   .eg-player-sheet wraps the full player; it starts collapsed behind the
   persistent .eg-player-mini bar and expands to a full-screen sheet on tap —
   one <audio> element, one playback state, just two render targets
   (static/js/player.js). #85 shipped this mobile-only, with the full player
   rendering in-flow inside preek.html on desktop. #111 hoists the player to
   a shell-level partial (rendered on every public page, not just preek.html)
   so it survives boosted navigation, which means the desktop in-flow
   rendering no longer makes sense — there's no fixed "sermon page" position
   to render inline into any more. So the same collapsed-bar/expandable-sheet
   behaviour from #85 now applies at every viewport width; only the mini
   bar's bottom offset still differs (it docks above the mobile tab bar on
   small screens, flush to the viewport bottom otherwise). The whole shell is
   hidden via [hidden] on #eg-player-shell until a sermon is loaded. */

/* Declared on .eg-page (ancestor of both #eg-player-shell and .eg-footer),
   not on .eg-player-shell itself — custom properties only inherit to
   descendants, and .eg-footer is a sibling of the player shell, not one. */
.eg-page { --eg-player-mini-h: 64px; }

.eg-player-mini { position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; flex-direction: column; display: flex; }

.eg-page .eg-player-sheet {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 210;
  background: var(--bg);
  overflow-y: auto;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 0 calc(24px + env(safe-area-inset-bottom, 0px));
}
.eg-page .eg-player-sheet.eg-player-sheet-open { display: block; }
.eg-page .eg-player-sheet .eg-sheet-back { display: inline-flex; margin: 0 16px 10px; }
.eg-page .eg-player-sheet .eg-player { margin: 0 16px; }

.eg-page .eg-player-mini {
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 18px oklch(20% 0.01 80 / 8%);
  padding: 8px 14px calc(8px + env(safe-area-inset-bottom, 0px));
}

/* Keep footer content/links clear of the docked mini bar once a sermon is
   loaded. Toggled on <body> by player.js, not scoped to .eg-player-shell,
   since the bar it needs to clear is position:fixed (out of flow). */
body.eg-player-active .eg-page .eg-footer { padding-bottom: calc(24px + var(--eg-player-mini-h)); }

@media (max-width: 900px) {
  .eg-page .eg-player-mini { bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
  body.eg-player-active .eg-page .eg-footer { padding-bottom: calc(76px + var(--eg-player-mini-h) + env(safe-area-inset-bottom, 0px)); }
}

.eg-player-mini-bar {
  height: 3px;
  border-radius: 3px;
  background: var(--border-light);
  overflow: hidden;
  margin-bottom: 8px;
}
.eg-player-mini-bar > div { height: 100%; background: var(--primary); width: 0%; }
.eg-player-mini-row { display: flex; align-items: center; gap: 10px; }
.eg-player-mini-expand {
  flex: 1;
  min-width: 0;
  display: block;
  text-align: left;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.eg-player-mini-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.eg-player-mini-title {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.eg-player-mini-time { font-size: 11.5px; color: var(--muted); }
.eg-player-mini-controls { display: flex; align-items: center; gap: 4px; flex: none; }
.eg-player-mini-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: none;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
  padding: 0;
}
.eg-player-mini-toggle { background: var(--primary-tint); }


/* ---- shared "listening now" mini-bar (#83, #86, moved to shell level in #112) ----
   broadcasts/_mini_bar.html is now included once, shell-level (see
   templates/public_base.html), and driven entirely by static/js/listen.js's
   existing #listen-panel display toggling — unchanged. Desktop: renders
   in-flow near the top of the page (an .eg-container-wrapped .eg-card).
   Mobile: docks above the tab bar, compacted to title + live indicator +
   stop control (the waveform row hides) — same as before, just now visible
   on every page rather than only the two it used to be embedded in. */
@media (max-width: 900px) {
  .eg-page #listen-panel.eg-mini-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(58px + env(safe-area-inset-bottom, 0px));
    z-index: 150;
    margin: 0 !important;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    box-shadow: 0 -6px 18px oklch(20% 0.01 80 / 8%);
  }
  .eg-page #listen-panel.eg-mini-bar .eg-player-track { display: none; }
  /* The persistent sermon mini-player (static/js/player.js) also docks
     fixed-bottom above the tab bar at every viewport width (#111) — when
     both are visible at once (a listener tuned into a broadcast who also
     has a sermon loaded), stack the listen panel above it instead of
     letting them overlap. body.eg-listen-active is toggled by listen.js. */
  body.eg-player-active.eg-listen-active .eg-page #listen-panel.eg-mini-bar {
    bottom: calc(58px + var(--eg-player-mini-h) + env(safe-area-inset-bottom, 0px));
  }
}

/* ---- sermon archive filter sheet (#84) ----
   preacher/series (+ church on alle_preke.html) move behind a "Filters"
   sheet on mobile; the underlying <select> elements stay in the DOM
   (.eg-desk-only, so still submitted/wired to the same hx-trigger) and are
   driven by static/js/filter_sheet.js dispatching a change event on chip
   tap — same htmx request, same query params as the desktop selects. */
@media (max-width: 900px) {
  .eg-page .eg-filter-bar input[type="text"] { flex: 1 1 auto; min-width: 0; }
  .eg-page .eg-filter-bar .eg-btn-secondary.eg-mob-only {
    flex: none;
    min-height: 44px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .eg-page .eg-sermon-row { min-height: 64px; }
  .eg-page .eg-sermon-row .eg-avatar { width: 46px !important; height: 46px !important; font-size: 14px !important; }
}

.eg-filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.eg-filter-chip {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  min-height: 40px;
}
.eg-filter-chip.active { background: var(--primary); border-color: var(--primary); color: var(--dark-text); font-weight: 600; }

/* ---- messaging: mailbox list + full-screen thread (#87) ----
   Same full-screen chat-sheet treatment as church-admin's conversation
   thread (#69) — reuses its .eg-chat-thread/.eg-chat-bubble/
   .eg-chat-composer classes from base.css rather than inventing new ones.
   No messaging view/model changes — markup and CSS only. */
@media (max-width: 900px) {
  .eg-page .eg-mailbox-card { border: none; border-radius: 0; margin: 0 -48px; }
  .eg-page .eg-mailbox-row { padding: 14px 20px; min-height: 64px; }
  .eg-list-chevron { flex: none; color: var(--muted); font-size: 18px; line-height: 1; margin-left: 8px; }

  .eg-page:has(.eg-thread-shell) .eg-admin-tabbar { display: none; }
  .eg-thread-header {
    display: flex;
    align-items: center;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 10px 16px;
  }
  .eg-thread-header span { font-family: var(--font-serif); font-size: 16px; font-weight: 600; }
  .eg-page .eg-thread-body {
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 57px);
  }
  .eg-page .eg-thread-body .eg-chat-messages {
    flex: 1;
    overflow: auto;
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    max-width: none;
  }
  .eg-page .eg-thread-body .eg-chat-bubble { max-width: 82%; }
  .eg-page .eg-thread-body .eg-chat-composer {
    position: sticky;
    bottom: 0;
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    max-width: none;
    background: var(--white);
  }
  .eg-page .eg-thread-body .eg-chat-composer .eg-btn-primary { width: 100%; min-height: 44px; }
}

.eg-mailbox-preview {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 60vw;
}

/* ---- notification preferences mobile pass (#88) ----
   preferences.html used inline padding (padding:48px 24px on the
   container, padding:28px 32px on the .eg-card form) that the class-based
   @media (max-width: 900px) rules elsewhere in this file can never reach.
   Moved to classes so the breakpoint below can actually override them. */
.eg-notif-prefs { padding: 48px 24px; }
.eg-notif-prefs-form { padding: 28px 32px; }
.eg-notif-prefs-submit { margin-top: 12px; }

@media (max-width: 900px) {
  .eg-page .eg-notif-prefs { padding: 24px 20px calc(90px + env(safe-area-inset-bottom, 0px)); }
  .eg-page .eg-notif-prefs-form { padding: 6px 18px; }
  .eg-page .eg-notif-pref-row { min-height: 44px; padding: 14px 0; gap: 14px; }
  .eg-page .eg-notif-pref-row input { width: 21px; height: 21px; }
  .eg-page .eg-notif-prefs-submit {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    width: auto;
    min-height: 46px;
    margin-top: 0;
    box-shadow: 0 8px 24px oklch(20% 0.01 80 / 18%);
  }
}

/* ---- auth: login/signup mobile pass (#89) ----
   login.html extends base.html directly (no nav, stays that way — it
   still needs the .eg-page class purely so these rules, scoped the same
   way as everywhere else in this milestone, can reach it). signup.html
   extends public_base.html so it already gets the nav shell from #81. */
@media (max-width: 900px) {
  .eg-page .eg-auth-shell { padding: 0 !important; }
  .eg-page .eg-auth-card {
    max-width: none !important;
    width: 100%;
    min-height: 100vh;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 64px 22px 28px !important;
    box-sizing: border-box;
    position: relative;
  }
  .eg-page .eg-auth-back { position: absolute; top: 14px; left: 14px; }
  .eg-page .eg-auth-card .eg-field label { font-size: 13.5px; }
  .eg-page .eg-auth-card .eg-input { padding: 14px 15px; font-size: 16px; border-radius: 10px; }
  .eg-page .eg-auth-card select.eg-input { padding: 12px 15px; }
  .eg-page .eg-auth-card .eg-btn-primary { min-height: 48px; font-size: 15.5px; }
}
