/* KOSMYK — rezerwacje online (koncept Studio WWW). Mobile-first od 320 px. */
:root {
  --brand: #5B2EFF; --brand-d: #4519E6; --brand-ink: #3A12B8; --soft: #EEE9FF; --soft-2: #F5F2FF;
  --ink: #16122B; --ink-2: #2B2545; --muted: #575170; --line: #E3DEF0; --line-2: #CFC8E3;
  --bg: #F7F6FB; --card: #fff; --sun: #FFD23F; --sun-soft: #FFF3C4; --mint: #BDF0D6; --mint-d: #0B6B45; --sky: #BFE3FF;
  --danger: #B4233A; --danger-soft: #FDECEF; --ok: #0B6B45; --ok-soft: #E3F7EC;
  --r: 18px; --r-lg: 26px; --r-sm: 12px;
  --sh: 0 1px 2px rgba(22,18,43,.06), 0 8px 24px -8px rgba(22,18,43,.14);
  --sh-lg: 0 2px 6px rgba(22,18,43,.08), 0 30px 60px -20px rgba(40,14,140,.35);
  --f-ui: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-d: "Unbounded", "Plus Jakarta Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1);
  --hdr: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 16px); scroll-padding-bottom: 112px; }
body { margin: 0; font: 400 16px/1.55 var(--f-ui); color: var(--ink); background: var(--bg); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-ink); text-underline-offset: .18em; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nowrap { white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .875rem; color: var(--muted); }
.no-js .js-only { display: none !important; }
.js .nojs-msg { display: none; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
main:focus, [tabindex="-1"]:focus { outline: none; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 32px); }
.wrap.wide { width: min(1320px, 100% - 24px); }

/* ---------- przyciski ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center; transition: background-color .18s, color .18s, border-color .18s, transform .18s var(--ease), box-shadow .18s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 44px; padding: 9px 16px; font-size: .9375rem; }
.btn-lg { min-height: 56px; padding: 14px 26px; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -6px rgba(91,46,255,.7); }
.btn-primary:hover { background: var(--brand-d); }
.btn-primary[aria-disabled="true"] { background: var(--soft); color: var(--brand-ink); box-shadow: none; }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #FFDF6E; }
.btn-ghost-inv { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost-inv:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-soft { background: var(--soft); color: var(--brand-ink); }
.btn-soft:hover { background: #E2DAFF; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #961B2F; }
.btn-danger-soft { background: var(--danger-soft); color: var(--danger); }
.btn-danger-soft:hover { background: #F9D7DD; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--card); font-size: 1.5rem; line-height: 1; color: var(--ink); }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn[aria-disabled="true"] { opacity: .4; }
.tag { display: inline-block; padding: 2px 7px; border-radius: 6px; background: var(--sun); color: var(--ink); font-size: .6875rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; vertical-align: .15em; }
.tag-lg { font-size: .75rem; padding: 3px 9px; vertical-align: .35em; }
.badge { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; background: var(--sun-soft); color: #5C4400; font-size: .8125rem; font-weight: 700; }
.chip { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--brand-ink); font-size: .8125rem; font-weight: 700; }
.select-sm { min-height: 40px; padding: 6px 34px 6px 12px; border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2316122B' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center; -webkit-appearance: none; appearance: none; font-weight: 600; font-size: .9375rem; max-width: 100%; }

/* ---------- pasek demo + nagłówek ---------- */
.demo-bar { background: var(--ink); color: #E9E5F7; font-size: .8125rem; line-height: 1.4; }
.demo-bar p { width: min(1160px, 100% - 32px); margin-inline: auto; padding: 8px 0; }
.demo-bar strong { color: var(--sun); }
.top { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.92); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.top-in { width: min(1160px, 100% - 24px); margin-inline: auto; height: var(--hdr); display: flex; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; border-radius: 999px; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-word { font-family: var(--f-d); font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; }
.nav { display: none; }
.nav a { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9375rem; }
.nav a:hover { background: var(--soft-2); }
.nav a[aria-current="page"] { background: var(--soft); color: var(--brand-ink); }
.menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-2); background: #fff; }
.burger { display: grid; gap: 5px; width: 18px; }
.burger i { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s var(--ease); }
.menu-open .burger i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .burger i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.menu-open .nav { display: block; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--sh); padding: 8px 12px 14px; }
.menu-open .nav ul { display: grid; gap: 2px; }
.menu-open .nav a { min-height: 48px; font-size: 1rem; }
@media (max-width: 359px) { .top-cta { padding-inline: 12px; } .brand-word { font-size: 1.1rem; } .brand-mark { width: 32px; height: 32px; } }
@media (min-width: 960px) {
  .nav { display: block; } .nav ul { display: flex; gap: 2px; }
  .menu-btn { display: none; }
  .brand { margin-right: 18px; } .nav { margin-right: auto; }
}

/* ---------- typografia ---------- */
.h1 { font-family: var(--f-d); font-weight: 700; font-size: clamp(2rem, 7.4vw, 3.9rem); line-height: 1.04; letter-spacing: -.035em; }
.h2 { font-family: var(--f-d); font-weight: 700; font-size: clamp(1.5rem, 4.6vw, 2.35rem); line-height: 1.1; letter-spacing: -.03em; }
.h3 { font-family: var(--f-d); font-weight: 600; font-size: 1.125rem; line-height: 1.25; letter-spacing: -.02em; }
.h-view { font-family: var(--f-d); font-weight: 700; font-size: clamp(1.45rem, 5vw, 2.2rem); line-height: 1.1; letter-spacing: -.03em; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; font-size: .8125rem; font-weight: 700; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }
.eyebrow-dark { background: rgba(255,255,255,.1); }
.sec { padding: 64px 0; }
.sec-tint { background: #fff; border-block: 1px solid var(--line); }
.sec-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.sec-lead { margin-top: 12px; max-width: 62ch; color: var(--muted); font-size: 1.0625rem; }
@media (min-width: 760px) { .sec { padding: 96px 0; } }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--brand); color: #fff; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 85% 10%, #7B57FF 0, transparent 70%), radial-gradient(50% 60% at 0% 100%, #4A1CF0 0, transparent 70%); }
.hero-in { display: grid; gap: 40px; padding: 40px 0 64px; }
.hero-copy { display: grid; gap: 20px; justify-items: start; }
.hl { color: var(--sun); }
.lead { font-size: 1.0625rem; color: #EDE8FF; max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; }
.hero-ctas .btn { flex: 1 1 220px; }
.hero-points { display: grid; gap: 8px; font-size: .9375rem; font-weight: 600; color: #F1EDFF; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 20px; height: 20px; fill: none; stroke: var(--sun); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.hero-curls { position: absolute; left: 0; right: 0; bottom: -10px; width: 100%; height: 160px; z-index: -1; }
.hero-curls path { stroke: rgba(255,255,255,.12); stroke-width: 2; }
.hero-card { position: relative; }
.hero-stack { position: absolute; top: -22px; right: 18px; display: flex; }
.hero-stack svg { width: 48px; height: 48px; border-radius: 50%; border: 3px solid var(--brand); margin-left: -12px; background: #fff; }
.live { background: #fff; color: var(--ink); border-radius: var(--r-lg); box-shadow: var(--sh-lg); padding: 34px 18px 16px; }
.live-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; padding-right: 0; }
.live-title { font-family: var(--f-d); font-weight: 600; font-size: 1.0625rem; letter-spacing: -.02em; }
.live-body { min-height: 312px; }
.live-days { display: grid; }
.live-day { padding: 12px 0; border-bottom: 1px solid var(--line); }
.live-day:last-child { border-bottom: 0; }
.live-date { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; margin-bottom: 8px; }
.live-date span { font-size: .8125rem; color: var(--muted); }
.live-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot-chip { display: grid; place-items: center; min-height: 44px; border-radius: 12px; background: var(--soft); color: var(--brand-ink); font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; transition: background-color .15s, color .15s, transform .15s var(--ease); }
.slot-chip:hover { background: var(--brand); color: #fff; transform: translateY(-1px); }
.live-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: .8125rem; color: var(--muted); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #13A86A; box-shadow: 0 0 0 0 rgba(19,168,106,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(19,168,106,0); } 100% { box-shadow: 0 0 0 0 rgba(19,168,106,0); } }
.nojs-msg { padding: 12px 0; color: var(--muted); }
@media (min-width: 960px) {
  .hero-in { grid-template-columns: 1.12fr .88fr; align-items: center; gap: 56px; padding: 72px 0 104px; }
  .hero-ctas .btn { flex: 0 0 auto; }
  .hero-points { grid-auto-flow: column; justify-content: start; gap: 22px; }
  .live { padding: 26px 24px 18px; }
}

/* ---------- usługi ---------- */
.svc-grid { display: grid; gap: 14px; margin-top: 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.svc-card { display: grid; grid-template-rows: auto 1fr auto auto; gap: 8px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.svc-card:hover { transform: translateY(-2px); box-shadow: var(--sh); border-color: var(--line-2); }
.svc-name { font-weight: 800; font-size: 1.0625rem; }
.svc-desc { color: var(--muted); font-size: .9375rem; }
.svc-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.price { font-family: var(--f-d); font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; }
.svc-go { justify-self: start; margin-top: 6px; }

/* ---------- zespół ---------- */
.team { display: grid; gap: 14px; margin-top: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.person { display: grid; justify-items: start; gap: 6px; padding: 22px; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line); }
.avatar { width: 96px; height: 96px; margin-bottom: 8px; }
.person-name { font-family: var(--f-d); font-weight: 700; font-size: 1.375rem; letter-spacing: -.02em; }
.person-role { font-weight: 700; color: var(--brand-ink); }
.person-bio { color: var(--muted); }
.person-days { font-size: .875rem; font-weight: 600; margin-bottom: 8px; }

/* ---------- jak to działa ---------- */
.how { display: grid; gap: 12px; margin-top: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); counter-reset: h; }
.how li { padding: 20px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.how-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff; font-family: var(--f-d); font-weight: 700; margin-bottom: 14px; }
.how li:nth-child(2) .how-n { background: var(--sun); color: var(--ink); }
.how li:nth-child(3) .how-n { background: var(--mint); color: var(--ink); }
.how li:nth-child(4) .how-n { background: var(--sky); color: var(--ink); }
.how h3 { font-weight: 800; font-size: 1.0625rem; }
.how p { color: var(--muted); margin-top: 4px; }

/* ---------- dla właściciela ---------- */
.owner { display: grid; gap: 28px; padding: 28px 22px; border-radius: var(--r-lg); background: var(--ink); color: #fff; overflow: hidden; }
.owner-copy { display: grid; gap: 14px; justify-items: start; }
.owner-copy p:not(.eyebrow) { color: #D9D4EC; max-width: 46ch; }
.owner-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; height: 240px; padding: 12px; border-radius: var(--r); background: #221C3D; background-image: repeating-linear-gradient(to bottom, rgba(255,255,255,.07) 0 1px, transparent 1px 30px); }
.oa-col { position: relative; }
.oa-h { display: block; font-size: .75rem; font-weight: 700; color: #C9C2E6; margin-bottom: 4px; }
.oa-col i { position: absolute; left: 0; right: 0; top: calc(20px + var(--t) * 1.9px); height: calc(var(--h) * 1.9px); border-radius: 8px; background: #3E3566; border-left: 3px solid #8E79FF; }
.oa-col i.oa-me { background: var(--brand); border-color: var(--sun); }
.oa-col i.oa-ns { background: repeating-linear-gradient(135deg, #5A2433 0 6px, #4A1C29 6px 12px); border-color: #FF8A9B; }
.oa-col i.oa-blk { background: repeating-linear-gradient(135deg, #3A3554 0 6px, #2E2A45 6px 12px); border-color: #8A84A8; }
@media (min-width: 860px) { .owner { grid-template-columns: 1fr 1fr; align-items: center; padding: 48px; gap: 48px; } }

/* ---------- godziny ---------- */
.visit { display: grid; gap: 32px; }
.hours { width: 100%; max-width: 440px; margin-top: 24px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.hours th { font-weight: 600; }
.hours td { text-align: right; }
.hours tr.is-today { background: var(--soft); }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 800; color: var(--brand-ink); }
.today-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; background: var(--brand); color: #fff; font-size: .6875rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; vertical-align: .1em; }
.hours + .small { margin-top: 12px; }
.place { display: grid; gap: 16px; align-content: start; }
.map { width: 100%; height: auto; aspect-ratio: 16 / 10; }
.addr { font-style: normal; line-height: 1.7; }
@media (min-width: 860px) { .visit { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; margin-top: 24px; }
.faq details { border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; padding: 14px 18px; font-weight: 700; cursor: pointer; list-style: none; border-radius: var(--r); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--soft); color: var(--brand-ink); font-weight: 800; transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 18px 16px; color: var(--muted); }

/* ---------- przyklejony CTA na telefonie ---------- */
.mob-cta { visibility: hidden; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, rgba(247,246,251,.98) 70%, rgba(247,246,251,0)); transform: translateY(110%); transition: transform .3s var(--ease), visibility 0s linear .3s; pointer-events: none; }
.mob-cta.on { visibility: visible; transform: none; pointer-events: auto; transition: transform .3s var(--ease), visibility 0s; }
@media (min-width: 760px) { .mob-cta { display: none; } }

/* ---------- stopka ---------- */
.ftr { background: var(--ink); color: #D9D4EC; padding: 48px 0 calc(48px + env(safe-area-inset-bottom)); font-size: .9375rem; }
body[data-view="home"] .ftr { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
@media (min-width: 760px) { body[data-view="home"] .ftr { padding-bottom: 48px; } }
.ftr-in { display: grid; gap: 14px; }
.ftr-brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-d); font-weight: 700; font-size: 1.25rem; color: #fff; }
.ftr-note { max-width: 72ch; }
.ftr-note strong { color: var(--sun); }
.ftr a { color: #fff; font-weight: 700; }
.ftr-made { font-weight: 600; color: #fff; }
.ftr-tech { font-size: .8125rem; color: #B9B2D3; }

/* ================= Kreator ================= */
.view-book, .view-moje, .view-panel { padding: 20px 0 48px; min-height: 70vh; }
.back-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; text-decoration: none; color: var(--muted); }
.back-link:hover { color: var(--ink); }
.book-top { display: grid; gap: 14px; margin-bottom: 20px; }
.progress { position: relative; display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.progress::before, .progress::after { content: ""; position: absolute; top: 17px; left: calc(50% / var(--n, 5)); right: calc(50% / var(--n, 5)); height: 3px; border-radius: 3px; background: var(--line); }
.progress::after { right: auto; width: calc((100% - 100% / var(--n, 5)) * var(--pg, 0)); background: var(--brand); transition: width .45s var(--ease); }
.pg { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; }
.pg a, .pg-in { display: grid; justify-items: center; gap: 6px; text-decoration: none; color: var(--muted); font-size: .8125rem; font-weight: 700; border-radius: 10px; padding: 0 2px 2px; }
.pg-dot { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--card); border: 2px solid var(--line-2); color: var(--muted); font-weight: 800; font-size: .875rem; transition: background-color .25s, border-color .25s, color .25s, transform .25s var(--ease); }
.pg-dot svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.pg-done .pg-dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.pg-now .pg-dot { border-color: var(--brand); color: var(--brand-ink); background: var(--soft); transform: scale(1.08); box-shadow: 0 0 0 5px rgba(91,46,255,.14); }
.pg-now .pg-in { color: var(--ink); }
.pg a:hover .pg-dot { transform: scale(1.06); }
.pg-l { line-height: 1.2; }
@media (max-width: 559px) { .pg:not(.pg-now) .pg-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.book-grid { display: grid; gap: 24px; align-items: start; }
.book-main { min-width: 0; }
.book-side { display: none; }
@media (min-width: 1040px) {
  .book-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; }
  .book-side { display: block; position: sticky; top: calc(var(--hdr) + 20px); }
}
.steps { position: relative; overflow-x: clip; overflow-clip-margin: 8px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 16px; box-shadow: var(--sh); }
@media (min-width: 560px) { .step { padding: 28px; } }
.h-step { font-family: var(--f-d); font-weight: 700; font-size: clamp(1.3rem, 4.4vw, 1.75rem); line-height: 1.15; letter-spacing: -.03em; }
.h-step-n { display: block; margin-bottom: 6px; font-family: var(--f-ui); font-size: .8125rem; font-weight: 700; letter-spacing: .02em; color: var(--brand-ink); }
.step-hint { margin-top: 8px; color: var(--muted); }

/* opcje jako karty z natywnym radiem */
.opt-list { display: grid; gap: 10px; margin-top: 20px; }
@media (min-width: 720px) { .opt-list { grid-template-columns: 1fr 1fr; } }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.opt label { display: flex; align-items: center; gap: 12px; min-height: 76px; height: 100%; padding: 14px 14px 14px 16px; border-radius: var(--r); border: 2px solid var(--line); background: var(--card); transition: border-color .18s, background-color .18s, box-shadow .18s, transform .18s var(--ease); }
.opt input:hover + label { border-color: var(--line-2); background: var(--soft-2); }
.opt input:checked + label { border-color: var(--brand); background: var(--soft-2); box-shadow: 0 6px 18px -10px rgba(91,46,255,.6); }
.opt input:focus-visible + label { outline: 3px solid var(--brand); outline-offset: 3px; }
.opt input:active + label { transform: scale(.99); }
.opt-main { display: grid; gap: 2px; flex: 1; min-width: 0; }
.opt-name { font-weight: 800; }
.opt-desc { font-size: .875rem; color: var(--muted); }
.opt-side { display: grid; justify-items: end; gap: 2px; flex: none; text-align: right; }
.opt-price { font-family: var(--f-d); font-weight: 700; letter-spacing: -.02em; }
.opt-dur { font-size: .8125rem; color: var(--muted); font-weight: 600; }
.opt-check { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; transition: background-color .18s, border-color .18s; }
.opt input:checked + label .opt-check { background: var(--brand); border-color: var(--brand); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-size: 18px; background-repeat: no-repeat; background-position: center; }
.opt-av { width: 52px; height: 52px; flex: none; }
.opt-next { display: block; margin-top: 4px; font-weight: 700; color: var(--mint-d); }

/* kalendarz */
.alert { margin-top: 16px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--danger-soft); color: var(--danger); font-weight: 700; border: 1px solid #F3C2CB; }
.when { display: grid; gap: 22px; margin-top: 20px; }
@media (min-width: 760px) { .when { grid-template-columns: minmax(300px, 340px) minmax(0, 1fr); gap: 28px; align-items: start; } }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.cal-title { font-family: var(--f-d); font-weight: 600; font-size: 1.0625rem; letter-spacing: -.02em; }
.cal-grid { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; }
.cal-grid th { padding: 4px 0; font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.cal-grid td { padding: 0; text-align: center; }
.c-btn { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; min-height: 40px; max-height: 48px; border: 0; border-radius: 12px; background: transparent; font-weight: 700; font-size: .9375rem; font-variant-numeric: tabular-nums; color: var(--ink); transition: background-color .15s, color .15s, transform .15s var(--ease); }
.c-btn i { position: absolute; bottom: 5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; }
.c-many .c-btn { background: var(--soft-2); }
.c-many .c-btn i { background: #13A86A; }
.c-few .c-btn { background: var(--soft-2); }
.c-few .c-btn i { background: #E8A100; }
.c-none .c-btn { color: #6E6887; text-decoration: line-through; text-decoration-color: rgba(110,104,135,.5); }
.c-btn:hover { background: var(--soft); }
.is-today .c-btn { box-shadow: inset 0 0 0 2px var(--line-2); }
.is-sel .c-btn { background: var(--brand); color: #fff; box-shadow: 0 6px 14px -6px rgba(91,46,255,.8); text-decoration: none; }
.is-sel .c-btn i { background: #fff; }
.c-btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; z-index: 1; }
.is-sel .c-btn:focus-visible { outline-color: var(--ink); }
.cal-help { margin-top: 10px; font-size: .8125rem; color: var(--muted); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: .8125rem; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 8px; height: 8px; border-radius: 50%; }
.lg-many { background: #13A86A; } .lg-few { background: #E8A100; } .lg-none { background: #C4BED6; }
.slots-title { font-family: var(--f-d); font-weight: 600; font-size: 1.0625rem; letter-spacing: -.02em; margin-bottom: 12px; }
.slots-day { font-family: var(--f-ui); font-weight: 600; font-size: .9375rem; color: var(--muted); letter-spacing: 0; }
.slot-groups { display: grid; gap: 16px; }
.slot-gh { display: flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.slot-gh span { padding: 0 7px; border-radius: 999px; background: var(--soft); color: var(--brand-ink); letter-spacing: 0; }
.slot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.slot { position: relative; }
.slot input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; z-index: 1; }
.slot label { display: grid; place-items: center; min-height: 48px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); font-weight: 800; font-variant-numeric: tabular-nums; transition: border-color .15s, background-color .15s, color .15s, transform .15s var(--ease); }
.slot input:hover + label { border-color: var(--brand); color: var(--brand-ink); }
.slot input:checked + label { background: var(--brand); border-color: var(--brand); color: #fff; transform: scale(1.03); box-shadow: 0 6px 14px -6px rgba(91,46,255,.8); }
.slot input:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 2px; }
.slots-note { margin-top: 14px; font-size: .875rem; color: var(--muted); }
.empty { display: grid; justify-items: start; gap: 12px; padding: 20px; border-radius: var(--r); background: var(--soft-2); border: 1.5px dashed var(--line-2); }
.empty-t { font-weight: 800; }

/* formularz */
.form { display: grid; gap: 18px; margin-top: 20px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; }
.f-note { font-weight: 500; color: var(--muted); }
.field input:not([type="checkbox"]), .field textarea, .field select { width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line-2); background: #fff; font-size: 1rem; transition: border-color .15s, box-shadow .15s; }
.field select { -webkit-appearance: none; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2316122B' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 36px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(91,46,255,.18); }
.field input::placeholder { color: #77718E; }
.has-err input:not([type="checkbox"]), .has-err textarea { border-color: var(--danger); }
.f-err { color: var(--danger); font-size: .875rem; font-weight: 700; }
.f-err:empty { display: none; }
.f-err:not(:empty)::before { content: "! "; }
.f-count { font-size: .8125rem; color: var(--muted); }
.field-check { grid-template-columns: 28px 1fr; align-items: start; column-gap: 10px; padding: 14px; border-radius: 14px; background: var(--soft-2); }
.field-check input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--brand); }
.field-check label { font-weight: 600; font-size: .9375rem; }
.field-check .f-err { grid-column: 1 / -1; }
.has-err.field-check { box-shadow: inset 0 0 0 2px var(--danger); }
.err-sum { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--danger-soft); color: var(--danger); border: 1px solid #F3C2CB; }
.err-sum ul { margin-top: 6px; display: grid; gap: 4px; }
.err-sum a { color: var(--danger); font-weight: 800; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* podsumowanie */
.sum { display: grid; margin-top: 18px; }
.sum-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.sum-row:last-child { border-bottom: 0; }
.sum-row dt { grid-column: 1; font-size: .8125rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.sum-row dd { grid-column: 1; overflow-wrap: anywhere; }
.sum-row dd.sum-act { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin: 0; }
.sum-edit { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; font-weight: 700; text-decoration: none; background: var(--soft); }
.rules { display: flex; gap: 10px; margin-top: 16px; padding: 14px; border-radius: 14px; background: var(--sun-soft); font-size: .9375rem; }
.rules svg { flex: none; width: 20px; height: 20px; fill: none; stroke: #5C4400; stroke-width: 2; stroke-linecap: round; margin-top: 2px; }

/* dolny pasek kroków — przyklejony (kciuk) */
.step-nav { position: sticky; bottom: 0; z-index: 20; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "mini mini" "back next" "msg msg"; gap: 8px 10px; margin-top: 16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); margin-inline: -16px; background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(22,18,43,.35); }
.step-mini { grid-area: mini; min-width: 0; font-size: .875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.step-back { grid-area: back; padding-inline: 16px; }
.step-next { grid-area: next; min-height: 54px; font-size: 1.0625rem; }
.step-next[aria-disabled="true"] { background: var(--soft); color: var(--brand-ink); box-shadow: none; }
.step-back[hidden] + .step-mini + .step-next, .step-nav:has(.step-back[hidden]) .step-next { grid-column: 1 / -1; }
.next-msg { grid-area: msg; color: var(--danger); font-weight: 700; font-size: .875rem; }
.next-msg:empty { display: none; }
@media (min-width: 560px) {
  .step-nav { margin-inline: 0; border-radius: var(--r) var(--r) 0 0; border: 1px solid var(--line); border-bottom: 0; }
}
@media (min-width: 1040px) {
  .step-nav { position: static; grid-template-columns: auto 1fr auto; grid-template-areas: "back . next" "msg msg msg"; background: transparent; border: 0; box-shadow: none; padding: 18px 0 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .step-mini { display: none; }
  .step-next { min-width: 220px; }
  .step-nav:has(.step-back[hidden]) .step-next { grid-column: 3; }
}
.side-card { padding: 22px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh); }
.side-title { font-family: var(--f-d); font-weight: 600; font-size: 1.0625rem; margin-bottom: 8px; }
.side-list > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.side-list dt { font-size: .75rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.side-list dd { font-weight: 700; }
.side-sub { display: block; font-weight: 500; font-size: .875rem; color: var(--muted); }
.side-total { border-bottom: 0 !important; }
.side-total dd { font-family: var(--f-d); font-size: 1.5rem; letter-spacing: -.02em; }
.side-total .side-sub { font-family: var(--f-ui); font-size: .8125rem; }
.side-note { margin-top: 8px; font-size: .8125rem; color: var(--muted); }

/* potwierdzenie */
.step-done { text-align: left; }
.done-head { display: grid; justify-items: start; gap: 10px; }
.tick { width: 64px; height: 64px; }
.tick circle { fill: var(--ok-soft); stroke: var(--ok); stroke-width: 2.5; }
.tick path { fill: none; stroke: var(--ok); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 0; }
.tick.go circle { animation: pop .5s var(--ease) both; transform-origin: center; }
.tick.go path { animation: draw .55s .2s var(--ease) both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@keyframes draw { from { stroke-dashoffset: 40; } }
.done-sub { color: var(--muted); max-width: 52ch; }
.ticket { margin-top: 20px; border-radius: var(--r-lg); overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh); }
.tk-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; background: var(--brand); color: #fff; }
.tk-l { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #E2DAFF; }
.tk-code { font-family: var(--f-d); font-weight: 700; font-size: clamp(1.15rem, 6.2vw, 2rem); letter-spacing: .02em; white-space: nowrap; }
.tk-av { width: 56px; height: 56px; flex: none; border-radius: 50%; border: 3px solid rgba(255,255,255,.6); }
.tk-cut { position: relative; height: 0; border-top: 2px dashed var(--line-2); margin: 0 18px; }
.tk-cut::before, .tk-cut::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
.tk-cut::before { left: -30px; } .tk-cut::after { right: -30px; }
.tk-dl { display: grid; gap: 14px; padding: 18px 20px 20px; }
@media (min-width: 560px) { .tk-dl { grid-template-columns: 1fr 1fr; } }
.tk-dl dt { font-size: .75rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.done-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.done-actions .btn { flex: 1 1 160px; white-space: nowrap; }
.done-actions .btn:first-child { flex-basis: 100%; }
.muted-inv { font-weight: 500; opacity: .85; }
.remind { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.remind .small { margin-top: 6px; }
.tabs { display: inline-flex; gap: 4px; margin-top: 14px; padding: 4px; border-radius: 999px; background: var(--soft-2); border: 1px solid var(--line); }
.tabs button { min-height: 40px; padding: 0 18px; border-radius: 999px; border: 0; background: transparent; font-weight: 700; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--brand); color: #fff; }
.tabpanel { margin-top: 14px; border-radius: var(--r); }
.phone { max-width: 360px; padding: 16px; border-radius: 26px; background: #F1EFF7; border: 1px solid var(--line); }
.ph-from { font-size: .8125rem; font-weight: 800; color: var(--muted); text-align: center; margin-bottom: 10px; }
.bubble { position: relative; padding: 12px 14px; border-radius: 18px 18px 18px 6px; background: #fff; box-shadow: 0 1px 2px rgba(22,18,43,.1); font-size: .9375rem; overflow-wrap: anywhere; }
.ph-meta { margin-top: 8px; font-size: .75rem; color: var(--muted); }
.tabpanel .small { margin-top: 10px; max-width: 60ch; }
.mail { border-radius: var(--r); border: 1px solid var(--line); background: #fff; overflow: hidden; }
.mail-h { display: grid; gap: 4px; padding: 14px 16px; background: var(--soft-2); border-bottom: 1px solid var(--line); font-size: .875rem; }
.mail-h > div { display: grid; grid-template-columns: 56px 1fr; gap: 8px; }
.mail-h dt { color: var(--muted); font-weight: 700; }
.mail-h dd { overflow-wrap: anywhere; min-width: 0; }
.mail-b { display: grid; gap: 10px; padding: 16px; font-size: .9375rem; }

/* ================= Moje rezerwacje ================= */
.view-moje .h-view { margin-top: 6px; }
.lookup { grid-template-columns: 1fr; padding: 20px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh); margin-top: 20px; }
.lookup .btn { width: 100%; }
@media (min-width: 640px) { .lookup { grid-template-columns: 1fr 1fr auto; align-items: start; } .lookup .btn { width: auto; margin-top: 31px; min-height: 52px; } }
#l-code { text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
#l-code::placeholder { text-transform: none; letter-spacing: .06em; font-weight: 500; }
.found { margin-top: 24px; }
.found-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.found .ticket { margin-top: 14px; }
.found-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.found-actions .btn { flex: 1 1 180px; }
.ok-msg { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); font-weight: 700; }
.rule-msg { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--sun-soft); color: #5C4400; font-weight: 600; }
.st { display: inline-flex; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.st-ok { background: var(--ok-soft); color: var(--ok); }
.st-off { background: #EEECF3; color: #5A5570; }
.st-ns { background: var(--danger-soft); color: var(--danger); }
.st-past { background: var(--soft); color: var(--brand-ink); }
.local { margin-top: 36px; }
.local .small { margin-top: 4px; }
.local-list { display: grid; gap: 8px; margin-top: 14px; }
.local-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 12px; width: 100%; min-height: 56px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); text-align: left; }
.local-item:hover { border-color: var(--brand); }
.li-code { font-family: var(--f-d); font-weight: 600; font-size: .9375rem; letter-spacing: .02em; }
.li-when { font-size: .875rem; color: var(--muted); min-width: 0; }
@media (max-width: 519px) { .local-item { grid-template-columns: 1fr auto; } .li-when { grid-column: 1 / -1; grid-row: 2; } }

/* ================= Panel właściciela ================= */
.view-panel { background: #EFEDF6; }
.panel-top { display: grid; gap: 14px; }
.panel-sub { margin-top: 6px; color: var(--muted); max-width: 64ch; }
.panel-tools { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 860px) { .panel-top { grid-template-columns: 1fr auto; align-items: end; } }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 20px; padding: 12px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.datenav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1 1 280px; min-width: 0; }
.pdate { font-weight: 800; flex: 1 1 100%; order: 5; }
@media (min-width: 640px) { .pdate { flex: 1 1 auto; order: 0; margin-left: 6px; } }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--soft-2); border: 1px solid var(--line); }
.seg button { min-height: 40px; padding: 0 18px; border-radius: 999px; border: 0; background: transparent; font-weight: 700; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.pstaff { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .875rem; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { padding: 14px 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); min-width: 0; }
.stat-l { font-size: .75rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.stat-v { font-family: var(--f-d); font-weight: 700; font-size: clamp(1.3rem, 4.5vw, 1.75rem); letter-spacing: -.03em; margin-top: 4px; white-space: nowrap; }
.stat-s { font-size: .8125rem; color: var(--muted); }
.stat-bar { position: relative; overflow: hidden; }
.stat-bar::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: var(--v); background: var(--brand); border-radius: 0 4px 4px 0; transition: width .4s var(--ease); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 16px; font-size: .8125rem; color: var(--muted); font-weight: 600; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; }
.lg-b { background: #fff; border: 1px solid var(--line-2); border-left: 3px solid #8E79FF; }
.lg-me { background: var(--brand); }
.lg-ns { background: repeating-linear-gradient(135deg, #FBD9DF 0 3px, #F6C2CC 3px 6px); border: 1px solid #E799A7; }
.lg-blk { background: repeating-linear-gradient(135deg, #E3E0EC 0 3px, #D2CEDF 3px 6px); }
.lg-off { background: #E8E5F0; }
.sched-help { margin-top: 6px; }
.sched-scroll { margin-top: 10px; overflow-x: auto; overscroll-behavior-x: contain; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.sched-scroll:focus-visible { outline-offset: 2px; }
.sched { display: grid; grid-template-columns: 48px repeat(var(--cols, 3), minmax(118px, 1fr)); min-width: 100%; width: max-content; padding: 0 8px 12px 0; }
@media (min-width: 1000px) { .sched { width: auto; } }
.s-head { position: sticky; top: 0; z-index: 3; height: 60px; display: flex; align-items: center; gap: 8px; padding: 0 8px; background: #fff; border-bottom: 1px solid var(--line); }
.s-head strong { display: block; font-size: .9375rem; }
.s-head small { display: block; font-size: .75rem; color: var(--muted); font-weight: 600; }
.col-av { width: 34px; height: 34px; flex: none; }
.s-ruler .s-head { border-bottom-color: transparent; }
.s-ruler .s-body { position: relative; margin-top: 12px; }
.s-ruler span { position: absolute; right: 8px; transform: translateY(-50%); font-size: .75rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.s-col { min-width: 0; border-left: 1px solid var(--line); }
.s-col.is-today .s-head { background: var(--soft-2); }
.s-col.is-today .s-head strong { color: var(--brand-ink); }
.s-col .s-body { position: relative; margin-top: 12px; background-image: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 45px); cursor: cell; }
.s-off { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, #F1EFF6 0 6px, #E9E6F1 6px 12px); display: grid; place-items: center; cursor: default; }
.s-off span { padding: 4px 8px; border-radius: 8px; background: #fff; font-size: .75rem; font-weight: 700; color: var(--muted); text-align: center; margin: 0 6px; }
.s-now { position: absolute; left: 0; right: 0; height: 2px; background: #E5484D; z-index: 2; pointer-events: none; }
.s-now::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: #E5484D; }
.s-items { position: absolute; inset: 0; pointer-events: none; }
.bk { position: absolute; left: 4px; right: 4px; display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 4px 8px; overflow: hidden; border-radius: 10px; border: 1px solid var(--line-2); border-left: 4px solid #8E79FF; background: #fff; text-align: left; font-size: .75rem; line-height: 1.3; color: var(--ink); pointer-events: auto; box-shadow: 0 1px 2px rgba(22,18,43,.06); transition: transform .15s var(--ease), box-shadow .15s; }
.bk:hover { transform: translateY(-1px); box-shadow: var(--sh); z-index: 2; }
.bk-t { font-weight: 800; font-variant-numeric: tabular-nums; }
.bk-n { font-weight: 600; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-s { color: var(--muted); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-short { flex-direction: row; gap: 6px; align-items: center; padding-block: 2px; }
.bk-short .bk-s { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bk-me { background: var(--brand); border-color: var(--brand-d); border-left-color: var(--sun); color: #fff; }
.bk-me .bk-s { color: #E6DEFF; }
.bk-ns { background: repeating-linear-gradient(135deg, #FDEBEE 0 6px, #F9DCE2 6px 12px); border-color: #EBA6B2; border-left-color: var(--danger); color: #6D1020; }
.bk-ns .bk-n { text-decoration: line-through; }
.bk-ns .bk-s { color: #7D2232; }
.bk-blk { background: repeating-linear-gradient(135deg, #F1EFF6 0 6px, #E3E0EC 6px 12px); border-color: #C8C2D9; border-left-color: #6E6887; }
.is-off .s-body { cursor: default; }

/* okna dialogowe */
.dlg { width: min(460px, 100% - 24px); max-height: calc(100% - 24px); padding: 24px 20px 20px; border: 0; border-radius: var(--r-lg); background: #fff; color: var(--ink); box-shadow: 0 30px 80px -20px rgba(22,18,43,.5); }
.dlg-sm { width: min(400px, 100% - 24px); }
.dlg::backdrop { background: rgba(22,18,43,.5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.dlg[open] { animation: dlg-in .25s var(--ease); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.dlg-x { position: absolute; top: 12px; right: 12px; }
.dlg .h3 { padding-right: 52px; font-size: 1.25rem; }
.dlg p { margin-top: 10px; }
.dlg-dl { display: grid; margin-top: 14px; }
.dlg-dl > div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.dlg-dl dt { color: var(--muted); font-weight: 700; }
.dlg-dl dd { overflow-wrap: anywhere; min-width: 0; }
.dlg-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.dlg-actions .btn { flex: 1 1 160px; }
.dlg .form { margin-top: 12px; gap: 14px; }

/* ograniczony ruch */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .pulse { animation: none; }
}
@media (forced-colors: active) {
  .opt input:checked + label, .slot input:checked + label, .is-sel .c-btn { outline: 3px solid Highlight; }
}

/* --- dopracowanie mobile --- */
@media (max-width: 559px) {
  .person { grid-template-columns: 72px 1fr; column-gap: 16px; row-gap: 4px; padding: 18px; }
  .person > * { grid-column: 2; }
  .person .avatar { grid-column: 1; grid-row: 1 / span 3; width: 72px; height: 72px; margin: 0; }
  .person-name { font-size: 1.1875rem; }
  .person .btn { margin-top: 4px; }
  .how { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .how li { padding: 16px 14px; }
  .how-n { width: 34px; height: 34px; margin-bottom: 10px; }
  .demo-bar { font-size: .75rem; }
}
