/* Shared global choices stay compact; each page keeps its task controls and parent return. */
header .bmHomeNav{display:flex;align-items:center;gap:14px;margin-left:auto;flex-wrap:wrap;font:500 14px/1.4 system-ui,sans-serif;color:inherit}
header .bmHomeNav a,header .bmHomeNav summary{font:inherit;color:inherit;cursor:pointer;text-decoration:none;margin:0;padding:6px 0;white-space:normal}
header .bmHomeNav a:hover,header .bmHomeNav summary:hover{text-decoration:underline}
header .bmHomeNav a:focus-visible,header .bmHomeNav summary:focus-visible{outline:2px solid #ba8224;outline-offset:3px}
header .bmAccountMenu{position:relative;border:0;background:none;margin:0;padding:0;color:inherit}
header .bmAccountChoices{position:absolute;right:0;top:100%;z-index:100;background:#fff;color:#17312f;border:1px solid #d5dfda;border-radius:8px;box-shadow:0 5px 18px #0002;padding:8px;min-width:190px;max-width:calc(100vw - 32px)}
header .bmAccountChoices a{display:block!important;padding:10px!important;color:#17312f!important}
header a[hidden]{display:none!important}
.bmSimpleHeader{display:flex;align-items:center;flex-wrap:wrap;gap:16px;padding:14px 24px;border-bottom:1px solid #d5dfda;background:#fff;color:#17312f;box-sizing:border-box;width:100%}
.bmSimpleHeader .brand{font:22px Georgia,serif;color:inherit;text-decoration:none}
body.bmHasAddedHeader{display:block;padding:0}
body.bmHasAddedHeader>main.card{margin:36px auto;width:calc(100% - 32px);box-sizing:border-box}
@media(max-width:600px){header .bmHomeNav{gap:12px}header .bmAccountChoices{min-width:175px}}

/* Keep the primary return beside the brand, before task controls. */
header .bmHomeStart{display:flex;align-items:center;gap:16px;flex-wrap:wrap;min-width:0;max-width:100%}
header a.bmHomeLink{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:7px 14px!important;margin:0!important;border:1px solid currentColor;border-radius:7px;font:600 14px/1.4 system-ui,sans-serif!important;color:inherit;text-decoration:none;white-space:nowrap}
header a.bmHomeLink:hover{text-decoration:underline}
header a.bmHomeLink:focus-visible{outline:3px solid #ba8224;outline-offset:3px}

/* One workspace header, independent of legacy page palettes and fixed heights. */
body>header.bmWorkspaceHeader{box-sizing:border-box;background:#142d43!important;color:#fff!important;display:flex;align-items:center;justify-content:flex-start;gap:24px;flex-wrap:wrap;height:auto!important;min-height:68px;padding:14px 5%!important;border:0;width:100%;max-width:none;font:14px/1.4 system-ui,sans-serif;overflow:visible}
header.bmWorkspaceHeader *{box-sizing:border-box}
header.bmWorkspaceHeader .casePickerButton{min-height:40px;padding-top:4px;padding-bottom:4px}
header.bmWorkspaceHeader .bmBrandIdentity{display:flex;flex-direction:column;gap:3px;min-width:0}
header.bmWorkspaceHeader .bmBrand{font:normal 17px/19px Georgia,serif!important;color:#fff!important;text-decoration:none;white-space:nowrap}
header.bmWorkspaceHeader .bmHomeStart{flex-wrap:nowrap}
header.bmWorkspaceHeader .bmReviewerLine{font:11px/15px system-ui,sans-serif;color:#e0ebef;display:flex;align-items:center;gap:4px;flex-wrap:wrap}
header.bmWorkspaceHeader .bmRoleBadge{display:inline-block;border-radius:4px;padding:0 5px;font:600 10px/15px system-ui,sans-serif;background:#e2e8ed;color:#233746;white-space:nowrap}
header.bmWorkspaceHeader .bmRoleBadge[data-role=clerk]{background:#c7e9e2;color:#124e44}
header.bmWorkspaceHeader .bmRoleBadge[data-role=md]{background:#d7e8ff;color:#193f70}
header.bmWorkspaceHeader .bmRoleBadge[data-role=attorney]{background:#eadcf8;color:#523171}
header.bmWorkspaceHeader .bmRoleBadge[data-role=corporate],header.bmWorkspaceHeader .bmRoleBadge[data-role=admin]{background:#f5e4ba;color:#624713}
header.bmWorkspaceHeader.bmHasReviewer .who,header.bmWorkspaceHeader.bmHasReviewer #whoami{display:none!important}
header.bmWorkspaceHeader a:not(.bmBrand):not(.bmHomeLink){color:inherit;font:500 14px/1.4 system-ui,sans-serif;text-decoration:none}
header.bmWorkspaceHeader a:hover{text-decoration:underline}
header.bmWorkspaceHeader .bmAccountChoices a{color:#17312f!important}
header.bmWorkspaceHeader nav[hidden]{display:none!important}
header.bmWorkspaceHeader nav{margin-left:0!important}
header.bmWorkspaceHeader .workspaceIdentity:empty,header.bmWorkspaceHeader .homeIdentity:empty{display:none}
body.bmReviewWorkspace>.layout{min-height:calc(100vh - var(--bmHeaderHeight,68px))}
body.bmReviewWorkspace>.layout>aside{top:var(--bmHeaderHeight,68px);height:calc(100vh - var(--bmHeaderHeight,68px))}
body.bmReviewWorkspace .workspace{height:calc(100vh - var(--bmHeaderHeight,68px))}
@media(max-width:600px){body>header.bmWorkspaceHeader{gap:12px;padding:14px 16px!important}header.bmWorkspaceHeader .bmHomeStart{max-width:100%}header.bmWorkspaceHeader select{min-width:0;max-width:100%}header.bmWorkspaceHeader .bmHomeNav{gap:12px}}
