/* Świąteczne Losowanie – styl. Font: Nunito (OFL), hostowany lokalnie. */
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/nunito-normal-latin-ext.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/nunito-normal-latin.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; }
@font-face { font-family: 'Nunito'; font-style: italic; font-weight: 500 800; font-display: swap; src: url(/assets/fonts/nunito-italic-latin-ext.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Nunito'; font-style: italic; font-weight: 500 800; font-display: swap; src: url(/assets/fonts/nunito-italic-latin.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 {
    --brand: #b3202a;
    --brand-600: #96181f;
    --brand-50: #fbeaea;
    --brand-100: #f2cfd1;
    --cream: #faf4ea;
    --paper: #fffdf9;
    --ink: #2a1e1c;
    --head: #2f1d1b;
    --muted: #7a6d69;
    --line: #eadfd0;
    --line-strong: #d9c9b3;
    --berry: #b3202a;
    --berry-600: #96181f;
    --berry-50: #fbeaea;
    --gold: #d29b3a;
    --gold-600: #a9741a;
    --gold-50: #fbf0d8;
    --accent: #e0a63f;
    --green: #1f6b4c;
    --green-50: #e7f2ec;
    --green-100: #cde3d6;
    --ok: #1d6b4b;
    --radius: 14px;
    --radius-sm: 10px;
    --font-display: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --topbar-h: 60px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
    margin: 0;
    font: 16px/1.55 var(--font-body);
    color: var(--ink);
    background: var(--cream);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}
body.has-tabbar main { padding-bottom: 96px; }
main { flex: 1; padding-top: 24px; padding-bottom: 56px; }
.container { width: 100%; max-width: 1040px; margin: 0 auto; padding-left: 18px; padding-right: 18px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

h1, h2, h3 { margin: 0 0 .5em; color: var(--head); }
h1, h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.01em; line-height: 1.15; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.02rem; font-weight: 700; color: var(--ink); }
p { margin: 0 0 .9em; }
a { color: var(--brand-600); text-underline-offset: 3px; }
a:hover { color: var(--brand); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.inline { display: inline; }
.i { width: 1.15em; height: 1.15em; vertical-align: -.2em; flex: none; }
h1 .i, h2 .i { color: var(--gold-600); margin-right: .25em; vertical-align: -.12em; }

/* ---------- pasek górny ---------- */
.topbar { background: var(--brand); position: sticky; top: 0; z-index: 30; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.bar { display: flex; align-items: center; justify-content: space-between; height: var(--topbar-h); gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; min-width: 0; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.12rem; letter-spacing: -.01em; line-height: 1.1; white-space: nowrap; color: #fff; }
.brand-name em { font-style: normal; font-weight: 500; color: #ffd9a3; }
.logo-mark { display: block; flex: none; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a, .nav .linklike { color: rgba(255,255,255,.9); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; }
.nav a:hover, .nav .linklike:hover { color: #fff; background: rgba(255,255,255,.16); }
.nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.22); }
.nav .btn { padding: 8px 16px; color: var(--brand); background: #fff; }
.nav .btn:hover { background: #fff4e6; color: var(--brand-600); }
.linklike { background: none; border: 0; font: inherit; cursor: pointer; }
.nav-app { display: none; }
@media (min-width: 760px) { .nav-app { display: flex; } }

.nav .btn, .nav a, .nav .linklike { white-space: nowrap; }
@media (max-width: 480px) {
    .brand-name em { display: none; }
    .brand-name { font-size: 1.05rem; }
    .nav a, .nav .linklike { padding: 8px 10px; }
    .hero-art { min-height: 170px; }
    .hero-art::before { width: 190px; height: 190px; }
    .hero-art::after { width: 145px; height: 145px; }
    .hero-art .logo-mark { width: 92px; height: 92px; }
}
/* dolny pasek (telefon) */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--paper); border-top: 1px solid var(--line); display: flex; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 600; border-radius: 10px; position: relative; }
.tabbar a .i { width: 22px; height: 22px; }
.tabbar a[aria-current="page"] { color: var(--brand); }
.tabbar a[aria-current="page"] .i { color: var(--brand); }
.tabbar .dot { position: absolute; top: 2px; right: calc(50% - 20px); background: var(--berry); color: #fff; font-size: .65rem; min-width: 16px; height: 16px; border-radius: 8px; display: grid; place-items: center; padding: 0 4px; }
@media (min-width: 760px) { .tabbar { display: none; } body.has-tabbar main { padding-bottom: 56px; } }

/* ---------- karty ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.card.green { background: var(--green-50); border-color: var(--green-100); }
.card.gold { background: var(--gold-50); border-color: #ecdcaa; }
.card.red { background: var(--berry-50); border-color: #ecc4c8; }
.card > :last-child { margin-bottom: 0; }
.card h2 { margin-bottom: .6em; }
.grid { display: grid; gap: 18px; }
.grid > .card { margin-bottom: 0; }
@media (min-width: 760px) {
    .grid.two { grid-template-columns: 1fr 1fr; }
    .grid.three { grid-template-columns: repeat(3, 1fr); }
    h1 { font-size: 2.3rem; }
    h2 { font-size: 1.45rem; }
}
.icon-badge { width: 56px; height: 56px; border-radius: 50%; background: var(--gold-50); color: var(--gold-600); display: grid; place-items: center; margin: 0 auto 14px; border: 1px solid #ecdcaa; }
.icon-badge .i { width: 26px; height: 26px; }
.icon-badge.green { background: var(--green-50); color: var(--green); border-color: var(--green-100); }
.icon-badge.red { background: var(--berry-50); color: var(--berry); border-color: #ecc4c8; }

/* ---------- strona główna ---------- */
.hero-grid { display: grid; gap: 28px; align-items: center; padding: 8px 0 26px; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; padding: 28px 0 40px; } }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; color: var(--gold-600); margin-bottom: 12px; display: block; }
.hero-title { font-size: clamp(2.1rem, 6vw, 3.4rem); line-height: 1.04; margin-bottom: .4em; }
.hero-title em { font-style: italic; font-weight: 700; color: var(--berry); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 34em; }
.key-form { display: flex; gap: 8px; margin-top: 22px; max-width: 30em; }
.key-form input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.key-form input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; }
.hero-art { position: relative; display: grid; place-items: center; min-height: 260px; }
.hero-art::before, .hero-art::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid var(--line-strong); }
.hero-art::before { width: 290px; height: 290px; }
.hero-art::after { width: 220px; height: 220px; background: var(--paper); border-color: var(--line); }
.hero-art .logo-mark { position: relative; z-index: 1; filter: drop-shadow(0 12px 22px rgba(179, 32, 42, .25)); }
.countdown-line { margin-top: 26px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: .92rem; }
.countdown { display: inline-flex; align-items: baseline; gap: 18px; }
.countdown div { text-align: left; }
.countdown b { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: var(--brand); line-height: 1; margin-right: 4px; font-variant-numeric: tabular-nums; }
.countdown small { color: var(--muted); font-size: .8rem; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(5, 1fr); gap: 20px; } }
.steps li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; align-content: start; font-size: .95rem; }
@media (min-width: 860px) { .steps li { grid-template-columns: 1fr; } }
.steps li::before { counter-increment: s; content: counter(s); font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold-600); display: grid; place-items: center; }
.steps { counter-reset: s; }
.steps strong { display: block; color: var(--brand); }

/* ---------- przyciski ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 12px; padding: 11px 20px; min-height: 44px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; text-align: center; background: var(--brand-50); color: var(--brand); transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { background: var(--brand-100); color: var(--brand); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn .i { width: 1.1em; height: 1.1em; }
.btn-primary, .btn-green { background: var(--brand); color: #fff; }
.btn-primary:hover, .btn-green:hover { background: var(--brand-600); color: #fff; }
.btn-accent { background: var(--accent); color: #2b1a05; }
.btn-accent:hover { background: #ebb654; color: #2b1a05; }
.btn-gold { background: var(--gold); color: #2b1f05; }
.btn-gold:hover { background: #d6a54e; color: #2b1f05; }
.btn-danger { background: transparent; color: var(--berry); border-color: #dfb4b8; }
.btn-danger:hover { background: var(--berry-50); color: var(--berry-600); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--paper); border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 6px 14px; min-height: 36px; font-size: .9rem; border-radius: 10px; }
.btn-block { display: flex; width: 100%; }
.btn-xl { font-size: 1.15rem; padding: 16px 30px; min-height: 56px; border-radius: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- formularze ---------- */
label { display: block; font-weight: 600; font-size: .92rem; margin: 16px 0 6px; color: var(--ink); }
.field-inline { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; }
.field-inline label { margin: 0; font-weight: 500; font-size: .93rem; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], input[type=number], input[type=url], select, textarea {
    width: 100%; padding: 12px 14px; min-height: 46px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font: inherit; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
textarea { line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(179, 32, 42, .18); }
input::placeholder, textarea::placeholder { color: #9aa39d; }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; min-height: 0; accent-color: var(--brand); flex: none; margin-top: 2px; }
.hint { font-size: .85rem; color: var(--muted); margin-top: 5px; }
.form-row { display: grid; gap: 0 16px; }
@media (min-width: 760px) { .form-row.two { grid-template-columns: 1fr 1fr; } .form-row.three { grid-template-columns: repeat(3, 1fr); } }
details > summary { cursor: pointer; font-weight: 700; color: var(--brand); padding: 6px 0; list-style: none; display: flex; align-items: center; gap: 8px; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-left: auto; margin-top: -4px; transition: transform .15s; }
details[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
details[open] > summary { margin-bottom: 10px; }
.key { font: 700 1rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; background: var(--gold-50); border: 1px dashed var(--gold); padding: 6px 10px; border-radius: 8px; display: inline-block; color: var(--ink); }

/* ---------- komunikaty ---------- */
.flashes { display: grid; gap: 10px; margin-bottom: 18px; }
.flash { display: flex; gap: 12px; align-items: flex-start; border-radius: 12px; padding: 13px 14px; border: 1px solid; font-size: .96rem; transition: opacity .4s, transform .4s; }
.flash > .i { margin-top: 2px; }
.flash .flash-text { flex: 1; }
.flash .flash-x { background: none; border: 0; color: inherit; opacity: .6; cursor: pointer; padding: 2px; border-radius: 6px; }
.flash .flash-x:hover { opacity: 1; }
.flash.gone { opacity: 0; transform: translateY(-6px); }
.flash-success { background: #e8f3ed; border-color: #b7d8c6; color: #124a33; }
.flash-error { background: var(--berry-50); border-color: #ecc4c8; color: #7a1f28; }
.flash-info { background: #eef2f8; border-color: #c7d3e6; color: #22406a; }
.flash-warn { background: var(--gold-50); border-color: #ecdcaa; color: #5b4310; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #eeeae0; color: #4d5650; vertical-align: middle; white-space: nowrap; }
.badge .i { width: 13px; height: 13px; }
.badge.green { background: var(--green-50); color: var(--ok); }
.badge.red { background: var(--berry-50); color: var(--berry-600); }
.badge.gold { background: var(--gold-50); color: #7a5a17; }

/* ---------- tabele ---------- */
.table-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
th { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
td form { display: inline; }

/* ---------- lista prezentów ---------- */
.item { display: grid; grid-template-columns: 68px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.item:first-of-type { padding-top: 4px; }
.item:last-child { border-bottom: 0; }
.item img, .thumb { width: 68px; height: 68px; object-fit: cover; border-radius: 12px; background: var(--brand-50); border: 1px solid var(--line); }
.thumb.ph { display: grid; place-items: center; color: var(--brand-600); }
.thumb.ph .i { width: 26px; height: 26px; }
.item.taken { opacity: .7; }
.price { font-weight: 700; color: var(--green); white-space: nowrap; font-variant-numeric: tabular-nums; }
.stars { color: var(--gold); letter-spacing: 1px; font-size: .9rem; }
.avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); background: var(--brand-50); }
.avatar.ph { display: grid; place-items: center; color: var(--brand-600); }
.avatar.ph .i { width: 34px; height: 34px; }
.progress { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--green); border-radius: 99px; }

/* ---------- wiersze nawigacyjne (pulpit uczestnika) ---------- */
.rows { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; }
.row-link { display: flex; align-items: center; gap: 14px; padding: 15px 18px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); transition: background .12s; }
.row-link:last-child { border-bottom: 0; }
.row-link:hover { background: var(--brand-50); color: var(--ink); }
.row-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex: none; }
.row-link:hover .row-ico { background: var(--paper); }
.row-body { flex: 1; min-width: 0; }
.row-body b { display: block; font-weight: 700; }
.row-body > span { display: block; color: var(--muted); font-size: .88rem; }
.row-chev { color: var(--line-strong); width: 18px; height: 18px; }

/* ---------- wynik losowania ---------- */
.result { text-align: center; padding: 30px 20px; background: var(--brand); color: #fff6ea; border-radius: 20px; margin-bottom: 18px; position: relative; overflow: hidden; }
.result::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% -25%, rgba(255, 214, 160, .30), transparent 55%); pointer-events: none; }
.result > * { position: relative; }
.result .kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 700; color: #ffd9a3; }
.result .name { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 7vw, 3rem); line-height: 1.1; margin: 8px 0 4px; color: #fff; }
.result .muted, .result .hint { color: #f6d0d0; }
.result .avatar { border-color: var(--gold); }
.result .price { color: #ffd9a3; }
.result .btn-primary { background: #fff; color: var(--brand); }
.result .btn-primary:hover { background: #fff4e6; }
.result .btn-ghost { color: #f6f1e7; border-color: rgba(246, 241, 231, .4); }
.result .btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }
.result.reveal .name { animation: pop .8s cubic-bezier(.2, 1.3, .4, 1) both; }
.result.reveal .kicker { animation: fadein .6s ease both; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; filter: blur(8px); } 100% { transform: none; opacity: 1; filter: none; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.next-step { display: flex; gap: 16px; align-items: center; background: var(--gold-50); border: 1px solid #ecdcaa; border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; flex-wrap: wrap; }
.next-step .icon-badge { margin: 0; flex: none; background: var(--paper); }
.next-step .body { flex: 1; min-width: 200px; }
.next-step .body b { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--brand); font-weight: 800; }
.next-step .body span { color: var(--muted); font-size: .93rem; }
.next-step form { display: contents; }
@media (max-width: 759px) { .next-step > .btn, .next-step form .btn { width: 100%; } }
.next-step.tone-red { background: var(--berry-50); border-color: #ecc4c8; }
.next-step.tone-green { background: var(--green-50); border-color: var(--green-100); }

/* ---------- czat ---------- */
.bubbles { display: grid; gap: 8px; margin: 14px 0; }
.bubble { max-width: 86%; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: #efe9db; justify-self: start; white-space: pre-wrap; word-wrap: break-word; }
.bubble.me { background: var(--brand); color: #fff; justify-self: end; border-radius: 16px 16px 4px 16px; }
.bubble small { display: block; opacity: .65; font-size: .72rem; margin-top: 2px; }

/* ---------- panel managera ---------- */
.page-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.page-head h1 { margin: 0; }
.page-head .meta { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; color: var(--brand); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .85rem; }
.stat.alert b { color: var(--gold-600); }
.subnav { position: sticky; top: var(--topbar-h); z-index: 20; background: var(--cream); margin: 0 -18px 18px; padding: 8px 18px; display: flex; gap: 6px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 7px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .9rem; border: 1px solid transparent; }
.subnav a:hover { color: var(--brand); background: var(--brand-50); }
.stepper { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: .85rem; color: var(--muted); flex-wrap: wrap; }
.stepper .st { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.stepper .st::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line-strong); }
.stepper .st.done::before { background: var(--green); border-color: var(--green); }
.stepper .st.now { color: var(--head); }
.stepper .st.now::before { border-color: var(--gold); background: var(--gold); box-shadow: 0 0 0 4px var(--gold-50); }
.stepper .bar-line { width: 22px; height: 2px; background: var(--line-strong); border-radius: 2px; }

/* ---------- widżet zdjęć ---------- */
.photo-drop { border: 1.5px dashed var(--line-strong); border-radius: 12px; padding: 14px; background: #fff; text-align: center; transition: background .15s, border-color .15s; }
.photo-drop:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(179, 32, 42, .18); border-color: var(--brand); }
.photo-drop.drag { background: var(--gold-50); border-color: var(--gold); }
.photo-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.photo-help { margin-top: 8px; }
.photo-preview { position: relative; display: inline-block; margin-bottom: 10px; }
.photo-preview img { display: block; max-width: 100%; max-height: 180px; border-radius: 10px; border: 1px solid var(--line); }
.photo-remove { position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--berry); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.photo-remove .i { width: 14px; height: 14px; }
.photo-status { min-height: 1.2em; margin-top: 6px; font-size: .9rem; color: var(--muted); }
.photo-status.ok { color: var(--ok); font-weight: 600; }
.photo-status.err { color: var(--berry-600); font-weight: 600; }

/* ---------- okno potwierdzenia ---------- */
dialog.confirm { border: 0; border-radius: 18px; padding: 24px; max-width: 420px; width: calc(100% - 36px); background: var(--paper); color: var(--ink); box-shadow: 0 24px 60px rgba(20, 30, 25, .35); }
dialog.confirm::backdrop { background: rgba(20, 30, 25, .5); backdrop-filter: blur(2px); }
dialog.confirm h3 { font-family: var(--font-display); font-size: 1.25rem; color: var(--brand); margin-bottom: .4em; }
dialog.confirm .actions { justify-content: flex-end; margin-top: 20px; }

/* ---------- stopka ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 22px 0 30px; color: var(--muted); font-size: .88rem; }
.site-footer .foot { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; justify-content: space-between; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--brand); }
body.has-tabbar .site-footer { padding-bottom: 96px; }
@media (min-width: 760px) { body.has-tabbar .site-footer { padding-bottom: 30px; } }

/* ---------- wydruk ---------- */
@media print {
    body { background: #fff; }
    .topbar, .site-footer, .tabbar, .no-print, .flashes, .subnav { display: none !important; }
    .card { border: 1px solid #999; break-inside: avoid; }
    a { color: #000; text-decoration: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
