.chatnav{border:1px solid var(--line);background:#fff;color:var(--green);border-radius:24px;padding:10px 15px;font-weight:700;font-size:13px}.chatbadge{display:inline-grid;place-items:center;min-width:18px;height:18px;background:var(--orange);color:#192d23;border-radius:50%;font-size:10px;margin-left:5px}.chatbadge:empty{display:none}.header-right{display:flex;align-items:center;gap:12px}.chat-dialog{width:min(960px,96vw);padding:0;max-height:92dvh;overflow:hidden}.chat-top{padding:18px 22px;background:var(--green);color:white;display:flex;justify-content:space-between;align-items:center}.chat-top h2{margin:0;font-size:22px;letter-spacing:-.5px}.chat-top p{font-size:12px;margin:4px 0 0;color:#cce1cd}.chat-top .close{float:none;background:#ffffff20;color:white}.chat-notice{padding:11px 20px;background:#fff4dd;font-size:12px;line-height:1.5;color:#645333}.chat-body{display:grid;grid-template-columns:245px 1fr;height:540px;max-height:65dvh}.chat-sidebar{border-right:1px solid var(--line);background:#fafbf7;padding:14px;overflow:auto}.chat-modes{display:flex;gap:5px;padding:4px;background:#edf1e6;border-radius:9px;margin-bottom:14px}.chat-modes button{border:0;background:transparent;flex:1;border-radius:6px;padding:9px 3px;font-size:12px;color:var(--muted)}.chat-modes button[aria-pressed=true]{background:white;color:var(--green);box-shadow:0 1px 4px #0001;font-weight:700}.chat-side-title{font-size:10px;letter-spacing:1.5px;color:var(--muted);text-transform:uppercase;margin:16px 4px 9px}.thread{width:100%;display:flex;gap:10px;align-items:center;text-align:left;background:transparent;border:1px solid transparent;border-radius:11px;padding:12px 8px;color:var(--ink);margin-bottom:5px}.thread.selected{background:#eaf2de;border-color:#d5e3c7}.avatar{display:grid;place-items:center;width:34px;height:34px;min-width:34px;border-radius:11px;background:var(--green);color:var(--lime);font:800 13px Manrope}.thread-details{min-width:0;flex:1}.thread-details b{display:block;font-size:13px}.thread-details small{display:block;font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:140px;margin-top:4px}.chat-main{display:flex;flex-direction:column;min-width:0;min-height:0;background:#f6f7f0}.chat-shop-head{padding:14px 18px;display:flex;gap:10px;align-items:center;background:#fff;border-bottom:1px solid var(--line)}.chat-shop-head b{font-size:14px}.chat-shop-head small{font-size:11px;display:block;color:var(--muted);margin-top:4px}.chat-history{flex:1;min-height:0;overflow:auto;padding:18px;display:flex;flex-direction:column;gap:11px}.chat-welcome{background:#fff;border:1px dashed #d0dac8;padding:16px;border-radius:14px;text-align:center;color:var(--muted);font-size:12px;line-height:1.7;margin:auto}.chat-welcome b{display:block;color:var(--green);font-size:14px;margin-bottom:6px}.bubble{background:white;border:1px solid var(--line);padding:11px 13px;border-radius:14px 14px 14px 3px;max-width:86%;align-self:flex-start;overflow-wrap:anywhere}.bubble.mine{background:#e0efcd;border-color:#d4e4bd;border-radius:14px 14px 3px 14px;align-self:flex-end}.bubble-author{font-size:10px;font-weight:700;color:var(--green);margin-bottom:5px}.bubble-text{font-size:13px;line-height:1.6;white-space:pre-wrap}.bubble-meta{font-size:9px;color:var(--muted);margin-top:6px;text-align:right}.bubble img{display:block;width:auto;max-width:100%;max-height:230px;border-radius:8px;margin:6px 0}.chat-composer{background:#fff;padding:12px 15px;border-top:1px solid var(--line)}.chat-compose-row{display:flex;align-items:end;gap:8px}.chat-compose-row textarea{flex:1;min-width:0;resize:none;border:1px solid var(--line);border-radius:11px;padding:11px 12px;font:13px 'DM Sans',sans-serif;color:var(--ink);line-height:1.5;max-height:110px}.photo-button{border:1px solid var(--line);background:white;border-radius:11px;min-width:43px;height:43px;color:var(--green);display:grid;place-items:center;font-size:21px;cursor:pointer}.send-button{height:43px;padding:0 15px;border:0;border-radius:11px;background:var(--green);color:white;font-weight:700}.send-button:disabled{opacity:.5;cursor:wait}.compose-note{font-size:10px;color:var(--muted);margin:8px 0 0}.photo-preview{display:flex;align-items:center;gap:10px;padding-bottom:10px}.photo-preview[hidden]{display:none}.photo-preview img{height:64px;max-width:100px;border-radius:8px;object-fit:cover;margin:0}.photo-preview button{border:0;background:var(--bg);padding:8px;border-radius:8px;color:var(--ink);font-size:11px}.chat-mode-caption{font-size:10px;color:var(--muted);line-height:1.6}.chat-compose-label{display:block;font-size:10px;font-weight:700;color:var(--green);margin-bottom:7px}.chat-mobile-select{display:none}button:focus-visible,textarea:focus-visible{outline:3px solid var(--orange);outline-offset:3px}@media(max-width:680px){.chatnav{font-size:11px;padding:9px}.header-right{gap:6px}.header-right .demo{display:none}.chat-dialog{width:96vw;max-height:95dvh}.chat-top{padding:15px}.chat-top h2{font-size:19px}.chat-notice{padding:9px 15px;font-size:11px}.chat-body{display:flex;flex-direction:column;height:68dvh;max-height:none}.chat-sidebar{border-right:0;border-bottom:1px solid var(--line);padding:9px 12px;flex-shrink:0;overflow:visible}.chat-modes{margin-bottom:7px}.chat-side-title,.chat-mode-caption,.chat-thread-list{display:none}.chat-mobile-select{display:block;width:100%;font-size:12px;padding:8px;background:#fff}.chat-main{flex:1;min-height:0}.chat-shop-head{padding:10px 13px}.chat-history{padding:13px}.chat-composer{padding:10px}.chat-compose-row{gap:5px}.send-button{padding:0 10px;font-size:12px}.bubble{max-width:91%}.chat-top p{font-size:11px}}
