/* Shared mobile hardening, previously duplicated inline in app, admin, auth and index.
   The four copies differed only by one comment character and by two .header-controls
   rules that the 2026-09-02 header rebuild deliberately dropped from the crew app;
   those two now live in admin.css, the only other page with that element. */
/* RigCheck Pro mobile hardening - 2026-07 */
html,body{overflow-x:hidden;max-width:100vw}
*{-webkit-tap-highlight-color:rgba(0,119,204,.15)}
.rcp-exit-btn{position:fixed;top:10px;right:10px;z-index:9999;background:rgba(10,15,26,.85);color:#fff;
  border:1px solid #0077cc;border-radius:8px;padding:8px 14px;font:600 14px/1 system-ui,-apple-system,sans-serif;
  cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;gap:6px;
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);box-shadow:0 2px 8px rgba(0,0,0,.3)}
.rcp-exit-btn:hover,.rcp-exit-btn:focus{background:#0077cc;outline:none}
.rcp-exit-btn:active{transform:translateY(1px)}
@media (max-width:640px){
  input,select,textarea{font-size:16px !important}
  .check-table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%}
  table{max-width:100%}
  img,video{max-width:100%;height:auto}
  pre,code{white-space:pre-wrap;word-break:break-word}
  input:not([type="file"]),select,textarea{text-align:center;text-align-last:center}
  select option{text-align:center}
  input::-webkit-date-and-time-value{text-align:center}
  input::placeholder,textarea::placeholder{text-align:center}
  .header-inner{flex-wrap:wrap;row-gap:6px}
  .header-titles{flex:1;min-width:130px}
  .header-title,.header-sub{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .rcp-exit-btn{padding:10px 14px;font-size:15px}
}
@supports (padding:max(0px)){
  body{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
}
