/* Makieta opieki nad WordPressem i WooCommerce. Wspólny system dla trzech kierunków (A, B, C).
   Kolory semantyczne: akcja = kobalt, wynik potwierdzony = zieleń, wymaga uwagi = bursztyn, pilne = czerwień.
   Każdy status ma też tekst i ikonę. */

/* ---------- Tokeny: kierunek A, Czuwnik (domyślny) ---------- */
:root {
  --bg: #F6F1E8;
  --bg-2: #EFE8DB;
  --surface: #FFFCF7;
  --surface-2: #F8F3EA;
  --ink: #1A1D27;
  --ink-2: #3D4250;
  --muted: #646976;
  --line: #E2D9C9;
  --line-2: #D3C8B4;
  --action: #2547C6;
  --action-hover: #1B379F;
  --action-soft: #E7ECFB;
  --action-ink: #1D3AA6;
  --ok: #1E7A4C;
  --ok-soft: #E2F1E7;
  --warn: #8A5300;
  --warn-soft: #FBEFD7;
  --warn-line: #E8B65A;
  --bad: #AE2A20;
  --bad-soft: #FBE6E2;
  --info-soft: #EEF0F4;
  --dark: #151925;
  --dark-2: #222838;
  --on-dark: #F4F1EA;
  --on-dark-muted: #AEB3C0;

  --font-display: 'Sitka Heading', 'Iowan Old Style', 'Palatino Linotype', Charter, Georgia, serif;
  --font-body: 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Cascadia Mono', 'Cascadia Code', Consolas, 'SF Mono', Menlo, monospace;
  --display-weight: 600;
  --display-tracking: -0.015em;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --shadow: 0 1px 2px rgba(26, 29, 39, .06), 0 8px 24px -12px rgba(26, 29, 39, .18);
  --shadow-lg: 0 24px 60px -24px rgba(26, 29, 39, .35);
  --row-pad: 14px;
  --focus: 0 0 0 3px #fff, 0 0 0 5px var(--action);
}

/* ---------- Kierunek B, Dobry Stan ---------- */
[data-theme="b"] {
  --bg: #F2F6F0;
  --bg-2: #E5EEE4;
  --surface: #FFFFFF;
  --surface-2: #F6FAF5;
  --ink: #15302A;
  --ink-2: #33504A;
  --muted: #5C716B;
  --line: #DCE6DA;
  --line-2: #C6D5C4;
  --action: #3346C8;
  --action-hover: #2434A5;
  --action-soft: #E8EBFC;
  --action-ink: #2A3BB0;
  --ok: #1B7B4E;
  --ok-soft: #DDF2E5;
  --dark: #15302A;
  --dark-2: #20423A;
  --on-dark: #F2F6F0;
  --on-dark-muted: #B4C7C0;
  --font-display: 'Segoe UI Variable Display', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --display-weight: 700;
  --display-tracking: -0.025em;
  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --shadow: 0 1px 2px rgba(21, 48, 42, .05), 0 12px 32px -16px rgba(21, 48, 42, .22);
  --row-pad: 16px;
}

/* ---------- Kierunek C, Obchód ---------- */
[data-theme="c"] {
  --bg: #EDEFF3;
  --bg-2: #E2E6EC;
  --surface: #FFFFFF;
  --surface-2: #F6F7F9;
  --ink: #0F1420;
  --ink-2: #2E3646;
  --muted: #5B6475;
  --line: #D8DDE5;
  --line-2: #C3CAD6;
  --action: #2C55F0;
  --action-hover: #1D40C8;
  --action-soft: #E7ECFE;
  --action-ink: #2146D6;
  --dark: #10151F;
  --dark-2: #1B2230;
  --on-dark: #EEF1F6;
  --on-dark-muted: #9AA4B6;
  --font-display: 'Segoe UI Variable Display', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --display-weight: 600;
  --display-tracking: -0.02em;
  --r-sm: 3px;
  --r: 5px;
  --r-lg: 8px;
  --shadow: 0 1px 0 rgba(15, 20, 32, .06), 0 6px 18px -12px rgba(15, 20, 32, .25);
  --row-pad: 10px;
}

/* ---------- Podstawy ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  padding-bottom: 76px; /* miejsce na pasek prezentacji */
}
img, svg { display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--action-ink); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
.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; }
.mono { font-family: var(--font-mono); font-size: .92em; letter-spacing: 0; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
[hidden] { display: none !important; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  border-radius: var(--r-sm); border: 1px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn svg { flex: none; }
.btn-primary { background: var(--action); color: #fff; }
.btn-primary:hover { background: var(--action-hover); }
.btn-secondary { background: var(--surface); color: var(--action-ink); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--action); background: var(--action-soft); }
.btn-ghost { background: transparent; color: var(--action-ink); padding-left: 10px; padding-right: 10px; }
.btn-ghost:hover { background: var(--action-soft); }
.btn-ok { background: var(--ok); color: #fff; }
.btn-ok:hover { filter: brightness(.92); }
.btn-bad { background: var(--surface); color: var(--bad); border-color: #E3B4AD; }
.btn-bad:hover { background: var(--bad-soft); }
.btn-sm { min-height: 36px; padding: 7px 12px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 16.5px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
[data-theme="b"] .btn { border-radius: 999px; }
.linkish { background: none; border: 0; padding: 0; color: var(--action-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Oznaczenia statusu ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px 3px 7px; border-radius: 999px;
  font-size: 13px; font-weight: 600; line-height: 1.35; white-space: nowrap;
  border: 1px solid transparent;
}
.badge svg { width: 14px; height: 14px; flex: none; }
.b-ok { background: var(--ok-soft); color: var(--ok); }
.b-warn { background: var(--warn-soft); color: var(--warn); border-color: #F0D29A; }
.b-bad { background: var(--bad-soft); color: var(--bad); border-color: #F0C2BB; }
.b-action { background: var(--action-soft); color: var(--action-ink); }
.b-neutral { background: var(--info-soft); color: var(--ink-2); }
[data-theme="c"] .badge { border-radius: 3px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .01em; text-transform: uppercase; }

.prio { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.prio svg { width: 15px; height: 15px; }
.prio-pilny { color: var(--bad); }
.prio-wysoki { color: var(--warn); }
.prio-sredni { color: var(--ink-2); }
.prio-niski { color: var(--muted); }

/* ---------- Pasek prezentacji ---------- */
.presbar {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%);
  z-index: 50; display: flex; align-items: center; gap: 4px;
  background: rgba(21, 25, 37, .94); color: #fff;
  border-radius: 14px; padding: 6px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.45);
  max-width: calc(100vw - 20px);
  font-size: 13.5px;
  backdrop-filter: blur(6px);
}
.presbar-label { padding: 0 10px 0 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9CA6BC; white-space: nowrap; }
.presbar button, .presbar a {
  background: transparent; color: #DCE1EC; border: 0; border-radius: 9px;
  min-height: 36px; padding: 6px 12px; font-weight: 600; white-space: nowrap; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.presbar button:hover, .presbar a:hover { background: rgba(255,255,255,.1); color: #fff; }
.presbar button[aria-current="page"] { background: #fff; color: #151925; }
.presbar .sep { width: 1px; align-self: stretch; margin: 6px 4px; background: rgba(255,255,255,.18); }
.presbar :focus-visible { box-shadow: 0 0 0 2px #151925, 0 0 0 4px #8FA6FF; }
.presbar-hint {
  position: fixed; left: 50%; bottom: 66px; transform: translateX(-50%); z-index: 49;
  background: var(--surface); color: var(--ink-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 7px 12px; font-size: 13px; box-shadow: var(--shadow);
  max-width: min(560px, calc(100vw - 20px)); text-align: center;
}
.presbar-hint strong { color: var(--ink); }
.presbar-hint[data-hidden="true"] { display: none; }
.short { display: none; }

/* ---------- Komunikaty (toast) ---------- */
.toast-zone:empty { display: none; }
.toast-zone { position: fixed; inset: auto auto 104px 16px; margin: 0; padding: 0; border: 0; background: transparent; overflow: visible; color: inherit; z-index: 80; display: grid; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.toast {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--dark); color: var(--on-dark); border-radius: var(--r); padding: 12px 14px;
  box-shadow: var(--shadow-lg); font-size: 14.5px; animation: toast-in .2s ease-out;
}
.toast svg { flex: none; margin-top: 2px; color: #7FD3A4; }
.toast .btn { margin-top: 8px; }
.toast .toast-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.toast .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.toast .btn-secondary:hover { background: rgba(255,255,255,.1); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* =====================================================================
   WIDOK 1. STRONA GŁÓWNA
   ===================================================================== */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand-link { display: inline-flex; align-items: center; background: none; border: 0; padding: 4px; margin-left: -4px; }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav button { background: none; border: 0; padding: 8px 12px; border-radius: var(--r-sm); color: var(--ink-2); font-weight: 500; font-size: 15px; }
.site-nav button:hover { color: var(--ink); background: var(--bg-2); }

.hero { padding: 56px 0 88px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: start; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); letter-spacing: .02em; margin-bottom: 22px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.hero h1 {
  font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking);
  font-size: clamp(38px, 4.6vw, 64px); line-height: 1.04; text-wrap: balance; max-width: 17ch;
}
.hero .lead { font-size: clamp(17px, 1.5vw, 19.5px); color: var(--ink-2); max-width: 46ch; margin-top: 26px; line-height: 1.55; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.hero-visual { position: relative; padding-top: 34px; }

/* Fragment panelu na pierwszym ekranie */
.peek {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; position: relative;
}
.peek-top { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.peek-top .site { font-weight: 700; font-size: 15px; line-height: 1.2; }
.peek-top .url { font-size: 12.5px; color: var(--muted); }
.peek-top .badge { margin-left: auto; }
.peek-result { padding: 20px 20px 18px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; }
.peek-result .ico { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; }
.peek-result .k { font-size: 13px; color: var(--muted); font-weight: 600; }
.peek-result .v { font-size: 19px; font-weight: 700; line-height: 1.25; }
.peek-list { padding: 8px 20px 16px; }
.tl-mini li { display: grid; grid-template-columns: 52px 22px 1fr; gap: 10px; padding: 10px 0; align-items: start; position: relative; }
.tl-mini li + li { border-top: 1px dashed var(--line); }
.tl-mini time { font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); padding-top: 2px; }
.tl-mini .i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--info-soft); color: var(--ink-2); }
.tl-mini .i.ok { background: var(--ok-soft); color: var(--ok); }
.tl-mini .t { font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.tl-mini .d { font-size: 13.5px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.peek-foot { padding: 12px 20px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.peek-tag {
  position: absolute; left: -18px; top: 0; z-index: 2; transform: rotate(-2deg);
  background: var(--dark); color: var(--on-dark); font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: var(--r-sm); box-shadow: var(--shadow);
}

/* Sekcje strony */
.section { padding: 96px 0; }
.section-alt { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: end; margin-bottom: 48px; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--action-ink); margin-bottom: 14px; }
.h2 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; text-wrap: balance; }
.section-head p { color: var(--ink-2); font-size: 17.5px; max-width: 52ch; }

/* Przykład: jeden poranek */
.story { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; }
.tl { position: relative; }
.tl li { display: grid; grid-template-columns: 96px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.tl li:last-child { border-bottom: 1px solid var(--line); }
.tl .when { font-family: var(--font-mono); font-size: 14px; color: var(--ink-2); padding-top: 3px; }
.tl .when small { display: block; font-family: var(--font-body); color: var(--muted); font-size: 12.5px; }
.tl h3 { font-size: 18.5px; font-weight: 700; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tl p { color: var(--ink-2); margin-top: 6px; max-width: 60ch; }
.tl .tech { margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; position: sticky; top: 96px; box-shadow: var(--shadow); }
.aside-card h3 { font-size: 20px; margin-bottom: 10px; }
.aside-card p { color: var(--ink-2); }
.aside-card .btn { margin-top: 20px; }
.aside-card .quote { margin-top: 18px; padding: 14px 16px; border-left: 3px solid var(--ok); background: var(--ok-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 15px; }

/* Jak przebiega współpraca */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; position: relative; }
.step .num { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 44px; line-height: 1; color: var(--action); margin-bottom: 18px; }
.step h3 { font-size: 19.5px; margin-bottom: 10px; }
.step p { color: var(--ink-2); }
.step .how { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-2); font-size: 14.5px; color: var(--ink-2); display: flex; gap: 8px; }
.step .how svg { flex: none; margin-top: 3px; color: var(--action); }

/* Warianty */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--ink); box-shadow: var(--shadow-lg); }
.plan .for { font-size: 14px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.plan h3 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 30px; letter-spacing: var(--display-tracking); }
.plan .who { margin-top: 12px; color: var(--ink-2); }
.plan ul { margin-top: 22px; display: grid; gap: 12px; }
.plan li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.plan li svg { color: var(--ok); margin-top: 3px; }
.plan li.plus svg { color: var(--action); }
.plan li.plus strong { color: var(--action-ink); font-weight: 600; }
.plan .price { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line); margin-top: 26px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14.5px; color: var(--muted); }
.compare { margin-top: 32px; width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; font-size: 15px; }
.compare th, .compare td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--surface-2); font-size: 13.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.compare td.c { width: 170px; text-align: center; }
.compare td.c svg { margin: 0 auto; }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
.compare .yes { color: var(--ok); }
.compare .no { color: var(--line-2); }

/* FAQ i zakończenie */
.faq { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.faq h3 { font-size: 17.5px; margin-bottom: 8px; }
.faq p { color: var(--ink-2); font-size: 15.5px; }
.cta-end { background: var(--dark); color: var(--on-dark); border-radius: var(--r-lg); padding: 56px; display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 32px; align-items: center; }
.cta-end .h2 { color: var(--on-dark); }
.cta-end p { color: var(--on-dark-muted); margin-top: 14px; max-width: 52ch; font-size: 17px; }
.cta-end .btn-primary { background: #fff; color: var(--dark); }
.cta-end .btn-primary:hover { background: #E8ECF6; }
.site-footer { padding: 40px 0 32px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* ---------- Strona główna, kierunek B: wyśrodkowany, przyjazny ---------- */
[data-theme="b"] .hero { padding-top: 64px; }
[data-theme="b"] .hero .wrap { grid-template-columns: 1fr; gap: 48px; justify-items: center; text-align: center; }
[data-theme="b"] .hero h1 { max-width: 24ch; margin: 0 auto; font-size: clamp(36px, 4.8vw, 64px); }
[data-theme="b"] .hero .lead { margin-left: auto; margin-right: auto; }
[data-theme="b"] .hero-cta, [data-theme="b"] .hero-note { justify-content: center; }
[data-theme="b"] .hero-visual { width: 100%; max-width: 880px; padding-top: 0; }
[data-theme="b"] .peek { display: grid; grid-template-columns: 1fr 1.25fr; text-align: left; }
[data-theme="b"] .peek-top { grid-column: 1 / -1; }
[data-theme="b"] .peek-result { border-bottom: 0; border-right: 1px solid var(--line); align-content: center; padding: 28px; }
[data-theme="b"] .peek-result .v { font-size: 22px; }
[data-theme="b"] .peek-foot { grid-column: 1 / -1; }
[data-theme="b"] .peek-tag { left: 50%; top: -16px; transform: translateX(-50%); }
[data-theme="b"] .eyebrow { background: var(--surface); padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); }
[data-theme="b"] .hero::before { content: ""; position: absolute; inset: auto -10% -40% -10%; height: 70%; background: radial-gradient(60% 60% at 50% 30%, #DDEFE2 0%, transparent 70%); z-index: -1; }
[data-theme="b"] .step .num { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); font-size: 26px; }
[data-theme="b"] .plan.featured { border-color: var(--ok); }
[data-theme="b"] .kicker { color: var(--ok); }

/* ---------- Strona główna, kierunek C: ciemny pas, siatka, dziennik ---------- */
[data-theme="c"] .site-header { background: var(--dark); color: var(--on-dark); }
[data-theme="c"] .site-header.scrolled { border-bottom-color: #2A3243; }
[data-theme="c"] .site-nav button { color: var(--on-dark-muted); }
[data-theme="c"] .site-nav button:hover { color: #fff; background: rgba(255,255,255,.08); }
[data-theme="c"] .site-header .btn-primary { background: var(--action); }
[data-theme="c"] .hero { background: var(--dark); color: var(--on-dark); padding: 64px 0 96px;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 40px 40px; }
[data-theme="c"] .hero h1 { color: #fff; font-size: clamp(36px, 4.6vw, 62px); max-width: 17ch; }
[data-theme="c"] .hero .lead { color: var(--on-dark-muted); }
[data-theme="c"] .eyebrow { color: #C7CFDD; font-family: var(--font-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; }
[data-theme="c"] .hero-note { color: var(--on-dark-muted); }
[data-theme="c"] .hero .btn-secondary { background: transparent; color: #fff; border-color: #3A4458; }
[data-theme="c"] .hero .btn-secondary:hover { background: rgba(255,255,255,.06); border-color: #7C9BFF; }
[data-theme="c"] .hero :focus-visible { box-shadow: 0 0 0 2px var(--dark), 0 0 0 4px #7C9BFF; }
[data-theme="c"] .peek { background: #161C29; border-color: #2A3243; color: var(--on-dark); box-shadow: 0 30px 80px -30px rgba(0,0,0,.8); }
[data-theme="c"] .peek-top, [data-theme="c"] .peek-foot { background: #121826; border-color: #2A3243; }
[data-theme="c"] .peek-result { border-color: #2A3243; }
[data-theme="c"] .peek-result .ico { background: rgba(53, 192, 120, .14); color: #5FD497; }
[data-theme="c"] .peek-top .url, [data-theme="c"] .peek-result .k, [data-theme="c"] .tl-mini .d, [data-theme="c"] .peek-foot { color: var(--on-dark-muted); }
[data-theme="c"] .tl-mini li + li { border-color: #2A3243; }
[data-theme="c"] .tl-mini time { color: #C7CFDD; }
[data-theme="c"] .tl-mini .i { background: #222A3A; color: #C7CFDD; }
[data-theme="c"] .tl-mini .i.ok { background: rgba(53, 192, 120, .16); color: #5FD497; }
[data-theme="c"] .peek .b-ok { background: rgba(53, 192, 120, .16); color: #6FE0A6; }
[data-theme="c"] .peek-tag { background: var(--action); color: #fff; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; transform: none; left: 0; top: 0; border-radius: 3px; }
[data-theme="c"] .h2 { font-size: clamp(28px, 3vw, 40px); }
[data-theme="c"] .kicker { font-family: var(--font-mono); font-size: 12px; }
[data-theme="c"] .step .num { font-family: var(--font-mono); font-size: 14px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 3px; width: max-content; padding: 4px 8px; }
[data-theme="c"] .tl .when { color: var(--action-ink); }
[data-theme="c"] .section-alt { background: var(--surface); }

/* =====================================================================
   WIDOKI PANELI (wspólne)
   ===================================================================== */
.app { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.side {
  background: var(--dark); color: var(--on-dark); padding: 18px 14px; display: flex; flex-direction: column; gap: 22px;
  position: sticky; top: 0; height: 100vh;
}
.side .brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px; font-weight: 700; }
.side nav { display: grid; gap: 2px; }
.side nav button {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0;
  color: var(--on-dark-muted); padding: 9px 10px; border-radius: var(--r-sm); font-weight: 600; font-size: 14.5px;
}
.side nav button:hover { background: rgba(255,255,255,.07); color: #fff; }
.side nav button[aria-current="page"] { background: rgba(255,255,255,.12); color: #fff; }
.side nav .count { margin-left: auto; font-size: 12px; background: var(--warn-line); color: #2A1B00; border-radius: 999px; padding: 1px 7px; font-weight: 700; }
.side .who { margin-top: auto; display: flex; gap: 10px; align-items: center; padding: 10px 8px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13.5px; }
.side .who small { display: block; color: var(--on-dark-muted); font-size: 12px; }
.side :focus-visible { box-shadow: 0 0 0 2px var(--dark), 0 0 0 4px #8FA6FF; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: #E7ECFB; color: #1D3AA6; flex: none; }
.avatar.sm { width: 26px; height: 26px; font-size: 11.5px; }
.avatar.t { background: #FBEFD7; color: #7A4A00; }
.avatar.e { background: #E2F1E7; color: #1E6A44; }

.main { padding: 28px 36px 40px; min-width: 0; }
.topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; font-size: 14px; color: var(--muted); }
.topline .clock { font-family: var(--font-mono); color: var(--ink-2); }
.page-title { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: clamp(26px, 2.6vw, 34px); line-height: 1.12; }
.page-sub { color: var(--ink-2); margin-top: 6px; }

.counters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 22px 0 26px; }
.counter { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 2px; text-align: left; }
button.counter:hover { border-color: var(--line-2); background: var(--surface-2); }
button.counter[aria-pressed="true"] { border-color: var(--action); box-shadow: inset 0 0 0 1px var(--action); }
.counter .n { font-size: 28px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.counter .l { font-size: 13.5px; color: var(--muted); font-weight: 600; display: flex; gap: 6px; align-items: center; }
.counter.warn .n { color: var(--warn); }
.counter.bad .n { color: var(--bad); }
.counter.ok .n { color: var(--ok); }
.counter.act .n { color: var(--action-ink); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 18px; font-weight: 700; }
.panel-head .tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 5px 12px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); min-height: 34px; }
.chip:hover { border-color: var(--action); color: var(--action-ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
[data-theme="c"] .chip { border-radius: 3px; }

/* Kolejka spraw */
.q-head, .q-row {
  display: grid;
  grid-template-columns: 104px minmax(140px, 1fr) minmax(200px, 2fr) 92px minmax(130px, 1fr) minmax(170px, 1.5fr);
  gap: 14px; align-items: center; padding: var(--row-pad) 18px;
}
.q-head { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-bottom: 1px solid var(--line); padding-top: 10px; padding-bottom: 10px; }
.q-row { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; position: relative; }
.q-row:last-child { border-bottom: 0; }
.q-row:hover { background: var(--surface-2); }
.q-row.is-open { background: var(--action-soft); }
.q-row.is-new::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--warn-line); }
.q-row.is-urgent::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--bad); }
.q-row.is-closed { color: var(--muted); }
.q-row.is-closed .q-title { font-weight: 500; }
.q-site { font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.q-site small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.q-title { font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.q-title .badge { margin-top: 5px; }
.q-time { font-family: var(--font-mono); font-size: 13.5px; color: var(--ink-2); line-height: 1.3; }
.q-time small { display: block; font-family: var(--font-body); color: var(--muted); font-size: 12px; }
.q-owner { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 1.25; }
.q-owner .none { color: var(--warn); font-weight: 600; }
.q-next { font-size: 13.5px; color: var(--ink-2); line-height: 1.35; }
.q-next .badge { margin-bottom: 4px; }
.q-empty { padding: 28px 18px; color: var(--muted); text-align: center; }
.lbl-m { display: none; }

/* Witryny */
.sites { margin-top: 26px; }
.search { position: relative; }
.search input { min-height: 38px; padding: 7px 12px 7px 34px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); width: 220px; font-size: 14.5px; }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.check { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 6px 4px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--action); }
.s-head, .s-row { display: grid; grid-template-columns: minmax(180px, 1.4fr) 140px minmax(120px, 1fr) minmax(150px, 1.1fr) minmax(170px, 1.3fr) 130px; gap: 14px; align-items: center; padding: var(--row-pad) 18px; }
.s-head { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-bottom: 1px solid var(--line); padding-top: 10px; padding-bottom: 10px; }
.s-row { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
.s-row:last-child { border-bottom: 0; }
.s-row:hover { background: var(--surface-2); }
.s-row .name { font-weight: 700; font-size: 14.5px; }
.s-row .name small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.s-row .cell small { display: block; color: var(--muted); font-size: 12.5px; }

/* ---------- Boczny panel (dialog) ---------- */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--surface); }
dialog::backdrop { background: rgba(15, 18, 28, .42); }
.drawer {
  margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(620px, 100vw); max-width: 100vw;
  border-left: 1px solid var(--line); box-shadow: var(--shadow-lg);
  animation: drawer-in .2s ease-out;
}
@keyframes drawer-in { from { transform: translateX(24px); } to { transform: none; } }
.drawer-inner { display: flex; flex-direction: column; height: 100%; }
.d-head { padding: 18px 22px 16px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; background: var(--surface); }
.d-head .row1 { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.d-head .crumb { font-size: 13.5px; color: var(--muted); }
.d-head h2 { font-size: 22px; font-weight: 700; line-height: 1.25; outline: none; }
.d-head .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.icon-btn { width: 40px; height: 40px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; flex: none; color: var(--ink-2); }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.d-body { padding: 6px 22px 28px; overflow-y: auto; flex: 1; }
.d-actions { padding: 14px 22px; border-top: 1px solid var(--line); background: var(--surface-2); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.d-actions .hint { font-size: 13px; color: var(--muted); flex-basis: 100%; }
.d-sec { padding: 18px 0; border-bottom: 1px solid var(--line); }
.d-sec:last-child { border-bottom: 0; }
.d-sec h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.facts { display: grid; grid-template-columns: 170px 1fr; gap: 8px 16px; font-size: 14.5px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }
.code { font-family: var(--font-mono); font-size: 13px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; color: var(--ink-2); }
.code .add { color: var(--ok); } .code .del { color: var(--bad); }
.hist li { display: grid; grid-template-columns: 54px 1fr; gap: 12px; padding: 7px 0; font-size: 14px; }
.hist time { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.hist .by { color: var(--muted); }
.private { background: #FFF8E6; border: 1px solid #F0D9A4; border-radius: var(--r); padding: 14px; }
.private h3 { color: #7A4A00; }
.private .note { font-size: 14.5px; padding: 8px 0; border-bottom: 1px dashed #EAD3A0; }
.private .note:last-of-type { border-bottom: 0; }
.private .note small { display: block; color: #8B6A2F; font-size: 12.5px; }
.to-client { background: var(--action-soft); border: 1px solid #C9D3F6; border-radius: var(--r); padding: 14px; }
.to-client h3 { color: var(--action-ink); }
.answer { border-radius: var(--r); padding: 12px 14px; font-size: 14.5px; display: flex; gap: 10px; }
.answer svg { flex: none; margin-top: 2px; }
.answer.ok { background: var(--ok-soft); color: #145837; }
.answer.bad { background: var(--bad-soft); color: #7F1D15; }
.answer.wait { background: var(--info-soft); color: var(--ink-2); }

/* Formularze */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .field .lab { font-weight: 600; font-size: 14.5px; }
.field .help { font-size: 13px; color: var(--muted); }
.input, .textarea, .select {
  width: 100%; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; padding: 10px 12px; font-size: 15px; min-height: 44px;
}
.textarea { min-height: 92px; resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--action); box-shadow: 0 0 0 3px var(--action-soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio-row { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-row label { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 8px 12px; font-weight: 500; font-size: 14.5px; cursor: pointer; }
.radio-row input { accent-color: var(--action); }
.radio-row label:has(input:checked) { border-color: var(--action); background: var(--action-soft); }
.err { color: var(--bad); font-size: 13.5px; font-weight: 600; }

/* Okno modalne */
.modal { width: min(600px, calc(100vw - 24px)); max-height: calc(100vh - 40px); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); animation: modal-in .18s ease-out; }
.modal.wide { width: min(820px, calc(100vw - 24px)); }
@keyframes modal-in { from { transform: translateY(8px); } to { transform: none; } }
.m-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 22px 24px 8px; }
.m-head h2 { font-size: 22px; font-weight: 700; line-height: 1.25; outline: none; }
.m-head p { color: var(--muted); margin-top: 4px; font-size: 14.5px; }
.m-body { padding: 12px 24px 8px; }
.m-foot { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; padding: 12px 24px 22px; }
.demo-note { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; padding: 10px 12px; background: var(--surface-2); border-radius: var(--r-sm); margin-top: 6px; }
.done-box { text-align: center; padding: 18px 8px 8px; }
.done-box .big { width: 56px; height: 56px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin: 0 auto 14px; }
.done-box h3 { font-size: 20px; margin-bottom: 8px; }
.done-box p { color: var(--ink-2); max-width: 44ch; margin: 0 auto; }

/* Raport */
.report-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.r-stat { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; background: var(--surface-2); }
.r-stat .n { font-size: 24px; font-weight: 700; line-height: 1.15; }
.r-stat .l { font-size: 13.5px; color: var(--muted); }
.r-list li { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.r-list time { color: var(--muted); font-size: 13.5px; }
.report h3 { font-size: 15px; margin: 18px 0 8px; }

/* =====================================================================
   WIDOK 3. PANEL KLIENTA
   ===================================================================== */
.client { min-height: 100vh; }
.c-top { background: var(--surface); border-bottom: 1px solid var(--line); }
.c-top .wrap { display: flex; align-items: center; gap: 18px; min-height: 64px; max-width: 1080px; }
.c-top .site-id { display: flex; flex-direction: column; line-height: 1.25; padding-left: 18px; border-left: 1px solid var(--line); }
.c-top .site-id strong { font-size: 15px; }
.c-top .site-id span { font-size: 13px; color: var(--muted); }
.c-top .right { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 14px; }
.c-main { max-width: 1080px; margin: 0 auto; padding: 36px 32px 40px; }
.c-hello { font-size: 15px; color: var(--muted); margin-bottom: 6px; }
.c-title { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; max-width: 22ch; outline: none; }
.c-title .ok-word { color: var(--ok); }
.c-sub { color: var(--ink-2); margin-top: 10px; font-size: 17px; max-width: 60ch; }
.c-status { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 12px; margin-top: 26px; }
.c-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: grid; gap: 6px; align-content: start; }
.c-card .k { font-size: 13.5px; font-weight: 600; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.c-card .v { font-size: 18px; font-weight: 700; line-height: 1.3; }
.c-card .s { font-size: 13.5px; color: var(--ink-2); }
.c-card.main-test { border-color: #BFDFCB; background: linear-gradient(180deg, var(--ok-soft), var(--surface) 75%); }
.c-card.main-test .v { font-size: 20px; }
.c-card .k svg { color: var(--ok); }
.c-card .k .ico-n { color: var(--ink-2); }

.decision { margin-top: 28px; scroll-margin-top: 16px; border-radius: var(--r-lg); padding: 22px 24px; border: 1px solid var(--warn-line); background: var(--warn-soft); display: grid; gap: 12px; }
.decision .lab { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--warn); font-size: 14px; text-transform: uppercase; letter-spacing: .05em; }
.decision h2 { font-size: 21px; line-height: 1.35; max-width: 60ch; outline: none; }
.decision p { color: var(--ink-2); max-width: 70ch; }
.decision .acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.decision.calm { border-color: #BFDFCB; background: var(--ok-soft); }
.decision.calm .lab { color: var(--ok); }
.decision.calm h2 { font-size: 18px; }
.decision.urgent { border-color: #EBB2AA; background: var(--bad-soft); }
.decision.urgent .lab { color: var(--bad); }
.decision.answered { border-color: #C9D3F6; background: var(--action-soft); }
.decision.answered .lab { color: var(--action-ink); }

.c-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 28px; margin-top: 32px; align-items: start; }
.c-sec-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.c-sec-title h2 { font-size: 20px; font-weight: 700; }
.c-tl { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 6px 22px; }
.c-tl > li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.c-tl > li:last-child { border-bottom: 0; }
.c-tl .ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--info-soft); color: var(--ink-2); }
.c-tl .ic.ok { background: var(--ok-soft); color: var(--ok); }
.c-tl .ic.act { background: var(--action-soft); color: var(--action-ink); }
.c-tl .ic.warn { background: var(--warn-soft); color: var(--warn); }
.c-tl .when { font-size: 13px; color: var(--muted); font-weight: 600; }
.c-tl h3 { font-size: 16.5px; font-weight: 700; margin-top: 1px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.c-tl p { color: var(--ink-2); margin-top: 4px; font-size: 15px; }
.c-tl li.fresh { animation: fresh 2.4s ease-out; }
@keyframes fresh { 0% { background: var(--action-soft); } 100% { background: transparent; } }
.c-side { display: grid; gap: 16px; }
.c-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.c-box h2 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.c-box p { color: var(--ink-2); font-size: 15px; }
.c-box .btn { margin-top: 14px; width: 100%; }
.c-box .care { display: flex; gap: 12px; align-items: center; margin-top: 4px; }
.c-box .care strong { display: block; }
.c-box .care small { color: var(--muted); font-size: 13px; }
.tickets li { padding: 12px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; font-size: 14.5px; }
.tickets li:first-child { border-top: 0; padding-top: 4px; }
.tickets .t-row { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.tickets .t-title { font-weight: 600; }
.tickets small { color: var(--muted); font-size: 12.5px; }
.tickets .reply { font-size: 14px; color: var(--ink-2); background: var(--surface-2); border-radius: var(--r-sm); padding: 8px 10px; margin-top: 4px; }

/* ---------- Kierunek C: gęstsze panele ---------- */
[data-theme="c"] .q-time, [data-theme="c"] .counter .n { font-family: var(--font-mono); }
[data-theme="c"] .c-title { font-size: clamp(26px, 3vw, 36px); }
[data-theme="c"] .c-card .v { font-family: var(--font-mono); font-size: 16px; }
[data-theme="c"] .c-card.main-test .v { font-family: var(--font-body); font-size: 19px; }
[data-theme="c"] .c-top { background: var(--dark); color: var(--on-dark); border-bottom-color: #2A3243; }
[data-theme="c"] .c-top .site-id { border-left-color: #2A3243; }
[data-theme="c"] .c-top .site-id span, [data-theme="c"] .c-top .right { color: var(--on-dark-muted); }
[data-theme="c"] .c-top .btn-ghost { color: #fff; }
[data-theme="c"] .c-top .btn-ghost:hover { background: rgba(255,255,255,.08); }
[data-theme="c"] .c-tl .when { font-family: var(--font-mono); font-weight: 400; }

/* ---------- Kierunek B: miękkie panele ---------- */
[data-theme="b"] .side { background: var(--dark); }
[data-theme="b"] .c-card { border-radius: 20px; }
[data-theme="b"] .c-title { font-size: clamp(30px, 3.6vw, 46px); }

/* =====================================================================
   SZEROKOŚCI
   ===================================================================== */
@media (max-width: 1180px) {
  .q-head { display: none; }
  .q-row { grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1.6fr) 84px; grid-template-areas: "p s t w" "p o n n"; row-gap: 8px; align-items: start; }
  .q-row > :nth-child(1) { grid-area: p; }
  .q-row > :nth-child(2) { grid-area: s; }
  .q-row > :nth-child(3) { grid-area: t; }
  .q-row > :nth-child(4) { grid-area: w; }
  .q-row > :nth-child(5) { grid-area: o; }
  .q-row > :nth-child(6) { grid-area: n; }
  .lbl-m { display: inline; color: var(--muted); font-size: 12.5px; font-weight: 600; margin-right: 4px; }
  .s-head { display: none; }
  .s-row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); row-gap: 10px; align-items: start; }
}
@media (max-width: 1100px) {
  .wrap { padding: 0 24px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { max-width: 18ch; }
  .hero-visual { max-width: 620px; }
  .story { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .app { grid-template-columns: 72px minmax(0, 1fr); }
  .side { padding: 16px 10px; align-items: center; }
  .side .brand .txt, .side nav .txt, .side .who .txt { display: none; }
  .side nav button { justify-content: center; position: relative; }
  .side nav .count { position: absolute; top: 2px; right: 2px; margin: 0; }
  .main { padding: 24px 24px 36px; }
  .c-status { grid-template-columns: 1fr 1fr; }
  .c-grid { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; gap: 20px; }
  .cta-end { grid-template-columns: 1fr; padding: 40px; }
}
@media (max-width: 760px) {
  body { font-size: 15.5px; padding-bottom: 84px; }
  .wrap { padding: 0 18px; }
  .site-nav { display: none; }
  .site-header .wrap { min-height: 60px; gap: 12px; }
  .site-header .btn { margin-left: auto; min-height: 40px; padding: 8px 14px; font-size: 14px; }
  .hero { padding: 32px 0 56px; }
  .hero h1 { font-size: clamp(32px, 9vw, 40px); }
  [data-theme="b"] .hero h1, [data-theme="c"] .hero h1 { font-size: clamp(30px, 8.4vw, 38px); }
  .hero .lead { margin-top: 18px; }
  .hero-cta { margin-top: 24px; }
  .hero-cta .btn { width: 100%; }
  .peek-tag { left: 10px; top: -4px; }
  [data-theme="b"] .peek { grid-template-columns: 1fr; }
  [data-theme="b"] .peek-result { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px; }
  .section { padding: 64px 0; }
  .tl li { grid-template-columns: 1fr; gap: 6px; }
  .tl .when small { display: inline; margin-left: 6px; }
  .steps, .plans { grid-template-columns: 1fr; }
  .plan { padding: 24px; }
  .compare { font-size: 14px; }
  .compare th, .compare td { padding: 11px 10px; }
  .compare td.c { width: 74px; }
  .cta-end { padding: 28px 22px; }
  .presbar { bottom: 8px; padding: 4px; gap: 2px; }
  .presbar-label, .long { display: none; }
  .short { display: inline; }
  .presbar button, .presbar a { padding: 6px 10px; }
  .presbar-hint { bottom: 60px; font-size: 12.5px; }

  .app { grid-template-columns: 1fr; }
  .side { position: sticky; top: 0; z-index: 20; height: auto; flex-direction: row; align-items: center; padding: 8px 12px; gap: 10px; }
  .side nav { display: flex; gap: 2px; margin-left: auto; }
  .side nav button { padding: 8px 10px; }
  .side nav .txt { display: inline; font-size: 13.5px; }
  .side nav .ico-nav { display: none; }
  .side nav .count { position: static; margin-left: 4px; }
  .side .who { display: none; }
  .main { padding: 18px 14px 28px; }
  .counters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 16px 0 18px; }
  .counter { padding: 10px 12px; }
  .counter .n { font-size: 22px; }
  .counter .l { font-size: 12.5px; }
  .panel-head { padding: 14px; }
  .q-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "s p" "t t" "o w" "n n"; padding: 14px; row-gap: 8px; }
  .s-row { grid-template-columns: 1fr 1fr; padding: 14px; }
  .s-row > :first-child { grid-column: 1 / -1; }
  .search input { width: 100%; }
  .panel-head .tools { width: 100%; }
  .search { flex: 1; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 8px; }
  .drawer { width: 100vw; border-left: 0; }
  .d-head, .d-body, .d-actions { padding-left: 16px; padding-right: 16px; }
  .d-actions .btn { flex: 1 1 auto; }
  .modal { max-height: calc(100vh - 16px); }
  .m-head, .m-body, .m-foot { padding-left: 18px; padding-right: 18px; }
  .m-foot .btn { flex: 1 1 auto; }
  .field-row { grid-template-columns: 1fr; }
  .report-grid { grid-template-columns: 1fr 1fr; }

  .c-top .wrap { gap: 10px; min-height: 56px; }
  .c-top .site-id { padding-left: 10px; }
  .c-top .site-id span { display: none; }
  .c-top .right .who-name { display: none; }
  .c-main { padding: 22px 16px 32px; }
  .c-status { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
  .c-status .main-test { grid-column: 1 / -1; }
  .c-card { padding: 12px 14px; }
  .c-card .v { font-size: 16px; }
  .decision { padding: 18px; margin-top: 20px; }
  .decision h2 { font-size: 18.5px; }
  .decision .acts .btn { flex: 1 1 100%; }
  .c-tl { padding: 2px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   KIERUNKI D, E, F
   ===================================================================== */
/* ---------- D. Protokół: papier, śliwka, ultramaryna tylko dla szczegółów ---------- */
[data-theme="d"] {
  --bg: #FBF8F3; --bg-2: #F1EBE2; --surface: #FFFFFF; --surface-2: #F7F2EA;
  --ink: #2E1A2B; --ink-2: #4A3846; --muted: #6B5A67; --line: #E6DDD2; --line-2: #D2C5B8;
  --action: #4A1F45; --action-hover: #36152F; --action-soft: #E9ECFD; --action-ink: #2B3FD1;
  --ok: #1D6B45; --ok-soft: #E4F1E8; --warn: #8A4B00; --warn-soft: #FBEBD3; --warn-line: #E2A54A;
  --bad: #A3201A; --bad-soft: #FBE1DE; --prog: #5B3A6E; --prog-soft: #EFE6F2; --none: #555555; --none-soft: #EEECEA;
  --dark: #2E1A2B; --dark-2: #45293F; --on-dark: #FBF8F3; --on-dark-muted: #CDBFC9;
  --font-display: Cambria, 'Iowan Old Style', Charter, Georgia, serif;
  --display-weight: 400; --display-tracking: -0.02em;
  --r-sm: 3px; --r: 4px; --r-lg: 6px;
  --shadow: 0 1px 0 rgba(46, 26, 43, .06), 0 10px 30px -20px rgba(46, 26, 43, .3);
}
/* ---------- E. Ścieżka: atrament, jasny błękit, mandarynka tylko dla aktywnego kroku ---------- */
[data-theme="e"] {
  --bg: #F4F8FB; --bg-2: #E6EFF6; --surface: #FFFFFF; --surface-2: #EEF5FB;
  --ink: #14202E; --ink-2: #33404F; --muted: #56616E; --line: #DCE5EE; --line-2: #C3D0DD;
  --action: #14202E; --action-hover: #000000; --action-soft: #E3EFFA; --action-ink: #1F5F99;
  --ok: #1A6B43; --ok-soft: #E3F3EA; --warn: #6E5200; --warn-soft: #FFF4C7; --warn-line: #E8C53A;
  --bad: #C0241B; --bad-soft: #FDE3E1; --prog: #1F5F99; --prog-soft: #E3EFFA; --none: #555E68; --none-soft: #EEF1F4;
  --brand-accent: #D9600F; --brand-accent-ink: #B04A00;
  --dark: #14202E; --dark-2: #22324A; --on-dark: #F4F8FB; --on-dark-muted: #AFBCCB;
  --font-display: 'Segoe UI Variable Display', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-label: Bahnschrift, 'DIN Alternate', 'Arial Narrow', 'Segoe UI', sans-serif;
  --display-weight: 700; --display-tracking: -0.025em;
  --r-sm: 8px; --r: 12px; --r-lg: 16px;
}
/* ---------- F. Pod Ręką: krem, burgund, przygaszony róż ---------- */
[data-theme="f"] {
  --bg: #FBF3EA; --bg-2: #F3E6D8; --surface: #FFFDFA; --surface-2: #F6EBDF;
  --ink: #2B1B1E; --ink-2: #4A3438; --muted: #6E5A5D; --line: #EADCCD; --line-2: #D9C5B2;
  --action: #7A1F35; --action-hover: #5E1728; --action-soft: #F3DADD; --action-ink: #7A1F35;
  --ok: #2F6B4A; --ok-soft: #E3F0E7; --warn: #7F4D00; --warn-soft: #FBEBD0; --warn-line: #DDA552;
  --bad: #1E1416; --bad-soft: #F1E9EA; --alarm: #FFD23F; --prog: #3D5A80; --prog-soft: #E4EBF3; --none: #5A5456; --none-soft: #EFEBE8;
  --rose: #F3DADD;
  --dark: #3B1621; --dark-2: #55222F; --on-dark: #FBF3EA; --on-dark-muted: #D9BFC3;
  --font-display: Constantia, 'Palatino Linotype', Georgia, serif;
  --display-weight: 700; --display-tracking: -0.01em;
  --r-sm: 10px; --r: 16px; --r-lg: 22px;
}

/* Pięć stanów: kolor + ikona + słowo; w D-F także kształt i ramka */
[data-theme="d"] .b-action, [data-theme="e"] .b-action, [data-theme="f"] .b-action { background: var(--prog-soft); color: var(--prog); }
.b-none { background: var(--none-soft, #EEF0F4); color: var(--none, #555); border: 1px dashed currentColor; }
[data-theme="d"] .badge { border-radius: 2px; }
[data-theme="d"] .b-bad { border: 2px solid var(--bad); }
[data-theme="e"] .b-bad { background: var(--bad); color: #fff; border-color: var(--bad); }
[data-theme="e"] .b-warn { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-line); }
[data-theme="f"] .b-bad { background: #1E1416; color: #fff; border-color: #1E1416; }
[data-theme="f"] .b-bad svg { color: var(--alarm); }
[data-theme="f"] .prio-pilny { color: #1E1416; }
[data-theme="f"] .decision.urgent { background: #1E1416; color: #fff; border: 0; border-left: 8px solid var(--alarm); }
[data-theme="f"] .decision.urgent .lab, [data-theme="f"] .decision.urgent p { color: #F2E8E9; }
[data-theme="f"] .decision.urgent .lab svg { color: var(--alarm); }
[data-theme="f"] .answer.bad { background: #1E1416; color: #fff; }
[data-theme="f"] .answer.bad svg { color: var(--alarm); }

/* Wspólne: kroki testu */
.track { display: flex; margin: 0; padding: 0; list-style: none; }
.track .st { flex: 1 1 0; position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.track .st + .st::before { content: ""; position: absolute; top: 17px; right: calc(50% + 22px); left: calc(-50% + 22px); height: 2px; background: var(--line-2); }
.track .st-ok + .st::before { background: var(--ok); }
.track .st > button { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; background: none; border: 0; padding: 0 0 6px; border-radius: var(--r-sm); }
.track .st > button:hover .nm { text-decoration: underline; text-underline-offset: 3px; }
.track .st > .dot { margin-bottom: 4px; }
.track .dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line-2); color: var(--muted); position: relative; z-index: 1; }
.track .st-ok .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.track .st-warn .dot { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn); border-radius: 8px; }
.track .st-bad .dot { background: var(--bad); border-color: var(--bad); color: #fff; border-radius: 6px; }
[data-theme="f"] .track .st-bad .dot { color: var(--alarm); }
.track .st-none .dot { border-style: dashed; background: var(--none-soft, #EEF1F4); color: var(--none, #555); }
.track .st-action .dot { background: var(--prog-soft); border-color: var(--prog); color: var(--prog); }
.track .nm { font-family: var(--font-label, var(--font-body)); font-weight: 600; font-size: 14.5px; line-height: 1.2; }
.track .tm { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.track .st-bad .nm { color: var(--bad); }
.track .is-active .dot { box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--brand-accent, var(--action)); }
.track .is-active .nm { color: var(--brand-accent-ink, var(--ink)); }
.track .is-active > button .nm::after { content: " · oglądasz"; font-weight: 400; font-size: 12px; }
.track-sm .dot { width: 26px; height: 26px; }
.track-sm .st + .st::before { top: 12px; right: calc(50% + 16px); left: calc(-50% + 16px); }
.track-sm .nm { font-size: 13px; }

/* Wspólne: liczby przy wariantach */
.plan-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; margin: 22px 0 0; }
.plan-nums div { background: var(--surface); padding: 10px 12px; }
.plan-nums dt { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.plan-nums dd { margin: 2px 0 0; font-weight: 600; font-size: 14.5px; }

/* ---------- D: strona jak raport ---------- */
.hero-report { padding: 48px 0 96px; }
.hero-report .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.sheet { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 48px 56px 44px; position: relative; }
.sheet::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--ink); }
.sheet-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13px; color: var(--muted); padding-bottom: 16px; border-bottom: 1px solid var(--line-2); margin-bottom: 40px; font-variant-numeric: tabular-nums; }
.sheet-label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.hero-report h1, .c-report .c-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(42px, 6vw, 84px); line-height: 1.0; letter-spacing: -0.025em; max-width: 14ch; }
.verdict { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 18px; margin: 22px 0 36px; color: var(--ink-2); }
.sheet-h { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); padding-bottom: 8px; border-bottom: 2px solid var(--ink); margin-bottom: 6px; }
.proof { margin: 0; }
.proof > div { display: grid; grid-template-columns: 96px 1fr; gap: 18px; padding: 11px 0; border-bottom: 1px dotted var(--line-2); align-items: baseline; }
.proof dt { font-family: var(--font-mono); font-size: 14px; color: var(--ink-2); }
.proof dd { margin: 0; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.sign { display: flex; align-items: flex-end; gap: 16px; margin: 30px 0 34px; color: var(--ink); }
.sign p { font-size: 15px; line-height: 1.4; border-top: 1px solid var(--ink); padding-top: 6px; }
.sign p span { color: var(--muted); font-size: 13.5px; }
.margin { border-left: 1px solid var(--line-2); padding: 8px 0 8px 24px; display: grid; gap: 16px; color: var(--ink-2); position: sticky; top: 96px; }
.margin .note { font-family: var(--font-display); font-style: italic; font-size: 17px; color: var(--ink); }
.month { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line-2); }
.m-stat { padding: 22px 20px 22px 0; display: grid; gap: 6px; }
.m-stat + .m-stat { border-left: 1px solid var(--line); padding-left: 20px; }
.m-stat .n { font-family: var(--font-display); font-size: 46px; line-height: 1; }
.m-stat .l { color: var(--ink-2); font-size: 15px; }
.month-foot { margin-top: 18px; color: var(--muted); max-width: 70ch; }
[data-theme="d"] .linkish { display: inline-flex; gap: 6px; align-items: center; color: var(--action-ink); }
[data-theme="d"] .kicker { color: var(--ink-2); }
[data-theme="d"] .step .num { color: var(--ink); }
[data-theme="d"] .h2 { font-weight: 400; }
[data-theme="d"] .plan.featured { border-color: var(--ink); border-width: 2px; }

/* D: operator, lista odstępstw */
.dev-row { display: grid; gap: 10px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 18px 20px; position: relative; }
.dev-row:hover { background: var(--surface-2); }
.dev-row.is-new::before, .dev-row.is-urgent::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; background: var(--warn-line); }
.dev-row.is-urgent::before { background: var(--bad); }
.dev-row.is-closed { color: var(--muted); }
.dv-head { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.dv-site { font-weight: 700; font-size: 15.5px; }
.dv-time { margin-left: auto; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.dv-cmp { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.dv-cmp > span { padding: 10px 14px; display: grid; gap: 2px; font-size: 14.5px; }
.dv-cmp small { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.dv-cmp .exp { color: var(--ink-2); background: var(--surface-2); }
.dv-cmp .fnd { font-weight: 600; border-left: 1px solid var(--line); }
.dev-row.is-closed .fnd { font-weight: 400; }
.dv-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; font-size: 14px; color: var(--ink-2); }
.dv-foot .none { color: var(--warn); display: inline-flex; gap: 6px; align-items: center; }

/* D: klient, raport */
.c-report .c-title { font-size: clamp(36px, 5vw, 64px); max-width: 16ch; }
.rep-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; margin-top: 30px; }
table.res { width: 100%; border-collapse: collapse; font-size: 15px; margin-bottom: 14px; }
table.res th, table.res td { text-align: left; padding: 11px 0; border-bottom: 1px dotted var(--line-2); vertical-align: top; }
table.res th { font-weight: 600; }
table.res th small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
table.res td { padding-left: 12px; white-space: nowrap; }
.reg { border-top: 2px solid var(--ink); }
.reg li { display: grid; grid-template-columns: 120px 1fr auto; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.reg li.fresh { animation: fresh 2.4s ease-out; }
.reg .r-when { font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.reg .r-what { display: grid; gap: 3px; }
.reg .r-what span { color: var(--ink-2); font-size: 14.5px; }
[data-theme="d"] .decision { border-radius: 2px; border-width: 1px 1px 1px 6px; }
[data-theme="d"] .c-top { border-bottom: 2px solid var(--ink); }

/* ---------- E: ścieżka zakupu ---------- */
.hero-path { padding: 56px 0 88px; }
.hero-path .wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 48px; align-items: start; }
.hero-path h1 { max-width: 14ch; font-size: clamp(36px, 4.4vw, 60px); }
.paths { display: grid; gap: 16px; }
.path-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; box-shadow: var(--shadow); }
.path-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.path-card h2 { font-size: 19px; font-weight: 700; }
.pc-k { font-family: var(--font-label, var(--font-body)); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.pc-hint { font-size: 13.5px; color: var(--muted); margin: -6px 0 14px; }
.pc-foot { font-size: 14px; color: var(--ink-2); margin-top: 12px; }
.path-card.shop { border-top: 4px solid var(--ink); }
.step-detail { margin-top: 14px; background: var(--surface-2); border-radius: var(--r-sm); padding: 14px 16px; border-left: 4px solid var(--brand-accent, var(--action)); }
.sd-k { font-family: var(--font-label, var(--font-body)); font-size: 13px; color: var(--brand-accent-ink, var(--muted)); font-weight: 600; letter-spacing: .02em; }
.sd-v { font-size: 18px; font-weight: 700; margin: 2px 0 4px; }
.fail-demo { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.fd-legend { display: grid; gap: 12px; font-size: 15px; }
.fd-legend p { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.lg { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.lg-active { box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--brand-accent); background: var(--ok); width: 16px; height: 16px; margin: 4px; }
.lg-warn { background: var(--warn-soft); color: var(--warn); border: 2px solid var(--warn-line); border-radius: 6px; }
.lg-bad { background: var(--bad); color: #fff; border-radius: 5px; }
[data-theme="e"] .eyebrow .dot { background: var(--brand-accent); box-shadow: 0 0 0 4px #FFE7D4; }
[data-theme="e"] .kicker, [data-theme="e"] .page-title, [data-theme="e"] .counter .l { font-family: var(--font-label); }
[data-theme="e"] .kicker { color: var(--action-ink); }
[data-theme="e"] .step .num { color: var(--action-ink); font-family: var(--font-label); }
.journeys { margin-bottom: 22px; }
.j-row { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(260px, 2fr) minmax(170px, 1fr); gap: 18px; align-items: center; width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 14px 18px; text-align: left; }
.j-row:last-child { border-bottom: 0; }
.j-row:hover { background: var(--surface-2); }
.j-site { display: grid; }
.j-site small, .j-verdict small { color: var(--muted); font-size: 12.5px; }
.j-verdict { display: grid; gap: 4px; justify-items: start; }
.client-path { margin-top: 24px; }
.last-ok { display: flex; flex-wrap: wrap; gap: 10px 36px; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.last-ok dt { font-size: 12.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-family: var(--font-label, var(--font-body)); }
.last-ok dd { margin: 2px 0 0; font-weight: 700; font-size: 17px; display: flex; gap: 8px; align-items: center; }
.c-status.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- F: korespondencja ---------- */
.hero-letters { padding: 56px 0 88px; }
.hero-letters .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero-letters h1 { max-width: 15ch; }
.convo { display: flex; flex-direction: column; gap: 14px; }
.convo.wide { max-width: 760px; }
.msg p { font-size: 16.5px; line-height: 1.5; }
.msg .from { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
.msg.owner { align-self: flex-end; max-width: 82%; background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px 20px 4px 20px; padding: 14px 18px; }
.msg.carer { display: flex; gap: 12px; align-items: flex-end; max-width: 92%; }
.msg.carer > div { background: var(--rose, var(--action-soft)); border-radius: 20px 20px 20px 4px; padding: 16px 20px; }
.msg.carer p { font-family: var(--font-display); font-size: 18px; color: var(--ink); }
.msg.carer .avatar { background: var(--action); color: #fff; width: 40px; height: 40px; flex: none; }
.sysnote { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; background: #EEEAE6; border: 1px solid #DDD5CC; border-radius: 6px; padding: 9px 12px; font-family: var(--font-mono); font-size: 13px; color: #3F3A3B; }
.sys-l { display: inline-flex; gap: 6px; align-items: center; font-family: var(--font-body); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #5A5456; }
.sysnote .badge { margin-left: auto; font-family: var(--font-body); }
.alarm { display: flex; gap: 14px; align-items: flex-start; background: #1E1416; color: #fff; border-left: 8px solid var(--alarm, #FFD23F); border-radius: 6px; padding: 14px 16px; }
.alarm .al-ico { color: var(--alarm, #FFD23F); flex: none; margin-top: 2px; }
.alarm strong { display: block; font-size: 15.5px; }
.alarm span { color: #E8DEDF; font-size: 14.5px; }
[data-theme="f"] .eyebrow .dot { background: var(--action); box-shadow: 0 0 0 4px var(--rose); }
[data-theme="f"] .kicker { color: var(--action); }
.ib-group { padding: 6px 0 10px; border-bottom: 1px solid var(--line); }
.ib-group:last-child { border-bottom: 0; }
.ib-h { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; padding: 10px 18px 6px; }
.avatar.none { background: var(--warn-soft); color: var(--warn); }
.ib-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "from time" "subj subj" "snip snip" "tags tags"; gap: 3px 12px; width: calc(100% - 20px); margin: 4px 10px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; position: relative; }
.ib-row:hover { border-color: var(--line-2); background: var(--surface-2); }
.ib-row.is-new { border-color: var(--warn-line); }
.ib-row.is-new .ib-subj::before { content: "● "; color: var(--warn); }
.ib-row.is-urgent { border: 2px solid #1E1416; box-shadow: inset 6px 0 0 var(--alarm, #FFD23F); }
.ib-row.is-closed { opacity: .8; }
.ib-from { grid-area: from; font-weight: 700; font-size: 14px; }
.ib-time { grid-area: time; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.ib-subj { grid-area: subj; font-family: var(--font-display); font-size: 17px; font-weight: 700; line-height: 1.3; }
.ib-snip { grid-area: snip; color: var(--ink-2); font-size: 14px; }
.ib-tags { grid-area: tags; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.l-top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; margin-top: 22px; align-items: start; }
.decision.letter { margin-top: 0; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.letter-from { display: flex; align-items: center; gap: 12px; font-size: 14.5px; }
.letter-from .avatar { background: var(--action); color: #fff; width: 44px; height: 44px; }
.letter-from span { color: var(--muted); font-size: 13.5px; }
.bubble { background: var(--rose, var(--action-soft)); border-radius: 20px 20px 20px 4px; padding: 18px 22px; }
.bubble h2 { font-family: var(--font-display); font-size: 21px; line-height: 1.4; font-weight: 700; }
.bubble p { margin-top: 8px; color: var(--ink-2); }
.decision.letter.calm .bubble h2 { font-weight: 400; font-size: 19px; }
.sys-card { background: #EEEAE6; border: 1px solid #DDD5CC; border-radius: 8px; padding: 16px 18px; }
.sys-card h2 { display: flex; gap: 8px; align-items: center; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: #5A5456; margin-bottom: 10px; }
.sys-card li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 9px 0; border-bottom: 1px solid #DDD5CC; font-size: 14px; align-items: center; }
.sys-card li > span:nth-child(2) { font-family: var(--font-mono); font-size: 12.5px; color: #5A5456; grid-column: 1; }
.sys-card li .badge { grid-column: 2; grid-row: 1 / span 2; }
.sys-card .muted { font-size: 13px; margin-top: 10px; color: #5A5456; }
.thread { display: flex; flex-direction: column; gap: 12px; }
.thread li { display: flex; flex-direction: column; }
.thread li.t-owner { align-items: flex-end; }
.thread li.fresh .msg.carer > div { box-shadow: 0 0 0 3px var(--action); }

/* ---------- D-F: węższe ekrany ---------- */
@media (max-width: 1100px) {
  .hero-report .wrap, .hero-path .wrap, .hero-letters .wrap { grid-template-columns: 1fr; }
  .margin { position: static; }
  .rep-grid, .l-top, .fail-demo { grid-template-columns: 1fr; }
  .month { grid-template-columns: 1fr 1fr; }
  .m-stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .j-row { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 760px) {
  .sheet { padding: 24px 20px 26px; }
  .sheet-meta { margin-bottom: 24px; }
  .hero-report h1 { font-size: clamp(38px, 11vw, 48px); }
  .c-report .c-title { font-size: clamp(32px, 9.5vw, 42px); }
  .proof > div { grid-template-columns: 1fr; gap: 2px; }
  .reg li { grid-template-columns: 1fr; gap: 4px; }
  .dv-cmp { grid-template-columns: 1fr; }
  .dv-cmp .fnd { border-left: 0; border-top: 1px solid var(--line); }
  .dv-time { margin-left: 0; }
  .track .nm { font-size: 12.5px; }
  .track .is-active > button .nm::after { content: ""; }
  .track .dot { width: 30px; height: 30px; }
  .track .st + .st::before { top: 14px; right: calc(50% + 18px); left: calc(-50% + 18px); }
  .track .tm { font-size: 11px; }
  .c-status.three { grid-template-columns: 1fr 1fr; }
  .c-status.three .c-card:first-child { grid-column: 1 / -1; }
  .msg.owner { max-width: 92%; }
  .msg.carer { max-width: 100%; }
  .msg.carer p { font-size: 16.5px; }
  .bubble h2 { font-size: 18.5px; }
  .plan-nums { grid-template-columns: 1fr; }
  .fail-demo { padding: 18px; }
  .month { grid-template-columns: 1fr; }
  .m-stat + .m-stat { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .ib-row { width: calc(100% - 12px); margin: 4px 6px; }
}

[data-theme="d"] .counter.act .n, [data-theme="e"] .counter.act .n, [data-theme="f"] .counter.act .n { color: var(--prog); }

/* ---------- Puls: panele w barwach wersji kreatywnej ---------- */
[data-theme="g"] {
  --bg: #F7F4EC; --bg-2: #EEE7D6; --surface: #FFFDF7; --surface-2: #F7F4EC;
  --ink: #10231F; --ink-2: #2B3D39; --muted: #56675F; --line: #E3DCCB; --line-2: #D1C8B1;
  --action: #0E2A26; --action-hover: #1D4D45; --action-soft: #EAF7C4; --action-ink: #0B7A62;
  --ok: #117A4D; --ok-soft: #DCF2E3; --warn: #8A5600; --warn-soft: #FFF1D6; --bad: #C5362A; --bad-soft: #FFE6E0;
  --dark: #0E2A26; --dark-2: #143A34; --on-dark: #EEF3EF; --on-dark-muted: #A9BDB6;
  --font-display: Bahnschrift, 'DIN Alternate', 'Arial Narrow', 'Segoe UI', sans-serif;
  --display-weight: 700; --display-tracking: -0.01em;
  --r-sm: 999px; --r: 16px; --r-lg: 22px;
  --shadow: 0 1px 0 rgba(14,42,38,.03), 0 24px 50px -32px rgba(14,42,38,.35);
}
[data-theme="g"] .side { background: #0E2A26; }
[data-theme="g"] .side nav button[aria-current="page"] { background: #C8F03C; color: #0E2A26; }
[data-theme="g"] .c-top { background: #0E2A26; color: #EEF3EF; border-bottom-color: #143A34; }
[data-theme="g"] .c-top .site-id { border-left-color: #1D4D45; }
[data-theme="g"] .c-top .site-id span, [data-theme="g"] .c-top .right { color: #A9BDB6; }
[data-theme="g"] .c-title, [data-theme="g"] .page-title { font-stretch: 87.5%; }
[data-theme="g"] .c-card, [data-theme="g"] .counter, [data-theme="g"] .c-box, [data-theme="g"] .c-tl, [data-theme="g"] .panel { border-radius: 18px; }
[data-theme="g"] .decision { border-radius: 20px; }
[data-theme="g"] .c-card.main-test { background: linear-gradient(160deg, #EAF7C4, #FFFDF7 70%); border-color: #C8E27A; }

/* ---------- Puls niebieski: panele ---------- */
[data-theme="h"] {
  --bg: #F4F7FB; --bg-2: #E6EDF6; --surface: #FFFFFF; --surface-2: #F4F7FB;
  --ink: #0B1A33; --ink-2: #2A3A55; --muted: #55647D; --line: #DCE4EF; --line-2: #C5D1E2;
  --action: #0A1F3F; --action-hover: #17386A; --action-soft: #E0F2FE; --action-ink: #1554D9;
  --ok: #117A4D; --ok-soft: #DCF2E3; --warn: #8A5600; --warn-soft: #FFF1D6; --bad: #C5362A; --bad-soft: #FFE6E0;
  --dark: #0A1F3F; --dark-2: #10294F; --on-dark: #EEF3FA; --on-dark-muted: #A7B6CF;
  --font-display: 'Segoe UI Variable Display', 'Segoe UI', system-ui, sans-serif;
  --display-weight: 700; --display-tracking: -0.01em;
  --r-sm: 10px; --r: 16px; --r-lg: 22px;
  --shadow: 0 1px 0 rgba(10,31,63,.03), 0 24px 50px -32px rgba(10,31,63,.35);
}
[data-theme="h"] .side { background: #0A1F3F; }
[data-theme="h"] .side nav button[aria-current="page"] { background: #38BDF8; color: #0A1F3F; }
[data-theme="h"] .c-top { background: #0A1F3F; color: #EEF3FA; border-bottom-color: #10294F; }
[data-theme="h"] .c-top .site-id { border-left-color: #17386A; }
[data-theme="h"] .c-top .site-id span, [data-theme="h"] .c-top .right { color: #A7B6CF; }
[data-theme="h"] .c-title, [data-theme="h"] .page-title { letter-spacing: -0.03em; }
[data-theme="h"] .c-card, [data-theme="h"] .counter, [data-theme="h"] .c-box, [data-theme="h"] .c-tl, [data-theme="h"] .panel { border-radius: 18px; }
[data-theme="h"] .decision { border-radius: 20px; }
[data-theme="h"] .c-card.main-test { background: linear-gradient(160deg, #E0F2FE, #FFFFFF 70%); border-color: #93C5FD; }
