/* Kalkulator nieodebranych połączeń — tylko to, czego nie ma w assets/css/tools.css.
   Kolory przez tokeny sub.css, więc jasny i ciemny motyw działają same. */

/* hidden wygrywa z display: grid / flex wspólnych klas */
.tool [hidden] { display: none !important; }

.calls-output { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.calls-head { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

/* duże kwoty (np. 1000 połączeń × 50 000 zł) łamią się zamiast rozpychać ramkę */
.tool-result .tool-stats dd { overflow-wrap: anywhere; }

/* scenariusz 95%, próg opłacalności, wzory */
.calls-block { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding-top: 18px; border-top: 1px solid var(--line); }
.calls-amount { font-family: var(--display); font-size: clamp(26px, 3vw, 34px); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.calls-amount small { font-size: .5em; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.calls-text { font-size: 16px; line-height: 1.55; color: var(--muted); overflow-wrap: anywhere; }
.calls-verdict { color: var(--fg); font-weight: 600; }

.calls-formulas { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.calls-formulas span { color: var(--fg); }

@media (max-width: 900px) {
  .tool-result .tool-stats { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
}
