:root {
  --black: #000;
  --white: #fff;
  --ink: #21272a;
  --gray: #444;
  --muted: #8e8e93;
  --muted-soft: #697077;
  --muted-strong: #4d5358;
  --steel: #4a5560;
  --steel-soft: #4a5a55;
  --line: #e2e4e2;
  --line-soft: #cfd3cf;
  --field-border: #c1c7cd;
  --surface: #f2f2f7;
  --surface-soft: #f7f8f7;
  --surface-cool: #f2f4f8;
  --surface-warm: #f5f6f5;
  --avatar-bg: #e6e8e6;
  --placeholder: #d9d9d9;
  --dot-grey: #b8b8b8;
  --grey-line: #6b6f6b;
  --blue-soft: #cfe6ea;
  --danger: #d51110;
  --danger-alt: #d63638;
  --danger-bg: #fdeceb;
  --warning-bg: #fff8e1;
  --warning-text: #6b5300;
  --pts: #5f8b1f;
  --icon: #343330;
  --map-bg: #275260;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.ts-nav { position: relative; top: 0; z-index: 1100; display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 var(--gutter); background: var(--blue); box-shadow: 0 4px 20px 0 rgba(0, 0, 0, .1); }
.ts-nav.is-sticky { position: fixed; left: 0; right: 0; animation: ts-nav-slide-in .3s ease both; }
body.ts-nav-fixed { padding-top: 64px; }
.ts-nav__logo { align-self: flex-start; display: flex; align-items: center; gap: 16px; height: 80px; padding: 10px 37px 13px 38px; background: var(--green); border-radius: 0 0 30px 30px; box-shadow: 0 4px 4px rgba(0, 0, 0, .25); }
.ts-nav__logo-link { display: flex; align-items: center; } /* każde logo osobny link (BOŚ → witryna główna, Sad → home) — flex kasuje baseline pod img */
.ts-nav__logo-bos { width: 77px; height: 55px; }
.ts-nav__logo-sad { width: 134px; height: 52px; }
.ts-nav__logo-divider { width: 1px; height: 51px; background: rgba(0, 0, 0, .2); flex: none; }

.ts-nav__links { display: flex; align-items: center; gap: 32px; margin: 0; } /* margin:0 — kasuje ul{margin-bottom:1rem} z Bootstrapa (spychał menu w górę) */
.ts-nav__links a { font-family: var(--font-main); font-size: 1rem; line-height: 22px; color: var(--black); }
.ts-nav__links a:hover { text-decoration: underline; }
.ts-nav__user { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-main); font-size: 1rem; line-height: 22px; color: var(--black); text-decoration: none; }
.ts-nav__user-avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--avatar-bg); }
.ts-nav__user:hover span { text-decoration: underline; }

.ts-nav__btn { height: 38px; padding: 0 20px; font-family: var(--font-main); font-size: 1rem; line-height: 22px; }
.ts-nav__burger { display: none; width: 48px; height: 50px; align-items: center; justify-content: center; color: var(--black); }

.mobile-menu { z-index: 2000; }

.mobile-menu__bar .ts-nav__logo--mobile { height: 62px; padding: 10px 24px 13px 27px; border-radius: 0 0 25px 25px; gap: 8px; }
.mobile-menu__bar .ts-nav__logo--mobile .ts-nav__logo-bos { width: 49px; height: 35px; }
.mobile-menu__bar .ts-nav__logo--mobile .ts-nav__logo-sad { width: 90px; height: 35px; }
.mobile-menu__bar .ts-nav__logo--mobile .ts-nav__logo-divider { height: 35px; }

.ts-hero { padding-top: 86px; padding-bottom: 80px; background: var(--white); }
.ts-hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.ts-hero__img { display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 30px; object-fit: cover; }

.ts-notify__info { margin: 0; color: var(--black); }
.ts-notify__form { margin: 0; }
.ts-notify__input { flex: 1 1 auto; min-width: 0; height: 56px; padding: 0 20px; border: 1px solid var(--field-border); border-radius: 30px; font-family: var(--font-main); font-size: 1rem; line-height: 22px; color: var(--black); background: var(--white); }
.ts-notify__input::placeholder { color: rgba(0, 0, 0, .6); }
.ts-notify__input:focus { outline: none; border-color: var(--green); }
.ts-notify__msg { margin: 12px 0 0; font-size: 0.875rem; line-height: 20px; }
.ts-notify__msg.is-ok { color: var(--dark-green); }
.ts-notify__msg.is-error { color: var(--danger); }

.ts-placeholder { background: var(--placeholder); }

.ts-banner { min-height: 50px; display: flex; align-items: center; padding: 0; background: var(--yellow); overflow: hidden; }
.ts-banner__track { display: flex; align-items: center; width: max-content; white-space: nowrap; animation: ts-banner-scroll 40s linear infinite; }
.ts-banner__group { display: flex; align-items: center; }
.ts-banner__unit { display: flex; align-items: center; gap: 20px; padding-right: 64px; }
.ts-banner__unit p { margin: 0; }
.ts-banner__link { text-decoration: underline; }
.ts-banner__link:hover { text-decoration: none; }
.ts-banner:hover .ts-banner__track { animation-play-state: paused; }

.ts-benefits__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.ts-benefits__icon { width: 30px; height: 30px; }

.ts-howto__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.ts-timeline { padding-top: 45px; }
/* d-flex flex-col w markupie */
.ts-timeline__item { display: flex; gap: 45px; align-items: stretch; }
.ts-timeline__marker-label { font-size: 1.125rem; line-height: 25px; white-space: nowrap; }
.ts-timeline__line { width: 1px; flex: 1; min-height: 40px; background: var(--black); }
.ts-timeline__body { padding-bottom: 40px; }
/* d-flex flex-col gap-16 w markupie */
.ts-timeline__img { display: block; width: 100%; height: auto; margin-top: 24px; border-radius: 20px; object-fit: cover; }

.ts-stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }

.card, .card:hover, .card:focus { color: var(--black); }
/* Placeholder karty gdy wpis nie ma obrazka wyróżniającego — logo na tle marki. */
.card__image--placeholder { display: flex; align-items: center; justify-content: center; background: var(--dark-green); }
.card__image--placeholder img { width: 55%; max-width: 180px; height: auto; opacity: .9; }

.ts-cta .container { width: 100%; }

.testimonial__photo.ts-placeholder { display: block; }

.ts-ohero { padding-top: 86px; padding-bottom: 80px; }
.ts-ohero__media { width: 100%; }
.ts-ohero__img { display: block; width: 100%; max-width: 592px; aspect-ratio: 592 / 338; margin: 0 auto; border-radius: 30px; object-fit: cover; }

.ts-etap__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.ts-etap__img { display: block; width: 100%; aspect-ratio: 600 / 640; border-radius: 30px; object-fit: cover; }
.ts-etap__tasks { display: flex; flex-wrap: wrap; gap: 30px; padding: 8px 0; }
.ts-etap__task { flex: 0 1 calc(50% - 15px); min-width: 0; }
.ts-etap--reverse .ts-etap__media { order: -1; }

.ts-terminarz__row { display: grid; grid-template-columns: 1fr 32px 1fr; gap: 48px; }
.ts-terminarz__row > * { grid-row: 1; }
.ts-terminarz__center { grid-column: 2; display: flex; flex-direction: column; align-items: center; }
.ts-terminarz__center-top { width: 1px; height: 24px; background: var(--black); }
.ts-terminarz__center-line { width: 1px; flex: 1; min-height: 24px; background: var(--black); }
.ts-terminarz__dot { width: 15px; height: 15px; border-radius: 50%; background: var(--green); flex: none; }
.ts-terminarz__side { display: flex; flex-direction: column; gap: 32px; padding-top: 16px; padding-bottom: 0; }
.ts-terminarz__side--left { grid-column: 1; text-align: right; }
.ts-terminarz__side--right { grid-column: 3; text-align: left; }
.ts-terminarz__date { font-size: 2.25rem; line-height: 40px; font-weight: 900; }
.ts-terminarz__desc { font-size: 1.125rem; line-height: 25px; }

.ts-map__filter { position: relative; display: inline-block; }
.ts-map__select { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-width: 360px; background-color: transparent; color: var(--white); border: 1px solid rgba(255, 255, 255, .5); border-radius: 12px; padding: 16px 24px; font: inherit; cursor: pointer; transition: border-color .15s ease; }
.ts-map__select:hover { border-color: var(--white); }
.ts-map__select:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.ts-map__chevron { flex: none; transition: transform .2s ease; }
.ts-map__select[aria-expanded="true"] .ts-map__chevron { transform: rotate(180deg); }

.ts-map__menu { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 10; margin: 0; padding: 6px; list-style: none; background: var(--white); border-radius: 12px; box-shadow: 0 18px 40px rgba(18, 58, 49, .28); max-height: 280px; overflow-y: auto; }
.ts-map__menu[hidden] { display: none; }
.ts-map__menu li { margin: 0; }
.ts-map__option { display: block; padding: 11px 16px; border-radius: 8px; color: var(--darkest); text-decoration: none; text-align: left; white-space: nowrap; transition: background-color .12s ease; }
.ts-map__option:hover, .ts-map__option:focus-visible { background: rgba(184, 221, 226, .4); }
.ts-map__option.is-active { background: var(--blue); color: var(--black); font-weight: 400; }
.ts-map__filter.is-loading .ts-map__select { opacity: .6; pointer-events: none; }
.ts-map__area { width: 100%; height: 738px; max-width: 1280px; border-radius: 30px; background: var(--map-bg); overflow: hidden; z-index: 0; }
/* MapLibre (współdzielone z bos2026) — nadpisuje bazowe .tsad-maplibre{height:560px}. */
.ts-map__area.tsad-maplibre { height: 738px; }
.ts-map__area .leaflet-container { font: inherit; height: 100%; }
.leaflet-div-icon.mapa-pin { background: none; border: none; }
.mapa-pin__dot { position: relative; display: block; width: 20px; height: 20px; border-radius: 50%; background: var(--green); border: 3px solid var(--white); box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.mapa-pin__dot::before { content: ''; position: absolute; inset: -3px; border-radius: 50%; box-shadow: 0 0 0 0 rgba(149, 193, 31, .55); animation: mapa-pulse 2.4s ease-out infinite; }
.ts-map__area .leaflet-popup-content-wrapper { border-radius: 16px; box-shadow: 0 18px 40px rgba(18, 58, 49, .28); }
.ts-map__area .leaflet-popup-content { margin: 16px 18px; }
.mapa-popup { display: flex; flex-direction: column; gap: 6px; color: var(--darkest); }
.mapa-popup__title { font-family: var(--font-alt); font-size: 1rem; line-height: 20px; font-weight: 700; }
.mapa-popup__desc { margin: 0; font-size: 0.875rem; line-height: 20px; color: var(--steel-soft); }
.ts-select { display: inline-flex; align-items: center; gap: 16px; height: 40px; padding: 8px 12px; border: 1px solid var(--white); border-radius: 5px; background: transparent; color: var(--white); font-family: var(--font-main); font-size: 1rem; line-height: 22px; }

.ts-patronat .container { gap: 8px; }
.ts-patronat__logo img { display: block; width: auto; }

.ts-faq__grid { display: grid; grid-template-columns: 500px 1fr; gap: 120px; align-items: start; }
.ts-faq__item { border-top: 1px solid #000; }
.ts-faq__item:last-child { border-bottom: 1px solid #000; }
.ts-faq__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 20px 0; text-align: left; }
.ts-faq__head:focus, .ts-faq__head:focus-visible { outline: none !important; box-shadow: none !important; }
.ts-faq__q { font-size: 1.5rem; line-height: 26px; font-weight: 900; }
.ts-faq__icon { flex: none; width: 40px; height: 40px; }
.ts-faq__icon-plus { display: block; }
.ts-faq__icon-minus { display: none; }
.ts-faq__item.is-open .ts-faq__icon-plus { display: none; }
.ts-faq__item.is-open .ts-faq__icon-minus { display: block; }
.ts-faq__body { overflow: hidden; max-height: 0; transition: max-height .3s ease; }
.ts-faq__item.is-open .ts-faq__body { max-height: 400px; }
.ts-faq__a { padding-bottom: 20px; font-size: 1rem; line-height: 22px; }
.ts-faq__a > :last-child { margin-bottom: 0; }

.footer a, .ts-footer-small a { color: var(--white); }
.footer a:hover, .ts-footer-small a:hover { color: var(--white); text-decoration: underline; }
.ts-footer-small { padding: 40px var(--gutter); }
/* Wyrównanie rzędu creditsów: kasujemy domyślny margines akapitów, żeby boczne
   teksty i środkowe menu leżały w jednej linii (items-center). */
.ts-footer-small .footer__credits-row p { margin: 0; }
.ts-footer-small .footer__credits-links { margin: 0; padding: 0; }
/* Newsletter w stopce (tsad-notify) — sukces; .is-error jest w bazie bos2026 */
.newsletter-form__status.is-ok { color: var(--green); }

.ts-auth { position: relative; padding-top: 60px; padding-bottom: 100px; background: var(--white); }
.ts-auth__inner { max-width: 640px; margin: 0 auto; }
.ts-auth__close { position: absolute; top: 52px; right: var(--gutter); display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: var(--black); }
.ts-auth__close:hover { opacity: .6; }

.ts-step { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; line-height: 20px; color: var(--muted); }
.ts-step__num { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--muted); }
.ts-step.is-active { color: var(--black); }
.ts-step.is-active .ts-step__num { border-color: var(--black); background: var(--white); }

.ts-alert { padding: 16px 20px; border-radius: 10px; font-size: 1rem; line-height: 22px; }
.ts-alert--warning { background: var(--warning-bg); border: 1px solid var(--yellow); color: var(--black); }

.ts-pods .pods-form-front { display: flex; flex-direction: column; gap: 24px; margin: 0; }
.ts-pods .pods-field, .ts-pods .pods-form-ui-row { display: flex; flex-direction: column; gap: 8px; }
.ts-pods .pods-field-label label, .ts-pods label.pods-form-ui-label { margin: 0; padding: 0; font-family: var(--font-main); font-size: 1rem; line-height: 22px; font-weight: 400; color: var(--black); }
.ts-pods .pods-form-front input[type="text"], .ts-pods .pods-form-front input[type="email"], .ts-pods .pods-form-front input[type="tel"], .ts-pods .pods-form-front input[type="number"], .ts-pods .pods-form-front input[type="password"], .ts-pods .pods-form-front select, .ts-pods .pods-form-front textarea { width: 100%; min-height: 48px; padding: 12px; border: 1px solid var(--black); border-radius: 10px; font-family: var(--font-main); font-size: 1rem; line-height: 22px; color: var(--black); background: var(--white); }
.ts-pods .pods-form-front select { appearance: none; background-image: url('../svg/icon-chevron-down.svg'); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
.ts-pods .pods-form-front textarea { min-height: 120px; resize: vertical; }
.ts-pods .pods-form-front ::placeholder { color: rgba(0,0,0,.6); opacity: 1; }
.ts-pods .pods-field-comments, .ts-pods .pods-form-ui-comments { font-size: 0.875rem; line-height: 20px; color: var(--gray); }
.ts-pods .pods-form-front .pods-form-ui-error, .ts-pods .pods-form-front label.error { color: var(--danger); font-size: 0.875rem; line-height: 20px; }
.ts-pods .pods-form-front input.error, .ts-pods .pods-form-front select.error { border-color: var(--danger); }
.ts-pods .pods-form-front .pods-submit { display: flex; justify-content: flex-end; margin-top: 8px; }
.ts-pods .pods-form-front input[type="submit"], .ts-pods .pods-form-front button[type="submit"] { display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 30px; border: none; border-radius: 30px; background: var(--green); color: var(--black); font-family: var(--font-main); font-size: 1.125rem; line-height: 25px; cursor: pointer; transition: filter .2s ease; }
.ts-pods .pods-form-front input[type="submit"]:hover, .ts-pods .pods-form-front button[type="submit"]:hover { filter: brightness(.9); }

.ts-auth .field label, .ts-login .field label { display: block; margin-bottom: 8px; font-family: var(--font-main); font-size: 1rem; line-height: 22px; color: var(--black); }

.ts-form { display: flex; flex-direction: column; gap: 24px; }
.ts-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ts-form__row--wide { grid-template-columns: 1.8fr 1fr; }
.ts-field__hint { font-size: 0.875rem; line-height: 20px; color: var(--black); margin-top: 8px; margin-bottom: 0; }
.ts-field { display: flex; flex-direction: column; gap: 8px; }
.ts-field__label { font-family: var(--font-main); font-size: 1rem; line-height: 22px; color: var(--black); }
.ts-form__actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-top: 8px; }
.ts-form__actions--split { justify-content: space-between; }
.ts-form__error { padding: 12px 16px; border-radius: 10px; background: var(--danger-bg); border: 1px solid var(--danger); color: var(--danger); font-size: 0.875rem; line-height: 20px; }
.ts-field-error { margin: 6px 0 0; font-size: 0.875rem; line-height: 20px; color: var(--danger); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--danger); }
.ts-consents.is-invalid {  /* kontener zgód — komunikat dopisywany na końcu */ }
.ts-check.is-invalid .ts-check__box { border-color: var(--danger); }

.ts-toggle { display: inline-flex; gap: 8px; }
.ts-toggle__opt { position: relative; cursor: pointer; }
.ts-toggle__opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.ts-toggle__opt span { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; height: 40px; padding: 0 20px; border: 1px solid var(--black); border-radius: 30px; font-size: 1rem; line-height: 22px; transition: background .2s ease, color .2s ease; }
.ts-toggle__opt input:checked + span { background: var(--green); border-color: var(--green); }

.ts-consents { display: flex; flex-direction: column; gap: 12px; }
.ts-check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.ts-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.ts-check__box { flex: none; display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; border: 1px solid var(--black); border-radius: 5px; background: var(--white); transition: background .2s ease, border-color .2s ease; }
.ts-check__box::after { content: ''; width: 10px; height: 10px; background: var(--white); clip-path: polygon(14% 44%, 0 65%, 43% 100%, 100% 16%, 80% 0, 41% 62%); opacity: 0; }
.ts-check input:checked + .ts-check__box { background: var(--green); border-color: var(--green); }
.ts-check input:checked + .ts-check__box::after { opacity: 1; }
.ts-check__label { font-size: 0.875rem; line-height: 20px; color: var(--black); }
.ts-check__label a { color: inherit; text-decoration: underline; }

body.ts-auth-modal { display: flex; flex-direction: column; min-height: 100vh; }
body.ts-auth-modal .site-content { display: flex; flex-direction: column; flex: 1 0 auto; }

.ts-login { position: relative; z-index: 1200; flex: 1 0 auto; display: flex; align-items: center; justify-content: center; padding: 64px var(--gutter); }
.ts-login::before { content: ''; position: fixed; inset: 0; z-index: -1; background: rgba(0, 0, 0, .6); }
.ts-login__card { position: relative; width: 480px; max-width: 100%; padding: 48px 40px; background: var(--white); border-radius: 30px; box-shadow: 0 24px 64px rgba(0, 0, 0, .12); display: flex; flex-direction: column; gap: 24px; }
/* Szersza karta, gdy zaproszony opiekun uzupełnia też dane i zgody (mini-formularz). */
.ts-login__card--wide { width: 640px; }
.ts-invite { margin-top: 4px; padding-top: 20px; border-top: 1px solid rgba(0, 0, 0, .08); }
.ts-login__close { position: absolute; top: 20px; right: 20px; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; color: var(--black); }
.ts-login__close:hover { opacity: .6; }
.ts-login__forgot { align-self: flex-end; color: var(--muted); }
.ts-login__forgot:hover { color: var(--black); }
.ts-login__submit { align-self: center; margin-top: 8px; }
.ts-login__divider span { font-size: 0.875rem; line-height: 20px; color: var(--black); }
.ts-login__divider::before, .ts-login__divider::after { content: ''; flex: 1; height: 1px; background: var(--black); }

.ts-password { position: relative; }
.ts-password input { padding-right: 44px; }
.ts-password__toggle { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; color: var(--black); }

.ts-alert--error { background: var(--danger-bg); border: 1px solid var(--danger); color: var(--danger); }

.ts-login__notice { display: flex; align-items: center; gap: 10px; padding: 19px; border-radius: 10px; background: var(--blue); color: var(--black); font-size: 14px; line-height: 20px; }
.ts-login__notice svg { flex: none; width: 26px; height: 26px; color: var(--icon); }

.ts-login__sent { display: flex; flex-direction: column; gap: 32px; }
.ts-sent__lead { display: flex; flex-direction: column; gap: 5px; }
.ts-sent__lead p { margin: 0; }
.ts-sent__back { align-self: center; color: var(--black); }
.ts-login__hint { padding: 16px; border-radius: 10px; background: rgba(184, 221, 226, .45); font-size: .875rem; line-height: 20px; text-align: center; }

.ts-pass-rules { list-style: none; margin: 8px 0 0; padding: 0; }
.ts-pass-rules li { position: relative; padding-left: 24px; color: var(--muted-soft); }
.ts-pass-rules li + li { margin-top: 4px; }
.ts-pass-rules li::before { content: ''; position: absolute; left: 0; top: 3px; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--field-border); }
.ts-pass-rules li.is-ok { color: var(--dark-green); }
.ts-pass-rules li.is-ok::before { border-color: var(--dark-green); background: var(--dark-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12l4 4 10-10' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat; }

.ts-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-start; justify-content: center; padding: 20px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.ts-modal[hidden] { display: none; }
.ts-modal__backdrop { position: fixed; inset: 0; background: rgba(18, 58, 49, .5); }
.ts-modal__box { position: relative; margin: auto; width: 420px; max-width: 100%; padding: 40px 32px 32px; background: var(--white); border-radius: 24px; box-shadow: 0 24px 64px rgba(0, 0, 0, .2); display: flex; flex-direction: column; gap: 12px; }
.ts-modal__close { position: absolute; top: 16px; right: 16px; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: none; background: none; color: var(--black); cursor: pointer; }
.ts-modal__box h2 { margin: 0; }
.ts-modal__box > p { margin: 0; color: var(--gray); }
.ts-modal__actions { display: flex; gap: 12px; justify-content: center; margin-top: 12px; }

.ts-btn--outline { background: transparent; border: 1px solid var(--green); color: var(--black); }
.ts-btn--outline:hover { background: rgba(149, 193, 31, .12); }

.ts-modal--confirm { z-index: 2500; }
/* nad sticky navem (1100) i dolnym paskiem (1500) */
.ts-modal--confirm .ts-modal__box { width: 480px; padding: 48px; gap: 24px; text-align: center; }
.ts-modal--confirm .ts-modal__box h2 { line-height: 32px; }
.ts-modal--confirm .ts-modal__box > p { color: var(--black); line-height: 25px; }
.ts-modal--confirm .ts-modal__actions { margin-top: 8px; gap: 16px; }
/* 8 + gap 24 = 32px od tekstu */

.ts-chooser__wrap { display: flex; flex-direction: column; gap: 32px; min-height: 451px; }
.ts-chooser__head p, .ts-chooser__head h1 { margin: 0; }
.ts-chooser__list { flex: 1 1 auto; display: flex; flex-direction: column; gap: 24px; }
.ts-chooser__item { display: flex; align-items: center; gap: 16px; color: var(--black); }
.ts-chooser__avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; }
.ts-chooser__avatar--green { background: var(--green); }
.ts-chooser__avatar--blue { background: var(--blue); }
.ts-chooser__avatar--yellow { background: var(--yellow); }
.ts-chooser__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.ts-chooser__name { font-size: 16px; line-height: 22px; font-weight: 700; }
.ts-chooser__sub { font-size: 14px; line-height: 20px; }
.ts-chooser__arrow { flex: none; color: var(--black); }
.ts-chooser__item:hover .ts-chooser__name { text-decoration: underline; }
.ts-chooser__btn { align-self: center; margin-top: auto; }

.ts-thankyou { display: flex; align-items: center; justify-content: center; min-height: 60vh; padding: 0 var(--gutter) 100px; background: var(--white); }
.ts-thankyou__inner { max-width: 720px; }
.ts-thankyou__inner p { color: var(--black); max-width: 650px; margin-left: auto; margin-right: auto; }
.ts-thankyou__img { display: block; width: 100%; max-width: 290px; height: auto; margin: 2rem auto; }

/* Sticky footer w panelu: body wypełnia ekran, .ts-panel rośnie → stopka zawsze na dole
   (bez białego tła body pod stopką przy krótkim contencie). */
body.ts-app { display: flex; flex-direction: column; min-height: 100vh; }
body.ts-app .ts-panel { flex: 1 0 auto; }
.ts-panel { background: var(--white); padding-top: 84px; }
.ts-panel__grid { display: grid; grid-template-columns: 300px 1fr; border-top: 1px solid var(--black); }
.ts-panel__side { padding: 40px 40px 40px 0; }
.ts-panel__main { min-width: 0; border-left: 1px solid var(--black); padding: 40px 0 80px 40px; }
.ts-panel__toggle { display: none; }

.ts-side__avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--avatar-bg); }
.ts-side__headtext { min-width: 0; }
.ts-side__name { margin-bottom: 4px; }
.ts-side__meta { margin: 0; }
.ts-side__item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; font-size: 1rem; line-height: 22px; color: var(--black); }
.ts-side__icon { flex: none; width: 24px; height: 24px; }
.ts-side__item:hover { background: rgba(184, 221, 226, .4); }
.ts-side__item.is-active, .ts-side__group.is-active > .ts-side__item { background: var(--blue); }
/* Figma: aktywny = tło var(--blue), tekst w400 */
.ts-side__item--group .ts-side__chev-hit { position: relative; z-index: 1; cursor: pointer; flex: none; display: inline-flex; align-items: center; justify-content: center; margin: -6px -6px -6px auto; padding: 6px; border-radius: 6px; }
.ts-side__item--group .ts-side__chev-hit:hover { background: rgba(0, 0, 0, .06); }
.ts-side__item--group .ts-side__chev { display: block; transition: transform .2s ease; }
.ts-side__group.is-collapsed .ts-side__chev { transform: rotate(-90deg); }
.ts-side__group.is-collapsed .ts-side__sub { display: none; }
.ts-side__sub { padding-left: 46px; }
/* d-flex flex-col w markupie */
.ts-side__subitem { padding: 8px 0; font-size: 1rem; line-height: 22px; color: var(--muted); }
.ts-side__subitem:hover { color: var(--black); }
.ts-side__subitem.is-active { color: var(--black); font-weight: 700; }

.ts-stage__bar { border: 0.5px solid var(--black); }
.ts-stage__bar-main { min-width: 0; }
/* d-flex flex-col gap-4 w markupie */
.ts-stage__bar-title { font-family: var(--font-main); font-size: 1.125rem; line-height: 20px; font-weight: 900; color: var(--ink); }
.ts-stage__bar-sub { color: var(--ink); }
.ts-stage__criteria-link { display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; padding: 0; border: none; background: none; font-family: var(--font-main); font-size: 1rem; line-height: 22px; color: var(--black); text-decoration: none; cursor: pointer; }
.ts-stage__criteria-link:hover { opacity: .65; }
.ts-stage__criteria-label { text-decoration: underline; }
.ts-stage__criteria-chevron { flex: none; transition: transform .2s ease; }
.ts-stage__criteria-link[aria-expanded="true"] .ts-stage__criteria-chevron { transform: rotate(180deg); }
.ts-stage__criteria { margin-top: 12px; }
.ts-stage__bar-meta { font-size: 1rem; line-height: 22px; color: var(--ink); white-space: nowrap; }
.ts-stage.is-locked .ts-stage__bar { background: var(--surface); border-color: transparent; color: var(--muted); }
.ts-stage.is-locked .ts-stage__bar-title { color: var(--muted); }

.ts-tasks__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.ts-task { padding: 20px 16px; border: 0.5px solid var(--black); }
.ts-task.is-locked { background: var(--surface); border-color: transparent; color: var(--muted); }
.ts-task__btn { align-self: flex-start; }
.ts-task__name { margin-bottom: 0; }
.ts-task__status { display: flex; align-items: center; margin-bottom: 8px; }
.ts-task__missing { margin: -8px 0 0; color: var(--muted-soft); }
.ts-task__desc { margin: 0; color: var(--muted-soft); }
.ts-task__locked { display: flex; align-items: center; margin: 0; color: var(--muted); }
.ts-task--ready { border-color: var(--green); }

.ts-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; flex: none; }
.ts-dot--green { background: var(--green); }
.ts-dot--yellow { background: var(--yellow); }
.ts-dot--blue { background: var(--blue); }
.ts-dot--grey { background: var(--dot-grey); }

.ts-stage__report { border: 0.5px solid var(--black); }
.ts-stage__report--ready { border-color: var(--green); background: rgba(149, 193, 31, .12); }
.ts-stage__report-sub { color: var(--ink); }
.ts-stage__assess { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--black); }
.ts-stage__assess-title { margin: 0; }
.ts-stage__assess-intro { margin: 4px 0 0 0; color: var(--ink); }

.ts-criteria__list { list-style: none; margin: 8px 0 0; padding: 0; }
.ts-criteria__row { padding: 16px 0; border-bottom: 1px solid var(--black); }
.ts-criteria__row:last-child { border-bottom: none; }
.ts-criteria__name { min-width: 0; }
.ts-criteria__name-wrap { min-width: 0; }
.ts-criteria__desc { color: var(--ink); opacity: .75; }
.ts-criteria__pts { flex: none; color: var(--black); white-space: nowrap; }
.ts-criteria__total { margin-top: 12px; padding-bottom: 8px; }

.ts-modal--welcome { z-index: 2500; }
.ts-modal--welcome .ts-modal__box { width: 520px; max-width: 100%; padding: 48px; gap: 0; text-align: left; }
.ts-welcome .ts-welcome__title { margin: 0 0 10px; font-size: 1.5rem; line-height: 31px; font-weight: 900; color: var(--black); }
.ts-welcome .ts-welcome__sub { margin: 0 0 20px; font-size: 0.75rem; line-height: 18px; font-weight: 400; color: var(--muted-soft); }
.ts-welcome .ts-welcome__lead { margin: 0 0 20px; font-size: 1rem; line-height: 22px; color: var(--black); }
.ts-welcome .ts-welcome__box { padding: 16px 20px; background: var(--blue-soft); border-radius: 16px; }
.ts-welcome .ts-welcome__box + .ts-welcome__box { margin-top: 12px; }
.ts-welcome .ts-welcome__box-title { margin: 0; font-size: 1rem; line-height: 22px; font-weight: 700; color: var(--black); }
.ts-welcome .ts-welcome__box-title--center { text-align: center; }
.ts-welcome .ts-welcome__list { margin: 10px 0 0; padding-left: 22px; font-size: 0.875rem; line-height: 20px; list-style: disc; list-style-position: outside; color: var(--black); }
.ts-welcome .ts-welcome__list li + li { margin-top: 8px; }
.ts-welcome .ts-welcome__list a, .ts-welcome .ts-welcome__box-text a { color: inherit; text-decoration: underline; }
.ts-welcome .ts-welcome__box-text { margin: 8px 0 0; font-size: 0.875rem; line-height: 20px; color: var(--black); }
.ts-welcome__actions { margin-top: 28px; }
/* d-flex items-center justify-center gap-24 w markupie */
.ts-welcome__skip { border: none; background: none; padding: 0; font-family: var(--font-main); font-size: 1rem; line-height: 22px; color: var(--black); text-decoration: underline; cursor: pointer; }

.ts-btn--ghost { background: var(--avatar-bg); color: var(--black); }
.ts-btn--ghost:hover { filter: brightness(.95); }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; filter: none; }

.ts-task-head h1 { margin-bottom: 16px; }
.ts-task-head__row { border: 0.5px solid var(--black); }
.ts-task-head__row p { margin: 0; font-weight: 700; color: var(--ink); }

.ts-tabs { display: flex; gap: 32px; margin: 0 0 32px; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.ts-tabs .ts-tabs__item { margin: 0; }
.ts-tabs .ts-tabs__link { display: block; padding: 12px 4px; margin-bottom: -1px; color: var(--muted); font-family: var(--font-main); font-size: 1rem; line-height: 22px; background: none; border: none; border-bottom: 2px solid transparent; border-radius: 0; }
.ts-tabs .ts-tabs__link:hover { color: var(--black); background: none; border-color: transparent; }
.ts-tabs .ts-tabs__link.active { color: var(--black); font-weight: 700; background: none; border: none; border-bottom: 3px solid var(--black); }

.ts-tabpanes .post-excerpt, .ts-tabpanes .post-content blockquote { display: flex; align-items: flex-start; gap: 16px; padding: 16px 20px; margin: 20px 0; border: none; border-radius: 10px; background: var(--blue-soft); color: var(--ink); font-size: 1rem; line-height: 22px; }
.ts-tabpanes .post-excerpt { margin: 0 0 24px; }
.ts-tabpanes .post-excerpt::before, .ts-tabpanes .post-content blockquote::before { content: ''; flex: none; width: 26px; height: 26px; margin-top: -1px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26' fill='none'%3E%3Ccircle cx='13' cy='13' r='10' stroke='%23343330' stroke-width='2'/%3E%3Cpath d='M13 8v6' stroke='%23343330' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='13' cy='17.5' r='1.3' fill='%23343330'/%3E%3C/svg%3E") center / contain no-repeat; }
.ts-tabpanes .post-excerpt p, .ts-tabpanes .post-content blockquote p { margin: 0; }
.ts-tabpanes .post-content h2 { font-size: 1.5rem; line-height: 31px; font-weight: 900; margin: 24px 0 12px; }
.ts-tabpanes .post-content h3 { font-size: 1.25rem; line-height: 28px; font-weight: 700; margin: 20px 0 8px; }
.ts-tabpanes .post-content p { font-size: 1rem; line-height: 24px; margin-bottom: 12px; }
.ts-tabpanes ul:not([class]), .ts-tabpanes ol:not([class]) { padding-left: 24px; margin-bottom: 12px; list-style-position: outside; }
.ts-tabpanes ul:not([class]) { list-style: disc; }
.ts-tabpanes ol:not([class]) { list-style: decimal; }
.ts-tabpanes ul:not([class]) li, .ts-tabpanes ol:not([class]) li { margin-bottom: 4px; }
.ts-tabpanes .post-content, .ts-tabpanes .post-excerpt { overflow-wrap: break-word; }

.ts-doclist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ts-doclist__row { display: flex; align-items: center; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.ts-doclist__ext { flex: none; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; }
.ts-doclist__ext img { width: 24px; height: 24px; }
.ts-doclist__body { flex: 1 1 auto; min-width: 0; }
.ts-doclist__title { margin: 0 0 2px; }
.ts-doclist__desc { margin: 0; }
.ts-doclist__btn { flex: none; display: inline-flex; align-items: center; }

.ts-download-btn { height: 40px; padding: 8px 20px; gap: 12px; }
.ts-download-btn img { flex: none; width: 24px; height: 24px; }

.ts-diplomas__head p { margin: 0; }
.ts-diplomas__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ts-diploma { align-items: center; text-align: center; }
.ts-diploma__file { justify-content: center; }
.ts-diploma__file img { flex: none; }
.ts-diploma__file span { margin: 0; min-width: 0; }
.ts-diploma .ts-download-btn { align-self: center; }

.ts-tl__etap { margin: 0 0 16px; }
.ts-tl { list-style: none; margin: 0; padding: 0; }
.ts-tl__item { display: grid; grid-template-columns: 16px 1fr; gap: 24px; }
.ts-tl__marker { position: relative; display: flex; justify-content: center; }
.ts-tl__line { position: absolute; top: 0; bottom: -8px; width: 1px; background: var(--line-soft); }
.ts-tl__item:last-child .ts-tl__line { display: none; }
.ts-tl__dot { position: relative; z-index: 1; width: 14px; height: 14px; margin-top: 6px; border-radius: 50%; background: var(--blue); flex: none; }
.ts-tl__dot--done { background: var(--green); }
.ts-tl__dot--current { background: var(--yellow); }
.ts-tl__body { padding-bottom: 28px; }
.ts-tl__date { margin: 0 0 4px; }
.ts-tl__title { margin: 0; }
/* d-flex items-center flex-wrap gap-12 w markupie */
.ts-tl__desc { margin: 6px 0 0; }
.ts-tl__badge { display: inline-flex; align-items: center; height: 24px; padding: 0 12px; border-radius: 30px; font-family: var(--font-main); font-size: .8125rem; line-height: 1; font-weight: 400; white-space: nowrap; }
.ts-tl__badge--done { background: var(--dark-green); color: var(--white); }
.ts-tl__badge--current { background: var(--yellow); color: var(--black); }
.ts-tl__badge--upcoming { background: var(--blue); color: var(--ink); }
.ts-tl__dot--upcoming { background: var(--blue); }

.ts-tl-banner { display: flex; align-items: center; gap: 16px; padding: 16px 20px; margin-bottom: 32px; border-radius: 10px; background: var(--yellow); color: var(--ink); }
.ts-tl-banner__icon { flex: none; }
.ts-tl-banner__label { display: block; letter-spacing: .04em; text-transform: uppercase; opacity: .8; }
.ts-tl-banner__text { margin: 2px 0 0; }

.ts-tl__group.is-locked { opacity: .55; }
.ts-tl__group.is-locked .ts-tl__dot { background: var(--dot-grey); }

.ts-result-you { padding: 24px 32px; background: var(--blue-soft); color: var(--ink); }
.ts-result-you__label { display: block; letter-spacing: .06em; margin-bottom: 8px; }
.ts-result-you__name { margin: 0 0 4px; }
.ts-result-you__stat span { color: var(--steel); }
/* strong dziedziczy var(--ink) z .ts-result-you */

.ts-result-caption { margin: 0 0 12px; }

.ts-table-wrap { overflow-x: auto; border: 1px solid var(--field-border); }
/* radius-10 w markupie */
.ts-table { width: 100%; border-collapse: collapse; }
.ts-table th { text-align: left; font-family: var(--font-main); font-size: 1rem; line-height: 22px; font-weight: 700; color: var(--ink); padding: 16px; background: var(--surface); border-bottom: 1px solid var(--line); white-space: nowrap; }
.ts-table td { font-size: 1rem; line-height: 22px; padding: 18px 16px; border-bottom: 1px solid var(--line); color: var(--ink); }
.ts-table tr:last-child td { border-bottom: none; }
.ts-table tr.is-mine td { background: var(--yellow); font-weight: 700; }

.ts-results-dl { padding: 20px 0; border-top: 1px solid var(--line); }
.ts-results-dl__label { color: var(--ink); }
/* d-inline-flex items-center gap-12 fs-16 lh-22 w markupie */
.ts-results-dl__btn { color: var(--ink); text-decoration: none; cursor: pointer; }
/* d-inline-flex items-center gap-8 ff-main fs-16 lh-22 w markupie */
.ts-results-dl__btn:hover { text-decoration: underline; }
.ts-results-dl__btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

.ts-account .field label { display: block; margin-bottom: 8px; font-family: var(--font-main); font-size: 1rem; line-height: 22px; color: var(--black); }
.ts-account .field input[readonly] { background: var(--surface-warm); color: var(--grey-line); cursor: not-allowed; }
.ts-account .ts-form__row--wide { grid-template-columns: 1fr 1fr; }
.field__hint { margin: 8px 0 0; }
.ts-acc-sec { padding: 32px 0; border-top: 1px solid var(--black); }
.ts-acc-sec:first-of-type { border-top: none; padding-top: 0; }
.ts-acc-sec__title { margin: 0 0 24px; }
.ts-acc-save { align-self: flex-start; }

.ts-avatar__pic { position: relative; flex: none; width: 100px; height: 100px; }
.ts-avatar__img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; background: var(--green); }
.ts-avatar__cam { position: absolute; right: -2px; bottom: -2px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--white); border-radius: 50%; background: var(--blue); color: var(--icon); cursor: pointer; }
.ts-avatar__cam:hover { filter: brightness(.95); }
.ts-avatar p { margin: 0; }
.ts-avatar__btn { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 20px; border: 1px solid var(--green); border-radius: 30px; background: transparent; font-family: var(--font-main); font-size: 1rem; line-height: 22px; color: var(--black); cursor: pointer; transition: background .2s ease; }
.ts-avatar__btn:hover { background: rgba(149, 193, 31, .12); }
.ts-avatar__remove { height: 38px; padding: 0 12px; border: none; background: none; font-family: var(--font-main); font-size: .875rem; line-height: 20px; color: var(--danger); cursor: pointer; }
.ts-avatar__remove:hover { text-decoration: underline; }
.ts-avatar__remove[hidden] { display: none; }

.ts-note { color: var(--ink); }
.ts-note svg { flex: none; width: 32px; height: 32px; color: var(--icon); }

.ts-people { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ts-people__row { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--black); border-radius: 10px; }
.ts-people__avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--avatar-bg); }
.ts-people__body { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px; }
.ts-people__info { flex: 1 1 auto; min-width: 0; }
.ts-people__row p { margin: 0; }
.ts-people__meta { flex: none; display: flex; align-items: center; gap: 12px; }
.ts-people__status { flex: none; font-size: .875rem; line-height: 17px; font-weight: 700; color: var(--black); white-space: nowrap; }
.ts-people__del { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 24px; height: 24px; padding: 0; border: none; border-radius: 30px; background: none; color: var(--black); cursor: pointer; }
.ts-people__del:hover { color: var(--danger); }
.ts-people__del-label { display: none; }

.ts-acc-sub { border-top: 1px solid var(--black); }
.ts-acc-sub h3 { margin: 0 0 4px; }
.ts-acc-sub .ts-form { margin-top: 16px; }
.ts-form--inline { flex-direction: row; align-items: flex-end; gap: 10px; }
.ts-form--inline .field { flex: 1 1 auto; }

.ts-msg { padding: 14px 18px; margin-bottom: 24px; border-radius: 10px; font-size: 1rem; line-height: 22px; scroll-margin-top: 84px; }
.ts-msg--ok { background: rgba(1, 128, 67, .1); border: 1px solid var(--dark-green); color: var(--dark-green); }
.ts-msg--error { background: var(--danger-bg); border: 1px solid var(--danger); color: var(--danger); }

.ts-loader { position: fixed; inset: 0; z-index: 3000; display: none; align-items: center; justify-content: center; background: rgba(18, 58, 49, .5); }
.ts-loader.is-active { display: flex; }
.ts-loader__spinner { width: 56px; height: 56px; border: 5px solid rgba(255, 255, 255, .35); border-top-color: var(--white); border-radius: 50%; animation: ts-spin .8s linear infinite; }

.ts-bottomnav { display: none; }
.ts-moresheet[hidden] { display: none; }

.ts-rform { display: flex; flex-direction: column; gap: 24px; }

.ts-rform__progress { display: flex; flex-direction: column; gap: 10px; }
.ts-rform__progress-head { display: flex; align-items: baseline; justify-content: space-between; font-size: 1rem; line-height: 22px; color: var(--ink); }
.ts-rform__bar { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.ts-rform__bar-fill { display: block; height: 100%; background: var(--green); border-radius: 2px; }

.ts-rform__scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ts-rform__score { padding: 20px; border-radius: 10px; background: var(--blue-soft); }
.ts-rform__score b { display: block; font-size: 1.5rem; line-height: 31px; font-weight: 900; color: var(--ink); margin-bottom: 2px; }
.ts-rform__score span { font-size: 1rem; line-height: 22px; color: var(--ink); }

.ts-rform__section { display: flex; gap: 16px; }
.ts-rform__num { flex: none; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-top: 2px; border: 1.5px solid var(--black); border-radius: 50%; font-size: .875rem; font-weight: 700; color: var(--black); }
.ts-rform__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ts-rform__title { margin: 0; font-size: 1.125rem; line-height: 24px; font-weight: 900; color: var(--ink); }
.ts-rform__desc { margin: 0; font-size: 1rem; line-height: 22px; color: var(--ink); }

.ts-rform__editor { border: 1px solid var(--black); border-radius: 10px; overflow: hidden; }
.ts-rform__toolbar { display: flex; gap: 4px; padding: 10px 12px; background: var(--surface); border-bottom: 1px solid var(--field-border); }
.ts-rform__tool { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: none; background: none; border-radius: 6px; color: var(--ink); cursor: pointer; }
.ts-rform__tool:hover, .ts-rform__tool.is-active { background: var(--white); }
.ts-rform__area { min-height: 120px; padding: 16px; font-size: 1rem; line-height: 24px; color: var(--ink); outline: none; }
.ts-rform__area ul, .ts-rform__area ol { padding-left: 22px; margin: 0; }
.ts-rform__area:empty::before { content: attr(data-placeholder); color: var(--muted); }
.ts-rform__counter { align-self: flex-end; font-size: .875rem; line-height: 20px; color: var(--muted); }

.ts-rform__drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 40px 20px; border: 1px solid var(--black); border-radius: 10px; text-align: center; background: var(--white); cursor: pointer; transition: background .15s ease; }
.ts-rform__drop:hover { background: var(--surface-soft); }
.ts-rform__drop svg { width: 28px; height: 28px; color: var(--ink); }
.ts-rform__drop span { font-size: 1rem; line-height: 22px; color: var(--ink); }

.ts-rform__group { margin: 8px 0 4px; font-size: 1.125rem; line-height: 24px; font-weight: 900; color: var(--ink); }

.ts-rform__progress-meta { display: inline-flex; align-items: baseline; gap: 12px; }

.ts-rspo__row { position: relative; display: block; }
.ts-rspo__row > input { width: 100%; }
.ts-rspo__spinner { display: none; position: absolute; top: 50%; right: 14px; transform: translateY(-50%); width: 18px; height: 18px; border: 2px solid var(--green); border-right-color: transparent; border-radius: 50%; animation: ts-rspo-spin .7s linear infinite; pointer-events: none; }
.ts-rspo.is-loading .ts-rspo__spinner { display: block; }
.ts-rspo.is-loading .ts-rspo__row > input { padding-right: 42px; }
.ts-rspo__status { margin-top: 8px; }
.ts-rspo__status:empty { display: none; margin: 0; }
.ts-rspo__status.is-loading { color: var(--muted-strong); }
.ts-rspo__status.is-ok { color: var(--dark-green, var(--dark-green)); }
.ts-rspo__status.is-warn { color: var(--warning-text); }
.ts-rspo__status.is-error { color: var(--danger-alt); }

/* ============================================================
   ANIMACJE (@keyframes)
   ============================================================ */
@keyframes ts-nav-slide-in {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}
@keyframes ts-banner-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes mapa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(149, 193, 31, .5); }
  70% { box-shadow: 0 0 0 16px rgba(149, 193, 31, 0); }
  100% { box-shadow: 0 0 0 0 rgba(149, 193, 31, 0); }
}
@keyframes ts-spin {
  to { transform: rotate(360deg); }
}
@keyframes ts-rspo-spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

/* ============================================================
   RESPONSYWNE (@media)
   ============================================================ */
@media (min-width: 768px) {
  .ts-benefits, .ts-howto, .ts-stats, .ts-opinie, .ts-ohero, .ts-patronat { display: flex; flex-direction: column; justify-content: center; }
  .ts-benefits { min-height: 800px; }
  .ts-howto { min-height: 900px; }
  .ts-stats { min-height: 800px; }
  .ts-opinie { min-height: 800px; }
  .ts-ohero { min-height: 800px; }
  .ts-patronat { min-height: 800px; }
}

@media (max-width: 1240px) {
  .ts-faq__grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 1024px) {
  .ts-nav { height: 50px; padding: 0 12px 0 20px; position: sticky; top: 0; }
  body.ts-nav-fixed { padding-top: 0; }
  .ts-nav__logo { height: 62px; padding: 10px 24px 13px 27px; border-radius: 0 0 25px 25px; gap: 8px; }
  .ts-nav__logo-bos { width: 49px; height: 35px; }
  .ts-nav__logo-sad { width: 90px; height: 35px; }
  .ts-nav__logo-divider { height: 35px; }
  .ts-nav__right { display: none !important; }
  /* !important: chroni przed .d-flex z utilities */
  .ts-nav__burger { display: flex !important; }

  .ts-hero__grid, .ts-howto__grid, .ts-etap__grid { grid-template-columns: 1fr; gap: 48px; }
  .ts-etap--reverse .ts-etap__media { order: 1; }
  .ts-benefits__grid { grid-template-columns: 1fr; }
  .ts-stats__grid { grid-template-columns: 1fr; }

  .ts-panel__grid { grid-template-columns: 1fr; }
  .ts-panel__side { padding: 16px 0; border-bottom: 1px solid var(--black); }
  .ts-panel__main { border-left: none; padding: 24px 0 64px; }
  .ts-panel__toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 8px 0; font-family: var(--font-main); font-size: 1rem; font-weight: 700; }
  .ts-panel__side-inner { display: none; padding-top: 16px; }
  .ts-panel__side.is-open .ts-panel__side-inner { display: block; }
  .ts-tasks__grid { grid-template-columns: 1fr; }
  .ts-rform__scores { grid-template-columns: 1fr; }
  .ts-rform__save { bottom: 70px; }
  /* nad dolnym paskiem nawigacji panelu */
  .ts-stage__bar-row, .ts-stage__report-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .ts-panel__title { font-size: 2.25rem; line-height: 40px; }
}

/* ============================================================
   BLOK PLIKU (Gutenberg) — jak lista Materiałów (.ts-doclist):
   ikona typu pliku + nazwa (bold) + zielony przycisk „Pobierz",
   wiersze oddzielone linią. Wpisy (.article__body) i strony
   statyczne (.statut__body).
   ============================================================ */
.article__body .wp-block-file, .statut__body .wp-block-file { display: flex; align-items: center; gap: 24px; margin: 0 0 1rem; padding: 20px 0; border-top: 1px solid #e2e4e2; border-bottom: 1px solid #e2e4e2; }
.article__body .wp-block-file:last-of-type, .statut__body .wp-block-file:last-of-type { border-bottom: 1px solid #e2e4e2; }
.article__body .wp-block-file::before, .statut__body .wp-block-file::before { content: ""; flex: none; width: 24px; height: 24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M14 3H7a2 2 0 00-2 2v14a2 2 0 002 2h10a2 2 0 002-2V8l-5-5z' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M14 3v5h5' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.article__body .wp-block-file > a:not(.wp-block-file__button), .statut__body .wp-block-file > a:not(.wp-block-file__button) { flex: 1 1 0; min-width: 0; font-size: 1.125rem; line-height: 20px; font-weight: 900; color: #000; text-decoration: none; }
.article__body .wp-block-file .wp-block-file__button, .statut__body .wp-block-file .wp-block-file__button { flex: none; display: inline-flex; align-items: center; gap: 12px; height: 40px; padding: 8px 20px; background: var(--green); border-radius: 30px; font-family: var(--font-alt); font-size: 1rem; line-height: 24px; font-weight: 400; color: #000; text-decoration: none; transition: filter .2s ease; }
.article__body .wp-block-file .wp-block-file__button::before, .statut__body .wp-block-file .wp-block-file__button::before { content: ""; flex: none; width: 24px; height: 24px; background: url("../svg/arrow-line-down.svg") center / contain no-repeat; }
.article__body .wp-block-file .wp-block-file__button:hover, .statut__body .wp-block-file .wp-block-file__button:hover { filter: brightness(.9); color: #000; }

@media (max-width: 767px) {
  /* Blok pliku — na mobile: ikona przy górze obok tytułu, nazwa zawija się,
     a przycisk „Pobierz" ląduje pod spodem na całą szerokość. */
  .article__body .wp-block-file, .statut__body .wp-block-file { flex-wrap: wrap; align-items: flex-start; gap: 12px 16px; }
  .article__body .wp-block-file .wp-block-file__button, .statut__body .wp-block-file .wp-block-file__button { width: 100%; margin-left: 0; justify-content: center; }
  .ts-login { align-items: flex-start; justify-content: flex-start; padding: 0; background: var(--white); z-index: auto; }
  .ts-login::before { display: none; }
  .ts-login__card { width: 100%; max-width: none; padding: 64px 20px 48px; border-radius: 0; box-shadow: none; }
  .ts-auth { padding-top: 32px; }
  .ts-login__close { top: 24px; right: 20px; }
  .ts-chooser__wrap { min-height: 60vh; }

  /* Strona główna — pełna szerokość na mobile: kasujemy boczny padding sekcji */
  .home .section-x { padding-left: 0; padding-right: 0; }

  .ts-hero { padding-top: 64px; padding-bottom: 64px; }
  .ts-hero__grid { gap: 48px; }
  .ts-hero__img { max-height: 350px; }

  /* Pasek pod hero — na mobile przewija się tak samo jak na desktopie (ticker),
     więc nie nadpisujemy reguł bazowych (poziomy scroll + animacja). */

  .ts-benefits__col { align-items: center; text-align: center; }

  .ts-timeline { padding-top: 0; }
  /* „Jak to działa" — treść wyśrodkowana, linie między etapami ukryte, ciaśniejsze odstępy */
  .ts-howto__col { text-align: center; }
  .ts-timeline__line { display: none; }
  .ts-timeline__item { gap: 24px; }

  /* Statystyki — nagłówek do lewej, liczby bez lewej kreski */
  .ts-stats__head { align-items: flex-start; text-align: left; margin-left: 0; margin-right: 0; }
  .stat { border-left: none; }

  .ts-cta { min-height: 0; padding-top: 172px; padding-bottom: 172px; }
  .ts-cta__inner { flex-direction: column; align-items: flex-start; }

  .ts-etap__task { flex-basis: 100%; }

  /* „O projekcie" — pełna szerokość na mobile (kasujemy boczny padding sekcji) */
  .page-template-page-o-projekcie .section-x { padding-left: 0; padding-right: 0; }
  .ts-etap__img { max-height: 350px; }
  .ts-etap__period { margin-bottom: 0; }

  .ts-terminarz__row { grid-template-columns: 32px 1fr; gap: 20px; }
  .ts-terminarz__center { grid-column: 1; }
  .ts-terminarz__side--left, .ts-terminarz__side--right { grid-column: 2; text-align: left; align-items: flex-start; }
  .ts-terminarz__side { gap: 24px; }
  .ts-terminarz__date { font-size: 1.5rem; line-height: 30px; }

  .ts-doclist__row { flex-wrap: wrap; gap: 12px 16px; }
  .ts-doclist__btn { width: 100%; justify-content: center; }

  .ts-diplomas__grid { grid-template-columns: 1fr; }

  .ts-result-you { flex-direction: column; align-items: flex-start; gap: 20px; }
  .ts-result-you__stats { gap: 32px; width: 100%; }
  .ts-results-dl { flex-direction: column; align-items: flex-start; gap: 12px; }

  .ts-form__row, .ts-account .ts-form__row--wide { grid-template-columns: 1fr; }
  .ts-form--inline { flex-direction: column; align-items: stretch; }

  .ts-people__row { align-items: flex-start; }
  .ts-people__body { flex-direction: column; align-items: stretch; gap: 11px; }
  .ts-people__meta { justify-content: space-between; align-items: center; border-top: 1px solid var(--black); padding-top: 10px; flex-wrap: wrap; gap: 8px 12px; }
  .ts-people__del { width: auto; height: 40px; padding: 8px 20px; margin-left: auto; background: var(--blue); color: var(--black); }
  .ts-people__del:hover { color: var(--black); filter: brightness(.95); }
  .ts-people__del-label { display: inline; font-family: var(--font-main); font-size: 1rem; line-height: 22px; }

  .ts-panel { padding: 44px 0 0; }
  /* 44px odstęp pod navem (Figma); BEZ bocznego paddingu — section-x wyłączony */
  .ts-panel__grid { border-top: none; }
  .ts-panel__side, .ts-panel__toggle { display: none; }
  .ts-panel__main { padding: 0 0 90px; }
  /* bez bocznego paddingu; 90px = miejsce na dolny pasek */
  .ts-panel__title { font-size: 1.5rem; line-height: 26px; margin-bottom: 20px; }
  /* Figma mobile: 24/26/900, odstęp 20 do „Dane opiekuna” */

  .ts-bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500; display: flex; align-items: stretch; height: 70px; padding: 6px 8px; background: var(--blue); box-shadow: 0 -2px 12px rgba(0, 0, 0, .08); }
  /* Poza panelem (pasek renderowany globalnie) — miejsce na dolny pasek, jak w panelu. */
  body.tsad-has-bottomnav { padding-bottom: 90px; }
  .ts-bottomnav__item { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: none; background: none; cursor: pointer; font-family: var(--font-main); font-size: .75rem; line-height: 17px; color: var(--black); text-align: center; }
  .ts-bottomnav__icon { display: flex; align-items: center; justify-content: center; width: 35px; height: 35px; border-radius: 10px; }
  .ts-bottomnav__item.is-active { font-weight: 700; }
  .ts-bottomnav__item.is-active .ts-bottomnav__icon { background: var(--white); }

  .ts-moresheet { position: fixed; inset: 0; z-index: 1600; display: flex; flex-direction: column; justify-content: flex-end; }
  .ts-moresheet__backdrop { position: absolute; inset: 0; background: rgba(18, 58, 49, .5); }
  .ts-moresheet__panel { position: relative; background: var(--blue); border-radius: 20px 20px 0 0; padding: 10px 20px 24px; display: flex; flex-direction: column; }
  .ts-moresheet__handle { width: 44px; height: 5px; margin: 8px auto 24px; padding: 0; border: none; border-radius: 3px; background: var(--ink); cursor: pointer; }
  .ts-moresheet__item { display: flex; align-items: center; gap: 12px; padding: 12px 4px; font-family: var(--font-main); font-size: 1.125rem; line-height: 25px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--black); }
  .ts-moresheet__item:first-of-type { border-top: 1px solid var(--black); }
  .ts-moresheet__icon { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; }
  .ts-moresheet__item.is-active { font-weight: 700; }
  .ts-moresheet__item.is-active .ts-moresheet__icon { background: var(--white); }
  .ts-moresheet__logout { align-self: flex-start; margin-top: 16px; height: auto; min-height: 0; padding: 10px 20px; }

  .ts-modal--confirm .ts-modal__box { padding: 32px 24px; gap: 20px; }

  .ts-map__area { height: 376px; }
  .ts-map__area.tsad-maplibre { height: 376px; }

  .ts-faq__q { font-size: 1.5rem; line-height: 28px; }

  /* Mały footer — biała kreska oddzielająca credits na mobile */
  .ts-footer-small .footer__credits-row { border-top: 1px solid var(--white); padding-top: 24px; }
}

@media (max-width: 600px) {
  .ts-notify__row { flex-direction: column; }
  .ts-notify__submit { width: 100%; }
  .ts-modal--welcome .ts-modal__box { padding: 32px 20px; }
  .ts-modal--welcome .ts-welcome { text-align: center; }
  .ts-modal--welcome .ts-welcome .ts-welcome__list { padding-left: 0; list-style: none; }
  .ts-welcome__actions { flex-direction: column-reverse; gap: 16px; }
  .ts-welcome__go { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ts-banner__track { animation: none; }
}

/* ===== Kalkulator diety dziecka (landing template-kalkulator.php + wrapper) ===== */
/* Brakujące w bazie utility ze skali motywu (32px / 36px). */
.fs-32 { font-size: 2rem; }
.lh-36 { line-height: 36px; }

.ts-calc__lead { max-width: 640px; margin-left: auto; margin-right: auto; color: var(--muted); }
.ts-calc__hero-img img { display: block; max-width: 100%; height: auto; margin-left: auto; margin-right: auto; }
.ts-calc__start { display: inline-flex; align-items: center; gap: 8px; }
.ts-calc__sep { border: 0; border-top: 1px solid var(--card-border); margin: 56px 0; }

.ts-calc__how-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 24px; }
.ts-calc__note { display: flex; align-items: flex-start; gap: 16px; padding: 24px; max-width: 320px; }
.ts-calc__note img { flex: none; }
.ts-calc__note p { margin: 0; }
.ts-calc__steps { display: flex; flex-direction: column; gap: 24px; padding: 32px; max-width: 516px; margin: 0; list-style: none; }
.ts-calc__step { display: flex; align-items: center; gap: 16px; }
.ts-calc__step-num { flex: none; }

.ts-calc__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
.ts-calc__card { display: flex; align-items: flex-start; gap: 16px; padding: 24px 12px; border-top: 1px solid var(--card-border); }
.ts-calc__card-icon { flex: none; margin-top: 4px; }
.ts-calc__card p { margin: 0; }

/* Treść aplikacji (z bazy) była projektowana pod bezjednostkowy line-height (Bootstrap 1.5).
   bos2026 ma na body sztywne line-height:22px, ktore dziedziczy sie jako 22px i tnie duze
   liczby (BMI/kcal) — nachodza na etykiety. Przywracamy wzgledny line-height w tym obszarze. */
.ts-calc-form__body { margin-left: auto; margin-right: auto; line-height: 1.5; }

@media (max-width: 768px) {
  .ts-calc__how-row { flex-direction: column; align-items: stretch; }
  .ts-calc__note, .ts-calc__steps { max-width: none; }
  .ts-calc__cards { grid-template-columns: 1fr; }
  .ts-calc__sep { margin: 32px 0; }
}
