.sd-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    flex: 0 0 40px;
    border: 1px solid var(--sd-border);
    border-radius: 8px;
    background: var(--sd-surface);
    color: var(--sd-text);
    cursor: pointer;
}
.sd-theme-toggle:hover { background: var(--sd-surface-soft); }
.sd-theme-spin { --sd-spin-duration: 400ms; display: block; flex: none; overflow: visible; }
.sd-theme-spin__disc, .sd-theme-spin__ray {
    transform-origin: 12px 12px;
    transition: transform var(--sd-spin-duration) cubic-bezier(0.4, 0, 0.2, 1);
}
.sd-theme-spin__ray { transition-delay: calc(var(--sd-spin-duration) * 0.15); }
.sd-theme-spin__cutout { transition: d var(--sd-spin-duration) cubic-bezier(0.4, 0, 0.2, 1), transform var(--sd-spin-duration) cubic-bezier(0.4, 0, 0.2, 1); }
html[data-sd-theme="dark"] .sd-theme-spin__disc { transform: scale(1.7); }
html[data-sd-theme="dark"] .sd-theme-spin__ray { transform: rotate(45deg) scale(0); transition-delay: 0ms; }
html[data-sd-theme="dark"] .sd-theme-spin__cutout { transform: translate(-13px, 2px); transition-delay: calc(var(--sd-spin-duration) * 0.15); }
@supports (d: path("M0 0")) {
    html[data-sd-theme="dark"] .sd-theme-spin__cutout { d: path("M0 2h13a1 1 0 0010 10v14H0Z"); transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .sd-theme-spin { --sd-spin-duration: 0ms; }
}
/* Theme changes paint together; normal hover, burger and blob motion remain intact. */
html[data-sd-theme-switching] body,
html[data-sd-theme-switching] body *,
html[data-sd-theme-switching] body *::before,
html[data-sd-theme-switching] body *::after {
    transition-property: transform, opacity, visibility !important;
}
html[data-sd-theme-switching] .sd-theme-toggle .sd-theme-spin__cutout { transition-property: d, transform !important; }
.sd-portal-login-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.sd-portal-login-toolbar > a { margin-bottom: 0; }
html[data-sd-theme="light"] { color-scheme: light; }
html[data-sd-theme="dark"] {
    color-scheme: dark;
    --sd-bg: #141517;
    --sd-surface: #1e2023;
    --sd-surface-soft: #292c30;
    --sd-text: #f3f5f7;
    --sd-text-secondary: #bac1ca;
    --sd-text-readable: #c0c6ce;
    --sd-text-muted: #a5aeb9;
    --sd-border: #41464e;
    --sd-link: #79bdff;
    --sd-shadow: 0 1px 2px rgb(0 0 0 / 15%), 0 12px 32px rgb(0 0 0 / 20%);
}
html[data-sd-theme="dark"] body { background: var(--sd-bg) !important; color: var(--sd-text); }
html[data-sd-theme="dark"] :is(.bg-surface, .bg-surface-container-lowest, .bg-background, .hptr-shell-main) { background-color: var(--sd-bg) !important; }
html[data-sd-theme="dark"] :is(.bg-white, .bg-surface-card, .bg-surface-container, .bg-surface-container-low, .hptr-docs-article, .hptr-betterdocs-search-shell, .hptr-shell-nav, .sd-ticket-dialog, .hptr-docs-sidebar__support, .hptr-profile-modal > div) { background-color: var(--sd-surface) !important; }
html[data-sd-theme="dark"] :is(.bg-surface-container-high, .bg-surface-container-highest, .bg-accent-blue-soft, .bg-primary-container\/20, .bg-surface-variant) { background-color: var(--sd-surface-soft) !important; }
html[data-sd-theme="dark"] :is([class~="bg-surface/80"], [class~="bg-surface/50"], .glass-header, .hptr-shell-header, body > header.sticky, body > nav.sticky) { background: rgb(20 21 23 / 96%) !important; }
html[data-sd-theme="dark"] .hptr-export-header-frame { background: var(--sd-bg) !important; }
html[data-sd-theme="dark"] .glass-panel { background: var(--sd-surface) !important; }
html[data-sd-theme="dark"] :is(.text-on-surface, .text-on-surface-variant, .text-muted-text, .text-outline, .sd-ticket-dialog, .hptr-docs-article__content) { color: var(--sd-text) !important; }
html[data-sd-theme="dark"] :is(.text-muted-text, .text-on-surface-variant, .hptr-docs-article__meta, .sd-ticket-dialog__status > p, .sd-ticket-dialog__email, .sd-ticket-dialog__secondary, .sd-ticket-dialog__close) { color: var(--sd-text-readable) !important; }
html[data-sd-theme="dark"] :is(.text-primary, a.text-primary, button.text-primary) { color: var(--sd-link) !important; }
html[data-sd-theme="dark"] :is(.border-border-subtle, .border-outline, .hptr-docs-article, .sd-ticket-dialog) { border-color: var(--sd-border) !important; }
html[data-sd-theme="dark"] .border-primary { border-color: var(--sd-link) !important; }
html[data-sd-theme="dark"] .text-status-success { color: #64e0b4 !important; }
html[data-sd-theme="dark"] :is(.text-error, .text-status-error) { color: #ff9dac !important; }
html[data-sd-theme="dark"] :is(input:not([type="checkbox"]):not([type="radio"]), textarea, select) { background-color: var(--sd-surface) !important; color: var(--sd-text) !important; border-color: var(--sd-border) !important; }
html[data-sd-theme="dark"] :is(.hptr-docs-sidebar__link, .hptr-docs-sidebar__summary):hover,
html[data-sd-theme="dark"] :is(.hptr-docs-sidebar__link.is-active, .hptr-docs-sidebar__summary.is-active, .hptr-docs-sidebar__child-link.is-active, .hptr-docs-sidebar__child-link:hover, .hptr-docs-sidebar__count) { background: var(--sd-surface-soft); color: var(--sd-link); }
html[data-sd-theme="dark"] .hptr-docs-article__content :is(blockquote, code) { background: var(--sd-surface-soft); color: var(--sd-text); }
html[data-sd-theme="dark"] :is(#hptr-docs-search-results, .hptr-betterdocs-search-shell .betterdocs-search-result-wrap, .hptr-betterdocs-search-shell .docs-search-result) { background: var(--sd-surface) !important; color: var(--sd-text) !important; border-color: var(--sd-border) !important; }
html[data-sd-theme="dark"] :is(#hptr-docs-search-results, .hptr-betterdocs-search-shell .docs-search-result) a { color: var(--sd-text) !important; }
html[data-sd-theme="dark"] :is(#hptr-docs-search-results, .hptr-betterdocs-search-shell .docs-search-result) a:is(:hover, :focus-visible) { background: var(--sd-surface-soft) !important; }
html[data-sd-theme="dark"] .hptr-betterdocs-search-shell .docs-search-result li { background: transparent !important; color: var(--sd-text) !important; border-color: var(--sd-border) !important; }
html[data-sd-theme="dark"] .hptr-betterdocs-search-shell .docs-search-result li:is(:hover, :focus-within) { background: var(--sd-surface-soft) !important; }
html[data-sd-theme="dark"] .hptr-betterdocs-search-shell .docs-search-result .betterdocs-search-title { color: var(--sd-text) !important; }
html[data-sd-theme="dark"] .hptr-betterdocs-search-shell .docs-search-result .betterdocs-search-category { color: var(--sd-text-readable) !important; }
html[data-sd-theme="dark"] :is(.sd-svg-burger, .hptr-shell-menu-button) { color: var(--sd-text); background: var(--sd-surface); }
html[data-sd-theme="dark"] .hptr-blob-cta-button,
html[data-sd-theme="dark"] .hptr-blob-cta-button:is(:hover, :focus-visible) { background: linear-gradient(var(--sd-surface), var(--sd-surface)) padding-box, var(--sd-gradient-logo) border-box !important; color: var(--sd-text) !important; }
html[data-sd-theme="dark"] .hptr-blob-cta-button:not(:hover):not(:focus-visible) .hptr-final-cta-button__label { color: var(--sd-text) !important; }
html[data-sd-theme="dark"] .hptr-animated-submit { background: var(--sd-surface) !important; color: var(--sd-link); }
html[data-sd-theme="dark"] .hptr-animated-submit[data-submit-state="success"] { background: #087d6c !important; color: white; }
html[data-sd-theme="dark"] [id$="spectral-dot-wordmark"] path { fill: var(--sd-text); }
html[data-sd-theme="light"] .sd-header-logo-motion [id$="spectral-dot-wordmark"] path { fill: #05070b; }
html[data-sd-theme="dark"] :is(.bg-primary, .bg-inverse-surface, .bg-status-warning) { background-color: #102a4f; }
html[data-sd-theme="dark"] :is(.bg-primary, .bg-inverse-surface) :is(.text-muted-text, .text-on-surface-variant) { color: #c0c6ce !important; }
html[data-sd-theme="dark"] .sd-ticket-dialog__progress { background: var(--sd-surface-soft); }
html[data-sd-theme="dark"] .sd-ticket-dialog__primary { background: #d7eaff; color: #102a4f; }
html[data-sd-theme="dark"] .sd-ticket-dialog__primary:hover { background: #b5d8ff; }
html[data-sd-theme="dark"] .sd-ticket-dialog__badge { background: #173c32; color: #64e0b4; box-shadow: 0 0 0 8px rgb(23 60 50 / 70%); }
html[data-sd-theme="dark"] .sd-ticket-dialog[data-state="error"] .sd-ticket-dialog__badge { background: #48232e; color: #ff9dac; box-shadow: 0 0 0 8px rgb(72 35 46 / 70%); }
html[data-sd-theme="dark"] .sd-ticket-dialog[data-state="loading"] .sd-ticket-dialog__badge { background: transparent; box-shadow: none; }
html[data-sd-theme="dark"] .sd-ticket-dialog__badge::after { border-color: #41464e; border-top-color: #79bdff; }
html[data-sd-theme="dark"] .hptr-ai-chatbot { --hptr-surface-card: var(--sd-surface); --hptr-accent-blue-soft: var(--sd-surface-soft); --hptr-status-success: #64e0b4; }
html[data-sd-theme="dark"] .hptr-ai-chatbot .chat-glass { background: var(--sd-surface); }
html[data-sd-theme="dark"] .hptr-ai-chatbot__footer { background: var(--sd-surface); }
html[data-sd-theme="dark"] .hptr-ai-chatbot__powered :is(a, strong, span) { color: var(--sd-text-readable); }
html[data-sd-theme="dark"] .hptr-ai-chatbot :is(.hptr-ai-chatbot__message a, .hptr-ai-chatbot__sources a, .hptr-ai-chatbot__escalate, .hptr-ai-chatbot__suggestion) { color: var(--sd-link); }
html[data-sd-theme="dark"] .hptr-ai-chatbot :is(.hptr-ai-chatbot__sources a, .hptr-ai-chatbot__escalate, .hptr-ai-chatbot__suggestion) { border-color: var(--sd-border); }
html[data-sd-theme="dark"] .hptr-ai-chatbot :is(.hptr-ai-chatbot__sources a, .hptr-ai-chatbot__escalate, .hptr-ai-chatbot__suggestion):is(:hover, :focus-visible) { background: var(--sd-surface-soft); color: var(--sd-text); border-color: var(--sd-link); }
html[data-sd-theme="dark"] .hptr-ai-chatbot .hptr-ai-chatbot__message a:is(:hover, :focus-visible) { color: var(--sd-text); }
html[data-sd-theme="dark"] .hptr-ai-chatbot .hptr-ai-chatbot__message--user a { color: #fff; }
html[data-sd-theme="dark"] .text-status-warning[class~="bg-status-warning/10"] { color: #ffd166; }
html[data-sd-theme="dark"] [class~="bg-status-warning/10"] { background-color: #3a2e18; }
html[data-sd-theme="dark"] .border-4[class~="border-primary/10"] { border-color: #6f859e; }
html[data-sd-theme="dark"] .group:is(:hover, :focus-within) [class~="group-hover:border-primary"] { border-color: var(--sd-link); }
html[data-sd-theme="dark"] .bg-border-subtle { background-color: #6f859e; }
html[data-sd-theme="dark"] .bento-card { color: var(--sd-text); }
html[data-sd-theme="dark"] .bento-card:is(:hover, :focus-visible) { color: var(--sd-text); border-color: var(--sd-link) !important; }
html[data-sd-theme="dark"] .bento-card:is(:hover, :focus-visible) h3,
html[data-sd-theme="dark"] .group:is(:hover, :focus-within) [class~="group-hover:text-primary"],
html[data-sd-theme="dark"] a[class~="hover:text-primary"]:is(:hover, :focus-visible) { color: var(--sd-link) !important; }
html[data-sd-theme="dark"] .hptr-docs-sidebar__support a { background: var(--sd-surface-soft); color: var(--sd-link); }
html[data-sd-theme="dark"] .bg-on-primary.text-primary { background: var(--sd-surface-soft); color: var(--sd-link); }
html[data-sd-theme="dark"] :is([class~="hover:bg-surface-container-low"], [class~="hover:bg-surface-container-high"], [class~="hover:bg-surface-container"]):hover { background: var(--sd-surface-soft) !important; }
html[data-sd-theme="dark"] .cmplz-manage-consent { background: var(--sd-surface) !important; color: var(--sd-text) !important; }
html[data-sd-theme="dark"] .cmplz-cookiebanner { --cmplz_banner_background_color: #1e2023; --cmplz_banner_border_color: #41464e; --cmplz_text_color: #f3f5f7; --cmplz_hyperlink_color: #79bdff; background: var(--sd-surface) !important; color: var(--sd-text) !important; border-color: var(--sd-border) !important; }
html[data-sd-theme="dark"] .cmplz-cookiebanner :is(.cmplz-title, .cmplz-message, .cmplz-close) { color: var(--sd-text) !important; }
html[data-sd-theme="dark"] .cmplz-cookiebanner a { color: var(--sd-link) !important; }
@media (max-width: 767px) {
    .hptr-export-main-menu .sd-theme-toggle { align-self: flex-end; margin: 4px 0; }
    :is(header, nav) .hptr-header-blob-cta { padding-inline: 16px !important; white-space: nowrap; flex-shrink: 0; }
    :is(.hptr-export-header-frame, body > nav.sticky > div):has(.hptr-notification-menu) { padding-inline: 16px; }
    :is(.hptr-export-header-frame, body > nav.sticky > div):has(.hptr-notification-menu) > div { gap: 8px; }
    :is(.hptr-export-header-frame, body > nav.sticky > div):has(.hptr-notification-menu) .hptr-support-portal-logo { width: 110px !important; }
    body > nav.hptr-export-header-frame:has(.hptr-notification-menu) { padding-inline: 0 !important; }
}
@media (max-width: 380px) {
    .hptr-export-header-frame { padding-inline: 16px !important; }
    body > nav.sticky.hptr-export-header-frame:has(.hptr-notification-menu) > div { padding-inline: 12px; gap: 4px; }
    body > nav.sticky.hptr-export-header-frame:has(.hptr-notification-menu) > div > div { gap: 4px; }
    body > nav.sticky.hptr-export-header-frame:has(.hptr-notification-menu) .hptr-support-portal-logo { width: 96px !important; }
}
@media (min-width: 781px) {
    html[data-sd-theme="dark"] .hptr-shell-nav { background: transparent !important; }
}
