/* 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-data-bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 1.2rem;
    margin-top: 0.5rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
}

.pulse-macro-drivers {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
}

.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: rgba(var(--text-primary-rgb), 1);
}

.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;
}
.pulse-gsr-label {
    color: var(--brand);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.pulse-gsr-val {
    color: rgba(var(--text-primary-rgb), 1);
}

/* Axe 6: ETF Flows */
.pulse-etf-flows {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.4rem 0.5rem;
}
.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;
}

