/* nafucha - 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;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.45 var(--ui);
  min-height: 100dvh;
}
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-wide {
  display: none;
  flex: 0 1 380px;
}
.modes-narrow {
  padding: 0 12px 10px;
}
@media (min-width: 620px) {
  .modes-wide {
    display: block;
  }
  .modes-narrow {
    display: none;
  }
}
.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 ---------- */
.app.is-map {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.app.is-map main {
  flex: 1;
  min-height: 0;
}
.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;
}
@media (max-width: 959px) {
  .mapwrap .maplibregl-ctrl-top-right {
    display: none;
  }
}
.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);
}

/* panel z listą na dużym ekranie */
@media (min-width: 960px) {
  .mappage {
    display: grid;
    grid-template-columns: 410px 1fr;
  }
  .side {
    overflow-y: auto;
    background: var(--paper);
    border-right: 1px solid var(--line);
    padding: 4px 16px 24px;
  }
  .app.is-map .fab {
    left: calc(205px + 50vw);
  }
  .preview {
    left: 24px;
    right: auto;
    width: 400px;
    bottom: 24px;
  }
  .map-bottom {
    left: auto;
    right: 16px;
    bottom: 24px;
  }
}

/* ---------- 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: 86dvh;
  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;
}
@media (min-width: 700px) {
  .sheet {
    left: 50%;
    right: auto;
    width: 580px;
    transform: translateX(-50%);
    bottom: auto;
    top: 7vh;
    max-height: 86vh;
    border-radius: 20px;
    animation: none;
  }
}
@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;
}
@media (min-width: 600px) {
  .tiles {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 900px) {
  .tiles {
    grid-template-columns: repeat(4, 1fr);
  }
}
.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='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: 72px;
  transform: translateX(-50%);
  width: max-content;
  max-width: min(92vw, 520px);
  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;
  }
}
