/* BPAnalytics workspace system: shared navigation, surfaces and responsive behavior. */
:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #f2f4f7;
  --text: #151922;
  --muted: #707784;
  --border: #e5e7eb;
  --blue: #5167e8;
  --green: #35a985;
  --blue-soft: #eef0ff;
  --shadow: 0 8px 28px rgba(20, 27, 45, .06);
  --workspace-sidebar: 64px;
  --workspace-sidebar-open: 240px;
  --workspace-radius: 14px;
}
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #f2f4f7;
  --text: #151922;
  --muted: #707784;
  --border: #e5e7eb;
  --blue: #5167e8;
  --green: #35a985;
  --blue-soft: #eef0ff;
  --shadow: 0 8px 28px rgba(20, 27, 45, .06);
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111318;
  --surface: #191c23;
  --surface-2: #222630;
  --text: #f2f3f5;
  --muted: #a3a8b3;
  --border: #2d323d;
  --blue: #9ca9ff;
  --green: #69d0ac;
  --blue-soft: #24283a;
  --shadow: 0 12px 34px rgba(0, 0, 0, .24);
}
html, body { min-height: 100%; }
body {
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: var(--font-family-base) !important;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
:where(button, a, input, select, textarea):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--blue) 35%, transparent);
  outline-offset: 2px;
}
h1, h2, h3, h4 { color: var(--text); letter-spacing: -.035em; }

/* Desktop shell; the rail expands over the workspace and does not move content. */
.app-shell, .bp-admin-shell, .bp-profile-shell {
  display: block !important;
  min-height: 100vh;
}
.bp-sidebar, .bp-admin-shell > .sidebar, .bp-profile-shell > .sidebar {
  position: fixed !important;
  inset: 0 auto 0 0;
  z-index: 110;
  display: flex !important;
  width: var(--workspace-sidebar) !important;
  height: 100dvh !important;
  min-height: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  overflow: visible;
  padding: 14px 10px !important;
  border: 0 !important;
  border-right: 1px solid var(--border) !important;
  border-radius: 0 !important;
  background: var(--surface) !important;
  box-shadow: none !important;
  transition: width .22s cubic-bezier(.2,.75,.25,1), box-shadow .22s ease;
}
.bp-sidebar:hover, .bp-sidebar:focus-within, body.bp-sidebar-pinned .bp-sidebar,
.bp-admin-shell > .sidebar:hover, .bp-admin-shell > .sidebar:focus-within, body.bp-sidebar-pinned .bp-admin-shell > .sidebar,
.bp-profile-shell > .sidebar:hover, .bp-profile-shell > .sidebar:focus-within, body.bp-sidebar-pinned .bp-profile-shell > .sidebar {
  width: var(--workspace-sidebar-open) !important;
  box-shadow: 16px 0 38px rgba(22, 28, 45, .1);
}
.bp-sidebar .brand, .bp-admin-shell .brand, .bp-profile-shell .brand {
  display: flex;
  min-width: 0;
  height: 42px;
  flex: 0 0 42px;
  align-items: center;
  gap: 11px;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 5px;
  color: var(--text) !important;
  font-size: 0 !important;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}
.bp-sidebar .brand-logo, .bp-admin-shell .brand-logo, .bp-profile-shell .brand-logo {
  display: block !important;
  width: 32px !important;
  height: 32px !important;
  flex: 0 0 32px;
  object-fit: contain;
  border-radius: 9px;
}
.bp-sidebar .brand > span:not(.brand-logo), .bp-admin-shell .brand > span:not(.brand-logo) { display: none; }
.bp-sidebar:hover .brand, .bp-sidebar:focus-within .brand, body.bp-sidebar-pinned .bp-sidebar .brand,
.bp-admin-shell > .sidebar:hover .brand, .bp-admin-shell > .sidebar:focus-within .brand, body.bp-sidebar-pinned .bp-admin-shell .brand,
.bp-profile-shell > .sidebar:hover .brand, .bp-profile-shell > .sidebar:focus-within .brand, body.bp-sidebar-pinned .bp-profile-shell .brand {
  font-size: 15px !important;
}
.bp-sidebar .section-menu, .bp-admin-shell .section-menu, .bp-profile-shell .section-menu {
  display: grid !important;
  width: 100%;
  min-width: 0;
  gap: 4px !important;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 !important;
  scrollbar-width: none;
}
.bp-global-nav { align-content: start; }
.bp-global-nav .bp-nav-divider {
  display: block;
  width: 30px;
  height: 1px;
  justify-self: center;
  margin: 7px 0;
  background: var(--border);
}
.bp-global-nav .bp-nav-heading {
  display: none;
  overflow: hidden;
  padding: 7px 12px 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .06em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.bp-sidebar:hover .bp-global-nav .bp-nav-divider,
.bp-sidebar:focus-within .bp-global-nav .bp-nav-divider,
body.bp-sidebar-pinned .bp-global-nav .bp-nav-divider,
.bp-admin-shell > .sidebar:hover .bp-global-nav .bp-nav-divider,
.bp-admin-shell > .sidebar:focus-within .bp-global-nav .bp-nav-divider,
.bp-profile-shell > .sidebar:hover .bp-global-nav .bp-nav-divider,
.bp-profile-shell > .sidebar:focus-within .bp-global-nav .bp-nav-divider,
body.bp-sidebar-pinned .bp-global-nav .bp-nav-divider { width: calc(100% - 18px); }
.bp-sidebar:hover .bp-global-nav .bp-nav-heading,
.bp-sidebar:focus-within .bp-global-nav .bp-nav-heading,
body.bp-sidebar-pinned .bp-global-nav .bp-nav-heading,
.bp-admin-shell > .sidebar:hover .bp-global-nav .bp-nav-heading,
.bp-admin-shell > .sidebar:focus-within .bp-global-nav .bp-nav-heading,
.bp-profile-shell > .sidebar:hover .bp-global-nav .bp-nav-heading,
.bp-profile-shell > .sidebar:focus-within .bp-global-nav .bp-nav-heading,
body.bp-sidebar-pinned .bp-global-nav .bp-nav-heading { display: block; }
.bp-global-nav [hidden] { display: none !important; }
.bp-profile-subnav {
  display: flex;
  width: 100%;
  min-width: 0;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0;
  scrollbar-width: thin;
}
.bp-profile-subnav a {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
}
.bp-profile-subnav a:hover, .bp-profile-subnav a[aria-current="page"] { color: var(--blue); background: var(--blue-soft); }
.bp-sidebar .section-menu a, .bp-admin-shell .section-menu a, .bp-profile-shell .section-menu a {
  position: relative;
  display: flex !important;
  width: 44px;
  min-width: 44px;
  min-height: 44px !important;
  align-items: center;
  gap: 13px;
  overflow: hidden;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 10px !important;
  color: var(--muted) !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 0 !important;
  font-weight: 560 !important;
  text-decoration: none;
  white-space: nowrap;
  transition: width .22s ease, background .16s ease, color .16s ease;
}
.bp-sidebar .section-menu a::before, .bp-admin-shell .section-menu a::before, .bp-profile-shell .section-menu a::before {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-items: center;
  background-color: currentColor;
  content: "";
  -webkit-mask: var(--bp-nav-icon) center / contain no-repeat;
  mask: var(--bp-nav-icon) center / contain no-repeat;
}
.bp-sidebar .section-menu a.active, .bp-admin-shell .section-menu a.active, .bp-profile-shell .section-menu a.active,
.bp-sidebar .section-menu a[aria-current="page"], .bp-admin-shell .section-menu a[aria-current="page"], .bp-profile-shell .section-menu a[aria-current="page"] {
  color: var(--blue) !important;
  background: var(--blue-soft) !important;
}
.bp-sidebar .section-menu a:hover, .bp-admin-shell .section-menu a:hover, .bp-profile-shell .section-menu a:hover {
  color: var(--text) !important;
  background: var(--surface-2) !important;
}
.bp-sidebar .section-menu a[data-bp-icon="home"] { --bp-nav-icon: url("/shared/assets/icons/home.svg"); }
.bp-sidebar .section-menu a[data-bp-icon="dashboard"] { --bp-nav-icon: url("/shared/assets/icons/dashboard.svg"); }
.bp-sidebar .section-menu a[data-bp-icon="organization"] { --bp-nav-icon: url("/shared/assets/icons/organization.svg"); }
.bp-sidebar .section-menu a[data-bp-icon="events"] { --bp-nav-icon: url("/shared/assets/icons/events.svg"); }
.bp-sidebar .section-menu a[data-bp-icon="curator"] { --bp-nav-icon: url("/shared/assets/icons/curator.svg"); }
.bp-sidebar .section-menu a[data-bp-icon="community"] { --bp-nav-icon: url("/shared/assets/icons/community.svg"); }
.bp-sidebar .section-menu a[data-bp-icon="analytics"] { --bp-nav-icon: url("/shared/assets/icons/analytics.svg"); }
.bp-sidebar .section-menu a[data-bp-icon="spark"] { --bp-nav-icon: url("/shared/assets/icons/spark.svg"); }
.bp-sidebar .section-menu a[data-bp-icon="settings"] { --bp-nav-icon: url("/shared/assets/icons/settings.svg"); }
.bp-sidebar .section-menu a[data-bp-icon="shield"] { --bp-nav-icon: url("/shared/assets/icons/shield.svg"); }
.bp-sidebar .section-menu a[data-bp-icon="notifications"] { --bp-nav-icon: url("/shared/assets/icons/notifications.svg"); }
.bp-sidebar .section-menu a.admin-logout { --bp-nav-icon: url("/shared/assets/icons/logout.svg"); }
.bp-sidebar .section-menu a[href="/notifications/"] { overflow: visible; }
.bp-profile-avatar-link { display: grid; width: 40px; min-width: 40px; height: 40px; flex: 0 0 40px; place-items: center; overflow: hidden; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); }
.bp-profile-avatar-link img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bp-profile-avatar-link[data-avatar-placeholder="true"] span { width: 20px; height: 20px; background: var(--muted); -webkit-mask: url("/shared/assets/icons/community.svg") center / contain no-repeat; mask: url("/shared/assets/icons/community.svg") center / contain no-repeat; }
.bp-profile-avatar-link:hover { border-color: var(--blue); background: var(--blue-soft); }
.bp-notification-badge { position: absolute; top: 1px; left: 29px; min-width: 17px; height: 17px; padding: 0 4px; border: 2px solid var(--surface); border-radius: 99px; color: #fff; background: #d8394a; font-size: 9px; font-weight: 750; line-height: 13px; text-align: center; }
.bp-sidebar:hover .bp-notification-badge, .bp-sidebar:focus-within .bp-notification-badge, body.bp-sidebar-pinned .bp-notification-badge, .bp-admin-shell > .sidebar:hover .bp-notification-badge, .bp-admin-shell > .sidebar:focus-within .bp-notification-badge, body.bp-sidebar-pinned .bp-admin-shell .bp-notification-badge { position: static; min-width: 20px; height: 20px; margin-left: auto; border: 0; font-size: 10px; line-height: 20px; }
.bp-sidebar .section-menu a[href^="/organizations/"] { --bp-nav-icon: url("/shared/assets/icons/organization.svg"); }
.bp-sidebar .section-menu a[href^="/analytics/"] { --bp-nav-icon: url("/shared/assets/icons/analytics.svg"); }
.bp-sidebar .section-menu a[href^="/hero/"] { --bp-nav-icon: url("/shared/assets/icons/spark.svg"); }
.bp-sidebar .section-menu a.admin-entry, .bp-admin-shell .section-menu a.admin-entry { color: #b34b55 !important; }
.bp-sidebar:hover .section-menu a, .bp-sidebar:focus-within .section-menu a, body.bp-sidebar-pinned .bp-sidebar .section-menu a,
.bp-admin-shell > .sidebar:hover .section-menu a, .bp-admin-shell > .sidebar:focus-within .section-menu a, body.bp-sidebar-pinned .bp-admin-shell .section-menu a,
.bp-profile-shell > .sidebar:hover .section-menu a, .bp-profile-shell > .sidebar:focus-within .section-menu a, body.bp-sidebar-pinned .bp-profile-shell .section-menu a {
  width: 100%;
  font-size: 13px !important;
}
.bp-sidebar-pin {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  margin: auto auto 0;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}
.bp-sidebar-pin:hover, .bp-sidebar-pin[aria-pressed="true"] { color: var(--blue); background: var(--blue-soft); }
.bp-org-logout {
  display: flex;
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  gap: 13px;
  overflow: hidden;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0;
  font-weight: 560;
  text-decoration: none;
  white-space: nowrap;
}
.bp-org-logout::before {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  background: currentColor;
  content: "";
  -webkit-mask: url("/shared/assets/icons/logout.svg") center / contain no-repeat;
  mask: url("/shared/assets/icons/logout.svg") center / contain no-repeat;
}
.bp-org-logout:hover { color: #b34b55; background: var(--surface-2); }
.bp-sidebar:hover .bp-org-logout, .bp-sidebar:focus-within .bp-org-logout,
body.bp-sidebar-pinned .bp-sidebar .bp-org-logout { width: 100%; font-size: 13px; }

.app-shell .page-column, .bp-admin-shell .bp-workspace, .bp-profile-shell .profile-shell {
  min-width: 0;
  min-height: 100vh;
  margin-left: var(--workspace-sidebar);
  transition: margin-left .22s cubic-bezier(.2,.75,.25,1);
}
.bp-sidebar:hover ~ .page-column, .bp-sidebar:focus-within ~ .page-column,
body.bp-sidebar-pinned .app-shell .page-column,
.bp-admin-shell > .sidebar:hover ~ .bp-workspace, .bp-admin-shell > .sidebar:focus-within ~ .bp-workspace,
body.bp-sidebar-pinned .bp-admin-shell .bp-workspace,
.bp-profile-shell > .sidebar:hover ~ .profile-shell, .bp-profile-shell > .sidebar:focus-within ~ .profile-shell,
body.bp-sidebar-pinned .bp-profile-shell .profile-shell { margin-left: var(--workspace-sidebar-open); }
.bp-admin-shell .bp-workspace { display: flex; min-height: 100vh; flex-direction: column; }
.bp-admin-shell main { width: min(100% - 56px, 1320px) !important; margin: 28px auto 72px !important; }
.bp-profile-shell .profile-shell { width: auto; padding: 0 clamp(20px, 5vw, 72px) 64px; }
.bp-profile-shell .profile-topbar { position: sticky; top: 0; z-index: 40; display: flex; min-height: 62px; align-items: center; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(16px); }
.bp-profile-shell .profile-shell > header { padding: 30px 0 18px; border: 0; background: transparent; }
.bp-profile-shell .profile-menu a { min-width: 44px; }
.bp-profile-shell .profile-feed-return, .bp-profile-shell .profile-logout { margin-top: auto; }

.app-shell .page-column > .topbar, .bp-admin-shell .bp-topbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 40;
  display: flex;
  min-height: 62px !important;
  align-items: center;
  justify-content: flex-end !important;
  gap: 14px;
  padding: 0 clamp(18px, 4vw, 54px) !important;
  border: 0 !important;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent) !important;
  background: color-mix(in srgb, var(--bg) 88%, transparent) !important;
  backdrop-filter: blur(18px);
}
.bp-topbar > .bp-topbar-controls {
  position: static !important;
  z-index: auto;
  flex: 0 0 auto;
  margin-left: 8px;
}
.bp-profile-shell .profile-topbar > .bp-topbar-controls {
  position: static !important;
  flex: 0 0 auto;
  margin-left: auto;
}
.bp-route-meta { display: grid; min-width: 0; gap: 2px; margin-right: auto; }
.bp-route-meta span { color: var(--muted); font-size: 11px; }
.bp-route-meta strong { overflow: hidden; color: var(--text); font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.app-shell .feed-shell, .app-shell .organization-shell, .app-shell .analytics-shell, .app-shell .hero-shell {
  width: min(100% - 56px, 1100px) !important;
  margin: 0 auto !important;
  padding: clamp(28px, 4vw, 54px) 0 76px !important;
}
.feed-heading { margin-bottom: 30px !important; }
.feed-heading h1, .organization-shell > h1, .analytics-shell > h1, .hero-shell > h1 {
  max-width: 820px;
  font-family: var(--font-family-base) !important;
  font-size: clamp(34px, 5vw, 54px) !important;
  font-weight: 680 !important;
  letter-spacing: -.055em !important;
  line-height: 1.06 !important;
}
.eyebrow { color: var(--blue) !important; font-size: 11px !important; font-weight: 700 !important; letter-spacing: .12em !important; }
.event-card, .panel, .story-card, .result-card, .auth-card, .organization-card, .person-card, .chart-card {
  border: 1px solid var(--border) !important;
  border-radius: var(--workspace-radius) !important;
  background: var(--surface) !important;
  box-shadow: none !important;
}
.event-card { padding: clamp(20px, 3.2vw, 30px) !important; }
.event-feed { gap: 14px !important; }
.bp-page-intro { display: grid; gap: 10px; margin: 0 0 28px; }
.bp-page-intro .eyebrow { margin: 0; }
.bp-page-intro h1 { margin: 0; font-size: clamp(34px, 5vw, 54px); font-weight: 680; letter-spacing: -.055em; line-height: 1.06; }
.bp-page-intro > p:last-child { max-width: 620px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.event-card h2 { font-size: clamp(20px, 2.5vw, 26px) !important; }
.event-actions { border-color: var(--border) !important; }
.event-detail { display: grid; grid-template-columns: minmax(0, 1fr) 264px; align-items: start; column-gap: 32px; }
.event-detail[hidden] { display: none !important; }
.event-detail > .event-meta, .event-detail > h1, .event-detail > .event-photos,
.event-detail > .event-schedule, .event-detail > .event-body, .event-detail > .map-section { grid-column: 1; }
.event-detail > .event-actions {
  position: sticky;
  top: 82px;
  grid-column: 2;
  grid-row: 1 / span 8;
  display: grid;
  align-content: start;
  gap: 8px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.event-detail > .event-actions > * { width: 100%; justify-content: center; margin: 0; }
.event-detail > .event-actions .open-event { margin-left: 0; }
.event-detail .detail-photos { margin: 18px 0 22px; }
.event-detail .detail-photos img { max-height: 520px; object-fit: cover; cursor: zoom-in; }
.bp-gallery-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 64px 76px 38px;
  border: 0;
  border-radius: 0 !important;
  color: #fff;
  background: rgba(11, 13, 18, .97);
}
.bp-gallery-dialog::backdrop { background: rgba(11, 13, 18, .97); }
.bp-gallery-dialog figure { display: grid; width: 100%; height: 100%; place-items: center; gap: 12px; margin: 0; }
.bp-gallery-dialog img { display: block; max-width: 100%; max-height: calc(100% - 34px); object-fit: contain; }
.bp-gallery-dialog figcaption { color: rgba(255,255,255,.72); font-size: 13px; }
.bp-gallery-dialog button { position: absolute; z-index: 1; display: grid; width: 44px; height: 44px; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.2); border-radius: 50% !important; color: #fff; background: rgba(255,255,255,.1); font-size: 26px; cursor: pointer; }
.bp-gallery-dialog .bp-gallery-close { top: 18px; right: 20px; }
.bp-gallery-dialog .bp-gallery-prev { top: 50%; left: 18px; transform: translateY(-50%); }
.bp-gallery-dialog .bp-gallery-next { top: 50%; right: 18px; transform: translateY(-50%); }
.bp-gallery-dialog button[hidden] { display: none; }
.bp-gallery-dialog button:hover { background: rgba(255,255,255,.22); }
button, .primary, .open-event, .friend-search button, .save, .choices button, #start {
  border-radius: 9px !important;
  box-shadow: none !important;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
button:hover:not(:disabled), .open-event:hover { transform: translateY(-1px); }
button.primary, .friend-search button, .event-actions .open-event, .choices button, #start, .save {
  border-color: transparent !important;
  color: #fff !important;
  background: #4f63df !important;
}
input, select, textarea {
  border-radius: 9px !important;
  border-color: var(--border) !important;
  background: var(--surface) !important;
  color: var(--text) !important;
  box-shadow: none;
}
.notification-bell { border-radius: 10px !important; background: var(--surface) !important; }
.notification-panel { border-color: var(--border) !important; border-radius: 14px !important; background: var(--surface) !important; box-shadow: var(--shadow) !important; }
.organization-shell .panel, .analytics-shell .panel { padding: 20px; }
.organization-shell .event-card { padding: 18px !important; }
.organization-event { padding: 18px !important; border: 1px solid var(--border) !important; border-radius: 12px !important; background: var(--surface) !important; transition: border-color .16s ease, background .16s ease; }
.organization-event:hover { border-color: color-mix(in srgb, var(--blue) 34%, var(--border)) !important; background: color-mix(in srgb, var(--blue-soft) 36%, var(--surface)) !important; }
.organization-role-marker, .organization-event small { color: var(--blue) !important; }
.table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.table-wrap table { min-width: 640px; border-collapse: separate; border-spacing: 0; }
.table-wrap thead th { position: sticky; top: 0; z-index: 2; padding: 13px 16px; border-bottom: 1px solid var(--border); color: var(--muted); background: var(--surface-2); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.table-wrap tbody td { padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--text); font-size: 13px; vertical-align: middle; }
.table-wrap tbody tr:last-child td { border-bottom: 0; }
.table-wrap tbody tr:hover td { background: color-mix(in srgb, var(--blue-soft) 38%, var(--surface)); }
.table-wrap td small { color: var(--muted); }
.admin-metric, .chart-card { border-radius: 12px !important; background: var(--surface) !important; }
.admin-metrics { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.admin-metric { min-width: 0; overflow-wrap: anywhere; }
.admin-metric span { overflow-wrap: anywhere; }
.bp-mobile-menu-button, .bp-mobile-nav-scrim { display: none; }
.bp-admin-shell .admin-menu-toggle { display: none !important; }
.bp-admin-shell > .sidebar .admin-panel-switcher { display: grid !important; width: 100%; grid-template-columns: 1fr; gap: 4px; padding: 0 !important; border: 0; background: transparent; }
.bp-admin-shell > .sidebar .admin-panel-switcher { order: 0 !important; }
.bp-admin-shell > .sidebar .admin-panel-switcher a { display: flex; width: 100%; min-width: 0; min-height: 44px; align-items: center; padding: 0 12px; }
.bp-admin-shell > .bp-workspace > main > .admin-subnav {
  display: flex !important;
  flex-direction: row !important;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  overflow-x: auto;
  margin: 0 0 28px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.bp-admin-shell > .bp-workspace > main > .admin-subnav a {
  display: inline-flex;
  min-height: 38px;
  width: auto !important;
  min-width: max-content;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
  text-decoration: none;
  white-space: nowrap;
}
.bp-admin-shell > .bp-workspace > main > .admin-subnav a:hover { color: var(--text); background: var(--surface-2); }
.bp-admin-shell > .bp-workspace > main > .admin-subnav a[aria-current="page"] { color: var(--blue); background: var(--blue-soft); }
.bp-admin-shell .bp-topbar .admin-feed-link { display: inline-flex; align-items: center; color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.bp-admin-shell .bp-topbar .admin-feed-link:hover { color: var(--blue); }
.bp-admin-shell .bp-topbar .admin-feed-link,
.bp-admin-shell .bp-topbar .admin-logout {
  display: grid;
  width: 40px;
  min-width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  overflow: hidden;
  padding: 0 !important;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--muted);
  background: var(--surface);
  font-size: 0 !important;
  text-decoration: none;
}
.bp-admin-shell .bp-topbar .admin-feed-link::before,
.bp-admin-shell .bp-topbar .admin-logout::before {
  display: block;
  width: 20px;
  height: 20px;
  background: currentColor;
  content: "";
  -webkit-mask: var(--bp-admin-action-icon) center / contain no-repeat;
  mask: var(--bp-admin-action-icon) center / contain no-repeat;
}
.bp-admin-shell .bp-topbar .admin-feed-link { --bp-admin-action-icon: url("/shared/assets/icons/back.svg"); }
.bp-admin-shell .bp-topbar .admin-logout { --bp-admin-action-icon: url("/shared/assets/icons/logout.svg"); }
.bp-admin-shell .bp-topbar .admin-feed-link:hover,
.bp-admin-shell .bp-topbar .admin-logout:hover { color: var(--blue); background: var(--blue-soft); }
.bp-admin-shell > .sidebar .admin-settings-menu { margin-top: auto; padding-top: 12px !important; border-top: 1px solid var(--border); }
.bp-admin-shell > .sidebar .admin-settings-menu a { width: 100%; }
.bp-admin-shell .bp-topbar .admin-panel-switcher, .bp-admin-shell .bp-topbar .admin-settings-menu { display: none !important; }
.bp-admin-shell #admin-navigation a[href*="/users/"] { --bp-nav-icon: url("/shared/assets/icons/dashboard.svg"); }
.bp-admin-shell #admin-navigation a[href^="/admin/?"] { --bp-nav-icon: url("/shared/assets/icons/analytics.svg"); }
.bp-admin-shell #admin-navigation a[href*="/analytics/"] { --bp-nav-icon: url("/shared/assets/icons/analytics.svg"); }
.bp-admin-shell #admin-navigation a[href="/feed/"] { --bp-nav-icon: url("/shared/assets/icons/home.svg"); }
.bp-admin-shell #support-email-form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.bp-admin-shell #support-email-form button { min-width: 120px; }
@media (max-width: 900px) {
  .bp-admin-shell main { width: calc(100% - 32px) !important; margin: 24px auto 56px !important; }
  .bp-admin-shell > .bp-workspace > main > .admin-subnav { margin-bottom: 22px; }
  .bp-admin-shell .panel > .heading { align-items: stretch; gap: 14px; flex-direction: column; }
  .bp-admin-shell .panel > .heading > * { max-width: 100%; min-width: 0; }
  .bp-admin-shell .panel > .heading .switch { width: fit-content; }
  .bp-admin-shell .panel .switch { max-width: 100%; align-items: flex-start; }
  .bp-admin-shell .panel .switch span { white-space: normal; overflow-wrap: anywhere; }
  .bp-admin-shell #support-email-form { grid-template-columns: minmax(0, 1fr); }
  .bp-admin-shell #support-email-form button { width: 100%; }
  .bp-admin-shell .analytics-range-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bp-admin-shell .analytics-charts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .app-shell .page-column > .topbar, .bp-admin-shell .bp-topbar, .bp-profile-shell .profile-topbar {
    height: auto !important;
    min-height: 58px !important;
    flex-wrap: wrap;
    align-content: center;
    justify-content: space-between !important;
    gap: 8px;
    padding: 8px 14px !important;
  }
  .bp-admin-shell .bp-topbar .bp-mobile-menu-button,
  .app-shell .page-column > .topbar .bp-mobile-menu-button,
  .bp-profile-shell .profile-topbar .bp-mobile-menu-button {
    position: static;
    z-index: auto;
    order: 0;
    flex: 0 0 auto;
  }
  .bp-topbar > .bp-topbar-controls { order: 2; margin-left: auto; }
  .bp-admin-shell main > .heading h1 { max-width: 100%; overflow-wrap: anywhere; font-size: clamp(27px, 8.5vw, 36px); }
  body.bp-mobile-nav-open { overflow: hidden; }
  body.bp-mobile-nav-open .language-switch, body.bp-mobile-nav-open .bp-appearance-control { visibility: hidden; }
}

/* Authentication remains a focused standalone surface while sharing the design tokens. */
body:has(.shell) { background: radial-gradient(ellipse at 50% 0, var(--blue-soft), transparent 48%), var(--bg) !important; }
body:has(.shell) .shell { max-width: 520px !important; }
body:has(.shell) .auth-card { border-radius: 18px !important; box-shadow: var(--shadow) !important; }

@media (max-width: 760px) {
  .bp-global-nav .bp-nav-heading { display: block; }
  .bp-global-nav .bp-nav-divider { width: calc(100% - 18px); }
  .bp-sidebar, .bp-admin-shell > .sidebar, .bp-profile-shell > .sidebar {
    width: min(288px, calc(100vw - 48px)) !important;
    max-width: 288px;
    transform: translateX(-105%);
    border-right: 1px solid var(--border) !important;
    box-shadow: 18px 0 48px rgba(22, 28, 45, .16);
    transition: transform .22s cubic-bezier(.2,.75,.25,1);
  }
  body.bp-mobile-nav-open .bp-sidebar, body.bp-mobile-nav-open .bp-admin-shell > .sidebar, body.bp-mobile-nav-open .bp-profile-shell > .sidebar {
    width: min(288px, calc(100vw - 48px)) !important;
    transform: translateX(0);
  }
  .bp-sidebar .brand, .bp-admin-shell .brand, .bp-profile-shell .brand { font-size: 15px !important; }
  .bp-sidebar .section-menu a, .bp-admin-shell .section-menu a, .bp-profile-shell .section-menu a { width: 100%; font-size: 13px !important; }
  .bp-sidebar .section-menu a::before, .bp-admin-shell .section-menu a::before, .bp-profile-shell .section-menu a::before { margin-right: 0; }
  .bp-sidebar-pin { display: none; }
  .app-shell .page-column, .bp-admin-shell .bp-workspace, .bp-profile-shell .profile-shell { margin-left: 0 !important; }
  .app-shell .page-column > .topbar, .bp-admin-shell .bp-topbar { min-height: 58px !important; gap: 8px; padding: 0 14px !important; }
  .bp-mobile-menu-button {
    display: inline-flex;
    min-width: 42px;
    height: 38px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--text);
    background: var(--surface);
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
  }
  .bp-route-meta { display: none; }
  .app-shell .topbar .language-switch .bp-language-select { width: 96px !important; min-width: 96px !important; max-width: 96px !important; padding-left: 7px; padding-right: 20px; font-size: 11px; }
  .app-shell .topbar .language-switch .bp-language-select, .bp-profile-shell .profile-topbar .bp-language-select { width: 96px !important; min-width: 96px !important; max-width: 96px !important; padding-left: 7px; padding-right: 20px; font-size: 11px; }
  .app-shell .topbar .bp-appearance-control, .bp-admin-shell .bp-topbar .bp-appearance-control, .bp-profile-shell .profile-topbar .bp-appearance-control { min-width: 0; }
  .app-shell .topbar .bp-theme-select, .bp-admin-shell .bp-topbar .bp-theme-select, .bp-profile-shell .profile-topbar .bp-theme-select { width: 96px !important; min-width: 96px !important; max-width: 96px !important; padding-left: 7px; padding-right: 18px; font-size: 11px; }
  .app-shell .topbar .account-link, .bp-admin-shell .bp-topbar .account-link { display: grid; width: 32px; min-width: 32px; height: 32px; flex: 0 0 32px; place-items: center; overflow: hidden; padding: 0 !important; border-radius: 50% !important; font-size: 0 !important; }
  .app-shell .topbar .account-link::before, .bp-admin-shell .bp-topbar .account-link::before { display: block; width: 19px; height: 19px; background: currentColor; content: ""; -webkit-mask: url("/shared/assets/icons/community.svg") center / contain no-repeat; mask: url("/shared/assets/icons/community.svg") center / contain no-repeat; }
  .app-shell .feed-shell, .app-shell .organization-shell, .app-shell .analytics-shell, .app-shell .hero-shell { width: calc(100% - 28px) !important; padding: 28px 0 62px !important; }
  .bp-admin-shell main { width: calc(100% - 28px) !important; margin: 24px auto 56px !important; }
  .bp-profile-shell .profile-shell { padding: 0 16px 48px; }
  .event-detail { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .event-detail > .event-actions { position: sticky; bottom: 8px; top: auto; grid-column: 1; grid-row: auto; z-index: 20; grid-template-columns: repeat(2, minmax(0,1fr)); margin: 12px -8px -12px; padding: 10px; box-shadow: 0 8px 30px rgba(20,27,45,.13); }
  .bp-gallery-dialog { padding: 58px 52px 24px; }
  .bp-gallery-dialog .bp-gallery-prev { left: 6px; }
  .bp-gallery-dialog .bp-gallery-next { right: 6px; }
  .bp-mobile-nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: block;
    border: 0;
    border-radius: 0 !important;
    background: rgba(14, 18, 28, .36);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
  }
  body.bp-mobile-nav-open .bp-mobile-nav-scrim { opacity: 1; pointer-events: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Context navigation occupies a second rail; header controls stay in normal flow. */
.bp-context-sidebar {
  position: fixed;
  inset: 0 auto 0 var(--workspace-sidebar);
  z-index: 80;
  display: flex;
  width: 216px;
  height: 100dvh;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  padding: 24px 16px;
  border-right: 1px solid var(--border);
  background: var(--surface);
  box-sizing: border-box;
  transition: left .22s ease, transform .22s ease;
}
.bp-context-heading { font-size: 13px; line-height: 1.5; }
.bp-context-sidebar > nav { display: grid !important; gap: 5px; width: 100%; padding: 0; margin: 0; border: 0; background: transparent; }
.bp-context-sidebar nav a {
  display: flex;
  min-width: 0;
  min-height: 42px;
  align-items: center;
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
}
.bp-context-sidebar nav a:hover { color: var(--text); background: var(--surface-2); }
.bp-context-sidebar nav a.active, .bp-context-sidebar nav a[aria-current="page"], .bp-context-sidebar nav a[aria-selected="true"] { color: var(--blue); background: var(--blue-soft); }
body.bp-has-context-nav :is(.page-column, .bp-workspace, .profile-shell) { margin-left: calc(var(--workspace-sidebar) + 216px); }
body.bp-has-context-nav.bp-sidebar-pinned .bp-context-sidebar { left: var(--workspace-sidebar-open); }
body.bp-has-context-nav.bp-sidebar-pinned :is(.page-column, .bp-workspace, .profile-shell) { margin-left: calc(var(--workspace-sidebar-open) + 216px); }
.bp-context-menu-button { display: none; }
.bp-workspace-topbar {
  height: auto !important;
  min-height: 64px;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end !important;
  gap: 12px;
  padding-block: 10px !important;
  box-sizing: border-box;
}
.bp-workspace-topbar :is(.bp-language-selector, .language-switch, .bp-topbar-controls) {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
  display: flex !important;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px !important;
  margin: 0 !important;
  order: 2;
}
.bp-workspace-topbar .bp-route-meta { flex: 1 1 140px; margin-right: auto; order: 0; }
.bp-workspace-topbar #timer { position: static; flex: 0 0 auto; order: 1; font-size: 14px; font-variant-numeric: tabular-nums; }
.bp-workspace-topbar .bp-profile-avatar-link {
  display: grid;
  position: relative;
  width: 40px;
  min-width: 40px;
  height: 40px;
  flex: 0 0 40px;
  order: 3;
  padding: 0 !important;
  border: 1px solid var(--border);
  border-radius: 50% !important;
  font-size: 0 !important;
  text-decoration: none;
}
.bp-workspace-topbar .bp-profile-avatar-link::before, .bp-workspace-topbar #account-link.bp-profile-avatar-link::after { content: none; }
.bp-sidebar .bp-sidebar-action {
  display: flex;
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  flex: 0 0 44px;
  align-items: center;
  gap: 13px;
  overflow: hidden;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 0;
  white-space: nowrap;
  box-sizing: border-box;
}
.bp-sidebar .bp-sidebar-action::before { content: ""; width: 20px; height: 20px; flex: 0 0 20px; background: currentColor; mask: url('/shared/assets/icons/logout.svg') center / contain no-repeat; -webkit-mask: url('/shared/assets/icons/logout.svg') center / contain no-repeat; }
.bp-sidebar .profile-feed-return::before { mask-image: url('/shared/assets/icons/back.svg'); -webkit-mask-image: url('/shared/assets/icons/back.svg'); }
.bp-sidebar .bp-sidebar-action:hover { color: var(--blue); background: var(--blue-soft); }
.bp-sidebar :is(.profile-logout, .admin-logout) { color: #c73543; }
.bp-sidebar:is(:hover, :focus-within) .bp-sidebar-action, body.bp-sidebar-pinned .bp-sidebar .bp-sidebar-action { width: 100%; font-size: 13px; }
.bp-sidebar .mobile-menu-toggle { display: none !important; }
.bp-sidebar .section-menu [hidden], .bp-context-sidebar [hidden], .bp-sidebar [hidden] { display: none !important; }
@media (max-width: 760px) {
  body.bp-has-context-nav :is(.page-column, .bp-workspace, .profile-shell) { margin-left: 0 !important; }
  .bp-context-sidebar { left: 0 !important; z-index: 110; width: min(288px, calc(100vw - 48px)); transform: translateX(-105%); box-shadow: 18px 0 48px rgba(22, 28, 45, .16); }
  body.bp-context-nav-open .bp-context-sidebar { transform: translateX(0); }
  body.bp-context-nav-open { overflow: hidden; }
  body.bp-context-nav-open .bp-mobile-nav-scrim { opacity: 1; pointer-events: auto; }
  .bp-workspace-topbar .bp-context-menu-button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 12px; order: 0; }
  .bp-workspace-topbar { gap: 8px !important; padding-block: 8px !important; }
  .bp-workspace-topbar :is(.bp-language-selector, .language-switch, .bp-topbar-controls) { flex-wrap: wrap; gap: 6px !important; margin-left: auto !important; }
  .bp-workspace-topbar :is(.bp-language-select, .bp-theme-select) { width: 92px !important; min-width: 92px !important; max-width: 92px !important; height: 36px !important; font-size: 11px; }
  .bp-workspace-topbar .bp-profile-avatar-link { width: 36px; min-width: 36px; height: 36px; flex-basis: 36px; }
  .bp-sidebar .bp-sidebar-action, .bp-sidebar .bp-org-logout { width: 100%; font-size: 13px; }
}
.bp-context-sidebar nav button[role="tab"] { width: 100%; min-height: 42px; padding: 9px 12px; text-align: left; white-space: normal; font-size: 13px; background: transparent; color: var(--muted); border: 0; }
.bp-context-sidebar nav button[aria-selected="true"] { color: var(--blue); background: var(--blue-soft); }
@media (min-width: 761px) {
  body.bp-has-context-nav:has(.bp-sidebar:is(:hover, :focus-within)) .bp-context-sidebar { left: var(--workspace-sidebar-open); }
  body.bp-has-context-nav:has(.bp-sidebar:is(:hover, :focus-within)) :is(.page-column, .bp-workspace, .profile-shell) { margin-left: calc(var(--workspace-sidebar-open) + 216px); }
}
@media (max-width: 760px) {
  .bp-sidebar, .bp-context-sidebar { visibility: hidden; pointer-events: none; }
  body.bp-mobile-nav-open .bp-sidebar, body.bp-context-nav-open .bp-context-sidebar { visibility: visible; pointer-events: auto; }
}
@media (max-width: 760px) {
  .bp-workspace-topbar :is(.bp-language-select, .bp-theme-select) { width: 96px !important; min-width: 96px !important; max-width: 96px !important; padding: 0 20px 0 7px !important; }
}

.bp-workspace-topbar .bp-header-actions { display: flex; max-width: 100%; min-width: 0; flex: 0 1 auto; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; order: 2; margin-left: auto; }
.bp-workspace-topbar .bp-header-actions :is(.bp-language-selector, .language-switch) { max-width: 100%; min-width: 0; flex: 0 1 auto; flex-wrap: wrap; }
.bp-workspace-topbar .bp-header-actions .bp-profile-avatar-link { margin-left: auto; }
@media (max-width: 760px) {
  .bp-workspace-topbar .bp-header-actions { gap: 8px; }
}

@media (max-width: 760px) {
  .bp-mobile-nav-scrim { visibility: hidden; }
  body:is(.bp-mobile-nav-open, .bp-context-nav-open) .bp-mobile-nav-scrim { visibility: visible; }
}
