/* ---------- panel na żywo: dodatki do stylów makiet ---------- */
.form-err { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 122, 122, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 122, 122, 0.4); color: #ffc4c4; font-weight: 650; font-size: 0.94rem; }
.box .form-err { margin: 0 0 16px; }
.field-err { color: #ff9a9a; font-size: 0.86rem; font-weight: 650; }
.has-err .input { box-shadow: inset 0 0 0 2px #ff7a7a; }
.msgs { display: grid; gap: 8px; margin: -8px 0 18px; }
.msg { padding: 12px 16px; border-radius: 14px; font-weight: 650; font-size: 0.94rem; background: rgba(91, 225, 111, 0.1); box-shadow: inset 0 0 0 1px rgba(91, 225, 111, 0.35); color: #c9f5d1; }
.msg-warning { background: rgba(255, 181, 71, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 181, 71, 0.4); color: #ffe2a8; }
.msg-error { background: rgba(255, 122, 122, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 122, 122, 0.4); color: #ffc4c4; }

.head-stack { margin-right: auto; min-width: 0; }
.head-stack .crumbs { margin: 0 0 2px; }
.btn-top { min-height: 44px; padding: 10px 18px; font-size: 0.92rem; flex: none; }
.btn-top svg { width: 18px; height: 18px; }
.topbar .search { margin-left: auto; }
.side-nav .nav-soon { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 44px; padding: 8px 12px; color: #7f7891; font-weight: 700; font-size: 0.97rem; }
.side-nav .nav-soon svg { width: 20px; height: 20px; }
.side-user form { grid-column: 1 / -1; }
.side-user .link-btn { font-size: 0.86rem; color: var(--on-d-soft); }
.biz-meta { margin: -10px 0 22px; }
.biz-meta .sw { width: 22px; height: 22px; }

.chip-f { display: inline-flex; align-items: center; text-decoration: none; }
.chip-f[aria-current="true"] { background: #fff; color: #18151f; }

.empty-box { display: grid; gap: 12px; justify-items: start; margin-bottom: 18px; background: linear-gradient(135deg, rgba(123, 77, 255, 0.2), rgba(123, 77, 255, 0.05)); box-shadow: inset 0 0 0 1px rgba(196, 173, 255, 0.35); }
.empty-box h2 { font-size: 1.3rem; font-weight: 850; font-stretch: 110%; }
.empty-box p { color: #e6e3ee; max-width: 62ch; }
.empty-note { color: var(--on-d-soft); font-size: 0.92rem; }
.log li.empty { grid-template-columns: minmax(0, 1fr); }

.form-lokal { display: grid; gap: 22px; }
.form-lokal fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-lokal legend { padding: 0; margin-bottom: 12px; font-family: var(--display); font-weight: 800; font-stretch: 108%; font-size: 1.15rem; }
.form-grid { display: grid; gap: 16px; }
.form-grid.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid .input, .addon-form .input { min-height: 48px; }
.field-color input[type="color"] { width: 64px; height: 48px; padding: 4px; border: 0; border-radius: 12px; background: var(--night-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); cursor: pointer; }
.box .btn-row .btn { min-height: 44px; }

details.more { margin-top: 16px; border-top: 1px solid var(--line-d); padding-top: 14px; }
details.more > summary { cursor: pointer; font-weight: 800; color: #fff; list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); }
details.more[open] > summary::before { content: "–"; }
details.more form { margin: 14px 0 10px; }

.feats > li { display: grid; gap: 10px; }
.feat-row { grid-template-columns: minmax(0, 1fr) auto; }
.feat-act > summary { list-style: none; cursor: pointer; justify-self: start; display: inline-flex; }
.feat-act > summary::-webkit-details-marker { display: none; }
details.feat-act[open] > summary { opacity: 0.6; }
.feat-act .feat-panel { margin-top: 10px; }
form.feat-act { justify-self: start; }
.st-wyl, .st-zakonczony { color: #8d87a0; }
.st-p-oplacona { color: #7ee08f; }
.st-p-oczekuje { color: var(--gold); }
.st-p-odrzucona { color: #ff9a9a; }
.seg { border: 0; margin: 0; }
.addons li.gone { opacity: 0.55; }
.addons form { grid-column: 2; grid-row: 1 / span 2; }
.addons li > span { min-width: 0; }

.codes-box { max-width: 720px; }
@media (max-width: 620px) { .form-grid.cols { grid-template-columns: minmax(0, 1fr); } .topbar .btn-top { order: 1; } }
@media print {
  .side, .topbar, .btn-row, .skip, .scrim { display: none !important; }
  .app { display: block; }
  body, .app-body, .box { background: #fff !important; color: #000 !important; box-shadow: none !important; }
  .codes { color: #000; background: #fff; box-shadow: none; }
}
.grid-2 > .box + .box, .grid-2 > section + section { margin-top: 0; }
.grid-2 > div > .box + .box { margin-top: 18px; }
.q .q-ic { display: grid; }
.link-btn.act { font-size: 0.86rem; color: var(--on-d-soft); font-weight: 750; }
.link-btn.act:hover { color: #fff; }
summary.link-btn.act { display: inline; }
.totp-qr svg { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.totp-qr { width: 220px; }
.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles-3 .tile b { font-size: 1.5rem; }
.rules { margin: 0; padding: 0 0 0 18px; display: grid; gap: 8px; color: #e6e3ee; font-size: 0.94rem; }
.raporty { display: grid; gap: 4px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-d); }
.raporty .link-btn { justify-self: start; }
.warn code, .box code { font-size: 0.86em; padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); color: #fff; overflow-wrap: anywhere; }
.st-w-doreczona, .st-w-wyslana { color: #7ee08f; }
.st-w-symulacja { color: #c4adff; }
.st-w-blad, .st-w-niedoreczona { color: #ff9a9a; }
.st-w-zaplanowana, .st-w-wysylanie { color: var(--gold); }
.st-w-anulowana { color: #8d87a0; }
.anuluj { display: inline; margin-left: 10px; }
@media (max-width: 1100px) { .tiles-3 { grid-template-columns: minmax(0, 1fr); } }
.dostawca-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-bottom: 14px; }
.dostawca-row label { font-weight: 750; font-size: 0.94rem; }
.dostawca-row .input { min-height: 44px; }
@media (max-width: 620px) { .dostawca-row { grid-template-columns: minmax(0, 1fr) auto; } .dostawca-row label { grid-column: 1 / -1; } }
.api-lead { margin: -4px 0 18px; }
.api-lead a { color: #fff; font-weight: 750; }
.pauzy { display: grid; gap: 12px; }
.pauzy form { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); }
.pauzy .sub { display: block; color: #8d87a0; font-size: 0.84rem; font-weight: 600; }
.tbl-api { min-width: 0; width: 100%; }
.tbl-api .sub code { white-space: normal; word-break: break-all; }
/* rejestracja i panel właściciela */
.pulapka { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.auth-grid.wide { grid-template-columns: minmax(0, 640px); }
.reg-sekcja { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; }
.reg-sekcja legend { font-weight: 800; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-d-soft); margin-bottom: 4px; }
.plan-opts { display: grid; gap: 12px; }
.plan-opt { position: relative; display: grid; gap: 8px; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); cursor: pointer; }
.plan-opt:has(input:checked) { background: rgba(139, 92, 255, 0.12); box-shadow: inset 0 0 0 2px var(--violet); }
.plan-opt input { position: absolute; opacity: 0; pointer-events: none; }
.plan-opt:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 3px; }
.plan-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 1.1rem; }
.plan-top span { font-weight: 800; }
.plan-top small { font-weight: 600; color: var(--on-d-soft); font-size: 0.85rem; }
.plan-opt ul { margin: 0; padding-left: 1.1em; display: grid; gap: 3px; font-size: 0.9rem; color: #e6e3ee; }
.plan-ceny { font-size: 0.84rem; color: var(--on-d-soft); }
.okresy { border: 0; margin: 18px 0; padding: 0; display: grid; gap: 10px; }
.okresy legend { font-weight: 750; margin-bottom: 8px; }
.pakiety-form .hint { margin-top: 12px; display: block; }
.st-nowe { color: #8fd3ff; }
/* karta klienta (podgląd, strona karty, skaner) */
.lpk { display: grid; gap: 16px; padding: 20px; border-radius: 22px; background: var(--tlo); color: var(--tusz); box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.7);
  max-width: 420px; }
.lpk-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.lpk-nazwa { font-family: var(--display); font-weight: 850; font-stretch: 112%; font-size: 1.3rem; letter-spacing: -0.01em; }
.lpk-imie { font-weight: 700; opacity: 0.85; }
.lpk-pieczatki { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.lpk-p { aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--linia); }
.lpk-p.on { background: var(--akcent); box-shadow: none; }
.lpk-dol { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 0.9rem; font-weight: 700; }
.lpk-nagroda { color: var(--akcent); }
.lpk-qr { justify-self: center; display: grid; justify-items: center; gap: 6px; padding: 12px; border-radius: 16px; background: #fff; color: #18151f; }
.lpk-qr svg { width: 200px; height: 200px; aspect-ratio: 1; display: block; }
.lpk-qr small { font-family: ui-monospace, monospace; font-size: 0.85rem; letter-spacing: 0.08em; }

/* strony dla klientów lokalu i skaner */
.pub-main { padding: clamp(24px, 6vw, 56px) 0; }
.pub-wrap { max-width: 520px; display: grid; gap: 18px; }
.pub-h { font-size: clamp(1.9rem, 6vw, 2.5rem); font-weight: 850; font-stretch: 114%; letter-spacing: -0.02em; line-height: 1.05; }
.pub-info { font-weight: 750; font-size: 1.05rem; }
.pub-box { padding: 18px; border-radius: 18px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); display: grid; gap: 10px; }
.pub-box h2 { font-size: 1.1rem; font-weight: 800; }
.zgody { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; }
.zgody legend { font-weight: 800; margin-bottom: 8px; }
.zgoda-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.zgoda-row .sub { display: block; color: #8d87a0; font-size: 0.85rem; font-weight: 600; }
.auth-foot .logo-pro, .auth-foot span span { font-size: inherit; }
.sk-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sk-top .sub { display: block; color: #8d87a0; font-size: 0.86rem; font-weight: 650; }
.sk-wynik { font-size: 1.05rem; }
.sk-nagroda { background: rgba(255, 181, 71, 0.16); box-shadow: inset 0 0 0 1px rgba(255, 181, 71, 0.5); color: #ffe2a8; }
.sk-karta { display: grid; gap: 14px; }
.sk-akcje { display: grid; gap: 10px; }
.sk-duzy { min-height: 58px; font-size: 1.1rem; }
.sk-skan { display: grid; gap: 12px; }
.sk-kamera { position: relative; border-radius: 18px; overflow: hidden; background: #000; aspect-ratio: 1; }
.sk-kamera video { width: 100%; height: 100%; object-fit: cover; display: block; }
.sk-ramka { position: absolute; inset: 18%; border-radius: 18px; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 0 0 999px rgba(0, 0, 0, 0.35); }
.sk-reczny { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.pin-form .pin-input { font-size: 1.6rem; letter-spacing: 0.5em; text-align: center; min-height: 64px; }

/* panel właściciela: karta i pracownicy */
.zapis-qr { width: 180px; padding: 10px; border-radius: 14px; background: #fff; }
.zapis-qr svg { width: 100%; height: auto; aspect-ratio: 1; display: block; }
code.adres { display: inline-block; word-break: break-all; font-size: 0.86rem; }
.prac { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.prac > li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); }
.prac > li.off { opacity: 0.6; }
.prac > li.empty { color: #8d87a0; }
.prac .sub { display: block; color: #8d87a0; font-size: 0.84rem; font-weight: 600; }
.prac-akcje { display: grid; justify-items: end; gap: 6px; }
.prac-akcje details > summary { list-style: none; cursor: pointer; }
.prac-akcje details[open] form { margin-top: 10px; min-width: 220px; }
.podlacz { display: grid; gap: 10px; padding: 14px; margin-bottom: 14px; border-radius: 14px; background: rgba(139, 92, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(139, 92, 255, 0.35); }
.usun-klienta > summary { list-style: none; cursor: pointer; }
.usun-klienta[open] form { display: grid; gap: 8px; margin-top: 8px; }

/* naklejka do druku */
body.druk { background: #fff; color: #18151f; font-family: Arial, Helvetica, sans-serif; margin: 0; padding: 20px; }
.druk-info { font-size: 14px; color: #555; }
.druk-btn { margin-left: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid #ccc; background: #fff; cursor: pointer; }
.naklejka { width: 105mm; min-height: 148mm; margin: 12px 0; padding: 10mm; box-sizing: border-box; border: 1px dashed #bbb; border-radius: 6mm;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4mm; }
.nk-nazwa { margin: 0; font-size: 20pt; font-weight: 800; }
.nk-h { margin: 0; font-size: 14pt; font-weight: 700; }
.nk-qr { width: 62mm; }
.nk-qr svg { width: 100%; height: auto; display: block; }
.nk-krok { margin: 0; font-size: 13pt; font-weight: 700; }
.nk-nagroda { margin: 0; font-size: 12pt; }
.nk-stopka { margin: auto 0 0; font-size: 9pt; color: #777; }
.nk-adres { font-size: 7pt; word-break: break-all; }
@media print { .druk-info { display: none; } .naklejka { border: 0; margin: 0; } body.druk { padding: 0; } }
.wypis-form { display: grid; gap: 10px; }
/* kampanie: akceptacja i panel lokalu */
.kamp { padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); display: grid; gap: 10px; margin-bottom: 12px; }
.kamp-head { display: grid; gap: 2px; }
.kamp-head a { color: #fff; }
.kamp-temat { font-weight: 800; }
.kamp-tresc { white-space: pre-wrap; overflow-wrap: anywhere; padding: 12px 14px; border-radius: 12px; background: var(--night-2, #15121c); font-size: 0.94rem; line-height: 1.5; }
.kamp-akcje { display: flex; flex-wrap: wrap; gap: 10px; align-items: start; }
.kamp-akcje details { flex: 1 1 260px; }
.kamp-akcje details[open] summary { margin-bottom: 10px; }
.kamp-akcje summary { list-style: none; display: inline-flex; }
.kamp-akcje summary::-webkit-details-marker { display: none; }
.limity { display: grid; gap: 12px; }
.limit-row { display: grid; gap: 6px; }
.limit-row .lr-top { display: flex; justify-content: space-between; gap: 10px; font-size: 0.92rem; }
.limit-bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.limit-bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad-btn); }
.seg-col { display: grid; gap: 10px; border: 0; margin: 0; padding: 0; }
.seg-col legend, .seg-kanal legend { font-weight: 750; font-size: 0.92rem; margin-bottom: 8px; padding: 0; }
.licznik { font-size: 0.84rem; color: var(--on-d-soft, #b9b4c6); }
.licznik.za-duzo { color: #ff9b9b; }
.st-k-wyslana, .st-k-zaakceptowana { color: #7ee08f; }
.st-k-do_akceptacji, .st-k-wysylanie { color: var(--gold); }
.st-k-odrzucona { color: #ff9a9a; }
.st-k-anulowana { color: var(--on-d-soft, #b9b4c6); }
.seg-kanal { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg-kanal legend { display: block; }
.seg-col .sub, .kamp-head .sub { display: block; font-size: 0.84rem; color: var(--on-d-soft, #b9b4c6); font-weight: 500; }
.kamp-head .sub { margin-top: 2px; }
/* pasek stanu pakietu w panelu właściciela */
.pasek { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; margin-bottom: 18px; padding: 14px 18px;
  border-radius: 16px; background: rgba(255, 196, 77, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 196, 77, 0.35); color: #f3eedf; font-size: 0.94rem; line-height: 1.5; }
.pasek p { flex: 1 1 320px; margin: 0; }
.pasek-stop { background: rgba(255, 110, 110, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 110, 110, 0.45); }
.st.st-zalegla { color: #ff9a9a; }
/* zmiana pakietu */
.zmiana-plan { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 12px; }
.zmiany summary { font-weight: 750; }
.zmiany-lista { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.zmiany-lista li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 14px;
  border-radius: 14px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.zmiany-lista .sub { display: block; font-size: 0.86rem; color: var(--on-d-soft, #b9b4c6); margin-top: 2px; }
.zmiany-lista .sub b { color: #fff; }
