/* Compact global toolbar and shared sales card. No process access rules are expressed in CSS. */
html body #crmGlobalToolbar #globalCrmContacts{display:contents!important}
html body #crmGlobalToolbar #globalAskAi{order:10}
html body #crmGlobalToolbar #myWorkSchedule{order:20}
html body #crmGlobalToolbar .urgent-office-trigger{order:30}
html body #crmGlobalToolbar .office-mini-call{order:31}
html body #crmGlobalToolbar #globalCrmContacts>button:first-child{order:40;font-size:0!important;gap:3px!important;min-width:30px}
html body #crmGlobalToolbar #globalCrmContacts>button:first-child .message-unread-label{font-size:var(--fs-xs,11.5px)!important}
html body #crmGlobalToolbar #urgentCrmBell{order:50}
html body #crmGlobalToolbar .phone-theme-switch{order:60}
html body #crmGlobalToolbar .user{order:70}
html body #crmGlobalToolbar #phoneTestToggle{order:80}
html body #crmGlobalToolbar .user>span{display:none!important}
html body #crmGlobalToolbar .user .avatar,.sales-evaluation-face{position:relative;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;flex:0 0 34px;overflow:hidden;border-radius:50%;background:var(--surface2);color:var(--muted)}
html body #crmGlobalToolbar .user .avatar img,.sales-evaluation-face img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
html body .flow-step:not(.active){color:color-mix(in srgb,var(--muted) 66%,var(--surface))!important;background:transparent!important;border-color:transparent!important;opacity:.66;filter:grayscale(1)}
html body .flow-step:not(.active):hover,html body .flow-step:not(.active):focus-visible{opacity:1}
html body .flow-step:not(.active) :is(.step-number,.step-num){color:inherit!important;border-color:currentColor!important;background:transparent!important}
html body :is(#myClients,#officeWorkspace,.office-phone-dialog) .mc-list-search{display:flex!important;gap:10px!important;align-items:center!important;padding:10px!important}
html body :is(#myClients,#officeWorkspace,.office-phone-dialog) .mc-list-search .mc-search-field{flex:1 1 auto!important;max-width:none!important;min-width:0!important;width:auto!important}
html body :is(#myClients,#officeWorkspace,.office-phone-dialog) .mc-list-search :is(#mcSearch,.mc-search){width:100%!important;max-width:none!important;min-width:0!important}
html body :is(#myClients,#officeWorkspace,.office-phone-dialog) .mc-list-search .mc-filters:empty{display:none!important}
html body #myClients .mc-extra-filters{flex:0 0 34px!important;margin:0!important}
html body #myClients .mc-extra-filters>div{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px!important;width:min(380px,calc(95vw / var(--crm-ui-scale,1)))!important;max-height:65vh;overflow:auto}
html body #myClients .mc-extra-filters:not([open])>div{display:none!important}
html body #myClients .mc-extra-filters .mc-filter-result{grid-column:1 / -1;display:flex;align-items:center;justify-content:space-between;gap:10px}
html body #phoneUnifiedClientCard>[data-client-topic=communication]{display:none!important}
html body #clientPersistentWorkbench.sales-separated-work>#clientWorkDetails,html body #clientPersistentWorkbench.sales-separated-work>.work-tabs-bar{display:none!important}
html body :is(#salesSplitWork,.office-shared-work){display:grid;gap:10px}
html body :is(#salesSplitWork,.office-shared-work)[hidden]{display:none!important}
html body :is(#salesSplitWork,.office-shared-work)>details{padding:0!important;margin:0!important;border:1px solid var(--border);border-radius:10px;overflow:hidden;background:var(--surface)}
html body :is(#salesSplitWork,.office-shared-work)>details>summary{display:flex;align-items:center;gap:6px!important;padding:13px 14px!important;min-height:44px;box-sizing:border-box;color:var(--text);background:var(--surface2)}
html body :is(#salesSplitWork,.office-shared-work)>details>summary :is(strong,span,b){font-size:var(--fs-lg,14px)!important;font-weight:var(--fw-s,600)}
html body :is(#salesSplitWork,.office-shared-work) [data-sales-count=tasks]{color:var(--text)!important}
html body :is(#salesSplitWork,.office-shared-work) [data-sales-count=notes]{color:var(--text)!important}
html body :is(#salesSplitWork,.office-shared-work)>details>article{padding:12px!important;min-width:0!important;margin:0!important;width:auto!important}
html body :is(#salesSplitWork,.office-shared-work)>details:not([open])>:not(summary){display:none!important}
html body :is(#salesSplitWork,.office-shared-work) article>header{display:flex;justify-content:flex-end;gap:8px;margin:0 0 10px!important}
html body :is(#salesSplitWork,.office-shared-work) article>header>h3{display:none!important}
html body #auditEvaluationCard .sales-evaluation-identity{display:grid!important;grid-template-columns:36px minmax(0,1fr);gap:3px 10px;align-items:center;min-width:0}
html body #auditEvaluationCard .sales-evaluation-identity .sales-evaluation-face{grid-column:1;grid-row:1 / span 2}
html body #auditEvaluationCard .sales-evaluation-identity h3{grid-column:2;font-size:var(--fs-lg,14px)!important;margin:0!important}
html body #auditEvaluationCard .sales-evaluation-identity p{grid-column:2;font-size:var(--fs-sm,12.5px)!important;color:var(--muted)!important;margin:0!important}
html body #auditEvaluationCard.evaluation-collapsed .sales-evaluation-face,html body #auditEvaluationCard.evaluation-collapsed .sales-evaluation-identity p{display:none!important}
html body #auditEvaluationCard.evaluation-collapsed .sales-evaluation-identity{grid-template-columns:minmax(0,1fr)}
html body #auditEvaluationCard.evaluation-collapsed .sales-evaluation-identity h3{grid-column:1}
html body #auditVerificationCard.sales-audit-blocked{opacity:.46;filter:saturate(.3)}
html body #auditVerificationCard .audit-document-step>.doc-head{display:none!important}
html body #auditGapsCard>.doc-head{display:flex!important;align-items:center;gap:8px!important}
html body #auditGapsCard>.doc-head h3{flex:1;min-width:0}
html body #auditGapsCard>.doc-head :is(#auditGapsDisclosureStatus,.stage-disclosure-toggle){flex:none}
html body #salesAddAuditGapToggle{min-width:28px;height:28px;min-height:28px;padding:0!important;background:none!important;border:0!important;color:var(--amber)!important;font-size:var(--fs-2xl,22px)!important}
html body #salesAddAuditGap{padding:12px;border:1px solid var(--crm-review-line);border-radius:8px;background:var(--crm-review-surface);margin:0 0 12px}
html body #salesAddAuditGap[hidden]{display:none!important}
html body #salesAddAuditGap label{display:grid;gap:6px}
html body #salesAddAuditGap input{box-sizing:border-box;width:100%;padding:9px;font:inherit;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:6px}
html body #salesAddAuditGap>div{display:flex;gap:8px;justify-content:flex-end;margin-top:8px}
html body #salesAddAuditGap p{color:var(--red);margin:8px 0 0}
html body #salesAddAuditGap p:empty{display:none}
html body #auditGapsCard #clientAuditMissingList{max-height:340px;overflow:auto}

/* Immediate editors and compact, reversible work entries in the shared sales card. */
html body :is(#salesSplitWork,.office-shared-work) .sales-work-plus{border:0!important;background:transparent!important;padding:0!important;width:22px;min-width:22px;height:24px;min-height:24px;font-size:var(--fs-2xl,22px)!important;line-height:1;color:var(--crm-task-accent)!important;margin-right:2px}
html body :is(#salesSplitWork,.office-shared-work) :is([data-sales-work=notes],[data-office-work=note]) .sales-work-plus{color:var(--crm-note-accent,var(--amber))!important}
html body :is(#salesSplitWork,.office-shared-work) :is(#workAddTasks,#workAddNote),html body :is(#salesSplitWork,.office-shared-work) article>header{display:none!important}
html body :is(#salesSplitWork,.office-shared-work) #clientWorkNote{display:block!important;width:100%;min-height:85px!important;box-sizing:border-box;margin:0 0 8px!important}
html body :is(#salesSplitWork,.office-shared-work) #workSaveNote{display:inline-flex!important;margin-bottom:12px}
html body :is(#salesSplitWork,.office-shared-work) #clientWorkNotes{display:grid!important;gap:8px;margin-top:12px}
html body :is(#salesSplitWork,.office-shared-work) #clientWorkTasks{display:grid;gap:8px}
html body :is(#salesTaskComposer,.office-shared-work .mx-inline-work){display:grid;gap:9px;padding:12px;margin:0 0 14px;border:1px solid var(--crm-task-line,var(--work-blue-line));border-radius:8px;background:var(--crm-task-surface,var(--work-blue-bg))}
html body :is(#salesTaskComposer,.office-shared-work .mx-inline-work)[hidden]{display:none!important}
html body :is(#salesTaskComposer,.office-shared-work .mx-inline-work) textarea{box-sizing:border-box;display:block;width:100%;min-height:85px;padding:10px;font:inherit;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:6px;resize:vertical}
html body :is(#salesTaskComposer,.office-shared-work .mx-inline-work) .mx-work-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}
html body :is(#salesTaskComposer,.office-shared-work .mx-inline-work) label{display:grid;gap:5px;font-size:var(--fs-sm,12.5px)!important;color:var(--muted)}
html body :is(#salesTaskComposer,.office-shared-work .mx-inline-work) :is(input,select){min-width:0;width:100%;box-sizing:border-box}
html body :is(#salesTaskComposer,.office-shared-work .mx-inline-work) .mx-work-urgent{display:flex;align-items:center;gap:6px}
html body :is(#salesTaskComposer,.office-shared-work .mx-inline-work) input[type=checkbox]{width:15px;height:15px}
html body :is(#salesTaskComposer,.office-shared-work .mx-inline-work) .mx-work-footer{display:flex;justify-content:flex-end}
html body :is(#salesTaskComposer,.office-shared-work .mx-inline-work) .mx-send{background:var(--crm-task-accent);color:var(--surface);border:0;border-radius:6px;padding:8px 12px;font:inherit;cursor:pointer}
html body :is(#salesTaskComposer,.office-shared-work .mx-inline-work) [hidden]{display:none!important}
html body :is(#salesTaskComposer,.office-shared-work .mx-inline-work) .mx-work-error{color:var(--red,#E5484D);margin:0;font-size:var(--fs-sm,12.5px)}
html body :is(#salesSplitWork,.office-shared-work) .sales-work-row{display:grid!important;grid-template-columns:18px minmax(0,1fr) 25px;gap:8px;padding:10px!important;margin:0!important;border-radius:7px;align-items:start}
html body :is(#salesSplitWork,.office-shared-work) .sales-work-row>input{width:15px;height:15px;margin:4px 0 0;accent-color:var(--crm-task-accent)}
html body :is(#salesSplitWork,.office-shared-work) .crm-note-card>input{accent-color:var(--amber)}
html body :is(#salesSplitWork,.office-shared-work) .sales-work-copy{min-width:0}
html body :is(#salesSplitWork,.office-shared-work) .sales-work-copy p{margin:0 0 5px;font-size:var(--fs-md,13.5px);line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
html body :is(#salesSplitWork,.office-shared-work) .sales-work-copy small{display:block;color:var(--muted);font-size:var(--fs-xs,11.5px);line-height:1.5}
html body :is(#salesSplitWork,.office-shared-work) .sales-work-star{border:0;background:none;color:var(--muted);font-size:var(--fs-2xl,22px);padding:0;line-height:1.2;cursor:pointer}
html body :is(#salesSplitWork,.office-shared-work) .sales-work-star[aria-pressed=true]{color:var(--amber)}
html body :is(#salesSplitWork,.office-shared-work) .sales-work-edit{grid-column:2 / 4;justify-self:end;min-height:25px;padding:3px 8px;font-size:var(--fs-xs,11.5px)}
html body :is(#salesSplitWork,.office-shared-work) .sales-work-done{padding:6px 10px!important;opacity:.7;background:var(--surface2)!important;border-color:var(--border)!important}
html body :is(#salesSplitWork,.office-shared-work) .sales-work-done .sales-work-detail{display:none}
html body :is(#salesSplitWork,.office-shared-work) .sales-work-done .sales-work-copy p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0}

/* Audit identity is presented once, in the shared client header. */
html body .stage-view[data-view="prep"] .prep-company[hidden]{display:none!important}

html body .topbar .breadcrumb #mcNavAdd.sales-add-client{position:static;transform:none;display:inline-flex;align-items:center;justify-content:center;flex:0 0 36px!important;width:36px!important;min-width:36px!important;height:36px!important;margin-left:2px;padding:0!important;border:0;background:transparent;color:var(--text,#fff);font-size:0!important;line-height:1!important;overflow:visible;cursor:pointer;border-radius:6px}
html body .topbar .breadcrumb #mcNavAdd.sales-add-client:hover,html body .topbar .breadcrumb #mcNavAdd.sales-add-client:focus-visible{background:var(--surface2);outline:1px solid var(--border)}
html body .topbar .breadcrumb #mcNavAdd.sales-add-client[hidden]{display:none!important}
html body :is(#myClients,#officeWorkspace,.office-phone-dialog) .mc-list-search>[data-mc="own-leads"]{flex:0 0 auto!important;width:auto!important;min-width:0!important;padding:5px 8px!important;height:32px;white-space:nowrap;font-size:var(--fs-xs,11.5px)!important;margin:0!important}
html body #myClients [data-mc="own-leads"][aria-pressed="true"]{border-color:var(--blue);background:var(--surface2)}

/* First contact uses the same workflow strip and the same moved work sections as audit. */
html body .workspace.own-leads-open{display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;overflow:hidden}
html body .workspace.own-leads-open>#workflow{display:flex!important;min-width:0;overflow-x:auto}
html body .workspace.own-leads-open>#ownLeadView{min-height:0;height:100%;overflow:auto}
html body #ownLeadView [data-own-shared-work]{min-width:0;margin-top:12px}
html body #ownLeadView :is(#salesSplitWork,.office-shared-work){width:100%;box-sizing:border-box}

html body #ownLeadView>[data-own-identity]{flex:none;min-width:0;padding:12px 16px 0}
html body #ownLeadView>[data-own-identity]>.crm-client-identity{margin:0!important}
html body #ownLeadView .own-answer-missing::placeholder{color:var(--amber,#E5A83D)!important;opacity:1!important}
html body #ownLeadView [data-own-company=reason]:placeholder-shown::placeholder{color:var(--amber,#E5A83D)!important;opacity:1!important}

/* Live calls reuse the audit's two independent work sections. */
html body #compactLiveTasks.live-gap-only :is(#saveLiveQuickTasks,#detailLiveTask,#liveQuickTaskTwo,#liveTaskExtra){display:none!important}
html body #compactLiveTasks.live-gap-only{background:var(--surface)!important;border:1px solid var(--border)!important}
html body .crm-header-meet{display:inline-flex;align-items:center;gap:6px;margin-left:8px}
html body .crm-header-meet :is(a,button){font-size:var(--fs-sm,12.5px);color:var(--blue);background:none;border:0;padding:3px;cursor:pointer}

/* Company scope sits above the numbers. Each quote keeps the same compact fields. */
html body #newFirmSalesChoice{display:none!important}
html body #salesPriceCalculator .company-quote-scope{display:flex;gap:6px;align-items:center;margin:0 0 8px;min-width:0}
html body #salesPriceCalculator .company-quote-scope>label{flex:1;min-width:0;margin:0}
html body #salesPriceCalculator .company-quote-scope>select{flex:1;min-width:0}
html body #salesPriceCalculator .company-quote-scope select{width:100%;font-size:var(--fs-xs,11.5px)!important;margin:0;height:32px}
html body #salesPriceCalculator .company-quote-scope>span{font-size:var(--fs-xs,11.5px);white-space:nowrap;color:var(--muted)}
html body #salesPriceCalculator :is(#quoteCompanyName,.company-quote-body>input){width:100%;box-sizing:border-box}
html body #salesPriceCalculator .company-quote-extra{margin-top:12px;border:1px solid var(--border);border-radius:8px;overflow:hidden;background:var(--surface)}
html body #salesPriceCalculator .company-quote-extra>summary{display:flex;gap:8px;align-items:center;padding:11px;cursor:pointer;background:var(--surface2);font-size:var(--fs-sm,12.5px)}
html body #salesPriceCalculator .company-quote-extra>summary>span{margin-left:auto}
html body #salesPriceCalculator .company-quote-extra:not([open])>.company-quote-body{display:none!important}
html body #salesPriceCalculator .company-quote-body{padding:10px}
html body #salesPriceCalculator .company-quote-footer{padding-top:8px}
html body #salesPriceCalculator #companyQuoteStatus{font-size:var(--fs-sm,12.5px);color:var(--muted);line-height:1.4}

.nf-quote-line{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;padding:9px 0;border-bottom:1px solid var(--border);font-size:var(--fs-sm,12.5px)}

/* Saved company quotes: one editor, separate durable quote rows. */
html body #salesPriceCalculator :is(.company-quote-primary,.company-quote-extra,#addCompanyQuote)[hidden]{display:none!important}
html body .company-quote-saved{display:flex;align-items:center;gap:12px;padding:9px 10px;border:1px solid color-mix(in srgb,var(--green,#2FBF87) 45%,transparent);border-radius:7px;background:color-mix(in srgb,var(--green,#2FBF87) 7%,transparent);color:var(--green,#2FBF87);margin:6px 0;min-width:0}
html body .company-quote-saved>span{display:grid;gap:2px;min-width:0}
html body .company-quote-saved>span:nth-child(2){margin-left:auto;text-align:right;white-space:nowrap}
html body .company-quote-saved :is(strong,small){font-size:var(--fs-sm,12.5px)!important;line-height:1.4;--crm-type-body:var(--fs-sm,12.5px);color:inherit!important}
html body .company-quote-saved small{font-size:var(--fs-xs,11.5px)!important;--crm-type-body:var(--fs-xs,11.5px)}
html body .company-quote-saved .btn{margin:0!important;padding:4px 6px!important;font-size:var(--fs-xs,11.5px)!important;min-height:26px!important}
html body :is(#outcomeQuoteStrip,#mainQuoteStrip,#liveQuoteStrip) .quote-values:has(.company-quote-saved){display:block;width:100%}
html body #companyQuoteStatus:empty{display:none}
html body #callMode .live-gap-only{display:none!important}

/* A quote action belongs to its row, never to the calculator's absolute overlay. */
html body #salesPriceCalculator #companyQuoteLedger .company-quote-saved{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;align-items:center!important;gap:10px!important}
html body #salesPriceCalculator #companyQuoteLedger [data-edit-quote]{position:static!important;inset:auto!important;transform:none!important;float:none!important;display:inline-flex!important;width:auto!important;min-width:0!important;max-width:none!important;height:28px!important;min-height:28px!important;flex:0 0 auto!important;align-self:center!important;justify-self:end!important;margin:0!important;padding:4px 8px!important;font-size:var(--fs-xs,11.5px)!important;line-height:1.2!important}

/* Agreed missing-data deadlines are readable without searching inside four small cards. */
html body #missingStatusPanel #missingAgreedDeadline{margin:0 0 10px;padding:0;font-size:var(--fs-lg,14px)!important;--crm-type-body:var(--fs-lg,14px);font-weight:var(--fw-s,600);line-height:1.45;color:var(--amber,#E5A83D)}
html body #missingStatusPanel #missingDeadlineStatus{white-space:pre-line;font-size:var(--fs-sm,12.5px)!important;--crm-type-body:var(--fs-sm,12.5px);font-weight:var(--fw-s,600);line-height:1.55;color:var(--amber,#E5A83D)}
html body #missingStatusPanel .missing-channel-schedule{display:block;margin:5px 0 9px;line-height:1.45}
html body #missingStatusPanel .missing-channel-schedule b{font-size:var(--fs-sm,12.5px)!important;--crm-type-body:var(--fs-sm,12.5px);color:var(--text,#d5d7db);font-weight:var(--fw-s,600);line-height:1.45}
html body #missingStatusPanel .missing-channel-schedule small{display:block;font-size:var(--fs-xs,11.5px)!important;--crm-type-body:var(--fs-xs,11.5px);color:var(--muted,#9ba1aa);line-height:1.45}
html body #missingStatusPanel #missingAgreedDeadline:not(.has-deadline){color:var(--muted,#9ba1aa)}

html body :is(#myClients,#officeWorkspace,.office-phone-dialog) .mc-list-search .mc-quick-filters>div{inset:100% 0 auto auto;grid-template-columns:1fr!important;width:180px!important;gap:4px!important;padding:8px!important}
html body :is(#myClients,#officeWorkspace,.office-phone-dialog) .mc-quick-filters>div>button{width:100%;justify-content:flex-start;padding:8px 10px;text-align:left}
html body :is(#myClients,#officeWorkspace,.office-phone-dialog) .mc-quick-filters>div>button[aria-pressed=true]{border-color:var(--blue);background:var(--surface2);color:var(--text)}
html body :is(#myClients,#officeWorkspace,.office-phone-dialog) .mc-quick-filters>summary::after{display:none!important}

/* Live call workspace: a small top edge reveals the same global toolbar. */
@media(min-width:1025px) and (hover:hover){
 html body:has(#callMode.open) #sidebar{display:none!important}
 html body:has(#callMode.open) #crmGlobalToolbar.topbar{position:fixed!important;top:0!important;left:0!important;right:0!important;z-index:2100!important;transform:translateY(calc(-100% + 8px));transition:transform .16s ease;overflow:visible!important}
 html body:has(#callMode.open) #crmGlobalToolbar.topbar:hover,
 html body:has(#callMode.open) #crmGlobalToolbar.topbar:focus-within{transform:translateY(0)}
 html body:has(#callMode.open) #crmGlobalToolbar.topbar::after{content:'';position:absolute;bottom:2px;left:calc(50% - 23px);width:46px;height:3px;border-radius:3px;background:var(--muted);opacity:.6;pointer-events:none}
 html body:has(#callMode.open) #callMode.open{top:8px!important}
}
@media(prefers-reduced-motion:reduce){html body:has(#callMode.open) #crmGlobalToolbar.topbar{transition:none}}
/* Focus stays outside the characters; never use an inset highlight on price fields. */
html.crm-premium-trial body #salesPriceCalculator :is(input,select){box-sizing:border-box!important;line-height:1.4!important;padding:7px 10px!important;min-height:36px!important;min-width:0;max-width:100%}
html.crm-premium-trial body #salesPriceCalculator :is(input,select):is(:focus,:focus-visible){outline:1px solid var(--premium-action-ink,var(--blue))!important;outline-offset:1px!important;box-shadow:none!important}
html body #salesPriceCalculator :is(label,.price-counts){gap:7px}
html body .company-formation-fee{padding:10px 0;margin:8px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
html body .company-formation-fee[hidden]{display:none!important}
html body .company-formation-fee small{display:block;color:var(--muted);font-size:var(--fs-xs,11.5px);line-height:1.5;margin-top:5px}
html body #salesPriceCalculator .company-quote-agreed{display:grid;gap:6px}
html.crm-premium-trial body :is(#clientPersistentWorkbench #workSaveNote,#bpxsMessenger .mx-inline-work[data-kind=note] .mx-send){background:#17191c!important;color:#e4e7eb!important;border:1px solid #3d4248!important;box-shadow:none!important}
html.crm-premium-trial body :is(#clientPersistentWorkbench #workSaveNote,#bpxsMessenger .mx-inline-work[data-kind=note] .mx-send):hover{background:#25292e!important}
html body .mx-work-owners{display:flex!important;gap:6px 12px!important;flex-wrap:wrap;min-width:0;padding:0!important;margin:0!important;border:0!important}
html body .mx-work-owners legend{font-size:var(--fs-sm,12.5px);padding:0;margin-bottom:6px;color:var(--muted)}
html body .mx-work-owners label{display:inline-flex!important;align-items:center;gap:5px!important;white-space:nowrap;margin:0!important}
html body .mx-work-owners input{width:15px!important;height:15px!important;min-height:15px!important;flex:0 0 15px;margin:0!important;accent-color:var(--crm-task-accent)}
html body :is(.ws-days,.availability,.crm-date-days) button:disabled{opacity:.35!important;color:var(--muted)!important;background:transparent!important;box-shadow:none!important;cursor:not-allowed}
/* Shared work: saved items first; compose only after an explicit add action. */
html body :is(#salesSplitWork,.office-shared-work) #salesNoteComposer[hidden],html body :is(#salesSplitWork,.office-shared-work) .sales-work-add[hidden]{display:none!important}
html body :is(#salesSplitWork,.office-shared-work) .sales-work-add{display:inline-flex;align-items:center;gap:7px;width:auto!important;min-height:30px;padding:4px 0!important;border:0!important;background:transparent!important;color:var(--muted)!important;font-size:var(--fs-sm,12.5px)!important;cursor:pointer;margin-top:7px}
html body :is(#salesSplitWork,.office-shared-work) .sales-work-add span{color:var(--crm-task-accent);font-size:var(--fs-2xl,22px)!important}
html body :is(#salesSplitWork,.office-shared-work) :is([data-sales-add=note],[data-office-compose=note]) span{color:var(--crm-note-accent,var(--amber))}
html body :is(#salesTaskComposer,.office-shared-work .mx-inline-work){padding:9px;gap:7px;margin:8px 0 0}
html body :is(#salesSplitWork,.office-shared-work) #clientWorkNote,html body :is(#salesTaskComposer,.office-shared-work .mx-inline-work) textarea{min-height:54px!important;height:54px;padding:7px!important;font-size:var(--fs-md,13.5px)!important;margin:0!important}
html body :is(#salesTaskComposer,.office-shared-work .mx-inline-work) .mx-work-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px}
html body :is(:is(#salesTaskComposer,.office-shared-work .mx-inline-work),#bpxsMessenger .mx-inline-work) .mx-work-owners{grid-column:1/-1;display:flex!important;align-items:center;gap:14px!important;border:0!important;padding:0!important;margin:0!important;min-width:0}
html body :is(:is(#salesTaskComposer,.office-shared-work .mx-inline-work),#bpxsMessenger .mx-inline-work) .mx-work-owners legend{font-size:var(--fs-xs,11.5px)!important;padding:0;margin-bottom:4px;color:var(--muted)}
html body :is(:is(#salesTaskComposer,.office-shared-work .mx-inline-work),#bpxsMessenger .mx-inline-work) .mx-work-owners label{display:inline-flex!important;align-items:center;gap:5px!important;margin:0!important;white-space:nowrap;font-size:var(--fs-sm,12.5px)!important}
html body :is(:is(#salesTaskComposer,.office-shared-work .mx-inline-work),#bpxsMessenger .mx-inline-work) .mx-work-owners input{width:14px!important;min-width:14px!important;height:14px!important;min-height:14px!important;padding:0!important}
html body :is(#salesTaskComposer,.office-shared-work .mx-inline-work) .mx-work-fields>label :is(input,button){min-height:30px!important;height:30px;padding:4px 7px!important;font-size:var(--fs-sm,12.5px)!important}
html body #salesNoteComposer{margin-top:8px}
html body :is(#salesSplitWork,.office-shared-work) #workSaveNote{margin:7px 0 0!important;font-size:var(--fs-sm,12.5px)!important;min-height:30px!important}
html body :is(#salesSplitWork,.office-shared-work) .sales-work-row{padding:7px 9px!important;gap:6px}
html body :is(#salesSplitWork,.office-shared-work) .sales-work-copy p{font-size:var(--fs-sm,12.5px)!important;line-height:1.4;margin-bottom:3px}

/* Schedule and appearance live in the profile, using the original controls. */
html body #crmGlobalToolbar #myWorkSchedule{display:none!important}
html body[data-crm-access-role=office] #crmGlobalToolbar :is(.urgent-office-trigger,.office-mini-call){display:none!important}
html body #myProfileWorkspace .profile-name-theme{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-width:0}
html body #myProfileWorkspace .profile-name-theme h1{margin:0}
html body #myProfileWorkspace .profile-name-theme .phone-theme-switch{display:inline-flex!important;flex:none;padding:0;border:0;background:transparent;align-self:center}
html body #myProfileWorkspace .profile-name-theme .phone-theme-switch button{width:36px;height:36px;min-height:36px;padding:0;border:0;background:transparent;color:var(--muted);font-size:var(--fs-2xl,22px)!important;line-height:1;box-shadow:none}
html body #myProfileWorkspace .profile-name-theme .phone-theme-switch button:focus-visible{outline:2px solid var(--blue);outline-offset:2px}

html body #officeWorkspace .office-shared-work{display:grid;gap:8px;margin:8px 0}
html body #officeWorkspace .office-work-section{margin:0!important;border:1px solid var(--border);border-radius:10px;background:var(--surface);overflow:hidden}
html body #officeWorkspace .office-work-section>summary{display:flex;align-items:center;gap:8px;padding:12px 15px!important;font-size:var(--fs-lg,14px)!important;cursor:pointer;list-style:none}
html body #officeWorkspace .office-work-section>summary::after{content:'';width:6px;height:6px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);margin-left:auto}
html body #officeWorkspace .office-work-section[open]>summary::after{transform:rotate(225deg)}
html body #officeWorkspace .office-work-section>summary::-webkit-details-marker{display:none}
html body #officeWorkspace .office-work-section>:not(summary){margin:0 14px 10px}
html body #officeWorkspace .office-work-list{display:grid;gap:6px}
html body #officeWorkspace .office-work-section .sales-work-add[hidden]{display:none!important}
html body #officeWorkspace .office-work-section .mx-inline-work[data-kind=note] .mx-send{background:#17191c!important;color:#e4e7eb!important;border:1px solid #3d4248!important}
html body #officeWorkspace .office-entity-comparison{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:8px 0}
html body #officeWorkspace .office-entity-comparison>div{padding:10px;border:1px solid var(--border);border-radius:8px;display:grid;gap:4px}
html body #officeWorkspace .office-entity-comparison :is(p,small){margin:0;font-size:var(--fs-sm,12.5px)}
html body #officeWorkspace .office-entity-comparison strong{font-size:var(--fs-lg,14px)}
html body #officeWorkspace .ops-content{gap:8px}
html body #officeWorkspace .ops-content>.ops-details{margin:8px 0!important}
@media(max-width:650px){html body #officeWorkspace .office-entity-comparison{grid-template-columns:1fr}}

/* Audit's working tools are compact vertically; verification preserves chronology. */
html body #salesSplitWork .sales-work-plus{display:inline-flex!important;align-items:center;gap:4px;width:auto!important;min-width:54px!important;height:var(--swp-h,28px)!important;min-height:var(--swp-h,28px)!important;padding:0 5px!important;flex:none;order:2;margin-left:auto;margin-right:5px}
html body #salesSplitWork .sales-work-plus>span{font-size:var(--fs-2xl,22px)!important;line-height:1!important;color:inherit!important}
html body #salesSplitWork .sales-work-plus>small{font-size:var(--fs-xs,11.5px)!important;color:var(--muted)!important}
html body #salesSplitWork .sales-work-plus:focus-visible{outline:2px solid currentColor;outline-offset:2px;border-radius:4px}
html body #callMode .call-detail-scroll{padding:6px 12px 12px!important}
html body #callMode #clientPersistentWorkbench{margin-top:0!important;padding-top:0!important}
html body #callMode #salesSplitWork{gap:5px!important;margin:0!important}
html body #callMode #salesSplitWork>details>summary{min-height:34px!important;padding:3px 9px!important}
html body #callMode #salesSplitWork>details>article{padding:7px!important}
html body #callMode #salesPriceCalculator{padding:9px!important;margin-top:6px!important}
html body #callMode #salesPriceCalculator .compact-price-head{padding-bottom:5px!important;margin-bottom:5px!important}
html body #callMode #salesPriceCalculator .audit-calculator-body{gap:5px!important}
html body #callMode #salesPriceCalculator :is(.price-counts,.company-quote-scope,.company-quote-primary){gap:5px!important;margin-top:4px!important;margin-bottom:4px!important}
html body #callMode #salesPriceCalculator :is(input,select){min-height:30px!important;height:30px!important;padding:3px 7px!important}
html body #callMode #salesPriceCalculator .btn{min-height:32px!important;padding:5px 8px!important}
html body #callMode #salesPriceCalculator label{gap:3px!important;margin-top:3px!important}
html body :is(#salesTaskComposer,.office-shared-work .mx-inline-work) .mx-work-fields>label select{min-height:30px!important;height:30px;padding:4px 7px!important;font-size:var(--fs-sm,12.5px)!important}
html body .audit-buy-now{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;margin:0 0 10px;border:1px solid var(--border);border-radius:9px;background:var(--surface2)}
html body .audit-buy-now[hidden]{display:none!important}
html body .audit-buy-now strong{font-size:var(--fs-lg,14px)!important}
html body .audit-buy-now .btn{font-size:var(--fs-sm,12.5px)!important;min-height:34px}
@media(min-width:1050px){html body :is(#myClients,#phoneView,.workspace) [data-view="review"] .review-grid{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:12px!important;align-items:start}html body [data-view="review"] :is(.review-left-column,.review-right-column){min-width:0;grid-column:auto!important}}
@media(max-width:1049px){html body [data-view="review"] .review-grid{grid-template-columns:minmax(0,1fr)!important}.audit-buy-now{flex-wrap:wrap}}
html body #callMode .audit-buy-now{flex-direction:column;align-items:stretch;margin:0 0 8px;padding:9px}
html body #callMode .audit-buy-now .btn{white-space:normal;line-height:1.35;height:auto}
html body #callMode #salesSplitWork .sales-work-plus>span{font-size:var(--fs-2xl,22px)!important;font-weight:var(--fw-n,400)!important;line-height:1!important}
html body #callMode #salesPriceCalculator :is(.price-result,.price-total,.price-confirmation,.company-quote-agreed){margin-top:6px!important;margin-bottom:6px!important;padding-top:5px!important;padding-bottom:5px!important}
html body #callMode #salesPriceCalculator .audit-price-hint{font-size:var(--fs-xs,11.5px)!important;line-height:1.35!important;margin:4px 0!important}
html body #callMode #salesPriceCalculator #salesPriceBreakdown{margin:5px 0 0!important;padding-top:4px!important}
html body #callMode #salesPriceCalculator #priceFirstMonthTerms{margin:4px 0!important;font-size:var(--fs-xs,11.5px)!important;line-height:1.3!important}
html body #callMode #salesPriceCalculator :is(#salesPriceApplied,#salesPriceError){margin:4px 0!important;line-height:1.3!important}
html body #callMode #salesPriceCalculator :is(#applySalesPrice,#requestCustomQuote){margin-top:4px!important}
html body #callMode #salesPriceCalculator .company-quote-agreed{padding:0!important;margin:3px 0!important}
html body [data-view=review] #phoneUnifiedClientCard{width:100%;grid-column:1/-1}
html body [data-view=review] #phoneUnifiedWork{width:100%;grid-column:1/-1}

html body #stageDisclosure-audit-gaps>#salesAddAuditGapToggle{font-size:var(--fs-sm,12.5px)!important;width:auto;min-height:32px;height:auto;padding:5px 9px!important;margin:0 0 10px;border:1px solid var(--border)!important}

/* Formularz zadania w rozmowie (2026-09-19): Ja/Biuro w rzędzie, Pilne pod Ja, data i godzina jedna pod drugą po prawej, bez etykiet. */
html #bpxsMessenger .mx-work-dates,html body .office-shared-work .mx-inline-work .mx-work-dates{display:contents}
html body #salesTaskComposer .mx-work-fields{grid-template-columns:minmax(0,1fr) auto!important;gap:6px 12px!important;align-items:start}
html body #salesTaskComposer .mx-work-owners{grid-column:1!important;display:grid!important;grid-template-columns:auto auto;gap:5px 14px!important;align-items:center;justify-content:start}
html body #salesTaskComposer .mx-work-owners .mx-work-urgent{grid-column:1;grid-row:2}
html body #salesTaskComposer .mx-work-dates{grid-column:2;display:grid;gap:6px;align-content:start}
html body #salesTaskComposer .mx-work-dates .mx-work-label{display:none}
html body #salesTaskComposer .mx-work-dates>label{display:block;margin:0}
html body #salesTaskComposer .mx-work-dates :is(input,select){width:136px!important;min-width:0}

/* 23.09: etapy klienta — wykonane zielone, bieżący etap klienta z zieloną ramką (niezależnie od oglądanego) */
html body #workflow .flow-step.done,html body #workflow .flow-step.is-now{--flow-ok:#2FBF87;opacity:1;filter:none}
html[data-theme="light"] body #workflow .flow-step.done,html[data-theme="light"] body #workflow .flow-step.is-now{--flow-ok:#1d5e45}
html body #workflow .flow-step[data-stage=finale]:is(.done,.is-now){--flow-ok:#2fbf87}
html[data-theme="light"] body #workflow .flow-step[data-stage=finale]:is(.done,.is-now){--flow-ok:#1F9E6A}
html body #workflow .flow-step.done{color:var(--flow-ok)!important}
html body #workflow .flow-step.done .step-num{color:var(--flow-ok)!important;border-color:var(--flow-ok)!important;background:color-mix(in srgb,var(--flow-ok) 16%,transparent)!important}
html body #workflow .flow-step.is-now{border-color:var(--flow-ok)!important;color:var(--flow-ok)!important}

/* 26.09 (Dawid): plus w okruszkach „CRM › Sprzedaż” = plus z menu bocznego (.nl-side-add) */
/* 28.09 (Dawid): plus u góry dokładnie jak plus przy „Sprzedaż” w menu bocznym */html body .topbar .breadcrumb #mcNavAdd.sales-add-client{display:inline-grid!important;place-items:center;width:22px!important;height:22px!important;min-width:22px!important;min-height:22px!important;padding:0!important;margin-left:8px!important;border:1px solid var(--border)!important;border-radius:6px!important;background:var(--surface)!important;color:var(--muted)!important;flex:0 0 22px!important;vertical-align:middle}
html body .topbar .breadcrumb #mcNavAdd.sales-add-client:hover,html body .topbar .breadcrumb #mcNavAdd.sales-add-client:focus-visible{border-color:var(--nl-accent-line);color:var(--nl-accent-ink);background:var(--nl-accent-soft);outline:0}
html body .topbar .breadcrumb #mcNavAdd.sales-add-client svg.sales-add-mark{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round;display:block}

/* 13.10.2026 (Dawid): na telefonie przycisk „+ Zadania / + Notatki” ma pole dotyku 36 px (na komputerze bez zmian, 28 px) */
@media (max-width:1024px){:root{--swp-h:36px}}
/* 13.10.2026 (Dawid, sesja L): pozostałe pola dotyku na telefonie ≥36 px — tylko wysokość/padding na ≤1024 px, bez !important (specyficzność wyższa od reguły źródłowej):
   .pd-ikona 24 → 36 (pokaż/usuń podmiot, zmienna w crm-audyt-podmioty.js), .pd-losuj 26 → 36, button.crm-bug-okno 30 → 36, .done-b 29 → 36 (skrypt rozmowy i odprawy),
   #phoneFold-* 30 → 36 (zwijane sekcje, zmienna --crm-disc), #intakePasteButton 32 → 36 */
@media (max-width:1024px){
:root{--pd-ikona:36px;--pd-losuj:36px;--crm-disc:36px}
html body button.crm-bug-okno{width:36px;height:36px}
html body :is(.as-krok,.sk-step) .done-b{min-height:36px;padding-top:6px;padding-bottom:6px}
/* #phoneFold-* (.crm-disclosure-control): rozmiar przez --crm-disc w crm-unified-disclosures.css */
html body #crmIntake #intakePasteButton{min-height:36px}
}
