/* Shared palette bridge: layout geometry stays owned by cabinet v147. */
#pulse-customer-portal-v974-root.pc147{--c-bg:#f4f5f8;--c-panel:#ffffff;--c-ink:#344256;--c-muted:#626f82;--c-line:#dce2eb;--c-tint:#e9edf6;--soft-accent:#dce6f6;--soft-on:#344c70}
#pulse-customer-portal-v974-root.pc147[data-personal-theme=dark]{--c-bg:#282b32;--c-panel:#333740;--c-ink:#eef0f5;--c-muted:#bec5d2;--c-line:#555e6e;--c-tint:#414857;color-scheme:dark!important}
#pulse-customer-portal-v974-root.pc147[data-cabinet-custom=true]{--c-bg:var(--cab-bg);--c-panel:var(--cab-panel);--c-ink:var(--cab-text);--c-muted:var(--cab-muted);--c-line:var(--cab-border);--c-tint:var(--pc-nav2);background:var(--cab-background)!important;color-scheme:dark!important;--soft-accent:color-mix(in srgb,var(--cab-accent) 22%,var(--c-panel));--soft-on:var(--c-ink)}
#pulse-customer-portal-v974-root.pc147[data-cabinet-light=true]{color-scheme:light!important}
#pulse-customer-portal-v974-root.pc147[data-cabinet-custom=true] :is(.pc972-shell,.pc972-main,.pc972-head,.pc972-content){background:transparent!important}
#pulse-customer-portal-v974-root.pc147 .pc972-side{background:var(--c-tint)!important;color:var(--c-ink)!important;border-color:var(--c-line)!important}
#pulse-customer-portal-v974-root.pc147 .pc972-side :is(.pc972-nav button,.pc972-btn:not(.cp147-new),.pc972-logo small){color:var(--c-ink)!important;border-color:var(--c-line)!important}
#pulse-customer-portal-v974-root.pc147 .pc972-nav button.active{background:var(--c-panel)!important;color:var(--c-ink)!important;box-shadow:0 3px 12px #26345208}
#pulse-customer-portal-v974-root.pc147 :is(.pc972-btn.primary,.pc972-side .cp147-new){background:var(--soft-accent)!important;color:var(--soft-on)!important;border:1px solid var(--c-line)!important}
#pulse-customer-portal-v974-root.pc147 .cp147-crm{background:var(--c-panel)!important;color:var(--c-ink)!important;border-color:var(--c-line)!important}
#pulse-customer-portal-v974-root.pc147 .cp147-crm small{color:var(--c-muted)!important}
#pulse-customer-portal-v974-root.pc147 :is(.pc972-stat,.pc972-card,.cp147-widget){box-shadow:0 4px 18px #26345205!important}
/* Sound controls keep a matched foreground/background even inside dark modals. */
body .pulse-sound-settings{background:#f5f6fa!important;color:#344256!important;border-color:#d9e0eb!important;box-shadow:none}
body .pulse-sound-settings :is(h3,label,span,output){color:inherit!important}
body .pulse-sound-settings small{color:#627086!important}
body .pulse-sound-settings .pulse-sound-previews button{background:#e6edf7!important;color:#344c70!important;border:1px solid #b9c8dc!important;opacity:1}
body .pulse-sound-settings .pulse-sound-previews button:disabled{background:#edf0f5!important;color:#5b687a!important;cursor:not-allowed}
body .pulse-sound-settings fieldset:disabled{opacity:1}
body .pulse-sound-settings .pulse-sound-previews button:hover:not(:disabled){background:#d8e4f4!important}
/* Demo uses the same quiet neutral surfaces and pastel accents. */
main.pilot147{--p-bg:#f4f5f8;--p-panel:#fdfdff;--p-text:#344256;--p-muted:#626f82;--p-line:#dce2eb;--p-side:#e9edf5;--p-accent:#dce6f6}
main.pilot147.dark{--p-bg:#282b32;--p-panel:#333740;--p-text:#eef0f5;--p-muted:#bec5d2;--p-line:#555e6e;--p-side:#303640;--p-accent:#45546d}
main.pilot147 aside{background:var(--p-side);color:var(--p-text);border-inline-end:1px solid var(--p-line)}
main.pilot147 aside :is(button,a:not(.pilot-brand)){color:var(--p-text);border-color:var(--p-line)}
main.pilot147 nav button.active{background:var(--p-panel);box-shadow:0 3px 12px #26345208}
main.pilot147 .pilot-new,main.pilot147 .pilot-badge{background:var(--p-accent);color:var(--p-text)}
main.pilot147 .pilot-bottom button{color:var(--p-text)}
main.pilot147 .pilot-notice{background:var(--p-accent);color:var(--p-text)}
main.pilot147 .pilot-overlay{background:#26324770;backdrop-filter:blur(5px)}
/* Opacity and transform only; never animate layout sizes or delay actions. */
@keyframes pulse-soft-enter154{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:no-preference){
 :is(#pulse-customer-portal-v974-root.pc147,main.pilot147) :is(button,a,input,select){transition:background-color 160ms ease,color 160ms ease,border-color 160ms ease,box-shadow 160ms ease,transform 140ms ease}
 :is(#pulse-customer-portal-v974-root.pc147,main.pilot147) button:hover:not(:disabled){box-shadow:0 3px 12px #34425612}
 :is(#pulse-customer-portal-v974-root.pc147,main.pilot147) button:active:not(:disabled){transform:translateY(1px)}
 #pulse-customer-portal-v974-root.pc147 :is(.cp147-widget,.pc972-modalcard),main.pilot147 :is(.pilot-panel,.pilot-dialog),.cab78-editor{animation:pulse-soft-enter154 180ms ease-out both}
}
/* A column grows with its own orders, never with its tallest neighbour. */
#pulse-customer-portal-v974-root .pc972-board{align-items:start!important}
#pulse-customer-portal-v974-root .pc972-board>.pc972-col{align-self:start!important;height:auto!important;min-height:0!important}
#pulse-customer-portal-v974-root .pc972-col>.pc972-empty{min-height:58px;padding:12px 8px}

/* PULSESTOM hierarchy: dark navigation, quiet canvas, distinct working surfaces. */
#pulse-customer-portal-v974-root.pc147{--c-bg:#eef2f6;--c-panel:#fff;--c-ink:#20384d;--c-muted:#53697d;--c-line:#cdd8e3;--c-tint:#e4ebf2}
#pulse-customer-portal-v974-root.pc147 .pc972-side{background:linear-gradient(165deg,#142d41,#0c1d2e)!important;color:#eaf2fa!important;border-color:#294457!important}
#pulse-customer-portal-v974-root.pc147 .pc972-side :is(.pc972-nav button,.pc972-btn:not(.cp147-new),.pc972-logo small){color:#d3e2ef!important;border-color:#365165!important}
#pulse-customer-portal-v974-root.pc147 .pc972-nav button.active{background:#25465f!important;color:#fff!important;box-shadow:inset 3px 0 #79c5df}
#pulse-customer-portal-v974-root.pc147 :is(.pc972-btn.primary,.pc972-side .cp147-new){background:#286184!important;color:#fff!important;border-color:#397493!important;font-weight:650}
#pulse-customer-portal-v974-root.pc147 .pc972-side .cp147-crm{background:#1b354b!important;color:#eaf2fa!important;border-color:#3d5b71!important}
#pulse-customer-portal-v974-root.pc147 .pc972-side .cp147-crm small{color:#b8d2e3!important}
#pulse-customer-portal-v974-root.pc147 :is(.pc972-stat,.pc972-card,.cp147-widget,.pc974-person){background:var(--c-panel)!important;box-shadow:0 3px 12px #16334e08!important;border-radius:12px!important}
#pulse-customer-portal-v974-root.pc147 .pc972-col{background:var(--c-tint)!important;border-radius:12px!important}
#pulse-customer-portal-v974-root.pc147 .pc972-colhead{padding:4px 4px 10px;font-weight:700}
#pulse-customer-portal-v974-root.pc147 .pc972-stat b{font-weight:700;color:var(--c-ink)!important}
#pulse-customer-portal-v974-root.pc147 .pc972-stat small{font-weight:550}
#pulse-customer-portal-v974-root.pc147 :focus-visible{outline:2px solid #458db2;outline-offset:3px}
main.pilot147{--p-bg:#eef2f6;--p-panel:#fff;--p-text:#20384d;--p-muted:#53697d;--p-line:#cdd8e3;--p-accent:#286184}
main.pilot147.dark{--p-bg:#0d1825;--p-panel:#172637;--p-text:#edf4fb;--p-muted:#b1c3d5;--p-line:#3e566e;--p-accent:#286184}
main.pilot147 aside{background:linear-gradient(165deg,#142d41,#0c1d2e);color:#eaf2fa;border-color:#294457}
main.pilot147 aside :is(button,a:not(.pilot-brand)){color:#d3e2ef;border-color:#365165}
main.pilot147 nav button.active{background:#25465f;color:#fff;box-shadow:inset 3px 0 #79c5df}
main.pilot147 .pilot-new{background:#286184;color:#fff}
main.pilot147 .pilot-badge,main.pilot147 .pilot-notice{background:var(--p-panel);color:var(--p-text);border:1px solid var(--p-line)}
main.pilot147 :is(.pilot-panel,.pilot-metrics button){background:var(--p-panel);box-shadow:0 3px 12px #16334e08;border-radius:12px}
main.pilot147 .pilot-metrics b{font-weight:700}

/* Icon-only mode is a narrow rail, with the freed space given to the workspace. */
#pulse-customer-portal-v974-root.pc147[data-cabinet-collapsed=true] .pc972-shell{display:grid!important;grid-template-columns:76px minmax(0,1fr)!important}
#pulse-customer-portal-v974-root.pc147[data-cabinet-collapsed=true] .pc972-side{width:76px!important;min-width:0!important;max-width:76px!important;box-sizing:border-box;padding:16px 10px!important;gap:12px!important;overflow-x:hidden}
#pulse-customer-portal-v974-root.pc147[data-cabinet-collapsed=true] .pc972-main{min-width:0!important;width:auto!important;margin-inline-start:0!important}
#pulse-customer-portal-v974-root.pc147[data-cabinet-collapsed=true] :is(.pc972-nav,.pc79-side-tools,.pc972-sidefoot){display:flex!important;flex-direction:column!important;gap:7px!important;width:100%;min-width:0}
#pulse-customer-portal-v974-root.pc147[data-cabinet-collapsed=true] .pc972-logo{display:none!important}
#pulse-customer-portal-v974-root.pc147[data-cabinet-collapsed=true] .pc972-side [data-sidebar-icon156]{display:flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box;width:100%!important;min-width:0!important;min-height:44px!important;height:44px!important;padding:8px!important;margin-inline:0!important;gap:0!important;font-size:0!important;line-height:0!important;overflow:hidden}
#pulse-customer-portal-v974-root.pc147[data-cabinet-collapsed=true] .pc972-side [data-sidebar-icon156]>*{display:none!important}
#pulse-customer-portal-v974-root.pc147[data-cabinet-collapsed=true] .pc972-side [data-sidebar-icon156]::before{content:attr(data-sidebar-icon156)!important;font:22px/1 system-ui!important;display:block!important}
#pulse-customer-portal-v974-root.pc147[data-cabinet-collapsed=true] .pc972-sidecard{background:transparent!important;border:0!important;padding:0!important}
#pulse-customer-portal-v974-root.pc147[data-cabinet-collapsed=true] .cab78-menu-toggle{color:#eaf2fa!important;background:#1b354b!important;border-color:#3d5b71!important}
@media(max-width:650px){#pulse-customer-portal-v974-root.pc147[data-cabinet-collapsed=true] .pc972-shell{grid-template-columns:64px minmax(0,1fr)!important}#pulse-customer-portal-v974-root.pc147[data-cabinet-collapsed=true] .pc972-side{width:64px!important;max-width:64px!important;padding:12px 6px!important}}
