/* A panel has one scroll owner. Keep all fields, help and device cards reachable. */
@media (max-width:700px) {
  html #dialog .aq-mobile-sheet-body,
  html #dialog .aq-mobile-sheet-body:has(> form.aq-mobile-form) {
    display:block;
    overflow-x:hidden;
    overflow-y:auto;
    padding:20px max(20px,var(--safe-right,0px)) calc(20px + var(--safe-bottom,0px)) max(20px,var(--safe-left,0px));
    scrollbar-gutter:stable;
  }
  html #dialog .aq-mobile-sheet-body > form.aq-mobile-form {
    display:block;
    flex:none;
    min-height:0;
    max-height:none;
    margin:0;
  }
  html #dialog .aq-mobile-form-fields {
    display:grid;
    gap:16px;
    flex:none;
    overflow:visible;
    padding:0;
    max-height:none;
  }
  html #dialog .aq-mobile-sheet-actions {
    position:static;
    flex-wrap:wrap;
    padding:20px 0 0;
    margin:0;
    border:0;
    box-shadow:none;
  }
  html:is(.keyboard-open,.aq-mobile-keyboard-open) #dialog .aq-mobile-sheet-actions { padding-bottom:0; }
  html #dialog .aq-mobile-sheet-body > form + :not([hidden]) { margin-top:24px; }
  html #dialog .aq-mobile-sheet-body .security-section-title { margin:24px 0 12px; }
  html #dialog .aq-mobile-sheet-body .profile-security-summary { gap:10px; }
  html #dialog .aq-mobile-sheet-body .profile-security-stat { min-height:0; }
  html #dialog .aq-mobile-sheet-body .switch-list { margin:0;gap:12px; }
  html #dialog .switch-row { display:flex;align-items:center;gap:14px;min-height:64px;padding:14px; }
  html #dialog .switch-row > div { flex:1;min-width:0; }
  html #dialog .switch-row input[type="checkbox"] {
    appearance:none;
    -webkit-appearance:none;
    box-sizing:border-box;
    width:46px;
    height:28px;
    min-width:46px;
    min-height:28px;
    flex:0 0 46px;
    padding:0;
    margin:0;
    border:0;
    border-radius:999px;
  }
  html #dialog .switch-row input[type="checkbox"]::after { width:22px;height:22px;left:3px;top:3px; }
  html #dialog .switch-row input[type="checkbox"]:checked::after { transform:translateX(18px); }
  html #dialog .switch-row input[type="checkbox"]:focus-visible { outline:2px solid var(--aq-mobile-accent);outline-offset:4px; }
  html #dialog .aqua-native-notifications { padding:16px;margin:20px 0; }
  html #dialog .aqua-native-notifications > button { white-space:normal;line-height:1.4;min-height:48px; }
}
