/* Selected values come from the existing compound inspector; no extra copy at rest. */
#compound .cmp-tooltip{position:absolute;z-index:8;left:8px;top:8px;width:276px;max-width:calc(100% - 16px);padding:14px 15px 12px;border:1px solid rgba(220,188,122,.38);border-radius:4px;background:linear-gradient(125deg,rgba(216,181,111,.07),transparent 64%),rgba(13,12,10,.98);box-shadow:0 9px 28px rgba(0,0,0,.46),inset 0 1px 0 rgba(243,214,154,.1);color:#e8dcc5;pointer-events:none;opacity:0;font-variant-numeric:tabular-nums;contain:layout style;overflow-wrap:anywhere}
#compound.cmp-tooltip-open .cmp-tooltip{opacity:1}
#compound .cmp-tooltip[hidden]{display:none!important}
#compound .cmp-tooltip-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
#compound .cmp-tooltip-heading>strong{font:400 17px/1.25 'Geist Mono',Consolas,monospace;letter-spacing:-.035em;color:#eed49f;flex-shrink:0}
#compound .cmp-tooltip-heading>span{font-size:8px;line-height:1.5;color:#b7a080;text-align:right;max-width:145px}
#compound .cmp-tooltip-period{margin:5px 0 11px;font:9px/1.6 'Geist Mono',Consolas,monospace;color:#9a8b73}
#compound .cmp-tooltip-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 0 8px;border-top:1px solid rgba(200,169,110,.14)}
#compound .cmp-tooltip-row:last-child{padding-bottom:0}
#compound .cmp-tooltip-name{display:flex;align-items:center;gap:8px;font:10px/1.4 'Geist Mono','Segoe UI',sans-serif;color:#d7c39d}
#compound .cmp-tooltip-name>i{width:11px;height:2px;background:#dfbd78;flex-shrink:0;box-shadow:0 0 5px rgba(222,181,105,.3)}
#compound .cmp-tooltip-defense .cmp-tooltip-name>i{background:#d7c8ab}
#compound .cmp-tooltip-name small{display:block;font:8px/1.5 'Microsoft YaHei',sans-serif;letter-spacing:.08em;color:#b0a189;margin-top:2px}
#compound .cmp-tooltip-value{display:flex;flex-direction:column;align-items:flex-end;gap:3px;white-space:nowrap}
#compound .cmp-tooltip-value>strong{font:400 19px/1.1 'Geist Mono',Consolas,monospace;letter-spacing:-.045em;color:#efcf91}
#compound .cmp-tooltip-defense .cmp-tooltip-value>strong{color:#e2d7c1}
#compound .cmp-tooltip-value>span{font:8px/1.5 'Geist Mono','Microsoft YaHei',monospace;color:#ad9874}
#compound .cmp-tooltip-value>.cmp-tooltip-negative{color:#c99180}
#compound .cmp-tooltip-glows{pointer-events:none}
#compound .cmp-tooltip-active-group{opacity:0}
#compound.cmp-tooltip-open .cmp-tooltip-active-group{opacity:1}
#compound .cmp-tooltip-glow-soft{fill:#e5bb68;opacity:.13;filter:blur(4px);stroke:none}
#compound .cmp-tooltip-glow-inner{fill:#e8bf73;opacity:.14;filter:blur(1.5px);stroke:none}
#compound .cmp-tooltip-glow-rim{fill:none;stroke:#f1d195;stroke-width:.8;opacity:.5;vector-effect:non-scaling-stroke}
#compound .cmp-tooltip-glow-defense{opacity:.12}
#compound .cmp-tooltip-glow-rim.cmp-tooltip-glow-defense{opacity:.38;stroke:#e1c99d}
#compound .cmp-tooltip-active.cmp-tooltip-glow-soft{opacity:.2}
#compound .cmp-tooltip-active.cmp-tooltip-glow-rim{opacity:.68}
#compound[data-cmp-animating="transition"] .cmp-tooltip-glows{visibility:hidden}
#compound.cmp-tooltip-motion .cmp-tooltip,#compound.cmp-tooltip-motion .cmp-tooltip-active-group{transition:opacity .16s ease-out}
#compound.cmp-tooltip-motion.cmp-tooltip-open .cmp-tooltip-active-group{animation:cmp-tooltip-appear .16s ease-out}
@keyframes cmp-tooltip-appear{from{opacity:0}to{opacity:1}}
@media(max-width:400px){#compound .cmp-tooltip{width:258px;padding:12px}#compound .cmp-tooltip-heading>strong{font-size:16px}#compound .cmp-tooltip-value>strong{font-size:18px}#compound .cmp-tooltip-name{font-size:9px;gap:7px}#compound .cmp-tooltip-row{gap:10px;padding-top:8px;padding-bottom:6px}#compound .cmp-tooltip-row:last-child{padding-bottom:0}#compound .cmp-tooltip-period{display:none}}
@media(prefers-reduced-motion:reduce){#compound .cmp-tooltip,#compound .cmp-tooltip-active-group{animation:none!important;transition:none!important}}
html[data-motion="paused"] #compound .cmp-tooltip{animation:none!important;transition:none!important}

/* Mobile uses the permanent inspector immediately below the plot. */
@media(max-width:680px){#compound .cmp-tooltip{display:none!important}#compound .cmp-tooltip-active-group{animation:none!important}}
