/* =============================================================================
   🔄 PER-NUMBER LYAPUNOV — 45-ball polar bloom panel CSS.
   ============================================================================= */

.panel-lyap {
    background:
        radial-gradient(ellipse at top right, rgba(255,123,157,0.06), transparent 60%),
        radial-gradient(ellipse at bottom left, rgba(136,216,176,0.05), transparent 60%),
        linear-gradient(180deg, rgba(28,20,55,0.92), rgba(10,8,24,0.96));
    border: 1px solid rgba(176,149,245,0.22);
    border-radius: 14px;
    padding: 22px 26px;
    margin-top: 22px;
    box-shadow:
        0 10px 32px rgba(0,0,0,0.40),
        inset 0 1px 0 rgba(176,149,245,0.08);
}

.lyap-row {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 20px;
    margin-top: 12px;
}

.lyap-bloom-card {
    background: rgba(10,8,24,0.55);
    border: 1px solid rgba(212,175,55,0.14);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lyap-bloom-canvas {
    width: 100%;
    height: 360px;
    display: block;
}

.lyap-bloom-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
    font-family: "Times New Roman", Georgia, serif;
    font-size: 11px;
    color: #b095f5;
}

.lyap-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.lyap-legend-dot {
    display: inline-block;
    width: 9px; height: 9px;
    border-radius: 50%;
    box-shadow: 0 0 4px currentColor;
}
.lyap-stable   { background: #88d8b0; }
.lyap-settled  { background: #a3d8ff; }
.lyap-neutral  { background: #b095f5; }
.lyap-restless { background: #ff9d6b; }
.lyap-chaotic  { background: #ff7b9d; }

.lyap-info-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lyap-headline-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.lyap-stat {
    background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(10,8,24,0.45));
    border: 1px solid rgba(212,175,55,0.14);
    border-radius: 10px;
    padding: 10px 12px;
}

.lyap-stat-label {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 10.5px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #b095f5;
    margin-bottom: 3px;
}

.lyap-stat-value {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 22px;
    font-weight: 600;
    color: #ffd86b;
    font-variant-numeric: tabular-nums;
}

.lyap-list-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.lyap-list-card {
    background: rgba(10,8,24,0.50);
    border: 1px solid rgba(212,175,55,0.14);
    border-radius: 10px;
    padding: 10px 12px;
}

.lyap-list-title {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 12px;
    color: #ddc88a;
    margin-bottom: 6px;
}

.lyap-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lyap-li {
    display: grid;
    grid-template-columns: 32px 1fr 70px;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    font-family: "Times New Roman", Georgia, serif;
    font-size: 12px;
    color: #d4d4e8;
    border-bottom: 1px dashed rgba(212,175,55,0.07);
}

.lyap-li:last-child { border-bottom: none; }

.lyap-li-ball {
    font-weight: 600;
    font-size: 14px;
    text-align: center;
}

.lyap-li-lam {
    color: #ddc88a;
    font-variant-numeric: tabular-nums;
    font-size: 11.5px;
}

.lyap-li-cls {
    text-align: right;
    font-size: 10.5px;
    font-style: italic;
    text-transform: lowercase;
}

.lyap-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px dashed rgba(212,175,55,0.16);
}

.lyap-refresh-btn {
    background: rgba(176,149,245,0.10);
    color: #b095f5;
    border: 1px solid rgba(176,149,245,0.30);
    border-radius: 999px;
    padding: 5px 14px;
    font-family: "Times New Roman", Georgia, serif;
    font-size: 12px;
    cursor: pointer;
    transition: background .15s, transform .15s;
}
.lyap-refresh-btn:hover:not(:disabled) {
    background: rgba(176,149,245,0.18);
    transform: translateY(-1px);
}
.lyap-refresh-btn:disabled { opacity: 0.55; cursor: progress; }

.lyap-foot-note {
    font-family: "Times New Roman", Georgia, serif;
    font-style: italic;
    font-size: 11px;
    color: #888aa0;
}

@media (max-width: 1100px) {
    .lyap-row { grid-template-columns: 1fr; }
    .lyap-list-row { grid-template-columns: 1fr; }
    .lyap-bloom-canvas { height: 320px; }
}
