/**
 * kpv mastery course styles
 *
 * extends the base learn page styles with course-specific theming,
 * paywall ui, loading states, and interactive visualization containers.
 * aligned to the shared mountain-meadow interactive palette.
 *
 * bespoke widget vocabulary introduced for unit 1 (foundations):
 * - .kpv-msh-trim: alpha-MSH-to-KPV sequence trim visual on section-alpha-msh-origin.
 *   shape: <div class="kpv-msh-trim"><div class="kpv-msh-row">...residue pills...</div>
 *   <div class="kpv-msh-trim-caption">...</div></div>
 * - .kpv-popularity-grid: 3-up reason cards for the "why popular now" block inside
 *   section-why-tripeptide. shape: <div class="kpv-popularity-grid">
 *   <div class="kpv-popularity-card"><h4>title</h4><p>body</p></div>...</div>
 * - .kpv-roadmap-list: numbered unit preview rail on section-whats-ahead.
 *   shape: <ol class="kpv-roadmap-list"><li class="kpv-roadmap-item">
 *   <span class="kpv-roadmap-num">02</span><div class="kpv-roadmap-body">
 *   <h3 class="kpv-roadmap-title">...</h3><p class="kpv-roadmap-desc">...</p>
 *   </div></li>...</ol>
 *
 * styling here is minimal -- phase 3 (visual polish) will refine.
 */

/* ============================================================
   unit 1 bespoke widgets (foundations) -- minimal scaffold
   ============================================================ */

.kpv-msh-trim {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    padding: 18px 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(52, 211, 158, 0.06), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(52, 211, 158, 0.2);
    margin: 18px 0;
}

.kpv-msh-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}

.kpv-msh-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 6px 8px;
    border-radius: 8px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary, #a3a3a3);
}

.kpv-msh-pill--kpv {
    background: linear-gradient(135deg, rgba(52, 211, 158, 0.3), rgba(16, 185, 129, 0.12));
    border-color: rgba(52, 211, 158, 0.55);
    color: var(--meadow-300, #6ee7bf);
}

.kpv-msh-trim-caption {
    font-size: 0.78rem;
    color: var(--text-secondary, #a3a3a3);
    text-align: center;
    max-width: 480px;
    line-height: 1.5;
}

[data-theme="light"] .kpv-msh-pill {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.1);
    color: rgba(15, 23, 42, 0.7);
}

[data-theme="light"] .kpv-msh-pill--kpv {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(16, 185, 129, 0.05));
    border-color: rgba(16, 185, 129, 0.4);
    color: #047852;
}

.kpv-popularity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.kpv-popularity-card {
    padding: 16px;
    border-radius: 12px;
    background: var(--color-bg-card, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
}

.kpv-popularity-card h4 {
    font-size: 0.92rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--meadow-300, #6ee7bf);
}

.kpv-popularity-card p {
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--text-secondary, #a3a3a3);
    margin: 0;
}

[data-theme="light"] .kpv-popularity-card {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .kpv-popularity-card h4 { color: #047852; }
[data-theme="light"] .kpv-popularity-card p { color: rgba(15, 23, 42, 0.7); }

.kpv-roadmap-list {
    list-style: none;
    padding: 0;
    margin: 18px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kpv-roadmap-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--color-bg-card, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
}

.kpv-roadmap-num {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--meadow-300, #6ee7bf);
    min-width: 28px;
}

.kpv-roadmap-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--color-text, #fff);
}

.kpv-roadmap-desc {
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--text-secondary, #a3a3a3);
    margin: 0;
}

[data-theme="light"] .kpv-roadmap-item {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .kpv-roadmap-num { color: #047852; }
[data-theme="light"] .kpv-roadmap-title { color: #1a1a1a; }
[data-theme="light"] .kpv-roadmap-desc { color: rgba(15, 23, 42, 0.7); }

/* ============================================================
   unit 1 -- evidence ceiling 4-tier grid
   ============================================================ */

.kpv-evidence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.kpv-evidence-tier {
    padding: 16px;
    border-radius: 14px;
    background: var(--color-bg-card, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kpv-evidence-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.kpv-evidence-headline {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    color: var(--color-text, #fff);
}

.kpv-evidence-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.kpv-evidence-pill--solid {
    background: rgba(52, 211, 158, 0.16);
    color: #34d39e;
    border: 1px solid rgba(52, 211, 158, 0.35);
}

.kpv-evidence-pill--moderate {
    background: rgba(245, 158, 11, 0.16);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.kpv-evidence-pill--weak {
    background: rgba(239, 68, 68, 0.14);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.32);
}

.kpv-evidence-pill--missing {
    background: rgba(167, 139, 250, 0.14);
    color: #a78bfa;
    border: 1px solid rgba(167, 139, 250, 0.32);
}

.kpv-evidence-tier--solid { border-color: rgba(52, 211, 158, 0.28); }
.kpv-evidence-tier--moderate { border-color: rgba(245, 158, 11, 0.25); }
.kpv-evidence-tier--weak { border-color: rgba(239, 68, 68, 0.22); }
.kpv-evidence-tier--missing { border-color: rgba(167, 139, 250, 0.22); }

.kpv-evidence-tier p {
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--text-secondary, #a3a3a3);
    margin: 0;
}

.kpv-evidence-claims {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kpv-evidence-claims li {
    font-size: 0.8rem;
    line-height: 1.55;
    color: var(--text-secondary, #a3a3a3);
    padding-left: 14px;
    position: relative;
}

.kpv-evidence-claims li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.55;
}

[data-theme="light"] .kpv-evidence-tier {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .kpv-evidence-headline { color: #1a1a1a; }
[data-theme="light"] .kpv-evidence-tier p,
[data-theme="light"] .kpv-evidence-claims li { color: rgba(15, 23, 42, 0.7); }

/* ============================================================
   unit 1 -- quote callout (shared shape across courses)
   ============================================================ */

.kpv-quote-callout {
    margin: 24px 0;
    padding: 20px 24px;
    border-left: 3px solid var(--meadow-400, #34d39e);
    border-radius: 12px;
    background: rgba(var(--meadow-500-rgb, 16, 185, 129), 0.05);
}

.kpv-quote-source {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--meadow-300, #6ee7bf);
    margin: 0 0 8px;
}

.kpv-quote-body {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--color-text, #fff);
    margin: 0 0 10px;
}

.kpv-quote-attrib {
    font-size: 0.78rem;
    font-style: italic;
    color: var(--text-secondary, #a3a3a3);
    line-height: 1.5;
    display: block;
}

[data-theme="light"] .kpv-quote-source { color: #047852; }
[data-theme="light"] .kpv-quote-body { color: #1a1a1a; }
[data-theme="light"] .kpv-quote-attrib { color: rgba(15, 23, 42, 0.65); }

/* ============================================================
   course header badge
   ============================================================ */

.kpv-course-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: lowercase;
    background: linear-gradient(
        135deg,
        rgba(var(--meadow-500-rgb, 16, 185, 129), 0.18),
        rgba(var(--meadow-400-rgb, 52, 211, 158), 0.1)
    );
    color: var(--meadow-300, #6ee7bf);
    border: 1px solid rgba(var(--meadow-500-rgb, 16, 185, 129), 0.24);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 2px 8px rgba(var(--meadow-500-rgb, 16, 185, 129), 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.kpv-course-badge i {
    width: 14px;
    height: 14px;
}

/* ============================================================
   loading skeleton for paid content
   ============================================================ */

.kpv-loading {
    position: relative;
    min-height: 120px;
}

.kpv-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(90deg,
            var(--color-bg-card, rgba(255, 255, 255, 0.03)) 25%,
            rgba(255, 255, 255, 0.06) 50%,
            var(--color-bg-card, rgba(255, 255, 255, 0.03)) 75%);
    background-size: 200% 100%;
    animation: kpv-shimmer 1.5s ease-in-out infinite;
}

@keyframes kpv-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* light mode loading skeleton */
[data-theme="light"] .kpv-loading::after {
    background: linear-gradient(90deg,
            rgba(0, 0, 0, 0.04) 25%,
            rgba(0, 0, 0, 0.08) 50%,
            rgba(0, 0, 0, 0.04) 75%);
    background-size: 200% 100%;
}

/* ============================================================
   paywall cta
   ============================================================ */

.kpv-paywall {
    text-align: center;
    padding: 48px 24px;
    border-radius: 16px;
    background: var(--color-bg-card, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
    margin: 32px 0;
}

.kpv-paywall-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    margin-bottom: 16px;
    background: rgba(var(--meadow-500-rgb, 16, 185, 129), 0.12);
    color: var(--meadow-400, #34d39e);
}

.kpv-paywall-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.kpv-paywall-title--success {
    color: var(--meadow-400, #34d39e);
}

.kpv-paywall-desc {
    font-size: 0.9rem;
    color: var(--text-secondary, #a3a3a3);
    line-height: 1.6;
    margin: 0 0 20px;
    max-width: 520px;
    margin-inline: auto;
}

.kpv-paywall--cert {
    border-color: rgba(var(--meadow-500-rgb, 16, 185, 129), 0.2);
    background: rgba(var(--meadow-500-rgb, 16, 185, 129), 0.04);
}

/* ============================================================
   stat grid
   ============================================================ */

.kpv-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    margin: 24px 0;
}

.kpv-stat-card {
    text-align: center;
    padding: 16px 12px;
    border-radius: 12px;
    background: var(--color-bg-card, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
}

.kpv-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--meadow-400, #34d39e);
    margin-bottom: 4px;
}

.kpv-stat-label {
    font-size: 0.72rem;
    color: var(--text-secondary, #a3a3a3);
    line-height: 1.3;
}

/* ============================================================
   interactive area styling
   ============================================================ */

.kpv-interactive-header {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: lowercase;
    color: var(--meadow-400, #34d39e);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(var(--meadow-500-rgb, 16, 185, 129), 0.2);
}

.kpv-interactive-body {
    min-height: 200px;
    position: relative;
}

.kpv-interactive-hint {
    font-size: 0.8rem;
    color: var(--text-secondary, #a3a3a3);
    text-align: center;
    margin-top: 12px;
    font-style: italic;
}

/* neurotransmitter detail panel */
.kpv-neuro-detail {
    margin-top: 16px;
    padding: 16px;
    border-radius: 12px;
    background: var(--color-bg-card, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
    animation: kpv-fade-in 0.3s ease;
}

.kpv-neuro-detail-header {
    font-size: 0.9rem;
    padding-left: 12px;
    margin-bottom: 8px;
}

.kpv-neuro-detail-text {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary, #a3a3a3);
    margin: 0;
}

@keyframes kpv-fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   cert input
   ============================================================ */

.kpv-cert-form {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 12px;
}

.kpv-cert-input {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--color-border, rgba(255, 255, 255, 0.15));
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary, #fafafa);
    font-size: 0.9rem;
    min-width: 200px;
}

[data-theme="light"] .kpv-cert-input {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.15);
    color: #1a1a1a;
}

/* ============================================================
   key terms grid
   ============================================================ */

.kpv-terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr));
    gap: 12px;
    margin: 18px 0;
}

.kpv-term-card {
    position: relative;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
    transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.kpv-term-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, rgba(52,211,158,0.9), rgba(16,185,129,0.5));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.kpv-term-card:hover {
    border-color: rgba(52,211,158,0.22);
    background: linear-gradient(135deg, rgba(52,211,158,0.06), rgba(255,255,255,0.02));
    transform: translateY(-1px);
}

.kpv-term-card[open] {
    border-color: rgba(52,211,158,0.35);
    background: linear-gradient(135deg, rgba(52,211,158,0.08), rgba(255,255,255,0.02));
}

.kpv-term-card[open]::before {
    opacity: 1;
}.kpv-term-card[open] .kpv-term-chev,
.kpv-term-card[open] .kpv-term-chevron {
    transform: rotate(90deg);
}

.kpv-term-summary {
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
}

.kpv-term-summary::-webkit-details-marker { display: none; }
.kpv-term-summary::marker { display: none; content: ''; }

.kpv-term-monogram {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: none;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(52,211,158,0.15), rgba(16,185,129,0.06));
    border: 1px solid rgba(52,211,158,0.22);
    color: var(--meadow-400, #34d39e);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.02em;
    flex-shrink: 0;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.kpv-term-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.kpv-term-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text, #fff);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.kpv-term-cat {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.62);
    font-weight: 500;
}.kpv-term-chev,
.kpv-term-chevron {
    width: 16px;
    height: 16px;
    color: rgba(255,255,255,0.4);
    transition: transform 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}.kpv-term-card:hover .kpv-term-chev,
.kpv-term-card:hover .kpv-term-chevron,
.kpv-term-card[open] .kpv-term-chev,
.kpv-term-card[open] .kpv-term-chevron {
    color: var(--meadow-400, #34d39e);
}

.kpv-term-body {
    padding: 4px 16px 16px 16px;
    font-size: 0.84rem;
    line-height: 1.65;
    color: var(--color-muted, rgba(255,255,255,0.7));
}

[data-theme="light"] .kpv-term-card {
    background: linear-gradient(135deg, rgba(15,23,42,0.02), rgba(15,23,42,0.005));
    border-color: rgba(15,23,42,0.08);
}

[data-theme="light"] .kpv-term-card:hover {
    border-color: rgba(16,185,129,0.3);
    background: linear-gradient(135deg, rgba(16,185,129,0.04), rgba(15,23,42,0.005));
}

[data-theme="light"] .kpv-term-card[open] {
    border-color: rgba(16,185,129,0.4);
    background: linear-gradient(135deg, rgba(16,185,129,0.06), rgba(15,23,42,0.005));
}

[data-theme="light"] .kpv-term-monogram {
    display: none;
    background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(16,185,129,0.04));
    border-color: rgba(16,185,129,0.25);
    color: #047852;
}

[data-theme="light"] .kpv-term-name { color: #1a1a1a; }
[data-theme="light"] .kpv-term-cat { color: rgba(15,23,42,0.5); }[data-theme="light"] .kpv-term-chev,
[data-theme="light"] .kpv-term-chevron { color: rgba(15,23,42,0.4); }
[data-theme="light"] .kpv-term-body { color: rgba(15,23,42,0.7); }

/* ============================================================
   comparison layout
   ============================================================ */

.kpv-comparison-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 16px 0;
}

.kpv-comparison-card {
    padding: 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.1);
}

.kpv-comparison-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.kpv-comparison-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text, #fff);
    margin: 0;
}

.kpv-comparison-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kpv-comparison-list li {
    font-size: 0.8rem;
    line-height: 1.55;
    color: var(--color-muted, rgba(255,255,255,0.6));
    padding-left: 12px;
    position: relative;
}

.kpv-comparison-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--meadow-400, #34d39e);
}

/* ============================================================
   light theme overrides
   ============================================================ */

[data-theme="light"] .kpv-term-card {
    background: rgba(0,0,0,0.02);
    border-color: rgba(0,0,0,0.1);
}

[data-theme="light"] .kpv-term-card[open] { border-color: rgba(16,185,129,0.3); }

[data-theme="light"] .kpv-comparison-card {
    background: rgba(0,0,0,0.02);
    border-color: rgba(0,0,0,0.1);
}

[data-theme="light"] .kpv-stat-card {
    background: rgba(0,0,0,0.02);
    border-color: rgba(0,0,0,0.1);
}

/* ============================================================
   responsive
   ============================================================ */

@media (max-width: 600px) {
    .kpv-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .kpv-terms-grid { grid-template-columns: 1fr; }
    .kpv-comparison-layout { grid-template-columns: 1fr; }
}

/* ============================================================
   dosing snapshot -- free preview block above paywall
   ============================================================ */

.kpv-dosing-snapshot .kpv-comparison-card {
    background: linear-gradient(135deg, rgba(52,211,158,0.08), rgba(52,211,158,0.02));
    border-color: rgba(52,211,158,0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

[data-theme="light"] .kpv-dosing-snapshot .kpv-comparison-card {
    background: linear-gradient(135deg, rgba(16,185,129,0.06), rgba(16,185,129,0.015));
    border-color: rgba(16,185,129,0.2);
}

/* ============================================================
   unit 2 -- tuftsin to kpv derivation chain
   ============================================================ */

.kpv-derivation-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    padding: 8px 4px;
}

.kpv-derivation-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.kpv-derivation-tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: lowercase;
    color: var(--meadow-300, #6ee7bf);
    padding: 4px 10px;
    border-radius: 100px;
    background: rgba(var(--meadow-500-rgb, 16, 185, 129), 0.12);
    border: 1px solid rgba(var(--meadow-500-rgb, 16, 185, 129), 0.22);
    white-space: nowrap;
}

.kpv-derivation-tag--child {
    color: #fff;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.55), rgba(52, 211, 158, 0.4));
    border-color: rgba(52, 211, 158, 0.5);
}

[data-theme="light"] .kpv-derivation-tag {
    color: #047852;
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.25);
}

[data-theme="light"] .kpv-derivation-tag--child {
    color: #fff;
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #10b981;
}

.kpv-residue-chain {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: center;
}

.kpv-residue {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 8px 10px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(52, 211, 158, 0.18), rgba(16, 185, 129, 0.06));
    border: 1px solid rgba(52, 211, 158, 0.3);
    cursor: default;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.kpv-residue::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    width: 8px;
    height: 1px;
    background: rgba(52, 211, 158, 0.5);
    transform: translateY(-50%);
}

.kpv-residue:last-child::after { display: none; }

.kpv-residue-pos {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    line-height: 1;
}

.kpv-residue-aa {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--meadow-300, #6ee7bf);
    line-height: 1.2;
    margin-top: 2px;
}

.kpv-residue--added {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.22), rgba(167, 139, 250, 0.06));
    border-color: rgba(167, 139, 250, 0.5);
    animation: kpv-residue-grow 0.45s ease-out backwards;
}

.kpv-residue--added .kpv-residue-aa { color: #c4b5fd; }
.kpv-residue--added::after { background: rgba(167, 139, 250, 0.55); }

.kpv-residue-chain--child .kpv-residue--added:nth-child(5) { animation-delay: 0.05s; }
.kpv-residue-chain--child .kpv-residue--added:nth-child(6) { animation-delay: 0.2s; }
.kpv-residue-chain--child .kpv-residue--added:nth-child(7) { animation-delay: 0.35s; }

@keyframes kpv-residue-grow {
    from { opacity: 0; transform: translateX(-12px) scale(0.85); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

.kpv-residue:hover {
    transform: translateY(-2px);
    border-color: rgba(52, 211, 158, 0.7);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.18);
}

.kpv-residue--added:hover {
    border-color: rgba(167, 139, 250, 0.85);
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.2);
}

.kpv-residue[data-tip]:hover::before {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 200px;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.95);
    color: #fff;
    font-size: 0.72rem;
    line-height: 1.4;
    text-align: center;
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .kpv-residue {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.03));
    border-color: rgba(16, 185, 129, 0.3);
}

[data-theme="light"] .kpv-residue-pos { color: rgba(15, 23, 42, 0.45); }
[data-theme="light"] .kpv-residue-aa { color: #047852; }

[data-theme="light"] .kpv-residue--added {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0.03));
    border-color: rgba(139, 92, 246, 0.35);
}

[data-theme="light"] .kpv-residue--added .kpv-residue-aa { color: #6d28d9; }

.kpv-derivation-bridge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: rgba(167, 139, 250, 0.85);
}

.kpv-derivation-bridge-line {
    width: 1px;
    height: 18px;
    background: linear-gradient(180deg, rgba(52, 211, 158, 0.6), rgba(167, 139, 250, 0.7));
}

.kpv-derivation-bridge-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #c4b5fd;
}

[data-theme="light"] .kpv-derivation-bridge-label { color: #6d28d9; }

.kpv-derivation-legend {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 6px;
    font-size: 0.72rem;
    color: var(--text-secondary, #a3a3a3);
}

.kpv-derivation-key {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.kpv-derivation-swatch {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    border: 1px solid;
}

.kpv-derivation-swatch--parent {
    background: rgba(52, 211, 158, 0.25);
    border-color: rgba(52, 211, 158, 0.5);
}

.kpv-derivation-swatch--added {
    background: rgba(167, 139, 250, 0.28);
    border-color: rgba(167, 139, 250, 0.55);
}

/* ============================================================
   unit 3 -- GABA-A pentamer with binding sites
   ============================================================ */

.kpv-gaba-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 8px 4px;
}

.kpv-gaba-svg-wrap {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.kpv-gaba-svg { width: 100%; height: auto; display: block; }

.kpv-gaba-subunit {
    fill: rgba(52, 211, 158, 0.18);
    stroke: rgba(52, 211, 158, 0.55);
    stroke-width: 1.5;
    transition: fill 0.2s ease, stroke 0.2s ease;
}

[data-theme="light"] .kpv-gaba-subunit {
    fill: rgba(16, 185, 129, 0.1);
    stroke: rgba(16, 185, 129, 0.5);
}

.kpv-gaba-label {
    fill: var(--meadow-300, #6ee7bf);
    font-size: 12px;
    font-weight: 700;
    text-anchor: middle;
    dominant-baseline: middle;
    pointer-events: none;
}

[data-theme="light"] .kpv-gaba-label { fill: #047852; }

.kpv-gaba-pore {
    fill: rgba(15, 23, 42, 0.6);
    stroke: rgba(255, 255, 255, 0.15);
    stroke-width: 1;
}

[data-theme="light"] .kpv-gaba-pore {
    fill: rgba(15, 23, 42, 0.05);
    stroke: rgba(15, 23, 42, 0.15);
}

.kpv-gaba-pore-label {
    fill: rgba(255, 255, 255, 0.55);
    font-size: 10px;
    text-anchor: middle;
    dominant-baseline: middle;
    pointer-events: none;
}

[data-theme="light"] .kpv-gaba-pore-label { fill: rgba(15, 23, 42, 0.55); }

.kpv-gaba-site {
    cursor: pointer;
    transition: filter 0.2s ease;
}

.kpv-gaba-site circle {
    transition: stroke-width 0.2s ease;
}

.kpv-gaba-site:hover { filter: brightness(1.18); }
.kpv-gaba-site:hover circle { stroke-width: 2.5; }

.kpv-gaba-site-bzd circle {
    fill: rgba(251, 191, 36, 0.85);
    stroke: #fbbf24;
}

.kpv-gaba-site-kpv circle {
    fill: rgba(167, 139, 250, 0.85);
    stroke: #a78bfa;
}

.kpv-gaba-site-gaba circle {
    fill: rgba(52, 211, 158, 0.95);
    stroke: var(--meadow-400, #34d39e);
}

.kpv-gaba-site-label {
    font-size: 9px;
    font-weight: 700;
    text-anchor: middle;
    dominant-baseline: middle;
    pointer-events: none;
    fill: #0f172a;
}

.kpv-gaba-legend {
    display: grid;
    grid-template-columns: repeat(3, minmax(140px, 1fr));
    gap: 10px;
    font-size: 0.74rem;
}

.kpv-gaba-legend-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    border-radius: 10px;
    background: var(--color-bg-card, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
}

.kpv-gaba-legend-head {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--color-text, #fff);
}

.kpv-gaba-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.kpv-gaba-legend-dot--bzd { background: #fbbf24; }
.kpv-gaba-legend-dot--kpv { background: #a78bfa; }
.kpv-gaba-legend-dot--gaba { background: var(--meadow-400, #34d39e); }

.kpv-gaba-legend-text {
    font-size: 0.72rem;
    color: var(--text-secondary, #a3a3a3);
    line-height: 1.45;
}

[data-theme="light"] .kpv-gaba-legend-item {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .kpv-gaba-legend-head { color: #1a1a1a; }
[data-theme="light"] .kpv-gaba-legend-text { color: rgba(15, 23, 42, 0.7); }

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

/* ============================================================
   unit 4 -- BDNF cascade chart
   ============================================================ */

.kpv-bdnf-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 8px 4px;
}

.kpv-bdnf-svg-wrap { width: 100%; }
.kpv-bdnf-svg { width: 100%; height: auto; display: block; }

.kpv-bdnf-axis {
    stroke: rgba(255, 255, 255, 0.15);
    stroke-width: 1;
}

[data-theme="light"] .kpv-bdnf-axis { stroke: rgba(15, 23, 42, 0.18); }

.kpv-bdnf-grid {
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 1;
    stroke-dasharray: 3 3;
}

[data-theme="light"] .kpv-bdnf-grid { stroke: rgba(15, 23, 42, 0.06); }

.kpv-bdnf-tick {
    fill: rgba(255, 255, 255, 0.5);
    font-size: 10px;
}

[data-theme="light"] .kpv-bdnf-tick { fill: rgba(15, 23, 42, 0.55); }

.kpv-bdnf-axis-label {
    fill: var(--text-secondary, #a3a3a3);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: lowercase;
}

[data-theme="light"] .kpv-bdnf-axis-label { fill: rgba(15, 23, 42, 0.65); }

.kpv-bdnf-baseline {
    stroke: rgba(255, 255, 255, 0.35);
    stroke-width: 1;
    stroke-dasharray: 4 3;
}

[data-theme="light"] .kpv-bdnf-baseline { stroke: rgba(15, 23, 42, 0.3); }

.kpv-bdnf-baseline-label {
    fill: rgba(255, 255, 255, 0.5);
    font-size: 9px;
    font-style: italic;
}

[data-theme="light"] .kpv-bdnf-baseline-label { fill: rgba(15, 23, 42, 0.55); }

.kpv-bdnf-area {
    fill: url(#slkBdnfGrad);
    opacity: 0.85;
}

.kpv-bdnf-line {
    fill: none;
    stroke: var(--meadow-400, #34d39e);
    stroke-width: 2.5;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.kpv-bdnf-point {
    fill: var(--meadow-400, #34d39e);
    stroke: #fff;
    stroke-width: 2;
    cursor: pointer;
}

[data-theme="light"] .kpv-bdnf-point { stroke: #fff; }

.kpv-bdnf-value {
    fill: var(--meadow-300, #6ee7bf);
    font-size: 10px;
    font-weight: 700;
    text-anchor: middle;
    pointer-events: none;
}

[data-theme="light"] .kpv-bdnf-value { fill: #047852; }

.kpv-bdnf-caption {
    font-size: 0.74rem;
    color: var(--text-secondary, #a3a3a3);
    text-align: center;
    line-height: 1.5;
    margin: 0;
}

[data-theme="light"] .kpv-bdnf-caption { color: rgba(15, 23, 42, 0.7); }

.kpv-bdnf-region-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.7rem;
    color: var(--meadow-300, #6ee7bf);
    background: rgba(var(--meadow-500-rgb, 16, 185, 129), 0.14);
    border: 1px solid rgba(var(--meadow-500-rgb, 16, 185, 129), 0.25);
    margin: 0 4px;
}

[data-theme="light"] .kpv-bdnf-region-pill {
    color: #047852;
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.22);
}

/* ============================================================
   unit 5 -- cytokine dose slider
   ============================================================ */

.kpv-cyto-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 8px 4px;
}

.kpv-cyto-slider-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kpv-cyto-slider-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.78rem;
    color: var(--text-secondary, #a3a3a3);
}

.kpv-cyto-slider-readout {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--meadow-300, #6ee7bf);
}

[data-theme="light"] .kpv-cyto-slider-readout { color: #047852; }

.kpv-cyto-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    cursor: pointer;
}

[data-theme="light"] .kpv-cyto-slider { background: rgba(15, 23, 42, 0.08); }

.kpv-cyto-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--meadow-400, #34d39e);
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35);
    cursor: grab;
}

.kpv-cyto-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--meadow-400, #34d39e);
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35);
    cursor: grab;
}

.kpv-cyto-slider-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    color: var(--text-secondary, #a3a3a3);
}

.kpv-cyto-bars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.kpv-cyto-bar {
    padding: 12px;
    border-radius: 12px;
    background: var(--color-bg-card, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
    display: flex;
    flex-direction: column;
    gap: 8px;
}

[data-theme="light"] .kpv-cyto-bar {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

.kpv-cyto-bar-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
}

.kpv-cyto-bar-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-text, #fff);
    letter-spacing: -0.01em;
}

[data-theme="light"] .kpv-cyto-bar-name { color: #1a1a1a; }

.kpv-cyto-bar-tag {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary, #a3a3a3);
}

.kpv-cyto-bar-track {
    position: relative;
    height: 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

[data-theme="light"] .kpv-cyto-bar-track { background: rgba(15, 23, 42, 0.06); }

.kpv-cyto-bar-fill {
    position: absolute;
    inset: 0;
    transform-origin: left center;
    transform: scaleX(var(--kpv-cyto-fill, 0.5));
    border-radius: 6px;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s ease;
}

.kpv-cyto-bar-baseline {
    position: absolute;
    top: -4px;
    bottom: -4px;
    width: 1px;
    left: 50%;
    background: rgba(255, 255, 255, 0.45);
    transform: translateX(-0.5px);
}

[data-theme="light"] .kpv-cyto-bar-baseline { background: rgba(15, 23, 42, 0.4); }

.kpv-cyto-bar--pro .kpv-cyto-bar-fill {
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.kpv-cyto-bar--anti .kpv-cyto-bar-fill {
    background: linear-gradient(90deg, var(--meadow-400, #34d39e), #6ee7bf);
}

.kpv-cyto-bar-value {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.74rem;
    color: var(--text-secondary, #a3a3a3);
}

.kpv-cyto-bar-arrow {
    font-size: 0.78rem;
    font-weight: 700;
}

.kpv-cyto-bar-arrow--down { color: #34d39e; }
.kpv-cyto-bar-arrow--up { color: #34d39e; }
.kpv-cyto-bar-arrow--neutral { color: var(--text-secondary, #a3a3a3); }

.kpv-cyto-note {
    font-size: 0.74rem;
    color: var(--text-secondary, #a3a3a3);
    text-align: center;
    line-height: 1.5;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(var(--meadow-500-rgb, 16, 185, 129), 0.06);
    border: 1px solid rgba(var(--meadow-500-rgb, 16, 185, 129), 0.18);
}

[data-theme="light"] .kpv-cyto-note {
    color: rgba(15, 23, 42, 0.7);
    background: rgba(16, 185, 129, 0.04);
    border-color: rgba(16, 185, 129, 0.18);
}

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

/* ============================================================
   reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    .kpv-loading::after {
        animation: none;
    }

    .kpv-neuro-detail {
        animation: none;
    }

    .kpv-residue--added {
        animation: none;
    }

    .kpv-cyto-bar-fill {
        transition: none;
    }
}

/* ============================================================
   bespoke widgets per unit -- assembled from css/_kpv-fragments/
   ============================================================ */


/* --- 02-chemistry --- */
/**
 * kpv unit 2 (chemistry) bespoke widget styles
 *
 * widget vocabulary introduced for this unit:
 * - .kpv-residue-stack: three-row residue-position table (K, P, V) with side-chain,
 *   one-letter code, and functional role columns. used inside the
 *   content-sequence body to surface what each side chain contributes.
 *   shape:
 *     <div class="kpv-residue-stack">
 *       <div class="kpv-residue-row">
 *         <span class="kpv-residue-letter">K</span>
 *         <div class="kpv-residue-meta">
 *           <span class="kpv-residue-name">lysine</span>
 *           <span class="kpv-residue-role">positive charge, transporter recognition</span>
 *         </div>
 *       </div>
 *       ...two more rows
 *     </div>
 *
 * - .kpv-stability-bars: horizontal bar comparison of plain KPV vs analog stability
 *   (e.g. KdPT, cyclized prodrug, glycosylated prodrug) on a single axis.
 *   shape:
 *     <div class="kpv-stability-bars">
 *       <div class="kpv-stability-row">
 *         <span class="kpv-stability-label">plain KPV</span>
 *         <span class="kpv-stability-track"><span class="kpv-stability-fill kpv-stability-fill--low" style="width:18%"></span></span>
 *         <span class="kpv-stability-note">degrades quickly in protease-rich media</span>
 *       </div>
 *       ...
 *     </div>
 *
 * - .kpv-msh-family-grid: 3-up cards for alpha-MSH family fragments
 *   (alpha-MSH 1-13, alpha-MSH(11-13)/KPV, KdPT analog). used inside the
 *   content-alpha-msh-fragment body.
 *   shape:
 *     <div class="kpv-msh-family-grid">
 *       <div class="kpv-msh-family-card">
 *         <div class="kpv-msh-family-name">alpha-MSH (1-13)</div>
 *         <div class="kpv-msh-family-seq">SYSMEHFRWGKPV</div>
 *         <ul class="kpv-msh-family-list">...</ul>
 *       </div>
 *       ...
 *     </div>
 *
 * the bare class names are styled here; SQL body_html for each section uses these
 * classes so the visual layout is consistent across paid units.
 *
 * styling intentionally minimal -- phase 3 (visual polish) will refine.
 */

/* ============================================================
   .kpv-residue-stack -- three-row residue-position table
   ============================================================ */

.kpv-residue-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 18px 0;
    padding: 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(52, 211, 158, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(52, 211, 158, 0.18);
}

.kpv-residue-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(52, 211, 158, 0.12);
    border-radius: 10px;
}

[data-theme='dark'] .kpv-residue-row {
    background: rgba(20, 28, 24, 0.5);
}

.kpv-residue-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 18px;
    border-radius: 8px;
    background: rgba(52, 211, 158, 0.18);
    color: #1f5b46;
}

[data-theme='dark'] .kpv-residue-letter {
    background: rgba(52, 211, 158, 0.25);
    color: #b6f3d8;
}

.kpv-residue-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.kpv-residue-name {
    font-weight: 600;
    font-size: 14px;
}

.kpv-residue-role {
    font-size: 13px;
    opacity: 0.75;
}

/* ============================================================
   .kpv-stability-bars -- horizontal stability comparison
   ============================================================ */

.kpv-stability-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 18px 0;
    padding: 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(245, 158, 11, 0.18);
}

.kpv-stability-row {
    display: grid;
    grid-template-columns: 140px 1fr 1fr;
    align-items: center;
    gap: 12px;
}

@media (max-width: 640px) {
    .kpv-stability-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

.kpv-stability-label {
    font-weight: 600;
    font-size: 13px;
}

.kpv-stability-track {
    position: relative;
    height: 12px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.1);
    overflow: hidden;
}

.kpv-stability-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
}

.kpv-stability-fill--low { background: linear-gradient(90deg, #fb923c, #ef4444); }
.kpv-stability-fill--mid { background: linear-gradient(90deg, #fbbf24, #fb923c); }
.kpv-stability-fill--high { background: linear-gradient(90deg, #34d399, #10b981); }

.kpv-stability-note {
    font-size: 12px;
    opacity: 0.7;
}

/* ============================================================
   .kpv-msh-family-grid -- alpha-MSH fragment cards
   ============================================================ */

.kpv-msh-family-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.kpv-msh-family-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(52, 211, 158, 0.18);
}

[data-theme='dark'] .kpv-msh-family-card {
    background: rgba(20, 28, 24, 0.55);
}

.kpv-msh-family-name {
    font-weight: 700;
    font-size: 14px;
}

.kpv-msh-family-seq {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(52, 211, 158, 0.12);
    display: inline-block;
    align-self: flex-start;
}

.kpv-msh-family-list {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    line-height: 1.45;
}

.kpv-msh-family-list li {
    margin: 2px 0;
}

/* --- 03-nf-kb-mechanism --- */
/**
 * kpv unit 3 (nf-kb-mechanism) bespoke widget styles
 *
 * widget vocabulary introduced for this unit:
 * - .kpv-cascade-rail: vertical numbered cascade of NF-kB activation steps,
 *   with a "KPV brake" annotation slot per step that gets highlighted where
 *   KPV is reported to slow the node.
 *   shape:
 *     <ol class="kpv-cascade-rail">
 *       <li class="kpv-cascade-step kpv-cascade-step--inhibited">
 *         <span class="kpv-cascade-num">1</span>
 *         <div class="kpv-cascade-body">
 *           <div class="kpv-cascade-title">stimulus arrives (TNF-alpha, LPS, IL-1)</div>
 *           <div class="kpv-cascade-text">receptor engages and recruits IKK.</div>
 *           <div class="kpv-cascade-brake">KPV brake: reduces upstream signaling pressure on this node.</div>
 *         </div>
 *       </li>
 *       ...
 *     </ol>
 *
 * - .kpv-cytokine-grid: 3-up cards for the main NF-kB output cytokines
 *   (TNF-alpha, IL-1beta, IL-6) with the KPV-effect direction and a quick
 *   model-context line per cytokine.
 *   shape:
 *     <div class="kpv-cytokine-grid">
 *       <div class="kpv-cytokine-card">
 *         <div class="kpv-cytokine-name">TNF-alpha</div>
 *         <div class="kpv-cytokine-arrow">down</div>
 *         <div class="kpv-cytokine-context">DSS colitis, TNBS colitis, microglia.</div>
 *       </div>
 *       ...
 *     </div>
 *
 * - .kpv-versus: two-column split comparing the KPV intracellular route to the
 *   canonical alpha-MSH / melanocortin-receptor route. used in the
 *   content-vs-melanocortin body.
 *   shape:
 *     <div class="kpv-versus">
 *       <div class="kpv-versus-col kpv-versus-col--kpv">
 *         <h4 class="kpv-versus-title">KPV route</h4>
 *         <ul class="kpv-versus-list">...</ul>
 *       </div>
 *       <div class="kpv-versus-col kpv-versus-col--msh">
 *         <h4 class="kpv-versus-title">classical alpha-MSH route</h4>
 *         <ul class="kpv-versus-list">...</ul>
 *       </div>
 *     </div>
 *
 * styling intentionally minimal -- phase 3 (visual polish) will refine.
 */

/* ============================================================
   .kpv-cascade-rail -- NF-kB activation step rail
   ============================================================ */

.kpv-cascade-rail {
    list-style: none;
    margin: 18px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    counter-reset: kpvcascade;
}

.kpv-cascade-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(52, 211, 158, 0.16);
}

[data-theme='dark'] .kpv-cascade-step {
    background: rgba(20, 28, 24, 0.5);
}

.kpv-cascade-step--inhibited {
    background: linear-gradient(135deg, rgba(52, 211, 158, 0.12), rgba(255, 255, 255, 0.02));
    border-color: rgba(52, 211, 158, 0.35);
}

.kpv-cascade-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    font-weight: 700;
    font-size: 13px;
    border-radius: 8px;
    background: rgba(52, 211, 158, 0.18);
    color: #1f5b46;
}

[data-theme='dark'] .kpv-cascade-num {
    background: rgba(52, 211, 158, 0.25);
    color: #b6f3d8;
}

.kpv-cascade-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kpv-cascade-title {
    font-weight: 600;
    font-size: 14px;
}

.kpv-cascade-text {
    font-size: 13px;
    line-height: 1.45;
    opacity: 0.85;
}

.kpv-cascade-brake {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #1f5b46;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(52, 211, 158, 0.16);
    align-self: flex-start;
}

[data-theme='dark'] .kpv-cascade-brake {
    color: #b6f3d8;
}

/* ============================================================
   .kpv-cytokine-grid -- 3-up cytokine cards
   ============================================================ */

.kpv-cytokine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.kpv-cytokine-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(52, 211, 158, 0.18);
}

[data-theme='dark'] .kpv-cytokine-card {
    background: rgba(20, 28, 24, 0.55);
}

.kpv-cytokine-name {
    font-weight: 700;
    font-size: 14px;
}

.kpv-cytokine-arrow {
    font-size: 13px;
    font-weight: 600;
    color: #1f5b46;
}

[data-theme='dark'] .kpv-cytokine-arrow {
    color: #b6f3d8;
}

.kpv-cytokine-context {
    font-size: 12px;
    opacity: 0.75;
    line-height: 1.45;
}

/* ============================================================
   .kpv-versus -- two-column compare
   ============================================================ */

.kpv-versus {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 18px 0;
}

@media (max-width: 640px) {
    .kpv-versus {
        grid-template-columns: 1fr;
    }
}

.kpv-versus-col {
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(52, 211, 158, 0.18);
}

[data-theme='dark'] .kpv-versus-col {
    background: rgba(20, 28, 24, 0.55);
}

.kpv-versus-col--kpv {
    border-color: rgba(52, 211, 158, 0.35);
}

.kpv-versus-col--msh {
    border-color: rgba(167, 139, 250, 0.35);
}

.kpv-versus-title {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 700;
}

.kpv-versus-list {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    line-height: 1.5;
}

.kpv-versus-list li {
    margin: 4px 0;
}

/* --- 04-pept1-transport --- */
/* ============================================================
 * KPV unit 4 -- PepT1 transport bespoke widgets
 *
 * new widget vocabulary introduced by this unit:
 *   .kpv-pept1-route       -- lumen -> brush border -> epithelial cytosol -> submucosa flow rail
 *   .kpv-transport-gate    -- 4-step uptake grid (substrate fit, proton coupling, translocation, release)
 *   .kpv-tripeptide-fit    -- PepT1 substrate binding card (size + charge + bond count)
 *   .kpv-route-card        -- single-route summary card (used inside .kpv-pept1-route)
 *   .kpv-inflamed-bar      -- comparative expression bar (baseline vs inflamed) used in the
 *                              PepT1-in-inflamed-tissue section
 *
 * these classes are bespoke to unit 4 and should not be reused on other units
 * without confirming the visual contract still holds.
 * ============================================================ */

/* ---------- .kpv-pept1-route -- intestinal flow rail ---------- */
.kpv-pept1-route {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin: 18px 0;
    padding: 16px;
    background: var(--surface-elevated, rgba(255, 255, 255, 0.55));
    border: 1px solid var(--border-soft, rgba(0, 0, 0, 0.08));
    border-radius: 14px;
}

.kpv-route-card {
    position: relative;
    padding: 14px 12px;
    background: var(--surface-card, rgba(255, 255, 255, 0.85));
    border: 1px solid var(--border-soft, rgba(0, 0, 0, 0.08));
    border-radius: 10px;
}

.kpv-route-card::after {
    content: "->";
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: var(--text-muted, #6b7280);
    display: none;
}

@media (min-width: 720px) {
    .kpv-route-card:not(:last-child)::after {
        display: block;
    }
}

.kpv-route-step {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-emerald, #047857);
    margin-bottom: 6px;
}

.kpv-route-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    color: var(--text-strong, #0f172a);
}

.kpv-route-desc {
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-muted, #4b5563);
}

/* ---------- .kpv-transport-gate -- 4-step uptake grid ---------- */
.kpv-transport-gate {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.kpv-transport-gate-card {
    padding: 14px;
    background: var(--surface-card, rgba(255, 255, 255, 0.9));
    border-left: 3px solid var(--accent-emerald, #047857);
    border-radius: 8px;
}

.kpv-transport-gate-num {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-emerald, #047857);
    margin-bottom: 6px;
}

.kpv-transport-gate-title {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 14px;
}

.kpv-transport-gate-body {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted, #4b5563);
}

/* ---------- .kpv-tripeptide-fit -- substrate binding card ---------- */
.kpv-tripeptide-fit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.06), rgba(5, 150, 105, 0.04));
    border: 1px solid rgba(16, 185, 129, 0.18);
    border-radius: 12px;
    margin: 16px 0;
}

.kpv-fit-cell {
    text-align: center;
    padding: 10px 6px;
}

.kpv-fit-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted, #6b7280);
    margin-bottom: 4px;
}

.kpv-fit-value {
    font-weight: 700;
    font-size: 17px;
    color: var(--accent-emerald, #047857);
}

.kpv-fit-note {
    font-size: 12px;
    color: var(--text-muted, #6b7280);
    margin-top: 2px;
}

/* ---------- .kpv-inflamed-bar -- comparative bar ---------- */
.kpv-inflamed-bar {
    margin: 16px 0;
    padding: 14px;
    background: var(--surface-elevated, rgba(255, 255, 255, 0.55));
    border: 1px solid var(--border-soft, rgba(0, 0, 0, 0.08));
    border-radius: 12px;
}

.kpv-inflamed-bar-row {
    display: grid;
    grid-template-columns: 130px 1fr 60px;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
}

.kpv-inflamed-bar-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted, #4b5563);
}

.kpv-inflamed-bar-track {
    height: 10px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 5px;
    overflow: hidden;
}

.kpv-inflamed-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #047857);
    border-radius: 5px;
}

.kpv-inflamed-bar-value {
    font-size: 12px;
    font-weight: 600;
    text-align: right;
    color: var(--text-strong, #0f172a);
}

/* --- 05-ibd-applications --- */
/* ============================================================
 * KPV unit 5 -- IBD applications (marquee unit) bespoke widgets
 *
 * because this is the marquee unit, it introduces a richer widget
 * vocabulary than the standard paid units.
 *
 * new widget vocabulary introduced by this unit:
 *   .kpv-case-grid          -- case-based teaching cards (cases A/B/D/F from dossier section 60)
 *   .kpv-case-card          -- single case card
 *   .kpv-mucosa-layer       -- stacked epithelial/lamina-propria layer rendering for the
 *                                pathophysiology section
 *   .kpv-trial-evidence     -- preclinical trial mini-cards (DSS/TNBS/CAC studies in a row)
 *   .kpv-trial-card         -- single trial-evidence card
 *   .kpv-translation-gap    -- preclinical-to-clinical gap rail (a vertical timeline
 *                                showing the 10 translational gaps from dossier section 46)
 *   .kpv-colitis-model      -- DSS vs TNBS vs adoptive-transfer comparison block
 *
 * these classes are bespoke to unit 5 and should not be reused elsewhere
 * without confirming the visual contract still holds.
 * ============================================================ */

/* ---------- .kpv-case-grid -- case-based teaching cards ---------- */
.kpv-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.kpv-case-card {
    position: relative;
    padding: 16px 14px;
    background: var(--surface-card, rgba(255, 255, 255, 0.9));
    border: 1px solid var(--border-soft, rgba(0, 0, 0, 0.08));
    border-radius: 12px;
    border-top: 4px solid var(--accent-emerald, #047857);
}

.kpv-case-card[data-case="A"] { border-top-color: #047857; }
.kpv-case-card[data-case="B"] { border-top-color: #b45309; }
.kpv-case-card[data-case="D"] { border-top-color: #b91c1c; }
.kpv-case-card[data-case="F"] { border-top-color: #1d4ed8; }

.kpv-case-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-strong, #0f172a);
    margin-bottom: 8px;
}

.kpv-case-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 6px;
    color: var(--text-strong, #0f172a);
}

.kpv-case-body {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted, #4b5563);
}

.kpv-case-takeaway {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(0, 0, 0, 0.08);
    font-size: 12px;
    color: var(--text-muted, #6b7280);
    font-style: italic;
}

/* ---------- .kpv-mucosa-layer -- stacked epithelial diagram ---------- */
.kpv-mucosa-layer {
    margin: 16px 0;
    border: 1px solid var(--border-soft, rgba(0, 0, 0, 0.08));
    border-radius: 12px;
    overflow: hidden;
}

.kpv-mucosa-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    align-items: center;
    padding: 12px 14px;
    gap: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.kpv-mucosa-row:last-child { border-bottom: none; }

.kpv-mucosa-row[data-layer="lumen"]      { background: rgba(254, 243, 199, 0.4); }
.kpv-mucosa-row[data-layer="epithelium"] { background: rgba(220, 252, 231, 0.5); }
.kpv-mucosa-row[data-layer="lamina"]     { background: rgba(219, 234, 254, 0.4); }
.kpv-mucosa-row[data-layer="muscle"]     { background: rgba(243, 232, 255, 0.4); }

.kpv-mucosa-label {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-strong, #0f172a);
}

.kpv-mucosa-desc {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted, #4b5563);
}

/* ---------- .kpv-trial-evidence -- preclinical trial mini-cards ---------- */
.kpv-trial-evidence {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.kpv-trial-card {
    padding: 14px;
    background: var(--surface-elevated, rgba(255, 255, 255, 0.65));
    border: 1px solid var(--border-soft, rgba(0, 0, 0, 0.08));
    border-radius: 10px;
}

.kpv-trial-author {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-emerald, #047857);
    margin-bottom: 4px;
}

.kpv-trial-model {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
}

.kpv-trial-readout {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted, #4b5563);
}

.kpv-trial-effect {
    margin-top: 8px;
    padding: 6px 8px;
    background: rgba(16, 185, 129, 0.08);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #047857;
}

/* ---------- .kpv-translation-gap -- translational gap rail ---------- */
.kpv-translation-gap {
    margin: 18px 0;
    padding: 16px;
    background: var(--surface-elevated, rgba(255, 255, 255, 0.55));
    border-left: 4px solid #b91c1c;
    border-radius: 0 12px 12px 0;
}

.kpv-translation-gap-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #991b1b;
    margin-bottom: 12px;
}

.kpv-translation-gap-list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: gap-counter;
}

.kpv-translation-gap-item {
    position: relative;
    padding: 8px 8px 8px 38px;
    counter-increment: gap-counter;
    font-size: 13px;
    line-height: 1.5;
    border-bottom: 1px solid rgba(185, 28, 28, 0.08);
}

.kpv-translation-gap-item:last-child { border-bottom: none; }

.kpv-translation-gap-item::before {
    content: counter(gap-counter);
    position: absolute;
    left: 0;
    top: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fef2f2;
    color: #991b1b;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- .kpv-colitis-model -- DSS vs TNBS vs transfer comparison ---------- */
.kpv-colitis-model {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.kpv-colitis-model-card {
    padding: 14px;
    background: var(--surface-card, rgba(255, 255, 255, 0.9));
    border: 1px solid var(--border-soft, rgba(0, 0, 0, 0.08));
    border-radius: 10px;
}

.kpv-colitis-model-name {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--accent-emerald, #047857);
}

.kpv-colitis-model-trigger {
    font-size: 12px;
    color: var(--text-muted, #6b7280);
    margin-bottom: 8px;
    font-style: italic;
}

.kpv-colitis-model-captures {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted, #4b5563);
}

.kpv-colitis-model-misses {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(0, 0, 0, 0.08);
    font-size: 12px;
    color: var(--text-muted, #6b7280);
}

.kpv-colitis-model-misses strong { color: #b45309; }

/* --- 06-other-indications --- */
/* ============================================================
 * KPV unit 6 -- other indications (skin / neuro / arthritis) bespoke widgets
 *
 * this is a breadth unit -- it covers three different indication clusters
 * with a per-cluster pattern. new widget vocabulary introduced by this unit:
 *
 *   .kpv-indication-grid     -- top-of-section cluster cards (skin / neuro / arthritis row)
 *   .kpv-indication-card     -- single cluster card inside .kpv-indication-grid
 *   .kpv-evidence-strength   -- per-indication tier bar (claim + tested-molecule + confidence)
 *   .kpv-microglia-cascade   -- neuroinflammation-specific signaling rail
 *                                 (TLR -> NF-kB -> cytokine -> microglia readout)
 *   .kpv-skin-stack          -- stratum corneum / epidermis / dermis layered card for the
 *                                 skin section (mirrors .kpv-mucosa-layer but for skin)
 *   .kpv-tested-molecule     -- small pill that tags which molecule a finding actually used
 *                                 (free KPV / alpha-MSH(11-13) / KdPT / full alpha-MSH)
 *
 * these classes are bespoke to unit 6 and should not be reused on other units
 * without confirming the visual contract still holds.
 * ============================================================ */

/* ---------- .kpv-indication-grid -- cluster card row ---------- */
.kpv-indication-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.kpv-indication-card {
    position: relative;
    padding: 16px 14px;
    background: var(--surface-card, rgba(255, 255, 255, 0.9));
    border: 1px solid var(--border-soft, rgba(0, 0, 0, 0.08));
    border-radius: 12px;
    border-top: 4px solid var(--accent-emerald, #047857);
}

.kpv-indication-card[data-cluster="skin"]      { border-top-color: #b45309; }
.kpv-indication-card[data-cluster="neuro"]     { border-top-color: #1d4ed8; }
.kpv-indication-card[data-cluster="arthritis"] { border-top-color: #b91c1c; }

.kpv-indication-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-strong, #0f172a);
    margin-bottom: 8px;
}

.kpv-indication-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 6px;
    color: var(--text-strong, #0f172a);
}

.kpv-indication-body {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted, #4b5563);
}

.kpv-indication-anchor {
    margin-top: 10px;
    font-size: 12px;
    font-style: italic;
    color: var(--text-muted, #6b7280);
}

/* ---------- .kpv-evidence-strength -- per-indication tier bar ---------- */
.kpv-evidence-strength {
    margin: 18px 0;
    padding: 16px;
    background: var(--surface-elevated, rgba(255, 255, 255, 0.55));
    border: 1px solid var(--border-soft, rgba(0, 0, 0, 0.08));
    border-radius: 14px;
}

.kpv-evidence-strength-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted, #6b7280);
    margin-bottom: 10px;
}

.kpv-evidence-strength-row {
    display: grid;
    grid-template-columns: 140px 1fr 110px;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}

.kpv-evidence-strength-row:last-child {
    border-bottom: none;
}

.kpv-evidence-strength-claim {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-strong, #0f172a);
}

.kpv-evidence-strength-track {
    height: 10px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 5px;
    overflow: hidden;
}

.kpv-evidence-strength-fill {
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg, #f59e0b, #b45309);
}

.kpv-evidence-strength-fill[data-tier="solid"]    { background: linear-gradient(90deg, #10b981, #047857); }
.kpv-evidence-strength-fill[data-tier="moderate"] { background: linear-gradient(90deg, #38bdf8, #1d4ed8); }
.kpv-evidence-strength-fill[data-tier="weak"]     { background: linear-gradient(90deg, #f59e0b, #b45309); }
.kpv-evidence-strength-fill[data-tier="missing"]  { background: linear-gradient(90deg, #f87171, #b91c1c); }

.kpv-evidence-strength-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: right;
    color: var(--text-muted, #6b7280);
}

/* ---------- .kpv-microglia-cascade -- neuro signaling rail ---------- */
.kpv-microglia-cascade {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin: 16px 0;
    padding: 14px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.06), rgba(29, 78, 216, 0.04));
    border: 1px solid rgba(29, 78, 216, 0.18);
    border-radius: 12px;
}

.kpv-microglia-step {
    position: relative;
    padding: 10px 8px;
    background: var(--surface-card, rgba(255, 255, 255, 0.85));
    border-radius: 8px;
    border-left: 3px solid #1d4ed8;
}

.kpv-microglia-step-num {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #1d4ed8;
    margin-bottom: 4px;
}

.kpv-microglia-step-title {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
    color: var(--text-strong, #0f172a);
}

.kpv-microglia-step-body {
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-muted, #4b5563);
}

/* ---------- .kpv-skin-stack -- layered skin card ---------- */
.kpv-skin-stack {
    margin: 16px 0;
    border: 1px solid var(--border-soft, rgba(0, 0, 0, 0.08));
    border-radius: 12px;
    overflow: hidden;
}

.kpv-skin-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 14px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.kpv-skin-row:last-child {
    border-bottom: none;
}

.kpv-skin-row[data-layer="stratum"]   { background: rgba(180, 83, 9, 0.05); }
.kpv-skin-row[data-layer="epidermis"] { background: rgba(180, 83, 9, 0.08); }
.kpv-skin-row[data-layer="dermis"]    { background: rgba(180, 83, 9, 0.11); }

.kpv-skin-label {
    font-size: 13px;
    font-weight: 600;
    color: #b45309;
}

.kpv-skin-desc {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted, #4b5563);
}

/* ---------- .kpv-tested-molecule -- molecule tag ---------- */
.kpv-tested-molecule {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 8px;
    margin-right: 6px;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-strong, #0f172a);
}

.kpv-tested-molecule[data-mol="kpv"]       { background: rgba(16, 185, 129, 0.12); color: #047857; }
.kpv-tested-molecule[data-mol="amsh1113"]  { background: rgba(59, 130, 246, 0.12); color: #1d4ed8; }
.kpv-tested-molecule[data-mol="kdpt"]      { background: rgba(245, 158, 11, 0.14); color: #b45309; }
.kpv-tested-molecule[data-mol="full-amsh"] { background: rgba(168, 85, 247, 0.14); color: #6b21a8; }

/* --- 07-formulation-delivery --- */
/* ============================================================
 * KPV unit 7 -- formulation and delivery bespoke widgets
 *
 * new widget vocabulary introduced by this unit:
 *
 *   .kpv-formulation-timeline -- top-of-unit milestone rail showing carrier
 *                                  generations (free oral -> NP-in-hydrogel ->
 *                                  HA-targeted -> prodrug -> MMP-cleavable)
 *   .kpv-milestones            -- inner grid container of .kpv-milestone cards
 *   .kpv-milestone             -- single timeline milestone card
 *   .kpv-nanoparticle-card     -- per-carrier nanoparticle profile card
 *                                  (size + surface + ligand + payload + readout)
 *   .kpv-hydrogel-stack        -- layered hydrogel render
 *                                  (outer alginate / chitosan layer -> NP core -> release trigger)
 *   .kpv-prodrug-flow          -- chemical-modification flow rail
 *                                  (parent -> modification -> cleavage event -> active species)
 *   .kpv-claim-checklist       -- reading-formulation-claims checklist for the closing section
 *
 * these classes are bespoke to unit 7 and should not be reused on other units
 * without confirming the visual contract still holds.
 * ============================================================ */

/* ---------- .kpv-formulation-timeline + .kpv-milestones ---------- */
.kpv-formulation-timeline {
    position: relative;
    margin: 14px 0;
    padding: 8px 0;
}

.kpv-milestones {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    position: relative;
}

.kpv-milestones::before {
    content: "";
    position: absolute;
    top: 28px;
    left: 4%;
    right: 4%;
    height: 2px;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.3), rgba(29, 78, 216, 0.3), rgba(180, 83, 9, 0.3));
    display: none;
}

@media (min-width: 720px) {
    .kpv-milestones::before { display: block; }
}

.kpv-milestone {
    position: relative;
    padding: 14px 12px;
    background: var(--surface-card, rgba(255, 255, 255, 0.9));
    border: 1px solid var(--border-soft, rgba(0, 0, 0, 0.08));
    border-radius: 12px;
    border-top: 4px solid var(--accent-emerald, #047857);
}

.kpv-milestone[data-gen="1"] { border-top-color: #6b7280; }
.kpv-milestone[data-gen="2"] { border-top-color: #10b981; }
.kpv-milestone[data-gen="3"] { border-top-color: #047857; }
.kpv-milestone[data-gen="4"] { border-top-color: #1d4ed8; }
.kpv-milestone[data-gen="5"] { border-top-color: #b45309; }
.kpv-milestone[data-gen="6"] { border-top-color: #6b21a8; }

.kpv-milestone-year {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--accent-emerald, #047857);
    margin-bottom: 4px;
}

.kpv-milestone-label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--text-strong, #0f172a);
}

.kpv-milestone-note {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-muted, #4b5563);
}

/* ---------- .kpv-nanoparticle-card ---------- */
.kpv-nanoparticle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin: 16px 0;
}

.kpv-nanoparticle-card {
    padding: 14px;
    background: var(--surface-card, rgba(255, 255, 255, 0.9));
    border: 1px solid var(--border-soft, rgba(0, 0, 0, 0.08));
    border-radius: 12px;
    border-left: 4px solid #10b981;
}

.kpv-nanoparticle-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 6px;
    color: var(--text-strong, #0f172a);
}

.kpv-nanoparticle-spec {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 6px;
    font-size: 12px;
    line-height: 1.45;
    margin: 6px 0;
}

.kpv-nanoparticle-spec-label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted, #6b7280);
}

.kpv-nanoparticle-spec-value {
    color: var(--text-strong, #0f172a);
}

.kpv-nanoparticle-readout {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(0, 0, 0, 0.08);
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-muted, #4b5563);
    font-style: italic;
}

/* ---------- .kpv-hydrogel-stack ---------- */
.kpv-hydrogel-stack {
    margin: 16px 0;
    border: 1px solid var(--border-soft, rgba(0, 0, 0, 0.08));
    border-radius: 14px;
    overflow: hidden;
    background: var(--surface-elevated, rgba(255, 255, 255, 0.55));
}

.kpv-hydrogel-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 14px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.kpv-hydrogel-row:last-child {
    border-bottom: none;
}

.kpv-hydrogel-row[data-shell="outer"]   { background: rgba(16, 185, 129, 0.06); }
.kpv-hydrogel-row[data-shell="matrix"]  { background: rgba(16, 185, 129, 0.10); }
.kpv-hydrogel-row[data-shell="core"]    { background: rgba(16, 185, 129, 0.14); }
.kpv-hydrogel-row[data-shell="trigger"] { background: rgba(245, 158, 11, 0.12); }

.kpv-hydrogel-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-emerald, #047857);
}

.kpv-hydrogel-row[data-shell="trigger"] .kpv-hydrogel-label {
    color: #b45309;
}

.kpv-hydrogel-desc {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted, #4b5563);
}

/* ---------- .kpv-prodrug-flow ---------- */
.kpv-prodrug-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 16px 0;
    padding: 14px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.06), rgba(107, 33, 168, 0.04));
    border: 1px solid rgba(107, 33, 168, 0.18);
    border-radius: 12px;
}

.kpv-prodrug-step {
    position: relative;
    padding: 12px 10px;
    background: var(--surface-card, rgba(255, 255, 255, 0.9));
    border-radius: 10px;
    border-left: 3px solid #6b21a8;
}

.kpv-prodrug-step::after {
    content: "->";
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    color: #6b21a8;
    display: none;
}

@media (min-width: 720px) {
    .kpv-prodrug-step:not(:last-child)::after { display: block; }
}

.kpv-prodrug-step-num {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #6b21a8;
    margin-bottom: 4px;
}

.kpv-prodrug-step-title {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
    color: var(--text-strong, #0f172a);
}

.kpv-prodrug-step-body {
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-muted, #4b5563);
}

/* ---------- .kpv-claim-checklist ---------- */
.kpv-claim-checklist {
    margin: 16px 0;
    padding: 16px;
    background: var(--surface-elevated, rgba(255, 255, 255, 0.55));
    border: 1px solid var(--border-soft, rgba(0, 0, 0, 0.08));
    border-radius: 14px;
}

.kpv-claim-checklist-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted, #6b7280);
    margin-bottom: 10px;
}

.kpv-claim-checklist-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kpv-claim-checklist-item {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-strong, #0f172a);
}

.kpv-claim-checklist-item:last-child {
    border-bottom: none;
}

.kpv-claim-checklist-num {
    font-weight: 700;
    color: var(--accent-emerald, #047857);
}

/* --- 08-safety-quality --- */
/* ============================================================
 * KPV unit 8 -- safety and quality bespoke widgets
 *
 * new widget vocabulary introduced by this unit:
 *   .kpv-ae-pyramid        -- SVG adverse-event pyramid (mild base -> serious tip)
 *                              with a keyed legend block underneath. drives the
 *                              unit's SVG fingerprint for the visual variety audit.
 *   .kpv-storage-grid      -- 5-step compounded-product quality chain card row
 *                              (API source -> compounding -> container-closure
 *                              -> reconstitution -> in-solution storage)
 *   .kpv-red-flag-list     -- numbered seven-row claim red-flag stack
 *   .kpv-quality-check     -- two-column Q+A grid used for the AE framework,
 *                              the analytical-quality procurement checklist,
 *                              and the responsible-communication checklist
 *                              (modifier --analytical and --rcc tint the rows
 *                              slightly to make the three usages distinguishable)
 *
 * these classes are bespoke to unit 8 and should not be reused on other units
 * without confirming the visual contract still holds.
 * ============================================================ */

/* ---------- .kpv-ae-pyramid -- SVG adverse-event pyramid ---------- */
.kpv-ae-pyramid {
    margin: 18px 0;
    padding: 18px;
    background: var(--surface-elevated, rgba(255, 255, 255, 0.55));
    border: 1px solid var(--border-soft, rgba(0, 0, 0, 0.08));
    border-radius: 14px;
}

.kpv-ae-pyramid svg {
    display: block;
    margin: 0 auto 14px;
    max-width: 360px;
    width: 100%;
    height: auto;
}

.kpv-ae-pyramid-key {
    display: grid;
    gap: 8px;
    margin-top: 4px;
}

.kpv-ae-pyramid-key-row {
    display: grid;
    grid-template-columns: 78px 1fr;
    align-items: start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted, #4b5563);
}

.kpv-ae-pyramid-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 12px;
    text-align: center;
    color: #ffffff;
}

.kpv-ae-pyramid-pill--mild { background: #10b981; }
.kpv-ae-pyramid-pill--mod  { background: #059669; }
.kpv-ae-pyramid-pill--sev  { background: #b45309; }
.kpv-ae-pyramid-pill--ser  { background: #b91c1c; }

/* ---------- .kpv-storage-grid -- compounded-product quality chain ---------- */
.kpv-storage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.kpv-storage-card {
    padding: 14px 12px;
    background: var(--surface-card, rgba(255, 255, 255, 0.9));
    border: 1px solid var(--border-soft, rgba(0, 0, 0, 0.08));
    border-radius: 10px;
    border-top: 3px solid var(--accent-emerald, #047857);
}

.kpv-storage-card-step {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-emerald, #047857);
    margin-bottom: 6px;
}

.kpv-storage-card-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--text-strong, #0f172a);
}

.kpv-storage-card-body {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--text-muted, #4b5563);
}

/* ---------- .kpv-red-flag-list -- numbered red-flag stack ---------- */
.kpv-red-flag-list {
    display: grid;
    gap: 10px;
    margin: 18px 0;
    padding: 14px;
    background: rgba(185, 28, 28, 0.04);
    border: 1px solid rgba(185, 28, 28, 0.18);
    border-radius: 12px;
}

.kpv-red-flag-row {
    display: grid;
    grid-template-columns: 36px 1fr;
    align-items: start;
    gap: 12px;
    padding: 10px 12px;
    background: var(--surface-card, rgba(255, 255, 255, 0.9));
    border-radius: 8px;
}

.kpv-red-flag-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    background: #b91c1c;
    border-radius: 50%;
}

.kpv-red-flag-text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted, #4b5563);
}

/* ---------- .kpv-quality-check -- Q+A two-column checklist grid ---------- */
.kpv-quality-check {
    display: grid;
    gap: 8px;
    margin: 18px 0;
    padding: 14px;
    background: var(--surface-elevated, rgba(255, 255, 255, 0.55));
    border: 1px solid var(--border-soft, rgba(0, 0, 0, 0.08));
    border-radius: 12px;
}

.kpv-quality-check-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 12px;
    padding: 10px 12px;
    background: var(--surface-card, rgba(255, 255, 255, 0.9));
    border-radius: 8px;
}

.kpv-quality-check-q {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-strong, #0f172a);
}

.kpv-quality-check-a {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted, #4b5563);
}

.kpv-quality-check--analytical {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.04), rgba(5, 150, 105, 0.03));
    border-color: rgba(16, 185, 129, 0.18);
}

.kpv-quality-check--rcc {
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.04), rgba(30, 64, 175, 0.03));
    border-color: rgba(29, 78, 216, 0.18);
}

@media (max-width: 600px) {
    .kpv-quality-check-row { grid-template-columns: 1fr; }
    .kpv-ae-pyramid-key-row { grid-template-columns: 70px 1fr; }
}

/* --- 09-administration-regulatory --- */
/* ============================================================
 * KPV unit 9 -- administration and regulatory bespoke widgets
 *
 * new widget vocabulary introduced by this unit:
 *   .kpv-route-matrix      -- 4-card route comparison (oral / topical / SubQ /
 *                              ligand) with strength + caveat each
 *   .kpv-dose-framework    -- banner + 3-row dose-range table (oral, SubQ, topical)
 *                              with the "educational reference only" banner pinned
 *                              at the top
 *   .kpv-reg-status        -- key/value stack for the FDA 503A Cat 2 + market +
 *                              trial-registry status rows
 *   .kpv-research-roadmap  -- 4-phase banded roadmap list with phase headers
 *                              and ordered priority items inside each band
 *
 * these classes are bespoke to unit 9 and should not be reused on other units
 * without confirming the visual contract still holds.
 * ============================================================ */

/* ---------- .kpv-route-matrix -- 4-card route comparison ---------- */
.kpv-route-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.kpv-route-matrix-card {
    position: relative;
    padding: 14px 12px;
    background: var(--surface-card, rgba(255, 255, 255, 0.9));
    border: 1px solid var(--border-soft, rgba(0, 0, 0, 0.08));
    border-radius: 12px;
    border-top: 4px solid var(--accent-emerald, #047857);
}

.kpv-route-matrix-card[data-route="oral"]    { border-top-color: #047857; }
.kpv-route-matrix-card[data-route="topical"] { border-top-color: #b45309; }
.kpv-route-matrix-card[data-route="subq"]    { border-top-color: #1d4ed8; }
.kpv-route-matrix-card[data-route="ligand"]  { border-top-color: #6d28d9; }

.kpv-route-matrix-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-strong, #0f172a);
    margin-bottom: 8px;
}

.kpv-route-matrix-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 8px;
    color: var(--text-strong, #0f172a);
}

.kpv-route-matrix-strength,
.kpv-route-matrix-caveat {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted, #4b5563);
    margin-bottom: 6px;
}

.kpv-route-matrix-caveat {
    padding-top: 6px;
    border-top: 1px dashed rgba(0, 0, 0, 0.08);
    font-style: italic;
}

/* ---------- .kpv-dose-framework -- banner + range table ---------- */
.kpv-dose-framework {
    margin: 18px 0;
    border: 1px solid rgba(185, 28, 28, 0.18);
    border-radius: 12px;
    overflow: hidden;
}

.kpv-dose-framework-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(185, 28, 28, 0.08);
    color: #b91c1c;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px solid rgba(185, 28, 28, 0.18);
}

.kpv-dose-framework-grid {
    display: grid;
    gap: 1px;
    background: rgba(0, 0, 0, 0.06);
}

.kpv-dose-framework-row {
    display: grid;
    grid-template-columns: 100px 1fr 1fr;
    gap: 12px;
    padding: 12px 14px;
    background: var(--surface-card, rgba(255, 255, 255, 0.95));
    font-size: 13px;
    line-height: 1.5;
}

.kpv-dose-framework-route {
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-emerald, #047857);
}

.kpv-dose-framework-range {
    color: var(--text-strong, #0f172a);
}

.kpv-dose-framework-status {
    color: var(--text-muted, #6b7280);
    font-style: italic;
}

/* ---------- .kpv-reg-status -- FDA status key/value stack ---------- */
.kpv-reg-status {
    display: grid;
    gap: 1px;
    margin: 18px 0;
    background: rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-soft, rgba(0, 0, 0, 0.08));
    border-radius: 12px;
    overflow: hidden;
}

.kpv-reg-status-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 14px;
    padding: 12px 14px;
    background: var(--surface-card, rgba(255, 255, 255, 0.95));
    font-size: 13px;
    line-height: 1.5;
}

.kpv-reg-status-key {
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent-emerald, #047857);
}

.kpv-reg-status-val {
    color: var(--text-muted, #4b5563);
}

/* ---------- .kpv-research-roadmap -- 4-phase banded roadmap ---------- */
.kpv-research-roadmap {
    display: grid;
    gap: 12px;
    margin: 18px 0;
}

.kpv-research-roadmap-band {
    padding: 14px;
    background: var(--surface-elevated, rgba(255, 255, 255, 0.55));
    border: 1px solid var(--border-soft, rgba(0, 0, 0, 0.08));
    border-left: 4px solid var(--accent-emerald, #047857);
    border-radius: 10px;
}

.kpv-research-roadmap-band[data-band="phase-1"] { border-left-color: #047857; }
.kpv-research-roadmap-band[data-band="phase-2"] { border-left-color: #b45309; }
.kpv-research-roadmap-band[data-band="phase-3"] { border-left-color: #1d4ed8; }
.kpv-research-roadmap-band[data-band="phase-4"] { border-left-color: #6d28d9; }

.kpv-research-roadmap-band-title {
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-strong, #0f172a);
    margin-bottom: 8px;
}

.kpv-research-roadmap-list {
    margin: 0;
    padding-left: 22px;
    display: grid;
    gap: 6px;
}

.kpv-research-roadmap-item {
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-muted, #4b5563);
}

@media (max-width: 600px) {
    .kpv-dose-framework-row { grid-template-columns: 1fr; }
    .kpv-reg-status-row { grid-template-columns: 1fr; }
}
