:root{--ac-bg:#f4f5f7;--ac-ink:#20242d;--ac-muted:#667080;--ac-border:#dce1e8;--ac-white:#fff;--ac-hover:#eef0f3;--ac-tip:#fff5ee;--ac-tip-border:#f2ded0;--ac-tint:#fff0e8;--ac-product:#fafafa;--ac-badge:#eef0f4;--ac-notice:#e9f6ed;--ac-notice-border:#c8e6d0;color-scheme:light}
:root[data-theme=dark]{--ac-bg:#12161d;--ac-ink:#e8edf4;--ac-muted:#abb6c7;--ac-border:#364151;--ac-white:#1d2531;--ac-hover:#2b3645;--ac-orange:#ff916e;--ac-dark:#181f29;--ac-tip:#30251f;--ac-tip-border:#624435;--ac-tint:#3c2b24;--ac-product:#242d39;--ac-badge:#313d4e;--ac-notice:#19372a;--ac-notice-border:#36674d;color-scheme:dark}
.af-theme-toggle{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:36px;height:36px;padding:0;border:1px solid #697383;border-radius:9px;background:transparent;color:#fff;font:24px/1 system-ui;cursor:pointer}
.af-theme-toggle:hover{background:#343e4d;color:#fff}.af-theme-toggle:focus-visible{outline:3px solid #ffb193;outline-offset:3px}
.af-theme-floating{position:fixed;right:18px;bottom:18px;z-index:1100;width:44px;height:44px;background:var(--ac-white);color:var(--ac-ink);border-color:var(--ac-border);box-shadow:0 3px 15px #0003}
.ac-app input,.ac-app select,.ac-app textarea{color:var(--ac-ink);background-color:var(--ac-white)}
.ac-app input::placeholder,.ac-app textarea::placeholder{color:var(--ac-muted);opacity:1}
:root[data-theme=dark] .ac-primary{background:#bd3d18!important;border-color:#dc572e!important;color:#fff!important}
:root[data-theme=dark] .ac-primary:hover{background:#a83313!important}
:root[data-theme=dark] .ac-votes form:first-child button{color:#8bc3ff}
:root[data-theme=dark] .ac-search-toggle{background:transparent;color:#fff}
@media(max-width:720px){
.ac-header-inner{gap:6px;flex-wrap:wrap}
.ac-header-inner .ac-brand{font-size:20px;gap:5px}
.ac-header-inner .af-theme-toggle{order:2;margin-left:auto;width:32px;height:34px;font-size:22px}
.ac-header-inner .ac-search-toggle{order:3;margin-left:0;width:32px;height:34px}
.ac-header-inner>.ac-primary{order:4;min-width:32px;min-height:34px;padding:3px 6px}
.ac-header-inner .ac-account{order:5;max-width:64px;font-size:11px}
.ac-header-inner .ac-search{order:6}
}
@media(max-width:360px){.ac-header-inner .ac-account{max-width:45px}.ac-header-inner{padding-left:10px;padding-right:10px}.ac-header-inner .ac-brand{font-size:18px}}
/* Retained UIkit and Bootstrap account / administration layouts. */
html[data-theme=dark] body:not(.ac-app){background:#12161d!important;color:#e8edf4}
html[data-theme=dark] body:not(.ac-app) :is(h1,h2,h3,h4,h5,h6,.uk-text-emphasis,.uk-heading-line>*,.control-label,label,legend){color:#e8edf4}
html[data-theme=dark] body:not(.ac-app) :is(.uk-card-default,.uk-background-default,.uk-background-muted,.uk-section-default,.uk-section-muted,.uk-section-white,.uk-section-gray,.uk-modal-dialog,.uk-dropdown,.uk-offcanvas-bar,.tas_drop,.tas-auth-1,.tas-auth-2,.card,.card-header,.card-body,.modal-content,.modal-header,.modal-footer,.dropdown-menu,.list-group-item,.panel,.panel-body,.content-wrapper,.main-content,.content,.page-content,.table,.table td,.table th,.select2-dropdown,.select2-selection,.dataTables_wrapper,.tas_mobile_nav_2){background-color:var(--ac-white)!important;color:var(--ac-ink)!important;border-color:var(--ac-border)!important}
html[data-theme=dark] body:not(.ac-app) :is(.uk-input,.uk-select,.uk-textarea,.form-control,.form-select,input:not([type=submit]):not([type=button]),select,textarea){background-color:#202b39!important;color:#e8edf4!important;border-color:#4b596d!important}
html[data-theme=dark] body:not(.ac-app) :is(input,textarea)::placeholder{color:#acb8c9!important;opacity:1}
html[data-theme=dark] body:not(.ac-app) :is(.uk-text-muted,.text-muted,.form-text,.help-block){color:#abb6c7!important}
html[data-theme=dark] body:not(.ac-app) :is(.uk-nav-default>li>a,.uk-tab>*>a,.uk-subnav>*>:first-child,.uk-breadcrumb>*>*,.uk-table th,.uk-link,.tas-link-primary,.page-link){color:#bacbe0}
html[data-theme=dark] body:not(.ac-app) :is(.uk-heading-line>:before,.uk-heading-line>:after,hr,.uk-table-divider>tr:not(:first-child),.uk-table-divider>:not(:first-child)>tr,.uk-table-divider>:first-child>tr:not(:first-child)){border-color:var(--ac-border)}
html[data-theme=dark] body:not(.ac-app) .uk-button-default{background:#293647;color:#e8edf4;border-color:#4b596d}
html[data-theme=dark] body:not(.ac-app) .af-theme-floating{background:#293647;color:#e8edf4}
html[data-theme=dark] body:not(.ac-app) :is(.fixed-header,.block,.cc-window){background:var(--ac-white)!important;color:var(--ac-ink)!important;border-color:var(--ac-border)!important}
html[data-theme=dark] body:not(.ac-app) :is(.fixed-header a,.fixed-header span,.uk-description-list>dt){color:var(--ac-ink)!important}
html[data-theme=dark] body:not(.ac-app) :is(footer p,.tas_footer p,.tas-footer p){color:var(--ac-muted)!important}
.af-theme-floating{z-index:100000}
.ac-results{min-width:0}
html[data-theme=dark] body:not(.ac-app) :is(.fixed-header div,.fixed-header strong,.tas-auth-1 .uk-link,.tas-auth-2 .uk-link,.cc-window .cc-link){color:var(--ac-ink)!important}

/* Readable foreground/background pairs in both modes (not one accent for every role). */
:root{--ac-orange:#b83e1b;--ac-muted:#586476;--af-accent-button:#b83e1b;--af-accent-hover:#9e3214;--af-control-border:#8793a3;--af-brand-bg:#08734e;--af-brand-ink:#086443;--af-link:#245d91}
:root[data-theme=dark]{--ac-orange:#ffac8a;--ac-muted:#b5c0d0;--af-accent-button:#b83e1b;--af-accent-hover:#9e3214;--af-control-border:#708199;--af-brand-bg:#086443;--af-brand-ink:#8fe4be;--af-link:#b3d9ff}
.ac-app .ac-primary,:root[data-theme=dark] .ac-primary{background:var(--af-accent-button)!important;border-color:var(--af-accent-button)!important;color:#fff!important}
.ac-app .ac-primary:hover,.ac-app .ac-primary:focus-visible,:root[data-theme=dark] .ac-primary:hover{background:var(--af-accent-hover)!important;border-color:var(--af-accent-hover)!important;color:#fff!important}
.ac-intro .ac-eyebrow{color:#ffac8a}.ac-logo{background:#c13f19}
.ac-app :is(input:not([type=hidden]),select,textarea){border-color:var(--af-control-border)}
.ac-app :is(button,.ac-button):not(.ac-primary):not(.af-theme-toggle):not(.ac-search-toggle){border-color:var(--af-control-border)}
.ac-votes{border-color:var(--af-control-border)}
.ac-app input[type=checkbox]{accent-color:var(--af-accent-button)}
/* Legacy layouts get explicit theme-specific colours; never inherit pale light-mode text. */
body[data-af-layout=public]{--primary-color:var(--af-brand-bg)}
html body[data-af-layout] :is(.uk-text-muted,.uk-link-muted,.text-muted,.form-text,.help-block){color:var(--ac-muted)!important}
html body[data-af-layout] :is(.uk-link,.tas-link-primary,.profile .uk-list a:not(.uk-button)){color:var(--af-brand-ink)!important}
html body[data-af-layout] :is(.uk-button-primary,.tas-auth-1 .uk-button,.tas-auth-2 .uk-button){background:var(--af-brand-bg)!important;color:#fff!important;border-color:var(--af-brand-bg)!important}
html body[data-af-layout] :is(.uk-button-primary,.tas-auth-1 .uk-button,.tas-auth-2 .uk-button):hover{background:#064d35!important;color:#fff!important}
html body[data-af-layout] :is(.cc-btn,.cc-btn:hover){background:#28612b!important;color:#fff!important;border-color:#28612b!important}
html body[data-af-layout] .tas-profile-header :is(h5,a,.uk-link-muted){color:#fff!important}
html body[data-af-layout] .tas-profile-header{background:var(--af-brand-bg)!important}
html body[data-af-layout] :is(.uk-input,.uk-select,.uk-textarea,.form-control){border-color:var(--af-control-border)!important}
html body[data-af-layout] :is(input,textarea)::placeholder{color:var(--ac-muted)!important;opacity:1}
html body[data-af-layout=admin] .navigation-sidebar :is(a,.title,.icon-thumbnail){color:#d8e3f2!important}
html body[data-af-layout=admin] .table th{color:var(--ac-ink)!important}
html body[data-af-layout=admin] :is(.btn-primary,.btn-primary:hover){background:#465d79!important;color:#fff!important;border-color:#465d79!important}
html[data-theme=dark] body[data-af-layout=admin] .fixed-header :is(p,b){color:var(--ac-ink)!important}
html body[data-af-layout=seller] .uk-navbar-container:not(.uk-navbar-transparent){background:#125993!important}
html body[data-af-layout=seller] .uk-navbar-container :is(a,span){color:#fff!important}
html body[data-af-layout=public] .uk-section-primary .uk-link-muted{color:#fff!important}
html body[data-af-layout=seller] .uk-section-primary{background:#125993!important}
html body[data-af-layout=seller] #sidebar .uk-nav-default>li>a{color:var(--ac-ink)!important}
html body[data-af-layout=seller] .uk-section-primary .uk-button-default{background:#12466e!important;color:#fff!important;border-color:#8fc7f2!important}
html[data-theme]{background:var(--ac-bg)}
/* Keep the cookie action clear of the floating theme control. */
body[data-af-layout] .cc-window{padding-right:80px!important}
html body[data-af-layout=admin] table.dataTable thead :is(.sorting,.sorting_asc,.sorting_desc)::before,
html body[data-af-layout=admin] table.dataTable thead :is(.sorting,.sorting_asc,.sorting_desc)::after{color:var(--ac-ink);opacity:.7}
html body[data-af-layout=admin] table.dataTable thead .sorting_asc::before,
html body[data-af-layout=admin] table.dataTable thead .sorting_desc::after{opacity:1}
:root{--af-focus:#963511}:root[data-theme=dark]{--af-focus:#ffbd9d}
.ac-sublist span{color:var(--ac-muted)}
.ac-app :is(input,select,textarea):focus,
.ac-app :is(button,a):focus-visible,
body[data-af-layout] :is(input,select,textarea,button,a):focus-visible{outline:3px solid var(--af-focus);outline-offset:3px}
.ac-header :is(button,a,input):focus-visible{outline-color:#ffbd9d}
