.anatomy-term {
    display: inline;
    border-bottom: 2px dashed rgba(var(--term-rgb, 139 166 255), 0.82);
    background: linear-gradient(180deg, rgba(var(--term-rgb, 139 166 255), 0.2), rgba(var(--term-rgb, 139 166 255), 0.08));
    border-radius: 0.35em;
    box-shadow:
        inset 0 -1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 1px rgba(var(--term-rgb, 139 166 255), 0.08);
    color: inherit;
    cursor: help;
    padding: 0 0.12em;
    transition: background-color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.anatomy-term:hover {
    background: linear-gradient(180deg, rgba(var(--term-rgb, 139 166 255), 0.3), rgba(var(--term-rgb, 139 166 255), 0.14));
    box-shadow:
        inset 0 -1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 1px rgba(var(--term-rgb, 139 166 255), 0.2),
        0 0 16px rgba(var(--term-rgb, 139 166 255), 0.08);
}

.anatomy-term--development { --term-rgb: 103 191 255; }
.anatomy-term--cell { --term-rgb: 115 214 190; }
.anatomy-term--space { --term-rgb: 124 230 214; }
.anatomy-term--structure { --term-rgb: 255 205 120; }
.anatomy-term--nucleus { --term-rgb: 201 168 255; }
.anatomy-term--nerve { --term-rgb: 255 149 169; }
.anatomy-term--heart { --term-rgb: 255 173 148; }
.anatomy-term--vessel { --term-rgb: 255 122 122; }

.anatomy-glossary-popover {
    position: fixed;
    z-index: 1200;
    width: min(360px, calc(100vw - 24px));
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(var(--glossary-rgb, 139 166 255), 0.34);
    background:
        linear-gradient(160deg, rgba(7, 16, 36, 0.98), rgba(12, 24, 47, 0.96)),
        radial-gradient(circle at top right, rgba(var(--glossary-rgb, 139 166 255), 0.14), transparent 52%);
    box-shadow:
        0 20px 48px rgba(2, 8, 18, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    color: #edf4ff;
    pointer-events: none;
    backdrop-filter: blur(14px);
}

.anatomy-glossary-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.anatomy-glossary-head h3 {
    margin: 0;
    font-size: 1.04rem;
    line-height: 1.2;
    text-wrap: balance;
}

.anatomy-glossary-badge {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 0.26rem 0.68rem;
    border-radius: 999px;
    background: rgba(var(--glossary-rgb, 139 166 255), 0.16);
    border: 1px solid rgba(var(--glossary-rgb, 139 166 255), 0.28);
    color: rgb(var(--glossary-rgb, 139 166 255));
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.anatomy-glossary-summary {
    margin: 0;
    color: rgba(237, 244, 255, 0.94);
    font-size: 0.94rem;
    line-height: 1.45;
}

.anatomy-glossary-bullets {
    margin: 10px 0 0;
    padding-left: 1.05rem;
    color: rgba(225, 237, 255, 0.82);
    font-size: 0.88rem;
    line-height: 1.4;
}

.anatomy-glossary-bullets li + li {
    margin-top: 0.34rem;
}

.anatomy-glossary-related {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.anatomy-glossary-related-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.56rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(232, 241, 255, 0.76);
    font-size: 0.74rem;
    letter-spacing: 0.03em;
}
