/* Web version only (iPhone / iPad / installed PC app) - loaded after the PC styles. */
/* iOS zooms into any text box under 16px - keep them at 16px on phones */
@media (max-width: 820px) {
  input[type=text], input[type=number], input[type=date], input[type=time], input[type=search], input[type=email], select, textarea { font-size: 16px; }
  .menu-btn { top: calc(12px + env(safe-area-inset-top)); left: calc(12px + env(safe-area-inset-left)); }
  .main { padding-top: calc(62px + env(safe-area-inset-top)); padding-bottom: calc(40px + env(safe-area-inset-bottom));
          padding-left: calc(16px + env(safe-area-inset-left)); padding-right: calc(16px + env(safe-area-inset-right)); }
  .side { padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
  .btn { min-height: 38px; }
}
html, body { -webkit-text-size-adjust: 100%; }
/* start-up screen while Python loads */
#lgSplash { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: #061630; color: #CFE0F7;
  font: 500 15px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; text-align: center; padding: 24px; }
#lgSplash img { border-radius: 20px; }
#lgSplash .lg-name { font-size: 24px; font-weight: 700; color: #fff; margin: 14px 0 4px; }
#lgSplash .lg-st { min-height: 21px; max-width: 320px; }
#lgSplash .lg-bar { width: 160px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.15); margin: 16px auto 0; overflow: hidden; }
#lgSplash .lg-bar i { display: block; width: 40%; height: 100%; background: #6FAEF5; border-radius: 2px; animation: lgSlide 1.1s ease-in-out infinite; }
#lgSplash.err .lg-st { color: #FFB4A8; }
#lgSplash.err .lg-bar { display: none; }
@keyframes lgSlide { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
