/* FEBRY.OPS V342 — clean mobile account hub; three actions only.
   Account details remain in the existing Profil/Setting overlay, not the Saya pane. */
@media(max-width:900px){
  /* Avoid duplicate entry points: mobile uses bottom Profil navigation. */
  body.cl-ms:has(#chatView:not(.hidden)) #topUser #profileTrigger,
  body.cl-ms:has(#chatView:not(.hidden)) #topUser #planBadge{display:none!important}
  body.cl-ms:has(#chatView:not(.hidden)) #topUser #logoutBtn{display:inline-flex!important;min-width:0;padding:7px 11px!important;min-height:36px!important;font-size:11px!important}
  body.cl-ms:has(#chatView:not(.hidden)) .topbar .mschat-brand .febry-site-logo{height:38px!important;max-width:160px!important}
  body.cl-ms:has(#chatView:not(.hidden)) .topbar .mschat-brand-copy{display:none!important}
  body.cl-ms:has(#chatView:not(.hidden)) .topbar>div:first-child{min-width:0!important;flex:1 1 auto!important}
  body.cl-ms #chatView .ms-mobile-profile-pane{padding:14px 4px 22px!important;min-width:0;max-width:100%;overflow-x:hidden}
  body.cl-ms #chatView .ms-mobile-profile-hub{width:100%;min-width:0;max-width:540px;margin:0 auto;padding:14px 3px 20px;box-sizing:border-box}
  .ms-mobile-profile-eyebrow{color:#F5F9F3;font-size:10px;font-weight:800;letter-spacing:.14em}
  .ms-mobile-profile-hub h2{margin:9px 0 3px;color:#F5F9F3;font-size:28px;letter-spacing:-.04em;line-height:1.2}
  .ms-mobile-profile-hub>p{margin:0;color:#F5F9F3;font-size:12px;line-height:1.55}
  .ms-mobile-profile-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin-top:22px}
  .ms-mobile-profile-action{display:flex;align-items:center;gap:12px;width:100%;min-width:0;padding:14px 13px;text-align:left;border:1px solid #29402f;border-radius:16px;background:#101a13;color:#F5F9F3;font:inherit;cursor:pointer;box-sizing:border-box}
  .ms-mobile-profile-action:hover,.ms-mobile-profile-action:focus-visible{border-color:#B6FF40;background:#162418;outline:none}
  .ms-mobile-profile-icon{width:43px;height:43px;min-width:43px;display:grid;place-items:center;border:1px solid #36563c;background:#0b140e;border-radius:13px;color:#B6FF40}
  .ms-mobile-profile-icon svg{display:block;width:22px;height:22px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;fill:none}
  .ms-mobile-profile-copy{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1 1 auto}
  .ms-mobile-profile-copy strong{font-size:14px;line-height:1.2;color:#F5F9F3;font-weight:850}
  .ms-mobile-profile-copy small{font-size:11px;line-height:1.45;color:#F5F9F3;overflow-wrap:break-word}
  .ms-mobile-profile-chevron{flex:0 0 auto;margin-left:auto;color:#B6FF40;font-size:24px;line-height:1}
  .ms-mobile-profile-action--primary{background:#172615;border-color:rgba(182,255,64,.28)}
  .ms-mobile-profile-action--primary .ms-mobile-profile-icon{background:#20351c}
  /* Overlay is a separate scroll surface, avoiding the broken iPhone Saya page's tall cards. */
  body.cl-ms .ms-account-overlay{z-index:10100!important}
  body.cl-ms .ms-account-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-left:0}
  body.cl-ms .ms-account-head{padding:calc(12px + env(safe-area-inset-top,0px)) 14px 10px}
  body.cl-ms .ms-account-head h2{font-size:23px}
  body.cl-ms .ms-account-tabs{padding:8px 14px}
  body.cl-ms .ms-account-content{padding:8px 13px calc(18px + env(safe-area-inset-bottom,0px));overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
  /* Prevent the legacy flex row styles from constraining usernames into single letters. */
  body.cl-ms .ms-account-overlay #threadsOauthCard,
  body.cl-ms .ms-account-overlay #threadsAccountList,
  body.cl-ms .ms-account-overlay .threads-account-item{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
  body.cl-ms .ms-account-overlay .threads-account-summary{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
  body.cl-ms .ms-account-overlay .threads-account-summary .threads-account-main{width:auto;min-width:0;flex:1 1 160px}
  body.cl-ms .ms-account-overlay .threads-account-summary .threads-account-main>div{min-width:0;overflow-wrap:anywhere;word-break:normal}
  body.cl-ms .ms-account-overlay .threads-account-summary .threads-account-summary-meta{width:auto;flex:0 0 auto;justify-content:flex-end;max-width:100%}
  body.cl-ms .ms-account-overlay .threads-account-summary .threads-account-main strong{word-break:normal;overflow-wrap:anywhere}
}
@media(max-width:370px){
  body.cl-ms:has(#chatView:not(.hidden)) .topbar .mschat-brand .febry-site-logo{height:34px!important;max-width:140px!important}
  .ms-mobile-profile-action{gap:10px;padding:12px 10px}
  .ms-mobile-profile-icon{width:39px;height:39px;min-width:39px}
  .ms-mobile-profile-copy small{font-size:10px}
}
