/* =============================================================================
   🔄 WASSERSTEIN BARYCENTRE — Lab panel CSS
   ============================================================================= */

.panel-wb {
    background:
        radial-gradient(ellipse at top right, rgba(155,213,255,0.07), transparent 60%),
        radial-gradient(ellipse at bottom left, rgba(214,153,255,0.06), transparent 60%),
        linear-gradient(180deg, rgba(28,20,55,0.94), rgba(10,8,24,0.97));
    border: 1px solid rgba(155,213,255,0.30);
    border-radius: 14px;
    padding: 22px 26px;
    margin-top: 18px;
    box-shadow: 0 10px 32px rgba(0,0,0,0.45), inset 0 1px 0 rgba(155,213,255,0.10);
}

.wb-headline-row {
    display: grid; grid-template-columns: 240px repeat(3, 1fr);
    gap: 14px; margin: 12px 0 16px; align-items: stretch;
}

.wb-resonance-card {
    background: linear-gradient(180deg, var(--wb-res-bg, rgba(214,153,255,0.10)), rgba(10,8,24,0.55));
    border: 1px solid var(--wb-res-border, rgba(214,153,255,0.40));
    border-radius: 12px; padding: 16px 14px;
    display: flex; flex-direction: column; align-items: center;
    justify-content: center;
}
.wb-res-label {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase;
    color: #b095f5; margin-bottom: 6px;
}
.wb-res-value {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 32px; font-weight: 700;
    color: var(--wb-res-color, #d699ff);
    text-shadow: 0 0 14px var(--wb-res-color, #d699ff);
    line-height: 1; letter-spacing: 1px;
}
.wb-res-class {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 13px; font-weight: 600;
    color: var(--wb-res-color, #d699ff);
    margin-top: 6px; text-transform: uppercase; letter-spacing: 0.8px;
}
.wb-res-meter {
    margin-top: 10px; width: 100%;
    height: 6px; border-radius: 3px;
    background: linear-gradient(90deg, #ff7b9d 0%, #ffd86b 50%, #88d8b0 100%);
    position: relative;
}
.wb-res-needle {
    position: absolute; top: -3px; bottom: -3px; width: 4px;
    background: #0a0818; border: 1.5px solid #ffd86b; border-radius: 2px;
    box-shadow: 0 0 8px #ffd86b; transition: left 0.7s ease;
}

.wb-stat-card {
    background: linear-gradient(180deg, rgba(155,213,255,0.06), rgba(10,8,24,0.50));
    border: 1px solid rgba(155,213,255,0.24);
    border-radius: 10px; padding: 12px 14px;
    display: flex; flex-direction: column; justify-content: center;
}
.wb-stat-label {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase;
    color: #b095f5; margin-bottom: 4px;
}
.wb-stat-value {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 20px; font-weight: 600; color: #9bd5ff;
}
.wb-stat-sub {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 11px; color: #888aa0; font-style: italic; margin-top: 4px;
}

.wb-canvas-wrap {
    background: rgba(10,8,24,0.55);
    border: 1px solid rgba(212,175,55,0.14);
    border-radius: 10px; padding: 14px; margin-bottom: 16px;
}
.wb-canvas-title {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 12px; color: #ddc88a; letter-spacing: 0.6px; margin-bottom: 8px;
}
.wb-canvas {
    width: 100%; height: 260px; display: block; border-radius: 6px;
}
.wb-legend {
    display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px;
    font-family: "Times New Roman", Georgia, serif; font-size: 11px;
    color: #888aa0;
}
.wb-legend-dot {
    display: inline-block; width: 10px; height: 10px; border-radius: 50%;
    box-shadow: 0 0 4px currentColor; margin-right: 4px;
}

.wb-interp {
    background: linear-gradient(90deg, rgba(155,213,255,0.07), transparent 80%);
    border-left: 2px solid rgba(155,213,255,0.50);
    border-radius: 0 6px 6px 0; padding: 10px 16px;
    font-family: "Times New Roman", Georgia, serif;
    font-style: italic; font-size: 13px; color: #ddc88a;
    line-height: 1.5; margin-bottom: 12px;
}
.wb-foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding-top: 12px;
    border-top: 1px dashed rgba(212,175,55,0.14);
}
.wb-refresh-btn {
    background: rgba(155,213,255,0.10); color: #9bd5ff;
    border: 1px solid rgba(155,213,255,0.30);
    border-radius: 999px; padding: 5px 14px;
    font-family: "Times New Roman", Georgia, serif; font-size: 12px;
    cursor: pointer; transition: background 0.15s, transform 0.15s;
}
.wb-refresh-btn:hover:not(:disabled) {
    background: rgba(155,213,255,0.20); transform: translateY(-1px);
}
.wb-foot-note {
    font-family: "Times New Roman", Georgia, serif;
    font-style: italic; font-size: 11px; color: #888aa0;
}

@media (max-width: 900px) {
    .wb-headline-row { grid-template-columns: 1fr; }
    .wb-canvas { height: 200px; }
}
