.para2-view-selector {
    margin-bottom: 8px;
}

.para2-memory-stage {
    margin-top: 24px;
    display: grid;
    gap: 20px;
}

.para2-memory-stage[hidden] {
    display: none !important;
}

.para2-memory-hero,
.para2-memory-cluster {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        radial-gradient(circle at 84% 16%, rgba(118, 188, 255, 0.1), transparent 28%),
        linear-gradient(155deg, rgba(8, 18, 38, 0.94), rgba(12, 28, 58, 0.8));
    box-shadow: 0 24px 48px rgba(4, 10, 22, 0.26);
}

.para2-memory-hero::before,
.para2-memory-cluster::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 10% 18%, rgba(255, 255, 255, 0.05), transparent 24%),
        repeating-linear-gradient(128deg, rgba(255, 255, 255, 0.014) 0 2px, transparent 2px 8px);
    opacity: 0.7;
}

.para2-memory-hero > *,
.para2-memory-cluster > * {
    position: relative;
    z-index: 1;
}

.para2-memory-hero {
    padding: 22px;
}

.para2-memory-hero h2,
.para2-memory-cluster-title {
    margin: 0;
    color: #f3f8ff;
}

.para2-memory-hero p {
    margin: 12px 0 0;
    max-width: 940px;
    color: rgba(232, 241, 255, 0.84);
    line-height: 1.55;
}

.para2-memory-primer-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.para2-memory-primer-card,
.para2-memory-card {
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(6, 14, 28, 0.64);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.para2-memory-primer-card {
    padding: 16px 18px;
}

.para2-memory-primer-card h3 {
    margin: 0 0 10px;
    font-size: 15px;
    color: #f4f8ff;
}

.para2-memory-primer-card ul {
    margin: 0;
    padding-left: 18px;
}

.para2-memory-primer-card li {
    color: rgba(228, 237, 250, 0.88);
    line-height: 1.5;
}

.para2-memory-controls {
    display: grid;
    gap: 12px;
}

.para2-memory-control-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.para2-memory-control-label {
    color: rgba(232, 241, 255, 0.78);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.para2-memory-chip {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(8, 18, 40, 0.5);
    color: #e6efff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.para2-memory-chip:hover,
.para2-memory-chip:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(180, 214, 255, 0.28);
    box-shadow: 0 12px 24px rgba(5, 14, 30, 0.18);
}

.para2-memory-chip.is-active {
    border-color: rgba(180, 214, 255, 0.44);
    background: linear-gradient(135deg, rgba(118, 188, 255, 0.22), rgba(72, 120, 220, 0.18));
    box-shadow: 0 0 0 1px rgba(180, 214, 255, 0.08), 0 14px 30px rgba(5, 14, 30, 0.22);
}

.para2-memory-chip.token-stage.is-active {
    border-color: rgba(232, 174, 61, 0.42);
    background: linear-gradient(135deg, rgba(232, 174, 61, 0.22), rgba(232, 174, 61, 0.12));
}

.para2-memory-chip.token-vector.is-active {
    border-color: rgba(191, 101, 222, 0.42);
    background: linear-gradient(135deg, rgba(191, 101, 222, 0.22), rgba(191, 101, 222, 0.12));
}

.para2-memory-chip.token-site.is-active {
    border-color: rgba(106, 196, 79, 0.42);
    background: linear-gradient(135deg, rgba(106, 196, 79, 0.22), rgba(106, 196, 79, 0.12));
}

.para2-memory-chip.token-host.is-active {
    border-color: rgba(75, 180, 255, 0.42);
    background: linear-gradient(135deg, rgba(75, 180, 255, 0.22), rgba(75, 180, 255, 0.12));
}

.para2-memory-chip.token-diagnosis.is-active {
    border-color: rgba(219, 94, 94, 0.42);
    background: linear-gradient(135deg, rgba(219, 94, 94, 0.22), rgba(219, 94, 94, 0.12));
}

.para2-memory-lens-summary {
    color: rgba(232, 241, 255, 0.76);
    font-size: 14px;
    line-height: 1.5;
}

.para2-memory-cluster {
    padding: 20px;
}

.para2-memory-cluster-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.para2-memory-cluster-copy {
    max-width: 860px;
}

.para2-memory-cluster-title {
    font-size: 24px;
    line-height: 1.08;
}

.para2-memory-cluster-copy p {
    margin: 10px 0 0;
    color: rgba(230, 238, 249, 0.8);
    line-height: 1.5;
}

.para2-memory-cluster-count {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(236, 243, 255, 0.86);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.para2-memory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.para2-memory-card {
    --para2-memory-rgb: 118 188 255;
    padding: 16px 18px;
    border-color: rgba(var(--para2-memory-rgb), 0.18);
    background:
        radial-gradient(circle at top right, rgba(var(--para2-memory-rgb), 0.12), transparent 42%),
        rgba(6, 14, 28, 0.74);
}

.para2-memory-card[data-family="trematodes"] { --para2-memory-rgb: 106 196 79; }
.para2-memory-card[data-family="cestodes"] { --para2-memory-rgb: 232 174 61; }
.para2-memory-card[data-family="nematodes"] { --para2-memory-rgb: 219 94 94; }
.para2-memory-card[data-family="arthropods"] { --para2-memory-rgb: 191 101 222; }

.para2-memory-card-head {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}

.para2-memory-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.para2-memory-kind {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(var(--para2-memory-rgb), 0.3);
    background: rgba(var(--para2-memory-rgb), 0.1);
    color: rgba(250, 252, 255, 0.9);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.para2-memory-card h3 {
    margin: 0;
    font-size: 24px;
    line-height: 1.08;
    color: #f3f8ff;
}

.para2-memory-card-subtitle {
    margin: 0;
    color: rgba(233, 241, 251, 0.74);
    font-size: 14px;
}

.para2-memory-lines {
    display: grid;
    gap: 10px;
}

.para2-memory-line {
    display: grid;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.para2-memory-line-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.para2-memory-line p,
.para2-memory-compare {
    margin: 0;
    color: rgba(238, 244, 252, 0.92);
    line-height: 1.55;
}

.para2-memory-compare {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.para2-memory-empty {
    padding: 26px 22px;
    text-align: center;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(6, 14, 28, 0.56);
}

.para2-memory-empty h2 {
    margin: 0 0 10px;
    color: #f3f8ff;
}

.para2-memory-empty p {
    margin: 0;
    color: rgba(230, 238, 249, 0.76);
}

@media (max-width: 820px) {
    .para2-memory-cluster-head {
        flex-direction: column;
    }
}

@media (max-width: 680px) {
    .para2-memory-control-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .para2-memory-control-row::-webkit-scrollbar {
        display: none;
    }

    .para2-memory-chip {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .para2-memory-grid,
    .para2-memory-primer-grid {
        grid-template-columns: 1fr;
    }

    .para2-memory-hero,
    .para2-memory-cluster {
        padding: 18px 16px;
        border-radius: 24px;
    }

    .para2-memory-card h3 {
        font-size: 21px;
    }
}
