/* CRM 1.0: keep existing modules, forms, themes and semantic color variables. */
.database-session,.database-session>div,.database-session nav,.vault-item-actions,.vault-pagination{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.database-session{justify-content:space-between;margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid var(--theme-border)}
.database-session [role=timer]{font-size:12px;color:var(--theme-muted);min-width:90px;font-variant-numeric:tabular-nums}
.database-session button{display:inline-flex;align-items:center;gap:7px}
.database-panel .database-layout{grid-template-columns:minmax(240px,300px) minmax(0,1fr)}
.database-panel .database-list,.database-panel .database-detail{min-width:0}
.database-panel .database-toolbar{align-items:flex-start}
.database-panel .database-toolbar h2{display:flex;align-items:center;gap:8px}
.database-panel .database-detail>header{align-items:flex-start}
.database-panel .database-detail>header>button{flex:none;width:36px;height:36px;padding:8px}
.database-panel h3,.database-panel .empty h3{color:var(--theme-text)}
.vault-pagination{justify-content:space-between;padding:12px 0}
.vault-pagination small,.vault-editor>small{color:var(--theme-muted);font-size:11px}
.vault-editor{width:100%;margin-top:10px;min-width:0}
.vault-editor>small{display:block;margin-bottom:8px;overflow-wrap:anywhere}
.vault-editor fieldset{border:0;padding:0;min-width:0;display:grid;gap:12px}
.vault-editor label,.vault-operator-search>label:first-child{display:grid;gap:6px;min-width:0}
.vault-editor input,.vault-editor select,.vault-editor textarea,.vault-operator-search input:not([type=checkbox]){width:100%;min-width:0;border:1px solid var(--theme-border);border-radius:6px;background:var(--theme-background);color:var(--theme-text);padding:9px 11px;font:inherit}
.vault-editor textarea{min-height:85px}
.vault-editor form{padding-top:12px}
.database-secret{flex-wrap:wrap;gap:10px!important}
.database-secret>.vault-item-actions{flex:1;justify-content:flex-end;min-width:220px}
.database-secret .vault-editor{flex:1}
.vault-operator-search{display:grid;grid-template-columns:minmax(200px,1fr) auto;gap:12px;align-items:end;margin:20px 0}
.vault-operator-search>small{grid-column:1/-1;color:var(--theme-muted)}
.vault-operator-search label.database-checkbox{display:flex!important;align-items:center;gap:8px;white-space:nowrap}
.vault-operator-search .database-checkbox input[type=checkbox]{width:14px!important;height:14px!important;min-width:14px!important;min-height:14px!important;padding:0!important}
.operator-vault-row>div:first-child{min-width:0;overflow-wrap:anywhere}
.operator-vault-row .pbx-actions{flex-shrink:0;flex-wrap:wrap}
@media(max-width:1050px){.database-panel .database-layout{grid-template-columns:minmax(210px,260px) minmax(0,1fr)}.operator-vault-row{flex-wrap:wrap}.operator-vault-row .pbx-actions{width:100%}}
@media(max-width:760px){.database-panel .database-layout{grid-template-columns:minmax(0,1fr)}.vault-operator-search{grid-template-columns:minmax(0,1fr)}.database-session{align-items:flex-start}.database-panel .database-list{max-height:none}.database-session>div{width:100%;justify-content:space-between}.database-secret>.vault-item-actions{min-width:0;width:100%;justify-content:flex-start}.database-secret .vault-editor{flex-basis:100%}}
html[data-crm-palette][data-crm-mode][data-crm-density]{--background:var(--theme-background)!important;--foreground:var(--theme-text)!important;--card:var(--theme-surface)!important;--card-foreground:var(--theme-text)!important;--popover:var(--theme-surface)!important;--popover-foreground:var(--theme-text)!important;--primary:var(--theme-primary)!important;--primary-foreground:var(--theme-surface)!important;--muted:color-mix(in srgb,var(--theme-muted) 7%,var(--theme-surface))!important;--muted-foreground:var(--theme-muted)!important;--accent:color-mix(in srgb,var(--theme-primary) 12%,var(--theme-surface))!important;--accent-foreground:var(--theme-text)!important;--border:var(--theme-border)!important;--input:var(--theme-border)!important;--ring:var(--theme-primary)!important}
:root{--sidebar-width:15rem;--sidebar-width-icon:5.75rem}
/* The visible control keeps the existing 216/92px menu and saved per-user mode. */
.crm-sidebar-toggle{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:36px;border:1px solid var(--theme-border);border-radius:6px;font:inherit;font-size:12px;line-height:1.35;cursor:pointer;flex-shrink:0}
.crm-sidebar-toggle svg{flex:none;width:18px;height:18px}
.crm-sidebar-toggle:focus-visible{outline:2px solid var(--theme-primary);outline-offset:3px}
.crm-sidebar-toggle--toolbar{width:36px;background:var(--theme-surface);color:var(--theme-text)}
.crm-sidebar-toggle--toolbar:hover{background:color-mix(in srgb,var(--theme-primary) 10%,var(--theme-surface))}
.crm-sidebar-toggle--header{width:100%;margin-top:18px;padding:9px 8px;background:color-mix(in srgb,var(--theme-sidebar-soft) 55%,var(--theme-sidebar));border-color:color-mix(in srgb,var(--theme-muted) 35%,var(--theme-sidebar));color:#d8e6ec}
.crm-sidebar-toggle--header:hover{background:var(--theme-sidebar-soft);color:#fff}
[data-slot=sidebar][data-collapsible=icon] .crm-sidebar-toggle--header{flex-direction:column;gap:4px;margin-top:12px;padding:7px 3px;font-size:10px;min-height:54px}
/* One horizontal inset and a fixed icon track keep every menu item aligned. */
html[data-crm-palette][data-crm-mode][data-crm-density] [data-slot=sidebar] [data-slot=sidebar-menu]{padding:0!important;width:100%;gap:0}
html[data-crm-palette][data-crm-mode][data-crm-density] [data-slot=sidebar][data-collapsible=icon] [data-slot=sidebar-content]{padding:0 6px 10px!important}
html[data-crm-palette][data-crm-mode][data-crm-density] [data-slot=sidebar][data-collapsible=icon] [data-slot=sidebar-menu-item]{width:100%;min-width:0}
html[data-crm-palette][data-crm-mode][data-crm-density] [data-slot=sidebar][data-collapsible=icon] [data-slot=sidebar-menu-button]{display:grid!important;grid-template-rows:20px 28px!important;grid-template-columns:minmax(0,1fr)!important;align-content:center!important;justify-items:center!important;gap:5px!important;height:72px!important;min-height:72px!important;padding:7px 2px!important;margin:0!important;flex:none}
html[data-crm-palette][data-crm-mode][data-crm-density] [data-slot=sidebar][data-collapsible=icon] [data-slot=sidebar-menu-button]>svg{grid-row:1;align-self:center;width:18px!important;height:18px!important;margin:0!important}
html[data-crm-palette][data-crm-mode][data-crm-density] [data-slot=sidebar][data-collapsible=icon] [data-slot=sidebar-menu-button]>span{grid-row:2;align-self:center;justify-self:stretch;max-width:none!important;width:100%!important;font-size:10px!important;line-height:14px!important;padding:0!important;text-align:center;white-space:normal!important;overflow:visible!important;word-break:normal}
html[data-crm-palette][data-crm-mode][data-crm-density] [data-slot=sidebar][data-state=expanded] [data-slot=sidebar-menu-button]{display:grid!important;grid-template-columns:18px minmax(0,1fr);align-items:center;column-gap:11px}
html[data-crm-palette][data-crm-mode][data-crm-density] [data-slot=sidebar][data-state=expanded] [data-slot=sidebar-menu-button]>svg{margin:0!important}
body{font-variant-numeric:tabular-nums}
[data-slot=sidebar][data-collapsible=icon] [data-slot=sidebar-container],[data-slot=sidebar][data-collapsible=icon] [data-slot=sidebar-gap]{width:5.75rem!important}
[data-slot=sidebar][data-collapsible=icon] [data-slot=sidebar-menu-button]{width:100%!important;height:auto!important;min-height:4.4rem;display:flex;flex-direction:column;justify-content:center;gap:.3rem;padding:.6rem .2rem!important;border-radius:.5rem;font-size:.66rem;line-height:1.25;white-space:normal;text-align:center}
[data-slot=sidebar][data-collapsible=icon] [data-slot=sidebar-menu-button] span:last-child{display:block!important;max-width:5rem;overflow:visible;white-space:normal;text-overflow:clip}
[data-slot=sidebar][data-collapsible=icon] [data-slot=sidebar-menu-button] svg{width:1.2rem;height:1.2rem;flex:none}
html[data-crm-palette][data-crm-mode][data-crm-density] [data-slot=sidebar][data-collapsible=icon] [data-slot=sidebar-menu-button]{width:100%!important;min-width:0!important;max-width:none!important;height:auto!important;min-height:4rem;padding:.55rem .25rem!important;font-size:.66rem;overflow:visible}
html[data-crm-palette][data-crm-mode][data-crm-density] [data-slot=sidebar][data-collapsible=icon] [data-slot=sidebar-menu-button] span{width:100%;white-space:normal!important;overflow:visible!important;line-height:1.3;word-break:normal}
[data-slot=sidebar][data-collapsible=icon] .brand{justify-content:center;padding:.4rem!important}[data-slot=sidebar][data-collapsible=icon] .brand>div,[data-slot=sidebar][data-collapsible=icon] .nav-label{display:none}
[data-slot=sidebar][data-collapsible=icon] [data-slot=sidebar-footer]{padding:.4rem!important}
[data-slot=sidebar][data-collapsible=icon] [data-slot=sidebar-header]{padding:.75rem .4rem;overflow:hidden}
[data-slot=sidebar-menu-button]{transition:background-color .18s,color .18s;min-height:2.5rem}
[data-slot=sidebar-menu-button][data-active=true]{box-shadow:inset 3px 0 var(--theme-primary)}
.crm10-appearance{display:inline-flex;position:relative}.crm10-appearance button{display:flex;align-items:center;gap:.4rem;white-space:nowrap}.crm10-appearance>small{position:absolute;top:100%;right:0;min-width:15rem;z-index:60;background:var(--theme-surface);padding:.5rem;color:var(--theme-danger)}
.crm-mail-workspace{min-width:0;width:100%}.crm-mail-workspace iframe{display:block;width:100%;height:calc(100dvh - 205px);min-height:550px;border:1px solid var(--theme-border);border-radius:8px;background:var(--theme-background)}.crm-mail-workspace>p{padding:12px;color:var(--theme-muted)}
.crm-phone-settings{padding:20px;border:1px solid var(--theme-border);border-radius:8px;background:var(--theme-surface);margin-bottom:24px}.crm-phone-settings h2{font-size:18px;font-weight:650}.crm-phone-settings>p{font-size:12px;color:var(--theme-muted);margin:8px 0 16px}.crm-phone-settings .softphone{position:static;width:100%;max-width:620px;margin:0;box-shadow:none}
html[data-crm-palette][data-crm-mode][data-crm-density] .crm10-client-dialog[data-slot=dialog-content]{width:min(1320px,96vw)!important;max-width:min(1320px,96vw)!important;height:min(960px,94dvh);max-height:94dvh;display:flex;flex-direction:column;gap:0;padding:0;overflow:hidden;background:var(--theme-surface);border:1px solid var(--theme-border);border-radius:1rem;color:var(--theme-text)}
.crm10-client-dialog .card-header{padding:1.2rem 1.5rem;border-bottom:1px solid var(--theme-border);flex:none;text-align:left}
.crm10-client-body{display:grid;grid-template-columns:minmax(0,1fr) 330px;min-height:0;flex:1;overflow:hidden}
.crm10-client-main{min-width:0;min-height:0;overflow-y:auto;padding:1.2rem 1.5rem;overscroll-behavior:contain}
.crm10-client-main .card-tabs{height:auto;overflow:visible}.crm10-client-main .card-scroll{max-height:none;height:auto;overflow:visible;padding:1rem 0}.crm10-client-main [data-slot=tabs-content]{overflow:visible}
.crm10-phone-side{border-left:1px solid var(--theme-border);background:color-mix(in srgb,var(--theme-primary) 3%,var(--theme-surface));padding:1rem;overflow-y:auto;overscroll-behavior:contain}
.crm10-side-heading{display:flex;flex-direction:column;gap:.2rem;margin-bottom:1rem}.crm10-side-heading b{font-size:1.05rem}.crm10-side-heading small{color:var(--theme-muted)}
.crm10-phone-side .softphone{width:100%;margin:0;max-height:none}.crm10-phone-side .softphone-actions{display:flex;flex-wrap:wrap;gap:.4rem}.crm10-phone-side select{max-width:100%}
.crm10-call-work{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:start;gap:1rem;margin-bottom:1.2rem}.crm10-call-work:empty{display:none}
.crm10-call-work .softphone-call-notes,.crm10-next-task{margin:0!important;padding:1rem;border:1px solid var(--theme-border);border-radius:.65rem;background:var(--theme-surface);min-width:0}
.crm10-next-task h3{display:flex;align-items:center;gap:.4rem;font-size:.9rem;font-weight:650;margin:0 0 .4rem}.crm10-next-task small{display:block;color:var(--theme-muted);font-size:.72rem;line-height:1.5;margin-bottom:.7rem}.crm10-next-task form{display:grid;gap:.5rem}.crm10-next-task input{width:100%;min-width:0;background:var(--theme-surface);color:var(--theme-text);border:1px solid var(--theme-border);border-radius:.35rem;padding:.55rem;font-size:.8rem}.crm10-next-task p{font-size:.8rem;display:flex;align-items:center;gap:.3rem}
.crm10-overview{margin:0 0 1.3rem;padding:1.4rem;background:var(--theme-surface);border:1px solid var(--theme-border);border-radius:.85rem;color:var(--theme-text)}
.crm10-overview>header{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.3rem}.crm10-overview header small{color:var(--theme-muted);font-size:.7rem;letter-spacing:.04em}.crm10-overview h2{display:flex;align-items:center;gap:.5rem;font-size:1.15rem;font-weight:650;margin:.3rem 0 0;letter-spacing:-.02em}.crm10-overview-tools{display:flex;align-items:center;gap:.5rem}.crm10-overview input{padding:.45rem .6rem;background:var(--theme-surface);border:1px solid var(--theme-border);border-radius:.4rem;color:var(--theme-text)}
.crm10-plan-grid{display:grid;grid-template-columns:1.35fr 1fr 1fr;gap:1rem}.crm10-plan-grid>div{padding:1rem;border-radius:.6rem;background:color-mix(in srgb,var(--theme-muted) 5%,var(--theme-surface));display:flex;flex-direction:column;gap:.45rem}.crm10-plan-grid small{color:var(--theme-muted);font-size:.75rem}.crm10-plan-grid strong{font-size:clamp(1.4rem,2.2vw,2rem);font-weight:650;letter-spacing:-.04em;white-space:nowrap}.crm10-plan-grid span{font-size:.72rem;color:var(--theme-muted)}.crm10-progress{height:.4rem;background:var(--theme-border);border-radius:1rem;overflow:hidden;margin:.3rem 0}.crm10-progress i{display:block;height:100%;background:var(--theme-primary);border-radius:inherit}
.crm10-plan-hint,.crm10-team-status p{font-size:.75rem;color:var(--theme-muted);line-height:1.6;margin-top:.8rem}.crm10-team-status{margin-top:1rem;border-top:1px solid var(--theme-border);padding-top:.8rem}.crm10-team-status summary{cursor:pointer;font-weight:600}.crm10-table-scroll{overflow-x:auto}.crm10-table-scroll table{width:100%;border-collapse:collapse}.crm10-table-scroll th{text-align:left;color:var(--theme-muted);font-size:.72rem;font-weight:500;white-space:nowrap}.crm10-table-scroll td{font-size:.8rem}.crm10-table-scroll th,.crm10-table-scroll td{padding:.75rem;border-bottom:1px solid var(--theme-border)}.crm10-state{font-size:.72rem;padding:.25rem .4rem;border-radius:.25rem;background:color-mix(in srgb,var(--theme-muted) 12%,transparent)}.crm10-state.working{color:var(--theme-success);background:color-mix(in srgb,var(--theme-success) 10%,transparent)}.crm10-state.paused{color:var(--theme-warning)}
.crm10-access{padding:1rem}.crm10-access h1{font-size:1.6rem;font-weight:650;letter-spacing:-.03em}.crm10-access header p{max-width:65ch;line-height:1.6;color:var(--theme-muted);margin:.6rem 0 1.5rem}.crm10-access-dialog[data-slot=dialog-content]{width:min(850px,94vw);max-width:min(850px,94vw);max-height:90dvh;display:flex;flex-direction:column;background:var(--theme-surface);color:var(--theme-text);padding:1.5rem}.crm10-access-scroll{overflow-y:auto;min-height:0;padding-right:.6rem}.crm10-access-scroll h3{font-size:.95rem;font-weight:650;margin:1.2rem 0}.crm10-access-scroll p{font-size:.75rem;color:var(--theme-muted);line-height:1.6}.crm10-check-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.crm10-check-grid label{display:flex;align-items:center;gap:.65rem;font-size:.85rem}.crm10-check-grid input{accent-color:var(--theme-primary);width:1rem;height:1rem}.crm10-access-dialog footer{display:flex;justify-content:flex-end;gap:.6rem;border-top:1px solid var(--theme-border);padding-top:1rem;margin-top:1rem}.crm10-access-dialog button{display:flex;gap:.4rem;align-items:center}
html[data-crm-appearance=colorful] .crm10-plan-grid>div:nth-child(1){background:color-mix(in srgb,var(--theme-primary) 11%,var(--theme-surface))}html[data-crm-appearance=colorful] .crm10-plan-grid>div:nth-child(2){background:color-mix(in srgb,var(--theme-success) 11%,var(--theme-surface))}html[data-crm-appearance=colorful] .crm10-plan-grid>div:nth-child(3){background:color-mix(in srgb,var(--theme-warning) 11%,var(--theme-surface))}html[data-crm-appearance=colorful] [data-slot=sidebar-menu-item]:nth-child(4n+1) svg{color:#78cdd4}html[data-crm-appearance=colorful] [data-slot=sidebar-menu-item]:nth-child(4n+2) svg{color:#83cfa6}html[data-crm-appearance=colorful] [data-slot=sidebar-menu-item]:nth-child(4n+3) svg{color:#e5b379}html[data-crm-appearance=colorful] [data-slot=sidebar-menu-item]:nth-child(4n) svg{color:#b5a4e3}
@media(max-width:1000px){.crm10-call-work{grid-template-columns:1fr}.crm10-client-body{grid-template-columns:minmax(0,1fr) 290px}.crm10-plan-grid{grid-template-columns:1fr 1fr}.crm10-plan-goal{grid-column:1/-1}.crm10-appearance span{display:none}}
@media(max-width:680px){html[data-crm-palette][data-crm-mode][data-crm-density] .crm10-client-dialog[data-slot=dialog-content]{width:100vw!important;max-width:100vw!important;height:100dvh;max-height:100dvh;border-radius:0}.crm10-client-body{display:flex;flex-direction:column;overflow-y:auto}.crm10-phone-side{order:-1;flex:none;max-height:38dvh;border-left:0;border-bottom:1px solid var(--theme-border);padding:.7rem}.crm10-side-heading{display:none}.crm10-client-main{overflow:visible;padding:1rem;flex:none}.crm10-client-dialog .card-header{padding:.8rem 1rem}.crm10-client-dialog .card-header h2{font-size:1.05rem}.crm10-overview{padding:1rem}.crm10-overview>header{align-items:flex-start}.crm10-overview input{max-width:8rem}.crm10-plan-grid{gap:.5rem}.crm10-plan-grid>div{padding:.75rem}.crm10-plan-grid strong{font-size:1.25rem}.crm10-check-grid{grid-template-columns:1fr}.crm10-access-dialog footer{flex-wrap:wrap}}
@media(min-width:768px){body:has([data-slot=sidebar]) .business-owner-nav{padding-left:calc(16rem + 1.5rem)}body:has([data-slot=sidebar][data-state=collapsed]) .business-owner-nav{padding-left:calc(5.75rem + 1.5rem)}}
@media(prefers-reduced-motion:reduce){[data-slot=sidebar-menu-button]{transition:none}}
@media(max-width:680px){.crm10-phone-side{position:sticky;top:0;z-index:2;background:var(--theme-surface)}.crm10-client-main .card-tabs>[role=tablist]{max-width:100%;overflow-x:auto;justify-content:flex-start}}

/* Shared shell from the approved reference: 216/92 navigation, compact tables,
   distinct KPI surfaces and quiet form controls throughout the real modules. */
html[data-crm-palette][data-crm-mode][data-crm-density] body{font-family:"Segoe UI",Arial,sans-serif!important;font-size:14px;line-height:1.5}
html[data-crm-palette][data-crm-mode][data-crm-density] .workspace{max-width:1560px;width:100%;padding:28px 32px 42px;margin:0 auto}
html[data-crm-palette][data-crm-mode][data-crm-density] [data-slot=sidebar][data-state=expanded] [data-slot=sidebar-gap],html[data-crm-palette][data-crm-mode][data-crm-density] [data-slot=sidebar][data-state=expanded] [data-slot=sidebar-container]{width:216px!important}
html[data-crm-palette][data-crm-mode][data-crm-density] [data-slot=sidebar-content]{padding:0 12px 12px;gap:3px}
html[data-crm-palette][data-crm-mode][data-crm-density] [data-slot=sidebar-header]{padding:24px 20px 22px}
html[data-crm-palette][data-crm-mode][data-crm-density] [data-slot=sidebar] .brand{gap:10px;padding:0;font-size:22px;letter-spacing:-.7px}
html[data-crm-palette][data-crm-mode][data-crm-density] [data-slot=sidebar] .brand-icon{width:34px;height:34px;border-radius:7px;background:color-mix(in srgb,var(--theme-primary) 24%,transparent)}
html[data-crm-palette][data-crm-mode][data-crm-density] [data-slot=sidebar] .brand small{font-size:8px;letter-spacing:1.4px;margin-top:3px}
html[data-crm-palette][data-crm-mode][data-crm-density] [data-slot=sidebar] .nav-label{font-size:9px;letter-spacing:1.1px;padding:10px 12px 8px;opacity:.7}
html[data-crm-palette][data-crm-mode][data-crm-density] [data-slot=sidebar][data-state=expanded] [data-slot=sidebar-menu-button]{min-height:43px;height:auto;padding:10px 12px;font-size:12px;gap:11px;border-radius:6px;color:#c4d2d7;margin:1px 0}
html[data-crm-palette][data-crm-mode][data-crm-density] [data-slot=sidebar][data-state=expanded] [data-slot=sidebar-menu-button]>span{white-space:normal!important;line-height:1.35;overflow:visible!important;text-overflow:clip!important;min-width:0;flex:1}
html[data-crm-palette][data-crm-mode][data-crm-density] [data-slot=sidebar-menu-button][data-active=true]{background:color-mix(in srgb,var(--theme-primary) 23%,var(--theme-sidebar))!important;color:#f3f8fa!important;box-shadow:inset 3px 0 var(--theme-primary)}
html[data-crm-palette][data-crm-mode][data-crm-density] [data-slot=sidebar-menu-button]>svg{width:18px;height:18px;stroke-width:1.7}
html[data-crm-palette][data-crm-mode][data-crm-density] .topbar{min-height:66px;height:auto;padding:11px 28px;border-bottom:1px solid var(--theme-border);gap:12px;box-shadow:none;background:var(--theme-surface)}
html[data-crm-palette][data-crm-mode][data-crm-density] .topbar>span:first-of-type{font-size:11px;color:var(--theme-muted)}
html[data-crm-palette][data-crm-mode][data-crm-density] .topbar b{font-weight:500;color:var(--theme-text)}
html[data-crm-palette][data-crm-mode][data-crm-density] .page-heading{margin-bottom:24px;gap:16px}
html[data-crm-palette][data-crm-mode][data-crm-density] .page-heading h1{font-size:28px;font-weight:650;letter-spacing:-.7px;line-height:1.25}
html[data-crm-palette][data-crm-mode][data-crm-density] .primary,html[data-crm-palette][data-crm-mode][data-crm-density] .secondary,html[data-crm-palette][data-crm-mode][data-crm-density] .theme-trigger{min-height:36px;border-radius:6px;padding:8px 13px;font-size:12px;font-weight:600;box-shadow:none}
html[data-crm-palette][data-crm-mode][data-crm-density] .primary:active:not(:disabled),html[data-crm-palette][data-crm-mode][data-crm-density] .secondary:active:not(:disabled){transform:translateY(1px)}
html[data-crm-palette][data-crm-mode][data-crm-density] .theme-trigger{width:36px;padding:8px}
html[data-crm-palette][data-crm-mode][data-crm-density] .workspace-tabs{gap:4px;border-bottom:1px solid var(--theme-border);margin-bottom:20px;padding-bottom:8px;background:transparent;overflow-x:auto}
html[data-crm-palette][data-crm-mode][data-crm-density] .workspace-tabs button{border-radius:5px;min-height:34px;padding:8px 12px;font-size:11px;background:transparent;box-shadow:none;border:0;white-space:nowrap}
html[data-crm-palette][data-crm-mode][data-crm-density] .workspace-tabs button[aria-selected=true]{background:color-mix(in srgb,var(--theme-primary) 11%,var(--theme-surface));color:var(--theme-primary);box-shadow:inset 0 -2px var(--theme-primary)}
html[data-crm-palette][data-crm-mode][data-crm-density] .metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;border:0!important;padding:0!important;margin:0 0 24px}
html[data-crm-palette][data-crm-mode][data-crm-density] .metrics>button{min-height:138px;padding:18px 20px!important;border:1px solid var(--theme-border)!important;border-radius:8px;background:var(--theme-surface)!important;box-shadow:none;display:flex;flex-direction:column;align-items:flex-start;text-align:left}
html[data-crm-palette][data-crm-mode][data-crm-density] .metrics>button>span{font-size:11px;font-weight:400;display:flex;align-items:center;justify-content:space-between;width:100%;gap:10px}
html[data-crm-palette][data-crm-mode][data-crm-density] .metrics>button>strong{font-size:30px;line-height:1.4;letter-spacing:-.8px;font-weight:650;margin:7px 0 3px}
html[data-crm-palette][data-crm-mode][data-crm-density] .metrics>button>small{font-size:10px;font-weight:400;line-height:1.5}
html[data-crm-palette][data-crm-mode][data-crm-density] [aria-label="KPI за день"]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;border:0;padding:0;margin:20px 0}
html[data-crm-palette][data-crm-mode][data-crm-density] [aria-label="KPI за день"]>article{min-width:0;padding:18px 20px!important;border:1px solid var(--theme-border)!important;border-radius:8px;background:var(--theme-surface)}
html[data-crm-palette][data-crm-mode][data-crm-density] [aria-label="KPI за день"]>article h3{font-size:11px;font-weight:500}
html[data-crm-palette][data-crm-mode][data-crm-density] [aria-label="KPI за день"]>article strong{font-size:30px;font-weight:650;letter-spacing:-.8px;margin:7px 0}
html[data-crm-palette][data-crm-mode][data-crm-density] .data-panel,html[data-crm-palette][data-crm-mode][data-crm-density] .table-panel{border:1px solid var(--theme-border);border-radius:9px;box-shadow:none;background:var(--theme-surface)}
html[data-crm-palette][data-crm-mode][data-crm-density] .toolbar{border-bottom:1px solid var(--theme-border);gap:10px;padding:16px 18px;flex-wrap:wrap}
html[data-crm-palette][data-crm-mode][data-crm-density] .toolbar input,html[data-crm-palette][data-crm-mode][data-crm-density] .toolbar [role=combobox]{min-height:35px;border-radius:6px;font-size:12px}
html[data-crm-palette][data-crm-mode][data-crm-density] .workspace table{font-size:12px;border-collapse:collapse}
html[data-crm-palette][data-crm-mode][data-crm-density] .workspace th{font-size:10px;font-weight:500;padding:11px 18px;background:color-mix(in srgb,var(--theme-muted) 5%,var(--theme-surface));color:var(--theme-muted);border-block:1px solid var(--theme-border)}
html[data-crm-palette][data-crm-mode][data-crm-density] .workspace td{padding:14px 18px;border-bottom:1px solid var(--theme-border);font-size:12px}
html[data-crm-palette][data-crm-mode][data-crm-density] .workspace tbody tr:hover{background:color-mix(in srgb,var(--theme-primary) 4%,var(--theme-surface))}
html[data-crm-palette][data-crm-mode][data-crm-density] .workspace td small{font-size:10px;line-height:1.6}
html[data-crm-palette][data-crm-mode][data-crm-density] .company-avatar{border-radius:7px;width:34px;height:34px;font-size:12px}
html[data-crm-palette][data-crm-mode][data-crm-density] .crm10-overview{padding:0;border:0;border-radius:0;background:transparent;margin-bottom:26px}
html[data-crm-palette][data-crm-mode][data-crm-density] .crm10-overview>header{margin-bottom:18px}.crm10-overview>header small{font-size:9px;letter-spacing:1px}.crm10-overview h2{font-size:18px;letter-spacing:-.3px}
html[data-crm-palette][data-crm-mode][data-crm-density] .crm10-plan-grid>div{border:1px solid var(--theme-border);border-radius:8px;padding:20px;background:var(--theme-surface)}
html[data-crm-palette][data-crm-mode][data-crm-density] .crm10-plan-grid strong{font-size:30px;letter-spacing:-.9px}
html[data-crm-palette][data-crm-mode][data-crm-density] .crm10-team-status{border:1px solid var(--theme-border);border-radius:8px;padding:15px 18px;background:var(--theme-surface);margin-top:18px;font-size:12px}
html[data-crm-palette][data-crm-mode][data-crm-density] .crm10-team-status p{max-width:75ch}
html[data-crm-palette][data-crm-mode][data-crm-density] .crm10-client-dialog .card-header{padding:22px 26px}
html[data-crm-palette][data-crm-mode][data-crm-density] .crm10-client-dialog input,html[data-crm-palette][data-crm-mode][data-crm-density] .crm10-client-dialog textarea,html[data-crm-palette][data-crm-mode][data-crm-density] .crm10-client-dialog [role=combobox]{border-radius:6px;font-size:13px}
html[data-crm-appearance=colorful] .metrics>button:nth-child(1),html[data-crm-appearance=colorful] [aria-label="KPI за день"]>article:nth-child(1),html[data-crm-appearance=colorful] .crm10-plan-grid>div:nth-child(1){--metric-bg:#2e699d;--metric-muted:#d6e9f8}
html[data-crm-appearance=colorful] .metrics>button:nth-child(2),html[data-crm-appearance=colorful] [aria-label="KPI за день"]>article:nth-child(2),html[data-crm-appearance=colorful] .crm10-plan-grid>div:nth-child(2){--metric-bg:#247a69;--metric-muted:#d3eee3}
html[data-crm-appearance=colorful] .metrics>button:nth-child(3){--metric-bg:#ad584f;--metric-muted:#fce5df}
html[data-crm-appearance=colorful] .metrics>button:nth-child(4),html[data-crm-appearance=colorful] [aria-label="KPI за день"]>article:nth-child(3),html[data-crm-appearance=colorful] .crm10-plan-grid>div:nth-child(3){--metric-bg:#95692f;--metric-muted:#f8eace}
html[data-crm-palette][data-crm-mode][data-crm-density][data-crm-appearance=colorful] .metrics>button,html[data-crm-palette][data-crm-mode][data-crm-density][data-crm-appearance=colorful] [aria-label="KPI за день"]>article,html[data-crm-palette][data-crm-mode][data-crm-density][data-crm-appearance=colorful] .crm10-plan-grid>div{background:var(--metric-bg)!important;border-color:var(--metric-bg)!important;color:#fff!important;position:relative;overflow:hidden}
html[data-crm-palette][data-crm-mode][data-crm-density][data-crm-appearance=colorful] .metrics>button strong,html[data-crm-palette][data-crm-mode][data-crm-density][data-crm-appearance=colorful] [aria-label="KPI за день"]>article strong,html[data-crm-palette][data-crm-mode][data-crm-density][data-crm-appearance=colorful] .crm10-plan-grid strong{color:#fff!important}
html[data-crm-palette][data-crm-mode][data-crm-density][data-crm-appearance=colorful] .metrics>button>span,html[data-crm-palette][data-crm-mode][data-crm-density][data-crm-appearance=colorful] .metrics>button>small,html[data-crm-palette][data-crm-mode][data-crm-density][data-crm-appearance=colorful] [aria-label="KPI за день"]>article h3,html[data-crm-palette][data-crm-mode][data-crm-density][data-crm-appearance=colorful] [aria-label="KPI за день"]>article>span,html[data-crm-palette][data-crm-mode][data-crm-density][data-crm-appearance=colorful] .crm10-plan-grid small,html[data-crm-palette][data-crm-mode][data-crm-density][data-crm-appearance=colorful] .crm10-plan-grid span{color:var(--metric-muted)!important}
html[data-crm-appearance=colorful] .crm10-progress{background:#ffffff35}html[data-crm-appearance=colorful] .crm10-progress i{background:#c3e4d7}
@media(min-width:768px){body:has([data-slot=sidebar]) .business-owner-nav{padding-left:calc(216px + 24px)}body:has([data-slot=sidebar][data-state=collapsed]) .business-owner-nav{padding-left:calc(92px + 24px)}}
@media(max-width:1100px){html[data-crm-palette][data-crm-mode][data-crm-density] .topbar{padding:12px 20px;flex-wrap:wrap}.classic-header-security{margin-left:auto}}
@media(max-width:760px){html[data-crm-palette][data-crm-mode][data-crm-density] .workspace{padding:22px 16px 32px}html[data-crm-palette][data-crm-mode][data-crm-density] .metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}html[data-crm-palette][data-crm-mode][data-crm-density] .metrics>button{padding:16px!important;min-height:128px}html[data-crm-palette][data-crm-mode][data-crm-density] [aria-label="KPI за день"]{grid-template-columns:1fr}html[data-crm-palette][data-crm-mode][data-crm-density] .page-heading h1{font-size:25px}html[data-crm-palette][data-crm-mode][data-crm-density] .crm10-plan-grid>div{padding:16px}html[data-crm-palette][data-crm-mode][data-crm-density] .crm10-plan-grid strong{font-size:26px}html[data-crm-palette][data-crm-mode][data-crm-density] .workspace th,html[data-crm-palette][data-crm-mode][data-crm-density] .workspace td{padding:12px}.business-owner-nav{padding:10px 16px}}

/* Matched to the agreed 8766 prototype, including its dark teal surfaces. */
html[data-crm-palette][data-crm-mode][data-crm-density] .topbar{min-height:70px;padding:14px 24px;gap:12px;background:var(--theme-surface);border-bottom:1px solid var(--theme-border)}
html[data-crm-palette][data-crm-mode][data-crm-density] .topbar>span:first-of-type{font-size:11px;white-space:nowrap;color:var(--theme-muted)}
.reference-brand{font-size:37px;line-height:1;font-weight:750;letter-spacing:-4px;color:#7bc2d1}.reference-brand>span{font-size:24px;letter-spacing:-1px}
html[data-crm-palette][data-crm-mode][data-crm-density] [data-slot=sidebar] .brand-icon{background:transparent;width:40px;height:40px}
html[data-crm-palette][data-crm-mode][data-crm-density] [data-slot=sidebar][data-collapsible=icon] [data-slot=sidebar-content]{padding:0 8px}
html[data-crm-palette][data-crm-mode][data-crm-density] [data-slot=sidebar][data-collapsible=icon] [data-slot=sidebar-menu-button]{border-radius:0;border-bottom:1px solid #ffffff12;min-height:65px;gap:5px;padding:10px 2px!important;color:#d2e1eb;font-size:10px}
html[data-crm-palette][data-crm-mode][data-crm-density] [data-slot=sidebar][data-collapsible=icon] [data-slot=sidebar-menu-button][data-active=true]{box-shadow:inset 0 -3px #81c4df;background:#ffffff06}
html[data-crm-palette][data-crm-mode][data-crm-density] [data-slot=sidebar][data-collapsible=icon] [data-slot=sidebar-header]{padding:25px 12px 18px}
html[data-crm-palette][data-crm-mode][data-crm-density] [data-slot=sidebar-menu-button][data-active=true]{background:var(--theme-sidebar-soft);box-shadow:inset 3px 0 #81c4df;color:#f3f8fb}
.reference-appearance-switch{display:inline-flex;align-items:center;gap:3px;border:1px solid var(--theme-border);border-radius:7px;padding:3px;background:color-mix(in srgb,var(--theme-muted) 4%,var(--theme-surface))}
html[data-crm-palette][data-crm-mode][data-crm-density] .reference-appearance-switch button{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:4px;background:transparent;color:var(--theme-muted);font-size:11px;min-height:28px;white-space:nowrap;border:0}
html[data-crm-palette][data-crm-mode][data-crm-density] .reference-appearance-switch button[aria-pressed=true]{background:var(--theme-surface);color:var(--theme-text);box-shadow:0 1px 4px #102c3210}
.crm10-appearance{align-items:center;gap:8px}.reference-swatch{width:12px;height:12px;border-radius:3px;background:#729087}.reference-swatch.colorful{background:conic-gradient(#4283bd 25%,#35a58c 0 50%,#d39a3f 0 75%,#cb716c 0);transform:rotate(-8deg)}
.reference-mode{width:32px;height:32px;display:grid;place-items:center;border:1px solid var(--theme-border);border-radius:6px;background:transparent;color:var(--theme-muted)}
.reference-eyebrow{text-transform:uppercase;letter-spacing:1.5px;font-size:9px;font-weight:650;color:var(--theme-primary);display:block;margin-bottom:10px}.reference-intro{font-size:13px;color:var(--theme-muted);margin-top:10px;line-height:1.6}
html[data-crm-palette][data-crm-mode][data-crm-density] .workspace{padding:28px 24px 42px;max-width:1560px}
html[data-crm-palette][data-crm-mode][data-crm-density] .page-heading{align-items:center;margin-bottom:22px}
html[data-crm-palette][data-crm-mode][data-crm-density] .page-heading h1{font-size:28px;letter-spacing:-.7px;font-weight:650}
html[data-crm-mode=dark] .primary{color:#152e35!important}
html[data-crm-palette][data-crm-mode][data-crm-density] .workspace button:focus-visible,html[data-crm-palette] .reference-appearance-switch button:focus-visible{outline:2px solid var(--theme-primary);outline-offset:3px}
.reference-metrics{font-size:11px;color:var(--theme-muted);margin:8px 0 16px}.reference-metrics summary{cursor:pointer;width:max-content;padding:5px 0}.reference-metrics .metrics{margin-top:12px!important}
html[data-crm-palette][data-crm-mode][data-crm-density] .workspace[data-view=clients] .data-panel{border:0;background:transparent!important;border-radius:0;display:flex;flex-direction:column;overflow:visible}
html[data-crm-palette][data-crm-mode][data-crm-density] .workspace[data-view=clients] .panel-heading{order:0;padding:0 0 12px;min-height:0;background:transparent;border:0}
html[data-crm-palette][data-crm-mode][data-crm-density] .workspace[data-view=clients] .panel-heading h2{font-size:11px;font-weight:400;color:var(--theme-muted)}
.crm-reference-toolbar{order:-1;margin-bottom:15px}.crm-reference-toolbar-main{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.crm-reference-toolbar-main .search{width:360px;max-width:100%;margin-right:auto;min-width:220px;background:var(--theme-surface);border:1px solid var(--theme-border);border-radius:7px;padding:0 12px;display:flex;align-items:center;gap:8px;height:38px;color:var(--theme-muted)}
.crm-reference-toolbar-main .search input{background:transparent!important;border:0!important;box-shadow:none!important;outline:none;font-size:12px!important;width:100%;min-width:0;padding:0!important;color:var(--theme-text)}
html[data-crm-palette][data-crm-mode][data-crm-density] .crm-reference-toolbar-main .client-owner-filter{margin:0;display:flex;gap:6px;align-items:center;color:var(--theme-muted);font-size:0;max-width:220px}
html[data-crm-palette][data-crm-mode][data-crm-density] .crm-reference-toolbar-main select{background:var(--theme-surface);color:var(--theme-text);border:1px solid var(--theme-border);height:38px;padding:0 12px;border-radius:6px;font-size:12px;min-width:145px}
.crm-reference-advanced:not([hidden]){display:flex;flex-wrap:wrap;gap:10px;padding:14px;margin-top:12px;border:1px solid var(--theme-border);border-radius:7px;background:var(--theme-surface)}.crm-reference-advanced [role=combobox],.crm-reference-advanced input{background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important;font-size:12px!important}.crm-reference-advanced .client-domain-filter{min-width:200px}
html[data-crm-palette][data-crm-mode][data-crm-density] .crm-reference-toolbar-main .search{flex:0 1 360px;width:360px;max-width:100%;margin-right:auto;min-width:220px}
html[data-crm-palette][data-crm-mode][data-crm-density] .crm-reference-toolbar-main .client-owner-filter{flex:0 0 180px;min-width:160px;max-width:220px}
html[data-crm-palette][data-crm-mode][data-crm-density] .crm-reference-toolbar-main .client-owner-filter select{font-size:12px!important;min-width:160px;width:100%;padding:0 12px!important}
html[data-crm-palette][data-crm-mode][data-crm-density] .crm-reference-toolbar-main .client-owner-filter [role=combobox]{font-size:12px!important;min-width:160px;width:180px;min-height:38px;padding:0 12px!important;background:var(--theme-surface);color:var(--theme-text);border:1px solid var(--theme-border);border-radius:6px}
html[data-crm-palette][data-crm-mode][data-crm-density] .crm-reference-toolbar-main .search>svg{position:static!important;flex:none;width:14px;height:14px;transform:none}
html[data-crm-palette][data-crm-mode][data-crm-density] .workspace[data-view=clients] .crm-reference-toolbar,html[data-crm-palette][data-crm-mode][data-crm-density] .workspace[data-view=clients] .panel-heading{background:var(--theme-background)!important}
html[data-crm-palette][data-crm-mode][data-crm-density] .topbar .local-label{color:var(--theme-muted);background:transparent;border-color:var(--theme-border)}
html[data-crm-palette][data-crm-mode][data-crm-density] .workspace[data-view=clients] .avatar{background:var(--row-soft,color-mix(in srgb,var(--theme-muted) 9%,var(--theme-surface)))!important;color:var(--row-ink,var(--theme-muted))!important;border:0}
html[data-crm-palette][data-crm-mode][data-crm-density] .workspace-tabs{border:0;padding:0;gap:5px;margin-bottom:12px}
html[data-crm-palette][data-crm-mode][data-crm-density] .workspace-tabs button{font-size:11px;min-height:31px;padding:6px 10px;border:0;box-shadow:none;color:var(--theme-muted)}
html[data-crm-palette][data-crm-mode][data-crm-density] .workspace-tabs button[aria-selected=true]{background:color-mix(in srgb,var(--theme-primary) 16%,var(--theme-surface));color:var(--theme-primary);box-shadow:none}
html[data-crm-palette][data-crm-mode][data-crm-density] .workspace[data-view=clients] [data-slot=table-container]{border:1px solid var(--theme-border);border-bottom:0;border-radius:8px 8px 0 0;background:var(--theme-surface);overflow-x:auto}
html[data-crm-palette][data-crm-mode][data-crm-density] .workspace[data-view=clients] table{min-width:870px;table-layout:fixed;width:100%}
html[data-crm-palette][data-crm-mode][data-crm-density] .workspace[data-view=clients] th{padding:11px 18px;font-size:10px;background:color-mix(in srgb,var(--theme-muted) 4%,var(--theme-surface));border-top:0}
html[data-crm-palette][data-crm-mode][data-crm-density] .workspace[data-view=clients] td{padding:17px 18px;font-size:11px;vertical-align:middle;line-height:1.5;background:transparent}
.workspace[data-view=clients] th:first-child{width:31%}.workspace[data-view=clients] th:nth-child(2){width:19%}.workspace[data-view=clients] th:nth-child(3){width:16%}.workspace[data-view=clients] th:nth-child(4){width:17%}.workspace[data-view=clients] th:nth-child(5){width:14%}.workspace[data-view=clients] th:last-child{width:42px;padding:0!important}
html[data-crm-palette][data-crm-mode][data-crm-density] .workspace[data-view=clients] .company{gap:10px}.workspace[data-view=clients] .company-name{font-size:11px;font-weight:650;line-height:1.5;color:var(--theme-text)}
html[data-crm-palette][data-crm-mode][data-crm-density] .workspace[data-view=clients] .avatar{width:32px;height:32px;border-radius:8px;background:var(--row-soft,var(--theme-surface));color:var(--row-ink,var(--theme-muted));font-size:12px;flex:none}
.workspace[data-view=clients] .reference-client-meta{display:block;color:var(--theme-muted);font-size:10px;line-height:1.7}.workspace[data-view=clients] .company a{font-size:9px;color:var(--theme-muted);line-height:1.5;display:block}
.workspace[data-view=clients] .contact-line{color:var(--theme-text)!important;font-size:11px}.workspace[data-view=clients] .email-line{font-size:10px;color:var(--theme-muted)!important}.workspace[data-view=clients] .reference-owner{font-size:11px;overflow-wrap:anywhere}
html[data-crm-palette][data-crm-mode][data-crm-density] .workspace .badge{font-size:10px;font-weight:500;border-radius:4px;padding:3px 7px;background:var(--row-soft,color-mix(in srgb,var(--theme-primary) 12%,var(--theme-surface)));color:var(--row-ink,var(--theme-primary))}
.workspace[data-view=clients] .badge:before{content:'•';margin-right:4px}.workspace[data-view=clients] .overdue{background:transparent!important;color:var(--theme-danger)!important;font-weight:550}.workspace[data-view=clients] .next-date{color:var(--theme-text);font-size:11px}.workspace[data-view=clients] .open-card{color:var(--theme-muted)}
html[data-crm-palette][data-crm-mode][data-crm-density] .workspace[data-view=clients] .table-footer{background:var(--theme-surface);border:1px solid var(--theme-border);border-top:0;border-radius:0 0 8px 8px;font-size:10px;padding:15px 18px;color:var(--theme-muted)}
html[data-crm-palette][data-crm-mode][data-crm-density] .workspace[data-view=clients] .bottom-note{border:0;padding:0;font-size:10px;margin-top:16px;color:var(--theme-muted);background:transparent}
html[data-crm-appearance=colorful] .lead-row[data-stage=new]{--row-color:#85b9ef;--row-soft:#2c4158;--row-ink:#b1d3f5}html[data-crm-appearance=colorful] .lead-row:is([data-stage=interested],[data-stage=in_progress]){--row-color:#73c6b0;--row-soft:#28473f;--row-ink:#a0dcc9}html[data-crm-appearance=colorful] .lead-row:is([data-stage=proposal_sent],[data-stage=later],[data-stage=no_answer]){--row-color:#dfb474;--row-soft:#4b3d2a;--row-ink:#edc992}html[data-crm-appearance=colorful] .lead-row:is([data-stage=declined],[data-stage=do_not_call]){--row-color:#e5a4a1;--row-soft:#523738;--row-ink:#edb5ae}
html[data-crm-mode=light][data-crm-appearance=colorful] .lead-row[data-stage=new]{--row-soft:#eaf2fb;--row-ink:#245f91}html[data-crm-mode=light][data-crm-appearance=colorful] .lead-row:is([data-stage=interested],[data-stage=in_progress]){--row-soft:#e5f5ee;--row-ink:#1a7360}html[data-crm-mode=light][data-crm-appearance=colorful] .lead-row:is([data-stage=proposal_sent],[data-stage=later],[data-stage=no_answer]){--row-soft:#fbf1df;--row-ink:#8c5b1c}html[data-crm-mode=light][data-crm-appearance=colorful] .lead-row:is([data-stage=declined],[data-stage=do_not_call]){--row-soft:#fbeceb;--row-ink:#a04442}
html[data-crm-appearance=colorful] .lead-row>td:first-child{box-shadow:inset 3px 0 var(--row-color,transparent)}
.reference-module-menu{z-index:45;position:relative;flex:none;background:transparent;color:var(--theme-muted);padding:0;border:0;font-size:11px}.reference-module-menu>summary{cursor:pointer;list-style:none;white-space:nowrap;padding:8px;border:1px solid var(--theme-border);border-radius:6px}.reference-module-menu>summary:after{content:'⌄';margin-left:7px}.reference-module-menu>nav{position:absolute;top:calc(100% + 8px);left:0;padding:8px!important;display:flex;flex-direction:column;gap:4px;min-width:190px;background:var(--theme-surface);border:1px solid var(--theme-border);border-radius:7px;box-shadow:0 10px 30px #0f151830}.reference-module-menu:not([open])>nav{display:none!important}.reference-module-menu>nav button{text-align:left;justify-content:flex-start;min-height:36px;background:var(--theme-surface);color:var(--theme-text);border:1px solid var(--theme-border);padding:8px 12px;border-radius:5px}.reference-module-menu>nav button[aria-pressed=true]{background:var(--theme-sidebar-soft);color:var(--theme-primary)}
.business-workspace{color:var(--theme-text)}.business-workspace.is-embedded{padding:0;max-width:none;width:100%}.business-workspace.is-embedded>.panel-heading>div:first-child{display:none}.business-workspace.is-embedded>.panel-heading{justify-content:flex-end}.business-workspace .data-panel{padding:22px;background:var(--theme-surface);border:1px solid var(--theme-border);border-radius:8px}.business-workspace .secondary{background:var(--theme-surface);color:var(--theme-text);border:1px solid var(--theme-border);padding:8px 13px;border-radius:6px}.business-workspace button:disabled{opacity:.45}.business-workspace .business-table{background:var(--theme-surface);border:1px solid var(--theme-border);border-radius:8px}.business-workspace .business-table>p{padding:25px;color:var(--theme-muted)}.business-workspace .business-table th{background:color-mix(in srgb,var(--theme-muted) 5%,var(--theme-surface));font-size:11px;color:var(--theme-muted)}.business-workspace .business-table td{font-size:12px}.business-workspace .business-empty{padding:32px;background:var(--theme-surface);border:1px solid var(--theme-border);border-radius:8px}.business-empty h2{margin-bottom:10px}.business-empty p{max-width:65ch;color:var(--theme-muted)}
@media(max-width:1400px){html[data-crm-palette][data-crm-mode][data-crm-density] .topbar{gap:7px;flex-wrap:wrap}.topbar .local-label{display:none}.classic-header-security{gap:5px!important}.reference-appearance-switch button{font-size:10px!important;padding-inline:6px!important}}
@media(max-width:680px){.reference-module-menu{padding:7px 16px}.reference-eyebrow{font-size:8px}.reference-intro{font-size:12px}.reference-appearance-switch button{font-size:10px!important}.crm-reference-toolbar-main .search{width:100%}.crm-reference-toolbar-main .client-owner-filter{flex:1;max-width:none!important}.crm-reference-toolbar-main .client-owner-filter select{width:100%}.workspace[data-view=clients] .reference-metrics{margin-top:0}html[data-crm-palette][data-crm-mode][data-crm-density] .workspace[data-view=clients] .metrics{grid-template-columns:1fr 1fr}}

/* Exact client-list type scale and row rhythm from the approved HTML. */
html[data-crm-palette][data-crm-mode][data-crm-density] .workspace[data-view=clients] th{font-size:11px;background:var(--reference-surface-soft,#253335)}
html[data-crm-mode=light] .workspace[data-view=clients] th{--reference-surface-soft:#f6f8f7}
html[data-crm-palette][data-crm-mode][data-crm-density] .workspace[data-view=clients] td{padding:16px 18px;font-size:12px}
html[data-crm-palette][data-crm-mode][data-crm-density] .workspace[data-view=clients] .company-name{font-size:12px;font-weight:600}
.workspace[data-view=clients] .reference-client-meta{font-size:11px}.workspace[data-view=clients] .reference-contact-person{display:block;font-size:12px;font-weight:600;margin-bottom:3px}.workspace[data-view=clients] .contact-line{font-size:11px!important}.workspace[data-view=clients] .reference-next{font-size:11px;max-width:150px}.workspace[data-view=clients] .reference-next b{display:block;font-weight:600;margin-bottom:3px}.workspace[data-view=clients] .reference-next small{font-size:11px;color:var(--theme-muted)}.workspace[data-view=clients] .reference-next.overdue{color:#e7a38d!important}.workspace[data-view=clients] .reference-next.overdue small{color:#e7a38d}.workspace[data-view=clients] .reference-owner{font-size:12px}.workspace[data-view=clients] .badge{font-size:11px!important}.workspace[data-view=clients] .reference-next:has(>small:only-child){font-weight:400}

html[data-crm-palette][data-crm-mode][data-crm-density] .workspace{padding:30px 32px 42px}
html[data-crm-palette][data-crm-mode][data-crm-density] .page-heading{margin-bottom:25px}
html[data-crm-palette][data-crm-mode][data-crm-density] .page-heading h1{font-size:30px;line-height:1.22;letter-spacing:-.8px;font-weight:650}
html[data-crm-palette][data-crm-mode][data-crm-density] .topbar{min-height:66px;padding:12px 32px}
html[data-crm-palette][data-crm-mode][data-crm-density] [data-slot=sidebar][data-collapsible=icon] [data-slot=sidebar-menu-button]{min-height:66px;padding:7px 3px!important;margin:0 1px;color:#e5eef5;box-shadow:none}
html[data-crm-palette][data-crm-mode][data-crm-density] [data-slot=sidebar][data-collapsible=icon] [data-slot=sidebar-menu-button][data-active=true]{background:#ffffff08;box-shadow:inset 0 -3px #67bacd}
html[data-crm-palette][data-crm-mode][data-crm-density] .workspace[data-view=clients] table{table-layout:fixed;--client-actions-width:184px}
.workspace[data-view=clients] th:first-child{width:calc((100% - var(--client-actions-width))*0.33)}.workspace[data-view=clients] th:nth-child(2){width:calc((100% - var(--client-actions-width))*0.15)}.workspace[data-view=clients] th:nth-child(3){width:calc((100% - var(--client-actions-width))*0.17)}.workspace[data-view=clients] th:nth-child(4){width:calc((100% - var(--client-actions-width))*0.2)}.workspace[data-view=clients] th:nth-child(5){width:calc((100% - var(--client-actions-width))*0.15)}.workspace[data-view=clients] th:last-child{width:var(--client-actions-width)}
html[data-crm-palette][data-crm-mode][data-crm-density] .workspace[data-view=clients] td{padding:17px 18px}
.workspace[data-view=clients] .company>div{position:relative;padding-right:18px;min-width:0}.workspace[data-view=clients] .company a{position:absolute;right:0;top:0;font-size:0!important;width:16px;height:18px}.workspace[data-view=clients] .company a:after{content:'↗';font-size:13px}.workspace[data-view=clients] .company a:focus-visible{outline:2px solid var(--theme-primary)}
.workspace[data-view=clients] td:has(.reference-contact-person){position:relative}.workspace[data-view=clients] .reference-contact-person~.email-line{font-size:0!important;position:absolute;right:10px;top:17px}.workspace[data-view=clients] .reference-contact-person~.email-line:after{content:'✉';font-size:12px;color:var(--theme-muted)}
@media(max-width:1200px){html[data-crm-palette][data-crm-mode][data-crm-density] .workspace{padding:27px 23px}html[data-crm-palette][data-crm-mode][data-crm-density] .topbar{padding-inline:23px}}
@media(max-width:1000px){html[data-crm-palette][data-crm-mode][data-crm-density] .workspace{padding-inline:18px}html[data-crm-palette][data-crm-mode][data-crm-density] .topbar{padding-inline:18px}}
@media(max-width:700px){html[data-crm-palette][data-crm-mode][data-crm-density] .workspace{padding:23px 16px 34px}html[data-crm-palette][data-crm-mode][data-crm-density] .topbar{padding:10px 14px}html[data-crm-palette][data-crm-mode][data-crm-density] .page-heading h1{font-size:25px}}

html[data-crm-palette=ocean][data-crm-mode=dark][data-crm-appearance=calm]{--theme-sidebar:#142326!important;--theme-sidebar-soft:#253b3e!important;--theme-primary:#69bba7!important;--theme-danger:#e7a38d!important}
html[data-crm-palette=ocean][data-crm-mode=light][data-crm-appearance=calm]{--theme-sidebar:#233831!important;--theme-sidebar-soft:#314e43!important;--theme-primary:#2f6d58!important}
html[data-crm-palette][data-crm-mode][data-crm-density] .workspace[data-view=clients] .reference-next.overdue,html[data-crm-palette][data-crm-mode][data-crm-density] .workspace[data-view=clients] .reference-next.overdue small{color:#e7a38d!important}
html[data-crm-mode=light] .workspace[data-view=clients] .reference-next.overdue,html[data-crm-mode=light] .workspace[data-view=clients] .reference-next.overdue small{color:#b86240!important}

.workspace[data-view=groups] .business-workspace{max-width:none;width:100%;padding:0}.workspace[data-view=groups] .business-workspace>.panel-heading{justify-content:flex-end}.workspace[data-view=groups] .business-workspace>.panel-heading>h1{display:none}

html[data-crm-mode] .crm-profile .employee-page{font:14px/1.5 "Segoe UI",Arial,sans-serif;color:var(--theme-text);max-width:1120px;padding:26px 24px 50px}
html[data-crm-mode] .crm-profile :is(section,button,input,textarea,select,pre,.initial,.settings-row,.notice){background:var(--theme-surface);color:var(--theme-text);border-color:var(--theme-border);border-radius:7px;box-shadow:none}
html[data-crm-mode] .crm-profile :is(h1,h2,h3){color:var(--theme-text);font-weight:650}html[data-crm-mode] .crm-profile h1{font-size:30px}html[data-crm-mode] .crm-profile h2{font-size:20px}html[data-crm-mode] .crm-profile small{color:var(--theme-muted)}html[data-crm-mode] .crm-profile :is(a,header nav a){color:var(--theme-primary)}html[data-crm-mode] .crm-profile :is(.primary,.button){background:var(--theme-primary);color:var(--theme-background);border-color:var(--theme-primary)}html[data-crm-mode] .crm-profile .settings-subsection{border-color:var(--theme-border)}
html[data-crm-mode] .crm-profile.crm-embedded .employee-page{padding:0 24px 24px;max-width:none}.crm-profile.crm-embedded .employee-page>header{display:none}
.crm-server-indicator{display:inline-flex;align-items:center;gap:6px;flex:none;white-space:nowrap;min-height:32px;padding:6px 9px}.crm-server-indicator i{width:7px;height:7px;border-radius:50%;background:var(--theme-muted)}.crm-server-indicator[data-health=ok] i{background:var(--theme-success)}.crm-server-indicator[data-health=warning] i{background:var(--theme-warning)}.crm-server-indicator[data-health=critical] i{background:var(--theme-danger)}.crm-server-indicator span{font-size:11px;color:var(--theme-muted)}.crm-server-dialog{width:min(680px,calc(100vw - 24px));max-height:90dvh;overflow:auto}.crm-server-capacity{font-variant-numeric:tabular-nums}.crm-server-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0}.crm-server-grid section{padding:16px;border-bottom:1px solid var(--theme-border)}.crm-server-grid section:nth-child(odd){border-right:1px solid var(--theme-border)}.crm-server-grid h3{font-size:12px;margin:0 0 8px}.crm-server-grid strong{display:block;font-size:24px;font-variant-numeric:tabular-nums}.crm-server-grid small{display:block;color:var(--theme-muted);font-size:11px;margin-top:5px}.crm-server-grid svg{display:block;width:100%;height:60px;margin-top:10px}.crm-server-advice{padding:12px 0;font-size:13px}.crm-server-advice p{margin:5px 0}@media(max-width:600px){.crm-server-indicator span{display:none}.crm-server-grid{grid-template-columns:1fr}.crm-server-grid section:nth-child(odd){border-right:0}}
html[data-crm-palette][data-crm-mode][data-crm-density] .crm-server-dialog[data-slot=dialog-content]{width:min(680px,calc(100vw - 24px))!important;max-width:min(680px,calc(100vw - 24px))!important;min-width:0!important;max-height:90dvh!important;overflow:auto}
.crm-phone-carriers-summary{display:block;color:var(--theme-muted);font-size:10px;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crm-phone-carriers{padding:14px 0;border-bottom:1px solid var(--theme-border)}.crm-phone-carriers h3{font-size:14px;font-weight:600;margin:0 0 10px}.crm-phone-carriers>div{display:grid;grid-template-columns:minmax(130px,1fr) minmax(0,2fr);gap:5px 12px;padding:9px 0;border-top:1px solid var(--theme-border);font-size:12px}.crm-phone-carriers small{grid-column:2;color:var(--theme-muted);font-size:11px}.crm-phone-carriers p{font-size:11px;color:var(--theme-muted);margin-top:9px}@media(max-width:600px){.crm-phone-carriers>div{grid-template-columns:1fr}.crm-phone-carriers small{grid-column:1}}
html[data-crm-palette][data-crm-mode][data-crm-density] .topbar{align-items:center}html[data-crm-palette][data-crm-mode][data-crm-density] .topbar>:is(button,.theme-settings),html[data-crm-palette][data-crm-mode][data-crm-density] .topbar .classic-header-security button{height:36px!important;min-height:36px!important;align-self:center}html[data-crm-palette][data-crm-mode][data-crm-density] .topbar :is(.theme-trigger,.reference-mode){width:36px!important;min-width:36px!important;height:36px!important;display:inline-flex;align-items:center;justify-content:center;padding:0!important}html[data-crm-palette][data-crm-mode][data-crm-density] .topbar .reference-module-menu>summary{height:36px;box-sizing:border-box;display:flex;align-items:center;padding:0 10px}html[data-crm-palette][data-crm-mode][data-crm-density] .topbar .crm10-appearance{height:36px;box-sizing:border-box;display:inline-flex;align-items:center}.topbar .crm-server-indicator{justify-content:center}
html[data-crm-palette][data-crm-mode][data-crm-density] .workspace[data-view=mail]{max-width:none;margin-inline:0}
html[data-crm-palette][data-crm-mode][data-crm-density] .employee-profile .employee-contact{background:var(--theme-surface)!important;border:1px solid var(--theme-border);color:var(--theme-text);align-items:end}html[data-crm-palette][data-crm-mode][data-crm-density] .employee-profile .employee-contact label{color:var(--theme-muted);min-width:0}html[data-crm-palette][data-crm-mode][data-crm-density] .employee-profile .employee-contact .profile-check{color:var(--theme-text)}html[data-crm-mode] .employee-profile .employee-contact input[type=checkbox]{accent-color:var(--theme-primary)}html[data-crm-mode] .employee-profile .employee-contact :is(input,select,button){min-height:36px}html[data-crm-mode] .employee-profile .employee-contact input[type=checkbox]{min-height:0}
.crm-reference-advanced:not([hidden]){gap:16px;align-items:start}.crm-filter-group{min-width:0;display:grid;gap:8px}.crm-filter-client{flex:1 1 190px}.crm-filter-contacts{flex:1.4 1 330px}.crm-filter-website{flex:1.8 1 430px}.crm-filter-group-title{font-size:11px;font-weight:600;color:var(--theme-muted);line-height:16px}.crm-filter-group-controls{display:grid;gap:8px;min-width:0;align-items:start}.crm-filter-client .crm-filter-group-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-filter-contacts .crm-filter-group-controls{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.35fr)}.crm-filter-website .crm-filter-group-controls{grid-template-columns:minmax(0,1fr) minmax(150px,1.4fr) minmax(0,1.05fr)}.crm-filter-group-controls>*{min-width:0}.crm-filter-group-controls [role=combobox]{width:100%;min-width:0;min-height:36px}.crm-reference-advanced .crm-filter-group .client-domain-filter{min-width:0;width:100%}.crm-filter-group .client-domain-filter input{width:100%;min-width:0;height:36px}.crm-filter-group-controls [role=combobox]>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:650px){.crm-filter-group{flex-basis:100%}.crm-filter-website .crm-filter-group-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-filter-website .client-domain-filter{grid-column:1/-1;grid-row:2}.crm-filter-contacts .crm-filter-group-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-filter-contacts .crm-filter-group-controls>[role=combobox]:last-child{grid-column:1/-1}}
/* Website timestamps share the existing compact metadata rhythm. */
.crm-site-added { display:block; color:var(--theme-muted); font-size:11px; line-height:1.5; font-variant-numeric:tabular-nums; }
.crm-team-management>.workspace-tabs { margin-bottom:20px; }
.crm-plan-progress{--plan-fill:var(--theme-primary);margin:14px 0 8px;min-width:0}.crm-plan-progress[data-level=start],.crm-plan-legend [data-level=start]{--plan-fill:var(--theme-danger)}.crm-plan-progress[data-level=middle],.crm-plan-legend [data-level=middle]{--plan-fill:var(--theme-warning)}.crm-plan-progress[data-level=high],.crm-plan-legend [data-level=high]{--plan-fill:var(--theme-primary)}.crm-plan-progress[data-level=complete],.crm-plan-legend [data-level=complete]{--plan-fill:var(--theme-success)}.crm-plan-progress-caption{display:flex;gap:8px;align-items:baseline;justify-content:space-between;margin-bottom:8px}.crm-plan-progress-caption strong{font-size:19px!important;color:var(--plan-fill)!important;font-variant-numeric:tabular-nums}.crm-plan-progress-caption span{font-size:11px;color:var(--theme-muted)}.crm-plan-progress-track{height:10px;position:relative;overflow:hidden;border-radius:4px;background:color-mix(in srgb,var(--theme-muted) 15%,var(--theme-background))}.crm-plan-progress-track>i{display:block;width:100%;height:100%;background:var(--plan-fill);transform-origin:left;transition:transform .22s ease}.crm-plan-progress-marks{position:absolute;inset:0;background:linear-gradient(to right,transparent calc(25% - 1px),var(--theme-surface) 25%,transparent calc(25% + 1px),transparent calc(50% - 1px),var(--theme-surface) 50%,transparent calc(50% + 1px),transparent calc(75% - 1px),var(--theme-surface) 75%,transparent calc(75% + 1px));opacity:.55}.crm-plan-progress[data-level=unknown] .crm-plan-progress-track{background:repeating-linear-gradient(135deg,color-mix(in srgb,var(--theme-muted) 14%,var(--theme-surface)) 0 6px,color-mix(in srgb,var(--theme-muted) 6%,var(--theme-surface)) 6px 12px)}.crm-plan-progress[data-level=unknown] .crm-plan-progress-caption strong{color:var(--theme-muted)!important;font-size:14px!important}.crm-plan-progress.is-compact{min-width:170px;max-width:250px;margin:0}.crm-plan-progress.is-compact .crm-plan-progress-caption strong{font-size:14px!important}.crm-plan-progress.is-compact .crm-plan-progress-track{height:8px}.crm-plan-legend{display:flex;gap:6px 12px;flex-wrap:wrap;font-size:10px;color:var(--theme-muted);margin-top:10px}.crm-plan-legend>span{display:inline-flex;gap:5px;align-items:center}.crm-plan-legend i{width:7px;height:7px;display:inline-block;border-radius:2px;background:var(--plan-fill)}html[data-crm-appearance=calm] .crm-plan-progress-track>i{background:color-mix(in srgb,var(--plan-fill) 75%,var(--theme-surface))}@media(prefers-reduced-motion:reduce){.crm-plan-progress-track>i{transition:none}}

/* Contact evidence follows the current CRM theme and fits the client column. */
.crm10-client-main .card-tabs,.crm10-client-main [data-slot=tabs-content],.crm10-client-main .source-detail{min-width:0;max-width:100%}
.crm10-client-main .source-detail{width:100%;box-sizing:border-box}
.crm10-client-dialog .source-detail .evidence{background:var(--theme-background)!important;color:var(--theme-text)!important;border:1px solid var(--theme-border);min-width:0;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere;white-space:pre-wrap}
.crm10-client-dialog .source-detail .call-script{color:var(--theme-text)!important;max-width:100%;min-width:0;box-sizing:border-box;white-space:normal;overflow-wrap:anywhere}
.crm10-client-dialog .source-detail p,.crm10-client-dialog .source-detail a{max-width:100%;overflow-wrap:anywhere}

/* Legacy invitation and mail previews use the same palette as their workspace. */
html[data-crm-mode] :is(.invite-result,.signature-preview,.proposal-previews pre){background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important;min-width:0;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}
html[data-crm-mode] .invite-result :is(b,strong,h2,h3){color:var(--theme-text)!important}
html[data-crm-mode] .invite-result p,html[data-crm-mode] :is(.team-intro p,.team-create small,.performance-guide p,.report-filter>small,.employee-profile small,.employee-profile .muted,.proposal-row small){color:var(--theme-muted)!important}
html[data-crm-mode] :is(.employee-profile label,.proposal-editor label,.proposal-toolbar label,.proposal-draft-picker label){color:var(--theme-text)!important}
html[data-crm-mode] .invite-result input{background:var(--theme-background)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important;min-width:0;max-width:100%}
html[data-crm-mode] .invite-result .text-button{color:var(--theme-primary)!important}

/* QA 2026-10-24: scoped fixes for Radix placement, readable forms and small screens. */
html[data-crm-mode] .notification-popover{position:relative;inset:auto;max-width:calc(100vw - 24px)}
html[data-crm-mode] .form-grid label{color:var(--theme-text,var(--foreground))}
.crm-settings-appearance,.crm-settings-system{padding:20px;border:1px solid var(--theme-border);border-radius:8px;background:var(--theme-surface);margin-bottom:20px;min-width:0}
.crm-settings-appearance h2,.crm-settings-system h2{font-size:18px;margin:0 0 8px}
.crm-settings-appearance p,.crm-settings-system p{color:var(--theme-muted);font-size:13px;line-height:1.6;margin-bottom:14px}
.crm-settings-appearance .crm-appearance-settings-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.crm-settings-appearance .crm10-appearance .reference-appearance-switch{display:inline-flex}
.crm-settings-appearance .theme-settings{position:relative}
.crm-settings-appearance .theme-popover{position:relative;inset:auto;width:min(660px,calc(100vw - 80px));max-height:75dvh;overflow:auto;margin-top:12px}
.crm-settings-appearance .theme-settings:has(.theme-popover){flex-basis:100%}
.crm-settings-system .actions{flex-wrap:wrap}
.client-history-shortcut{display:inline-flex;align-items:center;gap:5px;font:inherit;font-size:11px;border:1px solid var(--theme-border);border-radius:5px;background:var(--theme-surface);color:var(--theme-primary);padding:5px 7px;min-height:30px;cursor:pointer}
.client-history-shortcut:focus-visible{outline:2px solid var(--theme-primary);outline-offset:2px}
.client-name-actions{flex-wrap:wrap}
.client-name-actions>.client-history-shortcut{flex-basis:100%;width:max-content;flex-grow:0;justify-content:flex-start}
.crm10-card-history-link{font:inherit;color:var(--theme-primary);cursor:pointer}
@media(max-width:480px){.crm10-plan-grid{grid-template-columns:minmax(0,1fr)}.crm10-plan-goal{grid-column:auto}.crm-settings-appearance,.crm-settings-system{padding:16px}.crm-settings-appearance .theme-popover{width:100%;max-height:70dvh}.crm-settings-appearance .theme-options{flex-wrap:wrap}}
@media(max-width:680px){.crm10-phone-side{order:1;border-top:1px solid var(--theme-border);border-bottom:0}.crm10-client-main{padding-top:12px}}
.crm10-task-shortcuts{display:flex;flex-wrap:wrap;gap:6px}.crm10-task-shortcuts button{flex:1 1 90px;min-width:0;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:3px 6px;padding:7px!important;font-size:12px!important}.crm10-task-shortcuts button span{font-size:11px;color:var(--theme-muted);white-space:nowrap}.crm10-task-shortcuts button[aria-pressed=true]{border-color:var(--theme-primary);background:color-mix(in srgb,var(--theme-primary) 10%,var(--theme-surface))}.crm10-task-due{display:grid;gap:5px;font-size:12px;color:var(--theme-text);min-width:0}.crm10-next-task small.error{color:var(--theme-danger)}

.crm-review-panel{margin:0 0 16px;padding:16px;border:1px solid var(--theme-border);border-radius:8px;background:var(--theme-surface);color:var(--theme-text)}
.crm-review-heading,.crm-review-meta,.crm-review-selected,.crm-review-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.crm-review-heading>div{display:grid;gap:4px}.crm-review-heading small,.crm-review-meta small,.crm-review-hint,.crm-review-file small{color:var(--theme-muted)}
.crm-review-form{display:grid;gap:12px;margin-top:14px}.crm-review-form label{display:grid;gap:7px}.crm-review-form textarea{min-height:88px;resize:vertical;width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid var(--theme-border);border-radius:6px;background:var(--theme-surface);color:var(--theme-text)}.crm-review-file>span{display:flex;align-items:center;gap:8px}.crm-review-file input{max-width:100%;padding:9px;border:1px dashed var(--theme-border);border-radius:6px;background:var(--theme-bg)}
.crm-review-details{margin-top:12px;padding-top:12px;border-top:1px solid var(--theme-border)}.crm-review-text{white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0}.crm-review-status{display:inline-flex;align-items:center;gap:5px;border-radius:5px;padding:4px 8px;font-size:11px;line-height:1.4;width:fit-content;background:color-mix(in srgb,var(--theme-primary) 15%,var(--theme-surface));color:var(--theme-primary)}.crm-review-status.pending{color:var(--theme-warning,#d8ad69);background:color-mix(in srgb,var(--theme-warning,#d8ad69) 13%,var(--theme-surface))}.crm-review-status.resolved{color:var(--theme-success,#6daf96);background:color-mix(in srgb,var(--theme-success,#6daf96) 13%,var(--theme-surface))}
.crm-review-screenshot{display:grid;justify-items:start;gap:10px}.crm-review-screenshot img{display:block;max-width:100%;max-height:520px;object-fit:contain;border:1px solid var(--theme-border);border-radius:6px}.crm-review-history{margin-top:16px}.crm-review-history summary{cursor:pointer;color:var(--theme-muted)}.crm-review-hint{font-size:12px;line-height:1.5}.crm-review-list article{display:grid;grid-template-columns:minmax(150px,1fr) minmax(200px,2fr) auto;gap:20px;align-items:start;padding:18px 0;border-top:1px solid var(--theme-border)}.crm-review-list article>div:first-child{display:grid;gap:8px}.crm-review-list small{color:var(--theme-muted);display:flex;gap:5px;align-items:center}.crm-review-list .crm-review-text{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.crm-review-pagination{border-top:1px solid var(--theme-border);padding-top:14px}.crm-review-empty{padding:32px 16px;text-align:center;color:var(--theme-muted)}.crm-review-empty svg{margin:auto}.crm-review-queue .panel-heading label{display:grid;gap:6px}
@media(max-width:700px){.crm-review-panel{padding:12px}.crm-review-heading>.secondary{width:100%;justify-content:center}.crm-review-list article{grid-template-columns:1fr;gap:12px}.crm-review-list article>.secondary{justify-self:start}.crm-review-pagination{gap:8px}}
:root[data-crm-mode="light"] .crm-review-status.pending{color:#805319}:root[data-crm-mode="light"] .crm-review-status.resolved{color:#256047}

.crm10-client-dialog:has(.client-workflow){transition-property:opacity,transform!important}
.client-name-actions{display:flex;align-items:center;gap:7px;min-width:0}.client-name-actions>.company-name{min-width:0;flex:1;text-align:left}.client-open-icon{display:inline-flex;align-items:center;justify-content:center;flex:none;width:29px;height:29px;border:1px solid var(--theme-border);border-radius:5px;background:var(--theme-surface);color:var(--theme-primary);cursor:pointer}.client-open-icon:hover,.client-open-avatar:hover{outline:1px solid var(--theme-primary);outline-offset:2px;background:color-mix(in srgb,var(--theme-primary) 10%,var(--theme-surface))!important}.client-open-avatar{border:0;padding:0;cursor:pointer;flex:none}.client-open-icon:focus-visible,.client-open-avatar:focus-visible{outline:2px solid var(--theme-primary);outline-offset:3px}
.client-workflow{margin-top:20px;padding-top:18px;border-top:1px solid var(--theme-border);color:var(--theme-text);min-width:0;font-size:12px;line-height:1.5}
.client-workflow *{min-width:0}.client-workflow button{cursor:pointer}.client-workflow button:disabled{cursor:default;opacity:.5}
.client-workflow-heading,.client-workflow-heading>div:last-child{display:flex;align-items:center;justify-content:space-between;gap:8px}.client-workflow-heading small{font-size:9px;letter-spacing:.08em;color:var(--theme-muted)}.client-workflow-heading h3{font-size:16px;font-weight:650;margin:4px 0 0!important;line-height:1.4}.client-workflow-fraction{color:var(--theme-muted);white-space:nowrap;font-size:12px;font-variant-numeric:tabular-nums}.client-workflow-fraction b{font-size:21px;font-weight:600;color:var(--theme-primary);margin-right:2px}.workflow-refresh{padding:7px!important;display:grid;place-items:center}
.workflow-progress{height:4px;background:color-mix(in srgb,var(--theme-muted) 15%,var(--theme-surface));border-radius:4px;margin:15px 0 17px;overflow:hidden}.workflow-progress i{width:100%;height:100%;display:block;background:var(--theme-primary);transform-origin:left;transition:transform .18s ease;border-radius:4px}
.workflow-next{border:1px solid var(--theme-border);background:var(--theme-surface);border-radius:7px;padding:12px;margin-bottom:13px;display:grid;gap:6px}.workflow-next>span{display:flex;align-items:center;gap:5px;font-size:10px;color:var(--theme-muted)}.workflow-next>strong{font-weight:550;font-size:12px;line-height:1.6;overflow-wrap:anywhere}.workflow-next>small{font-size:10px;color:var(--theme-muted)}.workflow-next>p{font-size:11px;color:var(--theme-muted);margin:0}.workflow-next>button{display:flex;align-items:center;justify-content:flex-start;gap:5px;padding:4px 0!important;font-size:11px!important}.workflow-next .is-overdue{color:var(--theme-warning)}
.workflow-group{border-bottom:1px solid var(--theme-border)}.workflow-group-heading,.workflow-section-heading,.workflow-service-heading{border:0!important;background:transparent!important;color:var(--theme-text);display:flex;align-items:center;width:100%;text-align:left;gap:7px;padding:12px 0!important;min-height:42px;box-shadow:none!important;border-radius:0!important}.workflow-group-heading>strong,.workflow-section-heading>strong{flex:1;font-size:12px;font-weight:600}.workflow-group-heading>span:nth-last-child(2){font-size:10px;color:var(--theme-muted);font-variant-numeric:tabular-nums}.client-workflow button>svg{flex:none;color:var(--theme-muted);transition:transform .18s}.client-workflow button>svg.is-open{transform:rotate(180deg)}.workflow-number{font-size:9px;padding:3px 5px;border-radius:4px;border:1px solid var(--theme-border);color:var(--theme-muted);font-variant-numeric:tabular-nums;background:var(--theme-surface)}
.workflow-checks{padding:0 0 12px;display:grid;gap:3px}.workflow-checks>label{display:flex;align-items:flex-start;gap:9px;cursor:pointer;min-height:34px;padding:6px 0;font-size:12px;line-height:1.7;color:var(--theme-text)}.client-workflow input[type=checkbox]{appearance:auto!important;width:15px!important;height:15px!important;min-height:15px!important;min-width:15px!important;max-width:15px!important;padding:0!important;margin:3px 0 0!important;accent-color:var(--theme-primary);flex:none;cursor:pointer}.workflow-checks>label.checked>span{color:var(--theme-muted);text-decoration:line-through;text-decoration-color:color-mix(in srgb,var(--theme-muted) 50%,transparent)}.client-workflow input:disabled{cursor:default}.client-workflow input:focus-visible,.client-workflow textarea:focus-visible,.client-workflow button:focus-visible{outline:2px solid var(--theme-primary);outline-offset:2px}
.workflow-services{padding-top:9px}.workflow-section-heading{gap:6px!important}.workflow-unoffered-count{font-size:9px;color:var(--theme-warning);padding:2px 4px;border-radius:4px;white-space:nowrap;background:color-mix(in srgb,var(--theme-warning) 8%,var(--theme-surface))}
.workflow-service{border-top:1px solid var(--theme-border);padding:1px 0 11px}.workflow-service-heading{gap:5px!important;padding:10px 0 7px!important;min-height:36px;flex-wrap:wrap}.workflow-service-heading>strong{font-size:12px;font-weight:550;flex:1}.workflow-service-heading>span{font-size:9px;line-height:1.6;max-width:135px;color:var(--theme-muted);overflow-wrap:anywhere}.workflow-service[data-status=in_progress] .workflow-service-heading>span,.workflow-service[data-status=done] .workflow-service-heading>span,.workflow-service[data-status=agreed] .workflow-service-heading>span{color:var(--theme-success)}.workflow-service[data-status=deferred] .workflow-service-heading>span,.workflow-service[data-status=waiting] .workflow-service-heading>span{color:var(--theme-warning)}
.workflow-service-quick{display:grid;grid-template-columns:minmax(0,1fr) 102px;align-items:end;gap:9px}.workflow-service-quick>label:first-child{display:grid;gap:4px}.workflow-service-quick>label:first-child>span{font-size:9px;color:var(--theme-muted)}.client-workflow [role=combobox],.client-workflow select{width:100%!important;max-width:100%;height:auto!important;min-height:34px!important;font-size:11px!important;background:var(--theme-surface)!important;color:var(--theme-text)!important;border:1px solid var(--theme-border)!important;border-radius:5px!important;padding:6px 8px!important;box-shadow:none!important}.client-workflow [role=combobox]>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.client-workflow .classic-select-native{display:none!important}.workflow-offered{display:flex;align-items:center;gap:7px;font-size:11px;line-height:1.4;cursor:pointer;min-height:34px;margin:0!important}.workflow-offered input{margin-top:0!important}.workflow-offered small{display:block;font-size:9px;color:var(--theme-muted);margin-top:2px}.workflow-return{display:flex;align-items:center;gap:4px;font-size:10px;color:var(--theme-warning);margin:9px 0 0!important;line-height:1.5;overflow-wrap:anywhere}
.workflow-service-form{display:grid;gap:11px;margin-top:13px;padding-top:13px;border-top:1px dashed var(--theme-border)}.workflow-service-form>label{display:grid!important;gap:6px;font-size:11px;color:var(--theme-text)}.workflow-service-form>label>small{font-size:9px;color:var(--theme-muted)}.workflow-service-form input:not([type=checkbox]),.workflow-service-form textarea{width:100%;max-width:100%;border:1px solid var(--theme-border);border-radius:5px;background:var(--theme-surface);color:var(--theme-text);padding:8px 9px;font-size:12px;line-height:1.6;min-height:38px}.workflow-service-form textarea{resize:vertical;min-height:80px}.workflow-service-form input[type=datetime-local]{font-size:11px;padding-inline:6px}.workflow-form-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}.workflow-form-actions button{font-size:11px!important;padding:7px 10px!important;min-height:34px;white-space:normal!important}.workflow-form-actions .secondary{border:1px solid var(--theme-border);border-radius:5px;background:var(--theme-surface);color:var(--theme-text)}
.workflow-bonus{padding-top:10px;border-top:1px solid var(--theme-border)}.workflow-bonus-status{font-size:10px;color:var(--theme-muted);margin:-4px 0 8px}.workflow-bonus .workflow-section-heading>strong{font-size:12px}.workflow-bonus .workflow-service-form{padding-top:10px}.workflow-bonus .workflow-checks{padding:0}.workflow-bonus .workflow-checks>label{font-size:11px}
.workflow-footer{display:flex;align-items:center;gap:6px;font-size:10px;line-height:1.6;color:var(--theme-muted);padding-top:14px;margin-top:8px;border-top:1px solid var(--theme-border)}.workflow-footer svg{flex:none}.workflow-error{border:1px solid color-mix(in srgb,var(--theme-danger) 40%,var(--theme-border));border-radius:6px;background:color-mix(in srgb,var(--theme-danger) 5%,var(--theme-surface));padding:10px;margin:12px 0;color:var(--theme-danger);font-size:11px;line-height:1.7}.workflow-error p{margin:0}.workflow-error>div{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.workflow-error button{font-size:10px!important;padding:5px 7px!important}.workflow-hint{font-size:10px;color:var(--theme-muted);padding:9px 0;line-height:1.7}.workflow-skeleton{display:grid;gap:12px;padding:18px 0}.workflow-skeleton i{display:block;height:16px;border-radius:4px;background:color-mix(in srgb,var(--theme-muted) 12%,var(--theme-surface))}.workflow-skeleton i:nth-child(2){width:85%}.workflow-skeleton i:nth-child(3){width:65%}
@media(max-width:1000px) and (min-width:681px){.workflow-service-quick{grid-template-columns:minmax(0,1fr) 95px;gap:7px}.workflow-service-heading>span{font-size:8px;max-width:105px}.workflow-service-heading>strong{font-size:11px}.workflow-section-heading>strong{font-size:11px}.workflow-unoffered-count{font-size:8px}.workflow-checks>label{font-size:11px}.workflow-service-form input[type=datetime-local]{font-size:10px}}
@media(max-width:680px){.crm10-phone-side:has(.client-workflow){position:static;max-height:none;overflow:visible}.client-workflow{margin-top:16px;padding:16px 3px 3px}.workflow-checks>label{min-height:42px;font-size:13px}.workflow-service-quick{grid-template-columns:minmax(0,1fr) 120px}.workflow-offered{min-height:42px;font-size:12px}.client-workflow [role=combobox],.client-workflow select{min-height:40px!important;font-size:12px!important}.workflow-service-form input:not([type=checkbox]),.workflow-service-form textarea{min-height:42px;font-size:13px}.workflow-group-heading,.workflow-section-heading{min-height:44px}.workflow-group-heading>strong,.workflow-section-heading>strong{font-size:13px}.workflow-service-heading>strong{font-size:13px}.workflow-form-actions button{min-height:40px;font-size:12px!important}.workflow-service-form input[type=datetime-local]{font-size:12px}}
@media(prefers-reduced-motion:reduce){.workflow-progress i,.client-workflow button>svg{transition:none}}

.production-checklist{margin-block:20px;padding:16px;border:1px solid var(--theme-border,var(--border));border-radius:10px;background:var(--theme-surface,var(--card))}
.production-checklist>p,.production-checklist-summary small{color:var(--theme-muted,var(--muted-foreground))}
.production-checklist ol{padding-left:24px;display:grid;gap:16px}
.production-checklist li{padding-left:4px;min-width:0}
.production-checklist li>label:first-child{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;margin-bottom:8px;font-weight:600}
.production-checklist li>label small{color:var(--theme-muted,var(--muted-foreground));font-weight:400}
.production-checklist select,.production-checklist input{width:100%;min-width:0;min-height:38px;box-sizing:border-box}
.production-checklist .production-checklist-note{display:grid;gap:6px;margin-top:8px;font-size:13px}
.production-checklist-summary{margin-block:16px}
.production-checklist-summary summary{cursor:pointer;font-weight:600}
.production-checklist-summary ul{display:grid;gap:10px;padding-left:22px}
.production-checklist-summary li p{margin-block:4px;white-space:pre-wrap;overflow-wrap:anywhere}
.production-checklist-summary small{display:block}
.customer-handoff-panel{margin-block:24px;padding-block:18px;border-top:1px solid var(--theme-border,var(--border))}
.customer-handoff-panel fieldset{display:grid;gap:12px;border:1px solid var(--theme-border,var(--border));padding:16px;border-radius:8px;min-width:0}
.customer-handoff-panel fieldset>label{display:flex;align-items:flex-start;gap:10px;margin:0}
.customer-handoff-panel input[type=checkbox]{width:18px!important;height:18px!important;min-height:18px!important;flex:0 0 18px;margin:2px 0 0}
.customer-handoff-panel fieldset>label:has(textarea),.customer-handoff-panel fieldset>label:has(input[type=number]){display:grid}
.guided-handoff-services{margin:16px 0;padding:14px;border:1px solid var(--theme-border,var(--border));border-radius:8px;min-width:0}
.guided-handoff-services legend{padding:0 6px;font-weight:600}
.guided-handoff-services>p{margin:0 0 12px;color:var(--theme-muted,var(--muted-foreground));font-size:13px}
.guided-handoff-services>label{display:flex;align-items:flex-start;gap:10px;margin-block:10px;font-weight:400}
.guided-handoff-services>label>input[type=checkbox]{width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;padding:0!important;flex:0 0 16px;margin:2px 0 0;accent-color:var(--theme-primary,var(--primary))}

.customer-journey{margin:0 0 16px;padding:16px;background:var(--theme-surface);border:1px solid var(--theme-border);border-radius:8px;color:var(--theme-text);min-width:0;font-size:13px;line-height:1.6}.customer-journey *{min-width:0}.customer-journey header{display:flex;justify-content:space-between;align-items:center;gap:12px}.customer-journey h3{margin:2px 0 8px;font-size:18px}.customer-journey small{color:var(--theme-muted);font-size:10px;letter-spacing:.06em}.customer-journey-steps{display:flex;flex-wrap:wrap;gap:7px 14px;list-style:none;padding:8px 0!important;margin:0!important}.customer-journey-steps li{display:flex;gap:5px;align-items:center;font-size:11px;color:var(--theme-muted)}.customer-journey-steps li span{font-variant-numeric:tabular-nums}.customer-journey-steps li[aria-current=step]{color:var(--theme-primary);font-weight:700}.customer-journey-next{margin:12px 0}.customer-journey-next strong{font-size:16px}.customer-journey p{margin:7px 0;overflow-wrap:anywhere;white-space:pre-wrap}.customer-journey-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.customer-journey button{white-space:normal!important;min-height:38px}.customer-journey-editor{display:grid;gap:12px;border-top:1px solid var(--theme-border);margin-top:16px;padding-top:12px}.customer-journey-editor h4{margin:0;font-size:15px}.customer-journey-editor>label{display:grid;gap:5px}.customer-journey-editor textarea,.customer-journey-editor input,.customer-journey-editor select{max-width:100%;width:100%;background:var(--theme-surface);color:var(--theme-text);border:1px solid var(--theme-border);border-radius:5px;padding:8px;font:inherit}.customer-journey-editor input[type=checkbox]{width:auto}.customer-journey .form-grid{margin:0}.crm10-call-work:has(.customer-journey){display:block!important}.customer-journey+.softphone-notes{margin-top:12px}.customer-journey-extra{margin:12px 0;color:var(--theme-text)}.customer-journey-extra>summary{font-size:12px;padding:9px 0;cursor:pointer}.customer-journey-extra .client-workflow{margin-top:0}@media(max-width:680px){.customer-journey{padding:12px}.customer-journey button{min-height:44px}.customer-journey-editor textarea,.customer-journey-editor input,.customer-journey-editor select{font-size:16px}.customer-journey-actions{align-items:stretch}.customer-journey-actions>button{flex:1 1 160px}}

.order-workflow-panel{margin:20px 0;padding:18px;border:1px solid var(--theme-border);border-radius:12px;background:var(--theme-surface);color:var(--theme-text)}
.order-workflow-panel h3,.order-workflow-panel h4{margin:0 0 8px}
.order-workflow-panel p{overflow-wrap:anywhere}
.order-workflow-panel form{display:grid;gap:14px;margin-top:14px}
.order-workflow-panel label{display:grid;gap:6px;min-width:0}
.order-workflow-panel input,.order-workflow-panel textarea,.order-workflow-panel select{width:100%;min-width:0;box-sizing:border-box}
.order-workflow-panel textarea{resize:vertical}
.order-change-fields,.order-change-terms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.order-change-pending{padding:14px;background:var(--theme-background);border-radius:8px}
.order-change-total{padding:12px;background:var(--theme-background);border-radius:8px}
.order-scope-confirmation{display:grid;gap:10px;margin-top:14px;min-width:0}
.order-scope-confirmation p{margin:0;line-height:1.5}
.order-scope-actions{display:flex;flex-wrap:wrap;gap:10px;min-width:0}
.order-scope-actions button{min-height:42px}
.order-scope-supplement{display:grid;gap:10px;padding:14px;border:1px solid var(--theme-border);border-radius:8px;background:var(--theme-surface);color:var(--theme-text)}
.order-workflow-panel .error{display:grid;gap:10px;overflow-wrap:anywhere}
.order-scope-confirmation input[readonly]{background:var(--theme-surface);color:var(--theme-text);border:1px solid var(--theme-border);padding:10px;border-radius:6px}
.order-workflow-panel pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}
.order-workflow-panel blockquote{margin:12px 0;padding-left:12px;border-left:3px solid var(--theme-border);white-space:pre-wrap;overflow-wrap:anywhere}
.order-changes-history article{padding:16px 0;border-top:1px solid var(--theme-border)}
.order-workflow-panel summary{padding:6px 0}
.order-workflow-panel button{justify-self:start;max-width:100%;white-space:normal}
.business-task-receipt{padding:12px 0;color:var(--theme-muted)}
.business-task-spec{white-space:pre-wrap;overflow-wrap:anywhere}
.guided-handoff-panel form{display:grid;gap:14px}
.guided-handoff-panel label{display:grid;gap:6px;min-width:0}
.guided-handoff-panel input,.guided-handoff-panel select,.guided-handoff-panel textarea{width:100%;min-width:0;box-sizing:border-box}
.business-task-focused{outline:2px solid var(--theme-primary);outline-offset:3px}
.business-task-rework{display:inline-block;padding:5px 9px;background:var(--theme-background);border:1px solid var(--theme-border);border-radius:6px}
.business-task-result{display:grid;gap:10px}
.business-task-result input,.business-task-result textarea{max-width:100%;min-width:0;box-sizing:border-box}
.order-manager-review{padding:16px 0;border-top:1px solid var(--theme-border)}
.order-manager-review .actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.order-workflow-panel .order-self-review-ack{display:flex;align-items:flex-start;gap:10px;margin:12px 0;overflow-wrap:anywhere}
.order-workflow-panel .order-self-review-ack input[type=checkbox]{width:18px;min-width:18px;height:18px;flex:none;margin:2px 0 0}
.order-self-review-note{padding:12px;border:1px solid var(--theme-border);border-radius:8px;background:var(--theme-background)}
@media(max-width:600px){.order-change-fields,.order-change-terms{grid-template-columns:1fr}.order-workflow-panel{padding:14px}.order-workflow-panel input,.order-workflow-panel textarea,.order-workflow-panel select{font-size:16px}}

.affiliate-earnings{margin-bottom:20px}.affiliate-heading-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.affiliate-heading-actions a{display:inline-flex;align-items:center;gap:7px}.affiliate-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-block:1px solid var(--theme-border);margin:20px 0 12px}.affiliate-totals>div{display:grid;gap:6px;padding:18px 16px;border-inline-end:1px solid var(--theme-border);min-width:0}.affiliate-totals>div:last-child{border:0}.affiliate-totals>div>span{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}.affiliate-totals strong{font-size:24px;font-variant-numeric:tabular-nums;letter-spacing:-.03em}.affiliate-totals small,.affiliate-disclosure,.affiliate-programs p,.affiliate-empty{color:var(--theme-muted);font-size:12px}.affiliate-programs{display:grid;gap:0}.affiliate-programs>article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:16px 0;border-bottom:1px solid var(--theme-border)}.affiliate-programs h3{font-size:14px;margin:0 0 5px}.affiliate-programs p{margin:0 0 5px;white-space:pre-line}.affiliate-programs span{font-size:12px}.affiliate-referral{grid-column:1/-1;display:flex;align-items:center;gap:8px;min-width:0}.affiliate-referral input{width:100%;min-width:0;font-size:12px}.affiliate-applications{margin-top:16px}.affiliate-applications summary{cursor:pointer;font-weight:600}.affiliate-table{overflow:auto;margin-top:12px}.affiliate-table table{min-width:620px;width:100%;border-collapse:collapse}.affiliate-table td,.affiliate-table th{text-align:left;border-bottom:1px solid var(--theme-border);padding:10px;font-size:12px}.affiliate-table small{display:block;color:var(--theme-muted)}.affiliate-sidebar-link{display:flex;align-items:center;margin:8px 12px;padding:9px 12px;border:1px solid var(--theme-border);border-radius:8px;color:inherit;text-decoration:none;font-weight:600;font-size:13px}.workflow-client-start{padding:12px 0 16px;margin-bottom:16px;border-bottom:1px solid var(--theme-border)}.workflow-client-start strong{font-size:13px}.workflow-client-start p{font-size:11px;line-height:1.6;color:var(--theme-muted);margin:5px 0}.workflow-client-start a{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:var(--theme-primary)}@media(max-width:620px){.affiliate-totals{grid-template-columns:1fr}.affiliate-totals>div{border-inline-end:0;border-bottom:1px solid var(--theme-border);padding-inline:0}.affiliate-programs>article{grid-template-columns:1fr}.affiliate-programs>article button{justify-self:start}.affiliate-totals strong{font-size:22px}}

.native-crm{min-width:0;color:var(--theme-text);font-size:13px;line-height:1.55}.native-crm h2{font-size:19px;font-weight:650;line-height:1.35;margin:0 0 6px}.native-crm h3{font-size:15px;font-weight:650;margin:0 0 6px}.native-crm h4{font-size:13px;font-weight:650;margin:20px 0 10px}.native-crm p{margin:0 0 12px;overflow-wrap:anywhere}.native-crm a{color:var(--theme-primary)}.native-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 20px}.native-section-heading p,.native-muted{color:var(--theme-muted)}.native-section-heading>p{margin:0;max-width:70ch}.native-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.native-crm button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:8px 13px;border-radius:6px;border:1px solid transparent;background:var(--theme-primary);color:var(--primary-foreground,#fff);font:inherit;font-size:12px;font-weight:600;cursor:pointer}.native-crm button.secondary{background:var(--theme-surface);color:var(--theme-text);border-color:var(--theme-border)}.native-crm button:disabled{opacity:.5;cursor:not-allowed}.native-crm button:focus-visible,.native-crm a:focus-visible,.native-crm input:focus-visible,.native-crm textarea:focus-visible{outline:2px solid var(--theme-primary);outline-offset:3px}.native-crm button.native-text-button{background:transparent;border:0;color:var(--theme-primary);padding:0;min-height:32px;justify-content:flex-start;text-align:left}.native-crm .native-notice{padding:12px 16px;background:color-mix(in srgb,var(--theme-primary) 8%,var(--theme-surface));border:1px solid var(--theme-border);border-radius:6px;color:var(--theme-text)}.native-crm .error{color:var(--theme-danger);background:color-mix(in srgb,var(--theme-danger) 6%,var(--theme-surface));border:1px solid color-mix(in srgb,var(--theme-danger) 35%,var(--theme-border));padding:12px 16px;border-radius:6px}.native-loading{padding:28px 0;color:var(--theme-muted)}
.native-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;padding:22px 0 28px;border-bottom:1px solid var(--theme-border);margin-bottom:22px}.native-metrics>div{display:flex;flex-direction:column;gap:5px}.native-metrics span{color:var(--theme-muted);font-size:12px}.native-metrics strong{font-size:26px;line-height:1.3;font-weight:650;font-variant-numeric:tabular-nums}.native-metrics small{color:var(--theme-muted);font-size:11px}.native-tabs{display:flex;flex-wrap:wrap;gap:6px;padding:0 0 14px;border-bottom:1px solid var(--theme-border);margin:0 0 22px}.native-crm .native-tabs button{background:transparent;color:var(--theme-muted);border-color:transparent}.native-crm .native-tabs button[aria-selected=true]{background:var(--theme-surface);color:var(--theme-text);border-color:var(--theme-border)}.native-tab-panel{min-width:0}.native-empty{padding:38px 24px;border:1px dashed var(--theme-border);border-radius:8px;background:var(--theme-surface)}.native-empty p{max-width:72ch;color:var(--theme-muted)}.native-empty button{margin-top:10px}.native-table{max-width:100%;overflow-x:auto;border:1px solid var(--theme-border);border-radius:8px;background:var(--theme-surface)}.native-table table{width:100%;border-collapse:collapse;text-align:left}.native-table th{font-size:11px;font-weight:600;color:var(--theme-muted);background:color-mix(in srgb,var(--theme-muted) 5%,var(--theme-surface));padding:13px 16px;white-space:nowrap}.native-table td{padding:16px;vertical-align:top;border-top:1px solid var(--theme-border);font-size:12px}.native-table td strong{font-weight:600}.native-table td small{display:block;color:var(--theme-muted);font-size:11px;margin-top:4px}.native-status{font-size:11px;display:inline-block;padding:3px 8px;background:color-mix(in srgb,var(--theme-muted) 8%,var(--theme-surface));color:var(--theme-muted);border-radius:4px;white-space:nowrap}.native-status.is-ready{background:color-mix(in srgb,var(--theme-success) 10%,var(--theme-surface));color:var(--theme-success)}.native-help{color:var(--theme-warning)!important}.native-search{display:flex;gap:10px;margin:0 0 22px;max-width:520px}.native-search label{flex:1;min-width:0}.native-pagination{display:flex;align-items:center;gap:14px;justify-content:flex-end;margin-top:20px;color:var(--theme-muted);font-size:12px}.native-progress{min-width:110px;max-width:180px;display:grid;gap:6px}.native-crm progress{display:block;width:100%;height:5px;appearance:none;background:var(--theme-border);border:0;border-radius:3px;overflow:hidden;accent-color:var(--theme-success)}.native-crm progress::-webkit-progress-bar{background:var(--theme-border)}.native-crm progress::-webkit-progress-value{background:var(--theme-success)}.native-crm progress::-moz-progress-bar{background:var(--theme-success)}
.native-editor{padding:24px;background:var(--theme-surface);border:1px solid var(--theme-border);border-radius:8px;margin-top:20px;min-width:0}.native-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px;border:0;padding:0;margin:18px 0 0;min-width:0}.native-form label,.native-share-link label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:500;min-width:0}.native-crm input:not([type=checkbox]),.native-crm textarea,.native-crm select,.native-crm .classic-select-trigger{width:100%;min-width:0;max-width:100%;min-height:38px;background:var(--theme-background);color:var(--theme-text);border:1px solid var(--theme-border);border-radius:6px;padding:9px 11px;font:inherit;font-size:12px;box-sizing:border-box}.native-crm textarea{min-height:92px;resize:vertical}.native-crm input::placeholder,.native-crm textarea::placeholder{color:var(--theme-muted);opacity:.8}.native-crm input[readonly]{color:var(--theme-text)}.native-crm .native-check{display:flex;flex-direction:row;align-items:flex-start;gap:9px;font-size:12px;font-weight:400}.native-check input{width:16px;height:16px;margin-top:2px;accent-color:var(--theme-primary);flex-shrink:0}.native-wide{grid-column:1/-1}.native-crm summary{cursor:pointer;font-size:12px;font-weight:600;padding:12px 0;color:var(--theme-text)}.native-review{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}.native-review dt{font-size:11px;color:var(--theme-muted);margin-bottom:4px}.native-review dd{font-size:12px;margin:0;overflow-wrap:anywhere}.native-copy{display:flex;gap:7px;min-width:250px}.native-copy input{flex:1}.native-api-result{padding:20px;background:var(--theme-background);color:var(--theme-text);border:1px solid var(--theme-border);border-radius:6px;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;font:12px/1.6 monospace;margin-top:20px}.native-breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:24px;margin:0 0 26px}.native-plan-count{text-align:right;font-variant-numeric:tabular-nums}.native-plan-count>strong{font-size:32px;line-height:1.2;font-weight:650}.native-plan-count strong span{font-size:20px;color:var(--theme-muted);font-weight:400}.native-plan-count small{display:block;color:var(--theme-muted);font-size:11px;margin-top:3px}.native-share{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:20px;padding:22px 24px;background:var(--theme-surface);border:1px solid var(--theme-border);border-radius:8px;margin:22px 0 30px}.native-share p{color:var(--theme-muted);max-width:65ch;margin-bottom:0;font-size:12px}.native-share-link{display:flex;align-items:end;flex-wrap:wrap;gap:12px;width:100%}.native-share-link label{flex:1;min-width:200px}.native-share-link a{display:flex;align-items:center;gap:5px;min-height:38px;font-size:12px}.native-plan-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(250px,1fr);gap:28px;margin-bottom:32px}.native-plan-layout>section,.native-plan-aside{min-width:0}.native-step-list{border:1px solid var(--theme-border);border-radius:8px;background:var(--theme-surface);overflow:hidden}.native-step+.native-step{border-top:1px solid var(--theme-border)}.native-crm .native-step-heading{display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:12px;width:100%;min-height:70px;align-items:center;padding:16px 20px;background:transparent;color:var(--theme-text);border:0;border-radius:0;text-align:left;font-weight:400}.native-step-heading>span:nth-child(2){display:flex;flex-direction:column;gap:4px}.native-step-heading strong{font-size:13px;font-weight:600}.native-step-heading small{color:var(--theme-muted);font-size:11px}.native-step-number{font-size:11px;color:var(--theme-muted);display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border:1px solid var(--theme-border);border-radius:6px}.native-step-number.is-done{color:var(--theme-success);background:color-mix(in srgb,var(--theme-success) 8%,var(--theme-surface));border-color:transparent}.native-step-label{font-size:11px;color:var(--theme-muted)}.needs-help .native-step-label{color:var(--theme-warning)}.native-step-form{padding:0 20px 24px;border-top:1px solid var(--theme-border)}.native-step-form fieldset{margin-top:20px}.native-client-note{font-size:12px;padding:0 20px 12px;color:var(--theme-warning)}.native-plan-aside>section{padding:22px;border:1px solid var(--theme-border);border-radius:8px;background:var(--theme-surface);margin-bottom:20px}.native-plan-aside progress{margin:18px 0}.native-progress-rows>div{display:flex;justify-content:space-between;gap:14px;font-size:11px;padding:7px 0}.native-progress-rows span{color:var(--theme-muted)}.native-progress-rows strong{font-weight:500;text-align:right}.native-plan-aside .native-muted{font-size:11px;margin-top:14px}.native-event{padding:12px 0;border-top:1px solid var(--theme-border)}.native-event:first-of-type{margin-top:16px}.native-event time{font-size:10px;color:var(--theme-muted)}.native-event p{font-size:12px;margin:5px 0 0}.native-partner-applications{margin-top:28px}
@media(max-width:1100px){.native-plan-layout{grid-template-columns:minmax(0,1fr)}.native-plan-aside{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.native-plan-aside>section{margin:0}.native-form{gap:16px}.native-metrics{gap:18px}.native-metrics strong{font-size:23px}}
@media(max-width:640px){.native-section-heading{align-items:flex-start;flex-direction:column}.native-metrics{grid-template-columns:1fr;gap:14px;padding:12px 0 20px}.native-metrics>div{display:grid;grid-template-columns:1fr auto;align-items:center;gap:3px 12px}.native-metrics strong{font-size:21px}.native-metrics small{grid-column:1/-1}.native-form,.native-plan-aside,.native-review{grid-template-columns:minmax(0,1fr)}.native-editor,.native-share,.native-plan-aside>section{padding:18px}.native-step-heading{padding:14px!important;grid-template-columns:28px minmax(0,1fr)!important}.native-step-label{grid-column:2;text-align:left}.native-step-form{padding:0 14px 18px}.native-pagination{justify-content:space-between;gap:8px}.native-plan-count{text-align:left}.native-breadcrumb{gap:12px}.native-search{max-width:100%}.native-table th,.native-table td{padding:12px}.native-empty{padding:26px 18px}}

.instruction-workspace{width:100%;max-width:1080px;min-width:0;padding:4px 0 28px;color:var(--theme-text,var(--foreground));font:inherit;font-size:14px;line-height:1.6}
.instruction-workspace *{box-sizing:border-box;min-width:0}
.instruction-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin:0 0 16px}
.instruction-heading h1{display:flex;align-items:center;gap:9px;margin:0 0 6px;font-size:24px;font-weight:650;line-height:1.3;letter-spacing:-.35px}
.instruction-heading p,.instruction-source-note{margin:0;color:var(--theme-muted,var(--muted-foreground));font-size:13px;max-width:70ch}
.instruction-actions{display:flex;flex-wrap:wrap;gap:8px;flex-shrink:0}
.instruction-workspace .secondary{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:8px 11px;border:1px solid var(--theme-border,var(--border));border-radius:7px;color:inherit;background:var(--theme-surface,var(--card));font:inherit;font-size:12px;line-height:1.4;text-decoration:none;cursor:pointer}
.instruction-workspace :is(button,a):focus-visible,.instruction-content .step:focus-visible{outline:2px solid var(--theme-primary,var(--primary));outline-offset:3px}
.instruction-workspace .secondary:hover,.instruction-sections button:hover{background:color-mix(in srgb,var(--theme-primary,var(--primary)) 8%,var(--theme-surface,var(--card)))}
.instruction-sections{display:flex;flex-wrap:wrap;gap:4px 8px;margin:0 0 20px;padding:10px 0;border-block:1px solid var(--theme-border,var(--border))}
.instruction-sections button{min-height:34px;padding:6px 9px;border:0;border-radius:5px;background:transparent;color:var(--theme-primary,var(--primary));font:inherit;font-size:12px;line-height:1.4;text-align:left;cursor:pointer}
.instruction-content .summary{padding:12px 16px;margin:0 0 20px;border-left:3px solid var(--theme-primary,var(--primary));border-radius:0 6px 6px 0;background:color-mix(in srgb,var(--theme-primary,var(--primary)) 7%,var(--theme-surface,var(--card)))}
.instruction-content .summary b{display:block;margin-bottom:4px;font-weight:600}
.instruction-content .summary p{margin:0}
.instruction-content .step{margin:0 0 24px;padding:0;border:1px solid var(--theme-border,var(--border));border-radius:9px;background:var(--theme-surface,var(--card));scroll-margin-top:calc(var(--crm-topbar-height,66px) + 20px)}
.instruction-content .step-head{display:grid;grid-template-columns:32px minmax(0,1fr);gap:12px;padding:18px 20px 14px;border-bottom:1px solid var(--theme-border,var(--border))}
.instruction-content .step-number{font-size:19px;font-variant-numeric:tabular-nums;color:var(--theme-muted,var(--muted-foreground));line-height:1.5}
.instruction-content .eyebrow{margin:0 0 4px;color:var(--theme-muted,var(--muted-foreground));font-size:11px;line-height:1.5}
.instruction-content h2{margin:0;font-size:20px;font-weight:650;line-height:1.35;letter-spacing:-.2px}
.instruction-content h3{margin:22px 0 10px;font-size:16px;font-weight:600;line-height:1.4}
.instruction-content .step-content{padding:16px 20px 20px;overflow-wrap:anywhere}
.instruction-content p{margin:12px 0;max-width:80ch}
.instruction-content .step-content>p:first-child{margin-top:0}
.instruction-content .path{display:flex;flex-wrap:wrap;gap:5px 8px;margin:0 0 16px;padding:9px 12px;border-radius:6px;color:var(--theme-primary,var(--primary));background:color-mix(in srgb,var(--theme-primary,var(--primary)) 6%,var(--theme-surface,var(--card)));font-size:12px;line-height:1.6}
.instruction-content .path-arrow{color:var(--theme-muted,var(--muted-foreground))}
.instruction-content .fields{margin:16px 0}
.instruction-content .fields>div{display:grid;grid-template-columns:minmax(130px,24%) minmax(0,1fr);gap:16px;padding:11px 0;border-bottom:1px solid var(--theme-border,var(--border))}
.instruction-content .fields>div:first-child{border-top:1px solid var(--theme-border,var(--border))}
.instruction-content dt{font-size:13px;font-weight:600}
.instruction-content dd{margin:0;font-size:13px;color:var(--theme-muted,var(--muted-foreground))}
.instruction-content :is(.list,.checks){margin:12px 0 18px;padding-left:22px}
.instruction-content ol:is(.list,.checks){list-style:decimal}
.instruction-content ul:is(.list,.checks){list-style:disc}
.instruction-content :is(.list,.checks) li{padding:4px 0 4px 2px}
.instruction-content li::marker{color:var(--theme-primary,var(--primary));font-variant-numeric:tabular-nums}
.instruction-content .checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 32px;font-size:13px}
.instruction-content :is(.note,.attention){margin:18px 0;padding:12px 14px;border-left:3px solid var(--theme-primary,var(--primary));border-radius:0 6px 6px 0;background:color-mix(in srgb,var(--theme-primary,var(--primary)) 6%,var(--theme-surface,var(--card)));font-size:13px}
.instruction-content .attention{border-color:var(--theme-warning,#b28232);background:color-mix(in srgb,var(--theme-warning,#b28232) 7%,var(--theme-surface,var(--card)))}
.instruction-content :is(.note,.attention) p{margin:5px 0 0}
.instruction-content .outcome{margin:20px 0 0;padding-top:12px;border-top:1px solid var(--theme-border,var(--border))}
.instruction-content .outcome>span{color:var(--theme-primary,var(--primary));font-size:11px;font-weight:600}
.instruction-content .outcome p{margin:4px 0 0;font-size:13px;color:var(--theme-muted,var(--muted-foreground))}
.instruction-content .screenshot{margin:20px 0}
.instruction-content .shot-view{position:relative;display:block;width:100%;margin:0;padding:0;overflow:hidden;border:1px solid var(--theme-border,var(--border));border-radius:7px;background:var(--theme-background,var(--background));line-height:0;cursor:zoom-in;isolation:isolate}
.instruction-content .shot-view>img{display:block;width:100%;max-width:100%;height:auto}
.instruction-content .annotations{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.instruction-content .zoom-hint{position:absolute;right:10px;bottom:10px;padding:7px 9px;border-radius:4px;color:var(--theme-text,var(--foreground));background:var(--theme-surface,var(--card));font-size:11px;line-height:1.2;opacity:0;transition:opacity 150ms ease}
.instruction-content .shot-view:is(:hover,:focus-visible) .zoom-hint{opacity:1}
.instruction-content figcaption{display:grid;gap:6px;padding-top:10px;color:var(--theme-muted,var(--muted-foreground));font-size:12px;line-height:1.5}
.instruction-content figcaption>span{display:flex;gap:8px;align-items:baseline}
.instruction-content figcaption b{flex:none;min-width:18px;border-radius:50%;background:color-mix(in srgb,var(--theme-primary,var(--primary)) 10%,var(--theme-surface,var(--card)));color:var(--theme-primary,var(--primary));font-size:10px;line-height:18px;text-align:center}
.instruction-source-note{margin-top:8px}
.instruction-zoom{width:min(96vw,1500px);max-width:96vw;max-height:94dvh;margin:auto;padding:16px;overflow:auto;border:1px solid var(--theme-border,var(--border));border-radius:10px;color:var(--theme-text,var(--foreground));background:var(--theme-surface,var(--card));font:inherit}
.instruction-zoom::backdrop{background:color-mix(in srgb,var(--theme-text,var(--foreground)) 55%,transparent)}
.instruction-zoom>header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:14px}
.instruction-zoom h2{margin:0 0 4px;font-size:17px;line-height:1.4}
.instruction-zoom header p{margin:0;color:var(--theme-muted,var(--muted-foreground));font-size:12px}
.instruction-zoom-content .screenshot{margin:0}
.instruction-zoom-content .shot-view{cursor:default;opacity:1}
.instruction-zoom-content .zoom-hint{display:none}
@media(max-width:760px){.instruction-heading{flex-direction:column;gap:12px}.instruction-heading h1{font-size:22px}.instruction-actions{gap:8px}.instruction-workspace .secondary,.instruction-sections button{min-height:44px}.instruction-content .step-head{padding:16px;grid-template-columns:26px minmax(0,1fr);gap:9px}.instruction-content .step-content{padding:14px 16px 18px}.instruction-content h2{font-size:19px}.instruction-content .fields>div{grid-template-columns:1fr;gap:4px}.instruction-content .checks{grid-template-columns:1fr}.instruction-content .summary{padding:12px 14px}.instruction-zoom{padding:12px}.instruction-zoom .secondary{min-width:44px}.instruction-zoom>header{gap:8px}.instruction-sections{gap:2px 4px}}
@media(prefers-reduced-motion:reduce){.instruction-workspace *{scroll-behavior:auto!important;transition:none!important}}
@media print{body:has(.instruction-workspace) *{visibility:hidden!important}body:has(.instruction-workspace) .instruction-workspace,body:has(.instruction-workspace) .instruction-workspace *{visibility:visible!important}.instruction-workspace{--theme-text:#222;--theme-muted:#555;--theme-surface:#fff;--theme-background:#fff;--theme-primary:#315c49;--theme-border:#ccc;--theme-warning:#7a612b;position:absolute;inset:0 auto auto 0;max-width:none;width:100%;padding:0;color:#222;font-size:10pt}.instruction-workspace :is(.instruction-actions,.instruction-sections,.zoom-hint,.instruction-zoom){display:none!important}.instruction-heading{margin-bottom:16px}.instruction-content .step{break-inside:auto;border-radius:0;background:#fff}.instruction-content .step-head{break-after:avoid}.instruction-content :is(.screenshot,.note,.attention,.fields>div,.outcome){break-inside:avoid}.instruction-content h2{font-size:16pt}.instruction-content :is(dd,dt){font-size:10pt}.instruction-content .shot-view{border-radius:0}.instruction-content .step-content{overflow:visible}.instruction-content .step,.instruction-content .step-content{height:auto;max-height:none}body:has(.instruction-workspace){background:#fff}@page{size:A4;margin:16mm}}

html[data-crm-mode]{--workspace-panel:var(--theme-surface);--workspace-subtle:color-mix(in srgb,var(--theme-muted) 9%,var(--theme-surface));--workspace-border:var(--theme-border);--secondary:var(--workspace-subtle);--secondary-foreground:var(--theme-text);--crm-topbar-height:66px;--crm-header-offset:0px;--crm-view-offset:0px}
html[data-crm-mode=dark]{color-scheme:dark}
html[data-crm-mode=light]{color-scheme:light}
html[data-crm-mode] #classic-root .topbar{position:sticky;top:var(--crm-header-offset);z-index:35;background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border);flex-shrink:0}
html[data-crm-mode] #classic-root .topbar :is(.secondary,.theme-trigger,.crm-server-indicator){background:var(--theme-surface);color:var(--theme-text);border-color:var(--theme-border)}
html[data-crm-mode] #classic-root .topbar :is(.local-label,.journey-topbar-label){color:var(--theme-muted)}
html[data-crm-mode] #classic-root .business-owner-nav{position:sticky;top:var(--crm-view-offset);z-index:36;background:var(--theme-surface);color:var(--theme-text);border-color:var(--theme-border)}
html[data-crm-mode] #classic-root .view-as-bar{background:color-mix(in srgb,var(--theme-warning) 12%,var(--theme-surface));color:var(--theme-text);border-color:var(--theme-warning)}
html[data-crm-mode] #classic-root .view-as-label span{color:var(--theme-text)}
html[data-crm-mode] #classic-root .business-workspace>.panel-heading{position:sticky;top:var(--crm-header-offset);z-index:30;background:var(--theme-surface);color:var(--theme-text);border-bottom:1px solid var(--theme-border)}
html[data-crm-mode] #classic-root :is(.workspace,.business-workspace,.journey-intern-body){min-width:0}
html[data-crm-mode] #classic-root :is(.workspace,.business-workspace){scroll-margin-top:calc(var(--crm-header-offset) + var(--crm-topbar-height) + 16px)}
html[data-crm-mode] :is(.manual-example,.manual-dialog){background:var(--workspace-subtle);color:var(--theme-text);border-color:var(--theme-border)}
html[data-crm-mode] .manual-dialog{background:var(--theme-surface)}
html[data-crm-mode] :is(.manual-figures figure,.manual-screen){border-color:var(--theme-border)}
html[data-crm-mode] :is(.knowledge-grid,.manual-figures,.manual-legend){color:var(--theme-text)}
html[data-crm-mode] .knowledge-grid :is(article>small,nav small){color:var(--theme-muted)}
html[data-crm-mode] :is(.source-footnote,.invite-result,.call-script,.note-editor,.plan-note,.training-example,.training-context,.training-letter,.training-notice){background:var(--workspace-subtle);color:var(--theme-text);border-color:var(--theme-border)}
html[data-crm-mode] :is(.manual-dialog,[data-slot=dialog-content],[data-slot=sheet-content]){color-scheme:inherit}
/* Handoff forms can render in a portal, outside #classic-root. */
html[data-crm-mode] .handoff-panel{--handoff-muted:color-mix(in srgb,var(--theme-muted) 75%,var(--theme-text));background:var(--theme-surface);color:var(--theme-text);border-color:var(--theme-border)}
html[data-crm-mode] .handoff-panel :is(h3,label,legend){color:var(--theme-text)}
html[data-crm-mode] .handoff-panel :is(small,.guided-handoff-services>p){color:var(--handoff-muted)!important}
html[data-crm-mode] .handoff-panel :is(input:not([type=checkbox]),select,textarea,[role=combobox]){background:var(--theme-surface);color:var(--theme-text);border-color:var(--theme-border)}
html[data-crm-mode] .handoff-panel :is(input,textarea)::placeholder{color:var(--handoff-muted);opacity:1}
html[data-crm-mode] .guided-handoff-panel .guided-handoff-services{background:var(--theme-surface);border-color:var(--theme-border)}
html[data-crm-mode] .guided-handoff-panel .guided-handoff-services>label{display:flex;align-items:flex-start;gap:10px;margin:10px 0;line-height:1.5}
html[data-crm-mode] .guided-handoff-panel .guided-handoff-services>label>span{flex:1;overflow-wrap:anywhere}
html[data-crm-mode] .handoff-panel :is(input,select,textarea,[role=combobox]):focus-visible{outline:2px solid var(--theme-primary);outline-offset:2px}
html[data-crm-mode] .handoff-panel .primary{background:var(--theme-primary);color:var(--theme-surface)!important;border-color:var(--theme-primary)}
html[data-crm-mode] .guided-handoff-panel .primary:disabled{background:var(--workspace-subtle)!important;color:var(--handoff-muted)!important;border-color:var(--theme-border);opacity:1}
html[data-crm-mode] #classic-root :is(button,a,input,select,textarea,summary):focus-visible{scroll-margin-block:calc(var(--crm-topbar-height) + var(--crm-header-offset) + 16px) 24px}
@media(max-width:760px){html[data-crm-mode] .journey-intern-sidebar{top:calc(var(--crm-topbar-height) + var(--crm-header-offset));height:calc(100dvh - var(--crm-topbar-height) - var(--crm-header-offset));z-index:34}html[data-crm-mode] #classic-root .business-workspace>.panel-heading{padding-inline:14px;gap:10px;flex-wrap:wrap}}
