/* =========================================================
   Panel Pasieki: system stylow (z makiety „Wariant A Etykiety v4”, 2026-11-28)
   Zasady CSP: zero atrybutow stylu w HTML. Wszystko, co makieta ustawiala inline,
   jest tu klasa: rozmiar ikony (.i12 do .i28), grubosc kreski (.sw2, .sw24),
   awatar (.s20 do .s40, kolor .a0 do .a5, .test), kanal (.k-m, .k-i, .k-e),
   odmiana (.o-lipa itd.), waga odcinka paska (.v1 do .v20), kadr miniatury (.cr-*).
   Katalog komponentow: KATALOG.md
   ========================================================= */
@font-face{font-family:'Geist';src:url('/static/fonty/geist-latin-ext-var.woff2') format('woff2');font-weight:100 900;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-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Geist';src:url('/static/fonty/geist-latin-var.woff2') format('woff2');font-weight:100 900;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+2318,U+FEFF,U+FFFD}
@font-face{font-family:'Geist Mono';src:url('/static/fonty/geist-mono-latin-ext-var.woff2') format('woff2');font-weight:100 900;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-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Geist Mono';src:url('/static/fonty/geist-mono-latin-var.woff2') format('woff2');font-weight:100 900;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+2318,U+FEFF,U+FFFD}

:root{
  --brown:#2B1B10;--brown-2:#3D2817;--on-brown:#F4E9DC;--on-brown-2:#BFA48A;--gold:#FAC946;--focus:#E0A21B;
  --bg-list:#F7F6F4;--bg:#FFFFFF;--bg-det:#FAF9F7;--sand:#F3EDE6;--chip:#EDEAE6;--bubble:#F3F1EE;--skel:#EFECE8;
  --line:rgba(43,27,16,.08);--line-2:rgba(43,27,16,.14);
  --ink:#1A1410;--ink-2:#6B5E53;--ink-3:#7A6C60;
  --sh-card:0 1px 2px rgba(43,27,16,.06),0 4px 12px -2px rgba(43,27,16,.08),inset 0 0 0 1px rgba(43,27,16,.06);
  --sh-win:0 12px 32px -8px rgba(43,27,16,.22),0 2px 6px rgba(43,27,16,.08);
  --sh-btn:inset 0 0 0 1px rgba(43,27,16,.14),0 1px 2px rgba(43,27,16,.06);
  --ring:0 0 0 2px #fff,0 0 0 4px var(--focus);
  --mono:'Geist Mono',ui-monospace,'Cascadia Mono',Consolas,monospace;
  --ease:cubic-bezier(.22,1,.36,1);
  color-scheme:light;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;background:var(--bg-list)}
body{margin:0;font-family:'Geist',system-ui,'Segoe UI',sans-serif;font-weight:450;font-size:13px;line-height:1.45;color:var(--ink);background:var(--bg-list);-webkit-font-smoothing:antialiased;font-variant-numeric:tabular-nums;text-rendering:optimizeLegibility}
::selection{background:rgba(250,201,70,.35);color:inherit}
*{scrollbar-width:thin;scrollbar-color:rgba(43,27,16,.18) transparent}
::-webkit-scrollbar{width:8px;height:8px}
::-webkit-scrollbar-thumb{background:rgba(43,27,16,.18);border-radius:8px}
::-webkit-scrollbar-track{background:transparent}
a{color:inherit;text-decoration:none}
a,button{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
button,input,textarea{font:inherit;color:inherit}
button{border:0;background:none;cursor:pointer;padding:0}
input,textarea{caret-color:var(--brown)}
:focus-visible{outline:2px solid var(--focus);outline-offset:2px;border-radius:8px}
[hidden]{display:none!important}
h1,h2,h3,p{margin:0}
ul{margin:0;padding:0;list-style:none}
img{max-width:100%}
.num{font-family:var(--mono);font-feature-settings:"zero" 0;font-variant-numeric:tabular-nums;letter-spacing:0;font-size:12px}
.mut{color:var(--ink-3)}
.ic{flex:none;display:block;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;overflow:visible}
.ic.i12{width:12px;height:12px}.ic.i14{width:14px;height:14px}.ic.i18{width:18px;height:18px}.ic.i20{width:20px;height:20px}.ic.i22{width:22px;height:22px}.ic.i28{width:28px;height:28px}
.ic.sw2{stroke-width:2}.ic.sw24{stroke-width:2.4}
.screen{min-height:100vh;min-height:100dvh}
.sep{color:var(--ink-3);margin:0 .3em}

/* ---------- klawisze ---------- */
kbd{font:550 11px/1 var(--mono);font-feature-settings:"zero" 0;min-width:18px;height:18px;padding:0 5px;border-radius:5px;background:#fff;box-shadow:inset 0 0 0 1px rgba(43,27,16,.12),0 1px 0 rgba(43,27,16,.10);color:var(--ink-2);display:inline-grid;place-items:center}

/* ---------- pigułki i statusy ---------- */
.pill{display:inline-flex;align-items:center;gap:4px;height:20px;padding:0 7px 0 6px;border-radius:6px;font-size:12px;font-weight:550;line-height:1;white-space:nowrap;background:var(--pb);color:var(--pt);flex:none}
.pill.sm{height:18px;font-size:11px;padding:0 6px 0 5px;gap:3px}
.p-g{--pb:#E3F5E9;--pt:#1F7A45}.p-o{--pb:#FFF1DC;--pt:#B25E00}.p-r{--pb:#FDE7EA;--pt:#B8233A}
.p-n{--pb:#F0EEEC;--pt:#6B5E53}.p-v{--pb:#EFEBFD;--pt:#5B46C2}.p-c{--pb:#F3EDE6;--pt:#6B5E53}.p-b{--pb:#E0EEFF;--pt:#1F5FB8}
.p-w{--pb:#F3EDE6;--pt:#3D2817}
.st{display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:550;line-height:1;color:var(--pt);white-space:nowrap;flex:none}
.st.bg{background:var(--pb);height:20px;padding:0 7px 0 6px;border-radius:6px}
.test-pill{display:inline-flex;align-items:center;gap:6px;height:22px;padding:0 9px 0 8px;border-radius:999px;background:#FFB020;color:#2B1B10;font-size:12px;font-weight:650;letter-spacing:.02em}
.test-pill::before{content:'';width:6px;height:6px;border-radius:50%;background:#2B1B10}
.flag{width:20px;height:20px;display:inline-grid;place-items:center;border-radius:6px;flex:none}
.flag.cien{color:#6B5E53}.flag.nowa{color:#5B46C2}

/* ---------- awatary i kanały ---------- */
.av{--s:40px;width:var(--s);height:var(--s);border-radius:999px;display:inline-grid;place-items:center;background:var(--ab,#F0EEEC);color:var(--at,#6B5E53);font-weight:550;font-size:calc(var(--s) * .36);letter-spacing:.01em;position:relative;flex:none;line-height:1}
.av .glyph{position:absolute;right:-3px;bottom:-3px}
.av.bot{background:var(--gold);color:var(--brown)}
.av.me{background:var(--gold);color:var(--brown);font-weight:650}
.glyph{width:16px;height:16px;border-radius:999px;background:var(--gc);display:grid;place-items:center;box-shadow:0 0 0 2px var(--ring-c,#fff);flex:none}
.glyph svg{width:9px;height:9px}
.glyph.inl{box-shadow:none}
.glyph svg{fill:#fff;stroke:none}
.glyph.k-m{--gc:#0866FF}.glyph.k-i{--gc:#E4405F}.glyph.k-e{--gc:#6B5E53}
.glyph.k-e svg{fill:none;stroke:#fff;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.av.s20{--s:20px}.av.s24{--s:24px;font-size:11px}.av.s28{--s:28px}.av.s36{--s:36px}.av.s40{--s:40px}
.av>.ic{width:calc(var(--s) * .55);height:calc(var(--s) * .55)}.av.test>.ic{width:calc(var(--s) * .48);height:calc(var(--s) * .48)}
.av.a0{--ab:#FCE1EF;--at:#A0245F}.av.a1{--ab:#E4F2D6;--at:#3F6B12}.av.a2{--ab:#ECE8FB;--at:#5A47B8}.av.a3{--ab:#FDEBCF;--at:#8A4D00}.av.a4{--ab:#E0EEFF;--at:#1F5FB8}.av.a5{--ab:#DDF3EF;--at:#1E6E62}
.av.test{--ab:#F0EEEC;--at:#6B5E53}

/* ---------- odmiany: kropki, pasek, miniatury ---------- */
.o-wielokwiat{--c:#F753A4}.o-lipa{--c:#EFE98C}.o-akacja{--c:#7CB93E}.o-gryka{--c:#C1793B}.o-rzepak{--c:#F5EC1E}
.o-spadz{--c:#5C7532}.o-facelia{--c:#8D7BDB}.o-lesny{--c:#3E5220}.o-nawloc{--c:#F1DC38}
.o-inna{--c:#D9CBB8} /* odmiana bez koloru etykiety (spadz lisciasta, wrzos, mniszek, slonecznik) */
.dots{display:inline-flex;gap:3px;align-items:center;flex:none}
.dot{width:8px;height:8px;border-radius:50%;background:var(--c);display:block}
.dot:is(.lt,.o-lipa,.o-rzepak,.o-nawloc){box-shadow:inset 0 0 0 1px rgba(43,27,16,.22)}
[data-tip]{position:relative}
[data-tip]:hover::after{content:attr(data-tip);position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);background:var(--brown);color:var(--on-brown);font:550 11px/1 'Geist',sans-serif;padding:5px 8px;border-radius:6px;white-space:nowrap;pointer-events:none;z-index:40;box-shadow:var(--sh-win)}
.bar [data-tip]:hover::after{bottom:auto;top:calc(100% + 8px)}
.bar{display:flex;gap:2px;height:8px}
.bar .sg{flex:var(--v) 1 0;background:var(--c);border-radius:4px;transition:transform .15s ease-out,box-shadow .15s ease-out}
.bar .sg:is(.lt,.o-lipa,.o-rzepak,.o-nawloc){box-shadow:inset 0 0 0 1px rgba(43,27,16,.22)}
.bar .sg:hover,.bar .sg.hl{transform:translateY(-2px);box-shadow:0 3px 6px -1px rgba(43,27,16,.25)}
.bar .sg:is(.lt,.o-lipa,.o-rzepak,.o-nawloc):hover,.bar .sg:is(.lt,.o-lipa,.o-rzepak,.o-nawloc).hl{box-shadow:inset 0 0 0 1px rgba(43,27,16,.22),0 3px 6px -1px rgba(43,27,16,.25)}
.bar.one{height:6px}
.bar.one .sg{border-radius:3px}
.bar .v1{--v:1}.bar .v2{--v:2}.bar .v3{--v:3}.bar .v4{--v:4}.bar .v5{--v:5}.bar .v6{--v:6}.bar .v7{--v:7}.bar .v8{--v:8}.bar .v9{--v:9}.bar .v10{--v:10}.bar .v11{--v:11}.bar .v12{--v:12}.bar .v13{--v:13}.bar .v14{--v:14}.bar .v15{--v:15}.bar .v16{--v:16}.bar .v17{--v:17}.bar .v18{--v:18}.bar .v19{--v:19}.bar .v20{--v:20} /* waga = round(20 * wartosc / suma), min 1 */
.rf-for .bar,.cn-prod .bar{max-width:280px}
.thumb{--t:40px;padding:4px;border-radius:12px;background:var(--c);flex:none;display:block;position:relative}
.thumb:is(.lt,.o-lipa,.o-rzepak,.o-nawloc){box-shadow:0 0 0 1px rgba(43,27,16,.12)}
.thumb .tw{display:block;width:var(--t);height:var(--t);border-radius:8px;overflow:hidden;position:relative;box-shadow:0 0 0 2px #fff;background:#EDE6DC}
.thumb img{position:absolute;max-width:none;display:block;width:calc(var(--t) * var(--z));height:calc(var(--t) * var(--z));
  left:clamp(calc(var(--t) - var(--t) * var(--z)), calc(var(--t) / 2 - var(--t) * var(--z) * var(--x)), 0px);
  top:clamp(calc(var(--t) - var(--t) * var(--z)), calc(var(--t) / 2 - var(--t) * var(--z) * var(--y)), 0px)}
.thumb.sm{--t:32px;border-radius:11px}
.thumb img{--x:.5;--y:.58;--z:2} /* zdjecie bez kadru: srodek etykiety ok. 58% wysokosci, powiekszenie 2x */
.thumb img.cr-klasyka-pasieki{--x:0.5;--y:0.55;--z:1.3}
.thumb img.cr-lipowy-1000g{--x:0.66;--y:0.57;--z:2.1}
.thumb img.cr-miod-akacjowy-1200g{--x:0.5;--y:0.6;--z:2.1}
.thumb img.cr-miod-faceliowy-400g{--x:0.48;--y:0.6;--z:2.3}
.thumb img.cr-miod-gryczany-1000g{--x:0.495;--y:0.6;--z:2}
.thumb img.cr-miod-lesny{--x:0.505;--y:0.6;--z:2}
.thumb img.cr-miod-nawlociowy-1000g{--x:0.495;--y:0.58;--z:2}
.thumb img.cr-miod-rzepakowy-400g{--x:0.48;--y:0.62;--z:2.2}
.thumb img.cr-miod-wielokwiatowy-1000g{--x:0.31;--y:0.52;--z:2.1}
.thumb img.cr-miod-wielokwiatowy-400g{--x:0.475;--y:0.58;--z:2.1}
.thumb img.cr-spadz-iglasta-1000g{--x:0.495;--y:0.58;--z:2}
.thumb .mx{position:absolute;inset:0;border-radius:inherit;overflow:hidden;display:grid;grid-template-columns:1fr 1fr}
.thumb .mx>i{background:var(--c)}
.thumb .mx>i:nth-child(1){order:2}.thumb .mx>i:nth-child(2){order:4}.thumb .mx>i:nth-child(3){order:3}.thumb .mx>i:nth-child(4){order:1}

/* ---------- przyciski ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:40px;padding:0 16px;border-radius:8px;font-size:14px;font-weight:550;white-space:nowrap;transition:background .15s var(--ease),transform .08s ease-out,box-shadow .15s var(--ease),color .15s;position:relative;user-select:none;flex:none}
.btn:active{transform:scale(.98)}
.btn-p{background:var(--brown);color:#fff;box-shadow:0 1px 2px rgba(43,27,16,.2),inset 0 1px 0 rgba(255,255,255,.08)}
.btn-p:hover{background:var(--brown-2)}
.btn-s{background:#fff;color:var(--ink);box-shadow:var(--sh-btn)}
.btn-s:hover{background:#FAF9F7}
.btn-s.danger{color:#B8233A}
.btn-good{background:#E3F5E9;color:#1F7A45}.btn-good:hover{background:#D3EEDC}
.btn-bad{background:#FDE7EA;color:#B8233A}.btn-bad:hover{background:#FAD5DB}
.btn-good.on{background:#1F7A45;color:#fff;box-shadow:0 1px 2px rgba(31,122,69,.3)}
.btn-bad.on{background:#B8233A;color:#fff;box-shadow:0 1px 2px rgba(184,35,58,.3)}
.btn.dim{opacity:.55}
.btn.dis,.btn[aria-disabled=true]{background:#D9D2CB;color:#9C8F84;box-shadow:none;cursor:not-allowed;pointer-events:none}
.btn.sm{height:32px;padding:0 12px;font-size:13px}
.btn.md{height:36px;padding:0 14px;font-size:13px}
.btn.full{width:100%}
.btn.h48{height:48px}
.auth-card .inp+.btn{margin-top:8px}
.btn .cost{color:var(--on-brown-2);font-weight:450}
.btn-s .cost{color:var(--ink-3)}
.iconbtn{width:32px;height:32px;border-radius:8px;display:inline-grid;place-items:center;color:var(--ink-2);flex:none;transition:background .15s}
.iconbtn:hover{background:rgba(43,27,16,.06);color:var(--ink)}
.linkbtn{display:inline-flex;align-items:center;gap:6px;min-height:32px;font-weight:550;color:var(--brown)}
.linkbtn:hover{text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--focus)}

.card{background:#fff;border-radius:12px;box-shadow:var(--sh-card)}
.wrap{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.wrap+.wrap{margin-top:12px}

/* ---------- powłoka ---------- */
.shell{min-height:100vh;min-height:100dvh;background:#fff}
.c-case{background:#fff;min-width:0;position:relative}
.c-list{background:#fff;min-width:0}
.c-det{background:var(--bg-det);min-width:0}
.sk{background:var(--skel);border-radius:6px;display:block;animation:pulse 1.6s ease-in-out infinite}
.sk.cnt{display:inline-block;width:16px;height:10px;border-radius:4px;vertical-align:middle}
@keyframes pulse{50%{opacity:.55}}

/* ---------- pasek boczny ---------- */
.side{background:var(--brown);color:var(--on-brown);display:flex;flex-direction:column;padding:14px 12px 12px;gap:4px;scrollbar-color:rgba(244,233,220,.18) transparent}
.side ::-webkit-scrollbar-thumb{background:rgba(244,233,220,.18)}
.side .sk{background:rgba(244,233,220,.14)}
.sb-brand{display:flex;align-items:center;justify-content:space-between;padding:4px 6px 12px}
.sb-brand b{font-size:14px;font-weight:650;letter-spacing:-.015em;color:#fff}
.sb-brand .test-pill{height:20px;font-size:11px}
.sb-search{display:flex;align-items:center;gap:8px;height:32px;padding:0 6px 0 10px;border-radius:8px;background:rgba(255,255,255,.06);color:var(--on-brown-2);margin-bottom:10px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.04);transition:background .15s}
.sb-search:hover{background:rgba(255,255,255,.10)}
.sb-search span{flex:1}
.sb-search kbd{background:rgba(255,255,255,.08);color:var(--on-brown-2);box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
.sb-item{display:flex;align-items:center;gap:10px;height:32px;padding:0 8px 0 10px;border-radius:8px;color:var(--on-brown);font-weight:550;transition:background .15s}
.sb-item .ic{color:var(--on-brown-2)}
.sb-item:hover{background:rgba(255,255,255,.06)}
.sb-item.on{background:var(--brown-2);color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}
.sb-item.on .ic{color:var(--gold)}
.sb-item span{flex:1}
.sb-item .sk.cnt{flex:none;width:16px;height:10px;border-radius:4px}
.sb-item i{font-style:normal;font-size:12px;font-weight:550;color:var(--on-brown-2)}
.sb-item i.red{background:#B8233A;color:#fff;border-radius:999px;min-width:18px;height:18px;display:grid;place-items:center;padding:0 5px}
.sb-foot{margin-top:auto;padding-top:10px;border-top:1px solid rgba(244,233,220,.08);display:flex;flex-direction:column;gap:2px}
.sb-me{display:flex;align-items:center;gap:10px;padding:8px 10px}
.sb-me b{font-weight:550;color:#fff;flex:1}
.sb-foot .sb-item{height:30px;font-weight:450}
.sb-foot form,.toast form,.abar-in form,.mbar form{display:contents} /* przycisk w formularzu POST wyglada jak link z makiety */
button.sb-item{font:inherit;color:var(--on-brown);text-align:left;width:100%} /* Wyloguj (POST) jak pozostale pozycje menu */

/* ---------- lista ---------- */
.lh{display:flex;align-items:center;gap:8px;height:52px;padding:0 12px 0 20px}
.lh h2{font-size:15px;font-weight:650;letter-spacing:-.015em}
.lh .cnt{color:var(--ink-3);font-size:13px}
.lh .sp{flex:1}
.segs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:0 16px}
.segs::-webkit-scrollbar{display:none}
.c-list>.segs{-webkit-mask-image:linear-gradient(90deg,#000 84%,transparent);mask-image:linear-gradient(90deg,#000 84%,transparent)}
.mtop .segs{-webkit-mask-image:linear-gradient(90deg,#000 80%,transparent);mask-image:linear-gradient(90deg,#000 80%,transparent);scroll-padding-inline:16px}
.mtop .segs::after{content:'';flex:0 0 1px}
/* uwaga 9 (v4): po przewinieciu maska z obu stron, na koncu paska tylko z lewej (klasy ustawia panel.js) */
.c-list>.segs{scroll-padding-inline:16px}
.c-list>.segs.przew,.mtop .segs.przew{-webkit-mask-image:linear-gradient(90deg,transparent,#000 16px,#000 84%,transparent);mask-image:linear-gradient(90deg,transparent,#000 16px,#000 84%,transparent)}
.c-list>.segs.przew.koniec,.mtop .segs.przew.koniec{-webkit-mask-image:linear-gradient(90deg,transparent,#000 16px);mask-image:linear-gradient(90deg,transparent,#000 16px)}
.seg{display:flex;align-items:center;flex:none;height:44px}
.seg-in{height:32px;padding:0 12px;border-radius:999px;display:flex;align-items:center;gap:6px;font-size:13px;font-weight:550;white-space:nowrap;transition:background .15s,box-shadow .15s}
.seg-in b{font-weight:550;font-size:12px}
.segs.dark .seg-in{background:rgba(255,255,255,.10);color:var(--on-brown)}
.segs.dark .seg-in b{color:var(--on-brown-2)}
.segs.dark .seg:hover .seg-in{background:rgba(255,255,255,.16)}
.segs.dark .seg.on .seg-in{background:#fff;color:var(--ink)}
.segs.dark .seg.on .seg-in b{color:var(--ink-2)}
.segs.dark .sk{background:rgba(244,233,220,.18)}
.segs.light .seg-in{background:var(--chip);color:var(--ink)}
.segs.light .seg-in b{color:var(--ink-2)}
.segs.light .seg:hover .seg-in{background:#E4E0DB}
.segs.light .seg.on .seg-in{background:#fff;box-shadow:var(--sh-card)}

.rows{padding:2px 0 12px}
.grp{display:flex;align-items:center;gap:6px;padding:14px 20px 6px;font-size:13px;font-weight:650;color:var(--ink)}
.grp .gd{width:6px;height:6px;border-radius:50%;background:#B8233A}
.grp b{font-weight:450;color:var(--ink-3)}
.row{display:flex;gap:12px;padding:12px 16px;min-height:76px;position:relative;align-items:flex-start;transition:background .15s,box-shadow .15s,opacity .18s,transform .18s var(--ease)}
.row::after{content:'';position:absolute;left:68px;right:0;bottom:0;height:1px;background:var(--line)}
.row:hover{background:rgba(43,27,16,.025)}
.row .av{margin-top:1px}
.rb{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.r1{display:flex;align-items:baseline;gap:8px;min-width:0}
.nm{font-size:15px;line-height:20px;font-weight:550;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}
.tm{font-size:12px;color:var(--ink-3);flex:none}
.tm.late{color:#B8233A;font-weight:650}
.tm.amt{font-size:13px;font-weight:650;color:var(--ink)}
.rs{color:var(--ink-2);font-size:13px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.r1 .flags{display:flex;gap:6px;align-items:center;flex:none;align-self:center;margin-right:2px}
.r1 .pill.sm{height:18px;font-size:11px;padding:0 6px}
.dots .more{font-size:11px;font-weight:550;color:var(--ink-3);margin-left:2px;line-height:1}
.r3{display:flex;align-items:center;gap:8px;min-height:20px;min-width:0;margin-top:5px;overflow:hidden}
.r3 .st{min-width:0}
.r3 .st>span{overflow:hidden;text-overflow:ellipsis}
.r3 .num{color:var(--ink-3);flex:none;white-space:nowrap}
.r3 .mut{font-size:12px;white-space:nowrap;min-width:0;overflow:hidden;text-overflow:ellipsis}
.r3 .sp{flex:1}
.r3 .flags{display:flex;gap:2px;margin-right:-4px}
.row.gone{transform:translateX(105%);opacity:0}

/* ---------- sprawa ---------- */
.ch{display:flex;flex-direction:column;gap:6px;padding:12px 12px 12px 24px;border-bottom:1px solid var(--line);background:#fff;position:sticky;top:0;z-index:5}
.ch-1{display:flex;align-items:center;gap:10px;min-height:28px}
.ch-1 h1{flex:1;min-width:0;font-size:17px;line-height:28px;font-weight:650;letter-spacing:-.015em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ch-2{display:flex;align-items:center;gap:8px;padding-left:38px;min-width:0;min-height:24px}
.ch-who{font-size:13px;color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.ch-who .num{font-size:12.5px;color:var(--ink-2)}
.ch-nav{display:flex;align-items:center;gap:2px;flex:none;margin-right:-4px}
.ch-nav .pos{font-size:12px;color:var(--ink-3);padding:0 8px}
.vsep{width:1px;height:20px;background:var(--line-2);margin:0 6px}
.cb{padding:20px 24px 24px;display:flex;flex-direction:column;gap:12px;max-width:760px}
.tp{display:flex;flex-direction:column;gap:12px}
.sum{padding:16px}
.sum-h{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:650;margin-bottom:8px}
.sum-h .ic{color:var(--ink-2)}
.sum-h .sp{flex:1}
.sum-h .tmeta{font-size:12px;color:var(--ink-3);font-weight:450}
.sum p{font-size:14px;line-height:22px;color:var(--ink);text-wrap:pretty}
.prop-c{padding:16px;border-radius:12px;background:#FFF8E6;box-shadow:inset 0 0 0 1px rgba(224,162,27,.22),0 1px 2px rgba(43,27,16,.05)}
.prop-c p{font-size:14px;line-height:22px;margin:2px 0 0;text-wrap:pretty}
.prop-c .row-b{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.sec-h{display:flex;align-items:center;gap:8px;margin:16px 0 0;font-size:13px;font-weight:650}
.sec-h .ic{color:var(--ink-2)}
.sec-h .n{font-size:12px;color:var(--ink-2);font-weight:450}
.sec-h .sp{flex:1}
.rf-chat .sec-h{margin-top:0}
.chat{display:flex;flex-direction:column;gap:14px;padding:8px 0}
.msg{display:grid;grid-template-columns:24px minmax(0,1fr);column-gap:8px;row-gap:5px;align-items:end;max-width:86%}
.msg>.av{--s:24px;font-size:10px;grid-row:1;grid-column:1}
.bub{padding:10px 12px;border-radius:14px;font-size:13.5px;line-height:20px;overflow-wrap:anywhere;text-wrap:pretty;grid-row:1;grid-column:2;justify-self:start;min-width:0}
.msg.c .bub{background:var(--bubble);border-bottom-left-radius:4px}
.msg.b{align-self:flex-end;grid-template-columns:minmax(0,1fr) 24px}
.msg.b>.av{grid-column:2}
.msg.b .bub{grid-column:1;justify-self:end;background:#fff;box-shadow:inset 0 0 0 1px var(--line),0 1px 2px rgba(43,27,16,.04);border-bottom-right-radius:4px}
.mmeta{grid-row:2;grid-column:2;display:flex;gap:6px;align-items:center;font-size:11px;color:var(--ink-3);padding:0 2px}
.msg.b .mmeta{grid-column:1;justify-content:flex-end}
.mmeta a{color:var(--ink-2);font-weight:550;display:inline-flex;gap:4px;align-items:center}
.mmeta a:hover{color:#B8233A}
.att{display:inline-flex;align-items:center;gap:6px;margin-top:8px;padding:6px 10px 6px 8px;border-radius:8px;background:#fff;box-shadow:inset 0 0 0 1px var(--line);font-size:12px;font-weight:550;color:var(--ink-2)}
.chat.zwin>.old{display:none}
.chat-more{align-self:center;display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:0 12px;border-radius:999px;font-size:12px;font-weight:550;color:var(--ink-2);background:var(--chip);transition:background .15s}
.chat-more:hover{background:#E4E0DB;color:var(--ink)}
.sys{align-self:center;display:flex;align-items:center;gap:6px;font-size:12px;color:var(--ink-3);padding:2px 10px;text-align:center}
.sys .ic{color:var(--ink-3)}
.logs{display:flex;flex-direction:column;padding:4px 0}
.lg{display:grid;grid-template-columns:78px 20px 1fr;gap:10px;align-items:start;padding:7px 0;font-size:13px;position:relative}
.lg .t{font-size:12px;line-height:20px;color:var(--ink-3)}
.lg .k{width:20px;height:20px;border-radius:999px;display:grid;place-items:center;background:var(--sand);color:var(--ink-2);position:relative;z-index:1}
.lg .k.bot{background:var(--gold);color:var(--brown)}
.lg::before{content:'';position:absolute;left:97px;top:0;bottom:0;width:1px;background:var(--line-2)}
.lg:first-child::before{top:14px}.lg:last-child::before{bottom:calc(100% - 14px)}
.lg .d{line-height:20px;text-wrap:pretty}
.lg .d b{font-weight:550}
.abar{position:sticky;bottom:16px;z-index:6;display:flex;justify-content:center;pointer-events:none;margin-top:-8px;padding:0 16px 20px;transition:opacity .15s}
.abar-in{pointer-events:auto;display:flex;gap:4px;padding:4px;border-radius:999px;background:#fff;box-shadow:var(--sh-win),inset 0 0 0 1px var(--line)}
.ab{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 10px 0 12px;border-radius:999px;font-weight:550;white-space:nowrap;transition:background .15s}
.ab:hover{background:rgba(43,27,16,.05)}
.ab.pri{background:var(--brown);color:#fff}
.ab.pri:hover{background:var(--brown-2)}
.ab.pri .c{color:var(--on-brown-2);font-weight:450}
.ab.pri kbd{background:rgba(255,255,255,.12);color:var(--on-brown);box-shadow:none}
.stale{opacity:.5;pointer-events:none;user-select:none}
.c-list .empty{padding:64px 24px}
.case-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:70vh;gap:8px;padding:24px}
.solo{display:flex;flex-direction:column;align-items:center;min-height:100vh;min-height:100dvh;padding:20vh 24px 48px}
.solo .segs{justify-content:center;flex-wrap:wrap;max-width:560px;padding:0;overflow:visible}
.solo .empty{padding:56px 24px 0}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- szczegóły ---------- */
.dh{display:flex;align-items:center;justify-content:space-between;height:56px;padding:0 12px 0 16px;border-bottom:1px solid var(--line);font-size:13px;font-weight:650}
.db{padding:12px 16px 32px;display:flex;flex-direction:column;gap:16px}
.props{display:flex;flex-direction:column;margin:0}
.prop{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:30px;font-size:13px}
.prop dt{display:flex;align-items:center;gap:8px;color:var(--ink-2);flex:none}
.prop dt .ic{color:var(--ink-3)}
.prop dd{margin:0;display:flex;align-items:center;gap:6px;min-width:0;justify-content:flex-end;text-align:right;font-weight:550}
.prop dd span.e{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.prop dd .num{font-size:13px;font-weight:450}
.prop dd.warn{color:#B25E00}
.prop dd a{display:inline-flex;align-items:center;gap:4px}
.prop dd a:hover{text-decoration:underline;text-underline-offset:3px}
.ord{padding:14px 14px 6px}
.ord-h{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:650;margin-bottom:12px}
.ord-h .ic{color:var(--ink-2)}
.ord-h .sp{flex:1}
.ord-h .num{font-weight:450;color:var(--ink-2)}
.ord-h .tot{font-size:14px;font-weight:650}
.items{margin-top:10px}
.it{display:flex;align-items:center;gap:12px;padding:6px;margin:0 -6px;border-radius:10px;transition:background .15s}
.it.hl{background:#FAF6EE}
.it .nfo{flex:1;min-width:0}
.it .nfo b{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:13px;line-height:18px;font-weight:550;text-wrap:balance}
.it .nfo span{font-size:12px;color:var(--ink-2)}
.it .pr{font-size:13px;font-weight:550;text-align:right;white-space:nowrap;flex:none}
.it .pr small{display:block;font-size:11px;font-weight:450;color:var(--ink-3)}
.ord-f{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);margin-top:6px;padding:10px 0 8px;font-size:12px;color:var(--ink-2)}
.ord-f b{font-weight:550;color:var(--ink)}
.mini{padding:14px}
.mini-h{display:flex;align-items:center;gap:8px;white-space:nowrap;font-size:13px;font-weight:650;margin-bottom:6px}
.mini-h .ic{color:var(--ink-2)}
.mini p{font-size:13px;color:var(--ink-2);line-height:19px;margin-bottom:12px;text-wrap:pretty}
.mini .two{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.morerow{display:flex;align-items:center;gap:10px;min-height:52px;padding:0 12px 0 14px;font-size:14px;font-weight:550}
.morerow .ic{color:var(--ink-2)}
.morerow .sp{flex:1}
.morerow .mut{font-size:13px;font-weight:450}

/* ---------- strony szerokie ---------- */
.mh{padding:28px 32px 4px;max-width:884px;margin-inline:auto;width:100%}
.mh h1{font-size:22px;line-height:28px;font-weight:650;letter-spacing:-.015em}
.mh p{font-size:14px;color:var(--ink-2);margin-top:4px}
.mh .segs{padding:12px 0 0}
.mb{padding:12px 32px 64px;max-width:884px;margin-inline:auto;width:100%;display:flex;flex-direction:column;gap:12px}
.cn{padding:16px}
.cn-top{display:flex;gap:12px;align-items:flex-start}
.cn-ic{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:var(--sand);color:var(--brown);flex:none}
.cn-tt{flex:1;min-width:0}
.cn-tt h3{font-size:15px;line-height:20px;font-weight:650;letter-spacing:-.01em;text-wrap:balance}
.cn-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:12px;color:var(--ink-2);margin-top:4px}
.cn-meta .av{--s:20px;font-size:10px;font-weight:650}
.olink{display:inline-flex;align-items:center;gap:2px;font-weight:450;color:var(--ink-2);transition:color .15s}
.olink .num{color:inherit;font-size:12px;font-weight:450}
.olink .ic{color:var(--ink-3)}
.olink:hover{color:var(--ink)}
.olink:hover .num{text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--focus)}
.cn-pills{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.cn-pm{display:none}
.cn-body{margin:12px 0 0 48px}
.cn-why{font-size:13px;line-height:20px;color:var(--ink);text-wrap:pretty}
.cn-prod{margin-top:12px}
.cn-prod ul{margin-top:8px}
.cn-act{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}
.cn-done{display:flex;align-items:center;gap:8px;margin-top:14px;padding-top:12px;border-top:1px solid var(--line);font-size:13px}
.cn-done .sp{flex:1}
.cn-done .who{color:var(--ink-2);white-space:nowrap}
.cn-com{margin-top:10px;padding:10px 12px;border-radius:10px;background:var(--bubble);font-size:13px;line-height:19px}
.cn-com b{font-weight:550}
.cn.edit{box-shadow:var(--sh-win),inset 0 0 0 1px rgba(43,27,16,.06)}
.fld{margin-top:12px}
.fld label{display:block;font-size:13px;font-weight:550;margin-bottom:6px}
.fld textarea{width:100%;height:96px;resize:vertical;border:0;border-radius:8px;padding:10px 12px;font-size:14px;line-height:20px;background:#fff;box-shadow:inset 0 0 0 1px var(--line-2),0 1px 2px rgba(43,27,16,.04);outline:none;transition:box-shadow .15s}
.fld textarea:focus,.fld textarea.foc{box-shadow:inset 0 0 0 1px var(--line-2),var(--ring)}
.fld .help{display:flex;justify-content:flex-end;align-items:center;margin-top:10px;gap:8px}
.quote{margin-top:2px}
.quote span{display:block;font-size:12px;color:var(--ink-2);margin-bottom:2px}
.quote+.cn-why{margin-top:10px}
.quote q{display:block;font-size:13px;line-height:19px;color:var(--ink);quotes:'„' '”'}
.cl{display:flex;gap:8px;margin-top:12px;align-items:flex-start}
.cl .av{--s:24px}
.cl .bub{background:var(--bubble);font-size:13px;line-height:19px;padding:9px 12px;border-radius:14px;border-top-left-radius:4px}
.cl .bub b{display:block;font-size:12px;font-weight:650;margin-bottom:2px;color:var(--ink)}
.av.claude{background:var(--brown);color:var(--gold);font-weight:650}
.zg-act{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px;justify-content:flex-end}

.mode{padding:20px}
.mode h2,.hist h2{font-size:17px;font-weight:650;letter-spacing:-.015em}
.mode>p{font-size:14px;color:var(--ink-2);margin:6px 0 16px;line-height:21px;text-wrap:pretty}
.tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tile{display:flex;align-items:center;gap:12px;min-height:72px;padding:12px 14px;border-radius:12px;background:#fff;box-shadow:var(--sh-btn);position:relative}
.tile .ti{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:var(--sand);color:var(--brown);flex:none}
.tile b{display:block;font-size:15px;font-weight:650}
.tile span{font-size:12px;color:var(--ink-2)}
.tile .rd{margin-left:auto;width:18px;height:18px;border-radius:50%;box-shadow:inset 0 0 0 1.5px var(--line-2);flex:none}
.tile.on{box-shadow:0 0 0 2px var(--focus)}
.tile.on .ti{background:#FFB020;color:var(--brown)}
.tile.on .rd{box-shadow:inset 0 0 0 5px var(--focus)}
.tile.off{background:#F7F5F2;box-shadow:inset 0 0 0 1px var(--line);cursor:not-allowed}
.tile.off b{color:var(--ink-3)}
.tile.off .ti{background:#ECE8E3;color:var(--ink-3)}
.hist{padding:20px 20px 8px}
.hist ul{margin-top:8px}
.hist li{display:flex;align-items:center;gap:12px;min-height:52px;border-top:1px solid var(--line);font-size:13px}
.hist li:first-child{border-top:0}
.hist .hi{width:28px;height:28px;border-radius:999px;display:grid;place-items:center;background:var(--sand);color:var(--brown);flex:none}
.hist .hi.lk{background:#F0EEEC;color:var(--ink-3)}
.hist li div{flex:1;min-width:0}
.hist li b{display:block;font-weight:550}
.hist li span{color:var(--ink-2);font-size:12px}

/* ---------- stany ---------- */
.empty{display:flex;flex-direction:column;align-items:center;text-align:center;padding:72px 24px;gap:8px}
.ei{width:72px;height:72px;border-radius:999px;background:var(--sand);display:grid;place-items:center;color:var(--brown);margin-bottom:8px}
.empty h2,.case-empty h2{font-size:17px;font-weight:650;letter-spacing:-.015em}
.empty p,.case-empty p{font-size:14px;color:var(--ink-2);margin-bottom:12px}
.errbar{display:grid;grid-template-columns:18px minmax(0,1fr);column-gap:10px;row-gap:10px;margin:8px 16px 4px;padding:12px 14px;border-radius:10px;background:#FDE7EA;color:#B8233A}
.errbar>.ic{margin-top:1px}
.errbar p{font-size:12px;line-height:18px;color:#8E1A2C}
.errbar p b{display:block;font-size:13px;font-weight:550;color:#B8233A;white-space:nowrap}
.errbar .btn{grid-column:2;justify-self:start;height:32px;font-size:13px}
.skrow{display:flex;gap:12px;padding:14px 16px;min-height:76px}
.skrow .sk.av{width:40px;height:40px;border-radius:999px}
.skrow .l{flex:1;display:flex;flex-direction:column;gap:8px;padding-top:4px}
.skrow .l .sk{height:12px}
.skrow .l .sk:nth-child(3){height:8px;width:30%}
.skrow:nth-child(1 of .skrow) .l .sk:nth-child(1){width:60%}.skrow:nth-child(1 of .skrow) .l .sk:nth-child(2){width:85%}
.skrow:nth-child(2 of .skrow) .l .sk:nth-child(1){width:57%}.skrow:nth-child(2 of .skrow) .l .sk:nth-child(2){width:81%}
.skrow:nth-child(3 of .skrow) .l .sk:nth-child(1){width:54%}.skrow:nth-child(3 of .skrow) .l .sk:nth-child(2){width:77%}
.skrow:nth-child(4 of .skrow) .l .sk:nth-child(1){width:51%}.skrow:nth-child(4 of .skrow) .l .sk:nth-child(2){width:73%}
.skrow:nth-child(5 of .skrow) .l .sk:nth-child(1){width:48%}.skrow:nth-child(5 of .skrow) .l .sk:nth-child(2){width:69%}
.skrow:nth-child(6 of .skrow) .l .sk:nth-child(1){width:45%}.skrow:nth-child(6 of .skrow) .l .sk:nth-child(2){width:65%}
.skrow:nth-child(7 of .skrow) .l .sk:nth-child(1){width:42%}.skrow:nth-child(7 of .skrow) .l .sk:nth-child(2){width:61%}

/* ---------- okna, arkusze, toast ---------- */
.scrim{position:fixed;inset:0;background:rgba(26,20,16,.55);z-index:50;display:grid;place-items:center;padding:16px;animation:fade .18s ease-out}
@keyframes fade{from{opacity:0}}
.dlg{width:100%;max-width:440px;background:#fff;border-radius:14px;box-shadow:var(--sh-win);padding:20px;animation:pop .2s var(--ease)}
@keyframes pop{from{transform:translateY(8px) scale(.98);opacity:0}}
.dlg .di{width:40px;height:40px;border-radius:999px;display:grid;place-items:center;margin-bottom:14px;background:#F3EDE6;color:#2B1B10}
.dlg .di.warn{background:#FFF1DC;color:#B25E00}
.dlg h2{font-size:17px;line-height:26px;font-weight:650;letter-spacing:-.015em;text-wrap:balance}
.dlg h2 .big{font-size:22px;font-weight:650;letter-spacing:-.02em}
.dlg>p{font-size:14px;color:var(--ink-2);margin-top:6px;text-wrap:pretty}
.dlg .rows2{margin:16px 0 12px;border-radius:10px;background:var(--bg-det);box-shadow:inset 0 0 0 1px var(--line);padding:4px 12px}
.dlg .rows2 .prop{min-height:40px}
.dlg .rows2 .prop+.prop{border-top:1px solid var(--line)}
.dlg .ft{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}
.testnote{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;background:#FFF1DC;color:#B25E00;font-size:13px;font-weight:550;line-height:18px}
.handle{display:none}
.sheet-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.sheet-h .mbtn{color:var(--ink-2)}
.dh-t{display:flex;gap:8px;align-items:center}
.sheet-h h2{font-size:17px;font-weight:650;letter-spacing:-.015em}
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:60;display:flex;align-items:center;gap:12px;padding:10px 10px 10px 14px;border-radius:12px;background:var(--brown);color:#fff;box-shadow:var(--sh-win);min-width:340px;overflow:hidden;animation:pop .22s var(--ease)}
.toast .ok{width:24px;height:24px;border-radius:999px;background:#1F7A45;display:grid;place-items:center;color:#fff;flex:none}
.toast b{font-weight:550;flex:1;white-space:nowrap}
.toast b em{font-style:normal;color:var(--on-brown-2);font-weight:450}
.toast .undo{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 10px;border-radius:8px;color:var(--gold);font-weight:550}
.toast .undo:hover{background:rgba(255,255,255,.08)}
.toast .tbar{position:absolute;left:0;bottom:0;height:3px;width:100%;background:var(--gold);transform-origin:left;animation:shrink 5s linear forwards}
@keyframes shrink{to{transform:scaleX(0)}}
.pal{width:100%;max-width:560px;background:#fff;border-radius:14px;box-shadow:var(--sh-win);overflow:hidden;align-self:start;margin-top:12vh;animation:pop .2s var(--ease)}
.pal-in{display:flex;align-items:center;gap:10px;height:52px;padding:0 12px 0 16px;border-bottom:1px solid var(--line);color:var(--ink-3)}
.pal-in input{flex:1;border:0;outline:none;font-size:15px;background:none;color:var(--ink);min-width:0}
.pal-in input::placeholder{color:var(--ink-3)}
.pal-in .cancel{display:inline-flex;align-items:center;flex:none;height:44px;padding:0 6px 0 10px;font-size:15px;font-weight:550;color:var(--brown)}
.pal-g{padding:8px;max-height:min(60vh,520px);overflow:auto;overscroll-behavior:contain} /* wiele spraw w palecie */
.pal-l{font-size:12px;font-weight:550;color:var(--ink-3);padding:8px 10px 4px}
.pal-i{display:flex;align-items:center;gap:10px;height:40px;padding:0 10px;border-radius:8px;font-size:14px}
.pal-i .ic{color:var(--ink-2)}
.pal-i .k,.pal-i>.meta{margin-left:auto}
.pal-i .k{display:flex;gap:4px}
.pal-i.on{background:var(--sand)}
.pal-i .meta{color:var(--ink-3);font-size:12px}
.pal-none{display:flex;flex-direction:column;align-items:center;gap:4px;padding:28px 10px;text-align:center;font-size:13px;color:var(--ink-2)}
.pal-none b{font-size:14px;font-weight:550;color:var(--ink)}
.pal-f{display:flex;gap:16px;padding:10px 16px;border-top:1px solid var(--line);background:var(--bg-det);font-size:12px;color:var(--ink-2)}
.pal-f span{display:inline-flex;gap:6px;align-items:center}
.rsheet{position:fixed;top:0;right:0;bottom:0;width:400px;background:#fff;box-shadow:var(--sh-win);border-radius:16px 0 0 16px;display:flex;flex-direction:column;animation:slin .22s var(--ease)}
@keyframes slin{from{transform:translateX(24px);opacity:0}}
.rsheet .dh{height:56px}
.rsheet .rs-b{padding:12px 20px 24px;overflow:auto}

/* ---------- zwrot ---------- */
.rf-wrap{padding:24px 24px 48px;display:flex;flex-direction:column;align-items:flex-start;gap:24px}
.refund{width:100%;max-width:560px;overflow:hidden}
.rf-chat{width:100%;max-width:560px}
.rf-h{display:flex;align-items:center;gap:12px;padding:16px 20px}
.rf-h .who{flex:1;min-width:0}
.rf-h b{display:block;font-size:15px;font-weight:550}
.rf-h span{font-size:12px;color:var(--ink-2)}
.rf-amt{padding:6px 20px 0;display:flex;align-items:baseline;font-weight:650;letter-spacing:-.03em;color:var(--ink)}
.rf-amt .zl{font-size:40px;line-height:48px}
.rf-amt .gr{font-size:24px;letter-spacing:-.02em}
.rf-sub{padding:2px 20px 16px;font-size:14px;color:var(--ink-2)}
.rf-for{margin:0 20px;padding:16px 0 10px;border-top:1px solid var(--line)}
.rf-for .ord-h{margin-bottom:12px}
.rf-for ul{margin-top:8px}
.rf-rows{margin:0 20px 4px;border-top:1px solid var(--line)}
.rf-rows .prop{min-height:40px}
.rf-rows .prop+.prop{border-top:1px solid var(--line)}
.rf-f{display:flex;justify-content:space-between;gap:8px;padding:14px 20px;background:var(--bg-det);border-top:1px solid var(--line)}

/* ---------- logowanie ---------- */
.auth{min-height:100vh;min-height:100dvh;background:var(--brown);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px 16px;gap:20px}
.auth-card{width:100%;max-width:380px;background:#fff;border-radius:16px;box-shadow:var(--sh-win),0 30px 60px -20px rgba(0,0,0,.45);padding:28px 24px 24px}
.auth-logo{display:flex;align-items:center;gap:12px;margin-bottom:22px}
.auth-logo img{width:56px;height:auto;display:block}
.auth-logo b{display:block;font-size:15px;font-weight:650;letter-spacing:-.015em}
.auth-logo span{font-size:12px;color:var(--ink-2)}
.auth h1{font-size:22px;line-height:28px;font-weight:650;letter-spacing:-.015em}
.auth-card>p{font-size:14px;color:var(--ink-2);margin:4px 0 20px}
.inp{display:flex;align-items:center;gap:10px;height:44px;padding:0 4px 0 12px;border-radius:8px;background:#fff;box-shadow:inset 0 0 0 1px var(--line-2),0 1px 2px rgba(43,27,16,.04);margin-bottom:12px;color:var(--ink-3);transition:box-shadow .15s}
.inp input{flex:1;border:0;outline:none;font-size:15px;background:none;min-width:0;color:var(--ink);height:100%}
.inp input::placeholder{color:var(--ink-3)}
.inp:focus-within,.inp.foc{box-shadow:inset 0 0 0 1px var(--line-2),var(--ring)}
.inp .show{height:36px;padding:0 10px;border-radius:6px;font-size:13px;font-weight:550;color:var(--ink-2)}
.inp .show:hover{background:rgba(43,27,16,.05)}
.lbl{display:block;font-size:13px;font-weight:550;margin-bottom:6px}
.auth-foot{font-size:12px;color:var(--on-brown-2);display:flex;gap:6px;align-items:center}
.code{position:relative;display:grid;grid-template-columns:repeat(6,44px);gap:8px;justify-content:space-between;width:100%;margin:4px 0 20px}
.code span{height:56px;border-radius:10px;display:grid;place-items:center;font:550 24px var(--mono);font-feature-settings:"zero" 0;background:#fff;box-shadow:inset 0 0 0 1px var(--line-2),0 1px 2px rgba(43,27,16,.04)}
.code span.f{background:var(--bg-det)}
.code span.on{box-shadow:inset 0 0 0 1px var(--line-2),var(--ring)}
.code span.on::after{content:'';width:2px;height:26px;background:var(--brown);animation:blink 1s steps(1) infinite}
.code input{position:absolute;inset:0;width:100%;height:100%;opacity:0;border:0;font-size:16px;cursor:text}
@keyframes blink{50%{opacity:0}}
.auth .resend{display:flex;justify-content:center;margin-top:12px}
.auth .resend a{min-height:44px;display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:550;color:var(--ink-2)}
.auth .resend a em{font-style:normal;color:var(--ink-3);font-weight:450}
.auth .back{display:flex;justify-content:center}
.auth .back a{min-height:44px;display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:550;color:var(--on-brown)}


/* ---------- telefon: paski ---------- */
.mtop{background:var(--brown);color:var(--on-brown);padding:env(safe-area-inset-top,0px) 0 10px;position:sticky;top:0;z-index:20}
.mt-r1{height:44px;display:flex;align-items:center;gap:4px;padding:0 4px 0 16px;position:relative}
.mt-r1 .brand{font-size:15px;font-weight:550;color:var(--on-brown);min-height:44px;display:flex;align-items:center}
.mt-r1 .mback{display:flex;align-items:center;gap:2px;height:44px;margin-left:-12px;padding:0 12px 0 6px;font-size:15px;font-weight:550;color:var(--on-brown)}
.mt-r1 .sp{flex:1}
.mt-r1 .tpl{min-height:44px;display:flex;align-items:center;padding:0 4px}
.mt-r1 .mini-t{position:absolute;left:50%;transform:translateX(-50%);font-size:17px;font-weight:650;color:#fff;opacity:0;transition:opacity .2s ease-out;pointer-events:none}
.mbtn{width:44px;height:44px;border-radius:999px;display:grid;place-items:center;color:var(--on-brown)}
.mbtn:hover{background:rgba(255,255,255,.08)}
.mt-title{font-size:28px;line-height:34px;font-weight:650;color:#fff;letter-spacing:-.015em;padding:4px 16px;max-height:42px;overflow:hidden;transition:max-height .2s ease-out,opacity .2s ease-out,padding .2s ease-out}
.mt-sub{font-size:14px;line-height:20px;color:var(--on-brown-2);padding:0 16px 8px;max-height:40px;overflow:hidden;transition:max-height .2s ease-out,opacity .2s ease-out,padding .2s ease-out}
.mtop.mini .mt-title,.mtop.mini .mt-sub{max-height:0;opacity:0;padding-block:0}
.mtop.mini .mini-t{opacity:1}
.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:30;background:#fff;border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom,0px);display:grid;grid-template-columns:repeat(4,1fr)}
.tab{height:56px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:11px;font-weight:550;color:var(--ink-2)}
.tab-i{width:48px;height:28px;border-radius:999px;display:grid;place-items:center;position:relative;transition:background .15s}
.tab.on{color:var(--brown)}
.tab.on .tab-i{background:var(--sand)}
.badge{position:absolute;top:-3px;left:28px;min-width:17px;height:17px;border-radius:999px;background:#B8233A;color:#fff;font-size:10px;font-weight:650;line-height:1;display:grid;place-items:center;padding:0 5px;box-shadow:0 0 0 2px #fff}
.badge.dk{background:var(--brown)}
.ctop{background:var(--brown);color:var(--on-brown);padding:env(safe-area-inset-top,0px) 0 4px}
.ct-r1{height:44px;display:flex;align-items:center;padding:0 4px}
.ct-r1 .back{display:flex;align-items:center;gap:2px;height:44px;padding:0 12px 0 6px;font-size:15px;font-weight:550;color:var(--on-brown)}
.ct-r1 .sp{flex:1}
.ct-r1 .pos{font-size:13px;color:var(--on-brown-2);padding:0 4px}
.ct-t{display:flex;gap:12px;align-items:flex-start;padding:8px 16px 0}
.ct-t .av{--ring-c:var(--brown)}
.ct-t h1{font-size:22px;line-height:28px;font-weight:650;color:#fff;letter-spacing:-.015em;text-wrap:balance;padding-top:6px}
.ct-pills{display:flex;gap:6px;flex-wrap:wrap;align-items:center;padding:10px 16px 0 68px}
.ct-who{font-size:13px;color:var(--on-brown-2);padding:6px 16px 6px 68px;overflow-wrap:anywhere} /* długi e-mail zamiast imienia */
.mmeta>span{min-width:0;overflow-wrap:anywhere}
.ord-h .tot{white-space:nowrap}
.ct-who .num{font-size:12.5px;color:var(--on-brown-2)}
.ctabs{padding:4px 16px 6px}
.ctabs .seg{height:44px}
.ctabs .seg-in{height:36px}
.mbar{position:fixed;left:0;right:0;bottom:0;z-index:30;display:flex;gap:8px;padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px));background:#fff;border-top:1px solid var(--line);box-shadow:0 -4px 16px -8px rgba(43,27,16,.12)}
.mbar .btn{height:48px}
.mbar .btn-p{flex:1}
.mbar .btn-s{padding:0 14px}

/* =========================================================
   LAPTOP
   ========================================================= */
@media (min-width:1024px){
  html,body{background:#fff}
  .shell{display:grid;grid-template-columns:220px 340px minmax(0,1fr) 340px;background:linear-gradient(90deg,var(--brown) 0 220px,#fff 220px)}
  .shell.L3{grid-template-columns:220px 340px minmax(0,1fr)}
  .shell.L2{grid-template-columns:220px minmax(0,1fr);background:linear-gradient(90deg,var(--brown) 0 220px,var(--bg-list) 220px)}
  .mtop,.tabbar,.ctop,.mbar,.m-only{display:none!important}
  .side{position:sticky;top:0;height:100vh;overflow:auto}
  .c-list{background:var(--bg-list);border-right:1px solid var(--line)}
  .c-list .row{margin:0 8px;border-radius:10px;padding:11px 12px;min-height:72px;gap:10px}
  .c-list .row::after{left:58px;right:12px}
  .c-list .row .av{font-size:13px} /* rozmiar 40 px jak na zatwierdzonej makiecie */
  .c-list .glyph{--ring-c:var(--bg-list);width:14px;height:14px}
  .c-list .glyph svg{width:8px;height:8px}
  .c-list .row:hover{background:rgba(43,27,16,.035)}
  .c-list .row.sel{background:#fff;box-shadow:var(--sh-card)}
  .c-list .row.sel .glyph{--ring-c:#fff}
  .c-list .row.sel::after,.c-list .row:has(+ .row.sel)::after,.c-list .row:has(+ .grp)::after{opacity:0}
  .c-list .nm{font-size:14px}
  .c-list .grp{padding:14px 20px 6px}
  .ch .av .glyph{width:14px;height:14px}
  .ch .av .glyph svg{width:8px;height:8px}
  .tp-l{display:none!important}
  .c-det{border-left:1px solid var(--line)}
  .c-det .inner{position:sticky;top:0}
  .shell.L3 .toast,.shell:not(.L2) .toast{left:calc(560px + (100vw - 560px) / 2)}
  .shell.L2 .toast{left:calc(220px + (100vw - 220px) / 2)}
}
@media (min-width:1024px) and (max-width:1439px){
  .shell{grid-template-columns:220px 320px minmax(0,1fr) 300px}
  .shell.L3{grid-template-columns:220px 320px minmax(0,1fr)}
  .shell.L3 .toast,.shell:not(.L2) .toast{left:calc(540px + (100vw - 540px) / 2)}
}
@media (min-width:1024px) and (max-width:1279px){
  .shell{grid-template-columns:220px 320px minmax(0,1fr)}
  .c-det{display:none}
}

/* =========================================================
   TELEFON
   ========================================================= */
@media (max-width:1023px){
  body{background:#fff}
  .side,.d-only{display:none!important}
  .shell[data-m=list] .c-case,.shell[data-m=list] .c-det{display:none}
  .shell[data-m=case] .c-list,.shell[data-m=case] .c-det,.shell[data-m=case] .mtop,.shell[data-m=case] .tabbar{display:none}
  .shell[data-m=main] .c-list,.shell[data-m=main] .c-case,.shell[data-m=main] .c-det{display:none}
  .shell:not([data-m=case]) .ctop,.shell:not([data-m=case]) .mbar{display:none}
  .shell{padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))}
  .c-list .lh,.c-list>.segs{display:none}
  .ch,.abar,.sec-h.d-hide{display:none}
  .cb{padding:16px 16px 24px;max-width:none}
  .tp:not(.on){display:none!important}
  .msg{max-width:92%}
  .mh{display:none}
  .mb{padding:12px 16px 24px;background:var(--bg-list);min-height:60vh}
  .shell[data-m=main]{background:var(--bg-list)}
  .cn-body{margin-left:0}
  .cn-pills{display:none}
  .cn-pm{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin-top:10px}
  .cn-meta .dl{display:none}
  .cn-pm .olink{margin-left:auto;min-height:44px;margin-block:-12px;padding-left:8px;font-size:13px}
  .cn-pm .olink .num{font-size:13px}
  .cn-pm .wzd{display:none}
  .cn-act{display:grid;grid-template-columns:1fr 1fr}
  .cn-act .btn,.zg-act .btn{height:44px}
  .cn-done{flex-wrap:wrap;row-gap:4px}
  .zg-act{display:grid;grid-template-columns:1fr 1fr}
  .zg-act .btn-p{grid-column:1/-1}
  .btn{height:48px}
  .btn.sm,.btn.md{height:44px}
  .tiles{grid-template-columns:1fr}
  .mode{padding:16px}
  .hist{padding:16px 16px 4px}
  .linkbtn,.chat-more{min-height:44px}
  .mmeta a,.prop dd a{min-height:44px;display:inline-flex;align-items:center}
  .mmeta a{margin-block:-12px}
  .inp .show{height:44px;width:60px}
  .toast{bottom:calc(56px + env(safe-area-inset-bottom,0px) + 12px);min-width:0;width:calc(100% - 32px)}
  .toast .undo{height:44px}
  .scrim.top{display:block;padding:0;background:#fff;animation:none;overflow:auto}
  .pal{margin:0;border-radius:0;max-width:none;box-shadow:none;min-height:100%;padding-top:calc(env(safe-area-inset-top,0px) + 8px);animation:none}
  .pal-in{padding:0 4px 0 16px}
  .pal-g{max-height:none;overflow:visible}
  .pal kbd,.pal-f{display:none}
  .pal-i{height:52px}
  .pal-in{height:56px}
  .pal-in input{height:44px}
  .rf-wrap{padding:0}
  .scrim{align-items:end;padding:0}
  .scrim .dlg,.scrim .sheet{max-width:none;border-radius:20px 20px 0 0;padding:8px 16px calc(16px + env(safe-area-inset-bottom,0px));animation:up .24s var(--ease)}
  @keyframes up{from{transform:translateY(40px);opacity:.4}}
  .scrim .handle{display:block;width:36px;height:5px;border-radius:999px;background:rgba(43,27,16,.18);margin:0 auto 14px}
  .scrim .dlg .ft{flex-direction:column-reverse;margin-top:16px}
  .scrim .dlg .ft .btn{width:100%;height:52px}
  .sheet{width:100%;background:#fff;box-shadow:var(--sh-win)}
  .sheet .rf-f{flex-direction:column;background:none;border:0;padding:16px 0 0}
  .sheet .rf-f .btn{width:100%;height:52px}
  .sheet .rf-h,.sheet .rf-amt,.sheet .rf-sub,.sheet .rf-rows{padding-left:0;padding-right:0}
  .sheet .rf-for,.sheet .rf-rows{margin-left:0;margin-right:0}
  .sheet .props .prop{min-height:44px}
  .sheet .props .prop+.prop{border-top:1px solid var(--line)}
  .solo{min-height:0;padding:0}
  .solo .segs{display:none}
  .solo .empty{padding:72px 24px}
  .auth{justify-content:flex-start;padding-top:calc(env(safe-area-inset-top,0px) + 56px)}
  .errbar .btn{height:44px}
}
@media (hover:none){.pal kbd{display:none}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
/* zadanie 1.7: cienie i zgłoszenia. Uwaga UX 6: ikona 16 px w linii z tytułem zamiast beżowego kafelka. */
.cn-tt h3{display:flex;align-items:center;gap:6px}
.cn-tt h3 .cn-i{flex:none;color:var(--ink-2)}
.cn-body{margin:12px 0 0}
.cn-why+.cn-why{margin-top:6px}
.cn-st{color:var(--ink-2)}
.cn-st b{font-weight:550;color:var(--ink)}
.zg-act form{display:contents}
.fld .ferr{margin-top:6px;font-size:13px;line-height:18px;color:#B8233A}
/* uwaga 5: fokus pola komentarza zmienia samą krawędź (bez ramki w ramce) */
.fld textarea:focus,.fld textarea.foc,.fld textarea:focus-visible{outline:none;box-shadow:inset 0 0 0 1px var(--focus),0 0 0 3px rgba(224,162,27,.22)}
/* zadanie 1.8: strona trybu, logowanie, kod i zaproszenie. */
/* uwaga 5: fokus pola logowania i okienka kodu zmienia samą krawędź (bez ramki w ramce) */
.inp:focus-within,.inp.foc{box-shadow:inset 0 0 0 1px var(--focus),0 0 0 3px rgba(224,162,27,.22)}
.code span.on{box-shadow:inset 0 0 0 1px var(--focus),0 0 0 3px rgba(224,162,27,.22)}
.auth .ferr{margin:-8px 0 16px;font-size:13px;line-height:18px;color:#B8233A}
.auth-qr{display:block;width:200px;height:auto;max-width:100%;margin:0 auto 12px}
.auth-card>p.auth-sub{margin:0 0 6px}
.auth-key{display:block;margin-bottom:16px;font:550 14px/20px var(--mono);letter-spacing:.04em;overflow-wrap:anywhere}
/* UX 6: w kluczach trybu ikona 16 px w linii z tytułem, bez beżowego kółka */
.hist li b{display:flex;align-items:center;gap:6px}
.hist .hist-i{flex:none;color:var(--ink-2)}
.hist li b+span{display:block;padding-left:22px}
/* zadanie 3.1: zwrot do decyzji. Uwaga 4: wiersze w oknie bez szarej skrzynki, tylko linia między nimi;
   uwaga UX 1: w arkuszu link do rozmowy pod kwotą (13 px, 550), X 44 px w wierszu tytułu. */
.dlg .rows2{margin:16px 0 12px;padding:0;background:none;box-shadow:none;border-radius:0}
.dlg .rows2 .prop{min-height:40px}
.dlg .rows2 dd{flex-wrap:wrap}
.rf-link{display:inline-flex;align-items:center;gap:6px;min-height:44px;margin:-8px 20px 4px;font-size:13px;font-weight:550;color:var(--brown)}
.rf-link:hover{text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--focus)}
.rf-rows dd{flex-wrap:wrap}
.rf-note{margin:0 20px 12px;font-size:12px;line-height:18px;color:var(--ink-3);overflow-wrap:anywhere}
.rf-state{margin:4px 20px 14px}
.rf-state .pill{height:auto;min-height:24px;padding:3px 8px 3px 6px;line-height:18px;white-space:normal;text-align:left}
.rf-why{display:flex;align-items:center;gap:8px;font-size:13px;line-height:18px;color:var(--ink-2)}
.rf-why .ic{flex:none}
.rf-h .pill{flex:none}
.rf-chat .sec-h .linkbtn{font-size:13px}
.sheet .rf-link,.sheet .rf-note,.sheet .rf-state{margin-left:0;margin-right:0}
/* poprawki z kontroli: na laptopie lista obok karty sprawy przewija się sama (wybrana sprawa jest w widoku,
   panel.js przewija do niej), a karta Konto z Wyloguj na telefonie (strona Tryb). */
@media (min-width:1024px){
  .shell[data-m=case] .c-list{position:sticky;top:0;height:100vh;overflow:auto;overscroll-behavior:contain}
}
.konto li{display:flex;align-items:center;gap:12px}
.konto li>div{flex:1;min-width:0}
/* poprawki z kontroli: kilka pigułek zwrotów w nagłówku karty łamie się do drugiej linii (bez poziomego paska) */
.ch-2{flex-wrap:wrap;row-gap:6px}
