/* DuoRegio – Dark Mode (opt-in via html[data-theme="dark"]) */

html[data-theme="dark"] {
  --gray-50:  #0f172a;
  --gray-100: #131c2e;
  --gray-200: #1e293b;
  --gray-300: #94a3b8;
  --gray-500: #cbd5e1;
  --gray-700: #e2e8f0;
  --gray-800: #f1f5f9;
  --gray-900: #f8fafc;
  --white: #131c2e;
  --green-pale: #0b3a22;
  --blue-pale:  #0f2541;
  --orange-light: #3a2a08;
  --teal-light: #0e3a36;
  --purple-pale: #261d44;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.5);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.45);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.55);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.6);
  color-scheme: dark;
}

html[data-theme="dark"] body {
  background: #0a0f1c !important;
  color: var(--gray-700);
}

html[data-theme="dark"] body::before { opacity: .03 !important; mix-blend-mode: overlay; }

html[data-theme="dark"] a { color: #6ee7a3; }
html[data-theme="dark"] a:hover { color: #86efac; }

html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
  background-color: #1e293b !important;
  color: #f1f5f9 !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color: #64748b !important; }

html[data-theme="dark"] [style*="background: white"],
html[data-theme="dark"] [style*="background:white"],
html[data-theme="dark"] [style*="background: #fff"],
html[data-theme="dark"] [style*="background:#fff"],
html[data-theme="dark"] [style*="background: #ffffff"],
html[data-theme="dark"] [style*="background:#ffffff"],
html[data-theme="dark"] [style*="background-color: white"],
html[data-theme="dark"] [style*="background-color:white"],
html[data-theme="dark"] [style*="background-color: #fff"],
html[data-theme="dark"] [style*="background-color:#fff"] {
  background-color: #131c2e !important;
}

html[data-theme="dark"] [style*="background: #f9fafb"],
html[data-theme="dark"] [style*="background:#f9fafb"],
html[data-theme="dark"] [style*="background: #f8fafc"],
html[data-theme="dark"] [style*="background:#f8fafc"],
html[data-theme="dark"] [style*="background: #f1f5f9"],
html[data-theme="dark"] [style*="background:#f1f5f9"],
html[data-theme="dark"] [style*="background: #fafafa"],
html[data-theme="dark"] [style*="background:#fafafa"],
html[data-theme="dark"] [style*="background: #e5e7eb"],
html[data-theme="dark"] [style*="background:#e5e7eb"],
html[data-theme="dark"] [style*="background: #f3f4f6"],
html[data-theme="dark"] [style*="background:#f3f4f6"],
html[data-theme="dark"] [style*="background: #f0f4f8"],
html[data-theme="dark"] [style*="background:#f0f4f8"] {
  background-color: #1a2436 !important;
}

html[data-theme="dark"] [style*="color: #1a1a2e"],
html[data-theme="dark"] [style*="color:#1a1a2e"],
html[data-theme="dark"] [style*="color: #111827"],
html[data-theme="dark"] [style*="color:#111827"],
html[data-theme="dark"] [style*="color: #0f172a"],
html[data-theme="dark"] [style*="color:#0f172a"],
html[data-theme="dark"] [style*="color: #1e293b"],
html[data-theme="dark"] [style*="color:#1e293b"],
html[data-theme="dark"] [style*="color: #374151"],
html[data-theme="dark"] [style*="color:#374151"] {
  color: #f1f5f9 !important;
}
html[data-theme="dark"] [style*="color: #4b5563"],
html[data-theme="dark"] [style*="color:#4b5563"],
html[data-theme="dark"] [style*="color: #334155"],
html[data-theme="dark"] [style*="color:#334155"] {
  color: #cbd5e1 !important;
}
html[data-theme="dark"] [style*="color: #6b7280"],
html[data-theme="dark"] [style*="color:#6b7280"],
html[data-theme="dark"] [style*="color: #64748b"],
html[data-theme="dark"] [style*="color:#64748b"] {
  color: #94a3b8 !important;
}
html[data-theme="dark"] [style*="color: #9ca3af"],
html[data-theme="dark"] [style*="color:#9ca3af"] {
  color: #64748b !important;
}

html[data-theme="dark"] [style*="border: 1px solid #e5e7eb"],
html[data-theme="dark"] [style*="border:1px solid #e5e7eb"],
html[data-theme="dark"] [style*="border: 2px solid #e5e7eb"],
html[data-theme="dark"] [style*="border:2px solid #e5e7eb"],
html[data-theme="dark"] [style*="border: 1px solid #f3f4f6"],
html[data-theme="dark"] [style*="border:1px solid #f3f4f6"],
html[data-theme="dark"] [style*="border: 1px solid #e2e8f0"],
html[data-theme="dark"] [style*="border:1px solid #e2e8f0"],
html[data-theme="dark"] [style*="border-bottom: 1px solid #f3f4f6"],
html[data-theme="dark"] [style*="border-bottom:1px solid #f3f4f6"] {
  border-color: #2a3548 !important;
}

html[data-theme="dark"] header,
html[data-theme="dark"] nav,
html[data-theme="dark"] body > nav,
html[data-theme="dark"] .nav-bar,
html[data-theme="dark"] .nav-wrapper {
  background: rgba(15,23,42,0.95) !important;
  border-bottom-color: #1e293b !important;
}
html[data-theme="dark"] .nav-drop,
html[data-theme="dark"] .nav-mobile,
html[data-theme="dark"] .nav-mobile-menu {
  background: #131c2e !important;
  color: #e2e8f0 !important;
  border-color: #1e293b !important;
}
html[data-theme="dark"] .nav-drop a,
html[data-theme="dark"] .nav-mobile a,
html[data-theme="dark"] .nav-mobile-menu a { color: #e2e8f0 !important; }
html[data-theme="dark"] .nav-drop a:hover { background: #1e293b !important; }
html[data-theme="dark"] .nav-mobile-menu a:hover,
html[data-theme="dark"] .nav-mobile-menu a.active { background: #1e293b !important; color: #4ade80 !important; }
html[data-theme="dark"] .nav-mobile-section { color: #64748b !important; }
html[data-theme="dark"] .nav-mobile-sep { background: #1e293b !important; }

html[data-theme="dark"] .lang-flags { background: #1e293b !important; }
html[data-theme="dark"] .lang-flag.active { background: #334155 !important; }

html[data-theme="dark"] .konto-section,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .pkg-card,
html[data-theme="dark"] .border-card,
html[data-theme="dark"] .art-card,
html[data-theme="dark"] .partner-card,
html[data-theme="dark"] .ag-row,
html[data-theme="dark"] .post-item,
html[data-theme="dark"] .nud-item,
html[data-theme="dark"] details,
html[data-theme="dark"] .filter-btn,
html[data-theme="dark"] .ch-tab {
  background: #131c2e !important;
  color: #e2e8f0 !important;
  border-color: #1e293b !important;
}
html[data-theme="dark"] .filter-btn.active { background: var(--green) !important; color: #fff !important; }

html[data-theme="dark"] footer { background: #050a14 !important; color: #94a3b8 !important; }

html[data-theme="dark"] table { background: #131c2e !important; color: #e2e8f0; }
html[data-theme="dark"] th, html[data-theme="dark"] td { border-color: #2a3548 !important; }

html[data-theme="dark"] pre, html[data-theme="dark"] code {
  background: #0a1325 !important;
  color: #e2e8f0 !important;
}

html[data-theme="dark"] .leaflet-container { filter: brightness(0.78) saturate(0.85); }
html[data-theme="dark"] .leaflet-popup-content-wrapper {
  background: #131c2e !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .leaflet-popup-tip { background: #131c2e !important; }

/* CTA banner na home: w trybie jasnym tło to ciemny gradient z var(--gray-900/800),
   ale w dark mode te zmienne są jasne — przywracamy ciemny gradient,
   żeby białe teksty wewnątrz były widoczne. */
html[data-theme="dark"] .cta-inner {
  background: linear-gradient(135deg, #0a1325 0%, #131c2e 100%) !important;
}
html[data-theme="dark"] .cta-text h2 { color: #ffffff !important; }
html[data-theme="dark"] .cta-text p { color: rgba(255,255,255,0.78) !important; }
html[data-theme="dark"] .btn-white { background: #f8fafc !important; color: #0f172a !important; }

/* Nav buttons (Praca/Firmy/Społeczność/Narzędzia) — w light mode color: var(--gray-600)
   nie jest zdefiniowany, fallback dziedziczenia daje widoczny tekst.
   W dark mode wymuszamy jasny kolor. */
html[data-theme="dark"] .nav-btn,
html[data-theme="dark"] .nav-links a,
html[data-theme="dark"] .nav-mobile-cta,
html[data-theme="dark"] .nav-drop-label {
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .nav-btn:hover {
  background: #1e293b !important;
  color: #ffffff !important;
}

/* Logo w nav (DuoRegio brand) — zachowaj zielony akcent na ciemnym tle */
html[data-theme="dark"] .nav-brand,
html[data-theme="dark"] .lo {
  color: #4ade80 !important;
}

/* Sekcyjne tytuły / nagłówki, które mogą mieć color: black/dark hardcodowane */
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4 { color: #f1f5f9; }
html[data-theme="dark"] .section-title { color: #f1f5f9 !important; }
html[data-theme="dark"] .section-subtitle { color: #94a3b8 !important; }

/* Hero/banner sekcje z jasnymi pastelowymi gradientami (zielony→niebieski,
   różowy, żółty itp.) — w dark mode podmieniamy na ciemny gradient,
   żeby tytuły z color: var(--gray-900) (zremapowanym na jasny) były czytelne. */
html[data-theme="dark"] [style*="linear-gradient(135deg,#ecfdf5"],
html[data-theme="dark"] [style*="linear-gradient(135deg, #ecfdf5"],
html[data-theme="dark"] [style*="linear-gradient(135deg,#f0fdf4"],
html[data-theme="dark"] [style*="linear-gradient(135deg, #f0fdf4"],
html[data-theme="dark"] [style*="linear-gradient(135deg,#eff6ff"],
html[data-theme="dark"] [style*="linear-gradient(135deg, #eff6ff"],
html[data-theme="dark"] [style*="linear-gradient(135deg,#dbeafe"],
html[data-theme="dark"] [style*="linear-gradient(135deg, #dbeafe"],
html[data-theme="dark"] [style*="linear-gradient(135deg,#fef3c7"],
html[data-theme="dark"] [style*="linear-gradient(135deg, #fef3c7"],
html[data-theme="dark"] [style*="linear-gradient(135deg,#fefce8"],
html[data-theme="dark"] [style*="linear-gradient(135deg, #fefce8"],
html[data-theme="dark"] [style*="linear-gradient(135deg,#fce7f3"],
html[data-theme="dark"] [style*="linear-gradient(135deg, #fce7f3"],
html[data-theme="dark"] [style*="linear-gradient(135deg,#fdf4ff"],
html[data-theme="dark"] [style*="linear-gradient(135deg, #fdf4ff"],
html[data-theme="dark"] [style*="linear-gradient(135deg,#fef2f2"],
html[data-theme="dark"] [style*="linear-gradient(135deg, #fef2f2"],
html[data-theme="dark"] [style*="linear-gradient(135deg,#fffbeb"],
html[data-theme="dark"] [style*="linear-gradient(135deg, #fffbeb"],
html[data-theme="dark"] [style*="linear-gradient(180deg,#f"],
html[data-theme="dark"] [style*="linear-gradient(180deg, #f"] {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
}

/* Hero z var(--green-pale) i podobnych pale-akcentów — zostaw, ale dodaj tytułom kontrast */
html[data-theme="dark"] .hero h1,
html[data-theme="dark"] section.hero h1,
html[data-theme="dark"] .hero p,
html[data-theme="dark"] section.hero p { color: #f1f5f9 !important; }
html[data-theme="dark"] .hero p { color: #cbd5e1 !important; }

/* Pigułkowe odznaki na pastelowych tłach (np. "DuoRegio" badge w funkcjach) */
html[data-theme="dark"] [style*="background:#fee2e2"],
html[data-theme="dark"] [style*="background: #fee2e2"],
html[data-theme="dark"] [style*="background:#fef3c7"],
html[data-theme="dark"] [style*="background: #fef3c7"],
html[data-theme="dark"] [style*="background:#dcfce7"],
html[data-theme="dark"] [style*="background: #dcfce7"],
html[data-theme="dark"] [style*="background:#dbeafe"],
html[data-theme="dark"] [style*="background: #dbeafe"] {
  background-color: #1e293b !important;
}

/* Karty ofert pracy — class-based, nie złapie ich [style*=...] */
html[data-theme="dark"] .job-card,
html[data-theme="dark"] .offer-spotlight-card {
  background: #131c2e !important;
  border-color: #1e293b !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .offer-spotlight-card.sponsored {
  border-color: var(--green) !important;
}
html[data-theme="dark"] .offer-spotlight-card.partner {
  background: linear-gradient(135deg, #1f1a10, #131c2e) !important;
  border-color: var(--orange) !important;
}
html[data-theme="dark"] .offer-spotlight-card.random {
  border-style: dashed !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .job-title,
html[data-theme="dark"] .job-company-name { color: #f1f5f9 !important; }
html[data-theme="dark"] .job-detail,
html[data-theme="dark"] .job-tag { color: #cbd5e1 !important; }
html[data-theme="dark"] .job-tag { background: #1e293b !important; border-color: #334155 !important; }

/* Karty firm */
html[data-theme="dark"] .fc-card,
html[data-theme="dark"] .featured-company,
html[data-theme="dark"] .company-card {
  background: #131c2e !important;
  border-color: #1e293b !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .fc-name,
html[data-theme="dark"] .company-name { color: #f1f5f9 !important; }
html[data-theme="dark"] .fc-info,
html[data-theme="dark"] .fc-jobs-label,
html[data-theme="dark"] .company-stat-label { color: #94a3b8 !important; }

/* Aktualności */
html[data-theme="dark"] .art-card,
html[data-theme="dark"] .post-item,
html[data-theme="dark"] .nud-item {
  background: #131c2e !important;
  border-color: #1e293b !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .art-card-title { color: #f1f5f9 !important; }
html[data-theme="dark"] .art-card-excerpt,
html[data-theme="dark"] .art-card-meta { color: #94a3b8 !important; }

.theme-toggle {
  width: 32px; height: 30px;
  border: none; background: transparent;
  cursor: pointer; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: all .15s;
  margin-left: 6px;
  color: var(--gray-700);
}
.theme-toggle:hover { background: var(--gray-100); }
html[data-theme="dark"] .theme-toggle { color: #fbbf24; }
html[data-theme="dark"] .theme-toggle:hover { background: #1e293b; }
.theme-toggle .ico-sun { display: none; }
.theme-toggle .ico-moon { display: inline; }
html[data-theme="dark"] .theme-toggle .ico-sun { display: inline; }
html[data-theme="dark"] .theme-toggle .ico-moon { display: none; }

/* ── CV Generator ──────────────────────────────────────────────────── */
html[data-theme="dark"] .cv-section {
  background: #131c2e !important;
  border-color: #1e293b !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .cv-section-title { color: #f1f5f9 !important; }
html[data-theme="dark"] .cv-field label,
html[data-theme="dark"] .cv-label { color: #94a3b8 !important; }
html[data-theme="dark"] .block {
  background: #1a2436 !important;
  border-color: #2a3548 !important;
}
html[data-theme="dark"] .tpl-card {
  background: #131c2e !important;
  border-color: #2a3548 !important;
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .tpl-card:hover { border-color: var(--green) !important; }
html[data-theme="dark"] .tpl-card.active {
  background: #0b3a22 !important;
  border-color: var(--green) !important;
  color: #f1f5f9 !important;
}
html[data-theme="dark"] .add-btn {
  background: #1a2436 !important;
  border-color: #2a3548 !important;
  color: #64748b !important;
}
html[data-theme="dark"] .add-btn:hover {
  background: #0b3a22 !important;
  border-color: var(--green) !important;
  color: #4ade80 !important;
}
html[data-theme="dark"] .lang-rm {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #94a3b8 !important;
}

/* ── Chat ──────────────────────────────────────────────────────────── */
html[data-theme="dark"] .post-card,
html[data-theme="dark"] .post-header,
html[data-theme="dark"] .odp-card,
html[data-theme="dark"] .reply-box,
html[data-theme="dark"] .chat-form-card {
  background: #131c2e !important;
  border-color: #1e293b !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .post-card.pinned {
  background: #0b3a22 !important;
  border-color: var(--green) !important;
}
html[data-theme="dark"] .odp-card.own {
  background: #0b3a22 !important;
  border-color: var(--green) !important;
}
html[data-theme="dark"] .post-title,
html[data-theme="dark"] .post-h1 { color: #f1f5f9 !important; }
html[data-theme="dark"] .post-body,
html[data-theme="dark"] .odp-text { color: #e2e8f0 !important; }
html[data-theme="dark"] .post-meta,
html[data-theme="dark"] .post-preview,
html[data-theme="dark"] .post-footer,
html[data-theme="dark"] .odp-meta { color: #64748b !important; }
html[data-theme="dark"] .login-nudge {
  background: #1a2436 !important;
  border-color: #2a3548 !important;
  color: #94a3b8 !important;
}
html[data-theme="dark"] .ankieta-box {
  background: #1a2436 !important;
  border-color: #2a3548 !important;
}
html[data-theme="dark"] .ankieta-pytanie { color: #f1f5f9 !important; }
html[data-theme="dark"] .ankieta-btn {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .ankieta-btn.moj-glos {
  background: #0b3a22 !important;
  border-color: var(--green) !important;
  color: #4ade80 !important;
}
html[data-theme="dark"] .reply-textarea {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}
html[data-theme="dark"] .cf-toggle {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .cf-toggle.active {
  background: #0b3a22 !important;
  border-color: var(--green) !important;
  color: #4ade80 !important;
}
html[data-theme="dark"] .upload-zone {
  background: #1a2436 !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .reply-upload-btn {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #94a3b8 !important;
}

/* ── CV Premium — pastelowe karty ──────────────────────────────────── */
html[data-theme="dark"] [style*="background: #fef2f2"],
html[data-theme="dark"] [style*="background:#fef2f2"],
html[data-theme="dark"] [style*="background: #f0fff4"],
html[data-theme="dark"] [style*="background:#f0fff4"],
html[data-theme="dark"] [style*="background: #f0fdf4"],
html[data-theme="dark"] [style*="background:#f0fdf4"] {
  background-color: #1a2436 !important;
}
html[data-theme="dark"] [style*="border: 1.5px solid #fecaca"],
html[data-theme="dark"] [style*="border:1.5px solid #fecaca"] {
  border-color: #3b1d1d !important;
}
html[data-theme="dark"] [style*="color: #991b1b"],
html[data-theme="dark"] [style*="color:#991b1b"] { color: #fca5a5 !important; }

/* ── Dodatkowe pastelowe tła inline ────────────────────────────────── */
html[data-theme="dark"] [style*="background: #fffbeb"],
html[data-theme="dark"] [style*="background:#fffbeb"],
html[data-theme="dark"] [style*="background: #fff7ed"],
html[data-theme="dark"] [style*="background:#fff7ed"],
html[data-theme="dark"] [style*="background: #faf5ff"],
html[data-theme="dark"] [style*="background:#faf5ff"],
html[data-theme="dark"] [style*="background: #f3e8ff"],
html[data-theme="dark"] [style*="background:#f3e8ff"],
html[data-theme="dark"] [style*="background: #ede9fe"],
html[data-theme="dark"] [style*="background:#ede9fe"],
html[data-theme="dark"] [style*="background: #fce7f3"],
html[data-theme="dark"] [style*="background:#fce7f3"] {
  background-color: #1a2436 !important;
}
html[data-theme="dark"] [style*="linear-gradient(135deg, #faf5ff"],
html[data-theme="dark"] [style*="linear-gradient(135deg,#faf5ff"] {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
}
html[data-theme="dark"] [style*="color: #92400e"],
html[data-theme="dark"] [style*="color:#92400e"] { color: #fbbf24 !important; }
html[data-theme="dark"] [style*="color: #7c3aed"],
html[data-theme="dark"] [style*="color:#7c3aed"] { color: #a78bfa !important; }
html[data-theme="dark"] [style*="color: #2563eb"],
html[data-theme="dark"] [style*="color:#2563eb"] { color: #93c5fd !important; }
html[data-theme="dark"] [style*="color: #059669"],
html[data-theme="dark"] [style*="color:#059669"] { color: #6ee7b7 !important; }
html[data-theme="dark"] [style*="color: #ea580c"],
html[data-theme="dark"] [style*="color:#ea580c"] { color: #fb923c !important; }
html[data-theme="dark"] [style*="color: #1d4ed8"],
html[data-theme="dark"] [style*="color:#1d4ed8"] { color: #93c5fd !important; }
html[data-theme="dark"] [style*="color: #166534"],
html[data-theme="dark"] [style*="color:#166534"] { color: #4ade80 !important; }
html[data-theme="dark"] [style*="border: 1px solid #fde68a"],
html[data-theme="dark"] [style*="border:1px solid #fde68a"],
html[data-theme="dark"] [style*="border: 2px solid #fde68a"],
html[data-theme="dark"] [style*="border:2px solid #fde68a"] { border-color: #5a4100 !important; }
html[data-theme="dark"] [style*="border: 1px solid #bbf7d0"],
html[data-theme="dark"] [style*="border:1px solid #bbf7d0"] { border-color: #0b3a22 !important; }

/* ── Aktualności ───────────────────────────────────────────────────── */
html[data-theme="dark"] .news-cat {
  background: #131c2e !important;
  border-color: #2a3548 !important;
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .news-cat.active {
  background: var(--green) !important;
  color: white !important;
  border-color: var(--green) !important;
}
html[data-theme="dark"] .news-card {
  background: #131c2e !important;
  border-color: #1e293b !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .news-card.pinned {
  background: linear-gradient(135deg, #131c2e, #1a2a1a) !important;
  border-color: #fbbf24 !important;
}
html[data-theme="dark"] .news-aktualnosc { background: #0f2541 !important; color: #93c5fd !important; }
html[data-theme="dark"] .news-zapotrzebowanie { background: #0b3a22 !important; color: #4ade80 !important; }
html[data-theme="dark"] .news-oferta_wspolpracy { background: #2d2000 !important; color: #fbbf24 !important; }
html[data-theme="dark"] .news-zamkniete { background: #2d0f0f !important; color: #fca5a5 !important; }
html[data-theme="dark"] .news-wydarzenie { background: #1e1040 !important; color: #c4b5fd !important; }

/* ── Ankiety / Umfragen ────────────────────────────────────────────── */
html[data-theme="dark"] .poll-card {
  background: #131c2e !important;
  border-color: #1e293b !important;
}
html[data-theme="dark"] .poll-q { color: #f1f5f9 !important; }
html[data-theme="dark"] .poll-opts button {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .poll-opts button:hover {
  background: #0b3a22 !important;
  border-color: var(--green) !important;
  color: #4ade80 !important;
}
html[data-theme="dark"] .poll-opts button.voted {
  background: #0b3a22 !important;
  border-color: var(--green) !important;
  color: #4ade80 !important;
}
html[data-theme="dark"] .poll-bar { background: #1e293b !important; }

/* ── Kalkulator ─────────────────────────────────────────────────────── */
html[data-theme="dark"] .kc {
  background: #131c2e !important;
  border-color: #1e293b !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .kt { color: #f1f5f9 !important; }
html[data-theme="dark"] .ki {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}
html[data-theme="dark"] .kb {
  background: #131c2e !important;
  border-color: #2a3548 !important;
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .kres {
  background: #0f2541 !important;
  color: #f1f5f9 !important;
}
html[data-theme="dark"] .kno {
  background: #1a2436 !important;
  color: #64748b !important;
}
html[data-theme="dark"] .kr { border-bottom-color: #1e293b !important; }
html[data-theme="dark"] .tp {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #94a3b8 !important;
}
html[data-theme="dark"] .tp.act {
  background: #0b3a22 !important;
  border-color: var(--green) !important;
  color: #4ade80 !important;
}
html[data-theme="dark"] .stop-row {
  background: #1a2436 !important;
  border-color: #2a3548 !important;
}
html[data-theme="dark"] .tdt {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}

/* ── Asystent pism ──────────────────────────────────────────────────── */
html[data-theme="dark"] .doc-lang,
html[data-theme="dark"] .doc-example {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #94a3b8 !important;
}
html[data-theme="dark"] .doc-lang.active { color: #93c5fd !important; }

/* ── Konto dashboard ────────────────────────────────────────────────── */
html[data-theme="dark"] .konto-card {
  background: #131c2e !important;
  border-color: #1e293b !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .konto-card h3 { color: #f1f5f9 !important; }
html[data-theme="dark"] .konto-card p { color: #94a3b8 !important; }
html[data-theme="dark"] .konto-section h2 { color: #f1f5f9 !important; }
html[data-theme="dark"] .konto-hello h1 { color: #f1f5f9 !important; }
html[data-theme="dark"] .konto-hello p { color: #94a3b8 !important; }
html[data-theme="dark"] .konto-badge.firma  { background: #0f2541 !important; color: #93c5fd !important; }
html[data-theme="dark"] .konto-badge.kandydat { background: #0b3a22 !important; color: #4ade80 !important; }
html[data-theme="dark"] .konto-logout a {
  background: #131c2e !important;
  border-color: #2a3548 !important;
  color: #94a3b8 !important;
}
html[data-theme="dark"] .pf-field label { color: #cbd5e1 !important; }
html[data-theme="dark"] .pf-success { background: #0b3a22 !important; border-color: var(--green) !important; color: #4ade80 !important; }
html[data-theme="dark"] .pf-error   { background: #2d0f0f !important; border-color: #7f1d1d !important; color: #fca5a5 !important; }

/* ── Welcome / onboarding modal ─────────────────────────────────────── */
html[data-theme="dark"] #welcome-modal > div {
  background: #0d1626 !important;
}
html[data-theme="dark"] #wm-choose button {
  background: #1a2436 !important;
  border-color: #2a3548 !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] #wm-choose button div[style*="color:#0f172a"],
html[data-theme="dark"] #wm-choose button div[style*="color: #0f172a"] {
  color: #f1f5f9 !important;
}
html[data-theme="dark"] #wm-praca a,
html[data-theme="dark"] #wm-firma a {
  background: #131c2e !important;
  border-color: #1e293b !important;
  color: #e2e8f0 !important;
}

/* ── Checklista ─────────────────────────────────────────────────────── */
html[data-theme="dark"] .chk {
  background: #131c2e !important;
  border-color: #1e293b !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .chk:hover { border-color: var(--green) !important; }
html[data-theme="dark"] .chk-group { color: #f1f5f9 !important; }

/* ── Poradnik (guide steps) ─────────────────────────────────────────── */
html[data-theme="dark"] .step {
  background: #131c2e !important;
  border-color: #1e293b !important;
}
html[data-theme="dark"] .step:hover { border-color: var(--green) !important; }
html[data-theme="dark"] .step-body h3 { color: #f1f5f9 !important; }
html[data-theme="dark"] .step-body p { color: #cbd5e1 !important; }
html[data-theme="dark"] .link-btn {
  background: #131c2e !important;
  border-color: #2a3548 !important;
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .link-btn:hover { border-color: var(--green) !important; color: #4ade80 !important; }

/* ── Regi / Duo widget ──────────────────────────────────────────────── */
html[data-theme="dark"] #duo-help-btn {
  background: #131c2e !important;
  border-color: #2a3548 !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.4) !important;
}
html[data-theme="dark"] #duo-help-label { color: #94a3b8 !important; }
html[data-theme="dark"] #duo-chat {
  background: #0d1626 !important;
  border-color: #1e293b !important;
}
html[data-theme="dark"] #duo-chat-messages { background: #0d1626 !important; }
html[data-theme="dark"] .duo-msg.duo {
  background: #0b3a22 !important;
  color: #4ade80 !important;
}
html[data-theme="dark"] #duo-chat-quick button {
  background: #0b3a22 !important;
  border-color: #166534 !important;
  color: #4ade80 !important;
}
html[data-theme="dark"] #duo-chat-quick button:hover { background: #166534 !important; }
html[data-theme="dark"] #duo-chat-input {
  background: #0d1626 !important;
  border-top-color: #1e293b !important;
}
html[data-theme="dark"] #duo-chat-input input {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}

/* ── Chat sidebar ───────────────────────────────────────────────────── */
html[data-theme="dark"] #chat-sidebar {
  background: #0d1626 !important;
  border-left-color: #1e293b !important;
}
html[data-theme="dark"] #chat-kanaly {
  background: #131c2e !important;
  border-bottom-color: #1e293b !important;
}
html[data-theme="dark"] .cw-kanal {
  border-color: #2a3548 !important;
  color: #94a3b8 !important;
}
html[data-theme="dark"] .cw-kanal:hover,
html[data-theme="dark"] .cw-kanal.active {
  background: #0b3a22 !important;
  border-color: var(--green) !important;
  color: #4ade80 !important;
}
html[data-theme="dark"] .cw-post-card {
  background: #131c2e !important;
  border-color: #1e293b !important;
}
html[data-theme="dark"] .cw-post-card:hover { background: #1a2436 !important; }
html[data-theme="dark"] .cw-post-title { color: #f1f5f9 !important; }
html[data-theme="dark"] .cw-post-preview,
html[data-theme="dark"] .cw-post-meta { color: #64748b !important; }
html[data-theme="dark"] #chat-quick-post { background: #131c2e !important; border-top-color: #1e293b !important; }
html[data-theme="dark"] .cw-input {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}
html[data-theme="dark"] .nav-user-drop {
  background: #131c2e !important;
  border-color: #1e293b !important;
}
html[data-theme="dark"] .nud-header {
  background: linear-gradient(135deg, #0b3a22, #0e3a36) !important;
  border-bottom-color: #1e293b !important;
}
html[data-theme="dark"] .nud-name { color: #f1f5f9 !important; }
html[data-theme="dark"] .nud-item { color: #e2e8f0 !important; }
html[data-theme="dark"] .nud-item:hover { background: #1e293b !important; color: #4ade80 !important; }
html[data-theme="dark"] .nud-sep { background: #1e293b !important; }
html[data-theme="dark"] .nud-logout:hover { background: #2d0f0f !important; }
