/* Desktop-only layout safeguards. All mobile rules and component colors remain intact. */
@media screen and (min-width:768px){
 body[data-seller-icon-motion] .workspace{min-width:0}
 body[data-seller-icon-motion] .workspace>#main-content.content{width:100%;max-width:none;min-width:0;margin-inline:0;box-sizing:border-box}
 body[data-seller-icon-motion] #main-content>*{min-width:0}
 #main-content>.workbench-operations{width:100%;max-width:none;min-width:0;margin-inline:0;box-sizing:border-box}
 #main-content>.workbench-operations .tool-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 #main-content>.workbench-operations[data-mode=management] .tool-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 #main-content>.workbench-operations .tool-card{min-width:0;box-sizing:border-box}
 #main-content>.workbench-operations .tool-card>div{min-width:0}
 #main-content>.workbench-operations .tool-card h3{overflow-wrap:anywhere}
 #main-content :is(.seller-dashboard,.monthly-finance,.profile-page,.promotions-page,.smart-discounts,.coupons-page,.advertising-page,.support-page,.returns-page,.fulfillment-page,.orders-page){width:100%;max-width:none;min-width:0;margin-inline:0;box-sizing:border-box}
 #main-content>.product-editor{width:100%;max-width:none;min-width:0;grid-template-columns:170px minmax(0,1fr)}
 #main-content :is(.panel,.mf-panel,.editor-panel,.profile-main,.profile-section,.table-wrap,.orders-table-wrap,.catalog-cards,.detail-grid,.form-grid,.profile-form-grid,.toolbar,.toolbar-group,.heading-actions){min-width:0;max-width:100%;box-sizing:border-box}
 #main-content .page-heading{flex-wrap:wrap;align-items:flex-start;gap:12px 18px}
 #main-content .page-heading>div:first-child{min-width:0;flex:1 1 240px}
 #main-content .page-heading h1{overflow-wrap:anywhere}
 #main-content .heading-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px}
 #main-content .heading-actions>.btn{white-space:normal}
 #main-content :is(.toolbar,.toolbar-group,.pr-toolbar,.sd-toolbar,.cp-toolbar,.ad-filters,.return-tools,.sp-filters){flex-wrap:wrap}
 #main-content :is(.toolbar,.toolbar-group,.pr-toolbar,.sd-toolbar,.cp-toolbar,.ad-filters,.return-tools,.sp-filters)>*{min-width:0}
 #main-content :is(.search-field,.sp-search){min-width:0}
 #main-content .toolbar>.search-field{flex:1 1 240px;max-width:none}
 #main-content :is(.form-grid,.profile-form-grid) :is(.field,.profile-field,input,select,textarea,.select-trigger){min-width:0;max-width:100%;box-sizing:border-box}
 #main-content :is(.form-grid,.profile-form-grid) :is(input,textarea,.select-trigger){width:100%}
 #main-content :is(.form-grid,.profile-form-grid) :is(input[type=checkbox],input[type=radio]){width:auto}
 #main-content .select-trigger{min-width:0;max-width:100%}
 #main-content .select-trigger>.select-summary{min-width:0;overflow:hidden;text-overflow:ellipsis}
 #main-content .select-trigger>.icon{flex:none}
 #main-content .table-wrap{max-width:100%;min-width:0}
 #main-content .table-wrap :is(td,th){overflow-wrap:anywhere}
 #main-content :is(.cp-list,.sd-list,.ad-service-grid){grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));align-items:start}
 #main-content .promotions-page .pr-programs{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))}
 #main-content :is(.pr-program,.pr-request,.sd-rule,.cp-card,.ad-request,.ad-service-grid>article){min-width:0;max-width:100%}
 #main-content :is(.pr-program,.sd-rule,.cp-card,.ad-request) :is(header,footer){flex-wrap:wrap}
 #main-content .profile-directory-link>div{min-width:0}
 #main-content .profile-directory-link :is(strong,small){overflow-wrap:anywhere}
 #main-content .profile-form-footer{flex-wrap:wrap;gap:10px}
 #main-content .profile-save-actions{flex-wrap:wrap}
 #main-content .editor-savebar{flex-wrap:wrap;gap:10px;bottom:0}
 #main-content .editor-savebar>div:first-child{min-width:0;flex:1 1 260px}
 #main-content .editor-save-actions{flex-wrap:wrap}
 #main-content .cq-savebar{bottom:16px}
 #main-content .cq-savebar>div{min-width:0}
 #main-content .fulfillment-overview>button>span{white-space:normal;overflow-wrap:anywhere}
 #main-content .fulfillment-overview>button{min-width:0}
 #main-content .refined-dashboard-main{min-width:0}
 #main-content .refined-daily-item{min-width:0}
 #main-content .refined-daily-label{min-width:0;overflow-wrap:anywhere}
 #main-content .refined-daily-label>.daily-reference-icon{display:none}
 #main-content .dashboard-score-title{flex-wrap:wrap}
 #main-content .variant-offer-row:has(>.availability-toggle){grid-template-columns:minmax(60px,.5fr) minmax(0,1fr)}
 #main-content .variant-offer-head:not(:has(>span:nth-child(3))){grid-template-columns:minmax(60px,.5fr) minmax(0,1fr)}
 body[data-seller-icon-motion] .topbar .breadcrumb{min-width:0;flex:1}
 body[data-seller-icon-motion] .topbar .breadcrumb>strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 body[data-seller-icon-motion] .topbar-actions{min-width:0;flex:none}
 body[data-seller-icon-motion] .modal-overlay>.modal{max-width:calc(100vw - 48px);max-height:calc(100dvh - 40px);min-width:0}
 body[data-seller-icon-motion] .modal :is(.modal-header,.modal-body,.modal-footer){min-width:0;box-sizing:border-box}
 body[data-seller-icon-motion] .modal .modal-header>div{min-width:0}
 body[data-seller-icon-motion] .modal .modal-header h2{overflow-wrap:anywhere}
 body[data-seller-icon-motion] .modal .modal-body{min-height:0;overflow:auto;overscroll-behavior:contain}
 body[data-seller-icon-motion] .modal .modal-footer{flex-wrap:wrap}
 body[data-seller-icon-motion] .select-picker{max-width:calc(100vw - 48px);max-height:calc(100dvh - 40px);min-width:0}
 body[data-seller-icon-motion] .picker-options{min-height:0;overflow:auto}
}
@media screen and (min-width:768px) and (max-width:1199px){
 #main-content>.workbench-operations .tool-grid,#main-content>.workbench-operations[data-mode=management] .tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 #main-content .refined-dashboard-main,#main-content>.detail-grid{grid-template-columns:minmax(0,1fr)}
 #main-content .refined-daily-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 #main-content .dashboard-score-dimensions{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 20px}
 #main-content .dashboard-score-dimension:last-child{grid-column:1/-1}
 #main-content .profile-directory-groups{grid-template-columns:repeat(2,minmax(0,1fr))}
 #main-content .profile-directory-groups>.profile-directory-group:last-child{grid-column:1/-1}
 #main-content .orders-filter-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 #main-content .orders-filter-row>.orders-dates{grid-column:1/-1}
 #main-content .orders-page>.retail-statusbar{flex-wrap:wrap}
 #main-content .retail-status-shortcuts{flex-wrap:wrap;min-width:0}
 #main-content .fulfillment-page .fulfillment-overview{grid-template-columns:repeat(3,minmax(0,1fr))}
 #main-content .monthly-finance .mf-panel:has(#finance-month-statements){grid-template-columns:minmax(0,1fr)}
 #main-content .catalog-cards[data-view=list] .catalog-card{grid-template-columns:minmax(0,1fr)}
 #main-content .catalog-cards[data-view=list] .catalog-card-head{grid-column:1;grid-row:auto}
 #main-content .catalog-cards[data-view=list] .catalog-card-offer{grid-column:1;grid-row:auto;margin-top:12px}
 #main-content .catalog-cards[data-view=full]{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media screen and (min-width:768px) and (max-width:899px){
 #main-content>.product-editor{grid-template-columns:minmax(0,1fr);gap:12px}
 #main-content>.product-editor .editor-sections{position:static;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
 #main-content>.product-editor .editor-sections button{display:flex;flex-direction:column;justify-content:center;text-align:center;min-width:0;font-size:10px;padding:7px 3px}
 #main-content .profile-directory-groups{grid-template-columns:minmax(0,1fr)}
 #main-content .profile-shell{grid-template-columns:minmax(0,1fr)}
 #main-content .profile-sidebar{position:static}
 #main-content .profile-sidebar nav{grid-template-columns:repeat(2,minmax(0,1fr))}
 #main-content .profile-sidebar .profile-nav-group{grid-column:1/-1}
 #main-content :is(.cp-list,.sd-list,.ad-service-grid){grid-template-columns:minmax(0,1fr)}
 #main-content .fulfillment-page .fulfillment-overview{grid-template-columns:repeat(2,minmax(0,1fr))}
 #main-content .fulfillment-page .fulfillment-overview>button:first-child{grid-column:1/-1}
 #main-content .refined-desktop-plot{grid-template-columns:60px minmax(0,1fr);gap:8px}
 #main-content .refined-chart-values{margin-left:68px}
}
