@font-face { font-family: 'Cormorant'; src: url('fonts/cormorant.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }

:root {
  --bg: #F4EEE6;
  --bg-deep: #ECE3D6;
  --card: #FFFDF9;
  --line: #E6DCCD;
  --ink: #2F3436;
  --ink-2: #5F625F;
  --ink-3: #8D8A82;
  --sage: #7C9A86;
  --sage-d: #5E7D6A;
  --sage-l: #E3ECE5;
  --sand: #EADFCC;
  --rose: #B5584A;
  --rose-l: #F6E4DF;
  --amber: #B98A3E;
  --amber-l: #F7EBD3;
  --radius: 20px;
  --shadow: 0 6px 22px rgba(70, 55, 30, .08), 0 1px 3px rgba(70, 55, 30, .06);
  --shadow-lg: 0 18px 50px rgba(40, 35, 25, .22);
  --serif: 'Cormorant', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --nav-h: 72px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-touch-callout: none; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

.app { max-width: 560px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; position: relative; background: var(--bg); }
.main { padding: calc(env(safe-area-inset-top, 0px) + 22px) 18px calc(var(--nav-h) + var(--safe-b) + 96px); outline: none; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ----- nagłówki ----- */
.brand { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 19px; color: var(--sage-d); margin-bottom: 10px; letter-spacing: .01em; }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-d); font-weight: 600; }
.title { font-family: var(--serif); font-weight: 600; font-size: 38px; line-height: 1.05; letter-spacing: -.01em; margin-top: 4px; }
.subtitle { color: var(--ink-2); margin-top: 6px; }
.head { margin-bottom: 18px; }
.section-title { font-family: var(--serif); font-size: 24px; font-weight: 600; margin: 26px 2px 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.section-title small { font-family: var(--sans); font-size: 13px; color: var(--ink-3); font-weight: 500; }

/* ----- dolna nawigacja ----- */
.nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 560px; height: calc(var(--nav-h) + var(--safe-b)); padding: 8px 10px calc(var(--safe-b) + 6px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: rgba(255, 253, 249, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); z-index: 20; }
.nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 16px; color: var(--ink-3); font-size: 11.5px; font-weight: 600; letter-spacing: .02em; min-height: 54px; transition: background .2s, color .2s; }
.nav button svg { width: 25px; height: 25px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav button[aria-current="page"] { color: var(--sage-d); background: var(--sage-l); }

.fab { position: fixed; z-index: 21; right: max(18px, calc(50% - 280px + 18px)); bottom: calc(var(--nav-h) + var(--safe-b) + 16px); width: 62px; height: 62px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 26px rgba(47, 52, 54, .35); transition: transform .15s; }
.fab:active { transform: scale(.94); }
.fab svg { width: 28px; height: 28px; stroke: #F4EEE6; stroke-width: 2; fill: none; stroke-linecap: round; }
.fab[hidden] { display: none; }

/* ----- karty ----- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; border: 1px solid rgba(230, 220, 205, .6); }
.card + .card { margin-top: 12px; }
.stack > * + * { margin-top: 12px; }

.hero { background: linear-gradient(140deg, var(--sage-d), #6E8F7A 60%, #86A592); color: #fff; border-radius: 26px; padding: 20px; box-shadow: 0 14px 34px rgba(94, 125, 106, .35); position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, .09); }
.hero .eyebrow { color: rgba(255, 255, 255, .8); }
.hero .big { font-family: var(--serif); font-size: 32px; font-weight: 600; line-height: 1.1; margin-top: 4px; }
.hero .sub { opacity: .92; margin-top: 4px; }
.hero .chip-row { margin-top: 14px; }
.hero .btn-hero { background: rgba(255, 255, 255, .95); color: var(--sage-d); }

.banner { display: flex; gap: 12px; align-items: flex-start; background: var(--amber-l); border-radius: 18px; padding: 14px; border: 1px solid #EBD9B1; margin-top: 12px; font-size: 14.5px; }
.banner b { display: block; }
.banner .ico { font-size: 22px; line-height: 1; }
.banner .btn { margin-top: 8px; }
.banner.info { background: var(--sage-l); border-color: #CFDDD3; }

/* ----- segmenty ----- */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--bg-deep); border-radius: 16px; padding: 4px; gap: 4px; margin: 16px 0 4px; }
.seg button { min-height: 44px; border-radius: 13px; font-weight: 600; color: var(--ink-2); font-size: 15px; transition: all .2s; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 2px 8px rgba(70, 55, 30, .12); }

/* ----- przyciski ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 16px; font-weight: 650; font-size: 15.5px; background: var(--ink); color: #fff; transition: transform .12s, opacity .2s; text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn.sage { background: var(--sage-d); }
.btn.soft { background: var(--sage-l); color: var(--sage-d); }
.btn.ghost { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn.danger { background: var(--rose-l); color: var(--rose); }
.btn.small { min-height: 40px; padding: 0 14px; font-size: 14.5px; border-radius: 13px; }
.btn.block { display: flex; width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
#af-save[aria-disabled="true"] { pointer-events: auto; } /* klik pokazuje komunikat dlaczego nie można zapisać */
.btn svg, .ico-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-btn { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--sage-l); color: var(--sage-d); flex: none; }
.ico-btn.dark { background: var(--ink); color: #fff; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.grid2 > * { min-width: 0; }

/* ----- chipy ----- */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 15px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--line); font-size: 14.5px; font-weight: 550; color: var(--ink-2); transition: all .15s; }
.chip[aria-pressed="true"] { background: var(--sage-d); border-color: var(--sage-d); color: #fff; }
.chip.static { min-height: 30px; padding: 0 11px; font-size: 13px; background: var(--sage-l); border-color: transparent; color: var(--sage-d); cursor: default; }
.chip.warn { background: var(--amber-l); color: #8a6420; border-color: transparent; }
.chip.ok { background: var(--sage-l); color: var(--sage-d); border-color: transparent; }
.chip.cancel { background: var(--rose-l); color: var(--rose); border-color: transparent; }
.chip.slot { background: var(--card); border-color: var(--sage); color: var(--sage-d); font-weight: 650; }
.chip.slot:active { background: var(--sage-l); }
.chip.slot[aria-pressed="true"] { background: var(--sage-d); color: #fff; }
.chip .x { font-size: 18px; line-height: 1; opacity: .7; margin-right: -4px; }

/* ----- karta wizyty ----- */
.appt { display: grid; grid-template-columns: 62px 1fr; gap: 14px; padding: 14px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(230, 220, 205, .6); cursor: pointer; position: relative; }
.appt + .appt { margin-top: 12px; }
.appt .time { text-align: center; padding-top: 2px; }
.appt .time b { display: block; font-family: var(--serif); font-size: 26px; line-height: 1; font-weight: 700; }
.appt .time span { font-size: 12px; color: var(--ink-3); }
.appt .time::after { content: ''; display: block; width: 2px; height: 22px; background: var(--sage); border-radius: 2px; margin: 8px auto 0; opacity: .5; }
.appt h3 { font-size: 17px; font-weight: 650; line-height: 1.25; }
.appt .meta { color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.appt .note { color: var(--ink-3); font-size: 13.5px; margin-top: 4px; font-style: italic; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.appt .actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.appt.past { opacity: .62; }
.appt.now { border-color: var(--sage); box-shadow: 0 8px 26px rgba(94, 125, 106, .25); }
.appt.cancelled { opacity: .6; }
.appt.cancelled h3 { text-decoration: line-through; }
.appt .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.day-head { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 22px 2px 10px; display: flex; align-items: baseline; gap: 8px; }
.day-head small { font-family: var(--sans); font-size: 13px; color: var(--ink-3); font-weight: 500; }
.day-head.today { color: var(--sage-d); }

.empty { text-align: center; padding: 34px 20px; color: var(--ink-2); }
.empty .ill { font-size: 40px; margin-bottom: 8px; opacity: .85; }
.empty h3 { font-family: var(--serif); font-size: 24px; margin-bottom: 4px; color: var(--ink); }
.empty .btn { margin-top: 14px; }

/* ----- klienci ----- */
.search { position: relative; margin-bottom: 14px; }
.search input { width: 100%; height: 52px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--card); padding: 0 16px 0 46px; font-size: 16px; outline: none; box-shadow: var(--shadow); }
.search input:focus { border-color: var(--sage); }
.search svg { position: absolute; left: 15px; top: 15px; width: 22px; height: 22px; stroke: var(--ink-3); fill: none; stroke-width: 1.8; stroke-linecap: round; }
.client { display: flex; gap: 14px; align-items: center; padding: 12px 14px; background: var(--card); border-radius: 18px; box-shadow: var(--shadow); border: 1px solid rgba(230, 220, 205, .6); cursor: pointer; min-height: 72px; width: 100%; text-align: left; }
.client + .client { margin-top: 10px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(145deg, var(--sage), var(--sage-d)); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 20px; flex: none; }
.avatar.lg { width: 72px; height: 72px; font-size: 30px; }
.client h3 { font-size: 16.5px; font-weight: 650; }
.client p { font-size: 13.5px; color: var(--ink-2); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.client .count { font-size: 12.5px; color: var(--ink-3); }
.letter { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--sage-d); margin: 18px 4px 8px; }
.profile-top { text-align: center; padding: 6px 0 14px; }
.profile-top h2 { font-family: var(--serif); font-size: 30px; font-weight: 600; margin-top: 10px; line-height: 1.1; }
.profile-top .avatar { margin: 0 auto; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.note-item { background: #FAF6EE; border-radius: 16px; padding: 12px 14px; border: 1px solid var(--line); position: relative; }
.note-item + .note-item { margin-top: 10px; }
.note-item time { font-size: 12px; color: var(--sage-d); font-weight: 650; letter-spacing: .03em; }
.note-item p { white-space: pre-wrap; word-break: break-word; margin-top: 3px; }
.note-item .del { position: absolute; right: 8px; top: 6px; width: 36px; height: 36px; border-radius: 10px; color: var(--ink-3); display: grid; place-items: center; font-size: 22px; }
.mini-appt { display: flex; justify-content: space-between; gap: 10px; padding: 11px 2px; border-bottom: 1px solid var(--line); font-size: 15px; cursor: pointer; }
.mini-appt:last-child { border: 0; }
.mini-appt small { color: var(--ink-3); display: block; }

/* ----- kalendarz ----- */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head h2 { font-family: var(--serif); font-size: 27px; font-weight: 600; text-transform: capitalize; white-space: nowrap; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav button { width: 44px; height: 44px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); display: grid; place-items: center; font-size: 22px; color: var(--ink); }
.cal { background: var(--card); border-radius: 22px; padding: 12px 8px 10px; box-shadow: var(--shadow); border: 1px solid rgba(230, 220, 205, .6); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-wd { text-align: center; font-size: 12px; color: var(--ink-3); font-weight: 650; padding: 6px 0; letter-spacing: .04em; }
.cal-day { aspect-ratio: 1 / 1.08; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 16px; font-weight: 550; position: relative; min-height: 44px; }
.cal-day.out { color: #C4BDB0; }
.cal-day.off { color: var(--ink-3); background: rgba(236, 227, 214, .35); }
.cal-day.today { color: var(--sage-d); font-weight: 800; box-shadow: inset 0 0 0 1.5px var(--sage); }
.cal-day.sel { background: var(--ink); color: #fff; box-shadow: none; }
.cal-day .dots { display: flex; gap: 3px; height: 6px; }
.cal-day .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--sage-d); }
.cal-day.sel .dots i { background: #fff; }
.free-line { font-size: 14px; color: var(--ink-2); margin: 0 2px 12px; }
.free-line b { color: var(--sage-d); }

/* ----- formularze ----- */
.field { margin-bottom: 14px; }
.field > label, .label { display: block; font-size: 13px; font-weight: 650; color: var(--ink-2); margin: 0 2px 6px; letter-spacing: .02em; }
.input, select.input, textarea.input { width: 100%; min-height: 52px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; padding: 0 14px; font-size: 16px; outline: none; appearance: none; -webkit-appearance: none; }
textarea.input { padding: 12px 14px; min-height: 96px; resize: vertical; line-height: 1.45; }
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%238D8A82' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.input:focus { border-color: var(--sage); box-shadow: 0 0 0 4px rgba(124, 154, 134, .18); }
.input.bad { border-color: var(--rose); }
.hint { font-size: 13px; color: var(--ink-3); margin: 6px 2px 0; }
.err-text { color: var(--rose); font-size: 13.5px; margin: 6px 2px 0; font-weight: 550; }
.conflict { background: var(--rose-l); border: 1.5px solid #E7BFB6; border-radius: 18px; padding: 14px; margin-bottom: 14px; color: #6e2f26; animation: shake .35s; }
.conflict b { color: var(--rose); }
.conflict .chip-row { margin-top: 10px; }
.conflict p + p { margin-top: 8px; }
.okbox { background: var(--sage-l); border-radius: 18px; padding: 12px 14px; margin-bottom: 14px; font-size: 14.5px; color: #3c5a48; }
.warnbox { background: var(--amber-l); border-radius: 18px; padding: 12px 14px; margin-bottom: 14px; font-size: 14.5px; color: #77581f; }
.slots-box { margin-bottom: 14px; }
.slots-box .label { margin-bottom: 8px; }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }
.switch input { appearance: none; -webkit-appearance: none; width: 54px; height: 32px; border-radius: 999px; background: #D7CFC1; position: relative; transition: background .2s; flex: none; cursor: pointer; }
.switch input::after { content: ''; position: absolute; left: 3px; top: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch input:checked { background: var(--sage-d); }
.switch input:checked::after { transform: translateX(22px); }
.list-edit .item { display: flex; align-items: center; gap: 6px; min-height: 60px; padding: 5px 5px 5px 4px; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; }
.list-edit .item + .item { margin-top: 8px; }
.list-edit .type-name { flex: 1; min-width: 0; min-height: 50px; text-align: left; padding: 4px 10px; border-radius: 12px; font-weight: 550; font-size: 15.5px; line-height: 1.25; display: flex; flex-direction: column; justify-content: center; gap: 1px; }
.list-edit .type-name:active { background: var(--sage-l); }
.list-edit .type-name svg { width: 15px; height: 15px; stroke: var(--ink-3); fill: none; stroke-width: 1.8; vertical-align: -2px; margin-left: 4px; }
.list-edit .type-name small { color: var(--sage-d); font-size: 12.5px; font-weight: 600; }
.list-edit .mv { flex: none; width: 44px; height: 44px; border-radius: 13px; background: var(--sage-l); color: var(--sage-d); display: grid; place-items: center; }
.list-edit .mv svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.list-edit .mv:disabled { opacity: .3; }
.list-edit .mv.del { background: var(--rose-l); color: var(--rose); }
.set-card { margin-top: 14px; }
.set-card h3 { font-family: var(--serif); font-size: 24px; font-weight: 600; margin-bottom: 4px; }
.set-card > p { color: var(--ink-2); font-size: 14px; margin-bottom: 14px; }
.kv { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--ink-2); padding: 6px 2px; }

/* ----- arkusz (bottom sheet) ----- */
#sheet-root { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.backdrop { position: absolute; inset: 0; background: rgba(34, 32, 28, .45); opacity: 0; transition: opacity .25s; pointer-events: none; }
.sheet { position: absolute; left: 50%; bottom: 0; width: 100%; max-width: 560px; max-height: 94vh; max-height: 94dvh; background: var(--bg); border-radius: 28px 28px 0 0; transform: translate(-50%, 100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); pointer-events: none; }
#sheet-root.open { pointer-events: auto; }
#sheet-root.open .backdrop { opacity: 1; pointer-events: auto; }
#sheet-root.open .sheet { transform: translate(-50%, 0); pointer-events: auto; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 18px 6px 22px; }
.sheet-head h2 { font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1.1; }
.sheet-close { width: 44px; height: 44px; border-radius: 50%; background: var(--bg-deep); font-size: 22px; color: var(--ink-2); flex: none; }
.grab { width: 40px; height: 5px; border-radius: 3px; background: #D5CBBB; margin: 10px auto 0; }
.sheet-body { padding: 10px 20px 20px; overflow-y: auto; -webkit-overflow-scrolling: touch; flex: 1; }
.sheet-foot { padding: 12px 20px calc(14px + var(--safe-b)); border-top: 1px solid var(--line); display: flex; gap: 10px; background: var(--bg); }
.sheet-foot .btn { flex: 1; }
.sheet-foot .btn.ghost { flex: 0 0 auto; }

.dialog-wrap { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(34, 32, 28, .5); padding: 22px; animation: fade .2s; }
.dialog { background: var(--card); border-radius: 26px; padding: 24px; max-width: 380px; width: 100%; box-shadow: var(--shadow-lg); }
.dialog h3 { font-family: var(--serif); font-size: 26px; font-weight: 600; margin-bottom: 6px; }
.dialog p { color: var(--ink-2); }
.dialog .row { margin-top: 20px; }
.dialog .btn { flex: 1; }

.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 92px); transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 16px; font-size: 14.5px; font-weight: 550; opacity: 0; pointer-events: none; transition: all .25s; z-index: 90; max-width: calc(100% - 36px); text-align: center; box-shadow: var(--shadow-lg); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--rose); }

.menu-list { display: flex; flex-direction: column; gap: 8px; }
.menu-list .btn { justify-content: flex-start; }

@media (min-width: 700px) { body { background: #E9E0D2; } .app { box-shadow: 0 0 60px rgba(60, 45, 20, .12); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ----- status automatycznego SMS ----- */
.autobox { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border-radius: 18px; background: var(--bg-deep); font-size: 14.5px; color: var(--ink-2); }
.autobox b { color: var(--ink); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.autobox.ok { background: #E3EBE3; }
.autobox.warn { background: var(--amber-l); color: #77581f; }
.autobox.err { background: #F4DDD6; color: #8A3B2B; }

/* ----- WhatsApp: wyraźny zielony przycisk ----- */
.btn.wa { background: #25A55F; color: #fff; box-shadow: 0 4px 12px rgba(37, 165, 95, .28); }
.btn.wa svg { stroke: #fff; }
.hero .btn-hero.wa { background: #25A55F; color: #fff; }
.appt .actions .grow, .mini-appt .actions .grow { flex: 1 1 auto; }
.mini-appt.wrap { flex-wrap: wrap; }
.mini-appt .actions { flex: 1 1 100%; display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 4px; }

/* ----- baner aktualizacji ----- */
#upd-banner { position: fixed; left: 12px; right: 12px; top: calc(10px + env(safe-area-inset-top)); z-index: 90; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 18px; border-radius: 18px; background: var(--ink); color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); font-size: 15px; max-width: 540px; margin: 0 auto; }
#upd-banner .btn { background: #fff; color: var(--ink); }
