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

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

.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 {
  font-size: 12px;
  color: #6b7280;
  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.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-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-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-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; }

[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"] .divider { background: #e5e7eb; }
