/*
 * Whole Business Engine approved dark + bright icon contract
 * Loaded last so page modules cannot fade the shared canvas or information
 * card icons. The protected Painting estimator retains its own locked theme.
 */
body:not(:has(.painting-module-shell)) .premium-app,
body:not(:has(.painting-module-shell)) .premium-app main,
body:not(:has(.painting-module-shell)) .premium-app .content{
  background:#020811!important;
}

.command-center-shell.command-center-modern{
  background:#020811!important;
}

.command-center-modern .command-hero{
  background:linear-gradient(145deg,#050f19,#020710)!important;
  border-color:#203548!important;
  box-shadow:none!important;
}

.command-center-modern .command-kpi,
.command-center-modern .command-card{
  background:linear-gradient(145deg,#06131f,#020812)!important;
  border-color:#233d52!important;
  box-shadow:none!important;
}

.command-center-modern .command-card .head,
.command-center-modern .weather-command-head{
  background:#04101a!important;
  border-color:#233d52!important;
}

.command-center-modern .command-kpi > .command-kpi-icon{
  color:var(--command-accent,#38bdf8)!important;
  border:1.5px solid currentColor!important;
  background:color-mix(in srgb,currentColor 13%,transparent)!important;
  box-shadow:none!important;
  filter:none!important;
  opacity:1!important;
}

.command-center-modern .command-kpi > .command-kpi-icon svg,
.command-center-modern .command-kpi > .command-kpi-icon svg *{
  color:inherit!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:2.35!important;
  filter:none!important;
  opacity:1!important;
  shape-rendering:geometricPrecision!important;
}

/* Calendar consumes the same extra-dark canvas and semantic icon contract. */
.ironflow-calendar-page{
  --cal-bg:#020811!important;
  --cal-panel:#06121c!important;
  --cal-panel-2:#091721!important;
  --cal-line:#233d52!important;
  --cal-line-soft:#1a3042!important;
}

.ironflow-calendar-page .calendar-focus-strip,
.ironflow-calendar-page .calendar-toolbar-v2,
.ironflow-calendar-page .calendar-create-panel,
.ironflow-calendar-page .calendar-month-panel,
.ironflow-calendar-page .calendar-right-rail>.panel{
  background:linear-gradient(180deg,#06131f,#020812)!important;
  border-color:#233d52!important;
  box-shadow:none!important;
}

.ironflow-calendar-page .month-calendar-grid{
  background:#030b13!important;
  border-color:#233d52!important;
}

.ironflow-calendar-page .month-weekday{
  background:#07111a!important;
  border-color:#233d52!important;
}

.ironflow-calendar-page .month-day,
.ironflow-calendar-page .month-calendar-grid-v4 .month-day{
  background:linear-gradient(145deg,#0a141e,#061019)!important;
  border-color:#233d52!important;
}

#app .premium-app .ironflow-calendar-page .month-day.muted-month{
  background:#050d15!important;
}

#app .premium-app .ironflow-calendar-page .month-calendar-grid-v4 .month-day.weekend{
  background:#07111b!important;
}

#app .premium-app .ironflow-calendar-page .month-day.selected-day{
  background:linear-gradient(145deg,#0d1a26,#08131d)!important;
}

.ironflow-calendar-page .calendar-focus-metric{
  --calendar-accent:#2388ff;
}
.ironflow-calendar-page .calendar-focus-metric.tone-green{--calendar-accent:#16c66a;}
.ironflow-calendar-page .calendar-focus-metric.tone-gold{--calendar-accent:#e9b51a;}
.ironflow-calendar-page .calendar-focus-metric.tone-red{--calendar-accent:#f04e58;}
.ironflow-calendar-page .calendar-focus-metric.tone-purple{--calendar-accent:#b56cff;}
.ironflow-calendar-page .calendar-focus-metric.tone-orange{--calendar-accent:#ff9a2f;}

.ironflow-calendar-page .calendar-focus-metric:not([data-calendar-focus="new-appointment"]) .calendar-focus-icon{
  color:var(--calendar-accent)!important;
  border:1.5px solid currentColor!important;
  background:color-mix(in srgb,currentColor 11%,transparent)!important;
  box-shadow:none!important;
  filter:none!important;
  opacity:1!important;
}

.ironflow-calendar-page .calendar-focus-icon svg,
.ironflow-calendar-page .calendar-focus-icon svg *{
  color:inherit!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:2.25!important;
  filter:none!important;
  opacity:1!important;
}

.command-center-modern .weather-refresh-btn{
  min-height:32px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  margin-top:5px!important;
  padding:6px 10px!important;
  border:1px solid #ff7a00!important;
  border-radius:7px!important;
  background:#07131f!important;
  color:#ff9a32!important;
  font-size:11px!important;
  font-weight:800!important;
  line-height:1!important;
  box-shadow:none!important;
}

.command-center-modern .weather-refresh-btn:hover,
.command-center-modern .weather-refresh-btn:focus-visible{
  background:#16120e!important;
  color:#ffb15d!important;
  outline:1px solid #ff7a00!important;
  outline-offset:1px!important;
}

.command-center-modern .weather-refresh-btn svg{
  width:14px!important;
  height:14px!important;
  stroke:currentColor!important;
  filter:none!important;
}

@media(max-width:760px){
  .command-center-modern .command-kpi > .command-kpi-icon{
    color:var(--command-accent,#38bdf8)!important;
    border-color:currentColor!important;
    background:color-mix(in srgb,currentColor 13%,transparent)!important;
  }
}
