/* Aira – czat firmy. Wygląd przeniesiony z prototypu (design/prototyp-rezerwacje.html). */
@font-face {
  font-family: Outfit; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/outfit-latin-ext-wght-normal.woff2) format("woff2");
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Outfit; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/outfit-latin-wght-normal.woff2) format("woff2");
  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 {
  --green: #16D68F;
  --green-press: #11C482;
  --ink: #0E1726;
  --bg: #FFFFFF;
  --page: #F3F6F4;
  --surface: #F3F6F4;
  --card: #FFFFFF;
  --text: #0E1726;
  --muted: #667181;
  --line: #E3E8E5;
  --user: #0E1726;
  --user-text: #FFFFFF;
  --shadow: 0 24px 60px rgba(14, 23, 38, .12);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B121E;
    --page: #060B13;
    --surface: #162131;
    --card: #101A28;
    --text: #F1F5F3;
    --muted: #93A0B2;
    --line: #1F2B3D;
    --user: #2B3A52;
    --user-text: #FFFFFF;
    --shadow: 0 24px 60px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--page);
  color: var(--text);
  font-family: Outfit, ui-rounded, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 2.5px solid var(--green); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- rama aplikacji ---------- */
.app {
  height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  overflow: clip; /* schowany arkusz nie może przewinąć całej ramy */
}
@media (min-width: 700px) {
  .app {
    height: calc(100dvh - 48px);
    margin: 24px auto;
    border-radius: 32px;
    box-shadow: var(--shadow);
  }
}

/* Czat w panelu bocznym widgetu (?embed=1): ramka to cały ekran czatu, bez karty na środku */
.embed .app { max-width: none; height: 100dvh; margin: 0; border-radius: 0; box-shadow: none; }

/* ---------- nagłówek ---------- */
.top {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 8px 14px;
  padding-top: max(8px, env(safe-area-inset-top));
  border-bottom: 1px solid var(--line);
  flex: none;
}
.top .grow { flex: 1; min-width: 0; }
.wordmark { display: block; height: 28px; width: auto; color: var(--text); }
.brand-link { display: inline-flex; align-items: center; min-height: 44px; }

.co-ava {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 20px;
}
.co-name { font-weight: 600; font-size: 16.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-status { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: var(--text);
}
.icon-btn:active { background: var(--surface); }
.icon-btn svg { width: 22px; height: 22px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: 14px;
  font-weight: 600; font-size: 15.5px; text-decoration: none; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--green); color: var(--ink); }
.btn.primary:active { background: var(--green-press); }
.btn.ghost { border: 1.5px solid var(--line); color: var(--text); }
.btn.ghost:active { background: var(--surface); }
.btn.text { padding: 0 10px; color: var(--text); font-weight: 500; }
.btn.pill { border-radius: 999px; min-height: 40px; font-size: 15px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: default; }

/* ---------- wątek ---------- */
.chat {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px 14px 12px;
  display: flex;
  flex-direction: column;
}
.hello { text-align: center; padding: 6px 10px 22px; }
.hello .ava, .hello .co-ava { margin: 0 auto 12px; }
.hello .co-ava { width: 64px; height: 64px; border-radius: 20px; font-size: 32px; }
.hello h1 { font-size: 24px; line-height: 1.2; font-weight: 600; margin: 0 0 6px; letter-spacing: -.01em; }
.hello p { margin: 0 auto; color: var(--muted); max-width: 30ch; }
.meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta svg { width: 15px; height: 15px; }
.meta .open { color: var(--text); font-weight: 500; }

.claim {
  margin: 18px auto 0; max-width: 360px; text-align: left;
  background: var(--surface); border-radius: 22px; padding: 14px;
}
.claim label { display: block; font-weight: 600; font-size: 15px; margin: 0 4px 10px; }
.claim-row {
  display: flex; align-items: center;
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 16px;
  padding: 4px 4px 4px 14px;
}
.claim-row:focus-within { border-color: var(--green); }
.claim-row .prefix { color: var(--muted); font-weight: 500; }
.claim-row input {
  flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: none;
  font-weight: 600; padding: 0 6px 0 1px;
}
.claim-row input::placeholder { color: var(--muted); font-weight: 500; opacity: .7; }
.claim-row .btn { min-height: 44px; border-radius: 12px; padding: 0 14px; }

.row { display: flex; gap: 8px; align-items: flex-end; margin-top: 12px; animation: rise .22s ease-out both; }
.row.user { justify-content: flex-end; }
.who { flex: none; width: 28px; height: 28px; }
.col { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; max-width: calc(100% - 52px); }
.bubble {
  padding: 10px 14px; border-radius: 20px;
  background: var(--surface); overflow-wrap: anywhere;
  animation: rise .2s ease-out both;
}
.row.bot .col > :last-child.bubble { border-bottom-left-radius: 6px; }
.row.user .bubble { background: var(--user); color: var(--user-text); border-bottom-right-radius: 6px; max-width: 82%; }
.bubble b { font-weight: 600; }

.typing { display: inline-flex; gap: 4px; padding: 15px 14px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: bounce 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }

/* ---------- karty akcji ---------- */
.card {
  width: 100%; min-width: min(280px, 100%);
  background: var(--card); border: 1.5px solid var(--line); border-radius: 20px;
  padding: 14px; animation: rise .2s ease-out both;
}
.card h3 { font-size: 16px; font-weight: 600; margin: 0 0 10px; }
.card .actions { display: flex; gap: 8px; margin-top: 14px; }
.card .actions .btn { flex: 1; }
.card .hint { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot { min-height: 44px; border-radius: 12px; border: 1.5px solid var(--line); font-weight: 600; }
.slot:active, .slot.picked { background: var(--green); border-color: var(--green); color: var(--ink); }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; text-align: right; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; padding-top: 0; }
.list small { display: block; color: var(--muted); font-size: 13px; }
.list .price { font-weight: 600; white-space: nowrap; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.steps li::before {
  content: counter(s); width: 28px; height: 28px; border-radius: 50%;
  background: var(--green); color: var(--ink); font-weight: 700; font-size: 14px;
  display: grid; place-items: center;
}
.steps b { display: block; font-weight: 600; }
.steps span { color: var(--muted); font-size: 14.5px; }

.done { display: flex; gap: 12px; align-items: center; }
.done .tick { width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: var(--ink); display: grid; place-items: center; flex: none; }
.done .tick svg { width: 22px; height: 22px; }
.done b { display: block; font-weight: 600; }
.done span { color: var(--muted); font-size: 14.5px; }

.url { font-weight: 600; font-size: 18px; overflow-wrap: anywhere; }
.url em { font-style: normal; color: var(--green); }
.url span { color: var(--muted); font-weight: 500; }

.example { display: flex; align-items: center; gap: 12px; }
.example .co-ava { width: 44px; height: 44px; }
.example b { display: block; font-weight: 600; }
.example span { color: var(--muted); font-size: 14px; }

/* ---------- rezerwacja wizyty (wulkanizacja) ---------- */
.row.wide .col { flex: 1; }
.row.wide .card { min-width: 0; }
.prog { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 13px; color: var(--muted); font-weight: 500; }
.prog i { width: 18px; height: 4px; border-radius: 2px; background: var(--line); }
.prog i.on { background: var(--green); }
.prog span { margin-left: 4px; }

.vehicles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vehicle {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 104px; padding: 12px 8px; border-radius: 16px; border: 1.5px solid var(--line);
  font-weight: 600; font-size: 14.5px; line-height: 1.2; text-align: center;
}
.vicon { width: 72px; height: 40px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vicon .vi-wheel { fill: var(--card); }
.vicon .vi-hub { fill: var(--green); stroke: none; }

.rims { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rim {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 58px; border-radius: 14px; border: 1.5px solid var(--line);
}
.rim b { font-size: 21px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.rim small { font-size: 12px; color: var(--muted); margin-top: 3px; }
.rim.unknown { grid-column: 1 / -1; min-height: 46px; font-weight: 600; }

.vehicle:not(:disabled):active, .rim:not(:disabled):active, .day:not(:disabled):active, .time:not(:disabled):active { background: var(--surface); }
.vehicle.picked, .rim.picked, .day.picked, .time.picked { background: var(--green); border-color: var(--green); color: var(--ink); }
.vehicle.picked .vicon .vi-wheel { fill: var(--green); }
.vehicle.picked .vicon .vi-hub { fill: var(--ink); }
.rim.picked small, .day.picked .day-st { color: var(--ink); }
.card.locked :is(.vehicle, .rim, .day, .time):not(.picked) { opacity: .45; }

.days {
  display: flex; gap: 8px; overflow-x: auto; margin: 0 -14px; padding: 2px 14px 10px;
  scroll-snap-type: x proximity; scroll-padding: 0 14px; scrollbar-width: none; overscroll-behavior-x: contain;
}
.days::-webkit-scrollbar { display: none; }
.day {
  flex: 0 0 62px; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 8px 2px 7px; border-radius: 14px; border: 1.5px solid var(--line);
}
.day-wd { font-size: 12px; font-weight: 600; opacity: .7; text-transform: uppercase; letter-spacing: .03em; }
.day-num { font-size: 21px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.day-mon { font-size: 12px; opacity: .7; }
.day-st { margin-top: 4px; font-size: 11px; font-weight: 600; color: #0E9A67; white-space: nowrap; }
.day:disabled { border-style: dashed; cursor: default; }
.day:disabled .day-num, .day:disabled .day-st { color: var(--muted); font-weight: 500; }
.card:not(.locked) .day:disabled { opacity: .7; }
@media (prefers-color-scheme: dark) { .day-st { color: var(--green); } }

.day-label { font-weight: 600; margin: 6px 0 10px; }
.day-label::first-letter { text-transform: uppercase; }
.tgroup + .tgroup { margin-top: 12px; }
.tgroup-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.time { min-height: 44px; border-radius: 12px; border: 1.5px solid var(--line); font-weight: 600; font-variant-numeric: tabular-nums; }
.time:disabled { border-style: dashed; color: var(--muted); text-decoration: line-through; font-weight: 400; cursor: default; }
.empty { padding: 18px 12px; text-align: center; color: var(--muted); border: 1.5px dashed var(--line); border-radius: 14px; }
.empty b { display: block; color: var(--text); font-weight: 600; }

.ticket { display: flex; align-items: center; gap: 14px; border-radius: 16px; background: var(--surface); padding: 10px; margin-bottom: 14px; }
.ticket-when { flex: none; background: var(--green); color: var(--ink); border-radius: 12px; padding: 10px 12px; text-align: center; min-width: 84px; }
.ticket-when b { display: block; font-size: 22px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.ticket-when span { font-size: 12.5px; font-weight: 500; }
.ticket-meta { font-size: 14px; min-width: 0; }
.ticket-meta b { font-weight: 600; }
.ticket-meta div + div { margin-top: 2px; }
.ticket-meta span { color: var(--muted); }
.ticket .link { margin-top: 6px; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; min-height: 28px; }

.field { margin-bottom: 10px; }
.field label { display: block; font-size: 13.5px; font-weight: 500; color: var(--muted); margin: 0 2px 4px; }
.field input {
  width: 100%; height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg);
  padding: 0 12px; outline: 0; font-size: 16px;
}
.field input:focus { border-color: var(--green); }
.field input.plate { text-transform: uppercase; font-weight: 600; letter-spacing: .04em; }
.field input.plate::placeholder { text-transform: none; font-weight: 400; letter-spacing: 0; }
.err { display: block; font-size: 13px; color: #E5484D; margin: 4px 2px 0; }
.err:empty { display: none; }
.field.bad input, .field.bad .prefix-in { border-color: #E5484D; }
.prefix-in { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); }
.prefix-in:focus-within { border-color: var(--green); }
.prefix-in span { padding: 0 2px 0 12px; color: var(--muted); font-weight: 500; }
.field .prefix-in input { border: 0; height: 43px; background: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; padding: 6px 2px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--green); }
.check a { font-weight: 500; text-underline-offset: 2px; }
.card.locked .field, .card.locked .check { opacity: .6; }

.done-when { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface); font-size: 14.5px; }
.done-when b { font-weight: 600; }
.done-when span { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; }

/* ---------- dół: podpowiedzi + pole pisania ---------- */
.bottom { flex: none; background: var(--bg); }
.sugg {
  display: flex; gap: 8px; overflow-x: auto; padding: 8px 14px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.sugg::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 40px; padding: 0 15px; border-radius: 999px;
  border: 1.5px solid var(--line); font-weight: 500; font-size: 15px; white-space: nowrap;
}
.chip:active { background: var(--surface); }
.chip.accent { border-color: var(--green); }

.composer { display: flex; gap: 8px; align-items: center; padding: 4px 12px 8px; }
.composer input {
  flex: 1; min-width: 0; height: 50px; border-radius: 25px;
  border: 1.5px solid transparent; background: var(--surface);
  padding: 0 18px; outline: 0; font-size: 16px;
}
.composer input:focus { border-color: var(--green); background: var(--bg); }
.composer input::placeholder { color: var(--muted); }
.send {
  width: 50px; height: 50px; border-radius: 50%; flex: none;
  background: var(--green); color: var(--ink); display: grid; place-items: center;
  transition: opacity .15s, transform .1s;
}
.send svg { width: 22px; height: 22px; }
.send:active { transform: scale(.94); }
.send:disabled { opacity: .4; cursor: default; }
.fine {
  text-align: center; font-size: 12.5px; color: var(--muted);
  padding: 0 14px calc(8px + env(safe-area-inset-bottom));
}
.fine a { font-weight: 600; text-underline-offset: 2px; }

/* ---------- arkusz z informacjami ---------- */
.backdrop {
  position: absolute; inset: 0; background: rgba(6, 11, 19, .45);
  opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 5;
}
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6;
  background: var(--bg); border-radius: 26px 26px 0 0;
  padding: 10px 18px calc(18px + env(safe-area-inset-bottom));
  transform: translateY(105%); transition: transform .25s ease-out; visibility: hidden;
}
.app.sheet-open .backdrop { opacity: 1; pointer-events: auto; }
.app.sheet-open .sheet { transform: none; visibility: visible; }
.grabber { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 14px; }
.sheet h2 { font-size: 20px; font-weight: 600; margin: 0 0 12px; }
.sheet .info { list-style: none; margin: 0 0 16px; padding: 0; }
.sheet .info li { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.sheet .info li:first-child { border-top: 0; }
.sheet .info svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.sheet .info a { font-weight: 500; }
.sheet .powered {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface);
  text-decoration: none; font-size: 14.5px;
}
.sheet .powered b { font-weight: 600; display: block; }
.sheet .powered span { color: var(--muted); }
.sheet .powered svg { width: 18px; height: 18px; flex: none; }

.toast {
  position: absolute; left: 50%; bottom: 150px; transform: translate(-50%, 12px);
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 14px;
  font-size: 14.5px; max-width: calc(100% - 40px); text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 7;
  border: 1px solid rgba(255, 255, 255, .12);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- avatar Airy ---------- */
.ava { display: block; border-radius: 23.5%; }
.ava .f-eyes, .ava .f-typing, .ava .f-happy { display: none; }
.ava--eyes .f-eyes, .ava--typing .f-typing, .ava--happy .f-happy { display: inline; }
.ava .f-eyes rect { transform-box: fill-box; transform-origin: center; animation: blink 4.5s infinite; }
.ava .f-typing circle { transform-box: fill-box; animation: bounce 1s infinite ease-in-out; }
.ava .f-typing circle:nth-child(2) { animation-delay: .15s; }
.ava .f-typing circle:nth-child(3) { animation-delay: .3s; }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-3px); } }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.15); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- logo firmy w avatarze ---------- */
.co-ava { overflow: hidden; }
.co-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hello .co-logo { display: block; height: 52px; width: auto; max-width: 260px; margin: 0 auto 14px; }

/* ---------- treść odpowiedzi modelu ---------- */
.bubble p { margin: 0; }
.bubble p + p, .bubble p + ul, .bubble ul + p { margin-top: 8px; }
.bubble ul { margin: 0; padding-left: 20px; }
.bubble li + li { margin-top: 2px; }
.bubble a { text-underline-offset: 2px; }
.bubble.error { background: transparent; border: 1.5px dashed var(--line); color: var(--muted); }

/* ---------- propozycje terminów ---------- */
.props { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.prop {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  min-height: 58px; padding: 9px 12px; border-radius: 14px; border: 1.5px solid var(--line); text-align: left;
}
.prop b { font-size: 19px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.prop span { font-size: 13.5px; color: var(--muted); }
.prop:not(:disabled):active { background: var(--surface); }
.prop.picked { background: var(--green); border-color: var(--green); color: var(--ink); }
.prop.picked span { color: var(--ink); }
.card.locked .prop:not(.picked) { opacity: .45; }
.card .more { margin-top: 10px; font-size: 14.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; min-height: 36px; }
.times-loading { padding: 18px 0; text-align: center; color: var(--muted); }
.form-err { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(229, 72, 77, .1); color: #C4282D; font-size: 14px; }
.form-err:empty { display: none; }
/* Blokada terminu na czas formularza: licznik w ostatniej minucie i stan po wygaśnięciu */
.hold-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(240, 166, 40, .14); color: #8A5A00; font-size: 14px; font-weight: 500; }
.hold-note[hidden] { display: none; }
.hold-note p { margin: 0; }
.hold-note .btn { margin-top: 10px; width: 100%; }
@media (prefers-color-scheme: dark) { .hold-note { color: #F5C46B; } }
@media (prefers-color-scheme: dark) { .form-err { color: #FF8589; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- strona główna (zaślepka) ---------- */
.home { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; text-align: center; background: var(--bg); }
.home .wordmark { height: 64px; margin: 0 auto 22px; }
.home h1 { font-size: 24px; font-weight: 600; margin: 0 0 8px; letter-spacing: -.01em; }
.home p { color: var(--muted); margin: 0 auto; max-width: 34ch; }
.home .ava { margin: 0 auto 18px; }

/* lista chętnych przed startem – do usunięcia po wysyłce */
.waitlist { margin: 32px auto 0; max-width: 440px; padding: 24px 20px 18px; border-radius: 22px; background: var(--card); border: 1.5px solid var(--line); text-align: left; }
.waitlist h2 { font-size: 20px; font-weight: 600; margin: 12px 0 6px; letter-spacing: -.01em; }
.home .waitlist p { margin: 0 0 14px; max-width: none; }
.wl-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--green) 18%, transparent); font-size: 13.5px; font-weight: 600; }
.wl-row { display: flex; gap: 8px; margin-bottom: 6px; }
.wl-row input { flex: 1; min-width: 0; height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); padding: 0 12px; outline: 0; font-size: 16px; }
.wl-row input:focus { border-color: var(--green); }
.wl-row .btn { min-height: 46px; }
.wl-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.home .waitlist .wl-err { color: #E5484D; font-size: 14px; margin: 4px 2px 0; }
.wl-privacy { margin-top: 10px; font-size: 13px; color: var(--muted); }
.wl-privacy summary { cursor: pointer; padding: 4px 2px; }
.home .wl-privacy p { margin: 6px 2px 0; font-size: 13px; line-height: 1.5; }
@media (max-width: 420px) { .wl-row { flex-direction: column; } .wl-row input { flex: none; } }

/* powrót do rozpoczętej rezerwacji po pytaniu w trakcie */
.back-to-booking { margin-top: 2px; min-height: 38px; font-size: 14.5px; }
.back-to-booking svg { width: 16px; height: 16px; }

/* podsumowanie wybranej karty w przywróconej rozmowie */
.card-sum { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1.5px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 14px; animation: rise .2s ease-out both; }
.card-sum svg { flex: none; width: 14px; height: 14px; color: var(--green); }

/* ---------- karta dojazdu (pokaz_dojazd) ---------- */
.card.loc { padding: 0; overflow: hidden; }
.loc-map { position: relative; }
.loc-map > a:first-child { display: block; }
.loc-map img { display: block; width: 100%; height: auto; aspect-ratio: 20 / 9; object-fit: cover; background: var(--surface); }
.loc-attr { position: absolute; right: 6px; bottom: 6px; padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .85); color: #333; font-size: 11px; text-decoration: none; }
.loc-info { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 0; }
.loc-info b { font-size: 16px; font-weight: 600; }
.loc-info > span { color: var(--muted); font-size: 14.5px; }
.loc-note { display: flex; gap: 6px; align-items: flex-start; margin: 8px 0 0; font-size: 14.5px; }
.loc-note svg { flex: none; width: 17px; height: 17px; margin-top: 2px; color: var(--muted); }
.card.loc .actions { margin: 14px 0 0; padding: 0 14px 14px; }
.card .actions .btn.icon { flex: none; width: 44px; padding: 0; }
@media (prefers-color-scheme: dark) { .loc-map img { filter: brightness(.9); } }

/* ---------- wybór usługi (firmy z listą usług zamiast pojazdu i felg) ---------- */
.svcs { display: grid; gap: 8px; }
.svc {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  min-height: 56px; padding: 10px 14px; border-radius: 14px; border: 1.5px solid var(--line); text-align: left;
}
.svc b { font-weight: 600; font-size: 15.5px; line-height: 1.25; }
.svc span { font-size: 13.5px; color: var(--muted); }
.svc:not(:disabled):active { background: var(--surface); }
.svc.picked { background: var(--green); border-color: var(--green); color: var(--ink); }
.svc.picked span { color: var(--ink); }
.card.locked .svc:not(.picked) { opacity: .45; }

/* ---------- karta z pozycjami menu (pokaz_menu) ---------- */
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li { padding: 10px 0; border-top: 1px solid var(--line); }
.menu-list li:first-child { border-top: 0; padding-top: 0; }
.menu-top { display: flex; align-items: baseline; gap: 6px; }
.menu-top b { font-weight: 600; font-size: 15.5px; }
.menu-hot { display: inline-flex; gap: 1px; color: #E5484D; align-self: center; }
.menu-hot svg { width: 14px; height: 14px; }
.menu-price { margin-left: auto; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.menu-list p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.menu-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; }
.menu-tags:empty { display: none; }
.menu-tags .tag { font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: rgba(22, 214, 143, .16); color: #0B7A52; }
.menu-tags small { font-size: 12.5px; color: var(--muted); }
@media (prefers-color-scheme: dark) { .menu-tags .tag { color: var(--green); } }

/* ---------- demo (/demo): drobne dopiski w czacie ---------- */
.demo-hello { margin: 14px auto 0 !important; padding: 8px 12px; max-width: 34ch; border-radius: 12px; background: var(--surface); font-size: 14px; }
.demo-form-note { margin: 4px 0 0; padding: 9px 12px; border-radius: 12px; background: var(--surface); color: var(--muted); font-size: 13.5px; }
.loc-demo { margin: 8px 0 14px; font-size: 13px; color: var(--muted); }
.demo-done b { line-height: 1.25; }

/* ---------- „Do kogo?” – wybór osoby (np. barber) ---------- */
.people { display: grid; gap: 8px; }
.person {
  display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
  min-height: 62px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--line); text-align: left;
}
.person i {
  grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); font-style: normal; font-weight: 700;
}
.person b { font-weight: 600; font-size: 15.5px; line-height: 1.2; }
.person span { font-size: 13.5px; line-height: 1.3; color: var(--muted); }
.person small { font-size: 12.5px; opacity: .85; }
.person.any { grid-template-columns: 1fr; min-height: 52px; }
.person:not(:disabled):active { background: var(--surface); }
.person.picked { background: var(--green); border-color: var(--green); color: var(--ink); }
.person.picked span { color: var(--ink); }
.person.picked i { background: rgba(255, 255, 255, .5); }
.card.locked .person:not(.picked) { opacity: .45; }
