/* USAGI 4.2: Accessibility/readability patch. Loaded last to override theme decorations. */
body .usagi-calc-inputs .panel,
body .usagi-calc-output .panel { --u42-ink:#28344e; --u42-sub:#40506b; }
body .usagi-calc-inputs .panel .section-head h2,
body .usagi-calc-output .panel .section-head h2,
body .usagi-calc-inputs .panel h2,
body .usagi-calc-output .panel h2 { color:#263454!important; opacity:1!important; text-shadow:none!important; font-weight:800!important; }
body .usagi-calc-inputs .panel label,
body .usagi-calc-output .panel label,
body .usagi-calc-inputs .panel .field-grid label,
body .usagi-calc-inputs .panel .section-head p,
body .usagi-calc-output .panel .section-head p,
body .usagi-calc-inputs .panel .hint,
body .usagi-calc-output .panel .hint,
body .usagi-calc-inputs .panel label small,
body .usagi-calc-output .panel label small,
body .usagi-calc-inputs .panel p,
body .usagi-calc-output .panel p {color:var(--u42-sub)!important;opacity:1!important;-webkit-text-fill-color:var(--u42-sub)!important;text-shadow:none!important;filter:none!important;}
body .usagi-calc-inputs .panel label,
body .usagi-calc-output .panel label {font-weight:650!important;}
body .usagi-calc-inputs .panel .section-head p,
body .usagi-calc-output .panel .section-head p,
body .usagi-calc-inputs .panel .hint,
body .usagi-calc-output .panel .hint,
body .usagi-calc-inputs .panel small,
body .usagi-calc-output .panel small {font-weight:500!important;}
body .usagi-calc-inputs .panel input,
body .usagi-calc-output .panel input,
body .usagi-calc-inputs .panel select {color:#20334d!important;-webkit-text-fill-color:#20334d!important;opacity:1!important;}
body .usagi-calc-inputs .panel input::placeholder,
body .usagi-calc-output .panel input::placeholder {color:#56667b!important;-webkit-text-fill-color:#56667b!important;opacity:1!important;}
body .usagi-calc-inputs .panel .subtotal span,
body .usagi-calc-inputs .panel .result-strip span,
body .usagi-calc-output .panel .subtotal span,
body .usagi-calc-output .panel .result-strip span,
body .usagi-calc-inputs .panel .minor-result,
body .usagi-calc-output .panel .minor-result {color:#33445d!important;opacity:1!important;text-shadow:none!important;}
body .usagi-calc-inputs .panel .subtotal strong,
body .usagi-calc-inputs .panel .result-strip strong,
body .usagi-calc-output .panel .subtotal strong {color:#57459a!important;opacity:1!important;}
/* Keep colored themes, but ensure text is never white/pale on pale panels. */
body[data-theme=leaf] .usagi-calc-inputs .panel,body[data-theme=leaf] .usagi-calc-output .panel{--u42-sub:#554337}
body[data-theme=chibi] .usagi-calc-inputs .panel,body[data-theme=chibi] .usagi-calc-output .panel{--u42-sub:#593a54}
body[data-theme=hokage] .usagi-calc-inputs .panel,body[data-theme=hokage] .usagi-calc-output .panel{--u42-sub:#57492e}
body[data-theme=akatsuki] .usagi-calc-inputs .panel,body[data-theme=akatsuki] .usagi-calc-output .panel{--u42-sub:#3b3d68}
