/* =============================================================================
   🔮 PREDICTIVE CODING — hierarchical pyramid Lab panel CSS
   ============================================================================= */

.panel-pc {
    background:
        radial-gradient(ellipse at top left, rgba(255,216,107,0.07), transparent 60%),
        radial-gradient(ellipse at bottom right, rgba(255,123,157,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);
}

.pc-headline-row {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 12px; margin: 12px 0 16px;
}
.pc-headline-card {
    background: linear-gradient(180deg, rgba(255,216,107,0.06), rgba(10,8,24,0.50));
    border: 1px solid rgba(255,216,107,0.24);
    border-radius: 10px; padding: 12px 14px;
}
.pc-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;
}
.pc-headline-value {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 22px; font-weight: 600; color: #ffd86b;
    line-height: 1.2; letter-spacing: 0.6px;
}
.pc-headline-sub {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 11px; color: #888aa0; font-style: italic; margin-top: 4px;
}

.pc-pyramid-wrap {
    background: rgba(10,8,24,0.55);
    border: 1px solid rgba(212,175,55,0.14);
    border-radius: 10px; padding: 16px; margin-bottom: 16px;
}
.pc-pyramid-canvas {
    width: 100%; height: 460px; display: block; border-radius: 6px;
}
.pc-pyramid-legend {
    display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px;
    font-family: "Times New Roman", Georgia, serif; font-size: 11px;
    color: #888aa0; justify-content: center;
}
.pc-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.pc-legend-arrow-gold { color: #ffd86b; font-size: 16px; font-weight: 700; }
.pc-legend-arrow-red { color: #ff7b9d; font-size: 16px; font-weight: 700; }

.pc-detail-row {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 14px; margin-bottom: 16px;
}
.pc-card {
    background: rgba(10,8,24,0.55);
    border: 1px solid rgba(212,175,55,0.14);
    border-radius: 10px; padding: 12px 14px;
}
.pc-card-title {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 12px; color: #ddc88a; letter-spacing: 0.6px; margin-bottom: 10px;
}

.pc-belief-list,
.pc-error-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 6px;
}
.pc-belief-item,
.pc-error-item {
    display: grid; align-items: center;
    grid-template-columns: 100px 1fr 60px;
    gap: 8px;
    font-family: "Times New Roman", Georgia, serif; font-size: 12px;
}
.pc-belief-name {
    color: var(--pc-hue, #b095f5);
    font-weight: 600; letter-spacing: 0.4px;
}
.pc-belief-bar {
    height: 9px; border-radius: 4.5px; background: rgba(255,255,255,0.04);
    overflow: hidden; position: relative;
}
.pc-belief-fill {
    position: absolute; top: 0; left: 0; bottom: 0;
    background: linear-gradient(90deg,
        color-mix(in srgb, var(--pc-hue, #b095f5) 40%, transparent),
        var(--pc-hue, #b095f5));
    border-radius: 4.5px;
    box-shadow: 0 0 4px var(--pc-hue, #b095f5);
    transition: width 0.7s cubic-bezier(0.25, 1.1, 0.4, 1);
}
.pc-belief-pct {
    text-align: right; color: #ddc88a;
    font-variant-numeric: tabular-nums; font-weight: 600; font-size: 11.5px;
}

.pc-error-name { color: #b095f5; font-size: 11.5px; font-weight: 600; }
.pc-error-bar { height: 9px; border-radius: 4.5px; background: rgba(255,255,255,0.04); overflow: hidden; position: relative; }
.pc-error-pos { position: absolute; top: 0; left: 50%; bottom: 0; background: linear-gradient(90deg, transparent, #ff7b9d); }
.pc-error-neg { position: absolute; top: 0; right: 50%; bottom: 0; background: linear-gradient(270deg, transparent, #88d8b0); }
.pc-error-mid { position: absolute; top: 0; left: 50%; bottom: 0; width: 1px; background: rgba(255,255,255,0.30); }
.pc-error-val {
    text-align: right; color: #ddc88a;
    font-variant-numeric: tabular-nums; font-weight: 600; font-size: 11.5px;
}

.pc-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;
}
.pc-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);
}
.pc-refresh-btn {
    background: rgba(255,216,107,0.10); color: #ffd86b;
    border: 1px solid rgba(255,216,107,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;
}
.pc-refresh-btn:hover:not(:disabled) { background: rgba(255,216,107,0.20); transform: translateY(-1px); }
.pc-foot-note {
    font-family: "Times New Roman", Georgia, serif;
    font-style: italic; font-size: 11px; color: #888aa0;
}

@media (max-width: 900px) {
    .pc-headline-row { grid-template-columns: 1fr; }
    .pc-detail-row { grid-template-columns: 1fr; }
    .pc-pyramid-canvas { height: 340px; }
}
