/* Pro "new inbox" dialog on phones (v92). Presentation only: all choices still go through the existing controls. */
#inboxModal .pmc-stepper{display:none}
@media (max-width:700px){
  /* Bottom sheet that always stays below the site header and fits the screen. */
  html.pmc[lang] body #inboxModal.modal-backdrop:not(.hidden){display:flex!important;align-items:flex-end!important;justify-content:center!important;padding:0!important;z-index:10020!important;background:rgba(9,14,28,.55)!important}
  html.pmc[lang] body #inboxModal .modal-card{position:relative!important;width:100%!important;max-width:none!important;margin:0!important;max-height:calc(100dvh - 76px)!important;overflow:auto!important;overscroll-behavior:contain;padding:14px 16px 0!important;border-radius:22px 22px 0 0!important;border:0!important;box-shadow:0 -18px 48px rgba(9,14,28,.28)!important;animation:pmc-up .22s cubic-bezier(.2,.8,.2,1)}
  html.pmc[lang] body #inboxModal .modal-card::before{content:"";display:block;width:42px;height:5px;margin:-4px auto 10px;border-radius:99px;background:var(--line,#d9deea)}
  html.pmc[lang] body #inboxModal .modal-head{display:flex!important;align-items:center!important;gap:10px!important;margin:0 0 12px!important;padding:0!important}
  html.pmc[lang] body #inboxModal .modal-head>div{min-width:0;flex:1}
  html.pmc[lang] body #inboxModal .modal-head .section-label{display:block!important;margin:0 0 2px!important;font-size:11px!important;letter-spacing:.08em!important}
  html.pmc[lang] body #inboxModal #modalTitle{margin:0!important;font-size:19px!important;line-height:1.3!important}
  html.pmc[lang] body #inboxModal .modal-head .icon-btn{flex:none!important;width:36px!important;height:36px!important;min-width:0!important;border-radius:50%!important;padding:0!important}

  /* Mail source: one row of four compact tiles. */
  html.pmc[lang] body #inboxModal #outlookSourceGroup{margin:0 0 12px!important;padding:0!important;border:0!important}
  html.pmc[lang] body #inboxModal #outlookSourceGroup legend{margin:0 0 8px!important;padding:0!important;font-size:13px!important;font-weight:700!important}
  html.pmc[lang] body #inboxModal #outlookSourceGroup .outlook-source-options{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;margin:0!important}
  html.pmc[lang] body #inboxModal #outlookSourceGroup .outlook-source-option{position:relative!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;gap:6px!important;min-height:0!important;height:auto!important;padding:10px 4px 9px!important;border-radius:14px!important;text-align:center!important}
  html.pmc[lang] body #inboxModal #outlookSourceGroup .tma-source-icon{width:34px!important;height:34px!important;min-width:0!important;margin:0!important;border-radius:10px!important}
  html.pmc[lang] body #inboxModal #outlookSourceGroup .tma-source-icon svg{width:19px!important;height:19px!important}
  html.pmc[lang] body #inboxModal #outlookSourceGroup .tma-source-words{display:block!important;min-width:0!important;width:100%!important}
  html.pmc[lang] body #inboxModal #outlookSourceGroup .tma-source-words strong{display:block!important;font-size:12.5px!important;line-height:1.25!important;overflow-wrap:anywhere}
  html.pmc[lang] body #inboxModal #outlookSourceGroup .tma-source-description{display:none!important}
  html.pmc[lang] body #inboxModal #outlookSourceGroup .outlook-source-option::after{width:16px!important;height:16px!important;top:5px!important;inset-inline-end:5px!important;font-size:10px!important}
  html.pmc[lang] body #inboxModal #outlookSourceGroup .outlook-source-option.is-selected .tma-source-icon~*,html.pmc[lang] body #inboxModal #outlookSourceGroup .outlook-source-option.is-selected strong{color:var(--primary,#2f55e8)!important}

  /* Server + quantity: one compact card, caption beside a full-width control. */
  html.pmc[lang] body #inboxModal #plusCreateOptions{margin:0!important;padding:12px!important;border-radius:16px!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-areas:none!important;gap:10px!important}
  html.pmc[lang] body #inboxModal #plusCreateOptions[hidden]{display:none!important}
  html.pmc[lang] body #inboxModal #plusCreateOptions .tma-composer-row{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;align-items:center!important;gap:12px!important;margin:0!important;padding:0!important;border:0!important}
  html.pmc[lang] body #inboxModal #plusCreateOptions .tma-composer-row[hidden]{display:none!important}
  html.pmc[lang] body #inboxModal #plusCreateOptions .tma-composer-caption{font-size:13px!important;font-weight:700!important;white-space:nowrap!important}
  html.pmc[lang] body #inboxModal #plusCreateOptions .tma-composer-segments{display:grid!important;grid-auto-flow:column!important;grid-auto-columns:1fr!important;gap:4px!important;padding:3px!important;margin:0!important;width:100%!important;border-radius:12px!important}
  html.pmc[lang] body #inboxModal #plusCreateOptions .tma-composer-segments button{min-height:38px!important;height:38px!important;padding:0 8px!important;border-radius:9px!important;font-size:14px!important;white-space:nowrap!important}
  /* Quantity: a − N + stepper replaces the "10 ⌄ / 5 / 10" trio on phones. */
  html.pmc[lang] body #inboxModal #plusCreateOptions .pmc-hide{display:none!important}
  html.pmc[lang] body #inboxModal .pmc-stepper{display:grid!important;grid-template-columns:44px minmax(0,1fr) 44px!important;align-items:center!important;height:44px!important;padding:3px!important;border:1px solid var(--line,#d9deea)!important;border-radius:12px!important;background:var(--surface,#fff)!important;direction:ltr}
  html.pmc[lang] body #inboxModal .pmc-stepper button{height:38px!important;min-height:0!important;width:44px!important;padding:0!important;display:grid!important;place-items:center!important;border:0!important;border-radius:9px!important;background:var(--primary-soft,#eaefff)!important;color:var(--primary,#2f55e8)!important;font-size:20px!important;font-weight:700!important;line-height:1!important}
  html.pmc[lang] body #inboxModal .pmc-stepper button:disabled{opacity:.4}
  html.pmc[lang] body #inboxModal .pmc-stepper output{text-align:center;font-size:16px;font-weight:800;color:var(--text,#0f1b33)}

  /* Footer: hint on its own line, then Cancel + Create, pinned to the bottom of the sheet. */
  html.pmc[lang] body #inboxModal .tma-composer-footer,html.pmc[lang] body #inboxModal .modal-card>.modal-actions{position:sticky!important;bottom:0!important;z-index:2!important;display:block!important;margin:12px -16px 0!important;padding:10px 16px calc(12px + env(safe-area-inset-bottom,0px))!important;background:var(--surface,#fff)!important;border-top:1px solid var(--line,#e4e8f1)!important}
  html.pmc[lang] body #inboxModal #plusCreateOptions .tma-composer-footer{position:static!important;margin:0!important;padding:4px 0 0!important;background:transparent!important;border:0!important}
  html.pmc[lang] body #inboxModal #plusCreateOptions:has(.tma-composer-footer){margin-bottom:calc(12px + env(safe-area-inset-bottom,0px))!important}
  html.pmc[lang] body #inboxModal #plusBatchFiveHelp{display:block!important;width:auto!important;max-width:none!important;margin:0 0 8px!important;font-size:12.5px!important;line-height:1.5!important;text-align:center!important;color:var(--muted,#5b6780)!important}
  html.pmc[lang] body #inboxModal #plusBatchFiveHelp[hidden]{display:none!important}
  html.pmc[lang] body #inboxModal .modal-actions{display:grid!important;grid-template-columns:1fr 2fr!important;gap:8px!important;margin:0!important;padding:0!important;width:100%!important}
  html.pmc[lang] body #inboxModal .modal-actions>button{width:100%!important;min-width:0!important;min-height:48px!important;margin:0!important;border-radius:12px!important;font-size:15px!important;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis}
}
@media (max-width:700px) and (prefers-reduced-motion:reduce){html.pmc[lang] body #inboxModal .modal-card{animation:none!important}}
@keyframes pmc-up{from{transform:translateY(40px);opacity:.6}to{transform:none;opacity:1}}
@media (max-width:700px){
  html.pmc[lang] body #inboxModal #plusCreateOptions>*,html.pmc[lang] body #inboxModal #plusCreateOptions .tma-composer-row>.tma-composer-segments,html.pmc[lang] body #inboxModal #plusCreateOptions .pmc-stepper,html.pmc[lang] body #inboxModal .tma-composer-footer,html.pmc[lang] body #inboxModal .tma-composer-footer .modal-actions{width:auto!important;max-width:none!important;min-width:0!important;justify-self:stretch!important;grid-column:1/-1!important;grid-area:auto!important;box-sizing:border-box!important}
}
@media (max-width:700px){
  /* No "Account server" caption: the two server buttons speak for themselves (caption still names the group for screen readers). */
  html.pmc[lang] body #inboxModal #plusCreateOptions #outlookServerLabel #plusServerCaption{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
  html.pmc[lang] body #inboxModal #plusCreateOptions #outlookServerLabel.tma-composer-row{grid-template-columns:minmax(0,1fr)!important}
}
@media (max-width:700px){
  /* Actions directly in the card (free page, or Pro with a site domain): same footer, pinned to the bottom. */
  html.pmc[lang] body #inboxModal .modal-card>.modal-actions:has(#createInboxConfirm){position:sticky!important;bottom:0!important;display:grid!important;grid-template-columns:1fr 2fr!important;gap:8px!important;margin:12px 0 0!important;padding:10px 0 calc(12px + env(safe-area-inset-bottom,0px))!important;background:var(--surface,#fff)!important;border-top:1px solid var(--line,#e4e8f1)!important;box-shadow:0 -10px 16px -12px rgba(9,14,28,.18)!important;width:auto!important;flex-direction:row!important}
  html.pmc[lang] body #inboxModal .modal-actions:has(#createInboxConfirm){grid-template-columns:1fr 2fr!important;flex-direction:row!important}
  html.pmc[lang] body #inboxModal .modal-actions:has(#createInboxConfirm)>button{order:0!important;width:100%!important;min-height:48px!important}
  html.pmc[lang] body #inboxModal #outlookSourceNote,html.pmc[lang] body #inboxModal .modal-card>p:not([hidden]),html.pmc[lang] body #inboxModal .free-create-note,html.pmc[lang] body #inboxModal .modal-card>.muted{margin:0 0 6px!important;font-size:12.5px!important;line-height:1.6!important;color:var(--muted,#5b6780)!important}
}
@media (max-width:700px){html.pmc[lang] body #inboxModal #outlookSourceGroup .tma-source-free{position:absolute!important;top:5px!important;inset-inline-start:5px!important;inset-inline-end:auto!important;margin:0!important;padding:1px 6px!important;font-size:10px!important;line-height:1.5!important;border-radius:99px!important}
html.pmc[lang] body #inboxModal #outlookSourceGroup .outlook-source-options+p,html.pmc[lang] body #inboxModal #outlookSourceNote{margin-top:10px!important}}
