/* =============================================================================
   🌉 SCHRÖDINGER BRIDGE — entropic OT ribbon Lab panel CSS
   ============================================================================= */

.panel-sb {
    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.07), 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);
}

/* ── HEADLINE STRIP ────────────────────────────────────────────────────── */

.sb-headline-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 12px 0 16px;
}

.sb-headline-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;
}

.sb-headline-label {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 10.5px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #b095f5;
    margin-bottom: 4px;
}

.sb-headline-value {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 22px;
    font-weight: 600;
    color: #9bd5ff;
    line-height: 1.2;
    letter-spacing: 0.8px;
}

.sb-headline-sub {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 11px;
    color: #888aa0;
    font-style: italic;
    margin-top: 4px;
}

/* ── CONFIG STRIP ──────────────────────────────────────────────────────── */

.sb-config-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 14px;
    align-items: center;
    background: rgba(10,8,24,0.45);
    border: 1px dashed rgba(212,175,55,0.16);
    border-radius: 8px;
    padding: 8px 12px;
}

.sb-config-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: "Times New Roman", Georgia, serif;
    font-size: 11.5px;
    color: #b095f5;
    letter-spacing: 0.4px;
}

.sb-config-group label {
    color: #888aa0;
    font-style: italic;
}

.sb-select {
    background: rgba(176,149,245,0.10);
    border: 1px solid rgba(176,149,245,0.30);
    border-radius: 6px;
    color: #ddc88a;
    font-family: "Times New Roman", Georgia, serif;
    font-size: 11.5px;
    padding: 3px 8px;
    cursor: pointer;
}
.sb-select:focus { outline: 1px solid #d699ff; }

/* ── RIBBON CANVAS (the marquee visual) ────────────────────────────────── */

.sb-ribbon-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;
}

.sb-ribbon-title {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 12px;
    color: #ddc88a;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
}

.sb-ribbon-canvas {
    width: 100%;
    height: 320px;
    display: block;
    border-radius: 6px;
}

.sb-ribbon-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 8px;
    font-family: "Times New Roman", Georgia, serif;
    font-size: 11px;
    color: #888aa0;
}

.sb-ribbon-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.sb-gradient-strip {
    display: inline-block;
    width: 80px;
    height: 10px;
    border-radius: 2px;
    background: linear-gradient(90deg, #0a0818, #2a1f55, #5d3a8e, #d699ff, #ffd86b, #ff7b9d);
    border: 1px solid rgba(255,255,255,0.18);
}

/* ── COUPLING HEATMAP + ROUTES ─────────────────────────────────────────── */

.sb-detail-row {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
}

.sb-card {
    background: rgba(10,8,24,0.55);
    border: 1px solid rgba(212,175,55,0.14);
    border-radius: 10px;
    padding: 12px 14px;
}

.sb-card-title {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 12px;
    color: #ddc88a;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
}

.sb-coupling-canvas {
    width: 100%;
    height: 280px;
    display: block;
    border-radius: 6px;
}

.sb-routes-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: 290px;
    overflow-y: auto;
}

.sb-route-item {
    display: grid;
    grid-template-columns: 1fr 60px;
    align-items: center;
    gap: 8px;
    font-family: "Times New Roman", Georgia, serif;
    font-size: 12px;
    color: #ddc88a;
    padding: 4px 8px;
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(155,213,255,0.06), transparent 80%);
    border-left: 2px solid rgba(155,213,255,0.40);
}

.sb-route-arrow {
    color: #9bd5ff;
    font-weight: 600;
    margin: 0 4px;
}

.sb-route-mass {
    text-align: right;
    color: #ffd86b;
    font-variant-numeric: tabular-nums;
    font-size: 11.5px;
    font-weight: 600;
}

.sb-stat-list {
    list-style: none;
    padding: 0;
    margin: 6px 0 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sb-stat-item {
    display: grid;
    grid-template-columns: 1fr 60px;
    gap: 8px;
    align-items: center;
    font-family: "Times New Roman", Georgia, serif;
    font-size: 11.5px;
    color: #ddc88a;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(214,153,255,0.05);
}

.sb-stat-share {
    text-align: right;
    color: #d699ff;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

/* ── INTERPRETATION + FOOT ─────────────────────────────────────────────── */

.sb-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;
}

.sb-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);
}

.sb-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;
}
.sb-refresh-btn:hover:not(:disabled) {
    background: rgba(155,213,255,0.20);
    transform: translateY(-1px);
}
.sb-refresh-btn:disabled { opacity: 0.55; cursor: progress; }

.sb-foot-note {
    font-family: "Times New Roman", Georgia, serif;
    font-style: italic;
    font-size: 11px;
    color: #888aa0;
}

@media (max-width: 900px) {
    .sb-headline-row { grid-template-columns: repeat(2, 1fr); }
    .sb-detail-row { grid-template-columns: 1fr; }
    .sb-ribbon-canvas { height: 240px; }
    .sb-coupling-canvas { height: 220px; }
}
