:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --card2: #fafbfc;
  --text: #1b1f27;
  --muted: #5d6675;
  --accent: #1d5fd1;
  --on-accent: #ffffff;
  --border: #dde1e8;
  --error: #b3261e;
  --ok: #1e7a46;
  --run: #1f63b8; --run-bg: #e3edf9;
  --done: #23794a; --done-bg: #e0f1e8;
  --wait: #7a46b5; --wait-bg: #eee6f8;
  --plan: #5b636d; --plan-bg: #ebedf0;
  --hold: #8a5f00; --hold-bg: #f8efd6;
  --late: #b3261e; --late-bg: #fbe6e4;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12151b;
    --card: #1b2029;
    --card2: #20262f;
    --text: #e8ebf1;
    --muted: #9aa4b5;
    --accent: #6ea2ff;
    --on-accent: #0c1220;
    --border: #2b3240;
    --error: #ff8a80;
    --ok: #62d08f;
    --run: #6ea8f0; --run-bg: #1b2a3f;
    --done: #5ec28b; --done-bg: #17301f;
    --wait: #b794e8; --wait-bg: #2a2038;
    --plan: #a2aab4; --plan-bg: #272c32;
    --hold: #e0b341; --hold-bg: #33290f;
    --late: #ff8a80; --late-bg: #3a1f1d;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
main { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 24px 16px 32px; display: flex; flex-direction: column; gap: 16px; }
main.waski { max-width: 440px; padding-top: 32px; }
header h1 { margin: 0 0 4px; font-size: 2rem; }
header p { margin: 0 0 8px; color: var(--muted); }
button, input, select, textarea { font: inherit; color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mono { font-variant-numeric: tabular-nums; }
.dim { color: var(--muted); }

/* nagłówek i menu */
.naglowek { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: flex-start; }
.konto { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--muted); font-size: .9rem; }
.konto button, button.drugi, button.mala {
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: transparent; color: var(--text); cursor: pointer;
}
.konto button:hover, button.drugi:hover, button.mala:hover { border-color: var(--accent); }
button.mala { padding: 3px 10px; font-size: .85rem; }
button.glowny { padding: 8px 14px; border: 0; border-radius: 8px; background: var(--accent); color: var(--on-accent); font-weight: 600; cursor: pointer; }
button.glowny[disabled] { opacity: .6; cursor: default; }
button.ryzyko { border-color: var(--late); color: var(--late); }
.rola { padding: 2px 10px; border: 1px solid var(--border); border-radius: 99px; font-size: .8rem; color: var(--text); }
.menu { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.menu button { padding: 7px 14px; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--muted); font-weight: 600; cursor: pointer; }
.menu button:hover { color: var(--text); }
.menu button[aria-current="page"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.menu .wlasciciel { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; }
.menu select { max-width: 220px; }
.tylkoodczyt { padding: 8px 12px; border: 1px solid var(--hold); border-radius: 8px; background: var(--hold-bg); color: var(--hold); }
.komunikat { min-height: 1.5em; margin: 0; color: var(--muted); }
.menu + .komunikat:empty { display: none; }
.komunikat.blad { color: var(--error); }
.komunikat.ok { color: var(--ok); }

/* karty i formularze */
.karta {
  display: flex; flex-direction: column; gap: 12px;
  padding: 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--card);
}
.karta h2 { margin: 0; font-size: 1.2rem; }
.karta p { margin: 0; color: var(--muted); }
.karta label { font-weight: 600; }
input[type=text], input[type=email], input[type=date], input[type=search], input[type=number], select, textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); min-width: 0;
}
textarea { resize: vertical; min-height: 72px; }
.karta button[type="submit"] {
  padding: 12px; border: 0; border-radius: 8px;
  background: var(--accent); color: var(--on-accent); font-weight: 600; cursor: pointer;
}
.karta button[disabled] { opacity: .6; cursor: default; }
.formularz { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: end; }
.formularz > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.formularz .pelny { grid-column: 1 / -1; }
.pasek { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.pasek .rozciagnij { flex: 1; min-width: 180px; }
.chipy { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 5px 12px; border: 1px solid var(--border); border-radius: 99px; background: transparent; color: var(--muted); font-size: .9rem; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.pusto { padding: 24px 8px; text-align: center; color: var(--muted); }

/* statusy */
.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .85rem; font-weight: 600; white-space: nowrap; }
.st-run { background: var(--run-bg); color: var(--run); }
.st-done { background: var(--done-bg); color: var(--done); }
.st-wait { background: var(--wait-bg); color: var(--wait); }
.st-plan { background: var(--plan-bg); color: var(--plan); }
.st-hold { background: var(--hold-bg); color: var(--hold); }
.st-late { background: var(--late-bg); color: var(--late); }
.st-prio { background: var(--hold-bg); color: var(--hold); }

/* przegląd */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.kpi { background: var(--card); padding: 10px 14px; }
.kpi b { display: block; font-size: 1.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi span { color: var(--muted); font-size: .9rem; }
.uwaga { display: flex; flex-direction: column; gap: 8px; }
.uwaga button { display: grid; grid-template-columns: 4px minmax(0, 1fr); gap: 10px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.uwaga button i { border-radius: 2px; background: var(--late); }
.uwaga button.spokojny i { background: var(--wait); }
.uwaga button:hover b { color: var(--accent); }
.uwaga small { display: block; color: var(--muted); }
.kafelki { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.kafelek {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-height: 120px; padding: 16px;
  text-align: left; border: 1px solid var(--border); border-left: 6px solid var(--accent); border-radius: 10px; background: var(--card); cursor: pointer;
}
.kafelek:hover { background: var(--card2); }
.kafelek b { font-size: 1.2rem; }
.kafelek small { color: var(--muted); }
.kafelek .licznik { position: absolute; top: 12px; right: 12px; min-width: 30px; height: 30px; padding: 0 9px; border-radius: 15px; background: var(--accent); color: var(--on-accent); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.kafelek .licznik.alarm { background: var(--late); color: #fff; }
.kafelek .licznik.zero { background: var(--plan); color: #fff; }

/* projekty */
.proj { border: 1px solid var(--border); border-left: 6px solid var(--plan); border-radius: 10px; background: var(--card); overflow: hidden; }
.proj.s-run { border-left-color: var(--run); }
.proj.s-done { border-left-color: var(--done); }
.proj.s-wait { border-left-color: var(--wait); }
.proj.s-hold { border-left-color: var(--hold); }
.proj[open] { box-shadow: 0 0 0 2px var(--muted); }
.prow { display: grid; gap: 6px 16px; align-items: start; padding: 12px 14px; cursor: pointer; list-style: none; grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) minmax(0, 1.2fr) 150px 110px; }
.prow::-webkit-details-marker { display: none; }
.prow:hover { background: var(--card2); }
.pname { font-weight: 600; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; min-width: 0; overflow-wrap: anywhere; }
.goal { color: var(--muted); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.proj[open] .goal { display: block; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; }
.prog { height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; margin-top: 4px; }
.prog i { display: block; height: 100%; background: var(--done); }
.prog i.wip { background: var(--hold); }
.applink { padding: 1px 8px; border: 1px solid var(--accent); border-radius: 11px; color: var(--accent); font-size: .8rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.applink:hover { background: var(--accent); color: var(--on-accent); }
.detail { padding: 6px 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.note { color: var(--muted); border-left: 3px solid var(--border); padding-left: 10px; }
.hist { padding: 8px 12px; border: 1px solid var(--border); border-left: 4px solid var(--hold); border-radius: 8px; background: var(--card2); font-size: .9rem; }
.hist div { display: grid; grid-template-columns: 100px 200px minmax(0, 1fr); gap: 10px; padding: 2px 0; }
.grupa h4 { margin: 8px 0 4px; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; }
.trow { display: grid; gap: 4px 12px; align-items: center; padding: 6px 0; border-top: 1px solid var(--border); grid-template-columns: minmax(0, 3fr) 100px 100px 170px 40px; }
.trow.zrobione .tn::before { content: "✓ "; color: var(--done); font-weight: 700; }
.trow.zrobione .tn { color: var(--done); }
.tn { overflow-wrap: anywhere; }
.edycja { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 10px; border-top: 1px dashed var(--border); }
.edycja input[type=text] { flex: 1 1 200px; width: auto; }
.edycja input[type=date], .edycja select { width: auto; }

/* dziennik */
.wpis { display: grid; gap: 4px 14px; padding: 10px 0; border-top: 1px solid var(--border); grid-template-columns: 100px 110px minmax(0, 1fr) 44px; align-items: start; }
.rodzaj { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.rodzaj i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--run); }
.rodzaj.k-decyzja i { background: var(--wait); } .rodzaj.k-decyzja { color: var(--wait); }
.rodzaj.k-praca { color: var(--run); }
.rodzaj.k-zad i { background: var(--done); } .rodzaj.k-zad { color: var(--done); }
.rodzaj.k-pytanie i { background: var(--plan); } .rodzaj.k-pytanie { color: var(--plan); }
.wpis .tekst { overflow-wrap: anywhere; }
.linkproj { display: block; margin-top: 2px; padding: 0; border: 0; background: none; color: var(--muted); font-size: .9rem; text-align: left; cursor: pointer; }
.linkproj:hover { color: var(--accent); }

/* kalendarz */
.nawkal { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.nawkal h3 { margin: 0 6px; min-width: 10.5ch; text-align: center; font-size: 1.5rem; text-transform: capitalize; }
.nawkal .rozciagnij { flex: 1; }
.siatka { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.dzn { padding: 6px 8px; background: var(--card2); font-size: .8rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.dzien { min-height: 104px; padding: 6px 8px; display: flex; flex-direction: column; gap: 4px; border: 0; border-radius: 0; background: var(--card); text-align: left; cursor: pointer; min-width: 0; }
.dzien.weekend { background: var(--card2); }
.dzien:hover { background: var(--run-bg); }
.dzien.poza .num { opacity: .5; }
.dzien.wybrany { background: var(--run-bg); box-shadow: inset 0 0 0 2px var(--accent); }
.dzien:focus-visible { outline-offset: -2px; }
.dzien .gora { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.dzien .num { font-variant-numeric: tabular-nums; }
.dzien.dzis .num { background: var(--accent); color: var(--on-accent); border-radius: 99px; padding: 0 7px; }
.dzien .ile { font-size: .8rem; color: var(--muted); }
.kropki { display: none; flex-wrap: wrap; gap: 3px; }
.kropki i, .pod i { width: 8px; height: 8px; border-radius: 50%; display: block; flex: none; }
.pod { display: flex; gap: 5px; align-items: baseline; font-size: .8rem; line-height: 1.25; color: var(--muted); min-width: 0; }
.pod span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pod i { width: 6px; height: 6px; }
.wiecej { font-size: .8rem; color: var(--muted); }
.d-praca { background: var(--run); } .d-decyzja { background: var(--wait); } .d-zad { background: var(--done); } .d-pytanie { background: var(--plan); }
.legenda { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9rem; color: var(--muted); }
.legenda span { display: inline-flex; align-items: center; gap: 6px; }
.legenda i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dzienszczegoly { border-top: 2px solid var(--text); padding-top: 10px; display: flex; flex-direction: column; }
.dzienszczegoly h3 { margin: 0 0 6px; text-transform: capitalize; }
.wierszd { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 4px 14px; padding: 8px 0; border-top: 1px solid var(--border); }

/* zadania stałe, użytkownicy */
.wiersz { display: grid; gap: 8px 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) auto minmax(0, 1fr); }
.wiersz.naglowek-listy { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-top: 0; padding-block: 0 8px; }
.wiersz .kto { min-width: 0; overflow-wrap: anywhere; }
.wiersz .kto small { display: block; color: var(--muted); }
.wiersz.nieaktywny .kto { opacity: .55; }
.wiersz label.przelacznik { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.wiersz label.przelacznik input { width: auto; }
.wiersz .logowanie { color: var(--muted); font-size: .9rem; }
.wiersz.stale { grid-template-columns: minmax(0, 3fr) 150px 110px 150px auto; }
.spozniony { color: var(--late); font-weight: 600; }
.spozniony small { color: var(--late); }

/* kokpit folderu, wykresy, oś czasu, karty */
.kokpit { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; }
.karta.hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; }
.ring { position: relative; width: 132px; height: 132px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--border); stroke-width: 12; }
.ring-fg { fill: none; stroke: var(--done); stroke-width: 12; stroke-linecap: round; }
.rc { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.rc b { font-size: 1.9rem; line-height: 1; font-variant-numeric: tabular-nums; }
.rc span { font-size: .8rem; color: var(--muted); }
.kpis3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpis3 .kpi b { font-size: 1.4rem; }
.wykresy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.karta svg { display: block; width: 100%; height: auto; }
.ax { fill: var(--muted); font: 12px system-ui, sans-serif; }
.ax.val { fill: var(--text); }
.grid { stroke: var(--border); stroke-width: 1; }
.b-done { fill: var(--done); }
.b-now { fill: var(--accent); }
.b-hit { fill: transparent; }
.bg-done { background: var(--done); } .bg-run { background: var(--run); } .bg-wait { background: var(--wait); } .bg-plan { background: var(--plan); } .bg-hold { background: var(--hold); }
.tl-done { background: var(--done); } .tl-run { background: var(--run); } .tl-wait { background: var(--wait); } .tl-plan { background: var(--plan); } .tl-hold { background: var(--hold); } .tl-late { background: var(--late); }
.prow2 { display: grid; grid-template-columns: minmax(0, 9.5em) minmax(0, 1fr) 3.4em; gap: 8px; align-items: center; margin: 0 0 5px; }
.prow2 button { padding: 0; border: 0; background: none; text-align: left; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.prow2 button:hover { color: var(--accent); }
.prow2 .mono { text-align: right; }
.stack { display: flex; gap: 2px; height: 12px; min-width: 0; }
.stack i { display: block; height: 100%; min-width: 2px; border-radius: 0 3px 3px 0; }
.os-przewijanie { overflow-x: auto; }
.os { min-width: 820px; position: relative; }
.os-axis { position: relative; height: 20px; border-bottom: 1px solid var(--border); margin-left: 250px; }
.os-axis span { position: absolute; top: 0; height: 20px; padding-left: 4px; border-left: 1px solid var(--border); font-size: .8rem; color: var(--muted); }
.os-wiersze { position: relative; }
.os-wiersz { display: flex; align-items: center; height: 28px; }
.os-wiersz button { width: 250px; flex: none; padding: 0 10px 0 0; border: 0; background: none; text-align: left; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.os-wiersz button:hover { color: var(--accent); }
.os-tor { position: relative; flex: 1; height: 100%; border-left: 1px solid var(--border); }
.os-pasek { position: absolute; top: 5px; height: 14px; min-width: 5px; border-radius: 3px; overflow: hidden; }
.os-pasek b { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(255, 255, 255, .34); }
.os-pasek.otwarty { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
.os-nakladka { position: absolute; left: 250px; right: 0; top: 0; bottom: 0; pointer-events: none; }
.os-dzis { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1.5px dashed var(--accent); z-index: 2; }
.os-dzis em { position: absolute; top: -17px; left: 3px; font-size: .8rem; font-style: normal; color: var(--accent); white-space: nowrap; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.seg button { padding: 7px 12px; border: 0; background: transparent; color: var(--muted); font-weight: 600; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.filtry select { width: auto; max-width: 210px; }
.karty { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.pc { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); text-align: left; cursor: pointer; }
.pc:hover { border-color: var(--accent); }
.pc-gora { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.pc h3 { margin: 0; font-size: 1.05rem; line-height: 1.25; overflow-wrap: anywhere; }
.pc-liczby { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: .9rem; }
.pc-liczby b { color: var(--text); font-size: 1.2rem; }
@media (max-width: 1100px) { .kokpit, .wykresy { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .karta.hero { grid-template-columns: minmax(0, 1fr); justify-items: center; } .kpis3 { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi { overflow-wrap: anywhere; } }

#widok, #widok-wew { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
/* firmy i osoby */
.okruszki { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.menu-sep { width: 1px; align-self: stretch; margin: 2px 6px; background: var(--border); }
.osoby { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.osoba { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; min-width: 0; padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); }
.osoba.nieaktywny { opacity: .6; }
.osoba-gora { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; width: 100%; }
.osoba-gora b { overflow-wrap: anywhere; }
.podtytul { margin: 0; font-size: 1.05rem; }
.wiersz.naglowek-listy, .wiersz { grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 1.2fr) auto minmax(0, 1fr); }
.wiersz.dostep, .wiersz.dostep.naglowek-listy { grid-template-columns: minmax(0, 2.5fr) 150px 150px auto; }
.wiersz.pomysl, .wiersz.pomysl.naglowek-listy { grid-template-columns: minmax(0, 3fr) 130px 150px 150px auto; align-items: start; }
.kroki { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: .9rem; }
.menu .prawa { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.znaczek { display: inline-block; min-width: 20px; margin-left: 8px; padding: 0 6px; border-radius: 10px; background: var(--late); color: #fff; font-size: .8rem; line-height: 20px; text-align: center; }
.powiadomienie { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 12px; width: 100%; padding: 10px 0; border: 0; border-top: 1px solid var(--border); background: none; text-align: left; cursor: pointer; }
.powiadomienie .kropka { width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: transparent; }
.powiadomienie.nowe .kropka { background: var(--accent); }
.powiadomienie:not(.nowe) b { font-weight: 400; color: var(--muted); }
.powiadomienie small { display: block; }
.powiadomienie:hover b { color: var(--accent); }
@media (max-width: 700px) {
  .wiersz.dostep, .wiersz.pomysl { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .wiersz.pomysl .kto, .wiersz.dostep .kto { grid-column: 1 / -1; }
  .menu .prawa { margin-left: 0; width: 100%; }
}

footer { padding: 16px; text-align: center; color: var(--muted); }

@media (max-width: 900px) {
  .prow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .prow .pname, .prow .goal { grid-column: 1 / -1; }
  .trow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .trow .tn { grid-column: 1 / -1; }
  .wiersz.stale { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .stale .tn { grid-column: 1 / -1; }
  .hist div { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .wiersz { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .wiersz .kto { grid-column: 1 / -1; }
  .wiersz.naglowek-listy { display: none; }
  .dzien { min-height: 62px; padding: 5px 4px; }
  .pod, .wiecej { display: none; }
  .kropki { display: flex; }
  .dzn { padding: 6px 2px; text-align: center; letter-spacing: 0; }
  .nawkal h3 { font-size: 1.2rem; min-width: 0; }
  .wierszd { grid-template-columns: minmax(0, 1fr); }
  .wpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .wpis .tekst { grid-column: 1 / -1; }
  .menu .wlasciciel { margin-left: 0; width: 100%; }
}
