:root {
  color-scheme: light;
  --surface-2: #fafbfc;
  --brand: #f15a24;
  --brand-dark: #c9420f;
  --brand-soft: #fff0e8;
  --ink: #1b1d21;
  --ink-2: #555b66;
  --ink-3: #8a909b;
  --line: #e6e8ec;
  --bg: #f5f6f8;
  --card: #ffffff;
  --ok: #12965a;
  --ok-soft: #e5f6ee;
  --warn: #b7791f;
  --warn-soft: #fff6e0;
  --err: #d22d2d;
  --err-soft: #fdecec;
  --info: #2563eb;
  --info-soft: #e8f0fe;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(20, 24, 31, .12);
  --tabs-h: 62px;
  /* no top bar: the map runs to the top of the screen; only the phone status-bar inset is kept clear */
  --top-h: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-tap-highlight-color: transparent;
  font-size: 15px;
}
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
a { color: var(--brand-dark); }

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; padding: 13px 18px; font-weight: 650;
  background: var(--brand); color: #fff; cursor: pointer; text-decoration: none;
  min-height: 48px; transition: background .15s, transform .05s;
}
.btn:active { transform: scale(.98); }
.btn:hover { background: var(--brand-dark); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.block { width: 100%; }
.btn.ghost { background: var(--bg); color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { background: #eceef1; }
.btn.ok { background: var(--ok); }
.btn.ok:hover { background: #0d7a49; }
.btn.danger { background: var(--err-soft); color: var(--err); }
.btn.danger:hover { background: #f9d9d9; }
.btn.sm { min-height: 38px; padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn-row { display: flex; gap: 10px; }
.btn-row > * { flex: 1; }

label.field { display: block; margin-bottom: 12px; }
label.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(241, 90, 36, .15); }
textarea { resize: vertical; min-height: 70px; }

/* ---------- auth ---------- */
#auth { min-height: 100%; display: flex; flex-direction: column; }
.auth-hero {
  background: linear-gradient(160deg, #f15a24 0%, #d9381e 100%);
  color: #fff; padding: 48px 24px 64px; text-align: center;
}
.auth-hero img { width: 76px; height: 76px; border-radius: 20px; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.auth-hero h1 { margin: 14px 0 4px; font-size: 28px; letter-spacing: -.5px; }
.auth-hero p { margin: 0; opacity: .92; }
.auth-card {
  background: var(--card); margin: -36px 16px 24px; border-radius: 20px; padding: 20px;
  box-shadow: var(--shadow); max-width: 460px; align-self: center; width: calc(100% - 32px);
}
.seg { display: flex; background: var(--bg); border-radius: 12px; padding: 4px; margin-bottom: 18px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 10px; border-radius: 9px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.role-pick button {
  border: 2px solid var(--line); background: var(--card); border-radius: 14px; padding: 14px 10px; cursor: pointer; text-align: center;
}
.role-pick button b { display: block; margin-top: 4px; }
.role-pick button small { color: var(--ink-3); }
.role-pick button .ico { font-size: 30px; color: var(--brand); display: block; line-height: 1; }
.role-pick button.on { border-color: var(--brand); background: var(--brand-soft); }
.muted { color: var(--ink-3); font-size: 13px; }
.center { text-align: center; }

.lang-switch { display: flex; gap: 6px; justify-content: flex-end; margin-bottom: 8px; }
.lang-switch button {
  border: 1px solid rgba(255,255,255,.55); background: transparent; color: #fff; border-radius: 99px;
  padding: 5px 12px; font-weight: 700; font-size: 13px; cursor: pointer;
}
.lang-switch button span { display: none; }
.lang-switch button.on { background: #fff; color: var(--brand-dark); border-color: #fff; }
.card .lang-switch { justify-content: flex-start; margin: 10px 0 0; }
.card .lang-switch button { color: var(--ink); border-color: var(--line); padding: 9px 14px; }
.card .lang-switch button span { display: inline; font-weight: 500; }
.card .lang-switch button.on { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- main layout ---------- */
#main { position: fixed; inset: 0; display: flex; flex-direction: column; }
#topbar { height: var(--top-h); flex: none; background: var(--card); z-index: 500; }
/* pomen's ONLINE / OFFLINE pill floats over the map's top-left corner */
#topbar-right { position: absolute; left: 14px; top: calc(var(--top-h) + 14px); z-index: 550; }
#topbar-right:empty, body.no-map #topbar-right { display: none; }
#topbar-right .tag { display: inline-block; padding: 8px 12px; font-size: 13px; box-shadow: var(--shadow); background-color: var(--card); }
#topbar-right .tag.ok { background-color: var(--ok-soft, #e6f6ee); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; letter-spacing: -.3px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
#map { flex: 1; min-height: 0; background: #dfe3e8; z-index: 1; }
#sheet {
  position: absolute; left: 0; right: 0; bottom: var(--tabs-h);
  max-height: 55%; overflow-y: auto; transition: max-height .25s ease;
  background: var(--card); border-radius: 22px 22px 0 0; box-shadow: 0 -8px 30px rgba(20,24,31,.14);
  padding: 0 16px 18px; z-index: 600; overscroll-behavior: contain;
}
#sheet.collapsed { max-height: 26%; }
#sheet-handle {
  position: sticky; top: 0; display: block; width: calc(100% + 32px); margin: 0 -16px 4px; height: 22px; border: 0; cursor: pointer;
  background: var(--card); z-index: 2;
}
#sheet-handle::before { content: ''; display: block; width: 44px; height: 5px; border-radius: 3px; background: #cfd3d9; margin: 9px auto 0; }
body.no-map #map, body.no-map #locate-btn { visibility: hidden; }
body.no-map #sheet {
  top: var(--top-h); max-height: none !important; border-radius: 0; box-shadow: none; background: var(--bg);
}
body.no-map #sheet-handle { display: none; }
#tabs {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--tabs-h);
  background: var(--card); border-top: 1px solid var(--line); display: flex; z-index: 700;
  padding-bottom: env(safe-area-inset-bottom);
}
#tabs button {
  flex: 1; border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 12px; font-weight: 600; color: var(--ink-3); cursor: pointer; position: relative;
}
#tabs button .tab-ico { font-size: 23px; line-height: 1; }
#tabs button.on { color: var(--brand); }
#tabs .dot { position: absolute; top: 8px; left: calc(50% + 8px); width: 9px; height: 9px; border-radius: 50%; background: var(--err); }
.fab {
  position: absolute; right: 14px; top: calc(var(--top-h) + 14px); z-index: 550;
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--card); box-shadow: var(--shadow);
  font-size: 22px; cursor: pointer; color: var(--info);
}

/* ---------- content ---------- */
h2.sheet-title { font-size: 19px; margin: 4px 0 4px; letter-spacing: -.3px; }
h3 { font-size: 15px; margin: 18px 0 10px; }
.sub { color: var(--ink-2); font-size: 14px; margin: 0 0 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
body.no-map .card { border: 0; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.page { padding: 14px 0 24px; max-width: 640px; margin: 0 auto; }
.page h2 { margin: 4px 0 14px; }

.problems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.problems button {
  border: 2px solid var(--line); background: var(--card); border-radius: 12px; padding: 10px 4px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; line-height: 1.2; text-align: center;
}
.problems button .pi { font-size: 22px; }
.problems button.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }

.ws-list { display: flex; flex-direction: column; gap: 8px; }
.ws {
  display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card);
}
.ws.nearest { border-color: var(--brand); background: linear-gradient(0deg, var(--card), var(--brand-soft)); }
.ws .av {
  width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); display: grid; place-items: center; font-size: 22px; flex: none;
}
.ws .info { flex: 1; min-width: 0; }
.ws .info b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws .meta { font-size: 13px; color: var(--ink-2); }
.ws .fee { text-align: right; }
.ws .fee b { display: block; font-size: 16px; }
.tag {
  display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: var(--bg); color: var(--ink-2);
  vertical-align: middle;
}
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.err { background: var(--err-soft); color: var(--err); }
.tag.info { background: var(--info-soft); color: var(--info); }
.tag.brand { background: var(--brand); color: #fff; }

.empty { text-align: center; padding: 22px 10px; color: var(--ink-2); }
.empty .big { font-size: 38px; }

.banner { border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; font-size: 14px; }
.banner.warn { background: var(--warn-soft); color: #7a4f0b; }
.banner.err { background: var(--err-soft); color: #8d1c1c; }
.banner.ok { background: var(--ok-soft); color: #0b5e39; }
.banner.info { background: var(--info-soft); color: #1d4ab8; }
.banner b { display: block; margin-bottom: 2px; }

/* status stepper */
.steps { display: flex; gap: 4px; margin: 10px 0 14px; }
.steps i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.steps i.done { background: var(--brand); }
.job-head { display: flex; align-items: center; gap: 12px; }
.job-head .big { font-size: 30px; }
.kv { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--ink-2); }
.kv.total { font-size: 17px; font-weight: 800; border-bottom: 0; padding-top: 10px; }
.kv.total span { color: var(--ink); }
.contact { display: flex; gap: 8px; margin: 12px 0; }
.contact a { flex: 1; }

.switch {
  display: flex; align-items: center; justify-content: space-between; padding: 14px; border-radius: 16px;
  background: #2a2d33; color: #fff; margin-bottom: 12px;
}
.switch.on { background: var(--ok); }
.switch b { font-size: 17px; display: block; }
.switch small { opacity: .85; }
.toggle { width: 58px; height: 32px; border-radius: 99px; background: rgba(255,255,255,.3); border: 0; position: relative; cursor: pointer; flex: none; }
.toggle::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: left .2s;
}
.switch.on .toggle::after { left: 29px; }

.req {
  border: 2px solid var(--brand); border-radius: 16px; padding: 14px; margin-bottom: 12px; background: var(--brand-soft);
  animation: pulse 1.6s infinite;
}
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(241,90,36,.35); } 50% { box-shadow: 0 0 0 8px rgba(241,90,36,0); } }
.req .countdown { font-variant-numeric: tabular-nums; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.stat { background: var(--card); border-radius: 14px; padding: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.stat small { color: var(--ink-2); font-weight: 600; }
.stat b { display: block; font-size: 22px; margin-top: 4px; }

.hist { display: flex; gap: 12px; align-items: center; }
.hist .big { font-size: 26px; }
.hist .info { flex: 1; min-width: 0; }
.hist .info b { display: block; }

.stars { display: flex; gap: 6px; justify-content: center; font-size: 34px; margin: 8px 0 12px; }
.stars button { border: 0; background: none; cursor: pointer; filter: grayscale(1); opacity: .4; padding: 0; }
.stars button.on { filter: none; opacity: 1; }

/* ---------- modal & toast ---------- */
#modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: flex-end; justify-content: center; }
.modal-bg { position: absolute; inset: 0; background: rgba(15, 17, 21, .5); }
.modal-card {
  position: relative; background: var(--card); width: 100%; max-width: 520px; border-radius: 22px 22px 0 0; padding: 20px;
  max-height: 90vh; overflow-y: auto; animation: up .2s ease-out;
}
@media (min-width: 640px) { #modal { align-items: center; } .modal-card { border-radius: 20px; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.modal-card h3 { margin-top: 0; font-size: 18px; }

#toast {
  position: fixed; left: 50%; top: 16px; transform: translate(-50%, -120%); z-index: 3000;
  background: #1f2228; color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 14px;
  box-shadow: var(--shadow); transition: transform .25s, visibility .25s; max-width: calc(100% - 32px); text-align: center;
  visibility: hidden;
}
/* off-screen by its own height plus the top gap, so no edge peeks out when it is hidden */
#toast:not(.show) { transform: translate(-50%, calc(-100% - 24px)); }
#toast.show { transform: translate(-50%, 0); visibility: visible; }
#toast.err { background: var(--err); }
#toast.ok { background: var(--ok); }

/* ---------- map markers ---------- */
.pin { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-size: 19px; background: var(--card); box-shadow: 0 3px 10px rgba(0,0,0,.3); border: 3px solid var(--brand); }
.pin.me { width: 22px; height: 22px; background: var(--info); border: 4px solid #fff; box-shadow: 0 0 0 6px rgba(37,99,235,.25); }
.pin.cust { border-color: var(--err); }
.pin.near { border-color: var(--ok); }

/* ---------- photos ---------- */
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.thumb { position: relative; display: block; }
.thumb img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; display: block; border: 1px solid var(--line); }
.thumb button {
  position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0;
  background: var(--ink); color: #fff; font-size: 14px; line-height: 1; cursor: pointer;
}
.photo-add {
  width: 72px; height: 72px; border-radius: 10px; border: 2px dashed var(--line); background: var(--card); cursor: pointer;
  font-size: 22px; color: var(--ink-3); display: grid; place-items: center;
}
.photo-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.photo-row .thumbs { margin: 0; }

/* ---------- nearby extras ---------- */
.ws .hint { font-size: 12px; color: var(--ok); font-weight: 600; margin-top: 2px; }
.ws .info b.link { cursor: pointer; text-decoration: underline dotted var(--ink-3); text-underline-offset: 3px; }
.offer { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.offer:last-child { border-bottom: 0; }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--brand-soft); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.badge-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--err); color: #fff; font-size: 12px; font-weight: 700; }

/* ---------- services ---------- */
.svc { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.svc:last-child { border-bottom: 0; }
.svc .n { flex: 1; }
.svc .n small { display: block; color: var(--ink-3); }
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; position: relative; }
.svc-row input, .svc-row select { padding: 9px 10px; }
.svc-row .full { grid-column: 1 / -1; }
.svc-row [data-del] { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--err); color: #fff; cursor: pointer; }
.review { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.review:last-child { border-bottom: 0; }

/* ---------- chat ---------- */
#chat { position: fixed; inset: 0; z-index: 1500; background: var(--bg); display: flex; flex-direction: column; }
.chat-h { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--card); border-bottom: 1px solid var(--line); padding-top: max(10px, env(safe-area-inset-top)); }
.chat-h > div { flex: 1; min-width: 0; }
.chat-h b { display: block; }
.chat-h small { color: var(--ink-3); }
#chat-close { border: 0; background: none; font-size: 24px; cursor: pointer; padding: 4px 8px; }
#chat-list { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 6px; }
.msg { max-width: 78%; padding: 9px 12px; border-radius: 16px; background: var(--card); box-shadow: 0 1px 2px rgba(0,0,0,.06); align-self: flex-start; word-wrap: break-word; }
.msg.me { align-self: flex-end; background: var(--brand); color: #fff; }
.msg img { display: block; max-width: 220px; max-height: 260px; border-radius: 10px; margin-bottom: 4px; }
.msg time { display: block; font-size: 11px; opacity: .7; margin-top: 2px; text-align: right; }
.chat-empty { margin: auto; text-align: center; color: var(--ink-3); }
#chat-form { display: flex; gap: 8px; padding: 10px 12px; background: var(--card); border-top: 1px solid var(--line); padding-bottom: max(10px, env(safe-area-inset-bottom)); }
#chat-form input { flex: 1; border-radius: 99px; }
#chat-photo { border: 0; background: var(--bg); width: 44px; border-radius: 50%; font-size: 20px; cursor: pointer; flex: none; }


/* ---------- home grid (search + round tiles) ---------- */
.searchbar {
  display: flex; align-items: center; gap: 8px; background: var(--card); border: 2px solid var(--line); border-radius: 14px;
  padding: 4px 6px 4px 14px; margin-bottom: 14px;
}
.searchbar:focus-within { border-color: var(--brand); }
.searchbar input { border: 0; box-shadow: none !important; padding: 10px 4px; background: transparent; }
.hello { margin: 4px 0 2px; font-size: 22px; letter-spacing: -.4px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 10px; margin: 14px 0 16px; }
.tile {
  border: 0; background: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center; padding: 4px 2px; color: var(--ink);
}
.tile .ti-ico {
  width: 72px; height: 72px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-size: 34px;
  box-shadow: 0 3px 12px rgba(20,24,31,.10); border: 2px solid var(--brand-soft); transition: transform .1s, border-color .15s;
}
.tile:hover .ti-ico { border-color: var(--brand); }
.tile:active .ti-ico { transform: scale(.94); }
.tile b { font-size: 13px; line-height: 1.2; }
.tile small { font-size: 11px; color: var(--ink-3); line-height: 1.2; }
.near-sum { font-size: 14px; }
.backbar { display: flex; align-items: center; gap: 10px; margin: 2px 0 12px; }
.backbar b { font-size: 17px; }
.vseg { margin: 4px 0 8px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.chips button {
  border: 1px solid var(--line); background: var(--card); padding: 7px 12px; border-radius: 99px; cursor: pointer; font-size: 13px; font-weight: 600;
}
.chips button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.chips.sugg button { font-weight: 500; color: var(--ink-2); padding: 5px 10px; font-size: 12px; }
.fuel .chips button { font-size: 15px; padding: 9px 16px; }
.part .part-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.part .price { font-weight: 800; font-size: 17px; white-space: nowrap; }
.part .part-shop { font-size: 13px; color: var(--ink-2); margin: 6px 0 2px; }
.contact.sm { margin: 10px 0 0; }
.contact.sm .btn { flex: 1; }
.svc-row .stock { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.svc-row .stock input { width: auto; }


/* ---------- identity, ranking, proof ---------- */
.av img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.ws.helper { margin: 6px 0 12px; }
.list-h { margin: 16px 0 8px; font-size: 14px; }
.auth-hero.small { padding: 28px 24px 54px; }
.auth-hero.small h1 { margin-top: 4px; }
.photo-pick { display: flex; align-items: center; gap: 12px; }
.photo-pick .pp-img {
  width: 76px; height: 76px; border-radius: 14px; border: 2px dashed var(--line); background: var(--card);
  display: grid; place-items: center; font-size: 26px; overflow: hidden; flex: none;
}
.photo-pick .pp-img img { width: 100%; height: 100%; object-fit: cover; }
.check { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 700; cursor: pointer; }
.check input { width: 20px; height: 20px; }
.rate-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.rate-row:last-of-type { border-bottom: 0; }
.rate-row > span { font-weight: 600; font-size: 14px; }
.stars.sm { font-size: 24px; margin: 0; gap: 2px; }
.like { margin-top: 10px; }
.like.on { background: var(--err-soft); color: var(--err); border-color: #f5c2c2; }
.rank-score { font-size: 34px; font-weight: 800; letter-spacing: -1px; margin: 4px 0 6px; }
.rank-score small { font-size: 15px; color: var(--ink-3); font-weight: 600; }
.tag.tier-gold { background: #fff4cc; color: #8a6200; }
.tag.tier-silver { background: #eef1f5; color: #4b5563; }
.tag.tier-bronze { background: #f9e7da; color: #8a4b1c; }
.tag.tier-new { background: var(--info-soft); color: var(--info); }
.proof { border-top: 1px dashed var(--line); margin-top: 10px; padding-top: 10px; }
b.bad { color: var(--err); }

.av { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); display: grid; place-items: center; font-size: 22px; flex: none; overflow: hidden; }
.job-head > .av { width: 58px; height: 58px; border-radius: 50%; font-size: 28px; }
.ws.helper .av, .ws .av:has(img) { border-radius: 50%; }

/* ---------- workshop map ---------- */
.spin {
  display: inline-flex; align-items: center; gap: 4px; background: var(--card); border: 2px solid var(--brand); border-radius: 99px;
  padding: 3px 9px 3px 5px; box-shadow: 0 3px 10px rgba(0,0,0,.25); white-space: nowrap; font-size: 12px; position: relative;
}
.spin::after { content: ''; position: absolute; left: 50%; bottom: -7px; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--brand); border-bottom: 0; }
.spin span { font-size: 15px; }
.spin b { color: var(--ink); }
.spin.shop { border-color: var(--info); }
.spin.shop::after { border-top-color: var(--info); }
.spin.on { box-shadow: 0 0 0 3px rgba(18,150,90,.35), 0 3px 10px rgba(0,0,0,.25); }
.shop-pop b { font-size: 15px; }
.shop-pop > div { margin-top: 3px; }
.pop-btns { display: flex; gap: 6px; margin-top: 8px; }
.pop-btns .btn { min-height: 32px; padding: 6px 10px; color: #fff; }
.pop-btns .btn.ghost { color: var(--ink); }

/* ---------- pictures: parts, shops, Google-style gallery ---------- */
.part-row { display: flex; gap: 12px; align-items: flex-start; }
.part-body { flex: 1; min-width: 0; }
.part-body .price { margin-top: 4px; }
.part-pic {
  width: 88px; height: 88px; border-radius: 12px; overflow: hidden; flex: none; background: var(--bg);
  display: grid; place-items: center; font-size: 34px; border: 1px solid var(--line);
}
.part-pic[data-shop] { cursor: pointer; }
.part-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; margin: -20px -20px 14px; padding: 0; border-radius: 22px 22px 0 0; }
.gallery a { flex: none; scroll-snap-align: start; }
.gallery img { height: 180px; width: auto; max-width: 300px; object-fit: cover; display: block; }
.gallery a:only-child img { width: 100%; max-width: none; }
.gallery a:only-child { flex: 1; }
.rating-line { margin: 8px 0 0; font-weight: 700; }
.pop-cover { display: block; width: calc(100% + 40px); height: 120px; object-fit: cover; margin: -14px -20px 8px; border-radius: 12px 12px 0 0; }
.part-pick { display: flex; align-items: center; gap: 10px; }
.part-pick .pp-img { width: 64px; height: 64px; border-radius: 12px; border: 2px dashed var(--line); background: var(--card); display: grid; place-items: center; font-size: 22px; overflow: hidden; cursor: pointer; padding: 0; }
.part-pick .pp-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- subscription payment ---------- */
.pay-box { background: var(--bg); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.pay-amt { font-size: 30px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 4px; }
.pay-amt small { font-size: 14px; color: var(--ink-3); font-weight: 600; }
.pay-box .acct { display: flex; align-items: center; gap: 8px; font-size: 17px; letter-spacing: .5px; }
.pay-qr { width: 200px; height: 200px; object-fit: contain; margin-top: 10px; border-radius: 12px; background: #fff; }
.pay-steps { padding-left: 20px; margin: 0 0 12px; font-size: 14px; line-height: 1.6; }
.pay-wait { margin-top: 10px; padding: 10px 12px; background: rgba(255,255,255,.6); border-radius: 10px; font-weight: 600; }
.pay-wait.bad { color: var(--err); }


/* ---------- icons ---------- */
.tile .ti-ico .ti { font-size: 34px; color: var(--brand); }
.problems button .pi .ti { font-size: 26px; color: var(--brand); }
.problems button.on .pi .ti { color: var(--brand-dark); }
.job-head .big .ti, .hist .big .ti { font-size: 30px; color: var(--brand); }
.vseg .ti { font-size: 18px; vertical-align: -3px; }
.part-pic.noimg::after { content: '🖼️'; font-size: 28px; opacity: .5; }

/* ---------- open / closed ---------- */
.tag.open { background: var(--ok); color: #fff; }
.tag.closed { background: var(--line); color: var(--ink-2); }
.ws.focus { border-color: var(--info); box-shadow: 0 0 0 3px rgba(37,99,235,.25); }
.spin.closed { opacity: .55; }

/* bottom sheet grows while the user scrolls inside it, so long forms need less scrolling */
#sheet.expanded { max-height: calc(100% - var(--top-h) - 70px); }

/* ---------- dark theme (phones in dark mode) ---------- */
@media (prefers-color-scheme: dark) {
  html.app {
    color-scheme: dark;
    --ink: #eceef2; --ink-2: #b8bec8; --ink-3: #8d94a0;
    --line: #2c313a; --bg: #101216; --card: #1a1d23; --surface-2: #20242b;
    --brand-soft: #3a2218; --brand-dark: #ff8a5c;
    --ok-soft: #12321f; --warn-soft: #3a2e12; --err-soft: #3d1a1a; --info-soft: #172544;
    --shadow: 0 6px 24px rgba(0, 0, 0, .5);
  }
  html.app .banner.warn { color: #f3d48c; }
  html.app .banner.err { color: #f2a7a7; }
  html.app .banner.ok { color: #9fe0bd; }
  html.app .banner.info { color: #a9c3ff; }
  html.app .tag.ok { color: #6fd7a0; }
  html.app .tag.warn { color: #f0c46a; }
  html.app .tag.err { color: #f59393; }
  html.app .tag.info { color: #8fb2ff; }
  /* the map stays bright in dark mode (owner preference) */
  html.app .leaflet-popup-content-wrapper, html.app .leaflet-popup-tip { background: var(--card); color: var(--ink); }
  html.app .switch:not(.on) { background: #2a2f37; }
  html.app .modal-bg { background: rgba(0, 0, 0, .65); }
  html.app input, html.app select, html.app textarea { background: var(--surface-2); color: var(--ink); }
  html.app .searchbar input { background: transparent; }
  html.app .msg { background: var(--surface-2); }
  html.app .msg.me { background: var(--brand); }
}

/* ---------- agent card (Airbnb-host style) ---------- */
.agent-card {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 10px; align-items: center;
  background: var(--card); border-radius: 22px; padding: 18px 16px; margin: 4px 0 12px;
  box-shadow: 0 8px 28px rgba(20, 24, 31, .12); border: 1px solid var(--line);
  background-image: radial-gradient(circle at 0 0, var(--brand-soft), transparent 55%);
}
.ac-left { text-align: center; }
.ac-photo { position: relative; width: 104px; height: 104px; margin: 0 auto; }
.ac-photo img, .ac-photo > span { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--bg); font-size: 44px; }
.ac-badge {
  position: absolute; right: -2px; bottom: 4px; width: 34px; height: 34px; border-radius: 50%; background: #e0245e; color: #fff;
  display: grid; place-items: center; font-size: 19px; border: 3px solid var(--card);
}
.ac-name { font-size: 22px; font-weight: 800; letter-spacing: -.4px; margin-top: 8px; line-height: 1.15; word-break: break-word; }
.ac-tier { font-size: 13px; color: var(--ink-2); font-weight: 600; margin-top: 2px; }
.ac-stats > div { padding: 8px 0; border-bottom: 1px solid var(--line); }
.ac-stats > div:last-child { border-bottom: 0; }
.ac-stats b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.5px; line-height: 1.1; }
.ac-stats b em { font-style: normal; font-size: 18px; }
.ac-stats span { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.helper { margin-bottom: 8px; }
.helper-meta { font-size: 14px; margin: -4px 4px 10px; }

/* travel fee by time of day */
.fee-table { margin: -4px 0 10px; font-size: 13px; }
.fee-table summary { cursor: pointer; color: var(--ink-2); padding: 4px 0; }
.fee-table .kv.now { font-weight: 800; color: var(--brand); }
.tier-row { align-items: flex-end; }
.tier-row .btn { margin-bottom: 12px; }
.tier-row > .field:first-child { flex: 2.4; }
.tier-row > .btn { flex: 0 0 40px; padding: 0; }

/* demo account switcher */
.demo-switch { border: 0; cursor: pointer; font: inherit; font-size: 12px; font-weight: 800; }
.ds-auto { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--bg); margin-bottom: 10px; cursor: pointer; }
.ds-auto input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.ds-auto span { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.ds-row { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 10px; margin-bottom: 6px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; cursor: pointer; }
.ds-row.me { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.ds-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; font-size: 14px; }
.ds-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.ds-chips .tag { font-size: 11px; }
.ws .meta .dist { font-weight: 800; color: var(--ink); }

/* draggable sheet: max-height is set inline by the drag code; a soft ease when it settles */
#sheet { transition: max-height .28s cubic-bezier(.2, .8, .2, 1), height .28s cubic-bezier(.2, .8, .2, 1); will-change: height; touch-action: pan-y; }
#sheet[data-snap=hidden] { overflow: hidden; }
#sheet[data-snap=full] { border-radius: 0; }
body.no-map #sheet { height: auto !important; overflow-y: auto !important; }
#sheet-handle { touch-action: none; cursor: grab; height: 26px; }
#sheet-handle:active { cursor: grabbing; }

/* pay the pomen: amount, QR, receipt */
.pay-now { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 16px; margin: 4px 0 12px;
  border-radius: 18px; background: var(--brand-soft); border: 1px solid var(--brand); }
.pay-now b { font-size: 34px; font-weight: 900; letter-spacing: -1px; color: var(--brand); }
.pay-now small { color: var(--ink-2); font-weight: 600; }
.pay-qr { width: 200px; max-width: 70%; border-radius: 12px; background: #fff; padding: 6px; margin: 6px auto; display: block; }
.receipt { background: var(--card); border: 1px dashed var(--line); border-radius: 18px; padding: 14px 16px; margin: 6px 0 12px; }
.rc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.rc-head img { width: 36px; height: 36px; border-radius: 10px; }
.rc-head div { flex: 1; display: flex; flex-direction: column; }
.rc-head small { color: var(--ink-2); }
.rc-items { border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); margin: 6px 0; padding: 4px 0; }
.hist-end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

.stars-text { color: #f5a524; letter-spacing: 2px; font-size: 18px; }

/* admin: identity checks */
.verify { margin-top: 8px; padding: 8px 10px; border: 1px dashed var(--line); border-radius: 10px; display: flex; flex-direction: column; gap: 6px; }
.verify .vrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.verify .vrow .thumbs { margin: 0; }
.vchk { display: inline-flex; gap: 6px; align-items: center; padding: 4px 10px; border-radius: 999px; background: #fdecec; color: #b42318; font-weight: 700; font-size: 12px; cursor: pointer; }
.vchk.on { background: #e7f6ec; color: #13703a; }
.vchk input { width: 16px; height: 16px; }

/* shop workers */
.agent-pick { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 10px; }
.agent-pick label { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.agent-pick label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.agent-pick span { display: flex; flex-direction: column; }
.agent-pick small { color: var(--ink-2); }
.agent-row { align-items: center; gap: 10px; }
.agent-row .n { display: flex; flex-direction: column; }

/* monthly statements */
.month-card { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; border: 1px solid var(--brand); background: var(--brand-soft); cursor: pointer; font: inherit; color: var(--ink); }
.month-card b { font-size: 28px; font-weight: 900; color: var(--brand); letter-spacing: -.5px; }
.month-chips { display: flex; gap: 6px; overflow-x: auto; margin: -4px 0 12px; padding-bottom: 4px; }
.month-chips .chip { flex: none; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--card); border-radius: 16px; padding: 14px 16px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.kpi b { font-size: 24px; font-weight: 900; }
.kpi span, .kpi small { color: var(--ink-2); font-size: 12px; }
.kpi.brand { background: var(--brand); color: #fff; border-color: var(--brand); }
.kpi.brand span, .kpi.brand small { color: rgba(255,255,255,.85); }

.announce { position: relative; padding-right: 36px; }
.ann-x { position: absolute; top: 8px; right: 8px; border: 0; background: transparent; color: inherit; font-size: 16px; cursor: pointer; }

/* chat: location messages and one-tap helpers */
#chat-quick { display: flex; gap: 6px; overflow-x: auto; padding: 6px 10px 0; background: var(--card); }
#chat-quick[hidden] { display: none; }
#chat-quick .chip { flex: none; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.msg-loc { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; margin: 2px 0 4px; border-radius: 12px; background: rgba(37, 99, 235, .1); color: inherit; text-decoration: none; }
.msg-loc span { font-size: 12px; opacity: .8; }

/* photo pickers: camera or upload */
.pp-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.photo-pick.bad .pp-img { border-color: var(--err); }
.cam-box { position: fixed; inset: 0; z-index: 5000; background: rgba(0,0,0,.75); display: grid; place-items: center; padding: 16px; }
.cam-card { background: var(--card); border-radius: 18px; padding: 12px; width: min(560px, 100%); }
.cam-card video { width: 100%; border-radius: 12px; background: #000; display: block; margin-bottom: 10px; }
/* Discord-style profile */
.pf-card { padding: 0 14px 12px; overflow: hidden; }
.pf-banner { aspect-ratio: 3 / 1; margin: 0 -14px; background: linear-gradient(135deg, var(--brand), #ff9a5a) center / cover no-repeat; position: relative; }
/* the banner melts into the card instead of ending in a hard line */
.pf-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 45%, var(--card)); pointer-events: none; }
.pf-head { display: flex; justify-content: space-between; align-items: flex-end; margin-top: -42px; }
.pf-av { width: 88px; height: 88px; border-radius: 50%; border: 5px solid var(--card); background: var(--bg); display: grid; place-items: center; font-size: 40px; overflow: hidden; }
.pf-av img { width: 100%; height: 100%; object-fit: cover; }
.pf-name { font-size: 20px; font-weight: 800; margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pf-name .tag { font-size: 11px; }
.modal-banner { aspect-ratio: 3 / 1; height: auto; margin: -18px -18px 12px; border-radius: 18px 18px 0 0; }
.fill-in { color: var(--brand); font-weight: 700; }
.chk { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.chk input { width: 18px; height: 18px; flex: none; margin: 0; }

/* crop editor */
.crop-box { position: fixed; inset: 0; z-index: 5000; background: rgba(0,0,0,.8); display: grid; place-items: center; padding: 16px; }
.crop-card { background: var(--card); border-radius: 18px; padding: 14px; width: min(560px, 100%); display: flex; flex-direction: column; gap: 8px; }
.crop-frame { position: relative; width: 100%; max-height: 60vh; border-radius: 12px; overflow: hidden; background: #000; touch-action: none; cursor: grab; }
.crop-frame:active { cursor: grabbing; }
.crop-frame canvas { width: 100%; height: 100%; display: block; }
.crop-frame.round::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgba(0,0,0,.55); pointer-events: none; }
.crop-zoom { display: flex; align-items: center; gap: 8px; }
.crop-zoom input { flex: 1; }

/* banner gradient picker */
.grad-pick { display: flex; align-items: center; gap: 8px; }
.grad-pick input[type=color] { width: 46px; height: 40px; padding: 2px; border-radius: 10px; flex: none; cursor: pointer; }
.grad-prev { flex: 1; height: 40px; border-radius: 10px; }
.grad-presets { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.grad-presets button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; padding: 0; }
.pf-head { position: relative; z-index: 1; }

/* profile themed from the banner colours */
.pf-card.themed, .modal-card.themed { background: linear-gradient(180deg, var(--card) 0%, var(--pf-bottom) 100%); color: var(--ink); border-color: transparent; }
.pf-card.themed #edit-profile, .modal-card.themed .btn:not(.ghost):not(.danger) { background: var(--pf-accent); color: var(--pf-accent-ink); }
.pf-card.themed .tag { background: rgba(255,255,255,.12); color: var(--ink); }
.pf-card.themed .pf-av { border-color: var(--card); }
.pf-card.themed .fill-in { color: var(--pf-accent); }
.pf-card.themed .kv, .modal-card.themed .kv { border-color: var(--line); }

/* profile page: card at the very top, edge to edge */
.pf-page { padding-top: 0; }
.pf-page > .pf-card:first-child { margin: 0 -16px 14px; border-radius: 0 0 22px 22px; border-left: 0; border-right: 0; border-top: 0; }
.pf-page > .pf-card:first-child .pf-banner { border-radius: 0; }
/* whole profile page in the banner's colours */
body.no-map #sheet.themed { background: linear-gradient(180deg, var(--card) 0, var(--pf-bottom) 520px, var(--pf-bottom) 100%); color: var(--ink); }
#sheet.themed .pf-card { background: transparent; box-shadow: none; }
#sheet.themed .card { background: rgba(255,255,255,.06); border-color: var(--line); color: var(--ink); box-shadow: none; }
#sheet.themed .btn.ghost { background: rgba(255,255,255,.08); color: var(--ink); border-color: var(--line); }
#sheet.themed .btn:not(.ghost):not(.danger) { background: var(--pf-accent); color: var(--pf-accent-ink); }
#sheet.themed .btn.danger { background: rgba(255,90,90,.16); color: #ffc2c2; }
#sheet.themed .lang-switch button { background: rgba(255,255,255,.06); color: var(--ink); border-color: var(--line); }
#sheet.themed .lang-switch button.on { background: var(--pf-accent); color: var(--pf-accent-ink); border-color: var(--pf-accent); }
#sheet.themed .tag { background: rgba(255,255,255,.12); color: var(--ink); }
#sheet.themed .muted, #sheet.themed small { color: var(--ink-2); }
#sheet.themed .fill-in, #sheet.themed a { color: var(--pf-accent); }

/* waiting-for-a-pomen cartoon */
.scene { background: linear-gradient(180deg, var(--brand-soft), transparent); border-radius: 18px; padding: 6px 6px 8px; margin: 6px 0 10px; overflow: hidden; }
.scene svg { width: 100%; height: auto; display: block; }
.scene .road { fill: var(--ink); opacity: .12; }
.scene .dashes rect { fill: var(--ink); opacity: .35; }
.scene .dashes.moving { animation: sc-road .5s linear infinite; }
.scene .tyre { fill: none; stroke: var(--ink); stroke-width: 5; }
.scene .hub { fill: var(--ink); }
.scene .spoke { stroke: var(--ink); stroke-width: 2; opacity: .6; }
.scene .frame, .scene .tool { fill: none; stroke: var(--brand); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.scene .seat, .scene .box, .scene .helmet, .scene .cap, .scene .pump { fill: var(--brand); }
.scene .tool-head { fill: none; stroke: var(--brand); stroke-width: 3; }
.scene .visor { stroke: var(--card); stroke-width: 3; stroke-linecap: round; }
.scene .body, .scene .arm, .scene .leg { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.scene .skin { fill: #f2c9a0; }
.scene .hose { fill: none; stroke: var(--ink); stroke-width: 3; opacity: .55; }
.scene .wind path { stroke: var(--info, #2563eb); stroke-width: 3; stroke-linecap: round; opacity: .6; }
.scene .sparks circle { fill: #f5a524; }
.scene .puffs circle { fill: #9cc7ff; }
.scene .wheel { transform-box: view-box; }
.scene .spin { animation: sc-spin .45s linear infinite; }
.scene .ride { animation: sc-bob .35s ease-in-out infinite alternate; }
.scene .wind { animation: sc-wind .7s linear infinite; }
.scene .forearm { transform-box: view-box; animation: sc-forearm 1.2s ease-in-out infinite alternate; }
.scene .wrench { transform-box: view-box; animation: sc-wrench .6s ease-in-out infinite alternate; }
.scene .sparks circle { animation: sc-spark .5s ease-in-out infinite alternate; }
.scene .sparks circle:nth-child(2) { animation-delay: .15s; } .scene .sparks circle:nth-child(3) { animation-delay: .3s; }
.scene .handle { animation: sc-pump .6s ease-in-out infinite alternate; }
.scene .inflate { animation: sc-inflate 3s ease-out infinite; }
.scene .puffs circle { animation: sc-puff .9s ease-out infinite; }
.scene .puffs circle:nth-child(2) { animation-delay: .3s; } .scene .puffs circle:nth-child(3) { animation-delay: .6s; }
/* the three scenes and captions take turns: 3 s each */
.scene .sc, .scene-cap span { opacity: 0; animation: sc-turn 6s infinite; }
.scene .sc2, .scene-cap .c2 { animation-delay: 3s; }
.scene-cap { position: relative; height: 20px; text-align: center; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.scene-cap span { position: absolute; inset: 0; }
@keyframes sc-turn { 0% { opacity: 0; } 6% { opacity: 1; } 46% { opacity: 1; } 52% { opacity: 0; } 100% { opacity: 0; } }
@keyframes sc-road { to { transform: translateX(-40px); } }
@keyframes sc-spin { to { transform: rotate(360deg); } }
@keyframes sc-bob { to { transform: translateY(-2.5px); } }
@keyframes sc-wind { from { transform: translateX(18px); opacity: 0; } 30% { opacity: .8; } to { transform: translateX(-26px); opacity: 0; } }
@keyframes sc-forearm { from { transform: rotate(-4deg); } to { transform: rotate(5deg); } }
@keyframes sc-wrench { from { transform: rotate(-25deg); } to { transform: rotate(25deg); } }
@keyframes sc-spark { from { opacity: 0; transform: translateY(2px); } to { opacity: 1; transform: translateY(-3px); } }
@keyframes sc-pump { from { transform: translateY(0); } to { transform: translateY(10px); } }
@keyframes sc-inflate { 0% { transform: scale(.82); } 85% { transform: scale(1.06); } 100% { transform: scale(1.06); } }
@keyframes sc-puff { from { opacity: .9; transform: translate(0, 0) scale(.6); } to { opacity: 0; transform: translate(10px, -10px) scale(1.4); } }
@media (prefers-reduced-motion: reduce) {
  .scene *, .scene-cap span { animation: none !important; }
  .scene .sc2, .scene-cap .c2 { display: none; }
  .scene .sc1, .scene-cap .c1 { opacity: 1; }
}

.scene .jb { font: 900 9px system-ui, sans-serif; fill: #fff; }
.scene .wind path { stroke: #7fb3ff; }

.pf-av .av-media { width: 100%; height: 100%; background-repeat: no-repeat; }

.code-input { font-size: 28px; font-weight: 800; letter-spacing: 10px; text-align: center; }
.ve-change { margin-top: 12px; font-size: 14px; }
.ve-change summary { cursor: pointer; color: var(--ink-2); }
.ve-change form { margin-top: 8px; }

/* banner + profile as one piece: no box around the profile, the banner melts into the page */
#sheet.themed .pf-page > .pf-card.card { background: transparent !important; border: 0 !important; box-shadow: none !important; border-radius: 0; }
.pf-banner::after { background: linear-gradient(to bottom, transparent 40%, color-mix(in srgb, var(--card) 65%, transparent) 75%, var(--card) 100%); }
.pf-page .pf-head { margin-top: -54px; }
.pf-page .pf-av { width: 96px; height: 96px; border-width: 4px; box-shadow: 0 6px 20px rgba(0,0,0,.35); }

/* centred pop-up (no pomen / pomen cancelled) */
#modal.center { align-items: center; padding: 16px; }
#modal.center .modal-card { border-radius: 22px; max-width: 380px; }
.outcome { text-align: center; display: flex; flex-direction: column; gap: 8px; }
.outcome .oc-icon { font-size: 52px; line-height: 1; margin-top: 4px; }
.outcome h3 { margin: 4px 0 0; font-size: 20px; }
.outcome p { margin: 0 0 4px; color: var(--ink-2); line-height: 1.45; }
.outcome .oc-job { display: inline-flex; align-self: center; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--bg); font-weight: 700; font-size: 14px; margin-bottom: 4px; }

/* sign-up: "I agree to the Terms & Privacy Policy" */
.agree { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 12px; font-size: 13px; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.agree input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--brand); }
.agree a, .legal-links a { color: var(--brand); font-weight: 700; }
.legal-links { font-size: 12px; margin-top: 6px; }

/* ================= visual polish (2026-10-13): font, logo gradient, colourful home ================= */
:root {
  --grad: linear-gradient(135deg, #ffb02e 0%, #f15a24 52%, #e2336b 100%);
  --grad-soft: linear-gradient(135deg, #fff4e0 0%, #fff0e8 50%, #fde8ef 100%);
  --shadow-brand: 0 8px 20px -6px rgba(241, 90, 36, .45);
}
body, button, input, select, textarea { font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
h1, h2, h3, .hello, .sheet-title { letter-spacing: -.02em; }

/* primary buttons wear the logo gradient */
.btn:not(.ghost):not(.ok):not(.danger) { background: var(--grad); background-size: 140% 140%; box-shadow: var(--shadow-brand); }
.btn:not(.ghost):not(.ok):not(.danger):hover { background: var(--grad); filter: brightness(1.05); }
.btn:not(.ghost):not(.ok):not(.danger):disabled { box-shadow: none; }
.btn.ok { background: linear-gradient(135deg, #1fbf7a, #0e8f5a); box-shadow: 0 8px 18px -8px rgba(18, 150, 90, .55); }
.btn.ghost { box-shadow: 0 1px 2px rgba(20, 24, 31, .04); }

/* sign-in */
.auth-hero { background: var(--grad); position: relative; overflow: hidden; }
.auth-hero::before, .auth-hero::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .12); pointer-events: none; }
.auth-hero::before { width: 260px; height: 260px; right: -90px; top: -110px; }
.auth-hero::after { width: 180px; height: 180px; left: -70px; bottom: -80px; }
.auth-hero > * { position: relative; }
.auth-hero img { box-shadow: 0 14px 30px -8px rgba(80, 20, 0, .45); border-radius: 22px; }
.auth-card { border-radius: 24px; box-shadow: 0 18px 40px -18px rgba(20, 24, 31, .25); }

/* home: gradient hello card with the search inside */
.home-hero {
  position: relative; overflow: hidden; background: var(--grad); color: #fff; border-radius: 24px;
  padding: 20px 18px 16px; margin: 6px 0 6px; box-shadow: 0 16px 32px -16px rgba(226, 51, 107, .55);
}
.home-hero::before { content: ''; position: absolute; width: 190px; height: 190px; border-radius: 50%; background: rgba(255, 255, 255, .14); right: -60px; top: -80px; }
.home-hero > * { position: relative; }
.home-hero .hello { color: #fff; font-size: 24px; margin: 0 0 2px; }
.home-hero .sub { color: rgba(255, 255, 255, .92); margin: 0 0 14px; }
.home-hero .searchbar { margin: 0; border: 0; background: rgba(255, 255, 255, .97); box-shadow: 0 6px 16px -8px rgba(60, 10, 0, .35); }
.home-hero .searchbar input { color: #1b1d21; }

/* colourful category tiles (soft squircles) */
.tiles { gap: 16px 10px; margin: 18px 0 16px; }
.tile .ti-ico {
  width: 74px; height: 74px; border-radius: 24px; border: 0; background: var(--tcs, var(--brand-soft));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), 0 6px 14px -8px var(--tc, var(--brand));
}
.tile .ti-ico .ti { color: var(--tc, var(--brand)); font-size: 34px; }
.tile:hover .ti-ico { transform: translateY(-2px); }
.tile:active .ti-ico { transform: scale(.94); }
.tile b { font-size: 13.5px; font-weight: 700; }

/* problem picker */
.problems button { border-radius: 16px; transition: transform .08s, border-color .15s, background .15s; }
.problems button:active { transform: scale(.97); }
.problems button.on { border-color: transparent; background: var(--grad-soft); box-shadow: 0 0 0 2px var(--brand), 0 8px 18px -10px rgba(241, 90, 36, .6); }

/* segmented controls & bottom tabs */
.seg button.on { box-shadow: 0 2px 8px rgba(20, 24, 31, .1); }
#tabs { box-shadow: 0 -6px 20px -12px rgba(20, 24, 31, .2); border-top-color: transparent; }
#tabs button .tab-ico { padding: 3px 18px; border-radius: 999px; transition: background .2s; }
#tabs button.on .tab-ico { background: var(--brand-soft); }
#tabs button.on { font-weight: 700; }

/* sheet, cards, pomen switch */
#sheet { border-radius: 26px 26px 0 0; }
.card { border-radius: 18px; }
.switch.on { background: linear-gradient(135deg, #1fbf7a, #0e8f5a); box-shadow: 0 12px 24px -14px rgba(18, 150, 90, .7); }
.switch:not(.on) { background: linear-gradient(135deg, #2a2f3a, #171a20); }
.banner { border-radius: 16px; }

@media (prefers-color-scheme: dark) {
  html.app .tile .ti-ico { background: color-mix(in srgb, var(--tc, #f15a24) 18%, #1a1d23); box-shadow: none; }
  html.app .problems button.on { background: var(--brand-soft); }
  html.app .home-hero .searchbar { background: rgba(255, 255, 255, .95); }
}
.auth-card { position: relative; z-index: 1; }
.home-hero .sub { font-size: 16px; font-weight: 700; color: #fff; }

/* ================= opening animation (splash) ================= */
#splash {
  position: fixed; inset: 0; z-index: 99999; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--grad); color: #fff; overflow: hidden; transition: opacity .5s ease, transform .5s ease;
}
#splash::before, #splash::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .12); animation: sp-float 5s ease-in-out infinite alternate; }
#splash::before { width: 75vmin; aspect-ratio: 1; right: -28vmin; top: -12vmin; }
#splash::after { width: 58vmin; aspect-ratio: 1; left: -24vmin; bottom: -10vmin; animation-delay: -2.5s; }
#splash.out { opacity: 0; transform: scale(1.08); pointer-events: none; }
.sp-logo { width: min(52vw, 230px); position: relative; animation: sp-pop .75s cubic-bezier(.34, 1.56, .64, 1) both; }
.sp-logo svg { width: 100%; display: block; overflow: visible; filter: drop-shadow(0 12px 18px rgba(110, 25, 0, .28)); }
.sp-handle { stroke-dasharray: 260; stroke-dashoffset: 260; animation: sp-draw .5s .45s ease-out forwards; }
.sp-box { transform-box: fill-box; transform-origin: 50% 100%; animation: sp-wiggle .55s 1s ease-in-out; }
.sp-band, .sp-latch { opacity: 0; animation: sp-in .3s .7s ease-out forwards; }
.sp-spark { transform-box: fill-box; transform-origin: center; opacity: 0; animation: sp-twinkle 1.4s 1s ease-in-out infinite; }
.sp-spark2 { animation-delay: 1.7s; }
.sp-name { margin-top: min(6vw, 26px); font-size: min(13.5vw, 58px); line-height: 1; font-weight: 800; letter-spacing: -.03em; display: flex; position: relative; }
.sp-name span { display: inline-block; opacity: 0; transform: translateY(40%); animation: sp-up .5s calc(.6s + var(--i) * 55ms) cubic-bezier(.34, 1.56, .64, 1) forwards; }
.sp-tag { margin-top: min(2.6vw, 12px); font-size: min(4.6vw, 20px); font-weight: 600; letter-spacing: .01em; opacity: 0; animation: sp-in .6s 1.2s ease-out forwards; position: relative; }
.sp-dots { display: flex; gap: 7px; margin-top: 30px; position: relative; opacity: 0; animation: sp-in .3s 1.4s forwards; }
.sp-dots i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: sp-dot 1s ease-in-out infinite; }
.sp-dots i:nth-child(2) { animation-delay: .15s; } .sp-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes sp-pop { from { transform: scale(.25) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sp-draw { to { stroke-dashoffset: 0; } }
@keyframes sp-wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }
@keyframes sp-in { to { opacity: 1; } }
@keyframes sp-up { to { opacity: 1; transform: none; } }
@keyframes sp-twinkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 50% { opacity: 1; transform: scale(1.15) rotate(45deg); } }
@keyframes sp-dot { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-6px); opacity: 1; } }
@keyframes sp-float { to { transform: translate(-10px, 14px); } }
@media (prefers-reduced-motion: reduce) {
  #splash *, #splash::before, #splash::after { animation-duration: .01s !important; animation-delay: 0s !important; }
}

/* ================= desktop layout (wide screens): top bar + side panel + big map ================= */
.desk-only, .hero-points { display: none; }
html.desk { --top-h: 68px; }
html.desk .desk-only { display: flex; }
html.desk #topbar {
  display: flex; align-items: center; gap: 16px; padding: 0 24px; background: var(--card); z-index: 800;
  box-shadow: 0 1px 0 var(--line), 0 6px 18px -14px rgba(20, 24, 31, .3);
}
html.desk #topbar .brand { align-items: center; gap: 10px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
html.desk #topbar .brand img { width: 38px; height: 38px; border-radius: 11px; }
html.desk #topbar-right { position: static; }
html.desk #topbar-right .tag { box-shadow: none; }
/* the menu moves from the bottom bar into the top bar */
html.desk #tabs {
  top: 0; bottom: auto; left: auto; right: 24px; height: var(--top-h); width: auto; padding: 0; gap: 6px;
  background: transparent; border: 0; box-shadow: none; z-index: 801; align-items: center;
}
html.desk #tabs button { flex: none; flex-direction: row; gap: 8px; padding: 9px 16px; border-radius: 12px; font-size: 14.5px; }
html.desk #tabs button .tab-ico { padding: 0; background: none !important; font-size: 20px; }
html.desk #tabs button.on { background: var(--brand-soft); }
html.desk #tabs button:hover:not(.on) { background: var(--bg); }
html.desk #tabs .dot { top: 6px; left: 30px; }
/* side panel on the left, map fills the rest */
html.desk #sheet {
  top: var(--top-h); bottom: 0; left: 0; right: auto; width: 440px; height: auto !important; max-height: none !important;
  border-radius: 0; padding: 20px 22px 28px; box-shadow: 1px 0 0 var(--line), 10px 0 30px -18px rgba(20, 24, 31, .35); transition: none;
}
html.desk #sheet-handle { display: none; }
html.desk #map { margin-left: 440px; }
html.desk #locate-btn { top: calc(var(--top-h) + 16px); right: 20px; }
/* pages without a map (home menu, history, profile): a centred wide page */
html.desk body.no-map #sheet { width: auto; right: 0; padding: 28px max(24px, calc((100% - 1040px) / 2)) 48px; background: var(--bg); box-shadow: none; }
html.desk .home-hero { padding: 30px 32px 26px; border-radius: 28px; }
html.desk .home-hero .sub { font-size: 24px; margin-bottom: 18px; }
html.desk .home-hero .searchbar { max-width: 620px; }
html.desk .tiles { grid-template-columns: repeat(6, 1fr); gap: 18px; margin: 26px 0 24px; }
html.desk .tile { padding: 16px 6px; border-radius: 20px; background: var(--card); box-shadow: 0 1px 2px rgba(20, 24, 31, .05); transition: transform .12s, box-shadow .12s; }
html.desk .tile:hover { transform: translateY(-3px); box-shadow: 0 14px 26px -16px rgba(20, 24, 31, .35); }
html.desk .tile:hover .ti-ico { transform: none; }
/* sign-in: brand on the left half, forms on the right */
html.desk #auth:not([hidden]) { min-height: 100vh; padding-left: 52vw; justify-content: center; }
html.desk .auth-hero {
  position: fixed; left: 0; top: 0; bottom: 0; width: 52vw; display: flex; flex-direction: column; justify-content: center;
  align-items: flex-start; text-align: left; padding: 64px 6vw;
}
html.desk .auth-hero .lang-switch { position: absolute; top: 28px; left: 6vw; right: auto; }
html.desk .auth-hero img { width: 92px; height: 92px; border-radius: 26px; }
html.desk .auth-hero h1 { font-size: 58px; margin: 22px 0 8px; }
html.desk .auth-hero p { font-size: 20px; max-width: 480px; line-height: 1.45; }
html.desk .hero-points { display: grid; gap: 12px; list-style: none; padding: 0; margin: 30px 0 0; font-size: 17px; font-weight: 600; }
html.desk .hero-points li { display: flex; align-items: center; gap: 12px; }
html.desk .hero-points span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .18); font-size: 20px; }
html.desk #auth .auth-card { margin: 0 auto 18px; width: min(460px, 86%); align-self: center; }
html.desk #auth > .auth-card:first-of-type { margin-top: 48px; }

/* ================= the bill: amount counts up, orange panel rises from the bottom ================= */
#bill-reveal { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: stretch; justify-content: center; background: rgba(15, 17, 21, .55); animation: br-fade .25s ease-out; }
#bill-reveal.out { animation: br-fade-out .35s ease-in forwards; }
#bill-reveal.out .br-panel { animation: br-down .35s ease-in forwards; }
.br-box { position: relative; width: 100%; max-width: 520px; display: flex; flex-direction: column; background: var(--card); overflow: hidden; }
.br-top { flex: 1; min-height: 34%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 28px 20px; text-align: center; }
.br-top small { font-size: 15px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
.br-amt { font-size: clamp(48px, 15vw, 76px); font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.br-amt.done { animation: br-pulse .45s cubic-bezier(.34, 1.56, .64, 1); }
.br-top span { color: var(--ink-3); font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.br-panel {
  position: relative; overflow: hidden; color: #fff; background: var(--grad); border-radius: 30px 30px 0 0;
  padding: 26px 22px calc(22px + env(safe-area-inset-bottom)); box-shadow: 0 -18px 40px -20px rgba(226, 51, 107, .6);
  animation: br-up .75s cubic-bezier(.22, 1.2, .36, 1) .1s both;
}
.br-dot { position: absolute; left: var(--x); bottom: -12px; width: var(--s); height: var(--s); border-radius: 50%; background: rgba(255, 255, 255, .85); opacity: 0; animation: br-float 3.2s var(--d) ease-in infinite; pointer-events: none; }
.br-rows { position: relative; background: rgba(255, 255, 255, .14); border-radius: 18px; padding: 6px 16px; backdrop-filter: blur(2px); }
.br-rows .kv { border-color: rgba(255, 255, 255, .25); color: #fff; }
.br-rows .kv span { color: rgba(255, 255, 255, .92); }
.br-rows .kv small { display: block; font-size: 12px; opacity: .85; }
.br-rows .kv.total { font-size: 19px; font-weight: 800; border: 0; }
.br-note { position: relative; margin: 14px 4px 16px; font-size: 13.5px; line-height: 1.45; color: rgba(255, 255, 255, .95); text-align: center; }
.br-ok { position: relative; width: 100%; min-height: 54px; border: 0; border-radius: 16px; background: #fff; color: #e2461a; font: inherit; font-weight: 800; font-size: 17px; cursor: pointer; box-shadow: 0 10px 22px -12px rgba(60, 10, 0, .6); }
.br-ok:active { transform: scale(.98); }
html.desk #bill-reveal { align-items: center; }
html.desk .br-box { height: min(760px, 92vh); border-radius: 30px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .5); }
@keyframes br-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes br-down { to { transform: translateY(100%); } }
@keyframes br-fade { from { opacity: 0; } }
@keyframes br-fade-out { to { opacity: 0; } }
@keyframes br-pulse { 50% { transform: scale(1.08); } }
@keyframes br-float { 0% { opacity: 0; transform: translateY(0) scale(.6); } 15% { opacity: .9; } 100% { opacity: 0; transform: translateY(-340px) scale(1.1); } }
@media (prefers-reduced-motion: reduce) { #bill-reveal *, #bill-reveal { animation-duration: .01s !important; animation-delay: 0s !important; } }
.br-panel { min-height: 60%; display: flex; flex-direction: column; justify-content: flex-end; }
.br-top { min-height: 0; }
@keyframes br-float { 0% { opacity: 0; transform: translateY(0) scale(.6); } 15% { opacity: .9; } 100% { opacity: 0; transform: translateY(-480px) scale(1.1); } }

/* bill v2: one full orange screen rising from the bottom, smaller amount shown straight away */
.br-box { background: var(--grad); color: #fff; animation: br-up .7s cubic-bezier(.22, 1.2, .36, 1) both; }
#bill-reveal.out .br-box { animation: br-down .35s ease-in forwards; }
#bill-reveal.out .br-panel { animation: none; }
.br-top { flex: 1; justify-content: center; padding: 40px 22px 10px; position: relative; }
.br-top small { color: rgba(255, 255, 255, .9); }
.br-amt { font-size: clamp(38px, 11vw, 50px); background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #fff; text-shadow: 0 6px 18px rgba(110, 25, 0, .25); }
.br-amt.done { animation: none; }
.br-top span { color: rgba(255, 255, 255, .88); }
.br-panel { min-height: 0; background: none; box-shadow: none; border-radius: 0; animation: none; padding-top: 8px; }
.br-dot { animation-name: br-float-full; }
@keyframes br-float-full { 0% { opacity: 0; transform: translateY(0) scale(.6); } 12% { opacity: .9; } 100% { opacity: 0; transform: translateY(-110vh) scale(1.1); } }
/* bill v3: smaller amount, sitting higher on the screen */
.br-top { justify-content: flex-start; padding-top: clamp(56px, 13vh, 110px); }
.br-amt { font-size: clamp(32px, 9vw, 40px); }

/* bill bubbles: slow, one at a time */
.br-dot { animation-duration: 9s; animation-timing-function: linear; }

/* map credits folded into a small ⓘ (required by the map licences; tap to read) */
.leaflet-control-attribution.attr-fold { position: relative; width: 22px; height: 22px; padding: 0 !important; margin: 0 8px 8px 0 !important; border-radius: 50%;
  background: rgba(255, 255, 255, .85) !important; overflow: hidden; color: transparent; font-size: 0; cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.leaflet-control-attribution.attr-fold::before { content: 'i'; position: absolute; inset: 0; display: grid; place-items: center; font: italic 700 13px Georgia, serif; color: #555b66; }
.leaflet-control-attribution.attr-fold.open { width: auto; height: auto; border-radius: 10px; padding: 3px 8px !important; font-size: 11px; color: #555b66; }
.leaflet-control-attribution.attr-fold.open::before { display: none; }
html.desk .leaflet-control-attribution.attr-fold { margin-bottom: 8px !important; }

/* ================= pomen / kedai sign-up wizard ================= */
.wz-bar { display: flex; justify-content: space-between; margin: 4px 0 18px; position: relative; }
.wz-bar::before { content: ''; position: absolute; left: 16px; right: 16px; top: 15px; height: 3px; border-radius: 3px; background: var(--line); }
.wz-dot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; font-size: 11px; color: var(--ink-3); font-weight: 600; }
.wz-dot i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--card); border: 2px solid var(--line); font-style: normal; font-weight: 800; font-size: 13px; color: var(--ink-3); transition: all .2s; }
.wz-dot.done { cursor: pointer; color: var(--ink-2); }
.wz-dot.done i { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.wz-dot.on { color: var(--ink); }
.wz-dot.on i { background: var(--grad); border-color: transparent; color: #fff; box-shadow: var(--shadow-brand); transform: scale(1.08); }
.wz-h { margin: 0 0 12px; font-size: 19px; }
.wz-sub { margin: -6px 0 12px; }
.wz-step { animation: wz-in .25s ease-out; }
@keyframes wz-in { from { opacity: 0; transform: translateX(14px); } }
.kind-cards { display: grid; gap: 10px; margin-bottom: 14px; }
.kind-card { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 18px; border: 2px solid var(--line); background: var(--card); cursor: pointer; transition: border-color .15s, background .15s, transform .08s; }
.kind-card:active { transform: scale(.99); }
.kind-card input { position: absolute; opacity: 0; pointer-events: none; }
.kind-card .ico { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); font-size: 28px; }
.kind-card .kc-t { display: flex; flex-direction: column; gap: 2px; }
.kind-card b { font-size: 16px; }
.kind-card small { color: var(--ink-3); font-size: 12.5px; line-height: 1.35; }
.kind-card.on { border-color: var(--brand); background: var(--grad-soft); box-shadow: 0 8px 18px -12px rgba(241, 90, 36, .6); }
.kind-card.on .ico { background: var(--grad); color: #fff; }
.wz-need { padding: 12px 14px; border-radius: 16px; background: var(--bg); font-size: 14px; }
.wz-need ul { margin: 8px 0 0; padding-left: 20px; color: var(--ink-2); line-height: 1.6; }
.wz-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; }
.wz-nav .btn { flex: 1; }
.wz-nav #wz-next[hidden] { display: none; }
.wz-sum { padding: 4px 14px; margin-bottom: 12px; }
.wz-sum .kv b { display: flex; align-items: center; gap: 8px; text-align: right; }
.wz-edit { border: 0; background: none; color: var(--brand); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; padding: 2px 4px; }
.field.bad input, .field.bad select { border-color: var(--err) !important; box-shadow: 0 0 0 3px var(--err-soft); }

/* pomen's commission balance */
.comm-card .comm-amt { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 8px 0 6px; }
.comm-card .comm-amt small { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-left: 6px; }
.comm-bar { height: 8px; border-radius: 8px; background: var(--bg); overflow: hidden; }
.comm-bar i { display: block; height: 100%; border-radius: 8px; background: var(--grad); }
.comm-card.blocked { border: 2px solid var(--err); }
.comm-card.blocked .comm-bar i { background: var(--err); }
.br-comm { position: relative; margin-top: 12px; padding: 10px 14px; border-radius: 14px; background: rgba(0, 0, 0, .12); font-size: 13.5px; }

/* after-repair photo: required before the bill */
.proof.need { border: 2px dashed var(--brand); border-radius: 16px; padding: 12px; background: var(--brand-soft); }
.proof .muted { display: block; margin: 2px 0 8px; }
.br-photo { position: relative; margin-bottom: 12px; border-radius: 16px; overflow: hidden; height: 130px; box-shadow: 0 8px 20px -10px rgba(60, 10, 0, .5); }
.br-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.br-photo span { position: absolute; left: 10px; bottom: 8px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .55); font-size: 12px; font-weight: 700; }

.proof.shake { animation: proof-shake .5s ease-in-out 2; }
@keyframes proof-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }
