/* Ultimate AI Studio · touch + mobile ergonomics (loaded last on every page)
   1) iOS Safari zooms the page when a focused field is smaller than 16px -> keep fields at 16px on phones/tablets.
   2) Comfortable (44px) hit areas for the controls people tap most. */
@media (max-width:820px),(pointer:coarse){
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=button]):not([type=submit]):not([type=image]):not([type=reset]),
  select,textarea{font-size:16px!important}
}
@media (pointer:coarse){
  .ua-foot a{display:inline-flex;align-items:center;min-height:44px;padding:0 6px}
  .ua-foot nav{gap:0 14px}
  details>summary{box-sizing:border-box;min-height:44px;padding-block:12px;cursor:pointer}
  .ua-btn,.st-btn,.st-nav,.ua-in,.ua-sel,.st-in,.st-ov,.x-earth{min-height:44px}
  .st-ov,.x-earth{min-width:44px}
  a[href="#/gallery"]{display:inline-flex;align-items:center;min-height:44px;padding:0 4px}
}

/* visually hidden but available to screen readers */
.ua-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* readable secondary text on small screens (usage meter, plan badge) */
@media (max-width:820px){
  html body .st-top.st-top .x7-use .x7-bar small,html body .st-me small{font-size:12px!important;line-height:1.25!important}
}
