.chat-launch{display:inline-flex;align-items:center;gap:.52rem;min-height:44px;padding:.56rem .88rem;border:1px solid #45627b;border-radius:2rem;background:#183b5b;color:#fff;box-shadow:0 3px 13px #10273c33;font:inherit;font-size:.88rem;font-weight:650;cursor:pointer}
.chat-mini-label{display:none}
.chat-launch:hover,.chat-launch:focus-visible{background:#245074}
.chat-launch b,.chat-new{border-radius:1rem;background:#ffddb9;color:#422b17;padding:.12rem .43rem;font-size:.75rem;font-weight:700}
#salon-chat-dialog{position:fixed;inset:auto max(.85rem,env(safe-area-inset-right)) max(.85rem,env(safe-area-inset-bottom)) auto;margin:0;padding:0;width:min(25rem,calc(100vw - 1.7rem));max-width:100%;max-height:calc(100dvh - 1.7rem);overflow:auto;border:1px solid #bfccd6;border-radius:16px;background:#fff;color:#19344b;box-shadow:0 12px 48px #10273c38}
#salon-chat-dialog::backdrop{background:#10273c45}
.chat-window{display:flex;flex-direction:column}
.chat-head{position:static;display:flex;align-items:center;justify-content:space-between;gap:.6rem;padding:.67rem .9rem .67rem 1.08rem;background:#183b5b;color:white;border:0}
.chat-head h2{margin:0;color:inherit;font-size:1.14rem;letter-spacing:normal}
.chat-head button,.chat-topic button{flex:0 0 auto;display:grid;place-items:center;background:transparent;border:0;color:inherit;font:inherit;font-size:1.45rem;line-height:1;width:40px;height:40px;border-radius:50%}
.chat-head button:hover,.chat-head button:focus-visible{background:#345674}
.chat-window [data-chat-panel],.chat-conversation{min-width:0}
.chat-window [data-chat-panel]{padding:.9rem}
.chat-log{display:flex;flex-direction:column;align-items:flex-start;gap:.55rem;min-height:7.5rem;height:clamp(8rem,32dvh,20rem);overflow:auto;overscroll-behavior:contain;padding:.5rem .25rem;scrollbar-width:thin}
.chat-message{max-width:88%;padding:.6rem .75rem;border-radius:.75rem .75rem .75rem .18rem;background:#edf1f4;color:#183247;overflow-wrap:anywhere}
.chat-message.chat-mine{align-self:flex-end;border-radius:.75rem .75rem .18rem .75rem;background:#dcecf5}
.chat-message>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:.22rem .7rem}
.chat-message strong,.chat-message time,.chat-message small{font-size:.74rem}
.chat-message time{color:#4a5b69}
.chat-message small{display:block;margin-top:.3rem;color:#40596b}
.chat-message p{margin:.22rem 0 0;white-space:pre-wrap;font-size:.95rem;line-height:1.45}
.chat-empty,.chat-feedback,.chat-send small,.chat-privacy{color:#526371;font-size:.85rem;line-height:1.4}
.chat-empty{margin:.4rem .25rem}
.chat-form{display:grid;gap:.5rem;margin:.45rem 0 0;padding:.65rem 0 0;border-top:1px solid #dce4ea}
.chat-form label{display:grid;gap:.3rem;margin:0;color:#243d50;font-weight:600;font-size:.84rem}
.chat-form textarea{display:block;box-sizing:border-box;width:100%;min-height:3.25rem;max-height:7.5rem;margin:0;padding:.48rem .65rem;border:1px solid #9eafbd;border-radius:8px;background:#fff;color:#152e45;font:inherit;font-size:1rem;resize:vertical}
.chat-form textarea:focus-visible,.chat-thread:focus-visible,.chat-launch:focus-visible,.chat-head button:focus-visible{outline:3px solid #c68148;outline-offset:2px}
.chat-send,.chat-topic{display:flex;align-items:center;justify-content:space-between;gap:.6rem}
.chat-topic{padding:.23rem .3rem .23rem .64rem;border-radius:.48rem;background:#f1f4f6;font-size:.83rem;overflow-wrap:anywhere}
.chat-topic button{width:32px;height:32px}
.chat-send .btn{margin:0;min-height:42px}
.chat-feedback{margin:.3rem 0}
.chat-feedback:empty,.chat-form [hidden],.chat-launch [hidden],.chat-desk [hidden],.chat-window [hidden]{display:none}
.chat-privacy{justify-self:start;font-size:.74rem;text-decoration:underline;text-underline-offset:.16em}
.chat-columns{display:grid;grid-template-columns:minmax(12rem,.8fr) minmax(0,1.6fr);gap:1.1rem}
.chat-list{display:grid;align-content:start;gap:.35rem;max-height:34rem;overflow:auto}
.chat-thread{display:grid;grid-template-columns:1fr auto;text-align:left;gap:.2rem .35rem;padding:.65rem .7rem;border:1px solid #d5dfe5;border-radius:.6rem;background:white;color:#19344b;font:inherit;cursor:pointer}
.chat-thread[aria-pressed="true"]{border-color:#446783;background:#eff5f9;box-shadow:inset 3px 0 #305671}
.chat-thread strong,.chat-thread time{font-size:.78rem}
.chat-thread time{color:#526371}
.chat-thread span:not(.chat-new),.chat-thread small{grid-column:1 / -1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.84rem}
.chat-thread .chat-new{justify-self:start}
.chat-conversation h3{margin:.25rem 0;font-size:1rem}
.chat-conversation .chat-log{height:clamp(13rem,42dvh,32rem)}
@media(max-width:700px){
 .chat-columns{grid-template-columns:minmax(0,1fr)}
 .chat-list{max-height:16rem}
 .chat-launch{min-height:44px}
 .chat-launch [data-chat-launch-label]{display:none}
 .chat-launch .chat-mini-label{display:inline}
 #salon-chat-dialog{inset:auto .4rem max(.4rem,env(safe-area-inset-bottom)) auto;width:min(25rem,calc(100vw - .8rem));max-height:calc(100dvh - .8rem)}
}
@media(max-width:600px){
 body:has(.traffic-choice:not([hidden])) .salon-actions{bottom:calc(var(--chat-consent-height,9rem) + .9rem + env(safe-area-inset-bottom))}
}


.chat-notices{margin:.5rem 0 1rem;border:1px solid #d6e0e7;border-radius:.6rem;padding:.55rem .75rem}
.chat-notices summary{cursor:pointer;font-weight:600}
.chat-notices [data-notice-controls]>p{font-size:.9rem}
.chat-channel{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.65rem;padding:.48rem 0;border-top:1px solid #e4eaf0}
.chat-channel div,.chat-senders form,.chat-senders [data-sender-fields],.chat-notices label{display:grid;gap:.3rem}
.chat-notices form{margin:0}.chat-channel form{display:flex;align-items:end;flex-wrap:wrap;gap:.5rem}
.chat-channel small,.chat-senders small{font-size:.8rem;color:#536777}.chat-senders{margin-top:.7rem}
.chat-senders form{max-width:30rem;margin-top:.65rem}.chat-senders button{justify-self:start}
.chat-notices input,.chat-notices select{width:100%;max-width:30rem;padding:.46rem;border:1px solid #a6b8c4;border-radius:6px;font:inherit}
