.gesture-controls{position:fixed;right:18px;bottom:18px;z-index:80;max-width:min(390px,calc(100vw - 36px));padding:16px;background:#fffffff5;border:1px solid #b6ccbc;border-radius:18px;box-shadow:0 12px 40px #132e2926}.gesture-controls p{margin:8px 0;font-size:12px;line-height:1.5}.gesture-controls .gesture-buttons{display:flex;flex-wrap:wrap;gap:8px}.gesture-controls label{display:block;font-size:12px;margin:10px 0}.gesture-controls video{width:160px;transform:scaleX(-1);border-radius:10px;border:4px solid #dc2626}.gesture-controls[data-ready="true"] video{border-color:#16a34a}.gesture-light{display:flex;align-items:center;gap:10px;margin:0 0 12px;padding:10px 12px;border-radius:12px;background:#fee2e2;color:#7f1d1d;font-weight:700;font-size:13px}.gesture-light i{flex:0 0 auto;width:18px;height:18px;border-radius:50%;background:#dc2626;box-shadow:0 0 0 4px #dc262638}.gesture-light[data-ready="true"]{background:#dcfce7;color:#14532d}.gesture-light[data-ready="true"] i{background:#16a34a;box-shadow:0 0 0 4px #16a34a38}.gesture-controls video[hidden]{display:none}.gesture-pointer{position:fixed;left:0;top:0;width:28px;height:28px;border:3px solid var(--green);border-radius:50%;pointer-events:none;z-index:100;translate:-50% -50%;background:#cce8b166;box-shadow:0 0 0 5px #fff8}.gesture-target{outline:3px solid #65a68e!important;outline-offset:4px}.gesture-card{flex:0 0 300px;width:300px;padding:24px;text-align:left;color:var(--ink);border:1px solid #c8d8ca;border-radius:18px;background:linear-gradient(135deg,#fffffff5,#e7f1e8c9);box-shadow:0 12px 28px #132e2912;min-height:180px;transition:transform .2s,box-shadow .2s}.gesture-card:hover,.gesture-card:focus-visible,.gesture-card.gesture-target{transform:translateY(-5px) rotateX(2deg);box-shadow:0 18px 35px #132e2926}.gesture-card strong{display:block;font:700 20px Manrope,sans-serif;margin:12px 0}.gesture-card span{display:block;margin:10px 0}.gesture-detail{max-width:640px;width:calc(100vw - 32px);border:1px solid var(--line);border-radius:18px;padding:28px}.gesture-detail::backdrop{background:#132e2966}.gesture-detail p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.gesture-settings label{display:block;margin:12px 0}.gesture-settings select{margin-left:10px}.gesture-topbar{min-height:40px}.gesture-pointer.pinching{background:#22634d99}.gesture-guide{margin:6px 0 10px;font-size:12px}.gesture-guide summary{cursor:pointer;font-weight:700;color:var(--green)}.gesture-help{margin:8px 0;padding-left:18px;font-size:12px;line-height:1.5}.gesture-help li{margin:2px 0}.gesture-menu{position:fixed;top:18px;left:50%;transform:translateX(-50%);z-index:90;width:min(760px,calc(100vw - 32px));padding:18px 20px;background:#fffffffa;border:1px solid #b6ccbc;border-radius:20px;box-shadow:0 18px 50px #132e2938}.gesture-menu[hidden]{display:none}.gesture-menu .eyebrow{margin:0 0 10px}.gesture-menu-items{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}.gesture-menu-item{min-height:64px;padding:12px 14px;border:1px solid #c8d8ca;border-radius:14px;background:#f5faf5;color:var(--ink);font:700 15px 'DM Sans',sans-serif;cursor:pointer}.gesture-menu-item.active{background:var(--mint);border-color:var(--green)}.gesture-menu-item.gesture-target,.gesture-menu-item:hover{background:#cce8b1}.gesture-menu-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;font-size:12px;color:var(--muted)}@media(prefers-reduced-motion:reduce){.gesture-card{transition:none!important}.gesture-card:not(.swarm-card){transform:none!important}}@media(max-width:700px){.gesture-controls{bottom:8px;right:8px;max-width:calc(100vw - 16px)}.gesture-card{flex-basis:260px;width:260px}.gesture-menu-foot{flex-direction:column;align-items:stretch}.gesture-topbar{font-size:11px;padding:8px}.top-right{gap:6px}}.gesture-card-tools{display:flex;flex-wrap:wrap;gap:16px;align-items:center}.swarm-stage{position:relative;overflow:hidden;margin:24px 0;min-height:420px;border-radius:24px;background:radial-gradient(1.5px 1.5px at 12% 22%,#e9ffb066,transparent),radial-gradient(1.5px 1.5px at 68% 14%,#e9ffb055,transparent),radial-gradient(1px 1px at 84% 62%,#e9ffb055,transparent),radial-gradient(1px 1px at 33% 78%,#e9ffb044,transparent),radial-gradient(ellipse at 50% 22%,#1f4a3d 0%,#10261f 55%,#08140f 100%);box-shadow:inset 0 0 0 1px #2c5a4b,inset 0 40px 90px #00000055}.gesture-card.swarm-card{position:absolute;left:0;top:0;width:200px;height:118px;min-height:0;flex:none;margin:0;padding:12px 14px;display:flex;flex-direction:column;gap:3px;overflow:hidden;border-radius:14px;border:1px solid #cce8b199;background:linear-gradient(135deg,#ffffffef,#e7f1e8e6);box-shadow:0 8px 22px #0007,0 0 16px #b8f06a40;transition:box-shadow .25s;will-change:transform}.gesture-card.swarm-card strong{font:700 15px Manrope,sans-serif;margin:6px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gesture-card.swarm-card span,.gesture-card.swarm-card small{display:block;margin:0;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gesture-card.swarm-card .badge{align-self:flex-start;font-size:10px}.swarm-stage:not([data-formation="grid"]) .gesture-card.swarm-card{box-shadow:0 8px 22px #0008,0 0 26px #b8f06a99,0 0 2px #e9ffb0}.gesture-card.swarm-card.gesture-target{outline:3px solid #d9f99d!important;box-shadow:0 0 0 6px #b8f06a55,0 14px 30px #000a}@media(max-width:700px){.gesture-card.swarm-card{width:160px;height:104px;padding:10px}}.gesture-hands{display:flex;gap:8px;margin:0 0 10px}.gesture-hands span{flex:1;padding:6px 10px;border-radius:999px;border:1px solid #d6ddd8;background:#f3f5f3;color:#8a948f;font-size:12px;font-weight:700;text-align:center}.gesture-hands span[data-state="seen"]{background:#ecfccb;border-color:#a3e635;color:#3f6212}.gesture-hands span[data-state="pointer"]{background:#16a34a;border-color:#15803d;color:#fff}.gesture-pointer.gesture-second{width:22px;height:22px;border-color:#a3e635;background:#ecfccb66;border-style:dashed}.gesture-pointer.gesture-second.pinching{background:#65a30d99;border-style:solid}

.app-view-toggle{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 16px}.app-view-toggle .button{min-width:84px}.app-view-toggle .small-note{margin:0 0 0 6px}
