/* =================== REHEARSAL & DEV TOOLS ===================
   Never visible in a normal recording: ghost (G), timecode HUD (H), key help (?),
   push dev panel (long-press the title). */
#ghost{position:absolute;left:286px;top:calc(var(--G) - 140px);z-index:7;display:none;opacity:.45;pointer-events:none}
#stage[data-layout="portrait"] #ghost{left:120px}
#ghost.show{display:block}
#ghost .lbl{position:absolute;left:120px;top:44px;white-space:nowrap;font-family:var(--mono);font-size:22px;color:#777}
#hudbox{position:fixed;left:14px;top:14px;z-index:100;display:none;white-space:pre;
  font:600 14px/1.5 var(--mono);color:#0b8f63;background:rgba(255,255,255,.93);border:1px solid rgba(0,0,0,.2);border-radius:10px;padding:10px 14px}
#hudbox.show{display:block}
#help{position:fixed;right:14px;top:14px;z-index:101;display:none;width:350px;
  font:13px/1.55 var(--font);color:#e8e8ee;background:rgba(22,22,28,.95);border:1px solid rgba(255,255,255,.14);border-radius:12px;padding:14px 16px}
#help.show{display:block}
#help h4{font-size:14px;margin-bottom:8px;color:#fff}
#help div{display:flex;justify-content:space-between;gap:12px}
#help kbd{font:600 12px var(--mono);background:#34343e;border-radius:5px;padding:1px 6px;color:#fff;white-space:nowrap}
#help p{margin-top:10px;color:#a9a9b6}

/* push dev panel: outside the stage, so it is not scaled */
#devpanel{position:fixed;inset:0;z-index:1000;display:flex;align-items:flex-end;justify-content:center;background:rgba(0,0,0,.5);
  font:15px/1.4 -apple-system, BlinkMacSystemFont, sans-serif;color:#111114;cursor:auto}
#devpanel[hidden]{display:none}
.dp-sheet{width:100%;max-width:520px;max-height:100%;overflow:auto;background:#fff;border-radius:18px 18px 0 0;
  padding:18px 16px calc(18px + env(safe-area-inset-bottom));display:grid;gap:10px}
.dp-head{display:flex;justify-content:space-between;align-items:center;font-weight:700}
#devpanel button{font:600 16px -apple-system, sans-serif;padding:13px;border-radius:12px;border:2px solid #111114;background:#fff;color:#111114}
#devpanel button.dp-main{background:#111114;color:#fff}
#devpanel .dp-head button{padding:6px 12px;font-size:14px}
#dp-status{padding:10px 12px;border-radius:10px;background:#f1f1f4}
#dp-status.bad{background:#fde8e6;color:#9b1c13}
#dp-info{font:12px/1.4 ui-monospace, Menlo, monospace;color:#6c6c74}
#dp-sub{width:100%;height:150px;font:11px/1.35 ui-monospace, Menlo, monospace;padding:10px;border:1px solid #ccc;border-radius:10px;resize:none;
  user-select:text;-webkit-user-select:text}
