/* Pearl & Mint: approved shared interface. All protected forms retain their DOM and logic. */
:root,html[data-unified-theme=light]{color-scheme:light;--u-bg:#f7f9f8;--u-surface:#fff;--u-sidebar:#f1f8f5;--u-text:#283c3b;--u-muted:#596c69;--u-line:#dfe9e5;--u-active:#ddf1e9;--u-accent:#28645d;--u-soft:#f0f7f4;--u-warning:#faeedc;--u-warning-text:#805c2b;--u-danger:#a63b3b;--u-danger-bg:#fbe9e8;--bg:var(--u-bg);--surface:var(--u-surface);--ink:var(--u-text);--muted:var(--u-muted);--line:var(--u-line);--accent:var(--u-accent);--blue:var(--u-soft);--green:var(--u-active);--red:var(--u-danger-bg);--ring-track:var(--u-line)}
html[data-unified-theme=dark]{color-scheme:dark;--u-bg:#14211f;--u-surface:#1e2d2a;--u-sidebar:#192825;--u-text:#e6f0ec;--u-muted:#afc4bc;--u-line:#364a43;--u-active:#2a4940;--u-accent:#acd7c7;--u-soft:#253b34;--u-warning:#483b28;--u-warning-text:#e5c391;--u-danger:#f0afaa;--u-danger-bg:#432d2d}
html,body{background:var(--u-bg)!important;color:var(--u-text)!important;font-family:var(--u-font)}
body{margin:0}*{box-sizing:border-box}[hidden]{display:none!important}
html body :is(h1,h2,h3,h4,strong,label,summary){color:var(--u-text)}
html body :is(p,small,.eyebrow,.side-label,.status,.notice,.hint,.muted){color:var(--u-muted)}
html body :is(a,.detail-value,.detail-link){color:var(--u-accent)}
html body .app{grid-template-columns:216px minmax(0,1fr)}
html body aside,html body .unified-sidebar{background:var(--u-sidebar);border-right:1px solid var(--u-line)}
html body .topbar{background:var(--u-surface);border-bottom:1px solid var(--u-line);padding:0 28px}
html body .content{padding:28px;min-width:0}
html body .page-head h1,html body .heading h1{font-size:28px;letter-spacing:-.035em}
html body .nav{display:flex;align-items:center;gap:10px;background:transparent;color:var(--u-muted);text-decoration:none;padding:12px;border-radius:9px;border:0;font-weight:500}
html body .nav span{padding-left:0}
html body .nav:is(.active,[aria-current=page]){background:var(--u-active)!important;color:var(--u-accent)!important;box-shadow:none!important;border-left:0!important;font-weight:600}
html body .nav:hover{background:var(--u-soft);color:var(--u-accent)}
html body .scope-badge,html body .marketplace-option,html body .account-option{background:var(--u-soft)!important;color:var(--u-text)!important}
html body .scope-badge[aria-pressed=true],html body .marketplace-option[aria-pressed=true],html body .account-option[aria-pressed=true]{background:var(--u-active)!important;color:var(--u-accent)!important}
html body .side-label{font-size:11px;font-weight:600;letter-spacing:.1em;margin:26px 12px 12px}
html body .logo-wordmark{color:var(--u-accent)}
html body :is(.advertising-state,.ad-token-help,.connection-rename-form,.store-avatar,.manager-scope-item,.manager-invite-link,.super-metric,.super-company,.wb-finance-bridge){background:var(--u-soft)!important;border-color:var(--u-line)!important;color:var(--u-text)!important}
html body .connection-card-steps b{background:var(--u-active)!important;color:var(--u-accent)!important}
html body :is(.super-detail-row,.connection-card){background:var(--u-surface)!important;border-color:var(--u-line)!important;color:var(--u-text)!important}
html body .super-company-summary:hover{background:var(--u-active)!important}
html body :is(.panel,.workspace-toolbar,.product-table-panel,.table-panel,.card,.auth-card,.account-menu-panel,.filter-popover,.product-scope,.product-finance-metric,.product-finance-chart,.product-finance-method,.product-unit-table-wrap){background:var(--u-surface)!important;border-color:var(--u-line)!important;color:var(--u-text)!important;box-shadow:0 3px 15px #294d3e04}
html body :is(input,select,textarea){background:var(--u-surface)!important;color:var(--u-text)!important;border-color:var(--u-line)!important}
html body :is(form,label,fieldset){min-width:0}
html body :is(input,select,textarea){min-width:0;max-width:100%}
html body :is(input,textarea)::placeholder{color:var(--u-muted)}
html body button:not(.nav):not(.quiet):not(.scope-badge):not(.filter-trigger):not(.column-filter):not(.detail-value):not(.detail-link){background:var(--u-accent);color:var(--u-surface);border-color:transparent;font-weight:500}
html[data-unified-theme=dark] body button:not(.nav):not(.quiet):not(.scope-badge):not(.detail-value):not(.detail-link){color:#18372d}
html body :is(button.secondary,.button.secondary,button.quiet){background:var(--u-soft)!important;color:var(--u-text)!important;border-color:var(--u-line)!important}
html body :is(.product-workspace-tabs,.unified-tabs){display:flex;gap:7px;flex-wrap:wrap;padding:7px;background:var(--u-surface);border:1px solid var(--u-line);border-radius:10px;margin:0 0 18px}
html body :is(.product-workspace-tabs button,.finance-tabs button,.unified-tabs a){background:transparent!important;color:var(--u-muted)!important;text-decoration:none;border:0!important;box-shadow:none!important;border-radius:7px;padding:9px 12px;font-weight:500;font-size:13px;min-height:36px}
html body :is(.product-workspace-tabs button.active,.finance-tabs button[aria-selected=true],.unified-tabs a[aria-current=page]){background:var(--u-active)!important;color:var(--u-accent)!important}
html body :is(.marketplace-option,.scope-badge,.scope-option,.product-status-option){background:var(--u-soft);color:var(--u-text);border-color:var(--u-line)}
html body table{background:var(--u-surface);color:var(--u-text)}
html body :is(th,td){border-color:var(--u-line)!important}
html body thead th,html body .product-filter-head td{background:var(--u-soft)!important;color:var(--u-muted)!important}
html body :is(tbody th,tbody td){background:var(--u-surface);color:var(--u-text)}
html body :is(.group th,.group td,.service-section th,.service-section td){background:var(--u-soft)!important}
html body .group button{background:transparent!important;color:var(--u-text)!important}
html body :is(.profit th,.profit td){background:var(--u-active)!important}
html body :is(.finance-mismatch,.error){color:var(--u-danger)!important}
html body dialog{background:var(--u-surface);color:var(--u-text);border:1px solid var(--u-line)}
html body :is(.notice,.coverage,.caution){background:var(--u-warning);color:var(--u-warning-text);border-color:var(--u-line);border-radius:9px;padding:12px}
html body :is(a,button,input,select,textarea,summary):focus-visible{outline:2px solid var(--u-accent)!important;outline-offset:3px}
html body button:disabled{cursor:not-allowed}
.copy-label{display:block;background:var(--u-soft);border-bottom:1px solid var(--u-line);color:var(--u-muted);padding:7px 20px;font-size:12px;text-align:center}
.unified-shell{display:grid;grid-template-columns:216px minmax(0,1fr);min-height:100vh}
.unified-sidebar{padding:25px 14px;display:flex;flex-direction:column;gap:4px}
.unified-sidebar nav{display:grid;gap:6px}.unified-sidebar .logo{display:flex;align-items:center;color:var(--u-accent);margin-bottom:6px}.unified-sidebar .logo img{width:74px;height:74px;object-fit:contain}
.unified-main{min-width:0}.unified-main>.unified-topbar{min-height:67px;display:flex;justify-content:space-between;align-items:center;gap:15px;padding:16px 28px;background:var(--u-surface);border-bottom:1px solid var(--u-line)}
.unified-topbar>span{font-size:12px;color:var(--u-muted)}
.unified-main>main{max-width:none;margin:0;padding:28px;min-width:0}
.unified-main>main>a[href="/"]:first-child{display:none}
.unified-shell~header.top{display:none}
.unified-sidebar .side-bottom{font-size:12px;color:var(--u-muted);margin-top:auto;padding-top:20px}
html body .finance-tabs{flex-wrap:wrap;overflow:visible}
html body .unified-main .cards{gap:14px}
html body .unified-main .card{padding:17px;border-radius:11px}
html body .unified-main :is(.table-scroll,.table-wrap){max-width:100%;overflow:auto}
html body .unified-main .ozon-documents-page{max-width:none}
@media(max-width:900px){html body .app,.unified-shell{grid-template-columns:172px minmax(0,1fr)}html body .content,.unified-main>main{padding:20px}.unified-sidebar{padding:20px 10px}.unified-sidebar .logo img{width:50px;height:50px}}
@media(max-width:620px){html body .app,.unified-shell{display:block}html body aside,.unified-sidebar{position:static;width:100%;min-height:0;border-right:0;border-bottom:1px solid var(--u-line);padding:12px}.unified-sidebar nav{display:flex;flex-wrap:wrap}.unified-sidebar .side-label{margin:12px 8px 6px}.unified-sidebar .side-bottom{display:none}.unified-main>.unified-topbar{padding:14px 16px}.unified-main>main,html body .content{padding:16px}html body .nav{padding:9px;font-size:13px}html body .topbar{padding:12px 16px;height:auto;min-height:58px;gap:8px}html body .user-tools{gap:8px;flex-wrap:wrap}html body .copy-label{font-size:11px}.unified-topbar>span{overflow-wrap:anywhere}.unified-main>main :is(.tools,.filters){flex-wrap:wrap}.unified-main>main label{min-width:0;max-width:100%}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Reference wordmark and Lucide Blocks (ISC), shared by every local page. */
html body .logo{display:flex;flex-direction:row;align-items:center;gap:10px;padding:0 10px;font:700 23px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-1px;color:var(--u-accent)}
html body .logo-wordmark{font:inherit;color:inherit;white-space:nowrap}
html body .reference-logo-symbol{display:block;width:18px;height:18px;flex:none;color:var(--u-accent)}
html body .sidebar-collapsed .logo{padding:0}
@media(max-width:700px){html body .logo{font-size:21px}}

/* Typography, outline icons and spacing from unitka-unified-menu.html. */
:root{--u-font:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
html,html body{font:14px/1.5 var(--u-font)}
html body :is(button,input,select,textarea){font-family:var(--u-font);line-height:1.5}
html body :is(h1,.page-head h1,.heading h1,.page-head.connection-page-head h1){font:600 25px/1.2 var(--u-font);letter-spacing:-.6px;margin:0 0 7px}
html body :is(h2,h3,h4,strong,b,summary){font-weight:600}
html body h2{font-size:17px;letter-spacing:-.2px;line-height:1.35}
html body :is(.section-head h2,.product-table-head h2,.table-title h2){font-size:14px;letter-spacing:0}
html body :is(.page-head p,.heading p){font-size:13px}
html body :is(button,label,summary){letter-spacing:normal}
html body :is(.topbar-workspace-title,.unified-topbar>strong){font-size:12px;font-weight:500}
html body :is(.topbar,.unified-topbar){min-height:70px;padding:16px 26px}
html body .content,.unified-main>main{padding:27px 26px 30px}
html body .app,.unified-shell{grid-template-columns:186px minmax(0,1fr)}
html body .app>aside,html body .unified-sidebar{padding:26px 14px;gap:0}
html body :is(.app>aside>nav,.unified-sidebar nav,.super-section nav){display:grid;gap:5px;margin:0}
html body .sidebar-head{margin-bottom:24px;gap:0}
html body .sidebar-head .logo{padding:0 0 0 10px}
html body .sidebar-toggle{min-width:24px;min-height:24px;width:24px;height:24px;border:0;background:transparent!important}
html body .side-label{font-size:10px;font-weight:600;letter-spacing:1.4px;text-transform:uppercase;padding:0 12px;margin:24px 0 9px;line-height:1.5}
html body .sidebar-head+.side-label,.unified-sidebar>.logo+.side-label{margin-top:0}
html body .unified-sidebar>.logo{margin:0 0 24px}
html body .super-section{margin:24px 0 0;padding:0;border:0}
html body .super-section .side-label{margin-top:0}
html body .nav{display:flex;align-items:center;justify-content:flex-start;gap:12px;padding:11px 12px;min-height:43px;font:400 14px/1.5 var(--u-font);text-align:left;border-radius:9px;width:100%;min-width:0}
html body .nav>span{padding:0;white-space:nowrap}
html body .nav:is(.active,[aria-current=page]){font-weight:600;color:var(--u-text)!important}
html body .u-icon{display:block;width:18px;height:18px;flex:0 0 18px;overflow:visible;pointer-events:none}
html body .account-menu-icon{font-size:0}
html body :is(.product-workspace-tabs,.unified-tabs,.finance-tabs){display:flex;gap:4px 17px;flex-wrap:wrap;overflow:visible;padding:0;margin:0 0 20px;background:transparent;border:0;border-bottom:1px solid var(--u-line);border-radius:0}
html body :is(.product-workspace-tabs button,.finance-tabs button,.unified-tabs a){font:400 12px/1.5 var(--u-font)!important;padding:10px 0 12px!important;min-height:42px;background:transparent!important;border-radius:0!important;border:0!important;border-bottom:2px solid transparent!important}
html body :is(.product-workspace-tabs button.active,.finance-tabs button[aria-selected=true],.unified-tabs a[aria-current=page]){background:transparent!important;border-bottom-color:var(--u-accent)!important;color:var(--u-accent)!important;font-weight:600!important}
html body table,html body table :is(th,td){font-family:var(--u-font);font-size:12px;line-height:1.5;font-variant-numeric:tabular-nums}
html body th{font-weight:500;text-transform:none;letter-spacing:0}
html body td{font-weight:400}
html body .group :is(th,td,button),html body .service-section th button{font-weight:600}
html body .card strong{font-size:22px;font-weight:500}
html body .side-bottom{border-top:1px solid var(--u-line);padding:16px 12px 0;font-size:12px;margin:auto 0 0;display:grid;gap:7px}
html body .side-brand{display:flex;align-items:center;gap:7px;color:var(--u-text);line-height:1.4}
html body .side-brand strong{font-size:13px;font-weight:600}
html body .side-brand-badge{padding:2px 5px;border:1px solid var(--u-line);border-radius:5px;background:var(--u-soft);color:var(--u-accent);font-size:9px;font-weight:600;letter-spacing:.8px;line-height:1.3}
html body .side-bottom small{margin:0;font-size:10px;font-weight:400;line-height:1.6;color:var(--u-muted)}
html body .app.sidebar-collapsed{grid-template-columns:64px minmax(0,1fr)}
html body .sidebar-collapsed aside{padding:26px 8px}
html body .sidebar-collapsed .sidebar-head{flex-direction:column;gap:10px}
html body .sidebar-collapsed .logo{padding:0}
html body .sidebar-collapsed .nav{justify-content:center;padding:11px 0}
html body .sidebar-collapsed .nav>span{display:none!important}
@media(max-width:700px){html body .app,.unified-shell{grid-template-columns:148px minmax(0,1fr)}html body .app>aside,html body .unified-sidebar{padding:22px 8px}html body .nav{gap:8px;padding:10px 8px;font-size:12px}html body .content,.unified-main>main{padding:22px 16px}html body .sidebar-head .logo{padding-left:0}}
@media(max-width:620px){html body .app,.unified-shell{display:block}html body .app>aside,html body .unified-sidebar{padding:16px}html body :is(.app>aside>nav,.unified-sidebar nav,.super-section nav){display:flex;flex-wrap:wrap;gap:3px}html body .nav{width:auto;flex:0 0 auto;padding:8px;min-height:34px}html body .side-label{display:none}html body .sidebar-head{margin-bottom:12px}html body .unified-sidebar>.logo{margin-bottom:12px}html body .super-section{margin:8px 0 0}html body .sidebar-collapsed .sidebar-head{flex-direction:row}html body .sidebar-collapsed .nav>span{display:inline!important}html body .side-bottom{display:none}html body :is(.topbar,.unified-topbar){min-height:52px;padding:14px 16px}}

/* Optional Matrix appearance. Classic declarations above remain unchanged. */
html[data-appearance="matrix"]{--u-font:"SFMono-Regular",Menlo,Consolas,"Liberation Mono",monospace}
html[data-appearance="matrix"][data-unified-theme="dark"]{--u-bg:#050a06;--u-surface:#0d150e;--u-sidebar:#0d150e;--u-text:#a9f5bb;--u-muted:#739d7c;--u-line:#1e3021;--u-active:#192c1d;--u-accent:#a9f5bb;--u-soft:#141f15;--u-warning:#30251b;--u-warning-text:#ffbd83;--u-danger:#ffb3b3;--u-danger-bg:#321b20}
html[data-appearance="matrix"][data-unified-theme="light"]{--u-bg:#f3f7f1;--u-surface:#fcfefb;--u-sidebar:#f3f7f1;--u-text:#1e3826;--u-muted:#536c58;--u-line:#cadbc9;--u-active:#d9edda;--u-accent:#146d32;--u-soft:#eaf1e7;--u-warning:#fff0dc;--u-warning-text:#92501a;--u-danger:#a13030;--u-danger-bg:#ffe9e9}
html[data-appearance="matrix"] body :is(button,input,select,textarea){font-family:var(--u-font)!important}
html[data-appearance="matrix"] body :is(.workspace-toolbar,.product-workspace-tabs,.scope-toolbar,.account-switcher,.marketplace-switcher){background:var(--u-surface)!important;color:var(--u-text)!important}
html body .u-preferences{display:grid;gap:12px;padding-bottom:14px;margin-bottom:12px;border-bottom:1px solid var(--u-line);font:13px/1.5 var(--u-font);text-align:left}
html body .u-preferences label{display:grid;gap:6px;margin:0}
html body .u-preferences select{width:100%;padding:8px;border:1px solid var(--u-line);border-radius:6px}
html body .u-preferences .u-animation-label{display:flex;gap:8px;align-items:center}
html body .u-preferences input[type=checkbox]{width:17px;height:17px;min-height:0;margin:0;accent-color:var(--u-accent)}
html body .u-preferences small{font-size:11px}
html body .u-password>summary{cursor:pointer;padding:8px 0;font-weight:600}
html body .account-menu-panel{max-height:calc(100vh - 100px);overflow:auto;width:320px;max-width:calc(100vw - 28px);z-index:100;background:var(--u-surface);color:var(--u-text)}
html body .unified-topbar .account-menu{position:relative;margin-left:auto;font:13px var(--u-font)}
html body .unified-topbar .account-menu>summary{cursor:pointer;list-style:none}
html body .unified-topbar .account-menu-panel{position:absolute;right:0;top:calc(100% + 12px);border:1px solid var(--u-line);border-radius:9px;padding:16px;box-shadow:0 12px 40px #0003}
html body .u-matrix-rain{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden;user-select:none;contain:strict;opacity:.24}
html[data-unified-theme=light] body .u-matrix-rain{opacity:.13}
html[data-appearance=matrix] body :is(.app,.unified-shell){position:relative;z-index:1;background:transparent}
html[data-appearance=matrix] body :is(.content,.unified-main){background:transparent}
html body .u-matrix-rain span{position:absolute;top:0;color:var(--u-accent);font:13px/22px "SFMono-Regular",Menlo,monospace;white-space:pre;animation:u-matrix-fall linear infinite;text-shadow:0 0 7px currentColor}
html body .u-matrix-rain i{display:block;font-style:normal;height:22px;transform:scale(var(--zoom,1));filter:brightness(var(--glow,1));transition:transform .22s ease-out,filter .3s ease-out}
@keyframes u-matrix-fall{from{transform:translateY(-110%)}to{transform:translateY(110vh)}}
@media(prefers-reduced-motion:reduce){html body .u-matrix-rain{display:none}}
/* Explicit overrides for the original pilot's dark-mode fixed colours. */
html[data-appearance=matrix][data-theme] body :is(aside,.topbar,.unified-topbar,.product-scope-bar,.product-account-bar){background:var(--u-surface)!important;border-color:var(--u-line)!important}
html[data-appearance=matrix][data-theme] body a.product-link{color:var(--u-accent)!important}
html[data-appearance=matrix][data-theme] body :is(.marketplace-option,.account-option){background:var(--u-soft)!important;color:var(--u-text)!important;border-color:var(--u-line)!important}
html[data-appearance=matrix][data-theme] body :is(.marketplace-option,.account-option)[aria-pressed=true]{background:var(--u-active)!important;border-color:var(--u-accent)!important}
html body .unified-topbar>#theme-toggle{margin-left:auto}
html body .unified-topbar>.account-menu{margin-left:12px}

/* Combined marketplace and account toolbar. */

#workspace-toolbar .product-scope-bar {align-items:center;justify-content:flex-start;gap:18px;padding:12px 16px;margin-bottom:16px;flex-wrap:wrap}
#workspace-toolbar .product-scope-bar .marketplace-tabs {display:flex;align-items:center;gap:7px;flex-shrink:0}
#workspace-toolbar .product-scope-bar .product-account-bar {display:flex;flex-direction:row;align-items:center;gap:12px;position:relative;flex:1 1 auto;min-width:0;margin:0;padding:0 0 0 24px;border:0;border-radius:0;background:transparent}
#workspace-toolbar .product-scope-bar .product-account-bar::before {content:"";position:absolute;left:0;top:4px;bottom:4px;width:1px;background:linear-gradient(transparent,var(--u-line,#cbd9d7) 20%,var(--u-line,#cbd9d7) 80%,transparent)}
#workspace-toolbar .product-scope-bar .product-account-bar::after {content:"";position:absolute;left:-3px;top:calc(50% - 3px);width:7px;height:7px;transform:rotate(45deg);border:1px solid var(--u-line,#cbd9d7);background:var(--u-soft,#edf5f3)}
#workspace-toolbar .product-scope-bar .marketplace-icon-button,#workspace-toolbar .product-scope-bar .product-account-toggle {box-sizing:border-box;height:42px;min-height:42px;min-width:42px;border-radius:11px;padding:4px;flex-shrink:0}
#workspace-toolbar .product-scope-bar .product-account-toggle[data-account=""] {padding:0 12px}
#workspace-toolbar .product-scope-bar .store-avatar,#workspace-toolbar .product-scope-bar .store-avatar-image {width:32px;height:32px}
#workspace-toolbar .product-scope-bar .product-account-switcher {display:flex;align-items:center;gap:7px;flex-wrap:wrap;width:auto;max-width:100%;padding:0;overflow:visible}
#workspace-toolbar .product-scope-actions {margin-left:auto;align-items:center;width:auto;gap:8px}
#workspace-toolbar .product-scope-actions button:not([hidden]) {height:42px;min-height:42px;box-sizing:border-box}
#workspace-toolbar .marketplace-select-label {white-space:nowrap}
@media(max-width:1100px){#workspace-toolbar .product-scope-bar .product-account-bar{flex-basis:calc(100% - 280px)}#workspace-toolbar .product-scope-actions{margin-left:auto}}
@media(max-width:650px){#workspace-toolbar .product-scope-bar{gap:12px}#workspace-toolbar .product-scope-bar .product-account-bar{flex-basis:100%;padding:12px 0 0;border-top:1px solid var(--u-line,#cbd9d7)}#workspace-toolbar .product-scope-bar .product-account-bar::before,#workspace-toolbar .product-scope-bar .product-account-bar::after{display:none}#workspace-toolbar .product-scope-bar .product-account-switcher{flex:1;flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px}#workspace-toolbar .product-scope-actions{flex-wrap:wrap}}

#workspace-toolbar .product-scope-bar .product-account-toggle:not([data-account=""]) {width:42px;max-width:42px}

#workspace-toolbar .product-scope-bar .marketplace-icon-button {width:42px;max-width:42px}

/* Matrix separator */
#workspace-toolbar .product-scope-bar .product-account-bar {padding-left:30px}
#workspace-toolbar .product-scope-bar .product-account-bar::before {content:"1\A 0\A 1";white-space:pre;left:0;top:0;bottom:auto;width:14px;height:42px;display:flex;align-items:center;justify-content:center;text-align:center;font:600 11px/13px ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:1px;color:#34826a;background:linear-gradient(180deg,transparent,rgba(44,151,104,.10),transparent);text-shadow:0 0 6px rgba(40,184,112,.25);border:0;border-radius:3px}
#workspace-toolbar .product-scope-bar .product-account-bar::after {display:none}
html[data-theme="dark"] #workspace-toolbar .product-scope-bar .product-account-bar::before {color:#66e59c;text-shadow:0 0 7px rgba(73,231,137,.65);background:linear-gradient(180deg,transparent,rgba(44,151,104,.15),transparent)}
@media(max-width:650px){#workspace-toolbar .product-scope-bar .product-account-bar{padding-left:0}#workspace-toolbar .product-scope-bar .product-account-bar::before{display:none}}

#workspace-toolbar .product-scope-bar .product-account-bar{padding-left:44px}
#workspace-toolbar .product-scope-bar .product-account-bar::before{content:"01\A 10\A 01";width:25px;font-size:12px;line-height:14px;letter-spacing:3px;color:#238357;background:linear-gradient(180deg,transparent,rgba(43,181,101,.14),transparent);border-left:1px solid rgba(43,181,101,.28);border-right:1px solid rgba(43,181,101,.28)}
html[data-theme="dark"] #workspace-toolbar .product-scope-bar .product-account-bar::before{color:#76f6a6;text-shadow:0 0 8px #2dbf74}
@media(max-width:650px){#workspace-toolbar .product-scope-bar .product-account-bar{padding-left:0}}

/* Cabinet selection: transparent buttons, selected outline only. */
#workspace-toolbar #product-account-switcher .product-account-toggle {
  background: transparent !important;
  background-image: none !important;
  color: var(--u-text, #244f42) !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
#workspace-toolbar #product-account-switcher .product-account-toggle[aria-pressed="true"] {
  border-color: var(--u-accent, #34826a) !important;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--u-accent, #34826a) 20%, transparent),
              0 0 10px color-mix(in srgb, var(--u-accent, #34826a) 25%, transparent) !important;
}
#workspace-toolbar #product-account-switcher .product-account-toggle:focus-visible {
  outline: 2px solid var(--u-accent, #34826a);
  outline-offset: 3px;
}
#workspace-toolbar #product-account-switcher .store-avatar {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
#workspace-toolbar #product-account-switcher .product-account-marketplace {
  display: none !important;
}

/* Compact, theme-aware actions in the marketplace/account toolbar. */
#workspace-toolbar :is(#export-products, #refresh-products).u-toolbar-icon-action {
  position: relative;
  box-sizing: border-box;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  border: 1px solid var(--u-line) !important;
  border-radius: 11px;
  background: var(--u-soft) !important;
  color: var(--u-text) !important;
  box-shadow: none !important;
  overflow: visible;
}
#workspace-toolbar :is(#export-products, #refresh-products).u-toolbar-icon-action:not([hidden]) {
  display: inline-flex;
}
#workspace-toolbar :is(#export-products, #refresh-products).u-toolbar-icon-action > span:not(.u-toolbar-action-tooltip) {
  display: none;
}
#workspace-toolbar :is(#export-products, #refresh-products).u-toolbar-icon-action > svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#workspace-toolbar :is(#export-products, #refresh-products).u-toolbar-icon-action:hover:not(:disabled) {
  background: var(--u-active) !important;
  border-color: var(--u-accent) !important;
}
#workspace-toolbar :is(#export-products, #refresh-products).u-toolbar-icon-action:focus-visible {
  outline: 2px solid var(--u-accent);
  outline-offset: 3px;
}
#workspace-toolbar .u-toolbar-action-tooltip {
  position: absolute;
  z-index: 30;
  top: calc(100% + 9px);
  right: 0;
  width: max-content;
  max-width: min(260px, calc(100vw - 32px));
  padding: 8px 10px;
  border: 1px solid var(--u-line);
  border-radius: 8px;
  background: var(--u-surface);
  color: var(--u-text);
  box-shadow: 0 4px 12px #0002;
  font: 400 12px/1.4 var(--u-font);
  white-space: normal;
  text-align: left;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-2px);
  transition: opacity 120ms ease, transform 120ms ease;
}
#workspace-toolbar .u-toolbar-icon-action:is(:hover, :focus-visible):not([data-tooltip-dismissed]) > .u-toolbar-action-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  #workspace-toolbar .u-toolbar-action-tooltip { transition: none; }
}

#workspace-toolbar #export-products.u-toolbar-icon-action > svg.u-excel-brand-icon {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
  stroke: none;
}

/* Shared selection contract: transparent at rest, hover and selection in every theme. */
html body :is(#workspace-toolbar, #connections, .marketplace-switcher, .account-switcher)
  :is(.marketplace-icon-button, .product-account-toggle, .marketplace-option, .account-option) {
  background: transparent !important;
  background-image: none !important;
  color: var(--u-text, #244f42) !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  transform: none !important;
}
html body :is(#workspace-toolbar, #connections, .marketplace-switcher, .account-switcher)
  :is(.marketplace-icon-button, .product-account-toggle, .marketplace-option, .account-option)
  .marketplace-icon { box-shadow: none !important; }
html body :is(#workspace-toolbar, #connections, .marketplace-switcher, .account-switcher)
  :is(.marketplace-icon-button, .product-account-toggle, .marketplace-option, .account-option)
  .store-avatar {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
html body :is(#workspace-toolbar, #connections, .marketplace-switcher, .account-switcher)
  :is(.marketplace-icon-button, .product-account-toggle, .marketplace-option, .account-option)
  .product-account-marketplace { display: none !important; }
html body :is(#workspace-toolbar, #connections, .marketplace-switcher, .account-switcher)
  :is(.marketplace-icon-button, .product-account-toggle, .marketplace-option, .account-option):is([aria-pressed="true"], [aria-expanded="true"]) {
  border-color: var(--u-accent, #34826a) !important;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--u-accent, #34826a) 20%, transparent),
              0 0 10px color-mix(in srgb, var(--u-accent, #34826a) 25%, transparent) !important;
}
html body :is(#workspace-toolbar, #connections, .marketplace-switcher, .account-switcher)
  :is(.marketplace-icon-button, .product-account-toggle, .marketplace-option, .account-option):focus-visible {
  outline: 2px solid var(--u-accent, #34826a);
  outline-offset: 3px;
}
#workspace-toolbar .product-scope-bar .marketplace-icon-button[data-marketplace="all"] {
  width: auto;
  max-width: none;
  padding: 0 12px;
  white-space: nowrap;
}
#workspace-toolbar .product-scope-bar :is(.marketplace-icon-button[data-marketplace="all"], .product-account-toggle[data-account=""]) {
  font-size: 11px;
}

#workspace-toolbar .marketplace-select-label { flex: 0 0 auto; }

/* Shared scope controls: omit the captions and decorative separator. */
html body :is(.marketplace-select-label, .u-scope-label) {
  display: none !important;
}
html body #workspace-toolbar .product-scope-bar .product-account-bar,
html body .u-workspace-scope .u-scope-accounts {
  padding-left: 0 !important;
}
html body #workspace-toolbar .product-scope-bar .product-account-bar::before,
html body #workspace-toolbar .product-scope-bar .product-account-bar::after,
html body .u-workspace-scope .u-scope-accounts::before,
html body .u-workspace-scope .u-scope-accounts::after {
  content: none !important;
  display: none !important;
}
/* Keep native filter names accessible while removing their visual captions. */
.u-scope-caption {
  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;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Advertising: remove the redundant connection prompt from the workspace. */
#advertising > .ad-connect-cta { display: none !important; }

/* Uniform marketplace/cabinet scope; local dates/search/status filters remain in each report. */
html body .u-scope-native {display:none !important}
html body .u-workspace-scope {
  display:flex;align-items:center;gap:16px;flex-wrap:wrap;min-width:0;
  border:1px solid var(--u-line,#d3e3dc);border-radius:12px;
  padding:12px 16px;margin:20px 0 16px;background:var(--u-surface,#fff);
}
html body #workspace-toolbar .product-scope-bar.u-workspace-scope {margin:0}
.u-scope-content {display:flex;align-items:center;gap:20px;flex-wrap:wrap;flex:1;min-width:0}
.u-scope-markets,.u-scope-accounts {display:flex;align-items:center;gap:7px;min-width:0;max-width:100%}
.u-scope-accounts {position:relative;padding-left:40px;flex:1;overflow-x:auto;padding-top:4px;padding-bottom:4px}
.u-scope-accounts::before {content:'01\A 10\A 01';white-space:pre;position:absolute;left:0;top:4px;bottom:4px;display:flex;align-items:center;text-align:center;padding:0 3px;font:600 12px/14px ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:2px;color:var(--u-accent,#34826a);text-shadow:0 0 8px color-mix(in srgb,var(--u-accent,#34826a) 55%,transparent);border-left:1px solid color-mix(in srgb,var(--u-accent,#34826a) 28%,transparent);border-right:1px solid color-mix(in srgb,var(--u-accent,#34826a) 28%,transparent)}
.u-scope-label {font-size:12px;font-weight:600;color:var(--u-muted,#54675d);white-space:nowrap;flex-shrink:0}
html body :is(#workspace-toolbar,#unitka-scope-finance,#unitka-scope-documents,#unitka-scope-returns,#unitka-scope-storage,#unitka-scope-connections,#unitka-scope-warehouses,#unitka-scope-rnp,#unitka-scope-fbs) button.u-scope-choice {
  display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;
  box-sizing:border-box;width:42px;height:42px !important;min-height:42px !important;max-height:42px;min-width:42px;padding:5px;border-radius:11px;
  background:transparent !important;background-image:none !important;
  color:var(--u-text,#244f42) !important;border:1px solid transparent !important;
  box-shadow:none !important;transform:none !important;font-size:11px;white-space:nowrap;
}
html body :is(#workspace-toolbar,#unitka-scope-finance,#unitka-scope-documents,#unitka-scope-returns,#unitka-scope-storage,#unitka-scope-connections,#unitka-scope-warehouses,#unitka-scope-rnp,#unitka-scope-fbs) button.u-scope-choice[data-scope-key$=':all'] {width:auto;min-width:max-content;padding:0 12px}
html body :is(#workspace-toolbar,#unitka-scope-finance,#unitka-scope-documents,#unitka-scope-returns,#unitka-scope-storage,#unitka-scope-connections,#unitka-scope-warehouses,#unitka-scope-rnp,#unitka-scope-fbs) button.u-scope-choice[aria-pressed='true'] {
  border-color:var(--u-accent,#34826a) !important;
  box-shadow:0 0 0 1px color-mix(in srgb,var(--u-accent,#34826a) 20%,transparent),0 0 10px color-mix(in srgb,var(--u-accent,#34826a) 25%,transparent) !important;
}
html body .u-workspace-scope button.u-scope-choice:focus-visible {outline:2px solid var(--u-accent,#34826a);outline-offset:3px}
html body .u-workspace-scope button.u-scope-choice:disabled {opacity:.38;cursor:default}
.u-scope-avatar {width:32px;height:32px;object-fit:contain;border-radius:7px}
.u-scope-market-logo {width:27px;height:27px;object-fit:contain;border-radius:7px}
.u-scope-empty {font-size:12px;color:var(--u-muted,#54675d);white-space:nowrap}
html body #app #connections .connection-add-actions button.marketplace-icon-button {
  box-sizing:border-box;width:42px;height:42px;min-height:42px;background:transparent !important;
  border:1px solid transparent !important;box-shadow:none !important;transform:none !important;
}
html body #app #connections .connection-add-actions button.marketplace-icon-button[aria-expanded='true'] {
  border-color:var(--u-accent,#34826a) !important;
  box-shadow:0 0 0 1px color-mix(in srgb,var(--u-accent,#34826a) 20%,transparent),0 0 10px color-mix(in srgb,var(--u-accent,#34826a) 25%,transparent) !important;
}
html body #app #connections .connection-add-actions button.marketplace-icon-button:focus-visible {outline:2px solid var(--u-accent,#34826a);outline-offset:3px}
@media(max-width:650px){html body .u-workspace-scope{padding:10px;gap:8px}.u-scope-content{gap:6px;max-width:100%}.u-scope-markets{flex-wrap:wrap}.u-scope-accounts{width:100%;padding-left:0;flex:1 1 100%}.u-scope-accounts::before{display:none}}

/* Product table: keep the compact WB catalog status on one line. */
#product-rows td[data-column="status"] .badge.wb-catalog-status { white-space: nowrap; }

/* One filter area and field/icon vocabulary, including menus and editing forms. */
html body .u-filter-panel {display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;align-items:stretch!important;gap:10px!important;min-width:0;width:100%;max-width:100%;padding:12px 16px!important;}
.u-filter-heading {display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0;}
.u-filter-scope-row {display:flex;align-items:center;flex-wrap:nowrap;gap:16px;min-width:0;width:100%;max-width:100%;}
.u-filter-scroll {display:flex;align-items:center;gap:16px;flex:1;min-width:0;overflow-x:auto;padding:6px;}
.u-filter-scope-row > .product-scope-actions {margin-left:auto;flex:0 0 auto;}
.u-filter-title {display:inline-flex;align-items:center;gap:8px;color:var(--u-muted);font:600 12px/1.4 var(--u-font);}
.u-filter-title svg {width:17px;height:17px;}
.u-filter-extra:has(> .u-filter-slot:not([hidden])) {border:0;padding:0;}
.u-filter-slot {min-width:0;}
html body .u-filter-panel .u-filter-controls {display:flex!important;align-items:flex-end;flex-wrap:wrap;gap:10px;margin:0;padding:0;border:0;border-radius:0;background:transparent!important;}
html body .u-filter-panel .u-filter-controls > label {flex:0 1 auto;min-width:140px;width:auto;max-width:100%;gap:5px;margin:0;color:var(--u-muted);font-size:12px;}
html body .u-filter-panel :is(.u-filter-native-account,.u-scope-native),html body .u-filter-slot[hidden] {display:none!important;}
html body :is(input[type=date],input[type=month],input[type=datetime-local],select) {border:1px solid var(--u-line);border-radius:9px;background:var(--u-surface);color:var(--u-text);font-family:var(--u-font);}
html body .u-filter-panel :is(input,select) {min-height:42px;box-sizing:border-box;font-size:12px;}
html body .u-filter-panel :is(input[type=date],input[type=month]) {width:170px;max-width:100%;}
.u-date-control,.u-search-control {position:relative;display:inline-flex;align-items:center;min-width:0;max-width:100%;}
html body :is(input,select).u-filter-input {height:42px!important;min-height:42px!important;box-sizing:border-box;padding-block:10px!important;font:400 12px/1.4 var(--u-font);border:1px solid var(--u-line);border-radius:9px;background:var(--u-surface);color:var(--u-text);}
.u-date-control > :is(input,select) {width:100%;box-sizing:border-box;padding-right:34px!important;}
.u-date-control > select {appearance:none;}
.u-date-control > svg {position:absolute;right:11px;top:50%;transform:translateY(-50%);width:17px;height:17px;color:var(--u-muted);pointer-events:none;}
.u-date-control input::-webkit-calendar-picker-indicator {opacity:0;width:20px;cursor:pointer;}
.u-search-control > svg {position:absolute;left:11px;top:50%;transform:translateY(-50%);width:17px;height:17px;color:var(--u-muted);pointer-events:none;}
.u-search-control > input {padding-left:35px!important;width:100%;box-sizing:border-box;}
html body .u-filter-controls > label:has(input[type=search]) {flex:1 1 220px;}
html body .u-filter-panel :is(button.u-filter-action,.u-filter-action) {display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:0 0 auto;width:auto;height:42px!important;min-height:42px!important;max-width:100%;box-sizing:border-box;padding:0 12px!important;border:1px solid var(--u-line)!important;border-radius:11px;background:var(--u-soft)!important;color:var(--u-text)!important;font:600 12px/1.3 var(--u-font);}
.u-filter-action-caption {white-space:normal;text-align:left;}
.u-filter-action > svg {width:18px;height:18px;flex-shrink:0;}
.u-column-filter-action > svg {width:14px;height:14px;}
svg[data-u-filter-icon] {fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
.u-filter-action:focus-visible {outline:2px solid var(--u-accent);outline-offset:3px;}
html body .u-filter-panel .u-scope-content {flex:1;max-width:100%;}
html body .u-filter-panel .u-scope-accounts {padding-left:0!important;}
html body :is(#workspace-toolbar,#unitka-scope-finance,#unitka-scope-documents,#unitka-scope-returns,#unitka-scope-storage,#unitka-scope-connections,#unitka-scope-warehouses,#unitka-scope-rnp,#unitka-scope-fbs) button.u-scope-choice[data-scope-key$=':all'] {width:auto!important;padding:0 12px!important;}
@media(max-width:650px){html body .u-filter-panel{padding:10px!important;}html body .u-filter-panel .u-filter-controls>label{flex:1 1 140px;min-width:0;}html body .u-filter-panel :is(input[type=date],input[type=month]){width:100%;}.u-filter-heading{gap:8px;}.u-search-control{width:100%;}}

.u-filter-extra {display:flex;flex-direction:row;align-items:center;gap:10px;flex:0 0 auto;margin-left:auto;}
html body .u-filter-scroll .u-scope-content {flex:0 0 auto;flex-wrap:nowrap;max-width:none;gap:16px;}
html body .u-filter-scroll :is(.u-scope-markets,.u-scope-accounts) {flex:0 0 auto;flex-wrap:nowrap;width:auto;max-width:none;overflow:visible;padding-block:0;}
html body .u-filter-scroll .u-filter-controls {align-items:center!important;flex-wrap:nowrap!important;gap:8px;}
html body .u-filter-scroll .u-filter-controls > label {display:flex;flex-direction:row;align-items:center;flex:0 0 auto;min-width:0;gap:6px;white-space:nowrap;}
html body .u-filter-scroll .u-filter-controls :is(input[type=date],input[type=month]) {width:170px;min-width:170px;}
html body .u-filter-scroll button.u-filter-action {position:relative;width:42px;min-width:42px;padding:0!important;}
.u-filter-scroll .u-filter-action-caption {position:absolute;left:0;top:0;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
html body .u-filter-extra:not(:has(> .u-filter-slot:not([hidden]))) {display:none;}
html body .u-filter-controls > .u-search-control {flex:1 1 220px;}
html body .u-filter-panel :is(.scope-badge,.ad-status-tab) {background:transparent!important;border:1px solid var(--u-line)!important;color:var(--u-text)!important;border-radius:9px;min-height:34px!important;outline:0;padding:7px 11px;}
html body .u-filter-panel :is(.scope-badge,.ad-status-tab)[aria-pressed=true] {border-color:var(--u-accent)!important;box-shadow:0 0 8px color-mix(in srgb,var(--u-accent) 25%,transparent);}
html body .u-filter-panel :is(.scope-badge,.ad-status-tab):focus-visible {outline:2px solid var(--u-accent);outline-offset:2px;}
html body .u-filter-panel label:has(input[type=checkbox]) {display:flex;flex-direction:row;align-items:center;min-height:42px;}
html body .u-filter-panel label:has(input[type=checkbox]) input {min-height:0;}
html body .u-filter-native-account {display:none!important;}
.u-filter-native-select {position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%);}
.u-local-cabinet-picker {display:flex;flex-wrap:wrap;align-items:center;gap:7px;min-width:0;max-width:100%;}
html body .u-local-cabinet-picker button.u-local-cabinet-choice {display:inline-flex;align-items:center;justify-content:center;flex:0 0 42px;width:42px;height:42px;min-height:42px;padding:5px;border:1px solid transparent!important;border-radius:11px;background:transparent!important;box-sizing:border-box;}
html body .u-local-cabinet-picker button.u-local-cabinet-choice[aria-pressed=true] {border-color:var(--u-accent)!important;box-shadow:0 0 8px color-mix(in srgb,var(--u-accent) 25%,transparent);}
.u-local-cabinet-choice img {width:32px;height:32px;object-fit:contain;border-radius:7px;}
.u-local-cabinet-choice:focus-visible {outline:2px solid var(--u-accent);outline-offset:3px;}
.u-cabinet-error {flex-basis:100%;color:var(--u-muted);}

/* Logistics uses the same fixed heading, tab row and filter position on each report. */
html body .u-logistics-page > .u-logistics-heading {
  display:block!important; min-height:64px; margin:0 0 20px!important;
}
html body .u-logistics-page > .u-logistics-heading h1 {
  font-size:24px!important; line-height:30px; margin:0 0 7px!important;
}
html body .u-logistics-page > .u-logistics-heading p {
  font-size:12px; line-height:18px; margin:0!important; color:var(--u-muted);
}
html body .u-logistics-page > .unified-tabs {
  display:flex!important; flex-direction:row; flex-wrap:nowrap; align-items:stretch;
  gap:17px; height:43px; margin:0!important; overflow-x:auto;
}
html body .u-logistics-page > .unified-tabs > a {
  width:auto!important; flex:0 0 auto; white-space:nowrap;
}
html body .u-logistics-page > .u-workspace-scope {margin:20px 0 16px!important;}
html body .u-logistics-page .u-logistics-detail-head {
  display:block!important; margin:0 0 18px!important;
}
html body .u-logistics-page .u-logistics-detail-head h2 {
  font-size:16px; line-height:24px; margin:0 0 6px;
}
html body .u-logistics-page .u-logistics-detail-head p {
  font-size:12px; line-height:18px; margin:0;
}
html body[data-logistics-page] .unified-topbar {
  height:70px; min-height:70px; align-items:center;
}
html body[data-logistics-page] .unified-topbar .account-menu {
  position:relative; margin:0 0 0 12px!important; padding:0!important;
  border:0; background:transparent!important;
}
html body[data-logistics-page] .unified-topbar .theme-toggle {
  width:35px; height:35px; min-width:35px; min-height:35px;
  margin-top:0!important; padding:0!important; align-self:center;
}

/* Table headings and campaign names are text controls, without filled badges. */
html body #advertising .ad-campaigns th[data-ad-sort] button {
  background:transparent!important; color:inherit!important;
  border-color:transparent!important; box-shadow:none!important;
}
html body #advertising .ad-campaigns .ad-campaign-open {
  background:transparent!important; color:var(--u-accent)!important;
  border-color:transparent!important; box-shadow:none!important;
}

@media(max-width:620px) {
  html body .u-logistics-page > .u-logistics-heading {min-height:82px;}
  html body[data-logistics-page] .unified-topbar {
    height:auto; min-height:70px; flex-wrap:wrap;
  }
}

/* Preserve the original icon/title row after promoting report titles to h2. */
html body .u-logistics-page .u-logistics-detail-head h2 {display:flex;align-items:center;gap:8px;}

/* Approved Matrix sign-in. Scope is limited to #auth. */
html body #auth.u-auth-matrix{
  color-scheme: dark;
  --bg: #050a06;
  --surface: #0d150e;
  --text: #c4f8d0;
  --muted: #7b9d83;
  --line: #253e2c;
  --accent: #a9f5bb;
  --font: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  font: 14px/1.45 var(--font);background: var(--bg) !important;
color: var(--text) !important;
}
html body #auth.u-auth-matrix *{ box-sizing: border-box; }
html body #auth.u-auth-matrix button,html body #auth.u-auth-matrix input{ font: inherit; }
html body #auth.u-auth-matrix button{ -webkit-tap-highlight-color: transparent; }
html body #auth.u-auth-matrix .auth-scene{ position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 72px 24px; isolation: isolate; overflow: hidden; }
html body #auth.u-auth-matrix .ambient{ position: absolute; inset: 0; z-index: -2;background: radial-gradient(ellipse at 50% 45%, #10301c66 0%, transparent 53%), radial-gradient(circle, #79bc8d22 0.8px, transparent 1px) 0 0 / 25px 25px !important; mask-image: radial-gradient(ellipse at center, #000 38%, #0006 100%); }
html body #auth.u-auth-matrix .matrix-canvas{ position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
html body #auth.u-auth-matrix .auth-card{ position: relative; width: 380px; max-width: 100%; padding: 25px; border: 1px solid #679d7466; border-radius: 22px;background: linear-gradient(145deg, #122017f7, #0a130df7) !important; box-shadow: 0 28px 90px #0009, 0 0 48px #4bd17c0d, inset 0 1px #d3ffdf0c; transform: perspective(1000px) rotateX(var(--card-rx, 0deg)) rotateY(var(--card-ry, 0deg)); transform-style: preserve-3d; }
html body #auth.u-auth-matrix .auth-card::before{ content: ""; position: absolute; inset: 0; border-radius: inherit;background: radial-gradient(ellipse at var(--shine-x, 50%) var(--shine-y, 20%), #a9f5bb0b, transparent 68%) !important; pointer-events: none; }
html body #auth.u-auth-matrix .auth-heading{ display: flex; align-items: center; gap: 12px; margin-bottom: 23px; }
html body #auth.u-auth-matrix .brand-mark{ display: grid; place-items: center; width: 41px; height: 41px; flex: 0 0 41px; border: 1px solid #7abf8b61; border-radius: 13px;color: var(--accent) !important; background: #a9f5bb08; box-shadow: 0 0 19px #76ee9f0d; }
html body #auth.u-auth-matrix .brand-mark svg{ width: 27px; height: 27px; stroke: currentColor; stroke-width: 1.5; }
html body #auth.u-auth-matrix h1{ margin: 0 0 5px; font-size: 18px; font-weight: 600; letter-spacing: -0.6px; }
html body #auth.u-auth-matrix .auth-heading p{ margin: 0;color: var(--muted) !important; font-size: 10px; letter-spacing: 0.2px; }
html body #auth.u-auth-matrix .auth-tabs{ position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; gap: 4px; margin-bottom: 23px;background: #030906 !important; border: 1px solid #294831; border-radius: 12px; }
html body #auth.u-auth-matrix .auth-tabs button{ z-index: 1; border: 0; padding: 9px 4px; border-radius: 8px;background: transparent !important; color: #8cab92; font-size: 12px; cursor: pointer; transition: color 160ms ease; }
html body #auth.u-auth-matrix .auth-tabs button[aria-selected="true"]{color: #d3ffdf !important; }
html body #auth.u-auth-matrix .tab-highlight{ position: absolute; top: 4px; left: 4px; bottom: 4px; width: calc(50% - 6px); border: 1px solid #7dbe8e80; border-radius: 8px;background: linear-gradient(135deg, #1c3524, #182b1d) !important; box-shadow: 0 0 15px #81f3a117, inset 0 1px #caffd41a; transition: transform 230ms cubic-bezier(.2,.8,.2,1); }
html body #auth.u-auth-matrix .auth-tabs.is-register .tab-highlight{ transform: translateX(calc(100% + 4px)); }
html body #auth.u-auth-matrix .auth-tabs button:focus-visible{ outline: 2px solid var(--accent); outline-offset: 3px; }
html body #auth.u-auth-matrix [hidden]{ display: none !important; }
html body #auth.u-auth-matrix fieldset{ margin: 0; padding: 0; border: 0; min-width: 0; }
html body #auth.u-auth-matrix .auth-panel label{ display: block; margin-bottom: 8px;color: #9cb9a3 !important; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.1px; }
html body #auth.u-auth-matrix .auth-panel input{ display: block; width: 100%; height: 44px; padding: 0 13px; border: 1px solid #35503c; border-radius: 9px;background: #080e0a !important; color: var(--text); font-size: 12px; opacity: 1; -webkit-text-fill-color: var(--text); cursor: default; }
html body #auth.u-auth-matrix .auth-panel input::placeholder{color: #708f79 !important; opacity: 1; -webkit-text-fill-color: #708f79; }
html body #auth.u-auth-matrix .auth-panel input + label{ margin-top: 16px; }
html body #auth.u-auth-matrix .primary-action{ display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 45px; margin-top: 17px; padding: 0 10px; border: 1px solid #a9f5bb99; border-radius: 9px;background: linear-gradient(115deg, #b1f7bf, #76e49b) !important; color: #112819; font-size: 12px; font-weight: 700; cursor: default; transition: transform 180ms ease, box-shadow 180ms ease; }
html body #auth.u-auth-matrix .primary-action svg{ width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
html body #auth.u-auth-matrix .primary-action:hover{ transform: scale(1.018); box-shadow: 0 0 25px #72e99624; }
html body #auth.u-auth-matrix .provider-divider{ display: flex; align-items: center; gap: 10px; margin: 20px 0 13px;color: #71937b !important; font-size: 8px; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; }
html body #auth.u-auth-matrix .provider-divider::before,html body #auth.u-auth-matrix .provider-divider::after{ content: ""; height: 1px;background: #294031 !important; flex: 1; }
html body #auth.u-auth-matrix .auth-providers{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
html body #auth.u-auth-matrix .provider{ display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-width: 0; height: 64px; padding: 7px 2px; border: 1px solid #2b4933; border-radius: 10px;background: #101b13 !important; color: #a8c6af; font-size: 9px; cursor: default; transition: transform 180ms ease, border-color 180ms ease, background 180ms ease; }
html body #auth.u-auth-matrix .provider:hover{ transform: translateY(-3px) scale(1.04);border-color: #79b689 !important; background: #192b1d; }
html body #auth.u-auth-matrix .provider-icon{ display: grid; place-items: center; width: 23px; height: 23px; border-radius: 6px; font: 600 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
html body #auth.u-auth-matrix .provider-yandex .provider-icon{color: #f1ffe9 !important; background: #ab5038; }
html body #auth.u-auth-matrix .provider-vk .provider-icon{color: white !important; background: #276bae; font-size: 11px; }
html body #auth.u-auth-matrix .provider-wb .provider-icon{color: #fff4ff !important; background: #8c48a2; font-size: 9px; }
html body #auth.u-auth-matrix .provider-tochka .provider-icon{color: #f8f3ff !important; background: #6650aa; }
html body #auth.u-auth-matrix .access-status{ display: flex; align-items: center; justify-content: center; gap: 7px; margin: 19px 0 0;color: #8faa96 !important; font-size: 9px; letter-spacing: 0.2px; }
html body #auth.u-auth-matrix .access-status > span{ width: 4px; height: 4px; border-radius: 50%;background: #7cab86 !important; box-shadow: 0 0 8px #7cab8655; }
html body #auth.u-auth-matrix .market-node{ position: absolute; display: flex; align-items: center; gap: 12px; z-index: 1; }
html body #auth.u-auth-matrix .node-wb{ top: 15.5%; left: 9%; }
html body #auth.u-auth-matrix .node-ozon{ top: 15.5%; right: 9%; }
html body #auth.u-auth-matrix .node-yandex{ bottom: 15.5%; left: 9%; }
html body #auth.u-auth-matrix .node-avito{ bottom: 15.5%; right: 9%; }
html body #auth.u-auth-matrix .node-right{ flex-direction: row-reverse; text-align: right; }
html body #auth.u-auth-matrix .market-copy{ display: flex; flex-direction: column; gap: 4px; }
html body #auth.u-auth-matrix .market-name{ font-size: 12px;color: #c0dec8 !important; }
html body #auth.u-auth-matrix .market-kind{ font-size: 8px; text-transform: uppercase; letter-spacing: 1px;color: #6a8d73 !important; }
html body #auth.u-auth-matrix .market-icon{ position: relative; display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid #42674d; border-radius: 13px;background: #101b13 !important; box-shadow: 0 0 24px #81e99e0e; transition: transform 230ms ease, border-color 230ms ease, box-shadow 230ms ease; }
html body #auth.u-auth-matrix .market-icon img{ width: 27px; height: 27px; border-radius: 7px; object-fit: contain; }
html body #auth.u-auth-matrix .market-node:hover .market-icon{ transform: scale(1.2);border-color: #a9f5bb !important; box-shadow: 0 0 28px #70f19b3a; }
html body #auth.u-auth-matrix .market-icon::after{ content: ""; position: absolute; inset: -6px; border: 1px solid #5ad67b21; border-radius: 17px; animation: u-auth-breathe 5s ease-in-out infinite; }
html body #auth.u-auth-matrix .node-ozon .market-icon::after{ animation-delay: -1.3s; }
html body #auth.u-auth-matrix .node-yandex .market-icon::after{ animation-delay: -2.6s; }
html body #auth.u-auth-matrix .node-avito .market-icon::after{ animation-delay: -3.9s; }
html body #auth.u-auth-matrix .scene-signature{ position: absolute; left: 28px; right: 28px; bottom: 22px; display: flex; justify-content: space-between;color: #62866c !important; font-size: 8px; letter-spacing: 3px; opacity: 0.5; }
html body #auth.u-auth-matrix .visually-hidden{ position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; }
@keyframes u-auth-breathe{ 0%, 100% { opacity: .35; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@media (max-width: 760px){html body #auth.u-auth-matrix .auth-scene{ padding: 112px 24px; }
html body #auth.u-auth-matrix .auth-card{ padding: 23px; width: 364px; border-radius: 20px; }
html body #auth.u-auth-matrix .node-wb,html body #auth.u-auth-matrix .node-ozon{ top: 40px; }
html body #auth.u-auth-matrix .node-yandex,html body #auth.u-auth-matrix .node-avito{ bottom: 42px; }
html body #auth.u-auth-matrix .node-wb,html body #auth.u-auth-matrix .node-yandex{ left: 7%; }
html body #auth.u-auth-matrix .node-ozon,html body #auth.u-auth-matrix .node-avito{ right: 7%; }
html body #auth.u-auth-matrix .market-node{ gap: 8px; }
html body #auth.u-auth-matrix .market-icon{ width: 35px; height: 35px; border-radius: 11px; }
html body #auth.u-auth-matrix .market-icon img{ width: 24px; height: 24px; }
html body #auth.u-auth-matrix .market-name{ font-size: 10px; }
html body #auth.u-auth-matrix .market-kind,html body #auth.u-auth-matrix .scene-signature{ display: none; }}
@media (max-width: 360px){html body #auth.u-auth-matrix .auth-scene{ padding: 108px 16px; }
html body #auth.u-auth-matrix .auth-card{ padding: 20px; }
html body #auth.u-auth-matrix .auth-heading{ gap: 9px; }
html body #auth.u-auth-matrix h1{ font-size: 16px; }
html body #auth.u-auth-matrix .auth-heading p{ font-size: 8px; }
html body #auth.u-auth-matrix .brand-mark{ width: 36px; height: 36px; flex-basis: 36px; }
html body #auth.u-auth-matrix .provider-divider{ gap: 7px; font-size: 7px; }
html body #auth.u-auth-matrix .market-name{ font-size: 9px; }}
@media (prefers-reduced-motion: reduce){html body #auth.u-auth-matrix *,html body #auth.u-auth-matrix *::before,html body #auth.u-auth-matrix *::after{ animation: none !important; transition: none !important; }
html body #auth.u-auth-matrix .auth-card,html body #auth.u-auth-matrix .market-node:hover .market-icon,html body #auth.u-auth-matrix .provider:hover,html body #auth.u-auth-matrix .primary-action:hover{ transform: none !important; }}
html body #auth.u-auth-matrix { display:block; padding:0; min-height:100vh; background:#050a06 !important; color:#c4f8d0 !important; --u-text:#c4f8d0; --u-muted:#7b9d83; --u-line:#253e2c; --u-surface:#0d150e; --u-accent:#a9f5bb; }
html body #auth.u-auth-matrix .auth-scene { padding:90px 24px; width:100%; }
html body #auth.u-auth-matrix .auth-card { z-index:2; background:linear-gradient(145deg,#122017f7,#0a130df7) !important; border-color:#679d7466 !important; }
html body #auth.u-auth-matrix .auth-heading { align-items:flex-start; }
html body #auth.u-auth-matrix .auth-heading h1 { font-size:18px; margin:0 0 6px; }
html body #auth.u-auth-matrix .auth-heading p { max-width:265px; line-height:1.5; }
html body #auth.u-auth-matrix .auth-card form { display:block; margin:0; }
html body #auth.u-auth-matrix .auth-panel label { margin:15px 0 0; font-size:9px; line-height:1.5; }
html body #auth.u-auth-matrix .auth-panel input { margin-top:7px; cursor:text; background:#080e0a !important; border-color:#35503c !important; }
html body #auth.u-auth-matrix .auth-panel input:focus-visible { outline:2px solid #a9f5bb; outline-offset:3px; }
html body #auth.u-auth-matrix .primary-action { cursor:pointer; color:#112819 !important; background:linear-gradient(115deg,#b1f7bf,#76e49b) !important; font-weight:700; }
html body #auth.u-auth-matrix .primary-action:disabled { opacity:.65; cursor:wait; }
html body #auth.u-auth-matrix .primary-action:focus-visible, html body #auth.u-auth-matrix #u-auth-login:focus-visible { outline:2px solid #a9f5bb; outline-offset:3px; }
html body #auth.u-auth-matrix .auth-tabs button { color:#8cab92 !important; background:transparent !important; font-weight:500; }
html body #auth.u-auth-matrix .auth-tabs button[aria-current] { color:#d3ffdf !important; }
html body #auth.u-auth-matrix .auth-tabs button:disabled { opacity:.48; cursor:not-allowed; }
html body #auth.u-auth-matrix .provider { background:#101b13 !important; color:#a8c6af !important; opacity:.68; cursor:not-allowed; }
html body #auth.u-auth-matrix .provider:hover { transform:none; border-color:#2b4933; background:#101b13 !important; }
html body #auth.u-auth-matrix #auth-status { margin:12px 0 0; font-size:11px; line-height:1.5; }
html body #auth.u-auth-matrix #auth-status:empty { display:none; }
html body #auth.u-auth-matrix #auth-status.error { color:#f1b2a4 !important; }
html body #auth.u-auth-matrix #auth-note { text-align:center; margin-top:7px; font-size:9px; line-height:1.6; }
html body #auth.u-auth-matrix .market-icon svg { width:27px; height:27px; }
html body #auth.u-auth-matrix .market-kind { color:#81a58b; }
html body #auth.u-auth-matrix .node-1c { top:39%; left:16%; }
html body #auth.u-auth-matrix .node-tbank { top:34%; right:17%; }
html body #auth.u-auth-matrix .node-sber { top:49%; right:9%; }
html body #auth.u-auth-matrix .node-alfa { top:65%; right:15%; }
html body #auth.u-auth-matrix .node-ai { top:61%; left:7%; flex-direction:column; align-items:center; text-align:center; gap:10px; }
html body #auth.u-auth-matrix .ai-models { display:flex; gap:13px; margin-top:2px; }
html body #auth.u-auth-matrix .ai-model { display:flex; flex-direction:column; align-items:center; gap:4px; font-size:8px; color:#93b69d; }
html body #auth.u-auth-matrix .ai-model svg { width:26px; height:26px; padding:3px; border:1px solid #31503a; border-radius:7px; background:#0d1b12; }
html body.u-auth-visible .u-matrix-rain { display:none; }
@media (max-width:1100px) and (min-width:761px) {
  html body #auth.u-auth-matrix .node-1c { left:5%; }
  html body #auth.u-auth-matrix .node-tbank { right:7%; }
  html body #auth.u-auth-matrix .node-sber { right:3%; }
  html body #auth.u-auth-matrix .node-alfa { right:6%; }
  html body #auth.u-auth-matrix .node-ai { left:3%; }
  html body #auth.u-auth-matrix .node-ai .market-kind { font-size:7px; letter-spacing:.3px; }
  html body #auth.u-auth-matrix .ai-models { gap:6px; }
}
@media (max-width:760px) {
  html body #auth.u-auth-matrix .auth-scene { flex-direction:column; padding:30px 24px 48px; gap:28px; }
  html body #auth.u-auth-matrix .market-orbit { position:relative; width:100%; max-width:450px; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:19px 6px; }
  html body #auth.u-auth-matrix .market-node { position:static; flex-direction:column; text-align:center; gap:6px; min-width:0; }
  html body #auth.u-auth-matrix .market-name { font-size:8px; white-space:nowrap; }
  html body #auth.u-auth-matrix .node-ai { grid-column:1/-1; align-items:center; justify-content:center; gap:8px; }
  html body #auth.u-auth-matrix .node-ai .market-kind { display:block; font-size:7px; letter-spacing:.5px; }
  html body #auth.u-auth-matrix .ai-models { margin:0; gap:14px; }
  html body #auth.u-auth-matrix .auth-card { width:364px; }
  html body #auth.u-auth-matrix .scene-signature { display:flex; bottom:15px; }
}
@media (max-width:360px) {
  html body #auth.u-auth-matrix .auth-scene { padding:24px 16px 42px; gap:22px; }
  html body #auth.u-auth-matrix .auth-heading h1 { font-size:16px; }
  html body #auth.u-auth-matrix .auth-heading p { font-size:9px; }
}

/* Shared modern calendars use the site's existing palette in Classic and Matrix. */
html body .u-calendar-native,
html body .u-calendar-paired-source,
html body .u-calendar-source-label {
  position:absolute!important;width:1px!important;min-width:0!important;max-width:1px!important;
  height:1px!important;min-height:0!important;padding:0!important;margin:-1px!important;
  overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;
  white-space:nowrap!important;border:0!important;
}
html body label:not(.u-calendar-range-label) > .u-calendar-source-label {position:static!important;width:auto!important;max-width:none!important;height:auto!important;clip:auto!important;clip-path:none!important;margin:0!important;}
html body .u-calendar-paired-source,
html body .u-calendar-range-label > .u-calendar-source-label {display:none!important;}
html body :is(input,select).u-calendar-native {height:1px!important;min-height:0!important;}
html body .u-calendar-host {width:100%;min-width:0;}
html body .u-calendar-host > svg {display:none;}
html body .u-filter-scroll .u-calendar-host {width:auto;}
html body .u-calendar-trigger {
  display:inline-flex;align-items:center;justify-content:flex-start;gap:9px;
  min-height:42px!important;height:42px!important;width:100%;min-width:155px;padding:9px 12px!important;
  border:1px solid var(--u-line)!important;border-radius:10px;
  background:transparent!important;color:var(--u-text)!important;box-shadow:none!important;
  font:500 13px/1.4 var(--u-font);white-space:nowrap;cursor:pointer;
}
html body .u-calendar-range-label .u-calendar-trigger {min-width:278px;}
html body .u-calendar-trigger > svg {position:static;transform:none;width:18px;height:18px;flex:0 0 18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;color:var(--u-muted);}
html body .u-calendar-trigger > svg:last-child {width:14px;height:14px;flex-basis:14px;margin-left:auto;}
html body .u-calendar-trigger:hover:not(:disabled),html body .u-calendar-trigger[aria-expanded=true] {border-color:var(--u-accent)!important;}
html body .u-calendar-trigger:disabled {opacity:.5;cursor:default;}
html body .u-calendar-dialog {
  --cal-selected:var(--u-accent);--cal-selected-text:var(--u-surface);
  position:fixed;inset:auto;margin:0;padding:0;width:790px;max-width:calc(100vw - 24px);
  max-height:calc(100dvh - 24px);overflow:auto;border:1px solid var(--u-line)!important;
  border-radius:17px;background:var(--u-surface)!important;color:var(--u-text)!important;
  box-shadow:0 18px 65px #071e2330;z-index:10050;font:400 14px/1.4 var(--u-font);
}
html body .u-calendar-dialog:not([open]) {display:none;}
html body .u-calendar-dialog[data-range=false] {width:496px;}
html body .u-calendar-dialog[data-precision=month] {width:510px;}
.u-calendar-dialog::backdrop {background:rgb(8 24 19 / 12%);}
html body .u-calendar-dialog button {font:500 13px/1.4 var(--u-font);letter-spacing:normal;text-transform:none;cursor:pointer;box-shadow:none;}
html body .u-calendar-dialog button:disabled {opacity:.36;cursor:default;}
html body .u-calendar-dialog svg {width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
html body :is(.u-calendar-dialog button,.u-calendar-dialog input,.u-calendar-trigger):focus-visible {outline:2px solid var(--u-accent);outline-offset:2px;}
html body .u-calendar-top {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid var(--u-line);}
html body .u-calendar-top strong {font-size:14px;}
html body .u-calendar-icon-button {display:inline-flex;align-items:center;justify-content:center;width:34px;min-width:34px;height:34px;min-height:34px;padding:0!important;border:1px solid transparent!important;border-radius:8px;background:transparent!important;color:var(--u-muted)!important;}
html body .u-calendar-icon-button:hover {background:var(--u-soft)!important;color:var(--u-accent)!important;}
html body .u-calendar-body {display:flex;gap:0;}
html body .u-calendar-presets {display:flex;flex:0 0 174px;flex-direction:column;gap:4px;padding:16px 12px;border-right:1px solid var(--u-line);}
html body .u-calendar-preset {text-align:left;border:1px solid transparent!important;border-radius:8px;padding:10px 12px!important;background:transparent!important;color:var(--u-muted)!important;min-height:38px;}
html body .u-calendar-preset:hover:not(:disabled),html body .u-calendar-preset[aria-pressed=true] {background:var(--u-active)!important;color:var(--u-accent)!important;}
html body .u-calendar-main {flex:1 1 auto;min-width:0;padding:16px;}
html body .u-calendar-months {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;}
html body .u-calendar-dialog[data-range=false] .u-calendar-months {grid-template-columns:minmax(0,1fr);}
html body .u-calendar-month-heading {display:flex;align-items:center;justify-content:space-between;gap:4px;margin:0 0 12px;}
html body .u-calendar-month-title {display:inline-flex;gap:6px;align-items:center;justify-content:center;white-space:nowrap;background:transparent!important;color:var(--u-text)!important;border:0!important;border-radius:8px;padding:7px!important;font-size:14px;font-weight:600;}
html body .u-calendar-month-title svg {width:14px;height:14px;color:var(--u-muted);}
html body .u-calendar-grid {width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed;border-collapse:collapse;border-spacing:0;background:transparent!important;margin:0;}
html body .u-calendar-grid tr {background:transparent!important;}
html body .u-calendar-grid :is(th,td) {position:static!important;width:auto!important;min-width:0!important;max-width:none!important;border:0!important;text-align:center;padding:0!important;background:transparent!important;}
html body .u-calendar-grid th {height:30px;color:var(--u-muted)!important;font-size:11px;font-weight:500;}
html body .u-calendar-grid td {height:36px!important;}
html body .u-calendar-day {display:block;width:100%;min-width:0;height:36px!important;min-height:36px!important;border:1px solid transparent!important;border-radius:0!important;margin:0;padding:0!important;background:transparent!important;color:var(--u-text)!important;}
html body .u-calendar-day.u-calendar-outside {color:var(--u-muted)!important;opacity:.44;}
html body .u-calendar-day[aria-current=date] {font-weight:700;text-decoration:underline;text-underline-offset:5px;}
html body .u-calendar-day:hover:not(:disabled) {border-color:var(--u-accent)!important;border-radius:8px;}
html body .u-calendar-dialog .u-calendar-in-range {background:var(--u-active)!important;color:var(--u-text)!important;opacity:1;}
html body .u-calendar-dialog :is(.u-calendar-start,.u-calendar-end) {background:var(--cal-selected)!important;color:var(--cal-selected-text)!important;opacity:1;text-decoration:none;font-weight:600;}
html body .u-calendar-dialog .u-calendar-start {border-radius:8px 0 0 8px!important;}
html body .u-calendar-dialog .u-calendar-end {border-radius:0 8px 8px 0!important;}
html body .u-calendar-dialog .u-calendar-start.u-calendar-end {border-radius:8px!important;}
html body .u-calendar-dialog[data-range=false] .u-calendar-start {border-radius:8px!important;}
html body .u-calendar-help {font-size:12px;color:var(--u-muted);margin:12px 0 0;}
html body .u-calendar-limit {font-size:11px;color:var(--u-muted);margin:4px 0 0;}
html body .u-calendar-footer {display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border-top:1px solid var(--u-line);}
html body .u-calendar-selection {display:flex;flex-direction:column;gap:6px;min-width:0;}
html body .u-calendar-summary {color:var(--u-text);font-size:13px;font-weight:600;}
html body .u-calendar-feedback {font-size:12px;color:var(--u-danger);}
html body .u-calendar-feedback:empty {display:none;}
html body .u-calendar-manual {display:flex;align-items:center;gap:8px;}
html body .u-calendar-manual label {display:flex;align-items:center;gap:5px;font-size:11px;color:var(--u-muted);}
html body .u-calendar-manual input {width:115px;height:32px;min-height:32px;padding:5px 7px!important;border:1px solid var(--u-line)!important;border-radius:7px;font:400 12px/1.4 var(--u-font);}
html body .u-calendar-footer-actions {display:flex;gap:8px;align-items:center;flex:0 0 auto;}
html body :is(.u-calendar-clear,.u-calendar-cancel) {padding:9px 10px!important;border:1px solid transparent!important;border-radius:9px;background:transparent!important;color:var(--u-muted)!important;min-height:38px;}
html body .u-calendar-apply {min-height:40px;padding:10px 17px!important;border:1px solid transparent!important;border-radius:10px;background:var(--cal-selected)!important;color:var(--cal-selected-text)!important;}
html body .u-calendar-year-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}
html body .u-calendar-month-choice {min-height:46px;background:transparent!important;color:var(--u-text)!important;border:1px solid var(--u-line)!important;border-radius:9px;padding:9px 5px!important;}
html body .u-calendar-month-choice:hover:not(:disabled) {border-color:var(--u-accent)!important;}
html body .u-calendar-year-label {display:flex;justify-content:center;align-items:center;gap:10px;margin:0 0 16px;}
html body .u-calendar-year-label input {width:100px;height:36px;min-height:36px;border:1px solid var(--u-line)!important;border-radius:8px;padding:6px!important;font:500 14px/1.4 var(--u-font);}
html body .u-calendar-jump > .u-calendar-cancel {margin-top:12px;}
html body .u-calendar-time {display:flex;align-items:center;gap:10px;margin-top:12px;font-size:13px;}
html body .u-calendar-time input {width:140px;height:38px;min-height:38px;border:1px solid var(--u-line)!important;border-radius:9px;font:500 14px/1.4 var(--u-font);padding:6px 10px!important;}
@media(max-width:699px){
  html body .u-calendar-dialog {width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px);}
  html body .u-calendar-body {flex-direction:column;}
  html body .u-calendar-presets {flex:0 0 auto;flex-direction:row;overflow-x:auto;gap:6px;border-right:0;border-bottom:1px solid var(--u-line);padding:10px 12px;}
  html body .u-calendar-preset {flex:0 0 auto;white-space:nowrap;border:1px solid var(--u-line)!important;padding:8px 10px!important;}
  html body .u-calendar-months {grid-template-columns:minmax(0,1fr);}
  html body .u-calendar-month:nth-child(2) {display:none;}
  html body .u-calendar-main {padding:12px 16px;}
  html body .u-calendar-day {height:38px!important;min-height:38px!important;}
  html body .u-calendar-grid td {height:38px!important;}
  html body .u-calendar-footer {align-items:stretch;flex-direction:column;gap:10px;padding:12px 16px;}
  html body .u-calendar-footer-actions {justify-content:flex-end;}
  html body .u-calendar-manual label {flex:1 1 0;min-width:0;}
  html body .u-calendar-manual input {min-width:0;width:100%;}
  html body .u-calendar-clear {margin-right:auto;}
}
@media(prefers-reduced-motion:reduce){html body .u-calendar-dialog *{transition:none!important;animation:none!important;}}
@media(forced-colors:active){html body .u-calendar-dialog :is(.u-calendar-start,.u-calendar-end){border:2px solid Highlight!important;}html body .u-calendar-dialog .u-calendar-in-range{border-block:1px solid Highlight!important;}}

/* Common selection strip needs no visible caption. */
html body .u-filter-heading{display:none!important}

/* The former date/chevron gap was about 31px; keep half of it. */
html body .u-calendar-host {width:max-content;max-width:100%;}
html body .u-calendar-trigger,
html body .u-calendar-range-label .u-calendar-trigger {width:max-content!important;max-width:100%;min-width:0!important;}
html body .u-calendar-trigger > svg:last-child {margin-left:6.5px;}
html body .u-calendar-caption {min-width:0;overflow:hidden;text-overflow:ellipsis;}

/* The accepted 42px action style applies throughout the current sections. */
html[data-theme] body :is(button,a).u-icon-action[data-u-action-kind] {
  position:relative;box-sizing:border-box;width:42px!important;min-width:42px!important;max-width:42px!important;
  height:42px!important;min-height:42px!important;max-height:42px!important;flex:0 0 42px!important;
  display:inline-flex;align-items:center;justify-content:center;gap:0;padding:0!important;margin-block:0;
  border:1px solid var(--u-line)!important;border-radius:11px;background:var(--u-soft)!important;
  color:var(--u-text)!important;box-shadow:none!important;overflow:visible;text-decoration:none;
  font:500 13px/1.4 var(--u-font);vertical-align:middle;cursor:pointer;
}
html body :is(button,a).u-icon-action[hidden] {display:none!important;}
html body .u-icon-action > svg {
  display:block!important;width:20px!important;height:20px!important;flex:0 0 20px;
  fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;
}
html body .u-icon-action > svg.u-excel-brand-icon {width:24px!important;height:24px!important;flex-basis:24px;stroke:none!important;}
html body .u-icon-action[data-u-action-kind=upload]::after {
  content:'↑';position:absolute;right:4px;bottom:3px;width:12px;height:12px;line-height:12px;text-align:center;
  border-radius:4px;background:var(--u-surface);color:var(--u-text);font-size:12px;pointer-events:none;
}
html body .u-icon-action[data-u-action-kind=refresh-all]::after {
  content:'!';position:absolute;right:3px;bottom:3px;width:12px;height:12px;line-height:12px;text-align:center;
  border-radius:4px;background:var(--u-surface);color:var(--u-text);font-size:11px;font-weight:700;pointer-events:none;
}
html[data-theme] body :is(button,a).u-icon-action[data-u-action-kind]:hover:not(:disabled) {background:var(--u-active)!important;border-color:var(--u-accent)!important;}
html body .u-icon-action:focus-visible {outline:2px solid var(--u-accent);outline-offset:3px;}
html body .u-icon-action:disabled {opacity:.5;cursor:default;}
html body .u-action-tooltip {
  position:fixed;z-index:10100;width:max-content;max-width:min(260px,calc(100vw - 16px));
  padding:8px 10px;border:1px solid var(--u-line);border-radius:8px;background:var(--u-surface);
  color:var(--u-text);box-shadow:0 4px 12px #0002;font:400 12px/1.4 var(--u-font);
  white-space:normal;text-align:left;pointer-events:none;
}
html body .u-action-tooltip[hidden] {display:none!important;}

/* Shared logistics shell, matching the product workspace. */
html body #logistics-workspace > #logistics-filters {margin:20px 0 16px;min-height:90px;}
html body #logistics-filters > .u-workspace-scope {margin:0!important;}
html body #logistics-filters > .u-workspace-scope[hidden] {display:none!important;}
html body #logistics-workspace > .page {padding:0;min-width:0;}
html body #logistics-workspace .u-logistics-detail-head {margin:0 0 18px!important;}
html body #logistics-workspace .u-logistics-detail-head h2 {font-size:16px;line-height:24px;display:flex;align-items:center;gap:8px;margin:0 0 6px;}
html body #logistics-workspace .u-logistics-detail-head p {font-size:12px;line-height:18px;margin:0;}
html body #logistics-workspace > .unified-tabs a[aria-current=page] {color:var(--u-accent);border-bottom:2px solid var(--u-accent);font-weight:600;}
html body #logistics-workspace #storage-report :is(.notice,.table-wrap,details) {background:var(--u-surface);color:var(--u-text);border:1px solid var(--u-line);}
html body #logistics-workspace #storage-report .notice {background:var(--u-soft);color:var(--u-muted);}
html body #logistics-workspace #storage-report :is(.count,.badge) {background:var(--u-soft);color:var(--u-text);border:1px solid var(--u-line);border-top:3px solid var(--storage-zone,var(--u-muted));}
html body #logistics-workspace #storage-report .green {--storage-zone:var(--u-accent);}
html body #logistics-workspace #storage-report .yellow {--storage-zone:#9b863e;}
html[data-unified-theme=dark] body #logistics-workspace #storage-report .yellow {--storage-zone:#d5cc88;}
html body #logistics-workspace #storage-report .orange {--storage-zone:var(--u-warning-text);}
html body #logistics-workspace #storage-report .red {--storage-zone:var(--u-danger);}
html body #logistics-workspace #storage-report .unknown {--storage-zone:var(--u-muted);}
html body #logistics-workspace #storage-report .stale {color:var(--u-warning-text);}
