/* =============================================================================
   🌡 STOCHASTIC THERMODYNAMICS — Lab panel CSS
   ============================================================================= */

.panel-st {
    background:
        radial-gradient(ellipse at top right, rgba(255,123,157,0.07), transparent 60%),
        radial-gradient(ellipse at bottom left, rgba(155,213,255,0.07), transparent 60%),
        linear-gradient(180deg, rgba(28,20,55,0.94), rgba(10,8,24,0.97));
    border: 1px solid rgba(255,123,157,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(255,123,157,0.10);
}

.st-headline-row {
    display: grid; grid-template-columns: 240px 1fr 1fr 1fr;
    gap: 14px; margin: 12px 0 16px;
    align-items: stretch;
}

/* Round temperature gauge */
.st-temp-gauge-wrap {
    background: radial-gradient(circle at 50% 60%, rgba(255,123,157,0.10), transparent 70%),
                linear-gradient(180deg, rgba(255,123,157,0.06), rgba(10,8,24,0.55));
    border: 1px solid rgba(255,123,157,0.30);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.st-temp-gauge-label {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 10.5px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #b095f5;
    margin-bottom: 4px;
}
.st-temp-gauge-svg {
    width: 180px; height: 130px; display: block;
}
.st-temp-gauge-value {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 22px; font-weight: 600;
    color: #ff7b9d; margin-top: 4px;
    letter-spacing: 1px;
}
.st-temp-gauge-sub {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 11px; color: #888aa0; font-style: italic;
    margin-top: 2px;
}

.st-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;
}
.st-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;
}
.st-stat-value {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 22px; font-weight: 600;
    color: #9bd5ff; line-height: 1.2;
    letter-spacing: 0.5px;
}
.st-stat-sub {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 11px; color: #888aa0; font-style: italic;
    margin-top: 4px;
}

/* Entropy production sparkline */
.st-spark-wrap {
    background: rgba(10,8,24,0.55);
    border: 1px solid rgba(212,175,55,0.14);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
}
.st-spark-title {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 12px; color: #ddc88a; letter-spacing: 0.6px; margin-bottom: 8px;
}
.st-spark-canvas {
    width: 100%; height: 180px; display: block; border-radius: 6px;
}
.st-spark-legend {
    display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px;
    font-family: "Times New Roman", Georgia, serif; font-size: 11px;
    color: #888aa0;
}
.st-spark-dot {
    display: inline-block; width: 10px; height: 10px; border-radius: 50%;
    box-shadow: 0 0 4px currentColor;
    margin-right: 4px;
}

/* Detail row */
.st-detail-row {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 14px; margin-bottom: 16px;
}
.st-card {
    background: rgba(10,8,24,0.55);
    border: 1px solid rgba(212,175,55,0.14);
    border-radius: 10px;
    padding: 12px 14px;
}
.st-card-title {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 12px; color: #ddc88a; letter-spacing: 0.6px; margin-bottom: 10px;
}

/* Mood occupancy bars */
.st-mood-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 6px;
}
.st-mood-item {
    display: grid; grid-template-columns: 80px 1fr 50px;
    align-items: center; gap: 8px;
    font-family: "Times New Roman", Georgia, serif; font-size: 12px;
}
.st-mood-name {
    color: var(--st-mood-hue, #b095f5); font-weight: 600; letter-spacing: 0.4px;
}
.st-mood-bar {
    height: 9px; border-radius: 4.5px;
    background: rgba(255,255,255,0.04);
    overflow: hidden; position: relative;
}
.st-mood-fill {
    position: absolute; top: 0; left: 0; bottom: 0;
    background: linear-gradient(90deg,
        color-mix(in srgb, var(--st-mood-hue, #b095f5) 40%, transparent),
        var(--st-mood-hue, #b095f5));
    border-radius: 4.5px;
    box-shadow: 0 0 4px var(--st-mood-hue, #b095f5);
    transition: width 0.7s cubic-bezier(0.25,1.1,0.4,1);
}
.st-mood-pct {
    text-align: right; color: #ddc88a;
    font-variant-numeric: tabular-nums; font-weight: 600; font-size: 11.5px;
}

/* Irreversible flows */
.st-flow-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 6px;
}
.st-flow-item {
    display: grid; grid-template-columns: 1fr 60px;
    align-items: center; gap: 8px;
    padding: 5px 10px;
    background: linear-gradient(90deg, rgba(255,123,157,0.06), transparent 80%);
    border-left: 2px solid rgba(255,123,157,0.40);
    border-radius: 0 6px 6px 0;
    font-family: "Times New Roman", Georgia, serif; font-size: 12px;
    color: #ddc88a;
}
.st-flow-arrow {
    color: #ff7b9d; font-weight: 600; margin: 0 4px;
}
.st-flow-magnitude {
    text-align: right; color: #ffd86b;
    font-variant-numeric: tabular-nums; font-size: 11.5px; font-weight: 600;
}

/* Jarzynski card */
.st-jarz-card {
    background: linear-gradient(180deg, rgba(255,216,107,0.06), rgba(10,8,24,0.55));
    border: 1px solid rgba(255,216,107,0.30);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
}
.st-jarz-row {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    font-family: "Times New Roman", Georgia, serif;
}
.st-jarz-stat {
    text-align: center;
}
.st-jarz-stat-label {
    font-size: 10.5px; letter-spacing: 1.6px;
    text-transform: uppercase; color: #b095f5;
    margin-bottom: 4px;
}
.st-jarz-stat-value {
    font-size: 18px; font-weight: 600; color: #ffd86b;
    font-variant-numeric: tabular-nums;
}
.st-jarz-ci {
    color: #888aa0; font-style: italic; font-size: 11px;
    margin-top: 2px;
}
.st-jarz-note {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 11px; color: #b095f5; font-style: italic;
    text-align: center; margin-top: 8px;
}

.st-interp {
    background: linear-gradient(90deg, rgba(255,123,157,0.07), transparent 80%);
    border-left: 2px solid rgba(255,123,157,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;
}
.st-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);
}
.st-refresh-btn {
    background: rgba(255,123,157,0.10); color: #ff7b9d;
    border: 1px solid rgba(255,123,157,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;
}
.st-refresh-btn:hover:not(:disabled) { background: rgba(255,123,157,0.20); transform: translateY(-1px); }
.st-foot-note {
    font-family: "Times New Roman", Georgia, serif;
    font-style: italic; font-size: 11px; color: #888aa0;
}

@media (max-width: 900px) {
    .st-headline-row { grid-template-columns: 1fr; }
    .st-detail-row { grid-template-columns: 1fr; }
    .st-jarz-row { grid-template-columns: 1fr; }
}
