@layer hf-theme{
:root{--hf-t-nav-bg:var(--hf-t-surface) !important;--hf-t-nav-text:var(--hf-t-text) !important;--hf-t-nav-active-bg:var(--hf-t-selected) !important;--hf-t-nav-active-text:var(--hf-t-accent) !important;--hf-t-table-header-bg:var(--hf-t-subtle) !important;--hf-t-table-header-text:var(--hf-t-secondaryText) !important;--hf-t-table-row-bg:var(--hf-t-surface) !important;--hf-t-table-row-alt-bg:var(--hf-t-subtle) !important;--hf-t-table-hover-bg:var(--hf-t-hover) !important;--hf-t-divider:var(--hf-t-border) !important;--hf-t-button-primary-bg:var(--hf-t-accent) !important;--hf-t-button-primary-text:var(--hf-t-on-accent) !important;--hf-t-button-primary-hover:var(--hf-t-accent-hover) !important;--hf-t-button-secondary-bg:var(--hf-t-surface) !important;--hf-t-button-secondary-text:var(--hf-t-accent) !important;--hf-t-button-disabled-bg:var(--hf-t-subtle) !important;--hf-t-button-disabled-text:var(--hf-t-disabled) !important;--hf-t-input-bg:var(--hf-t-input) !important;--hf-t-input-text:var(--hf-t-text) !important;--hf-t-input-border:var(--hf-t-border-strong) !important;--hf-t-input-placeholder:var(--hf-t-placeholder) !important;--hf-t-input-invalid:var(--hf-t-danger) !important;--hf-t-focus-ring:var(--hf-t-focus) !important;--hf-t-modal-bg:var(--hf-t-elevated) !important;--hf-t-menu-bg:var(--hf-t-elevated) !important;--hf-t-tooltip-bg:var(--hf-t-tooltip) !important;--hf-t-tooltip-text:var(--hf-t-on-tooltip) !important;--hf-t-notification-bg:var(--hf-t-elevated) !important;--hf-t-loading-bg:var(--hf-t-page) !important;--hf-t-link:var(--hf-t-accent) !important}
:root,:root[data-hf-theme="light"]{--hf-t-page:#F5F7F5!important;--hf-t-secondary:#FFFFFF!important;--hf-t-surface:#FFFFFF!important;--hf-t-elevated:#FFFFFF!important;--hf-t-subtle:#EFF4F0!important;--hf-t-hover:#E6EEE8!important;--hf-t-selected:#E2F2E7!important;--hf-t-border:#DCE4DD!important;--hf-t-border-strong:#7B8B80!important;--hf-t-text:#17231B!important;--hf-t-secondaryText:#536359!important;--hf-t-muted:#5E6B62!important;--hf-t-disabled:#68786D!important;--hf-t-accent:#147638!important;--hf-t-accent-hover:#0E622D!important;--hf-t-on-accent:#FFFFFF!important;--hf-t-strong:#154D32!important;--hf-t-on-strong:#FFFFFF!important;--hf-t-input:#FFFFFF!important;--hf-t-placeholder:#5E6B62!important;--hf-t-focus:#147638!important;--hf-t-overlay:rgba(10,22,15,.58)!important;--hf-t-shadow:rgba(15,35,23,.14)!important;--hf-t-success:#126B35!important;--hf-t-success-bg:#E9F6ED!important;--hf-t-success-border:#B7DCC2!important;--hf-t-warning:#805000!important;--hf-t-warning-bg:#FFF5D9!important;--hf-t-warning-border:#DFC584!important;--hf-t-danger:#AB2424!important;--hf-t-danger-bg:#FCEDED!important;--hf-t-danger-border:#E9B6B6!important;--hf-t-info:#235CAA!important;--hf-t-info-bg:#EDF3FC!important;--hf-t-info-border:#B9CDEE!important;--hf-t-purple:#7540A4!important;--hf-t-purple-bg:#F3EDFA!important;--hf-t-purple-border:#D6C0E9!important;--hf-t-skeleton:#E1E9E3!important;--hf-t-chart1:#147638!important;--hf-t-chart2:#235CAA!important;--hf-t-chart3:#805000!important;--hf-t-chart4:#7540A4!important;--hf-t-chart5:#AB2424!important;--hf-t-tooltip:#17231B!important;--hf-t-on-tooltip:#FFFFFF!important;color-scheme:light !important}
:root[data-hf-theme="dark"]{--hf-t-page:#101113!important;--hf-t-secondary:#141619!important;--hf-t-surface:#191C20!important;--hf-t-elevated:#202429!important;--hf-t-subtle:#22262B!important;--hf-t-hover:#2B3036!important;--hf-t-selected:#303A36!important;--hf-t-border:#353B43!important;--hf-t-border-strong:#79828D!important;--hf-t-text:#F0F2F5!important;--hf-t-secondaryText:#C1C7D0!important;--hf-t-muted:#A5ADB8!important;--hf-t-disabled:#929BA6!important;--hf-t-accent:#B9CCC3!important;--hf-t-accent-hover:#D3DFD9!important;--hf-t-on-accent:#17211D!important;--hf-t-strong:#303A36!important;--hf-t-on-strong:#F0F2F5!important;--hf-t-input:#14171B!important;--hf-t-placeholder:#A5ADB8!important;--hf-t-focus:#A8C8B8!important;--hf-t-overlay:rgba(0,0,0,.72)!important;--hf-t-shadow:rgba(0,0,0,.32)!important;--hf-t-success:#9DD1B3!important;--hf-t-success-bg:#202F28!important;--hf-t-success-border:#496455!important;--hf-t-warning:#E8C782!important;--hf-t-warning-bg:#302B21!important;--hf-t-warning-border:#75613C!important;--hf-t-danger:#EEADAD!important;--hf-t-danger-bg:#322427!important;--hf-t-danger-border:#795052!important;--hf-t-info:#B1CAEC!important;--hf-t-info-bg:#232C39!important;--hf-t-info-border:#506784!important;--hf-t-purple:#CCBCE5!important;--hf-t-purple-bg:#2D2836!important;--hf-t-purple-border:#665776!important;--hf-t-skeleton:#30363D!important;--hf-t-chart1:#9DD1B3!important;--hf-t-chart2:#B1CAEC!important;--hf-t-chart3:#E8C782!important;--hf-t-chart4:#CCBCE5!important;--hf-t-chart5:#EEADAD!important;--hf-t-tooltip:#E7EBEF!important;--hf-t-on-tooltip:#191C20!important;color-scheme:dark !important;--hf-t-nav-active-text:var(--hf-t-text)!important;--hf-t-button-secondary-text:var(--hf-t-text)!important}}
/* NAV483: neutral charcoal Dark palette; restrained sage accents. Canonical semantic palette. Legacy source declarations reference these tokens. */
html{background:var(--hf-t-page);color:var(--hf-t-text);accent-color:var(--hf-t-accent)}
body{background:var(--hf-t-page);color:var(--hf-t-text)}
input,select,textarea,button{color-scheme:inherit}
::selection{background:var(--hf-t-selected);color:var(--hf-t-text)}
::placeholder{color:var(--hf-t-placeholder);opacity:1}
:where(button,a,input,select,textarea,summary,[tabindex]):focus-visible{outline:2px solid var(--hf-t-focus);outline-offset:3px}
:where(button,input,select,textarea):disabled{cursor:not-allowed}
::file-selector-button{background:var(--hf-t-subtle);color:var(--hf-t-text);border:1px solid var(--hf-t-border);border-radius:4px}
:where(dialog)::backdrop{background:var(--hf-t-overlay)}
.hf-theme-control{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;gap:6px;min-height:40px;padding:6px 10px;border:1px solid var(--hf-t-border-strong);border-radius:4px;background:var(--hf-t-surface);color:var(--hf-t-nav-text);font:inherit;cursor:pointer;white-space:nowrap}
.hf-theme-control:hover{background:var(--hf-t-hover)}
#hfThemeGuest{position:fixed;right:12px;top:12px;z-index:9000}
#hfThemeGuest:empty{display:none}
@media(max-width:900px){.hf-theme-control{min-width:44px;min-height:44px;padding:6px}.hf-theme-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}}
@media print{@layer hf-theme{:root,:root[data-hf-theme="dark"]{--hf-t-page:#F5F7F5!important;--hf-t-secondary:#FFFFFF!important;--hf-t-surface:#FFFFFF!important;--hf-t-elevated:#FFFFFF!important;--hf-t-subtle:#EFF4F0!important;--hf-t-hover:#E6EEE8!important;--hf-t-selected:#E2F2E7!important;--hf-t-border:#DCE4DD!important;--hf-t-border-strong:#9CAB9F!important;--hf-t-text:#17231B!important;--hf-t-secondaryText:#536359!important;--hf-t-muted:#5E6B62!important;--hf-t-disabled:#68786D!important;--hf-t-accent:#147638!important;--hf-t-accent-hover:#0E622D!important;--hf-t-on-accent:#FFFFFF!important;--hf-t-strong:#154D32!important;--hf-t-on-strong:#FFFFFF!important;--hf-t-input:#FFFFFF!important;--hf-t-placeholder:#5E6B62!important;--hf-t-focus:#147638!important;--hf-t-overlay:rgba(10,22,15,.58)!important;--hf-t-shadow:rgba(15,35,23,.14)!important;--hf-t-success:#126B35!important;--hf-t-success-bg:#E9F6ED!important;--hf-t-success-border:#B7DCC2!important;--hf-t-warning:#805000!important;--hf-t-warning-bg:#FFF5D9!important;--hf-t-warning-border:#DFC584!important;--hf-t-danger:#AB2424!important;--hf-t-danger-bg:#FCEDED!important;--hf-t-danger-border:#E9B6B6!important;--hf-t-info:#235CAA!important;--hf-t-info-bg:#EDF3FC!important;--hf-t-info-border:#B9CDEE!important;--hf-t-purple:#7540A4!important;--hf-t-purple-bg:#F3EDFA!important;--hf-t-purple-border:#D6C0E9!important;--hf-t-skeleton:#E1E9E3!important;--hf-t-chart1:#147638!important;--hf-t-chart2:#235CAA!important;--hf-t-chart3:#805000!important;--hf-t-chart4:#7540A4!important;--hf-t-chart5:#AB2424!important;--hf-t-tooltip:#17231B!important;--hf-t-on-tooltip:#FFFFFF!important;color-scheme:light !important}}#hfThemeGuest,.hf-theme-control{display:none!important}}

/* Apply palette atomically; preserve ordinary hover transitions after two frames. */
@layer hf-theme{html[data-hf-theme-changing] *,html[data-hf-theme-changing] *::before,html[data-hf-theme-changing] *::after{transition:none!important}}
