/* IUAI_SCHEDULED_HISTORY_LIGHT_THEME_V1_20261019
   Fix the scheduled-task execution history rows/dialog in IUAI light mode.
   Dark mode stays exactly as the existing scheduled-history-v1.css defines it.
*/
body:not([data-theme="dark"]) #scheduled-run-history{
  color:var(--ink,#0b1730);
}
body:not([data-theme="dark"]) #scheduled-run-history h2{
  color:var(--ink,#0b1730);
}

body:not([data-theme="dark"]) .scheduled-history-row{
  background:var(--card,#fff)!important;
  color:var(--ink,#0b1730)!important;
  border-color:var(--line,#dce5f1)!important;
  box-shadow:0 1px 2px rgba(13,35,75,.03)!important;
}
body:not([data-theme="dark"]) .scheduled-history-row:hover{
  background:#f8fbfe!important;
  border-color:#b9cadd!important;
  box-shadow:0 7px 18px rgba(13,35,75,.06)!important;
}
body:not([data-theme="dark"]) .scheduled-history-row b{
  color:var(--ink,#0b1730)!important;
}
body:not([data-theme="dark"]) .scheduled-history-row span,
body:not([data-theme="dark"]) .scheduled-history-row small{
  color:var(--muted,#71809a)!important;
  opacity:1!important;
}
body:not([data-theme="dark"]) .task-execution-state{
  color:#2d8d6b!important;
}

/* Result dialog opened from a history row. */
body:not([data-theme="dark"]) .scheduled-result-dialog{
  background:var(--card,#fff)!important;
  color:var(--ink,#0b1730)!important;
  border-color:var(--line,#dce5f1)!important;
  box-shadow:0 26px 70px rgba(13,35,75,.18)!important;
}
body:not([data-theme="dark"]) .scheduled-result-dialog::backdrop{
  background:rgba(16,30,47,.30)!important;
}
body:not([data-theme="dark"]) .scheduled-result-dialog>[data-close]{
  background:#f5f8fc!important;
  color:var(--ink,#0b1730)!important;
  border:1px solid var(--line,#dce5f1)!important;
}

/* Also respect the early light-theme marker during hydration. */
html[data-iuai-initial-theme="light"] body .scheduled-history-row{
  background:var(--card,#fff)!important;
  color:var(--ink,#0b1730)!important;
  border-color:var(--line,#dce5f1)!important;
}
