
/* V11.3 final repair: safe theme and unified pages */
html,body{min-height:100%;margin:0}
html.dark,body.dark,html[data-theme="dark"],body[data-theme="dark"]{background:#071421!important;color:#f8fafc!important;color-scheme:dark}
html.light,body.light,html[data-theme="light"],body[data-theme="light"]{background:#f8fbff!important;color:#0f172a!important;color-scheme:light}
html.dark.light{background:#071421!important}
html.light.dark[data-theme="light"]{background:#f8fbff!important}

html.light .sch-tool-page,body.light .sch-tool-page,html[data-theme="light"] .sch-tool-page,body[data-theme="light"] .sch-tool-page{
  background:linear-gradient(135deg,#f8fbff 0%,#eef7ff 48%,#effdf7 100%)!important;color:#0f172a!important
}
html.dark .sch-tool-page,body.dark .sch-tool-page,html[data-theme="dark"] .sch-tool-page,body[data-theme="dark"] .sch-tool-page{
  background:linear-gradient(135deg,#172b56 0%,#071421 48%,#07352f 100%)!important;color:#f8fafc!important
}
html.light .sch-tool-hero,body.light .sch-tool-hero,html[data-theme="light"] .sch-tool-hero,body[data-theme="light"] .sch-tool-hero,
html.light .sch-card,body.light .sch-card,html[data-theme="light"] .sch-card,body[data-theme="light"] .sch-card{
  background:rgba(255,255,255,.94)!important;color:#0f172a!important;border-color:rgba(15,23,42,.14)!important
}
html.light .sch-tool-hero h1,body.light .sch-tool-hero h1,html[data-theme="light"] .sch-tool-hero h1,body[data-theme="light"] .sch-tool-hero h1,
html.light .sch-card h2,body.light .sch-card h2,html[data-theme="light"] .sch-card h2,body[data-theme="light"] .sch-card h2,
html.light .sch-card h3,body.light .sch-card h3,html[data-theme="light"] .sch-card h3,body[data-theme="light"] .sch-card h3{color:#0f172a!important}
html.light .sch-card p,body.light .sch-card p,html[data-theme="light"] .sch-card p,body[data-theme="light"] .sch-card p,
html.light .sch-card label,body.light .sch-card label,html[data-theme="light"] .sch-card label,body[data-theme="light"] .sch-card label,
html.light .sch-tool-hero p,body.light .sch-tool-hero p,html[data-theme="light"] .sch-tool-hero p,body[data-theme="light"] .sch-tool-hero p{color:#334155!important}
html.light .sch-tool-ui input,body.light .sch-tool-ui input,html[data-theme="light"] .sch-tool-ui input,body[data-theme="light"] .sch-tool-ui input,
html.light .sch-tool-ui textarea,body.light .sch-tool-ui textarea,html[data-theme="light"] .sch-tool-ui textarea,body[data-theme="light"] .sch-tool-ui textarea,
html.light .sch-tool-ui select,body.light .sch-tool-ui select,html[data-theme="light"] .sch-tool-ui select,body[data-theme="light"] .sch-tool-ui select,
html.light .sch-output,body.light .sch-output,html[data-theme="light"] .sch-output,body[data-theme="light"] .sch-output{
  background:#fff!important;color:#0f172a!important;border-color:rgba(15,23,42,.16)!important
}
html.light .sch-related a,body.light .sch-related a,html[data-theme="light"] .sch-related a,body[data-theme="light"] .sch-related a,
html.light .sch-btn.secondary,body.light .sch-btn.secondary,html[data-theme="light"] .sch-btn.secondary,body[data-theme="light"] .sch-btn.secondary{
  background:#fff!important;color:#0f172a!important;border-color:rgba(15,23,42,.16)!important
}
html.light .nav,body.light .nav,html[data-theme="light"] .nav,body[data-theme="light"] .nav{background:rgba(255,255,255,.90)!important;color:#0f172a!important}
