/* Panel Zeszytu polowego. Ten sam system co strona główna (DESIGN.md): papier i tusz, Archivo z osią szerokości,
   arkusz z liniami zamiast kart, kolor tylko w danych i statusach (tokeny niżej), przyciski prostokątne r=6px, ikony Phosphor liniowe.
   Bez atrybutów style w HTML (CSP style-src 'self'). */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-ext-wdth.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-wdth.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f4f4f1;
  --paper-2: #e9e9e4;
  --white: #fff;
  --ink: #161616;
  --ink-2: #3a3a37;
  --mute: #5f5f5a;
  --rule: #d4d4ce;
  --rule-strong: #b3b3ac;
  --on-ink: #f4f4f1;
  --on-ink-mute: #a9a9a3;

  /* ---- kolor tylko w danych i statusach (DESIGN.md, „Kolory”). Wartości dobrane i sprawdzone walidatorem
     palety (OKLab, symulacja protanopii i deuteranopii Machado 2009) na tle papieru #f4f4f1. ---- */
  /* kategorie danych w stałej kolejności (sąsiednie pary: CVD ΔE ≥ 15,8, zwykłe widzenie ≥ 17,2, kontrast ≥ 3:1) */
  --d-zielen: #52984a;   /* 1 zieleń pola    3,20:1 */
  --d-blekit: #4a87c8;   /* 2 błękit wody    3,41:1 */
  --d-ochra: #b1863e;    /* 3 ochra zboża    3,00:1 */
  --d-sliwka: #8f4d99;   /* 4 śliwka         5,17:1 */
  --d-cegla: #8f330b;    /* 5 cegła          7,20:1 */
  --d-morski: #00979c;   /* 6 morski         3,23:1 */
  --d-oliwka: #717400;   /* 7 oliwka         4,54:1 */
  --d-wrzos: #c37694;    /* 8 wrzos          3,01:1 */
  --d-inne: #a3a39c;     /* „inne”, neutralny, 2,30:1: zawsze z podpisem albo tabelą */
  /* rodzaj środka: wszędzie te same (herbicyd, fungicyd, insektycyd: wszystkie pary CVD ΔE ≥ 15,8) */
  --r-herbicyd: var(--d-zielen);
  --r-fungicyd: var(--d-blekit);
  --r-insektycyd: var(--d-cegla);
  --r-inne: var(--d-inne);
  /* uprawy w statystykach (zawsze z nazwą przy słupku) */
  --u-pszenica: var(--d-ochra);
  --u-rzepak: var(--d-morski);
  --u-kukurydza: var(--d-cegla);
  --u-jeczmien: var(--d-oliwka);
  --u-burak: var(--d-sliwka);
  --u-jablon: var(--d-wrzos);
  --u-trawy: var(--d-zielen);
  --u-ziemniak: var(--d-blekit);
  --u-inne: var(--d-inne);
  /* składniki nawozów (wszystkie pary CVD ΔE ≥ 15,8) */
  --n-azot: var(--d-zielen);
  --n-fosfor: var(--d-sliwka);
  --n-potas: var(--d-cegla);
  /* sekwencyjna, jeden odcień zieleni (intensywność: zabiegi na ha, plon), jasny → ciemny */
  --seq-1: #d8efd8; --seq-2: #afd7af; --seq-3: #82bc83; --seq-4: #5a9f5d; --seq-5: #3b8040; --seq-6: #29612d;
  /* rozbieżna: zysk (zieleń morska) ↔ szary środek ↔ strata (czerwień); para krańców CVD ΔE 8,5–9,3 */
  --zysk-1: #c3e4dc; --zysk-2: #7fbfb0; --zysk-3: #2f8f7f; --zysk-4: #0d5f55;
  --rozb-0: #e4e4de;
  --strata-1: #f6cfc4; --strata-2: #e0907f; --strata-3: #c0503f; --strata-4: #8e2a22;
  /* statusy: tekst ≥ 5,8:1 na papierze i ≥ 5,4:1 na swoim tle, biały na pełnym ≥ 6,4:1; znak = kolor w wykresie */
  --ok: #1f6b4f;    --ok-tlo: #e2efe7;    --ok-obrys: #8cbfa5;    --ok-znak: #3a9466;
  --uwaga: #835000; --uwaga-tlo: #f7ebd0; --uwaga-obrys: #d4a24a; --uwaga-znak: #d9a23a;
  --stop: #ad2a1e;  --stop-tlo: #f8e2dd;  --stop-obrys: #de8b7e;  --stop-znak: #a8322a;
  --info: #3b5d7d;  --info-tlo: #e3e9ef;  --info-obrys: #9cb1c6;  --info-znak: #5b7a99;

  /* ---- gęstość: jedna skala odstępów i typografii ---- */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --t-h1: clamp(1.625rem, 2.3vw, 2.125rem);
  --t-h2: 1.0625rem;
  --t-liczba: clamp(1.75rem, 2.4vw, 2.25rem);
  --wys-btn: 44px;
  --wys-btn-sm: 40px;
  --wys-pole: 44px;

  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 2.6vw, 32px);
  --r: 6px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gora: 52px;
  --zak: 56px;
  --bok: 240px;
  --strzalka: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23161616' stroke-width='1.6'/%3E%3C/svg%3E");

  color-scheme: light;
  accent-color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; height: 100%; }
/* tekst podstawowy 15 px na komputerze, 16 px na telefonie (iOS nie powiększa pól) */
@media (min-width: 960px) { html { font-size: 93.75%; } :root { --wys-btn: 36px; --wys-btn-sm: 32px; --wys-pole: 38px; } }
body {
  margin: 0; min-height: 100%; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 1rem; line-height: 1.55; font-stretch: 100%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
::selection { background: var(--ink); color: var(--on-ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mute { color: var(--mute); }
.ph { line-height: 1; }
.noscript { padding: 40px var(--gutter); max-width: 46ch; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: var(--r); }
.skip:focus { top: 12px; }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: var(--wys-btn); padding: 0 16px; border-radius: var(--r); border: 1px solid transparent;
  font: inherit; font-size: .9375rem; font-weight: 620; font-stretch: 104%; letter-spacing: 0;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn .ph { font-size: 1.125rem; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: var(--wys-btn-sm); padding: 0 12px; font-size: .875rem; gap: 7px; }
.btn-wide { width: 100%; }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { background: #000; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--on-ink); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.ikona-btn {
  display: inline-grid; place-items: center; width: var(--wys-btn); height: var(--wys-btn); flex: none;
  border: 0; border-radius: var(--r); background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color .2s var(--ease);
}
.ikona-btn .ph { font-size: 1.25rem; }
.ikona-btn:hover { background: var(--paper-2); }
.link-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0; border: 0; background: none;
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em;
  text-decoration-color: var(--rule-strong); cursor: pointer;
}
.link-btn:hover { text-decoration-color: currentColor; }
.link-btn[disabled] { color: var(--mute); text-decoration: none; cursor: default; }
.link-btn[aria-pressed="true"] { text-decoration-color: currentColor; }

/* ---------- formularze ---------- */
.pole { display: grid; gap: 6px; min-width: 0; align-content: start; }
input[list]::-webkit-calendar-picker-indicator { display: none !important; }
.pole label, .pola-wybor legend, .dzialki-pola legend { font-size: .875rem; font-weight: 600; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea {
  width: 100%; min-height: var(--wys-pole); padding: 0 12px; border: 1px solid var(--rule-strong); border-radius: var(--r);
  background: var(--white); color: var(--ink); font: inherit; font-size: 1rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
textarea { padding: 12px 14px; resize: vertical; line-height: 1.5; }
select { appearance: none; -webkit-appearance: none; padding-right: 38px; background: var(--white) var(--strzalka) no-repeat right 14px center; cursor: pointer; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-2); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(22,22,22,.12); }
input[aria-invalid="true"] { border-color: var(--stop); border-width: 2px; }
input::placeholder, textarea::placeholder { color: #8d8d87; }
input[readonly] { background: var(--paper); }
input[type=checkbox] { width: 20px; height: 20px; margin: 0; flex: none; cursor: pointer; }
.pole-pomoc { font-size: .8125rem; color: var(--mute); line-height: 1.45; }
.pole-z-btn { display: flex; gap: 8px; align-items: stretch; }
.pole-z-btn > input { flex: 1; min-width: 0; }
.pole-z-btn > .btn { min-height: var(--wys-pole); }
.form-blad { font-weight: 600; color: var(--stop); font-size: .9375rem; display: flex; gap: 8px; align-items: flex-start; }
.form-blad:empty { display: none; }
.form-blad::before { content: "\e4e0"; font-family: "Phosphor"; font-weight: normal; font-size: 1.125rem; line-height: 1.3; }
.formularz { display: grid; gap: 18px; }
.siatka-2 { display: grid; gap: 16px; }
@media (min-width: 560px) { .siatka-2 { grid-template-columns: 1fr 1fr; } }
.pelna { grid-column: 1 / -1; }
.zaznacz { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; cursor: pointer; }
.zaznacz input { margin-top: 1px; }
.wybor-maly { width: auto; min-height: var(--wys-btn-sm); padding: 0 34px 0 12px; font-size: .9375rem; font-weight: 560; background-position: right 12px center; }
.kod {
  min-height: 64px !important; font-size: 1.875rem !important; font-weight: 600; font-stretch: 115%;
  letter-spacing: .38em; text-indent: .38em; text-align: center; font-variant-numeric: tabular-nums;
}
.kod-maly { min-height: 48px !important; font-size: 1.25rem !important; letter-spacing: .3em; text-indent: .3em; max-width: 200px; }
.akcje { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; align-items: center; }
.akcje-lewo { justify-content: flex-start; }
.akcje-rozsun { justify-content: space-between; }

/* ---------- marka ---------- */
.marka { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-stretch: 118%; letter-spacing: -.02em; font-size: 1.0625rem; text-decoration: none; }
.marka-znak { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 7.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- powłoka ---------- */
.app { min-height: 100dvh; }
.boczny { display: none; }
.gora {
  position: sticky; top: 0; z-index: 40; height: var(--gora); display: flex; align-items: center; gap: 4px;
  padding: 0 8px 0 10px; background: var(--paper); border-bottom: 1px solid var(--rule);
}
.gora-gosp { flex: 0 1 auto; margin-right: auto; min-width: 0; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 6px; border: 0; border-radius: var(--r); background: none; text-align: left; cursor: pointer; }
.gora-gosp:hover { background: var(--paper-2); }
.gora-g { min-width: 0; display: grid; line-height: 1.2; }
.gora-nazwa { font-weight: 650; font-stretch: 106%; font-size: .9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gora-plan { display: flex; align-items: center; min-width: 0; font-size: .8125rem; color: var(--mute); white-space: nowrap; overflow: hidden; }
.gora-plan .plan-tekst { overflow: hidden; text-overflow: ellipsis; }
.gora-gosp .gosp-strz { margin-left: -2px; }
.gora-zapisz { min-height: 36px; padding: 0 12px; margin-left: 2px; }
.app[data-sekcja="agent"] .gora-zapisz { display: none; }
/* wąski telefon: „Zapisz zabieg” jako sama ikona (nazwa w aria-label), nazwa gospodarstwa do dwóch linii zamiast ucinania */
@media (max-width: 520px) {
  .gora-zapisz { gap: 0; width: 44px; min-height: 40px; padding: 0; }
  .gora-zapisz .ph { font-size: 1.375rem; }
  .gora-zapisz-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .gora-gosp { height: auto; min-height: 44px; padding: 2px 6px; gap: 9px; }
  .gora-g { line-height: 1.15; }
  .gora-nazwa { font-size: .875rem; white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .gora-plan { font-size: .75rem; margin-top: 1px; }
}
.kolumna { padding-bottom: calc(var(--zak) + env(safe-area-inset-bottom)); }
.glowna { padding: 16px var(--gutter) 32px; outline: none; }
.zakladki {
  position: fixed; inset: auto 0 0; z-index: 40; background: var(--paper); border-top: 1px solid var(--rule);
  padding-bottom: env(safe-area-inset-bottom);
}
.zakladki ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.zakladki .nav-a {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 100%;
  height: var(--zak); padding: 0; border: 0; background: none; cursor: pointer;
  font-size: 12px; font-weight: 600; font-stretch: 104%; color: var(--mute); text-decoration: none;
}
.zakladki .nav-a .ph { font-size: 1.3125rem; }
.zakladki .nav-t { flex: none; }
.zakladki .nav-a[aria-current="page"] { color: var(--ink); }
.zakladki .nav-a[aria-current="page"]::before { content: ""; position: absolute; top: -1px; left: 26%; right: 26%; height: 2px; background: var(--ink); border-radius: 0 0 2px 2px; }
.zakladki .nav-znacznik { position: absolute; top: 5px; left: calc(50% + 5px); min-width: 18px; height: 18px; padding: 0 5px; box-shadow: 0 0 0 2px var(--paper); }

/* ---------- boczny pasek (od 960 px): grupy, zwijanie do ikon, menu gospodarstw i osoby ---------- */
@media (min-width: 960px) {
  .app { display: grid; grid-template-columns: var(--bok) minmax(0, 1fr); }
  .pasek-animuj .app { transition: grid-template-columns .24s var(--ease); }
  .gora, .zakladki { display: none; }
  .kolumna { padding-bottom: 0; min-width: 0; }
  .glowna { padding: 28px clamp(24px, 3vw, 40px) 48px; }
  .boczny {
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh; min-width: 0; overflow: hidden;
    padding: 12px 12px 10px; border-right: 1px solid var(--rule); background: var(--paper); white-space: nowrap;
  }
}
.boczny-gora { display: grid; gap: 10px; flex: none; }
.boczny-rzad { display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 36px; }
.boczny-rzad .marka { min-width: 0; padding: 0 6px; height: 36px; border-radius: var(--r); font-size: 1rem; }
.boczny-rzad .marka:hover { background: rgba(22,22,22,.045); }
.marka-t { overflow: hidden; text-overflow: ellipsis; }
.zwin-btn { width: 32px; height: 32px; color: var(--mute); }
.zwin-btn .ph { font-size: 1.125rem; }
.zwin-btn:hover { color: var(--ink); background: rgba(22,22,22,.06); }

/* przełącznik gospodarstw: inicjał, nazwa, stan planu */
.gosp-btn {
  display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; min-height: 50px;
  padding: 7px 8px 7px 8px; border: 1px solid var(--rule); border-radius: 8px; background: var(--white); color: var(--ink);
  text-align: left; cursor: pointer; box-shadow: 0 1px 0 rgba(22,22,22,.035);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.gosp-btn:hover, .gosp-btn[aria-expanded="true"] { border-color: var(--rule-strong); box-shadow: 0 1px 2px rgba(22,22,22,.07); }
.gosp-t { min-width: 0; display: grid; gap: 1px; line-height: 1.25; }
.gosp-t b { font-weight: 660; font-stretch: 104%; font-size: .9375rem; line-height: 1.2; overflow: hidden; white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.gosp-t small { display: flex; align-items: center; min-width: 0; font-size: .8125rem; color: var(--mute); overflow: hidden; white-space: nowrap; }
.gosp-t small .plan-tekst { overflow: hidden; text-overflow: ellipsis; }
.gosp-strz { color: var(--mute); font-size: 1rem; }
.gosp-znak {
  display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 7px;
  background: var(--ink); color: var(--on-ink); font-weight: 720; font-stretch: 118%; font-size: .875rem; line-height: 1;
}
.gora .gosp-znak { width: 32px; height: 32px; font-size: .9375rem; }
.plan-kropka { display: inline-block; flex: none; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--info-znak); }
.plan-kropka-ok { background: var(--ok-znak); }
.plan-kropka-uwaga { background: var(--uwaga-znak); }
.plan-kropka-stop { background: var(--stop-znak); }
.z-kropka { display: flex !important; align-items: center; }

/* szybkie akcje */
.boczny-akcje { display: grid; gap: 6px; }
.btn-zapisz { justify-content: flex-start; min-height: 36px; padding: 0 8px 0 11px; gap: 10px; border-radius: 7px; }
.btn-zapisz .akcja-t, .szukaj-btn .akcja-t { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; }
.btn-zapisz kbd { background: rgba(244,244,241,.1); border-color: rgba(244,244,241,.22); color: var(--on-ink); border-bottom-width: 1px; }
.szukaj-btn {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 0 8px 0 11px;
  border: 1px solid var(--rule); border-radius: 7px; background: transparent; color: var(--mute); font-size: .9375rem; cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.szukaj-btn:hover { border-color: var(--rule-strong); background: var(--white); color: var(--ink); }
.szukaj-btn .ph, .btn-zapisz .ph { font-size: 1.125rem; flex: none; }
.boczny-akcje kbd { min-width: 20px; height: 20px; font-size: .75rem; }
.kbd-grupa { display: inline-flex; gap: 3px; }
kbd {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border: 1px solid var(--rule-strong); border-bottom-width: 2px;
  border-radius: 4px; background: var(--white); color: var(--ink-2); font: 600 .8125rem/1 var(--font); font-stretch: 100%;
}

/* lista sekcji: przewija się sama, góra i stopka zostają */
.nav-boczna {
  flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  margin: 14px -12px 0; padding: 2px 12px 12px; scrollbar-width: thin; scrollbar-color: var(--rule-strong) transparent;
  border-top: 1px solid transparent; border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav-boczna.cien-gora { border-top-color: var(--rule); }
.nav-boczna.cien-dol { border-bottom-color: var(--rule); }
.nav-grupa + .nav-grupa { margin-top: 12px; }
.nav-grupa-t { padding: 0 10px 3px; font-size: .8125rem; line-height: 1.4; font-weight: 600; color: var(--mute); letter-spacing: 0; }
.nav-boczna ul, .boczny-stopka ul { display: grid; gap: 1px; }
.boczny .nav-a, .nav-dostosuj {
  position: relative; display: flex; align-items: center; gap: 11px; width: 100%; min-height: 32px; padding: 0 8px 0 10px;
  border: 0; border-radius: 7px; background: none; font: inherit; font-size: .9375rem; font-weight: 560; color: var(--ink-2);
  text-decoration: none; cursor: pointer; transition: background-color .15s var(--ease), color .15s var(--ease);
}
.boczny .nav-a .ph, .nav-dostosuj .ph { font-size: 1.1875rem; color: var(--mute); flex: none; transition: color .15s var(--ease); }
.nav-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.boczny .nav-a:hover, .nav-dostosuj:hover { background: rgba(22,22,22,.05); color: var(--ink); }
.boczny .nav-a:hover .ph, .nav-dostosuj:hover .ph { color: var(--ink); }
.boczny .nav-a:focus-visible, .nav-dostosuj:focus-visible, .gosp-btn:focus-visible, .osoba-btn:focus-visible { outline-offset: -2px; }
.boczny .nav-a[aria-current="page"] { background: var(--white); color: var(--ink); font-weight: 650; box-shadow: 0 0 0 1px var(--rule), 0 1px 2px rgba(22,22,22,.05); }
.boczny .nav-a[aria-current="page"] .ph { color: var(--ink); }
.boczny .nav-a[aria-current="page"]::before {
  content: ""; position: absolute; left: -12px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--ink);
}
.nav-chwilowa .nav-a { outline: 1px dashed var(--rule-strong); outline-offset: -1px; }
.boczny-dostosuj { flex: none; padding-top: 4px; }
.nav-dostosuj { text-align: left; min-height: 30px; font-size: .875rem; color: var(--mute); font-weight: 520; }
.nav-dostosuj .ph { font-size: 1.0625rem; }

/* liczniki w kolorze statusu (zawsze z liczbą; opis w dymku i dla czytnika) i oznaczenie planu Plus */
.nav-znacznik {
  display: inline-grid; place-items: center; flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--uwaga-tlo); color: var(--uwaga); box-shadow: inset 0 0 0 1px var(--uwaga-obrys);
  font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1;
}
.znacz-info { background: var(--info-tlo); color: var(--info); box-shadow: inset 0 0 0 1px var(--info-obrys); }
.znacz-stop { background: var(--stop-tlo); color: var(--stop); box-shadow: inset 0 0 0 1px var(--stop-obrys); }
.znacz-ok { background: var(--ok-tlo); color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok-obrys); }
.nav-plus {
  display: inline-grid; place-items: center; flex: none; height: 19px; padding: 0 6px; border: 1px solid var(--rule-strong); border-radius: 4px;
  color: var(--mute); font-size: .75rem; font-weight: 650; font-stretch: 104%; line-height: 1; background: transparent;
}
.menu-wiersz-t .nav-plus { margin-left: 8px; vertical-align: 1px; display: inline-grid; }

/* stopka: Konto i osoba z menu */
.boczny-stopka { flex: none; display: flex; align-items: center; gap: 2px; padding-top: 8px; }
.boczny-stopka .osoba-btn { flex: 1; min-width: 0; }
.konto-btn { position: relative; width: 36px; height: 36px; color: var(--mute); }
.konto-btn:hover { color: var(--ink); background: rgba(22,22,22,.05); }
.konto-btn[aria-current="page"] { color: var(--ink); background: var(--white); box-shadow: 0 0 0 1px var(--rule); }
.osoba-btn {
  display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; align-items: center; width: 100%; min-height: 46px;
  padding: 6px 8px 6px 6px; border: 0; border-radius: 8px; background: none; color: var(--ink); text-align: left; cursor: pointer;
  transition: background-color .15s var(--ease);
}
.osoba-btn:hover, .osoba-btn[aria-expanded="true"] { background: rgba(22,22,22,.05); }
.osoba-btn .osoba-znak { grid-area: auto; display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--rule); font-weight: 700; font-size: .875rem; font-stretch: 115%; }
.kto-t { min-width: 0; display: grid; line-height: 1.3; }
.kto { font-weight: 620; font-size: .9375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rola { font-size: .8125rem; color: var(--mute); overflow: hidden; text-overflow: ellipsis; }

/* zwinięty pasek: same ikony z dymkami */
@media (min-width: 960px) {
  :root.pasek-zwiniety { --bok: 64px; }
  .pasek-zwiniety .boczny { padding: 12px 10px 10px; }
  .pasek-zwiniety .boczny-rzad { justify-content: center; }
  .pasek-zwiniety .boczny-rzad .marka { display: none; }
  .pasek-zwiniety .zwin-btn { width: 44px; height: 36px; }
  .pasek-zwiniety .gosp-btn { grid-template-columns: 1fr; justify-items: center; width: 44px; min-height: 44px; padding: 5px; }
  .pasek-zwiniety .gosp-t, .pasek-zwiniety .gosp-strz, .pasek-zwiniety .akcja-t, .pasek-zwiniety .boczny-akcje .kbd-grupa,
  .pasek-zwiniety .boczny .nav-t, .pasek-zwiniety .boczny .nav-plus, .pasek-zwiniety .kto-t, .pasek-zwiniety .osoba-btn .gosp-strz {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .pasek-zwiniety .btn-zapisz, .pasek-zwiniety .szukaj-btn { width: 44px; justify-content: center; padding: 0; }
  .pasek-zwiniety .nav-boczna { margin: 14px -10px 0; padding: 2px 10px 12px; }
  .pasek-zwiniety .boczny-dostosuj { display: flex; justify-content: center; }
  .pasek-zwiniety .nav-grupa + .nav-grupa { margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--rule); }
  .pasek-zwiniety .nav-grupa-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pasek-zwiniety .boczny .nav-a, .pasek-zwiniety .nav-dostosuj { justify-content: center; width: 44px; min-height: 38px; padding: 0; }
  .pasek-zwiniety .boczny .nav-a[aria-current="page"]::before { left: -10px; }
  .pasek-zwiniety .boczny .nav-znacznik { position: absolute; top: 6px; left: 26px; min-width: 9px; width: 9px; height: 9px; padding: 0; font-size: 0; box-shadow: 0 0 0 2px var(--paper); }
  .pasek-zwiniety .boczny .nav-znacznik.znacz-uwaga { background: var(--uwaga-znak); }
  .pasek-zwiniety .boczny .nav-znacznik.znacz-info { background: var(--info-znak); }
  .pasek-zwiniety .boczny .nav-znacznik.znacz-stop { background: var(--stop-znak); }
  .pasek-zwiniety .boczny .nav-a[aria-current="page"] .nav-znacznik { box-shadow: 0 0 0 2px var(--white); }
  .pasek-zwiniety .boczny-stopka { flex-direction: column-reverse; align-items: center; gap: 4px; }
  .pasek-zwiniety .boczny-stopka .osoba-btn { flex: none; grid-template-columns: 1fr; justify-items: center; width: 44px; padding: 6px 0; }
  .pasek-zwiniety .konto-btn { width: 44px; height: 38px; }
}

/* dymek przy ikonach zwiniętego paska */
.dymek {
  position: fixed; inset: auto; margin: 0; padding: 5px 9px; border: 0; border-radius: 6px; transform: translate(-3px, -50%);
  background: var(--ink); color: var(--on-ink); font-size: .8125rem; font-weight: 560; line-height: 1.3; white-space: pre; pointer-events: none;
  opacity: 0; transition: opacity .12s var(--ease), transform .12s var(--ease); overflow: visible;
}
.dymek.widoczny { opacity: 1; transform: translate(0, -50%); }

/* menu rozwijane (gospodarstwa, osoba) */
.menu {
  position: fixed; inset: auto; margin: 0; padding: 6px; max-width: min(320px, calc(100vw - 16px)); max-height: calc(100dvh - 16px); overflow: auto;
  border: 1px solid var(--rule); border-radius: 10px; background: var(--white); color: var(--ink);
  box-shadow: 0 16px 40px -12px rgba(22,22,22,.22), 0 2px 6px rgba(22,22,22,.06);
}
.menu:popover-open { animation: menu-wjazd .16s var(--ease); }
@keyframes menu-wjazd { from { opacity: 0; transform: translateY(-3px); } }
.menu-naglowek { padding: 6px 10px 4px; font-size: .8125rem; font-weight: 600; color: var(--mute); }
.menu-poz {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 7px 10px; border: 0; border-radius: 6px;
  background: none; color: var(--ink); font: inherit; font-size: .9375rem; text-align: left; text-decoration: none; cursor: pointer;
}
.menu-poz > .ph { font-size: 1.125rem; color: var(--mute); flex: none; }
.menu-poz:hover, .menu-poz:focus-visible { background: var(--paper); outline: none; }
.menu-poz:hover > .ph, .menu-poz:focus-visible > .ph { color: var(--ink); }
.menu-t { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.menu-t > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-t small { display: flex; align-items: center; color: var(--mute); font-size: .8125rem; white-space: nowrap; overflow: hidden; }
.menu-gosp .menu-t > span { font-weight: 620; }
.menu-gosp .gosp-znak { width: 30px; height: 30px; font-size: .8125rem; }
.menu-gosp[aria-current="true"] { background: var(--paper); }
.menu-ok { color: var(--ink) !important; }
.kropka-sep { margin: 0 5px; color: var(--rule-strong); }
.menu-linia { margin: 6px -6px; border: 0; border-top: 1px solid var(--rule); }
.menu-osoba { display: grid; padding: 8px 10px 6px; line-height: 1.35; }
.menu-osoba b { font-weight: 660; }
.menu-osoba small { color: var(--mute); font-size: .8125rem; overflow: hidden; text-overflow: ellipsis; }
.menu kbd { min-width: 20px; height: 20px; font-size: .75rem; border-bottom-width: 1px; color: var(--mute); }

/* Dostosuj menu */
.menu-grupa + .menu-grupa { margin-top: 18px; }
.menu-grupa .nav-grupa-t { padding: 0 0 4px; }
.menu-grupa ul { border-top: 1px solid var(--rule); }
.menu-wiersz { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 2px; border-bottom: 1px solid var(--rule); cursor: pointer; }
.menu-wiersz > .ph { font-size: 1.25rem; color: var(--ink-2); }
.menu-wiersz-t { min-width: 0; display: grid; line-height: 1.3; }
.menu-wiersz-t b { font-weight: 620; }
.menu-wiersz-t small { color: var(--mute); font-size: .8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-wiersz-staly { cursor: default; }
.menu-wiersz-staly > .ph, .menu-wiersz-staly b { color: var(--mute); }
.przelacznik {
  appearance: none; -webkit-appearance: none; position: relative; width: 38px !important; height: 22px !important; margin: 0; flex: none;
  border-radius: 11px; background: var(--rule-strong); cursor: pointer; transition: background-color .18s var(--ease);
}
.przelacznik::before {
  content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--white);
  box-shadow: 0 1px 2px rgba(22,22,22,.25); transition: transform .18s var(--ease);
}
.przelacznik:checked { background: var(--ink); }
.przelacznik:checked::before { transform: translateX(16px); }
.przelacznik:disabled { opacity: .4; cursor: default; }
.przelacznik:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.okno-menu .okno-stopka { margin-top: 18px; }

/* baner planu */
.baner { display: flex; align-items: center; gap: 12px; padding: 12px var(--gutter); background: var(--ink); color: var(--on-ink); font-size: .9375rem; }
.baner .ph { font-size: 1.25rem; flex: none; }
.baner-a { margin-left: auto; font-weight: 650; white-space: nowrap; text-decoration-color: var(--on-ink-mute); }
.komunikat { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--ink); border-radius: var(--r); background: var(--white); margin-bottom: 20px; outline: none; }
.komunikat .ph { font-size: 1.375rem; flex: none; }

/* ---------- widoki: nagłówki ---------- */
.widok { max-width: 1080px; }
.widok-szeroki { max-width: 1240px; }
.widok-waski { max-width: 760px; }
.widok-glowa { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.widok-tytul { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; min-width: 0; }
.widok-tytul h1, .wejscie h1, .powitanie h2, .plan-duzy {
  font-stretch: 118%; font-weight: 740; letter-spacing: -.028em; line-height: 1.05;
}
.widok-tytul h1 { font-size: var(--t-h1); }
.widok-podtytul { color: var(--mute); font-size: .9375rem; }
.widok-akcje { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sekcja { margin-top: 36px; }
.sekcja-glowa { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.sekcja-t { font-size: var(--t-h2); font-weight: 680; font-stretch: 110%; letter-spacing: -.01em; margin-bottom: 10px; }
.sekcja-glowa .sekcja-t { margin-bottom: 0; }
.sekcja-ostatnia { display: grid; gap: 14px; justify-items: start; padding-top: 28px; border-top: 1px solid var(--rule); }

/* arkusz: wiersze z liniami */
.arkusz { border-top: 1px solid var(--rule); }
.arkusz > li { border-bottom: 1px solid var(--rule); }
.arkusz-wiersz {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; width: 100%;
  padding: 11px 4px; text-decoration: none; background: none; border: 0; text-align: left; cursor: pointer;
}
.arkusz-wiersz > .ph:first-child { font-size: 1.5rem; }
.arkusz-wiersz b { display: block; font-weight: 650; }
.arkusz-wiersz small { display: block; color: var(--mute); font-size: .875rem; }
.arkusz-wiersz:hover b { text-decoration: underline; text-underline-offset: .22em; }
.arkusz-dl > div { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.arkusz-dl > div:first-child { border-top: 1px solid var(--rule); }
.arkusz-dl dt { color: var(--mute); }
.arkusz-dl dd { font-weight: 560; }
.formularz + .arkusz-dl, .arkusz-dl + .arkusz { margin-top: 20px; }

/* stany */
.ladowanie { display: grid; }
.szkielet { position: relative; height: 56px; border-bottom: 1px solid var(--rule); }
.szkielet::before { content: ""; position: absolute; left: 0; top: 21px; height: 14px; width: 62%; border-radius: 4px; background: var(--paper-2); animation: puls 1.4s ease-in-out infinite; }
.szkielet:nth-child(2n)::before { width: 44%; animation-delay: .15s; }
.szkielet:nth-child(3n)::before { width: 72%; animation-delay: .3s; }
@keyframes puls { 50% { opacity: .45; } }
.start-ladowanie, .start-blad { max-width: 520px; margin: 18vh auto 0; padding: 0 var(--gutter); }
.pusto { max-width: 440px; margin: clamp(24px, 7vh, 72px) auto; text-align: center; display: grid; justify-items: center; gap: 10px; }
.pusto-ikona { font-size: 2rem; margin-bottom: 4px; }
.pusto h2 { font-size: 1.25rem; font-weight: 720; font-stretch: 116%; letter-spacing: -.025em; line-height: 1.15; }
.pusto p { color: var(--ink-2); margin-bottom: 6px; max-width: 46ch; }
.pusto-akcje { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 16px; }

/* toasty */
.toasty { position: fixed; z-index: 2000; margin: 0; padding: 0; border: 0; background: none; overflow: visible; inset: auto auto auto 50%; left: 50%; bottom: calc(var(--zak) + env(safe-area-inset-bottom) + 14px); transform: translateX(-50%); display: grid; gap: 8px; width: max-content; max-width: calc(100vw - 32px); pointer-events: none; }
@media (min-width: 960px) { .toasty { bottom: 28px; left: calc(var(--bok) + (100vw - var(--bok)) / 2); } }
.toast { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: var(--r); background: var(--ink); color: var(--on-ink); font-weight: 560; font-size: .9375rem; animation: wjazd .35s var(--ease); transition: opacity .35s, transform .35s var(--ease); }
.toast .ph { font-size: 1.125rem; }
.toast-blad { background: var(--stop-tlo); color: var(--stop); border: 1px solid var(--stop-obrys); }
.toast.wyjscie { opacity: 0; transform: translateY(6px); }
@keyframes wjazd { from { opacity: 0; transform: translateY(8px); } }

/* okna */
.okno {
  width: calc(100% - 32px); max-width: 560px; max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 8px;
  background: var(--paper); color: var(--ink); overflow: auto; overscroll-behavior: contain;
}
.okno::backdrop { background: rgba(22,22,22,.44); }
.okno[open] { animation: okno .3s var(--ease); }
@keyframes okno { from { opacity: 0; transform: translateY(10px) scale(.99); } }
.okno-male { max-width: 440px; }
.okno-szerokie { max-width: 720px; }
.okno-glowa { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 20px 0; }
.okno-tytul { font-size: 1.25rem; font-weight: 740; font-stretch: 120%; letter-spacing: -.03em; line-height: 1.1; }
.okno-opis { margin-top: 8px; color: var(--ink-2); font-size: .9375rem; }
.okno-zamknij { margin: -6px -10px 0 0; }
.okno-cialo { padding: 16px 20px 20px; }
.szuflada { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: 100%; max-width: 600px; border-radius: 0; border-left: 1px solid var(--rule-strong); }
.szuflada[open] { animation: szuflada .35s var(--ease); }
@keyframes szuflada { from { transform: translateX(32px); opacity: 0; } }
@media (max-width: 640px) {
  .okno:not(.szuflada) { margin: auto 0 0; width: 100%; max-width: none; border-radius: 10px 10px 0 0; max-height: 92dvh; padding-bottom: env(safe-area-inset-bottom); }
  .okno[open]:not(.szuflada) { animation: arkusz-dol .35s var(--ease); }
  @keyframes arkusz-dol { from { transform: translateY(40px); opacity: .4; } }
}

/* segment */
.segment { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--rule-strong); border-radius: var(--r); background: var(--white); }
.segment-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px; border: 0; border-radius: 4px;
  background: none; font-size: .875rem; font-weight: 580; cursor: pointer; white-space: nowrap; transition: background-color .2s var(--ease), color .2s var(--ease);
}
.segment-btn:hover { background: var(--paper-2); }
.segment-btn[aria-pressed="true"], .segment-btn[aria-checked="true"] { background: var(--ink); color: var(--on-ink); }
.licznik { font-size: .8125rem; font-variant-numeric: tabular-nums; opacity: .7; }

/* ---------- statusy, karta wpisu, reguły ---------- */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; font-weight: 620; white-space: nowrap; }
.status .ph { font-size: 1.0625rem; }
.status-pelny { color: var(--ok); }
.status-braki { color: var(--uwaga); }
.status-wstrzymany { background: var(--stop); color: #fff; padding: 3px 9px 3px 7px; border-radius: 4px; }
.status-do_potwierdzenia { color: var(--uwaga); background: var(--uwaga-tlo); border: 1px solid var(--uwaga-obrys); padding: 2px 8px 2px 6px; border-radius: 4px; }
.status-usuniety { color: var(--mute); }

.karta { background: var(--white); border: 1px solid var(--rule-strong); border-radius: var(--r); overflow: hidden; margin-top: 14px; }
.karta-glowa { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.karta-glowa .status { font-size: .9375rem; font-stretch: 106%; }
.karta-nr { display: inline-flex; align-items: center; gap: 4px; font-size: .8125rem; color: var(--mute); text-decoration: none; font-variant-numeric: tabular-nums; }
.karta-nr:hover { color: var(--ink); text-decoration: underline; }
.karta-wstrzymany { border-color: var(--stop); border-width: 2px; }
.karta-usuniety .komorki dd { text-decoration: line-through; text-decoration-color: var(--rule-strong); color: var(--mute); }
.komorki { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .komorki { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kom { padding: 8px 12px 9px; border-bottom: 1px solid var(--rule); border-right: 1px solid var(--rule); min-width: 0; }
.komorki .kom:nth-child(2n) { border-right: 0; }
@media (min-width: 640px) {
  .komorki .kom:nth-child(2n) { border-right: 1px solid var(--rule); }
  .komorki .kom:nth-child(4n) { border-right: 0; }
}
.kom dt { font-size: .8125rem; color: var(--mute); margin-bottom: 2px; }
.kom dd { font-weight: 580; line-height: 1.3; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kom-pusta dd { color: #8d8d87; font-weight: 450; }
.reguly { display: grid; }
.regula { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: baseline; padding: 8px 12px; border-bottom: 1px solid var(--rule); font-size: .9375rem; }
.reguly .regula:last-child { border-bottom: 0; }
.regula-waga { display: inline-flex; align-items: center; gap: 7px; font-size: .875rem; }
.regula-waga b { font-weight: 680; }
.regula-waga .ph { font-size: 1.0625rem; transform: translateY(2px); }
.regula-tekst { color: var(--ink-2); }
.w-ok .regula-waga { color: var(--ok); }
.w-uwaga { background: var(--uwaga-tlo); }
.w-uwaga .regula-waga, .w-brak .regula-waga { color: var(--uwaga); }
.w-stop { background: var(--stop-tlo); box-shadow: inset 3px 0 0 var(--stop-znak); }
.w-stop .regula-waga { color: var(--stop); }
.w-stop .regula-tekst { color: var(--ink); font-weight: 560; }
.w-brak .regula-waga b { text-decoration: underline dashed; text-underline-offset: .24em; text-decoration-thickness: 1px; }
.uwagi { padding: 10px 16px 12px; border-top: 1px solid var(--rule); font-size: .8125rem; color: var(--mute); display: grid; gap: 2px; }
.karta > .komorki:last-child .kom { border-bottom: 0; }

/* ---------- agent ---------- */
.glowna[data-widok="agent"] { padding: 0; }
.rozmowa { display: flex; flex-direction: column; height: calc(100dvh - var(--gora) - var(--zak) - env(safe-area-inset-bottom)); }
@media (min-width: 960px) { .rozmowa { height: 100dvh; } }
.baner-miejsce:not(:empty) + .glowna .rozmowa { height: calc(100dvh - var(--gora) - var(--zak) - env(safe-area-inset-bottom) - 48px); }
@media (min-width: 960px) { .baner-miejsce:not(:empty) + .glowna .rozmowa { height: calc(100dvh - 48px); } }
.rozmowa-przewijak { flex: 1; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.rozmowa-w { max-width: 780px; margin: 0 auto; padding: 32px var(--gutter) 24px; }
.rozmowa-lista { display: flex; flex-direction: column; gap: 26px; }
.rozmowa-wiecej { align-self: center; color: var(--mute); }
.wiad { max-width: 100%; animation: wjazd .35s var(--ease); }
.wiad-ja { align-self: flex-end; max-width: min(560px, 86%); display: grid; justify-items: end; gap: 4px; }
.wiad-ja .wiad-tekst { background: var(--paper-2); padding: 12px 15px; border-radius: var(--r); white-space: pre-wrap; overflow-wrap: anywhere; }
.wiad-meta { font-size: .8125rem; color: var(--mute); }
.wiad-agent { align-self: stretch; }
.wiad-kto { display: flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 650; margin-bottom: 6px; }
.wiad-znak { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; background: var(--ink); color: var(--on-ink); }
.wiad-znak .ph { font-size: .8125rem; }
.wiad-czas { font-weight: 450; color: var(--mute); }
.wiad-tryb { margin-left: auto; padding: 1px 7px; border: 1px solid var(--rule); border-radius: 999px; font-size: .6875rem; font-weight: 500; color: var(--mute); white-space: nowrap; }
.wiad-agent > .wiad-tekst { font-size: 1.0625rem; line-height: 1.55; white-space: pre-wrap; }
.wiad-blad > .wiad-tekst { font-weight: 600; }
.wiad-blad { border-left: 2px solid var(--ink); padding-left: 14px; }
.wiad-pisze { display: inline-flex; gap: 5px; align-self: flex-start; padding: 14px 0; }
.wiad-pisze span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); animation: pisze 1.1s infinite ease-in-out; }
.wiad-pisze span:nth-child(2) { animation-delay: .15s; }
.wiad-pisze span:nth-child(3) { animation-delay: .3s; }
@keyframes pisze { 0%, 80%, 100% { opacity: .2; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.szybkie { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.szybka {
  min-height: 40px; padding: 0 14px; border: 1px solid var(--rule-strong); border-radius: var(--r); background: var(--white);
  font-size: .9375rem; font-weight: 580; cursor: pointer; transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.szybka:hover { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.pisz-pas { flex: none; border-top: 1px solid var(--rule); background: var(--paper); padding: 12px var(--gutter) 10px; }
.pisz { max-width: 780px; margin: 0 auto; padding: 0; }
@media (min-width: 960px) { .pisz-pas { padding-top: 16px; padding-bottom: 14px; } .pisz { padding: 0 var(--gutter); } .pisz-pas { padding-left: 0; padding-right: 0; } }
.pisz-w {
  display: flex; align-items: flex-end; gap: 4px; padding: 6px; border: 1px solid var(--rule-strong); border-radius: var(--r); background: var(--white);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.pisz-w:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(22,22,22,.1); }
.pisz-w textarea { flex: 1; min-height: 40px; max-height: 200px; border: 0 !important; box-shadow: none !important; padding: 9px 8px; resize: none; background: transparent; font-size: 1.0625rem; }
.pisz-wyslij { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 0; border-radius: var(--r); background: var(--ink); color: var(--on-ink); cursor: pointer; }
.pisz-wyslij .ph { font-size: 1.25rem; }
.pisz-wyslij[disabled] { opacity: .45; cursor: progress; }
.pisz-mikrofon.nagrywa { background: var(--ink); color: var(--on-ink); animation: nagrywa 1.2s ease-in-out infinite; }
@keyframes nagrywa { 50% { box-shadow: 0 0 0 5px rgba(22,22,22,.14); } }
.pisz-nota { max-width: 780px; margin: 8px auto 0; font-size: .8125rem; color: var(--mute); text-align: center; }
@media (min-width: 960px) { .pisz-nota { padding: 0 var(--gutter); } }

.powitanie { padding-top: clamp(8px, 8vh, 96px); }
.powitanie h2 { font-size: clamp(2.25rem, 5vw, 3.5rem); max-width: 13ch; }
.powitanie > p { margin: 18px 0 30px; color: var(--ink-2); font-size: 1.125rem; max-width: 50ch; }
.powitanie-pola { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 16px; margin-bottom: 30px; background: var(--white); border: 1px solid var(--rule-strong); border-radius: var(--r); }
.powitanie-pola .ph { font-size: 1.375rem; }
.powitanie-pola p { flex: 1; min-width: 200px; font-weight: 560; }
.przyklady { border-top: 1px solid var(--rule); }
.przyklady li { border-bottom: 1px solid var(--rule); }
.przyklad {
  display: flex; gap: 14px; align-items: baseline; width: 100%; padding: 16px 2px; border: 0; background: none; text-align: left;
  font-size: 1.0625rem; cursor: pointer; transition: padding .3s var(--ease);
}
.przyklad .ph { color: var(--mute); transform: translateY(2px); flex: none; }
.przyklad:hover { padding-left: 8px; }
.przyklad:hover .ph { color: var(--ink); }
.powitanie-sms { margin-top: 26px; font-size: .9375rem; color: var(--ink-2); }
.powitanie-sms .ph { font-size: 1.125rem; vertical-align: -3px; margin-right: 8px; }

/* ---------- zeszyt ---------- */
.filtry { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 16px; margin-bottom: 18px; }
.filtry-reszta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.tabela { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tabela th { text-align: left; font-size: .8125rem; font-weight: 600; color: var(--mute); padding: 0 12px 10px; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.tabela td { padding: 9px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tabela th:first-child, .tabela td:first-child { padding-left: 4px; }
.wiersz { cursor: pointer; transition: background-color .15s; }
.tabela-inspekcja .wiersz { cursor: default; }
.wiersz:hover { background: var(--white); }
.wiersz:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.k-data { white-space: nowrap; font-weight: 600; }
.k-godz { display: block; font-weight: 450; font-size: .8125rem; color: var(--mute); }
.k-pole b { display: block; font-weight: 640; }
.k-pole span { font-size: .875rem; color: var(--mute); }
.k-dawka { white-space: nowrap; }
.k-kto { color: var(--ink-2); font-size: .9375rem; }
.k-strz { color: var(--mute); width: 24px; }
.nierozpoznany { text-decoration: underline dashed var(--rule-strong); text-underline-offset: .24em; }
.wiersz-usuniety td:not(.k-status) { color: var(--mute); text-decoration: line-through; text-decoration-color: var(--rule-strong); }
.lista-stopka { margin-top: 16px; font-size: .8125rem; color: var(--mute); }
@media (max-width: 760px) {
  .tabela thead { display: none; }
  .tabela, .tabela tbody { display: block; }
  .tabela tr { display: grid; grid-template-columns: 56px 1fr auto; grid-template-areas: "data pole status" "data srodek dawka"; gap: 4px 12px; padding: 14px 2px; border-bottom: 1px solid var(--rule); }
  .tabela td { padding: 0; border: 0; }
  .k-data { grid-area: data; } .k-pole { grid-area: pole; min-width: 0; } .k-status { grid-area: status; justify-self: end; }
  .k-srodek { grid-area: srodek; font-size: .875rem; color: var(--ink-2); min-width: 0; } .k-dawka { grid-area: dawka; justify-self: end; font-size: .875rem; }
  .k-kto, .k-strz, .k-przyczyna { display: none; }
  .k-pole span { display: none; }
}

.szczegol-status { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.szuflada .komorki { background: var(--white); border: 1px solid var(--rule-strong); border-radius: var(--r) var(--r) 0 0; }
.szuflada .komorki + .reguly { background: var(--white); border: 1px solid var(--rule-strong); border-top: 0; border-radius: 0 0 var(--r) var(--r); overflow: hidden; }
.szuflada .komorki:not(:has(+ .reguly)) { border-radius: var(--r); }
@media (min-width: 640px) { .szuflada .komorki { grid-template-columns: repeat(2, minmax(0, 1fr)); } .szuflada .komorki .kom:nth-child(2n) { border-right: 0; } .szuflada .komorki .kom:nth-child(4n) { border-right: 0; } .szuflada .komorki .kom:nth-child(odd) { border-right: 1px solid var(--rule); } }
.szuflada .komorki .kom:nth-last-child(-n+2) { border-bottom: 0; }
.szuflada .akcje { margin-top: 18px; }
.zrodlo { margin: 30px 0 0; padding-top: 22px; border-top: 1px solid var(--rule); }
.zrodlo blockquote { margin: 0; font-size: 1.25rem; font-stretch: 108%; font-weight: 520; line-height: 1.35; letter-spacing: -.01em; }
.zrodlo blockquote::before { content: "„"; }
.zrodlo blockquote::after { content: "”"; }
.zrodlo figcaption { margin-top: 8px; font-size: .8125rem; color: var(--mute); }
.historia { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--rule); }
.historia h3 { font-size: 1rem; font-weight: 680; font-stretch: 110%; margin-bottom: 16px; }
.historia ol > li { position: relative; padding: 0 0 18px 22px; border-left: 1px solid var(--rule-strong); margin-left: 4px; font-size: .9375rem; }
.historia ol > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.historia ol > li::before { content: ""; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.historia-kto { font-size: .875rem; }
.roznice { margin-top: 6px; display: grid; gap: 3px; font-size: .875rem; }
.roznice s { color: var(--mute); }
.roznice .ph { font-size: .8125rem; vertical-align: -1px; }

.kontrola { display: grid; gap: 28px; }
.kontrola-link h3 { font-size: 1.0625rem; font-weight: 680; font-stretch: 110%; margin-bottom: 4px; }
.link-utworz { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; font-size: .9375rem; font-weight: 600; }
.link-wynik { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.link-wynik:empty { display: none; }
.link-wynik .link-pole { flex: 1 1 260px; font-size: .875rem; min-height: 40px; }
.link-wynik .pole-pomoc { flex-basis: 100%; }

/* ---------- pola: pełnoekranowa mapa działek ---------- */
.glowna[data-widok="pola"] { padding: 0; }
.pola-uklad {
  --peek: 74px; --cien: 0 1px 2px rgba(0,0,0,.22), 0 3px 12px rgba(0,0,0,.14);
  position: relative; overflow: hidden;
  height: calc(100dvh - var(--gora) - var(--zak) - env(safe-area-inset-bottom));
}
.baner-miejsce:not(:empty) + .glowna .pola-uklad { height: calc(100dvh - var(--gora) - var(--zak) - env(safe-area-inset-bottom) - 48px); }
.mapa-w { position: absolute; inset: 0; background: #2b2f2a; }
.mapa, .mapa-w .mapa { position: absolute; inset: 0; background: #2b2f2a; font-family: var(--font); touch-action: none; -webkit-tap-highlight-color: transparent; }
/* mapa na całym ekranie: bez przewijania i „gumy” strony pod palcem */
html.na-mapie-pol, html.na-mapie-pol body { overscroll-behavior: none; }
@media (max-width: 959px) { html.na-mapie-pol body { overflow: hidden; } }
.mapa.na-mapie { background: #e9e9e4; }
.mapa-blad { color: var(--on-ink); padding: 96px 24px 24px; }

/* panel: na telefonie dolny arkusz, na komputerze kolumna obok mapy */
.pola-panel {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1000; display: flex; flex-direction: column;
  max-height: 80%; background: var(--paper); border-radius: 12px 12px 0 0; box-shadow: 0 -2px 18px rgba(0,0,0,.2);
  transition: transform .38s var(--ease);
}
.pola-panel[data-stan="zwiniety"] { transform: translateY(calc(100% - var(--peek))); }
.pola-panel[data-stan="polowa"] { max-height: 50%; }
.arkusz-uchwyt { flex: none; display: grid; place-items: center; height: 26px; width: 100%; border: 0; background: none; cursor: pointer; border-radius: 12px 12px 0 0; }
.arkusz-kreska { width: 40px; height: 4px; border-radius: 2px; background: var(--rule-strong); }
.arkusz-uchwyt:hover .arkusz-kreska { background: var(--mute); }
.arkusz-tresc { overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--gutter) 28px; min-height: 0; }
/* zwinięty arkusz na telefonie: jedna linijka, mapa zostaje odsłonięta */
.arkusz-peek {
  display: none; flex: none; align-items: center; justify-content: space-between; gap: 12px; width: 100%; height: 48px;
  margin-top: -4px; padding: 0 var(--gutter); border: 0; background: none; color: var(--ink); text-align: left;
  font: 650 1.0625rem/1.2 var(--font); font-stretch: 106%; cursor: pointer;
}
.arkusz-peek span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arkusz-peek .ph { flex: none; font-size: 1.125rem; color: var(--ink-2); }
.arkusz-peek.laduje span::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 9px; vertical-align: -1px; border: 2px solid var(--rule-strong); border-top-color: var(--ink); border-radius: 50%; animation: krec .8s linear infinite; }
.pola-panel[data-stan="zwiniety"] .arkusz-peek { display: flex; }
.pola-panel[data-stan="zwiniety"] .arkusz-tresc { visibility: hidden; }
@media (min-width: 960px) {
  .pola-uklad { height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 410px); }
  .baner-miejsce:not(:empty) + .glowna .pola-uklad { height: calc(100dvh - 48px); }
  .mapa-w { position: relative; inset: auto; }
  .pola-panel, .pola-panel[data-stan] { position: static; max-height: none; border-radius: 0; box-shadow: none; border-left: 1px solid var(--rule); transform: none !important; min-height: 0; }
  .arkusz-uchwyt, .pola-panel[data-stan] .arkusz-peek { display: none; }
  .pola-panel[data-stan] .arkusz-tresc { visibility: visible; }
  .arkusz-tresc { padding: 30px 28px 48px; height: 100%; }
}

/* pasek u góry mapy: wyszukiwarka i plakietka tetereny.pl */
.mapa-gora { position: absolute; z-index: 900; top: 12px; left: 12px; right: 12px; display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; pointer-events: none; }
.mapa-gora > * { pointer-events: auto; }
.szukaj { position: relative; flex: 0 1 440px; min-width: 0; }
.szukaj-ikona { position: absolute; left: 14px; top: 13px; font-size: 1.125rem; color: var(--ink-2); pointer-events: none; }
.szukaj input.szukaj-input:not([type=checkbox]):not([type=radio]) {
  min-height: 44px; height: 44px; padding: 0 42px 0 42px; border: 0; border-radius: var(--r); background: var(--white);
  box-shadow: var(--cien); font-size: 1rem; -webkit-appearance: none; appearance: none;
}
.szukaj input.szukaj-input:not([type=checkbox]):not([type=radio]):focus { box-shadow: var(--cien), 0 0 0 2px var(--ink); }
.szukaj-input::-webkit-search-cancel-button { display: none; }
.szukaj-czysc { position: absolute; right: 2px; top: 2px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: var(--r); background: none; color: var(--ink-2); cursor: pointer; }
.szukaj-czysc:hover { color: var(--ink); background: var(--paper); }
.szukaj-lista {
  position: absolute; left: 0; right: 0; top: 50px; max-height: min(52vh, 420px); overflow-y: auto; padding: 6px;
  background: var(--white); border-radius: var(--r); box-shadow: var(--cien);
}
.szukaj-opcja { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 10px; border-radius: 4px; cursor: pointer; line-height: 1.3; }
.szukaj-opcja .ph { font-size: 1.125rem; margin-top: 1px; color: var(--ink-2); }
.szukaj-opcja b { display: block; font-weight: 620; }
.szukaj-opcja small { display: block; color: var(--mute); font-size: .8125rem; margin-top: 2px; }
.szukaj-opcja:hover, .szukaj-opcja[aria-selected="true"] { background: var(--paper-2); }
.szukaj-info { padding: 10px; font-size: .875rem; color: var(--ink-2); }
.mapa-plakietka {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px 0 12px;
  border-radius: var(--r); background: var(--white); box-shadow: var(--cien); color: var(--ink);
  font-size: .875rem; font-weight: 620; text-decoration: none; white-space: nowrap;
}
.mapa-plakietka img { display: block; width: 22px; height: 22px; }
.mapa-plakietka:hover { text-decoration: underline; text-underline-offset: .22em; }
@media (max-width: 640px) {
  .mapa-plakietka { width: 44px; padding: 0; justify-content: center; }
  .mapa-plakietka-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* podpowiedź i stan wskazywania */
.mapa-podpowiedz {
  position: absolute; z-index: 850; top: 66px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 24px);
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r);
  background: rgba(22,22,22,.86); color: var(--on-ink); font-size: .875rem; font-weight: 600; pointer-events: none; white-space: nowrap;
}
.mapa-podpowiedz.laduje::before { content: ""; width: 12px; height: 12px; flex: none; border: 2px solid var(--on-ink-mute); border-top-color: var(--on-ink); border-radius: 50%; animation: krec .8s linear infinite; }
.mapa-podpowiedz.mrug { animation: mrug .5s var(--ease); }
@keyframes krec { to { transform: rotate(360deg); } }
@keyframes mrug { 30% { transform: translateX(-50%) scale(1.08); background: var(--ink); } }
@keyframes punkt { 50% { opacity: .55; } }

/* dół mapy: podkład i źródło */
.mapa-dol { position: absolute; z-index: 800; left: 12px; right: 72px; bottom: calc(var(--peek) + 10px); display: grid; gap: 8px; justify-items: start; pointer-events: none; }
.mapa-dol > * { pointer-events: auto; }
/* „Dodaj pole” na mapie tylko na telefonie (na komputerze jest w kolumnie z listą), znika w trakcie zaznaczania */
.mapa-dodaj { box-shadow: var(--cien); }
.wybieranie .mapa-dodaj, .w-starcie .mapa-dodaj { display: none; }
@media (min-width: 960px) { .mapa-dodaj { display: none; } }
.mapa-zrodlo { max-width: 100%; padding: 2px 7px; border-radius: 4px; background: rgba(244,244,241,.88); font-size: 12px; color: var(--ink-2); }
.mapa-zrodlo a { color: inherit; }
@media (min-width: 960px) {
  .mapa-dol { bottom: 14px; left: 14px; right: 72px; }
  .mapa-gora { top: 14px; left: 14px; right: 14px; }
  .mapa-podpowiedz { top: 70px; }
}
.mapa-punkt { width: 18px; height: 18px; border: 2px solid #fff; border-radius: 50%; background: rgba(22,22,22,.6); box-shadow: 0 0 0 2px rgba(22,22,22,.45); animation: punkt 1s var(--ease) infinite; pointer-events: none; }
.mapa-ja { width: 16px; height: 16px; border: 3px solid #fff; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 6px rgba(22,22,22,.18), 0 1px 4px rgba(0,0,0,.4); pointer-events: none; }
/* nazwy pól gospodarstwa (znaczniki DOM, niezależne od czcionek stylu mapy) */
.mapa-etykieta-pole {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 5px; border: 1px solid rgba(22,22,22,.9); border-radius: 4px;
  background: rgba(255,255,255,.94); color: var(--ink); font: 680 .8125rem/1.25 var(--font); font-stretch: 104%; white-space: nowrap;
  cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.mapa-etykieta-pole .wzor { width: 14px; height: 14px; }
.mapa-etykieta-pole:hover { background: var(--white); text-decoration: underline; text-underline-offset: .2em; }
.mapa-etykieta-pole.wybrane { background: var(--ink); color: var(--on-ink); }
.mapa-etykieta-pole.wybrane .wzor { background-color: var(--white); border-color: var(--white); }
.wybieranie .mapa-etykieta-pole { pointer-events: none; opacity: .72; }
.bez-etykiet .mapa-etykieta-pole { display: none; }

/* wzory pól: te same kreskowania co na mapie (obrazWzoru w pola.js), znaczek przy nazwie na liście i w etykiecie */
.wzor { display: inline-block; flex: none; width: 18px; height: 18px; border: 2px solid var(--kol, var(--ink)); border-radius: 3px; background-color: var(--white); }
.wzor-0 { background-image: repeating-linear-gradient(-45deg, transparent 0 3px, rgba(22,22,22,.7) 3px 4.5px); }
.wzor-1 { background-image: repeating-linear-gradient(45deg, transparent 0 3px, rgba(22,22,22,.7) 3px 4.5px); }
.wzor-2 { background-image: repeating-linear-gradient(0deg, transparent 0 3px, rgba(22,22,22,.7) 3px 4.5px); }
.wzor-3 { background-image: radial-gradient(rgba(22,22,22,.8) 1.3px, transparent 1.6px); background-size: 5px 5px; }
.wzor-4 { background-image: repeating-linear-gradient(90deg, transparent 0 3px, rgba(22,22,22,.7) 3px 4.5px); }
.wzor-5 { background-image: repeating-linear-gradient(45deg, transparent 0 3.5px, rgba(22,22,22,.6) 3.5px 5px), repeating-linear-gradient(-45deg, transparent 0 3.5px, rgba(22,22,22,.6) 3.5px 5px); }

/* przybliżanie i lokalizacja: duże przyciski po prawej, nad zwiniętym arkuszem */
.mapa-sterowanie { position: absolute; z-index: 800; right: 12px; bottom: calc(var(--peek) + 12px); display: grid; gap: 10px; justify-items: end; }
.mapa-ster-grupa { display: grid; border-radius: var(--r); background: var(--white); box-shadow: var(--cien); overflow: hidden; }
.mapa-ster-grupa .mapa-ster { box-shadow: none; border-radius: 0; }
.mapa-ster-grupa .mapa-ster + .mapa-ster { border-top: 1px solid var(--rule); }
.mapa-ster {
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: var(--r);
  background: var(--white); color: var(--ink); box-shadow: var(--cien); cursor: pointer; font-size: 1.375rem;
}
.mapa-ster:hover { background: var(--paper); }
.mapa-ster:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.mapa-lok.laduje .ph { animation: krec 1.2s linear infinite; }
@media (min-width: 960px) {
  .mapa-sterowanie { right: 14px; bottom: 14px; }
  .mapa-ster { width: 44px; height: 44px; font-size: 1.25rem; }
}
.w-starcie .mapa-sterowanie .mapa-lok { display: none; }

/* start bez pól: wyszukiwarka i lokalizacja na środku mapy */
.mapa-start {
  position: absolute; z-index: 950; left: 50%; top: 42%; transform: translate(-50%, -50%);
  width: min(520px, calc(100% - 24px)); padding: 24px 22px 22px; border-radius: 10px;
  background: var(--paper); box-shadow: 0 2px 6px rgba(0,0,0,.18), 0 18px 48px rgba(0,0,0,.28);
  display: grid; gap: 12px;
}
.mapa-start[hidden] { display: none; }
.mapa-start h2 { font-size: 1.625rem; font-weight: 760; font-stretch: 122%; letter-spacing: -.032em; line-height: 1.05; }
.mapa-start p { color: var(--ink-2); font-size: .9375rem; line-height: 1.45; }
.mapa-start .szukaj { flex: none; width: 100%; margin-top: 4px; }
.mapa-start .szukaj input.szukaj-input:not([type=checkbox]):not([type=radio]) { height: 54px; min-height: 54px; font-size: 1.0625rem; box-shadow: inset 0 0 0 1px var(--rule-strong); }
.mapa-start .szukaj input.szukaj-input:not([type=checkbox]):not([type=radio]):focus { box-shadow: inset 0 0 0 2px var(--ink); }
.mapa-start .szukaj-ikona { top: 18px; }
.mapa-start .szukaj-czysc { top: 7px; }
.mapa-start .szukaj-lista { top: 60px; z-index: 2; }
.mapa-start-lok { width: 100%; }
.w-starcie .mapa-gora { justify-content: flex-end; }
.w-starcie .mapa-podpowiedz { display: none; }
@media (min-width: 960px) { .mapa-start { top: 45%; padding: 30px 30px 28px; } .mapa-start h2 { font-size: 2rem; } }

/* treść panelu */
.arkusz-glowa { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 2px 0 16px; }
.arkusz-glowa-t { min-width: 0; }
.arkusz-glowa h2 { font-size: 1.625rem; font-weight: 740; font-stretch: 122%; letter-spacing: -.032em; line-height: 1.05; overflow-wrap: anywhere; }
.arkusz-glowa p { margin-top: 5px; color: var(--mute); font-size: .9375rem; line-height: 1.4; }
.arkusz-glowa-akcje { flex: none; display: flex; gap: 8px; }
@media (min-width: 960px) { .arkusz-glowa h2 { font-size: 2rem; } .arkusz-szybka { display: none; } }
.arkusz-wstecz { min-height: 30px; margin-bottom: 6px; font-size: .875rem; color: var(--ink-2); }
.arkusz-sekcja { margin: 28px 0 8px; font-size: 1rem; font-weight: 680; font-stretch: 110%; letter-spacing: -.01em; }
.pola-start { display: grid; gap: 12px; color: var(--ink-2); }
.pola-kroki { list-style: decimal; padding-left: 22px; display: grid; gap: 6px; }
.pola-kroki li::marker { font-weight: 700; }
.pola-nota { margin-top: 18px; font-size: .8125rem; }
.pole-aliasy { margin: -6px 0 4px; font-size: .9375rem; color: var(--ink-2); }
.dz-dane dd { overflow-wrap: anywhere; }
.dz-teryt { font-variant-numeric: tabular-nums; font-weight: 500; }
.dz-akcje { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; margin-top: 18px; }
.dz-obok { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: baseline; padding: 12px 2px; line-height: 1.35; }
.dz-obok .ph { font-size: 1.0625rem; color: var(--ink-2); transform: translateY(2px); }
.dz-odl { font-variant-numeric: tabular-nums; font-weight: 620; white-space: nowrap; font-size: .9375rem; color: var(--ink-2); }
.dz-uwaga { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: .8125rem; color: var(--ink-2); line-height: 1.45; }
.dz-uwaga .ph { font-size: 1rem; flex: none; margin-top: 1px; }
.dz-zrodlo { margin-top: 30px; font-size: .8125rem; color: var(--mute); }
.dz-zrodlo a { color: inherit; }
.dz-wiersz { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 2px; min-height: 56px; }
.dz-wiersz b { display: block; font-weight: 620; }
.dz-wiersz .dz-ha { grid-column: auto; grid-row: auto; }
.dz-wiersz small { display: block; color: var(--mute); font-size: .8125rem; overflow-wrap: anywhere; }
.dz-blad { display: grid; gap: 8px; justify-items: start; padding: 6px 0 4px; }
.dz-blad h2 { font-size: 1.3125rem; font-weight: 720; font-stretch: 116%; letter-spacing: -.02em; line-height: 1.15; }
.dz-blad p { color: var(--ink-2); }
.dz-blad-ikona { font-size: 2rem; }
.dz-laduje { display: grid; gap: 4px; }
.okno-podsumowanie { font-weight: 620; }
.wynik-akcje { display: flex; align-items: center; gap: 4px; }
.pola-lista { margin-top: 0; }
/* wiersz pola: nazwa i uprawa w jednej linii, hektary po prawej, akcje obok (ok. 40 px na komputerze) */
.pole-wiersz { display: flex; align-items: center; gap: 2px; padding-right: 2px; transition: background-color .2s; }
.pole-wiersz[aria-current="true"] { background: var(--white); box-shadow: inset 3px 0 0 var(--ink); }
.pole-wybierz {
  flex: 1; min-width: 0; display: grid; grid-template-columns: auto minmax(0, max-content) minmax(0, 1fr) auto; column-gap: 10px; align-items: baseline;
  min-height: 40px; padding: 8px 6px 8px 4px; border: 0; background: none; text-align: left; line-height: 1.3; cursor: pointer;
}
.pole-wybierz > .wzor { grid-column: 1; grid-row: 1; align-self: center; }
.pole-wybierz:hover .pole-nazwa { text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; }
.pole-nazwa { grid-column: 2; font-weight: 650; font-size: 1rem; font-stretch: 104%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pole-opis { grid-column: 3; font-size: .8125rem; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pole-ha { grid-column: 4; grid-row: 1; font-variant-numeric: tabular-nums; font-weight: 600; font-size: .9375rem; white-space: nowrap; }
.pole-wiersz .ikona-btn { width: var(--wys-btn-sm); height: var(--wys-btn-sm); }
.pole-wiersz .ikona-btn .ph { font-size: 1.125rem; }
.pole-kolejnosc { display: flex; flex: none; }
/* telefon: dwie linie (nazwa, pod nią uprawa), dalej zwarcie */
@media (max-width: 639px) {
  .pole-wybierz { grid-template-columns: auto minmax(0, 1fr) auto; row-gap: 1px; align-items: center; padding: 7px 6px 7px 4px; }
  .pole-wybierz > .wzor { grid-row: 1 / span 2; }
  .pole-nazwa { white-space: normal; overflow-wrap: anywhere; }
  .pole-opis { grid-column: 2; grid-row: 2; }
  .pole-ha { grid-column: 3; grid-row: 1 / span 2; }
}
.pola-suma { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.pola-suma span:first-child { color: var(--ink-2); font-weight: 560; }
.pola-linki { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 8px; font-size: .875rem; }
.pola-linki .link-btn { min-height: 32px; }

/* edycja nazwy i innych nazw w miejscu (lista i karta pola) */
.edytor-nazw { display: grid; gap: 10px; padding: 14px 0 16px; }
.edytor-etykieta { font-size: .875rem; font-weight: 600; }
.chipy { display: flex; flex-wrap: wrap; gap: 6px; }
.chipy:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 10px; border: 1px solid var(--rule-strong); border-radius: var(--r); background: var(--white); font-size: .875rem; font-weight: 560; color: var(--ink); }
button.chip { cursor: pointer; }
button.chip:hover { border-color: var(--ink); }
button.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.chip-usun { padding-right: 2px; }
.chip-usun button { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 4px; background: none; cursor: pointer; color: var(--ink-2); }
.chip-usun button:hover { background: var(--paper-2); color: var(--ink); }
.chipy-wybor { margin-top: -4px; }
.pole-aliasow { display: grid; gap: 8px; }
.pole-aliasy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: -4px 0 6px; font-size: .9375rem; color: var(--ink-2); }
.pole-aliasy-t { color: var(--mute); }
.pole-aliasy-krotko { color: var(--mute); }
.arkusz-glowa h2 .wzor { width: 20px; height: 20px; margin-right: 10px; vertical-align: 1px; }

/* karta pola: wartości z „Zmień” w miejscu */
.wartosc-edycja { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.wartosc-edycja .link-btn { min-height: 28px; font-size: .875rem; color: var(--ink-2); font-weight: 560; }
.wartosc-form { display: flex; align-items: center; gap: 6px; width: 100%; }
.wartosc-form input { flex: 1; min-width: 0; }
.pole-dane dd { font-weight: 560; }
.dz-wiersz-akcje { display: flex; }
.pole-usun { margin-top: 30px; padding-top: 12px; border-top: 1px solid var(--rule); }

/* karta działki: dyskretny odnośnik do płatnego raportu */
.dz-raport { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; font-size: .9375rem; font-weight: 600; color: var(--ink-2); text-decoration-color: var(--rule-strong); }
.dz-raport:hover { color: var(--ink); text-decoration-color: currentColor; }
.dz-raport .ph { font-size: 1rem; }

/* kreator „Dodaj pole” */
.wybor-pomoc { display: grid; gap: 8px; padding: 14px 16px; border: 1px dashed var(--rule-strong); border-radius: var(--r); background: var(--white); }
.dz-w-polu { display: flex !important; align-items: center; gap: 4px; color: var(--ink-2) !important; font-weight: 560; }
.konflikt { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 14px; border-radius: var(--r); background: var(--uwaga-tlo); color: var(--ink); border: 1px solid var(--uwaga-obrys); }
.konflikt > .ph { color: var(--uwaga); font-size: 1.25rem; margin-top: 1px; }
.konflikt p { font-weight: 560; margin-bottom: 12px; }
.okno-kreator { max-width: 600px; }
.kreator { gap: 22px; }
.kreator-dzialki { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 12px 14px; border-radius: var(--r); background: var(--paper-2); }
.kreator-dzialki .okno-podsumowanie span { font-weight: 500; }
.kreator-dzialki .link-btn { min-height: 28px; font-size: .9375rem; }
.kreator-krok { display: grid; gap: 12px; }
.kreator-krok legend { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 1.0625rem; font-weight: 700; font-stretch: 108%; letter-spacing: -.01em; }
.kreator-nr { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-size: .8125rem; font-weight: 700; font-stretch: 100%; }
.kreator-gotowe { display: grid; gap: 10px; justify-items: start; }
.kreator-gotowe h3 { font-size: 1.375rem; font-weight: 740; font-stretch: 118%; letter-spacing: -.025em; line-height: 1.15; }
.kreator-gotowe-ikona { font-size: 2.25rem; }
.kreator-gotowe .akcje { margin-top: 10px; }
.pola-brak { margin: 8px 0 0; }
.wolne { margin-top: 40px; display: grid; gap: 16px; }
.wolne .sekcja-t { margin-bottom: 0; }
.wolne > .btn { justify-self: start; }
.dzialka-wiersz { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 12px; align-items: center; padding: 12px 2px; cursor: pointer; }
.dzialka-wiersz input { grid-row: 1 / span 2; }
.dz-numer { font-weight: 620; }
.dz-opis { grid-column: 2; font-size: .8125rem; color: var(--mute); overflow-wrap: anywhere; }
.dz-ha { grid-column: 3; grid-row: 1 / span 2; font-variant-numeric: tabular-nums; font-size: .9375rem; }
.dzialki-pola legend { margin-bottom: 8px; }
.dodaj { display: grid; }
.dodaj-sekcja { display: grid; gap: 12px; padding: 20px 0; border-top: 1px solid var(--rule); }
.dodaj-sekcja:first-child { padding-top: 0; border-top: 0; }
.dodaj-sekcja h3 { font-size: 1.0625rem; font-weight: 680; font-stretch: 110%; }
.dodaj-sekcja > .btn { justify-self: start; }
.wynik { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 12px 2px; }
.wynik b { display: block; }
.wynik small { display: block; color: var(--mute); font-size: .8125rem; }
.plik { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px dashed var(--rule-strong); border-radius: var(--r); background: var(--white); cursor: pointer; font-weight: 600; }
.plik:hover, .plik:focus-within { border-color: var(--ink); }
.plik:focus-within { box-shadow: 0 0 0 3px rgba(22,22,22,.12); }
.plik .ph { font-size: 1.5rem; }
.plik-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.podsumowanie { display: grid; gap: 4px; font-size: .9375rem; }

/* ---------- ludzie ---------- */
.osoba { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 40px; grid-template-areas: "znak dane rola usun"; gap: 4px 14px; align-items: center; padding: 14px 2px; }
.osoba-znak { grid-area: znak; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r); background: var(--paper-2); font-weight: 700; font-stretch: 115%; }
.osoba-zaproszona .osoba-znak { background: transparent; border: 1px dashed var(--rule-strong); }
.osoba-dane { grid-area: dane; min-width: 0; }
.osoba-dane b { display: block; font-weight: 640; overflow: hidden; text-overflow: ellipsis; }
.osoba-dane small { display: block; color: var(--mute); font-size: .875rem; overflow-wrap: anywhere; }
.osoba-rola { grid-area: rola; }
.osoba > .ikona-btn { grid-area: usun; }
.rola-tekst { font-size: .9375rem; font-weight: 560; color: var(--ink-2); }
@media (max-width: 600px) {
  .osoba { grid-template-columns: 40px minmax(0, 1fr) 40px; grid-template-areas: "znak dane usun" "znak rola usun"; }
  .osoba-rola { justify-self: start; }
}
.pola-wybor { display: grid; gap: 10px; }
.pola-lista-wybor { display: grid; gap: 8px; padding-left: 30px; }
.pola-wybor.wszystkie .pola-lista-wybor { display: none; }
.link-wiersz { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 2px; }
.link-wiersz b { display: block; font-weight: 600; }
.link-wiersz small { color: var(--mute); }
.role-opis dt { color: var(--ink); font-weight: 620; }
.role-opis dd { font-weight: 400; color: var(--ink-2); }

/* ---------- konto: spis zwartych sekcji rozwijanych ---------- */
.konto .widok-glowa { margin-bottom: 16px; }
.konto-lista { border-top: 1px solid var(--rule); }
.konto-sekcja { border-bottom: 1px solid var(--rule); }
.konto-glowa {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 60px; padding: 10px 6px 10px 2px;
  list-style: none; cursor: pointer; color: var(--ink); text-decoration: none; border-radius: var(--r); transition: background-color .15s var(--ease);
}
.konto-glowa::-webkit-details-marker { display: none; }
.konto-glowa:hover { background: rgba(22,22,22,.035); }
.konto-glowa:focus-visible { outline-offset: -2px; }
.konto-ikona { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--white); box-shadow: inset 0 0 0 1px var(--rule); font-size: 1.1875rem; }
.konto-t { min-width: 0; display: grid; line-height: 1.3; }
.konto-t b { font-weight: 650; font-stretch: 106%; }
.konto-opis { color: var(--mute); font-size: .875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.konto-strz { color: var(--mute); font-size: 1rem; transition: transform .2s var(--ease); }
.konto-sekcja[open] > .konto-glowa .konto-strz { transform: rotate(180deg); }
.konto-sekcja[open] > .konto-glowa .konto-ikona { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.konto-cialo { display: grid; gap: 14px; padding: 4px 0 24px 50px; }
.konto-cialo > .formularz + .arkusz-dl { margin-top: 0; }
.konto-cialo .plan-wybor { margin: 8px 0 0; }
.konto-cialo .plan-duzy { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 6px; }
.konto-cialo .plan-stan { padding-bottom: 0; }
.konto-cialo .sms-instr { margin: 0; }
.konto-cialo .akcje-lewo { margin-top: 2px; }
.konto-link { border-bottom: 1px solid var(--rule); border-radius: 0; }
.konto-koniec { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin-top: 24px; }
@media (max-width: 640px) {
  .konto-cialo { padding-left: 0; }
  .konto-glowa { min-height: 56px; }
  .konto .widok-podtytul { font-size: .875rem; }
}
.plan-stan { padding-bottom: 8px; }
.plan-duzy { font-size: clamp(2.25rem, 5vw, 3.25rem); margin-bottom: 12px; }
.plan-stan > p:not(.plan-duzy) { color: var(--ink-2); max-width: 56ch; }
.pasek-proby { height: 4px; margin-top: 18px; border-radius: 2px; background: var(--rule); overflow: hidden; max-width: 420px; }
.pasek-proby-w { display: block; height: 100%; background: var(--ink); }
.plan-wybor { margin: 28px 0 14px; }
.plany { display: grid; }
.plan { display: grid; align-content: start; gap: 6px; padding: 24px; background: var(--white); border: 1px solid var(--rule-strong); }
.plan:first-child { border-radius: var(--r) var(--r) 0 0; }
.plan:last-child { border-radius: 0 0 var(--r) var(--r); border-top: 0; }
@media (min-width: 640px) {
  .plany { grid-template-columns: 1fr 1fr; }
  .plan:first-child { border-radius: var(--r) 0 0 var(--r); }
  .plan:last-child { border-radius: 0 var(--r) var(--r) 0; border-top: 1px solid var(--rule-strong); border-left: 0; }
}
.plan h3 { font-size: 1.125rem; font-weight: 680; font-stretch: 110%; }
.plan-cena { color: var(--mute); }
.plan-cena b { font-size: 2.125rem; font-weight: 760; font-stretch: 122%; letter-spacing: -.03em; color: var(--ink); }
.plan-opis { color: var(--ink-2); font-size: .9375rem; min-height: 3em; }
.plan .btn { margin-top: 14px; }
.plany + .pole-pomoc { margin-top: 12px; }
.sms-instr { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin: 18px 0; background: var(--white); border: 1px solid var(--rule-strong); border-radius: var(--r); }
.sms-instr .ph { font-size: 1.375rem; flex: none; }
.sekcja .formularz + .link-btn { margin-top: 10px; }

/* ---------- logowanie i start ---------- */
.wejscie { min-height: 100dvh; display: grid; }
@media (min-width: 960px) { .wejscie:not(.wejscie-jedna) { grid-template-columns: minmax(480px, 1fr) 1fr; } }
.wejscie-forma { display: flex; flex-direction: column; padding: 24px clamp(24px, 4vw, 48px); min-height: 100dvh; }
.wejscie-pasek { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.wejscie-forma > main { flex: 1; display: grid; align-items: center; padding: 32px 0; }
.wejscie-srodek { width: 100%; max-width: 380px; margin: 0 auto; }
.wejscie-jedna .wejscie-srodek { max-width: 520px; }
/* nagłówek w skali panelu (jak H1 widoku, odrobinę większy), pola i przyciski z tokenów gęstości */
.wejscie h1 { font-size: clamp(1.875rem, 2.6vw, 2.375rem); }
.wejscie-lead { margin: 8px 0 22px; color: var(--ink-2); font-size: 1rem; line-height: 1.5; }
.wejscie-form { display: grid; gap: 14px; }
.wejscie-form .btn-wide { margin-top: 4px; }
.turnstile { min-height: 65px; }
.albo { display: flex; align-items: center; gap: 14px; margin: 20px 0 14px; color: var(--mute); font-size: .875rem; }
.albo::before, .albo::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.google-btn { min-height: 44px; max-height: 48px; overflow: hidden; display: flex; justify-content: center; }
.google-btn svg { max-width: 20px; max-height: 20px; }
.wejscie-dalej { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.wejscie-dalej .link-btn { min-height: 32px; font-size: .9375rem; }
.wejscie-stopka { font-size: .8125rem; color: var(--mute); }
/* telefon: formularz w pierwszym ekranie, bez zdjęcia */
@media (max-width: 959px) {
  .wejscie-forma { padding: 16px var(--gutter) 20px; }
  .wejscie-forma > main { align-items: start; padding: 28px 0 24px; }
  .wejscie h1 { font-size: 1.875rem; }
  .wejscie-lead { margin: 6px 0 18px; font-size: .9375rem; }
  .wejscie-form { gap: 12px; }
}
.wejscie-foto { display: none; margin: 0; position: relative; background: #20251d; }
@media (min-width: 960px) {
  .wejscie-foto { display: block; position: sticky; top: 0; height: 100dvh; }
  .wejscie-foto picture, .wejscie-foto img { width: 100%; height: 100%; object-fit: cover; }
  .wejscie-foto figcaption { position: absolute; left: 24px; bottom: 24px; max-width: 30ch; padding: 10px 14px; border-radius: var(--r); background: var(--ink); color: var(--on-ink); font-weight: 600; font-size: .9375rem; }
}
.kroki { counter-reset: k; margin: 8px 0 32px; border-top: 1px solid var(--ink); }
.kroki li { counter-increment: k; display: grid; grid-template-columns: 32px 1fr; gap: 2px 8px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.kroki li::before { content: counter(k); grid-row: 1 / span 2; font-weight: 650; font-variant-numeric: tabular-nums; }
.kroki b { font-weight: 650; font-stretch: 106%; }
.kroki span { color: var(--ink-2); font-size: .9375rem; }

/* ---------- inspekcja ---------- */
.inspekcja-gora { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px var(--gutter); border-bottom: 1px solid var(--rule); }
.inspekcja-znacznik { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--info-obrys); background: var(--info-tlo); color: var(--info); border-radius: 4px; font-size: .8125rem; font-weight: 620; }
.inspekcja-tresc { max-width: 1240px; margin: 0 auto; padding: 36px var(--gutter) 64px; }


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Logowanie i rejestracja hasłem */
.segment-pelny { display: grid; grid-template-columns: 1fr 1fr; width: 100%; margin-bottom: 18px; }
.segment-pelny .segment-btn { justify-content: center; min-height: var(--wys-btn-sm); }
.haslo { position: relative; }
.haslo input { width: 100%; padding-right: 48px; }
.haslo-pokaz { position: absolute; top: 0; right: 0; bottom: 0; width: 46px; display: grid; place-items: center; border: 0; background: transparent; color: var(--mute); cursor: pointer; border-radius: 0 var(--r) var(--r) 0; font-size: 1.125rem; }
.haslo-pokaz:hover, .haslo-pokaz[aria-pressed="true"] { color: var(--ink); }
.wejscie-dalej.wyroznij .link-btn { text-decoration-color: currentColor; font-weight: 650; }

/* ======================================================================
   Panel v2: pulpit, wyszukiwarka, arkusz Więcej, skróty, stany „Wkrótce”
   ====================================================================== */

.widok-tytul-kolumna { flex-direction: column; align-items: flex-start; gap: 10px; }
.widok-podtytul .kropka { color: var(--rule-strong); }
.podtytul-a { color: inherit; text-decoration-color: var(--rule-strong); }
.podtytul-a:hover { color: var(--ink); text-decoration-color: currentColor; }
.akcje-srodek { justify-content: center; }
.sekcja-opis { color: var(--mute); font-size: .9375rem; margin: -2px 0 12px; }
.arkusz-wiersz[aria-current] { background: var(--white); box-shadow: inset 3px 0 0 var(--ink); padding-left: 12px; }
.arkusz-wiersz .gosp-znak { width: 32px; height: 32px; font-size: .875rem; }
.okno-stopka { margin-top: 18px; }

/* pulpit */
.pulpit-glowa h1 { font-size: var(--t-h1); }
.start-lista { margin: 0 0 24px; padding: 16px 16px 4px; background: var(--white); border: 1px solid var(--rule-strong); border-radius: var(--r); }
.start-lista-glowa { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.start-lista-glowa .sekcja-t { margin-bottom: 2px; }
.start-lista-glowa .mute { font-size: .9375rem; }
.start-lista-licznik { white-space: nowrap; color: var(--mute); font-size: .9375rem; }
.start-lista-licznik b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.postep { height: 4px; margin: 12px 0 4px; border-radius: 2px; background: var(--paper-2); overflow: hidden; }
.postep-w, .karencja-pasek-w { display: block; height: 100%; background: var(--ok-znak); border-radius: inherit; transition: width .6s var(--ease); }
.kroki-start > li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.kroki-start > li:last-child { border-bottom: 0; }
.krok-znak { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--rule-strong); color: var(--ink-2); }
.krok-znak .ph { font-size: 1rem; }
.krok-t { min-width: 0; display: grid; line-height: 1.35; }
.krok-t b { font-weight: 650; font-stretch: 104%; }
.krok-t small { color: var(--mute); font-size: .875rem; }
.krok-gotowy .krok-znak { background: var(--ok-tlo); border-color: var(--ok-obrys); color: var(--ok); }
.krok-gotowy .krok-t b { color: var(--mute); font-weight: 560; text-decoration: line-through; text-decoration-color: var(--rule-strong); }
@media (max-width: 600px) {
  .start-lista { padding: 14px 14px 4px; }
  .start-lista-glowa .mute { display: none; }
  .kroki-start > li { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; padding: 8px 0; }
  .kroki-start > li:not(.krok-teraz) .krok-t small { display: none; }
  .kroki-start .btn { min-height: 36px; padding: 0 10px; font-size: .8125rem; }
  .krok-znak { width: 28px; height: 28px; }
}
@media (max-width: 959px) { .pulpit-glowa .widok-akcje { display: none; } }
@media (max-width: 640px) { .uwaga-wiersz { grid-template-columns: minmax(0, 1fr) auto; } }
.krok-teraz .krok-znak { border-color: var(--ink); border-width: 2px; color: var(--ink); }

.liczby-sekcja { margin-bottom: 28px; }
.liczby { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
@media (min-width: 720px) { .liczby { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.liczba { border-bottom: 1px solid var(--rule); min-width: 0; display: grid; }
.liczba:nth-child(odd) { border-right: 1px solid var(--rule); }
@media (min-width: 720px) { .liczba { border-right: 1px solid var(--rule); } .liczba:last-child { border-right: 0; } }
.liczba-a, .liczba-s { display: grid; align-content: start; padding: 12px 12px 12px 2px; text-decoration: none; transition: background-color .2s var(--ease); }
.liczba:nth-child(even) .liczba-a, .liczba:nth-child(even) .liczba-s { padding-left: 12px; }
@media (min-width: 720px) { .liczba:not(:first-child) .liczba-a, .liczba:not(:first-child) .liczba-s { padding-left: 16px; } }
.liczba-a:hover { background: var(--white); }
.liczba-a:hover .liczba-e { color: var(--ink); text-decoration: underline; text-underline-offset: .22em; }
.liczba-w { font-size: var(--t-liczba); font-weight: 740; font-stretch: 116%; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.liczba-e { margin-top: 6px; color: var(--mute); font-size: .875rem; line-height: 1.35; }

.pulpit-siatka { display: grid; gap: 32px; }
@media (min-width: 1180px) { .pulpit-siatka { grid-template-columns: minmax(0, 1fr) minmax(280px, 320px); gap: 40px; align-items: start; } }
.pulpit-glowna, .pulpit-boczna { display: grid; gap: 32px; min-width: 0; align-content: start; }
.pulpit-sekcja .sekcja-glowa { margin-bottom: 12px; }
.pulpit-sekcja .link-btn { min-height: 32px; font-size: .9375rem; }
.pulpit-pusto { display: flex; gap: 10px; align-items: flex-start; padding: 12px 2px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); color: var(--ink-2); font-size: .9375rem; }
.pulpit-pusto .ph { font-size: 1.375rem; flex: none; color: var(--ink); }
.pulpit-pusto b { color: var(--ink); font-weight: 650; }

.szybki-agent { display: grid; gap: 10px; }
.szybki-agent-e { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-h2); font-weight: 680; font-stretch: 112%; letter-spacing: -.015em; }
.szybki-agent-e .ph { font-size: 1.125rem; }
.szybki-agent-w { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 4px; border: 1px solid var(--rule-strong); border-radius: var(--r); background: var(--white); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.szybki-agent-w:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(22,22,22,.1); }
.szybki-agent-w input:not([type=checkbox]) { flex: 1; min-width: 0; min-height: 40px; border: 0 !important; box-shadow: none !important; background: transparent; padding: 0 10px; font-size: 1.0625rem; text-overflow: ellipsis; }

.uwaga-wiersz { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "status akcja" "tekst akcja"; gap: 6px 16px; align-items: center; padding: 10px 2px; }
@media (min-width: 640px) { .uwaga-wiersz { grid-template-columns: 150px minmax(0, 1fr) auto; grid-template-areas: "status tekst akcja"; } }
.uwaga-status { grid-area: status; }
.uwaga-t { grid-area: tekst; min-width: 0; display: grid; line-height: 1.35; }
.uwaga-t b { font-weight: 640; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uwaga-t small { color: var(--mute); font-size: .875rem; }
.uwaga-wiersz > .btn { grid-area: akcja; }

.karencja { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 10px 2px; }
.karencja-t { min-width: 0; display: grid; gap: 1px; line-height: 1.35; }
.karencja-t b { font-weight: 650; }
.karencja-t .mute { font-weight: 450; }
.karencja-t small { color: var(--mute); font-size: .875rem; }
.karencja-pasek { display: block; height: 3px; margin-top: 9px; max-width: 320px; border-radius: 2px; background: var(--paper-2); overflow: hidden; }
.karencja-ile { display: grid; justify-items: end; text-align: right; line-height: 1.2; }
.karencja-ile b { font-size: 1.125rem; font-weight: 740; font-stretch: 118%; letter-spacing: -.025em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.karencja-ile small { color: var(--mute); font-size: .8125rem; white-space: nowrap; margin-top: 3px; }

.ostatni { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto 18px; gap: 12px; align-items: center; padding: 9px 2px; text-decoration: none; }
.ostatni:hover .ostatni-t b { text-decoration: underline; text-underline-offset: .22em; }
.ostatni-data { font-weight: 650; font-variant-numeric: tabular-nums; }
.ostatni-t { min-width: 0; display: grid; line-height: 1.35; }
.ostatni-t b { font-weight: 640; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ostatni-t small { color: var(--mute); font-size: .875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ostatni-strz { color: var(--mute); }
@media (max-width: 520px) {
  .ostatni { grid-template-columns: 46px minmax(0, 1fr) auto; gap: 12px; }
  .ostatni-strz { display: none; }
  .ostatni .status > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ostatni .status-wstrzymany, .ostatni .status-do_potwierdzenia { padding: 3px 5px; }
}

.ostrzezenia { display: grid; gap: 8px; }
.ostrzezenie { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 4px 10px; align-items: start; padding: 10px 12px; border: 1px solid var(--rule-strong); border-radius: var(--r); background: var(--white); font-size: .9375rem; line-height: 1.45; }
.ostrzezenie > .ph { font-size: 1.25rem; margin-top: 1px; }
.ostrzezenie-a { grid-column: 2; justify-self: start; font-weight: 650; font-size: .875rem; }
.ostrzezenie.w-uwaga { background: var(--uwaga-tlo); border-color: var(--uwaga-obrys); }
.ostrzezenie.w-uwaga > .ph { color: var(--uwaga); }
.ostrzezenie.w-stop { background: var(--stop-tlo); border-color: var(--stop-obrys); box-shadow: inset 3px 0 0 var(--stop-znak); }
.ostrzezenie.w-stop > .ph { color: var(--stop); }
.ostrzezenie.w-stop .ostrzezenie-a { color: var(--stop); }

.obowiazek { padding: 14px 0 0; border-top: 1px solid var(--ink); display: grid; gap: 6px; justify-items: start; }
.obowiazek-dni { font-size: 1rem; color: var(--ink-2); line-height: 1; }
.obowiazek-dni b { font-size: var(--t-liczba); font-weight: 780; font-stretch: 125%; letter-spacing: -.045em; color: var(--ink); font-variant-numeric: tabular-nums; }
.obowiazek-t { font-size: 1.0625rem; font-weight: 650; font-stretch: 108%; letter-spacing: -.01em; line-height: 1.3; }
.obowiazek-opis { color: var(--ink-2); font-size: .9375rem; }
.obowiazek .link-btn { margin-top: 4px; }

/* szkielet pulpitu */
.pulpit-szkielet { display: grid; gap: 14px; }
.szk { border-radius: 4px; background: var(--paper-2); animation: puls 1.4s ease-in-out infinite; }
.szk-tytul { height: 48px; width: min(420px, 80%); }
.szk-pod { height: 16px; width: min(300px, 60%); margin-bottom: 26px; }
.szk-liczby { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 30px; }
@media (min-width: 720px) { .szk-liczby { grid-template-columns: repeat(4, 1fr); } }
.szk-liczba { height: 86px; }
.szk-siatka { display: grid; gap: 30px; }
@media (min-width: 1180px) { .szk-siatka { grid-template-columns: 1fr 340px; } }
.szk-siatka > div { display: grid; gap: 10px; align-content: start; }
.szk-wiersz { height: 56px; }
.szk-wiersz:nth-child(2n) { animation-delay: .15s; }

/* wyszukiwarka globalna */
.okno-szukaj { max-width: 640px; margin-top: min(12vh, 120px); }
.okno-szukaj .okno-glowa { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); padding: 0; }
.okno-szukaj .okno-cialo { padding: 0; }
.paleta-pole { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--rule); }
.paleta-pole .ph { font-size: 1.25rem; color: var(--ink-2); }
.paleta-pole input.paleta-input:not([type=checkbox]) { min-height: 60px; border: 0 !important; box-shadow: none !important; background: transparent; padding: 0; font-size: 1.125rem; -webkit-appearance: none; appearance: none; }
.paleta-input::-webkit-search-cancel-button { display: none; }
.paleta-lista { max-height: min(56vh, 460px); overflow-y: auto; padding: 6px 8px 10px; overscroll-behavior: contain; }
.paleta-grupa-t { padding: 12px 10px 6px; font-size: .8125rem; font-weight: 620; color: var(--mute); }
.paleta-opcja { display: grid; grid-template-columns: 22px minmax(0, 1fr) 18px; gap: 12px; align-items: center; padding: 10px; border-radius: var(--r); cursor: pointer; line-height: 1.3; }
.paleta-opcja > .ph:first-child { font-size: 1.125rem; color: var(--ink-2); }
.paleta-opcja b { display: block; font-weight: 620; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.paleta-opcja small { display: block; color: var(--mute); font-size: .8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.paleta-strz { opacity: 0; color: var(--ink-2); }
.paleta-opcja[aria-selected="true"] { background: var(--ink); color: var(--on-ink); }
.paleta-opcja[aria-selected="true"] > .ph, .paleta-opcja[aria-selected="true"] small { color: var(--on-ink-mute); }
.paleta-opcja[aria-selected="true"] .paleta-strz { opacity: 1; color: var(--on-ink); }
.paleta-info { padding: 14px 10px; color: var(--ink-2); font-size: .9375rem; }
.paleta-stopka { display: flex; gap: 18px; padding: 10px 16px; border-top: 1px solid var(--rule); color: var(--mute); font-size: .8125rem; }
.paleta-stopka span { display: inline-flex; align-items: center; gap: 4px; }
@media (max-width: 640px) {
  .okno.okno-szukaj { margin: 0; height: 100dvh; max-height: 100dvh; border-radius: 0; padding-bottom: 0; }
  .okno.okno-szukaj[open] { animation: okno .25s var(--ease); }
  .okno-szukaj .okno-cialo { display: flex; flex-direction: column; height: 100%; }
  .okno-szukaj .paleta-lista { max-height: none; flex: 1; }
  .paleta-stopka { display: none; }
  .okno-szukaj .paleta-pole { padding-right: 56px; }
  .okno-szukaj .okno-glowa { top: 10px; right: 10px; width: auto; height: auto; clip: auto; overflow: visible; z-index: 2; }
  .okno-szukaj .okno-glowa > div { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .okno-szukaj .okno-zamknij { margin: 0; }
}

/* arkusz Więcej i skróty */
.wiecej-grupa + .wiecej-grupa { margin-top: 16px; }
.wiecej-grupa .nav-grupa-t { padding: 0 0 4px; }
.wiecej-wiersz { gap: 12px; padding: 9px 4px; min-height: 52px; }
.wiecej-wiersz > .ph:first-child { font-size: 1.375rem; color: var(--ink-2); }
.wiecej-wiersz > span:nth-child(2) { min-width: 0; }
.wiecej-wiersz small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8125rem; }
.wiecej-wiersz .gosp-znak { width: 28px; height: 28px; font-size: .8125rem; }
.wiecej-strz { color: var(--mute); }
.okno-wiecej .arkusz-wiersz[aria-current] { padding-left: 12px; }
.okno-wiecej .okno-cialo { padding-top: 12px; }
.skroty > div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.skroty > div:first-child { border-top: 1px solid var(--rule); }
.skroty dt { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.skroty dd { color: var(--ink-2); font-size: .9375rem; }

/* sekcja w drodze */
.wkrotce { border-top: 1px solid var(--rule); padding-top: 8px; }
.wkrotce .pusto-ikona { width: 64px; height: 64px; display: grid; place-items: center; border: 1px dashed var(--rule-strong); border-radius: 50%; font-size: 1.75rem; }
.wkrotce-nota { display: flex; gap: 10px; align-items: flex-start; justify-content: center; max-width: 520px; margin: 0 auto; color: var(--mute); font-size: .875rem; text-align: left; }
.wkrotce-nota .ph { font-size: 1.0625rem; margin-top: 2px; }

/* zachęta w Ludziach */
.zacheta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; align-items: start; margin-top: 22px; padding: 18px; border: 1px dashed var(--rule-strong); border-radius: var(--r); }
.zacheta > .ph { font-size: 1.625rem; }
.zacheta b { font-weight: 650; }
.zacheta p { color: var(--ink-2); font-size: .9375rem; margin-top: 2px; }
.zacheta > .btn { grid-column: 2; justify-self: start; margin-top: 8px; }

/* agent: podpowiedzi, mikrofon, karta */
.podpowiedzi { display: grid; gap: 8px; }
@media (min-width: 640px) { .podpowiedzi { grid-template-columns: 1fr 1fr; } }
.podpowiedz {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; width: 100%; height: 100%; padding: 14px 16px;
  border: 1px solid var(--rule-strong); border-radius: var(--r); background: var(--white); text-align: left; cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.podpowiedz .ph { font-size: 1.25rem; margin-top: 1px; }
.podpowiedz b { display: block; font-weight: 640; font-size: 1rem; }
.podpowiedz small { display: block; color: var(--mute); font-size: .8125rem; margin-top: 2px; }
.podpowiedz:hover { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.podpowiedz:hover small { color: var(--on-ink-mute); }
.pisz-mikrofon {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; min-width: 40px; padding: 0 12px; flex: none;
  border: 1px solid var(--rule-strong); border-radius: var(--r); background: var(--white); color: var(--ink); font-weight: 620; font-size: .9375rem; cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.pisz-mikrofon .ph { font-size: 1.25rem; }
.pisz-mikrofon:hover { border-color: var(--ink); }
.pisz-mikrofon.nagrywa { border-color: var(--ink); }
@media (max-width: 420px) { .pisz-mikrofon-t { display: none; } .pisz-mikrofon { padding: 0; width: 40px; } }
.karta { margin-top: 16px; }
.karta-glowa { align-items: flex-start; padding: 14px 16px 12px; }
.karta-tytul { min-width: 0; }
.karta-tytul h3 { font-size: 1.125rem; font-weight: 700; font-stretch: 114%; letter-spacing: -.015em; line-height: 1.2; overflow-wrap: anywhere; }
.karta-tytul p { color: var(--mute); font-size: .875rem; margin-top: 2px; }
.karta-bez-pola { text-decoration: underline dashed var(--rule-strong); text-underline-offset: .24em; text-decoration-thickness: 1px; }
.karta-glowa .status { margin-top: 2px; }
.karta-stopka { display: flex; justify-content: flex-end; padding: 10px 16px; border-top: 1px solid var(--rule); }
.reguly-w > .reguly { border-bottom: 1px solid var(--rule); }
.reguly-w > .reguly .regula:last-child { border-bottom: 0; }
.reguly-zgodne summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; cursor: pointer; font-size: .875rem; font-weight: 600; color: var(--ink-2); list-style: none; }
.reguly-zgodne summary::-webkit-details-marker { display: none; }
.reguly-zgodne summary:hover { color: var(--ink); }
.reguly-zgodne summary > span { flex: 1; }
.reguly-zgodne[open] .reguly-strz { transform: rotate(180deg); }
.reguly-strz { transition: transform .2s var(--ease); }
.reguly-zgodne > .reguly { border-top: 1px solid var(--rule); }
.szuflada .reguly-w { background: var(--white); border: 1px solid var(--rule-strong); border-top: 0; border-radius: 0 0 var(--r) var(--r); overflow: hidden; }
.szuflada .komorki:has(+ .reguly-w) { border-radius: var(--r) var(--r) 0 0; }

/* zeszyt na telefonie: lista kart */
@media (max-width: 760px) {
  .tabela tbody { display: grid; gap: 8px; }
  .tabela tr {
    grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "pole status" "srodek srodek" "data dawka";
    gap: 6px 12px; padding: 14px 16px; border: 1px solid var(--rule-strong); border-radius: var(--r); background: var(--white);
  }
  .tabela .wiersz:hover { background: var(--white); border-color: var(--ink); }
  .k-data { font-weight: 500; font-size: .875rem; color: var(--mute); display: flex; gap: 6px; align-items: baseline; }
  .k-data .k-godz { display: inline; font-size: .875rem; }
  .k-pole span { display: inline; }
  .k-pole b { display: inline; font-size: 1.0625rem; }
  .k-pole span:not(:empty)::before { content: ", "; }
  .k-srodek { font-size: .9375rem; color: var(--ink); font-weight: 560; }
  .k-dawka { align-self: baseline; font-weight: 620; }
  .wiersz-usuniety { opacity: .7; }
}

/* ---------- asystent: „Asystent przygotował” na górze pulpitu ---------- */
.asystent { margin: 0 0 24px; padding: 16px 16px 6px; background: var(--white); border: 1px solid var(--ink); border-radius: var(--r); }
.asystent-glowa { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; }
.asystent-glowa .sekcja-t { display: inline-flex; align-items: center; gap: 10px; margin: 0; }
.asystent-glowa .sekcja-t .ph { font-size: 1.125rem; }
.asystent-glowa .link-btn { min-height: 32px; font-size: .9375rem; }
.asystent-ile { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 13px; background: var(--ink); color: var(--on-ink); font-size: .8125rem; font-weight: 700; font-stretch: 100%; font-variant-numeric: tabular-nums; }
.asystent-podsumowanie { margin: 6px 0 4px; max-width: 72ch; color: var(--ink-2); font-size: .9375rem; line-height: 1.55; }
.asystent-pusto { margin-top: 12px; border-bottom: 0; }
.asystent-odlozone { display: flex; gap: 8px; align-items: center; padding: 10px 0 4px; color: var(--mute); font-size: .875rem; }
.prop-lista { margin-top: 12px; border-top: 1px solid var(--rule); }
.prop { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.prop:last-child { border-bottom: 0; }
.prop-ikona { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--rule-strong); }
.prop-ikona .ph { font-size: 1.125rem; }
li.prop-pilne .prop-ikona { background: var(--stop-tlo); border-color: var(--stop-obrys); color: var(--stop); }
.prop-t { min-width: 0; display: grid; gap: 6px; justify-items: start; }
.prop-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--mute); font-size: .8125rem; font-weight: 560; }
.prop-meta .prop-pilne { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px 1px 6px; border-radius: 4px; background: var(--stop); color: #fff; font-weight: 650; }
.prop-meta .prop-pilne .ph { font-size: .875rem; }
.prop-tytul { font-size: 1rem; font-weight: 680; font-stretch: 108%; letter-spacing: -.012em; line-height: 1.3; text-wrap: pretty; }
.prop-tresc { color: var(--ink-2); font-size: .9375rem; line-height: 1.5; max-width: 72ch; }
.prop-przyjete { display: grid; gap: 3px; padding: 8px 12px; border-left: 2px solid var(--ink); background: var(--paper); font-size: .875rem; color: var(--ink-2); line-height: 1.4; max-width: 72ch; }
.prop-przyjete li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; align-items: start; }
.prop-przyjete .ph { font-size: .9375rem; margin-top: 2px; }
.prop-przyjete b { color: var(--ink); font-weight: 620; }
.prop-bez { color: var(--mute); }
.prop-linki { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.prop-linki .link-btn { min-height: 32px; font-size: .9375rem; }
.prop-braki { display: grid; gap: 2px; font-size: .875rem; }
.prop-braki a { font-weight: 600; }
.prop-braki small { color: var(--mute); }
.prop-akcje { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; width: 100%; }
.prop-drugie { display: inline-flex; gap: 16px; margin-left: auto; padding: 0 2px; }
.prop-drugie .link-btn { font-size: .9375rem; color: var(--ink-2); }
.prop-wiecej { margin-top: 4px; min-height: 36px; font-size: .9375rem; }
@media (max-width: 600px) {
  .asystent { padding: 18px 16px 8px; }
  .prop { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .prop-ikona { display: none; }
  .prop-akcje .btn { flex: 1 1 auto; }
  .prop-drugie { margin-left: 0; width: 100%; justify-content: flex-start; gap: 22px; }
}
.okno-propozycji .komorki { border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
.prop-okno-reguly:empty { display: none; }
.karta-propozycje .karta-glowa > .ph { font-size: 1.25rem; }
.karta-propozycje-lista li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--rule); font-size: .9375rem; font-weight: 560; }
.karta-propozycje-lista .ph { margin-top: 3px; }
.segment-poranne { flex-wrap: wrap; margin-top: 12px; }
.segment-poranne .segment-btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ======================================================================
   Kolor w danych i statusach. Element danych dostaje klasę „kol” i klasę znaczenia (kol-herbicyd, kol-up-rzepak,
   kol-zysk-3 …): ta sama klasa koloruje słupek SVG (fill) i pasek HTML (tło). Reszta panelu zostaje w tuszu.
   ====================================================================== */
.kol { fill: var(--kol, var(--ink)); background-color: var(--kol, var(--ink)); }
.kol-herbicyd { --kol: var(--r-herbicyd); } .kol-fungicyd { --kol: var(--r-fungicyd); }
.kol-insektycyd { --kol: var(--r-insektycyd); } .kol-inne { --kol: var(--r-inne); }
.kol-up-pszenica { --kol: var(--u-pszenica); } .kol-up-rzepak { --kol: var(--u-rzepak); } .kol-up-kukurydza { --kol: var(--u-kukurydza); }
.kol-up-jeczmien { --kol: var(--u-jeczmien); } .kol-up-burak { --kol: var(--u-burak); } .kol-up-jablon { --kol: var(--u-jablon); }
.kol-up-trawy { --kol: var(--u-trawy); } .kol-up-ziemniak { --kol: var(--u-ziemniak); } .kol-up-inne { --kol: var(--u-inne); }
.kol-k1 { --kol: var(--d-zielen); } .kol-k2 { --kol: var(--d-blekit); } .kol-k3 { --kol: var(--d-ochra); } .kol-k4 { --kol: var(--d-sliwka); }
.kol-k5 { --kol: var(--d-cegla); } .kol-k6 { --kol: var(--d-morski); } .kol-k7 { --kol: var(--d-oliwka); } .kol-k8 { --kol: var(--d-wrzos); }
.kol-azot { --kol: var(--n-azot); } .kol-fosfor { --kol: var(--n-fosfor); } .kol-potas { --kol: var(--n-potas); }
.kol-zysk-1 { --kol: var(--zysk-1); } .kol-zysk-2 { --kol: var(--zysk-2); } .kol-zysk-3 { --kol: var(--zysk-3); } .kol-zysk-4 { --kol: var(--zysk-4); }
.kol-strata-1 { --kol: var(--strata-1); } .kol-strata-2 { --kol: var(--strata-2); } .kol-strata-3 { --kol: var(--strata-3); } .kol-strata-4 { --kol: var(--strata-4); }
.kol-seq-1 { --kol: var(--seq-1); } .kol-seq-2 { --kol: var(--seq-2); } .kol-seq-3 { --kol: var(--seq-3); }
.kol-seq-4 { --kol: var(--seq-4); } .kol-seq-5 { --kol: var(--seq-5); } .kol-seq-6 { --kol: var(--seq-6); }
.kol-ok { --kol: var(--ok-znak); } .kol-uwaga { --kol: var(--uwaga-znak); } .kol-stop { --kol: var(--stop-znak); } .kol-info { --kol: var(--info-znak); }
.kol-neutral { --kol: var(--rozb-0); }
/* starsze sezony tego samego koloru: jaśniej (najnowszy pełny) */
.kol-sez-1 { fill-opacity: .55; } .kol-sez-2 { fill-opacity: .3; }
span.kol-sez-1, i.kol-sez-1 { opacity: .55; } span.kol-sez-2, i.kol-sez-2 { opacity: .3; }

/* znaczniki statusu: ikona + słowo, kolor nigdy sam */
.ton-ok { color: var(--ok); } .ton-uwaga { color: var(--uwaga); } .ton-stop { color: var(--stop); } .ton-info { color: var(--info); }
.plak { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 6px; border-radius: 4px; font-size: .8125rem; font-weight: 640; line-height: 1.35; white-space: nowrap; border: 1px solid transparent; }
.plak .ph { font-size: .9375rem; }
.plak-ok { color: var(--ok); background: var(--ok-tlo); border-color: var(--ok-obrys); }
.plak-uwaga { color: var(--uwaga); background: var(--uwaga-tlo); border-color: var(--uwaga-obrys); }
.plak-stop { color: #fff; background: var(--stop); border-color: var(--stop); }
.plak-info { color: var(--info); background: var(--info-tlo); border-color: var(--info-obrys); }
.plak-cichy { color: var(--mute); background: transparent; border-color: var(--rule-strong); }

@media (forced-colors: active) {
  .kol { fill: CanvasText; background-color: CanvasText; forced-color-adjust: none; }
}
/* karencje: aktywna = czerwień (nie zbieraj), kończy się = bursztyn; zawsze z ikoną i liczbą dni */
.karencja-ile b { display: inline-flex; align-items: center; gap: 6px; }
.karencja-ile b .ph { font-size: 1rem; }
.karencja-aktywna .karencja-ile b { color: var(--stop); }
.karencja-aktywna .karencja-pasek-w { background: var(--stop-znak); }
.karencja-konczy .karencja-ile b { color: var(--uwaga); }
.karencja-konczy .karencja-pasek-w { background: var(--uwaga-znak); }
.pulpit-nowy { margin-top: 4px; max-width: 760px; }
/* kompletność ewidencji na pulpicie */
.komp { display: grid; grid-template-columns: auto minmax(80px, 1fr) auto; gap: 8px 14px; align-items: center; padding: 10px 2px 0; font-size: .875rem; }
.komp-t { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.komp-t b { font-weight: 720; }
.komp-t .ph { font-size: 1rem; }
.komp-pasek { display: block; height: 6px; border-radius: 3px; background: var(--paper-2); overflow: hidden; }
.komp-w { display: block; height: 100%; border-radius: 3px; }
.komp-a { font-weight: 620; text-decoration-color: var(--rule-strong); }
