#patient-account-menu .patient-view-settings{padding:10px 12px;border-top:1px solid #cbdcd2;white-space:normal}
.patient-view-settings summary{cursor:pointer;min-height:40px;line-height:40px;font-weight:600}
.patient-view-settings label{display:grid;gap:6px;font-size:14px}
.patient-view-settings select{width:100%;min-height:44px;font-size:16px;box-sizing:border-box}
.patient-view-settings small{display:block;margin-top:8px;font-size:12px;line-height:1.5}
html[data-portal-area=patient][data-patient-view=pc] body{min-width:1200px}

#patient-account-menu{width:340px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 100px);overflow-y:auto;padding:8px;box-sizing:border-box;border:1px solid #c7d9cf;border-radius:14px;box-shadow:0 10px 32px #163d2926;background:#fff}
#patient-account-menu .patient-menu-group-title{font-size:12px;font-weight:700;letter-spacing:.025em;color:#597063;padding:14px 10px 5px;margin-top:5px;border-top:1px solid #e5ece7}
#patient-account-menu .patient-menu-group-title:first-child{border-top:0;margin-top:0;padding-top:6px}
#patient-account-menu>[role=menuitem]{display:flex;align-items:center;min-height:44px;width:100%;box-sizing:border-box;white-space:normal;text-align:left;border:0;border-radius:8px;background:transparent;padding:10px 12px;margin:2px 0;font-size:14px;color:#254a38;text-decoration:none}
#patient-account-menu>[role=menuitem]:hover,#patient-account-menu>[role=menuitem]:focus-visible{background:#edf5f0}
#patient-account-menu>[data-action=logout]{margin-top:14px;border-top:1px solid #e4cece;background:#fff5f5;color:#8a3030;font-weight:600}
#patient-account-menu .patient-view-settings{border:0;padding:2px 10px}
#patient-account-menu [data-mobile-appointment-tools]{border:0;padding:0 4px}

/* Keep late-added controls above sign-out as well as in DOM order. */
#patient-account-menu:not([hidden]){display:flex;flex-direction:column;gap:2px}
#patient-account-menu> *{flex-shrink:0;order:0;min-width:0}
#patient-account-menu>[data-action=logout]{order:9999;margin-top:14px!important;border-radius:8px!important;background:#fff5f5!important}
#patient-account-menu [data-mobile-appointment-tools] summary{font-size:14px;font-weight:600;cursor:pointer;min-height:44px;align-content:center}
#patient-account-menu [data-mobile-appointment-tools] details{background:#f5f8f6;border:1px solid #dde7e0;border-radius:8px;padding:4px 10px;margin:4px 0}
