/* R14 shared polish, scoped to known directory/communication/toolbox components.
   Calendar, finance forms, contract dialogs and native permission containers are untouched. */
html.leos-ux-preview #leosE83 #appShell #mainContent #page-members.ux-members-refined-r14 .member-page-top {align-items:center;gap:10px;margin-bottom:12px}
html.leos-ux-preview #leosE83 #appShell #mainContent #page-members.ux-members-refined-r14 .member-page-top h1 {font-size:29px!important;line-height:1.15!important;text-transform:none!important;margin:0 0 4px!important;letter-spacing:-.02em}
html.leos-ux-preview #leosE83 #appShell #mainContent #page-members.ux-members-refined-r14 .member-page-top p {font-size:12px!important;line-height:1.5!important;margin:0!important;color:#63788d}
html.leos-ux-preview #leosE83 #appShell #mainContent #page-members.ux-members-refined-r14 #addMemberBtn,
html.leos-ux-preview #leosE83 #appShell #mainContent #page-members.ux-members-refined-r14 #memberRefreshBtn,
html.leos-ux-preview #leosE83 #appShell #mainContent #page-members.ux-members-refined-r14 #e68MemberResetFilters {min-height:44px!important;min-width:0!important;height:auto!important;padding:9px 12px!important;font-size:12px!important;line-height:1.4!important;white-space:normal!important;box-sizing:border-box!important}
html.leos-ux-preview #leosE83 #appShell #mainContent #page-members.ux-members-refined-r14 .ux-r14-member-toolbar {display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important;padding:0!important;min-width:0}
html.leos-ux-preview #leosE83 #appShell #mainContent #page-members.ux-members-refined-r14 .ux-r14-member-toolbar>label {display:grid!important;gap:5px!important;min-width:0!important;margin:0!important;font-size:12px!important;line-height:1.4}
html.leos-ux-preview #leosE83 #appShell #mainContent #page-members.ux-members-refined-r14 .ux-r14-member-toolbar :is(input,select) {font-size:16px!important;min-height:44px!important;min-width:0!important;max-width:100%!important;width:100%!important;box-sizing:border-box!important}
html.leos-ux-preview #leosE83 #appShell #mainContent #page-members.ux-members-refined-r14 .member-filter-rail {padding:14px!important;border-radius:16px!important;box-shadow:none!important;min-width:0}
html.leos-ux-preview #leosE83 #appShell #mainContent #page-members.ux-members-refined-r14 .member-directory-body {padding:0!important}
html.leos-ux-preview #leosE83 #appShell #mainContent #page-members.ux-members-refined-r14 :is(.ux-r14-filter-details,.ux-r14-member-overview) {margin:0;min-width:0;border:1px solid #dbe5ed;border-radius:12px;background:#f7fafc;box-shadow:none}
html.leos-ux-preview #leosE83 #appShell #mainContent #page-members.ux-members-refined-r14 :is(.ux-r14-filter-details,.ux-r14-member-overview)>summary {display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:3px 8px;min-height:46px;padding:10px 12px;box-sizing:border-box;list-style:none;cursor:pointer;color:#345675}
html.leos-ux-preview #leosE83 #appShell #mainContent #page-members.ux-members-refined-r14 :is(.ux-r14-filter-details,.ux-r14-member-overview)>summary::-webkit-details-marker {display:none}
html.leos-ux-preview #leosE83 #appShell #mainContent #page-members.ux-members-refined-r14 :is(.ux-r14-filter-details,.ux-r14-member-overview)>summary>strong {font:600 12px/1.4 system-ui,sans-serif}
html.leos-ux-preview #leosE83 #appShell #mainContent #page-members.ux-members-refined-r14 :is(.ux-r14-filter-details,.ux-r14-member-overview)>summary:after {content:'+';grid-column:3;grid-row:1;color:#168894;font-size:19px;line-height:1}
html.leos-ux-preview #leosE83 #appShell #mainContent #page-members.ux-members-refined-r14 :is(.ux-r14-filter-details,.ux-r14-member-overview)[open]>summary:after {content:'−'}
html.leos-ux-preview #leosE83 #appShell #mainContent #page-members.ux-members-refined-r14 :is(.ux-r14-filter-details,.ux-r14-member-overview)>summary:focus-visible {outline:3px solid #39b7c5;outline-offset:-4px;border-radius:11px}
html.leos-ux-preview #leosE83 #appShell #mainContent #page-members.ux-members-refined-r14 .ux-r14-filter-count {grid-column:2;grid-row:1;font:600 10px/1.4 system-ui,sans-serif;color:#178595}
html.leos-ux-preview #leosE83 #appShell #mainContent #page-members.ux-members-refined-r14 :is(.ux-r14-filter-state,.ux-r14-overview-state) {grid-column:1/-1;font-size:11px;line-height:1.5;color:#6e5b32;overflow-wrap:anywhere}
html.leos-ux-preview #leosE83 #appShell #mainContent #page-members.ux-members-refined-r14 :is(.ux-r14-filter-count,.ux-r14-filter-state,.ux-r14-overview-state):empty {display:none}
html.leos-ux-preview #leosE83 #appShell #mainContent #page-members.ux-members-refined-r14 .ux-r14-filter-body {display:grid;gap:10px;padding:0 11px 11px;min-width:0}
html.leos-ux-preview #leosE83 #appShell #mainContent #page-members.ux-members-refined-r14 .ux-r14-filter-body>label {display:grid;gap:5px;font-size:12px;min-width:0;margin:0}
html.leos-ux-preview #leosE83 #appShell #mainContent #page-members.ux-members-refined-r14 .ux-r14-filter-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;min-width:0}
html.leos-ux-preview #leosE83 #appShell #mainContent #page-members.ux-members-refined-r14 .ux-r14-filter-body .member-directory-head {padding:8px 0 0!important;margin:0!important;border:0!important;background:none!important}
html.leos-ux-preview #leosE83 #appShell #mainContent #page-members.ux-members-refined-r14 .ux-r14-filter-body .member-directory-head strong {font-size:12px!important;line-height:1.4}
html.leos-ux-preview #leosE83 #appShell #mainContent #page-members.ux-members-refined-r14 .ux-r14-filter-body .member-directory-head small {font-size:11px!important;line-height:1.5}
html.leos-ux-preview #leosE83 #appShell #mainContent #page-members.ux-members-refined-r14 #uxMemberOverviewR14 {margin:0 0 12px}
html.leos-ux-preview #leosE83 #appShell #mainContent #page-members.ux-members-refined-r14 #uxMemberOverviewR14 #memberKpis {padding:0 11px 11px!important;margin:0!important;gap:7px!important}
html.leos-ux-preview #leosE83 #appShell #mainContent #page-members.ux-members-refined-r14.e83-record-open #uxMemberOverviewR14 {display:none!important}
html.leos-ux-preview #leosE83 #appShell #mainContent #page-members.ux-members-refined-r14 #memberDetail {border-radius:16px!important;box-shadow:none!important;min-width:0}
html.leos-ux-preview #leosE83 #appShell #mainContent #page-members.ux-members-refined-r14 #memberDetail>.e83-back,
html.leos-ux-preview #leosE83 #appShell #mainContent #page-members.ux-members-refined-r14 #memberDetail>.e83-record-tabs>button {min-height:44px!important;min-width:0!important;line-height:1.4!important;white-space:normal!important;box-sizing:border-box!important}
html.leos-ux-preview #leosE83 #appShell #mainContent #page-members.ux-members-refined-r14 #memberDetail>.member-detail-head {gap:10px;padding-bottom:12px!important;margin-bottom:12px!important}
html.leos-ux-preview #leosE83 #appShell #mainContent #page-members.ux-members-refined-r14 #memberDetail>.member-detail-head h2 {font-size:24px!important;line-height:1.25!important;margin:3px 0 8px!important;overflow-wrap:anywhere}
html.leos-ux-preview #leosE83 #appShell #mainContent #page-members.ux-members-refined-r14 #memberDetail .member-head-chips {gap:5px;flex-wrap:wrap;max-width:100%}
html.leos-ux-preview #leosE83 #appShell #mainContent #page-members.ux-members-refined-r14 #memberDetail .member-head-chips>span {max-width:100%;white-space:normal;overflow-wrap:anywhere}
html.leos-ux-preview #leosE83 #appShell #mainContent #page-members.ux-members-refined-r14 #e114CustomerActions {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px!important;padding:9px 0!important;margin:0 0 11px;min-width:0}
html.leos-ux-preview #leosE83 #appShell #mainContent #page-members.ux-members-refined-r14 #e114CustomerActions>button,
html.leos-ux-preview #leosE83 #appShell #mainContent #page-members.ux-members-refined-r14 #e114CustomerActions .ux-r14-member-more button {min-height:44px!important;min-width:0!important;width:100%!important;height:auto!important;box-sizing:border-box!important;padding:9px 11px!important;font-size:12px!important;line-height:1.4!important;white-space:normal!important;margin:0!important}
html.leos-ux-preview #leosE83 #appShell #mainContent #page-members.ux-members-refined-r14 #e114CustomerActions>[data-e118-person="back"],
html.leos-ux-preview #leosE83 #appShell #mainContent #page-members.ux-members-refined-r14 #e114CustomerActions>.ux-r14-member-more {grid-column:1/-1;width:100%;min-width:0}
html.leos-ux-preview #leosE83 #appShell #mainContent #page-members.ux-members-refined-r14 .ux-r14-member-more>summary {min-height:44px;box-sizing:border-box;padding:10px 12px;font-size:12px;line-height:1.4}
html.leos-ux-preview #leosE83 #appShell #mainContent #page-members.ux-members-refined-r14 .ux-r14-member-more>.e118-actions {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px!important;min-width:0}
html.leos-ux-preview #leosE83 #appShell #mainContent #page-members.ux-members-refined-r14 .ux-r14-member-more .member-detail-actions {grid-column:1/-1;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px!important;width:100%!important;margin:0!important;min-width:0}
html.leos-ux-preview #leosE83 #appShell #mainContent #page-members.ux-members-refined-r14 #memberDetail .e83-record-view .member-panel.member-collapsible {padding:0!important}
html.leos-ux-preview #leosE83 #appShell #mainContent #page-members.ux-members-refined-r14 #memberDetail .e83-record-view .member-panel.member-collapsible>summary {min-height:48px;padding:11px 13px!important;gap:8px;box-sizing:border-box}

/* Existing communication fields/actions remain the only interaction targets. */
html.leos-ux-preview #leosE83 #page-communications.ux-comm-refined .communications-head-actions {display:flex!important;flex-wrap:wrap!important;align-items:stretch!important;gap:7px!important;width:100%;margin:10px 0 0!important}
html.leos-ux-preview #leosE83 #page-communications.ux-comm-refined .communications-head-actions>button {flex:1 1 132px!important;min-height:44px!important;min-width:0!important;width:auto!important;max-width:100%;height:auto!important;box-sizing:border-box!important;white-space:normal!important;line-height:1.4!important;font-size:12px!important;padding:9px 11px!important}
html.leos-ux-preview #leosE83 #page-communications.ux-comm-refined #e114ComposeMail {background:#fff!important;border:1px solid #d5e2ed!important;color:#335477!important;box-shadow:none!important;font-weight:550!important}
html.leos-ux-preview #leosE83 #page-communications.ux-comm-refined .communications-safety {display:grid!important;grid-template-columns:minmax(0,1fr);gap:5px!important;line-height:1.5!important}
html.leos-ux-preview #leosE83 #page-communications.ux-comm-refined .communications-safety>strong,
html.leos-ux-preview #leosE83 #page-communications.ux-comm-refined .communications-safety>span {display:block!important;white-space:normal!important;min-width:0;overflow-wrap:anywhere}
html.leos-ux-preview #leosE83 #page-communications.ux-comm-refined .communications-search input,
html.leos-ux-preview #leosE83 #page-communications.ux-comm-refined .hub124-toolbar input,
html.leos-ux-preview #leosE83 #page-communications.ux-comm-refined .communications-assignment select,
html.leos-ux-preview #leosE83 #page-communications.ux-comm-refined .communications-draft :is(input,textarea),
html.leos-ux-preview #leosE83 #page-communications.ux-comm-refined #communicationsDraftInstruction {font-size:16px!important;min-width:0!important;max-width:100%!important;width:100%!important;box-sizing:border-box!important;line-height:1.5!important}
html.leos-ux-preview #leosE83 #page-communications.ux-comm-refined .communications-assignment select,
html.leos-ux-preview #leosE83 #page-communications.ux-comm-refined .communications-draft input {min-height:44px!important}
html.leos-ux-preview #leosE83 #page-communications.ux-comm-refined .communications-detail-head h2 {font-size:21px!important;line-height:1.3!important;overflow-wrap:anywhere}
html.leos-ux-preview #leosE83 #page-communications.ux-comm-refined :is(.communications-detail-actions,.communications-assignment,.communications-draft-actions) button {min-height:44px!important;min-width:0!important;padding:9px 11px!important;font-size:12px!important;line-height:1.4!important;white-space:normal!important;box-sizing:border-box!important}
html.leos-ux-preview #leosE83 #page-communications.ux-comm-refined :is(.communications-detail-actions,.communications-draft-actions)>.ux-comm-blocked-note {display:none!important}
html.leos-ux-preview #leosE83 #page-communications.ux-comm-refined .communications-match {max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.5}
html.leos-ux-preview #leosE83 #page-communications.ux-comm-refined .communications-draft .communications-thread-top {flex-wrap:wrap;gap:5px 8px}

/* The postbox and global toolbox get the same field size and action rhythm. */
html.leos-ux-preview #leosE83 #page-leo .ux-handoff-body input {font-size:16px!important;min-width:0!important;max-width:100%!important;line-height:1.5!important}
html.leos-ux-preview #leosE83 #page-leo .ux-handoff-actions {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px!important;min-width:0}
html.leos-ux-preview #leosE83 #page-leo .ux-handoff-actions>button {min-height:44px!important;width:100%;min-width:0;box-sizing:border-box!important;line-height:1.4!important}
html.leos-ux-preview #leosE83 #uxModalRoot .ux-dialog-head {padding:16px 17px 12px;gap:10px}
html.leos-ux-preview #leosE83 #uxModalRoot .ux-dialog-head h2 {font-size:23px!important;line-height:1.25!important;margin-top:4px!important;overflow-wrap:anywhere}
html.leos-ux-preview #leosE83 #uxModalRoot .ux-tool-search input,
html.leos-ux-preview #leosE83 #uxModalRoot .ux-edge-setting select {font-size:16px!important;min-height:44px!important;min-width:0;max-width:100%;box-sizing:border-box}
html.leos-ux-preview #leosE83 #uxModalRoot .ux-tools-grid>button {min-height:56px!important;padding:10px!important;gap:8px!important;min-width:0;box-sizing:border-box!important}
html.leos-ux-preview #leosE83 #uxModalRoot .ux-tools-grid>button>span:nth-child(2) {font-size:12px!important;line-height:1.4!important;overflow-wrap:anywhere}
html.leos-ux-preview #leosE83 #uxModalRoot .ux-tools-footer {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:12px;padding-top:10px}
html.leos-ux-preview #leosE83 #uxModalRoot .ux-tools-footer>button {min-height:44px!important;min-width:0;margin:0!important;padding:9px 10px!important;font-size:12px!important;line-height:1.4!important;white-space:normal;text-align:left;box-sizing:border-box;border:1px solid #dce5ee!important;border-radius:11px!important;background:#f7fafc!important}
html.leos-ux-preview #leosE83 #uxModalRoot .ux-tools-footer>button[data-ux-action="settings"] {grid-column:1/-1}

@media(max-width:650px){
 html.leos-ux-preview #leosE83 #page-communications.ux-comm-refined details.ux-comm-disclosure:not([open])>summary .ux-comm-copy>small {display:none}
 html.leos-ux-preview #leosE83 #page-communications.ux-comm-refined .communications-detail-actions {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));justify-content:stretch!important;gap:7px!important}
 html.leos-ux-preview #leosE83 #page-communications.ux-comm-refined .communications-detail-actions>button {width:100%!important}
 html.leos-ux-preview #leosE83 #page-communications.ux-comm-refined .communications-assignment {display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:end;gap:7px!important}
 html.leos-ux-preview #leosE83 #page-communications.ux-comm-refined .communications-assignment label {min-width:0}
 html.leos-ux-preview #leosE83 #page-communications.ux-comm-refined .communications-assignment button {width:100%}
 html.leos-ux-preview #leosE83 #appShell #mainContent #page-members.ux-members-refined-r14 .member-page-top {align-items:flex-start}
 html.leos-ux-preview #leosE83 #appShell #mainContent #page-members.ux-members-refined-r14 .member-page-top h1 {font-size:27px!important}
 html.leos-ux-preview #leosE83 #appShell #mainContent #page-members.ux-members-refined-r14 .member-filter-rail {padding:12px!important}
}
