:root {
  --bg: #f4f6f5;
  --surface: #ffffff;
  --text: #14211f;
  --muted: #5b6b68;
  --line: #dde4e2;
  --brand: #0f766e;
  --brand-ink: #ffffff;
  --brand-soft: #d9f0ec;
  --warn: #b45309;
  --warn-soft: #fdf0d9;
  --bad: #b91c1c;
  --bad-soft: #fde4e4;
  --ok: #15803d;
  --ok-soft: #dcf3e3;
  --radius: 14px;
  --nav-h: 64px;
  color-scheme: light; /* zawsze jasny motyw, niezależnie od ustawień systemu */
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}
[hidden] { display: none !important; }

.app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 16px 16px calc(var(--nav-h) + 28px); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
h1 { font-size: 1.4rem; margin: 0; }
h2 { font-size: 1.1rem; margin: 20px 0 8px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }

/* przyciski i pola */
.btn {
  appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  padding: 10px 14px; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; min-height: 44px;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn.danger { color: var(--bad); }
.btn.small { min-height: 36px; padding: 6px 10px; font-size: .9rem; }
.btn[disabled] { opacity: .5; cursor: default; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

.field { display: block; margin: 0 0 12px; }
.field > span { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 4px; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 44px;
}
input:focus, select:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.error { color: var(--bad); background: var(--bad-soft); padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; }
.notice { color: var(--warn); background: var(--warn-soft); padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; }

/* ekran logowania */
.auth { max-width: 420px; margin: 0 auto; padding: 48px 16px; }
.auth .logo { width: 64px; height: 64px; margin-bottom: 12px; }

/* dodawanie paragonu */
.add-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 168px; border-radius: 22px; border: 0; cursor: pointer;
  background: var(--brand); color: var(--brand-ink); font: inherit; font-size: 1.25rem; font-weight: 700;
}
.add-btn svg { width: 56px; height: 56px; }
.link-btn { background: none; border: 0; color: var(--brand); font: inherit; font-weight: 600; padding: 10px 0; cursor: pointer; }

/* statystyki */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 12px 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.stat b { display: block; font-size: 1.5rem; }

/* listy */
.row { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; overflow: hidden; }
.row-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 12px; cursor: pointer; align-items: center; }
.row-head .t { font-weight: 600; }
.row-head .s { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.row-body { padding: 0 12px 12px; border-top: 1px solid var(--line); }
.items { width: 100%; border-collapse: collapse; font-size: .92rem; margin-top: 8px; }
.items td { padding: 4px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.items td.r { text-align: right; white-space: nowrap; padding-left: 8px; }

.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; background: var(--surface); font-size: .9rem; cursor: pointer; }
.filters { display: grid; gap: 8px; margin-bottom: 12px; }

/* weryfikacja */
.photo { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: #000; max-height: 70vh; object-fit: contain; }
.item-card { border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 8px; }
.item-card .grid3 { margin-top: 8px; }

/* dolna nawigacja */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: var(--nav-h); color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 600;
}
.nav a svg { width: 24px; height: 24px; }
.nav a.active { color: var(--brand); }
.nav .badge-dot { position: absolute; transform: translate(14px, -10px); }
.nav a { position: relative; }

.toast {
  position: fixed; left: 16px; right: 16px; bottom: calc(var(--nav-h) + 16px); z-index: 20; margin: 0 auto; max-width: 420px;
  background: var(--text); color: var(--bg); padding: 12px 16px; border-radius: 12px; text-align: center; font-weight: 600;
}
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 900px) {
  .main { padding-bottom: calc(var(--nav-h) + 28px); }
}

/* górna belka z nazwą i ikoną aplikacji */
.appbar {
  position: sticky; top: 0; z-index: 9; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top));
  background: var(--surface); border-bottom: 1px solid var(--line); font-weight: 700; font-size: 1.1rem;
}
.appbar img { border-radius: 7px; display: block; }

/* pozycje w stylu paragonu: linia 1 = nazwa, ilość × cena, wartość brutto (pogrubiona); linia 2 = litera i stawka, VAT */
.it-list { font-variant-numeric: tabular-nums; }
.it { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.it:last-child { border-bottom: 0; }
.it1 { display: grid; grid-template-columns: 1fr auto auto; gap: 2px 12px; align-items: baseline; }
.it1 .nm { font-weight: 600; overflow-wrap: anywhere; }
.it1 .qp { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.it1 .tot { white-space: nowrap; }
.it-desc { color: var(--muted); font-size: .88rem; margin-top: 1px; overflow-wrap: anywhere; }
.it2 { display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; margin-top: 2px; }
.it-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--text); margin-top: 8px; padding-top: 8px; font-size: 1.15rem; font-variant-numeric: tabular-nums; }

/* podatki: niska tabela, dwie kolumny liczb (netto, VAT) */
.taxes { width: 100%; border-collapse: collapse; font-size: .82rem; margin-top: 10px; font-variant-numeric: tabular-nums; }
.taxes th, .taxes td { padding: 2px 0; line-height: 1.2; text-align: left; }
.taxes th { color: var(--muted); font-weight: 600; }
.taxes th.r, .taxes td.r { text-align: right; }
.taxes tr.sum td { border-top: 1px solid var(--line); font-weight: 600; }

/* pola pozycji w edycji: etykiety nad polami, ciasniejsze odstepy */
.item-card .field { margin-bottom: 8px; }
.item-card .field > span { font-size: .78rem; }
.item-card .grid3 { margin-top: 0; }

/* zielony przycisk akceptacji; w rzedzie "split" pierwszy element po lewej, ostatni po prawej */
:root { --ok-btn: #15803d; --ok-ink: #ffffff; }
.btn.ok { background: var(--ok-btn); color: var(--ok-ink); border-color: var(--ok-btn); }
.btn-row.split { justify-content: space-between; }

/* statystyki */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); font-weight: 700; }
.check { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: .92rem; }
.check input { width: 20px; min-height: 20px; height: 20px; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.seg button { flex: 1; appearance: none; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 600; padding: 10px; min-height: 44px; cursor: pointer; }
.seg button.on { background: var(--brand); color: var(--brand-ink); }
.stat .delta { display: block; margin-top: 2px; }
.delta { font-size: .8rem; font-weight: 700; white-space: nowrap; }
.delta.up { color: var(--ok); }
.delta.down { color: var(--bad); }
.chart { width: 100%; height: auto; display: block; touch-action: manipulation; }
.chart .axis { stroke: var(--line); stroke-width: 1; }
.chart text { fill: var(--muted); font-size: 18px; }
.chart .bar { fill: var(--brand); }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .hit:hover { fill: color-mix(in srgb, var(--brand) 12%, transparent); }
.chart .line { fill: none; stroke: var(--brand); stroke-width: 2.2; stroke-linejoin: round; }
.chart .dot { fill: var(--surface); stroke: var(--brand); stroke-width: 2; }
.chart .band { fill: var(--brand); opacity: .14; }
.chart-cap { min-height: 1.3em; margin-bottom: 4px; }
.prod { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 8px; }
.prod-main { flex: 1; min-width: 0; cursor: pointer; }
.prod-check { width: 22px; min-height: 22px; height: 22px; margin-top: 2px; flex: none; }
.prod-top { display: flex; align-items: baseline; gap: 6px; }
.prod-name { flex: 1; overflow-wrap: anywhere; }
.prod-variant { font-weight: 400; color: var(--muted); }
.variant { padding: 8px; margin: 0 -8px; border-radius: 8px; cursor: pointer; }
.variant + .variant { border-top: 1px dashed var(--line); border-radius: 0; }
.variant:hover { background: var(--brand-soft); }
.variant.sel { background: var(--brand-soft); box-shadow: inset 3px 0 0 var(--brand); }
.prod-bar { height: 6px; border-radius: 3px; background: var(--brand-soft); margin: 6px 0 4px; overflow: hidden; }
.prod-bar i { display: block; height: 100%; background: var(--brand); border-radius: 3px; }
.prod-meta { display: flex; gap: 4px 12px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.chg { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-variant-numeric: tabular-nums; }
.chg:last-child { border-bottom: 0; }
.merge-bar { position: sticky; bottom: calc(var(--nav-h) + 8px); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--brand); border-radius: var(--radius); padding: 10px; box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.merge-bar select { flex: 1; min-width: 140px; }
.more-opts { margin-top: 10px; }
.more-opts summary { cursor: pointer; color: var(--muted); font-size: .9rem; padding: 6px 0; }

/* panel administratora */
.kv { display: flex; gap: 8px; padding: 2px 0; overflow-wrap: anywhere; }
.kv > span:first-child { min-width: 92px; flex: none; }
.tenant-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 10px; }
.tenant-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
.mini { background: var(--bg); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; }
.mini b { font-size: 1.15rem; }
@media (min-width: 700px) { .tenant-grid { grid-template-columns: 1fr 1fr; } }
textarea { resize: vertical; }

/* płatności */
.pay-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 10px; }
.pay-chip { appearance: none; display: flex; flex-direction: column; align-items: center; gap: 0; padding: 6px 2px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; min-height: 48px; }
.pay-chip.none { border-style: dashed; color: var(--muted); }
.pay-chip.paid { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.pay-chip.overdue { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }
.pay-chip.due { background: var(--warn-soft); border-color: var(--warn); color: var(--warn); }
.pay-chip.waived { background: var(--bg); color: var(--muted); }
.pay-chip.sel { outline: 2px solid var(--brand); outline-offset: 1px; }
.pay-editor { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }

/* panel administratora: układ szeroki (komputer) – klienci jako rozciągnięte wiersze */
.tenant-row > * + * { margin-top: 10px; }
.t-name { font-size: 1.05rem; }
@media (min-width: 900px) {
  .main.wide { max-width: 1500px; padding-left: 28px; padding-right: 28px; }
  .main.wide .stats { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .tenant-row { display: grid; grid-template-columns: 190px minmax(240px, 1.3fr) minmax(250px, 1.1fr) minmax(220px, .9fr); gap: 24px; align-items: start; padding: 16px 18px; }
  .tenant-row > * + * { margin-top: 0; }
  .tenant-row .tenant-info { border-left: 1px solid var(--line); padding-left: 24px; }
  .new-tenant { max-width: 760px; }
  .pay-card { display: grid; grid-template-columns: 240px 1fr; gap: 8px 24px; align-items: center; padding: 14px 18px; }
  .pay-card .pay-grid { grid-template-columns: repeat(12, 1fr); margin-top: 0; }
  .pay-card .pay-editor { grid-column: 1 / -1; max-width: 760px; }
}
@media (min-width: 1300px) {
  .tenant-row { grid-template-columns: 210px minmax(280px, 1.4fr) minmax(300px, 1.2fr) minmax(260px, 1fr); }
}

/* okno dialogowe (np. nowa firma) */
.modal { width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); padding: 18px; }
.modal::backdrop { background: rgba(20, 33, 31, .45); }

/* lista paragonów: jedna linia (status, zdjęcie, numer, (data) ... kwota, forma płatności) */
.row-head .rl { display: flex; align-items: center; gap: 6px; min-width: 0; }
.row-head .rl > * { flex: none; }
.row-head .rl .rdate { flex: 0 1 auto; min-width: 0; color: var(--muted); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-head .rl > .rnum { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-head .rl .badge { font-size: .7rem; padding: 2px 7px; }
.row-head .flag-ico { color: var(--bad); font-size: 1rem; line-height: 1; margin-right: -2px; }
@media (max-width: 520px) {
  .row-head { padding: 12px 8px; gap: 4px 4px; }
  .row-head .rl { gap: 3px; }
  .row-head .rl .ry { display: none; }
  .row-head .rl .badge { font-size: .62rem; padding: 2px 5px; }
  .row-head .rl .rdate { font-size: .78rem; }
  .row-head .photo-btn { padding: 0; }
  .row-head .photo-btn svg { width: 17px; height: 17px; }
  .row-head .rl > .rnum { font-size: .95rem; }
  .row-head .amt { gap: 3px; }
  .row-head .amt .t { font-size: .95rem; }
  .row-head .pay-ico svg { width: 17px; height: 17px; }
}
.row-head .amt { display: flex; align-items: center; justify-content: flex-end; gap: 6px; white-space: nowrap; }
.photo-btn { display: inline-flex; align-items: center; justify-content: center; padding: 2px; margin: 0; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 6px; }
.photo-btn:hover, .photo-btn:focus-visible { color: var(--brand); background: var(--brand-soft); }
.photo-btn svg { width: 20px; height: 20px; }
.photo-modal { width: min(900px, calc(100vw - 16px)); padding: 12px; }
.photo-modal .photo { cursor: zoom-out; max-height: calc(100dvh - 120px); }
.pay-ico { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }
.pay-ico svg { width: 20px; height: 20px; }
.pay-ico.m-card { color: var(--brand); }
.pay-ico.m-cash { color: var(--warn); }
.pay-ico.m-unknown { color: var(--muted); font-weight: 700; width: 20px; }
.pay-line { white-space: nowrap; }
.pay-line .pay-ico { margin: 0 4px 0 2px; }
.payrow { margin-bottom: 12px; }
.payrow:last-of-type { margin-bottom: 0; }
.payrow-top { display: flex; align-items: center; gap: 8px; }
.payrow-name { flex: 1; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.chart .bar-card { fill: var(--brand); }
.chart .bar-cash { fill: #d9902f; }
.chart .bar-unknown { fill: var(--line); }
.fill-card { background: var(--brand) !important; }
.fill-cash { background: #d9902f !important; }
.fill-unknown { background: var(--muted) !important; }
.legend { display: flex; gap: 14px; margin-top: 6px; color: var(--muted); }
.legend .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; }
.sw-card { background: var(--brand); } .sw-cash { background: #d9902f; } .sw-unknown { background: var(--line); }

/* zakładki dostępne w wyższym pakiecie: wyszarzone, ale widoczne i klikalne (pokazują opis funkcji) */
.seg button.locked { color: var(--muted); opacity: .6; }
.seg button.locked.on { background: var(--surface); color: var(--text); opacity: 1; }
.pro-tag { font-size: .68em; font-weight: 600; }
.confirm-modal { width: min(440px, calc(100vw - 24px)); }
.collapse-link { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; color: var(--brand); font: inherit; font-size: .8rem; font-weight: 600; padding: 2px 4px; cursor: pointer; }
.collapse-link svg { width: 14px; height: 14px; }

/* dokumenty prawne */
.legal-links a { color: var(--brand); }
.legal-page { min-height: 100vh; min-height: 100dvh; }
.legal-page .main { padding-bottom: 28px; }
.legal-doc { font-size: .95rem; line-height: 1.5; overflow-wrap: anywhere; }
.legal-doc h1 { font-size: 1.25rem; margin: 0 0 8px; }
.legal-doc h2 { font-size: 1.05rem; margin: 18px 0 6px; }
.legal-doc h3 { font-size: 1rem; margin: 14px 0 4px; }
.legal-doc p { margin: 0 0 8px; }
.legal-doc ol, .legal-doc ul { margin: 0 0 8px; padding-left: 1.4em; }
.legal-doc li { margin-bottom: 4px; }
.legal-doc li .li-cont { margin: 4px 0 0; }
.legal-doc code { background: var(--bg); padding: 0 4px; border-radius: 4px; }
.legal-doc hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
.legal-table { overflow-x: auto; margin-bottom: 8px; }
.legal-table table { border-collapse: collapse; font-size: .85rem; min-width: 560px; }
.legal-table th, .legal-table td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.legal-table th { background: var(--bg); }
.legal-scroll { max-height: 42vh; overflow-y: auto; padding-right: 8px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.terms-check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; }
.terms-check input { width: 22px; min-height: 22px; height: 22px; flex: none; margin-top: 2px; }
.wx-card { padding: 6px; }
.wx-table { width: 100%; border-collapse: collapse; font-size: .82rem; font-variant-numeric: tabular-nums; }
.wx-table th { font-size: .7rem; font-weight: 600; color: var(--muted); text-align: left; padding: 4px 3px; line-height: 1.15; }
.wx-table td { padding: 7px 3px; border-top: 1px solid var(--line); white-space: nowrap; }
.wx-table .r { text-align: right; }
.wx-table .c { text-align: center; }
.wx-table .wx-ico { font-size: 1.25rem; line-height: 1; }

/* strona z ofertą */
.landing { max-width: 980px; margin: 0 auto; padding: 0 16px 32px; }
.landing section { margin-top: 36px; }
.landing h2 { font-size: 1.35rem; margin: 0 0 12px; }
.lp-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.lp-brand { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; }
.lp-hero { margin-top: 28px !important; }
.lp-hero h1 { font-size: clamp(1.7rem, 6vw, 2.6rem); line-height: 1.15; margin: 0 0 12px; }
.lp-lead { font-size: 1.08rem; color: var(--muted); max-width: 640px; margin: 0 0 16px; }
.lp-steps { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.lp-step { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.lp-num { width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.lp-plans { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.lp-plan { position: relative; display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.lp-plan.featured { border: 2px solid var(--brand); }
.lp-plan h3 { margin: 0; font-size: 1.25rem; }
.lp-ribbon { position: absolute; top: -11px; right: 14px; background: var(--brand); color: var(--brand-ink); font-size: .75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.lp-price b { font-size: 2rem; }
.lp-incl { font-weight: 600; color: var(--brand); }
.lp-plan ul { margin: 6px 0 14px; padding-left: 20px; flex: 1; }
.lp-plan li { margin: 5px 0; }
.lp-addon { margin-top: 14px; background: var(--brand-soft); border-radius: var(--radius); padding: 14px 16px; }
.lp-roles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.lp-final { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: center; }
.lp-final .btn { display: inline-flex; }
.lp-foot { text-align: center; margin-top: 28px; }
.lp-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.lp-pickbtn { appearance: none; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; background: var(--surface); border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; color: var(--text); cursor: pointer; text-align: left; }
.lp-pickbtn.on { border-color: var(--brand); background: var(--brand-soft); }
.landing a.btn, .auth a.btn { text-decoration: none; }
.lp-plan .btn { justify-content: center; text-align: center; }
.badge.plan-pro { background: var(--brand); color: var(--brand-ink); }
.badge.plan-basic { background: #e7ecea; color: var(--muted); }
.lp-packs { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 8px 0; }
.stepper { display: inline-flex; align-items: center; gap: 14px; }
.stepper b { min-width: 1.5ch; text-align: center; font-size: 1.15rem; }
.stepper .btn { min-width: 40px; }
.trial-banner { background: var(--warn-soft); color: var(--warn); font-size: .9rem; padding: 8px 16px; text-align: center; }
.lp-trial { margin-top: 14px; background: var(--brand-soft); color: var(--text); border-radius: var(--radius); padding: 10px 14px; max-width: 640px; }
.contact-row { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; }
.contact-row .btn { display: inline-flex; align-items: center; gap: 6px; }
.msg-card.unread { border-left: 4px solid var(--warn); }
.msg-body { white-space: pre-wrap; word-break: break-word; margin-top: 8px; }
.confirm-modal textarea { width: 100%; font: inherit; padding: 10px; border: 1px solid var(--line); border-radius: 10px; resize: vertical; }
