*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}body{background:var(--off-white, #F2EFE9);min-height:100vh;font-family:Raleway,sans-serif;display:flex;flex-direction:column}.page-topbar{background:var(--black, #1A1714);color:var(--white, #FAFAF8);padding:0 2rem;height:62px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:200;flex-shrink:0}.page-topbar-left{display:flex;align-items:center;gap:2rem}.topbar-logo{font-family:Cormorant Garamond,serif;font-size:1.5rem;font-weight:400;letter-spacing:.25em;color:var(--gold, #C9A84C);text-decoration:none}.topbar-section{font-family:Raleway,sans-serif;font-size:.65rem;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:#fafaf873}.page-topbar-right{display:flex;align-items:center;gap:.85rem}.topbar-user{font-size:.78rem;color:#fafaf899}.topbar-user strong{color:var(--white, #FAFAF8)}.topbar-link{font-size:.63rem;font-weight:600;letter-spacing:.15em;text-transform:uppercase;padding:.3rem .85rem;border:1px solid rgba(250,250,248,.2);border-radius:100px;color:#fafaf899;background:transparent;cursor:pointer;transition:border-color .2s,color .2s;font-family:Raleway,sans-serif;text-decoration:none;display:inline-flex;align-items:center;gap:.35rem}.topbar-link:hover{border-color:var(--gold, #C9A84C);color:var(--gold, #C9A84C)}.realtime-pill{display:inline-flex;align-items:center;gap:.4rem;font-size:.62rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;padding:.28rem .75rem;border-radius:100px;border:1px solid rgba(250,250,248,.15);color:#fafaf880;transition:all .3s}.realtime-pill.connected{border-color:#4ade8066;color:#4ade80}.realtime-pill.error{border-color:#ef444466;color:#f87171}.realtime-dot{width:6px;height:6px;border-radius:50%;background:currentColor}.realtime-pill.connected .realtime-dot{animation:pulse-rt 2s ease infinite}@keyframes pulse-rt{0%,to{opacity:1}50%{opacity:.35}}.access-denied{display:none;flex-direction:column;align-items:center;justify-content:center;gap:1.25rem;min-height:70vh;text-align:center}.access-denied svg{color:#c8baa8}.access-denied h2{font-family:Cormorant Garamond,serif;font-size:2rem;font-weight:400;color:#1a1714}.access-denied p{font-size:.88rem;color:#8c8278}.chat-dashboard{display:none;flex:1;display:grid;grid-template-columns:300px 1fr;height:calc(100vh - 62px);overflow:hidden}.conv-panel{background:#fff;border-right:1px solid var(--gray-pale, #EDE9E2);display:flex;flex-direction:column;overflow:hidden}.conv-panel-header{padding:1.25rem 1.5rem 1rem;border-bottom:1px solid var(--gray-pale, #EDE9E2);flex-shrink:0}.conv-panel-header h2{font-family:Cormorant Garamond,serif;font-size:1.35rem;font-weight:400;color:#1a1714;margin-bottom:.2rem}.conv-count{font-size:.68rem;color:#8c8278;letter-spacing:.08em}.conv-list{flex:1;overflow-y:auto;padding:.5rem 0;scrollbar-width:thin;scrollbar-color:#E8DFD0 transparent}.conv-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;padding:3rem 1rem;color:#8c8278;text-align:center;height:100%}.conv-empty svg{color:#d8d3cc}.conv-empty p{font-size:.82rem;line-height:1.6}.conv-item{display:flex;align-items:flex-start;gap:.85rem;padding:.9rem 1.5rem;cursor:pointer;border-left:3px solid transparent;transition:background .15s,border-color .15s;position:relative}.conv-item:hover{background:#fafaf8}.conv-item.active{background:var(--gold-pale, #F5EDD8);border-left-color:var(--gold, #C9A84C)}.conv-item.unread{background:#fffbf3}.conv-avatar{width:36px;height:36px;border-radius:50%;background:linear-gradient(135deg,var(--gold, #C9A84C),#9E7A2A);display:flex;align-items:center;justify-content:center;font-family:Cormorant Garamond,serif;font-size:1rem;color:#fff;flex-shrink:0;font-weight:500}.conv-meta{flex:1;min-width:0}.conv-name{font-size:.82rem;font-weight:600;color:#1a1714;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:.15rem}.conv-preview{font-size:.72rem;color:#8c8278;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.4}.conv-time{font-size:.62rem;color:#c8baa8;letter-spacing:.04em;flex-shrink:0;margin-top:.1rem}.conv-unread-dot{position:absolute;top:.9rem;right:1.25rem;width:8px;height:8px;border-radius:50%;background:var(--gold, #C9A84C)}.thread-panel{display:flex;flex-direction:column;overflow:hidden;background:var(--off-white, #F2EFE9)}.thread-header{background:#fff;border-bottom:1px solid var(--gray-pale, #EDE9E2);padding:1rem 1.75rem;display:flex;align-items:center;gap:1rem;flex-shrink:0}.thread-header-avatar{width:38px;height:38px;border-radius:50%;background:linear-gradient(135deg,var(--gold, #C9A84C),#9E7A2A);display:flex;align-items:center;justify-content:center;font-family:Cormorant Garamond,serif;font-size:1.05rem;color:#fff;font-weight:500;flex-shrink:0}.thread-header-info{flex:1}.thread-header-name{font-family:Cormorant Garamond,serif;font-size:1.15rem;font-weight:400;color:#1a1714}.thread-header-sub{font-size:.68rem;color:#8c8278;letter-spacing:.06em;margin-top:.1rem}.thread-header-actions{display:flex;gap:.5rem}.thread-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;color:#8c8278;text-align:center;padding:2rem}.thread-empty svg{color:#d8d3cc}.thread-empty h3{font-family:Cormorant Garamond,serif;font-size:1.5rem;font-weight:300;color:#1a1714}.thread-empty p{font-size:.85rem;line-height:1.7;max-width:320px}.thread-messages{flex:1;overflow-y:auto;padding:1.5rem 1.75rem;display:flex;flex-direction:column;gap:.75rem;scrollbar-width:thin;scrollbar-color:#E8DFD0 transparent}.msg-date-sep{display:flex;align-items:center;gap:.75rem;color:#8c8278;font-size:.65rem;letter-spacing:.1em;text-transform:uppercase;margin:.5rem 0}.msg-date-sep:before,.msg-date-sep:after{content:"";flex:1;height:1px;background:#e8dfd0}.msg-row{display:flex;flex-direction:column;max-width:72%;gap:.25rem}.msg-row.user{align-self:flex-start}.msg-row.agent{align-self:flex-end}.msg-bubble{padding:.7rem 1rem;border-radius:12px;font-size:.84rem;line-height:1.6;word-break:break-word}.msg-row.user .msg-bubble{background:#fff;border:1px solid #EDE9E2;border-radius:0 12px 12px;color:#1a1714}.msg-row.agent .msg-bubble{background:var(--gold, #C9A84C);color:#fff;border-radius:12px 12px 0}.msg-meta{font-size:.62rem;color:#8c8278;letter-spacing:.04em;padding:0 .25rem}.msg-row.agent .msg-meta{text-align:right;color:#6b6560}.typing-row{display:flex;align-items:center;gap:.4rem;padding:.5rem 0;color:#8c8278;font-size:.75rem;font-style:italic}.typing-dots{display:flex;gap:3px}.typing-dots span{width:5px;height:5px;border-radius:50%;background:#c8baa8;animation:tdot .9s ease-in-out infinite}.typing-dots span:nth-child(2){animation-delay:.15s}.typing-dots span:nth-child(3){animation-delay:.3s}@keyframes tdot{0%,to{transform:translateY(0);opacity:.4}50%{transform:translateY(-4px);opacity:1}}.reply-bar{background:#fff;border-top:1px solid var(--gray-pale, #EDE9E2);padding:1rem 1.75rem;display:flex;align-items:flex-end;gap:.75rem;flex-shrink:0}.reply-bar textarea{flex:1;border:1px solid #E8DFD0;border-radius:10px;padding:.75rem 1rem;font-family:Raleway,sans-serif;font-size:.84rem;color:#1a1714;resize:none;min-height:48px;max-height:140px;outline:none;transition:border-color .2s;line-height:1.5;overflow-y:auto;scrollbar-width:thin}.reply-bar textarea:focus{border-color:var(--gold, #C9A84C)}.reply-bar textarea::placeholder{color:#c8baa8}.reply-bar textarea:disabled{background:#f2efe9;cursor:not-allowed}.send-btn{width:44px;height:44px;border-radius:50%;background:var(--gold, #C9A84C);color:#fff;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background .2s,transform .15s}.send-btn:hover:not(:disabled){background:#9e7a2a;transform:scale(1.05)}.send-btn:disabled{background:#e8dfd0;cursor:not-allowed}.reply-hint{font-size:.68rem;color:#8c8278;letter-spacing:.04em;margin-top:.4rem;text-align:center}.toast{position:fixed;bottom:2rem;left:50%;transform:translate(-50%) translateY(12px);background:#1a1714;color:#fafaf8;padding:.7rem 1.4rem;border-radius:100px;font-size:.8rem;letter-spacing:.05em;z-index:9000;opacity:0;transition:opacity .3s,transform .3s;white-space:nowrap;box-shadow:0 4px 20px #0003}.toast.show{opacity:1;transform:translate(-50%) translateY(0)}.toast.error{background:#c0392b}@media(max-width:768px){.chat-dashboard{grid-template-columns:1fr}.conv-panel{display:none}.conv-panel.mobile-open{display:flex;position:fixed;inset:62px 0 0;z-index:100}}
