dialog.rf-stylist-chat{width:min(40rem,calc(100% - 2rem));height:min(43rem,calc(100dvh - 3rem));max-width:100%;max-height:100dvh;padding:0;border:1px solid var(--line);border-radius:1.15rem;background:#fafaf6;color:var(--ink);box-shadow:0 1.1rem 4rem #1b2c2436;overflow:hidden}
.rf-stylist-chat::backdrop{background:#192b23a6}
.rf-stylist-chat [hidden]{display:none!important}
.rf-chat-shell{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.rf-chat-header{display:flex;align-items:center;justify-content:space-between;gap:.8rem;padding:1.15rem 1.4rem;border-bottom:1px solid var(--line);background:#fff}
.rf-chat-header h2{margin:0;font:500 clamp(1.75rem,4.5vw,2.25rem)/1.05 var(--serif);letter-spacing:-.035em}
.rf-chat-header>div{display:flex;align-items:center;gap:.6rem}
.rf-chat-close,.rf-chat-clear{min-height:2.75rem;color:var(--forest);cursor:pointer}
.rf-chat-close{width:2.75rem;display:grid;place-items:center;border:1px solid #cdd4c9;border-radius:50%;font:normal 1.65rem/1 var(--sans)}
.rf-chat-clear{font-size:.82rem;text-decoration:underline;text-underline-offset:3px}
.rf-chat-body{overflow-y:auto;overscroll-behavior:contain;padding:1.15rem 1.4rem;scrollbar-gutter:stable}
.rf-chat-intro{display:grid;align-content:center;min-height:100%;gap:1.1rem;padding:1rem 0}
.rf-chat-intro h3{font:500 clamp(1.9rem,5vw,2.75rem)/1.1 var(--serif);letter-spacing:-.035em;max-width:13em}
.rf-chat-prompts{display:flex;flex-wrap:wrap;gap:.5rem}
.rf-chat-prompts button,.rf-chat-look{min-height:2.75rem;border:1px solid #bfcabb;background:#fff;border-radius:.7rem;padding:.45rem .8rem;font-size:.86rem;font-weight:600;color:#294333;line-height:1.3}
.rf-chat-prompts button:hover,.rf-chat-look:hover,.rf-chat-close:hover{background:#eef2e8}
.rf-chat-log{display:flex;flex-direction:column;align-items:flex-start;gap:.85rem;overflow-wrap:anywhere}
.rf-chat-bubble{max-width:94%;border:1px solid #e1e5da;border-radius:.8rem .8rem .8rem .2rem;background:#fff;padding:.75rem .95rem}
.rf-chat-user{align-self:flex-end;background:#e8efdf;border-color:#d8e4cc;border-radius:.8rem .8rem .2rem .8rem}
.rf-chat-byline{display:block;color:#48614d;font-size:.74rem;font-weight:700;margin-bottom:.2rem}
.rf-chat-message,.rf-chat-sources p{white-space:pre-line;line-height:1.53;margin:0}
.rf-chat-look{margin-top:.6rem}
.rf-chat-pieces{display:flex;flex-wrap:wrap;gap:.3rem;margin:.65rem 0 0;padding:0;list-style:none}
.rf-chat-pieces li{background:#f0f3ea;border-radius:.4rem;padding:.2rem .45rem;font-size:.74rem;color:#405342}
.rf-chat-sources{border-top:1px solid var(--line);padding-top:.65rem;margin-top:.75rem}
.rf-chat-sources>strong{display:block;font-size:.82rem;margin-bottom:.35rem}
.rf-chat-cite{margin-inline-start:.16rem;font-size:.8em;vertical-align:super}
.rf-chat-sources a{color:#265a3f;text-underline-offset:3px}
.rf-chat-sources ul{display:grid;gap:.35rem;margin:.45rem 0 0;padding:0;list-style:none;font-size:.81rem}
.rf-chat-form{border-top:1px solid var(--line);background:white;padding:.8rem 1.4rem 1rem}
.rf-chat-mode{padding:0;border:0;margin:0;display:flex;gap:1rem;align-items:center;flex-wrap:wrap}
.rf-chat-mode label,.rf-chat-search label{display:flex;gap:.42rem;align-items:center;cursor:pointer;font-weight:600;font-size:.85rem;min-height:2rem}
.rf-chat-form input[type=radio],.rf-chat-form input[type=checkbox]{width:1rem;height:1rem;accent-color:var(--forest);flex:none;margin:0}
.rf-chat-mode label:has(:disabled){color:#687368}
.rf-chat-hint{font-size:.79rem;line-height:1.4;color:#536054}
.rf-chat-search{margin:.4rem 0;padding:.25rem .7rem;background:#f2f5ec;border-radius:.55rem}
.rf-chat-search select{max-width:12rem;margin:.2rem 0;padding:.28rem .5rem;border-radius:.4rem;border:1px solid #9ca999;background:white}
.rf-chat-entry{display:flex;align-items:flex-end;gap:.5rem;margin-top:.65rem}
.rf-chat-entry textarea{flex:1;min-width:0;min-height:3rem;max-height:8rem;resize:vertical;padding:.55rem .7rem;border:1px solid #aab5a6;border-radius:.6rem;background:white;line-height:1.35}
.rf-chat-entry button{min-height:2.9rem;flex:none;justify-content:center}
.rf-chat-status{font-size:.8rem;color:#435546;line-height:1.4;margin:.45rem 0 0}
.rf-chat-status:empty{margin:0}
.rf-chat-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:540px){dialog.rf-stylist-chat{inset:0;width:100%;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0}.rf-chat-header,.rf-chat-body{padding:1rem}.rf-chat-form{padding:.65rem 1rem max(.8rem,env(safe-area-inset-bottom))}.rf-chat-bubble{max-width:96%}.rf-chat-mode label,.rf-chat-search label{min-height:2.6rem}.rf-chat-entry textarea{font-size:16px}.rf-chat-entry .btn{padding:.65rem .9rem}}
@media(max-height:510px){.rf-chat-header{padding:.35rem .75rem}.rf-chat-header h2{font-size:1.55rem}.rf-chat-body{padding:.5rem .75rem}.rf-chat-form{padding:.35rem .75rem}.rf-chat-search{margin:0}.rf-chat-mode label,.rf-chat-search label{min-height:1.7rem}.rf-chat-intro{min-height:0;padding:.4rem 0}.rf-chat-intro h3{font-size:1.45rem}}
