/* Scoped TetrAIs 3D Controls v3-inspired badge documentation. */
.tetrais-help-trigger{display:inline-grid;place-items:center;vertical-align:middle;min-width:32px;min-height:32px;margin:3px 4px;padding:0 6px;border:1px solid #5ac6cf;border-radius:50%;background:#173747;color:#a9fff0;font-weight:900;font-size:16px;line-height:1;cursor:pointer;touch-action:manipulation}
.tetrais-help-trigger:hover,.tetrais-help-trigger[aria-expanded=true]{background:#a9ff91;color:#102428;border-color:#b6ffcb}
.tetrais-help-trigger:focus-visible,.th-close:focus-visible{outline:3px solid #9dfccf;outline-offset:3px}
@media(pointer:coarse){.tetrais-help-trigger{min-width:44px;min-height:44px}}
.tetrais-help-popover{position:fixed;z-index:2147483400;box-sizing:border-box;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;padding:16px 17px;border:1px solid #66c9b9;border-radius:15px;background:#111f2e;box-shadow:0 18px 50px #000c;color:#e6f2fd;text-align:left;font:14px/1.55 Inter,Manrope,system-ui,sans-serif;overscroll-behavior:contain;pointer-events:auto}
.tetrais-help-popover[hidden]{display:none!important}
.th-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:10px;border-bottom:1px solid #35516a}
.th-group{font-size:11px;font-weight:800;letter-spacing:.12em;color:#a7ff83}
.th-title{font-size:20px;margin:4px 0 0;line-height:1.2;color:#effff9}
.th-close{min-width:35px;min-height:35px;border:1px solid #4d7586;border-radius:9px;background:#1a3446;color:#dceefa;font-size:24px;line-height:1;cursor:pointer}
.th-meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.th-meta span{display:inline-flex;border:1px solid #466c81;background:#203847;border-radius:999px;padding:4px 9px;color:#bdd9ee;font-size:11px;font-weight:800}
.th-meta .th-state[data-state=working]{background:#153b32;color:#affabb;border-color:#439a78}
.th-meta .th-state[data-state=limited]{background:#45351b;color:#ffdf94;border-color:#a67d3f}
.th-meta .th-state[data-state=missing]{background:#4a2c3c;color:#ffc1d4;border-color:#bc5f84}
.th-summary{font-weight:750;color:#e8f6fa;font-size:14px;margin:12px 0 7px}
.th-detail{color:#b3cbd9;font-size:13px;margin:7px 0}
.th-modes{margin:12px 0 0;padding-top:10px;border-top:1px solid #35516a;font-size:12px;color:#9ce9f0}
@media(prefers-reduced-motion:no-preference){.tetrais-help-popover{animation:help-appear 100ms ease-out}@keyframes help-appear{from{opacity:.65;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}}
