/* One viewport, image-only product pages. Forms and menus keep native selection controls. */
.client-stage:has(.amz-screen){overflow:hidden!important;padding-bottom:8px!important}
.workbench .client-stage .amz-screen{height:100%;min-height:0;overflow:hidden;display:flex;gap:12px}
.workbench .amz-screen .amz-results{display:flex;flex-direction:column;gap:8px;min-height:0;overflow:hidden;flex:1;min-width:0}
.amz-compact-bar{display:flex;align-items:center;gap:8px;flex-shrink:0;min-width:0}
.amz-compact-search{display:flex;gap:6px;flex:1;min-width:0;margin:0}
.amz-compact-search input{min-width:50px;width:100%;font-size:16px;min-height:44px;border:1px solid #cbd6e5;padding:6px 10px;border-radius:5px}
.amz-dropdown{flex-shrink:0}.amz-dropdown summary{white-space:nowrap;list-style:none;cursor:pointer;padding:10px 12px;box-sizing:border-box;min-height:44px;border:1px solid #cbd6e5;border-radius:5px;background:#fff}
.amz-dropdown summary::-webkit-details-marker{display:none}
.amz-dropdown:not([open])>.amz-dropdown-body{display:none!important}
.amz-dropdown-body{z-index:1450;background:white;border:1px solid #cbd6e5;border-radius:8px;padding:12px;box-shadow:0 6px 24px #17203333;width:310px;max-width:calc(100vw - 32px);overflow:auto;display:grid;gap:10px}
.amz-dropdown-body label{display:grid;grid-template-columns:80px minmax(0,1fr);align-items:center;gap:8px;font-size:14px}
.amz-dropdown-body select{width:100%;min-height:44px;font-size:16px;border:1px solid #cbd6e5;background:white;border-radius:5px}
.amz-screen .amz-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-template-rows:repeat(3,minmax(0,1fr));flex:1;min-height:0;gap:8px!important;overflow:hidden!important;align-content:stretch;touch-action:pan-y pinch-zoom}
.amz-screen .amazon-card{min-width:0;min-height:0;height:auto;padding:0!important;margin:0!important;border:1px solid #e1e5eb;border-radius:4px;overflow:hidden;background:white;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.amz-screen .amazon-product-image{height:100%!important;width:100%;padding:0!important;min-height:0;aspect-ratio:auto!important}
.amz-screen .amazon-product-image img{width:100%;height:100%;object-fit:contain;-webkit-touch-callout:none;user-select:none;-webkit-user-drag:none}
.amz-screen .amazon-pagination{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0!important;margin:0!important;min-height:44px;flex-shrink:0;font-size:12px}
.amz-screen .amazon-pagination span{min-width:0;text-align:center}.amz-screen .amazon-pagination button{white-space:nowrap}
.amz-screen .amz-error{max-height:70px;overflow:auto;margin:0}
.amz-screen.has-panel .amz-panel{max-height:100%!important;overflow:auto;min-height:0;width:min(480px,55%);flex-shrink:0}
.client-more:not([open])>div{display:none!important}
.screen-menu{display:inline-block;flex-shrink:0;margin:0!important;position:relative}
.screen-menu>summary{display:flex!important;align-items:center;min-height:44px;box-sizing:border-box;white-space:nowrap}
.screen-menu>div{z-index:1500!important;max-height:70dvh;overflow:auto;min-width:170px!important;display:grid;gap:5px}
.screen-menu>div button{width:100%;white-space:nowrap;min-height:44px;text-align:left}
.workbench .bw-workspace>.screen-toolbar{display:flex;flex-wrap:nowrap;gap:6px;padding:6px;margin-bottom:8px;overflow:visible;max-height:none;align-items:center}
.screen-toolbar .bw-field{min-width:0;flex:0 1 150px;gap:0}
.screen-toolbar .bw-field:first-child{flex:1 1 180px}
.screen-toolbar .bw-field>span{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
.screen-toolbar .bw-field input,.screen-toolbar .bw-field select{width:100%;min-height:44px;font-size:16px;box-sizing:border-box}
.screen-toolbar button{flex-shrink:0;white-space:nowrap}
.workbench .bw-workspace[data-workspace=aiDesign],.workbench .bw-workspace[data-workspace=customerIntel]{height:100%;min-height:0;overflow:hidden;display:flex;flex-direction:column}
html.workbench .bw-workspace>.ai-screen,html.workbench.workbench-single .bw-workspace>.ai-screen.has-detail{display:grid!important;grid-template-columns:190px minmax(0,1fr)!important;min-height:0;flex:1;overflow:hidden;gap:8px}
html.workbench .ai-screen>.bw-list{display:block!important;min-height:0;overflow:auto;padding:7px}
.ai-screen .bw-row{padding:6px;gap:7px;margin-bottom:7px;align-items:center}
.ai-screen .bw-row>img{width:52px;height:62px;object-fit:contain}
.ai-screen .bw-row strong{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ai-screen .bw-row small{font-size:12px;margin:2px 0}
.ai-screen .bw-row summary{font-size:12px;padding:3px 8px!important}
.screen-list-caption{margin:4px 0 8px;font-size:13px}
html.workbench .ai-screen>.ai-detail{display:grid!important;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)!important;gap:8px;padding:8px;overflow:hidden;min-height:0;max-height:none;position:static}
html.workbench .ai-screen .ai-detail-content{overflow:auto;min-height:0;padding:0 6px 0 0}
.screen-detail-header{display:flex;gap:6px;align-items:center;justify-content:space-between;min-width:0;flex-wrap:wrap}
.screen-detail-header h2{font-size:14px!important;margin:0;overflow-wrap:anywhere;min-width:0}
.screen-detail-header h3{margin:0;font-size:14px}
.ai-status-line{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:8px 0}
.ai-status-line select{min-width:0;max-width:100%;min-height:44px;font-size:16px}
.ai-detail-content>small{font-size:12px;color:#718096}
.ai-detail-content h3{margin:9px 0 5px;font-size:13px}
.ai-detail-content .ai-reference-images{display:flex;overflow:auto;gap:6px;margin:0;flex-wrap:nowrap}
.ai-detail-content .ai-reference-images>article{flex:0 0 135px;padding:4px;min-width:0}
.ai-detail-content .ai-reference-images img{width:125px;height:125px;object-fit:contain}
.ai-requirement{white-space:pre-wrap;overflow-wrap:anywhere;padding:8px;font-size:13px;background:#f4f7fb;border-radius:5px}
html.workbench .ai-screen .ai-results-panel{display:flex;flex-direction:column;overflow:hidden;min-height:0;padding:8px;gap:6px}
.ai-results-panel .ai-canvas{flex:1;min-height:0!important;height:auto!important;aspect-ratio:auto!important;display:flex;align-items:center;justify-content:center;overflow:hidden}
.ai-results-panel .ai-canvas img{height:100%!important;width:100%!important;max-height:100%!important;object-fit:contain}
.ai-results-panel .ai-result-controls{margin:0;gap:5px;flex-shrink:0;white-space:nowrap;font-size:12px}
.ai-result-controls button{padding:5px 8px!important}
html.workbench .bw-workspace>.customer-screen,html.workbench.workbench-single .bw-workspace>.customer-screen.has-detail{display:grid!important;grid-template-columns:230px minmax(0,1fr)!important;min-height:0;flex:1;overflow:hidden;gap:8px}
html.workbench .customer-screen>.bw-list{display:block!important;min-height:0;overflow:auto;padding:8px}
html.workbench .customer-screen>.bw-detail{min-height:0;overflow:auto;max-height:none;position:static;padding:12px}
.customer-screen .client-company-node button{font-size:13px!important;min-height:44px;padding:6px!important}
.customer-screen .client-folder{font-size:13px}
.customer-screen .bw-detail>.bw-toolbar{padding:6px;margin:8px 0;gap:6px;flex-wrap:nowrap}
.customer-screen .bw-detail>.bw-toolbar .bw-field{min-width:0;flex:1}
.customer-screen .bw-detail h2{margin:0 0 6px;font-size:18px}
.quote-foam .quote-foam-fields{display:flex!important;flex-wrap:wrap;gap:8px!important;align-items:center}
.quote-foam-fields .quote-field{flex:1 1 130px;min-width:0;display:flex!important;gap:5px}
.quote-foam-fields .quote-field input{width:70px;min-width:50px;flex:1;min-height:44px}
.quote-foam-fields .quote-field>span{white-space:nowrap}
.quote-foam-fields .quote-field small{display:none}
.quote-foam .quote-materials{max-height:none;flex:1;min-height:0;overflow:auto}
@media(max-width:1000px){html.workbench .bw-workspace>.ai-screen,html.workbench.workbench-single .bw-workspace>.ai-screen.has-detail{grid-template-columns:165px minmax(0,1fr)!important}.ai-screen .bw-row{gap:5px}.ai-screen .bw-row>img{width:40px;height:55px}html.workbench .bw-workspace>.customer-screen,html.workbench.workbench-single .bw-workspace>.customer-screen.has-detail{grid-template-columns:200px minmax(0,1fr)!important}}
@media(max-width:650px){.screen-toolbar{flex-wrap:wrap!important}.screen-toolbar .bw-field:first-child{flex-basis:100%}html.workbench .bw-workspace>.ai-screen,html.workbench.workbench-single .bw-workspace>.ai-screen.has-detail{grid-template-columns:130px minmax(0,1fr)!important}html.workbench .ai-screen>.ai-detail{grid-template-columns:minmax(0,1fr)!important;overflow:auto}.ai-results-panel .ai-canvas{min-height:180px!important}html.workbench .bw-workspace>.customer-screen,html.workbench.workbench-single .bw-workspace>.customer-screen.has-detail{grid-template-columns:150px minmax(0,1fr)!important}}
@media(max-width:1100px){.amz-screen .amz-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:repeat(4,minmax(0,1fr))}.amz-screen.has-panel .amz-results{display:none!important}.amz-screen.has-panel .amz-panel{width:100%}}
@media(max-width:600px){.amz-compact-bar{flex-wrap:wrap}.amz-compact-search{flex-basis:100%}.amz-dropdown{flex:1}.amz-dropdown summary{text-align:center}}

.amz-compact-search button{white-space:nowrap;flex-shrink:0;min-width:56px}
.customer-empty{display:flex;align-items:center;justify-content:center;color:#8390a4;font-size:14px}
.amz-screen .amazon-pagination{padding-left:52px!important}
