:root { --bg: #0d0f12; --fg: #eef1f4; --muted: #9aa4ae; --panel: rgba(16, 19, 23, 0.82); --accent: #4da3ff; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); overflow: hidden;
  font: 14px/1.3 system-ui, -apple-system, "Segoe UI", sans-serif; }
#view, #view canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#status { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); padding: 6px 12px; border-radius: 6px;
  background: var(--panel); color: var(--muted); pointer-events: none; }
#status:empty { display: none; }
#bar { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); display: flex; gap: 10px;
  align-items: center; padding: 8px 12px; border-radius: 10px; background: var(--panel); }
#bar button { min-width: 40px; min-height: 36px; border: 0; border-radius: 6px; background: #2a3038; color: var(--fg); font: inherit; }
#bar button:hover { background: #343b45; }
#scrub { flex: 1; min-width: 60px; accent-color: var(--accent); }
#frame { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
#bar label { color: var(--muted); white-space: nowrap; }
@media (max-width: 520px) {
  #bar { flex-wrap: wrap; left: 8px; right: 8px; gap: 8px; }
  #scrub { order: 5; flex-basis: 100%; }
  #reset { margin-left: auto; }
}
#bar[hidden] { display: none; }
