/* =============================================================================
   📚 INFORMATION BOTTLENECK — Tishby Lab panel CSS
   ============================================================================= */

.panel-ib {
    background:
        radial-gradient(ellipse at top right, rgba(214,153,255,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(214,153,255,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(214,153,255,0.10);
}

.ib-headline-row {
    display: grid; grid-template-columns: 220px repeat(3, 1fr);
    gap: 14px; margin: 12px 0 16px; align-items: stretch;
}

.ib-verdict-card {
    background: linear-gradient(180deg, var(--ib-verdict-bg, rgba(214,153,255,0.10)), rgba(10,8,24,0.55));
    border: 1px solid var(--ib-verdict-border, rgba(214,153,255,0.45));
    border-radius: 12px; padding: 16px 14px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ib-verdict-label {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase;
    color: #b095f5; margin-bottom: 6px;
}
.ib-verdict-value {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 18px; font-weight: 700;
    color: var(--ib-verdict-color, #d699ff);
    text-shadow: 0 0 14px var(--ib-verdict-color, #d699ff);
    line-height: 1.2; text-align: center;
    letter-spacing: 1px; text-transform: uppercase;
    padding: 6px 0;
}
.ib-verdict-z {
    font-family: "Cascadia Mono", "Courier New", monospace;
    font-size: 11.5px;
    color: var(--ib-verdict-color, #d699ff);
    margin-top: 4px; opacity: 0.85;
}

.ib-stat-card {
    background: linear-gradient(180deg, rgba(155,213,255,0.06), rgba(10,8,24,0.50));
    border: 1px solid rgba(155,213,255,0.24);
    border-radius: 10px; padding: 12px 14px;
    display: flex; flex-direction: column; justify-content: center;
}
.ib-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;
}
.ib-stat-value {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 22px; font-weight: 600; color: #9bd5ff;
}
.ib-stat-sub {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 11px; color: #888aa0; font-style: italic; margin-top: 4px;
}

.ib-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;
}
.ib-canvas-title {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 12px; color: #ddc88a; letter-spacing: 0.6px; margin-bottom: 8px;
}
.ib-canvas {
    width: 100%; height: 320px; display: block; border-radius: 6px;
}
.ib-legend {
    display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px;
    font-family: "Times New Roman", Georgia, serif; font-size: 11px;
    color: #888aa0;
}
.ib-legend-dot {
    display: inline-block; width: 10px; height: 10px; border-radius: 50%;
    box-shadow: 0 0 4px currentColor; margin-right: 4px;
}

.ib-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;
}
.ib-spine-card strong { color: #ffd86b; font-weight: 700; }

.ib-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;
}
.ib-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);
}
.ib-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;
}
.ib-refresh-btn:hover:not(:disabled) {
    background: rgba(214,153,255,0.20); transform: translateY(-1px);
}
.ib-foot-note {
    font-family: "Times New Roman", Georgia, serif;
    font-style: italic; font-size: 11px; color: #888aa0;
}

@media (max-width: 900px) {
    .ib-headline-row { grid-template-columns: 1fr; }
    .ib-canvas { height: 240px; }
}
