/* System Bee palette with readable secondary text and two-color focus. */
:root{--a11y-muted:#52616f;--a11y-focus:#03223f}
html[data-theme=dark]{--a11y-muted:#b4c3d2;--a11y-focus:#e19f41}
html:not([data-theme=dark]){--ink:#03101c;--muted:#52616f;--green:#03223f;--bg:#f4f7fa}
html:not([data-theme=dark]) :is(.workspace-label,.section-label,.sidebar-bottom,.sidebar-bottom small,.breadcrumb,.breadcrumb span,.stats article>span,.stats small,.eyebrow,.nav,.campaign,.panel-footer,.bottom-note,.row-field,.activity small,.suggestions,.suggestions button,.empty p,.contact-reading){color:var(--a11y-muted)}
html:not([data-theme=dark]) .primary{background:#03223f;color:#fff}
html:not([data-theme=dark]) .local-pill{background:#eaf1f7;color:#324f6b;border-color:#bdcbd8}
html:not([data-theme=dark]) :is(.stage,.avatar){color:#315644;background:#eaf2eb}
html:not([data-theme=dark]) .info{color:#42543b}
html:not([data-theme=dark]) :is(.text-button,.close,.secondary){color:#324f6b}
html:not([data-theme=dark]) :is(th,.muted){color:var(--a11y-muted)}
html:not([data-theme=dark]) [data-crm-layout][aria-pressed=true]{color:#fff;background:#03223f}
html[data-theme=dark] .website-opportunity{color:#f1c586}
:is(button,a,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid var(--a11y-focus)!important;outline-offset:3px;box-shadow:0 0 0 2px var(--surface,#fff)}
.skip-link{position:fixed;left:16px;top:-100px;z-index:1000;padding:12px 20px;border-radius:6px;background:var(--surface,#fff);color:var(--ink);border:2px solid var(--a11y-focus);font-weight:700}.skip-link:focus{top:12px}
button,a,input,select,textarea,summary{scroll-margin-block:24px}button,.primary,.secondary{white-space:normal}.text-button{line-height:1.5}
button,.text-button,summary{min-height:28px}summary{line-height:1.5;padding-block:4px;cursor:pointer}input[type=checkbox],input[type=radio]{width:24px;height:24px;min-width:24px;flex:none;vertical-align:middle}
dialog{overscroll-behavior:contain}dialog .dialog-heading>div,dialog .crm-layout>div,dialog label,.form-grid>*{min-width:0}dialog :is(input,select,textarea){max-width:100%}dialog :is(p,small,h2,h3,.info){overflow-wrap:anywhere}.message>div,.dialog-actions,.history-actions{flex-wrap:wrap}
.table-scroll{max-width:100%;overflow-x:auto}.table-scroll:focus-visible{outline-offset:-3px}
.login-page main{margin:0}.login-page :is(input,select){max-width:100%}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important;animation-iteration-count:1!important}}
@media(max-width:720px){
 .sidebar nav{display:flex;flex-wrap:wrap}.sidebar nav .nav{flex:1 1 130px;min-width:0;width:auto}
 header{height:auto;min-height:64px;padding:12px 16px;flex-wrap:wrap;gap:12px}.header-actions{flex-wrap:wrap;gap:8px}.breadcrumb{overflow-wrap:anywhere}
 .panel-heading{flex-wrap:wrap}.panel-heading>div{min-width:0}.page-heading>div{min-width:0}.page-heading h1{overflow-wrap:anywhere}
 .filters{gap:10px}.filters>*{max-width:100%;min-width:0}.filters .crm-only{flex:1 1 140px}.filters select{width:100%}
 dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:16px}.crm-layout,.form-grid,.detail-grid{grid-template-columns:minmax(0,1fr)}
 .stats article{min-width:0}.history-metrics{grid-template-columns:minmax(0,1fr)}.panel-footer{flex-wrap:wrap;gap:12px}.pagination{flex-wrap:wrap}
 .primary,.secondary,.text-button,.close,summary{min-height:44px}.close{min-width:44px;flex:none}input:not([type=checkbox]):not([type=radio]),select{min-height:44px;font-size:16px}
 .dialog-heading{gap:8px}.dialog-heading h2{font-size:22px}.history-actions{align-items:stretch}.history-actions button{text-align:left}.crm-activity-actions{flex-wrap:wrap}
}
