/* na fuszkę - jasne szarości, jeden niebieski, cenówki na mapie.
   Atkinson Hyperlegible - krój pisany z myślą o słabszym wzroku (tekst),
   Bricolage Grotesque - nagłówki i kwoty. */

@font-face {
  font-family: 'Atkinson';
  src: url(/fonts/atkinson-latin-ext.woff2) format('woff2');
  font-weight: 400 700;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Atkinson';
  src: url(/fonts/atkinson-latin.woff2) format('woff2');
  font-weight: 400 700;
  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+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage';
  src: url(/fonts/bricolage-latin-ext.woff2) format('woff2');
  font-weight: 400 800;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage';
  src: url(/fonts/bricolage-latin.woff2) format('woff2');
  font-weight: 400 800;
  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+FEFF, U+FFFD;
}

:root {
  --bg: #eceff2;
  --paper: #fff;
  --paper-2: #f5f7f9;
  --ink: #18212c;
  --ink-2: #465161;
  --ink-3: #6f7a88;
  --line: #d3d9e0;
  --line-2: #e3e7ec;
  --blue: #2350d8;
  --blue-ink: #183b9f;
  --blue-50: #eaf0fd;
  --blue-100: #d2ddfa;
  --green: #17744a;
  --green-50: #e2f3ea;
  --red: #b9352a;
  --red-50: #fbeae8;
  --ui: 'Atkinson', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --disp: 'Bricolage', var(--ui);
  --shadow: 0 1px 2px rgb(24 33 44 / 0.08), 0 6px 18px rgb(24 33 44 / 0.08);
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
/* Wygląd aplikacji mobilnej: strona się nie przewija, przewija się tylko środek ekranu.
   Na komputerze aplikacja stoi w okienku telefonu (.app), obok kod QR (.stage-side). */
html,
body {
  height: 100%;
  overflow: hidden;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.45 var(--ui);
  overscroll-behavior: none;
}
#app {
  height: 100%;
}
.stage {
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
}
.app {
  position: relative;
  /* przypięte elementy (plus, komunikaty, panele) trzymają się okienka, nie okna przeglądarki */
  transform: translateZ(0);
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100dvh;
  background: var(--bg);
  overflow: hidden;
}
.app > main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.app.is-map > main {
  overflow: hidden;
}
.stage-side {
  display: none;
}
@media (min-width: 600px) {
  body {
    background: #dce1e7;
  }
  .app {
    width: 430px;
    height: min(calc(100dvh - 40px), 932px);
    border-radius: 30px;
    box-shadow: 0 0 0 1px rgb(24 33 44 / 0.1), 0 30px 70px rgb(24 33 44 / 0.22);
  }
}
@media (min-width: 1000px) {
  .stage-side {
    display: block;
    width: 360px;
  }
}
.ss-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ss-logo img {
  border-radius: 14px;
}
.ss-logo .wordmark {
  font-size: 34px;
}
.stage-side h1 {
  font: 800 40px/1.05 var(--disp);
  letter-spacing: -0.03em;
  margin: 26px 0 12px;
}
.stage-side p {
  font-size: 18px;
  color: var(--ink-2);
  margin: 0 0 26px;
}
.ss-qr {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--paper);
  border-radius: 18px;
  padding: 14px 18px 14px 14px;
  box-shadow: 0 0 0 1px rgb(24 33 44 / 0.08), 0 10px 26px rgb(24 33 44 / 0.1);
}
.ss-qr img {
  flex: none;
}
.ss-qr b {
  display: block;
  font-size: 17px;
  margin-bottom: 4px;
}
.ss-qr span {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.35;
}
body.noscroll {
  overflow: hidden;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
img {
  display: block;
  max-width: 100%;
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}
.ic-wrap {
  display: inline-flex;
  line-height: 0;
  flex: none;
}
.ic-cat .f {
  fill: #c3d1f6;
}

/* ---------- nagłówek ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.top-row {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px 0 14px;
  max-width: 1400px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
}
.wordmark {
  font: 600 25px/1 var(--disp);
  letter-spacing: -0.035em;
  color: var(--ink-2);
}
.wordmark b {
  font-weight: 800;
  color: var(--ink);
}
.modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}
.modes button {
  border: 0;
  background: none;
  height: 42px;
  border-radius: 9px;
  font: 700 16px/1 var(--ui);
  color: var(--ink-2);
  padding: 0 14px;
  white-space: nowrap;
}
.modes button.on {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 1px 3px rgb(24 59 159 / 0.35);
}
.modes-row {
  padding: 0 12px 10px;
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--paper);
  font: 800 18px/1 var(--disp);
  display: grid;
  place-items: center;
}
.login-btn {
  white-space: nowrap;
}

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: 700 17px/1.15 var(--ui);
  text-decoration: none;
  text-align: center;
  transition: background 0.12s, border-color 0.12s, transform 0.06s;
}
.btn:hover {
  border-color: var(--ink-3);
}
.btn:active {
  transform: translateY(1px);
}
.btn.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.btn.primary:hover {
  background: var(--blue-ink);
  border-color: var(--blue-ink);
}
.btn.big {
  min-height: 60px;
  font-size: 19px;
  border-radius: 14px;
}
.btn.wide {
  width: 100%;
}
.btn.sm {
  min-height: 40px;
  padding: 0 12px;
  font-size: 15px;
  border-radius: 10px;
}
.btn.ghost {
  background: transparent;
}
.btn.danger {
  color: var(--red);
  border-color: #efcdc9;
}
.btn.danger-ghost {
  color: var(--red);
  border-color: transparent;
  background: transparent;
}
.btn:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}
.link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.icon-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  color: var(--ink);
}
.icon-btn:hover {
  background: var(--bg);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 0 18px 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
  font: 700 17px/1 var(--ui);
}
.pill b {
  font: 800 17px/1 var(--disp);
  color: var(--blue);
}
.round {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
}

/* duży plus */
.fab {
  position: fixed;
  z-index: 1200;
  left: 50%;
  bottom: calc(12px + var(--safe-b));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 0;
  background: none;
  padding: 0;
}
.fab-circle {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  border: 4px solid var(--paper);
  box-shadow: 0 8px 22px rgb(24 59 159 / 0.38), 0 0 0 1px rgb(24 33 44 / 0.08);
  transition: transform 0.12s;
}
.fab:hover .fab-circle {
  background: var(--blue-ink);
}
.fab:active .fab-circle {
  transform: scale(0.95);
}
.fab-label {
  margin-top: -9px;
  padding: 3px 11px 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 800 14px/1.1 var(--ui);
  color: var(--ink);
  box-shadow: 0 2px 6px rgb(24 33 44 / 0.1);
}

/* ---------- strony ---------- */
.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 6px 16px calc(150px + var(--safe-b));
}
.page.narrow {
  max-width: 560px;
}
.h1 {
  font: 800 31px/1.08 var(--disp);
  letter-spacing: -0.025em;
  margin: 14px 0 8px;
  text-wrap: balance;
}
.h2 {
  font: 800 21px/1.15 var(--disp);
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}
.lead {
  font-size: 18px;
  color: var(--ink-2);
  margin: 0 0 20px;
  text-wrap: pretty;
}
.muted {
  color: var(--ink-2);
}
.small {
  font-size: 15px;
}
.center {
  text-align: center;
}
.pad {
  padding: 24px 0;
}
.hint {
  display: block;
  color: var(--ink-3);
  font-size: 14.5px;
  margin-top: 6px;
}
.hint .ic-wrap {
  vertical-align: -3px;
  margin-right: 2px;
}
.err {
  color: var(--red);
  background: var(--red-50);
  padding: 10px 14px;
  border-radius: 10px;
  margin: 12px 0;
  font-weight: 700;
}
.box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  margin: 14px 0;
}
.box > :last-child {
  margin-bottom: 0;
}
.box .btn.wide + .btn.wide {
  margin-top: 10px;
}
.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.row > * {
  flex: 1 1 140px;
}
.backbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2px -10px 0;
  min-height: 50px;
}
.bb-title {
  font: 700 17px/1 var(--ui);
}
.bb-pad {
  width: 46px;
}
.demo-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  background: var(--blue-50);
  border: 1px dashed #a9bbf2;
  color: var(--blue-ink);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 15.5px;
  margin: 8px 0 14px;
}
.code {
  font: 800 22px/1 var(--disp);
  letter-spacing: 0.12em;
}
.badge {
  display: inline-block;
  font: 700 13px/1 var(--ui);
  padding: 4px 7px;
  border-radius: 6px;
}
.badge.hot {
  background: var(--red-50);
  color: var(--red);
}
.status {
  font-weight: 700;
  font-size: 15px;
  margin: 6px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.status.on,
.status.done {
  color: var(--green);
}
.status.off {
  color: var(--ink-3);
}

/* ---------- mapa ---------- */
.mappage {
  height: 100%;
  position: relative;
}
.mapwrap {
  position: relative;
  height: 100%;
  isolation: isolate;
}
.map {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #e8eaed;
}
.map .maplibregl-ctrl-attrib {
  font: 10.5px/1.3 var(--ui);
}
.map .maplibregl-ctrl-top-right {
  top: 58px;
}
.map .maplibregl-ctrl-group {
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  overflow: hidden;
}
.map .maplibregl-ctrl-group button {
  width: 40px;
  height: 40px;
}
.mapwrap .maplibregl-ctrl-bottom-right {
  bottom: calc(96px + var(--safe-b));
}
.map-failed {
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: var(--ink-2);
}
.chips {
  position: absolute;
  z-index: 10;
  top: 10px;
  left: 0;
  right: 0;
  display: flex;
  gap: 8px;
  padding: 2px 12px 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar {
  display: none;
}
.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font: 700 15.5px/1 var(--ui);
  color: var(--ink);
  white-space: nowrap;
  box-shadow: 0 1px 2px rgb(24 33 44 / 0.08);
}
.chip.on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.chip.mine.on {
  background: var(--blue);
  border-color: var(--blue);
}
.chip.more {
  border-style: dashed;
  border-color: var(--ink-3);
}
.chip.more.on {
  border-style: solid;
}
.map-bottom {
  position: absolute;
  z-index: 10;
  left: 12px;
  right: 12px;
  bottom: calc(40px + var(--safe-b));
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.map-bottom > * {
  pointer-events: auto;
}
.intro,
.empty-note {
  position: absolute;
  z-index: 10;
  top: 64px;
  left: 12px;
  right: 12px;
  max-width: 440px;
  margin: 0 auto;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 14px 16px;
}
.intro {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 14px;
  font-size: 15.5px;
  line-height: 1.35;
}
.intro p {
  margin: 0;
}
.empty-note {
  font-size: 15.5px;
  color: var(--ink-2);
  text-align: center;
  padding: 10px 14px;
}
.preview {
  position: absolute;
  z-index: 11;
  left: 10px;
  right: 10px;
  bottom: calc(112px + var(--safe-b));
  max-width: 460px;
  margin: 0 auto;
  background: var(--paper);
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgb(24 33 44 / 0.2);
  padding: 8px 8px 10px;
}
.preview .jobcard {
  border: 0;
  padding: 6px 40px 8px 6px;
}
.preview .btn {
  min-height: 48px;
}
.pv-x {
  position: absolute;
  right: 4px;
  top: 4px;
  z-index: 1;
}

/* cenówka na mapie */
.maplibregl-marker:hover,
.maplibregl-marker:focus-within {
  z-index: 5;
}
.tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}
.tag-body {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  margin-left: 16px;
  padding: 0 11px 0 6px;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-left: 0;
  border-radius: 0 7px 7px 0;
  font: 800 15.5px/1 var(--disp);
  letter-spacing: -0.01em;
  white-space: nowrap;
  transform: rotate(var(--r, 0deg));
  transform-origin: 50% 100%;
  transition: transform 0.15s;
  box-shadow: 0 3px 8px rgb(24 33 44 / 0.18);
}
/* ścięty koniec metki z dziurką */
.tag-body::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: -11px;
  top: 50%;
  width: 22.6px;
  height: 22.6px;
  margin-top: -11.3px;
  background: inherit;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  border-bottom-left-radius: 4px;
  transform: rotate(45deg);
}
.tag-hole {
  position: absolute;
  left: -6px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--ink);
}
.tag-body .ic-cat {
  color: var(--ink);
}
.tag-body .ic-cat .f {
  fill: #c3d1f6;
}
.tag.np .tag-body b {
  font-size: 14px;
  font-weight: 700;
}
.tag-pin {
  width: 2px;
  height: 9px;
  background: var(--ink);
  margin-left: 16px;
  position: relative;
}
.tag-pin::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--ink);
}
.tag:hover .tag-body {
  transform: rotate(0deg) translateY(-2px);
}
.tag.sel .tag-body,
.tag.sel .tag-body::before {
  background: var(--blue);
  border-color: var(--blue-ink);
  color: #fff;
}
.tag.sel .tag-body {
  transform: rotate(0deg) translateY(-2px) scale(1.08);
}
.tag.sel .ic-cat {
  color: #fff;
}
.tag.sel .ic-cat .f {
  fill: rgb(255 255 255 / 0.28);
}
.tag.sel .tag-pin {
  background: var(--blue-ink);
}
/* stosik kilku metek */
.tag.stack .tag-body {
  padding: 0 12px 0 8px;
  gap: 7px;
  box-shadow: 4px -4px 0 -2px var(--paper), 4px -4px 0 0 var(--ink), 8px -8px 0 -2px var(--paper), 8px -8px 0 0 var(--ink), 0 4px 10px rgb(24 33 44 / 0.2);
  transform: none;
}
.tag.stack small {
  font: 700 13.5px/1 var(--ui);
  color: var(--ink-2);
}
.me-dot {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid #fff;
  box-shadow: 0 0 0 6px rgb(35 80 216 / 0.18), 0 1px 4px rgb(0 0 0 / 0.3);
}

/* ---------- lista i karty ---------- */
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 12px;
}
.sheet-head h2 {
  font: 800 21px/1.15 var(--disp);
  letter-spacing: -0.015em;
  margin: 0;
}
.cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.jobcard {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 13px;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.12s;
}
.jobcard:hover,
.jobcard.sel {
  border-color: var(--blue);
}
.jc-thumb {
  width: 76px;
  height: 76px;
  border-radius: 11px;
  background: var(--blue-50);
  color: var(--blue-ink);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.jc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.jc-thumb .ic-cat {
  color: var(--ink);
}
.jc-main {
  min-width: 0;
}
.jc-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.price {
  font: 800 22px/1.1 var(--disp);
  letter-spacing: -0.02em;
}
.price.np {
  font-size: 18px;
  color: var(--ink-2);
}
.jc-cat {
  font-weight: 700;
  font-size: 15px;
  color: var(--blue-ink);
  margin-top: 2px;
}
.jc-desc {
  margin: 3px 0 4px;
  font-size: 16px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.jc-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-3);
}
.jc-meta span:last-child {
  flex: none;
  white-space: nowrap;
}
.jc-meta span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  background: var(--bg);
  padding: 4px;
  border-radius: 12px;
}
.seg button {
  border: 0;
  background: none;
  min-height: 48px;
  border-radius: 9px;
  font: 700 16px/1.1 var(--ui);
  color: var(--ink-2);
  padding: 0 6px;
}
.seg button.on {
  background: var(--paper);
  color: var(--blue-ink);
  box-shadow: 0 1px 3px rgb(24 33 44 / 0.15), inset 0 0 0 2px var(--blue);
}
.seg.small {
  margin-bottom: 12px;
}
.seg.small button {
  min-height: 38px;
  font-size: 14.5px;
}

/* wysuwany panel */
.sheet-bg {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgb(24 33 44 / 0.38);
  animation: fade 0.15s;
}
.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 88%;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  border-radius: 20px 20px 0 0;
  padding: 6px 16px calc(20px + var(--safe-b));
  animation: up 0.2s ease-out;
}
.grab {
  width: 44px;
  height: 5px;
  border-radius: 3px;
  background: var(--line);
  margin: 4px auto 2px;
  cursor: pointer;
}
.sheet-foot {
  position: sticky;
  bottom: calc(-20px - var(--safe-b));
  background: var(--paper);
  padding: 12px 0 4px;
  margin-top: 8px;
}
@keyframes up {
  from {
    transform: translateY(40px);
    opacity: 0.4;
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}

/* filtry, umiejętności */
.catgroup {
  border: 0;
  padding: 0;
  margin: 0 0 16px;
}
.catgroup legend {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-2);
  margin-bottom: 8px;
  padding: 0;
}
.catchips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.catchip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 46px;
  padding: 0 15px 0 10px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font: 600 16px/1.15 var(--ui);
  text-align: left;
}
.catchip .ic-cat {
  color: var(--ink-2);
}
.catchip.on {
  background: var(--blue-50);
  border-color: var(--blue);
  color: var(--blue-ink);
  font-weight: 700;
}
.catchip.on .ic-cat {
  color: var(--blue-ink);
}

/* ---------- daję fuchę: kafle ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.tile {
  min-height: 136px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 16px;
  background: var(--paper);
  border: 2px solid var(--line-2);
  border-radius: 18px;
  text-align: left;
  box-shadow: 0 1px 2px rgb(24 33 44 / 0.06);
  transition: border-color 0.12s, transform 0.06s;
}
.tile:hover {
  border-color: var(--blue);
}
.tile:active {
  transform: scale(0.98);
}
.tile-ic {
  width: 62px;
  height: 62px;
  border-radius: 15px;
  background: var(--blue-50);
  display: grid;
  place-items: center;
  flex: none;
}
.tile-ic .ic-cat {
  color: var(--ink);
}
.tile-name {
  font: 700 19px/1.12 var(--disp);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.other {
  display: block;
  margin: 18px 0 8px;
}
.other > span:first-child {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}
.select {
  position: relative;
  display: block;
}
.select select {
  width: 100%;
  height: 58px;
  appearance: none;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  padding: 0 46px 0 16px;
  font-size: 17px;
}
.select .ic-wrap {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.myjobs {
  margin: 8px 0 30px;
}
.myjobs + .h1 {
  font-size: 26px;
}

/* ---------- formularze ---------- */
.field {
  display: block;
  margin: 24px 0;
}
.label {
  display: block;
  font: 700 18px/1.2 var(--ui);
  margin-bottom: 9px;
}
.label small {
  font-weight: 400;
  color: var(--ink-3);
}
input[type='text'],
input[type='email'],
input[type='password'],
input[type='tel'],
input[type='search'],
input[type='number'],
textarea {
  width: 100%;
  min-height: 56px;
  border: 2px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  padding: 0 14px;
  font-size: 18px;
}
textarea {
  padding: 12px 14px;
  min-height: 124px;
  resize: vertical;
  line-height: 1.4;
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-100);
}
::placeholder {
  color: #9aa3ae;
}
input[type='number']::-webkit-inner-spin-button {
  display: none;
}
input[type='number'] {
  -moz-appearance: textfield;
}
.money {
  display: flex;
  align-items: center;
  border: 2px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  overflow: hidden;
}
.money:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-100);
}
.money input {
  border: 0 !important;
  box-shadow: none !important;
  flex: 1;
  min-width: 0;
}
.money > span {
  padding: 0 16px;
  font: 700 20px/1 var(--disp);
  color: var(--ink-2);
}
.money.big input {
  height: 68px;
  font: 800 34px/1 var(--disp);
  letter-spacing: -0.02em;
}
.money.big > span {
  font-size: 26px;
}
.money.dis {
  background: var(--paper-2);
  opacity: 0.6;
}
.quick {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.quick .chip {
  box-shadow: none;
  height: 44px;
}
.check {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  min-height: 44px;
  font-weight: 600;
}
.check input {
  width: 26px;
  height: 26px;
  accent-color: var(--blue);
  flex: none;
}
.formcat {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 16px 12px 12px;
  margin-top: 4px;
}
.formcat div {
  flex: 1;
}
.formcat small {
  display: block;
  color: var(--ink-3);
  font-size: 14px;
}
.formcat b {
  font: 800 21px/1.15 var(--disp);
}
.form-foot {
  margin-top: 26px;
}
.form-foot.sticky {
  position: sticky;
  bottom: 0;
  padding: 12px 0 calc(12px + var(--safe-b));
  background: linear-gradient(to top, var(--bg) 70%, transparent);
}

.place .or {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-3);
  font-size: 14.5px;
  margin: 12px 0;
}
.place .or::before,
.place .or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.search {
  position: relative;
}
.search > .ic-wrap {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
}
.search input {
  padding-left: 46px;
}
.suggest {
  list-style: none;
  margin: 6px 0 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.suggest button {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 9px;
  padding: 11px 10px;
}
.suggest button:hover {
  background: var(--blue-50);
}
.suggest .ic-wrap {
  color: var(--ink-3);
  margin-top: 2px;
}
.suggest b {
  display: block;
  font-weight: 700;
}
.suggest small {
  display: block;
  color: var(--ink-3);
  font-size: 14.5px;
}
.place-chosen {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 2px solid var(--blue-100);
  background: var(--blue-50);
  border-radius: 13px;
  color: var(--blue-ink);
}
.place-chosen > span:not(.ic-wrap) {
  flex: 1;
  color: var(--ink);
  text-align: left;
}
.photo-add {
  width: 100%;
  min-height: 118px;
  border: 2px dashed var(--ink-3);
  border-radius: 16px;
  background: var(--paper-2);
  color: var(--ink-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
}
.photo-add:hover {
  border-color: var(--blue);
  color: var(--blue-ink);
}
.photo-prev {
  position: relative;
}
.photo-prev img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 14px;
}
.photo-prev .btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
}

/* logowanie */
.phone {
  display: flex;
  align-items: center;
  border: 2px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  overflow: hidden;
}
.phone:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-100);
}
.phone > span {
  padding: 0 14px;
  font: 700 21px/1 var(--disp);
  color: var(--ink-2);
  border-right: 2px solid var(--line-2);
  align-self: stretch;
  display: grid;
  place-items: center;
}
.phone input {
  border: 0 !important;
  box-shadow: none !important;
  height: 64px;
  font: 700 23px/1 var(--disp);
  letter-spacing: 0.04em;
}
.otp {
  height: 72px;
  text-align: center;
  font: 800 36px/1 var(--disp) !important;
  letter-spacing: 0.35em;
}
.login form > .btn {
  margin-top: 6px;
}
.roles {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}
.role {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px 14px 14px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  text-align: left;
}
.role b {
  display: block;
  font: 800 21px/1.15 var(--disp);
}
.role small {
  display: block;
  color: var(--ink-2);
  font-size: 15.5px;
  margin-top: 3px;
}
.role.on {
  border-color: var(--blue);
  background: var(--blue-50);
  box-shadow: inset 0 0 0 1px var(--blue);
}
.role.on .tile-ic {
  background: var(--paper);
}

/* ---------- szczegóły fuchy ---------- */
.job-photo img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 16px;
}
.job-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 0 6px;
}
.job-cat {
  font-weight: 700;
  color: var(--blue-ink);
}
.job-price {
  font: 800 40px/1 var(--disp);
  letter-spacing: -0.03em;
  margin-top: 2px;
}
.job-price.np {
  font-size: 28px;
  color: var(--ink-2);
}
.job-desc {
  font-size: 19px;
  line-height: 1.5;
  white-space: pre-line;
  margin: 12px 0 14px;
  overflow-wrap: anywhere;
}
.facts {
  list-style: none;
  padding: 0;
  margin: 0 0 6px;
}
.facts li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.facts li > .ic-wrap {
  color: var(--ink-3);
  margin-top: 1px;
}
.facts small {
  color: var(--ink-3);
  font-size: 14.5px;
}
.minimap {
  position: relative;
  height: 210px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin: 14px 0;
  isolation: isolate;
}
.minimap .maplibregl-ctrl-attrib {
  font-size: 9px;
}
.contact .who {
  display: flex;
  flex-direction: column;
  margin: 6px 0 2px;
}
.contact .who b {
  font: 800 23px/1.2 var(--disp);
}
.contact .who span {
  font: 700 22px/1.3 var(--disp);
  letter-spacing: 0.03em;
  color: var(--ink-2);
}
.contact.sub {
  border: 2px solid var(--blue-100);
}
.contact p {
  margin: 0 0 10px;
}
.contact .hint {
  margin-top: 8px;
}
.contact.got {
  border: 2px solid #b9dfca;
  background: #f6fbf8;
}
.people {
  margin-top: 10px;
  border-top: 1px dashed var(--line);
  padding-top: 8px;
}
.people.none {
  color: var(--ink-3);
  font-size: 14.5px;
}
.people-h {
  font-size: 14.5px;
  color: var(--ink-2);
  font-weight: 700;
}
.person {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 6px 0;
  flex-wrap: wrap;
}
.person small {
  color: var(--ink-3);
}
.btn.call {
  background: var(--green-50);
  border-color: #b9dfca;
  color: var(--green);
}

/* konto */
.inline {
  display: flex;
  gap: 8px;
}
.switch {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  font-weight: 600;
  cursor: pointer;
}
.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.switch span {
  position: relative;
  width: 54px;
  height: 32px;
  border-radius: 999px;
  background: var(--line);
  flex: none;
  transition: background 0.15s;
}
.switch span::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.25);
  transition: transform 0.15s;
}
.switch input:checked + span {
  background: var(--blue);
}
.switch input:checked + span::after {
  transform: translateX(22px);
}
.switch input:focus-visible + span {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}
.account .seg {
  margin-top: 4px;
}
.steps ol {
  padding-left: 22px;
  margin: 0 0 12px;
}
.steps li {
  margin: 8px 0;
}

/* ---------- komunikat ---------- */
.toast {
  position: fixed;
  z-index: 3000;
  left: 50%;
  top: 64px;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 28px);
  text-align: center;
  background: var(--ink);
  color: #fff;
  padding: 13px 18px;
  border-radius: 13px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgb(24 33 44 / 0.3);
  animation: fade 0.2s;
}
.toast.err {
  background: var(--red);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- instalacja ---------- */
.installbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px 8px 12px;
  background: var(--blue-50);
  border-bottom: 1px solid var(--blue-100);
}
.installbar img {
  border-radius: 10px;
  flex: none;
}
.installbar span {
  flex: 1;
  min-width: 0;
  line-height: 1.2;
}
.installbar b {
  display: block;
  font-size: 15.5px;
}
.installbar small {
  display: block;
  font-size: 13.5px;
  color: var(--ink-2);
}
.icon-btn.sm {
  width: 38px;
  height: 38px;
}
.inst-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 4px 0 18px;
}
.inst-head img {
  border-radius: 22px;
  box-shadow: 0 8px 20px rgb(24 59 159 / 0.25);
  flex: none;
}
.inst-head .h1 {
  margin-top: 0;
}
.inst-head .lead {
  margin: 0;
  font-size: 16.5px;
}
.inst-btn {
  margin: 6px 0 12px;
}
.steps-big {
  list-style: none;
  padding: 0;
  margin: 8px 0 20px;
  display: grid;
  gap: 10px;
}
.steps-big li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px 14px 12px;
  font-size: 18px;
  line-height: 1.35;
}
.step-n {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font: 800 18px/1 var(--disp);
}
.key {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  background: var(--paper-2);
  color: var(--blue);
  vertical-align: middle;
  margin: 0 2px;
}
.qr-box {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  margin: 8px 0 18px;
}
.qr-box img {
  flex: none;
  width: 200px;
  height: 200px;
}
.qr-box .hint {
  word-break: break-all;
}
.ok-box {
  border: 2px solid #b9dfca;
  background: #f6fbf8;
}
.install .btn.ghost {
  margin-top: 6px;
}
@media print {
  html,
  body,
  .stage,
  .app,
  .app > main {
    height: auto !important;
    overflow: visible !important;
  }
  .app {
    transform: none;
    box-shadow: none !important;
    width: auto !important;
  }
  .stage-side {
    display: none !important;
  }
  body.print-install {
    background: #fff;
  }
  body.print-install .top,
  body.print-install .backbar,
  body.print-install .btn,
  body.print-install .fab,
  body.print-install .hint + .btn {
    display: none !important;
  }
  body.print-install .qr-box {
    flex-direction: column;
    text-align: center;
    border: 0;
  }
  body.print-install .qr-box img {
    width: 9cm;
    height: 9cm;
  }
}

/* ---------- podpowiedź ceny ---------- */
.money.qty {
  max-width: 240px;
}
.money.qty input {
  font: 700 22px/1 var(--disp);
}
.money.warn {
  border-color: #d9a441;
}
.money.bad {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-50);
}
.pricehint {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.ph-top {
  display: flex;
  flex-direction: column;
}
.ph-label {
  font-size: 14.5px;
  color: var(--ink-2);
  font-weight: 700;
}
.ph-range {
  font: 800 26px/1.15 var(--disp);
  letter-spacing: -0.02em;
  color: var(--blue-ink);
  margin: 2px 0;
}
.ph-sub {
  font-size: 14.5px;
  color: var(--ink-2);
}
.ph-local {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 0;
  font-size: 15px;
}
.ph-ex {
  margin: 8px 0 0;
  font-size: 14.5px;
  color: var(--ink-2);
}
.ph-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.ph-foot small {
  flex: 1 1 140px;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.3;
}
.price-note {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 15.5px;
  background: var(--paper-2);
  color: var(--ink-2);
}
.price-note.warn {
  background: #fdf5e4;
  color: #7a5310;
}
.price-note.bad {
  background: var(--red-50);
  color: var(--red);
}
.price-note .row {
  margin-top: 8px;
}
.price-note .row > * {
  flex: 0 1 auto;
}
.jc-qty {
  color: var(--ink-3);
  font-weight: 600;
}

/* ---------- moje fuchy: niebieskie metki, reszta biała ---------- */
.tag-pin::after {
  background: var(--paper);
  box-shadow: 0 0 0 1.5px var(--ink);
}
.tag.mine .tag-body,
.tag.mine .tag-body::before {
  background: var(--blue);
  border-color: var(--blue-ink);
  color: #fff;
}
.tag.mine .ic-cat {
  color: #fff;
}
.tag.mine .ic-cat .f {
  fill: rgb(255 255 255 / 0.28);
}
.tag.mine .tag-pin {
  background: var(--blue-ink);
}
.tag.mine .tag-pin::after {
  background: var(--blue);
}
.tag.mine.stack small {
  color: rgb(255 255 255 / 0.85);
}
.tag.stack.mine .tag-body {
  box-shadow: 4px -4px 0 -2px var(--paper), 4px -4px 0 0 var(--ink), 8px -8px 0 -2px var(--paper), 8px -8px 0 0 var(--ink), 0 4px 10px rgb(24 33 44 / 0.2);
}
/* wybrana metka - grafitowa, żeby odróżniała się od moich */
.tag.sel .tag-body,
.tag.sel .tag-body::before {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.tag.sel .tag-pin {
  background: var(--ink);
}
.jobcard.mine {
  border-left: 5px solid var(--blue);
  padding-left: 9px;
}
.chip .swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--blue);
  box-shadow: 0 0 0 1.5px var(--blue-ink);
}
.chip.mine.on {
  background: var(--blue);
  border-color: var(--blue);
}
.chip.mine.on .swatch {
  background: #fff;
}
.chip.add {
  border-style: dashed;
  border-color: var(--blue);
  color: var(--blue-ink);
}
.prefs-lead {
  margin: -4px 0 14px;
  font-size: 16px;
}
.lg {
  display: inline-block;
  padding: 0 7px;
  border-radius: 5px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  font-weight: 700;
  color: var(--ink);
}
.lg.mine {
  background: var(--blue);
  border-color: var(--blue-ink);
  color: #fff;
}
.prefs-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.ptile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 92px;
  padding: 10px 6px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  font: 700 14px/1.15 var(--ui);
  text-align: center;
}
.ptile .ic-cat {
  color: var(--ink);
}
.ptile.on {
  border-color: var(--blue);
  background: var(--blue-50);
  color: var(--blue-ink);
}
.ptick {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
}
.more-cats {
  margin-bottom: 6px;
}
.center-link {
  display: block;
  margin: 12px auto 4px;
}
.auth-tabs {
  margin: 4px 0 6px;
}
.pass {
  display: flex;
  align-items: center;
  border: 2px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  padding-right: 14px;
}
.pass:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-100);
}
.pass input {
  border: 0 !important;
  box-shadow: none !important;
  flex: 1;
  min-width: 0;
}
input::-ms-reveal,
input::-ms-clear {
  display: none;
}

/* ---------- abonament i płatności ---------- */
.sub-status {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 5px solid var(--line);
}
.sub-status.on {
  border-left-color: var(--green);
}
.sub-status b {
  font: 800 20px/1.2 var(--disp);
}
.sub-status span {
  color: var(--ink-2);
  font-size: 15.5px;
}
.trial {
  background: var(--blue-50);
  border-color: var(--blue-100);
}
.trial p {
  margin: 0 0 10px;
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 6px 12px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}
.plan.on {
  border-color: var(--blue);
  background: var(--blue-50);
  box-shadow: inset 0 0 0 1px var(--blue);
}
.plan-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-2);
}
.plan-price {
  font: 800 24px/1.1 var(--disp);
  letter-spacing: -0.02em;
}
.plan small {
  font-size: 12.5px;
  color: var(--ink-3);
  text-align: center;
  line-height: 1.2;
}
.plan-best {
  position: absolute;
  top: -10px;
  font: 700 11.5px/1 var(--ui);
  font-style: normal;
  background: var(--blue);
  color: #fff;
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.pay-note {
  font-size: 14.5px;
  color: var(--ink-2);
  margin: 12px 0;
  line-height: 1.4;
}
.pay-note .ic-wrap {
  vertical-align: -3px;
}
.payhist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.payhist li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line-2);
}
.payhist li span {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.payhist small {
  color: var(--ink-3);
}
.payhist em {
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}
.payhist em.paid {
  background: var(--green-50);
  color: var(--green);
}
.payhist em.canceled {
  background: var(--paper-2);
  color: var(--ink-3);
}
.pay-return {
  padding-top: 40px;
}
.paid-ok {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin: 10px auto 0;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green);
}
.spinner {
  width: 44px;
  height: 44px;
  margin: 24px auto;
  border-radius: 50%;
  border: 4px solid var(--blue-100);
  border-top-color: var(--blue);
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.fake-checkout {
  display: grid;
  gap: 12px;
}
.fc-row {
  font-weight: 700;
}
.fc-blik {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  border: 2px dashed var(--line);
  border-radius: 12px;
}
.fc-blik b {
  font: 800 26px/1 var(--disp);
  letter-spacing: 0.2em;
  color: var(--ink-3);
}
.plain {
  margin: 0;
  padding-left: 20px;
}
.plain li {
  margin: 8px 0;
}
.del-form {
  margin-top: 10px;
}
.photo-hint {
  margin: -4px 0 10px;
}

/* ---------- metki na mapie czubkiem w dół: czubek = miejsce fuchy ---------- */
.tag-body {
  margin: 0 0 12px;
  padding: 0 11px 0 9px;
  border-left: 2px solid var(--ink);
  border-radius: 7px;
  transform-origin: 50% calc(100% + 12px);
}
.tag-body::before {
  left: 50%;
  top: auto;
  bottom: -9.5px;
  width: 17px;
  height: 17px;
  margin: 0 0 0 -8.5px;
  border: 0;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  border-radius: 0 0 4px 0;
}
.tag-hole {
  left: 50%;
  top: auto;
  bottom: -5.5px;
  margin: 0 0 0 -3.5px;
}
.tag-pin {
  display: none;
}
.tag.stack .tag-body {
  transform-origin: 50% calc(100% + 12px);
}

/* ---------- faktura, stała współpraca, regulamin, zgłoszenia ---------- */
.badge.rep {
  background: var(--blue-50);
  color: var(--blue-ink);
}
.badge.fv {
  background: #fdf5e4;
  color: #7a5310;
  border: 1px solid #ecd9ad;
}
.jc-top .per {
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 700;
  margin-left: -4px;
}
.jc-top {
  flex-wrap: wrap;
}
.check.terms {
  align-items: flex-start;
  font-weight: 400;
  font-size: 15.5px;
  margin: 4px 0 14px;
}
.check.terms input {
  margin-top: 2px;
}
.report-link {
  margin: 4px 0 0;
  font-size: 14.5px;
}
.report-link .link {
  color: var(--ink-3);
  font-weight: 600;
}
.report .roles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.report .catchip {
  cursor: pointer;
}
.terms ol.plain li {
  margin: 8px 0;
}
