/* =============================================================================
   🌀 CYCLE MAP — top β₁ persistent loops as ribbons on the 45-ball lattice
   ============================================================================= */

.panel-cyc {
    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);
}

.cyc-headline-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 12px 0 16px;
}
.cyc-headline-card {
    background: linear-gradient(180deg, rgba(255,123,157,0.06), rgba(10,8,24,0.50));
    border: 1px solid rgba(255,123,157,0.24);
    border-radius: 10px;
    padding: 12px 14px;
}
.cyc-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;
}
.cyc-headline-value {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 22px; font-weight: 600; color: #ff7b9d;
    line-height: 1.2; letter-spacing: 0.8px;
}
.cyc-headline-sub {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 11px; color: #888aa0; font-style: italic; margin-top: 4px;
}

.cyc-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;
}
.cyc-canvas-title {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 12px; color: #ddc88a; letter-spacing: 0.6px; margin-bottom: 8px;
}
.cyc-canvas {
    width: 100%; height: 480px; display: block; border-radius: 6px;
}
.cyc-legend {
    display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px;
    font-family: "Times New Roman", Georgia, serif; font-size: 11px; color: #888aa0;
}
.cyc-legend-swatch {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 8px;
    background: rgba(10,8,24,0.45);
    border: 1px solid rgba(255,123,157,0.20);
    border-radius: 999px;
}
.cyc-legend-dot {
    display: inline-block; width: 10px; height: 10px; border-radius: 50%;
    box-shadow: 0 0 4px currentColor;
}

.cyc-cycle-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 7px;
}
.cyc-cycle-item {
    background: linear-gradient(90deg, var(--cyc-color, rgba(255,123,157,0.10)), transparent 80%);
    border-left: 3px solid var(--cyc-color, #ff7b9d);
    padding: 7px 10px;
    border-radius: 0 6px 6px 0;
    font-family: "Times New Roman", Georgia, serif;
    font-size: 12px;
    cursor: pointer;
    transition: transform 0.15s;
}
.cyc-cycle-item:hover { transform: translateX(2px); }
.cyc-cycle-item.cyc-selected {
    background: linear-gradient(90deg, rgba(255,216,107,0.15), transparent 80%);
    border-left-color: #ffd86b;
}

.cyc-cycle-head {
    display: flex; justify-content: space-between; gap: 8px; margin-bottom: 3px;
}
.cyc-cycle-rank { color: var(--cyc-color, #ff7b9d); font-weight: 600; letter-spacing: 0.5px; }
.cyc-cycle-meta { color: #888aa0; font-size: 11px; font-style: italic; }
.cyc-cycle-loop { color: #ddc88a; font-size: 11.5px; line-height: 1.4; word-break: break-word; }

.cyc-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;
}
.cyc-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);
}
.cyc-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;
}
.cyc-refresh-btn:hover:not(:disabled) { background: rgba(255,123,157,0.20); transform: translateY(-1px); }
.cyc-foot-note {
    font-family: "Times New Roman", Georgia, serif;
    font-style: italic; font-size: 11px; color: #888aa0;
}

@media (max-width: 900px) {
    .cyc-headline-row { grid-template-columns: 1fr; }
    .cyc-canvas { height: 360px; }
}
