/* ============================================
   Accessibility primitives (load early so other rules can use focus-visible)
============================================ */

/* Skip-link: hidden offscreen until keyboard-focused, then pops into view
   at the top-left. WCAG 2.4.1 Bypass Blocks. */
.skip-link {
  position: absolute;
  top: -100px; left: 8px;
  z-index: 10000;
  padding: 10px 16px;
  background: #003764; color: #fff;
  text-decoration: none; font-weight: 700; font-size: 14px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: top .12s ease-out;
}
.skip-link:focus, .skip-link:focus-visible {
  top: 8px;
  outline: 3px solid #be955b;
  outline-offset: 2px;
}

/* Universal keyboard-focus ring. :focus-visible only fires for keyboard
   nav (not mouse clicks), so mouse users don't see rings on every click
   but tab-key users get clear feedback. WCAG 2.4.7 Focus Visible. */
:focus-visible {
  outline: 3px solid #005487;
  outline-offset: 2px;
  border-radius: 4px;
}
/* Buttons / links inside the navy header need a higher-contrast ring. */
.app-header :focus-visible,
.auth-card  :focus-visible {
  outline-color: #d4b783;
}

/* Standard sr-only utility — visually hidden but read by screen readers.
   Use for icon-button labels when an aria-label feels too implicit. */
.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;
}

/* Respect reduced-motion preference (WCAG 2.3.3). Disables non-essential
   animations for users who set "Reduce motion" in their OS settings. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration:   0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration:  0.01ms !important;
    scroll-behavior:      auto !important;
  }
}

/* ============================================
   Zions Innovation Week 2026 — Theme
   Palette — BRAND colors kept exact; text uses darkened variants for AAA 7:1:
   --red:        #ab2c29   (text → --red-text  #8e2422)
   --navy:       #003764
   --blue:       #005487   (text on light tints → --blue-text #005081)
   --sky:        #7ea0c4   (decorative accent only; reception text → --type-reception-text)
   --gold:       #be955b
============================================ */

:root {
  /* Foreground tokens are darkened to meet WCAG 2.1 AAA contrast (SC 1.4.6,
     7:1) when used as text on white or the light type-tints. The shifts are
     small (blue is visually identical); the lighter DECORATIVE accents
     (--sky for reception, --gold for client-day borders/dots) are kept as-is
     and only their text variants are darkened — see --type-reception-text. */
  --red: #ab2c29;     /* BRAND — decorative only (borders/dots). Red TEXT must use --red-text. */
  --navy: #003764;    /* 9:1 on light — unchanged */
  --blue: #005487;    /* BRAND — decorative + text on white (8:1). Text on light tints uses --blue-text. */
  --red-text: #8e2422;   /* AAA 7:1 red for text — brand #ab2c29 is only 6.7:1 even on white */
  --blue-text: #005081;  /* AAA 7:1 blue for text on the light type-tints — brand is 6.8:1 there */
  --sky: #7ea0c4;     /* BRAND — decorative accent only (reception border/dot); text → --type-reception-text */
  --gold: #be955b;
  --gold-light: #d4b783;
  --gold-dark: #5f4829;  /* text-only dark gold — 7:1 on --type-client-day-bg (was #8c6a3d = 4.2:1) */

  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #1d2330;
  --muted: #4a5263; /* WCAG AAA 7:1 — 7.3:1 on --bg, 7.8:1 on white (was #5a6478 = 5.6:1, AA-only) */
  --border: #e3e7ef;
  --shadow: 0 2px 8px rgba(0, 55, 100, 0.08);
  --shadow-lg: 0 8px 28px rgba(0, 55, 100, 0.15);

  /* Session type colors */
  --type-presentation: var(--blue);
  --type-presentation-bg: #e6eef5;
  --type-workshop: var(--red);
  --type-workshop-bg: #f7e8e7;
  --type-reception: var(--sky);
  --type-reception-bg: #eaf1f8;
  --type-keynote: var(--navy);
  --type-keynote-bg: #d6e0eb;
  --type-panel: #583e76;    /* was #6d4d91 — 7:1 as text on --type-panel-bg */
  --type-panel-bg: #ede7f4;
  --type-in-person: #24553f; /* was #2d6a4f — 7:1 as text on --type-in-person-bg */
  --type-in-person-bg: #e0f0e8;
  /* Dark text variant of the reception accent: --sky is too light for text
     on a light tint (2.4:1), so reception pill text uses this (7.3:1) while
     the sky accent stays on borders/dots. */
  --type-reception-text: #3f5062;
  /* Client Day = gold per spec */
  --type-client-day: var(--gold);
  --type-client-day-bg: #f7ecd8;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea {
  font-family: inherit; font-size: 15px;
  width: 100%; padding: 10px 12px;
  border: 1.5px solid var(--border); border-radius: 8px;
  background: #fff; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 84, 135, 0.15);
}
label { display: block; margin-bottom: 14px; }
/* Make the HTML `hidden` attribute actually win over explicit display
   rules (e.g. .btn-google / .auth-tabs use display:flex which would
   otherwise override the user-agent `display:none`). */
[hidden] { display: none !important; }
label > span {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--navy); margin-bottom: 6px;
}
code { background: #eef1f6; padding: 1px 5px; border-radius: 4px; font-size: 12px; }

/* Buttons */
.btn-primary, .btn-secondary, .btn-text {
  padding: 11px 20px; border-radius: 8px;
  font-weight: 600; font-size: 14px;
  transition: transform .1s, box-shadow .15s, background .15s;
}
.btn-primary { background: var(--navy); color: #fff; width: 100%; }
.btn-primary:hover { background: var(--blue); }
.btn-primary:active { transform: scale(.98); }
.btn-secondary { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-secondary:hover { background: var(--navy); color: #fff; }
.btn-text { background: none; color: var(--muted); }
.btn-text:hover { color: var(--navy); }

/* ============================================
   Screens
============================================ */
.screen { display: none !important; }
.screen.active { display: block !important; }
#auth-screen.active { display: flex !important; }

/* ============================================
   Auth screen
============================================ */
#auth-screen {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  align-items: center; justify-content: center;
  padding: 20px;
}
.auth-card {
  background: #fff;
  padding: 36px 32px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  width: 100%; max-width: 440px;
}
.auth-card.wide { max-width: 560px; }
.auth-bulb {
  text-align: center;
  margin-bottom: 8px;
}
.auth-bulb img {
  width: 78px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 55, 100, 0.25));
}
.auth-logo { text-align: center; margin-bottom: 16px; }
.auth-logo img { max-width: 300px; width: 100%; height: auto; }
.auth-card h1 {
  text-align: center; margin: 0 0 4px;
  color: var(--navy); font-size: 24px;
}
.tagline {
  text-align: center; color: var(--gold-dark);
  font-style: italic; margin: 0 0 24px; font-weight: 600;
}
.auth-tabs {
  display: flex; border-bottom: 1.5px solid var(--border);
  margin-bottom: 22px;
}
.auth-tabs .tab {
  flex: 1; padding: 12px;
  font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1.5px;
  transition: color .15s, border-color .15s;
}
.auth-tabs .tab.active { color: var(--navy); border-bottom-color: var(--gold); }
.auth-form { display: none; }
.auth-form.active { display: block; }
.auth-forgot {
  display: block;
  width: auto;
  margin: 10px auto 0;
  padding: 6px 8px;
  font-size: 13px;
  background: none;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
}
.auth-forgot:hover { color: var(--navy); }
.auth-hint {
  text-align: center; font-size: 12px; color: var(--muted);
  margin: 14px 0 0;
}

/* OR divider between password sign-in and Google sign-in */
.auth-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 16px 0 12px;
  color: var(--muted); font-size: 12px;
  text-transform: uppercase; letter-spacing: 1px;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.auth-divider span { padding: 0 6px; font-weight: 600; }

/* Google sign-in button */
.btn-google {
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  width: 100%; padding: 11px 16px;
  background: #fff; color: #1d2330;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-weight: 600; font-size: 14px;
  cursor: pointer;
  transition: background .12s, border-color .15s, box-shadow .15s, transform .08s;
}
.btn-google:hover {
  background: #f5f7fb;
  border-color: var(--blue);
  box-shadow: 0 2px 6px rgba(0, 55, 100, 0.08);
}
.btn-google:active { transform: scale(.98); }
.btn-google:disabled {
  opacity: .6; cursor: not-allowed;
}
.btn-google svg { flex-shrink: 0; }

/* Microsoft / Azure AD sign-in button — follows Microsoft's brand
   guidance: white background, black text, 4-square logo on the left.
   This is the primary SSO path for Zions employees, so it sits ABOVE
   the email/password fields. */
.btn-microsoft {
  display: flex; align-items: center; justify-content: center;
  gap: 12px;
  width: 100%; padding: 11px 16px;
  background: #fff; color: #1d2330;
  border: 1.5px solid #8c8c8c;
  border-radius: 8px;
  font-weight: 600; font-size: 14px;
  cursor: pointer;
  transition: background .12s, border-color .15s, box-shadow .15s, transform .08s;
}
.btn-microsoft:hover {
  background: #f5f7fb;
  border-color: #2f2f2f;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.10);
}
.btn-microsoft:active { transform: scale(.98); }
.btn-microsoft:disabled { opacity: .6; cursor: not-allowed; }
.btn-microsoft svg { flex-shrink: 0; }

/* LinkedIn sign-in button — uses official LinkedIn brand color (#0A66C2)
   so it reads as a branded SSO option and visually distinguishes itself
   from the white Google button. */
.btn-linkedin {
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  width: 100%; padding: 11px 16px;
  margin-top: 10px;
  background: #0A66C2; color: #fff;
  border: 1.5px solid #0A66C2;
  border-radius: 8px;
  font-weight: 600; font-size: 14px;
  cursor: pointer;
  transition: background .12s, border-color .15s, box-shadow .15s, transform .08s;
}
.btn-linkedin:hover {
  background: #084d92;
  border-color: #084d92;
  box-shadow: 0 2px 6px rgba(10, 102, 194, 0.25);
}
.btn-linkedin:active { transform: scale(.98); }
.btn-linkedin:disabled { opacity: .6; cursor: not-allowed; }
.btn-linkedin svg { flex-shrink: 0; }
/* Bump LinkedIn icon up to match the visual weight of Google's 18×18
   icon — LinkedIn's path leaves ~2px padding inside its 24-unit viewBox. */
.btn-linkedin svg { width: 20px; height: 20px; }
/* LinkedIn import button inside the speaker form: lighter tinted look
   since it's a secondary action on an already-busy form. */
.btn-linkedin-import {
  background: #eef4fb; border-color: #0A66C2; color: #0A66C2;
  margin-top: 0; margin-bottom: 6px;
}
.btn-linkedin-import:hover { background: #e3edf8; border-color: #0A66C2; box-shadow: none; }
.btn-linkedin-import svg path { fill: #0A66C2; }
.form-error {
  background: #fdecea; color: var(--red-text);
  padding: 10px 12px; border-radius: 6px;
  font-size: 13px; margin-bottom: 12px;
  display: none;
}
.form-error.show { display: block; }
/* Positive variant — e.g. "account created / request received" confirmations
   shown in the same element as login errors. */
.form-error.success { background: #e7f6ec; color: #1a7f47; }

/* ============================================
   App header
============================================ */
.app-header {
  background: var(--navy);
  color: #fff;
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow);
  position: sticky; top: 0; z-index: 50;
}
.header-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.header-logo {
  /* The official bulb PNG has a 1264:2011 aspect — let height scale
     naturally so it isn't squished. */
  width: 36px; height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}
.header-left h1 {
  margin: 0; font-size: 17px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.header-sub {
  /* Lighter than --sky (#7ea0c4 was 4.46:1 on the navy header — just under AA).
     #c2d6ea = 8.15:1. --sky stays the decorative accent elsewhere. */
  margin: 0; font-size: 12px; color: #c2d6ea;
  font-style: italic;
}
.header-right { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background .15s;
}
.icon-btn:hover { background: rgba(255,255,255,.12); }

.user-menu { position: relative; }
.user-chip {
  width: 40px; height: 40px;
  border-radius: 50%;
  /* gold-dark (not --gold): #fff on #be955b was 2.75:1; on #5f4829 = 8.59:1 */
  background: var(--gold-dark);
  color: #fff; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.user-dropdown {
  display: none;
  position: absolute; right: 0; top: calc(100% + 8px);
  background: #fff; color: var(--text);
  min-width: 240px;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 60;
}
.user-dropdown.open { display: block; }
.user-info {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 4px;
}
.user-info strong { color: var(--navy); }
.user-info span { font-size: 12px; color: var(--muted); }
.user-dropdown button,
.user-dropdown a {
  display: block; width: 100%;
  text-align: left; padding: 12px 16px;
  font-size: 14px; font-weight: 500;
  color: inherit; text-decoration: none;
  transition: background .12s;
  box-sizing: border-box;
}
.user-dropdown button:hover,
.user-dropdown a:hover { background: #f4f6fa; }

.role-pill {
  align-self: flex-start;
  background: var(--type-presentation-bg);
  color: var(--blue-text);
  font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .5px;
  margin-top: 4px !important;
}
.role-pill.admin { background: #f7e8e7; color: var(--red-text); }
.role-pill.speaker { background: var(--type-client-day-bg); color: var(--gold-dark); }
/* Self-requested speaker awaiting approval. Same AAA-vetted gold-dark text as
   the speaker pill on an even lighter amber (contrast ≈ 8:1), plus a dashed
   outline to read as provisional rather than granted. */
.role-pill.pending_speaker { background: #fff4d6; color: var(--gold-dark); border: 1px dashed var(--gold-dark); }
.role-pill.client { background: var(--type-presentation-bg); color: var(--blue-text); }
.role-pill.pending_client { background: #fff4d6; color: var(--gold-dark); border: 1px dashed var(--gold-dark); }

/* Banner shown to external Client Day guests above their (scoped) session list. */
.client-day-banner {
  background: var(--type-client-day-bg);
  border-left: 4px solid var(--gold);
  color: var(--navy);
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.5;
}

/* ============================================
   Top tabs
============================================ */
.top-tabs {
  display: flex; gap: 4px;
  background: #fff;
  padding: 10px 14px 0;
  border-bottom: 1.5px solid var(--border);
  position: sticky; top: 68px; z-index: 40;
  overflow-x: auto;
  scrollbar-width: none;
}
.top-tabs::-webkit-scrollbar { display: none; }
.top-tab {
  padding: 10px 18px;
  font-weight: 600; font-size: 14px;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -1.5px;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.top-tab.active { color: var(--navy); border-bottom-color: var(--gold); }
.top-tab:hover:not(.active) { color: var(--navy); }

/* View bar */
.view-bar {
  display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: space-between; align-items: center;
  padding: 14px 20px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.view-toggle { display: flex; align-items: center; gap: 6px; }
.view-label { font-size: 13px; color: var(--muted); margin-right: 4px; }
.view-btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px; font-weight: 600;
  color: var(--navy);
  border: 1.5px solid var(--border);
  background: #fff;
}
.view-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  display: inline-block;
}
.dot.type-presentation { background: var(--type-presentation); }
.dot.type-workshop { background: var(--type-workshop); }
.dot.type-reception { background: var(--type-reception); }
.dot.type-client-day { background: var(--type-client-day); }

/* ============================================
   Content sections
============================================ */
.content-section {
  display: none;
  padding: 16px 20px 60px;
  max-width: 1100px;
  margin: 0 auto;
}
.content-section.active { display: block; }
.content-section h2 {
  color: var(--navy); margin: 8px 0 16px;
  font-size: 22px;
}

/* Wordmark banner */
.wordmark-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 0 0 22px;
  padding: 20px 28px;
  background: linear-gradient(135deg, #ffffff 0%, #f5f7fb 100%);
  border-radius: 14px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.wordmark-banner .wordmark-bulb {
  width: 90px;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 8px rgba(0, 55, 100, 0.18));
}
.wordmark-banner .wordmark-text {
  max-width: 560px; width: 100%;
  height: auto;
  flex: 1;
  min-width: 0;
}

@media (max-width: 640px) {
  .wordmark-banner { padding: 16px 18px; gap: 14px; }
  .wordmark-banner .wordmark-bulb { width: 60px; }
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: 14px;
  border: 1.5px dashed var(--border);
  color: var(--navy);
}
.empty-state.hidden { display: none; }
.empty-illustration {
  color: var(--gold);
  margin-bottom: 12px;
}
.empty-state h2 { margin: 8px 0; }
.empty-state p { color: var(--muted); margin: 0 0 18px; }
.star-inline {
  color: var(--gold); font-size: 18px; font-weight: 700;
}
.empty-state .btn-primary { max-width: 280px; margin: 0 auto; }

/* ============================================
   Day groups (collapsible)
============================================ */
.day-group { margin-bottom: 14px; }
.day-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  background: var(--navy); color: #fff;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  transition: background .15s;
}
/* Lighter gold so navy text passes AA (navy on #be955b was 4.41:1; on #f0d68f
   = 8.51:1). Force the day-meta to full opacity here so the semi-transparent
   tag doesn't drop back below 4.5:1. */
.day-header.client-day { background: #f0d68f; color: var(--navy); }
.day-header.client-day .day-meta { opacity: 1; }
.day-header:hover { filter: brightness(1.05); }
.day-header .day-meta { font-size: 12px; opacity: .85; font-weight: 500; }
.day-header .caret {
  transition: transform .2s;
  font-size: 18px;
}
.day-group.collapsed .caret { transform: rotate(-90deg); }
.day-group.collapsed .day-content { display: none; }
.day-content { padding: 12px 0 0; display: grid; gap: 10px; }

/* Group headers for presenter/company */
.group-header {
  font-size: 14px; font-weight: 700;
  color: var(--navy);
  padding: 10px 4px;
  border-bottom: 2px solid var(--gold);
  margin-top: 18px; margin-bottom: 8px;
}
.group-header:first-child { margin-top: 4px; }

/* ============================================
   Session cards
============================================ */
.session-card {
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  border-left: 4px solid var(--type-presentation);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 14px;
  cursor: pointer;
  transition: transform .12s, box-shadow .15s;
  position: relative;
}
.session-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.session-card.type-workshop { border-left-color: var(--type-workshop); }
.session-card.type-reception { border-left-color: var(--type-reception); }
.session-card.type-keynote { border-left-color: var(--type-keynote); }
.session-card.type-panel { border-left-color: var(--type-panel); }
.session-card.type-in-person { border-left-color: var(--type-in-person); }
.session-card.client-day { border-left-color: var(--type-client-day); background: #fdf8ee; }

.session-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.session-type-pill {
  background: var(--type-presentation-bg); color: var(--blue-text);
  font-size: 10px; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase;
  padding: 3px 8px; border-radius: 4px;
}
.session-card.type-workshop .session-type-pill { background: var(--type-workshop-bg); color: var(--red-text); }
.session-card.type-reception .session-type-pill { background: var(--type-reception-bg); color: var(--type-reception-text); }
.session-card.type-keynote .session-type-pill { background: var(--type-keynote-bg); color: var(--type-keynote); }
.session-card.type-panel .session-type-pill { background: var(--type-panel-bg); color: var(--type-panel); }
.session-card.type-in-person .session-type-pill { background: var(--type-in-person-bg); color: var(--type-in-person); }
.session-card.client-day .session-type-pill { background: var(--type-client-day-bg); color: var(--gold-dark); }

.session-title {
  margin: 4px 0; color: var(--navy);
  font-size: 16px; font-weight: 700; line-height: 1.3;
}
.session-info {
  font-size: 13px; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 8px 14px;
}
.session-info span { display: inline-flex; align-items: center; gap: 4px; }
.session-presenter {
  font-size: 13px; color: var(--blue);
  font-weight: 600;
}

.session-star {
  background: #fff;
  /* WCAG 1.4.11 Non-text Contrast: the empty-star control was --border
     (#e3e7ef = 1.24:1 on white) — effectively invisible. #878f9c = ~3.3:1
     so the primary register control is perceivable, while still reading as a
     light outline (vs the gold filled state). */
  border: 2px solid #878f9c;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 22px; line-height: 1;
  color: #878f9c;
  display: flex; align-items: center; justify-content: center;
  align-self: start;
  transition: all .15s;
  flex-shrink: 0;
}
.session-star:hover { border-color: var(--gold); color: var(--gold); }
.session-star.active {
  /* Active (registered): navy star on gold = 4.41:1, dark-gold ring = 8.5:1
     on white. White-on-gold was 2.75:1 (failed 1.4.11). */
  background: var(--gold); color: var(--navy);
  border-color: var(--gold-dark);
  box-shadow: 0 2px 8px rgba(190,149,91,.35);
}

.attendance-badge {
  font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 999px;
  background: var(--type-reception-bg);
  color: var(--blue);
}
.attendance-badge.in-person { background: var(--type-in-person-bg); color: var(--type-in-person); }

/* ============================================
   Modal
============================================ */
.modal {
  position: fixed; inset: 0;
  display: none;
  z-index: 100;
}
.modal.open { display: block; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 30, 60, 0.55);
  backdrop-filter: blur(2px);
}
.modal-content {
  position: relative;
  background: #fff;
  border-radius: 14px;
  max-width: 680px;
  width: calc(100% - 32px);
  max-height: 90vh;
  overflow-y: auto;
  margin: 5vh auto;
  padding: 24px 28px;
  box-shadow: var(--shadow-lg);
}
.modal-content.small { max-width: 440px; }
.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px;
  font-size: 24px; color: var(--muted);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.modal-close:hover { background: #f0f3f7; color: var(--navy); }

/* Session detail modal */
.detail-header {
  border-left: 4px solid var(--blue);
  padding-left: 14px;
  margin-bottom: 18px;
}
.detail-header.type-workshop { border-left-color: var(--type-workshop); }
.detail-header.type-reception { border-left-color: var(--type-reception); }
.detail-header.type-keynote { border-left-color: var(--type-keynote); }
.detail-header.type-panel { border-left-color: var(--type-panel); }
.detail-header.client-day { border-left-color: var(--type-client-day); }
.detail-header h2 {
  color: var(--navy); margin: 4px 0 8px;
  font-size: 22px; line-height: 1.25;
}
.detail-meta {
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  font-size: 14px; color: var(--muted);
  margin-bottom: 12px;
}
.detail-meta strong { color: var(--navy); }

.detail-description {
  background: #f5f7fb;
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 18px;
  line-height: 1.55;
}
.detail-section { margin-bottom: 22px; }
.detail-section h3 {
  font-size: 14px; text-transform: uppercase; letter-spacing: .5px;
  color: var(--navy); margin: 0 0 10px;
}
.detail-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.detail-actions button {
  flex: 1; min-width: 160px;
}

.attend-info {
  background: var(--type-presentation-bg);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 14px;
}
.attend-info.in-person { background: var(--type-in-person-bg); }
.attend-info strong { color: var(--navy); display: block; margin-bottom: 4px; }
.attend-info .info-row {
  display: flex; gap: 8px; margin-top: 4px;
}
.attend-info a {
  color: var(--blue-text); font-weight: 600;
  text-decoration: none;
}
.attend-info a:hover { text-decoration: underline; }

.map-placeholder {
  margin-top: 10px;
  background: linear-gradient(135deg, var(--sky) 0%, var(--blue) 100%);
  color: #fff;
  border-radius: 8px;
  padding: 30px 16px;
  text-align: center;
  font-size: 13px;
}
.map-placeholder strong { display: block; font-size: 16px; margin-bottom: 4px; }
.map-placeholder small { opacity: .8; }

/* Presenter list */
.presenter-list { display: grid; gap: 14px; }
.presenter-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px; align-items: start;
  padding: 12px;
  background: #f8fafc;
  border-radius: 10px;
}
.presenter-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  /* Solid gold-dark, not a gold gradient: white initials were 2.75:1 over the
     light end of the gradient. On #5f4829 they're 8.59:1. */
  background: var(--gold-dark);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 22px;
  flex-shrink: 0; overflow: hidden;
}
.presenter-avatar img { width: 100%; height: 100%; object-fit: cover; }
.presenter-name { font-weight: 700; color: var(--navy); margin: 0 0 2px; }
.presenter-title { font-size: 13px; color: var(--muted); margin: 0 0 4px; }
.presenter-company {
  display: inline-block; font-size: 12px;
  background: var(--type-presentation-bg); color: var(--blue-text);
  padding: 2px 8px; border-radius: 4px; font-weight: 600;
  margin-bottom: 6px;
}
.presenter-company.sponsor {
  background: var(--type-client-day-bg); color: var(--gold-dark);
}
.presenter-bio { font-size: 13px; line-height: 1.5; color: var(--text); margin: 0; }
.presenter-extra { font-size: 12px; color: var(--muted); margin-top: 4px; }
.presenter-extra a { color: var(--blue); }
.presenter-fun {
  margin-top: 6px; font-size: 12px; font-style: italic;
  color: var(--gold-dark);
}

/* Star rating */
.star-rating {
  display: flex; gap: 4px; justify-content: center;
  margin: 18px 0;
}
.star-rating button {
  font-size: 36px;
  /* 1.4.11: empty #878f9c (3.26:1) instead of --border (1.24:1); filled
     #a8842f (3.50:1) instead of --gold (#be955b = 2.75:1). */
  color: #878f9c;
  transition: color .12s, transform .1s;
}
.star-rating button:hover { transform: scale(1.1); }
.star-rating button.active { color: #a8842f; }

/* Attendance options */
.attend-options {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin: 18px 0;
}
.attend-opt {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 22px 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  transition: all .12s;
}
.attend-opt:hover { border-color: var(--blue); background: var(--type-presentation-bg); }
.attend-opt strong { color: var(--navy); font-size: 15px; margin-top: 4px; }
.attend-opt .muted { font-size: 12px; }
.attend-icon { font-size: 30px; }

.attend-opt[disabled] { opacity: .5; cursor: not-allowed; }
.attend-opt[disabled]:hover { border-color: var(--border); background: transparent; }

/* Calendar action buttons (shown above email preview) */
.calendar-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 16px 0 22px;
}
.cal-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600; font-size: 14px;
  cursor: pointer;
  transition: transform .08s, box-shadow .15s, border-color .15s, background .12s;
  font-family: inherit;
  text-align: left;
}
.cal-btn:hover {
  border-color: var(--blue);
  background: var(--type-presentation-bg);
  box-shadow: var(--shadow);
}
.cal-btn:active { transform: scale(.98); }
.cal-btn .cal-ico {
  width: 30px; height: 30px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px;
  font-weight: 800;
  font-size: 14px;
}
.cal-btn.ics .cal-ico     { background: var(--gold);  color: #fff; }

/* Email modal */
.email-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.email-from {
  background: #f5f7fb;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.email-from div { margin-bottom: 2px; }
.email-from strong { color: var(--navy); display: inline-block; min-width: 60px; }
.email-body-content { padding: 20px; line-height: 1.6; }
.email-body-content h3 { color: var(--navy); margin-top: 0; }
.email-button {
  display: inline-block;
  background: var(--navy); color: #fff;
  padding: 10px 18px; border-radius: 6px;
  text-decoration: none; font-weight: 600;
  margin: 10px 4px;
}

/* ============================================
   Admin
============================================ */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.admin-card {
  background: #fff;
  padding: 18px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.admin-card.full { grid-column: 1 / -1; }
.admin-card h3 {
  margin: 0 0 8px; color: var(--navy);
  font-size: 16px;
}
.muted { color: var(--muted); }

.admin-user-row, .stats-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.admin-user-row:last-child, .stats-row:last-child { border-bottom: none; }
.admin-user-row .role-pill { margin: 0; }
.stats-bar {
  position: relative;
  width: 120px; height: 8px;
  background: var(--border); border-radius: 4px;
  overflow: hidden;
}
.stats-bar-fill {
  position: absolute; top: 0; left: 0; bottom: 0;
  background: var(--gold);
  border-radius: 4px;
}
.stats-count { font-weight: 700; color: var(--navy); min-width: 30px; text-align: right; }

/* ============================================
   Sponsors (tiered)
============================================ */
.sponsors {
  /* Solid (not gradient) so contrast checkers can evaluate footer text;
     near-white keeps the subtle separation from the --bg page body. */
  background: #fbfcfe;
  border-top: 1px solid var(--border);
  padding: 36px 20px 24px;
  margin-top: 36px;
}
.sponsors > h3 {
  text-align: center;
  color: var(--navy); margin: 0 0 22px;
  font-size: 18px; letter-spacing: .5px;
}
#sponsor-grid {
  max-width: 1100px;
  margin: 0 auto 22px;
  display: flex; flex-direction: column; gap: 24px;
}

.sponsor-tier {
  text-align: center;
}
.sponsor-tier-label {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 18px;
  font-size: 11px;
  font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 999px;
  position: relative;
}
/* Tier badges use SOLID tier-tinted backgrounds (not metallic gradients):
   the gradients dipped dark at one end — the gold badge fell to ~1.4:1 over
   its dark-brown stop — and contrast tools can't evaluate gradients anyway.
   These solids give the dark badge text >=9:1 across the whole pill. */
.sponsor-tier-platinum .sponsor-tier-label {
  background: #d4d8de;
  color: #1d2330;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
.sponsor-tier-gold .sponsor-tier-label {
  background: #f0d68f;
  color: #3a2c11;
}
.sponsor-tier-silver .sponsor-tier-label {
  background: #e9ecf0;
  color: #2a2f37;
}
.sponsor-tier-other .sponsor-tier-label {
  background: var(--type-presentation-bg);
  color: var(--blue-text);
  letter-spacing: 1.5px;
}

.sponsor-tier-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(calc(var(--logo-size) + 60px), 1fr));
  justify-items: center;
}
.sponsor-tier-platinum .sponsor-tier-grid,
.sponsor-tier-gold .sponsor-tier-grid {
  grid-template-columns: repeat(auto-fit, minmax(calc(var(--logo-size) + 100px), 220px));
  justify-content: center;
}

.sponsor-tile {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
  text-decoration: none;
  color: var(--navy);
  transition: transform .15s, box-shadow .18s, border-color .15s;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: 100%; max-width: 220px;
}
.sponsor-tile:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 6px 20px rgba(0, 55, 100, 0.12);
}
.sponsor-tile.tier-platinum {
  border-width: 2px;
  border-color: #c0c4ca;
  background: #f9fafc;
}
.sponsor-tile.tier-platinum:hover { border-color: #9aa0a8; }
.sponsor-tile.tier-gold {
  border-width: 2px;
  border-color: var(--gold);
  background: #fdf8ee;
}
.sponsor-tile.tier-gold:hover { border-color: var(--gold-dark); }
.sponsor-tile.tier-silver {
  border-color: #c8cdd4;
}

.sponsor-tile .sponsor-logo {
  width: var(--logo-size, 44px);
  height: var(--logo-size, 44px);
  display: flex; align-items: center; justify-content: center;
  background: #f5f7fb;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.sponsor-tile.tier-platinum .sponsor-logo,
.sponsor-tile.tier-gold .sponsor-logo {
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--border);
}
.sponsor-tile .sponsor-logo img {
  width: 85%; height: 85%; object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}
.sponsor-tile .sponsor-fallback {
  font-weight: 800;
  color: var(--navy);
  font-size: calc(var(--logo-size, 44px) * 0.3);
  letter-spacing: -.5px;
}
/* Inline text button (e.g. "Resend verification email") that reads as a link
   but is a real <button> for accessibility. */
.link-inline-btn {
  background: none; border: none; padding: 0;
  color: var(--blue, #00558c); font: inherit; font-weight: 700;
  text-decoration: underline; cursor: pointer;
}
.link-inline-btn:hover { color: var(--navy, #003764); }

.sponsor-name {
  font-size: 13px; color: var(--navy); font-weight: 700;
  display: inline-flex; align-items: center; gap: 4px;
}
/* Third-party-link glyph marking the sponsor tile as an outbound link.
   The alt text ("Opens … in a new tab") is what assistive tech announces;
   the icon is also a visible affordance, so it is not aria-hidden. */
.sponsor-name .external-link-icon {
  width: 14px; height: 14px; flex: none;
  opacity: .55;
}
.sponsor-tile:hover .external-link-icon { opacity: .85; }
.sponsor-tile.tier-platinum .sponsor-name { font-size: 15px; }
.sponsor-tile.tier-gold .sponsor-name     { font-size: 14px; }
.sponsor-tile.tier-other .sponsor-name    { font-size: 12px; font-weight: 600; color: var(--muted); }

/* Legal disclaimers (Third-Party / Event / Links) — always visible, full text
   in the DOM. Colors meet AA on the footer (#fbfcfe): navy heading ~11:1,
   --muted body 7.6:1. */
.footer-disclaimer {
  max-width: 760px;
  margin: 16px auto 0;
  text-align: left;
  font-size: 12px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.footer-disclaimer h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}
.footer-disclaimer p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}
/* The third-party-link glyph that leads the Third-Party Links disclaimer
   (the legend for the icon shown on outbound sponsor links). */
.footer-disclaimer .disclaimer-symbol {
  width: 15px; height: 15px;
  vertical-align: -2px;
  margin-right: 3px;
}

/* Recording-notice line in the session detail modal (point-of-join notice). */
.detail-recording-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.footer-meta {
  text-align: center; font-size: 12px;
  color: var(--muted); margin: 22px 0 0;
}

/* Legal links row — Zions corporate-required Digital Privacy Statement +
   "Do Not Sell" data-rights link. Brand-gold underline matches the
   pattern used on zionsbank.com's own footer. Stacks on narrow phones. */
.footer-legal-links {
  margin: 10px 0 0;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  font-size: 12px;
}
.footer-legal-links a {
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-legal-links a:hover {
  color: var(--gold);
}

/* ============================================
   Chatbot
============================================ */
.chatbot-panel {
  position: fixed;
  bottom: 20px; right: 20px;
  width: 380px; max-width: calc(100vw - 30px);
  height: 540px; max-height: calc(100vh - 100px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,30,60,.25);
  display: none;
  flex-direction: column;
  z-index: 90;
  overflow: hidden;
}
.chatbot-panel.open { display: flex; }
.chatbot-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: #fff;
  padding: 14px 16px;
  display: flex; justify-content: space-between; align-items: center;
}
.chatbot-title { display: flex; gap: 10px; align-items: center; }
.chatbot-avatar {
  width: 36px; height: 36px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.chatbot-title strong { display: block; font-size: 15px; }
.chatbot-title small { font-size: 11px; opacity: .85; }
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
  background: #f5f7fb;
}
.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px; line-height: 1.45;
  word-wrap: break-word;
}
.chat-msg.bot {
  align-self: flex-start;
  background: #fff; color: var(--text);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow);
}
.chat-msg.user {
  align-self: flex-end;
  background: var(--navy); color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-msg .chat-action {
  display: block;
  margin-top: 8px;
  background: var(--gold); color: #fff;
  padding: 6px 12px; border-radius: 6px;
  font-size: 13px; font-weight: 600;
  text-decoration: none;
}
.chatbot-suggestions {
  padding: 8px 14px;
  display: flex; gap: 6px; flex-wrap: wrap;
  border-top: 1px solid var(--border);
}
.suggestion-chip {
  background: #fff; color: var(--blue);
  padding: 6px 10px;
  border-radius: 16px;
  font-size: 12px; font-weight: 600;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background .12s;
}
.suggestion-chip:hover { background: var(--type-presentation-bg); }

.chatbot-input {
  display: flex; gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.chatbot-input input {
  flex: 1; border-radius: 999px;
  padding: 10px 16px;
}
.chatbot-input button {
  width: 40px; height: 40px;
  background: var(--navy); color: #fff;
  border-radius: 50%;
  font-size: 18px; font-weight: 700;
}
.chatbot-input button:hover { background: var(--blue); }

.typing-indicator {
  display: inline-flex; gap: 3px;
}
.typing-indicator span {
  width: 6px; height: 6px;
  background: var(--muted); border-radius: 50%;
  animation: typing 1.2s infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: .2s; }
.typing-indicator span:nth-child(3) { animation-delay: .4s; }
@keyframes typing {
  0%, 60%, 100% { opacity: .3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

/* ============================================
   Toast
============================================ */
.toast {
  position: fixed;
  bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--navy); color: #fff;
  padding: 12px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: opacity .2s, transform .2s;
  pointer-events: none;
  z-index: 200;
  max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================
   iOS install banner (only revealed by JS on iOS Safari)
============================================ */
.ios-install-banner {
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 12px;
  background: var(--navy); color: #fff;
  padding: 12px 14px; border-radius: 14px;
  box-shadow: var(--shadow-lg);
  font-size: 13px; line-height: 1.35;
  z-index: 250;
}
.ios-install-banner[hidden] { display: none; }
.ios-install-icon img {
  width: 44px; height: 44px; border-radius: 10px;
  background: #fff; padding: 4px; box-sizing: border-box;
  display: block;
}
.ios-install-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ios-install-text strong { font-size: 14px; }
.ios-install-text span { color: rgba(255,255,255,.85); }
.ios-share-glyph {
  display: inline-block;
  font-size: 14px;
  transform: translateY(-1px);
  margin-right: 1px;
}
#ios-install-dismiss {
  background: transparent; border: none; color: rgba(255,255,255,.7);
  font-size: 18px; line-height: 1; cursor: pointer;
  padding: 6px 8px; border-radius: 6px;
  flex-shrink: 0;
}
#ios-install-dismiss:hover { color: #fff; background: rgba(255,255,255,.08); }

/* ============================================
   Speaker photo uploader (in profile editor)
============================================ */
.speaker-photo-row {
  display: flex; align-items: center; gap: 18px;
  margin: 0 0 18px;
  padding: 14px 16px;
  background: #f5f7fb;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.speaker-photo-preview {
  width: 92px; height: 92px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 32px;
  flex-shrink: 0; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,55,100,.15);
}
.speaker-photo-preview img {
  width: 100%; height: 100%; object-fit: cover;
}
.speaker-photo-actions {
  display: flex; flex-direction: column;
  gap: 6px; flex: 1;
}
.speaker-photo-pick {
  cursor: pointer;
  text-align: center;
  display: inline-block;
  padding: 9px 16px;
}

/* Bio label + AI button row */
.bio-label-row {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%;
}
.btn-bio-ai {
  background: linear-gradient(135deg, #4285F4 0%, #9b51e0 100%);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px; font-weight: 700;
  cursor: pointer;
  border: none;
  display: inline-flex; align-items: center; gap: 4px;
  transition: opacity .15s, transform .1s;
}
.btn-bio-ai:hover { opacity: 0.9; }
.btn-bio-ai:active { transform: scale(.97); }
.btn-bio-ai:disabled {
  opacity: 0.6; cursor: not-allowed;
}
.btn-bio-ai.thinking::before {
  content: '';
  display: inline-block;
  width: 10px; height: 10px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  margin-right: 6px;
  animation: spin .8s linear infinite;
}

/* ============================================
   Speaker Hub
============================================ */
.speaker-actions { margin-top: 18px; }
.speaker-actions button { max-width: 260px; }
.speaker-profile-card .presenter-card { margin: 6px 0 16px; }
.speaker-profile-edit-btn { margin-top: 6px; max-width: 260px; }

/* ============================================
   Loader overlay
============================================ */
.loader-overlay {
  position: fixed; inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px;
  z-index: 9999;
  transition: opacity .3s;
}
.loader-overlay.hidden {
  opacity: 0; pointer-events: none;
}
.loader-spinner {
  width: 50px; height: 50px;
  border: 4px solid rgba(255,255,255,0.18);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-overlay p { margin: 0; font-size: 14px; opacity: 0.85; }

/* ============================================
   Responsive
============================================ */
@media (max-width: 640px) {
  .app-header { padding: 10px 14px; }
  .header-left h1 { font-size: 15px; }
  .header-sub { font-size: 11px; }
  .top-tabs { top: 60px; padding: 8px 10px 0; }
  .top-tab { padding: 8px 14px; font-size: 13px; }
  .view-bar { padding: 10px 14px; gap: 10px; }
  .legend { font-size: 11px; gap: 10px; }
  .content-section { padding: 12px 14px 60px; }
  .session-card { padding: 12px; grid-template-columns: 1fr auto; }
  .session-title { font-size: 15px; }
  .modal-content { padding: 18px 18px; margin: 2vh auto; max-height: 96vh; }
  .admin-grid { grid-template-columns: 1fr; }
  .attend-options { grid-template-columns: 1fr; }
  .chatbot-panel {
    bottom: 0; right: 0;
    width: 100vw; height: 80vh; max-height: 80vh;
    border-radius: 16px 16px 0 0;
  }
  .auth-card { padding: 24px 20px; }
  .auth-logo img { max-width: 220px; }
}

/* "Sign in with Microsoft is for employees" helper under the SSO button */
.sso-note {
  margin: 8px 2px 0;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--muted, #6b7280);
  text-align: center;
}
