/* Signal family: graphite surfaces, readable neutral text, cyan neon accents. */

:root {
  --bg: #0B1015;
  --bg-2: #111A22;
  --panel: #111A22;
  --panel-2: #1B2732;
  --text: #EDF3F6;
  --muted: #B0BEC9;
  --faint: #B0BEC9;
  /* DEFEKT NAPRAWIONY 2026-10-01: `.tr-none`, `.m-off`, `.spark-cap` używają
     `var(--dim)`, ale `--dim` NIGDY nie był zdefiniowany. Niezdefiniowany var()
     bez fallbacku = „invalid at computed-value time" → kolor DZIEDZICZONY, a body
     ma `color: var(--text)` (#e9ecf1). Efekt: etykiety BRAKU danych („zbieram
     dane…", „brak odczytu") renderowały się JAŚNIEJ niż stany aktywne — dokładnie
     odwrotnie niż zamierzone wyszarzenie. Ta sama rola co `--faint`. */
  --dim: #B0BEC9;
  --accent: #65E4E8;
  --accent-strong: #91ECEF;
  --accent-ink: #0B1015;
  --ok: #34d399;
  --warn: #fbbf24;
  --alert: #f87171;
  --idle: #6b7482;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --line: #222b38;
  --border: #222b38;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  /* Motion system (§21) */
  --dur-fast: 150ms;
  --dur-med: 300ms;
  --dur-slow: 600ms;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Dostępność: wyraźny fokus klawiaturowy (§24) */
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}

body {
  max-width: 520px;
  margin: 0 auto;
  padding: 16px 16px calc(24px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 16px;
}

header { text-align: center; padding-top: 8px; position: relative; }
h1 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}
.subtitle { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }

.hidden { display: none !important; }

/* Explicitly limited demonstration; native app retains the complete product. */
body[data-product-mode="demo"] :is(#settings-btn,#sweep-btn,#emitter-btn,#rfzone-btn,#jammer-btn,#settings-overlay,#sweep-overlay,#emitter-overlay,#rfzone-overlay,#jammer-overlay,#app-section,.honesty-box,.meter-intro,#privacy-note,#report-btn,#result-history,#tech-toggle,#result-advanced,#risk-panel,#model-panel,#export-btn,#tech-layer,#sensitivity-box){display:none!important}
.demo-banner{padding:20px;border:1px solid var(--line);border-radius:14px;background:var(--panel);margin-bottom:18px;text-align:left}
.demo-banner h2{font-size:20px;color:var(--text)}
.demo-banner p{font-size:17px;line-height:1.6;color:var(--muted);margin:12px 0}
.demo-install{display:block;min-height:48px;padding:12px 16px;box-sizing:border-box;border-radius:14px;background:var(--accent);color:var(--accent-ink);text-align:center;font-weight:700;text-decoration:none}
.demo-docs{display:block;color:var(--accent-strong);padding-top:14px;min-height:44px}
body[data-product-mode="demo"] a{color:var(--accent-strong)}
body[data-product-mode="demo"] .demo-install{color:var(--accent-ink)}
body[data-product-mode="demo"] .skip{position:absolute;left:-10000px}
body[data-product-mode="demo"] .skip:focus{position:relative;left:0}

/* Global status */
.global-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--c, var(--idle));
  transition: border-color .25s, box-shadow .25s;
}
.global-status[data-level="idle"] { --c: var(--idle); }
.global-status[data-level="clean"] { --c: var(--ok); }
.global-status[data-level="warn"] { --c: var(--warn); }
.global-status[data-level="alert"] { --c: var(--alert); }
.global-status .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--c, var(--idle));
  flex: none;
}
.global-status .text { font-weight: 700; font-size: 1.05rem; letter-spacing: 0.04em; }

/* Primary action */
.start-btn {
  width: 100%;
  min-height: 64px;
  padding: 18px 20px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent-ink);
  background: var(--accent);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 6px 20px -8px rgba(34, 211, 238, .45);
  transition: transform .2s, filter .25s, box-shadow .25s;
}
.start-btn:active { transform: scale(0.98); }
.start-btn:disabled { filter: grayscale(.5) brightness(.75); cursor: default; }

/* Widoki: wspólny kontener */
.view {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: fadeUp .3s ease;
}
.view h2 { font-size: 0.95rem; color: var(--accent); letter-spacing: .04em; text-transform: uppercase; }
.view canvas {
  width: 100%;
  border-radius: var(--radius);
  background: var(--panel-2);
  border: 1px solid var(--border);
  display: block;
}

.ghost-btn {
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .2s;
}
.ghost-btn:active { background: var(--panel-2); }

.bar-action {
  margin-left: auto;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  flex: none;
  -webkit-tap-highlight-color: transparent;
}
.bar-action:active { background: #202833; }

footer p { color: var(--muted); font-size: 0.72rem; line-height: 1.5; text-align: center; }
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Preferencja ograniczonego ruchu wyłącza animacje. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ===== MODUŁY (bary sensorów) ===== */
.modules { display: flex; flex-direction: column; gap: 8px; }
.module-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--c, var(--idle));
  cursor: pointer;
  transition: border-color .2s;
}
.module-bar[data-level="idle"] { --c: var(--idle); }
.module-bar[data-level="clean"] { --c: var(--ok); }
.module-bar[data-level="warn"] { --c: var(--warn); }
.module-bar[data-level="alert"] { --c: var(--alert); }
.module-bar .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--c, var(--idle));
  flex: none;
}
.module-bar .meta { display: flex; flex-direction: column; min-width: 0; }
.module-bar .name { font-weight: 600; font-size: 0.95rem; }
.module-bar .detail { color: var(--muted); font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.module-bar .conf { color: var(--accent); font-size: 0.72rem; margin-top: 1px; }
.module-bar .badge.app-only {
  flex: none;
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--accent);
  white-space: nowrap;
}

/* ===== SEKCJA "Aplikacja" — funkcje wymagające natywnej apki (nie sensory) ===== */
.app-section {
  margin: 20px 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px dashed var(--accent);
}
.app-section-head h2 { margin: 0 0 6px; font-size: 1.1rem; }
.app-section-sub { margin: 0 0 12px; color: var(--muted); font-size: 0.82rem; line-height: 1.5; }

/* ===== PRZYCISKI NAGŁÓWKA ===== */
.help-btn {
  position: absolute;
  top: 0;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  font-weight: 700;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--border);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.help-btn .icon { color: var(--accent); }
.help-btn:active { background: var(--panel-2); }
.lang-btn { left: 0; }
.settings-btn { left: 44px; }
.sweep-btn { left: 88px; }
.emitter-btn { left: 132px; }
.rfzone-btn { left: 176px; }
.jammer-btn { left: 220px; }
#help-btn { left: 264px; }

/* ===== OVERLAY / INTRO ===== */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--bg);
  animation: fadeIn .25s ease;
}
.intro-card {
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: slideUp .3s ease;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .6);
}
.intro-card h2 { text-align: center; font-size: 1.6rem; font-weight: 700; }
.intro-sub { color: var(--muted); text-align: center; font-size: .85rem; }
.intro-steps { display: flex; flex-direction: column; gap: 10px; }
.intro-step {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}
.intro-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.intro-name { font-weight: 600; font-size: .95rem; }
.badge { font-size: .68rem; font-weight: 700; letter-spacing: .05em; padding: 3px 8px; border-radius: 999px; flex: none; }
.badge-on { color: #06230f; background: var(--ok); }
.badge-off { color: var(--muted); background: var(--panel); border: 1px solid var(--border); }
.intro-detect, .intro-how { color: var(--muted); font-size: .8rem; margin-top: 4px; line-height: 1.45; }
.intro-detect { color: var(--text); }
.intro-waves { color: var(--accent); font-size: .78rem; margin-top: 3px; }
.intro-not { color: var(--warn); font-size: .78rem; margin-top: 3px; line-height: 1.45; }
.intro-note { color: var(--warn); font-size: .78rem; margin-top: 3px; line-height: 1.45; }

.intro-step { transition: opacity .3s ease, border-color .3s ease; }
.intro-step.loading { opacity: .5; }
.intro-step.loading .status-dot {
  background: transparent;
  border: 2px solid var(--idle);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.intro-step.ok { border-color: var(--ok); }
.intro-step.partial, .intro-step.roadmap { border-color: var(--warn); }
.intro-step.off { border-color: var(--border); opacity: .55; }
.status-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--idle);
  flex: none;
  transition: background .3s ease;
}
.intro-step.ok .status-dot { background: var(--ok); }
.intro-step.partial .status-dot, .intro-step.roadmap .status-dot { background: var(--warn); }
.intro-step.off .status-dot { background: var(--idle); }
.badge-partial, .badge-roadmap { color: #2a1b00; background: var(--warn); }

.device-missing { display: flex; flex-direction: column; gap: 6px; }
.device-missing-title { color: var(--warn); font-size: .82rem; font-weight: 700; }
.device-missing ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.device-missing li { color: var(--muted); font-size: .76rem; line-height: 1.45; }
.device-missing li b { color: var(--text); }

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== RYZYKO (score) ===== */
.risk-panel { display: flex; flex-direction: column; gap: 10px; }
.risk-panel h2 { font-size: 0.95rem; color: var(--accent); letter-spacing: .04em; text-transform: uppercase; }
.risk-box {
  display: flex; flex-direction: column; gap: 8px;
  padding: 18px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--border);
}
.risk-score { font-size: 2.6rem; font-weight: 700; line-height: 1; color: var(--accent); }
.risk-verdict { font-size: 1.05rem; font-weight: 700; letter-spacing: .03em; }
.risk-signals { list-style: none; display: flex; flex-direction: column; gap: 4px; padding: 0; }
.risk-signals li { color: var(--warn); font-size: .85rem; }
.risk-advice { color: var(--muted); font-size: .85rem; line-height: 1.5; }

/* ===== WSKAZÓWKI (guide) ===== */
.guide-panel {
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px; border-radius: var(--radius);
  background: var(--panel-2); border: 1px solid var(--border);
}
.guide-panel h2 { font-size: .9rem; color: var(--accent); letter-spacing: .04em; text-transform: uppercase; }
.guide-part { color: var(--text); font-size: .95rem; font-weight: 700; }
.guide-steps { margin: 0 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.guide-steps li { color: var(--muted); font-size: .85rem; line-height: 1.45; }
.guide-reading { color: var(--muted); font-size: .8rem; line-height: 1.45; border-top: 1px solid var(--border); padding-top: 8px; }
.guide-block { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; border-left: 3px solid var(--border); border-radius: 8px; background: var(--panel); }
.guide-block b { color: var(--accent); font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; }
.guide-block p { color: var(--muted); font-size: .83rem; line-height: 1.5; margin: 0; }
.guide-block.danger { border-left-color: var(--alert); }
.guide-block.warn { border-left-color: var(--warn); }
.guide-block.ok { border-left-color: var(--ok); }
.guide-block.not { border-left-color: var(--idle); }
.guide-block.conf { border-left-color: var(--accent); }
.guide-block .guide-part { color: var(--text); font-size: .9rem; }
.guide-block .guide-steps { margin: 2px 0 0 16px; }

/* ===== MODEL / KORELACJE ===== */
.model-panel { display: flex; flex-direction: column; gap: 8px; }
.model-panel h2 { font-size: .95rem; color: var(--accent); letter-spacing: .04em; text-transform: uppercase; }
.model-list { list-style: none; display: flex; flex-direction: column; gap: 4px; padding: 0; margin: 0; }
.model-list li { color: var(--text); font-size: .8rem; line-height: 1.45; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; }
.model-corr { color: var(--warn); font-size: .82rem; line-height: 1.5; }

/* ===== PODSUMOWANIE URZĄDZENIA (intro) ===== */
.device-summary {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px;
}
.device-headline { color: var(--text); font-size: .95rem; line-height: 1.5; }
.device-headline b { color: var(--accent); }
.device-table { width: 100%; border-collapse: collapse; font-size: .78rem; }
.device-table th, .device-table td { padding: 5px 6px; text-align: center; border-bottom: 1px solid var(--border); }
.device-table thead th { color: var(--muted); font-weight: 700; }
.device-table tbody th { text-align: left; font-weight: 600; color: var(--text); }
.device-table td { color: var(--muted); }

/* ===== USTAWIENIA ===== */
.settings-list { display: flex; flex-direction: column; gap: 12px; }
.setting-row { display: flex; flex-direction: column; gap: 6px; }
.setting-head { display: flex; align-items: center; justify-content: space-between; }
.setting-name { font-size: .9rem; font-weight: 600; }
.setting-val { color: var(--accent); font-weight: 700; font-size: .9rem; }
.setting-row input[type="range"] { width: 100%; accent-color: var(--accent); }
.settings-sound { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: .9rem; }
.settings-sound input { accent-color: var(--accent); width: 18px; height: 18px; }

/* ===== GENERATOR TESTOWY (emitter) ===== */
.emitter-card { max-width: 520px; }
.emitter-controls { display: flex; flex-direction: column; gap: 8px; }
.emitter-row { display: flex; gap: 8px; }
.emitter-row .ghost-btn { flex: 1; }

/* ===== PEŁNY SWEEP ===== */
.sweep-card { max-width: 560px; }
.sweep-list { display: flex; flex-direction: column; gap: 12px; }
.sweep-cat { color: var(--accent); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-top: 4px; }
.sweep-item { background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.sweep-head { display: flex; align-items: center; gap: 8px; }
.sweep-icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex-shrink: 0; color: var(--accent); }
.sweep-icon svg { width: 20px; height: 20px; }
.sweep-name { font-weight: 600; font-size: .95rem; }
.sweep-threats { color: var(--warn); font-size: .78rem; line-height: 1.45; }
.sweep-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sweep-chip { font-size: .68rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--panel); border: 1px solid var(--border); color: var(--accent); }
.sweep-detect { color: var(--text); font-size: .8rem; line-height: 1.45; }
.sweep-not { color: var(--warn); font-size: .76rem; line-height: 1.45; }
.sweep-steps { margin: 0 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.sweep-steps li { color: var(--muted); font-size: .76rem; line-height: 1.45; }

/* ===== UX/UI 2.0 — prywatność (TWOJE DANE) ===== */
.privacy-note {
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px 16px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--border);
}
.privacy-note h2 { font-size: .74rem; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; }
.privacy-note p { color: var(--muted); font-size: .8rem; line-height: 1.5; }

/* ===== UX/UI 2.0 — kroki skanowania (KROK 1–5) ===== */
.check-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.check-step {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--border);
  transition: border-color .25s, opacity .25s;
  opacity: .55;
}
.check-step.active { border-color: var(--accent); opacity: 1; }
.check-step.done { opacity: .8; }
.check-num { font-size: .72rem; font-weight: 700; color: var(--muted); letter-spacing: .05em; min-width: 20px; padding-top: 2px; }
.check-step.active .check-num { color: var(--accent); }
.check-step.done .check-num { color: var(--ok); }
.check-body { display: flex; flex-direction: column; gap: 2px; }
.check-title { font-weight: 600; font-size: .92rem; }
.check-desc { color: var(--muted); font-size: .78rem; line-height: 1.45; }

.scan-phase {
  text-align: center; color: var(--text); font-size: 1rem; font-weight: 600;
  letter-spacing: .02em; min-height: 1.5em;
}

/* Licznik „do końca skanu" — user musi widzieć, że koniec jest realny i kiedy.
   Tablica znaków: liczba nie skacze szerokością przy zmianie sekund. */
.scan-countdown {
  text-align: center; color: var(--accent); font-size: 1.05rem; font-weight: 700;
  letter-spacing: .06em; margin: 4px 0 8px;
  font-variant-numeric: tabular-nums;
}

/* Krok zablokowany (Pro/APK) — widoczny jako zapowiedź, nie prowadzony.
   Przygaszony, z gwiazdką zamiast numeru, żeby nie udawał części przebiegu. */
.check-step-locked { border-style: dashed; opacity: .55; }
.check-step-locked .check-num { color: var(--muted); }
.pro-badge {
  display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 4px;
  background: rgba(34,211,238,.16); color: var(--accent);
  font-size: .62rem; font-weight: 700; letter-spacing: .08em; vertical-align: middle;
}
.pro-note { font-style: italic; margin-top: 4px; }

/* CTA po wyniku: co daje płatna aplikacja. */
.pro-cta {
  margin: 16px 0; padding: 14px 16px; border-radius: 12px;
  border: 1px solid rgba(34,211,238,.28); background: rgba(34,211,238,.06);
}
.pro-cta-title { margin: 0 0 6px; font-size: 1rem; color: var(--text); }
.pro-cta-body { margin: 0 0 12px; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.pro-cta-btn {
  display: block; text-align: center; text-decoration: none;
  padding: 12px 16px; border-radius: 10px;
  background: var(--accent); color: #020E15;
  font-weight: 700; font-size: .86rem; letter-spacing: .04em;
}

/* ── EKRAN 1: uczciwość przed zbliżaniem ──
   Bez tego user nie wie, że telefon musi być w ręce, i uznaje, że wskaźnik
   nie działa — choć działa poprawnie. */
.meter-intro {
  border: 1px solid rgba(245,158,11,.35); background: rgba(245,158,11,.06);
  border-radius: 12px; padding: 13px 15px; margin: 14px 0;
}
.mi-head {
  color: var(--warn); font-size: 11.5px; letter-spacing: .09em;
  text-transform: uppercase; font-weight: 700; margin-bottom: 7px;
}
.mi-body { margin: 0 0 8px; font-size: 13.5px; line-height: 1.55; }
.mi-body b, .mi-body strong { color: var(--text); }
.mi-range { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }

/* ── Podsumowanie trendów w wyniku ──
   Pokazuje, GDZIE wrócić (gdzie sygnał rósł), nie ocenia zagrożenia. */
.ts-block {
  border: 1px solid rgba(34,197,94,.3); background: rgba(34,197,94,.05);
  border-radius: 12px; padding: 13px 15px; margin: 14px 0;
}
.ts-rising { font-size: 14px; margin-top: 7px; line-height: 1.5; }
.ts-none { color: var(--muted); font-size: 13px; margin-top: 7px; }
.ts-row { font-size: 13px; color: var(--muted); margin-top: 4px; }
.ts-row b { color: var(--text); }

/* ── METR NA ŻYWO ──
   User chodzi z telefonem i musi widzieć zmianę w tej samej sekundzie,
   w której się zbliża. Dlatego duża liczba + strzałka + kształt historii.
   ROZMIAR: wszystko w jednostkach relatywnych (clamp/vw) — na A40 metr
   wychodził poza ekran i „nie skalował się do rozmiaru" (2026-09-20). */
.live-meter { margin: 6px 0 10px; max-width: 100%; overflow: hidden; }
.meterbox {
  border: 1px solid var(--line); border-radius: 14px;
  padding: clamp(10px, 3vw, 14px);
  background: rgba(34,211,238,.045);
  /* Stała geometria: bez tego ticki zmieniały wysokość i układ „skakał". */
  contain: layout paint;
}
.m-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.m-label {
  font-size: clamp(10px, 2.6vw, 11.5px); letter-spacing: .08em; color: var(--muted);
  text-transform: uppercase; min-width: 0; overflow: hidden; text-overflow: ellipsis;
}
.m-live { margin-left: auto; white-space: nowrap; flex-shrink: 0; }
.m-row { display: flex; align-items: baseline; gap: clamp(6px, 2vw, 10px); margin: 5px 0 11px; }
.m-val {
  font-size: clamp(26px, 9vw, 34px); font-weight: 700;
  font-variant-numeric: tabular-nums; line-height: 1;
  /* Stała szerokość na cyfry: liczba nie skacze przy zmianie wartości. */
  min-width: 3.2ch;
}
.m-unit { color: var(--muted); font-size: clamp(12px, 3.2vw, 14px); flex-shrink: 0; }
.m-trend {
  margin-left: auto; font-weight: 700; white-space: nowrap;
  font-size: clamp(12px, 3.4vw, 14px); flex-shrink: 0;
}
.tr-up { color: var(--warn); }
.tr-down { color: #38BDF8; }
.tr-flat { color: var(--muted); }
.tr-none { color: var(--dim); font-weight: 500; font-size: clamp(11px, 3vw, 12.5px); }
.bar { height: 13px; border-radius: 7px; background: #04121A; border: 1px solid var(--line); overflow: hidden; }
.bar > i {
  display: block; height: 100%; border-radius: 6px;
  background: linear-gradient(90deg, #0E7490, var(--accent));
  /* Szeroka krzywa: płynna zmiana bez migotania. */
  transition: width .25s linear;
}
.bar.mark > i { background: linear-gradient(90deg, #B45309, var(--warn)); }
.m-hint {
  color: var(--muted); font-size: clamp(11.5px, 3.1vw, 12.5px); margin-top: 9px;
  display: flex; gap: 7px; align-items: flex-start; min-height: 1em;
}
.m-hint b { color: var(--text); }
.m-stale { color: var(--warn); font-size: clamp(11px, 2.9vw, 12px); margin-top: 6px; min-height: 0; }
.m-off { color: var(--dim); font-size: clamp(10px, 2.7vw, 11px); letter-spacing: .06em; }
.live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: clamp(10px, 2.7vw, 11px); color: var(--ok); font-weight: 700; letter-spacing: .07em;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulse 1.4s infinite; flex-shrink: 0; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .25 } }
.spark {
  margin-top: 11px; height: clamp(34px, 10vw, 42px);
  border: 1px solid var(--line); border-radius: 8px; background: #04121A; overflow: hidden;
}
.spark svg { display: block; width: 100%; height: 100%; }
.spark-cap { font-size: clamp(10px, 2.7vw, 11px); color: var(--dim); margin-top: 5px; }

/* Fala koncentryczna (spokojna, ~8 s, akcent) */
.scan-pulse {
  position: relative;
  width: 120px; height: 120px; margin: 8px auto 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,.16) 0%, rgba(34,211,238,0) 70%);
  overflow: hidden;
}
.scan-pulse::before, .scan-pulse::after {
  content: '';
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(34,211,238,.5);
  animation: scanWave 8s ease-out infinite;
}
.scan-pulse::after { animation-delay: 4s; }
@keyframes scanWave {
  0% { transform: scale(.2); opacity: 0; }
  20% { opacity: .6; }
  100% { transform: scale(1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .scan-pulse::before, .scan-pulse::after { animation: none; opacity: .4; }
}

/* ===== UX/UI 2.0 — wynik (progressive result) ===== */
.result-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 20px 18px; border-radius: var(--radius-lg);
  background: var(--panel); border: 1px solid var(--c, var(--idle));
  animation: slideUp .35s ease;
}
.result-card[data-tone="clean"] { --c: var(--ok); }
.result-card[data-tone="warn"] { --c: var(--warn); }
.result-card[data-tone="alert"] { --c: var(--alert); }
.result-verdict { font-size: 1.4rem; font-weight: 700; letter-spacing: .02em; text-align: center; }
.result-verdict[data-tone="clean"] { color: var(--ok); }
.result-verdict[data-tone="warn"] { color: var(--warn); }
.result-verdict[data-tone="alert"] { color: var(--alert); }
.result-detail { color: var(--muted); text-align: center; font-size: .88rem; line-height: 1.5; }

/* CO TERAZ? — najważniejszy element */
.result-next {
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.result-next h3 { font-size: .78rem; color: var(--accent); letter-spacing: .06em; text-transform: uppercase; }
.result-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; counter-reset: step; }
.result-steps li {
  position: relative; padding-left: 30px; color: var(--text);
  font-size: .9rem; line-height: 1.4; counter-increment: step;
}
.result-steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  font-size: .72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* Cztery pytania: CO / GDZIE / JAK SILNE / CO TERAZ */
.result-qa { display: flex; flex-direction: column; gap: 8px; }
.qa-row { display: flex; align-items: flex-start; gap: 10px; }
.qa-q {
  font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); min-width: 78px; padding-top: 3px; flex: none;
}
.qa-a { color: var(--text); font-size: .88rem; line-height: 1.45; }
.qa-a[data-tone="clean"] { color: var(--ok); }
.qa-a[data-tone="warn"] { color: var(--warn); }
.qa-a[data-tone="alert"] { color: var(--alert); }
.strength { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.strength-bar {
  display: inline-block; width: 100px; height: 8px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--border); overflow: hidden; flex: none;
}
.strength-fill { display: block; height: 100%; border-radius: 999px; }
.strength-fill[data-tone="clean"] { background: var(--ok); }
.strength-fill[data-tone="warn"] { background: var(--warn); }
.strength-fill[data-tone="alert"] { background: var(--alert); }

.result-signals { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.result-signals li { color: var(--warn); font-size: .84rem; line-height: 1.45; }

/* Podejrzane wzorce (pattern engine) */
.result-patterns { margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.02); }
.result-patterns h3 { margin: 0 0 8px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.result-patterns-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.pattern-item { display: grid; grid-template-columns: auto auto; gap: 2px 8px; align-items: baseline; padding: 8px 10px; border-radius: 8px; border-left: 3px solid var(--warn); background: rgba(251,191,36,.06); }
.pattern-item[data-sev="alert"] { border-left-color: var(--alert); background: rgba(248,113,113,.08); }
.pattern-item b { font-size: .86rem; color: var(--warn); }
.pattern-item[data-sev="alert"] b { color: var(--alert); }
.pattern-conf { font-size: .72rem; font-weight: 700; color: var(--muted); justify-self: end; }
.pattern-desc { grid-column: 1 / -1; font-size: .78rem; color: var(--muted); line-height: 1.45; }

/* Mapa pomieszczenia 3×3 */
.grid-3x3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  width: 100%; max-width: 240px; margin: 0 auto;
}
.grid-cell {
  aspect-ratio: 1; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.2rem; color: var(--muted);
  background: var(--panel-2); border: 1px solid var(--border);
}
.grid-cell[data-tone="idle"] { background: var(--panel-2); color: var(--muted); }
.grid-cell[data-tone="clean"] { background: rgba(52,211,153,.12); color: var(--ok); }
.grid-cell[data-tone="warn"] { background: rgba(251,191,36,.12); color: var(--warn); }
.grid-cell[data-tone="alert"] { background: rgba(248,113,113,.12); color: var(--alert); }
.grid-hint { text-align: center; color: var(--muted); font-size: .76rem; }

/* ===== UX/UI 2.0 — czułość (segmentowany przełącznik) ===== */
.sens-row { display: flex; gap: 6px; }
.sens-btn {
  flex: 1; padding: 10px 6px; font-size: .8rem; font-weight: 600;
  color: var(--muted); background: var(--panel); border: 1px solid var(--border);
  border-radius: 10px; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: color .2s, border-color .2s;
}
.sens-btn.active { color: var(--accent); border-color: var(--accent); }

/* ===== UX/UI 2.0 — historia ===== */
.history-list { display: flex; flex-direction: column; gap: 8px; }
.history-item {
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px 14px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--c, var(--border));
}
.history-item[data-level="clean"] { --c: rgba(52,211,153,.4); }
.history-item[data-level="warn"] { --c: rgba(251,191,36,.4); }
.history-item[data-level="alert"] { --c: rgba(248,113,113,.4); }
.history-main { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.history-date { color: var(--muted); font-size: .74rem; }
.history-place { color: var(--text); font-size: .84rem; font-weight: 600; }
.history-result { font-size: .9rem; font-weight: 700; letter-spacing: .02em; }
.history-result[data-level="clean"] { color: var(--ok); }
.history-result[data-level="warn"] { color: var(--warn); }
.history-result[data-level="alert"] { color: var(--alert); }
.history-signals { display: flex; flex-wrap: wrap; gap: 6px; }
.h-signal {
  font-size: .68rem; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--border); color: var(--muted);
}
.h-signal[data-level="warn"] { color: var(--warn); }
.h-signal[data-level="alert"] { color: var(--alert); }
.history-empty { color: var(--muted); font-size: .86rem; line-height: 1.5; text-align: center; padding: 20px 0; }
.history-empty b { color: var(--text); }

/* ===== UX/UI 2.0 — nadpisania: result.js używa color (idle/ok/warn/alert) ===== */
.result-card[data-tone="ok"] { --c: var(--ok); }
.result-card[data-tone="idle"] { --c: var(--idle); }
.result-verdict[data-tone="ok"] { color: var(--ok); }
.result-verdict[data-tone="idle"] { color: var(--idle); }
.qa-a[data-tone="ok"] { color: var(--ok); }
.qa-a[data-tone="idle"] { color: var(--idle); }
.strength-fill[data-tone="ok"] { background: var(--ok); }
.strength-fill[data-tone="idle"] { background: var(--idle); }

/* ===== WORLD-CLASS 3.0 — system stanów (§28) ===== */
[data-state="idle"] { --sc: var(--idle); }
[data-state="loading"] { --sc: var(--accent); }
[data-state="active"] { --sc: var(--accent); }
[data-state="success"] { --sc: var(--ok); }
[data-state="warning"] { --sc: var(--warn); }
[data-state="error"] { --sc: var(--alert); }
[data-state="unavailable"] { --sc: var(--idle); }
[data-state="permission"] { --sc: var(--accent); }
[data-state] { border-color: var(--sc, var(--border)); }
[data-state="loading"] .dot { animation: statePulse 1.6s var(--ease-out) infinite; }
[data-state="unavailable"] { opacity: .55; }
[data-state="permission"] { border-style: dashed; }
@keyframes statePulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  [data-state="loading"] .dot { animation: none; }
}

/* Ikony: inline SVG, geometryczne (§33) */
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ===== WORLD-CLASS 3.0 — pełnoekranowy tryb skanowania (§8) ===== */
#check-view.scan-stage {
  min-height: 100dvh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  padding: 32px 8px;
}
#check-view.scan-stage h2 { font-size: 1.15rem; color: var(--text); text-transform: none; letter-spacing: 0; }
.scan-instruction { color: var(--muted); font-size: .95rem; line-height: 1.5; max-width: 320px; }
.scan-viz {
  position: relative;
  width: min(72vw, 300px);
  aspect-ratio: 1;
  margin: 8px auto;
}
.scan-viz canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
}

/* ===== WORLD-CLASS 3.0 — wynik: pewność + explain + raport (§11/§12/§16) ===== */
.result-confidence { display: flex; flex-direction: column; gap: 8px; }
.result-confidence .conf-label { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.result-confidence .conf-value { font-size: 1.3rem; font-weight: 700; letter-spacing: .02em; }
.result-confidence .conf-value[data-tone="high"] { color: var(--ok); }
.result-confidence .conf-value[data-tone="medium"] { color: var(--warn); }
.result-confidence .conf-value[data-tone="low"] { color: var(--muted); }
.conf-bar { height: 6px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--border); overflow: hidden; }
.conf-fill { display: block; height: 100%; border-radius: 999px; background: var(--accent); transition: width var(--dur-slow) var(--ease-out); }
.conf-fill[data-tone="high"] { background: var(--ok); }
.conf-fill[data-tone="medium"] { background: var(--warn); }
.conf-fill[data-tone="low"] { background: var(--muted); }

.explain { border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel-2); overflow: hidden; }
.explain summary {
  padding: 12px 16px; cursor: pointer; font-weight: 600; font-size: .9rem;
  color: var(--accent); list-style: none; display: flex; align-items: center; gap: 8px;
  -webkit-tap-highlight-color: transparent;
}
.explain summary::after { content: "▸"; margin-left: auto; transition: transform var(--dur-fast) var(--ease-out); }
.explain[open] summary::after { transform: rotate(90deg); }
.explain .explain-body { padding: 0 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.explain .explain-body h4 { font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.explain .explain-body p { color: var(--text); font-size: .86rem; line-height: 1.5; margin: 0; }

.report-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--border);
}
.report-card h3 { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.report-meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: .84rem; }
.report-meta dt { color: var(--muted); }
.report-meta dd { color: var(--text); margin: 0; }

/* ===== WORLD-CLASS 3.0 — warstwa techniczna (§15) ===== */
.tech-layer { display: none; flex-direction: column; gap: 14px; }
.tech-layer.visible { display: flex; animation: fadeUp var(--dur-med) var(--ease-out); }
.tech-layer code, .tech-layer pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; }

/* ===== WORLD-CLASS 3.0 — desktop: szersza warstwa techniczna (§34) ===== */
@media (min-width: 900px) {
  body { max-width: 960px; }
  .tech-layer.visible { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .tech-layer .full-span { grid-column: 1 / -1; }
}

/* ===== Secure RF Zone — defensywna osłona RF (ekranowanie zamiast zagłuszania) ===== */
.rfzone-card { max-width: 460px; }
.rfzone-head h2 { margin: 0 0 6px; font-size: 1.2rem; color: var(--text); }
.rfzone-sub { color: var(--muted); font-size: .86rem; margin: 0 0 4px; }
.rfzone-intro { color: var(--faint); font-size: .82rem; margin: 0 0 12px; line-height: 1.5; }
.rfzone-caps {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .03em;
  border: 1px solid var(--border); background: var(--panel-2); color: var(--muted);
  margin-bottom: 14px;
}
.rfzone-caps[data-state="active"] { color: var(--accent); border-color: var(--accent); }
.rfzone-caps[data-state="unavailable"] { color: var(--idle); opacity: .7; }
.rf-modes { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 14px; }
.rf-mode {
  display: flex; flex-direction: column; gap: 2px; text-align: left;
  padding: 12px 14px; border-radius: var(--radius-sm); cursor: pointer;
  background: var(--panel); border: 1px solid var(--border); color: var(--text);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.rf-mode[aria-pressed="true"] { border-color: var(--accent); background: var(--panel-2); }
.rf-mode-name { font-weight: 600; font-size: .86rem; color: var(--accent); }
.rf-mode-desc { font-size: .78rem; color: var(--muted); line-height: 1.4; }
.rfzone-engines { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.rf-engine {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  background: var(--panel-2); border: 1px solid var(--border); font-size: .8rem;
}
.rf-engine b { font-weight: 600; color: var(--text); }
.rf-engine-state { font-family: var(--mono); font-size: .74rem; color: var(--muted); }
.rf-engine-state[data-tone="ok"] { color: var(--ok); }
.rf-engine-state[data-tone="unavailable"] { color: var(--idle); }
.rf-map {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  margin-bottom: 14px; aspect-ratio: 1; max-width: 220px; margin-left: auto; margin-right: auto;
}
.rf-cell {
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 6px; background: var(--panel-2);
  color: var(--faint); font-family: var(--mono); font-size: .9rem;
}
.rf-cell[data-tone="idle"] { color: var(--faint); }
.rf-result {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 14px;
  background: var(--panel-2); margin-bottom: 14px; display: flex; flex-direction: column; gap: 8px;
}
.rf-result-title { font-size: 1.05rem; font-weight: 700; letter-spacing: .02em; }
.rf-result-title[data-tone="ok"] { color: var(--ok); }
.rf-result-title[data-tone="unavailable"] { color: var(--idle); }
.rf-result-desc { color: var(--muted); font-size: .84rem; line-height: 1.5; margin: 0; }
.rf-conf { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.rf-conf-label { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rf-conf-value { font-size: .9rem; font-weight: 700; }
.rf-conf-value[data-tone="high"] { color: var(--ok); }
.rf-conf-value[data-tone="medium"] { color: var(--warn); }
.rf-conf-value[data-tone="low"] { color: var(--muted); }
.rf-conf-bar { height: 6px; border-radius: 999px; background: var(--panel); border: 1px solid var(--border); overflow: hidden; }
.rf-conf-fill { display: block; height: 100%; border-radius: 999px; transition: width var(--dur-slow) var(--ease-out); }
.rf-conf-fill[data-tone="high"] { background: var(--ok); }
.rf-conf-fill[data-tone="medium"] { background: var(--warn); }
.rf-conf-fill[data-tone="low"] { background: var(--muted); }
.rf-result-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.rf-meta-chip {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .03em;
  border: 1px solid var(--border); background: var(--panel); color: var(--muted);
}
.rf-meta-chip[data-tone="ok"] { color: var(--ok); border-color: var(--ok); }
.rf-meta-chip[data-tone="unavailable"] { color: var(--idle); }
.rfzone-note { color: var(--faint); font-size: .76rem; line-height: 1.5; margin: 12px 0 0; text-align: center; }
#rfzone-close { margin-top: 14px; width: 100%; }

/* ===== Uczciwa koperta możliwości (home) ===== */
.honesty-box {
  margin: 14px 4px 4px; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 14px; background: var(--panel);
}
.honesty-box summary {
  cursor: pointer; font-size: .86rem; font-weight: 700; color: var(--muted);
  letter-spacing: .01em; user-select: none; list-style: none;
}
.honesty-box summary::-webkit-details-marker { display: none; }
.honesty-box summary::before { content: "ⓘ "; }
.honesty-box[open] summary { margin-bottom: 10px; color: var(--text); }
.honesty-grid { display: grid; gap: 6px; }
.honesty-row {
  display: grid; grid-template-columns: minmax(110px, 1.1fr) 1.6fr 1.4fr 1.6fr;
  gap: 8px; align-items: baseline; padding: 6px 8px; border-radius: 10px;
  background: var(--panel);
}
.honesty-sensor { font-size: .78rem; font-weight: 800; letter-spacing: .02em; }
.honesty-what { font-size: .78rem; }
.honesty-range { font-size: .76rem; font-family: var(--mono); color: var(--warn); }
.honesty-no { font-size: .76rem; color: var(--muted); }
.honesty-foot { font-size: .76rem; color: var(--faint); line-height: 1.55; margin: 10px 2px 2px; }
.honesty-foot b { color: var(--muted); }
@media (max-width: 620px) {
  .honesty-row { grid-template-columns: 1fr; gap: 2px; }
  .honesty-range, .honesty-no { padding-left: 10px; }
}

/* ===== Zdarzenia przejściowe w oknie skanu (wynik) ===== */
.result-transient {
  margin-top: 14px; padding: 12px; border: 1px dashed var(--warn);
  border-radius: 10px; background: rgba(255,255,255,.02);
}
.result-transient h3 {
  margin: 0 0 8px; font-size: .78rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--warn);
}
.transient-note { font-size: .76rem; color: var(--muted); line-height: 1.5; margin: 8px 0 0; }

/* Konto (panel ustawień) — rejestracja/logowanie/subskrypcja Pro */
.konto-panel{margin:14px 0 4px;padding:14px;border:1px solid #222b38;border-radius:14px;background:linear-gradient(180deg,#12161e,#0a0d12)}
.konto-panel h3{margin:0 0 10px;font-size:15px;color:#e5e7eb}
.konto-panel input{width:100%;box-sizing:border-box;margin:6px 0;padding:10px 12px;background:#0a0d12;border:1px solid #222b38;color:#e5e7eb;border-radius:10px;font:inherit;font-size:14px}
.konto-panel input:focus{outline:none;border-color:var(--accent)}
.konto-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.konto-row .start-btn{flex:1;min-width:120px;padding:10px 12px;font-size:13px;border-radius:10px}
.konto-ghost{flex:1;min-width:120px;padding:10px 12px;font-size:13px;border-radius:10px;background:transparent;border:1px solid #2a3441;color:var(--accent);cursor:pointer;font:inherit}
.konto-ghost:active{background:#12161e}
.konto-who{color:#e5e7eb;font-size:13.5px;margin:2px 0 0;word-break:break-all}
.konto-msg{min-height:16px;color:#98a2b3;font-size:12.5px;line-height:1.4;margin:8px 0 0}
.konto-msg.ok{color:#34d399}
.konto-consent{display:flex;gap:8px;align-items:flex-start;color:#e5e7eb;font-size:12.5px;font-weight:500;margin:8px 0 0;cursor:pointer;line-height:1.45}
.konto-consent input{margin-top:2px;accent-color:var(--accent)}

/* ===== Maska akustyczna (jammer) — defensywna, zero RF ===== */
.jammer-card { max-width: 520px; }
.jammer-head h2 { margin: 0 0 4px; }
.jammer-sub { margin: 0 0 12px; font-size: .82rem; color: var(--muted); line-height: 1.45; }
.jam-modes { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 14px; }
.jam-mode {
  display: flex; flex-direction: column; gap: 3px; text-align: left;
  padding: 10px 12px; border-radius: 10px; cursor: pointer; font: inherit;
  color: var(--text); background: var(--panel); border: 1px solid var(--border);
}
.jam-mode[aria-pressed="true"] { border-color: var(--accent); background: var(--panel-2); }
.jam-mode-name { font-weight: 600; font-size: .86rem; color: var(--accent); }
.jam-mode-desc { font-size: .78rem; color: var(--muted); line-height: 1.4; }
.jam-ext {
  display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 12px;
  font-size: .8rem; color: var(--text); cursor: pointer; line-height: 1.4;
}
.jam-ext input { margin-top: 2px; accent-color: var(--accent); }
.jam-zone {
  margin: 12px 0; padding: 12px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--border);
}
.jam-zone[data-tone="warn"] { border-color: var(--warn); }
.jam-zone[data-tone="ok"] { border-color: var(--ok, #34d399); }
.jam-zone-title { font-weight: 700; font-size: .82rem; margin-bottom: 6px; color: var(--text); }
.jam-tier {
  display: flex; gap: 8px; align-items: baseline; padding: 3px 0;
  font-size: .78rem; color: var(--muted); line-height: 1.4;
}
.jam-tier b { min-width: 42px; color: var(--text); font-size: .8rem; }
.jam-tier[data-tone="ok"] b { color: var(--ok, #34d399); }
.jam-tier[data-tone="no"] b { color: var(--warn); }
.jam-guidance { margin: 8px 0 0; padding-left: 18px; font-size: .76rem; color: var(--muted); line-height: 1.5; }
.jam-guidance li { margin: 3px 0; }
.jam-result { margin: 10px 0; padding: 12px; border-radius: 12px; }
.jam-result[data-tone="ok"] { background: rgba(52, 211, 153, .08); border: 1px solid var(--ok, #34d399); }
.jam-result[data-tone="warn"] { background: rgba(245, 158, 11, .08); border: 1px solid var(--warn); }
.jam-result[data-tone="unavailable"] { background: rgba(148, 163, 184, .08); border: 1px solid var(--border); }
.jam-result-title { font-weight: 700; font-size: .85rem; }
.jam-result-title[data-tone="ok"] { color: var(--ok, #34d399); }
.jam-result-title[data-tone="warn"] { color: var(--warn); }
.jam-result-title[data-tone="unavailable"] { color: var(--muted); }
.jam-result-desc { margin: 4px 0 0; font-size: .78rem; color: var(--muted); line-height: 1.45; }
.jam-warnings { margin: 8px 0 0; padding-left: 18px; font-size: .76rem; color: var(--warn); line-height: 1.45; }
.jam-warnings li { margin: 2px 0; }
.jammer-note { margin: 10px 0; font-size: .74rem; color: var(--muted); line-height: 1.45; }
.start-btn.stop { background: var(--alert, #ef4444); }
