/* Familiar CRM density, confined to read-only imported views. Uses existing brand tokens. */
.review-crm #main{max-width:none;padding:28px 32px}.review-crm .record-workspace{max-width:none}.review-crm h1{font-size:30px;line-height:1.2;margin:0 0 10px}.review-crm .eyebrow{font-size:11px;letter-spacing:.08em;margin:0 0 8px}.review-crm .intro{font-size:15px;margin-bottom:12px}.review-crm .record-review-note{font-size:12px}.review-crm .record-filters{border:1px solid var(--navy);border-radius:8px;padding:12px!important;gap:12px}.review-crm .record-filters input,.review-crm .record-filters select{border-radius:6px;font-size:13px}.review-crm button,.review-crm .button{border-radius:6px;font-size:13px}.review-crm .directory-table th{background:var(--navy);color:white;padding:12px}.review-crm .directory-table td{padding:12px;font-size:13px}.review-crm .directory-table .contact-avatar{width:28px;height:28px;font-size:12px}.review-crm .directory-table .primary-link{font-size:14px}.review-crm .directory-table-wrap{border:1px solid var(--navy);border-radius:8px}.review-crm .record-review-note summary{min-height:28px}.review-crm .review-profile-grid{grid-template-columns:minmax(280px,1fr) minmax(0,2fr)}.review-crm .review-profile-grid>.card{border:1px solid var(--navy);border-radius:8px;padding:20px}.review-crm .review-profile-grid h2{font-size:19px}
.crm-view-switch{display:flex;gap:0;margin:12px 0}.crm-view-switch a{padding:10px 18px;border:1px solid var(--navy);min-height:44px}.crm-view-switch a[aria-current]{background:var(--navy);color:white}.crm-view-switch a:first-child{border-radius:6px 0 0 6px}.crm-view-switch a:last-child{border-radius:0 6px 6px 0}
.crm-board{display:flex;gap:16px;overflow-x:auto;align-items:flex-start;padding:4px 2px 22px;max-width:100%;scrollbar-width:auto}.crm-column{flex:0 0 270px;border:1px solid var(--navy);border-top:4px solid var(--cyan);border-radius:8px;padding:12px;min-height:220px}.crm-column header{margin-bottom:16px}.crm-column header small{font-size:11px;display:block;overflow-wrap:anywhere}.crm-column h2{font-size:16px;display:flex;justify-content:space-between;gap:8px;margin:10px 0}.crm-column h2 span{font-size:12px;border:1px solid var(--navy);border-radius:20px;padding:3px 7px}.crm-opportunity-card{border:1px solid var(--navy);border-radius:6px;padding:14px;margin-top:12px;overflow-wrap:anywhere}.crm-opportunity-card .primary-link{font-size:14px;line-height:1.5;display:block}.crm-opportunity-card p{font-size:12px;margin:12px 0}.crm-opportunity-card>small{display:block;font-size:11px;margin-top:14px}.crm-opportunity-card:focus-within{outline:3px solid var(--cyan);outline-offset:2px}.crm-column:nth-child(3n+2){border-top-color:var(--teal)}.crm-column:nth-child(3n){border-top-color:var(--blue)}
.crm-workspace-heading{display:flex;justify-content:space-between;align-items:start;gap:20px;margin:14px 0 24px}.crm-workspace-heading p{font-size:14px}.crm-workspace-grid{display:grid;grid-template-columns:minmax(200px,1fr) minmax(300px,2fr) minmax(200px,1fr);gap:16px}.crm-panel{border:1px solid var(--navy);border-radius:8px;padding:20px;min-width:0;overflow-wrap:anywhere}.crm-panel h2{font-size:18px;margin:0 0 20px}.crm-panel h3{font-size:15px}.crm-panel p,.crm-panel dd{font-size:14px;line-height:1.6}.crm-panel dt{font-size:12px}.crm-panel dd{margin:5px 0 18px}.crm-review-callout{border-left:4px solid var(--cyan);padding:12px 18px;margin:20px 0;font-size:14px}.crm-review-callout p{margin:8px 0}.crm-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:24px 0}.crm-metrics>a{display:flex;flex-direction:column;gap:12px;border:1px solid var(--navy);border-top:4px solid var(--teal);border-radius:8px;padding:20px;text-decoration:none}.crm-metrics strong{font-size:32px}.crm-metrics small{font-size:12px}.crm-dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.crm-dashboard-row{display:flex;justify-content:space-between;gap:12px;padding:16px 0;border-bottom:1px solid var(--navy)}
.crm-calendar-heading{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin:24px 0}.crm-calendar-heading h2{font-size:20px;margin-right:auto}.crm-calendar-heading a{min-height:44px;display:flex;align-items:center;font-size:13px}.crm-calendar{overflow-x:auto}.crm-calendar table{width:100%;table-layout:fixed;border-collapse:collapse}.crm-calendar th{background:var(--navy);color:white;padding:12px}.crm-calendar td{height:100px;vertical-align:top;border:1px solid var(--navy);padding:10px}.crm-today{background:var(--teal);color:var(--navy);border-radius:50%;padding:6px;display:inline-block}
@media(max-width:1100px){.crm-workspace-grid{grid-template-columns:1fr 2fr}.crm-workspace-grid>aside:last-child{grid-column:1/-1}}@media(max-width:800px){.review-crm #main{padding:20px 16px}.review-crm .review-profile-grid,.crm-workspace-grid,.crm-dashboard-grid{grid-template-columns:1fr}.crm-metrics{grid-template-columns:1fr 1fr}.crm-column{flex-basis:250px}.crm-calendar td{height:65px;padding:5px}.crm-calendar th{padding:8px 2px;font-size:12px}.crm-workspace-heading{flex-direction:column}.review-crm .directory-table td{padding:10px 14px}.review-crm .directory-table tr{border-bottom:1px solid var(--navy)}}
.crm-directory-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.crm-directory-heading .crm-view-switch{margin:0}.review-crm .record-filter-field{flex:1 1 145px}.review-crm .record-filter-field.record-search{flex:2 1 220px}.review-crm .record-filter-actions{flex:1 1 auto;justify-content:flex-end}.review-crm .directory-result-heading{margin-block:12px}.review-crm .crm-board{margin-top:12px}@media(max-width:600px){.crm-directory-heading{align-items:start;flex-direction:column}.review-crm .record-filter-field{flex-basis:100%}}
/* GHL-observed browsing baseline: neutral chrome, compact controls and clear rows. */
.review-crm #main{padding:20px 24px;background:#fff}.review-crm .ghl-page-tabs{display:flex;align-items:center;gap:24px;border-bottom:1px solid #e2e7ee;min-height:56px}.review-crm .ghl-page-tabs h1{font-size:22px;margin:0}.ghl-current-section{font-size:13px;border-bottom:2px solid #2563eb;align-self:stretch;display:flex;align-items:center}.ghl-readonly{margin-left:auto;font-size:11px;color:#475569;background:#f1f5f9;padding:5px 10px;border-radius:5px}.ghl-smart-tabs{display:flex;gap:24px;overflow-x:auto;border-bottom:1px solid #e2e7ee}.ghl-smart-tabs a{white-space:nowrap;display:flex;align-items:center;min-height:48px;font-size:13px;text-decoration:none;border-bottom:2px solid transparent}.ghl-smart-tabs a[aria-current]{border-color:#2563eb;color:#1d4ed8;font-weight:600}.ghl-controls{margin:16px 0 0}.ghl-toolbar,.ghl-pipeline-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.ghl-toolbar{padding:12px 0}.review-crm .ghl-controls label{font-size:12px;display:flex;align-items:center;gap:8px;margin:0}.review-crm .ghl-controls input,.review-crm .ghl-controls select{font-size:13px;border:1px solid #cbd5e1;border-radius:6px;min-height:40px;padding:8px 10px;margin:0;width:auto;max-width:100%}.ghl-count{font-size:12px;border-radius:16px;background:#f1f5f9;padding:6px 10px;white-space:nowrap}.ghl-pipeline-row .crm-view-switch{margin:0 0 0 auto}.review-crm .crm-view-switch a{border-color:#cbd5e1;padding:10px 16px;text-decoration:none}.review-crm .crm-view-switch a[aria-current]{background:#eff6ff;color:#1d4ed8}.ghl-search{margin-left:auto!important;flex:1 1 200px;max-width:300px}.review-crm .ghl-search input{width:100%}.ghl-clear{font-size:12px;min-height:44px;display:flex;align-items:center}.ghl-columns,.ghl-filter-menu{position:relative;font-size:13px}.ghl-columns summary,.ghl-filter-menu summary{cursor:pointer;min-height:44px;padding:12px;border:1px solid #cbd5e1;border-radius:6px}.ghl-columns>div,.ghl-filter-fields{padding:12px;background:#f8fafc;border:1px solid #e2e7ee;border-radius:6px;display:flex;gap:12px;flex-wrap:wrap;max-width:600px}.review-crm .ghl-columns>div{display:grid;grid-template-columns:1fr 1fr}.review-crm .ghl-columns input[type=checkbox]{min-height:20px;width:20px;accent-color:#2563eb}.ghl-columns small{grid-column:1/-1}.ghl-page-size{display:flex;align-items:center;gap:12px;font-size:11px;color:#475569}.review-crm .directory-result-heading{font-size:12px;color:#475569}.review-crm .directory-table-wrap{border:1px solid #e2e7ee;border-radius:6px;overflow-x:auto}.review-crm .directory-table th{background:#f8fafc;color:#475569;font-size:12px;font-weight:600;padding:12px 16px;border-bottom:1px solid #e2e7ee}.review-crm .directory-table td{padding:13px 16px;border-bottom:1px solid #eef2f6;font-size:13px}.review-crm .directory-table .primary-link{font-size:13px;color:#1d4ed8;font-weight:500}.review-crm .directory-table tbody tr:hover{background:#f8fafc}.review-crm .directory-table .contact-avatar{background:#eff6ff;color:#1d4ed8;border:0;width:30px;height:30px}.review-crm .crm-board{gap:12px;background:#f8fafc;padding:12px;border-radius:6px}.review-crm .crm-column{flex-basis:280px;border:0;border-radius:0;background:transparent;padding:0;min-height:240px}.review-crm .crm-column header{border-bottom:2px solid #cbd5e1;padding:4px 8px 14px;margin-bottom:8px}.review-crm .crm-column h2{font-size:14px;margin:0 0 6px}.review-crm .crm-column header small{color:#64748b;font-size:11px}.review-crm .crm-opportunity-card{background:white;border:1px solid #e2e7ee;box-shadow:0 1px 2px #16223b08;border-radius:7px;padding:14px;margin-top:10px}.review-crm .crm-opportunity-card .primary-link{color:#1d4ed8;font-size:13px}.review-crm .crm-opportunity-card p{color:#475569}.review-crm .crm-opportunity-card>small{color:#64748b}.review-crm .review-status{border:1px solid #dbe4ef;background:#f8fafc;border-radius:4px;padding:3px 7px;font-size:11px}.review-crm .crm-panel,.review-crm .review-profile-grid>.card{border-color:#e2e7ee;border-radius:6px;background:white}.review-crm .crm-panel h2,.review-crm .review-profile-grid h2{font-size:16px;border-bottom:1px solid #e2e7ee;padding-bottom:12px}.review-crm .record-review-note{margin-top:16px;color:#475569}.review-crm .crm-workspace-heading h1{font-size:24px}.review-crm a:focus-visible,.review-crm summary:focus-visible{outline:3px solid #2563eb;outline-offset:3px}
@media(max-width:800px){.review-crm #main{padding:16px}.ghl-smart-tabs{gap:18px}.ghl-search{max-width:none;flex-basis:100%;margin-left:0!important}.ghl-toolbar{align-items:flex-start}.ghl-filter-fields{flex-direction:column}.ghl-page-tabs{gap:12px!important}.ghl-current-section{display:none}.review-crm .directory-table tr{border-color:#e2e7ee}.ghl-pipeline-row>label{flex-wrap:wrap}.ghl-page-size{flex-wrap:wrap}}
.review-crm .app-header{min-height:64px;padding:10px 24px;gap:16px}.review-crm .brand-logo{width:130px}.review-crm .brand{gap:10px}.review-crm .review-crm .ghl-toolbar details{margin:0}.review-crm .review-directory{table-layout:auto}.review-crm .review-directory th,.review-crm .review-directory td{width:auto!important;min-width:110px}.review-crm .review-directory th{white-space:nowrap;overflow-wrap:normal}.review-crm .review-directory td:first-child{min-width:210px}.review-crm .review-directory td[data-label=Email]{min-width:200px}.review-crm .review-directory td[data-label=Phone]{min-width:140px}@media(max-width:800px){.review-crm .review-directory td{min-width:0!important}.review-crm .app-header{flex-wrap:wrap}}
.review-crm .review-profile-grid .review-facts{display:block}.review-crm .review-profile-grid .review-facts>div{padding:8px 0;border-bottom:1px solid #eef2f6}.review-crm .review-profile-grid .review-facts dt{font-size:11px;margin-bottom:4px;color:#475569}.review-crm .review-profile-grid .review-facts dd{margin:0;font-size:13px}.review-crm .review-profile-grid .contact-journey .primary-link{font-size:15px;color:#1d4ed8}.review-crm .review-profile-grid .contact-journey p{font-size:13px}
/* Contact reference: fields / wide history / related work. */
.crm-contact-panes{display:grid;grid-template-columns:minmax(240px, .9fr) minmax(320px,1.5fr) minmax(230px,.85fr);gap:12px;align-items:start;background:#f5f7fa;padding:12px;border-radius:8px}.review-crm .crm-contact-panes .card{min-width:0;border:1px solid #e2e7ee;border-radius:7px;padding:16px;margin:0;background:#fff;overflow-wrap:anywhere}.crm-contact-panes h2{font-size:15px!important;margin:0 0 16px;padding-bottom:12px;border-bottom:1px solid #eef2f6}.crm-contact-panes p,.crm-contact-panes dd{font-size:13px;line-height:1.6}.crm-contact-panes dt{font-size:11px;color:#475569}.crm-contact-panes .review-facts{display:block}.crm-contact-panes .review-facts>div{padding:10px 0;border-bottom:1px solid #eef2f6}.crm-contact-panes dd{margin:4px 0 0}.crm-contact-panes .contact-journey{padding:14px 0;border-bottom:1px solid #eef2f6}.crm-contact-panes .primary-link{font-size:14px;color:#1d4ed8}.crm-contact-history{min-height:480px}.crm-contact-related{display:grid;gap:12px}.crm-history-gap{background:#f8fafc;padding:14px;border-radius:6px;color:#475569}.crm-history-empty{padding:40px 12px;text-align:center;color:#475569}.crm-contact-panes summary{font-size:12px;cursor:pointer;min-height:44px;padding:12px 0}.crm-contact-panes h3{font-size:14px}.crm-contact-panes small{font-size:11px}@media(max-width:1150px){.crm-contact-panes{grid-template-columns:minmax(230px,1fr) minmax(300px,1.5fr)}.crm-contact-related{grid-column:1/-1;grid-template-columns:1fr 1fr}.crm-contact-history{min-height:360px}}@media(max-width:760px){.crm-contact-panes,.crm-contact-related{grid-template-columns:minmax(0,1fr)}.crm-contact-related{grid-column:auto}.crm-contact-history{min-height:0}}
.crm-contact-center{display:grid;gap:12px;min-width:0}.crm-inline-fields{margin-top:16px}.crm-inline-fields dd{white-space:pre-wrap;overflow-wrap:anywhere}.crm-associations .card{padding:0!important;border:0!important}.crm-associations p{margin:10px 0}.crm-inline-fields summary{font-weight:600}
.crm-selection{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:12px;background:#eff6ff;border-radius:6px;margin:12px 0;font-size:12px}.crm-selection[hidden],.review-crm tr[hidden],.review-crm .crm-selection-cell[hidden]{display:none!important}.crm-selection label{display:flex;align-items:center;gap:8px}.crm-selection span:last-child{flex-basis:100%;color:#475569}.crm-selection input[type=checkbox],.review-crm .crm-selection-cell input{width:20px;min-height:20px;accent-color:#2563eb}.review-crm .review-directory .crm-selection-cell{min-width:60px;width:60px!important}.review-crm .crm-row-selected{background:#eff6ff}.crm-selection button:disabled{opacity:.5;cursor:default}
.review-crm .review-directory td.crm-selection-cell,.review-crm .review-directory th.crm-selection-cell{min-width:60px!important;max-width:60px}.review-crm .review-directory td[data-label=Name]{min-width:210px}.crm-selection{gap:10px;padding:10px 12px}.crm-selection button{min-height:40px;padding:8px 12px}@media(max-width:800px){.review-crm .review-directory td[data-label=Name]{min-width:0}.review-crm .review-directory td.crm-selection-cell{max-width:none;width:100%!important}.crm-selection span:last-child{line-height:1.5}}

.contact-history-jump{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}.note-author-filter{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin:12px 0}.note-author-filter label{flex:1;min-width:160px}.recovered-note header{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px;margin-bottom:12px}.recovered-note time{font-size:12px;color:#475569}.crm-contact-panes .recovered-note .migration-text{font-size:14px;line-height:1.75;overflow-wrap:anywhere}.crm-contact-panes .recovered-note{border-left:3px solid #08b0c8;padding:16px;margin:12px 0;background:#f8fcfd;border-radius:6px}.crm-contact-history>details{margin-top:16px}#contact-notes,#contact-other-history{scroll-margin-top:24px}

.crm-opportunity-card:target,.crm-opportunity-card:focus-visible{outline:3px solid #08b0c8;outline-offset:2px;background:#effbfc}

.opportunity-view-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:18px 0 8px}.opportunity-view-toolbar label{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:600}.opportunity-view-toolbar select{min-height:44px;min-width:230px;max-width:100%;margin:0}.opportunity-view-toolbar .crm-view-switch{margin:0}.opportunity-view-toolbar .ghl-count{margin-left:auto}.stage-move-button{margin-top:12px;min-height:40px}.crm-column[data-drop-active]{outline:3px solid #08b0c8;background:#e9faf8}.crm-opportunity-card[draggable=true]{cursor:grab}.crm-opportunity-card[data-dragging]{opacity:.6}#stage-move-dialog{border:1px solid #1d2c61;border-radius:12px;padding:24px;max-width:min(520px,calc(100vw - 32px));color:#1d2c61}#stage-move-dialog::backdrop{background:#15234c80}.stage-move-receipt{padding:14px;border-left:4px solid #08b0c8;background:#effbfc;margin:14px 0}.stage-move-receipt p{margin:6px 0}@media(max-width:600px){.opportunity-view-toolbar{align-items:stretch}.opportunity-view-toolbar label{width:100%;display:block}.opportunity-view-toolbar select{width:100%;margin-top:6px}.opportunity-view-toolbar .ghl-count{margin-left:0}.stage-move-button{width:100%}}

.opportunity-main-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:20px;border-bottom:1px solid #e2e7ee;padding:0 0 8px}.opportunity-main-toolbar h1{font-size:22px;margin:0;padding-right:20px;border-right:1px solid #dce3eb}.opportunity-main-toolbar .ghl-smart-tabs{border:0;gap:20px;margin:0;padding-right:20px;border-right:1px solid #dce3eb}.opportunity-main-toolbar .crm-view-switch{margin:0}.opportunity-main-toolbar+.ghl-controls{margin-top:10px}.review-crm .ghl-toolbar>label:has([data-pipeline-switch]){font-weight:600}.review-crm .ghl-toolbar [data-pipeline-switch]{min-width:220px}@media(max-width:760px){.opportunity-main-toolbar{gap:10px}.opportunity-main-toolbar h1{border:0}.opportunity-main-toolbar .ghl-smart-tabs{order:3;flex-basis:100%;padding:0;border:0;gap:20px}.opportunity-main-toolbar .crm-view-switch{margin-left:auto}.review-crm .ghl-toolbar [data-pipeline-switch]{min-width:0;width:100%}}

.review-directory tr:target,.review-directory tr:focus-visible{outline:2px solid #1d2c61;outline-offset:-2px;background:#effbfc}
/* Opportunity query controls share native forms and the approved palette. */
.opportunity-query-panel{border-top:1px solid var(--navy,#1D2D60);padding:14px 0;margin-top:8px}
.opportunity-query-panel>summary{font-weight:600;cursor:pointer;padding:8px 0}
.opportunity-rule{display:grid;grid-template-columns:1fr 2fr 1.4fr 1.8fr auto;gap:12px;margin:14px 0;padding:14px;border:1px solid var(--navy,#1D2D60);border-radius:10px;min-width:0}
.opportunity-rule label,.opportunity-query-panel .button-row label{display:flex;flex-direction:column;min-width:0;gap:6px}
.opportunity-rule select,.opportunity-rule input{width:100%;min-width:0}
.opportunity-column-options{max-height:420px;overflow:auto;margin-top:12px}
.opportunity-column-options>[data-column-option]{display:flex;align-items:center;gap:12px;padding:10px 4px;border-bottom:1px solid var(--cyan,#08B2CF)}
.opportunity-column-options>[hidden]{display:none}
.opportunity-column-options>[data-column-option]>label:first-child{flex:1;overflow-wrap:anywhere}
.opportunity-column-options input[type=checkbox]{width:auto}
.opp-width-narrow{min-width:140px;max-width:220px;overflow-wrap:anywhere}.opp-width-medium{min-width:220px;max-width:360px;overflow-wrap:anywhere}.opp-width-wide{min-width:360px;max-width:600px;overflow-wrap:anywhere}
@media(max-width:900px){.opportunity-rule{grid-template-columns:1fr 1fr}.opportunity-rule label{grid-column:auto}.opportunity-column-options>[data-column-option]{flex-wrap:wrap}.opportunity-column-options>[data-column-option]>label:first-child{flex-basis:100%}}
@media(max-width:520px){.opportunity-rule{grid-template-columns:1fr}.opportunity-query-panel .button-row{align-items:stretch;flex-direction:column}}
.opportunity-filter-chips{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:14px 0}
.opportunity-filter-chips li{border:1px solid #08B2CF;border-radius:8px;padding:6px 10px;overflow-wrap:anywhere}
@media(max-width:760px){.review-directory .opp-width-narrow,.review-directory .opp-width-medium,.review-directory .opp-width-wide{min-width:0;max-width:none}}
/* Keep advanced tools discoverable without pushing the work below the fold. */
.review-crm .ghl-controls details.opportunity-query-panel{display:inline-block;vertical-align:top;border:1px solid #cbd5e1;border-radius:7px;padding:0;margin:6px 8px 10px 0;max-width:100%}
.review-crm .ghl-controls details.opportunity-query-panel>summary{padding:10px 14px;font-size:13px;min-height:44px;box-sizing:border-box}
.review-crm .ghl-controls details.opportunity-query-panel[open]{display:block;width:100%;padding:12px;box-sizing:border-box;background:#f8fafc}
.review-crm .ghl-controls .button-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:8px 0 12px}
.review-crm .ghl-controls .opportunity-rule{grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;background:white}
.review-crm .ghl-controls .opportunity-rule label{display:flex;flex-direction:column;align-items:stretch}
.review-crm .ghl-controls .ghl-sort{max-width:230px}
@media(max-width:760px){.review-crm .ghl-controls .opportunity-rule{grid-template-columns:minmax(0,1fr)}.review-crm .ghl-controls .button-row{align-items:stretch}.review-crm .ghl-controls details.opportunity-query-panel{margin-right:4px}.review-crm .ghl-controls .opportunity-query-panel select{max-width:100%}}
@media(max-width:760px){.review-crm .ghl-toolbar>label{width:100%;min-width:0}.review-crm .ghl-toolbar>label>select{flex:1;min-width:0!important;max-width:100%;width:0}.review-crm .ghl-toolbar>label:has([name=sort]){align-items:center}.review-crm .ghl-toolbar>label:has([name=sort])>select{max-width:calc(100% - 60px)}}

/* Give native sort selections their own bounded flex item: long source labels
   must never paint over neighboring controls. Applies only to Opportunities. */
#opportunity-filters:has([data-pipeline-switch]) .ghl-toolbar{gap:12px;align-items:center}
#opportunity-filters:has([data-pipeline-switch]) .ghl-toolbar>label{flex:0 1 auto;min-width:0;white-space:nowrap}
#opportunity-filters:has([data-pipeline-switch]) .ghl-toolbar>.ghl-sort{flex:0 1 360px;max-width:100%}
#opportunity-filters:has([data-pipeline-switch]) .ghl-sort select{width:280px;min-width:0;max-width:calc(100% - 60px);flex:1;overflow:hidden;text-overflow:ellipsis}
#opportunity-filters:has([data-pipeline-switch]) .ghl-toolbar>.ghl-filter-menu{flex:0 0 auto}
#opportunity-filters:has([data-pipeline-switch]) .ghl-toolbar>.ghl-search{flex:1 1 240px;min-width:180px;max-width:100%}
#opportunity-filters .opportunity-view-secondary{font-size:13px}
@media(max-width:760px){#opportunity-filters:has([data-pipeline-switch]) .ghl-toolbar>label{flex:1 1 100%;width:100%}#opportunity-filters:has([data-pipeline-switch]) .ghl-toolbar>.ghl-search{min-width:0}#opportunity-filters:has([data-pipeline-switch]) .ghl-sort select{width:0}}
.opportunity-view-state{padding:10px 14px;border-left:3px solid var(--teal);background:#f4faf9;font-size:13px;margin:12px 0 0}.opportunity-view-state[data-pending=true]{border-color:var(--blue);background:#eef6ff;font-weight:600}
#opportunity-filters [hidden]{display:none!important}
#opportunity-filters .opportunity-sort-editor{display:grid;grid-template-columns:minmax(150px,1fr) minmax(190px,1.4fr) minmax(130px,.8fr);gap:10px;flex:1 1 620px;min-width:0;padding:10px;background:#f8fafc;border-radius:7px}
.review-crm #opportunity-filters .opportunity-sort-editor label{display:flex;flex-direction:column;align-items:stretch;gap:6px;min-width:0}
#opportunity-filters .opportunity-sort-editor select,#opportunity-filters .opportunity-sort-editor input{width:100%;min-width:0;box-sizing:border-box}
#opportunity-filters .column-selected-toggle input{width:20px;min-height:20px}
@media(max-width:760px){#opportunity-filters .opportunity-sort-editor{grid-template-columns:minmax(0,1fr);flex-basis:100%}}
.opportunity-leave-dialog{border:1px solid var(--navy);border-radius:12px;padding:24px;color:var(--navy);max-width:min(480px,calc(100vw - 40px))}.opportunity-leave-dialog::backdrop{background:#15234c80}.opportunity-leave-dialog .button-row{display:flex;flex-wrap:wrap;gap:12px}.opportunity-leave-dialog h2{font-size:22px}
/* Cohesive Opportunities surface: approved White/Navy/Blue/Cyan/Teal only. */
.opportunity-polished .opportunity-main-toolbar{border-bottom:1px solid var(--navy);padding-bottom:12px;gap:20px}
.opportunity-polished .opportunity-main-toolbar h1{font-size:26px;letter-spacing:-.035em;border:0}
.opportunity-polished .ghl-smart-tabs a[aria-current]{color:var(--navy);border-color:var(--teal)}
.opportunity-polished .crm-view-switch a{border-color:var(--navy);background:white;color:var(--navy)}
.opportunity-polished .crm-view-switch a[aria-current]{background:var(--navy);color:white}
.opportunity-polished .opportunity-compact-controls{margin:16px 0 0;padding:0}
.opportunity-browse-toolbar{display:flex;align-items:end;flex-wrap:wrap;gap:10px;position:relative}
.review-crm .opportunity-browse-toolbar>label{display:flex;flex-direction:column;align-items:stretch;gap:6px;font-weight:500}
.opportunity-browse-toolbar .opportunity-pipeline{flex:0 1 240px;min-width:0}
.opportunity-browse-toolbar .opportunity-search{flex:1 1 220px;min-width:160px}
.review-crm .opportunity-browse-toolbar input,.review-crm .opportunity-browse-toolbar select{width:100%;box-sizing:border-box;min-height:44px;border-color:var(--navy);background:white;color:var(--navy)}
.review-crm .opportunity-compact-controls details.opportunity-query-panel{margin:0;border-color:var(--navy);background:white;color:var(--navy)}
.review-crm .opportunity-compact-controls details.opportunity-query-panel>summary{padding:11px 14px;min-height:44px}
.review-crm .opportunity-browse-toolbar>details[open]{width:100%;order:10;box-sizing:border-box;padding:16px;border-top:3px solid var(--cyan)}
.review-crm .opportunity-browse-toolbar>details[open]>summary{padding:0 0 12px}
.opportunity-basic-fields{display:flex;gap:16px;flex-wrap:wrap;margin:0 0 16px}
.opportunity-basic-fields label{flex:1 1 200px}
.opportunity-polished .opportunity-view-state{display:inline-block;margin:10px 12px 4px 0;padding:0;border:0;background:white;font-size:12px;color:var(--navy)}
.opportunity-polished .opportunity-view-state[data-pending=true]{padding:8px 12px;border-left:3px solid var(--blue);font-weight:600}
.opportunity-view-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:12px}
.opportunity-view-actions[hidden]{display:none}
.opportunity-polished .ghl-clear{font-size:12px}
.opportunity-polished .opportunity-sort-editor{background:white!important;padding:0!important}
.opportunity-polished .directory-result-heading{align-items:center;margin:12px 0}
.opportunity-polished .directory-result-heading p{font-size:14px;margin:0}
.opportunity-polished .directory-result-heading span{font-size:12px}
.opportunity-polished .directory-table-wrap{border:1px solid var(--navy);border-radius:10px}
.opportunity-polished .directory-table th{background:white;color:var(--navy);padding:14px 16px;border-bottom:2px solid var(--cyan);font-size:12px}
.opportunity-polished .directory-table td{padding:16px;font-size:14px;background:white;color:var(--navy)}
.opportunity-polished .directory-table .primary-link{font-weight:600;font-size:15px;color:var(--navy)}
.opportunity-polished .directory-table .contact-avatar{background:var(--navy);color:white}
.opportunity-polished .review-status{background:white;border:1px solid var(--navy);color:var(--navy);font-size:12px;padding:4px 9px;border-radius:20px}
.opportunity-polished .crm-column{border:1px solid var(--navy);border-top:3px solid var(--cyan);border-radius:10px;background:white;padding:14px}
.opportunity-polished .crm-column:nth-child(3n+2){border-top-color:var(--teal)}
.opportunity-polished .crm-column:nth-child(3n){border-top-color:var(--blue)}
.opportunity-polished .crm-column h2{font-size:17px;letter-spacing:-.02em;margin:0 0 8px}
.opportunity-polished .crm-opportunity-card{padding:16px;border:1px solid var(--navy);border-radius:8px;background:white}
.opportunity-polished .crm-opportunity-card .primary-link{font-size:15px;font-weight:600;color:var(--navy)}
.opportunity-polished .crm-opportunity-card p{font-size:13px;margin:10px 0 14px}
.opportunity-polished .crm-board{gap:16px}
.opportunity-results-footer{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px;margin:16px 0;font-size:12px}
.opportunity-results-footer label{display:flex;align-items:center;gap:8px}
.opportunity-results-footer select{min-height:44px;margin:0;width:auto}
@media(max-width:760px){.opportunity-browse-toolbar .opportunity-pipeline{flex:1 1 100%}.opportunity-browse-toolbar .opportunity-search{flex:1 1 100%}.review-crm .opportunity-browse-toolbar>details[open]{padding:12px}.opportunity-polished .opportunity-main-toolbar h1{font-size:24px}.opportunity-results-footer{justify-content:flex-start}}
@media(max-width:760px){.opportunity-polished .directory-table-wrap{border:0;border-radius:0}.opportunity-polished .review-directory tr{border:1px solid var(--navy);border-radius:10px;box-shadow:none;margin:0 0 12px}.opportunity-polished .review-directory td:last-child{border-bottom:0}.opportunity-polished .opportunity-compact-controls{margin-top:12px}.opportunity-polished>.field-help{margin:6px 0}}
.opportunity-polished .crm-board{background:white}

.opportunity-polished .opportunity-view-error{border:1px solid var(--navy);border-left:4px solid var(--blue);padding:12px 16px;margin:12px 0;background:white;color:var(--navy);font-size:14px;line-height:1.6;overflow-wrap:anywhere}.opportunity-view-error:focus{outline:3px solid var(--cyan);outline-offset:3px}
/* Opportunity scanability: clear hierarchy without nested board boxes. */
.opportunity-polished .crm-column{border:0;border-top:3px solid var(--cyan);border-radius:0;padding:14px 0;flex-basis:282px}
.opportunity-polished .crm-column>header{padding:0 8px 16px;margin:0;border:0}
.opportunity-polished .crm-column h2{display:flex;align-items:center;justify-content:space-between;gap:12px;line-height:1.4}
.opportunity-polished .crm-column .opportunity-stage-count{display:inline-flex;align-items:center;justify-content:center;min-width:28px;min-height:28px;font-size:12px;font-weight:600;border:1px solid var(--navy);border-radius:50%;padding:2px;box-sizing:border-box}
.opportunity-polished .crm-column header small{font-size:12px;line-height:1.6}
.opportunity-polished .crm-opportunity-card{padding:18px;border-radius:12px;margin:10px 0 0}
.opportunity-polished .crm-opportunity-card .primary-link{font-size:16px;line-height:1.5;letter-spacing:-.015em}
.opportunity-polished .crm-opportunity-card:hover{border-color:var(--cyan)}
.opportunity-polished .crm-opportunity-card:focus-within{outline:2px solid var(--navy);outline-offset:3px}
.opportunity-polished .opportunity-card-owner{display:flex;flex-direction:column;gap:3px;margin:14px 0 16px!important;font-size:13px!important;line-height:1.5}
.opportunity-card-owner>span{font-size:11px;font-weight:500}
.opportunity-polished .review-status[data-opportunity-status=open]{border-color:var(--cyan);color:var(--navy);background:white}
.opportunity-polished .review-status[data-opportunity-status=won]{border-color:var(--teal);background:var(--teal);color:var(--navy);font-weight:600}
.opportunity-polished .review-status[data-opportunity-status=lost]{border-style:dashed;background:white;color:var(--navy)}
.opportunity-polished .review-status[data-opportunity-status=abandoned]{background:var(--navy);color:white;border-color:var(--navy)}
.opportunity-polished .review-directory .primary-link:focus-visible{outline:2px solid var(--navy);outline-offset:4px;border-radius:2px}
.opportunity-polished .empty-state{border:0;border-left:3px solid var(--cyan);padding:20px 24px;margin:20px 0 28px;text-align:left}
.opportunity-polished .empty-state h2{font-size:24px;letter-spacing:-.025em;margin:0 0 12px}
.opportunity-polished .empty-state p{max-width:620px;font-size:14px;line-height:1.7;margin:0 0 20px}
@media(max-width:760px){.opportunity-polished .crm-column{flex-basis:260px}.opportunity-polished .empty-state{padding:16px}.opportunity-polished .empty-state h2{font-size:22px}}
/* Readability pass: meaningful metadata stays readable without truncation. */
.opportunity-polished .crm-column{flex-basis:310px;min-width:0}
.opportunity-polished .crm-column h2{font-size:18px;line-height:1.45;letter-spacing:0}
.opportunity-polished .crm-column .opportunity-stage-count{min-width:32px;min-height:32px;font-size:13px;border-radius:999px;flex-shrink:0}
.opportunity-polished .crm-column header small{font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.opportunity-polished .crm-opportunity-card .primary-link{font-size:17px;line-height:1.5;letter-spacing:0;overflow-wrap:anywhere;word-break:normal}
.opportunity-polished .opportunity-card-owner{font-size:14px!important;line-height:1.6;gap:4px}
.opportunity-polished .opportunity-card-owner>span{font-size:12px;line-height:1.5;font-weight:600}
.opportunity-polished .review-status{display:inline-flex;align-items:center;max-width:100%;box-sizing:border-box;min-height:29px;padding:4px 10px;font-size:13px;line-height:1.5;font-weight:600;overflow-wrap:anywhere}
@media(max-width:760px){.opportunity-polished .crm-column{flex-basis:min(290px,calc(100vw - 48px))}.opportunity-polished .crm-opportunity-card{padding:16px}}
.opportunity-polished .opportunity-card-owner{font-weight:500}
/* Stage navigation remains read-only and keyboard accessible on every screen. */
.opportunity-board-navigation{display:flex;align-items:center;flex-wrap:wrap;gap:10px 20px;margin:12px 0 16px;padding:12px 0;border-top:1px solid var(--navy);border-bottom:1px solid var(--navy);background:white;color:var(--navy)}
.opportunity-board-navigation[hidden]{display:none}
.opportunity-board-navigation label{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:13px;font-weight:600}
.opportunity-board-navigation select{min-height:44px;max-width:100%;min-width:220px;margin:0;border-color:var(--navy);color:var(--navy);background:white}
.opportunity-board-navigation .field-help{margin:0;font-size:12px}
.opportunity-polished .crm-board{scroll-snap-type:x proximity;scroll-padding-inline:12px}
.opportunity-polished .crm-column{scroll-snap-align:start}
.opportunity-polished [data-board-stage-title]{scroll-margin-top:16px;border-radius:4px}
.opportunity-polished [data-board-stage-title]:focus{outline:2px solid var(--navy);outline-offset:5px}
@media(max-width:760px){.opportunity-board-navigation{position:sticky;top:0;z-index:3;gap:8px;margin:10px 0;padding:10px 0}.opportunity-board-navigation label{width:100%;font-size:12px;flex-wrap:nowrap}.opportunity-board-navigation select{flex:1;min-width:0;width:0}.opportunity-board-navigation .field-help{font-size:12px}}
/* Remove inherited form-label margins from the read-only stage navigator. */
.opportunity-board-navigation label{margin:0}

/* Opportunity workspace: saved context, explicit edits, then supporting records. */
.review-crm .opportunity-workspace{max-width:1440px;margin:0 auto;color:var(--navy)}
.opportunity-workspace .review-back{display:inline-flex;align-items:center;min-height:44px;font-size:14px;margin-bottom:12px}
.opportunity-workspace-header{border-bottom:3px solid var(--cyan);padding:8px 0 24px;margin-bottom:24px;overflow-wrap:anywhere}
.review-crm .opportunity-workspace h1{font-size:clamp(25px,2.4vw,34px);line-height:1.35;font-weight:600;letter-spacing:0;max-width:1000px;margin:0 0 24px}
.review-crm .opportunity-workspace .eyebrow{font-size:12px;line-height:1.6;font-weight:600;margin:0 0 10px}
.opportunity-workspace-summary{display:grid;grid-template-columns:1.25fr 1.25fr 1fr auto;gap:20px;margin:0}
.opportunity-workspace-summary>div,.opportunity-contact-fields>div{min-width:0}
.opportunity-workspace dt{font-size:12px;font-weight:600;line-height:1.6;margin:0 0 6px}
.opportunity-workspace dd{font-size:15px;font-weight:500;line-height:1.6;margin:0;overflow-wrap:anywhere}
.opportunity-workspace-layout{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(0,1.7fr);grid-template-areas:'contact activity' 'history history';gap:24px;align-items:start}
.opportunity-workspace-contact{grid-area:contact}.opportunity-workspace-details{grid-area:details}.opportunity-workspace-activity{grid-area:activity}.opportunity-workspace-history{grid-area:history}
.review-crm .opportunity-workspace .crm-panel{padding:24px;border:1px solid var(--navy);border-radius:12px;background:white;box-shadow:none;min-width:0}
.review-crm .opportunity-workspace .crm-panel h2{font-size:18px;font-weight:600;line-height:1.45;margin:0 0 20px;padding:0;border:0}
.opportunity-section-heading{display:flex;align-items:start;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:20px}
.review-crm .opportunity-section-heading h2{margin:0!important}
.opportunity-access-label{font-size:12px;line-height:1.6;border-left:3px solid var(--teal);padding-left:10px}
.review-crm .opportunity-workspace p{font-size:14px;line-height:1.75;margin:0 0 14px}
.review-crm .opportunity-workspace .field-help{font-size:13px;line-height:1.7}
.opportunity-workspace .primary-link{display:inline-block;font-size:17px;line-height:1.55;font-weight:600;color:var(--navy);margin-bottom:20px;overflow-wrap:anywhere}
.opportunity-contact-fields{display:grid;gap:16px;margin:0}
.opportunity-linked-person+.opportunity-linked-person{border-top:1px solid var(--navy);padding-top:20px;margin-top:24px}
.opportunity-workspace .opportunity-edit-form{display:grid;grid-template-columns:1fr 1fr;gap:16px 20px;margin:0}
.opportunity-workspace .opportunity-edit-form>label{margin:0;font-size:13px;font-weight:600;min-width:0}
.opportunity-workspace .opportunity-edit-form select{margin:8px 0 0;width:100%;min-height:48px;border:1px solid var(--navy);border-radius:8px;background:white;color:var(--navy);font-size:15px}
.opportunity-edit-form>[data-edit-state],.opportunity-edit-form>.field-help,.opportunity-edit-form>.button-row{grid-column:1/-1}
.opportunity-workspace .opportunity-edit-form>[data-edit-state]{font-size:13px;font-weight:600;margin:0}
.opportunity-workspace .opportunity-edit-form>.field-help{margin:0;max-width:65ch}
.opportunity-workspace .button-row{display:flex;flex-wrap:wrap;gap:12px;margin:0}
.opportunity-workspace button{min-height:44px;padding:10px 22px;font-size:14px}
.opportunity-workspace .crm-review-callout{border-left:3px solid var(--cyan);padding:0 0 0 16px;margin:24px 0}
.opportunity-workspace .crm-review-callout h3{font-size:15px;font-weight:600;line-height:1.6;margin:0 0 8px}
.opportunity-workspace .crm-review-callout p{margin:0}
.opportunity-workspace details{margin:0;border-top:1px solid var(--navy);padding:0;background:white}
.opportunity-workspace summary{cursor:pointer;font-size:14px;font-weight:600;line-height:1.6;min-height:48px;padding:14px 0;overflow-wrap:anywhere;box-sizing:border-box}
.opportunity-workspace summary>span{font-size:12px;font-weight:500;margin-left:10px;white-space:nowrap}
.opportunity-workspace details[open]>summary{margin-bottom:8px}
.opportunity-workspace details a{display:inline-flex;align-items:center;min-height:44px;font-size:14px}
.opportunity-workspace .contact-journey{padding:16px 0;border-top:1px solid var(--navy)}
.opportunity-workspace .contact-journey small{font-size:12px;line-height:1.7;display:block}
.opportunity-workspace .review-status{display:inline-flex;align-items:center;min-height:30px;max-width:100%;box-sizing:border-box;padding:4px 12px;border-radius:999px;font-size:13px;font-weight:600;border:1px solid var(--navy);color:var(--navy);background:white}
.opportunity-workspace .review-status[data-opportunity-status=open]{border-color:var(--cyan)}
.opportunity-workspace .review-status[data-opportunity-status=won]{background:var(--teal);border-color:var(--teal)}
.opportunity-workspace .review-status[data-opportunity-status=lost]{border-style:dashed}
.opportunity-workspace .review-status[data-opportunity-status=abandoned]{background:var(--navy);color:white}
.review-crm .opportunity-workspace a:focus-visible,.review-crm .opportunity-workspace summary:focus-visible,.review-crm .opportunity-workspace select:focus-visible,.review-crm .opportunity-workspace button:focus-visible{outline:2px solid var(--navy);outline-offset:4px}
@media(max-width:1000px){.opportunity-workspace-summary{grid-template-columns:1fr 1fr}.opportunity-workspace-layout{grid-template-columns:minmax(210px,.85fr) minmax(0,1.4fr);gap:16px}.review-crm .opportunity-workspace .crm-panel{padding:20px}.opportunity-workspace .opportunity-edit-form{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){.opportunity-workspace-layout{grid-template-columns:minmax(0,1fr);grid-template-areas:'contact' 'activity' 'history';gap:16px}.opportunity-workspace-summary{gap:20px 16px}.opportunity-workspace-summary>div:first-child,.opportunity-workspace-summary>div:nth-child(2){grid-column:1/-1}.opportunity-workspace-header{padding-bottom:20px;margin-bottom:20px}.review-crm .opportunity-workspace h1{font-size:26px;margin-bottom:20px}.opportunity-workspace .review-back{margin-bottom:8px}.opportunity-workspace dd{font-size:15px}.opportunity-workspace .opportunity-edit-form{gap:16px}.opportunity-workspace .opportunity-edit-form select{font-size:16px}.opportunity-section-heading{gap:8px}.opportunity-workspace .opportunity-access-label{flex-basis:100%}}

/* Expanded toolbar tools: bounded native controls, never full-width checkboxes. */
.review-crm #opportunity-filters .opportunity-browse-toolbar>details[open]{max-width:860px;background:white;border-top-color:var(--cyan)}
#opportunity-filters [data-opportunity-columns]>.field-help{max-width:65ch;font-size:13px;line-height:1.6;margin:8px 0 16px}
.review-crm #opportunity-filters [data-opportunity-columns]>label{display:flex;align-items:center;gap:12px;margin:10px 0;font-size:13px;min-height:44px}
#opportunity-filters [data-opportunity-columns]>label:not(.column-selected-toggle){flex-wrap:wrap}
#opportunity-filters [data-opportunity-columns]>label>input[type=search]{flex:1 1 200px;min-width:0;max-width:100%;margin:0;min-height:44px}
#opportunity-filters [data-opportunity-columns] input[type=checkbox]{display:inline-block;flex:0 0 20px;width:20px;height:20px;min-width:20px;min-height:20px;max-width:20px;max-height:20px;padding:0;margin:0;accent-color:var(--navy)}
#opportunity-filters .opportunity-column-options{max-height:280px;overflow:auto;scrollbar-gutter:stable;margin:12px 0;overscroll-behavior:contain}
#opportunity-filters .opportunity-column-options>[data-column-option]{display:grid;grid-template-columns:minmax(0,1fr) auto 44px 44px;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--navy);min-height:48px}
#opportunity-filters .opportunity-column-options>[data-column-option][hidden]{display:none}
.review-crm #opportunity-filters .opportunity-column-options>[data-column-option]>label:first-child{display:flex;align-items:center;gap:12px;min-width:0;min-height:44px;margin:0;font-size:14px;line-height:1.5;grid-column:1;flex-basis:auto}
#opportunity-filters [data-column-option]>label:first-child>span{min-width:0;overflow-wrap:anywhere}
.review-crm #opportunity-filters [data-column-width]{display:flex;align-items:center;gap:8px;font-size:12px;margin:0;grid-column:2}
.review-crm #opportunity-filters [data-column-width]>select{width:108px;min-width:0;min-height:44px;font-size:13px;padding:8px;margin:0}
#opportunity-filters [data-column-up]{grid-column:3}#opportunity-filters [data-column-down]{grid-column:4}
#opportunity-filters [data-column-up],#opportunity-filters [data-column-down]{width:44px;min-width:44px;min-height:44px;padding:8px;margin:0;line-height:1}
@media(max-width:600px){#opportunity-filters .opportunity-column-options>[data-column-option]{grid-template-columns:minmax(0,1fr) 44px 44px;gap:8px}#opportunity-filters .opportunity-column-options>[data-column-option]>label:first-child{grid-column:1/-1}#opportunity-filters [data-column-width]{grid-column:1}#opportunity-filters [data-column-up]{grid-column:2}#opportunity-filters [data-column-down]{grid-column:3}.review-crm #opportunity-filters [data-column-width]>select{width:100px}#opportunity-filters .opportunity-column-options{max-height:300px}}
@media(max-width:600px){.review-crm #opportunity-filters .opportunity-column-options>[data-column-option]>label:first-child{grid-column:1/-1}.review-crm #opportunity-filters [data-column-width]{grid-column:1;justify-content:flex-start}.review-crm #opportunity-filters [data-column-width]>select{flex:0 0 100px;width:100px;max-width:100%}}
/* Compact column manager: keep the Board in place, reveal sizing on demand. */
.review-crm #opportunity-filters .opportunity-browse-toolbar>[data-opportunity-columns][open]{position:static;display:inline-block;width:auto;max-width:100%;order:0;padding:0;border:1px solid var(--navy)}
.review-crm #opportunity-filters .opportunity-browse-toolbar>[data-opportunity-columns][open]>summary{padding:11px 14px}
.opportunity-column-manager{background:white;color:var(--navy);padding:20px;min-width:0}
.opportunity-browse-toolbar .opportunity-column-manager{position:absolute;right:0;top:calc(100% + 8px);z-index:8;width:min(560px,calc(100vw - 48px));box-sizing:border-box;border:1px solid var(--navy);border-top:3px solid var(--cyan);border-radius:12px;max-height:calc(100dvh - 120px);overflow:auto}
.column-manager-heading{display:flex;justify-content:space-between;align-items:start;gap:16px;margin-bottom:16px}
.review-crm .column-manager-heading h2{font-size:20px;line-height:1.4;letter-spacing:0;margin:0 0 6px;font-weight:600}
.column-manager-heading p{font-size:13px;line-height:1.6;margin:0;max-width:32ch}
#opportunity-filters [data-close-columns]{min-width:44px;min-height:44px;padding:8px;flex-shrink:0}
#opportunity-filters .opportunity-column-manager>.field-help{font-size:12px;line-height:1.6;margin:0 0 14px}
.review-crm #opportunity-filters .opportunity-column-manager>label{display:flex;align-items:center;gap:10px;margin:8px 0;min-height:44px;font-size:13px}
.review-crm #opportunity-filters .opportunity-column-manager>label:has([data-column-search]){display:block}
#opportunity-filters .opportunity-column-manager [data-column-search]{width:100%;min-height:44px;margin:6px 0 0}
#opportunity-filters .opportunity-column-manager .opportunity-column-options{max-height:270px;margin:14px 0;scrollbar-gutter:stable}
#opportunity-filters .opportunity-column-manager [data-column-option]{grid-template-columns:minmax(0,1fr) 64px 40px 40px;gap:8px;border-bottom:0;border-radius:6px;padding:4px 0;min-height:48px}
#opportunity-filters .opportunity-column-manager [data-column-option]:has(input:checked){border-left:3px solid var(--teal);padding-left:9px}
.review-crm #opportunity-filters .opportunity-column-manager [data-column-option]>label:first-child{grid-column:1;font-size:13px;min-height:44px;gap:10px}
#opportunity-filters .column-size-options{grid-column:2;min-width:0;margin:0;padding:0;border:0;background:white}
#opportunity-filters .column-size-options>summary{font-size:12px;min-height:44px;align-content:center;cursor:pointer;padding:10px 4px}
#opportunity-filters .column-size-options[open]{grid-column:1/-1;grid-row:2;padding:0 0 10px 30px}
#opportunity-filters .column-size-options[open]>summary{padding:6px 0;min-height:32px}
#opportunity-filters .opportunity-column-manager [data-column-up]{grid-column:3;grid-row:1}#opportunity-filters .opportunity-column-manager [data-column-down]{grid-column:4;grid-row:1}
#opportunity-filters .opportunity-column-manager [data-column-up],#opportunity-filters .opportunity-column-manager [data-column-down]{min-width:40px;width:40px;min-height:44px;border:0;font-size:17px}
.column-manager-footer{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding-top:16px;border-top:1px solid var(--navy)}
.column-manager-footer>button{min-height:44px}.column-manager-footer .field-help{font-size:12px}
#opportunity-filters .opportunity-column-manager .opportunity-view-secondary{margin:8px 0 0;font-size:12px}
@media(max-width:600px){.opportunity-browse-toolbar .opportunity-column-manager{position:fixed;left:12px;right:12px;bottom:12px;top:auto;width:auto;max-height:calc(100dvh - 24px);padding:16px}.review-crm #opportunity-filters .opportunity-column-manager [data-column-option]>label:first-child{grid-column:1}.review-crm #opportunity-filters .opportunity-column-manager [data-column-width]{grid-column:auto}#opportunity-filters .opportunity-column-manager [data-column-option]{grid-template-columns:minmax(0,1fr) 54px 36px 36px;gap:4px}#opportunity-filters .opportunity-column-manager [data-column-up],#opportunity-filters .opportunity-column-manager [data-column-down]{min-width:36px;width:36px}}
.opportunity-browse-toolbar .opportunity-column-manager{position:fixed;top:96px;bottom:16px;right:20px;width:min(480px,calc(100vw - 48px));max-height:calc(100dvh - 112px);display:flex;flex-direction:column;overflow:auto}
.opportunity-column-manager>*{flex-shrink:0}
#opportunity-filters .opportunity-column-manager .opportunity-column-options{flex:1 1 auto;min-height:100px;max-height:none;overflow:auto;margin:12px 0}
#opportunity-filters [data-column-feedback]:empty{display:none}
.column-manager-bottom{background:white;margin-top:auto;flex-shrink:0}
.column-manager-bottom .column-manager-footer{padding-top:12px}
.review-crm #opportunity-filters .opportunity-column-manager .column-manager-heading{margin-bottom:10px}
@media(max-width:600px){.opportunity-browse-toolbar .opportunity-column-manager{left:12px;right:12px;bottom:12px;top:12px;width:auto;max-height:calc(100dvh - 24px)}#opportunity-filters .opportunity-column-manager [data-column-up],#opportunity-filters .opportunity-column-manager [data-column-down]{width:40px;min-width:40px}#opportunity-filters .opportunity-column-manager [data-column-option]{grid-template-columns:minmax(0,1fr) 48px 40px 40px}}
#opportunity-filters [data-column-option]:not(:has(input:checked)) .column-size-options,#opportunity-filters [data-column-option]:not(:has(input:checked)) [data-column-up],#opportunity-filters [data-column-option]:not(:has(input:checked)) [data-column-down]{visibility:hidden}
.column-search-empty{padding:18px 16px;border-left:3px solid var(--cyan);margin:16px 0;background:white;font-size:14px;line-height:1.6}
.column-search-empty p{margin:0 0 12px}.column-search-empty button{min-height:44px}
.opportunity-column-manager:has([data-column-empty]:not([hidden])) .opportunity-column-options{display:none!important}
/* Wide Boards already expose stage columns through horizontal scrolling. */
@media(min-width:761px){.opportunity-board-navigation{display:none}}
/* Owner review navigation: stable destinations, calmer hierarchy and less repetition. */
.review-crm .workspace-sidebar{padding:22px 12px;background:white}
.review-crm .workspace-nav{gap:4px}
.review-crm .workspace-nav .nav-group-label{border:0;padding:20px 12px 8px;font-size:11px;line-height:1.6;letter-spacing:.03em;font-weight:600;color:var(--navy)}
.review-crm .workspace-nav .nav-group-label:first-child{padding-top:0}
.review-crm .workspace-nav .nav-group-label:not(:first-child){margin-top:12px;border-top:1px solid var(--navy)}
.review-crm .workspace-nav>a{font-size:14px;font-weight:500;line-height:1.5;min-height:44px;box-sizing:border-box;padding:10px 12px;border-radius:8px;overflow-wrap:anywhere}
.review-crm .workspace-nav>a[aria-current=page]{background:var(--navy);color:white;border-left:3px solid var(--teal);padding-left:9px;font-weight:600}
.review-crm .workspace-nav>a:focus-visible{outline:2px solid var(--navy);outline-offset:3px}
.review-crm .workspace-nav>a[aria-current=page]:focus-visible{outline-color:var(--cyan)}
.review-crm .sidebar-context{display:none}
.review-crm .sidebar-promise{padding:20px 12px 0}
.review-crm .sidebar-promise p{display:none}
.review-crm .sidebar-promise span{font-size:11px;line-height:1.6}
@media(max-width:1000px){.review-crm .workspace-sidebar{padding:10px 16px}.review-crm .workspace-menu-toggle{width:100%;min-height:44px;font-size:14px;border-radius:8px}.review-crm .workspace-nav{gap:4px 8px}.review-crm .workspace-nav .nav-group-label{grid-column:1/-1;padding:16px 10px 6px}.review-crm .workspace-nav .nav-group-label:first-child{padding-top:0}.review-crm .workspace-nav>a{padding:10px;font-size:14px}.review-crm .sidebar-promise{display:none}}
/* Functional status colors approved by the Owner; confined to status UI.
   Brand colors continue to define the shell and primary navigation. */
.review-crm{--status-open-ink:#1D4ED8;--status-open-fill:#EFF6FF;--status-won-ink:#166534;--status-won-fill:#F0FDF4;--status-lost-ink:#B91C1C;--status-lost-fill:#FEF2F2;--status-abandoned-ink:#475569;--status-abandoned-fill:#F1F5F9}
.opportunity-polished .opportunity-main-toolbar .ghl-smart-tabs{gap:8px;overflow-x:auto;padding:4px 4px 6px;border:0}
.opportunity-polished .ghl-smart-tabs a[data-status-filter]{min-height:44px;box-sizing:border-box;align-items:center;padding:10px 13px;border:1px solid var(--navy);border-radius:8px;font-size:13px;font-weight:600;line-height:1.5;color:var(--navy);background:white;text-decoration:none}
.opportunity-polished .ghl-smart-tabs a[data-status-filter=open],.review-crm .review-status[data-opportunity-status=open]{background:var(--status-open-fill);color:var(--status-open-ink);border:1px solid var(--status-open-ink)}
.opportunity-polished .ghl-smart-tabs a[data-status-filter=won],.review-crm .review-status[data-opportunity-status=won]{background:var(--status-won-fill);color:var(--status-won-ink);border:1px solid var(--status-won-ink)}
.opportunity-polished .ghl-smart-tabs a[data-status-filter=lost],.review-crm .review-status[data-opportunity-status=lost]{background:var(--status-lost-fill);color:var(--status-lost-ink);border:1px solid var(--status-lost-ink)}
.opportunity-polished .ghl-smart-tabs a[data-status-filter=abandoned],.review-crm .review-status[data-opportunity-status=abandoned]{background:var(--status-abandoned-fill);color:var(--status-abandoned-ink);border:1px dashed var(--status-abandoned-ink)}
.opportunity-polished .ghl-smart-tabs a[data-status-filter=nurture],.review-crm .review-status[data-opportunity-status=nurture]{background:#fff2d5;color:#704200;border:1px solid #855100}
.opportunity-polished .ghl-smart-tabs a[data-status-filter][aria-current=page]{outline:2px solid var(--navy);outline-offset:2px;text-decoration:underline;text-underline-offset:4px;font-weight:700}
.opportunity-polished .ghl-smart-tabs a[data-status-filter=all][aria-current=page]{background:var(--navy);color:white}
@media(max-width:760px){.opportunity-polished .opportunity-main-toolbar .ghl-smart-tabs{gap:6px}.opportunity-polished .ghl-smart-tabs a[data-status-filter]{padding:10px;font-size:12px;flex-shrink:0}}
/* Board navigation is horizontal on every device; retain internal return helpers. */
.opportunity-board-navigation{display:none}
.opportunity-edit-help{margin:8px 0;border:0;font-size:12px}
.opportunity-edit-help>summary{min-height:32px;cursor:pointer;align-content:center;font-size:12px}
.opportunity-edit-help p{max-width:65ch;font-size:13px;line-height:1.6;margin:8px 0 12px}
@media(max-width:760px){
 .opportunity-polished .opportunity-main-toolbar{gap:8px;padding-bottom:10px;align-items:center}
 .opportunity-polished .opportunity-main-toolbar h1{font-size:24px;line-height:1.3;margin:0;flex:1;min-width:0;letter-spacing:-.02em}
 .opportunity-polished .opportunity-main-toolbar .crm-view-switch{margin:0;flex-shrink:0}
 .opportunity-polished .crm-view-switch a{min-height:44px;box-sizing:border-box;display:flex;align-items:center;padding:8px 10px;font-size:13px}
 .opportunity-polished .opportunity-main-toolbar .ghl-smart-tabs{order:3;flex-basis:100%;gap:6px;margin:0;padding:4px 3px 5px}
 .opportunity-polished .ghl-smart-tabs a[data-status-filter]{min-height:44px;padding:8px;font-size:12px}
 .opportunity-polished .opportunity-compact-controls{margin-top:12px}
 .review-crm .opportunity-browse-toolbar{gap:8px}
 .review-crm .opportunity-browse-toolbar .opportunity-pipeline,.review-crm .opportunity-browse-toolbar .opportunity-search{flex:1 1 100%;min-width:0}
 .review-crm .opportunity-browse-toolbar input,.review-crm .opportunity-browse-toolbar select{min-height:44px;font-size:14px}
 .review-crm .opportunity-browse-toolbar>details.opportunity-query-panel>summary,.review-crm #opportunity-filters .opportunity-browse-toolbar>[data-opportunity-columns][open]>summary{padding:10px;font-size:12px;min-height:44px}
 .review-crm .opportunity-browse-toolbar>details{flex:0 0 auto}
 .review-crm .opportunity-browse-toolbar>details[open]:not([data-opportunity-columns]){flex-basis:100%}
 .opportunity-polished .opportunity-view-state[data-pending=false]{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;padding:0;margin:0}
 .opportunity-polished .directory-result-heading{margin:10px 0;gap:6px;align-items:center;flex-wrap:wrap}
 .opportunity-polished .directory-result-heading p{font-size:13px}.opportunity-polished .directory-result-heading span{font-size:11px}
}
@media(max-width:380px){.opportunity-polished .opportunity-main-toolbar h1{font-size:22px}.opportunity-polished .crm-view-switch a{padding-inline:8px}}
@media(max-width:760px){
 .opportunity-polished .directory-result-heading{flex-direction:row;justify-content:space-between;text-align:left}
 .opportunity-browse-toolbar summary .applied-note{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .opportunity-browse-toolbar summary:has(.applied-note)::after{content:'•';margin-left:5px;color:var(--blue);font-size:16px;line-height:1}
}
/* The imported-record shell uses the same compact icon-only view switch. */
.review-crm .opportunity-polished .crm-view-switch.opportunity-view-icons{gap:2px;padding:2px;margin:0;border:1px solid var(--navy);border-radius:8px}
.review-crm .opportunity-polished .crm-view-switch.opportunity-view-icons>a{width:44px;min-width:44px;min-height:44px;padding:0;border:0;border-radius:5px;justify-content:center}
@media(max-width:760px){
 .opportunity-polished .crm-column{padding-top:8px}
 .opportunity-polished .crm-column>header{padding-bottom:12px}
 .opportunity-polished .crm-column>header h2{margin:0}
 .opportunity-polished .crm-column>header small{display:none}
}
@media(max-width:380px){.opportunity-polished .ghl-smart-tabs a[data-status-filter]{padding-inline:7px}}
/* Contacts: searchable directory first, view controls second, originals intact. */
.contacts-polished .ghl-page-tabs{min-height:48px;border-bottom:1px solid var(--navy)}
.review-crm .contacts-polished .ghl-page-tabs h1{font-size:28px;font-weight:600;letter-spacing:0;margin:0}
.contacts-polished .ghl-current-section{display:none}
.contacts-polished .ghl-readonly{background:white;color:var(--navy);border:1px solid var(--navy);font-size:12px;border-radius:6px}
.contacts-polished .ghl-smart-tabs{gap:18px;border-bottom:1px solid var(--navy);overflow-x:auto;padding:0 2px}
.contacts-polished .ghl-smart-tabs a{min-height:44px;font-size:13px;color:var(--navy)}
.contacts-polished .ghl-smart-tabs a[aria-current]{color:var(--navy);border-color:var(--teal);font-weight:600}
.contact-review-controls{margin:20px 0 12px}
.contact-search-row{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) minmax(0,1fr);gap:14px}
.contact-review-controls label{font-size:12px;font-weight:600;line-height:1.5;margin:0;min-width:0}
.contact-review-controls input[type=search],.contact-review-controls select{width:100%;min-width:0;min-height:44px;box-sizing:border-box;margin:6px 0 0;padding:10px 12px;border:1px solid var(--navy);border-radius:8px;font-size:14px;background:white;color:var(--navy)}
.contact-tool-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:12px 0}
.contact-control-panel{margin:0;border:1px solid var(--navy);border-radius:8px;background:white;font-size:13px;max-width:100%;box-sizing:border-box}
.contact-control-panel>summary{padding:10px 12px;min-height:44px;box-sizing:border-box;cursor:pointer;font-weight:600;line-height:1.6}
.contact-control-panel[open]{flex:1 1 100%;order:5;padding:14px;border-top:3px solid var(--cyan)}
.contact-control-panel[open]>summary{padding:0 0 10px}
.contact-control-panel[open]>label{display:block;max-width:320px}
.contact-column-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 16px}
.contact-column-choices>label{display:flex;align-items:center;gap:10px;min-height:44px;font-weight:500;font-size:13px}
.contact-review-controls input[type=checkbox],.contacts-polished .crm-selection input[type=checkbox],.contacts-polished [data-select-contact]{width:20px;height:20px;min-height:20px;min-width:20px;max-width:20px;flex:0 0 20px;margin:0;padding:0;accent-color:var(--navy)}
.contact-tool-row>button{min-height:44px;border-radius:8px;padding:10px 18px;font-size:13px}
.contact-tool-row .contact-clear{min-height:44px;display:flex;align-items:center;font-size:13px}
.contact-tool-row .contact-size{margin-left:auto;display:flex;align-items:center;gap:10px;font-size:12px}
.contact-tool-row .contact-size select{margin:0;width:84px}
.contact-review-controls .field-help{font-size:12px;line-height:1.6;margin:12px 0 0}
.contacts-polished .directory-result-heading{margin:14px 0;gap:8px;flex-direction:row;justify-content:space-between;align-items:center}
.contacts-polished .directory-result-heading p{font-size:14px;margin:0}.contacts-polished .directory-result-heading span{font-size:12px}
.contacts-polished .directory-table-wrap{border:1px solid var(--navy);border-radius:10px;background:white}
.review-crm .contacts-polished .directory-table th{background:white;color:var(--navy);border-bottom:2px solid var(--cyan);font-size:12px;font-weight:600;padding:12px 16px;white-space:nowrap}
.contacts-polished .directory-table th a{display:inline-flex;align-items:center;gap:8px;min-height:32px;color:var(--navy);text-decoration:none}
.contacts-polished .directory-table th a:hover{text-decoration:underline}
.review-crm .contacts-polished .directory-table td{background:white;color:var(--navy);font-size:14px;line-height:1.6;padding:12px 16px;border-bottom:1px solid var(--navy);vertical-align:middle}
.review-crm .contacts-polished .directory-table .primary-link{font-size:15px;font-weight:600;line-height:1.5;color:var(--navy);overflow-wrap:anywhere}
.contacts-polished .directory-table .contact-avatar{background:var(--navy);color:white;width:32px;height:32px;flex-shrink:0;border:0}
.contacts-polished .contact-selection-target{display:grid;place-items:center;width:44px;min-height:44px;margin:0;cursor:pointer}
.review-crm .contacts-polished .directory-table .crm-selection-cell{padding:4px}
.contacts-polished .crm-selection{border:1px solid var(--navy);border-left:3px solid var(--teal);background:white;color:var(--navy);border-radius:8px;gap:10px;padding:10px 14px}
.contacts-polished .crm-selection label{margin:0;min-height:44px;font-size:13px;gap:10px}
.contacts-polished .crm-selection button{min-height:44px;font-size:13px;padding:8px 12px}
.contacts-polished .crm-selection span:last-child{color:var(--navy);font-size:12px;line-height:1.6}
.contacts-polished .directory-table .crm-row-selected td{border-bottom-color:var(--teal)}
.contacts-polished .empty-state{border:0;border-left:3px solid var(--cyan);text-align:left;padding:18px 20px}
.contacts-polished .empty-state h2{font-size:22px}
/* Read-only contact profile: same three panes, stronger reading hierarchy. */
.contact-profile-workspace{color:var(--navy);max-width:1560px;margin:0 auto}
.contact-profile-workspace .review-back{font-size:14px;min-height:44px;margin:0 0 12px}
.contact-profile-workspace .page-heading{margin:0 0 20px;gap:16px}
.contact-profile-workspace h1{font-size:32px;font-weight:600;line-height:1.35;letter-spacing:0;margin:0 0 8px}
.contact-profile-workspace .eyebrow{font-size:12px;font-weight:600;line-height:1.6}
.contact-profile-workspace .contact-history-jump{display:flex;gap:20px;flex-wrap:nowrap;overflow-x:auto;border-bottom:1px solid var(--navy);margin:0 0 20px;padding:0 3px}
.contact-profile-workspace .contact-history-jump a{display:flex;align-items:center;min-height:44px;flex-shrink:0;font-size:13px;font-weight:500;text-decoration:none;color:var(--navy)}
.contact-profile-workspace .contact-history-jump a:hover{text-decoration:underline}
.contact-profile-workspace .crm-contact-panes{background:white;padding:0;gap:20px;border-radius:0;grid-template-columns:minmax(240px,1fr) minmax(320px,1.7fr) minmax(210px,.85fr)}
.review-crm .contact-profile-workspace .crm-contact-panes .card{background:white;border:1px solid var(--navy);border-radius:10px;padding:20px;margin:0;min-width:0}
.contact-profile-workspace .crm-contact-center,.contact-profile-workspace .crm-contact-related{gap:20px}
.contact-profile-workspace .crm-contact-panes h2{font-size:18px!important;font-weight:600;letter-spacing:0;line-height:1.5;padding-bottom:14px;border-bottom:1px solid var(--navy);margin:0 0 18px}
.contact-profile-workspace .crm-contact-panes h3{font-size:15px;line-height:1.6;letter-spacing:0}
.contact-profile-workspace .crm-contact-panes p,.contact-profile-workspace .crm-contact-panes dd{font-size:14px;line-height:1.7;color:var(--navy)}
.contact-profile-workspace .crm-contact-panes dt{font-size:12px;line-height:1.6;font-weight:600;color:var(--navy)}
.contact-profile-workspace .crm-contact-panes .review-facts>div{border:0;padding:0 0 16px}
.contact-profile-workspace .crm-contact-panes dd{margin:5px 0 0}
.contact-profile-workspace .crm-contact-panes .primary-link{font-size:15px;font-weight:600;line-height:1.6;color:var(--navy)}
.contact-profile-workspace .crm-contact-panes details{margin-top:14px;background:white}
.contact-profile-workspace .crm-contact-panes summary{font-size:13px;min-height:44px;font-weight:600;padding:10px 0;line-height:1.6}
.contact-profile-workspace .crm-inline-fields{border-top:3px solid var(--cyan);padding-top:18px;margin-top:20px}
.contact-profile-workspace .crm-inline-fields .field-help{font-size:12px}
.contact-profile-workspace .crm-contact-history{min-height:0}
.contact-profile-workspace .crm-contact-panes .recovered-note{border:1px solid var(--navy);border-left:3px solid var(--teal);border-radius:8px;padding:16px;background:white;margin:14px 0}
.contact-profile-workspace .recovered-note .migration-text{font-size:15px;line-height:1.75;white-space:pre-wrap}
.contact-profile-workspace .recovered-note header{font-size:14px;line-height:1.6;gap:8px}
.contact-profile-workspace .recovered-note header time{font-size:12px;color:var(--navy);line-height:1.6}
.contact-profile-workspace .crm-history-empty{padding:16px 0;text-align:left;color:var(--navy)}
.contact-profile-workspace .note-author-filter{display:flex;flex-wrap:wrap;gap:10px;align-items:end}
.contact-profile-workspace .note-author-filter label{margin:0;min-width:160px;font-size:12px}
.contact-profile-workspace .note-author-filter select{margin-top:6px;min-height:44px;font-size:14px}
.contact-profile-workspace .note-author-filter button{min-height:44px;font-size:13px}
.contact-profile-workspace #contact-details,.contact-profile-workspace #contact-associations,.contact-profile-workspace #contact-notes,.contact-profile-workspace #contact-opportunities,.contact-profile-workspace #contact-other-history{scroll-margin-top:20px}
.review-crm .contacts-polished a:focus-visible,.review-crm .contacts-polished summary:focus-visible,.contact-profile-workspace a:focus-visible,.contact-profile-workspace summary:focus-visible{outline:2px solid var(--navy);outline-offset:3px}
@media(max-width:1150px){.contact-profile-workspace .crm-contact-panes{grid-template-columns:minmax(240px,1fr) minmax(320px,1.6fr)}.contact-profile-workspace .crm-contact-related{grid-column:1/-1;grid-template-columns:1fr 1fr}}
@media(max-width:800px){.contact-search-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.contact-search-row .contact-search{grid-column:1/-1}.contact-column-choices{grid-template-columns:1fr 1fr}.contact-tool-row{gap:8px}.contact-tool-row .contact-size{margin-left:0}.contacts-polished .ghl-smart-tabs{gap:14px}.contact-profile-workspace .crm-contact-panes,.contact-profile-workspace .crm-contact-related{grid-template-columns:minmax(0,1fr)}.contact-profile-workspace h1{font-size:27px}.contact-profile-workspace .contact-history-jump{gap:18px}.contact-profile-workspace .crm-contact-panes .card{padding:18px}.contact-profile-workspace .crm-contact-related{grid-column:auto}.review-crm .contacts-polished .review-directory tr{position:relative;display:block;border:1px solid var(--navy);border-radius:10px;margin-bottom:12px;padding:12px 16px}.review-crm .contacts-polished .directory-table-wrap{border:0}.review-crm .contacts-polished .directory-table td{padding:8px 0;min-width:0!important;border:0}.review-crm .contacts-polished .review-directory td[data-label=Name]{padding-right:40px;margin-bottom:6px}.review-crm .contacts-polished .review-directory td.crm-selection-cell{position:absolute;top:8px;right:8px;width:44px!important;min-width:44px!important;max-width:44px;padding:0}.contacts-polished .directory-result-heading{flex-wrap:wrap}.contact-review-controls input[type=search],.contact-review-controls select{font-size:13px}.contact-profile-workspace .crm-contact-panes .crm-associations .card{padding:0!important}}

/* Keep search controls vertical despite the shared search-label rule. */
.review-crm .contact-search-row>label{display:block;max-width:none;width:auto}
.review-crm .contacts-polished .review-directory{min-width:1120px;table-layout:auto}
@media(max-width:800px){.review-crm .contacts-polished .review-directory{min-width:0;width:100%}}

.contact-profile-workspace .contact-association-summary{display:flex;flex-wrap:wrap;gap:8px 18px;align-items:center;min-height:44px;text-decoration:none;font-size:14px}
.contact-profile-workspace .contact-association-summary span{font-size:12px;text-decoration:underline}
.contact-profile-workspace .crm-associations>.card{padding:0!important;border:0!important;margin-bottom:14px!important}
.contact-profile-workspace #contact-opportunities{max-height:640px;overflow:auto;scrollbar-gutter:stable}

/* Contacts: compact primary toolbar, with secondary choices disclosed. */
.review-crm .contacts-polished .ghl-smart-tabs[hidden],.contacts-polished .crm-selection[hidden]{display:none!important}
.contact-compact-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.contact-compact-search{flex:1 1 260px;display:block!important}
.contact-compact-search input[type=search]{margin:0}
.contact-compact-row>button{min-height:44px;padding:10px 16px;border-radius:8px}
.contact-compact-row .contact-control-panel[open]{order:5;flex-basis:100%}
.contact-filter-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;max-width:700px}
.contact-filter-grid label{display:block!important}
.contact-review-controls>.contact-size{display:flex;gap:8px;align-items:center;justify-content:flex-end;font-size:12px;margin:12px 0 0}
.contact-review-controls>.contact-size select{width:78px;margin:0}
.contact-compact-row .contact-clear{font-size:12px;min-height:44px;display:flex;align-items:center}
.contacts-polished .review-directory tr:target{outline:2px solid var(--cyan);outline-offset:-2px}
@media(max-width:800px){.contact-compact-search{flex-basis:100%}.contact-filter-grid{grid-template-columns:1fr}.contact-compact-row>button{padding:10px 12px}.contact-compact-row .contact-control-panel>summary{padding:10px}.contacts-polished .crm-selection{gap:8px}}

.contact-column-panel .contact-size{display:flex;gap:10px;align-items:center;justify-content:flex-end;margin:12px 0 0;font-size:12px}
.contact-column-panel .contact-size select{width:78px;margin:0}
.review-crm .contacts-polished .directory-table td{border-bottom-color:rgba(30,46,98,.16)}
.contacts-polished .directory-table-wrap{border-color:rgba(30,46,98,.3)}
.review-crm .contact-profile-workspace .crm-contact-panes .card{border-color:rgba(30,46,98,.3)}

/* Keep Contacts tool triggers anchored while their single native panel is open. */
.contact-compact-row{position:relative}
.contact-compact-row .contact-control-panel{position:static;flex:0 0 auto}
.contact-compact-row .contact-control-panel[open]{order:0;flex:0 0 auto;padding:0;border-top:1px solid var(--navy)}
.contact-compact-row .contact-control-panel[open]>summary{padding:10px 12px}
.contact-options-panel{position:absolute;z-index:20;top:calc(100% + 8px);right:0;width:min(680px,100%);max-height:min(60vh,500px);overflow:auto;box-sizing:border-box;padding:18px;background:white;border:1px solid rgba(30,46,98,.3);border-top:3px solid var(--cyan);border-radius:10px;box-shadow:0 12px 28px rgba(30,46,98,.12)}
.contact-options-panel>label{display:block;max-width:340px}
.contact-options-panel .contact-size{max-width:none}
@media(max-width:800px){.contact-options-panel{width:100%;padding:16px}.contact-compact-row .contact-control-panel[open]>summary{padding:10px}}
.review-crm .contact-compact-row .contact-control-panel[open]>summary{margin:0}

/* Separate names and stable phone groups remain legible as optional columns grow. */
.review-crm .contacts-polished .review-directory td[data-label="First Name"],.review-crm .contacts-polished .review-directory td[data-label="Last Name"]{min-width:160px}
.review-crm .contacts-polished .review-directory td[data-label="Phone"]{min-width:175px;white-space:nowrap;font-variant-numeric:tabular-nums}
.review-crm .contacts-polished .review-directory td[data-label="Email"]{min-width:210px}
@media(max-width:800px){.review-crm .contacts-polished .review-directory td[data-label="First Name"]{padding-right:40px}}
/* Searchable Contacts field catalog: metadata only, values stay in server responses. */
.contact-field-options{max-height:300px;overflow:auto;margin:12px 0;border-top:1px solid rgba(30,46,98,.15)}
.contact-field-option{display:grid;grid-template-columns:minmax(0,1fr) 40px 40px;align-items:center;gap:6px;border-bottom:1px solid rgba(30,46,98,.15);min-height:54px;padding:5px 0}
.contact-field-option>label{display:flex!important;align-items:center;gap:12px;min-height:44px;font-size:13px;font-weight:500;cursor:pointer}
.contact-field-option small{display:block;font-size:10px;font-weight:400;margin-top:3px}
.contact-field-option button{min-height:40px;width:40px;padding:6px}
.contact-field-option[draggable=true]{cursor:grab}
.contact-field-option[hidden]{display:none}
.contact-view-feedback{font-size:12px;min-height:0;margin:8px 0 0}
.contact-view-feedback:empty{display:none}
.review-crm .contacts-polished .contact-dynamic-table{width:max-content;min-width:100%;table-layout:auto}
.review-crm .contacts-polished .contact-dynamic-table td{min-width:170px;max-width:320px;overflow-wrap:anywhere}
@media(max-width:800px){.review-crm .contacts-polished .contact-dynamic-table{display:block;min-width:0;width:100%}.review-crm .contacts-polished .contact-dynamic-table tbody{display:block}.review-crm .contacts-polished .contact-dynamic-table td{min-width:0!important;max-width:none}.contact-field-option{grid-template-columns:minmax(0,1fr) 36px 36px}.contact-field-option button{width:36px}.contact-field-options{max-height:260px}}
.contact-field-option:not([draggable=true]) button{visibility:hidden}
/* Direct table manipulation; Sort and Apply controls are unnecessary for view-only reads. */
.contact-header-grip{display:inline-block;opacity:.45;font-size:15px;margin-right:4px;cursor:grab}
.contact-dynamic-table th[data-contact-header]{cursor:grab}
.contact-dynamic-table th[data-contact-header]:active{cursor:grabbing}
.contact-mobile-field-sort{display:none}
.contact-clear[hidden],[data-contact-retry][hidden],[data-contact-sign-in][hidden]{display:none!important}
.contact-field-option label span{min-width:0;overflow-wrap:anywhere}
@media(max-width:800px){.review-crm .contacts-polished .contact-dynamic-table td:before{display:none!important}.contact-mobile-field-sort{display:block;min-height:32px;margin:0 0 5px;color:var(--navy);font-size:12px;font-weight:600;text-decoration:none}.contact-mobile-field-sort:hover{text-decoration:underline}}
.contact-dynamic-table thead [data-contact-sort]:before{content:'⠿';font-size:15px;opacity:.45;cursor:grab;margin-right:4px}
.review-crm .contacts-polished .contact-dynamic-table th.contact-drop-target{box-shadow:inset 3px 0 var(--cyan)}

/* The SHA journey belongs to the opportunity, above its supporting details. */
.review-crm .opportunity-workspace .opportunity-sha{margin:0 0 24px;border-top:4px solid var(--cyan)}
.opportunity-sha-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}
.review-crm .opportunity-workspace .opportunity-sha-heading h2{margin:0 0 6px}
.review-crm .opportunity-workspace .opportunity-sha-kicker{font-size:12px;font-weight:600;letter-spacing:.04em;margin:0 0 5px}
.opportunity-sha-heading .button{flex:none}
.review-crm .opportunity-status-control{position:relative;max-width:100%;margin:0;padding:0;border:0;background:transparent}.opportunity-status-control>summary{cursor:pointer;list-style:none}.opportunity-status-control>summary::-webkit-details-marker{display:none}.opportunity-status-control>summary:focus-visible{outline:3px solid var(--cyan);outline-offset:3px}.review-crm .opportunity-status-control .status-choice-panel{position:absolute;z-index:30;top:calc(100% + 8px);left:0;display:flex;align-items:flex-start;gap:12px;flex-wrap:wrap;width:min(470px,calc(100vw - 72px));max-height:70vh;overflow:auto;box-sizing:border-box;padding:16px;background:#fff;border:1px solid #cbd5e1;border-radius:12px;box-shadow:0 12px 28px #10214a26}.status-choices{display:flex;flex-wrap:wrap;gap:8px;border:0;padding:0;margin:0;min-width:0}.status-choices legend{font-weight:600;margin-bottom:8px}.status-choice{position:relative;display:inline-flex;align-items:center;min-height:40px;border:1px solid #9aa9c0;border-radius:8px;background:#fff;color:#1d2f5a;padding:8px 12px;cursor:pointer;text-decoration:none}.status-choice input{position:absolute;opacity:0;width:1px;height:1px}.status-choice:has(input:checked){border-color:#1d4ed8;background:#eff6ff;color:#1d4ed8;font-weight:600}.status-choice:has(input:focus-visible),.status-choice:focus-visible{outline:3px solid var(--cyan);outline-offset:2px}.status-choice-nurture{border-color:#855100;color:#704200;background:#fff2d5}.status-choice-panel .status-loss-reason{flex:1 1 180px}.status-choice-panel .status-edit-feedback{font-size:12px;margin:0}.status-choice-panel [hidden]{display:none!important}
.review-crm .opportunity-status-control .status-choices{align-items:center}.review-crm .opportunity-status-control .status-choice{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:44px;margin:0;padding:10px 13px;border-radius:8px;font-size:13px;font-weight:600;line-height:1.5;text-decoration:none}
.review-crm .opportunity-status-control button.status-choice[data-choice=open]{background:var(--status-open-fill);color:var(--status-open-ink);border:1px solid var(--status-open-ink)}.review-crm .opportunity-status-control button.status-choice[data-choice=won]{background:var(--status-won-fill);color:var(--status-won-ink);border:1px solid var(--status-won-ink)}.review-crm .opportunity-status-control button.status-choice[data-choice=lost]{background:var(--status-lost-fill);color:var(--status-lost-ink);border:1px solid var(--status-lost-ink)}.review-crm .opportunity-status-control button.status-choice[data-choice=abandoned]{background:var(--status-abandoned-fill);color:var(--status-abandoned-ink);border:1px dashed var(--status-abandoned-ink)}.review-crm .opportunity-status-control button.status-choice[aria-pressed=true]{outline:2px solid var(--navy);outline-offset:2px;text-decoration:underline;text-underline-offset:4px;font-weight:700}.review-crm .opportunity-status-control .status-choice:focus-visible{outline:3px solid var(--cyan);outline-offset:3px}
@media(max-width:760px){.review-crm .opportunity-status-control .status-choice-panel{position:fixed;top:84px;left:16px;right:16px;width:auto;max-height:calc(100dvh - 100px)}}
.nurture-permission{display:flex;flex-wrap:wrap;gap:8px 20px;border:0;padding:0;margin:0;min-width:0}.nurture-permission legend{font-weight:600;margin-bottom:8px}.nurture-permission label{display:inline-flex;align-items:center;gap:6px}.nurture-permission input[type=radio]{width:auto;min-width:0;margin:0}
.opportunity-workspace .opportunity-sha-journey{grid-template-columns:repeat(6,minmax(0,1fr));margin:12px 0 0}
.opportunity-sha-journey>a,.opportunity-sha-journey>span{flex-wrap:wrap;align-content:center;gap:4px 8px;min-width:0}
.opportunity-sha-next{display:flex;gap:10px 20px;flex-wrap:wrap;border-left:3px solid var(--teal);padding:10px 14px;margin-top:20px;font-size:14px;overflow-wrap:anywhere}
.opportunity-sha-connect{border-top:1px solid var(--navy);margin-top:22px;padding-top:18px}
.opportunity-sha-connect h3{font-size:15px;margin:0 0 6px}
.opportunity-sha-connect form{display:grid;grid-template-columns:1fr 1.3fr 1fr auto;align-items:end;gap:12px}
.opportunity-sha-connect form label{margin:0;min-width:0;font-size:13px;font-weight:600}
.opportunity-sha-connect form input,.opportunity-sha-connect form select{box-sizing:border-box;width:100%;min-width:0;min-height:44px;margin:6px 0 0}
@media(max-width:1000px){.opportunity-workspace .opportunity-sha-journey{grid-template-columns:repeat(3,minmax(0,1fr))}.opportunity-sha-connect form{grid-template-columns:repeat(2,minmax(0,1fr))}.opportunity-sha-connect form button{justify-self:start}}
@media(max-width:600px){.opportunity-workspace .opportunity-sha-journey{grid-template-columns:repeat(2,minmax(0,1fr))}.opportunity-sha-connect form{grid-template-columns:minmax(0,1fr)}.opportunity-sha-heading .button{width:100%;text-align:center;box-sizing:border-box}}

.opportunity-sha-journey .sha-stage-current{background:var(--cyan);font-weight:600}.opportunity-sha-journey [aria-current=page]{outline:2px solid var(--navy);outline-offset:2px}.opportunity-sha-content{margin:0 0 24px;min-width:0}.opportunity-sha-move{margin-bottom:20px}

.review-crm .workspace-sidebar{padding:24px 14px;background:white}.review-crm .workspace-nav{gap:3px}.review-crm .workspace-nav .nav-group-label{padding:18px 12px 8px;letter-spacing:.06em}.review-crm .workspace-nav .nav-group-label:not(:first-child){margin-top:8px;border-top:1px solid var(--cyan)}.review-crm .workspace-nav>a{min-height:44px;gap:12px}.review-crm .workspace-nav>a[aria-current=page]{border-left:0;padding-left:12px;box-shadow:inset 3px 0 0 var(--teal)}
@media(max-width:1000px){.review-crm .workspace-sidebar{padding:10px 16px}.review-crm .workspace-nav>a{padding:10px}.review-crm .workspace-nav>a[aria-current=page]{padding-left:10px}}

/* Keep the opportunity identity and its SHA journey together. */
.review-crm .opportunity-workspace .opportunity-sha-identity h1{margin:0 0 10px}
.opportunity-sha-identity .eyebrow{margin-bottom:8px}
.opportunity-sha-meta{display:flex;align-items:center;gap:10px 16px;flex-wrap:wrap;font-size:14px}
.review-crm .opportunity-workspace .opportunity-sha-unavailable{margin:18px 0 0;font-size:13px}
.review-crm .opportunity-workspace .opportunity-sha-setup{margin:0 0 24px;padding:0 24px}
.opportunity-workspace .opportunity-sha-setup summary{padding:16px 0}
.opportunity-sha-setup[open]{padding-bottom:24px!important}
.opportunity-sha-setup-form{display:grid;grid-template-columns:1fr 1.3fr 1fr auto;align-items:end;gap:12px}
.opportunity-sha-setup-form label{margin:0;min-width:0;font-size:13px;font-weight:600}
.opportunity-sha-setup-form input,.opportunity-sha-setup-form select{box-sizing:border-box;width:100%;min-width:0;min-height:44px;margin:6px 0 0}
@media(max-width:1000px){.opportunity-sha-setup-form{grid-template-columns:repeat(2,minmax(0,1fr))}.opportunity-sha-setup-form button{justify-self:start}}
@media(max-width:600px){.opportunity-sha-setup-form{grid-template-columns:minmax(0,1fr)}}

.opportunity-sha-name{display:flex;align-items:center;gap:10px 16px;flex-wrap:wrap;min-width:0}.review-crm .opportunity-workspace .opportunity-sha-identity .opportunity-sha-name h1{margin:0}.opportunity-sha-name .review-status{flex:none}.opportunity-sha-meta{margin-top:8px}

/* New Lead is the first step of the same SHA journey. */
.review-crm .intake-sha-header{border:1px solid var(--navy);border-top:4px solid var(--cyan);border-radius:12px;padding:24px;margin-bottom:24px}.review-crm .intake-sha-header h1{font-size:clamp(25px,2.4vw,34px);line-height:1.35;margin:0}.intake-sha-header .eyebrow{font-size:12px;margin-bottom:8px}.review-crm .intake-sha-journey{grid-template-columns:repeat(6,minmax(0,1fr));margin-top:20px}.review-crm .intake-sha-journey>span{flex-wrap:wrap;min-width:0}.review-crm .intake-sha-journey [aria-current=step]{background:var(--cyan);font-weight:600}@media(max-width:1000px){.review-crm .intake-sha-journey{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:600px){.review-crm .intake-sha-header{padding:20px}.review-crm .intake-sha-journey{grid-template-columns:repeat(2,minmax(0,1fr))}}
.source-discovery{min-width:0}.source-discovery-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;margin:4px 0 20px}.review-crm .opportunity-workspace .source-discovery-heading h2{font-size:24px;margin:0 0 8px}.source-discovery-heading>div{max-width:70ch}.source-discovery-group,.opportunity-workspace .source-discovery-group{border:1px solid var(--navy);border-radius:12px;margin:0 0 12px;padding:0 20px}.source-discovery-group>summary{display:flex;justify-content:space-between;align-items:center;gap:12px}.source-discovery-group>summary small{font-weight:500;white-space:nowrap}.source-discovery-group-content{padding:0 0 20px}.source-discovery .question{padding:24px 0;border-top:1px solid var(--navy)}.source-discovery .question h2{font-size:18px;line-height:1.45}.source-discovery .answer-options{border:0;padding:0;margin:12px 0}.source-discovery .answer-option{display:flex;align-items:flex-start;gap:10px;margin:10px 0}.source-discovery .answer-option input{width:auto;flex:none;margin:3px 0}.source-discovery .question details{margin:16px 0 0}.source-discovery .question textarea,.source-discovery .question select{width:100%;box-sizing:border-box}.source-guidance{border-left:4px solid var(--teal);padding:12px 16px;margin:20px 0}.source-guidance h3{margin:0 0 8px}.source-discovery-save{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:16px 0}.source-discovery-save p{max-width:65ch}.source-discovery .notice{margin-bottom:20px}@media(max-width:600px){.source-discovery-group,.opportunity-workspace .source-discovery-group{padding:0 14px}.source-discovery-group>summary{align-items:flex-start;flex-wrap:wrap}.source-discovery-save button{width:100%}}

.source-discovery-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 16px}.review-crm .opportunity-workspace .source-discovery-toolbar p{margin:0;font-size:13px;font-weight:600}.review-crm .opportunity-workspace .opportunity-sha-key{font-size:12px;margin:12px 0 0}.source-discovery-toolbar button{min-height:44px}@media(max-width:600px){.source-discovery-toolbar{align-items:stretch;flex-direction:column}.source-discovery-toolbar button{width:100%}}

/* Dashboard: overview, pipelines and work remain distinct at every viewport. */
.private-dashboard{max-width:1440px;margin:0 auto 40px;color:var(--navy)}
.dashboard-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:24px}
.dashboard-heading h1{margin:0;font-size:clamp(32px,3.5vw,44px);line-height:1.15}
.dashboard-intro{margin:10px 0 0;font-size:15px;line-height:1.6}
.dashboard-heading-actions{display:flex;align-items:center;justify-content:flex-end;gap:14px;flex-wrap:wrap}
.dashboard-new-lead{text-decoration:none;white-space:nowrap}
.dashboard-new-lead span{font-size:20px;line-height:1}
.dashboard-sync-note{border-left:3px solid var(--cyan);padding:8px 14px;margin:25px 0 32px;font-size:13px;line-height:1.6}
.dashboard-section-heading{display:flex;justify-content:space-between;align-items:end;gap:16px}
.dashboard-kicker{font-size:11px!important;font-weight:700;letter-spacing:.09em;text-transform:uppercase;margin:0 0 8px!important}
.dashboard-section-heading h2,.dashboard-panel h2{font-size:20px;line-height:1.3;margin:0}
.private-dashboard .dashboard-metrics{margin:16px 0 28px;gap:14px}
.private-dashboard .dashboard-metrics>a{min-width:0;min-height:150px;padding:20px 22px;gap:8px;border:1px solid var(--navy);border-top:4px solid var(--cyan);border-radius:10px;color:var(--navy)}
.dashboard-metric-label{font-size:13px;font-weight:700}
.private-dashboard .dashboard-metrics strong{font-size:36px;line-height:1.15}
.dashboard-metric-link{margin-top:auto;padding-top:8px;font-size:12px;font-weight:600}
.private-dashboard .dashboard-content-grid{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:18px}
.private-dashboard .dashboard-panel{padding:24px;border-radius:10px}
.dashboard-panel-header p:not(.dashboard-kicker){margin:8px 0 0;font-size:13px;line-height:1.6}
.dashboard-service-list,.dashboard-work-links{margin-top:20px;border-top:1px solid var(--navy)}
.private-dashboard .dashboard-service-row{align-items:center;min-height:58px;padding:14px 4px;text-decoration:none;color:var(--navy);font-size:14px;font-weight:600}
.dashboard-service-count{display:flex;align-items:center;gap:24px}
.dashboard-service-count strong{font-size:17px}
.dashboard-service-arrow{font-size:18px}
.dashboard-work-links a{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:76px;padding:15px 4px;border-bottom:1px solid var(--navy);color:var(--navy);text-decoration:none}
.dashboard-work-links strong,.dashboard-work-links small{display:block}
.dashboard-work-links strong{font-size:14px}.dashboard-work-links small{margin-top:5px;font-size:12px;line-height:1.5}
.private-dashboard a:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.private-dashboard .dashboard-metrics>a:hover,.dashboard-service-row:hover,.dashboard-work-links a:hover{text-decoration:underline}
@media(max-width:800px){.private-dashboard .dashboard-content-grid{grid-template-columns:1fr}.dashboard-heading{flex-wrap:wrap}.dashboard-heading-actions{justify-content:flex-start}.private-dashboard .dashboard-panel{padding:20px}}
@media(max-width:400px){.private-dashboard .dashboard-metrics>a{padding:16px 14px;min-height:140px}.dashboard-metric-link{overflow-wrap:anywhere}.dashboard-heading-actions{width:100%;justify-content:space-between}}
.sha-visits{margin-top:18px}.sha-visits>details{margin:18px 0}.sha-visit-card{border-top:1px solid var(--navy);padding:20px 0}.sha-visit-card h3{margin:0}.sha-visit-card dl{display:grid;grid-template-columns:minmax(135px,auto) minmax(0,1fr);gap:8px 16px}.sha-visit-card dt,.sha-visit-card dd{margin:0;overflow-wrap:anywhere}.sha-visit-card details{margin:14px 0}@media(max-width:480px){.sha-visit-card dl{grid-template-columns:1fr;gap:4px}.sha-visit-card dd{margin-bottom:8px}}
.care-queue-filters{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.care-queue-filters a{display:inline-flex;gap:8px;align-items:center;padding:9px 14px;border:1px solid var(--navy);border-radius:999px;color:var(--navy);text-decoration:none}.care-queue-filters a[aria-current=page]{background:var(--navy);color:#fff}.care-queue-panel{margin-top:22px}.care-queue-item{display:grid;grid-template-columns:minmax(0,2fr) minmax(150px,1fr) auto;gap:18px;align-items:center;padding:18px 0;border-top:1px solid #d6dce5}.care-queue-item h3{margin:4px 0;font-size:18px}.care-queue-item p{margin:5px 0}.care-queue-state{font-size:13px;font-weight:700}.care-queue-item .button{white-space:nowrap}@media(max-width:700px){.care-queue-item{grid-template-columns:1fr;gap:8px}.care-queue-item .button{justify-self:start}}
.private-dashboard .care-queue-panel { margin-bottom: 18px; }
