/* Shared mobile account sheets. All rules are limited to existing phone breakpoints. */
@media (max-width:760px) {
  #header .barq-phone-account-sheet,
  dialog.bq.bq-phone-dialog.bq-account-menu {
    position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:100%;
    max-height:calc(100dvh - 56px);box-sizing:border-box;
    padding:24px 16px calc(24px + env(safe-area-inset-bottom));
    border:0;border-radius:24px 24px 0 0;
    background:var(--barq-card,var(--bq-solid,#fff));color:var(--barq-ink,var(--bq-text,#2b2b2b));
    font-family:Manrope,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    overflow:auto;overscroll-behavior:contain;box-shadow:0 -8px 36px #0002;
  }
  #header .barq-phone-account-sheet::backdrop,
  dialog.bq.bq-account-menu::backdrop {background:#14141870;}
  #header .barq-phone-account-sheet .barq-account-identity,
  dialog.bq.bq-account-menu > strong {
    display:block;margin:0 0 8px;padding:6px 12px 16px;border-bottom:1px solid var(--barq-line,var(--bq-line,#e5e5e7));
    color:inherit;font-size:16px;font-weight:700;line-height:1.5;overflow-wrap:anywhere;
  }
  #header #user-tools .barq-phone-account-sheet .barq-account-action,
  dialog.bq.bq-account-menu .bq-menu-link {
    display:flex;align-items:center;gap:10px;box-sizing:border-box;width:100%;
    min-height:46px;margin:0;padding:10px 12px;border:0;border-radius:10px;
    background:transparent;color:inherit;box-shadow:none;text-align:left;text-decoration:none;
    font:500 16px/1.5 Manrope,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    white-space:normal;overflow-wrap:anywhere;cursor:pointer;
  }
  #header #user-tools .barq-phone-account-sheet .barq-account-action:hover,
  dialog.bq.bq-account-menu .bq-menu-link:hover {background:var(--barq-fill,var(--bq-faint,#f3f3f6));}
  #header #user-tools .barq-phone-account-sheet .barq-account-action:focus-visible,
  dialog.bq.bq-account-menu .bq-menu-link:focus-visible {outline:2px solid #aa2c2f;outline-offset:-2px;}
  #header #user-tools .barq-phone-account-sheet .barq-admin-signout,
  dialog.bq.bq-account-menu > button.bq-menu-link:last-child {color:#aa2c2f;}
  #header #user-tools .barq-phone-account-sheet .barq-account-panel form {margin:0;}
  #header .barq-phone-account-sheet .barq-phone-panel-close,
  dialog.bq.bq-account-menu .bq-phone-panel-heading > button {
    display:flex;align-items:center;justify-content:center;flex:none;align-self:flex-end;
    width:auto;min-width:74px;min-height:46px;height:auto;margin:18px 0 0 auto;padding:10px 18px;
    border:0;border-radius:13px;background:#01235c;color:#fff;box-shadow:none;
    font:600 16px/1.5 Manrope,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;cursor:pointer;
  }
  #header .barq-phone-account-sheet .barq-phone-panel-close:focus-visible,
  dialog.bq.bq-account-menu .bq-phone-panel-heading > button:focus-visible {outline:2px solid #aa2c2f;outline-offset:3px;}
  dialog.bq.bq-account-menu .bq-phone-panel-heading > button:hover {background:#01235c;color:#fff;}
  dialog.bq.bq-account-menu[open] {display:flex;flex-direction:column;gap:0;}
  dialog.bq.bq-account-menu .bq-phone-panel-heading {display:contents;}
  dialog.bq.bq-account-menu .bq-phone-panel-heading > h2 {display:none;}
  dialog.bq.bq-account-menu .bq-phone-panel-heading > button {order:100;}
  dialog.bq.bq-account-menu .bq-phone-panel-heading > button svg {display:none;}
  dialog.bq.bq-account-menu .bq-phone-panel-heading > button::after {content:"Done";}
  dialog.bq.bq-account-menu > span {padding:0 12px;margin:2px 0 6px;font-size:12px;line-height:1.5;color:var(--bq-muted,#707078);}
  dialog.bq.bq-account-menu .bq-menu-link > svg {display:none;}
}
@media (max-width:700px) {
  dialog.docs-phone-access-sheet {
    max-height:calc(100dvh - 56px);box-sizing:border-box;overflow:auto;overscroll-behavior:contain;
    padding:24px 16px calc(24px + env(safe-area-inset-bottom));border-radius:24px 24px 0 0;
    font-family:Manrope,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  }
  .docs-phone-access-sheet:has(.account-menu) > h2,
  .docs-phone-access-sheet .account-menu > summary {display:none;}
  .docs-phone-access-sheet .account-panel {display:flex;flex-direction:column;gap:0;position:static;width:100%;min-width:0;max-width:none;margin:0;padding:0;border:0;background:transparent;box-shadow:none;}
  .docs-phone-access-sheet .account-panel > strong {display:block;padding:6px 12px 16px;margin:0 0 8px;border-bottom:1px solid var(--line,#e5e5e7);font-size:16px;font-weight:700;line-height:1.5;overflow-wrap:anywhere;}
  .docs-phone-access-sheet .account-panel > a {display:flex;align-items:center;box-sizing:border-box;min-height:46px;width:100%;padding:10px 12px;border:0;border-radius:10px;color:var(--ink,#2b2b2b);background:transparent;text-decoration:none;font:500 16px/1.5 Manrope,sans-serif;white-space:normal;}
  .docs-phone-access-sheet .account-panel > a:last-child {color:#aa2c2f;}
  .docs-phone-access-sheet .account-panel > a:hover {background:var(--warm,#f3f3f6);}
  .docs-phone-access-sheet .account-panel > a:focus-visible {outline:2px solid #aa2c2f;outline-offset:-2px;}
  .docs-phone-access-sheet .action-stack {padding-top:12px;border-top:1px solid var(--line,#e5e5e7);}
  .docs-phone-access-sheet > button.button {display:flex;align-items:center;justify-content:center;width:auto;min-height:46px;min-width:74px;margin:18px 0 0 auto;padding:10px 18px;border:0;border-radius:13px;background:#01235c;color:#fff;font:600 16px/1.5 Manrope,sans-serif;}
}
