/* Quiet, precise visual system. */
:root{--gold:#167d82;--gold2:#11666a;--gold-light:#e9f3f3;--brand-accent:#167d82;--brand-lilac:#64748b}
[data-theme="dark"]{--gold:#59b8b8;--gold2:#7acbca;--gold-light:rgba(89,184,184,.12);--brand-accent:#59b8b8;--brand-lilac:#94a3b8}
body{background:var(--bg);letter-spacing:0}
.sidebar{background:#17242b;border-inline-end:1px solid rgba(255,255,255,.08);box-shadow:4px 0 18px rgba(20,35,43,.08)}
.logo-box,.brand-mark{background:#167d82!important;box-shadow:none!important}
.nav-item.active{background:rgba(89,184,184,.15);border:1px solid rgba(89,184,184,.18);box-shadow:inset 3px 0 #59b8b8}
.page{border-radius:0}
.card,.stat-card,.co-card,.pr-card-new,.inv-card,.client-type-step-card,.modal-box{border-color:var(--border);box-shadow:0 2px 10px rgba(15,23,42,.045);border-radius:14px}
.btn,.btn-p,.btn-g{border-radius:9px;transition:background .16s ease,border-color .16s ease,box-shadow .16s ease}
.btn-p,.btn-g{background:#167d82!important;border-color:#167d82!important;color:#fff!important;box-shadow:none!important}
.btn-p:hover,.btn-g:hover{background:#11666a!important;border-color:#11666a!important;box-shadow:0 3px 10px rgba(17,102,106,.16)!important}
input,select,textarea{border-radius:9px}
.wf-ui-icon{color:var(--gold2);filter:none}
.wf-ui-icon svg{stroke:currentColor;stroke-width:1.8;fill:none}
.nav-icon .wf-ui-icon,.bnav-icon .wf-ui-icon,.bnav-circle-icon .wf-ui-icon{filter:none}
.stat-icon,.tip-card-icon,.curr-flag,.wf-share-head-icon,.wf-bg-icon{background:var(--gold-light)!important;border:1px solid rgba(22,125,130,.1)!important;color:var(--gold2)!important}
.stat-icon{border-radius:12px!important}
.sct-sticky-header{border-radius:14px;background:var(--card)}
.curr-item{position:relative;overflow:hidden;border-color:var(--border);background:var(--card)}
.curr-item::after{content:"";position:absolute;inset:auto 0 0;height:1px;background:var(--gold);opacity:.4}
.curr-rate{font-variant-numeric:tabular-nums;letter-spacing:0}
.curr-rate.wf-rate-up{animation:wfRateUp .65s ease;color:#16805a!important}.curr-rate.wf-rate-down{animation:wfRateDown .65s ease;color:#b34d4d!important}
.curr-badge{background:var(--gold-light);color:var(--gold2)}
.greeting-card{position:relative;overflow:hidden;border:0;background:#17242b;box-shadow:0 8px 24px rgba(20,35,43,.1)}
.greeting-card::before,.greeting-card::after{display:none}
.greeting-card .greeting-msg,.greeting-card .greeting-sub,.greeting-card .greeting-time-badge{color:#f4f7f8}
.greeting-card .greeting-time-badge{background:rgba(89,184,184,.13);border-color:rgba(89,184,184,.18)}
.greeting-card::after{content:"";display:block;position:absolute;inset:auto 0 0;height:2px;background:#167d82;animation:none}
.ai-badge{border:1px solid rgba(89,184,184,.2);background:rgba(89,184,184,.1);color:#b8e6e4;backdrop-filter:none;box-shadow:none}
.tip-card-standalone{background:var(--card)}
.curr-bar{border:1px solid var(--border);border-radius:14px;background:var(--card);box-shadow:0 2px 10px rgba(15,23,42,.045)}
.curr-update{border-radius:9px;background:var(--input)}
.curr-refresh{border-radius:9px;color:var(--gold2);background:var(--gold-light)}
.curr-item{min-height:68px;transition:border-color .16s ease,box-shadow .16s ease}
.curr-item:hover{box-shadow:0 3px 9px rgba(17,94,96,.06)}
.curr-rate{position:relative;z-index:1}
.stat-card{background:var(--card)}
.wf-ui-icon{transition:color .16s ease}
::selection{background:rgba(22,125,130,.18)}
@keyframes wfRateUp{0%{transform:translateY(4px);text-shadow:0 0 0 transparent}45%{transform:translateY(-2px);text-shadow:0 0 14px rgba(22,166,160,.55)}100%{transform:translateY(0)}}
@keyframes wfRateDown{0%{transform:translateY(-4px)}45%{transform:translateY(2px);text-shadow:0 0 14px rgba(184,76,76,.4)}100%{transform:translateY(0)}}
.tabs{border-radius:14px}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid color-mix(in srgb,var(--gold) 70%,var(--brand-accent));outline-offset:2px}
@media(max-width:700px){.page{border-radius:16px}.card,.stat-card,.co-card,.pr-card-new,.inv-card,.modal-box{border-radius:15px}.btn,.btn-p,.btn-g{min-height:42px}}
@media(min-width:1200px){.page{max-width:1680px;margin-inline:auto}}
@media(max-width:480px){.curr-bar-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.curr-item{min-height:70px;padding:9px;flex-direction:row;align-items:center}.curr-rate{font-size:14px!important}.curr-label{font-size:9px}.curr-badge{font-size:8px;padding:2px 5px}.greeting-card{border-radius:16px}}
@media(min-width:1100px){.curr-bar-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.curr-bar{padding:18px}}
.main{max-width:1720px;margin-inline:auto;padding-inline:clamp(14px,2vw,30px)}
.page-hdr{margin-bottom:18px}
.card-hdr{border-color:var(--border)}
.wf-restore-modal,.modal-box{border-radius:16px;box-shadow:0 16px 48px rgba(15,23,42,.18)}
.wf-restore-icon{background:var(--gold-light)!important;border-color:rgba(22,125,130,.13)!important;color:var(--gold2)!important}
.wf-restore-warning{border-radius:10px}
.qbl-cart-bar{border-radius:16px 16px 0 0;box-shadow:0 -6px 24px rgba(15,23,42,.1)}
.qbl-cart-bar:not(.open){visibility:hidden;pointer-events:none}
.qbl-cart-overlay:not(.open){visibility:hidden;pointer-events:none}
.qbl-cart-bar.open,.qbl-cart-overlay.open{visibility:visible}
.qbl-cart-fab{z-index:1100}
@media(max-width:700px){.main{padding-inline:12px}.greeting-card{padding:18px}.curr-bar{padding:12px}.qbl-cart-bar{border-radius:16px 16px 0 0}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
/* Shared surfaces for settings and quick barcode. */
#page-settings .sct-sticky-header,#page-quick-barcode .sct-sticky-header{background:var(--card);border:1px solid var(--border);border-radius:20px;box-shadow:0 12px 32px rgba(15,23,42,.06)}
#page-settings .tabs{gap:8px!important;padding:8px!important;border:0!important;background:var(--input)!important;border-radius:14px!important;margin:0 16px 16px!important;scrollbar-width:thin}
#page-settings .tab-btn{border:1px solid transparent!important;border-radius:10px!important;min-height:44px;color:var(--text2);transition:background .16s,border-color .16s,color .16s}
#page-settings .tab-btn.active{background:var(--card)!important;border-color:var(--border)!important;color:var(--gold2)!important;box-shadow:0 3px 12px rgba(15,23,42,.06)}
#page-settings [id^="stab-"]{border-radius:20px;border:1px solid var(--border);box-shadow:0 12px 32px rgba(15,23,42,.05);padding:24px}
#page-settings .wf-language-grid{grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:12px}
#page-settings .wf-language-card{min-height:72px;border-radius:15px;padding:14px;font-weight:750;transition:border-color .16s,background .16s,transform .16s}
#page-settings .wf-language-card:hover{border-color:var(--gold);transform:translateY(-2px)}
#page-settings .wf-language-card[aria-pressed="true"]{border:2px solid var(--gold);background:var(--gold-light)}
#page-settings .wf-flag{width:38px;height:26px;flex-shrink:0;border-radius:5px;box-shadow:0 1px 4px rgba(15,23,42,.18)}
#page-settings .btn-g{background:var(--gold)!important;border-color:var(--gold)!important;color:#fff!important;box-shadow:none!important}
#page-settings input:not([type=checkbox]):not([type=radio]):not([type=file]),#page-settings select,#page-settings textarea{border-radius:11px;min-height:44px}
#page-quick-barcode .sct-sticky-header{padding:18px;gap:14px}
#page-quick-barcode .sct-sticky-title h1{font-size:clamp(18px,2.2vw,24px);letter-spacing:-.02em}
#page-quick-barcode .sct-sticky-title p{line-height:1.5;margin-top:4px}
#page-quick-barcode #qblPhase1>div:nth-child(2){max-width:560px!important}
#page-quick-barcode #qblPhase1 .card{border:1px solid var(--border);border-radius:22px!important;box-shadow:0 18px 42px rgba(15,23,42,.10)}
#page-quick-barcode #qblInput{min-height:52px;border-radius:13px;font-size:15px}
#page-quick-barcode #qblDropdownBtn,#page-quick-barcode button[onclick="searchQbl()"]{min-width:52px;min-height:52px;border-radius:13px}
#page-quick-barcode #qblDropdown{background:var(--card)!important}
#page-quick-barcode #qblDdList{overscroll-behavior:contain}
#page-quick-barcode button:focus-visible,#page-quick-barcode input:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
@media (orientation:landscape) and (min-width:700px) and (max-width:1366px){
 .page,.co-card,.pr-card-new,.inv-card,.client-type-step-card{animation:none!important}
 .modal-ov,.sidebar-overlay,.delete-modal-ov{backdrop-filter:none!important}
 #page-quick-barcode #qblCameraWrap *{animation:none!important;backdrop-filter:none!important}
 #page-quick-barcode #qblPhase1>div:nth-child(2){margin-top:12px!important}
}
@media(max-width:700px){#page-settings [id^="stab-"]{padding:17px;border-radius:16px}#page-settings .tabs{margin:0 10px 12px!important}#page-settings .wf-language-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#page-settings .wf-language-card{padding:10px;gap:8px}#page-settings .wf-flag{width:32px;height:22px}#page-quick-barcode .sct-sticky-header{padding:14px}}
@media(prefers-reduced-motion:reduce){#page-settings *,#page-quick-barcode *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Preserve the off-canvas navigation on touch tablets in landscape. */
@media (hover:none) and (pointer:coarse) and (max-width:1024px){
 .sidebar:not(.open){transform:translateX(100%)!important}
 [dir="ltr"] .sidebar:not(.open){transform:translateX(-100%)!important}
 .sidebar.open{transform:translateX(0)!important}
}
/* One icon family for navigation, section titles, controls and currencies. */
.wf-ui-icon{display:inline-flex;align-items:center;justify-content:center;width:1.28em;height:1.28em;vertical-align:-.18em;flex:0 0 auto;position:relative;color:inherit;line-height:1}
.wf-ui-icon svg{display:block;width:100%;height:100%;stroke:currentColor;stroke-width:1.8;fill:none}
.btn>.wf-ui-icon,.btn-icon>.wf-ui-icon,.co-card-actions .wf-ui-icon,.pr-card-new-actions .wf-ui-icon,.inv-card-actions .wf-ui-icon,.pay-item-del .wf-ui-icon{width:1.12em;height:1.12em;margin-inline-end:4px;vertical-align:-.15em}
.btn-icon>.wf-ui-icon,.pay-item-del>.wf-ui-icon{margin-inline:0}
.qbl-cart-item-img>.wf-ui-icon,.qbl-dd-img>.wf-ui-icon{width:24px;height:24px;color:var(--gold2)}
.wf-ui-icon-original{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.nav-icon .wf-ui-icon,.bnav-icon .wf-ui-icon,.bnav-circle-icon .wf-ui-icon{width:22px;height:22px;vertical-align:middle}
.nav-item .nav-icon{display:inline-flex;align-items:center;justify-content:center;color:var(--text2)}
.nav-item.active .nav-icon{color:#fff}
.stat-icon .wf-ui-icon{width:23px;height:23px}
.stat-icon{color:var(--gold2)!important;background:var(--gold-light)!important;border:1px solid rgba(200,169,110,.22)}
.tip-card-icon .wf-ui-icon{width:25px;height:25px}
.curr-flag{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:11px;background:var(--gold-light);color:var(--gold2);flex-shrink:0}
.curr-flag .wf-ui-icon{width:18px;height:18px}
.card-title>.wf-ui-icon,.sct-sticky-title h1>.wf-ui-icon,.co-toolbar-title>.wf-ui-icon{color:var(--gold2);margin-inline-end:5px}
#page-settings .tab-btn .wf-ui-icon{width:17px;height:17px;vertical-align:-.2em}
.bnav-circle-icon .wf-ui-icon{color:#fff}
label.fl>.wf-ui-icon,label.fl [data-wf-ui]>.wf-ui-icon{color:var(--gold2);margin-inline-end:3px}
/* Pearl workspace: shared by every application page. */
html:not([data-theme="dark"]){--bg:#f4f7fc;--card:#fff;--input:#f8faff;--nav:#fff;--text:#192c48;--text2:#4c607b;--muted:#667b95;--border:#dce5f1;--gold:#3a5071;--gold2:#304461;--gold-light:#edf1f6;--brand-accent:#3a5071}
html:not([data-theme="dark"]) .navbar{background:#fff;border-bottom:1px solid var(--border);box-shadow:0 3px 16px rgba(30,65,110,.05)}
html:not([data-theme="dark"]) .nb-title{color:var(--text)}
html:not([data-theme="dark"]) .navbar .icon-btn,html:not([data-theme="dark"]) .lang-btn{color:var(--text2);background:var(--input)}
html:not([data-theme="dark"]) .hamburger span{background:var(--text)}
html:not([data-theme="dark"]) .sidebar{background:#fff;border-inline-end:1px solid var(--border);box-shadow:none}
html:not([data-theme="dark"]) .nav-item{color:var(--text2);border-radius:12px;min-height:46px}
html:not([data-theme="dark"]) .nav-item.active{background:var(--gold-light);color:var(--gold2);border-color:#d5e5fc;box-shadow:none}
html:not([data-theme="dark"]) .nav-item.active .nav-icon{color:var(--gold2)}
html:not([data-theme="dark"]) .greeting-card{background:linear-gradient(115deg,#fff,#edf4ff);border:1px solid #dce7f6;box-shadow:0 6px 24px rgba(35,80,140,.05);padding:28px;border-radius:20px}
html:not([data-theme="dark"]) .greeting-card .greeting-msg{color:var(--text)}
html:not([data-theme="dark"]) .greeting-card .greeting-sub{color:var(--text2)}
html:not([data-theme="dark"]) .greeting-card .greeting-time-badge,html:not([data-theme="dark"]) .ai-badge{background:#fff;color:var(--gold2);border-color:#d5e5fc}
html:not([data-theme="dark"]) .greeting-card::after{display:none}
html:not([data-theme="dark"]) .btn-p,html:not([data-theme="dark"]) .btn-g{background:#3a5071!important;border-color:#3a5071!important}
html:not([data-theme="dark"]) .btn-p:hover,html:not([data-theme="dark"]) .btn-g:hover{background:var(--gold2)!important}
.main>.page .card,.main>.page .stat-card{border-radius:16px}
.stats-grid{gap:16px}
.stat-card{padding:20px}
.curr-bar{border-radius:18px}
.curr-item{border-radius:12px}
@media(min-width:1100px){#page-dashboard.active{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:20px}#page-dashboard>.greeting-card,#page-dashboard>.tip-card-standalone{margin:0}#page-dashboard>.curr-bar,#page-dashboard>.stats-grid,#page-dashboard>.card:not(.tip-card-standalone){grid-column:1/-1;margin-bottom:0}}
@media(max-width:600px){.stat-card{padding:14px}.stats-grid{gap:10px}html:not([data-theme="dark"]) .greeting-card{padding:20px}}
/* Navigation and surface hierarchy. */
html:not([data-theme="dark"]) .nav-item{border:1px solid transparent;gap:12px;padding:12px 14px;font-weight:650;transition:background .16s,border-color .16s,color .16s}
html:not([data-theme="dark"]) .nav-item:hover{background:#f2f5f9;border-color:#e3e9f0;color:#304461}
html:not([data-theme="dark"]) .nav-item.active{background:#e9eef5;border-color:#cbd7e5;color:#263b58;box-shadow:inset 3px 0 #3a5071}
html:not([data-theme="dark"]) .nav-item.active .nav-badge{background:#3a5071!important;color:#fff!important;min-width:22px;text-align:center}
html:not([data-theme="dark"]) .nav-item:not(.active) .nav-badge{background:#e5ebf3;color:#354c6a}
html:not([data-theme="dark"]) .nav-item .nav-icon{color:#526783}
html:not([data-theme="dark"]) .nav-item.active .nav-icon{color:#304461}
html:not([data-theme="dark"]) .side-sec{color:#65778f;font-size:10px;letter-spacing:.08em}
html:not([data-theme="dark"]) .card,html:not([data-theme="dark"]) .stat-card,html:not([data-theme="dark"]) .curr-bar{border-color:#dfe6ef;box-shadow:0 4px 18px rgba(27,46,76,.045)}
html:not([data-theme="dark"]) .stat-icon,html:not([data-theme="dark"]) .curr-flag{background:#edf1f6!important;border-color:#dce4ee!important;color:#3a5071!important}
html:not([data-theme="dark"]) .curr-item::after{background:#3a5071;opacity:.28}
html:not([data-theme="dark"]) .tab-btn.active{color:#304461!important}
@media(max-width:600px){html:not([data-theme="dark"]) .nav-item{min-height:48px}.curr-bar-grid{gap:8px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Clear, restrained UI reset requested after review. */
html:not([data-theme="dark"]){--bg:#f6f7f9;--card:#fff;--input:#f1f3f6;--nav:#fff;--text:#202b3b;--text2:#526174;--muted:#788598;--border:#e1e5eb;--gold:#3a5071;--gold2:#31445f;--gold-light:#edf0f4;--brand-accent:#3a5071}
html:not([data-theme="dark"]) .navbar{box-shadow:0 1px 5px rgba(21,33,49,.06);border-color:#e7eaef}
html:not([data-theme="dark"]) .sidebar{border:0;border-inline-end:1px solid #e7eaef}
html:not([data-theme="dark"]) .nav-item{border-radius:8px!important;border-color:transparent!important;box-shadow:none!important;background:transparent;color:#526174}
html:not([data-theme="dark"]) .nav-item:hover{background:#f3f5f7;border-color:transparent!important}
html:not([data-theme="dark"]) .nav-item.active{background:#3a5071!important;color:#fff!important;border-color:#3a5071!important;box-shadow:none!important}
html:not([data-theme="dark"]) .nav-item.active .nav-icon,html:not([data-theme="dark"]) .nav-item.active .wf-ui-icon{color:#fff!important}
html:not([data-theme="dark"]) .nav-item.active .nav-badge{background:rgba(255,255,255,.2)!important;color:#fff!important}
html:not([data-theme="dark"]) .nav-item:not(.active) .nav-badge{background:#e9edf2;color:#40536b}
html:not([data-theme="dark"]) .greeting-card{background:#fff;border:1px solid #e1e5eb;box-shadow:0 2px 8px rgba(21,33,49,.04);border-radius:14px}
html:not([data-theme="dark"]) .card,html:not([data-theme="dark"]) .stat-card,html:not([data-theme="dark"]) .curr-bar,html:not([data-theme="dark"]) .co-card,html:not([data-theme="dark"]) .pr-card-new,html:not([data-theme="dark"]) .inv-card{border:1px solid #e1e5eb;box-shadow:0 2px 8px rgba(21,33,49,.035);border-radius:12px}
html:not([data-theme="dark"]) .btn-p,html:not([data-theme="dark"]) .btn-g{background:#3a5071!important;border-color:#3a5071!important;border-radius:8px!important;box-shadow:none!important}
html:not([data-theme="dark"]) .btn-p:hover,html:not([data-theme="dark"]) .btn-g:hover{background:#31445f!important}
.main{padding-top:24px;padding-bottom:28px}
.page-hdr h1{letter-spacing:-.02em}
.stat-icon,.tip-card-icon,.curr-flag{box-shadow:none!important}
@media(min-width:1100px){#page-dashboard.active{grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr);gap:16px}.stats-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){.main{padding:14px 12px 24px}.curr-bar-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.curr-item{min-width:0}.curr-info{min-width:0}.curr-label{white-space:nowrap}.curr-badge{margin-inline-start:auto}}
/* Header controls occupy explicit slots so language direction cannot reorder them. */
.navbar .wf-header-controls{position:absolute!important;inset:0!important;width:auto!important;margin:0!important;padding:0 16px!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;direction:ltr;pointer-events:none}
.navbar .wf-header-controls .lang-sw{display:none!important}.navbar .wf-header-controls .icon-btn{pointer-events:auto;width:40px!important;height:40px!important;flex:0 0 40px!important;border:1px solid var(--border);border-radius:12px!important;background:var(--input);color:var(--text2);order:0!important}
.navbar .wf-header-controls #themeBtn{order:2!important}.navbar .wf-header-controls #headerSettingsBtn{order:1!important}.navbar .wf-header-controls #desktopSidebarToggle{position:absolute;right:16px;order:0!important}
@media(max-width:1024px){.navbar .wf-header-controls{padding-inline:12px!important}.navbar .wf-header-controls #desktopSidebarToggle{display:inline-flex!important;right:12px}.navbar .wf-header-controls #themeBtn{display:none!important}.navbar .wf-header-controls #headerSettingsBtn{order:0!important}}
/* Refined header, softer geometry, and market quote cards. */
html:not([data-theme="dark"]) .navbar{justify-content:flex-end}
html:not([data-theme="dark"]) .nb-brand{position:absolute;right:var(--side-w);top:50%;transform:translate(50%,-50%);width:var(--side-w);justify-content:center;gap:0}
html:not([data-theme="dark"]) .nb-brand .hamburger{display:none}
html:not([data-theme="dark"]) .nb-logo{width:42px;height:42px;border-radius:12px;background:#f4f6f9;border:1px solid #e2e7ee}
html:not([data-theme="dark"]) .nb-title{display:none!important}
[dir="ltr"] html:not([data-theme="dark"]) .nb-brand{right:auto;left:var(--side-w);transform:translate(-50%,-50%)}
html:not([data-theme="dark"]) .nb-right{margin-inline-start:auto}
html:not([data-theme="dark"]) .card,html:not([data-theme="dark"]) .stat-card,html:not([data-theme="dark"]) .curr-bar,html:not([data-theme="dark"]) .co-card,html:not([data-theme="dark"]) .pr-card-new,html:not([data-theme="dark"]) .inv-card,html:not([data-theme="dark"]) .greeting-card{border-radius:16px}
html:not([data-theme="dark"]) .curr-item{border-radius:13px;padding:12px 14px;background:linear-gradient(180deg,#fff 0%,#fbfcfe 100%);box-shadow:inset 0 0 0 1px rgba(226,231,238,.55)}
html:not([data-theme="dark"]) .curr-item::before{content:"";position:absolute;inset:8px auto 8px 8px;width:56px;opacity:.42;pointer-events:none;background:linear-gradient(150deg,transparent 0 17%,#3a5071 18% 20%,transparent 21% 36%,#3a5071 37% 39%,transparent 40% 57%,#3a5071 58% 60%,transparent 61% 76%,#3a5071 77% 79%,transparent 80%);clip-path:polygon(0 60%,18% 49%,36% 58%,52% 28%,70% 41%,100% 8%,100% 13%,70% 47%,52% 34%,36% 64%,18% 55%,0 66%)}
html:not([data-theme="dark"]) .curr-item::after{height:2px;opacity:.55}
html:not([data-theme="dark"]) .curr-rate{font-size:18px!important;font-weight:800;letter-spacing:.01em}
html:not([data-theme="dark"]) .curr-label{font-size:10px;font-weight:700;letter-spacing:.035em}
html:not([data-theme="dark"]) .curr-badge{border-radius:7px;font-size:9px}
html:not([data-theme="dark"]) .curr-flag{background:#f0f3f7!important;border-radius:10px;width:36px;height:36px}
.curr-rate.wf-rate-up,.curr-rate.wf-rate-down{position:relative}
@media(max-width:700px){html:not([data-theme="dark"]) .nb-brand{right:50%;transform:translate(50%,-50%);width:auto}html:not([data-theme="dark"]) .nb-right{margin:0}.navbar{padding-inline:10px}.curr-item{padding:9px}.curr-item::before{width:34px}.curr-rate{font-size:14px!important}}
@media(prefers-reduced-motion:reduce){.curr-item::before{display:none}}
/* Mobile navigation: compact and unobstructed. */
@media(max-width:1024px){
 body{padding-bottom:78px}
 .main{padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))!important}
 .bottom-nav{height:68px!important;background:#fff;border-top:1px solid #e1e5eb;box-shadow:0 -4px 18px rgba(21,33,49,.08)}
 .bottom-nav-bg{background:#fff!important;backdrop-filter:none!important;box-shadow:none!important;border:0!important}
 .bottom-nav-curve,.bnav-circle{display:none!important}
 .bnav-btn{justify-content:center!important;padding:7px 4px 8px!important;gap:4px!important}
 .bnav-icon{font-size:19px!important;color:#5a6a7e!important}
 .bnav-label{font-size:10px!important;color:#5a6a7e!important}
 .bnav-btn.bnav-active .bnav-icon,.bnav-btn.bnav-active .bnav-label{color:#3a5071!important}
 .bnav-dot{background:#3a5071!important}
}
/* Keep dashboard sections in an intentional reading order on wide screens. */
@media(min-width:1100px){
 #page-dashboard.active{display:block!important}
 #page-dashboard>.greeting-card,#page-dashboard>.tip-card-standalone,#page-dashboard>.curr-bar,#page-dashboard>.stats-grid,#page-dashboard>.card{margin-bottom:18px!important}
}
html:not([data-theme="dark"]) .curr-item::before{opacity:.08;inset:12px 12px 12px auto;width:46px}
[dir="ltr"] html:not([data-theme="dark"]) .curr-item::before{inset:12px auto 12px 12px}
html:not([data-theme="dark"]) .curr-info,html:not([data-theme="dark"]) .curr-rate,html:not([data-theme="dark"]) .curr-label,html:not([data-theme="dark"]) .curr-badge,html:not([data-theme="dark"]) .curr-flag{position:relative;z-index:1}
/* Desktop brand belongs to the top of the side navigation. */
@media(min-width:1025px){
 html:not([data-theme="dark"]) .nb-brand{position:absolute;top:calc(var(--nav-h) + 10px);right:0;transform:none;width:var(--side-w);height:48px;z-index:1002}
 html:not([data-theme="dark"]) .sidebar{padding-top:66px}
 [dir="ltr"] html:not([data-theme="dark"]) .nb-brand{right:auto;left:0;transform:none}
}
/* Prevent hidden recovery content from painting through the page. */
.wf-restore-ov:not(.open),.wf-restore-ov:not(.open) *{visibility:hidden!important;pointer-events:none!important}
/* Rounded controls with a consistent, contemporary rhythm. */
html:not([data-theme="dark"]) .btn,html:not([data-theme="dark"]) .btn-p,html:not([data-theme="dark"]) .btn-g,html:not([data-theme="dark"]) .btn-s,html:not([data-theme="dark"]) .btn-b{border-radius:14px!important}
html:not([data-theme="dark"]) .icon-btn,html:not([data-theme="dark"]) .curr-refresh{border-radius:13px!important}
html:not([data-theme="dark"]) .nav-badge,html:not([data-theme="dark"]) .curr-badge{border-radius:999px!important}
html:not([data-theme="dark"]) input,html:not([data-theme="dark"]) select,html:not([data-theme="dark"]) textarea{border-radius:12px!important}

/* Spectrum workspace: a deliberate, high-contrast desktop system without legacy rails. */
html:not([data-theme="dark"]){--bg:#f4f7fc;--card:#fff;--input:#eef3fa;--text:#17233a;--text2:#53637a;--muted:#718198;--border:#dce5f1;--gold:#2563eb;--gold2:#1e3a8a;--gold-light:#e8efff;--brand-accent:#0ea5a8}
html:not([data-theme="dark"]) body{background:radial-gradient(circle at 12% -12%,#dcecff 0,transparent 30%),radial-gradient(circle at 90% 2%,#d7faf1 0,transparent 26%),#f4f7fc}
html:not([data-theme="dark"]) .navbar{background:rgba(255,255,255,.88);backdrop-filter:blur(18px);border-color:rgba(209,220,236,.9);box-shadow:0 8px 26px rgba(25,55,100,.07)}
html:not([data-theme="dark"]) .sidebar{background:linear-gradient(165deg,#ffffff 0%,#f3f8ff 56%,#e8fbf6 145%);border:0;box-shadow:10px 0 32px rgba(22,50,91,.08)}
html:not([data-theme="dark"]) .side-sec{color:#6681a3!important;letter-spacing:.11em}
html:not([data-theme="dark"]) .nav-item{color:#375473!important;border-radius:14px!important;margin-inline:10px!important;width:calc(100% - 20px)!important;padding:12px 13px!important}
html:not([data-theme="dark"]) .nav-item .nav-icon,html:not([data-theme="dark"]) .nav-item .wf-ui-icon{color:#128b97!important}
html:not([data-theme="dark"]) .nav-item:hover{background:linear-gradient(100deg,#eaf2ff,#e6faf5)!important;color:#1e3a8a!important}
html:not([data-theme="dark"]) .nav-item.active{background:linear-gradient(110deg,#2563eb,#0d9488)!important;border:0!important;color:#fff!important;box-shadow:0 9px 18px rgba(2,15,35,.22)!important}
html:not([data-theme="dark"]) .nav-item.active .nav-icon,html:not([data-theme="dark"]) .nav-item.active .wf-ui-icon{color:#fff!important}
html:not([data-theme="dark"]) .nav-item:not(.active) .nav-badge{background:#dfeeff!important;color:#266097!important}
html:not([data-theme="dark"]) .nb-logo{background:linear-gradient(145deg,#fff,#dbeafe)!important;border-color:#cbdcf7!important;box-shadow:0 8px 16px rgba(30,58,138,.12)!important}
html:not([data-theme="dark"]) .greeting-card{background:linear-gradient(125deg,#152c52 0%,#1e4f92 48%,#087a78 115%)!important;border:0!important;box-shadow:0 18px 36px rgba(22,61,119,.18)!important}
html:not([data-theme="dark"]) .greeting-card .greeting-msg,html:not([data-theme="dark"]) .greeting-card .greeting-sub{color:#fff!important}
html:not([data-theme="dark"]) .greeting-card .greeting-sub{color:#c9e7f5!important}
html:not([data-theme="dark"]) .greeting-card .greeting-time-badge,html:not([data-theme="dark"]) .ai-badge{background:rgba(255,255,255,.13)!important;border-color:rgba(255,255,255,.22)!important;color:#fff!important}
html:not([data-theme="dark"]) .tip-card-standalone{border-inline-start:0!important;background:linear-gradient(110deg,#ffffff,#f0f7ff)!important;box-shadow:0 10px 25px rgba(42,85,142,.08)!important}
html:not([data-theme="dark"]) .tip-card-icon{background:linear-gradient(145deg,#e0edff,#d8faf0)!important;color:#12777d!important;border-color:#c9e7ea!important}
html:not([data-theme="dark"]) .btn-p,html:not([data-theme="dark"]) .btn-g{background:linear-gradient(105deg,#2563eb,#0d9488)!important;border:0!important;box-shadow:0 8px 16px rgba(26,101,187,.2)!important}
html:not([data-theme="dark"]) .btn-p:hover,html:not([data-theme="dark"]) .btn-g:hover{filter:brightness(1.06);transform:translateY(-1px)}
html:not([data-theme="dark"]) .card,html:not([data-theme="dark"]) .stat-card,html:not([data-theme="dark"]) .curr-bar{border-color:rgba(211,222,237,.9)!important;box-shadow:0 10px 24px rgba(28,56,100,.06)!important}
html:not([data-theme="dark"]) .stat-card{background:linear-gradient(145deg,#fff,#f6faff)!important;position:relative;overflow:hidden}
html:not([data-theme="dark"]) .stat-card::after{content:"";position:absolute;width:76px;height:76px;border-radius:50%;inset:auto -25px -35px auto;background:linear-gradient(135deg,rgba(37,99,235,.12),rgba(13,148,136,.03));pointer-events:none}
html:not([data-theme="dark"]) .stat-icon,html:not([data-theme="dark"]) .curr-flag{background:linear-gradient(145deg,#e5efff,#def7f1)!important;border-color:#cce2ec!important;color:#16707a!important}
html:not([data-theme="dark"]) .curr-bar{background:linear-gradient(145deg,#fff,#f6faff)!important}
html:not([data-theme="dark"]) .curr-item{background:linear-gradient(135deg,#fff,#f4f9ff)!important;border-color:#d8e6f3!important;box-shadow:0 5px 14px rgba(35,78,135,.06)!important}
html:not([data-theme="dark"]) .curr-item::after{background:linear-gradient(90deg,#2563eb,#0d9488)!important;opacity:.75!important}
.wf-market-trend{display:inline-flex;align-items:center;justify-content:center;align-self:center;width:24px;height:24px;margin-inline-start:auto;border-radius:999px;background:#e9eff7;color:#5b6c83;font-size:16px;font-weight:900;line-height:1;position:relative;z-index:2}.curr-item.market-up .wf-market-trend{color:#087d62;background:#dcf8ef}.curr-item.market-down .wf-market-trend{color:#c5424f;background:#ffeaed}.curr-item.market-up::after,.curr-item.market-down::after{background:linear-gradient(90deg,transparent,#14b8a6,transparent)!important;background-size:200% 100%;animation:wfMarketTrace 1.2s ease both}@keyframes wfMarketTrace{0%{background-position:100% 0}100%{background-position:-100% 0}}
/* Do not let fallback emoji appear before the SVG family is ready. */
html:not(.wf-icons-ready) .nav-icon,html:not(.wf-icons-ready) .bnav-icon,html:not(.wf-icons-ready) .bnav-circle-icon,html:not(.wf-icons-ready) .stat-icon,html:not(.wf-icons-ready) .tip-card-icon,html:not(.wf-icons-ready) .curr-flag{color:transparent!important}
html:not(.wf-icons-ready) .nav-icon *,html:not(.wf-icons-ready) .bnav-icon *,html:not(.wf-icons-ready) .bnav-circle-icon *,html:not(.wf-icons-ready) .stat-icon *,html:not(.wf-icons-ready) .tip-card-icon *,html:not(.wf-icons-ready) .curr-flag *{visibility:hidden!important}
/* Content hierarchy: maximize the work surface and keep section context visible. */
.page-hdr{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px}.page-hdr h1{font-size:clamp(20px,2vw,28px);font-weight:850}.page-hdr p{color:var(--muted);margin-top:3px}
@media(min-width:1025px){html:not([data-theme="dark"]) .main{padding-inline:clamp(22px,3vw,46px);padding-top:28px}html:not([data-theme="dark"]) .sidebar{padding-bottom:22px}html:not([data-theme="dark"]) .sidebar-inner{padding-bottom:18px}}
@media(max-width:1024px){html:not([data-theme="dark"]) .sidebar{background:linear-gradient(165deg,#fff,#f3f8ff 58%,#e8fbf6)}html:not([data-theme="dark"]) .page-hdr{min-height:42px}.page-hdr h1{font-size:21px}}
@media(max-width:600px){html:not([data-theme="dark"]) body{background:#f4f7fc}.main{padding-inline:12px!important}.page-hdr{align-items:flex-start}.page-hdr h1{font-size:19px}.page-hdr p{font-size:12px}.greeting-card{padding:20px!important}.stat-card{min-height:104px}.curr-item{padding:10px!important}}
/* Expandable search keeps the main list toolbar focused and spacious. */
.wf-search-toggle{width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 42px;border:1px solid #cfe0f2;border-radius:14px!important;background:linear-gradient(145deg,#f7fbff,#e8f2ff);color:#2164a8;cursor:pointer;transition:transform .18s ease,background .18s ease,box-shadow .18s ease}.wf-search-toggle:hover,.wf-search-toggle.active{background:linear-gradient(135deg,#2563eb,#0d9488);color:#fff;box-shadow:0 8px 16px rgba(37,99,235,.22);transform:translateY(-1px)}.wf-search-toggle .wf-ui-icon{margin:0!important;width:19px;height:19px}.wf-smart-search{width:0!important;min-width:0!important;max-width:0!important;opacity:0;padding-inline:0!important;border-width:0!important;pointer-events:none;transition:max-width .22s ease,width .22s ease,opacity .16s ease,padding .22s ease;border-radius:14px!important}.wf-smart-search.open{width:min(26vw,270px)!important;min-width:150px!important;max-width:270px!important;opacity:1;padding-inline:13px!important;border-width:1px!important;pointer-events:auto}@media(max-width:700px){.co-toolbar-row{gap:7px!important}.co-toolbar-title{font-size:18px!important;overflow:hidden;text-overflow:ellipsis}.wf-search-toggle{width:40px;height:40px;flex-basis:40px}.wf-smart-search.open{position:absolute;inset-inline:8px 8px;top:52px;width:auto!important;max-width:none!important;z-index:12;background:#fff;box-shadow:0 10px 24px rgba(20,52,95,.15)}}
/* Settings is a focused workspace rather than a stack of unrelated forms. */
#page-settings .sct-sticky-header{background:linear-gradient(110deg,#fff,#f4f9ff 62%,#e9fbf6)!important;border:1px solid #d8e6f2!important;border-radius:22px!important;box-shadow:0 14px 30px rgba(31,77,138,.08)!important}
#page-settings .sct-sticky-title h1{font-size:clamp(20px,2.2vw,26px)!important;font-weight:850!important;color:#173b6a}
#page-settings .tabs{background:rgba(230,240,252,.72)!important;border:1px solid #dbe8f5!important;border-radius:16px!important;padding:6px!important;margin:0 18px 16px!important;gap:5px!important}
#page-settings .tab-btn{border-radius:12px!important;min-height:42px!important;padding:9px 12px!important;font-weight:700!important;color:#58708c!important}
#page-settings .tab-btn:hover{background:#fff!important;color:#1e58aa!important}
#page-settings .tab-btn.active{background:linear-gradient(110deg,#2563eb,#0d9488)!important;color:#fff!important;border:0!important;box-shadow:0 7px 14px rgba(37,99,235,.18)!important}
#page-settings .wf-settings-workspace{max-width:1080px!important;display:block}
#page-settings [id^="stab-"]{background:linear-gradient(145deg,#fff,#fbfdff)!important;border:1px solid #dce8f3!important;border-radius:20px!important;box-shadow:0 12px 26px rgba(30,70,128,.06)!important;padding:clamp(18px,3vw,30px)!important}
#page-settings [id^="stab-"]>.card{background:#f8fbff!important;border-color:#dce8f3!important;box-shadow:none!important;border-radius:16px!important}
#page-settings .fgrid{gap:16px!important}#page-settings .fl{font-weight:750!important;color:#304c6b!important}
#page-settings input:not([type=checkbox]):not([type=radio]):not([type=file]),#page-settings select,#page-settings textarea{background:#fff!important;border-color:#cfdeed!important;border-radius:13px!important;box-shadow:inset 0 1px 2px rgba(39,80,136,.03)!important}
#page-settings input:focus,#page-settings select:focus,#page-settings textarea:focus{border-color:#3184d9!important;box-shadow:0 0 0 4px rgba(49,132,217,.12)!important}
#page-settings .settings-logo-prev{background:linear-gradient(145deg,#2563eb,#0d9488)!important;box-shadow:0 12px 22px rgba(26,109,173,.2)!important}
#page-settings .wf-language-card{background:linear-gradient(145deg,#fff,#f2f8ff)!important;border-color:#d9e6f2!important;box-shadow:0 4px 12px rgba(25,71,130,.04)}
#page-settings .wf-language-card[aria-pressed="true"]{background:linear-gradient(120deg,#e4efff,#e2faf4)!important;border-color:#149b9b!important;box-shadow:0 8px 18px rgba(19,135,141,.12)}
/* One light, elevated dialog language across confirmation, editing and recovery windows. */
.modal-ov,.delete-modal-ov,.wf-restore-ov{background:rgba(21,47,82,.27)!important;backdrop-filter:blur(10px)!important}.modal-box,.delete-modal,.wf-restore-modal{background:linear-gradient(145deg,#fff,#f5faff)!important;border:1px solid rgba(209,225,241,.95)!important;border-radius:22px!important;box-shadow:0 26px 70px rgba(18,51,92,.24)!important}.modal-box .modal-hdr,.delete-modal-hdr{border-color:#dce8f3!important;background:linear-gradient(90deg,#f8fbff,#eef9f7)}.modal-box .modal-title,.delete-modal h3{color:#173b6a!important}.modal-box .modal-body{color:#4e637d}.modal-box input,.modal-box select,.modal-box textarea{border-radius:13px!important;border-color:#cfdeed!important;background:#fff!important}@media(max-width:700px){#page-settings .sct-sticky-header{border-radius:16px!important}#page-settings .tabs{margin:0 10px 12px!important;border-radius:13px!important}#page-settings [id^="stab-"]{border-radius:16px!important;padding:17px!important}.modal-box,.delete-modal,.wf-restore-modal{border-radius:18px!important;margin:10px!important;max-height:calc(100dvh - 20px)}}
/* Day mode stays luminous; charcoal navy is reserved for decisive selection and action. */
html:not([data-theme="dark"]){--gold:#1b2a41;--gold2:#111c2e;--gold-light:#edf1f6;--brand-accent:#243b5a}
html:not([data-theme="dark"]) .nav-item.active,#page-settings .tab-btn.active{background:#17263b!important;box-shadow:0 8px 18px rgba(18,31,49,.16)!important}
html:not([data-theme="dark"]) .nav-item .nav-icon,html:not([data-theme="dark"]) .nav-item .wf-ui-icon{color:#405b79!important}
html:not([data-theme="dark"]) .nav-item.active .nav-icon,html:not([data-theme="dark"]) .nav-item.active .wf-ui-icon{color:#fff!important}
html:not([data-theme="dark"]) .nav-item:hover{background:#edf2f7!important;color:#17263b!important}
html:not([data-theme="dark"]) .btn-p,html:not([data-theme="dark"]) .btn-g{background:#17263b!important;box-shadow:0 8px 16px rgba(18,31,49,.15)!important}
html:not([data-theme="dark"]) .btn-p:hover,html:not([data-theme="dark"]) .btn-g:hover{background:#0e1827!important;filter:none}
html:not([data-theme="dark"]) .greeting-card{background:linear-gradient(115deg,#fff,#f3f6fa)!important;border:1px solid #dce4ee!important;box-shadow:0 14px 28px rgba(24,41,63,.07)!important}
html:not([data-theme="dark"]) .greeting-card .greeting-msg{color:#17263b!important}html:not([data-theme="dark"]) .greeting-card .greeting-sub{color:#617187!important}html:not([data-theme="dark"]) .greeting-card .greeting-time-badge,html:not([data-theme="dark"]) .ai-badge{background:#fff!important;color:#243b5a!important;border-color:#d7e1eb!important}
html:not([data-theme="dark"]) .nb-logo,#page-settings .settings-logo-prev{background:#17263b!important;border-color:#17263b!important;box-shadow:0 8px 16px rgba(18,31,49,.14)!important}
html:not([data-theme="dark"]) .curr-item::after{background:#17263b!important}.wf-search-toggle:hover,.wf-search-toggle.active{background:#17263b!important;box-shadow:0 8px 16px rgba(18,31,49,.16)!important}
#page-settings .wf-language-card[aria-pressed="true"]{background:#f0f3f7!important;border-color:#17263b!important;box-shadow:0 7px 16px rgba(18,31,49,.1)}
.wf-market-trend{direction:ltr;gap:5px}.wf-market-arrow{display:inline-block;animation:wfTickerUp 1.6s ease-in-out infinite}.market-down .wf-market-arrow{animation-name:wfTickerDown}.curr-item.market-up::after,.curr-item.market-down::after{animation:wfMarketTrace 3s linear infinite!important}@keyframes wfTickerUp{0%,100%{transform:translateY(2px);opacity:.65}50%{transform:translateY(-3px);opacity:1}}@keyframes wfTickerDown{0%,100%{transform:translateY(-2px);opacity:.65}50%{transform:translateY(3px);opacity:1}}@media(prefers-reduced-motion:reduce){.wf-market-arrow,.curr-item::after{animation:none!important}}
/* Live market chip: it reports the actual change from the last successful quote refresh. */
.wf-market-trend{width:auto!important;min-width:56px;height:26px!important;padding:0 8px;margin-inline-start:auto;border-radius:999px!important;font-size:10px!important;font-variant-numeric:tabular-nums;letter-spacing:.015em;white-space:nowrap}.curr-item.market-up .wf-market-trend{background:#e6f6ec!important;color:#177347!important}.curr-item.market-down .wf-market-trend{background:#fcebed!important;color:#b43a48!important}.curr-item.wf-market-pulse .wf-market-trend{animation:wfMarketChip .9s cubic-bezier(.2,.8,.2,1)}@keyframes wfMarketChip{0%{transform:scale(.82);opacity:.3}55%{transform:scale(1.08)}100%{transform:scale(1);opacity:1}}@media(prefers-reduced-motion:reduce){.curr-item.wf-market-pulse .wf-market-trend{animation:none}}
.wf-stat-trend{display:inline-flex;align-items:center;gap:3px;margin-top:5px;font-size:11px;font-weight:850;font-variant-numeric:tabular-nums;color:#8492a4}.stat-card{position:relative}.stat-card .wf-stat-trend{position:absolute;inset-inline-start:20px;bottom:14px}.stat-card.stat-trend-up .wf-stat-trend{color:#177347}.stat-card.stat-trend-down .wf-stat-trend{color:#b43a48}.stat-card.stat-trend-up .wf-stat-trend,.stat-card.stat-trend-down .wf-stat-trend{animation:wfMarketChip .75s ease both}@media(max-width:600px){.stat-card .wf-stat-trend{inset-inline-start:14px;bottom:10px;font-size:10px}}
/* Header geometry shared by both themes and language directions. */
.navbar .nb-title,.navbar .lang-sw:empty{display:none!important}
@media(min-width:1025px){html .navbar .nb-brand{position:absolute!important;top:calc(var(--nav-h) + 10px)!important;inset-inline-start:0!important;inset-inline-end:auto!important;left:auto!important;right:0!important;transform:none!important;width:var(--side-w)!important;height:48px!important;justify-content:center}html[dir="ltr"] .navbar .nb-brand{left:0!important;right:auto!important}html .sidebar{padding-top:76px!important}html.wf-sidebar-collapsed .navbar .nb-brand{visibility:hidden!important;pointer-events:none!important}.navbar .nb-brand .hamburger{display:none!important}}
@media(max-width:1024px){html .navbar .nb-brand{position:absolute!important;top:50%!important;left:50%!important;right:auto!important;transform:translate(-50%,-50%)!important;width:40px!important;height:40px!important;justify-content:center}html .navbar .nb-brand .hamburger{display:none!important}html .navbar .nb-logo{width:38px!important;height:38px!important;flex-shrink:0;border-radius:10px!important}.navbar .nb-right{position:static!important;margin:0!important;width:100%!important;justify-content:space-between!important;gap:0!important}.navbar .nb-right .lang-sw{display:none!important}.navbar .nb-right .icon-btn{flex:0 0 40px!important;width:40px!important;height:40px!important}.navbar .nb-right #themeBtn{order:1!important}.navbar .nb-right .icon-btn[onclick="openSettingsPage()"]{order:0!important}.navbar .nb-right .wf-desktop-sidebar-toggle{display:none!important}}
/* Pearl daylight, compact spacing, and a user-controlled desktop sidebar. */
html:not([data-theme="dark"]){--bg:#f6f7f9;--card:#fff;--input:#f1f3f6;--border:#dfe4ea;--text:#1f2937;--text2:#526174;--muted:#758195;--gold:#344964;--gold2:#25374f;--gold-light:#e9edf2;--brand-accent:#344964}html:not([data-theme="dark"]) body{background:linear-gradient(140deg,#fafbfc,#f2f5f8)}html:not([data-theme="dark"]) .sidebar{background:#fbfcfd!important;border-inline-end:1px solid #e2e6eb!important;box-shadow:8px 0 26px rgba(32,47,65,.055)!important}html:not([data-theme="dark"]) .nav-item{margin-bottom:5px!important;border-radius:12px!important;color:#506176!important}html:not([data-theme="dark"]) .nav-item:hover{background:#edf1f5!important;color:#25374f!important}html:not([data-theme="dark"]) .nav-item.active{background:#344964!important;color:#fff!important;box-shadow:0 7px 15px rgba(37,55,79,.15)!important}html:not([data-theme="dark"]) .nav-item.active .nav-icon{color:#fff!important}html:not([data-theme="dark"]) .nav-item:not(.active) .nav-badge{background:#e4e9ef!important;color:#405269!important}html:not([data-theme="dark"]) .nav-divider{background:#e3e7ec!important;margin:14px 4px!important}.wf-desktop-sidebar-toggle{display:inline-flex!important}
@media(min-width:1025px){html.wf-sidebar-collapsed .sidebar{transform:translateX(100%)!important;pointer-events:none}html[dir="ltr"].wf-sidebar-collapsed .sidebar{transform:translateX(-100%)!important}.main{transition:margin .24s cubic-bezier(.2,.7,.2,1)!important}.wf-desktop-sidebar-toggle{order:-1}}@media(max-width:1024px){.wf-desktop-sidebar-toggle{display:none!important}.navbar{padding-inline:12px!important}.nb-brand{right:50%!important;left:auto!important;transform:translate(50%,-50%)!important;width:auto!important}.nb-right{margin-inline-start:auto!important;gap:7px!important}.navbar .icon-btn{width:38px!important;height:38px!important}}
/* Keep logo inside the top bar when the desktop sidebar is hidden; balance all header controls. */
@media(min-width:1025px){html.wf-sidebar-collapsed .nb-brand{position:absolute!important;top:50%!important;right:auto!important;left:50%!important;transform:translate(-50%,-50%)!important;width:auto!important;height:auto!important;z-index:1002}html[dir="ltr"].wf-sidebar-collapsed .nb-brand{left:50%!important;right:auto!important;transform:translate(-50%,-50%)!important}.nb-right{display:flex;align-items:center;gap:10px!important;margin-inline-start:auto;z-index:1003}.nb-right .icon-btn{width:40px;height:40px;border:1px solid var(--border);background:var(--input);color:var(--text2);border-radius:12px!important}.nb-right .icon-btn:hover{background:var(--gold-light);color:var(--gold2)}}
@media(max-width:1024px){.navbar{display:flex!important;justify-content:space-between!important;min-height:var(--nav-h);padding-inline:12px!important}.nb-brand{position:absolute!important;left:50%!important;right:auto!important;top:50%!important;transform:translate(-50%,-50%)!important;width:auto!important;height:auto!important;z-index:1002}.nb-right{position:relative;z-index:1003;margin-inline-start:auto!important;display:flex;align-items:center;gap:8px!important}.nb-right .icon-btn{width:38px!important;height:38px!important;border-radius:12px!important}.nb-right .icon-btn[onclick="openSettingsPage()"]{order:-1}.nb-right #themeBtn{order:0}}
[data-theme="dark"]{--bg:#111722;--card:#18212e;--input:#222d3b;--nav:#101720;--text:#eef3f8;--text2:#bac6d4;--muted:#8796a8;--border:#2d3a49;--gold:#9bb4cd;--gold2:#d4e0eb;--gold-light:#243243;--brand-accent:#9bb4cd}[data-theme="dark"] body{background:linear-gradient(145deg,#101722,#16202b)}[data-theme="dark"] .sidebar{background:#141d28!important;border-color:#2a3847!important}[data-theme="dark"] .nav-item{color:#bdc9d7!important;margin-bottom:5px!important;border-radius:12px!important}[data-theme="dark"] .nav-item:hover{background:#202d3b!important;color:#fff!important}[data-theme="dark"] .nav-item.active{background:#6e859c!important;color:#fff!important;box-shadow:none!important}[data-theme="dark"] .nav-item:not(.active) .nav-badge{background:#2a3949!important;color:#d7e1ea!important}[data-theme="dark"] .card,[data-theme="dark"] .stat-card,[data-theme="dark"] .curr-bar{border-color:#2b3a4a!important;box-shadow:0 7px 20px rgba(0,0,0,.14)!important}[data-theme="dark"] .wf-market-trend{background:#253442!important;color:#d8e2ed!important}[data-theme="dark"] .curr-item.market-up .wf-market-trend{background:#1e3b34!important;color:#9ed9bf!important}[data-theme="dark"] .curr-item.market-down .wf-market-trend{background:#412b32!important;color:#f4b7bd!important}
/* Honest dashboard intelligence: sales and catalog counts come directly from app records. */
.wf-dashboard-intelligence{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:18px}.wf-insight-card{background:linear-gradient(145deg,#fff,#f7f9fc);border:1px solid #dce4ee;border-radius:18px;padding:18px 20px;box-shadow:0 10px 22px rgba(24,41,63,.055)}.wf-insight-head{display:flex;align-items:center;gap:9px;padding-bottom:12px;margin-bottom:5px;border-bottom:1px solid #e1e7ee;color:#17263b;font-size:16px}.wf-insight-head .wf-ui-icon{color:#243b5a}.wf-insight-row{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid #edf1f5;color:#56667c;font-size:13px}.wf-insight-row:last-child{border-bottom:0}.wf-insight-row b{color:#111c2e;font-size:17px;font-variant-numeric:tabular-nums}.wf-catalog-total{display:flex;align-items:baseline;gap:7px;margin:7px 0 14px;color:#66768b}.wf-catalog-total b{font-size:28px;color:#17263b;line-height:1}.wf-catalog-label{font-size:11px;color:#77869a;margin-bottom:7px}.wf-catalog-row{display:grid;grid-template-columns:minmax(86px,1fr) minmax(60px,1.7fr) 22px;align-items:center;gap:8px;margin-top:8px;font-size:11px;color:#5b6b7e}.wf-catalog-row i{height:7px;border-radius:999px;background:#e8edf3;overflow:hidden}.wf-catalog-row em{display:block;height:100%;min-width:3px;border-radius:inherit;background:#243b5a}.wf-catalog-row b{color:#17263b;text-align:end;font-variant-numeric:tabular-nums}@media(max-width:700px){.wf-dashboard-intelligence{grid-template-columns:1fr;gap:12px}.wf-insight-card{padding:16px}.wf-insight-row{padding:9px 0}}
.wf-ai-brief{margin-bottom:16px}.wf-ai-panel{display:flex;align-items:center;gap:14px;min-height:90px;padding:16px 18px;background:linear-gradient(108deg,#17263b,#263c5a);border-radius:19px;box-shadow:0 15px 28px rgba(18,31,49,.16);color:#fff;position:relative;overflow:hidden}.wf-ai-panel::after{content:"";position:absolute;width:190px;height:190px;border-radius:50%;inset:-100px -44px auto auto;background:radial-gradient(circle,rgba(255,255,255,.14),transparent 68%);pointer-events:none}.wf-ai-orb{display:grid;place-items:center;width:46px;height:46px;flex:0 0 46px;border-radius:15px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);font-size:22px;animation:wfAiGlow 2.6s ease-in-out infinite}.wf-ai-copy{position:relative;z-index:1;min-width:0;flex:1}.wf-ai-title{font-weight:850;font-size:15px}.wf-ai-title span{display:block;margin-top:3px;color:#c6d2e1;font-size:11px;font-weight:600}.wf-ai-copy p{margin:7px 0 0;color:#eef4fa;font-size:13px;line-height:1.45}.wf-ai-action{position:relative;z-index:1;flex:0 0 auto!important;background:#fff!important;color:#17263b!important;box-shadow:none!important}@keyframes wfAiGlow{50%{transform:translateY(-2px);box-shadow:0 0 0 7px rgba(255,255,255,.05)}}@media(max-width:600px){.wf-ai-panel{align-items:flex-start;flex-wrap:wrap;padding:16px}.wf-ai-copy{flex-basis:calc(100% - 60px)}.wf-ai-action{width:100%;margin-top:2px}.wf-ai-orb{width:42px;height:42px;flex-basis:42px}}@media(prefers-reduced-motion:reduce){.wf-ai-orb{animation:none}}
/* Language choice reads as a primary preference, followed by a compact flag gallery. */
#stab-language #wfLanguageTitle{display:flex;align-items:center;gap:9px;font-size:22px;color:#17263b;margin:0 0 5px}#stab-language #wfLanguageHint{padding-bottom:16px;border-bottom:1px solid #e2e8ef}#page-settings .wf-language-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:14px}#page-settings .wf-language-card{min-height:86px!important;flex-direction:column;justify-content:center;gap:8px;text-align:center!important;padding:10px!important;font-size:12px!important}#page-settings .wf-language-card[aria-pressed="true"]{grid-column:1/-1;min-height:64px!important;flex-direction:row;justify-content:flex-start;text-align:start!important;padding-inline:16px!important;font-size:15px!important}#page-settings .wf-language-card[aria-pressed="true"]::after{content:"✓";margin-inline-start:auto;width:22px;height:22px;display:grid;place-items:center;border-radius:50%;background:#17263b;color:#fff;font-size:12px}#page-settings .wf-language-card:not([aria-pressed="true"]) .wf-flag{width:42px;height:29px;border-radius:6px}@media(max-width:700px){#page-settings .wf-language-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}#page-settings .wf-language-card{min-height:78px!important;font-size:11px!important}#page-settings .wf-language-card[aria-pressed="true"]{grid-column:1/-1;min-height:58px!important}}
