/* CMS-only density: leave the public website and its previews at their own size. */
.site-dashboard{--site-body-size:14px!important;font-size:14px;line-height:1.4}
.site-dashboard>.topbar{min-height:56px;padding:2.5px 18px;gap:6px 16px;align-items:center}
.site-dashboard>.topbar>.brand{line-height:1;flex:0 1 430px;max-width:34vw;min-width:0}
/* Fill the available 50px content area of the 56px CMS header. */
.site-dashboard>.topbar :is(.brand-logo,.brand-wordmark){display:block;height:50px!important;width:100%!important;max-width:100%;max-height:50px;object-fit:contain;object-position:left center}
.site-dashboard>.topbar>.actions{margin-left:auto;gap:7px;align-items:center;flex-wrap:wrap}
.site-dashboard>.topbar :is(.btn,.lang-select){font-size:12px;line-height:1.35;min-height:32px;padding:7px 10px}
.site-dashboard>.topbar>:is(.dashboard-action-dock,.sb-actions){flex:0 1 auto;width:auto;min-width:0;max-width:44%;order:3;margin:0;padding:0;gap:6px;border:0;box-shadow:none;position:static;background:transparent;color:inherit}
.site-dashboard>.topbar>.sb-actions [role=status]{font-size:12px;max-width:240px}
.site-dashboard .layout{min-height:calc(100dvh - var(--dashboard-header-height,56px))}
.site-dashboard .workspace{padding:14px 18px 76px 44px;font-size:14px;line-height:1.4}
.site-dashboard .workspace h1{font-size:25px;margin:10px 0 14px}
.site-dashboard .workspace h2{font-size:21px;margin:10px 0}
.site-dashboard .workspace h3{font-size:17px;margin:8px 0 10px}
.site-dashboard .workspace p{margin:7px 0}
.site-dashboard .eyebrow{font-size:11px;letter-spacing:.1em}
.site-dashboard .section-head{margin:8px 0 12px;gap:12px}
.site-dashboard .dashboard-section-nav{margin-bottom:12px}
.site-dashboard .dashboard-section-title{font-size:12px;margin-bottom:5px}
.site-dashboard .dashboard-section-tabs{gap:3px}
.site-dashboard .dashboard-section-tab{font-size:12px;padding:9px 12px;min-height:36px}
.site-dashboard :is(.panel,.card){padding:14px;margin-bottom:12px}
.site-dashboard :is(.metrics,.grid){gap:12px}
.site-dashboard .metric{padding:12px}
.site-dashboard .metric .value{font-size:25px}
.site-dashboard .form{gap:10px 14px}
.site-dashboard .field{gap:4px;font-size:13px}
.site-dashboard .field :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]),select,textarea){font-size:14px;line-height:1.35;padding:7px 9px;min-height:35px}
.site-dashboard .field textarea{min-height:84px}
.site-dashboard .btn{font-size:13px;line-height:1.35;padding:8px 12px;min-height:34px}
.site-dashboard :is(th,td){padding:8px 10px;font-size:13px;line-height:1.4}
.site-dashboard .tabs{gap:6px;margin-bottom:12px}
.site-dashboard .sidebar-scroll{padding:14px 12px 74px}
.site-dashboard .sidebar a{padding:8px 10px;font-size:13px}
.site-dashboard :is(.email-row,.email-message,.cc-message,.cms-section-editor,.professional-record,.crm-deal-panel){padding:12px}
.site-dashboard .crm-tabs.tabs a.btn{font-size:12px;padding:8px 10px}
.site-dashboard :is(.email-body-text,.crm-plain-note,.cc-message){font-size:13px;line-height:1.5}
html[data-cms-workspace] dialog{font-size:14px;line-height:1.4}
html[data-cms-workspace] dialog :is(input,select,textarea){font-size:14px}
html[data-cms-workspace] dialog :is(th,td){padding:8px 10px;font-size:13px}
html[data-cms-workspace] dialog .btn{font-size:13px;padding:8px 12px}
.cms-theme-toggle{position:fixed;left:12px;bottom:max(12px,env(safe-area-inset-bottom));z-index:90;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:9px 12px;border:1px solid #626870;border-radius:7px;background:#20242a;color:#fff;font:500 12px/1.3 Poppins,system-ui,sans-serif;box-shadow:0 3px 12px #0003;cursor:pointer}
.cms-theme-toggle:hover{border-color:var(--accent,#fdc101)}
.cms-theme-toggle:focus-visible{outline:3px solid var(--accent,#fdc101);outline-offset:3px}
.cms-theme-toggle svg{flex:none}

/* Dark colors are personal. Brand accents and the public Site Builder theme remain intact. */
html[data-cms-theme=dark]{color-scheme:dark;--cms-page:#15191e;--cms-surface:#20262d;--cms-inset:#191e24;--cms-raised:#2a323c;--cms-border:#414b58;--cms-text:#edf0f4;--cms-muted:#b0bac7;--cms-highlight:#3e3520}
:is(.site-dashboard,.cms-standalone)[data-cms-theme=dark]{--site-page:var(--cms-page)!important;--site-surface:var(--cms-surface)!important;--site-text:var(--cms-text)!important;--site-muted:var(--cms-muted)!important;--site-border:var(--cms-border);--site-panel-bg:var(--cms-surface);--site-hover:var(--cms-highlight);--site-sidebar-bg:#191e24!important;--site-sidebar-text:#e4e9f0!important;--site-header-bg:#11151a!important;--site-header-text:#f1f3f6!important;--line:var(--cms-border)!important;--site-link:#ffd36d!important;--site-link-hover:#ffe8ae!important;--neutralButtonColor:#343e4b!important;--neutralButtonText:#f1f3f6!important;background:var(--cms-page);color:var(--cms-text);color-scheme:dark}
html[data-cms-theme=dark] :is(.site-dashboard,.cms-standalone,dialog){--site-panel-bg:var(--cms-surface);--site-border:var(--cms-border);color:var(--cms-text)}
html[data-cms-theme=dark] dialog{background:var(--cms-surface);border-color:var(--cms-border);color-scheme:dark}
html[data-cms-theme=dark] dialog::backdrop{background:#05080cb3}
html[data-cms-theme=dark] :is(.site-dashboard,.cms-standalone,dialog) :is(.panel,.card,.metric,.tablewrap,.notification,.search-result,.cms-section-editor,.cms-navigation-editor,.version-row,.professional-record,.professional-check-grid label,.crm-deal-card,.crm-deal-panel,.crm-deal-head,.crm-deal-preview,.crm-activity-editor,.crm-record-dialog,.email-folders,.email-row,.email-message,.email-dialog-head,.email-deal-sidebar .panel,.email-compose-link,.cc-message,.billing-dialog-head,.support-page,.support-card,.support-inbox,.support-inbox-title,.support-ticket,.support-thread article,.support-message-content,.support-metrics>div,.ap-recognition){background:var(--cms-surface)!important;color:var(--cms-text);border-color:var(--cms-border)!important;box-shadow:none}
html[data-cms-theme=dark] .site-dashboard .workspace{background:var(--cms-page)!important}
html[data-cms-theme=dark] :is(.site-dashboard,.cms-standalone,dialog) :is(.crm-column,.crm-board,.email-thread-layout,.message-list,.bubble,.crm-plain-note,.crm-all-fields textarea[readonly],.crm-deal-dialog input[readonly],.crm-deal-dialog textarea[readonly],.support-empty,.file-tile,.professional-example){background:var(--cms-inset)!important;color:var(--cms-text);border-color:var(--cms-border)!important}
html[data-cms-theme=dark] :is(.site-dashboard,.cms-standalone,dialog) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=submit]):not([type=button]),select,textarea,.cms-rich-body,[contenteditable=true]){background:var(--cms-inset)!important;color:var(--cms-text)!important;border-color:var(--cms-border)!important}
html[data-cms-theme=dark] :is(.site-dashboard,.cms-standalone,dialog) :is(input,textarea)::placeholder{color:#9da9b8;opacity:1}
html[data-cms-theme=dark] :is(.site-dashboard,.cms-standalone,dialog) :is(th,td){border-color:var(--cms-border)!important;color:var(--cms-text)}
html[data-cms-theme=dark] :is(.site-dashboard,.cms-standalone,dialog) th{background:var(--cms-raised)!important}
html[data-cms-theme=dark] :is(.site-dashboard,.cms-standalone,dialog) :is(.muted,small,.email-status,.email-row-meta,.email-addresses,.email-row-open p,.email-row-open time,.email-message time,.email-dialog .field>span,.ap-recognition small){color:var(--cms-muted)!important}
html[data-cms-theme=dark] :is(.site-dashboard,.cms-standalone,dialog) :is(.tabs,.dashboard-section-tabs,.modal-action-dock,.crm-detail-tabs,.crm-timeline-filters,.plan-summary,.cc-row){border-color:var(--cms-border)!important}
html[data-cms-theme=dark] :is(.site-dashboard,.cms-standalone,dialog) :is(.dashboard-section-tab,.crm-detail-tabs button,.crm-timeline-filters button,.email-folders nav button){color:var(--cms-muted)}
html[data-cms-theme=dark] :is(.site-dashboard,.cms-standalone,dialog) :is(.dashboard-section-tab.active,.crm-detail-tabs button.active,.crm-timeline-filters button.active,.email-folders nav button.active,.email-row.unread,.email-bulk,.cc-message.outbound,.cc-message.internal_note,.professional-example,.billing-payment-notice,.ap-recognition-review,.support-private-message .support-message-content){background:var(--cms-highlight)!important;color:#ffe2a0!important}
html[data-cms-theme=dark] .site-dashboard .dashboard-section-tab:hover{background:var(--cms-raised)}
html[data-cms-theme=dark] :is(.site-dashboard,.cms-standalone,dialog) :is(.btn:not(.primary):not(.dark):not(.ghost):not(.dashboard-public-link),.crm-detail-tabs button,.crm-timeline-filters button){background:#343e4b;color:#f1f3f6}
html[data-cms-theme=dark] :is(.site-dashboard,.cms-standalone,dialog) :is(.success,.support-success){background:#183c30!important;border-color:#3b8266!important;color:#b8efd6!important}
html[data-cms-theme=dark] :is(.site-dashboard,.cms-standalone,dialog) :is(.error,.support-error:not(:empty)){background:#47252b!important;border-color:#a2525d!important;color:#ffd3da!important}
html[data-cms-theme=dark] :is(.site-dashboard,.cms-standalone,dialog) :is(.cc-priority-urgent,.cc-priority-high,.cc-status-new,.cc-status-waiting_customer){background:#473b20!important;color:#ffe0a0!important}
html[data-cms-theme=dark] .cms-theme-toggle{background:#303a46;border-color:#697688;color:#f5f7fa}

@media(max-width:1100px){.site-dashboard>.topbar{padding-block:8px}.site-dashboard>.topbar>:is(.dashboard-action-dock,.sb-actions){flex-basis:100%;max-width:100%;justify-content:flex-end}.site-dashboard>.topbar>.brand{flex-basis:242px;max-width:242px}.site-dashboard>.topbar :is(.brand-logo,.brand-wordmark){height:30px!important;max-height:30px}}
@media(max-width:620px){.site-dashboard>.topbar{padding:8px 12px;gap:8px}.site-dashboard>.topbar>.actions{width:auto;gap:5px;max-width:100%}.site-dashboard>.topbar>.brand{flex-basis:155px;max-width:155px}.site-dashboard>.topbar :is(.brand-logo,.brand-wordmark){height:25px!important;max-height:25px}.site-dashboard>.topbar :is(.btn,.lang-select){font-size:11px;min-height:34px;padding:7px 8px}.site-dashboard .workspace{padding:12px 12px 78px 38px}.site-dashboard .workspace h1{font-size:23px}.site-dashboard :is(.panel,.card){padding:12px}.site-dashboard .field :is(input,select,textarea){font-size:16px}.site-dashboard .dashboard-section-tab{font-size:12px;min-height:40px;padding:9px 10px}.site-dashboard .workspace .btn{min-height:38px}.cms-theme-toggle{left:10px;font-size:11px;min-height:40px}}
@media print{.cms-theme-toggle{display:none}}

/* Helpdesk uses its own shell, with the same personal appearance preference. */
html[data-cms-workspace] .cms-standalone.support-page{font-size:14px;line-height:1.4;padding:16px 24px 78px}
html[data-cms-workspace] .cms-standalone .support-head{padding:10px 14px;min-height:56px;margin-bottom:16px}
html[data-cms-workspace] .cms-standalone :is(h1,h2){font-size:24px;margin-block:10px}
html[data-cms-workspace] .cms-standalone :is(.support-card,.support-ticket,.support-inbox-title){padding:12px}
html[data-cms-workspace] .cms-standalone :is(input,select,textarea){font-size:14px;padding:8px 10px}
html[data-cms-theme=dark] .cms-standalone .support-head{background:#11151a;color:var(--cms-text);border-color:var(--cms-border)}
html[data-cms-theme=dark] :is(.site-dashboard,.cms-standalone) :is(.support-status,.support-muted){color:var(--cms-muted)}
/* Secondary CMS surfaces: media controls, menu editor, WhatsApp and staff panels. */
html[data-cms-theme=dark] :is(.site-dashboard,.cms-standalone,dialog) :is(.image-field,.image-picker,.inset-panel,.menu-edit-card,.menu-drag,.menu-import-note,.listing-more-menu,.wa-conversation,.wa-window,.wa-dialog,.maintenance-state,.listing-wizard-steps li,.listing-wizard-steps button){background:var(--cms-surface)!important;color:var(--cms-text)!important;border-color:var(--cms-border)!important}
html[data-cms-theme=dark] :is(.site-dashboard,dialog) :is(.image-thumbnail,.wa-bubble,.wa-conversation #waReply,.wa-dialog input[readonly]){background:var(--cms-inset)!important;color:var(--cms-text);border-color:var(--cms-border)!important}
html[data-cms-theme=dark] :is(.site-dashboard,dialog) :is(.image-status,.image-field .field>span){color:var(--cms-muted)}
html[data-cms-theme=dark] :is(.site-dashboard,dialog) :is(.cc-row:hover,.menu-edit-card:hover){background:var(--cms-raised)!important}
html[data-cms-theme=dark] :is(.site-dashboard,dialog) :is(.user-status-suspended,.security-alert,.access-none,.role-access-none){background:#47252b!important;color:#ffd3da!important}
html[data-cms-theme=dark] :is(.site-dashboard,dialog) :is(.user-status-pending,.security-note,.maintenance-state.is-active,.menu-import-note,.listing-wizard-steps .current,.listing-wizard-steps button.current){background:var(--cms-highlight)!important;color:#ffe2a0!important}
html[data-cms-theme=dark] .sanne-panel{background:var(--cms-surface)!important;color:var(--cms-text);border-color:var(--cms-border)!important}
html[data-cms-theme=dark] .sanne-panel :is(.sanne-bubble,.sanne-examples,.sanne-form){background:var(--cms-inset)!important;color:var(--cms-text)!important;border-color:var(--cms-border)!important}
html[data-cms-theme=dark] .sanne-panel :is(textarea,button:not([type=submit])){background:var(--cms-raised)!important;color:var(--cms-text)!important;border-color:var(--cms-border)!important}

/* Centre the menu grip alongside the workspace tabs, below the section title. */
.site-dashboard .sidebar>.sidebar-handle{top:42px}
@media(max-width:620px){.site-dashboard .sidebar>.sidebar-handle{top:40px}}
