/* =============================================================================
   🧠 NEURAL ODE — temporal evolution Lab panel · the grand finale
   ============================================================================= */

.panel-node {
    background:
        radial-gradient(ellipse at top right, rgba(214,153,255,0.10), transparent 60%),
        radial-gradient(ellipse at bottom left, rgba(155,213,255,0.08), transparent 60%),
        linear-gradient(180deg, rgba(28,20,55,0.94), rgba(10,8,24,0.97));
    border: 2px solid rgba(214,153,255,0.40);
    border-radius: 14px;
    padding: 26px 28px;
    margin-top: 18px;
    box-shadow: 0 14px 38px rgba(0,0,0,0.52), inset 0 1px 0 rgba(214,153,255,0.14);
}

/* Hero — forecast trajectory + headline M */

.node-hero-row {
    display: grid; grid-template-columns: 240px 1fr;
    gap: 18px; margin-bottom: 18px; align-items: stretch;
}

.node-headline-card {
    background: linear-gradient(180deg, var(--node-bg, rgba(214,153,255,0.12)), rgba(10,8,24,0.55));
    border: 1px solid var(--node-border, rgba(214,153,255,0.50));
    border-radius: 14px;
    padding: 18px 16px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.node-headline-label {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 10.5px; letter-spacing: 1.8px; text-transform: uppercase;
    color: #b095f5; margin-bottom: 6px;
}
.node-headline-value {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 44px; font-weight: 700;
    color: var(--node-color, #d699ff);
    text-shadow: 0 0 18px var(--node-color, #d699ff);
    line-height: 1;
}
.node-headline-class {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 14px; font-weight: 600;
    color: var(--node-color, #d699ff);
    text-transform: uppercase; letter-spacing: 1px;
    margin-top: 6px;
}
.node-headline-sub {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 11px; color: #888aa0; font-style: italic;
    text-align: center; margin-top: 4px;
}

.node-traj-wrap {
    background: rgba(10,8,24,0.55);
    border: 1px solid rgba(212,175,55,0.14);
    border-radius: 10px; padding: 14px;
}
.node-canvas-title {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 12px; color: #ddc88a; letter-spacing: 0.6px; margin-bottom: 8px;
}
.node-traj-canvas {
    width: 100%; height: 240px; display: block; border-radius: 6px;
}

/* Phase portrait + RG-stability bars row */

.node-spec-row {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 14px; margin-bottom: 16px;
}
.node-card {
    background: rgba(10,8,24,0.55);
    border: 1px solid rgba(212,175,55,0.14);
    border-radius: 10px; padding: 14px;
}
.node-phase-canvas {
    width: 100%; height: 280px; display: block; border-radius: 6px;
}

.node-rg-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 8px;
}
.node-rg-item {
    display: grid;
    grid-template-columns: 130px 1fr 48px;
    align-items: center; gap: 8px;
    font-family: "Times New Roman", Georgia, serif; font-size: 12px;
}
.node-rg-name {
    color: #b095f5; font-weight: 600; letter-spacing: 0.3px;
    font-size: 11px;
}
.node-rg-bar {
    height: 9px; border-radius: 4.5px;
    background: rgba(255,255,255,0.04);
    overflow: hidden; position: relative;
}
.node-rg-bar-fill {
    position: absolute; top: 0; left: 0; bottom: 0;
    background: linear-gradient(90deg,
        color-mix(in srgb, var(--node-rg-hue, #ffd86b) 40%, transparent),
        var(--node-rg-hue, #ffd86b));
    border-radius: 4.5px;
    box-shadow: 0 0 4px var(--node-rg-hue, #ffd86b);
    transition: width 0.7s cubic-bezier(0.25,1.1,0.4,1);
}
.node-rg-value {
    text-align: right; color: #ddc88a;
    font-variant-numeric: tabular-nums; font-weight: 600; font-size: 11px;
}

/* State trajectory mini-grid */

.node-state-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px; margin-bottom: 16px;
}
.node-state-card {
    background: rgba(10,8,24,0.55);
    border: 1px solid rgba(212,175,55,0.14);
    border-radius: 8px; padding: 8px;
}
.node-state-title {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 10.5px; color: #b095f5; letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.node-state-canvas {
    width: 100%; height: 70px; display: block;
}

.node-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;
}
.node-spine-card strong { color: #ffd86b; font-weight: 700; }

.node-interp {
    background: linear-gradient(90deg, rgba(214,153,255,0.07), transparent 80%);
    border-left: 2px solid rgba(214,153,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;
}
.node-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);
}
.node-refresh-btn {
    background: rgba(214,153,255,0.10); color: #d699ff;
    border: 1px solid rgba(214,153,255,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;
}
.node-refresh-btn:hover:not(:disabled) { background: rgba(214,153,255,0.20); transform: translateY(-1px); }
.node-foot-note {
    font-family: "Times New Roman", Georgia, serif;
    font-style: italic; font-size: 11px; color: #888aa0;
}

@media (max-width: 900px) {
    .node-hero-row { grid-template-columns: 1fr; }
    .node-spec-row { grid-template-columns: 1fr; }
    .node-phase-canvas { height: 220px; }
}
