.entity-term{background-color:transparent;color:inherit;cursor:pointer;transition:all .2s cubic-bezier(.4,0,.2,1);min-height:24px;display:inline-flex;align-items:center;padding:2px 0;-webkit-tap-highlight-color:rgba(0,0,0,.1);-webkit-box-decoration-break:clone;box-decoration-break:clone;-webkit-touch-callout:none;will-change:auto}.entity-term:hover,.entity-term.active{color:var(--entity-color);border-bottom:1px solid var(--entity-color);background-color:color-mix(in srgb,var(--entity-color) 8%,transparent);transform:translateY(-1px);will-change:transform,color,background-color}.entity-term:active{transform:translateY(0);transition-duration:.1s}.entity-term.entity-link-disease{--entity-color: #dc2626}.entity-term.entity-link-drug{--entity-color: #7c3aed}.entity-term.entity-link-procedure{--entity-color: #0891b2}.entity-term.entity-link-labtest{--entity-color: #059669}.entity-term.entity-link-anatomy{--entity-color: #d97706}.entity-term.entity-link-symptom{--entity-color: #db2777}.entity-term.entity-link-pathogen{--entity-color: #65a30d}.entity-term.entity-link-concept{--entity-color: #4f46e5}.entity-term.entity-link-formula{--entity-color: #0ea5e9}.entity-term.entity-link-score{--entity-color: #f59e0b}.entity-term.entity-link-classification{--entity-color: #8b5cf6}.entity-term.entity-link-criteria{--entity-color: #d946ef}.entity-term.entity-link-unknown{--entity-color: #6b7280}.entity-tooltip{background:#fff;border:1px solid #e5e7eb;border-radius:12px;box-shadow:0 20px 50px #0000001f,0 8px 16px #00000014,0 0 0 1px #0000000a;max-width:380px;min-width:280px;max-height:400px;overflow-y:auto;z-index:10!important;font-family:inherit;font-size:14px;color:#374151;opacity:0;transform:scale(.96) translateY(4px);transition:opacity .2s cubic-bezier(.4,0,.2,1),transform .2s cubic-bezier(.4,0,.2,1);pointer-events:none;will-change:transform,opacity;scrollbar-width:thin;scrollbar-color:#cbd5e1 transparent}.entity-tooltip::-webkit-scrollbar{width:6px}.entity-tooltip::-webkit-scrollbar-track{background:transparent}.entity-tooltip::-webkit-scrollbar-thumb{background-color:#cbd5e1;border-radius:4px;border:2px solid transparent;background-clip:content-box}.entity-tooltip::-webkit-scrollbar-thumb:hover{background-color:#94a3b8}.entity-tooltip.show{opacity:1;transform:scale(1) translateY(0);pointer-events:auto}.entity-tooltip-header{display:flex;align-items:center;gap:8px;padding:12px 14px;border-bottom:1px solid #f3f4f6;background:#fff;border-radius:12px 12px 0 0;position:sticky;top:0;z-index:10}.entity-tooltip-term{flex:1;font-weight:600;color:#111827;text-transform:capitalize}.entity-tooltip-badge{font-size:11px;font-weight:600;color:#fff;padding:3px 8px;border-radius:12px;text-transform:uppercase;letter-spacing:.03em;box-shadow:0 1px 2px #0000000d}.entity-tooltip-loading{padding:16px;color:#9ca3af;text-align:center;font-style:italic;display:flex;align-items:center;justify-content:center;gap:8px;min-height:100px}.spinner-pulse{width:16px;height:16px;border:2px solid #e5e7eb;border-top-color:#6b7280;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.entity-tooltip-summary{padding:12px 14px;margin:0;line-height:1.6;color:#374151;border-bottom:1px solid #f3f4f6}.entity-tooltip-sections{width:100%}.entity-tooltip-section{border-bottom:1px solid #f3f4f6}.entity-tooltip-section:last-child{border-bottom:none}.entity-tooltip-section-header{width:100%;display:flex;align-items:center;gap:8px;padding:12px 14px;background:none;border:none;cursor:pointer;font-size:13px;font-weight:600;color:#374151;text-align:left;transition:all .2s ease}.entity-tooltip-section-header:hover{background-color:#f9fafb;color:#111827}.entity-tooltip-chevron{font-size:11px;color:#9ca3af;transition:transform .25s cubic-bezier(.34,1.56,.64,1);display:inline-block}.entity-tooltip-chevron.expanded{transform:rotate(90deg);color:#6b7280}.entity-tooltip-section-content{padding:0 14px 12px 24px}.entity-tooltip-section-content p{margin:0;line-height:1.6;color:#6b7280;font-size:13px}.entity-tooltip-section-content ul{margin:0;padding-left:16px;list-style-type:disc}.entity-tooltip-section-content li{margin-bottom:4px;line-height:1.5;color:#6b7280;font-size:13px}.entity-tooltip-section-content li:last-child{margin-bottom:0}.entity-mobile-overlay{position:fixed;inset:0;background-color:#0000;z-index:2147483647!important;display:flex;align-items:flex-end;justify-content:center;touch-action:none;-webkit-tap-highlight-color:transparent;pointer-events:none;transition:background-color .3s ease}.entity-mobile-overlay.visible{background-color:#0006;pointer-events:auto}.entity-mobile-sheet{width:100%;max-width:600px;background:#fff;border-top-left-radius:20px;border-top-right-radius:20px;max-height:85vh;display:flex;flex-direction:column;box-shadow:0 -8px 32px #0000001f,0 -4px 16px #00000014;transform:translateY(100%);will-change:transform;transition:transform .35s cubic-bezier(.32,.72,0,1);-webkit-overflow-scrolling:touch}.entity-mobile-sheet.visible{transform:translateY(0)}.entity-mobile-handle-bar{width:100%;height:24px;display:flex;align-items:center;justify-content:center;flex-shrink:0;padding:8px 0;cursor:grab}.entity-mobile-handle-bar:active{cursor:grabbing}.entity-mobile-handle{width:40px;height:4px;background-color:#d1d5db;border-radius:2px;transition:all .2s ease}.entity-mobile-handle-bar:active .entity-mobile-handle{width:48px;background-color:#9ca3af}.entity-mobile-sheet .entity-tooltip-sections{overflow-y:auto;flex:1;max-height:none;overscroll-behavior:contain;padding-bottom:calc(env(safe-area-inset-bottom,0px) + 24px)}@media(prefers-reduced-motion:reduce){.entity-term,.entity-tooltip,.entity-mobile-sheet{animation:none!important;transition:none!important}}@media(max-width:768px){.entity-tooltip{display:none!important}.entity-term{min-height:32px;padding:4px 2px}.entity-term:active{transform:scale(.98)}}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#c9d1d9;background:#0d1117}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#ff7b72}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#d2a8ff}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#79c0ff}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#a5d6ff}.hljs-built_in,.hljs-symbol{color:#ffa657}.hljs-comment,.hljs-code,.hljs-formula{color:#8b949e}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#7ee787}.hljs-subst{color:#c9d1d9}.hljs-section{color:#1f6feb;font-weight:700}.hljs-bullet{color:#f2cc60}.hljs-emphasis{color:#c9d1d9;font-style:italic}.hljs-strong{color:#c9d1d9;font-weight:700}.hljs-addition{color:#aff5b4;background-color:#033a16}.hljs-deletion{color:#ffdcd7;background-color:#67060c}
