/* UX1 · shared visual tokens. No business state selectors are overridden. */
body.premium-ui-v2 {
 --ux-font:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
 --ux-primary:#2367d8;--ux-primary-hover:#1857bd;--ux-nav:#102845;
 --ux-text:#13213a;--ux-muted:#52647d;--ux-bg:#f5f8fc;--ux-surface:#fff;--ux-subtle:#f8fafc;
 --ux-line:#e3e9f1;--ux-border:#d6deea;--ux-success:#147a55;--ux-warning:#986010;--ux-danger:#b42318;--ux-info:#1857bd;
 --ux-radius-control:8px;--ux-radius-panel:12px;--ux-space-1:4px;--ux-space-2:8px;--ux-space-3:12px;--ux-space-4:16px;--ux-space-6:24px;--ux-space-8:32px;
 --ux-shadow-menu:0 6px 18px #1028451f;--ux-shadow-window:0 16px 48px #10284533;
 --nav:var(--ux-nav);--blue:var(--ux-primary);--blue-2:var(--ux-primary-hover);--bg:var(--ux-bg);--surface:var(--ux-surface);--surface-2:var(--ux-subtle);--line:var(--ux-line);--line-strong:var(--ux-border);--txt:var(--ux-text);--muted:var(--ux-muted);
 font-family:var(--ux-font);font-size:14px;line-height:1.45;
}
body.premium-ui-v2 :is(input,select,textarea,button){font-family:var(--ux-font)}
body.premium-ui-v2 :is(.hero h2,.home-v3-heading h2){font-size:26px;line-height:1.2;font-weight:650}
body.premium-ui-v2 :is(.panel h3,.timeline-section-head h3,.home-v3-section-head h3){font-size:16px;line-height:1.35;font-weight:650}
body.premium-ui-v2 :is(.muted,.err,.field label,.field small,.score-badge,.priority-level,.priority-situation,.priority-counts,.priority-status,.priority-toolbar,.timeline-link,.timeline-meta,.smallchip,.tag-chip){font-size:12px!important;line-height:1.45}
body.premium-ui-v2 :is(.field label,dialog label,.permissions-grid label){font-weight:600;color:var(--ux-muted);letter-spacing:0;text-transform:none}
body.premium-ui-v2 .field{margin:0 0 16px}
body.premium-ui-v2 .field label{margin-bottom:8px}
body.premium-ui-v2 .field small{display:block;margin-top:4px}
body.premium-ui-v2 :is(.field,.ux-window-body,section,.panel){min-width:0}
body.premium-ui-v2 :is(.field input:not([type=checkbox]):not([type=radio]):not([type=file]),.field select,.toolbar input,.toolbar select,.task-filters input,.task-filters select,.property-search-wrap input,.properties-toolbar select,.opp-command-main select,.opp-search-wrap input,.priority-toolbar select){height:40px!important;min-height:40px!important;border:1px solid var(--ux-border)!important;border-radius:var(--ux-radius-control)!important;padding:8px 12px!important;font-size:14px!important;line-height:1.4;min-width:0;max-width:100%;color:var(--ux-text);background:var(--ux-surface)}
body.premium-ui-v2 textarea{font-size:14px!important;line-height:1.5!important;padding:10px 12px!important;border:1px solid var(--ux-border)!important;border-radius:var(--ux-radius-control)!important;max-width:100%;resize:vertical}
body.premium-ui-v2 :is(input[type=checkbox],input[type=radio]){accent-color:var(--ux-primary)}
body.premium-ui-v2 :is(.btn,.priority-actions button,.focus-row-actions button){min-height:40px!important;height:auto;border-radius:var(--ux-radius-control)!important;padding:8px 14px!important;font-size:13px!important;font-weight:600!important;line-height:1.35!important;box-shadow:none;max-width:100%;white-space:normal;overflow-wrap:anywhere;transition:background .12s,border-color .12s}
body.premium-ui-v2 .btn:hover{transform:none}
body.premium-ui-v2 :is(.btn.primary,.priority-actions button:first-child){background:var(--ux-primary);color:white;box-shadow:none}
body.premium-ui-v2 .btn.primary:hover{background:var(--ux-primary-hover)}
body.premium-ui-v2 .btn.light{background:var(--ux-surface);border:1px solid var(--ux-border);color:var(--ux-text)}
body.premium-ui-v2 :is(.btn.danger,#deleteLeadBtn,#deleteOpportunityBtn,#deletePropertyBtn){color:var(--ux-danger);background:#fff;border:1px solid #efc3be}
body.premium-ui-v2 :is(button,input,select,textarea,summary,a):focus-visible{outline:2px solid var(--ux-primary)!important;outline-offset:2px}
body.premium-ui-v2 :is(button,select,input):disabled{cursor:not-allowed}
body.premium-ui-v2 :is(.panel,.metric,.ceo-panel,.priority-row,.commercial-result-box){border-radius:var(--ux-radius-panel)}
body.premium-ui-v2 :is(th,td){font-size:13px!important;line-height:1.45;padding:12px}
body.premium-ui-v2 th{font-size:12px!important;font-weight:600}
body.premium-ui-v2 :is(.tag-chips,.tag-menu){border-radius:var(--ux-radius-control)}
body.premium-ui-v2 :is(.tag-chip,.smallchip,.score-badge,.priority-level){padding:4px 8px}
body.premium-ui-v2 :is(.toolbar,.task-filters,.properties-toolbar,.priority-toolbar,.home-v3-filters){gap:8px;align-items:end}
body.premium-ui-v2 :is(.view-switch button,.focus-tab,.timeline-filter){font-size:13px!important;min-height:36px;border-radius:8px}
/* Window geometry: bounded outer shell, scroll only in its flexible body. */
body.premium-ui-v2 .ux-window{--ux-width:880px;width:min(var(--ux-width),calc(100vw - 48px))!important;max-width:calc(100vw - 48px)!important;max-height:calc(100dvh - 48px)!important;padding:0!important;border:1px solid var(--ux-border)!important;border-radius:var(--ux-radius-panel)!important;box-shadow:var(--ux-shadow-window)!important;overflow:hidden!important;color:var(--ux-text);background:var(--ux-surface);font-size:14px}
body.premium-ui-v2 .ux-window[data-ux-size=s]{--ux-width:440px}
body.premium-ui-v2 .ux-window[data-ux-size=m]{--ux-width:640px}
body.premium-ui-v2 .ux-window[data-ux-size=xl]{--ux-width:1180px}
body.premium-ui-v2 .ux-window:is(.on,[open]){display:flex!important;flex-direction:column}
body.premium-ui-v2 .ux-window-head{flex:0 0 auto;min-width:0;margin:0!important;padding:16px 24px!important;border-bottom:1px solid var(--ux-line);background:var(--ux-surface);height:auto;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;position:relative}
body.premium-ui-v2 .ux-window-head :is(h2,h3){font-size:20px!important;font-weight:650!important;line-height:1.3;margin:0!important}
body.premium-ui-v2 .ux-window-head p{font-size:12px;margin:4px 0 0}
body.premium-ui-v2 .ux-window-body{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:20px 24px;overflow-wrap:anywhere}
body.premium-ui-v2 .ux-window-footer{flex:0 0 auto;display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:8px;margin:0!important;padding:12px 24px!important;border-top:1px solid var(--ux-line);background:var(--ux-surface);height:auto}
body.premium-ui-v2 .ux-window-footer>.err{flex-basis:100%;margin:0;max-height:72px;overflow:auto}
body.premium-ui-v2 .ux-window-footer>.err:empty{display:none}
body.premium-ui-v2 .ux-window-footer>.primary{order:2}
body.premium-ui-v2 .ux-window-footer>:is(#deleteLeadBtn,.danger){margin-right:auto}
body.premium-ui-v2 .ux-window :is(.crm-window-controls){flex-shrink:0}
body.premium-ui-v2 .crm-window-controls>button.crm-window-control{width:36px!important;min-width:36px!important;max-width:36px!important;height:36px!important;min-height:36px!important;max-height:36px!important;flex-basis:36px!important;border-radius:8px!important;font-size:24px!important;padding:0!important}
body.premium-ui-v2 .ux-window.crm-window-maximized{left:24px!important;top:24px!important;width:calc(100vw - 48px)!important;max-width:calc(100vw - 48px)!important;height:calc(100dvh - 48px)!important;max-height:calc(100dvh - 48px)!important;overflow:hidden!important}
body.premium-ui-v2 :is(.shade,dialog::backdrop){background:rgba(14,29,49,.44)!important;backdrop-filter:blur(2px)!important}
body.premium-ui-v2:has(dialog[open]){overflow:hidden}
/* Preserve existing specialized editor shells and their sticky controls. */
body.premium-ui-v2 #oppModal .opp-editor-head,body.premium-ui-v2 #propertyModal .modal-head,body.premium-ui-v2 .permissions-header,body.premium-ui-v2 .home-metric-head{padding:16px 24px!important;flex:0 0 auto}
body.premium-ui-v2 :is(#oppModal,#propertyModal,#permissionsModal,#homeMetricModal) :is(h2,h3){font-size:20px;font-weight:650;line-height:1.3}
body.premium-ui-v2 :is(#oppModal,#propertyModal) .field label{font-size:12px!important}
body.premium-ui-v2 #oppModal .opp-editor-shell{flex:1 1 auto;min-height:0;overflow:hidden}
body.premium-ui-v2 #oppModal .opp-editor-main{min-width:0;min-height:0;overscroll-behavior:contain;padding:16px!important}
body.premium-ui-v2 #oppModal .opp-editor-footer{flex:0 0 auto;padding:12px 24px!important;gap:8px}
body.premium-ui-v2 #propertyModal .property-editor{display:flex;flex-direction:column;max-height:calc(100dvh - 50px)!important;height:100%;min-height:0;width:100%;border:0;border-radius:0;box-shadow:none;margin:0}
body.premium-ui-v2 #propertyModal .property-editor-body{min-height:0;flex:1 1 auto;overflow:auto;overscroll-behavior:contain;padding:20px 24px!important}
body.premium-ui-v2 #propertyModal .property-editor-footer{flex:0 0 auto}
body.premium-ui-v2 #propertyModal .property-editor-footer .modal-actions{padding:12px 24px!important;gap:8px;flex-wrap:wrap}
body.premium-ui-v2 #permissionsModal .permissions-body{min-height:0;flex:1 1 auto;overflow:auto;overscroll-behavior:contain;padding:20px 24px}
body.premium-ui-v2 #permissionsModal .permissions-footer{flex:0 0 auto;gap:8px;padding:12px 24px;flex-wrap:wrap}
body.premium-ui-v2 #permissionsModal .permissions-footer>.primary{order:2}
body.premium-ui-v2 #homeMetricModal .home-metric-body{min-height:0;flex:1 1 auto;overflow:auto}
/* Completion: retain every original result/field, with a layout for each size. */
body.premium-ui-v2 #completeTaskModal .ux-window-head{display:block!important}
body.premium-ui-v2 #completeTaskModal .ux-window-head>.crm-window-caption{padding-right:84px}
body.premium-ui-v2 #completeTaskModal .ux-window-head>.crm-window-controls{position:absolute;right:20px;top:12px}
body.premium-ui-v2 .ux-task-context{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 0!important}
body.premium-ui-v2 .ux-task-context .muted{font-size:12px!important}
body.premium-ui-v2 .ux-task-context .btn{min-height:32px!important;padding:4px 8px!important}
body.premium-ui-v2 .ux-completion-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
body.premium-ui-v2 .ux-completion-grid>section{min-width:0}
body.premium-ui-v2 #completeTaskModal :is(#ctNote,#ctMessageTemplate){min-height:80px!important;max-height:300px}
body.premium-ui-v2 .commercial-result-box{margin:0 0 16px;padding:16px;background:#f3f7fc;border:1px solid var(--ux-line)}
body.premium-ui-v2 .commercial-result-box>b{font-size:16px}
body.premium-ui-v2 .commercial-result-box small{font-size:12px;line-height:1.45;margin:4px 0 8px}
body.premium-ui-v2 .commercial-result-chips{gap:8px;margin:12px 0}
body.premium-ui-v2 .commercial-result-chips label{font-size:13px!important;font-weight:400;line-height:1.4;padding:8px 10px;min-height:36px;border-radius:8px;color:var(--ux-text);align-items:flex-start}
body.premium-ui-v2 .commercial-result-chips input{flex:0 0 16px;width:16px!important;height:16px;min-height:0;margin:1px 0 0}
body.premium-ui-v2 .commercial-result-box summary{font-size:13px;padding:6px 0;cursor:pointer}
body.premium-ui-v2 .ux-message-disclosure{padding:12px 16px;border:1px solid var(--ux-line);border-radius:8px;background:var(--ux-subtle)}
body.premium-ui-v2 .ux-message-disclosure>summary{font-size:14px;font-weight:600;cursor:pointer}
body.premium-ui-v2 .ux-message-disclosure[open]>summary{margin-bottom:12px}
body.premium-ui-v2 #ctMessageTemplateField>details>div{display:flex;flex-wrap:wrap;gap:8px}
body.premium-ui-v2 .ux-contact-grid{gap:16px!important}
body.premium-ui-v2 .ux-contact-grid>.field{margin:0}
body.premium-ui-v2 .ux-context-actions{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}
@media(min-width:1100px){body.premium-ui-v2 #completeTaskModal.crm-window-maximized .ux-completion-grid{grid-template-columns:minmax(0,1.35fr) minmax(280px,1fr);gap:24px}body.premium-ui-v2 #completeTaskModal.crm-window-maximized .ux-completion-next{border-left:1px solid var(--ux-line);padding-left:24px}}
/* Secondary dialogs use the same field language, without hiding states or errors. */
body.premium-ui-v2 .ux-window-body>label{display:block;font-size:12px;margin:12px 0 8px}
body.premium-ui-v2 .ux-window-body>:is(input:not([type=checkbox]),select){width:100%;min-height:40px;border:1px solid var(--ux-border);border-radius:8px;font-size:14px;padding:8px 12px}
body.premium-ui-v2 .ux-window-body>textarea{width:100%}
body.premium-ui-v2 .ux-window-body>.err{font-size:12px}
body.premium-ui-v2 :is(#oppScoring,#oppHistory,#contactTimeline) :is(small,.muted){font-size:12px!important}
body.premium-ui-v2 #oppScoring :is(.score-breakdown>div,.score-event,details){font-size:14px}
body.premium-ui-v2 #oppModal .timeline-recent-row :is(b,span:not(.timeline-icon)){font-size:12px}
body.premium-ui-v2 #oppModal .timeline-recent-row b{font-size:14px}
body.premium-ui-v2 .priority-copy p{font-size:14px;line-height:1.45}
body.premium-ui-v2 .priority-copy details{font-size:12px}
body.premium-ui-v2 :is(#home,#control) :is(.ceo-panel,.home-v3-panel){border-radius:12px}
body.premium-ui-v2 :is(.ceo-panel,.ceo-kpi,.control-filters) :is(small,label){font-size:12px!important}
body.premium-ui-v2 :is(.ceo-panel,.ceo-kpi) p{line-height:1.45}
@media(max-width:800px){body.premium-ui-v2 .ux-window{max-width:calc(100vw - 24px)!important;width:min(var(--ux-width),calc(100vw - 24px))!important;max-height:calc(100dvh - 24px)!important}body.premium-ui-v2 .ux-window.crm-window-maximized{left:12px!important;top:12px!important;width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px)!important;height:calc(100dvh - 24px)!important;max-height:calc(100dvh - 24px)!important}body.premium-ui-v2 #propertyModal .property-editor{max-height:calc(100dvh - 26px)!important}body.premium-ui-v2 .ux-window-head,body.premium-ui-v2 .ux-window-body,body.premium-ui-v2 .ux-window-footer{padding:12px 16px!important}body.premium-ui-v2 .ux-contact-grid{grid-template-columns:minmax(0,1fr)!important}body.premium-ui-v2 .ux-window-footer{gap:8px}body.premium-ui-v2 #completeTaskModal .ux-window-head>.crm-window-controls{right:12px;top:8px}}
@media(prefers-reduced-motion:reduce){body.premium-ui-v2 :is(button,input,select,textarea){transition:none!important}}
/* Win over historical modal viewport rules without changing their stack manager. */
body.premium-ui-v2.lion-has-modal .modal.ux-window.on{width:min(var(--ux-width),calc(100vw - 48px))!important;max-width:calc(100vw - 48px)!important;max-height:calc(100dvh - 48px)!important;overflow:hidden!important}
body.premium-ui-v2.lion-has-modal .modal.ux-window.on.crm-window-maximized,body.premium-ui-v2 dialog.ux-window.crm-window-maximized{position:fixed!important;left:24px!important;top:24px!important;right:auto!important;bottom:auto!important;margin:0!important;transform:none!important;translate:0 0!important;width:calc(100vw - 48px)!important;max-width:calc(100vw - 48px)!important;height:calc(100dvh - 48px)!important;max-height:calc(100dvh - 48px)!important;overflow:hidden!important}
body.premium-ui-v2 .ux-window-footer>:is(#deleteLeadBtn,.danger){order:-1}
@media(max-width:800px){body.premium-ui-v2.lion-has-modal .modal.ux-window.on{width:min(var(--ux-width),calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important}body.premium-ui-v2.lion-has-modal .modal.ux-window.on.crm-window-maximized,body.premium-ui-v2 dialog.ux-window.crm-window-maximized{left:12px!important;top:12px!important;width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px)!important;height:calc(100dvh - 24px)!important;max-height:calc(100dvh - 24px)!important}}
/* Contact history uses the same existing event markup as opportunity history. */
body.premium-ui-v2 #contactTimelineSection .oppHistoryCard{border:1px solid var(--ux-line);border-radius:12px;padding:12px 16px;margin:12px 0;background:var(--ux-surface)}
body.premium-ui-v2 #contactTimelineSection .oppHistoryTop{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap;font-size:14px}
body.premium-ui-v2 #contactTimelineSection time{font-size:12px;color:var(--ux-muted)}
body.premium-ui-v2 #contactTimelineSection .oppHistoryMain{min-width:0;overflow-wrap:anywhere}
body.premium-ui-v2 #contactTimelineSection p{margin:6px 0}
body.premium-ui-v2 #contactTimelineSection summary{font-size:13px;color:var(--ux-primary);cursor:pointer;padding:4px 0}
body.premium-ui-v2 #homeMetricModal .home-metric-list{overflow:visible;max-height:none}
body.premium-ui-v2 #control :is(.klabel,.ksub,.ceo-panel small,.ceo-panel p,.ceo-panel label,.ceo-filters-grid label,.ceo-filter-label,.ceo-rank-row,.ceo-origin-row,.ceo-kpi-grid-v2 .ceo-kpi .klabel){font-size:12px!important;line-height:1.45!important}
body.premium-ui-v2 :is(.property-card-meta,.property-card-location,.property-tag,.property-price,.focus-meta,.focus-row small,.home-v3-empty,.gcal-badge,.gcal-footnote){font-size:12px!important;line-height:1.45}
body.premium-ui-v2 .property-card-title-row h3{font-size:16px}
body.premium-ui-v2 :is(.opp-nav-item span,.opp-card p,.opp-card small,.opp-next-deadline,.opp-card-meta,.opp-editor-head p){font-size:12px!important;line-height:1.45}
/* Standardize the older ID-specific opportunity/property shells too. */
body.premium-ui-v2.lion-has-modal :is(#oppModal,#propertyModal).ux-window.on{display:flex!important;flex-direction:column!important;width:min(1180px,calc(100vw - 48px))!important;max-width:calc(100vw - 48px)!important;max-height:calc(100dvh - 48px)!important;overflow:hidden!important}
body.premium-ui-v2.lion-has-modal #oppModal.ux-window.on{height:min(800px,calc(100dvh - 48px))!important}
body.premium-ui-v2 #oppModal .opp-editor-shell{display:grid!important;grid-template-columns:180px minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;flex:1 1 auto!important;min-height:0!important;overflow:hidden!important}
body.premium-ui-v2 #oppModal .opp-editor-main{height:auto!important;min-height:0!important;overflow:auto!important}
body.premium-ui-v2 #oppModal .oppNav{min-height:0;overflow:auto;overscroll-behavior:contain}
body.premium-ui-v2 #oppModal .opp-editor-main>.opp-commercial-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 16px;width:100%}
body.premium-ui-v2 #oppModal .opp-editor-footer{flex-direction:row;flex-wrap:wrap;align-items:center}
body.premium-ui-v2 #oppModal .opp-editor-meta{font-size:12px;flex:1 1 150px;overflow-wrap:anywhere}
body.premium-ui-v2 #oppModal .opp-editor-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
body.premium-ui-v2.lion-has-modal :is(#oppModal,#propertyModal).ux-window.on.crm-window-maximized{left:24px!important;top:24px!important;transform:none!important;translate:0 0!important;width:calc(100vw - 48px)!important;max-width:calc(100vw - 48px)!important;height:calc(100dvh - 48px)!important;max-height:calc(100dvh - 48px)!important;overflow:hidden!important}
body.premium-ui-v2 .ux-task-labels{min-width:0}
body.premium-ui-v2 .ux-task-client{display:block;font-size:12px;color:var(--ux-muted);overflow-wrap:anywhere}
body.premium-ui-v2 .ux-task-client:empty{display:none}
body.premium-ui-v2 .ux-table-scroll{width:100%;max-width:100%;min-width:0;overflow:auto;overscroll-behavior-x:contain;border-radius:12px}
body.premium-ui-v2 .main{min-width:0}
body.premium-ui-v2 .main>header{height:auto;min-height:68px;gap:12px;flex-wrap:wrap;padding-top:12px;padding-bottom:12px}
body.premium-ui-v2 .main>header>div{min-width:0;max-width:100%}
body.premium-ui-v2 .main>header>div:last-child{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;flex:1 1 260px}
body.premium-ui-v2 .hero{gap:16px;flex-wrap:wrap;align-items:center}
body.premium-ui-v2 .hero>div{min-width:0;max-width:100%}
body.premium-ui-v2 #pipeline .opp-hero .opp-hero-actions.opp-command-actions{width:auto!important;min-width:0!important;max-width:100%!important;flex:1 1 320px!important;flex-wrap:wrap!important}
body.premium-ui-v2 #contactSearch{min-width:0!important;flex:1 1 250px}
@media(max-width:900px){
 body.premium-ui-v2 #oppModal .opp-editor-shell{display:flex!important;flex-direction:column!important}
 body.premium-ui-v2 #oppModal .oppNav{display:flex!important;flex:0 0 auto!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:8px!important;max-height:76px;padding:8px!important;overflow:auto!important;border-right:0;border-bottom:1px solid var(--ux-line)}
 body.premium-ui-v2 #oppModal .oppNav .opp-nav-item{flex:0 0 auto!important;width:auto!important;min-width:100px;max-width:180px;margin:0!important;padding:8px 12px!important;white-space:normal}
 body.premium-ui-v2 #oppModal .opp-editor-main{flex:1 1 auto!important;min-height:0!important}
}
@media(max-width:800px){
 body.premium-ui-v2.lion-has-modal :is(#oppModal,#propertyModal).ux-window.on{width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important}
 body.premium-ui-v2.lion-has-modal #oppModal.ux-window.on{height:calc(100dvh - 24px)!important}
 body.premium-ui-v2.lion-has-modal :is(#oppModal,#propertyModal).ux-window.on.crm-window-maximized{left:12px!important;top:12px!important;width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px)!important;height:calc(100dvh - 24px)!important;max-height:calc(100dvh - 24px)!important}
 body.premium-ui-v2 #oppModal .opp-editor-head{padding:12px 16px!important}
 body.premium-ui-v2 #oppModal .opp-editor-footer{padding:8px 12px!important;gap:6px}
 body.premium-ui-v2 #oppModal .opp-editor-meta{flex:1 1 100%;font-size:12px}
 body.premium-ui-v2 #oppModal .opp-editor-actions{width:100%;gap:6px}
 body.premium-ui-v2 #oppModal .opp-editor-actions .btn{flex:1 1 80px;padding:6px 8px!important}
}
@media(max-height:500px){body.premium-ui-v2 #oppModal .opp-editor-head{padding:8px 12px!important}body.premium-ui-v2 #oppModal .opp-editor-head h2{font-size:18px!important}body.premium-ui-v2 #oppModal .opp-editor-head p{margin:4px 0!important}body.premium-ui-v2 #oppModal .oppNav{max-height:64px}body.premium-ui-v2 #oppModal .oppNav .opp-nav-item{padding:4px 8px!important}body.premium-ui-v2 #oppModal .opp-editor-footer{padding:6px 12px!important}body.premium-ui-v2 #oppModal .opp-editor-meta{font-size:12px;line-height:1.25}}

/* Final legibility pass: keep all labels and contextual notifications readable. */
body.premium-ui-v2 #oppModal .opp-editor-main :is(h3,h4),body.premium-ui-v2 #propertyModal .property-editor-body h3{font-size:16px!important;line-height:1.4!important}
body.premium-ui-v2 #oppModal :is(#oppInfo,#oppScoring,#oppTasks,#oppNotes,#oppFiles) .field label{font-size:12px!important;line-height:1.4!important}
body.premium-ui-v2 .home-filter{grid-template-rows:auto 40px!important;gap:8px!important}
body.premium-ui-v2 .home-filter :is(input,select){height:40px!important;font-size:14px!important;border-radius:8px!important}
body.premium-ui-v2 #control .ceo-filter-shell select{font-size:14px!important;border-radius:8px!important}
body.premium-ui-v2 #alertToast.alert-toast{position:static!important;width:auto!important;max-width:none;margin:12px 24px 0;box-sizing:border-box;cursor:pointer}
body.premium-ui-v2 #controlDrill :is(.control-drill-kicker,.control-drill-sub,.control-drill-stat span,th){font-size:12px!important;line-height:1.4}
body.premium-ui-v2 #controlDrill .control-drill-table{font-size:14px}
body.premium-ui-v2 #controlDrill .control-drill-body{min-height:0;overscroll-behavior:contain}
body.premium-ui-v2 #controlDrill .control-drill-close{width:40px;height:40px;flex-shrink:0;border-radius:8px}
@media(max-height:500px){body.premium-ui-v2 #controlDrill .control-drill-summary{display:flex;gap:8px;padding:8px 16px}body.premium-ui-v2 #controlDrill .control-drill-head{padding:8px 16px}body.premium-ui-v2 #controlDrill .control-drill-stat{padding:6px}}

body.premium-ui-v2 #assistedFollowupDialog:has(#afForm[hidden]) #afSave,body.premium-ui-v2 #commissionReceiptsDialog:has(#receiptForm[hidden]) #receiptSave{display:none!important}
/* Search icons retain their own space after normalizing input padding. */
body.premium-ui-v2 .opp-search-wrap input,body.premium-ui-v2 .property-search-wrap input{padding-left:36px!important}
body.premium-ui-v2 #pipeline .opp-hero h2{font-size:26px!important;line-height:1.2!important}
body.premium-ui-v2 #permissionsModal .permissions-body h3{font-size:16px!important;line-height:1.4}
body.premium-ui-v2 #permissionsModal .permissions-body select{min-height:40px;font-size:14px;border-radius:8px}
body.premium-ui-v2 #control :is(.ceo-panel-sub,.ceo-chart-subtitle,.ceo-data-note,.ceo-data-note small,.ceo-kpi small,.ceo-kpi .ksub){font-size:12px!important;line-height:1.45}
