:root {
  --mc-navy: #050b18;
  --mc-navy-raised: #091426;
  --mc-surface: #0e1a2f;
  --mc-surface-high: #142442;
  --mc-blue: #3e7bff;
  --mc-blue-strong: #185de8;
  --mc-blue-soft: #8db0ff;
  --mc-white: #f7f9ff;
  --mc-muted: #aebbd0;
  --mc-line: rgba(154, 181, 229, 0.18);
  --mc-glass: rgba(14, 26, 47, 0.7);
  --mc-glass-strong: rgba(9, 20, 38, 0.86);
  --mc-glass-hover: rgba(20, 36, 66, 0.78);
  --mc-glass-line: rgba(157, 184, 232, 0.22);
  --mc-glass-shadow: 0 22px 54px rgba(0, 5, 16, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

html {
  background: var(--mc-navy);
}

body:not(.home-blue) {
  background-color: var(--mc-navy) !important;
  color: var(--mc-white);
}

body:not(.home-blue) header,
body:not(.home-blue) .ops-header,
body:not(.home-blue) .dashboard-header {
  border-color: var(--mc-glass-line) !important;
  background-color: rgba(5, 11, 24, 0.82) !important;
  -webkit-backdrop-filter: blur(20px) saturate(125%);
  backdrop-filter: blur(20px) saturate(125%);
}

body:not(.home-blue) .bg-primary,
body:not(.home-blue) .bg-primary-fixed,
body:not(.home-blue) .shimmer-btn,
body:not(.home-blue) button[type="submit"] {
  border-color: var(--mc-blue) !important;
  background-color: var(--mc-blue) !important;
  color: #fff !important;
}

body:not(.home-blue) .text-primary,
body:not(.home-blue) .text-primary-fixed,
body:not(.home-blue) .text-glow,
body:not(.home-blue) .ops-brand,
body:not(.home-blue) .dashboard-brand {
  color: var(--mc-blue-soft) !important;
}

body:not(.home-blue) .border-primary,
body:not(.home-blue) .border-primary-fixed {
  border-color: var(--mc-blue) !important;
}

body:not(.home-blue) input:focus,
body:not(.home-blue) textarea:focus,
body:not(.home-blue) select:focus {
  border-color: var(--mc-blue) !important;
  box-shadow: 0 0 0 3px rgba(62, 123, 255, 0.18) !important;
}

body:not(.home-blue) .volt-glow,
body:not(.home-blue) .text-glow {
  text-shadow: 0 0 22px rgba(62, 123, 255, 0.32) !important;
}

body:not(.home-blue) .bento-card,
body:not(.home-blue) .ops-panel,
body:not(.home-blue) .dashboard-card,
body:not(.home-blue) .rem-panel,
body:not(.home-blue) .program-builder-panel,
body:not(.home-blue) .program-builder-side,
body:not(.home-blue) .program-section-card,
body:not(.home-blue) .program-upload-panel,
body:not(.home-blue) .result-card,
body:not(.home-blue) .live-program,
body:not(.home-blue) .live-exercise,
body:not(.home-blue) .admin-access-card,
body:not(.home-blue) .auth-stage {
  border-color: var(--mc-glass-line) !important;
  background: var(--mc-glass) !important;
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
  box-shadow: var(--mc-glass-shadow) !important;
  border-radius: 8px !important;
}

@media (hover: hover) and (pointer: fine) {
  body:not(.home-blue) .bento-card:hover,
  body:not(.home-blue) .ops-panel:hover,
  body:not(.home-blue) .rem-panel:hover,
  body:not(.home-blue) .result-card:hover,
  body:not(.home-blue) .live-program:hover {
    border-color: rgba(141, 176, 255, 0.38) !important;
    background: var(--mc-glass-hover) !important;
  }
}

.role-nav-group {
  position: relative;
  color: var(--mc-muted);
}

.role-nav-group summary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}

.role-nav-group summary::-webkit-details-marker { display: none; }
.role-nav-group summary .material-symbols-outlined { font-size: 18px; transition: transform 180ms ease; }
.role-nav-group[open] summary .material-symbols-outlined { transform: rotate(180deg); }
.role-nav-group[data-active="true"] summary { color: var(--mc-blue-soft); }

.role-nav-group-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 90;
  width: 224px;
  padding: 7px;
  display: grid;
  gap: 3px;
  border: 1px solid var(--mc-glass-line);
  border-radius: 8px;
  background: var(--mc-glass-strong);
  -webkit-backdrop-filter: blur(22px) saturate(125%);
  backdrop-filter: blur(22px) saturate(125%);
  box-shadow: var(--mc-glass-shadow);
}

.role-nav-group-panel a {
  min-height: 44px;
  padding: 0 11px !important;
  display: flex !important;
  align-items: center;
  gap: 9px;
  border: 0 !important;
  border-radius: 6px;
  font-size: 12px !important;
}

.role-nav-group-panel a:hover,
.role-nav-group-panel a.text-primary {
  background: rgba(62, 123, 255, 0.14);
}

body:not(.home-blue) a:focus-visible,
body:not(.home-blue) button:focus-visible,
body:not(.home-blue) input:focus-visible,
body:not(.home-blue) textarea:focus-visible,
body:not(.home-blue) select:focus-visible {
  outline: 3px solid rgba(62, 123, 255, 0.5);
  outline-offset: 3px;
}

::selection {
  background: rgba(62, 123, 255, 0.34);
  color: #fff;
}

a.mc-brand-lockup {
  min-width: 0;
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  direction: ltr;
  color: inherit;
  text-decoration: none;
}

.mc-brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(24, 93, 232, .22));
}

.mc-brand-wordmark {
  min-width: 0;
  color: currentColor;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .mc-brand-wordmark { display: none; }
}

.mc-hover-button {
  --mc-hover-x: 50%;
  --mc-hover-y: 50%;
  position: relative !important;
  isolation: isolate;
  overflow: hidden;
}

.mc-hover-button:not(:disabled):not([aria-disabled="true"]):active {
  transform: scale(.97);
}

.mc-hover-button.is-action-success {
  transform: scale(.985);
  filter: saturate(1.08);
}

.mc-hover-button.is-action-success > * {
  filter: blur(0);
  opacity: 1;
  transition: filter 180ms ease, opacity 180ms ease;
}

.mc-hover-button::before {
  content: '';
  position: absolute;
  z-index: 2;
  inset: -1px;
  border: 1px solid rgba(132, 151, 255, 0);
  border-radius: inherit;
  background: radial-gradient(130px circle at var(--mc-hover-x) var(--mc-hover-y), rgba(142, 167, 255, .5), rgba(87, 61, 181, .2) 38%, transparent 72%);
  box-shadow: inset 0 0 20px rgba(98, 117, 255, .12), 0 0 24px rgba(69, 80, 225, .12);
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  transition: opacity 220ms cubic-bezier(.23,1,.32,1), border-color 220ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .mc-hover-button:not(:disabled):not([aria-disabled="true"]):hover::before,
  .mc-hover-button:focus-visible::before {
    border-color: rgba(132, 151, 255, .38);
    opacity: 1;
  }
}

.mc-hover-button:disabled::before,
.mc-hover-button[aria-disabled="true"]::before {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .mc-hover-button:not(:disabled):not([aria-disabled="true"]):active,
  .mc-hover-button.is-action-success { transform: none; }
  .mc-hover-button::before {
    background: rgba(112, 137, 255, .14);
    transition: opacity 120ms ease;
  }
}
