/* Mobile-first: tight spacing for in-app screens (portrait-friendly) */
.content-body.product-app .container-fluid {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.content-body.product-app .card {
  margin-bottom: 0.5rem;
}

.content-body.product-app .card-header {
  padding: 0.5rem 0.75rem;
}

.content-body.product-app .card-body {
  padding: 0.65rem 0.75rem;
}

.content-body.product-app h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.content-body.product-app h4.card-title {
  font-size: 1rem;
  margin-bottom: 0;
}

.content-body.product-app .row {
  --bs-gutter-x: 0.5rem;
  --bs-gutter-y: 0.5rem;
}

.settings-toolbar .btn-icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50rem;
}

.settings-pane-primary label {
  color: rgba(255, 255, 255, 0.92);
}

.settings-pane-primary .helptext,
.settings-pane-primary ul.errorlist {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
}

.settings-pane-primary ul.errorlist {
  list-style: none;
  padding-left: 0;
}

/* Standalone auth / landing */
body.product-auth {
  margin: 0;
  min-height: 100vh;
  font-family: Poppins, system-ui, sans-serif;
  background: linear-gradient(160deg, #1e3fb4 0%, #5ad1ff 45%, #a02cfa 100%);
  color: #fff;
}

.product-auth .auth-shell {
  max-width: 26rem;
  margin: 0 auto;
  padding: 0.75rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-auth .auth-card {
  background: #fff;
  color: #212529;
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 0.35rem 1.25rem rgba(0, 0, 0, 0.15);
}

.product-auth .auth-card h1,
.product-auth .auth-card h2 {
  font-size: 1.25rem;
  margin-top: 0;
}

.product-auth .auth-card .form-control {
  font-size: 1rem;
}

.product-auth a {
  color: #1e3fb4;
}

/* Google Sign-In: brand-adjacent styling (white button, coloured G) */
.product-auth .btn-google-signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  background: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
  border-radius: 0.375rem;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 0.85rem;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.12);
  line-height: 1.25;
}

.product-auth .btn-google-signin:hover {
  background: #f8f9fa;
  color: #202124;
  border-color: #d2d3d4;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.18);
}

.product-auth .btn-google-signin:focus-visible {
  outline: 2px solid #4285f4;
  outline-offset: 2px;
}

.product-auth .btn-google-signin__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

/* Dashboard FullCalendar: trim gap under toolbar (default 1.5em), compact controls */
#dashboard-calendar-wrap {
  margin-top: 0;
}

.dashboard-cal-legend .dashboard-cal-legend-badge {
  min-width: 5.25rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-weight: 500;
}

#dashboard-calendar {
  --fc-today-bg-color: #e8f4fc;
}

#dashboard-calendar .fc {
  gap: 0;
}

/* Beats .fc .fc-toolbar.fc-header-toolbar { margin-bottom: 1.5em } */
#dashboard-calendar .fc .fc-toolbar.fc-header-toolbar {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0;
  padding-bottom: 0;
}

#dashboard-calendar .fc .fc-toolbar-chunk .fc-button {
  padding: 0.2rem 0.45rem;
  font-size: 0.8125rem;
}

#dashboard-calendar .fc .fc-view-harness {
  margin-top: 0 !important;
}

#dashboard-calendar .fc .fc-scrollgrid {
  border-top-width: 0;
  margin-top: 0 !important;
}

#dashboard-calendar .fc .fc-scrollgrid-section-header .fc-scroller {
  overflow: hidden !important;
}

#dashboard-calendar .fc .fc-col-header-cell {
  vertical-align: middle;
}

#dashboard-calendar .fc .fc-col-header-cell-cushion {
  padding: 0 2px 2px;
}

/* Today column: body uses --fc-today-bg-color; header via dayHeaderClassNames */
#dashboard-calendar .fc .fc-col-header-cell.dashboard-cal-header-today {
  background: #e8f4fc !important;
}

#dashboard-calendar .fc .fc-col-header-cell.dashboard-cal-header-today .fc-col-header-cell-cushion {
  background: transparent;
}

#dashboard-calendar .fc .fc-daygrid-day.fc-day-today {
  background-color: var(--fc-today-bg-color, #e8f4fc) !important;
}

.product-auth .text-on-gradient {
  text-align: center;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 6;
  opacity: 0.8;
}

.product-auth .text-on-gradient a {
  color: #fff;
  font-weight: 600;
  position: relative;
  z-index: 7;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

/* Full-screen landing: wallpaper, hockey balls, one-active credit (stacked & centred) */
body.product-auth.product-landing {
  min-height: 100vh;
  min-height: 100dvh;
  background:
    linear-gradient(
      160deg,
      rgba(12, 26, 74, 0.54) 0%,
      rgba(14, 42, 90, 0.32) 45%,
      rgba(6, 12, 34, 0.62) 100%
    ),
    var(--landing-bg, linear-gradient(160deg, #1e3fb4 0%, #5ad1ff 45%, #a02cfa 100%))
    center center / cover no-repeat fixed;
}

.product-landing .landing-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-landing .landing-credit {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: min(11rem, 42vw);
  max-width: calc(100vw - 2rem);
  padding: 0;
  pointer-events: none;
  text-align: center;
}

/* Pull logo up by one line height; text stacks on top (z-index) and sits over image top */
.product-landing .landing-credit-text {
  position: relative;
  z-index: 1;
  margin: 0 0 -1.2em;
  width: 100%;
  text-align: center;
  font-size: clamp(0.55rem, 2.5vw, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: #454545;
  line-height: 1.2;
  white-space: nowrap;
}

.product-landing .landing-credit-logo {
  position: relative;
  z-index: 0;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.15rem;
}

/* Bottom-right wordmark: Saira Stencil One (single/Google weight; tightened for condensed look) */
.product-landing .landing-brand-title {
  position: absolute;
  right: calc(0.75rem + 50px);
  bottom: calc(0.75rem + 50px);
  margin: 0;
  z-index: 5;
  font-family: "Saira Stencil One", system-ui, sans-serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(3rem, 11vw, 6.25rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  color: #bdbdbd;
  text-shadow: 0 0.06em 0.28em rgba(0, 0, 0, 0.5);
  pointer-events: none;
  user-select: none;
}

.product-landing .landing-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 1rem;
}

.product-landing .landing-ball-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.product-landing .landing-ball-top {
  align-self: center;
  z-index: 2;
  margin-bottom: -0.825rem;
}

.product-landing .landing-ball-bottom-row {
  display: flex;
  gap: 0;
  align-items: flex-start;
  position: relative;
  z-index: 1;
  justify-content: center;
}

.product-landing .landing-ball-btn {
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 50%;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.55), 0 0.15rem 0.4rem rgba(0, 0, 0, 0.4);
}

.product-landing .landing-ball-btn:hover {
  transform: translateY(-2px);
}

.product-landing .landing-ball-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

/* Landing balls: same dimple photo for all three; veil color tints (no separate colored source art). */
.product-landing {
  --landing-player-ball-veil-opacity: 0.62;
  --landing-coach-ball-veil-opacity: 0.74;
  --landing-register-ball-veil-opacity: 0.74;
}

.product-landing .landing-ball-core {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background-image:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.12) 28%, rgba(255, 255, 255, 0) 38%),
    radial-gradient(circle at 30% 32%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 14%),
    radial-gradient(circle at 24% 47%, rgba(4, 8, 24, 0.38) 0%, rgba(4, 8, 24, 0.14) 14%, rgba(4, 8, 24, 0) 22%),
    radial-gradient(circle at 21% 44%, rgba(255, 255, 255, 0.52) 0%, rgba(255, 255, 255, 0.12) 7%, rgba(255, 255, 255, 0) 13%),
    radial-gradient(circle at 49% 27%, rgba(4, 8, 24, 0.38) 0%, rgba(4, 8, 24, 0.14) 13%, rgba(4, 8, 24, 0) 21%),
    radial-gradient(circle at 46% 24%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.12) 7%, rgba(255, 255, 255, 0) 13%),
    radial-gradient(circle at 68% 41%, rgba(4, 8, 24, 0.38) 0%, rgba(4, 8, 24, 0.14) 14%, rgba(4, 8, 24, 0) 22%),
    radial-gradient(circle at 65% 38%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.12) 7%, rgba(255, 255, 255, 0) 13%),
    radial-gradient(circle at 36% 71%, rgba(4, 8, 24, 0.36) 0%, rgba(4, 8, 24, 0.12) 14%, rgba(4, 8, 24, 0) 22%),
    radial-gradient(circle at 33% 68%, rgba(255, 255, 255, 0.48) 0%, rgba(255, 255, 255, 0.1) 7%, rgba(255, 255, 255, 0) 13%),
    radial-gradient(circle at 75% 72%, rgba(4, 8, 24, 0.38) 0%, rgba(4, 8, 24, 0.14) 14%, rgba(4, 8, 24, 0) 22%),
    radial-gradient(circle at 72% 69%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.12) 7%, rgba(255, 255, 255, 0) 13%),
    radial-gradient(circle at 55% 57%, rgba(4, 8, 24, 0.34) 0%, rgba(4, 8, 24, 0.12) 13%, rgba(4, 8, 24, 0) 21%),
    radial-gradient(circle at 52% 54%, rgba(255, 255, 255, 0.46) 0%, rgba(255, 255, 255, 0.1) 7%, rgba(255, 255, 255, 0) 13%),
    radial-gradient(circle at 50% 82%, rgba(4, 8, 24, 0.32) 0%, rgba(4, 8, 24, 0.1) 13%, rgba(4, 8, 24, 0) 21%),
    radial-gradient(circle at 47% 79%, rgba(255, 255, 255, 0.44) 0%, rgba(255, 255, 255, 0.09) 7%, rgba(255, 255, 255, 0) 13%),
    radial-gradient(circle at 82% 55%, rgba(4, 8, 24, 0.34) 0%, rgba(4, 8, 24, 0.1) 13%, rgba(4, 8, 24, 0) 21%),
    radial-gradient(circle at 79% 52%, rgba(255, 255, 255, 0.44) 0%, rgba(255, 255, 255, 0.09) 7%, rgba(255, 255, 255, 0) 13%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 52%);
  box-shadow:
    inset 0 0.5rem 0.85rem rgba(255, 255, 255, 0.55),
    inset 0 -0.65rem 1.1rem rgba(0, 0, 0, 0.26),
    inset 0 0.18rem 0.25rem rgba(255, 255, 255, 0.32),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.36);
}

.product-landing .landing-ball-ring-text {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.product-landing .landing-ball-ring-label {
  fill: #000000;
  opacity: 0.95;
  font-size: 15.625px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: none;
}

/* Strip fake dimple gradients; photo + tinted veil below. */
.product-landing .landing-ball-player .landing-ball-core,
.product-landing .landing-ball-coach .landing-ball-core,
.product-landing .landing-ball-register .landing-ball-core {
  background: none;
  background-color: transparent;
  background-image: none;
  box-shadow: none;
}

.product-landing .landing-ball-player .landing-ball-core {
  border-color: rgba(255, 255, 255, 0.48);
}

.product-landing .landing-ball-coach .landing-ball-core {
  border-color: rgba(200, 150, 40, 0.5);
}

.product-landing .landing-ball-register .landing-ball-core {
  border-color: rgba(200, 70, 130, 0.45);
}

.product-landing .landing-ball-player .landing-ball-core::before,
.product-landing .landing-ball-coach .landing-ball-core::before,
.product-landing .landing-ball-register .landing-ball-core::before {
  content: "";
  position: absolute;
  inset: -3%;
  border-radius: 50%;
  z-index: 0;
  background: url("../img/hockey-ball-dimples.png") center / cover no-repeat;
}

.product-landing .landing-ball-player .landing-ball-core::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background-color: rgba(255, 255, 255, var(--landing-player-ball-veil-opacity, 0.62));
  box-shadow:
    inset 0 0.5rem 0.85rem rgba(255, 255, 255, 0.55),
    inset 0 -0.65rem 1.1rem rgba(0, 0, 0, 0.26),
    inset 0 0.18rem 0.25rem rgba(255, 255, 255, 0.32),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.36);
}

.product-landing .landing-ball-coach .landing-ball-core::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  border: 1px solid rgba(210, 160, 45, 0.55);
  background-color: rgb(255 216 77 / var(--landing-coach-ball-veil-opacity, 0.74));
  box-shadow:
    inset 0 0.5rem 0.85rem rgba(255, 248, 210, 0.5),
    inset 0 -0.65rem 1.1rem rgba(120, 85, 10, 0.22),
    inset 0 0.18rem 0.25rem rgba(255, 255, 230, 0.35),
    inset 0 0 0 1.5px rgba(255, 235, 160, 0.45);
}

.product-landing .landing-ball-register .landing-ball-core::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  border: 1px solid rgba(210, 90, 150, 0.5);
  background-color: rgb(255 120 194 / var(--landing-register-ball-veil-opacity, 0.74));
  box-shadow:
    inset 0 0.5rem 0.85rem rgba(255, 235, 250, 0.48),
    inset 0 -0.65rem 1.1rem rgba(120, 30, 70, 0.2),
    inset 0 0.18rem 0.25rem rgba(255, 220, 240, 0.38),
    inset 0 0 0 1.5px rgba(255, 190, 225, 0.42);
}

@media (max-width: 576px) {
  .product-landing .landing-main {
    padding: 0.75rem;
  }

  .product-landing .landing-ball-btn {
    width: 5.5rem;
    height: 5.5rem;
  }

  .product-landing .landing-ball-top {
    margin-bottom: -0.725rem;
  }

  .product-landing .landing-ball-ring-label {
    font-size: 13.125px;
    letter-spacing: 1.5px;
  }
}

/* Selector compile toolbar: one chevron, no double-arrow glitch */
.selector-compile-toolbar .form-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 14px 12px;
  padding-right: 2.25rem;
}

/* Narrow icon-only sidebars (player / coach / assessment) */
body.product-sidebar-compact #main-wrapper:not(.menu-toggle) .deznav.deznav-product {
  width: 4.5rem !important;
  min-width: 4.5rem !important;
  max-width: 4.5rem !important;
  transform: none;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Collapsed: slide strip off-canvas (theme mini mode did nothing — product CSS fixed width always) */
body.product-sidebar-compact #main-wrapper.menu-toggle .deznav.deznav-product {
  transform: translateX(-100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Theme .menu-toggle .deznav { width: 5rem } fights product rail — force hidden state */
body.product-sidebar-compact[data-layout="vertical"][data-sidebar-style="full"] #main-wrapper.menu-toggle .deznav.deznav-product {
  width: 4.5rem !important;
  min-width: 4.5rem !important;
  max-width: 4.5rem !important;
}

body.product-sidebar-compact #main-wrapper:not(.menu-toggle) .content-body {
  margin-left: 4.5rem !important;
}

body.product-sidebar-compact #main-wrapper.menu-toggle .content-body {
  margin-left: 0 !important;
}

/*
 * Collapsed rail: keep theme layout — narrow nav-header + header padding clears the logo strip.
 * Do NOT set nav-header width: 100% — it sits above .header (higher z-index) and hides the whole top bar.
 */
body.product-sidebar-compact[data-layout="vertical"] #main-wrapper.menu-toggle .header {
  padding-left: 6rem !important;
  width: 100% !important;
}

body.product-sidebar-compact[data-layout="vertical"] #main-wrapper.menu-toggle .nav-header {
  width: 5rem !important;
  max-width: 5rem !important;
}

body.product-sidebar-compact .deznav.deznav-product .metismenu.product-nav-icons > li {
  width: 100%;
  padding-left: 0 !important;
  padding-right: 0 !important;
  display: flex;
  justify-content: center;
}

body.product-sidebar-compact .deznav.deznav-product .metismenu > li > a.product-nav-link {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.52rem 0.22rem !important;
  margin: 0.06rem 0;
  border-radius: 0.35rem;
  border: 2px solid transparent;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

body.product-sidebar-compact .deznav.deznav-product .product-nav-svg,
body.product-sidebar-compact .deznav.deznav-product .product-nav-img {
  width: 2.832rem;
  height: 2.832rem;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

/* Sidebar img icons → brand blue #1E3FB4 (black-source SVGs) */
body.product-sidebar-compact .deznav.deznav-product .product-nav-img {
  filter: brightness(0) saturate(100%) invert(19%) sepia(78%) saturate(2800%) hue-rotate(211deg) brightness(0.92) contrast(1.05);
  overflow: visible;
}

/* Border-only hover; theme main.css uses solid #0B2A97 for .menu-toggle / mini icon bars (often active on tablet/phone). */
body.product-sidebar-compact .deznav.deznav-product .metismenu > li:hover > a.product-nav-link,
body.product-sidebar-compact .deznav.deznav-product .metismenu > li:focus > a.product-nav-link,
body.product-sidebar-compact .deznav.deznav-product .metismenu > li > a.product-nav-link:hover,
body.product-sidebar-compact .deznav.deznav-product .metismenu > li > a.product-nav-link:focus {
  background: transparent !important;
  color: #0d6efd !important;
  border-color: #0d6efd;
}

/* #main-wrapper.menu-toggle + theme [data-sidebar-style="full"] inject solid blue hover/active (main.css ~12736–12748) */
body.product-sidebar-compact .menu-toggle .deznav.deznav-product .metismenu > li:hover > a.product-nav-link,
body.product-sidebar-compact .menu-toggle .deznav.deznav-product .metismenu > li:focus > a.product-nav-link,
body.product-sidebar-compact[data-theme-version="dark"] .menu-toggle .deznav.deznav-product .metismenu > li:hover > a.product-nav-link,
body.product-sidebar-compact[data-theme-version="dark"] .menu-toggle .deznav.deznav-product .metismenu > li:focus > a.product-nav-link {
  background: transparent !important;
  color: #0d6efd !important;
  border-color: #0d6efd;
}

@media (min-width: 768px) {
  body.product-sidebar-compact[data-sidebar-style="mini"][data-layout="vertical"] .deznav.deznav-product .metismenu > li:hover > a.product-nav-link,
  body.product-sidebar-compact[data-sidebar-style="mini"][data-layout="vertical"] .deznav.deznav-product .metismenu > li:focus > a.product-nav-link,
  body.product-sidebar-compact[data-theme-version="dark"][data-sidebar-style="mini"][data-layout="vertical"] .deznav.deznav-product .metismenu > li:hover > a.product-nav-link,
  body.product-sidebar-compact[data-theme-version="dark"][data-sidebar-style="mini"][data-layout="vertical"] .deznav.deznav-product .metismenu > li:focus > a.product-nav-link {
    background: transparent !important;
    color: #0d6efd !important;
    border-color: #0d6efd;
    border-radius: 0.35rem;
    position: unset;
  }
}

body.product-sidebar-compact .deznav.deznav-product .metismenu > li:hover > a.product-nav-link .product-nav-svg,
body.product-sidebar-compact .deznav.deznav-product .metismenu > li:focus > a.product-nav-link .product-nav-svg,
body.product-sidebar-compact .deznav.deznav-product .metismenu > li > a.product-nav-link:hover .product-nav-svg {
  stroke: #0d6efd;
  color: #0d6efd;
}

body.product-sidebar-compact .deznav.deznav-product .metismenu > li:hover > a.product-nav-link .product-nav-img,
body.product-sidebar-compact .deznav.deznav-product .metismenu > li > a.product-nav-link:hover .product-nav-img {
  filter: brightness(0) saturate(100%) invert(27%) sepia(95%) saturate(3200%) hue-rotate(211deg) brightness(0.98) contrast(1.08);
  opacity: 1;
}

body.product-sidebar-compact .menu-toggle .deznav.deznav-product .metismenu > li:hover > a.product-nav-link .product-nav-svg,
body.product-sidebar-compact .menu-toggle .deznav.deznav-product .metismenu > li:focus > a.product-nav-link .product-nav-svg {
  stroke: #0d6efd;
  color: #0d6efd;
}

/* Theme mm-active uses a strong ::before bar + tint; soften for icon-only nav */
body.product-sidebar-compact .deznav.deznav-product .metismenu > li > a.product-nav-link:before {
  display: none !important;
}

body.product-sidebar-compact .deznav.deznav-product .metismenu > li.mm-active > a.product-nav-link {
  background: rgba(13, 110, 253, 0.3) !important;
  color: #0d6efd !important;
}

body.product-sidebar-compact .menu-toggle .deznav.deznav-product .metismenu > li.mm-active > a.product-nav-link,
body.product-sidebar-compact[data-theme-version="dark"] .menu-toggle .deznav.deznav-product .metismenu > li.mm-active > a.product-nav-link {
  background: rgba(13, 110, 253, 0.3) !important;
  color: #0d6efd !important;
  border-radius: 0.35rem;
}

@media (min-width: 768px) {
  body.product-sidebar-compact[data-sidebar-style="mini"][data-layout="vertical"] .deznav.deznav-product .metismenu > li.mm-active > a.product-nav-link,
  body.product-sidebar-compact[data-theme-version="dark"][data-sidebar-style="mini"][data-layout="vertical"] .deznav.deznav-product .metismenu > li.mm-active > a.product-nav-link {
    background: rgba(13, 110, 253, 0.3) !important;
    color: #0d6efd !important;
    border-radius: 0.35rem;
  }
}

body.product-sidebar-compact .deznav.deznav-product .metismenu > li.mm-active:hover > a.product-nav-link,
body.product-sidebar-compact .deznav.deznav-product .metismenu > li.mm-active:focus > a.product-nav-link {
  background: transparent !important;
  color: #0d6efd !important;
  border-color: #0d6efd;
}

body.product-sidebar-compact .menu-toggle .deznav.deznav-product .metismenu > li.mm-active:hover > a.product-nav-link,
body.product-sidebar-compact .menu-toggle .deznav.deznav-product .metismenu > li.mm-active:focus > a.product-nav-link {
  background: transparent !important;
  color: #0d6efd !important;
  border-color: #0d6efd;
}

@media (min-width: 768px) {
  body.product-sidebar-compact[data-sidebar-style="mini"][data-layout="vertical"] .deznav.deznav-product .metismenu > li.mm-active:hover > a.product-nav-link,
  body.product-sidebar-compact[data-sidebar-style="mini"][data-layout="vertical"] .deznav.deznav-product .metismenu > li.mm-active:focus > a.product-nav-link {
    background: transparent !important;
    color: #0d6efd !important;
    border-color: #0d6efd;
  }
}

body.product-sidebar-compact .deznav.deznav-product .metismenu > li.mm-active > a.product-nav-link .product-nav-svg {
  stroke: #0d6efd;
  color: #0d6efd;
}

body.product-sidebar-compact .menu-toggle .deznav.deznav-product .metismenu > li.mm-active > a.product-nav-link .product-nav-svg {
  stroke: #0d6efd;
  color: #0d6efd;
}

body.product-sidebar-compact .deznav.deznav-product .metismenu > li.mm-active > a.product-nav-link .product-nav-img {
  filter: brightness(0) saturate(100%) invert(27%) sepia(95%) saturate(3200%) hue-rotate(211deg) brightness(0.98) contrast(1.08);
}

body.product-sidebar-compact .content-body.coach-player-stats,
body.product-sidebar-compact .content-body.coach-assessments-page {
  min-height: 100vh;
  padding-bottom: 3rem;
}

/* Short pages: keep main column tall so the icon rail can use the full viewport height without clipping. */
body.product-sidebar-compact .content-body.product-app {
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: 2rem;
  box-sizing: border-box;
}

/* ~15% larger than default h3 (1.75rem) */
.coach-dashboard-title {
  font-size: 2.0125rem;
}

body.coach-dashboard-page .header .dashboard_bar {
  color: #1e3fb4;
  font-weight: 600;
  font-size: 1.125rem;
}

.teams-page #teams-player-search-results .list-group-item,
.teams-page #teams-player-search-results .list-group-item-action {
  color: #343a40;
}

.coach-player-stats .cps-raw-table .cps-raw-rowhead {
  max-width: 14rem;
  white-space: normal;
  font-weight: 500;
}

body.product-sidebar-compact .deznav.deznav-product .copyright,
body.product-sidebar-compact .deznav.deznav-product .add-menu-sidebar {
  display: none !important;
}

/*
 * Icon-only sidebars (e.g. assessment: items below State pin/map): theme uses large
 * padding-top + height:100% on .deznav-scroll, which can clip the last icons or prevent
 * inner scrolling. Bind height to the viewport and let .deznav-scroll flex + scroll.
 */
body.product-sidebar-compact .deznav.deznav-product {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  height: 100vh;
  max-height: 100vh;
}

body.product-sidebar-compact .deznav.deznav-product .deznav-scroll {
  flex: 1 1 auto;
  min-height: 0;
  height: auto !important;
  overflow-y: auto !important;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

body.product-sidebar-compact .deznav.deznav-product .metismenu.product-nav-icons {
  padding-bottom: 0.75rem;
}

@media (max-width: 767.98px) {
  body.product-sidebar-compact #main-wrapper .content-body {
    margin-left: 0 !important;
  }

  body.product-sidebar-compact .deznav.deznav-product {
    top: 5rem;
    height: calc(100vh - 5rem);
    max-height: calc(100vh - 5rem);
  }

  body.product-sidebar-compact .content-body.product-app {
    padding-bottom: 1.5rem;
  }
}

/* Player name search (squad assessments, coach player stats, etc.) */
.h0ckey-player-name-search.form-control {
  border-width: 2px;
  border-color: #495057;
}

.h0ckey-player-name-search.form-control:focus {
  border-color: #212529;
  box-shadow: 0 0 0 0.2rem rgba(33, 37, 41, 0.2);
}

/* Main content canvas: between body text and white; nav/header/sidebar/cards stay white */
body.product-sidebar-compact[data-layout="vertical"] {
  background-color: #e2e8f0 !important;
}

body.product-sidebar-compact[data-layout="vertical"] .content-body,
body.product-sidebar-compact[data-layout="vertical"][data-header-position="fixed"] .content-body {
  background-color: #e2e8f0 !important;
}

body.product-sidebar-compact[data-layout="vertical"] .filter.cm-content-box.box-primary,
body.product-sidebar-compact[data-layout="vertical"] .cm-content-box.box-primary {
  background: #fff !important;
}

/* Help icon: match header SVG blue (~22px path icons → ~2× FA solid default) */
.header .header-help-link,
.header .header-help-link.nav-link {
  color: #0b2a97 !important;
  min-width: 2.75rem;
  min-height: 2.75rem;
}

.header .header-help-icon,
.header .header-help-link .header-help-icon {
  font-size: 2.25rem !important;
  line-height: 1 !important;
  color: #0b2a97 !important;
  opacity: 1 !important;
  vertical-align: middle;
}

/*
 * Sidebar toggle: expanded rail → chevron-left; collapsed → hamburger (all viewports).
 * Mobile still uses the same hamburger when collapsed so the control is obvious.
 */
body.product-sidebar-compact #main-wrapper:not(.menu-toggle) .nav-control .product-sidebar-chevron--open {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: #0b2a97;
  font-size: 1.125rem;
}

body.product-sidebar-compact #main-wrapper:not(.menu-toggle) .nav-control .product-sidebar-chevron--closed {
  display: none !important;
}

body.product-sidebar-compact #main-wrapper:not(.menu-toggle) .nav-control .product-mobile-hamburger {
  display: none !important;
}

body.product-sidebar-compact #main-wrapper.menu-toggle .nav-control .product-sidebar-chevron--open {
  display: none !important;
}

/* Collapsed rail: show chevron-right (not hamburger) so it matches expand/collapse affordance */
body.product-sidebar-compact #main-wrapper.menu-toggle .nav-control .product-sidebar-chevron--closed {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: #0b2a97;
  font-size: 1.125rem;
}

body.product-sidebar-compact #main-wrapper.menu-toggle .nav-control .product-mobile-hamburger {
  display: none !important;
}

body.product-sidebar-compact .nav-control .hamburger:not(.product-mobile-hamburger) {
  display: none !important;
}

/* Expanded sidebar: show long mark only — theme leaves .logo-abbr visible beside .brand-title */
body.product-sidebar-compact[data-sidebar-style="full"][data-layout="vertical"]
  #main-wrapper:not(.menu-toggle)
  .nav-header
  .logo-abbr {
  display: none !important;
}

/* Keep toggle control above header chrome so chevron tip is not clipped */
body.product-sidebar-compact[data-layout="vertical"] .nav-header {
  overflow: visible;
}
body.product-sidebar-compact[data-layout="vertical"] .nav-control {
  z-index: 10050;
  background: transparent !important;
  box-shadow: none !important;
}

/* Comms Chat: inbox column + reading pane (split from md up); stacked on small screens */
body.product-sidebar-compact .messages-chat-stack {
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

@media (min-width: 768px) {
  body.product-sidebar-compact .messages-chat-stack {
    flex-direction: row;
    align-items: stretch;
    flex: 1 1 auto;
    min-height: 0;
  }
  body.product-sidebar-compact .messages-chat-list-pane {
    flex: 0 0 38%;
    max-width: 44%;
    border-right: 1px solid #e2e8f0;
  }
  body.product-sidebar-compact .messages-chat-thread-toolbar .messages-chat-back {
    display: none !important;
  }
}

@media (max-width: 767.98px) {
  body.product-sidebar-compact .messages-chat-thread-pane:not(.messages-chat-thread-pane--open) {
    display: none !important;
  }
  body.product-sidebar-compact .messages-chat-thread-pane.messages-chat-thread-pane--open {
    display: flex !important;
    flex-direction: column;
  }
}

@media (min-width: 768px) {
  body.product-sidebar-compact .messages-chat-thread-pane {
    display: flex !important;
    flex-direction: column;
    min-width: 0;
  }
}

/* Comms Notes: list + editor (same split idea as Chat) */
body.product-sidebar-compact .messages-comms-notes-stack {
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

@media (min-width: 768px) {
  body.product-sidebar-compact .messages-comms-notes-stack {
    flex-direction: row;
    align-items: stretch;
    flex: 1 1 auto;
    min-height: 0;
  }
  body.product-sidebar-compact .messages-comms-notes-list {
    flex: 0 0 38%;
    max-width: 44%;
  }
}

body.product-sidebar-compact .messages-comms-notes-editor {
  background: #fff;
}

body.product-sidebar-compact .messages-comms-note-textarea {
  color: #334155 !important;
}

/* Mail list / reading mid-gray for incoming bubbles (see mail-center .mail-list-sub / body tone) */
body.product-sidebar-compact .messages-chat-bubble--other .messages-chat-reading {
  color: #475569 !important;
}
body.product-sidebar-compact .messages-chat-bubble--other .messages-chat-meta {
  color: #64748b !important;
}
body.product-sidebar-compact .messages-chat-bubble--self .messages-chat-reading {
  color: rgba(255, 255, 255, 0.95);
}

/* Full-page Comms thread (same reading tone when product-mobile is loaded) */
.content-body.product-app .messages-chat-bubble--other .messages-chat-reading {
  color: #475569 !important;
}
.content-body.product-app .messages-chat-bubble--other .messages-chat-meta {
  color: #64748b !important;
}

body.product-sidebar-compact .messages-chat-thread-item.active {
  background-color: rgba(13, 110, 253, 0.12);
  border-left: 3px solid #0d6efd;
  padding-left: calc(0.75rem - 3px);
  color: #0f172a !important;
}
body.product-sidebar-compact .messages-chat-thread-item.active .fw-semibold,
body.product-sidebar-compact .messages-chat-thread-item.active .text-truncate {
  color: #0f172a !important;
}
body.product-sidebar-compact .messages-chat-thread-item.active .text-muted,
body.product-sidebar-compact .messages-chat-thread-item.active .small.text-muted {
  color: #475569 !important;
}

/* New message modal: align right edge to viewport; suggest dropdown under search */
body.product-sidebar-compact .messages-new-modal .modal-dialog.messages-new-modal__dialog {
  max-width: min(96vw, 52rem);
  width: auto;
  margin-left: auto;
  margin-right: max(0rem, env(safe-area-inset-right, 0px));
}
body.product-sidebar-compact .messages-new-modal .messages-new-modal__layout {
  min-height: min(70vh, 32rem);
}
body.product-sidebar-compact .messages-new-modal__addressbook {
  max-height: min(70vh, 32rem);
}
body.product-sidebar-compact .messages-address-book-caret {
  color: #0b2a97;
  letter-spacing: 0.08em;
}
body.product-sidebar-compact .messages-address-book-search-wrap .messages-address-book-suggest {
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  top: calc(100% + 2px);
  z-index: 25;
  max-height: calc(2.75rem * 5);
  overflow-y: auto;
  background: #fff;
}

/* Chat text inputs: dark gray text */
body.product-sidebar-compact textarea.messages-chat-input,
body.product-sidebar-compact .messages-chat-input.form-control,
.content-body.product-app textarea.messages-chat-input {
  color: #334155 !important;
}
body.product-sidebar-compact textarea.messages-chat-input::placeholder,
.content-body.product-app textarea.messages-chat-input::placeholder {
  color: #94a3b8;
  opacity: 1;
}

/* Send: green hover / press feedback */
body.product-sidebar-compact .btn-primary.messages-send-btn {
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.08s ease;
}
body.product-sidebar-compact .btn-primary.messages-send-btn:hover {
  background-color: #198754 !important;
  border-color: #157347 !important;
  color: #fff !important;
}
body.product-sidebar-compact .btn-primary.messages-send-btn:active {
  background-color: #146c43 !important;
  border-color: #13653f !important;
  transform: scale(0.98);
}

.content-body.product-app .btn-primary.messages-send-btn {
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.08s ease;
}
.content-body.product-app .btn-primary.messages-send-btn:hover {
  background-color: #198754 !important;
  border-color: #157347 !important;
  color: #fff !important;
}
.content-body.product-app .btn-primary.messages-send-btn:active {
  background-color: #146c43 !important;
  transform: scale(0.98);
}

/* Fill viewport column without forcing a tall min-height (was pushing tab content downward) */
body.product-sidebar-compact #headerMessagesOffcanvas .offcanvas-body.app-right-popout__body--comms {
  min-height: 0 !important;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Thread bubbles: align to top of scroll area (no extra top gap) */
body.product-sidebar-compact #headerMessagesOffcanvas .messages-panel-bubbles {
  padding-top: 0 !important;
}
body.product-sidebar-compact #headerMessagesOffcanvas .messages-panel-thread-inner {
  align-items: stretch;
}

/* Comms offcanvas: fill viewport height so Chat / Notes / Alerts panes align to the top (not vertically centered). */
body.product-sidebar-compact #headerMessagesOffcanvas.offcanvas {
  display: flex !important;
  flex-direction: column !important;
  height: 100%;
  max-height: 100vh;
}
body.product-sidebar-compact #headerMessagesOffcanvas .offcanvas-body.app-right-popout__body--comms {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
}
body.product-sidebar-compact #headerMessagesOffcanvas #messages-pane-notes,
body.product-sidebar-compact #headerMessagesOffcanvas #messages-pane-alerts,
body.product-sidebar-compact #headerMessagesOffcanvas #messages-pane-chat {
  justify-content: flex-start !important;
  align-content: flex-start !important;
  align-items: stretch !important;
}
body.product-sidebar-compact #headerMessagesOffcanvas #messages-pane-alerts > ul {
  flex: 0 1 auto !important;
}

body.product-sidebar-compact #headerMessagesOffcanvas .tab-content {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* Tab panes use d-flex — utility !important overrides Bootstrap’s display:none on inactive panes,
 * so all three panes were sharing height (Notes list clipped, Chat pushed down). Force hide. */
body.product-sidebar-compact #headerMessagesOffcanvas .tab-content > .tab-pane:not(.show) {
  display: none !important;
}
body.product-sidebar-compact #headerMessagesOffcanvas .tab-content > .tab-pane.show {
  display: flex !important;
  flex-direction: column !important;
}

body.product-sidebar-compact #headerMessagesOffcanvas .tab-content > .tab-pane {
  flex: 1 1 auto;
  min-height: 0 !important;
  justify-content: flex-start !important;
}

body.product-sidebar-compact #headerMessagesOffcanvas .messages-comms-notes-stack,
body.product-sidebar-compact #headerMessagesOffcanvas .messages-comms-notes-list,
body.product-sidebar-compact #headerMessagesOffcanvas .messages-chat-list-pane,
body.product-sidebar-compact #headerMessagesOffcanvas .messages-chat-stack {
  min-height: 0 !important;
}

/* Comms header: New button hover / active */
body.product-sidebar-compact .messages-comms-new-btn.btn-light:hover {
  background-color: #198754 !important;
  border-color: #198754 !important;
  color: #fff !important;
}
body.product-sidebar-compact .messages-comms-new-btn.btn-light:active {
  background-color: #146c43 !important;
  transform: scale(0.98);
}
body.product-sidebar-compact .messages-comms-new-btn.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.95) !important;
  color: #198754 !important;
  border-color: rgba(255, 255, 255, 0.95) !important;
}

/* Comms nav icon: numeric badge (threads where last message is from someone else) */
body.product-sidebar-compact .header-messages-trigger .comms-nav-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 1.125rem;
  min-height: 1.125rem;
  padding: 0 4px;
  font-size: 0.65rem;
  line-height: 1.125rem;
  text-align: center;
  border-radius: 999px;
  background: #ffc107;
  color: #0f172a;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.15);
}

/* Widen Comms offcanvas (~90% of viewport minus icon sidebar rail) */
body.product-sidebar-compact .messages-panel-offcanvas.offcanvas-end.messages-panel-offcanvas--expanded {
  width: calc((100vw - 5.5rem) * 0.9) !important;
  max-width: none !important;
}
@media (max-width: 991.98px) {
  body.product-sidebar-compact .messages-panel-offcanvas.offcanvas-end.messages-panel-offcanvas--expanded {
    width: min(94vw, calc((100vw - 1rem) * 0.9)) !important;
  }
}

/* Expand control in Comms offcanvas header (chevron before title) */
body.product-sidebar-compact .messages-panel-expand-toggle--header {
  position: relative;
  width: 1.75rem;
  height: 1.75rem;
  min-height: 0;
  padding: 0;
  border: none;
  border-radius: 0.35rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}
body.product-sidebar-compact .messages-panel-expand-toggle--header:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
body.product-sidebar-compact .messages-panel-expand-toggle--header:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

/* Timeline date filter (header strip) */
body.product-sidebar-compact .timeline-date-filter-input {
  max-width: 11rem;
  color: #334155 !important;
  background: #fff;
}

/*
 * Right popout (app-right-popout) — chrome borrowed from theme .chatbox (main.css ~13762–13811):
 * panel shadow, #0B2A97 header/tab strip, white uppercase tabs, dark body variant.
 */
/* Comms offcanvas must stay fixed to the right; never in document flow when open/closed */
body.product-sidebar-compact #headerMessagesOffcanvas.offcanvas {
  position: fixed !important;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto !important;
  z-index: 1045;
}

/* ~30% viewport on desktop (capped), full-width-friendly on small screens */
body.product-sidebar-compact .app-right-popout.offcanvas-end {
  width: min(100vw - 1rem, 28rem) !important;
  max-width: 100%;
  border: none !important;
  box-shadow: 0 0 30px 0 rgba(82, 63, 105, 0.15);
}

@media (min-width: 992px) {
  body.product-sidebar-compact .app-right-popout.offcanvas-end {
    width: min(100vw - 2rem, 30vw, 36rem) !important;
  }
}

body.product-sidebar-compact .app-right-popout .offcanvas-body {
  background: #fff;
}

/* Single content canvas under tabs (meets active tab “sheet”) */
body.product-sidebar-compact #headerMessagesOffcanvas .tab-content {
  background: #fff;
}

body.product-sidebar-compact #headerMessagesOffcanvas .dropdown-menu {
  z-index: 1080;
}

/* Message bubble star colors (Comms + full-page chat) */
.messages-star-c1 {
  color: #eab308 !important;
}
.messages-star-c2 {
  color: #f97316 !important;
}
.messages-star-c3 {
  color: #ef4444 !important;
}
.messages-star-c4 {
  color: #3b82f6 !important;
}
.messages-star-c5 {
  color: #a855f7 !important;
}
.messages-msg-star.messages-star-c1 {
  color: #ca8a04 !important;
}
.messages-msg-star.messages-star-c2 {
  color: #ea580c !important;
}
.messages-msg-star.messages-star-c3 {
  color: #dc2626 !important;
}
.messages-msg-star.messages-star-c4 {
  color: #2563eb !important;
}
.messages-msg-star.messages-star-c5 {
  color: #9333ea !important;
}

.content-body.product-app .messages-chat-actions-root .dropdown-menu {
  z-index: 1060;
}

/* Chevron + menu: top-right inside bubble; white chevron layer 25% larger behind green + white stroke */
.messages-msg-toolbar-dropdown.messages-bubble-corner-dropdown {
  position: absolute;
  top: 0.2rem;
  right: 0.25rem;
  z-index: 3;
}
.messages-chat-bubble--has-menu {
  padding-right: 2rem !important;
  overflow: visible;
}
.messages-bubble-chevron-btn {
  border: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
  line-height: 1;
  min-width: 1.35rem;
  min-height: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.messages-bubble-chevron-btn:focus,
.messages-bubble-chevron-btn:active {
  border: none !important;
  box-shadow: none !important;
}
.messages-bubble-chevron-stack {
  position: relative;
  display: block;
  width: 1em;
  height: 1em;
  font-size: 0.95rem;
}
.messages-bubble-chevron-bg {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1.25);
  font-size: 1em;
  color: #fff;
  z-index: 0;
  line-height: 1;
}
.messages-bubble-chevron-fg {
  position: relative;
  z-index: 1;
  font-size: 1em;
  font-weight: 900;
  color: #00e676;
  line-height: 1;
  -webkit-text-stroke: 1.5px #fff;
  paint-order: stroke fill;
}
.messages-chat-bubble--self .messages-bubble-chevron-bg {
  color: rgba(255, 255, 255, 0.35);
}
.messages-chat-bubble--self .messages-bubble-chevron-fg {
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.95);
  color: #b9f6ca;
}
/* Thin column: ~reply icon (1.5rem) + 5px — flyouts open to the left so grids fit */
.messages-bubble-actions-menu.messages-bubble-actions-menu--toolbar.dropdown-menu {
  min-width: calc(1.5rem + 5px) !important;
  max-width: calc(1.5rem + 8px);
  padding: 0.2rem 0.15rem !important;
  overflow: visible !important;
}
.messages-bubble-actions-menu--toolbar > li {
  padding-left: 0.15rem !important;
  padding-right: 0.15rem !important;
  overflow: visible !important;
}
/* Hover bridge: pointer path from primary to left-docked flyout (avoids losing :hover in the gap) */
.messages-bubble-actions-menu--toolbar .messages-menu-emoji-wrap,
.messages-bubble-actions-menu--toolbar .messages-menu-star-wrap {
  position: relative;
  overflow: visible !important;
}
.messages-bubble-actions-menu--toolbar .messages-menu-emoji-wrap::after,
.messages-bubble-actions-menu--toolbar .messages-menu-star-wrap::after {
  content: "";
  position: absolute;
  right: 100%;
  top: 0;
  width: 12px;
  height: 100%;
  min-height: 2.25rem;
  z-index: 1088;
}
.messages-bubble-actions-menu--toolbar .messages-bubble-action-icon {
  font-size: 1.5rem;
  line-height: 1;
  padding-left: 0.15rem !important;
  padding-right: 0.15rem !important;
}
.messages-bubble-actions-menu--toolbar .messages-bubble-action-icon i {
  font-size: 1em;
}
/* Lighter surfaces (~half again vs prior): subtle “thin menu” */
.messages-bubble-actions-menu--toolbar .messages-menu-emoji-primary,
.messages-bubble-actions-menu--toolbar .messages-menu-star-primary {
  min-height: 2.25rem !important;
  padding: 0.1rem 0.15rem !important;
  font-size: 1.35rem !important;
  line-height: 1 !important;
  background-color: rgba(248, 249, 250, 0.14) !important;
  border-color: rgba(0, 0, 0, 0.04) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.messages-bubble-actions-menu--toolbar .messages-menu-star-primary i {
  font-size: 1.25rem;
  line-height: 1;
  display: block;
}
.messages-bubble-actions-menu--toolbar .dropdown-item.messages-bubble-action-icon {
  background-color: rgba(248, 249, 250, 0.14) !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  border-radius: 0.25rem;
}
.messages-bubble-actions-menu--toolbar .dropdown-item.messages-bubble-action-icon:hover,
.messages-bubble-actions-menu--toolbar .dropdown-item.messages-bubble-action-icon:focus {
  background-color: rgba(13, 110, 253, 0.06) !important;
}
.messages-menu-emoji-flyout.messages-menu-emoji-grid,
.messages-menu-star-flyout.messages-menu-star-grid {
  display: none !important;
  z-index: 1090;
  position: absolute;
  left: auto;
  right: calc(100% + 4px);
  top: 0;
  width: auto;
  min-width: 6.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.3rem;
  padding: 0.4rem !important;
  box-shadow: 0 0.25rem 0.75rem rgba(15, 23, 42, 0.12);
  justify-items: center;
  align-items: center;
}
.messages-bubble-emoji-pick {
  font-size: 1.35rem !important;
  line-height: 1 !important;
  border: none;
  background: rgba(248, 249, 250, 0.18);
  border-radius: 0.3rem;
  padding: 0.25rem 0.15rem;
  cursor: pointer;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100%;
  min-height: 2rem;
  box-sizing: border-box;
}
.messages-bubble-emoji-pick:hover {
  background: rgba(13, 110, 253, 0.08);
}
.messages-bubble-star-pick {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.2rem;
  border: none;
  background: rgba(248, 249, 250, 0.18);
  border-radius: 0.3rem;
  padding: 0.28rem;
  cursor: pointer;
  width: 100%;
  min-height: 2rem;
  box-sizing: border-box;
}
.messages-bubble-star-pick:hover {
  background: rgba(13, 110, 253, 0.06);
}
.messages-bubble-star-pick--clear {
  font-size: 0.8rem !important;
  font-weight: 600;
}
.messages-menu-emoji-wrap:hover .messages-menu-emoji-flyout.messages-menu-emoji-grid,
.messages-menu-emoji-wrap.messages-flyout-open .messages-menu-emoji-flyout.messages-menu-emoji-grid,
.messages-menu-star-wrap:hover .messages-menu-star-flyout.messages-menu-star-grid,
.messages-menu-star-wrap.messages-flyout-open .messages-menu-star-flyout.messages-menu-star-grid {
  display: grid !important;
}

/* Pinned message jump banner (below thread toolbar, above bubbles) */
.messages-thread-pinned-banner {
  background: linear-gradient(90deg, rgba(255, 193, 7, 0.22), rgba(255, 193, 7, 0.06));
  border-color: rgba(245, 158, 11, 0.35) !important;
  cursor: pointer;
}
.messages-thread-pinned-banner:hover {
  background: linear-gradient(90deg, rgba(255, 193, 7, 0.32), rgba(255, 193, 7, 0.12));
}
.messages-thread-pinned-banner__excerpt {
  color: #475569 !important;
}
.messages-msg-row[id^="comms-msg-"] {
  scroll-margin-top: 0.75rem;
}

/* Compose: large default emoji left; hover opens grid (match bubble menu flyouts) */
.messages-compose-emoji-wrap {
  align-self: stretch;
}
.messages-compose-emoji-primary {
  font-size: 1.5rem !important;
  line-height: 1 !important;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.25rem 0.35rem !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}
.messages-compose-emoji-primary:hover {
  background: rgba(13, 110, 253, 0.08) !important;
}
.messages-compose-emoji-flyout {
  display: none !important;
  position: absolute;
  left: 0;
  bottom: calc(100% - 6px);
  margin-bottom: 0;
  z-index: 1090;
  min-width: 8rem;
  max-width: 12rem;
}
.messages-compose-emoji-wrap:hover .messages-compose-emoji-flyout,
.messages-compose-emoji-wrap.messages-flyout-open .messages-compose-emoji-flyout {
  display: flex !important;
  flex-wrap: wrap;
}
.messages-compose-emoji-flyout .messages-compose-emoji-pick {
  font-size: 1.25rem !important;
  line-height: 1 !important;
}
.messages-msg-cluster .messages-chat-bubble {
  word-break: break-word;
}

body.product-sidebar-compact [data-theme-version="dark"] .app-right-popout.offcanvas {
  background: #1e2746;
}

body.product-sidebar-compact [data-theme-version="dark"] .app-right-popout .offcanvas-body {
  background: #1e2746;
  color: #e8eaed;
}

body.product-sidebar-compact [data-theme-version="dark"] #headerMessagesOffcanvas .tab-content {
  background: #1e2746;
}

body.product-sidebar-compact .app-right-popout__top {
  background: #0b2a97 !important;
  border: none !important;
  color: #fff;
}

/*
 * Inbox header: one full-width row (app-right-popout__tabstrip) with three divs (app-right-popout__tabhead).
 * No Bootstrap .nav / .nav-item — those force equal-width “columns”. Cells are width: auto only.
 */
body.product-sidebar-compact .app-right-popout .app-right-popout__tabstrip {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
  background: #0b2a97;
  padding: 0.5rem 0.85rem 0;
  margin: 0;
}

body.product-sidebar-compact .app-right-popout .app-right-popout__tabhead {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  min-width: 0;
}

body.product-sidebar-compact .app-right-popout .app-right-popout__tab {
  display: block;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0.45rem 0.4rem 0.5rem;
  border: none;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  background: transparent !important;
  color: #fff !important;
  opacity: 0.82;
  text-transform: uppercase;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none !important;
}

body.product-sidebar-compact .app-right-popout .app-right-popout__tab:hover {
  opacity: 1;
  color: #fff !important;
}

/* Selected tab: no white “pill”; larger type (+50%) + underline (not “tab chrome”) */
body.product-sidebar-compact .app-right-popout .app-right-popout__tab.active {
  opacity: 1;
  color: #fff !important;
  background: transparent !important;
  font-size: calc(0.8125rem * 1.5);
  border-bottom-color: rgba(255, 255, 255, 0.95);
  padding-bottom: 0.35rem;
  margin-bottom: -2px;
  position: relative;
  z-index: 1;
}

body.product-sidebar-compact .app-right-popout .app-right-popout__tab:focus-visible {
  outline: none;
  color: #fff !important;
  font-size: calc(0.8125rem * 1.5);
  border-bottom-color: #fff;
  opacity: 1;
}

body.product-sidebar-compact .app-right-popout .app-right-popout__subtitle {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8125rem;
  line-height: 1.3;
}

body.product-sidebar-compact [data-theme-version="dark"] .app-right-popout--timeline .timeline-panel h6 {
  color: #f1f3f5 !important;
}

body.product-sidebar-compact [data-theme-version="dark"] .app-right-popout--timeline .timeline-panel {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* Header right: theme, notifications, timeline, comms — shared rounded tile + title tooltips */
body.product-sidebar-compact .header-right .nav-link.header-toolbar-icon-link {
  width: 2.5rem;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 !important;
  border-radius: 0.4rem;
  background: rgba(11, 42, 151, 0.08);
  color: #0b2a97;
  transition: background 0.15s ease, color 0.15s ease;
  overflow: visible;
}
body.product-sidebar-compact .header-right .nav-link.header-toolbar-icon-link:hover {
  background: rgba(11, 42, 151, 0.14);
  color: #072a7a;
}
body.product-sidebar-compact[data-theme-version="dark"] .header-right .nav-link.header-toolbar-icon-link {
  background: rgba(255, 255, 255, 0.1);
  color: #bfdbfe;
}
body.product-sidebar-compact[data-theme-version="dark"] .header-right .nav-link.header-toolbar-icon-link:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #e0f2fe;
}
body.product-sidebar-compact .header-right .nav-link.header-toolbar-icon-link .header-toolbar-fa {
  font-size: 1.125rem;
  line-height: 1;
}
body.product-sidebar-compact .header-right .nav-link.header-toolbar-icon-link .header-toolbar-svg {
  display: block;
}
body.product-sidebar-compact .header-right .nav-link.header-toolbar-icon-link .header-toolbar-img {
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  min-height: 1.25rem;
  object-fit: contain;
  object-position: center;
  display: block;
  flex-shrink: 0;
  overflow: visible;
  /* Same brand blue as sidebar icons (#1E3FB4) */
  filter: brightness(0) saturate(100%) invert(19%) sepia(78%) saturate(2800%) hue-rotate(211deg) brightness(0.92) contrast(1.05);
}
/* Help uses same tile; override earlier larger help-only sizing */
body.product-sidebar-compact .header-right .nav-link.header-toolbar-icon-link.header-help-link {
  min-width: 2.5rem !important;
  min-height: 2.5rem !important;
  color: inherit !important;
}
body.product-sidebar-compact .header-right .nav-link.header-toolbar-icon-link .header-help-icon {
  font-size: 1.125rem !important;
  color: inherit !important;
}

/*
 * Theme demo chat panel (.chatbox in chatbox.html) — same Notes/Alerts/Chat as old template.
 * custom.js binds .bell-link to .chatbox.active; messages icon no longer uses bell-link.
 * Hide the legacy panel on product layouts so it never stacks behind the real offcanvas.
 */
body.product-sidebar-compact .chatbox {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
