/* 3D-Ansicht der RSG-Übungen (frontend/rsg-3d.js, rsg-3d-stage.js) – Fenster „Übung in 3D“ */
.sheet:has(.r3d-host) { width:min(1100px, 100%); }
.r3d { display:grid; gap:8px; background:var(--surface); outline:none; }
.r3d:fullscreen { padding:12px; overflow:auto; align-content:start; }
.r3d-stage { border-radius:12px; overflow:hidden; background:var(--ground); min-height:120px; }
.r3d-canvas { display:block; width:100%; height:auto; touch-action:none; cursor:grab; }
.r3d-canvas:active { cursor:grabbing; }
.r3d-bar, .r3d-cam { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.r3d-bar .r3d-toggle { min-width:132px; justify-content:center; }
.r3d-seek { flex:1 1 160px; min-width:120px; accent-color:var(--accent); }
.r3d-now { margin:0; font-size:var(--fs-body); }
.r3d-now .tiny { display:block; margin-top:2px; }
.r3d-help, .r3d-sync, .r3d-warn { margin:0; }
.r3d-sync { color:var(--accent); font-weight:600; }
.r3d-warn, .r3d-fail { color:var(--amber); font-weight:600; }
.r3d-fail { margin:8px; font-size:var(--fs-sub); }
.r3d-flat svg { display:block; width:100%; height:auto; max-height:60vh; }
.r3d-missing summary { cursor:pointer; font-size:var(--fs-foot); color:var(--ink-2); }
.r3d-missing ul { margin:4px 0 0; padding-left:18px; }

@media (max-width:640px) {
  .r3d-bar .r3d-seek { order:5; flex-basis:100%; }
  .r3d-bar .btn, .r3d-cam .btn { min-height:44px; min-width:44px; }
  .r3d-bar .r3d-toggle { flex:1 1 auto; }
  .r3d .seg button { min-height:40px; }
}
