/* KICKS ZONE · Kokpit · piasecki.studio */
:root {
  color-scheme: light;
  --bg: #ffffff; --surface: #ffffff; --surface-2: #f5f5f5; --surface-3: #ececec;
  --line: #e5e5e5; --line-2: #d4d4d4; --ctl: #8a8a8a;
  --ink: #0a0a0a; --ink-2: #474747; --ink-3: #6b6b6b; --inv: #ffffff;
  --brand: #fb2c36; --red: #c40009; --red-soft: #fff0f0; --ok: #0a6e23; --ok-soft: #eaf7ee; --warn: #8a4d00; --warn-soft: #fff5e5;
  --s1: #2a78d6; --s2: #eb6834; --bar: #1a1a1a; --bar-muted: #8c8c8c; --focus: #1d4ed8;
  --r: 3px; --top: 56px;
  --f: 'Geist', 'Helvetica Neue', Arial, sans-serif;
  --m: 'Geist Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0a0a0a; --surface: #111111; --surface-2: #181818; --surface-3: #202020;
    --line: #242424; --line-2: #333333; --ctl: #6a6a6a;
    --ink: #f5f5f5; --ink-2: #b8b8b8; --ink-3: #8f8f8f; --inv: #0a0a0a;
    --red: #ff5a62; --red-soft: #2a1213; --ok: #3ccb63; --ok-soft: #0f2416; --warn: #f0a640; --warn-soft: #2a1d08;
    --s1: #3987e5; --s2: #d95926; --bar: #ececec; --bar-muted: #7a7a7a; --focus: #8ab4ff;
  }
}
:root[data-theme="dark"], .zone-dark {
  color-scheme: dark;
  --bg: #0a0a0a; --surface: #111111; --surface-2: #181818; --surface-3: #202020;
  --line: #242424; --line-2: #333333; --ctl: #6a6a6a;
  --ink: #f5f5f5; --ink-2: #b8b8b8; --ink-3: #8f8f8f; --inv: #0a0a0a;
  --red: #ff5a62; --red-soft: #2a1213; --ok: #3ccb63; --ok-soft: #0f2416; --warn: #f0a640; --warn-soft: #2a1d08;
  --s1: #3987e5; --s2: #d95926; --bar: #ececec; --bar-muted: #7a7a7a; --focus: #8ab4ff;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 14px/1.45 var(--f); font-feature-settings: 'tnum' 1, 'ss01' 1; min-height: 100vh; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
img, svg { display: block; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
.hide, [hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--inv); padding: 10px 14px; z-index: 200; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.mono { font-family: var(--m); }
.lab { font: 500 11px/1.2 var(--m); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }
.muted { color: var(--ink-3); }
.sm { font-size: 13px; }
.xs { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.kz-id { font: 600 12px/1 var(--m); letter-spacing: 0.04em; color: var(--red); }
kbd { font: 600 11px/1 var(--m); padding: 3px 6px; border: 1px solid var(--ctl); border-bottom-width: 2px; border-radius: 3px; background: var(--surface); color: var(--ink-2); }

/* ---------- pasek górny ---------- */
.top { position: sticky; top: 0; z-index: 40; height: var(--top); display: flex; align-items: center; gap: 14px; padding: 0 16px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand svg { height: 15px; width: auto; fill: var(--ink); }
.brand-sub { font: 600 10px/1 var(--m); text-transform: uppercase; letter-spacing: 0.1em; padding: 4px 6px; border: 1.5px solid var(--ink); }
.roles { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line-2); border-radius: var(--r); margin: 0 auto; background: var(--surface); }
.roles a { display: flex; align-items: center; gap: 7px; text-decoration: none; padding: 9px 14px; border-radius: 2px; font: 600 11px/1 var(--m); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); white-space: nowrap; }
.roles a i { width: 6px; height: 6px; border-radius: 50%; background: transparent; }
.roles a:hover { color: var(--ink); }
.roles a[aria-current="page"] { background: var(--ink); color: var(--inv); }
.roles a[aria-current="page"] i { background: var(--brand); }
.top-r { display: flex; align-items: center; gap: 8px; flex: none; }
.demo-chip { font: 500 11px/1 var(--m); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); border: 1px dashed var(--ctl); padding: 6px 8px; border-radius: 2px; white-space: nowrap; }
.kbtn { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); color: var(--ink-3); cursor: pointer; font-size: 13px; }
.kbtn:hover { border-color: var(--ink); color: var(--ink); }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--r); cursor: pointer; flex: none; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 17px; height: 17px; }
.scan-dot { display: flex; align-items: center; gap: 6px; font: 500 11px/1 var(--m); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); }
.scan-dot i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.scan-dot.hit i { background: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 25%, transparent); }

/* ---------- układ ---------- */
.shell { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: calc(100vh - var(--top)); }
.side { position: sticky; top: var(--top); align-self: start; height: calc(100vh - var(--top)); overflow-y: auto; overflow-x: hidden; padding: 18px 12px 24px; border-right: 1px solid var(--line); background: var(--bg); }
.side a { position: relative; display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 0 10px 0 14px; border-radius: var(--r); text-decoration: none; color: var(--ink-2); font-weight: 500; }
.side a > span:not(.cnt):not(.soon) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side a:hover { background: var(--surface-2); color: var(--ink); }
.side a[aria-current="page"] { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.side a[aria-current="page"]::before { content: ''; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; background: var(--brand); }
.side a svg, .tabbar a svg { width: 18px; height: 18px; flex: none; }
.cnt { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--brand); color: #0a0a0a; font: 700 12px/22px var(--m); text-align: center; }
.soon { margin-left: auto; font: 500 10px/1 var(--m); text-transform: uppercase; letter-spacing: 0.04em; padding: 4px 5px; border: 1px dashed var(--ctl); border-radius: 2px; color: var(--ink-3); flex: none; }
.side-sep { margin: 20px 14px 8px; }
main { padding: 28px 32px 80px; min-width: 0; outline: none; }
.tabbar { display: none; }
.demo-foot { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; justify-content: center; padding: 16px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 12px; }
.link { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: var(--ink-2); font: inherit; }
.link:hover { color: var(--ink); }

/* ---------- nagłówek strony ---------- */
.ph { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 20px; margin-bottom: 22px; }
.ph .eb { font: 500 11px/1 var(--m); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.ph .eb b { color: var(--brand); font-weight: 600; }
.ph h1 { font-size: 30px; line-height: 1.05; font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; }
.ph p { color: var(--ink-2); margin-top: 8px; max-width: 64ch; }
.ph-r { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); gap: 16px; align-items: start; }
.stack > * + * { margin-top: 16px; }
.sticky-col { position: sticky; top: calc(var(--top) + 16px); }

/* ---------- karty ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; min-width: 0; }
.card-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 16px; }
.card-h h2 { font: 600 11px/1.2 var(--m); text-transform: uppercase; letter-spacing: 0.09em; color: var(--ink); display: flex; gap: 8px; align-items: center; }
.card-h h2 .n { color: var(--ink-3); }
.card-h .xs { color: var(--ink-3); }
.card.dark { background: var(--ink); color: var(--inv); border-color: var(--ink); }
.card.dark .lab, .card.dark .muted { color: color-mix(in srgb, var(--inv) 62%, transparent); }
.empty { padding: 40px 16px; text-align: center; color: var(--ink-3); }
.empty svg { width: 30px; height: 30px; margin: 0 auto 10px; color: var(--ink-3); }
.empty b { display: block; color: var(--ink); font: 700 13px/1.3 var(--m); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }

/* ---------- przyciski, pola ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r); border: 1.5px solid var(--ink); background: var(--ink); color: var(--inv); font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .12s var(--ease), background .15s, border-color .15s, opacity .15s; }
.btn:hover { background: color-mix(in srgb, var(--ink) 85%, var(--brand)); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ctl); }
.btn.ghost:hover { border-color: var(--ink); background: var(--surface-2); }
.btn.brand { background: var(--brand); border-color: var(--brand); color: #0a0a0a; }
.btn.brand:hover { background: #ff4450; }
.btn.sm { min-height: 40px; padding: 0 14px; font-size: 13px; }
.btn.xs { min-height: 34px; padding: 0 10px; font-size: 12px; }
.btn.xl { min-height: 64px; font-size: 17px; width: 100%; }
.btn.wide { width: 100%; }
.btn svg { width: 17px; height: 17px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field > span { font: 500 11px/1.2 var(--m); text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-2); }
.inp { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--ctl); border-radius: var(--r); background: var(--surface); }
textarea.inp { min-height: 84px; resize: vertical; }
.inp:focus { outline: 3px solid var(--focus); outline-offset: 0; border-color: var(--ink); }
.inp.big { font: 700 26px/1 var(--f); min-height: 60px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.seg button, .pick button { min-height: 44px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--ctl); background: var(--surface); cursor: pointer; font-weight: 500; }
.seg button:hover, .pick button:hover { border-color: var(--ink); }
.seg button[aria-pressed="true"], .pick button[aria-pressed="true"] { background: var(--ink); color: var(--inv); border-color: var(--ink); }
.seg.mini button { min-height: 34px; padding: 0 11px; font: 600 11px/1 var(--m); text-transform: uppercase; letter-spacing: 0.06em; }
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 6px; }
.pick button { padding: 0 4px; font-weight: 600; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs button { background: none; border: 0; padding: 12px 14px; font: 600 11px/1 var(--m); text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--brand); }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); flex: none; }

/* ---------- chipy ---------- */
.chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 2px; font-size: 12px; font-weight: 500; background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.chip svg { width: 12px; height: 12px; flex: none; }
.chip.own { background: var(--ink); color: var(--inv); border-color: var(--ink); font: 600 11px/1 var(--m); text-transform: uppercase; letter-spacing: 0.06em; }
.chip.k { background: var(--surface); }
.chip.ok { color: var(--ok); background: var(--ok-soft); border-color: transparent; }
.chip.warn { color: var(--warn); background: var(--warn-soft); border-color: transparent; }
.chip.red { color: var(--red); background: var(--red-soft); border-color: transparent; }
.chip.blue { color: var(--s1); background: color-mix(in srgb, var(--s1) 12%, transparent); border-color: transparent; }
.chip.dash { border-style: dashed; border-color: var(--ctl); background: transparent; color: var(--ink-3); }
.chip.solid { background: var(--ink); color: var(--inv); border-color: var(--ink); }

/* ---------- metka mini (wiersze) ---------- */
.tagline { display: inline-flex; align-items: center; gap: 8px; }
.tagline .px { font: 700 12px/1 var(--m); letter-spacing: 0.02em; }

/* ---------- Do zrobienia teraz ---------- */
.todo { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 18px; }
.todo a, .todo button { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); text-decoration: none; text-align: left; cursor: pointer; color: var(--ink); }
.todo a:hover, .todo button:hover { border-color: var(--ink); }
.todo .n { font: 700 26px/1 var(--f); letter-spacing: -0.02em; min-width: 30px; }
.todo .hot { border-left: 3px solid var(--brand); }
.todo .t b { display: block; font-size: 14px; }
.todo .t span { font-size: 12px; color: var(--ink-3); }
.todo .go { font: 600 11px/1 var(--m); text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-3); }

/* ---------- puls ---------- */
.pulse { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 16px; font-size: 13px; color: var(--ink-2); background: var(--surface); }
.pulse .dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.pulse .dot::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--ok); opacity: 0; }
.pulse b { color: var(--ink); }
.pulse .lab { margin-right: 4px; }
.pulse.new { border-color: var(--ok); }

/* ---------- hero przychodu ---------- */
.hero { display: grid; grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.6fr); gap: 28px; padding: 24px; }
.hero .v { font: 700 52px/1 var(--f); letter-spacing: -0.035em; margin: 14px 0 10px; font-variant-numeric: tabular-nums; }
.delta { display: inline-flex; align-items: center; gap: 4px; font: 600 12px/1 var(--m); padding: 4px 7px; border-radius: 2px; }
.delta.up { color: var(--ok); background: var(--ok-soft); }
.delta.dn { color: var(--red); background: var(--red-soft); }
.splitbar { display: flex; height: 12px; border-radius: 2px; overflow: hidden; gap: 2px; margin: 22px 0 10px; background: var(--surface); cursor: pointer; }
.splitbar span { display: block; height: 100%; min-width: 3px; }
.split-legend { display: grid; gap: 8px; font-size: 13px; }
.split-legend div { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.split-legend i { width: 10px; height: 10px; border-radius: 2px; }
.split-legend b { font-variant-numeric: tabular-nums; }
.say { margin-top: 14px; font-size: 13px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 12px; }
.say b { color: var(--ink); }

/* ---------- KPI ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 16px 12px; min-width: 0; text-decoration: none; display: block; color: var(--ink); }
a.kpi:hover { border-color: var(--ink); }
.kpi .v { font: 700 32px/1 var(--f); letter-spacing: -0.03em; margin: 12px 0 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kpi .v.red { color: var(--red); }
.kpi .d { font-size: 12px; color: var(--ink-3); min-height: 17px; }
.kpi .spark { height: 30px; margin-top: 10px; }
.kpi .spark svg { width: 100%; height: 100%; overflow: visible; }

/* ---------- wykresy ---------- */
.chart { position: relative; touch-action: pan-y; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.gl { stroke: var(--line); stroke-width: 1; }
.ax { fill: var(--ink-3); font: 400 10.5px var(--m); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.legend i.dashl { width: 16px; height: 0; border-top: 2px dashed var(--ink-3); border-radius: 0; vertical-align: 3px; }
.readout { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; min-height: 38px; padding: 10px 12px; margin-top: 10px; border-radius: var(--r); background: var(--surface-2); font-size: 13px; }
.readout b { font-variant-numeric: tabular-nums; }
.readout .lab { margin-right: 4px; }
.heat { display: grid; grid-template-columns: 34px repeat(13, minmax(0, 1fr)); gap: 3px; font: 400 10.5px var(--m); color: var(--ink-3); }
.heat .c { height: 22px; border-radius: 2px; background: var(--s1); cursor: pointer; border: 0; padding: 0; }
.heat .c.top { outline: 2px solid var(--ink); outline-offset: 1px; }
.heat .hl { display: flex; align-items: center; }
.heat .hh { text-align: center; }
.ages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.age { position: relative; border: 1px solid var(--line-2); border-radius: var(--r); padding: 12px 10px 10px; text-decoration: none; color: var(--ink); background: var(--surface); overflow: hidden; }
.age:hover { border-color: var(--ink); }
.age::before { content: ''; position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--line-2); }
.age .n { font: 700 30px/1 var(--f); letter-spacing: -0.02em; margin: 8px 0 4px; }
.age .bar { height: 4px; border-radius: 2px; background: var(--bar-muted); margin-top: 10px; }
.age.w .bar { background: var(--warn); } .age.c .bar { background: var(--brand); }
.age.c { border-color: var(--brand); }
.rank { display: grid; gap: 4px; }
.rank button { display: grid; grid-template-columns: minmax(100px, 150px) minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 44px; padding: 0 6px; border: 0; background: none; text-align: left; cursor: pointer; border-radius: var(--r); color: var(--ink); }
.rank button:hover { background: var(--surface-2); }
.rank .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.rank .tr { display: flex; height: 12px; gap: 2px; }
.rank .tr span { height: 100%; border-radius: 1px; }

/* ---------- tabele ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font: 500 10.5px/1.2 var(--m); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); padding: 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr[tabindex] { cursor: pointer; }
.tbl tbody tr[tabindex]:hover td { background: var(--surface-2); }
.tbl tbody tr.pend td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
.tbl .r { text-align: right; }
.tbl .t { font-weight: 600; max-width: 360px; line-height: 1.3; }
.tbl .t small { display: block; font-weight: 400; color: var(--ink-3); font-size: 12px; margin-top: 3px; }
.tbl input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--ink); }
.tbl .px { font: 700 15px/1 var(--f); }
.thumb { width: 44px; height: 44px; border-radius: 2px; overflow: hidden; flex: none; background: var(--surface-2); border: 1px solid var(--line); }
.thumb svg, .thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.lg { width: 104px; height: 104px; }
.thumb.xl { width: 100%; height: auto; aspect-ratio: 1; }
.cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; align-items: center; }
.filters .inp { width: auto; min-height: 44px; }
.filters .search { flex: 1 1 240px; }
.bulk { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 40px; margin-bottom: 10px; }

/* ---------- alerty, listy ---------- */
.li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.li:first-child { border-top: 0; padding-top: 0; }
.li .grow { flex: 1; min-width: 0; }
.li .ttl { font-weight: 600; line-height: 1.3; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); border: 1px dashed var(--ctl); background: var(--surface-2); }
.notice.wait { border: 1px solid var(--warn); border-left-width: 3px; background: var(--warn-soft); }
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.notice b { display: block; margin-bottom: 2px; }
.steps { counter-reset: s; display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: s; position: relative; padding-left: 40px; min-height: 22px; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 0; font: 600 12px/22px var(--m); color: var(--brand); }
.dl { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px 14px; font-size: 14px; }
.dl dt { color: var(--ink-3); font: 500 11px/1.6 var(--m); text-transform: uppercase; letter-spacing: 0.06em; }
.dl dd { margin: 0; font-weight: 500; }
.who { display: flex; align-items: center; gap: 12px; }
.av { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--inv); display: grid; place-items: center; font: 700 13px/1 var(--m); flex: none; }

/* ---------- KASA ---------- */
body.kasa main { background: var(--bg); }
.pos { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 18px; align-items: start; }
.scan { position: relative; display: flex; gap: 12px; align-items: center; padding: 8px 8px 8px 16px; border: 2px solid var(--ink); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.scan > svg.bc { width: 30px; height: 40px; flex: none; color: var(--ink); }
.scan .inp { font: 600 22px/1 var(--m); letter-spacing: 0.05em; border: 0; outline: 0; padding: 0 4px; min-height: 56px; text-transform: uppercase; background: transparent; caret-color: var(--brand); }
.scan .inp::placeholder { text-transform: none; letter-spacing: 0; font: 400 16px var(--f); color: var(--ink-3); }
.scan:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 18%, transparent); }
.scan .laser { position: absolute; top: 0; bottom: 0; left: -10%; width: 3px; background: var(--brand); box-shadow: 0 0 14px 3px color-mix(in srgb, var(--brand) 60%, transparent); opacity: 0; pointer-events: none; }
.scan.ok { border-color: var(--ok); }
.scan.err { border-color: var(--red); }
.kbar { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12px; color: var(--ink-3); align-items: center; }
.kbar span { display: inline-flex; gap: 5px; align-items: center; }
.demo-scan { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.demo-scan button { display: grid; gap: 3px; padding: 6px 8px 5px; border: 1px solid var(--line-2); border-radius: 2px; background: #fff; cursor: pointer; }
.demo-scan button:hover { border-color: var(--brand); }
.demo-scan button svg { height: 20px; width: 96px; }
.demo-scan button span { font: 600 10px var(--m); color: #0a0a0a; }
.errbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 56px; padding: 10px 14px; border-radius: var(--r); background: var(--red-soft); border: 1px solid var(--red); color: var(--red); font-weight: 600; margin-top: 12px; }
.errbar svg { width: 20px; height: 20px; flex: none; }
.errbar .row { margin-left: auto; }
.last { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px; margin-top: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.last .thumb { width: 112px; height: 112px; }
.last h3 { font-size: 18px; line-height: 1.25; margin: 6px 0 8px; }
.cart { margin-top: 14px; }
.cline { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.cline:first-child { border-top: 0; }
.cline .thumb { width: 60px; height: 60px; }
.cline .ttl { font-weight: 600; line-height: 1.3; }
.cline .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; }
.cline .pr { display: flex; gap: 6px; align-items: center; }
.cline .pr .inp { width: 112px; min-height: 46px; text-align: right; font: 700 18px/1 var(--f); padding: 6px 10px; }
.cline .share { font-size: 12px; color: var(--ok); margin-top: 4px; }
.paybox { display: grid; gap: 14px; position: sticky; top: calc(var(--top) + 16px); }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.total .v { font: 700 46px/1 var(--f); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pay { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pay button { position: relative; display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 0 14px; border: 1px solid var(--ctl); border-radius: var(--r); background: var(--surface); cursor: pointer; font-weight: 600; font-size: 16px; text-align: left; }
.pay button svg { width: 20px; height: 20px; }
.pay button kbd { position: absolute; top: 7px; right: 7px; }
.pay button[aria-checked="true"] { background: var(--ink); color: var(--inv); border-color: var(--ink); }
.pay button[aria-checked="true"] kbd { background: transparent; color: inherit; border-color: currentColor; opacity: .6; }
.final { min-height: 72px; font-size: 18px; width: 100%; justify-content: space-between; padding: 0 20px; }
.final kbd { background: transparent; color: inherit; border-color: currentColor; opacity: .7; }
.photo-drop { position: relative; display: flex; gap: 12px; align-items: center; min-height: 64px; padding: 12px 14px; border: 1.5px dashed var(--ctl); border-radius: var(--r); cursor: pointer; background: var(--surface-2); }
.photo-drop:hover { border-color: var(--ink); }
.photo-drop svg { width: 24px; height: 24px; flex: none; }
.photo-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photos { display: flex; gap: 6px; flex-wrap: wrap; }
.photos .thumb { width: 60px; height: 60px; }
.paybar-m { display: none; }
.done { border: 2px solid var(--ok); }
.done h2 { color: var(--ok); }
.msg { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.bubble { background: var(--surface); border: 1px solid var(--line); border-radius: 14px 14px 14px 3px; padding: 11px 13px; font-size: 13px; white-space: pre-wrap; }
.queue-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.drop-on { border-color: var(--brand) !important; }

/* ---------- etykieta 50×30 ---------- */
.lbl { --w: 50mm; --h: 30mm; width: var(--w); height: var(--h); background: #fff; color: #000; padding: 1.6mm 2mm 1.2mm; display: grid; grid-template-rows: auto 1fr auto auto; gap: 0.6mm; font-family: var(--f); overflow: hidden; border-radius: 1mm; position: relative; }
.lbl.s57 { --w: 57mm; --h: 32mm; }
.lbl .l-top { display: flex; justify-content: space-between; align-items: center; gap: 2mm; }
.lbl .l-top svg { height: 2.2mm; width: auto; fill: #000; }
.lbl .l-top b { font-size: 3.6mm; font-weight: 700; line-height: 1; white-space: nowrap; }
.lbl .l-name { font-size: 2.15mm; line-height: 1.22; font-weight: 500; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.lbl .l-name em { font-style: normal; font-weight: 700; }
.lbl .l-bc { height: 7.5mm; width: 100%; }
.lbl .l-bc svg { width: 100%; height: 100%; }
.lbl .l-foot { display: flex; justify-content: space-between; font: 600 2.2mm/1 var(--m); letter-spacing: 0.04em; }
.lbl-stage { position: relative; display: grid; place-items: center; padding: 30px 12px 26px; background: var(--surface-2); border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; }
.lbl-stage::before { content: ''; position: absolute; left: 14%; right: 14%; top: 14px; height: 6px; border-radius: 3px; background: var(--ink); opacity: .85; }
.lbl-stage .lbl { transform: scale(1.6); margin: 9mm 0; box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 10px 26px rgba(0,0,0,.12); }
.lbl-stage .tryscan { position: absolute; bottom: 8px; right: 10px; font: 500 10.5px var(--m); color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- arkusz (szuflada z prawej, na telefonie od dołu) ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 80; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.sheet { position: absolute; right: 0; top: 0; bottom: 0; width: min(580px, 100%); background: var(--surface); display: flex; flex-direction: column; box-shadow: -14px 0 50px rgba(0,0,0,.25); }
.sheet-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 14px 22px; border-bottom: 1px solid var(--line); }
.sheet-h .lab { color: var(--ink-3); }
.sheet-b { flex: 1; overflow: auto; padding: 20px 22px 28px; overscroll-behavior: contain; }
.sheet-f { padding: 14px 22px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.sheet h2.big { font-size: 22px; line-height: 1.2; margin-bottom: 8px; }

/* ---------- PIN ---------- */
.pin { display: grid; gap: 18px; justify-items: center; padding: 6px 0; }
.pin .dots { display: flex; gap: 14px; }
.pin .dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink); }
.pin .dots i.on { background: var(--ink); }
.pin.bad .dots { animation: shake .3s; }
.pin .keys { display: grid; grid-template-columns: repeat(3, 76px); gap: 10px; }
.pin .keys button { height: 64px; border-radius: var(--r); border: 1px solid var(--ctl); background: var(--surface); font: 600 24px/1 var(--f); cursor: pointer; }
.pin .keys button:active { background: var(--surface-3); }

/* ---------- toasty ---------- */
.toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 120; display: grid; gap: 8px; width: min(460px, calc(100% - 28px)); }
.toast { position: relative; display: flex; gap: 12px; align-items: center; justify-content: space-between; background: #0a0a0a; color: #fff; padding: 14px 16px; border-radius: var(--r); box-shadow: 0 14px 40px rgba(0,0,0,.3); font-weight: 500; overflow: hidden; border-top: 2px solid var(--brand); }
.toast.err { background: #b00008; border-top-color: #fff; }
.toast.ok { border-top-color: #3ccb63; }
.toast button { background: none; border: 1px solid rgba(255,255,255,.6); color: #fff; border-radius: 2px; min-height: 36px; padding: 0 12px; cursor: pointer; font-weight: 600; flex: none; }
.toast .tbar { position: absolute; left: 0; bottom: 0; height: 2px; background: rgba(255,255,255,.5); width: 100%; transform-origin: left; }

/* ---------- paleta Ctrl+K ---------- */
.pal-wrap { position: fixed; inset: 0; z-index: 110; display: grid; justify-items: center; align-items: start; padding: 12vh 14px 14px; background: rgba(0,0,0,.45); }
.pal { width: min(600px, 100%); background: var(--surface); border: 1px solid var(--line-2); border-radius: 6px; box-shadow: 0 30px 80px rgba(0,0,0,.35); overflow: hidden; }
.pal input { width: 100%; height: 56px; border: 0; border-bottom: 1px solid var(--line); padding: 0 18px; font-size: 17px; background: transparent; outline: none; }
.pal ul { list-style: none; margin: 0; padding: 6px; max-height: 52vh; overflow: auto; }
.pal li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--r); cursor: pointer; min-height: 48px; }
.pal li[aria-selected="true"] { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--brand); }
.pal li .grow { flex: 1; min-width: 0; }
.pal li .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal .grp { font: 500 10.5px var(--m); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); padding: 10px 10px 4px; }
.pal .foot { display: flex; gap: 14px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.bignum { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; pointer-events: none; font: 700 clamp(56px, 13vw, 170px)/1 var(--m); color: var(--brand); letter-spacing: 0.02em; }

/* ---------- powitanie ---------- */
.welcome { position: fixed; inset: 0; z-index: 150; background: #0a0a0a; color: #f5f5f5; overflow: auto; }
.welcome .in { min-height: 100%; max-width: 1180px; margin: 0 auto; padding: 28px 24px 40px; display: flex; flex-direction: column; }
.welcome .wtop { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.welcome .wtop svg { height: 16px; width: auto; fill: #fff; }
.welcome h1 { font: 700 clamp(34px, 6.4vw, 86px)/0.95 var(--f); letter-spacing: -0.035em; text-transform: uppercase; margin: 8vh 0 18px; max-width: 13ch; }
.welcome h1 em { font-style: normal; color: var(--brand); }
.welcome .lead { font-size: 17px; color: #b8b8b8; max-width: 56ch; }
.wcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
.wcard { display: grid; gap: 10px; align-content: start; text-align: left; padding: 20px; min-height: 200px; border: 1px solid #333; border-radius: 3px; background: #111; color: #f5f5f5; cursor: pointer; transition: border-color .15s, transform .15s var(--ease); }
.wcard:hover { border-color: #fff; transform: translateY(-2px); }
.wcard .lab { color: #8f8f8f; }
.wcard b { font-size: 24px; text-transform: uppercase; letter-spacing: -0.01em; }
.wcard span { color: #b8b8b8; font-size: 14px; }
.wcard .go { margin-top: auto; font: 600 11px/1 var(--m); text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand); }
.wplay { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 12px; padding: 18px 20px; background: var(--brand); color: #0a0a0a; border: 0; border-radius: 3px; cursor: pointer; text-align: left; width: 100%; }
.wplay b { font: 700 22px/1.1 var(--f); text-transform: uppercase; }
.wplay span { font: 600 12px var(--m); text-transform: uppercase; letter-spacing: 0.08em; }
.welcome .wfoot { margin-top: auto; padding-top: 32px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font: 500 11px/1.5 var(--m); text-transform: uppercase; letter-spacing: 0.06em; color: #8f8f8f; }
.welcome .wfoot button { color: #f5f5f5; }

/* ---------- przewodnik ---------- */
.tour { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 140; width: min(720px, calc(100% - 24px)); background: #0a0a0a; color: #f5f5f5; border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,.4); border-top: 3px solid var(--brand); padding: 14px 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; align-items: center; }
.tour .lab { color: #8f8f8f; }
.tour b { display: block; font-size: 16px; margin: 4px 0 2px; }
.tour p { color: #c8c8c8; font-size: 13px; }
.tour .row { flex-wrap: nowrap; }
.tour .btn { border-color: #fff; background: #fff; color: #0a0a0a; }
.tour .btn.ghost { background: transparent; color: #fff; border-color: #555; }
.tour .prog { grid-column: 1 / -1; display: flex; gap: 4px; }
.tour .prog i { flex: 1; height: 3px; background: #333; border-radius: 2px; }
.tour .prog i.on { background: var(--brand); }
.tour-hl { outline: 3px solid var(--brand) !important; outline-offset: 4px; border-radius: 3px; position: relative; z-index: 5; }

/* ---------- KOMISANT: aplikacja ---------- */
.kom-stage { display: grid; grid-template-columns: minmax(0, 1fr) 410px minmax(0, 1fr); gap: 32px; align-items: start; }
.kom-side { padding-top: 40px; }
.kom-side h2 { font: 700 26px/1.05 var(--f); text-transform: uppercase; margin: 10px 0 12px; }
.kom-side p { color: var(--ink-2); font-size: 14px; }
.kom-side ul { padding: 0; margin: 16px 0 0; list-style: none; display: grid; gap: 10px; }
.kom-side li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: 13px; color: var(--ink-2); }
.kom-side li b { color: var(--ink); }
.phone { position: relative; width: 410px; height: 860px; border-radius: 54px; padding: 10px; background: #0a0a0a; box-shadow: 0 0 0 2px #2a2a2a, 0 40px 90px rgba(0,0,0,.28); }
.phone::before { content: ''; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 112px; height: 32px; border-radius: 20px; background: #000; z-index: 30; }
.app { --ar: 14px; position: relative; height: 100%; border-radius: 44px; overflow: hidden; background: var(--bg); display: flex; flex-direction: column; }
.app-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 16px 24px; scrollbar-width: none; }
.app-scroll::-webkit-scrollbar { display: none; }
.app-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 54px 0 12px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.app-top h1 { font: 700 26px/1 var(--f); letter-spacing: -0.02em; }
.app-top .shop { font: 500 11px/1 var(--m); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); margin-bottom: 6px; }
.bell { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.bell svg { width: 19px; height: 19px; }
.bell i { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--brand); color: #0a0a0a; font: 700 10px/18px var(--m); font-style: normal; text-align: center; padding: 0 4px; }
.app-nav { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); background: var(--surface); padding: 6px 6px 22px; }
.app-nav button { position: relative; display: grid; justify-items: center; gap: 4px; min-height: 52px; padding: 6px 0 0; border: 0; background: none; color: var(--ink-3); font: 600 10.5px/1 var(--f); cursor: pointer; }
.app-nav button svg { width: 22px; height: 22px; }
.app-nav button[aria-current="page"] { color: var(--ink); }
.app-nav button[aria-current="page"]::after { content: ''; position: absolute; top: 0; width: 22px; height: 2px; background: var(--brand); }
.app-nav .cnt { position: absolute; top: 2px; left: calc(50% + 6px); margin: 0; min-width: 18px; height: 18px; font-size: 10px; line-height: 18px; padding: 0 4px; }
.bal { position: relative; overflow: hidden; background: #0a0a0a; color: #f5f5f5; border-radius: var(--ar); padding: 20px 18px 16px; }
.bal .wm { position: absolute; right: -6px; bottom: -22px; font: 700 128px/1 var(--m); color: rgba(255,255,255,.05); pointer-events: none; }
.bal .lab { color: #8f8f8f; }
.bal .v { font: 700 46px/1 var(--f); letter-spacing: -0.035em; margin: 10px 0 6px; font-variant-numeric: tabular-nums; }
.bal .v small { font-size: 22px; }
.bal .seg3 { display: flex; height: 6px; gap: 2px; border-radius: 3px; overflow: hidden; margin: 14px 0 10px; }
.bal .seg3 span { height: 100%; }
.bal .leg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; font-size: 11px; color: #b8b8b8; }
.bal .leg b { display: block; color: #fff; font-size: 13px; font-variant-numeric: tabular-nums; }
.bal .when { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid #262626; font-size: 13px; }
.bal .when button { color: #fff; border-color: #444; background: transparent; }
.acts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 14px 0 6px; }
.acts button { display: grid; justify-items: center; gap: 7px; padding: 12px 4px 10px; border: 1px solid var(--line); border-radius: var(--ar); background: var(--surface); cursor: pointer; font-size: 11.5px; font-weight: 600; line-height: 1.2; color: var(--ink); min-height: 82px; }
.acts button:hover { border-color: var(--ink); }
.acts button svg { width: 24px; height: 24px; }
.acts button.hot svg { color: var(--brand); }
.sec { margin-top: 20px; }
.sec > .lab { margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.att { display: flex; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-left: 3px solid var(--warn); border-radius: var(--ar); margin-bottom: 8px; background: var(--surface); font-size: 13px; cursor: pointer; width: 100%; text-align: left; color: var(--ink); }
.att b { display: block; font-size: 14px; }
.feed .fi { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; }
.feed .fi:first-child { border-top: 0; }
.feed .ico { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); }
.feed .ico svg { width: 17px; height: 17px; }
.feed .ico.ok { background: var(--ok-soft); color: var(--ok); }
.feed .ico.warn { background: var(--warn-soft); color: var(--warn); }
.feed .ico.brand { background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); }
.feed b { display: block; }
.feed .t { color: var(--ink-3); font-size: 11.5px; white-space: nowrap; }
.kitem { display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; color: var(--ink); }
.kitem:first-child { border-top: 0; }
.kitem .thumb { width: 68px; height: 68px; border-radius: 10px; }
.kitem .ttl { font-weight: 600; line-height: 1.3; font-size: 14px; }
.kitem .meta { color: var(--ink-3); font-size: 12px; margin-top: 4px; }
.kitem .px { font: 700 15px/1 var(--f); text-align: right; }
.kitem.sel { background: var(--surface-2); }
.dots5 { display: flex; gap: 3px; margin-top: 7px; }
.dots5 i { width: 14px; height: 3px; border-radius: 2px; background: var(--line-2); }
.dots5 i.on { background: var(--ink); }
.dots5 i.now { background: var(--brand); }
.kseg { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 4px 0 10px; }
.kseg button { flex: none; min-height: 36px; padding: 0 13px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: 12.5px; cursor: pointer; }
.kseg button[aria-pressed="true"] { background: var(--ink); color: var(--inv); border-color: var(--ink); }
.tl { list-style: none; padding: 0; margin: 0; position: relative; }
.tl li { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding-bottom: 16px; }
.tl li::before { content: ''; position: absolute; left: 6px; top: 16px; bottom: 0; width: 2px; background: var(--line-2); }
.tl li:last-child::before { display: none; }
.tl li i { position: relative; z-index: 1; width: 14px; height: 14px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); }
.tl li.done i { background: var(--ink); border-color: var(--ink); }
.tl li.done::before { background: var(--ink); }
.tl li.now i { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }
.tl li b { display: block; font-size: 14px; }
.tl li span { font-size: 12.5px; color: var(--ink-3); }
.tl li.todo b { color: var(--ink-3); font-weight: 500; }
.app-sheet-wrap { position: absolute; inset: 0; z-index: 40; display: flex; flex-direction: column; justify-content: flex-end; }
.app-sheet-bg { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.app-sheet { position: relative; max-height: 92%; display: flex; flex-direction: column; background: var(--bg); border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.25); }
.app-sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 8px auto 2px; }
.app-sheet .sh-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 16px 10px; }
.app-sheet .sh-h h2 { font-size: 18px; }
.app-sheet .sh-b { overflow-y: auto; padding: 4px 16px 16px; overscroll-behavior: contain; }
.app-sheet .sh-f { padding: 12px 16px 26px; border-top: 1px solid var(--line); background: var(--bg); }
.app .btn { border-radius: 12px; min-height: 52px; }
.app .btn.sm { min-height: 40px; border-radius: 10px; }
.app .inp { border-radius: 10px; }
.app .card { border-radius: var(--ar); }
.wsteps { display: flex; gap: 4px; margin: 2px 0 14px; }
.wsteps i { flex: 1; height: 3px; border-radius: 2px; background: var(--line-2); }
.wsteps i.on { background: var(--ink); }
.rcard { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; align-items: start; width: 100%; padding: 14px; min-height: 84px; margin-bottom: 8px; border: 1.5px solid var(--line-2); border-radius: var(--ar); background: var(--surface); cursor: pointer; text-align: left; color: var(--ink); }
.rcard[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.rcard .rd { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--ctl); margin-top: 2px; }
.rcard[aria-checked="true"] .rd { border: 6px solid var(--ink); }
.rcard b { display: block; font-size: 15px; }
.rcard span { font-size: 12.5px; color: var(--ink-3); }
.rcard .px { font: 700 14px/1.2 var(--f); white-space: nowrap; }
.dropzone { position: relative; display: grid; place-items: center; gap: 8px; min-height: 168px; padding: 18px; border: 2px dashed var(--ctl); border-radius: var(--ar); background: var(--surface-2); text-align: center; cursor: pointer; }
.dropzone.over { border-color: var(--ink); background: var(--surface-3); }
.dropzone svg { width: 30px; height: 30px; }
.dropzone b { font-size: 15px; }
.dropzone span { font-size: 12.5px; color: var(--ink-3); }
.a6 { position: relative; width: 100%; max-width: 240px; aspect-ratio: 2 / 3; margin: 0 auto; background: #fff; border: 1px solid var(--line-2); border-radius: 4px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.a6 img, .a6 > svg { width: 100%; height: 100%; object-fit: contain; display: block; }
.a6 .pdf { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 8px; color: #0a0a0a; padding: 16px; text-align: center; }
.a6 .pdf svg { width: 42px; height: 42px; }
.a6 .laser { position: absolute; left: 0; right: 0; height: 3px; top: -5%; background: var(--brand); box-shadow: 0 0 16px 3px color-mix(in srgb, var(--brand) 55%, transparent); opacity: 0; }
.crop { position: relative; width: 100%; max-width: 260px; margin: 0 auto; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 4px; background: #222; touch-action: none; cursor: grab; }
.crop img { position: absolute; left: 50%; top: 50%; max-width: none; transform-origin: center; user-select: none; -webkit-user-drag: none; }
.crop::after { content: ''; position: absolute; inset: 0; border: 2px solid var(--brand); border-radius: 4px; pointer-events: none; }
.kbig { font: 700 34px/1 var(--m); letter-spacing: 0.12em; text-align: center; padding: 16px; border: 2px dashed var(--ink); border-radius: var(--ar); }
.sms { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 60; display: grid; grid-template-columns: 36px 1fr; gap: 10px; padding: 12px; border-radius: 18px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 12px 30px rgba(0,0,0,.2); font-size: 13px; }
.sms .ic { width: 36px; height: 36px; border-radius: 9px; background: var(--ok); color: #fff; display: grid; place-items: center; }
.sms .ic svg { width: 18px; height: 18px; }
.sms b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); }

/* ---------- paczki (sklep) ---------- */
.parcels { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px; }
.parcel { display: grid; gap: 14px; }
.parcel .ph2 { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.parcel .pid { font: 700 16px/1 var(--m); letter-spacing: 0.04em; }
.parcel .dir { font: 600 11px/1 var(--m); text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-3); margin-top: 6px; }
.pk-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.pk-row:first-child { border-top: 0; }
.pk-row .ttl { font-weight: 600; line-height: 1.3; }
.pk-row.packed { opacity: .55; }
.pk-row .ck { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ctl); display: grid; place-items: center; background: var(--surface); color: var(--ink); cursor: pointer; padding: 0; }
.pk-row.packed .ck { background: var(--ok); border-color: var(--ok); color: #fff; }
.pk-row .ck svg { width: 16px; height: 16px; }
.res3 { display: flex; gap: 4px; }
.res3 button { min-height: 36px; padding: 0 9px; border: 1px solid var(--ctl); border-radius: var(--r); background: var(--surface); font-size: 12px; font-weight: 600; cursor: pointer; }
.res3 button[aria-pressed="true"] { background: var(--ink); color: var(--inv); border-color: var(--ink); }
.a6print { width: 100mm; height: 150mm; display: grid; place-items: center; background: #fff; overflow: hidden; }
.a6print img, .a6print svg { width: 100mm; height: 150mm; object-fit: contain; }

/* ---------- inne ---------- */
.doc { border: 1px solid var(--line); border-radius: var(--r); padding: 20px; background: var(--surface); font-size: 13px; position: relative; overflow: hidden; }
.doc .wm { position: absolute; right: -44px; top: 22px; transform: rotate(35deg); background: var(--warn); color: #fff; font: 600 11px var(--m); padding: 4px 54px; text-transform: uppercase; letter-spacing: 0.08em; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.doc td, .doc th { border-bottom: 1px solid var(--line); padding: 7px 4px; text-align: left; font-size: 12px; }
.doc th { color: var(--ink-3); font-weight: 500; }
.sys { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.sys div { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; background: var(--surface); }
.sys b { display: block; margin-bottom: 4px; }
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 10px; align-items: center; }
.flow .node { border: 1px solid var(--ctl); border-radius: var(--r); padding: 16px; text-align: center; background: var(--surface); }
.flow .node.main { background: var(--ink); color: var(--inv); border-color: var(--ink); }
.flow .arr { font: 500 14px var(--m); color: var(--ink-3); text-align: center; }
.ver { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 22px; }
.ver-photo { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); max-width: 340px; }
.ver-photo .stamp { position: absolute; left: 8px; bottom: 8px; background: rgba(0,0,0,.75); color: #fff; font: 500 11px/1.4 var(--m); padding: 4px 7px; border-radius: 2px; }
.cands { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.cand { border: 1px solid var(--line); border-radius: var(--r); padding: 10px; display: grid; gap: 8px; background: var(--surface); align-content: start; }
.cand .thumb { width: 100%; height: auto; aspect-ratio: 1; }
.cand .chip { justify-self: start; }
.cand.match { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

/* ---------- animacje (tylko po akcji) ---------- */
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@media (prefers-reduced-motion: no-preference) {
  .sheet-wrap .sheet { animation: sheetIn .24s var(--ease); }
  .sheet-wrap .sheet-bg, .pal-wrap { animation: fade .18s ease-out; }
  .pal { animation: palIn .18s var(--ease); }
  .toast { animation: toastIn .22s var(--ease); }
  .toast .tbar { animation: tbar linear forwards; }
  .scan.hit .laser { animation: laser .32s ease-out; }
  .scan.err { animation: shake .3s; }
  .cline.new { animation: peel .42s var(--ease); }
  .last.new { animation: peel .42s var(--ease); }
  .pulse .dot::after { animation: ring 2s ease-out infinite; }
  .pulse.new { animation: glow 1.2s ease-out; }
  .lbl-stage.print .lbl { animation: printOut .6s var(--ease); }
  .a6.scanning .laser { animation: laserV .9s ease-in-out; }
  .app-sheet-wrap .app-sheet { animation: upIn .24s var(--ease); }
  .app-sheet-wrap .app-sheet-bg { animation: fade .2s; }
  .sms { animation: smsIn .35s var(--ease); }
  .bignum { animation: bignum .7s var(--ease) forwards; }
  .flash-ok { animation: flashOk .6s ease-out; }
  .wcard { transition: border-color .15s, transform .15s var(--ease); }
  .tl li.now i { animation: ringBrand 1.6s ease-out infinite; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes sheetIn { from { transform: translateX(40px); opacity: 0; } }
@keyframes upIn { from { transform: translateY(60%); } }
@keyframes palIn { from { transform: translateY(-8px) scale(.98); opacity: 0; } }
@keyframes toastIn { from { transform: translateY(14px); opacity: 0; } }
@keyframes tbar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes laser { 0% { left: -2%; opacity: 1; } 100% { left: 102%; opacity: 1; } }
@keyframes laserV { 0% { top: -2%; opacity: 1; } 100% { top: 102%; opacity: 1; } }
@keyframes peel { 0% { transform: translateY(-14px) rotate(-1.5deg); opacity: 0; } 60% { transform: translateY(2px) rotate(.3deg); opacity: 1; } 100% { transform: none; } }
@keyframes ring { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes ringBrand { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 45%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
@keyframes glow { from { box-shadow: 0 0 0 3px var(--ok-soft); } }
@keyframes printOut { 0% { transform: scale(1.6) translateY(-26mm); clip-path: inset(0 0 100% 0); } 100% { transform: scale(1.6) translateY(0); clip-path: inset(0 0 0 0); } }
@keyframes smsIn { from { transform: translateY(-120%); } }
@keyframes bignum { 0% { opacity: 0; transform: scale(1.15); } 25% { opacity: 1; transform: scale(1); } 70% { opacity: 1; } 100% { opacity: 0; transform: scale(.4) translateY(-30vh); } }
@keyframes flashOk { 0% { box-shadow: inset 0 0 0 4px var(--ok); } 100% { box-shadow: inset 0 0 0 0 transparent; } }

/* ---------- responsywność ---------- */
@media (max-width: 1360px) { .kom-stage { grid-template-columns: minmax(0, 1fr) 410px; } .kom-stage .kom-side.r { display: none; } }
@media (max-width: 1280px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hero { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1100px) { .split { grid-template-columns: minmax(0, 1fr); } .pos { grid-template-columns: minmax(0, 1fr) 340px; } }
@media (max-width: 1023px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  main { padding: 20px 16px calc(100px + env(safe-area-inset-bottom)); }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); overflow-x: auto; scrollbar-width: none; }
  .tabbar a { flex: 1 0 64px; display: grid; justify-items: center; gap: 4px; min-height: 56px; padding: 8px 2px 4px; text-decoration: none; color: var(--ink-3); font-size: 11px; font-weight: 600; position: relative; white-space: nowrap; }
  .tabbar a[aria-current="page"] { color: var(--ink); }
  .tabbar a[aria-current="page"]::before { content: ''; position: absolute; top: 0; left: 30%; right: 30%; height: 2px; background: var(--brand); }
  .tabbar .cnt { position: absolute; top: 3px; left: calc(50% + 6px); margin: 0; min-width: 18px; height: 18px; line-height: 18px; font-size: 10.5px; padding: 0 4px; }
  .tabbar .soon { display: none; }
  .demo-foot { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  .g3, .g4 { grid-template-columns: minmax(0, 1fr); }
  .pos { grid-template-columns: minmax(0, 1fr); }
  .paybox { position: static; }
  .toasts { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .kom-stage { grid-template-columns: minmax(0, 1fr); }
  .kom-side { display: none; }
  .tour { bottom: calc(80px + env(safe-area-inset-bottom)); }
}
@media (max-width: 760px) {
  .top { gap: 6px; padding: 0 10px; }
  .brand svg { height: 11px; }
  .brand-sub, .scan-dot, .demo-chip, .kbtn span, .kbtn kbd, [data-sound], [data-theme-toggle] { display: none; }
  .kbtn { width: 40px; padding: 0; justify-content: center; }
  .roles { margin: 0 0 0 auto; padding: 2px; }
  .roles a { padding: 9px 7px; font-size: 10px; letter-spacing: 0.04em; gap: 4px; }
  .roles a i { display: none; }
  .ph h1 { font-size: 24px; }
  .card { padding: 15px; }
  .g2 { grid-template-columns: minmax(0, 1fr); }
  .kpis { gap: 8px; }
  .kpi { padding: 13px 12px 10px; }
  .kpi .v { font-size: 24px; }
  .hero { padding: 16px; gap: 18px; }
  .hero .v { font-size: 40px; }
  .ages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .heat { grid-template-columns: 26px repeat(13, minmax(0, 1fr)); gap: 2px; }
  .heat .c { height: 18px; }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow .arr { transform: rotate(90deg); }
  .dl { grid-template-columns: 110px minmax(0, 1fr); }
  .tbl .hm { display: none; }
  .ver { grid-template-columns: minmax(0, 1fr); }
  .ver-photo { max-width: 260px; }
  .cands { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .lbl-stage .lbl { transform: scale(1.3); margin: 5mm 0; }
  .last { grid-template-columns: 80px minmax(0, 1fr); }
  .last .thumb { width: 80px; height: 80px; }
  .total .v { font-size: 38px; }
  .paybox .final { display: none; }
  .kbar, .demo-scan > span { display: none; }
  .demo-scan { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 10px -16px 0; padding: 0 16px 2px; }
  .demo-scan button { flex: none; }
  .cline { grid-template-columns: 56px minmax(0, 1fr); }
  .cline .thumb { width: 56px; height: 56px; }
  .cline .pr { grid-column: 1 / -1; justify-content: flex-end; }
  body.kasa main { padding-bottom: calc(170px + env(safe-area-inset-bottom)); }
  .paybar-m { display: flex; position: fixed; left: 10px; right: 10px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 44; }
  .paybar-m .btn { width: 100%; min-height: 60px; justify-content: space-between; font-size: 17px; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
  body.kasa .toasts { bottom: calc(150px + env(safe-area-inset-bottom)); }
  .sheet { top: auto; max-height: 94vh; width: 100%; border-radius: 16px 16px 0 0; }
  .parcels { grid-template-columns: minmax(0, 1fr); }
  .wcards { grid-template-columns: minmax(0, 1fr); }
  .wcard { min-height: 0; }
  .welcome h1 { margin-top: 5vh; }
  .tour { grid-template-columns: minmax(0, 1fr); }
  /* komisant na telefonie: bez ramki */
  body.komisant .top, body.komisant .demo-foot { display: none; }
  body.komisant main { padding: 0; }
  .phone { width: 100%; height: 100dvh; border-radius: 0; padding: 0; background: none; box-shadow: none; }
  .phone::before { display: none; }
  .app { border-radius: 0; }
  .app-top { padding-top: calc(14px + env(safe-area-inset-top)); }
  .app-nav { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) { .roles a { padding: 9px 5px; font-size: 9.5px; } .acts button { font-size: 10.5px; } }
@media (prefers-contrast: more) { :root { --ink-3: var(--ink-2); --line: var(--ctl); } }

/* ---------- druk ---------- */
#print-root { display: none; }
@media print {
  body > *:not(#print-root) { display: none !important; }
  #print-root { display: block; }
  body { background: #fff; margin: 0; }
  #print-root .lbl { box-shadow: none; border-radius: 0; break-after: page; }
  #print-root > *:last-child { break-after: auto; }
  #print-root .a6print { break-after: page; }
  #print-root .doc { border: 0; }
}

/* ---------- przejścia ekranów i ograniczony ruch ---------- */
.top { view-transition-name: topbar; }
.side { view-transition-name: side; }
::view-transition-old(root) { animation: vtOut .14s cubic-bezier(.64, 0, .78, 0) both; }
::view-transition-new(root) { animation: vtIn .24s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-4px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---------- prawdziwe zdjęcia produktów ---------- */
.thumb { background: #fff; }
.thumb img.pimg { object-fit: contain; background: #fff; padding: 4%; }
.asph { display: block; width: 100%; height: 100%; background: radial-gradient(circle at 50% 40%, #e9e6df, #a9a398); overflow: hidden; }
.asph img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transform: rotate(-5deg) scale(.9); filter: contrast(1.04) saturate(.92) sepia(.06); }
.kitem .thumb, .cline .thumb, .cand .thumb, .last .thumb { background: #fff; }

.zrzut .toasts { display: none !important; }

/* zwroty */
button.li.ret-pick { width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); font: inherit; color: inherit; cursor: pointer; padding: 12px 4px; }
button.li.ret-pick:first-of-type { border-top: 0; }
button.li.ret-pick:hover { background: var(--surface-2); }
.ret-pick .box { width: 22px; height: 22px; flex: none; border: 2px solid var(--line-2); display: grid; place-items: center; }
.ret-pick .box svg { width: 14px; height: 14px; }
.ret-pick[aria-pressed="true"] .box { background: var(--ink); border-color: var(--ink); color: var(--inv); }
.ret-pick .chip { vertical-align: middle; }
