.admin-main {
  padding: 20px 28px;
  max-width: 1600px;
  margin: 0 auto;
}

.admin-section {
  margin-bottom: 24px;
}

.admin-main:has(#sectionAiHub[style*="display: block"]) {
  max-width: none;
  width: 100%;
  padding-left: clamp(80px, 7.8vw, 150px);
  padding-right: clamp(80px, 7.8vw, 150px);
}

#sectionOiAnalysis[style*="display: block"] {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.admin-main:has(#sectionOiAnalysis[style*="display: block"]) {
  max-width: none;
  width: 100%;
  padding-top: 4px;
  padding-left: 8px;
  padding-right: 8px;
}

#sectionAiHub[style*="display: block"] {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-title {
  font-size: 14px;
  font-weight: 600;
  color: #e2e4e9;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0;
}

.strategy-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 1024px) {
  .strategy-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .strategy-cards {
    grid-template-columns: 1fr;
  }
}

.pd-strat-card {
  background: #0f1117;
  border: 1px solid rgba(200, 169, 110, 0.2);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.25s ease;
  position: relative;
}

.pd-strat-card:hover {
  border-color: rgba(200, 169, 110, 0.45);
  box-shadow: 0 0 20px rgba(200, 169, 110, 0.08), 0 4px 16px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.pd-strat-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.pd-strat-name {
  font-size: 16px;
  font-weight: 700;
  color: #e2e4e9;
  flex: 1;
}

.pd-strat-mode {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pd-mode--paper { background: rgba(76,127,255,0.12); color: #4c7fff; }
.pd-mode--test { background: rgba(255,193,7,0.12); color: #ffc107; }
.pd-mode--live { background: rgba(34,197,94,0.12); color: #22c55e; }

.pd-strat-kill {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pd-kill--off { background: #2ea96c; }
.pd-kill--on { background: #d4503a; box-shadow: 0 0 6px rgba(212,80,58,0.5); }

.pd-strat-body { display: flex; flex-direction: column; gap: 12px; }

.pd-strat-pnl {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.pd-strat-pnl-label {
  font-size: 11px;
  font-weight: 500;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pd-strat-pnl-value {
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.pd-strat-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #6b7280;
}

.pd-strat-meta span { font-weight: 500; }

.pd-strat-stats {
  display: flex;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.pd-strat-stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.pd-strat-stat-label {
  font-size: 10px;
  font-weight: 500;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pd-strat-stat-val {
  font-size: 14px;
  font-weight: 600;
  color: #e2e4e9;
  font-variant-numeric: tabular-nums;
}

.pd-strat-active-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #2ea96c;
}

.pd-strat-active-indicator .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2ea96c;
  animation: active-blink 1.5s infinite;
}

@keyframes active-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.dashboard-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #0f1117;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.dashboard-card:hover {
  border-color: rgba(76, 127, 255, 0.3);
  transform: translateY(-1px);
}

.dashboard-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.dashboard-card-info {
  flex: 1;
}

.dashboard-card-name {
  font-size: 15px;
  font-weight: 600;
  color: #e2e4e9;
  margin-bottom: 2px;
}

.dashboard-card-desc {
  font-size: 12px;
  color: #6b7280;
}

.dashboard-card-port {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: #4b5563;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
}

.trades-section {
  background: #0f1117;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px;
}

.trades-table-wrap {
  overflow-x: auto;
}

.trades-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.trades-table th,
.trades-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.trades-table th {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  background: rgba(255, 255, 255, 0.02);
}

.trades-table td {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: #e2e4e9;
  font-variant-numeric: tabular-nums;
}

.trades-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.trade-history-section {
  background: #0f1117;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px;
  margin-top: 16px;
}

.trade-history-header {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.trade-history-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trade-history-count {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 10px;
  border-radius: 999px;
}

.trade-history-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(96, 165, 250, 0.18);
  background: linear-gradient(135deg, rgba(76, 127, 255, 0.16), rgba(139, 92, 246, 0.08));
  color: #a9bcff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.2s ease;
}

.trade-history-chevron.expanded {
  transform: rotate(90deg);
}

.trade-history-body {
  margin-top: 16px;
}

.trade-history-table {
  font-size: 13px;
}

.trade-history-table th {
  font-size: 10px;
}

.trade-history-table td {
  font-size: 13px;
}

.trade-history-compact {
  max-height: 280px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.3s ease;
}

.trade-history-compact.expanded {
  max-height: none;
  overflow: visible;
}

.trade-history-compact:not(.expanded)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(transparent, #0f1117);
  pointer-events: none;
}

.trade-history-footer {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.trade-history-status {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.trade-history-status--open {
  background: rgba(76, 127, 255, 0.15);
  color: #4c7fff;
}

.trade-history-status--closed {
  background: rgba(139, 148, 158, 0.15);
  color: #6b7280;
}

.trade-summary-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 8px;
  background: #161b22;
  border: 1px solid #21262d;
  border-radius: 8px;
  font-size: 12px;
}

.trade-summary-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.trade-summary-item .ts-value {
  font-weight: 700;
  color: #e6edf3;
}
.trade-summary-item .ts-value.ts-positive { color: #4ade80; }
.trade-summary-item .ts-value.ts-negative { color: #f87171; }
.trade-summary-item .ts-value.ts-warning { color: #fbbf24; }
.trade-summary-item .ts-value.ts-muted { color: #9ca3af; }
.trade-summary-item .ts-value.ts-info { color: #58a6ff; }

.trade-summary-item .ts-label {
  color: #8b949e;
  font-weight: 400;
}

.ts-sep {
  color: #30363d;
}

#settingsContainer {
  background: #0f1117;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px;
}

.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 12px 0;
}

.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 360px;
  background: #0f1117;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 32px;
}

.login-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
  color: #e2e4e9;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-hint {
  font-size: 12px;
  color: #4b5563;
  text-align: center;
  margin-top: 16px;
}

.login-error {
  color: #d4503a;
  font-size: 13px;
  text-align: center;
  margin-top: 8px;
}

.flex { display: flex; }
.gap-sm { gap: 8px; }
.gap-md { gap: 12px; }
.items-center { align-items: center; }

.text-center { text-align: center; }
.text-muted { color: #6b7280; }
.text-xs { font-size: 11px; }
.text-sm { font-size: 12px; }
.text-success { color: #2ea96c; }
.text-danger { color: #d4503a; }
.mono { font-family: "JetBrains Mono", monospace; }
.font-bold { font-weight: 700; }

.pnl-positive { color: #2ea96c !important; }
.pnl-negative { color: #d4503a !important; }
.pnl-zero { color: #6b7280 !important; }

.exit-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.exit-badge-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.exit-badge.exit-tp1 {
  background: rgba(46, 169, 108, 0.12);
  color: #4ade80;
}
.exit-badge.exit-target {
  background: rgba(46, 169, 108, 0.12);
  color: #4ade80;
}
.exit-badge.exit-sl {
  background: rgba(212, 80, 58, 0.12);
  color: #f87171;
}
.exit-badge.exit-time {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
}
.exit-badge.exit-cleanup {
  background: rgba(139, 148, 158, 0.12);
  color: #9ca3af;
}
.exit-badge.exit-manual {
  background: rgba(96, 165, 250, 0.12);
  color: #93c5fd;
}
.exit-badge.exit-emergency {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.live-trades-total {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 16px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.pd-scp-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 20px;
  background: #0f1117;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.pd-scp-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pd-scp-title {
  font-size: 13px;
  font-weight: 700;
  color: #e2e4e9;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pd-scp-center {
  display: flex;
  gap: 8px;
}

.pd-scp-schedule {
  display: flex;
  gap: 20px;
  flex: 1;
}

.pd-scp-info {
  font-size: 11px;
  color: #6b7280;
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

.scp-status {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.scp-status--running {
  background: rgba(46, 169, 108, 0.12);
  color: #2ea96c;
  border: 1px solid rgba(46, 169, 108, 0.2);
}

.scp-status--paused {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.scp-status--stopped {
  background: rgba(107, 114, 128, 0.12);
  color: #6b7280;
  border: 1px solid rgba(107, 114, 128, 0.2);
}

.scp-status--market-closed {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.38);
}

.scp-btn {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.scp-btn-reset {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
}

.scp-btn-reset:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e4e9;
}

.scp-schedule-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scp-toggle-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #9ca3af;
  cursor: pointer;
  white-space: nowrap;
}

.scp-toggle-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #4c7fff;
}

.scp-time-input {
  padding: 4px 8px;
  font-size: 12px;
  font-family: "JetBrains Mono", monospace;
  background: #0a0c10;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: #e2e4e9;
  width: 90px;
}

.scp-time-input:focus {
  outline: none;
  border-color: #4c7fff;
}

.strategy-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.side-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.side-badge.side-ce { background: rgba(46,169,108,0.12); color: #2ea96c; }
.side-badge.side-pe { background: rgba(212,80,58,0.12); color: #d4503a; }

.team-overview-section {
  margin-top: 16px;
}

.team-members-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.team-member-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #0f1117;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  min-width: 160px;
}

.team-member-avatar {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #4c7fff;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 50%;
}

.team-member-info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.team-member-name {
  font-size: 13px;
  color: #e2e4e9;
}

.team-member-role {
  font-size: 10px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pd-command-center {
  background: #0f1117;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 24px 32px;
  margin-bottom: 20px;
}

.pd-cc-grid {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.pd-cc-primary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  padding: 0 32px 0 0;
}

.pd-cc-primary-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #6b7280;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pd-cc-primary-value {
  font-size: 42px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.pd-cc-primary-value.snap-positive { color: #2ea96c; }
.pd-cc-primary-value.snap-negative { color: #d4503a; }
.pd-cc-primary-value.snap-zero { color: #6b7280; }

.pd-cc-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.06);
  align-self: stretch;
  flex-shrink: 0;
}

.pd-cc-breakdown {
  display: flex;
  gap: 32px;
  padding: 0 32px;
  align-items: center;
}

.pd-cc-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 80px;
}

.pd-cc-metric-value {
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #e2e4e9;
}

.pd-cc-metric-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
}

.pd-cc-stats {
  display: flex;
  gap: 28px;
  padding: 0 32px;
  align-items: center;
}

.pd-cc-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 64px;
}

.pd-cc-stat-value {
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #e2e4e9;
}

.pd-cc-stat-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
}

@media (max-width: 1100px) {
  .pd-cc-grid {
    flex-wrap: wrap;
    gap: 16px;
  }
  .pd-cc-primary {
    width: 100%;
    padding: 0 0 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .pd-cc-divider { display: none; }
  .pd-cc-breakdown, .pd-cc-stats {
    padding: 0;
    justify-content: center;
    flex-wrap: wrap;
  }
}

.pd-strategy-monitor {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 1024px) {
  .pd-strategy-monitor {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .pd-strategy-monitor {
    grid-template-columns: 1fr;
  }
}

.pd-sm-card {
  background: #0f1117;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.2s ease;
  position: relative;
}

.pd-sm-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.pd-sm-card--online {
  border-color: rgba(46, 169, 108, 0.15);
}

.pd-sm-card--online:hover {
  border-color: rgba(46, 169, 108, 0.3);
}

.pd-sm-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.pd-sm-name {
  font-size: 16px;
  font-weight: 700;
  color: #e2e4e9;
  flex: 1;
}

a.pd-sm-link {
  text-decoration: none;
  color: #e2e4e9;
  cursor: default;
  transition: color 0.15s;
}

a.pd-sm-link:hover {
  color: #4c7fff;
  cursor: pointer;
}

.pd-sm-status-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pd-sm-status-pill--online {
  background: rgba(46, 169, 108, 0.12);
  color: #2ea96c;
}

.pd-sm-status-pill--offline {
  background: rgba(107, 114, 128, 0.12);
  color: #6b7280;
}

.pd-sm-pnl-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}

.pd-sm-pnl-label {
  font-size: 11px;
  font-weight: 500;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pd-sm-pnl-value {
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.pd-sm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

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

.pd-sm-item-label {
  font-size: 11px;
  font-weight: 500;
  color: #4b5563;
}

.pd-sm-item-value {
  font-size: 12px;
  font-weight: 600;
  color: #e2e4e9;
  font-variant-numeric: tabular-nums;
}

.pd-sm-health {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.pd-sm-health-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 500;
  color: #6b7280;
}

.pd-sm-health-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pd-sm-health-dot--ok { background: #2ea96c; box-shadow: 0 0 4px rgba(46,169,108,0.4); }
.pd-sm-health-dot--warn { background: #f59e0b; }
.pd-sm-health-dot--off { background: #6b7280; }

.pd-bottom-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .pd-bottom-panels {
    grid-template-columns: 1fr;
  }
}

.pd-panel {
  background: #0f1117;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px;
}

.pd-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.pd-panel-title {
  font-size: 13px;
  font-weight: 700;
  color: #e2e4e9;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pd-health-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.pd-health-row:last-child {
  border-bottom: none;
}

.pd-health-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pd-health-name {
  font-size: 13px;
  font-weight: 600;
  color: #e2e4e9;
}

.pd-health-ws {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.pd-health-ws--ok {
  background: rgba(46,169,108,0.1);
  color: #2ea96c;
}

.pd-health-ws--off {
  background: rgba(107,114,128,0.1);
  color: #6b7280;
}

.pd-health-metrics {
  display: flex;
  gap: 16px;
}

.pd-health-metric {
  font-size: 11px;
  font-weight: 500;
  color: #6b7280;
  font-variant-numeric: tabular-nums;
}

.pd-health-metric span {
  color: #e2e4e9;
  font-weight: 600;
}

[data-theme="light"] .login-container { background: #f5f6f8; }
[data-theme="light"] .login-card { background: #ffffff; border-color: #e5e7eb; box-shadow: 0 4px 24px rgba(0,0,0,0.1); }
[data-theme="light"] .login-title { color: #1a1d23; }
[data-theme="light"] .login-hint { color: #6b7280; }
[data-theme="light"] .section-title { color: #1a1d23; }

[data-theme="light"] .pd-strat-card { background: #ffffff; border-color: rgba(139, 110, 62, 0.2); }
[data-theme="light"] .pd-strat-card:hover { border-color: rgba(139, 110, 62, 0.35); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); transform: translateY(-2px); }
[data-theme="light"] .pd-strat-name { color: #1a1d23; }
[data-theme="light"] .pd-strat-pnl-label { color: #6b7280; }
[data-theme="light"] .pd-strat-pnl-value { color: #1a1d23; }
[data-theme="light"] .pd-strat-meta { color: #6b7280; }
[data-theme="light"] .pd-strat-stats { border-top-color: rgba(0, 0, 0, 0.06); }
[data-theme="light"] .pd-strat-stat-label { color: #9ca3af; }
[data-theme="light"] .pd-strat-stat-val { color: #1a1d23; }

[data-theme="light"] .dashboard-card { background: #ffffff; border-color: #e5e7eb; }
[data-theme="light"] .dashboard-card:hover { border-color: rgba(59, 109, 232, 0.3); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
[data-theme="light"] .dashboard-card-icon { background: linear-gradient(135deg, #4f8af7 0%, #3b6de8 100%); }
[data-theme="light"] .dashboard-card-name { color: #1a1d23; }
[data-theme="light"] .dashboard-card-desc { color: #6b7280; }
[data-theme="light"] .dashboard-card-port { color: #9ca3af; background: rgba(0, 0, 0, 0.04); }

[data-theme="light"] .trades-section { background: #ffffff; border-color: #e5e7eb; }
[data-theme="light"] .trades-table th, [data-theme="light"] .trades-table td { border-bottom-color: #f0f1f3; }
[data-theme="light"] .trades-table th { color: #6b7280; background: #f8f9fa; }
[data-theme="light"] .trades-table td { color: #1a1d23; }
[data-theme="light"] .trades-table tbody tr:hover { background: rgba(0, 0, 0, 0.02); }

[data-theme="light"] .trade-history-section { background: #ffffff; border-color: #e5e7eb; }
[data-theme="light"] .trade-history-count { color: #6b7280; background: rgba(0, 0, 0, 0.04); }
[data-theme="light"] .trade-history-chevron { color: #9ca3af; }
[data-theme="light"] .trade-history-compact:not(.expanded)::after { background: linear-gradient(transparent, #ffffff); }

[data-theme="light"] .trade-summary-strip { background: #f5f6f8; border-color: #e5e7eb; }
[data-theme="light"] .trade-summary-item .ts-value { color: #1a1d23; }
[data-theme="light"] .trade-summary-item .ts-label { color: #6b7280; }
[data-theme="light"] .ts-sep { color: #d1d5db; }

[data-theme="light"] .live-trades-total { border-top-color: #e5e7eb; background: #f8f9fa; }

[data-theme="light"] .text-muted { color: #6b7280; }

[data-theme="light"] .team-member-chip { background: #ffffff; border-color: #e5e7eb; }
[data-theme="light"] .team-member-name { color: #1a1d23; }
[data-theme="light"] .team-member-role { color: #6b7280; }

[data-theme="light"] .pd-command-center { background: #ffffff; border-color: #e5e7eb; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
[data-theme="light"] .pd-cc-divider { background: #e5e7eb; }
[data-theme="light"] .pd-cc-metric-value { color: #1a1d23; }
[data-theme="light"] .pd-cc-metric-label { color: #6b7280; }
[data-theme="light"] .pd-cc-stat-value { color: #1a1d23; }
[data-theme="light"] .pd-cc-stat-label { color: #6b7280; }
[data-theme="light"] .pd-cc-primary-label { color: #6b7280; }

[data-theme="light"] .pd-sm-card { background: #ffffff; border-color: #e5e7eb; }
[data-theme="light"] .pd-sm-card:hover { border-color: #d1d5db; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
[data-theme="light"] .pd-sm-name { color: #1a1d23; }
[data-theme="light"] a.pd-sm-link { color: #1a1d23; }
[data-theme="light"] .pd-sm-pnl-label { color: #6b7280; }
[data-theme="light"] .pd-sm-item-label { color: #9ca3af; }
[data-theme="light"] .pd-sm-item-value { color: #1a1d23; }
[data-theme="light"] .pd-sm-grid { border-top-color: rgba(0, 0, 0, 0.06); }
[data-theme="light"] .pd-sm-health { border-top-color: rgba(0, 0, 0, 0.06); }
[data-theme="light"] .pd-sm-health-item { color: #6b7280; }

[data-theme="light"] .pd-panel { background: #ffffff; border-color: #e5e7eb; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
[data-theme="light"] .pd-panel-title { color: #1a1d23; }
[data-theme="light"] .pd-health-row { border-bottom-color: #f0f1f3; }
[data-theme="light"] .pd-health-name { color: #1a1d23; }
[data-theme="light"] .pd-health-metric span { color: #1a1d23; }
[data-theme="light"] .pd-bottom-panels .pd-panel { background: #ffffff; border-color: #e5e7eb; }

[data-theme="light"] .pd-scp-bar { background: #ffffff; border-color: #e5e7eb; }
[data-theme="light"] .pd-scp-title { color: #1a1d23; }
[data-theme="light"] .pd-scp-info { color: #6b7280; }
[data-theme="light"] .scp-time-input { background: #f5f6f8; border-color: #d1d5db; color: #1a1d23; }
[data-theme="light"] .scp-toggle-label { color: #4b5563; }
[data-theme="light"] .scp-btn-reset { background: rgba(0,0,0,0.04); border-color: #d1d5db; color: #6b7280; }
[data-theme="light"] .scp-btn-reset:hover { background: rgba(0,0,0,0.07); color: #1a1d23; }

.sch-panel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 12px 14px;
}
.sch-panel--closed {
  border-color: rgba(245, 158, 11, 0.26);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.06), rgba(255, 255, 255, 0.015));
}
.sch-panel--open {
  border-color: rgba(46, 169, 108, 0.22);
  background: linear-gradient(180deg, rgba(46, 169, 108, 0.04), rgba(255, 255, 255, 0.015));
}
.sch-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.sch-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #c8a96e;
}
.sch-clock {
  font-size: 11px;
  font-weight: 600;
  color: #58a6ff;
  font-family: 'JetBrains Mono', monospace;
}
.sch-timeline {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sch-closed-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.07);
}
.sch-open-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid rgba(46, 169, 108, 0.18);
  border-radius: 8px;
  background: rgba(46, 169, 108, 0.07);
}
.sch-closed-icon {
  color: #f59e0b;
  font-size: 14px;
  line-height: 1;
  margin-top: 2px;
}
.sch-open-icon {
  color: #2ea96c;
  font-size: 14px;
  line-height: 1;
  margin-top: 2px;
}
.sch-closed-title {
  color: #f8fafc;
  font-size: 13px;
  font-weight: 800;
}
.sch-open-title {
  color: #f8fafc;
  font-size: 13px;
  font-weight: 800;
}
.sch-closed-desc {
  color: #8ea0bd;
  font-size: 11px;
  line-height: 1.45;
  margin-top: 3px;
}
.sch-open-desc {
  color: #8ea0bd;
  font-size: 11px;
  line-height: 1.45;
  margin-top: 3px;
}
.sch-timeline--closed .sch-row {
  opacity: 1;
}
.sch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}
.sch-row:hover {
  background: rgba(255, 255, 255, 0.03);
}
.sch-row.sch-done {
  opacity: 0.5;
}
.sch-row.sch-next:first-of-type,
.sch-row.sch-pending:not(.sch-done) {
  opacity: 1;
}
.sch-row.sch-next {
  opacity: 1;
  background: rgba(76, 127, 255, 0.06);
  border: 1px solid rgba(76, 127, 255, 0.15);
}
.sch-time {
  font-size: 11px;
  font-weight: 600;
  color: #8b949e;
  font-family: 'JetBrains Mono', monospace;
  min-width: 42px;
}
.sch-icon {
  font-size: 13px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.sch-icon.sch-reset { color: #f59e0b; }
.sch-icon.sch-start { color: #2ea96c; }
.sch-icon.sch-market { color: #4c7fff; }
.sch-icon.sch-sqoff { color: #d4503a; }
.sch-icon.sch-recon { color: #8b5cf6; }
.sch-icon.sch-report { color: #06b6d4; }
.sch-icon.sch-backup { color: #6b7280; }
.sch-icon.sch-stop { color: #d4503a; }
.sch-info {
  flex: 1;
  min-width: 0;
}
.sch-label {
  font-size: 12px;
  font-weight: 600;
  color: #e2e4e9;
  line-height: 1.3;
}
.sch-desc {
  font-size: 10px;
  color: #6b7280;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sch-status {
  font-size: 12px;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}
.sch-done .sch-status { color: #2ea96c; }
.sch-pending .sch-status { color: #4b5563; }
.sch-skipped {
  opacity: 0.66;
}
.sch-skipped .sch-status {
  width: 34px;
  color: #f59e0b;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

[data-theme="light"] .sch-panel { background: rgba(0,0,0,0.02); border-color: #e5e7eb; }
[data-theme="light"] .sch-header { border-color: #e5e7eb; }
[data-theme="light"] .sch-label { color: #1a1d23; }
[data-theme="light"] .sch-desc { color: #6b7280; }
[data-theme="light"] .sch-time { color: #6b7280; }
[data-theme="light"] .sch-row:hover { background: rgba(0,0,0,0.03); }
[data-theme="light"] .sch-row.sch-done { opacity: 0.45; }
[data-theme="light"] .sch-panel--closed { background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.28); }
[data-theme="light"] .sch-closed-card { background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.24); }
[data-theme="light"] .sch-closed-title { color: #92400e; }
[data-theme="light"] .sch-closed-desc { color: #6b7280; }
[data-theme="light"] .sch-panel--open { background: rgba(46, 169, 108, 0.07); border-color: rgba(46, 169, 108, 0.24); }
[data-theme="light"] .sch-open-card { background: rgba(46, 169, 108, 0.09); border-color: rgba(46, 169, 108, 0.22); }
[data-theme="light"] .sch-open-title { color: #166534; }
[data-theme="light"] .sch-open-desc { color: #6b7280; }

[data-theme="light"] .divider { background: #e5e7eb; }

/* Root dashboard day-mode stability: layout.css loads after components.css. */
[data-theme="light"] .pd-sm-card,
[data-theme="light"] #strategyMonitor .pd-sm-card,
[data-theme="light"] .pd-sm-card--online,
[data-theme="light"] #strategyMonitor .pd-sm-card--online {
  background: #ffffff;
  border-color: #e5e7eb;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .pd-sm-card:hover,
[data-theme="light"] #strategyMonitor .pd-sm-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .pd-sm-card--online,
[data-theme="light"] #strategyMonitor .pd-sm-card--online {
  border-color: rgba(46, 169, 108, 0.28);
}

[data-theme="light"] .pd-sm-name,
[data-theme="light"] a.pd-sm-link,
[data-theme="light"] .pd-sm-summary-value {
  color: #111827;
}

[data-theme="light"] .pd-sm-summary > div,
[data-theme="light"] .pd-sm-grid,
[data-theme="light"] .pd-sm-health,
[data-theme="light"] .pd-sm-remote-exit {
  background: #f8fafc;
  border-color: #e5e7eb;
}

[data-theme="light"] .pd-sm-summary-label,
[data-theme="light"] .pd-sm-pnl-label,
[data-theme="light"] .pd-sm-health-item,
[data-theme="light"] .pd-sm-item-label {
  color: #64748b;
}

/* Final day-mode polish: no dark admin dashboard bands in light theme. */
[data-theme="light"] .pd-page-subheader,
[data-theme="light"] .pd-live-head,
[data-theme="light"] .pd-users-header-card {
  background: linear-gradient(180deg, #ffffff, #f8fafc) !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .pd-page-subheader .pd-subheader-title h2,
[data-theme="light"] .pd-live-head .pd-subheader-title h2,
[data-theme="light"] .pd-users-header-card .pd-subheader-title h2,
[data-theme="light"] #sectionOiAnalysis .pd-oi-product-title {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  text-shadow: none !important;
}

[data-theme="light"] .pd-page-subheader .pd-subheader-meta,
[data-theme="light"] .pd-live-head .pd-subheader-meta,
[data-theme="light"] .pd-users-header-card .pd-subheader-meta,
[data-theme="light"] #sectionOiAnalysis .pd-oi-product-sub,
[data-theme="light"] #sectionOiAnalysis .pd-oi-status-text,
[data-theme="light"] #sectionOiAnalysis .pd-oi-value,
[data-theme="light"] #sectionOiAnalysis .pd-oi-label,
[data-theme="light"] .pd-page-subheader .ana-date-group label,
[data-theme="light"] .pd-page-subheader--users .login-url-info span,
[data-theme="light"] .pd-users-header-card .role-legend-item > span:last-child {
  color: #475569 !important;
  -webkit-text-fill-color: #475569 !important;
}

[data-theme="light"] .pd-page-subheader input,
[data-theme="light"] .pd-page-subheader select,
[data-theme="light"] .pd-users-header-card input,
[data-theme="light"] .pd-users-header-card select {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

[data-theme="light"] .pd-page-subheader input::placeholder,
[data-theme="light"] .pd-users-header-card input::placeholder {
  color: #94a3b8 !important;
}

[data-theme="light"] .pd-page-subheader .report-mode-tabs,
[data-theme="light"] .pd-page-subheader .guide-settings-tabs,
[data-theme="light"] .pd-page-subheader .oi-sub-tabs,
[data-theme="light"] #sectionOiAnalysis .pd-oi-index-tabs,
[data-theme="light"] .pd-page-subheader--settings .guide-settings-tabs {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
}

[data-theme="light"] .pd-page-subheader .report-mode-tab,
[data-theme="light"] .pd-page-subheader .guide-settings-tab,
[data-theme="light"] .pd-page-subheader .oi-sub-tab,
[data-theme="light"] #sectionOiAnalysis .pd-oi-index-tab {
  color: #475569 !important;
  background: transparent !important;
  border-color: transparent !important;
}

[data-theme="light"] .pd-page-subheader .report-mode-tab.active,
[data-theme="light"] .pd-page-subheader .guide-settings-tab.active,
[data-theme="light"] .pd-page-subheader .oi-sub-tab.active,
[data-theme="light"] #sectionOiAnalysis .pd-oi-index-tab.active {
  color: #ffffff !important;
  background: #3b6de8 !important;
  box-shadow: 0 8px 18px rgba(59, 109, 232, 0.18) !important;
}

[data-theme="light"] .pd-users-header-card .role-legend,
[data-theme="light"] .guide-info,
[data-theme="light"] .pd-scp-info,
[data-theme="light"] .scp-info,
[data-theme="light"] .report-info {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}

[data-theme="light"] .guide-info *,
[data-theme="light"] .pd-scp-info *,
[data-theme="light"] .scp-info *,
[data-theme="light"] .report-info * {
  color: inherit;
}

.cfg-settings-hint {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 16px;
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 1.6;
}

[data-theme="light"] .cfg-settings-hint {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}

[data-theme="light"] .cfg-settings-hint b {
  color: #0f172a !important;
}

[data-theme="light"] #sectionOiAnalysis .pd-oi-live-cluster {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
}

[data-theme="light"] #sectionOiAnalysis .pd-oi-status-text,
[data-theme="light"] #sectionOiAnalysis .pd-oi-label,
[data-theme="light"] #sectionOiAnalysis .pd-oi-value {
  color: #475569 !important;
  -webkit-text-fill-color: #475569 !important;
  opacity: 1 !important;
}

[data-theme="light"] #sectionOiAnalysis .pd-oi-live-sep {
  background: #cbd5e1 !important;
}

/* Overview strategy cards: production telemetry surface. */
#strategyMonitor.pd-strategy-monitor {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

#strategyMonitor .pd-sm-card {
  position: relative;
  overflow: hidden;
  min-height: 0;
  padding: 22px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(18, 21, 29, 0.98), rgba(12, 15, 22, 0.98)),
    #0f1117;
  border-color: rgba(148, 163, 184, 0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.035), 0 18px 42px rgba(0,0,0,0.24);
}

#strategyMonitor .pd-sm-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(46,169,108,0.75), rgba(200,169,110,0.42), rgba(76,127,255,0.35));
  opacity: 0.55;
  pointer-events: none;
}

#strategyMonitor .pd-sm-card:hover {
  transform: translateY(-1px);
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 22px 48px rgba(0,0,0,0.30);
}

#strategyMonitor .pd-sm-card--online {
  border-color: rgba(46, 169, 108, 0.24);
}

#strategyMonitor .pd-sm-card--loss {
  border-color: rgba(212, 80, 58, 0.34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.035), 0 18px 42px rgba(0,0,0,0.24);
}

#strategyMonitor .pd-sm-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: start;
  gap: 2px 10px;
  margin-bottom: 24px;
}

#strategyMonitor .pd-sm-header .status-dot {
  grid-row: 1 / span 2;
  margin-top: 7px;
}

#strategyMonitor .pd-sm-name {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  font-size: 18px;
  line-height: 1.15;
}

#strategyMonitor .pd-sm-desc {
  grid-column: 2;
  grid-row: 2;
  color: #7f8aa3;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#strategyMonitor .pd-sm-status-pill {
  grid-column: 3;
  grid-row: 1;
  border-radius: 6px;
}

#strategyMonitor .pd-sm-pnl-row {
  align-items: end;
  margin-bottom: 14px;
}

#strategyMonitor .pd-sm-pnl-value {
  font-size: 29px;
  line-height: 1;
  letter-spacing: 0;
}

#strategyMonitor .pd-sm-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

#strategyMonitor .pd-sm-summary > div,
#strategyMonitor .pd-sm-grid,
#strategyMonitor .pd-sm-health,
#strategyMonitor .pd-sm-readiness {
  background: rgba(255,255,255,0.022);
  border: 1px solid rgba(255,255,255,0.055);
  border-radius: 8px;
}

#strategyMonitor .pd-sm-summary > div {
  padding: 11px 12px;
}

#strategyMonitor .pd-sm-readiness {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  margin-bottom: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

#strategyMonitor .pd-sm-readiness span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #6b7280;
  text-align: right;
}

#strategyMonitor .pd-sm-readiness--ready span:first-child { color: #2ea96c; }
#strategyMonitor .pd-sm-readiness--limited span:first-child { color: #f59e0b; }
#strategyMonitor .pd-sm-readiness--neutral span:first-child { color: #94a3b8; }

#strategyMonitor .pd-sm-grid,
#strategyMonitor .pd-sm-health {
  border-top: 1px solid rgba(255,255,255,0.055);
  padding: 14px;
}

#strategyMonitor .pd-sm-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 18px;
}

#strategyMonitor .pd-sm-health {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px 12px;
  margin-top: 12px;
}

#strategyMonitor .pd-sm-item { display: block; min-width: 0; }
#strategyMonitor .pd-sm-item-label,
#strategyMonitor .pd-sm-summary-label {
  color: #7a859d;
}
#strategyMonitor .pd-sm-item-value,
#strategyMonitor .pd-sm-summary-value {
  color: #f3f6fb;
}
#strategyMonitor .pd-sm-health-item {
  min-width: 0;
  font-size: 11px;
  color: #8b96ad;
}

#strategyMonitor .pd-sm-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top-color: rgba(255,255,255,0.045);
}

#strategyMonitor .pd-sm-remote-exit {
  margin-top: 12px;
  padding-top: 10px;
}

#strategyMonitor .pd-sm-remote-exit-btn {
  padding: 8px 0;
  border-radius: 5px;
}

[data-theme="light"] #strategyMonitor .pd-sm-card {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border-color: #dbe3ee;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] #strategyMonitor .pd-sm-summary > div,
[data-theme="light"] #strategyMonitor .pd-sm-grid,
[data-theme="light"] #strategyMonitor .pd-sm-health,
[data-theme="light"] #strategyMonitor .pd-sm-readiness {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] #strategyMonitor .pd-sm-name,
[data-theme="light"] #strategyMonitor .pd-sm-summary-value,
[data-theme="light"] #strategyMonitor .pd-sm-item-value {
  color: #0f172a;
}

@media (max-width: 1100px) {
  #strategyMonitor.pd-strategy-monitor { grid-template-columns: 1fr; }
  #strategyMonitor .pd-sm-grid,
  #strategyMonitor .pd-sm-health { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  #strategyMonitor .pd-sm-summary,
  #strategyMonitor .pd-sm-grid,
  #strategyMonitor .pd-sm-health { grid-template-columns: 1fr; }
  #strategyMonitor .pd-sm-readiness { align-items: flex-start; flex-direction: column; }
  #strategyMonitor .pd-sm-readiness span:last-child { text-align: left; white-space: normal; }
}

/* Strategies page board */
#strategyDashboardBoard.strategy-dashboards-container {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

#strategyDashboardBoard .strategy-board-card {
  min-height: 340px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background:
    linear-gradient(180deg, rgba(20, 24, 33, 0.98), rgba(12, 15, 22, 0.98)),
    #10141d;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

#strategyDashboardBoard .strategy-board-card:hover,
#strategyDashboardBoard .strategy-board-card:focus-visible {
  border-color: rgba(110, 168, 254, 0.42);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(110, 168, 254, 0.08) inset;
  transform: translateY(-1px);
  outline: none;
}

#strategyDashboardBoard .strategy-board-card--online {
  border-color: rgba(34, 197, 94, 0.18);
}

#strategyDashboardBoard .strategy-board-card--loss {
  border-color: rgba(239, 68, 68, 0.22);
}

#strategyDashboardBoard .strategy-board-inner {
  min-height: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#strategyDashboardBoard .strategy-board-head,
#strategyDashboardBoard .strategy-board-title-wrap,
#strategyDashboardBoard .strategy-board-head-right,
#strategyDashboardBoard .strategy-board-pnl-row,
#strategyDashboardBoard .strategy-board-readiness {
  display: flex;
  align-items: center;
}

#strategyDashboardBoard .strategy-board-head {
  justify-content: space-between;
  gap: 14px;
}

#strategyDashboardBoard .strategy-board-title-wrap {
  min-width: 0;
  gap: 12px;
}

#strategyDashboardBoard .strategy-board-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #4f7cff, #7c5cff);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 12px 24px rgba(79, 124, 255, 0.24);
}

#strategyDashboardBoard .strategy-board-name {
  color: #f7f9fd;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.15;
}

#strategyDashboardBoard .strategy-board-desc,
#strategyDashboardBoard .strategy-board-label,
#strategyDashboardBoard .strategy-board-sync,
#strategyDashboardBoard .strategy-board-metric span,
#strategyDashboardBoard .strategy-board-detail-grid span {
  color: #8792aa;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

#strategyDashboardBoard .strategy-board-desc {
  margin-top: 5px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}

#strategyDashboardBoard .strategy-board-head-right {
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

#strategyDashboardBoard .strategy-board-status,
#strategyDashboardBoard .strategy-board-open,
#strategyDashboardBoard .strategy-board-check,
#strategyDashboardBoard .strategy-board-mode--paper,
#strategyDashboardBoard .strategy-board-mode--live,
#strategyDashboardBoard .strategy-board-mode--test {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

#strategyDashboardBoard .strategy-board-open {
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(148, 163, 184, 0.07);
}

#strategyDashboardBoard .strategy-board-card:hover .strategy-board-open {
  color: #ffffff;
  border-color: rgba(110, 168, 254, 0.34);
  background: rgba(110, 168, 254, 0.12);
}

#strategyDashboardBoard .strategy-board-status--ready,
#strategyDashboardBoard .strategy-board-status--online {
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.22);
  background: rgba(16, 185, 129, 0.12);
}

#strategyDashboardBoard .strategy-board-status--limited {
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.24);
  background: rgba(251, 191, 36, 0.11);
}

#strategyDashboardBoard .strategy-board-status--paused,
#strategyDashboardBoard .strategy-board-status--offline {
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.24);
  background: rgba(248, 113, 113, 0.1);
}

#strategyDashboardBoard .strategy-board-pnl-row {
  justify-content: space-between;
  gap: 12px;
  padding: 15px 0 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

#strategyDashboardBoard .strategy-board-pnl-row > span:first-child {
  display: grid;
  gap: 4px;
}

#strategyDashboardBoard .strategy-board-pnl-row strong {
  color: #f7f9fd;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
}

#strategyDashboardBoard .strategy-board-value--profit { color: #34d399 !important; }
#strategyDashboardBoard .strategy-board-value--loss { color: #f05a4a !important; }
#strategyDashboardBoard .strategy-board-value--flat { color: #e5e7eb !important; }

#strategyDashboardBoard .strategy-board-metrics,
#strategyDashboardBoard .strategy-board-detail-grid {
  display: grid;
  gap: 10px;
}

#strategyDashboardBoard .strategy-board-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#strategyDashboardBoard .strategy-board-metric,
#strategyDashboardBoard .strategy-board-detail-grid > div {
  min-width: 0;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.11);
  background: rgba(255, 255, 255, 0.035);
}

#strategyDashboardBoard .strategy-board-metric {
  padding: 12px;
  display: grid;
  gap: 8px;
}

#strategyDashboardBoard .strategy-board-metric strong {
  color: #f8fafc;
  font-size: 18px;
  line-height: 1;
}

#strategyDashboardBoard .strategy-board-detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#strategyDashboardBoard .strategy-board-detail-grid > div {
  padding: 10px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

#strategyDashboardBoard .strategy-board-detail-grid strong {
  min-width: 0;
  color: #f1f5f9;
  font-size: 12px;
  text-align: right;
  overflow-wrap: anywhere;
}

#strategyDashboardBoard .strategy-board-mode--paper {
  color: #6ea8fe;
  background: rgba(79, 124, 255, 0.14);
}

#strategyDashboardBoard .strategy-board-mode--live {
  color: #34d399;
  background: rgba(16, 185, 129, 0.14);
}

#strategyDashboardBoard .strategy-board-mode--test {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.14);
}

#strategyDashboardBoard .strategy-board-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#strategyDashboardBoard .strategy-board-check--ok {
  color: #34d399;
  background: rgba(16, 185, 129, 0.11);
}

#strategyDashboardBoard .strategy-board-check--off {
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
}

#strategyDashboardBoard .strategy-board-check--warn {
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.09);
}

#strategyDashboardBoard .strategy-board-readiness {
  margin-top: auto;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  color: #8995ad;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
}

#strategyDashboardBoard .strategy-board-readiness span {
  min-width: 0;
  overflow-wrap: anywhere;
}

#strategyDashboardBoard .strategy-board-loading {
  color: #94a3b8;
  font-size: 13px;
  padding-top: 20px;
}

[data-theme="light"] #strategyDashboardBoard .strategy-board-card {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border-color: #dbe3ee;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] #strategyDashboardBoard .strategy-board-name,
[data-theme="light"] #strategyDashboardBoard .strategy-board-metric strong,
[data-theme="light"] #strategyDashboardBoard .strategy-board-detail-grid strong,
[data-theme="light"] #strategyDashboardBoard .strategy-board-pnl-row strong {
  color: #0f172a;
}

[data-theme="light"] #strategyDashboardBoard .strategy-board-metric,
[data-theme="light"] #strategyDashboardBoard .strategy-board-detail-grid > div {
  background: #f8fafc;
  border-color: #e2e8f0;
}

@media (max-width: 1180px) {
  #strategyDashboardBoard.strategy-dashboards-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  #strategyDashboardBoard .strategy-board-inner {
    padding: 16px;
  }

  #strategyDashboardBoard .strategy-board-head,
  #strategyDashboardBoard .strategy-board-pnl-row,
  #strategyDashboardBoard .strategy-board-readiness {
    align-items: flex-start;
    flex-direction: column;
  }

  #strategyDashboardBoard .strategy-board-metrics,
  #strategyDashboardBoard .strategy-board-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* Overview premium detail polish */
#sectionOverview .pd-command-center,
#sectionOverview .trades-section,
#sectionOverview .trade-history-section,
#sectionOverview .pd-live-accounts {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border-color: rgba(148, 163, 184, 0.13);
  background:
    linear-gradient(180deg, rgba(18, 22, 31, 0.98), rgba(11, 14, 20, 0.98)),
    #0f1117;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

#sectionOverview .pd-command-center::before,
#sectionOverview .trades-section::before,
#sectionOverview .trade-history-section::before,
#sectionOverview .pd-live-accounts::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(46, 169, 108, 0.8), rgba(200, 169, 110, 0.7), rgba(76, 127, 255, 0.65), rgba(139, 92, 246, 0.55));
  opacity: 0.8;
  pointer-events: none;
}

#sectionOverview .pd-command-center {
  padding: 24px 30px;
  overflow: hidden;
}

#sectionOverview .pd-cc-grid {
  display: grid;
  grid-template-columns:
    minmax(230px, 1.55fr) 1px
    minmax(210px, 1.25fr) 1px
    minmax(390px, 2.7fr) 1px
    minmax(270px, 1.85fr);
  align-items: stretch;
  gap: 20px;
}

#sectionOverview .pd-cc-primary {
  align-items: flex-start;
  min-width: 0;
  padding: 10px 0;
  justify-content: center;
}

#sectionOverview .pd-cc-divider {
  width: 1px;
  min-width: 1px;
  background: linear-gradient(180deg, transparent, rgba(148, 163, 184, 0.16), transparent);
}

#sectionOverview .pd-cc-breakdown,
#sectionOverview .pd-cc-stats {
  min-width: 0;
  padding: 0;
  gap: 12px;
}

#sectionOverview .pd-cc-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#sectionOverview .pd-cc-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
}

#sectionOverview .pd-cc-primary-label,
#sectionOverview .section-title,
#sectionOverview .lac-title,
#sectionOverview .oc-header-title .oc-name {
  color: #f8fafc;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

#sectionOverview .pd-cc-primary-label::before,
#sectionOverview .section-title::before,
#sectionOverview .lac-title::before,
#sectionOverview .oc-header-title .oc-name::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 2px;
  background: linear-gradient(135deg, #4c7fff, #8b5cf6);
  box-shadow: 0 0 12px rgba(76, 127, 255, 0.35);
  vertical-align: 1px;
}

#sectionOverview .pd-cc-primary-value.snap-zero {
  color: #94a3b8;
}

#sectionOverview .pd-cc-primary-value.snap-positive {
  color: #2ea96c !important;
}

#sectionOverview .pd-cc-primary-value.snap-negative {
  color: #d4503a !important;
}

#sectionOverview .pd-cc-metric-value.snap-positive,
#sectionOverview .pd-cc-stat-value.snap-positive {
  color: #2ea96c !important;
}

#sectionOverview .pd-cc-metric-value.snap-negative,
#sectionOverview .pd-cc-stat-value.snap-negative {
  color: #d4503a !important;
}

#sectionOverview .pd-cc-metric-value.snap-zero,
#sectionOverview .pd-cc-stat-value.snap-zero {
  color: #94a3b8 !important;
}

#sectionOverview .pd-cc-primary-value {
  display: block;
  max-width: 100%;
  font-size: clamp(31px, 2.65vw, 42px);
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  font-variant-numeric: tabular-nums;
}

#sectionOverview .pd-cc-primary-value.pd-fit-sm {
  font-size: clamp(28px, 2.3vw, 36px);
}

#sectionOverview .pd-cc-primary-value.pd-fit-xs {
  font-size: clamp(24px, 1.95vw, 31px);
}

#sectionOverview .pd-cc-primary-value.pd-fit-xxs {
  font-size: clamp(20px, 1.65vw, 26px);
}

#sectionOverview .pd-cc-metric,
#sectionOverview .pd-cc-stat {
  min-height: 76px;
  min-width: 0;
  justify-content: center;
  align-items: center;
  padding: 10px 10px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(255, 255, 255, 0.026);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.025);
}

#sectionOverview .pd-cc-metric:first-child {
  border-color: rgba(34, 197, 94, 0.13);
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.055), rgba(255, 255, 255, 0.018));
}

#sectionOverview .pd-cc-metric:nth-child(2) {
  border-color: rgba(76, 127, 255, 0.13);
  background: linear-gradient(180deg, rgba(76, 127, 255, 0.055), rgba(255, 255, 255, 0.018));
}

#sectionOverview .pd-cc-stats .pd-cc-stat:nth-child(2),
#sectionOverview .pd-cc-stats .pd-cc-stat:nth-child(3) {
  background: rgba(255, 255, 255, 0.035);
}

#sectionOverview .pd-cc-stat-value,
#sectionOverview .pd-cc-metric-value {
  display: block;
  width: 100%;
  font-size: clamp(17px, 1.35vw, 22px);
  line-height: 1.05;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  font-variant-numeric: tabular-nums;
}

#sectionOverview .pd-cc-stat-value.pd-fit-sm,
#sectionOverview .pd-cc-metric-value.pd-fit-sm {
  font-size: clamp(15px, 1.1vw, 18px);
}

#sectionOverview .pd-cc-stat-value.pd-fit-xs,
#sectionOverview .pd-cc-metric-value.pd-fit-xs {
  font-size: clamp(13px, 0.95vw, 16px);
}

#sectionOverview .pd-cc-stat-value.pd-fit-xxs,
#sectionOverview .pd-cc-metric-value.pd-fit-xxs {
  font-size: clamp(11px, 0.82vw, 14px);
  letter-spacing: -0.01em;
}

#sectionOverview .pd-cc-metric-label,
#sectionOverview .pd-cc-stat-label {
  display: block;
  width: 100%;
  color: #8ea0c3;
  text-align: center;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1420px) {
  #sectionOverview .pd-cc-grid {
    grid-template-columns:
      minmax(190px, 0.9fr)
      minmax(170px, 0.85fr)
      minmax(320px, 1.5fr)
      minmax(210px, 1fr);
    gap: 12px;
  }

  #sectionOverview .pd-cc-divider,
  #sectionOverview .pd-cc-grid > .pd-cc-divider:nth-child(4),
  #sectionOverview .pd-cc-grid > .pd-cc-divider:nth-child(6) {
    display: none;
  }

  #sectionOverview .pd-cc-primary {
    grid-column: 1;
  }

  #sectionOverview .pd-cc-breakdown,
  #sectionOverview .pd-cc-stats {
    grid-column: auto;
  }

  #sectionOverview .pd-cc-breakdown,
  #sectionOverview .pd-cc-grid > .pd-cc-stats:nth-child(5),
  #sectionOverview .pd-cc-grid > .pd-cc-stats:nth-child(7) {
    grid-template-columns: repeat(auto-fit, minmax(62px, 1fr));
  }

  #sectionOverview .pd-cc-metric,
  #sectionOverview .pd-cc-stat {
    min-height: 68px;
    padding: 9px 8px;
  }

  #sectionOverview .pd-cc-primary-value {
    font-size: clamp(28px, 2.5vw, 36px);
  }
}

@media (max-width: 900px) {
  #sectionOverview .pd-cc-grid {
    grid-template-columns: 1fr;
  }

  #sectionOverview .pd-cc-divider {
    display: none;
  }

  #sectionOverview .pd-cc-primary,
  #sectionOverview .pd-cc-breakdown,
  #sectionOverview .pd-cc-stats {
    grid-column: 1;
  }
}

#sectionOverview .pd-status-strip-inline {
  gap: 8px;
}

#sectionOverview .pd-ss-item {
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.09);
  background: rgba(255, 255, 255, 0.035);
}

#sectionOverview .pd-ss-val--up {
  color: #34d399;
}

#sectionOverview .pd-ss-val--down {
  color: #ff6b5f;
}

#sectionOverview .trade-mode-tabs,
#sectionOverview .th-mode-tabs {
  padding: 3px;
  border-radius: 8px;
  border-color: rgba(148, 163, 184, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

#sectionOverview .trade-mode-tab.active,
#sectionOverview .th-mode-tab.active {
  color: #ffffff;
  border-color: rgba(76, 127, 255, 0.55);
  background: linear-gradient(135deg, rgba(76, 127, 255, 0.36), rgba(37, 99, 235, 0.22));
  box-shadow: 0 7px 16px rgba(37, 99, 235, 0.18);
}

#sectionOverview .trades-table-wrap,
#sectionOverview .trade-history-compact,
#sectionOverview .lac-table-wrap,
#sectionOverview .lac-pos-table-wrap,
#sectionOverview .lac-ord-table-wrap {
  border-radius: 6px;
}

#sectionOverview .trades-table th,
#sectionOverview .lac-table th,
#sectionOverview .lac-mini-table th {
  color: #8da0c4;
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.07), rgba(148, 163, 184, 0.03));
  border-bottom-color: rgba(148, 163, 184, 0.11);
}

#sectionOverview .trades-table td,
#sectionOverview .lac-table td,
#sectionOverview .lac-mini-table td {
  border-bottom-color: rgba(148, 163, 184, 0.045);
}

#sectionOverview .trades-table tbody tr:hover,
#sectionOverview .lac-algo-row:hover {
  background: rgba(76, 127, 255, 0.055);
}

#sectionOverview .trades-table .text-muted,
#sectionOverview #tradeHistoryTbody .text-muted,
#sectionOverview .lac-empty,
#sectionOverview .lac-empty-sm {
  color: #9fb0d0 !important;
}

#sectionOverview .live-trades-total {
  margin: 0;
  padding: 12px 14px;
  border-radius: 6px;
  border-top: 1px solid rgba(76, 127, 255, 0.16);
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  background: linear-gradient(90deg, rgba(76, 127, 255, 0.08), rgba(46, 169, 108, 0.055));
  color: #b7c6e8;
  text-align: center;
}

#sectionOverview #tradesTable {
  min-width: 1500px;
  table-layout: auto;
}

#sectionOverview #tradesTable th,
#sectionOverview #tradesTable td {
  padding: 10px 10px;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#sectionOverview #tradesTable th:nth-child(1),
#sectionOverview #tradesTable td:nth-child(1) { width: 170px; max-width: 170px; }
#sectionOverview #tradesTable th:nth-child(2),
#sectionOverview #tradesTable td:nth-child(2) { width: 110px; max-width: 110px; }
#sectionOverview #tradesTable th:nth-child(3),
#sectionOverview #tradesTable td:nth-child(3) { width: 100px; max-width: 100px; }
#sectionOverview #tradesTable th:nth-child(4),
#sectionOverview #tradesTable td:nth-child(4) { width: 76px; max-width: 76px; }
#sectionOverview #tradesTable th:nth-child(5),
#sectionOverview #tradesTable td:nth-child(5) { width: 170px; max-width: 170px; }
#sectionOverview #tradesTable th:nth-child(6),
#sectionOverview #tradesTable td:nth-child(6) { width: 78px; max-width: 78px; }
#sectionOverview #tradesTable th:nth-child(7),
#sectionOverview #tradesTable td:nth-child(7),
#sectionOverview #tradesTable th:nth-child(9),
#sectionOverview #tradesTable td:nth-child(9),
#sectionOverview #tradesTable th:nth-child(10),
#sectionOverview #tradesTable td:nth-child(10),
#sectionOverview #tradesTable th:nth-child(11),
#sectionOverview #tradesTable td:nth-child(11) { width: 102px; max-width: 102px; }
#sectionOverview #tradesTable th:nth-child(8),
#sectionOverview #tradesTable td:nth-child(8) { width: 95px; max-width: 95px; }
#sectionOverview #tradesTable th:nth-child(12),
#sectionOverview #tradesTable td:nth-child(12) { width: 62px; max-width: 62px; text-align: center; }
#sectionOverview #tradesTable th:nth-child(13),
#sectionOverview #tradesTable td:nth-child(13) { width: 110px; max-width: 110px; text-align: right; }
#sectionOverview #tradesTable th:nth-child(14),
#sectionOverview #tradesTable td:nth-child(14) { width: 150px; max-width: 150px; }
#sectionOverview #tradesTable th:nth-child(15),
#sectionOverview #tradesTable td:nth-child(15) { width: 58px; max-width: 58px; text-align: center; }

#sectionOverview .live-position-row {
  position: relative;
  height: 44px;
}

#sectionOverview .lp-trade-id,
#sectionOverview .lp-index,
#sectionOverview .lp-current,
#sectionOverview .lp-lots,
#sectionOverview .lp-price,
#sectionOverview .lp-time,
#sectionOverview .lp-pnl {
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
  white-space: nowrap;
}

#sectionOverview .lp-trade-id {
  color: #58a6ff;
  font-size: 11px;
}

#sectionOverview .lp-index {
  color: #f8fafc;
}

#sectionOverview .lp-main {
  display: inline;
  color: #f8fafc;
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
}

#sectionOverview .lp-price,
#sectionOverview .lp-time,
#sectionOverview .lp-current {
  color: #f8fafc;
}

#sectionOverview .lp-position {
  color: #58a6ff;
  font-size: 11px;
  font-weight: 800;
}

#sectionOverview .lp-sl {
  color: #ff6b5f;
}

#sectionOverview .lp-tgt {
  color: #22c55e;
}

#sectionOverview .lp-trigger {
  color: #dbeafe;
  font-size: 12px;
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
  text-transform: uppercase;
}

#sectionOverview .lp-mode {
  display: inline-flex;
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
}

#sectionOverview .lp-pnl {
  font-size: 13px;
  text-align: right;
}

[data-theme="light"] #sectionOverview .lp-index,
[data-theme="light"] #sectionOverview .lp-main,
[data-theme="light"] #sectionOverview .lp-price,
[data-theme="light"] #sectionOverview .lp-time,
[data-theme="light"] #sectionOverview .lp-current,
[data-theme="light"] #sectionOverview .lp-trigger {
  color: #111827;
}

#sectionOverview .trade-history-count {
  color: #9fb6e8;
  border: 1px solid rgba(96, 165, 250, 0.18);
  background: rgba(96, 165, 250, 0.1);
}

#sectionOverview .trade-history-chevron {
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#sectionOverview .trade-history-header:hover .trade-history-chevron {
  border-color: rgba(96, 165, 250, 0.36);
  color: #ffffff;
  background: linear-gradient(135deg, rgba(76, 127, 255, 0.28), rgba(139, 92, 246, 0.14));
}

#sectionOverview .pd-live-accounts {
  border-color: rgba(200, 169, 110, 0.16);
  display: grid;
  grid-template-columns: auto 1fr;
}

#sectionOverview .pd-live-accounts > * {
  grid-column: 1 / -1;
}

#sectionOverview .pd-live-accounts > .lac-conn-strip {
  grid-column: 1;
}

#sectionOverview .pd-live-accounts > .lac-health-strip {
  grid-column: 2;
  min-width: 0;
}

#sectionOverview .lac-header,
#sectionOverview .lac-conn-strip,
#sectionOverview .lac-health-strip,
#sectionOverview .lac-money-strip,
#sectionOverview .lac-section,
#sectionOverview .lac-attrib-strip {
  border-color: rgba(148, 163, 184, 0.07);
}

#sectionOverview .lac-conn-strip,
#sectionOverview .lac-health-strip {
  background: rgba(255, 255, 255, 0.024);
}

#sectionOverview .lac-conn-strip,
#sectionOverview .lac-health-strip {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 9px 18px;
  overflow-x: auto;
  scrollbar-width: thin;
}

#sectionOverview .lac-conn-strip {
  padding-bottom: 5px;
  border-bottom: 0;
}

#sectionOverview .lac-health-strip {
  padding-top: 5px;
}

#sectionOverview .lac-conn-item,
#sectionOverview .lac-health-chip,
#sectionOverview .lac-chip,
#sectionOverview .lac-obadge,
#sectionOverview .lac-stat-chip,
#sectionOverview .lac-risk-item,
#sectionOverview .lac-money-item {
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.08);
  background: rgba(255, 255, 255, 0.032);
}

#sectionOverview .lac-conn-item,
#sectionOverview .lac-health-chip {
  flex: 0 0 auto;
  min-height: 31px;
  padding: 6px 10px;
  white-space: nowrap;
}

#sectionOverview .lac-conn-item {
  min-width: 0;
}

#sectionOverview .lac-mode-item {
  min-width: 210px;
}

#sectionOverview .lac-health-chip {
  min-width: 0;
}

#sectionOverview .lac-money-item,
#sectionOverview .lac-stat-chip,
#sectionOverview .lac-risk-item {
  padding: 7px 9px;
}

#sectionOverview .lac-badge {
  border-radius: 5px;
  border: 1px solid transparent;
}

#sectionOverview .lac-badge--ok,
#sectionOverview .lac-badge--live,
#sectionOverview .lac-pos {
  color: #34d399 !important;
}

#sectionOverview .lac-badge--ok,
#sectionOverview .lac-badge--live {
  border-color: rgba(52, 211, 153, 0.22);
  background: rgba(16, 185, 129, 0.13);
}

#sectionOverview .lac-badge--err,
#sectionOverview .lac-neg,
#sectionOverview .lac-stale-tag {
  color: #ff6b5f !important;
}

#sectionOverview .lac-badge--err {
  border-color: rgba(239, 68, 68, 0.22);
  background: rgba(239, 68, 68, 0.13);
}

#sectionOverview .lac-badge--warn,
#sectionOverview .lac-stale {
  color: #fbbf24 !important;
}

#sectionOverview .lac-badge--paper {
  color: #6ea8fe;
  border-color: rgba(96, 165, 250, 0.22);
  background: rgba(96, 165, 250, 0.13);
}

#sectionOverview .lac-money-big .lac-money-val,
#sectionOverview .lac-stat-num,
#sectionOverview .lac-cell-count,
#sectionOverview .lac-conn-val {
  color: #f8fafc;
}

#sectionOverview .lac-bottom-cell {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(0, 0, 0, 0));
  border-color: rgba(148, 163, 184, 0.07);
}

#sectionOverview .lac-cell-title,
#sectionOverview .lac-money-label,
#sectionOverview .lac-health-lbl,
#sectionOverview .lac-risk-lbl,
#sectionOverview .lac-attrib-label {
  color: #899bc0;
}

#sectionOverview .lac-red-flags--bottom {
  color: #ff6b5f;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.18), rgba(239, 68, 68, 0.09));
}

#sectionOverview .pd-ops-center {
  border-radius: 8px;
  border-color: rgba(245, 158, 11, 0.2);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

#sectionOverview .oc-cell {
  border-radius: 8px;
  border-color: rgba(148, 163, 184, 0.1);
  background:
    linear-gradient(180deg, rgba(16, 20, 29, 0.98), rgba(9, 12, 18, 0.98)),
    #0a0c10;
}

#sectionOverview .oc-cell-title {
  color: #9fb0d0;
}

#sectionOverview .pd-qa-btn {
  border-radius: 6px;
  border-color: rgba(96, 165, 250, 0.16);
  background: rgba(96, 165, 250, 0.08);
}

#sectionOverview .pd-qa-btn--danger {
  border-color: rgba(239, 68, 68, 0.22);
  background: rgba(239, 68, 68, 0.1);
}

#sectionOverview .pd-qa-btn--warn {
  border-color: rgba(245, 158, 11, 0.22);
  background: rgba(245, 158, 11, 0.1);
}

[data-theme="light"] #sectionOverview .pd-command-center,
[data-theme="light"] #sectionOverview .trades-section,
[data-theme="light"] #sectionOverview .trade-history-section,
[data-theme="light"] #sectionOverview .pd-live-accounts,
[data-theme="light"] #sectionOverview .pd-ops-center {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border-color: #dbe3ee;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] #sectionOverview .pd-cc-metric,
[data-theme="light"] #sectionOverview .pd-cc-stat,
[data-theme="light"] #sectionOverview .lac-conn-item,
[data-theme="light"] #sectionOverview .lac-health-chip,
[data-theme="light"] #sectionOverview .lac-chip,
[data-theme="light"] #sectionOverview .lac-obadge,
[data-theme="light"] #sectionOverview .lac-stat-chip,
[data-theme="light"] #sectionOverview .lac-risk-item,
[data-theme="light"] #sectionOverview .lac-money-item,
[data-theme="light"] #sectionOverview .oc-cell {
  background: #f8fafc;
  border-color: #e2e8f0;
}

/* Compact overview strategy cards */
#sectionOverview #strategyMonitor.pd-strategy-monitor {
  gap: 14px;
  margin-bottom: 18px;
}

#sectionOverview #strategyMonitor .pd-sm-card {
  min-height: 0;
  padding: 16px 18px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(18, 22, 31, 0.99), rgba(11, 14, 20, 0.99)),
    #10141d;
}

#sectionOverview #strategyMonitor .pd-sm-card::before {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.75), rgba(76, 127, 255, 0.58), rgba(139, 92, 246, 0.48));
}

#sectionOverview #strategyMonitor .pd-sm-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 2px 10px;
  align-items: start;
  margin-bottom: 12px;
}

#sectionOverview #strategyMonitor .pd-sm-header .status-dot {
  margin-top: 7px;
}

#sectionOverview #strategyMonitor .pd-sm-name {
  font-size: 18px;
}

#sectionOverview #strategyMonitor .pd-sm-desc {
  color: #8ea0c3;
  font-size: 10px;
}

#sectionOverview #strategyMonitor .pd-sm-status-pill {
  grid-column: 3;
  grid-row: 1;
  border-radius: 6px;
}

#sectionOverview #strategyMonitor .pd-sm-pnl-row {
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-top: 2px;
}

#sectionOverview #strategyMonitor .pd-sm-pnl-label {
  color: #8ea0c3;
  font-size: 10px;
  letter-spacing: 0.08em;
}

#sectionOverview #strategyMonitor .pd-sm-pnl-value {
  font-size: 27px;
  line-height: 1;
}

#sectionOverview #strategyMonitor .pd-sm-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 10px;
}

#sectionOverview #strategyMonitor .pd-sm-summary > div {
  min-height: 44px;
  padding: 9px 11px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.032);
}

#sectionOverview #strategyMonitor .pd-sm-summary-label,
#sectionOverview #strategyMonitor .pd-sm-item-label {
  color: #8ea0c3;
}

#sectionOverview #strategyMonitor .pd-sm-summary-value {
  font-size: 16px;
}

#sectionOverview #strategyMonitor .pd-sm-readiness {
  display: none;
}

#sectionOverview #strategyMonitor .pd-sm-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.024);
}

#sectionOverview #strategyMonitor .pd-sm-grid .pd-sm-item:nth-child(n+4) {
  display: none;
}

#sectionOverview #strategyMonitor .pd-sm-item-value {
  font-size: 13px;
}

#sectionOverview #strategyMonitor .pd-sm-health {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 9px;
  padding: 8px 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.024);
}

#sectionOverview #strategyMonitor .pd-sm-health .pd-sm-health-item:nth-child(3),
#sectionOverview #strategyMonitor .pd-sm-health .pd-sm-health-item:nth-child(4) {
  display: none;
}

#sectionOverview #strategyMonitor .pd-sm-health-item {
  font-size: 10.5px;
}

#sectionOverview #strategyMonitor .pd-sm-footer {
  display: none;
}

#sectionOverview #strategyMonitor .pd-sm-remote-exit {
  display: block;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid rgba(239, 68, 68, 0.16);
}

#sectionOverview #strategyMonitor .pd-sm-remote-exit-btn {
  height: 30px;
  padding: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.16), rgba(185, 28, 28, 0.1));
  border-color: rgba(239, 68, 68, 0.34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

@media (max-width: 1100px) {
  #sectionOverview #strategyMonitor .pd-sm-health {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Admin dashboard polish: status strip, execution console, team cards */
#sectionOverview .pd-control-center,
.pd-control-center {
  margin: 8px auto 18px;
  max-width: 1600px;
  width: calc(100% - 56px);
  padding: 8px 28px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(16, 20, 29, 0.98), rgba(10, 13, 19, 0.98)),
    #0d1017;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.pd-control-center .pd-cc-group {
  min-height: 26px;
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid rgba(148, 163, 184, 0.11);
  background: rgba(255, 255, 255, 0.035);
}

.pd-control-center .pd-cc-accounts {
  padding: 0;
  border: none;
  background: transparent;
}

.pd-control-center .pd-cc-account {
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid rgba(148, 163, 184, 0.11);
  background: rgba(255, 255, 255, 0.035);
}

.pd-control-center .pd-cc-label {
  color: #7f90b2;
  letter-spacing: 0.08em;
}

.pd-control-center .pd-cc-value {
  color: #f8fafc;
}

.pd-control-center .pd-cc-badge {
  border-radius: 5px;
  padding: 2px 8px;
  background: rgba(96, 165, 250, 0.12);
  color: #6ea8fe;
}

.pd-control-center .pd-cc-badge--live {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.pd-control-center #globalKillSwitch {
  color: #34d399;
}

.pd-control-center #ccSystemStatus {
  color: #f8fafc;
}

.pd-control-center #ccSystemStatus.pd-cc-value--market-closed {
  color: #f59e0b;
}

.pd-control-center .pd-market-calendar-card {
  border-color: rgba(245, 158, 11, 0.24);
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.13), rgba(239, 68, 68, 0.06)),
    rgba(255, 255, 255, 0.035);
}

.pd-control-center .pd-market-calendar-card .pd-cc-label {
  color: #d7a24a;
}

.pd-control-center .pd-market-calendar-card .pd-cc-value {
  color: #fbbf24;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pd-control-center .pd-market-calendar-dot {
  background: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.45);
}

.pd-control-center #feedStatus {
  color: #ff6b5f;
}

.pd-control-center .pd-cc-settings-btn,
.pd-control-center .pd-cc-sound-btn {
  width: auto;
  min-width: 34px;
  min-height: 26px;
  padding: 4px 9px;
  border: none;
  background: transparent;
}

.pd-control-center .pd-cc-clock {
  min-height: 32px;
  padding: 4px 10px;
  border-radius: 7px;
  border: 1px solid rgba(96, 165, 250, 0.14);
  background: rgba(96, 165, 250, 0.06);
}

.pd-control-center .pd-cc-time {
  color: #ffffff;
}

.pd-control-center .pd-cc-date {
  color: #8191af;
}

#sectionOverview .pd-exec-console {
  border-radius: 8px;
  border-color: rgba(96, 165, 250, 0.2);
  background:
    linear-gradient(180deg, rgba(17, 22, 32, 0.99), rgba(10, 13, 20, 0.99)),
    #0d1017;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
}

#sectionOverview .pd-exec-console::before {
  height: 3px;
  background: linear-gradient(90deg, #4c7fff, #8b5cf6, #06b6d4, #22c55e);
}

#sectionOverview .ec-header {
  border-bottom-color: rgba(148, 163, 184, 0.09);
}

#sectionOverview .ec-header-title .ec-icon {
  background: linear-gradient(135deg, rgba(76, 127, 255, 0.26), rgba(139, 92, 246, 0.18));
  color: #8bb8ff;
  box-shadow: 0 0 18px rgba(76, 127, 255, 0.18);
}

#sectionOverview .ec-header-title .ec-name {
  color: #f8fafc;
}

#sectionOverview .ec-header-title .ec-sub,
#sectionOverview .ec-header .ec-time {
  color: #8191af;
}

#sectionOverview .ec-red-flags {
  border-color: rgba(239, 68, 68, 0.28);
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.15), rgba(127, 29, 29, 0.1));
}

#sectionOverview .ec-section {
  border-radius: 8px;
  border-color: rgba(148, 163, 184, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

#sectionOverview .ec-section-title {
  color: #8ea0c3;
}

#sectionOverview .ec-counter {
  min-height: 30px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--cnt-color) 12%, transparent);
  border-color: color-mix(in srgb, var(--cnt-color) 28%, transparent);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

#sectionOverview .ec-matrix th {
  color: #91a6cd;
  background: rgba(148, 163, 184, 0.055);
}

#sectionOverview .ec-matrix td,
#sectionOverview .ec-event-row {
  border-bottom-color: rgba(148, 163, 184, 0.05);
}

#sectionOverview .ec-matrix tr:hover td,
#sectionOverview .ec-event-row:hover {
  background: rgba(76, 127, 255, 0.045);
}

#sectionOverview .team-overview-section {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.13);
  background:
    linear-gradient(180deg, rgba(18, 22, 31, 0.98), rgba(11, 14, 20, 0.98)),
    #0f1117;
  padding: 20px 22px;
  margin-bottom: 18px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

#sectionOverview .team-overview-section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(76, 127, 255, 0.75), rgba(139, 92, 246, 0.65), rgba(34, 197, 94, 0.55));
}

#sectionOverview .team-members-list {
  gap: 12px;
}

#sectionOverview .team-member-chip {
  min-width: 185px;
  border-radius: 8px;
  border-color: rgba(148, 163, 184, 0.13);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

#sectionOverview .team-member-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(96, 165, 250, 0.28);
  background: rgba(96, 165, 250, 0.06);
}

#sectionOverview .team-member-avatar {
  background: linear-gradient(135deg, #4c7fff, #8b5cf6);
  box-shadow: 0 10px 22px rgba(76, 127, 255, 0.22);
}

#sectionOverview .team-member-name {
  color: #f8fafc;
  font-weight: 750;
}

#sectionOverview .team-member-role {
  color: #8ea0c3;
}

[data-theme="light"] .pd-control-center,
[data-theme="light"] #sectionOverview .pd-exec-console,
[data-theme="light"] #sectionOverview .team-overview-section {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border-color: #dbe3ee;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

@media (max-width: 640px) {
  #sectionOverview #strategyMonitor .pd-sm-summary,
  #sectionOverview #strategyMonitor .pd-sm-grid,
  #sectionOverview #strategyMonitor .pd-sm-health {
    grid-template-columns: 1fr;
  }
}

/* Final day-mode contrast pass for the premium overview/admin widgets. */
[data-theme="light"] .admin-main {
  color: #0f172a;
}

[data-theme="light"] .section-title,
[data-theme="light"] #sectionOverview .lac-title,
[data-theme="light"] #sectionOverview .oc-name,
[data-theme="light"] #sectionOverview .ec-name {
  color: #0f172a !important;
  text-shadow: none !important;
}

[data-theme="light"] .section-subtitle,
[data-theme="light"] #sectionOverview .lac-sub,
[data-theme="light"] #sectionOverview .ec-sub,
[data-theme="light"] #sectionOverview .ec-time,
[data-theme="light"] #sectionOverview .pd-sm-desc,
[data-theme="light"] #sectionOverview .pd-sm-pnl-label,
[data-theme="light"] #sectionOverview .pd-sm-summary-label,
[data-theme="light"] #sectionOverview .pd-sm-item-label,
[data-theme="light"] #sectionOverview .pd-sm-health-item,
[data-theme="light"] #sectionOverview .lac-cell-title,
[data-theme="light"] #sectionOverview .lac-money-label,
[data-theme="light"] #sectionOverview .lac-health-lbl,
[data-theme="light"] #sectionOverview .lac-risk-lbl,
[data-theme="light"] #sectionOverview .lac-attrib-label,
[data-theme="light"] #sectionOverview .pd-cc-primary-sub,
[data-theme="light"] #sectionOverview .pd-cc-label,
[data-theme="light"] .pd-control-center .pd-cc-label {
  color: #64748b !important;
}

[data-theme="light"] #sectionOverview #strategyMonitor .pd-sm-card,
[data-theme="light"] #sectionOverview .pd-command-center,
[data-theme="light"] #sectionOverview .trades-section,
[data-theme="light"] #sectionOverview .trade-history-section,
[data-theme="light"] #sectionOverview .pd-live-accounts,
[data-theme="light"] #sectionOverview .pd-ops-center,
[data-theme="light"] #sectionOverview .pd-exec-console,
[data-theme="light"] #sectionOverview .team-overview-section,
[data-theme="light"] #sectionOverview .pd-control-center,
[data-theme="light"] .pd-control-center {
  background: linear-gradient(180deg, #ffffff, #f8fafc) !important;
  border-color: #dbe3ee !important;
  color: #0f172a !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] #sectionOverview #strategyMonitor .pd-sm-summary > div,
[data-theme="light"] #sectionOverview #strategyMonitor .pd-sm-grid,
[data-theme="light"] #sectionOverview #strategyMonitor .pd-sm-health,
[data-theme="light"] #sectionOverview .pd-cc-metric,
[data-theme="light"] #sectionOverview .pd-cc-stat,
[data-theme="light"] #sectionOverview .pd-cc-action,
[data-theme="light"] #sectionOverview .lac-header,
[data-theme="light"] #sectionOverview .lac-conn-strip,
[data-theme="light"] #sectionOverview .lac-health-strip,
[data-theme="light"] #sectionOverview .lac-money-strip,
[data-theme="light"] #sectionOverview .lac-section,
[data-theme="light"] #sectionOverview .lac-attrib-strip,
[data-theme="light"] #sectionOverview .lac-bottom-cell,
[data-theme="light"] #sectionOverview .oc-cell,
[data-theme="light"] #sectionOverview .ec-section,
[data-theme="light"] #sectionOverview .team-member-chip,
[data-theme="light"] .pd-control-center .pd-cc-group,
[data-theme="light"] .pd-control-center .pd-cc-account,
[data-theme="light"] .pd-control-center .pd-cc-clock {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="light"] #sectionOverview .lac-conn-item,
[data-theme="light"] #sectionOverview .lac-health-chip,
[data-theme="light"] #sectionOverview .lac-chip,
[data-theme="light"] #sectionOverview .lac-obadge,
[data-theme="light"] #sectionOverview .lac-stat-chip,
[data-theme="light"] #sectionOverview .lac-risk-item,
[data-theme="light"] #sectionOverview .lac-money-item,
[data-theme="light"] #sectionOverview .pd-qa-btn {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
}

[data-theme="light"] #sectionOverview .pd-sm-name,
[data-theme="light"] #sectionOverview .pd-sm-summary-value,
[data-theme="light"] #sectionOverview .pd-sm-item-value,
[data-theme="light"] #sectionOverview .lac-money-val,
[data-theme="light"] #sectionOverview .lac-stat-num,
[data-theme="light"] #sectionOverview .lac-cell-count,
[data-theme="light"] #sectionOverview .lac-conn-val,
[data-theme="light"] #sectionOverview .lac-risk-val,
[data-theme="light"] #sectionOverview .pd-cc-primary-label,
[data-theme="light"] #sectionOverview .pd-cc-primary-value,
[data-theme="light"] #sectionOverview .pd-cc-stat-value,
[data-theme="light"] #sectionOverview .pd-cc-value,
[data-theme="light"] #sectionOverview #ccSystemStatus,
[data-theme="light"] #sectionOverview .pd-cc-time,
[data-theme="light"] .pd-cc-primary-value,
[data-theme="light"] .pd-cc-stat-value,
[data-theme="light"] .pd-control-center .pd-cc-value,
[data-theme="light"] .pd-control-center #ccSystemStatus,
[data-theme="light"] .pd-control-center .pd-cc-time,
[data-theme="light"] #sectionOverview .team-member-name,
[data-theme="light"] #sectionOverview .ec-matrix td,
[data-theme="light"] #sectionOverview .ec-event-row,
[data-theme="light"] #sectionOverview .lac-table td,
[data-theme="light"] #sectionOverview .lac-mini-table td {
  color: #0f172a !important;
  text-shadow: none !important;
}

[data-theme="light"] #sectionOverview .pd-sm-pnl-value {
  color: #475569 !important;
  text-shadow: none !important;
}

[data-theme="light"] #sectionOverview .pd-cc-primary-value.snap-zero,
[data-theme="light"] .pd-cc-primary-value.snap-zero {
  color: #64748b !important;
}

[data-theme="light"] #sectionOverview .pd-sm-pnl-value.positive,
[data-theme="light"] #sectionOverview .lac-pos {
  color: #059669 !important;
}

[data-theme="light"] #sectionOverview .pd-sm-pnl-value.negative,
[data-theme="light"] #sectionOverview .lac-neg,
[data-theme="light"] #sectionOverview #feedStatus {
  color: #dc2626 !important;
}

[data-theme="light"] #sectionOverview .ec-section-title,
[data-theme="light"] #sectionOverview .ec-matrix th,
[data-theme="light"] #sectionOverview .lac-table th,
[data-theme="light"] #sectionOverview .lac-mini-table th,
[data-theme="light"] #sectionOverview .lac-empty,
[data-theme="light"] #sectionOverview .lac-empty-sm,
[data-theme="light"] #sectionOverview .team-member-role,
[data-theme="light"] .pd-control-center .pd-cc-date {
  color: #64748b !important;
}

[data-theme="light"] #sectionOverview .ec-matrix th,
[data-theme="light"] #sectionOverview .lac-table th,
[data-theme="light"] #sectionOverview .lac-mini-table th {
  background: #f1f5f9 !important;
}

[data-theme="light"] #sectionOverview .ec-red-flags,
[data-theme="light"] #sectionOverview .lac-red-flags--bottom {
  background: #fff1f2 !important;
  border-color: #fecaca !important;
  color: #dc2626 !important;
}

[data-theme="light"] #sectionOverview #strategyMonitor .pd-sm-remote-exit {
  border-top-color: #fecaca !important;
}

[data-theme="light"] #sectionOverview #strategyMonitor .pd-sm-remote-exit-btn {
  background: linear-gradient(90deg, #fff1f2, #ffffff) !important;
  border-color: #fca5a5 !important;
  color: #dc2626 !important;
  box-shadow: none !important;
}

[data-theme="light"] #sectionOverview .pd-cc-primary-value.snap-positive,
[data-theme="light"] #sectionOverview .pd-cc-metric-value.snap-positive,
[data-theme="light"] #sectionOverview .pd-cc-stat-value.snap-positive {
  color: #059669 !important;
}

[data-theme="light"] #sectionOverview .pd-cc-primary-value.snap-negative,
[data-theme="light"] #sectionOverview .pd-cc-metric-value.snap-negative,
[data-theme="light"] #sectionOverview .pd-cc-stat-value.snap-negative {
  color: #dc2626 !important;
}

[data-theme="light"] .pd-control-center .pd-market-calendar-card {
  background: linear-gradient(135deg, #fff7ed, #ffffff) !important;
  border-color: #fed7aa !important;
}

[data-theme="light"] .pd-control-center .pd-market-calendar-card .pd-cc-label {
  color: #b45309 !important;
}

[data-theme="light"] .pd-control-center .pd-market-calendar-card .pd-cc-value,
[data-theme="light"] .pd-control-center #ccSystemStatus.pd-cc-value--market-closed {
  color: #d97706 !important;
}

[data-theme="light"] #sectionOverview .pd-cc-metric-value.snap-zero,
[data-theme="light"] #sectionOverview .pd-cc-stat-value.snap-zero {
  color: #64748b !important;
}
