.chat-dialog{max-width:940px;width:94vw}.chat-layout{display:grid;grid-template-columns:260px 1fr;min-height:430px;border:1px solid #405333}.chat-layout>aside{background:#111b0d;padding:12px;max-height:540px;overflow:auto}.chat-layout>aside>p{font-size:12px}.thread-row{display:block;width:100%;background:#1e2a18;border:1px solid #34472b;color:#c4cdb6;text-align:left;padding:14px;margin-bottom:8px}.thread-row.active{border-color:#bfaa72;background:#2b3820}.thread-row strong{display:block;font-size:12px;line-height:1.7}.thread-row span{display:block;font-size:10px;color:#98a886;margin-top:8px}.chat-conversation{padding:18px;min-width:0}#chatInfo h3{font-size:15px;margin:0 0 8px}#chatInfo p,#chatInfo small{font-size:10px;line-height:1.8}.chat-state-actions{display:flex;gap:8px;margin:10px 0}.chat-state-actions button{font-size:10px;padding:8px}.chat-messages{height:240px;overflow:auto;padding:14px 5px;display:flex;flex-direction:column;gap:10px;border-top:1px solid #3b4d2e;margin-top:15px}.chat-bubble{max-width:88%;padding:12px;background:#293820;border-radius:8px;overflow-wrap:anywhere}.chat-bubble.outgoing{align-self:flex-end;background:#414429}.chat-bubble b{font-size:10px;color:#bcb58b}.chat-bubble p{font-size:12px;margin:5px 0;white-space:pre-wrap}.chat-bubble small{font-size:8px;margin:0;color:#8b9a7b}#chatSend textarea{min-height:65px;font-size:12px;margin-top:5px}#chatSend .primary{padding:10px 16px;font-size:11px;margin-top:9px}.inbox-preview-row{display:block;width:100%;text-align:left;margin:8px 0;font-size:11px!important}.inbox-section #inboxCount{display:inline-block;background:#bd9f60;color:#16210e;border-radius:15px;padding:2px 7px;font-size:11px}.trade-toast{position:fixed;right:25px;bottom:25px;width:340px;max-width:90vw;background:#28371d;border:1px solid #aa985f;box-shadow:0 12px 50px #0009;padding:22px;z-index:20000}.trade-toast strong{font-size:15px;color:#e2cd95}.trade-toast p{font-size:12px;line-height:1.8;color:#b0bf9c}.trade-toast .toast-close{position:absolute;right:8px;top:5px;background:none;border:0;color:#aebb9c;font-size:22px}.trade-toast .outline{font-size:11px}#chatError,.chat-request-note{font-size:12px;color:#d6b879!important}@media(max-width:650px){.chat-dialog{padding:20px}.chat-layout{grid-template-columns:1fr}.chat-layout>aside{max-height:145px}.thread-row{padding:10px}.chat-conversation{padding:12px}.chat-messages{height:230px}.trade-toast{right:15px;bottom:15px}.chat-bubble{max-width:95%}}
.sms-chat-preview{font-size:10px!important;line-height:1.8;padding:12px;background:#2c321e;border:1px solid #535a35;color:#c3b781!important}
.chat-messages{display:flex!important;flex-direction:column!important;align-items:stretch;gap:13px}.chat-messages .chat-bubble{width:fit-content;min-width:110px;max-width:80%;box-sizing:border-box;flex-shrink:0}.chat-messages .chat-bubble.incoming{align-self:flex-start!important;margin-left:0!important;margin-right:auto!important;background:#263a22;border:1px solid #46603a;border-radius:2px 12px 12px 12px;text-align:left}.chat-messages .chat-bubble.outgoing{align-self:flex-end!important;margin-left:auto!important;margin-right:0!important;background:#4a4225;border:1px solid #817044;border-radius:12px 2px 12px 12px;text-align:left}.chat-bubble.incoming b{color:#a8c899}.chat-bubble.outgoing b{color:#e3cc8a}.chat-bubble p{margin:6px 0!important}.chat-bubble small{display:block!important;text-align:right;font-size:9px!important}@media(max-width:650px){.chat-messages .chat-bubble{max-width:86%}}
.completed-trade-note{border:1px solid #75683e;background:#35351f;padding:14px;color:#dfc68b!important;font-size:12px;line-height:1.9}.completion-expiry{color:#baa675!important;font-size:10px!important;line-height:1.8}.trade-row.done{opacity:.8}.trade-row.done .trade-state{background:#51482a;border:1px solid #8d7842;color:#ead09b}.chat-state-actions+.completed-trade-note{margin-top:12px}
#headerInbox{display:inline-flex;align-items:center;gap:8px;border-color:#9b8854;background:#27331d;color:#ecdfbd;font-weight:600}#headerInbox .ongoing-chat-badge{display:inline-flex!important;align-items:center;justify-content:center;min-width:25px;height:25px;padding:0 7px;border-radius:14px;background:#e1bd67;color:#14200d!important;font-size:14px!important;font-weight:800;box-shadow:0 0 0 2px #e1bd6726}#headerInbox .unread-chat-label{display:inline-block!important;color:#f3cba9;font-size:9px!important;font-weight:500;white-space:nowrap}#headerInbox>span:first-child{display:inline!important;color:#ecdfbd}@media(max-width:650px){#headerInbox{gap:5px}#headerInbox .ongoing-chat-badge{min-width:22px;height:22px;font-size:12px!important}#headerInbox .unread-chat-label{font-size:8px!important}}
.chat-role-tabs{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:18px 0 10px}.chat-role-tabs button{padding:13px 10px;border:1px solid #465c36;background:#172512;color:#aabb98;font-size:12px;border-radius:4px}.chat-role-tabs button.active{background:#344225;border-color:#b9a269;color:#efd79a;font-weight:700}.chat-role-tabs span{display:inline-flex;justify-content:center;align-items:center;min-width:22px;height:22px;border-radius:12px;background:#17230f;color:#c3d0b2;font-size:11px;margin-left:6px}.chat-role-tabs button.active span{background:#c7aa69;color:#111a0c}.chat-role-help{font-size:11px!important;color:#9eae8b!important;line-height:1.9;margin:0 0 15px}.chat-role-badge{display:inline-block;font-size:10px;padding:5px 9px;margin-bottom:12px;border:1px solid #74663f;border-radius:3px;background:#3b3520;color:#e1ca89}.chat-role-badge.sent{background:#20384a;border-color:#4e7692;color:#aecde1}@media(max-width:600px){.chat-role-tabs button{font-size:11px;padding:11px 6px}.chat-role-tabs span{margin-left:4px;min-width:20px;height:20px}}
#chatInfo .chat-complete-trade{display:flex;width:100%;justify-content:center;align-items:center;min-height:45px;margin:16px 0 12px;border:1px solid #ffe0a0;background:linear-gradient(100deg,#d6b673,#ac8547);color:#13200c;font-size:14px;font-weight:800;box-shadow:0 3px 10px #b89a4e22}.chat-report-action{font-size:10px!important;padding:8px 12px!important;border-color:#8d6852;color:#e0b596!important;margin:8px 0}.chat-close-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;border-top:1px solid #465636;margin-top:18px;padding-top:17px}.chat-close-footer span{font-size:10px;color:#9eae8b}.chat-close-footer .chat-close-button{padding:12px 18px;font-size:12px;color:#e5dbc5;background:#303a26;border-color:#8b8c61}.chat-thread-pagination{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:15px}.chat-thread-pagination button{padding:7px 10px;font-size:10px}.chat-thread-pagination button:disabled{opacity:.35;cursor:default}.chat-thread-pagination span{font-size:10px;color:#afbd9c}.chat-list-limit-note{font-size:9px;color:#869773;line-height:1.8;margin-top:12px;display:block}@media(max-width:650px){.chat-close-footer{align-items:end;gap:10px}.chat-close-footer span{font-size:9px}.chat-close-footer .chat-close-button{white-space:nowrap;font-size:11px;padding:11px 13px}}
.chat-quick-actions{display:flex;gap:10px;align-items:stretch;margin:14px 0;flex-wrap:wrap}.chat-quick-actions .chat-report-action{margin:0!important;background:#553027;border:1px solid #b3775d;color:#ffcfb5!important;font-weight:700;padding:11px 16px!important;font-size:11px!important}.chat-quick-actions .chat-close-button{margin:0;background:#294d57;border:1px solid #719ba2;color:#dbf1ec;font-size:11px;font-weight:700;padding:11px 16px}.chat-quick-actions .chat-report-action:hover{background:#6b3c30}.chat-quick-actions .chat-close-button:hover{background:#35636f}.chat-close-footer{padding-top:10px;margin-top:10px;justify-content:flex-start}@media(max-width:650px){.chat-quick-actions{gap:8px}.chat-quick-actions button{flex:1;white-space:nowrap;padding:10px 12px!important}}
.chat-layout{grid-template-columns:265px minmax(0,1fr)}.chat-layout>#threadList{max-height:none;overflow:visible;padding:12px;display:flex;flex-direction:column;gap:9px;min-width:0}.thread-card{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 28px;align-items:stretch;gap:0;min-width:0;height:76px;border:1px solid #3d5231;background:#182514;flex-shrink:0}.thread-card .thread-row{width:100%;height:74px;min-height:0;border:0;margin:0;padding:12px 10px;overflow:hidden;background:transparent}.thread-card .thread-row.active{background:#334227;box-shadow:inset 3px 0 #c4aa70}.thread-card .thread-row strong{font-size:11px;line-height:1.6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.thread-card .thread-row span{font-size:9px;line-height:1.7;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:7px}.thread-card .thread-remove{padding:0;border:0;border-left:1px solid #3d5231;background:#202b1a;color:#b3b99e;font:23px/1 sans-serif;cursor:pointer}.thread-card .thread-remove:hover{background:#633b2d;color:#ffe0b9}.chat-thread-pagination{margin-top:auto;padding-top:10px}.chat-list-limit-note{font-size:9px!important;line-height:1.7;margin:0}@media(max-width:650px){.chat-layout{grid-template-columns:1fr}.chat-layout>#threadList{max-height:none;padding:10px;gap:7px}.thread-card{height:63px}.thread-card .thread-row{height:61px;padding:9px 12px}.thread-card .thread-row strong{font-size:12px}.thread-card .thread-row span{font-size:10px;margin-top:4px}.chat-thread-pagination{padding-top:3px;margin-top:0}}
.thread-card .thread-remove{background:#a92f28!important;border-left:1px solid #e28e75!important;color:#fff2e9!important;font-size:26px!important;font-weight:700!important}.thread-card .thread-remove:hover{background:#d13e32!important;color:#fff!important}.thread-card .thread-remove:focus-visible{outline:2px solid #fff;outline-offset:-3px}.chat-sample-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 12px;margin:0 0 14px;background:#222f1a;border:1px solid #435534}.chat-sample-controls label{display:flex;align-items:center;gap:7px;font-size:10px;margin:0;line-height:1.8}.chat-sample-controls input{width:auto!important;margin:0!important;accent-color:#c0a365}.chat-sample-controls button{font-size:10px;padding:7px 10px;white-space:nowrap}@media(max-width:650px){.chat-sample-controls{flex-wrap:wrap}.chat-sample-controls label{font-size:9px}}
.incoming-demo-banner{max-width:1200px;margin:10px auto;padding:15px 20px;border:1px solid #8c7d4d;background:#303820;display:flex;justify-content:space-between;align-items:center;gap:12px}.incoming-demo-banner span{font-size:12px;color:#dfcb96;line-height:1.9}.incoming-demo-banner button{white-space:nowrap;font-size:11px}@media(max-width:700px){.incoming-demo-banner{margin:10px 20px;flex-wrap:wrap}}
#headerInbox .unread-thread-count{background:#4a583b;color:#c4d1b3!important;box-shadow:none}#headerInbox.has-unread{border-color:#e2b56c;box-shadow:0 0 0 2px #d9b66d22}#headerInbox.has-unread .unread-thread-count{background:#dc4b38;color:#fff!important;box-shadow:0 0 0 2px #dc4b3826;font-weight:800}.thread-card.is-unread{border-color:#b6a052;background:#2c391f;box-shadow:inset 3px 0 #e3bc64}.thread-card.is-unread .thread-row{padding-right:63px}.thread-card.is-unread .thread-row strong{color:#f0db9c;font-weight:800}.thread-unread-badge{position:absolute;right:34px;top:9px;display:inline-flex!important;align-items:center;background:#bd4834;color:#fff0db!important;border:1px solid #e68863;border-radius:10px;padding:2px 6px;font-size:8px!important;line-height:1.4!important;margin:0!important;font-weight:700;z-index:2}.inbox-preview-row.is-unread{border-color:#bf9e5f;background:#2e3c21;color:#eed497}.chat-ad-space{margin-top:18px;border-top:1px solid #435434;padding-top:12px}.chat-ad-marker{display:block;font-size:8px;letter-spacing:1px;color:#7d8c70;margin-bottom:5px}.chat-ad-banner{width:100%;min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 17px;border:1px solid #777143;border-radius:3px;background:linear-gradient(90deg,#192718f0,#192718bb),url(assets/hero.png) center 35%/cover;text-align:left;color:#dec995}.chat-ad-banner strong{font-size:13px;display:block;color:#e2c991}.chat-ad-banner small{font-size:9px!important;display:block;margin:6px 0 0!important;color:#a7b695}.chat-ad-arrow{font-size:10px;white-space:nowrap;color:#d7c088}.chat-ad-banner:hover{border-color:#c4ab6f}@media(max-width:650px){.chat-ad-banner{min-height:70px;padding:12px}.chat-ad-banner strong{font-size:11px}.chat-ad-arrow{font-size:9px}.thread-unread-badge{top:8px}}

/* Keep the composer accessible independently of the advertising area. */
.chat-dialog{max-height:92vh;overflow-y:auto}.chat-conversation{min-width:0}#chatSend:not([hidden]){display:block;padding:12px 0;margin-top:10px;border-top:1px solid #52633e}#chatInput{display:block;width:100%;min-height:76px;box-sizing:border-box;background:#101b0d;color:#f1edd9;border:1px solid #91a36d;padding:12px}#chatSend>label{font-weight:700;color:#e4d09c}

/* Keep messages and composer in view; scroll long conversation details separately. */
.chat-dialog .chat-conversation{display:flex;flex-direction:column;max-height:65vh;overflow-y:auto}.chat-dialog #chatInfo{max-height:175px;overflow-y:auto;flex-shrink:0}.chat-dialog .chat-messages{height:clamp(100px,20vh,210px);min-height:100px;flex:1 1 150px}.chat-dialog #chatSend:not([hidden]){flex-shrink:0;position:sticky;bottom:0;background:#1b2816;z-index:3;padding:10px;border:1px solid #718052;border-radius:4px}.chat-dialog #chatSend textarea{min-height:60px;height:60px;max-height:110px;margin-top:6px}.chat-dialog #chatSend label{margin:0}.chat-dialog #chatSend .primary{margin-top:8px;padding:10px 16px}.chat-dialog .chat-ad-space{flex-shrink:0}.chat-dialog #chatError{margin:6px 0}@media(max-width:650px){.chat-dialog .chat-layout{display:flex;flex-direction:column}.chat-dialog .chat-conversation{order:-1;max-height:65vh}.chat-dialog #chatInfo{max-height:130px}}

/* Spacious conversation area with an always available composer. */
.chat-dialog{max-width:1120px;width:96vw;max-height:96vh;padding:24px}.chat-dialog>h2{margin:8px 0 12px}.chat-dialog .chat-role-tabs{margin:10px 0 6px}.chat-dialog .chat-role-help{margin-bottom:8px}.chat-dialog .chat-layout{grid-template-columns:265px minmax(0,1fr);min-height:0}.chat-dialog .chat-conversation{height:69vh;max-height:none;overflow:hidden;padding:14px;display:flex;flex-direction:column;gap:6px}.chat-dialog #chatInfo{max-height:125px;overflow-y:auto;flex:0 0 auto}.chat-dialog #chatInfo h3{margin-bottom:5px}.chat-dialog #chatInfo .chat-role-badge{margin-bottom:6px}.chat-dialog #chatInfo .chat-quick-actions{margin:7px 0}.chat-dialog #chatInfo .chat-complete-trade{margin:7px 0;min-height:38px}.chat-dialog .chat-messages{height:auto;min-height:180px;flex:1 1 auto;margin-top:0;padding:12px 8px;overflow-y:auto}.chat-dialog #chatSend:not([hidden]){position:static;flex:0 0 auto;margin:0;padding:9px 12px}.chat-dialog #chatSend textarea{height:58px;min-height:58px}.chat-dialog #chatSend .primary{margin-top:6px}.chat-dialog .chat-ad-space{margin-top:2px;padding-top:5px;flex:0 0 auto}.chat-dialog .chat-ad-banner{min-height:46px;padding:8px 12px}.chat-dialog .chat-ad-banner small{margin-top:3px!important}.chat-dialog .chat-ad-marker{margin-bottom:3px}.chat-dialog #chatError:empty{display:none}.chat-dialog .chat-close-footer{margin-top:6px;padding-top:6px}.chat-dialog>p.auth-help{margin:6px 0;font-size:10px}
@media(min-height:850px) and (min-width:651px){.chat-dialog .chat-conversation{height:72vh}.chat-dialog .chat-messages{min-height:300px}}
@media(max-width:650px){.chat-dialog{padding:16px;width:98vw}.chat-dialog .chat-layout{display:flex;flex-direction:column}.chat-dialog .chat-conversation{order:-1;height:72vh;max-height:none;padding:10px}.chat-dialog #chatInfo{max-height:100px}.chat-dialog .chat-messages{min-height:180px}.chat-dialog #threadList{max-height:220px;overflow-y:auto}.chat-dialog .chat-ad-banner{min-height:42px}.chat-dialog .chat-ad-banner strong{font-size:10px}}

/* Reserve space for both composer and send button at all viewport heights. */
.chat-dialog .chat-conversation{overflow-y:auto;min-height:0}.chat-dialog .chat-messages{min-height:100px;flex:1 1 240px}.chat-dialog #chatSend:not([hidden]){display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"label label" "input send";gap:6px 10px;flex:0 0 auto;min-height:102px;position:sticky;bottom:0;overflow:visible;padding:10px;background:#1b2816;z-index:4}.chat-dialog #chatSend>label{grid-area:label;margin:0}.chat-dialog #chatSend #chatInput{grid-area:input;width:100%;height:62px;min-height:62px;max-height:100px;margin:0;resize:vertical}.chat-dialog #chatSend button.primary{grid-area:send;align-self:stretch;justify-content:center;min-height:62px;min-width:106px;white-space:nowrap;margin:0;padding:12px 16px}.chat-dialog #chatError{flex-shrink:0}.chat-dialog .chat-conversation #chatSend[hidden]{display:none!important}@media(max-width:650px){.chat-dialog #chatSend:not([hidden]){gap:6px;min-height:100px;padding:8px}.chat-dialog #chatSend button.primary{min-width:78px;padding:10px 8px;font-size:11px}.chat-dialog .chat-messages{min-height:100px}}
.trade-chat-warning{max-width:710px;max-height:90vh;overflow:auto;border:2px solid #c99561;background:#1d2917;padding:28px}.trade-chat-warning h2{font-size:23px;color:#f5d391}.trade-chat-warning-body{background:#38271e;border:1px solid #a36c4e;border-left:4px solid #e4a064;padding:18px;margin:18px 0}.trade-chat-warning-body>strong{font-size:18px;color:#ffd3a7;line-height:1.7}.trade-chat-warning-body ul{padding-left:20px;font-size:13px;line-height:1.95;color:#e0d4b7}.trade-chat-warning-body p{font-size:12px;color:#c4c9ad}.trade-chat-warning label{font-size:12px;line-height:1.8;color:#d8d6b6}.trade-chat-warning-actions{display:flex;justify-content:flex-end;gap:12px;align-items:center}.trade-chat-warning-actions .primary{margin:0}#tradeChatPolicyError{color:#ffbd9e;font-size:12px}

.chat-conversation-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:7px}.chat-conversation-heading-text{flex:1;min-width:0}.chat-conversation-heading-text h3{overflow-wrap:anywhere;margin:0!important}.chat-conversation-heading-text .chat-role-badge{margin-bottom:7px!important}.chat-conversation-heading-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap;max-width:65%;flex-shrink:0}.chat-conversation-heading-actions button{min-height:34px;padding:8px 10px!important;margin:0!important;font-size:10px!important;line-height:1.5;white-space:nowrap}.chat-conversation-heading-actions button:first-child:not(.chat-report-action):not(.chat-close-button){background:#3d4825;border:1px solid #baa468;color:#f2d495}.chat-conversation-heading-actions .chat-report-action{background:#553027;color:#ffcfb5!important;border:1px solid #b3775d;font-weight:700}.chat-conversation-heading-actions .chat-close-button{background:#294d57;color:#dbf1ec;border:1px solid #719ba2;font-weight:700}@media(max-width:700px){.chat-conversation-heading{align-items:flex-start;flex-wrap:wrap;gap:8px}.chat-conversation-heading-actions{max-width:100%;justify-content:flex-start}.chat-conversation-heading-actions button{padding:7px 9px!important;font-size:9px!important}}

.chat-dialog #chatSend>label{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap;border:0!important}.chat-dialog #chatSend:not([hidden]){grid-template-areas:"input send";grid-template-columns:minmax(0,1fr) auto;border:0!important;border-top:0!important;border-radius:0;min-height:0!important;padding:0!important;margin:0!important;background:transparent;gap:10px}.chat-dialog #chatSend #chatInput{margin:0}.chat-dialog #chatSend button.primary{margin:0}@media(max-width:650px){.chat-dialog #chatSend:not([hidden]){gap:7px}}
.chat-dialog .chat-completion-bar{flex:0 0 auto;padding:8px 0;border-bottom:1px solid #687047}.chat-dialog .chat-completion-bar .chat-complete-trade{display:block;position:static;width:100%;min-height:46px;padding:12px 18px;margin:0;border:1px solid #ffe0a0;border-radius:6px;background:linear-gradient(100deg,#dfbf79,#b58c49);color:#17210f;font-size:15px;font-weight:800;cursor:pointer}.chat-dialog .chat-completion-bar .chat-complete-trade:focus-visible{outline:3px solid #fff0bc;outline-offset:2px}

.trade-voice-guidance{width:92vw;max-width:580px;padding:28px;border:2px solid #d6b66b;border-radius:10px;background:#1b2916}.trade-voice-guidance-copy{font-size:17px;line-height:1.9;color:#e5dec6}.trade-voice-guidance .notice-hide-label{display:flex!important;align-items:center;gap:14px;font-size:20px!important;font-weight:700;padding:14px;border:1px solid #b99a52;background:#344025;border-radius:7px}.trade-voice-guidance>.primary{display:block;min-height:46px;width:100%;margin-top:18px}

.trade-voice-keep-open{margin:18px 0 0;padding:18px;border:2px solid #efb04d;border-radius:8px;background:#4b301c;color:#fff0d0}.trade-voice-keep-open strong{display:block;color:#ffdb77;font-size:19px;line-height:1.6}.trade-voice-keep-open p{margin:10px 0 0;font-size:16px;line-height:1.8;color:#ffe8cf}
