/* =============================================================================
   🔬 RENORMALIZATION GROUP — Wilson's RG Lab panel CSS
   ============================================================================= */

.panel-rg {
    background:
        radial-gradient(ellipse at top right, rgba(255,216,107,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,216,107,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,216,107,0.10);
}

.rg-headline-row {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 14px; margin: 12px 0 16px;
}
.rg-stat-card {
    background: linear-gradient(180deg, var(--rg-stat-bg, rgba(255,216,107,0.06)), rgba(10,8,24,0.50));
    border: 1px solid var(--rg-stat-border, rgba(255,216,107,0.24));
    border-radius: 10px; padding: 12px 14px;
}
.rg-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;
}
.rg-stat-value {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 22px; font-weight: 600;
    color: var(--rg-stat-color, #ffd86b);
    text-shadow: 0 0 10px var(--rg-stat-color, rgba(255,216,107,0.30));
}
.rg-stat-sub {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 11px; color: #888aa0; font-style: italic; margin-top: 4px;
}

.rg-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;
}
.rg-canvas-title {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 12px; color: #ddc88a; letter-spacing: 0.6px; margin-bottom: 8px;
}
.rg-canvas {
    width: 100%; height: 300px; display: block; border-radius: 6px;
}
.rg-legend {
    display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px;
    font-family: "Times New Roman", Georgia, serif; font-size: 11px;
    color: #888aa0;
}
.rg-legend-dot {
    display: inline-block; width: 10px; height: 10px; border-radius: 50%;
    box-shadow: 0 0 4px currentColor; margin-right: 4px;
}

/* Per-scale correlation thumbnails */
.rg-thumbs-row {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px; margin-bottom: 16px;
}
.rg-thumb-card {
    background: rgba(10,8,24,0.55);
    border: 1px solid rgba(212,175,55,0.14);
    border-radius: 10px; padding: 8px;
    text-align: center;
}
.rg-thumb-title {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 10.5px; color: #b095f5; letter-spacing: 0.4px;
    margin-bottom: 4px;
}
.rg-thumb-canvas {
    width: 100%; height: 110px; display: block; border-radius: 4px;
}
.rg-thumb-stat {
    font-family: "Cascadia Mono", "Courier New", monospace;
    font-size: 10px; color: #ddc88a; margin-top: 4px;
}

.rg-spine-card {
    background: linear-gradient(180deg, rgba(255,216,107,0.06), rgba(10,8,24,0.55));
    border: 1px dashed rgba(255,216,107,0.40);
    border-radius: 10px; padding: 12px 16px; margin-bottom: 16px;
    font-family: "Times New Roman", Georgia, serif;
    font-size: 13px; color: #ddc88a; line-height: 1.6;
    text-align: center;
}
.rg-spine-card strong { color: #ffd86b; font-weight: 700; }

.rg-interp {
    background: linear-gradient(90deg, rgba(255,216,107,0.07), transparent 80%);
    border-left: 2px solid rgba(255,216,107,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;
}
.rg-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);
}
.rg-refresh-btn {
    background: rgba(255,216,107,0.10); color: #ffd86b;
    border: 1px solid rgba(255,216,107,0.30);
    border-radius: 999px; padding: 6px 14px;
    font-family: "Times New Roman", Georgia, serif; font-size: 12px;
    cursor: pointer; transition: background 0.15s, transform 0.15s;
}
.rg-refresh-btn:hover:not(:disabled) { background: rgba(255,216,107,0.20); transform: translateY(-1px); }
.rg-foot-note {
    font-family: "Times New Roman", Georgia, serif;
    font-style: italic; font-size: 11px; color: #888aa0;
}

@media (max-width: 900px) {
    .rg-headline-row { grid-template-columns: 1fr 1fr; }
    .rg-canvas { height: 220px; }
}
