/* ================================================================
   VerifyNews Intelligence Network — Institutional Light UI
   Exact implementation matching the Autonomous Intelligence layout
   ================================================================ */

:root {
    /* Backgrounds & Base Surfaces */
    --bg-page:        #f4f6fb;
    --bg-card:        #ffffff;
    --bg-subtle:      #f8fafc;
    --bg-muted:       #edf2f7;
    --bg-input:       #ffffff;
    --bg-hover:       #f1f5f9;

    /* Borders */
    --b:              #e2e8f0;
    --b-subtle:       #edf2f7;
    --b-focus:        #2563eb;
    --b-dark:         #cbd5e1;

    /* Text */
    --t1:             #0f172a;  /* slate-900 */
    --t2:             #334155;  /* slate-700 */
    --t3:             #64748b;  /* slate-500 */
    --t4:             #94a3b8;  /* slate-400 */

    /* Accent & Brand Colors */
    --accent:         #2563eb;  /* royal blue */
    --accent-hover:   #1d4ed8;
    --accent-subtle:  #eff6ff;
    --accent-border:  #bfdbfe;

    /* Stance & Status Colors */
    --c-real:         #059669;  /* emerald */
    --c-real-bg:      #ecfdf5;
    --c-real-b:       #a7f3d0;

    --c-false:        #dc2626;  /* ruby red */
    --c-false-bg:     #fef2f2;
    --c-false-b:      #fecaca;

    --c-mislead:      #d97706;  /* amber */
    --c-mislead-bg:   #fffbeb;
    --c-mislead-b:    #fde68a;

    --c-neutral:      #475569;  /* slate */
    --c-neutral-bg:   #f8fafc;
    --c-neutral-b:    #cbd5e1;

    /* Typography */
    --f-sans:         'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --f-mono:         'IBM Plex Mono', 'SFMono-Regular', Menlo, monospace;

    /* Radii */
    --r-xs:           4px;
    --r-sm:           8px;
    --r-md:           12px;
    --r-lg:           16px;
    --r-xl:           20px;
    --r-full:         9999px;

    /* Shadows */
    --shadow-xs:      0 1px 2px 0 rgba(15, 23, 42, 0.04);
    --shadow-sm:      0 1px 3px 0 rgba(15, 23, 42, 0.05), 0 1px 2px -1px rgba(15, 23, 42, 0.05);
    --shadow-md:      0 4px 14px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg:      0 10px 25px -3px rgba(15, 23, 42, 0.08), 0 4px 10px -4px rgba(15, 23, 42, 0.04);
}

/* ── Reset & Document Base ───────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-page);
}

body {
    font-family: var(--f-sans);
    background-color: var(--bg-page);
    color: var(--t1);
    line-height: 1.55;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

button {
    font-family: var(--f-sans);
    cursor: pointer;
    border: none;
    background: none;
}

a {
    text-decoration: none;
    color: inherit;
}

input, textarea {
    font-family: var(--f-sans);
}

/* ── Subtle Background ───────────────────────────────────────── */
.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at 10% 10%, rgba(219, 234, 254, 0.45) 0%, transparent 40%),
                radial-gradient(circle at 90% 10%, rgba(224, 231, 255, 0.4) 0%, transparent 45%),
                radial-gradient(circle at 50% 80%, rgba(241, 245, 249, 0.8) 0%, transparent 50%);
}

/* ── Top Navigation Bar ──────────────────────────────────────── */
.topnav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--b);
}

.nav-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Brand */
.brand-block {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: #ffffff;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-title-wrap {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.4px;
    color: var(--t1);
    line-height: 1.1;
}

.brand-title span {
    color: var(--accent);
}

.brand-sub {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--t3);
}

/* Center items */
.nav-center {
    display: flex;
    align-items: center;
    gap: 18px;
}

.live-feed-pill {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 4px 12px;
    border-radius: var(--r-full);
    font-size: 0.74rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pulsing-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    animation: livePulse 1.8s infinite ease-in-out;
}

@keyframes livePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--t2);
}

.nav-links a {
    transition: color 0.15s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Nav Right */
.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-btn-history {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: var(--accent);
    padding: 5px 12px;
    border-radius: var(--r-full);
    font-size: 0.78rem;
    font-weight: 700;
    transition: all 0.15s ease;
}

.nav-btn-history:hover {
    background: #dbeafe;
}

.btn-signin {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--t2);
    padding: 6px 14px;
    border-radius: var(--r-full);
    border: 1px solid var(--b);
    background: #ffffff;
    transition: all 0.15s ease;
}

.btn-signin:hover {
    background: var(--bg-hover);
    color: var(--t1);
}

.user-avatar-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1px solid var(--b);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--t3);
    transition: all 0.15s;
}

.user-avatar-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ── Main Container ──────────────────────────────────────────── */
.app-container {
    position: relative;
    z-index: 1;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

/* ── Hero Section ────────────────────────────────────────────── */
.hero {
    text-align: center;
    padding: 48px 0 24px;
}

.eyebrow-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: var(--accent);
    padding: 5px 16px;
    border-radius: var(--r-full);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.eyebrow-tag {
    background: var(--accent);
    color: #ffffff;
    padding: 1px 8px;
    border-radius: var(--r-full);
    font-size: 0.68rem;
    font-weight: 800;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.2px;
    color: var(--t1);
    margin-bottom: 14px;
}

.hero-title-blue {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--t3);
    max-width: 720px;
    margin: 0 auto 22px;
    line-height: 1.55;
}

/* Hot Intelligence Dossiers (Pill Bar) */
.dossiers-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.dossiers-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--t3);
    display: flex;
    align-items: center;
    gap: 6px;
}

.dossiers-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.dossier-pill {
    background: #ffffff;
    border: 1px solid var(--b);
    padding: 6px 14px;
    border-radius: var(--r-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--t2);
    box-shadow: var(--shadow-xs);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.dossier-pill:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.pill-stat {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: var(--r-full);
}

.pill-stat.real { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.pill-stat.mislead { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }

/* ── Input Card ──────────────────────────────────────────────── */
.input-card {
    background: #ffffff;
    border: 1px solid var(--b);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
    padding: 24px;
    margin-bottom: 24px;
}

.input-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
}

.input-tabs {
    display: inline-flex;
    background: #f1f5f9;
    border: 1px solid var(--b);
    border-radius: var(--r-full);
    padding: 3px;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    border-radius: var(--r-full);
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--t3);
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: #ffffff;
    color: var(--accent);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.input-utilities {
    display: flex;
    align-items: center;
    gap: 14px;
}

.util-link {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--t3);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s;
}

.util-link:hover {
    color: var(--accent);
}

.input-field-block {
    position: relative;
    margin-bottom: 16px;
}

.input-meta-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.field-title-dot {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--t2);
}

.dot-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.char-counter {
    font-size: 0.74rem;
    color: var(--t4);
    font-family: var(--f-mono);
}

.main-textarea {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--b);
    border-radius: var(--r-md);
    padding: 14px 16px;
    font-size: 0.96rem;
    color: var(--t1);
    line-height: 1.55;
    outline: none;
    resize: vertical;
    min-height: 90px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.main-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.main-input-url {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--b);
    border-radius: var(--r-md);
    padding: 14px 16px;
    font-size: 0.96rem;
    color: var(--t1);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.main-input-url:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.input-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.ref-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--t3);
}

.ref-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
}

.cta-execute {
    background: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: var(--r-sm);
    padding: 10px 22px;
    font-size: 0.88rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
    transition: all 0.2s ease;
}

.cta-execute:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

.cta-execute:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ── Pipeline Progress Radar ─────────────────────────────────── */
.pipeline-radar-card {
    background: #ffffff;
    border: 1px solid var(--b);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    padding: 20px 24px;
    margin-bottom: 24px;
}

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

.radar-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.radar-title {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--t1);
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-autosync {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 2px 8px;
    border-radius: var(--r-full);
    font-size: 0.68rem;
    font-weight: 800;
}

.radar-stats {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--t3);
    display: flex;
    align-items: center;
    gap: 6px;
}

.radar-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.radar-step {
    background: #f8fafc;
    border: 1px solid var(--b);
    border-radius: var(--r-md);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.radar-step.active, .radar-step.done {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.step-check-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    flex-shrink: 0;
}

.radar-step.done .step-check-circle {
    background: var(--accent);
}

.radar-step.final .step-check-circle {
    background: #2563eb;
}

.step-text {
    display: flex;
    flex-direction: column;
}

.step-name {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--t1);
    line-height: 1.2;
}

.step-detail {
    font-size: 0.66rem;
    color: var(--t3);
}

/* ── Multilateral Verdict Docket (Results) ───────────────────── */
.docket-card {
    background: #ffffff;
    border: 1px solid var(--b);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 24px;
}

.docket-head-bar {
    padding: 20px 24px;
    border-bottom: 1px solid var(--b-subtle);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px;
}

.docket-head-left h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--t1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.docket-number-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 2px 8px;
    border-radius: var(--r-full);
}

.docket-sub {
    font-size: 0.8rem;
    color: var(--t3);
    margin-top: 4px;
}

.simulation-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid var(--b);
    border-radius: var(--r-full);
    padding: 3px 6px;
}

.sim-label {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--t3);
    padding: 0 4px;
}

.sim-btn {
    font-size: 0.74rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--r-full);
    transition: all 0.15s ease;
}

.sim-btn.real { color: var(--c-real); background: #ecfdf5; border: 1px solid #a7f3d0; }
.sim-btn.false { color: var(--c-false); background: #ffffff; border: 1px solid var(--b); }
.sim-btn.mislead { color: var(--c-mislead); background: #ffffff; border: 1px solid var(--b); }
.sim-btn.unverified { color: var(--c-neutral); background: #ffffff; border: 1px solid var(--b); }

/* Banner */
.verdict-banner {
    padding: 16px 24px;
    border-bottom: 1px solid var(--b-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.verdict-banner.real {
    background: #f0fdf4;
    border-left: 4px solid var(--c-real);
}
.verdict-banner.false {
    background: #fef2f2;
    border-left: 4px solid var(--c-false);
}
.verdict-banner.misleading {
    background: #fffbeb;
    border-left: 4px solid var(--c-mislead);
}
.verdict-banner.unverified {
    background: #f8fafc;
    border-left: 4px solid var(--c-neutral);
}

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

.vb-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.real .vb-icon { background: #d1fae5; color: #059669; }
.false .vb-icon { background: #fee2e2; color: #dc2626; }
.misleading .vb-icon { background: #fef3c7; color: #d97706; }
.unverified .vb-icon { background: #e2e8f0; color: #475569; }

.vb-title {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.real .vb-title { color: #065f46; }
.false .vb-title { color: #991b1b; }
.misleading .vb-title { color: #92400e; }
.unverified .vb-title { color: #1e293b; }

.vb-desc {
    font-size: 0.78rem;
    color: var(--t3);
    margin-top: 1px;
}

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

.vb-tool-btn {
    background: #ffffff;
    border: 1px solid var(--b);
    padding: 6px 14px;
    border-radius: var(--r-full);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--t2);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-xs);
    transition: all 0.15s ease;
}

.vb-tool-btn:hover {
    background: var(--bg-hover);
    color: var(--t1);
    border-color: #cbd5e1;
}

/* Two-column Docket Body */
.docket-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    border-bottom: 1px solid var(--b-subtle);
}

.docket-col-gauge {
    padding: 32px 24px;
    border-right: 1px solid var(--b-subtle);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #fafbfd;
}

.gauge-circle-wrap {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.gauge-svg {
    transform: rotate(-90deg);
    width: 140px;
    height: 140px;
}

.gauge-bg-circle {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 10;
}

.gauge-bar-circle {
    fill: none;
    stroke: #059669;
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s ease;
}

.gauge-inner-text {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gauge-val {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--t1);
    line-height: 1;
}

.gauge-tag {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--t3);
    margin-top: 4px;
}

.gauge-info-title {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--t1);
    margin-bottom: 4px;
}

.gauge-info-sub {
    font-size: 0.72rem;
    color: var(--t3);
    line-height: 1.4;
}

.docket-col-details {
    padding: 28px 32px;
}

.sec-tag {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.assertion-headline {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--t1);
    line-height: 1.45;
    margin-bottom: 14px;
}

.entity-graph-wrap {
    margin-bottom: 18px;
}

.entity-graph-label {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--t3);
    margin-bottom: 6px;
}

.entity-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.entity-badge {
    background: #ffffff;
    border: 1px solid var(--b);
    padding: 3px 10px;
    border-radius: var(--r-full);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--t2);
}

.entity-badge.person   { border-color: #bfdbfe; background: #eff6ff; color: #1e40af; }
.entity-badge.org      { border-color: #bbf7d0; background: #f0fdf4; color: #166534; }
.entity-badge.location { border-color: #fef08a; background: #fefce8; color: #854d0e; }
.entity-badge.mission  { border-color: #e9d5ff; background: #faf5ff; color: #6b21a8; }

/* Synthesis Callout */
.synthesis-card {
    background: #f8fafc;
    border: 1px solid var(--b);
    border-radius: var(--r-md);
    padding: 16px;
}

.syn-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.syn-tag-badge {
    background: #eff6ff;
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--r-full);
}

.syn-text {
    font-size: 0.88rem;
    color: var(--t2);
    line-height: 1.6;
}

/* Stance Breakdown Bar */
.breakdown-section {
    padding: 20px 24px;
    background: #ffffff;
}

.bd-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--t2);
    margin-bottom: 10px;
}

.bd-parsed-count {
    color: var(--accent);
    font-family: var(--f-mono);
}

.bd-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    display: flex;
    overflow: hidden;
    margin-bottom: 12px;
}

.bd-seg-support { background: #10b981; transition: width 0.5s ease; }
.bd-seg-neutral { background: #f59e0b; transition: width 0.5s ease; }
.bd-seg-contra  { background: #ef4444; transition: width 0.5s ease; }

.bd-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.78rem;
    color: var(--t2);
}

.bd-leg-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bd-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.bd-dot.support { background: #10b981; }
.bd-dot.neutral { background: #f59e0b; }
.bd-dot.contra  { background: #ef4444; }

/* ── Accredited Newsroom Dispatches (Sources Grid) ───────────── */
.dispatches-section {
    margin-bottom: 24px;
}

.disp-head-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.disp-title {
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--t1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.crypto-verify-tag {
    font-size: 0.74rem;
    font-weight: 700;
    color: #059669;
    display: flex;
    align-items: center;
    gap: 4px;
}

.disp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.wire-card {
    background: #ffffff;
    border: 1px solid var(--b);
    border-radius: var(--r-md);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-xs);
    transition: all 0.2s ease;
}

.wire-card:hover {
    border-color: #bfdbfe;
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

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

.wc-outlet-name {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--t1);
}

.wc-bureau {
    font-size: 0.72rem;
    color: var(--t3);
}

.wc-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: var(--r-full);
}

.wc-badge.support { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.wc-badge.neutral { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.wc-badge.contra  { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

.wc-quote {
    font-size: 0.84rem;
    font-style: italic;
    color: var(--t2);
    line-height: 1.5;
    margin-bottom: 16px;
    border-left: 2px solid #93c5fd;
    padding-left: 10px;
}

.wc-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--b-subtle);
    padding-top: 10px;
    font-size: 0.72rem;
}

.wc-time {
    color: var(--t4);
}

.wc-link {
    color: var(--accent);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s;
}

.wc-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* ── Scope & Disclaimers ─────────────────────────────────────── */
.scope-card {
    background: #ffffff;
    border: 1px solid var(--b);
    border-radius: var(--r-md);
    padding: 16px 20px;
    margin-bottom: 40px;
    display: flex;
    gap: 12px;
}

.scope-icon {
    color: var(--t3);
    margin-top: 2px;
}

.scope-content strong {
    display: block;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--t1);
    margin-bottom: 4px;
}

.scope-content p {
    font-size: 0.78rem;
    color: var(--t3);
    line-height: 1.5;
}

/* ── Institutional Footer ────────────────────────────────────── */
.institutional-footer {
    border-top: 1px solid var(--b);
    background: #ffffff;
    padding: 36px 0 28px;
    margin-top: 40px;
}

.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

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

.fb-text h4 {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--t1);
}

.fb-text span {
    font-size: 0.72rem;
    color: var(--t3);
}

.footer-feeds {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.feeds-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--t3);
}

.feed-chip {
    background: #f8fafc;
    border: 1px solid var(--b);
    padding: 3px 10px;
    border-radius: var(--r-full);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--t2);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--b-subtle);
    padding-top: 20px;
    font-size: 0.75rem;
    color: var(--t3);
    flex-wrap: wrap;
    gap: 12px;
}

.protocol-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--t2);
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-links a:hover {
    color: var(--accent);
}

/* ── Toast ───────────────────────────────────────────────────── */
.toast-msg {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #0f172a;
    color: #ffffff;
    padding: 10px 22px;
    border-radius: var(--r-full);
    font-size: 0.82rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
}

.toast-msg.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── Utilities ────────────────────────────────────────────────── */
.hidden {
    display: none !important;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
    .radar-grid { grid-template-columns: repeat(3, 1fr); }
    .docket-grid { grid-template-columns: 1fr; }
    .docket-col-gauge { border-right: none; border-bottom: 1px solid var(--b-subtle); }
    .disp-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .hero-title { font-size: 2.2rem; }
    .desktop-only { display: none; }
    .radar-grid { grid-template-columns: 1fr 1fr; }
    .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; }
}
