/* Only the narrow-screen working interface; WordPress theme stays intact. */
@media(max-width:760px){
 body>header{padding:8px 10px;min-height:48px;gap:10px;flex-wrap:wrap}
 body>.intro{padding:8px 10px 12px}
 body>.intro h1{font-size:18px;line-height:1.4}
 body>main{display:flex;flex-direction:column;gap:10px;width:100%;padding:0 8px}
 main>aside{display:contents}
 main #steps{order:1;width:100%;grid-template-columns:repeat(5,minmax(0,1fr));padding:8px 2px;background:white;border:1px solid var(--line);border-radius:10px}
 #steps button{display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:11px;min-height:54px;padding:4px 0;line-height:1.3;white-space:normal}
 #steps button b{margin:0 auto 4px;flex-shrink:0}
 #panel{max-height:none;overflow:visible;order:2;width:100%;padding:16px 12px;background:white;border:1px solid var(--line);border-radius:12px}
 .workspace{order:0;width:100%;min-width:0;display:flex;flex-direction:column}
 .workspace>.viewbar{order:0;padding:12px}
 .workspace>.stage{order:1;min-height:260px;height:380px;height:clamp(280px,82vw,380px);width:100%}
 .workspace>.orbit-tools{order:2;padding:10px 2px}
 .workspace>.selected-cabinet{order:3;position:static;min-height:0;padding:14px 12px}
 .workspace>.drop-status,.workspace>.view-settings,.workspace>#stats,.workspace>#alerts,.workspace>#arrangement,.workspace>.honest-note{order:4}
 .viewbar .segmented{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;width:100%}
 .viewbar .segmented button{font-size:12px;min-height:44px;padding:7px 4px;min-width:0}
 button,input,select,textarea,summary{touch-action:manipulation}
 button,.selection-actions button,.selection-actions select,.catalog-tools button,.header-menu summary{min-height:44px}
 .field,.catalog-location label{font-size:13px}
 input,select,textarea{font-size:16px!important;min-height:44px;max-width:100%}
 input[type=checkbox]{min-height:22px;min-width:22px}
 .checkbox{font-size:13px;line-height:1.5;min-height:44px}
 .catalog-grid{grid-template-columns:minmax(0,1fr);gap:10px}
 .product{display:grid;grid-template-columns:92px minmax(0,1fr);align-items:center;min-width:0}
 .product img{width:92px;height:142px;padding:6px}
 .product-content{padding:12px!important;min-width:0}
 .product-content strong{font-size:15px}
 .product-content p,.product-content small{font-size:12px;line-height:1.45;min-height:0;overflow-wrap:anywhere}
 .product .add{min-height:44px;font-size:14px}
 .swatches{gap:8px;flex-wrap:wrap;margin:10px 0 16px}
 .swatch{border-radius:10px;min-width:60px;min-height:78px;padding:5px}
 .swatch i{width:42px;height:42px;margin:auto}
 .swatch span{position:static;transform:none;display:block;font-size:11px;margin-top:6px;line-height:1.4}
 .color-group{margin-bottom:22px}
 #panel h2{font-size:21px}h3{font-size:14px}
 .small,small,.sub,.selection-title small,.selection-hint{font-size:12px;line-height:1.55}
 .orbit-tools button{min-width:48px;min-height:44px;font-size:18px}
 .orbit-tools>span{font-size:12px;max-width:100%}
 .selected-cabinet>.field{min-width:0;width:100%;margin:6px 0}
 .selected-cabinet .selection-title{width:100%}
 .selection-title strong{font-size:14px}
 dialog{padding:16px;width:calc(100% - 16px)}
 .demo-examples .examples{max-width:calc(100vw - 24px)}
 .honest-note{font-size:11px}
}
@media(max-width:380px){.fields{grid-template-columns:minmax(0,1fr)}.catalog-tools button{font-size:12px;padding:7px 4px}.product{grid-template-columns:80px minmax(0,1fr)}.product img{width:80px}}
