/* 3D approval demo (assets/js/arm3d.js) */
.arm3d { position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(120% 90% at 50% 18%, #2c2218 0%, var(--charcoal) 62%); border: 1px solid var(--charcoal-line); }
.arm3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.arm3d-hud { position: absolute; left: 14px; top: 14px; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 80px);
  font: 500 12.5px/1.2 var(--mono); color: var(--cream); background: rgba(23,19,15,.78); border: 1px solid var(--charcoal-line);
  padding: 9px 12px; border-radius: 4px; }
.arm3d-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(246,130,17,.6); animation: arm3d-pulse 1.6s infinite; }
.arm3d[data-phase="exec"] .arm3d-dot { background: var(--cream); }
.arm3d[data-phase="approved"] .arm3d-dot, .arm3d[data-phase="done"] .arm3d-dot { background: var(--good); animation: none; }
.arm3d[data-phase="reject"] .arm3d-dot, .arm3d[data-phase="stop"] .arm3d-dot { background: #eb5046; animation: none; }
.arm3d[data-phase="sync"] .arm3d-dot { background: var(--good); }
@keyframes arm3d-pulse { 70% { box-shadow: 0 0 0 7px rgba(246,130,17,0); } 100% { box-shadow: 0 0 0 0 rgba(246,130,17,0); } }
.arm3d-flash { position: absolute; left: 50%; top: 46%; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%;
  display: grid; place-items: center; color: var(--good); border: 2px solid var(--good); background: rgba(23,19,15,.6);
  opacity: 0; transform: scale(.6); transition: opacity .25s, transform .35s cubic-bezier(.2,.9,.3,1.3); pointer-events: none; }
.arm3d-flash svg { width: 48px; height: 48px; }
.arm3d-flash .i-ok, .arm3d-flash .i-no { display: none; line-height: 0; }
.arm3d[data-phase="approved"] .arm3d-flash { opacity: 1; transform: scale(1); }
.arm3d[data-phase="approved"] .arm3d-flash .i-ok { display: block; }
.arm3d[data-phase="reject"] .arm3d-flash, .arm3d[data-phase="stop"] .arm3d-flash { color: #eb5046; border-color: #eb5046; animation: arm3d-nope 1.3s both; }
.arm3d[data-phase="reject"] .arm3d-flash .i-no, .arm3d[data-phase="stop"] .arm3d-flash .i-no { display: block; }
@keyframes arm3d-nope { 0% { opacity: 0; transform: scale(.6); } 15%, 55% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.08); } }
.arm3d-pause { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer;
  color: var(--cream); background: rgba(23,19,15,.78); border: 1px solid var(--charcoal-line); border-radius: 4px; }
.arm3d-pause:hover { background: rgba(255,255,255,.08); }
.arm3d-pause svg { width: 16px; height: 16px; }
.arm3d-pause .i-play, .arm3d-pause.is-paused .i-pause { display: none; }
.arm3d-pause.is-paused .i-play { display: block; }
.arm3d[data-fallback] { display: none; }
@media (max-width: 640px) { .arm3d { aspect-ratio: 4 / 3; } .arm3d-hud { font-size: 11.5px; } }
@media (prefers-reduced-motion: reduce) { .arm3d-dot { animation: none; } }

/* voice command bubble */
.arm3d-voice { position: absolute; left: 50%; bottom: 16px; display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px);
  transform: translate(-50%, 8px); opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none;
  font: 500 14px/1.3 var(--font); color: var(--cream); background: rgba(23,19,15,.82); border: 1px solid var(--charcoal-line); padding: 10px 16px; border-radius: 999px; }
.arm3d-voice.is-on { opacity: 1; transform: translate(-50%, 0); }
.arm3d-mic { flex: none; display: inline-flex; align-items: center; gap: 2px; height: 18px; }
.arm3d-mic i { display: block; width: 3px; height: 100%; border-radius: 2px; background: var(--orange); transform-origin: center; animation: arm3d-bar .9s ease-in-out infinite; }
.arm3d-mic i:nth-child(2) { animation-delay: .15s; } .arm3d-mic i:nth-child(3) { animation-delay: .3s; } .arm3d-mic i:nth-child(4) { animation-delay: .45s; }
.arm3d-voice.is-quiet .arm3d-mic i { animation: none; transform: scaleY(.25); }
@keyframes arm3d-bar { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
@media (max-width: 640px) { .arm3d-voice { font-size: 12.5px; padding: 8px 12px; bottom: 10px; } }
@media (prefers-reduced-motion: reduce) { .arm3d-mic i { animation: none; transform: scaleY(.6); } .arm3d[data-phase="reject"] .arm3d-flash { animation: none; opacity: 1; } }

/* example picker (data-arm3d-playlist) */
.arm3d-bar { margin-top: 14px; display: grid; gap: 10px; }
.arm3d-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.arm3d-sel { display: inline-flex; align-items: center; gap: 10px; flex: 1 1 280px; max-width: 460px; font: 500 12.5px/1.2 var(--mono); color: inherit; }
.arm3d-sel span { opacity: .8; }
.arm3d-sel select { flex: 1; min-width: 0; font: 500 14px/1.2 var(--font); color: var(--cream); background: rgba(23,19,15,.82) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23f2ece3' stroke-width='1.6'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E") no-repeat right 12px center / 12px;
  border: 1px solid var(--charcoal-line); border-radius: 4px; padding: 10px 34px 10px 12px; appearance: none; -webkit-appearance: none; cursor: pointer; }
.arm3d-sel select:focus-visible, .arm3d-step:focus-visible, .arm3d-auto:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.arm3d-sel select option { color: #17130f; background: #f2ece3; }
.arm3d-step, .arm3d-auto { font: 500 13px/1 var(--mono); color: var(--cream); background: rgba(23,19,15,.82); border: 1px solid var(--charcoal-line); border-radius: 4px; padding: 10px 14px; cursor: pointer; }
.arm3d-step { width: 40px; padding: 10px 0; font-size: 18px; }
.arm3d-step:hover, .arm3d-auto:hover { background: rgba(255,255,255,.08); }
.arm3d-auto[aria-pressed="true"] { border-color: var(--orange); color: var(--orange); }
.arm3d-desc { margin: 0; max-width: 70ch; color: inherit; opacity: .85; font-size: 15px; line-height: 1.5; min-height: 3em; }
@media (max-width: 640px) { .arm3d-sel { flex: 1 1 100%; max-width: none; } .arm3d-auto { flex: 1; } .arm3d-sel span { display: none; } .arm3d-desc { min-height: 4.5em; } }
