.chat-site{height:100dvh;min-height:0;overflow:hidden}.chat-site>.page-content{min-height:0;display:flex}@media (min-width:1024px){.chat-site{height:111.111dvh}}.chat-app{--chat-soft:#f3f2f0;--chat-hover:#f8f7f5;--chat-danger:#c4291d;flex-direction:column;min-height:0;padding-block:8px 24px;display:flex}.chat-app>.authenticated-content{flex:1;min-height:0;display:flex}.chat-layout{border:1px solid var(--line);background:#fff;border-radius:20px;flex:1;grid-template-columns:320px minmax(0,1fr);min-height:0;display:grid;overflow:hidden;box-shadow:0 1px 2px #0000000a,0 24px 48px -32px #0003}.chat-glyph{flex-shrink:0;display:block}.chat-sidebar{border-right:1px solid var(--line);background:#fcfcfb;flex-direction:column;min-height:0;display:flex}.chat-sidebar-heading{justify-content:space-between;align-items:baseline;gap:12px;padding:22px 20px 12px;display:flex}.chat-sidebar-heading h1{letter-spacing:-.01em;margin:0;font-size:20px;font-weight:600}.chat-sidebar-heading a{color:var(--muted);font-size:12px}.chat-sidebar-heading a:hover{color:var(--ink)}.chat-sidebar .conversation-list{overscroll-behavior:contain;flex:1;min-height:0;padding:0 10px 12px;overflow-y:auto}.chat-sidebar .conversation-row{transition:background-color .16s var(--motion-ease);border:0;border-radius:14px;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px;display:grid;position:relative}.chat-sidebar .conversation-row:hover{background:var(--chat-hover)}.chat-sidebar .conversation-row>:not(.conversation-active){z-index:1;position:relative}.conversation-active{border-radius:inherit;background:var(--chat-soft);position:absolute;inset:0}.chat-sidebar .conversation-copy>div{justify-content:space-between;align-items:baseline;gap:8px;display:flex}.chat-sidebar .conversation-copy strong{text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:600;overflow:hidden}.chat-sidebar .conversation-copy time{flex-shrink:0;font-size:11px}.chat-sidebar .conversation-copy p{color:var(--muted);margin:2px 0 0;font-size:12px}.chat-sidebar .conversation-copy .hint{color:#4b4949;font-size:13px}.chat-sidebar .conversation-row[data-unread] .hint{color:var(--ink);font-weight:600}.chat-sidebar .conversation-meta img{border-radius:8px;width:40px;height:48px;display:block}.chat-sidebar .conversation-meta small{display:none}.chat-sidebar .unread-badge{text-align:center;min-width:18px;box-shadow:0 0 0 2px #fcfcfb}.chat-room{background:#fff;flex-direction:column;min-width:0;min-height:0;display:flex;position:relative}.chat-room button:focus-visible{outline:2px solid var(--ink);outline-offset:2px}.chat-heading{border-bottom:1px solid var(--line);align-items:center;gap:12px;min-height:72px;padding:12px 20px;display:flex}.chat-back{display:none}.chat-identity{flex:1;align-items:center;gap:12px;min-width:0;display:flex}.chat-identity-avatar{background:var(--chat-soft);border-radius:50%;flex-shrink:0;width:40px;height:40px;overflow:hidden}.chat-identity-avatar img{object-fit:cover;width:100%;height:100%;display:block}.chat-identity-copy{flex-direction:column;min-width:0;display:flex}.chat-identity-copy strong{text-overflow:ellipsis;white-space:nowrap;font-size:16px;font-weight:600;overflow:hidden}.chat-identity-copy small{color:var(--muted);font-size:12px}.chat-heading .safety-links{flex-shrink:0;gap:2px;margin-left:auto;display:flex}.chat-app .chat-heading .safety-links button{min-height:32px;color:var(--muted);cursor:pointer;transition:background-color .16s var(--motion-ease), color .16s var(--motion-ease);background:0 0;border:0;border-radius:999px;padding:6px 12px;font-size:13px;font-weight:400;text-decoration:none}.chat-app .chat-heading .safety-links button:hover{background:var(--chat-soft);color:var(--ink)}.chat-product{border:1px solid var(--line);border-radius:14px;align-items:center;gap:16px;margin:12px 20px 0;padding:8px 14px 8px 8px;display:flex}.chat-product-link{flex:1;align-items:center;gap:12px;min-width:0;display:flex}.chat-product-link img{background:var(--chat-soft);object-fit:cover;border-radius:8px;flex-shrink:0;width:40px;height:48px}.chat-product-link>span{overflow-wrap:anywhere;min-width:0;font-size:14px;font-weight:600}.chat-product-link small{color:var(--muted);transition:color .16s var(--motion-ease);margin-top:2px;font-size:12px;font-weight:400;display:block}.chat-product-link:hover small{color:var(--ink)}.chat-blocked{color:var(--chat-danger);background:#fdf2f1;border-radius:12px;margin:12px 20px 0;padding:10px 14px;font-size:13px}.chat-stage{flex-direction:column;flex:1;min-height:0;display:flex;position:relative}.chat-scroll{overscroll-behavior:contain;overflow-anchor:none;flex:1;min-height:0;padding:20px 24px 12px;overflow-y:auto}.chat-scroll:focus-visible{outline:2px solid var(--ink);outline-offset:-2px}.chat-history{border:1px solid var(--line);color:var(--muted);cursor:pointer;background:#fff;border-radius:999px;margin:0 auto 12px;padding:6px 14px;font-size:12px;display:block}.chat-history:hover{border-color:var(--ink);color:var(--ink)}.chat-error{text-align:center;color:var(--chat-danger);font-size:13px}.chat-empty{text-align:center;color:var(--muted);margin:48px 0;font-size:13px}.chat-messages{flex-direction:column;display:flex}.chat-timestamp{letter-spacing:.02em;color:var(--muted);align-self:center;margin:20px 0 6px;font-size:11px}.chat-messages>.chat-timestamp:first-child{margin-top:0}.chat-message{align-items:flex-start;gap:8px;max-width:min(76%,560px);margin-top:10px;display:flex}.chat-message.chat-grouped{margin-top:3px}.chat-message-mine{transform-origin:100% 100%;flex-direction:row-reverse;align-self:flex-end}.chat-message-theirs{transform-origin:0 100%}.chat-message-avatar{flex-shrink:0;width:32px}.chat-message-avatar img,.chat-message-avatar .image-placeholder{object-fit:cover;border-radius:50%;width:32px;height:32px;display:block}.chat-message-content{flex-direction:column;align-items:flex-start;min-width:0;display:flex}.chat-message-mine .chat-message-content{align-items:flex-end}.chat-bubble{background:var(--chat-soft);overflow-wrap:anywhere;white-space:pre-wrap;border-radius:18px;max-width:100%;padding:8px 14px;font-size:15px;line-height:1.55}.chat-bubble p{margin:0}.chat-bubble a{text-underline-offset:3px;margin:4px 12px 0 0;font-size:13px;text-decoration:underline;display:inline-block}.chat-message-mine .chat-bubble{background:var(--ink);color:#fff}.chat-message-theirs.chat-grouped .chat-bubble{border-top-left-radius:6px}.chat-message-theirs.chat-continues .chat-bubble{border-bottom-left-radius:6px}.chat-message-mine.chat-grouped .chat-bubble{border-top-right-radius:6px}.chat-message-mine.chat-continues .chat-bubble{border-bottom-right-radius:6px}.chat-message-image .chat-bubble{background:0 0;border-radius:14px;padding:0;overflow:hidden}.chat-bubble .trade-image{max-width:240px}.chat-message-status{color:var(--muted);align-items:center;gap:6px;margin:4px 4px 0;font-size:11px;display:flex}.chat-system{align-self:center;width:min(100%,420px);margin:14px 0}.chat-system-card{border:1px solid var(--line);color:var(--muted);text-align:center;border-radius:14px;padding:12px 16px;font-size:12px;line-height:1.6}.chat-system-card p{margin:0}.chat-system-card .chat-system-title{color:var(--ink);margin-bottom:2px;font-size:13px;font-weight:600}.chat-system-card a{background:var(--chat-soft);color:var(--ink);border-radius:999px;margin:8px 4px 0;padding:4px 12px;display:inline-block}.chat-latest{z-index:2;border:1px solid var(--line);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);cursor:pointer;background:#fffffff2;border-radius:999px;align-items:center;gap:6px;padding:8px 14px;font-size:12px;display:inline-flex;position:absolute;bottom:12px;left:50%;translate:-50%;box-shadow:0 8px 24px -12px #00000059}.chat-latest .chat-glyph{width:14px;height:14px}.chat-composer{padding:8px 20px 14px}.chat-pending-list{flex-wrap:wrap;gap:8px;display:flex}.chat-pending-list:not(:empty){padding-bottom:8px}.chat-pending{border:1px solid var(--line);border-radius:12px;align-items:center;gap:8px;max-width:240px;padding:6px 10px 6px 6px;font-size:12px;display:flex}.chat-pending img{object-fit:cover;border-radius:8px;width:36px;height:36px}.chat-pending>span:not([role]){text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.chat-compose-form{border:1px solid var(--line);transition:border-color .16s var(--motion-ease), box-shadow .16s var(--motion-ease);background:#fff;border-radius:24px;align-items:flex-end;gap:4px;padding:5px;display:flex}.chat-compose-form:focus-within{border-color:#b9b7b5;box-shadow:0 0 0 4px #1211110d}.chat-attach{width:36px;height:36px;color:var(--muted);cursor:pointer;transition:background-color .16s var(--motion-ease), color .16s var(--motion-ease);border-radius:50%;flex-shrink:0;place-items:center;display:grid;position:relative}.chat-attach:hover{background:var(--chat-soft);color:var(--ink)}.chat-attach:has(input:focus-visible){outline:2px solid var(--ink);outline-offset:2px}.chat-attach:has(input:disabled){opacity:.4;cursor:not-allowed}.chat-attach input{opacity:0;width:100%;height:100%;cursor:inherit;position:absolute;inset:0}.chat-input{flex:1;min-width:0;display:flex}.chat-input textarea{resize:none;background:0 0;border:0;outline:0;width:100%;min-height:36px;max-height:160px;padding:7px 4px;font-size:15px;line-height:22px;display:block;overflow-y:auto}.chat-send{background:var(--ink);color:#fff;cursor:pointer;width:36px;height:36px;transition:background-color .16s var(--motion-ease);border:0;border-radius:50%;flex-shrink:0;place-items:center;padding:0;display:grid}.chat-send:disabled{cursor:default;background:#d8d7d5}.chat-send .chat-glyph{width:18px;height:18px}.chat-compose-hint{color:var(--muted);margin:6px 8px 0;font-size:11px}.chat-sending{vertical-align:middle;border:2px solid;border-right-color:#0000;border-radius:50%;width:14px;height:14px;animation:.8s linear infinite chat-sending-spin;display:inline-block}.chat-send-failed{background:var(--chat-danger);color:#fff;cursor:pointer;border:0;border-radius:50%;flex-shrink:0;justify-content:center;align-self:center;align-items:center;width:24px;height:24px;padding:0;font-size:14px;font-weight:700;display:inline-flex}@keyframes chat-sending-spin{to{transform:rotate(360deg)}}.chat-placeholder{text-align:center;justify-content:center;align-items:center;padding:40px}.chat-placeholder-mark{background:var(--chat-soft);border-radius:18px;place-items:center;width:56px;height:56px;display:inline-grid}.chat-placeholder-mark .chat-glyph{width:26px;height:26px}.chat-placeholder h2{margin:16px 0 6px;font-size:18px;font-weight:600}.chat-placeholder p{max-width:280px;color:var(--muted);margin:0 auto;font-size:13px}@media (max-width:1199px){.chat-layout{grid-template-columns:280px minmax(0,1fr)}}@media (max-width:1023px){.chat-app{width:100%;padding:0}.chat-layout{box-shadow:none;border-width:1px 0 0;border-radius:0;grid-template-columns:minmax(0,1fr)}.chat-app[data-room=open] .chat-sidebar,.chat-app[data-room=none] .chat-placeholder{display:none}.chat-sidebar{background:#fff;border-right:0}.chat-back{border-radius:50%;flex-shrink:0;place-items:center;width:36px;height:36px;margin-left:-8px;display:grid}.chat-back:hover{background:var(--chat-soft)}}@media (max-width:700px){.chat-heading{gap:8px;min-height:60px;padding:8px 12px}.chat-identity{gap:10px}.chat-identity-avatar{width:36px;height:36px}.chat-identity-copy strong{font-size:15px}.chat-app .chat-heading .safety-links button{padding:6px 8px;font-size:12px}.chat-product{gap:10px;margin:8px 12px 0}.chat-product .trade-status{padding:4px 9px;font-size:11px}.chat-blocked{margin:8px 12px 0}.chat-scroll{padding:16px 12px 8px}.chat-message{max-width:86%}.chat-message-avatar,.chat-message-avatar img,.chat-message-avatar .image-placeholder{width:28px;height:28px}.chat-composer{padding:8px 12px max(10px, env(safe-area-inset-bottom))}.chat-input textarea{font-size:16px}.chat-compose-hint{display:none}}@media (prefers-reduced-motion:reduce){.chat-sending{animation:none}}
