.furniture-dialog{width:min(1120px,calc(100% - 32px));max-height:calc(100dvh - 140px);padding:0;border:0;border-radius:16px;background:#fff;color:#111827;box-shadow:0 20px 60px #11182733;overflow:auto}
.furniture-dialog::backdrop{background:#11182766}
.furniture-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 24px;border-bottom:1px solid #e5e7eb}
.furniture-header h2{font-size:18px;font-weight:650}.furniture-header button{display:grid;place-items:center;width:44px;height:44px;border-radius:8px}.furniture-header button:hover{background:#f3f4f6}.furniture-header svg{width:22px;height:22px}
.furniture-body{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)}.furniture-selection,.furniture-matches{padding:24px;min-width:0}.furniture-matches{border-left:1px solid #e5e7eb}.furniture-selection>p:first-child{font-size:14px;line-height:1.5;margin-bottom:16px}
.furniture-image-wrap{text-align:center;background:#f9fafb;border-radius:8px;overflow:hidden}.furniture-stage{display:inline-block;position:relative;max-width:100%;vertical-align:middle;cursor:crosshair;touch-action:none;user-select:none}.furniture-stage img{display:block;width:auto;max-width:100%;max-height:420px;pointer-events:none}.furniture-box{position:absolute;border:2px solid #b05039;background:#b0503914;box-shadow:0 0 0 999px #11182755;pointer-events:none}.furniture-box::after{content:'';position:absolute;inset:2px;border:1px solid #fff}
.furniture-controls{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;margin-top:16px}.furniture-controls label{flex:1 1 150px;min-width:0;font-size:12px;font-weight:600}.furniture-controls label span{display:block;margin-bottom:6px}.furniture-controls select{width:100%;border:1px solid #d1d5db;border-radius:8px;padding:10px 28px 10px 10px;font-size:14px;height:44px;background:#fff}.furniture-primary,.furniture-secondary{border-radius:8px;padding:10px 14px;min-height:44px;font-size:14px;font-weight:600}.furniture-primary{background:#b05039;color:#fff}.furniture-primary:hover{background:#933d2b}.furniture-primary:disabled{opacity:.45;cursor:not-allowed}.furniture-secondary{border:1px solid #d1d5db;color:#374151}.furniture-secondary:hover{background:#f9fafb}
.furniture-disclosure,.furniture-keyboard{font-size:12px;line-height:1.5;color:#4b5563;margin-top:12px}.furniture-keyboard{margin-top:8px}.furniture-matches h3{font-weight:650;font-size:16px}.furniture-matches [role=status]{font-size:14px;line-height:1.5;color:#4b5563;margin:12px 0}.furniture-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 16px}.furniture-product{display:flex;flex-direction:column;gap:6px;color:#111827;text-decoration:none;min-width:0}.furniture-product:hover .furniture-product-title{text-decoration:underline;text-underline-offset:3px}.furniture-product img{width:100%;height:130px;object-fit:contain;background:#f9fafb;border-radius:8px}.furniture-product-title{font-size:13px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.furniture-product-price{font-size:14px;font-weight:650}.furniture-product-store{font-size:12px;color:#933d2b;overflow-wrap:anywhere}.furniture-dialog :focus-visible{outline:2px solid #b05039;outline-offset:3px}
@media(max-width:767px){.furniture-dialog{width:calc(100% - 24px);max-height:calc(100dvh - 100px)}.furniture-header{padding:12px 16px}.furniture-header h2{font-size:16px}.furniture-body{display:block}.furniture-selection,.furniture-matches{padding:16px}.furniture-matches{border-left:0;border-top:1px solid #e5e7eb}.furniture-stage img{max-height:300px}.furniture-controls label{flex-basis:100%}.furniture-primary{flex:1}.furniture-keyboard{display:none}}
/* Keep the added action in the existing toolbar without a third row on phones. */
@media(min-width:1024px){.result-actions:has([id$="furniture-search-btn"]) .result-action{padding-inline:.65rem;font-size:.8125rem}}
@media(max-width:1023px){#canvas-action-bar:has(#furniture-search-btn) #make-video-btn{grid-column:auto}#canvas-action-bar:has(#furniture-search-btn) #download-btn{grid-column:span 2}#canvas-action-bar:has([data-upscale-cost].hidden) #download-btn{grid-column:auto}#multiple-action-bar:has(#multiple-furniture-search-btn) #multiple-download-btn{grid-column:1 / -1}}
.furniture-stage:focus-visible{outline-offset:-3px}
.furniture-draw-hint{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);padding:9px 14px;border-radius:999px;background:#fffef5ed;color:#374151;box-shadow:0 2px 12px #0002;font-size:13px;font-weight:600;white-space:nowrap;pointer-events:none}
.furniture-saved{margin-bottom:16px}.furniture-saved label{display:block;font-size:12px;font-weight:600;margin-bottom:6px}.furniture-saved select{width:100%;min-height:44px;border:1px solid #d1d5db;border-radius:8px;background:#fff;padding:10px;font-size:14px}
#furniture-instructions{font-size:14px;line-height:1.5;margin-bottom:16px}.furniture-controls select{font-weight:400}.furniture-product-price-unknown{font-weight:400;color:#4b5563}
.furniture-gallery-button{display:inline-flex;align-items:center;gap:6px;min-height:44px;margin-top:4px;text-align:left;font-size:13px;font-weight:600;color:#933d2b}.furniture-gallery-button:hover{text-decoration:underline}.furniture-gallery-button svg{width:16px;height:16px;flex-shrink:0}
@media(min-width:768px){.furniture-selection{position:sticky;top:0;align-self:start}}
.furniture-header{position:sticky;top:0;z-index:2;background:#fff}.furniture-matches h3{scroll-margin-top:88px}
@media(min-width:768px){.furniture-selection{top:76px}}
.furniture-buy{display:inline-flex;align-items:center;margin-bottom:12px;text-decoration:none}.furniture-buy[hidden]{display:none}
/* Find Furniture mode: draw on the main canvas photo, matches in the sidebar (#362). */
.furniture-drawing{cursor:crosshair;touch-action:none;user-select:none}.furniture-drawing img{pointer-events:none}.furniture-drawing:focus-visible{outline:2px solid #b05039;outline-offset:-3px}
.furniture-panel .furniture-saved{margin:0}.furniture-panel .furniture-field{font-size:12px;font-weight:600}.furniture-panel .furniture-field span{display:block;margin-bottom:6px}.furniture-panel select{width:100%;min-height:44px;border:1px solid #d1d5db;border-radius:8px;background:#fff;padding:10px;font-size:14px;font-weight:400}
.furniture-panel-matches [role=status]{font-size:14px;line-height:1.5;color:#4b5563;margin-bottom:12px}.furniture-panel .furniture-results{gap:16px 12px}.furniture-panel .furniture-product img{height:110px}
