/* Standalone phone layout: real viewport, scrolling content, fixed navigation. */
body { font-family: system-ui, -apple-system, sans-serif; }
.brand-font { font-family: system-ui, -apple-system, sans-serif; letter-spacing: -.025em; }
.mono-font { font-family: ui-monospace, monospace; }
.mobile-frame > :not(#viewportContainer) { flex-shrink: 0; }
#viewportContainer { min-height: 0; overscroll-behavior: contain; }
#restTimerBar[hidden], #restPresetRow[hidden] { display: none !important; }
button, input, select { touch-action: manipulation; }
#activeWorkoutTitleDisplay, #workoutRoutineTitle { overflow-wrap: anywhere; }
@media (max-width: 600px), (display-mode: standalone) {
  body { height: 100dvh; min-height: 0 !important; padding: 0 !important; overflow: hidden; }
  .app-topbar { margin: 0 !important; padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px 10px !important; max-width: none !important; background: #070b0f; flex-shrink: 0; }
  .mobile-frame { height: 0; flex: 1 1 auto; min-height: 0 !important; max-height: none !important; max-width: none !important; border-radius: 0 !important; border: 0 !important; box-shadow: none; }
  .mobile-frame > .pt-3\.5 { display: none; }
  .app-nav { padding-bottom: max(10px, env(safe-area-inset-bottom, 0px)); }
  .app-nav button { min-height: 46px; }
  #viewportContainer { padding: 12px; }
  #restTimerBar { margin: 4px 12px 6px; padding: 9px; }
  #restPresetRow { margin: 0 14px 6px; }
  input, select { font-size: 16px !important; }
  [role="dialog"] { padding-top: max(12px, env(safe-area-inset-top, 0px)); padding-bottom: max(12px, env(safe-area-inset-bottom, 0px)); }
}
