/* Keep mobile form controls readable when focused, including embedded screens. */
@media (max-width:900px){
  input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea{font-size:var(--cu-font-md)!important;max-width:100%;box-sizing:border-box}
  /* Action controls only: keep seat-map geometry and non-interactive badges intact. */
  .btn,button.sm,.tbtn,.gear,button.tchip,.tev-x,.tops button,.tchips button,.vseg button,.stabs button,
  .phr button,.seattabs button,.viewtoggle button,.seat-layout-tools .btn,
  .tabs button,.tabs a,.settabs button,.setnav button,.wdays button,.acts button,.bar button,.chk label,.acts label:has(input[type=checkbox]){
    min-height:44px!important;min-width:44px!important;box-sizing:border-box
  }
  .tabs a{display:inline-flex;align-items:center}
  input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]),select{min-height:44px}
  .chk label,.acts label:has(input[type=checkbox]){display:inline-flex;align-items:center;gap:4px}
  .titem .tnote,.titem .tphoto{min-height:44px;min-width:44px}
  .titem .tev-x{min-height:44px;min-width:44px}
}

/* Date controls need a full row in the task editor on narrow phones. */
@media screen and (max-width:600px){
  #tdm .td-rg{grid-template-columns:minmax(0,1fr)}
  #tdm .td-rg>.td-lb{min-width:0}
}
