:root{
  --bg:#f6f7fb;--panel:#fff;--text:#101828;--muted:#667085;--muted2:#98a2b3;
  --line:#eaecf0;--accent:#e52626;--accent2:#b91c1c;--sidebar:#0d1117;
  --green:#079455;--red:#d92d20;--orange:#f79009;--blue:#2970ff;
  --shadow:0 1px 2px rgba(16,24,40,.04),0 8px 24px rgba(16,24,40,.04);
}
/* Public product page */
.public-page{min-height:100vh;background:#fff;color:#101828}.public-header{height:72px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:28px;max-width:1240px;margin:0 auto;padding:0 28px;border-bottom:1px solid #eef0f3}.public-brand{display:flex;align-items:center;gap:10px;color:#101828;text-decoration:none;font-size:16px;font-weight:750}.public-brand b{color:#d92d20}.public-header nav{display:flex;gap:26px}.public-header nav a,.public-login{color:#475467;text-decoration:none;font-size:12px;font-weight:650}.public-header-actions{display:flex;justify-content:flex-end;align-items:center;gap:15px}.public-primary,.public-secondary{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 18px;border-radius:7px;font-size:12px;font-weight:750;text-decoration:none}.public-primary{background:#d92d20;color:#fff;border:1px solid #d92d20}.public-primary:hover{background:#b42318}.public-primary.compact{min-height:38px;padding:0 14px}.public-primary svg,.public-secondary svg{width:15px}.public-secondary{background:#fff;color:#344054;border:1px solid #d0d5dd}.public-secondary:hover{background:#f9fafb}.public-hero{min-height:720px;background:#f7f8fa;padding:82px 28px 0;overflow:hidden}.public-hero-copy{max-width:880px;margin:0 auto;text-align:center}.public-kicker,.public-section-head>span{color:#d92d20;font-size:10px;font-weight:800;letter-spacing:.12em}.public-hero h1{max-width:850px;margin:16px auto 18px;font-size:52px;line-height:1.06;letter-spacing:0}.public-hero-copy>p{max-width:720px;margin:0 auto;color:#667085;font-size:16px;line-height:1.65}.public-hero-actions{display:flex;justify-content:center;gap:10px;margin-top:28px}.public-proof{display:flex;justify-content:center;gap:22px;margin:20px 0 34px;color:#667085;font-size:11px}.public-proof span{display:flex;align-items:center;gap:5px}.public-proof svg{width:13px;color:#079455}.product-preview{width:min(1040px,100%);height:310px;margin:0 auto;background:#fff;border:1px solid #dfe3e8;border-bottom:0;border-radius:8px 8px 0 0;box-shadow:0 24px 70px rgba(16,24,40,.12);overflow:hidden;text-align:left}.preview-top{height:52px;display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center;padding:0 20px;border-bottom:1px solid #eaecf0;font-size:11px;color:#667085}.preview-top strong{text-align:center;color:#101828;font-size:13px}.preview-live{justify-self:end;display:flex;align-items:center;gap:6px}.preview-live i{width:7px;height:7px;border-radius:50%;background:#12b76a}.preview-metrics{display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid #eaecf0}.preview-metrics>div{padding:20px;border-right:1px solid #eaecf0}.preview-metrics>div:last-child{border-right:0}.preview-metrics span,.preview-metrics strong{display:block}.preview-metrics span{color:#667085;font-size:10px}.preview-metrics strong{margin-top:9px;font-size:20px}.preview-positive,.preview-row strong{color:#079455}.preview-table{padding:8px 20px}.preview-row{display:grid;grid-template-columns:1.4fr repeat(3,1fr);gap:16px;align-items:center;min-height:43px;border-bottom:1px solid #f0f2f5;font-size:10px}.preview-head{color:#98a2b3;font-size:9px;font-weight:700}.public-band,.public-process,.public-plans{padding:92px 28px}.public-band{background:#fff}.public-section-head{max-width:680px;margin:0 auto 46px;text-align:center}.public-section-head h2{margin:12px 0;font-size:32px;letter-spacing:0}.public-section-head p{margin:0;color:#667085;font-size:13px;line-height:1.65}.public-features{display:grid;grid-template-columns:repeat(4,1fr);gap:0;max-width:1160px;margin:0 auto;border-top:1px solid #eaecf0;border-bottom:1px solid #eaecf0}.public-features article{padding:30px 28px;border-right:1px solid #eaecf0}.public-features article:last-child{border-right:0}.public-features svg{width:22px;color:#d92d20}.public-features h3{font-size:15px;margin:18px 0 8px}.public-features p{color:#667085;font-size:11px;line-height:1.6;margin:0}.public-process{background:#101828;color:#fff}.public-process .public-section-head>span{color:#f97066}.public-process ol{list-style:none;max-width:1080px;margin:0 auto;padding:0;display:grid;grid-template-columns:repeat(4,1fr)}.public-process li{display:flex;gap:14px;padding:25px 24px;border-top:1px solid #344054}.public-process li b{color:#f97066;font-size:10px}.public-process h3{font-size:14px;margin:0 0 8px}.public-process p{color:#98a2b3;font-size:10.5px;line-height:1.5;margin:0}.public-plans{background:#f7f8fa}.public-plan-grid{max-width:1040px;margin:0 auto;display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.public-plan{position:relative;background:#fff;border:1px solid #dfe3e8;border-radius:8px;padding:28px}.public-plan.recommended{border:2px solid #101828}.plan-label{position:absolute;top:15px;right:15px;color:#fff;background:#101828;border-radius:5px;padding:5px 7px;font-size:8px;font-weight:800}.public-plan h3{font-size:18px;margin:0}.public-price{font-size:26px;font-weight:800;margin:16px 0 10px}.public-price small{font-size:10px;color:#98a2b3}.public-plan>p{min-height:34px;color:#667085;font-size:10.5px;line-height:1.5}.public-plan ul{list-style:none;padding:16px 0;margin:16px 0;border-top:1px solid #eaecf0;display:grid;gap:11px}.public-plan li{display:flex;align-items:center;gap:7px;color:#475467;font-size:10.5px}.public-plan li svg{width:13px;color:#079455}.public-plan>a{width:100%}.public-final{text-align:center;padding:86px 28px;background:#fff}.public-final h2{font-size:34px;margin:0}.public-final p{color:#667085;font-size:13px;margin:14px 0 26px}.public-footer{max-width:1180px;margin:0 auto;padding:24px 28px;border-top:1px solid #eaecf0;display:flex;justify-content:space-between;color:#98a2b3;font-size:10px}.public-footer a{color:#667085;text-decoration:none}
@media(max-width:900px){.public-header{grid-template-columns:1fr auto}.public-header nav{display:none}.public-hero{min-height:690px;padding-top:64px}.public-hero h1{font-size:40px}.public-features{grid-template-columns:1fr 1fr}.public-features article:nth-child(2){border-right:0}.public-features article:nth-child(-n+2){border-bottom:1px solid #eaecf0}.public-process ol,.public-plan-grid{grid-template-columns:1fr 1fr}.public-plan:last-child{grid-column:1/-1}.preview-row{grid-template-columns:1.2fr repeat(3,1fr)}}
@media(max-width:620px){.public-header{height:64px;padding:0 16px}.public-header-actions .public-primary{display:none}.public-hero{min-height:660px;padding:48px 16px 0}.public-hero h1{font-size:34px}.public-hero-copy>p{font-size:13px}.public-hero-actions{flex-direction:column}.public-proof{align-items:center;flex-direction:column;gap:8px}.product-preview{height:260px}.preview-top{grid-template-columns:1fr auto}.preview-top strong{display:none}.preview-metrics{grid-template-columns:1fr 1fr}.preview-metrics>div{padding:13px}.preview-metrics strong{font-size:15px}.preview-metrics>div:nth-child(2){border-right:0}.preview-metrics>div:nth-child(-n+2){border-bottom:1px solid #eaecf0}.preview-table{display:none}.public-band,.public-process,.public-plans{padding:66px 16px}.public-section-head h2,.public-final h2{font-size:27px}.public-features,.public-process ol,.public-plan-grid{grid-template-columns:1fr}.public-features article{border-right:0;border-bottom:1px solid #eaecf0!important}.public-features article:last-child{border-bottom:0!important}.public-process li{padding-left:0;padding-right:0}.public-plan:last-child{grid-column:auto}.public-final{padding:66px 16px}.public-footer{padding:20px 16px}}
.public-page{overflow-x:hidden}.public-hero-copy,.product-preview{min-width:0}.public-hero h1,.public-hero-copy>p{overflow-wrap:anywhere}
@media(max-width:620px){.public-header{gap:12px}.public-header-actions{gap:0}.public-hero h1{font-size:30px;line-height:1.08}.public-hero-copy>p{max-width:100%}.preview-top{grid-template-columns:minmax(0,1fr) auto;padding:0 12px}.preview-live{font-size:9px;white-space:nowrap}.preview-metrics>div{min-width:0}}
*{box-sizing:border-box}html,body{margin:0;font-family:Inter,system-ui,sans-serif;background:var(--bg);color:var(--text)}
body{min-height:100vh}.app-shell{display:grid;grid-template-columns:248px 1fr;min-height:100vh}
.sidebar{position:fixed;inset:0 auto 0 0;width:248px;background:var(--sidebar);padding:22px 14px;display:flex;flex-direction:column;color:#fff}
.brand{display:flex;gap:10px;align-items:center;padding:2px 10px 24px;font-weight:700;font-size:17px;text-decoration:none}.brand-soft{color:#8b949e;font-weight:600}.brand-logo{display:block;width:170px;height:48px;object-fit:contain;background:#fff;border-radius:6px}.auth-brand-logo{display:block;width:220px;height:74px;object-fit:contain;background:#fff;border-radius:7px}
.brand-mark{width:30px;height:30px;border-radius:9px;background:var(--accent);display:inline-flex;align-items:center;justify-content:center;color:white;font-weight:800}
.nav{display:flex;flex-direction:column;gap:4px;overflow-y:auto;min-height:0}.nav a{color:#98a2b3;text-decoration:none;display:flex;align-items:center;gap:11px;padding:11px 12px;border-radius:10px;font-size:14px;font-weight:500;transition:.18s}
.nav a svg{width:18px}.nav a:hover{background:#151b23;color:#fff}.nav a.active{background:#1a2029;color:#fff;box-shadow:inset 3px 0 0 var(--accent)}
.nav-group{border:0}.nav-group>summary{list-style:none;min-height:42px;display:grid;grid-template-columns:18px 1fr 14px;align-items:center;gap:10px;padding:0 12px;border-radius:9px;color:#98a2b3;font-size:13px;font-weight:650;cursor:pointer}.nav-group>summary::-webkit-details-marker{display:none}.nav-group>summary:hover,.nav-group[open]>summary{background:#151b23;color:#fff}.nav-group>summary svg{width:17px}.nav-group>summary svg:last-child{width:13px;transition:transform .16s}.nav-group[open]>summary svg:last-child{transform:rotate(180deg)}.nav-children{display:grid;gap:2px;padding:4px 0 7px 28px}.nav-children a{min-height:34px;padding:7px 9px;border-radius:7px;font-size:11px;gap:7px}.nav-children a.active{box-shadow:inset 2px 0 0 var(--accent)}.nav-children a span{min-width:0;flex:1}.nav-children a small{padding:2px 4px;border-radius:4px;background:#242c37;color:#98a2b3;font-size:7px;font-weight:800;text-transform:uppercase}.nav-children .nav-lock{width:11px;color:#667085}
.sidebar-bottom{margin-top:auto}.ai-card{background:linear-gradient(145deg,#171d26,#11161e);border:1px solid #242c37;border-radius:12px;padding:12px;display:flex;align-items:center;gap:10px;margin-bottom:10px}
.ai-icon{width:34px;height:34px;border-radius:9px;background:#242c37;display:grid;place-items:center}.ai-icon svg{width:17px;color:#fda4af}.ai-card strong,.ai-card span{display:block;font-size:12px}.ai-card span{color:#667085;margin-top:2px}
.logout-btn{border:0;background:transparent;color:#667085;width:100%;display:flex;align-items:center;gap:10px;padding:10px 12px;cursor:pointer}.logout-btn svg{width:17px}
.main{grid-column:2;padding:0 30px 40px;max-width:1640px;width:100%}.topbar{height:78px;display:flex;align-items:center;justify-content:space-between}
.topbar h1{margin:0;font-size:21px;letter-spacing:-.03em}.top-actions{display:flex;align-items:center;gap:12px}.mobile-brand{display:none}
.store-select-wrap{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:8px 10px;box-shadow:0 1px 2px rgba(16,24,40,.03)}
.store-select-wrap svg{width:16px;color:#667085}.store-select-wrap select{border:0;outline:0;background:transparent;font-weight:600;color:var(--text)}
.avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#111827;color:#fff;font-weight:700;font-size:13px}
.page-meta{display:flex;align-items:center;justify-content:space-between;margin:2px 0 14px}.period-chip,.sync-chip{display:inline-flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);background:#fff;border:1px solid var(--line);border-radius:999px;padding:7px 10px}
.period-chip svg{width:14px}.status-dot{width:8px;height:8px;border-radius:50%;background:#12b76a;display:inline-block}.status-dot.bad,.sync-chip.bad .status-dot{background:var(--red)}
.notice{display:flex;gap:11px;align-items:flex-start;border-radius:12px;padding:13px 14px;font-size:12.5px;margin-bottom:14px}.notice svg{width:17px;flex:0 0 auto;margin-top:1px}
.notice.warning{background:#fffaeb;border:1px solid #fedf89;color:#7a2e0e}.notice strong{color:#542c0d}
.kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.kpi-card{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:18px;box-shadow:var(--shadow)}
.kpi-card.featured{border-color:#f7caca;background:linear-gradient(180deg,#fff,#fffafa)}.kpi-head{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12.5px;font-weight:600}
.kpi-icon{width:32px;height:32px;border-radius:9px;background:#f2f4f7;display:grid;place-items:center}.kpi-icon svg{width:16px}.featured .kpi-icon{background:#fff0f0;color:var(--accent)}
.kpi-value{font-size:27px;font-weight:700;letter-spacing:-.04em;margin-top:12px}.kpi-sub{font-size:11.5px;color:var(--muted2);margin-top:7px}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(300px,.8fr);gap:14px;margin-top:14px}.dashboard-grid.lower{grid-template-columns:1fr 1fr}
.panel{background:var(--panel);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}.panel-head{padding:17px 18px;border-bottom:1px solid #f0f2f5;display:flex;align-items:center;justify-content:space-between}
.panel-head h3{margin:0;font-size:14px;letter-spacing:-.02em}.panel-head p{margin:4px 0 0;color:var(--muted2);font-size:11.5px}.panel-head a{font-size:11.5px;color:var(--accent);text-decoration:none;font-weight:600}
.badge{font-size:11px;background:#f2f4f7;color:#475467;padding:6px 8px;border-radius:8px}.chart-wrap{height:300px;padding:16px 18px 18px}.cost-list{padding:8px 18px}
.cost-list>div{display:flex;justify-content:space-between;align-items:center;padding:13px 0;border-bottom:1px solid #f2f4f7;font-size:12px}.cost-list span{display:flex;align-items:center;gap:8px;color:var(--muted)}
.dot{width:8px;height:8px;border-radius:50%}.dot.red{background:var(--accent)}.dot.orange{background:var(--orange)}.dot.blue{background:var(--blue)}.cost-footer{display:flex;justify-content:space-between;padding:14px 18px;font-size:11.5px;color:var(--muted)}
.mini-table{padding:2px 18px 8px}.mini-row{display:flex;align-items:center;justify-content:space-between;padding:11px 0;border-bottom:1px solid #f3f4f6}.mini-row:last-child{border-bottom:0}
.product-cell{display:flex;gap:10px;align-items:center;min-width:0}.product-avatar{width:30px;height:30px;border-radius:8px;background:#ecfdf3;color:#027a48;display:grid;place-items:center;font-size:11px;font-weight:700;flex:none}.product-avatar.danger{background:#fef3f2;color:#b42318}
.product-cell strong{display:block;font-size:11.5px;max-width:310px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.product-cell span,.right span{display:block;color:var(--muted2);font-size:10px;margin-top:3px}.right{text-align:right}.right strong{font-size:11.5px}
.positive{color:var(--green)!important}.negative{color:var(--red)!important}.soft-empty{padding:28px;color:var(--muted2);font-size:12px;text-align:center}
.table-panel{overflow:hidden}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;font-size:11.5px}th{text-align:left;color:#667085;font-weight:600;background:#fafbfc;padding:11px 14px;border-bottom:1px solid var(--line);white-space:nowrap}
td{padding:11px 14px;border-bottom:1px solid #f1f3f5;vertical-align:middle;white-space:nowrap}.table-product{min-width:280px;max-width:430px}.table-product strong{display:block;white-space:normal;line-height:1.35}.table-product span{display:block;color:var(--muted2);font-size:10px;margin-top:3px}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:#475467}.wide{max-width:430px;white-space:normal}
.status-badge{font-size:10px;font-weight:700;padding:5px 7px;border-radius:7px}.status-badge.return{background:#fff7ed;color:#c2410c}.status-badge.cancel{background:#fef2f2;color:#b91c1c}
.finance-hero{display:flex;justify-content:space-between;align-items:center;padding:28px;margin-bottom:14px;background:linear-gradient(135deg,#fff,#fbfbfd)}.eyebrow{font-size:10px;font-weight:700;letter-spacing:.13em;color:var(--accent)}.finance-hero h2{font-size:26px;margin:8px 0;letter-spacing:-.04em}.finance-hero p{max-width:700px;color:var(--muted);font-size:12.5px;line-height:1.6}
.finance-score{min-width:220px;border-left:1px solid var(--line);padding-left:28px}.finance-score span,.finance-score small{display:block;color:var(--muted2);font-size:11px}.finance-score strong{display:block;font-size:22px;margin:6px 0}
.finance-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.finance-item{display:flex;align-items:center;gap:14px;padding:18px}.finance-item>svg{width:20px;color:var(--accent)}.finance-item div{flex:1}.finance-item strong,.finance-item span{display:block;font-size:12px}.finance-item span{color:var(--muted2);margin-top:4px}.finance-item b{font-size:10px;color:#475467;background:#f2f4f7;padding:5px 7px;border-radius:7px}
.store-list{padding:4px 18px}.store-row{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #f2f4f7}.store-row:last-child{border:0}.store-logo{width:38px;height:38px;border-radius:10px;background:#111827;color:white;display:grid;place-items:center;font-weight:700}
.store-main strong,.store-main span{display:block}.store-main strong{font-size:12.5px}.store-main span,.store-sync{font-size:10.5px;color:var(--muted2);margin-top:3px}.store-sync{display:flex;align-items:center;gap:7px}
.small-btn{display:inline-flex;align-items:center;gap:6px;background:#111827;color:white!important;border-radius:9px;padding:8px 10px!important;text-decoration:none}.small-btn svg{width:14px}
.connect-layout{display:grid;grid-template-columns:minmax(420px,620px) 1fr;gap:30px;align-items:start}.connect-card{padding:28px}.connect-card h2{margin:14px 0 6px;font-size:22px}.connect-card>p{color:var(--muted);font-size:12px;margin:0 0 20px}.connect-icon{width:42px;height:42px;border-radius:12px;background:#fff0f0;color:var(--accent);display:grid;place-items:center}.connect-icon svg{width:20px}
label{font-size:11.5px;font-weight:600;display:block;margin:14px 0 7px}input{width:100%;border:1px solid #d0d5dd;border-radius:10px;padding:11px 12px;font:inherit;outline:none;background:#fff}input:focus{border-color:#98a2b3;box-shadow:0 0 0 3px rgba(152,162,179,.12)}
.primary-btn{width:100%;border:0;border-radius:10px;background:#111827;color:#fff;padding:12px 14px;font-weight:700;margin-top:18px;cursor:pointer}.primary-btn:hover{background:#000}
.security-note{display:flex;gap:8px;color:var(--muted2);font-size:10.5px;line-height:1.4;margin-top:14px}.security-note svg{width:15px;flex:none}.connect-side{padding-top:18px}.step{display:flex;gap:14px;padding:14px 0}.step>span{width:28px;height:28px;border-radius:50%;background:#111827;color:white;display:grid;place-items:center;font-size:10px;font-weight:700;flex:none}.step strong{font-size:12.5px}.step p{font-size:11px;color:var(--muted2);margin:4px 0}
.empty-state{text-align:center;padding:60px 20px}.empty-icon{width:46px;height:46px;border-radius:14px;background:#f2f4f7;display:grid;place-items:center;margin:0 auto}.empty-state h2{font-size:20px}.empty-state p{color:var(--muted)}
.flash-wrap{margin-bottom:12px}.flash{border-radius:9px;padding:10px 12px;font-size:11.5px;margin-bottom:8px}.flash.error{background:#fef3f2;color:#b42318;border:1px solid #fecdca}.flash.success{background:#ecfdf3;color:#027a48;border:1px solid #abefc6}
.auth-page{min-height:100vh;display:grid;grid-template-columns:1.08fr .92fr;background:white}.auth-visual{background:radial-gradient(circle at 20% 10%,#283244 0,#111827 38%,#0b0f14 100%);display:flex;align-items:center;padding:8vw;color:white}.auth-visual-inner{max-width:620px}.auth-logo{display:flex;gap:10px;align-items:center;font-weight:700;margin-bottom:70px}.auth-visual h2{font-size:46px;line-height:1.05;letter-spacing:-.05em;margin:0 0 20px}.auth-visual p{font-size:15px;line-height:1.7;color:#98a2b3;max-width:520px}.auth-kpis{display:flex;gap:42px;margin-top:52px}.auth-kpis strong,.auth-kpis span{display:block}.auth-kpis strong{font-size:18px}.auth-kpis span{font-size:10px;color:#667085;margin-top:5px}
.auth-form-pane{display:flex;align-items:center;justify-content:center;padding:40px}.auth-card{width:100%;max-width:380px}.auth-card h1{font-size:28px;letter-spacing:-.04em;margin-bottom:8px}.auth-card .sub{color:var(--muted);font-size:12px;margin-bottom:26px}.auth-foot{text-align:center;color:var(--muted);font-size:11.5px;margin-top:18px}.auth-foot a{color:var(--accent);font-weight:600;text-decoration:none}.auth-mobile-logo{display:none}
@media(max-width:1050px){.kpi-grid{grid-template-columns:repeat(2,1fr)}.dashboard-grid,.dashboard-grid.lower{grid-template-columns:1fr}.connect-layout{grid-template-columns:1fr}.finance-grid{grid-template-columns:1fr}}
@media(max-width:760px){.app-shell{display:block}.sidebar{position:static;width:100%;height:auto;display:block;padding:12px}.brand,.sidebar-bottom{display:none}.nav{flex-direction:row;overflow:auto}.nav a{min-width:max-content}.main{padding:0 14px 30px}.topbar{height:66px}.topbar h1{font-size:18px}.store-select-wrap{max-width:180px}.kpi-grid{grid-template-columns:1fr}.finance-hero{display:block}.finance-score{border:0;padding:20px 0 0}.auth-page{display:block}.auth-visual{display:none}.auth-form-pane{min-height:100vh;padding:24px}.auth-mobile-logo{display:flex;gap:8px;align-items:center;margin-bottom:50px;font-weight:700}.connect-layout{display:block}.connect-side{display:none}}


/* ===== V2 polish ===== */
.toolbar-row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:2px 0 14px}
.period-tabs{display:inline-flex;gap:3px;background:#fff;border:1px solid var(--line);padding:3px;border-radius:10px;box-shadow:0 1px 2px rgba(16,24,40,.03)}
.period-tabs a{padding:7px 10px;border-radius:7px;text-decoration:none;color:#667085;font-size:11px;font-weight:600}
.period-tabs a:hover{background:#f8fafc}.period-tabs a.active{background:#101828;color:#fff}
.kpi-foot{display:flex;align-items:center;gap:7px;margin-top:8px;color:#98a2b3;font-size:10.5px}.delta{display:inline-flex;align-items:center;gap:2px;font-weight:700}.delta svg{width:12px}.delta.up{color:#079455}.delta.down{color:#d92d20}
.chart-switch{display:flex;gap:4px;background:#f2f4f7;padding:3px;border-radius:8px}.chart-switch button{border:0;background:transparent;color:#667085;padding:6px 8px;border-radius:6px;font-size:10.5px;font-weight:600;cursor:pointer}.chart-switch button.active{background:#fff;color:#101828;box-shadow:0 1px 2px rgba(16,24,40,.08)}
.insight-section{margin-top:20px}.section-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:10px}.section-heading h2{font-size:15px;margin:0}.section-heading p{font-size:11px;color:#98a2b3;margin:4px 0 0}
.insight-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.insight-card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:15px;text-decoration:none;color:inherit;box-shadow:var(--shadow);transition:.18s}.insight-card:hover{transform:translateY(-2px);box-shadow:0 10px 26px rgba(16,24,40,.08)}
.insight-icon{width:32px;height:32px;border-radius:9px;background:#f2f4f7;display:grid;place-items:center;margin-bottom:15px}.insight-icon svg{width:16px}.insight-card.good .insight-icon{background:#ecfdf3;color:#079455}.insight-card.bad .insight-icon{background:#fef3f2;color:#d92d20}.insight-card.cold .insight-icon{background:#eff8ff;color:#175cd3}.insight-card.warn .insight-icon{background:#fffaeb;color:#dc6803}
.insight-value{font-size:24px;font-weight:700;letter-spacing:-.04em}.insight-card>strong{display:block;font-size:11.5px;margin-top:2px}.insight-card p{font-size:10.5px;color:#667085;line-height:1.45;min-height:44px}.insight-link{display:flex;align-items:center;gap:4px;font-size:10.5px;font-weight:700;color:#475467}.insight-link svg{width:12px}
.muted-counter{font-size:11px;color:#667085}.summary-inline{display:flex;gap:18px;font-size:11px;color:#667085}.summary-inline strong{color:#101828;margin-left:4px}
.table-toolbar{padding:12px 14px;border-bottom:1px solid var(--line);background:#fbfcfd}.filter-form{display:flex;gap:8px;align-items:center}.filter-form select{border:1px solid #d0d5dd;background:#fff;border-radius:9px;padding:8px 28px 8px 9px;font:inherit;font-size:11px;color:#344054;outline:0}
.search-box{position:relative;min-width:280px}.search-box svg{position:absolute;left:10px;top:50%;transform:translateY(-50%);width:14px;color:#98a2b3}.search-box input{padding:8px 10px 8px 31px;font-size:11px}
.filter-btn{border:0;background:#101828;color:white;border-radius:9px;padding:9px 12px;font-size:11px;font-weight:600;cursor:pointer}
.table-scroll thead th{position:sticky;top:0;z-index:2}.table-scroll tbody tr:hover{background:#fafbfd}.stock-pill{font-size:10px;padding:4px 7px;border-radius:6px;background:#ecfdf3;color:#027a48;font-weight:600}.stock-pill.out{background:#f2f4f7;color:#667085}
.pagination{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-top:1px solid var(--line);font-size:10.5px;color:#667085}.pagination div{display:flex;gap:8px}.pagination a{color:#344054;text-decoration:none;border:1px solid #d0d5dd;background:#fff;padding:6px 9px;border-radius:7px;font-weight:600}
.decision-badge{display:inline-flex;padding:5px 7px;border-radius:6px;font-size:9.5px;font-weight:700;white-space:nowrap}.decision-badge.strong{background:#ecfdf3;color:#027a48}.decision-badge.normal{background:#eff8ff;color:#175cd3}.decision-badge.low{background:#fffaeb;color:#b54708}.decision-badge.loss{background:#fef3f2;color:#b42318}.decision-badge.return{background:#f4f3ff;color:#5925dc}.action-text{font-size:10.5px;color:#475467}.data-warning{font-size:9.5px;color:#b54708;background:#fffaeb;padding:4px 6px;border-radius:6px}.pnl-cell-note{display:block;margin-top:3px;color:#667085;font-size:9px;line-height:1.25}
.returns-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:14px}.mini-kpi{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px;box-shadow:var(--shadow)}.mini-kpi span{display:block;color:#667085;font-size:10.5px}.mini-kpi strong{display:block;margin-top:6px;font-size:19px}
.store-row.v2{grid-template-columns:42px minmax(180px,1fr) 170px minmax(240px,1fr) auto}.store-metric span,.store-metric strong{display:block}.store-metric span{font-size:9.5px;color:#98a2b3}.store-metric strong{font-size:14px;margin-top:4px}.store-sync strong,.store-sync span{display:block}.store-sync strong{font-size:10.5px}.store-sync span{font-size:9.5px;color:#98a2b3;margin-top:2px}.outline-btn{display:inline-flex;align-items:center;gap:6px;border:1px solid #d0d5dd;background:#fff;color:#344054;border-radius:8px;padding:7px 9px;font-size:10px;font-weight:600;cursor:pointer}.outline-btn svg{width:13px}
@media(max-width:1200px){.insight-grid{grid-template-columns:repeat(2,1fr)}.store-row.v2{grid-template-columns:42px 1fr auto}.store-metric{display:none}.store-sync{display:none}}
@media(max-width:760px){.toolbar-row{align-items:flex-start;flex-direction:column}.filter-form{flex-wrap:wrap}.search-box{min-width:100%;width:100%}.insight-grid,.returns-kpis{grid-template-columns:1fr 1fr}.summary-inline{display:none}.store-row.v2{grid-template-columns:42px 1fr}.store-row.v2 form{grid-column:2}.chart-switch{display:none}}
/* ===== Finance Engine V3 ===== */
.notice.success{background:#ecfdf3;border:1px solid #abefc6;color:#05603a}.notice.success strong{color:#05603a}
.notice.neutral{background:#f8fafc;border:1px solid #e4e7ec;color:#475467}.notice.neutral strong{color:#344054}
.dot.purple{background:#7f56d9}.dot.pink{background:#ee46bc}.positive-row{color:#027a48!important}.positive-row strong{color:#027a48}
.finance-top-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:14px;margin-bottom:14px}.upload-panel,.coverage-panel{overflow:hidden}
.finance-upload-form{padding:16px 18px}.upload-box{display:flex;align-items:center;gap:12px;border:1px dashed #d0d5dd;border-radius:11px;padding:13px;margin:0 0 10px;cursor:pointer;background:#fbfcfd;transition:.15s}.upload-box:hover{border-color:#98a2b3;background:#fff}.upload-box input{width:auto;margin-left:auto;max-width:190px;font-size:10px;border:0;padding:0;background:transparent}.upload-icon{width:36px;height:36px;border-radius:9px;background:#f2f4f7;display:grid;place-items:center;color:#475467;flex:none}.upload-icon svg{width:17px}.upload-box strong,.upload-box span{display:block}.upload-box strong{font-size:11.5px}.upload-box span{font-size:9.8px;color:#98a2b3;margin-top:3px;line-height:1.35}
.coverage-list{padding:9px 18px 16px}.coverage-row{display:flex;align-items:center;gap:11px;padding:11px 0;border-bottom:1px solid #f2f4f7}.coverage-status{width:27px;height:27px;border-radius:8px;display:grid;place-items:center;flex:none}.coverage-status svg{width:13px}.coverage-status.ok{background:#ecfdf3;color:#079455}.coverage-status.wait{background:#fffaeb;color:#dc6803}.coverage-row strong,.coverage-row span{display:block}.coverage-row strong{font-size:11px}.coverage-row span{font-size:9.5px;color:#98a2b3;margin-top:3px}.coverage-note{display:flex;gap:8px;padding-top:13px;color:#667085;font-size:9.5px;line-height:1.45}.coverage-note svg{width:14px;flex:none}
.finance-kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:14px}.finance-breakdown-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}.finance-lines{padding:5px 18px 12px}.finance-lines>div{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid #f2f4f7;font-size:10.8px}.finance-lines>div:last-child{border-bottom:0}.finance-lines span{color:#667085}.finance-lines strong{font-size:10.8px}.finance-lines .finance-total{border-top:1px solid #d0d5dd;margin-top:4px;padding-top:13px}.finance-lines .finance-total span,.finance-lines .finance-total strong{color:#101828;font-weight:700}.positive-lines strong{color:#079455}
.finance-engine-status{display:flex;gap:10px;margin:8px 18px 18px;border-radius:10px;padding:11px}.finance-engine-status svg{width:17px;flex:none}.finance-engine-status.ok{background:#ecfdf3;color:#05603a}.finance-engine-status.warn{background:#fffaeb;color:#93370d}.finance-engine-status strong,.finance-engine-status span{display:block}.finance-engine-status strong{font-size:10.8px}.finance-engine-status span{font-size:9.5px;margin-top:3px;line-height:1.4}
@media(max-width:1050px){.finance-top-grid,.finance-breakdown-grid{grid-template-columns:1fr}.finance-kpi-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.finance-kpi-grid{grid-template-columns:1fr}.upload-box{align-items:flex-start;flex-wrap:wrap}.upload-box input{max-width:100%;margin-left:48px}}

.finance-complete{display:flex;align-items:center;gap:7px;margin-top:12px;padding:9px 10px;border-radius:8px;background:#eff8ff;color:#175cd3;font-size:9.8px}.finance-complete svg{width:14px}.finance-complete strong{color:#175cd3}
/* ===== Finance V3.2: missing costs editor ===== */
.notice a{color:inherit;font-weight:800;text-decoration:underline;text-underline-offset:2px}
.missing-cost-panel{margin-bottom:14px;overflow:hidden}
.missing-cost-head{align-items:center}
.missing-cost-badge{background:#fff4ed;color:#b93815;border:1px solid #ffd6ae;border-radius:999px;padding:5px 9px;font-size:9.5px;font-weight:800;white-space:nowrap}
.missing-cost-table-wrap{max-height:520px;overflow:auto}
.missing-cost-table{min-width:920px}
.missing-cost-table th.num,.missing-cost-table td.num{text-align:right}
.missing-cost-table .mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#667085;font-size:9.8px}
.product-cell strong,.product-cell span{display:block}
.product-cell strong{font-size:10.5px;max-width:430px}
.product-cell span{font-size:9px;color:#98a2b3;margin-top:3px}
.cost-input-col{width:180px}
.cost-input-wrap{display:flex;align-items:center;border:1px solid #d0d5dd;background:#fff;border-radius:8px;overflow:hidden;max-width:165px;margin-left:auto}
.cost-input-wrap:focus-within{border-color:#667085;box-shadow:0 0 0 3px rgba(16,24,40,.06)}
.cost-input{width:100%;min-width:0;border:0!important;outline:0!important;box-shadow:none!important;padding:8px 9px!important;font-size:10.5px!important;background:transparent!important}
.cost-input-wrap span{padding-right:9px;color:#98a2b3;font-size:10px}
.missing-cost-actions{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:13px 18px;border-top:1px solid #eaecf0;background:#fcfcfd}
.missing-cost-actions>span{color:#667085;font-size:9.5px;line-height:1.4;max-width:650px}
.missing-cost-actions .primary-btn{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.missing-cost-actions .primary-btn svg{width:14px}
@media(max-width:800px){.missing-cost-actions{align-items:stretch;flex-direction:column}.missing-cost-actions .primary-btn{justify-content:center}}
/* ===== Finance V3.3: manual sync + status accuracy ===== */
.sync-actions{display:flex;align-items:center;gap:8px}
.dashboard-sync-form{margin:0}
.sync-now-btn{height:31px;display:inline-flex;align-items:center;gap:6px;border:1px solid #d0d5dd;border-radius:9px;background:#fff;color:#344054;padding:0 10px;font-size:9.8px;font-weight:700;cursor:pointer;transition:.15s}
.sync-now-btn:hover{background:#f9fafb;border-color:#98a2b3}
.sync-now-btn svg{width:13px;height:13px}
.sync-now-btn.loading{pointer-events:none;opacity:.72}
.sync-now-btn.loading svg{animation:spin-sync .8s linear infinite}
@keyframes spin-sync{to{transform:rotate(360deg)}}
@media(max-width:760px){.sync-actions{gap:5px}.sync-chip{font-size:9px}.sync-now-btn{padding:0 8px}}
/* ===== Finance V3.4: Actual P&L by SKU ===== */
.pnl-finance-scroll{overflow:auto}
.pnl-finance-table{min-width:1380px}
.pnl-finance-table th,.pnl-finance-table td{white-space:nowrap}
.pnl-finance-table th:first-child,.pnl-finance-table td:first-child{white-space:normal;min-width:330px}
/* ===== Finance V3.4: Actual P&L by SKU ===== */
.pnl-finance-scroll{overflow:auto}
.pnl-finance-table{min-width:1380px}
.pnl-finance-table th,.pnl-finance-table td{white-space:nowrap}
.pnl-finance-table th:first-child,.pnl-finance-table td:first-child{white-space:normal;min-width:330px}
/* ===== AI ANALYTICS V1 ===== */
.ai-card-link{text-decoration:none;color:inherit;position:relative}
.ai-card-link:hover,.ai-card-link.active{border-color:#344054;background:#182230}
.ai-arrow{margin-left:auto;width:14px!important;height:14px!important;color:#667085}
.ai-page{padding-bottom:18px}
.ai-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.ai-period-chip{display:flex;align-items:center;gap:6px;font-size:9.5px;color:#667085;background:#fff;border:1px solid #eaecf0;border-radius:9px;padding:7px 9px}
.ai-period-chip svg{width:13px}
.ai-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:14px;align-items:start}
.ai-chat-panel{min-height:650px;display:flex;flex-direction:column;overflow:hidden}
.ai-chat-head{display:flex;justify-content:space-between;align-items:center;padding:16px 18px;border-bottom:1px solid #eaecf0}
.ai-chat-head h3{font-size:13px;margin:0}.ai-chat-head p{font-size:9.5px;color:#98a2b3;margin:4px 0 0}
.ghost-btn{display:inline-flex;align-items:center;gap:6px;border:1px solid #d0d5dd;background:#fff;border-radius:8px;padding:7px 9px;font-size:9.5px;font-weight:700;color:#475467;cursor:pointer}.ghost-btn svg{width:13px}
.ai-messages{flex:1;min-height:440px;max-height:610px;overflow:auto;padding:20px}
.ai-welcome{text-align:center;max-width:680px;margin:55px auto 30px}
.ai-welcome-icon{width:46px;height:46px;border-radius:13px;background:#101828;color:#fff;display:grid;place-items:center;margin:0 auto 13px}.ai-welcome-icon svg{width:20px}
.ai-welcome h2{margin:0;font-size:20px}.ai-welcome p{color:#667085;font-size:10.5px;line-height:1.6;margin:9px auto 18px;max-width:500px}
.ai-suggestions{display:flex;justify-content:center;gap:7px;flex-wrap:wrap}
.ai-suggestions button{border:1px solid #e4e7ec;background:#fff;border-radius:999px;padding:8px 10px;font-size:9.5px;color:#344054;cursor:pointer}.ai-suggestions button:hover{border-color:#98a2b3;background:#f9fafb}
.ai-message{display:flex;gap:10px;margin:0 0 18px;max-width:900px}.ai-message.user{margin-left:auto;flex-direction:row-reverse;max-width:760px}
.ai-message-avatar{width:29px;height:29px;border-radius:9px;display:grid;place-items:center;flex:none;background:#101828;color:#fff;font-size:10px;font-weight:800}.ai-message.user .ai-message-avatar{background:#f2f4f7;color:#344054}.ai-message-avatar svg{width:14px}
.ai-message-body{min-width:0}.ai-message-role{font-size:9px;font-weight:800;color:#98a2b3;margin:0 0 5px}.ai-message.user .ai-message-role{text-align:right}
.ai-message-text{font-size:11px;line-height:1.65;color:#344054;background:#f8fafc;border:1px solid #eaecf0;border-radius:4px 12px 12px 12px;padding:11px 13px;white-space:normal}
.ai-message.user .ai-message-text{background:#101828;color:#fff;border-color:#101828;border-radius:12px 4px 12px 12px}
.ai-message.error .ai-message-text{background:#fff1f3;border-color:#fecdca;color:#b42318}
.typing-dots{display:flex;gap:4px;padding:4px 1px}.typing-dots i{width:5px;height:5px;background:#98a2b3;border-radius:50%;animation:ai-pulse 1s infinite}.typing-dots i:nth-child(2){animation-delay:.15s}.typing-dots i:nth-child(3){animation-delay:.3s}@keyframes ai-pulse{0%,80%,100%{opacity:.3;transform:scale(.8)}40%{opacity:1;transform:scale(1)}}
.ai-composer{display:flex;align-items:flex-end;gap:9px;border-top:1px solid #eaecf0;padding:13px 14px;background:#fcfcfd}
.ai-composer textarea{flex:1;resize:none;border:1px solid #d0d5dd;border-radius:10px;padding:10px 12px;font:inherit;font-size:10.5px;line-height:1.45;min-height:44px;max-height:130px;outline:0}.ai-composer textarea:focus{border-color:#667085;box-shadow:0 0 0 3px rgba(16,24,40,.06)}
.ai-send-btn{height:44px;display:inline-flex;align-items:center;gap:7px;background:#101828;color:#fff;border:0;border-radius:10px;padding:0 14px;font-size:10px;font-weight:800;cursor:pointer}.ai-send-btn svg{width:14px}.ai-send-btn:disabled{opacity:.5;cursor:not-allowed}.ai-send-btn.loading svg{animation:spin-sync .8s linear infinite}
.ai-side{display:grid;gap:14px}.ai-data-list{padding:7px 17px 15px}.ai-data-list>div{display:flex;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #f2f4f7}.ai-data-list>div:last-child{border-bottom:0}.ai-data-list svg{width:16px;color:#667085}.ai-data-list span,.ai-data-list strong,.ai-data-list small{display:block}.ai-data-list strong{font-size:10.5px}.ai-data-list small{font-size:9px;color:#98a2b3;margin-top:2px}
.ai-rule-card{padding:16px}.ai-rule-card>svg{width:19px;color:#079455;margin-bottom:9px}.ai-rule-card strong{display:block;font-size:11px}.ai-rule-card p{font-size:9.5px;line-height:1.55;color:#667085;margin:6px 0 0}
@media(max-width:1100px){.ai-layout{grid-template-columns:1fr}.ai-side{grid-template-columns:1fr 1fr}.ai-chat-panel{min-height:600px}}
@media(max-width:760px){.ai-toolbar{align-items:flex-start;gap:8px;flex-direction:column}.ai-side{grid-template-columns:1fr}.ai-messages{padding:14px}.ai-composer{align-items:stretch;flex-direction:column}.ai-send-btn{justify-content:center}}
.plan-mini{display:flex;justify-content:space-between;gap:8px;text-decoration:none;color:#fff;border:1px solid #344054;border-radius:10px;padding:8px 10px;margin-bottom:8px;background:#101828}.plan-mini span{font-size:9.5px;font-weight:800}.plan-mini small{font-size:8px;color:#98a2b3}
.primary-btn,.secondary-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;border-radius:9px;padding:0 11px;font-size:9.5px;font-weight:800;text-decoration:none;cursor:pointer}.primary-btn{background:#101828;color:#fff;border:1px solid #101828}.secondary-btn{background:#fff;color:#344054;border:1px solid #d0d5dd}.primary-btn svg,.secondary-btn svg{width:13px}.wide{width:100%}
.setup-narrow{max-width:620px;margin:24px auto}.setup-card{padding:26px}.setup-icon{width:44px;height:44px;border-radius:12px;background:#101828;color:#fff;display:grid;place-items:center;margin-bottom:14px}.setup-card h2{font-size:18px;margin:0}.setup-card>p,.setup-foot{font-size:10px;color:#667085;line-height:1.6}.limit-line{display:flex;justify-content:space-between;background:#f9fafb;border:1px solid #eaecf0;border-radius:9px;padding:9px 11px;margin:15px 0;font-size:9.5px}.setup-form{display:grid;gap:12px}.setup-form label{display:grid;gap:5px;font-size:9px;font-weight:700}.setup-form input{height:40px;border:1px solid #d0d5dd;border-radius:9px;padding:0 11px;font-size:10px}
.onboarding-shell{max-width:980px;margin:0 auto 30px}.onboarding-hero{display:flex;justify-content:space-between;align-items:center;padding:22px 24px}.eyebrow{font-size:8px;letter-spacing:.12em;font-weight:800;color:#98a2b3}.onboarding-hero h2{font-size:20px;margin:5px 0}.onboarding-hero p{font-size:10px;color:#667085}.progress-ring{width:76px;height:76px;border-radius:50%;background:#101828;color:#fff;display:grid;place-items:center;align-content:center}.progress-ring strong{font-size:18px}.progress-ring span{font-size:8px;color:#98a2b3}.progress-bar{height:6px;background:#eaecf0;border-radius:999px;overflow:hidden;margin:10px 0 14px}.progress-bar span{display:block;height:100%;background:#101828}
.onboarding-steps{display:grid;gap:10px}.onboard-step{display:grid;grid-template-columns:42px 1fr;gap:12px;background:#fff;border:1px solid #eaecf0;border-radius:12px;padding:15px 17px}.onboard-step.active{border-color:#98a2b3}.onboard-step.done{border-color:#d1fadf}.onboard-step.locked{opacity:.55}.step-num{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#f2f4f7;font-size:10px;font-weight:800}.done .step-num{background:#ecfdf3;color:#067647}.step-num svg{width:15px}.step-body h3{font-size:11.5px;margin:1px 0}.step-body p{font-size:9px;color:#98a2b3;margin:3px 0 9px}.step-okline{font-size:9.5px;color:#067647;font-weight:700}.step-warning,.mini-error{font-size:9px;color:#b54708;margin:7px 0}.mini-error{color:#b42318}.upload-inline{display:flex;gap:8px;align-items:center}.file-btn{position:relative;display:inline-flex;align-items:center;gap:6px;border:1px solid #d0d5dd;border-radius:9px;padding:9px 10px;font-size:9.5px;font-weight:800;cursor:pointer}.file-btn input{position:absolute;inset:0;opacity:0}.onboard-finance-upload{display:grid;grid-template-columns:1fr 1fr auto;gap:8px}.onboard-finance-upload label{display:grid;gap:4px;border:1px dashed #d0d5dd;border-radius:9px;padding:8px;font-size:9px}.onboard-finance-upload input{font-size:8px}.trial-banner{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;margin-top:14px}.trial-banner strong,.trial-banner span{display:block}.trial-banner strong{font-size:10px}.trial-banner span{font-size:9px;color:#667085;margin-top:3px}.trial-banner a{font-size:9.5px;font-weight:800;color:#344054}
.billing-hero{display:flex;justify-content:space-between;align-items:center;padding:20px 22px;margin-bottom:14px}.billing-hero h2{font-size:22px;margin:5px 0}.billing-hero p{font-size:9.5px;color:#667085}.usage-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.usage-grid>div{min-width:100px;background:#f9fafb;border:1px solid #eaecf0;border-radius:9px;padding:10px}.usage-grid span,.usage-grid strong{display:block}.usage-grid span{font-size:8.5px;color:#98a2b3}.usage-grid strong{font-size:11px;margin-top:3px}.pricing-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:14px}.pricing-card{padding:18px;position:relative}.pricing-card.current{border-color:#101828}.current-pill{position:absolute;right:12px;top:12px;background:#101828;color:#fff;border-radius:999px;padding:4px 7px;font-size:8px}.pricing-card h3{font-size:14px;margin:0}.price{font-size:20px;font-weight:800;margin:10px 0}.price small{font-size:9px;color:#98a2b3}.pricing-card>p{font-size:9px;color:#667085}.pricing-card ul{list-style:none;padding:0;display:grid;gap:8px;font-size:9px}
.team-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:12px}.team-limit{font-size:9px;border:1px solid #eaecf0;background:#fff;border-radius:9px;padding:7px 9px}.invite-card{padding:14px 16px;margin-bottom:14px;display:flex;justify-content:space-between;gap:15px;align-items:center}.invite-card h3{font-size:11px;margin:0}.invite-card p{font-size:9px;color:#667085}.invite-card form{display:flex;gap:7px}.invite-card input,.invite-card select{height:36px;border:1px solid #d0d5dd;border-radius:8px;padding:0 9px;font-size:9px}.member{display:flex;align-items:center;gap:8px}.member-avatar{width:28px;height:28px;border-radius:8px;background:#f2f4f7;display:grid;place-items:center;font-size:9px;font-weight:800}.member strong,.member small{display:block}.member strong{font-size:9.5px}.member small{font-size:8.5px;color:#98a2b3}.role-pill{font-size:8px;font-weight:800;border-radius:999px;padding:5px 7px;background:#f2f4f7}.role-pill.owner{background:#ecfdf3;color:#067647}.role-pill.admin{background:#eff8ff;color:#175cd3}.icon-danger{border:0;background:transparent;color:#b42318}.icon-danger svg{width:14px}.error-state{max-width:560px;margin:60px auto;text-align:center;padding:35px}.error-code{font-size:40px;font-weight:800;color:#d0d5dd}.error-state h2{font-size:18px}.error-state p{font-size:10px;color:#667085}
@media(max-width:900px){.pricing-grid{grid-template-columns:1fr}.billing-hero{align-items:flex-start;flex-direction:column}.onboard-finance-upload{grid-template-columns:1fr}.invite-card{align-items:stretch;flex-direction:column}}
/* ===== Profit-Safe Repricer V1 ===== */
.repricer-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:12px}.repricer-head h2{font-size:17px;margin:5px 0}.repricer-head p{font-size:9.8px;color:#667085;line-height:1.55;max-width:720px;margin:0}.repricer-actions{display:flex;gap:7px;flex:none}
.repricer-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:14px 0}
.repricer-scroll{overflow:auto;max-height:720px}.repricer-table{min-width:1700px}.repricer-table th,.repricer-table td{white-space:nowrap}.repricer-table th.num,.repricer-table td.num{text-align:right}.repricer-table th:first-child,.repricer-table td:first-child{white-space:normal;min-width:300px}.repricer-table th:nth-child(7),.repricer-table td:nth-child(7){white-space:normal;min-width:270px}
.repricer-danger{background:#fffaf9}.repricer-badge{display:inline-flex;padding:5px 7px;border-radius:999px;font-size:8.5px;font-weight:800}.repricer-badge.protect{background:#fef3f2;color:#b42318}.repricer-badge.raise{background:#ecfdf3;color:#067647}.repricer-badge.lower{background:#eff8ff;color:#175cd3}.repricer-badge.hold{background:#f2f4f7;color:#344054}.repricer-badge.missing{background:#fffaeb;color:#b54708}.repricer-reason{font-size:8.7px;line-height:1.45;color:#667085;margin-top:5px}
.repricer-settings summary{cursor:pointer;font-size:9px;font-weight:800;color:#344054}.repricer-settings[open]{position:relative}.repricer-settings form{width:390px;margin-top:8px;background:#fff;border:1px solid #d0d5dd;border-radius:10px;padding:11px;box-shadow:0 8px 28px rgba(16,24,40,.12)}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:9px}.settings-grid label{display:grid;gap:4px;font-size:8px;color:#667085}.settings-grid input{height:33px;border:1px solid #d0d5dd;border-radius:7px;padding:0 8px;font-size:9px}.settings-grid .span-2{grid-column:1/-1}.muted{color:#98a2b3}
.repricer-method{display:grid;grid-template-columns:repeat(3,1fr);margin-top:14px}.repricer-method>div{padding:14px 16px;border-right:1px solid #eaecf0}.repricer-method>div:last-child{border-right:0}.repricer-method strong,.repricer-method span{display:block}.repricer-method strong{font-size:10px}.repricer-method span{font-size:9px;color:#667085;line-height:1.45;margin-top:4px}
.audit-table{width:100%;min-width:950px}.audit-table code{font-size:8px;white-space:normal;word-break:break-word}
@media(max-width:1100px){.repricer-kpis{grid-template-columns:repeat(2,1fr)}.repricer-head{align-items:flex-start;flex-direction:column}}
@media(max-width:700px){.repricer-kpis{grid-template-columns:1fr}.repricer-method{grid-template-columns:1fr}.repricer-method>div{border-right:0;border-bottom:1px solid #eaecf0}}

/* ===== Account and platform administration ===== */
.account-menu{display:flex;align-items:center;gap:8px;color:inherit;text-decoration:none;border:1px solid transparent;border-radius:10px;padding:4px 6px}.account-menu:hover{background:#fff;border-color:var(--line)}.account-menu>div:nth-child(2){max-width:150px}.account-menu strong,.account-menu span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.account-menu strong{font-size:9.5px}.account-menu span{font-size:8px;color:var(--muted2);margin-top:2px}.account-menu>svg{width:14px;color:var(--muted2)}
.account-page-head{display:flex;align-items:flex-start;justify-content:space-between;margin:0 0 14px}.account-page-head h2{font-size:19px;margin:0}.account-page-head p{font-size:10px;color:var(--muted);margin:4px 0 0}.account-section{margin-bottom:14px;overflow:hidden}.account-section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:17px 18px;border-bottom:1px solid var(--line)}.account-section-head h3{font-size:13px;margin:0}.account-section-head p{font-size:9.5px;color:var(--muted2);margin:3px 0 0}.quiet-status{display:flex;align-items:center;gap:5px;font-size:9px;color:var(--green)}.quiet-status svg{width:13px}.profile-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:0;padding:4px 18px}.profile-summary>div{padding:13px 12px 13px 0}.profile-summary span,.profile-summary strong{display:block}.profile-summary span{font-size:8.5px;color:var(--muted2)}.profile-summary strong{font-size:11px;margin-top:4px;overflow-wrap:anywhere}
.settings-disclosure{border-top:1px solid var(--line)}.settings-disclosure>summary{list-style:none;display:flex;align-items:center;gap:7px;min-height:46px;padding:0 18px;color:#344054;font-size:9.5px;font-weight:750;cursor:pointer}.settings-disclosure>summary::-webkit-details-marker{display:none}.settings-disclosure>summary svg{width:14px}.settings-disclosure>summary svg:last-child{margin-left:auto;transition:.18s}.settings-disclosure[open]>summary svg:last-child{transform:rotate(180deg)}.settings-disclosure[open]>summary{background:#fafbfc}.settings-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px;padding:16px 18px 18px;background:#fafbfc;border-top:1px solid var(--line)}.settings-form-grid label,.api-replace-form label{display:grid;gap:5px;margin:0;font-size:9px}.settings-form-grid .span-2{grid-column:1/-1}.settings-form-grid input,.api-replace-form input{height:39px}.settings-actions{display:flex;justify-content:flex-end}.settings-actions .primary-btn{width:auto;margin:0}.account-store-list{padding:0 18px}.account-store-row{display:grid;grid-template-columns:38px minmax(180px,1fr) auto;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}.account-store-row:last-child{border-bottom:0}.account-store-main strong,.account-store-main span{display:block}.account-store-main strong{font-size:11px}.account-store-main span{font-size:8.5px;color:var(--muted2);margin-top:3px}.api-state{font-size:8.5px;font-weight:750;border-radius:999px;padding:5px 7px}.api-state.connected{background:#ecfdf3;color:#067647}.api-state.missing{background:#fff4ed;color:#b54708}.api-disclosure{grid-column:1/-1;width:100%}.api-manage-body{background:#fafbfc;border-top:1px solid var(--line);padding:16px 18px}.api-replace-form{display:grid;grid-template-columns:minmax(220px,1fr) auto;align-items:end;gap:10px}.api-replace-form .primary-btn{width:auto;margin:0;min-height:39px}.danger-zone{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:16px;padding-top:14px;border-top:1px solid #fecdca}.danger-zone strong,.danger-zone span{display:block}.danger-zone strong{font-size:9.5px;color:#b42318}.danger-zone span{font-size:8.5px;color:var(--muted2);margin-top:3px}.danger-button{border:1px solid #fecdca;background:#fff;color:#b42318;border-radius:8px;min-height:34px;padding:0 10px;font-size:8.5px;font-weight:750;cursor:pointer}.danger-button:hover{background:#fef3f2}.danger-button:disabled{opacity:.4;cursor:not-allowed}
.access-state{max-width:560px;margin:80px auto;padding:36px;text-align:center}.access-state-icon{width:46px;height:46px;border-radius:12px;background:#f2f4f7;display:grid;place-items:center;margin:0 auto 13px}.access-state-icon svg{width:20px}.access-state h2{font-size:19px;margin:0}.access-state p{font-size:10.5px;line-height:1.6;color:var(--muted);max-width:430px;margin:9px auto 18px}.access-state-actions{display:flex;justify-content:center;gap:8px}.access-state-actions .primary-btn,.access-state-actions .secondary-btn{width:auto;margin:0}
.admin-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:14px}.admin-summary>div{padding:15px 17px}.admin-summary span,.admin-summary strong{display:block}.admin-summary span{font-size:9px;color:var(--muted2)}.admin-summary strong{font-size:20px;margin-top:5px}.admin-users-panel{overflow:hidden}.admin-search{display:flex;gap:7px;min-width:min(480px,50%)}.admin-search input{height:35px;font-size:9px}.admin-search .secondary-btn{min-height:35px}.admin-user-list{padding:0 18px}.admin-user-row{display:grid;grid-template-columns:34px minmax(300px,1fr) 170px auto;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}.admin-user-row:last-child{border-bottom:0}.admin-user-avatar{width:34px;height:34px;border-radius:9px;background:#111827;color:#fff;display:grid;place-items:center;font-size:10px;font-weight:800}.admin-user-identity strong,.admin-user-identity span,.admin-user-identity small,.admin-access-state strong,.admin-access-state small{display:block}.admin-user-identity strong{font-size:10.5px}.admin-user-identity span{font-size:9px;color:#475467;margin-top:2px}.admin-user-identity small{font-size:8px;color:var(--muted2);margin-top:3px}.admin-mark{display:inline!important;margin-left:5px;padding:2px 4px;border-radius:4px;background:#eff8ff;color:#175cd3;font-size:7px!important}.admin-access-state{text-align:right}.admin-access-state strong{font-size:9px;margin-top:4px}.admin-access-state small{font-size:8px;color:var(--muted2);margin-top:2px}.user-state{display:inline-flex;border-radius:999px;padding:4px 6px;font-size:7.5px;font-weight:800}.user-state.active{background:#ecfdf3;color:#067647}.user-state.paused{background:#fffaeb;color:#b54708}.user-state.blocked{background:#fef3f2;color:#b42318}.admin-user-controls{position:relative}.admin-user-controls>summary{list-style:none;display:flex;align-items:center;gap:5px;border:1px solid #d0d5dd;border-radius:8px;min-height:34px;padding:0 9px;font-size:8.5px;font-weight:750;cursor:pointer}.admin-user-controls>summary::-webkit-details-marker{display:none}.admin-user-controls>summary svg{width:12px}.admin-control-body{position:absolute;z-index:20;right:0;top:41px;width:520px;padding:13px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 14px 34px rgba(16,24,40,.16)}.admin-grant-form{display:grid;grid-template-columns:1fr 1fr auto auto;gap:7px;align-items:end}.admin-grant-form label{display:grid;gap:4px;margin:0;font-size:8px;color:var(--muted)}.admin-grant-form select,.admin-grant-form input{height:34px;border:1px solid #d0d5dd;border-radius:8px;background:#fff;padding:0 8px;font-size:8.5px}.admin-grant-form .primary-btn,.admin-grant-form .secondary-btn{min-height:34px;white-space:nowrap;margin:0}.admin-block-form{display:flex;justify-content:flex-end;margin-top:11px;padding-top:11px;border-top:1px solid var(--line)}
 .admin-feature-access{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:4px 0 3px;padding:10px;border:1px solid var(--line);border-radius:8px}.admin-feature-access legend{padding:0 5px;color:var(--muted);font-size:8px;font-weight:750}.admin-feature-access label{display:flex;align-items:center;gap:6px;min-height:28px;padding:5px 7px;border:1px solid var(--line);border-radius:6px;background:#fff;color:#344054!important}.admin-feature-access input{width:auto;height:auto}.admin-feature-access span{line-height:1.25}
@media(max-width:1000px){.admin-user-row{grid-template-columns:34px 1fr auto}.admin-access-state{grid-column:2;text-align:left}.admin-user-controls{grid-column:3;grid-row:1/3}.admin-control-body{width:min(520px,80vw)}.admin-grant-form{grid-template-columns:1fr 1fr}.account-menu>div:nth-child(2){display:none}}
@media(max-width:700px){.profile-summary,.settings-form-grid,.admin-summary{grid-template-columns:1fr}.settings-form-grid .span-2{grid-column:auto}.account-store-row{grid-template-columns:38px 1fr}.api-state{grid-column:2;justify-self:start}.api-replace-form{grid-template-columns:1fr}.danger-zone{align-items:flex-start;flex-direction:column}.admin-search{min-width:0;width:100%}.admin-users-panel>.panel-head{align-items:stretch;flex-direction:column}.admin-user-row{grid-template-columns:34px 1fr}.admin-user-controls{grid-column:1/-1;grid-row:auto}.admin-control-body{position:static;width:100%;margin-top:7px;box-shadow:none}.admin-grant-form{grid-template-columns:1fr}.admin-feature-access{grid-template-columns:1fr 1fr}.access-state-actions{flex-direction:column}}
/* ===== Competitive Repricer V2 ===== */
.repricer-account-settings{margin:14px 0}.account-repricer-form{display:grid;grid-template-columns:2fr 1.2fr auto;gap:9px;align-items:end;padding:0 16px 16px}.account-repricer-form label{display:grid;gap:4px;font-size:8.5px;font-weight:700;color:#475467}.account-repricer-form input,.account-repricer-form select{height:36px;border:1px solid #d0d5dd;border-radius:8px;padding:0 9px;font-size:9.5px;background:#fff}
.repricer-v2-scroll{overflow:auto;max-height:720px}.repricer-v2-table{min-width:1700px}.repricer-v2-table th,.repricer-v2-table td{white-space:nowrap}.repricer-v2-table th.num,.repricer-v2-table td.num{text-align:right}.repricer-v2-table th:first-child,.repricer-v2-table td:first-child{white-space:normal;min-width:300px}
.block-muted{display:block;font-size:8px;color:#98a2b3;margin-top:3px}.scan-state{display:inline-flex;border-radius:999px;padding:4px 6px;font-size:8px;font-weight:800}.scan-state.ok{background:#ecfdf3;color:#067647}.scan-state.error{background:#fef3f2;color:#b42318}.scan-state.pending{background:#fffaeb;color:#b54708}.scan-state.off{background:#f2f4f7;color:#667085}.scan-error{max-width:230px;white-space:normal;font-size:8px;line-height:1.4;color:#b42318;margin-top:4px}
.settings-grid.v2 select,.settings-grid.v2 textarea{border:1px solid #d0d5dd;border-radius:7px;padding:7px 8px;font-size:9px;background:#fff}.settings-grid.v2 select{height:33px}.settings-grid.v2 textarea{resize:vertical}.check-line{display:flex!important;align-items:center!important;gap:6px!important;grid-template-columns:auto 1fr!important}.check-line input{height:auto!important;width:auto!important}.history-link{display:block;text-align:center;margin-top:8px;font-size:8.5px;color:#475467;text-decoration:none}
.history-grid{display:grid;grid-template-columns:1fr;gap:14px}
@media(max-width:900px){.account-repricer-form{grid-template-columns:1fr}.repricer-v2-table{min-width:1500px}}
/* ===== Competitive Repricer V2.1: autolink + compact desktop table ===== */
.kaspi-product-link{display:flex;align-items:flex-start;gap:5px;color:#101828;text-decoration:none}.kaspi-product-link:hover strong{text-decoration:underline}.kaspi-product-link svg{width:11px;height:11px;flex:none;margin-top:2px;color:#667085}
.auto-link-note{display:flex!important;align-items:center!important;gap:7px!important;border:1px solid #e4e7ec;background:#f9fafb;border-radius:8px;padding:8px;font-size:8.5px;color:#667085}.auto-link-note svg{width:13px;flex:none}.auto-link-note strong{color:#344054}
@media(min-width:1200px){
  .repricer-v2-scroll{overflow-x:hidden}
  .repricer-v2-table{min-width:0!important;width:100%;table-layout:fixed}
  .repricer-v2-table th,.repricer-v2-table td{padding-left:5px!important;padding-right:5px!important;font-size:8.4px!important}
  .repricer-v2-table th:first-child,.repricer-v2-table td:first-child{min-width:0!important;width:25%}
  .repricer-v2-table th:nth-child(2),.repricer-v2-table td:nth-child(2){width:6.5%}
  .repricer-v2-table th:nth-child(3),.repricer-v2-table td:nth-child(3){width:4.2%}
  .repricer-v2-table th:nth-child(4),.repricer-v2-table td:nth-child(4){width:7%}
  .repricer-v2-table th:nth-child(5),.repricer-v2-table td:nth-child(5){width:8%}
  .repricer-v2-table th:nth-child(6),.repricer-v2-table td:nth-child(6){width:7%}
  .repricer-v2-table th:nth-child(7),.repricer-v2-table td:nth-child(7){width:4.6%}
  .repricer-v2-table th:nth-child(8),.repricer-v2-table td:nth-child(8){width:4.6%}
  .repricer-v2-table th:nth-child(9),.repricer-v2-table td:nth-child(9){width:8.5%;white-space:normal!important}
  .repricer-v2-table th:nth-child(10),.repricer-v2-table td:nth-child(10){width:7.2%}
  .repricer-v2-table th:nth-child(11),.repricer-v2-table td:nth-child(11){width:8%;white-space:normal!important}
  .repricer-v2-table th:nth-child(12),.repricer-v2-table td:nth-child(12){width:7%}
  .repricer-v2-table .table-product strong{font-size:8.9px;line-height:1.25}
  .repricer-v2-table .table-product span{font-size:7.5px;line-height:1.2}
  .repricer-v2-table .block-muted{font-size:7px}
  .repricer-v2-table .repricer-badge{font-size:7.4px;padding:4px 5px}
  .repricer-v2-table .scan-state{font-size:7.2px;padding:3px 5px}
  .repricer-v2-table .scan-error{max-width:none;font-size:7px}
  .repricer-settings summary{font-size:8px}
}
/* ===== Repricer V2.2 — readable compact table + settings drawer ===== */
@media(min-width:1200px){
  .repricer-v2-scroll{
    overflow-x:hidden!important;
  }
  .repricer-v2-table{
    width:100%!important;
    min-width:0!important;
    table-layout:fixed!important;
  }
  .repricer-v2-table th{
    font-size:9.2px!important;
    padding:9px 4px!important;
    line-height:1.15!important;
  }
  .repricer-v2-table td{
    font-size:10px!important;
    padding:10px 4px!important;
    line-height:1.25!important;
  }
  .repricer-v2-table th:first-child,
  .repricer-v2-table td:first-child{
    width:23%!important;
    min-width:0!important;
  }
  .repricer-v2-table th:nth-child(2),
  .repricer-v2-table td:nth-child(2){width:6.2%!important}
  .repricer-v2-table th:nth-child(3),
  .repricer-v2-table td:nth-child(3){width:4.2%!important}
  .repricer-v2-table th:nth-child(4),
  .repricer-v2-table td:nth-child(4){width:7.3%!important}
  .repricer-v2-table th:nth-child(5),
  .repricer-v2-table td:nth-child(5){width:7.5%!important}
  .repricer-v2-table th:nth-child(6),
  .repricer-v2-table td:nth-child(6){width:7.3%!important}
  .repricer-v2-table th:nth-child(7),
  .repricer-v2-table td:nth-child(7){width:4.5%!important}
  .repricer-v2-table th:nth-child(8),
  .repricer-v2-table td:nth-child(8){width:4.5%!important}
  .repricer-v2-table th:nth-child(9),
  .repricer-v2-table td:nth-child(9){
    width:8.3%!important;
    white-space:normal!important;
  }
  .repricer-v2-table th:nth-child(10),
  .repricer-v2-table td:nth-child(10){width:7.5%!important}
  .repricer-v2-table th:nth-child(11),
  .repricer-v2-table td:nth-child(11){
    width:7.5%!important;
    white-space:normal!important;
  }
  .repricer-v2-table th:nth-child(12),
  .repricer-v2-table td:nth-child(12){width:7.7%!important}

  .repricer-v2-table .table-product strong{
    font-size:10.4px!important;
    line-height:1.25!important;
  }
  .repricer-v2-table .table-product span{
    font-size:8.5px!important;
    line-height:1.25!important;
  }
  .repricer-v2-table .repricer-badge{
    font-size:8.2px!important;
    padding:4px 6px!important;
  }
  .repricer-v2-table .scan-state{
    font-size:8px!important;
    padding:4px 6px!important;
  }
}

.settings-cell{
  text-align:right;
}
.settings-open-btn{
  border:0;
  background:transparent;
  color:#344054;
  font-size:9px;
  font-weight:800;
  cursor:pointer;
  padding:5px 2px;
  white-space:nowrap;
}
.settings-open-btn::before{
  content:"› ";
}
.settings-open-btn:hover{
  color:#101828;
  text-decoration:underline;
}

.repricer-drawer{
  width:min(440px,96vw);
  height:100dvh;
  max-height:100dvh;
  margin:0 0 0 auto;
  padding:0;
  border:0;
  border-radius:0;
  background:#fff;
  color:#101828;
  box-shadow:-18px 0 50px rgba(16,24,40,.18);
}
.repricer-drawer::backdrop{
  background:rgba(16,24,40,.48);
}
.repricer-drawer[open]{
  display:block;
}
.drawer-shell{
  height:100%;
  display:flex;
  flex-direction:column;
}
.drawer-head{
  display:flex;
  justify-content:space-between;
  gap:14px;
  padding:20px 20px 16px;
  border-bottom:1px solid #eaecf0;
}
.drawer-head h3{
  margin:5px 0 3px;
  font-size:17px;
  line-height:1.25;
}
.drawer-head p{
  margin:0;
  font-size:10px;
  color:#98a2b3;
}
.drawer-close{
  width:34px;
  height:34px;
  border:1px solid #eaecf0;
  border-radius:9px;
  background:#fff;
  font-size:22px;
  line-height:1;
  cursor:pointer;
}
.drawer-summary{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  padding:12px 20px;
  background:#f9fafb;
  border-bottom:1px solid #eaecf0;
}
.drawer-summary div{
  background:#fff;
  border:1px solid #eaecf0;
  border-radius:8px;
  padding:9px;
}
.drawer-summary span,
.drawer-summary strong{
  display:block;
}
.drawer-summary span{
  font-size:8px;
  color:#98a2b3;
}
.drawer-summary strong{
  font-size:11px;
  margin-top:3px;
}
.drawer-form{
  padding:16px 20px 24px;
  overflow-y:auto;
  display:grid;
  gap:12px;
}
.drawer-form>label,
.drawer-grid-2>label{
  display:grid;
  gap:5px;
  font-size:9px;
  font-weight:700;
  color:#475467;
}
.drawer-form input:not([type="checkbox"]),
.drawer-form select,
.drawer-form textarea{
  width:100%;
  border:1px solid #d0d5dd;
  border-radius:8px;
  background:#fff;
  padding:0 10px;
  font-size:10px;
  color:#101828;
}
.drawer-form input:not([type="checkbox"]),
.drawer-form select{
  height:38px;
}
.drawer-form textarea{
  padding-top:9px;
  resize:vertical;
}
.drawer-grid-2,
.toggle-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
}
.drawer-check{
  display:flex!important;
  align-items:center;
  gap:9px;
  border:1px solid #eaecf0;
  border-radius:9px;
  padding:10px;
  background:#fff;
  cursor:pointer;
}
.drawer-check input{
  width:16px;
  height:16px;
  flex:none;
}
.drawer-check span,
.drawer-check strong,
.drawer-check small{
  display:block;
}
.drawer-check strong{
  font-size:10px;
  color:#344054;
}
.drawer-check small{
  font-size:8px;
  color:#98a2b3;
  margin-top:2px;
}
.monitor-check{
  background:#f9fafb;
}
.drawer-save{
  min-height:40px;
  margin-top:2px;
}
.kaspi-product-link{
  gap:5px;
}
.kaspi-product-link svg{
  width:12px!important;
  height:12px!important;
}
/* ===== Repricer V2.4 — official Kaspi widget card resolver ===== */
.account-repricer-form.v24{
  grid-template-columns:1.7fr 1.15fr 1.15fr auto;
}
.account-repricer-form.v24 label small{
  font-size:7.5px;
  color:#98a2b3;
  font-weight:500;
  line-height:1.3;
}
@media(max-width:1100px){
  .account-repricer-form.v24{grid-template-columns:1fr 1fr}
}
/* ===== Repricer V2.5 — direct open without transition page ===== */
.kaspi-resolver-host{
  position:fixed!important;
  left:-10000px!important;
  top:-10000px!important;
  width:1px!important;
  height:1px!important;
  overflow:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}
.kaspi-product-link.resolving{
  opacity:.58;
  pointer-events:none;
}
.kaspi-product-link.resolving::after{
  content:"";
  width:10px;
  height:10px;
  border:1.5px solid #d0d5dd;
  border-top-color:#344054;
  border-radius:50%;
  animation:kaspiResolveSpin .7s linear infinite;
  flex:none;
  margin-left:3px;
}
@keyframes kaspiResolveSpin{
  to{transform:rotate(360deg)}
}
/* ===== Competitive Repricer V2 ===== */
.repricer-account-settings{margin:14px 0}.account-repricer-form{display:grid;grid-template-columns:2fr 1.2fr auto;gap:9px;align-items:end;padding:0 16px 16px}.account-repricer-form label{display:grid;gap:4px;font-size:8.5px;font-weight:700;color:#475467}.account-repricer-form input,.account-repricer-form select{height:36px;border:1px solid #d0d5dd;border-radius:8px;padding:0 9px;font-size:9.5px;background:#fff}
.repricer-v2-scroll{overflow:auto;max-height:720px}.repricer-v2-table{min-width:1700px}.repricer-v2-table th,.repricer-v2-table td{white-space:nowrap}.repricer-v2-table th.num,.repricer-v2-table td.num{text-align:right}.repricer-v2-table th:first-child,.repricer-v2-table td:first-child{white-space:normal;min-width:300px}
.block-muted{display:block;font-size:8px;color:#98a2b3;margin-top:3px}.scan-state{display:inline-flex;border-radius:999px;padding:4px 6px;font-size:8px;font-weight:800}.scan-state.ok{background:#ecfdf3;color:#067647}.scan-state.error{background:#fef3f2;color:#b42318}.scan-state.pending{background:#fffaeb;color:#b54708}.scan-state.off{background:#f2f4f7;color:#667085}.scan-error{max-width:230px;white-space:normal;font-size:8px;line-height:1.4;color:#b42318;margin-top:4px}
.settings-grid.v2 select,.settings-grid.v2 textarea{border:1px solid #d0d5dd;border-radius:7px;padding:7px 8px;font-size:9px;background:#fff}.settings-grid.v2 select{height:33px}.settings-grid.v2 textarea{resize:vertical}.check-line{display:flex!important;align-items:center!important;gap:6px!important;grid-template-columns:auto 1fr!important}.check-line input{height:auto!important;width:auto!important}.history-link{display:block;text-align:center;margin-top:8px;font-size:8.5px;color:#475467;text-decoration:none}
.history-grid{display:grid;grid-template-columns:1fr;gap:14px}
@media(max-width:900px){.account-repricer-form{grid-template-columns:1fr}.repricer-v2-table{min-width:1500px}}
/* ===== Competitive Repricer V2.1: autolink + compact desktop table ===== */
.kaspi-product-link{display:flex;align-items:flex-start;gap:5px;color:#101828;text-decoration:none}.kaspi-product-link:hover strong{text-decoration:underline}.kaspi-product-link svg{width:11px;height:11px;flex:none;margin-top:2px;color:#667085}
.auto-link-note{display:flex!important;align-items:center!important;gap:7px!important;border:1px solid #e4e7ec;background:#f9fafb;border-radius:8px;padding:8px;font-size:8.5px;color:#667085}.auto-link-note svg{width:13px;flex:none}.auto-link-note strong{color:#344054}
@media(min-width:1200px){
  .repricer-v2-scroll{overflow-x:hidden}
  .repricer-v2-table{min-width:0!important;width:100%;table-layout:fixed}
  .repricer-v2-table th,.repricer-v2-table td{padding-left:5px!important;padding-right:5px!important;font-size:8.4px!important}
  .repricer-v2-table th:first-child,.repricer-v2-table td:first-child{min-width:0!important;width:25%}
  .repricer-v2-table th:nth-child(2),.repricer-v2-table td:nth-child(2){width:6.5%}
  .repricer-v2-table th:nth-child(3),.repricer-v2-table td:nth-child(3){width:4.2%}
  .repricer-v2-table th:nth-child(4),.repricer-v2-table td:nth-child(4){width:7%}
  .repricer-v2-table th:nth-child(5),.repricer-v2-table td:nth-child(5){width:8%}
  .repricer-v2-table th:nth-child(6),.repricer-v2-table td:nth-child(6){width:7%}
  .repricer-v2-table th:nth-child(7),.repricer-v2-table td:nth-child(7){width:4.6%}
  .repricer-v2-table th:nth-child(8),.repricer-v2-table td:nth-child(8){width:4.6%}
  .repricer-v2-table th:nth-child(9),.repricer-v2-table td:nth-child(9){width:8.5%;white-space:normal!important}
  .repricer-v2-table th:nth-child(10),.repricer-v2-table td:nth-child(10){width:7.2%}
  .repricer-v2-table th:nth-child(11),.repricer-v2-table td:nth-child(11){width:8%;white-space:normal!important}
  .repricer-v2-table th:nth-child(12),.repricer-v2-table td:nth-child(12){width:7%}
  .repricer-v2-table .table-product strong{font-size:8.9px;line-height:1.25}
  .repricer-v2-table .table-product span{font-size:7.5px;line-height:1.2}
  .repricer-v2-table .block-muted{font-size:7px}
  .repricer-v2-table .repricer-badge{font-size:7.4px;padding:4px 5px}
  .repricer-v2-table .scan-state{font-size:7.2px;padding:3px 5px}
  .repricer-v2-table .scan-error{max-width:none;font-size:7px}
  .repricer-settings summary{font-size:8px}
}
/* ===== Repricer V2.2 — readable compact table + settings drawer ===== */
@media(min-width:1200px){
  .repricer-v2-scroll{
    overflow-x:hidden!important;
  }
  .repricer-v2-table{
    width:100%!important;
    min-width:0!important;
    table-layout:fixed!important;
  }
  .repricer-v2-table th{
    font-size:9.2px!important;
    padding:9px 4px!important;
    line-height:1.15!important;
  }
  .repricer-v2-table td{
    font-size:10px!important;
    padding:10px 4px!important;
    line-height:1.25!important;
  }
  .repricer-v2-table th:first-child,
  .repricer-v2-table td:first-child{
    width:23%!important;
    min-width:0!important;
  }
  .repricer-v2-table th:nth-child(2),
  .repricer-v2-table td:nth-child(2){width:6.2%!important}
  .repricer-v2-table th:nth-child(3),
  .repricer-v2-table td:nth-child(3){width:4.2%!important}
  .repricer-v2-table th:nth-child(4),
  .repricer-v2-table td:nth-child(4){width:7.3%!important}
  .repricer-v2-table th:nth-child(5),
  .repricer-v2-table td:nth-child(5){width:7.5%!important}
  .repricer-v2-table th:nth-child(6),
  .repricer-v2-table td:nth-child(6){width:7.3%!important}
  .repricer-v2-table th:nth-child(7),
  .repricer-v2-table td:nth-child(7){width:4.5%!important}
  .repricer-v2-table th:nth-child(8),
  .repricer-v2-table td:nth-child(8){width:4.5%!important}
  .repricer-v2-table th:nth-child(9),
  .repricer-v2-table td:nth-child(9){
    width:8.3%!important;
    white-space:normal!important;
  }
  .repricer-v2-table th:nth-child(10),
  .repricer-v2-table td:nth-child(10){width:7.5%!important}
  .repricer-v2-table th:nth-child(11),
  .repricer-v2-table td:nth-child(11){
    width:7.5%!important;
    white-space:normal!important;
  }
  .repricer-v2-table th:nth-child(12),
  .repricer-v2-table td:nth-child(12){width:7.7%!important}

  .repricer-v2-table .table-product strong{
    font-size:10.4px!important;
    line-height:1.25!important;
  }
  .repricer-v2-table .table-product span{
    font-size:8.5px!important;
    line-height:1.25!important;
  }
  .repricer-v2-table .repricer-badge{
    font-size:8.2px!important;
    padding:4px 6px!important;
  }
  .repricer-v2-table .scan-state{
    font-size:8px!important;
    padding:4px 6px!important;
  }
}

.settings-cell{
  text-align:right;
}
.settings-open-btn{
  border:0;
  background:transparent;
  color:#344054;
  font-size:9px;
  font-weight:800;
  cursor:pointer;
  padding:5px 2px;
  white-space:nowrap;
}
.settings-open-btn::before{
  content:"› ";
}
.settings-open-btn:hover{
  color:#101828;
  text-decoration:underline;
}

.repricer-drawer{
  width:min(440px,96vw);
  height:100dvh;
  max-height:100dvh;
  margin:0 0 0 auto;
  padding:0;
  border:0;
  border-radius:0;
  background:#fff;
  color:#101828;
  box-shadow:-18px 0 50px rgba(16,24,40,.18);
}
.repricer-drawer::backdrop{
  background:rgba(16,24,40,.48);
}
.repricer-drawer[open]{
  display:block;
}
.drawer-shell{
  height:100%;
  display:flex;
  flex-direction:column;
}
.drawer-head{
  display:flex;
  justify-content:space-between;
  gap:14px;
  padding:20px 20px 16px;
  border-bottom:1px solid #eaecf0;
}
.drawer-head h3{
  margin:5px 0 3px;
  font-size:17px;
  line-height:1.25;
}
.drawer-head p{
  margin:0;
  font-size:10px;
  color:#98a2b3;
}
.drawer-close{
  width:34px;
  height:34px;
  border:1px solid #eaecf0;
  border-radius:9px;
  background:#fff;
  font-size:22px;
  line-height:1;
  cursor:pointer;
}
.drawer-summary{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  padding:12px 20px;
  background:#f9fafb;
  border-bottom:1px solid #eaecf0;
}
.drawer-summary div{
  background:#fff;
  border:1px solid #eaecf0;
  border-radius:8px;
  padding:9px;
}
.drawer-summary span,
.drawer-summary strong{
  display:block;
}
.drawer-summary span{
  font-size:8px;
  color:#98a2b3;
}
.drawer-summary strong{
  font-size:11px;
  margin-top:3px;
}
.drawer-form{
  padding:16px 20px 24px;
  overflow-y:auto;
  display:grid;
  gap:12px;
}
.drawer-form>label,
.drawer-grid-2>label{
  display:grid;
  gap:5px;
  font-size:9px;
  font-weight:700;
  color:#475467;
}
.drawer-form input:not([type="checkbox"]),
.drawer-form select,
.drawer-form textarea{
  width:100%;
  border:1px solid #d0d5dd;
  border-radius:8px;
  background:#fff;
  padding:0 10px;
  font-size:10px;
  color:#101828;
}
.drawer-form input:not([type="checkbox"]),
.drawer-form select{
  height:38px;
}
.drawer-form textarea{
  padding-top:9px;
  resize:vertical;
}
.drawer-grid-2,
.toggle-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
}
.drawer-check{
  display:flex!important;
  align-items:center;
  gap:9px;
  border:1px solid #eaecf0;
  border-radius:9px;
  padding:10px;
  background:#fff;
  cursor:pointer;
}
.drawer-check input{
  width:16px;
  height:16px;
  flex:none;
}
.drawer-check span,
.drawer-check strong,
.drawer-check small{
  display:block;
}
.drawer-check strong{
  font-size:10px;
  color:#344054;
}
.drawer-check small{
  font-size:8px;
  color:#98a2b3;
  margin-top:2px;
}
.monitor-check{
  background:#f9fafb;
}
.drawer-save{
  min-height:40px;
  margin-top:2px;
}
.kaspi-product-link{
  gap:5px;
}
.kaspi-product-link svg{
  width:12px!important;
  height:12px!important;
}
/* ===== Repricer V2.4 — official Kaspi widget card resolver ===== */
.account-repricer-form.v24{
  grid-template-columns:1.7fr 1.15fr 1.15fr auto;
}
.account-repricer-form.v24 label small{
  font-size:7.5px;
  color:#98a2b3;
  font-weight:500;
  line-height:1.3;
}
@media(max-width:1100px){
  .account-repricer-form.v24{grid-template-columns:1fr 1fr}
}
/* ===== Repricer V2.5 — direct open without transition page ===== */
.kaspi-resolver-host{
  position:fixed!important;
  left:-10000px!important;
  top:-10000px!important;
  width:1px!important;
  height:1px!important;
  overflow:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}
.kaspi-product-link.resolving{
  opacity:.58;
  pointer-events:none;
}
.kaspi-product-link.resolving::after{
  content:"";
  width:10px;
  height:10px;
  border:1.5px solid #d0d5dd;
  border-top-color:#344054;
  border-radius:50%;
  animation:kaspiResolveSpin .7s linear infinite;
  flex:none;
  margin-left:3px;
}
@keyframes kaspiResolveSpin{
  to{transform:rotate(360deg)}
}
/* ===== Repricer V2.6 — canonical all-sellers Kaspi card ===== */
.kaspi-product-link[title*="Kaspi"]{
  text-decoration:none;
}
/* ===== Repricer: надёжное сопоставление merchant_sku -> product code ===== */
.kaspi-needs-link{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.link-missing-btn{display:inline-flex;align-items:center;border:1px solid #fec84b;background:#fffaeb;color:#b54708;font-size:8px;font-weight:800;border-radius:999px;padding:3px 8px;cursor:pointer;white-space:nowrap}
.link-missing-btn:hover{background:#fef0c7}

/* ===== Repricer V2.7 — исправление обрезки окна "Настроить" (2026-08-21) =====
   Было три проблемы:
   1) .drawer-form с overflow-y:auto не имел min-height:0, поэтому внутри
      flex-колонки не сжимался и не прокручивался — низ формы вместе с
      кнопкой "Сохранить" уходил за край экрана;
   2) ширина 440px не вмещала парные поля (.drawer-grid-2) — приходилось
      двигать содержимое вбок;
   3) блок стилей drawer продублирован в файле дважды, поэтому правки в
      первой копии перетирались второй. Этот блок идёт последним и
      перекрывает обе копии.                                              */

.repricer-drawer{
  width:min(560px,96vw);
  max-width:96vw;
  height:100dvh;
  max-height:100dvh;
  /* на случай, если 100dvh не поддерживается */
  height:100vh;
  height:100dvh;
  overflow:hidden;
}

.drawer-shell{
  height:100%;
  min-height:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

/* Шапка и сводка не сжимаются — прокручивается только форма */
.drawer-head,
.drawer-summary{
  flex:0 0 auto;
}

/* Главное исправление: min-height:0 включает реальную прокрутку */
.drawer-form{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overscroll-behavior:contain;
  /* запас снизу, чтобы кнопка "Сохранить" не липла к краю */
  padding-bottom:28px;
}

/* Читаемость: прежние 8–10px мелковаты для рабочего инструмента */
.drawer-head h3{font-size:18px}
.drawer-form>label,
.drawer-grid-2>label{font-size:11px}
.drawer-form input:not([type="checkbox"]),
.drawer-form select,
.drawer-form textarea{font-size:13px}
.drawer-form input:not([type="checkbox"]),
.drawer-form select{height:40px}
.drawer-check strong{font-size:12px}
.drawer-check small{font-size:10px}
.drawer-summary span{font-size:10px}
.drawer-summary strong{font-size:13px}

/* Кнопка сохранения всегда на виду, не уезжает вниз */
.drawer-save{
  position:sticky;
  bottom:-28px;
  z-index:2;
  min-height:44px;
  margin-top:6px;
  box-shadow:0 -10px 18px rgba(255,255,255,.95);
}

/* На узких экранах парные поля становятся в одну колонку,
   чтобы ничего не резалось по горизонтали */
@media(max-width:640px){
  .repricer-drawer{width:100vw}
  .drawer-grid-2,
  .toggle-grid{grid-template-columns:1fr}
  .drawer-summary{grid-template-columns:repeat(2,1fr)}
}

/* Низкие экраны (ноутбуки 768px и подобные): ужимаем отступы,
   чтобы форма помещалась целиком */
@media(max-height:720px){
  .drawer-head{padding:14px 20px 12px}
  .drawer-summary{padding:9px 20px}
  .drawer-form{padding:12px 20px 24px;gap:10px}
  .drawer-form input:not([type="checkbox"]),
  .drawer-form select{height:36px}
}

/* ===== Repricer V2.8 — импорт каталога из кабинета (2026-08-21) ===== */
.cabinet-import-panel .panel-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
}
.cabinet-count{
  text-align:right;
  flex:none;
  padding:8px 14px;
  background:#f9fafb;
  border:1px solid #eaecf0;
  border-radius:10px;
}
.cabinet-count strong{
  display:block;
  font-size:17px;
  color:#101828;
  line-height:1.2;
}
.cabinet-count span{
  font-size:10px;
  color:#98a2b3;
}

.cabinet-steps{
  list-style:none;
  margin:6px 0 0;
  padding:0;
  display:grid;
  gap:16px;
}
.cabinet-steps li{
  display:flex;
  gap:12px;
  align-items:flex-start;
}
.cabinet-steps .step-n{
  flex:none;
  width:26px;
  height:26px;
  border-radius:50%;
  background:#101828;
  color:#fff;
  font-size:12px;
  font-weight:800;
  display:flex;
  align-items:center;
  justify-content:center;
}
.cabinet-steps strong{
  display:block;
  font-size:13px;
  color:#101828;
  margin-bottom:2px;
}
.cabinet-steps p{
  margin:0 0 8px;
  font-size:11px;
  color:#667085;
  line-height:1.45;
}
.cabinet-steps a{color:#175cd3}

/* Кнопка-закладка: её перетаскивают на панель браузера */
.sellio-bookmarklet{
  display:inline-block;
  padding:9px 16px;
  background:#101828;
  color:#fff!important;
  border-radius:9px;
  font-size:12px;
  font-weight:700;
  text-decoration:none;
  cursor:grab;
  user-select:none;
  box-shadow:0 2px 8px rgba(16,24,40,.16);
}
.sellio-bookmarklet:active{cursor:grabbing}
.public-brand-logo{display:block;width:190px;height:58px;object-fit:contain}

/* Sellio light visual system */
:root{--bg:#f6f7fb;--panel:#fff;--text:#131a2b;--muted:#5f6b85;--muted2:#8b95ad;--line:#e6e8ee;--accent:#e95145;--accent2:#c93c32;--sidebar:#fff;--green:#079455;--blue:#2678d4;--shadow:0 10px 30px rgba(19,26,43,.06)}
.public-page,.public-hero,.public-band,.public-process,.public-plans,.public-final{background:#fff;color:#131a2b}
.public-hero{background:#f8f9fb}.public-primary{background:#e95145;border-color:#e95145}.public-primary:hover{background:#cc3d34}.public-kicker,.public-section-head>span{color:#d7463c}.product-preview{border-color:#e6e8ee;box-shadow:0 24px 65px rgba(19,26,43,.10)}
.public-process{background:#f7f8fa}.public-process .public-section-head>span{color:#b42318}.public-process li{border-color:#e6e8ee}.public-process li b{color:#e95145}.public-process h3{color:#131a2b}.public-process p{color:#5f6b85}.public-plans{background:#f6f7fb}.public-plan.recommended{border-color:#d92d20;box-shadow:0 16px 40px rgba(217,45,32,.10)}.plan-label{background:#d92d20}.public-footer{color:#8b95ad}
.app-shell{background:#f6f7fb}.sidebar{background:#fff;color:#131a2b;border-right:1px solid #e6e8ee;box-shadow:8px 0 28px rgba(19,26,43,.05)}
.nav a,.nav-group>summary{color:#5f6b85}.nav a:hover,.nav a.active,.nav-group>summary:hover,.nav-group[open]>summary{background:#f7f8fa;color:#131a2b}.nav a.active{box-shadow:inset 3px 0 0 #d92d20}.nav-children a.active{box-shadow:inset 2px 0 0 #d92d20}.nav-children a small{background:#fce8e6;color:#bd3c33}.nav-children .nav-lock{color:#8b95ad}
.plan-mini{background:#f7f8fa;border-color:#e6e8ee;color:#131a2b}.plan-mini small{color:#5f6b85}.logout-btn{color:#5f6b85}.logout-btn:hover{background:#f4f5f9;color:#131a2b}.ai-card,.ai-card-link:hover,.ai-card-link.active{background:#f9fafc;border-color:#e6e8ee;color:#131a2b}.ai-icon{background:#fdeceb}.ai-icon svg{color:#b42318}
.main{background:#f6f7fb}.topbar{background:rgba(246,247,251,.94);position:sticky;top:0;z-index:30}.avatar,.primary-btn,.small-btn,.step>span,.store-logo{background:#131a2b}.panel,.kpi-card,.store-select-wrap{border-radius:8px}.kpi-card.featured{background:#fff8f7;border-color:#f0d3d0}.primary-btn:hover{background:#2a3350}
.auth-page{background:#fff}.auth-visual{background:#f7f8fa;color:#131a2b}.auth-visual p{color:#5f6b85}.auth-kpis span{color:#8b95ad}.auth-brand-logo{box-shadow:0 10px 30px rgba(19,26,43,.07)}
@media(max-width:760px){.sidebar{background:#fff}.nav{background:#fff}.topbar{background:#fff}}

#cabinet-import-form{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
#cabinet-file{
  font-size:11px;
  border:1px dashed #d0d5dd;
  border-radius:8px;
  padding:9px 10px;
  background:#fff;
  max-width:100%;
}

.cabinet-result{
  margin-top:10px;
  font-size:11.5px;
  line-height:1.5;
  padding:0;
}
.cabinet-result:empty{display:none}
.cabinet-result.loading{color:#667085}
.cabinet-result.ok{
  color:#027a48;
  background:#ecfdf3;
  border:1px solid #abefc6;
  border-radius:8px;
  padding:9px 12px;
}
.cabinet-result.err{
  color:#b42318;
  background:#fef3f2;
  border:1px solid #fecdca;
  border-radius:8px;
  padding:9px 12px;
}

@media(max-width:720px){
  .cabinet-import-panel .panel-head{flex-direction:column}
  .cabinet-count{text-align:left;align-self:flex-start}
}

/* ===== Repricer V2.9 — статусы монитора понятным языком (2026-08-21) ===== */
.scan-state.paused{
  background:#fffaeb;
  color:#b54708;
  border:1px solid #fec84b;
}
.scan-note{
  margin-top:4px;
  font-size:9px;
  line-height:1.45;
  color:#b54708;
  background:#fffaeb;
  border:1px solid #fec84b;
  border-radius:6px;
  padding:5px 7px;
}

/* ===== FAST AUTOPILOT V1 (2026-08-21) ===== */
.fast-autopilot-panel{
  border:1px solid #d7e0ef;
  background:linear-gradient(135deg,#ffffff 0%,#f8fbff 62%,#f5f3ff 100%);
  position:relative;
  overflow:hidden;
}
.fast-autopilot-panel:before{
  content:"";
  position:absolute;
  width:220px;height:220px;border-radius:50%;
  right:-100px;top:-120px;
  background:radial-gradient(circle,rgba(105,65,198,.13),transparent 70%);
  pointer-events:none;
}
.fast-autopilot-panel .eyebrow{color:#6941c6}
.autopilot-state{
  display:inline-flex;align-items:center;gap:7px;
  padding:7px 10px;border-radius:999px;
  font-size:10px;font-weight:800;white-space:nowrap;
  border:1px solid #eaecf0;background:#f9fafb;color:#667085;
}
.autopilot-state .state-dot{width:7px;height:7px;border-radius:50%;background:#98a2b3}
.autopilot-state.connected{background:#ecfdf3;border-color:#abefc6;color:#027a48}
.autopilot-state.connected .state-dot{background:#12b76a;box-shadow:0 0 0 4px rgba(18,183,106,.1)}
.autopilot-state.pending{background:#fffaeb;border-color:#fedf89;color:#b54708}
.autopilot-state.pending .state-dot{background:#f79009}
.autopilot-state.error{background:#fef3f2;border-color:#fecdca;color:#b42318}
.autopilot-state.error .state-dot{background:#f04438}
.autopilot-connected-grid{
  display:grid;grid-template-columns:.92fr 1.08fr;gap:14px;align-items:stretch;margin-top:6px;
}
.autopilot-connection-card{
  display:flex;gap:12px;padding:16px;border:1px solid #e4e7ec;border-radius:12px;background:#fff;
}
.autopilot-icon{
  flex:none;width:38px;height:38px;border-radius:10px;display:flex;align-items:center;justify-content:center;
  background:#ecfdf3;color:#039855;
}
.autopilot-icon svg{width:18px;height:18px}
.autopilot-connection-card strong{font-size:13px;color:#101828}
.autopilot-connection-card p{font-size:10.5px;line-height:1.55;color:#667085;margin:5px 0 8px}
.autopilot-connection-card small{display:block;font-size:9.5px;color:#98a2b3;margin-top:3px}
.autopilot-settings-form{
  border:1px solid #e4e7ec;background:#fff;border-radius:12px;padding:14px;
}
.autopilot-main-toggle{margin-bottom:12px!important}
.autopilot-limits{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-bottom:12px}
.autopilot-limits label,.autopilot-login-box label{
  display:grid;gap:5px;font-size:10px;font-weight:700;color:#475467;
}
.autopilot-limits input,.autopilot-login-box input{
  min-width:0;width:100%;border:1px solid #d0d5dd;border-radius:8px;padding:9px 10px;background:#fff;color:#101828;
}
.autopilot-disconnect{margin-top:10px;display:flex;justify-content:flex-end}
.autopilot-login-box{
  display:grid;grid-template-columns:.9fr 1.1fr;gap:18px;align-items:center;
  margin-top:6px;padding:16px;border:1px solid #e4e7ec;border-radius:12px;background:#fff;
}
.autopilot-login-box>div>strong{font-size:14px;color:#101828}
.autopilot-login-box>div>p{font-size:10.5px;line-height:1.55;color:#667085;margin:5px 0 0}
.autopilot-login-box form{display:grid;grid-template-columns:1fr 1fr auto;gap:9px;align-items:end}
.autopilot-login-box.otp-box form{grid-template-columns:1fr auto}
.autopilot-sku-check{border-color:#d6bbfb!important;background:#f9f5ff!important}
.autopilot-sku-check span strong{color:#6941c6}
.autopilot-history-panel{padding-bottom:4px}
.autopilot-history-table{min-width:850px}
.update-state{
  display:inline-flex;align-items:center;padding:4px 7px;border-radius:999px;
  font-size:9px;font-weight:800;background:#f2f4f7;color:#475467;
}
.update-state.pending{background:#fffaeb;color:#b54708}
.update-state.processing{background:#eff8ff;color:#175cd3}
.update-state.submitted{background:#f4f3ff;color:#5925dc}
.update-state.verified{background:#ecfdf3;color:#027a48}
.update-state.failed{background:#fef3f2;color:#b42318}
.history-rollback-btn{
  border:1px solid #d0d5dd;background:#fff;border-radius:7px;padding:6px 8px;
  color:#344054;font-size:9px;font-weight:700;cursor:pointer;white-space:nowrap;
}
.history-rollback-btn:hover{background:#f9fafb}
@media(max-width:920px){
  .autopilot-connected-grid,.autopilot-login-box{grid-template-columns:1fr}
  .autopilot-login-box form{grid-template-columns:1fr 1fr}
  .autopilot-login-box form .primary-btn{grid-column:1/-1}
}
@media(max-width:640px){
  .fast-autopilot-panel .panel-head{align-items:flex-start;flex-direction:column}
  .autopilot-limits,.autopilot-login-box form,.autopilot-login-box.otp-box form{grid-template-columns:1fr}
  .autopilot-login-box form .primary-btn{grid-column:auto}
}

/* Честный статус синхронизации (2026-08-22) */
.status-dot.warn{background:#f79009}
.warn-text{color:#b54708}
.store-metric-sub{display:block;font-size:10px;color:#98a2b3;margin-top:2px}

/* ===== Capital OS / Money Map (2026-08-22) ===== */
.cap-head h2{margin:0 0 4px;font-size:22px}
.cap-sub{margin:0;color:#98a2b3;font-size:13px}
.cap-note{background:#fffaeb;border:1px solid #fec84b;border-radius:10px;padding:12px 15px;font-size:13px;color:#b54708;line-height:1.5;margin:14px 0}
.cap-total{display:flex;flex-direction:column;gap:3px;background:#101828;color:#fff;border-radius:14px;padding:20px 24px;margin-bottom:18px}
.cap-total-label{font-size:12px;color:#98a2b3;text-transform:uppercase;letter-spacing:.5px}
.cap-total-value{font-size:32px;font-weight:800;line-height:1.1}
.cap-total-hint{font-size:11px;color:#f79009;margin-top:2px}
.cap-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px;margin-bottom:20px}
.cap-card{border:1px solid #eaecf0;border-radius:12px;padding:14px 16px;display:flex;flex-direction:column;gap:4px;background:#fff}
.cap-card-t{font-size:12px;color:#667085;font-weight:600}
.cap-card-v{font-size:19px;font-weight:800;color:#101828}
.cap-card-s{font-size:11px;color:#98a2b3}
.cap-card-na{font-size:13px;color:#98a2b3;font-style:italic;font-weight:600}
.cap-card.muted{background:#f9fafb}
.cap-card.ok{border-color:#abefc6}.cap-card.ok .cap-card-v{color:#067647}
.cap-card.warn{border-color:#fec84b}.cap-card.warn .cap-card-v{color:#b54708}
.cap-card.bad{border-color:#fecdca}.cap-card.bad .cap-card-v{color:#b42318}
.cap-bar-wrap{margin-bottom:22px}
.cap-bar-title{font-size:12px;color:#667085;margin-bottom:6px;font-weight:600}
.cap-bar{display:flex;height:22px;border-radius:6px;overflow:hidden;background:#f2f4f7}
.cap-bar .seg{height:100%}
.seg.fast,.dot.fast{background:#12b76a}.seg.slow,.dot.slow{background:#f79009}.seg.frozen,.dot.frozen{background:#f04438}
.cap-bar-legend{display:flex;gap:16px;margin-top:7px;font-size:12px;color:#475467}
.cap-bar-legend .dot{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:5px}
.cap-table-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:10px}
.cap-table-head h3{margin:0;font-size:16px}
.cap-filters{display:flex;gap:6px}
.cap-f{padding:6px 12px;border:1px solid #eaecf0;background:#fff;border-radius:8px;font-size:12px;font-weight:600;color:#667085;cursor:pointer}
.cap-f.active{background:#101828;color:#fff;border-color:#101828}
.cap-table-wrap{overflow-x:auto}
.cap-table{width:100%;border-collapse:collapse;font-size:12px}
.cap-table th,.cap-table td{padding:9px 10px;border-bottom:1px solid #f2f4f7;text-align:left;white-space:nowrap}
.cap-table th{font-size:11px;color:#98a2b3;font-weight:600;text-transform:uppercase}
.cap-table th.r,.cap-table td.r{text-align:right}
.cap-table td.wide{white-space:normal;min-width:180px;max-width:280px}
.cap-table td.mono{font-family:ui-monospace,monospace;font-size:11px}
.cap-table td.strong{font-weight:700}
.cap-table td.cap-reason{white-space:normal;color:#667085;font-size:11px;max-width:220px}
.cap-badge{font-size:10px;font-weight:700;padding:3px 8px;border-radius:20px}
.cap-badge.fast{background:#ecfdf3;color:#067647}.cap-badge.slow{background:#fffaeb;color:#b54708}.cap-badge.frozen{background:#fef3f2;color:#b42318}
.cap-empty{text-align:center;color:#98a2b3;padding:40px}
@media(max-width:640px){.cap-total-value{font-size:26px}.cap-cards{grid-template-columns:repeat(2,1fr)}}


/* ===== Repricer: модалка «Настроить» — корректная адаптивная версия v2 (2026-08-22) ===== */
.repricer-drawer{
  position:fixed; inset:0; margin:auto;
  width:calc(100vw - 24px); max-width:960px;
  max-height:calc(100vh - 24px);
  border:0; border-radius:16px; padding:0;
  background:#fff; color:#101828; overflow:hidden;
  box-shadow:0 24px 64px rgba(16,24,40,.28);
}
.repricer-drawer::backdrop{background:rgba(16,24,40,.55)}
.repricer-drawer[open]{display:flex}
.drawer-shell{display:flex; flex-direction:column; width:100%; max-height:calc(100vh - 24px); min-height:0; overflow:hidden}

/* Шапка закреплена сверху */
.drawer-head{flex:0 0 auto; display:flex; justify-content:space-between; align-items:flex-start; gap:12px; padding:16px 20px; border-bottom:1px solid #eaecf0}
.drawer-summary{flex:0 0 auto}

/* Форма — ОДНА колонка (flex-стек). Двухколоночность дают внутренние .drawer-grid-2/.toggle-grid */
.drawer-form{
  flex:1 1 auto; min-height:0; overflow-y:auto; overflow-x:hidden;
  padding:16px 20px 8px;
  display:flex; flex-direction:column; gap:12px;
}
/* каждое поле-подпись: подпись над контролом */
.drawer-form > label,
.drawer-grid-2 > label,
.toggle-grid > label{
  display:flex; flex-direction:column; gap:5px;
  font-size:12px; font-weight:600; color:#344054;
  min-width:0;
}
/* контролы строго внутри */
.drawer-form input:not([type=checkbox]),
.drawer-form select,
.drawer-form textarea{
  width:100%; min-width:0; max-width:100%; box-sizing:border-box;
  padding:8px 10px; border:1px solid #d0d5dd; border-radius:8px;
  font-size:13px; color:#101828; background:#fff;
}
.drawer-form textarea{resize:vertical; min-height:64px}

/* внутренние сетки — 2 и 3 колонки, но с min-width:0 чтобы не распирало */
.drawer-grid-2{display:grid; grid-template-columns:1fr 1fr; gap:10px 14px}
.toggle-grid{display:grid; grid-template-columns:1fr 1fr; gap:10px 14px}
.drawer-grid-2 > *,.toggle-grid > *{min-width:0}

/* чекбоксы: горизонтально, подпись рядом */
.drawer-check{flex-direction:row!important; align-items:flex-start; gap:9px; font-weight:500}
.drawer-check input[type=checkbox]{flex:0 0 auto; width:auto; margin-top:2px}
.drawer-check span{display:flex; flex-direction:column; gap:2px; min-width:0}

/* длинная ссылка не растягивает раскладку */
.auto-link-note,.auto-link-note *{word-break:break-all; overflow-wrap:anywhere; min-width:0}

/* Кнопка сохранения закреплена снизу, всегда видна */
.drawer-form .drawer-save,
.drawer-form > button[type=submit]{
  position:sticky; bottom:0; margin-top:6px;
  padding:11px; border:0; border-radius:9px;
  background:#101828; color:#fff; font-weight:700; font-size:14px; cursor:pointer;
  box-shadow:0 -10px 16px rgba(255,255,255,.95);
}

/* < 768px — всё в одну колонку */
@media(max-width:768px){
  .drawer-grid-2,.toggle-grid{grid-template-columns:1fr}
  .repricer-drawer{width:calc(100vw - 16px); max-height:calc(100vh - 16px)}
}
body.modal-open{overflow:hidden}

/* Массовые операции репрайсера (2026-08-22) */
.bulk-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 0;margin-bottom:4px}
.bulk-count{font-size:13px;color:#475467;margin-right:6px}
.bulk-count b{font-size:15px;color:#101828}
.bulk-btn{padding:7px 13px;border-radius:8px;font-size:12px;font-weight:600;cursor:pointer;border:1px solid #d0d5dd;background:#fff}
.bulk-btn.on{border-color:#abefc6;color:#067647;background:#f6fef9}
.bulk-btn.off{border-color:#fecdca;color:#b42318;background:#fffbfa}
.bulk-btn:hover{filter:brightness(.97)}
th.chk,td.chk{width:34px;text-align:center}
.row-chk,#chk-all{width:16px;height:16px;cursor:pointer}
.autopilot-active-note{padding:12px 14px;background:#ecfdf3;border:1px solid #abefc6;border-radius:10px}
.autopilot-active-note strong{display:block;color:#067647;font-size:13px;margin-bottom:2px}
.autopilot-active-note small{color:#475467;font-size:11px;line-height:1.5}

/* ===== Market Intelligence (2026-08-23) ===== */
.mi-head{display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:12px;margin-bottom:12px}
.mi-head h2{margin:0 0 3px;font-size:21px}
.mi-sub{margin:0;color:#98a2b3;font-size:13px}
.mi-actions{display:flex;gap:8px}
.mi-note{background:#eff8ff;border:1px solid #b2ddff;border-radius:10px;padding:11px 14px;font-size:12px;color:#175cd3;line-height:1.5;margin-bottom:14px}
.mi-warn{color:#b54708;font-weight:600}
.mi-filter{display:flex;gap:8px;margin-bottom:12px}
.mi-filter input{flex:0 0 240px;max-width:100%;padding:8px 10px;border:1px solid #d0d5dd;border-radius:8px}
.mi-table-wrap{overflow-x:auto}
.mi-table{width:100%;border-collapse:collapse;font-size:12px}
.mi-table th,.mi-table td{padding:8px 9px;border-bottom:1px solid #f2f4f7;text-align:left;white-space:nowrap}
.mi-table th{font-size:10px;color:#98a2b3;text-transform:uppercase;font-weight:600}
.mi-table th a{color:inherit;text-decoration:none}
.mi-table th.r,.mi-table td.r{text-align:right}
.mi-table td.wide{white-space:normal;max-width:280px}
.mi-table.sm th,.mi-table.sm td{padding:6px 8px}
.mi-table tr.neg td{color:#b42318}
.mi-score{display:inline-block;min-width:28px;text-align:center;padding:2px 7px;border-radius:6px;font-weight:700}
.mi-score.opp{background:#ecfdf3;color:#067647}.mi-score.risk{background:#fef3f2;color:#b42318}
.mi-conf{font-weight:700}.mi-conf.high{color:#067647}.mi-conf.mid{color:#b54708}.mi-conf.low{color:#98a2b3}
.mi-empty{text-align:center;color:#98a2b3;padding:40px}
.mi-pager{display:flex;gap:14px;align-items:center;margin-top:12px;font-size:13px}
.mi-back{display:inline-block;margin-bottom:12px;color:#175cd3;text-decoration:none;font-size:13px}
.mi-kpi-row{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}
.mi-kpi{flex:1;min-width:110px;border:1px solid #eaecf0;border-radius:10px;padding:11px 13px;display:flex;flex-direction:column;gap:3px}
.mi-kpi span{font-size:11px;color:#98a2b3}.mi-kpi b{font-size:17px}
.mi-kpi.opp b{color:#067647}.mi-kpi.risk b{color:#b42318}
.mi-cols{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}
.mi-panel{border:1px solid #eaecf0;border-radius:12px;padding:16px;background:#fff;margin-bottom:16px}
.mi-panel h3{margin:0 0 12px;font-size:15px}
.mi-bar-row{display:grid;grid-template-columns:1fr 120px 32px;align-items:center;gap:10px;margin-bottom:7px;font-size:12px}
.mi-bar{height:8px;background:#f2f4f7;border-radius:4px;overflow:hidden}
.mi-bar div{height:100%;background:#12b76a}.mi-bar.risk div{background:#f04438}
.mi-segs{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px}
.mi-seg{border:1px solid #eaecf0;border-radius:9px;padding:11px;display:flex;flex-direction:column;gap:3px}
.mi-seg b{font-size:13px}.mi-seg span{font-size:12px;color:#344054}.mi-seg small{color:#98a2b3;font-size:11px}
.mi-calc-form{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.mi-calc-form label{display:flex;flex-direction:column;gap:4px;font-size:11px;color:#475467;font-weight:600}
.mi-calc-form input{padding:7px 9px;border:1px solid #d0d5dd;border-radius:7px;font-size:13px}
.mi-calc-form button{grid-column:1/-1}
.mi-verdict{display:inline-block;padding:8px 16px;border-radius:9px;font-weight:800;font-size:16px;margin-bottom:12px}
.mi-verdict.fit{background:#ecfdf3;color:#067647}.mi-verdict.maybe{background:#fffaeb;color:#b54708}
.mi-verdict.not_fit{background:#fef3f2;color:#b42318}.mi-verdict.none{background:#f2f4f7;color:#667085}
.mi-calc-kpi{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px;margin-bottom:16px}
.mi-calc-kpi div{border:1px solid #eaecf0;border-radius:9px;padding:10px}
.mi-calc-kpi span{font-size:11px;color:#98a2b3;display:block}.mi-calc-kpi b{font-size:15px}
.mi-muted{color:#98a2b3;font-size:12px}
@media(max-width:720px){.mi-cols{grid-template-columns:1fr}.mi-calc-form{grid-template-columns:1fr}}

/* ===== RedStat-powered niche analytics ===== */
.rs-head,.rs-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px}
.rs-head h2,.rs-detail-head h2{margin:5px 0 4px;font-size:24px;letter-spacing:0;color:#101828}
.rs-head p,.rs-detail-head p{margin:0;color:#667085;font-size:13px}
.rs-detail-head h2{display:flex;align-items:center;gap:9px}
.rs-source{display:flex;align-items:center;gap:7px;color:#667085;font-size:11px;font-weight:700;text-transform:uppercase}
.rs-source span{width:7px;height:7px;border-radius:50%;background:#e3222e;box-shadow:0 0 0 3px #fee4e2}
.rs-icon-btn{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;white-space:nowrap}
.rs-icon-btn svg,.rs-back svg,.rs-row-link svg,.rs-alert>svg{width:15px;height:15px;flex:none}
.rs-head-actions{display:flex;gap:8px}
.rs-period-form{display:flex;flex-direction:column;gap:3px}.rs-period-form label{color:#667085;font-size:9px;font-weight:700;text-transform:uppercase}.rs-period-form select{height:36px;min-width:135px;border:1px solid #d0d5dd;border-radius:7px;background:#fff;padding:0 28px 0 9px;color:#344054;font-size:11px;font-weight:600}
.rs-back{display:inline-flex;align-items:center;gap:6px;margin-bottom:14px;color:#475467;text-decoration:none;font-size:13px;font-weight:600}

.rs-toolbar{display:flex;align-items:flex-end;gap:9px;padding:12px;background:#f8fafc;border:1px solid #eaecf0;border-radius:8px;margin-bottom:14px}
.rs-search{height:40px;min-width:260px;flex:1;display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #d0d5dd;border-radius:7px;padding:0 11px}
.rs-search:focus-within{border-color:#e3222e;box-shadow:0 0 0 3px rgba(227,34,46,.09)}
.rs-search svg{width:16px;color:#98a2b3}.rs-search input{width:100%;border:0;outline:0;font-size:13px;background:transparent}
.rs-select-label{display:flex;flex-direction:column;gap:3px;color:#667085;font-size:10px;font-weight:600}
.rs-select-label select{height:40px;min-width:180px;border:1px solid #d0d5dd;border-radius:7px;background:#fff;padding:0 30px 0 10px;color:#344054;font-size:12px}
.rs-toolbar .primary-btn{height:40px}.rs-clear{width:40px;height:40px;padding:0!important;display:grid!important;place-items:center}.rs-clear svg{width:16px}

.rs-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid #eaecf0;border-radius:8px;background:#fff;margin-bottom:14px;overflow:hidden}
.rs-summary.detail{grid-template-columns:repeat(5,minmax(0,1fr));margin-bottom:24px}
.rs-summary>div{min-width:0;padding:14px 16px;border-right:1px solid #eaecf0;position:relative}.rs-summary>div:last-child{border-right:0}
.rs-summary span{display:block;color:#667085;font-size:11px;margin-bottom:5px}.rs-summary b{display:block;color:#101828;font-size:18px;line-height:1.2;overflow-wrap:anywhere}
.rs-summary small{display:inline-block;margin-top:5px;font-size:11px;font-weight:700}.rs-summary small.up{color:#067647}.rs-summary small.down{color:#b42318}

.rs-table-shell{width:100%;overflow-x:auto;border:1px solid #eaecf0;border-radius:8px;background:#fff}
.rs-table{width:100%;border-collapse:collapse;font-size:12px}.rs-table th,.rs-table td{padding:10px 12px;border-bottom:1px solid #f2f4f7;text-align:left;white-space:nowrap}
.rs-table tr:last-child td{border-bottom:0}.rs-table th{background:#f9fafb;color:#667085;font-size:10px;text-transform:uppercase;font-weight:700}
.rs-table .r{text-align:right}.rs-table .strong{font-weight:700;color:#101828}.rs-table tbody tr:hover{background:#fcfcfd}
.rs-niche-name{display:flex;align-items:center;gap:10px;min-width:280px;text-decoration:none;color:#101828}.rs-niche-name>span:last-child{display:flex;flex-direction:column;gap:2px}
.rs-niche-name b{font-size:13px}.rs-niche-name small,.rs-product small{display:block;max-width:330px;overflow:hidden;text-overflow:ellipsis;color:#98a2b3;font-size:10px;font-weight:400}
.rs-emoji{width:30px;height:30px;display:grid;place-items:center;background:#f2f4f7;border-radius:7px;font-size:15px}
.rs-row-link{width:27px;height:27px;display:grid;place-items:center;border-radius:6px;color:#667085}.rs-row-link:hover{background:#f2f4f7;color:#101828}
.rs-footnote{margin:10px 2px 0;color:#98a2b3;font-size:10px;line-height:1.5}
.rs-breadcrumbs{display:flex;align-items:center;gap:6px;min-height:32px;margin:-7px 0 12px;color:#98a2b3;font-size:11px;overflow-x:auto;white-space:nowrap}
.rs-breadcrumbs a{display:inline-flex;align-items:center;gap:5px;color:#475467;text-decoration:none;font-weight:600}.rs-breadcrumbs a:hover{color:#e3222e}
.rs-breadcrumbs svg{width:13px;height:13px;flex:none}.rs-breadcrumbs>span{color:#101828;font-weight:700}
.rs-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.rs-category-card{min-width:0;padding:14px;border:1px solid #eaecf0;border-radius:8px;background:#fff;color:#101828;text-decoration:none;transition:border-color .15s,box-shadow .15s,transform .15s}
.rs-category-card:hover{border-color:#fda29b;box-shadow:0 5px 14px rgba(16,24,40,.07);transform:translateY(-1px)}
.rs-category-top{display:grid;grid-template-columns:32px 1fr 18px;align-items:center;gap:8px}.rs-category-top .rs-emoji{width:32px;height:32px}.rs-category-top>svg{width:17px;height:17px;color:#98a2b3}
.rs-category-kind{color:#98a2b3;font-size:9px;font-weight:700;text-transform:uppercase}
.rs-category-card h3{min-height:38px;margin:10px 0 4px;font-size:14px;line-height:1.35;letter-spacing:0;overflow-wrap:anywhere}
.rs-category-card>p{height:28px;margin:0 0 8px;color:#98a2b3;font-size:9px;line-height:1.4;overflow:hidden}
.rs-category-card dl{display:grid;grid-template-columns:1fr 1fr;margin:10px 0 0;border-top:1px solid #f2f4f7}
.rs-category-card dl div{min-width:0;padding:8px 5px 0 0}.rs-category-card dt{color:#98a2b3;font-size:9px}.rs-category-card dd{margin:2px 0 0;color:#344054;font-size:10px;font-weight:700;overflow-wrap:anywhere}
.rs-empty{min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;color:#98a2b3}.rs-empty svg{width:28px}.rs-empty b{color:#344054;font-size:14px}.rs-empty span{font-size:12px}

.rs-section{padding:22px 0;border-top:1px solid #eaecf0}.rs-section-title{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:14px}
.rs-section-title h3{margin:0 0 3px;font-size:16px;color:#101828}.rs-section-title p{margin:0;color:#98a2b3;font-size:11px}
.rs-season{text-align:right}.rs-season span{display:block;color:#98a2b3;font-size:10px}.rs-season b{font-size:14px;color:#344054;text-transform:capitalize}
.rs-chart{height:230px;display:flex;align-items:stretch;gap:6px;padding:16px 8px 0;border-bottom:1px solid #d0d5dd;background:linear-gradient(to bottom,#f2f4f7 1px,transparent 1px);background-size:100% 25%}
.rs-chart-col{min-width:30px;flex:1;display:grid;grid-template-rows:18px 1fr 24px;align-items:end;text-align:center;position:relative;color:inherit;text-decoration:none}
.rs-chart-col.source-break:before{content:"";position:absolute;left:-4px;top:0;bottom:22px;border-left:1px dashed #f79009}
.rs-chart-value{font-size:9px;color:#667085;opacity:0;transition:opacity .15s}.rs-chart-col:hover .rs-chart-value{opacity:1}
.rs-chart-bar{height:100%;display:flex;align-items:flex-end;justify-content:center}.rs-chart-bar i{display:block;width:min(28px,72%);min-height:4px;background:#e3222e;border-radius:4px 4px 0 0}
.rs-chart-col:nth-last-child(-n+2) .rs-chart-bar i{background:#101828}.rs-chart-col.selected .rs-chart-bar i{background:#e3222e;box-shadow:0 0 0 2px #fee4e2}.rs-chart-col.selected small{color:#101828;font-weight:800}.rs-chart-col small{font-size:9px;color:#98a2b3;align-self:center}.rs-chart-unit{text-align:right;color:#98a2b3;font-size:9px;margin-top:4px}
.rs-alert{display:flex;gap:9px;align-items:flex-start;padding:10px 12px;border:1px solid #fedf89;background:#fffaeb;border-radius:7px;color:#93370d;margin-top:12px}
.rs-alert.error{border-color:#fecdca;background:#fef3f2;color:#b42318}.rs-alert div{display:flex;flex-direction:column;gap:2px}.rs-alert b{font-size:11px}.rs-alert span{font-size:10px;line-height:1.4}

.rs-segment-grid{display:grid;grid-template-columns:repeat(5,minmax(150px,1fr));gap:10px;overflow-x:auto;padding-bottom:2px}
.rs-segment-card{border:1px solid #eaecf0;border-radius:8px;padding:12px;background:#fff}.rs-segment-top{display:grid;grid-template-columns:22px 1fr auto;align-items:center;gap:6px}
.rs-segment-top>span{width:22px;height:22px;display:grid;place-items:center;border-radius:6px;background:#f2f4f7;color:#475467;font-size:10px;font-weight:800}
.rs-segment-top b{font-size:12px}.rs-segment-top strong{font-size:12px;color:#e3222e}.rs-segment-range{margin:9px 0 7px;color:#344054;font-size:11px;font-weight:700}
.rs-share{height:5px;background:#f2f4f7;border-radius:3px;overflow:hidden}.rs-share i{display:block;height:100%;background:#e3222e;border-radius:3px}
.rs-segment-card dl{margin:10px 0 0}.rs-segment-card dl div{display:flex;justify-content:space-between;gap:8px;padding:4px 0;border-top:1px solid #f2f4f7}
.rs-segment-card dt{color:#98a2b3;font-size:9px}.rs-segment-card dd{margin:0;color:#344054;font-size:9px;font-weight:700;text-align:right}
.rs-product{display:flex;flex-direction:column;gap:2px;max-width:360px;color:#101828;text-decoration:none;white-space:normal}.rs-product b{font-size:11px;line-height:1.35}
.rs-pill{display:inline-block;padding:3px 6px;border-radius:5px;background:#f2f4f7;color:#475467;font-size:9px;font-weight:700}
.rs-period-count{display:flex;align-items:baseline;gap:5px;color:#98a2b3}.rs-period-count b{color:#101828;font-size:18px}.rs-period-count span{font-size:10px}
.rs-history-table tbody tr.selected{background:#fff8f7}.rs-history-table tbody tr.source-break td{border-top:2px solid #fdb022}.rs-history-table td:nth-child(2){min-width:210px}
.rs-month-link{display:flex;flex-direction:column;gap:2px;color:#101828;text-decoration:none}.rs-month-link b{font-size:11px}.rs-month-link small,.rs-cell-change{font-size:9px;font-weight:700}.rs-month-link .up,.rs-cell-change.up{color:#067647}.rs-month-link .down,.rs-cell-change.down{color:#b42318}
.rs-cell-change{display:block;margin-top:2px}.rs-source-badge,.rs-event-badge,.rs-break-badge{display:inline-flex;align-items:center;min-height:20px;padding:2px 6px;border-radius:5px;background:#f2f4f7;color:#475467;font-size:9px;font-weight:700}.rs-source-badge.current{background:#ecfdf3;color:#067647}.rs-event-badge{background:#fef3f2;color:#b42318}.rs-break-badge{background:#fffaeb;color:#b54708}
.rs-period-meta{display:block;margin-top:4px;color:#98a2b3;font-size:9px}.rs-muted{color:#98a2b3}

.rs-workspace{display:grid;grid-template-columns:246px minmax(0,1fr);min-height:calc(100vh - 112px);margin:-22px -24px -24px;border-top:1px solid #eaecf0;background:#fff}.rs-workspace.filters-collapsed{grid-template-columns:0 minmax(0,1fr)}
.rs-filters{min-width:0;overflow:hidden;border-right:1px solid #eaecf0;background:#fcfcfd;transition:width .18s}.filters-collapsed .rs-filters{width:0;border:0}
.rs-filter-title{height:54px;display:flex;align-items:center;gap:8px;padding:0 16px;border-bottom:1px solid #eaecf0;color:#101828;font-size:13px}.rs-filter-title svg,.rs-filter-section>label svg{width:15px;height:15px}
.rs-filter-section{padding:14px 14px 16px;border-bottom:1px solid #eaecf0}.rs-filter-section>label{display:flex;align-items:center;gap:6px;margin-bottom:9px;color:#344054;font-size:11px;font-weight:800}.rs-filter-section select{width:100%;height:36px;border:1px solid #d0d5dd;border-radius:6px;background:#fff;padding:0 9px;color:#101828;font-size:11px;font-weight:700}
.rs-period-list{max-height:230px;margin-top:7px;overflow-y:auto}.rs-period-list a{height:30px;display:flex;align-items:center;gap:8px;padding:0 7px;border-radius:5px;color:#475467;text-decoration:none;font-size:10px}.rs-period-list a:hover{background:#f2f4f7}.rs-period-list a span{width:12px;height:12px;border:1px solid #d0d5dd;border-radius:3px;background:#fff}.rs-period-list a.selected{background:#f2f4f7;color:#101828;font-weight:700}.rs-period-list a.selected span{border-color:#e3222e;background:#e3222e;box-shadow:inset 0 0 0 2px #fff}
.rs-category-picker-btn{width:100%;min-height:46px;display:grid;grid-template-columns:1fr 16px;align-items:center;gap:7px;padding:7px 9px;border:1px solid #d0d5dd;border-radius:6px;background:#fff;color:#101828;text-align:left;cursor:pointer}.rs-category-picker-btn>span{min-width:0}.rs-category-picker-btn small,.rs-category-picker-btn b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rs-category-picker-btn small{margin-bottom:2px;color:#98a2b3;font-size:8px}.rs-category-picker-btn b{font-size:10px}.rs-category-picker-btn svg{width:14px;color:#667085}
.rs-current-tree{margin-top:8px}.rs-current-tree a{min-height:28px;display:grid;grid-template-columns:14px minmax(0,1fr);align-items:center;gap:6px;padding:4px 6px 4px calc(6px + (var(--depth,0) * 7px));border-radius:5px;color:#475467;text-decoration:none;font-size:9px}.rs-current-tree a:hover,.rs-current-tree a.selected{background:#f2f4f7;color:#101828;font-weight:700}.rs-current-tree svg{width:12px;height:12px}
.rs-results{min-width:0;background:#fff}.rs-results-toolbar{height:54px;display:flex;align-items:center;gap:8px;padding:8px 14px;border-bottom:1px solid #eaecf0;background:#fcfcfd;position:sticky;top:0;z-index:5}
.rs-filter-toggle{width:36px;height:36px;display:grid;place-items:center;border:1px solid #eaecf0;border-radius:6px;background:#fff;color:#475467;cursor:pointer}.rs-filter-toggle svg{width:16px}.rs-mode-switch{height:36px;display:flex;border:1px solid #eaecf0;border-radius:6px;background:#fff;overflow:hidden}.rs-mode-switch a{display:flex;align-items:center;gap:5px;padding:0 10px;border-right:1px solid #eaecf0;color:#667085;text-decoration:none;font-size:10px;font-weight:700}.rs-mode-switch a:last-child{border-right:0}.rs-mode-switch a.active{background:#101828;color:#fff}.rs-mode-switch svg{width:13px}
.rs-results-search{height:36px;min-width:200px;max-width:430px;flex:1;display:flex;align-items:center;gap:7px;padding:0 10px;border:1px solid #eaecf0;border-radius:6px;background:#fff}.rs-results-search svg{width:14px;color:#98a2b3}.rs-results-search input{width:100%;border:0;outline:0;background:transparent;font-size:11px}.rs-sort-form{height:36px;display:flex;align-items:center;gap:5px;padding:0 8px;border:1px solid #eaecf0;border-radius:6px;background:#fff}.rs-sort-form svg{width:14px;color:#667085}.rs-sort-form select{border:0;outline:0;background:#fff;color:#344054;font-size:10px;font-weight:700}
.rs-results-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 18px 12px}.rs-results-head h2{margin:5px 0 4px;color:#101828;font-size:20px;letter-spacing:0}.rs-inline-crumbs{display:flex;align-items:center;gap:4px;max-width:700px;overflow-x:auto;white-space:nowrap}.rs-inline-crumbs a{color:#667085;text-decoration:none;font-size:9px}.rs-inline-crumbs a:last-child{color:#101828;font-weight:700}.rs-inline-crumbs svg{width:10px;height:10px;color:#98a2b3}
.rs-results>.rs-alert{margin:0 18px 12px}.rs-results>.rs-category-grid,.rs-results>.rs-product-grid,.rs-results>.rs-empty{margin:0 18px 18px}.rs-category-grid-wide{grid-template-columns:repeat(4,minmax(190px,1fr))}.rs-mini-trend{height:30px;display:flex;align-items:flex-end;gap:3px;margin:5px 0 8px}.rs-mini-trend i{flex:1;height:35%;border-top:2px solid #e3222e;transform:skewY(-14deg)}.rs-mini-trend i:nth-child(2),.rs-mini-trend i:nth-child(5){height:65%;transform:skewY(18deg)}.rs-mini-trend i:nth-child(4),.rs-mini-trend i:nth-child(8){height:45%;transform:skewY(-22deg)}
.rs-card-revenue{display:block;margin-bottom:9px;color:#101828;font-size:17px;overflow-wrap:anywhere}.rs-card-pending{min-height:86px;display:flex;align-items:center;justify-content:center;gap:6px;border-top:1px solid #f2f4f7;color:#667085;font-size:10px}.rs-card-pending svg{width:15px}
.rs-product-grid{display:grid;grid-template-columns:repeat(4,minmax(210px,1fr));gap:10px}.rs-product-card{min-width:0;border:1px solid #eaecf0;border-radius:8px;background:#fff;overflow:hidden}.rs-product-image{height:190px;display:grid;place-items:center;position:relative;border-bottom:1px solid #eaecf0;background:#f9fafb;color:#d0d5dd}.rs-product-image>svg{width:30px}.rs-product-image img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#fff;padding:8px}.rs-product-body{padding:12px}.rs-product-body>a{text-decoration:none;color:#101828}.rs-product-body h3{height:40px;margin:0 0 7px;overflow:hidden;font-size:12px;line-height:1.35;letter-spacing:0}.rs-product-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#667085;font-size:9px}.rs-rating{color:#f79009;font-weight:700}.rs-rating small{color:#98a2b3;font-weight:400}.rs-volume-label{display:block;margin-top:13px;color:#98a2b3;font-size:9px}.rs-product-revenue{display:block;margin:2px 0 9px;color:#101828;font-size:18px}.rs-product-kpis{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding-bottom:9px;border-bottom:1px solid #f2f4f7}.rs-product-kpis div{display:flex;flex-direction:column;gap:2px}.rs-product-kpis span,.rs-product-body dt{color:#98a2b3;font-size:8px}.rs-product-kpis b{color:#344054;font-size:11px}.rs-product-body dl{margin:8px 0}.rs-product-body dl div{display:flex;justify-content:space-between;gap:6px;padding:2px 0}.rs-product-body dd{margin:0;color:#344054;font-size:9px;font-weight:700}.rs-product-footer{display:flex;align-items:center;justify-content:space-between;gap:8px}.rs-product-footer>a{display:flex;align-items:center;gap:3px;color:#667085;text-decoration:none;font-size:9px}.rs-product-footer svg{width:11px}
.rs-category-dialog{width:min(720px,calc(100vw - 30px));height:min(760px,calc(100vh - 40px));padding:0;border:1px solid #d0d5dd;border-radius:8px;background:#fff;box-shadow:0 20px 48px rgba(16,24,40,.22)}.rs-category-dialog::backdrop{background:rgba(16,24,40,.42)}.rs-dialog-head{height:58px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid #eaecf0}.rs-dialog-head b,.rs-dialog-head span{display:block}.rs-dialog-head b{font-size:14px}.rs-dialog-head span{margin-top:2px;color:#98a2b3;font-size:9px}.rs-dialog-head button{width:30px;height:30px;display:grid;place-items:center;border:0;border-radius:5px;background:#f2f4f7;color:#475467;cursor:pointer}.rs-dialog-head svg{width:15px}
.rs-dialog-search{height:38px;display:flex;align-items:center;gap:7px;margin:12px 14px;padding:0 10px;border:1px solid #d0d5dd;border-radius:6px}.rs-dialog-search svg{width:14px;color:#98a2b3}.rs-dialog-search input{width:100%;border:0;outline:0;font-size:11px}.rs-dialog-tree{height:calc(100% - 122px);overflow:auto;padding:0 10px 14px}.rs-tree-line{height:30px;display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;padding-left:calc(var(--depth) * 18px);border-radius:5px}.rs-tree-line:hover{background:#f9fafb}.rs-tree-expand{width:24px;height:24px;display:grid;place-items:center;border:0;background:transparent;color:#667085;cursor:pointer}.rs-tree-expand svg{width:13px}.rs-tree-line>a{overflow:hidden;color:#344054;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.rs-tree-children{display:none}.rs-tree-node.open>.rs-tree-children{display:block}.rs-tree-loading{display:block;padding:20px;color:#98a2b3;text-align:center;font-size:10px}.rs-tree-search-result{display:flex;flex-direction:column;gap:2px;padding:8px;border-bottom:1px solid #f2f4f7;color:#101828;text-decoration:none}.rs-tree-search-result b{font-size:10px}.rs-tree-search-result small{color:#98a2b3;font-size:8px}

.rs-detail-results{padding:0 18px 24px}.rs-detail-filterbar{height:54px;display:flex;align-items:center;gap:9px;margin:0 -18px 14px;padding:0 14px;border-bottom:1px solid #eaecf0;background:#fcfcfd;color:#667085;font-size:10px;font-weight:700;position:sticky;top:0;z-index:5}.rs-detail-filterbar .rs-filter-toggle{flex:none}.rs-detail-mode-list{display:flex;flex-direction:column;gap:3px}.rs-detail-mode-list a{height:32px;display:flex;align-items:center;gap:7px;padding:0 8px;border-radius:5px;color:#475467;text-decoration:none;font-size:10px;font-weight:700}.rs-detail-mode-list a:hover,.rs-detail-mode-list a.selected{background:#f2f4f7;color:#101828}.rs-detail-mode-list svg{width:14px}.rs-detail-periods{max-height:360px}.rs-filter-section a.rs-category-picker-btn{text-decoration:none}

@media(max-width:1200px){.rs-category-grid-wide,.rs-product-grid{grid-template-columns:repeat(3,minmax(190px,1fr))}}
@media(max-width:1000px){.rs-summary.detail{grid-template-columns:repeat(3,1fr)}.rs-summary.detail>div:nth-child(3){border-right:0}.rs-segment-grid{grid-template-columns:repeat(5,180px)}.rs-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rs-workspace{grid-template-columns:220px minmax(0,1fr)}.rs-category-grid-wide,.rs-product-grid{grid-template-columns:repeat(2,minmax(190px,1fr))}.rs-mode-switch a{padding:0 7px}}
@media(max-width:720px){.rs-head,.rs-detail-head{flex-direction:column}.rs-head-actions{width:100%;flex-wrap:wrap}.rs-period-form{width:100%}.rs-period-form select{width:100%}.rs-toolbar{align-items:stretch;flex-direction:column}.rs-search{min-width:0;flex:none}.rs-select-label select{width:100%}.rs-summary,.rs-summary.detail{grid-template-columns:1fr 1fr}.rs-summary>div,.rs-summary.detail>div{border-right:0;border-bottom:1px solid #eaecf0}.rs-summary>div:nth-child(odd){border-right:1px solid #eaecf0}.rs-summary>div:last-child{border-bottom:0}.rs-chart{gap:3px;overflow-x:auto}.rs-chart-col{min-width:34px}.rs-section-title{align-items:flex-end}.rs-category-grid{grid-template-columns:1fr}.rs-category-card h3{min-height:0}.rs-workspace{display:block;margin:-22px -14px -24px}.rs-filters{position:fixed;inset:0 auto 0 0;width:min(290px,88vw);z-index:30;box-shadow:10px 0 30px rgba(16,24,40,.18)}.filters-collapsed .rs-filters{transform:translateX(-105%);width:min(290px,88vw)}.rs-results-toolbar{flex-wrap:wrap;height:auto;min-height:54px}.rs-results-search{order:3;max-width:none;flex-basis:100%}.rs-results-head{flex-direction:column}.rs-results-head .secondary-btn{width:100%}.rs-category-grid-wide,.rs-product-grid{grid-template-columns:1fr}.rs-product-image{height:240px}}

/* Expanded user controls stay inside the row so the panel can grow with them. */
.admin-user-controls[open]{grid-column:1/-1;grid-row:auto;width:100%}
.admin-user-controls[open]>summary{width:max-content;margin-left:auto}
.admin-control-body{position:static;width:100%;margin-top:8px;background:#fafbfc;box-shadow:none}

.plan-account-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:4px 18px}.plan-account-summary>div{padding:13px 12px 13px 0}.plan-account-summary span,.plan-account-summary strong{display:block}.plan-account-summary span{font-size:8.5px;color:var(--muted2)}.plan-account-summary strong{margin-top:4px;font-size:11px}.account-plan-section .secondary-btn{min-height:35px;text-decoration:none}.account-store-main small{display:block;margin-top:4px;color:var(--muted2);font-size:8px}.account-store-actions{display:flex;align-items:center;gap:8px}.account-store-actions form{margin:0}.account-store-actions .outline-btn{white-space:nowrap}.outline-btn:disabled{opacity:.55;cursor:wait}.account-signout{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 18px}.account-signout strong,.account-signout span{display:block}.account-signout strong{font-size:10.5px}.account-signout span{margin-top:3px;color:var(--muted2);font-size:8.5px}.account-signout form{margin:0}.account-signout .secondary-btn{display:flex;align-items:center;gap:6px}.account-signout svg{width:13px}
.onboarding-cost-form{display:grid;gap:8px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}.onboarding-cost-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,240px);align-items:end;gap:10px}.onboarding-cost-row>div strong,.onboarding-cost-row>div span{display:block}.onboarding-cost-row>div strong{font-size:9.5px}.onboarding-cost-row>div span{margin-top:3px;color:var(--muted2);font-size:8px}.onboarding-cost-row label{display:grid;gap:4px;margin:0;font-size:8px}.onboarding-cost-row input{height:36px}.onboarding-cost-form>.primary-btn{width:max-content;margin:3px 0 0}
@media(max-width:700px){.plan-account-summary{grid-template-columns:1fr}.account-plan-section .account-section-head{align-items:flex-start;flex-direction:column}.account-store-actions{grid-column:2;align-items:flex-start;flex-direction:column}.account-signout{align-items:flex-start;flex-direction:column}.onboarding-cost-row{grid-template-columns:1fr}.onboarding-cost-form>.primary-btn{width:100%}}

/* Customer communication queue: Kaspi only permits manual chat sending. */
.customer-message-notice{line-height:1.55}.customer-message-list{display:grid;gap:12px}.customer-message-card{padding:17px 18px}.customer-message-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.customer-message-head h3{margin:8px 0 4px;font-size:14px}.customer-message-head p{margin:0;color:var(--muted);font-size:10px;line-height:1.5}.message-kind{display:inline-flex;padding:4px 7px;border-radius:6px;font-size:8px;font-weight:800}.message-kind.confirmation{background:#eff8ff;color:#175cd3}.message-kind.review{background:#ecfdf3;color:#067647}.customer-message-meta{display:grid;gap:4px;text-align:right;color:var(--muted2);font-size:9px;white-space:nowrap}.customer-message-card>label{margin-top:14px}.customer-message-text{width:100%;min-height:74px;resize:vertical;border:1px solid #d0d5dd;border-radius:9px;padding:11px 12px;background:#fafbfc;color:#344054;font:inherit;font-size:11px;line-height:1.55}.customer-message-actions{display:flex;align-items:center;gap:8px;margin-top:10px}.customer-message-actions form{margin:0}.customer-message-actions .primary-btn.compact,.customer-message-actions .secondary-btn{width:auto;min-height:36px;margin:0;display:inline-flex;align-items:center;gap:6px}.customer-message-actions svg{width:14px}.quiet-btn{min-height:34px;border:0;background:transparent;color:var(--muted);font-size:9px;font-weight:700;cursor:pointer}.message-state{padding:5px 7px;border-radius:6px;font-size:8px;font-weight:800}.message-state.sent{background:#ecfdf3;color:#067647}.message-state.skipped{background:#f2f4f7;color:#667085}
@media(max-width:700px){.customer-message-head{flex-direction:column;gap:8px}.customer-message-meta{text-align:left}.customer-message-actions{align-items:stretch;flex-direction:column}.customer-message-actions form,.customer-message-actions button{width:100%!important;justify-content:center}}
