/* Shared internal application surfaces; printed invoices keep their own layout. */
@media screen{
 :root{--ui-accent:#3a5071;--ui-soft:#edf1f6;--ui-radius:16px;--ui-control:12px}
 html:not([data-theme="dark"]){--bg:#f5f6f8;--card:#fff;--input:#f7f9fb;--text:#243247;--text2:#52647a;--muted:#78879a;--border:#dfe5ed;--gold:var(--ui-accent);--gold-light:var(--ui-soft)}
 [data-theme="dark"]{--ui-accent:#8ca5c5;--ui-soft:#263447;--bg:#111923;--card:#1a2533;--input:#202e3e;--text:#e7edf5;--text2:#b7c5d6;--muted:#8d9fb4;--border:#324255}
 body{background:var(--bg)!important}.main .page{min-width:0}
 .main :is(.card,.stat-card,.co-card,.pr-card-new,.inv-card,.client-type-step-card,.curr-bar,.wf-insight-card,.tip-card-standalone,.greeting-card),.modal-box,.wf-restore-modal{background:var(--card)!important;border:1px solid var(--border)!important;border-radius:var(--ui-radius)!important;box-shadow:0 5px 18px rgba(29,45,67,.055)!important;color:var(--text)}
 .main :is(.co-page-sticky,.sct-sticky-header,.page-sticky-bar){background:var(--card)!important;border-color:var(--border)!important;border-radius:var(--ui-radius)!important;padding:16px!important;margin-bottom:18px}
 .main :is(.co-toolbar-row,.page-toolbar-row){gap:10px;flex-wrap:wrap}.main :is(.co-toolbar-title,.page-toolbar-title,.sct-sticky-title h1){font-size:clamp(19px,2vw,25px)!important;line-height:1.5;color:var(--text)!important;font-weight:800}
 .main :is(.btn,.sct-back-btn),.modal-box .btn{border-radius:var(--ui-control)!important;min-height:42px;gap:7px;font-weight:700;box-shadow:none!important}
 html .main :is(.btn-p,.btn-g){background:var(--ui-accent)!important;border-color:var(--ui-accent)!important;color:#fff!important}html .main :is(.btn-s,.sct-back-btn){background:var(--ui-soft)!important;color:var(--text2)!important;border:1px solid var(--border)!important}
 .main :is(input.fc,select.fc,textarea.fc){background:var(--input)!important;color:var(--text)!important;border:1px solid var(--border)!important;border-radius:var(--ui-control)!important;min-height:44px}
 .main :is(.stat-icon,.tip-card-icon,.curr-flag,.ctsc-icon){background:var(--ui-soft)!important;color:var(--ui-accent)!important;border-color:var(--border)!important;box-shadow:none!important}
 .main :is(.card-title,.wf-insight-head,.wf-insight-row b,.wf-catalog-total b,.wf-catalog-row b){color:var(--text)!important}.main :is(.wf-insight-row,.wf-catalog-row,.wf-catalog-total){color:var(--text2)!important;border-color:var(--border)!important}
 #page-settings :is(.sct-sticky-header,[id^="stab-"],.wf-language-card){background:var(--card)!important;color:var(--text)!important;border-color:var(--border)!important}#page-settings :is(.fl,.sct-sticky-title h1,#wfLanguageTitle){color:var(--text)!important}#page-settings :is(input,select,textarea){background:var(--input)!important;color:var(--text)!important;border-color:var(--border)!important}
 .modal-box,.wf-restore-modal{background:var(--card)!important;color:var(--text)!important}.modal-box :is(.modal-title,.modal-body){color:var(--text)!important}
 @media(max-width:700px){.main :is(.co-page-sticky,.sct-sticky-header,.page-sticky-bar){padding:12px!important;margin-bottom:12px}.main :is(.co-toolbar-row,.page-toolbar-row){gap:8px}.main .co-toolbar-title{flex:1;min-width:80px}.main .fgrid{gap:12px}.main .wf-smart-search.open{position:relative!important;inset:auto!important;flex-basis:100%;width:100%!important;max-width:100%!important;order:10}.main .stats-grid{gap:10px}}
 html .main #greetingCard{padding:20px!important;margin-bottom:16px!important}
 html .main #greetingCard #tipCardStandalone{background:transparent!important;border:0!important;border-top:1px solid var(--border)!important;border-radius:0!important;box-shadow:none!important;margin:14px 0 0!important;padding:12px 0 0!important;transform:none!important}
 #greetingCard .tip-card-inner{gap:10px;align-items:center}#greetingCard .tip-card-icon{width:32px;height:32px;border-radius:9px!important;font-size:18px}#greetingCard .tip-card-icon .wf-ui-icon{width:19px;height:19px}#greetingCard .tip-card-label{font-size:11px;letter-spacing:0;margin-bottom:2px}#greetingCard .tip-card-text{font-size:12px;line-height:1.6}#greetingCard .tip-card-badge{display:none}
 /* Navigation: pearl surfaces, inset icon tiles and a quiet active indicator. */
 html #sidebar{background:linear-gradient(165deg,var(--card),var(--input))!important;border-inline-start:1px solid var(--border)!important;box-shadow:0 12px 36px rgba(26,44,68,.07)!important;padding-inline:12px!important;scrollbar-width:thin;overscroll-behavior:contain}
 html #sidebar .side-sec{font-size:10px!important;font-weight:750!important;letter-spacing:.06em!important;color:var(--muted)!important;padding:0 14px 8px!important;margin:16px 0 4px!important}
 html #sidebar .nav-item{position:relative;isolation:isolate;display:flex;align-items:center;gap:11px!important;width:100%!important;min-height:52px!important;margin:0 0 5px!important;padding:8px 11px!important;border:1px solid transparent!important;border-radius:14px!important;background:transparent!important;color:var(--text2)!important;font-size:13px!important;font-weight:650!important;box-shadow:none!important;transition:background .18s ease,border-color .18s ease,color .18s ease}
 html #sidebar .nav-icon{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:11px;background:var(--ui-soft);color:var(--ui-accent)!important;transition:background .18s ease}
 html #sidebar .nav-icon .wf-ui-icon{width:20px;height:20px;color:inherit!important}
 html #sidebar .nav-item:hover{background:var(--ui-soft)!important;border-color:var(--border)!important;color:var(--text)!important}
 html #sidebar .nav-item.active{background:var(--ui-soft)!important;border-color:var(--border)!important;color:var(--text)!important;box-shadow:0 4px 12px rgba(32,50,75,.06)!important}
 html #sidebar .nav-item.active::before{content:"";position:absolute;inset-inline-start:0;top:17px;bottom:17px;width:3px;border-radius:4px;background:var(--ui-accent)}
 html #sidebar .nav-item.active .nav-icon{background:#3a5071!important;color:#fff!important;box-shadow:0 4px 9px rgba(35,54,80,.16)}
 html #sidebar .nav-item.active .wf-ui-icon{color:inherit!important}
 html #sidebar .nav-item .nav-badge{min-width:23px;height:22px;display:grid;place-items:center;padding:0 6px;background:var(--card)!important;border:1px solid var(--border);color:var(--text2)!important;font-size:10px!important;font-weight:750;border-radius:8px}
 html #sidebar .nav-divider{height:1px;background:var(--border)!important;margin:18px 12px 4px!important;opacity:.8}
 html #sidebar .nav-item:focus-visible{outline:2px solid var(--ui-accent);outline-offset:2px}
 @media(max-width:1024px){html #sidebar{padding-top:16px!important;padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))!important;border-radius:0;width:min(300px,86vw)!important}html #sidebar .nav-item{min-height:54px!important}}
 html .navbar #navLogo.wf-adaptive-logo,html #page-settings #settingsLogoPrev.wf-adaptive-logo{background:var(--logo-surface,#fff)!important;border:1px solid var(--border)!important;box-shadow:0 3px 12px rgba(25,42,66,.1)!important;overflow:hidden;display:flex;align-items:center;justify-content:center}
 html #navLogo img,html #settingsLogoPrev img{object-fit:contain!important;object-position:center!important;width:100%!important;height:100%!important;padding:3px;filter:none!important;border-radius:inherit}
 /* Currency calculator shares the same surfaces, control scale and semantic colors. */
 html #currCalcModal{padding:16px!important;align-items:center!important;background:rgba(19,32,49,.35)!important}
 html #currCalcModal .curr-calc-modal{width:100%;max-width:440px!important;max-height:calc(100dvh - 32px)!important;border:1px solid var(--border);border-radius:20px!important;background:var(--card)!important;box-shadow:0 24px 70px rgba(15,29,48,.22);color:var(--text);margin:auto!important}
 html .curr-calc-header{padding:20px!important;gap:12px;background:var(--card)!important;border-bottom:1px solid var(--border)}html .curr-calc-header::after{display:none}
 html .curr-calc-icon-wrap{width:42px;height:42px;border-radius:12px;background:var(--ui-soft)!important;color:var(--ui-accent)!important;border:1px solid var(--border);box-shadow:none!important;font-size:22px}
 html .curr-calc-title{font-size:18px;color:var(--text)!important}html .curr-calc-subtitle{font-size:12px;color:var(--muted)!important}
 html .curr-calc-close{width:36px;height:36px;border-radius:10px;background:var(--ui-soft)!important;color:var(--text2)!important;border:1px solid var(--border)}
 html .curr-calc-body{padding:20px!important;overflow:auto;gap:14px}html .curr-calc-rate-pill{background:var(--ui-soft)!important;color:var(--text2)!important;border:1px solid var(--border);border-radius:10px;font-size:12px;padding:9px 12px;box-shadow:none}
 html .curr-calc-input-section,html .curr-calc-result-section{background:var(--input)!important;border:1px solid var(--border)!important;border-radius:14px!important;padding:16px!important;box-shadow:none!important}
 html .curr-calc-input-section:focus-within{border-color:var(--ui-accent)!important;outline:2px solid var(--ui-soft);outline-offset:2px}
 html .curr-calc-input{font-size:30px!important;font-weight:750;color:var(--text)!important;direction:ltr;text-align:start;min-width:0;width:100%;background:transparent!important}
 html .curr-calc-result-val{display:block;font-size:30px!important;line-height:1.4;font-weight:800;color:var(--ui-accent)!important;direction:ltr;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
 html :is(.curr-calc-from-tag,.curr-calc-to-tag,.curr-calc-quick-label){font-size:11px;color:var(--muted)!important;letter-spacing:.02em}html :is(.curr-calc-from-sym,.curr-calc-to-sym){color:var(--text2)!important;font-size:13px}
 html .curr-calc-arrow{color:var(--muted)!important;font-size:18px;margin:5px auto}html .curr-calc-quick-btns{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}html .curr-calc-quick-btn{min-height:40px;padding:8px;border-radius:10px;background:var(--ui-soft)!important;color:var(--text2)!important;border:1px solid var(--border)!important;font-size:13px;box-shadow:none!important}
 html .curr-calc-footer{padding:16px 20px!important;background:var(--card)!important;border-top:1px solid var(--border);gap:10px}html .curr-calc-footer .btn{min-height:42px;border-radius:12px!important;font-size:13px}html .curr-calc-footer .btn-p{background:#3a5071!important;color:#fff!important}html .curr-calc-footer .btn-s{background:var(--ui-soft)!important;color:var(--text2)!important}
 @media(max-width:480px){html #currCalcModal{padding:12px!important}html #currCalcModal .curr-calc-modal{max-height:calc(100dvh - 24px)!important}html .curr-calc-header,html .curr-calc-body{padding:16px!important}}
 /* List workspaces: balanced title/action row and a full-width filter strip. */
 html .main .co-page-sticky{padding:20px!important;border:1px solid var(--border);border-radius:18px!important;box-shadow:0 6px 22px rgba(29,45,67,.04)!important}
 html .main :is(.co-toolbar-row,.page-toolbar-row){display:flex;align-items:center;gap:10px!important;flex-wrap:nowrap!important;min-height:44px;margin:0 0 18px!important}
 html .main :is(.co-toolbar-title,.page-toolbar-title){margin:0!important;margin-inline-end:auto!important;display:flex;align-items:center;gap:9px;flex:0 1 auto;font-size:22px!important;min-width:0;line-height:1.5;white-space:nowrap}
 html .main :is(.co-toolbar-row,.page-toolbar-row)>.btn{font-size:13px;min-height:42px;padding:10px 16px!important;white-space:nowrap;flex-shrink:0}
 html .main :is(.co-toolbar-row,.page-toolbar-row)>.sct-back-btn{min-height:40px;width:40px;padding:0!important;justify-content:center;flex-shrink:0;background:var(--input)!important}
 html .main :is(.co-toolbar-row,.page-toolbar-row)>.sct-back-btn>span:not(.wf-ui-icon){display:none}
 html .main .co-stats-bar{display:flex;gap:6px!important;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;padding:5px!important;margin:0!important;background:var(--input);border:1px solid var(--border);border-radius:12px}
 html .main .co-stat-pill{flex:1 0 auto;justify-content:center;gap:8px;min-height:40px;padding:8px 12px!important;font-size:12px;border:1px solid transparent!important;border-radius:9px!important;background:transparent!important;color:var(--text2)!important;box-shadow:none!important;transform:none!important;transition:background .16s ease,color .16s ease}
 html .main .co-stat-pill:hover{background:var(--ui-soft)!important;transform:none!important}
 html .main .co-stat-pill.active{background:var(--card)!important;color:var(--ui-accent)!important;border-color:var(--border)!important;box-shadow:0 2px 5px rgba(29,45,67,.06)!important;transform:none!important}
 html .main .co-stat-pill .csp-num{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:21px;padding:0 5px;background:var(--ui-soft)!important;color:var(--text2)!important;border-radius:6px!important;font-size:10px;transform:none!important}
 html .main .co-stat-pill.active .csp-num{background:#3a5071!important;color:#fff!important}
 html .main .co-empty-state{border:1px solid var(--border)!important;border-radius:18px;padding:clamp(32px,6vw,70px) 20px;background:var(--card);box-shadow:none}
 html .main .co-empty-state .ei{display:grid;place-items:center;width:64px;height:64px;margin:0 auto 16px;border-radius:18px;background:var(--ui-soft);color:var(--ui-accent);font-size:32px}html .main .co-empty-state .ei .wf-ui-icon{width:30px;height:30px}
 @media(max-width:800px){html .main .co-page-sticky{padding:14px!important}html .main :is(.co-toolbar-row,.page-toolbar-row){flex-wrap:wrap!important;gap:8px!important;margin-bottom:12px!important}html .main :is(.co-toolbar-title,.page-toolbar-title){font-size:19px!important;flex:1!important}html .main :is(.co-toolbar-row,.page-toolbar-row)>.btn{padding:9px 12px!important;font-size:12px}html .main .co-stat-pill{min-height:40px;flex:0 0 auto;padding:8px 11px!important}html .main .wf-smart-search.open{order:10;flex:1 0 100%!important;max-width:100%!important;width:100%!important;position:static!important}html .main .co-stats-bar{margin-top:4px!important}}
 @media(max-width:420px){html #page-companies .co-toolbar-row>.btn{flex:1 1 calc(50% - 8px);justify-content:center}html #page-companies .co-toolbar-row>.wf-search-toggle{margin-inline-start:auto}html #page-companies .co-toolbar-title{flex-basis:calc(100% - 100px)!important}}
 /* Responsive workspace geometry applies equally to lists, forms and selection flows. */
 html .main{max-width:none!important;padding-inline:clamp(16px,2.3vw,36px)!important}
 html .main>.page{max-width:1600px!important;margin-inline:auto!important;width:100%;min-width:0}
 html .main .sct-sticky-header{display:flex;align-items:center;gap:14px!important;flex-wrap:wrap;border:1px solid var(--border)!important;box-shadow:0 4px 16px rgba(29,45,67,.04)!important;padding:16px 20px!important}
 html .main .sct-sticky-title{flex:1;min-width:150px}html .main .sct-sticky-title p{font-size:12px!important;line-height:1.6;margin-top:3px;color:var(--muted)!important}
 html .main .sct-sticky-header>.sct-back-btn{width:40px;min-width:40px;min-height:40px;padding:0!important;justify-content:center}html .main .sct-sticky-header>.sct-back-btn>span:not(.wf-ui-icon){display:none}
 html .main :is(.co-grid,.pr-grid-new){display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr))!important;gap:16px!important}
 html .main .fgrid{gap:18px!important}html .main .fl{font-size:12px;font-weight:700;line-height:1.5;margin-bottom:7px}
 html .main .client-type-step-card{min-height:96px;padding:18px!important;display:flex;align-items:center;gap:16px!important;transition:border-color .18s ease,box-shadow .18s ease!important}html .main .client-type-step-card:hover{border-color:var(--ui-accent)!important;transform:none!important}
 html .main :is(.ctsc-title,.client-type-step-title){font-size:16px!important;color:var(--text)!important}html .main :is(.ctsc-desc,.client-type-step-desc){font-size:12px!important;line-height:1.6;color:var(--muted)!important}
 html .main .chip-row{display:flex;gap:6px;flex-wrap:wrap;margin-top:7px}html .main .chip{background:var(--ui-soft)!important;color:var(--text2)!important;border:1px solid var(--border)!important;border-radius:8px;font-size:10px;padding:4px 8px}
 html .main #prTypeStepCards{max-width:900px!important;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}html .main #prTypeStepCards>.client-type-step-card{margin:0!important}
 @media(min-width:1100px){html #page-select-client-type>div:last-child,html #page-select-invoice-type>div:last-child{max-width:900px!important;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}html #page-select-client-type .client-type-step-card,html #page-select-invoice-type .client-type-step-card{margin-bottom:0!important}}
 @media(max-width:700px){html .main{padding-inline:12px!important;transition:none!important}html .main .sct-sticky-header{padding:12px!important;gap:10px!important}html #page-create-invoice>.sct-sticky-header>div:last-child{width:100%;display:flex!important;gap:8px!important;flex-wrap:wrap}html #page-create-invoice>.sct-sticky-header>div:last-child>.btn{flex:1;justify-content:center}html .main #prTypeStepCards{grid-template-columns:1fr}html .main .client-type-step-card{min-height:86px;padding:15px!important}html .main .fgrid{gap:14px!important}}
 html .main .wf-smart-search:not(.open){display:none!important}html .main .co-page-sticky{margin-inline:0!important}html .main>.page>.co-page-sticky{top:calc(var(--nav-h) + 12px)}
 /* Record cards share readable hierarchy and a stable action rail. */
 html .main :is(.co-card,.pr-card-new,.inv-card){overflow:hidden;transition:border-color .18s ease,box-shadow .18s ease!important}
 html .main :is(.co-card,.pr-card-new,.inv-card):hover{transform:none!important;border-color:var(--ui-accent)!important;box-shadow:0 8px 24px rgba(29,45,67,.08)!important}
 html .main :is(.co-card-body,.pr-card-new-body,.inv-card-body){padding:18px!important}
 html .main :is(.co-name,.pr-card-new-name,.inv-card-name){font-size:15px!important;font-weight:750;line-height:1.5;overflow-wrap:anywhere;color:var(--text)}
 html .main :is(.co-actions,.pr-card-new-actions,.inv-card-actions){background:var(--input)!important;border-top:1px solid var(--border)!important;padding:12px!important;gap:8px!important}
 html .main :is(.co-actions,.pr-card-new-actions,.inv-card-actions) .btn{min-height:40px!important;font-size:12px!important;padding:8px 10px!important;justify-content:center}
 html .main .co-logo{background:var(--ui-soft)!important;color:var(--ui-accent)!important;border:1px solid var(--border)!important;box-shadow:none!important;object-fit:contain}
 html .main .co-info{font-size:12px!important;line-height:1.6;padding-block:5px!important;overflow-wrap:anywhere}
 html .main .badge{font-size:10px;line-height:1.6;border-radius:7px;padding:3px 7px}
 html .main :is(button,a,input,select,textarea):focus-visible{outline:2px solid var(--ui-accent)!important;outline-offset:3px!important}
 html .main .btn:active{transform:translateY(1px)!important}
 @media(hover:hover){html .main .btn:hover{filter:brightness(.97);transform:none!important}}
 @media(max-width:700px){html .main :is(.co-card-body,.pr-card-new-body,.inv-card-body){padding:15px!important}html .main :is(.co-actions,.pr-card-new-actions,.inv-card-actions){padding:10px!important}html .main :is(.co-actions,.pr-card-new-actions,.inv-card-actions) .btn{min-height:44px!important}}
 @media(prefers-reduced-motion:reduce){html .main .btn:active{transform:none!important}}
 @media(max-width:1024px){
  html .navbar{transition:transform .22s ease!important;will-change:transform}
  html.wf-header-hidden .navbar{transform:translateY(-100%)!important;pointer-events:none}
  html .main :is(.co-page-sticky,.sct-sticky-header,.page-sticky-bar){transition:top .22s ease!important;margin-inline:0!important}
  html.wf-header-hidden .main :is(.co-page-sticky,.sct-sticky-header,.page-sticky-bar){top:8px!important}
  html.wf-header-hidden #page-create-invoice .sct-sticky-header .chip-row{display:none}
  html.wf-header-hidden #page-create-invoice .sct-sticky-header{gap:8px!important;padding-block:10px!important}
 }
 @media(prefers-reduced-motion:reduce){html .navbar,html .main :is(.co-page-sticky,.sct-sticky-header,.page-sticky-bar){transition:none!important}}
 @media(max-width:1024px){
  html.wf-header-hidden .main .co-page-sticky{padding:10px 12px!important;border-color:var(--border)!important;box-shadow:0 9px 24px rgba(26,43,66,.12)!important}
  html.wf-header-hidden .main .co-toolbar-row{margin-bottom:8px!important}
  html.wf-header-hidden .main .co-stats-bar{padding:3px!important;border-radius:10px}
  html.wf-header-hidden .main .co-stat-pill{min-height:34px;padding-block:5px!important;font-size:11px}
  html.wf-header-hidden .main .sct-sticky-title p{display:none}
  html.wf-header-hidden .main .sct-sticky-header{box-shadow:0 9px 24px rgba(26,43,66,.12)!important}
 }
 /* Internal sections have a single contextual header, without stacked global chrome. */
 html.wf-section-mode .navbar{visibility:hidden!important;pointer-events:none!important;transform:none!important;box-shadow:none!important;background:transparent!important}
 html.wf-section-mode .navbar .qbl-sticky-cart.visible{visibility:visible!important;pointer-events:auto!important}
 html.wf-section-mode .main{margin-top:0!important;padding-top:12px!important;min-height:100dvh}
 html.wf-section-mode .main :is(.co-page-sticky,.sct-sticky-header,.page-sticky-bar){top:8px!important;margin-top:0!important}
 html.wf-section-mode #sidebar{top:0!important;padding-top:20px!important}
 html.wf-section-mode #page-settings .sct-sticky-header{position:sticky!important;top:8px!important;z-index:500}
 @media(max-width:700px){html.wf-section-mode .main{padding-top:max(8px,env(safe-area-inset-top,0px))!important}html.wf-section-mode .main :is(.co-page-sticky,.sct-sticky-header,.page-sticky-bar){top:max(8px,env(safe-area-inset-top,0px))!important}}
 .wf-section-menu{display:inline-grid;place-items:center;width:40px;height:40px;flex:0 0 40px;border:1px solid var(--border);border-radius:12px;background:var(--input);color:var(--text2);margin-inline-start:4px;cursor:pointer}
 .wf-section-menu svg,#desktopSidebarToggle>svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s ease}
 [dir="rtl"] .wf-section-menu[data-open="true"] svg,[dir="rtl"] #desktopSidebarToggle[data-open="true"]>svg{transform:rotate(180deg)}
 .wf-section-menu:hover{background:var(--ui-soft);color:var(--ui-accent)}
 .wf-search-toggle.active>.wf-ui-icon{display:none}.wf-search-toggle.active::after{content:"×";font-size:25px;line-height:1;font-weight:400}
 /* Integrated section chrome: flush from first paint, with no floating-card transition. */
 html.wf-section-mode body .main{padding-top:0!important;transition:none!important}
 html.wf-section-mode body .main>.page{max-width:none!important}
 html.wf-section-mode body .main :is(.co-page-sticky,.sct-sticky-header,.page-sticky-bar){position:sticky!important;top:0!important;margin-top:0!important;margin-inline:calc(-1 * clamp(16px,2.3vw,36px))!important;padding:16px clamp(16px,2.3vw,36px)!important;border:0!important;border-bottom:1px solid var(--border)!important;border-radius:0!important;background:var(--card)!important;box-shadow:0 3px 10px rgba(29,45,67,.035)!important;transition:none!important;z-index:600}
 html.wf-section-mode body .main .co-toolbar-row{margin-bottom:12px!important}
 html.wf-section-mode body .main .wf-section-menu{order:-2;margin-inline:0 2px;border-radius:9px}
 html.wf-section-mode body .main .sct-sticky-title h1{line-height:1.4}
 @media(max-width:700px){html.wf-section-mode body .main :is(.co-page-sticky,.sct-sticky-header,.page-sticky-bar){margin-inline:-12px!important;padding:12px!important;padding-top:max(12px,env(safe-area-inset-top,0px))!important;top:0!important}html.wf-section-mode body .main .co-toolbar-title{font-size:18px!important}html.wf-section-mode body .main .wf-section-menu{width:36px;height:36px;flex-basis:36px}html.wf-section-mode body .main .co-toolbar-row{gap:7px!important}}
 html.wf-section-mode body .main>.page{animation:none!important}
 html.wf-section-mode body .main{transition:none!important}
 /* Settings uses one scale for every tab, field, action and language option. */
 html #page-settings{max-width:1120px;margin-inline:auto}
 html #page-settings .sct-sticky-header{padding:16px!important;gap:16px!important;border-radius:16px!important}
 html #page-settings .sct-sticky-header>div:first-child{padding:0!important;gap:12px!important;flex-wrap:nowrap!important}
 html #page-settings .sct-sticky-title h1{font-size:22px!important;line-height:1.4!important}
 html #page-settings .tabs{margin:0!important;padding:5px!important;gap:5px!important;background:var(--ui-soft)!important;border:0!important;border-radius:12px!important;scrollbar-width:thin!important}
 html #page-settings .tab-btn{font-size:13px!important;min-height:42px!important;padding:9px 12px!important;border-radius:9px!important;line-height:1.4!important;display:flex;align-items:center;justify-content:center;gap:6px;color:var(--text2)!important}
 html #page-settings .tab-btn.active{background:var(--card)!important;color:var(--ui-accent)!important;box-shadow:0 2px 6px rgba(25,40,60,.08)!important;border:1px solid var(--border)!important}
 html #page-settings .wf-settings-workspace{max-width:none!important;margin:16px 0!important}
 html #page-settings [id^="stab-"]{max-width:none!important;margin:16px 0!important;padding:24px!important;border-radius:16px!important;font-size:14px;line-height:1.6}
 html #page-settings [id^="stab-"]>.card{padding:20px!important;margin-bottom:16px;background:var(--input)!important;border:1px solid var(--border)!important;box-shadow:none!important;border-radius:12px!important}
 html #page-settings .fgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px!important}
 html #page-settings .fg{min-width:0;margin:0!important}html #page-settings .fg.full{grid-column:1/-1}
 html #page-settings .fl{font-size:13px!important;font-weight:650!important;margin-bottom:7px;line-height:1.5}
 html #page-settings input.fc,html #page-settings select.fc{height:44px!important;font-size:14px!important;padding:10px 12px!important}html #page-settings textarea.fc{font-size:14px!important;padding:12px!important;min-height:90px}
 html #page-settings .btn{font-size:13px!important;min-height:42px!important;padding:10px 16px!important}
 html #page-settings .settings-logo-prev{width:72px!important;height:72px!important;margin:0 auto 12px!important;border-radius:14px!important}
 html #page-settings .wf-language-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important;gap:12px!important}
 html #page-settings .wf-language-card,html #page-settings .wf-language-card[aria-pressed="true"]{grid-column:auto!important;flex-direction:row!important;justify-content:flex-start!important;min-height:68px!important;padding:14px!important;font-size:14px!important;gap:12px!important;border-radius:12px!important;text-align:start!important}
 html #page-settings .wf-language-card[aria-pressed="true"]::after{width:18px;height:18px;font-size:10px;flex-shrink:0}
 html #page-settings .wf-language-card .wf-flag{width:32px!important;height:22px!important;border-radius:4px!important}
 html #page-settings #wfLanguageTitle{font-size:18px!important}html #page-settings #wfLanguageHint{font-size:13px!important}
 html #page-settings .wf-data-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}html #page-settings .wf-data-stat{padding:14px;border-radius:12px}html #page-settings .wf-data-stat b{font-size:22px}html #page-settings .wf-data-stat span{font-size:12px}
 html #page-settings .wf-bg-row{flex-wrap:wrap;padding:14px;gap:10px}html #page-settings .wf-bg-title{font-size:13px}html #page-settings .wf-bg-sub{font-size:12px}html #page-settings .wf-bg-enable{min-height:40px;font-size:12px;padding:9px 12px}
 @media(max-width:700px){html #page-settings .sct-sticky-header{padding:12px!important;position:relative!important;top:auto!important}html #page-settings .sct-sticky-title h1{font-size:19px!important}html #page-settings [id^="stab-"]{padding:16px!important}html #page-settings [id^="stab-"]>.card{padding:14px!important}html #page-settings .fgrid{grid-template-columns:1fr;gap:14px!important}html #page-settings .wf-data-grid{grid-template-columns:repeat(2,minmax(0,1fr))}html #page-settings .wf-language-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}html #page-settings .wf-language-card{gap:8px!important;padding:10px!important;font-size:13px!important}}
}

/* Keep exchange data legible at phone widths, including Android display scaling. */
html #sidebar .wf-sidebar-brand{height:88px;display:flex;align-items:center;justify-content:center;margin:0 4px 15px;border-bottom:1px solid var(--border)}
html #sidebar #wfSidebarLogo{width:58px;height:58px;object-fit:contain;padding:5px;border:1px solid var(--border);border-radius:16px;background:var(--logo-surface,#fff);box-shadow:0 4px 14px rgba(25,42,66,.1)}
@media(min-width:1025px){html .navbar .nb-brand{display:none!important}}
@media(max-width:1024px){html #sidebar .wf-sidebar-brand{height:78px;margin-bottom:12px}html #sidebar #wfSidebarLogo{width:54px;height:54px}}
html .curr-bar-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
html .curr-item{display:grid!important;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;align-items:center!important;column-gap:10px!important;row-gap:5px!important;min-width:0;min-height:78px;padding:12px!important}
html .curr-item .curr-flag{grid-column:1;grid-row:1/3;align-self:center;flex-shrink:0}
html .curr-item .curr-info{grid-column:2;grid-row:1;min-width:0;line-height:1.25}
html .curr-item .curr-label{white-space:nowrap;font-size:10px!important}
html .curr-item .curr-rate{font-size:clamp(14px,1.5vw,18px)!important;line-height:1.25;font-variant-numeric:tabular-nums;white-space:nowrap}
html .curr-item .curr-badge{display:none!important}
html .curr-item .wf-market-trend{grid-column:2;grid-row:2;justify-self:start;align-self:start;margin:0!important;position:relative;max-width:100%;font-size:10px!important}
@media(max-width:700px){html .curr-bar-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}html .curr-item{min-height:86px;padding:10px!important;column-gap:7px!important}html .curr-item .curr-flag{width:34px;height:34px}html .curr-item .curr-label{font-size:9px!important}html .curr-item .curr-rate{font-size:clamp(13px,3.7vw,17px)!important}}
@media(max-width:360px){html .curr-item{grid-template-columns:1fr;grid-template-rows:auto auto auto;gap:4px!important}html .curr-item .curr-flag{grid-column:1;grid-row:1;width:28px;height:28px}html .curr-item .curr-info{grid-column:1;grid-row:2}html .curr-item .wf-market-trend{grid-column:1;grid-row:3}}

/* One visible icon and a small teardrop marker for the selected mobile destination. */
@media(max-width:1024px){
 html .navbar .nb-brand{display:none!important}
 html .navbar .nb-right .wf-desktop-sidebar-toggle{display:inline-flex!important;order:2!important}
 html .navbar .nb-right #themeBtn{order:1!important}
 html .navbar .nb-right #headerSettingsBtn{order:0!important}
 html .bottom-nav{height:calc(72px + env(safe-area-inset-bottom,0px))!important;padding:4px 6px env(safe-area-inset-bottom,0px)!important;background:var(--card)!important;border-top:1px solid var(--border)!important;box-shadow:0 -7px 25px rgba(25,40,62,.09)!important;animation:none!important;gap:2px}
 html .bottom-nav-bg,html .bottom-nav-curve,html .bnav-circle,html .bottom-nav .bnav-dot{display:none!important}
 html .bottom-nav .bnav-btn{min-width:0;justify-content:center!important;gap:2px!important;padding:4px 1px 3px!important;border-radius:12px;transition:background .2s ease!important}
 html .bottom-nav .bnav-btn:active{transform:scale(.96)}
 html .bottom-nav .bnav-icon{position:relative;isolation:isolate;display:grid;place-items:center;width:38px;height:38px;flex:none;font-size:21px!important;color:var(--text2)!important;opacity:1!important;transform:none!important;filter:none!important;transition:color .2s ease!important}
 html .bottom-nav .bnav-icon .wf-ui-icon{position:relative;z-index:1;width:22px;height:22px;color:inherit!important}
 html .bottom-nav .bnav-label{color:var(--text2)!important;font-size:10px!important;line-height:1.2;font-weight:650!important;opacity:1!important;transform:none!important;letter-spacing:0}
 html .bottom-nav .bnav-btn.bnav-active .bnav-icon{color:#fff!important;opacity:1!important;transform:none!important}
 html .bottom-nav .bnav-btn.bnav-active .bnav-icon::before{content:"";position:absolute;z-index:0;width:36px;height:36px;border-radius:50% 50% 50% 12px;background:#3a5071;transform:rotate(-45deg);box-shadow:0 4px 9px rgba(37,55,79,.2)}
 html .bottom-nav .bnav-btn.bnav-active .bnav-label{color:var(--text)!important;font-weight:800!important;opacity:1!important;transform:none!important}
 html .bottom-nav .bnav-btn:focus-visible{outline:2px solid var(--ui-accent);outline-offset:-2px}
 html[data-theme="dark"] .bottom-nav{background:#1a2533!important;box-shadow:0 -7px 25px rgba(0,0,0,.24)!important}
 html[data-theme="dark"] body nav#bottomNav button.bnav-btn.bnav-active span.bnav-icon{color:#172235!important}
 html[data-theme="dark"] .bottom-nav .bnav-btn.bnav-active .bnav-icon::before{background:#a9bfd9;box-shadow:0 4px 10px rgba(0,0,0,.28)}
 html[data-theme="dark"] body nav#bottomNav button.bnav-btn.bnav-active span.bnav-label{color:#e7edf5!important}
}
@media(prefers-reduced-motion:reduce){html .bottom-nav .bnav-btn,html .bottom-nav .bnav-icon{transition:none!important}}

/* Dashboard chrome stays put; its fine progress line responds to page scroll. */
html:not(.wf-booting):not(.wf-section-mode) .navbar{transform:none!important;visibility:visible!important}
html:not(.wf-section-mode) .navbar::after{content:"";position:absolute;inset-inline-start:0;bottom:0;height:3px;width:var(--wf-scroll-progress,0%);background:#3f7c94;box-shadow:0 1px 5px rgba(63,124,148,.25);border-radius:999px;transition:width .16s ease-out;pointer-events:none}
html.wf-dashboard-scrolled:not(.wf-section-mode) .navbar{box-shadow:0 10px 26px rgba(25,40,62,.13)!important;border-bottom-color:var(--border)!important}
html[data-theme="dark"].wf-dashboard-scrolled:not(.wf-section-mode) .navbar{box-shadow:0 10px 28px rgba(0,0,0,.3)!important}
html[data-theme="dark"]:not(.wf-section-mode) .navbar::after{background:#3f7c94}
@media(max-width:1024px){
 html:not(.wf-section-mode) .navbar{border-radius:0 0 18px 18px!important;overflow:hidden;background:var(--card)!important;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
 html.wf-dashboard-scrolled:not(.wf-section-mode) .navbar{background:color-mix(in srgb,var(--card) 92%,var(--ui-soft))!important}
 html .bottom-nav{left:0!important;right:0!important;width:100%!important;border-radius:24px 24px 0 0!important;overflow:hidden;border:1px solid var(--border)!important;border-bottom:0!important}
 html .bottom-nav .bnav-btn.bnav-active .bnav-icon::before{box-shadow:0 0 0 4px var(--card),0 5px 14px rgba(37,55,79,.2)!important}
 html .bottom-nav .bnav-btn:first-of-type{border-start-start-radius:15px}
 html .bottom-nav .bnav-btn:last-of-type{border-start-end-radius:15px}
}
@media(prefers-reduced-motion:reduce){html:not(.wf-section-mode) .navbar::after{transition:none}}

/* One compact section header language across lists, forms, barcode and settings. */
html.wf-section-mode body .main>.page>:is(.co-page-sticky,.sct-sticky-header,.page-sticky-bar){background:var(--card)!important;border:0!important;border-bottom:1px solid var(--border)!important;border-radius:0!important;box-shadow:0 5px 18px rgba(29,45,67,.045)!important;transform:none!important;backdrop-filter:none!important}
html.wf-section-mode body .main>.page>:is(.co-page-sticky,.sct-sticky-header,.page-sticky-bar){border-radius:0 0 20px 20px!important;box-shadow:0 7px 20px rgba(29,45,67,.065)!important}
html.wf-mobile-menu-open .navbar{box-shadow:0 5px 18px rgba(29,45,67,.12)!important}
html.wf-mobile-menu-open .navbar #desktopSidebarToggle{background:var(--ui-accent)!important;color:#fff!important;border-color:var(--ui-accent)!important;border-radius:14px!important;transform:rotate(-2deg)}
html.wf-section-mode body .main :is(.co-toolbar-title,.page-toolbar-title,.sct-sticky-title h1){color:var(--text)!important;font-size:clamp(18px,1.7vw,24px)!important;line-height:1.3!important;letter-spacing:-.015em;font-weight:780!important;min-width:0}
html.wf-section-mode body .main :is(.co-toolbar-title,.page-toolbar-title,.sct-sticky-title h1) .wf-ui-icon{width:22px;height:22px;color:var(--ui-accent);flex:none}
html.wf-section-mode body .main :is(.co-toolbar-row,.page-toolbar-row){align-items:center;gap:8px!important}
html.wf-section-mode body .main :is(.wf-section-menu,.sct-back-btn,.wf-search-toggle){flex:none;min-width:40px;min-height:40px;width:40px;height:40px;padding:0!important;display:inline-grid;place-items:center;border-radius:11px!important;border:1px solid var(--border)!important;background:var(--input)!important;color:var(--text2)!important;box-shadow:none!important}
html.wf-section-mode body .main :is(.wf-section-menu,.sct-back-btn,.wf-search-toggle):hover{background:var(--ui-soft)!important;color:var(--ui-accent)!important}
html.wf-section-mode body .main :is(.wf-section-menu,.sct-back-btn,.wf-search-toggle) .wf-ui-icon{width:19px;height:19px}
html.wf-section-mode body .main :is(.co-page-sticky,.sct-sticky-header,.page-sticky-bar) .btn-p,html.wf-section-mode body .main :is(.co-page-sticky,.sct-sticky-header,.page-sticky-bar) .btn-g{min-height:40px;padding:8px 14px!important;border-radius:11px!important}
html.wf-section-mode #page-settings{max-width:none!important}
html.wf-section-mode body #page-settings>.sct-sticky-header{border-radius:0!important;padding:14px clamp(16px,2.3vw,36px)!important;margin-inline:calc(-1 * clamp(16px,2.3vw,36px))!important}
html.wf-section-mode body #page-settings>.sct-sticky-header{top:0!important}
html.wf-section-mode body #page-quick-barcode #qblPhase1>.sct-sticky-header{position:sticky!important;top:0!important;margin-inline:calc(-1 * clamp(16px,2.3vw,36px))!important;padding:16px clamp(16px,2.3vw,36px)!important;border:0!important;border-bottom:1px solid var(--border)!important;border-radius:0!important;background:var(--card)!important;box-shadow:0 5px 18px rgba(29,45,67,.045)!important;z-index:600}
html.wf-section-mode body #page-settings .sct-sticky-header>div:first-child{padding:0!important}
html.wf-section-mode body #page-settings .sct-sticky-title h1{font-size:clamp(18px,1.7vw,24px)!important}
html .modal:not(.curr-calc-modal){border:1px solid var(--border);border-radius:18px;background:var(--card);color:var(--text);box-shadow:0 18px 48px rgba(17,30,47,.18)}
html :is(.modal,.modal-box,.wf-restore-modal) .modal-hdr{display:flex;align-items:center;gap:12px;min-height:54px;margin:-4px 0 18px;padding:0 0 14px;border-bottom:1px solid var(--border)}
html :is(.modal,.modal-box,.wf-restore-modal) .modal-title{font-size:18px;font-weight:780;line-height:1.35;color:var(--text)}
html :is(.modal,.modal-box,.wf-restore-modal) .modal-hdr .wf-ui-icon{width:21px;height:21px;color:var(--ui-accent)}
html :is(.modal,.modal-box) .modal-close{width:38px;height:38px;flex:none;border-radius:10px;background:var(--input);border:1px solid var(--border);color:var(--text2)}
@media(max-width:700px){
 html.wf-section-mode body .main>.page>:is(.co-page-sticky,.sct-sticky-header,.page-sticky-bar){box-shadow:0 3px 10px rgba(29,45,67,.04)!important}
 html.wf-section-mode body .main :is(.co-toolbar-title,.page-toolbar-title,.sct-sticky-title h1){font-size:18px!important}
 html.wf-section-mode body .main :is(.co-toolbar-row,.page-toolbar-row)>.btn{min-height:40px;padding:8px 11px!important;font-size:12px}
 html.wf-section-mode body #page-settings>.sct-sticky-header{margin-inline:-12px!important;padding:12px!important}
 html.wf-section-mode body #page-quick-barcode #qblPhase1>.sct-sticky-header{margin-inline:-12px!important;padding:12px!important}
 html :is(.modal,.modal-box) .modal-title{font-size:16px}
 html .modal-ov{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
 html .modal-ov .modal{transition:none!important}
 html:not(.wf-section-mode) .navbar{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
 html .curr-item::after{animation:none!important}
}
/* Bring nested workflow headers into the same visual system as page headers. */
html.wf-section-mode body .main .page :is(.co-page-sticky,.sct-sticky-header,.page-sticky-bar){position:sticky!important;top:0!important;background:var(--card)!important;border:0!important;border-bottom:1px solid var(--border)!important;border-radius:0 0 20px 20px!important;box-shadow:0 7px 20px rgba(29,45,67,.065)!important;z-index:600}
@media(max-width:700px){html.wf-section-mode body .main .page :is(.co-page-sticky,.sct-sticky-header,.page-sticky-bar){margin-inline:-12px!important;padding:12px!important}}
/* Raised selection crest: soft, floating above the full-width navigation rail. */
@media(max-width:1024px){
 html .bottom-nav .bnav-btn.bnav-active .bnav-icon{transform:translateY(-4px)!important}
 html .bottom-nav .bnav-btn.bnav-active .bnav-icon::before{width:39px;height:39px;border-radius:16px 16px 12px 5px;background:linear-gradient(145deg,#506a8c,#344964);transform:rotate(45deg) translateY(-8px);box-shadow:0 8px 18px rgba(35,54,80,.26)!important}
 html[data-theme="dark"] .bottom-nav .bnav-btn.bnav-active .bnav-icon::before{background:linear-gradient(145deg,#c0d3eb,#91a9c6);box-shadow:0 8px 18px rgba(0,0,0,.35)!important}
}

/* The drawer owns its close control and layers consistently over app chrome. */
html #sidebar .wf-sidebar-brand{position:relative;min-height:88px;padding-inline:44px}
html #wfSidebarClose{position:absolute;inset-inline-start:0;top:22px;width:40px;height:44px;display:grid;place-items:center;border:1px solid var(--border);border-radius:13px;background:var(--input);color:var(--text2);cursor:pointer;box-shadow:0 3px 8px rgba(29,45,67,.06)}
html #wfSidebarClose svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
html[dir="rtl"] #wfSidebarClose svg{transform:scaleX(-1)}
html #wfSidebarClose:hover{background:var(--ui-soft);color:var(--ui-accent)}
html #wfSidebarClose:focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}
@media(max-width:1024px){
 html body #sidebar{top:0!important;bottom:0!important;z-index:1200!important;padding-top:max(16px,env(safe-area-inset-top,0px))!important;border-radius:0!important;background:var(--card)!important}
 html body #sideOv{z-index:1100!important;background:rgba(19,30,46,.3);backdrop-filter:none!important}
 html.wf-mobile-menu-open .navbar #desktopSidebarToggle{transform:none!important;background:var(--input)!important;color:var(--text2)!important;border-color:var(--border)!important}
}

/* The selected destination forms a raised crest, without a surrounding ring. */
@media(max-width:1024px){
 html body #bottomNav{overflow:visible!important}
 html body #bottomNav .bnav-btn.bnav-active::before{content:"";position:absolute;top:-19px;left:50%;width:62px;height:54px;transform:translateX(-50%);border-radius:50% 50% 22% 22% / 65% 65% 25% 25%;background:linear-gradient(160deg,#506a8c,#344964);box-shadow:0 -4px 12px rgba(35,54,80,.13);pointer-events:none}
 html body #bottomNav .bnav-btn.bnav-active .bnav-icon::before{display:none!important;box-shadow:none!important}
 html body #bottomNav .bnav-btn.bnav-active .bnav-icon{transform:translateY(-12px)!important;color:#fff!important}
 html body #bottomNav .bnav-btn.bnav-active .bnav-label{position:relative;z-index:1}
 html[data-theme="dark"] body #bottomNav .bnav-btn.bnav-active::before{background:linear-gradient(160deg,#c0d3eb,#91a9c6);box-shadow:0 -4px 12px rgba(0,0,0,.2)}
 html[data-theme="dark"] body #bottomNav button.bnav-btn.bnav-active span.bnav-icon{color:#172235!important}
}
html.wf-section-mode body #mainContent .page :is(.co-page-sticky,.sct-sticky-header,.page-sticky-bar),html.wf-section-mode body #page-settings>.sct-sticky-header,html.wf-section-mode body #page-quick-barcode #qblPhase1>.sct-sticky-header{border-radius:0 0 20px 20px!important;background:var(--card)!important;border-bottom:1px solid var(--border)!important;box-shadow:0 6px 18px rgba(29,45,67,.06)!important}

@property --nav-x{syntax:'<length>';inherits:true;initial-value:0px}
@media(max-width:1024px){
 html body #bottomNav{background:transparent!important;border:0!important;box-shadow:none!important;transition:--nav-x .3s ease;isolation:isolate}
 html body #bottomNav::before{content:"";position:absolute;inset:0;z-index:0;background:var(--card);border-radius:0 0 24px 24px;mask:radial-gradient(circle 32px at var(--nav-x) 0px,transparent 98%,#000 100%);-webkit-mask:radial-gradient(circle 32px at var(--nav-x) 0px,transparent 98%,#000 100%);pointer-events:none}
 html body #bottomNav .bnav-btn.bnav-active::before{display:none!important}
 html body #bottomNav #bnavCircle{display:grid!important;place-items:center;top:-25px;width:48px;height:48px;border-radius:50%;background:var(--card)!important;border:1px solid var(--border);box-shadow:0 4px 14px rgba(25,40,62,.15)!important;transition:left .3s ease;z-index:6}
 html body #bottomNav #bnavCircle::before{display:none!important}
 html body #bottomNav #bnavCircleIcon{display:grid;place-items:center;filter:none;color:var(--text);transform:none!important;opacity:1!important}
 html body #bottomNav #bnavCircleIcon svg{width:23px;height:23px;stroke:currentColor}
 html body #bottomNav .bnav-btn.bnav-active .bnav-icon{opacity:0!important;transform:none!important}
 html body #bottomNav .bnav-btn .bnav-label{color:var(--text2)!important}
}
html body #wfSidebarClose{position:fixed;top:50%;inset-inline-start:calc(var(--side-w) - 18px);inset-inline-end:auto;transform:translateY(-50%);z-index:1250;width:36px;height:64px;border-radius:18px;background:var(--card);box-shadow:0 4px 15px rgba(25,40,62,.14)}
html body #wfSidebarClose[hidden]{display:none!important}
html #sidebar .wf-sidebar-brand{padding-inline:20px;min-height:108px}
html #sidebar #wfSidebarLogo{width:68px;height:68px;border-radius:18px;padding:6px}
@media(max-width:1024px){html body #wfSidebarClose{inset-inline-start:calc(min(300px,86vw) - 18px)}}
html .main .co-toolbar-row,html .main .page-toolbar-row{align-items:center!important}
@media(max-width:480px){
 html .main .co-toolbar-row,html .main .page-toolbar-row{flex-wrap:wrap!important;gap:8px!important}
 html .main .co-toolbar-title,html .main .page-toolbar-title{flex:1 1 120px!important}
 html .main .co-toolbar-row>.btn,html .main .page-toolbar-row>.btn{flex:1 1 auto;justify-content:center;min-height:42px}
 html #page-settings .sct-sticky-header>div:first-child{flex-wrap:wrap!important}
 html .main .sct-sticky-title{min-width:90px!important}
}
@media(prefers-reduced-motion:reduce){html body #bottomNav,html body #bottomNav #bnavCircle{transition:none!important}}

/* Balanced quote cards and the matching converter. */
html body .curr-item{background:var(--card)!important;border:1px solid var(--border)!important;border-radius:16px!important;box-shadow:0 3px 10px rgba(29,45,67,.035)!important;gap:7px 10px!important;min-height:98px}
html body .curr-item::before,html body .curr-item::after{display:none!important}
html body .curr-item .curr-flag{width:40px;height:40px;border-radius:13px;background:var(--ui-soft)!important;color:var(--ui-accent)!important}
html body .curr-item[onclick*="usd-"] .curr-flag{background:#eaf0fa!important;color:#385b91!important}
html body .curr-item[onclick*="eur-"] .curr-flag{background:#eceef7!important;color:#535f8c!important}
html body .curr-item[onclick*="try-"] .curr-flag{background:#e9f1f2!important;color:#426c75!important}
html[data-theme="dark"] body .curr-item .curr-flag{background:#29394c!important;color:#c0d3e9!important}
html body .curr-item .curr-rate{color:var(--text)!important;font-size:clamp(15px,1.6vw,21px)!important;letter-spacing:.01em;font-variant-numeric:tabular-nums}
html body .curr-item .curr-label{color:var(--muted)!important;direction:ltr;text-align:start;line-height:1.5}
html body .curr-item .wf-market-trend{min-width:0;padding:3px 7px!important;height:auto!important;min-height:24px;font-size:10px!important}
html body #currCalcModal .curr-calc-modal{border-radius:24px!important;box-shadow:0 20px 60px rgba(20,35,55,.2)!important}
html body #currCalcModal .curr-calc-header{padding:20px!important;align-items:center}
html body #currCalcModal .curr-calc-result-section{background:var(--ui-soft)!important;border-color:var(--border)!important}
html body #currCalcModal .curr-calc-input,html body #currCalcModal .curr-calc-result-val{font-size:clamp(25px,6vw,34px)!important;font-variant-numeric:tabular-nums}
html body #currCalcModal .curr-calc-quick-btn{min-height:44px;border-radius:12px!important}
@media(max-width:380px){html body .curr-item .curr-flag{width:32px;height:32px}html body .curr-item{padding:9px!important;column-gap:6px!important}}

/* Settings: compact navigation beside one consistent content surface. */
html body #page-settings .wf-settings-workspace{display:grid!important;grid-template-columns:200px minmax(0,1fr);gap:20px;align-items:start;max-width:1240px!important;margin:24px auto!important}
html body #page-settings .wf-settings-workspace>.tabs{position:sticky;top:92px;display:flex!important;flex-direction:column;gap:6px!important;padding:8px!important;margin:0!important;border:1px solid var(--border)!important;border-radius:16px!important;background:var(--card)!important;overflow:visible!important}
html body #page-settings .tabs .tab-btn{width:100%;min-height:48px!important;justify-content:flex-start!important;text-align:start;white-space:normal!important;padding:11px 12px!important;border-radius:11px!important;border:1px solid transparent!important;font-size:13px!important;color:var(--text2)!important;background:transparent!important;box-shadow:none!important}
html body #page-settings .tabs .tab-btn.active{background:var(--ui-soft)!important;border-color:var(--border)!important;color:var(--text)!important;font-weight:800}
html body #page-settings .tabs .tab-btn .wf-ui-icon{width:20px;height:20px;flex-shrink:0;color:var(--ui-accent)}
html body #page-settings .wf-settings-content{min-width:0}
html body #page-settings .wf-settings-content>[id^="stab-"]{margin:0!important;padding:24px!important;border-radius:18px!important;background:var(--card)!important;border:1px solid var(--border)!important;box-shadow:0 5px 18px rgba(29,45,67,.035)!important}
html body #page-settings .wf-settings-panel-title{display:flex;align-items:center;gap:10px;font-size:19px;line-height:1.4;margin:0 0 22px;padding-bottom:16px;border-bottom:1px solid var(--border);color:var(--text)}
html body #page-settings [id^="stab-"]>.card{padding:18px!important;background:var(--input)!important;border-radius:14px!important;margin-bottom:16px}
html body #page-settings [id^="stab-"]>.card:last-child{margin-bottom:0}
html body #page-settings #stab-company>div:first-of-type{padding:18px;background:var(--input);border:1px solid var(--border);border-radius:14px}
html body #page-settings #stab-company>div:first-of-type>div:last-child{flex-wrap:wrap}
html body #page-settings .fgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px!important}
html body #page-settings .fg{min-width:0}html body #page-settings input.fc{min-width:0;max-width:100%}
html body #page-settings .wf-data-actions,html body #page-settings .wf3-drive-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
html body #page-settings .wf-data-actions .btn,html body #page-settings .wf3-drive-actions .btn{white-space:normal}
@media(max-width:800px){
 html body #page-settings .wf-settings-workspace{grid-template-columns:1fr;gap:14px;margin:16px auto!important}
 html body #page-settings .wf-settings-workspace>.tabs{position:static;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px!important;padding:6px!important}
 html body #page-settings .tabs .tab-btn{flex-direction:column;justify-content:center!important;text-align:center;gap:5px!important;font-size:11px!important;padding:8px 4px!important;min-height:66px!important}
 html body #page-settings .wf-settings-content>[id^="stab-"]{padding:16px!important}
 html body #page-settings .wf-settings-panel-title{font-size:17px;margin-bottom:16px}
 html body #page-settings .fgrid{grid-template-columns:1fr!important;gap:16px!important}
 html body #page-settings [id^="stab-"]>.card{padding:14px!important}
 html body #page-settings .wf-language-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* Rounded drawer with a recessed, elongated edge handle. */
html body #sidebar{border-radius:26px!important;padding-inline-end:30px!important;mask:radial-gradient(ellipse 27px 68px at 0 50%,transparent 97%,#000 100%);-webkit-mask:radial-gradient(ellipse 27px 68px at 0 50%,transparent 97%,#000 100%)}
html[dir="ltr"] body #sidebar{mask:radial-gradient(ellipse 27px 68px at 100% 50%,transparent 97%,#000 100%);-webkit-mask:radial-gradient(ellipse 27px 68px at 100% 50%,transparent 97%,#000 100%)}
html body #wfSidebarClose{height:3cm;max-height:28dvh;width:36px;border-radius:22px;border:1px solid var(--border);background:var(--card);box-shadow:0 4px 12px rgba(25,40,62,.12);color:var(--ui-accent)}
html body #wfSidebarClose::before,html body #wfSidebarClose::after{content:"";position:absolute;left:50%;width:3px;height:17px;transform:translateX(-50%);border-radius:4px;background:var(--border)}
html body #wfSidebarClose::before{top:13px}html body #wfSidebarClose::after{bottom:13px}
html body #wfSidebarClose:hover{background:var(--ui-soft);border-color:var(--ui-accent)}
@media(min-width:1025px){html:not(.wf-section-mode) body #wfSidebarClose{top:calc(50% + var(--nav-h)/2)}}

/* Reference dock: navy floating button and a smoothly curved white surface. */
@media(max-width:1024px){
 html body #bottomNav{padding-inline:0!important;gap:0!important}
 html body #bottomNav::before{border-radius:0!important;mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10000' height='160' viewBox='0 0 10000 160'%3E%3Cpath fill='white' d='M0 0H4945C4970 0 4969 33 5000 33S5030 0 5055 0H10000V160H0Z'/%3E%3C/svg%3E");mask-size:10000px 160px;mask-position:calc(var(--nav-x) - 5000px) 0;mask-repeat:no-repeat;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10000' height='160' viewBox='0 0 10000 160'%3E%3Cpath fill='white' d='M0 0H4945C4970 0 4969 33 5000 33S5030 0 5055 0H10000V160H0Z'/%3E%3C/svg%3E");-webkit-mask-size:10000px 160px;-webkit-mask-position:calc(var(--nav-x) - 5000px) 0;-webkit-mask-repeat:no-repeat}
 html body #bottomNav #bnavCircle{top:-23px;background:#09213e!important;border:1px solid #193552!important;box-shadow:0 5px 14px rgba(9,33,62,.2)!important}
 html body #bottomNav #bnavCircleIcon,html body #bottomNav #bnavCircleIcon svg{color:#fff!important}
 html body #bottomNav .bnav-btn{padding-top:10px!important;gap:5px!important}
 html body #bottomNav .bnav-icon{height:30px!important;width:32px!important}
 html body #bottomNav .bnav-label{font-size:10px!important;font-weight:600!important}
}

/* Shared primary identity. Preserve semantic success/error colors and print layouts. */
@media screen {
 html, html:not([data-theme="dark"]), html[data-theme="dark"] {
  --brand-primary:#3f7c94; --ui-accent:var(--brand-primary);
  --brand-accent:var(--brand-primary); --gold:var(--brand-primary);
  --gold2:#3f7c94; --ui-soft:#fafcfd; --gold-light:var(--ui-soft);
 }
 html[data-theme="dark"] { --ui-accent:#a5cddd; --ui-soft:#203d49; --gold-light:var(--ui-soft); --gold2:#a5cddd; }
 html body #sidebar .nav-item.active { background:var(--ui-soft)!important; border-color:var(--brand-primary)!important; }
 html body #sidebar .nav-item.active .nav-icon,
 html body #bottomNav #bnavCircle {
  background:var(--brand-primary)!important; border-color:var(--brand-primary)!important; color:#fff!important;
  box-shadow:0 4px 12px rgba(63,124,148,.18)!important;
 }
 html body #bottomNav .bnav-btn.bnav-active .bnav-label { color:var(--gold2)!important; }
 html body #page-settings .tabs .tab-btn.active,
 html body #page-settings .wf-language-card[aria-pressed="true"] {
  background:var(--ui-soft)!important; border-color:var(--brand-primary)!important;
 }
 html body #page-settings .wf-language-card[aria-pressed="true"]::after,
 html body .btn-p, html body .main :is(.btn-p,.btn-g) {
  background:var(--brand-primary)!important; border-color:var(--brand-primary)!important; color:#fff!important;
 }
 html body .wf-catalog-row em { background:var(--brand-primary); }
 html body .wf-insight-head .wf-ui-icon { color:var(--ui-accent); }
 html body .wf-ai-panel { background:linear-gradient(108deg,#2e5d70,var(--brand-primary)); }
 html body .wf-ai-action { color:#3f7c94!important; }
 html body :is(input.fc,select.fc,textarea.fc):focus-visible {
  outline:2px solid var(--ui-accent); outline-offset:2px;
 }
}

/* Fit the drawer to the available height; short screens retain native scrolling. */
@media screen {
 html body #sidebar {
  padding-top:max(8px,env(safe-area-inset-top,0px))!important;
  padding-bottom:max(12px,env(safe-area-inset-bottom,0px))!important;
  overflow-y:auto!important; overflow-x:hidden; scrollbar-width:none;
  scroll-padding-block:12px; -ms-overflow-style:none;
 }
 html body #sidebar::-webkit-scrollbar { display:none; width:0; height:0; }
 html body #sidebar .wf-sidebar-brand {
  height:clamp(64px,10dvh,82px); min-height:64px;
  margin:0 4px 6px; padding-block:4px;
 }
 html body #sidebar #wfSidebarLogo { width:56px; height:56px; padding:5px; border-radius:15px; }
 html body #sidebar .side-sec { margin:8px 0 3px!important; padding:0 12px 4px!important; }
 html body #sidebar .nav-item {
  min-height:clamp(44px,6.5dvh,50px)!important; margin-bottom:3px!important;
  padding-block:5px!important; scroll-margin-block:12px;
 }
 html body #sidebar .nav-divider { margin:8px 12px 3px!important; }
}

/* Only the two corners touching the screen edge are square (mirrored for LTR). */
@media screen {
 html body #sidebar { border-start-start-radius:0!important; border-end-start-radius:0!important; }
}

@media(prefers-reduced-motion:reduce){html:not(.wf-section-mode) .navbar::after{transition:none!important}}

/* Clear and unified active bottom navigation in light and dark themes. */
@media screen and (max-width:1024px) {
 html body #bottomNav {--wf-nav-active:var(--brand-primary);}
 html body #bottomNav #bnavCircle {
   background:var(--wf-nav-active)!important;border-color:transparent!important;
   box-shadow:0 5px 16px color-mix(in srgb,var(--wf-nav-active) 32%,transparent)!important;
 }
 html body #bottomNav #bnavCircleIcon,
 html body #bottomNav #bnavCircleIcon svg {color:#fff!important;stroke:currentColor;}
 html body #bottomNav .bnav-btn.bnav-active {background:color-mix(in srgb,var(--wf-nav-active) 8%,transparent)!important;border-radius:14px!important;}
 html body #bottomNav .bnav-btn.bnav-active .bnav-label {
   color:var(--wf-nav-active)!important;font-weight:850!important;
 }
 html body #bottomNav .bnav-btn:not(.bnav-active) .bnav-label {color:var(--text2)!important;}
 html body #bottomNav .bnav-btn:focus-visible {outline:2px solid var(--wf-nav-active)!important;outline-offset:-2px;}
 html body #bottomNav .bnav-btn {min-width:0;}
 html body #bottomNav #bnavCircleIcon svg {width:23px;height:23px;}
}

/* Bottom dock: soft elevation without the white double-ring halo in the reference. */
@media screen and (max-width:1024px) {
 /* Shadow only the shaped navigation surface, not all its contents.
    This avoids a second halo around the floating circular icon. */
 html body #bottomNav {
   filter:none!important;
 }
 html body #bottomNav::before {
   filter:drop-shadow(0 -5px 12px rgba(16,35,52,.18))!important;
 }
 html[data-theme="dark"] body #bottomNav::before {
   filter:drop-shadow(0 -5px 13px rgba(0,0,0,.38))!important;
 }
 html body #bottomNav #bnavCircle {
   border:0!important;
   outline:0!important;
   box-shadow:0 5px 11px rgba(16,35,52,.16)!important;
 }
 html body #bottomNav #bnavCircle::before,
 html body #bottomNav #bnavCircle::after {
   content:none!important;
   display:none!important;
 }
 html[data-theme="dark"] body #bottomNav #bnavCircle {
   box-shadow:0 5px 12px rgba(0,0,0,.30)!important;
 }
 html body #bottomNav #bnavCircle:focus-visible {
   outline:2px solid var(--wf-nav-active,var(--brand-primary))!important;
   outline-offset:3px!important;
 }
}
