﻿/* Royal Gold polish for the existing overview and command center only. */
#dashboardScreen :is(#overviewPanel .metrics > article, #commandPanel .cc-metrics > article, #commandPanel .mc-widget-card) {
  min-width: 0; border: 1px solid #b99645 !important; border-radius: 14px !important;
  background: linear-gradient(145deg, #1b2a43, #101827) !important;
  box-shadow: inset 0 1px 0 rgba(245,215,120,.12), 0 8px 22px rgba(0,0,0,.22) !important;
  color: #f5f1e8 !important;
}
#dashboardScreen #commandPanel .mc-operations-panel {
  border: 1px solid rgba(185,150,69,.58) !important; border-radius: 16px !important;
  background: #0e1627 !important; box-shadow: 0 10px 28px rgba(0,0,0,.2) !important;
}
#dashboardScreen #commandPanel .mc-section-head h3,
#dashboardScreen #commandPanel .mc-widget-title h4,
#dashboardScreen #overviewPanel .metrics > article > b,
#dashboardScreen #commandPanel .cc-metrics article b { color: #f5d778 !important; }
#dashboardScreen :is(#overviewPanel .metrics > article, #commandPanel .cc-metrics > article) :is(span,small),
#dashboardScreen #commandPanel .mc-section-head p { color: #cebea1 !important; }
#dashboardScreen #commandPanel .mc-widget-grid { gap: 16px; align-items: stretch; }
#dashboardScreen #commandPanel .mc-widget-card { padding: 18px !important; }
#dashboardScreen #commandPanel .mc-widget-title { gap: 10px; border-bottom: 1px solid rgba(212,175,55,.34) !important; }
#dashboardScreen #commandPanel .mc-widget-title h4 { color: #f5d778 !important; letter-spacing: .01em; }
#dashboardScreen #commandPanel .mc-widget-title button,
#dashboardScreen #commandPanel .mc-ops-actions button {
  border: 1px solid #b99645 !important; border-radius: 8px !important;
  background: #17243b !important; color: #f5d778 !important;
}
#dashboardScreen #commandPanel .mc-widget-title button { flex: 0 0 32px; }
#dashboardScreen #commandPanel .mc-widget-body { color: #f5f1e8 !important; }
#dashboardScreen #commandPanel .mc-widget-body p { margin: 0; color: #cebea1 !important; line-height: 1.6; }
#dashboardScreen #commandPanel :is(.mc-mini-metric,.mc-widget-status) {
  border: 1px solid rgba(185,150,69,.3); background: #0e1627 !important; border-radius: 9px;
}
#dashboardScreen #commandPanel :is(.mc-mini-metric span,.mc-mini-metric small,.mc-widget-status span,.mc-widget-status small,.mc-list-row span) { color: #cebea1 !important; }
#dashboardScreen #commandPanel :is(.mc-mini-metric b,.mc-widget-status b,.mc-list-row b) { color: #f5f1e8 !important; }
#dashboardScreen #commandPanel .mc-list-row { gap: 4px; padding: 10px 0; border-color: rgba(212,175,55,.25) !important; }
#dashboardScreen #commandPanel .mc-list-row:last-child { border-bottom: 0; }
#dashboardScreen #commandPanel .mc-empty { padding: 10px 12px; border: 1px dashed rgba(185,150,69,.4); border-radius: 9px; background: rgba(14,22,39,.65); }
#dashboardScreen #commandPanel .mc-error { color: #ffc5b8 !important; }
#dashboardScreen #commandPanel .mc-widget-card > .text-button,
#dashboardScreen #overviewPanel .text-button {
  max-width: 100%; border: 1px solid #b99645 !important; border-radius: 8px !important;
  padding: 7px 10px !important; background: rgba(212,175,55,.1) !important;
  color: #f5d778 !important; font-weight: 700; white-space: normal; overflow-wrap: anywhere;
}
#dashboardScreen #commandPanel :is(.mc-widget-title button,.mc-ops-actions button,.mc-widget-card > .text-button):hover,
#dashboardScreen #overviewPanel .text-button:hover { background: #d4af37 !important; color: #101827 !important; }
#dashboardScreen :is(#commandPanel,#overviewPanel) button:focus-visible { outline: 2px solid #f5d778; outline-offset: 3px; }
#dashboardScreen #commandPanel .mc-widget-preferences { border-color: #b99645 !important; background: #17243b !important; }
#dashboardScreen #commandPanel .mc-widget-preferences :is(p,label) { color: #f5f1e8 !important; }
#dashboardScreen #commandPanel .mc-widget-preferences input { accent-color: #d4af37; }
#dashboardScreen #commandPanel .cc-shortcuts button,
#dashboardScreen #overviewPanel #cpsV6CommandStrip > button {
  border: 1px solid #b99645 !important; background: linear-gradient(145deg,#1b2a43,#101827) !important;
  color: #f5d778 !important; box-shadow: 0 6px 18px rgba(0,0,0,.2) !important;
  white-space: normal; overflow-wrap: anywhere;
}
#dashboardScreen #overviewPanel #cpsV6CommandStrip :is(b,.cps-v6-action-icon) { color: #f5d778 !important; }
#dashboardScreen #overviewPanel #cpsV6CommandStrip small { color: #cebea1 !important; }
#dashboardScreen #overviewPanel #cpsV6CommandStrip .cps-v6-action-icon { background: #0e1627 !important; }
@media (max-width: 760px) {
  #dashboardScreen #commandPanel .mc-widget-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),1fr)); }
  #dashboardScreen #commandPanel .mc-section-head { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  #dashboardScreen #commandPanel .mc-widget-grid { grid-template-columns: minmax(0,1fr); }
  #dashboardScreen #commandPanel .mc-widget-card { padding: 14px !important; }
  #dashboardScreen #commandPanel .cc-shortcuts { grid-template-columns: minmax(0,1fr); }
}
