/* Сгенерировано scripts/build_calcs.py — не править руками. */
.calc-wbo {

  & {
    --bg: #fff; --fg: #1c1c1e; --muted: #6b6b70; --line: #e3e3e8; --field: #f5f5f7;
    --wb: #a3118a; --oz: #005bff; --good: #0a8a3a; --bad: #c62828; --win: #e9f7ee;
  }
    * { box-sizing: border-box; }
  & { max-width: 760px; margin: 0; padding: 12px; background: var(--bg); color: var(--fg);
         font: 13px/1.35 system-ui, -apple-system, "Segoe UI", sans-serif; }
  label { display: flex; flex-direction: column; gap: 3px; color: var(--muted); font-size: 12px; }
  input, select { width: 100%; padding: 3px 7px; border: 1px solid var(--line); border-radius: 6px;
                  background: var(--field); color: var(--fg); font: inherit; }
  input:focus, select:focus { outline: 2px solid var(--oz); outline-offset: -1px; }
  .row { display: grid; grid-template-columns: 1fr 1fr 70px 100px 70px; gap: 8px; margin: 8px 0 10px; }
  table { width: 100%; border-collapse: collapse; table-layout: fixed; }
  th, td { padding: 2px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
  th:first-child, td:first-child { width: 150px; color: var(--muted); }
  th { text-align: left; font-size: 14px; }
  th.wb { color: var(--wb); } th.oz { color: var(--oz); }
  #out td:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
  #out tr.total td { font-weight: 700; font-size: 14px; }
  #out td.win { background: var(--win); }
  .neg { color: var(--bad); } .pos { color: var(--good); }
  small { color: var(--muted); font-size: 11px; }
  /* попап Chrome не выше 600 px — итог прилипает к низу, детали листаются */
  #verdict { position: sticky; bottom: 0; margin: 0; padding: 8px 0; background: var(--bg);
             border-top: 1px solid var(--line); font-size: 15px; font-weight: 700; }
  .hint { margin: 4px 0 0; color: var(--muted); font-size: 11px; }

@media (max-width: 600px) { .row { grid-template-columns: 1fr 1fr; } }

}
