.room-assistant-dialog{width:min(1040px,calc(100vw - 32px));max-height:94dvh;overflow:auto;overscroll-behavior:contain;border:1px solid #c9d0c0;border-radius:14px;padding:28px 32px 0;background:var(--cream,#fcf9f3);color:var(--forest,#1b3028);box-shadow:0 28px 100px #10251c45}.room-assistant-dialog::backdrop{background:#10251dc9;backdrop-filter:blur(6px)}.room-assistant-heading{display:flex;justify-content:space-between;align-items:start;gap:20px}.room-assistant-heading h2{font:38px/1.1 var(--serif,Georgia,serif);letter-spacing:-.7px;max-width:650px;margin:10px 0 0}.room-assistant-heading .eyebrow,.room-assistant-section-head .eyebrow,.room-assistant-selection .eyebrow{font-size:10px;letter-spacing:1.8px;color:#9b774b}.room-assistant-intro{font-size:14px;line-height:1.75;max-width:740px;color:var(--muted,#657063);margin:18px 0 24px}.room-assistant-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding-bottom:20px;border-bottom:1px solid #d6dccd;margin-bottom:24px}.room-assistant-steps button{min-height:53px;display:flex;gap:10px;align-items:center;text-align:left;background:#f0f2e9;border:1px solid #d9dfd0;border-radius:7px;padding:12px;color:#657063;font-size:12px;line-height:1.4}.room-assistant-steps button span{font-size:10px;letter-spacing:.8px}.room-assistant-steps button[aria-current=step]{background:var(--forest,#1b3028);border-color:var(--forest,#1b3028);color:var(--cream,#fcf9f3)}.room-assistant-pane,.room-assistant-result{max-width:780px;margin:0 auto}.room-assistant-section-head{margin-bottom:17px}.room-assistant-section-head h3{font:31px/1.15 var(--serif,Georgia,serif);letter-spacing:-.5px;margin:8px 0 0}.room-assistant-reference{min-height:180px;background:#e9ede2;border:1px solid #d1d9c6;border-radius:9px;overflow:hidden;display:grid;place-items:center}.room-assistant-reference img{width:100%;height: min(43dvh,480px);object-fit:contain;display:block}.room-assistant-reference p{font-size:14px;line-height:1.7;padding:34px;text-align:center;max-width:480px}.room-assistant-product-reference{background:#fffef8}.room-assistant-product-reference img{height:min(37dvh,380px)}.room-assistant-note{font-size:13px;line-height:1.7;margin:13px 0;color:var(--forest,#1b3028)}.room-assistant-help{font-size:11px;line-height:1.75;color:var(--muted,#657063);margin:13px 0}.room-assistant-upload{width:100%;justify-content:center;position:relative;cursor:pointer;min-height:49px;font-size:13px;line-height:1.5;white-space:normal;text-align:center}.room-assistant-upload input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.room-assistant-upload:has(input:focus-visible){outline:3px solid #a17e46;outline-offset:3px}.room-assistant-upload:has(input:disabled){opacity:.55;cursor:wait}.room-assistant-text{display:block;min-height:44px;border:0;background:none;font:inherit;font-size:12px;line-height:1.6;color:var(--forest,#1b3028);text-decoration:underline;text-underline-offset:4px;padding:11px 0;text-align:left}.room-assistant-selection{margin:22px 0 12px;border-block:1px solid #d4dac9;padding:18px 0}.room-assistant-selection h4{font:24px/1.2 var(--serif,Georgia,serif);margin:7px 0 14px}.room-assistant-selection dl{display:grid;grid-template-columns:1fr 1fr;column-gap:22px;row-gap:8px;font-size:12px;line-height:1.6;margin:0}.room-assistant-selection dt{color:var(--muted,#657063)}.room-assistant-selection dd{margin:0;text-align:right;overflow-wrap:anywhere}.room-assistant-input-pair{display:grid;grid-template-columns:1fr 26px 1fr;gap:12px;align-items:center}.room-assistant-input-pair>span{text-align:center;font:28px/1 var(--serif,Georgia,serif);color:#9b774b}.room-assistant-input-pair figure{margin:0;min-width:0}.room-assistant-input-pair img{display:block;width:100%;height:185px;object-fit:contain;background:#e9ede2;border:1px solid #d4dcc9;border-radius:7px}.room-assistant-input-pair figcaption{font-size:11px;line-height:1.5;margin-top:8px;color:var(--muted,#657063)}.room-assistant-access{padding:15px 17px;border:1px solid #afbea5;background:#edf2e7;border-radius:8px;margin:19px 0}.room-assistant-access p{font-size:13px;line-height:1.7;margin:0 0 12px}.room-assistant-access .button{width:100%;font-size:13px;min-height:48px;justify-content:center;white-space:normal;text-align:center}.room-assistant-consent{display:flex;align-items:flex-start;gap:12px;box-sizing:border-box;min-height:60px;padding:15px;border:1px solid #b7c3ae;border-radius:9px;background:#fffef8;font-size:13px;line-height:1.6;margin:15px 0 0;cursor:pointer;touch-action:manipulation}.room-assistant-consent input{appearance:auto;-webkit-appearance:checkbox;flex:0 0 24px;width:24px;height:24px;margin:1px 0 0;accent-color:var(--forest,#1b3028);cursor:inherit}.room-assistant-consent:has(input:checked){border-color:var(--forest,#1b3028);background:#e9efe3}.room-assistant-consent:has(input:focus-visible){outline:3px solid #a17e46;outline-offset:3px}.room-assistant-consent:has(input:disabled){cursor:default}.room-assistant-compare-tabs{display:flex;gap:8px;margin:0 0 12px}.room-assistant-compare-tabs button{flex:1;min-height:45px;padding:10px;border:1px solid #bac8b0;border-radius:5px;background:#fffef8;font-size:13px;color:var(--forest,#1b3028)}.room-assistant-compare-tabs button[aria-pressed=true]{background:var(--forest,#1b3028);color:#fcf9f3;border-color:var(--forest,#1b3028)}.room-assistant-result-reference{background:#e9ede2}.room-assistant-result-reference img{height:min(52dvh,560px)}.room-assistant-result-actions{display:flex;gap:9px;flex-wrap:wrap;margin:18px 0}.room-assistant-result-actions>.button{flex:1;min-width:190px;min-height:49px;justify-content:center;white-space:normal;text-align:center;font-size:13px}.room-assistant-footer{position:sticky;bottom:0;z-index:8;padding:15px 0 max(16px,env(safe-area-inset-bottom));background:var(--cream,#fcf9f3);border-top:1px solid #c8d2bc;box-shadow:0 -12px 25px #fcf9f3ed;margin-top:24px}.room-assistant-footer>p{font-size:12px;line-height:1.7;color:var(--forest,#1b3028);margin:0 0 10px}.room-assistant-footer>p:empty{display:none}.room-assistant-footer>div{display:flex;gap:9px}.room-assistant-footer .button{min-height:50px;justify-content:center;font-size:13px;line-height:1.5;white-space:normal;text-align:center}#room-assistant-next,#room-assistant-generate{flex:1}.room-assistant-access[data-state=checking]{border-color:#c7cebd;background:#f0f2e9}.room-assistant-access[data-state=exhausted]{border-color:#bca986;background:#f3eee3}.room-assistant-access[data-state=exhausted] p{color:var(--forest,#1b3028)}.room-assistant-action-note{font-size:12px;line-height:1.55;margin:0 0 9px;color:var(--forest,#1b3028)}.room-assistant-action-note:empty,.room-assistant-help:empty,.room-assistant-note:empty{display:none}.room-assistant-dialog [hidden]{display:none!important}.room-assistant-dialog :focus-visible{outline:3px solid #a17e46;outline-offset:3px}.room-assistant-dialog button:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:650px){.room-assistant-dialog{width:calc(100vw - 16px);max-height:96dvh;padding:20px 17px 0;border-radius:10px}.room-assistant-heading{gap:12px}.room-assistant-heading h2{font-size:26px;letter-spacing:-.4px;margin-top:6px}.room-assistant-heading .eyebrow{font-size:8px;letter-spacing:1.4px}.room-assistant-heading .editor-close{min-width:42px;min-height:42px}.room-assistant-intro{font-size:12px;line-height:1.6;margin:11px 0 14px}.room-assistant-steps{gap:5px;margin-bottom:16px;padding-bottom:12px}.room-assistant-steps button{flex-direction:column;align-items:start;justify-content:center;gap:2px;padding:8px 7px;font-size:11px;min-height:48px}.room-assistant-section-head{margin-bottom:13px}.room-assistant-section-head h3{font-size:25px;margin-top:6px}.room-assistant-reference img{height:33dvh}.room-assistant-product-reference img{height:29dvh}.room-assistant-input-pair{gap:7px;grid-template-columns:1fr 19px 1fr}.room-assistant-input-pair img{height:140px}.room-assistant-selection dl{font-size:11px;column-gap:12px}.room-assistant-selection dd{max-width:180px;justify-self:end}.room-assistant-access{padding:13px}.room-assistant-access p{font-size:12px}.room-assistant-consent{min-height:60px;padding:13px 12px;font-size:12px;line-height:1.6;gap:10px}.room-assistant-result-reference img{height:44dvh}.room-assistant-footer{margin-top:16px;padding-top:12px}.room-assistant-footer .button{padding-inline:12px;font-size:12px;min-height:50px}.room-assistant-footer .room-assistant-action-note{font-size:12px;line-height:1.55;margin-bottom:9px}.room-assistant-result-actions>.button{min-width:100%;font-size:12px}.room-assistant-note{font-size:12px}}
@media(prefers-reduced-motion:reduce){.room-assistant-dialog *{animation:none!important;scroll-behavior:auto!important}}
/* Explicit, local photo framing: the complete incoming photo stays visible. */
.room-assistant-photo-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0}.room-assistant-photo-tools>.button{min-height:46px;font-size:12px;white-space:normal;justify-content:center}.room-assistant-crop-editor{border:1px solid #b6c5ab;background:#eef2e7;border-radius:10px;padding:16px;margin:14px 0 18px}.room-assistant-crop-editor>.room-assistant-note{margin-top:0}.room-assistant-crop-wrap{display:flex;justify-content:center;padding:8px 0}.room-assistant-crop-stage{position:relative;max-width:100%;line-height:0;overflow:hidden;background:#d7dfcd;border-radius:5px;user-select:none;-webkit-user-select:none}.room-assistant-crop-stage>img{display:block;width:100%;height:auto;max-width:100%;pointer-events:none}.room-assistant-crop-selection{position:absolute;box-sizing:border-box;border:2px solid #fffef8;box-shadow:0 0 0 2000px #10251d8c;cursor:move;touch-action:none;min-width:1px;min-height:1px}.room-assistant-dialog .room-assistant-crop-handle{position:absolute;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:0;background:transparent;touch-action:none;cursor:nwse-resize}.room-assistant-crop-handle:after{content:'';position:absolute;inset:6px;border:3px solid #fffef8;filter:drop-shadow(0 1px 3px #000a)}.room-assistant-crop-handle.nw{left:0;top:0}.room-assistant-crop-handle.ne{right:0;top:0;cursor:nesw-resize}.room-assistant-crop-handle.sw{left:0;bottom:0;cursor:nesw-resize}.room-assistant-crop-handle.se{right:0;bottom:0}.room-assistant-crop-handle.nw:after{border-right:0;border-bottom:0}.room-assistant-crop-handle.ne:after{border-left:0;border-bottom:0}.room-assistant-crop-handle.sw:after{border-right:0;border-top:0}.room-assistant-crop-handle.se:after{border-left:0;border-top:0}.room-assistant-crop-fine{margin:12px 0;font-size:12px;line-height:1.7}.room-assistant-crop-fine summary{cursor:pointer;min-height:44px;padding:10px 0;text-decoration:underline;text-underline-offset:3px}.room-assistant-crop-fine label{display:grid;grid-template-columns:60px 1fr;align-items:center;gap:10px;min-height:44px}.room-assistant-crop-fine input{width:100%;min-height:36px;accent-color:var(--forest,#1b3028);touch-action:pan-y}.room-assistant-crop-actions{display:flex;gap:9px;flex-wrap:wrap}.room-assistant-crop-actions .button{flex:1;min-height:48px;min-width:170px;font-size:12px;white-space:normal;text-align:center;justify-content:center}.room-assistant-input-pair .room-assistant-text{font-size:11px;padding-block:6px;min-height:40px}#room-assistant-result-enlarge{margin-left:auto;min-height:44px}.room-assistant-result-reference[data-expanded=true] img{height:min(76dvh,1000px);object-fit:contain;width:100%;max-height:none}.room-assistant-dialog:has(.room-assistant-result-reference[data-expanded=true]){width:min(1280px,calc(100vw - 16px))}.room-assistant-dialog:has(.room-assistant-result-reference[data-expanded=true]) .room-assistant-result{max-width:none}
@media(max-width:650px){.room-assistant-crop-editor{padding:12px}.room-assistant-photo-tools>.button{width:100%}.room-assistant-photo-tools{gap:0}.room-assistant-crop-actions .button{min-width:100%}.room-assistant-result-reference[data-expanded=true] img{height:76dvh}}
