html,body{max-width:100%;overflow-x:hidden}.dashboard-main,.dashboard-shell>*{min-width:0}.dashboard-main{overflow-wrap:anywhere}.button-row,.product-actions,.action-row{display:flex;align-items:center;flex-wrap:wrap;gap:14px}.button-row .btn,.product-actions .btn,.action-row .btn{margin:0}.product-actions form,.action-row form{margin:0}.inline-form{margin:0!important}.order-row{gap:20px;padding-block:20px;flex-wrap:wrap}.order-row>div{min-width:0}.product-actions{justify-content:flex-end;flex:1}.product-actions .btn{min-height:42px}.dashboard-main :where(.btn,button){margin-block:7px}.dashboard-main .btn+.btn{margin-inline-start:0}.dash-panel form+form{margin-top:22px}.catalog-thumb{width:96px!important;height:76px!important;max-width:100%;object-fit:contain!important;display:block;background:var(--bg);border:1px solid var(--line);border-radius:12px;margin:0 0 12px}.editor-product-image{display:block;width:100%;max-width:360px;height:200px;object-fit:contain;background:var(--bg);border-radius:16px}.editor-group{border:1px solid var(--line);border-radius:16px;padding:20px;margin:22px 0;min-width:0}.editor-group legend{padding:0 10px;font-weight:700}.editor-group p,.editor-group small{color:var(--muted);line-height:1.7}.editor-group [hidden]{display:none!important}.dashboard-menu{max-width:1400px;margin:18px auto;padding:0 24px}.dashboard-menu summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:12px;padding:16px 20px;background:var(--surface);border:1px solid var(--line);border-radius:14px;font-weight:700;min-height:54px}.dashboard-menu summary::-webkit-details-marker{display:none}.dashboard-menu summary small{margin-left:auto;font-weight:400;color:var(--muted)}.dashboard-menu nav{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;padding:16px 0}.dashboard-menu nav a{padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}.dashboard-menu nav a:hover{border-color:#8c82ff;background:#8675ff22}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:16px}.affiliate-link{width:100%;font-size:14px}.commission-status{display:inline-block;border-radius:20px;padding:6px 12px;background:#8274ff20;font-size:12px}.dashboard-main input,.dashboard-main textarea,.dashboard-main select{max-width:100%;min-width:0}.site-header .brand img{width:148px;height:49px;object-fit:contain}.dash-panel{scroll-margin-top:24px}.dashboard-shell:has(>.dashboard-main:only-child){grid-template-columns:1fr;max-width:1200px}.dashboard-shell:has(>.dashboard-main:only-child)>.dashboard-main{width:100%}
@media(max-width:900px){.dashboard-menu{padding:0 16px;margin:14px auto}.dashboard-menu summary{border-color:#8274ff88;box-shadow:0 8px 30px #0002}.dashboard-shell{display:block!important;padding:0 16px!important}.dashboard-shell>.account-side{display:none!important}.dashboard-main{width:100%!important;padding:0!important}.dashboard-main .dash-panel{padding:22px 18px}.dashboard-main h1{font-size:clamp(26px,7vw,38px)}.dashboard-main h2{font-size:23px}.dashboard-main .two-inputs{grid-template-columns:1fr!important}.product-actions{justify-content:flex-start;width:100%;flex:auto}.product-actions .btn{padding:11px 15px}.site-header:has(+.dashboard-menu){padding:12px 16px;gap:12px;flex-wrap:wrap;position:relative}.site-header:has(+.dashboard-menu) .main-nav{display:none}.dashboard-menu nav{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-menu nav a{font-size:13px;padding:13px 11px}.dashboard-menu summary small{font-size:11px}.stat-grid,.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.stat-card{padding:18px 12px;min-width:0}.stat-card strong{font-size:clamp(21px,6vw,34px)}.order-row>div:first-child{min-width:0;width:100%}.button-row{align-items:stretch}.button-row .btn{flex:1 1 160px;justify-content:center}.editor-group{padding:16px}.site-header .brand img{width:124px;height:42px}}

.dashboard-main .order-row strong,.dashboard-main .order-row small{display:block}.dashboard-main .order-row small{margin-top:7px;line-height:1.7;color:var(--muted)}.dashboard-main .product-actions>form,.dashboard-main .product-actions>form+form,.dashboard-main .action-row>form,.dashboard-main .action-row>form+form{display:flex;flex-direction:row;align-items:center;margin:0!important;gap:0}.dashboard-main .product-actions .btn,.dashboard-main .action-row .btn{margin:0!important}