/* Panel właściciela i instrukcja w świecie czyjto. Wymaga brand.css (font, kolory, nagłówek, przyciski, stopka).
   Tu: tokeny panelu wyprowadzone z marki, formularze, komunikaty, listy, edytor kadru, panel („Co się działo”)
   i instrukcja („rozłożona ulotka”). Briefy: .impeccable/surfaces/templates-accounts-dashboard-html.md, templates-guide-html.md. */

:root {
  --bg: var(--ground);
  --surface: var(--forest-900);
  --line-strong: rgb(255 248 239 / 0.42);  /* granice pól: min. 3:1 względem tła */
  --accent-ink: var(--on-accent);
  --accent-soft: rgb(255 154 82 / 0.14);
  --alarm: #c8102e;
  --danger: #ff8f86;
  --danger-bg: rgb(200 16 46 / 0.22);
  --warn-bg: rgb(255 154 82 / 0.16);
  --warn-ink: #ffd6b5;
  --ok-bg: rgb(157 245 208 / 0.14);
  --ok-ink: #d3fbe9;
  --radius: 16px;
  accent-color: var(--accent);
}

main { padding-block: 0.5rem 4rem; }
.wrap.narrow { width: min(100% - 2rem, 46rem); }

h1, h2, h3 { text-wrap: balance; }
h1 { margin: 0.4rem 0 1rem; font: 800 clamp(2.2rem, 5vw, 3.6rem)/0.98 var(--display); letter-spacing: -0.04em; }
h2 { margin: 2rem 0 0.8rem; font: 800 clamp(1.5rem, 2.6vw, 2rem)/1.08 var(--display); letter-spacing: -0.03em; }
h3 { margin: 0 0 0.4rem; font-size: 1.15rem; line-height: 1.3; }
p { margin: 0 0 1rem; max-width: 65ch; }
.lead { font-size: 1.2rem; color: var(--muted); }
.muted { color: var(--muted); }
a:hover { color: var(--accent); }
code { padding: 0.05rem 0.35rem; border-radius: 6px; background: var(--surface); font-size: 0.95em; }
[hidden] { display: none !important; }  /* style komponentów (np. .btn) nie mogą odkrywać ukrytych elementów */
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 0.22em; cursor: pointer; }
.linklike:hover { color: var(--accent); }
.top nav form { margin: 0; }

/* Przyciski: kształt i główne warianty z brand.css; tu domyślny obrys i warianty panelu */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-block: 1.25rem; max-width: none; }
.btn { flex-direction: column; border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-primary, .btn-main { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-ghost { border-color: currentColor; }
.btn-big { flex: 1 1 15rem; }
.btn-small, .btn-sm { min-height: 2.75rem; padding: 0.45rem 1.1rem; font-size: 1rem; }
.btn-danger { background: var(--alarm); border-color: var(--alarm); color: #ffffff; }
.btn-alarm-light { background: #ffffff; border-color: #ffffff; color: #7a0a1d; }
.btn-sub { font-size: 0.95rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

/* Formularze */
.form { max-width: 38rem; }
.field { margin-block: 1.2rem; }
label, legend { display: block; margin-bottom: 0.4rem; padding: 0; font-weight: 700; }
.opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
input[type="datetime-local"], input[type="number"], select, textarea {
  width: 100%; min-height: 3.2rem; padding: 0.7rem 0.95rem; font: inherit; font-size: 1.05rem;
  color: var(--ink); background: var(--surface); caret-color: var(--accent);
  border: 1.5px solid var(--line-strong); border-radius: 14px;
}
select { appearance: none; padding-right: 2.6rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff8ef' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 1.1rem; }
::placeholder { color: rgb(255 248 239 / 0.55); }
input[type="file"] { width: 100%; font: inherit; color: var(--muted); }
input[type="file"]::file-selector-button {
  min-height: 2.75rem; margin-right: 0.8rem; padding: 0.45rem 1.1rem; font: inherit; font-weight: 700;
  color: var(--ink); background: transparent; border: 1.5px solid var(--line-strong); border-radius: 999px; cursor: pointer;
}
input[type="file"]::file-selector-button:hover { border-color: var(--accent); color: var(--accent); }
textarea { min-height: 7rem; resize: vertical; }
input:focus-visible, textarea:focus-visible, select:focus-visible { border-color: var(--accent); }
.has-error input, .has-error textarea, .has-error select { border-color: var(--danger); }
.help { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.97rem; }
.help.warn { padding: 0.7rem 0.95rem; border-radius: 14px; background: var(--warn-bg); color: var(--warn-ink); }
.error { margin: 0.4rem 0 0; color: var(--danger); font-weight: 700; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.choices { display: grid; gap: 0.55rem; }
.choice, .check { display: flex; gap: 0.65rem; align-items: flex-start; margin: 0; font-weight: 500; }
.choice { padding: 0.75rem 0.95rem; border: 1.5px solid var(--line-strong); border-radius: 14px; background: var(--surface); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input, .check input { flex: none; width: 1.15rem; height: 1.15rem; margin-top: 0.3rem; }
/* Formularz zwierzęcia: próbka przycisku przy kolorze (na wybranym tle) i próbka tła. Wartości z pet.css (-d na leśnym, -l na jasnym). */
.choice input:is([name="theme"], [name="ground"]) + span { display: flex; flex: 1; justify-content: space-between; align-items: center; gap: 0.8rem; }
.choice input:is([name="theme"], [name="ground"]) + span::after {
  content: ""; flex: none; width: 2.4rem; height: 1.1rem; margin-right: 0.3rem; border-radius: 999px;
  background: var(--swatch); outline: 0.3rem solid var(--swatch-ground, #0f3d33);
}
.choice input[name="ground"] + span::after { width: 3rem; height: 1.7rem; margin-right: 0; border-radius: 8px; outline: 1px solid var(--line-strong); }
.choice input[name="ground"][value="las"] + span { --swatch: #0f3d33; }
.choice input[name="ground"][value="jasne"] + span { --swatch: #eef3ef; }
.choice input[name="theme"][value="rudy"] + span { --swatch: #ff9a52; }
.choice input[name="theme"][value="szary"] + span { --swatch: #a9c4e0; }
.choice input[name="theme"][value="lesny"] + span { --swatch: #b8dd7f; }
.choice input[name="theme"][value="czarny"] + span { --swatch: #fff8ef; }
.form:has(input[name="ground"][value="jasne"]:checked) .choice input[name="theme"] + span { --swatch-ground: #eef3ef; }
.form:has(input[name="ground"][value="jasne"]:checked) .choice input[name="theme"][value="rudy"] + span { --swatch: #a8480f; }
.form:has(input[name="ground"][value="jasne"]:checked) .choice input[name="theme"][value="szary"] + span { --swatch: #2f4a66; }
.form:has(input[name="ground"][value="jasne"]:checked) .choice input[name="theme"][value="lesny"] + span { --swatch: #2e5a3b; }
.form:has(input[name="ground"][value="jasne"]:checked) .choice input[name="theme"][value="czarny"] + span { --swatch: #1d1f23; }
.check { align-items: center; min-height: 2.75rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.privacy { margin-block: 1.2rem; padding: 1rem 1.2rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-size: 0.97rem; }
.privacy p { margin: 0 0 0.4rem; }
.privacy ul { margin: 0; padding-left: 1.1rem; }
.privacy li { margin-block: 0.2rem; }

/* Kadr zdjęcia: ramka ok. 4:3 jak pasek ze strony zwierzaka (static/js/photo-crop.js). Ten sam wzór co w pet.css. */
.focus-list { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); margin-top: 0.8rem; }
.photo-edit { display: grid; align-content: start; gap: 0.25rem; }
.photo-edit .field { margin-block: 0.4rem; }
.photo-edit input[type="number"] { width: 5.5rem; }
.crop-frame {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px; border: 1.5px solid var(--line-strong);
  background: var(--surface); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.crop-frame img {
  display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none;
  object-position: var(--fx, 50%) var(--fy, 35%); transform: scale(var(--z, 1)); transform-origin: var(--fx, 50%) var(--fy, 35%);
}
.crop.ready .crop-frame { cursor: grab; }
.crop.ready .crop-frame.dragging { cursor: grabbing; }
/* Linie podziału na trzy części jak w aparacie: widać je tylko podczas przesuwania */
.crop-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.15s;
  background:
    linear-gradient(to right, transparent calc(33.33% - 0.5px), rgb(255 255 255 / 0.7) calc(33.33% - 0.5px) calc(33.33% + 0.5px), transparent calc(33.33% + 0.5px) calc(66.67% - 0.5px), rgb(255 255 255 / 0.7) calc(66.67% - 0.5px) calc(66.67% + 0.5px), transparent calc(66.67% + 0.5px)),
    linear-gradient(to bottom, transparent calc(33.33% - 0.5px), rgb(255 255 255 / 0.7) calc(33.33% - 0.5px) calc(33.33% + 0.5px), transparent calc(33.33% + 0.5px) calc(66.67% - 0.5px), rgb(255 255 255 / 0.7) calc(66.67% - 0.5px) calc(66.67% + 0.5px), transparent calc(66.67% + 0.5px));
}
.crop-frame.dragging::after { opacity: 1; }
/* Układ „pełny ekran” (pole layout w tym samym formularzu): ramka ma proporcje ekranu telefonu, a dół zdjęcia
   jest przyciemniony tak jak na stronie, bo leżą tam imię i pastylki. Arkusz zostaje przy niskim pasku 4:3. */
.form:has(input[name="layout"][value="pelny"]:checked) .focus-list { grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); }
.form:has(input[name="layout"][value="pelny"]:checked) .crop-frame { aspect-ratio: 390 / 844; }
.form:has(input[name="layout"][value="pelny"]:checked) .crop-frame::before {
  content: ""; position: absolute; inset: auto 0 0; z-index: 1; height: 45%; pointer-events: none;
  background: linear-gradient(to bottom, rgb(8 37 32 / 0), rgb(8 37 32 / 0.78) 42%, rgb(8 37 32 / 0.95));
}
.crop-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-top: 0.6rem; }
.crop-zoom { display: flex; flex: 1 1 10rem; flex-wrap: wrap; align-items: center; gap: 0 0.6rem; min-width: 0; margin: 0; font-weight: 600; }
.crop-zoom input { flex: 1 1 6rem; min-width: 0; min-height: 2.75rem; accent-color: var(--accent); }  /* w wąskiej ramce suwak schodzi pod etykietę */

/* Komunikaty */
.alert { max-width: none; padding: 0.9rem 1.15rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.alert p:last-child, .alert ul:last-child { margin-bottom: 0; }
.alert.success { background: var(--ok-bg); color: var(--ok-ink); border-color: transparent; }
.alert.error { background: var(--danger-bg); color: #ffd9dc; border-color: transparent; font-weight: 700; }
.alert.lost, .alert.warning, .alert.info { background: var(--warn-bg); color: var(--warn-ink); border-color: transparent; }
.messages { margin-bottom: 1.4rem; }
.messages .alert { margin: 0 0 0.5rem; }

/* Sekcje i listy */
.group { padding-block: 1.4rem; border-top: 1px solid var(--line); }
.group h2 { margin-top: 0; }
.group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { padding-block: 0.3rem; }
.list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; padding-block: 0.75rem; border-top: 1px solid var(--line); }
.badge { padding: 0.15rem 0.65rem; border-radius: 999px; background: rgb(255 248 239 / 0.1); color: var(--ink); font-size: 0.85rem; font-weight: 700; }
.badge-new { background: var(--accent); color: var(--on-accent); }

/* Szczegóły zgłoszenia i zdjęcia */
.details { margin: 1.5rem 0 0; }
.details > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0.2rem 1rem; padding-block: 0.8rem; border-top: 1px solid var(--line); }
.details dt { color: var(--muted); font-weight: 600; }
.details dd { margin: 0; overflow-wrap: anywhere; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 0.8rem; }
.photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
@media (max-width: 30rem) { .details > div { grid-template-columns: 1fr; } }

/* Pigułka stanu zwierzęcia */
.state { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.25rem 0.75rem; border-radius: 999px; background: rgb(255 248 239 / 0.1); font-size: 0.9rem; font-weight: 700; }
.state::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--muted); }
.state.ok::before { background: var(--signal); }
.state.lost { background: var(--alarm); color: #ffffff; }
.state.lost::before { background: #ffffff; }

/* Panel: lista zwierząt z boku i oś „Co się działo” */
/* Kod strony: alarmy, lista zwierząt, oś. Na komputerze lista zajmuje lewą kolumnę przez oba wiersze */
.board-layout { display: grid; grid-template-columns: minmax(18rem, 22rem) 1fr; grid-template-rows: auto 1fr; column-gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.board-layout > .pets-side { grid-column: 1; grid-row: 1 / span 2; }
.board-layout > .panel-alerts { grid-column: 2; grid-row: 1; }
.board-layout > .panel-events { grid-column: 2; grid-row: 2; }
.pets-side h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.pet-list { list-style: none; margin: 0; padding: 0; }
.pet-list li { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.9rem; align-items: center; padding-block: 0.95rem; border-bottom: 1px solid var(--line); }
.pet-list .avatar { grid-row: span 2; width: 3.4rem; height: 3.4rem; border-radius: 50%; object-fit: cover; object-position: 50% 30%; background: var(--surface); }
.pet-list .avatar-empty { display: grid; place-items: center; color: var(--accent); font: 800 1.4rem/1 var(--display); }
.pet-list .name { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.6rem; font-weight: 800; font-size: 1.2rem; }
.pet-list .links { display: flex; flex-wrap: wrap; gap: 0.2rem 0.9rem; font-size: 0.97rem; color: var(--muted); }
.pet-list .links form { margin: 0; }
.side-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.3rem; }
.side-foot { margin-top: 1.4rem; font-size: 0.97rem; color: var(--muted); }

/* Zaginięcia: jeden czerwony blok, wiersz na każde zwierzę (nazwa, „Znalazło się”, stan ogłoszenia w jednej linii) */
.alarm-block { margin-bottom: 1.1rem; padding: 0.35rem 1.35rem 0.9rem; border-radius: 22px; background: var(--alarm); color: #ffffff; }
.alarm-block ul { list-style: none; margin: 0; padding: 0; }
.alarm-block li { padding-block: 0.75rem; }
.alarm-block li + li { border-top: 1px solid rgb(255 255 255 / 0.3); }
.alarm-block .row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 1.2rem; }
.alarm-block b { font: 800 1.35rem/1.15 var(--display); letter-spacing: -0.02em; }
.alarm-block form { margin: 0; }
.alarm-block .listing { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 1rem; margin-top: 0.35rem; font-size: 0.97rem; color: #ffe4e8; }
.alarm-block .listing a, .alarm-block .linklike { color: #ffffff; }
.alarm-block .listing a:hover, .alarm-block .linklike:hover { color: #ffe4e8; }
@media (max-width: 30rem) { .alarm-block .row { flex-direction: column; align-items: flex-start; } }  /* przyciski w jednej linii pionowej */
.alarm-note { max-width: none; margin: 0; padding-top: 0.75rem; border-top: 1px solid rgb(255 255 255 / 0.3); color: #ffe4e8; font-size: 0.95rem; }

/* Przypomnienia (potwierdź e-mail, dokończ aktywację): spokojna powierzchnia, kolor ma tylko przycisk */
.note-band { margin-bottom: 1.1rem; padding: 1rem 1.25rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.note-band p { margin: 0 0 0.6rem; } .note-band p:last-child { margin: 0; }
.note-band form { margin: 0; }

.timeline-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.4rem 1.2rem; margin: 0.6rem 0 1.4rem; }
.timeline-head a { color: var(--muted); font-size: 0.97rem; }
.timeline-head a:hover { color: var(--accent); }
.timeline-title { margin: 0; }
.timeline-title .badge { vertical-align: 0.2em; letter-spacing: 0; white-space: nowrap; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 2.6rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0.9rem; top: 0.7rem; bottom: 0.7rem; width: 2px; background: var(--line); }
.timeline li { position: relative; padding-bottom: 1.8rem; }
.timeline li > svg { position: absolute; left: -2.2rem; top: 0.05rem; width: 1.35rem; height: 1.8rem; fill: var(--muted); }
.timeline li.new > svg { fill: var(--signal); }
.timeline .when { color: var(--muted); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.timeline .what { margin: 0.1rem 0 0.45rem; font-size: 1.2rem; font-weight: 700; }
.timeline .card { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.8rem 1rem; padding: 0.95rem 1.15rem; border: 1px solid var(--line); border-radius: 18px; }
.timeline .card p { margin: 0; }
.timeline li.new .card { border-color: var(--signal); box-shadow: inset 0 0 0 1px var(--signal); }
.timeline-empty { padding: 1.4rem 0; color: var(--muted); }
@media (max-width: 900px) {
  .board-layout { display: block; }
  .board-layout > .pets-side { margin-bottom: 2.2rem; }
}

/* Lista wszystkich zgłoszeń od znalazców (reports/list.html) */
.report-list { list-style: none; margin: 1.6rem 0 2rem; padding: 0; max-width: none; }
.report-list li { border-top: 1px solid var(--line); }
.report-list li:last-child { border-bottom: 1px solid var(--line); }
.report-list a { display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 0.9rem; padding: 0.95rem 0.2rem; color: var(--ink); text-decoration: none; }
.report-list svg { grid-row: span 2; align-self: center; width: 1.1rem; height: 1.45rem; fill: var(--muted); }
.report-list li.new svg { fill: var(--signal); }
.report-list .report-head { font-size: 1.1rem; }
.report-list a:hover b { color: var(--accent); }

/* Instrukcja: rozłożona ulotka z pudełka. Panele obok siebie, przerywane linie zagięć */
.guide-head { max-width: 54rem; }
.guide-head h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); }
.guide-head .lead { max-width: 48ch; }
.leaflet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1.8rem; border-radius: 28px; background: var(--surface); }
.leaflet + .leaflet { margin-top: 1.4rem; }
.leaflet > section, .leaflet-stack > section { position: relative; padding: clamp(1.4rem, 2.6vw, 2.2rem); scroll-margin-top: 1rem; }
.leaflet > section + section, .leaflet > section + .leaflet-stack { border-left: 2px dashed rgb(255 248 239 / 0.2); }
/* Druga ulotka: dwa panele, w prawym dwie krótkie sekcje złożone poziomo */
.leaflet-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.leaflet-stack > section + section { border-top: 2px dashed rgb(255 248 239 / 0.2); }
.leaflet h2 { margin: 0 0 1.2rem; font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.leaflet h2 em { display: block; }
.leaflet p, .leaflet dd { color: var(--muted); }
.fold-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.fold-steps > li { position: relative; padding: 0 0 1.15rem 2.8rem; counter-increment: s; }
.fold-steps > li::before { content: counter(s); position: absolute; top: -0.1rem; left: 0; font: 800 1.8rem/1 var(--display); color: var(--accent); letter-spacing: -0.03em; }
.fold-steps h3 { margin-bottom: 0.25rem; }
.fold-steps p { margin: 0 0 0.4rem; }
.fold-steps .done { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.4rem; margin: 0; font-size: 0.95rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.fold-steps .done input {
  appearance: none; -webkit-appearance: none; display: grid; place-content: center; flex: none; width: 1.4rem; height: 1.4rem; margin: 0;
  border: 2px solid var(--line-strong); border-radius: 7px; background: transparent; cursor: pointer; transition: background-color 0.15s, border-color 0.15s;
}
.fold-steps .done input::before {
  content: ""; width: 0.85rem; height: 0.85rem; background: var(--forest-950); transform: scale(0); transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5l5 5 10-11'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5l5 5 10-11'/%3E%3C/svg%3E") center / contain no-repeat;
}
.fold-steps .done:hover input { border-color: var(--signal); }
.fold-steps .done input:checked { background: var(--signal); border-color: var(--signal); }
.fold-steps .done input:checked::before { transform: scale(1); }
.fold-steps > li.is-done::before { color: var(--signal); }
.fold-steps > li.is-done h3 { text-decoration: line-through; text-decoration-color: var(--signal); text-decoration-thickness: 2px; }
.progress { display: flex; align-items: center; gap: 0.7rem; margin: -0.4rem 0 1.2rem; color: var(--muted); font-size: 0.95rem; }
.progress i { flex: 1; height: 6px; border-radius: 3px; background: rgb(255 248 239 / 0.12); overflow: hidden; }
.progress i b { display: block; height: 100%; width: var(--p, 0%); background: var(--signal); transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.fold-list { margin: 0; }
.fold-list > div { padding-block: 0.8rem; border-top: 1px solid var(--line); }
.fold-list > div:first-child { border-top: 0; padding-top: 0; }
.fold-list dt { font-weight: 800; }
.fold-list dd { margin: 0.25rem 0 0; }
.fold-tip { margin-top: 1.2rem; padding: 1rem 1.15rem; border-radius: 16px; background: rgb(157 245 208 / 0.1); }
.fold-tip p { margin: 0 0 0.5rem; color: var(--ink); } .fold-tip p:last-child { margin: 0; }
.faq { max-width: 52rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 3.4rem; padding-block: 0.8rem; font-size: 1.15rem; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 1.35rem; height: 1.35rem; background: var(--accent); transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 4.5v15M4.5 12h15'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 4.5v15M4.5 12h15'/%3E%3C/svg%3E") center / contain no-repeat;
}
.faq details[open] summary::after { transform: rotate(45deg); }  /* plus obraca się w krzyżyk „zamknij” */
@media (prefers-reduced-motion: reduce) { .faq summary::after, .fold-steps .done input, .fold-steps .done input::before { transition: none; } }
.faq details p { margin-top: 0.1rem; color: var(--muted); }
.guide-faq { margin-top: clamp(3rem, 7vw, 5rem); scroll-margin-top: 1rem; }
@media (max-width: 900px) {
  .leaflet { grid-template-columns: 1fr; }
  .leaflet > section + section, .leaflet > section + .leaflet-stack { border-left: 0; border-top: 2px dashed rgb(255 248 239 / 0.2); }
}

/* Logowanie i zakładanie konta: formularz po lewej, panel marki po prawej */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; padding-top: clamp(0.5rem, 3vw, 2.5rem); }
.auth-form h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); }
.auth-form .lead { max-width: 40ch; }
.auth-links { margin: 0.5rem 0 0; color: var(--muted); }
.auth-side { padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: 28px; background: var(--surface); }
.auth-side h2 { margin-top: 0; }
.auth-photo { padding: 0; overflow: hidden; }
.auth-photo figure { position: relative; margin: 0; }
.auth-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.auth-pills { position: absolute; top: 1rem; left: 1rem; display: flex; gap: 0.4rem; }
.auth-pills span { padding: 0.35rem 0.85rem; border-radius: 999px; background: rgb(255 255 255 / 0.95); color: #1a1d1a; font-size: 0.9rem; font-weight: 800; }
.auth-pills .on { background: var(--accent); color: var(--on-accent); }
.auth-claim { margin: 0; padding: clamp(1.2rem, 2.6vw, 1.8rem); font: 800 clamp(1.5rem, 2.4vw, 2rem)/1.1 var(--display); letter-spacing: -0.03em; }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-photo { display: none; }  /* na telefonie formularz bez zdjęcia: szybciej do pól */
}
