/* aella-bks.css — page-specific styles for Big Kink Survey analysis */
:root {
    --acc: #00d4ff;
    --acc2: #ff6b6b;
    --acc3: #7fff7f;
    --acc4: #ffcc44;
}

.bks-hero {
    max-width: 780px;
    margin: 4rem auto 3rem;
    padding: 0 1.5rem;
}
.bks-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--acc);
    margin-bottom: 1rem;
}
.bks-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.2rem;
}
.bks-hero h1 em { color: var(--acc); font-style: normal; }
.bks-lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #bbb;
    max-width: 620px;
}
.bks-collab-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--acc4);
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--acc4);
}

/* Stats */
.bks-stats {
    max-width: 780px;
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}
.bks-stat {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1.2rem;
    text-align: center;
}
.bks-stat-n {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--acc);
    font-variant-numeric: tabular-nums;
}
.bks-stat-label {
    font-size: 0.8rem;
    color: var(--text-faint);
    margin-top: 0.3rem;
}
.bks-stat.red .bks-stat-n { color: var(--acc2); }
.bks-stat.green .bks-stat-n { color: var(--acc3); }
.bks-stat.yellow .bks-stat-n { color: var(--acc4); }

/* Sections */
.bks-section {
    max-width: 780px;
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
}
.bks-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--acc);
    padding-left: 0.8rem;
}
.bks-section h2.red { border-color: var(--acc2); }
.bks-section h2.green { border-color: var(--acc3); }

/* Findings */
.finding-grid {
    display: grid;
    gap: 1rem;
}
.finding {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1.2rem 1.4rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.8rem 1.2rem;
    align-items: start;
}
.finding.fdr-pass { border-left: 3px solid var(--acc3); }
.finding.fdr-fail { border-left: 3px solid #555; }
.finding-stat {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--acc);
    white-space: nowrap;
    padding-top: 0.1rem;
}
.finding-stat.red { color: var(--acc2); }
.finding-stat.yellow { color: var(--acc4); }
.finding-stat.grey { color: #666; }
.finding-title { font-weight: 600; margin-bottom: 0.3rem; }
.finding-desc { font-size: 0.9rem; color: var(--text-dim); line-height: 1.6; }
.fdr-badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    margin-left: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}
.fdr-badge.pass { background: #0a2a0a; color: var(--acc3); border: 1px solid #1a4a1a; }
.fdr-badge.fail { background: #1a1a1a; color: #666; border: 1px solid #333; }

/* IRR section */
.irr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin-top: 1rem;
}
.irr-table th {
    text-align: left;
    padding: 0.5rem 0.8rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-faint);
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.irr-table td {
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid var(--border);
}
.irr-table tr:hover td { background: var(--surface-2); }
.icc-val { font-weight: 700; color: var(--acc3); }
.icc-grade { font-size: 0.8rem; color: var(--text-faint); }

/* What we need */
.need-cards {
    display: grid;
    gap: 1rem;
}
.need-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1.4rem;
}
.need-card.primary { border-color: var(--acc2); background: rgba(255,107,107,0.04); }
.need-card-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}
.need-num {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--acc2);
    color: #000;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem;
    flex-shrink: 0;
}
.need-num.grey { background: #333; color: #aaa; }
.need-card h3 { font-size: 1rem; margin: 0; }
.need-card p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.65; margin: 0; }
.need-payout {
    display: inline-block;
    margin-top: 0.8rem;
    padding: 0.3rem 0.7rem;
    background: #0a1a0a;
    border: 1px solid #1a3a1a;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--acc3);
    font-weight: 600;
}

/* CTA */
.bks-cta {
    max-width: 780px;
    margin: 0 auto 4rem;
    padding: 2rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    text-align: center;
}
.bks-cta h2 { margin-bottom: 0.6rem; font-size: 1.4rem; }
.bks-cta p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 1.4rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Rubric */
.rubric-block {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1.4rem;
    margin-top: 1rem;
}
.rubric-dim {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.rubric-dim:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.rubric-dim-name {
    font-weight: 700;
    color: var(--acc);
    margin-bottom: 0.3rem;
}
.rubric-dim-name.red { color: var(--acc2); }
.rubric-dim-name.green { color: var(--acc3); }
.rubric-dim p { font-size: 0.88rem; color: var(--text-dim); margin: 0; line-height: 1.6; }

/* Supercritical list */
.kink-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.8rem;
}
.kink-chip {
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid;
}
.kink-chip.super { background: #1a0a0a; border-color: var(--acc2); color: var(--acc2); }
.kink-chip.sub   { background: #0a0a1a; border-color: #333; color: #888; }

/* Aella credit */
.credit-bar {
    max-width: 780px;
    margin: 0 auto 2rem;
    padding: 1rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-dim);
}
.credit-bar a { color: var(--acc); text-decoration: none; }
.credit-bar a:hover { text-decoration: underline; }

/* Researcher credit block */
.bks-researcher-credit {
    max-width: 780px;
    margin: 0 auto 2.5rem;
    padding: 0 1.5rem;
}
.brc-inner {
    border: 1px solid rgba(0,212,255,0.2);
    background: rgba(0,212,255,0.02);
    padding: 1.5rem 1.8rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}
.brc-badge {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--acc);
    border: 1px solid rgba(0,212,255,0.35);
    padding: 0.15rem 0.55rem;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 0.25rem;
}
.brc-body { flex: 1; min-width: 0; }
.brc-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.brc-name a { color: var(--acc); text-decoration: none; }
.brc-name a:hover { text-decoration: underline; }
.brc-body p {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.65;
    margin: 0 0 0.75rem;
}
.brc-doi {
    font-size: 0.75rem;
    color: var(--text-faint);
    font-family: var(--font-mono, monospace);
}
.brc-doi a { color: var(--acc); text-decoration: none; }
.brc-doi a:hover { text-decoration: underline; }

/* Rater urgency inline block */
.bks-rater-urgent {
    max-width: 780px;
    margin: 0 auto 2.5rem;
    padding: 0 1.5rem;
}
.bru-inner {
    border: 1px solid rgba(255,107,107,0.35);
    background: rgba(255,107,107,0.03);
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.bru-count {
    font-size: 3rem;
    font-weight: 900;
    color: var(--acc2);
    line-height: 1;
    flex-shrink: 0;
    letter-spacing: -0.03em;
}
.bru-body { flex: 1; min-width: 180px; }
.bru-body strong { color: var(--text); }
.bru-body p {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin: 0.2rem 0 0;
    line-height: 1.55;
}
.bru-link {
    display: inline-block;
    padding: 0.55rem 1.1rem;
    background: #1a0a0a;
    border: 1px solid var(--acc2);
    color: var(--acc2);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.15s;
}
.bru-link:hover { background: #2a0808; }

@media (max-width: 600px) {
    .finding { grid-template-columns: 1fr; }
}

/* ── Meta-void banner ──────────────────────────────── */
#bks-meta-void {
    background: rgba(200,151,106,0.04);
    border-bottom: 1px solid rgba(200,151,106,0.14);
    padding: 0.5rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
}
.bmv-tag {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.14rem 0.5rem;
    border: 1px solid var(--accent);
    color: var(--accent);
    flex-shrink: 0;
}
.bmv-text { color: var(--text-dim); }
.bmv-dims { color: var(--accent); font-weight: 700; }
.bmv-link {
    color: var(--text-faint);
    text-decoration: none;
    margin-left: auto;
    white-space: nowrap;
    transition: color 0.15s;
}
.bmv-link:hover { color: var(--accent); }

/* ── ρ=1.00 hero callout ───────────────────────────── */
#bks-rho-hero {
    max-width: 780px;
    margin: 2.5rem auto 0;
    padding: 0 1.5rem;
}
.bks-rho-banner {
    border: 1px solid rgba(200,151,106,0.35);
    background: rgba(200,151,106,0.03);
    padding: 3rem 2.5rem 2.5rem;
    position: relative;
    overflow: hidden;
}
.bks-rho-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 90% 80% at 15% 50%, rgba(200,151,106,0.07) 0%, transparent 60%);
    pointer-events: none;
}
.bks-rho-number {
    font-size: clamp(5rem, 12vw, 8rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 0.85;
    color: var(--accent);
    display: block;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}
.bks-rho-claim {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    position: relative;
    z-index: 1;
    max-width: 560px;
}
.bks-rho-sub {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.7;
    max-width: 520px;
    position: relative;
    z-index: 1;
}
.bks-rho-zero {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: clamp(8rem, 22vw, 14rem);
    font-weight: 900;
    color: rgba(200,151,106,0.05);
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    line-height: 1;
}
.bks-rho-proof {
    margin-top: 1.5rem;
    padding: 0.75rem 1rem;
    background: rgba(200,151,106,0.05);
    border: 1px solid rgba(200,151,106,0.15);
    font-size: 0.78rem;
    color: var(--text-dim);
    font-style: italic;
    position: relative;
    z-index: 1;
    max-width: 560px;
}
.bks-rho-proof strong { color: var(--accent); font-style: normal; }

/* ── Hero canvas ────────────────────────────────────── */
.bks-hero { position: relative; overflow: hidden; }
#bks-hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ── V* attractor block ─────────────────────────────── */
.vstar-attractor {
    margin-top: 1.25rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(255,107,107,0.25);
    background: rgba(255,107,107,0.03);
}
.vstar-attractor-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--acc2);
    display: block;
    margin-bottom: 0.75rem;
}

/* ── Pe calculator ──────────────────────────────────── */
.pe-calc-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1.5rem;
    margin-top: 1rem;
}
.pe-slider-row {
    display: grid;
    grid-template-columns: 48px 1fr 44px;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.pe-slider-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--acc);
}
.pe-slider-val {
    font-size: 0.82rem;
    color: var(--text-dim);
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.pe-result {
    margin-top: 1.25rem;
    border: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}
.pe-result-cell {
    padding: 1rem 0.75rem;
    border-right: 1px solid var(--border);
    text-align: center;
}
.pe-result-cell:last-child { border-right: none; }
.pe-result-val {
    display: block;
    font-size: 1.9rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 0.3rem;
    transition: color 0.3s;
}
.pe-result-lbl {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-faint);
}
.pe-interpret {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.82rem;
    color: var(--text-dim);
    border-left: 2px solid var(--acc);
    line-height: 1.65;
    transition: border-color 0.3s;
}

/* ── Content warning overlay ─────────────────── */
#bks-warning {
    position: fixed; inset: 0;
    background: rgba(12,9,8,0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 1.5rem;
}
.bks-warn-card {
    max-width: 440px; width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 2rem 2rem 1.6rem;
    text-align: center;
}
.bks-warn-icon { font-size: 2rem; margin-bottom: 0.8rem; }
.bks-warn-card h2 {
    font-size: 1.1rem; font-weight: 700;
    margin-bottom: 0.5rem; color: var(--text);
}
.bks-warn-card p {
    font-size: 0.87rem; color: var(--text-dim); line-height: 1.7;
    margin-bottom: 1.4rem;
}
.bks-warn-card p strong { color: var(--text); }
.bks-warn-btn {
    display: inline-block;
    padding: 0.65rem 1.6rem;
    background: var(--surface-3);
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    font-family: inherit;
}
.bks-warn-btn:hover { border-color: var(--acc); color: var(--acc); }
.bks-warn-note {
    margin-top: 1rem; font-size: 0.73rem; color: var(--text-faint);
}

/* ── CSS flourishes ──────────────────────────── */

/* Hero background depth */
.bks-hero {
    background: radial-gradient(ellipse 70% 60% at 15% 50%, rgba(0,80,120,0.04) 0%, transparent 70%);
}
.bks-ch-num {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
    display: block;
}

/* "thermodynamics" shimmer */
.bks-hero h1 em {
    background: linear-gradient(90deg, #00d4ff 0%, #ffffff 40%, #00d4ff 80%, #00a8cc 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: bks-shimmer 4s ease-in-out infinite;
}
@keyframes bks-shimmer {
    0%   { background-position: 0% 0%; }
    50%  { background-position: 100% 0%; }
    100% { background-position: 0% 0%; }
}

/* ρ=1.00 stat card pulse */
.bks-stat.pulse-gold {
    animation: stat-pulse 3s ease-in-out infinite;
}
@keyframes stat-pulse {
    0%, 100% { border-color: var(--border); box-shadow: none; }
    50% { border-color: #4a3a12; box-shadow: 0 0 14px 2px rgba(255,204,68,0.1); }
}

/* Supercritical chips — hover lift */
.kink-chip.super {
    cursor: default;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.kink-chip.super:hover {
    transform: translateY(-2px) scale(1.04);
    background: #220808;
    box-shadow: 0 4px 14px rgba(255,107,107,0.25);
}

/* Finding cards — hover accent */
.finding {
    transition: background 0.2s;
}
.finding:hover { background: var(--surface-2); }
.finding:hover .finding-stat { filter: brightness(1.2); }

/* ── 3D Viz ─────────────────────────────────── */
.bks-3d-section {
    max-width: 960px;
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
}
.bks-3d-section > h2 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    border-left: 3px solid var(--acc);
    padding-left: 0.8rem;
}
.bks-3d-sub {
    font-size: 0.83rem;
    color: #666;
    margin-bottom: 0.8rem;
    padding-left: 1rem;
    line-height: 1.5;
}
.bks-3d-wrap {
    position: relative;
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--surface);
}
#bks-3d { width: 100%; display: block; }
#bks-3d canvas { display: block; }
#bks-tooltip {
    display: none;
    position: absolute;
    pointer-events: none;
    background: rgba(19,17,16,0.97);
    border: 1px solid var(--border);
    padding: 0.45rem 0.75rem;
    font-size: 0.78rem;
    line-height: 1.55;
    z-index: 10;
    max-width: 210px;
    color: #ddd;
}
#bks-tooltip .btt { font-weight: 700; display: block; color: var(--text); margin-bottom: 0.15rem; }
#bks-tooltip .bts { color: var(--acc2); font-size: 0.7rem; }
#bks-panel {
    display: none;
    position: absolute;
    top: 12px; right: 12px;
    width: 195px;
    background: rgba(19,17,16,0.97);
    border: 1px solid var(--border);
    padding: 0.9rem 0.9rem 0.75rem;
    z-index: 10;
    font-size: 0.78rem;
}
.bpanel-close {
    position: absolute; top: 7px; right: 9px;
    background: none; border: none; color: #555;
    cursor: pointer; font-size: 0.85rem; line-height: 1;
}
.bpanel-close:hover { color: var(--text); }
.bpanel-title { font-weight: 700; font-size: 0.9rem; padding-right: 1.2rem; line-height: 1.3; margin-bottom: 0.25rem; }
.bpanel-badge {
    display: inline-block; background: #1a0505; border: 1px solid #ff6b6b;
    color: #ff6b6b; border-radius: 3px; padding: 0.05rem 0.3rem;
    font-size: 0.62rem; font-weight: 700; margin-left: 0.25rem; vertical-align: middle;
}
.bpanel-v { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.6rem; }
.bpanel-dims { margin-bottom: 0.6rem; }
.bpanel-dim { display: flex; align-items: center; gap: 0.35rem; margin-bottom: 0.25rem; }
.bpd-name { width: 90px; flex-shrink: 0; color: #666; font-size: 0.72rem; }
.bpd-bar { flex: 1; height: 4px; background: #1a1a2a; border-radius: 2px; overflow: hidden; }
.bpd-fill { height: 100%; border-radius: 2px; }
.bpanel-dim > span:last-child { width: 28px; text-align: right; font-size: 0.72rem; color: #aaa; }
.bpanel-stats { display: flex; gap: 0.4rem; }
.bps { flex: 1; background: var(--surface-2); border: 1px solid var(--border); padding: 0.35rem 0.4rem; text-align: center; }
.bps-v { font-weight: 700; font-size: 1rem; color: var(--acc); }
.bps-l { font-size: 0.62rem; color: var(--text-faint); margin-top: 0.1rem; }
.bks-3d-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.6rem 1rem; border-top: 1px solid var(--border);
    font-size: 0.74rem; flex-wrap: wrap; gap: 0.5rem; background: var(--surface);
}
.bks-3d-legend { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.bleg { display: flex; align-items: center; gap: 0.3rem; color: var(--text-faint); }
.bleg-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.bleg-plane { width: 18px; height: 8px; background: rgba(255,90,40,0.3); border: 1px solid rgba(255,120,60,0.5); border-radius: 2px; flex-shrink: 0; }
.bks-3d-hint { color: var(--text-faint); font-size: 0.7rem; }
.bks-3d-axes { display: flex; gap: 1.2rem; padding: 0.4rem 1rem 0; font-size: 0.74rem; }
.bks-ax { display: flex; align-items: center; gap: 0.35rem; }
.bks-ax-dot { width: 10px; height: 3px; border-radius: 1px; }


/* ── Evolutionary math cards ─────────────────────────────────────────────── */
.bks-evo-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
@media (min-width: 860px) {
    .bks-evo-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.bks-evo-card {
    display: flex;
    flex-direction: column;
    background: #0a0a0a;
    border: 1px solid #1e1e1e;
    border-top: 2px solid #2a2a2a;
    padding: 1rem;
    border-radius: 3px;
    transition: border-top-color 0.2s;
    min-width: 0;
}
.bks-evo-card:nth-child(1) { border-top-color: #ff6b6b; }
.bks-evo-card:nth-child(2) { border-top-color: #00d4ff; }
.bks-evo-card:nth-child(3) { border-top-color: #7fff7f; }
.bec-num {
    font-size: 0.65rem;
    font-weight: 800;
    color: #444;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.45rem;
    font-variant-numeric: tabular-nums;
}
.bec-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.bec-title {
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--text);
    margin-bottom: 0.45rem;
    line-height: 1.3;
}
.bec-formula {
    font-family: 'Courier New', monospace;
    font-size: 0.76rem;
    color: #ffcc44;
    background: #0d0d0d;
    border: 1px solid #1e1e1e;
    padding: 0.35rem 0.5rem;
    margin-bottom: 0.55rem;
    border-radius: 2px;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
}
.bec-note {
    font-size: 0.76rem;
    line-height: 1.65;
    color: var(--text-dim);
    margin-bottom: 0.4rem;
}
.bec-sim {
    font-size: 0.7rem;
    color: #3a7a3a;
    border-top: 1px solid #1a2a1a;
    padding-top: 0.5rem;
    margin-top: auto;
    line-height: 1.5;
}

/* ── Panel evolutionary reading ─────────────────────────────────────────── */
#bks-panel {
    width: 220px;
    max-height: 90vh;
    overflow-y: auto;
}
.bpanel-evo {
    margin-top: 0.6rem;
    font-size: 0.72rem;
    line-height: 1.6;
}
.bpev-head {
    font-weight: 700;
    font-size: 0.75rem;
    margin-bottom: 0.3rem;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid #1e1e1e;
    color: #ccc;
}
.bpev-item {
    padding: 0.3rem 0.4rem;
    margin-bottom: 0.25rem;
    background: #0d0d0d;
    border-left: 2px solid #2a2a2a;
    line-height: 1.55;
    color: #888;
}
.bpev-lbl {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #555;
    margin-bottom: 0.15rem;
}

/* ── Pe result grid — 4 cells ─────────────────────────────────────────── */
.pe-result {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
