.preview-footer { justify-content: flex-end; }
#fullscreen, #mobile-ar-controls button {
  padding: 9px 18px;
  min-height: 44px;
  border: 0;
  border-radius: 3px;
  background: #ca2017;
  color: white;
  font: 700 14px/1.29 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  pointer-events: auto;
}
#fullscreen:hover, #mobile-ar-controls button:hover { background: #e43a31; }
.preview:fullscreen, .preview.window-fill {
  position: fixed;
  inset: 0;
  z-index: 1000;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: black;
}
body.player-expanded { overflow: hidden; }
#mobile-ar-controls { padding: max(12px, env(safe-area-inset-top)) 12px; pointer-events: none; }
#mobile-ar-controls:dom-overlay { background: transparent; }
#mobile-ar-controls button { margin: 4px; }
#mobile-ar-animations { display: flex; flex-direction: column; max-width: 360px; }
#mobile-ar-controls[hidden], #mobile-ar-animations[hidden], #fullscreen[hidden] { display: none; }
.preview-footer { right: max(20px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); }
/* Keep fullscreen a compact utility, in the same brown/brass family as studio settings. */
#fullscreen{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:auto;max-width:none;min-width:44px;min-height:44px;padding:8px 11px;border:1px solid #99713e;border-radius:7px;background:rgba(55,31,20,.88);color:#f8e7c3;font:600 12px/1.2 system-ui;letter-spacing:0;text-transform:none;box-shadow:0 2px 8px #0005}
#fullscreen::before{content:'⛶';font-size:18px;line-height:1}
#fullscreen[aria-pressed=true]{background:rgba(83,29,21,.9);border-color:#aa7650}
#fullscreen[aria-pressed=true]::before{content:'↙'}
#fullscreen:hover{background:#6c4729}
#fullscreen:focus-visible{outline:2px solid #fff0c9;outline-offset:3px}
.preview-footer{right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom))}
