/* ==========================================================================
   POLITYKON — SYSTEM 6 DOPRACOWANYCH MOTYWÓW GRAFICZNYCH & TYPOGRAFICZNYCH
   ========================================================================== */

/* 1. DOMYŚLNY: CYBER VFD (Matrix Cyan & Emerald) */
:root,
body.theme-vfd-cyber,
[data-theme="theme-vfd-cyber"] {
    --theme-id: "theme-vfd-cyber";
    --theme-name: "Cyber VFD";
    --bg-dark: #070a12;
    --bg-surface: #0f1524;
    --bg-card: #151d32;
    --bg-card-hover: #1b2640;
    --bg-surface-soft: rgba(15, 23, 42, 0.75);
    --bg-navbar: rgba(15, 21, 36, 0.88);
    --border-color: #232f4c;
    --border-highlight: #00f0ff;
    --border-subtle: rgba(255, 255, 255, 0.08);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-quote: #e2e8f0;

    /* Verdict Colors */
    --color-prawda: #10b981;
    --color-polprawda: #f59e0b;
    --color-manipulacja: #f97316;
    --color-falsz: #ef4444;
    --color-odlot: #ec4899;

    --brand-gradient: linear-gradient(135deg, #00f0ff 0%, #3b82f6 50%, #8b5cf6 100%);
    --polish-flag-gradient: linear-gradient(180deg, #ffffff 50%, #dc2626 50%);

    --accent-primary: #00f0ff;
    --accent-glow: rgba(0, 240, 255, 0.35);

    --vfd-bezel-bg: linear-gradient(180deg, #111827 0%, #030712 100%);
    --vfd-screen-bg: #020617;
    --vfd-screen-border: rgba(30, 41, 59, 0.8);
    --vfd-glow-primary: #00f0ff;
    --vfd-glow-sec: #10b981;
    --vfd-text-glow: 0 0 6px rgba(0, 240, 255, 0.7);

    --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-mono: 'Space Grotesk', monospace;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 25px rgba(0, 240, 255, 0.2);
}

/* 2. BURSZTYN CRT (Retro Amber Phosphor '80s Terminal) */
body.theme-amber-crt,
[data-theme="theme-amber-crt"] {
    --theme-id: "theme-amber-crt";
    --theme-name: "Bursztyn CRT";
    --bg-dark: #0b0906;
    --bg-surface: #141009;
    --bg-card: #1c170d;
    --bg-card-hover: #272013;
    --bg-surface-soft: rgba(33, 26, 14, 0.88);
    --bg-navbar: rgba(20, 16, 9, 0.92);
    --border-color: #3b2c15;
    --border-highlight: #ffb000;
    --border-subtle: rgba(255, 176, 0, 0.14);

    --text-primary: #ffe6b3;
    --text-secondary: #d4a558;
    --text-muted: #8c6e3b;
    --text-quote: #ffefcc;

    --color-prawda: #22c55e;
    --color-polprawda: #ffb000;
    --color-manipulacja: #f97316;
    --color-falsz: #ef4444;
    --color-odlot: #f43f5e;

    --brand-gradient: linear-gradient(135deg, #ffb000 0%, #f59e0b 50%, #d97706 100%);
    --polish-flag-gradient: linear-gradient(180deg, #ffe6b3 50%, #d97706 50%);

    --accent-primary: #ffb000;
    --accent-glow: rgba(255, 176, 0, 0.4);

    --vfd-bezel-bg: linear-gradient(180deg, #1c160c 0%, #0a0805 100%);
    --vfd-screen-bg: #070503;
    --vfd-screen-border: #423218;
    --vfd-glow-primary: #ffb000;
    --vfd-glow-sec: #fbbf24;
    --vfd-text-glow: 0 0 8px rgba(255, 176, 0, 0.75);

    --font-main: 'IBM Plex Mono', 'Space Mono', monospace;
    --font-display: 'Space Mono', 'IBM Plex Mono', monospace;
    --font-mono: 'Space Mono', monospace;

    --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.85);
    --shadow-glow: 0 0 25px rgba(255, 176, 0, 0.25);
}

/* 3. DZIENNIK PRASOWY (Klasyczna Gazeta / Sepia & Warm Paper) */
body.theme-classic-press,
[data-theme="theme-classic-press"] {
    --theme-id: "theme-classic-press";
    --theme-name: "Dziennik Prasowy";
    --bg-dark: #f6f3ea;
    --bg-surface: #ede7d8;
    --bg-card: #ffffff;
    --bg-card-hover: #faf8f2;
    --bg-surface-soft: rgba(237, 231, 216, 0.85);
    --bg-navbar: rgba(246, 243, 234, 0.95);
    --border-color: #d6ccb8;
    --border-highlight: #1e3a8a;
    --border-subtle: rgba(0, 0, 0, 0.08);

    --text-primary: #181c26;
    --text-secondary: #3f4756;
    --text-muted: #6b7280;
    --text-quote: #111827;

    --color-prawda: #15803d;
    --color-polprawda: #b45309;
    --color-manipulacja: #c2410c;
    --color-falsz: #b91c1c;
    --color-odlot: #9d174d;

    --brand-gradient: linear-gradient(135deg, #1e3a8a 0%, #991b1b 100%);
    --polish-flag-gradient: linear-gradient(180deg, #ffffff 50%, #991b1b 50%);

    --accent-primary: #1e3a8a;
    --accent-glow: rgba(30, 58, 138, 0.2);

    --vfd-bezel-bg: linear-gradient(180deg, #e7dfce 0%, #d8cdba 100%);
    --vfd-screen-bg: #f5f0e3;
    --vfd-screen-border: #cdc2ac;
    --vfd-glow-primary: #1e3a8a;
    --vfd-glow-sec: #15803d;
    --vfd-text-glow: none;

    --font-main: 'Merriweather', Georgia, serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-mono: 'Space Mono', monospace;

    --shadow-card: 0 4px 16px -2px rgba(45, 35, 20, 0.09);
    --shadow-glow: 0 0 20px rgba(30, 58, 138, 0.12);
}

/* 4. NOWOCZESNY GRAFIT (Midnight Slate & Electric Indigo) */
body.theme-modern-slate,
[data-theme="theme-modern-slate"] {
    --theme-id: "theme-modern-slate";
    --theme-name: "Nowoczesny Grafit";
    --bg-dark: #0b0f19;
    --bg-surface: #111827;
    --bg-card: #182234;
    --bg-card-hover: #1f2d45;
    --bg-surface-soft: rgba(17, 24, 39, 0.85);
    --bg-navbar: rgba(17, 24, 39, 0.9);
    --border-color: #28354b;
    --border-highlight: #6366f1;
    --border-subtle: rgba(255, 255, 255, 0.08);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #94a3b8;
    --text-quote: #e2e8f0;

    --color-prawda: #10b981;
    --color-polprawda: #f59e0b;
    --color-manipulacja: #f97316;
    --color-falsz: #ef4444;
    --color-odlot: #ec4899;

    --brand-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #38bdf8 100%);
    --polish-flag-gradient: linear-gradient(180deg, #ffffff 50%, #dc2626 50%);

    --accent-primary: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.35);

    --vfd-bezel-bg: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    --vfd-screen-bg: #090d16;
    --vfd-screen-border: #334155;
    --vfd-glow-primary: #818cf8;
    --vfd-glow-sec: #38bdf8;
    --vfd-text-glow: 0 0 8px rgba(129, 140, 248, 0.7);

    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-mono: 'Space Grotesk', monospace;

    --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.2);
}

/* 5. SZKARŁATNY ALERT (War Room DEFCON / Crimson Dossier) */
body.theme-crimson-alert,
[data-theme="theme-crimson-alert"] {
    --theme-id: "theme-crimson-alert";
    --theme-name: "Szkarłatny Alert";
    --bg-dark: #09080a;
    --bg-surface: #141013;
    --bg-card: #1c1519;
    --bg-card-hover: #271d23;
    --bg-surface-soft: rgba(28, 21, 25, 0.88);
    --bg-navbar: rgba(20, 16, 19, 0.92);
    --border-color: #3d1c24;
    --border-highlight: #ef4444;
    --border-subtle: rgba(239, 68, 68, 0.16);

    --text-primary: #fef2f2;
    --text-secondary: #fca5a5;
    --text-muted: #fca5a5;
    --text-quote: #fee2e2;

    --color-prawda: #10b981;
    --color-polprawda: #fbbf24;
    --color-manipulacja: #f97316;
    --color-falsz: #ef4444;
    --color-odlot: #f43f5e;

    --brand-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #f97316 100%);
    --polish-flag-gradient: linear-gradient(180deg, #ffffff 50%, #dc2626 50%);

    --accent-primary: #ef4444;
    --accent-glow: rgba(239, 68, 68, 0.45);

    --vfd-bezel-bg: linear-gradient(180deg, #1f1418 0%, #0a0708 100%);
    --vfd-screen-bg: #070406;
    --vfd-screen-border: #4c1d28;
    --vfd-glow-primary: #f43f5e;
    --vfd-glow-sec: #fb923c;
    --vfd-text-glow: 0 0 8px rgba(244, 63, 94, 0.8);

    --font-main: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-mono: 'Space Mono', monospace;

    --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.85);
    --shadow-glow: 0 0 25px rgba(239, 68, 68, 0.25);
}

/* 6. SKANDYNAWSKI CHŁÓD (Nordic Frost / Clean Daylight) */
body.theme-nordic-frost,
[data-theme="theme-nordic-frost"] {
    --theme-id: "theme-nordic-frost";
    --theme-name: "Skandynawski Chłód";
    --bg-dark: #f8fafc;
    --bg-surface: #edf2f7;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --bg-surface-soft: rgba(237, 242, 247, 0.85);
    --bg-navbar: rgba(248, 250, 252, 0.95);
    --border-color: #cbd5e1;
    --border-highlight: #0284c7;
    --border-subtle: rgba(0, 0, 0, 0.06);

    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-quote: #1e293b;

    --color-prawda: #059669;
    --color-polprawda: #d97706;
    --color-manipulacja: #ea580c;
    --color-falsz: #dc2626;
    --color-odlot: #db2777;

    --brand-gradient: linear-gradient(135deg, #0284c7 0%, #0d9488 100%);
    --polish-flag-gradient: linear-gradient(180deg, #ffffff 50%, #dc2626 50%);

    --accent-primary: #0284c7;
    --accent-glow: rgba(2, 132, 199, 0.2);

    --vfd-bezel-bg: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 100%);
    --vfd-screen-bg: #ffffff;
    --vfd-screen-border: #cbd5e1;
    --vfd-glow-primary: #0284c7;
    --vfd-glow-sec: #0d9488;
    --vfd-text-glow: none;

    --font-main: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-mono: 'Space Grotesk', monospace;

    --shadow-card: 0 4px 16px -2px rgba(15, 23, 42, 0.06);
    --shadow-glow: 0 0 20px rgba(2, 132, 199, 0.15);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: 70px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--text-primary);
}

/* ----------------- NAVBAR ----------------- */
.navbar {
    background: var(--bg-navbar);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: var(--shadow-glow);
    transition: all 0.3s ease;
}

.brand-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.live-ticker-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 6px 14px;
    border-radius: var(--radius-full);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-prawda);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-prawda);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.ticker-text {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--color-prawda);
}

/* ==========================================================================
   HI-FI VFD / LCD DIGITAL TELEMETRY CONSOLE (VINTAGE AUDIO DECK STYLE)
   ========================================================================== */
.hifi-vfd-deck {
    display: flex;
    align-items: center;
    background: var(--vfd-bezel-bg);
    border: 1.5px solid var(--border-color);
    border-top: 1.5px solid var(--border-highlight);
    border-radius: 8px;
    padding: 3px 6px;
    box-shadow: 
        var(--shadow-card),
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        var(--shadow-glow);
    position: relative;
    user-select: none;
    max-width: 820px;
    flex: 1;
    margin: 0 12px;
    max-height: 280px;
    opacity: 1;
    transform: translateY(0);
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease,
                margin 0.35s ease,
                padding 0.35s ease,
                transform 0.35s ease,
                border-width 0.35s ease;
}

/* Stan zwinięty konsoli operacyjnej (podczas przewijania rankingu / na żądanie) */
.hifi-vfd-deck.vfd-deck-collapsed {
    max-height: 0 !important;
    opacity: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-top-width: 0 !important;
    border-bottom-width: 0 !important;
    transform: translateY(-16px) scaleY(0.85) !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

.vfd-bezel-screws {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 100%;
    padding: 0 4px;
}

.vfd-screw {
    width: 5px;
    height: 5px;
    background: linear-gradient(135deg, #64748b, #1e293b);
    border-radius: 50%;
    box-shadow: inset 0 0.5px 1px #94a3b8, 0 1px 1px rgba(0,0,0,0.8);
    position: relative;
}
.vfd-screw::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 1px;
    width: 3px;
    height: 1px;
    background: #0f172a;
}

.vfd-screen {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--vfd-screen-bg);
    background-image: none;
    border: 1px solid var(--vfd-screen-border);
    border-radius: 6px;
    padding: 8px 14px;
    gap: 12px;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Subtle cathode scanline raster ONLY for dark retro CRT/VFD themes */
body.theme-vfd-cyber .vfd-screen,
body.theme-amber-crt .vfd-screen {
    background-image: 
        linear-gradient(180deg, rgba(0, 240, 255, 0.03) 0%, transparent 100%),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.35) 2px, rgba(0, 0, 0, 0.35) 4px);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.7);
}

.vfd-separator {
    width: 1px;
    height: 38px;
    background: linear-gradient(180deg, transparent, var(--border-color), transparent);
}

/* VFD PHOSPHOR GLOWS */
.vfd-glow-cyan {
    color: var(--vfd-glow-primary, #00f0ff) !important;
    text-shadow: var(--vfd-text-glow, 0 0 6px rgba(0, 240, 255, 0.7));
}
.vfd-glow-green {
    color: var(--vfd-glow-sec, #10b981) !important;
    text-shadow: var(--vfd-text-glow, 0 0 6px rgba(16, 185, 129, 0.7));
}
.vfd-glow-amber {
    color: #fbbf24 !important;
    text-shadow: 0 0 6px rgba(251, 191, 36, 0.7);
}
.vfd-glow-ruby {
    color: #f43f5e !important;
    text-shadow: 0 0 6px rgba(244, 63, 94, 0.7);
}

/* COMMON VFD ELEMENTS */
.vfd-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
    gap: 6px;
}
.vfd-lbl {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.6rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.vfd-sublbl {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--vfd-glow-primary, #00f0ff);
}

/* MODULE 1: TASK & SYSTEM STATE */
.vfd-module-task {
    flex: 1.2;
    min-width: 140px;
    max-width: 220px;
}
.vfd-tag {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.58rem;
    font-weight: 800;
    color: #10b981;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.vfd-tag-live {
    color: #34d399;
}
.vfd-tag-mode {
    color: #64748b;
    font-size: 0.55rem;
}
.vfd-led-live {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: live-breathe 2s infinite ease-in-out;
}
@keyframes live-breathe {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px #10b981; }
    50% { opacity: 0.45; transform: scale(0.9); box-shadow: 0 0 3px #10b981; }
}
.vfd-display-line {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    white-space: nowrap;
}
.vfd-prefix {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.65rem;
    font-weight: 800;
    color: #94a3b8;
}
.vfd-text-scroll {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vfd-subline {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    opacity: 0.85;
}

/* MODULE 2: 7 CHANNELS MEDIA MONITOR */
.vfd-module-channels {
    flex: 1.35;
    min-width: 170px;
}
.vfd-sublbl-green {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.6rem;
    font-weight: 700;
    color: #10b981;
    text-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}
.vfd-channels-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3px;
    margin: 2px 0;
}
.vfd-ch-badge {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(51, 65, 85, 0.7);
    border-radius: 3px;
    padding: 2px 2px;
    transition: all 0.2s ease;
}
.vfd-ch-badge:hover {
    border-color: rgba(0, 240, 255, 0.6);
    background: rgba(30, 41, 59, 0.9);
}
.vfd-ch-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 4px #10b981;
    flex-shrink: 0;
}
.vfd-ch-badge.syncing .vfd-ch-dot {
    background-color: #00f0ff;
    box-shadow: 0 0 6px #00f0ff;
    animation: live-breathe 0.6s infinite ease-in-out;
}
.vfd-ch-badge.error .vfd-ch-dot {
    background-color: #ef4444;
    box-shadow: 0 0 4px #ef4444;
}
.vfd-ch-code {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.55rem;
    font-weight: 700;
    color: #cbd5e1;
    letter-spacing: 0.2px;
    line-height: 1;
}
.vfd-channels-subline {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.54rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: uppercase;
}

/* MODULE 3: COUNTDOWN & CYCLE PROGRESS */
.vfd-module-countdown {
    flex: 0.9;
    min-width: 95px;
}
.vfd-indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--vfd-glow-primary, #00f0ff);
    box-shadow: 0 0 6px var(--vfd-glow-primary, #00f0ff);
    animation: pulse 1s infinite;
}
.vfd-countdown-main {
    display: flex;
    align-items: center;
    gap: 8px;
}
.vfd-lcd-counter {
    display: flex;
    align-items: baseline;
    font-family: 'Space Grotesk', monospace;
}
.vfd-seg-digit {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--vfd-glow-primary, #00f0ff);
    line-height: 1;
    text-shadow: var(--vfd-text-glow, 0 0 8px rgba(0, 240, 255, 0.8));
    min-width: 24px;
    text-align: right;
}
.vfd-seg-unit {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--vfd-glow-primary, #00f0ff);
    margin-left: 1px;
}
.vfd-progress-wrapper {
    flex: 1;
}
.vfd-progress-track {
    height: 5px;
    background: var(--bg-surface-soft, rgba(15, 23, 42, 0.9));
    border: 1px solid var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}
.vfd-progress-fill {
    height: 100%;
    background: var(--accent-primary);
    box-shadow: 0 0 6px var(--accent-glow);
    transition: width 0.3s ease;
}
.vfd-progress-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 2px;
    padding: 0 1px;
}
.vfd-progress-ticks span {
    width: 1px;
    height: 3px;
    background: rgba(51, 65, 85, 0.8);
}

/* MODULE 4: HARDWARE & ENGINE TELEMETRY */
.vfd-module-hardware {
    flex: 1.4;
    min-width: 165px;
}
.vfd-engine-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 3px;
}
.vfd-engine-pill {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.6rem;
    font-weight: 800;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 3px;
    padding: 1px 5px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.vfd-hw-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px 8px;
}
.vfd-hw-item {
    display: flex;
    align-items: center;
    gap: 4px;
}
.vfd-hw-name {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.55rem;
    font-weight: 800;
    color: #64748b;
    min-width: 24px;
}
.vfd-mini-meter {
    flex: 1;
    height: 4px;
    background: #0f172a;
    border: 0.5px solid #334155;
    border-radius: 1px;
    overflow: hidden;
    min-width: 20px;
}
.vfd-mini-bar {
    height: 100%;
    background: #3b82f6;
    border-radius: 1px;
    transition: width 0.3s ease, background-color 0.3s ease;
}
.vfd-hw-val {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.6rem;
    font-weight: 700;
    color: #94a3b8;
    min-width: 28px;
    text-align: right;
}

/* RESPONSIVE ADAPTATION FOR DIGITAL CONSOLE */
@media (max-width: 1250px) {
    .vfd-channels-subline {
        display: none;
    }
}

@media (max-width: 1050px) {
    .vfd-module-hardware .vfd-hw-grid {
        display: none;
    }
    .hifi-vfd-deck {
        max-width: 620px;
    }
}

@media (max-width: 860px) {
    .vfd-module-channels {
        display: none;
    }
    .vfd-screen > .vfd-separator:nth-of-type(2) {
        display: none;
    }
}

@media (max-width: 768px) {
    .hifi-vfd-deck {
        margin: 8px 0 0 0;
        width: 100%;
        max-width: 100%;
        order: 3;
        padding: 3px 4px;
    }
    .vfd-bezel-screws {
        display: none !important;
    }
    .vfd-screen {
        padding: 8px 10px;
        gap: 8px;
    }
    .vfd-tag {
        font-size: 0.68rem;
        font-weight: 800;
    }
    .vfd-tag-mode {
        font-size: 0.65rem;
        font-weight: 700;
    }
    .vfd-prefix {
        font-size: 0.72rem;
        font-weight: 800;
    }
    .vfd-text-scroll {
        font-size: 0.84rem;
        font-weight: 800;
    }
    .vfd-subline {
        font-size: 0.68rem;
        font-weight: 700;
    }
    .vfd-lbl {
        font-size: 0.68rem;
        font-weight: 800;
    }
    .vfd-seg-digit {
        font-size: 1.45rem;
        font-weight: 800;
    }
    .nav-container {
        flex-wrap: wrap;
    }
    .vfd-module-channels {
        display: none;
    }
    .vfd-module-hardware {
        display: none;
    }
    .vfd-screen > .vfd-separator:nth-of-type(3) {
        display: none;
    }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ----------------- BUTTONS ----------------- */
.btn {
    font-family: var(--font-main);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--bg-surface);
    border-color: #475569;
}

.btn-secondary {
    background: #334155;
    color: #ffffff;
}

.btn-secondary:hover {
    background: #475569;
}

.btn-glow-purple {
    background: linear-gradient(135deg, #7c3aed, #db2777);
    color: #ffffff;
    box-shadow: 0 0 18px rgba(124, 58, 237, 0.4);
}

.btn-glow-purple:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.btn-large {
    padding: 14px 28px;
    font-size: 1rem;
    width: 100%;
    border-radius: var(--radius-md);
}

/* ----------------- MAIN LAYOUT ----------------- */
.main-content {
    max-width: 1300px;
    margin: 0 auto;
    padding: 24px;
}

/* ----------------- STATS STRIP ----------------- */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-card);
}

.stat-icon {
    font-size: 28px;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-display);
    color: #f1f5f9;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.highlight-gauge .stat-val {
    color: #60a5fa;
    text-shadow: 0 0 12px rgba(96, 165, 250, 0.4);
}

.pinokio-alert {
    border-color: rgba(239, 68, 68, 0.3);
    background: linear-gradient(135deg, #18121e, #1c1017);
}

.stat-badge-red {
    font-size: 0.7rem;
    font-weight: 800;
    color: #f87171;
    letter-spacing: 0.5px;
}

.stat-subtext {
    font-size: 0.75rem;
    color: #cbd5e1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ----------------- VIEW TABS ----------------- */
.view-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
    color: var(--accent-primary);
    border-bottom-color: var(--border-highlight);
    background: rgba(255, 255, 255, 0.04);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.25s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ----------------- FILTER BAR ----------------- */
.filter-bar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 14px 16px 14px 44px;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus {
    border-color: var(--border-highlight);
    box-shadow: 0 0 10px var(--accent-glow);
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.filter-group select {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    outline: none;
    cursor: pointer;
    font-weight: 500;
}

.verdict-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.pill-btn:hover {
    border-color: #64748b;
    color: var(--text-primary);
}

.pill-btn.active {
    background: #334155;
    color: #ffffff;
    border-color: #64748b;
}

.pill-prawda.active { background: rgba(16, 185, 129, 0.2); border-color: var(--color-prawda); color: #34d399; }
.pill-polprawda.active { background: rgba(245, 158, 11, 0.2); border-color: var(--color-polprawda); color: #fbbf24; }
.pill-manipulacja.active { background: rgba(249, 115, 22, 0.2); border-color: var(--color-manipulacja); color: #fb923c; }
.pill-falsz.active { background: rgba(239, 68, 68, 0.2); border-color: var(--color-falsz); color: #f87171; }
.pill-odlot.active { background: rgba(236, 72, 153, 0.2); border-color: var(--color-odlot); color: #f472b6; }

/* ----------------- STATEMENTS FEED GRID ----------------- */
.statements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
}

.statement-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.22s ease,
                box-shadow 0.22s ease;
    box-shadow: var(--shadow-card);
    position: relative;
    cursor: pointer;
    user-select: none;
}

.statement-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-highlight);
    box-shadow: var(--shadow-glow);
}

.statement-card:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.politician-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.politician-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
    background: var(--bg-surface);
}

.chip-info {
    min-width: 0;
}

.chip-name {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chip-party {
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Card Badges: Verdict & 1-5 Rating */
.card-badges-row {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    flex-shrink: 0;
}

.clean-verdict-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 9999px;
    font-size: 0.73rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.clean-rating-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 9999px;
    padding: 2px 8px;
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
    color: #fbbf24;
}

.rating-stars {
    font-size: 0.8rem;
    letter-spacing: 1px;
    line-height: 1;
}

.star-full {
    color: #f59e0b;
}

.star-half {
    color: #f59e0b;
    opacity: 0.85;
}

.star-empty {
    color: #475569;
}

.rating-num {
    font-family: var(--font-mono, monospace);
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-primary);
}

.rating-num strong {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* VERDICT BADGES (KLASY KOLORYSTYCZNE) */
.verdict-badge {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
}

.v-PRAWDA { background: rgba(16, 185, 129, 0.15); color: var(--color-prawda); border: 1px solid rgba(16, 185, 129, 0.4); }
.v-PÓŁPRAWDA { background: rgba(245, 158, 11, 0.15); color: var(--color-polprawda); border: 1px solid rgba(245, 158, 11, 0.4); }
.v-OPINIA { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.4); }
.v-DEKLARACJA { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.4); }
.v-NIEZWERYFIKOWANE { background: rgba(148, 163, 184, 0.15); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.4); }
.v-MANIPULACJA { background: rgba(249, 115, 22, 0.15); color: var(--color-manipulacja); border: 1px solid rgba(249, 115, 22, 0.4); }
.v-FAŁSZ { background: rgba(239, 68, 68, 0.15); color: var(--color-falsz); border: 1px solid rgba(239, 68, 68, 0.4); }
.v-ODLOT { background: rgba(236, 72, 153, 0.2); color: var(--color-odlot); border: 1px solid rgba(236, 72, 153, 0.5); box-shadow: 0 0 10px rgba(236, 72, 153, 0.3); }

/* QUOTE SECTION (CZYSTY CYTAT) */
.card-quote-section {
    margin: 10px 0 14px 0;
    padding-left: 14px;
    border-left: 3px solid var(--border-highlight);
}

.clean-quote-text {
    font-size: 1.02rem;
    font-weight: 500;
    color: var(--text-quote);
    font-style: italic;
    line-height: 1.5;
    margin: 0;
}

/* REDDIT-STYLE FLAIRS */
.card-flairs-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
}

.reddit-flair {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.71rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    line-height: 1.3;
    white-space: nowrap;
}

.flair-eristic {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.28);
}

.flair-clean {
    background: rgba(16, 185, 129, 0.12);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.28);
}

.flair-topic {
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.flair-source {
    background: var(--bg-surface-soft);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

/* STOPKA KARTY */
.card-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-subtle);
    padding-top: 10px;
    margin-top: auto;
    font-size: 0.76rem;
    color: var(--text-muted);
}

.card-meta-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.card-action-cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 0.78rem;
    transition: color 0.2s ease;
}

.statement-card:hover .cta-chevron {
    transform: translateX(4px);
}

.cta-chevron {
    display: inline-block;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* MODAL STEP 2 BADGE */
.modal-step-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 3px 8px;
    border-radius: 4px;
}

/* Legacy support styles */
.quote-box {
    margin: 12px 0 16px 0;
    position: relative;
    padding-left: 16px;
    border-left: 3px solid var(--border-highlight);
}

.quote-text {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-quote);
    font-style: italic;
    line-height: 1.5;
}

.analysis-summary {
    background: var(--bg-surface-soft);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    border: 1px solid var(--border-subtle);
}

.btn-details {
    background: transparent;
    border: none;
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-details:hover {
    text-decoration: underline;
}

/* ----------------- RANKING VIEW ----------------- */
.ranking-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.ranking-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 2px;
}

.ranking-controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.segmented-control {
    display: inline-flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm, 8px);
    padding: 3px 4px;
    gap: 3px;
}

.seg-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    padding: 0 6px 0 6px;
    user-select: none;
}

.seg-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}

.seg-btn:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

.seg-btn.active,
.seg-btn.switch-btn.active,
.seg-btn.criteria-pill.active {
    background: var(--accent-primary, #0ea5e9);
    color: #ffffff;
    font-weight: 700;
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.ranking-switcher {
    display: flex;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 4px;
    border-radius: var(--radius-sm);
}

.switch-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.switch-btn.active {
    background: var(--accent-primary);
    color: #ffffff;
}

.btn-deck-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-surface-soft);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    white-space: nowrap;
}

.btn-deck-toggle:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--border-highlight);
    transform: translateY(-1px);
}

.btn-deck-toggle.collapsed {
    background: rgba(0, 240, 255, 0.08);
    color: var(--vfd-glow-primary, #00f0ff);
    border-color: rgba(0, 240, 255, 0.35);
}

.ranking-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ranking-row {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    flex-wrap: nowrap;
    transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}

.ranking-row:hover {
    transform: translateX(3px);
    border-color: var(--border-highlight);
    background: var(--bg-card-hover);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.ranking-row:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.ranking-row.rank-row-gold {
    border-left: 3.5px solid #fbbf24 !important;
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.08) 0%, var(--bg-card) 25%);
}

.ranking-row.rank-row-silver {
    border-left: 3.5px solid #cbd5e1 !important;
    background: linear-gradient(90deg, rgba(203, 213, 225, 0.06) 0%, var(--bg-card) 25%);
}

.ranking-row.rank-row-bronze {
    border-left: 3.5px solid #d97706 !important;
    background: linear-gradient(90deg, rgba(217, 119, 6, 0.07) 0%, var(--bg-card) 25%);
}

.rank-badge {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    min-width: 32px;
    text-align: center;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rank-gold { color: #fbbf24; text-shadow: 0 0 10px rgba(251, 191, 36, 0.5); }
.rank-silver { color: #cbd5e1; }
.rank-bronze { color: #d97706; }
.rank-normal { color: var(--text-muted); font-size: 0.95rem; }

.ranking-avatar-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ranking-avatar-wrap .politician-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    background: #1e293b;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    display: block;
    flex-shrink: 0;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.ranking-row:hover .ranking-avatar-wrap .politician-avatar {
    border-color: #38bdf8;
    transform: scale(1.05);
}

.ranking-pol-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}

.ranking-name-line {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    min-width: 0;
}

.ranking-name {
    font-weight: 800;
    font-size: 0.96rem;
    color: var(--text-primary);
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.25;
    flex-shrink: 0;
}

.ranking-party-tag {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    padding: 1px 6px;
    border-radius: 4px;
    flex-shrink: 0;
    text-transform: uppercase;
    line-height: 1.3;
}

.tag-ko {
    background: rgba(37, 99, 235, 0.18);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.tag-pis {
    background: rgba(30, 58, 138, 0.25);
    color: #93c5fd;
    border: 1px solid rgba(30, 64, 175, 0.45);
}

.tag-konf {
    background: rgba(245, 158, 11, 0.16);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.38);
}

.tag-pl2050 {
    background: rgba(234, 179, 8, 0.18);
    color: #fde047;
    border: 1px solid rgba(234, 179, 8, 0.4);
}

.tag-psl {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.38);
}

.tag-lewica {
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.38);
}

.tag-razem {
    background: rgba(168, 85, 247, 0.18);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.38);
}

.tag-default {
    background: var(--bg-surface-soft);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.ranking-tier-pill {
    font-size: 0.64rem;
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--bg-surface-soft);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    font-weight: 600;
    flex-shrink: 0;
}

/* Reddit-style Multi-Flair Badges */
.ranking-flairs-wrap {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    vertical-align: middle;
}

.pol-flair {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.65rem;
    line-height: 1.25;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.15px;
    border: 1px solid transparent;
    cursor: default;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    user-select: none;
}

.pol-flair:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
    filter: brightness(1.1);
}

/* Podium flairs */
.pol-flair.flair-gold {
    background: rgba(234, 179, 8, 0.16);
    color: #facc15;
    border-color: rgba(234, 179, 8, 0.45);
    box-shadow: 0 0 8px rgba(234, 179, 8, 0.15);
}
.pol-flair.flair-silver {
    background: rgba(148, 163, 184, 0.16);
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.4);
}
.pol-flair.flair-bronze {
    background: rgba(217, 119, 6, 0.16);
    color: #fb923c;
    border-color: rgba(217, 119, 6, 0.4);
}

/* Truth tier flairs */
.pol-flair.flair-truth-elite {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.4);
}
.pol-flair.flair-truth-high {
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
    border-color: rgba(6, 182, 212, 0.4);
}
.pol-flair.flair-truth-good {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.4);
}
.pol-flair.flair-truth-diplomat {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border-color: rgba(99, 102, 241, 0.38);
}
.pol-flair.flair-truth-half {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.38);
}
.pol-flair.flair-truth-slippery {
    background: rgba(249, 115, 22, 0.15);
    color: #fb923c;
    border-color: rgba(249, 115, 22, 0.38);
}
.pol-flair.flair-truth-risk {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.38);
}
.pol-flair.flair-truth-manip {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border-color: rgba(168, 85, 247, 0.38);
}
.pol-flair.flair-truth-pinocchio {
    background: rgba(225, 29, 72, 0.18);
    color: #fb7185;
    border-color: rgba(225, 29, 72, 0.45);
}

/* Feature & Achievement flairs */
.pol-flair.flair-clean {
    background: rgba(20, 184, 166, 0.16);
    color: #2dd4bf;
    border-color: rgba(20, 184, 166, 0.45);
}
.pol-flair.flair-veteran {
    background: rgba(14, 165, 233, 0.16);
    color: #38bdf8;
    border-color: rgba(14, 165, 233, 0.45);
}
.pol-flair.flair-active {
    background: rgba(56, 189, 248, 0.12);
    color: #7dd3fc;
    border-color: rgba(56, 189, 248, 0.35);
}
.pol-flair.flair-fact {
    background: rgba(16, 185, 129, 0.14);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.4);
}
.pol-flair.flair-balance {
    background: rgba(139, 92, 246, 0.14);
    color: #a78bfa;
    border-color: rgba(139, 92, 246, 0.4);
}
.pol-flair.flair-manip {
    background: rgba(236, 72, 153, 0.14);
    color: #f472b6;
    border-color: rgba(236, 72, 153, 0.4);
}
.pol-flair.flair-odlot {
    background: rgba(168, 85, 247, 0.2);
    color: #e9d5ff;
    border-color: rgba(168, 85, 247, 0.55);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.25);
}
.pol-flair.flair-false {
    background: rgba(239, 68, 68, 0.2);
    color: #fecaca;
    border-color: rgba(239, 68, 68, 0.5);
}
.pol-flair.flair-tier-default {
    background: var(--bg-surface-soft);
    color: var(--text-secondary);
    border-color: var(--border-subtle);
}

/* Light themes contrast tuning */
body.theme-nordic-frost .pol-flair,
body.theme-classic-press .pol-flair,
[data-theme="theme-nordic-frost"] .pol-flair,
[data-theme="theme-classic-press"] .pol-flair {
    font-weight: 700;
}
body.theme-nordic-frost .pol-flair.flair-gold,
[data-theme="theme-nordic-frost"] .pol-flair.flair-gold {
    background: #fef9c3;
    color: #854d0e;
    border-color: #facc15;
}
body.theme-nordic-frost .pol-flair.flair-silver,
[data-theme="theme-nordic-frost"] .pol-flair.flair-silver {
    background: #f1f5f9;
    color: #334155;
    border-color: #94a3b8;
}
body.theme-nordic-frost .pol-flair.flair-bronze,
[data-theme="theme-nordic-frost"] .pol-flair.flair-bronze {
    background: #ffedd5;
    color: #9a3412;
    border-color: #fb923c;
}
body.theme-nordic-frost .pol-flair.flair-truth-good,
[data-theme="theme-nordic-frost"] .pol-flair.flair-truth-good {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #93c5fd;
}
body.theme-nordic-frost .pol-flair.flair-truth-diplomat,
[data-theme="theme-nordic-frost"] .pol-flair.flair-truth-diplomat {
    background: #e0e7ff;
    color: #3730a3;
    border-color: #a5b4fc;
}
body.theme-nordic-frost .pol-flair.flair-truth-half,
[data-theme="theme-nordic-frost"] .pol-flair.flair-truth-half {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}
body.theme-nordic-frost .pol-flair.flair-truth-slippery,
[data-theme="theme-nordic-frost"] .pol-flair.flair-truth-slippery {
    background: #ffedd5;
    color: #9a3412;
    border-color: #fed7aa;
}
body.theme-nordic-frost .pol-flair.flair-clean,
[data-theme="theme-nordic-frost"] .pol-flair.flair-clean {
    background: #ccfbf1;
    color: #115e59;
    border-color: #5eead4;
}
body.theme-nordic-frost .pol-flair.flair-veteran,
[data-theme="theme-nordic-frost"] .pol-flair.flair-veteran {
    background: #e0f2fe;
    color: #0369a1;
    border-color: #7dd3fc;
}
body.theme-nordic-frost .pol-flair.flair-active,
[data-theme="theme-nordic-frost"] .pol-flair.flair-active {
    background: #f0f9ff;
    color: #0284c7;
    border-color: #bae6fd;
}
body.theme-nordic-frost .pol-flair.flair-fact,
[data-theme="theme-nordic-frost"] .pol-flair.flair-fact {
    background: #d1fae5;
    color: #065f46;
    border-color: #6ee7b7;
}
body.theme-nordic-frost .pol-flair.flair-balance,
[data-theme="theme-nordic-frost"] .pol-flair.flair-balance {
    background: #f5f3ff;
    color: #5b21b6;
    border-color: #c4b5fd;
}
body.theme-nordic-frost .pol-flair.flair-manip,
[data-theme="theme-nordic-frost"] .pol-flair.flair-manip {
    background: #fdf2f8;
    color: #9d174d;
    border-color: #fbcfe8;
}
body.theme-nordic-frost .pol-flair.flair-odlot,
[data-theme="theme-nordic-frost"] .pol-flair.flair-odlot {
    background: #f3e8ff;
    color: #6b21a8;
    border-color: #d8b4fe;
}
body.theme-nordic-frost .pol-flair.flair-false,
[data-theme="theme-nordic-frost"] .pol-flair.flair-false {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

body.theme-nordic-frost .rank-score-pill,
[data-theme="theme-nordic-frost"] .rank-score-pill,
body.theme-classic-press .rank-score-pill,
[data-theme="theme-classic-press"] .rank-score-pill {
    background: rgba(255, 255, 255, 0.9);
    border-color: #cbd5e1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

body.theme-nordic-frost .flair-more-tag,
[data-theme="theme-nordic-frost"] .flair-more-tag,
body.theme-classic-press .flair-more-tag,
[data-theme="theme-classic-press"] .flair-more-tag {
    background: #f1f5f9;
    color: #475569;
    border-color: #cbd5e1;
}

body.theme-nordic-frost .segmented-control,
[data-theme="theme-nordic-frost"] .segmented-control,
body.theme-classic-press .segmented-control,
[data-theme="theme-classic-press"] .segmented-control {
    background: #f8fafc;
    border-color: #e2e8f0;
}


.ranking-meta-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    color: var(--text-muted);
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
}

.ranking-role-snippet {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 220px;
    color: var(--text-muted);
}

.ranking-meta-dot {
    opacity: 0.45;
}

.ranking-meta-count {
    flex-shrink: 0;
    font-weight: 600;
    color: var(--text-secondary);
}

.flair-more-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--bg-surface-soft);
    color: var(--text-muted);
    border: 1px dashed var(--border-subtle);
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    user-select: none;
}

.flair-more-tag:hover {
    color: var(--text-primary);
    border-color: var(--accent-primary);
    background: var(--bg-card-hover);
    transform: scale(1.05);
}

.ranking-score-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    min-width: 100px;
    flex-shrink: 0;
    gap: 3px;
}

.rank-score-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3px 9px;
    transition: all 0.18s ease;
}

.rank-score-pill:hover {
    border-color: var(--accent-primary);
    background: rgba(0, 0, 0, 0.4);
}

.rank-score-pill .score-stars {
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    line-height: 1;
}

.rank-score-pill .score-num {
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.rank-score-pill .score-num strong {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 1px;
}

.ranking-score-percent {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    font-size: 0.74rem;
    color: var(--text-muted);
}

.ranking-score-percent .pct-num {
    font-family: var(--font-mono, monospace);
    font-weight: 700;
    color: var(--text-secondary);
}

.ranking-score-percent .pct-axis {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    opacity: 0.75;
}

.score-val {
    font-family: var(--font-display);
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1;
}

.score-micro-bar {
    width: 52px;
    height: 3.5px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 1px;
}

.score-micro-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.4s ease;
}

.score-micro-fill.score-green { background: var(--color-prawda); box-shadow: 0 0 4px var(--color-prawda); }
.score-micro-fill.score-yellow { background: var(--color-polprawda); box-shadow: 0 0 4px var(--color-polprawda); }
.score-micro-fill.score-red { background: var(--color-falsz); box-shadow: 0 0 4px var(--color-falsz); }

/* ----------------- LIVE VERIFY TAB ----------------- */
.verify-hero {
    margin-bottom: 24px;
}

.verify-hero h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.verify-hero p {
    color: var(--text-secondary);
}

.verify-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-card);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.flex-1 { flex: 1; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }

label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #cbd5e1;
}

textarea, input[type="text"], input[type="url"], select {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: #ffffff;
    font-family: var(--font-main);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
}

textarea:focus, input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.25);
}

/* RADAR SCANNER ANIMATION */
.verify-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 20px;
}

.radar-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #2563eb;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, rgba(15, 23, 42, 0) 70%);
}

.radar-sweep {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: conic-gradient(from 0deg at 50% 50%, rgba(59, 130, 246, 0.7) 0deg, rgba(59, 130, 246, 0) 60deg);
    animation: radarSweep 1.6s linear infinite;
    border-radius: 50%;
}

@keyframes radarSweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loader-text {
    font-size: 0.95rem;
    color: #93c5fd;
    font-weight: 600;
    text-align: center;
}

/* VERIFY RESULT CARD */
.verify-result-card {
    margin-top: 28px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    animation: fadeIn 0.4s ease;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.result-verdict-banner {
    display: flex;
    align-items: center;
    gap: 14px;
}

.result-score-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    border: 3px solid currentColor;
}

/* ----------------- SOURCES & INGEST TAB ----------------- */
.sources-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.feeds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 36px;
}

.feed-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.feed-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.feed-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.feed-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-prawda);
    box-shadow: 0 0 8px var(--color-prawda);
}

.ingest-box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.ingest-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.ingest-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.ingest-icon {
    font-size: 22px;
}

.ingest-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* ----------------- MODALS ----------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 7, 14, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-overlay.hidden {
    display: none;
}

.modal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.modal-close-btn:hover {
    color: var(--text-primary);
}

/* MOBILE MODAL */
.modal-mobile-header {
    text-align: center;
    margin-bottom: 24px;
}

.mobile-shield-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 8px;
}

.modal-mobile-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
}

.modal-mobile-header p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 6px;
}

.mobile-mode-tabs {
    display: flex;
    gap: 8px;
    background: var(--bg-card);
    padding: 6px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.mobile-mode-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.mobile-mode-tab:hover {
    color: var(--text-primary);
}

.mobile-mode-tab.active {
    background: var(--bg-card-hover);
    color: var(--accent-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-highlight);
}

.tunnel-watchdog-indicator {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin: 2px 0;
}

.tunnel-watchdog-indicator .watchdog-ok {
    color: #34d399;
    font-weight: 700;
}

.mobile-qr-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.qr-frame {
    background: #ffffff;
    padding: 14px;
    border-radius: var(--radius-md);
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.3);
}

.qr-frame img {
    width: 200px;
    height: 200px;
    display: block;
}

.tunnel-info-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tunnel-status-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #1e293b;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: #93c5fd;
}

.url-copy-box {
    display: flex;
    gap: 8px;
}

.url-copy-box input {
    font-size: 0.85rem;
    font-family: monospace;
}

.tunnel-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

.tunnel-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* DETAIL MODAL */
.detail-quote-box {
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--bg-surface-soft);
    border-left: 4px solid var(--border-highlight);
    border: 1px solid var(--border-subtle);
    border-left-width: 4px;
    margin-bottom: 20px;
}

.detail-section-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 16px 0 8px 0;
}

.detail-text {
    font-size: 0.95rem;
    color: var(--text-quote);
    line-height: 1.6;
    white-space: pre-line;
}

.sources-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.source-item {
    background: var(--bg-surface-soft);
    border: 1px solid var(--border-subtle);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.source-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.source-link:hover {
    text-decoration: underline;
}

/* ----------------- TOAST ----------------- */
.toast {
    position: fixed;
    bottom: 80px;
    right: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-highlight);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card), 0 0 15px var(--accent-glow);
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2000;
    animation: toastSlide 0.3s ease;
}

@keyframes toastSlide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.toast.hidden { display: none; }

/* ----------------- BOTTOM MOBILE NAV ----------------- */
.mobile-bottom-nav {
    display: none;
}

.mobile-header-btn {
    display: none;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 80px;
    }

    .main-content {
        padding: 16px 12px;
    }

    .nav-actions {
        display: none;
    }

    .mobile-header-btn {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .live-ticker-badge {
        display: none;
    }

    .view-tabs {
        display: none;
    }

    .statements-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
        gap: 8px;
    }

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: var(--bg-navbar);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid var(--border-color);
        z-index: 9999;
        justify-content: space-around;
        padding-top: 8px;
        padding-bottom: max(14px, env(safe-area-inset-bottom, 14px));
        padding-left: 6px;
        padding-right: 6px;
        box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.5);
        touch-action: manipulation;
    }

    .mob-nav-btn {
        background: transparent;
        border: none;
        color: var(--text-muted);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        cursor: pointer;
        padding: 6px 4px;
        flex: 1;
        min-height: 52px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        -webkit-user-select: none;
        transition: transform 0.1s ease, color 0.15s ease;
        border-radius: 8px;
    }

    .mob-nav-btn:active {
        transform: scale(0.92);
        background: rgba(255, 255, 255, 0.05);
    }

    .mob-nav-btn.active {
        color: var(--accent-primary);
        font-weight: 700;
    }

    .mob-nav-btn.active .mob-icon {
        filter: drop-shadow(0 0 6px var(--accent-glow));
        transform: scale(1.1);
    }

    .mob-nav-btn * {
        pointer-events: none; /* Kluczowe: dotyk ZAWSZE trafia bezpośrednio w button */
    }

    .mob-icon {
        font-size: 20px;
        transition: transform 0.15s ease, filter 0.15s ease;
    }

    .mob-text {
        font-size: 0.72rem;
        font-weight: 600;
        letter-spacing: 0.2px;
    }

    /* Na telefonie, gdy otwarta jest inna zakładka niż Cytaty,
       schowaj wielki blok statystyk ogólnych, aby docelowa treść
       (np. Tabela Rankingu, Formularz Weryfikacji czy Superwizja AI)
       od razu była widoczna na samej górze ekranu! */
    body.tab-active-ranking .stats-strip,
    body.tab-active-verify .stats-strip,
    body.tab-active-sources .stats-strip,
    body.tab-active-supervisor .stats-strip {
        display: none !important;
    }

    .header-right-actions {
        display: flex !important;
        align-items: center;
        gap: 6px;
        margin-left: auto;
    }

    .btn-settings-trigger {
        padding: 6px 10px;
        min-width: 38px;
        min-height: 38px;
        justify-content: center;
    }

    .btn-settings-trigger .settings-label,
    .btn-settings-trigger .settings-btn-text,
    .btn-settings-trigger .theme-btn-label {
        display: none;
    }

    .btn-settings-trigger .settings-gear-icon {
        font-size: 1.25rem;
    }

    .ranking-header-top {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .btn-deck-toggle {
        padding: 5px 8px;
        font-size: 0.72rem;
    }

    .ranking-grid {
        gap: 5px;
    }

    .ranking-row {
        flex-wrap: nowrap !important;
        padding: 8px 10px !important;
        gap: 10px !important;
        min-height: 52px !important;
        align-items: center !important;
    }

    .rank-badge {
        font-size: 1.05rem !important;
        min-width: 24px !important;
        flex-shrink: 0 !important;
    }

    .ranking-avatar-wrap {
        flex-shrink: 0 !important;
    }

    .ranking-avatar-wrap .politician-avatar {
        width: 38px !important;
        height: 38px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
        flex-shrink: 0 !important;
        border: 2px solid var(--border-color) !important;
    }

    .ranking-pol-details {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        gap: 2px !important;
    }

    .ranking-name-line {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 4px 6px !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .ranking-name {
        font-size: 0.94rem !important;
        font-weight: 800 !important;
        color: var(--text-primary) !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        word-break: break-word !important;
        line-height: 1.25 !important;
        flex-shrink: 0 !important;
    }

    .ranking-party-tag {
        font-size: 0.65rem !important;
        font-weight: 800 !important;
        padding: 1px 5px !important;
        border-radius: 4px !important;
        flex-shrink: 0 !important;
    }

    .ranking-tier-pill {
        display: none !important;
    }

    .ranking-flairs-wrap {
        display: flex !important;
        width: 100% !important;
        gap: 4px !important;
        flex-wrap: wrap !important;
        margin-top: 2px !important;
    }

    .pol-flair {
        font-size: 0.62rem !important;
        padding: 2px 6px !important;
        line-height: 1.25 !important;
    }

    .pol-flair.flair-secondary {
        display: none !important;
    }

    .ranking-role-snippet {
        max-width: 110px !important;
        font-size: 0.72rem !important;
    }

    .ranking-meta-count {
        font-size: 0.72rem !important;
    }

    .ranking-score-col {
        min-width: 58px !important;
    }

    .score-val {
        font-size: 1.05rem !important;
    }

    .score-micro-bar {
        width: 44px !important;
    }

    .ranking-counts-pills {
        display: flex;
        gap: 4px;
        font-size: 0.7rem;
    }
}

/* ==========================================================================
   SUPERWIZOR CHMUROWY AI & QUOTA GUARD STYLES
   ========================================================================== */
.supervisor-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.supervisor-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.sup-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.sup-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    box-shadow: var(--shadow-card);
}

.sup-card-highlight {
    border-color: rgba(59, 130, 246, 0.5);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 21, 36, 0.9) 100%);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.12);
}

.sup-card-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.badge-guard-active {
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid #10b981;
    color: #34d399;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 9999px;
    letter-spacing: 0.5px;
}

.badge-guard-warning {
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid #f59e0b;
    color: #fbbf24;
}

.sup-engine-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #60a5fa;
    font-family: var(--font-display);
}

.sup-agreement-score {
    font-size: 2.3rem;
    font-weight: 800;
    color: #10b981;
    font-family: var(--font-display);
    line-height: 1.1;
}

.sup-quota-bar-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sup-quota-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.sup-progress-track {
    position: relative;
    height: 14px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    overflow: visible;
}

.sup-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #3b82f6);
    border-radius: 9999px;
    transition: width 0.5s ease;
    max-width: 100%;
}

.sup-quota-cap-line {
    position: absolute;
    left: 25%;
    top: -4px;
    bottom: -4px;
    width: 3px;
    background: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
    border-radius: 2px;
    z-index: 3;
}

.sup-quota-cap-line::after {
    content: "MAX 25%";
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    font-weight: 800;
    color: #fbbf24;
    white-space: nowrap;
}

.sup-quota-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.sup-audit-section {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.sup-audit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.sup-audit-counter {
    font-size: 0.82rem;
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    padding: 4px 12px;
    border-radius: 9999px;
    font-weight: 600;
}

.sup-audits-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sup-audit-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: transform 0.2s, border-color 0.2s;
}

.sup-audit-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.sup-audit-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 12px;
    flex-wrap: wrap;
}

.sup-speaker {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.sup-model-tag {
    font-size: 0.72rem;
    background: rgba(139, 92, 246, 0.18);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.sup-quote {
    font-style: italic;
    color: var(--text-quote);
    margin-bottom: 14px;
    font-size: 0.93rem;
    line-height: 1.5;
    border-left: 3px solid var(--border-highlight);
    padding-left: 12px;
}

.sup-comparison-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    background: var(--bg-surface-soft);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
}

.sup-verdict-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sup-verdict-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 6px;
}

.sup-arrow {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 700;
}

.sup-agreement-badge {
    margin-left: auto;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 4px 10px;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.sup-critique-box {
    background: var(--bg-surface-soft);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 0.88rem;
    color: var(--text-primary);
    line-height: 1.5;
    border: 1px solid var(--border-subtle);
}

.sup-critique-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.modal-key-card {
    max-width: 520px;
}

/* ==========================================================================
   INTERAKTYWNY PRZEŁĄCZNIK MOTYWÓW (THEME PICKER UI)
   ========================================================================== */
.btn-theme-switcher {
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.btn-theme-switcher:hover {
    border-color: var(--border-highlight);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.theme-palette-icon {
    font-size: 1.1rem;
    line-height: 1;
}

/* TOP-RIGHT SETTINGS BUTTON & MODAL */
.btn-settings-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}

.btn-settings-trigger:hover {
    border-color: var(--border-highlight);
    background: var(--bg-card-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

.settings-gear-icon {
    font-size: 1.15rem;
    line-height: 1;
    display: inline-block;
    transition: transform 0.35s ease;
}

.btn-settings-trigger:hover .settings-gear-icon {
    transform: rotate(60deg);
}

.header-right-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.modal-theme-card,
.modal-settings-card {
    max-width: 860px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-theme-header,
.modal-settings-header {
    text-align: center;
    margin-bottom: 20px;
}

.settings-header-icon {
    font-size: 2.3rem;
    line-height: 1;
    display: block;
    margin-bottom: 8px;
}

.modal-theme-header h2,
.modal-settings-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.modal-theme-header p,
.modal-settings-header p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.settings-section {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
}

.settings-section:last-of-type {
    border-bottom: none;
    margin-bottom: 10px;
    padding-bottom: 0;
}

.settings-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.settings-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 9999px;
    background: var(--accent-primary);
    color: #ffffff;
    letter-spacing: 0.5px;
}

.settings-section-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.settings-info-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.84rem;
}

.info-label {
    color: var(--text-secondary);
}

.info-value {
    color: var(--text-primary);
    font-weight: 600;
}

.theme-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 20px;
    margin-bottom: 24px;
}

.theme-card-option {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    user-select: none;
}

.theme-card-option:hover {
    border-color: var(--border-highlight);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

.theme-card-option.active {
    border-color: var(--border-highlight);
    box-shadow: var(--shadow-glow), var(--shadow-card);
    background: var(--bg-card-hover);
}

.theme-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.theme-card-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-active-tag {
    font-size: 0.68rem;
    font-weight: 800;
    background: var(--accent-primary);
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 9999px;
    display: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.theme-card-option.active .theme-active-tag {
    display: inline-block;
}

.theme-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.45;
}

.theme-swatches-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.theme-swatch-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.theme-font-preview {
    font-size: 0.8rem;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface-soft);
    color: var(--text-quote);
    border: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.theme-font-name {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* PREVIEW THEME-SPECIFIC SWATCHES IN MODAL */
.swatch-bg-cyber { background: #070a12; }
.swatch-card-cyber { background: #151d32; }
.swatch-acc-cyber { background: #00f0ff; }
.swatch-txt-cyber { background: #10b981; }

.swatch-bg-amber { background: #0b0906; }
.swatch-card-amber { background: #1c170d; }
.swatch-acc-amber { background: #ffb000; }
.swatch-txt-amber { background: #ffe6b3; }

.swatch-bg-press { background: #f6f3ea; }
.swatch-card-press { background: #ffffff; }
.swatch-acc-press { background: #1e3a8a; }
.swatch-txt-press { background: #181c26; }

.swatch-bg-slate { background: #0b0f19; }
.swatch-card-slate { background: #182234; }
.swatch-acc-slate { background: #6366f1; }
.swatch-txt-slate { background: #f8fafc; }

.swatch-bg-crimson { background: #09080a; }
.swatch-card-crimson { background: #1c1519; }
.swatch-acc-crimson { background: #ef4444; }
.swatch-txt-crimson { background: #fef2f2; }

.swatch-bg-nordic { background: #f8fafc; }
.swatch-card-nordic { background: #ffffff; }
.swatch-acc-nordic { background: #0284c7; }
.swatch-txt-nordic { background: #0f172a; }

/* ----------------- LIGHT THEMES REFINEMENTS (CLASSIC PRESS & NORDIC FROST) ----------------- */
body.theme-classic-press,
body.theme-nordic-frost,
[data-theme="theme-classic-press"],
[data-theme="theme-nordic-frost"] {
    --text-primary: #181c26;
    --text-secondary: #475569;
    --text-muted: #64748b;
}

body.theme-classic-press .brand-title,
body.theme-nordic-frost .brand-title {
    -webkit-text-fill-color: initial;
    color: var(--accent-primary);
}

body.theme-classic-press .stat-card,
body.theme-nordic-frost .stat-card,
body.theme-classic-press .sup-audit-section,
body.theme-nordic-frost .sup-audit-section,
body.theme-classic-press .sup-audit-card,
body.theme-nordic-frost .sup-audit-card,
body.theme-classic-press .feed-card,
body.theme-nordic-frost .feed-card,
body.theme-classic-press .ingest-card,
body.theme-nordic-frost .ingest-card,
body.theme-classic-press .ranking-row,
body.theme-nordic-frost .ranking-row {
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

body.theme-classic-press .stat-val,
body.theme-nordic-frost .stat-val {
    color: var(--text-primary);
}

body.theme-classic-press .search-box input,
body.theme-nordic-frost .search-box input,
body.theme-classic-press .form-input,
body.theme-nordic-frost .form-input,
body.theme-classic-press .form-textarea,
body.theme-nordic-frost .form-textarea,
body.theme-classic-press .filter-group select,
body.theme-nordic-frost .filter-group select {
    background: #ffffff;
    border-color: var(--border-color);
    color: var(--text-primary);
}

body.theme-classic-press .statement-card,
body.theme-nordic-frost .statement-card {
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

body.theme-classic-press .clean-rating-pill,
body.theme-nordic-frost .clean-rating-pill {
    background: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}

body.theme-classic-press .clean-rating-pill .rating-num,
body.theme-nordic-frost .clean-rating-pill .rating-num {
    color: #78350f;
}

body.theme-classic-press .star-empty,
body.theme-nordic-frost .star-empty {
    color: #cbd5e1;
}

body.theme-classic-press .flair-source,
body.theme-nordic-frost .flair-source {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
}

body.theme-classic-press .pill-btn,
body.theme-nordic-frost .pill-btn {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #334155;
}

body.theme-classic-press .pill-btn.active,
body.theme-nordic-frost .pill-btn.active {
    background: #1e293b;
    color: #ffffff;
}

body.theme-classic-press .ranking-switcher,
body.theme-nordic-frost .ranking-switcher {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

body.theme-classic-press .switch-btn,
body.theme-nordic-frost .switch-btn {
    color: #475569;
}

body.theme-classic-press .theme-card-option,
body.theme-nordic-frost .theme-card-option {
    background: #f8fafc;
    border-color: #cbd5e1;
}

body.theme-classic-press .theme-card-option.active,
body.theme-nordic-frost .theme-card-option.active {
    background: #ffffff;
    border-color: var(--accent-primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

body.theme-classic-press .quote-text {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.08rem;
    color: #111827;
}

body.theme-classic-press .vfd-bezel-screws,
body.theme-nordic-frost .vfd-bezel-screws {
    opacity: 0.4;
}

body.theme-classic-press .modal-card,
body.theme-nordic-frost .modal-card {
    background: #ffffff;
    color: var(--text-primary);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

body.theme-classic-press .mobile-bottom-nav,
body.theme-nordic-frost .mobile-bottom-nav {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
}

body.theme-classic-press .mob-nav-btn,
body.theme-nordic-frost .mob-nav-btn {
    color: #64748b;
}

body.theme-classic-press .mob-nav-btn.active,
body.theme-nordic-frost .mob-nav-btn.active {
    color: var(--accent-primary);
}

/* ==========================================================================
   THEME-SPECIFIC TELEMETRY DECK & CONTRAST REFINEMENTS (WCAG 2.1 AA/AAA)
   ========================================================================== */

/* 1. SKANDYNAWSKI CHŁÓD (theme-nordic-frost) - CLEAN DAYLIGHT INSTRUMENT */
body.theme-nordic-frost .hifi-vfd-deck,
[data-theme="theme-nordic-frost"] .hifi-vfd-deck {
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
    border: 1.5px solid #cbd5e1;
    border-top: 2px solid #0284c7;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.08);
}

body.theme-nordic-frost .vfd-screen,
[data-theme="theme-nordic-frost"] .vfd-screen {
    background: #ffffff !important;
    background-image: none !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.06) !important;
}

body.theme-nordic-frost .vfd-separator,
[data-theme="theme-nordic-frost"] .vfd-separator {
    background: linear-gradient(180deg, transparent, #cbd5e1, transparent) !important;
}

body.theme-nordic-frost .vfd-tag-live,
[data-theme="theme-nordic-frost"] .vfd-tag-live {
    color: #047857 !important;
    font-weight: 800;
}

body.theme-nordic-frost .vfd-led-live,
[data-theme="theme-nordic-frost"] .vfd-led-live {
    background-color: #059669 !important;
    box-shadow: 0 0 3px #059669 !important;
}

body.theme-nordic-frost .vfd-tag-mode,
[data-theme="theme-nordic-frost"] .vfd-tag-mode {
    color: #475569 !important;
    font-weight: 700;
}

body.theme-nordic-frost .vfd-prefix,
[data-theme="theme-nordic-frost"] .vfd-prefix {
    color: #334155 !important;
    font-weight: 800;
}

body.theme-nordic-frost .vfd-status-task,
body.theme-nordic-frost .vfd-glow-cyan,
[data-theme="theme-nordic-frost"] .vfd-status-task,
[data-theme="theme-nordic-frost"] .vfd-glow-cyan {
    color: #0369a1 !important;
    font-weight: 800;
    text-shadow: none !important;
}

body.theme-nordic-frost .vfd-status-subtask,
body.theme-nordic-frost .vfd-glow-green,
[data-theme="theme-nordic-frost"] .vfd-status-subtask,
[data-theme="theme-nordic-frost"] .vfd-glow-green {
    color: #047857 !important;
    font-weight: 700;
    text-shadow: none !important;
    opacity: 1 !important;
}

body.theme-nordic-frost .vfd-lbl,
[data-theme="theme-nordic-frost"] .vfd-lbl {
    color: #475569 !important;
    font-weight: 800;
}

body.theme-nordic-frost .vfd-sublbl,
body.theme-nordic-frost .vfd-sublbl-green,
[data-theme="theme-nordic-frost"] .vfd-sublbl,
[data-theme="theme-nordic-frost"] .vfd-sublbl-green {
    color: #047857 !important;
    font-weight: 800;
    text-shadow: none !important;
}

body.theme-nordic-frost .vfd-ch-badge,
[data-theme="theme-nordic-frost"] .vfd-ch-badge {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
}

body.theme-nordic-frost .vfd-ch-badge:hover,
[data-theme="theme-nordic-frost"] .vfd-ch-badge:hover {
    background: #e2e8f0 !important;
    border-color: #0284c7 !important;
}

body.theme-nordic-frost .vfd-ch-code,
[data-theme="theme-nordic-frost"] .vfd-ch-code {
    color: #0f172a !important;
    font-weight: 800;
}

body.theme-nordic-frost .vfd-ch-dot,
[data-theme="theme-nordic-frost"] .vfd-ch-dot {
    background-color: #059669 !important;
    box-shadow: 0 0 2px #059669 !important;
}

body.theme-nordic-frost .vfd-ch-badge.syncing .vfd-ch-dot,
[data-theme="theme-nordic-frost"] .vfd-ch-badge.syncing .vfd-ch-dot {
    background-color: #0284c7 !important;
    box-shadow: 0 0 4px #0284c7 !important;
}

body.theme-nordic-frost .vfd-ch-badge.error .vfd-ch-dot,
[data-theme="theme-nordic-frost"] .vfd-ch-badge.error .vfd-ch-dot {
    background-color: #dc2626 !important;
    box-shadow: 0 0 3px #dc2626 !important;
}

body.theme-nordic-frost .vfd-channels-subline,
[data-theme="theme-nordic-frost"] .vfd-channels-subline {
    color: #475569 !important;
    font-weight: 700;
}

body.theme-nordic-frost .vfd-indicator-dot,
[data-theme="theme-nordic-frost"] .vfd-indicator-dot {
    background-color: #0284c7 !important;
    box-shadow: 0 0 4px #0284c7 !important;
}

body.theme-nordic-frost .vfd-seg-digit,
[data-theme="theme-nordic-frost"] .vfd-seg-digit {
    color: #0369a1 !important;
    text-shadow: none !important;
    font-weight: 800;
}

body.theme-nordic-frost .vfd-seg-unit,
[data-theme="theme-nordic-frost"] .vfd-seg-unit {
    color: #475569 !important;
    font-weight: 800;
    text-shadow: none !important;
}

body.theme-nordic-frost .vfd-progress-track,
[data-theme="theme-nordic-frost"] .vfd-progress-track {
    background: #e2e8f0 !important;
    border: 1px solid #cbd5e1 !important;
}

body.theme-nordic-frost .vfd-progress-fill,
[data-theme="theme-nordic-frost"] .vfd-progress-fill {
    background: #0284c7 !important;
    box-shadow: none !important;
}

body.theme-nordic-frost .vfd-progress-ticks span,
[data-theme="theme-nordic-frost"] .vfd-progress-ticks span {
    background: #94a3b8 !important;
}

/* 2. DZIENNIK PRASOWY (theme-classic-press) - VINTAGE NEWSROOM TELETYPE */
body.theme-classic-press .hifi-vfd-deck,
[data-theme="theme-classic-press"] .hifi-vfd-deck {
    background: linear-gradient(180deg, #ede6d6 0%, #e0d5c1 100%);
    border: 1.5px solid #cdc2ac;
    border-top: 2px solid #1e3a8a;
    box-shadow: 0 4px 16px -2px rgba(45, 35, 20, 0.08);
}

body.theme-classic-press .vfd-screen,
[data-theme="theme-classic-press"] .vfd-screen {
    background: #faf7f0 !important;
    background-image: none !important;
    border: 1px solid #cdc2ac !important;
    box-shadow: inset 0 1px 3px rgba(60, 40, 20, 0.06) !important;
}

body.theme-classic-press .vfd-separator,
[data-theme="theme-classic-press"] .vfd-separator {
    background: linear-gradient(180deg, transparent, #cdc2ac, transparent) !important;
}

body.theme-classic-press .vfd-tag-live,
[data-theme="theme-classic-press"] .vfd-tag-live {
    color: #166534 !important;
    font-weight: 800;
}

body.theme-classic-press .vfd-led-live,
[data-theme="theme-classic-press"] .vfd-led-live {
    background-color: #166534 !important;
    box-shadow: 0 0 3px #166534 !important;
}

body.theme-classic-press .vfd-tag-mode,
[data-theme="theme-classic-press"] .vfd-tag-mode {
    color: #57534e !important;
    font-weight: 700;
}

body.theme-classic-press .vfd-prefix,
[data-theme="theme-classic-press"] .vfd-prefix {
    color: #1f2937 !important;
    font-weight: 800;
}

body.theme-classic-press .vfd-status-task,
body.theme-classic-press .vfd-glow-cyan,
[data-theme="theme-classic-press"] .vfd-status-task,
[data-theme="theme-classic-press"] .vfd-glow-cyan {
    color: #1e3a8a !important;
    font-weight: 800;
    text-shadow: none !important;
}

body.theme-classic-press .vfd-status-subtask,
body.theme-classic-press .vfd-glow-green,
[data-theme="theme-classic-press"] .vfd-status-subtask,
[data-theme="theme-classic-press"] .vfd-glow-green {
    color: #166534 !important;
    font-weight: 700;
    text-shadow: none !important;
    opacity: 1 !important;
}

body.theme-classic-press .vfd-lbl,
[data-theme="theme-classic-press"] .vfd-lbl {
    color: #57534e !important;
    font-weight: 800;
}

body.theme-classic-press .vfd-sublbl,
body.theme-classic-press .vfd-sublbl-green,
[data-theme="theme-classic-press"] .vfd-sublbl,
[data-theme="theme-classic-press"] .vfd-sublbl-green {
    color: #166534 !important;
    font-weight: 800;
    text-shadow: none !important;
}

body.theme-classic-press .vfd-ch-badge,
[data-theme="theme-classic-press"] .vfd-ch-badge {
    background: #f4eee1 !important;
    border: 1px solid #cdc2ac !important;
}

body.theme-classic-press .vfd-ch-badge:hover,
[data-theme="theme-classic-press"] .vfd-ch-badge:hover {
    background: #ebe2d1 !important;
    border-color: #1e3a8a !important;
}

body.theme-classic-press .vfd-ch-code,
[data-theme="theme-classic-press"] .vfd-ch-code {
    color: #1f2937 !important;
    font-weight: 800;
}

body.theme-classic-press .vfd-ch-dot,
[data-theme="theme-classic-press"] .vfd-ch-dot {
    background-color: #166534 !important;
    box-shadow: 0 0 2px #166534 !important;
}

body.theme-classic-press .vfd-ch-badge.syncing .vfd-ch-dot,
[data-theme="theme-classic-press"] .vfd-ch-badge.syncing .vfd-ch-dot {
    background-color: #1e3a8a !important;
    box-shadow: 0 0 4px #1e3a8a !important;
}

body.theme-classic-press .vfd-ch-badge.error .vfd-ch-dot,
[data-theme="theme-classic-press"] .vfd-ch-badge.error .vfd-ch-dot {
    background-color: #b91c1c !important;
    box-shadow: 0 0 3px #b91c1c !important;
}

body.theme-classic-press .vfd-channels-subline,
[data-theme="theme-classic-press"] .vfd-channels-subline {
    color: #57534e !important;
    font-weight: 700;
}

body.theme-classic-press .vfd-indicator-dot,
[data-theme="theme-classic-press"] .vfd-indicator-dot {
    background-color: #1e3a8a !important;
    box-shadow: 0 0 4px #1e3a8a !important;
}

body.theme-classic-press .vfd-seg-digit,
[data-theme="theme-classic-press"] .vfd-seg-digit {
    color: #1e3a8a !important;
    text-shadow: none !important;
    font-weight: 800;
}

body.theme-classic-press .vfd-seg-unit,
[data-theme="theme-classic-press"] .vfd-seg-unit {
    color: #57534e !important;
    font-weight: 800;
    text-shadow: none !important;
}

body.theme-classic-press .vfd-progress-track,
[data-theme="theme-classic-press"] .vfd-progress-track {
    background: #ede6d6 !important;
    border: 1px solid #cdc2ac !important;
}

body.theme-classic-press .vfd-progress-fill,
[data-theme="theme-classic-press"] .vfd-progress-fill {
    background: #1e3a8a !important;
    box-shadow: none !important;
}

body.theme-classic-press .vfd-progress-ticks span,
[data-theme="theme-classic-press"] .vfd-progress-ticks span {
    background: #b8ab91 !important;
}

/* 3. BURSZTYN CRT (theme-amber-crt) - RETRO PHOSPHOR REFINEMENTS */
body.theme-amber-crt .brand-title,
[data-theme="theme-amber-crt"] .brand-title {
    text-shadow: 0 0 12px rgba(255, 176, 0, 0.6);
}

body.theme-amber-crt .vfd-prefix,
body.theme-amber-crt .vfd-sublbl,
body.theme-amber-crt .vfd-seg-digit,
[data-theme="theme-amber-crt"] .vfd-prefix,
[data-theme="theme-amber-crt"] .vfd-sublbl,
[data-theme="theme-amber-crt"] .vfd-seg-digit {
    color: #ffb000 !important;
    text-shadow: 0 0 10px rgba(255, 176, 0, 0.7);
}

body.theme-amber-crt .vfd-lbl,
body.theme-amber-crt .vfd-tag-mode,
body.theme-amber-crt .vfd-channels-subline,
[data-theme="theme-amber-crt"] .vfd-lbl,
[data-theme="theme-amber-crt"] .vfd-tag-mode,
[data-theme="theme-amber-crt"] .vfd-channels-subline {
    color: #c4932f !important;
    text-shadow: 0 0 4px rgba(196, 147, 47, 0.4);
}

body.theme-amber-crt .vfd-progress-fill,
[data-theme="theme-amber-crt"] .vfd-progress-fill {
    background: #ffb000 !important;
    box-shadow: 0 0 8px #ffb000;
}

body.theme-amber-crt .vfd-ch-badge.online,
[data-theme="theme-amber-crt"] .vfd-ch-badge.online {
    border-color: #ffb000 !important;
    color: #ffb000 !important;
}

body.theme-amber-crt .vfd-ch-dot,
body.theme-amber-crt .vfd-led-live,
[data-theme="theme-amber-crt"] .vfd-ch-dot,
[data-theme="theme-amber-crt"] .vfd-led-live {
    background-color: #ffb000 !important;
    box-shadow: 0 0 8px #ffb000;
}

/* 4. SZKARŁATNY ALERT (theme-crimson-alert) - WAR ROOM REFINEMENTS */
body.theme-crimson-alert .brand-title,
[data-theme="theme-crimson-alert"] .brand-title {
    text-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
}

body.theme-crimson-alert .vfd-prefix,
[data-theme="theme-crimson-alert"] .vfd-prefix {
    color: #fca5a5 !important;
}

body.theme-crimson-alert .vfd-lbl,
body.theme-crimson-alert .vfd-tag-mode,
body.theme-crimson-alert .vfd-channels-subline,
[data-theme="theme-crimson-alert"] .vfd-lbl,
[data-theme="theme-crimson-alert"] .vfd-tag-mode,
[data-theme="theme-crimson-alert"] .vfd-channels-subline {
    color: #f87171 !important;
    text-shadow: 0 0 4px rgba(248, 113, 113, 0.4);
}

body.theme-crimson-alert .vfd-progress-fill,
[data-theme="theme-crimson-alert"] .vfd-progress-fill {
    background: #ef4444 !important;
    box-shadow: 0 0 8px #ef4444;
}

body.theme-crimson-alert .vfd-ch-badge.online,
[data-theme="theme-crimson-alert"] .vfd-ch-badge.online {
    border-color: #ef4444 !important;
    color: #fca5a5 !important;
}

body.theme-crimson-alert .vfd-ch-dot,
body.theme-crimson-alert .vfd-led-live,
[data-theme="theme-crimson-alert"] .vfd-ch-dot,
[data-theme="theme-crimson-alert"] .vfd-led-live {
    background-color: #ef4444 !important;
    box-shadow: 0 0 8px #ef4444;
}

/* 5. NOWOCZESNY GRAFIT (theme-modern-slate) - ELECTRIC INDIGO REFINEMENTS */
body.theme-modern-slate .vfd-prefix,
[data-theme="theme-modern-slate"] .vfd-prefix {
    color: #cbd5e1 !important;
}

body.theme-modern-slate .vfd-lbl,
body.theme-modern-slate .vfd-tag-mode,
body.theme-modern-slate .vfd-channels-subline,
[data-theme="theme-modern-slate"] .vfd-lbl,
[data-theme="theme-modern-slate"] .vfd-tag-mode,
[data-theme="theme-modern-slate"] .vfd-channels-subline {
    color: #94a3b8 !important;
}

/* 6. CYBER VFD (theme-vfd-cyber) - HIGH CONTRAST PHOSPHOR REFINEMENTS */
body.theme-vfd-cyber .vfd-lbl,
body.theme-vfd-cyber .vfd-tag-mode,
body.theme-vfd-cyber .vfd-channels-subline,
[data-theme="theme-vfd-cyber"] .vfd-lbl,
[data-theme="theme-vfd-cyber"] .vfd-tag-mode,
[data-theme="theme-vfd-cyber"] .vfd-channels-subline {
    color: #94a3b8 !important;
}

/* MOBILE THEME BUTTON */
.mobile-theme-btn {
    font-size: 1.15rem;
    padding: 6px 12px;
}

/* ======================================================================
   PROJEKT VERITAS 360°: ERYSTYKA, LOGIKA I DWUOSIOWY PRAWDOMIERZ
   ====================================================================== */
.ranking-criteria-selector {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 3px 6px;
    border-radius: var(--radius-sm);
}

.criteria-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    padding: 0 4px;
    text-transform: uppercase;
}

.criteria-pill {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.76rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.criteria-pill:hover {
    color: var(--text-primary);
    background: var(--bg-surface-soft);
}

.criteria-pill.active {
    background: var(--accent-primary);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Logic & Eristic Flairs */
.pol-flair.flair-syllogism {
    background: rgba(16, 185, 129, 0.16);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.15);
}

.pol-flair.flair-eristic-master {
    background: rgba(239, 68, 68, 0.16);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.45);
}

.pol-flair.flair-strawman {
    background: rgba(245, 158, 11, 0.16);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.4);
}

.pol-flair.flair-whatabout {
    background: rgba(168, 85, 247, 0.16);
    color: #c084fc;
    border-color: rgba(168, 85, 247, 0.4);
}

/* Card dual-pillar badges */
.card-dual-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.badge-logic {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-composite {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(14, 165, 233, 0.18);
    color: #38bdf8;
    border: 1px solid rgba(14, 165, 233, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.card-tactic-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    margin-top: 6px;
}

/* Modal Veritas 360 dual pillars */
.veritas-pillars-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 16px 0;
}

@media (max-width: 640px) {
    .veritas-pillars-grid {
        grid-template-columns: 1fr;
    }
}

.veritas-pillar-card {
    background: var(--bg-surface-soft);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.veritas-pillar-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.veritas-pillar-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.veritas-pillar-score {
    font-family: var(--font-mono, monospace);
    font-size: 1.15rem;
    font-weight: 800;
}

.veritas-composite-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
    border: 1px solid rgba(14, 165, 233, 0.35);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    margin: 12px 0 16px 0;
}

.stratagem-item-card {
    background: rgba(239, 68, 68, 0.08);
    border-left: 3px solid #ef4444;
    border-radius: 4px;
    padding: 10px 12px;
    margin-bottom: 8px;
}

.stratagem-item-card.clean {
    background: rgba(16, 185, 129, 0.08);
    border-left: 3px solid #10b981;
}

.stratagem-item-card.fallacy {
    background: rgba(245, 158, 11, 0.08);
    border-left: 3px solid #f59e0b;
}

.stratagem-item-card.bias {
    background: rgba(168, 85, 247, 0.08);
    border-left: 3px solid #a855f7;
}

.stratagem-name {
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-primary);
}

.stratagem-meta {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.2);
}

.stratagem-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.4;
}

.ranking-score-sub {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-family: var(--font-mono, monospace);
    margin-top: 2px;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .ranking-controls-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .segmented-control {
        width: 100%;
        display: flex;
        justify-content: space-between;
        overflow-x: auto;
    }
    .seg-btn {
        flex: 1;
        justify-content: center;
        padding: 6px 8px;
        font-size: 0.74rem;
    }
    .ranking-row {
        padding: 8px 10px;
        gap: 10px;
    }
    .ranking-avatar-wrap .politician-avatar {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        object-fit: cover;
    }
    .ranking-name-line {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 6px;
        width: 100%;
    }
    .ranking-name {
        font-size: 0.94rem;
        font-weight: 800;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        line-height: 1.25;
        flex-shrink: 0;
    }
    .ranking-flairs-wrap {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        margin-top: 2px;
    }
    .ranking-score-col {
        min-width: 68px;
    }
    .rank-score-pill {
        padding: 2px 7px;
    }
    .rank-score-pill .score-stars {
        display: none;
    }
    .rank-score-pill .score-num {
        font-size: 0.82rem;
    }
}

/* ==========================================================================
   SYMBOLIC LOGICAL TELEMETRY BAR (HEADER STEP 1) & FULL-SCREEN MODAL (STEP 2)
   ========================================================================== */

.symbolic-telemetry-bar {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(10, 15, 28, 0.88);
    border: 1.5px solid var(--border-color, rgba(56, 189, 248, 0.28));
    border-radius: 12px;
    padding: 6px 12px 9px 12px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.symbolic-telemetry-bar:hover {
    border-color: var(--accent-primary, #38bdf8);
    background: rgba(15, 23, 42, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(14, 165, 233, 0.25);
}

.symbolic-telemetry-bar:active {
    transform: scale(0.985);
}

.symbolic-telemetry-bar.is-scanning {
    border-color: rgba(6, 182, 212, 0.65);
    box-shadow: 0 0 18px rgba(6, 182, 212, 0.25);
}

.sym-pipeline-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    white-space: nowrap;
}

.sym-node {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-primary, #f8fafc);
    letter-spacing: 0.3px;
    line-height: 1.1;
}

.sym-node-icon {
    font-size: 0.78rem;
    line-height: 1;
}

.sym-node-label {
    font-weight: 800;
}

.sym-flow-arrow {
    color: var(--text-muted, #64748b);
    font-size: 0.72rem;
    font-weight: 700;
    opacity: 0.7;
    flex-shrink: 0;
}

/* Symbolic LEDs */
.sym-led {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.sym-led-green {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: symPulse 2.2s infinite ease-in-out;
}

.sym-led-cyan {
    background: #06b6d4;
    box-shadow: 0 0 8px #06b6d4;
}

.sym-led-cyan.pulsing-fast {
    animation: symPulseFast 0.6s infinite alternate;
}

.sym-led-amber {
    background: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
}

@keyframes symPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.88); }
}

@keyframes symPulseFast {
    0% { opacity: 0.3; transform: scale(0.85); }
    100% { opacity: 1; transform: scale(1.2); box-shadow: 0 0 12px #22d3ee; }
}

.sym-node-cycle {
    background: rgba(14, 165, 233, 0.12);
    border-color: rgba(14, 165, 233, 0.3);
    gap: 6px;
}

.sym-timer-pill {
    color: #38bdf8;
    font-family: var(--font-mono, monospace);
    font-size: 0.73rem;
}

.sym-timer-pill strong {
    font-weight: 800;
    color: #ffffff;
}

.sym-expand-badge {
    background: var(--accent-primary, #0ea5e9);
    color: #ffffff;
    font-family: var(--font-sans, sans-serif);
    font-size: 0.66rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.sym-micro-progress-track {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.sym-micro-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #06b6d4 50%, #3b82f6 100%);
    transition: width 0.4s linear;
}

/* ==========================================================================
   FULL-SCREEN TELEMETRY & COMMAND CENTER MODAL (STEP 2)
   ========================================================================== */

.modal-card.modal-fullscreen-telemetry {
    width: 96vw !important;
    max-width: 1280px !important;
    min-height: 86vh;
    max-height: 93vh !important;
    padding: 22px 24px !important;
    overflow-y: auto !important;
    display: flex;
    flex-direction: column;
    gap: 18px;
    border: 1.5px solid var(--border-highlight, rgba(56, 189, 248, 0.4));
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85);
}

.telemetry-modal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.telemetry-modal-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.telemetry-modal-kicker {
    font-family: var(--font-mono, monospace);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #38bdf8;
    text-transform: uppercase;
}

.telemetry-modal-heading {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
}

.telemetry-modal-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.telemetry-section-label {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-secondary);
    margin-bottom: -6px;
}

/* 4-Step Logical Pipeline Grid */
.logical-pipeline-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.pipeline-stage-card {
    background: var(--bg-surface-soft, rgba(15, 23, 42, 0.65));
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--accent-primary, #38bdf8);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pipe-stage-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.pipe-step-num {
    font-family: var(--font-mono, monospace);
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--text-muted);
}

.pipe-status-pill {
    font-family: var(--font-mono, monospace);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 20px;
}

.pipe-status-pill.status-online {
    background: rgba(16, 185, 129, 0.16);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.pipe-status-pill.status-amber {
    background: rgba(245, 158, 11, 0.16);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.pipe-status-pill.status-cyan {
    background: rgba(6, 182, 212, 0.16);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.35);
}

.pipe-stage-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text-primary);
}

.pipe-stage-desc {
    margin: 0;
    font-size: 0.76rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

/* Ensure VFD Deck inside full-screen modal shows ALL modules cleanly */
.hifi-vfd-deck.modal-vfd-expanded {
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    opacity: 1 !important;
    margin: 0 !important;
}

.hifi-vfd-deck.modal-vfd-expanded .vfd-module-channels,
.hifi-vfd-deck.modal-vfd-expanded .vfd-module-hardware,
.hifi-vfd-deck.modal-vfd-expanded .vfd-separator {
    display: flex !important;
}

/* 2-Column Details Split (Channels Matrix + Live Event Stream) */
.telemetry-details-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.telemetry-detail-panel {
    background: var(--bg-surface-soft, rgba(15, 23, 42, 0.55));
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.telemetry-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--text-primary);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
}

.telemetry-panel-badge {
    font-family: var(--font-mono, monospace);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(14, 165, 233, 0.14);
    color: #38bdf8;
    border: 1px solid rgba(14, 165, 233, 0.3);
}

.telemetry-channels-table {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tel-ch-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid var(--border-subtle);
    font-size: 0.76rem;
}

.tel-ch-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
    flex-shrink: 0;
}

.tel-ch-code {
    font-family: var(--font-mono, monospace);
    min-width: 34px;
    color: #38bdf8;
}

.tel-ch-name {
    flex: 1;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tel-ch-tag {
    font-size: 0.66rem;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}

.tel-ch-state {
    font-family: var(--font-mono, monospace);
    font-size: 0.66rem;
    font-weight: 700;
    color: #34d399;
}

/* Live Event Stream Log */
.telemetry-live-log {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 270px;
    overflow-y: auto;
}

.tel-log-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.22);
    border-left: 2.5px solid #38bdf8;
    font-size: 0.76rem;
}

.tel-log-time {
    font-family: var(--font-mono, monospace);
    font-size: 0.7rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.tel-log-tag {
    font-family: var(--font-mono, monospace);
    font-size: 0.64rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}

.tel-log-tag.tag-live { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.tel-log-tag.tag-rss { background: rgba(6, 182, 212, 0.2); color: #22d3ee; }
.tel-log-tag.tag-ai { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.tel-log-tag.tag-audit { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }

.tel-log-content {
    flex: 1;
    min-width: 0;
}

.tel-log-msg {
    font-weight: 700;
    color: var(--text-primary);
}

.tel-log-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Light themes support for Symbolic Bar & Modal */
body.theme-nordic-frost .symbolic-telemetry-bar,
[data-theme="theme-nordic-frost"] .symbolic-telemetry-bar,
body.theme-classic-press .symbolic-telemetry-bar,
[data-theme="theme-classic-press"] .symbolic-telemetry-bar {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

body.theme-nordic-frost .sym-node,
[data-theme="theme-nordic-frost"] .sym-node,
body.theme-classic-press .sym-node,
[data-theme="theme-classic-press"] .sym-node {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
}

body.theme-nordic-frost .sym-timer-pill strong,
[data-theme="theme-nordic-frost"] .sym-timer-pill strong,
body.theme-classic-press .sym-timer-pill strong,
[data-theme="theme-classic-press"] .sym-timer-pill strong {
    color: #0369a1;
}

/* Mobile Responsive Layout for Symbolic Bar & Fullscreen Telemetry Modal */
@media (max-width: 960px) {
    .logical-pipeline-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .telemetry-details-split {
        grid-template-columns: 1fr;
    }
    .hifi-vfd-deck.modal-vfd-expanded .vfd-screen {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .symbolic-telemetry-bar {
        order: 3;
        width: 100%;
        flex: 0 0 100%;
        margin-top: 8px;
        padding: 6px 8px 8px 8px;
    }
    .sym-pipeline-row {
        justify-content: space-between;
        gap: 3px;
    }
    .sym-node {
        padding: 3px 6px;
        font-size: 0.67rem;
        gap: 4px;
    }
    .sym-flow-arrow {
        font-size: 0.64rem;
    }
    .modal-card.modal-fullscreen-telemetry {
        width: 98vw !important;
        height: 94vh !important;
        max-height: 94vh !important;
        padding: 14px !important;
        border-radius: 12px !important;
    }
    .logical-pipeline-grid {
        grid-template-columns: 1fr;
    }
    .hifi-vfd-deck.modal-vfd-expanded .vfd-screen {
        flex-direction: column;
        align-items: stretch;
    }
    .hifi-vfd-deck.modal-vfd-expanded .vfd-separator {
        display: none !important;
    }
    .tel-ch-tag {
        display: none;
    }
}

/* ==========================================================================
   GLOBAL GEOPOLITICAL & POWER-BROKERS SCOPE BAR (#geo-scope-bar)
   ========================================================================== */
.geo-scope-bar {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(11, 18, 34, 0.98));
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.geo-macro-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.geo-scope-title {
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #38bdf8;
    white-space: nowrap;
}

.geo-macro-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.geo-pill {
    background: rgba(30, 41, 59, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: #e2e8f0;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 7px 13px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.geo-pill:hover {
    background: rgba(56, 189, 248, 0.16);
    border-color: rgba(56, 189, 248, 0.5);
    color: #ffffff;
    transform: translateY(-1px);
}

.geo-pill.active {
    background: linear-gradient(135deg, #0284c7, #2563eb);
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
}

.geo-pill.geo-pill-nonpol {
    border-color: rgba(192, 132, 252, 0.35);
}

.geo-pill.geo-pill-nonpol.active {
    background: linear-gradient(135deg, #7c3aed, #db2777);
    border-color: #e879f9;
    box-shadow: 0 0 14px rgba(217, 70, 239, 0.4);
}

.geo-country-subbar {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding-top: 8px;
    border-top: 1px dashed rgba(148, 163, 184, 0.16);
}

.geo-sub-pill {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #cbd5e1;
    font-size: 0.73rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.geo-sub-pill:hover {
    border-color: rgba(56, 189, 248, 0.5);
    color: #ffffff;
    background: rgba(30, 41, 59, 0.9);
}

.geo-sub-pill.active {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
    color: #38bdf8;
    font-weight: 800;
}

.reddit-flair.flair-geo {
    background: rgba(14, 165, 233, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.38);
    color: #7dd3fc;
    font-weight: 700;
}

.tag-geo-power {
    background: rgba(56, 189, 248, 0.16) !important;
    border: 1px solid rgba(56, 189, 248, 0.4) !important;
    color: #38bdf8 !important;
    font-weight: 800 !important;
}

.geo-power-inline-tag {
    color: #38bdf8;
    font-weight: 700;
    font-size: 0.72rem;
}

.geo-flag-inline {
    margin-right: 3px;
}

@media (max-width: 768px) {
    .geo-scope-bar {
        padding: 10px 10px;
        margin-bottom: 12px;
    }
    .geo-macro-pills,
    .geo-country-subbar {
        flex-wrap: nowrap;
        overflow-x: auto;
        width: 100%;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .geo-macro-pills::-webkit-scrollbar,
    .geo-country-subbar::-webkit-scrollbar {
        display: none;
    }
    .geo-pill {
        font-size: 0.74rem;
        padding: 6px 11px;
    }
}

/* ==========================================================================
   KRAJOWY KOKPIT POLITYKOSFERY (#country-politykosfera-banner)
   ========================================================================== */
.country-politykosfera-banner {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.9));
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-left: 4px solid #38bdf8;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInBanner 0.25s ease-out;
}

@keyframes fadeInBanner {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.politykosfera-banner-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.politykosfera-banner-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.politykosfera-banner-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    padding: 3px 8px;
    border-radius: 6px;
}

.politykosfera-banner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 768px) {
    .politykosfera-banner-grid {
        grid-template-columns: 1fr;
    }
}

.politykosfera-block {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 8px;
    padding: 10px 12px;
}

.politykosfera-block-title {
    font-size: 0.73rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.politykosfera-block.ruling .politykosfera-block-title {
    color: #38bdf8;
}

.politykosfera-block.opposition .politykosfera-block-title {
    color: #f59e0b;
}

.politykosfera-block-content {
    font-size: 0.84rem;
    color: #cbd5e1;
    line-height: 1.45;
}

.politykosfera-banner-footer {
    margin-top: 10px;
    font-size: 0.74rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.politykosfera-rss-tag {
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.72rem;
}

/* Theme overrides for Politykosfera Banner */
body.theme-classic-press .country-politykosfera-banner,
[data-theme="theme-classic-press"] .country-politykosfera-banner {
    background: #faf7f0 !important;
    border: 1px solid #cdc2ac !important;
    border-left: 4px solid #1e3a8a !important;
    box-shadow: 0 4px 12px rgba(60, 40, 20, 0.08) !important;
}
body.theme-classic-press .politykosfera-banner-header,
[data-theme="theme-classic-press"] .politykosfera-banner-header {
    border-bottom: 1px solid #cdc2ac !important;
}
body.theme-classic-press .politykosfera-banner-title,
[data-theme="theme-classic-press"] .politykosfera-banner-title {
    color: #1f2937 !important;
}
body.theme-classic-press .politykosfera-block,
[data-theme="theme-classic-press"] .politykosfera-block {
    background: #f4efe4 !important;
    border: 1px solid #cdc2ac !important;
}
body.theme-classic-press .politykosfera-block-content,
[data-theme="theme-classic-press"] .politykosfera-block-content {
    color: #2c251f !important;
}
body.theme-classic-press .politykosfera-rss-tag,
[data-theme="theme-classic-press"] .politykosfera-rss-tag {
    background: #e7dfce !important;
    border: 1px solid #cdc2ac !important;
    color: #1f2937 !important;
}

body.theme-amber-crt .country-politykosfera-banner,
[data-theme="theme-amber-crt"] .country-politykosfera-banner {
    background: rgba(43, 27, 4, 0.95) !important;
    border-color: rgba(245, 158, 11, 0.4) !important;
    border-left-color: #f59e0b !important;
}
body.theme-amber-crt .politykosfera-banner-title,
[data-theme="theme-amber-crt"] .politykosfera-banner-title {
    color: #fef3c7 !important;
}
body.theme-amber-crt .politykosfera-block,
[data-theme="theme-amber-crt"] .politykosfera-block {
    background: rgba(30, 18, 2, 0.8) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
}
body.theme-amber-crt .politykosfera-block-content,
[data-theme="theme-amber-crt"] .politykosfera-block-content {
    color: #fed7aa !important;
}



