/* One account avatar opens account controls and the existing record profiles. */
.mm-account-avatar{display:grid;place-items:center;position:relative;flex:0 0 44px;width:44px;height:44px;overflow:hidden;border-radius:50%;background:var(--brand-orange,var(--color-source-ed8c3f));color:var(--brand-ink,var(--color-source-14161a));font:600 var(--type-14)/1 var(--sans,system-ui);letter-spacing:.02em}
.mm-account-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.mm-account-trigger{cursor:pointer;display:flex;align-items:center;gap:11px;min-height:44px;color:var(--ink,var(--color-source-14161a));font:inherit;border:0;background:transparent}
.mm-account-trigger:focus-visible,.mm-account-menu button:focus-visible{outline:2px solid var(--amber,var(--color-source-a85207));outline-offset:4px}
#prof-chip.mm-account-trigger{width:44px;min-width:44px;height:44px;padding:0;border-radius:50%;border:0;background:transparent;box-shadow:none}
#prof-chip.mm-account-trigger .prof-chip-copy{display:none}
.mm-account-rail{padding:12px 0 4px;margin-top:auto}
.mm-account-rail-trigger{width:100%;padding:8px 10px;border-radius:12px;text-align:left;font-weight:600}
.mm-account-rail-trigger:hover{background:var(--card-2,var(--color-source-eeebe3))}
.mm-account-rail-trigger>svg{width:17px;height:17px;margin-left:auto;opacity:.65}
.mm-account-menu{padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid var(--rule,var(--color-source-ded9cd))}
.mm-account-menu-head{display:flex;align-items:center;gap:14px;min-width:0}
.mm-account-menu-head>.mm-account-avatar{width:60px;height:60px;flex-basis:60px;font-size:var(--type-20)}
.mm-account-menu-head>div{min-width:0}
.mm-account-menu-head h2{margin:3px 0 4px;font-size:var(--type-20);line-height:1.2;overflow-wrap:anywhere}
.mm-account-menu-head .eyebrow{margin:0}
.mm-account-menu-email{margin:0;color:var(--ink-soft,var(--color-source-5b5f63));font-size:var(--type-14);overflow-wrap:anywhere}
.mm-account-photo-change{display:inline-flex;align-items:center;min-height:44px;padding:0;margin:8px 0 0;border:0;background:transparent;color:var(--amber,var(--color-source-a85207));font-family:inherit;font-weight:600;font-size:var(--type-14);line-height:1.4;cursor:pointer;text-align:left}
.mm-account-photo-change:disabled{opacity:.55;cursor:wait}
.mm-account-photo-help{font-size:var(--type-14);color:var(--ink-soft,var(--color-source-5b5f63));margin:0 0 12px}
.mm-account-photo-note{font-size:var(--type-14);line-height:1.5;margin:8px 0;color:var(--ink-soft,var(--color-source-5b5f63))}
.mm-account-photo-note:empty{display:none}
.mm-account-menu .mm-sync-account-status{margin:0 0 14px;font-size:var(--type-14);line-height:1.5}
.mm-account-menu-links{display:grid;gap:3px;margin-top:10px}
.mm-account-menu-links button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:48px;padding:12px;border:0;border-radius:10px;background:transparent;color:var(--ink,var(--color-source-14161a));font-family:inherit;font-weight:600;font-size:var(--type-14);line-height:1.4;text-align:left;cursor:pointer}
.mm-account-menu-links button:hover{background:var(--card-2,var(--color-source-eeebe3))}
.mm-account-menu-links [data-account-menu-action="backups"]{background:var(--amber);color:var(--ink-on-amber,var(--color-source-101114));margin:8px 0;justify-content:center;text-align:center}
.mm-account-menu-links [data-account-menu-action="backups"]:hover{background:var(--amber);filter:brightness(1.06)}
.mm-account-menu-links [data-account-menu-action="backups"] span{color:inherit}
.mm-account-menu-links button span{font-size:var(--type-20);font-weight:400;color:var(--ink-soft,var(--color-source-5b5f63))}
#prof-modal .sheet{max-width:480px;max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain}
#prof-modal #prof-close{min-height:44px}
.mm-record-profiles{padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid var(--rule)}
.mm-record-profiles h2{margin-top:0}
.mm-record-profiles .row{display:grid;grid-template-columns:minmax(0,1fr) 44px 44px;gap:8px}
.mm-record-profiles .row :is(select,button){min-height:44px;min-width:0}
.mm-account-menu-head>div{flex:1}
.mm-account-menu [data-account-menu-action="connect"]{display:block;margin-bottom:8px}
html.vr-app #prof-modal .mm-profile-utilities{margin-top:0;padding-top:0;border-top:0}
html.vr-app #prof-modal .mm-profile-utilities .pbtn svg{color:inherit;stroke:currentColor}
.mm-account-session{padding-top:12px;margin-top:12px;border-top:1px solid var(--rule)}
@media(max-width:380px){.mm-account-menu-head{gap:11px}.mm-account-menu-head h2{font-size:var(--type-20)}.mm-account-menu-head>.mm-account-avatar{width:52px;height:52px;flex-basis:52px}}

/* One stable account entry, last in the header on every viewport. */
html.vr-app .profilebar>.vr-softlaunch{order:0;flex:0 0 auto;min-width:44px;margin:0;padding:0;border:0}
html.vr-app .profilebar>#prof-chip.mm-account-trigger{order:1;position:static;flex:0 0 44px;width:44px;height:44px;padding:0;margin:0;border-radius:50%}
html.vr-app .profilebar>#prof-chip[hidden]{display:none!important}
html.vr-app .profilebar>#prof-chip .prof-chip-copy{display:none}
html.vr-app .profilebar>#prof-chip:hover .mm-account-avatar{box-shadow:0 0 0 3px var(--rule)}
html.vr-app .profilebar>#prof-chip:focus-visible{outline:3px solid var(--amber);outline-offset:3px}
