:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#202b35;background:#f6f8fb;font-synthesis:none;--ring-track:#e9ecf3}
*{box-sizing:border-box}
body{margin:0}
button,input,select,textarea{font:inherit}
button{cursor:pointer;border:0}
button:disabled{cursor:wait;opacity:.6}
[hidden]{display:none!important}
h1,h2,p{margin-top:0}
h1{font-size:30px;letter-spacing:-.035em;margin-bottom:8px}
h2{font-size:19px;letter-spacing:-.02em;margin-bottom:7px}
p{line-height:1.5;color:#687786}
.logo{display:flex;gap:9px;align-items:center;font-size:21px;font-weight:800;letter-spacing:-.04em;color:#222f3f}
.logo img{display:block;width:94px;height:94px;object-fit:contain;flex:none}
.logo-wordmark{white-space:nowrap}
.eyebrow{font-size:11px;font-weight:800;letter-spacing:.11em;text-transform:uppercase;color:#818991}
.auth-wrap{min-height:100vh;display:grid;place-items:center;padding:30px;background:radial-gradient(circle at 70% 15%,#e9ecef,transparent 35%),#f6f8fb}
.auth-card{width:min(100%,440px);padding:38px;background:#fff;border:1px solid #e8eaf1;border-radius:22px;box-shadow:0 22px 60px #1f2e4820}
.auth-card .logo{flex-direction:column;gap:5px;font-size:29px}
.auth-card .logo img{width:150px;height:150px}
.auth-quote{margin:14px 0 0;text-align:center;color:#474d54;font-size:16px;font-weight:750;line-height:1.35}
.auth-card .eyebrow{display:block;margin:22px 0 16px;text-align:center}
.auth-card h1{font-size:32px}
.auth-card form{display:grid;gap:17px;margin:28px 0 13px}
.auth-card small{color:#8b98a4;line-height:1.5;display:block}
.auth-switch{margin:8px 0 14px;text-align:center;font-size:14px}
.auth-switch a{color:#2166b5;font-weight:700;text-decoration:none}
.auth-switch a:hover{text-decoration:underline}
.registration-control{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;font-weight:650}
.registration-control .status{margin:0}
#public-registration-toggle[data-open=true]{border:1px solid #b66d5f;background:#fff6f2!important;color:#813b2e!important}
@media(max-height:800px){.auth-wrap{padding:18px}
.auth-card{padding:23px 28px}
.auth-card .logo{font-size:25px}
.auth-card .logo img{width:108px;height:108px}
.auth-quote{font-size:14px;margin-top:8px}
.auth-card .eyebrow{margin:13px 0 12px}
.auth-card h1{font-size:28px;margin-bottom:5px}
.auth-card form{gap:10px;margin:17px 0 8px}
.auth-card input{min-height:39px}
}
label{display:grid;gap:8px;font-size:13px;font-weight:700;color:#536274}
input,select{min-height:44px;width:100%;border:1px solid #dce2ea;border-radius:10px;background:#fff;color:#273644;padding:0 13px;outline:none}
input:focus,select:focus{border-color:#727a82;box-shadow:0 0 0 3px #727a8230}
input::placeholder{color:#a3abb7}
button:not(.nav):not(.quiet):not(.scope-badge){background:#314b27;color:#fff;padding:11px 17px;border-radius:10px;font-weight:700;min-height:43px}
button.secondary{background:#eceef0!important;color:#41484f!important}
button.quiet{background:transparent;color:#687786;padding:9px 12px;border-radius:8px}
.app{min-height:100vh;display:grid;grid-template-columns:236px minmax(0,1fr)}
aside{background:#fff;border-right:1px solid #e9edf1;padding:25px 14px;display:flex;flex-direction:column}
aside .logo{padding:0 6px}
.side-label{font-size:10px;font-weight:800;letter-spacing:.13em;text-transform:uppercase;color:#a0abb8;margin:29px 14px 13px}
nav{display:grid;gap:6px}
.nav{background:transparent;color:#697a8d;text-align:left;padding:13px 16px;border-radius:10px;font-size:14px;font-weight:650}
.nav span{padding-left:12px}
.nav:hover,.nav.active{background:#eceef0;color:#343a40}
.side-bottom{margin:auto 13px 0;border-top:1px solid #eef0f3;padding-top:22px;font-size:13px;font-weight:700}
.side-bottom small{display:block;color:#96a0ad;font-weight:400;margin-top:6px}
main{min-width:0}
.topbar{height:67px;background:#fff;border-bottom:1px solid #e9edf1;display:flex;align-items:center;justify-content:space-between;padding:0 37px}
.topbar strong{display:block;font-size:16px;margin-top:3px}
.topbar .topbar-workspace-title{font-size:18px;line-height:1.2;margin:0;min-width:0;overflow-wrap:anywhere}
.user-tools{display:flex;align-items:center;gap:18px;flex-shrink:0;font-size:13px;color:#7c8998}
.account-menu{position:relative}
.account-menu>summary{display:flex;align-items:center;gap:7px;cursor:pointer;list-style:none;white-space:nowrap}
.account-menu>summary::-webkit-details-marker{display:none}
.account-menu>summary:focus-visible{outline:2px solid #789173;outline-offset:4px;border-radius:5px}
.account-menu>summary:hover{color:#314b27}
.account-menu-icon{font-size:16px}
.account-menu-panel{position:absolute;z-index:60;top:calc(100% + 17px);right:0;width:min(330px,calc(100vw - 28px));max-height:calc(100vh - 92px);overflow:auto;padding:18px;background:#fff;border:1px solid #dce5d7;border-radius:13px;box-shadow:0 16px 40px #1a2a1d25}
.account-menu-panel strong{margin:0 0 5px;font-size:15px}
.account-menu-panel p{font-size:12px;margin:0 0 13px}
.account-menu-panel form{display:grid;gap:11px}
.account-menu-panel form label{gap:5px;font-size:12px}
.account-menu-panel form input{min-height:39px}
.account-menu-panel form button{width:100%}
.account-menu-panel form .status{margin:0}
.content{width:100%;min-width:0;padding:33px 38px 65px}
.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:27px}
.page-head p{margin:0}
.pill{display:inline-flex;align-items:center;background:#eceef0;color:#41484f;border-radius:30px;padding:7px 12px;font-size:12px;font-weight:750;white-space:nowrap}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:23px}
.metrics article,.panel,.callout{background:#fff;border:1px solid #e8ecf1;border-radius:15px}
.metrics article{padding:22px}
.metrics small{font-size:12px;color:#7c8b9b;font-weight:700;display:block}
.metrics strong{font-size:29px;letter-spacing:-.035em;display:block;margin:12px 0 7px}
.metrics span{font-size:12px;color:#9ba6b3}
.panel{padding:24px;margin:17px 0;box-shadow:0 2px 11px #1a294507}
.section-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}
.section-head p{font-size:13px;margin:0}
.callout{padding:19px 23px;background:#f0f2f4;border-color:#d8dde2;margin-bottom:22px}
.callout strong{display:block;color:#343b42;font-size:15px}
.callout p{font-size:13px;margin:6px 0 13px;color:#5a646e}
.callout.amber{background:#fff8e8;border-color:#f3dfad}
.callout.amber strong{color:#936c17}
.callout.amber p{color:#816f4b;margin-bottom:0}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.steps div{display:grid;gap:9px;align-content:start}
.steps b{display:grid;place-items:center;background:#eceef0;color:#41484f;border-radius:9px;width:28px;height:28px}
.steps strong{font-size:13px}
.steps span{font-size:12px;color:#8c99a7;line-height:1.5}
.source-list{display:grid;gap:11px}
#connections{container:connection-area / inline-size;width:100%}
.page-head.connection-page-head{display:flex;justify-content:flex-start;align-items:center;flex-wrap:wrap;gap:10px 20px;margin-bottom:19px}
.page-head.connection-page-head h1{margin:0;font-size:clamp(32px,3vw,40px);line-height:1.1}
.connection-add-actions{display:flex;align-items:center;flex-wrap:wrap;gap:7px}
button.marketplace-icon-button:not(.nav):not(.quiet):not(.scope-badge){display:inline-grid;place-items:center;width:43px;height:43px;min-height:43px;padding:6px;border:1px solid #dce5d7;border-radius:11px;background:#fff;color:#41484f;font-size:12px;transition:background-color 150ms ease,border-color 150ms ease,transform 150ms ease}
button.marketplace-icon-button:hover:not(.nav):not(.quiet):not(.scope-badge),button.marketplace-icon-button[aria-expanded=true]:not(.nav):not(.quiet):not(.scope-badge){background:#edf3e9;border-color:#9bb194;transform:translateY(-1px)}
button.marketplace-icon-button:focus-visible{outline:2px solid #66855e;outline-offset:2px}
button.marketplace-icon-button .marketplace-icon{width:27px;height:27px}
.connection-entities{margin:0 0 14px;padding:13px 18px}
.entity-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.entity-section-head h2{display:flex;align-items:center;gap:7px;margin:0;font-size:14px;color:#3f5044}
.entity-section-head h2 span{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:12px;background:#edf1ed;color:#4f5c50;font-size:11px}
.entity-section-details{margin-top:12px;padding-top:9px;border-top:1px solid #e2e8e5}
.entity-section-details>summary{cursor:pointer;font-size:12px;font-weight:650;color:#627166}
.entity-search-help{display:block;margin-top:8px;color:#728075;font-size:11px;line-height:1.4}
.connection-entities .status:empty,.entity-search-results:empty{display:none}
.legal-entity-list{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 0}
.legal-entity-list>small{color:#879187}
.legal-entity-row{display:grid;gap:3px;min-width:220px;max-width:310px;border:1px solid #dfe7dd;background:#f8faf7;padding:8px 11px;border-radius:9px}
.legal-entity-row strong{font-size:12px}
.legal-entity-row small{font-size:10px;color:#6b786d}
.entity-record-details{margin-top:2px}
.entity-record-details summary{cursor:pointer;font-size:11px;color:#477054}
.entity-record-details small{display:block;margin-top:4px;max-width:280px;overflow-wrap:anywhere}
.entity-delete{margin-top:5px;padding-top:5px;border-top:1px solid #e3e9e1}
.entity-delete>summary{cursor:pointer;color:#a55249;font-size:11px}
.entity-delete>small{display:block;margin-top:6px;line-height:1.4}
.entity-delete-form{display:grid;gap:7px;margin-top:8px}
.entity-delete-form label{font-size:11px}
.entity-delete-form input{min-height:36px}
.entity-delete-form button{justify-self:start;min-height:34px!important;padding:7px 10px!important;background:#f9e5e2!important;color:#9d3e37!important;font-size:11px}
.entity-search-form{display:grid;gap:6px;margin:12px 0 0}
.entity-search-form>label{font-size:12px;font-weight:700}
.entity-search-form>div{display:flex;gap:8px;max-width:640px}
.entity-search-form input{min-width:0;flex:1}
.entity-search-form button,.entity-provider-form button{flex:none}
.entity-search-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:8px;margin:8px 0 14px}
.entity-search-result{display:grid;gap:5px;align-content:start;border:1px solid #dfe7dd;border-radius:9px;padding:11px;background:#f8faf7}
.entity-search-result strong{font-size:12px}
.entity-search-result small{font-size:11px;color:#647367;line-height:1.35}
.entity-search-result:has(input:checked){border-color:#63846b;background:#f0f7ef}
.entity-search-choice{display:flex;align-items:flex-start;gap:8px;cursor:pointer}
.entity-search-choice input{width:16px;min-height:16px;height:16px;margin:2px 0 0;flex:none}
.entity-search-choice span{display:grid;gap:3px}
.entity-provider-form{display:flex;align-items:end;gap:8px;max-width:640px}
.entity-provider-form label{flex:1;min-width:0}
@media(max-width:650px){.entity-search-form>div,.entity-provider-form{flex-direction:column;align-items:stretch}}
.connection-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:stretch}
.connection-new-grid{display:grid;grid-template-columns:minmax(0,1fr)}
.connection-card{container:connection-card / inline-size;margin:0;padding:15px;display:flex;flex-direction:column;gap:10px;min-width:0}
.connection-just-added{outline:2px solid #6c9968;outline-offset:2px}
.connection-card-head{display:flex;align-items:center;gap:10px;min-width:0}
.connection-card-head>div{min-width:0;flex:1}
.connection-rename-toggle{flex:none;align-self:flex-start;min-width:30px;min-height:30px;padding:4px!important;font-size:19px;line-height:1}
.connection-rename-form{padding:11px;border:1px solid #dce5d7;border-radius:9px;background:#f7faf6}
.connection-rename-form input{width:100%}
.connection-rename-actions{display:flex;align-items:center;gap:8px}
.connection-rename-actions .quiet{min-height:34px;padding:6px 10px}
.connection-card-head img,.connection-new summary img{display:block;width:34px;height:34px;object-fit:cover;border-radius:8px;flex:none}
.store-avatar{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;width:42px;height:42px;border:1px solid #dce5d7;border-radius:11px;background:#f1f5ef}
.store-avatar .store-avatar-image,.connection-card-head .store-avatar .store-avatar-image{display:block;width:40px;height:40px;object-fit:cover;border-radius:10px}
.connection-logo-control{border-top:1px solid #e8ecf1;padding-top:8px}
.connection-logo-control>summary{cursor:pointer;color:#526257;font-size:11px;font-weight:700}
.connection-logo-control .ad-form{margin-top:9px}
.connection-logo-control input[type=file]{padding:8px;min-height:38px;font-size:11px}
.connection-logo-control small{color:#758278;line-height:1.4}
.connection-logo-full{display:flex;align-items:center;gap:7px;font-size:11px;color:#526257}
.connection-logo-full input{width:15px;height:15px;min-height:0;margin:0}
.connection-logo-preview{display:flex;align-items:center;gap:9px}
.connection-logo-preview[hidden]{display:none}
.connection-logo-preview-status{min-height:0;margin:0;color:#758278;font-size:11px}
.connection-logo-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.connection-logo-actions .quiet{font-size:11px}
.connection-card-head h3{font-size:17px;line-height:1.2;margin:0 0 4px;overflow-wrap:anywhere}
.connection-card-head small{color:#718174;font-size:11px;line-height:1.35;overflow-wrap:anywhere}
.connection-card-states{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.connection-card-states.wb-states{grid-template-columns:repeat(3,minmax(0,1fr))}
@container connection-card (max-width:410px){.connection-card-states.wb-states{grid-template-columns:1fr 1fr}.connection-card-states.wb-states .advertising-state:last-child{grid-column:1/-1}}
.connection-card-steps{display:flex;justify-content:space-between;gap:7px;flex-wrap:wrap;color:#526257;font-size:11px}
.connection-card-steps span{display:inline-flex;align-items:center;gap:5px}
.connection-card-steps b{display:grid;place-items:center;width:19px;height:19px;border-radius:50%;background:#e4ece1;color:#314b27;font-size:10px}
.connection-help{margin:0}
.connection-help-section{margin:10px 0;border-top:1px solid #dce5d7;padding-top:9px}
.connection-help-section strong{display:block;color:#314b27}
.connection-card-actions{display:grid;gap:7px;margin-top:auto}
.connection-card-actions .ad-credentials{min-width:0}
.connection-entity{border-top:1px solid #e8ecf1;padding-top:9px;display:grid;gap:5px;font-size:11px}
.connection-entity-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.connection-entity-head span{color:#68796d}
.connection-entity-head strong{font-size:11px;text-align:right}
.connection-entity .entity-linked{color:#286748}
.connection-entity .entity-unlinked{color:#8b622f}
.connection-entity>small{color:#758278;line-height:1.35}
.connection-entity .entity-open-registry{justify-self:start;padding:4px 0;font-size:11px}
.admin-client-list{display:grid;gap:8px;margin-top:15px}
.admin-client-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:7px 12px;border:1px solid #e2e8e5;border-radius:10px;padding:11px 14px}
.admin-client-row span{color:#687786;overflow-wrap:anywhere}
.manager-account-options{grid-column:1/-1;border:1px solid #dce5d7;border-radius:10px;padding:12px}
.manager-account-options legend{font-size:13px;font-weight:700;color:#536274}
.manager-account-list{display:flex;flex-wrap:wrap;gap:8px}
.manager-account-choice{display:flex;align-items:center;gap:8px;width:max-content;max-width:100%;padding:8px 10px;border:1px solid #dce5d7;border-radius:9px;font-size:12px;font-weight:650}
.manager-account-choice input{width:16px;height:16px;min-height:0;margin:0;flex:none}
.admin-manager-list,.feedback-list{display:grid;gap:10px;margin-top:15px}
.manager-row,.feedback-item{border:1px solid #e2e8e5;border-radius:10px;padding:13px 15px}
.manager-row-head{display:flex;flex-wrap:wrap;gap:6px 15px;align-items:center}
.manager-row-head span,.feedback-item small{color:#687786;font-size:12px;overflow-wrap:anywhere}
.manager-access{margin-top:9px}
.manager-access>summary{cursor:pointer;color:#536274;font-size:12px;font-weight:700}
.manager-access-form,.manager-password-form,.feedback-form{display:grid;gap:13px;margin-top:13px}
.manager-access-form button,.manager-password-form button,.feedback-form button{justify-self:start}
.feedback-form textarea{width:100%;min-height:130px;padding:12px 13px;border:1px solid #dce2ea;border-radius:10px;background:#fff;color:#273644;resize:vertical;outline:none}
.feedback-form textarea:focus{border-color:#727a82;box-shadow:0 0 0 3px #727a8230}
.feedback-item strong,.feedback-item small{display:block}
.feedback-item p{white-space:pre-wrap;overflow-wrap:anywhere;margin:9px 0 0;color:inherit}
.client-password-reset{grid-column:1/-1}
.client-password-reset>summary{width:max-content;max-width:100%;cursor:pointer;color:#667568;font-size:11px}
.client-password-reset-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:11px;max-width:600px}
.client-password-reset-form label{font-size:11px}
.client-password-reset-form input{min-height:37px}
.client-password-reset-form button{justify-self:start;min-height:36px!important;padding:7px 12px!important;font-size:11px!important}
.client-password-reset-form .status{grid-column:1/-1;margin:0}
@media(max-width:650px){.admin-client-row,.client-password-reset-form{grid-template-columns:1fr}}
.connection-entity .entity-assignment{border:0;padding:3px 0 0}
.connection-entity .entity-assignment summary,.entity-history summary{font-size:11px;color:#68796d;cursor:pointer}
.connection-entity .entity-assignment .ad-form{margin-top:9px}
.connection-entity .entity-assignment button[type=submit]{justify-self:start;min-height:34px!important;padding:6px 10px!important;font-size:11px!important}
.entity-history-list{display:grid;gap:4px;padding:8px 0;color:#68796d}
.connection-danger{border-top:1px solid #e8ecf1;padding-top:9px;margin-top:3px}
.connection-danger summary{width:max-content;max-width:100%;cursor:pointer;color:#7b8791;font-size:11px;font-weight:650}
.connection-danger summary:hover,.connection-danger[open] summary{color:#9b4e46}
.connection-danger p{font-size:11px;margin:10px 0 7px;max-width:560px}
.connection-danger .ad-form{margin-top:8px}
.connection-danger button[type=submit]{justify-self:start;min-height:34px!important;padding:6px 10px!important;font-size:11px!important}
.connection-card-message:empty,#connection-status:empty{display:none}
.connection-new{margin:0 0 14px;padding:15px 18px;min-width:0}
.connection-new>summary{display:flex;align-items:center;gap:10px;cursor:pointer;font-size:15px;font-weight:750;list-style:none}
.connection-new>summary::-webkit-details-marker{display:none}
.connection-new>summary::after{content:'⌄';margin-left:auto;color:#667964}
.connection-new[open]>summary::after{content:'⌃'}
.connection-new summary img{width:27px;height:27px;border-radius:6px}
.connection-pending{font-size:12px;color:#775f4e}
.connection-new .form-grid{margin-top:14px}
.connection-optional{grid-column:1/-1;border-top:1px solid #e2e8e5;padding-top:10px}
.connection-optional summary{width:max-content;max-width:100%;cursor:pointer;font-size:12px;font-weight:650;color:#64766a}
.connection-optional[open]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.connection-optional[open] summary{grid-column:1/-1}
@media(max-width:650px){.connection-optional[open]{grid-template-columns:1fr}}
.connection-steps{display:grid;gap:8px;margin:16px 0;padding-left:22px;font-size:12px;color:#536652}
.connection-steps li strong{display:block;color:#26382a}
.connection-steps li span{display:block;margin-top:3px;line-height:1.45}
.connection-security{margin:18px 0;color:#6a786c;font-size:12px}
.connection-security summary{cursor:pointer;font-weight:700}
.connection-security p{max-width:760px;line-height:1.5}
.ad-connect-cta{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border:1px solid #dce5d7;border-radius:11px;background:#f6f9f3;padding:12px 15px;color:#526257;font-size:13px}
.ad-connect-cta button{min-height:35px!important;padding:7px 11px!important;font-size:12px!important}
.source-row{border:1px solid #edf0f3;border-radius:10px;padding:15px 17px;display:flex;justify-content:space-between;gap:18px;align-items:center}
.source-row strong{display:block;font-size:14px}
.source-row small{display:block;color:#8a98a6;margin-top:5px}
.source-row .count{font-size:13px;color:#41484f;font-weight:750}
.empty{padding:24px;color:#8a98a6;font-size:14px;text-align:center}
.toolbar{display:flex;align-items:end;gap:11px;margin:22px 0}
.toolbar label{width:230px}
.toolbar input[type=search]{max-width:350px;margin-left:auto}
.table-wrap{overflow:auto}
table{border-collapse:collapse;width:100%;min-width:990px;text-align:left}
th{font-size:11px;color:#8997a5;text-transform:uppercase;letter-spacing:.06em;padding:12px 13px;border-bottom:1px solid #e9edf1}
td{font-size:13px;padding:11px 9px;border-bottom:1px solid #f0f2f5;vertical-align:middle}
tbody tr{cursor:pointer}
tbody tr:hover,tbody tr.selected{background:#f1f3f5}
td strong{display:block;color:#2b3848}
td small{display:block;color:#9ba5b0;margin-top:4px}
.badge{display:inline-flex;background:#f3f4f6;color:#7a8794;border-radius:6px;padding:5px 8px;font-size:11px;font-weight:700}
.badge.good{background:#e8f7ef;color:#319269}
.products-toolbar{flex-wrap:wrap;margin:15px 0}
.products-toolbar input[type=search]{min-width:230px;flex:1;margin-left:0}
.products-toolbar button{white-space:nowrap}
.catalog-panel{margin:0 20px 16px;padding:17px 18px;border:1px solid #e8ecf1;border-radius:10px;background:#f8f9fc}
.catalog-panel .section-head{margin-bottom:13px}
.filter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 15px}
.filter-grid input,.filter-grid select{min-height:38px}
.column-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:8px}
.column-control{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:7px 10px;border:1px solid #e8ecf1;border-radius:8px}
.column-control label{display:flex;align-items:center;gap:9px;font-size:12px}
.column-control input{width:auto;min-height:auto}
.column-movers{display:flex}
.column-movers button{padding:4px 7px}
.catalog-heading{white-space:nowrap;cursor:grab;user-select:none}
.catalog-heading:hover{color:#343b42;background:#f1f3f5}
.catalog-heading:active{cursor:grabbing}
td[data-column=photo]{width:65px}
td[data-column=sku]{min-width:90px}
td[data-column=public_sku]{min-width:135px;white-space:nowrap;font-variant-numeric:tabular-nums}
td[data-column=title]{min-width:205px;max-width:360px}
td[data-column=brand]{min-width:105px;max-width:190px}
td[data-column=category]{min-width:160px;max-width:320px;line-height:1.35}
td[data-column=status]{min-width:120px;max-width:170px}
td[data-column=content_rating]{min-width:125px;white-space:nowrap;font-variant-numeric:tabular-nums}
td[data-column=price]{min-width:100px;white-space:nowrap}
td[data-column=barcodes]{min-width:130px;max-width:170px;overflow-wrap:anywhere}
td[data-column=created_at]{min-width:100px;white-space:nowrap}
td[data-column=problem]{min-width:150px;max-width:260px}
.product-name{line-height:1.35}
.cost-display{display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:120px}
.cost-display strong{white-space:nowrap}
.cost-controls{display:flex;align-items:center;gap:5px}
.cost-edit{min-width:31px!important;min-height:31px!important;padding:4px!important;background:#eceef0!important;color:#41484f!important;border-radius:7px!important}
.cost-history-button{min-height:29px!important;padding:4px 6px!important;background:#f2f4f8!important;color:#627286!important;font-size:11px}
.cost-history{display:grid;gap:5px;min-width:170px}
.cost-history>strong{font-size:12px}
.cost-history .quiet{justify-self:start;font-size:11px;padding:2px 0}
.cost-history-row{font-size:11px;white-space:nowrap}
.inline-cost-form{display:grid;gap:5px;min-width:145px}
.inline-cost-form input{min-height:32px;padding:3px 7px;font-size:12px}
.inline-cost-actions{display:flex;gap:4px}
.inline-cost-actions button{min-height:29px!important;padding:4px 6px!important;font-size:11px}
.inline-cost-message{font-size:11px;line-height:1.3}
.inline-cost-message.error{color:#c04f4f}
.product-photo{display:grid;place-items:center;width:56px;height:56px;border:1px solid #e9edf2;border-radius:9px;background:#f7f8fa;overflow:hidden;flex-shrink:0}
.product-photo img{width:100%;height:100%;object-fit:contain}
.product-photo span{font-size:10px;color:#a4afba;text-align:center;padding:3px}
.product-photo.large{width:100px;height:100px;border-radius:13px}
.product-photo.large span{font-size:12px}
.badge.ozon-archive{background:#eff0f3;color:#6b7280}
.badge.ozon-problem{background:#fff0e7;color:#ad5624}
.badge.ozon-unknown{background:#f0f2f5;color:#7c8794}
.badge.ozon-sale{background:#e8f7ef;color:#258762}
.badge.ozon-ready{background:#fff0dc;color:#995714}
.badge.ozon-other{background:#f0f2f5;color:#697786}
td[data-column=status] .badge + .badge{margin:3px 0 0 4px}
td .problem-detail{max-width:225px;line-height:1.35;color:#a5522a;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.editor-head{justify-content:flex-start;align-items:flex-start}
.editor-head h2{margin-top:5px}
.editor-head .ozon-note{font-size:13px;margin:8px 0 0}
.editor-head .ozon-note.problem{color:#ad5624}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 22px}
.form-action{display:flex;align-items:end}
.form-action button{min-width:180px}
.editor{border-color:#cfd6dc}
.editor .section-head{margin-bottom:22px}
.editor .section-head p{margin:0}
.fineprint{font-size:12px;color:#929daa;margin:17px 0 0}
.status{min-height:20px;font-size:13px;margin:12px 0}
#products-status:empty,#catalog-view-status:empty{display:none}
.status.error{color:#c04f4f}
.status.ok{color:#25895f}
@media(max-width:1000px){.metrics{grid-template-columns:repeat(2,1fr)}
.content{padding:28px 23px}
.topbar{padding:0 23px}
}
@media(max-width:710px){.app{grid-template-columns:1fr}
aside{position:static;padding:12px 14px;display:block}
.side-label,.side-bottom{display:none}
aside .logo{font-size:19px;padding:0 4px 11px}
aside .logo img{width:62px;height:62px}
nav{display:flex}
.nav{flex:1;text-align:center;padding:9px 4px;font-size:13px}
.nav span{padding-left:2px}
.topbar{height:auto;min-height:59px;padding:8px 16px}
.topbar .eyebrow{display:none}
.account-menu #user-email{display:none}
.content{padding:23px 14px}
.page-head{display:block}
.page-head .pill{margin-top:10px}
.page-head h1{font-size:25px}
.metrics{gap:10px}
.metrics article{padding:15px}
.metrics strong{font-size:25px}
.panel{padding:16px}
.steps,.form-grid{grid-template-columns:1fr}
.toolbar{flex-wrap:wrap}
.toolbar label{width:calc(100% - 150px)}
.toolbar input[type=search]{max-width:none;margin-left:0}
.source-row{align-items:flex-start;flex-direction:column}
.auth-card{padding:26px}
.filter-grid{grid-template-columns:1fr 1fr}
}

.dashboard-actions{display:flex;justify-content:flex-end;margin:-12px 0 13px}
.charts{display:grid;grid-template-columns:1fr 1.4fr;gap:16px}
.charts .panel{margin:0 0 8px;min-height:280px}
.coverage-chart{display:flex;align-items:center;justify-content:space-around;gap:20px;padding:11px 0}
.ring{width:156px;height:156px;border-radius:50%;background:conic-gradient(#5b636b 0%,#e9ecf3 0%);display:grid;place-items:center;flex-shrink:0}
.ring span{width:118px;height:118px;border-radius:50%;background:white;display:grid;place-items:center;font-size:25px;font-weight:800;color:#343b42}
.legend{font-size:13px;line-height:2;color:#677484}
.legend strong{color:#263442}
.bar-chart{display:grid;gap:12px;padding-top:8px}
.bar-line{display:grid;grid-template-columns:minmax(100px,1fr) minmax(90px,2fr) 100px;align-items:center;gap:11px;font-size:12px}
.bar-line .bar-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bar-track{height:10px;border-radius:9px;background:#eef0f6;overflow:hidden}
.bar-fill{height:100%;border-radius:9px;background:linear-gradient(90deg,#8c969f,#545d66)}
.bar-value{text-align:right;font-weight:700;color:#41484f}
.widget-controls{display:grid;gap:7px;margin:8px 0 20px}
.widget-control{display:flex;align-items:center;justify-content:space-between;gap:13px;border:1px solid #edf0f4;border-radius:9px;padding:8px 11px}
.widget-control label{display:flex;align-items:center;gap:10px}
.widget-control input{min-height:auto;width:auto}
.widget-control button{background:#eceef0;color:#41484f;border-radius:7px;padding:5px 9px}
.widget-control button:disabled{opacity:.4}

/* Product table: the filter row follows the same columns as the data. */
.product-table-panel{padding:20px 0 14px}
.product-table-panel>.section-head{padding:0 20px;align-items:center;gap:12px}
.product-table-head{display:grid;grid-template-columns:minmax(225px,1fr) auto minmax(225px,1fr);grid-template-areas:"heading metrics actions"}
.product-table-head h2{grid-area:heading;display:inline-flex;align-items:center;gap:8px;margin:0;white-space:nowrap}
.marketplace-logos{display:inline-flex;align-items:center;gap:5px}
#cost-heading,#finance-heading{display:flex;align-items:center;gap:8px}
.marketplace-icon{display:block;width:27px;height:27px;object-fit:cover;border-radius:6px;flex:none}
.marketplace-logos .marketplace-icon{width:29px;height:29px}
.marketplace-inline{display:inline-flex;align-items:center;gap:6px;min-width:0;vertical-align:middle}
.marketplace-inline .marketplace-icon{width:20px;height:20px;border-radius:5px}
.marketplace-inline>span{min-width:0;overflow-wrap:anywhere}
.table-actions{display:flex;align-items:center;gap:12px;white-space:nowrap}
.product-table-head .table-actions{grid-area:actions;justify-content:flex-end}
.table-actions .quiet{font-size:12px}
.table-actions .secondary{min-height:34px!important;padding:7px 11px!important;font-size:12px}
.product-table-panel table{min-width:1180px}
.product-table-panel thead{background:#f7f9fc}
.product-table-panel th{white-space:nowrap;padding:11px 10px;border-right:1px solid #edf0f4}
.product-table-panel td{padding:10px;border-right:1px solid #f0f2f5}
.product-table-panel tbody tr:last-child td{border-bottom:0}
.catalog-filter-cell{padding:6px 8px!important;border-bottom:1px solid #dfe5ed;background:#fbfcfe;vertical-align:middle}
.catalog-filter-bar{display:flex;align-items:center;gap:4px;min-width:0}
.catalog-filter-controls{display:flex;flex:1 1 auto;gap:4px;align-items:center;min-width:0}
.catalog-filter-controls input,.catalog-filter-controls select{height:29px;min-height:29px;min-width:38px;width:100%;flex:1 1 0;padding:0 6px;border-radius:4px;font-size:11px}
.catalog-filter-controls input[type=date]{min-width:105px}
.catalog-filter-controls select{min-width:63px}
.catalog-filter-cell[data-column=photo] .catalog-filter-controls{min-width:66px}
.catalog-filter-cell[data-column=price] .catalog-filter-controls,.catalog-filter-cell[data-column=content_rating] .catalog-filter-controls,.catalog-filter-cell[data-column=created_at] .catalog-filter-controls{min-width:130px}
button.filter-funnel{flex:0 0 auto;display:grid;place-items:center;min-height:29px!important;width:28px;padding:3px!important;border-radius:4px!important;background:transparent!important;color:#819098!important}
button.filter-funnel:hover,button.filter-funnel.active{background:#e8f2ee!important;color:#268363!important}
.filter-funnel svg{display:block;width:16px;height:16px}
.column-filter-popover{position:fixed;z-index:50;width:min(310px,calc(100vw - 16px));max-height:calc(100vh - 16px);display:flex;flex-direction:column;gap:9px;padding:14px;background:#fff;color:#273644;border:1px solid #dce2ea;border-radius:11px;box-shadow:0 15px 40px #17253d30;font-size:12px}
.column-filter-title{font-size:13px}
.column-filter-sort{display:flex;gap:5px}
.column-filter-sort button{flex:1;min-height:31px;padding:5px 6px;font-size:11px;text-align:center;background:#f2f4f9;color:#4f6074}
.column-filter-search{min-height:34px;font-size:12px}
.column-filter-all,.column-filter-option{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:500;cursor:pointer;min-width:0}
.column-filter-all{border-bottom:1px solid #e9edf1;padding:3px 2px 9px;font-weight:700}
.column-filter-all input,.column-filter-option input{width:15px;height:15px;min-height:15px;flex:0 0 15px;margin:0;accent-color:#535a62}
.column-filter-list{min-height:30px;max-height:230px;overflow:auto;display:grid;align-content:start;gap:1px}
.column-filter-option{padding:6px 4px;border-radius:5px}
.column-filter-option:hover{background:#f4f2ff}
.column-filter-value{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.column-filter-option small{color:#8a98a6}
.column-filter-empty{padding:12px;color:#8a98a6;text-align:center}
.column-filter-actions{display:flex;align-items:center;justify-content:flex-end;gap:3px;border-top:1px solid #e9edf1;padding-top:10px}
.column-filter-actions button{min-height:31px!important;padding:5px 8px!important;font-size:11px}
.product-link{display:block;color:#1d61c0;font-weight:700;text-decoration:none}
.product-link:hover{text-decoration:underline}
.product-pager{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px;padding:16px 20px 2px;border-top:1px solid #e9edf1}
.product-table-panel .product-pager>.page-controls{grid-column:1/-1;grid-row:1}
.product-table-panel #page-controls{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
#page-prev{grid-column:1;justify-self:start}
#page-label{grid-column:2;justify-self:center;white-space:nowrap}
#page-next{grid-column:3;justify-self:end}
#scroll-controls{display:flex;justify-content:space-between}
.product-pager>#product-cost-count{grid-column:1;grid-row:1}
.product-pager>#load-more{grid-column:2;grid-row:2;justify-self:center}
.product-pager>#product-cost-more{grid-column:2;grid-row:1;justify-self:center}
.page-controls{align-items:center;gap:11px;color:#667687;font-size:12px}
.page-controls button{min-height:34px!important;padding:6px 10px!important;font-size:12px}
#load-more{min-height:36px;padding:7px 13px}
.theme-toggle{display:grid;place-items:center;width:35px;height:35px;padding:0!important;border:1px solid #dfe5ed!important;font-size:20px;line-height:1}
.theme-toggle:hover{background:#eceef0}

html[data-theme=dark]{color:#e6edf5;background:#111827;--ring-track:#344258}
html[data-theme=dark] .auth-wrap{background:radial-gradient(circle at 70% 15%,#2e363f,transparent 35%),#111827}
html[data-theme=dark] .auth-quote{color:#d1d8df}
html[data-theme=dark] aside,html[data-theme=dark] .topbar,html[data-theme=dark] .auth-card,html[data-theme=dark] .metrics article,html[data-theme=dark] .panel{background:#1b2634;border-color:#314153;box-shadow:none}
html[data-theme=dark] .catalog-panel{background:#223045;border-color:#344258}
html[data-theme=dark] aside,html[data-theme=dark] .topbar{border-color:#314153}
html[data-theme=dark] .logo,html[data-theme=dark] td strong,html[data-theme=dark] .topbar strong,html[data-theme=dark] .legend strong{color:#e6edf5}
html[data-theme=dark] p,html[data-theme=dark] label,html[data-theme=dark] .user-tools,html[data-theme=dark] .legend,html[data-theme=dark] .page-controls{color:#a8b8c9}
html[data-theme=dark] input,html[data-theme=dark] select{background:#111b29;color:#e6edf5;border-color:#415168;color-scheme:dark}
html[data-theme=dark] input::placeholder{color:#8193a6}
html[data-theme=dark] button.quiet{color:#a8b8c9}
html[data-theme=dark] .nav{color:#a8b8c9}
html[data-theme=dark] .nav:hover,html[data-theme=dark] .nav.active,html[data-theme=dark] .catalog-heading:hover,html[data-theme=dark] tbody tr:hover,html[data-theme=dark] tbody tr.selected{background:#303840;color:#e1e7ed}
html[data-theme=dark] .pill,html[data-theme=dark] .steps b,html[data-theme=dark] .cost-edit{background:#303840!important;color:#e1e7ed!important}
html[data-theme=dark] .source-row,html[data-theme=dark] .column-control,html[data-theme=dark] .widget-control{border-color:#344258}
html[data-theme=dark] .callout{background:#303840;border-color:#535f69}
html[data-theme=dark] .callout strong,html[data-theme=dark] .callout p{color:#e1e7ed}
html[data-theme=dark] .callout.amber{background:#403421;border-color:#745728}
html[data-theme=dark] .callout.amber strong,html[data-theme=dark] .callout.amber p{color:#f1d497}
html[data-theme=dark] .product-table-panel thead,html[data-theme=dark] .catalog-filter-cell{background:#223045}
html[data-theme=dark] .product-table-panel th,html[data-theme=dark] .product-table-panel td,html[data-theme=dark] .catalog-filter-cell,html[data-theme=dark] .product-pager{border-color:#344258}
html[data-theme=dark] .product-link{color:#8cb9ff}
html[data-theme=dark] .product-photo{background:#e4e9ed;border-color:#415168}
html[data-theme=dark] .badge{background:#344258;color:#d3dbe4}
html[data-theme=dark] .badge.good,html[data-theme=dark] .badge.ozon-sale{background:#184b3d;color:#b9f2da}
html[data-theme=dark] .badge.ozon-ready{background:#503b24;color:#ffd8aa}
html[data-theme=dark] .badge.ozon-other{background:#344258;color:#d3dbe4}
html[data-theme=dark] .badge.ozon-archive{background:#344258;color:#d3dbe4}
html[data-theme=dark] .badge.ozon-problem{background:#513526;color:#ffd0a8}
html[data-theme=dark] .badge.ozon-unknown{background:#344258;color:#d3dbe4}
html[data-theme=dark] .ring span{background:#1b2634;color:#e6edf5}
html[data-theme=dark] .bar-track{background:#344258}
html[data-theme=dark] button.filter-funnel:hover,html[data-theme=dark] button.filter-funnel.active{background:#184b3d!important;color:#b9f2da!important}
html[data-theme=dark] .column-filter-popover{background:#1b2634;color:#e6edf5;border-color:#415168;box-shadow:0 15px 40px #03091288}
html[data-theme=dark] .column-filter-all,html[data-theme=dark] .column-filter-actions{border-color:#344258}
html[data-theme=dark] .column-filter-option:hover,html[data-theme=dark] .column-filter-sort button{background:#344258;color:#e6edf5}
html[data-theme=dark] .theme-toggle:hover{background:#344258}
html[data-theme=dark] button.secondary,html[data-theme=dark] .cost-history-button{background:#344258!important;color:#e1e7ed!important}
html[data-theme=dark] .table-actions .quiet:hover,html[data-theme=dark] .page-controls button:hover{background:#344258}
@media(min-width:1800px){
.content{padding-left:30px;padding-right:30px}
.product-table-panel td[data-column=title]{width:34%;min-width:330px;max-width:none}
.product-table-panel td[data-column=brand]{min-width:130px;max-width:none}
.product-table-panel td[data-column=category]{width:15%;min-width:220px;max-width:none}
.product-table-panel td[data-column=barcodes]{width:18%;min-width:170px;max-width:none}
.product-table-panel td[data-column=problem]{min-width:190px;max-width:none}
.product-table-panel td .problem-detail{max-width:none;-webkit-line-clamp:4}
}
@media(max-width:1000px){.charts{grid-template-columns:1fr}
}
@media(max-width:900px){.product-pager{grid-template-columns:1fr}
.product-table-panel .product-pager>.page-controls,.product-pager>#product-cost-count{grid-column:1;grid-row:1}
.product-pager>#load-more,.product-pager>#product-cost-more{grid-column:1;grid-row:2}
}
@media(max-width:550px){.product-table-panel #page-controls{grid-template-columns:1fr 1fr;row-gap:9px}
#page-prev{grid-column:1;grid-row:1}
#page-next{grid-column:2;grid-row:1}
#page-label{grid-column:1/-1;grid-row:2}
.table-actions{flex-wrap:wrap;justify-content:flex-end;white-space:normal}
}
@media(max-width:710px){.bar-line{grid-template-columns:90px minmax(60px,1fr) 84px}
.ring{width:120px;height:120px}
.ring span{width:90px;height:90px;font-size:20px}
.coverage-chart{justify-content:flex-start}
}

/* Product workspace: compact navigation across modules, scope and real-data counts. */
.product-workspace-tabs{display:flex;gap:5px;overflow-x:auto;padding:6px;margin:0 0 17px;border:1px solid #e4e9ef;border-radius:13px;background:#fff}
.workspace-toolbar{min-width:0}
.product-workspace-tabs button:not(.nav):not(.quiet){flex:0 0 auto;min-height:41px;padding:8px 15px;background:transparent;color:#485869;border:1px solid transparent;border-radius:8px;white-space:nowrap;font-size:13px}
.product-workspace-tabs button.active:not(.nav):not(.quiet){background:#eceef0;color:#343a40;border-color:#cbd1d6}
.product-workspace-tabs button:disabled:not(.nav):not(.quiet){opacity:.55;cursor:not-allowed}
.product-scope-bar{display:flex;align-items:end;justify-content:space-between;gap:18px;flex-wrap:wrap;background:#fff;border:1px solid #e4e9ef;border-radius:13px;padding:13px 16px;margin-bottom:9px}
.product-scope-actions{display:flex;align-items:end;gap:10px;margin-left:auto}
.product-account-bar{display:flex;align-items:center;gap:12px;min-width:0;padding:10px 16px;margin-bottom:16px;background:#fff;border:1px solid #e4e9ef;border-radius:13px}
.product-account-switcher{display:flex;align-items:center;flex-wrap:wrap;gap:7px;min-width:0}
.product-account-empty{color:#738276;font-size:12px}
button.product-account-toggle:not(.nav):not(.quiet):not(.scope-badge){display:inline-flex;align-items:center;gap:8px;flex:none;min-height:44px;max-width:155px;padding:4px 9px;background:#fff;color:#38443e;border:1px solid #dce5d7;border-radius:11px;font-size:11px;white-space:nowrap}
button.product-account-toggle[aria-pressed=true]:not(.nav):not(.quiet):not(.scope-badge){border-color:#4b6450;background:#eaf1e8;box-shadow:inset 0 0 0 1px #4b6450}
button.product-account-toggle[data-account]:not([data-account=""]):not(.nav):not(.quiet):not(.scope-badge){position:relative;justify-content:center;width:54px;height:54px;min-height:54px;max-width:none;padding:5px}
button.product-account-toggle[data-account]:not([data-account=""]) .store-avatar{width:42px;height:42px}
.product-account-marketplace{position:absolute;right:1px;bottom:1px;display:flex;align-items:center;justify-content:center;width:18px;height:18px;border:1px solid #dce5d7;border-radius:6px;background:#fff}
.product-account-marketplace .marketplace-icon{width:14px;height:14px;border-radius:4px}
button.product-account-toggle:hover:not(.nav):not(.quiet):not(.scope-badge){border-color:#779077}
button.product-account-toggle:focus-visible{outline:2px solid #64845e;outline-offset:2px}
.product-scope-actions .excel-button{align-self:center}
.product-scope-actions .refresh-products{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:39px!important;padding:7px 12px!important;font-size:13px;white-space:nowrap}
.refresh-products svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.marketplace-tabs{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.marketplace-select-label{margin-right:3px;color:#536274;font-size:13px;font-weight:700;white-space:nowrap}
.marketplace-tabs button.marketplace-icon-button.active[data-marketplace=wb]:not(.nav):not(.quiet):not(.scope-badge){background:#aa0d90;border-color:#aa0d90}
.marketplace-tabs button.marketplace-icon-button.active[data-marketplace=ozon]:not(.nav):not(.quiet):not(.scope-badge){background:#005bff;border-color:#005bff}
.marketplace-tabs button.marketplace-icon-button.active[data-marketplace=yandex]:not(.nav):not(.quiet):not(.scope-badge){background:#fed42b;border-color:#e1b900}
.marketplace-tabs button.marketplace-icon-button.active[data-marketplace=all]:not(.nav):not(.quiet):not(.scope-badge){background:#fff;color:#252b31;border-color:#343c44;box-shadow:inset 0 0 0 1px #343c44}
.marketplace-tabs button.active .marketplace-icon{box-shadow:0 0 0 2px #fff}
.product-scope-bar label{font-size:12px}
.product-scope-bar select{min-height:39px}
.product-scope-metrics{grid-area:metrics;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;min-width:0}
.scope-badge{display:inline-flex;align-items:center;gap:5px;min-height:31px;border-radius:30px;padding:7px 11px;font-size:12px;font-weight:700;line-height:1.2;white-space:nowrap}
.scope-badge:hover{filter:brightness(.96)}
.scope-badge.active{outline:2px solid currentColor;outline-offset:1px}
.scope-badge:focus-visible{outline:3px solid currentColor;outline-offset:2px}
.scope-badge strong{font-variant-numeric:tabular-nums;font-weight:800}
.scope-badge-total{background:transparent;color:#343a40;border:1px solid #cbd2d8}
.scope-badge-total.active{outline:0;border-color:#343c44;box-shadow:inset 0 0 0 1px #343c44}
.scope-badge-sale{background:#e3f5e9;color:#247048}
.scope-badge-ready{background:#fff0d9;color:#865720}
.scope-badge-problems{background:#fff0e9;color:#a14632}
.scope-badge-archive{background:#eceff3;color:#556274}
.scope-badge-unknown{background:#f2f3f4;color:#626a73}
.product-cost-workspace{padding:20px 0 14px}
.product-cost-workspace>.section-head,.product-cost-controls{padding:0 20px}
.product-cost-workspace>.section-head{align-items:center;gap:16px}
.cost-import-status{margin:8px 20px}
.cost-import-status:empty{display:none}
.cost-import-review{margin:12px 20px 18px;padding:16px 18px;border:1px solid #dce3e9;border-radius:12px;background:#f8fafc}
.cost-import-review strong{display:block;color:#243346}
.cost-import-review p{margin:7px 0;color:#667383}
.cost-import-review ul{margin:9px 0 12px;padding-left:23px;color:#344355;line-height:1.5}
.cost-import-review ul:empty{display:none}
.cost-import-rest{color:#738193;list-style:none;margin-left:-20px}
.cost-import-review ol{margin:8px 0 12px;padding-left:23px;color:#ab4c3f}
.cost-import-review ol:empty{display:none}
.cost-import-review button{margin-top:4px}
html[data-theme=dark] .cost-import-review{background:#223045;border-color:#415168}
html[data-theme=dark] .cost-import-review strong{color:#e1e7ed}
html[data-theme=dark] .cost-import-review p{color:#aab9c9}
html[data-theme=dark] .cost-import-review ul{color:#d6e0ea}
.product-cost-controls{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:14px 0 18px}
.product-cost-controls>input{width:min(400px,100%)}
.product-cost-controls label{display:flex;align-items:center;gap:8px;white-space:nowrap}
.product-cost-controls label input{width:16px;height:16px;min-height:16px;margin:0;accent-color:#535a62}
.product-cost-table{min-width:950px}
.product-cost-table th,.product-cost-table td{padding:11px 13px}
.product-cost-table th{white-space:nowrap;background:#f7f9fc}
.product-cost-table td:nth-child(2){min-width:260px;width:40%}
.product-cost-table td:nth-child(3),.product-cost-table td:nth-child(4){min-width:140px}
html[data-theme=dark] .product-workspace-tabs,html[data-theme=dark] .product-scope-bar,html[data-theme=dark] .product-account-bar{background:#1b2634;border-color:#314153}
html[data-theme=dark] .product-workspace-tabs button:not(.nav):not(.quiet){color:#b5c3d1}
html[data-theme=dark] .marketplace-select-label{color:#b0beae}
html[data-theme=dark] button.marketplace-icon-button:not(.nav):not(.quiet):not(.scope-badge){background:#26332b;color:#e1e7ed;border-color:#435345}
html[data-theme=dark] button.marketplace-icon-button:hover:not(.nav):not(.quiet):not(.scope-badge),html[data-theme=dark] button.marketplace-icon-button[aria-expanded=true]:not(.nav):not(.quiet):not(.scope-badge){background:#354735;border-color:#8ba785}
html[data-theme=dark] .product-workspace-tabs button.active:not(.nav):not(.quiet){background:#303840;color:#e1e7ed;border-color:#64717d}
html[data-theme=dark] .marketplace-tabs button.marketplace-icon-button.active[data-marketplace=wb]:not(.nav):not(.quiet):not(.scope-badge){background:#aa0d90;border-color:#d350bd}
html[data-theme=dark] .marketplace-tabs button.marketplace-icon-button.active[data-marketplace=ozon]:not(.nav):not(.quiet):not(.scope-badge){background:#005bff;border-color:#6d9cff}
html[data-theme=dark] .marketplace-tabs button.marketplace-icon-button.active[data-marketplace=yandex]:not(.nav):not(.quiet):not(.scope-badge){background:#fed42b;border-color:#ffe16a}
html[data-theme=dark] .marketplace-tabs button.marketplace-icon-button.active[data-marketplace=all]:not(.nav):not(.quiet):not(.scope-badge){background:#1b2634;color:#f2f5f7;border-color:#e1e7ed;box-shadow:inset 0 0 0 1px #e1e7ed}
html[data-theme=dark] .scope-badge-total{background:transparent;color:#e1e7ed;border-color:#65727e}
html[data-theme=dark] .scope-badge-total.active{border-color:#e1e7ed;box-shadow:inset 0 0 0 1px #e1e7ed}
html[data-theme=dark] .scope-badge-sale{background:#193d2e;color:#abecc6}
html[data-theme=dark] .scope-badge-ready{background:#4b3825;color:#ffdab0}
html[data-theme=dark] .scope-badge-problems{background:#4d2b29;color:#ffd0c3}
html[data-theme=dark] .scope-badge-archive{background:#303a49;color:#cbd5e1}
html[data-theme=dark] .scope-badge-unknown{background:#343a43;color:#c8d0d8}
html[data-theme=dark] .product-cost-table th{background:#223045}
@media(max-width:1550px){.product-table-head{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"heading actions" "metrics metrics"}
.product-scope-metrics{justify-self:center}
}
@media(max-width:710px){.product-table-head{grid-template-columns:minmax(0,1fr);grid-template-areas:"heading" "metrics" "actions"}
.product-table-head .table-actions{justify-content:flex-end}
}
@media(max-width:1050px){
.product-scope-actions{width:100%;min-width:0;margin-left:0;flex-wrap:wrap}
.product-account-bar{align-items:flex-start;flex-direction:column;gap:7px}
.product-account-switcher{max-width:100%;width:100%;flex-wrap:nowrap;overflow-x:auto;padding:2px 1px 7px}
}
/* Compact Excel actions share one treatment in the cards and cost screens. */
button.secondary.excel-button,html[data-theme=dark] button.secondary.excel-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:30px!important;padding:5px 10px!important;border-radius:8px;font-size:11px!important;line-height:1.2;white-space:nowrap;background:#107c41!important;color:#fff!important}
button.secondary.excel-button:hover,html[data-theme=dark] button.secondary.excel-button:hover{background:#0b6634!important}
button.secondary.excel-button:focus-visible{outline:2px solid #107c41;outline-offset:2px}
.excel-button svg{width:14px;height:14px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

/* The shared workspace shell uses a calm accent; marketplace and status colours retain their meaning. */
:root{color:#243128;background:#f6f8f3}
.auth-wrap{background:radial-gradient(circle at 70% 15%,#e9f0e1,transparent 35%),#f6f8f3}
.auth-card,.metrics article,.panel{border-color:#dce5d7}
.logo{color:#243128}
.app{grid-template-columns:242px minmax(0,1fr)}
aside,.topbar{background:#fff;border-color:#dce5d7}
aside .logo{padding:0 8px}
.side-label{color:#5f6d61}
.side-label-secondary{margin-top:25px}
.nav-group{min-width:0}
.nav-group>.nav{width:100%}
.nav{color:#5f6d61;transition:background-color 180ms ease,color 180ms ease,box-shadow 180ms ease}
.nav:hover{background:#edf4e6;color:#29411f}
.nav.active,.nav.active:hover{background:#dcebcB;color:#29411f;box-shadow:inset 3px 0 #527642}
.nav:focus-visible,.subnav button:focus-visible{outline:2px solid #527642;outline-offset:2px}
.subnav{display:grid;gap:3px;margin:5px 0 6px 20px;padding-left:10px;border-left:1px solid #dce5d7}
.subnav button:not(.nav):not(.quiet):not(.scope-badge){min-height:35px;text-align:left;padding:7px 11px;border-radius:8px;background:transparent;color:#5f6d61;font-size:13px;font-weight:650;transition:background-color 180ms ease,color 180ms ease}
.subnav button:not(.nav):not(.quiet):not(.scope-badge):hover{background:#edf4e6;color:#29411f}
.subnav button.active:not(.nav):not(.quiet):not(.scope-badge){background:#edf4e6;color:#29411f;font-weight:750}
.topbar .eyebrow{color:#667964}
.page-head p,.section-head p{color:#5f6d61}
.advertising-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:14px}
.advertising-source{margin:0;padding:17px 18px;display:grid;align-content:start;gap:10px}
.advertising-source .section-head{margin-bottom:0}
.ad-market-title{display:flex;align-items:center;gap:8px;font-size:17px}
.ad-market-title img{display:block;width:27px;height:27px;object-fit:cover;border-radius:6px;flex:none}
.ad-connection-states{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.advertising-state{display:grid;align-content:center;gap:3px;padding:8px 10px;border:1px solid #dce5d7;border-radius:9px;background:#f6f9f3;font-size:11px}
.advertising-state span{color:#5f6d61}
.advertising-state strong{text-align:left;color:#243128;font-size:13px}
.ad-token-help{padding:9px 11px;border:1px solid #dce5d7;border-radius:9px;background:#f6f9f3;font-size:12px}
.ad-token-help summary{cursor:pointer;font-weight:750;color:#314b27}
.ad-token-help summary:focus-visible{outline:2px solid #527642;outline-offset:3px}
.ad-token-help ol{margin:12px 0;padding-left:20px;color:#445448;line-height:1.5}
.ad-token-help li+li{margin-top:7px}
.ad-token-help p{margin:8px 0 0;font-size:12px}
.ad-token-help a{color:#2266bd;text-decoration:underline;text-underline-offset:2px}
.ad-credentials{border-top:1px solid #e0e8dc;padding-top:8px}
.ad-credentials summary{cursor:pointer;color:#536652;font-size:12px;font-weight:750}
.ad-credentials summary:focus-visible{outline:2px solid #527642;outline-offset:3px}
.ad-credentials .ad-form{margin-top:11px}
.advertising-source button{justify-self:start;margin-top:0}
.ad-form{display:grid;gap:8px;align-content:start}
.ad-form label{gap:5px;font-size:12px}
.ad-form input,.ad-form select{min-height:36px}
.ad-form button:not(.nav):not(.quiet):not(.scope-badge){justify-self:start;min-height:36px;padding:7px 11px;font-size:12px}
.advertising-source>.status:empty{display:none}
.ad-campaigns{margin-top:18px}
.ad-campaigns .status:empty{display:none}
.ad-campaigns .section-head{align-items:center;gap:12px}
.ad-view-controls{display:grid;grid-template-columns:minmax(190px,2fr) repeat(2,minmax(140px,1fr));gap:12px;margin:16px 0 12px}
#advertising[data-active-ad-tab=plans] .ad-view-controls,#advertising[data-active-ad-tab=scenario] .ad-view-controls,#advertising[data-active-ad-tab=expenses] .ad-view-controls{grid-template-columns:repeat(2,minmax(140px,210px))}
.ad-view-controls input,.ad-view-controls select{min-height:38px}
.marketplace-filter-label,.marketplace-filter-logos{display:inline-flex;align-items:center;gap:4px}
.marketplace-filter-logos .marketplace-icon{width:17px;height:17px;border-radius:4px}
.ad-stat-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));align-items:start;gap:12px;margin:14px 0}
.ad-stat-card{min-width:0;padding:14px;border:1px solid #dce5d7;border-radius:12px;background:#f9fbf8}
.ad-stat-heading{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:13px}
.ad-stat-heading span,.ad-stat-note,.ad-stat-empty{color:#657464;font-size:11px}
.ad-stat-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:13px 0}
.ad-stat-metric{display:grid;gap:3px;min-width:0}
.ad-stat-metric small{color:#647463;font-size:10px}
.ad-stat-metric strong{font-size:13px;white-space:nowrap;font-variant-numeric:tabular-nums}
.ad-stat-chart{margin:0}
.ad-stat-chart figcaption{display:flex;justify-content:space-between;flex-wrap:wrap;gap:5px;font-size:11px;font-weight:750;color:#566753}
.ad-stat-trend-label{font-weight:600;color:#3e5e49}
.ad-stat-bars{position:relative;display:grid;align-items:end;gap:3px;height:100px;padding:7px 0 0;border-bottom:1px solid #dce5d7}
.ad-stat-trend-line{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.ad-stat-trend-line line{stroke:#355e49;stroke-width:2;stroke-dasharray:5 3;vector-effect:non-scaling-stroke}
.ad-stat-day{display:grid;align-items:end;justify-items:center;gap:3px;min-width:0}
.ad-stat-day small{color:#788575;font-size:9px}
.ad-stat-bar{width:100%;max-width:25px;min-height:3px;border-radius:3px 3px 0 0;background:#78987b}
.ad-stat-bars-ozon .ad-stat-bar:not(.ad-stat-missing){background:#7892c4}
.ad-stat-bars-wb .ad-stat-bar:not(.ad-stat-missing){background:#b789aa}
.ad-stat-bar.ad-stat-missing{background:#d4dcd5}
.ad-stat-note{margin:10px 0 0;line-height:1.45}
.ad-stat-empty{margin:14px 0 0}
.ad-stat-warning{margin:6px 0 0;color:#8e642d;font-size:11px}
.ad-expenses{margin:14px 0}
.ad-expenses .section-head{margin-bottom:8px}
.ad-expenses-intro{max-width:940px;color:#657464;font-size:12px;line-height:1.5}
.ad-expenses-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));align-items:start;gap:12px;margin-top:14px}
.ad-expense-card{min-width:0;padding:16px;border:1px solid #dce5d7;border-radius:12px;background:#f9fbf8}
.ad-expense-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0}
.ad-expense-metric{display:grid;align-content:start;gap:4px;min-width:0;padding:10px;border:1px solid #dce5d7;border-radius:9px;background:#fff}
.ad-expense-metric small,.ad-expense-metric span{color:#657464;font-size:10px;line-height:1.35}
.ad-expense-metric strong{font-size:16px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.ad-expense-days{margin-top:14px;font-size:12px}
.ad-expense-days summary{cursor:pointer;font-weight:700;color:#355e49}
.ad-expense-days .table-wrap{max-height:340px;margin-top:9px;overflow:auto}
.ad-expense-days table{min-width:470px}
.ad-expense-days th,.ad-expense-days td{padding:7px 9px;font-size:11px}
.ad-scenario{margin:16px 0;padding:0;border:1px solid #dce5d7;border-radius:12px;background:#f9fbf8}
.ad-scenario>summary{display:flex;align-items:center;gap:10px;padding:14px 16px;cursor:pointer;font-weight:750}
.ad-scenario>summary small{color:#647463;font-weight:500}
.ad-scenario-body{padding:0 16px 16px;border-top:1px solid #dce5d7}
.ad-scenario-help,.ad-scenario-footnote{font-size:12px;color:#647463;line-height:1.45}
.ad-scenario-controls,.ad-scenario-assumptions{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:10px;margin:12px 0}
.ad-scenario label{display:grid;align-content:start;gap:5px;font-size:11px;font-weight:700}
.ad-scenario label small{font-size:10px;font-weight:500;color:#647463}
.ad-scenario input,.ad-scenario select{min-height:36px;width:100%}
.ad-scenario-campaign-control{min-width:0;font-size:11px;font-weight:700}
.ad-scenario-campaign-picker{position:relative;margin-top:5px;font-weight:500}
.ad-scenario-campaign-picker>summary{min-height:36px;padding:9px 10px;border:1px solid #dce5d7;border-radius:7px;background:#fff;cursor:pointer;overflow-wrap:anywhere}
.ad-scenario-campaign-panel{position:absolute;inset-inline:0;top:100%;z-index:20;padding:10px;border:1px solid #dce5d7;border-radius:7px;background:#fff;box-shadow:0 8px 20px #17253d22}
.ad-scenario-campaign-panel>p,.ad-scenario-campaign-control>small{font-size:10px;font-weight:500;color:#647463;line-height:1.4}
.ad-scenario-campaign-control>small{display:block;margin-top:5px}
.ad-scenario-campaign-panel>button{font-size:11px;min-height:30px;margin-bottom:6px}
#ad-scenario-campaigns{max-height:240px;overflow:auto}
.ad-scenario label.ad-scenario-campaign-choice{display:flex;align-items:center;gap:7px;padding:7px 0;font-weight:500;overflow-wrap:anywhere}
.ad-scenario-campaign-choice input[type=checkbox]{width:16px;height:16px;min-height:16px;flex:0 0 16px;margin:0;accent-color:#315628}
.ad-scenario-campaign-choice input:disabled{cursor:not-allowed}
html[data-theme=dark] .ad-scenario-campaign-picker>summary,html[data-theme=dark] .ad-scenario-campaign-panel{background:#1b261f;border-color:#35473a}
html[data-theme=dark] .ad-scenario-campaign-panel>p,html[data-theme=dark] .ad-scenario-campaign-control>small{color:#b0beae}
@media(max-width:600px){.ad-scenario-campaign-control{grid-column:1/-1}}
@media(max-width:380px){#advertising[data-active-ad-tab=scenario] .ad-view-controls{grid-template-columns:minmax(0,1fr)}}
.ad-scenario-unused{opacity:.46}
.ad-scenario-no-account button[type=submit]{opacity:.5}
.ad-scenario-actions{display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin:14px 0}
.ad-scenario-actions label{min-width:180px;flex:1;max-width:320px}
.ad-scenario-actions button{min-height:36px}
.ad-scenario-result-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px;margin:10px 0}
.ad-scenario-result-grid>div{padding:9px 11px;border:1px solid #dce5d7;border-radius:9px;background:#fff}
.ad-scenario-result-grid small{display:block;color:#647463;font-size:10px}
.ad-scenario-result-grid strong{font-size:13px;font-variant-numeric:tabular-nums}
.ad-scenario h3{font-size:13px;margin:20px 0 10px}
.ad-scenario-saved-table{min-width:650px}
.ad-scenario-saved-table td,.ad-scenario-saved-table th{font-size:11px;padding:8px 10px}
.ad-scenario-reuse{font-size:11px;min-height:30px;margin-top:5px;padding:5px 9px;white-space:nowrap}
.ad-scenario-compare-controls{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin:8px 0}
.ad-scenario-compare-controls button{font-size:11px;min-height:32px}
.ad-scenario-saved-table input[type=checkbox]{min-height:0;width:16px;height:16px;cursor:pointer}
.ad-scenario-comparison{margin-top:20px;min-width:0}
.ad-scenario .ad-scenario-comparison-table{min-width:550px;table-layout:fixed}
.ad-scenario-comparison-table th,.ad-scenario-comparison-table td{font-size:11px;padding:9px 12px;width:190px;white-space:normal;overflow-wrap:anywhere;vertical-align:top}
.ad-scenario-comparison-table tbody th{font-weight:600;text-align:left}
.ad-scenario-comparison-table th:first-child{position:sticky;left:0;z-index:1;width:140px;background:#f9fbf8;box-shadow:1px 0 #dce5d7}
.ad-scenario-comparison-table thead small{display:block;margin-top:4px;font-size:10px;font-weight:400;color:#647463;text-transform:none;letter-spacing:normal}
html[data-theme=dark] .ad-scenario-comparison-table th:first-child{background:#223027;box-shadow:1px 0 #35473a}
html[data-theme=dark] .ad-scenario-comparison-table thead small{color:#b0beae}
.ad-scenario-comparison-details{margin-top:12px}
.ad-scenario-comparison-details>summary{font-size:12px;font-weight:700;cursor:pointer;margin-bottom:10px}
.ad-plans{margin:16px 0;border:1px solid #dce5d7;border-radius:12px;background:#f9fbf8}
.ad-plans>summary{display:flex;align-items:center;gap:10px;padding:14px 16px;cursor:pointer;font-weight:750}
.ad-plans>summary small,.ad-plan-help{color:#647463;font-size:12px;font-weight:500;line-height:1.45}
.ad-plans-body{padding:0 16px 16px;border-top:1px solid #dce5d7}
#advertising .ad-plans>summary,#advertising .ad-scenario>summary{display:none}
#advertising .ad-plans-body,#advertising .ad-scenario-body{padding-top:16px;border-top:0}
#advertising .ad-plans-body>h2,#advertising .ad-scenario-body>h2{margin:0 0 8px;font-size:19px}
.ad-plan-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:12px;margin:14px 0}
.ad-plan-card{min-width:0;padding:14px;border:1px solid #dce5d7;border-radius:12px;background:#fff}
.ad-plan-card.cancelled{opacity:.7}
.ad-plan-card-head,.ad-plan-allocation-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.ad-plan-card h3,.ad-plan-form h3{margin:0;font-size:16px}
.ad-plan-state{padding:4px 9px;border-radius:99px;background:#eaf3e6;color:#355133;font-size:11px;font-weight:700}
.ad-plan-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:12px 0}
.ad-plan-kpis>div{padding:9px;border:1px solid #dce5d7;border-radius:8px;background:#f8faf7;min-width:0}
.ad-plan-kpis small{display:block;color:#647463;font-size:10px}
.ad-plan-kpis strong{display:block;margin-top:3px;font-size:14px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.ad-plan-allocation-fact{margin:7px 0;font-size:12px;overflow-wrap:anywhere}
.ad-plan-track{display:inline-block;margin:5px 0;padding:5px 9px;border-radius:8px;font-size:11px;font-weight:700}
.ad-plan-track.ok{background:#e5f4e7;color:#23623a}
.ad-plan-track.late{background:#fff0dc;color:#87551c}
.ad-plan-card-actions,.ad-plan-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.ad-plan-card-actions button,.ad-plan-actions button{min-height:34px}
.ad-plan-form{margin:16px 0;padding:16px;border:1px solid #dce5d7;border-radius:12px;background:#fff}
.ad-plan-form label{display:grid;gap:5px;font-size:11px;font-weight:700}
.ad-plan-form label small{font-size:10px;color:#647463;font-weight:500}
.ad-plan-form input,.ad-plan-form select,.ad-plan-form textarea{width:100%;min-height:36px}
.ad-plan-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;margin:14px 0}
.ad-plan-allocation-head h4{margin:0;font-size:13px}
.ad-plan-allocation{display:grid;grid-template-columns:minmax(140px,2fr) minmax(130px,1fr) minmax(110px,1fr) auto;align-items:end;gap:9px;margin:10px 0}
.ad-plan-allocation button{min-height:36px}
.ad-plan-manual-toggle{display:flex!important;align-items:center;gap:8px;margin:15px 0}
.ad-plan-manual-toggle input{width:auto;min-height:0}
.ad-plan-days{display:grid;grid-template-columns:repeat(auto-fill,minmax(125px,1fr));gap:8px;max-height:250px;overflow:auto;padding:9px;margin-bottom:12px;border:1px solid #dce5d7;border-radius:9px}
.ad-plan-days[hidden]{display:none}
@media(max-width:650px){.ad-plan-allocation{grid-template-columns:repeat(2,minmax(0,1fr))}.ad-plan-allocation button{grid-column:2}}
.ad-status-filters{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin:12px 0 16px}
.ad-status-filters button.ad-status-tab:not(.nav):not(.quiet):not(.scope-badge){min-height:34px;padding:6px 12px;border:1px solid #dce2e6;border-radius:999px;background:#f3f5f6;color:#46515c;font-size:12px}
.ad-status-filters button.ad-status-active:not(.nav):not(.quiet):not(.scope-badge){background:#e7f5eb;color:#246543;border-color:#c7e6d0}
.ad-status-filters button.ad-status-paused:not(.nav):not(.quiet):not(.scope-badge){background:#fff0e9;color:#96513c;border-color:#f4d4c5}
.ad-status-filters button.ad-status-planned:not(.nav):not(.quiet):not(.scope-badge){background:#fff4db;color:#866222;border-color:#f1dea9}
.ad-status-filters button.ad-status-archived:not(.nav):not(.quiet):not(.scope-badge){background:#eaf0f5;color:#536578;border-color:#d6e0e8}
.ad-status-filters button.ad-status-tab.active:not(.nav):not(.quiet):not(.scope-badge){box-shadow:inset 0 0 0 1px currentColor}
.ad-status-filters button.ad-status-tab:focus-visible,.ad-campaigns th button:focus-visible{outline:2px solid #527642;outline-offset:2px}
.ad-campaign-count{font-size:13px;font-weight:750;color:#536652;margin:12px 0}
.ad-campaign-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}
.ad-campaign-actions .excel-button{display:inline-flex;align-items:center;gap:6px}
.ad-campaign-detail{padding:16px;margin:12px 0 18px;border:1px solid #dce5d7;border-radius:12px;background:#f9fbf8}
.ad-campaign-detail[hidden]{display:none}
.ad-campaign-detail-head{display:flex;justify-content:space-between;align-items:start;gap:14px}
.ad-campaign-detail-head h3{margin:0 0 4px;font-size:16px}
.ad-campaign-detail-head small,.ad-campaign-detail-note{color:#647463;font-size:12px}
.ad-campaign-detail-note{margin:9px 0 14px}
.ad-campaign-products{display:grid;gap:6px;margin:10px 0}
.ad-campaign-funnel{margin-top:16px}
.ad-campaign-funnel h4{margin:0 0 8px}
.ad-campaign-funnel .table-wrap{margin-top:10px}
.ad-campaign-funnel .ad-ozon-funnel-table{min-width:1240px}
.ad-campaign-funnel .ad-ozon-funnel-table th:first-child,
.ad-campaign-funnel .ad-ozon-funnel-table td:first-child{min-width:180px}
.ad-campaign-funnel table td:nth-last-child(-n+3){white-space:nowrap;overflow-wrap:normal}
.ad-campaign-funnel td small{display:block;color:#657464}
.ad-group-editor{margin-top:14px;padding:10px 12px;border:1px solid #dce5d7;border-radius:9px}
.ad-group-editor summary{cursor:pointer;font-weight:700}
.ad-group-controls,.ad-group-actions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.ad-group-controls>*{flex:1 1 180px;min-width:0}
.ad-group-choices{display:flex;flex-wrap:wrap;gap:8px}
.ad-group-choices label{display:flex;align-items:center;gap:7px;padding:6px 9px;border:1px solid #dce5d7;border-radius:7px;font-size:12px}
.ad-group-choices input{width:16px;height:16px;min-height:16px;margin:0;accent-color:#315628}
.ad-campaign-product{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:8px 10px;border:1px solid #dce5d7;border-radius:8px;background:#fff;font-size:12px}
.ad-campaign-product>span{flex:1;min-width:160px}
.ad-campaign-product>small{color:#647463}
.ad-campaign-product input[type=checkbox],.ad-product-choice input[type=checkbox]{flex:0 0 16px;width:16px;height:16px;min-height:16px;margin:0;padding:0;accent-color:#315628}
.ad-product-editor{display:grid;gap:9px;margin-top:14px}
.ad-product-editor>input{max-width:540px;min-height:38px}
.ad-product-results{display:grid;gap:4px;max-height:220px;overflow:auto}
.ad-product-choice{display:flex;align-items:center;gap:8px;padding:5px 8px;border-radius:7px;font-size:12px}
.ad-product-choice:hover{background:#eef4ea}
.ad-product-editor>button{justify-self:start}
.ad-product-selected{font-size:12px;color:#536652}
.ad-account-summary{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 12px}
.ad-account-chip{padding:6px 9px;border:1px solid #dce5d7;border-radius:9px;font-size:11px;color:#536652}
.ad-campaigns table{min-width:780px}
.ad-campaigns td{vertical-align:top;overflow-wrap:anywhere}
.ad-campaigns th button:not(.nav):not(.quiet):not(.scope-badge){min-height:0;padding:0;background:transparent;color:inherit;border-radius:0;text-align:left;font-size:inherit;letter-spacing:inherit;text-transform:inherit}
.ad-campaign-title{display:block;font-size:13px}
.ad-campaign-open:not(.nav):not(.quiet):not(.scope-badge){min-height:0;padding:0;background:transparent;color:#276743;text-align:left;font-size:13px;font-weight:750;line-height:1.35}
.ad-campaign-open:hover{text-decoration:underline}
.ad-campaign-open:focus-visible{outline:2px solid #527642;outline-offset:2px}
.ad-campaign-id{display:block;margin-top:3px;color:#758293;font-size:11px}
.ad-row-status{display:inline-block;padding:4px 7px;border-radius:7px;font-size:11px;font-weight:750;white-space:nowrap}
.ad-row-active{background:#e7f5eb;color:#246543}
.ad-row-paused{background:#fff0e9;color:#96513c}
.ad-row-planned{background:#fff4db;color:#866222}
.ad-row-archived{background:#eaf0f5;color:#536578}
.ad-row-other{background:#f3f5f6;color:#46515c}
.ad-campaign-pager{display:flex;align-items:center;justify-content:center;gap:15px;margin-top:16px;color:#667964;font-size:12px}
.ad-campaign-pager button:not(.nav):not(.quiet):not(.scope-badge){min-height:35px;padding:7px 12px;font-size:12px}
.advertising-note{max-width:820px;margin:18px 0;color:#5f6d61;font-size:13px}
.app-status{margin:0 0 18px;padding:12px 15px;border:1px solid #dca793;border-radius:10px;background:#fff4ed}
html[data-theme=dark]{color:#ecf2e8;background:#111914}
html[data-theme=dark] .auth-wrap{background:radial-gradient(circle at 70% 15%,#263527,transparent 35%),#111914}
html[data-theme=dark] aside,html[data-theme=dark] .topbar,html[data-theme=dark] .auth-card,html[data-theme=dark] .metrics article,html[data-theme=dark] .panel{background:#1b261f;border-color:#35473a}
html[data-theme=dark] .account-menu-panel{background:#1b261f;border-color:#35473a;box-shadow:0 16px 40px #0005}
html[data-theme=dark] .account-menu>summary:hover{color:#dcebcB}
html[data-theme=dark] .admin-client-row{border-color:#35473a}
html[data-theme=dark] .manager-row,html[data-theme=dark] .manager-account-choice,html[data-theme=dark] .manager-account-options,html[data-theme=dark] .feedback-item{border-color:#35473a}
html[data-theme=dark] .feedback-form textarea{background:#111c17;color:#e8f0e6;border-color:#35473a}
html[data-theme=dark] .admin-client-row span,html[data-theme=dark] .client-password-reset>summary{color:#b0beae}
html[data-theme=dark] .logo,html[data-theme=dark] .advertising-state strong{color:#ecf2e8}
html[data-theme=dark] .nav{color:#b0beae}
html[data-theme=dark] .nav:hover,html[data-theme=dark] .subnav button:hover{background:#29392a;color:#ecf2e8}
html[data-theme=dark] .nav.active,html[data-theme=dark] .nav.active:hover{background:#34472b;color:#dcebcB;box-shadow:inset 3px 0 #a4c587}
html[data-theme=dark] .subnav{border-color:#35473a}
html[data-theme=dark] .subnav button:not(.nav):not(.quiet):not(.scope-badge){color:#b0beae}
html[data-theme=dark] .subnav button.active:not(.nav):not(.quiet):not(.scope-badge){background:#29392a;color:#dcebcB}
html[data-theme=dark] .advertising-state{background:#223027;border-color:#35473a}
html[data-theme=dark] .advertising-state span,html[data-theme=dark] .advertising-note{color:#b0beae}
html[data-theme=dark] .ad-token-help{background:#223027;border-color:#35473a}
html[data-theme=dark] .ad-scenario{background:#223027;border-color:#35473a}
html[data-theme=dark] .ad-plans{background:#223027;border-color:#35473a}
html[data-theme=dark] .ad-plans-body,html[data-theme=dark] .ad-plan-card,
html[data-theme=dark] .ad-plan-form,html[data-theme=dark] .ad-plan-days,
html[data-theme=dark] .ad-plan-kpis>div{border-color:#35473a}
html[data-theme=dark] .ad-plan-card,html[data-theme=dark] .ad-plan-form{background:#1b261f}
html[data-theme=dark] .ad-plan-kpis>div{background:#223027}
html[data-theme=dark] .ad-plan-state{background:#314b35;color:#d6eed1}
html[data-theme=dark] .ad-plan-track.ok{background:#254333;color:#bde4c9}
html[data-theme=dark] .ad-plan-track.late{background:#4a3825;color:#f1d6aa}
html[data-theme=dark] .ad-plans>summary small,html[data-theme=dark] .ad-plan-help,
html[data-theme=dark] .ad-plan-form label small,html[data-theme=dark] .ad-plan-kpis small{color:#b0beae}
html[data-theme=dark] .ad-scenario-body,html[data-theme=dark] .ad-scenario-result-grid>div{border-color:#35473a}
html[data-theme=dark] .ad-scenario-result-grid>div{background:#1b261f}
html[data-theme=dark] .ad-scenario>summary small,html[data-theme=dark] .ad-scenario-help,
html[data-theme=dark] .ad-scenario-footnote,html[data-theme=dark] .ad-scenario label small,
html[data-theme=dark] .ad-scenario-result-grid small{color:#b0beae}
html[data-theme=dark] .ad-token-help summary{color:#c7e3bd}
html[data-theme=dark] .ad-token-help ol,html[data-theme=dark] .ad-token-help p{color:#c4d1c0}
html[data-theme=dark] .ad-token-help a{color:#8bbcff}
html[data-theme=dark] .ad-credentials{border-color:#35473a}
html[data-theme=dark] .ad-credentials summary{color:#b0beae}
html[data-theme=dark] .connection-card-head small,html[data-theme=dark] .connection-card-steps,html[data-theme=dark] .connection-security,html[data-theme=dark] .ad-connect-cta{color:#b0beae}
html[data-theme=dark] .connection-rename-form{background:#223027;border-color:#35473a}
html[data-theme=dark] .store-avatar{background:#29382d;border-color:#455748}
html[data-theme=dark] .connection-logo-control{border-color:#35473a}
html[data-theme=dark] .connection-logo-control>summary,html[data-theme=dark] .connection-logo-control small{color:#b0beae}
html[data-theme=dark] .connection-logo-full,html[data-theme=dark] .connection-logo-preview-status{color:#b0beae}
html[data-theme=dark] button.product-account-toggle:not(.nav):not(.quiet):not(.scope-badge){background:#26332b;color:#e1e7ed;border-color:#435345}
html[data-theme=dark] button.product-account-toggle[aria-pressed=true]:not(.nav):not(.quiet):not(.scope-badge){background:#314b27;border-color:#98b58a}
html[data-theme=dark] .product-account-marketplace{background:#26332b;border-color:#435345}
html[data-theme=dark] .connection-card-steps b{background:#34472b;color:#dcebcB}
html[data-theme=dark] .connection-help-section{border-color:#35473a}
html[data-theme=dark] .connection-help-section strong,html[data-theme=dark] .connection-steps li strong{color:#dcebcB}
html[data-theme=dark] .connection-steps{color:#b0beae}
html[data-theme=dark] .entity-section-head h2{color:#dae7d7}
html[data-theme=dark] .entity-section-head h2 span{background:#354338;color:#c4d5c2}
html[data-theme=dark] .entity-section-details>summary{color:#afbdaf}
html[data-theme=dark] .entity-search-help,html[data-theme=dark] .legal-entity-row small{color:#adbdad}
html[data-theme=dark] .entity-section-details{border-color:#35473a}
html[data-theme=dark] .legal-entity-row{background:#223027;border-color:#35473a}
html[data-theme=dark] .entity-record-details summary{color:#a3d6b2}
html[data-theme=dark] .entity-delete{border-color:#35473a}
html[data-theme=dark] .entity-delete>summary{color:#e4a39a}
html[data-theme=dark] .entity-delete-form button{background:#50332f!important;color:#ffd7d0!important}
html[data-theme=dark] .entity-search-result{background:#223027;border-color:#35473a}
html[data-theme=dark] .entity-search-result:has(input:checked){background:#2d4230;border-color:#82a985}
html[data-theme=dark] .entity-search-result small{color:#adbdad}
html[data-theme=dark] .connection-entity{border-color:#35473a}
html[data-theme=dark] .connection-entity-head span,html[data-theme=dark] .connection-entity>small,html[data-theme=dark] .connection-entity .entity-assignment summary,html[data-theme=dark] .entity-history summary,html[data-theme=dark] .entity-history-list{color:#afbdaf}
html[data-theme=dark] .connection-entity .entity-linked{color:#a3d6b2}
html[data-theme=dark] .connection-entity .entity-unlinked{color:#dfbd86}
html[data-theme=dark] .connection-danger{border-color:#35473a}
html[data-theme=dark] .connection-danger summary{color:#a4afa8}
html[data-theme=dark] .connection-danger summary:hover,html[data-theme=dark] .connection-danger[open] summary{color:#e8a79a}
html[data-theme=dark] .connection-pending{color:#c6ad9e}
html[data-theme=dark] .ad-connect-cta{background:#223027;border-color:#35473a}
html[data-theme=dark] .ad-campaign-count{color:#b0beae}
html[data-theme=dark] .ad-campaign-detail{background:#223027;border-color:#35473a}
html[data-theme=dark] .ad-campaign-product{background:#1b261f;border-color:#35473a}
html[data-theme=dark] .ad-campaign-detail-head small,html[data-theme=dark] .ad-campaign-detail-note,
html[data-theme=dark] .ad-campaign-product>small{color:#b0beae}
html[data-theme=dark] .ad-campaign-funnel td small{color:#b0beae}
html[data-theme=dark] .ad-group-editor,html[data-theme=dark] .ad-group-choices label{border-color:#35473a}
html[data-theme=dark] .ad-product-choice:hover{background:#314438}
html[data-theme=dark] .ad-campaign-open:not(.nav):not(.quiet):not(.scope-badge){color:#bde4c9}
html[data-theme=dark] .ad-account-chip{border-color:#35473a;color:#b0beae}
html[data-theme=dark] .ad-stat-card{background:#223027;border-color:#35473a}
html[data-theme=dark] .ad-stat-heading span,html[data-theme=dark] .ad-stat-note,html[data-theme=dark] .ad-stat-empty,html[data-theme=dark] .ad-stat-metric small{color:#adbdad}
html[data-theme=dark] .ad-stat-chart figcaption{color:#c4d1c0}
html[data-theme=dark] .ad-stat-trend-label{color:#d5e6d2}
html[data-theme=dark] .ad-stat-bars{border-color:#35473a}
html[data-theme=dark] .ad-stat-trend-line line{stroke:#d5e6d2}
html[data-theme=dark] .ad-stat-bar.ad-stat-missing{background:#35473a}
html[data-theme=dark] .ad-stat-warning{color:#dabc87}
html[data-theme=dark] .ad-expenses-intro,html[data-theme=dark] .ad-expense-metric small,html[data-theme=dark] .ad-expense-metric span{color:#adbdad}
html[data-theme=dark] .ad-expense-card{background:#223027;border-color:#35473a}
html[data-theme=dark] .ad-expense-metric{background:#1b2820;border-color:#35473a}
html[data-theme=dark] .ad-expense-days summary{color:#d5e6d2}
html[data-theme=dark] .ad-status-filters button.ad-status-tab:not(.nav):not(.quiet):not(.scope-badge){background:#303b35;color:#d5ded4;border-color:#44534a}
html[data-theme=dark] .ad-status-filters button.ad-status-active:not(.nav):not(.quiet):not(.scope-badge),html[data-theme=dark] .ad-row-active{background:#244735;color:#b9ecc9}
html[data-theme=dark] .ad-status-filters button.ad-status-paused:not(.nav):not(.quiet):not(.scope-badge),html[data-theme=dark] .ad-row-paused{background:#50352f;color:#ffd2c1}
html[data-theme=dark] .ad-status-filters button.ad-status-planned:not(.nav):not(.quiet):not(.scope-badge),html[data-theme=dark] .ad-row-planned{background:#51432b;color:#ffdfaa}
html[data-theme=dark] .ad-status-filters button.ad-status-archived:not(.nav):not(.quiet):not(.scope-badge),html[data-theme=dark] .ad-row-archived{background:#354351;color:#d0dfec}
html[data-theme=dark] .ad-row-other{background:#303b35;color:#d5ded4}
html[data-theme=dark] .ad-campaign-id,html[data-theme=dark] .ad-campaign-pager{color:#b0beae}
html[data-theme=dark] .app-status{background:#442d27;border-color:#8a5a49;color:#ffd5c6}
@media(max-width:900px){.advertising-grid{grid-template-columns:1fr}.ad-view-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.ad-stat-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@container connection-area (max-width:759px){.connection-grid{grid-template-columns:1fr}}
@container connection-area (min-width:1140px){.connection-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@container connection-area (min-width:1520px){.connection-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:710px){.ad-view-controls,#advertising[data-active-ad-tab=expenses] .ad-view-controls{grid-template-columns:1fr}.ad-status-filters{justify-content:flex-start}.ad-stat-metrics,.ad-expense-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.ad-expenses-list{grid-template-columns:minmax(0,1fr)}}
@media(max-width:710px){.ad-campaigns .section-head{align-items:flex-start;flex-wrap:wrap}.ad-campaign-actions{justify-content:flex-start}}
@media(max-width:710px){
.app{grid-template-columns:1fr}aside{padding:12px 14px}.side-label-secondary{display:none}
nav[aria-label="Разделы"]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
nav[aria-label="Разделы"]>.nav[data-page="advertising"]{grid-column:2;grid-row:1}
.nav-group{display:contents}.nav-group>.nav{grid-column:1;grid-row:1;width:100%}
.subnav{grid-column:1/-1;grid-row:2;display:flex;justify-content:center;align-items:center;gap:5px;margin:0;padding:3px 0 0;border:0}
.subnav button:not(.nav):not(.quiet):not(.scope-badge){min-height:32px;padding:5px 9px;font-size:11px}
nav[aria-label="Управление"]{display:flex;justify-content:center;margin-top:4px}
.nav{min-width:0}
}
@media(prefers-reduced-motion:reduce){.nav,.subnav button{transition:none}}
.sidebar-head{display:flex;align-items:center;justify-content:space-between;gap:4px}
.super-section{margin-top:20px;padding-top:8px;border-top:1px solid #dce5d7}
.super-section .side-label{margin-top:12px}
.super-section .nav{color:#4a584c}
.sidebar-toggle{flex:none;min-width:32px;min-height:32px;padding:5px!important;font-size:17px}
.sidebar-toggle:hover{background:#edf4e6;color:#29411f}
.app.sidebar-collapsed{grid-template-columns:70px minmax(0,1fr)}
.sidebar-collapsed aside{padding-left:9px;padding-right:9px}
.sidebar-collapsed .sidebar-head{flex-direction:column;gap:5px}
.sidebar-collapsed aside .logo{padding:0}
.sidebar-collapsed aside .logo img{width:44px;height:44px}
.sidebar-collapsed .logo-wordmark,.sidebar-collapsed .side-label,.sidebar-collapsed .side-bottom,.sidebar-collapsed .nav span,.sidebar-collapsed .subnav{display:none!important}
.sidebar-collapsed .nav{width:100%;text-align:center;padding:10px 4px;font-size:19px}
.sidebar-collapsed .sidebar-toggle{width:100%}
html[data-theme=dark] .sidebar-toggle:hover{background:#29392a;color:#ecf2e8}
@media(max-width:710px){.app.sidebar-collapsed{grid-template-columns:1fr}.sidebar-collapsed aside{padding:12px 14px}.sidebar-collapsed .sidebar-head{flex-direction:row}.sidebar-collapsed .sidebar-toggle{width:auto}.sidebar-collapsed .nav span{display:inline!important}.sidebar-collapsed .nav{font-size:13px}.sidebar-collapsed .subnav{display:flex!important}}
.manager-scope-list,.super-companies,.super-audit{display:grid;gap:9px}
.manager-scope-item,.super-company{padding:11px 13px;border:1px solid #dce5d7;border-radius:10px;background:#f8faf6}
.manager-invite-link{display:flex;flex-wrap:wrap;align-items:end;gap:8px 12px;padding:13px;border:1px solid #dce5d7;border-radius:10px;background:#f8faf6}
.manager-invite-link label{flex:1 1 300px;min-width:0}
.manager-invite-link small{flex-basis:100%;color:#5f6d61}
.super-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:8px;margin-bottom:15px}
.super-metric{display:grid;gap:5px;padding:11px;border:1px solid #dce5d7;border-radius:10px;background:#f8faf6}
.super-metric small,.super-company small{color:#5f6d61}
.super-metric small.marketplace-inline{display:inline-flex}
.super-metric strong{font-size:21px}
.super-company{display:block;padding:0;overflow:hidden}
.super-company summary{cursor:pointer;list-style:none}
.super-company summary::-webkit-details-marker{display:none}
.super-company summary::before{content:'▸';color:#647064;margin-right:7px}
.super-company[open] summary::before{content:'▾'}
.super-company-summary{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:8px 12px;padding:13px 15px}
.super-company-summary:hover{background:#edf3e9}
.super-company-identity{display:inline-flex;flex-direction:column;gap:2px;max-width:100%}
.super-company-counts{font-size:13px;font-weight:700;color:#4f5f52;margin-left:auto}
.super-company-detail{padding:12px 16px 17px;border-top:1px solid #dce5d7}
.super-company-detail h3{font-size:14px;margin:18px 0 8px}
.super-company-detail h3:first-of-type{margin-top:10px}
.super-company-meta{font-size:12px;margin:0;color:#5f6d61}
.super-detail-list{display:grid;gap:6px}
.super-detail-list p{margin:5px 0;font-size:13px}
.super-detail-row{display:grid;grid-template-columns:minmax(130px,1fr) minmax(200px,2fr);gap:8px 16px;padding:9px 11px;border:1px solid #e3e9df;border-radius:8px;background:#fff;font-size:13px}
.super-detail-row span{overflow-wrap:anywhere}
.super-audit-row{display:grid;grid-template-columns:150px minmax(140px,1fr) minmax(200px,2fr);gap:8px;padding:9px 12px;border-bottom:1px solid #dce5d7;font-size:12px}
.super-audit-row time{color:#5f6d61}
.super-audit-row span{overflow-wrap:anywhere}
@media(max-width:710px){.super-audit-row,.super-detail-row{grid-template-columns:1fr}.super-section{margin-top:8px;padding:3px 0;border:0}.super-section .nav{width:100%}}
html[data-theme=dark] .manager-scope-item,html[data-theme=dark] .manager-invite-link,html[data-theme=dark] .super-metric,html[data-theme=dark] .super-company{background:#202c25;border-color:#35473a;color:#e4ede1}
html[data-theme=dark] .manager-invite-link small,html[data-theme=dark] .super-metric small,html[data-theme=dark] .super-company small{color:#b0beae}
html[data-theme=dark] .super-section,html[data-theme=dark] .super-audit-row,html[data-theme=dark] .super-company-detail,html[data-theme=dark] .super-detail-row{border-color:#35473a}
html[data-theme=dark] .super-company-summary:hover,html[data-theme=dark] .super-detail-row{background:#28392d}
html[data-theme=dark] .super-company-counts,html[data-theme=dark] .super-company-meta{color:#b0beae}
.product-finance-workspace{padding:20px;min-width:0}
.product-finance-workspace>.section-head{flex-wrap:wrap}
.product-finance-workspace>.section-head button{min-height:39px;padding:8px 12px;font-size:12px}
.product-finance-controls{display:flex;align-items:end;flex-wrap:wrap;gap:9px;margin:14px 0}
.product-finance-controls label{min-width:145px;flex:1 1 160px;max-width:320px}
.product-finance-controls label:first-child{flex:1 1 205px;max-width:250px}
.product-finance-controls label:not(:first-child){flex:0 1 160px}
.product-finance-controls button:not(.nav):not(.quiet):not(.scope-badge){min-height:39px;padding:8px 12px;font-size:12px}
.product-finance-controls input,.product-finance-controls select{min-height:39px}
.product-finance-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:9px;margin:14px 0}
.product-finance-metric{padding:12px;border:1px solid #dce5d7;border-radius:10px;background:#f8faf6}
.product-finance-metric small{display:block;color:#687786;font-size:11px}
.product-finance-metric strong{display:block;margin-top:5px;font-size:17px;font-variant-numeric:tabular-nums}
.product-finance-note{grid-column:1/-1;margin:3px 0;color:#687786;font-size:12px}
.product-finance-breakdown{grid-column:1/-1;padding:9px 11px;border:1px solid #dce5d7;border-radius:10px;color:#536274;font-size:12px}
.product-finance-breakdown summary{cursor:pointer;font-weight:700}
.product-finance-breakdown-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:9px;margin-top:11px}
.wb-finance-bridge{grid-column:1/-1;border:1px solid #dce5d7;border-radius:12px;background:#f8faf6;padding:15px 18px}
.wb-finance-bridge h3{margin:0 0 11px;font-size:15px}
.wb-finance-bridge-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:6px 0;border-bottom:1px solid #e4ebe0;font-size:12px;align-items:baseline}
.wb-finance-bridge-row span{overflow-wrap:anywhere}
.wb-finance-bridge-row strong{font-variant-numeric:tabular-nums;white-space:nowrap}
.wb-finance-bridge-row.final{margin-top:5px;padding-top:11px;border-top:2px solid #729375;border-bottom:0;font-size:14px;color:#2c5032}
.wb-finance-bridge .product-finance-note{margin:12px 0 0}
.wb-finance-table{min-width:1550px}
.wb-finance-table td:first-child{min-width:290px;max-width:380px;text-align:left}
.wb-finance-report-details summary{cursor:pointer;font-weight:700;color:#3d6043}
.wb-finance-report-detail-body{padding:9px 0 3px;color:#536274}
.wb-finance-report-detail-body p{margin:0;font-size:12px}
.wb-finance-report-detail-body small{display:block;margin-top:8px}
.wb-finance-detail-label{display:block;margin-top:13px;font-size:12px}
.product-finance-chart-head{display:flex;align-items:end;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:20px}
.product-finance-chart-head[hidden]{display:none}
.product-finance-chart-head h3{margin:0;font-size:15px}
.product-finance-chart-head label{width:min(260px,100%);font-size:11px}
.product-finance-chart-head select{min-height:34px}
.product-finance-chart{min-height:0;margin:12px 0}
.product-finance-chart svg{display:block;width:100%;height:205px;overflow:visible}
.product-finance-chart small{display:block;margin:5px 0 0;color:#687786}
.product-finance-search{display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin:16px 0 10px}
.product-finance-search>input{max-width:440px;flex:1 1 250px}
.product-finance-search label{max-width:225px;flex:1 1 170px}
.product-finance-table{min-width:1100px}
.product-unit-table{min-width:2280px}
.product-unit-table thead tr:first-child th{background:#eaf0e6;color:#405844;text-align:center;font-size:11px;letter-spacing:.02em}
.product-unit-table thead tr:nth-child(2) th{white-space:normal;min-width:92px}
.product-unit-table th:first-child,.product-unit-table td:first-child{position:sticky;left:0;z-index:1;background:#fff;box-shadow:1px 0 #dce5d7}
.product-unit-table thead th:first-child{z-index:2!important;background:#eaf0e6}
.product-unit-table tr.product-unit-loss td:nth-child(9),.product-unit-table tr.product-unit-loss td:nth-child(10){color:#a44a39;font-weight:700}
.product-finance-table th,.product-finance-table td{font-size:12px;padding:10px 11px}
.product-finance-table th:not(:first-child),.product-finance-table td:not(:first-child){text-align:right;font-variant-numeric:tabular-nums}
.product-finance-table td:first-child{min-width:240px}
.product-finance-title{display:flex;align-items:center;gap:9px;text-align:left}
.product-finance-title img{width:38px;height:38px;object-fit:contain;border-radius:6px;flex:none}
.product-finance-table td small{display:block;color:#81909e;margin-top:3px}
.product-finance-table .finance-mismatch{color:#a44a39;font-weight:700}
.product-finance-method{margin-top:15px;border:1px solid #dce5d7;border-radius:10px;padding:11px 13px;color:#536274;font-size:12px}
.product-finance-method summary{cursor:pointer;font-weight:700}
.product-finance-method p{font-size:12px;margin:9px 0 0}
html[data-theme=dark] .product-finance-metric{background:#223027;border-color:#35473a}
html[data-theme=dark] .product-finance-breakdown{border-color:#35473a;color:#c4d1c0}
html[data-theme=dark] .wb-finance-bridge{background:#223027;border-color:#35473a}
html[data-theme=dark] .wb-finance-bridge-row{border-color:#35473a}
html[data-theme=dark] .wb-finance-bridge-row.final{color:#b2dda8;border-top-color:#729375}
html[data-theme=dark] .wb-finance-report-details summary{color:#b2dda8}
html[data-theme=dark] .wb-finance-report-detail-body{color:#c4d1c0}
html[data-theme=dark] .product-unit-table thead tr:first-child th,html[data-theme=dark] .product-unit-table thead th:first-child{background:#263b2b;color:#d7e9d4}
html[data-theme=dark] .product-unit-table th:first-child,html[data-theme=dark] .product-unit-table td:first-child{box-shadow:1px 0 #35473a}
html[data-theme=dark] .product-unit-table td:first-child{background:#1b2634}
html[data-theme=dark] .product-unit-table tr.product-unit-loss td:nth-child(9),html[data-theme=dark] .product-unit-table tr.product-unit-loss td:nth-child(10){color:#f0aa9a}
html[data-theme=dark] .product-finance-metric small,html[data-theme=dark] .product-finance-note,
html[data-theme=dark] .product-finance-chart small,html[data-theme=dark] .product-finance-method,
html[data-theme=dark] .product-finance-method p{color:#b0beae}
html[data-theme=dark] .product-finance-method{border-color:#35473a}
html[data-theme=dark] .product-finance-table .finance-mismatch{color:#f0aa9a}

.returns-controls{display:flex;flex-wrap:wrap;align-items:end;gap:12px}.returns-controls label{display:grid;gap:5px}.returns-table-wrap{overflow:auto;max-height:65vh}.returns-table-wrap table{min-width:2300px}.returns-table-wrap th{position:sticky;top:0;background:var(--panel, #fff)}.returns-table-wrap td{max-width:280px;white-space:normal}.returns-anomaly{background:rgba(235,90,70,.12)}
#returns h1{display:flex;align-items:center;gap:10px}#returns-nav .marketplace-icon,#returns h1 .marketplace-icon{flex:0 0 27px;margin:0}#returns-nav[hidden]{display:none}

/* Return support composer */
.returns-support-dialog{width:min(760px,calc(100vw - 32px));max-height:calc(100dvh - 32px);box-sizing:border-box;overflow:auto;border:1px solid var(--line,#dfe3e8);border-radius:14px;padding:24px;background:var(--panel,#fff);color:var(--text,#162536)}
.returns-support-dialog::backdrop{background:rgba(15,23,42,.5)}
.returns-support-head,.returns-support-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.returns-support-head{justify-content:space-between}.returns-support-head h2{margin:0}.returns-support-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:18px 0 12px}.returns-support-fields label,.returns-support-label{display:grid;gap:6px}.returns-support-label{margin:12px 0}.returns-support-dialog textarea{width:100%;box-sizing:border-box;resize:vertical}.returns-support-fields input,.returns-support-fields select{width:100%;min-width:0;box-sizing:border-box}.returns-support-dialog a.button{display:inline-flex;align-items:center;padding:10px 14px;text-decoration:none;border:1px solid var(--line,#dfe3e8);border-radius:8px}.returns-support-hint{font-size:13px;line-height:1.5}.returns-support-dialog :focus-visible{outline:2px solid var(--accent,#2563eb);outline-offset:3px}
@media(max-width:600px){.returns-support-dialog{padding:16px}.returns-support-fields{grid-template-columns:1fr}.returns-support-actions>*{width:100%;box-sizing:border-box;justify-content:center}}

html[data-theme=dark] .returns-support-dialog{background:#1b2634;color:#e6edf5;border-color:#314153}html[data-theme=dark] .returns-support-dialog textarea{background:#111b29;color:#e6edf5;border-color:#415168;color-scheme:dark}

.returns-support-dialog textarea{font-size:14px;font-weight:400;line-height:1.5;padding:10px;border:1px solid #dfe3e8;border-radius:8px}.returns-support-dialog #returns-support-text{min-height:230px;max-height:38vh}

/* Quick user removal, with space reserved for the accessible control. */
.manager-row, .admin-client-row { position: relative; padding-right: 56px; }
.user-delete-button { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; padding: 0; font-size: 26px; line-height: 1; }
.user-delete-button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.user-delete-dialog { width: min(480px, calc(100vw - 40px)); box-sizing: border-box; padding: 24px; border: 1px solid var(--line, #d5d9d0); border-radius: 16px; color: var(--text, #253023); background: var(--panel, #fff); }
.user-delete-dialog::backdrop { background: #0008; }
.user-delete-dialog p { overflow-wrap: anywhere; }
.user-delete-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

.super-company-summary, .super-user-row { position: relative; padding-right: 56px; }

.super-user-row { min-height: 52px; box-sizing: border-box; }

html[data-theme=dark] .user-delete-dialog { background: #1b2634; color: #e6edf5; border-color: #314153; }

.super-audit-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;flex-wrap:wrap}
.super-audit-pagination span{font-size:12px;color:var(--u-muted,#5f6d61)}
.super-audit-pagination button{min-height:36px}
