.header-inner.has-account-nav { display:flex; flex-wrap:wrap; align-items:center; gap:.7rem 1rem; }
.rml-account-nav { display:flex !important; flex:0 1 auto; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:.5rem !important; min-width:0; max-width:100%; margin-left:auto; position:relative; padding:0 !important; border:0 !important; font-family:system-ui,-apple-system,'Segoe UI',sans-serif; color:#26384c; }
.rml-account-nav .rml-account-button, .rml-session-notice .rml-account-button { display:inline-flex; align-items:center; justify-content:center; gap:.5rem; padding:.6rem .85rem; min-height:2.5rem; border:1px solid #cbd4dc; border-radius:.4rem; background:#fff; color:#26384c; font:650 .79rem/1.3 system-ui,-apple-system,'Segoe UI',sans-serif; text-decoration:none; cursor:pointer; white-space:nowrap; }
.rml-account-nav .rml-account-primary { background:#263d51; color:#fff; border-color:#263d51; }
.rml-account-nav .rml-account-primary:hover { background:#1a2e40; color:#fff; }
.rml-account-nav .rml-account-secondary:hover { background:#f2f6f8; color:#26384c; }
.rml-account-nav a:focus-visible, .rml-account-nav button:focus-visible, .rml-account-nav summary:focus-visible { outline:3px solid #b55e2b; outline-offset:3px; }
.rml-account-details { position:relative; margin:0; padding:0; }
.rml-account-details > summary { list-style:none; }
.rml-account-details > summary::-webkit-details-marker { display:none; }
.rml-account-chevron { font-size:1rem; line-height:1; }
.rml-account-panel { position:absolute; z-index:50; top:calc(100% + .5rem); right:0; width:17.5rem; max-width:calc(100vw - 2rem); padding:.45rem; border:1px solid #d8e1e8; border-radius:.6rem; background:#fff; box-shadow:0 12px 35px #20354c22; text-align:left; }
.rml-account-identity { padding:.6rem .65rem .8rem; border-bottom:1px solid #e4e9ed; margin-bottom:.3rem; overflow-wrap:anywhere; }
.rml-account-identity small, .rml-account-identity strong, .rml-account-identity span { display:block; }
.rml-account-identity small { color:#687581; font-size:.67rem; margin-bottom:.3rem; }
.rml-account-identity strong { color:#26384c; font-size:.85rem; }
.rml-account-identity span { margin-top:.2rem; color:#65717e; font-size:.72rem; }
.rml-account-nav .rml-account-menu-link { display:block; padding:.65rem !important; color:#26384c; font-size:.78rem !important; font-weight:600; line-height:1.4; text-decoration:none; border-radius:.3rem; }
.rml-account-nav .rml-account-menu-link:hover { background:#f1f5f8; color:#26384c; }
.rml-account-nav .rml-account-signout { border-top:1px solid #e4e9ed; border-radius:0 0 .3rem .3rem; color:#8b4326; margin-top:.3rem; padding-top:.8rem !important; }
.rml-account-checking { color:#617080; font-size:.75rem; padding:.6rem 0; }
.rml-account-nav .rml-account-retry { padding:.35rem; color:#71503b; background:none; border:0; font:600 .73rem/1.3 system-ui,-apple-system,'Segoe UI',sans-serif; text-decoration:underline; text-underline-offset:.2em; cursor:pointer; }
.rml-account-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.rml-session-notice { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:.7rem; padding:.7rem 1rem; background:#fff2d9; color:#5d482a; font:500 .8rem/1.5 system-ui,-apple-system,'Segoe UI',sans-serif; }
.rml-session-recheck #workspace-content, .rml-session-recheck #account-name, .rml-session-recheck #account-description, .rml-session-recheck #account-tag, .rml-session-recheck #account-role, .rml-session-recheck #request-list, .rml-session-recheck #request-receipt, .rml-session-recheck #owner-setup, .rml-session-recheck #help-private, .rml-session-recheck #help-list, .rml-session-recheck #launch-private, .rml-session-recheck #analytics-private, .rml-session-recheck #research-workspace-bar, .rml-session-recheck #research-review-dialog { visibility:hidden !important; pointer-events:none !important; }
.rml-session-recheck #consultation-form, .rml-session-recheck #judgement-form, .rml-session-recheck #research-service-form, .rml-session-recheck #help-form, .rml-session-recheck #booking-state, .rml-session-recheck #service-state, .rml-session-recheck #requests-description, .rml-session-recheck #requests-message, .rml-session-recheck #help-receipt, .rml-session-recheck #help-message { visibility:hidden !important; pointer-events:none !important; }
.rml-session-recheck [data-account-private] { visibility:hidden !important; pointer-events:none !important; }
@media(max-width:800px) { .header-inner.has-account-nav > .rml-account-nav { order:4; flex-basis:auto; width:auto; border:0; padding-top:0; } .rml-account-nav .rml-account-button { padding:.55rem .7rem; font-size:.74rem; } }
@media(max-width:420px) { .header-inner.has-account-nav > .rml-account-nav { flex-basis:100%; justify-content:flex-end; } .rml-account-nav .rml-account-button { min-height:2.5rem; } }

/* Keep account actions reachable on short screens and group owner tools. */
.rml-account-panel{max-height:min(75vh,620px);overflow-y:auto;overscroll-behavior:contain}.rml-owner-tools{border-block:1px solid #e7e0d5;margin:.35rem 0;padding:.2rem 0}.rml-owner-tools>summary{cursor:pointer;list-style:revert!important}.rml-owner-tools>a{margin-left:.6rem;border-left:2px solid #d9c6aa;border-radius:0!important}.rml-account-nav .rml-account-button{min-height:44px}.rml-account-nav .rml-account-menu-link{min-height:44px;box-sizing:border-box}.rml-account-nav .rml-account-primary{background:#292a25;border-color:#292a25}.rml-account-nav .rml-account-primary:hover{background:#12130f}.rml-account-nav .rml-account-identity strong{line-height:1.5}@media(max-width:760px){.rml-account-nav .rml-account-button{padding:.55rem .75rem;font-size:.77rem}.rml-account-panel{max-height:70vh}}
