body{height:100dvh;overflow:hidden;display:flex;flex-direction:column}header{flex:none}main{flex:1;height:auto;min-height:0}#stage{min-height:0}
aside{padding:10px 12px;overflow:hidden;display:flex;flex-direction:column;min-height:0;gap:8px}
.sideTabs{display:flex;gap:5px;flex:none}.sideTabs button{flex:1;margin:0;padding:8px 4px;font-size:12px}.sideTabs button.active{background:#dce7dc;border-color:#78987c}
.sidePane{display:none;min-height:0;flex:1;overflow:auto}.sidePane.active{display:block}
#materialsPanel.active{display:flex;flex-direction:column;overflow:hidden;gap:5px}#materialsPanel>summary{display:none}
#catalogControls{flex:none}#catalogControls>label{display:grid;grid-template-columns:72px minmax(0,1fr);align-items:center;gap:5px;font-size:11px;margin:2px 0 5px}
#catalogControls select{font-size:12px;padding:6px 3px;height:32px;margin:0}#catalogQuery{padding:6px;font-size:12px;height:32px}#catalogSearch{padding:6px 8px;margin:0;font-size:12px}
#catalogStatus{font-size:11px;line-height:15px;height:30px;margin:5px 0 0;overflow:hidden}#searchNote{font-size:10px;line-height:13px;max-height:26px;margin:0;overflow:hidden}
#catalogBrowser{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
#catalogCards{flex:1;min-height:0;max-height:none;overflow:hidden;scrollbar-gutter:auto;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;align-content:stretch}
.catalogCard{display:flex;flex-direction:column;gap:3px;padding:6px;min-height:0;overflow:hidden}.catalogCard img{width:100%;height:auto;min-height:32px;max-height:104px;flex:1;object-fit:contain}
.catalogTitle{font-size:11px;line-height:14px;min-height:28px;max-height:28px;-webkit-line-clamp:2;flex:none}.catalogCard small{font-size:9px;line-height:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:none}
.catalogActions{display:flex;gap:4px;flex:none;justify-content:space-between;align-items:center}.catalogActions button{margin:0!important;padding:2px;font-size:13px!important;flex:0 0 24px;width:24px!important;min-width:0}.catalogActions a{font-size:10px}.catalogCard>a{font-size:9px;line-height:12px;flex:none}.catalogCard img,.catalogTitle{cursor:pointer}.catalogCard:hover{border-color:#78987d}.catalogCard:focus{outline:2px solid #78987d}
#catalogFooter{flex:none}.catalogPagination{position:static;display:flex;align-items:center;gap:6px;margin:0 0 5px;padding:3px 0 6px}.catalogPagination .searchRow{gap:4px;min-width:0}.catalogPagination .searchRow:first-child{flex:1}.catalogPagination button{margin:0;padding:6px;font-size:11px}.catalogPagination label{display:none}#catalogPageInfo{font-size:10px}.catalogPagination #catalogPageJump{width:39px;padding:5px;font-size:11px}#catalogGo{font-size:10px}
#materialReset{width:100%;font-size:11px;margin:0;padding:6px}
.productHover{position:fixed;z-index:30;width:420px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 100px);overflow:auto;background:#fffef9;border:1px solid #a9b7aa;box-shadow:0 6px 25px #223d3433;border-radius:8px;padding:14px;font-size:12px;line-height:1.5}
.productHover h3,#productInfoDialog h3{font-size:14px;line-height:1.45;margin:0 0 10px;overflow-wrap:anywhere}.productProperties{border-collapse:collapse;width:100%;font-size:12px}.productProperties th,.productProperties td{text-align:left;vertical-align:top;border-bottom:1px solid #e2e7df;padding:5px 3px;overflow-wrap:anywhere}.productProperties th{width:42%;font-weight:500;color:#596c60}
#productInfoDialog{max-height:90dvh;overflow:auto}.productInfoActions{display:flex;gap:6px;margin-top:12px}.productHover[hidden]{display:none}
@media(max-width:800px){header{padding:8px 12px}header h1{font-size:16px}header p{font-size:10px}main{grid-template-columns:1fr;grid-template-rows:minmax(120px,30%) minmax(0,70%)}#stage{height:auto;min-height:0}aside{height:100%}#catalogControls>label{grid-template-columns:66px 1fr}#searchNote{display:none}.catalogCard img{min-height:20px}.catalogTitle{font-size:10px;line-height:12px;min-height:24px;max-height:24px}.catalogCard>a{display:none}.catalogCard{gap:2px;padding:4px}.sideTabs button{padding:5px}.productHover{display:none!important}}

#catalogCards{align-content:start}.catalogCard{height:136px}.catalogCard img{height:74px;min-height:74px;max-height:74px;flex:none}
.variantCard{border:1px solid #d7dbd2;border-radius:7px;padding:10px;margin:8px 0;background:white}.variantCard p{font-size:12px;line-height:1.5}.variantSwatches{display:flex;gap:4px;margin:8px 0}.variantSwatches span{width:42px;height:30px;border:1px solid #bbb;background-size:cover}.sideTabs button{font-size:11px}
#hardwarePane select,#hardwarePane input:not([type=color]){width:100%;margin:4px 0;padding:7px}#hardwarePane p{font-size:12px;line-height:1.5}.hardwareCards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.hardwareNavigation{display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;background:#faf9f5;z-index:2}.hardwareNavigation span{font-size:12px}.sideTabs{flex-wrap:wrap}.sideTabs button{min-width:70px}.hardwareCards article{cursor:pointer}
#hardwarePane>h2{margin:8px 0}#hardwarePane>label{display:inline-block;width:48%;font-size:11px;margin:4px 0}#hardwarePane select{font-size:12px;height:32px;padding:4px}#hardwarePane>p{font-size:11px;margin:5px 0}#hardwarePane>p[role=status]{max-height:48px;overflow:auto}#hardwarePane [hidden]{display:none!important}#hardwarePane #hardwareMode,#hardwarePane #hardwareForm,#hardwarePane #hardwareOpening{width:48%}#hardwareQuery{width:78%!important}#hardwareSearch{padding:6px}
#handleAppliedStatus{border:1px solid #c9c8ba;border-radius:5px;padding:8px;font-size:12px;line-height:1.5;background:#f2f0e9;margin:5px 0}#handleAppliedStatus[data-phase=applied]{background:#e5f0e4;border-color:#7caa7a}#handleAppliedStatus[data-phase=fallback]{background:#fff0db;border-color:#c6a267}#handleAppliedStatus[data-phase=loading]{background:#e6edf3}#handleInspect{font-size:11px;padding:5px}
.lightingPanel{position:absolute;z-index:10;left:14px;top:58px;width:290px;max-width:calc(100% - 28px);max-height:calc(100% - 75px);overflow:auto;border:1px solid #b6beb2;border-radius:8px;background:#faf9f5f5;padding:14px;box-shadow:0 4px 18px #26362f22;font-size:12px}.lightingPanel[hidden]{display:none}.lightingPanel p{font-size:11px;color:#73796d}.lightingPanel label{font-size:12px;margin:10px 0}.lightingPanel input[type=range]{display:block;width:100%;padding:0;margin:5px 0}.lightingPanel output{float:right}.lightingPanel small{font-size:10px}.lightingPanel button{display:block;padding:5px;font-size:11px}
.hardwareCards .catalogCard{position:relative}.modelBadge{position:absolute;top:6px;right:6px;border:1px solid #c3c8c0;background:#f4f4f0ef;border-radius:4px;padding:2px 5px;font-size:10px;line-height:14px;pointer-events:none}.modelBadge[data-state=yes]{color:#235c2b;border-color:#8eb194;background:#e6f2e6f5}.modelBadge[data-state=no]{color:#676d65}.modelBadge[data-state=error],.modelBadge[data-state=unsupported]{color:#865716;border-color:#c4a773;background:#fff0d9f5}
.sideTabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.sideTabs button{min-width:0}.cabinetCounts{display:grid;grid-template-columns:1fr 1fr;gap:8px}#cabinetsPane select{width:100%;font-size:12px;margin:5px 0}#cabinetsPane p{font-size:12px;line-height:1.5}#cabinetsPane label{font-size:12px;margin:7px 0}.cabinetCounts input{width:100%}.cabinetDimensions{margin:12px 0}.cabinetDimensions strong{font-size:12px;display:block}.cabinetDimensions label{display:inline-flex;align-items:center;gap:4px;margin:4px!important;width:calc(50% - 8px)}.cabinetDimensions input{width:70px;min-width:0;padding:5px!important}
.selectionCaption{position:absolute;right:12px;bottom:12px;z-index:6;max-width:55%;background:#fff2dceF;border:1px solid #e0a557;border-radius:5px;padding:7px 10px;font-size:12px;color:#73470d;pointer-events:none}.selectionCaption[hidden]{display:none}
.cabinetDimensions input[readonly]{background:#eeede7;color:#73796d}.cabinetDimensions input[readonly]::-webkit-inner-spin-button{display:none}
#upperInterior{border-top:1px solid #d7dbd2;margin-top:10px;padding-top:5px}#upperInterior[hidden],#cabinetsPane [hidden]{display:none!important}#upperInterior>label{display:flex;align-items:center;gap:8px;justify-content:space-between}#upperInterior>label input{width:90px;padding:5px}#upperInterior .cabinetDimensions input{width:65px}#upperFlush{font-size:11px;padding:6px;margin:2px 0 9px}
.dimensionOverlay{position:absolute;inset:0;pointer-events:none;z-index:5;width:100%;height:100%}.dimensionOverlay[hidden]{display:none}#rulerToggle[aria-pressed=true]{background:#fff0d7;border-color:#bd9253}
