/* AMAADOR OPEX dark build of assets/css/opex-contrast-r1.css (20261031a). Generated by work/os/build.py. */
/* opex-contrast-r1: restore a readable results panel on /tools/*.html.
   Cause: amaador-opex-overrides.css paints .results as a dark inverse panel (light text), then its generic
   ".calc-panel{background:surface}" rule (later in the file) makes the same element #16181c, and opex-c.css pins the
   inverse text tokens to #121212/#272727 in every theme. Result: light text on a light panel.
   Fix: put the dark background back and pin every result text colour explicitly (no token dependence), light and dark theme alike.
   Scope: .results and the Academy pathway button only. No layout, size or text change. */
html body .results {
  background: var(--lmb-0a0f26,#d5d7dc);
  color: var(--lmt-e6e6e6,#272727);
  border-color: var(--lmb-616472,#616472);
}
html body .results h2 { color: var(--lmt-ffffff,#121212); }
html body .results h2 .n { color: var(--lmt-e6e6e6,#272727); border-color: var(--lmb-616472,#616472); }
html body .results .primary {
  background: var(--lmb-1d1230,#d0cdd4);
  border-color: var(--lmb-616472,#616472);
}
html body .results .primary .lbl { color: var(--lmt-e6e6e6,#272727); }
html body .results .primary .val { color: var(--lmt-ffffff,#121212); }
html body .results .primary .hint { color: var(--lmt-ff9aa0,#3d1417); }
html body .results .res { border-color: var(--lmb-616472,#616472); background: var(--lmb-161c3c,#6574c3); }
html body .results .res .lbl { color: var(--lmt-e6e6e6,#272727); }
html body .results .res .val { color: var(--lmt-ffffff,#121212); }
html body .results .res.good .val { color: var(--lmt-7fdc9a,#81da9b); }
html body .results .res.warn .val { color: var(--lmt-f3c969,#f0c86c); }
html body .results .res.bad .val { color: var(--lmt-ff9aa0,#3d1417); }
html body .results .formula,
html body .results .insight {
  background: var(--lmb-161c3c,#6574c3);
  color: var(--lmt-e6e6e6,#272727);
  border-color: var(--lmb-616472,#616472);
}
html body .results .insight b,
html body .results .insight strong { color: var(--lmt-ffffff,#121212); }
html body .results .tool-actions .btn,
html body .results .tool-actions .btn-ghost {
  background: transparent;
  color: var(--lmt-ffffff,#121212);
  border-color: #b7bacc;
}
html body .results .tool-actions .btn:hover,
html body .results .tool-actions .btn-ghost:hover {
  background: var(--lmb-121212,#121212);
  color: var(--lmt-dfdfdf,#dfdfdf);
  border-color: var(--lmb-121212,#121212);
}
/* Academy pathway button: opex-c.css "main a:not(.c-card):not(.c-dom):not(.btn)" (0,3,2) turned its text dark red (#fa2e3d)
   on the red (#fa2e3d) fill, 1.35:1. Triple class below = (0,3,4) beats it without !important. */
html body main a.academy-pathway__button.academy-pathway__button.academy-pathway__button,
html body main a.academy-pathway__button.academy-pathway__button.academy-pathway__button:visited {
  background: #fa2e3d;
  border-color: #fa2e3d;
  color: var(--lmt-ffffff,#121212);
}
html body main a.academy-pathway__button.academy-pathway__button.academy-pathway__button:hover,
html body main a.academy-pathway__button.academy-pathway__button.academy-pathway__button:focus-visible {
  background: var(--lmb-111111,#dfdfdf);
  border-color: var(--lmb-111111,#dfdfdf);
  color: var(--lmt-ffffff,#121212);
}
/* safety-stock-reorder-point: chart + table live inside .results and kept their light-theme colours */
html body .results .ss-curve h3 { color: var(--lmt-ffffff,#121212); }
html body .results .ss-curve .ss-curve-sub { color: var(--lmt-e6e6e6,#272727); }
html body .results .ss-chart-wrap { background: var(--lmb-161c3c,#6574c3); }
html body .results .ss-lbl { fill: var(--lmt-e6e6e6,#272727); }
html body .results .ss-lbl-now { fill: var(--lmt-ff9aa0,#3d1417); }
html body .results .ss-line { stroke: var(--lmt-ff9aa0,#3d1417); }
html body .results .ss-dot { fill: var(--lmt-ff9aa0,#3d1417); stroke: var(--lmt-6574c3,#6574c3); }
html body .results .ss-mark { stroke: var(--lmt-ff9aa0,#3d1417); }
html body .results .ss-axis,
html body .results .ss-grid { stroke: var(--lmt-8a8fa8,#616472); }
html body .results .ss-table th,
html body .results .ss-table td { border-bottom-color: var(--lmb-616472,#616472); }
html body .results .ss-table th { color: var(--lmt-e6e6e6,#272727); }
html body .results .ss-table td { color: var(--lmt-ffffff,#121212); }
html body .results .ss-table tr.ss-now td { color: var(--lmt-ff9aa0,#3d1417); background: var(--lmb-1d1230,#d0cdd4); }
