:root {
  --sb-sidebar-width: 13.75rem;
  --action-primary: #6d4aff;
  --focus-ring: #2563eb;
  --status-danger: #b42318;
}

/* Event sections are separate, durable URLs. Let supporting browsers carry the
   shared shell across those document navigations instead of flashing a blank
   page while the destination initializes. */
@view-transition { navigation: auto; }

.sb-app-shell {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}
.sb-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;
  width: var(--sb-sidebar-width);
  display: flex;
  flex-direction: column;
  gap: .85rem;
  overflow: hidden;
  padding: .9rem .75rem 1rem;
  border-right: 1px solid #e4e7ec;
  background: #ffffff;
  color: #182230;
  transition: width .18s ease;
}
.sb-app-brand {
  min-height: 2.65rem;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding-inline: .45rem;
  color: #182230;
  font-weight: 700;
  letter-spacing: -.02em;
  text-decoration: none;
}
.sb-app-brand__mark {
  width: 2rem;
  height: 2rem;
  display: block;
  flex: 0 0 auto;
  border-radius: .55rem;
  box-shadow: 0 .4rem 1rem rgba(109,74,255,.22);
  object-fit: contain;
}
.sb-app-brand__text { display: grid; gap: .05rem; }
.sb-app-brand__text strong { color: #182230; font-size: .875rem; }
.sb-app-brand__text small { color: #667085; font-size: .75rem; font-weight: 600; }
.sb-sidebar__group { display: grid; gap: .3rem; }
.sb-sidebar__primary {
  flex: 0 0 auto;
  padding: .7rem .35rem;
  border: 1px solid #e5e9f0;
  border-radius: .75rem;
  background: #fafbfd;
}
.sb-sidebar__utility { flex: 0 0 auto; padding: 0 .35rem; }
.sb-sidebar__event {
  min-height: 0;
  flex: 1 1 auto;
  align-content: start;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: .75rem .15rem .35rem 0;
  border-top: 1px solid #eaecf0;
}
.sb-sidebar__label { margin: 0 0 .2rem; padding: 0 .62rem; color: #667085; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.sb-sidebar__nav { display: grid; gap: .18rem; }
.sb-sidebar__section {
  margin: .65rem .62rem .12rem;
  color: #667085;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.sb-sidebar__nav a {
  width: 100%;
  min-height: 2.3rem;
  display: grid;
  grid-template-columns: 1.15rem minmax(0, 1fr);
  align-items: center;
  justify-content: start;
  gap: .62rem;
  padding: .46rem .62rem;
  border-radius: .5rem;
  color: #475467;
  font-size: .875rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
}
.sb-sidebar__nav a > span { min-width: 0; text-align: left; }
.sb-sidebar__nav a:hover { background: #f2f4f7; color: #182230; }
.sb-sidebar__nav a[aria-current="page"] { background: linear-gradient(90deg, #f0ebff, #edf3ff); color: #5b35d5; box-shadow: inset 3px 0 var(--action-primary); }
.sb-nav-icon { width: 1.15rem; height: 1.15rem; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.sb-hub-tabs { display: flex; gap: .15rem; margin: 0 0 1.1rem; border-bottom: 1px solid #e4e7ec; overflow-x: auto; }
.sb-hub-tabs a { padding: .55rem .85rem; color: #667085; font-size: .875rem; font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.sb-hub-tabs a:hover { color: #182230; }
.sb-hub-tabs a[aria-current="page"] { color: #5b35d5; border-bottom-color: var(--action-primary); }
.sb-hub-tabs a:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; border-radius: .35rem; }


.sb-topbar {
  view-transition-name: sessionbuddy-topbar;
  position: fixed;
  inset: 0 0 auto var(--sb-sidebar-width);
  z-index: 90;
  isolation: isolate;
  min-height: 4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .7rem 2rem;
  border-bottom: 1px solid #e8e5f4;
  background: rgba(250,249,255,.94);
  color: #182230;
  backdrop-filter: blur(10px);
}
.sb-topbar__title { min-width: 0; display: grid; gap: .08rem; }
.sb-topbar__title span { color: #667085; font-size: .75rem; font-weight: 600; }
.sb-topbar__title strong { overflow: hidden; color: #182230; font-size: 1rem; text-overflow: ellipsis; white-space: nowrap; }
.sb-menu-button { display: none; }
.sb-account { position: relative; z-index: 1; flex: 0 0 auto; margin: 0 0 0 auto; padding: 0; border: 0; background: transparent; }
.sb-account summary {
  min-height: 3rem;
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .38rem .5rem .38rem .42rem;
  border: 1px solid #ded9ec;
  border-radius: .7rem;
  color: #182230;
  cursor: pointer;
  list-style: none;
}
.sb-account summary::-webkit-details-marker { display: none; }
.sb-account summary:hover,
.sb-account[open] summary { border-color: #cfc4f4; background: #fff; box-shadow: 0 .2rem .7rem rgba(16,24,40,.06); }
.sb-account__avatar {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #ed62bd, #8247ed);
  color: white;
  box-shadow: 0 .3rem .8rem rgba(130,71,237,.2);
  font-size: .75rem;
  font-weight: 700;
}
.sb-account__identity { min-width: 0; display: grid; text-align: left; }
.sb-account__identity strong { max-width: 13rem; overflow: hidden; color: #26334a; font-size: .875rem; text-overflow: ellipsis; white-space: nowrap; }
.sb-account__identity strong span { color: #667085; font-weight: 500; }
.sb-account summary > .sb-nav-icon { width: .9rem; height: .9rem; margin-left: .08rem; color: #667085; transition: transform .16s ease; }
.sb-account[open] summary > .sb-nav-icon { transform: rotate(180deg); }
.sb-account__menu {
  position: absolute;
  z-index: 1;
  top: calc(100% + .55rem);
  right: 0;
  width: min(20.5rem, calc(100vw - 1rem));
  display: grid;
  gap: .18rem;
  padding: .65rem;
  border: 1px solid #e1e4ea;
  border-radius: .9rem;
  background: white;
  box-shadow: 0 1rem 2.5rem rgba(16,24,40,.16), 0 .2rem .6rem rgba(16,24,40,.05);
}
.sb-account__menu-title { margin: .25rem .45rem .35rem; color: #172033; font-size: 1rem; font-weight: 700; }
.sb-account__menu-header { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); align-items: center; gap: .7rem; padding: .55rem .55rem .8rem; border-bottom: 1px solid #e9e7ef; }
.sb-account__menu-avatar { width: 2.5rem; height: 2.5rem; }
.sb-account__menu-identity { min-width: 0; display: grid; gap: .12rem; }
.sb-account__menu-header strong { overflow: hidden; color: #172033; font-size: .875rem; text-overflow: ellipsis; white-space: nowrap; }
.sb-account__menu-header .sb-account__menu-identity > span { overflow: hidden; color: #667085; font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.sb-role-switcher { display: grid; gap: .18rem; margin: 0 .1rem .4rem; padding: .45rem 0 .5rem; border-bottom: 1px solid #e9e7ef; }
.sb-role-switcher__label { margin: .25rem .55rem .2rem; color: #667085; font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.sb-role-option {
  position: relative;
  min-height: 3.15rem;
  display: grid;
  grid-template-columns: 1.2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .65rem;
  width: 100%;
  padding: .65rem .7rem;
  border: 0;
  border-radius: .5rem;
  background: transparent;
  color: #26334a;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.sb-role-option:hover { background: #f4f2fb; }
.sb-role-option[aria-disabled="true"] { background: #f7f5ff; color: #5934cb; cursor: default; }
.sb-role-option > .sb-nav-icon { width: 1.1rem; height: 1.1rem; color: #7a6a9b; }
.sb-role-option__copy { min-width: 0; display: grid; gap: .1rem; }
.sb-role-option__copy strong { font-size: .875rem; font-weight: 700; }
.sb-role-option__copy small { overflow: hidden; color: #667085; font-size: .75rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.sb-role-option__check { width: 1.25rem; height: 1.25rem; display: grid; place-items: center; border-radius: 50%; background: var(--action-primary); color: white; }
.sb-role-option__check .sb-nav-icon { width: .76rem; height: .76rem; stroke-width: 2.4; }
.sb-role-option__status { display: inline-flex; align-items: center; gap: .35rem; color: var(--action-primary); font-size: .75rem; font-weight: 700; }
.sb-visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; clip-path: inset(50%) !important; }
.sb-account__menu a,
.sb-account__sign-out {
  min-height: 2.65rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .65rem;
  width: 100%;
  padding: .65rem .72rem;
  border: 0;
  border-radius: .5rem;
  background: transparent;
  color: #26334a;
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.sb-account__menu a:hover,
.sb-account__sign-out:hover { background: #edf1f7; color: #172033; }
.sb-account summary:focus-visible,
.sb-account__menu :where(a, button):focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.sb-account__sign-out { margin-top: .18rem; border-top: 1px solid #e3e8f0; border-radius: 0 0 .45rem .45rem; color: var(--status-danger); }
.sb-nav-backdrop { display: none; }

.sb-global-brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-right: auto;
  color: #182230;
  font-size: 1rem;
  letter-spacing: -.02em;
  text-decoration: none;
}
.sb-global-nav { min-width: 0; align-self: stretch; display: flex; flex-wrap: nowrap; align-items: stretch; gap: clamp(.9rem,2vw,1.7rem); margin-left: clamp(1rem,3vw,3rem); }
.sb-global-nav a {
  position: relative;
  min-height: 100%;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .2rem .05rem 0;
  border-radius: 0;
  color: #475467;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.sb-global-nav a::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; border-radius: 2px 2px 0 0; background: var(--action-primary); content: ""; opacity: 0; transform: scaleX(.45); transition: opacity .16s ease, transform .16s ease; }
.sb-global-nav a:hover { color: #5b35d5; }
.sb-global-nav a[aria-current="page"] { color: #5b35d5; }
.sb-global-nav a[aria-current="page"]::after { opacity: 1; transform: scaleX(1); }
.sb-global-nav .sb-nav-icon { width: 1.05rem; height: 1.05rem; }
.sb-topbar__brand-space { width: 7.75rem; flex: 0 0 auto; }
.sb-sidebar__mobile-global { display: none; }

.sb-event-nav {
  view-transition-name: sessionbuddy-event-navigation;
  position: fixed;
  z-index: 89;
  top: 4.5rem;
  right: 0;
  left: 0;
  min-height: 3.45rem;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: .2rem;
  padding: .42rem clamp(1.25rem, 3vw, 3rem);
  flex-wrap: wrap;
  align-content: center;
  overflow: hidden;
  border-bottom: 1px solid #e5e7ee;
  background: rgba(249,250,252,.97);
}
.sb-event-nav a {
  position: relative;
  min-height: 2.55rem;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .5rem;
  padding: .55rem .72rem;
  border-radius: .55rem;
  color: #566174;
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.sb-event-nav a:hover { background: #f0eef9; color: #4233a3; }
.sb-event-nav a[aria-current="page"] { background: #ebe7fb; color: #4e39bf; }
.sb-event-nav .sb-nav-icon { width: 1rem; height: 1rem; }

@media (max-width: 60rem) {
  .sb-event-nav { min-height: 6.35rem; justify-content: flex-start; padding-block: .38rem; }
  .sb-event-nav a { min-height: 2.35rem; padding: .42rem .58rem; font-size: .75rem; }
  .app-body.sb-shell-authenticated.sb-shell-event > main.shell { padding-top: 12.35rem; }
}

.sb-shell-global .sb-sidebar { display: none; }
.sb-shell-global .sb-topbar { left: 0; min-height: 4.5rem; padding: 0 clamp(1.25rem, 3vw, 3rem); border-color: #e9e5f2; background: rgba(255,255,255,.96); }
.sb-shell-global .sb-topbar .sb-global-brand { font-size: 1rem; font-weight: 800; }
.sb-shell-global .sb-topbar .sb-account { margin-left: auto; }
.sb-shell-single .sb-topbar { left: 0; min-height: 4.5rem; padding: 0 clamp(1rem, 3vw, 2rem); background: rgba(255,255,255,.96); }
.sb-shell-single .sb-topbar .sb-global-brand { flex: 0 0 auto; font-size: 1rem; font-weight: 800; }
.sb-shell-single .sb-topbar .sb-topbar__title { padding-left: 1rem; border-left: 1px solid #dfe4ec; }
.sb-shell-single .sb-topbar .sb-account { margin-left: auto; }
.app-body.sb-shell-authenticated.sb-shell-global > main.shell {
  width: min(90rem, 100%);
  margin-inline: auto;
}
.app-body.sb-shell-authenticated.sb-shell-event > main.shell { padding-top: 9.5rem; }
.app-body.sb-shell-authenticated.sb-shell-global > #root {
  width: min(90rem, 100%);
  margin-inline: auto;
}
.app-body.sb-shell-authenticated.sb-shell-single > main.shell {
  width: min(76rem, calc(100% - 2rem));
  margin-inline: auto;
}
.app-body.sb-shell-authenticated.sb-shell-single > #root { margin-left: 0; }

.app-body.sb-shell-authenticated > main.shell {
  width: auto;
  max-width: none;
  min-height: 100vh;
  margin: 0 0 0 var(--sb-sidebar-width);
  padding: 5.75rem clamp(1.25rem, 3vw, 3rem) 3.5rem;
}
.app-body.sb-shell-authenticated > #root { min-height: 100vh; margin-left: var(--sb-sidebar-width); padding-top: 4rem; }
.app-body.sb-shell-authenticated > #root > main { width: auto; max-width: none; margin: 0; padding: clamp(1.5rem, 3vw, 3rem); }
/* Scroll offsets are derived from the chrome height, never written as a
   literal: an offset even slightly smaller than the chrome it must clear parks
   the scrolled-to element behind that chrome, and scrolling it into view again
   cannot recover it. Pages that stack their own sticky bars below the shell
   raise --sb-scroll-offset (see .cfp-page in product.css). */
.app-body.sb-shell-authenticated { scroll-padding-top: var(--sb-scroll-offset); }
.app-body.sb-shell-authenticated :where(button, a, input, select, textarea, summary) { scroll-margin-top: var(--sb-scroll-offset); }

.sb-guest-header { border-bottom: 1px solid #e4e7ec; background: white; color: #182230; }
.sb-guest-header__inner { width: min(76rem, calc(100% - 2rem)); min-height: 4.5rem; display: flex; align-items: center; margin-inline: auto; }
.sb-guest-sign-in { margin-left: auto; color: #1d4ed8; font-weight: 600; }
.sb-landing-account { display: flex; align-items: center; gap: .25rem; }
.sb-landing-account > a { min-height: 2.7rem; display: inline-flex; align-items: center; padding: .58rem .72rem; border-radius: .5rem; color: inherit; font-size: .875rem; font-weight: 600; text-decoration: none; }
.sb-landing-account .sb-account summary { color: inherit; }
.sb-landing-account .sb-account__identity { display: none; }

@media (max-width: 52rem) {
  .sb-sidebar { transform: translateX(-105%); transition: transform .2s ease; }
  .sb-navigation-open .sb-sidebar { transform: translateX(0); }
  .sb-shell-global .sb-sidebar { display: flex; }
  .sb-global-nav { display: none; }
  .sb-topbar__brand-space { display: none; }
  .sb-sidebar__mobile-global { display: block; }
  .sb-topbar { left: 0; padding-inline: 1rem; }
  .sb-shell-single .sb-topbar__title { display: none; }
  .sb-menu-button {
    width: 2.65rem;
    height: 2.65rem;
    display: grid;
    place-content: center;
    gap: .25rem;
    padding: 0;
    border: 1px solid #d7dde7;
    border-radius: .62rem;
    background: white;
  }
  .sb-menu-button:hover { background: #f2f5f9; }
  .sb-menu-button span { width: 1.1rem; height: 2px; display: block; border-radius: 1rem; background: #26334a; }
  .sb-nav-backdrop { position: fixed; inset: 0; z-index: 95; border: 0; background: rgba(8, 16, 30, .48); backdrop-filter: blur(2px); }
  .sb-navigation-open .sb-nav-backdrop { display: block; }
  .app-body.sb-shell-authenticated > main.shell { margin-left: 0; padding-top: 5.5rem; }
  .app-body.sb-shell-authenticated.sb-shell-event > main.shell { padding-top: 12.1rem; }
  .app-body.sb-shell-authenticated > #root { margin-left: 0; }
}
@media (max-width: 34rem) {
  .sb-topbar__title span { display: none; }
  .sb-account__identity { display: none; }
  .sb-account__menu { position: fixed; top: 4.4rem; right: .5rem; left: .5rem; width: auto; max-height: calc(100dvh - 5rem); overflow-y: auto; }
  .sb-sidebar { width: min(18rem, calc(100vw - 3rem)); }
  .sb-guest-header__inner { width: calc(100% - 1rem); }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation-duration: .001ms; }
  .sb-sidebar { transition: none; }
  .sb-global-nav a::after,
  .sb-account summary > .sb-nav-icon { transition: none; }
  .sb-app-shell * { scroll-behavior: auto !important; }
}

/* Height of the fixed shell chrome (topbar + event nav), published so page
   styles can pin sticky elements directly beneath it. Values mirror the
   `> main.shell` padding-top declarations above and below. */
.app-body.sb-shell-authenticated { --sb-chrome-top: 4.5rem; --sb-scroll-offset: var(--sb-chrome-top); }
.app-body.sb-shell-authenticated.sb-shell-event { --sb-chrome-top: 9.5rem; }
@media (max-width: 60rem) {
  .app-body.sb-shell-authenticated.sb-shell-event { --sb-chrome-top: 12.35rem; }
}
@media (max-width: 52rem) {
  .app-body.sb-shell-authenticated { --sb-chrome-top: 5.5rem; }
  .app-body.sb-shell-authenticated.sb-shell-event { --sb-chrome-top: 12.1rem; }
}
