/* Przypomnienie o płatności — 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; }

/* grupy pól: fieldset bez ramki przeglądarki, legend jak nagłówek grupy */
.pp-group { display: flex; flex-direction: column; gap: 18px; min-width: 0; margin: 0; padding: 0 0 20px; border: 0; border-bottom: 1px solid var(--line); }
.pp-group:last-child { padding-bottom: 0; border-bottom: 0; }
.pp-group legend { float: left; width: 100%; padding: 0; margin: 0 0 2px; font-size: 13px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.pp-group legend + * { clear: both; }

/* kalendarz pola daty w kolorach motywu */
.tool-input[type="date"] { min-width: 0; color-scheme: dark; }
:root[data-theme="light"] .tool-input[type="date"] { color-scheme: light; }

/* wynik */
.pp-out { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.pp-stage-line { margin-top: 10px; font-size: 16px; line-height: 1.5; color: var(--fg); }
.pp-missing, .pp-fail { font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.pp-block { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pp-block-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.pp-block-head .tool-btn { min-height: 44px; padding: 8px 18px; }
.pp-block .tool-output { overflow-wrap: anywhere; word-break: break-word; }

/* linia licznika pod SMS-em */
.pp-sms-line { font-size: 15px; line-height: 1.5; color: var(--muted); font-variant-numeric: tabular-nums; }

/* harmonogram: lista, nie tabela, więc na telefonie nic nie wystaje w bok */
.pp-plan { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pp-plan-item { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, 1fr); align-items: baseline; gap: 4px 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); font-size: 15px; line-height: 1.45; }
.pp-plan-what { font-weight: 600; color: var(--fg); }
.pp-plan-when { color: var(--fg); font-variant-numeric: tabular-nums; }
.pp-plan-status { color: var(--muted); text-align: right; }
.pp-past { opacity: .7; }
.pp-today, .pp-next { border-color: var(--accent); }
.pp-next { background: color-mix(in srgb, var(--accent) 12%, var(--bg)); }
.pp-today .pp-plan-status, .pp-next .pp-plan-status { color: var(--fg); font-weight: 600; }

.tool-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.tool-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.tool-check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 900px) {
  .pp-plan-item { grid-template-columns: auto minmax(0, 1fr); }
  .pp-plan-what { grid-column: 1 / -1; }
  .pp-plan-when { white-space: nowrap; }
}
