/* Appearance control sits between the left language picker and right account menu. */
#hb-site-header .hb-theme-picker{position:relative;margin-inline-start:auto;font:700 12px/1.5 Arial,Helvetica,sans-serif}
#hb-site-header .hb-theme-picker>summary{display:flex;align-items:center;gap:7px;min-height:44px;padding:6px 10px;white-space:nowrap}
#hb-site-header .hb-theme-symbol{font-size:22px;width:24px;text-align:center;line-height:1}
#hb-site-header .hb-theme-options{position:absolute;top:100%;right:0;z-index:126;width:210px;max-width:calc(100vw - 32px);padding:6px;background:#fff;border:1px solid #dadbd6;border-radius:8px;box-shadow:0 12px 30px #111a2424}
#hb-site-header .hb-theme-options button{display:flex;align-items:center;gap:9px;width:100%;min-height:44px;margin:0;padding:10px;border:0;border-radius:4px;text-align:left;background:transparent;color:#24333d;cursor:pointer;font:600 13px/1.5 Arial,Helvetica,sans-serif}
#hb-site-header .hb-theme-options button:hover{background:#f4f3ed}
#hb-site-header .hb-theme-options button[aria-pressed=true]{outline:2px solid #a54635;outline-offset:-2px;background:#f4f3ed}
#hb-site-header .hb-theme-options button[aria-pressed=true]::after{content:'✓';margin-inline-start:auto}
#hb-site-header .hb-theme-swatch{width:14px;height:14px;border:1px solid #68767e;border-radius:50%;flex:none}
#hb-site-header .hb-theme-swatch.light{background:#fbfaf6}
#hb-site-header .hb-theme-swatch.dark{background:#151b24}
#hb-site-header .hb-theme-swatch.green{background:#78f599}
#hb-site-header .hb-theme-swatch.amber{background:#ffc66a}
#hb-site-header .hb-theme-picker~.hb-account-picker{margin-inline-start:0}
#hb-site-header .hb-theme-picker :focus-visible{outline:3px solid #136f86;outline-offset:2px}
@media(max-width:560px){#hb-site-header .hb-theme-label{display:none}#hb-site-header .hb-theme-picker>summary{padding:6px;gap:0}#hb-site-header .hb-language-inner{gap:4px;padding-inline:12px}#hb-site-header .hb-account-label{max-width:85px}}
/* Light retains the original site design. Alternative palettes have explicit surfaces and contrast. */
html[data-hb-theme="dark"]{--hb-bg:#10151c;--hb-surface:#1a2430;--hb-hover:#253443;--hb-text:#edf2f7;--hb-muted:#b9c8d4;--hb-accent:#ffad99;--hb-border:#526577;--hb-on-accent:#10151c;--hb-danger:#ffb9b9}
html[data-hb-theme="green"]{--hb-bg:#06120b;--hb-surface:#0d2115;--hb-hover:#183523;--hb-text:#9bf6b3;--hb-muted:#8fcba1;--hb-accent:#b8ffca;--hb-border:#50745b;--hb-on-accent:#06120b;--hb-danger:#ffd0b0}
html[data-hb-theme="amber"]{--hb-bg:#171006;--hb-surface:#281d0d;--hb-hover:#3c2c14;--hb-text:#ffd38a;--hb-muted:#d6b786;--hb-accent:#ffe0a5;--hb-border:#816941;--hb-on-accent:#171006;--hb-danger:#ffbbb0}
html[data-hb-theme]:not([data-hb-theme="light"]){color-scheme:dark;background:var(--hb-bg)}
/* Normalize legacy inline/hard-coded colors without filtering photographs, SVGs or logos. */
html[data-hb-theme]:not([data-hb-theme="light"]) :where(body,body *){color:var(--hb-text)!important;border-color:var(--hb-border)!important;background-color:transparent!important;background-image:none!important;text-shadow:none!important}
html[data-hb-theme]:not([data-hb-theme="light"]) body{background:var(--hb-bg)!important}
html[data-hb-theme]:not([data-hb-theme="light"]) :where(p,small,figcaption,label,.feature-intro,.feature-lead,.suite-hero p,.hb-form-note){color:var(--hb-muted)!important}
html[data-hb-theme]:not([data-hb-theme="light"]) :where(h1,h2,h3,h4,h5,h6,strong,b,summary){color:var(--hb-text)!important}
html[data-hb-theme]:not([data-hb-theme="light"]) :where(a,a *,em,[class*="kicker"],.suite-card-index){color:var(--hb-accent)!important}
html[data-hb-theme]:not([data-hb-theme="light"]) :where(.suite-card,.connected-card,.wf-card,.cap-card,.engagement-card,.note-card,.account-card,.hb-chief-node,.hb-chief-platform,.feature-chip,.feature-role,.feature-flow article,.feature-related a,.capability-directory a,.hb-price-option,.iv-lang,.iv-map-pin,.feature-boundary,.suite-note,.feature-visual,table,dialog){background-color:var(--hb-surface)!important}
html[data-hb-theme]:not([data-hb-theme="light"]) :where(main>section:nth-of-type(even),footer,.feature-cta,.suite-call,.agent-cta,.hw-cta,.wf-cta,.faq-cta,.hb-team-cta,.platform-band){background-color:var(--hb-surface)!important}
html[data-hb-theme]:not([data-hb-theme="light"]) :where(#hb-site-header .hb-header,#hb-site-header .hb-language-bar,#hb-site-header .hb-language-options,#hb-site-header .hb-account-options,#hb-site-header .hb-theme-options,#hb-site-header .hb-dropdown,#hb-site-header .hb-navigation.is-open){background-color:var(--hb-surface)!important}
html[data-hb-theme]:not([data-hb-theme="light"]) :where(input,textarea,select,option){background-color:var(--hb-bg)!important;color:var(--hb-text)!important;accent-color:var(--hb-accent)}
html[data-hb-theme]:not([data-hb-theme="light"]) ::placeholder{color:var(--hb-muted)!important;opacity:1}
html[data-hb-theme]:not([data-hb-theme="light"]) :where(button,.button,.feature-button,.hb-book,.hb-app-hero-button,.suite-call>a,.hb-contact-form button){background-color:var(--hb-accent)!important;color:var(--hb-on-accent)!important;border-color:var(--hb-accent)!important}
html[data-hb-theme]:not([data-hb-theme="light"]) :where(button *,.button *,.feature-button *,.hb-book *){color:var(--hb-on-accent)!important}
html[data-hb-theme]:not([data-hb-theme="light"]) :where(#hb-site-header .hb-theme-options button,#hb-site-header .hb-account-signout){background-color:transparent!important;color:var(--hb-text)!important}
html[data-hb-theme]:not([data-hb-theme="light"]) :where(#hb-site-header .hb-theme-options button *){color:var(--hb-text)!important}
html[data-hb-theme]:not([data-hb-theme="light"]) :where(#hb-site-header nav a:hover,#hb-site-header .hb-theme-options button:hover,#hb-site-header .hb-theme-options button[aria-pressed=true],#hb-site-header .hb-account-signout:hover){background-color:var(--hb-hover)!important}
html[data-hb-theme]:not([data-hb-theme="light"]) :where(:focus-visible){outline:3px solid var(--hb-accent)!important;outline-offset:3px}
html[data-hb-theme]:not([data-hb-theme="light"]) #hb-site-header .hb-theme-options button[aria-pressed=true]{outline-color:var(--hb-accent)!important}
html[data-hb-theme]:not([data-hb-theme="light"]) :where(.hb-account-error,[role="alert"]){color:var(--hb-danger)!important}
/* Artwork keeps its original colors; a pale backing protects dark labels in transparent images. */
html[data-hb-theme]:not([data-hb-theme="light"]) img{background-color:#f4f4ef!important;border-radius:6px}
html[data-hb-theme]:not([data-hb-theme="light"]) #hb-site-header .hb-theme-swatch.light{background-color:#fbfaf6!important}
html[data-hb-theme]:not([data-hb-theme="light"]) #hb-site-header .hb-theme-swatch.dark{background-color:#151b24!important}
html[data-hb-theme]:not([data-hb-theme="light"]) #hb-site-header .hb-theme-swatch.green{background-color:#78f599!important}
html[data-hb-theme]:not([data-hb-theme="light"]) #hb-site-header .hb-theme-swatch.amber{background-color:#ffc66a!important}
html[data-hb-theme]:not([data-hb-theme="light"]) ::selection{background:var(--hb-accent);color:var(--hb-on-accent)}

/* Optional old-terminal typography: true black, white or green text. */
html[data-hb-theme="hic-white"]{--hb-bg:#000000;--hb-surface:#000000;--hb-hover:#181818;--hb-text:#ffffff;--hb-muted:#dddddd;--hb-accent:#ffffff;--hb-border:#757575;--hb-on-accent:#000000;--hb-danger:#ffffff}
html[data-hb-theme="hic-green"]{--hb-bg:#000000;--hb-surface:#000000;--hb-hover:#071b0c;--hb-text:#79ff98;--hb-muted:#70d98c;--hb-accent:#a3ffb8;--hb-border:#4c8059;--hb-on-accent:#000000;--hb-danger:#baffc9}
html:is([data-hb-theme="hic-white"],[data-hb-theme="hic-green"]) :where(body,body *,body *::before,body *::after){font-family:"Courier New",Courier,ui-monospace,monospace!important;letter-spacing:normal!important}
#hb-site-header .hb-theme-options{width:270px;max-height:70vh;max-height:70dvh;overflow-y:auto;overscroll-behavior:contain}
#hb-site-header .hb-theme-swatch.hic-white{background-color:#ffffff!important;border-color:#757575!important}
#hb-site-header .hb-theme-swatch.hic-green{background-color:#79ff98!important;border-color:#4c8059!important}
