/* Keep native layouts; expose header actions hidden on small phones. */
.mobile-profile-action { display: none; }
@media (max-width: 430px) {
  .udrop .mobile-profile-action { display: flex; }
  #notif { left: 12px; right: 12px; width: auto; max-height: calc(100dvh - 90px); }
}
/* Installer fields were 13px and several actions 32–37px high on phones. */
@media (max-width: 760px) {
  .overlay :is(.modal, .nw-sheet) input:not([type=checkbox]):not([type=radio]),
  .overlay :is(.modal, .nw-sheet) textarea,
  .overlay :is(.modal, .nw-sheet) select,
  .overlay :is(.modal, .nw-sheet) .sel-btn {
    font-size: 16px !important;
    min-height: 44px;
  }
  .overlay :is(.modal, .nw-sheet) button { min-height: 44px; }
  .overlay :is(.modal, .nw-sheet) label:has(input[type=checkbox]),
  .overlay :is(.modal, .nw-sheet) label:has(input[type=radio]) { min-height: 44px; }
  .overlay #pfPrep { min-height: 44px; }
  .overlay .modal-x { min-width: 44px; }
  #msDlg button { min-height: 44px; }
  #msDlg .msd-head .x { min-width: 44px; }
  html[data-theme=dark] { --ink-3: #b0b0ba; --ink-4: #9b9ba6; }
  #content input:not([type=checkbox]):not([type=radio]),
  #content textarea,
  #content select,
  #content .sel-btn { font-size: 16px !important; min-height: 44px; }
  #content :is(button, [role=tab]) { min-height: 44px !important; }
  #notif button { min-height: 44px; min-width: 44px; }
  .settings-workspace .fld:has(#schAct) { flex-basis: 100% !important; }
  .side .menu a { min-height: 44px; }
  /* WebKit lets long options in the transparent native select expand scroll areas. */
  .selwrap .sel-native { contain: paint; }
  .sel-opt { min-height: 44px; white-space: normal; overflow-wrap: anywhere; }
  .sel-opt > span:first-child { min-width: 0; }
  .overlay .fp-grid { grid-template-columns: minmax(0, 1fr); }
  #nbOverlay .nb-rows { overflow-x: auto; }
  #nbOverlay .nb-rows .tbl { min-width: 560px; }
  #nbOverlay .nb-rows input { min-width: 170px; }
}
