/* Portal klienta (konto.insighto.io) — wyglad z makiety „Insighto Counter”
   (claude.ai, artefakt ADzQJ1tdkbopS4fyMWnwy9): Roboto + Montserrat
   (self-hosted, /fonts/fonts.css z huba), akcent #EB4325 jak w aplikacji.
   Klasy ic-* to klasy makiety; pt-* to uklad strony portalu. */

:root {
  --ink: #3F3F3F; --muted: #808285; --muted-strong: #6B6D70;
  --line: #EDEDEE; --line-strong: #DDDDDD; --soft: #FAFAFA; --hover: #F0F0F1;
  --accent: #EB4325; --accent-hover: #FD5B3D; --accent-soft: #FBE8E3;
  --ok-bg: #E4F1E8; --ok-fg: #2F7A4A; --warn-bg: #F8EDD9; --warn-fg: #8F5400; --bad-bg: #FBE8E3; --bad-fg: #B32D15;
  --stage-dane-bg: #EDEDEE; --stage-dane-fg: #5F6164;
  --stage-bake-bg: #F8EDD9; --stage-bake-fg: #8F5400;
  --stage-slice-bg: #E4F1E8; --stage-slice-fg: #2F7A4A;
  --stage-taste-bg: #FBE8E3; --stage-taste-fg: #B32D15;
  --side-w: 220px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: #FFFFFF; color: var(--ink); font-family: "Roboto", system-ui, "Segoe UI", Arial, sans-serif; font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: "Montserrat", system-ui, sans-serif; text-wrap: balance; }
a { color: var(--accent); text-decoration: none; }
button, input, select, textarea { font: inherit; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ── przyciski, pola (makieta) ─────────────────────────────────────────── */
.ic-btn { border: 1px solid var(--line-strong); background: #FFFFFF; color: var(--ink); border-radius: 6px; padding: 9px 16px; font-size: 13.5px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
.ic-btn:hover { background: var(--hover); }
.ic-btn:disabled { color: var(--muted); cursor: not-allowed; background: #FFFFFF; }
.ic-btn-primary { border: 1px solid var(--accent); background: var(--accent); color: #FFFFFF; border-radius: 6px; padding: 10px 18px; font-size: 13.5px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
.ic-btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.ic-btn-primary:disabled { background: var(--line-strong); border-color: var(--line-strong); color: var(--muted-strong); cursor: not-allowed; }
.ic-btn-ghost { border: 1px solid transparent; background: transparent; color: var(--muted-strong); border-radius: 6px; padding: 9px 14px; font-size: 13.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.ic-btn-ghost:hover { background: var(--hover); color: var(--ink); }
.ic-btn-ghost:disabled { cursor: not-allowed; opacity: .6; }
.ic-btn.small, .ic-btn-ghost.small, .ic-btn-primary.small { padding: 5px 10px; font-size: 12.5px; }
.ic-input { border: 1px solid var(--line-strong); border-radius: 6px; padding: 9px 12px; font-size: 14px; color: var(--ink); background: #FFFFFF; width: 100%; }
.ic-input:focus, .ic-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(235, 67, 37, .15); }
textarea.ic-input { resize: vertical; }
.ic-select { border: 1px solid var(--line-strong); border-radius: 6px; padding: 8px 10px; font-size: 13px; color: var(--ink); background: #FFFFFF; max-width: 100%; }
.ic-dim { color: var(--muted-strong); }
.ic-label { display: block; font-size: 12px; color: var(--muted-strong); margin-bottom: 6px; }
.ic-toggle { position: relative; width: 34px; height: 20px; border-radius: 10px; background: var(--line-strong); flex: none; border: 0; cursor: pointer; padding: 0; }
.ic-toggle.on { background: var(--accent); }
.ic-toggle i { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #FFFFFF; transition: left .12s; display: block; }
.ic-toggle.on i { left: 16px; }
.ic-row { display: flex; align-items: center; gap: 12px; padding: 12px 6px; border-top: 1px solid var(--line); min-width: 0; }
.ic-row:first-child { border-top: 0; }
.ic-row.klik { cursor: pointer; }
.ic-row.klik:hover { background: var(--soft); }
.ic-viewbtn { border: 1px solid var(--line-strong); background: #FFFFFF; color: var(--muted-strong); border-radius: 6px; padding: 7px; display: flex; cursor: pointer; }
.ic-viewbtn:hover { background: var(--hover); color: var(--ink); }
.ic-viewbtn.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.ic-badge { font-size: 11px; padding: 2px 8px; border-radius: 3px; font-weight: 500; white-space: nowrap; background: var(--line); color: var(--ink); }
.ic-badge.ok { background: var(--ok-bg); color: var(--ok-fg); }
.ic-badge.warn { background: var(--warn-bg); color: var(--warn-fg); }
.ic-badge.bad { background: var(--bad-bg); color: var(--bad-fg); }
.ic-badge.etap-dane { background: var(--stage-dane-bg); color: var(--stage-dane-fg); }
.ic-badge.etap-bake { background: var(--stage-bake-bg); color: var(--stage-bake-fg); }
.ic-badge.etap-slice { background: var(--stage-slice-bg); color: var(--stage-slice-fg); }
.ic-badge.etap-taste { background: var(--stage-taste-bg); color: var(--stage-taste-fg); }
.ic-avatar { width: 26px; height: 26px; border-radius: 50%; background: #F5F5F6; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 700; flex: none; color: var(--ink); }
.ic-face { width: 18px; height: 18px; border-radius: 50%; background: #F5F5F6; border: 1.5px solid #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 8px; font-weight: 700; color: var(--ink); margin-left: -6px; }
.ic-face:first-child { margin-left: 0; }
.ic-face.wiecej { background: var(--line); color: var(--muted-strong); }
.ic-bar { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.ic-bar > i { display: block; height: 100%; background: var(--accent); transition: width .2s; }
.ic-bar.bake > i { background: var(--stage-bake-fg); }
.ic-tip { position: relative; }
.ic-tip > .ic-tip-txt { position: absolute; top: calc(100% + 6px); left: 0; background: var(--ink); color: #FFFFFF; font-size: 11.5px; line-height: 1.4; padding: 6px 10px; border-radius: 6px; white-space: nowrap; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .12s; z-index: 25; font-weight: 400; }
.ic-tip:hover > .ic-tip-txt, .ic-tip:focus-within > .ic-tip-txt { opacity: 1; visibility: visible; }
.ic-tip > .ic-tip-txt.prawo { left: auto; right: 0; }
.ic-tip > .ic-tip-txt.szeroki { white-space: normal; width: 220px; }

/* ── gorny pasek ───────────────────────────────────────────────────────── */
.pt-top { height: 54px; flex: none; display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); position: relative; padding-left: max(22px, env(safe-area-inset-left, 0px)); padding-right: max(22px, env(safe-area-inset-right, 0px)); }
.pt-logo { display: flex; align-items: center; height: 33px; }
.pt-logo img { height: 24px; width: auto; display: block; }
.pt-spacer { flex: 1; }
.pt-org { max-width: 260px; }
.ic-avatarbtn { display: flex; align-items: center; gap: 8px; border: 0; background: none; cursor: pointer; padding: 4px 6px; border-radius: 6px; color: inherit; }
.ic-avatarbtn:hover { background: var(--hover); }
.pt-avatar { width: 25px; height: 25px; border-radius: 50%; color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 700; flex: none; background: var(--accent); }
.pt-avatar.duzy { width: 36px; height: 36px; font-size: 13px; }
.pt-imie { font-size: 13px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-menu { position: absolute; top: calc(100% + 6px); right: 0; width: 230px; background: #FFFFFF; border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .1); padding: 6px 0; z-index: 40; }
.pt-menu-kto { padding: 10px 14px 8px; overflow-wrap: anywhere; }
.pt-menu-sep { height: 1px; background: var(--line); margin: 2px 0; }
.ic-menuitem { display: flex; width: 100%; align-items: center; gap: 10px; border: 0; background: none; text-align: left; padding: 9px 14px; font-size: 13.5px; color: var(--ink); cursor: pointer; }
.ic-menuitem:hover { background: #F5F5F6; }

/* ── uklad: menu boczne + tresc ────────────────────────────────────────── */
.pt-app { min-height: 100vh; display: flex; flex-direction: column; }
.pt-shell { flex: 1; display: flex; align-items: stretch; min-height: 0; }
.pt-side { width: var(--side-w); flex: none; background: var(--soft); border-right: 1px solid var(--line); padding: 18px 8px; display: flex; flex-direction: column; gap: 1px; position: relative; overflow: hidden; }
.ic-resize-handle { position: absolute; top: 0; right: -3px; bottom: 0; width: 6px; cursor: col-resize; z-index: 10; background: transparent; }
.ic-resize-handle:hover, .ic-resize-handle.active { background: rgba(235, 67, 37, .16); }
.ic-navitem { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 0; border-left: 2px solid transparent; color: var(--ink); cursor: pointer; background: none; text-align: left; width: 100%; font-size: 14px; white-space: nowrap; }
.ic-navitem:hover { background: var(--hover); }
.ic-navitem.on { border-left-color: var(--accent); color: var(--accent); font-weight: 500; }
.ic-navitem.on:hover { background: transparent; }
.ic-navitem svg { flex: none; }
.pt-side.kompakt .ic-navitem { justify-content: center; padding: 8px 4px; }
.pt-side.kompakt .ic-navitem span, .pt-side.kompakt .pt-stopka { display: none; }
.pt-stopka { padding: 10px 8px 2px; font-size: 10.5px; line-height: 1.4; color: var(--muted-strong); }
.pt-main { flex: 1; min-width: 0; padding-block: 28px 48px; padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
.pt-h1 { margin: 0 0 18px; font-size: 21px; font-weight: 700; }
.pt-h1 .ic-dim { font-family: "Roboto", system-ui, sans-serif; font-size: 13px; font-weight: 400; }
.pt-h2 { margin: 0; font-size: 15.5px; font-weight: 700; }
.pt-naglowek { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.pt-naglowek .pt-h1 { margin: 0; }
.pt-sekcja { max-width: 760px; }
.pt-sekcja.waska { max-width: 560px; }
.pt-karta { border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; margin-bottom: 20px; min-width: 0; }
.pt-karta-tytul { font-weight: 500; font-size: 14px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.pt-lista { border: 1px solid var(--line); border-radius: 6px; padding: 0 14px; margin-bottom: 20px; }
.pt-lista-glowka { display: flex; align-items: center; gap: 12px; padding: 9px 6px; border-bottom: 1px solid var(--line); font-size: 11.5px; font-weight: 500; color: var(--muted-strong); }
.pt-pusto { padding: 18px 6px; color: var(--muted-strong); font-size: 13px; }
.pt-sub { color: var(--muted-strong); font-size: 12.5px; }
.pt-kol-main { flex: 1; min-width: 0; }
.pt-kol-main > div { overflow: hidden; text-overflow: ellipsis; }
.pt-trunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-form { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; }
.pt-pole { display: grid; gap: 0; flex: 1 1 200px; min-width: 0; }
.pt-pole.caly { flex-basis: 100%; }
.pt-form > .ic-btn, .pt-form > .ic-btn-primary { flex: 0 0 auto; }

/* komunikaty */
.pt-msg { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); max-width: min(560px, calc(100% - 32px)); padding: 10px 16px; border-radius: 8px; font-size: 13.5px; z-index: 70; box-shadow: 0 8px 24px rgba(0, 0, 0, .14); }
.pt-msg.blad { background: var(--bad-fg); color: #FFFFFF; }
.pt-msg.info { background: var(--ink); color: #FFFFFF; }
.pt-baner { border: 1px solid var(--line); border-radius: 6px; background: var(--soft); padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; font-size: 13.5px; }

/* ── projekty: pasek, kafelki, lista ───────────────────────────────────── */
.pt-pasek { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.pt-szukaj { position: relative; display: flex; align-items: center; width: 100%; max-width: 255px; }
.pt-szukaj svg { position: absolute; left: 9px; color: var(--muted); pointer-events: none; }
.pt-szukaj .ic-input { padding-left: 28px; }
.pt-widoki { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pt-siatka { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(354px, 100%), 1fr)); gap: 14px; }
.ic-newcard { border: 1.5px dashed var(--line-strong); border-radius: 6px; background: transparent; cursor: pointer; color: var(--muted-strong); min-height: 219px; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; transition: border-color .12s, color .12s; }
.ic-newcard:hover { border-color: var(--accent); color: var(--accent); }
.ic-card { border: 1px solid var(--line); border-radius: 6px; background: #FFFFFF; cursor: pointer; transition: background .1s, border-color .1s; position: relative; padding: 16px; min-height: 219px; display: flex; flex-direction: column; gap: 10px; text-align: left; width: 100%; color: inherit; min-width: 0; }
.ic-card:hover { background: var(--soft); border-color: var(--line-strong); }
.ic-card-tytul { font-size: 14.5px; font-weight: 500; line-height: 1.3; padding-right: 26px; overflow-wrap: anywhere; }
.ic-card-stan { position: absolute; top: 10px; right: 10px; color: var(--muted); display: flex; }
.ic-play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: var(--muted); opacity: .5; pointer-events: none; transition: color .12s, opacity .12s; }
.ic-card:hover .ic-play-icon { color: var(--accent); opacity: 1; }
.ic-card-dol { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--muted-strong); }
.pt-twarze { display: flex; align-items: center; }
.pt-tabela { border: 1px solid var(--line); border-radius: 6px; }
.pt-tabela .ic-row { padding: 9px 14px; }
.pt-tabela .pt-lista-glowka { padding: 9px 14px; }
.pt-k-stan { width: 19px; flex: none; color: var(--muted); display: flex; }
.pt-k-etap { width: 90px; flex: none; }
.pt-k-rozm { width: 80px; flex: none; font-size: 12.5px; }
.pt-k-ludzie { width: 120px; flex: none; display: flex; align-items: center; }
.pt-k-zmiana { width: 110px; flex: none; text-align: right; font-size: 12.5px; }
.pt-tytul-btn { border: 0; background: none; padding: 0; color: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; text-align: left; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.pt-tytul-btn:hover { color: var(--accent); }
.pt-ludzie-btn { border: 0; background: none; padding: 2px; display: flex; align-items: center; cursor: pointer; color: inherit; border-radius: 6px; }
.pt-ludzie-btn:hover { background: var(--hover); }

/* ── mapa mysli (makieta) ──────────────────────────────────────────────── */
.ic-mm-wrap { position: relative; border: 1px solid var(--line); border-radius: 8px; height: 560px; overflow: hidden; background: var(--soft); cursor: grab; user-select: none; touch-action: none; }
.ic-mm-wrap.dragging { cursor: grabbing; }
.ic-mm-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; transform-origin: 0 0; }
.ic-mm-edges { position: absolute; left: -1500px; top: -1500px; width: 3000px; height: 3000px; overflow: visible; pointer-events: none; }
.ic-mm-edges path { fill: none; }
.ic-mm-edge { stroke: #DCDCDE; stroke-width: 1.3; }
.ic-mm-edge-hot { stroke: var(--accent); stroke-width: 1.7; opacity: .85; }
.ic-mm-node { position: absolute; transform: translate(-50%, -50%); background: #FFFFFF; border: 1px solid var(--line-strong); border-radius: 7px; transition: left .32s cubic-bezier(.2, .7, .3, 1), top .32s cubic-bezier(.2, .7, .3, 1), opacity .2s ease, box-shadow .12s, border-color .12s; font: inherit; text-align: left; color: var(--ink); }
.ic-mm-node.clickable { cursor: pointer; }
.ic-mm-node.faded { opacity: .35; }
.ic-mm-n-root { width: 184px; height: 76px; background: var(--ink); border-color: var(--ink); color: #FFFFFF; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); z-index: 3; }
.ic-mm-root-title { font-size: 13px; font-weight: 700; font-family: "Montserrat", sans-serif; }
.ic-mm-root-count { font-size: 11px; opacity: .75; margin-top: 3px; }
.ic-mm-n-bucket { width: 172px; height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 12px; z-index: 2; }
.ic-mm-n-bucket:hover { background: #F7F7F8; }
.ic-mm-n-bucket.collapsed { background: #FBFBFB; border-style: dashed; }
.ic-mm-n-bucket .lab { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ic-mm-n-bucket .cnt { font-size: 11px; color: var(--muted-strong); flex: none; }
.ic-mm-n-bucket .car { font-size: 10px; color: var(--muted-strong); flex: none; width: 10px; text-align: center; }
.ic-mm-n-proj { width: 194px; height: 56px; padding: 7px 9px; display: flex; flex-direction: column; justify-content: center; gap: 4px; z-index: 2; }
.ic-mm-n-proj:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.ic-mm-n-proj.selected { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(235, 67, 37, .15); }
.ic-mm-n-proj .nm { font-size: 12.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ic-mm-n-proj .meta { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ic-mm-n-proj .meta .ic-badge { font-size: 9.5px; padding: 1px 6px; flex: none; }
.ic-mm-n-proj .meta .sz { font-size: 11px; color: var(--muted-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ic-mm-n-leaf { width: 152px; height: 36px; padding: 0 10px; border-style: dashed; border-color: #D8D8DA; display: flex; flex-direction: column; justify-content: center; gap: 1px; z-index: 1; }
.ic-mm-n-leaf .k { font-size: 8.5px; letter-spacing: .03em; color: #8E8E90; text-transform: uppercase; font-weight: 600; }
.ic-mm-n-leaf .v { font-size: 11.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ic-mm-panel { position: absolute; top: 14px; right: 14px; width: 240px; max-width: calc(100% - 28px); background: #FFFFFF; border: 1px solid var(--line-strong); border-radius: 8px; padding: 16px; box-shadow: 0 8px 24px rgba(0, 0, 0, .14); z-index: 5; cursor: default; }
.ic-mm-emptystate { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted-strong); font-size: 13px; background: rgba(250, 250, 250, .8); }

/* ── szczegoly projektu ────────────────────────────────────────────────── */
.pt-projekt { max-width: 920px; }
.pt-projekt-glowka { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.pt-projekt-glowka h1 { margin: 0; font-size: 23px; font-weight: 700; overflow-wrap: anywhere; }
.pt-kroki { display: flex; align-items: flex-start; margin-bottom: 28px; }
.pt-krok { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 96px; flex: none; }
.pt-krok-kolo { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 700; background: var(--line); color: var(--muted-strong); }
.pt-krok.zrobiony .pt-krok-kolo { background: var(--accent); color: #FFFFFF; }
.pt-krok.biezacy .pt-krok-kolo { background: #FFFFFF; color: var(--accent); border: 2px solid var(--accent); }
.pt-krok-txt { font-size: 12.5px; color: var(--muted-strong); }
.pt-krok.zrobiony .pt-krok-txt { color: var(--ink); }
.pt-krok.biezacy .pt-krok-txt { color: var(--ink); font-weight: 700; }
.pt-krok-linia { flex: 1; height: 2px; margin-top: 12px; background: var(--line-strong); min-width: 12px; }
.pt-krok-linia.zrobiona { background: var(--accent); }
.pt-cta { border: 1px solid var(--line); border-left: 3px solid var(--muted); border-radius: 6px; padding: 18px 20px; margin-bottom: 22px; background: var(--soft); display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.pt-cta.etap-bake { border-left-color: var(--stage-bake-fg); }
.pt-cta.etap-slice { border-left-color: var(--stage-slice-fg); }
.pt-cta.etap-taste { border-left-color: var(--accent); }
.pt-cta-tytul { font-weight: 700; font-size: 14.5px; margin-bottom: 4px; color: var(--muted-strong); }
.pt-cta.etap-bake .pt-cta-tytul { color: var(--stage-bake-fg); }
.pt-cta.etap-slice .pt-cta-tytul { color: var(--stage-slice-fg); }
.pt-cta.etap-taste .pt-cta-tytul { color: var(--accent); }
.pt-cta-akcje { display: flex; gap: 10px; flex: none; flex-wrap: wrap; }
.pt-dwie { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; margin-bottom: 20px; }
.pt-dwie > .pt-karta { margin-bottom: 0; }
.pt-ustawienia { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.pt-ustawienia > .pt-ust-pola { flex: 1 1 220px; min-width: 0; display: grid; gap: 12px; }
.pt-ustawienia > .pt-ust-mapa { flex: 0 1 220px; min-width: 0; }
.pt-osoba { display: flex; align-items: center; gap: 10px; min-width: 0; }

/* ── mapa lokalizacji (OpenStreetMap) ──────────────────────────────────── */
.pt-mapa { position: relative; width: 100%; max-width: 100%; aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; background: #E8E8E9; border: 1px solid var(--line-strong); touch-action: none; user-select: none; cursor: grab; }
.pt-mapa.edycja { box-shadow: 0 0 0 2px rgba(235, 67, 37, .4); cursor: crosshair; }
.pt-mapa-kafle { position: absolute; inset: 0; }
.pt-mapa-kafle img { position: absolute; width: 256px; height: 256px; max-width: none; pointer-events: none; user-select: none; }
.pt-mapa-pin { position: absolute; transform: translate(-50%, -100%); pointer-events: none; z-index: 2; }
.pt-mapa-zoom { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; z-index: 3; }
.pt-mapa-zoom button, .pt-mapa-olowek { width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--line-strong); background: #FFFFFF; color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 15px; line-height: 1; padding: 0; }
.pt-mapa-olowek { position: absolute; right: 8px; bottom: 22px; z-index: 3; border-radius: 50%; background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.pt-mapa-olowek:hover, .pt-mapa.edycja .pt-mapa-olowek { background: var(--accent); border-color: var(--accent); }
.pt-mapa-atr { position: absolute; right: 0; bottom: 0; background: rgba(255, 255, 255, .85); font-size: 9.5px; padding: 1px 4px; z-index: 3; color: var(--ink); }
.pt-mapa-atr a { color: var(--ink); }

/* ── okna dialogowe ────────────────────────────────────────────────────── */
.pt-modal-tlo { position: fixed; inset: 0; background: rgba(20, 20, 19, .4); display: flex; align-items: center; justify-content: center; z-index: 50; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.pt-modal { width: 420px; max-width: 100%; max-height: calc(100vh - 64px); overflow: auto; background: #FFFFFF; border-radius: 8px; padding: 26px; box-shadow: 0 12px 40px rgba(0, 0, 0, .18); display: flex; flex-direction: column; gap: 16px; }
.pt-modal.waski { width: 380px; }
.pt-modal.szeroki { width: 440px; }
.pt-modal-tytul { font-size: 16px; font-weight: 700; font-family: "Montserrat", sans-serif; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pt-modal-akcje { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.pt-ilosc { display: flex; align-items: center; gap: 10px; }
.pt-ilosc button { width: 26px; height: 26px; padding: 0; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 6px; background: #FFFFFF; cursor: pointer; }
.pt-ilosc button:disabled { opacity: .45; cursor: not-allowed; }
.pt-ilosc span { font-size: 13.5px; font-weight: 500; min-width: 64px; text-align: center; }

/* ── logowanie (makieta) ───────────────────────────────────────────────── */
.pt-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--soft); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.pt-login-kol { width: 360px; max-width: 100%; display: flex; flex-direction: column; align-items: center; padding-block: 20px; }
.pt-login-logo { width: 240px; max-width: 100%; height: auto; display: block; margin-bottom: 32px; }
.pt-login-karta { width: 100%; background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.pt-login-karta h1 { margin: 0; font-size: 16px; font-weight: 700; }
.pt-login-blad { background: var(--bad-bg); color: var(--bad-fg); border-radius: 6px; padding: 8px 12px; font-size: 13px; }
.pt-kod { font-size: 22px; letter-spacing: .3em; text-align: center; }
.pt-login-alt { border: 0; background: none; color: var(--muted-strong); font-size: 12.5px; cursor: pointer; padding: 0; text-align: center; }
.pt-login-alt:hover { color: var(--accent); }

/* ── waskie ekrany ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .pt-dwie { grid-template-columns: minmax(0, 1fr); }
  .pt-k-ludzie, .pt-k-rozm { display: none !important; }
}
@media (max-width: 700px) {
  .pt-top { gap: 8px; }
  .pt-logo img { height: 20px; }
  .pt-org { max-width: 42vw; }
  .pt-zawijany { flex-wrap: wrap; row-gap: 8px; }
  .pt-zawijany > .pt-kol-main { flex: 1 1 calc(100% - 44px); }
  .pt-k-zmiana { display: none !important; }
  .pt-side { width: 56px !important; }
  .pt-side .ic-navitem { justify-content: center; padding: 8px 4px; }
  .pt-side .ic-navitem span, .pt-side .pt-stopka, .ic-resize-handle { display: none; }
  .pt-main { padding-block: 20px 40px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .pt-imie { display: none; }
  .pt-top { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .pt-k-zmiana { width: auto; }
  .pt-kroki { overflow-x: auto; }
  .pt-krok { width: 64px; }
  .ic-mm-wrap { height: 460px; }
}
@media (pointer: coarse) { .ic-input, .ic-select { font-size: 16px; } }
