/* The desktop panel and shared tracking renderer retain their original styles. */
.hm-mobile{display:none}
@media(max-width:720px),(max-width:1000px) and (max-height:500px){
  .tracking-view>.maneuver-panel{display:none!important}
  .camera-stage>.live-label{display:none}
  .hm-mobile-dock{position:absolute;left:8px;right:8px;bottom:8px;z-index:3;display:grid;grid-template-columns:minmax(0,1fr) clamp(60px,22%,94px);gap:8px;height:132px;color:var(--navy)}
  .hm-signs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;min-width:0;height:132px;padding:6px;border-radius:10px;background:#f6f4ef}
  .hm-sign{position:relative;display:grid;grid-template-rows:54px 28px 26px;align-content:center;align-items:center;justify-items:center;gap:2px;min-width:0;width:100%;height:120px;padding:4px 2px;border:0;border-radius:6px;background:transparent;color:var(--navy);text-decoration:none;transition:background-color 170ms ease-out;-webkit-tap-highlight-color:transparent}
  .hm-sign[data-detected=true]{background:#e1e7e1}
  .hm-sign:focus-visible{outline:2px solid #4d79a3;outline-offset:1px}
  .hm-sign:active{background:#e9ede7}
  .hm-guide{display:block;width:44px;height:54px;background-image:url('./gesture-guides.png');background-size:300% 100%;background-repeat:no-repeat}
  .hm-guide[data-guide=ok]{background-position:left center}
  .hm-guide[data-guide=thumbs-up]{background-position:center center}
  .hm-guide[data-guide=crossed-fingers]{background-position:right center}
  .hm-sign-name{display:grid;place-items:center;height:28px;min-width:0;max-width:100%;font-size:12px;line-height:14px;font-weight:600;text-align:center;text-decoration:none}
  .hm-sign-nerve{display:block;align-content:center;height:26px;font-size:11px;line-height:13px;text-align:center;color:#586477}
  .hm-sign[data-detected=true] .hm-sign-nerve{color:var(--navy)}
  .hm-sign-check,.hm-disclosure{position:absolute;right:4px;top:4px;pointer-events:none}
  .hm-sign-check{visibility:hidden}
  .hm-disclosure{top:5px;color:#586477}
  .hm-sign[data-detected=true] .hm-sign-check{visibility:visible}
  .hm-sign[data-detected=true] .hm-disclosure{visibility:hidden}
  .hm-sign[aria-expanded=true] .hm-disclosure{transform:rotate(180deg)}
  .hm-mobile-dock>.hand-inset{width:100%;height:132px;min-width:0;overflow:hidden;border:1px solid #bfcac4;border-radius:10px;background-color:#e9ede7;background-size:14px 14px}
  .hm-mobile-dock .hand-inset #inset-empty{inset:8px;font-size:10px;line-height:1.4}
  .hm-mobile-status{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
  .camera-stage>.stop-button{position:absolute;top:10px;left:10px;z-index:4;gap:8px;min-height:44px;padding:0 12px;border:0;border-radius:6px;background:var(--navy);color:#f6f4ef;font-size:12px;font-weight:600;line-height:1.4}
  .camera-stage>.stop-button svg{width:11px;height:11px;fill:currentColor;stroke:none}
  .camera-stage>.stop-button:focus-visible{outline-color:#b4c9df;outline-offset:3px}
  .camera-stage.hm-has-details{border-bottom-left-radius:0;border-bottom-right-radius:0}
  .hm-mobile-details{display:block;margin:0;padding:12px 18px 20px;border-radius:0 0 12px 12px;background:#e9ede7;color:var(--navy)}
  .hm-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;margin-bottom:10px}
  .hm-detail-heading h2{margin:0;font-family:inherit;font-size:14px;font-weight:500;line-height:1.35;letter-spacing:normal}
  .hm-close-details{display:grid;place-items:center;flex:none;width:44px;height:44px;margin:-8px -8px -8px 0;padding:0;border:0;background:transparent;color:var(--navy)}
  .hm-nerve-connection{margin-bottom:20px}
  .hm-parent-nerve{display:block;margin-bottom:3px;color:#586477;font-size:12px;line-height:1.5}
  .hm-branch{display:block;font-size:17px;font-weight:600;line-height:1.4}
  .hm-muscle-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0}
  .hm-muscle-actions:has(>div:only-child){grid-template-columns:1fr}
  .hm-muscle-actions>div{display:grid;align-content:start;gap:3px;min-width:0}
  .hm-muscle-actions dt{font-size:12px;font-weight:600;line-height:1.4}
  .hm-muscle-actions dd{margin:0;color:#586477;font-size:11px;line-height:1.5}
}
