/* ================================================================
   EIS DASHBOARD — EnviroTech Integrity Score
   Estilos do modal de dashboard interativo EIS.
   ================================================================ */

/* ── Verdict colors (Y11: mapped to global theme) ──────────────── */
:root {
    --eis-green:  var(--accent-green, #22c55e);   /* = global --accent-green */
    --eis-yellow: var(--accent-yellow, #eab308);   /* = global --accent-yellow */
    --eis-red:    var(--accent-red, #ef4444);       /* = global --accent-red */
    --eis-bg:     rgba(15, 23, 42, 0.95);           /* dark overlay (EIS-specific) */
    --eis-card:   rgba(30, 41, 59, 0.8);            /* card bg (EIS-specific) */
    --eis-border: rgba(99, 102, 241, 0.2);
    --eis-text:   rgba(255, 255, 255, 0.87);
    --eis-muted:  rgba(255, 255, 255, 0.5);
    --eis-accent: #6366f1;                          /* indigo (EIS-specific) */
}

/* ── Modal overlay ──────────────────────────────────────────────── */
#eis-dashboard-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: var(--z-modal, 3200);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
}

#eis-dashboard-modal.active {
    display: flex;
}

/* ── Modal box ──────────────────────────────────────────────────── */
.eis-modal {
    background: var(--eis-bg);
    border: 1px solid var(--eis-border);
    border-radius: 16px;
    width: 90%;
    max-width: clamp(560px, 92vw, 820px);
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    animation: eisSlideIn 0.25s ease;
}

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

/* ── Header ─────────────────────────────────────────────────────── */
.eis-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--eis-border);
}

.eis-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--eis-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.eis-header h2 .eis-title-icon {
    font-size: 18px;
}

.eis-close-btn {
    background: none;
    border: none;
    color: var(--eis-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-lg);
    transition: background 0.15s, color 0.15s;
}

.eis-close-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--eis-text);
}

/* ── Body ───────────────────────────────────────────────────────── */
.eis-body {
    padding: 20px 24px;
}

/* ── Top row: ring (left) + right stack (radar + bars + priorities) */
.eis-top-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    margin-bottom: 12px;
    align-items: start;
}

/* ── Score card (left) — compact ──────────────────────────────── */
.eis-score-card {
    background: var(--eis-card);
    border: 1px solid var(--eis-border);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 330px;
    flex-shrink: 0;
}

/* ── Right stack (bars + priorities) ──────────────────────────── */
.eis-right-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

/* ── SVG Gauge ──────────────────────────────────────────────────── */
/* ── Ring Chart (weighted donut) ───────────────────────────────── */
.eis-ring-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 8px;
}

#eis-ring-canvas {
    display: block;
}

/* ── Scale Strip ──────────────────────────────────────────────── */
.eis-scale-strip {
    margin: 10px 0 8px;
    padding: 0 4px;
}

.eis-scale-track {
    position: relative;
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(to right,
        rgb(239,68,68) 0%,
        rgb(249,115,22) 30%,
        rgb(234,179,8) 50%,
        rgb(34,197,94) 70%,
        rgb(5,150,105) 100%);
}

.eis-scale-threshold {
    position: absolute;
    top: -14px;
    transform: translateX(-50%);
}

.eis-scale-threshold-line {
    display: block;
    width: 1px;
    height: 34px;
    margin: 0 auto;
    border-left: 1px dashed rgba(255,255,255,0.35);
    background: transparent;
}

.eis-scale-threshold-label {
    display: block;
    font-size: 9px;
    color: rgba(255,255,255,0.45);
    text-align: center;
    margin-top: 2px;
    white-space: nowrap;
}

.eis-scale-marker {
    position: absolute;
    top: -20px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: left 0.15s ease;
}

.eis-scale-marker-arrow {
    font-size: 10px;
    line-height: 1;
}

.eis-scale-marker-value {
    font-size: 10px;
    font-weight: 700;
    font-family: 'JetBrains Mono', Consolas, monospace;
    white-space: nowrap;
}

.eis-scale-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 9px;
    color: rgba(255,255,255,0.35);
    padding: 0 2px;
}

/* ── Contribution Bars (with inline sliders) ─────────────────── */
.eis-contrib-bars {
    margin: 0;
}

.eis-contrib-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
    padding: 2px 4px;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: border-color 0.15s ease;
}

.eis-contrib-row.eis-contrib-warn {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.04);
}

.eis-contrib-row.eis-contrib-good {
    border-color: rgba(34, 197, 94, 0.2);
}

.eis-contrib-icon {
    font-size: 10px;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
    font-weight: 700;
}

.eis-contrib-icon.warn { color: #ef4444; }
.eis-contrib-icon.good { color: #22c55e; }

.eis-contrib-label {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    width: 20px;
    text-align: right;
    flex-shrink: 0;
    font-family: 'JetBrains Mono', Consolas, monospace;
}

.eis-contrib-weight {
    font-size: 10px;
    color: rgba(255,255,255,0.3);
    width: 18px;
    flex-shrink: 0;
}

.eis-contrib-track-wrap {
    flex: 1;
    position: relative;
    min-width: 80px;
}

.eis-contrib-track {
    width: 100%;
    height: 100%;
    min-height: 14px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    overflow: hidden;
}

.eis-contrib-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.1s ease;
    opacity: 0.75;
}

.eis-contrib-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
}

.eis-contrib-slider:disabled {
    cursor: default;
}

.eis-contrib-slider:not(:disabled):hover + .eis-contrib-track,
.eis-contrib-slider:not(:disabled):active + .eis-contrib-track {
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.3);
}

.eis-contrib-score {
    font-size: 10px;
    font-weight: 700;
    width: 26px;
    text-align: right;
    flex-shrink: 0;
    font-family: 'JetBrains Mono', Consolas, monospace;
}

.eis-contrib-auto-btn {
    font-size: 10px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.15);
    background: transparent;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    padding: 0;
    line-height: 14px;
    text-align: center;
    flex-shrink: 0;
}

.eis-contrib-auto-btn.on {
    border-color: var(--eis-accent, #6366f1);
    color: var(--eis-accent, #6366f1);
    background: rgba(99, 102, 241, 0.1);
}

.eis-contrib-auto-btn:hover {
    border-color: rgba(255,255,255,0.3);
}

/* ── Ring Chart Tooltip ────────────────────────────────────────── */
.eis-ring-tooltip {
    position: fixed;
    pointer-events: none;
    background: rgba(16, 16, 28, 0.95);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 10px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    display: none;
    z-index: 3210;
    max-width: clamp(180px, 70vw, 260px);
    font-family: 'JetBrains Mono', Consolas, monospace;
}

.eis-ring-tooltip b {
    font-size: 11px;
}

.eis-ring-tooltip .eis-tip-hint {
    color: var(--eis-accent, #6366f1);
    font-style: italic;
    font-size: 9px;
}

/* ── Axis Detail Card ─────────────────────────────────────────── */
.eis-axis-detail {
    margin: 0;
    transition: max-height 0.2s ease;
    overflow: hidden;
}

.eis-axis-detail:empty {
    display: none;
}

.eis-axis-detail-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--eis-border, rgba(99, 102, 241, 0.2));
    border-radius: 8px;
    padding: 14px 16px;
    margin: 12px 0;
}

.eis-axis-detail-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.eis-axis-detail-abbr {
    font-size: 14px;
    font-weight: 700;
    font-family: 'JetBrains Mono', Consolas, monospace;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(99, 102, 241, 0.15);
    color: var(--eis-accent, #6366f1);
}

.eis-axis-detail-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--eis-text, rgba(255, 255, 255, 0.87));
    flex: 1;
}

.eis-axis-detail-score {
    font-size: 16px;
    font-weight: 700;
    font-family: 'JetBrains Mono', Consolas, monospace;
}

.eis-axis-detail-desc {
    font-size: 11px;
    color: var(--eis-muted, rgba(255, 255, 255, 0.5));
    margin-bottom: 10px;
    line-height: 1.5;
}

.eis-axis-detail-source {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.eis-axis-detail-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.eis-axis-detail-bar-label {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.5);
    width: 80px;
    text-align: right;
    flex-shrink: 0;
}

.eis-axis-detail-bar-track {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
}

.eis-axis-detail-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.15s ease;
}

.eis-axis-detail-bar-value {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.7);
    width: 40px;
    font-family: 'JetBrains Mono', Consolas, monospace;
}

.eis-axis-detail-whatif {
    margin-top: 10px;
    padding: 6px 10px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 4px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.eis-axis-detail-whatif .delta {
    font-weight: 700;
    color: var(--eis-green, #22c55e);
}

/* ── Improvement Priority List ────────────────────────────────── */
.eis-improve-list {
    margin: 12px 0 0;
}

.eis-improve-list:empty {
    display: none;
}

.eis-improve-title {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.eis-improve-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 4px;
    margin-bottom: 4px;
    background: rgba(255, 255, 255, 0.03);
}

.eis-improve-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.eis-improve-rank {
    font-size: 11px;
    font-weight: 700;
    color: var(--eis-accent, #6366f1);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.eis-improve-axis {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    width: 120px;
    flex-shrink: 0;
}

.eis-improve-scores {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'JetBrains Mono', Consolas, monospace;
    flex-shrink: 0;
}

.eis-improve-delta {
    font-size: 10px;
    font-weight: 700;
    color: var(--eis-green, #22c55e);
    margin-left: auto;
    font-family: 'JetBrains Mono', Consolas, monospace;
}

.eis-improve-hint {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.4);
    padding: 2px 0 0 24px;
    margin-bottom: 4px;
}

/* —— Parallel EIS indicators (Phase 1) ————————————————————————— */
.eis-parallel-indicators {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.eis-parallel-chip {
    font-size: 10px;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.78);
    font-family: 'JetBrains Mono', Consolas, monospace;
}

/* —— ODS Overlay Panel ————————————————————————————— */
.eis-ods-panel {
    margin: 10px 0 0;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid rgba(34, 197, 94, 0.2);
    background: rgba(16, 34, 28, 0.28);
}

.eis-ods-panel:empty {
    display: none;
}

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

.eis-ods-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.78);
}

.eis-ods-version {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'JetBrains Mono', Consolas, monospace;
}

.eis-ods-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.eis-ods-chip {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.03);
}

.eis-ods-chip-high {
    border-color: rgba(34, 197, 94, 0.45);
    color: #86efac;
}

.eis-ods-chip-medium {
    border-color: rgba(234, 179, 8, 0.45);
    color: #fde047;
}

.eis-ods-chip-low {
    border-color: rgba(239, 68, 68, 0.45);
    color: #fca5a5;
}

.eis-ods-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.eis-ods-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px;
}

.eis-ods-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.eis-ods-id {
    font-size: 10px;
    font-weight: 700;
    color: #93c5fd;
}

.eis-ods-score {
    font-size: 12px;
    font-weight: 700;
    font-family: 'JetBrains Mono', Consolas, monospace;
}

.eis-ods-card-title {
    font-size: 10px;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.75);
}

.eis-ods-meta {
    font-size: 9px;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.55);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
}

/* Evidence badge — SPEC §4.2 niveis none/low/medium/high */
.eis-ods-evidence-badge {
    display: inline-block;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 1px 5px;
    border-radius: 4px;
    color: #0b1220;
    min-width: 38px;
    text-align: center;
}

.eis-ods-elig {
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 8.5px;
    color: rgba(255, 255, 255, 0.45);
}

.eis-ods-card {
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid transparent;
    transition: transform 0.12s ease, background 0.12s ease;
}
.eis-ods-card:hover,
.eis-ods-card:focus-visible {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}
.eis-ods-card:focus-visible {
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.6);
}
.eis-ods-card[data-evidence='none'] {
    opacity: 0.55;
    cursor: help;
}
.eis-ods-card[data-evidence='none']:hover {
    opacity: 0.85;
}

/* —— ODS Drill-down modal (SPEC §7 bullet 3) ——————————— */
.eis-ods-drilldown-modal[hidden] {
    display: none;
}
.eis-ods-drilldown-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}
.eis-ods-drill-inner {
    background: #0f1419;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    max-width: var(--ecbt-modal-sm, clamp(320px, 90vw, 480px));
    width: 100%;
    max-height: 85vh;
    overflow: auto;
    color: #eef1f4;
}
.eis-ods-drill-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 14px 16px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.eis-ods-drill-id {
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.05em;
}
.eis-ods-drill-title {
    margin: 2px 0 0;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}
.eis-ods-drill-close {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
}
.eis-ods-drill-close:hover {
    color: #fff;
}
.eis-ods-drill-body {
    padding: 12px 16px 16px;
}
.eis-ods-drill-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}
.eis-ods-drill-stat {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 6px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.eis-ods-drill-stat span {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
}
.eis-ods-drill-stat strong {
    font-size: 16px;
    font-family: 'JetBrains Mono', Consolas, monospace;
    color: #fff;
}
.eis-ods-drill-eligible {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 5px;
}
.eis-ods-drill-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: #0b1220;
    min-width: 46px;
    text-align: center;
}
.eis-ods-drill-badge[data-evidence='none'] {
    background: #6b7280;
    color: #fff;
}
.eis-ods-drill-badge[data-evidence='low'] {
    background: #f97316;
}
.eis-ods-drill-badge[data-evidence='medium'] {
    background: #f59e0b;
}
.eis-ods-drill-badge[data-evidence='high'] {
    background: #22c55e;
}
.eis-ods-drill-section {
    margin: 10px 0 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.6);
}
.eis-ods-drill-notes {
    margin: 0;
    padding-left: 18px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.78);
}
.eis-ods-drill-notes li + li {
    margin-top: 4px;
}
.eis-ods-drill-muted {
    font-size: 11px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
}
.eis-ods-drill-formula {
    margin-top: 14px;
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.5);
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 5px;
    line-height: 1.4;
}
.eis-ods-drill-formula code {
    font-family: 'JetBrains Mono', Consolas, monospace;
    color: rgba(255, 255, 255, 0.78);
}

/* —— Quality Extensions (Validity/Uniqueness/Uncertainty/Exception) ——— */
.eis-quality-extensions {
    margin: 10px 0 0;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid rgba(99, 102, 241, 0.22);
    background: rgba(30, 41, 76, 0.28);
}

.eis-quality-extensions:empty {
    display: none;
}

.eis-qx-title {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.eis-qx-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.eis-qx-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.eis-qx-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.eis-qx-top b {
    font-size: 12px;
    color: #c4b5fd;
    font-family: 'JetBrains Mono', Consolas, monospace;
}

.eis-qx-meta {
    font-size: 9px;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.56);
}

.eis-qx-fix-btn {
    align-self: flex-start;
    border: 1px solid rgba(99, 102, 241, 0.45);
    background: rgba(99, 102, 241, 0.14);
    color: #c7d2fe;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    cursor: pointer;
}

.eis-qx-fix-btn.secondary {
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(148, 163, 184, 0.12);
    color: #cbd5e1;
}

.eis-fix-box {
    margin-top: 8px;
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 8px;
    background: rgba(30, 41, 76, 0.32);
    padding: 8px;
}

.eis-fix-title {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 6px;
}

.eis-fix-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    align-items: end;
}

.eis-fix-controls label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.72);
}

.eis-fix-controls select,
.eis-fix-controls input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--eis-text);
    border-radius: 6px;
    padding: 5px 7px;
    font-size: 11px;
}

.eis-fix-meta {
    margin-top: 6px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.62);
}

/* ── Data Issues / Problems List ──────────────────────────────── */
.eis-problems-section {
    margin-top: 10px;
    border-top: 1px solid var(--eis-border, rgba(99, 102, 241, 0.2));
    padding-top: 8px;
}

.eis-problems-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.eis-problems-count {
    font-size: 10px;
    font-weight: 700;
    color: var(--eis-red, #ef4444);
}

.eis-problems-list {
    max-height: 160px;
    overflow-y: auto;
}

.eis-problem-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 4px;
    border-radius: 3px;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.65);
}

.eis-problem-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.eis-problem-element {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    max-width: var(--ecbt-input-sm);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 0;
}

.eis-problem-field {
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.eis-problem-fix {
    color: var(--eis-accent, #6366f1);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eis-problem-goto {
    font-size: 9px;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: var(--eis-accent, #6366f1);
    cursor: pointer;
    padding: 0;
    line-height: 16px;
    text-align: center;
    flex-shrink: 0;
}

.eis-problem-goto:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--eis-accent, #6366f1);
}

.eis-problems-show-all {
    display: block;
    width: 100%;
    padding: 4px 0;
    margin-top: 4px;
    font-size: 9px;
    color: var(--eis-accent, #6366f1);
    background: transparent;
    border: 1px dashed rgba(99, 102, 241, 0.2);
    border-radius: 3px;
    cursor: pointer;
    font-family: inherit;
}

.eis-problems-show-all:hover {
    background: rgba(99, 102, 241, 0.06);
}

.eis-problems-hint {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.35);
    font-style: italic;
    margin-top: 8px;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

/* ── Refresh button ───────────────────────────────────────────── */
.eis-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.eis-view-toggle {
    display: inline-flex;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    overflow: hidden;
}

.eis-view-btn {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    letter-spacing: 0.02em;
}

.eis-view-btn + .eis-view-btn {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.eis-view-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.75);
}

.eis-view-btn.active {
    background: rgba(99, 102, 241, 0.25);
    color: rgba(255, 255, 255, 0.9);
}

.eis-refresh-btn {
    font-size: 16px;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
    line-height: 26px;
    text-align: center;
    transition: color 0.15s, border-color 0.15s;
}

.eis-calc-btn {
    font-size: 11px;
    font-weight: 700;
    min-width: 42px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid rgba(99, 102, 241, 0.45);
    background: rgba(99, 102, 241, 0.12);
    color: #c7d2fe;
    cursor: pointer;
}

.eis-custom-entry-btn {
    font-size: 11px;
    font-weight: 700;
    min-width: 58px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid rgba(56, 189, 248, 0.5);
    background: rgba(56, 189, 248, 0.14);
    color: #bae6fd;
    cursor: pointer;
}

.eis-custom-entry-btn:hover {
    background: rgba(56, 189, 248, 0.22);
}

.eis-calc-btn:hover {
    background: rgba(99, 102, 241, 0.2);
}

.eis-refresh-btn:hover {
    color: var(--eis-accent, #6366f1);
    border-color: var(--eis-accent, #6366f1);
}

/* ── Verdict badge ──────────────────────────────────────────────── */
.eis-verdict-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.eis-verdict-badge.green {
    background: rgba(34, 197, 94, 0.12);
    color: var(--eis-green);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.eis-verdict-badge.yellow {
    background: rgba(234, 179, 8, 0.12);
    color: var(--eis-yellow);
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.eis-verdict-badge.red {
    background: rgba(239, 68, 68, 0.12);
    color: var(--eis-red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.eis-verdict-desc {
    font-size: 11px;
    color: var(--eis-muted);
}

/* ── Vetoed indicator ───────────────────────────────────────────── */
.eis-vetoed-badge {
    display: none;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--radius-lg);
    font-size: 11px;
    font-weight: 700;
    background: rgba(239, 68, 68, 0.15);
    color: var(--eis-red);
    border: 1px solid rgba(239, 68, 68, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.eis-vetoed-badge.visible {
    display: inline-flex;
}

/* UNC-001 Phase 1 MVP — .uncertainty-* classes moved to uncertainty-badge.css
   per CLAUDE.md "CSS File Ownership" rule (eis.css owns .eis-* only). */

/* ── Controls row (mode + credential) ───────────────────────────── */
/* ── Advanced Settings (details/summary) ──────────────────────── */
.eis-advanced-details {
    margin: 6px 0 0;
}

.eis-quick-custom-entry {
    margin: 10px 0 0;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(99, 102, 241, 0.28);
    background: rgba(49, 46, 129, 0.22);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.eis-quick-custom-entry span {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.eis-quick-custom-btn {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    border: 1px solid rgba(199, 210, 254, 0.35);
    color: #eef2ff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.eis-quick-custom-btn:hover {
    filter: brightness(1.08);
}

.eis-quick-custom-btn-secondary {
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.45);
    color: #86efac;
}

.eis-advanced-summary {
    font-size: 10px;
    font-weight: 600;
    color: var(--eis-muted, rgba(255,255,255,0.5));
    cursor: pointer;
    padding: 6px 0;
    list-style: none;
    -webkit-user-select: none;
    user-select: none;
}

.eis-advanced-summary::-webkit-details-marker { display: none; }

.eis-advanced-summary::before {
    content: '&#9654; ';
    font-size: 10px;
    margin-right: 4px;
    display: inline-block;
    transition: transform 0.15s ease;
}

.eis-advanced-details[open] > .eis-advanced-summary::before {
    transform: rotate(90deg);
}

.eis-advanced-summary:hover {
    color: var(--eis-text, rgba(255,255,255,0.87));
}

.eis-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    padding: 8px 0;
}

.eis-control-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 0 1 auto;
}

.eis-control-label {
    font-size: 10px;
    color: var(--eis-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ── Mode toggle ────────────────────────────────────────────────── */
.eis-mode-toggle {
    display: flex;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--eis-border);
}

.eis-mode-btn {
    flex: 1;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.78);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.eis-mode-btn + .eis-mode-btn {
    border-left: 1px solid var(--eis-border);
}

.eis-mode-btn.active {
    background: var(--eis-accent);
    color: #fff;
}

.eis-mode-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* ── Credential info (read-only, computed from data) ────────────── */
.eis-credential-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--eis-border);
    border-radius: var(--radius-xl);
}

.eis-cred-mult {
    font-weight: 700;
    font-size: 14px;
    color: var(--eis-accent);
}

.eis-cred-count {
    font-size: 11px;
    color: var(--eis-muted);
}

.eis-cred-breakdown {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.35);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Radar chart card (right) ───────────────────────────────────── */
.eis-radar-card {
    background: var(--eis-card);
    border: 1px solid var(--eis-border);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
}

.eis-radar-canvas {
    max-width: 100%;
    max-height: 220px;
}

/* ── Sliders section ────────────────────────────────────────────── */
.eis-sliders-section {
    background: var(--eis-card);
    border: 1px solid var(--eis-border);
    border-radius: 12px;
    padding: 16px 20px;
}

.eis-sliders-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--eis-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

/* ── Slider row ─────────────────────────────────────────────────── */
.eis-slider-row {
    display: grid;
    grid-template-columns: 30px 1fr auto 36px 40px;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
}

.eis-slider-row + .eis-slider-row {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.eis-axis-abbr {
    font-size: 13px;
    font-weight: 700;
    color: var(--eis-accent);
}

.eis-axis-name {
    font-size: 12px;
    color: var(--eis-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Range slider custom ────────────────────────────────────────── */
.eis-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    cursor: pointer;
}

.eis-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--eis-accent);
    border: 2px solid #fff;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.1s;
}

.eis-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.eis-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--eis-accent);
    border: 2px solid #fff;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.eis-slider-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 24px;
    border-radius: var(--radius-lg);
    background: rgba(99, 102, 241, 0.15);
    color: var(--eis-accent);
    font-size: 13px;
    font-weight: 700;
}

.eis-slider-weight {
    font-size: 10px;
    color: var(--eis-muted);
    text-align: right;
}

/* ── Footer ─────────────────────────────────────────────────────── */
.eis-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 24px;
    border-top: 1px solid var(--eis-border);
}

.eis-btn {
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-xl);
    border: 1px solid var(--eis-border);
    background: transparent;
    color: var(--eis-muted);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.eis-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--eis-text);
}

.eis-btn-primary {
    background: var(--eis-accent);
    color: #fff;
    border-color: var(--eis-accent);
}

.eis-btn-primary:hover {
    background: #5558e6;
}

/* ── Responsive: stack on narrow ────────────────────────────────── */
@media (max-width: 640px) {
    .eis-top-row {
        grid-template-columns: 1fr;
    }
    .eis-score-card {
        width: 100%;
    }
    .eis-slider-row {
        grid-template-columns: 28px auto 1fr 28px 34px;
        gap: 6px;
    }
    .eis-modal {
        width: 96%;
        max-height: 92vh;
    }
}

/* ── HUD Mini Radar Canvas ───────────────────────────────────────── */
#eis-hud-canvas,
#cost-hud-canvas {
    border-radius: var(--radius-lg);
    transition: opacity 0.2s;
    touch-action: none;
    background: var(--bottom-bg-solid);
    border: 1px solid var(--bottom-border);
    box-shadow: var(--shadow-md);
}

#eis-hud-canvas:hover,
#cost-hud-canvas:hover {
    opacity: 0.85;
}

/* --- Custom EIS builder (EIS-CUSTOM-001) --- */
.eis-custom-profile-bar {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.eis-custom-profile-bar select {
    min-width: 220px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--eis-text);
    border-radius: 6px;
    padding: 6px 8px;
}

.eis-custom-btn {
    background: rgba(99, 102, 241, 0.16);
    border: 1px solid rgba(99, 102, 241, 0.45);
    color: #c7d2fe;
    padding: 5px 9px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
}

.eis-custom-btn:hover {
    background: rgba(99, 102, 241, 0.24);
}

.eis-custom-btn.danger {
    border-color: rgba(239, 68, 68, 0.5);
    color: #fecaca;
    background: rgba(239, 68, 68, 0.14);
}

.eis-custom-meta-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 8px 0;
}

.eis-custom-pill {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 3px 8px;
    text-transform: uppercase;
}

.eis-custom-pill.dirty {
    border-color: rgba(249, 115, 22, 0.45);
    color: #fb923c;
}

.eis-custom-name-row input,
.eis-custom-rules-row input[type='number'],
.eis-custom-axis-name,
.eis-custom-axis-weight {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--eis-text);
    border-radius: 6px;
    padding: 5px 8px;
}

.eis-custom-name-row input {
    width: 100%;
    margin-bottom: 8px;
}

.eis-custom-rules-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.eis-custom-rule-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.82);
}

.eis-custom-quick-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.eis-custom-quick-hint {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.62);
}

.eis-custom-axis-row {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 8px;
}

.eis-custom-axis-header {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
}

.eis-custom-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.72);
}

.eis-custom-formula-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    align-items: center;
    margin-bottom: 4px;
}

.eis-custom-formula-row label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.62);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.eis-custom-axis-formula {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--eis-text);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 11px;
    width: 100%;
    min-height: 30px;
    appearance: none;
}

.eis-custom-axis-formula.is-readonly {
    border-style: dashed;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(148, 163, 184, 0.08);
}

.eis-custom-formula-bounds {
    grid-column: 2 / 4;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.58);
}

.eis-custom-open-calculator {
    border: 1px solid rgba(34, 197, 94, 0.45);
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    padding: 6px 8px;
    cursor: pointer;
}

.eis-custom-open-calculator:hover {
    background: rgba(34, 197, 94, 0.18);
}

.eis-custom-axis-desc,
.eis-custom-axis-benchmark {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 4px;
}

.eis-custom-actions-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 8px 0;
}

.eis-custom-guard {
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 8px;
    padding: 8px;
    margin: 8px 0 6px;
    background: rgba(15, 23, 42, 0.35);
}

.eis-custom-guard.ok {
    border-color: rgba(34, 197, 94, 0.5);
    background: rgba(22, 101, 52, 0.2);
}

.eis-custom-guard.blocked {
    border-color: rgba(239, 68, 68, 0.55);
    background: rgba(127, 29, 29, 0.22);
}

.eis-custom-guard-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 6px;
    color: rgba(241, 245, 249, 0.95);
}

.eis-custom-guard-ok {
    font-size: 12px;
    color: #86efac;
}

.eis-custom-guard-list {
    margin: 0;
    padding-left: 16px;
    display: grid;
    gap: 6px;
}

.eis-custom-guard-list li {
    font-size: 12px;
    color: #fecaca;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.eis-custom-guard-fix {
    border: 1px solid rgba(248, 113, 113, 0.5);
    background: rgba(248, 113, 113, 0.16);
    color: #fecaca;
    border-radius: 6px;
    padding: 2px 7px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.eis-custom-guard-fix:hover {
    background: rgba(248, 113, 113, 0.28);
}

.eis-custom-compare-box {
    margin-top: 8px;
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 8px;
    background: rgba(30, 41, 76, 0.3);
    padding: 8px;
}

.eis-custom-compare-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.75);
}

.eis-custom-compare-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 10px;
    font-size: 12px;
}

.eis-custom-compare-grid b {
    color: #e2e8f0;
    font-family: 'JetBrains Mono', Consolas, monospace;
}

.eis-custom-compare-grid .pos {
    color: #22c55e;
}

.eis-custom-compare-grid .neg {
    color: #ef4444;
}

.eis-uncertainty-container {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    position: relative;
}

.eis-source-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    margin-bottom: 2px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
}

.eis-source-badge.runtime {
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.35);
}

.eis-source-badge.sql {
    color: #86efac;
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
}

/* —— ENV-VAL-001 Phase 2 — Card HUD de Valoração Ambiental ———— */
.env-valuation-hud-mount:empty {
    display: none;
}

.env-val-hud-card {
    margin: 8px 0 0;
    padding: 10px 12px;
    background: rgba(30, 64, 50, 0.25);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-left: 3px solid #22c55e;
    border-radius: 6px;
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.85);
}

.env-val-hud-head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.env-val-hud-icon {
    color: #22c55e;
    font-weight: 700;
}

.env-val-hud-title {
    flex: 1;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.72);
}

.env-val-hud-count {
    font-size: 9.5px;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'JetBrains Mono', Consolas, monospace;
}

.env-val-hud-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.env-val-hud-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.env-val-hud-value {
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 14px;
    font-weight: 700;
}

.env-val-hud-value[data-sign='pos'],
.env-val-hud-cat-vpl[data-sign='pos'] {
    color: #22c55e;
}

.env-val-hud-value[data-sign='neg'],
.env-val-hud-cat-vpl[data-sign='neg'] {
    color: #ef4444;
}

.env-val-hud-breakdown {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.env-val-hud-row {
    display: flex;
    justify-content: space-between;
    font-size: 10.5px;
}

.env-val-hud-cat {
    color: rgba(255, 255, 255, 0.65);
    text-transform: capitalize;
}

.env-val-hud-cat-vpl {
    font-family: 'JetBrains Mono', Consolas, monospace;
}

.env-val-hud-expand {
    width: 100%;
    padding: 4px 8px;
    font-size: 10px;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s;
}

.env-val-hud-expand:hover {
    background: rgba(34, 197, 94, 0.2);
}
