/* AlemodSports app additions (loaded after the theme's app.min.css). */

/* ------------------------------------------------------------------
   Google Translate (js/app-api/language-switcher.js, same as GenXHomeFlix):
   hide the widget's top bar and tooltip artifacts.
   ------------------------------------------------------------------ */
.goog-te-banner-frame,
#goog-gt-tt, .goog-te-balloon-frame,
#google_translate_element .skiptranslate {
  display: none !important;
}
body { top: 0 !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
body > .skiptranslate { display: block !important; }
.VIpgJd-ZVi9od-ORHb-OEVmcd { display: none !important; }



/* ==================================================================
   Signed-out Identity pages (/Login, /Register, /ForgotPassword, ...):
   Views/Shared/_AuthLayout.cshtml + _AuthBrandPanel.cshtml
   Split screen: brand panel (pitch markings over the theme's primary
   colour) + form. Built on the theme's --theme-* variables, so it
   follows the primary colour and light/dark mode.
   ================================================================== */
.st-login {
  display: flex;
  min-height: 100vh;
  background: var(--theme-body-bg);
}

/* ---- brand panel ---- */
.st-login-brand {
  position: relative;
  flex: 1 1 auto; /* takes whatever the form column leaves */
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1200px 600px at 110% -10%, rgba(255, 255, 255, .07), transparent 60%),
    radial-gradient(900px 700px at -20% 120%, rgba(0, 0, 0, .3), transparent 60%),
    /* Dark green, fixed (not derived from the theme colour). */
    linear-gradient(160deg, var(--brand-1) 0%, var(--brand-2) 55%, var(--brand-3) 100%);
}
/* OGL basketball shot (court-fx.js) fills the panel behind the text. */
.st-login-court {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* Anything reaching toward the headline (wide nets, goals, court lines) fades out before the text. */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 40%, #000 60%);
  mask-image: linear-gradient(to right, transparent 0%, transparent 40%, #000 60%);
}
.st-login-pitch {
  position: absolute;
  inset: -4% -10% -4% auto;
  height: 108%;
  width: auto;
  color: #fff;
  opacity: .09;
  transform: rotate(-8deg);
  pointer-events: none;
}
.st-login-brand-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 3rem clamp(2.5rem, 5vw, 5rem);
}
.st-login-wordmark {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.01em;
  text-decoration: none;
}
.st-login-wordmark:hover { color: #fff; }
.st-login-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: .6rem;
  background: #fff;
  color: var(--theme-primary);
  font-size: 1.3rem;
}
.st-login-wordmark-sm { color: var(--theme-emphasis-color, #212529); font-size: 1.1rem; }
.st-login-wordmark-sm:hover { color: var(--theme-emphasis-color, #212529); }
.st-login-wordmark-sm .st-login-mark { background: var(--theme-primary); color: #fff; width: 1.85rem; height: 1.85rem; font-size: 1.1rem; }
.st-login-pitchline { margin: auto 0; max-width: 34rem; }
.st-login-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.st-login-headline {
  margin: 1.25rem 0 1rem;
  color: #fff;
  font-size: clamp(2.4rem, 3.6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
}
.st-login-headline span { color: rgba(255, 255, 255, .72); }
.st-login-lede {
  max-width: 30rem;
  margin-bottom: 2.25rem;
  color: rgba(255, 255, 255, .82);
  font-size: 1.05rem;
  line-height: 1.6;
}
.st-login-features { display: grid; gap: 1.1rem; margin: 0; padding: 0; list-style: none; }
.st-login-features li { display: flex; align-items: flex-start; gap: .9rem; }
.st-login-features strong { display: block; color: #fff; font-weight: 600; }
.st-login-features li > span:last-child { color: rgba(255, 255, 255, .72); font-size: .9rem; }
.st-login-feature-icon {
  display: inline-flex;
  flex: 0 0 2.5rem;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: .75rem;
  background: rgba(255, 255, 255, .1);
  font-size: 1.25rem;
}
.st-login-brand-foot { margin: 0; color: rgba(255, 255, 255, .6); font-size: .85rem; }

/* ---- form panel ---- */
.st-login-main {
  display: flex;
  flex: 1 1 100%; /* full width below lg; a fixed, narrower column beside the brand panel (see below) */
  flex-direction: column;
  min-width: 0;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem);
}
.st-login-topbar { display: flex; align-items: center; min-height: 2.5rem; }

.st-login-form-wrap { width: 100%; max-width: 23rem; margin: auto; padding: 2.5rem 0; }
@media (min-width: 992px) {
  /* Form column: narrow and fixed (about 384-448px), shared by every page using _AuthLayout.
     Tighter side padding, and the form fills the column instead of a narrower centred box. */
  .st-login-main { flex: 0 0 clamp(24rem, 28vw, 28rem); padding-left: clamp(1.5rem, 2.75vw, 2.25rem); padding-right: clamp(1.5rem, 2.75vw, 2.25rem); }
  .st-login-form-wrap { max-width: none; }
}
.st-login-title { margin-bottom: .35rem; font-size: 1.75rem; font-weight: 700; letter-spacing: -.01em; }
.st-login-subtitle { margin-bottom: 2rem; color: var(--theme-secondary-color, #6c757d); }
.st-login .form-label { font-weight: 600; font-size: .875rem; }

.st-login-alert.validation-summary-valid { display: none !important; }
.st-login-alert ul { margin: 0; padding-left: 1rem; }

.st-login-field { position: relative; }
.st-login-field > .ti {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: var(--theme-secondary-color, #6c757d);
  font-size: 1.15rem;
  pointer-events: none;
}
.st-login-field .form-control { padding-left: 2.85rem; font-size: 1rem; }
.st-login-field .form-control:has(+ .st-login-reveal) { padding-right: 3rem; }
.st-login-reveal {
  position: absolute;
  top: 50%;
  right: .5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  transform: translateY(-50%);
  border: 0;
  border-radius: .5rem;
  background: transparent;
  color: var(--theme-secondary-color, #6c757d);
  font-size: 1.15rem;
}
.st-login-reveal:hover, .st-login-reveal:focus-visible { background: var(--theme-tertiary-bg, rgba(0, 0, 0, .05)); color: var(--theme-primary); }
.st-login-caps { display: block; margin-top: .35rem; color: var(--theme-warning, #b8860b); }

.st-login-submit { position: relative; font-weight: 600; }
.st-login-submit-busy { display: none; }
.st-login-submit.is-busy { pointer-events: none; opacity: .85; }
.st-login-submit.is-busy .st-login-submit-label { display: none; }
.st-login-submit.is-busy .st-login-submit-busy { display: inline-flex; align-items: center; }

.st-login-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1.5rem 0 1rem;
  color: var(--theme-secondary-color, #6c757d);
  font-size: .8rem;
}
.st-login-divider::before, .st-login-divider::after { content: ""; flex: 1; border-top: 1px solid var(--theme-border-color, #dee2e6); }

.st-login-join {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1rem 1.1rem;
  border: 1px dashed var(--theme-border-color, #dee2e6);
  border-radius: .75rem;
  background: var(--theme-tertiary-bg, transparent);
}
.st-login-join strong { display: block; font-size: .95rem; }
.st-login-join span { color: var(--theme-secondary-color, #6c757d); font-size: .825rem; }
.st-login-join .btn { flex: none; white-space: nowrap; }
.st-login-help { margin: 1.25rem 0 0; color: var(--theme-secondary-color, #6c757d); font-size: .825rem; text-align: center; }
.st-login-footer { padding-top: 1rem; color: var(--theme-secondary-color, #6c757d); font-size: .8rem; text-align: center; }

@media (max-width: 575.98px) {
  .st-login-join { flex-direction: column; align-items: stretch; text-align: center; }
}
@media (prefers-reduced-motion: no-preference) {
  .st-login-form-wrap { animation: st-login-in .35s ease-out both; }
  @keyframes st-login-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

/* ---- shared pieces for the other signed-out Identity pages ---- */
.st-login-back {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-bottom: 1.5rem;
  color: var(--theme-secondary-color, #6c757d);
  font-size: .875rem;
  text-decoration: none;
}
.st-login-back:hover { color: var(--theme-primary); }

.st-auth-state { text-align: center; }
.st-auth-state .st-login-subtitle { margin-bottom: 1.75rem; }
.st-auth-state-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 1.25rem;
  border-radius: 1.25rem;
  font-size: 2.1rem;
}
.st-auth-state-icon-sm { width: 3.25rem; height: 3.25rem; margin-bottom: 1rem; border-radius: .9rem; font-size: 1.5rem; }
.st-auth-state-icon.is-info    { background: var(--theme-primary-bg-subtle);  color: var(--theme-primary); }
.st-auth-state-icon.is-success { background: var(--theme-success-bg-subtle, #d1e7dd); color: var(--theme-success, #198754); }
.st-auth-state-icon.is-warning { background: var(--theme-warning-bg-subtle, #fff3cd); color: var(--theme-warning, #b8860b); }
.st-auth-state-icon.is-danger  { background: var(--theme-danger-bg-subtle, #f8d7da);  color: var(--theme-danger, #dc3545); }

/* One-time codes: big, spaced, centred digits. */
.st-auth-code { font-size: 1.5rem; font-weight: 600; letter-spacing: .35em; text-align: center; }
.st-auth-code::placeholder { letter-spacing: .35em; opacity: .35; }

/* Numbered steps in the "join" brand panel. */
.st-login-feature-icon b { font-size: 1.05rem; font-weight: 800; }

/* Anything else rendered in the form panel (e.g. the Identity area's Error page). */
.st-login-form-wrap > h1 { font-size: 1.75rem; font-weight: 700; }
.st-login-form-wrap > h2:not(.st-login-title) { font-size: 1.1rem; }

/* ==================================================================
   Account pages (/Account/*): Views/Shared/_ManageLayout.cshtml
   Profile header, grouped section menu, setting cards. Reuses the sign-in
   pieces (.st-login-field, .st-login-reveal, .st-auth-state-icon, .st-auth-code).
   ================================================================== */
.st-account .card { margin-bottom: 1rem; }

/* ---- profile header ---- */
.st-account-hero { overflow: hidden; }
.st-account-cover {
  height: 112px;
  color: #fff;
  background:
    radial-gradient(600px 200px at 90% -40%, rgba(255, 255, 255, .22), transparent 60%),
    linear-gradient(120deg, var(--theme-primary) 0%, color-mix(in srgb, var(--theme-primary) 55%, #000) 100%);
}
.st-account-cover svg { width: 100%; height: 100%; opacity: .14; }
.st-account-hero-body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 1.25rem;
  padding: 0 1.5rem 1.25rem;
}
.st-account-avatar {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  margin-top: -44px;
  border: 4px solid var(--theme-secondary-bg, #fff);
  border-radius: 1.5rem;
  background: var(--theme-primary-bg-subtle);
  color: var(--theme-primary);
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}
.st-account-identity { flex: 1 1 16rem; min-width: 0; }
.st-account-identity h3 { margin: 0 0 .35rem; font-size: 1.35rem; font-weight: 700; }
.st-account-meta { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; color: var(--theme-secondary-color, #6c757d); font-size: .875rem; }
.st-account-meta i { margin-right: .35rem; }
.st-account-roles { display: flex; flex-wrap: wrap; gap: .4rem; }
.st-account-role {
  padding: .45rem .7rem;
  background: var(--theme-primary-bg-subtle);
  color: var(--theme-primary-text-emphasis, var(--theme-primary));
  font-size: .78rem;
  font-weight: 600;
}

/* ---- section menu ---- */
.st-account-nav { position: sticky; top: calc(var(--theme-topbar-height, 70px) + 1rem); }
.st-account-nav-group {
  padding: .9rem .75rem .35rem;
  color: var(--theme-secondary-color, #6c757d);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.st-account-nav-group:first-child { padding-top: .4rem; }
.st-account-nav-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem .75rem;
  border-radius: .6rem;
  color: var(--theme-body-color, inherit);
  text-decoration: none;
  transition: background-color .15s ease;
}
.st-account-nav-link strong { display: block; font-size: .9rem; font-weight: 600; }
.st-account-nav-link small { display: block; color: var(--theme-secondary-color, #6c757d); font-size: .76rem; }
.st-account-nav-link:hover { background: var(--theme-tertiary-bg, rgba(0, 0, 0, .04)); color: var(--theme-body-color, inherit); }
.st-account-nav-link.active { background: var(--theme-primary-bg-subtle); }
.st-account-nav-link.active strong { color: var(--theme-primary); }
.st-account-nav-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: .6rem;
  background: var(--theme-tertiary-bg, rgba(0, 0, 0, .04));
  color: var(--theme-secondary-color, #6c757d);
  font-size: 1.15rem;
}
.st-account-nav-link.active .st-account-nav-icon { background: var(--theme-primary); color: #fff; }

/* ---- setting cards ---- */
.st-account-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem 0;
}
.st-account-card-head h4, .st-account-status-hero h4 { margin: 0 0 .25rem; font-size: 1.05rem; font-weight: 700; }
.st-account-card-head p, .st-account-status-hero p { margin: 0; color: var(--theme-secondary-color, #6c757d); font-size: .875rem; }
.st-account-card > .card-body { padding: 1.25rem 1.5rem 1.5rem; }
.st-account .form-label { font-weight: 600; font-size: .85rem; }
.st-account-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--theme-border-color, #dee2e6);
}

.st-account-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem;
  padding: .9rem 1rem;
  border: 1px solid var(--theme-border-color, #dee2e6);
  border-radius: .75rem;
}
.st-account-row-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .7rem;
  background: var(--theme-tertiary-bg, rgba(0, 0, 0, .04));
  color: var(--theme-primary);
  font-size: 1.25rem;
}
.st-account-row .badge { margin-top: .25rem; }
.min-w-0 { min-width: 0; }
.flex-none { flex: none; }

.st-account-status-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.st-account-status-hero .st-auth-state-icon { margin-bottom: 0; }
.st-account-status { margin-bottom: 1rem; }
.st-account-status .btn-close { margin-left: auto; position: static; padding: .5rem; }

/* ---- authenticator setup ---- */
.st-account-steps { display: grid; gap: 1.75rem; margin: 0; padding: 0; list-style: none; }
.st-account-steps > li { display: flex; gap: 1rem; }
.st-account-steps h5 { margin: .3rem 0 .35rem; font-size: 1rem; font-weight: 700; }
.st-account-step-num {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--theme-primary);
  color: #fff;
  font-weight: 700;
}
.st-account-qr-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.st-account-qr {
  flex: none;
  width: 176px;
  height: 176px;
  padding: .6rem;
  border: 1px solid var(--theme-border-color, #dee2e6);
  border-radius: .9rem;
  background: #fff; /* QR codes need a light background, also in dark mode */
}
.st-account-qr svg { display: block; width: 100%; height: 100%; }
.st-account-key { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.st-account-key code {
  padding: .5rem .75rem;
  border-radius: .5rem;
  background: var(--theme-tertiary-bg, rgba(0, 0, 0, .04));
  color: var(--theme-emphasis-color, inherit);
  font-size: 1rem;
  letter-spacing: .06em;
  word-break: break-all;
}
.st-account-code-form .st-auth-code { width: 12rem; }

/* ---- recovery codes ---- */
.st-account-codes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.st-account-codes li {
  padding: .65rem .5rem;
  border: 1px dashed var(--theme-border-color, #dee2e6);
  border-radius: .6rem;
  text-align: center;
}
.st-account-codes code { color: var(--theme-emphasis-color, inherit); font-size: .95rem; letter-spacing: .06em; }

@media (max-width: 991.98px) {
  .st-account-nav { position: static; }
}
@media (max-width: 575.98px) {
  .st-account-hero-body { padding: 0 1rem 1rem; }
  .st-account-card-head { padding: 1rem 1rem 0; }
  .st-account-card > .card-body { padding: 1rem; }
  .st-account-actions .btn { flex: 1 1 auto; }
}

/* Status headers: icon + text side by side; the text column shrinks instead of wrapping below. */
.st-account-status-hero > .flex-grow-1 { flex: 1 1 18rem; min-width: 0; }
/* Icon fields in the account pages use the same text size as the plain inputs beside them. */
.st-account .st-login-field .form-control { font-size: inherit; }
.st-account-status-hero + form { margin-top: 1.5rem; }

/* Light / dark mode button on the sign-in pages (same #light-dark-mode as the app topbar). */
.st-login-theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2rem;
  padding: 0;
  font-size: 1.05rem;
}

/* ==================================================================
   Video library (/videos) and upload (/videos/upload)
   ================================================================== */

/* ---- library header ---- */
.st-videos-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.25rem;
  border-radius: var(--theme-border-radius-lg, .75rem);
  color: #fff;
  background:
    radial-gradient(800px 300px at 100% 0%, rgba(255, 255, 255, .12), transparent 60%),
    linear-gradient(135deg, color-mix(in srgb, var(--theme-primary) 72%, #000) 0%, color-mix(in srgb, var(--theme-primary) 38%, #000) 100%);
}
.st-videos-hero-lines { position: absolute; inset: 0; width: 100%; height: 100%; color: #fff; opacity: .1; pointer-events: none; }
.st-videos-hero-body {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.75rem 2rem;
}
.st-videos-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .03em;
}
.st-videos-hero h2 { margin: .85rem 0 1rem; max-width: 34rem; color: #fff; font-size: clamp(1.35rem, 2.2vw, 1.85rem); font-weight: 800; line-height: 1.2; }
.st-videos-stats { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; color: rgba(255, 255, 255, .78); font-size: .9rem; }
.st-videos-stats strong { margin-right: .25rem; color: #fff; font-size: 1.15rem; font-weight: 700; }
.st-videos-upload-btn { font-weight: 600; color: var(--theme-primary); }

/* ---- toolbar ---- */
.st-videos-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: .5rem; }
.st-videos-search { position: relative; flex: 1 1 18rem; }
.st-videos-search > .ti { position: absolute; top: 50%; left: 1rem; transform: translateY(-50%); color: var(--theme-secondary-color, #6c757d); font-size: 1.1rem; }
.st-videos-search .form-control { height: 2.75rem; padding-left: 2.75rem; border-radius: 999px; background: var(--theme-secondary-bg, #fff); }
.st-videos-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.st-videos-scope .btn { height: 2.75rem; display: inline-flex; align-items: center; }
.st-videos-scope .btn-check:checked + .btn { background: var(--theme-primary); border-color: var(--theme-primary); color: #fff; }
.st-videos-sort { width: auto; height: 2.75rem; }
.st-videos-result { min-height: 1.25rem; margin: .25rem 0 .75rem; font-size: .875rem; }

/* ---- grid + cards ---- */
.st-videos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr)); gap: 1.25rem 1rem; }
.st-video-card { display: block; min-width: 0; color: inherit; text-decoration: none; }
.st-video-card:hover { color: inherit; }
.st-video-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: .75rem;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .08), transparent 60%),
    linear-gradient(135deg, color-mix(in srgb, var(--theme-primary) 55%, #000), #111);
  transition: transform .2s ease, box-shadow .2s ease;
}
.st-video-card:hover .st-video-thumb, .st-video-card:focus-visible .st-video-thumb { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.st-video-card:focus-visible { outline: none; }
.st-video-card:focus-visible .st-video-thumb { outline: 3px solid var(--theme-primary); outline-offset: 2px; }
.st-video-thumb video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s ease; }
.st-video-card.has-frame video { opacity: 1; }
.st-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  transform: translate(-50%, -50%) scale(.9);
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  font-size: 1.4rem;
  opacity: .9;
  backdrop-filter: blur(4px);
  transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
  pointer-events: none;
}
.st-video-card:hover .st-video-play { transform: translate(-50%, -50%) scale(1); background: var(--theme-primary); }
.st-video-card.is-previewing .st-video-play { opacity: 0; }
.st-video-duration, .st-video-new {
  position: absolute;
  padding: .15rem .45rem;
  border-radius: .35rem;
  font-size: .75rem;
  font-weight: 600;
  pointer-events: none;
}
.st-video-duration { right: .5rem; bottom: .5rem; background: rgba(0, 0, 0, .75); color: #fff; font-variant-numeric: tabular-nums; }
.st-video-new { top: .5rem; left: .5rem; background: var(--theme-primary); color: #fff; letter-spacing: .03em; text-transform: uppercase; }

.st-video-info { display: flex; gap: .7rem; padding: .75rem .15rem 0; }
.st-video-avatar {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: hsl(var(--hue, 160) 55% 88%);
  color: hsl(var(--hue, 160) 55% 28%);
  font-size: .8rem;
  font-weight: 700;
}
[data-bs-theme=dark] .st-video-avatar { background: hsl(var(--hue, 160) 35% 26%); color: hsl(var(--hue, 160) 60% 82%); }
.st-video-title {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 .2rem;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.st-video-stats { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .5rem; padding: .4rem .75rem; border-radius: .6rem; background: var(--theme-tertiary-bg, #eef0f3); color: var(--theme-secondary-color, #6c757d); font-size: .82rem; font-weight: 600; line-height: 1.4; }
.st-video-size { white-space: nowrap; }
.st-video-meta { display: flex; flex-direction: column; color: var(--theme-secondary-color, #6c757d); font-size: .8rem; line-height: 1.3; }
.st-video-info { align-items: flex-start; }
.st-video-info .st-video-title { margin-bottom: .1rem; }

/* loading skeletons */
.st-video-card.is-skeleton .st-video-thumb, .st-skel {
  background: linear-gradient(90deg, var(--theme-tertiary-bg, #eee) 0%, var(--theme-secondary-bg, #f8f9fa) 50%, var(--theme-tertiary-bg, #eee) 100%);
  background-size: 200% 100%;
  animation: st-shimmer 1.3s ease-in-out infinite;
}
.st-video-card.is-skeleton .st-video-info { flex-direction: column; gap: .4rem; }
.st-skel { display: block; height: .8rem; border-radius: .4rem; }
@keyframes st-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .st-video-card.is-skeleton .st-video-thumb, .st-skel { animation: none; } }

/* empty state */
.st-videos-empty { grid-column: 1 / -1; padding: 3.5rem 1rem; text-align: center; }
.st-videos-empty h3 { margin: 1rem 0 .35rem; font-size: 1.2rem; font-weight: 700; }
.st-videos-empty p { margin: 0 auto 1.25rem; max-width: 26rem; color: var(--theme-secondary-color, #6c757d); }
.st-videos-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1.25rem;
  background: var(--theme-primary-bg-subtle);
  color: var(--theme-primary);
  font-size: 2.1rem;
}

/* ---- upload ---- */
.st-upload-card { overflow: hidden; }
.st-upload-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.5rem 1.5rem .5rem; }
.st-upload-head h3 { margin: 0 0 .25rem; font-size: 1.3rem; font-weight: 700; }
.st-upload-head p { margin: 0; color: var(--theme-secondary-color, #6c757d); }
.st-upload-section { padding: 1rem 1.5rem; }
.st-upload .form-label { font-weight: 600; font-size: .875rem; }

.st-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  margin: 0;
  padding: 2.75rem 1.5rem;
  border: 2px dashed var(--theme-border-color, #dee2e6);
  border-radius: 1rem;
  background: var(--theme-tertiary-bg, rgba(0, 0, 0, .02));
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.st-dropzone.d-none { display: none !important; }
.st-dropzone:hover, .st-dropzone:focus-within { border-color: var(--theme-primary); }
.st-dropzone.is-over { border-color: var(--theme-primary); background: var(--theme-primary-bg-subtle); transform: scale(1.01); }
.st-dropzone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: .5rem;
  border-radius: 50%;
  background: var(--theme-primary-bg-subtle);
  color: var(--theme-primary);
  font-size: 1.9rem;
}
.st-dropzone-title { font-size: 1.05rem; font-weight: 700; }
.st-dropzone-sub { color: var(--theme-secondary-color, #6c757d); }
.st-dropzone-link { color: var(--theme-primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.st-dropzone-meta { margin-top: .5rem; color: var(--theme-secondary-color, #6c757d); font-size: .8rem; }

.st-upload-file { border: 1px solid var(--theme-border-color, #dee2e6); border-radius: 1rem; overflow: hidden; }
.st-upload-preview { background: #000; }
.st-upload-preview video { display: block; width: 100%; max-height: 360px; }
.st-upload-file-info { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; }
.st-upload-file-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .7rem;
  background: var(--theme-primary-bg-subtle);
  color: var(--theme-primary);
  font-size: 1.25rem;
}
.st-counter { color: var(--theme-secondary-color, #6c757d); font-size: .75rem; font-variant-numeric: tabular-nums; }
.st-counter.is-near { color: var(--theme-warning, #b8860b); }

.st-upload-footer, .st-upload-progress {
  margin-top: .5rem;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--theme-border-color, #dee2e6);
}
.st-upload-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.st-upload-footer.d-none, .st-upload-progress.d-none { display: none !important; }
.st-upload-percent { font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.st-upload-done { padding: 3.5rem 1.5rem; text-align: center; }
.st-upload-done h3 { margin: .25rem 0 .35rem; font-size: 1.35rem; font-weight: 700; }

.st-upload-side { position: sticky; top: calc(var(--theme-topbar-height, 70px) + 1rem); }
.st-upload-team {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1rem;
  border-radius: .75rem;
  background: var(--theme-primary-bg-subtle);
}
.st-upload-team-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .7rem;
  background: var(--theme-primary);
  color: #fff;
  font-size: 1.25rem;
}
.st-upload-side-title { margin: 1.5rem 0 .75rem; font-size: .95rem; font-weight: 700; }
.st-upload-tips { display: grid; gap: .9rem; margin: 0; padding: 0; list-style: none; font-size: .875rem; }
.st-upload-tips li { display: flex; gap: .65rem; }
.st-upload-tips .ti { flex: none; margin-top: .1rem; color: var(--theme-primary); font-size: 1.1rem; }

@media (max-width: 1199.98px) { .st-upload-side { position: static; } }
@media (max-width: 575.98px) {
  .st-videos-hero-body { padding: 1.25rem; }
  .st-upload-head, .st-upload-section, .st-upload-footer, .st-upload-progress { padding-left: 1rem; padding-right: 1rem; }
}


/* ==================================================================
   Users admin (/admin/users): Views/Admin/Users.cshtml + js/app-api/admin-users.js.
   Header with stat tiles (they double as filters), toolbar + role chips, member table,
   member drawer, and the add / edit member modal (.st-member-*).
   ================================================================== */

/* ---- header ---- */
.st-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.25rem;
  border-radius: var(--theme-border-radius-lg, .75rem);
  color: #fff;
  background:
    radial-gradient(800px 300px at 100% 0%, rgba(255, 255, 255, .12), transparent 60%),
    linear-gradient(135deg, color-mix(in srgb, var(--theme-primary) 72%, #000) 0%, color-mix(in srgb, var(--theme-primary) 38%, #000) 100%);
}
.st-hero-lines { position: absolute; inset: 0; width: 100%; height: 100%; color: #fff; opacity: .1; pointer-events: none; }
.st-hero-body { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem; padding: 1.75rem 2rem .75rem; }
.st-hero-eyebrow {
  display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .8rem; border-radius: 999px;
  background: rgba(255, 255, 255, .14); font-size: .78rem; font-weight: 600; letter-spacing: .03em;
}
.st-hero h2 { margin: .85rem 0 .35rem; color: #fff; font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 800; }
.st-hero-lede { margin: 0; color: rgba(255, 255, 255, .78); }
.st-users-add { font-weight: 600; color: var(--theme-primary); }

.st-hero-stats { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .75rem; padding: 1rem 2rem 1.75rem; }
.st-hero-stat {
  display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; padding: .85rem 1rem;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: .75rem; background: rgba(255, 255, 255, .08);
  color: #fff; text-align: left; transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.st-hero-stat:hover { background: rgba(255, 255, 255, .14); transform: translateY(-1px); }
.st-hero-stat:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.st-hero-stat.active { border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .2); }
.st-hero-stat-label { display: inline-flex; align-items: center; gap: .3rem; color: rgba(255, 255, 255, .78); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.st-hero-stat strong { font-size: 1.6rem; font-weight: 800; line-height: 1.15; }
.st-hero-stat small { color: rgba(255, 255, 255, .7); font-size: .78rem; }
.st-hero-meter { display: block; width: 100%; height: 4px; margin: .25rem 0 .1rem; border-radius: 4px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.st-hero-meter span { display: block; height: 100%; border-radius: 4px; background: #fff; transition: width .4s ease; }

/* ---- card + toolbar ---- */
.st-users-card { overflow: hidden; }
.st-users-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: 1rem 1.25rem .5rem; }
.st-users-search { position: relative; flex: 1 1 16rem; }
.st-users-search > .ti { position: absolute; top: 50%; left: .9rem; transform: translateY(-50%); color: var(--theme-secondary-color, #6c757d); }
.st-users-search .form-control { height: 2.5rem; padding-left: 2.4rem; padding-right: 2.25rem; border-radius: 999px; }
.st-users-kbd { position: absolute; top: 50%; right: .75rem; transform: translateY(-50%); padding: .05rem .4rem; border: 1px solid var(--theme-border-color, #dee2e6); border-radius: .3rem; background: transparent; color: var(--theme-secondary-color, #6c757d); font-size: .72rem; }
.st-users-segment .btn { height: 2.5rem; display: inline-flex; align-items: center; }
.st-users-segment .btn-check:checked + .btn { background: var(--theme-primary); border-color: var(--theme-primary); color: #fff; }
.st-users-select { width: auto; height: 2.5rem; }

.st-users-roles { display: flex; flex-wrap: wrap; gap: .4rem; padding: .25rem 1.25rem .75rem; }
.st-users-chip {
  display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem; border: 1px solid var(--theme-border-color, #dee2e6);
  border-radius: 999px; background: transparent; color: var(--theme-body-color, inherit); font-size: .82rem; transition: all .15s ease;
}
.st-users-chip b { padding: 0 .4rem; border-radius: 999px; background: var(--theme-tertiary-bg, #f3f4f6); font-weight: 600; font-size: .75rem; }
.st-users-chip:hover { border-color: var(--theme-primary); color: var(--theme-primary); }
.st-users-chip.active { border-color: var(--theme-primary); background: var(--theme-primary); color: #fff; }
.st-users-chip.active b { background: rgba(255, 255, 255, .22); color: #fff; }
.st-users-result { min-height: 0; padding: 0 1.25rem; font-size: .875rem; color: var(--theme-secondary-color, #6c757d); }
.st-users-result:not(:empty) { padding-bottom: .6rem; }

/* ---- table ---- */
.st-users-table { --row-pad: .8rem; }
.st-users-table thead th { padding: .6rem 1.25rem; border-top: 1px solid var(--theme-border-color, #dee2e6); background: var(--theme-tertiary-bg, #f8f9fa); color: var(--theme-secondary-color, #6c757d); font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.st-users-table tbody td { padding: var(--row-pad) 1.25rem; }
.st-users-table tbody tr[data-id] { cursor: pointer; }
.st-users-table tbody tr[data-id]:focus-visible { outline: 2px solid var(--theme-primary); outline-offset: -2px; }
.st-users-table tbody tr.is-inactive td:not(:last-child) { opacity: .6; }
.st-users-table.is-loading tbody { opacity: .55; transition: opacity .15s ease; }
.st-users-table .min-w-0 { min-width: 0; max-width: 22rem; }
.st-users-avatar {
  display: inline-flex; flex: none; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem;
  border-radius: 50%; background: var(--theme-tertiary-bg, #eef0f3); font-weight: 700; font-size: .9rem;
}
.st-users-avatar.is-lg { width: 4.5rem; height: 4.5rem; font-size: 1.5rem; }
.st-users-role {
  display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: .4rem;
  background: color-mix(in srgb, var(--theme-primary) 12%, transparent); color: color-mix(in srgb, var(--theme-primary) 80%, var(--theme-body-color, #000));
  font-size: .78rem; font-weight: 600; white-space: nowrap;
}
.st-users-status, .st-users-2fa { display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.st-users-status .ti { font-size: .55rem; }
.st-users-status.is-active { color: var(--theme-success, #1ab394); }
.st-users-status.is-inactive { color: var(--theme-secondary-color, #6c757d); }
.st-users-2fa { color: var(--theme-secondary-color, #6c757d); font-weight: 500; }
.st-users-2fa.is-on { color: var(--theme-success, #1ab394); font-weight: 600; }
.st-skel { display: inline-block; height: .8rem; border-radius: .4rem; background: var(--theme-tertiary-bg, #eef0f3); animation: st-skel 1.2s ease-in-out infinite alternate; }
.st-users-skeleton .st-users-avatar { animation: st-skel 1.2s ease-in-out infinite alternate; }
@keyframes st-skel { from { opacity: .45; } to { opacity: 1; } }

.st-users-empty { padding: 3rem 1rem; text-align: center; }
.st-users-empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 4rem; height: 4rem; margin-bottom: 1rem; border-radius: 50%; background: var(--theme-tertiary-bg, #eef0f3); color: var(--theme-secondary-color, #6c757d); font-size: 1.75rem; }
.st-users-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: .85rem 1.25rem; border-top: 1px solid var(--theme-border-color, #dee2e6); }

/* ---- member drawer ---- */
.st-users-drawer { --bs-offcanvas-width: 26rem; }
.st-users-drawer-head { margin-bottom: 1.25rem; text-align: center; }
.st-users-drawer-head .st-users-avatar { margin-bottom: .75rem; }
.st-users-drawer-head h4 { margin-bottom: .15rem; font-weight: 700; }
.st-users-drawer-section { padding: 1rem 0; border-top: 1px solid var(--theme-border-color, #dee2e6); }
.st-users-drawer-section h6 { margin-bottom: .75rem; color: var(--theme-secondary-color, #6c757d); font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.st-users-drawer-role { display: flex; gap: .75rem; align-items: flex-start; padding: .4rem 0; }
.st-users-drawer-role-icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem; border-radius: .5rem; background: color-mix(in srgb, var(--theme-primary) 12%, transparent); color: var(--theme-primary); font-size: 1.1rem; }
.st-users-facts { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; margin: 0; font-size: .9rem; }
.st-users-facts dt { color: var(--theme-secondary-color, #6c757d); font-weight: 500; }
.st-users-facts dd { margin: 0; }

/* ---- add / edit member modal ---- */
.st-member-modal .modal-content { overflow: hidden; }
.st-member-layout { display: flex; min-height: 0; max-height: calc(100vh - 3.5rem); }
.st-member-preview {
  position: relative; display: none; flex: 0 0 17rem; overflow: hidden; color: #fff;
  background:
    radial-gradient(500px 300px at 0% 0%, rgba(255, 255, 255, .12), transparent 60%),
    linear-gradient(170deg, color-mix(in srgb, var(--theme-primary) 70%, #000) 0%, color-mix(in srgb, var(--theme-primary) 30%, #000) 100%);
}
@media (min-width: 992px) { .st-member-preview { display: block; } }
.st-member-preview-lines { position: absolute; inset: 0; width: 100%; height: 100%; color: #fff; opacity: .08; pointer-events: none; }
.st-member-preview-inner { position: relative; display: flex; flex-direction: column; align-items: center; padding: 2.25rem 1.5rem; text-align: center; }
.st-member-preview-mode { display: inline-flex; align-items: center; gap: .35rem; margin-bottom: 1.5rem; padding: .25rem .7rem; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: .75rem; font-weight: 600; }
.st-member-avatar {
  display: inline-flex; align-items: center; justify-content: center; width: 5.5rem; height: 5.5rem; margin-bottom: 1rem;
  border: 3px solid rgba(255, 255, 255, .35); border-radius: 50%; font-size: 1.9rem; font-weight: 800; transition: background .2s ease;
}
.st-member-preview-name { max-width: 100%; overflow: hidden; font-size: 1.15rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.st-member-preview-email { max-width: 100%; overflow: hidden; color: rgba(255, 255, 255, .75); font-size: .85rem; text-overflow: ellipsis; white-space: nowrap; }
.st-member-preview-team { display: inline-flex; align-items: center; gap: .35rem; margin-top: .6rem; color: rgba(255, 255, 255, .85); font-size: .82rem; }
.st-member-preview-roles { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; margin: 1.1rem 0 1.4rem; }
.st-member-preview-roles .st-users-role { background: rgba(255, 255, 255, .16); color: #fff; }
.st-member-preview-empty { color: rgba(255, 255, 255, .65); font-size: .82rem; font-style: italic; }
.st-member-preview-facts { display: grid; gap: .5rem; width: 100%; margin: 0; padding: 1rem 0 0; border-top: 1px solid rgba(255, 255, 255, .18); list-style: none; color: rgba(255, 255, 255, .8); font-size: .82rem; text-align: left; }
.st-member-preview-facts .ti { margin-right: .45rem; opacity: .85; }

.st-member-main { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; }
.st-member-main .modal-body { overflow-y: auto; }
.st-member-step { padding: 1.1rem 0; border-bottom: 1px dashed var(--theme-border-color, #dee2e6); }
.st-member-step:first-of-type { padding-top: 0; }
.st-member-step:last-child { border-bottom: 0; padding-bottom: 0; }
.st-member-step-title { display: flex; align-items: center; gap: .55rem; margin-bottom: .85rem; font-size: .95rem; font-weight: 700; }
.st-member-step-title span {
  display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: color-mix(in srgb, var(--theme-primary) 14%, transparent); color: var(--theme-primary); font-size: .8rem; font-weight: 800;
}
.st-member-field { position: relative; }
.st-member-field > .ti { position: absolute; top: 50%; left: .85rem; transform: translateY(-50%); color: var(--theme-secondary-color, #6c757d); pointer-events: none; }
.st-member-field .form-control { padding-left: 2.4rem; }

.st-member-strength { height: 5px; margin: .6rem 0 .5rem; border-radius: 5px; background: var(--theme-tertiary-bg, #eef0f3); overflow: hidden; }
.st-member-strength span { display: block; width: 0; height: 100%; border-radius: 5px; transition: width .25s ease, background .25s ease; }
.st-member-strength .is-weak { background: var(--theme-danger, #ed5565); }
.st-member-strength .is-ok { background: var(--theme-warning, #f8ac59); }
.st-member-strength .is-strong { background: var(--theme-success, #1ab394); }
.st-member-rules { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin: 0 0 .25rem; padding: 0; list-style: none; color: var(--theme-secondary-color, #6c757d); font-size: .8rem; }
.st-member-rules li { display: inline-flex; align-items: center; gap: .3rem; transition: color .15s ease; }
.st-member-rules li.is-met { color: var(--theme-success, #1ab394); }

.st-member-roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .6rem; }
.st-member-role {
  position: relative; display: flex; gap: .75rem; align-items: flex-start; margin: 0; padding: .8rem 2.25rem .8rem .85rem;
  border: 1.5px solid var(--theme-border-color, #dee2e6); border-radius: .65rem; cursor: pointer; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.st-member-role:hover { border-color: color-mix(in srgb, var(--theme-primary) 55%, var(--theme-border-color, #dee2e6)); }
.st-member-role:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-primary) 25%, transparent); }
.st-member-role.is-checked { border-color: var(--theme-primary); background: color-mix(in srgb, var(--theme-primary) 7%, transparent); }
.st-member-role-icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: .55rem; background: var(--theme-tertiary-bg, #eef0f3); color: var(--theme-secondary-color, #6c757d); font-size: 1.15rem; transition: all .15s ease; }
.st-member-role.is-checked .st-member-role-icon { background: var(--theme-primary); color: #fff; }
.st-member-role-text { display: flex; flex-direction: column; min-width: 0; font-size: .9rem; }
.st-member-role-text small { margin-top: .15rem; color: var(--theme-secondary-color, #6c757d); font-size: .78rem; line-height: 1.35; }
.st-member-role-tag { align-self: flex-start; margin-top: .2rem; padding: 0 .4rem; border-radius: .3rem; background: color-mix(in srgb, var(--theme-success, #1ab394) 15%, transparent); color: var(--theme-success, #1ab394); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.st-member-role-check { position: absolute; top: .7rem; right: .7rem; display: inline-flex; align-items: center; justify-content: center; width: 1.25rem; height: 1.25rem; border: 1.5px solid var(--theme-border-color, #dee2e6); border-radius: 50%; color: transparent; font-size: .75rem; transition: all .15s ease; }
.st-member-role.is-checked .st-member-role-check { border-color: var(--theme-primary); background: var(--theme-primary); color: #fff; }

.st-member-footer { gap: .5rem; }
.st-member-summary { flex: 1 1 auto; min-width: 0; margin-right: auto; font-size: .85rem; }
@media (max-width: 575.98px) { .st-member-summary { flex-basis: 100%; } }
/* users admin: small-screen and modal title tweaks */
.st-member-main .modal-title { font-size: 1.2rem; font-weight: 700; }
@media (max-width: 575.98px) {
  .st-hero-body { padding: 1.25rem 1.25rem .5rem; }
  .st-hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: .75rem 1.25rem 1.25rem; gap: .5rem; }
  .st-hero-stat { padding: .7rem .8rem; }
  .st-hero-stat strong { font-size: 1.35rem; }
  .st-users-toolbar, .st-users-roles, .st-users-result { padding-left: 1rem; padding-right: 1rem; }
  .st-users-table thead th, .st-users-table tbody td { padding-left: 1rem; padding-right: 1rem; }
}
/* users table: keep the member cell narrow enough on phones */
@media (max-width: 575.98px) { .st-users-table .min-w-0 { max-width: 58vw; } }


/* ==================================================================
   Roles & permissions (/admin/roles): Views/Admin/Roles.cshtml + js/app-api/admin-roles.js.
   Shares the page header (.st-hero*) with the users page. Role list + detail editor,
   compare grid, and the new / rename / duplicate role modal (.st-rolem-*).
   ================================================================== */
.st-hero-stat.is-static:hover { transform: none; background: rgba(255, 255, 255, .08); }
.st-roles-viewonly { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .9rem; border-radius: .5rem; background: rgba(255, 255, 255, .14); color: #fff; font-size: .85rem; font-weight: 600; }

.st-roles-tabs { gap: .35rem; margin-bottom: 1rem; }
.st-roles-tabs .nav-link { border-radius: 999px; padding: .45rem 1rem; font-weight: 600; color: var(--theme-secondary-color, #6c757d); }
.st-roles-tabs .nav-link.active { background: var(--theme-primary); color: #fff; }

.st-roles-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (min-width: 992px) { .st-roles-layout { grid-template-columns: 20rem minmax(0, 1fr); } }

/* ---- role list ---- */
.st-roles-list { display: grid; gap: .5rem; }
@media (min-width: 992px) { .st-roles-list { position: sticky; top: 5.5rem; } }
.st-roles-item {
  display: flex; align-items: center; gap: .8rem; width: 100%; padding: .75rem .85rem; text-align: left;
  border: 1.5px solid var(--theme-border-color, #dee2e6); border-radius: .75rem; background: var(--theme-secondary-bg, #fff);
  color: var(--theme-body-color, inherit); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.st-roles-item:hover { border-color: color-mix(in srgb, var(--theme-primary) 50%, var(--theme-border-color, #dee2e6)); transform: translateX(2px); }
.st-roles-item:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-primary) 30%, transparent); }
.st-roles-item.active { border-color: var(--theme-primary); background: color-mix(in srgb, var(--theme-primary) 6%, var(--theme-secondary-bg, #fff)); box-shadow: 0 4px 14px color-mix(in srgb, var(--theme-primary) 14%, transparent); }
.st-roles-item.is-skeleton { pointer-events: none; }
.st-roles-item-icon {
  display: inline-flex; flex: none; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: .65rem;
  background: color-mix(in srgb, var(--theme-primary) 12%, transparent); color: var(--theme-primary); font-size: 1.2rem;
}
.st-roles-item-icon.is-super { background: color-mix(in srgb, var(--theme-warning, #f8ac59) 18%, transparent); color: var(--theme-warning, #f8ac59); }
.st-roles-item.active .st-roles-item-icon:not(.is-super) { background: var(--theme-primary); color: #fff; }
.st-roles-item-text { display: flex; flex: 1 1 auto; flex-direction: column; gap: .15rem; min-width: 0; }
.st-roles-item-title { display: flex; align-items: center; gap: .4rem; font-weight: 700; }
.st-roles-item-sub { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; color: var(--theme-secondary-color, #6c757d); font-size: .78rem; }
.st-roles-tag { padding: 0 .35rem; border-radius: .3rem; background: color-mix(in srgb, var(--theme-info, #23c6c8) 16%, transparent); color: var(--theme-info, #23c6c8); font-size: .68rem; font-weight: 700; text-transform: uppercase; }
.st-roles-dirty { width: .5rem; height: .5rem; border-radius: 50%; background: var(--theme-warning, #f8ac59); }
.st-roles-bar { display: block; width: 100%; height: 6px; margin-top: .35rem; border-radius: 6px; background: var(--theme-tertiary-bg, #eef0f3); overflow: hidden; }
.st-roles-bar.is-thin { height: 3px; margin-top: .3rem; }
.st-roles-bar span { display: block; height: 100%; border-radius: inherit; background: var(--theme-primary); transition: width .3s ease; }

/* ---- detail ---- */
.st-roles-detail { position: relative; padding: 1.5rem; margin-bottom: 0; }
.st-roles-empty { padding: 3rem 1rem; text-align: center; }
.st-roles-head { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.st-roles-head h3 { font-weight: 800; }
.st-roles-head-icon {
  display: inline-flex; flex: none; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; border-radius: 1rem;
  background: linear-gradient(135deg, var(--theme-primary), color-mix(in srgb, var(--theme-primary) 55%, #000)); color: #fff; font-size: 1.75rem;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--theme-primary) 30%, transparent);
}
.st-roles-head-icon.is-super { background: linear-gradient(135deg, #f8ac59, #c97a1c); box-shadow: 0 8px 20px rgba(248, 172, 89, .35); }
.st-roles-code { padding: .1rem .45rem; border-radius: .35rem; background: var(--theme-tertiary-bg, #eef0f3); color: var(--theme-secondary-color, #6c757d); font-size: .75rem; }
.st-roles-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.st-roles-metric {
  display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; border: 1px solid var(--theme-border-color, #dee2e6);
  border-radius: .75rem; color: var(--theme-body-color, inherit); text-decoration: none; transition: border-color .15s ease;
}
a.st-roles-metric:hover { border-color: var(--theme-primary); color: var(--theme-body-color, inherit); }
a.st-roles-metric.is-disabled { pointer-events: none; }
a.st-roles-metric.is-disabled small span { display: none; }
.st-roles-metric strong { display: block; font-size: 1.35rem; font-weight: 800; line-height: 1.1; }
.st-roles-metric small { color: var(--theme-secondary-color, #6c757d); font-size: .8rem; }
.st-roles-metric-icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--theme-tertiary-bg, #eef0f3); color: var(--theme-secondary-color, #6c757d); font-size: 1.15rem; }
.st-roles-note { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: 1rem; padding: .75rem .9rem; border-radius: .65rem; background: color-mix(in srgb, var(--theme-info, #23c6c8) 10%, transparent); font-size: .875rem; }
.st-roles-note .ti { margin-top: .1rem; color: var(--theme-info, #23c6c8); font-size: 1.1rem; }
.st-roles-tools { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.st-roles-tools .btn-group .btn { height: 2.5rem; display: inline-flex; align-items: center; }
.st-roles-tools .btn-check:checked + .btn { background: var(--theme-primary); border-color: var(--theme-primary); color: #fff; }

.st-roles-groups { display: grid; gap: 1rem; }
.st-roles-group { border: 1px solid var(--theme-border-color, #dee2e6); border-radius: .85rem; overflow: hidden; }
.st-roles-group-head { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; background: var(--theme-tertiary-bg, #f8f9fa); border-bottom: 1px solid var(--theme-border-color, #dee2e6); }
.st-roles-group-head strong { display: block; font-size: .95rem; }
.st-roles-group-head small { color: var(--theme-secondary-color, #6c757d); font-size: .78rem; }
.st-roles-group-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem; border-radius: .55rem; background: var(--theme-secondary-bg, #fff); color: var(--theme-primary); font-size: 1.1rem; }
.st-roles-perm { display: flex; align-items: flex-start; gap: .75rem; margin: 0; padding: .8rem 1rem; border-top: 1px solid var(--theme-border-color, #dee2e6); cursor: pointer; transition: background .15s ease; }
.st-roles-perm:first-of-type { border-top: 0; }
.st-roles-perm:hover { background: color-mix(in srgb, var(--theme-primary) 4%, transparent); }
.st-roles-perm.is-locked { cursor: default; }
.st-roles-perm.is-changed { background: color-mix(in srgb, var(--theme-warning, #f8ac59) 9%, transparent); box-shadow: inset 3px 0 0 var(--theme-warning, #f8ac59); }
.st-roles-perm .form-switch .form-check-input { width: 2.4em; height: 1.3em; margin-top: .1rem; cursor: inherit; }
.st-roles-perm-text { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; }
.st-roles-perm-name { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-weight: 600; }
.st-roles-perm:not(.is-on) .st-roles-perm-name { color: var(--theme-secondary-color, #6c757d); }
.st-roles-perm-desc { color: var(--theme-secondary-color, #6c757d); font-size: .82rem; }
.st-roles-perm-code { display: none; align-self: center; color: var(--theme-secondary-color, #6c757d); font-size: .72rem; white-space: nowrap; }
@media (min-width: 768px) { .st-roles-perm-code { display: block; } }
.st-roles-pill { display: inline-flex; align-items: center; gap: .2rem; padding: 0 .45rem; border-radius: 999px; background: var(--theme-tertiary-bg, #eef0f3); color: var(--theme-secondary-color, #6c757d); font-size: .7rem; font-weight: 700; }
.st-roles-pill.is-add { background: color-mix(in srgb, var(--theme-success, #1ab394) 16%, transparent); color: var(--theme-success, #1ab394); }
.st-roles-pill.is-remove { background: color-mix(in srgb, var(--theme-danger, #ed5565) 14%, transparent); color: var(--theme-danger, #ed5565); }

.st-roles-savebar {
  position: sticky; bottom: 1rem; z-index: 5; display: flex; align-items: center; gap: .75rem; margin-top: 1rem; padding: .75rem 1rem;
  border-radius: .85rem; background: #1f2937; color: #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); animation: st-rise .2s ease;
}
.st-roles-savebar-dot { flex: none; width: .65rem; height: .65rem; border-radius: 50%; background: var(--theme-warning, #f8ac59); box-shadow: 0 0 0 4px rgba(248, 172, 89, .25); }
@keyframes st-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---- compare grid ---- */
.st-roles-compare { overflow: hidden; }
.st-roles-compare-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--theme-border-color, #dee2e6); }
.st-roles-compare-scroll { max-height: 70vh; }
.st-roles-matrix { border-collapse: separate; border-spacing: 0; }
.st-roles-matrix thead th { position: sticky; top: 0; z-index: 2; background: var(--theme-secondary-bg, #fff); border-bottom: 1px solid var(--theme-border-color, #dee2e6); vertical-align: bottom; }
.st-roles-matrix tbody th[scope="row"] { position: sticky; left: 0; z-index: 1; min-width: 16rem; max-width: 22rem; background: var(--theme-secondary-bg, #fff); font-weight: 400; }
.st-roles-matrix tbody th[scope="row"] small { display: block; color: var(--theme-secondary-color, #6c757d); font-size: .76rem; }
.st-roles-matrix-corner { position: sticky; left: 0; z-index: 3 !important; min-width: 16rem; color: var(--theme-secondary-color, #6c757d); font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.st-roles-matrix-role { min-width: 7rem; text-align: center; }
.st-roles-matrix-rolebtn { display: inline-flex; flex-direction: column; align-items: center; gap: .3rem; padding: .25rem .4rem; border: 0; border-radius: .5rem; background: transparent; color: var(--theme-body-color, inherit); font-weight: 700; font-size: .82rem; }
.st-roles-matrix-rolebtn:hover { background: color-mix(in srgb, var(--theme-primary) 8%, transparent); }
.st-roles-matrix-rolebtn small { color: var(--theme-secondary-color, #6c757d); font-weight: 400; font-size: .72rem; }
.st-roles-matrix-cat th { padding: .5rem 1rem; background: var(--theme-tertiary-bg, #f8f9fa); color: var(--theme-secondary-color, #6c757d); font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.st-roles-matrix tbody tr:not(.st-roles-matrix-cat):hover td, .st-roles-matrix tbody tr:not(.st-roles-matrix-cat):hover th { background: color-mix(in srgb, var(--theme-primary) 5%, var(--theme-secondary-bg, #fff)); }
.st-roles-yes { display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: color-mix(in srgb, var(--theme-success, #1ab394) 16%, transparent); color: var(--theme-success, #1ab394); font-size: .95rem; }
.st-roles-no { color: var(--theme-border-color, #ced4da); font-weight: 700; }

/* Roles + Compare roles tabs: darker, solid badges and larger, bolder text (overrides the lighter styles above). */
.st-roles-tag { padding: .05rem .45rem; border-radius: .35rem; background: #0b6e80; color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .03em; }
.st-roles-pill { gap: .25rem; padding: .12rem .6rem; background: #3f4852; color: #fff; font-size: .76rem; font-weight: 800; }
.st-roles-pill.is-add { background: #11714f; color: #fff; }
.st-roles-pill.is-remove { background: #b8243a; color: #fff; }
.st-roles-perm-code { padding: .15rem .5rem; border-radius: .4rem; background: #2c3640; color: #e9eef3; font-size: .76rem; font-weight: 700; }
[data-bs-theme=dark] .st-roles-perm-code { background: #11171d; color: #d5dde5; }
.st-roles-item-icon:not(.is-super) { background: color-mix(in srgb, var(--theme-primary) 82%, #000); color: #fff; }
.st-roles-item-icon.is-super { background: #b06f00; color: #fff; }
.st-roles-yes { width: 1.85rem; height: 1.85rem; background: #11714f; color: #fff; font-size: 1.05rem; font-weight: 800; }
.st-roles-yes .ti { -webkit-text-stroke: .6px currentColor; }
.st-roles-no { color: #8a939c; font-size: 1.1rem; font-weight: 800; }
/* text */
.st-roles-item-title { font-size: 1rem; font-weight: 800; }
.st-roles-item-sub { font-size: .84rem; font-weight: 600; }
.st-roles-group-head strong { font-size: 1.05rem; font-weight: 800; }
.st-roles-group-head small { font-size: .84rem; font-weight: 600; }
.st-roles-perm-name { font-size: 1rem; font-weight: 700; }
.st-roles-perm-desc { font-size: .88rem; font-weight: 500; }
.st-roles-matrix-corner { font-size: .8rem; font-weight: 800; }
.st-roles-matrix-rolebtn { font-size: .92rem; font-weight: 800; }
.st-roles-matrix-rolebtn small { font-size: .78rem; font-weight: 600; }
.st-roles-matrix-cat th { font-size: .8rem; font-weight: 800; color: var(--theme-body-color, #495057); }
.st-roles-matrix tbody th[scope="row"] .fw-semibold { font-size: .95rem; font-weight: 700 !important; }
.st-roles-matrix tbody th[scope="row"] small { font-size: .82rem; font-weight: 500; }
/* role detail header: system name + Built-in / Custom / Everything badges */
#rd-name { padding: .2rem .55rem; border-radius: .4rem; background: #2c3640 !important; color: #e9eef3 !important; font-size: .76rem; font-weight: 800; letter-spacing: .04em; }
#rd-badges .badge { padding: .4em .7em; color: #fff !important; font-size: .78rem; font-weight: 800; letter-spacing: .02em; }
#rd-badges .bg-secondary-subtle { background: #3f4852 !important; }
#rd-badges .bg-info-subtle { background: #0b6e80 !important; }
#rd-badges .bg-warning-subtle { background: #b06f00 !important; }

/* ---- new / rename / duplicate role modal ---- */
.st-rolem .modal-content { overflow: hidden; }
.st-rolem-header {
  gap: .9rem; align-items: center; border-bottom: 0; color: #fff;
  background: radial-gradient(500px 200px at 100% 0%, rgba(255, 255, 255, .14), transparent 60%),
              linear-gradient(135deg, color-mix(in srgb, var(--theme-primary) 72%, #000), color-mix(in srgb, var(--theme-primary) 40%, #000));
}
.st-rolem-header .modal-title { color: #fff; font-size: 1.2rem; font-weight: 700; }
.st-rolem-icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: .75rem; background: rgba(255, 255, 255, .16); font-size: 1.4rem; }
.st-rolem-templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .5rem; }
.st-rolem-template {
  display: flex; align-items: center; gap: .7rem; margin: 0; padding: .65rem .75rem; border: 1.5px solid var(--theme-border-color, #dee2e6);
  border-radius: .65rem; cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.st-rolem-template:hover { border-color: color-mix(in srgb, var(--theme-primary) 55%, var(--theme-border-color, #dee2e6)); }
.st-rolem-template:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-primary) 25%, transparent); }
.st-rolem-template.is-checked { border-color: var(--theme-primary); background: color-mix(in srgb, var(--theme-primary) 7%, transparent); }
.st-rolem-template strong { display: block; font-size: .88rem; }
.st-rolem-template small { display: block; overflow: hidden; color: var(--theme-secondary-color, #6c757d); font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; }
.st-rolem-template-icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: .5rem; background: var(--theme-tertiary-bg, #eef0f3); color: var(--theme-secondary-color, #6c757d); }
.st-rolem-template.is-checked .st-rolem-template-icon { background: var(--theme-primary); color: #fff; }
.st-rolem-template-count { flex: none; padding: .05rem .45rem; border-radius: 999px; background: var(--theme-tertiary-bg, #eef0f3); color: var(--theme-secondary-color, #6c757d); font-size: .72rem; font-weight: 700; }

/* ==================================================================
   Dashboard (/): Views/Home/Index.cshtml + js/app-api/dashboard.js; 3D charts js/app-api/charts-3d.js.
   ================================================================== */
a.st-hero-stat { color: #fff; text-decoration: none; }
a.st-hero-stat:hover { color: #fff; }
a.st-hero-stat.is-static { pointer-events: none; }
.st-dash-refresh { width: 3rem; padding: 0; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .12); color: #fff; }
.st-dash-refresh:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.st-dash-refresh.is-spinning .ti { animation: st-spin .8s linear infinite; }
@keyframes st-spin { to { transform: rotate(360deg); } }

.st-dash-modebar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin: 0 0 .85rem; }
.st-dash-modebar h5 { font-weight: 700; }
.st-dash-mode .btn { display: inline-flex; align-items: center; height: 2.35rem; font-weight: 600; }
.st-dash-mode .btn-check:checked + .btn { background: var(--theme-primary); border-color: var(--theme-primary); color: #fff; }
.st-dash-mode .btn.disabled { opacity: .45; }

.st-dash-card { overflow: hidden; }
.st-dash-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem .25rem; }
.st-dash-card-head h5 { margin: 0; font-weight: 700; }
.st-dash-card-head p { margin: .15rem 0 0; color: var(--theme-secondary-color, #6c757d); font-size: .82rem; }
.st-dash-total { color: var(--theme-secondary-color, #6c757d); font-size: .85rem; white-space: nowrap; }
.st-dash-total strong { color: var(--theme-body-color, inherit); font-size: 1.15rem; }
.st-dash-link { font-size: .85rem; font-weight: 600; white-space: nowrap; }
.st-dash-chart { position: relative; height: var(--chart-h, 320px); margin: 0 .5rem .5rem; }

/* ---- 3D chart host (charts-3d.js) ---- */
.st-3d { cursor: grab; touch-action: pan-y; outline: none; border-radius: .75rem; user-select: none; }
.st-3d:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-primary) 35%, transparent); }
.st-3d.is-dragging { cursor: grabbing; }
.st-3d-canvas { display: block; width: 100%; height: 100%; }
.st-3d-labels { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.st-3d-cat, .st-3d-tick, .st-3d-value { position: absolute; top: 0; left: 0; white-space: nowrap; will-change: transform; }
.st-3d-cat { max-width: 7rem; overflow: hidden; color: var(--theme-secondary-color, #6c757d); font-size: .74rem; font-weight: 600; text-overflow: ellipsis; transition: color .15s ease; }
.st-3d-cat.is-hover { color: var(--theme-primary); }
.st-3d-tick { padding-right: .35rem; color: var(--theme-secondary-color, #6c757d); font-size: .7rem; opacity: .85; }
.st-3d-value { padding: .1rem .45rem; border-radius: .35rem; background: var(--theme-secondary-bg, #fff); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); color: var(--theme-body-color, #212529); font-size: .78rem; font-weight: 700; transition: opacity .2s ease; }
.st-3d-tip { position: absolute; top: 0; left: 0; z-index: 3; display: flex; flex-direction: column; padding: .45rem .65rem; border-radius: .5rem; background: #1f2937; color: #fff; font-size: .8rem; pointer-events: none; opacity: 0; transition: opacity .12s ease; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.st-3d-tip.show { opacity: 1; }
.st-3d-tip strong { font-weight: 700; }
.st-3d-tip span { opacity: .85; }
.st-3d-empty { position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%); padding: .45rem .9rem; border-radius: 999px; background: var(--theme-secondary-bg, #fff); box-shadow: 0 2px 10px rgba(0, 0, 0, .08); color: var(--theme-secondary-color, #6c757d); font-size: .85rem; pointer-events: none; }

/* ---- lists ---- */
.st-dash-list { margin: 0; padding: .25rem .75rem .9rem; list-style: none; }
.st-dash-item { display: flex; align-items: center; gap: .8rem; padding: .6rem .5rem; border-radius: .6rem; color: var(--theme-body-color, inherit); text-decoration: none; transition: background .15s ease; }
a.st-dash-item:hover { background: color-mix(in srgb, var(--theme-primary) 6%, transparent); color: var(--theme-body-color, inherit); }
.st-dash-item .min-w-0 { min-width: 0; }
.st-dash-item-title { display: block; overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.st-dash-item-sub { display: block; overflow: hidden; color: var(--theme-secondary-color, #6c757d); font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.st-dash-item-right { display: flex; flex: none; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.st-dash-item-right small { color: var(--theme-secondary-color, #6c757d); font-size: .75rem; }
.st-dash-thumb { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 3rem; height: 2.1rem; border-radius: .45rem; background: linear-gradient(135deg, color-mix(in srgb, var(--theme-primary) 60%, #000), #111); color: rgba(255, 255, 255, .85); font-size: .85rem; }
.st-dash-rank { flex: none; width: 1.4rem; color: var(--theme-secondary-color, #6c757d); font-weight: 800; text-align: center; }
.st-dash-list.is-ranked li:first-child .st-dash-rank { color: var(--theme-warning, #f8ac59); }
.st-dash-empty { display: flex; align-items: center; gap: .75rem; padding: 1.25rem .5rem; color: var(--theme-secondary-color, #6c757d); font-size: .875rem; }
.st-dash-empty .ti { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--theme-tertiary-bg, #eef0f3); font-size: 1.2rem; }
.st-dash-table thead th { padding: .55rem 1.25rem; background: var(--theme-tertiary-bg, #f8f9fa); color: var(--theme-secondary-color, #6c757d); font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.st-dash-table tbody td { padding: .7rem 1.25rem; }
/* header buttons stay white in both themes; charts shorter on phones */
.st-hero .st-users-add { background: #fff; border-color: #fff; color: var(--theme-primary); }
.st-hero .st-users-add:hover { background: rgba(255, 255, 255, .9); color: var(--theme-primary); }
@media (max-width: 575.98px) { .st-dash-chart { height: min(var(--chart-h, 320px), 250px); } }


/* ==================================================================
   Teams (/admin/tenants): Views/Admin/Tenants.cshtml + js/app-api/admin-tenants.js.
   Shares .st-hero*, .st-users-* (search, segments, table, drawer, empty) and the
   .st-member-* modal layout; adds the crest, team cards and key chip.
   ================================================================== */
.st-teams-working {
  display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; margin-bottom: 1rem; padding: .85rem 1.1rem; border-radius: .85rem;
  background: color-mix(in srgb, var(--theme-primary) 10%, var(--theme-secondary-bg, #fff)); border: 1px solid color-mix(in srgb, var(--theme-primary) 35%, transparent);
}
.st-teams-working-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--theme-primary); color: #fff; font-size: 1.2rem; }
.st-teams-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: .75rem; }

/* crest: a shield with the team's initials, tinted per team */
.st-teams-crest {
  position: relative; display: inline-flex; flex: none; align-items: center; justify-content: center; width: 3.1rem; height: 3.5rem;
  clip-path: polygon(50% 0, 100% 14%, 100% 58%, 50% 100%, 0 58%, 0 14%);
  color: #fff; font-weight: 800; font-size: 1.05rem; letter-spacing: .02em;
  background-image: linear-gradient(160deg, rgba(255, 255, 255, .28), rgba(0, 0, 0, .18));
}
.st-teams-crest > span { margin-top: -.3rem; }
.st-teams-crest.is-sm { width: 2.2rem; height: 2.5rem; font-size: .8rem; }
.st-teams-crest.is-lg { width: 5rem; height: 5.6rem; font-size: 1.7rem; }
.st-teams-card.is-skeleton .st-teams-crest { background: var(--theme-tertiary-bg, #eef0f3); animation: st-skel 1.2s ease-in-out infinite alternate; }

.st-teams-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 1rem; }
.st-teams-card { margin: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; border: 1.5px solid transparent; }
.st-teams-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .08); }
.st-teams-card:focus-visible { outline: none; border-color: var(--theme-primary); }
.st-teams-card.is-working { border-color: var(--theme-primary); }
.st-teams-card.is-inactive .st-teams-crest { filter: grayscale(1); opacity: .6; }
.st-teams-card.is-inactive .st-teams-name { color: var(--theme-secondary-color, #6c757d); }
.st-teams-card .card-body { display: flex; flex-direction: column; gap: .9rem; }
.st-teams-name { margin: 0 0 .3rem; overflow: hidden; font-size: 1.1rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }

.st-teams-key {
  display: flex; align-items: center; gap: .5rem; width: 100%; padding: .45rem .7rem; border: 1px dashed var(--theme-border-color, #dee2e6);
  border-radius: .55rem; background: var(--theme-tertiary-bg, #f8f9fa); color: var(--theme-secondary-color, #6c757d); text-align: left; transition: border-color .15s ease, color .15s ease;
}
.st-teams-key code { color: var(--theme-body-color, #212529); font-size: .85rem; }
.st-teams-key:hover { border-color: var(--theme-primary); color: var(--theme-primary); }
.st-teams-key.is-inline { display: inline-flex; width: auto; padding: .2rem .5rem; }

.st-teams-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: 0; }
.st-teams-stats > div { padding: .55rem .65rem; border-radius: .55rem; background: var(--theme-tertiary-bg, #f8f9fa); }
.st-teams-stats dt { color: var(--theme-secondary-color, #6c757d); font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.st-teams-stats dd { margin: .1rem 0 0; font-size: 1.15rem; font-weight: 800; line-height: 1.15; }
.st-teams-stats dd small { display: block; color: var(--theme-secondary-color, #6c757d); font-size: .7rem; font-weight: 500; }
.st-teams-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .75rem; border-top: 1px solid var(--theme-border-color, #dee2e6); }
.st-teams-table-card { overflow: hidden; }
#team-empty { margin: 0; }

/* modal preview panel: wider modal (modal-xl, capped) with a bigger left column than the member modal */
.st-teamm .modal-dialog.modal-xl { max-width: min(1080px, calc(100vw - 2rem)); }
@media (min-width: 992px) { .st-teamm .st-teamm-preview { flex-basis: 22rem; } }
.st-teamm-preview .st-member-preview-inner { padding: 2.5rem 2rem; }
.st-teamm-preview .st-teams-crest { margin-bottom: 1rem; box-shadow: none; }
.st-teamm-locchip { display: inline-flex; align-items: center; gap: .4rem; margin-top: .45rem; margin-left: .3rem; padding: .25rem .75rem; border-radius: 999px; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .85); font-size: .82rem; font-weight: 600; }
.st-teamm-sportchip { display: inline-flex; align-items: center; gap: .4rem; margin-top: .45rem; padding: .25rem .75rem; border-radius: 999px; background: rgba(var(--brand-accent-rgb), .18); color: var(--st-green-accent, var(--brand-accent)); font-size: .82rem; font-weight: 700; }
/* team's sport on cards, table rows and the drawer */
.st-sport-badge { display: inline-flex; align-items: center; gap: .35rem; padding: .15rem .6rem; border-radius: 999px; background: color-mix(in srgb, var(--theme-primary) 10%, transparent); color: var(--theme-primary); font-size: .78rem; font-weight: 600; white-space: nowrap; }
.st-sport-badge .ti { font-size: .95rem; }
.st-teams-name + .st-sport-badge { margin: -.1rem 0 .4rem; }
.st-teamm-keychip { display: inline-flex; align-items: center; gap: .35rem; margin-top: .6rem; padding: .25rem .7rem; border-radius: 999px; background: rgba(255, 255, 255, .16); font-family: var(--bs-font-monospace, monospace); font-size: .85rem; }
.st-teamm-howto { width: 100%; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .18); text-align: left; }
.st-teamm-howto-title { margin-bottom: .5rem; color: rgba(255, 255, 255, .7); font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.st-teamm-howto ol { margin: 0; padding-left: 1.1rem; color: rgba(255, 255, 255, .85); font-size: .82rem; }
.st-teamm-howto li { margin-bottom: .35rem; word-break: break-all; }
/* teams modal: summary on its own row; long URLs wrap at sensible points */
.st-teamm .st-member-summary { flex-basis: 100%; margin: 0 0 .25rem; }
.st-teamm-howto li { word-break: normal; overflow-wrap: anywhere; }


/* ==================================================================
   Video library redesign (/videos): featured spotlight, cards / list, card menu, edit modal.
   Frame + preview state now live on .st-video-thumb (cards are <article>s with links inside).
   ================================================================== */
.st-video-thumb.has-frame video { opacity: 1; }
.st-video-thumb.is-previewing .st-video-play { opacity: 0; }
.st-video-thumb-link { display: block; border-radius: .75rem; }
.st-video-thumb-link:focus-visible { outline: 3px solid var(--theme-primary); outline-offset: 2px; }
.st-video-card:hover .st-video-thumb { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.st-video-card.is-removing { opacity: 0; transform: scale(.96); transition: opacity .25s ease, transform .25s ease; }
.st-video-title a { color: inherit; text-decoration: none; }
.st-video-title a:hover { color: var(--theme-primary); }
.st-video-title a::after { content: ""; }
.st-video-menu { flex: none; align-self: flex-start; opacity: 0; transition: opacity .15s ease; }
.st-video-card:hover .st-video-menu, .st-video-menu:focus-within, .st-video-menu .show { opacity: 1; }
@media (hover: none) { .st-video-menu { opacity: 1; } }
.st-video-desc, .st-video-extra { display: none; }
.st-hero-kbd { padding: .05rem .4rem; border: 1px solid rgba(255, 255, 255, .45); border-radius: .3rem; background: rgba(255, 255, 255, .12); color: #fff; font-size: .78rem; }
.st-hero-stat.active { border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .2); }

/* toolbar + paging */
.st-videos-toolbar .st-users-search { flex: 1 1 18rem; }
.st-videos-result:empty { min-height: .5rem; margin: 0; }
.st-videos-more { display: flex; flex-direction: column; align-items: center; gap: .5rem; margin-top: 1.5rem; }
#video-sentinel { width: 100%; height: 1px; }

/* featured spotlight */
.st-videos-featured { display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; margin-bottom: 1.25rem; border-radius: 1rem; background: var(--theme-secondary-bg, #fff); box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
@media (min-width: 992px) { .st-videos-featured { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }
.st-videos-featured-media { display: block; }
.st-video-thumb.is-featured { height: 100%; min-height: 15rem; border-radius: 0; }
.st-videos-featured-media:hover .st-video-thumb { transform: none; box-shadow: none; }
.st-videos-featured-media:hover .st-video-play { transform: translate(-50%, -50%) scale(1); background: var(--theme-primary); }
.st-video-thumb.is-featured .st-video-play { width: 4.25rem; height: 4.25rem; font-size: 1.6rem; }
.st-videos-featured-body { display: flex; flex-direction: column; gap: .75rem; padding: 1.5rem 1.75rem; }
.st-videos-featured-tag { display: inline-flex; align-self: flex-start; align-items: center; gap: .35rem; padding: .25rem .7rem; border-radius: 999px; background: color-mix(in srgb, var(--theme-warning, #f8ac59) 16%, transparent); color: var(--theme-warning, #f8ac59); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.st-videos-featured-body h3 { margin: 0; font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 800; line-height: 1.25; }
.st-videos-featured-body h3 a { color: inherit; text-decoration: none; }
.st-videos-featured-body h3 a:hover { color: var(--theme-primary); }
.st-videos-featured-desc { display: -webkit-box; margin: 0; overflow: hidden; color: var(--theme-secondary-color, #6c757d); -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.st-videos-featured-meta { display: flex; align-items: center; gap: .65rem; }
.st-videos-featured-meta strong, .st-videos-featured-meta small { display: block; }
.st-videos-featured-meta small { color: var(--theme-secondary-color, #6c757d); font-size: .8rem; }

/* list layout */
.st-videos-grid.is-list { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
.st-videos-grid.is-list .st-video-card { display: flex; gap: 1rem; align-items: flex-start; padding: .65rem; border-radius: .9rem; background: var(--theme-secondary-bg, #fff); box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.st-videos-grid.is-list .st-video-thumb-link { flex: 0 0 13rem; max-width: 40%; }
.st-videos-grid.is-list .st-video-card:hover .st-video-thumb { transform: none; box-shadow: none; }
.st-videos-grid.is-list .st-video-info { flex: 1 1 auto; min-width: 0; padding: .15rem 0 0; }
.st-videos-grid.is-list .st-video-avatar { display: none; }
.st-videos-grid.is-list .st-video-title { font-size: 1.05rem; }
.st-videos-grid.is-list .st-video-meta { flex-direction: row; flex-wrap: wrap; gap: .1rem .75rem; }
.st-videos-grid.is-list .st-video-desc { display: -webkit-box; margin: .35rem 0 0; overflow: hidden; color: var(--theme-secondary-color, #6c757d); font-size: .85rem; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.st-videos-grid.is-list .st-video-extra { display: inline-block; margin-top: .35rem; padding: .05rem .45rem; border-radius: .35rem; background: var(--theme-tertiary-bg, #eef0f3); color: var(--theme-secondary-color, #6c757d); font-size: .72rem; }
.st-videos-grid.is-list .st-video-menu { opacity: 1; }
@media (max-width: 575.98px) { .st-videos-grid.is-list .st-video-thumb-link { flex-basis: 8.5rem; } .st-videos-grid.is-list .st-video-desc { display: none; } }

/* edit modal */
.st-videos-edit { display: flex; gap: 1rem; align-items: flex-start; }
.st-videos-edit-thumb { flex: 0 0 11rem; }
@media (max-width: 575.98px) { .st-videos-edit { flex-direction: column; } .st-videos-edit-thumb { flex-basis: auto; width: 100%; } }
.st-videos-edit-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: .5rem; margin: 1rem 0 0; }
.st-videos-edit-facts > div { padding: .5rem .7rem; border-radius: .55rem; background: var(--theme-tertiary-bg, #f8f9fa); }
.st-videos-edit-facts dt { color: var(--theme-secondary-color, #6c757d); font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.st-videos-edit-facts dd { margin: 0; font-weight: 600; }

/* ==================================================================
   Error page (any HTTP error): Views/Error/Status.cshtml, ErrorController. Standalone, full screen:
   pitch markings behind a card with the status code on scoreboard tiles. Tone (st-err-<tone>)
   colours the tiles and the icon: info | warning | danger.
   ================================================================== */
.st-err {
  --err: var(--theme-warning, #f8ac59);
  position: relative; display: flex; flex-direction: column; min-height: 100vh; overflow: hidden; padding: 1.25rem clamp(1rem, 4vw, 2.5rem);
  background:
    radial-gradient(1000px 520px at 85% -10%, rgba(255, 255, 255, .08), transparent 60%),
    linear-gradient(160deg, color-mix(in srgb, var(--theme-primary) 42%, #04140e) 0%, color-mix(in srgb, var(--theme-primary) 16%, #020a07) 100%);
}
.st-err-info { --err: var(--theme-info, #23c6c8); }
.st-err-danger { --err: var(--theme-danger, #ed5565); }
.st-err-pitch { position: absolute; inset: 0; width: 100%; height: 100%; color: #fff; opacity: .07; pointer-events: none; }
.st-err-top { position: relative; display: flex; align-items: center; justify-content: space-between; }
.st-err-wordmark { color: #fff; }
.st-err-wordmark:hover { color: #fff; }
.st-err-theme { border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; }
.st-err-theme:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.st-err-card {
  position: relative; width: 100%; max-width: 36rem; margin: auto; padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: 1.25rem; text-align: center;
  background: var(--theme-secondary-bg, #fff); color: var(--theme-body-color, #212529); box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  animation: st-rise .35s ease;
}
.st-err-score { display: flex; justify-content: center; gap: .55rem; margin: -4.75rem auto 1.5rem; }
.st-err-digit {
  position: relative; display: inline-flex; align-items: center; justify-content: center; width: 4.4rem; height: 5.6rem; border-radius: .75rem;
  background: linear-gradient(180deg, #1f2937 0%, #1f2937 49%, #111827 51%, #111827 100%); color: #fff;
  font-size: 3.4rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; box-shadow: 0 12px 28px rgba(0, 0, 0, .35), inset 0 -4px 0 var(--err);
}
.st-err-digit::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: rgba(0, 0, 0, .45); }
.st-err-eyebrow { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .85rem; border-radius: 999px; background: color-mix(in srgb, var(--err) 14%, transparent); color: var(--err); font-size: .78rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.st-err-card h1 { margin: 1rem 0 .6rem; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.01em; }
.st-err-message { margin: 0 auto 1rem; max-width: 30rem; color: var(--theme-secondary-color, #6c757d); font-size: 1rem; }
.st-err-path { display: inline-flex; align-items: center; gap: .4rem; max-width: 100%; margin: 0 0 1.25rem; padding: .3rem .75rem; border-radius: .5rem; background: var(--theme-tertiary-bg, #f3f4f6); color: var(--theme-secondary-color, #6c757d); }
.st-err-path code { overflow: hidden; color: var(--theme-body-color, #212529); text-overflow: ellipsis; white-space: nowrap; }
.st-err-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: .5rem; }
.st-err-actions .btn { font-weight: 600; }
.st-err-switch { margin: 1.25rem 0 0; color: var(--theme-secondary-color, #6c757d); font-size: .875rem; }
.st-err-ref { margin: 1.5rem 0 0; padding-top: 1.1rem; border-top: 1px dashed var(--theme-border-color, #dee2e6); color: var(--theme-secondary-color, #6c757d); font-size: .8rem; }
.st-err-refcode { display: inline-flex; align-items: center; gap: .3rem; margin-top: .35rem; padding: .15rem .55rem; border: 1px solid var(--theme-border-color, #dee2e6); border-radius: .4rem; background: transparent; color: var(--theme-body-color, #212529); font-family: var(--bs-font-monospace, monospace); font-size: .75rem; word-break: break-all; }
.st-err-refcode.is-copied { border-color: var(--theme-success, #1ab394); color: var(--theme-success, #1ab394); }
.st-err-foot { position: relative; padding-top: 1rem; color: rgba(255, 255, 255, .6); font-size: .8rem; text-align: center; }
@media (max-width: 575.98px) {
  .st-err-digit { width: 3.4rem; height: 4.4rem; font-size: 2.6rem; }
  .st-err-score { margin-top: -3.9rem; }
  .st-err-card { margin-top: 4.5rem; }
}
@media (prefers-reduced-motion: reduce) { .st-err-card { animation: none; } }

/* ==================================================================
   Streaming links + who can watch (videos-upload.js, videos-library.js, video-audience.js).
   ================================================================== */
/* add page: file / link mode switch */
.st-upload-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; padding: .75rem 1.5rem 0; }
.st-upload-mode {
  display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; text-align: left;
  border: 1px solid var(--theme-border-color, #dee2e6); border-radius: .75rem;
  background: var(--theme-secondary-bg, #fff); color: inherit; transition: border-color .15s ease, box-shadow .15s ease;
}
.st-upload-mode > i { font-size: 1.5rem; color: var(--theme-primary); }
.st-upload-mode strong { display: block; font-size: .9rem; }
.st-upload-mode small { display: block; color: var(--bs-secondary-color, #6c757d); font-size: .78rem; }
.st-upload-mode:hover { border-color: color-mix(in srgb, var(--theme-primary) 50%, transparent); }
.st-upload-mode.is-active { border-color: var(--theme-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-primary) 18%, transparent); }
.st-upload-mode:focus-visible { outline: 3px solid var(--theme-primary); outline-offset: 2px; }

/* add page: link input + preview */
.st-link-input { position: relative; display: flex; align-items: center; }
.st-link-input > i { position: absolute; left: 1rem; color: var(--bs-secondary-color, #6c757d); font-size: 1.15rem; pointer-events: none; }
.st-link-input .form-control { padding-left: 2.75rem; padding-right: 2.75rem; }
.st-link-input .spinner-border { position: absolute; right: 1rem; }
.st-link-sources { display: flex; flex-wrap: wrap; gap: .35rem .9rem; margin-top: .6rem; font-size: .78rem; color: var(--bs-secondary-color, #6c757d); }
.st-link-sources i { margin-right: .25rem; }
.st-link-preview {
  display: flex; gap: 1rem; margin-top: 1rem; padding: .75rem;
  border: 1px solid var(--theme-border-color, #dee2e6); border-radius: .75rem; background: var(--theme-tertiary-bg, #f8f9fa);
}
.st-link-preview-media { flex: 0 0 12rem; aspect-ratio: 16 / 9; overflow: hidden; border-radius: .5rem; background: #111; }
.st-link-preview-media img, .st-link-preview-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-link-preview-blank { display: flex; height: 100%; align-items: center; justify-content: center; color: rgba(255, 255, 255, .6); font-size: 2rem; }
.st-link-preview-info { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: .25rem; }
@media (max-width: 575.98px) {
  .st-upload-modes { grid-template-columns: 1fr; padding-left: 1rem; padding-right: 1rem; }
  .st-link-preview { flex-direction: column; }
  .st-link-preview-media { flex-basis: auto; }
}

/* source + audience badges */
.st-video-source {
  display: inline-flex; align-items: center; gap: .3rem; align-self: flex-start; padding: .15rem .5rem;
  border-radius: 999px; font-size: .72rem; font-weight: 600;
  background: color-mix(in srgb, var(--theme-primary) 14%, transparent); color: var(--theme-primary);
}
.st-video-source.is-overlay { position: absolute; left: .5rem; bottom: .5rem; background: rgba(0, 0, 0, .65); color: #fff; backdrop-filter: blur(4px); }
.st-video-lock {
  display: inline-flex; align-items: center; gap: .3rem; max-width: 100%; margin-top: .3rem; padding: .1rem .5rem;
  border-radius: 999px; font-size: .72rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: color-mix(in srgb, #f59f00 16%, transparent); color: color-mix(in srgb, #f59f00 70%, var(--bs-body-color, #212529));
}
.st-video-lock span { overflow: hidden; text-overflow: ellipsis; }
.st-video-lock-dot {
  position: absolute; top: .5rem; left: .5rem; display: inline-flex; align-items: center; justify-content: center;
  width: 1.6rem; height: 1.6rem; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; font-size: .85rem;
}

/* thumbnails from providers */
.st-video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s ease; display: block; }
.st-video-thumb.has-frame img { opacity: 1; }
.st-video-thumb-icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2.25rem; color: rgba(255, 255, 255, .35); }

/* who can watch picker */
.st-aud-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.st-aud-mode {
  display: flex; align-items: center; gap: .6rem; margin: 0; padding: .6rem .8rem; cursor: pointer;
  border: 1px solid var(--theme-border-color, #dee2e6); border-radius: .6rem; transition: border-color .15s ease, background-color .15s ease;
}
.st-aud-mode > i { font-size: 1.25rem; color: var(--theme-primary); }
.st-aud-mode strong { display: block; font-size: .85rem; }
.st-aud-mode small { display: block; font-size: .75rem; color: var(--bs-secondary-color, #6c757d); }
.btn-check:checked + .st-aud-mode { border-color: var(--theme-primary); background: color-mix(in srgb, var(--theme-primary) 8%, transparent); }
.btn-check:focus-visible + .st-aud-mode { outline: 3px solid var(--theme-primary); outline-offset: 2px; }
.st-aud-roles { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.st-aud-role { margin: 0; cursor: pointer; }
.st-aud-role input { position: absolute; opacity: 0; pointer-events: none; }
.st-aud-role span {
  display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem; border-radius: 999px; font-size: .82rem;
  border: 1px solid var(--theme-border-color, #dee2e6); transition: all .15s ease;
}
.st-aud-role input:checked + span { border-color: var(--theme-primary); background: var(--theme-primary); color: #fff; }
.st-aud-role input:focus-visible + span { outline: 3px solid var(--theme-primary); outline-offset: 2px; }
.st-aud-summary { margin-top: .4rem; }
/* "Only certain members": search + scrollable checklist */
.st-aud-members { margin-top: .6rem; border: 1px solid var(--theme-border-color, #dee2e6); border-radius: .6rem; overflow: hidden; }
.st-aud-member-tools { display: flex; align-items: center; gap: .75rem; padding: .5rem .6rem; border-bottom: 1px solid var(--theme-border-color, #dee2e6); background: var(--theme-tertiary-bg, #f7f9f8); }
.st-aud-search-wrap { position: relative; flex: 1 1 auto; min-width: 0; }
.st-aud-search-wrap > i { position: absolute; left: .6rem; top: 50%; transform: translateY(-50%); color: var(--bs-secondary-color, #6c757d); pointer-events: none; }
.st-aud-search-wrap .st-aud-search { padding-left: 1.9rem; }
.st-aud-member-count { white-space: nowrap; }
.st-aud-member-list { max-height: 16rem; overflow-y: auto; padding: .25rem; }
.st-aud-member { display: flex; align-items: center; gap: .6rem; margin: 0; padding: .4rem .5rem; border-radius: .45rem; cursor: pointer; }
.st-aud-member:hover { background: var(--theme-tertiary-bg, #f3f5f4); }
.st-aud-member .form-check-input { flex: 0 0 auto; margin: 0; }
.st-aud-avatar { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--theme-tertiary-bg, #eef0f3); }
.st-aud-avatar.is-initials { display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 600; color: var(--bs-secondary-color, #6c757d); }
.st-aud-member-text { min-width: 0; line-height: 1.2; }
.st-aud-member-text strong { display: block; font-size: .85rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-aud-member-text small { display: block; font-size: .75rem; color: var(--bs-secondary-color, #6c757d); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-aud-member:has(input:checked) { background: color-mix(in srgb, var(--theme-primary) 8%, transparent); }
@media (max-width: 767.98px) { .st-aud-modes { grid-template-columns: 1fr; } }


/* ==================================================================
   Video library v3 (/videos): Views/Videos/Index.cshtml + js/app-api/videos-library.js.
   Uses the sign-in page's dark green (.st-login-brand) for the header, spotlight and empty
   thumbnails. Everything is scoped to .st-videos so other .st-hero pages keep their look.
   ================================================================== */
.st-videos {
  --st-green-1: var(--brand-1);
  --st-green-2: var(--brand-2);
  --st-green-3: var(--brand-3);
  --st-green-accent: var(--brand-accent);
  --st-green-gradient: linear-gradient(160deg, var(--st-green-1) 0%, var(--st-green-2) 55%, var(--st-green-3) 100%);
}

/* ---- header ---- */
.st-vhead {
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
  border-radius: 1rem;
  color: #fff;
  background:
    radial-gradient(900px 400px at 105% -20%, rgba(255, 255, 255, .08), transparent 60%),
    radial-gradient(700px 500px at -15% 130%, rgba(0, 0, 0, .35), transparent 60%),
    var(--st-green-gradient);
  box-shadow: 0 10px 30px rgba(var(--brand-3-rgb), .18);
}
.st-vhead-pitch { position: absolute; inset: 0; width: 100%; height: 100%; color: #fff; opacity: .08; pointer-events: none; }
.st-vhead-top { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; padding: 1.75rem 2rem 1.25rem; }
.st-vhead-title { margin: 0 0 .3rem; color: #fff; font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.st-vhead-lede { margin: 0; color: rgba(255, 255, 255, .75); }
.st-vhead-kbd { padding: .05rem .4rem; border: 1px solid rgba(255, 255, 255, .4); border-radius: .3rem; background: rgba(255, 255, 255, .1); color: #fff; font-size: .78rem; }
.st-vhead-add {
  padding: .6rem 1.15rem; border: 0; border-radius: 999px; font-weight: 700;
  background: #fff; color: var(--st-green-1); box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
}
.st-vhead-add:hover, .st-vhead-add:focus-visible { background: var(--st-green-accent); color: var(--st-green-3); }

/* stats strip: one band split by thin dividers */
.st-vhead-stats {
  position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  border-top: 1px solid rgba(255, 255, 255, .1); background: rgba(0, 0, 0, .18);
}
.st-vstat {
  display: flex; align-items: center; gap: .85rem; padding: 1rem 2rem; text-align: left;
  border: 0; border-right: 1px solid rgba(255, 255, 255, .08); background: transparent; color: #fff;
  transition: background-color .15s ease;
}
.st-vstat:last-child { border-right: 0; }
button.st-vstat:hover { background: rgba(255, 255, 255, .06); }
.st-vstat:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.st-vstat.active { background: rgba(var(--brand-accent-rgb), .12); box-shadow: inset 0 3px 0 var(--st-green-accent); }
.st-vstat.is-static { cursor: default; }
.st-vstat-icon {
  display: inline-flex; flex: none; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem;
  border-radius: .75rem; background: rgba(255, 255, 255, .1); color: var(--st-green-accent); font-size: 1.2rem;
}
.st-vstat-text { display: grid; min-width: 0; line-height: 1.2; }
.st-vstat-text strong { font-size: 1.35rem; font-weight: 800; }
.st-vstat-label { color: rgba(255, 255, 255, .7); font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.st-vstat-text small { overflow: hidden; color: rgba(255, 255, 255, .55); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }

/* ---- toolbar (sticks under the app top bar) ---- */
.st-vbar {
  position: sticky; top: calc(var(--theme-topbar-height, 65px) + .5rem); z-index: 5;
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 1.25rem; padding: .6rem;
  border: 1px solid var(--theme-border-color, #e9ecef); border-radius: 999px;
  background: color-mix(in srgb, var(--theme-secondary-bg, #fff) 88%, transparent);
  backdrop-filter: blur(10px); box-shadow: 0 4px 16px rgba(0, 0, 0, .05);
}
.st-vbar-search { position: relative; flex: 1 1 16rem; min-width: 0; }
.st-vbar-search > .ti { position: absolute; top: 50%; left: 1rem; transform: translateY(-50%); color: var(--theme-secondary-color, #6c757d); pointer-events: none; }
.st-vbar-search .form-control { height: 2.5rem; padding-left: 2.6rem; padding-right: 2.5rem; border: 0; border-radius: 999px; background: var(--theme-tertiary-bg, #f1f3f5); }
.st-vbar-search .form-control:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--st-green-1) 25%, transparent); }
.st-vbar-kbd { position: absolute; top: 50%; right: .85rem; transform: translateY(-50%); padding: 0 .4rem; border: 1px solid var(--theme-border-color, #dee2e6); border-radius: .3rem; background: transparent; color: var(--theme-secondary-color, #6c757d); font-size: .75rem; }
.st-vbar-end { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.st-vbar-sort { width: auto; height: 2.5rem; border: 0; border-radius: 999px; background-color: var(--theme-tertiary-bg, #f1f3f5); font-weight: 600; font-size: .875rem; }
.st-vbar-group { display: inline-flex; gap: .2rem; padding: .2rem; border-radius: 999px; background: var(--theme-tertiary-bg, #f1f3f5); }
.st-vbar-chip {
  display: inline-flex; align-items: center; justify-content: center; height: 2.1rem; margin: 0; padding: 0 .95rem;
  border-radius: 999px; color: var(--theme-secondary-color, #6c757d); font-size: .85rem; font-weight: 600; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.st-vbar-chip.is-icon { width: 2.1rem; padding: 0; font-size: 1.05rem; }
.st-vbar-chip:hover { color: var(--theme-emphasis-color, #212529); }
.btn-check:checked + .st-vbar-chip { background: var(--st-green-1); color: #fff; }
.btn-check:focus-visible + .st-vbar-chip { outline: 2px solid var(--st-green-1); outline-offset: 2px; }
@media (max-width: 767.98px) {
  .st-vbar { position: static; border-radius: 1rem; }
  .st-vbar-end { margin-left: 0; width: 100%; justify-content: space-between; }
}

/* ---- section heading ---- */
.st-vsection-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; margin-bottom: .85rem; }
.st-vsection-title { display: inline-flex; align-items: center; gap: .45rem; margin: 0; font-size: 1.05rem; font-weight: 800; }
.st-vsection-title .ti { color: var(--st-green-1); }
[data-bs-theme=dark] .st-vsection-title .ti { color: var(--st-green-accent); }
.st-videos .st-videos-result { margin: 0; color: var(--theme-secondary-color, #6c757d); font-size: .875rem; }

/* ---- cards ---- */
.st-videos .st-videos-grid { grid-template-columns: repeat(auto-fill, minmax(24rem, 1fr)); gap: 1.5rem 1.1rem; }
.st-videos .st-video-thumb {
  border-radius: .9rem;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .08), transparent 60%),
    var(--st-green-gradient);
}
.st-videos .st-video-thumb::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 45%; pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, .45), transparent); opacity: .7; transition: opacity .2s ease;
}
.st-videos .st-video-card:hover .st-video-thumb::after { opacity: 1; }
.st-videos .st-video-thumb-link { border-radius: .9rem; }
.st-videos .st-video-card:hover .st-video-thumb { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(var(--brand-3-rgb), .22); }
.st-videos .st-video-play { z-index: 1; }
.st-videos .st-video-card:hover .st-video-play,
.st-videos .st-videos-featured-media:hover .st-video-play { background: var(--st-green-accent); color: var(--st-green-3); }
.st-videos .st-video-duration, .st-videos .st-video-new, .st-videos .st-video-source.is-overlay, .st-videos .st-video-lock-dot { z-index: 2; }
.st-videos .st-video-new { background: var(--st-green-accent); color: var(--st-green-3); }
.st-videos .st-video-info { padding-top: .75rem; }
.st-videos .st-video-title {
  display: -webkit-box; overflow: hidden; margin-bottom: .2rem; font-size: .98rem; font-weight: 700; line-height: 1.35;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal;
}
.st-videos .st-video-title a:hover { color: var(--st-green-1); }
[data-bs-theme=dark] .st-videos .st-video-title a:hover { color: var(--st-green-accent); }
.st-videos .st-video-meta { font-size: .8rem; }
.st-videos .st-video-thumb-icon { color: rgba(255, 255, 255, .4); }

/* list layout keeps the card surface */
.st-videos .st-videos-grid.is-list .st-video-card { border: 1px solid var(--theme-border-color, #eef0f3); box-shadow: none; transition: border-color .15s ease, box-shadow .15s ease; }
.st-videos .st-videos-grid.is-list .st-video-card:hover { border-color: color-mix(in srgb, var(--st-green-1) 40%, transparent); box-shadow: 0 6px 18px rgba(0, 0, 0, .06); }
.st-videos .st-videos-grid.is-list .st-video-title { -webkit-line-clamp: 1; }

/* ---- featured spotlight: green panel beside the big thumbnail ---- */
.st-videos .st-videos-featured { margin-bottom: 1.75rem; border-radius: 1rem; background: var(--st-green-gradient); color: #fff; box-shadow: 0 10px 30px rgba(var(--brand-3-rgb), .16); }
.st-videos .st-videos-featured-body { padding: 1.75rem 2rem; }
.st-videos .st-videos-featured-tag { background: rgba(var(--brand-accent-rgb), .16); color: var(--st-green-accent); }
.st-videos .st-videos-featured-body h3 a { color: #fff; }
.st-videos .st-videos-featured-body h3 a:hover { color: var(--st-green-accent); }
.st-videos .st-videos-featured-desc { color: rgba(255, 255, 255, .72); }
.st-videos .st-videos-featured-meta small { color: rgba(255, 255, 255, .6); }
.st-videos .st-videos-featured .btn-primary { border-color: #fff; background: #fff; color: var(--st-green-1); font-weight: 700; }
.st-videos .st-videos-featured .btn-primary:hover { border-color: var(--st-green-accent); background: var(--st-green-accent); color: var(--st-green-3); }
.st-videos .st-videos-featured .btn-light { border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .1); color: #fff; }
.st-videos .st-videos-featured .btn-light:hover { background: rgba(255, 255, 255, .2); }
.st-videos .st-videos-featured .st-video-thumb::after { display: none; }

/* ---- empty state ---- */
.st-videos .st-videos-empty-icon { background: color-mix(in srgb, var(--st-green-1) 12%, transparent); color: var(--st-green-1); }
[data-bs-theme=dark] .st-videos .st-videos-empty-icon { color: var(--st-green-accent); }

@media (max-width: 575.98px) {
  .st-vhead-top { padding: 1.25rem 1.25rem 1rem; }
  .st-vstat { padding: .85rem 1.25rem; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .st-videos .st-videos-featured-body { padding: 1.25rem; }
}

/* ==================================================================
   Add video page v3 (/videos/upload): Views/Videos/Upload.cshtml + js/app-api/videos-upload.js.
   Same dark green as the library (variables from .st-videos, Video library v3).
   ================================================================== */

/* ---- header + mode switch (on the green) ---- */
.st-addv-head { margin-bottom: 1.25rem; }
.st-addv-head .st-vhead-top { padding-bottom: 1.75rem; }
.st-addv-head .st-vhead-lede strong { color: #fff; }
.st-addv-head .st-upload-modes {
  display: inline-grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem; padding: .3rem;
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 1rem; background: rgba(0, 0, 0, .22);
}
.st-addv-head .st-upload-mode {
  gap: .65rem; padding: .6rem 1rem; border: 0; border-radius: .75rem; background: transparent; color: rgba(255, 255, 255, .8);
  box-shadow: none;
}
.st-addv-head .st-upload-mode > i { color: var(--st-green-accent); font-size: 1.35rem; }
.st-addv-head .st-upload-mode small { color: rgba(255, 255, 255, .55); }
.st-addv-head .st-upload-mode:hover { background: rgba(255, 255, 255, .07); }
.st-addv-head .st-upload-mode.is-active { background: #fff; color: var(--st-green-3); box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
.st-addv-head .st-upload-mode.is-active > i { color: var(--st-green-1); }
.st-addv-head .st-upload-mode.is-active small { color: #5b6b63; }
.st-addv-head .st-upload-mode:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---- layout ---- */
.st-addv-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@media (min-width: 1200px) { .st-addv-layout { grid-template-columns: minmax(0, 1fr) 22rem; } }
.st-addv-card { overflow: hidden; border: 1px solid var(--theme-border-color, #eef0f3); border-radius: 1rem; background: var(--theme-secondary-bg, #fff); }
.st-addv-card .st-upload-section { padding: 1.35rem 1.75rem; }
.st-addv-card .st-upload-section + .st-upload-section { border-top: 1px solid var(--theme-border-color, #eef0f3); }
.st-addv-card .st-upload-section.d-none + .st-upload-section { border-top: 0; }
.st-addv-hint { margin: 1.25rem 1.75rem 0; }

.st-addv-step { display: flex; align-items: center; gap: .6rem; margin: 0 0 1rem; font-size: 1rem; font-weight: 800; }
.st-addv-step > span {
  display: inline-flex; flex: none; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem;
  border-radius: 50%; background: var(--st-green-1); color: #fff; font-size: .8rem; font-weight: 800;
}

/* ---- drop zone + file ---- */
.st-addv .st-dropzone { border-color: color-mix(in srgb, var(--st-green-1) 30%, var(--theme-border-color, #dee2e6)); background: color-mix(in srgb, var(--st-green-1) 4%, transparent); }
.st-addv .st-dropzone:hover, .st-addv .st-dropzone:focus-within { border-color: var(--st-green-1); }
.st-addv .st-dropzone.is-over { border-color: var(--st-green-accent); background: color-mix(in srgb, var(--st-green-accent) 12%, transparent); }
.st-addv .st-dropzone-icon { background: var(--st-green-gradient); color: var(--st-green-accent); box-shadow: 0 8px 20px rgba(var(--brand-3-rgb), .2); }
.st-addv .st-dropzone-link { color: var(--st-green-1); }
[data-bs-theme=dark] .st-addv .st-dropzone-link { color: var(--st-green-accent); }
.st-addv .st-upload-file { border-color: var(--theme-border-color, #eef0f3); }
.st-addv .st-upload-preview { background: var(--st-green-3); }
.st-addv .st-upload-file-icon { background: color-mix(in srgb, var(--st-green-1) 12%, transparent); color: var(--st-green-1); }

/* ---- link input + preview ---- */
.st-addv .st-link-input .form-control:focus,
.st-addv .st-upload-section .form-control:focus { border-color: var(--st-green-1); box-shadow: 0 0 0 3px color-mix(in srgb, var(--st-green-1) 20%, transparent); }
.st-addv .st-link-sources span { display: inline-flex; align-items: center; padding: .15rem .6rem; border-radius: 999px; background: var(--theme-tertiary-bg, #f1f3f5); }
.st-addv .st-link-sources i { color: var(--st-green-1); }
[data-bs-theme=dark] .st-addv .st-link-sources i { color: var(--st-green-accent); }
.st-addv .st-link-preview { border-color: color-mix(in srgb, var(--st-green-1) 25%, transparent); background: color-mix(in srgb, var(--st-green-1) 5%, transparent); }
.st-addv .st-link-preview-media { background: var(--st-green-gradient); }
.st-addv .st-video-source { background: color-mix(in srgb, var(--st-green-1) 14%, transparent); color: var(--st-green-1); }
[data-bs-theme=dark] .st-addv .st-video-source { color: var(--st-green-accent); }

/* ---- who can watch ---- */
.st-addv .st-aud-mode > i { color: var(--st-green-1); }
.st-addv .btn-check:checked + .st-aud-mode { border-color: var(--st-green-1); background: color-mix(in srgb, var(--st-green-1) 7%, transparent); }
.st-addv .st-aud-role input:checked + span { border-color: var(--st-green-1); background: var(--st-green-1); }
.st-addv .st-aud-member .form-check-input:checked { background-color: var(--st-green-1); border-color: var(--st-green-1); }
.st-addv .st-aud-member:has(input:checked) { background: color-mix(in srgb, var(--st-green-1) 7%, transparent); }
[data-bs-theme=dark] .st-addv .st-aud-mode > i { color: var(--st-green-accent); }

/* ---- footer, progress, done ---- */
.st-addv .st-upload-footer, .st-addv .st-upload-progress { margin-top: 0; padding: 1.1rem 1.75rem; border-top: 1px solid var(--theme-border-color, #eef0f3); background: var(--theme-tertiary-bg, #f7f9f8); }
.st-addv #upload-button { padding: .6rem 1.5rem; border: 0; border-radius: 999px; background: var(--st-green-1); color: #fff; font-weight: 700; box-shadow: 0 6px 16px rgba(var(--brand-3-rgb), .2); }
.st-addv #upload-button:hover:not(:disabled) { background: var(--st-green-2); }
.st-addv #upload-button:disabled { background: color-mix(in srgb, var(--st-green-1) 40%, #9aa5a0); box-shadow: none; }
.st-addv .st-upload-footer .btn-light { border-radius: 999px; }
.st-addv .st-upload-progress .progress { border-radius: 999px; background: color-mix(in srgb, var(--st-green-1) 12%, transparent); }
.st-addv .st-upload-progress .progress-bar { border-radius: 999px; background-color: var(--st-green-1); }
.st-addv .st-upload-percent { color: var(--st-green-1); }
[data-bs-theme=dark] .st-addv .st-upload-percent { color: var(--st-green-accent); }

.st-addv .st-upload-done { padding: 3.5rem 1.5rem; }
.st-addv-done-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 4.5rem; height: 4.5rem; margin-bottom: .75rem;
  border-radius: 50%; background: var(--st-green-gradient); color: var(--st-green-accent); font-size: 2.3rem; box-shadow: 0 10px 24px rgba(var(--brand-3-rgb), .25);
}
.st-addv .st-upload-done .btn-primary { border: 0; border-radius: 999px; background: var(--st-green-1); font-weight: 700; }
.st-addv .st-upload-done .btn-primary:hover { background: var(--st-green-2); }
.st-addv .st-upload-done .btn-light { border-radius: 999px; }

/* ---- side panel ---- */
.st-addv-side { overflow: hidden; border: 1px solid var(--theme-border-color, #eef0f3); border-radius: 1rem; background: var(--theme-secondary-bg, #fff); }
.st-addv-side-body { padding: 0 0 1.25rem; }
.st-addv .st-upload-team { margin: 0; padding: 1.1rem 1.25rem; border-radius: 0; color: #fff; background: var(--st-green-gradient); }
.st-addv .st-upload-team-icon { background: rgba(255, 255, 255, .12); color: var(--st-green-accent); }
.st-addv-team-label { color: rgba(255, 255, 255, .65); font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.st-addv .st-upload-side-title { margin: 1.25rem 1.25rem .75rem; }
.st-addv .st-upload-tips { padding: 0 1.25rem; }
.st-addv .st-upload-tips .ti {
  display: inline-flex; align-items: center; justify-content: center; width: 1.9rem; height: 1.9rem; margin-top: -.15rem;
  border-radius: .55rem; background: color-mix(in srgb, var(--st-green-1) 10%, transparent); color: var(--st-green-1); font-size: 1rem;
}
[data-bs-theme=dark] .st-addv .st-upload-tips .ti { color: var(--st-green-accent); }

@media (max-width: 767.98px) {
  .st-addv-head .st-upload-modes { display: grid; width: 100%; }
}
@media (max-width: 575.98px) {
  .st-addv-head .st-upload-modes { grid-template-columns: 1fr; padding: .3rem; }
  .st-addv-card .st-upload-section, .st-addv .st-upload-footer, .st-addv .st-upload-progress { padding-left: 1rem; padding-right: 1rem; }
  .st-addv-hint { margin: 1rem 1rem 0; }
}


/* ==================================================================
   Admin + dashboard v3: Users, Roles, Teams (/admin/*) and the dashboard (/), plus their drawers and
   dialogs, in the sign-in page's dark green, matching the video pages.
   - The green is applied by overriding --theme-primary (and friends) on each page's wrapper, so every
     existing rule built on var(--theme-primary) (buttons, tabs, toggles, chips, charts) turns green
     there without changing the theme elsewhere.
   - .st-hero (the shared page header) becomes the green header with a stats strip, like .st-vhead.
   ================================================================== */
:root {
  --st-green-1: var(--brand-1);
  --st-green-2: var(--brand-2);
  --st-green-3: var(--brand-3);
  --st-green-accent: var(--brand-accent);
  --st-green-gradient: linear-gradient(160deg, var(--st-green-1) 0%, var(--st-green-2) 55%, var(--st-green-3) 100%);
}
.st-users, .st-roles, .st-teams, .st-dash, .st-addv,
.st-users-drawer, .st-member-modal, .st-rolem {
  --theme-primary: var(--brand-1);
  --theme-primary-rgb: var(--brand-1-rgb);
  --theme-primary-text-emphasis: var(--brand-2);
  --theme-primary-bg-subtle: #e3efe9;
  --theme-primary-border-subtle: #b6d3c5;
  --theme-link-color: var(--brand-1);
  --theme-link-color-rgb: var(--brand-1-rgb);
  --theme-link-hover-color: var(--brand-2);
  --theme-link-hover-color-rgb: 8, 48, 31;
}
/* Dark mode: the same green, a step brighter so text and icons stay readable on dark surfaces. */
[data-bs-theme=dark] :is(.st-users, .st-roles, .st-teams, .st-dash, .st-addv, .st-users-drawer, .st-member-modal, .st-rolem) {
  --theme-primary: #1f9d66;
  --theme-primary-rgb: 31, 157, 102;
  --theme-primary-text-emphasis: #178a57;
  --theme-primary-bg-subtle: rgba(31, 157, 102, .18);
  --theme-primary-border-subtle: rgba(31, 157, 102, .4);
  --theme-link-color: var(--brand-accent);
  --theme-link-color-rgb: var(--brand-accent-rgb);
  --theme-link-hover-color: #6fe8a5;
  --theme-link-hover-color-rgb: 111, 232, 165;
}

/* ---- page header (shared by Users, Roles, Teams, Dashboard) ---- */
.st-hero {
  margin-bottom: 1.25rem;
  border-radius: 1rem;
  background:
    radial-gradient(900px 400px at 105% -20%, rgba(255, 255, 255, .08), transparent 60%),
    radial-gradient(700px 500px at -15% 130%, rgba(0, 0, 0, .35), transparent 60%),
    var(--st-green-gradient);
  box-shadow: 0 10px 30px rgba(var(--brand-3-rgb), .18);
}
.st-hero-lines { opacity: .08; }
.st-hero-eyebrow { display: none; }
.st-hero-body { align-items: center; padding: 1.75rem 2rem 1.25rem; }
.st-hero h2 { margin: 0 0 .3rem; font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -.02em; line-height: 1.1; }
.st-hero-lede { color: rgba(255, 255, 255, .75); }
.st-hero .st-users-add {
  padding: .6rem 1.15rem; border: 0; border-radius: 999px; font-size: 1rem; font-weight: 700;
  background: #fff; color: var(--st-green-1); box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
}
.st-hero .st-users-add:hover, .st-hero .st-users-add:focus-visible { background: var(--st-green-accent); color: var(--st-green-3); }
.st-hero .st-dash-refresh { width: 2.9rem; height: 2.9rem; border-radius: 50%; border-color: rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); }
.st-hero .st-dash-refresh:hover { background: rgba(255, 255, 255, .18); color: var(--st-green-accent); }

/* stats strip */
.st-hero-stats {
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0; padding: 0;
  border-top: 1px solid rgba(255, 255, 255, .1); background: rgba(0, 0, 0, .18);
}
.st-hero-stat {
  padding: 1rem 2rem; border: 0; border-right: 1px solid rgba(255, 255, 255, .08); border-radius: 0;
  background: transparent; text-decoration: none;
}
.st-hero-stat:last-child { border-right: 0; }
.st-hero-stat:hover { background: rgba(255, 255, 255, .06); transform: none; }
.st-hero-stat.is-static:hover { background: transparent; }
.st-hero-stat:focus-visible { outline-offset: -4px; }
.st-hero-stat.active { border-color: rgba(255, 255, 255, .08); background: rgba(var(--brand-accent-rgb), .12); box-shadow: inset 0 3px 0 var(--st-green-accent); }
.st-hero-stat-label { color: rgba(255, 255, 255, .7); font-size: .72rem; letter-spacing: .05em; }
.st-hero-stat-label .ti { color: var(--st-green-accent); font-size: .95rem; }
.st-hero-stat strong { font-size: 1.45rem; }
.st-hero-stat small { color: rgba(255, 255, 255, .55); }
.st-hero-meter { background: rgba(255, 255, 255, .14); }
.st-hero-meter span { background: var(--st-green-accent); }
@media (max-width: 575.98px) {
  .st-hero-body { padding: 1.25rem; }
  .st-hero-stat { padding: .85rem 1.25rem; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
}

/* ---- cards, toolbars, segments ---- */
:is(.st-users, .st-roles, .st-teams, .st-dash) .card {
  border: 1px solid var(--theme-border-color, #eef0f3); border-radius: 1rem; box-shadow: none;
}
:is(.st-users, .st-teams) .st-users-search .form-control,
.st-roles .st-users-search .form-control {
  border: 0; background: var(--theme-tertiary-bg, #f1f3f5);
}
:is(.st-users, .st-roles, .st-teams) .st-users-search .form-control:focus { box-shadow: 0 0 0 3px rgba(var(--theme-primary-rgb), .2); }
:is(.st-users, .st-teams, .st-dash) .st-users-segment {
  gap: .2rem; padding: .2rem; border-radius: 999px; background: var(--theme-tertiary-bg, #f1f3f5);
}
:is(.st-users, .st-teams, .st-dash) .st-users-segment > .btn {
  height: 2.1rem; padding: 0 .95rem; border: 0 !important; border-radius: 999px !important;
  background: transparent; color: var(--theme-secondary-color, #6c757d); font-size: .85rem; font-weight: 600;
}
:is(.st-users, .st-teams, .st-dash) .st-users-segment > .btn:hover { color: var(--theme-emphasis-color, #212529); }
:is(.st-users, .st-teams, .st-dash) .st-users-segment .btn-check:checked + .btn { background: var(--theme-primary); color: #fff; }
:is(.st-users, .st-teams) .st-users-table thead th { font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; }
:is(.st-users, .st-teams) .st-users-table tbody tr[data-id]:hover > td { background: rgba(var(--theme-primary-rgb), .04); }

/* roles: tabs + list */
.st-roles .nav-pills .nav-link { border-radius: 999px; font-weight: 600; }
.st-roles .nav-pills .nav-link.active { background: var(--st-green-gradient); }
.st-roles-head-icon { background: var(--st-green-gradient); color: var(--st-green-accent); }
.st-roles-item { border-radius: .85rem; }

/* dashboard cards */
.st-dash-card-head h5 { display: flex; align-items: center; gap: .5rem; }
.st-dash-card-head h5::before { content: ""; width: .3rem; height: 1.05rem; border-radius: 999px; background: var(--st-green-gradient); }
[data-bs-theme=dark] .st-dash-card-head h5::before { background: var(--st-green-accent); }

/* ---- drawers + dialogs ---- */
.st-member-preview, .st-rolem-header { background: radial-gradient(600px 300px at 110% -10%, rgba(255, 255, 255, .08), transparent 60%), var(--st-green-gradient); }
.st-rolem-header .st-rolem-icon { color: var(--st-green-accent); }
.st-member-modal .modal-content, .st-rolem .modal-content { border: 0; border-radius: 1rem; overflow: hidden; }
:is(.st-member-modal, .st-rolem) .modal-footer .btn { border-radius: 999px; }
:is(.st-member-modal, .st-rolem) .modal-footer .btn-primary { padding-left: 1.25rem; padding-right: 1.25rem; font-weight: 700; }
.st-users-drawer .offcanvas-header { color: #fff; background: var(--st-green-gradient); }
.st-users-drawer .offcanvas-header :is(h5, .offcanvas-title) { color: #fff; }
.st-users-drawer .offcanvas-header .btn-close { filter: invert(1) grayscale(1) brightness(2); }

/* ---- add video: upload / link switch at the top of the form, selected option filled green ---- */
.st-addv-modes { padding: 1.35rem 1.75rem 0; }
.st-addv-modes .st-upload-mode { border-radius: .9rem; }
.st-addv-modes .st-upload-mode > i { color: var(--st-green-1); }
.st-addv-modes .st-upload-mode.is-active {
  border-color: transparent; background: var(--st-green-gradient); color: #fff;
  box-shadow: 0 8px 20px rgba(var(--brand-3-rgb), .22);
}
.st-addv-modes .st-upload-mode.is-active > i { color: var(--st-green-accent); }
.st-addv-modes .st-upload-mode.is-active small { color: rgba(255, 255, 255, .7); }
.st-addv-modes .st-upload-mode:not(.is-active):hover { border-color: var(--st-green-1); background: rgba(var(--theme-primary-rgb), .04); }
.st-addv-modes .st-upload-mode:disabled { opacity: .6; cursor: not-allowed; }
[data-bs-theme=dark] .st-addv-modes .st-upload-mode:not(.is-active) > i { color: var(--st-green-accent); }
.st-addv-modes + .st-upload-section, .st-addv-modes + .alert + .st-upload-section { border-top: 0; }
@media (max-width: 575.98px) { .st-addv-modes { padding: 1rem 1rem 0; } }
.st-users-drawer .offcanvas-header .text-muted { color: rgba(255, 255, 255, .75) !important; letter-spacing: .05em; }


/* ==================================================================
   Account pages v3 (/Account/*: Views/Shared/_ManageLayout.cshtml, Views/Manage/*): the green design.
   The page wrapper gets the green --theme-primary (as in Admin + dashboard v3), the profile header
   becomes the green page header, and the selected menu item is filled with the green.
   ================================================================== */
.st-account {
  --theme-primary: var(--brand-1);
  --theme-primary-rgb: var(--brand-1-rgb);
  --theme-primary-text-emphasis: var(--brand-2);
  --theme-primary-bg-subtle: #e3efe9;
  --theme-primary-border-subtle: #b6d3c5;
  --theme-link-color: var(--brand-1);
  --theme-link-color-rgb: var(--brand-1-rgb);
  --theme-link-hover-color: var(--brand-2);
  --theme-link-hover-color-rgb: 8, 48, 31;
}
[data-bs-theme=dark] .st-account {
  --theme-primary: #1f9d66;
  --theme-primary-rgb: 31, 157, 102;
  --theme-primary-text-emphasis: #178a57;
  --theme-primary-bg-subtle: rgba(31, 157, 102, .18);
  --theme-primary-border-subtle: rgba(31, 157, 102, .4);
  --theme-link-color: var(--brand-accent);
  --theme-link-color-rgb: var(--brand-accent-rgb);
  --theme-link-hover-color: #6fe8a5;
  --theme-link-hover-color-rgb: 111, 232, 165;
}

/* ---- profile header: the whole card is the green header ---- */
.st-account .st-account-hero {
  position: relative; margin-bottom: 1.25rem; border: 0; border-radius: 1rem; color: #fff;
  background:
    radial-gradient(900px 400px at 105% -20%, rgba(255, 255, 255, .08), transparent 60%),
    radial-gradient(700px 500px at -15% 130%, rgba(0, 0, 0, .35), transparent 60%),
    var(--st-green-gradient);
  box-shadow: 0 10px 30px rgba(var(--brand-3-rgb), .18);
}
.st-account .st-account-cover { position: absolute; inset: 0; height: auto; background: none; pointer-events: none; }
.st-account .st-account-cover svg { opacity: .08; }
.st-account .st-account-hero-body { position: relative; align-items: center; padding: 1.75rem 2rem; }
.st-account .st-account-avatar {
  width: 76px; height: 76px; margin-top: 0; border: 3px solid rgba(255, 255, 255, .25); border-radius: 1.25rem;
  background: #fff; color: var(--st-green-1); font-size: 1.65rem; box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
}
.st-account .st-account-identity h3 { margin-bottom: .4rem; color: #fff; font-size: clamp(1.35rem, 2.2vw, 1.85rem); font-weight: 800; letter-spacing: -.02em; }
.st-account .st-account-meta { color: rgba(255, 255, 255, .72); }
.st-account .st-account-meta i { color: var(--st-green-accent); }
.st-account .st-account-role {
  padding: .45rem .8rem; border: 1px solid rgba(255, 255, 255, .15); border-radius: 999px;
  background: rgba(255, 255, 255, .1); color: #fff;
}
.st-account .st-account-role .ti { color: var(--st-green-accent); }

/* ---- section menu: selected item filled green ---- */
.st-account .st-account-nav { border: 1px solid var(--theme-border-color, #eef0f3); border-radius: 1rem; box-shadow: none; overflow: hidden; }
.st-account .st-account-nav-link { border-radius: .8rem; transition: background-color .15s ease, color .15s ease; }
.st-account .st-account-nav-link:hover { background: rgba(var(--theme-primary-rgb), .06); }
.st-account .st-account-nav-icon { background: rgba(var(--theme-primary-rgb), .1); color: var(--theme-primary); }
[data-bs-theme=dark] .st-account .st-account-nav-icon { color: var(--st-green-accent); }
.st-account .st-account-nav-link.active { background: var(--st-green-gradient); color: #fff; box-shadow: 0 6px 16px rgba(var(--brand-3-rgb), .2); }
.st-account .st-account-nav-link.active strong { color: #fff; }
.st-account .st-account-nav-link.active small { color: rgba(255, 255, 255, .7); }
.st-account .st-account-nav-link.active .st-account-nav-icon { background: rgba(255, 255, 255, .12); color: var(--st-green-accent); }
.st-account .st-account-nav-link.active .badge { background: rgba(255, 255, 255, .16) !important; color: #fff !important; }

/* ---- content cards ---- */
.st-account .card:not(.st-account-hero):not(.st-account-nav) { border: 1px solid var(--theme-border-color, #eef0f3); border-radius: 1rem; box-shadow: none; }
.st-account .st-account-card-head h4 { display: flex; align-items: center; gap: .5rem; }
.st-account .st-account-card-head h4::before { content: ""; flex: none; width: .3rem; height: 1.1rem; border-radius: 999px; background: var(--st-green-gradient); }
[data-bs-theme=dark] .st-account .st-account-card-head h4::before { background: var(--st-green-accent); }
.st-account .st-account-row-icon { background: rgba(var(--theme-primary-rgb), .1); color: var(--theme-primary); }
[data-bs-theme=dark] .st-account .st-account-row-icon { color: var(--st-green-accent); }
.st-account .st-account-step-num { background: var(--st-green-gradient); color: #fff; }
.st-account .form-control:focus, .st-account .form-select:focus { border-color: var(--theme-primary); box-shadow: 0 0 0 3px rgba(var(--theme-primary-rgb), .18); }
.st-account .btn { border-radius: 999px; }
.st-account .btn-primary { padding-left: 1.25rem; padding-right: 1.25rem; font-weight: 700; }
.st-account .st-login-field .st-login-reveal { border-radius: 50%; }

@media (max-width: 575.98px) {
  .st-account .st-account-hero-body { padding: 1.25rem; }
}


/* ==================================================================
   Signed-out pages v3 (_AuthLayout: Login, Register, Forgot / Reset password, confirmations, 2FA,
   Lockout...): the form column uses the same dark green as the brand panel and the app pages.
   ================================================================== */
.st-login {
  --theme-primary: var(--brand-1);
  --theme-primary-rgb: var(--brand-1-rgb);
  --theme-primary-text-emphasis: var(--brand-2);
  --theme-primary-bg-subtle: #e3efe9;
  --theme-primary-border-subtle: #b6d3c5;
  --theme-link-color: var(--brand-1);
  --theme-link-color-rgb: var(--brand-1-rgb);
  --theme-link-hover-color: var(--brand-2);
  --theme-link-hover-color-rgb: 8, 48, 31;
}
[data-bs-theme=dark] .st-login {
  --theme-primary: #1f9d66;
  --theme-primary-rgb: 31, 157, 102;
  --theme-primary-text-emphasis: #178a57;
  --theme-primary-bg-subtle: rgba(31, 157, 102, .18);
  --theme-primary-border-subtle: rgba(31, 157, 102, .4);
  --theme-link-color: var(--brand-accent);
  --theme-link-color-rgb: var(--brand-accent-rgb);
  --theme-link-hover-color: #6fe8a5;
  --theme-link-hover-color-rgb: 111, 232, 165;
}

/* brand mark + headline accents in the green panel */
.st-login-brand .st-login-mark { color: var(--st-green-1); }
.st-login-brand .st-login-eyebrow { border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .1); }
.st-login-brand .st-login-eyebrow .ti, .st-login-brand .st-login-feature-icon { color: var(--st-green-accent); }
.st-login-wordmark-sm .st-login-mark { background: var(--st-green-gradient); color: var(--st-green-accent); }

/* title gets the small green marker used on app cards */
.st-login-title { display: flex; align-items: center; gap: .6rem; }
.st-login-title::before { content: ""; flex: none; width: .35rem; height: 1.5rem; border-radius: 999px; background: var(--st-green-gradient); }
[data-bs-theme=dark] .st-login-title::before { background: var(--st-green-accent); }
.st-auth-state .st-login-title { justify-content: center; }
.st-auth-state .st-login-title::before { display: none; }

/* fields */
.st-login .form-control:focus, .st-login .form-select:focus { border-color: var(--theme-primary); box-shadow: 0 0 0 3px rgba(var(--theme-primary-rgb), .18); }
.st-login-field > .ti { color: var(--theme-primary); }
[data-bs-theme=dark] .st-login-field > .ti { color: var(--st-green-accent); }
.st-login .form-check-input:checked { border-color: var(--theme-primary); background-color: var(--theme-primary); }
.st-login .form-check-input:focus { border-color: var(--theme-primary); box-shadow: 0 0 0 3px rgba(var(--theme-primary-rgb), .18); }

/* buttons */
.st-login .btn { border-radius: 999px; }
.st-login .btn-primary {
  border: 0; background: var(--st-green-gradient); color: #fff; font-weight: 700;
  box-shadow: 0 8px 20px rgba(var(--brand-3-rgb), .22); transition: box-shadow .15s ease, transform .15s ease, filter .15s ease;
}
.st-login .btn-primary:hover, .st-login .btn-primary:focus-visible { color: #fff; filter: brightness(1.15); box-shadow: 0 10px 24px rgba(var(--brand-3-rgb), .3); transform: translateY(-1px); }
.st-login .btn-primary:active { transform: none; }
.st-login .btn-outline-primary { border-color: var(--theme-primary); color: var(--theme-primary); font-weight: 600; }
.st-login .btn-outline-primary:hover { background: var(--theme-primary); color: #fff; }
[data-bs-theme=dark] .st-login .btn-outline-primary { border-color: var(--st-green-accent); color: var(--st-green-accent); }
[data-bs-theme=dark] .st-login .btn-outline-primary:hover { background: var(--st-green-accent); color: var(--st-green-3); }

/* links, back link, help text */
.st-login-main a:not(.btn):not(.dropdown-item):not(.st-login-wordmark) { color: var(--theme-link-color); font-weight: 600; }
.st-login-main a:not(.btn):not(.dropdown-item):not(.st-login-wordmark):hover { color: var(--theme-link-hover-color); }
.st-login-back { border-radius: 999px; }

/* state pages (check your email, password reset sent, confirmed, locked out...) */
.st-auth-state-icon.is-info, .st-auth-state-icon.is-success {
  background: var(--st-green-gradient); color: var(--st-green-accent); box-shadow: 0 10px 24px rgba(var(--brand-3-rgb), .25);
}


/* ==================================================================
   Error pages v3 (Views/Error/Status.cshtml): the sign-in page's dark green background, green buttons and
   links, green scoreboard tiles. The tone colour (info / warning / danger) stays on the tile edge and label
   so the kind of error still reads at a glance.
   ================================================================== */
.st-err {
  --theme-primary: var(--brand-1);
  --theme-primary-rgb: var(--brand-1-rgb);
  --theme-primary-text-emphasis: var(--brand-2);
  --theme-primary-bg-subtle: #e3efe9;
  --theme-link-color: var(--brand-1);
  --theme-link-hover-color: var(--brand-2);
  background:
    radial-gradient(1000px 520px at 85% -10%, rgba(255, 255, 255, .08), transparent 60%),
    radial-gradient(800px 600px at -15% 120%, rgba(0, 0, 0, .35), transparent 60%),
    var(--st-green-gradient);
}
[data-bs-theme=dark] .st-err {
  --theme-primary: #1f9d66;
  --theme-primary-rgb: 31, 157, 102;
  --theme-primary-text-emphasis: #178a57;
  --theme-primary-bg-subtle: rgba(31, 157, 102, .18);
  --theme-link-color: var(--brand-accent);
  --theme-link-hover-color: #6fe8a5;
}
.st-err-pitch { opacity: .08; }
.st-err .st-login-mark { color: var(--st-green-1); }
.st-err-theme:hover { color: var(--st-green-accent); }

.st-err-card { border-radius: 1.25rem; box-shadow: 0 30px 80px rgba(var(--brand-3-rgb), .45); }
.st-err-digit {
  background: linear-gradient(180deg, var(--st-green-1) 0%, var(--st-green-2) 49%, var(--st-green-3) 51%, #020d08 100%);
  box-shadow: 0 12px 28px rgba(var(--brand-3-rgb), .45), inset 0 -4px 0 var(--err);
}
.st-err-card h1 { letter-spacing: -.02em; }

.st-err-actions .btn { border-radius: 999px; }
.st-err-actions .btn-primary {
  border: 0; background: var(--st-green-gradient); color: #fff; font-weight: 700; box-shadow: 0 8px 20px rgba(var(--brand-3-rgb), .22);
  transition: filter .15s ease, transform .15s ease, box-shadow .15s ease;
}
.st-err-actions .btn-primary:hover, .st-err-actions .btn-primary:focus-visible { color: #fff; filter: brightness(1.15); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(var(--brand-3-rgb), .3); }
.st-err-actions .btn-light:hover { border-color: var(--theme-primary); color: var(--theme-primary); }
.st-err-path .ti { color: var(--theme-primary); }
.st-err-switch button, .st-err-switch a { color: var(--theme-link-color); font-weight: 600; }
.st-err-refcode:hover { border-color: var(--theme-primary); color: var(--theme-primary); }
.st-err-refcode.is-copied { border-color: var(--theme-primary); color: var(--theme-primary); }
[data-bs-theme=dark] .st-err-path .ti, [data-bs-theme=dark] .st-err-refcode.is-copied { color: var(--st-green-accent); }


/* ==================================================================
   App brand (Views/Shared/Partials/_Topbar.cshtml + _Sidenav.cshtml): the landing page's wordmark
   (green ball mark + "AlemodSports") in place of the template's image logos. .is-ondark is used where the
   theme shows its "logo-light" (dark menus / top bars), .is-onlight where it shows "logo-dark".
   ================================================================== */
.st-brand {
  display: inline-flex; align-items: center; gap: .6rem; vertical-align: middle;
  font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; line-height: 1; white-space: nowrap;
}
.st-brand.is-ondark { color: #fff; }
.st-brand.is-onlight { color: var(--theme-emphasis-color, #212529); }
.st-brand-mark {
  display: inline-flex; flex: none; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem;
  border-radius: .6rem; background: var(--st-green-gradient); color: var(--st-green-accent); font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(4, 26, 17, .25);
}
.st-brand.is-ondark .st-brand-mark { background: #fff; color: var(--st-green-1); box-shadow: none; }
.st-brand-sm .st-brand-mark { width: 2.25rem; height: 2.25rem; }
a:hover > .logo-lg > .st-brand, a:hover .st-brand { text-decoration: none; }

/* Logo as a link (sign-in brand panel and small screens): no underline; a little larger in the brand panel. */
.st-brand-link { display: inline-flex; align-self: flex-start; text-decoration: none; }
.st-brand-link:hover { text-decoration: none; }
.st-brand-lg { font-size: 1.35rem; gap: .7rem; }
.st-brand-lg .st-brand-mark { width: 2.4rem; height: 2.4rem; border-radius: .7rem; font-size: 1.45rem; }

/* The brand mark is the Alemod Sports badge (wwwroot/images/brand/alemod-badge-*.png, "02 Badge flat dark"): the image
   is the whole mark, so no tile, shadow or rounding behind it. Used by the top bar, side menu, sign-in, error and landing pages. */
.st-brand-mark.brand-logo, .sl-mark.brand-logo {
  display: block; width: 2.5rem; height: 2.5rem; padding: 0; object-fit: contain;
  background: none !important; box-shadow: none !important; border-radius: 0 !important; transform: none;
}
.st-brand-sm .st-brand-mark.brand-logo { width: 2.4rem; height: 2.4rem; }
.st-brand-lg .st-brand-mark.brand-logo { width: 3rem; height: 3rem; }
/* On dark bars the badge's own dark ink would blend in: a thin light outline keeps its octagon visible. */
.st-brand.is-ondark .st-brand-mark.brand-logo, .sl-nav .sl-mark.brand-logo, .sl-footer .sl-mark.brand-logo { filter: drop-shadow(0 0 1px rgba(255, 255, 255, .55)); }


/* ==================================================================
   Support center (/support): Views/Support/Index.cshtml + js/app-api/support.js.
   Green header (.st-vhead) with the search, topic cards, guides as <details>, side panel.
   ================================================================== */
.st-help {
  --theme-primary: var(--brand-1); --theme-primary-rgb: var(--brand-1-rgb); --theme-primary-text-emphasis: var(--brand-2);
  --theme-primary-bg-subtle: #e3efe9; --theme-link-color: var(--brand-1); --theme-link-hover-color: var(--brand-2);
}
[data-bs-theme=dark] .st-help {
  --theme-primary: #1f9d66; --theme-primary-rgb: 31, 157, 102; --theme-primary-text-emphasis: #178a57;
  --theme-primary-bg-subtle: rgba(31, 157, 102, .18); --theme-link-color: var(--brand-accent); --theme-link-hover-color: #6fe8a5;
}

/* ---- header search ---- */
.st-help-top .st-vhead-text { flex: 1 1 100%; max-width: 70rem; }
.st-help-search { position: relative; margin-top: 1.25rem; max-width: 52rem; }
.st-help-search > .ti { position: absolute; top: 50%; left: 1.15rem; transform: translateY(-50%); color: var(--st-green-1); font-size: 1.25rem; pointer-events: none; }
.st-help-search .form-control {
  height: 3.4rem; padding-left: 3.1rem; padding-right: 3rem; border: 0; border-radius: 999px;
  background: #fff; color: #1b2a23; font-size: 1.05rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.st-help-search .form-control::placeholder { color: #7b8a83; }
.st-help-search .form-control:focus { box-shadow: 0 0 0 4px rgba(var(--brand-accent-rgb), .45), 0 10px 30px rgba(0, 0, 0, .25); }
.st-help-search kbd { position: absolute; top: 50%; right: 1.1rem; transform: translateY(-50%); padding: .05rem .45rem; border: 1px solid #cfd8d3; border-radius: .35rem; background: #f3f6f4; color: #5b6b63; font-size: .78rem; }
.st-help-popular { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .5rem; margin-top: .9rem; font-size: .85rem; }
.st-help-popular > span { color: rgba(255, 255, 255, .6); font-weight: 600; }
@media (min-width: 992px) { .st-help-popular { flex-wrap: nowrap; } .st-help-popular a { white-space: nowrap; } }
.st-help-popular a {
  padding: .25rem .75rem; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px;
  background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; transition: background-color .15s ease, border-color .15s ease;
}
.st-help-popular a:hover { border-color: var(--st-green-accent); background: rgba(var(--brand-accent-rgb), .15); color: #fff; }
.st-help-head .st-vstat small a { color: var(--st-green-accent); text-decoration: none; }
.st-help-head .st-vstat small a:hover { text-decoration: underline; }
.st-help-head a.st-vstat { text-decoration: none; }

/* ---- layout ---- */
.st-help-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@media (min-width: 1200px) { .st-help-layout { grid-template-columns: minmax(0, 1fr) 21rem; } }
.st-help-side { display: grid; gap: 1rem; }
@media (min-width: 1200px) { .st-help-side { position: sticky; top: calc(var(--theme-topbar-height, 65px) + 1rem); } }

/* ---- topic cards ---- */
.st-help-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); gap: .85rem; margin-bottom: 1.75rem; }
.st-help-topic-card {
  position: relative; display: flex; flex-direction: column; gap: .2rem; padding: 1.1rem 1.15rem 1rem;
  border: 1px solid var(--theme-border-color, #eef0f3); border-radius: 1rem; background: var(--theme-secondary-bg, #fff);
  color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.st-help-topic-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--st-green-1) 40%, transparent); box-shadow: 0 12px 26px rgba(var(--brand-3-rgb), .1); color: inherit; }
.st-help-topic-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; margin-bottom: .5rem;
  border-radius: .8rem; background: var(--st-green-gradient); color: var(--st-green-accent); font-size: 1.3rem;
}
.st-help-topic-card strong { font-size: .98rem; font-weight: 800; }
.st-help-topic-card small { color: var(--theme-secondary-color, #6c757d); font-size: .8rem; line-height: 1.4; }
.st-help-topic-card em { margin-top: .5rem; color: var(--theme-primary); font-size: .75rem; font-style: normal; font-weight: 700; }
[data-bs-theme=dark] .st-help-topic-card em { color: var(--st-green-accent); }

/* ---- topics + guides ---- */
.st-help-result:empty { display: none; }
.st-help-result { margin-bottom: 1rem; color: var(--theme-secondary-color, #6c757d); }
.st-help-topic { margin-bottom: 2rem; scroll-margin-top: calc(var(--theme-topbar-height, 65px) + 1rem); }
.st-help-topic-title { display: flex; align-items: center; gap: .55rem; margin: 0 0 .85rem; font-size: 1.15rem; font-weight: 800; }
.st-help-topic-title .ti { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: .6rem; background: rgba(var(--theme-primary-rgb), .1); color: var(--theme-primary); font-size: 1.05rem; }
[data-bs-theme=dark] .st-help-topic-title .ti { color: var(--st-green-accent); }

.st-help-article {
  margin-bottom: .6rem; border: 1px solid var(--theme-border-color, #eef0f3); border-radius: .9rem;
  background: var(--theme-secondary-bg, #fff); scroll-margin-top: calc(var(--theme-topbar-height, 65px) + 1rem);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.st-help-article[open] { border-color: color-mix(in srgb, var(--st-green-1) 35%, transparent); box-shadow: 0 8px 22px rgba(var(--brand-3-rgb), .07); }
.st-help-article > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .95rem 1.15rem;
  font-weight: 700; cursor: pointer; list-style: none; border-radius: .9rem;
}
.st-help-article > summary::-webkit-details-marker { display: none; }
.st-help-article > summary:hover { color: var(--theme-primary); }
[data-bs-theme=dark] .st-help-article > summary:hover { color: var(--st-green-accent); }
.st-help-article > summary:focus-visible { outline: 3px solid rgba(var(--theme-primary-rgb), .35); outline-offset: 2px; }
.st-help-article > summary .ti { flex: none; color: var(--theme-secondary-color, #6c757d); transition: transform .2s ease; }
.st-help-article[open] > summary .ti { transform: rotate(180deg); color: var(--theme-primary); }
.st-help-article mark { padding: 0 .1rem; border-radius: .2rem; background: rgba(var(--brand-accent-rgb), .35); color: inherit; }
.st-help-article.is-flash { animation: st-help-flash 1.6s ease; }
@keyframes st-help-flash { 0%, 30% { box-shadow: 0 0 0 4px rgba(var(--brand-accent-rgb), .55); } 100% { box-shadow: 0 8px 22px rgba(var(--brand-3-rgb), .07); } }

.st-help-body { padding: 0 1.15rem 1.1rem; color: var(--theme-body-color, #212529); line-height: 1.6; }
.st-help-body p { margin-bottom: .7rem; }
.st-help-body ul { margin-bottom: .7rem; padding-left: 1.15rem; }
.st-help-body li { margin-bottom: .35rem; }
.st-help-body kbd, .st-help-keys kbd { padding: .05rem .4rem; border: 1px solid var(--theme-border-color, #dee2e6); border-radius: .3rem; background: var(--theme-tertiary-bg, #f3f5f4); color: var(--theme-emphasis-color, #212529); font-size: .8rem; box-shadow: inset 0 -1px 0 var(--theme-border-color, #dee2e6); }
.st-help-steps { counter-reset: step; margin: 0 0 .8rem; padding: 0; list-style: none; }
.st-help-steps > li { position: relative; margin-bottom: .55rem; padding-left: 2.2rem; }
.st-help-steps > li::before {
  counter-increment: step; content: counter(step); position: absolute; left: 0; top: .1rem;
  display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem;
  border-radius: 50%; background: var(--st-green-gradient); color: #fff; font-size: .75rem; font-weight: 800;
}
.st-help-note { display: flex; gap: .5rem; padding: .65rem .85rem; border-radius: .7rem; background: rgba(var(--theme-primary-rgb), .07); font-size: .88rem; }
.st-help-note .ti { flex: none; margin-top: .15rem; color: var(--theme-primary); }
[data-bs-theme=dark] .st-help-note .ti { color: var(--st-green-accent); }
.st-help-table { margin: .25rem 0 .8rem; font-size: .88rem; }
.st-help-table th { color: var(--theme-secondary-color, #6c757d); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; }
.st-help-table tr.is-you td { background: rgba(var(--theme-primary-rgb), .08); font-weight: 600; }

.st-help-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .9rem; padding-top: .85rem; border-top: 1px dashed var(--theme-border-color, #dee2e6); }
.st-help-go { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem 1rem; border-radius: 999px; background: var(--st-green-gradient); color: #fff; font-size: .85rem; font-weight: 700; text-decoration: none; }
.st-help-go:hover { color: #fff; filter: brightness(1.15); }
.st-help-copy { display: inline-flex; align-items: center; gap: .35rem; margin-left: auto; padding: .4rem .85rem; border: 1px solid var(--theme-border-color, #dee2e6); border-radius: 999px; background: transparent; color: var(--theme-secondary-color, #6c757d); font-size: .8rem; font-weight: 600; }
.st-help-copy:hover { border-color: var(--theme-primary); color: var(--theme-primary); }
.st-help-copy.is-done { border-color: var(--theme-primary); color: var(--theme-primary); }

.st-help-empty { padding: 3rem 1rem; text-align: center; }
.st-help-empty h3 { margin: .75rem 0 .35rem; font-size: 1.15rem; font-weight: 800; }
.st-help-empty p { color: var(--theme-secondary-color, #6c757d); }
.st-help-empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: rgba(var(--theme-primary-rgb), .1); color: var(--theme-primary); font-size: 1.6rem; }

/* ---- side panel ---- */
.st-help-contact {
  position: relative; overflow: hidden; padding: 1.4rem; border-radius: 1rem; color: #fff;
  background: radial-gradient(500px 240px at 110% -20%, rgba(255, 255, 255, .1), transparent 60%), var(--st-green-gradient);
  box-shadow: 0 10px 28px rgba(var(--brand-3-rgb), .2);
}
.st-help-contact-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; margin-bottom: .75rem; border-radius: .8rem; background: rgba(255, 255, 255, .12); color: var(--st-green-accent); font-size: 1.35rem; }
.st-help-contact h3 { margin: 0 0 .4rem; color: #fff; font-size: 1.1rem; font-weight: 800; }
.st-help-contact p { margin-bottom: 1rem; color: rgba(255, 255, 255, .75); font-size: .9rem; }
.st-help-contact .btn { display: inline-flex; align-items: center; }
.st-help-contact small { display: block; margin-top: .6rem; color: rgba(255, 255, 255, .6); text-align: center; }
.st-help-card { padding: 1.15rem 1.25rem; border: 1px solid var(--theme-border-color, #eef0f3); border-radius: 1rem; background: var(--theme-secondary-bg, #fff); }
.st-help-card h3 { display: flex; align-items: center; gap: .45rem; margin: 0 0 .85rem; font-size: .95rem; font-weight: 800; }
.st-help-card h3 .ti { color: var(--theme-primary); font-size: 1.15rem; }
[data-bs-theme=dark] .st-help-card h3 .ti { color: var(--st-green-accent); }
.st-help-keys { display: grid; gap: .6rem; margin: 0; }
.st-help-keys > div { display: flex; align-items: baseline; gap: .75rem; }
.st-help-keys dt { flex: 0 0 3.5rem; }
.st-help-keys dd { margin: 0; color: var(--theme-secondary-color, #6c757d); font-size: .85rem; }
.st-help-tips { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; font-size: .85rem; color: var(--theme-secondary-color, #6c757d); }
.st-help-tips li { position: relative; padding-left: 1.1rem; }
.st-help-tips li::before { content: ""; position: absolute; left: 0; top: .5rem; width: .4rem; height: .4rem; border-radius: 50%; background: var(--st-green-accent); }

@media (max-width: 575.98px) {
  .st-help-search .form-control { height: 3rem; font-size: 1rem; }
  .st-help-copy { margin-left: 0; }
}


/* ==================================================================
   Lock screen (/lock: Views/Lock/Index.cshtml, sign-in layout) and the "Still there?" warning
   (js/app-api/lock-screen.js), in the green design.
   ================================================================== */
.st-lock-who {
  display: flex; align-items: center; gap: .9rem; margin-bottom: 1.75rem; padding: .85rem 1rem;
  border: 1px solid var(--theme-border-color, #eef0f3); border-radius: 1rem; background: var(--theme-tertiary-bg, #f6f8f7);
}
.st-lock-avatar {
  position: relative; display: inline-flex; flex: none; align-items: center; justify-content: center; width: 3.4rem; height: 3.4rem;
  border-radius: 1rem; background: var(--st-green-gradient); color: #fff; font-size: 1.2rem; font-weight: 800;
  box-shadow: 0 6px 16px rgba(var(--brand-3-rgb), .25);
}
.st-lock-badge {
  position: absolute; right: -.4rem; bottom: -.4rem; display: inline-flex; align-items: center; justify-content: center;
  width: 1.55rem; height: 1.55rem; border: 2px solid var(--theme-secondary-bg, #fff); border-radius: 50%;
  background: var(--st-green-accent); color: var(--st-green-3); font-size: .8rem;
}
.st-lock-name { overflow: hidden; font-size: 1.05rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.st-lock-email { overflow: hidden; color: var(--theme-secondary-color, #6c757d); font-size: .85rem; text-overflow: ellipsis; white-space: nowrap; }
.st-lock-switch { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35rem; margin-top: 1.5rem; color: var(--theme-secondary-color, #6c757d); font-size: .9rem; }
.st-lock-switch .btn-link { color: var(--theme-link-color); font-weight: 600; text-decoration: none; }
.st-lock-switch .btn-link:hover { text-decoration: underline; }

.st-lockwarn .modal-content { border: 0; border-radius: 1.1rem; overflow: hidden; }
.st-lockwarn .modal-body { padding: 1.75rem 1.5rem 1.5rem; }
.st-lockwarn-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; margin-bottom: .85rem;
  border-radius: 50%; background: var(--st-green-gradient); color: var(--st-green-accent); font-size: 1.6rem;
  box-shadow: 0 0 0 6px rgba(var(--brand-accent-rgb), .15); animation: st-lockwarn-pulse 1.5s ease-in-out infinite;
}
@keyframes st-lockwarn-pulse { 50% { box-shadow: 0 0 0 10px rgba(var(--brand-accent-rgb), .05); } }
.st-lockwarn h5 { margin-bottom: .4rem; font-weight: 800; }
.st-lockwarn p { color: var(--theme-secondary-color, #6c757d); }
.st-lockwarn p strong { color: var(--theme-emphasis-color, #212529); font-variant-numeric: tabular-nums; }
.st-lockwarn .btn { border-radius: 999px; font-weight: 700; }
.st-lockwarn .btn-primary { border: 0; background: var(--st-green-gradient); color: #fff; }
.st-lockwarn .btn-primary:hover { filter: brightness(1.15); color: #fff; }
@media (prefers-reduced-motion: reduce) { .st-lockwarn-icon { animation: none; } }

/* Lock / sign-out confirmations (SportsApi.confirmDialog): green primary button, rounded buttons. */
.modal .modal-footer .btn { border-radius: 999px; }
.modal .modal-footer .btn-primary { border: 0; background: var(--st-green-gradient); color: #fff; font-weight: 700; }
.modal .modal-footer .btn-primary:hover { filter: brightness(1.15); color: #fff; }


/* ==================================================================
   Notifications: the top bar bell (_Topbar.cshtml), user menu badge (_UserMenuItems.cshtml) and the
   /notifications page (Views/Notifications/Index.cshtml). Scripts: notifications.js, notifications-page.js.
   ================================================================== */
.st-notifs, .st-notif-menu {
  --theme-primary: var(--brand-1); --theme-primary-rgb: var(--brand-1-rgb); --theme-link-color: var(--brand-1); --theme-link-hover-color: var(--brand-2);
}
[data-bs-theme=dark] :is(.st-notifs, .st-notif-menu) { --theme-primary: #1f9d66; --theme-primary-rgb: 31, 157, 102; --theme-link-color: var(--brand-accent); --theme-link-hover-color: #6fe8a5; }

.st-notif-count { font-variant-numeric: tabular-nums; }
.topbar-badge.st-notif-count { min-width: 1.15rem; padding: .2rem .3rem; border-radius: 999px; font-size: .65rem; }

/* one notification row */
.st-notif {
  position: relative; display: flex; align-items: flex-start; gap: .75rem; padding: .8rem 1rem;
  color: inherit; text-decoration: none; transition: background-color .15s ease;
}
a.st-notif:hover { background: rgba(var(--theme-primary-rgb), .05); color: inherit; }
.st-notif.is-unread { background: rgba(var(--theme-primary-rgb), .06); }
a.st-notif.is-unread:hover { background: rgba(var(--theme-primary-rgb), .1); }
.st-notif-icon {
  display: inline-flex; flex: none; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem;
  border-radius: .75rem; background: rgba(var(--theme-primary-rgb), .1); color: var(--theme-primary); font-size: 1.15rem;
}
.st-notif-icon.is-video { background: var(--st-green-gradient); color: var(--st-green-accent); }
.st-notif-icon.is-security { background: color-mix(in srgb, #f59f00 16%, transparent); color: #c27c00; }
.st-notif-icon.is-roles { background: color-mix(in srgb, #3b82f6 14%, transparent); color: #2563eb; }
.st-notif-icon.is-member { background: color-mix(in srgb, #8b5cf6 14%, transparent); color: #7c3aed; }
[data-bs-theme=dark] .st-notif-icon:not(.is-video):not(.is-security):not(.is-roles):not(.is-member) { color: var(--st-green-accent); }
.st-notif-text { display: grid; flex: 1 1 auto; gap: .15rem; min-width: 0; }
.st-notif-text strong { font-size: .9rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.st-notif.is-unread .st-notif-text strong { font-weight: 800; }
.st-notif-text > span { color: var(--theme-secondary-color, #6c757d); font-size: .82rem; line-height: 1.4; }
.st-notif-text small { color: var(--theme-secondary-color, #6c757d); font-size: .75rem; }
.st-notif-dot { flex: none; width: .55rem; height: .55rem; margin-top: .45rem; border-radius: 50%; background: var(--st-green-accent); box-shadow: 0 0 0 3px rgba(var(--brand-accent-rgb), .25); }

/* bell dropdown */
.st-notif-menu { width: 23rem; max-width: calc(100vw - 1.5rem); overflow: hidden; border: 0; border-radius: 1rem; box-shadow: 0 18px 48px rgba(0, 0, 0, .18); }
.st-notif-menu-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .85rem 1rem; color: #fff; background: var(--st-green-gradient); }
.st-notif-menu-head h6 { color: #fff; font-weight: 800; }
.st-notif-menu-head .btn-link { color: var(--st-green-accent); font-weight: 600; text-decoration: none; }
.st-notif-menu-head .btn-link:hover { color: #fff; }
.st-notif-menu-list { max-height: 22rem; overflow-y: auto; }
.st-notif-menu-list .st-notif + .st-notif { border-top: 1px solid var(--theme-border-color, #eef0f3); }
.st-notif-menu-empty { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 1.75rem 1rem; color: var(--theme-secondary-color, #6c757d); text-align: center; font-size: .9rem; }
.st-notif-menu-empty .ti { color: var(--theme-primary); font-size: 1.75rem; }
.st-notif-menu-empty small { font-size: .78rem; }
.st-notif-menu-all { display: flex; align-items: center; justify-content: center; gap: .35rem; padding: .7rem; border-top: 1px solid var(--theme-border-color, #eef0f3); color: var(--theme-primary); font-size: .85rem; font-weight: 700; text-decoration: none; }
.st-notif-menu-all:hover { background: rgba(var(--theme-primary-rgb), .05); color: var(--theme-primary); }
[data-bs-theme=dark] .st-notif-menu-all { color: var(--st-green-accent); }

/* page */
.st-notifs-bar .st-vbar-group { flex-wrap: wrap; }
.st-notifs-list { display: grid; gap: 1.25rem; }
.st-notifs-day h3 { margin: 0 0 .5rem .25rem; color: var(--theme-secondary-color, #6c757d); font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.st-notifs-group { overflow: hidden; border: 1px solid var(--theme-border-color, #eef0f3); border-radius: 1rem; background: var(--theme-secondary-bg, #fff); }
.st-notifs-group .st-notif { padding: 1rem 1.15rem; }
.st-notifs-group .st-notif + .st-notif { border-top: 1px solid var(--theme-border-color, #eef0f3); }
.st-notifs-list > .st-notif.is-skeleton { border: 1px solid var(--theme-border-color, #eef0f3); border-radius: 1rem; background: var(--theme-secondary-bg, #fff); }
.st-notif.is-skeleton .st-notif-icon { background: var(--theme-tertiary-bg, #eef0f3); }
.st-notif.is-skeleton .st-skel { height: .75rem; margin: .25rem 0; }
.st-notif-actions { display: flex; flex: none; gap: .25rem; opacity: 0; transition: opacity .15s ease; }
.st-notif:hover .st-notif-actions, .st-notif:focus-within .st-notif-actions { opacity: 1; }
@media (hover: none) { .st-notif-actions { opacity: 1; } }
.st-notif-btn { width: 2rem; height: 2rem; border-radius: 50%; color: var(--theme-secondary-color, #6c757d); }
.st-notif-btn:hover { background: rgba(var(--theme-primary-rgb), .1); color: var(--theme-primary); }
.st-notif-btn[data-notif-act="delete"]:hover { background: rgba(220, 53, 69, .1); color: #dc3545; }
.st-notifs .st-notif-dot { order: -1; margin: .95rem -.35rem 0 -.35rem; }
.st-notifs-clear { border-radius: 999px; }

/* "Not watched yet" on unread video notifications, and the bell header line with the count of new videos. */
.st-notif-new { display: inline-flex; align-items: center; gap: .2rem; margin-right: .45rem; padding: .05rem .45rem; border-radius: 999px; background: rgba(var(--brand-accent-rgb), .18); color: var(--st-green-1); font-size: .7rem; font-weight: 700; }
[data-bs-theme=dark] .st-notif-new { color: var(--st-green-accent); }
.st-notif-menu-sub { display: block; margin-top: .1rem; color: var(--st-green-accent); font-size: .75rem; font-weight: 600; }


/* ==================================================================
   Video conversion (MPG, AVI, WMV... to MP4; Services/Videos/VideoConverter.cs): drop zone note,
   "converting" state on the library cards.
   ================================================================== */
.st-dropzone-note { display: inline-flex; align-items: center; gap: .35rem; margin-top: .35rem; padding: .25rem .7rem; border-radius: 999px; background: rgba(var(--brand-accent-rgb), .14); color: var(--st-green-1); font-size: .78rem; font-weight: 600; }
[data-bs-theme=dark] .st-dropzone-note { color: var(--st-green-accent); }
.st-upload-converting { max-width: 30rem; margin: 0 auto 1.25rem; padding: .75rem 1rem; border-radius: .8rem; background: rgba(var(--brand-accent-rgb), .12); font-size: .9rem; }
/* Other videos are being prepared first: this one waits its turn in the background (videos-upload.js). */
.st-upload-queue { display: flex; gap: .75rem; align-items: flex-start; max-width: 30rem; margin: 0 auto 1rem; padding: .75rem 1rem; border-left: 4px solid #ffc46b; background: rgba(255, 196, 107, .14); text-align: left; font-size: .9rem; }
.st-upload-queue > i { flex: none; font-size: 1.4rem; color: #e39a2d; }
.st-upload-queue div { display: grid; gap: .2rem; }
.st-upload-queue span { color: var(--theme-secondary-color, #6c757d); }
.st-upload-queue.is-now { border-left-color: #3ddc84; background: rgba(61, 220, 132, .12); }
.st-upload-queue.is-now > i { color: #22b866; }
.st-video-converting {
  position: absolute; z-index: 2; top: 50%; left: 50%; display: inline-flex; align-items: center; gap: .35rem;
  transform: translate(-50%, -50%); padding: .35rem .8rem; border-radius: 999px;
  background: rgba(var(--brand-3-rgb), .85); color: var(--st-green-accent); font-size: .8rem; font-weight: 700; white-space: nowrap;
}
.st-video-converting.is-failed { color: #ffb4a8; }
.st-video-thumb:has(.st-video-converting) .st-video-play { display: none; }


/* ==================================================================
   Page loader (Views/Shared/Partials/_PageLoader.cshtml): slim green bar + "Loading…" spinner just below
   the top bar while another page loads. Hidden unless .is-active; --st-pageload-top is set by its script.
   ================================================================== */
.st-pageload {
  position: fixed; top: var(--st-pageload-top, 0); left: 0; right: 0; z-index: 1090;
  height: 0; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .15s ease, visibility 0s linear .15s;
}
.st-pageload.is-active { opacity: 1; visibility: visible; transition: opacity .15s ease; }
.st-pageload-bar { position: absolute; top: 0; left: 0; right: 0; height: 3px; overflow: hidden; background: rgba(var(--brand-1-rgb), .15); }
.st-pageload-bar::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%;
  background: linear-gradient(90deg, transparent, var(--st-green-accent, var(--brand-accent)), var(--st-green-1, var(--brand-1)));
  animation: st-pageload-slide 1.1s ease-in-out infinite;
}
@keyframes st-pageload-slide { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.st-pageload-chip {
  position: absolute; top: .65rem; left: 50%; display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .9rem .4rem .55rem; transform: translateX(-50%);
  border-radius: 999px; background: var(--st-green-gradient, var(--brand-1)); color: #fff; font-size: .8rem; font-weight: 700;
  box-shadow: 0 8px 22px rgba(var(--brand-3-rgb), .3);
}
.st-pageload-spin {
  width: 1.1rem; height: 1.1rem; border: 2px solid rgba(255, 255, 255, .25); border-top-color: var(--st-green-accent, var(--brand-accent));
  border-radius: 50%; animation: st-pageload-spin .7s linear infinite;
}
@keyframes st-pageload-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .st-pageload-bar::before { animation: none; width: 100%; opacity: .6; }
  .st-pageload-spin { animation-duration: 2s; }
}
/* Arriving on a page: show at once (no fade-in), fade out when it has loaded. */
.st-pageload.is-instant { transition: none; }


/* ==================================================================
   Confirmation card (SportsApi.confirmDialog with { icon }): deletes, deactivations and similar.
   Icon tile, who's signed in, what happens next, full-width actions. Tone: .is-green / .is-danger.
   ================================================================== */
.st-confirm .modal-dialog { max-width: 26rem; }
.st-confirm .modal-content { position: relative; overflow: hidden; border: 0; border-radius: 1.25rem; box-shadow: 0 30px 80px rgba(var(--brand-3-rgb), .35); }
.st-confirm-close { position: absolute; top: .9rem; right: .9rem; z-index: 2; }
.st-confirm-head { padding: 2rem 1.75rem 1.1rem; text-align: center; }
.st-confirm-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 4.25rem; height: 4.25rem; margin-bottom: 1rem;
  border-radius: 1.25rem; font-size: 2rem;
}
.st-confirm.is-green .st-confirm-icon { background: var(--st-green-gradient); color: var(--st-green-accent); box-shadow: 0 0 0 7px rgba(var(--brand-accent-rgb), .14), 0 12px 26px rgba(var(--brand-3-rgb), .3); }
.st-confirm.is-danger .st-confirm-icon { background: linear-gradient(160deg, #fdecea, #f9d4d0); color: #c0392b; box-shadow: 0 0 0 7px rgba(220, 53, 69, .08); }
[data-bs-theme=dark] .st-confirm.is-danger .st-confirm-icon { background: rgba(220, 53, 69, .16); color: #ff8a80; }
.st-confirm-title { margin: 0 0 .4rem; font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; }
.st-confirm-text { margin: 0; color: var(--theme-secondary-color, #6c757d); }

.st-confirm-user {
  display: flex; align-items: center; gap: .75rem; margin: 0 1.5rem; padding: .7rem .9rem;
  border: 1px solid var(--theme-border-color, #eef0f3); border-radius: .9rem; background: var(--theme-tertiary-bg, #f6f8f7);
}
.st-confirm-avatar { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: .8rem; background: var(--st-green-gradient); color: #fff; font-size: .9rem; font-weight: 800; }
.st-confirm-user strong { display: block; overflow: hidden; font-size: .92rem; text-overflow: ellipsis; white-space: nowrap; }
.st-confirm-user small { display: block; overflow: hidden; color: var(--theme-secondary-color, #6c757d); font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }

.st-confirm-points { display: grid; gap: .6rem; margin: 1.1rem 1.75rem 0; padding: 0; list-style: none; font-size: .88rem; }
.st-confirm-points li { display: flex; align-items: flex-start; gap: .65rem; }
.st-confirm-points .ti {
  display: inline-flex; flex: none; align-items: center; justify-content: center; width: 1.8rem; height: 1.8rem; margin-top: -.1rem;
  border-radius: .55rem; font-size: 1rem;
}
.st-confirm.is-green .st-confirm-points .ti { background: rgba(var(--brand-accent-rgb), .16); color: var(--st-green-1); }
.st-confirm.is-danger .st-confirm-points .ti { background: rgba(220, 53, 69, .08); color: #c0392b; }
[data-bs-theme=dark] .st-confirm.is-green .st-confirm-points .ti { color: var(--st-green-accent); }
[data-bs-theme=dark] .st-confirm.is-danger .st-confirm-points .ti { color: #ff8a80; }

.st-confirm-actions { display: grid; gap: .55rem; padding: 1.5rem 1.75rem 1.75rem; }
.st-confirm-actions .btn { padding: .7rem 1rem; border-radius: 999px; font-weight: 700; }
.st-confirm.is-green .st-confirm-ok { border: 0; background: var(--st-green-gradient); color: #fff; box-shadow: 0 8px 20px rgba(var(--brand-3-rgb), .25); }
.st-confirm.is-danger .st-confirm-ok { border: 0; background: linear-gradient(160deg, #e5534b, #c0392b); color: #fff; box-shadow: 0 8px 20px rgba(192, 57, 43, .28); }
.st-confirm-ok:hover, .st-confirm-ok:focus-visible { color: #fff; filter: brightness(1.1); }
.st-confirm-ok:focus-visible { outline: 3px solid rgba(var(--brand-accent-rgb), .55); outline-offset: 2px; }
.st-confirm-cancel { border: 1px solid var(--theme-border-color, #dee2e6); background: transparent; color: var(--theme-emphasis-color, #212529); }
.st-confirm-cancel:hover { background: var(--theme-tertiary-bg, #f3f5f4); }


/* ==================================================================
   Deactivated videos (library card, watch page) + amber tone for the deactivate confirmation card.
   ================================================================== */
.st-video-card.is-inactive .st-video-thumb img, .st-video-card.is-inactive .st-video-thumb video { filter: grayscale(.85); opacity: .55; }
.st-video-card.is-inactive .st-video-title a { color: var(--theme-secondary-color, #6c757d); }
.st-video-off {
  position: absolute; z-index: 2; top: .5rem; right: .5rem; display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .55rem; border-radius: 999px; background: rgba(0, 0, 0, .7); color: #ffd27a; font-size: .72rem; font-weight: 700;
}
.st-video-lock.is-inactive { background: color-mix(in srgb, #f59f00 18%, transparent); }
.st-confirm.is-warning .st-confirm-icon { background: linear-gradient(160deg, #fff3d6, #ffe3a3); color: #b7791f; box-shadow: 0 0 0 7px rgba(245, 159, 0, .1); }
[data-bs-theme=dark] .st-confirm.is-warning .st-confirm-icon { background: rgba(245, 159, 0, .16); color: #ffd27a; }
.st-confirm.is-warning .st-confirm-points .ti { background: rgba(245, 159, 0, .12); color: #b7791f; }
[data-bs-theme=dark] .st-confirm.is-warning .st-confirm-points .ti { color: #ffd27a; }
.st-confirm.is-warning .st-confirm-ok { border: 0; background: linear-gradient(160deg, #f0a500, #c27c00); color: #fff; box-shadow: 0 8px 20px rgba(194, 124, 0, .28); }


/* ==================================================================
   Team photos (/photos): Views/Photos/Index.cshtml + js/app-api/photos.js.
   Masonry grid (CSS columns), full-screen viewer, add-photos queue.
   ================================================================== */
/* Uniform grid: every photo is the same square (cropped to fill), 10 to a row; fewer per row on narrower screens. */
.st-photos-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: .5rem; }
@media (max-width: 1199.98px) { .st-photos-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 991.98px) { .st-photos-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .st-photos-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 479.98px) { .st-photos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.st-photos-grid > .st-videos-empty { grid-column: 1 / -1; }
.st-photos-grid > .st-photos-loading {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: .6rem; padding: 3rem 1rem;
  color: var(--theme-secondary-color, #6c757d); font-size: .9rem; animation: st-photos-loading-in .2s ease .4s both;
}
@keyframes st-photos-loading-in { from { opacity: 0; } to { opacity: 1; } }
.st-photo {
  position: relative; display: block; width: 100%; aspect-ratio: 1; margin: 0; padding: 0; overflow: hidden;
  border: 0; border-radius: .9rem; background: var(--st-green-gradient); cursor: zoom-in;
  transition: transform .2s ease, box-shadow .2s ease;
}
.st-photo img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s ease, transform .4s ease; }
.st-photo.is-loaded img { opacity: 1; }
/* deactivated photos (only their adder and photo managers see them) */
.st-photo-off {
  position: absolute; z-index: 2; top: .5rem; right: .5rem; display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .55rem; border-radius: 999px; background: rgba(0, 0, 0, .7); color: #ffd27a; font-size: .72rem; font-weight: 700;
}
.st-photo.is-loaded:has(.st-photo-off) img { filter: grayscale(.85); opacity: .55; }
.st-photo:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(var(--brand-3-rgb), .22); }
.st-photo:hover img { transform: scale(1.04); }
.st-photo:focus-visible { outline: 3px solid var(--st-green-accent); outline-offset: 3px; }
.st-photo-info {
  position: absolute; inset: auto 0 0 0; display: grid; gap: .1rem; padding: 2rem .8rem .65rem; text-align: left; color: #fff;
  background: linear-gradient(to top, rgba(var(--brand-3-rgb), .85), transparent); opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease;
}
.st-photo:hover .st-photo-info, .st-photo:focus-visible .st-photo-info { opacity: 1; transform: none; }
@media (hover: none) { .st-photo-info { opacity: 1; transform: none; } }
.st-photo-info strong { overflow: hidden; font-size: .85rem; text-overflow: ellipsis; white-space: nowrap; }
.st-photo-info small { color: rgba(255, 255, 255, .7); font-size: .72rem; }
.st-photo.is-skeleton { background: var(--theme-tertiary-bg, #eef0f3); animation: st-skel 1.2s ease-in-out infinite alternate; cursor: default; }

/* viewer */
.st-lightbox {
  position: fixed; inset: 0; z-index: 1095; display: none; grid-template-columns: auto 1fr auto; grid-template-rows: auto 1fr auto;
  background: rgba(2, 10, 7, .96); color: #fff; outline: none;
}
.st-lightbox.is-open { display: grid; animation: st-lightbox-in .2s ease; }
@keyframes st-lightbox-in { from { opacity: 0; } }
body.st-lightbox-on { overflow: hidden; }
.st-lightbox-top { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: .85rem 1rem; }
.st-lightbox-count { color: rgba(255, 255, 255, .7); font-size: .85rem; font-weight: 600; }
.st-lightbox-tools { display: flex; gap: .35rem; }
.st-lightbox-btn, .st-lightbox-nav {
  display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; padding: 0;
  border: 1px solid rgba(255, 255, 255, .15); border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; font-size: 1.2rem;
  text-decoration: none; transition: background-color .15s ease, color .15s ease;
}
.st-lightbox-btn:hover, .st-lightbox-nav:hover:not(:disabled) { background: rgba(255, 255, 255, .18); color: var(--st-green-accent); }
.st-lightbox-btn:focus-visible, .st-lightbox-nav:focus-visible { outline: 2px solid var(--st-green-accent); outline-offset: 2px; }
.st-lightbox-nav { align-self: center; width: 3.1rem; height: 3.1rem; margin: 0 1rem; font-size: 1.6rem; }
.st-lightbox-nav:disabled { opacity: .25; }
.st-lightbox-stage { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 0; margin: 0; }
.st-lightbox-stage img { max-width: 100%; max-height: calc(100vh - 11rem); border-radius: .5rem; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); opacity: 0; transition: opacity .2s ease; }
.st-lightbox-stage img.is-loaded { opacity: 1; }
.st-lightbox-spinner { position: absolute; }
.st-lightbox-info { grid-column: 1 / -1; padding: .85rem 1.25rem 1.25rem; text-align: center; }
.st-lightbox-caption { margin: 0 auto .25rem; max-width: 46rem; font-size: 1.05rem; font-weight: 600; }
.st-lightbox-info small { color: rgba(255, 255, 255, .6); }
.st-lightbox-captionform { display: flex; gap: .5rem; max-width: 34rem; margin: 0 auto .5rem; }
.st-lightbox-captionform .form-control { border: 0; border-radius: 999px; }
@media (max-width: 575.98px) {
  .st-lightbox { grid-template-columns: 1fr; }
  .st-lightbox-nav { position: absolute; top: 50%; z-index: 1; margin: 0 .35rem; }
  .st-lightbox-nav.is-prev { left: 0; } .st-lightbox-nav.is-next { right: 0; }
}

/* add photos */
.st-photo-queue { display: grid; gap: .5rem; max-height: 22rem; margin: 1rem 0 0; padding: 0; overflow-y: auto; list-style: none; }
.st-photo-q { display: flex; align-items: center; gap: .75rem; padding: .5rem; border: 1px solid var(--theme-border-color, #eef0f3); border-radius: .8rem; }
.st-photo-q.is-error { border-color: rgba(220, 53, 69, .35); background: rgba(220, 53, 69, .04); }
.st-photo-q.is-done { border-color: rgba(var(--brand-accent-rgb), .45); background: rgba(var(--brand-accent-rgb), .06); }
.st-photo-q-thumb { display: inline-flex; flex: 0 0 3.5rem; align-items: center; justify-content: center; height: 3.5rem; overflow: hidden; border-radius: .55rem; background: var(--theme-tertiary-bg, #eef0f3); color: var(--theme-secondary-color, #6c757d); }
.st-photo-q-thumb img { width: 100%; height: 100%; object-fit: cover; }
.st-photo-q-main { display: grid; flex: 1 1 auto; gap: .3rem; min-width: 0; }
.st-photo-q-name { overflow: hidden; font-size: .85rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.st-photo-q-name small { color: var(--theme-secondary-color, #6c757d); font-weight: 400; }
.st-photo-q-bar { display: block; height: .4rem; overflow: hidden; border-radius: 999px; background: rgba(var(--brand-1-rgb), .12); }
.st-photo-q-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--st-green-gradient); transition: width .2s ease; }
.st-photo-q-ok { display: inline-flex; align-items: center; gap: .25rem; color: #198754; font-size: .82rem; font-weight: 700; }


/* ==================================================================
   Dark mode: page headers turn a muted green-grey (instead of the deep green), across every page:
   .st-vhead (videos, add video, photos, notifications, support), .st-hero (admin pages, dashboard),
   the account profile header, and the landing page hero + navbar. Bright green accents stay.
   ================================================================== */
:root {
  --st-header-dark: linear-gradient(160deg, var(--brand-dark-1) 0%, var(--brand-dark-2) 55%, var(--brand-dark-3) 100%);
}
[data-bs-theme=dark] .st-vhead,
[data-bs-theme=dark] .st-hero,
[data-bs-theme=dark] .st-account .st-account-hero,
[data-bs-theme=dark] .lp .lp-hero {
  background:
    radial-gradient(900px 400px at 105% -20%, rgba(255, 255, 255, .05), transparent 60%),
    radial-gradient(700px 500px at -15% 130%, rgba(0, 0, 0, .25), transparent 60%),
    var(--st-header-dark);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
[data-bs-theme=dark] .st-vhead-stats,
[data-bs-theme=dark] .st-hero-stats,
[data-bs-theme=dark] .lp .lp-record { background: rgba(0, 0, 0, .16); border-top-color: rgba(255, 255, 255, .07); }
/* Text on the header that used the dark green (header buttons) keeps enough contrast on grey. */
[data-bs-theme=dark] .st-vhead-add,
[data-bs-theme=dark] .st-hero .st-users-add { color: #24302b; }
[data-bs-theme=dark] .lp #landing-navbar.lp-nav { background: #222b27; }
[data-bs-theme=dark] .lp #landing-navbar.lp-nav.top-fixed { background: color-mix(in srgb, #1c2420 92%, transparent); }
[data-bs-theme=dark] .lp .lp-mark { color: #24302b; }

/* Dark mode, video library (/videos only, not watch / add / photos, which share .st-videos): the green surfaces
   (most-watched spotlight, card thumbnails before a frame loads) use the same dark green-grey as the headers. */
[data-bs-theme=dark] .st-videos:not(.st-addv):not(.st-photos) { --st-green-gradient: var(--st-header-dark); }
[data-bs-theme=dark] .st-videos:not(.st-addv):not(.st-photos) .st-videos-featured { box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }


/* ==================================================================
   Dashboard card emblems (Views/Home/Index.cshtml, .st-dash-card-head): a small animated 3D object per card,
   built with CSS 3D transforms (no WebGL / scripts). Bars = uploads per month, orbit = members by role,
   coin = most watched, cube = recent uploads, ID card = newest members, stacked layers = teams.
   Faster on card hover; still for prefers-reduced-motion.
   ================================================================== */
@property --st-bar { syntax: "<length>"; inherits: true; initial-value: 10px; }

.st-dash-card-head { align-items: center; }
.st-dash-card-title { flex: 1 1 auto; min-width: 0; }
.st-emb {
  --emb-face: var(--brand-accent);           /* lit face */
  --emb-side: #23a866;           /* side in shade */
  --emb-top: #8ff0bb;            /* top, catching light */
  --emb-speed: 1;
  position: relative; display: inline-flex; flex: none; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: .9rem; overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .12), transparent 60%), var(--st-green-gradient);
  box-shadow: 0 6px 16px rgba(var(--brand-3-rgb), .25), inset 0 0 0 1px rgba(255, 255, 255, .06);
  perspective: 220px;
}
[data-bs-theme=dark] .st-emb { background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .08), transparent 60%), var(--st-header-dark); }
.st-dash-card:hover .st-emb { --emb-speed: .55; }
.st-emb-scene { position: relative; width: 1.6rem; height: 1.6rem; transform-style: preserve-3d; }
.st-emb .f { position: absolute; display: flex; align-items: center; justify-content: center; backface-visibility: hidden; }

/* ---- bars: uploads per month ---- */
.st-emb.is-bars .st-emb-scene { transform: rotateX(-22deg) rotateY(-35deg); animation: st-emb-sway calc(6s * var(--emb-speed)) ease-in-out infinite; }
@keyframes st-emb-sway { 0%, 100% { transform: rotateX(-22deg) rotateY(-35deg); } 50% { transform: rotateX(-22deg) rotateY(-55deg); } }
.st-emb-base { position: absolute; left: -.15rem; bottom: -.1rem; width: 1.9rem; height: 1.2rem; transform-origin: bottom; transform: rotateX(90deg) translateZ(0); background: rgba(255, 255, 255, .12); border-radius: .15rem; }
.st-emb-bar { position: absolute; bottom: 0; width: .42rem; height: var(--st-bar); transform-style: preserve-3d; animation: st-emb-grow calc(2.4s * var(--emb-speed)) ease-in-out infinite; }
.st-emb-bar:nth-child(1) { left: 0; --lo: 6px; --hi: 14px; }
.st-emb-bar:nth-child(2) { left: .58rem; --lo: 9px; --hi: 22px; animation-delay: -.8s; }
.st-emb-bar:nth-child(3) { left: 1.16rem; --lo: 7px; --hi: 18px; animation-delay: -1.6s; }
@keyframes st-emb-grow { 0%, 100% { --st-bar: var(--lo); } 50% { --st-bar: var(--hi); } }
.st-emb-bar .front { inset: 0; background: var(--emb-face); transform: translateZ(.21rem); }
.st-emb-bar .right { top: 0; bottom: 0; left: 0; width: .42rem; background: var(--emb-side); transform: rotateY(90deg) translateZ(.21rem); }
.st-emb-bar .top { left: 0; top: 0; width: .42rem; height: .42rem; margin-top: -.21rem; background: var(--emb-top); transform: rotateX(90deg); }

/* ---- orbit: members by role ---- */
.st-emb.is-orbit .st-emb-scene { transform: rotateX(62deg) rotateZ(0deg); animation: st-emb-orbit calc(5s * var(--emb-speed)) linear infinite; }
@keyframes st-emb-orbit { to { transform: rotateX(62deg) rotateZ(360deg); } }
.st-emb-core {
  position: absolute; top: 50%; left: 50%; width: .75rem; height: .75rem; margin: -.375rem 0 0 -.375rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d9ffe9, var(--emb-face) 45%, #0f6b41 100%);
  transform: rotateZ(0deg) rotateX(-62deg); animation: st-emb-billboard calc(5s * var(--emb-speed)) linear infinite;
}
@keyframes st-emb-billboard { to { transform: rotateZ(-360deg) rotateX(-62deg); } }
.st-emb-ring { position: absolute; inset: 0; border: 2px solid rgba(143, 240, 187, .55); border-radius: 50%; transform-style: preserve-3d; }
.st-emb-bead {
  position: absolute; width: .42rem; height: .42rem; margin: -.21rem 0 0 -.21rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--emb-top) 50%, var(--emb-side));
  box-shadow: 0 0 6px rgba(var(--brand-accent-rgb), .7);
}
.st-emb-bead:nth-child(1) { top: 0; left: 50%; }
.st-emb-bead:nth-child(2) { top: 75%; left: 93.3%; }
.st-emb-bead:nth-child(3) { top: 75%; left: 6.7%; }

/* ---- coin: most watched ---- */
.st-emb.is-coin .st-emb-scene { width: 1.75rem; height: 1.75rem; }
.st-emb-coin { position: absolute; inset: 0; transform-style: preserve-3d; animation: st-emb-flip calc(3.2s * var(--emb-speed)) cubic-bezier(.45, .05, .55, .95) infinite; }
@keyframes st-emb-flip { 0% { transform: rotateY(0deg); } 45%, 50% { transform: rotateY(180deg); } 95%, 100% { transform: rotateY(360deg); } }
.st-emb-coin .f {
  inset: 0; border-radius: 50%; font-size: 1rem; color: var(--brand-1);
  background: radial-gradient(circle at 35% 30%, #fff6c9, #ffc94d 55%, #e08a00 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55), inset 0 -3px 0 rgba(0, 0, 0, .12);
}
.st-emb-coin .front { color: #c0392b; transform: translateZ(1px); }
.st-emb-coin .back { transform: rotateY(180deg) translateZ(1px); }

/* ---- cube: recent uploads ---- */
.st-emb.is-cube .st-emb-scene { width: 1.25rem; height: 1.25rem; animation: st-emb-bob calc(2.2s * var(--emb-speed)) ease-in-out infinite; }
@keyframes st-emb-bob { 0%, 100% { translate: 0 .18rem; } 50% { translate: 0 -.18rem; } }
.st-emb-cube { position: absolute; inset: 0; transform-style: preserve-3d; animation: st-emb-spin calc(6s * var(--emb-speed)) linear infinite; }
@keyframes st-emb-spin { from { transform: rotateX(-24deg) rotateY(0deg); } to { transform: rotateX(-24deg) rotateY(360deg); } }
.st-emb-cube .f { inset: 0; font-size: .8rem; color: var(--brand-1); border: 1px solid rgba(255, 255, 255, .35); border-radius: .2rem; }
.st-emb-cube .front { background: var(--emb-face); transform: translateZ(.625rem); }
.st-emb-cube .back { background: var(--emb-face); transform: rotateY(180deg) translateZ(.625rem); }
.st-emb-cube .right { background: var(--emb-side); transform: rotateY(90deg) translateZ(.625rem); }
.st-emb-cube .left { background: var(--emb-side); transform: rotateY(-90deg) translateZ(.625rem); }
.st-emb-cube .top { background: var(--emb-top); transform: rotateX(90deg) translateZ(.625rem); }
.st-emb-cube .bottom { background: #157a4b; transform: rotateX(-90deg) translateZ(.625rem); }

/* ---- ID card: newest members ---- */
.st-emb.is-card .st-emb-scene { width: 1.35rem; height: 1.8rem; }
.st-emb-idcard { position: absolute; inset: 0; transform-style: preserve-3d; animation: st-emb-swing calc(3.6s * var(--emb-speed)) ease-in-out infinite; }
@keyframes st-emb-swing { 0%, 100% { transform: rotateY(-38deg) rotateX(8deg); } 50% { transform: rotateY(38deg) rotateX(-6deg); } }
.st-emb-idcard .f {
  inset: 0; border-radius: .3rem; font-size: .95rem; color: var(--brand-1);
  background: linear-gradient(160deg, #ffffff, #d6f5e4); box-shadow: inset 0 .3rem 0 var(--emb-face), 0 4px 10px rgba(0, 0, 0, .25);
}
.st-emb-idcard .front { transform: translateZ(1px); }
.st-emb-idcard .back { transform: rotateY(180deg) translateZ(1px); }

/* ---- stacked layers: teams ---- */
.st-emb.is-stack .st-emb-scene { width: 1.35rem; height: 1.35rem; transform: rotateX(58deg) rotateZ(45deg); }
.st-emb-layer {
  position: absolute; inset: 0; border-radius: .25rem; border: 1px solid rgba(255, 255, 255, .4);
  background: linear-gradient(135deg, var(--emb-top), var(--emb-face));
  box-shadow: 0 0 0 1px rgba(var(--brand-3-rgb), .25);
  animation: st-emb-turn calc(4.5s * var(--emb-speed)) ease-in-out infinite;
}
.st-emb-layer:nth-child(1) { transform: translateZ(0); background: linear-gradient(135deg, var(--emb-face), var(--emb-side)); }
.st-emb-layer:nth-child(2) { transform: translateZ(.38rem); animation-delay: -.3s; }
.st-emb-layer:nth-child(3) { transform: translateZ(.76rem); animation-delay: -.6s; background: linear-gradient(135deg, #fff, var(--emb-top)); }
@keyframes st-emb-turn {
  0%, 100% { rotate: 0deg; }
  50% { rotate: 90deg; }
}
.st-emb-layer:nth-child(2) { animation-direction: reverse; }

@media (prefers-reduced-motion: reduce) {
  .st-emb *, .st-emb .st-emb-scene { animation: none !important; }
}
/* The emblem replaces the small green marker before dashboard card titles. */
.st-dash-card-head .st-emb + .st-dash-card-title h5::before { display: none; }


/* ==================================================================
   Cookie consent banner (Views/Shared/Partials/_CookieConsentPartial.cshtml): card at the bottom left
   (full width on phones), green design. "Back to top" button (_ScrollTop.cshtml): bottom right.
   ================================================================== */
.st-cookies {
  position: fixed; left: 1.25rem; bottom: 1.25rem; z-index: 1085; width: min(26rem, calc(100vw - 2.5rem)); margin: 0; padding: 1.1rem 1.15rem 1rem;
  border: 1px solid var(--theme-border-color, #e6ebe8); border-radius: 1.1rem; background: var(--theme-secondary-bg, #fff); color: var(--theme-body-color, #212529);
  box-shadow: 0 20px 50px rgba(var(--brand-3-rgb), .22); transform: translateY(12px); transition: opacity .2s ease, transform .2s ease;
}
.st-cookies.show { transform: none; }
.st-cookies-head { display: flex; gap: .85rem; }
.st-cookies-icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: .8rem; background: var(--st-green-gradient); color: var(--st-green-accent); font-size: 1.35rem; }
[data-bs-theme=dark] .st-cookies-icon { background: var(--st-header-dark); }
.st-cookies-title { margin: .1rem 0 .3rem; font-size: 1rem; font-weight: 800; }
.st-cookies-text { margin: 0; color: var(--theme-secondary-color, #6c757d); font-size: .86rem; line-height: 1.5; }
.st-cookies-details { margin: .7rem 0 0 3.45rem; font-size: .82rem; }
.st-cookies-details summary { color: var(--st-green-1); font-weight: 700; cursor: pointer; }
[data-bs-theme=dark] .st-cookies-details summary { color: var(--st-green-accent); }
.st-cookies-details ul { margin: .5rem 0 0; padding-left: 1rem; color: var(--theme-secondary-color, #6c757d); }
.st-cookies-details li { margin-bottom: .3rem; }
.st-cookies-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1rem; }
.st-cookies-actions .btn { padding: .5rem 1.15rem; border-radius: 999px; font-weight: 700; font-size: .875rem; }
.st-cookies-accept { border: 0; background: var(--st-green-gradient); color: #fff; box-shadow: 0 6px 16px rgba(var(--brand-3-rgb), .22); }
.st-cookies-accept:hover, .st-cookies-accept:focus-visible { color: #fff; filter: brightness(1.15); }
.st-cookies-reject { border: 1px solid var(--theme-border-color, #dee2e6); background: transparent; color: var(--theme-emphasis-color, #212529); }
.st-cookies-reject:hover { background: var(--theme-tertiary-bg, #f3f5f4); }
.st-cookies .btn:focus-visible { outline: 3px solid rgba(var(--brand-accent-rgb), .55); outline-offset: 2px; }
@media (max-width: 575.98px) {
  .st-cookies { left: .75rem; right: .75rem; bottom: .75rem; width: auto; }
  .st-cookies-details { margin-left: 0; }
  .st-cookies-actions .btn { flex: 1 1 0; }
}
.st-footer-link { color: inherit; text-decoration: none; font-weight: 600; }
.st-footer-link:hover { color: var(--theme-link-color, var(--brand-1)); }

/* back to top */
.st-totop {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1080; display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; padding: 0; border: 0; border-radius: 50%;
  background: var(--st-green-gradient); color: #fff; font-size: 1.25rem; box-shadow: 0 10px 24px rgba(var(--brand-3-rgb), .3);
  opacity: 0; transform: translateY(12px) scale(.9); transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease;
}
.st-totop.is-visible { opacity: 1; transform: none; }
.st-totop:hover { box-shadow: 0 14px 30px rgba(var(--brand-3-rgb), .4); transform: translateY(-2px); }
.st-totop:hover .ti { color: var(--st-green-accent); }
.st-totop:focus-visible { outline: 3px solid rgba(var(--brand-accent-rgb), .6); outline-offset: 3px; }
.st-totop .ti { position: relative; transition: color .15s ease, transform .2s ease; }
.st-totop:hover .ti { transform: translateY(-2px); }
.st-totop-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.st-totop-ring circle { fill: none; stroke-width: 3; }
.st-totop-track { stroke: rgba(255, 255, 255, .15); }
.st-totop-fill { stroke: var(--st-green-accent); stroke-linecap: round; transition: stroke-dashoffset .1s linear; }
[data-bs-theme=dark] .st-totop { background: var(--st-header-dark); box-shadow: 0 10px 24px rgba(0, 0, 0, .45); }
/* On phones the cookie banner spans the bottom: lift the button above it while it's open. */
@media (max-width: 575.98px) { html.st-cookies-open .st-totop { bottom: 13rem; } }
@media (prefers-reduced-motion: reduce) { .st-totop, .st-cookies { transition: none; } }


/* ==================================================================
   Team photos: required description (add-photos dialog + viewer), inline validation messages.
   ================================================================== */
.st-photo-q { align-items: flex-start; }
.st-photo-q-fields { display: grid; gap: .6rem; margin-top: .35rem; }
.st-photo-q-field .form-label { margin-bottom: .2rem; font-size: .78rem; font-weight: 700; }
.st-photo-q-field textarea { resize: vertical; min-height: 3.2rem; }
.st-photo-q-help { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; margin-top: .25rem; }
.st-photo-q-count { flex: none; margin-left: auto; color: var(--theme-secondary-color, #6c757d); font-size: .72rem; font-variant-numeric: tabular-nums; }
.st-field-error { display: flex; align-items: center; gap: .3rem; color: var(--theme-danger, #dc3545); font-size: .8rem; font-weight: 600; }
.st-field-error::before { content: "\ea05"; font-family: "tabler-icons"; font-weight: normal; }
.st-photo-q-field .form-control.is-invalid,
.st-lightbox-field .form-control.is-invalid { border-color: var(--theme-danger, #dc3545); box-shadow: 0 0 0 3px rgba(220, 53, 69, .15); background-image: none; }
.st-photo-q-field .form-control:focus:not(.is-invalid) { border-color: var(--st-green-1); box-shadow: 0 0 0 3px rgba(var(--brand-1-rgb), .15); }
#pu-summary.text-danger { font-weight: 700; }

/* viewer */
.st-lightbox-description { max-width: 46rem; margin: 0 auto .35rem; color: rgba(255, 255, 255, .78); font-size: .92rem; white-space: pre-line; }
.st-lightbox-captionform { display: grid; gap: .6rem; max-width: 34rem; margin: 0 auto .6rem; text-align: left; }
.st-lightbox-captionform.d-none { display: none; }
.st-lightbox-field .form-label { margin-bottom: .2rem; color: rgba(255, 255, 255, .85); font-size: .8rem; font-weight: 700; }
.st-lightbox-field .form-control { border: 0; border-radius: .7rem; }
.st-lightbox-field .st-field-error { color: #ff9a8f; }
.st-lightbox-field .st-photo-q-count { color: rgba(255, 255, 255, .55); }
.st-lightbox-formactions { display: flex; justify-content: flex-end; gap: .5rem; }


/* ==================================================================
   Team Home (/team): Views/Team/Index.cshtml + js/app-api/team-home.js. Green header with the team crest,
   latest videos, activity timeline, photo strip and the squad.
   ================================================================== */
.st-home-identity { display: flex; align-items: center; gap: 1.1rem; min-width: 0; }
.st-home-crest {
  --hue: 150;
  display: inline-flex; flex: none; align-items: center; justify-content: center; width: 4.4rem; height: 5rem;
  clip-path: polygon(50% 0, 100% 14%, 100% 58%, 50% 100%, 0 58%, 0 14%);
  background: linear-gradient(160deg, #ffffff, #d9efe4); color: var(--st-green-1); font-size: 1.45rem; font-weight: 900;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .3));
}
.st-home-crest > span { margin-top: -.35rem; }
/* super admins: the logo shortcut sits on the crest's lower-right corner */
.st-home-crest-wrap { position: relative; flex: none; display: inline-flex; }
.st-home-logo-edit { position: absolute; right: -.45rem; bottom: -.3rem; z-index: 2; }
.st-home-logo-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; padding: 0;
  border: 2px solid #0c3a27; border-radius: 50%; background: var(--st-green-accent, var(--brand-accent)); color: #06281a; font-size: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .3); transition: transform .15s ease;
}
.st-home-logo-btn:hover, .st-home-logo-btn:focus-visible { transform: scale(1.1); }
.st-home-logo-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.st-home-logo-btn.is-busy .ti { animation: st-spin .8s linear infinite; }
.st-home-eyebrow { display: inline-block; margin-bottom: .3rem; color: var(--st-green-accent); font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.st-home-key { padding: .05rem .4rem; border-radius: .35rem; background: rgba(255, 255, 255, .12); color: #fff; font-size: .85em; }
.st-home-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
/* right column: live clock above the action buttons */
.st-home-side { display: flex; flex-direction: column; align-items: flex-end; gap: .75rem; }
.st-home-side .st-home-actions { justify-content: flex-end; }
.st-home-clock { display: grid; justify-items: end; line-height: 1.15; color: #fff; text-align: right; }
.st-home-clock-time { font-size: 1.6rem; font-weight: 800; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.st-home-clock-date { color: rgba(255, 255, 255, .7); font-size: .8rem; font-weight: 600; }
.st-home-place { display: inline-flex; align-items: center; gap: .25rem; color: #fff; font-weight: 700; }
.st-home-place .ti { color: var(--st-green-accent); font-size: 1rem; }
.st-home-clock-zone { margin-top: .1rem; color: var(--st-green-accent); font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
/* greeting above the team name */
.st-home-greeting { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .95rem; letter-spacing: 0; text-transform: none; }
.st-home-roles:empty { display: none; }
.st-home-roles {
  padding: .05rem .55rem; border-radius: 999px; background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .85);
  font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
@media (max-width: 767.98px) {
  .st-home-side { align-items: flex-start; }
  .st-home-side .st-home-actions { justify-content: flex-start; }
  .st-home-clock { justify-items: start; text-align: left; }
}
.st-home-ghost { padding: .6rem 1.15rem; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; font-weight: 700; }
.st-home-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .16); color: #fff; }
.st-home-head a.st-vstat { color: #fff; text-decoration: none; }

.st-home-grid {
  display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "videos" "activity" "photos" "squad";
}
@media (min-width: 1200px) {
  /* Row 1 is as tall as the videos; the photos row takes whatever height the activity column needs, so photos sit right under the videos. */
  .st-home-grid { grid-template-columns: minmax(0, 1fr) 24rem; grid-template-rows: auto 1fr auto; grid-template-areas: "videos activity" "photos activity" "squad squad"; align-items: start; }
}
.st-home-videos { grid-area: videos; }
.st-home-activity { grid-area: activity; }
.st-home-photos { grid-area: photos; }
.st-home-squad { grid-area: squad; scroll-margin-top: calc(var(--theme-topbar-height, 65px) + 1rem); }
.st-home-card { overflow: hidden; border: 1px solid var(--theme-border-color, #eef0f3); border-radius: 1rem; background: var(--theme-secondary-bg, #fff); }
.st-home-card.d-none { display: none; }
.st-home-card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem .75rem; }
.st-home-card-head h3 { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: 1.02rem; font-weight: 800; }
.st-home-card-head h3 .ti { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: .6rem; background: var(--st-green-gradient); color: var(--st-green-accent); font-size: 1.05rem; }
[data-bs-theme=dark] .st-home-card-head h3 .ti { background: var(--st-header-dark); }
.st-home-card-head a { color: var(--st-green-1); font-size: .85rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
[data-bs-theme=dark] .st-home-card-head a { color: var(--st-green-accent); }
.st-home-count { padding: .05rem .5rem; border-radius: 999px; background: rgba(var(--brand-1-rgb), .1); color: var(--st-green-1); font-size: .75rem; }
[data-bs-theme=dark] .st-home-count { background: rgba(var(--brand-accent-rgb), .15); color: var(--st-green-accent); }
.st-home-count:empty { display: none; }
/* "choose a team" notice for platform admins: a darker amber than Bootstrap's alert-warning, with dark text */
.st-home-noteam {
  display: flex; align-items: center; gap: .35rem; margin-bottom: 1.25rem; padding: .9rem 1.1rem;
  border: 1px solid #b97f00; border-radius: .8rem; background: #e5a50f; color: #2a1c00; font-weight: 600;
  box-shadow: 0 6px 16px rgba(120, 80, 0, .18);
}
.st-home-noteam .ti { flex: none; color: #3d2900; font-size: 1.25rem; }
[data-bs-theme=dark] .st-home-noteam { border-color: #c98a00; background: #d39a0c; color: #1f1500; }
.st-home-loading { display: flex; align-items: center; gap: .5rem; padding: 1.25rem; color: var(--theme-secondary-color, #6c757d); font-size: .875rem; list-style: none; }
.st-home-empty { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1.75rem 1rem; color: var(--theme-secondary-color, #6c757d); text-align: center; font-size: .9rem; }
.st-home-empty > .ti { font-size: 1.75rem; color: var(--st-green-1); }
[data-bs-theme=dark] .st-home-empty > .ti { color: var(--st-green-accent); }

/* videos */
.st-home-videolist { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1rem; padding: 0 1.25rem 1.25rem; }
.st-home-video { display: grid; gap: .55rem; color: inherit; text-decoration: none; }
.st-home-video:hover { color: inherit; }
.st-home-vthumb { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: .75rem; background: var(--st-green-gradient); }
.st-home-vthumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.st-home-video:hover .st-home-vthumb img, .st-home-video:hover .st-home-vframe.is-ready { transform: scale(1.05); }
.st-home-vframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; opacity: 0; pointer-events: none; transition: opacity .3s ease, transform .3s ease; }
.st-home-vframe.is-ready { opacity: 1; }
.st-home-vplay, .st-home-vsrc { z-index: 1; }
.st-home-vicon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, .35); font-size: 2rem; }
.st-home-vplay { position: absolute; top: 50%; left: 50%; display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(0, 0, 0, .5); color: #fff; opacity: 0; transition: opacity .2s ease, background-color .2s ease; }
.st-home-video:hover .st-home-vplay { opacity: 1; background: var(--st-green-accent); color: var(--st-green-3); }
.st-home-vsrc { position: absolute; left: .4rem; bottom: .4rem; display: inline-flex; align-items: center; gap: .25rem; padding: .1rem .45rem; border-radius: 999px; background: rgba(0, 0, 0, .65); color: #fff; font-size: .68rem; font-weight: 700; }
.st-home-vtext { display: grid; gap: .1rem; min-width: 0; }
.st-home-vtext strong { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: .9rem; line-height: 1.3; }
.st-home-video:hover .st-home-vtext strong { color: var(--st-green-1); }
[data-bs-theme=dark] .st-home-video:hover .st-home-vtext strong { color: var(--st-green-accent); }
.st-home-vtext small { color: var(--theme-secondary-color, #6c757d); font-size: .75rem; }

/* activity timeline */
.st-home-timeline { position: relative; margin: 0; padding: 0 1.25rem 1.1rem; list-style: none; }
.st-home-timeline::before { content: ""; position: absolute; top: .5rem; bottom: 1.5rem; left: 2.24rem; width: 2px; background: var(--theme-border-color, #eef0f3); }
.st-home-event { position: relative; display: flex; gap: .75rem; padding: .55rem 0; }
.st-home-event-icon { position: relative; z-index: 1; display: inline-flex; flex: none; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; border: 3px solid var(--theme-secondary-bg, #fff); font-size: .95rem; }
.st-home-event.is-video .st-home-event-icon { background: var(--st-green-gradient); color: var(--st-green-accent); }
.st-home-event.is-photo .st-home-event-icon { background: color-mix(in srgb, #3b82f6 16%, var(--theme-secondary-bg, #fff)); color: #2563eb; }
.st-home-event.is-member .st-home-event-icon { background: color-mix(in srgb, #8b5cf6 16%, var(--theme-secondary-bg, #fff)); color: #7c3aed; }
.st-home-event-text { display: grid; gap: .15rem; min-width: 0; padding-top: .2rem; font-size: .86rem; line-height: 1.4; overflow-wrap: anywhere; }
.st-home-event-text a { color: var(--st-green-1); font-weight: 600; text-decoration: none; }
.st-home-event-text a:hover { text-decoration: underline; }
[data-bs-theme=dark] .st-home-event-text a { color: var(--st-green-accent); }
.st-home-event-text time { color: var(--theme-secondary-color, #6c757d); font-size: .75rem; }
.st-home-event-line { display: block; }
.st-home-event-line .st-home-minithumbs { margin-top: .35rem; }
.st-home-minithumbs { display: flex; gap: .25rem; margin-top: .25rem; }
.st-home-minithumbs img { width: 2.6rem; height: 2rem; object-fit: cover; border-radius: .35rem; }

/* photo strip */
/* Team Home photos: 6 to a row (the 12 latest = 2 rows), each a short 3:2 tile instead of a square; 3 across on small screens. */
.st-home-photostrip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; padding: 0 1.25rem 1.25rem; }
.st-home-photo { display: block; overflow: hidden; aspect-ratio: 3 / 2; border-radius: .65rem; background: var(--st-green-gradient); }
.st-home-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.st-home-photo:hover img { transform: scale(1.07); }
.st-home-photo:focus-visible { outline: 3px solid var(--st-green-accent); outline-offset: 2px; }
.st-home-photostrip > .st-home-empty, .st-home-videolist > .st-home-empty { grid-column: 1 / -1; }

/* squad */
.st-home-squadtools { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: 0 1.25rem .9rem; }
.st-home-squadtools .st-vbar-search { flex: 1 1 14rem; max-width: 22rem; }
.st-home-squadtools .st-vbar-group { flex-wrap: wrap; }
.st-home-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .6rem; margin: 0; padding: 0 1.25rem 1.25rem; list-style: none; }
.st-home-people > li:only-child { grid-column: 1 / -1; }
.st-home-person { display: flex; align-items: center; gap: .75rem; padding: .65rem .75rem; border: 1px solid var(--theme-border-color, #eef0f3); border-radius: .85rem; transition: border-color .15s ease, background-color .15s ease; }
.st-home-person:hover { border-color: color-mix(in srgb, var(--st-green-1) 30%, transparent); }
.st-home-person.is-you { border-color: color-mix(in srgb, var(--st-green-accent) 60%, transparent); background: rgba(var(--brand-accent-rgb), .07); }
.st-home-avatar {
  --hue: 150;
  display: inline-flex; flex: none; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: .85rem;
  background: hsl(var(--hue) 45% 88%); color: hsl(var(--hue) 55% 28%); font-size: .9rem; font-weight: 800;
}
[data-bs-theme=dark] .st-home-avatar { background: hsl(var(--hue) 30% 24%); color: hsl(var(--hue) 60% 80%); }
.st-home-person-text { display: grid; gap: .1rem; min-width: 0; }
.st-home-person-text strong { overflow: hidden; font-size: .9rem; text-overflow: ellipsis; white-space: nowrap; }
.st-home-person-text small { display: inline-flex; align-items: center; gap: .3rem; overflow: hidden; color: var(--theme-secondary-color, #6c757d); font-size: .75rem; white-space: nowrap; text-overflow: ellipsis; }
.st-home-you { margin-left: .25rem; padding: .05rem .4rem; border-radius: 999px; background: var(--st-green-accent); color: var(--st-green-3); font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; vertical-align: middle; }
@media (max-width: 575.98px) {
  .st-home-identity { align-items: flex-start; }
  .st-home-crest { width: 3.4rem; height: 3.9rem; font-size: 1.1rem; }
}


/* ==================================================================
   Team Home: "Team activity" is a panel sliding in from the right (Bootstrap offcanvas), opened by the
   header's Activity button (badge = last 7 days). The page grid is now videos + photos, then the squad.
   ================================================================== */
.st-home-grid { grid-template-areas: "videos" "roster" "photos" "squad"; }
@media (min-width: 1200px) {
  .st-home-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); grid-template-rows: auto auto auto; grid-template-areas: "videos photos" "roster roster" "squad squad"; align-items: stretch; }
  .st-home-photostrip { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .4rem; }   /* narrow side column: still 6 across, smaller tiles */
}

/* Meet the roster (below Latest videos; moved from the landing page) */
.st-home-roster { grid-area: roster; scroll-margin-top: calc(var(--theme-topbar-height, 65px) + 1rem); }
.st-home-roster-sub { margin: -.35rem 1.25rem .9rem; color: var(--theme-secondary-color, #6c757d); font-size: .88rem; }
.st-roster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 1rem; padding: 0 1.25rem 1.25rem; }
.st-roster-grid > .st-home-empty, .st-roster-grid > .st-home-loading { grid-column: 1 / -1; }
.st-roster-card {
  overflow: hidden; border: 1px solid var(--theme-border-color, #eef0f3); border-radius: 1rem; background: var(--theme-secondary-bg, #fff);
  text-align: center; transition: transform .2s ease, box-shadow .2s ease;
}
.st-roster-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(var(--brand-3-rgb), .14); }
.st-roster-card.is-you { border-color: var(--st-green-accent); box-shadow: 0 0 0 1px var(--st-green-accent); }
.st-roster-photo {
  position: relative; padding: 1.25rem 0 1rem;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .12), transparent 60%), var(--st-green-gradient);
}
[data-bs-theme=dark] .st-roster-photo { background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .08), transparent 60%), var(--st-header-dark); }
.st-roster-jersey { position: absolute; top: .35rem; left: .7rem; color: rgba(255, 255, 255, .14); font-size: 2.4rem; font-weight: 900; line-height: 1; letter-spacing: -.02em; }
.st-roster-avatar {
  display: inline-flex; align-items: center; justify-content: center; width: 7rem; height: 7rem;
  border: 3px solid rgba(212, 175, 55, .4); border-radius: 1.1rem;
  background: linear-gradient(145deg, hsl(var(--hue, 150) 55% 52%), hsl(calc(var(--hue, 150) + 35) 60% 38%));
  color: #fff; font-size: 1.7rem; font-weight: 900; box-shadow: 0 10px 24px rgba(0, 0, 0, .3);
}
.st-roster-avatar { position: relative; overflow: hidden; }
.st-roster-avatar > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.st-roster-body { padding: .85rem .75rem 1rem; }
.st-roster-body h4 { margin: 0 0 .2rem; font-size: 1rem; font-weight: 800; }
.st-roster-you { margin-left: .25rem; padding: .05rem .4rem; border-radius: 999px; background: var(--st-green-accent); color: var(--st-green-3, #06281a); font-size: .62rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; vertical-align: .15em; }
.st-roster-nick { margin-bottom: .3rem; color: var(--st-green-1); font-size: .82rem; font-weight: 700; }
[data-bs-theme=dark] .st-roster-nick { color: var(--st-green-accent); }
.st-roster-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem; color: var(--theme-secondary-color, #6c757d); font-size: .82rem; }
.st-roster-pos { padding: .1rem .5rem; border-radius: 999px; background: color-mix(in srgb, var(--st-green-1) 12%, transparent); color: var(--st-green-1); font-size: .72rem; font-weight: 800; }
[data-bs-theme=dark] .st-roster-pos { color: var(--st-green-accent); }

/* header button */
.st-home-activity-btn { position: relative; }
.st-home-activity-badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 1.35rem; height: 1.35rem; margin-left: .45rem; padding: 0 .35rem;
  border-radius: 999px; background: var(--st-green-accent); color: var(--st-green-3); font-size: .72rem; font-weight: 800; line-height: 1;
}
.st-home-activity-badge.d-none { display: none; }

/* panel */
.st-home-drawer { width: min(27rem, 100vw); border-left: 0; box-shadow: -20px 0 50px rgba(var(--brand-3-rgb), .25); }
.st-home-drawer-head {
  gap: .85rem; padding: 1.15rem 1.25rem; color: #fff;
  background: radial-gradient(500px 240px at 110% -20%, rgba(255, 255, 255, .1), transparent 60%), var(--st-green-gradient);
}
[data-bs-theme=dark] .st-home-drawer-head { background: radial-gradient(500px 240px at 110% -20%, rgba(255, 255, 255, .06), transparent 60%), var(--st-header-dark); }
.st-home-drawer-head .offcanvas-title { margin: 0; color: #fff; font-size: 1.1rem; font-weight: 800; }
.st-home-drawer-head small { color: rgba(255, 255, 255, .7); font-size: .8rem; }
.st-home-drawer-icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: .8rem; background: rgba(255, 255, 255, .12); color: var(--st-green-accent); font-size: 1.3rem; }
.st-home-drawer-filters { display: flex; flex-wrap: wrap; gap: .3rem; padding: .85rem 1.25rem; border-bottom: 1px solid var(--theme-border-color, #eef0f3); }
.st-home-drawer .offcanvas-body { padding: .75rem 0 1.25rem; }
.st-home-drawer .st-home-timeline { padding: 0 1.25rem; }
.st-home-drawer .st-home-timeline::before { bottom: .5rem; }


/* ==================================================================
   Video window (js/app-api/video-window.js, every page): centred 16:9 player over a dark blurred backdrop, serif
   title above it and an outlined "Close ×" button; normal / maximised / minimised states, and the detached player page (/videos/{id}/player). Player messages: .st-player-msg.
   ================================================================== */
.st-vwin-backdrop {
  position: fixed; inset: 0; z-index: 1086; background: rgba(6, 14, 25, .88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s;
}
.st-vwin-backdrop.is-on { opacity: 1; visibility: visible; transition: opacity .2s ease; }
.st-vwin {
  --vw-paper: #F6F4EE; --vw-rule: rgba(246, 244, 238, .18); --vw-hi: #6BA3FF; --vw-ink: #0A1A2F;
  --vw-display: 'Instrument Serif', Georgia, serif; --vw-sans: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  position: fixed; z-index: 1087; top: 50%; left: 50%; display: none; flex-direction: column;
  /* the third term keeps the 16:9 frame and its title bar inside a short screen */
  width: min(1180px, calc(100vw - 64px), calc((100vh - 120px) * 16 / 9));
  transform: translate(-50%, -50%); color: var(--vw-paper); background: none;
}
.st-vwin.is-open { display: flex; }
.st-vwin.is-open:not(.is-min) { animation: st-vwin-in .28s cubic-bezier(.22, .8, .3, 1) both; }
@keyframes st-vwin-in { from { opacity: 0; translate: 0 14px; scale: .985; } to { opacity: 1; translate: none; scale: none; } }
.st-vwin:focus { outline: none; }

.st-vwin-bar { display: flex; flex: none; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 14px; user-select: none; }
.st-vwin-icon, .st-vwin-titles small { display: none; }
.st-vwin-titles { display: block; flex: 1 1 auto; min-width: 0; }
.st-vwin-titles strong { display: block; font-family: var(--vw-display); font-size: 1.35rem; font-weight: 400; line-height: 1.2; color: var(--vw-paper); }
.st-vwin-tools { display: flex; flex: none; align-items: center; gap: 8px; }
.st-vwin-sep { display: none; }
.st-vwin-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .35em; min-width: 2.35rem; height: 2.35rem; padding: 0 .7rem;
  border: 1px solid var(--vw-rule); border-radius: 0; background: none; color: var(--vw-paper); font-size: 1rem;
  text-decoration: none; cursor: pointer; transition: border-color .2s, color .2s, background .2s;
}
.st-vwin-btn.is-close { padding: 11px 16px; font: 600 .74rem/1 var(--vw-sans); letter-spacing: .14em; text-transform: uppercase; }
.st-vwin-btn:hover, .st-vwin-btn.is-close:hover { border-color: var(--vw-hi); color: var(--vw-hi); background: none; }
.st-vwin-btn:focus-visible { outline: 2px solid var(--vw-hi); outline-offset: 2px; }
.st-vwin-btn[hidden] { display: none !important; }

.st-vwin-stage { position: relative; flex: none; aspect-ratio: 16 / 9; overflow: hidden; background: #000; border: 1px solid var(--vw-rule); }
.st-vwin .st-player-msg > .ti { color: var(--vw-hi); }

/* maximised: the same look, filling the screen */
.st-vwin.is-max { top: 0; left: 0; width: 100vw; height: 100vh; padding: 32px; transform: none; }
.st-vwin.is-max .st-vwin-stage { flex: 1 1 auto; min-height: 0; aspect-ratio: auto; }

/* minimised: small player docked bottom right (above the back-to-top button), keeps playing */
.st-vwin.is-min {
  top: auto; left: auto; right: 1.25rem; bottom: 5.25rem; width: 22rem; padding: 10px; transform: none;
  background: var(--vw-ink); border: 1px solid var(--vw-rule); box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
}
.st-vwin.is-min .st-vwin-bar { align-items: center; gap: 10px; margin-bottom: 8px; }
.st-vwin.is-min .st-vwin-titles { cursor: pointer; }
.st-vwin.is-min .st-vwin-titles strong { overflow: hidden; font-size: 1.05rem; text-overflow: ellipsis; white-space: nowrap; }
.st-vwin.is-min .st-vwin-tools { gap: 6px; }
.st-vwin.is-min .st-vwin-btn { min-width: 1.95rem; height: 1.95rem; padding: 0 .45rem; font-size: .9rem; }
.st-vwin.is-min .st-vwin-close-label { display: none; }
.st-vwin.is-min .st-vwin-btn.is-close { font-size: 1rem; letter-spacing: 0; }
.st-vwin.is-min .st-vwin-tools [data-vw="pip"], .st-vwin.is-min .st-vwin-tools [data-vw="detach"],
.st-vwin.is-min .st-vwin-tools [data-vw-source], .st-vwin.is-min .st-vwin-tools [data-vw="max"] { display: none; }
body.st-vwin-open { overflow: hidden; }
@media (max-width: 700px) {
  .st-vwin { width: calc(100vw - 32px); }
  .st-vwin-titles strong { font-size: 1.05rem; }
  .st-vwin-tools [data-vw="pip"], .st-vwin-tools [data-vw="detach"] { display: none; }
  .st-vwin.is-max { padding: 16px; }
  .st-vwin.is-min { right: .5rem; left: .5rem; bottom: 4.75rem; width: auto; }
}
@media (prefers-reduced-motion: reduce) { .st-vwin.is-open { animation: none !important; } .st-vwin-backdrop { transition: none; } }

.st-player-video, .st-player-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.st-player-cast {
  position: absolute; top: .6rem; right: .6rem; z-index: 3; display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem;
  border: 0; border-radius: .5rem; background: rgba(0, 0, 0, .55); color: #fff; font-size: 1.2rem; opacity: 0; transition: opacity .2s ease;
}
.st-player-video:hover ~ .st-player-cast, .st-player-cast:hover, .st-player-cast:focus-visible { opacity: 1; }
.st-player-casttip { position: absolute; top: 3.2rem; right: .6rem; z-index: 3; max-width: 18rem; padding: .6rem .75rem; border-radius: .5rem; background: rgba(0, 0, 0, .85); color: #fff; font-size: .82rem; }
.st-player-casttip[hidden] { display: none; }
.st-cast-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .7rem 1rem; background: linear-gradient(0deg, rgba(0, 0, 0, .88), rgba(0, 0, 0, .72)); color: #fff; }
.st-cast-bar[hidden] { display: none; }
.st-cast-title { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.st-cast-title .ti { color: var(--brand-accent, #7db4ea); font-size: 1.2rem; }
.st-cast-controls { display: flex; align-items: center; gap: .35rem; }
.st-cast-controls button { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .55rem; border: 0; border-radius: .4rem; background: rgba(255, 255, 255, .14); color: #fff; font-size: .85rem; font-weight: 600; }
.st-cast-controls button:hover { background: rgba(255, 255, 255, .26); }
.st-cast-controls .ti { font-size: 1.25rem; }
.st-cast-time { padding: 0 .5rem; font-variant-numeric: tabular-nums; font-size: .85rem; opacity: .9; }
.st-player-msg {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; padding: 1.5rem;
  color: rgba(255, 255, 255, .7); text-align: center; font-size: .9rem;
}
.st-player-msg > .ti { margin-bottom: .2rem; color: var(--st-green-accent); font-size: 2.2rem; }
.st-player-msg strong { color: #fff; font-size: 1.05rem; }
.st-player-msg.is-overlay { background: rgba(0, 0, 0, .8); }

/* detached player page */
body.st-detached { margin: 0; overflow: hidden; background: #000; }
.st-detached-wrap { display: flex; flex-direction: column; height: 100vh; }
.st-detached-bar { display: flex; flex: none; align-items: center; gap: .7rem; padding: .5rem .6rem .5rem .85rem; color: #fff; background: var(--st-green-gradient); }
[data-bs-theme=dark] .st-detached-bar { background: var(--st-header-dark); }
.st-detached-stage { position: relative; flex: 1 1 auto; min-height: 0; background: #000; }
body.st-detached .st-totop, body.st-detached .st-cookies { display: none !important; }


/* ==================================================================
   Video window: keeps playing across pages (js/app-api/video-window.js). While a video plays, other pages
   load in a full-window frame (#st-shell) above this page; only the frame and the video window show.
   ================================================================== */
html.st-shell-on, html.st-shell-on body { overflow: hidden; }
#st-shell { position: fixed; inset: 0; z-index: 1084; width: 100%; height: 100%; border: 0; background: var(--theme-body-bg, #f4f6f5); }
html.st-shell-on body > *:not(#st-shell):not(.st-vwin):not(.st-vwin-backdrop):not(script):not(style) { visibility: hidden !important; }
html.st-shell-on .st-vwin, html.st-shell-on .st-vwin * { visibility: visible; }



/* ==================================================================
   Coloured menu icons: left navigation, top bar buttons and the user menu (_Sidenav, _Topbar, _UserMenuItems).
   <i class="ti ti-users st-ic st-ic-blue">. Mid-tone colours that read on dark and light menus; a touch lighter in
   dark mode. Monochrome mode (the top bar palette button) greys them out with the rest of the page.
   ================================================================== */
.st-ic { --st-ic: currentColor; }
.st-ic-blue   { --st-ic: #3b8ff6; }
.st-ic-indigo { --st-ic: #6b7cf6; }
.st-ic-purple { --st-ic: #9b6cf0; }
.st-ic-pink   { --st-ic: #e8559f; }
.st-ic-red    { --st-ic: #ef5068; }
.st-ic-orange { --st-ic: #f2813a; }
.st-ic-amber  { --st-ic: #e9a812; }
.st-ic-green  { --st-ic: #2fb36d; }
.st-ic-teal   { --st-ic: #17ad9c; }
.st-ic-cyan   { --st-ic: #1fb0d0; }
[data-bs-theme=dark] .st-ic-blue   { --st-ic: #5ea4ff; }
[data-bs-theme=dark] .st-ic-indigo { --st-ic: #8e9bff; }
[data-bs-theme=dark] .st-ic-purple { --st-ic: #b48cff; }
[data-bs-theme=dark] .st-ic-green  { --st-ic: #4bd08a; }
.side-nav .side-nav-link .menu-icon i.st-ic,
.topbar-link i.st-ic,
.dropdown-item i.st-ic,
.dropdown-header i.st-ic,
.sidenav-user i.st-ic,
.app-search i.st-ic,
i.st-ic { color: var(--st-ic); }
/* the menu text still shows hover / active; the icon brightens a little with it */
.side-nav .side-nav-link .menu-icon i.st-ic { transition: transform .15s ease, filter .15s ease; }
.side-nav .side-nav-link:hover .menu-icon i.st-ic,
.side-nav .side-nav-link.active .menu-icon i.st-ic { filter: brightness(1.15) saturate(1.1); transform: scale(1.08); }
.topbar-link:hover i.st-ic, .dropdown-item:hover i.st-ic { filter: brightness(1.1); }

/* ==================================================================
   Positions (roster): /admin/positions (Views/Admin/Positions.cshtml + js/app-api/admin-positions.js), the position
   step in the add / edit member form (admin-users.js), badges on the members list and the Team Home squad.
   ================================================================== */
/* short-form badge ("PG") */
.st-pos-badge {
  display: inline-flex; align-items: center; margin-left: .35rem; padding: .05rem .4rem; border-radius: .35rem; vertical-align: .1em;
  background: var(--st-green-1); color: var(--st-green-accent); font-size: .68rem; font-weight: 800; letter-spacing: .04em; line-height: 1.5;
}
[data-bs-theme=dark] .st-pos-badge { background: rgba(var(--brand-accent-rgb), .16); }
.st-pos-tile {
  display: inline-flex; flex: none; align-items: center; justify-content: center; min-width: 2.9rem; height: 2.9rem; padding: 0 .4rem;
  border-radius: .8rem; background: var(--st-green-gradient); color: var(--st-green-accent); font-size: .95rem; font-weight: 800; letter-spacing: .03em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.st-pos-tile.is-lg { min-width: 3.4rem; height: 3.4rem; font-size: 1.05rem; }
[data-bs-theme=dark] .st-pos-tile { background: var(--st-header-dark); }

/* member form: picker + inline "new position" */
.st-member-position { display: flex; flex-wrap: wrap; gap: .5rem; }
.st-member-position .st-member-field { min-width: 14rem; }
.st-member-field .form-select { padding-left: 2.4rem; }
.st-member-newpos { margin-top: .75rem; padding: .85rem 1rem; border: 1px dashed rgba(var(--brand-1-rgb), .35); border-radius: .8rem; background: rgba(var(--brand-accent-rgb), .06); }
[data-bs-theme=dark] .st-member-newpos { border-color: rgba(var(--brand-accent-rgb), .3); background: rgba(var(--brand-accent-rgb), .05); }
.st-member-newpos-actions { padding-top: 1.55rem; }
@media (max-width: 575.98px) { .st-member-newpos-actions { padding-top: 0; } }
.st-member-preview-position {
  display: inline-flex; align-items: center; gap: .45rem; margin-top: .6rem; padding: .2rem .7rem .2rem .25rem; border-radius: 999px;
  background: rgba(255, 255, 255, .1); color: #fff; font-size: .82rem;
}
.st-member-preview-position strong { padding: .1rem .45rem; border-radius: 999px; background: var(--st-green-accent); color: var(--st-green-3); font-size: .72rem; letter-spacing: .04em; }

/* positions page list */
.st-positions-toolbar { padding-bottom: 1rem; }
.st-positions-list { margin: 0; padding: 0 1.25rem 1.25rem; list-style: none; display: grid; gap: .6rem; }
.st-positions-item {
  display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem; border: 1px solid var(--theme-border-color, #e9ecef); border-radius: .9rem;
  background: var(--theme-secondary-bg, #fff); transition: box-shadow .15s ease, border-color .15s ease, opacity .15s ease;
}
.st-positions-item:hover { border-color: rgba(var(--brand-1-rgb), .3); box-shadow: 0 6px 18px rgba(var(--brand-3-rgb), .06); }
.st-positions-item.is-inactive { opacity: .62; }
.st-positions-item.is-inactive .st-pos-tile { filter: grayscale(1); }
.st-positions-item.is-dragging { opacity: .45; border-style: dashed; }
.st-positions-item.is-skeleton { min-height: 4.5rem; }
.st-positions-handle { flex: none; color: var(--theme-secondary-color, #98a2b3); font-size: 1.2rem; cursor: grab; }
.st-positions-item[draggable="true"]:active .st-positions-handle { cursor: grabbing; }
.st-positions-text { flex: 1 1 auto; min-width: 0; }
.st-positions-name { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.st-positions-name strong { font-size: 1rem; }
.st-positions-text p { margin: .2rem 0 0; color: var(--theme-secondary-color, #6c757d); font-size: .84rem; }
.st-positions-tag { display: inline-flex; align-items: center; gap: .2rem; padding: .05rem .5rem; border-radius: 999px; background: var(--theme-tertiary-bg, #f1f3f5); color: var(--theme-secondary-color, #6c757d); font-size: .7rem; font-weight: 700; }
.st-positions-tag.is-custom { background: rgba(var(--brand-accent-rgb), .16); color: var(--st-green-1); }
[data-bs-theme=dark] .st-positions-tag.is-custom { color: var(--st-green-accent); }
.st-positions-tag.is-off { background: rgba(245, 159, 0, .14); color: #b7791f; }
.st-positions-count { display: inline-flex; flex: none; align-items: center; gap: .3rem; color: var(--st-green-1); font-size: .85rem; font-weight: 700; white-space: nowrap; }
[data-bs-theme=dark] .st-positions-count { color: var(--st-green-accent); }
.st-positions-count.is-zero { color: var(--theme-secondary-color, #98a2b3); font-weight: 500; }
.st-positions-actions { display: flex; flex: none; align-items: center; gap: .3rem; }
@media (max-width: 575.98px) {
  .st-positions-item { flex-wrap: wrap; }
  .st-positions-text { flex-basis: calc(100% - 4rem); }
  .st-positions-count { margin-left: auto; }
}

/* add / edit position dialog */
.st-posm .modal-content { border: 0; border-radius: 1rem; overflow: hidden; }
.st-posm .modal-header { gap: .9rem; color: #fff; background: var(--st-green-gradient); border-bottom: 0; }
[data-bs-theme=dark] .st-posm .modal-header { background: var(--st-header-dark); }
.st-posm .modal-header .modal-title { color: #fff; }
.st-posm .modal-header .btn-close { filter: invert(1) grayscale(1) brightness(2); }
.st-posm .modal-header .st-pos-tile { background: rgba(255, 255, 255, .1); }
.st-posm .modal-footer .btn { border-radius: 999px; }

/* Sport Types page (/admin/sports): list tiles show the icon; the dialog has an icon picker */
.st-sports-list .st-pos-tile { font-size: 1.45rem; }
.st-sportm .modal-header .st-pos-tile { font-size: 1.7rem; }
.st-sports-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(2.75rem, 1fr)); gap: .4rem; }
.st-sports-icon {
  display: inline-flex; align-items: center; justify-content: center; height: 2.75rem; padding: 0; border: 1px solid var(--theme-border-color, #e9ecef);
  border-radius: .7rem; background: var(--theme-secondary-bg, #fff); color: var(--theme-secondary-color, #6c757d); font-size: 1.35rem;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.st-sports-icon:hover { border-color: rgba(var(--brand-1-rgb), .35); color: var(--st-green-1); }
.st-sports-icon.is-on { border-color: var(--st-green-1); background: rgba(var(--brand-accent-rgb), .14); color: var(--st-green-1); box-shadow: inset 0 0 0 1px var(--st-green-1); }
[data-bs-theme=dark] .st-sports-icon:hover, [data-bs-theme=dark] .st-sports-icon.is-on { color: var(--st-green-accent); border-color: var(--st-green-accent); }
[data-bs-theme=dark] .st-sports-icon.is-on { box-shadow: inset 0 0 0 1px var(--st-green-accent); }
.st-sports-icon:focus-visible { outline: 2px solid var(--st-green-accent); outline-offset: 2px; }

/* Team Home squad: position on the avatar */
.st-home-avatar { position: relative; }
.st-home-avatar > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.st-home-pos {
  position: absolute; right: -.45rem; bottom: -.35rem; padding: .02rem .3rem; border-radius: .35rem;
  background: var(--st-green-1); color: var(--st-green-accent); font-size: .6rem; font-weight: 800; letter-spacing: .03em; line-height: 1.4;
  box-shadow: 0 0 0 2px var(--theme-secondary-bg, #fff);
}

/* ==================================================================
   Member nicknames ("Flash"): Members list, member card, Team Home roster.
   ================================================================== */
.st-nick { color: var(--theme-secondary-color, #6c757d); font-style: italic; font-weight: 500; }
.st-nick-lg { margin: -.15rem 0 .25rem; font-size: 1rem; }
.st-member-preview-nick { max-width: 100%; margin: -.1rem 0 .2rem; overflow: hidden; color: var(--st-green-accent, var(--brand-accent)); font-style: italic; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }

/* Confirmation card, amber tone (turn off two-factor, deactivate a member). */
.st-confirm.is-warning .st-confirm-icon { background: linear-gradient(160deg, #fff4e0, #ffe2b3); color: #b86e00; box-shadow: 0 0 0 7px rgba(248, 172, 89, .14); }
[data-bs-theme=dark] .st-confirm.is-warning .st-confirm-icon { background: rgba(248, 172, 89, .16); color: #ffc46b; }
.st-confirm.is-warning .st-confirm-points .ti { background: rgba(248, 172, 89, .14); color: #b86e00; }
[data-bs-theme=dark] .st-confirm.is-warning .st-confirm-points .ti { color: #ffc46b; }
.st-confirm.is-warning .st-confirm-ok { border: 0; background: linear-gradient(160deg, #f8ac59, #e08a1e); color: #fff; box-shadow: 0 8px 20px rgba(224, 138, 30, .28); }

/* ==================================================================
   Reset password modal (/admin/members): green hero with the member, then
   the new password (strength + rules + what happens), then a "done" state.
   ================================================================== */
.st-pwm .modal-dialog { max-width: 29rem; }
.st-pwm .modal-content { position: relative; overflow: hidden; border: 0; border-radius: 1.25rem; box-shadow: 0 30px 80px rgba(var(--brand-3-rgb), .35); }
.st-pwm-close { position: absolute; top: .9rem; right: .9rem; z-index: 2; filter: invert(1) grayscale(1) brightness(2); }
.st-pwm-hero {
  position: relative; padding: 1.9rem 1.5rem 1.25rem; color: #fff; text-align: center;
  background: radial-gradient(420px 220px at 100% 0%, rgba(var(--brand-accent-rgb), .22), transparent 60%), var(--st-green-gradient);
}
.st-pwm-badge {
  display: inline-flex; align-items: center; justify-content: center; width: 3.6rem; height: 3.6rem; margin-bottom: .8rem;
  border-radius: 1.1rem; background: rgba(255, 255, 255, .12); color: var(--st-green-accent, var(--brand-accent)); font-size: 1.7rem;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .06); transition: background .2s ease, color .2s ease;
}
.st-pwm.is-done .st-pwm-badge { background: var(--st-green-accent, var(--brand-accent)); color: var(--st-green-1, var(--brand-1)); }
.st-pwm-title { margin: 0 0 .3rem; color: #fff; font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; }
.st-pwm-lede { margin: 0 auto 1.1rem; max-width: 22rem; color: rgba(255, 255, 255, .78); font-size: .9rem; }
.st-pwm-member {
  display: flex; align-items: center; gap: .75rem; padding: .65rem .85rem; text-align: left;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: .9rem; background: rgba(255, 255, 255, .08);
}
.st-pwm-avatar { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; font-size: .9rem; font-weight: 800; }
.st-pwm-member strong { display: block; overflow: hidden; color: #fff; font-size: .95rem; text-overflow: ellipsis; white-space: nowrap; }
.st-pwm-member strong .st-nick { color: var(--st-green-accent, var(--brand-accent)); }
.st-pwm-member small { display: block; overflow: hidden; color: rgba(255, 255, 255, .7); font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }

.st-pwm-body { padding: 1.35rem 1.6rem 1.6rem; }
.st-pwm-field { position: relative; display: flex; align-items: center; }
.st-pwm-field > .ti { position: absolute; left: .95rem; color: var(--theme-secondary-color, #6c757d); pointer-events: none; }
.st-pwm-field .form-control { padding-left: 2.6rem; padding-right: 5.2rem; border-radius: .8rem; font-family: var(--bs-font-monospace, monospace); font-size: 1rem; letter-spacing: .02em; }
.st-pwm-field .form-control::placeholder { font-family: var(--bs-body-font-family); letter-spacing: 0; }
.st-pwm-icon-btn {
  position: absolute; display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem;
  border: 0; border-radius: .55rem; background: transparent; color: var(--theme-secondary-color, #6c757d); font-size: 1.1rem;
}
.st-pwm-icon-btn:hover, .st-pwm-icon-btn:focus-visible { background: var(--theme-tertiary-bg, #f3f5f4); color: var(--theme-emphasis-color, #212529); }
.st-pwm-field .st-pwm-icon-btn[data-reveal] { right: 2.6rem; }
.st-pwm-field .st-pwm-icon-btn[data-copy-input] { right: .4rem; }

.st-pwm-points { display: grid; gap: .55rem; margin: 1.1rem 0 0; padding: .95rem 1rem; border-radius: .9rem; background: var(--theme-tertiary-bg, #f6f8f7); list-style: none; font-size: .86rem; }
.st-pwm-points li { display: flex; align-items: flex-start; gap: .6rem; }
.st-pwm-points .ti { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 1.7rem; height: 1.7rem; margin-top: -.1rem; border-radius: .5rem; background: rgba(var(--brand-accent-rgb), .16); color: var(--st-green-1, var(--brand-1)); font-size: .95rem; }
[data-bs-theme=dark] .st-pwm-points .ti { color: var(--st-green-accent, var(--brand-accent)); }

.st-pwm-reveal {
  display: flex; align-items: center; gap: .75rem; padding: .85rem .9rem .85rem 1.1rem;
  border: 2px dashed rgba(var(--brand-accent-rgb), .55); border-radius: .9rem; background: rgba(var(--brand-accent-rgb), .07);
}
.st-pwm-reveal code { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; color: var(--theme-emphasis-color, #212529); font-size: 1.1rem; font-weight: 700; letter-spacing: .04em; }
.st-pwm-copy { flex: none; border: 0; border-radius: 999px; background: var(--st-green-gradient); color: #fff; font-weight: 700; }
.st-pwm-copy:hover, .st-pwm-copy:focus-visible { color: #fff; filter: brightness(1.1); }
.st-pwm-note { margin: .7rem 0 0; color: var(--theme-secondary-color, #6c757d); font-size: .82rem; }

.st-pwm-actions { display: grid; gap: .55rem; margin-top: 1.35rem; }
.st-pwm-actions .btn { padding: .7rem 1rem; border-radius: 999px; font-weight: 700; }
.st-pwm-ok { border: 0; background: var(--st-green-gradient); color: #fff; box-shadow: 0 8px 20px rgba(var(--brand-3-rgb), .25); }
.st-pwm-ok:hover, .st-pwm-ok:focus-visible { color: #fff; filter: brightness(1.1); }
.st-pwm-ok:focus-visible { outline: 3px solid rgba(var(--brand-accent-rgb), .55); outline-offset: 2px; }
.st-pwm-cancel { border: 1px solid var(--theme-border-color, #dee2e6); background: transparent; color: var(--theme-emphasis-color, #212529); }
.st-pwm-cancel:hover { background: var(--theme-tertiary-bg, #f3f5f4); }

/* ==================================================================
   Team logos (/api/tenants/{id}/logo): shown in place of the initials shield
   on the Teams page (cards, table, drawer, modal preview) and Team Home.
   ================================================================== */
.st-teams-logo {
  display: inline-flex; flex: none; align-items: center; justify-content: center; width: 3.1rem; height: 3.1rem; padding: .25rem;
  overflow: hidden; border: 1px solid var(--theme-border-color, #e5e8eb); border-radius: .8rem; background: #fff;
  box-shadow: 0 4px 12px rgba(var(--brand-3-rgb), .08);
}
.st-teams-logo img { width: 100%; height: 100%; object-fit: contain; }
.st-teams-logo.is-sm { width: 2.3rem; height: 2.3rem; padding: .15rem; border-radius: .6rem; }
.st-teams-logo.is-lg { width: 5.5rem; height: 5.5rem; padding: .4rem; border-radius: 1.2rem; }
.st-teamm-preview .st-teams-logo { margin-bottom: 1rem; border-color: rgba(255, 255, 255, .35); box-shadow: 0 10px 26px rgba(0, 0, 0, .25); }

.st-teamm-logo { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.st-teamm-logo-drop {
  position: relative; display: flex; flex: none; align-items: center; justify-content: center; width: 6.5rem; height: 6.5rem; padding: .45rem;
  overflow: hidden; border: 2px dashed var(--theme-border-color, #ced4da); border-radius: 1rem; background: var(--theme-tertiary-bg, #f6f8f7);
  cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.st-teamm-logo-drop:hover, .st-teamm-logo-drop:focus-visible, .st-teamm-logo-drop.is-over { border-color: var(--theme-primary); background: color-mix(in srgb, var(--theme-primary) 6%, transparent); outline: 0; }
.st-teamm-logo-drop.has-logo { border-style: solid; background: #fff; }
.st-teamm-logo-drop img { width: 100%; height: 100%; object-fit: contain; }
.st-teamm-logo-empty { display: flex; flex-direction: column; align-items: center; gap: .25rem; color: var(--theme-secondary-color, #6c757d); font-size: .72rem; line-height: 1.2; text-align: center; }
.st-teamm-logo-empty .ti { font-size: 1.6rem; }
.st-teamm-logo-side { flex: 1 1 14rem; min-width: 0; }

.st-home-crest.has-logo { clip-path: none; width: 5rem; height: 5rem; padding: .35rem; border-radius: 1.2rem; background: #fff; }
.st-home-crest.has-logo > span { display: flex; width: 100%; height: 100%; margin: 0; }
.st-home-crest-logo { width: 100%; height: 100%; object-fit: contain; }

/* Theme switch (app.js suspendTransitions): colours change in one frame instead of every element fading, which flickered. */
.st-theme-switching *, .st-theme-switching *::before, .st-theme-switching *::after { transition: none !important; }

/* ==================================================================
   Sport-themed page headers (js/app-api/header-fx.js): the team's field markings + a looping SVG animation
   in .st-hero / .st-vhead. Markings stay faint; the ball (or puck, runners...) is drawn in its own colours.
   ================================================================== */
.st-hero > svg.st-fx, .st-vhead > svg.st-fx, .st-prof-hero > svg.st-fx { opacity: .85; color: #fff; }
.st-fx .fx-lines { opacity: .17; }
.st-fx .fx-ball { filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .28)); }
/* Small screens: the scene sits behind the title, so it steps back. */
.st-hero > svg.st-fx.is-behind, .st-vhead > svg.st-fx.is-behind, .st-prof-hero > svg.st-fx.is-behind { opacity: .38; }

/* ==================================================================
   Members page (redesign): /admin/members below the header (Views/Admin/Members.cshtml + js/app-api/admin-users.js).
   Left: a sticky filter rail (search, status, roles, sign-in, with counts). Right: the results in Cards (default)
   or List view, then paging. The member drawer gets a green head. Scoped to .st-mem*; other admin pages keep
   using the .st-users-* styles above.
   ================================================================== */
.st-mem-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; align-items: start; }
@media (min-width: 992px) {
  .st-mem-layout { grid-template-columns: 16.5rem minmax(0, 1fr); }
  .st-mem-rail { position: sticky; top: calc(var(--theme-topbar-height, 70px) + 1rem); }
}

/* filter rail */
.st-mem-rail {
  display: grid; gap: 1.15rem; padding: 1.1rem; border: 1px solid var(--theme-border-color, #eef0f3); border-radius: 1rem;
  background: var(--theme-secondary-bg, #fff);
}
.st-mem-search { position: relative; }
.st-mem-search > .ti { position: absolute; top: 50%; left: .85rem; transform: translateY(-50%); color: var(--theme-secondary-color, #6c757d); pointer-events: none; }
.st-mem-search .form-control { height: 2.6rem; padding-left: 2.4rem; padding-right: 2.2rem; border-radius: .75rem; }
.st-mem-group { display: grid; gap: .15rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.st-mem-group legend, .st-mem-legend {
  float: none; width: auto; margin: 0 0 .35rem; padding: 0 .4rem; color: var(--theme-secondary-color, #6c757d);
  font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.st-mem-roles { display: grid; gap: .15rem; }
.st-mem-opt {
  position: relative; display: flex; align-items: center; gap: .6rem; width: 100%; margin: 0; padding: .4rem .5rem;
  border: 0; border-radius: .65rem; background: transparent; color: var(--theme-body-color, #343a40);
  font-size: .9rem; font-weight: 600; text-align: left; cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
.st-mem-opt input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.st-mem-opt:hover { background: color-mix(in srgb, var(--st-green-1) 7%, transparent); }
.st-mem-opt:has(input:checked), .st-mem-opt.active { background: var(--st-green-1); color: #fff; }
.st-mem-opt:has(input:focus-visible), .st-mem-opt:focus-visible { outline: 2px solid var(--st-green-accent); outline-offset: 2px; }
.st-mem-opt-icon {
  display: inline-flex; flex: none; align-items: center; justify-content: center; width: 1.9rem; height: 1.9rem; border-radius: .55rem;
  background: var(--theme-tertiary-bg, #f1f3f5); color: var(--st-green-1); font-size: 1.05rem;
}
.st-mem-opt-icon.is-success { color: var(--theme-success, #1ab394); }
.st-mem-opt-icon.is-muted { color: var(--theme-secondary-color, #6c757d); }
.st-mem-opt:has(input:checked) .st-mem-opt-icon, .st-mem-opt.active .st-mem-opt-icon { background: rgba(255, 255, 255, .16); color: #fff; }
.st-mem-opt-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-mem-opt b {
  flex: none; min-width: 1.9rem; padding: .05rem .45rem; border-radius: 999px; background: var(--theme-tertiary-bg, #f1f3f5);
  color: var(--theme-secondary-color, #6c757d); font-size: .74rem; font-weight: 800; text-align: center;
}
.st-mem-opt:has(input:checked) b, .st-mem-opt.active b { background: rgba(255, 255, 255, .2); color: #fff; }
[data-bs-theme=dark] .st-mem-opt-icon { color: var(--st-green-accent); }
[data-bs-theme=dark] .st-mem-opt:has(input:checked), [data-bs-theme=dark] .st-mem-opt.active { background: rgba(var(--brand-accent-rgb), .16); color: var(--st-green-accent); }
[data-bs-theme=dark] .st-mem-opt:has(input:checked) .st-mem-opt-icon, [data-bs-theme=dark] .st-mem-opt.active .st-mem-opt-icon,
[data-bs-theme=dark] .st-mem-opt:has(input:checked) b, [data-bs-theme=dark] .st-mem-opt.active b { color: var(--st-green-accent); }
/* phones and tablets: the rail sits on top, its groups side by side */
@media (max-width: 991.98px) {
  .st-mem-rail { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
  .st-mem-search, #user-clear-rail { grid-column: 1 / -1; }
}

/* results panel */
.st-mem-main { overflow: hidden; border: 1px solid var(--theme-border-color, #eef0f3); border-radius: 1rem; background: var(--theme-secondary-bg, #fff); }
.st-mem-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem;
  padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--theme-border-color, #eef0f3);
}
.st-mem-heading { margin: 0; font-size: 1.2rem; font-weight: 800; }
.st-mem-result { margin-top: .1rem; color: var(--theme-secondary-color, #6c757d); font-size: .85rem; }
.st-mem-bar-tools { display: flex; align-items: center; gap: .5rem; }
.st-mem-sort { width: auto; height: 2.4rem; border-radius: .7rem; }
.st-mem-view { display: inline-flex; padding: .2rem; border-radius: .7rem; background: var(--theme-tertiary-bg, #f1f3f5); }
.st-mem-view label {
  display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 2rem; margin: 0; border-radius: .55rem;
  color: var(--theme-secondary-color, #6c757d); font-size: 1.1rem; cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
.st-mem-view .btn-check:checked + label { background: var(--theme-secondary-bg, #fff); color: var(--st-green-1); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.st-mem-view .btn-check:focus-visible + label { outline: 2px solid var(--st-green-accent); outline-offset: 1px; }
[data-bs-theme=dark] .st-mem-view .btn-check:checked + label { color: var(--st-green-accent); }
.st-mem-results { transition: opacity .15s ease; }
.st-mem-results.is-loading { opacity: .55; }
.st-mem-table thead th { border-top: 0; }
.st-mem-error { grid-column: 1 / -1; padding: 3rem 1rem; color: var(--theme-danger, #ed5565); text-align: center; }

/* cards */
.st-mem-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 1rem; padding: 1.25rem; }
.st-mem-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: .1rem; min-width: 0; padding: 0 1rem;
  overflow: hidden; border: 1px solid var(--theme-border-color, #eef0f3); border-radius: 1rem; background: var(--theme-secondary-bg, #fff);
  text-align: center; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.st-mem-card:hover { transform: translateY(-3px); border-color: rgba(var(--brand-1-rgb), .3); box-shadow: 0 14px 30px rgba(var(--brand-3-rgb), .1); }
.st-mem-card:focus-visible { outline: 2px solid var(--st-green-1); outline-offset: 2px; }
.st-mem-card.is-you { border-color: var(--st-green-accent); box-shadow: 0 0 0 1px var(--st-green-accent); }
.st-mem-card.is-inactive > :not(.st-mem-card-menu):not(.st-mem-card-band) { opacity: .6; }
.st-mem-card.is-inactive .st-mem-card-band { filter: grayscale(1); }
.st-mem-card-band { position: absolute; inset: 0 0 auto 0; height: 3.5rem; }
.st-mem-card-menu { position: absolute; top: .5rem; right: .5rem; z-index: 2; }
.st-mem-card-menu > .btn { border-color: transparent; background: rgba(255, 255, 255, .7); }
[data-bs-theme=dark] .st-mem-card-menu > .btn { background: rgba(0, 0, 0, .3); }
.st-mem-card-avatar-wrap { position: relative; margin: 1.5rem 0 .55rem; }
.st-users-avatar.st-mem-card-avatar { width: 4.1rem; height: 4.1rem; font-size: 1.35rem; box-shadow: 0 0 0 4px var(--theme-secondary-bg, #fff); }
.st-mem-dot {
  position: absolute; right: .05rem; bottom: .2rem; width: 1rem; height: 1rem; border: 3px solid var(--theme-secondary-bg, #fff);
  border-radius: 50%; background: #adb5bd;
}
.st-mem-dot.is-on { background: var(--theme-success, #1ab394); }
.st-mem-card-name { max-width: 100%; margin: 0; overflow: hidden; font-size: 1rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.st-mem-you {
  margin-left: .35rem; padding: .05rem .4rem; border-radius: 999px; background: var(--st-green-accent); color: var(--st-green-3, var(--brand-3));
  font-size: .6rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; vertical-align: .2em;
}
.st-mem-card-nick { color: var(--st-green-1); font-size: .82rem; font-weight: 700; }
[data-bs-theme=dark] .st-mem-card-nick { color: var(--st-green-accent); }
.st-mem-card-email { max-width: 100%; overflow: hidden; color: var(--theme-secondary-color, #6c757d); font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.st-mem-card-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem; margin: .7rem 0 .9rem; }
.st-mem-card-tags .st-pos-badge { margin-left: 0; vertical-align: 0; }
.st-mem-card-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .3rem .9rem; width: calc(100% + 2rem);
  margin: auto -1rem 0; padding: .6rem 1rem; border-top: 1px solid var(--theme-border-color, #eef0f3);
  background: color-mix(in srgb, var(--theme-tertiary-bg, #f8f9fa) 60%, transparent); color: var(--theme-secondary-color, #6c757d); font-size: .78rem;
}
.st-mem-card-team, .st-mem-card-joined { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
.st-mem-card.is-skeleton { gap: .55rem; min-height: 14.5rem; cursor: default; }
.st-mem-card.is-skeleton:hover { transform: none; box-shadow: none; }
.st-mem-card.is-skeleton .st-mem-card-band { background: var(--theme-tertiary-bg, #eef0f3); }
.st-mem-card.is-skeleton .st-mem-card-avatar { margin-top: 1.5rem; animation: st-skel 1.2s ease-in-out infinite alternate; }

/* member drawer: green head */
.st-mem-drawer .offcanvas-header { background: var(--st-green-gradient); }
.st-mem-drawer .offcanvas-header .text-muted { color: rgba(255, 255, 255, .7) !important; }
.st-mem-drawer .offcanvas-header .btn-close { filter: invert(1) grayscale(1) brightness(2); }
/* the head runs edge to edge: the body has no padding of its own and indents everything after the head */
.st-mem-drawer .offcanvas-body { padding: 0 0 1.25rem; }
.st-mem-drawer .offcanvas-body > :not(.st-users-drawer-head) { margin-left: 1.25rem; margin-right: 1.25rem; }
.st-mem-drawer .st-users-drawer-head { margin: 0 0 1.25rem; padding: .25rem 1.25rem 1.5rem; background: var(--st-green-gradient); color: #fff; }
.st-mem-drawer .offcanvas-header { border-bottom: 0; }
[data-bs-theme=dark] .st-mem-drawer .offcanvas-header, [data-bs-theme=dark] .st-mem-drawer .st-users-drawer-head { background: var(--st-header-dark); }
.st-mem-drawer .st-users-drawer-head h4 { margin: .6rem 0 .1rem; color: #fff; font-weight: 800; }
.st-mem-drawer .st-users-drawer-head .text-muted { color: rgba(255, 255, 255, .75) !important; }
.st-mem-drawer .st-users-drawer-head .st-nick { color: var(--st-green-accent); }
.st-mem-drawer .st-users-drawer-head .st-users-avatar { box-shadow: 0 0 0 4px rgba(255, 255, 255, .18); }
.st-mem-drawer .st-users-drawer-head .st-users-status,
.st-mem-drawer .st-users-drawer-head .st-users-2fa { padding: .2rem .65rem; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; }
.st-mem-drawer .st-users-drawer-head .st-users-status.is-active .ti,
.st-mem-drawer .st-users-drawer-head .st-users-2fa.is-on .ti { color: var(--st-green-accent); }

/* ==========================================================================
   Member profile photos (/api/users/{id}/photo). Avatars show the photo when there is one, otherwise initials.
   Used by: Members page (cards, list, drawer, dialogs), top bar + side menu ([data-me-avatar]), Account header.
   ========================================================================== */
.st-users-avatar.has-photo, .st-member-avatar.has-photo, .st-pwm-avatar.has-photo,
.st-me-avatar.has-photo, .st-account-avatar.has-photo { overflow: hidden; padding: 0; background: var(--theme-tertiary-bg, #eef0f3); }
.st-users-avatar.has-photo img, .st-member-avatar.has-photo img, .st-pwm-avatar.has-photo img,
.st-me-avatar.has-photo img, .st-account-avatar.has-photo img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }

/* cards: members still missing a photo */
.st-mem-nophoto {
  position: absolute; top: -.1rem; right: -.2rem; display: inline-flex; align-items: center; justify-content: center; width: 1.45rem; height: 1.45rem;
  border: 2px solid var(--theme-secondary-bg, #fff); border-radius: 50%; background: #b26a00; color: #fff; font-size: .72rem;
}
.st-mem-nophoto-note { display: inline-flex; align-items: center; gap: .35rem; margin-top: .6rem; padding: .2rem .65rem; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; font-size: .78rem; font-weight: 600; }

/* Add / Edit member: photo picker */
.st-member-photo {
  display: flex; align-items: center; gap: 1rem; padding: .85rem 1rem; border: 1.5px dashed var(--theme-border-color, #dee2e6);
  border-radius: .9rem; background: var(--theme-tertiary-bg, #f6f7fb); transition: border-color .15s ease, background .15s ease;
}
.st-member-photo.has-photo { border-style: solid; }
.st-member-photo.is-drag { border-color: var(--st-green-1, var(--brand-1)); background: color-mix(in srgb, var(--st-green-1, var(--brand-1)) 8%, transparent); }
.st-member-photo.is-invalid { border-color: var(--theme-danger, #dc3545); }
.st-member-photo-pick {
  position: relative; flex: none; width: 5rem; height: 5rem; padding: 0; overflow: hidden; border: 0; border-radius: 50%;
  background: var(--theme-secondary-bg, #fff); color: var(--st-green-1, var(--brand-1)); box-shadow: 0 0 0 3px var(--theme-secondary-bg, #fff), 0 4px 12px rgba(0, 0, 0, .12);
}
.st-member-photo-pick:focus-visible { outline: 3px solid var(--st-green-accent, var(--brand-accent)); outline-offset: 2px; }
.st-member-photo-pick img { width: 100%; height: 100%; object-fit: cover; }
.st-member-photo-empty { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 1.9rem; }
.st-member-photo-edit {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .45); color: #fff;
  font-size: 1.4rem; opacity: 0; transition: opacity .15s ease;
}
.st-member-photo.has-photo .st-member-photo-pick:hover .st-member-photo-edit,
.st-member-photo.has-photo .st-member-photo-pick:focus-visible .st-member-photo-edit { opacity: 1; }
.st-member-photo-text { min-width: 0; }
.st-member-photo-text .form-text { margin-top: .4rem; }
.st-member-avatar.has-photo { border-color: rgba(255, 255, 255, .6); }

/* top bar + side menu */
.st-me-avatar {
  display: inline-flex; flex: none; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--st-green-1, var(--brand-1)); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .02em;
}
.st-me-avatar.is-md { width: 2.75rem; height: 2.75rem; font-size: 1rem; }
.sidenav-user .st-me-avatar { display: flex; }

/* Account header: change your photo */
.st-account-avatar-wrap { position: relative; flex: none; }
.st-account-photo-btn {
  position: absolute; right: -.4rem; bottom: -.4rem; display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem;
  margin: 0; border: 2px solid #fff; border-radius: 50%; background: var(--st-green-1, var(--brand-1)); color: #fff; font-size: 1rem; cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .25); transition: transform .15s ease;
}
.st-account-photo-btn:hover { transform: scale(1.08); }
.st-account-photo-btn.is-missing { background: #b26a00; animation: st-photo-pulse 1.6s ease-in-out infinite; }
.st-account-photo-btn.is-busy { opacity: .6; pointer-events: none; }
#account-photo:focus-visible + .st-account-photo-btn, .st-account-avatar-wrap:focus-within .st-account-photo-btn { outline: 3px solid var(--st-green-accent, var(--brand-accent)); outline-offset: 2px; }
@keyframes st-photo-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(178, 106, 0, .6); } 50% { box-shadow: 0 0 0 7px rgba(178, 106, 0, 0); } }
@media (prefers-reduced-motion: reduce) { .st-account-photo-btn.is-missing { animation: none; } }


/* ==================================================================
   Season schedule (/schedule): Views/Schedule/Index.cshtml + js/app-api/schedule.js.
   Inside .st-videos for the green variables. Event kinds: game (green), practice (blue), meeting (purple), other (amber).
   ================================================================== */
.st-sched { --st-sched-game: var(--st-green-1); --st-sched-practice: #2f7ed8; --st-sched-meeting: #7c4dbd; --st-sched-other: #c27c00; }
[data-bs-theme=dark] .st-sched { --st-sched-game: var(--st-green-accent); --st-sched-practice: #6aa9f0; --st-sched-meeting: #b18ae6; --st-sched-other: #f0b443; }
.st-sched-bar .st-vbar-group { flex-wrap: wrap; }
.st-sched-bar .st-sched-views { margin-left: auto; }
.st-sched-bar .st-sched-views .st-vbar-chip { padding: 0 .7rem; }

.st-sched-month { margin-bottom: 1.5rem; }
.st-sched-month-title { margin: 0 0 .6rem .25rem; color: var(--theme-secondary-color, #6c757d); font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.st-sched-rows { display: grid; gap: .6rem; }
.st-sched-row {
  --kind: var(--st-sched-other);
  position: relative; display: flex; align-items: center; gap: 1rem; padding: .85rem 1rem; cursor: pointer;
  background: var(--theme-card-bg, #fff); border: 1px solid var(--theme-border-color, #e9ecef); border-left: 4px solid var(--kind);
  transition: box-shadow .15s ease, transform .15s ease;
}
.st-sched-row:hover, .st-sched-row:focus-visible { box-shadow: 0 6px 18px rgba(0, 0, 0, .07); outline: none; }
.st-sched-row.is-game, .st-sched-fc.is-game { --kind: var(--st-sched-game); }
.st-sched-row.is-practice, .st-sched-fc.is-practice { --kind: var(--st-sched-practice); }
.st-sched-row.is-meeting, .st-sched-fc.is-meeting { --kind: var(--st-sched-meeting); }
.st-sched-row.is-other, .st-sched-fc.is-other { --kind: var(--st-sched-other); }
.st-sched-row.is-past { opacity: .8; }
.st-sched-row.is-cancelled .st-sched-title > span:first-child { text-decoration: line-through; }
.st-sched-row.is-inactive { opacity: .55; border-style: dashed; }
.st-sched-date { flex: 0 0 3.4rem; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.st-sched-date strong { font-size: 1.5rem; font-weight: 800; }
.st-sched-date small { color: var(--theme-secondary-color, #6c757d); font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.st-sched-type-tile {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem;
  color: var(--kind, var(--st-green-1)); background: color-mix(in srgb, var(--kind, var(--st-green-1)) 12%, transparent); font-size: 1.2rem;
}
.st-sched-type-tile.is-lg { width: 2.75rem; height: 2.75rem; color: #fff; background: rgba(255, 255, 255, .15); font-size: 1.4rem; }
.st-sched-main { flex: 1 1 auto; min-width: 0; }
.st-sched-title { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-weight: 700; font-size: .98rem; }
.st-sched-meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-top: .15rem; color: var(--theme-secondary-color, #6c757d); font-size: .82rem; }
.st-sched-meta .ti { margin-right: .3rem; }
.st-sched-notes { margin: .35rem 0 0; color: var(--theme-secondary-color, #6c757d); font-size: .82rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-sched-badge {
  display: inline-flex; align-items: center; gap: .25rem; padding: .1rem .45rem; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  color: var(--theme-secondary-color, #6c757d); background: var(--theme-tertiary-bg, #f1f3f5);
}
.st-sched-badge.is-home { color: var(--st-sched-game); background: color-mix(in srgb, var(--st-sched-game) 12%, transparent); }
.st-sched-badge.is-away { color: var(--st-sched-practice); background: color-mix(in srgb, var(--st-sched-practice) 12%, transparent); }
.st-sched-badge.is-postponed { color: #b7791f; background: rgba(245, 159, 0, .14); }
.st-sched-badge.is-cancelled { color: #c0392b; background: rgba(220, 53, 69, .12); }
.st-sched-badge.is-off { color: #ffd27a; background: rgba(0, 0, 0, .7); }
.st-sched-result { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .6rem; font-weight: 800; font-size: 1rem; background: var(--theme-tertiary-bg, #f1f3f5); }
.st-sched-result b { display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; color: #fff; font-size: .8rem; }
.st-sched-result.is-win b { background: var(--st-sched-game); }
.st-sched-result.is-loss b { background: #c0392b; }
.st-sched-result.is-draw b { background: #6c757d; }
.st-sched-menu { flex: 0 0 auto; }
@media (max-width: 575.98px) {
  .st-sched-row { flex-wrap: wrap; gap: .6rem; }
  .st-sched-row .st-sched-type-tile { display: none; }
  .st-sched-main { flex-basis: calc(100% - 4.5rem); }
  .st-sched-bar .st-sched-views { margin-left: 0; }
}

/* calendar (FullCalendar). The theme (app.min.css) styles .fc buttons and events with !important, so these do too. */
.st-sched-calendar { padding: 1rem; background: var(--theme-card-bg, #fff); border: 1px solid var(--theme-border-color, #e9ecef); }
.st-sched-calendar .fc .fc-toolbar-title { font-size: 1.15rem; font-weight: 800; }
.st-sched-calendar .fc .fc-toolbar .fc-today-button { display: inline-block; }
.st-sched-calendar .fc-toolbar-chunk .fc-button-group .fc-button,
.st-sched-calendar .fc-toolbar-chunk .fc-today-button { background-color: color-mix(in srgb, var(--st-green-1) 10%, transparent) !important; border: 0 !important; color: var(--st-green-1) !important; }
.st-sched-calendar .fc-toolbar-chunk .fc-button-group .fc-button:hover,
.st-sched-calendar .fc-toolbar-chunk .fc-today-button:hover,
.st-sched-calendar .fc .fc-button-primary:not(:disabled).fc-button-active { background-color: var(--st-green-1) !important; color: #fff !important; }
[data-bs-theme=dark] .st-sched-calendar .fc-toolbar-chunk .fc-button-group .fc-button,
[data-bs-theme=dark] .st-sched-calendar .fc-toolbar-chunk .fc-today-button { color: var(--st-green-accent) !important; }
.st-sched-calendar .fc-event.st-sched-fc { background-color: var(--kind) !important; border: 0; color: #fff !important; cursor: pointer; margin: 2px 4px; padding: 3px 6px; text-align: left; }
.st-sched-calendar .fc-event.st-sched-fc .fc-event-title, .st-sched-calendar .fc-event.st-sched-fc .fc-event-time { color: #fff; }
.st-sched-calendar .fc-event.st-sched-fc .fc-event-time { display: inline; margin-right: .3rem; font-weight: 700; }
.st-sched-calendar .fc-event.st-sched-fc.is-cancelled .fc-event-title { text-decoration: line-through; }
.st-sched-calendar .fc-event.st-sched-fc.is-inactive { opacity: .5; }

/* double-click a day (or a week-view time) to add: people with Schedule.Manage */
.st-sched-hint { display: flex; align-items: center; gap: .45rem; margin: 0 0 .6rem .25rem; color: var(--theme-secondary-color, #6c757d); font-size: .85rem; }
.st-sched-hint .ti { color: var(--st-green-1); font-size: 1.1rem; }
.st-sched-calendar.is-editable .fc-daygrid-day,
.st-sched-calendar.is-editable .fc-timegrid-slot { cursor: cell; user-select: none; }
.st-sched-calendar.is-editable .fc-daygrid-day:hover { background: color-mix(in srgb, var(--st-green-1) 6%, transparent); }
.st-sched-calendar.is-editable .fc-timegrid-slot-lane:hover { background: color-mix(in srgb, var(--st-green-1) 8%, transparent); }

/* add / edit */
.st-sched-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.st-sched-type { display: flex; flex-direction: column; align-items: center; gap: .25rem; margin: 0; padding: .6rem .4rem; cursor: pointer; font-weight: 600; font-size: .85rem; border: 1px solid var(--theme-border-color, #dee2e6); }
.st-sched-type .ti { font-size: 1.35rem; color: var(--st-green-1); }
.btn-check:checked + .st-sched-type { border-color: var(--st-green-1); background: color-mix(in srgb, var(--st-green-1) 8%, transparent); }
.btn-check:focus-visible + .st-sched-type { outline: 2px solid var(--st-green-1); outline-offset: 2px; }
.st-sched-score { display: flex; align-items: flex-start; gap: .75rem; }
.st-sched-score > div { width: 6rem; text-align: center; }
.st-sched-score small { color: var(--theme-secondary-color, #6c757d); font-size: .75rem; }
.st-sched-score > span { padding-top: .4rem; font-weight: 800; }
@media (max-width: 575.98px) { .st-sched-types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* details */
.st-sched-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.st-sched-facts li { display: flex; gap: .6rem; align-items: flex-start; }
.st-sched-facts .ti { color: var(--st-green-1); font-size: 1.1rem; }
.st-sched-details-notes { margin: 1rem 0 0; padding: .75rem; background: var(--theme-tertiary-bg, #f1f3f5); white-space: pre-line; }
/* the schedule's modals sit outside .st-videos: same green variables */
.st-sched-modal {
  --st-green-1: var(--brand-1);
  --st-green-2: var(--brand-2);
  --st-green-3: var(--brand-3);
  --st-green-accent: var(--brand-accent);
  --st-green-gradient: linear-gradient(160deg, var(--st-green-1) 0%, var(--st-green-2) 55%, var(--st-green-3) 100%);
}


/* ==================================================================
   Search results (/search): Views/Search/Index.cshtml + js/app-api/search.js. Inside .st-videos for the green variables.
   ================================================================== */
.st-search-bar { position: static; }
.st-search-bar .st-vbar-search { flex: 1 1 auto; }
.st-search-section { margin-bottom: 1.5rem; }
.st-search-section > header { display: flex; align-items: center; justify-content: space-between; margin: 0 0 .5rem .25rem; }
.st-search-section h3 { display: flex; align-items: center; gap: .5rem; margin: 0; color: var(--theme-secondary-color, #6c757d); font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.st-search-section h3 .ti { color: var(--st-green-1); font-size: 1.1rem; }
.st-search-section h3 span { padding: 0 .4rem; background: var(--theme-tertiary-bg, #f1f3f5); font-size: .72rem; }
.st-search-all { font-size: .85rem; font-weight: 600; color: var(--st-green-1); }
.st-search-rows { display: grid; gap: .5rem; }
.st-search-row { display: flex; align-items: center; gap: .85rem; padding: .7rem .9rem; color: inherit; text-decoration: none; background: var(--theme-card-bg, #fff); border: 1px solid var(--theme-border-color, #e9ecef); transition: box-shadow .15s ease, border-color .15s ease; }
.st-search-row:hover, .st-search-row:focus-visible { border-color: var(--st-green-1); box-shadow: 0 4px 14px rgba(0, 0, 0, .06); outline: none; }
.st-search-ico { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; color: var(--st-green-1); background: color-mix(in srgb, var(--st-green-1) 10%, transparent); font-size: 1.15rem; }
.st-search-text { flex: 1 1 auto; min-width: 0; line-height: 1.25; }
.st-search-text strong { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-search-text small { display: block; color: var(--theme-secondary-color, #6c757d); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-search-row mark { padding: 0; color: inherit; background: color-mix(in srgb, #f5c518 45%, transparent); }
.st-search-tag { flex: 0 0 auto; padding: .1rem .45rem; color: #b7791f; background: rgba(245, 159, 0, .14); font-size: .68rem; font-weight: 700; text-transform: uppercase; }
.st-search-avatar { flex: 0 0 auto; width: 2.25rem; height: 2.25rem; object-fit: cover; background: var(--theme-tertiary-bg, #eef0f3); }
.st-search-avatar.is-initials { display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; color: var(--theme-secondary-color, #6c757d); }
.st-search-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); gap: .5rem; }
.st-search-photo { display: block; aspect-ratio: 1; overflow: hidden; background: var(--st-green-gradient); }
.st-search-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.st-search-photo:hover img { transform: scale(1.05); }
.st-search-loading { display: flex; align-items: center; justify-content: center; padding: 3rem 1rem; color: var(--theme-secondary-color, #6c757d); }


/* ---- Sport colors (/admin/sports): each sport's icon in the color of its ball or gear, on a smoke-white tile.
   The class comes from the icon (TONES in js/app-api/admin-sports.js). ---- */
.st-sports-list .st-pos-tile, .st-sportm .st-pos-tile {
  background: var(--st-smoke, #f4f3ef); color: var(--st-tone, #c99a06); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
}
.st-sportm .modal-header .st-pos-tile { background: var(--st-smoke, #f4f3ef); }
[data-bs-theme=dark] .st-sports-list .st-pos-tile, [data-bs-theme=dark] .st-sportm .st-pos-tile { --st-smoke: #2a2f2d; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.st-sports-icon { background: var(--st-smoke, #f4f3ef); color: var(--st-tone, #c99a06); }
.st-sports-icon:hover { color: var(--st-tone, #c99a06); }
.st-sports-icon.is-on { color: var(--st-tone, #c99a06); }
[data-bs-theme=dark] .st-sports-icon { --st-smoke: #2a2f2d; }
[data-bs-theme=dark] .st-sports-icon:hover, [data-bs-theme=dark] .st-sports-icon.is-on { color: var(--st-tone); }
.st-sports-list .is-inactive .st-pos-tile { filter: grayscale(1); }
.st-sport-tone-orange { --st-tone: #e8710a; }
[data-bs-theme=dark] .st-sport-tone-orange { --st-tone: #ff9a3c; }
.st-sport-tone-green { --st-tone: #2f9e44; }
[data-bs-theme=dark] .st-sport-tone-green { --st-tone: #4bd08a; }
.st-sport-tone-brown { --st-tone: #8d5524; }
[data-bs-theme=dark] .st-sport-tone-brown { --st-tone: #c98a5a; }
.st-sport-tone-red { --st-tone: #d9342b; }
[data-bs-theme=dark] .st-sport-tone-red { --st-tone: #ff6b6b; }
.st-sport-tone-yellow { --st-tone: #e0a100; }
[data-bs-theme=dark] .st-sport-tone-yellow { --st-tone: #ffd43b; }
.st-sport-tone-lime { --st-tone: #7fa800; }
[data-bs-theme=dark] .st-sport-tone-lime { --st-tone: #c0e04a; }
.st-sport-tone-indigo { --st-tone: #4c4fb3; }
[data-bs-theme=dark] .st-sport-tone-indigo { --st-tone: #8c8ff0; }
.st-sport-tone-pink { --st-tone: #d6336c; }
[data-bs-theme=dark] .st-sport-tone-pink { --st-tone: #f783ac; }
.st-sport-tone-ice { --st-tone: #1c9ad6; }
[data-bs-theme=dark] .st-sport-tone-ice { --st-tone: #66d1ff; }
.st-sport-tone-blue { --st-tone: #0b7fc7; }
[data-bs-theme=dark] .st-sport-tone-blue { --st-tone: #5aa9f0; }
.st-sport-tone-coral { --st-tone: #e8590c; }
[data-bs-theme=dark] .st-sport-tone-coral { --st-tone: #ff8a5c; }
.st-sport-tone-teal { --st-tone: #0c8599; }
[data-bs-theme=dark] .st-sport-tone-teal { --st-tone: #3ed1c0; }
.st-sport-tone-purple { --st-tone: #7048e8; }
[data-bs-theme=dark] .st-sport-tone-purple { --st-tone: #b197fc; }
.st-sport-tone-olive { --st-tone: #5c7a3a; }
[data-bs-theme=dark] .st-sport-tone-olive { --st-tone: #a3c26b; }
.st-sport-tone-slate { --st-tone: #495057; }
[data-bs-theme=dark] .st-sport-tone-slate { --st-tone: #ced4da; }
.st-sport-tone-gold { --st-tone: #c99a06; }
[data-bs-theme=dark] .st-sport-tone-gold { --st-tone: #ffd24a; }


/* ---- Page header colour (from the reference image BG.png): a plain top-to-bottom gradient, #1c3d59 to #242b4d, on every
   page header of the app: the dashboard and admin pages (.st-hero), the video / photo / schedule / search / support /
   notification / team home headers (.st-vhead) and the account header (.st-account-hero). Not the landing page
   (.lp-hero). White text is far above 4.5:1 against it. ---- */
.st-hero, .st-vhead, .st-account .st-account-hero,
[data-bs-theme=dark] .st-hero, [data-bs-theme=dark] .st-vhead, [data-bs-theme=dark] .st-account .st-account-hero {
  background: linear-gradient(180deg, #1c3d59 0%, #242b4d 100%);
  box-shadow: 0 10px 30px rgba(28, 61, 89, .28);
}
[data-bs-theme=dark] .st-hero, [data-bs-theme=dark] .st-vhead, [data-bs-theme=dark] .st-account .st-account-hero { box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
/* the selected stat box and the "Add ..." / "Upload ..." buttons inside the headers: light blue instead of the green accent */
.st-vstat.active, .st-hero-stat.active { background: rgba(125, 180, 234, .16); box-shadow: inset 0 3px 0 #7db4ea; }
.st-vhead-add:hover, .st-vhead-add:focus-visible { background: #d9e4ee; color: #1c3d59; }
/* the header's "Add ..." button: light blue-grey instead of the green accent on hover */
.st-hero .st-users-add:hover, .st-hero .st-users-add:focus-visible { background: #d9e4ee; color: #1c3d59; }

/* Gold border around every photo in the gallery (/photos). Brighter gold on hover and in dark mode. */
.st-photo { border: 3px solid #d4a017; }
.st-photo:hover { border-color: #f0bc2e; }
[data-bs-theme=dark] .st-photo { border-color: #e6b422; }
[data-bs-theme=dark] .st-photo:hover { border-color: #ffd24a; }


/* ---- Teams drawer (/admin/tenants): status badge, action buttons and the Deactivate dialog.
   Dark green = the app's header green (#0d4a32 to #08301f); dark warning = deep amber (#c2590a to #8a3a00). ---- */
.st-team-state {
  display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .9rem; border-radius: 999px; color: #fff;
  font-size: .85rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
}
.st-team-state .ti { font-size: .6rem; }
.st-team-state.is-active { background: linear-gradient(160deg, #0d4a32, #08301f); box-shadow: 0 4px 12px rgba(8, 48, 31, .3); }
.st-team-state.is-active .ti { color: #3ddc84; }
.st-team-state.is-inactive { background: linear-gradient(160deg, #c2590a, #8a3a00); box-shadow: 0 4px 12px rgba(138, 58, 0, .3); }
.st-team-state.is-inactive .ti { color: #ffc46b; }
.st-team-btn { border: 0; color: #fff; font-weight: 600; transition: filter .15s ease, transform .15s ease; }
.st-team-btn:hover, .st-team-btn:focus-visible { color: #fff; filter: brightness(1.15); }
.st-team-btn:active { transform: translateY(1px); }
.st-team-btn.is-green { background: linear-gradient(160deg, #0d4a32, #08301f); }
.st-team-btn.is-warn { background: linear-gradient(160deg, #c2590a, #8a3a00); }
.st-team-btn:focus-visible { outline: 3px solid rgba(61, 220, 132, .5); outline-offset: 2px; }
.st-team-btn.is-warn:focus-visible { outline-color: rgba(255, 196, 107, .6); }

.st-confirm.is-dwarn .st-confirm-icon { background: linear-gradient(160deg, #c2590a, #8a3a00); color: #fff; box-shadow: 0 0 0 7px rgba(194, 89, 10, .16), 0 12px 26px rgba(138, 58, 0, .35); }
.st-confirm.is-dwarn .modal-content { box-shadow: 0 30px 80px rgba(60, 34, 0, .4); }
.st-confirm.is-dwarn .st-confirm-head { background: linear-gradient(180deg, rgba(194, 89, 10, .1), transparent); border-top: 5px solid #c2590a; }
.st-confirm.is-dwarn .st-confirm-avatar { background: linear-gradient(160deg, #c2590a, #8a3a00); color: #fff; }
.st-confirm.is-dwarn .st-confirm-points .ti { background: rgba(194, 89, 10, .14); color: #8a5000; }
[data-bs-theme=dark] .st-confirm.is-dwarn .st-confirm-points .ti { color: #ffc46b; }
.st-confirm.is-dwarn .st-confirm-ok { border: 0; background: linear-gradient(160deg, #d4650c, #9a4200); color: #fff; box-shadow: 0 8px 20px rgba(138, 58, 0, .35); }
.st-confirm.is-dwarn .st-confirm-ok:focus-visible { outline-color: rgba(255, 196, 107, .6); }


/* ---- Green alert (SportsApi.notice): for "done" moments such as copying a team key. Dark green like the page header
   green, bright green accent, a timer bar that pauses on hover. ---- */
.st-notice {
  /* The theme gives .toast-container pointer-events:none; without this, clicks (the x) fall through to the user menu below. */
  position: relative; pointer-events: auto; display: flex; align-items: flex-start; gap: .85rem; width: 22rem; max-width: calc(100vw - 2rem); margin-bottom: .6rem;
  padding: .95rem 2.6rem 1.1rem .95rem; overflow: hidden; color: #fff; border-left: 5px solid #3ddc84;
  background: linear-gradient(160deg, #0d4a32, #08301f); box-shadow: 0 14px 34px rgba(4, 26, 17, .38);
  animation: st-notice-in .28s cubic-bezier(.2, .9, .3, 1.2) both;
}
.st-notice.is-leaving { animation: st-notice-out .25s ease both; }
@keyframes st-notice-in { from { opacity: 0; transform: translateX(1.5rem) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes st-notice-out { to { opacity: 0; transform: translateX(1.5rem); } }
.st-notice-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; background: rgba(61, 220, 132, .18); color: #3ddc84; font-size: 1.4rem; }
.st-notice-text { display: grid; gap: .2rem; min-width: 0; line-height: 1.3; }
.st-notice-text strong { font-size: .98rem; font-weight: 700; }
.st-notice-text span { color: rgba(255, 255, 255, .78); font-size: .84rem; }
.st-notice-text code { justify-self: start; max-width: 100%; margin-top: .25rem; padding: .15rem .55rem; overflow: hidden; color: #b8f5d2; background: rgba(0, 0, 0, .28); font-size: .85rem; text-overflow: ellipsis; white-space: nowrap; }
.st-notice-close { position: absolute; top: .55rem; right: .55rem; display: inline-flex; width: 1.7rem; height: 1.7rem; align-items: center; justify-content: center; border: 0; background: transparent; color: rgba(255, 255, 255, .7); }
.st-notice-close:hover, .st-notice-close:focus-visible { background: rgba(255, 255, 255, .12); color: #fff; }
.st-notice-bar { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: #3ddc84; transform-origin: left; animation: st-notice-bar var(--st-notice-delay, 4s) linear forwards; }
.st-notice.is-paused .st-notice-bar { animation-play-state: paused; }
@keyframes st-notice-bar { to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .st-notice, .st-notice.is-leaving { animation: none; } .st-notice-bar { animation-duration: 0s; } }


/* ---- Alert colors by kind (success is the default dark green above). Used by every message on the site via SportsApi.toast. ---- */
.st-notice.is-info { border-left-color: #7db4ea; background: linear-gradient(160deg, #1c3d59, #242b4d); box-shadow: 0 14px 34px rgba(20, 30, 60, .4); }
.st-notice.is-info .st-notice-icon { background: rgba(125, 180, 234, .18); color: #7db4ea; }
.st-notice.is-info .st-notice-bar { background: #7db4ea; }
.st-notice.is-info .st-notice-text code { color: #cfe4fa; }
.st-notice.is-warning { border-left-color: #ffc46b; background: linear-gradient(160deg, #c2590a, #8a3a00); box-shadow: 0 14px 34px rgba(60, 34, 0, .42); }
.st-notice.is-warning .st-notice-icon { background: rgba(255, 196, 107, .2); color: #ffc46b; }
.st-notice.is-warning .st-notice-bar { background: #ffc46b; }
.st-notice.is-warning .st-notice-text code { color: #ffe3b3; }
.st-notice.is-danger { border-left-color: #ff8a80; background: linear-gradient(160deg, #8f2a24, #5e1713); box-shadow: 0 14px 34px rgba(70, 10, 8, .45); }
.st-notice.is-danger .st-notice-icon { background: rgba(255, 138, 128, .2); color: #ff8a80; }
.st-notice.is-danger .st-notice-bar { background: #ff8a80; }
.st-notice.is-danger .st-notice-text code { color: #ffd2cd; }
.st-notice-text span { white-space: pre-line; overflow-wrap: anywhere; }
.st-notice-text strong { overflow-wrap: anywhere; }
.st-notice-link { justify-self: start; display: inline-flex; align-items: center; margin-top: .3rem; padding: .2rem .6rem; color: #fff; background: rgba(255, 255, 255, .14); font-size: .84rem; font-weight: 600; text-decoration: none; }
.st-notice-link:hover, .st-notice-link:focus-visible { color: #fff; background: rgba(255, 255, 255, .24); }

/* Dialogs over the photo viewer: the viewer (.st-lightbox, z-index 1095) covers Bootstrap's dialogs (1055) and their
   backdrop (1050), so while it is open (body.st-lightbox-on) the Delete / Deactivate confirmations go above it. */
body.st-lightbox-on .modal-backdrop { z-index: 1100; }
body.st-lightbox-on .modal { z-index: 1105; }


/* ==================================================================
   Account page header (/Account/*): shorter, a smaller photo, and the team's sport animation (js/app-api/header-fx.js:
   a random sport for super admins and members without a team). Photo controls in Personal details. Top bar team name.
   ================================================================== */
.st-account .st-account-hero-body { padding: 1rem 1.75rem; }
.st-account .st-account-avatar { width: 56px; height: 56px; border-width: 2px; border-radius: .9rem; font-size: 1.2rem; }
.st-account .st-account-photo-btn { right: -.35rem; bottom: -.35rem; width: 1.6rem; height: 1.6rem; font-size: .8rem; border-width: 2px; }
.st-account .st-account-identity h3 { margin-bottom: .2rem; font-size: clamp(1.1rem, 1.7vw, 1.4rem); }
.st-account .st-account-meta { gap: .15rem 1rem; font-size: .8rem; }
.st-account .st-account-role { padding: .3rem .65rem; font-size: .75rem; }
.st-account .st-account-cover > svg.st-fx { position: absolute; top: 0; right: 0; width: 100%; height: 100%; opacity: .85; color: #fff; }
.st-account .st-account-cover > svg.st-fx.is-behind { opacity: .38; }
@media (max-width: 575.98px) { .st-account .st-account-hero-body { padding: .9rem 1rem; } }

/* profile photo in Personal details */
.st-photo-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--theme-border-color, #e9ecef); }
.st-photo-edit-img {
  display: inline-flex; flex: none; align-items: center; justify-content: center; width: 96px; height: 96px; overflow: hidden;
  border: 1px solid var(--theme-border-color, #dee2e6); background: var(--theme-tertiary-bg, #eef0f3); color: var(--theme-secondary-color, #6c757d); font-size: 2rem; font-weight: 800;
}
.st-photo-edit-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.st-photo-edit-body { flex: 1 1 18rem; min-width: 0; }
.st-photo-edit-body > strong { display: block; font-size: 1rem; }
.st-photo-edit-help { margin: .15rem 0 0; color: var(--theme-secondary-color, #6c757d); font-size: .85rem; }
.st-photo-edit-help.is-pending { color: #8a5000; font-weight: 600; }
[data-bs-theme=dark] .st-photo-edit-help.is-pending { color: #ffc46b; }
.st-photo-edit-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }

/* the team you're working in, in the top bar (after the search, before the Mega Menu) */
.st-topbar-team {
  flex: none; align-items: center; gap: .6rem; max-width: 16rem; margin: 0 .5rem 0 .25rem; padding: 0 .5rem 0 .9rem;
  border-left: 1px solid var(--theme-border-color, #e7e9eb); color: inherit; text-decoration: none;
}
.st-topbar-team:hover { text-decoration: none; }
.st-topbar-team-icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem; font-size: 1.15rem; background: linear-gradient(160deg, #0d4a32, #08301f); color: #3ddc84; }
.st-topbar-team.is-all .st-topbar-team-icon { background: linear-gradient(180deg, #1c3d59, #242b4d); color: #7db4ea; }
.st-topbar-team.is-none .st-topbar-team-icon { background: linear-gradient(160deg, #c2590a, #8a3a00); color: #ffc46b; }
.st-topbar-team-text { display: grid; min-width: 0; line-height: 1.15; }
.st-topbar-team-text strong { overflow: hidden; color: var(--theme-emphasis-color, #212529); font-size: .86rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.st-topbar-team-text small { display: flex; align-items: center; gap: .25rem; overflow: hidden; color: var(--theme-secondary-color, #6c757d); font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; }
.st-topbar-team-text small.is-unset { font-style: italic; }
@media (max-width: 1399.98px) { .st-topbar-team { max-width: 11.5rem; } }

/* Top bar team chip: a gradient block with white text so it stands out (green = your team, blue = all teams for a
   super admin, amber = no team). Light theme: deep gradients on the white bar. Dark theme: a light edge ring on the dark bar. */
.st-topbar-team {
  padding: .35rem .95rem .35rem .4rem; border: 0; color: #fff;
  background: linear-gradient(135deg, #0d4a32 0%, #168257 100%); box-shadow: 0 4px 12px rgba(13, 74, 50, .35);
}
.st-topbar-team.is-all { background: linear-gradient(135deg, #1c3d59 0%, #3a63b8 100%); box-shadow: 0 4px 12px rgba(28, 61, 89, .35); }
.st-topbar-team.is-none { background: linear-gradient(135deg, #8f5200 0%, #b06a00 100%); box-shadow: 0 4px 12px rgba(143, 82, 0, .35); }
.st-topbar-team .st-topbar-team-icon, .st-topbar-team.is-all .st-topbar-team-icon, .st-topbar-team.is-none .st-topbar-team-icon { background: rgba(255, 255, 255, .18); color: #fff; }
.st-topbar-team .st-topbar-team-text strong { color: #fff; }
.st-topbar-team .st-topbar-team-text small { color: rgba(255, 255, 255, .85); }
.st-topbar-team:hover { filter: brightness(1.1); color: #fff; }
[data-bs-theme=dark] .st-topbar-team { background: linear-gradient(135deg, #0f6b47 0%, #1b9768 100%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .22), 0 4px 14px rgba(27, 151, 104, .28); }
[data-bs-theme=dark] .st-topbar-team.is-all { background: linear-gradient(135deg, #27507a 0%, #4a78d0 100%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .22), 0 4px 14px rgba(74, 120, 208, .28); }
[data-bs-theme=dark] .st-topbar-team.is-none { background: linear-gradient(135deg, #c2590a 0%, #c47a0e 100%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .22), 0 4px 14px rgba(196, 122, 14, .28); }
/* chip sizes chosen by SportsApi (api.js fitTopbarTeam) from the room in the top bar */
.st-topbar-team.is-compact { max-width: 10rem; }
.st-topbar-team.is-compact .st-topbar-team-text small { display: none; }
.st-topbar-team.is-icon { padding-right: .4rem; }
.st-topbar-team.is-icon .st-topbar-team-text { display: none; }

/* Top bar team chip, final look: no background at all. The name, the location and the icon are painted with a gradient
   (green to sky blue = your team, blue to violet = all teams, amber to orange = no team), kept light and bright; in dark mode they are lighter still. */
.st-topbar-team { --chip-grad: linear-gradient(90deg, #19b57a, #2cc8c0, #3b8ff6, #8b7cf6, #e86bb0, #19b57a); }
.st-topbar-team.is-all { --chip-grad: linear-gradient(90deg, #3b8ff6, #8b7cf6, #e86bb0, #f5a524, #2cc8c0, #3b8ff6); }
.st-topbar-team.is-none { --chip-grad: linear-gradient(90deg, #f5a524, #f2813a, #e86bb0, #8b7cf6, #f5a524); }
[data-bs-theme=dark] .st-topbar-team { --chip-grad: linear-gradient(90deg, #3ddc84, #5eead4, #7db4ea, #b18ae6, #f59ec9, #3ddc84); }
[data-bs-theme=dark] .st-topbar-team.is-all { --chip-grad: linear-gradient(90deg, #7db4ea, #b18ae6, #f59ec9, #ffd98a, #5eead4, #7db4ea); }
[data-bs-theme=dark] .st-topbar-team.is-none { --chip-grad: linear-gradient(90deg, #ffc46b, #ffe3a8, #f9a8d4, #c4b5fd, #ffc46b); }
.st-topbar-team, .st-topbar-team.is-all, .st-topbar-team.is-none,
[data-bs-theme=dark] .st-topbar-team, [data-bs-theme=dark] .st-topbar-team.is-all, [data-bs-theme=dark] .st-topbar-team.is-none {
  padding: .2rem .5rem .2rem .9rem; background: none; box-shadow: none;
}
.st-topbar-team:hover { filter: none; opacity: .85; }
.st-topbar-team .st-topbar-team-icon, .st-topbar-team.is-all .st-topbar-team-icon, .st-topbar-team.is-none .st-topbar-team-icon,
.st-topbar-team .st-topbar-team-text strong, .st-topbar-team .st-topbar-team-text small {
  background: var(--chip-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.st-topbar-team .st-topbar-team-icon { width: auto; height: auto; font-size: 1.5rem; }
.st-topbar-team .st-topbar-team-text strong { font-weight: 800; }
.st-topbar-team .st-topbar-team-text small { font-weight: 600; }
.st-topbar-team.is-icon { padding-right: .5rem; }


/* ==================================================================
   Teams page redesign (/admin/tenants, below the header): wide cards with a state-coloured edge, the location and time
   zone on each card, a labelled key chip, icon stat boxes, and a panel-style toolbar. Card markup: js/app-api/admin-tenants.js card().
   ================================================================== */
.st-teams-toolbar { padding: .6rem; border: 1px solid var(--theme-border-color, #e9ecef); background: var(--theme-card-bg, #fff); }
.st-teams-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 27rem), 1fr)); gap: 1.25rem; }
.st-teams-card.st-tcard { --tcard-accent: #19b57a; border: 1px solid var(--theme-border-color, #e9ecef); border-left: 5px solid var(--tcard-accent); }
.st-teams-card.st-tcard.is-inactive { --tcard-accent: #e8710a; }
.st-teams-card.st-tcard.is-working { --tcard-accent: #3b8ff6; border-color: var(--theme-border-color, #e9ecef); box-shadow: 0 8px 22px rgba(59, 143, 246, .16); }
.st-teams-card.st-tcard:hover { border-color: var(--theme-border-color, #e9ecef); border-left-color: var(--tcard-accent); box-shadow: 0 12px 28px rgba(0, 0, 0, .1); }
.st-tcard .card-body { gap: 1.1rem; padding: 1.4rem 1.5rem; }
.st-tcard-head { display: flex; align-items: flex-start; gap: 1.1rem; }
.st-tcard-id { flex: 1 1 auto; min-width: 0; }
.st-tcard-id .st-teams-name { margin-bottom: .45rem; font-size: 1.3rem; }
.st-tcard-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.st-tcard-tags .st-sport-badge { margin: 0; }
.st-tcard-place { display: flex; align-items: center; gap: .4rem; margin-top: .6rem; color: var(--theme-emphasis-color, #212529); font-size: .9rem; font-weight: 600; }
.st-tcard-place .ti { color: #3b8ff6; font-size: 1.05rem; }
.st-tcard-place small { padding: .05rem .4rem; background: var(--theme-tertiary-bg, #f1f3f5); color: var(--theme-secondary-color, #6c757d); font-size: .72rem; font-weight: 700; }
.st-tcard-place.is-unset { color: var(--theme-secondary-color, #6c757d); font-style: italic; font-weight: 500; }
.st-tcard-place.is-unset .ti { color: var(--theme-secondary-color, #6c757d); }
.st-teams-crest.is-md { width: 4rem; height: 4.5rem; font-size: 1.35rem; }
.st-teams-logo.is-md { width: 4.5rem; height: 4.5rem; padding: .3rem; }
.st-tcard .st-teams-key { padding: .6rem .9rem; border-style: solid; }
.st-tcard-keylabel { color: var(--theme-secondary-color, #6c757d); font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.st-tcard .st-teams-key code { font-size: .95rem; font-weight: 700; }
.st-tcard .st-teams-stats { gap: .65rem; }
.st-tcard .st-teams-stats > div { padding: .75rem .9rem; border-radius: 0; border-top: 3px solid color-mix(in srgb, var(--tcard-accent) 70%, transparent); }
.st-tcard .st-teams-stats dt .ti { margin-right: .3rem; color: var(--tcard-accent); font-size: .95rem; vertical-align: -1px; }
.st-tcard .st-teams-stats dd { font-size: 1.4rem; }
.st-tcard .st-teams-stats dd small { margin-top: .1rem; font-size: .72rem; }
.st-tcard .st-teams-foot { flex-wrap: wrap; padding-top: 1rem; }
.st-tcard-last { display: inline-flex; align-items: center; gap: .4rem; color: var(--theme-secondary-color, #6c757d); font-size: .82rem; }
.st-tcard-actions { display: inline-flex; flex-wrap: wrap; gap: .5rem; margin-left: auto; }
.st-teams-card.is-skeleton { min-height: 17rem; }
@media (max-width: 575.98px) { .st-tcard .card-body { padding: 1.1rem 1.1rem; } .st-tcard-actions { width: 100%; margin-left: 0; } .st-tcard-actions .btn { flex: 1 1 auto; } }

/* The chip's gradient flows slowly across the name, location and icon. Each gradient ends on its first color, so the
   loop has no seam; the background is two boxes wide and slides one full tile. Still (no motion) when reduced motion is on. */
.st-topbar-team .st-topbar-team-icon, .st-topbar-team.is-all .st-topbar-team-icon, .st-topbar-team.is-none .st-topbar-team-icon,
.st-topbar-team .st-topbar-team-text strong, .st-topbar-team .st-topbar-team-text small {
  background-size: 200% 100%; background-repeat: repeat-x; animation: st-chip-flow 9s linear infinite;
}
.st-topbar-team .st-topbar-team-text small { animation-delay: -1.2s; }
.st-topbar-team .st-topbar-team-icon { animation-delay: -2.4s; }
@keyframes st-chip-flow { from { background-position: 0% 0; } to { background-position: 200% 0; } }
@media (prefers-reduced-motion: reduce) {
  .st-topbar-team .st-topbar-team-icon, .st-topbar-team .st-topbar-team-text strong, .st-topbar-team .st-topbar-team-text small { animation: none; }
}


/* ---- Teams: status badge (dark green when active, dark warning orange when inactive; also used in the drawer) and the card menu ---- */
.st-teams-card .st-team-state, .st-teams-table-card .st-team-state, .st-tmenu .st-team-state { padding: .22rem .7rem; font-size: .74rem; }
.st-teams-card .st-team-state { box-shadow: none; }

/* the dropdown on a team card / table row */
.st-tmenu { min-width: 20rem; padding: .45rem; border: 1px solid var(--theme-border-color, #e5e8eb); box-shadow: 0 16px 40px rgba(0, 0, 0, .16); }
.st-tmenu-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: -.45rem -.45rem .35rem; padding: .7rem .85rem; background: linear-gradient(180deg, #1c3d59, #242b4d); color: #fff; }
.st-tmenu-head strong { overflow: hidden; font-size: .95rem; text-overflow: ellipsis; white-space: nowrap; }
.st-tmenu-label { margin: .45rem .5rem .15rem; color: var(--theme-secondary-color, #6c757d); font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.st-tmenu-item { display: flex; align-items: center; gap: .75rem; width: 100%; padding: .5rem .55rem; white-space: normal; }
.st-tmenu-item:hover, .st-tmenu-item:focus-visible { background: var(--theme-tertiary-bg, #f1f3f5); }
.st-tmenu-ico { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem; background: color-mix(in srgb, var(--ico, #3b8ff6) 14%, transparent); color: var(--ico, #3b8ff6); font-size: 1.1rem; }
.st-tmenu-text { display: grid; min-width: 0; line-height: 1.2; }
.st-tmenu-text strong { color: var(--theme-emphasis-color, #212529); font-size: .86rem; font-weight: 700; }
.st-tmenu-text small { overflow: hidden; color: var(--theme-secondary-color, #6c757d); font-size: .73rem; text-overflow: ellipsis; white-space: nowrap; }
.st-tmenu-item.is-blue { --ico: #3b8ff6; }
.st-tmenu-item.is-green { --ico: #14925f; }
.st-tmenu-item.is-teal { --ico: #0f9fa3; }
.st-tmenu-item.is-violet { --ico: #7c5ce0; }
.st-tmenu-item.is-warn { --ico: #c2590a; }
.st-tmenu-item.is-danger { --ico: #d9342b; }
.st-tmenu-item.is-warn .st-tmenu-text strong { color: #a84a00; }
.st-tmenu-item.is-danger .st-tmenu-text strong { color: #c0392b; }
[data-bs-theme=dark] .st-tmenu-item.is-green { --ico: #3ddc84; }
[data-bs-theme=dark] .st-tmenu-item.is-teal { --ico: #5eead4; }
[data-bs-theme=dark] .st-tmenu-item.is-violet { --ico: #b18ae6; }
[data-bs-theme=dark] .st-tmenu-item.is-warn { --ico: #ffa45c; }
[data-bs-theme=dark] .st-tmenu-item.is-warn .st-tmenu-text strong { color: #ffa45c; }
[data-bs-theme=dark] .st-tmenu-item.is-danger { --ico: #ff8a80; }
[data-bs-theme=dark] .st-tmenu-item.is-danger .st-tmenu-text strong { color: #ff8a80; }
.st-tmenu-note { display: flex; align-items: flex-start; gap: .5rem; margin: .35rem .5rem .1rem; padding: .5rem .6rem; background: var(--theme-tertiary-bg, #f1f3f5); color: var(--theme-secondary-color, #6c757d); font-size: .74rem; }


/* ==================================================================
   Schedule page redesign (/schedule, below the header): a side column (Next up, This week, kinds), richer rows, and the
   soft success green buttons. Markup: Views/Schedule/Index.cshtml, js/app-api/schedule.js.
   ================================================================== */
/* soft success green: a tinted green with green text (on the blue header, and on light surfaces) */
.st-vhead-add.st-soft-success { border: 1px solid rgba(61, 220, 132, .55); background: rgba(61, 220, 132, .2); color: #8df0b8; box-shadow: none; }
.st-vhead-add.st-soft-success:hover, .st-vhead-add.st-soft-success:focus-visible { background: rgba(61, 220, 132, .34); border-color: rgba(61, 220, 132, .8); color: #fff; }
[data-bs-theme=dark] .st-vhead-add.st-soft-success { color: #8df0b8; }
.st-btn-soft-success { border: 1px solid rgba(25, 181, 122, .45); background: rgba(25, 181, 122, .14); color: #0d7a52; font-weight: 700; }
.st-btn-soft-success:hover, .st-btn-soft-success:focus-visible { border-color: rgba(25, 181, 122, .7); background: rgba(25, 181, 122, .26); color: #0a5f3f; }
.st-btn-soft-success:disabled { opacity: .6; }
[data-bs-theme=dark] .st-btn-soft-success { color: #5ee6a6; background: rgba(61, 220, 132, .14); border-color: rgba(61, 220, 132, .45); }
[data-bs-theme=dark] .st-btn-soft-success:hover { color: #9af2c6; background: rgba(61, 220, 132, .24); }

.st-sched-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.st-sched-main-col { min-width: 0; }
.st-sched-side { display: grid; gap: 1rem; }
@media (min-width: 1200px) {
  .st-sched-layout { grid-template-columns: minmax(0, 1fr) 21.5rem; }
  .st-sched-side { position: sticky; top: calc(var(--theme-topbar-height, 65px) + .5rem); }
}
.st-sched-side-card { padding: 1rem 1.1rem 1.1rem; border: 1px solid var(--theme-border-color, #e9ecef); background: var(--theme-card-bg, #fff); }
.st-sched-side-title { display: flex; align-items: center; gap: .5rem; margin: 0 0 .8rem; color: var(--theme-secondary-color, #6c757d); font-size: .74rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.st-sched-side-title .ti { color: var(--st-green-1); font-size: 1.05rem; }
.st-sched-side-title span { margin-left: auto; padding: 0 .45rem; background: var(--theme-tertiary-bg, #f1f3f5); font-size: .72rem; }
.st-sched-side-empty { margin: 0; color: var(--theme-secondary-color, #6c757d); font-size: .88rem; }
.st-sched-side-more { margin: .4rem 0 0; color: var(--theme-secondary-color, #6c757d); font-size: .78rem; text-align: center; }
.st-sched-spot.is-game, .st-sched-mini.is-game, .st-sched-legend-item.is-game { --kind: var(--st-sched-game); }
.st-sched-spot.is-practice, .st-sched-mini.is-practice, .st-sched-legend-item.is-practice { --kind: var(--st-sched-practice); }
.st-sched-spot.is-meeting, .st-sched-mini.is-meeting, .st-sched-legend-item.is-meeting { --kind: var(--st-sched-meeting); }
.st-sched-spot.is-other, .st-sched-mini.is-other, .st-sched-legend-item.is-other { --kind: var(--st-sched-other); }
.st-sched-spot { display: flex; align-items: stretch; gap: .9rem; width: 100%; padding: .9rem; border: 0; color: #fff; text-align: left; background: linear-gradient(135deg, var(--kind), color-mix(in srgb, var(--kind) 50%, #000)); transition: filter .15s ease; }
.st-sched-spot:hover, .st-sched-spot:focus-visible { filter: brightness(1.1); outline: none; }
.st-sched-spot-date { display: flex; flex: 0 0 3.7rem; flex-direction: column; align-items: center; justify-content: center; background: rgba(255, 255, 255, .18); line-height: 1.1; }
.st-sched-spot-date strong { font-size: 1.8rem; font-weight: 800; }
.st-sched-spot-date small { font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; opacity: .85; }
.st-sched-spot-main { display: grid; gap: .25rem; min-width: 0; }
.st-sched-spot-kind { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; opacity: .9; }
.st-sched-spot-main > strong { overflow: hidden; font-size: 1.05rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.st-sched-spot-meta { display: inline-flex; align-items: center; gap: .35rem; overflow: hidden; font-size: .82rem; opacity: .92; text-overflow: ellipsis; white-space: nowrap; }
.st-sched-mini-list { display: grid; gap: .1rem; }
.st-sched-mini { display: flex; align-items: center; gap: .75rem; width: 100%; padding: .45rem .4rem; border: 0; border-left: 3px solid var(--kind); background: transparent; text-align: left; }
.st-sched-mini:hover, .st-sched-mini:focus-visible { background: var(--theme-tertiary-bg, #f1f3f5); outline: none; }
.st-sched-mini-day { display: flex; flex: 0 0 2.6rem; flex-direction: column; align-items: center; line-height: 1.1; font-size: 1.05rem; font-weight: 800; }
.st-sched-mini-day b { color: var(--theme-secondary-color, #6c757d); font-size: .66rem; font-weight: 700; text-transform: uppercase; }
.st-sched-mini-text { display: grid; min-width: 0; line-height: 1.2; }
.st-sched-mini-text strong { overflow: hidden; font-size: .85rem; text-overflow: ellipsis; white-space: nowrap; }
.st-sched-mini-text small { overflow: hidden; color: var(--theme-secondary-color, #6c757d); font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; }
.st-sched-mini.is-cancelled strong { text-decoration: line-through; }
.st-sched-mini.is-inactive { opacity: .55; }
.st-sched-legend { display: grid; gap: .15rem; }
.st-sched-legend-item { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .5rem .55rem; border: 0; background: transparent; font-size: .86rem; font-weight: 600; text-align: left; }
.st-sched-legend-item:hover { background: var(--theme-tertiary-bg, #f1f3f5); }
.st-sched-legend-item.is-on { background: color-mix(in srgb, var(--kind) 14%, transparent); box-shadow: inset 3px 0 0 var(--kind); }
.st-sched-dot { width: .7rem; height: .7rem; background: var(--kind); }
.st-sched-legend-item b { margin-left: auto; color: var(--theme-secondary-color, #6c757d); font-weight: 800; }
.st-sched-legend-hint { margin: .5rem 0 0; color: var(--theme-secondary-color, #6c757d); font-size: .76rem; }

/* list rows: a tinted date block, a "today / in 3 days" chip, a softer card */
.st-sched-row { gap: 1.1rem; padding: .95rem 1.1rem; box-shadow: 0 1px 3px rgba(0, 0, 0, .04); }
.st-sched-date { flex: 0 0 3.9rem; padding: .45rem 0; background: color-mix(in srgb, var(--kind) 11%, transparent); }
.st-sched-date strong { font-size: 1.7rem; }
.st-sched-rel { flex: 0 0 auto; padding: .15rem .6rem; background: var(--theme-tertiary-bg, #f1f3f5); color: var(--theme-secondary-color, #6c757d); font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.st-sched-rel.is-today { background: rgba(25, 181, 122, .16); color: #0d7a52; }
[data-bs-theme=dark] .st-sched-rel.is-today { color: #5ee6a6; }
.st-sched-month-title { display: flex; align-items: center; gap: .75rem; }
.st-sched-month-title::after { content: ''; flex: 1 1 auto; height: 1px; background: var(--theme-border-color, #e9ecef); }
@media (max-width: 575.98px) { .st-sched-rel { display: none; } }


/* ---- Schedule form: location name + address with suggestions (js/app-api/schedule.js "places") ---- */
.st-place-box { padding: .85rem .95rem; border: 1px solid var(--theme-border-color, #e9ecef); background: var(--theme-tertiary-bg, #f8f9fa); }
.st-place-box .form-text { margin-top: .6rem; }
.st-place-field { position: relative; min-width: 0; }
.st-place-locate { flex: none; width: 2.6rem; color: #0d7a52; }
.st-place-locate:hover { background: rgba(25, 181, 122, .16); }
.st-place-list { position: absolute; top: calc(100% + 2px); left: 0; right: 0; z-index: 1065; max-height: 17rem; overflow-y: auto; padding: .3rem; border: 1px solid var(--theme-border-color, #dee2e6); background: var(--theme-card-bg, #fff); box-shadow: 0 14px 34px rgba(0, 0, 0, .18); }
.st-place-head { margin: .3rem .4rem .15rem; color: var(--theme-secondary-color, #6c757d); font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.st-place-item { display: flex; align-items: flex-start; gap: .6rem; width: 100%; padding: .45rem .5rem; border: 0; background: transparent; color: inherit; text-align: left; }
.st-place-item:hover, .st-place-item.is-active { background: rgba(25, 181, 122, .13); }
.st-place-item > .ti { margin-top: .12rem; color: #14925f; font-size: 1rem; }
.st-place-item span { display: grid; min-width: 0; line-height: 1.2; }
.st-place-item strong { overflow: hidden; font-size: .86rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.st-place-item small { overflow: hidden; color: var(--theme-secondary-color, #6c757d); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.st-place-credit { margin: .3rem .4rem .1rem; color: var(--theme-secondary-color, #6c757d); font-size: .66rem; text-align: right; }
[data-bs-theme=dark] .st-place-locate { color: #5ee6a6; }
[data-bs-theme=dark] .st-place-item > .ti { color: #3ddc84; }
/* the place on a list row: name, a muted address and a map link */
.st-sched-place { display: inline-flex; align-items: center; gap: .3rem; max-width: 100%; min-width: 0; }
.st-sched-place small { overflow: hidden; color: var(--theme-secondary-color, #6c757d); font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.st-sched-place small::before { content: '\00b7'; margin-right: .3rem; }
.st-sched-map { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; margin-left: .15rem; color: #14925f; background: rgba(25, 181, 122, .12); }
.st-sched-map:hover { background: rgba(25, 181, 122, .26); color: #0a5f3f; }
.st-sched-map .ti { margin: 0; font-size: .95rem; }
.st-sched-dir { margin-left: .35rem; font-weight: 600; }

/* ==================================================================
   Upload Video (/videos/upload): the green on this page becomes the page-header blue (#1c3d59 to #242b4d). Everything on
   .st-addv reads the --st-green-* variables, so redefining them here recolors the tiles, step numbers, tabs, buttons, progress
   bar and side card at once. (The variable names stay "green" because other video pages still use them.)
   ================================================================== */
.st-addv {
  --st-green-1: #1c3d59;
  --st-green-2: #242b4d;
  --st-green-3: #151b3a;
  --st-green-accent: #7db4ea;
  --st-green-gradient: linear-gradient(180deg, #1c3d59 0%, #242b4d 100%);
}
[data-bs-theme=dark] .st-addv { --st-green-1: #4a78d0; --st-green-2: #2d4f9a; --st-green-3: #0f1630; --st-green-accent: #8fbdf0; }
/* tinted bits that were hard-coded green */
.st-addv .st-dropzone-note, .st-addv .st-upload-converting { background: rgba(125, 180, 234, .16); }
.st-addv .st-upload-converting { color: var(--theme-emphasis-color, #212529); }
.st-addv .st-dropzone-icon, .st-addv .st-upload-team { box-shadow: 0 8px 20px rgba(28, 61, 89, .25); }
.st-addv #upload-button { box-shadow: 0 6px 16px rgba(28, 61, 89, .28); }
.st-addv .btn-check:checked + .st-aud-mode { background: color-mix(in srgb, var(--st-green-1) 9%, transparent); }
.st-addv .st-aud-role input:checked + span, .st-addv .st-aud-member .form-check-input:checked { background-color: #1c3d59; border-color: #1c3d59; }
[data-bs-theme=dark] .st-addv .st-aud-role input:checked + span, [data-bs-theme=dark] .st-addv .st-aud-member .form-check-input:checked { background-color: #4a78d0; border-color: #4a78d0; }
.st-addv .st-aud-member:has(input:checked) { background: color-mix(in srgb, var(--st-green-1) 8%, transparent); }
.st-addv .st-aud-member .form-check-input:focus { box-shadow: 0 0 0 3px rgba(125, 180, 234, .3); }
.st-addv .btn-link, .st-addv .btn-link:hover { color: var(--st-green-1); }
[data-bs-theme=dark] .st-addv .btn-link, [data-bs-theme=dark] .st-addv .btn-link:hover { color: var(--st-green-accent); }


/* BRAND-COLORS-BEGIN
   The site's brand colour. Rules above use these variables instead of fixed greens, so the app pages are blue (the
   page-header blue, #1c3d59 to #242b4d). The landing page sets body.st-landing, which puts the original greens back:
   delete the body.st-landing block below to recolor the landing page too. The logo, the "Active" status badges, the
   success alerts and the soft green buttons keep their own greens on purpose. */
:root {
  --brand-1: #1c3d59; --brand-2: #242b4d; --brand-3: #151b3a; --brand-accent: #7db4ea;
  --brand-1-rgb: 28, 61, 89; --brand-3-rgb: 21, 27, 58; --brand-accent-rgb: 125, 180, 234;
  --brand-dark-1: #1f2a42; --brand-dark-2: #19223a; --brand-dark-3: #121a2e;
}
body.st-landing {
  --brand-1: #0d4a32; --brand-2: #08301f; --brand-3: #041a11; --brand-accent: #3ddc84;
  --brand-1-rgb: 13, 74, 50; --brand-3-rgb: 4, 26, 17; --brand-accent-rgb: 61, 220, 132;
  --brand-dark-1: #26302b; --brand-dark-2: #1c2420; --brand-dark-3: #131916;
}
/* BRAND-COLORS-END */

/* ==================================================================
   /admin/members redesign (page header untouched): filter rail as a stack of titled panels, rows with an accent bar when
   selected, and bold count badges (solid brand-blue chips, bigger numerals) that invert when the row is selected.
   ================================================================== */
.st-mem-rail { gap: 0; padding: 0; overflow: hidden; border-radius: 0; box-shadow: 0 6px 22px rgba(28, 61, 89, .08); }
.st-mem-rail > * { padding: 1rem 1.05rem; }
.st-mem-rail > * + * { border-top: 1px solid var(--theme-border-color, #eef0f3); }
.st-mem-search { background: var(--theme-tertiary-bg, #f4f6f9); }
.st-mem-group { gap: .3rem; }
.st-mem-group legend, .st-mem-legend {
  display: flex; align-items: center; gap: .5rem; width: 100%; margin: 0 0 .5rem; padding: 0; color: var(--brand-1);
  font-size: .72rem; font-weight: 800; letter-spacing: .09em;
}
.st-mem-group legend::after, .st-mem-legend::after { content: ""; flex: 1; height: 1px; background: var(--theme-border-color, #e3e7ec); }
.st-mem-opt { padding: .42rem .55rem .42rem .6rem; border-radius: 0; border-left: 3px solid transparent; }
.st-mem-opt:hover { background: rgba(var(--brand-accent-rgb), .14); }
.st-mem-opt:has(input:checked), .st-mem-opt.active {
  background: linear-gradient(180deg, var(--brand-1), var(--brand-2)); border-left-color: var(--brand-accent); box-shadow: 0 4px 12px rgba(var(--brand-1-rgb), .28);
}
.st-mem-opt b {
  min-width: 2.1rem; padding: .14rem .55rem; border-radius: 0; background: var(--brand-1); color: #fff; font-size: .82rem; font-weight: 800;
  font-variant-numeric: tabular-nums; letter-spacing: .01em; box-shadow: 0 2px 6px rgba(var(--brand-1-rgb), .3);
}
.st-mem-opt:has(input:checked) b, .st-mem-opt.active b { background: #fff; color: var(--brand-1); box-shadow: none; }
.st-mem-opt-icon { border-radius: 0; background: rgba(var(--brand-accent-rgb), .18); color: var(--brand-1); }
.st-mem-opt-icon.is-success { color: #168257; background: rgba(26, 179, 148, .16); }
[data-bs-theme=dark] .st-mem-search { background: rgba(255, 255, 255, .04); }
[data-bs-theme=dark] .st-mem-group legend, [data-bs-theme=dark] .st-mem-legend { color: var(--brand-accent); }
[data-bs-theme=dark] .st-mem-opt b { background: #4a78d0; box-shadow: none; }
[data-bs-theme=dark] .st-mem-opt:has(input:checked), [data-bs-theme=dark] .st-mem-opt.active { background: linear-gradient(180deg, #2d4f9a, #1f2a42); color: #fff; }
[data-bs-theme=dark] .st-mem-opt:has(input:checked) b, [data-bs-theme=dark] .st-mem-opt.active b { background: #fff; color: #1c3d59; }
[data-bs-theme=dark] .st-mem-opt-icon { color: var(--brand-accent); background: rgba(var(--brand-accent-rgb), .14); }
[data-bs-theme=dark] .st-mem-opt:has(input:checked) .st-mem-opt-icon, [data-bs-theme=dark] .st-mem-opt.active .st-mem-opt-icon { color: #fff; background: rgba(255, 255, 255, .16); }
.st-mem-rail > * + * { border-top: 0; }
.st-mem-rail > .st-mem-search { border-bottom: 1px solid var(--theme-border-color, #eef0f3); }
.st-mem-rail > .st-mem-group + .st-mem-group, .st-mem-rail > fieldset + div, .st-mem-rail > div + fieldset { margin-top: 0; }
.st-mem-group { padding-top: 0; }
.st-mem-group legend { padding-top: 1rem; margin-bottom: .45rem; }
.st-mem-legend { padding-top: 1rem; margin: 0; border-top: 1px solid var(--theme-border-color, #eef0f3); }
.st-mem-group[role=group] { padding-top: 0; }
.st-mem-rail > fieldset.st-mem-group { padding-top: .2rem; }
.st-mem-rail > fieldset + fieldset, .st-mem-rail > div.st-mem-group + fieldset { border-top: 1px solid var(--theme-border-color, #eef0f3); }
.st-mem-search .form-control { padding-right: 2.4rem; }
/* count badges: a notch smaller */
.st-mem-opt b { min-width: 1.6rem; padding: .08rem .4rem; font-size: .72rem; }
.st-mem-opt b { min-width: 1.3rem; padding: .02rem .32rem; font-size: .66rem; line-height: 1.35; box-shadow: none; }
.st-mem-opt b { font-size: .6rem; min-width: 1.2rem; padding: .02rem .28rem; }

/* ==================================================================
   Member cards: context menu (reuses the .st-tmenu look from the Teams cards) and role / position badges under the email.
   ================================================================== */
.st-memmenu { min-width: 19rem; }
.st-memmenu-head small { overflow: hidden; color: rgba(255, 255, 255, .72); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.st-memmenu-state { flex: none; padding: .15rem .55rem; font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.st-memmenu-state.is-on { background: linear-gradient(160deg, #0d4a32, #08301f); box-shadow: inset 0 0 0 1px rgba(61, 220, 132, .5); }
.st-memmenu-state.is-off { background: linear-gradient(160deg, #c2590a, #8a3a00); }
.st-mem-card-menu .dropdown-menu { overflow: hidden; }

.st-mem-card-tags { gap: .35rem; margin: .8rem 0 1rem; }
.st-mem-card-tags .st-users-role {
  --rc: #3b8ff6; gap: .35rem; padding: .22rem .6rem .22rem .45rem; border: 1px solid color-mix(in srgb, var(--rc) 35%, transparent);
  background: color-mix(in srgb, var(--rc) 12%, var(--theme-secondary-bg, #fff)); color: color-mix(in srgb, var(--rc) 78%, #000);
  font-size: .72rem; font-weight: 700; letter-spacing: .01em; border-radius: 0;
}
.st-mem-card-tags .st-users-role .ti { font-size: .9rem; color: var(--rc); }
.st-mem-card-tags .is-role-admin, .st-mem-card-tags .is-role-superadmin { --rc: #7c5ce0; }
.st-mem-card-tags .is-role-manager { --rc: #0f9fa3; }
.st-mem-card-tags .is-role-staff { --rc: #3b8ff6; }
.st-mem-card-tags .is-role-content-manager, .st-mem-card-tags .is-role-contentmanager { --rc: #c2590a; }
.st-mem-card-tags .is-role-member { --rc: #14925f; }
.st-mem-card-tags .is-role-watch-only, .st-mem-card-tags .is-role-viewer { --rc: #6c757d; }
[data-bs-theme=dark] .st-mem-card-tags .st-users-role { color: color-mix(in srgb, var(--rc) 55%, #fff); background: color-mix(in srgb, var(--rc) 20%, transparent); }
.st-mem-card-tags .st-pos-badge {
  padding: .22rem .5rem; border-radius: 0; background: linear-gradient(180deg, var(--brand-1), var(--brand-2)); color: #fff;
  font-size: .72rem; letter-spacing: .06em; box-shadow: 0 2px 6px rgba(var(--brand-1-rgb), .3);
}
.st-mem-card:has(.dropdown-menu.show) { overflow: visible; z-index: 20; }
.st-mem-card-menu .dropdown-menu.st-memmenu { width: 19rem; max-width: 80vw; }
/* member cards: the tinted header band is invisible (it keeps its height so the avatar and text don't move) */
.st-mem-card-band, .st-mem-card-band[class*="bg-"] { background: transparent !important; }
/* member cards: no header band; the avatar floats over the card's top border, the body keeps its full border */
.st-mem-grid { gap: 3.2rem 1rem; padding-top: 3.2rem; }
.st-mem-card { overflow: visible; border-color: var(--theme-border-color, #dfe3e8); }
.st-mem-card-band { display: none; }
.st-mem-card-avatar-wrap { margin: -2.05rem 0 .6rem; z-index: 1; }
.st-mem-card.is-skeleton .st-mem-card-avatar { margin-top: -2.05rem; }
.st-mem-card-menu > .btn { background: var(--theme-tertiary-bg, #f1f3f5); }
.st-mem-card:hover { transform: none; }
/* member photos: a light, bold ring (inner light blue, outer card colour so it separates from the card border) */
.st-users-avatar.st-mem-card-avatar { box-shadow: 0 0 0 3px #cfe0f3, 0 0 0 6px var(--theme-secondary-bg, #fff); }
[data-bs-theme=dark] .st-users-avatar.st-mem-card-avatar { box-shadow: 0 0 0 3px rgba(var(--brand-accent-rgb), .45), 0 0 0 6px var(--theme-secondary-bg, #1c2230); }

/* ==================================================================
   Theme settings offcanvas (Views/Shared/Partials/_Customizer.cshtml): blue header, sections in a most-used-first order with
   an icon tile each, option tiles with a blue selected ring + check, sticky footer. Option inputs and ids are unchanged.
   ================================================================== */
.st-theme-panel { width: 25rem; max-width: 100vw; }
.st-theme-head { display: flex; flex: 0 0 var(--theme-topbar-height, 65px); height: var(--theme-topbar-height, 65px); align-items: center; gap: .75rem; padding: 0 1rem; color: #fff; background: linear-gradient(180deg, #1c3d59 0%, #242b4d 100%); }
.st-theme-head-ico { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; background: rgba(255, 255, 255, .12); color: #7db4ea; font-size: 1.3rem; }
.st-theme-head-text { flex: 1; min-width: 0; }
.st-theme-head h5 { margin: 0; color: #fff; font-size: .98rem; font-weight: 800; line-height: 1.25; }
.st-theme-head p { margin: 0; color: rgba(255, 255, 255, .75); font-size: .72rem; line-height: 1.2; }
.st-theme-close { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.15rem; }
.st-theme-close:hover { background: rgba(255, 255, 255, .26); }

.st-theme-panel .theme-customizer-bar .simplebar-content { display: flex; flex-direction: column; background: var(--theme-tertiary-bg, #f4f6f9); }
.st-theme-panel .theme-customizer-bar .simplebar-content > div { margin: .75rem .85rem 0; padding: 1rem !important; border: 1px solid var(--theme-border-color, #e3e7ec) !important; background: var(--theme-secondary-bg, #fff); }
.st-theme-panel .theme-customizer-bar .simplebar-content > div:last-child { margin-bottom: 1rem; }
.st-theme-panel #theme { order: 1; } .st-theme-panel #topbar-color { order: 2; } .st-theme-panel #sidenav-color { order: 3; }
.st-theme-panel #sidenav-size { order: 4; } .st-theme-panel #width { order: 5; } .st-theme-panel #dir { order: 6; }
.st-theme-panel #position { order: 7; } .st-theme-panel #sidenav-user { order: 8; } .st-theme-panel #skin { order: 9; }
.st-theme-panel .theme-customizer-bar h5.fw-bold, .st-theme-panel #sidenav-user label {
  display: flex; align-items: center; gap: .6rem; margin: 0 0 .8rem; color: var(--theme-emphasis-color, #212529); font-size: .86rem; font-weight: 800; letter-spacing: .02em;
}
.st-theme-panel #position h5, .st-theme-panel #sidenav-user h5 { margin: 0 !important; }
.st-theme-panel #sidenav-user label, .st-theme-panel #position h5 { margin: 0; }
.st-theme-ico { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 1.9rem; height: 1.9rem; background: rgba(125, 180, 234, .2); color: #1c3d59; font-size: 1.05rem; font-weight: 400; }
[data-bs-theme=dark] .st-theme-ico { color: #8fbdf0; background: rgba(143, 189, 240, .16); }

/* option tiles */
.st-theme-panel .card-radio .form-check-label { border: 2px solid var(--theme-border-color, #dde2e8); border-radius: 0; overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; }
.st-theme-panel .card-radio .form-check-label:hover { border-color: #7db4ea; }
.st-theme-panel .card-radio .form-check-input:checked + .form-check-label { border-color: #1c3d59; box-shadow: 0 0 0 3px rgba(125, 180, 234, .45); }
[data-bs-theme=dark] .st-theme-panel .card-radio .form-check-input:checked + .form-check-label { border-color: #8fbdf0; }
.st-theme-panel .card-radio .form-check-input:checked + .form-check-label::before { color: #1c3d59; }
.st-theme-panel .card-radio + h5 { margin-top: .4rem !important; font-size: .74rem; font-weight: 700; color: var(--theme-secondary-color, #6c757d) !important; }
.st-theme-panel .card-radio:has(input:checked) + h5 { color: #1c3d59 !important; }
[data-bs-theme=dark] .st-theme-panel .card-radio:has(input:checked) + h5 { color: #8fbdf0 !important; }
.st-theme-panel #skin .col-6 { width: 33.333%; }
.st-theme-panel .btn-soft-warning { border-radius: 0; }
.st-theme-panel .btn-check:checked + .btn-soft-warning { background: #1c3d59; border-color: #1c3d59; color: #fff; }

.st-theme-foot { padding: .85rem 1rem; border-top: 1px solid var(--theme-border-color, #e3e7ec); background: var(--theme-secondary-bg, #fff); }
.st-theme-reset { display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; padding: .6rem 1rem; border: 1px solid #c2590a; background: rgba(194, 89, 10, .08); color: #a84a00; font-weight: 700; }
.st-theme-reset:hover { background: #c2590a; color: #fff; }
[data-bs-theme=dark] .st-theme-reset { color: #ffa45c; border-color: #ffa45c; background: rgba(255, 164, 92, .1); }
[data-bs-theme=dark] .st-theme-reset:hover { background: #c2590a; color: #fff; }

/* ==================================================================
   Reports (/reports, Views/Reports/Index.cshtml, js/app-api/reports.js): a report list on the left, the report as a
   printable document on the right. Print shows only the document.
   ================================================================== */
.st-rep-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; align-items: start; }
@media (min-width: 992px) { .st-rep-layout { grid-template-columns: 20rem minmax(0, 1fr); } .st-rep-list { position: sticky; top: calc(var(--theme-topbar-height, 70px) + 1rem); } }
.st-rep-list { border: 1px solid var(--theme-border-color, #e3e7ec); background: var(--theme-secondary-bg, #fff); box-shadow: 0 6px 22px rgba(var(--brand-1-rgb), .08); }
.st-rep-group { padding: .9rem .9rem .4rem; }
.st-rep-group + .st-rep-group { border-top: 1px solid var(--theme-border-color, #e3e7ec); }
.st-rep-group-title { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; color: var(--brand-1); font-size: .7rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.st-rep-group-title::after { content: ""; flex: 1; height: 1px; background: var(--theme-border-color, #e3e7ec); }
.st-rep-item { --tone: #3b8ff6; display: flex; align-items: flex-start; gap: .75rem; width: 100%; margin: 0 0 .5rem; padding: .6rem .65rem; border: 1px solid transparent; border-left: 3px solid transparent; background: transparent; text-align: left; transition: background-color .15s ease, border-color .15s ease; }
.st-rep-item:hover { background: rgba(var(--brand-accent-rgb), .12); }
.st-rep-item.is-active { background: rgba(var(--brand-accent-rgb), .18); border-color: rgba(var(--brand-accent-rgb), .45); border-left-color: var(--tone); }
.st-rep-item.is-blue { --tone: #3b8ff6; } .st-rep-item.is-green { --tone: #14925f; } .st-rep-item.is-violet { --tone: #7c5ce0; } .st-rep-item.is-teal { --tone: #0f9fa3; }
.st-rep-item.is-red { --tone: #d9342b; } .st-rep-item.is-orange { --tone: #c2590a; } .st-rep-item.is-indigo { --tone: #5b5fdd; }
.st-rep-item-ico { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; background: color-mix(in srgb, var(--tone) 15%, transparent); color: var(--tone); font-size: 1.25rem; }
.st-rep-item-text { display: grid; min-width: 0; gap: .15rem; line-height: 1.25; }
.st-rep-item-text strong { color: var(--theme-emphasis-color, #212529); font-size: .9rem; font-weight: 700; }
.st-rep-item-text small { color: var(--theme-secondary-color, #6c757d); font-size: .76rem; }

.st-rep-bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem 1rem; margin-bottom: 1rem; padding: .85rem 1rem; border: 1px solid var(--theme-border-color, #e3e7ec); background: var(--theme-secondary-bg, #fff); }
.st-rep-filters, .st-rep-dates { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; }
.st-rep-field { display: grid; gap: .2rem; margin: 0; }
.st-rep-field > span { color: var(--theme-secondary-color, #6c757d); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.st-rep-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.st-rep-btn { border: 1px solid var(--theme-border-color, #d5dae0); background: var(--theme-secondary-bg, #fff); color: var(--theme-emphasis-color, #212529); font-weight: 600; }
.st-rep-btn:hover { background: rgba(var(--brand-accent-rgb), .14); color: var(--brand-1); }
.st-rep-btn.is-primary { border-color: transparent; background: linear-gradient(180deg, #1c3d59, #242b4d); color: #fff; }
.st-rep-btn.is-primary:hover { filter: brightness(1.15); color: #fff; }

.st-rep-empty { padding: 4rem 1.5rem; border: 1px dashed var(--theme-border-color, #cfd5dc); background: var(--theme-secondary-bg, #fff); text-align: center; color: var(--theme-secondary-color, #6c757d); }
.st-rep-empty h4 { margin: .75rem 0 .25rem; color: var(--theme-emphasis-color, #212529); }
.st-rep-empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 4rem; height: 4rem; background: rgba(var(--brand-accent-rgb), .2); color: var(--brand-1); font-size: 2rem; }

.st-rep-doc { border: 1px solid var(--theme-border-color, #e3e7ec); background: var(--theme-secondary-bg, #fff); box-shadow: 0 6px 22px rgba(var(--brand-1-rgb), .08); transition: opacity .15s ease; }
.st-rep-doc.is-loading { opacity: .5; }
.st-rep-doc-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.4rem 1.6rem; color: #fff; background: linear-gradient(180deg, #1c3d59 0%, #242b4d 100%); }
.st-rep-doc-team { color: #7db4ea; font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.st-rep-doc-head h3 { margin: .2rem 0 .15rem; color: #fff; font-size: 1.5rem; font-weight: 800; }
.st-rep-doc-head p { margin: 0; color: rgba(255, 255, 255, .78); font-size: .88rem; }
.st-rep-doc-meta { display: grid; align-content: start; gap: .25rem; color: rgba(255, 255, 255, .8); font-size: .78rem; text-align: right; }
.st-rep-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); border-bottom: 1px solid var(--theme-border-color, #e3e7ec); }
.st-rep-stat { display: grid; gap: .05rem; padding: .9rem 1.2rem; border-right: 1px solid var(--theme-border-color, #e3e7ec); }
.st-rep-stat:last-child { border-right: 0; }
.st-rep-stat strong { color: var(--brand-1); font-size: 1.6rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.st-rep-stat span { color: var(--theme-emphasis-color, #212529); font-size: .78rem; font-weight: 700; }
.st-rep-stat small { color: var(--theme-secondary-color, #6c757d); font-size: .72rem; }
.st-rep-section { padding: 1.2rem 1.6rem 0; }
.st-rep-section h4 { display: flex; align-items: center; gap: .6rem; margin: 0 0 .6rem; color: var(--theme-emphasis-color, #212529); font-size: 1rem; font-weight: 800; }
.st-rep-count { padding: .02rem .5rem; background: var(--brand-1); color: #fff; font-size: .68rem; font-weight: 800; }
.st-rep-note, .st-rep-none { margin: 0 0 .6rem; color: var(--theme-secondary-color, #6c757d); font-size: .82rem; }
.st-rep-table { width: 100%; margin-bottom: 1.2rem; border-collapse: collapse; font-size: .84rem; }
.st-rep-table th { padding: .5rem .65rem; border-bottom: 2px solid var(--brand-1); color: var(--brand-1); font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.st-rep-table td { padding: .45rem .65rem; border-bottom: 1px solid var(--theme-border-color, #e8ebef); vertical-align: top; }
.st-rep-table tbody tr:nth-child(even) { background: color-mix(in srgb, var(--theme-tertiary-bg, #f4f6f9) 70%, transparent); }
.st-rep-table td.is-good { color: #14925f; font-weight: 700; } .st-rep-table td.is-bad { color: #c0392b; font-weight: 700; } .st-rep-table td.is-warn { color: #a84a00; font-weight: 700; }
.st-rep-foot { padding: .8rem 1.6rem; border-top: 1px solid var(--theme-border-color, #e3e7ec); color: var(--theme-secondary-color, #6c757d); font-size: .72rem; text-align: center; }
[data-bs-theme=dark] .st-rep-group-title, [data-bs-theme=dark] .st-rep-stat strong, [data-bs-theme=dark] .st-rep-table th { color: var(--brand-accent); }
[data-bs-theme=dark] .st-rep-table th { border-bottom-color: var(--brand-accent); }
[data-bs-theme=dark] .st-rep-table td.is-good { color: #3ddc84; } [data-bs-theme=dark] .st-rep-table td.is-bad { color: #ff8a80; } [data-bs-theme=dark] .st-rep-table td.is-warn { color: #ffa45c; }
[data-bs-theme=dark] .st-rep-count { background: #4a78d0; }

@media print {
  body { background: #fff !important; }
  .sidenav-menu, .app-topbar, .topbar, .page-title-head, .page-toolbar, footer, .footer, .st-vhead, .st-rep-list, .st-rep-bar, .st-rep-empty, .offcanvas, .modal, .st-notice { display: none !important; }
  .content-page, .page-container, .container-fluid { margin: 0 !important; padding: 0 !important; }
  .st-rep-layout { display: block; }
  .st-rep-doc { border: 0; box-shadow: none; }
  .st-rep-doc-head, .st-rep-count { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .st-rep-table tr { break-inside: avoid; }
  .st-rep-table thead { display: table-header-group; }
}
.st-rep-table td.is-nowrap { white-space: nowrap; }

/* ==================================================================
   /videos redesign (page header untouched; scoped to .st-vlib): toolbar as a solid panel, video cards as bordered tiles
   with a footer strip, a bolder featured card, and section heading with a count.
   ================================================================== */
.st-vlib .st-vbar {
  gap: .75rem; padding: .7rem .8rem; border: 1px solid var(--theme-border-color, #dfe3e8); border-left: 4px solid var(--brand-1);
  background: var(--theme-secondary-bg, #fff); backdrop-filter: none; box-shadow: 0 6px 22px rgba(var(--brand-1-rgb), .08);
}
.st-vlib .st-vbar-search .form-control { border: 1px solid var(--theme-border-color, #dfe3e8); background: var(--theme-tertiary-bg, #f4f6f9); }
.st-vlib .st-vbar-search .form-control:focus { border-color: var(--brand-accent); background: var(--theme-secondary-bg, #fff); box-shadow: 0 0 0 3px rgba(var(--brand-accent-rgb), .3); }
.st-vlib .st-vbar-group { padding: .18rem; border: 1px solid var(--theme-border-color, #dfe3e8); background: var(--theme-tertiary-bg, #f4f6f9); }
.st-vlib .btn-check:checked + .st-vbar-chip { background: linear-gradient(180deg, #1c3d59, #242b4d); box-shadow: 0 3px 8px rgba(var(--brand-1-rgb), .3); }
.st-vlib .st-vbar-sort { border: 1px solid var(--theme-border-color, #dfe3e8); }

.st-vlib .st-vsection-head { align-items: center; padding-bottom: .6rem; border-bottom: 2px solid var(--brand-1); }
.st-vlib .st-vsection-title { font-size: 1.1rem; }
.st-vlib .st-vsection-title .ti { display: inline-flex; align-items: center; justify-content: center; width: 1.9rem; height: 1.9rem; background: rgba(var(--brand-accent-rgb), .2); color: var(--brand-1); }
.st-vlib .st-videos-result { padding: .15rem .6rem; background: var(--brand-1); color: #fff; font-size: .74rem; font-weight: 700; }
.st-vlib .st-videos-result:empty { display: none; }

.st-vlib .st-videos-grid { gap: 1.25rem; margin-top: 1rem; }
.st-vlib .st-videos-grid:not(.is-list) .st-video-card {
  display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--theme-border-color, #dfe3e8);
  background: var(--theme-secondary-bg, #fff); box-shadow: 0 2px 8px rgba(var(--brand-1-rgb), .06); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.st-vlib .st-videos-grid:not(.is-list) .st-video-card:hover { transform: translateY(-4px); border-color: var(--brand-accent); box-shadow: 0 14px 30px rgba(var(--brand-1-rgb), .18); }
.st-vlib .st-video-card .st-video-thumb { border-radius: 0; box-shadow: none; }
.st-vlib .st-video-card:hover .st-video-thumb { transform: none; box-shadow: none; }
.st-vlib .st-video-thumb-link { border-radius: 0; border-bottom: 3px solid var(--brand-1); }
.st-vlib .st-videos-grid:not(.is-list) .st-video-info { flex: 1; padding: .85rem .9rem .9rem; }
.st-vlib .st-video-title { margin-bottom: .35rem; color: var(--theme-emphasis-color, #212529); font-size: .98rem; font-weight: 800; }
.st-vlib .st-video-meta { flex-direction: row; flex-wrap: wrap; align-items: center; gap: .15rem .6rem; padding-top: .45rem; border-top: 1px dashed var(--theme-border-color, #dfe3e8); }
.st-vlib .st-video-meta > span:first-child { color: var(--theme-emphasis-color, #212529); font-weight: 700; }
.st-vlib .st-video-avatar { width: 2.3rem; height: 2.3rem; border: 2px solid rgba(var(--brand-accent-rgb), .55); }
.st-vlib .st-video-new { background: var(--brand-accent); color: var(--brand-3); font-weight: 800; letter-spacing: .05em; }
.st-vlib .st-video-card:hover .st-video-play { background: var(--brand-1); }
.st-vlib .st-video-card .st-video-menu { opacity: 1; }
.st-vlib .st-video-menu > .btn { border: 1px solid var(--theme-border-color, #dfe3e8); background: var(--theme-tertiary-bg, #f4f6f9); }

.st-vlib .st-videos-featured { border: 0; background: linear-gradient(180deg, #1c3d59 0%, #242b4d 100%); color: #fff; box-shadow: 0 14px 34px rgba(var(--brand-1-rgb), .3); border-left: 5px solid var(--brand-accent); }
.st-vlib .st-videos-featured-body h3, .st-vlib .st-videos-featured-body h3 a { color: #fff; }
.st-vlib .st-videos-featured-body h3 a:hover { color: var(--brand-accent); }
.st-vlib .st-videos-featured-desc, .st-vlib .st-videos-featured-meta small { color: rgba(255, 255, 255, .72); }
.st-vlib .st-videos-featured-tag { background: var(--brand-accent); color: var(--brand-3); font-weight: 800; }

.st-vlib .st-videos-grid.is-list .st-video-card { border: 1px solid var(--theme-border-color, #dfe3e8); border-left: 4px solid var(--brand-1); box-shadow: 0 2px 8px rgba(var(--brand-1-rgb), .05); }
.st-vlib .st-videos-grid.is-list .st-video-card:hover { border-left-color: var(--brand-accent); box-shadow: 0 8px 22px rgba(var(--brand-1-rgb), .14); }
.st-vlib .st-videos-more .btn { border: 1px solid var(--brand-1); background: transparent; color: var(--brand-1); font-weight: 700; }
.st-vlib .st-videos-more .btn:hover { background: var(--brand-1); color: #fff; }

[data-bs-theme=dark] .st-vlib .st-vbar { border-left-color: var(--brand-accent); }
[data-bs-theme=dark] .st-vlib .st-vsection-head { border-bottom-color: var(--brand-accent); }
[data-bs-theme=dark] .st-vlib .st-vsection-title .ti { color: var(--brand-accent); }
[data-bs-theme=dark] .st-vlib .st-videos-result { background: #4a78d0; }
[data-bs-theme=dark] .st-vlib .st-video-thumb-link { border-bottom-color: var(--brand-accent); }
[data-bs-theme=dark] .st-vlib .st-videos-grid:not(.is-list) .st-video-card { box-shadow: none; }
[data-bs-theme=dark] .st-vlib .st-videos-more .btn { border-color: var(--brand-accent); color: var(--brand-accent); }
/* featured video: a smaller preview (fixed-width thumbnail, shorter card) */
@media (min-width: 992px) { .st-vlib .st-videos-featured { grid-template-columns: 24rem minmax(0, 1fr); } }
.st-vlib .st-video-thumb.is-featured { min-height: 0; height: auto; aspect-ratio: 16 / 9; }
.st-vlib .st-videos-featured-body { padding: 1.1rem 1.4rem; gap: .55rem; }
.st-vlib .st-videos-featured-body h3 { font-size: clamp(1.1rem, 1.6vw, 1.35rem); }
.st-vlib .st-video-thumb.is-featured .st-video-play { width: 3.25rem; height: 3.25rem; font-size: 1.3rem; }
@media (min-width: 992px) { .st-vlib .st-videos-featured { grid-template-columns: 30rem minmax(0, 1fr); } }
.st-vlib .st-videos-featured-body { padding: 1.3rem 1.6rem; }
.st-vlib .st-video-thumb.is-featured .st-video-play { width: 3.75rem; height: 3.75rem; font-size: 1.45rem; }
@media (min-width: 992px) { .st-vlib .st-videos-featured { grid-template-columns: 36rem minmax(0, 1fr); } }
.st-vlib .st-videos-featured-body { padding: 1.4rem 1.75rem; }
.st-vlib .st-videos-featured-body h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }
.st-vlib .st-video-thumb.is-featured .st-video-play { width: 4.25rem; height: 4.25rem; font-size: 1.6rem; }
@media (min-width: 992px) { .st-vlib .st-videos-featured { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.st-vlib .st-videos-featured-body { padding: 1.6rem 1.9rem; }
.st-vlib .st-videos-featured-body h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
@media (min-width: 992px) { .st-vlib .st-videos-featured { grid-template-columns: 38rem minmax(0, 1fr); } }
.st-vlib .st-videos-featured-body { padding: 1.4rem 1.75rem; }
.st-vlib .st-videos-featured-body h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }
@media (min-width: 992px) { .st-vlib .st-videos-featured { grid-template-columns: 42rem minmax(0, 1fr); } }
@media (min-width: 992px) { .st-vlib .st-videos-featured { grid-template-columns: 40rem minmax(0, 1fr); } }
@media (min-width: 992px) { .st-vlib .st-videos-featured { grid-template-columns: 41rem minmax(0, 1fr); } }
/* featured video: sits in a centered container instead of spanning the full width */
.st-vlib .st-videos-featured { max-width: 64rem; margin: 0 auto 1.75rem; }
@media (min-width: 992px) { .st-vlib .st-videos-featured { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.st-vlib .st-videos-featured { max-width: 72rem; }
.st-vlib .st-videos-featured { max-width: 80rem; }

/* ==================================================================
   Dark mode, /schedule (and anything else reading --theme-card-bg): the card background variable was never defined in dark
   mode, so rows, side cards and the calendar fell back to white. It follows the theme's surface colour now.
   ================================================================== */
:root { --theme-card-bg: var(--theme-secondary-bg); }
.st-sched-row { color: var(--theme-body-color, #212529); }
.st-sched-row .st-sched-title { color: var(--theme-emphasis-color, #212529); }
[data-bs-theme=dark] .st-sched-row { background: var(--theme-secondary-bg); border-color: rgba(255, 255, 255, .08); border-left-color: var(--kind); box-shadow: none; }
[data-bs-theme=dark] .st-sched-row:hover, [data-bs-theme=dark] .st-sched-row:focus-visible { background: color-mix(in srgb, var(--kind) 10%, var(--theme-secondary-bg)); box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
[data-bs-theme=dark] .st-sched-date { background: color-mix(in srgb, var(--kind) 22%, transparent); }
[data-bs-theme=dark] .st-sched-date strong { color: #fff; }
[data-bs-theme=dark] .st-sched-meta, [data-bs-theme=dark] .st-sched-notes { color: #a7b0bf; }
[data-bs-theme=dark] .st-sched-type-tile { background: color-mix(in srgb, var(--kind) 22%, transparent); color: color-mix(in srgb, var(--kind) 55%, #fff); }
[data-bs-theme=dark] .st-sched-rel { background: rgba(255, 255, 255, .1); color: #d3dae6; }
[data-bs-theme=dark] .st-sched-rel.is-today { background: rgba(61, 220, 132, .2); color: #5ee6a6; }
[data-bs-theme=dark] .st-sched-badge.is-home { color: color-mix(in srgb, var(--st-sched-game) 40%, #fff); background: color-mix(in srgb, var(--st-sched-game) 28%, transparent); }
[data-bs-theme=dark] .st-sched-badge.is-away { color: color-mix(in srgb, var(--st-sched-practice) 40%, #fff); background: color-mix(in srgb, var(--st-sched-practice) 28%, transparent); }
[data-bs-theme=dark] .st-sched-month-title { color: #b6c0d1; }
[data-bs-theme=dark] .st-sched-month-title::after { background: rgba(255, 255, 255, .1); }
[data-bs-theme=dark] .st-sched-result { background: rgba(255, 255, 255, .08); color: #fff; }

[data-bs-theme=dark] .st-sched-side-card { background: var(--theme-secondary-bg); border-color: rgba(255, 255, 255, .08); }
[data-bs-theme=dark] .st-sched-side-title { color: #b6c0d1; }
[data-bs-theme=dark] .st-sched-side-title .ti { color: var(--brand-accent); }
[data-bs-theme=dark] .st-sched-side-title span { background: #4a78d0; color: #fff; }
[data-bs-theme=dark] .st-sched-mini { color: #e6ebf3; }
[data-bs-theme=dark] .st-sched-mini:hover, [data-bs-theme=dark] .st-sched-mini:focus-visible { background: rgba(255, 255, 255, .07); }
[data-bs-theme=dark] .st-sched-mini-day { color: #fff; }
[data-bs-theme=dark] .st-sched-mini-day b, [data-bs-theme=dark] .st-sched-mini-text small { color: #a7b0bf; }
[data-bs-theme=dark] .st-sched-mini-text strong { color: #f1f4f9; }
[data-bs-theme=dark] .st-sched-legend-item { color: #e6ebf3; }
[data-bs-theme=dark] .st-sched-legend-item:hover { background: rgba(255, 255, 255, .07); }
[data-bs-theme=dark] .st-sched-legend-item b { color: #fff; }
[data-bs-theme=dark] .st-sched-legend-hint, [data-bs-theme=dark] .st-sched-side-empty, [data-bs-theme=dark] .st-sched-side-more { color: #a7b0bf; }

[data-bs-theme=dark] .st-sched-calendar { background: var(--theme-secondary-bg); border-color: rgba(255, 255, 255, .08); --fc-border-color: rgba(255, 255, 255, .1); --fc-page-bg-color: transparent; --fc-neutral-bg-color: rgba(255, 255, 255, .05); --fc-today-bg-color: rgba(125, 180, 234, .14); --fc-list-event-hover-bg-color: rgba(255, 255, 255, .06); }
[data-bs-theme=dark] .st-sched-calendar .fc-col-header-cell, [data-bs-theme=dark] .st-sched-calendar .fc-col-header-cell-cushion { background: rgba(255, 255, 255, .06); color: #e6ebf3; }
[data-bs-theme=dark] .st-sched-calendar .fc-daygrid-day-number, [data-bs-theme=dark] .st-sched-calendar .fc-toolbar-title { color: #e6ebf3; }
[data-bs-theme=dark] .st-sched-calendar .fc-day-other .fc-daygrid-day-number { color: #6f7a8c; }
[data-bs-theme=dark] .st-sched-calendar .fc .fc-button-primary { background-color: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .12); color: #e6ebf3; }
[data-bs-theme=dark] .st-sched-calendar .fc .fc-button-primary:not(:disabled).fc-button-active { background-color: #4a78d0 !important; }
[data-bs-theme=dark] .st-sched-hint { color: #a7b0bf; }

/* ==================================================================
   Sign-in pages, left column redesign (Views/Shared/_AuthBrandPanel.cshtml). The OGL court animation and pitch lines
   stay; around them: a top line with a status pill, a sporty headline, glass feature cards that slide in one by one, and a
   footer strip. Soft glow orbs drift behind the text.
   ================================================================== */
.st-login-brand { background: radial-gradient(900px 520px at 100% 0%, rgba(125, 180, 234, .22), transparent 60%), radial-gradient(700px 600px at 0% 100%, rgba(255, 194, 71, .1), transparent 60%), linear-gradient(160deg, var(--brand-1) 0%, var(--brand-2) 55%, var(--brand-3) 100%); }
.st-login-orb { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; opacity: .5; }
.st-login-orb.is-a { top: 8%; left: -8%; width: 22rem; height: 22rem; background: rgba(125, 180, 234, .35); animation: st-orb 14s ease-in-out infinite alternate; }
.st-login-orb.is-b { bottom: -6%; right: 10%; width: 18rem; height: 18rem; background: rgba(255, 194, 71, .22); animation: st-orb 18s ease-in-out infinite alternate-reverse; }
@keyframes st-orb { to { transform: translate(40px, -30px) scale(1.15); } }

.st-login-topline { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.st-login-status { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .8rem; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .08); color: #e8eefb; font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.st-login-status i { width: .5rem; height: .5rem; border-radius: 50%; background: #ffc247; box-shadow: 0 0 0 4px rgba(255, 194, 71, .25); animation: st-pulse-y 1.8s ease-in-out infinite; }
@keyframes st-pulse-y { 50% { box-shadow: 0 0 0 8px rgba(255, 194, 71, 0); } }

.st-login-pitchline { max-width: 32rem; }
.st-login-brand .st-login-eyebrow { gap: .5rem; padding: .3rem .85rem .3rem .3rem; border: 0; background: rgba(255, 255, 255, .1); border-left: 3px solid #ffc247; font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
.st-login-brand .st-login-eyebrow .ti { display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; background: #ffc247; color: #2a1a00; font-size: .95rem; }
.st-login-headline { margin: 1.1rem 0 1rem; font-size: clamp(2.6rem, 4.1vw, 4rem); font-weight: 900; font-style: italic; line-height: .98; letter-spacing: -.035em; text-transform: uppercase; }
.st-login-headline span { background: linear-gradient(90deg, #ffc247, #fff 75%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.st-login-lede { margin-bottom: 1.75rem; }

.st-login-features { gap: .7rem; }
.st-login-features li { align-items: center; padding: .75rem .9rem; border: 1px solid rgba(255, 255, 255, .12); border-left: 3px solid #7db4ea; background: rgba(255, 255, 255, .07); backdrop-filter: blur(6px); opacity: 0; transform: translateX(-18px); animation: st-feat-in .6s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(.25s + var(--i, 1) * .14s); }
@keyframes st-feat-in { to { opacity: 1; transform: none; } }
.st-login-features li:nth-child(2) { border-left-color: #ffc247; }
.st-login-features li:nth-child(3) { border-left-color: #5ee6a6; }
.st-login-brand .st-login-feature-icon { flex: 0 0 2.6rem; border: 0; border-radius: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.3rem; }
.st-login-features li:nth-child(1) .st-login-feature-icon { color: #7db4ea; }
.st-login-features li:nth-child(2) .st-login-feature-icon { color: #ffc247; }
.st-login-features li:nth-child(3) .st-login-feature-icon { color: #5ee6a6; }
.st-login-feature-icon b { font-size: 1.2rem; font-weight: 900; font-style: italic; }
.st-login-features strong { font-size: .95rem; }
.st-login-features li > span:last-child { color: rgba(255, 255, 255, .75); font-size: .85rem; line-height: 1.35; }
@media (prefers-reduced-motion: reduce) { .st-login-features li { opacity: 1; transform: none; animation: none; } .st-login-orb, .st-login-status i { animation: none; } }

.st-login-brand-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.st-login-tagline { display: inline-flex; align-items: center; gap: .4rem; color: rgba(255, 255, 255, .75); font-weight: 700; }
.st-login-tagline .ti { color: #ffc247; }
/* keep the court animation clear of the feature cards */
.st-login-court { -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 56%, #000 74%); mask-image: linear-gradient(to right, transparent 0%, transparent 56%, #000 74%); }

/* ==========================================================================
   Login form column redesign (ideas from the reference sign-in: accent edge + shadow on the form column,
   centred brand/title, tinted icon addons, ruled footnote). Theme and language switchers are unchanged.
   ========================================================================== */
@media (min-width: 992px) {
  .st-login-main { position: relative; border-inline-start: 4px solid var(--brand-accent, #7db4ea); box-shadow: -12px 0 40px rgba(15, 23, 42, .22); z-index: 1; }
}
.st-login-form-wrap > .st-login-title, .st-login-form-wrap > .st-login-subtitle { text-align: center; justify-content: center; }
.st-login-title::before { display: none; }
.st-login-title { font-size: 1.6rem; }
.st-login-subtitle { margin-bottom: 1.5rem; font-size: .9rem; }
.st-login-badge { display: flex; justify-content: center; margin-bottom: 1.1rem; }
.st-login-badge span { display: inline-flex; align-items: center; justify-content: center; width: 3.1rem; height: 3.1rem; border-radius: .8rem; background: linear-gradient(160deg, var(--brand-1), var(--brand-2)); color: #ffc247; font-size: 1.7rem; box-shadow: 0 10px 22px -8px rgba(var(--brand-3-rgb, 21, 27, 58), .7); transform: rotate(-6deg); }

/* inputs: icon tile on the left, one bordered unit */
.st-login-field { display: flex; align-items: stretch; border: 1px solid var(--theme-border-color); border-radius: .6rem; background: var(--theme-body-bg); overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; }
.st-login-field:focus-within { border-color: var(--theme-primary); box-shadow: 0 0 0 .2rem rgba(var(--theme-primary-rgb), .18); }
.st-login-field > .ti { position: static; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 2.9rem; transform: none; background: var(--theme-tertiary-bg); border-right: 1px solid var(--theme-border-color); }
.st-login-field .form-control { flex: 1 1 auto; min-width: 0; border: 0; box-shadow: none !important; background: transparent; padding-left: .9rem; }
.st-login-field .form-control:has(+ .st-login-reveal) { padding-right: .5rem; }
.st-login-reveal { position: static; transform: none; align-self: center; margin-right: .35rem; flex: none; }

.st-login-keep { position: relative; display: flex; align-items: center; gap: .8rem; margin-bottom: 1.25rem; padding: .7rem .85rem; border: 1px solid var(--theme-border-color); background: var(--theme-tertiary-bg); transition: border-color .15s ease, background-color .15s ease; }
.st-login-keep:hover { border-color: rgba(var(--theme-primary-rgb), .5); }
.st-login-keep:has(.form-check-input:checked) { border-color: var(--theme-primary); background: rgba(var(--theme-primary-rgb), .07); }
.st-login-keep:has(.form-check-input:focus-visible) { box-shadow: 0 0 0 3px rgba(var(--theme-primary-rgb), .25); }
.st-keep-icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; background: rgba(var(--theme-primary-rgb), .12); color: var(--theme-primary); font-size: 1.3rem; }
.st-login-keep:has(.form-check-input:checked) .st-keep-icon { background: var(--theme-primary); color: #fff; }
.st-keep-text { display: grid; flex: 1; min-width: 0; margin: 0; line-height: 1.25; cursor: pointer; }
.st-keep-text::after { content: ''; position: absolute; inset: 0; }
.st-keep-text strong { color: var(--theme-body-color); font-size: .92rem; font-weight: 700; }
.st-keep-text small { color: var(--theme-secondary-color); font-size: .78rem; }
.st-keep-switch { position: relative; z-index: 1; flex: none; min-height: 0; margin: 0; padding: 0; }
.st-keep-switch .form-check-input { float: none; width: 2.6em; height: 1.4em; margin: 0; cursor: pointer; }
.st-login-submit { padding-top: .7rem; padding-bottom: .7rem; border: 0; border-radius: .6rem; background: linear-gradient(160deg, var(--brand-1), var(--brand-2)); box-shadow: 0 10px 22px -10px rgba(var(--brand-3-rgb, 21, 27, 58), .8); letter-spacing: .02em; }
.st-login-submit:hover { filter: brightness(1.15); }
.st-login-help { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--theme-border-color); }
.st-login-join { border-style: solid; border-left: 4px solid #ffc247; }

/* ---- login brand headline: a play-call board (numbered lines, last line highlighted) ---- */
.st-login-headline { display: grid; gap: .15rem; margin: 1.2rem 0 1.1rem; font-size: clamp(2.2rem, 3.5vw, 3.4rem); line-height: 1; }
.st-login-headline .st-hl { display: flex; align-items: baseline; gap: .8rem; padding: .35rem 0; border-bottom: 1px solid rgba(255, 255, 255, .14); background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #fff; opacity: 0; transform: translateY(14px); animation: st-hl-in .6s cubic-bezier(.2, .8, .2, 1) forwards; }
.st-login-headline .st-hl.is-1 { animation-delay: .05s; }
.st-login-headline .st-hl.is-2 { animation-delay: .2s; color: rgba(255, 255, 255, .78); }
.st-login-headline .st-hl.is-3 { animation-delay: .35s; border-bottom: 0; padding-top: .55rem; }
.st-login-headline .st-hl em { flex: none; align-self: center; min-width: 1.9rem; padding: .15rem 0; color: #ffc247; font-size: .72rem; font-style: normal; font-weight: 800; letter-spacing: .14em; border-right: 2px solid #ffc247; padding-right: .55rem; }
.st-login-headline .st-hl b { display: inline-block; padding: .08em .35em .12em; background: linear-gradient(90deg, #ffc247, #ff9f1c); color: #2a1a00; font-weight: 900; transform: skewX(-8deg); box-shadow: 0 10px 24px -8px rgba(255, 159, 28, .6); }
@keyframes st-hl-in { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .st-login-headline .st-hl { opacity: 1; transform: none; animation: none; } }
.st-login-lede { padding-left: .9rem; border-left: 2px solid rgba(255, 194, 71, .6); }

/* ---- login: no italics, no yellow (brand blue accents instead) ---- */
.st-login-brand { background: radial-gradient(900px 520px at 100% 0%, rgba(125, 180, 234, .22), transparent 60%), radial-gradient(700px 600px at 0% 100%, rgba(125, 180, 234, .12), transparent 60%), linear-gradient(160deg, var(--brand-1), var(--brand-2) 60%, var(--brand-3)); }
.st-login-orb.is-b { background: rgba(125, 180, 234, .2); }
.st-login-status i { background: #7db4ea; box-shadow: 0 0 0 4px rgba(125, 180, 234, .25); }
.st-login-brand .st-login-eyebrow { border-left-color: #7db4ea; }
.st-login-brand .st-login-eyebrow .ti { background: #7db4ea; color: #0f1d33; }
.st-login-headline, .st-login-headline .st-hl, .st-login-feature-icon b { font-style: normal; }
.st-login-headline .st-hl em { color: #7db4ea; border-right-color: #7db4ea; }
.st-login-headline .st-hl b { transform: none; padding: 0; background: none; box-shadow: none; color: #7db4ea; }
/* Lock screen: "not signed out." shares one row; "signed out." never breaks apart. */
.st-login-headline.is-joined .st-hl b { white-space: nowrap; }
.st-login-lede { border-left-color: rgba(125, 180, 234, .6); }
.st-login-features li:nth-child(2) { border-left-color: #a5b4fc; }
.st-login-features li:nth-child(2) .st-login-feature-icon { color: #a5b4fc; }
.st-login-tagline .ti { color: #7db4ea; }
.st-login-badge span { color: #7db4ea; }
.st-login-join { border-left-color: var(--theme-primary); }

/* ---- Join page: photo picker ---- */
.st-reg-photo-pick { display: flex; align-items: center; gap: 1rem; margin: 0; padding: .75rem; border: 1px dashed var(--theme-border-color); border-radius: .6rem; background: var(--theme-tertiary-bg); cursor: pointer; transition: border-color .15s ease; }
.st-reg-photo-pick:hover, .st-reg-photo:focus-within .st-reg-photo-pick { border-color: var(--theme-primary); }
.st-reg-photo-img { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 4.25rem; height: 4.25rem; overflow: hidden; border-radius: 50%; border: 3px solid var(--theme-primary); background: var(--theme-body-bg); color: var(--theme-secondary-color); font-size: 1.6rem; }
.st-reg-photo-img img { width: 100%; height: 100%; object-fit: cover; }
.st-reg-photo-text strong { display: block; font-size: .95rem; }
.st-reg-photo-text small { color: var(--theme-secondary-color); }
.st-reg-photo-img, .st-reg-photo-img img { border-radius: 50% !important; }

/* ---- Join page: team key border in the brand blue of the left column ---- */
.st-login-field:has(#Input_TeamKey) { border: 2px solid var(--brand-1); background: var(--theme-body-bg); box-shadow: 0 0 0 .2rem rgba(var(--brand-1-rgb, 28, 61, 89), .12); }
.st-login-field:has(#Input_TeamKey) > .ti { color: var(--brand-1); border-right-color: rgba(var(--brand-1-rgb, 28, 61, 89), .35); }
.st-login-field:has(#Input_TeamKey):focus-within { border-color: var(--brand-2); box-shadow: 0 0 0 .25rem rgba(var(--brand-1-rgb, 28, 61, 89), .22); }
[data-bs-theme=dark] .st-login-field:has(#Input_TeamKey) { border-color: #4a78d0; box-shadow: 0 0 0 .2rem rgba(74, 120, 208, .18); }
[data-bs-theme=dark] .st-login-field:has(#Input_TeamKey) > .ti { color: #8fbdf0; }

/* ---- validation messages (asp-validation-for) are right-aligned everywhere ---- */
[data-valmsg-for], .field-validation-error, .field-validation-valid { display: block; text-align: right; }

/* ---- required fields: red * on the label (js/app-api/required-marks.js) ---- */
label.is-required::after { content: " *"; color: var(--theme-danger, #dc3545); font-weight: 700; }

/* login: "Team site" link is bold and blue */
.st-login-topbar a.btn[href="/landing"], .st-login-topbar a.btn[href="/"] { font-weight: 700; }

/* Join page: remove the chosen photo */
.st-reg-photo { position: relative; }
.st-reg-photo-clear { position: absolute; top: .6rem; right: .6rem; display: inline-flex; align-items: center; padding: .2rem .55rem; border: 1px solid var(--theme-border-color); border-radius: .4rem; background: var(--theme-body-bg); color: var(--theme-danger, #dc3545); font-size: .75rem; font-weight: 700; }
.st-reg-photo-clear:hover { background: var(--theme-danger, #dc3545); border-color: var(--theme-danger, #dc3545); color: #fff; }
.st-reg-photo-clear[hidden] { display: none; }

/* Join page: a wider form column (31-40rem instead of 24-28rem) */
@media (min-width: 992px) {
  .st-login:has(#registerForm) .st-login-main { flex-basis: clamp(31rem, 38vw, 40rem); }
}

/* Join page: the form sits closer to the top bar */
.st-login-main:has(#registerForm) .st-login-form-wrap { margin-top: 0; margin-bottom: auto; padding-top: 2rem; padding-bottom: 1.5rem; }

/* icon fields (email, phone, passwords...) use the same background as plain inputs such as the nickname */
.st-login-field { background: var(--theme-secondary-bg); }
.st-login-field .form-control { background: transparent; }
.st-login-field:has(#Input_TeamKey) { background: var(--theme-secondary-bg); }

/* Team Home header: the team logo / crest is round */
.st-home-crest, .st-home-crest.has-logo { clip-path: none; width: 5rem; height: 5rem; padding: 0; border-radius: 50% !important; overflow: hidden; border: 3px solid rgba(255, 255, 255, .85); }
.st-home-crest > span { margin-top: 0; }
.st-home-crest.has-logo { padding: .3rem; background: #fff; }
.st-home-crest-logo { border-radius: 50% !important; }
@media (max-width: 575.98px) { .st-home-crest, .st-home-crest.has-logo { width: 3.9rem; height: 3.9rem; } }

/* Team Home: the "Latest videos" card header uses the page header's upper blue */
.st-home-videos .st-home-card-head { padding: .8rem 1.25rem; background: var(--brand-1); color: #fff; }
.st-home-videos .st-home-card-head h3 { color: #fff; }
.st-home-videos .st-home-card-head h3 .ti { background: rgba(255, 255, 255, .14); color: var(--brand-accent, #7db4ea); }
.st-home-videos .st-home-card-head a, [data-bs-theme=dark] .st-home-videos .st-home-card-head a { color: rgba(255, 255, 255, .9); }
.st-home-videos .st-home-card-head a:hover { color: #fff; text-decoration: underline; }

/* Team Home: more room between the "Latest videos" header and its first row */
.st-home-videos .st-home-videolist { padding-top: 1.25rem; }

/* Team Home: the same extra room under the header in the roster, photos and squad cards */
.st-home-roster .st-home-roster-sub { margin-top: 0; padding-top: 1.25rem; }
.st-home-photos .st-home-photostrip { padding-top: 1.25rem; }
.st-home-squad .st-home-squadtools { padding-top: 1.25rem; }

/* Team Home: a blue header with a small 3D scene behind it on every card (js/app-api/card-fx.js) */
.st-home-card-head { position: relative; overflow: hidden; isolation: isolate; padding: .8rem 1.25rem; background: linear-gradient(100deg, var(--brand-1) 0%, var(--brand-1) 55%, color-mix(in srgb, var(--brand-1) 70%, #7db4ea) 100%); color: #fff; }
.st-home-card-head h3 { color: #fff; }
.st-home-card-head h3 .ti { background: rgba(255, 255, 255, .14); color: var(--brand-accent, #7db4ea); }
[data-bs-theme=dark] .st-home-card-head h3 .ti { background: rgba(255, 255, 255, .14); }
.st-home-card-head a, [data-bs-theme=dark] .st-home-card-head a { color: rgba(255, 255, 255, .9); }
.st-home-card-head a:hover { color: #fff; text-decoration: underline; }
.st-home-card-head .st-home-count { color: rgba(255, 255, 255, .8); }
.st-card-fx { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

/* Team Home: space below The squad card (outside it) */
.st-home-squad { margin-bottom: 1.25rem; }

/* ---- the blue card header band + 3D scene (js/app-api/card-fx.js) on the Account and Dashboard cards too ---- */
.st-account-card-head, .st-dash-card-head { position: relative; overflow: hidden; isolation: isolate; padding: 1rem 1.5rem; background: linear-gradient(100deg, var(--brand-1) 0%, var(--brand-1) 55%, color-mix(in srgb, var(--brand-1) 70%, #7db4ea) 100%); color: #fff; }
.st-account-card-head h4, .st-dash-card-head h5, .st-account-card-head p, .st-dash-card-head p, .st-dash-total { color: #fff; }
.st-account-card-head p, .st-dash-card-head p { opacity: .8; }
.st-account .st-account-card-head h4::before, .st-dash-card-head h5::before { background: var(--brand-accent, #7db4ea); }
[data-bs-theme=dark] .st-account .st-account-card-head h4::before, [data-bs-theme=dark] .st-dash-card-head h5::before { background: var(--brand-accent, #7db4ea); }
.st-dash-card-head { padding: .9rem 1.25rem; }
.st-account-card-head a, .st-dash-card-head a { color: #fff; }
/* more room above the card body */
.st-account-card > .card-body { padding-top: 1.5rem; }
.st-dash-card > :not(.st-dash-card-head) { margin-top: .75rem; }
@media (max-width: 575.98px) { .st-account-card-head { padding: .9rem 1rem; } .st-account-card > .card-body { padding-top: 1.25rem; } }

/* ---- /admin/members: the "All members" header is the blue band with the 3D scene (js/app-api/card-fx.js) ---- */
.st-mem-bar { position: relative; overflow: hidden; isolation: isolate; padding: .9rem 1.25rem; border-bottom: 0; background: linear-gradient(100deg, var(--brand-1) 0%, var(--brand-1) 55%, color-mix(in srgb, var(--brand-1) 70%, #7db4ea) 100%); color: #fff; }
.st-mem-heading, .st-mem-result { color: #fff; }
.st-mem-result { opacity: .8; }
.st-mem-main .st-mem-results { padding-top: 1.25rem; }
.st-mem-bar .st-mem-view { background: rgba(255, 255, 255, .14); }
.st-mem-bar .st-mem-view label { color: rgba(255, 255, 255, .8); }
.st-mem-bar .st-mem-view .btn-check:checked + label { background: #fff; color: var(--brand-1); }

/* /videos: the "Most watched" tag is gold */
.st-videos .st-videos-featured-tag.is-gold { background: linear-gradient(180deg, #ffd45e, #f2a900); color: #3a2600; box-shadow: 0 4px 14px rgba(242, 169, 0, .4); }
.st-videos .st-videos-featured-tag.is-gold .ti { color: #7a4a00; }

/* user menu: the team name is the heading (bold, a bit bigger) */
.st-menu-team { display: flex; align-items: center; color: var(--theme-body-color); font-size: .9rem; font-weight: 700; }
.st-menu-team .ti { font-size: 1.05rem; }

/* topbar team chip: the logo replaces the generic icon when the team has one. The chip's icon rules above turn icons into
   gradient text (width/height auto, text-clipped background), so the logo box resets all of that and has a fixed size. */
.st-topbar-team .st-topbar-team-icon.has-logo {
  display: inline-flex; flex: none; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; padding: 0;
  background: none; -webkit-background-clip: border-box; background-clip: border-box; color: inherit; -webkit-text-fill-color: initial; overflow: hidden;
}
[data-bs-theme=dark] .st-topbar-team .st-topbar-team-icon.has-logo { background: rgba(255, 255, 255, .92); padding: .15rem; }
.st-topbar-team-icon.has-logo img { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; }

/* topbar team logo is round: a white disc with a thin ring, the logo shown whole inside it */
.st-topbar-team .st-topbar-team-icon.has-logo, [data-bs-theme=dark] .st-topbar-team .st-topbar-team-icon.has-logo { border-radius: 50% !important; background: #fff; padding: .2rem; box-shadow: 0 0 0 2px rgba(var(--brand-1-rgb, 28, 61, 89), .35); }
.st-topbar-team-icon.has-logo img { border-radius: 50% !important; }

/* /support search: a bit shorter, and it follows the dark theme instead of staying white */
.st-help-search .form-control { height: 2.9rem; font-size: 1rem; }
[data-bs-theme=dark] .st-help-search .form-control { background: var(--theme-secondary-bg, #1f2937); color: var(--theme-body-color, #e5e7eb); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
[data-bs-theme=dark] .st-help-search .form-control::placeholder { color: var(--theme-secondary-color, #9ca3af); }
[data-bs-theme=dark] .st-help-search > .ti { color: var(--brand-accent, #7db4ea); }
[data-bs-theme=dark] .st-help-search kbd { border-color: var(--theme-border-color, #374151); background: var(--theme-tertiary-bg, #111827); color: var(--theme-secondary-color, #9ca3af); }
@media (max-width: 575.98px) { .st-help-search .form-control { height: 2.6rem; } }

/* Page loader: no bar, no background, just a spinning basketball placed inside the top bar (position set by the loader script) (the "Loading page" text stays for screen readers). */
.st-pageload-bar { display: none; }
.st-pageload-chip { top: var(--st-pageload-y, .9rem); left: var(--st-pageload-x, 50%); padding: 0; border-radius: 0; background: none; box-shadow: none; font-size: 0; gap: 0; }
.st-pageload-ball { display: block; width: 38px; height: 38px; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .3)); animation: st-pageload-spin .8s linear infinite; }
@media (prefers-reduced-motion: reduce) { .st-pageload-ball { animation-duration: 2.4s; } }

/* ---- Photos viewer (.st-lb2): blurred-photo backdrop, framed picture, glass controls and caption card, thumbnail strip ---- */
.st-lb2 { background: #04100b; }
.st-lb2::before { content: ""; position: absolute; inset: -6rem; z-index: 0; background: var(--lb-img) center / cover no-repeat; filter: blur(46px) saturate(1.35) brightness(.55); transform: scale(1.1); transition: background-image .35s ease; }
.st-lb2::after { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(90% 70% at 50% 40%, transparent, rgba(4, 16, 11, .72)), linear-gradient(to bottom, rgba(4, 16, 11, .55), transparent 28%, transparent 60%, rgba(4, 16, 11, .85)); pointer-events: none; }
.st-lb2 > :not(.st-lightbox-nav) { position: relative; z-index: 1; }
.st-lb2 > .st-lightbox-nav { z-index: 2; }
.st-lb2 .st-lightbox-top { padding: 1rem 1.25rem; }
.st-lb2 .st-lightbox-count { padding: .35rem .85rem; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; background: rgba(255, 255, 255, .1); backdrop-filter: blur(10px); color: #fff; font-size: .8rem; font-weight: 800; letter-spacing: .06em; }
.st-lb2 .st-lightbox-btn, .st-lb2 .st-lightbox-nav { border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .12); backdrop-filter: blur(10px); box-shadow: 0 8px 24px rgba(0, 0, 0, .3); transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.st-lb2 .st-lightbox-btn:hover, .st-lb2 .st-lightbox-nav:hover:not(:disabled) { background: var(--st-green-accent, #7db4ea); border-color: transparent; color: #04100b; transform: scale(1.08); }
.st-lb2 .st-lightbox-nav { width: 3.4rem; height: 3.4rem; }
.st-lb2 .st-lightbox-stage img { max-height: calc(100vh - 19rem); border: 1px solid rgba(255, 255, 255, .22); border-radius: 1.1rem; box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 8px rgba(255, 255, 255, .06); transform: scale(.97); transition: opacity .3s ease, transform .35s cubic-bezier(.2, .7, .2, 1); }
.st-lb2 .st-lightbox-stage img.is-loaded { transform: none; }
.st-lb2 .st-lightbox-info { justify-self: center; width: min(100%, 42rem); margin: .25rem 1.25rem .6rem; padding: .85rem 1.5rem; border: 1px solid rgba(255, 255, 255, .18); border-radius: 1rem; background: rgba(255, 255, 255, .1); backdrop-filter: blur(14px); box-shadow: 0 14px 40px rgba(0, 0, 0, .35); }
.st-lb2 .st-lightbox-caption { font-size: 1.2rem; font-weight: 800; }
.st-lb2 .st-lightbox-description { color: rgba(255, 255, 255, .82); }
.st-lb2 .st-lightbox-info small { color: rgba(255, 255, 255, .72); }
.st-lb-thumbs { grid-column: 1 / -1; display: flex; justify-content: center; gap: .5rem; max-width: 100%; padding: .2rem 1rem 1.15rem; overflow-x: auto; scrollbar-width: none; }
.st-lb-thumbs::-webkit-scrollbar { display: none; }
.st-lb-thumbs button { flex: none; width: 4.2rem; height: 3rem; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: .6rem; background: rgba(255, 255, 255, .1); opacity: .55; transition: opacity .2s ease, transform .2s ease, border-color .2s ease; }
.st-lb-thumbs button img { display: block; width: 100%; height: 100%; object-fit: cover; }
.st-lb-thumbs button:hover { opacity: .9; }
.st-lb-thumbs button.is-on { border-color: var(--st-green-accent, #7db4ea); opacity: 1; transform: translateY(-2px); }
.st-lb-thumbs button:focus-visible { outline: 2px solid var(--st-green-accent, #7db4ea); outline-offset: 2px; }
@media (max-width: 575.98px) { .st-lb2 .st-lightbox-stage img { max-height: calc(100vh - 21rem); } .st-lb-thumbs button { width: 3.4rem; height: 2.5rem; } .st-lb2 .st-lightbox-info { margin-inline: .6rem; padding-inline: 1rem; } }
@media (prefers-reduced-motion: reduce) { .st-lb2 .st-lightbox-stage img { transition: opacity .1s; transform: none; } }

/* ---- Smoother page changes ----
   Every page shares one layout, but each is a normal server-rendered page, so a click on the side menu loads the next page from scratch.
   Browsers that support cross-document view transitions (Chrome / Edge 126+) now keep the old page on screen until the new one is ready,
   with the side menu and top bar held steady, so there is no white flash. Others behave as before. */
@view-transition { navigation: auto; }
.sidenav-menu { view-transition-name: st-sidenav; }
.app-topbar { view-transition-name: st-topbar; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
/* While a page is still loading, show the theme's background rather than the browser's white. */
html { background-color: var(--theme-body-bg, #f8f9fa); }

/* Team Home greeting: big, bold and white like the Team Metrics header's "Good morning, Jordan" */
.st-home-greeting { margin-bottom: .35rem; gap: .35rem .75rem; align-items: baseline; }
#home-greeting { color: #fff; font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; text-transform: none; }

/* Team storage limit: the meter under a team's storage figure (Teams page) */
.st-storage-meter { height: 6px; margin-top: .35rem; overflow: hidden; background: var(--theme-secondary-bg, #e9ecef); }
.st-storage-meter > span { display: block; height: 100%; background: var(--theme-primary, #0d6efd); }
.st-storage-meter.is-near > span { background: #e08a1e; }
.st-storage-meter.is-full > span { background: #c0392b; }
.st-storage-bar { margin-top: .6rem; font-size: .85rem; }

/* Add / edit member modal: blue field borders and a blue scroll bar that matches the left column */
.st-member-modal {
  --st-mem-blue: var(--theme-primary);
  --st-mem-blue-deep: color-mix(in srgb, var(--theme-primary) 55%, #000);
}
.st-member-modal :is(.form-control, .form-select, .input-group-text) { border: 1px solid var(--st-mem-blue); }
.st-member-modal .input-group > :is(.form-control, .form-select) + .input-group-text,
.st-member-modal .input-group > .input-group-text + :is(.form-control, .form-select) { border-left-width: 1px; }
.st-member-modal :is(.form-control, .form-select):focus { border-color: var(--st-mem-blue-deep); box-shadow: 0 0 0 3px rgba(var(--theme-primary-rgb), .22); }
.st-member-modal :is(.form-control, .form-select).is-invalid { border-color: var(--theme-danger, #dc3545); }
.st-member-modal .form-check-input:not(:checked) { border-color: var(--st-mem-blue); }
.st-member-main .modal-body { scrollbar-width: thin; scrollbar-color: var(--st-mem-blue-deep) rgba(var(--theme-primary-rgb), .1); }
.st-member-main .modal-body::-webkit-scrollbar { width: 10px; }
.st-member-main .modal-body::-webkit-scrollbar-track { background: rgba(var(--theme-primary-rgb), .1); }
.st-member-main .modal-body::-webkit-scrollbar-thumb { border: 2px solid transparent; background: var(--st-mem-blue-deep); background-clip: padding-box; }
.st-member-main .modal-body::-webkit-scrollbar-thumb:hover { background: var(--st-mem-blue); background-clip: padding-box; }

/* Members page: redesigned rail search (icon chip, clear button, "/" shortcut, helper line) */
.st-mem-rail > .st-mem-search { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .5rem; padding: .35rem .5rem .35rem .35rem; border: 1px solid var(--theme-primary); border-radius: 999px; background: var(--theme-body-bg, #fff); transition: box-shadow .15s; }
.st-mem-rail > .st-mem-search:focus-within { box-shadow: 0 0 0 3px rgba(var(--theme-primary-rgb), .2); }
.st-mem-search .st-mem-search-icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--theme-primary); color: #fff; }
.st-mem-rail > .st-mem-search .form-control { flex: 1 1 0; min-width: 0; height: 2.1rem; padding: 0 .25rem; border: 0; background: transparent; box-shadow: none; font-weight: 500; }
.st-mem-search .form-control::-webkit-search-cancel-button { display: none; }
.st-mem-search .st-mem-search-clear { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; padding: 0; border: 0; border-radius: 50%; background: rgba(var(--theme-primary-rgb), .14); color: var(--theme-primary); }
.st-mem-search .st-mem-search-clear:hover { background: var(--theme-primary); color: #fff; }
.st-mem-search .st-mem-search-kbd { flex: 0 0 auto; padding: .05rem .45rem; border: 1px solid var(--theme-border-color, #dee2e6); border-radius: .3rem; color: var(--theme-secondary-color, #6c757d); font-size: .72rem; }
.st-mem-search .st-mem-search-hint { flex: 0 0 100%; padding: .1rem 0 .2rem 2.75rem; color: var(--theme-secondary-color, #6c757d); font-size: .72rem; }
/* Members search: a clearly visible blue border around the whole search box */
.st-mem-rail > form.st-mem-search { border: 2px solid var(--theme-primary); }
.st-mem-rail > form.st-mem-search:focus-within { border-color: color-mix(in srgb, var(--theme-primary) 70%, #000); }
/* Members search: fixed blue only (no theme green); the inner input draws no border or focus ring of its own */
.st-mem-rail > form.st-mem-search { --st-search-blue: #1f6feb; border-color: var(--st-search-blue); }
.st-mem-rail > form.st-mem-search:focus-within { border-color: #1553b8; box-shadow: 0 0 0 3px rgba(31, 111, 235, .22); }
.st-mem-rail > form.st-mem-search .form-control,
.st-mem-rail > form.st-mem-search .form-control:focus { border: 0; outline: 0; box-shadow: none; background: transparent; }
.st-mem-search .st-mem-search-icon { background: #1f6feb; }
.st-mem-search .st-mem-search-clear { background: rgba(31, 111, 235, .14); color: #1f6feb; }
.st-mem-search .st-mem-search-clear:hover { background: #1f6feb; color: #fff; }
/* Members search: no border on the wrapper; the blue border is on the input itself */
.st-mem-rail > form.st-mem-search,
.st-mem-rail > form.st-mem-search:focus-within { border: 0; box-shadow: none; background: transparent; padding: 0; gap: 0 .4rem; }
.st-mem-rail > form.st-mem-search .form-control { border: 2px solid #1f6feb; border-radius: 999px; padding: 0 .85rem; height: 2.4rem; background: var(--theme-body-bg, #fff); }
.st-mem-rail > form.st-mem-search .form-control:focus { border-color: #1553b8; box-shadow: 0 0 0 3px rgba(31, 111, 235, .22); }
.st-mem-search .st-mem-search-hint { padding-left: .85rem; }
/* Members search: centred in the rail's header area */
.st-mem-rail > form.st-mem-search { width: 100%; max-width: 20rem; margin-inline: auto; justify-content: center; }
.st-mem-search .st-mem-search-hint { text-align: center; padding-left: 0; }
/* Members search: compact. Just the bordered input, no helper line or icon chip */
.st-mem-search .st-mem-search-hint, .st-mem-search .st-mem-search-icon, .st-mem-search .st-mem-search-kbd { display: none !important; }
.st-mem-rail > form.st-mem-search { max-width: none; margin: 0; position: relative; padding: 0; }
.st-mem-rail > form.st-mem-search .form-control { width: 100%; height: 2.3rem; padding: 0 2.2rem 0 .9rem; }
.st-mem-search .st-mem-search-clear { position: absolute; right: .45rem; top: 50%; transform: translateY(-50%); }
/* Members search: a search icon at the left inside the input, like a placeholder (hides once you type) */
.st-mem-search .st-mem-search-icon { display: inline-flex !important; position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); width: auto; height: auto; background: transparent; color: #1f6feb; pointer-events: none; font-size: 1.1rem; }
.st-mem-rail > form.st-mem-search .form-control { padding-left: 2.4rem; }
.st-mem-rail > form.st-mem-search:has(.form-control:not(:placeholder-shown)) .st-mem-search-icon { display: none !important; }
.st-mem-rail > form.st-mem-search:has(.form-control:not(:placeholder-shown)) .form-control { padding-left: .9rem; }

/* Schedule: read-only event details (people who can only view the schedule) */
.st-sdet .modal-content { overflow: hidden; border: 0; }
.st-sdet-hero { position: relative; display: flex; align-items: center; gap: 1rem; padding: 1.5rem 1.25rem 1.25rem; color: #fff; background: var(--st-green-gradient); }
.st-sdet-hero.is-off { background: linear-gradient(160deg, #6b7280, #374151); }
.st-sdet-close { position: absolute; top: .75rem; right: .75rem; }
.st-sdet-date { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 4.2rem; padding: .5rem 0; background: #fff; color: #1f2937; line-height: 1; }
.st-sdet-date span { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--st-green-1); }
.st-sdet-date strong { margin-top: .2rem; font-size: 1.9rem; font-weight: 800; }
.st-sdet-head { min-width: 0; padding-right: 1.5rem; }
.st-sdet-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .4rem; }
.st-sdet-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .55rem; background: rgba(255, 255, 255, .2); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.st-sdet-chip.is-status { background: #f59e0b; color: #1f2937; }
.st-sdet-title { margin: 0; font-size: 1.3rem; font-weight: 800; overflow-wrap: anywhere; }
.st-sdet-when { margin-top: .2rem; font-size: .88rem; opacity: .9; }
.st-sdet-body { display: grid; gap: 1rem; padding: 1.25rem; }
.st-sdet-rows { display: grid; gap: .9rem; }
.st-sdet-row { display: flex; gap: .8rem; align-items: flex-start; }
.st-sdet-row small, .st-sdet-notes small { display: block; color: var(--theme-secondary-color, #6c757d); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.st-sdet-ico { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; color: var(--st-green-1); background: color-mix(in srgb, var(--st-green-1) 12%, transparent); font-size: 1.15rem; }
.st-sdet-rel { margin-left: .35rem; padding: .05rem .4rem; background: var(--theme-tertiary-bg, #f1f3f5); color: var(--theme-secondary-color, #6c757d); font-size: .75rem; }
.st-sdet-notes p { margin: .25rem 0 0; padding: .75rem; background: var(--theme-tertiary-bg, #f1f3f5); white-space: pre-line; }
.st-sdet-score { display: flex; align-items: center; justify-content: space-between; padding: .7rem 1rem; background: var(--theme-tertiary-bg, #f1f3f5); border-left: 4px solid #6b7280; }
.st-sdet-score span { font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.st-sdet-score strong { font-size: 1.6rem; font-weight: 800; }
.st-sdet-score i { margin: 0 .3rem; font-style: normal; opacity: .5; }
.st-sdet-score.is-win { border-left-color: #16a34a; }
.st-sdet-score.is-loss { border-left-color: #dc2626; }
.st-sdet-warn { display: flex; gap: .5rem; align-items: center; padding: .6rem .8rem; background: rgba(245, 158, 11, .14); color: #92400e; font-weight: 600; }
.st-sdet-foot { gap: .5rem; }

/* ==================================================================
   Roles page redesign (light + dark). Everything below the .st-hero header; the header is untouched.
   Roles rail = one panel of rows; detail = tinted banner, stat tiles, permission cards in a two-column grid.
   Uses theme variables so light and dark follow the active theme.
   ================================================================== */
.st-roles {
  --rl-surface: var(--theme-secondary-bg, #fff);
  --rl-soft: var(--theme-tertiary-bg, #f4f6f9);
  --rl-line: var(--theme-border-color, #e3e7ec);
  --rl-text-muted: var(--theme-secondary-color, #6c757d);
  --rl-accent: var(--theme-primary);
  --rl-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
}
[data-bs-theme=dark] .st-roles {
  --rl-surface: #1c2230;
  --rl-soft: #232b3b;
  --rl-line: rgba(255, 255, 255, .09);
  --rl-text-muted: #9aa6b8;
  --rl-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px rgba(0, 0, 0, .35);
}

/* ---- tabs: underline style ---- */
.st-roles .st-roles-tabs { gap: 1.5rem; margin: 1.25rem 0 1rem; padding: 0; border-bottom: 1px solid var(--rl-line); }
.st-roles .st-roles-tabs .nav-link { position: relative; padding: .6rem .15rem; border-radius: 0; background: transparent; color: var(--rl-text-muted); font-weight: 700; }
.st-roles .st-roles-tabs .nav-link:hover { color: var(--theme-body-color, inherit); }
.st-roles .st-roles-tabs .nav-link.active { background: transparent; color: var(--rl-accent); }
.st-roles .st-roles-tabs .nav-link.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--rl-accent); }

/* ---- layout ---- */
.st-roles .st-roles-layout { gap: 1.25rem; }
@media (min-width: 992px) { .st-roles .st-roles-layout { grid-template-columns: 19rem minmax(0, 1fr); } }

/* ---- role list: a single panel of rows ---- */
.st-roles .st-roles-list { gap: 0; padding: .4rem; border: 1px solid var(--rl-line); border-radius: 1rem; background: var(--rl-surface); box-shadow: var(--rl-shadow); }
.st-roles .st-roles-item { position: relative; gap: .75rem; padding: .65rem .7rem; border: 0; border-radius: .7rem; background: transparent; transform: none; box-shadow: none; }
.st-roles .st-roles-item + .st-roles-item { margin-top: .15rem; }
.st-roles .st-roles-item:hover { background: var(--rl-soft); transform: none; border: 0; }
.st-roles .st-roles-item.active { background: color-mix(in srgb, var(--rl-accent) 12%, var(--rl-surface)); box-shadow: inset 3px 0 0 var(--rl-accent); }
.st-roles .st-roles-item-icon { width: 2.3rem; height: 2.3rem; border-radius: .6rem; font-size: 1.15rem; }
.st-roles .st-roles-item-title { font-size: .95rem; font-weight: 700; }
.st-roles .st-roles-item-sub { font-size: .76rem; font-weight: 500; color: var(--rl-text-muted); }
.st-roles .st-roles-bar { background: var(--rl-line); }
.st-roles .st-roles-item.active .st-roles-bar span { background: var(--rl-accent); }

/* ---- detail card ---- */
.st-roles .st-roles-detail { padding: 0; border: 1px solid var(--rl-line); border-radius: 1rem; background: var(--rl-surface); box-shadow: var(--rl-shadow); overflow: clip; }
.st-roles #role-body > .st-roles-head { margin: 0; padding: 1.25rem 1.35rem; gap: 1rem; align-items: center; border-bottom: 1px solid var(--rl-line); background: linear-gradient(120deg, color-mix(in srgb, var(--rl-accent) 14%, var(--rl-surface)), var(--rl-surface) 70%); }
.st-roles .st-roles-head h3 { font-size: 1.35rem; font-weight: 800; }
.st-roles .st-roles-head-icon { width: 3.2rem; height: 3.2rem; border-radius: .9rem; font-size: 1.6rem; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }
.st-roles .st-roles-code { background: var(--rl-soft); color: var(--rl-text-muted); }
.st-roles #role-body > :not(.st-roles-head):not(.st-roles-savebar) { margin-left: 1.35rem; margin-right: 1.35rem; }
.st-roles .st-roles-metrics { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .85rem; margin-top: 1.1rem; margin-bottom: 1rem; }
.st-roles .st-roles-metric { padding: .9rem 1rem; border: 1px solid var(--rl-line); border-radius: .85rem; background: var(--rl-soft); }
.st-roles a.st-roles-metric:hover { border-color: var(--rl-accent); background: color-mix(in srgb, var(--rl-accent) 8%, var(--rl-soft)); }
.st-roles .st-roles-metric strong { font-size: 1.6rem; }
.st-roles .st-roles-metric-icon { border-radius: .65rem; background: color-mix(in srgb, var(--rl-accent) 16%, transparent); color: var(--rl-accent); }
.st-roles .st-roles-note { border: 1px solid var(--rl-line); border-radius: .75rem; background: var(--rl-soft); }

/* ---- find + filter ---- */
.st-roles .st-roles-tools { margin-bottom: 1rem; }
.st-roles .st-roles-tools .btn-group { padding: .2rem; border-radius: .7rem; background: var(--rl-soft); }
.st-roles .st-roles-tools .btn-group .btn { height: 2.1rem; border: 0; border-radius: .55rem !important; background: transparent; color: var(--rl-text-muted); font-weight: 600; }
.st-roles .st-roles-tools .btn-check:checked + .btn { background: var(--rl-surface); color: var(--rl-accent); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }

/* ---- permission groups: cards, two columns of tiles ---- */
.st-roles .st-roles-groups { gap: 1rem; padding-bottom: 1.35rem; }
.st-roles .st-roles-group { display: grid; border: 1px solid var(--rl-line); border-radius: .9rem; background: var(--rl-surface); }
@media (min-width: 1200px) { .st-roles .st-roles-group { grid-template-columns: 1fr 1fr; } .st-roles .st-roles-group-head { grid-column: 1 / -1; } }
.st-roles .st-roles-group-head { padding: .7rem 1rem; background: var(--rl-soft); border-bottom: 1px solid var(--rl-line); }
.st-roles .st-roles-group-icon { border-radius: .55rem; background: color-mix(in srgb, var(--rl-accent) 16%, transparent); color: var(--rl-accent); }
.st-roles .st-roles-group-head strong { font-size: 1rem; }
.st-roles .st-roles-perm { flex-direction: row-reverse; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1rem; border-top: 0; border-bottom: 1px solid var(--rl-line); }
.st-roles .st-roles-perm:hover { background: var(--rl-soft); }
.st-roles .st-roles-perm.is-on { box-shadow: inset 3px 0 0 var(--rl-accent); }
.st-roles .st-roles-perm.is-changed { background: color-mix(in srgb, var(--theme-warning, #f8ac59) 12%, transparent); box-shadow: inset 3px 0 0 var(--theme-warning, #f8ac59); }
.st-roles .st-roles-perm-name { font-size: .95rem; font-weight: 700; }
.st-roles .st-roles-perm-desc { font-size: .8rem; font-weight: 400; }
.st-roles .st-roles-perm .form-switch { padding-left: 0; margin: 0; }
.st-roles .st-roles-perm .form-switch .form-check-input { width: 2.5em; height: 1.35em; margin: 0; float: none; }
.st-roles .st-roles-perm .form-check-input:checked { background-color: var(--rl-accent); border-color: var(--rl-accent); }
.st-roles .st-roles-pill { border-radius: .35rem; }

/* ---- save bar ---- */
.st-roles .st-roles-savebar { margin: 0 1rem 1rem; bottom: 1rem; border: 1px solid rgba(255, 255, 255, .12); background: #111827; }
[data-bs-theme=dark] .st-roles .st-roles-savebar { background: #0b1020; border-color: rgba(255, 255, 255, .18); }

/* ---- compare grid ---- */
.st-roles .st-roles-compare { border: 1px solid var(--rl-line); border-radius: 1rem; background: var(--rl-surface); box-shadow: var(--rl-shadow); }
.st-roles .st-roles-compare-head { border-bottom: 1px solid var(--rl-line); }
.st-roles .st-roles-matrix thead th, .st-roles .st-roles-matrix tbody th[scope="row"], .st-roles .st-roles-matrix-corner { background: var(--rl-surface); }
.st-roles .st-roles-matrix-cat th { background: var(--rl-soft); letter-spacing: .06em; text-transform: uppercase; }
.st-roles .st-roles-matrix td, .st-roles .st-roles-matrix th { border-color: var(--rl-line); }
.st-roles .st-roles-yes { border-radius: .45rem; }

/* Confirm cards: compact sizing, actions side by side */
.st-confirm .modal-dialog { max-width: 23rem; }
.st-confirm-head { padding: 1.4rem 1.5rem .8rem; }
.st-confirm-icon { transform: scale(.85); margin-bottom: 0; }
.st-confirm-title { font-size: 1.2rem; margin-bottom: .2rem; }
.st-confirm-text { font-size: .9rem; }
.st-confirm-actions { grid-template-columns: 1fr 1fr; padding: 1rem 1.5rem 1.4rem; }
.st-confirm-actions .btn { padding: .55rem .75rem; }
.st-confirm-actions .st-confirm-ok { order: 2; }
.st-confirm-actions .st-confirm-cancel { order: 1; }

/* Add / edit team modal: tighter spacing between the numbered sections */
.st-teamm .st-member-step { padding: .65rem 0; }
.st-teamm .st-member-step:first-of-type { padding-top: 0; }
.st-teamm .st-member-step-title { margin-bottom: .5rem; }
.st-teamm .st-member-step .row { --bs-gutter-y: .5rem; }
.st-teamm .st-member-step .form-text { margin-top: .25rem; }
.st-teamm .st-member-step .form-check.form-switch { margin-bottom: 0 !important; }
.st-storage-free { margin-top: .2rem; font-weight: 700; color: var(--theme-success, #1ab394); }
.st-storage-free.is-full { color: #c0392b; }

/* ==================================================================
   Teams page redesign (/admin/tenants), light + dark. The .st-hero header is untouched.
   Left edge: solid green on the team you're working in, a faint blue on every other team.
   Storage left shows as a badge (green / amber from 80% / red when full / blue when unlimited).
   ================================================================== */
.st-teams {
  --tm-surface: var(--theme-secondary-bg, #fff);
  --tm-soft: var(--theme-tertiary-bg, #f4f6f9);
  --tm-line: var(--theme-border-color, #e3e7ec);
  --tm-muted: var(--theme-secondary-color, #6c757d);
  --tm-blue: #3b8ff6;
  --tm-green: #19b57a;
  --tm-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 22px rgba(16, 24, 40, .06);
}
[data-bs-theme=dark] .st-teams {
  --tm-surface: #1c2230;
  --tm-soft: #232b3b;
  --tm-line: rgba(255, 255, 255, .09);
  --tm-muted: #9aa6b8;
  --tm-blue: #6aa9ff;
  --tm-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 26px rgba(0, 0, 0, .35);
}

/* ---- toolbar ---- */
.st-teams .st-teams-toolbar { padding: .5rem; border: 1px solid var(--tm-line); border-radius: .9rem; background: var(--tm-surface); box-shadow: var(--tm-shadow); }
.st-teams .st-teams-toolbar .btn-group { padding: .2rem; border-radius: .65rem; background: var(--tm-soft); }
.st-teams .st-teams-toolbar .btn-group .btn { border: 0; border-radius: .5rem !important; background: transparent; color: var(--tm-muted); }
.st-teams .st-teams-toolbar .btn-check:checked + .btn { background: var(--tm-surface); color: var(--theme-primary); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }

/* ---- cards ---- */
.st-teams .st-teams-grid { gap: 1.1rem; }
.st-teams .st-teams-card.st-tcard {
  --tcard-accent: color-mix(in srgb, var(--tm-blue) 38%, transparent);
  border: 1px solid var(--tm-line); border-left: 5px solid var(--tcard-accent); border-radius: 1rem; background: var(--tm-surface); box-shadow: var(--tm-shadow);
}
.st-teams .st-teams-card.st-tcard.is-inactive { --tcard-accent: color-mix(in srgb, var(--tm-blue) 38%, transparent); }
.st-teams .st-teams-card.st-tcard.is-working { --tcard-accent: var(--tm-green); border-color: var(--tm-line); box-shadow: 0 10px 26px color-mix(in srgb, var(--tm-green) 18%, transparent); }
.st-teams .st-teams-card.st-tcard:hover { border-color: var(--tm-line); border-left-color: var(--tcard-accent); transform: translateY(-2px); }
.st-teams .st-tcard .card-body { gap: 1rem; padding: 1.25rem 1.35rem; }
.st-teams .st-tcard-id .st-teams-name { font-size: 1.2rem; }
.st-teams .st-tcard-tags { gap: .4rem; }
.st-teams .st-tcard-place small { background: var(--tm-soft); color: var(--tm-muted); }
.st-teams .st-tcard .st-teams-key { border: 1px dashed var(--tm-line); background: var(--tm-soft); border-radius: .65rem; }
.st-teams .st-tcard .st-teams-key:hover { border-style: solid; }

/* stat tiles: calm surface, blue icons (no coloured top bar) */
.st-teams .st-tcard .st-teams-stats > div { border: 1px solid var(--tm-line); border-top-width: 1px; border-radius: .7rem; background: var(--tm-soft); }
.st-teams .st-tcard .st-teams-stats dt .ti { color: var(--tm-blue); }
.st-teams .st-tcard .st-teams-stats dd { font-size: 1.3rem; }
.st-teams .st-tcard .st-teams-foot { border-top: 1px solid var(--tm-line); }

/* ---- storage badge ---- */
.st-storage-badge { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.st-storage-badge .ti { font-size: .9rem; }
.st-storage-badge.is-ok { background: rgba(25, 181, 122, .16); color: #0d7a52; }
.st-storage-badge.is-near { background: rgba(245, 158, 11, .18); color: #94590a; }
.st-storage-badge.is-full { background: rgba(220, 53, 69, .15); color: #b02a37; }
.st-storage-badge.is-unlimited { background: rgba(59, 143, 246, .15); color: #1f5fbf; }
[data-bs-theme=dark] .st-storage-badge.is-ok { background: rgba(25, 181, 122, .22); color: #5fe0b0; }
[data-bs-theme=dark] .st-storage-badge.is-near { background: rgba(245, 158, 11, .22); color: #fbbf5a; }
[data-bs-theme=dark] .st-storage-badge.is-full { background: rgba(220, 53, 69, .25); color: #ff8a95; }
[data-bs-theme=dark] .st-storage-badge.is-unlimited { background: rgba(106, 169, 255, .2); color: #9cc6ff; }
.st-storage-line { margin-top: .2rem; color: var(--tm-muted); font-size: .78rem; }

/* ---- table view ---- */
.st-teams .st-teams-table-card { border: 1px solid var(--tm-line); border-radius: 1rem; background: var(--tm-surface); box-shadow: var(--tm-shadow); }
.st-teams .st-users-table thead th { background: var(--tm-soft); color: var(--tm-muted); border-bottom: 1px solid var(--tm-line); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.st-teams .st-users-table tbody td { border-color: var(--tm-line); }
.st-teams .st-users-table tbody tr > td:first-child { box-shadow: inset 5px 0 0 color-mix(in srgb, var(--tm-blue) 38%, transparent); }
.st-teams .st-users-table tbody tr.is-working > td:first-child { box-shadow: inset 5px 0 0 var(--tm-green); }

/* The team you're working in: always a dark green left border, light green while the mouse is over it */
.st-teams .st-teams-card.st-tcard.is-working { --tcard-accent: #0f7a4f; border-left: 5px solid #0f7a4f; }
.st-teams .st-teams-card.st-tcard.is-working:hover { --tcard-accent: #6fdcae; border-left-color: #6fdcae; }
[data-bs-theme=dark] .st-teams .st-teams-card.st-tcard.is-working { --tcard-accent: #15a066; border-left-color: #15a066; }
[data-bs-theme=dark] .st-teams .st-teams-card.st-tcard.is-working:hover { --tcard-accent: #7ff0bf; border-left-color: #7ff0bf; }
.st-teams .st-users-table tbody tr.is-working > td:first-child { box-shadow: inset 5px 0 0 #0f7a4f; }
.st-teams .st-users-table tbody tr.is-working:hover > td:first-child { box-shadow: inset 5px 0 0 #6fdcae; }
[data-bs-theme=dark] .st-teams .st-users-table tbody tr.is-working > td:first-child { box-shadow: inset 5px 0 0 #15a066; }
[data-bs-theme=dark] .st-teams .st-users-table tbody tr.is-working:hover > td:first-child { box-shadow: inset 5px 0 0 #7ff0bf; }
.st-teams .st-teams-card.st-tcard { transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }

/* "used of 10 GB": a badge with larger text */
.st-teams .st-storage-used { display: inline-block; margin-top: .3rem; padding: .2rem .65rem; border-radius: 999px; background: rgba(59, 143, 246, .14); color: #1f5fbf; font-size: .95rem; font-weight: 700; line-height: 1.3; white-space: nowrap; }
[data-bs-theme=dark] .st-teams .st-storage-used { background: rgba(106, 169, 255, .2); color: #9cc6ff; }
.st-teams .st-teams-stats dd .st-storage-used { display: block; width: fit-content; }
.st-teams .st-storage-line { margin-top: .25rem; }
.st-teams .st-storage-used { font-size: .78rem; padding: .15rem .55rem; }
.st-teams .st-storage-used { font-size: .68rem; padding: .12rem .5rem; }
.st-teams .st-storage-used { font-size: .74rem; padding: .14rem .55rem; }
.st-teams .st-storage-used { font-size: .85rem; padding: .16rem .6rem; }
.st-teams .st-storage-used { font-size: 1rem; padding: .18rem .65rem; }
.st-teams .st-storage-used { font-size: .9rem; padding: .16rem .6rem; }
/* Card stat tiles: the Storage tile's badge line takes no more height than the other tiles' small text lines */
.st-teams .st-teams-stats > div { display: flex; flex-direction: column; justify-content: flex-start; }
.st-teams .st-teams-stats dd { display: flex; flex-direction: column; align-items: flex-start; flex: 1 1 auto; }
.st-teams .st-teams-stats dd .st-storage-used { margin: .1rem 0 0; padding: 0 .55rem; line-height: 1.35; font-size: .72rem; }

/* ==================================================================
   Members page: redesigned card body (light + dark). The avatar still hangs over the card's top edge.
   Name block, an email pill, the roles, and a three-part footer strip.
   ================================================================== */
.st-mem-card { padding-bottom: 0; background: var(--theme-secondary-bg, #fff); box-shadow: 0 1px 2px rgba(16, 24, 40, .05); transition: box-shadow .18s ease, border-color .18s ease; }
.st-mem-card:hover { border-color: color-mix(in srgb, var(--theme-primary) 45%, var(--theme-border-color, #dfe3e8)); box-shadow: 0 10px 26px rgba(16, 24, 40, .1); }
[data-bs-theme=dark] .st-mem-card { background: #1c2230; border-color: rgba(255, 255, 255, .09); box-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
[data-bs-theme=dark] .st-mem-card:hover { border-color: rgba(var(--brand-accent-rgb), .5); box-shadow: 0 10px 28px rgba(0, 0, 0, .45); }
.st-mem-card.is-you { box-shadow: 0 0 0 1px var(--st-green-accent), 0 6px 18px rgba(var(--brand-accent-rgb), .15); }
.st-mem-card-id { display: flex; flex-direction: column; align-items: center; gap: .15rem; max-width: 100%; margin-top: .1rem; }
.st-mem-card-name { font-size: 1.1rem; letter-spacing: -.01em; }
.st-mem-card-nick { padding: .05rem .6rem; background: color-mix(in srgb, var(--st-green-1) 10%, transparent); font-size: .78rem; }
.st-mem-card-email { display: flex; align-items: center; justify-content: center; gap: .4rem; max-width: 100%; margin-top: .6rem; padding: .3rem .7rem; background: var(--theme-tertiary-bg, #f4f6f9); font-size: .8rem; }
.st-mem-card-email .ti { flex: none; color: var(--theme-secondary-color, #6c757d); font-size: .95rem; }
.st-mem-card-email span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[data-bs-theme=dark] .st-mem-card-email { background: #232b3b; }
.st-mem-card-tags { margin: .8rem 0 1rem; }
.st-mem-card-foot { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; width: calc(100% + 2rem); margin: auto -1rem 0; padding: 0; background: transparent; border-top: 1px solid var(--theme-border-color, #e3e7ec); }
.st-mem-card-foot > * { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; min-width: 0; padding: .6rem .4rem; font-size: .74rem; text-align: center; overflow: hidden; text-overflow: ellipsis; }
.st-mem-card-foot > * + * { border-left: 1px solid var(--theme-border-color, #e3e7ec); }
.st-mem-card-foot .ti { font-size: 1rem; }
[data-bs-theme=dark] .st-mem-card-foot, [data-bs-theme=dark] .st-mem-card-foot > * + * { border-color: rgba(255, 255, 255, .09); }

/* Member card footer: the joined time is a bold blue pill */
.st-mem-card-foot { padding: .6rem .5rem; gap: .5rem; grid-auto-flow: column; }
.st-mem-card-foot > * { flex-direction: row; gap: .4rem; padding: .4rem .5rem; border-left: 0 !important; font-size: .82rem; font-weight: 800; letter-spacing: .01em; }
.st-mem-card-foot .st-mem-card-joined { background: rgba(59, 143, 246, .14); color: #1f5fbf; }
.st-mem-card-foot .ti { font-size: 1.05rem; }
[data-bs-theme=dark] .st-mem-card-foot .st-mem-card-joined { background: rgba(106, 169, 255, .2); color: #9cc6ff; }
.st-mem-card-foot .st-users-2fa { font-size: .78rem; font-weight: 500; letter-spacing: 0; }
.st-mem-card-foot .st-users-2fa.is-on { font-weight: 600; }
.st-mem-card-foot .st-mem-card-joined, [data-bs-theme=dark] .st-mem-card-foot .st-mem-card-joined { background: transparent; color: inherit; font-weight: 500; font-size: .78rem; letter-spacing: 0; }

/* Member card email: no badge, just darker, bolder text */
.st-mem-card-email, [data-bs-theme=dark] .st-mem-card-email { padding: 0; background: transparent; border: 0; color: var(--theme-emphasis-color, #1f2937); font-size: .88rem; font-weight: 700; }
[data-bs-theme=dark] .st-mem-card-email { color: #f1f5f9; }
.st-mem-card-email .ti { color: var(--theme-emphasis-color, #1f2937); }
[data-bs-theme=dark] .st-mem-card-email .ti { color: #f1f5f9; }

/* Member card footer: sign-in method as dark bold text with a colourful icon tile (amber key = password, green shield = 2FA) */
.st-mem-card-foot .st-users-2fa, .st-mem-card-foot .st-users-2fa.is-on { gap: .45rem; color: var(--theme-emphasis-color, #1f2937); font-size: .84rem; font-weight: 700; }
[data-bs-theme=dark] .st-mem-card-foot .st-users-2fa, [data-bs-theme=dark] .st-mem-card-foot .st-users-2fa.is-on { color: #f1f5f9; }
.st-mem-card-foot .st-users-2fa .ti { display: inline-flex; align-items: center; justify-content: center; width: 1.55rem; height: 1.55rem; background: linear-gradient(145deg, #f7b733, #e0801a); color: #fff; font-size: 1rem; box-shadow: 0 2px 6px rgba(224, 128, 26, .35); }
.st-mem-card-foot .st-users-2fa.is-on .ti { background: linear-gradient(145deg, #34d399, #0f9f6e); box-shadow: 0 2px 6px rgba(15, 159, 110, .35); }
/* Members filters: Roles now comes first under the search, so it needs no divider above it */
.st-mem-search + .st-mem-group .st-mem-legend { border-top: 0; padding-top: .9rem; }

/* ==================================================================
   Schedule add / edit modal: numbered sections and a better place lookup (light + dark). The header is unchanged.
   ================================================================== */
.st-sm-body { padding: 0 1.25rem; }
.st-sm-sec { padding: 1.1rem 0; border-bottom: 1px dashed var(--theme-border-color, #dee2e6); }
.st-sm-sec:last-child { border-bottom: 0; }
.st-sm-sec-title { display: flex; align-items: center; gap: .55rem; margin: 0 0 .8rem; font-size: .95rem; font-weight: 800; }
.st-sm-sec-title span { display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; background: var(--st-green-gradient); color: var(--st-green-accent, #fff); font-size: .8rem; font-weight: 800; }
.st-sm-sec .st-sched-types { margin-bottom: .9rem; }
.st-sm-sec .form-control, .st-sm-sec .form-select { border-color: color-mix(in srgb, var(--st-green-1) 35%, var(--theme-border-color, #ced4da)); }
.st-sm-sec .form-control:focus, .st-sm-sec .form-select:focus { border-color: var(--st-green-1); box-shadow: 0 0 0 3px color-mix(in srgb, var(--st-green-1) 20%, transparent); }

/* where: the venue / address box */
.st-sm-sec .st-place-box { padding: .9rem; border: 1px solid var(--theme-border-color, #e3e7ec); background: var(--theme-tertiary-bg, #f6f8fa); }
[data-bs-theme=dark] .st-sm-sec .st-place-box { background: #232b3b; border-color: rgba(255, 255, 255, .09); }
.st-place-lead { position: absolute; top: 50%; left: .75rem; z-index: 1; transform: translateY(-50%); color: var(--st-green-1); font-size: 1.05rem; pointer-events: none; }
.st-place-input { padding-left: 2.3rem; }
.st-place-list mark { padding: 0; background: color-mix(in srgb, #f5c518 45%, transparent); color: inherit; font-weight: 800; }
.st-place-status { display: flex; align-items: center; gap: .55rem; padding: .7rem .75rem; color: var(--theme-secondary-color, #6c757d); font-size: .84rem; }
.st-place-status .ti { font-size: 1.1rem; }
.st-place-item { align-items: center; border-bottom: 1px solid color-mix(in srgb, var(--theme-border-color, #dee2e6) 55%, transparent); }
.st-place-item:last-of-type { border-bottom: 0; }
[data-bs-theme=dark] .st-place-list { background: #1c2230; border-color: rgba(255, 255, 255, .12); }

/* the card that shows what will be saved */
.st-place-card { display: flex; align-items: center; gap: .75rem; margin-top: .85rem; padding: .6rem .75rem; border: 1px solid color-mix(in srgb, var(--st-green-1) 40%, transparent); background: color-mix(in srgb, var(--st-green-1) 8%, var(--theme-secondary-bg, #fff)); }
.st-place-card-ico { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; background: var(--st-green-gradient); color: var(--st-green-accent, #fff); font-size: 1.15rem; }
.st-place-card-text { display: grid; flex: 1 1 auto; min-width: 0; line-height: 1.25; }
.st-place-card-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.st-place-card-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--theme-secondary-color, #6c757d); font-size: .78rem; }
.st-place-card .btn { flex: none; }
@media (max-width: 575.98px) { .st-place-card { flex-wrap: wrap; } .st-place-card .btn { width: 100%; } }

/* Schedule modal: tighter spacing between rows and sections */
.st-sm-sec { padding: .7rem 0; }
.st-sm-sec:first-of-type { padding-top: .9rem; }
.st-sm-sec-title { margin-bottom: .5rem; }
.st-sm-sec .row { --bs-gutter-y: .6rem; }
.st-sm-sec .st-sched-types { margin-bottom: .6rem; }
.st-sm-sec .form-label { margin-bottom: .2rem; }
.st-sm-sec .form-text { margin-top: .3rem; }
.st-sm-sec .st-place-box { padding: .7rem .8rem; }
.st-sm-sec .st-place-card { margin-top: .6rem; }
.st-sm-sec textarea.form-control { min-height: 4.2rem; }

/* Schedule modal, Details section: the final score sits in the centre */
.st-sm-sec [data-game-only] > .form-label { display: block; text-align: center; }
.st-sm-sec .st-sched-score { justify-content: center; align-items: flex-start; }
/* only the Final score label is centred; Opponent and Home or away stay left */
.st-sm-sec [data-game-only] > .form-label { text-align: left; display: block; }
.st-sm-sec .col-12[data-game-only] > .form-label { text-align: center; }
/* less room above the Notes label */
.st-sm-sec .row > .col-12:has(> #sm-notes) { margin-top: .15rem; }
.st-sm-sec .row > .col-12:has(> #sm-notes) { margin-top: -.3rem; }
/* Opponent is now col-12 too, so centre by content instead: only the label above the score boxes */
.st-sm-sec .col-12[data-game-only] > .form-label { text-align: left; }
.st-sm-sec .col-12[data-game-only]:has(> .st-sched-score) > .form-label { text-align: center; }
/* Practice, Meeting, Other: no score row above Notes, so give the label more room */
.st-sm-sec .row:has(> [data-game-only].d-none) > .col-12:has(> #sm-notes) { margin-top: .9rem; }
/* Schedule add / edit modal: larger title text ("Edit game", "Edit practice", "Add to schedule") */
#sched-modal .modal-title { font-size: 1.6rem; font-weight: 800; line-height: 1.2; }
#sched-modal .modal-title { text-transform: capitalize; }
#sched-modal .modal-title { font-size: 1.3rem; }

/* Members cards: at most 5 per row (a column is never narrower than a fifth of the row) */
.st-mem-grid { grid-template-columns: repeat(auto-fill, minmax(max(15.5rem, calc((100% - 4rem) / 5)), 1fr)); }
/* Password key icon: a lighter amber with a dark glyph */
.st-mem-card-foot .st-users-2fa:not(.is-on) .ti { background: linear-gradient(145deg, #fde9a8, #f9cf72); color: #8a5300; box-shadow: 0 2px 6px rgba(249, 207, 114, .45); }

/* Schedule: game events are dark green (light and dark theme) */
.st-sched { --st-sched-game: #0f5c3a; }
[data-bs-theme=dark] .st-sched { --st-sched-game: #1d8a58; }

/* Selected team: a green check next to its name (cards and table) */
.st-teams .st-teams-name { display: flex; align-items: center; gap: .4rem; }
.st-teams .st-teams-name-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-teams-selected { flex: none; margin-left: .35rem; color: #19b57a; font-size: 1.2em; vertical-align: -.1em; }
.st-teams .st-teams-name .st-teams-selected { margin-left: 0; }
[data-bs-theme=dark] .st-teams-selected { color: #3fe0a2; }

/* Tooltip on the selected-team check: dark green, rounded arrow, appears above */
.tooltip.st-tip { --bs-tooltip-bg: #0f5c3a; --bs-tooltip-color: #fff; --bs-tooltip-padding-x: .8rem; --bs-tooltip-padding-y: .45rem; --bs-tooltip-font-size: .82rem; --bs-tooltip-opacity: 1; font-weight: 600; }
.tooltip.st-tip .tooltip-inner { box-shadow: 0 8px 22px rgba(0, 0, 0, .25); }
[data-bs-theme=dark] .tooltip.st-tip { --bs-tooltip-bg: #1d8a58; }
.st-teams-selected { cursor: default; }
/* Selected-team check: a stronger green, a bit bigger */
.st-teams-selected { color: #0aa85a; font-size: 1.5em; }
[data-bs-theme=dark] .st-teams-selected { color: #22e88a; }

/* Team card header: crest, name, tags and location on a dark green band that bleeds to the card edges */
.st-teams .st-tcard .st-tcard-head {
  margin: -1.25rem -1.35rem 0; padding: 1.15rem 1.35rem 1.1rem; color: #fff;
  background: radial-gradient(420px 200px at 0% 0%, rgba(255, 255, 255, .1), transparent 60%), linear-gradient(150deg, #0f5c3a 0%, #0a4029 100%);
}
[data-bs-theme=dark] .st-teams .st-tcard .st-tcard-head { background: radial-gradient(420px 200px at 0% 0%, rgba(255, 255, 255, .06), transparent 60%), linear-gradient(150deg, #0c4a30 0%, #072d1d 100%); }
.st-tcard-head .st-teams-name { color: #fff; }
.st-tcard-head .st-tcard-place, .st-tcard-head .st-tcard-place span { color: rgba(255, 255, 255, .92); }
.st-tcard-head .st-tcard-place .ti { color: #7ff0bf; }
.st-tcard-head .st-tcard-place small { background: rgba(255, 255, 255, .18); color: #fff; }
.st-tcard-head .st-tcard-place.is-unset, .st-tcard-head .st-tcard-place.is-unset .ti { color: rgba(255, 255, 255, .65); }
/* tags read on the dark band */
.st-tcard-head .st-sport-badge { background: rgba(255, 255, 255, .16); color: #fff; }
.st-tcard-head .st-team-state.is-active { background: rgba(255, 255, 255, .16); box-shadow: none; }
.st-tcard-head .st-storage-badge.is-ok, .st-tcard-head .st-storage-badge.is-near, .st-tcard-head .st-storage-badge.is-full, .st-tcard-head .st-storage-badge.is-unlimited { box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.st-tcard-head .st-storage-badge.is-ok { background: #d7f5e6; color: #0b5d3b; }
.st-tcard-head .st-storage-badge.is-near { background: #fde9bd; color: #7a4a00; }
.st-tcard-head .st-storage-badge.is-full { background: #fcd5d9; color: #9b1c2a; }
.st-tcard-head .st-storage-badge.is-unlimited { background: #d9e8fd; color: #1a4f9f; }
.st-tcard-head .st-teams-selected { color: #7ff0bf; }
.st-tcard-head .btn-light { background: rgba(255, 255, 255, .16); border-color: transparent; color: #fff; }
.st-tcard-head .btn-light:hover { background: rgba(255, 255, 255, .28); color: #fff; }
.st-teams-card.is-inactive .st-tcard-head .st-teams-name { color: rgba(255, 255, 255, .85); }
@media (max-width: 575.98px) { .st-teams .st-tcard .st-tcard-head { margin: -1.1rem -1.1rem 0; padding: 1rem 1.1rem; } }

/* ==================================================================
   Positions page redesign (/admin/positions), light + dark. The .st-hero header is untouched.
   Numbered roster rows with a drag handle and stacked arrows, count badge, and a richer context menu.
   ================================================================== */
.st-positions {
  --ps-surface: var(--theme-secondary-bg, #fff);
  --ps-soft: var(--theme-tertiary-bg, #f4f6f9);
  --ps-line: var(--theme-border-color, #e3e7ec);
  --ps-muted: var(--theme-secondary-color, #6c757d);
  --ps-green: #0f5c3a;
}
[data-bs-theme=dark] .st-positions { --ps-surface: #1c2230; --ps-soft: #232b3b; --ps-line: rgba(255, 255, 255, .09); --ps-muted: #9aa6b8; --ps-green: #1d8a58; }

.st-positions .st-users-card { border: 1px solid var(--ps-line); border-radius: 1rem; background: var(--ps-surface); box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 22px rgba(16, 24, 40, .05); }
.st-positions .st-positions-toolbar { margin: 0; padding: .9rem 1.25rem; border-bottom: 1px solid var(--ps-line); background: var(--ps-soft); }
.st-positions #pos-hint { display: inline-flex; align-items: center; gap: .45rem; }
.st-positions .st-users-segment { padding: .2rem; border-radius: .65rem; background: var(--ps-surface); }
.st-positions .st-users-segment .btn { border: 0; background: transparent; color: var(--ps-muted); }
.st-positions .st-users-segment .btn-check:checked + .btn { background: var(--ps-green); color: #fff; }

/* rows */
.st-positions .st-positions-list { gap: 0; padding: 0; counter-reset: none; }
.st-positions .st-positions-item {
  position: relative; gap: 1rem; padding: .85rem 1.25rem .85rem 1.1rem; border: 0; border-bottom: 1px solid var(--ps-line); border-left: 4px solid color-mix(in srgb, #3b8ff6 38%, transparent);
  border-radius: 0; background: var(--ps-surface); box-shadow: none; transition: background .15s ease, border-color .15s ease;
}
.st-positions .st-positions-item.is-custom { border-left-color: var(--ps-green); }
.st-positions .st-positions-item:last-child { border-bottom: 0; }
.st-positions .st-positions-item:hover { background: var(--ps-soft); box-shadow: none; }
.st-positions .st-positions-item.is-dragging { opacity: .55; background: color-mix(in srgb, var(--ps-green) 10%, var(--ps-surface)); outline: 2px dashed var(--ps-green); outline-offset: -2px; }
.st-positions-rank { flex: none; width: 1.7rem; color: var(--ps-muted); font-size: .85rem; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.st-positions .st-positions-handle { padding: .2rem; color: var(--ps-muted); border-radius: .4rem; }
.st-positions .st-positions-handle:hover { background: var(--ps-line); color: var(--theme-body-color, inherit); }
.st-positions .st-pos-tile { min-width: 3rem; height: 3rem; background: linear-gradient(145deg, var(--ps-green), color-mix(in srgb, var(--ps-green) 70%, #000)); color: #fff; box-shadow: 0 4px 10px rgba(15, 92, 58, .25); }
.st-pos-tile.is-sm { min-width: 2rem; height: 2rem; font-size: .75rem; box-shadow: none; }
.st-positions .st-positions-name strong { font-size: 1.02rem; font-weight: 800; }
.st-positions .st-positions-text p { font-size: .83rem; }
.st-positions .st-positions-tag { background: var(--ps-soft); color: var(--ps-muted); }
.st-positions .st-positions-item:hover .st-positions-tag { background: var(--ps-surface); }
.st-positions .st-positions-count { padding: .22rem .7rem; border-radius: 999px; background: color-mix(in srgb, var(--ps-green) 14%, transparent); color: var(--ps-green); font-weight: 800; }
[data-bs-theme=dark] .st-positions .st-positions-count { color: #6fe3b0; }
.st-positions .st-positions-count.is-zero { background: var(--ps-soft); color: var(--ps-muted); font-weight: 600; }

/* stacked arrows */
.st-positions-arrows { display: inline-flex; flex-direction: column; border: 1px solid var(--ps-line); border-radius: .5rem; overflow: hidden; background: var(--ps-surface); }
.st-positions-arrow { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 1.25rem; padding: 0; border: 0; background: transparent; color: var(--ps-muted); font-size: .95rem; }
.st-positions-arrow + .st-positions-arrow { border-top: 1px solid var(--ps-line); }
.st-positions-arrow:hover:not(:disabled) { background: var(--ps-green); color: #fff; }
.st-positions-arrow:disabled { opacity: .35; cursor: default; }
.st-positions-arrow:focus-visible { outline: 2px solid var(--ps-green); outline-offset: -2px; }
.st-positions .st-positions-actions { gap: .5rem; }

/* context menu (shares the .st-tmenu look with the Teams cards) */
.st-posmenu { min-width: 19rem; }
.st-posmenu .st-tmenu-head { background: linear-gradient(150deg, #0f5c3a, #0a4029); }
[data-bs-theme=dark] .st-posmenu .st-tmenu-head { background: linear-gradient(150deg, #0c4a30, #072d1d); }
.st-posmenu .st-tmenu-head .st-pos-tile { background: rgba(255, 255, 255, .18); color: #fff; }
[data-bs-theme=dark] .st-posmenu { background: #1c2230; border-color: rgba(255, 255, 255, .12); }
.st-posmenu .st-tmenu-item.is-green { --ico: #14925f; }

@media (max-width: 767.98px) {
  .st-positions .st-positions-item { flex-wrap: wrap; gap: .6rem .8rem; padding-left: .8rem; padding-right: .8rem; }
  .st-positions-rank { display: none; }
  .st-positions .st-positions-text { flex-basis: calc(100% - 4.5rem); }
  .st-positions .st-positions-count { margin-left: 3.8rem; }
}

/* New / edit position modal body (the header is unchanged), light + dark */
.st-pm-body { padding: 0 1.25rem 1rem; }
.st-pm-preview { display: flex; align-items: center; gap: .9rem; margin: 1.1rem 0 .3rem; padding: .85rem 1rem; border: 1px solid var(--theme-border-color, #e3e7ec); border-left: 4px solid #0f5c3a; background: var(--theme-tertiary-bg, #f4f6f9); }
.st-pm-preview .st-pos-tile { min-width: 3rem; height: 3rem; background: linear-gradient(145deg, #0f5c3a, #0a4029); color: #fff; }
.st-pm-preview-text { display: grid; min-width: 0; line-height: 1.25; }
.st-pm-preview-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.02rem; font-weight: 800; }
.st-pm-preview-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--theme-secondary-color, #6c757d); font-size: .82rem; }
.st-pm-sec { padding: .9rem 0; border-bottom: 1px dashed var(--theme-border-color, #dee2e6); }
.st-pm-sec:last-child { border-bottom: 0; padding-bottom: 0; }
.st-pm-sec-title { display: flex; align-items: center; gap: .55rem; margin: 0 0 .6rem; font-size: .95rem; font-weight: 800; }
.st-pm-sec-title > span:first-child { display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; background: #0f5c3a; color: #fff; font-size: .8rem; font-weight: 800; }
.st-pm-body .form-control { border-color: color-mix(in srgb, #0f5c3a 35%, var(--theme-border-color, #ced4da)); }
.st-pm-body .form-control:focus { border-color: #0f5c3a; box-shadow: 0 0 0 3px rgba(15, 92, 58, .2); }
.st-pm-body .form-text { margin-top: .35rem; }
.st-pm-switch { display: flex; align-items: flex-start; gap: .8rem; margin: 0; padding: .75rem .9rem; border: 1px solid var(--theme-border-color, #e3e7ec); background: var(--theme-tertiary-bg, #f4f6f9); cursor: pointer; }
.st-pm-switch .form-check-input { cursor: pointer; }
.st-pm-switch .form-check-input:checked { background-color: #0f5c3a; border-color: #0f5c3a; }
.st-pm-switch-text { display: grid; line-height: 1.3; }
.st-pm-switch-text small { color: var(--theme-secondary-color, #6c757d); font-size: .8rem; }
[data-bs-theme=dark] .st-pm-preview, [data-bs-theme=dark] .st-pm-switch { background: #232b3b; border-color: rgba(255, 255, 255, .09); }
[data-bs-theme=dark] .st-pm-preview { border-left-color: #1d8a58; }
[data-bs-theme=dark] .st-pm-body .form-control:focus { border-color: #1d8a58; box-shadow: 0 0 0 3px rgba(29, 138, 88, .3); }
[data-bs-theme=dark] .st-pm-sec-title > span:first-child, [data-bs-theme=dark] .st-pm-preview .st-pos-tile { background: #1d8a58; }

/* Positions: the context menu may extend past the list card instead of being cut off */
.st-positions .st-users-card { overflow: visible; }
.st-positions .st-positions-item:has(.dropdown-menu.show) { z-index: 30; }
.st-positions .st-positions-item { position: relative; }
.st-positions .st-positions-toolbar { border-radius: 1rem 1rem 0 0; }
.st-positions .st-positions-list > .st-positions-item:last-child { border-radius: 0 0 1rem 1rem; }


/* ---- Metrics: Newest members (photo cards) ---- */
.st-newm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; padding: .5rem 1rem 1.1rem; }
@media (max-width: 1199.98px) { .st-newm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .st-newm-grid { grid-template-columns: minmax(0, 1fr); } }
.st-newm-grid > .st-dash-empty, .st-newm-grid > .st-home-empty { grid-column: 1 / -1; }
.st-newm { display: flex; gap: .85rem; align-items: flex-start; padding: .9rem; border: 1px solid color-mix(in srgb, var(--brand-1) 35%, transparent); border-radius: .9rem; background: var(--theme-secondary-bg, #fff); transition: transform .2s ease, box-shadow .2s ease; }
[data-bs-theme=dark] .st-newm { border-color: rgba(245, 245, 245, .22); }
.st-newm:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(var(--brand-3-rgb), .12); }
.st-newm.is-inactive { opacity: .7; }
.st-newm-photo {
  position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; width: 4.5rem; height: 4.5rem;
  border: 2px solid rgba(212, 175, 55, .4); border-radius: .9rem; color: #fff; font-size: 1.3rem; font-weight: 900;
  background: linear-gradient(145deg, hsl(var(--hue, 150) 55% 52%), hsl(calc(var(--hue, 150) + 35) 60% 38%));
}
.st-newm-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-newm-body { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.st-newm-name { overflow: hidden; font-size: 1rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.st-newm-nick { color: var(--st-green-1); font-size: .82rem; font-weight: 700; }
[data-bs-theme=dark] .st-newm-nick { color: var(--st-green-accent); }
.st-newm-chips { display: flex; flex-wrap: wrap; gap: .3rem; margin: .1rem 0; }
.st-newm-chip { display: inline-flex; align-items: center; gap: .25rem; padding: .1rem .5rem; border-radius: 999px; background: var(--theme-tertiary-bg, #f1f3f5); color: var(--theme-body-color, #495057); font-size: .72rem; font-weight: 700; }
.st-newm-chip.is-pos { background: #14532d; color: #fff; }
[data-bs-theme=dark] .st-newm-chip.is-pos { background: #166534; color: #fff; }
.st-newm-chip.is-role { background: #374151; color: #fff; }
[data-bs-theme=dark] .st-newm-chip.is-role { background: #4b5563; color: #fff; }
.st-newm-email, .st-newm-date { display: flex; align-items: center; gap: .3rem; overflow: hidden; color: var(--theme-secondary-color, #6c757d); font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.st-newm-email .ti, .st-newm-date .ti { flex: none; }
.st-newm-photo.is-sm { width: 2.6rem; height: 2.6rem; border-width: 2px; border-radius: .6rem; font-size: .9rem; }
.st-newm-table td, .st-newm-table th { white-space: nowrap; }
.st-dash { padding-bottom: 2rem; }
#dash-members-col .st-dash-card-head .st-mem-view { align-self: center; margin-left: auto; }

/* ---- Member links: anything with data-member-id opens /members/{id} (js/app-api/api.js) ---- */
[data-member-id] { cursor: pointer; }
.st-member-link { color: inherit; text-decoration: none; }
.st-member-link:hover { color: var(--brand-1); text-decoration: underline; }

/* ---- Member profile (/members/{id}) ---- */
.st-prof { max-width: 66rem; margin: 0 auto; padding-bottom: 2rem; --hue: 210; }
.st-prof-hero { position: relative; overflow: hidden; isolation: isolate; margin-bottom: 1rem; padding: 1rem 1.5rem 1.6rem; border-radius: 1rem; color: #fff; background: linear-gradient(100deg, var(--brand-1) 0%, var(--brand-1) 55%, color-mix(in srgb, var(--brand-1) 70%, #7db4ea) 100%); }
.st-prof-pitch { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; color: rgba(255, 255, 255, .13); }
.st-prof-back { display: inline-flex; align-items: center; gap: .35rem; margin-bottom: 1.1rem; color: rgba(255, 255, 255, .85); font-weight: 600; text-decoration: none; }
.st-prof-back:hover { color: #fff; }
.st-prof-hero-body { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; }
.st-prof-avatar { position: relative; display: inline-flex; flex: none; align-items: center; justify-content: center; width: 9rem; height: 9rem; overflow: hidden; border: 4px solid rgba(255, 255, 255, .9); border-radius: .75rem; background: hsl(var(--hue) 55% 88%); color: hsl(var(--hue) 55% 30%); font-size: 3rem; font-weight: 800; box-shadow: 0 12px 28px rgba(0, 0, 0, .25); }
.st-prof-avatar > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-prof-id { flex: 1 1 16rem; min-width: 0; }
.st-prof-name { margin: 0; color: #fff; font-size: 2rem; font-weight: 800; overflow-wrap: anywhere; }
.st-prof-nick { margin: .1rem 0 .6rem; color: var(--brand-accent, #7db4ea); font-size: 1.1rem; font-weight: 700; }
.st-prof-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.st-prof-nick + .st-prof-chips { margin-top: 0; }
.st-prof-you, .st-prof-off { display: inline-flex; align-items: center; padding: .1rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.st-prof-you { background: rgba(255, 255, 255, .22); color: #fff; }
.st-prof-off { background: #e9ecef; color: #495057; }
.st-prof-ok { color: var(--st-green-1); font-weight: 700; }
[data-bs-theme=dark] .st-prof-ok { color: var(--st-green-accent); }
/* Wordmark styled like the landing page title ("One team. / One goal.", landing-sports.css .sl-title): the theme font, weight 900,
   all caps, tight letter-spacing; line one solid white, line two outlined with a gradient underline. */
.st-prof-mark { flex: 0 1 auto; margin-left: auto; display: grid; max-width: 56%; --mark-size: 5rem; font-size: var(--mark-size); font-style: normal; font-weight: 900; line-height: .9; letter-spacing: -.045em; text-transform: uppercase; text-align: right; white-space: nowrap; pointer-events: none; user-select: none; }
.st-prof-mark > span { display: block; max-width: 100%; overflow: hidden; text-overflow: clip; }
.st-prof-mark-2 { position: relative; justify-self: end; width: fit-content; color: transparent; -webkit-text-stroke: 2px #fff; overflow: visible !important; }
.st-prof-mark-2::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.18em; height: .09em; background: linear-gradient(270deg, var(--brand-accent, #7db4ea), transparent); }
@media (max-width: 991.98px) {
    .st-prof-mark { margin-left: 0; max-width: 100%; margin-top: .2rem; text-align: left; font-size: calc(var(--mark-size) * .7); }
    .st-prof-mark-2 { justify-self: start; }
    .st-prof-mark-2::after { background: linear-gradient(90deg, var(--brand-accent, #7db4ea), transparent); }
}

.st-prof-stats { display: grid; gap: 1rem; margin-bottom: 1rem; }
.st-prof-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.st-prof-cards > div > .card { height: 100%; }
@media (max-width: 991.98px) { .st-prof-cards { grid-template-columns: minmax(0, 1fr); } }
.st-prof-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.st-prof-pair > :only-child { grid-column: 1 / -1; }
.st-prof-tile { display: flex; align-items: center; gap: .85rem; min-width: 0; padding: .95rem 1.05rem; border: 1px solid color-mix(in srgb, var(--brand-1) 35%, transparent); border-radius: .9rem; background: var(--theme-secondary-bg, #fff); }
[data-bs-theme=dark] .st-prof-tile, [data-bs-theme=dark] .st-prof-row { border-color: rgba(245, 245, 245, .22); }
.st-prof-tile-icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: .7rem; background: color-mix(in srgb, var(--brand-1) 14%, transparent); color: var(--brand-1); font-size: 1.35rem; }
[data-bs-theme=dark] .st-prof-tile-icon { color: var(--brand-accent, #7db4ea); }
.st-prof-tile-text { display: flex; flex-direction: column; min-width: 0; }
.st-prof-tile-text small { color: var(--theme-secondary-color, #6c757d); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.st-prof-tile-text strong { overflow: hidden; font-size: 1.15rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.st-prof-tile-text em { overflow: hidden; color: var(--theme-secondary-color, #6c757d); font-size: .78rem; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.st-prof-list { display: grid; gap: .6rem; margin: 0; padding: .25rem 1.25rem 1.25rem; }
.st-prof-foot { display: flex; justify-content: flex-end; margin-top: auto !important; padding: 0 1.25rem 1.25rem; }
.st-prof-backbtn { display: inline-flex; align-items: center; gap: .45rem; height: 1.6rem; padding: 0 .95rem 0 .55rem; line-height: 1; border-radius: 999px; background: var(--brand-1); color: #fff; font-size: 1rem; font-weight: 700; text-decoration: none; box-shadow: 0 6px 16px rgba(var(--brand-3-rgb), .25); transition: transform .2s ease, box-shadow .2s ease; }
.st-prof-backbtn .ti { font-size: 1.3rem; line-height: 1; transition: transform .2s ease; }
.st-prof-backbtn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(var(--brand-3-rgb), .35); }
.st-prof-backbtn:hover .ti { transform: translateX(-4px); }
.st-prof-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; margin: 0; padding: .7rem .95rem; border: 1px solid color-mix(in srgb, var(--brand-1) 25%, transparent); border-radius: .75rem; }
.st-prof-row dt { display: flex; align-items: center; gap: .45rem; color: var(--theme-secondary-color, #6c757d); font-size: .84rem; font-weight: 700; }
.st-prof-row dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
@media (max-width: 575.98px) {
    .st-prof-hero-body { flex-direction: column; align-items: flex-start; }
    .st-prof-avatar { width: 7rem; height: 7rem; font-size: 2.4rem; }
    .st-prof-name { font-size: 1.6rem; }
    .st-prof-row dd { text-align: left; }
}

/* ---- Video cards: thumbnail on the left; name with the uploader under it on the right; views / date / size across the full second row ---- */
.st-vlib .st-videos-grid:not(.is-list) .st-video-card { display: grid; grid-template-columns: minmax(0, 55%) minmax(0, 1fr); grid-template-areas: "thumb info" "stats stats"; align-items: stretch; }
.st-vlib .st-videos-grid:not(.is-list) .st-video-thumb-link { grid-area: thumb; border-bottom: 0; }
.st-vlib .st-videos-grid:not(.is-list) .st-video-info { grid-area: info; align-self: start; padding: .75rem .9rem; }
.st-vlib .st-videos-grid:not(.is-list) .st-video-avatar { display: none; }
.st-vlib .st-videos-grid:not(.is-list) .st-video-meta { padding-top: .35rem; }
.st-videos-grid .st-video-stats { grid-area: stats; margin: 0; border-radius: 0; border-top: 1px solid var(--theme-border-color, #dfe3e8); }
.st-videos-grid.is-list .st-video-card { flex-wrap: wrap; }
.st-videos-grid.is-list .st-video-stats { flex: 1 1 100%; margin-top: .25rem; border-radius: .6rem; border-top: 0; }

/* All videos: exactly 4 cards per row from 992px wide up. The layout stays the same as the wide cards:
   thumbnail in the first column; the name, with the uploader under it, in the second; views / date / size across the full second row. */
@media (min-width: 992px) {
    /* exactly four cards per row, each a quarter of the row (like col-3) */
    .st-videos .st-videos-grid:not(.is-list) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .st-vlib .st-videos-grid:not(.is-list) .st-video-card { grid-template-columns: minmax(0, 50%) minmax(0, 1fr); }
    .st-vlib .st-videos-grid:not(.is-list) .st-video-info { padding: .6rem .6rem .6rem .7rem; gap: .4rem; }
}

/* Video card names stay on one line; a long name ends in an ellipsis (the full title shows on hover). */
.st-videos .st-video-card .st-video-title { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; -webkit-line-clamp: unset; }
.st-videos .st-video-card .st-video-title a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-video-info > .min-w-0 { min-width: 0; }

/* List view: the name column fills the space beside the thumbnail (basis 0), so a long one-line name is cut off with "…" instead of
   pushing the whole column onto a second line under the thumbnail. The stats strip still takes the full row below. */
.st-videos-grid.is-list .st-video-card { flex-wrap: wrap; }
.st-videos-grid.is-list .st-video-info { flex: 1 1 0; min-width: 0; }

/* Tighter strip under the thumbnail (views / date / size): less space above and below its text. */
.st-videos-grid .st-video-stats { padding: .35rem .75rem; line-height: 1.3; }

/* An open ⋮ menu must not be clipped by its card (the card hides overflow and lifts on hover): while it is open the card stops clipping,
   stays put and rises above its neighbours. */
.st-vlib .st-videos-grid .st-video-card:has(.st-video-menu .show) { overflow: visible; transform: none; position: relative; z-index: 30; }
.st-video-menu .dropdown-menu.show { z-index: 1060; }

/* The video card ⋮ menu is half the width of the member menu (about 13rem); hints wrap instead of being cut off. */
.st-video-menu .dropdown-menu.st-vmenu { min-width: 0; width: 15rem; max-width: 80vw; }
.st-vmenu .st-tmenu-item { gap: .5rem; padding: .4rem .4rem; }
.st-vmenu .st-tmenu-ico { width: 1.7rem; height: 1.7rem; }
.st-vmenu .st-tmenu-text small { white-space: normal; overflow: visible; text-overflow: clip; }
.st-vmenu .st-tmenu-head { padding: .55rem .6rem; gap: .4rem; flex-wrap: wrap; }

/* Profile header: the height never changes with the name. The name and nickname stay on one line (cut with "…" if too long), and the
   wordmark (nickname, else first name) is a background layer that is sized by member-profile.js to stretch across the whole header. */
.st-prof-hero-body { position: relative; z-index: 1; }
.st-prof-id .st-prof-name, .st-prof-id .st-prof-nick { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; overflow-wrap: normal; }
.st-prof-hero > .st-prof-mark { position: absolute; z-index: 0; inset: 0 1.5rem 0 9rem; margin: 0; max-width: none; display: flex; align-items: center; justify-content: flex-end; text-align: right; }
.st-prof-hero > .st-prof-mark > span { display: block; max-width: none; overflow: visible; }
.st-prof-hero > .st-prof-mark .st-prof-mark-2 { -webkit-text-stroke: 2px rgba(255, 255, 255, .42); }
.st-prof-hero > .st-prof-mark .st-prof-mark-2::after { display: none; }
@media (max-width: 991.98px) {
    .st-prof-hero > .st-prof-mark { font-size: var(--mark-size); justify-content: flex-end; text-align: right; margin: 0; }
}

/* Member page: the member's photo fills the page behind the cards at 50% transparency (member-profile.js adds .st-prof-bg). It is positioned
   against the page area (.content-page), and the page's own content sits above it. */
.st-prof-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; opacity: .3; }
/* Smart stretch: a blurred, enlarged copy fills every corner whatever the photo's shape; the sharp copy is scaled to cover the whole page
   and kept on the upper part of the photo, where faces are, so a tall portrait is not cropped to the chin. */
.st-prof-bg::before, .st-prof-bg::after { content: ""; position: absolute; inset: 0; background: var(--prof-photo) no-repeat; background-size: cover; }
.st-prof-bg::before { inset: -3rem; filter: blur(28px) saturate(1.1); background-position: center; }
.st-prof-bg::after { background-position: 50% 22%; }
.st-prof > *:not(.st-prof-bg) { position: relative; z-index: 1; }

/* No photo: the member's initials, in the colour used for their avatar, fill the page background instead (same 50% transparency). */
.st-prof-bg.is-initials { display: flex; align-items: center; justify-content: center; }
.st-prof-bg.is-initials::before, .st-prof-bg.is-initials::after { display: none; }
.st-prof-bg.is-initials > span { color: inherit; font-size: min(92vw, 110vh); opacity: .3; font-weight: 900; line-height: 1; letter-spacing: -.04em; user-select: none; }

/* The cookie notice sits above dialogs; on a phone it would cover this one's buttons. */
body:has(.st-session) .st-cookies { visibility: hidden; }

/* ==================================================================
   Sign out and Lock screen dialog (js/app-api/api.js sessionDialog): a small card in the top right corner.
   .is-lock uses the brand colours, .is-signout a deep red.
   ================================================================== */
.st-session { --ss-head: linear-gradient(135deg, var(--brand-1), var(--brand-3)); --ss-accent: var(--brand-accent); --ss-ok: linear-gradient(160deg, var(--brand-2), var(--brand-3)); }
.st-session.is-signout { --ss-head: linear-gradient(135deg, #8f1d18, #3d0e0d); --ss-accent: #ff9a8f; --ss-ok: linear-gradient(160deg, #e5534b, #b8321f); }
.st-session .modal-dialog { width: min(18rem, calc(100% - 1.5rem)); max-width: none; margin: .75rem .75rem .75rem auto; }
.st-session .modal-content { overflow: hidden; border: 0; border-radius: .8rem; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
body:has(.st-session) .modal-backdrop.show { opacity: .25; }
.st-session-head { display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; border-bottom: 3px solid var(--ss-accent); background: var(--ss-head); color: #fff; }
.st-session .st-session-avatar { display: flex; flex: none; align-items: center; justify-content: center; overflow: hidden; width: 2.2rem; height: 2.2rem; padding: 0; border: 2px solid var(--ss-accent); border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: .8rem; font-weight: 800; }
.st-session .st-session-avatar img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.st-session-who { min-width: 0; line-height: 1.25; }
.st-session-who strong { display: block; overflow: hidden; font-size: .88rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.st-session-who small { display: block; overflow: hidden; color: rgba(255, 255, 255, .75); font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; }
.st-session-close { flex: none; margin-left: auto; font-size: .7rem; }
.st-session-body { padding: .75rem .8rem .8rem; }
.st-session-title { margin: 0 0 .15rem; font-size: 1rem; font-weight: 800; }
.st-session-text { margin: 0 0 .7rem; color: var(--theme-secondary-color, #6c757d); font-size: .82rem; }
.st-session-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.st-session-actions .btn { padding: .4rem .6rem; border-radius: .5rem; font-size: .84rem; font-weight: 800; }
.st-session-cancel { border: 1px solid var(--theme-border-color, #dee2e6); background: transparent; color: var(--theme-emphasis-color, #212529); }
.st-session-cancel:hover { background: var(--theme-tertiary-bg, #f3f5f4); }
.st-session-ok { border: 0; background: var(--ss-ok); color: #fff; }
.st-session-ok:hover, .st-session-ok:focus-visible { color: #fff; filter: brightness(1.1); }
.st-session-ok:focus-visible { outline: 3px solid var(--ss-accent); outline-offset: 2px; }
.st-session-alt { display: block; width: 100%; margin-top: .55rem; padding: .15rem; border: 0; background: transparent; color: var(--theme-secondary-color, #6c757d); font-size: .78rem; font-weight: 600; }
.st-session-alt:hover, .st-session-alt:focus-visible { color: var(--theme-emphasis-color, #212529); text-decoration: underline; }

/* Side menu team picker (platform super admins), under the user card (_Sidenav.cshtml). Hidden when the menu is icons only. */
.st-side-team { margin: .75rem .75rem 0; }
.st-side-team-label { display: block; margin-bottom: .25rem; color: var(--theme-sidenav-item-color); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; opacity: .8; }
/* White smoke in light mode, dark grey in dark mode, whatever colour the side menu is. */
.st-side-team .form-select { border-color: #d5d8dc; background-color: whitesmoke; color: #212529; font-weight: 600; }
.st-side-team .form-select option { background: whitesmoke; color: #212529; }
[data-bs-theme=dark] .st-side-team .form-select { border-color: #55595f; background-color: #343a40; color: #f5f5f5; }
[data-bs-theme=dark] .st-side-team .form-select option { background: #343a40; color: #f5f5f5; }
html[data-sidenav-size=condensed] .st-side-team,
html[data-sidenav-size=on-hover] .sidenav-menu:not(:hover) .st-side-team { display: none; }

/* ==================================================================
   Content review (/admin/review), light + dark: Views/Admin/Review.cshtml + js/app-api/admin-review.js.
   Header stats filter the queue; the queue sits beside the selected item. Previews stay blurred until asked for.
   ================================================================== */
.st-review {
  --rv-surface: var(--theme-secondary-bg, #fff);
  --rv-soft: var(--theme-tertiary-bg, #f4f6f9);
  --rv-line: var(--theme-border-color, #e3e7ec);
  --rv-muted: var(--theme-secondary-color, #6c757d);
  --rv-green: #0f5c3a;
  --rv-flagged: #c2410c;
  --rv-unchecked: #64748b;
  --rv-link: #2563eb;
  --rv-reject: #b42318;
}
[data-bs-theme=dark] .st-review { --rv-surface: #1c2230; --rv-soft: #232b3b; --rv-line: rgba(255, 255, 255, .09); --rv-muted: #9aa6b8; --rv-green: #1d8a58; --rv-flagged: #fb923c; --rv-unchecked: #a7b4c6; --rv-link: #7db4ea; --rv-reject: #f97066; }
.st-review .is-flagged { --rv-tone: var(--rv-flagged); }
.st-review .is-unchecked { --rv-tone: var(--rv-unchecked); }
.st-review .is-link { --rv-tone: var(--rv-link); }
.st-review .card { margin: 0; border: 1px solid var(--rv-line); background: var(--rv-surface); box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 22px rgba(16, 24, 40, .05); }

/* a shorter header than the other admin pages, so the item being reviewed sits higher */
.st-review .st-hero-body { padding: .9rem 1.5rem .75rem; }
.st-review .st-hero h2 { margin: 0 0 .1rem; font-size: 1.35rem; }
.st-review .st-hero-lede { font-size: .85rem; }
.st-review .st-hero .st-dash-refresh { width: 2.3rem; height: 2.3rem; padding: 0; }
.st-review .st-hero-stat { flex-flow: row wrap; align-items: baseline; align-content: center; gap: 0 .5rem; padding: .5rem 1.5rem; }
.st-review .st-hero-stat-label { flex-basis: 100%; }
.st-review .st-hero-stat strong { font-size: 1.2rem; }

.st-review-setup { display: flex; gap: .85rem; margin-bottom: 1.25rem; padding: .85rem 1.1rem; border: 1px solid color-mix(in srgb, #d97706 40%, transparent); border-left: 4px solid #d97706; background: color-mix(in srgb, #d97706 12%, var(--rv-surface)); }
.st-review-setup > .ti { flex: none; color: #d97706; font-size: 1.5rem; }
.st-review-setup strong, .st-review-setup span { display: block; }

.st-review .st-review-state { align-items: center; padding: 3.5rem 1.5rem; text-align: center; }

.st-review-desk { display: grid; grid-template-columns: minmax(17rem, 23rem) minmax(0, 1fr); align-items: start; gap: 1.25rem; margin-bottom: 1.25rem; }

/* queue */
.st-review .st-review-queue { overflow: hidden; }
.st-review-queue-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--rv-line); background: var(--rv-soft); }
.st-review-list { max-height: max(24rem, calc(100vh - 12rem)); margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.st-review-list li + li { border-top: 1px solid var(--rv-line); }
.st-review-row { display: flex; align-items: flex-start; gap: .8rem; width: 100%; padding: .85rem 1.1rem .85rem .9rem; border: 0; border-left: 4px solid transparent; background: transparent; color: inherit; text-align: left; }
.st-review-row:hover { background: var(--rv-soft); }
.st-review-row.is-current { border-left-color: var(--rv-green); background: color-mix(in srgb, var(--rv-green) 11%, var(--rv-surface)); }
.st-review-row:focus-visible { outline: 2px solid var(--rv-green); outline-offset: -2px; }
.st-review-row-icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; background: color-mix(in srgb, var(--rv-tone) 14%, transparent); color: var(--rv-tone); font-size: 1.3rem; }
.st-review-row-text { display: grid; flex: 1; justify-items: start; gap: .15rem; min-width: 0; line-height: 1.3; }
.st-review-row-text :is(strong, small) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-review-row-text small { color: var(--rv-muted); font-size: .8rem; }
.st-review-tag { padding: .05rem .45rem; background: color-mix(in srgb, var(--rv-tone) 14%, transparent); color: var(--rv-tone); font-size: .7rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.st-review-row-age { flex: none; color: var(--rv-muted); font-size: .75rem; white-space: nowrap; }
.st-review-none { margin: 0; padding: 2rem 1rem; color: var(--rv-muted); text-align: center; }

/* selected item */
.st-review .st-review-detail { overflow: clip; scroll-margin-top: 5rem; }
.st-review-stage { position: relative; height: clamp(14rem, 36vh, 30rem); overflow: hidden; background: #0b0f0d; }
.st-review-stage :is(img, video, iframe) { display: block; width: 100%; height: 100%; border: 0; object-fit: contain; }
.st-review-stage.is-blurred :is(img, video, iframe) { filter: blur(34px); transform: scale(1.15); pointer-events: none; }
.st-review-stage.is-empty { display: flex; align-items: center; justify-content: center; height: 10rem; padding: 1rem; color: rgba(255, 255, 255, .7); text-align: center; }
.st-review-veil { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; padding: 1rem; background: rgba(5, 12, 9, .55); color: #fff; text-align: center; }
.st-review-veil > .ti { font-size: 2.4rem; }
.st-review-veil strong { font-size: 1.1rem; font-weight: 800; }
.st-review-veil span { color: rgba(255, 255, 255, .75); font-size: .85rem; }
.st-review-veil .btn { margin-top: .6rem; font-weight: 700; }
.st-review-stage.is-blurred .st-review-veil { display: flex; }
.st-review-stage .st-review-hide { position: absolute; top: .75rem; right: .75rem; border: 0; background: rgba(0, 0, 0, .65); color: #fff; font-size: .8rem; }
.st-review-stage .st-review-hide:hover { background: #000; color: #fff; }
.st-review-stage.is-blurred .st-review-hide { display: none; }

.st-review-head { padding: 1.1rem 1.5rem 1.25rem; }
.st-review-body { padding: 0 1.5rem 1.25rem; }
.st-review-type { display: flex; align-items: center; gap: .4rem; color: var(--rv-muted); font-size: .75rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.st-review-head h4 { margin: .35rem 0; font-weight: 800; overflow-wrap: anywhere; }
.st-review-desc { margin: 0; color: var(--rv-muted); white-space: pre-line; overflow-wrap: anywhere; }
.st-review-why { display: flex; gap: .85rem; margin-top: 1rem; padding: .85rem 1rem; border-left: 4px solid var(--rv-tone); background: color-mix(in srgb, var(--rv-tone) 10%, transparent); }
.st-review-why > .ti { flex: none; color: var(--rv-tone); font-size: 1.5rem; }
.st-review-why > div { flex: 1; min-width: 0; }
.st-review-why strong, .st-review-why div > span { display: block; }
.st-review-why .st-review-meter { height: 6px; margin-top: .55rem; background: color-mix(in srgb, var(--rv-tone) 22%, transparent); }
.st-review-meter span { display: block; height: 100%; background: var(--rv-tone); }
.st-review-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1px; margin: 1rem 0 0; border: 1px solid var(--rv-line); background: var(--rv-line); }
.st-review-facts > div { min-width: 0; padding: .65rem .85rem; background: var(--rv-surface); }
.st-review-facts dt { display: flex; align-items: center; gap: .35rem; color: var(--rv-muted); font-size: .75rem; font-weight: 600; }
.st-review-facts dd { margin: .15rem 0 0; font-weight: 700; overflow-wrap: anywhere; }
.st-review-link { display: flex; gap: .5rem; margin-top: 1rem; padding: .65rem .85rem; border: 1px dashed var(--rv-line); overflow-wrap: anywhere; word-break: break-all; }
.st-review-link .ti { flex: none; margin-top: .15rem; }

.st-review-actions { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .75rem; padding: 1rem 1.5rem; border-top: 1px solid var(--rv-line); background: var(--rv-soft); }
.st-review-actions .btn { padding: .65rem 1.4rem; font-weight: 700; }
.st-review .st-review-approve { border: 1px solid var(--rv-green); background: var(--rv-green); color: #fff; }
.st-review .st-review-approve:is(:hover, :focus-visible) { color: #fff; filter: brightness(1.12); }
.st-review .st-review-reject { border: 1px solid var(--rv-reject); background: transparent; color: var(--rv-reject); }
.st-review .st-review-reject:is(:hover, :focus-visible) { background: var(--rv-reject); color: #fff; }

@media (max-width: 991.98px) {
  .st-review-desk { grid-template-columns: minmax(0, 1fr); }
  .st-review-list { max-height: 18rem; }
}
@media (max-width: 575.98px) {
  .st-review-head { padding: 1rem; }
  .st-review-body { padding: 0 1rem 1rem; }
  .st-review .st-hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-review .st-hero-body { flex-wrap: nowrap; gap: .75rem; padding: .85rem 1rem .7rem; }
  .st-review .st-hero .st-dash-refresh { flex: none; }
  .st-review .st-hero-stat small { display: none; }
  .st-review .st-hero-stat { padding: .5rem 1rem; }
  .st-review-actions { padding: .75rem 1rem; }
  .st-review-actions .btn { flex: 1 1 100%; }
  .st-review-actions .st-review-approve { order: -1; }
}

/* ---- User menu (Views/Shared/Partials/_UserMenuItems.cshtml; the landing page's menu uses the same classes).
   A brand header card (avatar, name, email, team chip), grouped items with tinted icon tiles and a hint line,
   and Lock / Log out side by side at the bottom. Square corners come from square.css; the avatar stays round. ---- */
.dropdown-menu.st-umenu { width: 18.5rem; max-width: calc(100vw - 1.5rem); padding: 0 0 .5rem; overflow: hidden; border: 1px solid var(--theme-border-color, rgba(0, 0, 0, .08)); box-shadow: 0 18px 44px rgba(15, 23, 42, .18); }
.st-umenu-head { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .35rem .8rem; padding: 1rem 1rem .9rem; color: #fff;
  background: radial-gradient(120% 140% at 100% 0, rgba(255, 255, 255, .16), transparent 55%), linear-gradient(135deg, var(--brand-1, #1f6feb), var(--brand-2, #0b3d91)); }
.st-umenu-head .st-umenu-avatar { width: 3rem; height: 3rem; font-size: 1.05rem; background: rgba(255, 255, 255, .2); color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); border-radius: 50% !important; }
.st-umenu-head .st-umenu-avatar.has-photo img { border-radius: 50% !important; }
.st-umenu-who { display: grid; min-width: 0; line-height: 1.25; }
.st-umenu-name { overflow: hidden; font-size: 1rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.st-umenu-email { overflow: hidden; color: rgba(255, 255, 255, .75); font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.st-umenu-head .st-umenu-team { grid-column: 1 / -1; justify-self: start; display: inline-flex; gap: .35rem; max-width: 100%; margin-top: .35rem; padding: .25rem .6rem;
  color: #fff; background: rgba(0, 0, 0, .18); font-size: .78rem; font-weight: 600; }
.st-umenu-head .st-umenu-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-umenu-head .st-umenu-team:has(span:empty) { display: none; }
.st-umenu-label { padding: .75rem 1rem .3rem; color: var(--theme-secondary-color, #8a94a6); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.dropdown-item.st-umenu-item { display: flex; align-items: center; gap: .75rem; padding: .45rem 1rem; white-space: normal; }
.st-umenu-ico { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem; font-size: 1.15rem; color: var(--ic); background: color-mix(in srgb, var(--ic) 14%, transparent); transition: transform .15s ease; }
.st-umenu-item:hover .st-umenu-ico, .st-umenu-item:focus-visible .st-umenu-ico { transform: scale(1.08); }
.st-umenu-ico.is-blue { --ic: #3b8ff6; } .st-umenu-ico.is-purple { --ic: #9b6cf0; } .st-umenu-ico.is-orange { --ic: #f2813a; }
.st-umenu-ico.is-teal { --ic: #17ad9c; } .st-umenu-ico.is-green { --ic: #2fb36d; } .st-umenu-ico.is-indigo { --ic: #6b7cf6; }
.st-umenu-txt { display: grid; min-width: 0; line-height: 1.2; }
.st-umenu-txt b { font-size: .9rem; font-weight: 600; }
.st-umenu-txt small { color: var(--theme-secondary-color, #8a94a6); font-size: .74rem; }
.st-umenu-foot { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .5rem; padding: .65rem 1rem 0; border-top: 1px solid var(--theme-border-color, rgba(0, 0, 0, .08)); }
.st-umenu-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .5rem .6rem; color: var(--theme-body-color); background: var(--theme-tertiary-bg, #f2f4f7); font-size: .85rem; font-weight: 600; text-decoration: none; transition: background .15s ease, color .15s ease; }
.st-umenu-btn .ti { font-size: 1.05rem; }
.st-umenu-btn:hover, .st-umenu-btn:focus-visible { color: #b37d00; background: rgba(233, 168, 18, .15); }
.st-umenu-btn.is-danger { color: #e03e55; background: rgba(239, 80, 104, .1); }
.st-umenu-btn.is-danger:hover, .st-umenu-btn.is-danger:focus-visible { color: #fff; background: #ef5068; }
[data-bs-theme=dark] .dropdown-menu.st-umenu { box-shadow: 0 18px 44px rgba(0, 0, 0, .5); }
[data-bs-theme=dark] .st-umenu-btn:hover { color: #ffc84a; }
.st-umenu-foot.is-single { grid-template-columns: 1fr; }
/* The landing page keeps rounded corners: soften the menu there to match its cards. */
.sl .dropdown-menu.st-umenu { border-radius: 1rem; }
.sl .st-umenu-ico, .sl .st-umenu-btn, .sl .st-umenu-head .st-umenu-team { border-radius: .6rem; }
