:root {
  --public-roster-ink: #111820;
  --public-roster-muted: #657382;
  --public-roster-line: #d8e0e4;
  --public-roster-paper: #f3f4f6;
}

/* Keep every session card compact even when another session's roster is open. */
#apply .public-session-day-track {
  align-items: start !important;
}

#apply .public-session-day-track > .session-card {
  align-self: start !important;
  height: auto !important;
  cursor: default;
}

#apply .public-roster-trigger {
  grid-column: 1 / -1;
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 0;
  padding: 9px 12px;
  border: 1px solid rgba(17, 24, 32, .12);
  border-radius: 11px;
  background: rgba(255, 255, 255, .88);
  color: var(--public-roster-ink);
  font: inherit;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

#apply .public-roster-trigger:hover {
  border-color: rgba(17, 24, 32, .24);
  background: #fff;
}

#apply .public-roster-trigger:focus-visible {
  outline: 3px solid rgba(35, 166, 213, .34);
  outline-offset: 2px;
}

#apply .public-roster-trigger[aria-expanded="true"] {
  border-color: rgba(255, 210, 30, .8);
  box-shadow: 0 0 0 3px rgba(255, 210, 30, .16);
}

.public-roster-trigger-main,
.public-roster-trigger-count {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.public-roster-trigger-main {
  gap: 8px;
}

.public-roster-trigger-main::before {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--spomo-cyan, #23a6d5);
  box-shadow: 0 0 0 4px rgba(35, 166, 213, .12);
  content: "";
}

.public-roster-trigger-count {
  flex: 0 0 auto;
  gap: 7px;
  color: var(--public-roster-muted);
  font-size: 12px;
  white-space: nowrap;
}

.public-roster-trigger-count::after {
  color: var(--public-roster-ink);
  font-size: 18px;
  line-height: 1;
  content: "›";
}

.public-roster-backdrop {
  position: fixed;
  z-index: 210;
  top: var(--public-roster-visual-viewport-top, 0px);
  right: 0;
  bottom: auto;
  left: 0;
  display: flex;
  height: var(--public-roster-visual-viewport-height, 100dvh);
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(9, 16, 23, .34);
  -webkit-backdrop-filter: blur(10px) saturate(108%);
  backdrop-filter: blur(10px) saturate(108%);
}

.public-roster-sheet {
  display: grid;
  width: 100%;
  max-height: min(86dvh, calc(var(--public-roster-visual-viewport-height, 100dvh) - 8px));
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .82);
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  background: rgba(255, 255, 255, .985);
  color: var(--public-roster-ink);
  box-shadow: 0 -18px 56px rgba(4, 12, 20, .2);
  transform-origin: bottom center;
  animation: public-roster-sheet-in 180ms cubic-bezier(.2, .8, .2, 1);
}

.public-roster-sheet:focus {
  outline: none;
}

.public-roster-grabber {
  width: 34px;
  height: 4px;
  margin: 8px auto 0;
  border-radius: 999px;
  background: #c8cfd4;
}

.public-roster-head {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 12px 10px;
  border: 0;
  position: relative;
  inset: auto;
  z-index: auto;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}

.public-roster-heading {
  min-width: 0;
}

.public-roster-eyebrow {
  display: block;
  margin-bottom: 2px;
  color: #137da5;
  font-size: 8.5px;
  line-height: 1.2;
  font-weight: 950;
  letter-spacing: .1em;
}

.public-roster-head h2 {
  margin: 0;
  color: var(--public-roster-ink);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 950;
  letter-spacing: -.02em;
}

.public-roster-head p {
  display: grid;
  gap: 1px;
  margin: 4px 0 0;
  color: var(--public-roster-muted);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.public-roster-schedule {
  color: var(--public-roster-muted);
  font-size: 10.5px;
  font-weight: 680;
}

.public-roster-close {
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(226, 231, 235, .92) 0 15px, transparent 16px);
  color: #27333d;
  font: inherit;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.public-roster-close:hover {
  background: radial-gradient(circle at center, rgba(216, 222, 226, .96) 0 15px, transparent 16px);
}

.public-roster-close:focus-visible {
  outline: 3px solid rgba(35, 166, 213, .36);
  outline-offset: 2px;
}

.public-roster-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-bottom: 1px solid rgba(17, 24, 32, .08);
  background: rgba(246, 248, 249, .78);
}

.public-roster-stat {
  display: grid;
  min-width: 0;
  gap: 1px;
  padding: 7px 6px;
  background: transparent;
  text-align: center;
}

.public-roster-stat + .public-roster-stat {
  border-left: 1px solid rgba(17, 24, 32, .08);
}

.public-roster-stat span {
  color: var(--public-roster-muted);
  font-size: 8px;
  line-height: 1.2;
  font-weight: 850;
}

.public-roster-stat strong {
  color: var(--public-roster-ink);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.public-roster-scroll {
  min-height: 0;
  padding: 0 0 max(14px, env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.public-roster-panel {
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.public-roster-content {
  min-height: 0;
}

.public-roster-section {
  min-width: 0;
  margin: 0;
  background: transparent;
}

.public-roster-section + .public-roster-section {
  border-top: 1px solid rgba(17, 24, 32, .08);
}

.public-roster-section h3 {
  margin: 0;
  color: var(--public-roster-ink);
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: -.01em;
}

.public-roster-session-info {
  padding: 12px;
}

.public-roster-session-info p {
  margin: 5px 0 0;
  color: #4b5965;
  font-size: 12px;
  line-height: 1.52;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.public-roster-participants {
  padding-top: 11px;
}

.public-roster-participants > h3 {
  padding: 0 12px 8px;
}

.public-roster-member-note {
  margin: 0;
  padding: 11px 12px 12px;
  border-top: 1px solid rgba(255, 210, 30, .28);
  background: rgba(255, 210, 30, .1);
  color: #344352;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.public-roster-content .session-roster-composition {
  margin: 0 12px 8px;
  border-radius: 10px;
}

.public-roster-list {
  overflow: hidden;
  border: 0;
  border-top: 1px solid rgba(17, 24, 32, .08);
  border-radius: 0;
  background: transparent;
}

.public-roster-content .applicant-row {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  margin: 0;
  padding: 8px 12px;
  border: 0;
  border-bottom: 1px solid #e4e9ec;
  border-radius: 0;
  background: transparent;
  box-sizing: border-box;
}

.public-roster-content .applicant-row:last-child {
  border-bottom: 0;
}

.public-roster-content .applicant-row b {
  grid-column: 1;
  min-width: 0;
  color: var(--public-roster-ink);
  font-size: 13.5px;
  line-height: 1.35;
  font-weight: 780;
  overflow-wrap: anywhere;
}

.public-roster-content .applicant-row-meta {
  grid-column: 1;
  min-width: 0;
  color: var(--public-roster-muted);
  font-size: 11.5px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.public-roster-content .applicant-row-status {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  justify-content: flex-end;
}

.public-roster-content .status,
.public-roster-content .tag {
  max-width: 128px;
  padding: 5px 8px;
  font-size: 10.5px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.public-roster-content .empty {
  min-height: 120px !important;
  border: 0;
  border-top: 1px solid rgba(17, 24, 32, .08);
  border-radius: 0;
  background: transparent;
}

.public-roster-content .empty .ghost {
  min-height: 44px;
  margin-top: 10px;
}

body.session-roster-open .support-widget {
  visibility: hidden;
  pointer-events: none;
}

@media (min-width: 721px) {
  .public-roster-backdrop {
    align-items: center;
    padding: 24px;
  }

  .public-roster-sheet {
    width: min(560px, 100%);
    max-height: calc(100dvh - 48px);
    border-bottom: 1px solid rgba(255, 255, 255, .82);
    border-radius: 24px;
    box-shadow: 0 28px 90px rgba(4, 12, 20, .3);
    transform-origin: center;
  }

  .public-roster-grabber {
    display: none;
  }

  .public-roster-head {
    padding-top: 18px;
  }
}

@media (max-width: 380px) {
  .public-roster-head {
    padding-inline: 12px;
  }

  .public-roster-stat {
    padding-inline: 5px;
  }
}

@keyframes public-roster-sheet-in {
  from { opacity: .72; transform: translateY(18px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .public-roster-sheet {
    animation: none;
  }
}
