:root {
    --brand: #6BB8E3;
    --brand-rgb: 107, 184, 227;
    --bg-0: #06090d;
    --bg-1: #0b1118;
    --surface-0: #0e151d;
    --surface-1: #101b25;
    --surface-2: #142230;
    --text: #e5ecf3;
    --text-primary-rgb: 245, 249, 255;
    --text-dim: #97a7b8;
    --positive: #34c759;
    --negative: #ff5c70;
    --line-soft: rgba(255, 255, 255, 0.08);
    --line-brand: rgba(var(--brand-rgb), 0.34);
    --shadow: 0 24px 48px rgba(0, 0, 0, 0.32);
    --radius: 10px;
    --radius-lg: 14px;
    --radius-md: 10px;
    --radius-sm: 8px;

    --color-white-ffffff-a06: rgba(255, 255, 255, 0.06);
    --color-sky-070c12: #070c12;
    --color-sky-05080d: #05080d;
    --color-sky-f4f8fd: #f4f8fd;
    --color-sky-dce4f0: #dce4f0;
    --color-sky-090f16-a96: rgba(9, 15, 22, 0.96);
    --color-sky-070b11-a93: rgba(7, 11, 17, 0.93);
    --color-white-ffffff-a02: rgba(255, 255, 255, 0.02);
    --color-sky-e7eff8: #e7eff8;
    --color-sky-eaf4ff: #eaf4ff;
    --color-green-34c759-a15: rgba(52, 199, 89, 0.15);
    --color-slate-72818f: #72818f;
    --color-sky-f2f8ff: #f2f8ff;
    --color-sky-c4d4e4: #c4d4e4;
    --color-black-000000-a40: rgba(0, 0, 0, 0.4);
    --color-sky-d7e5f3: #d7e5f3;
    --color-sky-eaf6ff: #eaf6ff;
    --color-white-ffffff: #ffffff;
    --color-sky-050b11-a86: rgba(5, 11, 17, 0.86);
    --color-white-ffffff-a12: rgba(255, 255, 255, 0.12);
    --color-sky-080d14-a76: rgba(8, 13, 20, 0.76);
    --color-sky-0b1118-a78: rgba(11, 17, 24, 0.78);
    --color-sky-d5e5f3: #d5e5f3;
    --color-sky-cdeaff: #cdeaff;
    --color-sky-eaf5ff: #eaf5ff;
    --color-sky-c4d5e5: #c4d5e5;
    --color-white-ffffff-a11: rgba(255, 255, 255, 0.11);
    --color-sky-070d14-a62: rgba(7, 13, 20, 0.62);
    --color-indigo-b28dff-a44: rgba(178, 141, 255, 0.44);
    --color-teal-5acdc2-a44: rgba(90, 205, 194, 0.44);
    --color-red-e0586a-a50: rgba(224, 88, 106, 0.5);
    --color-red-f39680-a50: rgba(243, 150, 128, 0.5);
    --color-sky-c6d0de-a35: rgba(198, 208, 222, 0.35);
    --color-amber-ffbc54-a35: rgba(255, 188, 84, 0.35);
    --color-cyan-6bb8e3-a45: rgba(107, 184, 227, 0.45);
    --color-green-84d698-a40: rgba(132, 214, 152, 0.4);
    --color-sky-c9d3e0-a42: rgba(201, 211, 224, 0.42);
    --color-sky-d4deea: #d4deea;
    --color-sky-a8b6c9-a14: rgba(168, 182, 201, 0.14);
    --color-indigo-bc99ff-a52: rgba(188, 153, 255, 0.52);
    --color-indigo-ddccff: #ddccff;
    --color-indigo-ab82f3-a20: rgba(171, 130, 243, 0.2);
    --color-teal-70d7cd-a52: rgba(112, 215, 205, 0.52);
    --color-teal-bbf1ec: #bbf1ec;
    --color-teal-47b8ad-a20: rgba(71, 184, 173, 0.2);
    --color-red-eb667a-a56: rgba(235, 102, 122, 0.56);
    --color-red-ffc4ce: #ffc4ce;
    --color-red-c9485a-a20: rgba(201, 72, 90, 0.2);
    --color-red-f8a996-a58: rgba(248, 169, 150, 0.58);
    --color-red-ffd3c8: #ffd3c8;
    --color-red-e0836e-a20: rgba(224, 131, 110, 0.2);
    --color-sky-d7e9fb: #d7e9fb;
    --color-cyan-9dd6f5: #9dd6f5;
    --color-white-ffffff-a14: rgba(255, 255, 255, 0.14);
    --color-green-34c759-a45: rgba(52, 199, 89, 0.45);
    --color-green-99e7b1: #99e7b1;
    --color-amber-ffbc54-a46: rgba(255, 188, 84, 0.46);
    --color-amber-ffd89b: #ffd89b;
    --color-red-ff5c70-a46: rgba(255, 92, 112, 0.46);
    --color-red-ffb1bd: #ffb1bd;
    --color-white-ffffff-a10: rgba(255, 255, 255, 0.1);
    --color-sky-070d14-a60: rgba(7, 13, 20, 0.6);
    --color-amber-ffb657: #ffb657;
    --color-sky-d3e3f2: #d3e3f2;
    --color-sky-101b25-a88: rgba(16, 27, 37, 0.88);
    --color-sky-0b131b-a94: rgba(11, 19, 27, 0.94);
    --color-black-000000-a36: rgba(0, 0, 0, 0.36);
    --color-sky-f0f6ff: #f0f6ff;
    --color-sky-080d14-a72: rgba(8, 13, 20, 0.72);
    --color-sky-0b121b-a72: rgba(11, 18, 27, 0.72);
    --color-sky-091017-a80: rgba(9, 16, 23, 0.8);
    --color-sky-0d151f-a80: rgba(13, 21, 31, 0.8);
    --color-green-34c759-a20: rgba(52, 199, 89, 0.2);
    --color-red-ff5c70-a22: rgba(255, 92, 112, 0.22);
    --color-sky-f5f9ff: #f5f9ff;
    --color-sky-dceefe: #dceefe;
    --color-sky-0a1016-a85: rgba(10, 16, 22, 0.85);
    --color-sky-0a1017-a86: rgba(10, 16, 23, 0.86);
    --color-sky-0d141d-a86: rgba(13, 20, 29, 0.86);
    --color-sky-e8f1fa: #e8f1fa;
    --color-sky-c7d8ea: #c7d8ea;
    --color-cyan-9ccff2: #9ccff2;
    --color-sky-c7d8e8: #c7d8e8;
    --color-white-ffffff-a03: rgba(255, 255, 255, 0.03);
    --color-sky-dbecfb: #dbecfb;
    --color-cyan-6bb8e3-a30: rgba(107, 184, 227, 0.3);
    --color-cyan-6bb8e3-a08: rgba(107, 184, 227, 0.08);
    --color-cyan-8ab4d0: #8ab4d0;
    --color-cyan-6bb8e3-a18: rgba(107, 184, 227, 0.18);
    --color-cyan-bde5ff: #bde5ff;
    --color-cyan-6bb8e3-a25: rgba(107, 184, 227, 0.25);
    --color-cyan-6bb8e3-a60: rgba(107, 184, 227, 0.6);
    --color-sky-070d13-a86: rgba(7, 13, 19, 0.86);
    --color-sky-0c1219-a72: rgba(12, 18, 25, 0.72);
    --color-green-34c759-a18: rgba(52, 199, 89, 0.18);
    --color-red-ff5c70-a18: rgba(255, 92, 112, 0.18);
    --color-sky-7d8b99: #7d8b99;
    --color-sky-7d8b99-a18: rgba(125, 139, 153, 0.18);
    --color-white-ffffff-a26: rgba(255, 255, 255, 0.26);
    --color-sky-d6e3ef: #d6e3ef;
    --color-white-ffffff-a05: rgba(255, 255, 255, 0.05);
    --color-sky-a8b9cb: #a8b9cb;
    --color-sky-b1c3d4: #b1c3d4;
    --color-sky-b2c4d6: #b2c4d6;
    --color-amber-ffba5c-a70: rgba(255, 186, 92, 0.7);
    --color-amber-ffbd67-a30: rgba(255, 189, 103, 0.3);
    --color-orange-ff8e36-a30: rgba(255, 142, 54, 0.3);
    --color-amber-ffe5ba: #ffe5ba;
    --color-white-ffffff-a18: rgba(255, 255, 255, 0.18);
    --color-sky-dbe8f5: #dbe8f5;
    --color-amber-f0c765: #f0c765;
    --color-cyan-052030: #052030;
    --color-black-000000-a30: rgba(0, 0, 0, 0.3);
    --color-sky-bdd6ea: #bdd6ea;
    --color-sky-ecf5ff: #ecf5ff;
    --color-sky-e8f4ff: #e8f4ff;
    --color-cyan-e9f6ff: #e9f6ff;
    --color-cyan-c6e8fc: #c6e8fc;
    --color-red-ff5360-a18: rgba(255, 83, 96, 0.18);
    --color-red-ff6672-a45: rgba(255, 102, 114, 0.45);
    --color-red-ffd2d8: #ffd2d8;
    --color-amber-ffd061-a18: rgba(255, 208, 97, 0.18);
    --color-amber-ffd061-a45: rgba(255, 208, 97, 0.45);
    --color-amber-ffe8b8: #ffe8b8;
    --color-cyan-6ab8e3-a16: rgba(106, 184, 227, 0.16);
    --color-cyan-6ab8e3-a50: rgba(106, 184, 227, 0.5);
    --color-cyan-d7efff: #d7efff;
    --color-black-000000: #000000;
    --color-white-ffffff-a04: rgba(255, 255, 255, 0.04);
    --color-sky-0a1016-a92: rgba(10, 16, 22, 0.92);
    --color-yellow-e8c547: #e8c547;
    --color-sky-0a1016-a95: rgba(10, 16, 22, 0.95);
    --color-sky-b8c4d4: #b8c4d4;
    --color-green-4caf50: #4caf50;
    --color-slate-666666: #666666;
}

[data-theme="light"] {
    /* Brand */
    --brand: #3A8BA5;
    --brand-rgb: 23, 133, 138;

    /* Backgrounds */
    --bg-0: #E8EAED;
    --bg-1: #F0F2F5;
    --surface-0: #FFFFFF;
    --surface-1: #F5F6F8;
    --surface-2: #ECEEF1;

    /* Text */
    --text: #222222;
    --text-primary-rgb: 34, 34, 34;
    --text-dim: #555555;

    /* Positive / Negative */
    --positive: #00897B;
    --negative: #E53935;

    /* Lines */
    --line-soft: rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.12);

    /* White-based → invert to dark-based */
    --color-white-ffffff-a06: rgba(0, 0, 0, 0.04);
    --color-white-ffffff-a02: rgba(0, 0, 0, 0.02);
    --color-white-ffffff-a12: rgba(0, 0, 0, 0.08);
    --color-white-ffffff-a11: rgba(0, 0, 0, 0.07);
    --color-white-ffffff-a10: rgba(0, 0, 0, 0.06);
    --color-white-ffffff-a14: rgba(0, 0, 0, 0.09);
    --color-white-ffffff-a18: rgba(0, 0, 0, 0.12);
    --color-white-ffffff-a26: rgba(0, 0, 0, 0.18);
    --color-white-ffffff-a05: rgba(0, 0, 0, 0.03);
    --color-white-ffffff-a04: rgba(0, 0, 0, 0.03);
    --color-white-ffffff-a03: rgba(0, 0, 0, 0.02);

    /* Dark sky backgrounds → light equivalents */
    --color-sky-070c12: #E8EAED;
    --color-sky-05080d: #F0F2F5;
    --color-sky-090f16-a96: rgba(240, 242, 245, 0.97);
    --color-sky-070b11-a93: rgba(240, 242, 245, 0.94);
    --color-sky-080d14-a76: rgba(245, 246, 248, 0.92);
    --color-sky-0b1118-a78: rgba(245, 246, 248, 0.92);
    --color-sky-050b11-a86: rgba(245, 246, 248, 0.94);
    --color-sky-070d14-a62: rgba(245, 246, 248, 0.88);
    --color-sky-070d14-a60: rgba(245, 246, 248, 0.86);
    --color-sky-080d14-a72: rgba(245, 246, 248, 0.90);
    --color-sky-0b121b-a72: rgba(245, 246, 248, 0.90);
    --color-sky-091017-a80: rgba(245, 246, 248, 0.92);
    --color-sky-0d151f-a80: rgba(245, 246, 248, 0.92);
    --color-sky-0a1016-a85: rgba(245, 246, 248, 0.94);
    --color-sky-0a1017-a86: rgba(245, 246, 248, 0.94);
    --color-sky-0d141d-a86: rgba(245, 246, 248, 0.94);
    --color-sky-101b25-a88: rgba(245, 246, 248, 0.94);
    --color-sky-0b131b-a94: rgba(245, 246, 248, 0.97);
    --color-sky-0a1016-a92: rgba(245, 246, 248, 0.96);
    --color-sky-0a1016-a95: rgba(245, 246, 248, 0.97);
    --color-sky-0c1219-a72: rgba(245, 246, 248, 0.90);
    --color-sky-070d13-a86: rgba(245, 246, 248, 0.94);

    /* Light sky text colors → dark text on light bg */
    --color-sky-f4f8fd: #1a2332;
    --color-sky-dce4f0: #333333;
    --color-sky-e7eff8: #333333;
    --color-sky-eaf4ff: #222222;
    --color-sky-f2f8ff: #1a2332;
    --color-sky-c4d4e4: #444444;
    --color-sky-d7e5f3: #444444;
    --color-sky-eaf6ff: #222222;
    --color-sky-d5e5f3: #444444;
    --color-sky-cdeaff: #3A4A5A;
    --color-sky-eaf5ff: #222222;
    --color-sky-c4d5e5: #444444;
    --color-sky-d4deea: #444444;
    --color-sky-d7e9fb: #3A4A5A;
    --color-sky-f0f6ff: #1a2332;
    --color-sky-f5f9ff: #1a2332;
    --color-sky-dceefe: #334155;
    --color-sky-e8f1fa: #334155;
    --color-sky-c7d8ea: #555555;
    --color-sky-c7d8e8: #555555;
    --color-sky-dbecfb: #334155;
    --color-sky-bdd6ea: #666666;
    --color-sky-ecf5ff: #334155;
    --color-sky-e8f4ff: #334155;
    --color-sky-d3e3f2: #555555;
    --color-sky-d6e3ef: #555555;
    --color-sky-dbe8f5: #E8EAED;
    --color-sky-a8b6c9: #666666;
    --color-sky-b1c3d4: #666666;
    --color-sky-b2c4d6: #666666;
    --color-sky-b8c4d4: #666666;
    --color-sky-7d8b99: #777777;
    --color-sky-7d8b99-a18: rgba(100, 100, 100, 0.18);
    --color-sky-a8b9cb: #666666;
    --color-slate-72818f: #72818f;

    /* Black → light overlays */
    --color-black-000000-a40: rgba(0, 0, 0, 0.25);
    --color-black-000000-a36: rgba(0, 0, 0, 0.22);
    --color-black-000000-a30: rgba(0, 0, 0, 0.18);
    --color-black-000000: #000000;

    /* Cyan brand → teal */
    --color-cyan-6bb8e3-a45: rgba(58, 139, 165, 0.45);
    --color-cyan-6bb8e3-a30: rgba(58, 139, 165, 0.30);
    --color-cyan-6bb8e3-a08: rgba(58, 139, 165, 0.08);
    --color-cyan-6bb8e3-a18: rgba(58, 139, 165, 0.18);
    --color-cyan-6bb8e3-a25: rgba(58, 139, 165, 0.25);
    --color-cyan-6bb8e3-a60: rgba(58, 139, 165, 0.60);
    --color-cyan-6ab8e3-a16: rgba(58, 139, 165, 0.16);
    --color-cyan-6ab8e3-a50: rgba(58, 139, 165, 0.50);
    --color-cyan-9dd6f5: #3A8BA5;
    --color-cyan-9ccff2: #3A8BA5;
    --color-cyan-052030: #E8EAED;
    --color-cyan-e9f6ff: #EBF5FA;
    --color-cyan-c6e8fc: #C2DCE9;
    --color-cyan-d7efff: #D0E8F0;
    --color-cyan-bde5ff: #3A8BA5;
    --color-cyan-8ab4d0: #3A8BA5;
}




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

html {
    scroll-behavior: smooth;
}

html {
    overflow-x: hidden;
}

body {
    font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
    color: var(--text);
    line-height: 1.45;
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 8% -8%, rgba(var(--brand-rgb), 0.15), transparent 40%),
        radial-gradient(circle at 88% -12%, var(--color-white-ffffff-a06), transparent 34%),
        linear-gradient(180deg, var(--color-sky-070c12) 0%, var(--bg-0) 52%, var(--color-sky-070c12) 100%);
}

.news-ticker {
    background: var(--color-sky-05080d);
    border-bottom: 1px solid var(--line-soft);
    overflow: hidden;
    white-space: nowrap;
    height: 2rem;
    line-height: 2rem;
}

.news-ticker-track {
    display: inline-flex;
    align-items: center;
    gap: 2.5rem;
    padding: 0 1rem;
    height: 2rem;
    animation: ticker-scroll 90s linear infinite;
}

.news-ticker:hover .news-ticker-track {
    animation-play-state: paused;
}

.news-ticker-item,
.news-ticker-item:link,
.news-ticker-item:visited,
.news-ticker-item:active {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-dim);
    text-decoration: none !important;
    transition: color 0.2s;
    flex-shrink: 0;
}

.news-ticker-item:hover {
    color: var(--color-sky-f4f8fd);
    text-decoration: none !important;
}

.news-ticker-item.is-disabled {
    opacity: 0.55;
    pointer-events: none;
    cursor: default;
}

.news-ticker-sentiment {
    font-size: 0.5rem;
}

.news-ticker-sentiment.bullish {
    color: var(--positive);
}

.news-ticker-sentiment.bearish {
    color: var(--negative);
}

.news-ticker-sentiment.neutral {
    color: var(--text-dim);
}

.news-ticker-source {
    color: rgba(var(--brand-rgb), 0.85);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.65rem;
    font-weight: 600;
}

.news-ticker-title {
    color: var(--color-sky-dce4f0);
    max-width: 500px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-ticker-time {
    color: var(--text-dim);
    font-size: 0.6rem;
    opacity: 0.7;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    width: 100%;
    border-bottom: 1px solid var(--line-soft);
    background: linear-gradient(180deg, var(--color-sky-090f16-a96), var(--color-sky-070b11-a93));
    backdrop-filter: blur(10px);
}

.topbar-gradient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(var(--brand-rgb), 0.18) 0%, rgba(var(--brand-rgb), 0.03) 42%, var(--color-white-ffffff-a02) 100%);
    opacity: 0.55;
}

.header-inner {
    width: min(1320px, calc(100% - 2.5rem));
    margin: 0 auto;
    position: relative;
}

.header-inner {
    padding: 0.95rem 0 0.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
}

.brand-block {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-wordmark {
    width: 240px;
    height: auto;
}

.tagline {
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    font-weight: 500;
}

.tagline-link {
    color: var(--accent);
    text-decoration: none;
    opacity: 0.8;
}
.tagline-link:hover {
    opacity: 1;
}

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 0.32rem;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.topbar-nav::-webkit-scrollbar {
    display: none;
}

.topbar-link {
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.34rem 0.62rem;
    min-height: 1.9rem;
    color: var(--text-dim);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.67rem;
    font-weight: 700;
    white-space: nowrap;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.topbar-link:hover {
    color: var(--color-sky-e7eff8);
    border-color: rgba(var(--brand-rgb), 0.46);
    background: rgba(var(--brand-rgb), 0.13);
}

.topbar-link.active {
    color: var(--color-sky-eaf4ff);
    border-color: rgba(var(--brand-rgb), 0.62);
    background: rgba(var(--brand-rgb), 0.2);
}

/* Zulip realm nav links — subtle accent to distinguish from regular nav */
.topbar-link--zulip {
    opacity: 0.75;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
}
.topbar-link--zulip::before {
    content: "⬡ ";
    font-size: 0.6rem;
    vertical-align: middle;
    opacity: 0.6;
}
.topbar-link--zulip:hover {
    opacity: 1;
}
.topbar-link--wip {
    opacity: 0.35;
    cursor: not-allowed;
    text-decoration: none;
    position: relative;
}
/* Masquer le ⬡ pour les boutons WIP */
.topbar-link--wip::before {
    content: none;
}
/* Tooltip WIP */
.topbar-link--wip::after {
    content: "Coming soon";
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a1f2e;
    color: #8899aa;
    font-size: 0.65rem;
    white-space: nowrap;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(107,184,227,0.2);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 10;
}
.topbar-link--wip:hover {
    opacity: 0.5;
}
.topbar-link--wip:hover::after {
    opacity: 1;
}

.header-meta {
    text-align: right;
    display: grid;
    gap: 0.32rem;
}

.header-meta:empty {
    display: none;
}

.header-updated {
    font-size: 0.79rem;
    color: var(--text-dim);
    display: inline-flex;
    align-items: center;
    justify-self: end;
    gap: 0.42rem;
}

.theme-toggle {
    background: none;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.3rem 0.5rem;
    color: var(--text);
    transition: border-color 0.2s;
    font-style: normal;
}
/* Icône pilotée par CSS — évite le flash JS au chargement */
.theme-toggle::before { content: "🌙"; }
[data-theme="light"] .theme-toggle::before { content: "☀️"; }

.theme-toggle:hover {
    border-color: var(--brand);
}

[data-theme="light"] .topbar {
    background: rgba(240, 242, 245, 0.97);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .topbar-gradient {
    opacity: 0.1;
}

[data-theme="light"] .topbar-link {
    color: #333333;
}

[data-theme="light"] .topbar-link:hover,
[data-theme="light"] .topbar-link.active {
    color: #17858A;
    background: rgba(23, 133, 138, 0.1);
}

.refresh-indicator {
    opacity: 0;
    transform: translateY(-1px);
    color: rgba(var(--brand-rgb), 0.92);
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.refresh-indicator.visible {
    opacity: 1;
    transform: translateY(0);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 0 rgba(var(--brand-rgb), 0.45);
    animation: pulse 2.2s ease-out infinite;
}

.exchange-status-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.34rem;
    margin-top: 0.15rem;
}

.exchange-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.exchange-dot.open {
    background: var(--positive);
    box-shadow: 0 0 0 3px var(--color-green-34c759-a15);
}

.exchange-dot.closed {
    background: var(--color-slate-72818f);
}

.dashboard-shell {
    width: min(1320px, calc(100% - 2.5rem));
    margin: 1.35rem auto 1.35rem;
    display: grid;
    gap: 1.05rem;
}

.corporate-shell {
    width: min(1320px, calc(100% - 2.5rem));
    margin: 1.45rem auto 1.7rem;
    display: grid;
    gap: 0.95rem;
}

.corporate-hero {
    padding: 1.35rem;
}

.page-kicker {
    font-size: 0.67rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(var(--brand-rgb), 0.92);
    font-weight: 700;
    margin-bottom: 0.62rem;
}

.corporate-hero h1,
.legal-title {
    font-size: clamp(1.3rem, 2.7vw, 1.8rem);
    line-height: 1.34;
    letter-spacing: 0.01em;
    color: var(--color-sky-f2f8ff);
}

.corporate-section h2 {
    margin-bottom: 0.56rem;
}

.corporate-text {
    color: var(--color-sky-c4d4e4);
    font-size: 0.93rem;
    line-height: 1.7;
}

.corporate-list {
    color: var(--color-sky-c4d4e4);
    font-size: 0.93rem;
    line-height: 1.7;
    padding-left: 1.4rem;
    margin-top: 0.3rem;
}

.corporate-list li {
    margin-bottom: 0.25rem;
}

.platform-hero-img {
    max-width: 900px;
    width: 100%;
    margin: 2rem auto;
    display: block;
    border-radius: var(--radius);
    border: 1px solid var(--line-soft);
    box-shadow: 0 8px 32px var(--color-black-000000-a40);
}

.lbma-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 0.76rem;
}

.lbma-list {
    list-style: none;
    display: grid;
    gap: 0.24rem;
    margin: 0;
    padding: 0;
}

.lbma-list li {
    color: var(--color-sky-d7e5f3);
    font-size: 0.84rem;
    line-height: 1.42;
    padding: 0.18rem 0;
}

.corporate-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.78rem;
    padding: 0.52rem 0.88rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(var(--brand-rgb), 0.65);
    background: rgba(var(--brand-rgb), 0.2);
    color: var(--color-sky-eaf6ff);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.corporate-cta-btn:hover {
    border-color: rgba(var(--brand-rgb), 0.88);
    background: rgba(var(--brand-rgb), 0.32);
    color: var(--color-white-ffffff);
}

.corporate-cta-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(var(--brand-rgb), 0.24), 0 0 0 4px var(--color-sky-050b11-a86);
}

.contact-info-block + .contact-info-block {
    margin-top: 0.95rem;
    padding-top: 0.95rem;
    border-top: 1px solid var(--line-soft);
}

.contact-info-block h2 {
    margin-bottom: 0.42rem;
}

.contact-info-block .contact-value + .contact-value {
    margin-top: 0.26rem;
}

.member-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 0.56rem;
}

.member-pill {
    border: 1px solid var(--color-white-ffffff-a12);
    background: linear-gradient(180deg, var(--color-sky-080d14-a76), var(--color-sky-0b1118-a78));
    border-radius: var(--radius-md);
    color: var(--color-sky-d7e5f3);
    font-size: 0.8rem;
    line-height: 1.4;
    padding: 0.58rem 0.66rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 0.7rem;
}

.contact-card {
    border: 1px solid rgba(var(--brand-rgb), 0.22);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, var(--color-sky-080d14-a76), var(--color-sky-0b1118-a78));
    padding: 0.82rem;
}

.contact-card h2 {
    margin-bottom: 0.42rem;
}

.contact-value {
    color: var(--color-sky-d5e5f3);
    font-size: 0.89rem;
    line-height: 1.55;
}

.contact-link {
    color: var(--color-sky-cdeaff);
    text-decoration: none;
    border-bottom: 1px solid rgba(var(--brand-rgb), 0.4);
}

.contact-link:hover {
    color: var(--color-sky-eaf5ff);
    border-bottom-color: rgba(var(--brand-rgb), 0.75);
}

.legal-content {
    color: var(--color-sky-c4d5e5);
    font-size: 0.92rem;
    line-height: 1.72;
    max-width: 88ch;
    margin-top: 0.4rem;
}

.insight-strip {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 1rem;
    align-items: start;
}

.macro-events-list,
.source-health-list {
    display: grid;
    gap: 0.42rem;
}

.macro-region-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
    margin-bottom: 0.65rem;
}

.macro-event-card {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.58rem 0.62rem;
    border-radius: 10px;
    border: 1px solid var(--color-white-ffffff-a11);
    background: var(--color-sky-070d14-a62);
}

.macro-event-card.us {
    border-color: rgba(var(--brand-rgb), 0.3);
}

.macro-event-card.eu {
    border-color: var(--color-indigo-b28dff-a44);
}

.macro-event-card.uk {
    border-color: var(--color-teal-5acdc2-a44);
}

.macro-event-card.cn {
    border-color: var(--color-red-e0586a-a50);
}

.macro-event-card.jp {
    border-color: var(--color-red-f39680-a50);
}

.macro-event-card.au,
.macro-event-card.in,
.macro-event-card.ch,
.macro-event-card.za {
    border-color: var(--color-sky-c6d0de-a35);
}

.macro-event-card.us.fomc {
    border-color: var(--color-amber-ffbc54-a35);
}

.macro-event-card.us.cpi {
    border-color: var(--color-cyan-6bb8e3-a45);
}

.macro-event-card.us.nfp {
    border-color: var(--color-green-84d698-a40);
}

.macro-event-badges {
    display: grid;
    gap: 0.3rem;
    min-width: 56px;
}

.macro-event-code,
.macro-event-region {
    min-width: 44px;
    text-align: center;
    border-radius: 999px;
    font-size: 0.64rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.18rem 0.32rem;
}

.macro-event-code {
    border: 1px solid rgba(var(--brand-rgb), 0.45);
    color: rgba(var(--brand-rgb), 0.95);
    background: rgba(var(--brand-rgb), 0.14);
}

.macro-event-region {
    border: 1px solid var(--color-sky-c9d3e0-a42);
    color: var(--color-sky-d4deea);
    background: var(--color-sky-a8b6c9-a14);
}

.macro-event-card.eu .macro-event-region {
    border-color: var(--color-indigo-bc99ff-a52);
    color: var(--color-indigo-ddccff);
    background: var(--color-indigo-ab82f3-a20);
}

.macro-event-card.uk .macro-event-region {
    border-color: var(--color-teal-70d7cd-a52);
    color: var(--color-teal-bbf1ec);
    background: var(--color-teal-47b8ad-a20);
}

.macro-event-card.cn .macro-event-region {
    border-color: var(--color-red-eb667a-a56);
    color: var(--color-red-ffc4ce);
    background: var(--color-red-c9485a-a20);
}

.macro-event-card.jp .macro-event-region {
    border-color: var(--color-red-f8a996-a58);
    color: var(--color-red-ffd3c8);
    background: var(--color-red-e0836e-a20);
}

.macro-event-title {
    color: var(--color-sky-d7e9fb);
    font-size: 0.82rem;
    overflow-wrap: anywhere;
}

.macro-event-body {
    min-width: 0;
}

.macro-event-meta {
    margin-top: 0.14rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    color: var(--text-dim);
    font-size: 0.7rem;
}

.macro-highlight {
    color: var(--color-cyan-9dd6f5);
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.63rem;
}

.health-summary-row {
    display: flex;
    align-items: center;
    gap: 0.42rem;
    flex-wrap: wrap;
    margin-bottom: 0.52rem;
}

.health-total {
    border-radius: 999px;
    padding: 0.15rem 0.48rem;
    border: 1px solid var(--color-white-ffffff-a14);
    font-size: 0.63rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.health-total.healthy {
    border-color: var(--color-green-34c759-a45);
    color: var(--color-green-99e7b1);
}

.health-total.watch {
    border-color: var(--color-amber-ffbc54-a46);
    color: var(--color-amber-ffd89b);
}

.health-total.degraded {
    border-color: var(--color-red-ff5c70-a46);
    color: var(--color-red-ffb1bd);
}

.health-total.quarantined {
    border-color: var(--color-red-ff5c70-a46);
    color: var(--color-red-ffb1bd);
}

.source-health-item {
    display: flex;
    align-items: center;
    gap: 0.52rem;
    padding: 0.45rem 0.52rem;
    border-radius: 10px;
    border: 1px solid var(--color-white-ffffff-a10);
    background: var(--color-sky-070d14-a60);
}

.source-health-text {
    min-width: 0;
}

.source-health-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.source-health-dot.healthy {
    background: var(--positive);
}

.source-health-dot.watch {
    background: var(--color-amber-ffb657);
}

.source-health-dot.degraded {
    background: var(--negative);
}

.source-health-dot.quarantined {
    background: var(--negative);
}

.source-health-name {
    color: var(--color-sky-d3e3f2);
    font-size: 0.74rem;
    overflow-wrap: anywhere;
}

.source-health-meta {
    margin-top: 0.12rem;
    color: var(--text-dim);
    font-size: 0.67rem;
    overflow-wrap: anywhere;
}

.panel {
    background: linear-gradient(180deg, var(--color-sky-101b25-a88), var(--color-sky-0b131b-a94));
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    padding: 1.15rem;
    box-shadow: var(--shadow);
    transition: border-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}

.panel:hover {
    border-color: rgba(var(--brand-rgb), 0.32);
    box-shadow: 0 28px 56px var(--color-black-000000-a36);
}

.section-heading {
    margin-bottom: 0.85rem;
}

h2 {
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    font-weight: 700;
    color: var(--color-sky-f0f6ff);
}

.section-note {
    margin-top: 0.32rem;
    font-size: 0.79rem;
    color: var(--text-dim);
    overflow-wrap: anywhere;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(212px, 100%), 1fr));
    gap: 0.74rem;
}

.price-card {
    border: 1px solid var(--line-soft);
    background: linear-gradient(180deg, var(--color-sky-080d14-a72), var(--color-sky-0b121b-a72));
    border-radius: var(--radius-md);
    padding: 0.9rem;
    min-width: 0;
    transition: border-color 0.22s ease, background-color 0.22s ease, transform 0.22s ease;
}

.price-card:hover {
    border-color: rgba(var(--brand-rgb), 0.46);
    transform: translateY(-1px);
    background: linear-gradient(180deg, var(--color-sky-091017-a80), var(--color-sky-0d151f-a80));
}

.price-card.up {
    box-shadow: inset 0 0 0 1px var(--color-green-34c759-a20);
}

.price-card.down {
    box-shadow: inset 0 0 0 1px var(--color-red-ff5c70-a22);
}

.price-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
}

.price-head-copy {
    min-width: 0;
}

.metal-sparkline {
    width: 68px;
    height: 22px;
    flex: 0 0 68px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    opacity: 0.92;
}

.metal-sparkline svg {
    display: block;
    width: 68px;
    height: 22px;
}

.metal-sparkline.is-empty {
    opacity: 0.2;
}

.metal-name {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    font-weight: 600;
}

.metal-symbol {
    font-size: 0.67rem;
    color: rgba(var(--brand-rgb), 0.95);
    font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.metal-price {
    margin-top: 0.44rem;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 1.34rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--color-sky-f5f9ff);
}

.metal-change {
    margin-top: 0.25rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dim);
}

.price-card.up .metal-change {
    color: var(--positive);
}

.price-card.down .metal-change {
    color: var(--negative);
}

.metal-change.muted,
.muted {
    color: var(--text-dim);
}

.price-vol {
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-left: 0.4rem;
}

.updated-at {
    margin-top: 0.66rem;
    font-size: 0.76rem;
    color: var(--text-dim);
    letter-spacing: 0.03em;
}

.news-filter-btn:focus-visible {
    outline: none;
    border-color: rgba(var(--brand-rgb), 0.72);
    box-shadow: 0 0 0 2px rgba(var(--brand-rgb), 0.2);
}

.brand:focus-visible,
.news-ticker-item:focus-visible,
.topbar-link:focus-visible,
.trending-card:focus-visible,
.news-item-main:focus-visible,
.news-original-link:focus-visible,
.dicor-tab:focus-visible,
.scroll-top-btn:focus-visible,
.footer-link:focus-visible,
.contact-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(var(--brand-rgb), 0.24), 0 0 0 4px var(--color-sky-050b11-a86);
    border-color: rgba(var(--brand-rgb), 0.72);
}

.news-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
    margin-bottom: 0.65rem;
}

.trending-now-block {
    margin-bottom: 0.82rem;
}

.trending-now-title {
    margin-bottom: 0.5rem;
    font-size: 0.74rem;
    color: var(--color-sky-dceefe);
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.trending-section {
    display: flex;
    gap: 0.58rem;
    overflow-x: auto;
    padding-bottom: 0.22rem;
    scroll-snap-type: x proximity;
}

.trending-section::-webkit-scrollbar {
    height: 8px;
}

.trending-section::-webkit-scrollbar-track {
    background: var(--color-sky-0a1016-a85);
}

.trending-section::-webkit-scrollbar-thumb {
    background: rgba(var(--brand-rgb), 0.4);
    border-radius: 7px;
}

.trending-card {
    flex: 0 0 230px;
    scroll-snap-align: start;
    border: 1px solid rgba(var(--brand-rgb), 0.24);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, var(--color-sky-080d14-a76), var(--color-sky-0b1118-a78));
    padding: 0.66rem;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.trending-card:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--brand-rgb), 0.6);
    background: linear-gradient(180deg, var(--color-sky-0a1017-a86), var(--color-sky-0d141d-a86));
}

.trending-card-title {
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--color-sky-e8f1fa);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trending-card-meta {
    margin-top: 0.45rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
}

.trending-source {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--color-sky-c7d8ea);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.trending-score {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.7rem;
    color: var(--color-cyan-9ccff2);
}

.trending-score-bar {
    margin-top: 0.38rem;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: var(--line-soft);
    overflow: hidden;
}

.trending-score-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(var(--brand-rgb), 0.42), rgba(var(--brand-rgb), 0.88));
}

.trending-empty {
    min-width: 100%;
}

.news-filter-btn {
    border: 1px solid rgba(var(--brand-rgb), 0.32);
    border-radius: 999px;
    padding: 0.32rem 0.68rem;
    min-height: 2rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: var(--color-sky-c7d8e8);
    background: var(--color-white-ffffff-a03);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.news-filter-btn:hover,
.news-filter-btn.active {
    color: var(--color-sky-dbecfb);
    border-color: rgba(var(--brand-rgb), 0.65);
    background: rgba(var(--brand-rgb), 0.2);
}

.sort-toggle {
    display: flex;
    gap: 0.4rem;
    margin: 0.5rem 0;
    justify-content: flex-end;
}

.sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--color-cyan-6bb8e3-a30);
    border-radius: 999px;
    background: var(--color-cyan-6bb8e3-a08);
    color: var(--color-cyan-8ab4d0);
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.sort-btn:hover {
    background: var(--color-cyan-6bb8e3-a18);
    color: var(--color-cyan-bde5ff);
}

.sort-btn.active {
    background: var(--color-cyan-6bb8e3-a25);
    color: var(--color-white-ffffff);
    border-color: var(--color-cyan-6bb8e3-a60);
}

.news-feed {
    padding: 0 0.5rem;
    border: 1px solid rgba(var(--brand-rgb), 0.22);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, var(--color-sky-080d14-a76), var(--color-sky-0b1118-a78));
    overflow: hidden;
}

.load-more-btn {
    display: block;
    width: calc(100% + 1rem);
    margin: 0.5rem -0.5rem -0.5rem;
    padding: 0.7rem;
    background: none;
    border: none;
    border-top: 1px solid rgba(var(--brand-rgb), 0.22);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    color: var(--brand);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background-color 0.2s ease;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.6rem;
}

.load-more-btn:hover {
    background: rgba(var(--brand-rgb), 0.07);
}

.load-more-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.news-item {
    position: relative;
    border-bottom: 1px solid var(--color-white-ffffff-a06);
    transition: background-color 0.22s ease, border-color 0.22s ease;
}

.news-item:hover {
    border-color: rgba(var(--brand-rgb), 0.28);
}

.news-item-main {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    text-decoration: none;
    color: inherit;
    padding: 0.9rem 0.9rem 0.84rem;
    padding-right: 2.8rem;
    transition: background-color 0.22s ease;
}

.news-item-copy {
    min-width: 0;
    flex: 1;
}

.news-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.news-item:hover .news-item-main {
    background: rgba(var(--brand-rgb), 0.1);
}

.news-item:last-child {
    border-bottom: 0;
}

.news-original-link {
    position: absolute;
    top: 0.6rem;
    right: 0.64rem;
    z-index: 2;
    width: 1.58rem;
    height: 1.58rem;
    border-radius: 50%;
    border: 1px solid rgba(var(--brand-rgb), 0.38);
    color: rgba(var(--brand-rgb), 0.95);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    background: var(--color-sky-070d13-a86);
    transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.news-original-link:hover {
    border-color: rgba(var(--brand-rgb), 0.78);
    background: rgba(var(--brand-rgb), 0.2);
    transform: translateY(-1px);
}

.news-original-link-disabled {
    border-color: var(--color-white-ffffff-a14);
    color: var(--text-dim);
    background: var(--color-sky-0c1219-a72);
    pointer-events: none;
    cursor: not-allowed;
}

.news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    padding-right: 1rem;
}

.news-source {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    border: 1px solid rgba(var(--brand-rgb), 0.45);
    background: rgba(var(--brand-rgb), 0.12);
    color: rgba(var(--brand-rgb), 0.96);
    border-radius: 999px;
    padding: 0.18rem 0.46rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.68rem;
    font-weight: 700;
    max-width: min(360px, 100%);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sentiment-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sentiment-dot.bullish {
    background: var(--positive);
    box-shadow: 0 0 0 3px var(--color-green-34c759-a18);
}

.sentiment-dot.bearish {
    background: var(--negative);
    box-shadow: 0 0 0 3px var(--color-red-ff5c70-a18);
}

.sentiment-dot.neutral {
    background: var(--color-sky-7d8b99);
    box-shadow: 0 0 0 3px var(--color-sky-7d8b99-a18);
}

.news-time-row {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.source-tier-badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--color-white-ffffff-a26);
    border-radius: 999px;
    color: var(--color-sky-d6e3ef);
    background: var(--color-white-ffffff-a05);
    font-size: 0.63rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 0.18rem 0.42rem;
}

.cluster-badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(var(--brand-rgb), 0.45);
    border-radius: 999px;
    color: var(--color-cyan-bde5ff);
    background: rgba(var(--brand-rgb), 0.14);
    font-size: 0.64rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.16rem 0.42rem;
}

.news-freshness-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.64rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.16rem 0.46rem;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.news-freshness-badge--breaking {
    border: 1px solid rgba(255, 92, 112, 0.55);
    background: linear-gradient(180deg, rgba(255, 92, 112, 0.26), rgba(192, 57, 43, 0.3));
    color: #ffd7dd;
}

.news-freshness-badge--new {
    border: 1px solid rgba(52, 199, 89, 0.5);
    background: linear-gradient(180deg, rgba(52, 199, 89, 0.2), rgba(39, 174, 96, 0.24));
    color: #d8ffe4;
}

.news-time {
    font-size: 0.74rem;
    color: var(--text-dim);
    white-space: nowrap;
}

.reading-time {
    font-size: 0.74rem;
    color: var(--color-sky-a8b9cb);
    white-space: nowrap;
}

.news-title {
    margin-top: 0.42rem;
    font-size: 0.89rem;
    font-weight: 500;
    line-height: 1.36;
    color: var(--color-sky-e7eff8);
}

.summary-preview {
    margin-top: 0.34rem;
    color: var(--color-sky-b1c3d4);
    font-size: 0.85rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cluster-sources {
    margin-top: 0.35rem;
    color: var(--color-sky-b2c4d6);
    font-size: 0.74rem;
}

.trending-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid var(--color-amber-ffba5c-a70);
    background: linear-gradient(180deg, var(--color-amber-ffbd67-a30), var(--color-orange-ff8e36-a30));
    color: var(--color-amber-ffe5ba);
    font-size: 0.64rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.16rem 0.46rem;
}

.news-tags {
    margin-top: 0.42rem;
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.news-tag {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--color-white-ffffff-a18);
    color: var(--color-sky-dbe8f5);
    background: var(--color-white-ffffff-a03);
    border-radius: 999px;
    padding: 0.14rem 0.4rem;
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.star-count {
    margin-top: 0.46rem;
    color: var(--color-amber-f0c765);
    font-size: 0.74rem;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.no-data {
    padding: 1.4rem;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.84rem;
}

.no-matches-message {
    padding: 0.7rem 0.2rem 0.1rem;
    text-align: left;
}

.scroll-top-btn {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    border: 1px solid rgba(var(--brand-rgb), 0.45);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(var(--brand-rgb), 0.9), rgba(var(--brand-rgb), 0.68));
    color: var(--color-cyan-052030);
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.45rem 0.72rem;
    cursor: pointer;
    box-shadow: 0 14px 28px var(--color-black-000000-a30);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 45;
}

.scroll-top-btn.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.site-footer {
    width: min(1320px, calc(100% - 2.5rem));
    margin: 0 auto 1.7rem;
    border-top: 1px solid var(--line-soft);
    padding-top: 0.95rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    color: var(--text-dim);
    font-size: 0.78rem;
}

.footer-links {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.footer-link {
    color: var(--color-sky-bdd6ea);
    text-decoration: none;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-link:hover,
.footer-link.active {
    color: var(--color-sky-ecf5ff);
    border-bottom-color: rgba(var(--brand-rgb), 0.72);
}

.news-feed::-webkit-scrollbar {
    width: 8px;
}

.news-feed::-webkit-scrollbar-track {
    background: var(--color-sky-0a1016-a85);
}

.news-feed::-webkit-scrollbar-thumb {
    background: rgba(var(--brand-rgb), 0.4);
    border-radius: 7px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--brand-rgb), 0.5);
    }
    75% {
        box-shadow: 0 0 0 7px rgba(var(--brand-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--brand-rgb), 0);
    }
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .news-ticker-track,
    .status-dot,
    .spinner,
    .loading-spinner {
        animation: none !important;
    }

    .scroll-top-btn,
    .panel,
    .price-card,
    .trending-card,
    .news-item,
    .news-item-main,
    .news-original-link,
    .news-filter-btn,
    .theme-filter-btn,
    .refresh-indicator {
        transition: none !important;
    }
}

@media (max-width: 1180px) {
    .trending-card {
        flex-basis: 210px;
    }
}

@media (max-width: 1024px) {
    .header-inner,
    .dashboard-shell,
    .corporate-shell,
    .site-footer {
        width: calc(100% - 2rem);
    }

    .news-item-main {
        padding: 0.82rem 0.82rem 0.78rem;
    }
}

@media (max-width: 900px) {
    .insight-strip {
        grid-template-columns: 1fr;
    }

    .lbma-grid {
        grid-template-columns: 1fr;
        gap: 0.72rem;
    }

    .price-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.55rem;
    }

    .brand-row {
        width: 100%;
        align-items: flex-start;
    }

    .tagline-link {
    color: var(--accent);
    text-decoration: none;
    opacity: 0.8;
}
.tagline-link:hover {
    opacity: 1;
}

.topbar-nav {
        width: 100%;
        padding-bottom: 0.18rem;
    }

    .header-meta {
        text-align: left;
    }

    .header-updated {
        justify-self: start;
    }

    .exchange-status-row {
        justify-content: flex-start;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links {
        order: 3;
    }

    .trending-card {
        flex-basis: 240px;
    }
}

@media (max-width: 768px) {
    .news-filter-btn,
    .theme-filter-btn {
        font-size: 0.7rem;
    }

    .topbar-link {
        font-size: 0.64rem;
        padding: 0.3rem 0.56rem;
    }

    .trending-card {
        flex-basis: 82%;
    }

    .news-source {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .header-inner,
    .dashboard-shell,
    .corporate-shell,
    .site-footer {
        width: calc(100% - 1.4rem);
    }

    .brand-wordmark {
        width: 164px;
    }

    .tagline-link {
    color: var(--accent);
    text-decoration: none;
    opacity: 0.8;
}
.tagline-link:hover {
    opacity: 1;
}

.topbar-nav {
        gap: 0.25rem;
    }

    .panel {
        padding: 0.9rem;
    }

    .news-ticker-track {
        gap: 1.5rem;
        padding: 0.35rem 0.65rem;
    }

    .news-ticker-title {
        max-width: 250px;
    }

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

    .news-feed {
        overflow-x: hidden;
    }

    .news-item {
        overflow: hidden;
    }

    .news-item-main {
        padding: 0.82rem 0.78rem 0.74rem;
        padding-right: 2.2rem;
        min-width: 0;
    }

    .news-meta {
        width: 100%;
        min-width: 0;
        padding-right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.34rem;
    }

    .source-tier-badge {
        margin-left: 0;
    }

    .news-time-row {
        display: flex;
        width: 100%;
        min-width: 0;
        justify-content: flex-start;
        align-items: center;
        gap: 0.35rem;
        flex-wrap: wrap;
    }

    .source-tier-badge,
    .cluster-badge,
    .news-time,
    .reading-time {
        max-width: 100%;
    }

    .news-title {
        display: block;
        width: 100%;
        margin-top: 0.5rem;
        font-size: 0.95rem;
        font-weight: 600;
        line-height: 1.38;
        overflow-wrap: anywhere;
    }

    .summary-preview {
        margin-top: 0.3rem;
        display: block;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        -webkit-line-clamp: unset;
        -webkit-box-orient: unset;
        overflow-wrap: normal;
    }

    .news-filters,
    .theme-filters,
    .macro-region-filters {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .news-filter-btn,
    .theme-filter-btn {
        width: 100%;
        padding: 0.36rem 0.5rem;
    }

    .trending-badge {
        position: static;
        display: inline-flex;
        margin: 0.52rem 0 0 0.78rem;
    }

    .news-original-link {
        top: 0.56rem;
        right: 0.56rem;
    }

    .trending-card {
        flex-basis: 90%;
    }

    .scroll-top-btn {
        right: 0.8rem;
        bottom: 0.85rem;
    }
}

@media (max-width: 480px) {
    .news-filters,
    .theme-filters,
    .macro-region-filters {
        grid-template-columns: 1fr;
    }

    .news-item-main {
        padding: 0.76rem 0.7rem 0.68rem;
        padding-right: 2.05rem;
    }

    .news-title {
        font-size: 0.92rem;
    }

    .news-time,
    .reading-time {
        font-size: 0.7rem;
    }

    .trending-badge {
        margin-top: 0.46rem;
        margin-left: 0.7rem;
        font-size: 0.6rem;
    }

    .news-original-link {
        width: 1.5rem;
        height: 1.5rem;
        top: 0.48rem;
        right: 0.48rem;
    }
}

/* Theme filters */
.theme-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}
.theme-filter-btn {
    background: var(--color-white-ffffff-a05);
    border: 1px solid rgba(var(--brand-rgb), 0.28);
    border-radius: 999px;
    color: rgba(var(--text-primary-rgb), 0.76);
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.32rem 0.74rem;
    min-height: 2rem;
    cursor: pointer;
    transition: all 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.theme-filter-btn:hover {
    background: rgba(var(--brand-rgb), 0.2);
    border-color: rgba(var(--brand-rgb), 0.5);
    color: var(--color-sky-e8f4ff);
}
.theme-filter-btn.active {
    background: rgba(var(--brand-rgb), 0.28);
    border-color: rgba(var(--brand-rgb), 0.6);
    color: var(--color-cyan-e9f6ff);
}

.theme-filter-btn:focus-visible {
    outline: none;
    border-color: rgba(var(--brand-rgb), 0.72);
    box-shadow: 0 0 0 2px rgba(var(--brand-rgb), 0.24);
}

/* Theme tags on articles */
.theme-tag {
    display: inline-block;
    background: rgba(var(--brand-rgb), 0.16);
    border: 1px solid rgba(var(--brand-rgb), 0.36);
    border-radius: 999px;
    color: var(--color-cyan-c6e8fc);
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 0.66rem;
    font-weight: 600;
    padding: 0.15rem 0.52rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Hidden utility — ensure template-cloned elements stay hidden when JS sets [hidden] */
[hidden] {
    display: none !important;
}

/* Full-width news container */
.news-container {
    margin-top: 1rem;
}

/* Video badge */
.video-badge {
    display: inline-block;
    background: var(--color-red-ff5360-a18);
    border: 1px solid var(--color-red-ff6672-a45);
    color: var(--color-red-ffd2d8);
    font-size: 0.66rem;
    font-weight: 700;
    padding: 0.16rem 0.52rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0.58rem 0 0 0.9rem;
}

.quality-badge {
    display: inline-block;
    font-size: 0.64rem;
    font-weight: 700;
    padding: 0.15rem 0.48rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0.58rem 0 0 0.35rem;
}

.headline-badge {
    background: var(--color-amber-ffd061-a18);
    border: 1px solid var(--color-amber-ffd061-a45);
    color: var(--color-amber-ffe8b8);
}

.premium-badge {
    background: var(--color-cyan-6ab8e3-a16);
    border: 1px solid var(--color-cyan-6ab8e3-a50);
    color: var(--color-cyan-d7efff);
}

/* OHLC row on price cards */
.price-ohlc {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.4rem;
    padding-top: 0.4rem;
    border-top: 1px solid var(--color-white-ffffff-a06);
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.66rem;
    color: rgba(var(--text-primary-rgb), 0.62);
    flex-wrap: wrap;
}

/* YouTube video embed — responsive 16:9 */
.video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    margin: 1rem 0 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    background: var(--color-black-000000);
}
.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* DICOR & Lease Rates Widget */
.dicor-section {
    margin-top: 1.5rem;
}

.dicor-grid {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.dicor-table-wrap {
    flex: 1;
    min-width: 320px;
    max-width: 100%;
}

.dicor-table-scroll {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;              /* Firefox */
}
.dicor-table-scroll::-webkit-scrollbar {
    display: none;                      /* Chrome/Safari */
}

.dicor-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.78rem;
}

.dicor-table th {
    text-align: left;
    padding: 0.4rem 0.5rem;
    color: rgba(var(--brand-rgb), 0.85);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--line-soft);
    white-space: nowrap;
}

.dicor-table th.sub {
    font-size: 0.58rem;
    color: var(--text-dim);
    font-weight: 400;
    border-bottom: 1px solid var(--line-soft);
}

.dicor-table td {
    padding: 0.3rem 0.5rem;
    color: var(--text-dim);
    border-bottom: 1px solid var(--color-white-ffffff-a04);
    font-size: 0.72rem;
    white-space: nowrap;
}

.dicor-table td.tenor {
    color: var(--color-sky-f4f8fd);
    font-weight: 600;
    text-transform: uppercase;
}

.dicor-table td.mono {
    font-variant-numeric: tabular-nums;
}

.dicor-table td.positive {
    color: var(--positive);
}

.dicor-table td.negative {
    color: var(--negative);
}

.dicor-table td.flat {
    color: var(--text-dim);
}

.sofr-strip {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.6rem;
    flex-wrap: wrap;
}

.sofr-chip {
    font-size: 0.65rem;
    color: var(--text-dim);
    background: var(--color-white-ffffff-a04);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.dicor-chart-wrap {
    flex: 0 0 500px;
    min-width: 320px;
    position: relative;
}

.dicor-chart-mode-tabs {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 0.4rem;
    flex-wrap: wrap;
}

.dicor-chart-tabs {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.dicor-chart-tabs[hidden] {
    display: none;
}

.dicor-tab {
    background: var(--color-white-ffffff-a04);
    border: 1px solid var(--line-soft);
    color: var(--text-dim);
    font-size: 0.62rem;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    padding: 0.25rem 0.55rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dicor-tab:hover {
    background: var(--line-soft);
    color: var(--color-sky-f4f8fd);
}

.dicor-tab.active {
    background: var(--color-white-ffffff-a06);
    border-color: var(--tab-color, var(--brand));
    color: var(--tab-color, var(--brand));
    font-weight: 600;
}

#dicor-canvas {
    border-radius: 6px;
    border: 1px solid var(--line-soft);
    display: block;
}

.dicor-chart-tooltip {
    display: none;
    position: absolute;
    background: var(--color-sky-0a1016-a92);
    border: 1px solid var(--brand);
    border-radius: 4px;
    padding: 0.3rem 0.5rem;
    font-size: 0.68rem;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    color: var(--color-sky-f4f8fd);
    pointer-events: none;
    z-index: 10;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .dicor-grid {
        flex-direction: column;
    }

    .vol-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .dicor-table-wrap,
    .vol-table-wrap {
        min-width: 0;
        width: 100%;
    }

    .dicor-chart-wrap,
    .vol-chart-wrap {
        flex: 1;
        width: 100%;
        min-width: 0;
    }

    .dicor-table {
        min-width: 700px;
    }

    .vol-table {
        min-width: 320px;
    }

    .dicor-tab,
    .vol-tab {
        font-size: 0.56rem;
        padding: 0.2rem 0.4rem;
    }
}

/* Volatility panel */
.volatility-section {
    margin-top: 1.1rem;
}

.volatility-accordion {
    border: 1px solid rgba(var(--brand-rgb), 0.22);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, var(--color-sky-080d14-a76), var(--color-sky-0b1118-a78));
    overflow: hidden;
}

.volatility-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--color-sky-f0f6ff);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    text-align: left;
}

.volatility-toggle:hover {
    background: rgba(var(--brand-rgb), 0.08);
}

.volatility-toggle-copy {
    display: grid;
    gap: 0.18rem;
}

.volatility-toggle-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.volatility-toggle-note {
    color: var(--text-dim);
    font-size: 0.74rem;
}

.volatility-toggle-icon {
    color: rgba(var(--brand-rgb), 0.92);
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}

.volatility-toggle[aria-expanded="true"] .volatility-toggle-icon {
    transform: rotate(180deg);
}

.volatility-panel-body {
    padding: 0.95rem 1rem 1rem;
}

.volatility-panel-body[hidden] {
    display: none;
}

.volatility-status {
    margin-bottom: 0.75rem;
    color: var(--text-dim);
    font-size: 0.76rem;
}

.volatility-status.is-error {
    color: var(--negative);
}

.volatility-status.is-loading {
    color: rgba(var(--brand-rgb), 0.92);
}


.vol-grid {
    display: grid;
    grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
    gap: 1.35rem;
    align-items: stretch;
}

.vol-table-wrap {
    min-width: 300px;
    max-width: 100%;
}

.vol-table-scroll {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.vol-table-scroll::-webkit-scrollbar {
    display: none;
}

.vol-table {
    width: 100%;
    border-collapse: collapse;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    min-width: 320px;
}

.vol-table th,
.vol-table td {
    padding: 0.42rem 0.4rem;
    border-bottom: 1px solid var(--color-white-ffffff-a04);
    white-space: nowrap;
}

.vol-table th {
    color: rgba(var(--brand-rgb), 0.88);
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    text-align: left;
}

.vol-table td {
    color: var(--color-sky-dce4f0);
    font-size: 0.74rem;
}

.vol-table td.vol-table-symbol {
    font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
    font-weight: 600;
    color: var(--color-sky-f4f8fd);
}

/* --- Session active + dates dans le tableau vol --- */
.vol-table td.vol-table-session-cell {
    text-align: center;
    padding: 0.3rem 0.5rem;
    height: 2.4rem;
    vertical-align: middle;
}

.vol-table td.vol-table-session-cell > .vol-cell-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 100%;
}

.vol-table td.vol-session-active {
    background: rgba(107, 184, 227, 0.10);
    border-radius: 4px;
}

.vol-session-value {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.74rem;
    color: var(--color-sky-dce4f0);
    line-height: 1;
}

.vol-live-row th {
    padding: 0 0.5rem 0;
    height: 1rem;
    text-align: center;
    border-bottom: none;
}

/* Aligner les headers Asia/London/NY/Today avec leurs cellules (centré) */
#volatility-table-header th:not(:first-child) {
    text-align: center;
}

.vol-session-live {
    font-size: 0.55rem;
    color: #4caf50;
    letter-spacing: 0.02em;
    line-height: 1;
    animation: vol-blink 2s ease-in-out infinite;
    white-space: nowrap;
    font-weight: 400;
}

@keyframes vol-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

.vol-session-date {
    display: block;
    font-size: 0.60rem;
    color: rgba(220, 228, 240, 0.45);
    margin-top: 2px;
}

.vol-session-date-header {
    font-size: 0.55rem;
    color: rgba(220, 228, 240, 0.45);
    font-weight: 400;
    line-height: 1;
}

/* --- Rolling 1h Intraday Vol widget --- */
.vol-intraday-wrap {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-white-ffffff-a04);
}

.vol-intraday-title {
    margin: 0 0 0.5rem 0;
}

.vol-intraday-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.vol-intraday-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    min-width: 80px;
}

.vol-intraday-sparkline {
    width: 80px;
    height: 28px;
    display: block;
}

.vol-intraday-badge-label {
    font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
    font-size: 0.63rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--metal-color, var(--color-sky-dce4f0));
    opacity: 0.85;
}

.vol-intraday-badge-value {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.78rem;
    color: var(--color-sky-f4f8fd);
}

.vol-intraday-badge-asof {
    font-size: 0.60rem;
    color: rgba(255,255,255,0.45);
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    margin-top: 2px;
    letter-spacing: 0.01em;
}

/* --- Vol Session Bars (Axe 5c) --- */
.vol-session-bars-wrap {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-white-ffffff-a04);
}

.vol-session-bars-title {
    margin: 0 0 0.6rem 0;
}

.vol-session-bars {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.vol-sbar-row {
    display: grid;
    grid-template-columns: 52px 1fr 52px;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.4rem;
    border-radius: 4px;
    transition: background 0.15s;
}

.vol-sbar-row.vol-sbar-active {
    background: rgba(107, 184, 227, 0.07);
    border: 1px solid rgba(107, 184, 227, 0.18);
    grid-template-columns: 52px 1fr 52px auto;
}

.vol-sbar-label {
    font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6);
}

.vol-sbar-row.vol-sbar-active .vol-sbar-label {
    color: rgba(255, 255, 255, 0.9);
}

.vol-sbar-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 3px;
    overflow: hidden;
}

.vol-sbar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
}

.vol-sbar-value {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
    text-align: right;
}

.vol-sbar-row.vol-sbar-active .vol-sbar-value {
    color: #6BB8E3;
}

.vol-sbar-live {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.6rem;
    color: #6BB8E3;
    opacity: 0.85;
    white-space: nowrap;
}

[data-theme="light"] .vol-sbar-row.vol-sbar-active {
    background: rgba(107, 184, 227, 0.08);
}

[data-theme="light"] .vol-sbar-label {
    color: rgba(0, 0, 0, 0.55);
}

[data-theme="light"] .vol-sbar-row.vol-sbar-active .vol-sbar-label {
    color: rgba(0, 0, 0, 0.85);
}

[data-theme="light"] .vol-sbar-track {
    background: rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .vol-sbar-value {
    color: rgba(0, 0, 0, 0.65);
}

[data-theme="light"] .vol-sbar-row.vol-sbar-active .vol-sbar-value {
    color: #2a82b5;
}

[data-theme="light"] .vol-sbar-live {
    color: #2a82b5;
}
/* --- End Vol Session Bars --- */

.vol-chart-wrap {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
    min-height: 100%;
}

.vol-chart-type-tabs,
.vol-chart-metal-tabs {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 0.1rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.14rem;
}

.vol-chart-type-tabs::-webkit-scrollbar,
.vol-chart-metal-tabs::-webkit-scrollbar {
    display: none;
}

.vol-tab {
    background: var(--color-white-ffffff-a04);
    border: 1px solid var(--line-soft);
    color: var(--text-dim);
    font-size: 0.62rem;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    padding: 0.25rem 0.55rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex: 0 0 auto;
}

.vol-tab:hover {
    background: var(--line-soft);
    color: var(--color-sky-f4f8fd);
}

.vol-tab.active {
    background: var(--color-white-ffffff-a06);
    border-color: var(--tab-color, var(--brand));
    color: var(--tab-color, var(--brand));
    font-weight: 600;
}

.vol-tab.is-disabled,
.vol-tab:disabled {
    opacity: 0.42;
    cursor: not-allowed;
    color: var(--text-dim);
    border-color: var(--line-soft);
}

#vol-canvas {
    border-radius: 6px;
    border: 1px solid var(--line-soft);
    display: block;
    width: 100%;
    height: 100%;
    min-height: 220px;
}

.vol-chart-canvas-shell {
    position: relative;
    flex: 1 1 auto;
    min-height: 220px;
    height: clamp(220px, 30vw, 320px);
}

.vol-chart-tooltip {
    display: none;
    position: absolute;
    background: var(--color-sky-0a1016-a92);
    border: 1px solid var(--brand);
    border-radius: 4px;
    padding: 0.3rem 0.5rem;
    font-size: 0.68rem;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    color: var(--color-sky-f4f8fd);
    pointer-events: none;
    z-index: 10;
    white-space: nowrap;
}

.section-note-secondary {
    margin-top: 0.18rem;
}

.volatility-empty {
    padding: 0.7rem 0.2rem 0.1rem;
    color: var(--text-dim);
    font-size: 0.82rem;
}

[data-theme="light"] .volatility-accordion {
    background: #FFFFFF;
    border-color: rgba(58, 139, 165, 0.2);
}

[data-theme="light"] .volatility-toggle:hover {
    background: rgba(58, 139, 165, 0.06);
}

[data-theme="light"] .vol-table td {
    color: #1A2332;
}

[data-theme="light"] .vol-table td.vol-table-symbol {
    color: #1A2332;
}

/* Market Pulse */
.pulse-section {
    margin-bottom: 1rem;
    border-left: 3px solid var(--brand);
    padding-left: 0.85rem;
}

.pulse-content {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.pulse-text {
    flex: 1;
    min-width: 0;
}

.pulse-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.pulse-title {
    font-size: 1.1rem;
    margin: 0;
    color: var(--color-sky-f4f8fd);
}

.pulse-meta {
    font-size: 0.65rem;
    color: var(--text-dim);
    font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.pulse-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.55rem;
    border: 1px solid var(--color-white-ffffff-a10);
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand) 16%, transparent);
    color: var(--color-sky-f4f8fd);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
}

.pulse-badge--most-active,
.pulse-most-active-badge {
    background: color-mix(in srgb, #6BB8E3 22%, transparent);
    border-color: color-mix(in srgb, #6BB8E3 40%, transparent);
    color: #6BB8E3;
    font-size: 0.75rem;
}

.pulse-badge--key-driver-metal {
    background: color-mix(in srgb, #6BB8E3 18%, transparent);
    border-color: color-mix(in srgb, #6BB8E3 35%, transparent);
    color: #6BB8E3;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    vertical-align: middle;
    margin-right: 0.1rem;
}

.pulse-badge--vol1h {
    background: color-mix(in srgb, #9AD1F2 12%, transparent);
    border-color: color-mix(in srgb, #9AD1F2 30%, transparent);
    color: #9AD1F2;
    font-size: 0.72rem;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.pulse-badge--vol1h-warning {
    background: color-mix(in srgb, #F4A261 18%, transparent);
    border-color: color-mix(in srgb, #F4A261 40%, transparent);
    color: #F4A261;
}

.pulse-sentiment {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pulse-sentiment.bullish { color: var(--positive); }
.pulse-sentiment.bearish { color: var(--negative); }
.pulse-sentiment.mixed { color: var(--color-yellow-e8c547); }
.pulse-sentiment.neutral { color: var(--text-dim); }

.pulse-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 0.5rem 0;
}

.pulse-bullets li {
    padding: 0.25rem 0;
    font-size: 0.92rem;
    color: var(--color-sky-dce4f0);
    line-height: 1.4;
}

.pulse-bullets li::before {
    content: "›";
    color: var(--brand);
    font-weight: bold;
    margin-right: 0.5rem;
}

.pulse-driver-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.3rem;
    border-top: 1px solid var(--color-white-ffffff-a06);
    flex-wrap: wrap;
}

.pulse-driver {
    font-size: 0.88rem;
    color: var(--text-dim);
    margin: 0.4rem 0 0 0;
    padding-top: 0.4rem;
    border-top: 1px solid var(--color-white-ffffff-a06);
    flex: 1 1 18rem;
}

.pulse-driver strong {
    color: var(--brand);
}

.pulse-driver-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6BB8E3;
    margin-right: 0.4rem;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.pulse-active-metal {
    color: #6BB8E3;
    font-weight: 700;
    font-style: normal;
}

/* Axe 4 — Macro Drivers block (DXY, GVZ) */
.pulse-macro-drivers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.pulse-driver-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--panel-bg, rgba(255,255,255,0.04));
    border: 1px solid var(--color-white-ffffff-a06);
    border-radius: 0.3rem;
    padding: 0.2rem 0.55rem;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.78rem;
    color: var(--text-dim);
    white-space: nowrap;
}

.pulse-driver-chip__label {
    font-weight: 700;
    color: #6BB8E3;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pulse-driver-chip__value {
    color: var(--text-primary, #e8eaf0);
}

.pulse-driver-chip__delta {
    font-size: 0.72rem;
}

.pulse-driver-chip__delta.up   { color: #4ade80; }
.pulse-driver-chip__delta.down { color: #f87171; }
.pulse-driver-chip__delta.flat { color: var(--text-dim); }

/* Axe 4 — News Headline Driver: top macro catalyst from headlines */
.pulse-news-headline-driver {
    font-size: 0.82rem;
    color: var(--text-dim);
    font-style: italic;
    margin: 0.3rem 0 0 0;
    line-height: 1.4;
}

/* Axe 4 — Key Driver anchor: "XAG leads today (-3.5%)" */
.pulse-leads-today {
    font-size: 0.9rem;
    color: var(--brand);
    margin: 0 0 0.6rem 0;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.pulse-leads-today strong {
    color: var(--brand);
}

.pulse-most-active {
    font-size: 0.82rem;
    color: var(--color-sky-b8c4d4);
    margin: 0.25rem 0 0 0;
    font-style: italic;
}

.pulse-most-active strong {
    color: var(--brand);
    font-style: normal;
}

/* DICOR info tooltip */
.dicor-info-icon {
    cursor: help;
    font-size: 0.75rem;
    margin-left: 0.3rem;
    position: relative;
}

.dicor-info-icon:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-sky-0a1016-a95);
    border: 1px solid var(--brand);
    border-radius: 6px;
    padding: 0.6rem 0.8rem;
    font-size: 0.68rem;
    color: var(--color-sky-dce4f0);
    width: 340px;
    white-space: normal;
    line-height: 1.4;
    z-index: 20;
    pointer-events: none;
}

.pulse-color {
    font-size: 0.88rem;
    color: var(--color-sky-b8c4d4);
    margin: 0.4rem 0 0 0;
    font-style: italic;
    line-height: 1.5;
}

/* Pulse session vol */
.pulse-session-vol {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.3rem 0.6rem;
    margin: 0.5rem 0 0 0;
    font-size: 0.82rem;
    color: var(--color-sky-b8c4d4);
}

.pulse-session-vol-label {
    color: var(--color-muted, #8899aa);
    font-variant: small-caps;
    letter-spacing: 0.04em;
    margin-right: 0.2rem;
}

.pulse-session-vol-items {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.15rem 0.5rem;
}

.psv-item {
    white-space: nowrap;
}

.psv-item strong {
    color: #6BB8E3;
    font-weight: 600;
}

.psv-ann {
    color: var(--color-muted, #8899aa);
    font-size: 0.75rem;
    font-style: italic;
}

.psv-item--active {
    background: rgba(107, 184, 227, 0.12);
    border-radius: 3px;
    padding: 0.05rem 0.35rem;
    outline: 1px solid rgba(107, 184, 227, 0.35);
}

.psv-item--active strong {
    color: #a8d8f0;
}

.psv-live {
    color: #6BB8E3;
    font-size: 0.55rem;
    vertical-align: middle;
    margin-left: 0.15rem;
    animation: psv-pulse 2s ease-in-out infinite;
}

/* Session vol states */
.pulse-session-vol--pending {
    opacity: 0.45;
}

/* Vol 1h inline line */
.pulse-vol1h-line {
    margin: 0.35rem 0 0.1rem 0;
    font-size: 0.82rem;
    color: var(--text-dim);
}

.pulse-vol1h-value {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.82rem;
    color: #9AD1F2;
    font-weight: 600;
}

.pulse-vol1h-value--warning {
    color: #F4A261;
}

.pulse-vol1h-value--null {
    color: var(--text-dim);
    opacity: 0.6;
}

.pulse-vol1h-asof {
    font-size: 0.72rem;
    color: var(--text-dim);
    opacity: 0.6;
    margin-left: 0.3rem;
}

/* Axe 5b: Raw (non-annualised) 1h rolling vol indicator */
.pulse-vol1h-raw-line {
    margin: 0.25rem 0 0.1rem 0;
    font-size: 0.82rem;
    color: var(--text-dim);
}

.pulse-vol1h-raw-value {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.82rem;
    color: #9AD1F2;
    font-weight: 600;
}

.pulse-vol1h-raw-value--high {
    color: #E8A838;
}

/* Vol 1h multi-metal widget in Market Pulse */
.pulse-vol1h-multi {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin: 0.35rem 0 0.1rem 0;
    font-size: 0.82rem;
}

.pulse-vol1h-multi-label {
    color: var(--text-dim);
    font-size: 0.82rem;
    flex-shrink: 0;
}

.pulse-vol1h-multi-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.pulse-vol1h-multi-item {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.12rem 0.45rem;
    border-radius: 4px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
}

.pulse-vol1h-multi-sym {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.70rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--metal-color, var(--color-sky-dce4f0));
    opacity: 0.85;
}

.pulse-vol1h-spark {
    width: 48px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.75;
    display: block;
}

.pulse-vol1h-multi-val {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.78rem;
    color: var(--color-sky-f4f8fd);
    font-weight: 600;
}

/* Axe 5b: vol level colour modifiers */
.pulse-vol1h-multi-val--low      { color: #4ade80; }   /* vert — < 10% */
.pulse-vol1h-multi-val--elevated { color: #F4A261; }   /* orange — 10-20% */
.pulse-vol1h-multi-val--high     { color: #f87171; }   /* rouge — > 20% */

.pulse-vol1h-multi-item--low      { border-color: rgba(74, 222, 128, 0.25); }
.pulse-vol1h-multi-item--elevated { border-color: rgba(244, 162, 97, 0.30); }
.pulse-vol1h-multi-item--high     { border-color: rgba(248, 113, 113, 0.35); }

/* Axe 5c — Session vol from open (London / NY) */
.pulse-session-vol {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    margin-top: 0.4rem;
    color: var(--color-muted, #8899aa);
    flex-wrap: wrap;
}
.pulse-session-vol-label {
    font-size: 0.75rem;
    color: var(--color-muted, #8899aa);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.pulse-session-vol-val {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.82rem;
    font-weight: 600;
}
.pulse-session-vol-val--low      { color: #4ade80; }
.pulse-session-vol-val--elevated { color: #F4A261; }
.pulse-session-vol-val--high     { color: #f87171; }
.pulse-session-vol-range {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    color: var(--color-muted, #8899aa);
}
/* Axe 5c: session vol items (XAU + XAG) */
.pulse-session-vol-item {
    display: inline-flex;
    align-items: baseline;
    gap: 0.2rem;
    white-space: nowrap;
}
.pulse-session-vol-sym {
    font-size: 0.72rem;
    color: var(--color-muted, #8899aa);
    font-variant: small-caps;
    letter-spacing: 0.03em;
}
.pulse-session-vol-ann-label {
    font-size: 0.7rem;
    color: var(--color-muted, #8899aa);
    font-style: italic;
    margin-left: 0.1rem;
}

/* Axe 7: Gold/Silver Ratio */
.pulse-gold-silver-ratio {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
}
.pulse-gsr-label {
    color: var(--color-muted, #8899aa);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.pulse-gsr-val {
    color: #6BB8E3;
    font-weight: 600;
}

/* Axe 6: ETF Flows */
.pulse-etf-flows {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.75rem;
    margin-top: 0.5rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
}
.pulse-etf-flows-label {
    color: var(--color-muted, #8899aa);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.pulse-etf-flow-item {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}
.pulse-etf-flow-ticker {
    color: #6BB8E3;
    font-weight: 600;
}
.pulse-etf-flow-val,
.pulse-etf-flow-usd {
    font-size: 0.78rem;
}
.etf-flow--up   { color: #4ade80; }
.etf-flow--down { color: #f87171; }
.etf-flow--flat { color: var(--color-muted, #8899aa); }
.pulse-etf-flows-asof {
    color: var(--color-muted, #8899aa);
    font-size: 0.72rem;
    margin-left: 0.25rem;
}

/* ── Price threshold alerts ── */
.pulse-price-alerts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.6rem;
    margin-top: 0.5rem;
    align-items: center;
}

.pulse-price-alert {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-family: var(--font-mono, 'IBM Plex Mono', monospace);
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    font-weight: 600;
    border: 1px solid transparent;
}

.pulse-price-alert--above {
    background: rgba(0, 200, 120, 0.12);
    color: #00c878;
    border-color: rgba(0, 200, 120, 0.3);
}

.pulse-price-alert--below {
    background: rgba(255, 80, 80, 0.12);
    color: #ff5050;
    border-color: rgba(255, 80, 80, 0.3);
}

.pulse-price-alert-icon {
    font-size: 0.7rem;
    opacity: 0.85;
}

.pulse-price-alert-name {
    font-weight: 700;
}

.pulse-price-alert-price {
    opacity: 0.95;
}

.pulse-price-alert-threshold {
    font-weight: 400;
    font-size: 0.7rem;
    opacity: 0.7;
}

[data-theme="light"] .pulse-price-alert--above {
    background: rgba(0, 160, 90, 0.1);
    color: #007a48;
    border-color: rgba(0, 160, 90, 0.25);
}

[data-theme="light"] .pulse-price-alert--below {
    background: rgba(200, 30, 30, 0.08);
    color: #c01e1e;
    border-color: rgba(200, 30, 30, 0.2);
}

.psv-pending {
    color: var(--color-muted, #8899aa);
}

.psv-insufficient {
    color: #f0a030;
}

.psv-null {
    color: var(--color-muted, #8899aa);
    opacity: 0.6;
}

/* Session vol multi-symbol table */
.pulse-session-vol-table-wrap {
    margin-top: 0.75rem;
    overflow-x: auto;
}

.pulse-session-vol-table {
    border-collapse: collapse;
    font-size: 0.78rem;
    font-family: var(--font-mono, 'IBM Plex Mono', monospace);
    width: 100%;
    min-width: 260px;
}

.pulse-session-vol-table thead th {
    text-align: center;
    padding: 0.2rem 0.5rem;
    color: var(--color-muted, #8899aa);
    font-weight: 500;
    border-bottom: 1px solid var(--color-border, rgba(128,128,128,0.2));
    font-family: var(--font-sans, 'IBM Plex Sans', sans-serif);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pulse-session-vol-table thead th.psvt-session-col {
    text-align: left;
}

.pulse-session-vol-table tbody td {
    padding: 0.25rem 0.5rem;
    text-align: center;
    color: #e0e8f0;
}

[data-theme="light"] .pulse-session-vol-table tbody td {
    color: #334155;
}

.psvt-session-cell {
    text-align: left !important;
    white-space: nowrap;
    color: var(--color-muted, #8899aa);
    font-family: var(--font-sans, 'IBM Plex Sans', sans-serif);
}

.psvt-row--active .psvt-session-cell {
    color: #6BB8E3;
    font-weight: 600;
}

[data-theme="light"] .psvt-row--active .psvt-session-cell {
    color: #1d7ab5;
}

.psvt-row--active td {
    background: rgba(107, 184, 227, 0.07);
}

.psvt-val--high {
    color: #f0a030;
}

[data-theme="light"] .psvt-val--high {
    color: #c07010;
}

.psvt-null {
    color: var(--color-muted, #8899aa);
    opacity: 0.5;
}

.psvt-live-dot {
    color: #4ade80;
    font-size: 0.65rem;
    vertical-align: middle;
    margin-right: 0.2rem;
    animation: psv-pulse 2s ease-in-out infinite;
}

.psvt-pending-dot {
    color: #facc15;
    font-size: 0.65rem;
    vertical-align: middle;
    margin-right: 0.2rem;
    opacity: 0.8;
}

.psvt-closed-dot {
    color: var(--color-muted, #8899aa);
    font-size: 0.65rem;
    vertical-align: middle;
    margin-right: 0.2rem;
    opacity: 0.5;
}

.psvt-hours {
    color: var(--color-muted, #8899aa);
    font-size: 0.68rem;
    font-family: var(--font-mono, 'IBM Plex Mono', monospace);
    margin-left: 0.2rem;
    opacity: 0.75;
}

.psvt-row--active .psvt-hours {
    color: #6BB8E3;
    opacity: 0.85;
}

/* Session labels: AS / LN / NY */
.session-label {
    display: inline-block;
    font-family: var(--font-mono, 'IBM Plex Mono', monospace);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.05em 0.3em;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.06);
    line-height: 1.4;
    vertical-align: middle;
}
.session-asia  { color: #F4A261; }
.session-london { color: #6BB8E3; }
.session-ny    { color: #2EC4B6; }

[data-theme="light"] .session-label {
    background: rgba(0, 0, 0, 0.06);
}

.psvt-legend {
    font-size: 0.66rem;
    color: var(--color-muted, #8899aa);
    margin: 0.35rem 0 0;
    opacity: 0.7;
    font-family: var(--font-mono, 'IBM Plex Mono', monospace);
    letter-spacing: 0.01em;
}

[data-theme="light"] .psvt-legend {
    color: #64748b;
}

@keyframes psv-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ── Axe 5c: Session Range Table ──────────────────────────────────────────── */
/* ── Table vol unifiée (SESSION | XAU vol | range | XAG | XPT | XPD) ── */
.pulse-unified-vol-wrap {
    margin-top: 0.6rem;
}
.puvt-table {
    border-collapse: collapse;
    font-size: 0.78rem;
    font-family: var(--font-mono, 'IBM Plex Mono', monospace);
    width: auto;
}
.puvt-table thead th {
    text-align: right;
    padding: 0.2rem 0.6rem 0.2rem 0;
    font-size: 0.68rem;
    color: var(--color-muted, #8899aa);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(107,184,227,0.15);
    white-space: nowrap;
}
.puvt-table thead th.puvt-session-col {
    text-align: left;
    min-width: 90px;
}
.puvt-table thead th.puvt-range-col {
    color: rgba(107,184,227,0.55);
}
.puvt-table tbody td {
    padding: 0.18rem 0.6rem 0.18rem 0;
    color: var(--color-text, #cdd6f4);
    vertical-align: middle;
}
[data-theme="light"] .puvt-table tbody td {
    color: #1e293b;
}
.puvt-session-cell {
    text-align: left;
    white-space: nowrap;
}
.puvt-val, .puvt-range {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.puvt-range {
    color: rgba(255,255,255,0.45);
    font-size: 0.74rem;
}
[data-theme="light"] .puvt-range {
    color: rgba(0,0,0,0.38);
}
.puvt-val--high {
    color: #f38ba8;
    font-weight: 600;
}
[data-theme="light"] .puvt-val--high { color: #dc2626; }
.puvt-range--high {
    color: #fab387;
    font-weight: 600;
}
[data-theme="light"] .puvt-range--high { color: #ea580c; }
.puvt-row--active td {
    background: rgba(107,184,227,0.06);
}
.puvt-row--active .puvt-session-cell {
    color: #6BB8E3;
    font-weight: 600;
}
.puvt-row--active .puvt-val {
    color: #e2e8f0;
}
[data-theme="light"] .puvt-row--active .puvt-val { color: #0f172a; }

.pulse-session-range-wrap {
    margin-top: 0.75rem;
}

.pulse-session-range-table {
    border-collapse: collapse;
    font-size: 0.78rem;
    font-family: var(--font-mono, 'IBM Plex Mono', monospace);
    min-width: 160px;
}

.pulse-session-range-table thead th {
    text-align: left;
    padding: 0.2rem 0.55rem 0.2rem 0;
    font-size: 0.68rem;
    color: var(--color-muted, #8899aa);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(107,184,227,0.15);
}

.pulse-session-range-table thead th.psr-val-col {
    text-align: right;
    padding-right: 0.25rem;
}

.pulse-session-range-table tbody td {
    padding: 0.18rem 0.55rem 0.18rem 0;
    color: var(--color-text, #cdd6f4);
    vertical-align: middle;
}

[data-theme="light"] .pulse-session-range-table tbody td {
    color: #1e293b;
}

.psr-session-cell {
    white-space: nowrap;
    min-width: 90px;
}

.psr-val {
    text-align: right;
    font-variant-numeric: tabular-nums;
    padding-right: 0.25rem;
}

.psr-val--high {
    color: #f38ba8;
    font-weight: 600;
}

[data-theme="light"] .psr-val--high {
    color: #dc2626;
}

.psr-row--active td {
    background: rgba(107, 184, 227, 0.06);
}

.psr-row--active .psr-session-cell {
    color: #6BB8E3;
    font-weight: 600;
}

/* Pulse image */
.pulse-featured-image {
    flex-shrink: 0;
    width: 160px;
    display: flex;
    flex-direction: column;
}

.pulse-featured-image a {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
}

.pulse-img {
    width: 160px;
    flex: 1;
    min-height: 80px;
    max-height: 220px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
    border: 1px solid var(--line-soft);
}

.pulse-img-caption {
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-top: 0.25rem;
    line-height: 1.3;
}

@media (max-width: 640px) {
    .pulse-featured-image {
        display: none;
    }
}

/* Live price flash animation */
.price-flash {
    animation: priceFlash 1.2s ease-out;
}
@keyframes priceFlash {
    0% { background-color: var(--color-cyan-6bb8e3-a30); }
    100% { background-color: transparent; }
}

/* Live indicator */
.live-indicator {
    color: var(--color-green-4caf50);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    animation: livePulse 2s infinite;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Markets closed state */
.markets-closed {
    color: var(--color-slate-666666) !important;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    animation: none !important;
}
.price-grid.markets-closed .price-card {
    opacity: 0.5;
}
.price-grid.markets-closed .price-card .metal-change {
    color: var(--color-slate-666666) !important;
}

/* DICOR sub-titles */
.dicor-sub-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}
.dicor-sub-note {
    font-weight: 400;
    font-size: 0.72rem;
    opacity: 0.7;
}

@media (max-width: 640px) {
    .price-card {
        padding: 0.84rem;
    }

    .metal-price {
        font-size: 1.24rem;
    }

    .updated-at {
        line-height: 1.4;
    }

    .dicor-table {
        min-width: 660px;
    }

    .dicor-table th {
        padding: 0.35rem 0.42rem;
        font-size: 0.66rem;
    }

    .dicor-table th.sub {
        font-size: 0.61rem;
    }

    .dicor-table td {
        padding: 0.28rem 0.42rem;
        font-size: 0.7rem;
    }

    .dicor-sub-note {
        display: block;
        margin-top: 0.14rem;
    }

    .sofr-strip {
        gap: 0.45rem;
    }

    .dicor-info-icon:hover::after {
        left: auto;
        right: 0;
        transform: none;
        width: min(320px, calc(100vw - 2rem));
    }
}

@media (max-width: 480px) {
    .price-card {
        padding: 0.78rem;
    }

    .metal-name {
        font-size: 0.74rem;
    }

    .metal-price {
        font-size: 1.18rem;
    }

    .metal-change {
        font-size: 0.78rem;
    }

    .updated-at {
        font-size: 0.72rem;
    }

    .dicor-table {
        min-width: 620px;
    }

    .dicor-tab,
    .vol-tab {
        font-size: 0.54rem;
        padding: 0.2rem 0.34rem;
    }
}

.legal-download {
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}
.legal-download a {
    color: var(--brand);
    text-decoration: none;
    font-size: 0.88rem;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.legal-download a:hover {
    opacity: 1;
    text-decoration: underline;
}

.corporate-subtitle {
    color: var(--brand);
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1.2rem;
    margin-bottom: 0.6rem;
    letter-spacing: 0.02em;
}

/* Light mode component overrides */
/* Logo swap handled by theme.js */

[data-theme="light"] .metal-price {
    color: #1a2332;
}

[data-theme="light"] .topbar-link {
    color: #333333;
}

[data-theme="light"] .page-kicker,
[data-theme="light"] .tagline,
[data-theme="light"] .header-updated {
    color: #555555;
}

[data-theme="light"] .footer {
    color: #4a5568;
}

/* ===== Light mode: badges + buttons ===== */
[data-theme="light"] .source-tier-badge {
    color: #2D4A5A;
    border-color: rgba(58, 139, 165, 0.35);
    background: rgba(58, 139, 165, 0.08);
}

[data-theme="light"] .cluster-badge {
    color: #1A3A4A;
    border-color: rgba(58, 139, 165, 0.45);
    background: rgba(58, 139, 165, 0.12);
}

[data-theme="light"] .news-freshness-badge--breaking {
    color: #8f1f2f;
    border-color: rgba(192, 57, 43, 0.32);
    background: rgba(192, 57, 43, 0.12);
}

[data-theme="light"] .news-freshness-badge--new {
    color: #17663a;
    border-color: rgba(39, 174, 96, 0.3);
    background: rgba(39, 174, 96, 0.12);
}

[data-theme="light"] .sort-btn {
    color: #2D7A93;
    border-color: rgba(58, 139, 165, 0.35);
    background: rgba(58, 139, 165, 0.06);
}

[data-theme="light"] .sort-btn:hover {
    color: #1A5A6A;
    background: rgba(58, 139, 165, 0.14);
}

[data-theme="light"] .sort-btn.active {
    color: #FFFFFF;
    background: #3A8BA5;
    border-color: #2D7A93;
}

[data-theme="light"] .news-filter-btn {
    color: #2D4A5A;
    border-color: rgba(58, 139, 165, 0.35);
    background: rgba(58, 139, 165, 0.05);
}

[data-theme="light"] .news-filter-btn:hover,
[data-theme="light"] .news-filter-btn.active {
    color: #1A3A4A;
    border-color: rgba(58, 139, 165, 0.65);
    background: rgba(58, 139, 165, 0.15);
}

[data-theme="light"] .news-title {
    color: #1A2332;
}

[data-theme="light"] .reading-time {
    color: #666666;
}

[data-theme="light"] .news-feed {
    background: #FFFFFF;
    border-color: rgba(58, 139, 165, 0.2);
    padding: 0 0.5rem;
}

[data-theme="light"] .news-item {
    border-bottom-color: rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .trending-source {
    color: #555555;
}

[data-theme="light"] .trending-card {
    background: #FFFFFF;
    border-color: rgba(58, 139, 165, 0.2);
}

[data-theme="light"] .trending-card-title {
    color: #1A2332;
}

/* ===== Light mode: quality badges + theme tags ===== */
[data-theme="light"] .headline-badge {
    background: rgba(210, 140, 0, 0.12);
    border-color: rgba(210, 140, 0, 0.35);
    color: #7A4F00;
}

[data-theme="light"] .premium-badge {
    background: rgba(58, 139, 165, 0.12);
    border-color: rgba(58, 139, 165, 0.40);
    color: #1A5A6A;
}

[data-theme="light"] .video-badge {
    background: rgba(200, 50, 60, 0.10);
    border-color: rgba(200, 50, 60, 0.35);
    color: #8B1A1A;
}

[data-theme="light"] .theme-tag {
    color: #1A5A6A;
    background: rgba(58, 139, 165, 0.10);
    border-color: rgba(58, 139, 165, 0.30);
}

[data-theme="light"] .trending-badge {
    background: rgba(200, 80, 30, 0.10);
    border-color: rgba(200, 80, 30, 0.35);
    color: #7A2A00;
}

[data-theme="light"] .news-source {
    color: #1A5A6A;
    background: rgba(58, 139, 165, 0.10);
    border-color: rgba(58, 139, 165, 0.35);
}

[data-theme="light"] .news-tag {
    color: #1A5A6A;
    background: rgba(58, 139, 165, 0.08);
    border-color: rgba(58, 139, 165, 0.28);
}

/* ── Light mode: Macro Calendar ── */
[data-theme="light"] .macro-event-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(58, 139, 165, 0.18);
}

[data-theme="light"] .macro-event-card.us {
    border-color: rgba(58, 139, 165, 0.35);
}

[data-theme="light"] .macro-event-card.eu {
    border-color: rgba(130, 90, 220, 0.30);
}

[data-theme="light"] .macro-event-card.uk {
    border-color: rgba(40, 180, 170, 0.35);
}

[data-theme="light"] .macro-event-card.cn {
    border-color: rgba(200, 60, 80, 0.28);
}

[data-theme="light"] .macro-event-card.jp {
    border-color: rgba(200, 80, 60, 0.28);
}

[data-theme="light"] .macro-event-title {
    color: #1a2530;
}

[data-theme="light"] .macro-event-meta {
    color: #5a6a7a;
}

[data-theme="light"] .macro-event-code {
    color: #1A5A6A;
    background: rgba(58, 139, 165, 0.10);
    border-color: rgba(58, 139, 165, 0.35);
}

[data-theme="light"] .macro-event-region {
    color: #2a4a5a;
    background: rgba(58, 139, 165, 0.08);
    border-color: rgba(58, 139, 165, 0.25);
}

[data-theme="light"] .macro-event-card.eu .macro-event-region {
    color: #3a2a7a;
    background: rgba(130, 90, 220, 0.08);
    border-color: rgba(130, 90, 220, 0.28);
}

[data-theme="light"] .macro-event-card.uk .macro-event-region {
    color: #1a5a55;
    background: rgba(40, 180, 170, 0.08);
    border-color: rgba(40, 180, 170, 0.28);
}

[data-theme="light"] .macro-event-card.cn .macro-event-region {
    color: #7a1a25;
    background: rgba(200, 60, 80, 0.08);
    border-color: rgba(200, 60, 80, 0.28);
}

[data-theme="light"] .macro-event-card.jp .macro-event-region {
    color: #7a2a1a;
    background: rgba(200, 80, 60, 0.08);
    border-color: rgba(200, 80, 60, 0.28);
}

[data-theme="light"] .macro-highlight {
    color: #1A5A6A;
}

/* ── pulse-vol-sessions-xau : mini-table XAU session vol with trend arrows ── */
.pulse-vol-sessions-xau {
    margin-top: 0.6rem;
}
.pvsx-table {
    border-collapse: collapse;
    font-size: 0.78rem;
    font-family: 'IBM Plex Mono', monospace;
    width: 100%;
    max-width: 320px;
}
.pvsx-table thead th {
    color: #6BB8E3;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(107,184,227,0.2);
    white-space: nowrap;
}
.pvsx-table thead th.pvsx-val-col,
.pvsx-table thead th.pvsx-trend-col {
    text-align: right;
}
.pvsx-table tbody td {
    padding: 0.2rem 0.5rem;
    color: rgba(255,255,255,0.82);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    white-space: nowrap;
}
[data-theme="light"] .pvsx-table tbody td {
    color: rgba(0,0,0,0.78);
    border-bottom: 1px solid rgba(0,0,0,0.07);
}
.pvsx-table tbody td.pvsx-val {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.pvsx-table tbody td.pvsx-trend {
    text-align: right;
    width: 1.6rem;
}
.pvsx-trend-up   { color: #4ade80; }
.pvsx-trend-down { color: #f87171; }
.pvsx-trend-flat { color: rgba(255,255,255,0.4); }
[data-theme="light"] .pvsx-trend-flat { color: rgba(0,0,0,0.3); }
.pvsx-null { opacity: 0.35; }
.pvsx-row--active td { background: rgba(107,184,227,0.06); }
.pvsx-label {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    margin-top: 0.25rem;
    margin-left: 0.5rem;
}
[data-theme="light"] .pvsx-label { color: rgba(0,0,0,0.4); }

/* ── Sparklines 7j — Market Pulse ──────────────────────────────────────── */
.pulse-sparklines {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.4rem;
    flex-wrap: wrap;
}
.pulse-sparklines-label {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
[data-theme="light"] .pulse-sparklines-label {
    color: rgba(0,0,0,0.4);
}
.pulse-sparkline-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.pulse-sparkline-sym {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    color: rgba(255,255,255,0.5);
    min-width: 1.5rem;
}
[data-theme="light"] .pulse-sparkline-sym {
    color: rgba(0,0,0,0.4);
}
.sparkline-svg {
    display: block;
    vertical-align: middle;
}
