:root {
  --bg: #f7f7f5; --surface: #ffffff; --text: #1d1d1b; --muted: #5f5f5a; --border: #e3e2dd;
  --accent: #1f6f5c; --accent-text: #ffffff; --danger: #b3261e;
  --gray: #ececea; --blue: #dbe8fb; --amber: #fbefd0; --green: #d9f0e3;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161615; --surface: #20201e; --text: #ecebe6; --muted: #a09f99; --border: #34332f;
    --accent: #4cb394; --accent-text: #0e1a16; --danger: #f2948d;
    --gray: #2e2e2b; --blue: #1f3350; --amber: #4a3b16; --green: #1c3d2d;
  }
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--accent); }
main { max-width: 960px; margin: 0 auto; padding: 24px 16px 64px; }
h1 { font-size: 1.7rem; line-height: 1.25; margin: 0.4em 0; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--border); }
.top nav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.top nav a { text-decoration: none; color: var(--text); }
.logo { font-weight: 700; font-size: 1.2rem; text-decoration: none; color: var(--accent) !important; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-text) !important; border: 0; border-radius: 8px; padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn.small { padding: 6px 12px; font-size: 0.9rem; }
.btn.ghost { background: transparent; color: var(--accent) !important; border: 1px solid var(--accent); }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; }
.danger { color: var(--danger) !important; }
form.inline { display: inline; }
.muted { color: var(--muted); }
.error { color: var(--danger); font-weight: 600; }
.flash { background: var(--green); padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; }
.hint { background: var(--amber); padding: 10px 14px; border-radius: 8px; }
.empty { padding: 32px; text-align: center; background: var(--surface); border: 1px dashed var(--border); border-radius: 12px; }
.narrow { max-width: 480px; margin: 0 auto; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack > .btn { align-self: flex-start; }
label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 0.92rem; }
input, select, textarea { font: inherit; font-weight: 400; padding: 9px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); width: 100%; min-width: 0; }
fieldset { border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: var(--surface); }
legend { font-weight: 700; padding: 0 6px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.item-row { display: grid; grid-template-columns: minmax(160px, 1fr) 64px 76px 96px 70px 126px 28px; gap: 6px; margin-bottom: 8px; align-items: center; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero { padding: 32px 0 16px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.hero-mock { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; box-shadow: 0 12px 32px rgba(0,0,0,.08); font-size: .9rem; transform: rotate(1deg); }
.hero-mock .accepted { margin-top: 12px; font-size: .85rem; padding: 8px 10px; }
.mock-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.mock-head div { display: flex; flex-direction: column; }
.mock-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--border); }
.mock-total { text-align: right; margin-top: 10px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 24px 0; }
.steps b { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-text); }
.steps h3 { margin: 8px 0 4px; }
.pricing .card .btn { margin-top: 8px; }
.faq { margin: 40px 0 8px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 600; }
.hero h1 { font-size: 2.2rem; }
.lead { font-size: 1.15rem; max-width: 680px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 32px 0; }
.features div, .card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.features h3 { margin-top: 0; }
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card.pro { border: 2px solid var(--accent); }
.price-tag { font-size: 2rem; font-weight: 700; margin: 0; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.num { text-align: right; white-space: nowrap; }
table.list { background: var(--surface); border-radius: 12px; overflow: hidden; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; white-space: nowrap; }
.badge.gray { background: var(--gray); } .badge.blue { background: var(--blue); } .badge.amber { background: var(--amber); } .badge.green { background: var(--green); }
.toolbar, .share { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.share { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px; align-items: flex-end; }
.share label { flex: 1 1 260px; }
.doc { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 28px; }
.doc-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.doc-head h1 { margin: 0; }
.doc-logo { display: block; max-width: 220px; max-height: 80px; object-fit: contain; margin-bottom: 12px; }
.logo-box { margin: 16px 0 24px; }
.deposit { margin-top: 6px; padding: 8px 12px; background: var(--green); border-radius: 8px; display: inline-block; }
.logo-box h2 { margin-top: 0; font-size: 1.15rem; }
.right { text-align: right; }
.parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 24px 0; }
.items { margin: 8px 0 16px; }
.items-wrap { overflow-x: auto; }
.sum { text-align: right; display: flex; flex-direction: column; gap: 2px; }
.sum .big { font-size: 1.25rem; margin-top: 6px; }
.notes { margin-top: 18px; white-space: normal; }
.accepted { margin-top: 24px; padding: 12px 14px; background: var(--green); border-radius: 8px; font-weight: 600; }
.accept { margin-top: 24px; display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; padding: 16px; border: 2px solid var(--accent); border-radius: 12px; }
.accept label { flex: 1 1 220px; }
.expired { margin-top: 24px; padding: 12px 14px; border: 1px solid var(--danger); color: var(--danger); border-radius: 8px; }
.doc, .doc td, .doc h1, table.list td { overflow-wrap: anywhere; }
.footer-brand { margin-top: 28px; font-size: 0.85rem; color: var(--muted); text-align: center; }
main.bare { padding-top: 24px; }
@media (max-width: 640px) {
  .grid2, .parties { grid-template-columns: 1fr; }
  .item-row { grid-template-columns: 1fr 1fr 1fr; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
  .item-row .grow { grid-column: 1 / -1; }
  .doc { padding: 16px; }
  .doc-head .right { text-align: left; }
  .doc .items { font-size: 0.85rem; }
  .doc .items th:nth-child(4), .doc .items td:nth-child(4), .doc .items th:nth-child(5), .doc .items td:nth-child(5) { display: none; }
  .hero h1 { font-size: 1.7rem; }
  .hero { grid-template-columns: 1fr; }
  .hero-mock { transform: none; }
  /* Lista wycen na telefonie jako karty zamiast szerokiej tabeli */
  table.list thead { display: none; }
  table.list, table.list tbody, table.list tr, table.list td { display: block; width: auto; }
  table.list tr { padding: 10px 12px; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
  table.list td { border: 0; padding: 0; }
  table.list td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  table.list td.num { text-align: right; }
}
@page { size: A4; margin: 14mm 12mm; }
@media print {
  body { background: #fff; color: #000; }
  .no-print, .top { display: none !important; }
  main { padding: 0; max-width: none; }
  .doc { border: 0; padding: 0; }
  a { color: #000; text-decoration: none; }
  .sum, .notes, .parties, .accepted, tr { break-inside: avoid; }
  .doc { font-size: 0.92rem; }
}

.site-footer { max-width: 960px; margin: 0 auto; padding: 24px 16px 40px; border-top: 1px solid var(--border); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
label.check { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 400; }
label.check input { width: auto; margin-top: 4px; }
.templates-teaser { margin: 0 0 32px; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 24px; }
.tpl-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; text-decoration: none; color: var(--text); }
.tpl-card:hover { border-color: var(--accent); }
.tpl-card h3 { margin: 0 0 6px; color: var(--accent); }
.tpl-card p { margin: 0; font-size: 0.92rem; }
.cta-box { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--surface); border: 2px solid var(--accent); border-radius: 12px; padding: 16px; margin: 24px 0; }
.tips li { margin-bottom: 6px; }
.small { font-size: 0.85rem; }
.calc { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; align-items: end; }
.calc-out { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 2px; text-align: right; }
.calc-out .big { font-size: 1.3rem; }
.legal { max-width: 760px; }
.legal h2 { font-size: 1.15rem; margin-top: 1.6em; }
.placeholder { background: var(--amber); padding: 0 4px; border-radius: 4px; }
.plan-options { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.plan-options form { display: flex; flex-direction: column; gap: 4px; }
.plan-options .save { color: var(--accent, #1f6f5a); font-weight: 600; text-align: center; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 20px; }
.stat { background: #fff; border: 1px solid #e3e3df; border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.stat strong { font-size: 1.25em; }
.stat span { color: #6b6b66; font-size: .85em; }
.msg-flag { color: #a35d00; font-weight: 600; }
.activity { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; }
.client-msg { background: #fff8e6; border: 1px solid #f0dca8; border-radius: 10px; padding: 10px 12px; overflow-wrap: anywhere; }
.ask { margin-top: 16px; }
.ask summary { cursor: pointer; color: #1f6f5c; font-weight: 600; }
.ask form { margin-top: 10px; }
@media (max-width: 600px) { .stats { grid-template-columns: 1fr; gap: 6px; } .stat { flex-direction: row; align-items: baseline; gap: 8px; padding: 8px 12px; } .stat strong { font-size: 1.05em; white-space: nowrap; } }

/* Pasek z kwotą i skrótem do akceptacji (klient na telefonie nie musi przewijać całej wyceny) */
.sticky-accept { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; text-decoration: none; color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.sticky-accept .sa-from { display: block; font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70vw; }
#zaakceptowano { scroll-margin-top: 16px; }
#akceptacja { scroll-margin-top: 130px; }
.sticky-accept.sa-hide { visibility: hidden; }
.per { font-size: 0.85em; font-weight: 400; color: var(--muted); }
details.more { border: 1px dashed var(--border); border-radius: 12px; padding: 10px 12px; }
details.more summary { cursor: pointer; font-weight: 600; color: var(--accent); }
details.more .grid2 { margin-top: 10px; }

/* Pozycje opcjonalne, płatność, polecenia, opinie */
.opt-row td { background: #fffaf0; }
.opt-row.skipped td { color: var(--muted); text-decoration: line-through; background: none; }
.opt-row.skipped .badge { text-decoration: none; }
.opt-pick { display: inline-flex; gap: 8px; align-items: flex-start; font-weight: 600; cursor: pointer; }
.opt-pick input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.opt-select { max-width: 160px; }
.pay { margin-top: 18px; padding: 16px; border: 2px solid var(--accent); border-radius: 12px; display: flex; flex-direction: column; gap: 8px; }
.pay h2 { margin: 0 0 4px; font-size: 1.15rem; }
.pay-row { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; overflow-wrap: anywhere; }
.pay-row .muted { min-width: 130px; }
.pay .btn { align-self: flex-start; }
.refer, .review { margin: 0 0 16px; padding: 14px; }
.refer p, .review p { margin: 6px 0 10px; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.share-row input { flex: 1 1 220px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.counter { text-align: center; font-size: 1.1rem; margin: 8px 0 28px; }
.install-tip { margin: 12px 0; }
.install-tip .btn { margin-right: 8px; }
[hidden] { display: none !important; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#voice-item.rec { background: #fdecea; border-color: #c0392b; color: #c0392b; }
.item-row input.missing { border-color: var(--danger); outline: 2px solid var(--danger); }
.draft-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; background: var(--amber); }
.onboarding { margin: 12px 0; }
.onboarding ol { margin: 8px 0 0; padding-left: 20px; }
.onboarding li { margin: 4px 0; }
.onboarding li.done { color: var(--muted, #6b746f); text-decoration: line-through; }
.onboarding .progress { height: 6px; background: var(--gray); border-radius: 3px; margin-top: 8px; overflow: hidden; }
.onboarding .progress span { display: block; height: 100%; background: var(--accent); }
.item-row.sec-row { grid-template-columns: 1fr 28px; background: var(--green); border-radius: 8px; padding: 6px; }
.item-row.sec-row input { font-weight: 600; }
.doc .sec-row td { background: var(--green); border-top: 2px solid var(--border); }
.doc .disc-row td { color: var(--accent); font-weight: 600; }
@media (max-width: 600px) { .item-row.sec-row { grid-template-columns: 1fr 28px; } .item-row.sec-row .grow { grid-column: auto; } }
.item-row { position: relative; padding-left: 30px; }
.item-row .drag { position: absolute; left: 0; top: 4px; width: 26px; height: 36px; border: 0; background: none; color: var(--muted, #6b746f); font-size: 18px; cursor: grab; touch-action: none; padding: 0; }
.item-row.dragging { opacity: .85; background: var(--green); box-shadow: 0 4px 14px rgba(0,0,0,.12); border-radius: 8px; z-index: 2; }
.sign-pad { display: flex; flex-direction: column; gap: 4px; flex: 1 1 260px; }
.sign-pad canvas { width: 100%; height: 130px; border: 1px dashed var(--border); border-radius: 8px; background: #fff; touch-action: none; cursor: crosshair; }
.sign-pad .link { align-self: flex-start; }
.signature { margin-top: 8px; }
.signature img { display: block; max-width: 260px; height: auto; background: #fff; border-bottom: 1px solid var(--border); }
@media print { .signature img { max-width: 200px; } }
@media (max-width: 760px) { .item-row { grid-template-columns: 1fr 1fr 1fr; padding-bottom: 8px; border-bottom: 1px solid var(--border); } .item-row .grow { grid-column: 1 / -1; } .item-row.sec-row { grid-template-columns: 1fr 28px; } .item-row.sec-row .grow { grid-column: auto; } }

/* Strona główna: marka, zaufanie, branże, ikony, końcowe CTA */
.logo { display: inline-flex; align-items: center; gap: 8px; }
.logo-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--accent); color: var(--accent-text); font-size: 17px; }
.eyebrow { text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; font-weight: 700; color: var(--accent); margin: 0 0 8px; }
.hero h1 { line-height: 1.15; margin: 0 0 14px; }
.hero { background: radial-gradient(1200px 400px at 80% 0%, var(--green), transparent 70%); border-radius: 18px; padding: 32px 24px 24px; }
.trust { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .92rem; }
.trust li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.features { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .features { grid-template-columns: 1fr; } }
.features .ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--green); font-size: 20px; margin-bottom: 8px; }
.features h3 { font-size: 1.05rem; margin-bottom: 4px; }
.features p { margin: 0; color: var(--muted); font-size: .95rem; }
.trades { margin: 32px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; font-weight: 500; }
.chips a:hover { border-color: var(--accent); color: var(--accent); }
.final-cta { text-align: center; background: var(--accent); color: var(--accent-text); border-radius: 16px; padding: 32px 20px; margin: 40px 0 0; }
.final-cta h2 { margin: 0 0 6px; }
.final-cta p { margin: 0 0 16px; opacity: .9; }
.final-cta .btn { background: var(--accent-text); color: var(--accent) !important; }
@media (max-width: 640px) { .wide-only { display: none; } .hero { padding: 20px 14px; } .hero h1 { font-size: 1.75rem; } }
/* Dokument wyceny: wygląd jak od firmy, w kolorze firmy (Pro) */
.doc { border-top: 6px solid var(--accent); box-shadow: 0 6px 24px rgba(0,0,0,.05); }
.doc-head h1 { color: var(--accent); letter-spacing: -.01em; }
.doc .items thead th { border-bottom: 2px solid var(--accent); }
.doc .sum { margin-left: auto; max-width: 420px; padding: 14px 16px; border-radius: 10px; background: var(--green); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.doc .sum .big strong, .doc .sum-gross { color: var(--accent); }
.doc .accept { border-color: var(--accent); }
.doc .sec-row td { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 12px; }
.inline-form input[type=color] { width: 56px; height: 40px; padding: 2px; }
@media print { .doc { box-shadow: none; border-top-width: 4px; } .doc .sum { background: none; border: 1px solid #ccc; } }
/* Opinie, ankieta i zespół */
.opinions { margin: 40px 0; }
.opinion-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.opinion-grid figure { margin: 0; }
.opinion-grid blockquote { margin: 8px 0; }
.opinion-grid figcaption { color: var(--muted); font-size: .9rem; }
.stars { color: #e0a100; letter-spacing: 2px; }
.feedback { margin: 0 0 16px; display: grid; gap: 10px; }
.feedback textarea { width: 100%; }
.feedback-who { display: flex; flex-wrap: wrap; gap: 8px; }
.feedback-who input { flex: 1 1 180px; }
.rate { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate label { font-size: 30px; line-height: 1; color: var(--border); cursor: pointer; }
.rate label:hover, .rate label:hover ~ label, .rate input:checked ~ label { color: #e0a100; }
.rate input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 4px; }
.team-list { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.team-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.team-list li .share-row { margin: 0; flex: 1 1 100%; }
.team-invite { display: flex; gap: 8px; flex-wrap: wrap; }
.team-invite input { flex: 1 1 220px; }
.team-offer { margin: 16px 0; }
.opinion-admin { margin: 10px 0; }
/* Runda 10/10: kompaktowy telefon, suma pozycji, pasek zapisu */
.item-row .line-sum { display: none; }
.form-bar { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 -16px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -4px 12px rgba(0,0,0,.06); }
.form-bar strong { font-size: 1.1rem; }
@media (min-width: 761px) { .form-bar { display: none; } }
@media (max-width: 760px) {
  .item-row .line-sum { display: block; grid-column: 1 / -1; font-size: .85rem; color: var(--muted); text-align: right; min-height: 0; }
  .item-row .line-sum:empty { display: none; }
}
.compare { table-layout: fixed; width: 100%; }
.compare th:not(:first-child), .compare td.num { width: 92px; text-align: center; }
.compare td.yes { color: var(--accent); font-weight: 700; }
@media (max-width: 600px) {
  .compare th:not(:first-child), .compare td.num { width: 72px; font-size: .9rem; }
  .steps { gap: 14px; margin: 20px 0; }
  .steps div { display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; }
  .steps b { grid-row: span 2; }
  .steps h3 { margin: 2px 0 2px; font-size: 1.05rem; }
  .steps p { margin: 0; }
  .features { gap: 10px; margin: 24px 0; }
  .features > div { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; padding: 12px 14px; }
  .features .ico { grid-row: span 2; margin: 0; }
  .features h3 { margin: 0 0 2px; }
}
.stat { background: var(--surface); border-color: var(--border); }
.stat span { color: var(--muted); }
.compare th { white-space: normal; font-size: .85rem; line-height: 1.2; vertical-align: bottom; }
.pricing .card { display: flex; flex-direction: column; }
.pricing .card ul { flex: 1; }
.pricing .card .btn { align-self: flex-start; }
.settings .set { display: grid; gap: 12px; padding: 18px; }
.settings .set h2 { margin: 0; font-size: 1.1rem; }
.settings .set p { margin: 0; }
.settings .logo-box, .settings #platnosci { margin-top: 20px; }
.color-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.color-pick { flex-direction: row; align-items: center; gap: 10px; font-weight: 600; }
.color-pick input[type=color] { width: 44px; height: 44px; padding: 2px; border-radius: 10px; flex: none; }
.danger-zone { margin-top: 28px; border-top: 1px solid var(--border); padding-top: 14px; }
.danger-zone summary { cursor: pointer; color: var(--muted); }
.danger-zone[open] summary { margin-bottom: 10px; }
/* Pozycja na telefonie w trzech zwartych rzędach: nazwa / ilość, jedn., cena, VAT / opcja, wartość, usuń */
@media (max-width: 760px) {
  .item-row:not(.sec-row) { grid-template-columns: 1fr 1fr 1.25fr .95fr; grid-template-areas: "name name name name" "qty unit price vat" "opt opt sum del"; gap: 6px; }
  .item-row:not(.sec-row) .grow { grid-area: name; }
  .item-row:not(.sec-row) .qty { grid-area: qty; }
  .item-row:not(.sec-row) [name=item_unit] { grid-area: unit; }
  .item-row:not(.sec-row) .price { grid-area: price; }
  .item-row:not(.sec-row) [name=item_vat] { grid-area: vat; }
  .item-row:not(.sec-row) .opt-select { grid-area: opt; font-size: .85rem; }
  .item-row:not(.sec-row) .line-sum, .item-row:not(.sec-row) .line-sum:empty { grid-area: sum; display: block; align-self: center; white-space: nowrap; }
  .item-row:not(.sec-row) .remove-row { grid-area: del; justify-self: end; }
  .remove-row { min-width: 44px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
  .item-row select, .item-row input { min-width: 0; padding-left: 8px; padding-right: 4px; }
}
.form-bar.when-dirty { display: none; }
@media (max-width: 760px) {
  form.dirty .form-bar.when-dirty { display: flex; }
  .item-row:not(.sec-row) { grid-template-columns: .85fr 1fr 1.25fr .9fr; }
  .item-row:not(.sec-row) [name=item_unit], .item-row:not(.sec-row) [name=item_vat] { -webkit-appearance: none; appearance: none; background-image: none; text-align: center; padding: 0 4px; }
}
/* Ikony SVG */
.i { display: inline-block; vertical-align: -0.2em; flex: none; }
.features .ico { color: var(--accent); }
.features .ico .i { width: 22px; height: 22px; }
/* Dolne menu w telefonie */
.appbar { display: none; }
@media (max-width: 760px) {
  .appbar { display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--border); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 14px rgba(0,0,0,.06); }
  .appbar a { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 0; font-size: .72rem; color: var(--muted); text-decoration: none; }
  .appbar a.on { color: var(--accent); font-weight: 600; }
  .appbar a.plus { justify-self: center; width: 52px; height: 52px; margin-top: -18px; border-radius: 50%; background: var(--accent); color: var(--accent-text); justify-content: center; box-shadow: 0 4px 12px rgba(31,111,92,.35); }
  main.has-appbar { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  /* Pasek „Zapisz” nad dolnym menu, nie pod nim */
  main.has-appbar .form-bar { bottom: calc(58px + env(safe-area-inset-bottom)); }
  .top nav { gap: 12px; }
}
/* Lista wycen jako karty z paskiem statusu */
.qlist { list-style: none; margin: 12px 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.qc a { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; color: var(--text); text-decoration: none; }
.qc a:hover { border-color: var(--accent); }
.qc-main { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.qc-main strong { font-weight: 600; }
.qc-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; white-space: nowrap; }
.qc-side strong { font-size: 1.05rem; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; }
.chip { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: .88rem; cursor: pointer; }
.chip small { color: var(--muted); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.chip.on small { color: inherit; opacity: .8; }
.filters input[type=search] { flex: 1 1 200px; padding: 6px 12px; border-radius: 999px; }
@media (max-width: 640px) { .filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; } .chip { white-space: nowrap; } .filters input[type=search] { min-width: 180px; } }
.card.today ul { margin: 6px 0 0; padding-left: 18px; }
.card.today li { margin: 3px 0; }
.push-tip strong .i { color: var(--accent); }
/* Formularz: koszt, cennik, wycena z opisu */
.item-row .cost { display: none; }
#items.show-cost .item-row .cost { display: block; }
#items.show-cost .item-row:not(.sec-row) { grid-template-columns: minmax(150px, 1fr) 56px 72px 100px 84px 74px 116px 28px; }
.cost-toggle { flex-direction: row; align-items: center; gap: 6px; font-weight: 400; margin-left: auto; }
.cost-toggle input { width: auto; }
.profit { margin: 8px 0 0; }
@media (max-width: 760px) {
  #items.show-cost .item-row:not(.sec-row) { grid-template-columns: .85fr 1fr 1.25fr .9fr; grid-template-areas: "name name name name" "qty unit price vat" "cost opt opt del" "sum sum sum sum"; }
  #items.show-cost .item-row:not(.sec-row) .cost { grid-area: cost; }
  #items.show-cost .item-row:not(.sec-row) .line-sum { justify-self: end; }
  .cost-toggle { margin-left: 0; }
}
.ai-btn { margin-bottom: 10px; }
.ai-btn .i { color: var(--accent); }
dialog.sheet { border: 0; border-radius: 14px; padding: 16px; width: min(560px, calc(100vw - 24px)); max-height: 85vh; background: var(--surface); color: var(--text); box-shadow: 0 10px 40px rgba(0,0,0,.25); }
dialog.sheet::backdrop { background: rgba(0,0,0,.4); }
dialog.sheet textarea { margin: 8px 0; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.sheet-head button { font-size: 1.2rem; }
@media (max-width: 640px) { dialog.sheet { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: 16px 16px 0 0; max-height: 80vh; padding-bottom: calc(16px + env(safe-area-inset-bottom)); } }
.pick-list { max-height: 50vh; overflow-y: auto; margin: 10px 0; }
.pick-cat h4 { margin: 10px 0 4px; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.pick { display: flex; width: 100%; justify-content: space-between; gap: 10px; text-align: left; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; margin-bottom: 6px; cursor: pointer; }
.pick small { color: var(--muted); white-space: nowrap; }
.pick.added { background: var(--green); border-color: var(--accent); }
/* Mój cennik */
.pl-group h2 { font-size: 1rem; margin: 22px 0 8px; color: var(--muted); }
.pl-item { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 6px; }
.pl-item summary { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; cursor: pointer; list-style: none; }
.pl-item summary::-webkit-details-marker { display: none; }
.pl-item[open] summary { border-bottom: 1px solid var(--border); }
.pl-form { display: grid; grid-template-columns: 2fr 1fr .8fr .7fr 1fr 1.2fr auto; gap: 6px; align-items: center; padding: 10px; }
.pl-item .pl-form .link { grid-column: 1 / -1; justify-self: start; }
.pl-new { margin-top: 18px; }
.pl-new > strong { grid-column: 1 / -1; }
@media (max-width: 760px) { .pl-form { grid-template-columns: 1fr 1fr; } .pl-form .pl-name, .pl-form .pl-cat { grid-column: 1 / -1; } .pl-form .btn { grid-column: 1 / -1; } }
.pl-change { margin-top: 14px; }
.pl-change .pct { width: 90px; }
.pl-change select { width: auto; }
.pl-tpl { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 6px; }
/* Klienci */
.c-search { margin: 8px 0 12px; }
.clist { list-style: none; padding: 0; display: grid; gap: 8px; }
.cc { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.cc-act { display: flex; gap: 6px; flex: none; }
@media (max-width: 640px) { .cc { flex-direction: column; align-items: stretch; } .cc-act .btn { flex: 1; text-align: center; } }
/* Zdjęcia i roboty dodatkowe na wycenie */
.photos { margin: 18px 0; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 6px; }
.photo-grid figure { margin: 0; position: relative; aspect-ratio: 4 / 3; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }
.photo-del { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; }
.photo-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; aspect-ratio: 4 / 3; border: 2px dashed var(--border); border-radius: 8px; color: var(--accent); cursor: pointer; font-weight: 600; font-size: .85rem; text-decoration: none; text-align: center; padding: 6px; }
.photo-add:hover { border-color: var(--accent); }
@media print { .photo-grid { grid-template-columns: repeat(4, 1fr); } }
.annexes { margin: 18px 0; }
.annex-row { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px solid var(--border); }
.annex-total { margin-top: 8px; text-align: right; font-size: 1.05rem; }
.card.job { margin: 12px 0; }
.job-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin: 8px 0; }
.job-form label { flex: 1 1 140px; }
.more-menu { position: relative; display: inline-block; }
.more-menu summary { list-style: none; }
.more-menu summary::-webkit-details-marker { display: none; }
.more-menu > div { position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; min-width: 190px; display: flex; flex-direction: column; gap: 2px; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.more-menu > div button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 6px; }
.more-menu > div button:hover { background: var(--bg); }
/* Pakiet D: górny pasek w aplikacji, panel, strona wyceny, wpłaty, wymiary */
.top-title, .top-account { display: none; }
@media (max-width: 760px) {
  .top.app { flex-wrap: nowrap; padding: 10px 14px; position: sticky; top: 0; z-index: 15; }
  .top.app nav, .top.app .logo-text { display: none; }
  .top.app .top-title { display: block; flex: 1; min-width: 0; font-weight: 600; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .top.app .top-account { display: inline-flex; color: var(--muted); padding: 4px; }
  .page-h1 { display: none; }
  .dash-head { margin-bottom: 4px; }
}
.stats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 0 14px; padding-bottom: 2px; }
.stats::-webkit-scrollbar { display: none; }
.stats .stat { flex: 1 0 auto; min-width: 150px; text-align: left; font: inherit; color: inherit; cursor: default; }
.stats button.stat { cursor: pointer; }
.stats .stat.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
@media (max-width: 600px) {
  .stats { display: flex; margin: 0 -14px 12px; padding: 0 14px 2px; }
  .stats .stat { flex-direction: column; align-items: flex-start; min-width: 0; padding: 8px 12px; gap: 0; }
  .stats .stat span { font-size: .78em; white-space: nowrap; }
}
details.onboarding { padding: 10px 14px; }
details.onboarding summary { display: flex; align-items: center; gap: 12px; justify-content: space-between; cursor: pointer; list-style: none; }
details.onboarding summary::-webkit-details-marker { display: none; }
details.onboarding summary > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
details.onboarding summary .progress { flex: 0 0 72px; margin: 0; display: block; }
.card.today li:nth-child(n+4) { display: none; }
.card.today.all li { display: list-item; }
.owe { color: #a86b00; font-weight: 600; }
@media (prefers-color-scheme: dark) { .owe { color: #f0c060; } }
.qhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin: 4px 0 10px; }
.qhead h1 { margin: 0; font-size: 1.35rem; overflow-wrap: anywhere; }
.qhead-sum { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; white-space: nowrap; }
.qhead-sum strong { font-size: 1.2rem; }
details.preview { margin-top: 16px; }
details.preview > summary { cursor: pointer; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
details.preview[open] > summary { margin-bottom: 12px; }
@media print { details.preview > summary { display: none; } }
.cal-links { margin: 4px 0 10px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pays { border-top: 1px solid var(--border); margin: 10px 0; padding-top: 10px; }
.pays-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pays-head > span:first-child { display: inline-flex; gap: 6px; align-items: center; }
.pays .progress { height: 6px; background: var(--gray); border-radius: 3px; margin: 8px 0; overflow: hidden; }
.pays .progress span { display: block; height: 100%; background: var(--accent); }
.pay-list { list-style: none; margin: 6px 0; padding: 0; }
.pay-list li { display: grid; grid-template-columns: 1fr auto 28px; gap: 8px; align-items: center; padding: 4px 0; border-bottom: 1px dashed var(--border); font-size: .92rem; }
.pay-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin-top: 8px; }
.pay-form label { flex: 1 1 120px; }
.pays details summary { margin-top: 6px; cursor: pointer; }
.room-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.room-grid input { width: 100%; }
.room-out { margin: 12px 0; border: 1px solid var(--border); border-radius: 10px; }
.room-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.room-row:last-child { border-bottom: 0; }
.item-row.just-set { animation: justset 1.2s ease; }
@keyframes justset { from { background: var(--green); } to { background: transparent; } }
.account-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.account-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
@media (max-width: 760px) { .top.app + main { padding-top: 12px; } .dash-head.wide-only + p { margin-top: 0; } }
/* Pakiet E: karta w panelu, ankieta, wiadomości, protokół, wpłaty u klienta */
.qc-main > span:first-child { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qc-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qc-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.feedback { grid-template-columns: 1fr auto; align-items: center; gap: 6px 12px; }
.feedback > strong { grid-column: 1 / -1; }
.feedback .rate label { font-size: 26px; }
.feedback-more { display: none; grid-column: 1 / -1; gap: 10px; }
.feedback:has(.rate input:checked) .feedback-more { display: grid; }
.feedback .fb-skip { justify-self: end; }
.msgs .chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.msgs textarea { width: 100%; }
.paid-list { margin-bottom: 8px; }
.protocol h2.small-h { font-size: 1rem; margin: 16px 0 6px; }
.scope { margin: 0 0 8px; padding-left: 20px; }
.scope li { padding: 3px 0; border-bottom: 1px dashed var(--border); }
.scope li span:last-child { float: right; margin-left: 12px; }
/* Pakiet F: miesiąc w liczbach, tydzień, strona klienta */
a.stat { text-decoration: none; color: inherit; }
.month-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.month-nav h1 { margin: 0; text-transform: capitalize; font-size: 1.4rem; }
.report-stats { margin-top: 14px; }
/* Raport: 4 kafelki naraz w siatce 2×2 (przewijanie w bok chowało połowę liczb) */
@media (max-width: 760px) { .stats.report-stats { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; margin-left: 0; margin-right: 0; padding: 0; } }
.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; height: 140px; align-items: end; padding-bottom: 8px; }
.bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; text-decoration: none; color: var(--muted); }
.bar-v { width: 70%; max-width: 36px; background: var(--green); border-radius: 6px 6px 2px 2px; }
.bar.on .bar-v { background: var(--accent); }
.bar.on small { color: var(--accent); font-weight: 600; }
.small-h { font-size: 1.05rem; margin: 18px 0 6px; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { display: flex; gap: 8px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.plain-list li strong { margin-left: auto; white-space: nowrap; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 8px; }
.week .day { text-align: center; padding: 6px 0; border-radius: 8px; font-size: .78rem; color: var(--muted); }
.week .day b { display: block; font-size: 1rem; color: var(--text); }
.week .day.has { background: var(--green); color: var(--text); }
.week .day.today b { color: var(--accent); }
.week-list { list-style: none; margin: 8px 0 0; padding: 0; }
.week-list li { padding: 3px 0; }
.cp-item { border-top: 1px solid var(--border); padding: 12px 0; }
.cp-row { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.cp-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; white-space: nowrap; }
.cp-sub { margin: 6px 0 0 14px; font-size: .92rem; }
.cp-pay { margin-top: 8px; font-size: .92rem; }
.pl-paste summary { cursor: pointer; }
.pl-paste textarea { width: 100%; font-family: ui-monospace, Menlo, monospace; font-size: .85rem; }
.hero-phone { display: flex; justify-content: center; }
.hero-phone img { width: min(290px, 72vw); height: auto; border-radius: 34px; border: 9px solid #1d1d1b; box-shadow: 0 18px 44px rgba(0,0,0,.18); background: #fff; }
@media (max-width: 640px) { .hero-phone img { width: min(240px, 66vw); } }
.hero { background: linear-gradient(165deg, var(--green) 0%, transparent 65%); }
/* Pakiet G: zakładki na stronie zaakceptowanej wyceny */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 0 0 14px; position: sticky; top: 0; z-index: 5; background: var(--bg); }
.tabs a { flex: 1; text-align: center; padding: 10px 6px; color: var(--muted); text-decoration: none; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--accent); border-bottom-color: var(--accent); }
.tabs .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); vertical-align: middle; }
.has-tabs .tab-pane:not(.on):not(.print) { display: none; }
.tab-pane > .card:first-child { margin-top: 0; }
.cal-links .btn { padding: 4px 10px; }
.my-tpl { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 8px; }
.my-tpl form { margin-top: 8px; }
.tpl-del { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.chip.mine { border-style: dashed; }
.chip.mine.on { border-style: solid; }
.deposit.plan .nowrap { white-space: nowrap; }
.paid-list .pay-row.done { color: var(--muted); }
@media print { .tabs { display: none; } .tab-pane { display: block !important; } }
/* Pakiet H */
.qc-main strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-card { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; padding: 14px 16px; border: 1px solid var(--accent); border-radius: 14px; background: color-mix(in srgb, var(--accent) 8%, var(--surface)); color: var(--text); font: inherit; cursor: pointer; text-decoration: none; }
.ai-card .i { color: var(--accent); flex: none; }
.ai-card span { display: flex; flex-direction: column; }
.ai-card small { color: var(--muted); }
.ai-card.teaser { border-style: dashed; background: var(--surface); }
.mic-btn { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.mic-btn.rec { background: #c0392b; border-color: #c0392b; color: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .75; } }
.more-contact summary { margin: -4px 0 4px; }
.more-contact[open] summary { margin-bottom: 8px; }
.shop-list { list-style: none; padding: 0; margin: 8px 0; }
.shop-list li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.shop-list input:checked + * , .shop-list label:has(input:checked) { text-decoration: line-through; color: var(--muted); }
/* Pakiet I */
.inq-alert { display: flex; gap: 12px; align-items: center; border-color: var(--accent); color: var(--text); text-decoration: none; }
.inq-alert .i { color: var(--accent); flex: none; }
.inq-alert span { display: flex; flex-direction: column; } .inq-alert small { color: var(--muted); }
.inq-card.done { opacity: .7; }
.inq-head { text-align: center; margin: 12px 0; } .inq-head h1 { margin: 6px 0; } .inq-head .doc-logo { max-height: 70px; }
.inq .lead { text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.inq-note { max-height: 9em; overflow: auto; }
.pay-quick { margin: 10px 0 4px; } .pay-quick .btn { width: 100%; } .pay-quick small { font-weight: 400; opacity: .85; }
.pay-other { margin-bottom: 6px; }
.mic-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 92px; height: 92px; margin: 6px auto 12px; border-radius: 50%; border: 2px solid var(--accent); background: var(--surface); color: var(--accent); font: inherit; font-weight: 600; font-size: .85rem; cursor: pointer; }
.mic-btn[hidden] { display: none; }

/* Pakiet J: wizytówka, opinie, lejek zapytań, praca bez zasięgu */
.offline-bar { position: sticky; top: 0; z-index: 50; background: #f3d27a; color: #4a3200; padding: 8px 16px; font-size: .9rem; text-align: center; }
.inq-head .chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 8px 0; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--soft, #eef4f1); font-size: .85rem; }
.chip.off { opacity: .45; }
.inq-about { max-width: 34em; margin: 8px auto; }
.inq-rating a { color: inherit; text-decoration: none; }
.inq-h { margin-top: 28px; }
.stars { color: #e0a100; letter-spacing: 1px; }
.stars span { color: #d6d6d6; }
.inq-reviews { margin-top: 28px; }
.inq-reviews .review p { margin: 6px 0; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 560px) { .grid3 { grid-template-columns: 1fr 1fr; } .grid3 label:first-child { grid-column: 1 / -1; } }
.funnel { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.inq-card.st-lost { opacity: .6; }
.visit-line { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.visit-form { display: inline-block; }
.visit-form summary { list-style: none; cursor: pointer; }
.visit-form summary::-webkit-details-marker { display: none; }
.visit-form[open] { display: block; width: 100%; margin-top: 8px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.inline-form input { flex: 1; min-width: 180px; }
.slug-row { display: flex; align-items: center; gap: 4px; }
.slug-row input { flex: 1; }
.rev-admin { list-style: none; padding: 0; margin: 0; }
.rev-admin li { padding: 6px 0; border-bottom: 1px solid var(--line, #eee); font-size: .9rem; }
.star-pick { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-pick label { font-size: 2.4rem; line-height: 1; color: #d6d6d6; cursor: pointer; }
.star-pick label:hover, .star-pick label:hover ~ label, .star-pick input:checked ~ label { color: #e0a100; }
.star-pick input:focus-visible + label { outline: 2px solid var(--accent, #1f6f5c); }

/* Pakiet K: warianty, koszty, start, warunki */
.variants { display: flex; gap: 8px; margin: 10px 0; overflow-x: auto; }
.variants a { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1.5px solid var(--line, #dde3df); border-radius: 12px; text-decoration: none; color: inherit; background: var(--card, #fff); }
.variants a span { font-size: .85rem; color: var(--muted, #667); }
.variants a.on { border-color: var(--brand, var(--accent, #1f6f5c)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand, #1f6f5c) 18%, transparent); }
.variants a.on span { color: var(--brand, var(--accent, #1f6f5c)); font-weight: 600; }
.variants a.won { border-color: var(--green, #2f855a); }
.variants-box { max-width: 820px; margin: 0 auto 12px; padding: 0 4px; }
.variants-card .row-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.costs .pay-row.big { font-size: 1.1rem; border-top: 1px solid var(--line, #eee); padding-top: 8px; margin-top: 4px; }
.costs .pay-row { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.costs .pos { color: var(--accent, #1f6f5c); } .costs .neg { color: #c53030; }
.variants a strong { font-size: .95rem; white-space: nowrap; }
.costs h2 { display: flex; align-items: center; gap: 8px; margin-top: 0; }
.cost-list { list-style: none; padding: 0; margin: 10px 0; }
.cost-list li { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line, #eee); font-size: .92rem; }
.cost-list li span { flex: 1; }
.receipt-btn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.start-card { display: grid; gap: 12px; margin: 8px 0 16px; }
.ai-card.big { padding: 22px 18px; }
.ai-card.big strong { font-size: 1.15rem; }
details.terms { border: 1px solid var(--line, #e3e7e4); border-radius: 12px; padding: 10px 14px; }
details.terms > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
details.terms > summary::-webkit-details-marker { display: none; }
details.terms[open] > summary { margin-bottom: 10px; }
details.all-features, details.compare-why { margin: 8px 0 24px; }
details.all-features > summary { cursor: pointer; font-weight: 600; color: var(--accent, #1f6f5c); text-align: center; padding: 8px; }
details.compare-why > summary { cursor: pointer; list-style: none; }
details.compare-why > summary h2 { display: inline; }
details.compare-why > summary::after { content: ' ▾'; color: var(--muted, #667); }
details.compare-why[open] > summary::after { content: ' ▴'; }
details.compare-why > summary::-webkit-details-marker { display: none; }

/* Zwarta pozycja na telefonie: nazwa i ✕ / ilość, jedn., cena, VAT, wartość. Wybór „opcja dla klienta” tylko gdy jest potrzebny */
@media (max-width: 760px) {
  .item-row:not(.sec-row) { grid-template-columns: minmax(0, .75fr) minmax(0, .8fr) minmax(0, 1.1fr) minmax(0, .75fr) minmax(0, 1.2fr) 26px; grid-template-areas: "name name name name name del" "qty unit price vat sum sum" "cost cost opt opt opt opt"; gap: 6px 5px; margin-bottom: 6px; padding-bottom: 6px; }
  .item-row:not(.sec-row) .cost { grid-area: cost; }
  .item-row:not(.sec-row) .opt-select { display: none; }
  .item-row:not(.sec-row):has(.opt-select option[value=opt]:checked) .opt-select { display: block; }
  .item-row:not(.sec-row) .line-sum, .item-row:not(.sec-row) .line-sum:empty { text-align: right; font-size: .8rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .item-row:not(.sec-row) .remove-row { align-self: center; }
}
@media (min-width: 761px) { .opt-toggle { display: none; } }

/* Ustawienia zwinięte: tytuł + jedna linia stanu; „Zapisz” wspólnego formularza tylko przy otwartej karcie */
.settings.acc .card.set { padding-top: 14px; padding-bottom: 14px; }
.settings.acc .card.set > h2 { cursor: pointer; margin: 0; display: flex; align-items: center; gap: 8px; font-size: 1.05rem; }
.settings.acc .card.set > h2::after { content: '›'; margin-left: auto; font-size: 1.4rem; line-height: 1; color: var(--muted); transition: transform .15s; }
.settings.acc .card.set.open > h2 { margin-bottom: 10px; }
.settings.acc .card.set.open > h2::after { transform: rotate(90deg); }
.settings.acc .card.set:not(.open) > :not(h2) { display: none; }
.settings.acc .card.set:not(.open)::after { content: attr(data-sum); display: block; margin-top: 2px; font-size: .85rem; color: var(--muted); }
.settings.acc form:not(:has(.card.set.open)) > .set-save { display: none; }
.settings.acc .card.set + .card.set, .settings.acc form > .card.set + .card.set { margin-top: 8px; }

/* Zwarta pozycja (telefon): jedna linia zamiast pól, dotknięcie otwiera edycję */
.row-view { display: none; }
@media (max-width: 760px) {
  .item-row.compact { display: block; padding-top: 4px; padding-bottom: 4px; margin-bottom: 0; }
  .item-row.compact > :not(.row-view):not(.drag) { display: none !important; }
  .item-row.compact .drag { top: 6px; }
  .item-row.compact .row-view { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; width: 100%; text-align: left; background: none; border: 0; padding: 6px 0; font: inherit; color: inherit; cursor: pointer; }
  .row-view .rv-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .row-view .rv-sum { font-weight: 600; white-space: nowrap; }
  .row-view .rv-det { grid-column: 1 / -1; font-size: .8rem; color: var(--muted); }
}

/* Wysyłka: jeden duży przycisk, link i inne kanały drobnym drukiem */
.share .send-main { width: 100%; justify-content: center; display: flex; align-items: center; gap: 8px; font-size: 1.05rem; padding: 14px; }
.share .share-alt { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; color: var(--muted); }
.share .share-alt .copy-src { flex: 1 1 100%; font-size: .8rem; padding: 6px 8px; color: var(--muted); background: transparent; }

.ai-photo-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0; }

/* Zwarte karty: tytuł karty jak „Zlecenie”, klienci w jednej linii akcji */
.card-title { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.cost-quick { margin-top: 10px; }
.cost-add summary { cursor: pointer; color: var(--accent, #1f6f5c); margin: 8px 0; }
@media (max-width: 640px) { .cc { flex-direction: row; flex-wrap: wrap; align-items: center; } .cc-act { width: 100%; align-items: center; gap: 14px; } .cc-act .btn { flex: none; } }
/* Pakiet M: uchwyt przy sekcji nie nachodzi na nazwę, pusty blok zdjęć to jeden wiersz, warianty zwinięte */
.item-row.sec-row { padding-left: 32px; }
.item-row.sec-row .drag { top: 8px; }
.photos .photo-grid:not(:has(figure)) { display: block; }
.photos .photo-grid:not(:has(figure)) .photo-add { flex-direction: row; aspect-ratio: auto; padding: 10px 14px; display: inline-flex; }
details.variants-card > summary { cursor: pointer; list-style-position: inside; }
details.variants-card[open] > summary { margin-bottom: 8px; }
#ai-live { color: var(--accent); font-weight: 600; }
.cost-quick .receipt-btn { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; }
.job-form label { display: flex; flex-direction: column; gap: 4px; }
.activity { margin: 6px 0 10px; }
.account-row .pass-change { flex-basis: 100%; }
.pass-change .inline-form { display: flex; gap: 8px; margin-top: 8px; }
.pass-change .inline-form input { flex: 1; min-width: 0; }
details.forgot { margin: 14px 0; }
details.forgot summary { color: var(--accent); cursor: pointer; }
details.forgot form { margin-top: 10px; }
.ai-card.used { padding: 8px 14px; }
.ai-card.used small { display: none; }
.ai-card.used .i { width: 18px; height: 18px; }
.pass-opt summary{cursor:pointer;color:var(--muted,#666);font-size:.9rem;padding:.4rem 0}.pass-opt label{margin-top:.4rem}
.quick-cta{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:12px 14px;margin:4px 0 18px;border:1.5px solid var(--accent,#1f6f5c);border-radius:12px;text-decoration:none;color:inherit;background:var(--surface)}
.quick-cta span{display:flex;flex-direction:column;gap:2px}.quick-cta small{color:var(--muted,#666)}.quick-cta b{white-space:nowrap;color:var(--accent,#1f6f5c)}
.qc-main > span:first-child { display: flex; align-items: center; gap: 4px; min-width: 0; }
.qc-main > span:first-child strong { min-width: 0; }
.qc-main > span:first-child .badge { flex: none; }
/* Wygląd v2 (14.10): miękkie karty, nowoczesne pola, przyciski z reakcją, chipy zamiast podkreśleń */
:root { --radius: 14px; --shadow: 0 1px 2px rgba(20,30,25,.05), 0 6px 18px rgba(20,30,25,.05); --soft: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
body { -webkit-font-smoothing: antialiased; }
h1, h2 { letter-spacing: -.02em; }
a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.card, .features div, fieldset, .faq details { border-radius: var(--radius); box-shadow: var(--shadow); }
fieldset { padding: 16px; }
fieldset > legend { float: left; width: 100%; padding: 0; margin: 0 0 10px; font-size: 1.08rem; }
fieldset > legend + * { clear: both; }
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]), select { min-height: 46px; }
input, select, textarea { border-radius: 10px; border-color: color-mix(in srgb, var(--text) 15%, transparent); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
label { font-weight: 500; }
.btn { border-radius: 12px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center; transition: transform .08s, filter .15s; }
.btn:not(.ghost) { box-shadow: 0 1px 2px rgba(0,0,0,.1), 0 4px 12px color-mix(in srgb, var(--accent) 22%, transparent); }
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: scale(.97); }
.btn.small { min-height: 36px; border-radius: 10px; }
.btn.ghost { background: var(--soft); border-color: transparent; }
summary::marker { color: var(--accent); font-size: .8em; }
.share-alt { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.share-alt .copy-src { flex: 1 1 100%; }
.share-alt a, .share-alt .copy-btn, .chip-link { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--soft); color: var(--accent); text-decoration: none; font-weight: 600; font-size: .9rem; }
.chip-link { min-height: 28px; padding: 0 12px; font-size: .85rem; }
.activity > .muted.small { display: inline-flex; align-items: center; gap: 8px; }
.activity > .muted.small::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); opacity: .5; }
.photos > .muted:first-child { font-weight: 600; color: var(--text); font-size: 1.05rem; margin-bottom: 8px; }
.flash { border-radius: 12px; }
.hero .btn.ghost { background: var(--surface); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }

/* Wygląd v3: strony publiczne (pierwsze wejście z Google) */
.tips, .pricing .card ul { list-style: none; padding-left: 0; }
.tips li, .pricing .card ul li { position: relative; padding-left: 28px; margin-bottom: 8px; line-height: 1.45; }
.tips li::before, .pricing .card ul li::before { content: ''; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 16%, transparent); }
.tips li::after, .pricing .card ul li::after { content: ''; position: absolute; left: 6px; top: calc(.2em + 4px); width: 4px; height: 8px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.see-also { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 28px 0 8px; }
.see-also > span { width: 100%; font-weight: 600; color: var(--muted); font-size: .9rem; }
.see-also a { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; border-radius: 999px; background: var(--soft); color: var(--text); text-decoration: none; font-size: .92rem; }
.see-also a:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.crumbs { font-size: .9rem; margin-bottom: 4px; }
.crumbs a { text-decoration: none; color: var(--accent); }
details.compare-why > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
details.compare-why > summary h2 { display: block; margin: 0; font-size: 1.1rem; }
details.compare-why > summary::after { content: ''; flex: none; width: 9px; height: 9px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); margin: -4px 4px 0; }
details.compare-why[open] > summary::after { content: ''; transform: rotate(-135deg); margin-top: 4px; }
details.compare-why[open] > summary { margin-bottom: 12px; }
.pricing-h { text-align: center; margin: 40px 0 16px; scroll-margin-top: 80px; }
.price-note { margin: -4px 0 10px; color: var(--accent); font-weight: 600; font-size: .95rem; }
.price-note.small { color: var(--muted); font-weight: 400; font-size: .85rem; margin: 8px 0 0; }
.pricing .card ul { margin-bottom: 16px; }
.pricing .card .btn { align-self: stretch; justify-content: center; margin-top: auto; }
.ai-example { margin-bottom: 12px; }
.ai-example .sum { margin-top: 12px; }
.parties > div > .muted:first-child { text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; margin-bottom: 4px; }
.parties > div { background: var(--soft); border-radius: 12px; padding: 12px 14px; }
@media print { .parties > div { background: none; padding: 0; } }
.hint { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }

/* Wygląd v4: mniej „szablonu AI” na stronie głównej */
.hero, .hero.hero { background: none; border-radius: 0; padding-left: 0; padding-right: 0; }
.eyebrow { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: .95rem; color: var(--muted); }
.steps { gap: 20px; }
.steps > div { display: block; border-top: 2px solid var(--text); padding-top: 12px; }
.steps > div > small { color: var(--muted); font-size: .8rem; font-weight: 600; }
.steps h3 { margin: 2px 0 4px; }
.steps p { margin: 0 0 12px; color: var(--muted); }
.proof { font-size: .9rem; line-height: 1.4; }
.proof.said { font-style: italic; }
.proof.bubble { display: inline-block; background: color-mix(in srgb, #25d366 22%, var(--surface)); padding: 8px 12px; border-radius: 12px 12px 12px 3px; max-width: 290px; }
.proof.bubble u { color: var(--accent); }
.proof.status { display: flex; align-items: center; gap: 8px; color: var(--muted); flex-wrap: wrap; }
.features { gap: 0 32px; }
.features > div, .features div { background: none; border: 0; border-top: 1px solid var(--border); border-radius: 0; box-shadow: none; padding: 16px 0; display: block; }
.features .ico { display: none; }
.features h3 { margin: 0 0 4px; }
@media (max-width: 640px) { .steps > div { padding-top: 10px; } .features > div { padding: 14px 0; } }
.steps div.proof { display: block; }
.steps div.proof.bubble { display: inline-block; }
.steps div.proof.status { display: flex; }
@media (max-width: 640px) { .steps > div { border-top-width: 1px; } .steps p { margin-bottom: 8px; } }
.ai-actions { display: grid; gap: 10px; }
.ai-actions .btn { width: 100%; justify-content: center; }
svg.logo-mark, img.logo-mark { background: none; border-radius: 7px; display: block; }

/* Wygląd v5: przegląd całej strony */
.opt-row td { background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.opt-pick { display: flex; align-items: flex-start; gap: 10px; }
.opt-pick input { width: 20px; height: 20px; min-height: 0; margin: 1px 0 0; padding: 0; accent-color: var(--accent); }
@media (max-width: 640px) {
  .doc table.items th:first-child, .doc table.items td:first-child { display: none; }
  .doc table.items td, .doc table.items th { padding-left: 6px; padding-right: 6px; }
  .doc table.items td:first-child + td { padding-left: 0; }
}
.site-footer nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 18px; font-size: .92rem; }
.site-footer nav a { padding: 2px 0; }
.back-link { text-decoration: none; color: var(--muted); font-weight: 600; align-self: center; margin-right: 4px; }
.back-link:hover { color: var(--accent); }
.share-alt input.copy-src { width: 100%; max-width: none; }
.next-quote { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 16px 18px; border: 1.5px dashed color-mix(in srgb, var(--accent) 35%, var(--border)); border-radius: var(--radius); color: var(--text); text-decoration: none; }
.next-quote .i { color: var(--accent); flex: none; }
.next-quote span { display: flex; flex-direction: column; }
.next-quote small { color: var(--muted); }
.next-quote:hover { background: var(--soft); }
.stat { background: var(--surface); border-color: var(--border); }
.client-msg { background: var(--soft); border-color: color-mix(in srgb, var(--accent) 22%, transparent); }
.variants a { background: var(--surface); border-color: var(--border); }
.variants a.on { border-color: var(--accent); }
.opt-pick { flex-direction: row; margin: 0; }
.opt-row .badge { background: var(--soft); color: var(--accent); }
:root { color-scheme: light dark; }
.share .share-alt input.copy-src { width: 100%; max-width: none; flex-basis: 100%; }
p.share-alt { max-width: none; }
.share > .share-alt { width: 100%; align-self: stretch; justify-self: stretch; box-sizing: border-box; }
.print-bar { position: sticky; top: 0; z-index: 60; display: flex; flex-direction: column; gap: 6px; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
.print-bar .btn { width: 100%; justify-content: center; }
.print-bar small { color: var(--muted); }
@media print { .print-bar { display: none !important; } }

/* Konto klienta „Moje wyceny” */
.cl-top { display: flex; justify-content: space-between; align-items: center; }
.cl-top form { margin: 0; }
.cl h1 { margin-bottom: 4px; }
.cl .card { margin-top: 16px; }
.cl-firm .row-between { gap: 12px; align-items: flex-start; margin-bottom: 4px; }
.cl-q { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); color: inherit; text-decoration: none; }
.cl-q > span:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cl-q:hover strong { color: var(--accent); }
.cl-pass summary { cursor: pointer; font-weight: 600; }
.cl-pass form { margin-top: 12px; }
.cl-del { margin-top: 16px; }
.cl-hint { text-align: center; margin: 16px auto 32px; }
.cl form.card .btn { width: 100%; }
.who-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 8px 0 20px; background: var(--soft); border-radius: 12px; }
.who-switch a { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 9px; text-decoration: none; color: var(--muted); font-weight: 600; }
.who-switch a.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.wide-btn { display: flex; width: 100%; justify-content: center; margin-top: 20px; }
.hero-signup { margin: 4px 0 0; font-size: .95rem; color: var(--muted); }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 48px; }
.pw-eye { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; box-shadow: none; }
.pw-eye:hover, .pw-eye:focus-visible { color: var(--accent); }
.c-edit { flex-basis: 100%; margin-top: 6px; }
.c-edit summary { cursor: pointer; display: inline-block; }
.c-edit form { margin-top: 10px; }
.cc { flex-wrap: wrap; }
.c-edit summary { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Usuwanie z powodem, archiwum, prośba o anulowanie */
.reasons { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.reasons legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.reasons label.radio { flex-direction: row; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); font-weight: 400; }
.reasons label.radio input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.reasons label.radio:has(input:checked) { border-color: var(--accent); background: var(--soft); }
.btn.danger-btn { background: var(--danger); border-color: var(--danger); color: #fff; }
.cancel-note, .cancel-ask { border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); margin: 12px 0; }
.cancel-ask .row-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.del-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; }
.del-row > span:first-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.del-row form { margin: 0; }
.deleted-link { text-align: center; margin: 16px 0; font-size: .95rem; }
.deleted-link a { color: var(--muted); }
.withdrawn { margin-top: 32px; }
.withdrawn h1 { margin: 10px 0 4px; }

/* Odświeżanie przeciągnięciem w dół (aplikacja z ekranu początkowego) */
.ptr { position: fixed; left: 50%; top: 0; z-index: 60; width: 40px; height: 40px; margin-left: -20px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; color: var(--accent); transform: translateY(-48px); opacity: 0; pointer-events: none; }
.ptr svg { transition: transform .1s; }
.ptr.go svg { animation: ptr-spin .7s linear infinite; }
@keyframes ptr-spin { to { transform: rotate(360deg); } }
.edited-note { margin: 12px auto; padding: 10px 14px; border-radius: var(--radius); background: color-mix(in srgb, #e0a53a 16%, var(--surface)); font-size: .95rem; max-width: 820px; }
.form-bar.off { display: none !important; }

/* Wygląd v4 (15.10, audyt taste): płaskie przyciski, mniej linii, mocniejszy nagłówek i czytelniejszy tekst na stronach publicznych */
.btn:not(.ghost) { box-shadow: none; }
.top:not(.app) { border-bottom: 0; }
.site-footer { border-top: 0; }
.tpl-card { border: 0; background: var(--surface); box-shadow: none; transition: background .15s; }
.tpl-card:hover { background: var(--soft); }
.hero-phone img { box-shadow: none; }
main:has(> .hero) { max-width: 1080px; }
main:has(> .hero) h1 { font-size: clamp(2.6rem, 1.4rem + 4vw, 4.5rem); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 20px; }
main:has(> .hero) .lead { font-size: 1.25rem; line-height: 1.5; color: var(--text); }
main:has(> .hero) p, main:has(> .hero) li { font-size: 1.0625rem; }
main:has(> .hero) .steps p, main:has(> .hero) .features p, main:has(> .hero) .trust, main:has(> .hero) .faq p { color: var(--text); font-size: 1.0625rem; }
main:has(> .hero) h3 { font-size: 1.25rem; }
main:has(> .hero) h2 { font-size: 2rem; line-height: 1.15; }
main:has(> .hero) small, main:has(> .hero) .proof, main:has(> .hero) .muted.small, main:has(> .hero) .price-note { font-size: .875rem; }
main:has(> .hero) .steps > div { border-top: 0; padding-top: 0; }
main:has(> .hero) .steps > div > small { color: var(--accent); }
main:has(> .hero) .features > div { border-top: 0; padding: 12px 0; }
main:has(> .hero) .card, main:has(> .hero) .faq details, main:has(> .hero) details.compare-why > summary { border: 0; box-shadow: none; }
main:has(> .hero) .card.pro { background: var(--soft); }
main:has(> .hero) .chips a { border: 0; background: var(--surface); }
main:has(> .hero) .chips a:hover { background: var(--soft); }
main:has(.tpl-grid) h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.5rem); line-height: 1.05; letter-spacing: -.03em; }
main:has(.tpl-grid) p { color: var(--text); font-size: 1.0625rem; }
.tpl-card p { font-size: 1rem; color: var(--text); }
.step-shot { display: block; width: 100%; max-width: 280px; height: auto; margin-top: 14px; border-radius: 18px; background: var(--surface); }
@media (max-width: 640px) {
  main:has(> .hero) h1 { font-size: clamp(2.6rem, 11vw, 3.4rem); }
  main:has(> .hero) h2 { font-size: 1.6rem; }
  .step-shot { max-width: 240px; }
}
/* 15.10 (audyt impeccable): bez grubego paska nad zaokrągloną wyceną (kolor firmy zostaje w tytule, tabeli i sumie), akceptacja jako wypełnione pole zamiast karty w karcie */
.doc { border-top: 1px solid var(--border); }
.accept, .doc .accept { border: 0; background: var(--soft); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media print { .doc { box-shadow: none; } }
.founding { margin: 4px 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--amber); font-size: .92rem; line-height: 1.4; }
main:has(> .hero) .founding { font-size: .95rem; }
/* Wygląd v6 (15.10, audyt impeccable ekranów aplikacji i strony klienta): cyfry w kolumnach, status w plakietce zamiast grubego paska, aktywna zakładka, równa akceptacja, pełny rząd pozycji w telefonie */
body { font-variant-numeric: tabular-nums; }
::selection { background: color-mix(in srgb, var(--accent) 24%, transparent); }
input, textarea { caret-color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.top nav a[aria-current] { color: var(--accent); font-weight: 600; }
.top nav button.link { color: var(--muted); }
.next-quote + .push-tip, .qlist + .push-tip, .next-quote ~ .card { margin-top: 12px; }
.push-tip .link { margin-left: 12px; }
#akceptacja { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px 20px; align-items: start; padding: 20px; }
#akceptacja > input[type=hidden] { display: none; }
#akceptacja > .btn { grid-column: 1 / -1; justify-self: start; min-width: 220px; }
@media (max-width: 640px) {
  #akceptacja { grid-template-columns: 1fr; padding: 16px; }
  #akceptacja > .btn { justify-self: stretch; }
}
.sum strong, .items td.num, .qc-side strong { font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .item-row:not(.sec-row):has(.line-sum:empty) { grid-template-areas: "name name name name name del" "qty unit price price vat vat" "cost cost opt opt opt opt"; }
}
/* Baner zgody na cookies Google Ads */
.consent { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 70; max-width: 560px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 8px 28px rgba(0,0,0,.14); padding: 14px 16px; }
.consent p { margin: 0 0 10px; font-size: 15px; }
.consent .row-actions { justify-content: flex-end; }
.has-appbar ~ .consent, body:has(.appbar) .consent { bottom: calc(76px + env(safe-area-inset-bottom)); }
/* Lista wycen: tytuł do 2 linii zamiast „Remont...”, plakietka przechodzi niżej, gdy brak miejsca */
.qc-main > span:first-child { flex-wrap: wrap; }
.qc-main > span:first-child strong { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.undo-row { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 30; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
