:root {
  color-scheme: light;
  --page: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --surface-3: #f3f5f8;
  --section: #eef2f6;
  --text: #111827;
  --muted: #667085;
  --line: #cfd6df;
  --line-soft: #e6ebf1;
  --nav: #111827;
  --nav-2: #1f2937;
  --primary: #1d4ed8;
  --primary-2: #1e40af;
  --blue: #1d4ed8;
  --amber: #b45309;
  --red: #b42318;
  --green: #047857;
  --violet: #6d28d9;
  --shadow: 0 18px 44px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 26px rgba(15, 23, 42, 0.045);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

/* FINAL CASINO THEME OVERRIDE - keep this block last */
body.casino-theme {
  background:
    radial-gradient(circle at 20% 0%, rgba(248, 211, 95, 0.22), transparent 330px),
    radial-gradient(circle at 100% 16%, rgba(185, 28, 28, 0.22), transparent 360px),
    linear-gradient(135deg, #030b08 0%, #062018 44%, #030f0b 100%) !important;
  color: #f7f3df;
}

body.casino-theme::before {
  background:
    linear-gradient(rgba(248, 211, 95, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 211, 95, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

.casino-theme .app-sidebar {
  background:
    radial-gradient(circle at 50% 0%, rgba(248, 211, 95, 0.20), transparent 220px),
    linear-gradient(180deg, #040d0a, #0b2a1f) !important;
  border-right: 1px solid rgba(248, 211, 95, 0.26);
}

.casino-theme .theme-stamp {
  background: linear-gradient(90deg, rgba(248, 211, 95, 0.18), rgba(185, 28, 28, 0.16));
  border: 1px solid rgba(248, 211, 95, 0.32);
  border-radius: 8px;
  color: #f8d35f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  padding: 8px 10px;
  text-align: center;
}

.casino-theme .brand-mark {
  background: radial-gradient(circle at 35% 30%, #fff4b8, #f8d35f 46%, #9a6a12 100%) !important;
  border: 1px solid rgba(255, 244, 184, 0.72);
  box-shadow: 0 0 0 4px rgba(248, 211, 95, 0.13), 0 12px 28px rgba(0, 0, 0, 0.28);
  color: #201300;
}

.casino-theme .topbar,
.casino-theme .sub-nav,
.casino-theme .workflow-strip,
.casino-theme .hero-board,
.casino-theme .module-hero,
.casino-theme .command-workspace,
.casino-theme .panel,
.casino-theme .metric-card,
.casino-theme .launch-board,
.casino-theme .command-ops-board,
.casino-theme .control-panel,
.casino-theme .ops-column,
.casino-theme .module-ops-board,
.casino-theme .analysis-board,
.casino-theme .module-map,
.casino-theme .closure-desk,
.casino-theme .module-section,
.casino-theme .task-item,
.casino-theme .health-item,
.casino-theme .maturity-item,
.casino-theme .info-row,
.casino-theme .empty-card {
  background: linear-gradient(180deg, rgba(17, 45, 34, 0.96), rgba(6, 23, 17, 0.96)) !important;
  border-color: rgba(248, 211, 95, 0.24) !important;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  color: #f7f3df !important;
}

.casino-theme .hero-main,
.casino-theme .module-step,
.casino-theme .rail-action,
.casino-theme .launch-item,
.casino-theme .release-gate,
.casino-theme .situation-card,
.casino-theme .decision-item,
.casino-theme .signal-row,
.casino-theme .command-action,
.casino-theme .closure-column,
.casino-theme .closure-item,
.casino-theme .closure-action,
.casino-theme .subsection-lane,
.casino-theme .readiness-item,
.casino-theme .module-map-card,
.casino-theme .module-map-owner,
.casino-theme .subsection-toolbar,
.casino-theme .ticket-composer,
.casino-theme .profile-head {
  background: linear-gradient(180deg, rgba(21, 61, 45, 0.98), rgba(8, 30, 22, 0.98)) !important;
  border-color: rgba(248, 211, 95, 0.22) !important;
  color: #f7f3df !important;
}

.casino-theme .command-workspace {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(220px, 0.58fr) minmax(0, 1.85fr) minmax(300px, 0.78fr);
  padding: 14px;
}

.casino-theme .command-workspace-rail,
.casino-theme .command-workspace-main,
.casino-theme .command-workspace-side {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.casino-theme .command-workspace-rail,
.casino-theme .command-workspace-side {
  position: sticky;
  top: 104px;
}

.casino-theme .command-workspace-rail #commandMetrics {
  grid-template-columns: 1fr;
}

.casino-theme .command-workspace-side .panel.span-2 {
  grid-column: auto;
}

.casino-theme .brand-block strong,
.casino-theme .main-nav span,
.casino-theme h1,
.casino-theme h2,
.casino-theme .panel-head h2,
.casino-theme .control-head h2,
.casino-theme .module-map-head h2,
.casino-theme .closure-head h2 {
  color: #fff7db !important;
}

.casino-theme p,
.casino-theme .brand-block span,
.casino-theme .side-health span,
.casino-theme .side-health em,
.casino-theme .metric-card span,
.casino-theme .metric-card em,
.casino-theme .info-row span,
.casino-theme .module-step span,
.casino-theme .module-step em,
.casino-theme .rail-action span,
.casino-theme .launch-item em,
.casino-theme .situation-card em,
.casino-theme .decision-item strong,
.casino-theme .decision-item em,
.casino-theme .command-action span {
  color: rgba(247, 243, 223, 0.68) !important;
}

.casino-theme .eyebrow,
.casino-theme .metric-card strong,
.casino-theme .module-step strong,
.casino-theme .launch-score strong,
.casino-theme .situation-card strong {
  color: #f8d35f !important;
  text-shadow: 0 0 18px rgba(248, 211, 95, 0.18);
}

.casino-theme .hero-countdown {
  background:
    radial-gradient(circle at top, rgba(248, 211, 95, 0.20), transparent 170px),
    linear-gradient(180deg, #260c0c, #07150f) !important;
  border: 1px solid rgba(248, 211, 95, 0.38);
}

.casino-theme .hero-board {
  background:
    linear-gradient(90deg, rgba(9, 36, 27, 0.97), rgba(48, 12, 12, 0.76)),
    radial-gradient(circle at 75% 20%, rgba(248, 211, 95, 0.20), transparent 260px) !important;
}

.casino-theme .hero-main {
  border-left: 4px solid #f8d35f !important;
}

.casino-theme .btn {
  background: linear-gradient(180deg, #ffe594, #c88719) !important;
  border-color: rgba(255, 235, 159, 0.58) !important;
  color: #1d1203 !important;
}

.casino-theme .btn.secondary,
.casino-theme .btn.ghost {
  background: rgba(248, 211, 95, 0.11) !important;
  border-color: rgba(248, 211, 95, 0.30) !important;
  color: #f8d35f !important;
}

.casino-theme input,
.casino-theme select,
.casino-theme textarea,
.casino-theme .search-input {
  background: rgba(4, 16, 12, 0.78) !important;
  border-color: rgba(248, 211, 95, 0.26) !important;
  color: #f7f3df !important;
}

.casino-theme th {
  background: #10261d !important;
  color: #f8d35f !important;
}

.casino-theme td {
  background: rgba(9, 29, 22, 0.95) !important;
  color: #f7f3df !important;
}

.casino-theme tbody tr:hover td,
.casino-theme .row-selected td {
  background: rgba(248, 211, 95, 0.11) !important;
}

.casino-theme .cell-title strong {
  color: #fff7db !important;
}

.casino-theme .pill.open {
  background: rgba(34, 197, 94, 0.14) !important;
  color: #86efac !important;
}

.casino-theme .pill.pending {
  background: rgba(248, 211, 95, 0.14) !important;
  color: #fde68a !important;
}

.casino-theme .pill.danger {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #fca5a5 !important;
}

.casino-theme .metric-card.open,
.casino-theme .readiness-item.open,
.casino-theme .module-step.open,
.casino-theme .launch-item.open,
.casino-theme .release-gate.open,
.casino-theme .situation-card.open,
.casino-theme .decision-item.open,
.casino-theme .signal-row.open,
.casino-theme .closure-item.open,
.casino-theme .module-map-card.open {
  border-left-color: #22c55e !important;
}

.casino-theme .metric-card.pending,
.casino-theme .readiness-item.pending,
.casino-theme .module-step.pending,
.casino-theme .launch-score.pending,
.casino-theme .situation-card.pending,
.casino-theme .decision-item.pending,
.casino-theme .signal-row.pending,
.casino-theme .closure-item.pending,
.casino-theme .module-map-card.pending {
  border-left-color: #f8d35f !important;
}

.casino-theme .metric-card.danger,
.casino-theme .readiness-item.danger,
.casino-theme .module-step.danger,
.casino-theme .launch-score.danger,
.casino-theme .launch-item.danger,
.casino-theme .release-gate.danger,
.casino-theme .situation-card.danger,
.casino-theme .decision-item.danger,
.casino-theme .signal-row.danger,
.casino-theme .closure-item.danger,
.casino-theme .module-map-card.danger {
  border-left-color: #ef4444 !important;
}

@media (max-width: 1180px) {
  .casino-theme .command-workspace {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  }

  .casino-theme .command-workspace-rail {
    grid-column: span 2;
    grid-template-columns: minmax(240px, 0.6fr) minmax(0, 1fr);
    position: static;
  }
}

@media (max-width: 820px) {
  .casino-theme .command-workspace,
  .casino-theme .command-workspace-rail,
  .casino-theme .command-workspace-main,
  .casino-theme .command-workspace-side {
    grid-template-columns: 1fr;
  }

  .casino-theme .command-workspace-rail,
  .casino-theme .command-workspace-side {
    grid-column: auto;
    position: static;
  }
}

/* Clean operations admin v5 real final override - must stay at EOF */
body.enterprise-ops {
  background: #080d0b !important;
  color: #f5f0dc !important;
}

body.enterprise-ops::before {
  display: none !important;
}

.enterprise-ops .topbar,
.enterprise-ops .sub-nav,
.enterprise-ops .hero-board,
.enterprise-ops .module-hero,
.enterprise-ops .panel,
.enterprise-ops .metric-card,
.enterprise-ops .control-panel,
.enterprise-ops .ops-column,
.enterprise-ops .analysis-board,
.enterprise-ops .module-section,
.enterprise-ops .health-item,
.enterprise-ops .info-row,
.enterprise-ops .empty-card,
.enterprise-ops .ops-status-card {
  background: #101811 !important;
  border-color: rgba(245, 208, 93, 0.14) !important;
  box-shadow: none !important;
  color: #f5f0dc !important;
}

.enterprise-ops .app-sidebar {
  background: #07110d !important;
  border-right-color: rgba(245, 208, 93, 0.18) !important;
}

.enterprise-ops h1,
.enterprise-ops h2,
.enterprise-ops h3,
.enterprise-ops strong,
.enterprise-ops .panel-head h2,
.enterprise-ops .section-title h2,
.enterprise-ops .cell-title strong {
  color: #fff8dc !important;
  text-shadow: none !important;
}

.enterprise-ops p,
.enterprise-ops span,
.enterprise-ops em,
.enterprise-ops small,
.enterprise-ops td,
.enterprise-ops .metric-card span,
.enterprise-ops .metric-card em,
.enterprise-ops .info-row span {
  color: #d5ceb7 !important;
  text-shadow: none !important;
}

.enterprise-ops .eyebrow,
.enterprise-ops .metric-card strong,
.enterprise-ops .ops-status-card strong,
.enterprise-ops th {
  color: #e9c85c !important;
  text-shadow: none !important;
}

.enterprise-ops .workflow-strip,
.enterprise-ops .module-map,
.enterprise-ops .closure-desk,
.enterprise-ops .module-ops-board,
.enterprise-ops .panel-ribbon,
.enterprise-ops .subsection-workbench,
.enterprise-ops #moduleSituationPanel,
.enterprise-ops #commandOpsBoard,
.enterprise-ops #commandMaturity,
.enterprise-ops #launchReadinessBoard,
.enterprise-ops #view-telegram {
  display: none !important;
}

.enterprise-ops .command-workspace {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  grid-template-columns: 220px minmax(0, 1fr) 320px !important;
  padding: 0 !important;
}

.enterprise-ops .module-layout {
  grid-template-columns: minmax(0, 1fr) 320px !important;
}

.enterprise-ops .module-layout-nav {
  display: none !important;
}

.enterprise-ops .btn {
  background: #d7b447 !important;
  border-color: #d7b447 !important;
  color: #140f03 !important;
}

.enterprise-ops .btn.secondary,
.enterprise-ops .btn.ghost {
  background: #121a13 !important;
  border-color: rgba(245, 208, 93, 0.24) !important;
  color: #e9c85c !important;
}

.enterprise-ops input,
.enterprise-ops select,
.enterprise-ops textarea,
.enterprise-ops .search-input {
  background: #090f0b !important;
  border-color: rgba(245, 208, 93, 0.22) !important;
  color: #fff8dc !important;
}

/* Clean operations admin v5 - absolute final override */
body.enterprise-ops {
  background: #080d0b !important;
  color: #f5f0dc !important;
}

body.enterprise-ops::before {
  display: none !important;
}

.enterprise-ops .app-shell {
  grid-template-columns: 224px minmax(0, 1fr) !important;
}

.enterprise-ops .app-sidebar {
  background: #07110d !important;
  border-right: 1px solid rgba(245, 208, 93, 0.18) !important;
  gap: 12px !important;
  padding: 16px 10px !important;
}

.enterprise-ops .brand-mark {
  box-shadow: none !important;
}

.enterprise-ops .theme-stamp {
  background: #111810 !important;
  border-color: rgba(245, 208, 93, 0.20) !important;
  color: #e9c85c !important;
}

.enterprise-ops .main-nav {
  gap: 4px !important;
}

.enterprise-ops .main-nav button {
  background: transparent !important;
  border-color: transparent !important;
  border-radius: 6px !important;
  color: #d8d2bd !important;
  min-height: 38px !important;
  padding: 8px 10px !important;
}

.enterprise-ops .main-nav button:hover,
.enterprise-ops .main-nav button.active {
  background: #172018 !important;
  border-color: rgba(245, 208, 93, 0.24) !important;
  color: #fff6d8 !important;
}

.enterprise-ops .main-nav b {
  background: rgba(245, 208, 93, 0.10) !important;
  color: #e9c85c !important;
}

.enterprise-ops .side-ops,
.enterprise-ops .side-health {
  background: #0d1510 !important;
  border-color: rgba(245, 208, 93, 0.16) !important;
  box-shadow: none !important;
}

.enterprise-ops .app-main {
  padding: 14px 16px 24px !important;
}

.enterprise-ops .topbar,
.enterprise-ops .sub-nav,
.enterprise-ops .hero-board,
.enterprise-ops .module-hero,
.enterprise-ops .panel,
.enterprise-ops .metric-card,
.enterprise-ops .control-panel,
.enterprise-ops .ops-column,
.enterprise-ops .analysis-board,
.enterprise-ops .module-section,
.enterprise-ops .health-item,
.enterprise-ops .info-row,
.enterprise-ops .empty-card {
  background: #101811 !important;
  border-color: rgba(245, 208, 93, 0.14) !important;
  box-shadow: none !important;
  color: #f5f0dc !important;
}

.enterprise-ops .hero-main,
.enterprise-ops .task-item,
.enterprise-ops .profile-head,
.enterprise-ops .subsection-toolbar,
.enterprise-ops .ticket-composer {
  background: #121d15 !important;
  border-color: rgba(245, 208, 93, 0.14) !important;
  box-shadow: none !important;
}

.enterprise-ops h1,
.enterprise-ops h2,
.enterprise-ops h3,
.enterprise-ops .panel-head h2,
.enterprise-ops .section-title h2,
.enterprise-ops .cell-title strong,
.enterprise-ops strong {
  color: #fff8dc !important;
  text-shadow: none !important;
}

.enterprise-ops p,
.enterprise-ops span,
.enterprise-ops em,
.enterprise-ops small,
.enterprise-ops td,
.enterprise-ops .brand-block span,
.enterprise-ops .metric-card span,
.enterprise-ops .metric-card em,
.enterprise-ops .info-row span {
  color: #d5ceb7 !important;
  text-shadow: none !important;
}

.enterprise-ops .eyebrow,
.enterprise-ops .metric-card strong,
.enterprise-ops .ops-status-card strong {
  color: #e9c85c !important;
  text-shadow: none !important;
}

.enterprise-ops .topbar {
  align-items: center !important;
  margin-bottom: 10px !important;
  padding: 12px 14px !important;
}

.enterprise-ops h1 {
  font-size: 21px !important;
}

.enterprise-ops .ops-status-bar {
  display: grid !important;
  gap: 8px !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  margin-bottom: 10px !important;
}

.enterprise-ops .ops-status-card {
  background: #101811 !important;
  border: 1px solid rgba(245, 208, 93, 0.14) !important;
  border-left: 3px solid #e9c85c !important;
  border-radius: 7px !important;
  box-shadow: none !important;
  color: #f5f0dc !important;
  display: grid !important;
  gap: 3px !important;
  min-height: 76px !important;
  padding: 10px !important;
}

.enterprise-ops .ops-status-card.open {
  border-left-color: #22c55e !important;
}

.enterprise-ops .ops-status-card.pending {
  border-left-color: #e9c85c !important;
}

.enterprise-ops .ops-status-card.danger {
  border-left-color: #ef4444 !important;
}

.enterprise-ops .sub-nav {
  grid-template-columns: 160px minmax(0, 1fr) !important;
  padding: 8px !important;
}

.enterprise-ops .sub-nav-head {
  background: #111810 !important;
}

.enterprise-ops .sub-nav button {
  background: #0c130f !important;
  border-color: rgba(245, 208, 93, 0.12) !important;
  border-radius: 7px !important;
  min-height: 46px !important;
}

.enterprise-ops .sub-nav button.active {
  background: #1a241b !important;
  border-color: rgba(245, 208, 93, 0.30) !important;
}

.enterprise-ops .workflow-strip,
.enterprise-ops .module-map,
.enterprise-ops .closure-desk,
.enterprise-ops .module-ops-board,
.enterprise-ops .panel-ribbon,
.enterprise-ops .subsection-workbench,
.enterprise-ops #moduleSituationPanel,
.enterprise-ops #commandOpsBoard,
.enterprise-ops #commandMaturity,
.enterprise-ops #launchReadinessBoard,
.enterprise-ops #telegramOpsBoard,
.enterprise-ops #telegramCommandBoard,
.enterprise-ops #telegramModuleMap,
.enterprise-ops #telegramClosureDesk,
.enterprise-ops #systemOpsBoard,
.enterprise-ops #systemGovernanceBoard,
.enterprise-ops #systemModuleMap,
.enterprise-ops #systemClosureDesk,
.enterprise-ops #usersOpsBoard,
.enterprise-ops #usersCommandBoard,
.enterprise-ops #usersModuleMap,
.enterprise-ops #usersClosureDesk,
.enterprise-ops #drawOpsBoard,
.enterprise-ops #drawCommandBoard,
.enterprise-ops #drawModuleMap,
.enterprise-ops #drawClosureDesk,
.enterprise-ops #financeOpsBoard,
.enterprise-ops #financeCommandBoard,
.enterprise-ops #financeModuleMap,
.enterprise-ops #financeClosureDesk,
.enterprise-ops #riskOpsBoard,
.enterprise-ops #riskReviewBoard,
.enterprise-ops #riskModuleMap,
.enterprise-ops #riskClosureDesk {
  display: none !important;
}

.enterprise-ops .hero-board,
.enterprise-ops .module-hero {
  grid-template-columns: minmax(0, 1fr) 260px !important;
  padding: 12px !important;
}

.enterprise-ops .command-workspace {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  gap: 10px !important;
  grid-template-columns: 220px minmax(0, 1fr) 320px !important;
  padding: 0 !important;
}

.enterprise-ops .command-workspace-rail,
.enterprise-ops .command-workspace-main,
.enterprise-ops .command-workspace-side,
.enterprise-ops .module-layout-main,
.enterprise-ops .module-layout-side {
  gap: 10px !important;
}

.enterprise-ops .module-layout {
  grid-template-columns: minmax(0, 1fr) 320px !important;
}

.enterprise-ops .module-layout-nav {
  display: none !important;
}

.enterprise-ops .panel,
.enterprise-ops .module-section {
  padding: 12px !important;
}

.enterprise-ops .panel-head,
.enterprise-ops .section-title {
  margin-bottom: 8px !important;
}

.enterprise-ops .panel-head p,
.enterprise-ops .section-title p,
.enterprise-ops .control-head p,
.enterprise-ops .module-hero p {
  display: none !important;
}

.enterprise-ops .metric-grid,
.enterprise-ops .work-grid {
  gap: 8px !important;
}

.enterprise-ops .table-wrap {
  border-color: rgba(245, 208, 93, 0.12) !important;
  max-height: 500px !important;
}

.enterprise-ops th {
  background: #162016 !important;
  color: #e9c85c !important;
}

.enterprise-ops td {
  background: #101811 !important;
  color: #f5f0dc !important;
}

.enterprise-ops input,
.enterprise-ops select,
.enterprise-ops textarea,
.enterprise-ops .search-input {
  background: #090f0b !important;
  border-color: rgba(245, 208, 93, 0.22) !important;
  color: #fff8dc !important;
}

.enterprise-ops .btn {
  background: #d7b447 !important;
  border-color: #d7b447 !important;
  color: #140f03 !important;
}

.enterprise-ops .btn.secondary,
.enterprise-ops .btn.ghost {
  background: #121a13 !important;
  border-color: rgba(245, 208, 93, 0.24) !important;
  color: #e9c85c !important;
}

.enterprise-ops #commandControl {
  grid-template-columns: minmax(0, 1fr) !important;
}

.enterprise-ops #commandControl .control-side {
  display: grid !important;
  gap: 8px !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

@media (max-width: 1280px) {
  .enterprise-ops .ops-status-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .enterprise-ops .command-workspace,
  .enterprise-ops .module-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 980px) {
  .enterprise-ops .app-shell,
  .enterprise-ops .topbar,
  .enterprise-ops .hero-board,
  .enterprise-ops .module-hero,
  .enterprise-ops .analysis-board {
    grid-template-columns: 1fr !important;
  }

  .enterprise-ops .app-sidebar {
    height: auto !important;
    position: static !important;
  }

  .enterprise-ops .main-nav,
  .enterprise-ops .ops-status-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .enterprise-ops .ops-status-bar,
  .enterprise-ops .main-nav,
  .enterprise-ops .sub-nav {
    grid-template-columns: 1fr !important;
  }
}

/* Enterprise operations admin v4 final override - keep last */
body.enterprise-ops {
  background:
    linear-gradient(135deg, #07100d 0%, #0a1d16 48%, #120b0b 100%) !important;
}

.enterprise-ops .app-shell {
  grid-template-columns: 246px minmax(0, 1fr) !important;
}

.enterprise-ops .app-sidebar {
  gap: 14px !important;
  padding: 18px 12px !important;
}

.enterprise-ops .main-nav {
  gap: 4px !important;
}

.enterprise-ops .main-nav button {
  border-radius: 7px !important;
  min-height: 40px !important;
  padding: 8px 10px !important;
}

.enterprise-ops .side-ops,
.enterprise-ops .side-health {
  background: rgba(248, 211, 95, 0.08) !important;
  border: 1px solid rgba(248, 211, 95, 0.22) !important;
  border-radius: 8px !important;
  padding: 12px !important;
}

.enterprise-ops .side-ops span,
.enterprise-ops .side-ops em {
  color: rgba(247, 243, 223, 0.64) !important;
  display: block;
  font-size: 12px;
  font-style: normal;
}

.enterprise-ops .side-ops strong {
  color: #fff7db !important;
  display: block;
  font-size: 16px;
  margin: 4px 0 2px;
}

.enterprise-ops .app-main {
  padding: 16px 18px 28px !important;
}

.enterprise-ops .topbar {
  align-items: center !important;
  margin-bottom: 10px !important;
  padding: 14px 16px !important;
}

.enterprise-ops h1 {
  font-size: 22px !important;
}

.enterprise-ops .ops-status-bar {
  display: grid !important;
  gap: 8px !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  margin-bottom: 10px !important;
}

.enterprise-ops .ops-status-card {
  background: linear-gradient(180deg, rgba(15, 40, 30, 0.98), rgba(7, 22, 16, 0.98)) !important;
  border: 1px solid rgba(248, 211, 95, 0.22) !important;
  border-left: 3px solid rgba(248, 211, 95, 0.55) !important;
  border-radius: 8px !important;
  color: #f7f3df !important;
  cursor: pointer;
  display: grid;
  gap: 4px;
  min-height: 86px;
  padding: 12px;
  text-align: left;
}

.enterprise-ops .ops-status-card span,
.enterprise-ops .ops-status-card em {
  color: rgba(247, 243, 223, 0.64) !important;
  font-size: 12px;
  font-style: normal;
}

.enterprise-ops .ops-status-card strong {
  color: #f8d35f !important;
  font-size: 22px;
  line-height: 1.1;
}

.enterprise-ops .ops-status-card.open {
  border-left-color: #22c55e !important;
}

.enterprise-ops .ops-status-card.pending {
  border-left-color: #f8d35f !important;
}

.enterprise-ops .ops-status-card.danger {
  border-left-color: #ef4444 !important;
}

.enterprise-ops .sub-nav {
  grid-template-columns: 190px minmax(0, 1fr) !important;
  margin-bottom: 10px !important;
  padding: 8px !important;
}

.enterprise-ops .sub-nav-track {
  grid-auto-columns: minmax(132px, 1fr) !important;
}

.enterprise-ops .sub-nav button {
  border-radius: 8px !important;
  min-height: 50px !important;
}

.enterprise-ops .workflow-strip,
.enterprise-ops .module-map,
.enterprise-ops .closure-desk,
.enterprise-ops .module-ops-board {
  display: none !important;
}

.enterprise-ops .hero-board,
.enterprise-ops .module-hero {
  grid-template-columns: minmax(0, 1fr) 280px !important;
  padding: 14px !important;
}

.enterprise-ops .command-workspace {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  gap: 12px !important;
  grid-template-columns: 230px minmax(0, 1fr) 340px !important;
  padding: 0 !important;
}

.enterprise-ops .command-workspace-rail,
.enterprise-ops .command-workspace-main,
.enterprise-ops .command-workspace-side {
  gap: 10px !important;
}

.enterprise-ops .module-layout {
  grid-template-columns: minmax(0, 1fr) 330px !important;
}

.enterprise-ops .module-layout-nav {
  display: none !important;
}

.enterprise-ops .panel-head p,
.enterprise-ops .section-title p,
.enterprise-ops .control-head p,
.enterprise-ops .module-hero p,
.enterprise-ops .panel-ribbon {
  display: none !important;
}

.enterprise-ops .module-section::before {
  display: none !important;
}

.enterprise-ops .panel,
.enterprise-ops .module-section {
  padding: 14px !important;
}

.enterprise-ops .table-wrap {
  max-height: 520px !important;
}

.enterprise-ops #moduleSituationPanel,
.enterprise-ops #commandOpsBoard {
  display: none !important;
}

.enterprise-ops #commandControl {
  grid-template-columns: minmax(0, 1fr) !important;
}

.enterprise-ops #commandControl .control-side {
  display: grid !important;
  gap: 10px !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

@media (max-width: 1280px) {
  .enterprise-ops .ops-status-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .enterprise-ops .command-workspace {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 980px) {
  .enterprise-ops .app-shell,
  .enterprise-ops .topbar,
  .enterprise-ops .hero-board,
  .enterprise-ops .module-hero,
  .enterprise-ops .analysis-board,
  .enterprise-ops .module-layout {
    grid-template-columns: 1fr !important;
  }

  .enterprise-ops .app-sidebar {
    height: auto !important;
    position: static !important;
  }

  .enterprise-ops .main-nav,
  .enterprise-ops .ops-status-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .enterprise-ops .ops-status-bar,
  .enterprise-ops .main-nav,
  .enterprise-ops .sub-nav {
    grid-template-columns: 1fr !important;
  }
}

/* Enterprise operations admin v4 */
body.enterprise-ops {
  background:
    linear-gradient(135deg, #07100d 0%, #0a1d16 48%, #120b0b 100%) !important;
}

.enterprise-ops .app-shell {
  grid-template-columns: 246px minmax(0, 1fr);
}

.enterprise-ops .app-sidebar {
  gap: 14px;
  padding: 18px 12px;
}

.enterprise-ops .brand-block {
  min-height: 46px;
}

.enterprise-ops .theme-stamp {
  font-size: 10px;
  padding: 7px 9px;
}

.enterprise-ops .main-nav {
  gap: 4px;
}

.enterprise-ops .main-nav button {
  border-radius: 7px;
  min-height: 40px;
  padding: 8px 10px;
}

.enterprise-ops .main-nav span {
  font-size: 14px;
}

.enterprise-ops .main-nav b {
  font-size: 10px;
  max-width: 74px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.enterprise-ops .side-ops,
.enterprise-ops .side-health {
  background: rgba(248, 211, 95, 0.08);
  border: 1px solid rgba(248, 211, 95, 0.22);
  border-radius: 8px;
  padding: 12px;
}

.enterprise-ops .side-ops span,
.enterprise-ops .side-ops em {
  color: rgba(247, 243, 223, 0.64);
  display: block;
  font-size: 12px;
  font-style: normal;
}

.enterprise-ops .side-ops strong {
  color: #fff7db;
  display: block;
  font-size: 16px;
  margin: 4px 0 2px;
}

.enterprise-ops .app-main {
  padding: 16px 18px 28px;
}

.enterprise-ops .topbar {
  align-items: center;
  border-radius: 8px;
  margin-bottom: 10px;
  padding: 14px 16px;
}

.enterprise-ops h1 {
  font-size: 22px;
}

.enterprise-ops .topbar p {
  max-width: 760px;
}

.enterprise-ops .top-actions .search-input {
  min-width: 300px;
}

.enterprise-ops .ops-status-bar {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 10px;
}

.enterprise-ops .ops-status-card {
  background: linear-gradient(180deg, rgba(15, 40, 30, 0.98), rgba(7, 22, 16, 0.98));
  border: 1px solid rgba(248, 211, 95, 0.22);
  border-left: 3px solid rgba(248, 211, 95, 0.55);
  border-radius: 8px;
  color: #f7f3df;
  cursor: pointer;
  display: grid;
  gap: 4px;
  min-height: 86px;
  padding: 12px;
  text-align: left;
}

.enterprise-ops .ops-status-card span,
.enterprise-ops .ops-status-card em {
  color: rgba(247, 243, 223, 0.64);
  font-size: 12px;
  font-style: normal;
}

.enterprise-ops .ops-status-card strong {
  color: #f8d35f;
  font-size: 22px;
  line-height: 1.1;
}

.enterprise-ops .ops-status-card.open {
  border-left-color: #22c55e;
}

.enterprise-ops .ops-status-card.pending {
  border-left-color: #f8d35f;
}

.enterprise-ops .ops-status-card.danger {
  border-left-color: #ef4444;
}

.enterprise-ops .sub-nav {
  grid-template-columns: 190px minmax(0, 1fr);
  margin-bottom: 10px;
  padding: 8px;
  top: 0;
}

.enterprise-ops .sub-nav-track {
  grid-auto-columns: minmax(132px, 1fr);
}

.enterprise-ops .sub-nav button {
  border-radius: 8px;
  min-height: 50px;
}

.enterprise-ops .workflow-strip,
.enterprise-ops .module-map,
.enterprise-ops .closure-desk,
.enterprise-ops .module-ops-board {
  display: none !important;
}

.enterprise-ops .view.active {
  gap: 10px;
}

.enterprise-ops .hero-board,
.enterprise-ops .module-hero {
  grid-template-columns: minmax(0, 1fr) 280px;
  padding: 14px;
}

.enterprise-ops .command-workspace {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  gap: 12px;
  grid-template-columns: 230px minmax(0, 1fr) 340px;
  padding: 0;
}

.enterprise-ops .command-workspace-rail,
.enterprise-ops .command-workspace-main,
.enterprise-ops .command-workspace-side {
  gap: 10px;
}

.enterprise-ops .command-workspace-rail,
.enterprise-ops .command-workspace-side {
  top: 112px;
}

.enterprise-ops .module-layout {
  grid-template-columns: minmax(0, 1fr) 330px;
}

.enterprise-ops .module-layout-nav {
  display: none;
}

.enterprise-ops .module-layout-main {
  gap: 10px;
}

.enterprise-ops .module-layout-side {
  gap: 10px;
}

.enterprise-ops .metric-grid {
  gap: 8px;
}

.enterprise-ops .metric-card,
.enterprise-ops .panel,
.enterprise-ops .module-section,
.enterprise-ops .analysis-board,
.enterprise-ops .ops-column,
.enterprise-ops .launch-board,
.enterprise-ops .control-panel {
  border-radius: 8px !important;
}

.enterprise-ops .panel,
.enterprise-ops .module-section {
  padding: 14px;
}

.enterprise-ops .panel-head,
.enterprise-ops .section-title,
.enterprise-ops .module-ops-head,
.enterprise-ops .launch-head,
.enterprise-ops .board-head {
  margin-bottom: 10px;
}

.enterprise-ops .panel-head p,
.enterprise-ops .section-title p,
.enterprise-ops .control-head p,
.enterprise-ops .module-hero p {
  display: none;
}

.enterprise-ops .panel-ribbon {
  display: none;
}

.enterprise-ops .module-section {
  position: relative;
}

.enterprise-ops .module-section::before {
  display: none !important;
}

.enterprise-ops .section-title {
  border-bottom: 1px solid rgba(248, 211, 95, 0.18);
  padding-bottom: 8px;
}

.enterprise-ops .section-title span {
  background: rgba(248, 211, 95, 0.14);
  border-color: rgba(248, 211, 95, 0.24);
  color: #f8d35f;
}

.enterprise-ops .work-grid {
  gap: 10px;
}

.enterprise-ops .table-wrap {
  border-radius: 8px;
  max-height: 520px;
}

.enterprise-ops table {
  font-size: 13px;
}

.enterprise-ops th,
.enterprise-ops td {
  padding: 9px 10px;
}

.enterprise-ops .analysis-board {
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
}

.enterprise-ops #view-command .control-panel .control-head p {
  display: none;
}

.enterprise-ops #commandControl {
  grid-template-columns: minmax(0, 1fr);
}

.enterprise-ops #commandControl .control-side {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.enterprise-ops #moduleSituationPanel {
  display: none;
}

.enterprise-ops #commandPulse {
  display: contents;
}

@media (max-width: 1280px) {
  .enterprise-ops .ops-status-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .enterprise-ops .command-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .enterprise-ops .command-workspace-rail,
  .enterprise-ops .command-workspace-side {
    position: static;
  }
}

@media (max-width: 980px) {
  .enterprise-ops .app-shell {
    grid-template-columns: 1fr;
  }

  .enterprise-ops .app-sidebar {
    height: auto;
    position: static;
  }

  .enterprise-ops .main-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .enterprise-ops .topbar,
  .enterprise-ops .hero-board,
  .enterprise-ops .module-hero,
  .enterprise-ops .analysis-board,
  .enterprise-ops .module-layout {
    grid-template-columns: 1fr;
  }

  .enterprise-ops .ops-status-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .enterprise-ops .ops-status-bar,
  .enterprise-ops .main-nav,
  .enterprise-ops .sub-nav {
    grid-template-columns: 1fr;
  }

  .enterprise-ops .top-actions {
    justify-content: stretch;
  }

  .enterprise-ops .top-actions > * {
    flex: 1 1 100%;
  }
}

/* PC Canada casino operations redesign */
:root {
  color-scheme: dark;
  --page: #061510;
  --surface: #0d2119;
  --surface-2: #10281f;
  --surface-3: #173629;
  --section: #0a1d16;
  --text: #f7f3df;
  --muted: #b9c6b8;
  --line: rgba(236, 200, 104, 0.28);
  --line-soft: rgba(236, 200, 104, 0.16);
  --nav: #06120e;
  --nav-2: #102b20;
  --primary: #e8bd45;
  --primary-2: #f6d76d;
  --blue: #f6d76d;
  --amber: #f4b740;
  --red: #ef4444;
  --green: #22c55e;
  --violet: #c084fc;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.20);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body {
  background:
    radial-gradient(circle at 18% 0%, rgba(232, 189, 69, 0.16), transparent 310px),
    radial-gradient(circle at 100% 18%, rgba(185, 28, 28, 0.18), transparent 360px),
    linear-gradient(135deg, #04100c 0%, #082018 44%, #061510 100%);
  color: var(--text);
}

body::before {
  background:
    linear-gradient(rgba(232, 189, 69, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 189, 69, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

.app-sidebar {
  background:
    linear-gradient(180deg, rgba(5, 18, 14, 0.98), rgba(11, 42, 31, 0.98)),
    radial-gradient(circle at 50% 0%, rgba(232, 189, 69, 0.18), transparent 220px);
  border-right: 1px solid rgba(232, 189, 69, 0.22);
}

.brand-mark {
  background: radial-gradient(circle at 35% 30%, #fff4b8, #e8bd45 46%, #9a6a12 100%);
  border: 1px solid rgba(255, 244, 184, 0.7);
  box-shadow: 0 0 0 4px rgba(232, 189, 69, 0.12), 0 12px 28px rgba(0, 0, 0, 0.26);
  color: #221503;
}

.brand-block strong,
.main-nav span,
h1,
h2,
.panel-head h2,
.control-head h2,
.module-map-head h2,
.closure-head h2 {
  color: #fff7db;
}

.brand-block span,
.side-health span,
.side-health em,
p,
.workflow-step em,
.module-step span,
.module-step em,
.rail-action span,
.launch-item em,
.release-gate strong,
.situation-card em,
.decision-item strong,
.decision-item em,
.command-action span,
.metric-card span,
.metric-card em,
.info-row span,
.subsection-lane span,
.subsection-lane em {
  color: rgba(247, 243, 223, 0.66);
}

.main-nav button {
  color: rgba(247, 243, 223, 0.74);
}

.main-nav button:hover,
.main-nav button.active {
  background: rgba(232, 189, 69, 0.13);
  border-color: rgba(232, 189, 69, 0.32);
}

.main-nav b {
  background: rgba(232, 189, 69, 0.14);
  color: #f6d76d;
}

.topbar,
.sub-nav,
.workflow-strip,
.hero-board,
.module-hero,
.command-workspace,
.panel,
.metric-card,
.launch-board,
.command-ops-board,
.control-panel,
.ops-column,
.module-ops-board,
.analysis-board,
.module-map,
.closure-desk,
.module-section,
.task-item,
.health-item,
.maturity-item,
.info-row,
.empty-card {
  background: linear-gradient(180deg, rgba(17, 45, 34, 0.94), rgba(8, 28, 21, 0.94));
  border-color: rgba(232, 189, 69, 0.22);
  box-shadow: var(--shadow-soft), var(--shadow-inset);
  color: var(--text);
}

.topbar {
  backdrop-filter: blur(12px);
}

.hero-main,
.module-hero,
.module-step,
.rail-action,
.launch-item,
.release-gate,
.situation-card,
.decision-item,
.signal-row,
.command-action,
.closure-column,
.closure-item,
.closure-action,
.subsection-lane,
.readiness-item,
.module-map-card,
.module-map-owner,
.subsection-toolbar,
.ticket-composer,
.profile-head,
.timeline-step {
  background: linear-gradient(180deg, rgba(19, 55, 41, 0.96), rgba(8, 30, 22, 0.96));
  border-color: rgba(232, 189, 69, 0.20);
  color: var(--text);
}

.command-workspace {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(220px, 0.58fr) minmax(0, 1.85fr) minmax(300px, 0.78fr);
  padding: 14px;
}

.command-workspace-rail,
.command-workspace-main,
.command-workspace-side {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.command-workspace-rail,
.command-workspace-side {
  position: sticky;
  top: 104px;
}

.command-workspace-rail #commandMetrics {
  grid-template-columns: 1fr;
}

.command-workspace-side > .panel {
  margin: 0;
}

.command-workspace-side .panel.span-2 {
  grid-column: auto;
}

#commandPulse,
#commandDrawPulseSection,
#commandSystemPulse {
  display: none;
}

.hero-countdown {
  background:
    radial-gradient(circle at top, rgba(232, 189, 69, 0.18), transparent 170px),
    linear-gradient(180deg, #230b0b, #0d1612);
  border: 1px solid rgba(232, 189, 69, 0.34);
}

.hero-countdown strong,
.metric-card strong,
.module-step strong,
.launch-score strong,
.situation-card strong {
  color: #f8d35f;
  text-shadow: 0 0 18px rgba(232, 189, 69, 0.16);
}

.hero-countdown strong {
  font-size: 31px;
}

.hero-countdown dd {
  color: #fff3bf;
}

.btn {
  background: linear-gradient(180deg, #f6d76d, #c88719);
  border-color: rgba(255, 235, 159, 0.58);
  box-shadow: 0 8px 18px rgba(200, 135, 25, 0.22);
  color: #1d1203;
}

.btn:hover {
  background: linear-gradient(180deg, #ffe594, #d99a28);
}

.btn.secondary,
.btn.ghost {
  background: rgba(232, 189, 69, 0.10);
  border-color: rgba(232, 189, 69, 0.28);
  color: #f8d35f;
}

.btn.secondary:hover,
.btn.ghost:hover {
  background: rgba(232, 189, 69, 0.18);
}

.btn.danger {
  background: linear-gradient(180deg, #ef4444, #991b1b);
  color: #fff;
}

.eyebrow {
  color: #f8d35f;
}

input,
select,
textarea,
.search-input {
  background: rgba(4, 16, 12, 0.72);
  border-color: rgba(232, 189, 69, 0.24);
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  border-color: #f8d35f;
  box-shadow: 0 0 0 3px rgba(232, 189, 69, 0.14);
}

th {
  background: #10261d;
  color: #f8d35f;
}

td {
  background: rgba(9, 29, 22, 0.94);
  color: #f7f3df;
}

tbody tr:hover td,
.row-selected td {
  background: rgba(232, 189, 69, 0.10);
}

.cell-title strong {
  color: #fff7db;
}

.pill {
  background: rgba(247, 243, 223, 0.10);
  border: 1px solid rgba(247, 243, 223, 0.08);
  color: #dce7d9;
}

.pill.open {
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
}

.pill.pending {
  background: rgba(232, 189, 69, 0.14);
  color: #fde68a;
}

.pill.danger {
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
}

.metric-card.open,
.readiness-item.open,
.module-step.open,
.launch-item.open,
.release-gate.open,
.situation-card.open,
.decision-item.open,
.signal-row.open,
.closure-item.open,
.module-map-card.open {
  border-left-color: var(--green);
}

.metric-card.pending,
.readiness-item.pending,
.module-step.pending,
.launch-score.pending,
.situation-card.pending,
.decision-item.pending,
.signal-row.pending,
.closure-item.pending,
.module-map-card.pending {
  border-left-color: var(--primary);
}

.metric-card.danger,
.readiness-item.danger,
.module-step.danger,
.launch-score.danger,
.launch-item.danger,
.release-gate.danger,
.situation-card.danger,
.decision-item.danger,
.signal-row.danger,
.closure-item.danger,
.module-map-card.danger {
  border-left-color: var(--red);
}

.hero-board {
  background:
    linear-gradient(90deg, rgba(9, 36, 27, 0.96), rgba(40, 12, 12, 0.70)),
    radial-gradient(circle at 75% 20%, rgba(232, 189, 69, 0.18), transparent 260px);
}

.hero-main {
  border-left: 4px solid #f8d35f;
}

.launch-board {
  border-top: 3px solid rgba(232, 189, 69, 0.48);
}

.command-ops-board {
  background:
    radial-gradient(circle at top right, rgba(239, 68, 68, 0.12), transparent 260px),
    linear-gradient(180deg, rgba(8, 30, 22, 0.97), rgba(5, 16, 12, 0.97));
}

@media (max-width: 1180px) {
  .command-workspace {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  }

  .command-workspace-rail {
    grid-column: span 2;
    grid-template-columns: minmax(240px, 0.6fr) minmax(0, 1fr);
    position: static;
  }

  .command-workspace-rail #commandMetrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .command-workspace-side {
    position: static;
  }
}

@media (max-width: 820px) {
  .command-workspace,
  .command-workspace-rail,
  .command-workspace-main,
  .command-workspace-side {
    grid-template-columns: 1fr;
  }

  .command-workspace-rail,
  .command-workspace-side {
    grid-column: auto;
    position: static;
  }

  .command-workspace-rail #commandMetrics {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

body {
  background:
    radial-gradient(circle at top right, rgba(29, 78, 216, 0.08), transparent 340px),
    linear-gradient(180deg, #f8fafc 0, var(--page) 280px);
  color: var(--text);
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.app-shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
}

.app-sidebar {
  background: linear-gradient(180deg, var(--nav), var(--nav-2));
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand-block {
  align-items: center;
  display: flex;
  gap: 12px;
  min-height: 54px;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, #facc15, #f59e0b);
  border-radius: 8px;
  color: #172033;
  display: flex;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.brand-block strong {
  display: block;
  font-size: 16px;
}

.brand-block span,
.side-health span,
.side-health em {
  color: #b9c3d4;
  display: block;
  font-size: 12px;
  font-style: normal;
  margin-top: 3px;
}

.main-nav {
  display: grid;
  gap: 6px;
}

.main-nav button {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #dbe4f0;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  min-height: 44px;
  padding: 10px 11px;
  text-align: left;
}

.main-nav button:hover,
.main-nav button.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.main-nav span {
  font-weight: 800;
}

.main-nav b {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 11px;
  padding: 3px 7px;
}

.side-health {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  margin-top: auto;
  padding: 14px;
}

.side-health strong {
  display: block;
  font-size: 18px;
  margin-top: 5px;
}

.app-main {
  min-width: 0;
  padding: 20px 22px 30px;
}

.topbar {
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  box-shadow: var(--shadow-soft), var(--shadow-inset);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 18px;
}

.eyebrow {
  color: var(--primary);
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 25px;
  margin-top: 4px;
}

h2 {
  font-size: 17px;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  line-height: 1.55;
  margin-top: 6px;
}

.top-actions,
.module-actions,
.filters,
.split-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filters {
  justify-content: flex-start;
  margin: 10px 0 14px;
}

.filters .search-input {
  min-width: 260px;
  flex: 1 1 260px;
}

.compact-filters {
  margin: 0 0 10px;
}

.search-input,
input,
select,
textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  min-height: 38px;
  padding: 9px 11px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
  outline: none;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.search-input {
  min-width: 260px;
}

.btn {
  align-items: center;
  background: var(--primary);
  border: 1px solid transparent;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 38px;
  padding: 9px 14px;
}

.btn:hover {
  background: var(--primary-2);
}

.btn.secondary {
  background: #fff;
  border-color: var(--line);
  color: #243044;
}

.btn.secondary:hover {
  border-color: #b8c2d0;
}

.btn.secondary:hover {
  background: #f8fafc;
}

.btn.ghost {
  background: #eef2f6;
  color: #243044;
}

.btn.danger {
  background: var(--red);
}

.btn.tiny {
  border-radius: 7px;
  font-size: 12px;
  min-height: 30px;
  padding: 5px 9px;
}

.alert-strip {
  align-items: center;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #7c2d12;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 12px 14px;
}

.sub-nav {
  align-items: stretch;
  background: #ffffff;
  border: 1px solid #d7dfeb;
  border-radius: 8px;
  box-shadow: var(--shadow-soft), var(--shadow-inset);
  display: grid;
  gap: 10px;
  grid-template-columns: 220px minmax(0, 1fr);
  margin-bottom: 14px;
  padding: 10px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.sub-nav-head {
  background: linear-gradient(180deg, #111827, #263244);
  border-radius: 7px;
  color: #fff;
  display: grid;
  gap: 2px;
  padding: 12px;
}

.sub-nav-head span,
.sub-nav-head em {
  color: #cbd5e1;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.sub-nav-head strong {
  font-size: 15px;
}

.sub-nav-track {
  display: grid;
  gap: 8px;
  grid-auto-columns: minmax(150px, 1fr);
  grid-auto-flow: column;
  overflow-x: auto;
  padding-bottom: 1px;
}

.sub-nav button {
  background: #f8fafc;
  border: 1px solid #dce3ed;
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 2px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 58px;
  padding: 8px 10px;
  text-align: left;
}

.sub-nav button.active {
  background: #111827;
  border-color: #111827;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.16);
  color: #fff;
}

.sub-nav button b {
  align-items: center;
  background: #e7edf5;
  border-radius: 6px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  grid-row: span 2;
  height: 28px;
  justify-content: center;
  margin-top: 2px;
  width: 30px;
}

.sub-nav button span {
  font-size: 13px;
  font-weight: 900;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sub-nav button em {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.sub-nav button.open b {
  background: #ecfdf3;
  color: var(--green);
}

.sub-nav button.pending b {
  background: #fffaeb;
  color: var(--amber);
}

.sub-nav button.danger b {
  background: #fef3f2;
  color: var(--red);
}

.sub-nav button.active b {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.sub-nav button.active em {
  color: #cbd5e1;
}

.workflow-strip {
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  margin-bottom: 14px;
  padding: 10px;
}

.workflow-strip > i {
  align-self: center;
  background: var(--line);
  display: block;
  height: 1px;
  width: 22px;
}

.workflow-step {
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  display: flex;
  gap: 9px;
  min-width: 0;
  padding: 10px;
}

.workflow-step > span {
  align-items: center;
  border-radius: 7px;
  display: inline-flex;
  flex: 0 0 30px;
  font-size: 12px;
  font-weight: 900;
  height: 30px;
  justify-content: center;
}

.workflow-step strong,
.workflow-step em {
  display: block;
}

.workflow-step strong {
  font-size: 13px;
}

.workflow-step em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
  margin-top: 2px;
}

.workflow-step.open > span {
  background: #ecfdf3;
  color: var(--green);
}

.workflow-step.pending > span {
  background: #fffaeb;
  color: var(--amber);
}

.workflow-step.neutral > span {
  background: #eef2f6;
  color: #475467;
}

.view {
  display: none;
}

.view.active {
  display: grid;
  gap: 16px;
}

.hero-board,
.module-hero,
.panel,
.metric-card {
  background: var(--surface);
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  box-shadow: var(--shadow-soft), var(--shadow-inset);
}

.hero-board,
.module-hero {
  align-items: stretch;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) 320px;
  padding: 16px;
}

.module-hero {
  align-items: center;
}

.module-hero {
  background:
    linear-gradient(90deg, rgba(29, 78, 216, 0.08), rgba(255, 255, 255, 0) 38%),
    var(--surface);
  border-color: #d8e2ef;
}

.hero-main {
  background: linear-gradient(180deg, #f9fbff, #fff);
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  padding: 16px;
}

.ops-readiness {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
}

.readiness-item {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  padding: 9px 10px;
}

.readiness-item span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
}

.readiness-item strong {
  display: block;
  font-size: 16px;
  margin-top: 4px;
}

.readiness-item.open {
  border-left: 3px solid var(--green);
}

.readiness-item.pending {
  border-left: 3px solid var(--amber);
}

.readiness-item.danger {
  border-left: 3px solid var(--red);
}

.hero-main h2,
.module-hero h2 {
  font-size: 22px;
  margin-top: 5px;
}

.hero-countdown {
  background: linear-gradient(180deg, #111827, #1f2937);
  border-radius: 7px;
  color: #fff;
  padding: 18px;
}

.hero-countdown span {
  color: #cbd5e1;
  display: block;
  font-size: 12px;
  font-weight: 800;
}

.hero-countdown strong {
  display: block;
  font-size: 28px;
  margin: 6px 0 10px;
}

.hero-countdown dl {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto;
  margin: 14px 0 0;
}

.hero-countdown dt {
  color: #cbd5e1;
}

.hero-countdown dd {
  font-weight: 900;
  margin: 0;
}

.metric-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.metric-card {
  min-height: 108px;
  padding: 15px;
}

.metric-card span,
.metric-card em {
  color: var(--muted);
  display: block;
  font-style: normal;
}

.metric-card strong {
  display: block;
  font-size: 24px;
  margin: 8px 0 5px;
}

.metric-card.open {
  border-left: 4px solid var(--green);
}

.metric-card.pending {
  border-left: 4px solid var(--amber);
}

.metric-card.danger {
  border-left: 4px solid var(--red);
}

.work-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.module-section {
  background:
    linear-gradient(180deg, #f8fafc, #eef3f8);
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  box-shadow: var(--shadow-soft), var(--shadow-inset);
  display: grid;
  gap: 14px;
  padding: 16px;
  scroll-margin-top: 18px;
}

.module-section > .panel {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), var(--shadow-inset);
}

.module-section .work-grid {
  gap: 12px;
}

.section-title {
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px;
}

.section-title > span {
  align-items: center;
  background: #111827;
  border-radius: 7px;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  height: 30px;
  justify-content: center;
  min-width: 34px;
}

.section-title h2 {
  font-size: 18px;
}

.section-title::after {
  background: #e7edf5;
  border-radius: 999px;
  color: #475467;
  content: "子板块";
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 9px;
}

.section-title > div {
  min-width: 0;
}

.subsection-shell {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 12px;
}

.subsection-toolbar {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  padding: 10px 12px;
}

.subsection-toolbar strong {
  display: block;
}

.subsection-toolbar span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-top: 3px;
}

.analysis-board {
  background: var(--surface);
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  box-shadow: var(--shadow-soft), var(--shadow-inset);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  padding: 15px;
}

.view:not(#view-command) .module-section {
  background: #ffffff;
  border: 1px solid #d7dfeb;
  box-shadow: var(--shadow-soft), var(--shadow-inset);
  gap: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
  scroll-margin-top: 110px;
}

.view:not(#view-command) .module-section::before {
  background: linear-gradient(180deg, #111827, #243142);
  color: #fff;
  content: attr(data-section-index);
  font-size: 13px;
  font-weight: 900;
  height: 100%;
  left: 0;
  padding-top: 16px;
  position: absolute;
  text-align: center;
  top: 0;
  width: 54px;
}

.view:not(#view-command) .module-section > .panel,
.view:not(#view-command) .module-section > .analysis-board {
  margin: 0 16px 16px 70px;
}

.view:not(#view-command) .module-section .work-grid {
  background: #f6f8fb;
  border-top: 1px solid var(--line-soft);
  gap: 12px;
  margin-left: 54px;
  padding: 14px 16px 16px;
}

.subsection-workbench {
  background: #f8fafc;
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(180px, 0.8fr) minmax(220px, 1fr) minmax(260px, 1.1fr);
  margin-left: 54px;
  padding: 12px 16px;
}

.subsection-lane {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
}

.subsection-lane span,
.subsection-lane em {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-style: normal;
}

.subsection-lane span {
  font-weight: 900;
}

.subsection-lane strong {
  display: block;
  font-size: 13px;
  min-width: 0;
}

.subsection-lane.open {
  border-left: 4px solid var(--green);
}

.subsection-lane.pending {
  border-left: 4px solid var(--amber);
}

.subsection-lane.danger {
  border-left: 4px solid var(--red);
}

.subsection-lane.audit {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
}

.subsection-lane.audit span,
.subsection-lane.audit strong {
  grid-column: 1;
}

.subsection-lane.audit .btn {
  grid-column: 2;
  grid-row: 1 / span 3;
}

.view:not(#view-command) .section-title {
  align-items: flex-start;
  background: linear-gradient(90deg, #f8fafc, #fff 46%);
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
  margin-left: 54px;
  padding: 16px;
}

.view:not(#view-command) .section-title > span {
  background: #edf2f7;
  color: #111827;
  height: 32px;
  min-width: 38px;
}

.view:not(#view-command) .section-title h2 {
  font-size: 19px;
}

.view:not(#view-command) .section-title::after {
  background: #eef2f6;
  color: #475467;
  content: attr(data-section-owner);
  max-width: 260px;
  overflow: hidden;
  padding: 6px 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.view:not(#view-command) .module-section .panel {
  border-color: #dce3ed;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), var(--shadow-inset);
}

.view:not(#view-command) .module-section .panel::before {
  background: #e5eaf1;
  content: "";
  display: block;
  height: 3px;
  margin: -1px -1px 0;
}

.view:not(#view-command) .module-section .panel-head {
  background: linear-gradient(180deg, #fff, #fafbfc);
  border-bottom: 1px solid var(--line-soft);
  margin: -14px -14px 12px;
  padding: 13px 14px;
}

.panel-ribbon {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr) minmax(180px, 0.8fr);
  margin: -2px 0 12px;
  padding: 8px 10px;
}

.panel-ribbon span {
  background: #eef2f6;
  border-radius: 999px;
  color: #475467;
  font-size: 12px;
  font-weight: 900;
  padding: 4px 8px;
}

.panel-ribbon strong {
  font-size: 12px;
  min-width: 0;
}

.panel-ribbon em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  min-width: 0;
}

.analysis-main,
.analysis-side {
  min-width: 0;
}

.compact-analysis {
  box-shadow: none;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.75fr);
}

.command-ops-board {
  background:
    linear-gradient(180deg, #0f172a, #1f2937);
  border: 1px solid #27364d;
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: #fff;
  display: grid;
  gap: 14px;
  padding: 16px;
  scroll-margin-top: 18px;
}

.command-ops-board p,
.command-ops-board .eyebrow {
  color: #cbd5e1;
}

.board-head {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.board-head h2 {
  color: #fff;
  font-size: 21px;
  margin-top: 4px;
}

.board-status {
  align-items: stretch;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  min-width: 330px;
}

.board-status .info-row,
.ops-focus-card .info-row {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.board-status .info-row span,
.board-status .info-row strong,
.ops-focus-card .info-row span,
.ops-focus-card .info-row strong {
  color: #fff;
}

.ops-lifecycle {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lifecycle-step {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  min-height: 142px;
  padding: 12px;
}

.lifecycle-step header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.lifecycle-step h3 {
  color: #fff;
  font-size: 15px;
  margin: 0;
}

.lifecycle-step strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.lifecycle-step span,
.lifecycle-step em {
  color: #cbd5e1;
  display: block;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.lifecycle-step.danger {
  border-left: 4px solid #ef4444;
}

.lifecycle-step.pending {
  border-left: 4px solid #f59e0b;
}

.lifecycle-step.open {
  border-left: 4px solid #22c55e;
}

.ops-focus-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
}

.ops-focus-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  min-width: 0;
  padding: 13px;
}

.ops-focus-card .panel-head h2 {
  color: #fff;
}

.owner-load {
  display: grid;
  gap: 8px;
}

.owner-load-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(78px, 0.8fr) minmax(0, 1fr) auto;
}

.owner-load-row span {
  color: #e5e7eb;
  font-size: 12px;
  font-weight: 900;
}

.owner-load-bar {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.owner-load-bar i {
  background: #60a5fa;
  display: block;
  height: 100%;
}

.module-ops-board {
  background:
    linear-gradient(180deg, #ffffff, #f7f9fc);
  border: 1px solid #d8e2ef;
  border-radius: 8px;
  box-shadow: var(--shadow-soft), var(--shadow-inset);
  display: grid;
  gap: 13px;
  padding: 15px;
  scroll-margin-top: 18px;
}

.module-layout {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(218px, 0.7fr) minmax(0, 2.35fr) minmax(260px, 0.9fr);
}

.module-layout-nav,
.module-layout-side {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 104px;
}

.module-layout-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.module-map {
  background: #ffffff;
  border: 1px solid #d7dfeb;
  border-radius: 8px;
  box-shadow: var(--shadow-soft), var(--shadow-inset);
  display: grid;
  gap: 12px;
  padding: 14px;
}

.module-layout-nav .module-map {
  gap: 10px;
  padding: 12px;
}

.module-map-head {
  align-items: flex-start;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding-bottom: 12px;
}

.module-layout-nav .module-map-head {
  display: grid;
}

.module-map-head h2 {
  font-size: 19px;
  margin-top: 4px;
}

.module-layout-nav .module-map-head h2 {
  font-size: 16px;
}

.module-layout-nav .module-map-head p {
  display: none;
}

.module-map-owner {
  background: #f3f6fa;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  min-width: 170px;
  padding: 10px 12px;
}

.module-layout-nav .module-map-owner {
  min-width: 0;
  padding: 8px 10px;
}

.module-map-owner span,
.module-map-owner strong {
  display: block;
}

.module-map-owner span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.module-map-owner strong {
  margin-top: 4px;
}

.module-map-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.module-layout-nav .module-map-grid {
  gap: 8px;
  grid-template-columns: 1fr;
}

.module-map-card {
  background: linear-gradient(180deg, #fff, #fafbfc);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 5px;
  min-height: 116px;
  padding: 12px;
  text-align: left;
}

.module-layout-nav .module-map-card {
  align-items: center;
  gap: 7px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 72px;
  padding: 10px;
}

.module-map-card:hover {
  border-color: #b8c2d0;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.module-map-card b {
  align-items: center;
  background: #eef2f6;
  border-radius: 6px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  height: 28px;
  justify-content: center;
  width: 32px;
}

.module-map-card span,
.module-map-card strong,
.module-map-card em {
  display: block;
}

.module-map-card span {
  font-size: 15px;
  font-weight: 900;
}

.module-map-card strong {
  font-size: 13px;
}

.module-map-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.module-layout-nav .module-map-card span,
.module-layout-nav .module-map-card strong,
.module-layout-nav .module-map-card em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-layout-nav .module-map-card b {
  grid-row: span 3;
}

.module-map-card.open {
  border-left: 4px solid var(--green);
}

.module-map-card.pending {
  border-left: 4px solid var(--amber);
}

.module-map-card.danger {
  border-left: 4px solid var(--red);
}

.module-map-card.open b {
  background: #ecfdf3;
  color: var(--green);
}

.module-map-card.pending b {
  background: #fffaeb;
  color: var(--amber);
}

.module-map-card.danger b {
  background: #fef3f2;
  color: var(--red);
}

.closure-desk {
  background:
    linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid #d7dfeb;
  border-radius: 8px;
  box-shadow: var(--shadow-soft), var(--shadow-inset);
  display: grid;
  gap: 13px;
  padding: 15px;
}

.module-layout-side .closure-desk {
  gap: 11px;
  padding: 12px;
}

.closure-head {
  align-items: flex-start;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding-bottom: 12px;
}

.module-layout-side .closure-head {
  display: grid;
}

.module-layout-side .closure-head p {
  display: none;
}

.closure-head h2 {
  font-size: 20px;
  margin-top: 4px;
}

.module-layout-side .closure-head h2 {
  font-size: 16px;
}

.closure-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(240px, 1.1fr) minmax(240px, 0.9fr) minmax(220px, 0.8fr);
}

.module-layout-side .closure-grid {
  grid-template-columns: 1fr;
}

.closure-column {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  min-width: 0;
  padding: 12px;
}

.module-layout-side .closure-column {
  padding: 10px;
}

.module-layout-side .closure-column.actions {
  display: none;
}

.closure-column h3 {
  font-size: 14px;
  margin: 0 0 10px;
}

.closure-list,
.closure-actions,
.closure-evidence {
  display: grid;
  gap: 8px;
}

.closure-item,
.closure-action {
  background: #f8fafc;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 4px;
  padding: 10px;
  text-align: left;
}

.closure-item {
  grid-template-columns: auto minmax(0, 1fr);
}

.closure-item b {
  align-items: center;
  background: #eef2f6;
  border-radius: 6px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  grid-row: span 2;
  height: 28px;
  justify-content: center;
  width: 32px;
}

.closure-item span,
.closure-action strong {
  font-weight: 900;
}

.closure-item em,
.closure-action span {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.closure-item:hover,
.closure-action:hover {
  border-color: #b8c2d0;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.closure-item.open {
  border-left: 4px solid var(--green);
}

.closure-item.pending {
  border-left: 4px solid var(--amber);
}

.closure-item.danger {
  border-left: 4px solid var(--red);
}

.closure-item.open b {
  background: #ecfdf3;
  color: var(--green);
}

.closure-item.pending b {
  background: #fffaeb;
  color: var(--amber);
}

.closure-item.danger b {
  background: #fef3f2;
  color: var(--red);
}

.gate-standard {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 10px;
}

.gate-standard span {
  color: #9a3412;
  font-size: 12px;
  font-weight: 900;
}

.gate-standard strong {
  color: #7c2d12;
  font-size: 12px;
  line-height: 1.45;
}

.module-ops-head {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.module-ops-head h2 {
  font-size: 20px;
  margin-top: 4px;
}

.module-ops-status {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(86px, 1fr));
  min-width: 320px;
}

.module-ops-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.module-step {
  background: linear-gradient(180deg, #fff, #fbfcfe);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  min-height: 128px;
  padding: 12px;
}

.module-step header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.module-step h3 {
  font-size: 14px;
  margin: 0;
}

.module-step strong {
  display: block;
  font-size: 26px;
  line-height: 1;
}

.module-step span,
.module-step em {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.module-step.danger {
  border-left: 4px solid var(--red);
}

.module-step.pending {
  border-left: 4px solid var(--amber);
}

.module-step.open {
  border-left: 4px solid var(--green);
}

.module-action-rail {
  background: #f3f6fa;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 10px;
}

.command-control {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.34fr);
}

.control-main,
.control-side {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.control-side {
  position: sticky;
  top: 104px;
}

.control-panel {
  background: #fff;
  border: 1px solid #d6deea;
  border-radius: 8px;
  box-shadow: var(--shadow-soft), var(--shadow-inset);
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
}

.control-head {
  align-items: flex-start;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding-bottom: 11px;
}

.control-head.compact {
  padding-bottom: 9px;
}

.control-head h2 {
  font-size: 18px;
  margin-top: 4px;
}

.situation-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.situation-card {
  background: #f8fafc;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 6px;
  min-height: 118px;
  padding: 11px;
  position: relative;
  text-align: left;
}

.situation-card:hover,
.decision-item:hover,
.signal-row:hover,
.command-action:hover {
  background: #fff;
  border-color: #b8c2d0;
}

.situation-card span,
.situation-card strong,
.situation-card em,
.situation-card b {
  display: block;
}

.situation-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.situation-card strong {
  font-size: 18px;
}

.situation-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.4;
}

.situation-card b {
  background: #eef2f6;
  border-radius: 999px;
  bottom: 10px;
  color: #475467;
  font-size: 11px;
  padding: 4px 7px;
  position: absolute;
  right: 10px;
}

.situation-card.open {
  border-left: 4px solid var(--green);
}

.situation-card.pending {
  border-left: 4px solid var(--amber);
}

.situation-card.danger {
  border-left: 4px solid var(--red);
}

.decision-list,
.signal-list,
.command-action-list {
  display: grid;
  gap: 8px;
}

.decision-item {
  background: #f8fafc;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 3px 9px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 74px;
  padding: 10px;
  text-align: left;
}

.decision-item b {
  align-items: center;
  background: #eef2f6;
  border-radius: 6px;
  display: inline-flex;
  font-size: 11px;
  grid-row: span 3;
  height: 30px;
  justify-content: center;
  width: 34px;
}

.decision-item span,
.decision-item strong,
.decision-item em {
  display: block;
  min-width: 0;
}

.decision-item span {
  font-weight: 900;
}

.decision-item strong,
.decision-item em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.decision-item.open {
  border-left: 4px solid var(--green);
}

.decision-item.pending {
  border-left: 4px solid var(--amber);
}

.decision-item.danger {
  border-left: 4px solid var(--red);
}

.signal-row {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 48px;
  padding: 9px 10px;
  text-align: left;
}

.signal-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.signal-row strong {
  font-size: 13px;
}

.signal-row.open {
  border-left: 4px solid var(--green);
}

.signal-row.pending {
  border-left: 4px solid var(--amber);
}

.signal-row.danger {
  border-left: 4px solid var(--red);
}

.command-action {
  background: #f8fafc;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 10px;
  text-align: left;
}

.command-action.primary {
  background: #111827;
  border-color: #111827;
  color: #fff;
}

.command-action strong,
.command-action span {
  display: block;
}

.command-action span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.command-action.primary span {
  color: #cbd5e1;
}

.launch-board {
  background: #ffffff;
  border: 1px solid #d6deea;
  border-radius: 8px;
  box-shadow: var(--shadow-soft), var(--shadow-inset);
  display: grid;
  gap: 12px;
  padding: 15px;
}

.launch-head {
  align-items: flex-start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 0.26fr);
}

.launch-head h2 {
  font-size: 20px;
  margin-top: 4px;
}

.launch-score {
  background: #f8fafc;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  display: grid;
  gap: 3px;
  min-height: 94px;
  padding: 12px;
}

.launch-score span,
.launch-score em {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.launch-score strong {
  display: block;
  font-size: 28px;
  line-height: 1.1;
}

.launch-score.open {
  border-left: 4px solid var(--green);
}

.launch-score.pending {
  border-left: 4px solid var(--amber);
}

.launch-score.danger {
  border-left: 4px solid var(--red);
}

.launch-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.launch-item {
  background: #f8fafc;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 5px;
  min-height: 112px;
  padding: 11px;
  text-align: left;
}

.launch-item:hover {
  background: #fff;
  border-color: #b8c2d0;
}

.launch-item span,
.launch-item strong,
.launch-item em {
  display: block;
}

.launch-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.launch-item strong {
  font-size: 17px;
}

.launch-item em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.4;
}

.launch-item.open {
  border-left: 4px solid var(--green);
}

.launch-item.danger {
  border-left: 4px solid var(--red);
}

.release-gates {
  background: #f3f6fa;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  padding: 10px;
}

.release-gate {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  color: var(--text);
  display: grid;
  gap: 4px 9px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 64px;
  padding: 9px 10px;
  text-align: left;
}

button.release-gate {
  cursor: pointer;
}

.release-gate b {
  align-items: center;
  background: #eef2f6;
  border-radius: 6px;
  display: inline-flex;
  font-size: 11px;
  height: 28px;
  justify-content: center;
  width: 32px;
}

.release-gate span,
.release-gate strong {
  display: block;
  min-width: 0;
}

.release-gate strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  grid-column: 2;
}

.release-gate.open {
  border-left: 4px solid var(--green);
}

.release-gate.danger {
  border-left: 4px solid var(--red);
}

.rail-action {
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 5px;
  min-height: 84px;
  padding: 10px;
  text-align: left;
}

.rail-action:hover {
  border-color: #b8c2d0;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.rail-action strong,
.rail-action span {
  display: block;
}

.rail-action span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.ops-command-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(360px, 1.45fr) minmax(250px, 0.8fr) minmax(250px, 0.8fr);
}

.ops-column {
  background: var(--surface);
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  box-shadow: var(--shadow-soft), var(--shadow-inset);
  min-width: 0;
  padding: 15px;
}

.ops-column.primary {
  min-height: 360px;
}

#commandPulse,
#commandDrawPulseSection,
#commandSystemPulse {
  display: none;
}

.panel {
  min-width: 0;
  padding: 15px;
  scroll-margin-top: 18px;
}

.hero-board,
.module-hero,
.ops-command-grid,
.work-grid,
.module-section,
.panel {
  scroll-margin-top: 18px;
}

.panel.span-2 {
  grid-column: span 2;
}

.panel-head {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.panel-head h2 {
  color: #111827;
}

.task-list,
.health-list,
.maturity-grid,
.mini-list,
.form-stack,
.action-grid,
.template-grid,
.scope-checklist,
.restore-grid {
  display: grid;
  gap: 10px;
}

.compact-list {
  gap: 8px;
}

.ticket-composer {
  background: #f8fafc;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 12px;
}

.ticket-composer[hidden] {
  display: none;
}

.task-item,
.health-item,
.maturity-item,
.info-row,
.empty-card {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 10px 11px;
}

.empty-card {
  color: var(--muted);
  min-height: 74px;
}

.compact-list .health-item,
.compact-list .info-row {
  min-height: 58px;
  padding: 9px 10px;
}

.task-item:hover,
.health-item:hover,
.maturity-item:hover,
.info-row:hover {
  background: #fff;
  border-color: #ccd5e1;
}

.task-item {
  color: inherit;
  display: block;
  text-align: left;
  width: 100%;
}

.task-actions {
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 10px;
  padding-top: 10px;
}

.command-ops-board .task-actions {
  border-color: rgba(255, 255, 255, 0.12);
}

.task-top {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 7px;
}

.task-top span,
.task-item em {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-style: normal;
}

.task-item em {
  border-top: 1px solid var(--line-soft);
  margin-top: 9px;
  padding-top: 8px;
}

.task-item strong,
.health-item strong,
.info-row strong {
  display: block;
}

.task-item span,
.health-item span,
.info-row span,
small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-top: 3px;
}

.task-item.danger,
.health-item.danger,
.maturity-item.danger {
  border-left: 4px solid var(--red);
}

.task-item.pending,
.health-item.pending,
.maturity-item.pending {
  border-left: 4px solid var(--amber);
}

.health-item.open,
.maturity-item.open {
  border-left: 4px solid var(--green);
}

.health-item {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.health-item {
  color: inherit;
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.health-item div {
  min-width: 0;
}

.maturity-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.maturity-item {
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 7px;
  min-height: 132px;
  text-align: left;
}

.maturity-item span,
.maturity-item em {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-style: normal;
}

.maturity-item strong {
  align-items: end;
  display: flex;
  font-size: 30px;
  gap: 3px;
  line-height: 1;
}

.maturity-item small {
  color: var(--muted);
  display: inline;
  font-size: 12px;
  margin: 0 0 3px;
}

.form-stack label,
.template-grid label {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 5px;
}

.compact-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.role-editor {
  background: #f8fafc;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 12px;
}

.role-editor .form-stack {
  grid-template-columns: 180px minmax(260px, 1fr);
}

.scope-checklist {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.scope-checklist label {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  min-height: 40px;
  padding: 8px 10px;
}

.scope-checklist input {
  min-height: 0;
}

.health-actions {
  background: #f8fafc;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
}

.health-actions label {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 5px;
}

.span-full {
  grid-column: 1 / -1;
}

.action-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.template-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.restore-grid {
  grid-template-columns: minmax(0, 1fr) 160px 220px auto;
  margin-top: 12px;
}

.restore-grid textarea {
  min-height: 72px;
}

.table-wrap {
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #fff;
  overflow: auto;
}

.inbox-table-wrap {
  max-height: 390px;
}

table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 860px;
  width: 100%;
}

.compact-table table {
  min-width: 520px;
}

th,
td {
  border-bottom: 1px solid var(--line-soft);
  padding: 9px 11px;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

th {
  background: #f3f6fa;
  color: #475467;
  font-size: 12px;
  font-weight: 900;
  position: sticky;
  top: 0;
  z-index: 1;
}

td {
  background: #fff;
  font-size: 13px;
}

tbody tr:hover td {
  background: #fbfcfe;
}

.empty {
  color: var(--muted);
  text-align: center;
}

.pill {
  background: #eef2f6;
  border-radius: 999px;
  color: #475467;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  padding: 4px 8px;
}

.pill.open {
  background: #ecfdf3;
  color: var(--green);
}

.pill.pending {
  background: #fffaeb;
  color: var(--amber);
}

.pill.danger {
  background: #fef3f2;
  color: var(--red);
}

.pill.used {
  background: #f4f3ff;
  color: var(--violet);
}

.pill.neutral {
  background: #f2f4f7;
  color: #475467;
}

.link-button {
  background: transparent;
  border: 0;
  color: var(--blue);
  cursor: pointer;
  display: block;
  font-weight: 900;
  padding: 0;
  text-align: left;
}

.approval-code {
  background: #eef4ff;
  border: 1px solid #c7d7fe;
  border-radius: 6px;
  color: var(--primary);
  cursor: pointer;
  display: inline-flex;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  padding: 5px 8px;
}

.approval-code:hover {
  background: #dbeafe;
  border-color: #93b4fd;
}

.trace-progress {
  display: grid;
  gap: 6px;
  min-width: 120px;
}

.trace-progress i {
  background: #eef2f6;
  border-radius: 999px;
  display: block;
  height: 8px;
  overflow: hidden;
}

.trace-progress b {
  background: var(--primary);
  display: block;
  height: 100%;
}

.trace-progress em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.cell-title {
  display: grid;
  gap: 3px;
  min-width: 180px;
  max-width: 340px;
}

.cell-title strong {
  color: #111827;
  line-height: 1.25;
}

.cell-title small {
  line-height: 1.45;
  white-space: normal;
}

.profile-card {
  display: grid;
  gap: 12px;
}

.profile-empty {
  color: var(--muted);
  display: grid;
  min-height: 230px;
  place-items: center;
  text-align: center;
}

.profile-head {
  background: linear-gradient(180deg, #f8fafc, #fff);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.profile-head strong {
  display: block;
  font-size: 18px;
}

.profile-head span {
  color: var(--muted);
  font-size: 12px;
}

.profile-kpis {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-kpis .info-row {
  min-height: 72px;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.row-selected td {
  background: #eff6ff;
}

.impact-box,
.json-box,
.detail-grid {
  background: #0f172a;
  border-radius: 7px;
  color: #e5e7eb;
  margin-top: 12px;
  padding: 12px;
}

.impact-box {
  border: 1px solid #1e293b;
  min-height: 120px;
}

.mini-list .info-row {
  background: #fff;
}

.detail-grid {
  background: #f8fafc;
  color: var(--text);
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trace-timeline {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.timeline-step {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 36px minmax(0, 1fr);
  padding: 10px;
}

.timeline-step > span {
  align-items: center;
  background: #eef2f6;
  border-radius: 7px;
  color: #475467;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.timeline-step strong,
.timeline-step small {
  display: block;
}

.timeline-step small {
  color: var(--muted);
  margin-top: 2px;
}

.timeline-step.done {
  border-left: 4px solid var(--green);
}

.timeline-step.active {
  border-left: 4px solid var(--primary);
}

.timeline-step.active > span {
  background: #eef4ff;
  color: var(--primary);
}

.json-box {
  overflow: auto;
  white-space: pre-wrap;
}

.log-text {
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}


.leaderboard-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.leaderboard-user {
  display: grid;
  gap: 2px;
  min-width: 120px;
}

.leaderboard-user strong {
  color: #f8f3dd;
  font-size: 13px;
  line-height: 1.25;
}

.leaderboard-user small {
  color: #a9b19e;
  font-size: 12px;
  line-height: 1.2;
  margin-top: 0;
}

.toast-host {
  bottom: 18px;
  display: grid;
  gap: 8px;
  position: fixed;
  right: 18px;
  z-index: 30;
}

.toast {
  background: #101828;
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: #fff;
  max-width: 360px;
  padding: 11px 14px;
}

.toast.error {
  background: var(--red);
}

.modal[hidden] {
  display: none;
}

.modal {
  inset: 0;
  position: fixed;
  z-index: 40;
}

.modal-backdrop {
  background: rgba(15, 23, 42, 0.45);
  inset: 0;
  position: absolute;
}

.modal-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  left: 50%;
  max-height: 84vh;
  max-width: 760px;
  overflow: auto;
  padding: 18px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(760px, calc(100vw - 32px));
}

.modal-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.confirm-card {
  max-width: 520px;
}

.confirm-card label {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 900;
  gap: 7px;
}

.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 14px;
}

@media (max-width: 1180px) {
  .metric-grid,
  .work-grid,
  .ops-command-grid,
  .analysis-board,
  .closure-grid,
  .command-control,
  .module-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .control-main {
    grid-column: span 2;
  }

  .control-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-column: span 2;
    position: static;
  }

  .module-layout-nav {
    grid-column: span 2;
    position: static;
  }

  .module-layout-side {
    position: static;
  }

  .module-layout-nav .module-map-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ops-lifecycle,
  .ops-focus-grid,
  .situation-grid,
  .launch-grid,
  .module-ops-grid,
  .module-action-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-column.primary {
    grid-column: span 2;
  }

  .panel.span-2 {
    grid-column: span 2;
  }

  .hero-board,
  .module-hero {
    grid-template-columns: 1fr;
  }

  .sub-nav {
    grid-template-columns: 1fr;
    position: static;
  }

  .sub-nav-track {
    grid-auto-columns: minmax(170px, 220px);
  }
}

@media (max-width: 820px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    height: auto;
    position: static;
  }

  .main-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar,
  .panel-head,
  .module-map-head,
  .closure-head {
    display: grid;
  }

  .top-actions,
  .module-actions,
  .filters,
  .split-actions {
    justify-content: start;
  }

  .metric-grid,
  .work-grid,
  .ops-command-grid,
  .analysis-board,
  .closure-grid,
  .command-control,
  .control-side,
  .situation-grid,
  .module-layout,
  .subsection-workbench,
  .ops-lifecycle,
  .ops-focus-grid,
  .module-ops-grid,
  .module-action-rail,
  .workflow-strip,
  .maturity-grid,
  .compact-form,
  .role-editor .form-stack,
  .template-grid,
  .restore-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .module-layout-nav,
  .module-layout-side {
    grid-column: auto;
    position: static;
  }

  .module-layout-nav .module-map-grid {
    grid-template-columns: 1fr;
  }

  .workflow-strip > i {
    display: none;
  }

  .sub-nav-track {
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    overflow-x: visible;
  }

  .board-head {
    display: grid;
  }

  .launch-head,
  .launch-grid {
    grid-template-columns: 1fr;
  }

  .module-ops-head {
    display: grid;
  }

  .board-status {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .module-ops-status {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .module-map-owner {
    min-width: 0;
  }

  .ops-column.primary {
    grid-column: auto;
  }

  .panel.span-2 {
    grid-column: auto;
  }

  .view:not(#view-command) .module-section::before {
    height: 46px;
    padding-top: 14px;
    width: 46px;
  }

  .view:not(#view-command) .section-title,
  .view:not(#view-command) .module-section .work-grid,
  .subsection-workbench {
    margin-left: 46px;
  }

  .view:not(#view-command) .section-title {
    display: grid;
  }

  .view:not(#view-command) .section-title::after {
    justify-self: start;
    max-width: 100%;
  }

  .view:not(#view-command) .module-section > .panel,
  .view:not(#view-command) .module-section > .analysis-board {
    margin: 0 12px 12px 58px;
  }

  .subsection-lane.audit {
    grid-template-columns: 1fr;
  }

  .subsection-lane.audit .btn {
    grid-column: auto;
    grid-row: auto;
    justify-self: start;
  }

  .panel-ribbon {
    grid-template-columns: 1fr;
  }

  .panel-ribbon span {
    justify-self: start;
  }

  .search-input {
    min-width: 0;
    width: 100%;
  }

  .app-main {
    padding: 12px;
  }
}

/* FINAL CASINO THEME OVERRIDE - keep this block last */
body.casino-theme {
  background:
    radial-gradient(circle at 20% 0%, rgba(248, 211, 95, 0.22), transparent 330px),
    radial-gradient(circle at 100% 16%, rgba(185, 28, 28, 0.22), transparent 360px),
    linear-gradient(135deg, #030b08 0%, #062018 44%, #030f0b 100%) !important;
  color: #f7f3df;
}

body.casino-theme::before {
  background:
    linear-gradient(rgba(248, 211, 95, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 211, 95, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

.casino-theme .app-sidebar {
  background:
    radial-gradient(circle at 50% 0%, rgba(248, 211, 95, 0.20), transparent 220px),
    linear-gradient(180deg, #040d0a, #0b2a1f) !important;
  border-right: 1px solid rgba(248, 211, 95, 0.26);
}

.casino-theme .theme-stamp {
  background: linear-gradient(90deg, rgba(248, 211, 95, 0.18), rgba(185, 28, 28, 0.16));
  border: 1px solid rgba(248, 211, 95, 0.32);
  border-radius: 8px;
  color: #f8d35f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  padding: 8px 10px;
  text-align: center;
}

.casino-theme .brand-mark {
  background: radial-gradient(circle at 35% 30%, #fff4b8, #f8d35f 46%, #9a6a12 100%) !important;
  border: 1px solid rgba(255, 244, 184, 0.72);
  box-shadow: 0 0 0 4px rgba(248, 211, 95, 0.13), 0 12px 28px rgba(0, 0, 0, 0.28);
  color: #201300;
}

.casino-theme .topbar,
.casino-theme .sub-nav,
.casino-theme .workflow-strip,
.casino-theme .hero-board,
.casino-theme .module-hero,
.casino-theme .command-workspace,
.casino-theme .panel,
.casino-theme .metric-card,
.casino-theme .launch-board,
.casino-theme .command-ops-board,
.casino-theme .control-panel,
.casino-theme .ops-column,
.casino-theme .module-ops-board,
.casino-theme .analysis-board,
.casino-theme .module-map,
.casino-theme .closure-desk,
.casino-theme .module-section,
.casino-theme .task-item,
.casino-theme .health-item,
.casino-theme .maturity-item,
.casino-theme .info-row,
.casino-theme .empty-card {
  background: linear-gradient(180deg, rgba(17, 45, 34, 0.96), rgba(6, 23, 17, 0.96)) !important;
  border-color: rgba(248, 211, 95, 0.24) !important;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  color: #f7f3df !important;
}

.casino-theme .hero-main,
.casino-theme .module-step,
.casino-theme .rail-action,
.casino-theme .launch-item,
.casino-theme .release-gate,
.casino-theme .situation-card,
.casino-theme .decision-item,
.casino-theme .signal-row,
.casino-theme .command-action,
.casino-theme .closure-column,
.casino-theme .closure-item,
.casino-theme .closure-action,
.casino-theme .subsection-lane,
.casino-theme .readiness-item,
.casino-theme .module-map-card,
.casino-theme .module-map-owner,
.casino-theme .subsection-toolbar,
.casino-theme .ticket-composer,
.casino-theme .profile-head {
  background: linear-gradient(180deg, rgba(21, 61, 45, 0.98), rgba(8, 30, 22, 0.98)) !important;
  border-color: rgba(248, 211, 95, 0.22) !important;
  color: #f7f3df !important;
}

.casino-theme .command-workspace {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(220px, 0.58fr) minmax(0, 1.85fr) minmax(300px, 0.78fr);
  padding: 14px;
}

.casino-theme .command-workspace-rail,
.casino-theme .command-workspace-main,
.casino-theme .command-workspace-side {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.casino-theme .command-workspace-rail,
.casino-theme .command-workspace-side {
  position: sticky;
  top: 104px;
}

.casino-theme .command-workspace-rail #commandMetrics {
  grid-template-columns: 1fr;
}

.casino-theme .command-workspace-side .panel.span-2 {
  grid-column: auto;
}

.casino-theme .brand-block strong,
.casino-theme .main-nav span,
.casino-theme h1,
.casino-theme h2,
.casino-theme .panel-head h2,
.casino-theme .control-head h2,
.casino-theme .module-map-head h2,
.casino-theme .closure-head h2 {
  color: #fff7db !important;
}

.casino-theme p,
.casino-theme .brand-block span,
.casino-theme .side-health span,
.casino-theme .side-health em,
.casino-theme .metric-card span,
.casino-theme .metric-card em,
.casino-theme .info-row span,
.casino-theme .module-step span,
.casino-theme .module-step em,
.casino-theme .rail-action span,
.casino-theme .launch-item em,
.casino-theme .situation-card em,
.casino-theme .decision-item strong,
.casino-theme .decision-item em,
.casino-theme .command-action span {
  color: rgba(247, 243, 223, 0.68) !important;
}

.casino-theme .eyebrow,
.casino-theme .metric-card strong,
.casino-theme .module-step strong,
.casino-theme .launch-score strong,
.casino-theme .situation-card strong {
  color: #f8d35f !important;
  text-shadow: 0 0 18px rgba(248, 211, 95, 0.18);
}

.casino-theme .hero-countdown {
  background:
    radial-gradient(circle at top, rgba(248, 211, 95, 0.20), transparent 170px),
    linear-gradient(180deg, #260c0c, #07150f) !important;
  border: 1px solid rgba(248, 211, 95, 0.38);
}

.casino-theme .hero-board {
  background:
    linear-gradient(90deg, rgba(9, 36, 27, 0.97), rgba(48, 12, 12, 0.76)),
    radial-gradient(circle at 75% 20%, rgba(248, 211, 95, 0.20), transparent 260px) !important;
}

.casino-theme .hero-main {
  border-left: 4px solid #f8d35f !important;
}

.casino-theme .btn {
  background: linear-gradient(180deg, #ffe594, #c88719) !important;
  border-color: rgba(255, 235, 159, 0.58) !important;
  color: #1d1203 !important;
}

.casino-theme .btn.secondary,
.casino-theme .btn.ghost {
  background: rgba(248, 211, 95, 0.11) !important;
  border-color: rgba(248, 211, 95, 0.30) !important;
  color: #f8d35f !important;
}

.casino-theme input,
.casino-theme select,
.casino-theme textarea,
.casino-theme .search-input {
  background: rgba(4, 16, 12, 0.78) !important;
  border-color: rgba(248, 211, 95, 0.26) !important;
  color: #f7f3df !important;
}

.casino-theme th {
  background: #10261d !important;
  color: #f8d35f !important;
}

.casino-theme td {
  background: rgba(9, 29, 22, 0.95) !important;
  color: #f7f3df !important;
}

.casino-theme tbody tr:hover td,
.casino-theme .row-selected td {
  background: rgba(248, 211, 95, 0.11) !important;
}

.casino-theme .cell-title strong {
  color: #fff7db !important;
}

.casino-theme .pill.open {
  background: rgba(34, 197, 94, 0.14) !important;
  color: #86efac !important;
}

.casino-theme .pill.pending {
  background: rgba(248, 211, 95, 0.14) !important;
  color: #fde68a !important;
}

.casino-theme .pill.danger {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #fca5a5 !important;
}

@media (max-width: 1180px) {
  .casino-theme .command-workspace {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  }

  .casino-theme .command-workspace-rail {
    grid-column: span 2;
    grid-template-columns: minmax(240px, 0.6fr) minmax(0, 1fr);
    position: static;
  }
}

@media (max-width: 820px) {
  .casino-theme .command-workspace,
  .casino-theme .command-workspace-rail,
  .casino-theme .command-workspace-main,
  .casino-theme .command-workspace-side {
    grid-template-columns: 1fr;
  }

  .casino-theme .command-workspace-rail,
  .casino-theme .command-workspace-side {
    grid-column: auto;
    position: static;
  }
}

/* Clean operations admin v5 EOF override */
body.enterprise-ops { background: #080d0b !important; color: #f5f0dc !important; }
body.enterprise-ops::before { display: none !important; }
.enterprise-ops .app-sidebar { background: #07110d !important; border-right-color: rgba(245,208,93,.18) !important; }
.enterprise-ops .topbar,
.enterprise-ops .sub-nav,
.enterprise-ops .hero-board,
.enterprise-ops .module-hero,
.enterprise-ops .panel,
.enterprise-ops .metric-card,
.enterprise-ops .control-panel,
.enterprise-ops .ops-column,
.enterprise-ops .analysis-board,
.enterprise-ops .module-section,
.enterprise-ops .health-item,
.enterprise-ops .info-row,
.enterprise-ops .empty-card,
.enterprise-ops .ops-status-card { background: #101811 !important; border-color: rgba(245,208,93,.14) !important; box-shadow: none !important; color: #f5f0dc !important; }
.enterprise-ops h1,
.enterprise-ops h2,
.enterprise-ops h3,
.enterprise-ops strong,
.enterprise-ops .panel-head h2,
.enterprise-ops .section-title h2,
.enterprise-ops .cell-title strong { color: #fff8dc !important; text-shadow: none !important; }
.enterprise-ops p,
.enterprise-ops span,
.enterprise-ops em,
.enterprise-ops small,
.enterprise-ops td,
.enterprise-ops .metric-card span,
.enterprise-ops .metric-card em,
.enterprise-ops .info-row span { color: #d5ceb7 !important; text-shadow: none !important; }
.enterprise-ops .eyebrow,
.enterprise-ops .metric-card strong,
.enterprise-ops .ops-status-card strong,
.enterprise-ops th { color: #e9c85c !important; text-shadow: none !important; }
.enterprise-ops .workflow-strip,
.enterprise-ops .module-map,
.enterprise-ops .closure-desk,
.enterprise-ops .module-ops-board,
.enterprise-ops .panel-ribbon,
.enterprise-ops .subsection-workbench,
.enterprise-ops #moduleSituationPanel,
.enterprise-ops #commandOpsBoard,
.enterprise-ops #commandMaturity,
.enterprise-ops #launchReadinessBoard,
.enterprise-ops #telegramOpsBoard,
.enterprise-ops #telegramCommandBoard,
.enterprise-ops #telegramClosureDesk { display: none !important; }
.enterprise-ops .command-workspace { background: transparent !important; border: 0 !important; box-shadow: none !important; grid-template-columns: 220px minmax(0, 1fr) 320px !important; padding: 0 !important; }
.enterprise-ops .module-layout { grid-template-columns: minmax(0, 1fr) 320px !important; }
.enterprise-ops .module-layout-nav { display: none !important; }
.enterprise-ops .btn { background: #d7b447 !important; border-color: #d7b447 !important; color: #140f03 !important; }
.enterprise-ops .btn.secondary,
.enterprise-ops .btn.ghost { background: #121a13 !important; border-color: rgba(245,208,93,.24) !important; color: #e9c85c !important; }
.enterprise-ops input,
.enterprise-ops select,
.enterprise-ops textarea,
.enterprise-ops .search-input { background: #090f0b !important; border-color: rgba(245,208,93,.22) !important; color: #fff8dc !important; }
@media (max-width: 1280px) { .enterprise-ops .command-workspace, .enterprise-ops .module-layout { grid-template-columns: minmax(0, 1fr) !important; } }

/* Compact operations admin v6 EOF override */
.enterprise-ops .hero-board,
.enterprise-ops .module-hero,
.enterprise-ops #commandHero,
.enterprise-ops #commandMetrics,
.enterprise-ops .view > .metric-grid,
.enterprise-ops #userMetrics,
.enterprise-ops #drawMetrics,
.enterprise-ops #financeMetrics,
.enterprise-ops #riskMetrics,
.enterprise-ops #systemMetrics { display: none !important; }
.enterprise-ops .topbar { padding: 10px 12px !important; min-height: 58px !important; }
.enterprise-ops .topbar p,
.enterprise-ops .topbar .eyebrow { display: none !important; }
.enterprise-ops h1 { font-size: 18px !important; margin: 0 !important; }
.enterprise-ops .ops-status-bar { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 6px !important; margin-bottom: 8px !important; }
.enterprise-ops .ops-status-card { min-height: 58px !important; padding: 8px 10px !important; }
.enterprise-ops .ops-status-card strong { font-size: 18px !important; }
.enterprise-ops .ops-status-card span,
.enterprise-ops .ops-status-card em { font-size: 11px !important; }
.enterprise-ops .sub-nav { margin-bottom: 8px !important; padding: 6px !important; position: sticky !important; top: 0 !important; z-index: 30 !important; }
.enterprise-ops .sub-nav-head { padding: 8px !important; }
.enterprise-ops .sub-nav button { min-height: 40px !important; padding: 6px 8px !important; }
.enterprise-ops .view.active { gap: 8px !important; }
.enterprise-ops .command-workspace { grid-template-columns: minmax(0, 1fr) 300px !important; }
.enterprise-ops .command-workspace-rail { display: none !important; }
.enterprise-ops .command-workspace-side { top: 76px !important; }
.enterprise-ops .module-layout { grid-template-columns: minmax(0, 1fr) 300px !important; }
.enterprise-ops .panel,
.enterprise-ops .module-section,
.enterprise-ops .ops-column,
.enterprise-ops .control-panel { padding: 10px !important; }
.enterprise-ops .panel-head,
.enterprise-ops .section-title { margin-bottom: 6px !important; }
.enterprise-ops .section-title span { display: none !important; }
.enterprise-ops .work-grid,
.enterprise-ops .metric-grid,
.enterprise-ops .filters { gap: 6px !important; }
.enterprise-ops .filters { margin: 6px 0 8px !important; }
.enterprise-ops th,
.enterprise-ops td { padding: 7px 8px !important; }
.enterprise-ops .table-wrap { max-height: 560px !important; }
.enterprise-ops .info-row { min-height: auto !important; padding: 8px !important; }
@media (max-width: 1280px) { .enterprise-ops .command-workspace, .enterprise-ops .module-layout { grid-template-columns: 1fr !important; } .enterprise-ops .command-workspace-side { position: static !important; } }
@media (max-width: 760px) { .enterprise-ops .ops-status-bar { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }

/* Function entry admin v7 EOF override */
.enterprise-ops .sub-nav {
  display: grid !important;
  grid-template-columns: 180px minmax(0, 1fr) !important;
  align-items: stretch !important;
  gap: 8px !important;
  background: #0b140e !important;
}
.enterprise-ops .sub-nav-head {
  background: #111d14 !important;
  border: 1px solid rgba(233, 200, 92, .16) !important;
  border-radius: 6px !important;
}
.enterprise-ops .sub-nav-track {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
  gap: 6px !important;
  overflow: visible !important;
}
.enterprise-ops .sub-nav button {
  width: 100% !important;
  justify-content: flex-start !important;
  background: #111912 !important;
  border: 1px solid rgba(233, 200, 92, .14) !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}
.enterprise-ops .sub-nav button.active {
  background: linear-gradient(180deg, #2b2210, #151d12) !important;
  border-color: rgba(233, 200, 92, .55) !important;
}
.enterprise-ops .sub-nav button.active span,
.enterprise-ops .sub-nav button.active b {
  color: #ffe58a !important;
}
.enterprise-ops [data-entry-item="true"],
.enterprise-ops [data-entry-host="true"] {
  display: none !important;
}
.enterprise-ops [data-active-entry="true"] {
  display: block !important;
}
.enterprise-ops .ops-command-grid[data-active-entry="true"],
.enterprise-ops .work-grid[data-active-entry="true"],
.enterprise-ops .module-section[data-active-entry="true"] .work-grid,
.enterprise-ops .leaderboard-grid[data-active-entry="true"] {
  display: grid !important;
}
.enterprise-ops .module-section[data-active-entry="true"] {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}
.enterprise-ops .module-section[data-active-entry="true"] > .section-title {
  display: none !important;
}
.enterprise-ops .module-layout-main,
.enterprise-ops .command-workspace-main,
.enterprise-ops .command-workspace-side {
  display: block !important;
}
.enterprise-ops .command-workspace {
  grid-template-columns: minmax(0, 1fr) !important;
}
.enterprise-ops .command-workspace-side {
  display: contents !important;
}
.enterprise-ops .analysis-board {
  display: none !important;
}
.enterprise-ops #view-command .command-workspace-main > :not([data-entry-item="true"]),
.enterprise-ops #view-command .command-workspace-side > :not([data-entry-item="true"]) {
  display: none !important;
}
@media (max-width: 900px) {
  .enterprise-ops .sub-nav {
    grid-template-columns: 1fr !important;
  }
  .enterprise-ops .sub-nav-track {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 560px) {
  .enterprise-ops .sub-nav-track {
    grid-template-columns: 1fr !important;
  }
}

/* Entry layout repair v8 EOF override */
body.enterprise-ops,
.enterprise-ops .app-shell,
.enterprise-ops .app-main,
.enterprise-ops .view,
.enterprise-ops .module-layout,
.enterprise-ops .module-layout-main,
.enterprise-ops .command-workspace,
.enterprise-ops .command-workspace-main {
  background: #070d0a !important;
}
.enterprise-ops .module-layout {
  display: block !important;
  width: 100% !important;
}
.enterprise-ops .module-layout-main,
.enterprise-ops .command-workspace-main {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}
.enterprise-ops .module-section[data-active-entry="true"] {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  overflow: visible !important;
}
.enterprise-ops .module-section[data-active-entry="true"]::before,
.enterprise-ops .module-section[data-active-entry="true"]::after {
  display: none !important;
  content: none !important;
}
.enterprise-ops .module-section[data-active-entry="true"] > .work-grid {
  background: transparent !important;
  border: 0 !important;
  grid-template-columns: 1fr !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}
.enterprise-ops [data-active-entry="true"].panel,
.enterprise-ops .module-section[data-active-entry="true"] .panel[data-active-entry="true"],
.enterprise-ops .module-section[data-active-entry="true"] > .panel[data-active-entry="true"] {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}
.enterprise-ops .panel,
.enterprise-ops .ops-column,
.enterprise-ops .control-panel,
.enterprise-ops .table-wrap,
.enterprise-ops .form-stack,
.enterprise-ops .filters {
  background: #101811 !important;
  border-color: rgba(245, 208, 93, .14) !important;
}
.enterprise-ops .table-wrap {
  width: 100% !important;
  max-width: none !important;
  overflow: auto !important;
}
.enterprise-ops table {
  min-width: 100% !important;
}
.enterprise-ops .panel-head {
  background: transparent !important;
  border-color: rgba(245, 208, 93, .10) !important;
}
.enterprise-ops .subsection-workbench,
.enterprise-ops .subsection-shell,
.enterprise-ops .subsection-toolbar,
.enterprise-ops .subsection-lane {
  background: #101811 !important;
  border-color: rgba(245, 208, 93, .14) !important;
}
.enterprise-ops .analysis-board[data-active-entry="true"] {
  display: grid !important;
  grid-template-columns: 1fr !important;
  background: #101811 !important;
  width: 100% !important;
}
.enterprise-ops .alert-strip {
  background: #101811 !important;
  border-color: rgba(245, 208, 93, .18) !important;
  color: #f5f0dc !important;
}

/* Section focus operations v9 EOF override */
.enterprise-ops [data-entry-companion="true"] {
  display: none !important;
}
.enterprise-ops .module-section[data-active-entry="true"] > .panel[data-active-entry="true"],
.enterprise-ops .module-section[data-active-entry="true"] .work-grid > .panel[data-active-entry="true"],
.enterprise-ops .module-section[data-active-entry="true"] .work-grid > .analysis-board[data-active-entry="true"],
.enterprise-ops .module-section[data-active-entry="true"] .work-grid > .control-panel[data-active-entry="true"] {
  display: block !important;
}
.enterprise-ops .module-section[data-active-entry="true"] .panel:not([data-active-entry="true"]):not([data-entry-item="true"]) {
  display: none !important;
}
.enterprise-ops .panel {
  border-radius: 6px !important;
  min-height: 0 !important;
}
.enterprise-ops .panel-head {
  align-items: center !important;
  display: flex !important;
  gap: 10px !important;
  justify-content: space-between !important;
}
.enterprise-ops .panel-head h2 {
  font-size: 16px !important;
  line-height: 1.2 !important;
}
.enterprise-ops .panel-head p {
  display: none !important;
}
.enterprise-ops .filters,
.enterprise-ops .module-actions,
.enterprise-ops .split-actions,
.enterprise-ops .action-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}
.enterprise-ops .filters > *,
.enterprise-ops .module-actions > *,
.enterprise-ops .split-actions > *,
.enterprise-ops .action-grid > * {
  flex: 0 0 auto !important;
}
.enterprise-ops select,
.enterprise-ops input,
.enterprise-ops textarea {
  max-width: 100% !important;
}
.enterprise-ops .form-stack,
.enterprise-ops .compact-form,
.enterprise-ops .restore-grid,
.enterprise-ops .template-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 10px !important;
}
.enterprise-ops textarea,
.enterprise-ops .restore-grid textarea,
.enterprise-ops .template-grid textarea {
  min-height: 110px !important;
}
.enterprise-ops .span-full,
.enterprise-ops .restore-grid textarea,
.enterprise-ops .template-grid label {
  grid-column: 1 / -1 !important;
}
.enterprise-ops .leaderboard-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}
.enterprise-ops .leaderboard-card {
  background: #0b120d !important;
  border: 1px solid rgba(245, 208, 93, .14) !important;
  border-radius: 8px !important;
  min-width: 0 !important;
  padding: 10px !important;
}
.enterprise-ops .leaderboard-card .compact-head {
  border-top: 0 !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
}
.enterprise-ops .warrior-ops-summary {
  display: grid !important;
  gap: 8px !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  margin: 10px 0 !important;
}
.enterprise-ops .warrior-ops-summary .info-row {
  background: rgba(245, 208, 93, .06) !important;
  border: 1px solid rgba(245, 208, 93, .14) !important;
  border-radius: 8px !important;
  min-height: 72px !important;
  padding: 10px !important;
}
.enterprise-ops .warrior-ops-summary .info-row:first-child {
  grid-column: span 2 !important;
}
.enterprise-ops .mini-list,
.enterprise-ops .health-list,
.enterprise-ops .profile-card,
.enterprise-ops .impact-box {
  background: #101811 !important;
  border-color: rgba(245, 208, 93, .14) !important;
  color: #f5f0dc !important;
}
.enterprise-ops .empty-card {
  background: #0b140e !important;
  border-color: rgba(245, 208, 93, .14) !important;
  color: #d5ceb7 !important;
}
.enterprise-ops .table-wrap.compact-table,
.enterprise-ops .compact-table {
  max-height: 620px !important;
}
@media (max-width: 900px) {
  .enterprise-ops .leaderboard-grid {
    grid-template-columns: 1fr !important;
  }
  .enterprise-ops .warrior-ops-summary {
    grid-template-columns: 1fr !important;
  }
  .enterprise-ops .warrior-ops-summary .info-row:first-child {
    grid-column: auto !important;
  }
}

/* Inbox focus v10 EOF override */
.enterprise-ops #commandInbox[data-active-entry="true"] {
  grid-template-columns: 1fr !important;
}
.enterprise-ops #commandInbox[data-active-entry="true"] > .ops-column:not(.primary) {
  display: none !important;
}
.enterprise-ops #commandInbox[data-active-entry="true"] > .ops-column.primary {
  width: 100% !important;
  max-width: none !important;
}
.enterprise-ops #commandInbox[data-active-entry="true"] .inbox-table-wrap {
  max-height: 650px !important;
}

/* Operations prune v11 EOF override */
.enterprise-ops #commandDrawPulseSection,
.enterprise-ops #commandFinancePulse,
.enterprise-ops #commandSystemPulse,
.enterprise-ops #commandHealth,
.enterprise-ops #commandRecent,
.enterprise-ops #commandMaturity {
  display: none !important;
}
.enterprise-ops #commandTrace[data-active-entry="true"] .compact-table,
.enterprise-ops #commandTrace[data-active-entry="true"] .table-wrap,
.enterprise-ops #commandShiftReport[data-active-entry="true"] .mini-list {
  max-height: 680px !important;
}
.enterprise-ops #commandShiftReport[data-active-entry="true"] .module-actions {
  margin-left: auto !important;
}

/* Alert strip removal v12 EOF override */
.enterprise-ops #alertStrip,
.enterprise-ops .alert-strip {
  display: none !important;
}

/* User center merge v13 EOF override */
.enterprise-ops #usersProfile,
.enterprise-ops #usersBulkOps,
.enterprise-ops #usersActions,
.enterprise-ops #usersGuesses,
.enterprise-ops #usersLedgers {
  display: none !important;
}
.enterprise-ops #usersDirectory[data-active-entry="true"] {
  width: 100% !important;
  max-width: none !important;
}
.enterprise-ops #usersDirectory[data-active-entry="true"] .filters {
  width: 100% !important;
}
.enterprise-ops #userSearch {
  min-width: 280px !important;
}
.enterprise-ops .list-count {
  background: rgba(245, 208, 93, .08) !important;
  border: 1px solid rgba(245, 208, 93, .16) !important;
  border-radius: 6px !important;
  color: #f5f0dc !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  margin: 0 0 8px !important;
  padding: 8px 10px !important;
}
.enterprise-ops .directory-toolbar {
  align-items: center !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  justify-content: space-between !important;
  margin: 0 0 8px !important;
}
.enterprise-ops .directory-toolbar .list-count {
  flex: 1 1 360px !important;
  margin: 0 !important;
}
.enterprise-ops .directory-pager {
  align-items: center !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  gap: 6px !important;
}
.enterprise-ops .directory-pager span {
  color: #f5f0dc !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  min-width: 74px !important;
  text-align: center !important;
}
.enterprise-ops .user-detail-shell {
  display: grid !important;
  gap: 12px !important;
}
.enterprise-ops .user-detail-tabs,
.enterprise-ops .user-detail-pager,
.enterprise-ops .user-detail-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  align-items: center !important;
}
.enterprise-ops .user-detail-pager {
  justify-content: flex-end !important;
}
.enterprise-ops .user-history-table {
  max-height: 430px !important;
}
.enterprise-ops .user-detail-tags {
  margin-top: 10px !important;
}
@media (max-width: 720px) {
  .enterprise-ops #userSearch {
    min-width: 100% !important;
  }
  .enterprise-ops .user-detail-pager {
    justify-content: flex-start !important;
  }
}

/* Single entry nav v14 EOF override */
.enterprise-ops .sub-nav[data-single-entry="true"] {
  display: flex !important;
  align-items: center !important;
  min-height: 38px !important;
  padding: 4px 0 !important;
  margin-bottom: 8px !important;
  background: transparent !important;
  border: 0 !important;
  position: static !important;
}
.enterprise-ops .sub-nav[data-single-entry="true"] .sub-nav-head {
  display: none !important;
}
.enterprise-ops .sub-nav[data-single-entry="true"] .sub-nav-track {
  display: flex !important;
  width: 100% !important;
  gap: 0 !important;
}
.enterprise-ops .sub-nav[data-single-entry="true"] button {
  min-height: 36px !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 8px 12px !important;
  background: #101811 !important;
  border: 1px solid rgba(245, 208, 93, .18) !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}
.enterprise-ops .sub-nav[data-single-entry="true"] button b {
  display: none !important;
}
.enterprise-ops .sub-nav[data-single-entry="true"] button span {
  font-size: 14px !important;
  font-weight: 800 !important;
}
.enterprise-ops .sub-nav[data-single-entry="true"] button em {
  font-size: 12px !important;
  margin: 0 !important;
  color: #d5ceb7 !important;
}

/* Dark modal detail v15 EOF override */
.enterprise-ops .modal-backdrop {
  background: rgba(2, 6, 4, .72) !important;
}
.enterprise-ops .modal-card {
  background: #0b120d !important;
  border: 1px solid rgba(245, 208, 93, .24) !important;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .62) !important;
  color: #f5f0dc !important;
}
.enterprise-ops .modal-head {
  border-bottom: 1px solid rgba(245, 208, 93, .12) !important;
  margin-bottom: 12px !important;
  padding-bottom: 10px !important;
}
.enterprise-ops .modal-head h2 {
  color: #ffe58a !important;
  text-shadow: none !important;
}
.enterprise-ops .modal-head p {
  color: #d5ceb7 !important;
}
.enterprise-ops #modalBody,
.enterprise-ops .user-detail-shell,
.enterprise-ops .detail-grid {
  background: transparent !important;
  color: #f5f0dc !important;
}
.enterprise-ops .detail-grid .info-row,
.enterprise-ops .user-detail-shell .info-row {
  background: #101811 !important;
  border: 1px solid rgba(245, 208, 93, .13) !important;
}
.enterprise-ops .detail-grid .info-row span,
.enterprise-ops .user-detail-shell .info-row span {
  color: #d5ceb7 !important;
}
.enterprise-ops .detail-grid .info-row strong,
.enterprise-ops .user-detail-shell .info-row strong {
  color: #fff7cf !important;
}
.enterprise-ops .user-detail-actions {
  justify-content: flex-end !important;
}

/* Global exposure guard v16 EOF override */
body.enterprise-ops {
  --page: #070d0a !important;
  --surface: #101811 !important;
  --surface-2: #0c150f !important;
  --surface-3: #111d14 !important;
  --section: #0b140e !important;
  --text: #f5f0dc !important;
  --muted: #d5ceb7 !important;
  --line: rgba(245, 208, 93, .18) !important;
  --line-soft: rgba(245, 208, 93, .12) !important;
  --shadow: 0 18px 46px rgba(0, 0, 0, .34) !important;
  --shadow-soft: 0 8px 22px rgba(0, 0, 0, .22) !important;
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, .04) !important;
  background: #070d0a !important;
  color: #f5f0dc !important;
}
.enterprise-ops .topbar,
.enterprise-ops .panel,
.enterprise-ops .ops-column,
.enterprise-ops .control-panel,
.enterprise-ops .module-section,
.enterprise-ops .analysis-board,
.enterprise-ops .metric-card,
.enterprise-ops .ops-status-card,
.enterprise-ops .table-wrap,
.enterprise-ops .filters,
.enterprise-ops .form-stack,
.enterprise-ops .compact-form,
.enterprise-ops .template-grid,
.enterprise-ops .restore-grid,
.enterprise-ops .scope-checklist,
.enterprise-ops .role-editor,
.enterprise-ops .ticket-composer,
.enterprise-ops .mini-list,
.enterprise-ops .health-list,
.enterprise-ops .profile-card,
.enterprise-ops .impact-box,
.enterprise-ops .json-box,
.enterprise-ops .empty-card,
.enterprise-ops .task-item,
.enterprise-ops .health-item,
.enterprise-ops .maturity-item,
.enterprise-ops .info-row,
.enterprise-ops .modal-card,
.enterprise-ops .subsection-toolbar,
.enterprise-ops .subsection-lane,
.enterprise-ops .telegram-health-card,
.enterprise-ops .closure-column,
.enterprise-ops .closure-item,
.enterprise-ops .closure-action,
.enterprise-ops .rail-action {
  background: #101811 !important;
  border-color: rgba(245, 208, 93, .14) !important;
  box-shadow: none !important;
  color: #f5f0dc !important;
}
.enterprise-ops .system-health-overview {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.enterprise-ops .system-health-overview .health-item {
  min-height: 108px;
}
.enterprise-ops .system-health-overview .health-item em {
  max-width: 120px;
  overflow-wrap: anywhere;
  text-align: right;
}
@media (max-width: 1180px) {
  .enterprise-ops .system-health-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .enterprise-ops .system-health-overview {
    grid-template-columns: minmax(0, 1fr);
  }
}
.enterprise-ops .task-item:hover,
.enterprise-ops .health-item:hover,
.enterprise-ops .maturity-item:hover,
.enterprise-ops .info-row:hover,
.enterprise-ops .rail-action:hover,
.enterprise-ops .closure-item:hover,
.enterprise-ops .closure-action:hover {
  background: #142018 !important;
  border-color: rgba(245, 208, 93, .26) !important;
  color: #fff7cf !important;
}
.enterprise-ops table,
.enterprise-ops thead,
.enterprise-ops tbody,
.enterprise-ops tr,
.enterprise-ops td,
.enterprise-ops th {
  background-color: transparent !important;
  color: #f5f0dc !important;
}
.enterprise-ops thead th,
.enterprise-ops th {
  background: #0b140e !important;
  color: #e9c85c !important;
}
.enterprise-ops tbody tr:hover,
.enterprise-ops tbody tr:nth-child(even):hover,
.enterprise-ops tbody tr:nth-child(odd):hover {
  background: rgba(245, 208, 93, .06) !important;
}
.enterprise-ops tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, .015) !important;
}
.enterprise-ops h1,
.enterprise-ops h2,
.enterprise-ops h3,
.enterprise-ops strong,
.enterprise-ops .cell-title strong,
.enterprise-ops .panel-head h2,
.enterprise-ops .modal-head h2 {
  color: #fff7cf !important;
  text-shadow: none !important;
}
.enterprise-ops p,
.enterprise-ops em,
.enterprise-ops small,
.enterprise-ops label,
.enterprise-ops .cell-title small,
.enterprise-ops .panel-head p,
.enterprise-ops .info-row span,
.enterprise-ops .task-item span,
.enterprise-ops .task-item em,
.enterprise-ops .health-item span,
.enterprise-ops .maturity-item span,
.enterprise-ops .maturity-item em {
  color: #d5ceb7 !important;
  text-shadow: none !important;
}
.enterprise-ops input,
.enterprise-ops select,
.enterprise-ops textarea,
.enterprise-ops .search-input {
  background: #090f0b !important;
  border-color: rgba(245, 208, 93, .22) !important;
  color: #fff7cf !important;
}
.enterprise-ops input::placeholder,
.enterprise-ops textarea::placeholder {
  color: rgba(213, 206, 183, .62) !important;
}
.enterprise-ops .modal-card,
.enterprise-ops .confirm-card {
  background: #0b120d !important;
}
.enterprise-ops .modal-backdrop {
  background: rgba(2, 6, 4, .78) !important;
}
.enterprise-ops .empty,
.enterprise-ops td.empty {
  background: #0c150f !important;
  color: #d5ceb7 !important;
}
.enterprise-ops [style*="background: #fff"],
.enterprise-ops [style*="background:#fff"],
.enterprise-ops [style*="background: white"],
.enterprise-ops [style*="background:white"],
.enterprise-ops [style*="background-color: #fff"],
.enterprise-ops [style*="background-color:#fff"],
.enterprise-ops [style*="background-color: white"],
.enterprise-ops [style*="background-color:white"] {
  background: #101811 !important;
  color: #f5f0dc !important;
}

/* Badge and checkbox exposure guard v17 EOF override */
.enterprise-ops .pill,
.enterprise-ops .pill.open,
.enterprise-ops .pill.pending,
.enterprise-ops .pill.danger,
.enterprise-ops .pill.used,
.enterprise-ops .pill.neutral {
  background: #111d14 !important;
  border: 1px solid rgba(245, 208, 93, .22) !important;
  box-shadow: none !important;
  color: #f5d45f !important;
  text-shadow: none !important;
}
.enterprise-ops .pill.open {
  border-color: rgba(69, 208, 130, .32) !important;
  color: #8ee6a8 !important;
}
.enterprise-ops .pill.pending {
  border-color: rgba(245, 208, 93, .36) !important;
  color: #ffe58a !important;
}
.enterprise-ops .pill.danger {
  border-color: rgba(244, 92, 92, .34) !important;
  color: #ffb4a8 !important;
}
.enterprise-ops .scope-checklist label,
.enterprise-ops .role-editor .scope-checklist label {
  background: #101811 !important;
  border: 1px solid rgba(245, 208, 93, .16) !important;
  box-shadow: none !important;
  color: #f5f0dc !important;
}
.enterprise-ops .scope-checklist label:hover,
.enterprise-ops .role-editor .scope-checklist label:hover {
  background: #142018 !important;
  border-color: rgba(245, 208, 93, .28) !important;
}
.enterprise-ops .scope-checklist label span,
.enterprise-ops .scope-checklist label strong {
  color: #f5f0dc !important;
}
.enterprise-ops .scope-checklist label small {
  color: #d5ceb7 !important;
}
.enterprise-ops input[type="checkbox"] {
  accent-color: #d7b447 !important;
  background: #090f0b !important;
  border: 1px solid rgba(245, 208, 93, .28) !important;
  color: #111d14 !important;
}
.enterprise-ops .profile-tags,
.enterprise-ops .user-detail-tags {
  background: transparent !important;
}
.enterprise-ops .profile-tags .pill,
.enterprise-ops .user-detail-tags .pill {
  background: #111d14 !important;
  border-color: rgba(245, 208, 93, .24) !important;
  color: #ffe58a !important;
}

/* Modal timeline exposure guard v18 EOF override */
.enterprise-ops .modal-card #modalBody,
.enterprise-ops .modal-card .detail-grid,
.enterprise-ops .modal-card .trace-timeline,
.enterprise-ops .modal-card .split-actions,
.enterprise-ops .modal-card .modal-actions {
  background: transparent !important;
  color: #f5f0dc !important;
}
.enterprise-ops .modal-card .detail-grid {
  gap: 8px !important;
}
.enterprise-ops .modal-card .timeline-step,
.enterprise-ops .modal-card .trace-timeline .timeline-step,
.enterprise-ops .modal-card .empty-card {
  background: #101811 !important;
  border: 1px solid rgba(245, 208, 93, .16) !important;
  box-shadow: none !important;
  color: #f5f0dc !important;
}
.enterprise-ops .modal-card .timeline-step.done,
.enterprise-ops .modal-card .trace-timeline .timeline-step.done {
  border-left: 4px solid rgba(69, 208, 130, .78) !important;
}
.enterprise-ops .modal-card .timeline-step.active,
.enterprise-ops .modal-card .trace-timeline .timeline-step.active {
  border-left: 4px solid rgba(245, 208, 93, .88) !important;
}
.enterprise-ops .modal-card .timeline-step > span,
.enterprise-ops .modal-card .trace-timeline .timeline-step > span {
  background: #17231a !important;
  border: 1px solid rgba(245, 208, 93, .16) !important;
  color: #e9c85c !important;
}
.enterprise-ops .modal-card .timeline-step.active > span,
.enterprise-ops .modal-card .trace-timeline .timeline-step.active > span {
  background: rgba(245, 208, 93, .16) !important;
  border-color: rgba(245, 208, 93, .36) !important;
  color: #ffe58a !important;
}
.enterprise-ops .modal-card .timeline-step strong,
.enterprise-ops .modal-card .timeline-step small,
.enterprise-ops .modal-card .trace-timeline .timeline-step strong,
.enterprise-ops .modal-card .trace-timeline .timeline-step small {
  text-shadow: none !important;
}
.enterprise-ops .modal-card .timeline-step strong,
.enterprise-ops .modal-card .trace-timeline .timeline-step strong {
  color: #fff7cf !important;
}
.enterprise-ops .modal-card .timeline-step small,
.enterprise-ops .modal-card .trace-timeline .timeline-step small {
  color: #d5ceb7 !important;
}
.enterprise-ops .modal-card .btn.secondary {
  background: #111d14 !important;
  border-color: rgba(245, 208, 93, .22) !important;
  color: #f5d45f !important;
}
.enterprise-ops .modal-card .btn.secondary:hover {
  background: #17231a !important;
  border-color: rgba(245, 208, 93, .36) !important;
  color: #ffe58a !important;
}
.enterprise-ops .modal-card [class*="step"],
.enterprise-ops .modal-card [class*="tag"],
.enterprise-ops .modal-card [class*="badge"],
.enterprise-ops .modal-card [class*="pill"] {
  text-shadow: none !important;
}

/* Command overview status bar v19 EOF override */
.enterprise-ops .ops-status-bar[hidden] {
  display: none !important;
}
.enterprise-ops body[data-current-view="command"] .ops-status-bar,
body.enterprise-ops[data-current-view="command"] .ops-status-bar {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}
.enterprise-ops .ops-status-card[data-status-card="result"] strong,
.enterprise-ops .ops-status-card[data-status-card="net"] strong {
  color: #ffe58a !important;
}
.enterprise-ops .ops-status-card[data-status-card="net"].danger strong {
  color: #ffb4a8 !important;
}
@media (max-width: 1200px) {
  body.enterprise-ops[data-current-view="command"] .ops-status-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Draw center prune v20 EOF override */
body.enterprise-ops #drawAlertsSection,
body.enterprise-ops #drawIncidentsSection,
body.enterprise-ops #drawManualSection {
  display: none !important;
}

/* Finance center prune v21 EOF override */
body.enterprise-ops #financeExceptions,
body.enterprise-ops #financeReconcile,
body.enterprise-ops #financePlays {
  display: none !important;
}

/* Warrior leaderboard module v41 EOF marker */
body.enterprise-ops #financeSummaryBoard,
body.enterprise-ops #financeGroups {
  display: none !important;
}

/* System access control v42 EOF marker */
.enterprise-ops .system-access-section .work-grid {
  align-items: start !important;
  grid-template-columns: minmax(260px, .82fr) minmax(0, 1.18fr) !important;
}

.enterprise-ops .system-access-section .system-account-form {
  align-self: stretch !important;
}

.enterprise-ops .system-access-section .system-account-table,
.enterprise-ops .system-access-section #systemRoleMatrix {
  grid-column: auto / span 1 !important;
}

.enterprise-ops .system-access-section #systemRoleMatrix {
  grid-column: 1 / -1 !important;
}

.enterprise-ops .system-access-section .role-editor {
  margin-bottom: 12px !important;
}

.enterprise-ops .system-access-section .scope-checklist {
  max-height: 260px !important;
  overflow: auto !important;
}

@media (max-width: 1180px) {
  .enterprise-ops .system-access-section .work-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Editable risk rules v43 EOF marker */
.enterprise-ops .risk-rule-editor .panel-head {
  align-items: center !important;
  gap: 12px !important;
}

.enterprise-ops .risk-rule-editor input[type="number"] {
  font-family: Consolas, "SFMono-Regular", monospace !important;
  font-weight: 800 !important;
}

.enterprise-ops .risk-rule-preview {
  margin-top: 12px !important;
}

/* Risk review prune v22 EOF override */
body.enterprise-ops #riskReview {
  display: none !important;
}

/* System approvals prune v23 EOF override */
body.enterprise-ops #systemApprovals {
  display: none !important;
}

/* Main nav badge removal v25 EOF override */
body.enterprise-ops .main-nav b {
  display: none !important;
}

/* Finance exception visibility removal v26 EOF marker */

/* Operations standard entry integrity v27 EOF marker */
/* Weekly leaderboard rules v28 EOF marker */
/* Leaderboard username display v29 EOF marker */
/* Chinese toast error v30 EOF marker */
/* Risk bulk review and rule note v31 EOF marker */

/* Dashboard redesign v32 EOF marker */
/* Dashboard runtime fix v33 EOF marker */

/* Login isolation v34 EOF marker */
/* Dashboard prune and layout v35 EOF marker */
/* Tech casino visual system v36 EOF marker */
body.enterprise-ops {
  background:
    radial-gradient(circle at 18% 8%, rgba(38, 255, 136, .14), transparent 340px),
    radial-gradient(circle at 82% 0%, rgba(255, 202, 73, .16), transparent 380px),
    linear-gradient(135deg, #030806 0%, #071612 46%, #030506 100%) !important;
  color: #f4f8e8 !important;
}
body.enterprise-ops::before {
  background:
    linear-gradient(rgba(70, 255, 150, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 255, 150, .055) 1px, transparent 1px),
    radial-gradient(circle at 50% 20%, rgba(255, 214, 92, .08), transparent 40%) !important;
  background-size: 28px 28px, 28px 28px, 100% 100% !important;
  opacity: 1 !important;
}
.enterprise-ops .app-sidebar {
  background:
    linear-gradient(180deg, rgba(5, 16, 13, .98), rgba(3, 8, 7, .99)),
    radial-gradient(circle at 50% 0%, rgba(255, 214, 92, .22), transparent 230px) !important;
  border-right: 1px solid rgba(83, 255, 156, .20) !important;
  box-shadow: 14px 0 40px rgba(0, 0, 0, .32) !important;
}
.enterprise-ops .brand-mark {
  background:
    radial-gradient(circle at 35% 28%, #fff8bc 0 18%, #ffd650 42%, #a76f0c 78%, #3a2104 100%) !important;
  border: 1px solid rgba(255, 232, 130, .80) !important;
  box-shadow: 0 0 0 3px rgba(255, 214, 92, .14), 0 0 28px rgba(255, 214, 92, .30) !important;
  color: #1b1000 !important;
}
.enterprise-ops .theme-stamp {
  background:
    linear-gradient(90deg, rgba(31, 255, 126, .12), rgba(255, 214, 92, .18), rgba(255, 58, 58, .10)) !important;
  border-color: rgba(255, 214, 92, .38) !important;
  color: #ffe58a !important;
  text-shadow: 0 0 14px rgba(255, 214, 92, .32) !important;
}
.enterprise-ops .main-nav button {
  background: rgba(8, 22, 17, .72) !important;
  border: 1px solid rgba(83, 255, 156, .12) !important;
  border-radius: 8px !important;
  color: #cfe9d8 !important;
}
.enterprise-ops .main-nav button:hover,
.enterprise-ops .main-nav button.active {
  background:
    linear-gradient(90deg, rgba(38, 255, 136, .20), rgba(255, 214, 92, .12)) !important;
  border-color: rgba(83, 255, 156, .42) !important;
  box-shadow: inset 3px 0 0 #47ff97, 0 0 22px rgba(38, 255, 136, .10) !important;
}
.enterprise-ops .topbar,
.enterprise-ops .dashboard-panel,
.enterprise-ops .metric-card,
.enterprise-ops .info-row,
.enterprise-ops .health-item,
.enterprise-ops .dashboard-action {
  backdrop-filter: blur(10px) !important;
}
.enterprise-ops .topbar {
  background:
    linear-gradient(90deg, rgba(7, 19, 15, .94), rgba(11, 20, 14, .88)),
    linear-gradient(180deg, rgba(255, 214, 92, .08), transparent) !important;
  border: 1px solid rgba(83, 255, 156, .14) !important;
  border-radius: 10px !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .26) !important;
}
.enterprise-ops .dashboard-hero {
  background:
    radial-gradient(circle at 87% 20%, rgba(255, 214, 92, .22), transparent 210px),
    radial-gradient(circle at 18% 18%, rgba(38, 255, 136, .16), transparent 260px),
    linear-gradient(135deg, rgba(5, 18, 14, .98), rgba(6, 11, 10, .96)) !important;
  border: 1px solid rgba(83, 255, 156, .22) !important;
  border-radius: 10px !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .06) !important;
  overflow: hidden !important;
  position: relative !important;
}
.enterprise-ops .dashboard-hero::before {
  content: "PC28  ·  CANADA  ·  CASINO OPS" !important;
  color: rgba(255, 214, 92, .08) !important;
  font-size: 44px !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  position: absolute !important;
  right: 18px !important;
  top: 12px !important;
  white-space: nowrap !important;
}
.enterprise-ops .dashboard-hero::after {
  background:
    radial-gradient(circle, #ff4f4f 0 30%, transparent 32%),
    radial-gradient(circle, #f8d35f 0 30%, transparent 32%),
    radial-gradient(circle, #55d6ff 0 30%, transparent 32%) !important;
  background-position: 0 0, 42px 0, 84px 0 !important;
  background-repeat: no-repeat !important;
  background-size: 30px 30px !important;
  bottom: 18px !important;
  content: "" !important;
  height: 32px !important;
  opacity: .82 !important;
  position: absolute !important;
  right: 22px !important;
  width: 116px !important;
}
.enterprise-ops .dashboard-hero h2 {
  color: #fff7cf !important;
  font-size: 26px !important;
  text-shadow: 0 0 26px rgba(255, 214, 92, .22) !important;
}
.enterprise-ops .dashboard-hero p {
  color: #b9d5c3 !important;
}
.enterprise-ops .hero-countdown {
  background:
    linear-gradient(180deg, rgba(9, 24, 18, .95), rgba(3, 9, 8, .94)) !important;
  border: 1px solid rgba(255, 214, 92, .30) !important;
  border-radius: 10px !important;
  box-shadow: 0 0 28px rgba(255, 214, 92, .08), inset 0 0 24px rgba(38, 255, 136, .05) !important;
}
.enterprise-ops .hero-countdown strong {
  color: #ffe58a !important;
  font-family: Consolas, "SFMono-Regular", monospace !important;
  font-size: 34px !important;
  text-shadow: 0 0 22px rgba(255, 214, 92, .34) !important;
}
.enterprise-ops .metric-card,
.enterprise-ops .dashboard-panel {
  background:
    linear-gradient(180deg, rgba(10, 24, 18, .92), rgba(4, 11, 9, .94)) !important;
  border: 1px solid rgba(83, 255, 156, .15) !important;
  border-radius: 10px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 14px 34px rgba(0, 0, 0, .22) !important;
}
.enterprise-ops .metric-card {
  min-height: 92px !important;
  position: relative !important;
}
.enterprise-ops .metric-card::after {
  background: linear-gradient(90deg, #47ff97, #ffe58a) !important;
  bottom: 0 !important;
  content: "" !important;
  height: 2px !important;
  left: 12px !important;
  opacity: .72 !important;
  position: absolute !important;
  right: 12px !important;
}
.enterprise-ops .metric-card strong {
  color: #ffe58a !important;
  font-family: Consolas, "SFMono-Regular", monospace !important;
  font-size: 24px !important;
}
.enterprise-ops .dashboard-panel .panel-head h2 {
  color: #fff7cf !important;
  font-size: 17px !important;
  text-shadow: 0 0 18px rgba(255, 214, 92, .16) !important;
}
.enterprise-ops .draw-result-card {
  background:
    radial-gradient(circle at 78% 28%, rgba(255, 214, 92, .20), transparent 90px),
    linear-gradient(180deg, rgba(13, 27, 17, .98), rgba(4, 10, 8, .96)) !important;
  border-color: rgba(255, 214, 92, .35) !important;
  box-shadow: inset 0 0 30px rgba(255, 214, 92, .06), 0 0 24px rgba(255, 214, 92, .08) !important;
}
.enterprise-ops .draw-result-card strong {
  color: #ffe58a !important;
  font-family: Consolas, "SFMono-Regular", monospace !important;
  font-size: 34px !important;
}
.enterprise-ops #commandDashboard .info-row,
.enterprise-ops #commandDashboard .health-item {
  background: rgba(4, 13, 9, .74) !important;
  border: 1px solid rgba(83, 255, 156, .13) !important;
  border-left: 3px solid rgba(255, 214, 92, .62) !important;
  border-radius: 9px !important;
}
.enterprise-ops #commandDashboard .info-row strong,
.enterprise-ops #commandDashboard .health-item strong {
  color: #f8ffe8 !important;
}
.enterprise-ops .dashboard-action {
  background:
    linear-gradient(180deg, rgba(9, 22, 17, .96), rgba(4, 10, 8, .96)) !important;
  border: 1px solid rgba(83, 255, 156, .18) !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  position: relative !important;
}
.enterprise-ops .dashboard-action::before {
  background: radial-gradient(circle, rgba(255, 214, 92, .9) 0 32%, transparent 34%) !important;
  content: "" !important;
  height: 46px !important;
  opacity: .13 !important;
  position: absolute !important;
  right: -12px !important;
  top: -12px !important;
  width: 46px !important;
}
.enterprise-ops .dashboard-action:hover {
  background:
    linear-gradient(180deg, rgba(14, 35, 24, .98), rgba(5, 14, 10, .98)) !important;
  border-color: rgba(255, 214, 92, .38) !important;
  box-shadow: 0 0 28px rgba(38, 255, 136, .10) !important;
}
.enterprise-ops .dashboard-action span {
  color: #ffe58a !important;
}
.enterprise-ops .btn {
  background: linear-gradient(180deg, #ffe58a, #c99123) !important;
  border-color: rgba(255, 229, 138, .88) !important;
  color: #160f02 !important;
  box-shadow: 0 0 18px rgba(255, 214, 92, .12) !important;
}
.enterprise-ops .btn.secondary,
.enterprise-ops .btn.ghost {
  background: rgba(7, 18, 13, .92) !important;
  border-color: rgba(83, 255, 156, .22) !important;
  color: #d7ffdf !important;
}
.enterprise-ops input,
.enterprise-ops select,
.enterprise-ops textarea,
.enterprise-ops .search-input {
  background: rgba(3, 9, 7, .96) !important;
  border-color: rgba(83, 255, 156, .22) !important;
  color: #f8ffe8 !important;
}
body.enterprise-ops #opsStatusBar,
body.enterprise-ops .ops-status-bar {
  display: none !important;
}
body.login-screen {
  background:
    radial-gradient(circle at 22% 8%, rgba(245, 208, 93, .16), transparent 340px),
    radial-gradient(circle at 82% 0%, rgba(185, 28, 28, .12), transparent 360px),
    linear-gradient(135deg, #06110d 0%, #0c241b 48%, #050b08 100%) !important;
  color: #f5f0dc !important;
  display: block !important;
  min-height: 100vh !important;
  overflow-x: hidden !important;
}
body.login-screen::before {
  background:
    linear-gradient(rgba(245, 208, 93, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 208, 93, .045) 1px, transparent 1px) !important;
  background-size: 34px 34px !important;
  content: "" !important;
  inset: 0 !important;
  pointer-events: none !important;
  position: fixed !important;
  z-index: -1 !important;
}
body.login-screen .login-page {
  align-items: center !important;
  display: grid !important;
  justify-items: center !important;
  min-height: 100vh !important;
  padding: 32px 16px !important;
}
body.login-screen .login-card {
  background: linear-gradient(180deg, rgba(17, 45, 34, .96), rgba(6, 23, 17, .98)) !important;
  border: 1px solid rgba(245, 208, 93, .24) !important;
  border-radius: 10px !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .36) !important;
  color: #f5f0dc !important;
  display: grid !important;
  gap: 14px !important;
  max-width: 430px !important;
  padding: 26px !important;
  width: min(430px, 100%) !important;
}
body.login-screen .login-brand-row {
  align-items: center !important;
  display: flex !important;
  gap: 12px !important;
}
body.login-screen .brand-mark {
  align-items: center !important;
  background: radial-gradient(circle at 35% 30%, #fff4b8, #f8d35f 46%, #9a6a12 100%) !important;
  border-radius: 8px !important;
  color: #201300 !important;
  display: grid !important;
  flex: 0 0 44px !important;
  font-weight: 900 !important;
  height: 44px !important;
  justify-items: center !important;
  width: 44px !important;
}
body.login-screen .login-brand-row strong,
body.login-screen h1 {
  color: #fff7cf !important;
}
body.login-screen .login-brand-row span,
body.login-screen p,
body.login-screen .login-foot {
  color: #d5ceb7 !important;
}
body.login-screen h1 {
  font-size: 26px !important;
  margin: 4px 0 0 !important;
}
body.login-screen p {
  line-height: 1.6 !important;
  margin: 0 !important;
}
body.login-screen form {
  display: grid !important;
  gap: 12px !important;
}
body.login-screen label {
  color: #f5f0dc !important;
  display: grid !important;
  gap: 7px !important;
  font-size: 14px !important;
}
body.login-screen input {
  background: #090f0b !important;
  border: 1px solid rgba(245, 208, 93, .26) !important;
  border-radius: 7px !important;
  color: #fff7cf !important;
  font-size: 15px !important;
  height: 42px !important;
  outline: none !important;
  padding: 0 12px !important;
  width: 100% !important;
}
body.login-screen input:focus {
  border-color: rgba(245, 208, 93, .62) !important;
  box-shadow: 0 0 0 3px rgba(245, 208, 93, .12) !important;
}
body.login-screen .password-field {
  display: grid !important;
  gap: 8px !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
}
body.login-screen button {
  background: #d7b447 !important;
  border: 1px solid #d7b447 !important;
  border-radius: 7px !important;
  color: #140f03 !important;
  cursor: pointer !important;
  font-weight: 800 !important;
  min-height: 42px !important;
  padding: 0 14px !important;
}
body.login-screen button.secondary {
  background: #121a13 !important;
  border-color: rgba(245, 208, 93, .26) !important;
  color: #f5d45f !important;
}
body.login-screen .notice.error {
  background: rgba(244, 92, 92, .14) !important;
  border: 1px solid rgba(244, 92, 92, .32) !important;
  border-radius: 7px !important;
  color: #ffb4a8 !important;
  padding: 10px 12px !important;
}
body.login-screen .login-foot {
  display: flex !important;
  flex-wrap: wrap !important;
  font-size: 12px !important;
  gap: 8px 12px !important;
}
@media (max-width: 560px) {
  body.login-screen .login-card {
    padding: 20px !important;
  }
  body.login-screen .password-field {
    grid-template-columns: 1fr !important;
  }
}
body.enterprise-ops[data-current-view="command"] #subNav {
  display: none !important;
}
body.enterprise-ops[data-current-view="command"] #workflowStrip {
  display: none !important;
}
.enterprise-ops .balance-net-cell {
  display: grid !important;
  gap: 3px !important;
  min-width: 92px !important;
}
.enterprise-ops .balance-net-cell strong {
  color: #fff8dc !important;
  font-size: 14px !important;
  line-height: 1.1 !important;
}
.enterprise-ops .balance-net-cell small {
  font-size: 11px !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
}
.enterprise-ops .balance-net-cell small.win {
  color: #80f2a0 !important;
}
.enterprise-ops .balance-net-cell small.loss {
  color: #ff9c8f !important;
}
.enterprise-ops .balance-net-cell small.flat {
  color: #d5ceb7 !important;
}
.enterprise-ops .odds-config-grid {
  display: grid !important;
  gap: 12px !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.enterprise-ops .odds-config-grid h3 {
  color: #e9c85c !important;
  font-size: 13px !important;
  margin: 0 0 8px !important;
}
.enterprise-ops .odds-config-grid .span-full {
  grid-column: 1 / -1 !important;
}
.enterprise-ops .odds-form {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.enterprise-ops .exact-odds-form {
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
}
.enterprise-ops .bot-button-editor {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 280px !important;
  gap: 16px !important;
  align-items: start !important;
}
.enterprise-ops .bot-button-editor input,
.enterprise-ops .bot-button-editor select {
  min-width: 120px !important;
}
.enterprise-ops .bot-button-preview {
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
  background: rgba(7, 13, 24, 0.76) !important;
  border-radius: 8px !important;
  padding: 14px !important;
}
.enterprise-ops .bot-button-preview h3 {
  margin: 0 0 12px !important;
  font-size: 13px !important;
  color: #e5edf8 !important;
}
.enterprise-ops .bot-preview-row {
  display: grid !important;
  grid-auto-flow: column !important;
  grid-auto-columns: minmax(0, 1fr) !important;
  gap: 8px !important;
  margin-bottom: 8px !important;
}
.enterprise-ops .bot-preview-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 34px !important;
  padding: 6px 8px !important;
  border-radius: 7px !important;
  background: rgba(23, 107, 255, 0.22) !important;
  border: 1px solid rgba(96, 165, 250, 0.38) !important;
  color: #dbeafe !important;
  font-size: 12px !important;
  text-align: center !important;
  overflow-wrap: anywhere !important;
}

.enterprise-ops #telegramLottery .telegram-red-packet-layout {
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.4fr) !important;
  align-items: start !important;
}

.enterprise-ops .lottery-basic-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(120px, 1fr)) !important;
  gap: 10px !important;
}

.enterprise-ops .lottery-basic-grid label {
  min-width: 0 !important;
}

.enterprise-ops .lottery-basic-grid input {
  width: 100% !important;
}

.enterprise-ops #lotteryPrizesTable input,
.enterprise-ops #lotteryPrizesTable select,
.enterprise-ops #lotteryStagesTable input,
.enterprise-ops #lotteryStagesTable select {
  min-width: 86px !important;
  width: 100% !important;
}

.enterprise-ops #lotteryPrizesTable input[type="checkbox"],
.enterprise-ops #lotteryStagesTable input[type="checkbox"] {
  width: 18px !important;
  min-width: 18px !important;
}

@media (max-width: 980px) {
  .enterprise-ops #telegramLottery .telegram-red-packet-layout {
    grid-template-columns: 1fr !important;
  }
  .enterprise-ops .lottery-basic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
.enterprise-ops .inline-check {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}
.enterprise-ops .telegram-group-composer {
  margin: 14px 0 !important;
  padding: 12px !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  border-radius: 8px !important;
  background: rgba(7, 13, 24, 0.48) !important;
}
.enterprise-ops .compact-head {
  margin-top: 16px !important;
  padding-top: 14px !important;
  border-top: 1px solid rgba(148, 163, 184, 0.18) !important;
}
.enterprise-ops .telegram-ops-panel .panel-head {
  align-items: center !important;
}
.enterprise-ops .telegram-ops-layout {
  display: grid !important;
  gap: 12px !important;
}
.enterprise-ops .telegram-target-strip {
  background: #0b120d !important;
  border: 1px solid rgba(245, 208, 93, .18) !important;
  border-radius: 8px !important;
  display: grid !important;
  gap: 8px !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  padding: 10px !important;
}
.enterprise-ops .telegram-push-grid {
  display: grid !important;
  gap: 10px !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
.enterprise-ops .telegram-push-card,
.enterprise-ops .telegram-broadcast-box,
.enterprise-ops .telegram-smart-block,
.enterprise-ops .telegram-table-block,
.enterprise-ops .telegram-template-block {
  background: #0b120d !important;
  border: 1px solid rgba(245, 208, 93, .16) !important;
  border-radius: 8px !important;
  color: #f5f0dc !important;
  min-width: 0 !important;
  padding: 12px !important;
}
.enterprise-ops .telegram-push-card {
  display: grid !important;
  gap: 8px !important;
}
.enterprise-ops .telegram-push-card span,
.enterprise-ops .telegram-broadcast-box .eyebrow {
  color: #e9c85c !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}
.enterprise-ops .telegram-push-card strong,
.enterprise-ops .telegram-broadcast-box h3 {
  color: #fff8dc !important;
  font-size: 16px !important;
  margin: 0 !important;
}
.enterprise-ops .telegram-push-card em,
.enterprise-ops .telegram-broadcast-box p {
  color: #d5ceb7 !important;
  font-size: 12px !important;
  font-style: normal !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}
.enterprise-ops .telegram-broadcast-box {
  display: grid !important;
  gap: 10px !important;
  grid-template-columns: minmax(220px, .42fr) minmax(0, 1fr) auto !important;
  align-items: end !important;
}
.enterprise-ops .telegram-broadcast-box label {
  display: grid !important;
  gap: 7px !important;
  margin: 0 !important;
}
.enterprise-ops .telegram-broadcast-box textarea {
  min-height: 112px !important;
}
.enterprise-ops .telegram-broadcast-box .split-actions {
  align-content: end !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  margin: 0 !important;
  min-width: 150px !important;
}
.enterprise-ops .telegram-smart-block {
  grid-column: 1 / -1 !important;
}
.enterprise-ops .smart-reach-grid {
  display: grid !important;
  gap: 10px !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
}
.enterprise-ops .smart-reach-card {
  background: rgba(7, 13, 24, .58) !important;
  border: 1px solid rgba(77, 214, 255, .18) !important;
  border-radius: 8px !important;
  min-width: 0 !important;
  padding: 10px !important;
}
.enterprise-ops .smart-reach-card > div {
  align-items: center !important;
  display: flex !important;
  gap: 8px !important;
  justify-content: space-between !important;
  margin-bottom: 8px !important;
}
.enterprise-ops .smart-reach-card span {
  color: #e9c85c !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}
.enterprise-ops .smart-reach-card small {
  color: #b8c8d8 !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
  text-align: right !important;
}
.enterprise-ops .smart-reach-card pre,
.enterprise-ops .impact-box pre {
  color: #e9f4ff !important;
  font: 12px/1.55 "Microsoft YaHei", Arial, sans-serif !important;
  margin: 0 !important;
  white-space: pre-wrap !important;
  word-break: break-word !important;
}
.enterprise-ops .smart-reach-card pre {
  max-height: 132px !important;
  overflow: auto !important;
}
.enterprise-ops .smart-reach-actions {
  display: grid !important;
  gap: 8px !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  margin-top: 10px !important;
}
.enterprise-ops .telegram-table-block .compact-head,
.enterprise-ops .telegram-template-block .compact-head,
.enterprise-ops .telegram-smart-block .compact-head {
  border-top: 0 !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.enterprise-ops #confirmMessage {
  white-space: pre-wrap !important;
}
@media (max-width: 1180px) {
  .enterprise-ops .odds-config-grid,
  .enterprise-ops .odds-form,
  .enterprise-ops .exact-odds-form {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .enterprise-ops .bot-button-editor {
    grid-template-columns: 1fr !important;
  }
  .enterprise-ops .telegram-target-strip,
  .enterprise-ops .telegram-push-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .enterprise-ops .telegram-broadcast-box {
    grid-template-columns: 1fr !important;
  }
}
body.enterprise-ops[data-current-view="telegram"] #telegramModuleMap {
  display: block !important;
  margin-bottom: 10px !important;
}
body.enterprise-ops[data-current-view="telegram"] #view-telegram {
  display: grid !important;
}
body.enterprise-ops[data-current-view="telegram"] #subNav,
body.enterprise-ops[data-current-view="telegram"] #subNav .sub-nav-track,
body.enterprise-ops[data-current-view="telegram"] #subNav button {
  display: grid !important;
}
body.enterprise-ops[data-current-view="telegram"] #subNav button {
  min-height: 72px !important;
  padding-right: 82px !important;
  position: relative !important;
}
body.enterprise-ops[data-current-view="telegram"] #subNav button i {
  align-items: center !important;
  background: #d7b447 !important;
  border-radius: 7px !important;
  color: #140f03 !important;
  display: inline-flex !important;
  font-size: 12px !important;
  font-style: normal !important;
  font-weight: 900 !important;
  height: 26px !important;
  justify-content: center !important;
  min-width: 50px !important;
  padding: 0 10px !important;
  position: absolute !important;
  right: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}
.enterprise-ops .telegram-action-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
.enterprise-ops .telegram-action-card {
  min-height: 104px !important;
  padding-bottom: 42px !important;
  position: relative !important;
}
.enterprise-ops .telegram-action-card i {
  align-items: center !important;
  background: #d7b447 !important;
  border: 1px solid #d7b447 !important;
  border-radius: 7px !important;
  bottom: 10px !important;
  color: #140f03 !important;
  display: inline-flex !important;
  font-style: normal !important;
  font-weight: 900 !important;
  height: 26px !important;
  justify-content: center !important;
  left: 12px !important;
  min-width: 58px !important;
  padding: 0 10px !important;
  position: absolute !important;
}
.enterprise-ops .telegram-action-card em {
  padding-right: 70px !important;
}
@media (max-width: 1180px) {
  .enterprise-ops .telegram-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 640px) {
  .enterprise-ops .telegram-action-grid {
    grid-template-columns: 1fr !important;
  }
}
.enterprise-ops .dashboard-shell {
  display: grid !important;
  gap: 12px !important;
  width: 100% !important;
}
.enterprise-ops .dashboard-hero {
  background:
    linear-gradient(135deg, rgba(20, 31, 22, .96), rgba(8, 13, 10, .98)),
    radial-gradient(circle at 78% 20%, rgba(245, 208, 93, .14), transparent 28%) !important;
  border: 1px solid rgba(245, 208, 93, .18) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  color: #f5f0dc !important;
  display: grid !important;
  gap: 14px !important;
  grid-template-columns: minmax(0, 1fr) 280px !important;
  padding: 16px !important;
}
.enterprise-ops .dashboard-hero h2 {
  color: #fff7cf !important;
  font-size: 22px !important;
  letter-spacing: 0 !important;
  margin: 0 0 6px !important;
}
.enterprise-ops .dashboard-hero p {
  color: #d5ceb7 !important;
  margin: 0 !important;
}
.enterprise-ops .dashboard-metrics {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}
.enterprise-ops .dashboard-grid {
  display: grid !important;
  gap: 10px !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}
.enterprise-ops .dashboard-panel {
  background: #101811 !important;
  border: 1px solid rgba(245, 208, 93, .14) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  color: #f5f0dc !important;
  min-width: 0 !important;
  padding: 12px !important;
}
.enterprise-ops .dashboard-panel.span-2 {
  grid-column: span 3 !important;
}
.enterprise-ops #dashboardDrawPanel {
  grid-column: span 4 !important;
}
.enterprise-ops #dashboardFinancePanel {
  grid-column: span 2 !important;
}
.enterprise-ops #dashboardUsersPanel,
.enterprise-ops #dashboardSystemPanel {
  grid-column: span 3 !important;
}
.enterprise-ops #dashboardQuickPanel {
  grid-column: 1 / -1 !important;
}
.enterprise-ops .dashboard-panel .panel-head {
  margin-bottom: 10px !important;
}
.enterprise-ops .dashboard-panel .panel-head h2 {
  color: #fff7cf !important;
  font-size: 16px !important;
}
.enterprise-ops .dashboard-draw-grid {
  display: grid !important;
  gap: 10px !important;
  grid-template-columns: 220px minmax(0, 1fr) !important;
}
.enterprise-ops .draw-result-card {
  align-content: center !important;
  background: linear-gradient(180deg, #1d2315, #0b140e) !important;
  border: 1px solid rgba(245, 208, 93, .22) !important;
  border-radius: 8px !important;
  display: grid !important;
  gap: 6px !important;
  min-height: 150px !important;
  padding: 14px !important;
}
.enterprise-ops .draw-result-card span,
.enterprise-ops .draw-result-card em {
  color: #d5ceb7 !important;
  font-style: normal !important;
}
.enterprise-ops .draw-result-card strong {
  color: #ffe58a !important;
  font-size: 30px !important;
  line-height: 1.1 !important;
}
.enterprise-ops .dashboard-actions {
  display: grid !important;
  gap: 8px !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}
.enterprise-ops .dashboard-action {
  background: #0b140e !important;
  border: 1px solid rgba(245, 208, 93, .16) !important;
  border-radius: 8px !important;
  color: #f5f0dc !important;
  cursor: pointer !important;
  display: grid !important;
  gap: 5px !important;
  min-height: 76px !important;
  padding: 12px !important;
  text-align: left !important;
}
.enterprise-ops .dashboard-action:hover {
  background: #142018 !important;
  border-color: rgba(245, 208, 93, .36) !important;
}
.enterprise-ops .dashboard-action span {
  color: #ffe58a !important;
  font-weight: 800 !important;
}
.enterprise-ops .dashboard-action strong {
  color: #d5ceb7 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
}
.enterprise-ops .dashboard-action.danger {
  border-color: rgba(244, 92, 92, .32) !important;
}
.enterprise-ops .dashboard-action.danger span {
  color: #ffb4a8 !important;
}
.enterprise-ops .dashboard-action.pending span {
  color: #ffd66b !important;
}
.enterprise-ops #commandDashboard .mini-list,
.enterprise-ops #commandDashboard .health-list {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}
.enterprise-ops #commandDashboard .info-row,
.enterprise-ops #commandDashboard .health-item {
  background: #0b140e !important;
  border-color: rgba(245, 208, 93, .14) !important;
}
.enterprise-ops #commandDashboard .info-row strong,
.enterprise-ops #commandDashboard .health-item strong {
  color: #fff7cf !important;
}
.enterprise-ops #commandDashboard .metric-card,
.enterprise-ops #commandDashboard .metric {
  background: #101811 !important;
  border-color: rgba(245, 208, 93, .14) !important;
  color: #f5f0dc !important;
}
body.enterprise-ops #commandInbox,
body.enterprise-ops #commandTickets,
body.enterprise-ops #commandTrace,
body.enterprise-ops #commandShiftReport,
body.enterprise-ops #commandOpsBoard,
body.enterprise-ops #launchReadinessBoard,
body.enterprise-ops #commandControl,
body.enterprise-ops #commandMaturity,
body.enterprise-ops #commandFinancePulse,
body.enterprise-ops #commandDrawPulseSection,
body.enterprise-ops #commandSystemPulse,
body.enterprise-ops #commandHealth,
body.enterprise-ops #commandRecent {
  display: none !important;
}
@media (max-width: 1380px) {
  .enterprise-ops .dashboard-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .enterprise-ops .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .enterprise-ops #dashboardDrawPanel,
  .enterprise-ops #dashboardFinancePanel,
  .enterprise-ops #dashboardUsersPanel,
  .enterprise-ops #dashboardSystemPanel,
  .enterprise-ops #dashboardQuickPanel {
    grid-column: auto !important;
  }
  .enterprise-ops #dashboardQuickPanel {
    grid-column: 1 / -1 !important;
  }
  .enterprise-ops .dashboard-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 820px) {
  .enterprise-ops .dashboard-hero,
  .enterprise-ops .dashboard-draw-grid,
  .enterprise-ops .dashboard-grid,
  .enterprise-ops .dashboard-actions {
    grid-template-columns: 1fr !important;
  }
  .enterprise-ops .dashboard-panel.span-2 {
    grid-column: auto !important;
  }
  .enterprise-ops .dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Tech casino command skin v37 EOF marker */
body.enterprise-ops {
  --bg: #030806 !important;
  --surface: #07120e !important;
  --surface-2: #0a1d15 !important;
  --surface-3: #10251a !important;
  --line: rgba(71, 255, 151, .18) !important;
  --line-strong: rgba(255, 216, 87, .34) !important;
  --gold: #ffd857 !important;
  --gold-2: #a86f12 !important;
  --neon: #47ff97 !important;
  --cyan: #5bd7ff !important;
  --red: #ff4b55 !important;
  --text: #f6ffe8 !important;
  --muted: #9fb8a8 !important;
  background:
    radial-gradient(circle at 18% -8%, rgba(255, 216, 87, .16), transparent 360px),
    radial-gradient(circle at 92% 4%, rgba(255, 64, 78, .10), transparent 330px),
    radial-gradient(circle at 70% 106%, rgba(71, 255, 151, .13), transparent 420px),
    linear-gradient(rgba(71, 255, 151, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(71, 255, 151, .03) 1px, transparent 1px),
    #030806 !important;
  background-size: auto, auto, auto, 38px 38px, 38px 38px, auto !important;
  color: var(--text) !important;
}

body.enterprise-ops::before {
  background:
    linear-gradient(115deg, transparent 0 30%, rgba(255, 216, 87, .055) 31%, transparent 33% 100%),
    radial-gradient(circle at 48% 0%, rgba(91, 215, 255, .08), transparent 360px) !important;
  content: "" !important;
  inset: 0 !important;
  pointer-events: none !important;
  position: fixed !important;
  z-index: -1 !important;
}

.enterprise-ops .app-shell {
  background: transparent !important;
  gap: 0 !important;
  min-height: 100vh !important;
}

.enterprise-ops .app-sidebar {
  background:
    linear-gradient(180deg, rgba(4, 18, 13, .98), rgba(2, 8, 6, .99)),
    radial-gradient(circle at 50% 0%, rgba(255, 216, 87, .18), transparent 180px) !important;
  border-right: 1px solid rgba(255, 216, 87, .22) !important;
  box-shadow: 18px 0 48px rgba(0, 0, 0, .34) !important;
  min-width: 248px !important;
  overflow: hidden !important;
  position: sticky !important;
  top: 0 !important;
}

.enterprise-ops .app-sidebar::after {
  background:
    radial-gradient(circle, rgba(255, 75, 85, .95) 0 30%, transparent 31%),
    radial-gradient(circle, rgba(255, 216, 87, .95) 0 30%, transparent 31%),
    radial-gradient(circle, rgba(71, 255, 151, .95) 0 30%, transparent 31%),
    radial-gradient(circle, rgba(91, 215, 255, .95) 0 30%, transparent 31%) !important;
  background-position: 0 0, 34px 0, 68px 0, 102px 0 !important;
  background-repeat: no-repeat !important;
  background-size: 24px 24px !important;
  bottom: 18px !important;
  content: "" !important;
  height: 26px !important;
  left: 28px !important;
  opacity: .34 !important;
  position: absolute !important;
  width: 132px !important;
}

.enterprise-ops .brand-block {
  background: rgba(255, 216, 87, .06) !important;
  border: 1px solid rgba(255, 216, 87, .18) !important;
  border-radius: 12px !important;
  padding: 10px !important;
}

.enterprise-ops .brand-mark {
  background:
    radial-gradient(circle at 32% 28%, #fff7c7, #ffd857 43%, #8a5b0b 100%) !important;
  border: 1px solid rgba(255, 247, 199, .5) !important;
  border-radius: 50% !important;
  box-shadow: 0 0 28px rgba(255, 216, 87, .24), inset 0 0 0 3px rgba(20, 10, 0, .20) !important;
  color: #1a1000 !important;
}

.enterprise-ops .brand-block strong,
.enterprise-ops .side-ops strong,
.enterprise-ops .side-health strong {
  color: #fff7c7 !important;
}

.enterprise-ops .brand-block span,
.enterprise-ops .side-ops span,
.enterprise-ops .side-health span,
.enterprise-ops .side-ops em,
.enterprise-ops .side-health em {
  color: var(--muted) !important;
}

.enterprise-ops .theme-stamp {
  background:
    linear-gradient(90deg, rgba(71, 255, 151, .12), rgba(255, 216, 87, .08)) !important;
  border: 1px solid rgba(71, 255, 151, .18) !important;
  border-radius: 999px !important;
  color: #dfffe8 !important;
  font-family: Consolas, "SFMono-Regular", monospace !important;
  letter-spacing: .08em !important;
  padding: 7px 10px !important;
  text-align: center !important;
}

.enterprise-ops .main-nav {
  gap: 8px !important;
}

.enterprise-ops .main-nav button {
  background: rgba(3, 12, 9, .78) !important;
  border: 1px solid rgba(71, 255, 151, .13) !important;
  border-radius: 10px !important;
  color: #dff7e6 !important;
  min-height: 44px !important;
  overflow: hidden !important;
  position: relative !important;
}

.enterprise-ops .main-nav button::before {
  background: linear-gradient(180deg, rgba(71, 255, 151, .85), rgba(255, 216, 87, .85)) !important;
  content: "" !important;
  inset: 8px auto 8px 0 !important;
  opacity: 0 !important;
  position: absolute !important;
  width: 3px !important;
}

.enterprise-ops .main-nav button.active,
.enterprise-ops .main-nav button:hover {
  background: linear-gradient(90deg, rgba(71, 255, 151, .13), rgba(255, 216, 87, .08)) !important;
  border-color: rgba(255, 216, 87, .36) !important;
  color: #fff7c7 !important;
  box-shadow: 0 0 26px rgba(71, 255, 151, .08) !important;
}

.enterprise-ops .main-nav button.active::before,
.enterprise-ops .main-nav button:hover::before {
  opacity: 1 !important;
}

.enterprise-ops .main-nav b {
  background: rgba(255, 216, 87, .12) !important;
  border: 1px solid rgba(255, 216, 87, .25) !important;
  border-radius: 999px !important;
  color: #ffeaa3 !important;
  min-width: 24px !important;
}

.enterprise-ops .side-ops,
.enterprise-ops .side-health {
  background: rgba(4, 15, 11, .78) !important;
  border: 1px solid rgba(71, 255, 151, .14) !important;
  border-radius: 12px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04) !important;
}

.enterprise-ops .app-main {
  background: transparent !important;
  padding: 16px !important;
}

.enterprise-ops .topbar {
  background:
    linear-gradient(135deg, rgba(7, 25, 18, .90), rgba(2, 9, 7, .92)) !important;
  border: 1px solid rgba(71, 255, 151, .16) !important;
  border-radius: 14px !important;
  box-shadow: 0 20px 52px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .045) !important;
  margin-bottom: 12px !important;
  min-height: 74px !important;
  padding: 14px 16px !important;
}

.enterprise-ops .topbar h1 {
  color: #fff7c7 !important;
  font-size: 25px !important;
  line-height: 1.15 !important;
  margin: 0 !important;
  text-shadow: 0 0 24px rgba(255, 216, 87, .18) !important;
}

.enterprise-ops .topbar p,
.enterprise-ops .module-hero p,
.enterprise-ops .panel-head p,
.enterprise-ops .section-title p {
  color: var(--muted) !important;
}

.enterprise-ops .eyebrow {
  color: #76ffad !important;
  font-family: Consolas, "SFMono-Regular", monospace !important;
  letter-spacing: .08em !important;
}

.enterprise-ops .search-input,
.enterprise-ops input,
.enterprise-ops select,
.enterprise-ops textarea {
  background: rgba(2, 8, 6, .96) !important;
  border: 1px solid rgba(71, 255, 151, .22) !important;
  border-radius: 9px !important;
  box-shadow: inset 0 0 18px rgba(71, 255, 151, .035) !important;
  color: var(--text) !important;
}

.enterprise-ops input:focus,
.enterprise-ops select:focus,
.enterprise-ops textarea:focus,
.enterprise-ops .search-input:focus {
  border-color: rgba(255, 216, 87, .58) !important;
  box-shadow: 0 0 0 3px rgba(255, 216, 87, .10), inset 0 0 18px rgba(71, 255, 151, .05) !important;
}

.enterprise-ops input::placeholder,
.enterprise-ops textarea::placeholder {
  color: rgba(180, 209, 190, .62) !important;
}

.enterprise-ops .btn {
  background: linear-gradient(180deg, #fff0a3, #d49a24) !important;
  border: 1px solid rgba(255, 240, 163, .90) !important;
  border-radius: 9px !important;
  box-shadow: 0 0 24px rgba(255, 216, 87, .12), inset 0 1px 0 rgba(255, 255, 255, .34) !important;
  color: #1b1000 !important;
  font-weight: 800 !important;
}

.enterprise-ops .btn.secondary,
.enterprise-ops .btn.ghost {
  background:
    linear-gradient(180deg, rgba(10, 27, 20, .96), rgba(3, 11, 8, .96)) !important;
  border-color: rgba(71, 255, 151, .24) !important;
  color: #dfffe8 !important;
}

.enterprise-ops .dashboard-shell,
.enterprise-ops .view {
  min-width: 0 !important;
}

.enterprise-ops .dashboard-hero {
  background:
    radial-gradient(circle at 86% 24%, rgba(255, 216, 87, .22), transparent 230px),
    radial-gradient(circle at 12% 18%, rgba(71, 255, 151, .16), transparent 260px),
    linear-gradient(120deg, rgba(6, 28, 18, .98), rgba(2, 9, 7, .98)) !important;
  border: 1px solid rgba(255, 216, 87, .26) !important;
  border-radius: 16px !important;
  box-shadow: 0 28px 68px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .07) !important;
  min-height: 186px !important;
  overflow: hidden !important;
  padding: 20px !important;
}

.enterprise-ops .dashboard-hero::before {
  color: rgba(255, 216, 87, .105) !important;
  content: "PC28  ·  CANADA  ·  CASINO OPS" !important;
  font-family: Consolas, "SFMono-Regular", monospace !important;
  font-size: clamp(28px, 4.1vw, 58px) !important;
  font-weight: 900 !important;
  letter-spacing: .02em !important;
  right: 18px !important;
  top: 16px !important;
}

.enterprise-ops .dashboard-hero::after {
  background:
    radial-gradient(circle at 50% 50%, #ff4b55 0 29%, #7a1018 30% 47%, transparent 48%),
    radial-gradient(circle at 50% 50%, #ffd857 0 29%, #7b5409 30% 47%, transparent 48%),
    radial-gradient(circle at 50% 50%, #47ff97 0 29%, #0a6d34 30% 47%, transparent 48%),
    radial-gradient(circle at 50% 50%, #5bd7ff 0 29%, #0a5270 30% 47%, transparent 48%) !important;
  background-position: 0 0, 42px 0, 84px 0, 126px 0 !important;
  background-size: 32px 32px !important;
  height: 34px !important;
  opacity: .88 !important;
  width: 162px !important;
}

.enterprise-ops .dashboard-hero h2 {
  color: #fff7c7 !important;
  font-size: 30px !important;
  margin: 4px 0 8px !important;
  text-shadow: 0 0 28px rgba(255, 216, 87, .22) !important;
}

.enterprise-ops .dashboard-hero p {
  color: #c4dccd !important;
  max-width: 720px !important;
}

.enterprise-ops .ops-readiness {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 12px !important;
}

.enterprise-ops .ops-readiness span,
.enterprise-ops .pill,
.enterprise-ops .tag,
.enterprise-ops [class*="badge"] {
  background: rgba(3, 14, 9, .72) !important;
  border: 1px solid rgba(71, 255, 151, .20) !important;
  border-radius: 999px !important;
  color: #dfffe8 !important;
}

.enterprise-ops .hero-countdown {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 216, 87, .18), transparent 120px),
    linear-gradient(180deg, rgba(5, 20, 14, .98), rgba(1, 7, 5, .98)) !important;
  border: 1px solid rgba(255, 216, 87, .34) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 0 28px rgba(71, 255, 151, .055), 0 0 32px rgba(255, 216, 87, .08) !important;
  min-width: 280px !important;
}

.enterprise-ops .hero-countdown strong,
.enterprise-ops .metric-card strong,
.enterprise-ops .draw-result-card strong,
.enterprise-ops td strong {
  font-family: Consolas, "SFMono-Regular", monospace !important;
}

.enterprise-ops .hero-countdown strong {
  color: #ffd857 !important;
  font-size: 38px !important;
  text-shadow: 0 0 28px rgba(255, 216, 87, .38) !important;
}

.enterprise-ops .metric-card,
.enterprise-ops .metric,
.enterprise-ops .dashboard-panel,
.enterprise-ops .panel,
.enterprise-ops .control-panel,
.enterprise-ops .module-hero,
.enterprise-ops .analysis-board,
.enterprise-ops .module-ops-board {
  background:
    linear-gradient(180deg, rgba(9, 27, 19, .94), rgba(3, 10, 8, .97)) !important;
  border: 1px solid rgba(71, 255, 151, .16) !important;
  border-radius: 14px !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .23), inset 0 1px 0 rgba(255, 255, 255, .045) !important;
  color: var(--text) !important;
}

.enterprise-ops .metric-card,
.enterprise-ops .dashboard-panel,
.enterprise-ops .panel {
  overflow: hidden !important;
  position: relative !important;
}

.enterprise-ops .metric-card::before,
.enterprise-ops .dashboard-panel::before,
.enterprise-ops .panel::before {
  background: linear-gradient(90deg, rgba(71, 255, 151, .92), rgba(255, 216, 87, .86), rgba(255, 75, 85, .56)) !important;
  content: "" !important;
  height: 2px !important;
  left: 12px !important;
  opacity: .70 !important;
  position: absolute !important;
  right: 12px !important;
  top: 0 !important;
}

.enterprise-ops .metric-card strong,
.enterprise-ops .metric strong {
  color: #ffd857 !important;
  font-size: 25px !important;
  line-height: 1.08 !important;
  text-shadow: 0 0 18px rgba(255, 216, 87, .18) !important;
}

.enterprise-ops .metric-card span,
.enterprise-ops .metric span,
.enterprise-ops .metric-card p,
.enterprise-ops .metric p {
  color: var(--muted) !important;
}

.enterprise-ops .dashboard-panel .panel-head h2,
.enterprise-ops .panel-head h2,
.enterprise-ops .module-hero h2,
.enterprise-ops .section-title h2 {
  color: #fff7c7 !important;
  letter-spacing: 0 !important;
  text-shadow: 0 0 18px rgba(255, 216, 87, .13) !important;
}

.enterprise-ops .dashboard-draw-grid {
  grid-template-columns: minmax(230px, .8fr) minmax(0, 1.2fr) !important;
}

.enterprise-ops .draw-result-card {
  background:
    radial-gradient(circle at 76% 24%, rgba(255, 216, 87, .25), transparent 92px),
    radial-gradient(circle at 20% 86%, rgba(71, 255, 151, .16), transparent 120px),
    linear-gradient(180deg, rgba(13, 33, 20, .98), rgba(2, 9, 7, .98)) !important;
  border: 1px solid rgba(255, 216, 87, .38) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 0 34px rgba(255, 216, 87, .06), 0 0 28px rgba(255, 216, 87, .08) !important;
  min-height: 166px !important;
}

.enterprise-ops .draw-result-card strong {
  color: #ffd857 !important;
  font-size: 38px !important;
  text-shadow: 0 0 28px rgba(255, 216, 87, .28) !important;
}

.enterprise-ops .draw-result-card span,
.enterprise-ops .draw-result-card em {
  color: #bdd6c8 !important;
}

.enterprise-ops .mini-list,
.enterprise-ops .health-list {
  background: transparent !important;
  border: 0 !important;
}

.enterprise-ops .info-row,
.enterprise-ops .health-item,
.enterprise-ops .detail-card,
.enterprise-ops .empty-card,
.enterprise-ops .profile-card {
  background: rgba(2, 10, 7, .74) !important;
  border: 1px solid rgba(71, 255, 151, .13) !important;
  border-radius: 11px !important;
  color: var(--text) !important;
}

.enterprise-ops .info-row {
  border-left: 3px solid rgba(255, 216, 87, .66) !important;
}

.enterprise-ops .info-row strong,
.enterprise-ops .health-item strong,
.enterprise-ops .detail-card strong,
.enterprise-ops .profile-card strong {
  color: #f8ffe8 !important;
}

.enterprise-ops .dashboard-actions {
  gap: 10px !important;
}

.enterprise-ops .dashboard-action {
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 216, 87, .13), transparent 64px),
    linear-gradient(180deg, rgba(8, 24, 17, .98), rgba(2, 9, 7, .98)) !important;
  border: 1px solid rgba(71, 255, 151, .18) !important;
  border-radius: 13px !important;
  min-height: 88px !important;
  padding: 14px !important;
}

.enterprise-ops .dashboard-action:hover {
  border-color: rgba(255, 216, 87, .48) !important;
  box-shadow: 0 0 30px rgba(71, 255, 151, .11), inset 0 1px 0 rgba(255, 255, 255, .06) !important;
  transform: translateY(-1px) !important;
}

.enterprise-ops .dashboard-action span {
  color: #ffd857 !important;
  font-size: 14px !important;
}

.enterprise-ops .dashboard-action strong {
  color: #abc5b5 !important;
}

.enterprise-ops .sub-nav,
.enterprise-ops .workflow-strip {
  background: rgba(2, 9, 7, .72) !important;
  border: 1px solid rgba(71, 255, 151, .13) !important;
  border-radius: 13px !important;
}

.enterprise-ops .sub-nav button,
.enterprise-ops [data-entry-item="true"] {
  background: rgba(4, 16, 11, .82) !important;
  border: 1px solid rgba(71, 255, 151, .14) !important;
  border-radius: 10px !important;
  color: #dfffe8 !important;
}

.enterprise-ops .sub-nav button.active,
.enterprise-ops [data-entry-item="true"][data-active-entry="true"] {
  background: linear-gradient(90deg, rgba(71, 255, 151, .14), rgba(255, 216, 87, .10)) !important;
  border-color: rgba(255, 216, 87, .36) !important;
  color: #fff7c7 !important;
}

.enterprise-ops .workflow-step,
.enterprise-ops .module-action-rail,
.enterprise-ops .module-action-item,
.enterprise-ops .ops-flow-item,
.enterprise-ops .entry-card,
.enterprise-ops .quick-card,
.enterprise-ops .status-card,
.enterprise-ops .summary-card,
.enterprise-ops .audit-card {
  background:
    linear-gradient(180deg, rgba(8, 24, 17, .95), rgba(2, 9, 7, .97)) !important;
  border: 1px solid rgba(71, 255, 151, .15) !important;
  border-radius: 12px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04) !important;
  color: var(--text) !important;
}

.enterprise-ops .workflow-step span,
.enterprise-ops .module-action-rail span,
.enterprise-ops .module-action-item span,
.enterprise-ops .section-title span,
.enterprise-ops .panel-ribbon span,
.enterprise-ops .step-index,
.enterprise-ops .index-badge {
  background: rgba(255, 216, 87, .12) !important;
  border: 1px solid rgba(255, 216, 87, .28) !important;
  border-radius: 999px !important;
  color: #ffeaa3 !important;
}

.enterprise-ops .workflow-step strong,
.enterprise-ops .module-action-rail strong,
.enterprise-ops .module-action-item strong,
.enterprise-ops .ops-flow-item strong,
.enterprise-ops .entry-card strong,
.enterprise-ops .quick-card strong,
.enterprise-ops .status-card strong,
.enterprise-ops .summary-card strong,
.enterprise-ops .audit-card strong {
  color: #fff7c7 !important;
}

.enterprise-ops .workflow-step p,
.enterprise-ops .module-action-rail p,
.enterprise-ops .module-action-item p,
.enterprise-ops .ops-flow-item p,
.enterprise-ops .entry-card p,
.enterprise-ops .quick-card p,
.enterprise-ops .status-card p,
.enterprise-ops .summary-card p,
.enterprise-ops .audit-card p,
.enterprise-ops .workflow-step small,
.enterprise-ops .module-action-rail small,
.enterprise-ops .module-action-item small {
  color: var(--muted) !important;
}

.enterprise-ops .workflow-step.open,
.enterprise-ops .workflow-step.active,
.enterprise-ops .module-action-item.active,
.enterprise-ops .ops-flow-item.active {
  background:
    linear-gradient(90deg, rgba(71, 255, 151, .12), rgba(255, 216, 87, .08)),
    linear-gradient(180deg, rgba(8, 27, 18, .98), rgba(2, 9, 7, .98)) !important;
  border-color: rgba(255, 216, 87, .35) !important;
}

.enterprise-ops .workflow-step.pending,
.enterprise-ops .module-action-item.pending,
.enterprise-ops .ops-flow-item.pending {
  border-color: rgba(255, 216, 87, .26) !important;
}

.enterprise-ops .workflow-step.danger,
.enterprise-ops .workflow-step.risk,
.enterprise-ops .module-action-item.danger,
.enterprise-ops .ops-flow-item.danger {
  border-color: rgba(255, 75, 85, .34) !important;
}

.enterprise-ops .table-wrap,
.enterprise-ops .inbox-table-wrap {
  background: rgba(2, 9, 7, .76) !important;
  border: 1px solid rgba(71, 255, 151, .14) !important;
  border-radius: 12px !important;
  box-shadow: inset 0 0 24px rgba(71, 255, 151, .025) !important;
}

.enterprise-ops table {
  background: transparent !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  color: var(--text) !important;
}

.enterprise-ops thead th {
  background: rgba(5, 20, 14, .96) !important;
  border-bottom: 1px solid rgba(255, 216, 87, .22) !important;
  color: #ffeaa3 !important;
  font-weight: 800 !important;
}

.enterprise-ops tbody td {
  background: rgba(2, 9, 7, .42) !important;
  border-bottom: 1px solid rgba(71, 255, 151, .08) !important;
  color: #dff7e6 !important;
}

.enterprise-ops tbody tr:hover td {
  background: rgba(71, 255, 151, .07) !important;
  color: #f8ffe8 !important;
}

.enterprise-ops .modal-card {
  background:
    radial-gradient(circle at 86% 0%, rgba(255, 216, 87, .13), transparent 220px),
    linear-gradient(180deg, rgba(8, 24, 17, .99), rgba(2, 9, 7, .99)) !important;
  border: 1px solid rgba(255, 216, 87, .24) !important;
  border-radius: 16px !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .50), inset 0 1px 0 rgba(255, 255, 255, .05) !important;
  color: var(--text) !important;
}

.enterprise-ops .modal-backdrop {
  background: rgba(0, 0, 0, .72) !important;
  backdrop-filter: blur(8px) !important;
}

.enterprise-ops .toast {
  background:
    linear-gradient(180deg, rgba(8, 27, 18, .98), rgba(2, 9, 7, .98)) !important;
  border: 1px solid rgba(71, 255, 151, .22) !important;
  border-left: 4px solid rgba(255, 216, 87, .82) !important;
  border-radius: 12px !important;
  color: #f8ffe8 !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .32) !important;
}

.enterprise-ops .toast.error {
  border-left-color: rgba(255, 75, 85, .90) !important;
}

body.login-screen {
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 216, 87, .16), transparent 330px),
    radial-gradient(circle at 88% 4%, rgba(255, 75, 85, .12), transparent 310px),
    linear-gradient(rgba(71, 255, 151, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(71, 255, 151, .03) 1px, transparent 1px),
    #030806 !important;
  background-size: auto, auto, 38px 38px, 38px 38px, auto !important;
}

body.login-screen .login-card {
  background:
    radial-gradient(circle at 82% 0%, rgba(255, 216, 87, .13), transparent 170px),
    linear-gradient(180deg, rgba(8, 27, 18, .98), rgba(2, 9, 7, .99)) !important;
  border: 1px solid rgba(255, 216, 87, .25) !important;
  border-radius: 16px !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .05) !important;
}

body.login-screen .brand-mark {
  border-radius: 50% !important;
}

@media (max-width: 1380px) {
  .enterprise-ops .dashboard-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .enterprise-ops .app-main {
    padding: 10px !important;
  }
  .enterprise-ops .dashboard-hero {
    grid-template-columns: 1fr !important;
  }
  .enterprise-ops .hero-countdown {
    min-width: 0 !important;
  }
}

/* High impact casino command v38 EOF marker */
body.enterprise-ops.casino-command-v38 {
  --casino-black: #020403 !important;
  --casino-green: #06351f !important;
  --casino-green-2: #0b5a33 !important;
  --casino-red: #c8182c !important;
  --casino-red-2: #6f0614 !important;
  --casino-gold: #ffd45a !important;
  --casino-gold-2: #b67612 !important;
  --casino-neon: #29ff8a !important;
  --casino-cyan: #42d6ff !important;
  background:
    radial-gradient(circle at 50% -18%, rgba(255, 212, 90, .28), transparent 420px),
    radial-gradient(circle at 8% 16%, rgba(200, 24, 44, .30), transparent 330px),
    radial-gradient(circle at 92% 8%, rgba(41, 255, 138, .22), transparent 380px),
    linear-gradient(135deg, rgba(5, 48, 29, .62), transparent 28%),
    repeating-linear-gradient(0deg, rgba(255, 212, 90, .032) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(90deg, rgba(41, 255, 138, .028) 0 1px, transparent 1px 18px),
    #020403 !important;
  color: #fff8d7 !important;
}

body.enterprise-ops.casino-command-v38::after {
  background:
    radial-gradient(circle at 14% 82%, rgba(200, 24, 44, .18), transparent 170px),
    radial-gradient(circle at 92% 78%, rgba(255, 212, 90, .16), transparent 220px) !important;
  content: "" !important;
  inset: 0 !important;
  pointer-events: none !important;
  position: fixed !important;
  z-index: -1 !important;
}

.casino-command-v38 .app-shell {
  grid-template-columns: 278px minmax(0, 1fr) !important;
}

.casino-command-v38 .app-sidebar {
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 212, 90, .22), transparent 190px),
    linear-gradient(180deg, rgba(10, 43, 27, .98), rgba(3, 10, 7, .99) 54%, rgba(44, 3, 10, .96)) !important;
  border-right: 2px solid rgba(255, 212, 90, .42) !important;
  box-shadow: 28px 0 70px rgba(0, 0, 0, .48), inset -1px 0 0 rgba(41, 255, 138, .18) !important;
  padding: 18px 16px !important;
}

.casino-command-v38 .app-sidebar::before {
  background:
    radial-gradient(circle at 50% 50%, #c8182c 0 27%, #fff8d7 28% 35%, transparent 36%),
    radial-gradient(circle at 50% 50%, #ffd45a 0 27%, #fff8d7 28% 35%, transparent 36%),
    radial-gradient(circle at 50% 50%, #06351f 0 27%, #fff8d7 28% 35%, transparent 36%) !important;
  background-position: 0 0, 52px 0, 104px 0 !important;
  background-repeat: no-repeat !important;
  background-size: 38px 38px !important;
  content: "" !important;
  height: 42px !important;
  left: 28px !important;
  opacity: .88 !important;
  position: absolute !important;
  top: 126px !important;
  width: 148px !important;
}

.casino-command-v38 .brand-block {
  background: rgba(255, 255, 255, .98) !important;
  border: 1px solid rgba(24, 105, 255, .58) !important;
  border-radius: 16px !important;
  box-shadow: 0 0 28px rgba(24, 105, 255, .18), inset 0 1px 0 rgba(255, 255, 255, .9) !important;
  min-height: 72px !important;
  padding: 8px 12px !important;
}

.casino-command-v38 .brand-logo {
  display: block !important;
  height: auto !important;
  max-height: 70px !important;
  object-fit: contain !important;
  object-position: left center !important;
  width: 100% !important;
}

.casino-command-v38 .brand-mark {
  border-radius: 50% !important;
  font-size: 18px !important;
  height: 48px !important;
  width: 48px !important;
}

.casino-command-v38 .brand-block strong {
  color: #fff4b0 !important;
  font-size: 14px !important;
}

.casino-command-v38 .theme-stamp {
  background:
    linear-gradient(90deg, rgba(200, 24, 44, .34), rgba(255, 212, 90, .18), rgba(41, 255, 138, .16)) !important;
  border: 1px solid rgba(255, 212, 90, .44) !important;
  border-radius: 12px !important;
  color: #fff4b0 !important;
  font-size: 11px !important;
  margin-top: 54px !important;
  text-shadow: 0 0 14px rgba(255, 212, 90, .34) !important;
}

.casino-command-v38 .main-nav button {
  background:
    linear-gradient(90deg, rgba(3, 18, 11, .96), rgba(23, 5, 8, .88)) !important;
  border: 1px solid rgba(255, 212, 90, .23) !important;
  border-radius: 12px !important;
  color: #e7ffe9 !important;
  min-height: 50px !important;
}

.casino-command-v38 .main-nav button::after {
  background: radial-gradient(circle, rgba(255, 212, 90, .95) 0 30%, transparent 31%) !important;
  content: "" !important;
  height: 34px !important;
  opacity: .16 !important;
  position: absolute !important;
  right: 10px !important;
  top: 8px !important;
  width: 34px !important;
}

.casino-command-v38 .main-nav button.active {
  background:
    linear-gradient(90deg, rgba(200, 24, 44, .48), rgba(255, 212, 90, .16), rgba(6, 53, 31, .88)) !important;
  border-color: rgba(255, 212, 90, .62) !important;
  box-shadow: 0 0 34px rgba(200, 24, 44, .20), inset 0 0 24px rgba(255, 212, 90, .08) !important;
  color: #fff8d7 !important;
}

.casino-command-v38 .side-ops,
.casino-command-v38 .side-health {
  background: rgba(2, 8, 6, .68) !important;
  border-color: rgba(255, 212, 90, .26) !important;
}

.casino-command-v38 .app-main {
  padding: 18px 18px 24px !important;
}

.casino-command-v38 .topbar {
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 212, 90, .20), transparent 210px),
    linear-gradient(90deg, rgba(103, 5, 18, .96), rgba(5, 46, 28, .94) 48%, rgba(3, 11, 8, .98)) !important;
  border: 2px solid rgba(255, 212, 90, .35) !important;
  border-radius: 18px !important;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .36), inset 0 0 38px rgba(255, 212, 90, .06) !important;
  min-height: 92px !important;
}

.casino-command-v38 .topbar h1 {
  color: #fff4b0 !important;
  font-size: 32px !important;
  font-weight: 900 !important;
  text-shadow: 0 0 22px rgba(255, 212, 90, .38) !important;
}

.casino-command-v38 .topbar p {
  color: #dfffe5 !important;
  display: block !important;
}

.casino-command-v38 .eyebrow {
  color: #29ff8a !important;
  font-size: 12px !important;
}

.casino-command-v38 .dashboard-hero {
  background:
    radial-gradient(circle at 88% 28%, rgba(255, 212, 90, .34), transparent 250px),
    radial-gradient(circle at 18% 20%, rgba(200, 24, 44, .30), transparent 280px),
    conic-gradient(from 180deg at 82% 50%, rgba(255, 212, 90, .14), rgba(41, 255, 138, .08), rgba(200, 24, 44, .14), rgba(255, 212, 90, .14)),
    linear-gradient(135deg, rgba(5, 57, 31, .98), rgba(3, 9, 7, .98) 62%, rgba(72, 4, 14, .96)) !important;
  border: 2px solid rgba(255, 212, 90, .42) !important;
  border-radius: 22px !important;
  box-shadow: 0 32px 90px rgba(0, 0, 0, .46), inset 0 0 70px rgba(41, 255, 138, .06) !important;
  min-height: 245px !important;
  padding: 26px !important;
}

.casino-command-v38 .dashboard-hero::before {
  color: rgba(255, 212, 90, .15) !important;
  content: "CANADA28  LIVE CASINO  COMMAND" !important;
  font-size: clamp(34px, 5.5vw, 82px) !important;
  left: 24px !important;
  right: auto !important;
  top: auto !important;
  bottom: 18px !important;
}

.casino-command-v38 .dashboard-hero::after {
  background:
    radial-gradient(circle at 50% 50%, #c8182c 0 25%, #fff6bf 26% 34%, #7a0717 35% 50%, transparent 51%),
    radial-gradient(circle at 50% 50%, #ffd45a 0 25%, #fff6bf 26% 34%, #8a5607 35% 50%, transparent 51%),
    radial-gradient(circle at 50% 50%, #06351f 0 25%, #fff6bf 26% 34%, #041d12 35% 50%, transparent 51%),
    radial-gradient(circle at 50% 50%, #42d6ff 0 25%, #fff6bf 26% 34%, #06475c 35% 50%, transparent 51%),
    radial-gradient(circle at 50% 50%, #ffffff 0 20%, #c8182c 21% 37%, transparent 38%) !important;
  background-position: 0 0, 58px 0, 116px 0, 174px 0, 232px 0 !important;
  background-size: 46px 46px !important;
  bottom: 28px !important;
  height: 50px !important;
  right: 30px !important;
  width: 282px !important;
}

.casino-command-v38 .dashboard-hero h2 {
  color: #fff4b0 !important;
  font-size: 40px !important;
  font-weight: 900 !important;
  max-width: 760px !important;
  text-shadow: 0 0 34px rgba(255, 212, 90, .38), 0 2px 0 rgba(0, 0, 0, .28) !important;
}

.casino-command-v38 .dashboard-hero p {
  color: #e7ffe9 !important;
  font-size: 15px !important;
}

.casino-command-v38 .hero-countdown {
  background:
    linear-gradient(180deg, rgba(7, 7, 5, .98), rgba(26, 5, 8, .96)),
    radial-gradient(circle at 50% 0%, rgba(255, 212, 90, .20), transparent 130px) !important;
  border: 2px solid rgba(255, 212, 90, .52) !important;
  border-radius: 18px !important;
  box-shadow: inset 0 0 40px rgba(255, 212, 90, .08), 0 0 38px rgba(255, 212, 90, .14) !important;
}

.casino-command-v38 .hero-countdown strong {
  color: #ffe16c !important;
  font-size: 48px !important;
}

.casino-command-v38 .dashboard-metrics {
  gap: 12px !important;
}

.casino-command-v38 .metric-card,
.casino-command-v38 .metric {
  background:
    radial-gradient(circle at 84% 16%, rgba(255, 212, 90, .15), transparent 80px),
    linear-gradient(180deg, rgba(7, 28, 17, .96), rgba(3, 10, 7, .98)) !important;
  border: 1px solid rgba(255, 212, 90, .30) !important;
  border-radius: 16px !important;
  min-height: 110px !important;
}

.casino-command-v38 .metric-card strong,
.casino-command-v38 .metric strong {
  color: #ffe16c !important;
  font-size: 30px !important;
}

.casino-command-v38 .dashboard-grid {
  gap: 14px !important;
}

.casino-command-v38 .dashboard-panel,
.casino-command-v38 .panel,
.casino-command-v38 .module-hero,
.casino-command-v38 .analysis-board,
.casino-command-v38 .control-panel {
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 212, 90, .10), transparent 170px),
    linear-gradient(180deg, rgba(6, 28, 17, .96), rgba(2, 9, 7, .98)) !important;
  border: 1px solid rgba(255, 212, 90, .24) !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 54px rgba(0, 0, 0, .32), inset 0 0 28px rgba(41, 255, 138, .035) !important;
}

.casino-command-v38 .dashboard-panel::before,
.casino-command-v38 .panel::before,
.casino-command-v38 .metric-card::before {
  background: linear-gradient(90deg, #c8182c, #ffd45a, #29ff8a) !important;
  height: 3px !important;
  left: 16px !important;
  right: 16px !important;
}

.casino-command-v38 .panel-head h2,
.casino-command-v38 .dashboard-panel .panel-head h2,
.casino-command-v38 .module-hero h2 {
  color: #fff4b0 !important;
  font-size: 18px !important;
}

.casino-command-v38 .draw-result-card {
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 212, 90, .30), transparent 100px),
    linear-gradient(180deg, rgba(73, 5, 15, .96), rgba(3, 12, 8, .98)) !important;
  border: 2px solid rgba(255, 212, 90, .48) !important;
  border-radius: 18px !important;
  min-height: 190px !important;
}

.casino-command-v38 .draw-result-card strong {
  color: #ffe16c !important;
  font-size: 48px !important;
}

.casino-command-v38 .info-row,
.casino-command-v38 .health-item,
.casino-command-v38 .profile-card,
.casino-command-v38 .detail-card,
.casino-command-v38 .empty-card {
  background: rgba(2, 9, 7, .82) !important;
  border-color: rgba(255, 212, 90, .20) !important;
  border-left: 4px solid rgba(41, 255, 138, .70) !important;
}

.casino-command-v38 .dashboard-action,
.casino-command-v38 .workflow-step,
.casino-command-v38 .module-action-rail,
.casino-command-v38 .module-action-item {
  background:
    radial-gradient(circle at 88% 16%, rgba(255, 212, 90, .18), transparent 72px),
    linear-gradient(180deg, rgba(7, 29, 18, .96), rgba(28, 5, 9, .94)) !important;
  border: 1px solid rgba(255, 212, 90, .28) !important;
  border-radius: 16px !important;
}

.casino-command-v38 .dashboard-action span {
  color: #ffe16c !important;
  font-size: 15px !important;
}

.casino-command-v38 .btn {
  background: linear-gradient(180deg, #ffe98c, #b87612) !important;
  border-color: rgba(255, 233, 140, .95) !important;
  border-radius: 11px !important;
  color: #1b0900 !important;
}

.casino-command-v38 .btn.secondary,
.casino-command-v38 .btn.ghost {
  background:
    linear-gradient(180deg, rgba(13, 52, 31, .98), rgba(45, 5, 12, .94)) !important;
  border-color: rgba(255, 212, 90, .34) !important;
  color: #fff4b0 !important;
}

.casino-command-v38 input,
.casino-command-v38 select,
.casino-command-v38 textarea,
.casino-command-v38 .search-input {
  background: rgba(1, 6, 4, .94) !important;
  border: 1px solid rgba(255, 212, 90, .28) !important;
  color: #fff8d7 !important;
}

.casino-command-v38 .table-wrap,
.casino-command-v38 .inbox-table-wrap {
  background: rgba(1, 6, 4, .82) !important;
  border-color: rgba(255, 212, 90, .22) !important;
  border-radius: 16px !important;
}

.casino-command-v38 thead th {
  background: linear-gradient(90deg, rgba(69, 5, 15, .95), rgba(6, 43, 25, .96)) !important;
  color: #ffe98c !important;
}

.casino-command-v38 tbody td {
  background: rgba(3, 12, 8, .58) !important;
}

.casino-command-v38 tbody tr:hover td {
  background: rgba(255, 212, 90, .075) !important;
}

body.login-screen .login-card::before {
  content: "CANADA28 CASINO COMMAND" !important;
  color: rgba(255, 212, 90, .16) !important;
  font-family: Consolas, "SFMono-Regular", monospace !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  position: absolute !important;
  right: 22px !important;
  top: 18px !important;
}

@media (max-width: 980px) {
  .casino-command-v38 .app-shell {
    grid-template-columns: 1fr !important;
  }
  .casino-command-v38 .theme-stamp {
    margin-top: 0 !important;
  }
  .casino-command-v38 .dashboard-hero h2 {
    font-size: 30px !important;
  }
}

/* Dashboard compact fit v39 EOF marker */
.casino-command-v38 #commandDashboard {
  gap: 10px !important;
}

.casino-command-v38 .app-main {
  padding: 14px 14px 18px !important;
}

.casino-command-v38 .topbar {
  border-width: 1px !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .28), inset 0 0 24px rgba(255, 212, 90, .04) !important;
  margin-bottom: 10px !important;
  min-height: 72px !important;
  padding: 12px 14px !important;
}

.casino-command-v38 .topbar h1 {
  font-size: 26px !important;
}

.casino-command-v38 .topbar p {
  font-size: 13px !important;
  line-height: 1.45 !important;
  margin-top: 4px !important;
}

.casino-command-v38 .top-actions {
  gap: 8px !important;
}

.casino-command-v38 .dashboard-hero {
  border-width: 1px !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 52px rgba(0, 0, 0, .32), inset 0 0 42px rgba(41, 255, 138, .045) !important;
  grid-template-columns: minmax(0, 1fr) 240px !important;
  min-height: 150px !important;
  padding: 16px 18px !important;
}

.casino-command-v38 .dashboard-hero::before {
  bottom: 10px !important;
  font-size: clamp(24px, 4vw, 52px) !important;
  opacity: .72 !important;
}

.casino-command-v38 .dashboard-hero::after {
  background-size: 31px 31px !important;
  background-position: 0 0, 39px 0, 78px 0, 117px 0, 156px 0 !important;
  bottom: 16px !important;
  height: 34px !important;
  opacity: .72 !important;
  right: 18px !important;
  width: 190px !important;
}

.casino-command-v38 .dashboard-hero h2 {
  font-size: 30px !important;
  line-height: 1.15 !important;
  margin: 2px 0 6px !important;
}

.casino-command-v38 .dashboard-hero p {
  font-size: 13px !important;
  line-height: 1.45 !important;
}

.casino-command-v38 .ops-readiness {
  gap: 6px !important;
  margin-top: 8px !important;
}

.casino-command-v38 .ops-readiness span,
.casino-command-v38 .pill,
.casino-command-v38 .tag {
  padding: 4px 8px !important;
}

.casino-command-v38 .hero-countdown {
  align-self: start !important;
  border-width: 1px !important;
  border-radius: 14px !important;
  box-shadow: inset 0 0 22px rgba(255, 212, 90, .06), 0 0 24px rgba(255, 212, 90, .10) !important;
  min-height: 116px !important;
  padding: 12px !important;
}

.casino-command-v38 .hero-countdown strong {
  font-size: 36px !important;
}

.casino-command-v38 .dashboard-metrics {
  gap: 8px !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

.casino-command-v38 .metric-card,
.casino-command-v38 .metric {
  border-radius: 12px !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22), inset 0 0 18px rgba(41, 255, 138, .025) !important;
  min-height: 76px !important;
  padding: 10px 12px !important;
}

.casino-command-v38 .metric-card::before,
.casino-command-v38 .metric::before {
  height: 2px !important;
  left: 12px !important;
  right: 12px !important;
}

.casino-command-v38 .metric-card span,
.casino-command-v38 .metric span,
.casino-command-v38 .metric-card em,
.casino-command-v38 .metric em {
  font-size: 11px !important;
  line-height: 1.35 !important;
}

.casino-command-v38 .metric-card strong,
.casino-command-v38 .metric strong {
  font-size: 23px !important;
  line-height: 1.05 !important;
  margin: 3px 0 !important;
}

.casino-command-v38 .dashboard-grid {
  align-items: start !important;
  gap: 10px !important;
  grid-auto-rows: auto !important;
}

.casino-command-v38 .dashboard-panel {
  align-self: start !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .24), inset 0 0 18px rgba(41, 255, 138, .025) !important;
  padding: 11px 12px !important;
}

.casino-command-v38 .dashboard-panel::before {
  height: 2px !important;
  left: 12px !important;
  right: 12px !important;
}

.casino-command-v38 .dashboard-panel .panel-head {
  margin-bottom: 8px !important;
}

.casino-command-v38 .dashboard-panel .panel-head h2 {
  font-size: 15px !important;
  line-height: 1.2 !important;
}

.casino-command-v38 .dashboard-panel .panel-head p {
  font-size: 12px !important;
  line-height: 1.35 !important;
  margin-top: 2px !important;
}

.casino-command-v38 .dashboard-draw-grid {
  gap: 8px !important;
  grid-template-columns: minmax(180px, .68fr) minmax(0, 1.32fr) !important;
}

.casino-command-v38 .draw-result-card {
  border-width: 1px !important;
  border-radius: 13px !important;
  min-height: 122px !important;
  padding: 12px !important;
}

.casino-command-v38 .draw-result-card strong {
  font-size: 34px !important;
}

.casino-command-v38 .draw-result-card span,
.casino-command-v38 .draw-result-card em {
  font-size: 12px !important;
}

.casino-command-v38 #commandDashboard .info-row,
.casino-command-v38 #commandDashboard .health-item {
  border-left-width: 3px !important;
  border-radius: 10px !important;
  gap: 4px !important;
  min-height: 0 !important;
  padding: 8px 9px !important;
}

.casino-command-v38 #commandDashboard .info-row span,
.casino-command-v38 #commandDashboard .health-item span,
.casino-command-v38 #commandDashboard .info-row em,
.casino-command-v38 #commandDashboard .health-item em {
  font-size: 11px !important;
  line-height: 1.35 !important;
}

.casino-command-v38 #commandDashboard .info-row strong,
.casino-command-v38 #commandDashboard .health-item strong {
  font-size: 13px !important;
  line-height: 1.35 !important;
}

.casino-command-v38 .dashboard-actions {
  gap: 8px !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

.casino-command-v38 .dashboard-action {
  border-radius: 12px !important;
  min-height: 64px !important;
  padding: 9px 10px !important;
}

.casino-command-v38 .dashboard-action span {
  font-size: 13px !important;
  line-height: 1.3 !important;
}

.casino-command-v38 .dashboard-action strong {
  font-size: 11px !important;
  line-height: 1.35 !important;
}

@media (max-width: 1380px) {
  .casino-command-v38 .dashboard-metrics,
  .casino-command-v38 .dashboard-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .casino-command-v38 .dashboard-hero {
    grid-template-columns: minmax(0, 1fr) 220px !important;
  }
}

@media (max-width: 900px) {
  .casino-command-v38 .dashboard-hero,
  .casino-command-v38 .dashboard-draw-grid,
  .casino-command-v38 .dashboard-grid,
  .casino-command-v38 .dashboard-actions {
    grid-template-columns: 1fr !important;
  }
  .casino-command-v38 .dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .casino-command-v38 .dashboard-hero h2 {
    font-size: 25px !important;
  }
}

/* Dashboard lottery balls v40 EOF marker */
.casino-command-v38 .draw-result-card {
  justify-content: center !important;
}

.casino-command-v38 .lottery-balls {
  align-items: center !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
  justify-content: center !important;
  margin: 8px 0 6px !important;
}

.casino-command-v38 .lottery-ball {
  align-items: center !important;
  aspect-ratio: 1 !important;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, .92), rgba(255, 255, 255, .20) 22%, transparent 23%),
    radial-gradient(circle at 50% 50%, #ffd966 0 48%, #b87812 72%, #4a2300 100%) !important;
  border: 1px solid rgba(255, 246, 190, .78) !important;
  border-radius: 50% !important;
  box-shadow: inset -5px -7px 12px rgba(54, 21, 0, .38), inset 4px 4px 10px rgba(255, 255, 255, .34), 0 6px 18px rgba(0, 0, 0, .34) !important;
  color: #210d00 !important;
  display: inline-flex !important;
  flex: 0 0 46px !important;
  font-family: Consolas, "SFMono-Regular", monospace !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  height: 46px !important;
  justify-content: center !important;
  line-height: 1 !important;
  min-width: 46px !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .28) !important;
}

.casino-command-v38 .lottery-ball.ball-1 {
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, .92), rgba(255, 255, 255, .20) 22%, transparent 23%),
    radial-gradient(circle at 50% 50%, #ff5a63 0 48%, #b50f22 72%, #4f020b 100%) !important;
  color: #fff6dc !important;
}

.casino-command-v38 .lottery-ball.ball-2 {
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, .92), rgba(255, 255, 255, .20) 22%, transparent 23%),
    radial-gradient(circle at 50% 50%, #ffd966 0 48%, #b87812 72%, #4a2300 100%) !important;
}

.casino-command-v38 .lottery-ball.ball-3 {
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, .92), rgba(255, 255, 255, .20) 22%, transparent 23%),
    radial-gradient(circle at 50% 50%, #38ff91 0 48%, #0c8b45 72%, #04351d 100%) !important;
  color: #06200f !important;
}

.casino-command-v38 .lottery-ball.result-ball {
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .22) 22%, transparent 23%),
    radial-gradient(circle at 50% 50%, #ffffff 0 38%, #ffd45a 39% 64%, #9a5f07 100%) !important;
  border-color: rgba(255, 255, 255, .92) !important;
  box-shadow: inset -6px -8px 14px rgba(55, 25, 0, .34), 0 0 22px rgba(255, 212, 90, .22), 0 7px 20px rgba(0, 0, 0, .34) !important;
  color: #2a1200 !important;
  flex-basis: 54px !important;
  font-size: 24px !important;
  height: 54px !important;
  min-width: 54px !important;
}

.casino-command-v38 .lottery-ball.blank {
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, .55), transparent 24%),
    radial-gradient(circle at 50% 50%, #18251d 0 48%, #07100b 100%) !important;
  color: #ffe98c !important;
}

.casino-command-v38 .lottery-plus,
.casino-command-v38 .lottery-equal {
  color: #ffe98c !important;
  font-family: Consolas, "SFMono-Regular", monospace !important;
  font-size: 15px !important;
  font-style: normal !important;
  font-weight: 900 !important;
  opacity: .9 !important;
}

.casino-command-v38 .lottery-result-text {
  color: rgba(255, 246, 210, .68) !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  margin-top: 2px !important;
}

.casino-command-v38 .draw-result-title {
  align-items: flex-start !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  margin-bottom: 6px !important;
}

.casino-command-v38 .draw-result-title strong {
  font-size: 18px !important;
  line-height: 1.1 !important;
}

.casino-command-v38 .draw-result-title span {
  color: rgba(255, 246, 210, .72) !important;
  font-size: 12px !important;
  line-height: 1.1 !important;
}

.casino-command-v38 .big-result-balls {
  gap: 10px !important;
}

.casino-command-v38 .draw-result-card > strong.lottery-result-text {
  font-size: 12px !important;
}

/* Dashboard draw result cleanup v44 EOF marker */
.casino-command-v38 #dashboardDrawPanel .panel-head p {
  display: none !important;
}

.casino-command-v38 #dashboardLastResult {
  align-items: center !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-height: 154px !important;
  padding: 18px 16px !important;
}

.casino-command-v38 #dashboardLastResult em,
.casino-command-v38 #dashboardLastResult > .lottery-result-text {
  display: none !important;
}

.casino-command-v38 #dashboardDrawStatus {
  align-content: stretch !important;
  display: grid !important;
  gap: 10px !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
}

.casino-command-v38 #dashboardDrawStatus .info-row {
  min-height: 0 !important;
}

.casino-command-v38 #dashboardDrawStatus .info-row strong {
  font-size: 18px !important;
}

/* User detail points v46 EOF marker */
.enterprise-ops .user-points-editor {
  display: grid;
  gap: 14px;
}

.enterprise-ops .user-points-form {
  background: rgba(255, 246, 210, .04);
  border: 1px solid rgba(255, 220, 120, .16);
  border-radius: 8px;
  margin-top: 0;
  padding: 14px;
}

.enterprise-ops .user-points-form .split-actions {
  justify-content: flex-end;
}

/* No operation confirm v47 EOF marker */
.enterprise-ops #pointsApprovalCode,
.enterprise-ops #requestPointsApprovalBtn,
.enterprise-ops #drawApprovalCode,
.enterprise-ops #requestDrawApprovalBtn,
.enterprise-ops #restoreConfirm,
.enterprise-ops #restoreApprovalCode,
.enterprise-ops #requestRestoreApprovalBtn {
  display: none !important;
}

/* Dashboard density and lottery readability v48 EOF marker */
.casino-command-v38 .dashboard-shell {
  gap: 12px !important;
}

.casino-command-v38 .dashboard-grid {
  align-items: stretch !important;
  gap: 12px !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
}

.casino-command-v38 #dashboardDrawPanel {
  grid-column: 1 / -1 !important;
}

.casino-command-v38 #dashboardFinancePanel,
.casino-command-v38 #dashboardUsersPanel,
.casino-command-v38 #dashboardSystemPanel {
  grid-column: span 4 !important;
}

.casino-command-v38 #dashboardQuickPanel {
  grid-column: 1 / -1 !important;
}

.casino-command-v38 .dashboard-panel {
  min-height: 100% !important;
  padding: 13px 14px !important;
}

.casino-command-v38 .dashboard-draw-grid {
  align-items: stretch !important;
  gap: 12px !important;
  grid-template-columns: minmax(360px, .95fr) minmax(0, 1.05fr) !important;
}

.casino-command-v38 #dashboardLastResult {
  min-height: 196px !important;
  padding: 18px !important;
}

.casino-command-v38 #dashboardDrawStatus {
  align-content: stretch !important;
  display: grid !important;
  gap: 8px !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
}

.casino-command-v38 #dashboardDrawStatus .info-row {
  align-content: center !important;
  min-height: 58px !important;
}

.casino-command-v38 #dashboardDrawStatus .info-row strong {
  font-size: 20px !important;
}

.casino-command-v38 .big-result-balls {
  gap: 12px !important;
  margin: 10px 0 4px !important;
}

.casino-command-v38 .big-result-balls .lottery-ball:not(.result-ball):not(.blank) {
  flex-basis: 64px !important;
  font-size: 34px !important;
  height: 64px !important;
  min-width: 64px !important;
}

.casino-command-v38 .big-result-balls .lottery-ball.result-ball {
  flex-basis: 70px !important;
  font-size: 34px !important;
  height: 70px !important;
  min-width: 70px !important;
}

.casino-command-v38 .big-result-balls .lottery-plus,
.casino-command-v38 .big-result-balls .lottery-equal {
  font-size: 22px !important;
}

.casino-command-v38 .draw-result-title {
  align-items: center !important;
  margin-bottom: 8px !important;
  text-align: center !important;
}

.casino-command-v38 .draw-result-title strong {
  font-size: 24px !important;
}

.casino-command-v38 .draw-result-title span {
  font-size: 14px !important;
}

.casino-command-v38 #dashboardFinance,
.casino-command-v38 #dashboardUsers,
.casino-command-v38 #dashboardSystem {
  display: grid !important;
  gap: 8px !important;
}

.casino-command-v38 #dashboardFinance .info-row,
.casino-command-v38 #dashboardUsers .info-row,
.casino-command-v38 #dashboardSystem .health-item {
  min-height: 54px !important;
}

.casino-command-v38 .dashboard-actions {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

.casino-command-v38 .dashboard-action {
  min-height: 74px !important;
}

@media (max-width: 1180px) {
  .casino-command-v38 #dashboardFinancePanel,
  .casino-command-v38 #dashboardUsersPanel,
  .casino-command-v38 #dashboardSystemPanel {
    grid-column: span 6 !important;
  }

  .casino-command-v38 .dashboard-draw-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  .casino-command-v38 #dashboardFinancePanel,
  .casino-command-v38 #dashboardUsersPanel,
  .casino-command-v38 #dashboardSystemPanel,
  .casino-command-v38 #dashboardDrawPanel,
  .casino-command-v38 #dashboardQuickPanel {
    grid-column: 1 / -1 !important;
  }

  .casino-command-v38 #dashboardDrawStatus,
  .casino-command-v38 .dashboard-actions {
    grid-template-columns: 1fr !important;
  }

  .casino-command-v38 .big-result-balls .lottery-ball:not(.result-ball):not(.blank) {
    flex-basis: 56px !important;
    font-size: 30px !important;
    height: 56px !important;
    min-width: 56px !important;
  }
}

/* Dashboard operations cleanup v62 EOF marker */
.casino-command-v38 .dashboard-shell {
  gap: 10px !important;
}

.casino-command-v38 #commandMetrics.dashboard-metrics {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

.casino-command-v38 .dashboard-hero {
  border-radius: 10px !important;
  grid-template-columns: minmax(0, 1fr) 260px !important;
  min-height: 132px !important;
  padding: 14px 16px !important;
}

.casino-command-v38 .dashboard-hero::before,
.casino-command-v38 .dashboard-hero::after {
  display: none !important;
}

.casino-command-v38 .dashboard-hero h2 {
  font-size: 24px !important;
  margin: 2px 0 6px !important;
}

.casino-command-v38 .dashboard-hero p {
  font-size: 13px !important;
  line-height: 1.45 !important;
}

.casino-command-v38 .hero-countdown {
  border-radius: 10px !important;
  min-width: 0 !important;
}

.casino-command-v38 .hero-countdown strong {
  font-size: 32px !important;
}

.casino-command-v38 .ops-readiness {
  gap: 6px !important;
  margin-top: 10px !important;
}

.casino-command-v38 .readiness-item {
  min-height: 38px !important;
  padding: 7px 9px !important;
}

.casino-command-v38 .dashboard-metrics {
  gap: 8px !important;
}

.casino-command-v38 .dashboard-metrics .metric-card {
  min-height: 74px !important;
  padding: 11px 12px !important;
}

.casino-command-v38 .dashboard-metrics .metric-card strong {
  font-size: 22px !important;
}

.casino-command-v38 .ops-overview-strip {
  background: linear-gradient(180deg, rgba(8, 22, 16, .94), rgba(3, 10, 8, .96)) !important;
  border: 1px solid rgba(71, 255, 151, .14) !important;
  border-radius: 10px !important;
  color: var(--text) !important;
  display: grid !important;
  gap: 8px !important;
  grid-template-columns: 1fr !important;
  min-width: 0 !important;
  padding: 9px 10px !important;
}

.casino-command-v38 .ops-overview-head {
  align-items: center !important;
  display: flex !important;
  gap: 8px !important;
  min-width: 0 !important;
}

.casino-command-v38 .ops-overview-head span,
.casino-command-v38 .overview-side > div > span {
  color: rgba(255, 246, 210, .58) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

.casino-command-v38 .ops-overview-head strong {
  color: #fff7c7 !important;
  font-size: 14px !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}

.casino-command-v38 .ops-overview-head em {
  color: rgba(196, 220, 205, .74) !important;
  font-size: 11px !important;
  font-style: normal !important;
  line-height: 1.3 !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.casino-command-v38 #operationsOverviewCards {
  display: grid !important;
  gap: 8px !important;
  grid-template-columns: 1fr !important;
  min-width: 0 !important;
}

.casino-command-v38 .overview-side {
  display: grid !important;
  gap: 8px !important;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) !important;
  min-width: 0 !important;
}

.casino-command-v38 .overview-side > div {
  background: rgba(1, 8, 6, .44) !important;
  border: 1px solid rgba(71, 255, 151, .10) !important;
  border-radius: 8px !important;
  display: grid !important;
  gap: 5px !important;
  min-width: 0 !important;
  padding: 8px !important;
}

.casino-command-v38 .overview-group-row,
.casino-command-v38 .overview-alert-row {
  align-items: center !important;
  display: grid !important;
  gap: 6px !important;
  min-width: 0 !important;
}

.casino-command-v38 .overview-group-row {
  grid-template-columns: minmax(0, 1fr) auto auto !important;
}

.casino-command-v38 .overview-alert-row {
  grid-template-columns: minmax(0, 1fr) auto !important;
}

.casino-command-v38 .overview-group-row span,
.casino-command-v38 .overview-alert-row span {
  color: #fff7c7 !important;
  font-size: 12px !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.casino-command-v38 .overview-group-row strong,
.casino-command-v38 .overview-group-row em,
.casino-command-v38 .overview-alert-row strong,
.casino-command-v38 .overview-mini-empty {
  color: rgba(196, 220, 205, .78) !important;
  font-family: Consolas, "SFMono-Regular", monospace !important;
  font-size: 11px !important;
  font-style: normal !important;
  white-space: nowrap !important;
}

.casino-command-v38 .overview-alert-row.danger strong {
  color: #ffb4a8 !important;
}

.casino-command-v38 .overview-alert-row.pending strong {
  color: #ffd857 !important;
}

.casino-command-v38 .overview-alert-row.open strong {
  color: #47ff97 !important;
}

.casino-command-v38 .dashboard-grid {
  gap: 10px !important;
}

.casino-command-v38 .dashboard-panel {
  border-radius: 10px !important;
  padding: 12px !important;
}

.casino-command-v38 .dashboard-panel .panel-head {
  margin-bottom: 8px !important;
}

.casino-command-v38 .dashboard-panel .panel-head h2 {
  font-size: 15px !important;
}

.casino-command-v38 .dashboard-panel .panel-head p {
  font-size: 12px !important;
  line-height: 1.35 !important;
}

.casino-command-v38 #dashboardLastResult {
  min-height: 174px !important;
}

.casino-command-v38 .dashboard-draw-grid {
  grid-template-columns: minmax(320px, .88fr) minmax(0, 1.12fr) !important;
}

.casino-command-v38 #dashboardFinance .info-row,
.casino-command-v38 #dashboardUsers .info-row,
.casino-command-v38 #dashboardSystem .health-item {
  min-height: 46px !important;
}

.casino-command-v38 .dashboard-action {
  border-radius: 8px !important;
  min-height: 66px !important;
  padding: 10px !important;
}

/* Balance and leaderboard visibility v64 EOF marker */
.enterprise-ops #financeLeaderboard[data-active-entry="true"] {
  display: block !important;
  width: 100% !important;
}

.enterprise-ops #financeLeaderboard[data-active-entry="true"] .leaderboard-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.enterprise-ops #financeLeaderboard[data-active-entry="true"] .leaderboard-card,
.enterprise-ops #financeLeaderboard[data-active-entry="true"] .table-wrap,
.enterprise-ops #todayLeaderboardTable,
.enterprise-ops #yesterdayLeaderboardTable {
  display: block !important;
}

/* Warrior leaderboard command upgrade v65 EOF marker */
.enterprise-ops .warrior-command {
  display: grid !important;
  gap: 12px !important;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr) !important;
  margin-bottom: 12px !important;
}

.enterprise-ops .warrior-podium {
  align-items: start !important;
  display: grid !important;
  gap: 12px !important;
  grid-template-columns: minmax(0, 1.12fr) minmax(260px, .88fr) !important;
  min-width: 0 !important;
}

.enterprise-ops .warrior-empty {
  background: rgba(6, 18, 15, .68) !important;
  border: 1px solid rgba(245, 240, 220, .08) !important;
  border-radius: 8px !important;
  display: grid !important;
  padding: 18px !important;
}

.enterprise-ops .warrior-leader-card {
  align-content: start !important;
  background:
    linear-gradient(135deg, rgba(245, 208, 93, .16), rgba(5, 18, 14, .9) 58%),
    rgba(5, 18, 14, .82) !important;
  border: 1px solid rgba(245, 208, 93, .22) !important;
  border-radius: 8px !important;
  display: grid !important;
  gap: 10px !important;
  min-height: 226px !important;
  min-width: 0 !important;
  padding: 18px !important;
}

.enterprise-ops .warrior-leader-meta,
.enterprise-ops .warrior-leader-score {
  display: flex !important;
  gap: 8px !important;
  justify-content: space-between !important;
  min-width: 0 !important;
}

.enterprise-ops .warrior-leader-meta span,
.enterprise-ops .warrior-leader-score span,
.enterprise-ops .warrior-reward-head span,
.enterprise-ops .warrior-prize-card span {
  color: rgba(245, 240, 220, .58) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}

.enterprise-ops .warrior-leader-meta b {
  background: #f5d05d !important;
  border-radius: 999px !important;
  color: #160f02 !important;
  font-size: 13px !important;
  padding: 4px 10px !important;
}

.enterprise-ops .warrior-leader-card > strong {
  color: #f8f1d7 !important;
  font-size: 24px !important;
  line-height: 1.15 !important;
  overflow-wrap: anywhere !important;
}

.enterprise-ops .warrior-leader-score b {
  color: #5ef0a0 !important;
  font-family: Consolas, "SFMono-Regular", monospace !important;
  font-size: 30px !important;
  line-height: 1 !important;
}

.enterprise-ops .warrior-leader-card em,
.enterprise-ops .warrior-leader-card small,
.enterprise-ops .warrior-chaser-card em,
.enterprise-ops .warrior-chaser-card small,
.enterprise-ops .warrior-prize-card em,
.enterprise-ops .warrior-reward-head em,
.enterprise-ops .warrior-empty {
  color: rgba(245, 240, 220, .72) !important;
  font-size: 12px !important;
  font-style: normal !important;
  line-height: 1.35 !important;
  overflow-wrap: anywhere !important;
}

.enterprise-ops .warrior-empty {
  align-content: center !important;
}

.enterprise-ops .warrior-empty strong {
  color: #f8f1d7 !important;
  font-size: 18px !important;
}

.enterprise-ops .warrior-empty span {
  display: block !important;
}

.enterprise-ops .warrior-chaser-stack {
  align-content: start !important;
  display: grid !important;
  gap: 10px !important;
  min-width: 0 !important;
}

.enterprise-ops .warrior-chaser-card {
  align-items: center !important;
  align-self: start !important;
  background: rgba(6, 18, 15, .68) !important;
  border: 1px solid rgba(245, 240, 220, .08) !important;
  border-radius: 8px !important;
  display: grid !important;
  gap: 8px !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  min-width: 0 !important;
  padding: 12px 14px !important;
}

.enterprise-ops .warrior-chaser-card span {
  color: #f5d05d !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.enterprise-ops .warrior-chaser-card strong {
  color: #f8f1d7 !important;
  display: block !important;
  font-size: 15px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.enterprise-ops .warrior-chaser-card > b {
  color: #5ef0a0 !important;
  font-family: Consolas, "SFMono-Regular", monospace !important;
  font-size: 18px !important;
}

.enterprise-ops .warrior-chaser-card small {
  grid-column: 1 / -1 !important;
}

.enterprise-ops .warrior-side {
  display: grid !important;
  gap: 10px !important;
  min-width: 0 !important;
}

.enterprise-ops .warrior-side .mini-list {
  background: rgba(6, 18, 15, .52) !important;
  border-color: rgba(245, 240, 220, .09) !important;
  display: grid !important;
  gap: 8px !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  padding: 0 !important;
}

.enterprise-ops .warrior-side .info-row {
  border-left-width: 2px !important;
  min-height: 0 !important;
  padding: 8px 9px !important;
}

.enterprise-ops .warrior-ops-summary .info-row:nth-child(3),
.enterprise-ops .warrior-rules .info-row:nth-child(5) {
  grid-column: 1 / -1 !important;
}

.enterprise-ops .warrior-side .info-row span {
  font-size: 11px !important;
  margin-top: 0 !important;
}

.enterprise-ops .warrior-side .info-row strong {
  font-size: 13px !important;
  line-height: 1.35 !important;
  overflow-wrap: anywhere !important;
}

.enterprise-ops .warrior-reward-strip {
  display: grid !important;
  gap: 8px !important;
  grid-template-columns: minmax(220px, 1.05fr) repeat(5, minmax(0, .8fr)) !important;
  margin: 0 0 14px !important;
}

.enterprise-ops .warrior-reward-head,
.enterprise-ops .warrior-prize-card {
  background: rgba(245, 240, 220, .045) !important;
  border: 1px solid rgba(245, 240, 220, .08) !important;
  border-radius: 8px !important;
  display: grid !important;
  gap: 5px !important;
  min-width: 0 !important;
  padding: 11px 12px !important;
}

.enterprise-ops .warrior-reward-head {
  background: rgba(94, 240, 160, .07) !important;
  border-color: rgba(94, 240, 160, .16) !important;
}

.enterprise-ops .warrior-reward-head strong,
.enterprise-ops .warrior-prize-card strong {
  color: #f8f1d7 !important;
  display: block !important;
  font-size: 14px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.enterprise-ops .rank-chip {
  align-items: center !important;
  background: rgba(245, 240, 220, .06) !important;
  border: 1px solid rgba(245, 240, 220, .1) !important;
  border-radius: 999px !important;
  color: #f5d05d !important;
  display: inline-flex !important;
  font-weight: 900 !important;
  height: 28px !important;
  justify-content: center !important;
  min-width: 34px !important;
}

.enterprise-ops .rank-chip.rank-1 {
  background: #f5d05d !important;
  color: #180f02 !important;
}

.enterprise-ops #financeLeaderboard .leaderboard-user strong {
  max-width: 260px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

@media (max-width: 900px) {
  .enterprise-ops #financeLeaderboard[data-active-entry="true"] .leaderboard-grid {
    grid-template-columns: 1fr !important;
  }

  .enterprise-ops .warrior-command,
  .enterprise-ops .warrior-podium,
  .enterprise-ops .warrior-reward-strip {
    grid-template-columns: 1fr !important;
  }
}

/* Warrior leaderboard cleanup v66 EOF override */
.enterprise-ops #financeLeaderboard[data-active-entry="true"] {
  overflow: hidden !important;
}

.enterprise-ops #financeLeaderboard[data-active-entry="true"] > .panel-head {
  margin-bottom: 10px !important;
}

.enterprise-ops #financeLeaderboard .warrior-command {
  align-items: stretch !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr) !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
}

.enterprise-ops #financeLeaderboard .warrior-podium {
  display: grid !important;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr) !important;
  gap: 10px !important;
}

.enterprise-ops #financeLeaderboard .warrior-leader-card {
  min-height: 190px !important;
  padding: 16px !important;
}

.enterprise-ops #financeLeaderboard .warrior-leader-score b {
  font-size: 26px !important;
  overflow-wrap: anywhere !important;
  white-space: normal !important;
}

.enterprise-ops #financeLeaderboard .warrior-chaser-card {
  min-height: 86px !important;
}

.enterprise-ops #financeLeaderboard .warrior-ops-summary {
  align-content: stretch !important;
  background: rgba(6, 18, 15, .52) !important;
  border: 1px solid rgba(245, 208, 93, .14) !important;
  border-radius: 8px !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 10px !important;
}

.enterprise-ops #financeLeaderboard .warrior-ops-summary .info-row,
.enterprise-ops #financeLeaderboard .warrior-ops-summary .info-row:first-child {
  grid-column: auto !important;
  min-height: 64px !important;
  padding: 9px !important;
}

.enterprise-ops #financeLeaderboard .warrior-ops-summary .info-row strong {
  font-size: 14px !important;
}

.enterprise-ops #financeLeaderboard .panel-head .module-actions {
  align-items: center !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  justify-content: flex-end !important;
}

.enterprise-ops #financeLeaderboard .panel-head .module-actions .btn[disabled] {
  cursor: not-allowed !important;
  opacity: .48 !important;
}

.enterprise-ops #financeLeaderboard .warrior-reward-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  margin: 0 0 12px !important;
}

.enterprise-ops #financeLeaderboard .warrior-reward-head {
  display: none !important;
}

.enterprise-ops #financeLeaderboard .leaderboard-grid,
.enterprise-ops #financeLeaderboard[data-active-entry="true"] .leaderboard-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: start !important;
}

.enterprise-ops #financeLeaderboard .leaderboard-card {
  overflow: hidden !important;
  padding: 10px !important;
}

.enterprise-ops #financeLeaderboard .leaderboard-card .table-wrap {
  max-height: 520px !important;
  overflow: auto !important;
}

.enterprise-ops #todayLeaderboardTable,
.enterprise-ops #yesterdayLeaderboardTable {
  display: table !important;
  table-layout: fixed !important;
  width: 100% !important;
  min-width: 0 !important;
}

.enterprise-ops #todayLeaderboardTable th,
.enterprise-ops #todayLeaderboardTable td,
.enterprise-ops #yesterdayLeaderboardTable th,
.enterprise-ops #yesterdayLeaderboardTable td {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  vertical-align: middle !important;
}

.enterprise-ops #todayLeaderboardTable th:nth-child(1),
.enterprise-ops #todayLeaderboardTable td:nth-child(1),
.enterprise-ops #yesterdayLeaderboardTable th:nth-child(1),
.enterprise-ops #yesterdayLeaderboardTable td:nth-child(1) {
  width: 54px !important;
}

.enterprise-ops #todayLeaderboardTable th:nth-child(3),
.enterprise-ops #todayLeaderboardTable td:nth-child(3),
.enterprise-ops #yesterdayLeaderboardTable th:nth-child(3),
.enterprise-ops #yesterdayLeaderboardTable td:nth-child(3) {
  width: 110px !important;
  text-align: right !important;
}

.enterprise-ops #todayLeaderboardTable th:nth-child(4),
.enterprise-ops #todayLeaderboardTable td:nth-child(4),
.enterprise-ops #yesterdayLeaderboardTable th:nth-child(4),
.enterprise-ops #yesterdayLeaderboardTable td:nth-child(4) {
  width: 108px !important;
}

.enterprise-ops #todayLeaderboardTable th:nth-child(5),
.enterprise-ops #todayLeaderboardTable td:nth-child(5),
.enterprise-ops #yesterdayLeaderboardTable th:nth-child(5),
.enterprise-ops #yesterdayLeaderboardTable td:nth-child(5) {
  width: 104px !important;
}

.enterprise-ops #financeLeaderboard .leaderboard-user strong,
.enterprise-ops #financeLeaderboard .leaderboard-user small {
  display: block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.enterprise-ops #financeLeaderboard .leaderboard-net {
  color: #9af2b5 !important;
  display: block !important;
  font-family: Consolas, "SFMono-Regular", monospace !important;
  font-size: 13px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

@media (max-width: 1180px) {
  .enterprise-ops #financeLeaderboard .warrior-command,
  .enterprise-ops #financeLeaderboard .warrior-podium,
  .enterprise-ops #financeLeaderboard .leaderboard-grid,
  .enterprise-ops #financeLeaderboard[data-active-entry="true"] .leaderboard-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  .enterprise-ops #financeLeaderboard .warrior-reward-strip,
  .enterprise-ops #financeLeaderboard .warrior-ops-summary {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  .casino-command-v38 #operationsOverviewCards {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 900px) {
  .casino-command-v38 .dashboard-hero,
  .casino-command-v38 .overview-side {
    grid-template-columns: 1fr !important;
  }

  .casino-command-v38 #commandMetrics.dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Current issue bet monitor v70 EOF marker */
.casino-command-v38 .current-bet-monitor {
  overflow: hidden !important;
}

.casino-command-v38 .current-bet-head {
  align-items: center !important;
  background: linear-gradient(90deg, rgba(22, 48, 32, .72), rgba(8, 17, 13, .55)) !important;
  border: 1px solid rgba(245, 208, 93, .12) !important;
  border-radius: 8px !important;
  display: flex !important;
  gap: 10px !important;
  justify-content: space-between !important;
  margin-bottom: 8px !important;
  padding: 10px 12px !important;
}

.casino-command-v38 .current-bet-head span,
.casino-command-v38 .current-bet-card > span,
.casino-command-v38 .current-bet-subhead {
  color: rgba(255, 246, 210, .62) !important;
  display: block !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

.casino-command-v38 .current-bet-head strong {
  color: #fff7c7 !important;
  display: block !important;
  font-size: 15px !important;
  margin-top: 3px !important;
}

.casino-command-v38 .current-bet-kpis {
  display: grid !important;
  gap: 8px !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  margin-bottom: 10px !important;
}

.casino-command-v38 .current-bet-kpis .info-row {
  min-height: 56px !important;
}

.casino-command-v38 .current-bet-grid {
  align-items: start !important;
  display: grid !important;
  gap: 10px !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(300px, .9fr) !important;
}

.casino-command-v38 .current-bet-card {
  background: rgba(2, 10, 8, .42) !important;
  border: 1px solid rgba(71, 255, 151, .10) !important;
  border-radius: 8px !important;
  display: grid !important;
  gap: 7px !important;
  min-width: 0 !important;
  padding: 9px !important;
}

.casino-command-v38 .current-bet-user,
.casino-command-v38 .current-bet-recent {
  align-items: center !important;
  background: rgba(255, 255, 255, .035) !important;
  border: 1px solid rgba(245, 240, 220, .07) !important;
  border-radius: 8px !important;
  display: grid !important;
  gap: 8px !important;
  min-width: 0 !important;
  padding: 8px !important;
}

.casino-command-v38 .current-bet-user {
  color: inherit !important;
  cursor: pointer !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  text-align: left !important;
}

.casino-command-v38 .current-bet-user:hover {
  border-color: rgba(245, 208, 93, .36) !important;
}

.casino-command-v38 .current-bet-user strong,
.casino-command-v38 .current-bet-recent .link-button {
  color: #fff7c7 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.casino-command-v38 .current-bet-user small,
.casino-command-v38 .current-bet-user em,
.casino-command-v38 .current-bet-recent span,
.casino-command-v38 .current-bet-recent em {
  color: rgba(196, 220, 205, .76) !important;
  font-size: 11px !important;
  font-style: normal !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.casino-command-v38 .current-bet-user b,
.casino-command-v38 .current-bet-recent strong {
  color: #9af2b5 !important;
  font-family: Consolas, "SFMono-Regular", monospace !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}

.casino-command-v38 .current-bet-play {
  display: grid !important;
  gap: 5px !important;
}

.casino-command-v38 .current-bet-play div {
  align-items: center !important;
  display: flex !important;
  gap: 8px !important;
  justify-content: space-between !important;
}

.casino-command-v38 .current-bet-play span {
  color: #fff7c7 !important;
  font-size: 12px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.casino-command-v38 .current-bet-play strong {
  color: #9af2b5 !important;
  font-family: Consolas, "SFMono-Regular", monospace !important;
  font-size: 12px !important;
}

.casino-command-v38 .current-bet-play i {
  background: linear-gradient(90deg, rgba(245, 208, 93, .92), rgba(71, 255, 151, .74)) !important;
  border-radius: 99px !important;
  display: block !important;
  height: 5px !important;
}

.casino-command-v38 .current-bet-alert {
  border-radius: 8px !important;
  color: #fff7c7 !important;
  font-size: 12px !important;
  padding: 8px !important;
}

.casino-command-v38 .current-bet-alert.open {
  background: rgba(71, 255, 151, .10) !important;
  border: 1px solid rgba(71, 255, 151, .20) !important;
}

.casino-command-v38 .current-bet-alert.pending {
  background: rgba(255, 216, 87, .11) !important;
  border: 1px solid rgba(255, 216, 87, .24) !important;
}

.casino-command-v38 .current-bet-alert.danger {
  background: rgba(255, 113, 91, .12) !important;
  border: 1px solid rgba(255, 113, 91, .26) !important;
}

.casino-command-v38 .current-bet-subhead {
  margin-top: 4px !important;
}

.casino-command-v38 .current-bet-recent {
  grid-template-columns: 42px minmax(0, 1fr) auto minmax(86px, .8fr) !important;
}

.casino-command-v38 .current-bet-empty {
  background: rgba(255, 255, 255, .03) !important;
  border: 1px dashed rgba(245, 240, 220, .10) !important;
  border-radius: 8px !important;
  color: rgba(196, 220, 205, .76) !important;
  font-size: 12px !important;
  padding: 12px !important;
}

@media (max-width: 1180px) {
  .casino-command-v38 .current-bet-grid,
  .casino-command-v38 .current-bet-kpis {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 720px) {
  .casino-command-v38 .current-bet-head {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  .casino-command-v38 .current-bet-recent {
    grid-template-columns: 46px minmax(0, 1fr) auto !important;
  }

  .casino-command-v38 .current-bet-recent em {
    grid-column: 2 / -1 !important;
  }
}

/* Current issue user detail table v71 EOF override */
.casino-command-v38 #dashboardCurrentBetPanel.current-bet-monitor,
.casino-command-v38 #dashboardCurrentBetPanel.dashboard-panel {
  grid-column: 1 / -1 !important;
  min-height: 286px !important;
  max-height: 286px !important;
}

.casino-command-v38 .dashboard-grid #dashboardFinancePanel.dashboard-panel,
.casino-command-v38 .dashboard-grid #dashboardUsersPanel.dashboard-panel,
.casino-command-v38 .dashboard-grid #dashboardSystemPanel.dashboard-panel {
  grid-column: span 4 !important;
}

/* Dashboard centered draw result v75 EOF override */
.casino-command-v38 #dashboardDrawPanel {
  grid-column: 1 / -1 !important;
  min-height: 0 !important;
  padding-bottom: 10px !important;
}

.casino-command-v38 #dashboardDrawPanel .dashboard-draw-grid {
  align-items: center !important;
  display: grid !important;
  grid-template-columns: minmax(520px, 760px) !important;
  justify-content: center !important;
  min-height: 0 !important;
}

.casino-command-v38 #dashboardDrawStatus {
  display: none !important;
}

.casino-command-v38 #dashboardLastResult {
  margin: 0 auto !important;
  max-width: 760px !important;
  min-height: 152px !important;
  padding: 12px 18px !important;
  width: 100% !important;
}

.casino-command-v38 #dashboardLastResult .big-result-balls {
  margin: 8px 0 0 !important;
}

.casino-command-v38 .current-bet-head {
  margin-bottom: 6px !important;
  padding: 7px 10px !important;
}

.casino-command-v38 .current-bet-summary {
  display: grid !important;
  gap: 5px !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  margin-bottom: 5px !important;
}

.casino-command-v38 .current-bet-summary .info-row {
  min-height: 38px !important;
  padding: 6px 8px !important;
}

.casino-command-v38 .current-bet-alert-line {
  background: rgba(255, 216, 87, .08) !important;
  border: 1px solid rgba(255, 216, 87, .16) !important;
  border-radius: 8px !important;
  color: rgba(255, 247, 199, .86) !important;
  font-size: 12px !important;
  margin-bottom: 5px !important;
  overflow: hidden !important;
  padding: 6px 9px !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.casino-command-v38 .current-bet-table {
  max-height: 130px !important;
  overflow: auto !important;
}

.casino-command-v38 .current-bet-table table {
  min-width: 980px !important;
  table-layout: fixed !important;
}

.casino-command-v38 .current-bet-table th,
.casino-command-v38 .current-bet-table td {
  font-size: 12px !important;
  padding: 7px 8px !important;
  vertical-align: middle !important;
}

.casino-command-v38 .current-bet-table th:nth-child(1),
.casino-command-v38 .current-bet-table td:nth-child(1) {
  width: 180px !important;
}

.casino-command-v38 .current-bet-table th:nth-child(2),
.casino-command-v38 .current-bet-table td:nth-child(2) {
  width: 64px !important;
}

.casino-command-v38 .current-bet-table th:nth-child(3),
.casino-command-v38 .current-bet-table td:nth-child(3),
.casino-command-v38 .current-bet-table th:nth-child(6),
.casino-command-v38 .current-bet-table td:nth-child(6),
.casino-command-v38 .current-bet-table th:nth-child(7),
.casino-command-v38 .current-bet-table td:nth-child(7) {
  width: 112px !important;
  text-align: right !important;
}

.casino-command-v38 .current-bet-table th:nth-child(5),
.casino-command-v38 .current-bet-table td:nth-child(5) {
  width: 86px !important;
}

.casino-command-v38 .current-bet-name {
  display: block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-align: left !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.casino-command-v38 .current-bet-table td small {
  color: rgba(196, 220, 205, .68) !important;
  display: block !important;
  font-family: Consolas, "SFMono-Regular", monospace !important;
  font-size: 10px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.casino-command-v38 .current-bet-content {
  color: rgba(255, 247, 199, .92) !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.casino-command-v38 .current-bet-table .win {
  color: #9af2b5 !important;
}

.casino-command-v38 .current-bet-table .loss {
  color: #ffb4a8 !important;
}

.casino-command-v38 .current-bet-table .flat {
  color: rgba(196, 220, 205, .78) !important;
}

@media (max-width: 1180px) {
  .casino-command-v38 .current-bet-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Dashboard draw compact height v77 EOF override */
.casino-command-v38 #dashboardDrawPanel.dashboard-panel {
  min-height: 0 !important;
  padding: 8px 12px 10px !important;
}

.casino-command-v38 #dashboardDrawPanel .panel-head {
  margin-bottom: 4px !important;
}

.casino-command-v38 #dashboardDrawPanel .panel-head h2 {
  font-size: 14px !important;
  line-height: 1 !important;
}

.casino-command-v38 #dashboardDrawPanel .dashboard-draw-grid {
  min-height: 0 !important;
}

.casino-command-v38 #dashboardLastResult.draw-result-card {
  min-height: 118px !important;
  padding: 8px 14px !important;
}

.casino-command-v38 #dashboardLastResult .draw-result-title {
  gap: 1px !important;
  margin-bottom: 2px !important;
}

.casino-command-v38 #dashboardLastResult .draw-result-title strong {
  font-size: 19px !important;
  line-height: 1.05 !important;
}

.casino-command-v38 #dashboardLastResult .draw-result-title span {
  font-size: 11px !important;
  line-height: 1.1 !important;
}

.casino-command-v38 #dashboardLastResult .big-result-balls {
  gap: 8px !important;
  margin: 6px 0 0 !important;
}

.casino-command-v38 #dashboardLastResult .big-result-balls .lottery-ball:not(.result-ball):not(.blank) {
  flex-basis: 46px !important;
  font-size: 25px !important;
  height: 46px !important;
  min-width: 46px !important;
}

.casino-command-v38 #dashboardLastResult .big-result-balls .lottery-ball.result-ball {
  flex-basis: 52px !important;
  font-size: 27px !important;
  height: 52px !important;
  min-width: 52px !important;
}

.casino-command-v38 #dashboardLastResult .big-result-balls .lottery-plus,
.casino-command-v38 #dashboardLastResult .big-result-balls .lottery-equal {
  font-size: 16px !important;
}

/* Dashboard draw fill content v78 EOF override */
.casino-command-v38 #dashboardDrawPanel.dashboard-panel {
  padding: 8px 10px 10px !important;
}

.casino-command-v38 #dashboardDrawPanel .dashboard-draw-grid {
  grid-template-columns: minmax(760px, 1fr) !important;
}

.casino-command-v38 #dashboardLastResult.draw-result-card {
  min-height: 188px !important;
  max-width: 1000px !important;
  padding: 8px 18px 10px !important;
}

.casino-command-v38 #dashboardLastResult .draw-result-title {
  margin-bottom: 4px !important;
}

.casino-command-v38 #dashboardLastResult .draw-result-title strong {
  font-size: 26px !important;
}

.casino-command-v38 #dashboardLastResult .draw-result-title span {
  font-size: 13px !important;
}

.casino-command-v38 #dashboardLastResult .big-result-balls {
  gap: 14px !important;
  margin: 8px 0 0 !important;
}

.casino-command-v38 #dashboardLastResult .big-result-balls .lottery-ball:not(.result-ball):not(.blank) {
  flex-basis: 72px !important;
  font-size: 38px !important;
  height: 72px !important;
  min-width: 72px !important;
}

.casino-command-v38 #dashboardLastResult .big-result-balls .lottery-ball.result-ball {
  flex-basis: 78px !important;
  font-size: 40px !important;
  height: 78px !important;
  min-width: 78px !important;
}

.casino-command-v38 #dashboardLastResult .big-result-balls .lottery-plus,
.casino-command-v38 #dashboardLastResult .big-result-balls .lottery-equal {
  font-size: 24px !important;
}

/* Dashboard live current bets v79 EOF override */
.casino-command-v38 #dashboardCurrentBetPanel.current-bet-monitor,
.casino-command-v38 #dashboardCurrentBetPanel.dashboard-panel {
  min-height: 336px !important;
  max-height: 336px !important;
}

.casino-command-v38 .current-bet-live-stream {
  background: rgba(2, 10, 8, .38) !important;
  border: 1px solid rgba(71, 255, 151, .10) !important;
  border-radius: 8px !important;
  margin-bottom: 6px !important;
  overflow: hidden !important;
}

.casino-command-v38 .current-bet-live-title {
  align-items: center !important;
  background: rgba(15, 34, 25, .58) !important;
  border-bottom: 1px solid rgba(245, 240, 220, .06) !important;
  display: flex !important;
  justify-content: space-between !important;
  padding: 5px 8px !important;
}

.casino-command-v38 .current-bet-live-title span {
  color: #fff7c7 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.casino-command-v38 .current-bet-live-title strong {
  color: rgba(154, 242, 181, .82) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

.casino-command-v38 .current-bet-live-track {
  display: grid !important;
  gap: 4px !important;
  max-height: 68px !important;
  overflow: auto !important;
  padding: 5px !important;
}

.casino-command-v38 .current-bet-live-row {
  align-items: center !important;
  background: rgba(255, 255, 255, .032) !important;
  border: 1px solid transparent !important;
  border-radius: 6px !important;
  display: grid !important;
  gap: 8px !important;
  grid-template-columns: 58px minmax(110px, .8fr) 86px minmax(0, 2fr) !important;
  min-height: 28px !important;
  padding: 4px 8px !important;
}

.casino-command-v38 .current-bet-live-row span,
.casino-command-v38 .current-bet-live-row small {
  color: rgba(196, 220, 205, .72) !important;
  font-size: 11px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.casino-command-v38 .current-bet-live-row strong {
  color: rgba(255, 247, 199, .94) !important;
  font-size: 12px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.casino-command-v38 .current-bet-live-row em {
  color: #9af2b5 !important;
  font-size: 12px !important;
  font-style: normal !important;
  font-weight: 900 !important;
  text-align: right !important;
}

.casino-command-v38 .current-bet-live-empty {
  color: rgba(196, 220, 205, .68) !important;
  font-size: 12px !important;
  padding: 12px !important;
  text-align: center !important;
}

.casino-command-v38 .current-bet-live-row.is-new,
.casino-command-v38 .current-bet-table tr.is-new td {
  animation: liveBetPulse 1.4s ease-in-out 0s 3 !important;
  background: rgba(71, 255, 151, .10) !important;
  border-color: rgba(71, 255, 151, .28) !important;
}

.casino-command-v38 .current-bet-table {
  max-height: 112px !important;
}

@keyframes liveBetPulse {
  0% { box-shadow: 0 0 0 rgba(71, 255, 151, 0); }
  45% { box-shadow: 0 0 18px rgba(71, 255, 151, .18); }
  100% { box-shadow: 0 0 0 rgba(71, 255, 151, 0); }
}

@media (max-width: 820px) {
  .casino-command-v38 .current-bet-live-row {
    grid-template-columns: 52px minmax(84px, 1fr) 76px !important;
  }

  .casino-command-v38 .current-bet-live-row small {
    grid-column: 1 / -1 !important;
  }
}

/* Dashboard live current bets five rows v80 EOF override */
.casino-command-v38 #dashboardCurrentBetPanel.current-bet-monitor,
.casino-command-v38 #dashboardCurrentBetPanel.dashboard-panel {
  min-height: 448px !important;
  max-height: 448px !important;
}

.casino-command-v38 .current-bet-table {
  max-height: 224px !important;
}

/* Dashboard current bet ten rows v81 EOF override */
.casino-command-v38 #dashboardCurrentBetPanel.current-bet-monitor,
.casino-command-v38 #dashboardCurrentBetPanel.dashboard-panel {
  min-height: 560px !important;
  max-height: 560px !important;
}

.casino-command-v38 .current-bet-table {
  max-height: 360px !important;
}

/* Dashboard metrics below current bets v83 EOF override */
.casino-command-v38 .dashboard-grid #commandMetrics.dashboard-metrics {
  display: grid !important;
  grid-column: 1 / -1 !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

/* Real account intelligent betting console v84 */
.casino-command-v38 .real-account-console {
  display: grid !important;
  gap: 14px !important;
}

.casino-command-v38 .real-account-status-strip,
.casino-command-v38 .real-account-strategy-grid {
  display: grid !important;
  gap: 10px !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

.casino-command-v38 .real-account-grid {
  align-items: start !important;
  display: grid !important;
  gap: 12px !important;
  grid-template-columns: minmax(340px, .92fr) minmax(0, 1.08fr) !important;
}

.casino-command-v38 .real-account-grid.login-grid {
  grid-template-columns: minmax(360px, 1fr) minmax(300px, .72fr) !important;
}

.casino-command-v38 .real-account-card {
  background: rgba(6, 14, 10, .72) !important;
  border: 1px solid rgba(245, 208, 93, .16) !important;
  border-radius: 8px !important;
  display: grid !important;
  gap: 10px !important;
  min-width: 0 !important;
  padding: 12px !important;
}

.casino-command-v38 .real-account-card.span-2 {
  grid-column: 1 / -1 !important;
}

.casino-command-v38 .real-account-card-head {
  align-items: center !important;
  border-bottom: 1px solid rgba(245, 240, 220, .08) !important;
  display: flex !important;
  gap: 10px !important;
  justify-content: space-between !important;
  padding-bottom: 8px !important;
}

.casino-command-v38 .real-account-card-head h3 {
  color: #fff7cf !important;
  font-size: 15px !important;
  letter-spacing: 0 !important;
  margin: 0 !important;
}

.casino-command-v38 .real-account-card-head span {
  color: rgba(213, 206, 183, .78) !important;
  font-size: 12px !important;
  text-align: right !important;
}

.casino-command-v38 .real-account-status-card,
.casino-command-v38 .real-account-strategy-card {
  background: rgba(12, 24, 16, .84) !important;
  border: 1px solid rgba(245, 240, 220, .08) !important;
  border-left: 4px solid rgba(245, 208, 93, .62) !important;
  border-radius: 8px !important;
  min-height: 88px !important;
  min-width: 0 !important;
  padding: 10px !important;
}

.casino-command-v38 .real-account-status-card.open {
  border-left-color: #22c55e !important;
}

.casino-command-v38 .real-account-status-card.pending {
  border-left-color: #f8d35f !important;
}

.casino-command-v38 .real-account-status-card.danger {
  border-left-color: #ef4444 !important;
}

.casino-command-v38 .real-account-status-card span,
.casino-command-v38 .real-account-strategy-card span {
  color: rgba(213, 206, 183, .72) !important;
  display: block !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  margin: 0 0 5px !important;
}

.casino-command-v38 .real-account-status-card strong,
.casino-command-v38 .real-account-strategy-card strong {
  color: #fff7cf !important;
  display: block !important;
  font-size: 17px !important;
  font-weight: 950 !important;
  line-height: 1.15 !important;
  overflow-wrap: anywhere !important;
}

.casino-command-v38 .real-account-status-card em,
.casino-command-v38 .real-account-strategy-card em {
  color: rgba(213, 206, 183, .72) !important;
  display: block !important;
  font-size: 11px !important;
  font-style: normal !important;
  line-height: 1.35 !important;
  margin-top: 6px !important;
  overflow-wrap: anywhere !important;
}

.casino-command-v38 .real-account-strategy-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.casino-command-v38 .real-account-preview {
  min-height: 96px !important;
}

.casino-command-v38 .real-account-note {
  margin-top: 10px !important;
}

.casino-command-v38 .real-account-profile-form {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.casino-command-v38 .real-account-profile-form label:last-child {
  grid-column: auto !important;
}

.casino-command-v38 .real-account-console .mini-list {
  gap: 8px !important;
}

.casino-command-v38 .real-account-console .info-row {
  min-height: 50px !important;
  padding: 8px 10px !important;
}

.casino-command-v38 .real-account-console .table-wrap {
  max-height: 360px !important;
}

.casino-command-v38 #realAccountHistoryTable {
  min-width: 760px !important;
}

@media (max-width: 1180px) {
  .casino-command-v38 .real-account-status-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .casino-command-v38 .real-account-strategy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .casino-command-v38 .real-account-grid,
  .casino-command-v38 .real-account-grid.login-grid,
  .casino-command-v38 .real-account-profile-form {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 700px) {
  .casino-command-v38 .real-account-status-strip,
  .casino-command-v38 .real-account-strategy-grid {
    grid-template-columns: 1fr !important;
  }

  .casino-command-v38 .real-account-card-head {
    align-items: flex-start !important;
    display: grid !important;
  }

  .casino-command-v38 .real-account-card-head span {
    text-align: left !important;
  }
}
