@media(max-width:760px){
body.chat-open{overflow:hidden}
body.chat-open #view-content,body.community-chat-open #conversation{position:fixed!important;inset:auto 0!important;top:var(--chat-top,0px)!important;height:var(--chat-height,100dvh)!important;width:100%!important;max-width:none!important;z-index:50;display:flex!important;flex-direction:column;padding:12px 14px max(12px,env(safe-area-inset-bottom))!important;margin:0!important;background:#142017!important;border:0!important;border-radius:0!important;overflow:hidden}
body.chat-open .chat-header{flex:none;display:flex;gap:8px;margin:0;padding:4px 0 10px;border:0;border-radius:0}
body.chat-open .chat-header>div{flex:1 1 50%;min-width:0}
body.chat-open .chat-header h1{font-size:20px;line-height:1.3}
body.chat-open .chat-header p{display:none}
body.chat-open .chat-header .skip{padding:6px 10px;font-size:12px;min-height:44px}
body.chat-open :is(#message-log,#chat-messages){flex:1 1 0;min-height:0!important;height:auto!important;overflow:auto;overscroll-behavior:contain;padding:12px 4px;border-radius:0;scroll-behavior:auto;-webkit-overflow-scrolling:touch}
body.chat-open .bubble{max-width:88%;overflow-wrap:anywhere}
body.chat-open #compose-area{flex:none;max-height:45%;overflow:auto;background:#142017}
body.chat-open #compose-area>.smallprint,body.chat-open #view-content>.smallprint{font-size:10px;line-height:1.35;margin:4px 0}
body.chat-open #conversation-starters{display:none}
body.chat-open #chat-connection{font-size:10px;margin:3px 0;flex:none}
body.chat-open #message-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:6px 10px;margin:0;padding:6px 0 0;flex:none}
body.chat-open #message-form label{min-width:0;margin:0;font-size:11px;display:grid;gap:4px}
body.chat-open #message-form textarea{font-size:16px;min-height:48px!important;height:64px;max-height:110px;resize:vertical;width:100%;padding:10px!important;margin:0;border-radius:12px!important}
body.chat-open #message-form button[type=submit]{width:auto;min-height:48px;padding:10px 14px;font-size:13px;grid-column:2;grid-row:1}
body.chat-open #message-form :is(.form-error,.send-status){grid-column:1/-1;margin:0;font-size:12px}
body.chat-open #message-form :is(.form-error,.send-status):empty{display:none}
body.community-chat-open #chat-name{font-size:22px;margin:8px 0}
body.community-chat-open #chat-actions{gap:6px;margin:0}
body.community-chat-open #chat-actions button,body.community-chat-open #close-chat{font-size:12px;min-height:44px;padding:8px 12px}
body.community-chat-open #conversation>.small{font-size:11px;margin:4px 0}
body.community-chat-open #refresh-chat{grid-column:1/-1;font-size:11px;min-height:32px;padding:4px}
body.chat-open #toast{z-index:60}
}

body.chat-open #chat-status{font-size:12px;flex:none;margin:4px 0}body.chat-open #chat-status:empty{display:none}
body[data-design] :is(.message-log,#chat-messages){background:#111b14;color:#e9ebdd}
body[data-design] :is(.chat-welcome,.chat-welcome p,.chat-day){color:#c6cfb8}
body[data-design] .bubble{background:#263424;color:#edf0e3}
body[data-design] .bubble.mine{background:#dce3b6;color:#202b1d}
body[data-design] #message-form{background:#142017;border-color:#536448;color:#e9ebdd;border-radius:0}
body[data-design] #message-form textarea{background:#1c291c;color:#f0f1e5;border:1px solid #6f7d58}

/* Conversation proportions: compact controls, fluid transcript, restrained bubbles. */
body[data-design].chat-open .chat-header{gap:12px;flex-wrap:nowrap;padding:12px 16px;margin:0;border-radius:12px 12px 0 0}
body[data-design].chat-open .chat-header>div{min-width:0;flex:1}
body[data-design].chat-open .chat-header h1{font-size:20px;line-height:1.25;letter-spacing:-.025em}
body[data-design].chat-open .chat-header .member-presence{font-size:11px;color:#bac6ad}
body[data-design].chat-open .chat-header p{display:none}
body[data-design].chat-open .chat-header>button{font-size:12px;padding:8px;max-width:115px;line-height:1.3}
.chat-options{position:relative;flex:none}.chat-options summary,.chat-privacy summary{cursor:pointer;list-style:none;font-size:12px;min-height:36px;display:flex;align-items:center;padding:8px}
.chat-options>div{position:absolute;right:0;top:100%;width:230px;z-index:70;background:#202e21;border:1px solid #657252;border-radius:12px;padding:10px;box-shadow:0 12px 35px #0006}
.chat-options>div button{display:block;width:100%;text-align:left}.chat-options>div p{display:block!important;font-size:11px!important;line-height:1.5;color:#c1cab6}
body[data-design].chat-open .message-log{border:0;border-radius:0;padding:20px 16px;gap:8px}
body[data-design].chat-open .bubble{flex-shrink:0;font-size:14px;line-height:1.45;padding:9px 13px;border-radius:14px 14px 14px 4px;max-width:min(78%,440px);box-shadow:none}
body[data-design].chat-open .bubble.mine{border-radius:14px 14px 4px 14px}
body[data-design].chat-open .bubble p{line-height:1.45;margin:0}
body[data-design].chat-open .bubble time{font-size:10px;line-height:1.3;margin-top:4px}
body[data-design].chat-open .chat-day{font-size:10px;padding:6px;margin:2px}
body[data-design].chat-open #message-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:6px 10px;padding:8px 0;margin:0;border:0}
body[data-design].chat-open #message-form label{font-size:0;min-width:0;margin:0}
body[data-design].chat-open #message-form textarea{font-size:16px;width:100%;min-height:46px!important;height:46px;max-height:100px;padding:10px 12px!important;margin:0;resize:vertical;border-radius:16px!important;line-height:1.45}
body[data-design].chat-open #message-form button[type=submit]{grid-column:2;grid-row:1;width:auto;min-height:46px;margin:0;font-size:12px;padding:10px 16px;border-radius:24px}
body[data-design].chat-open #message-form :is(.form-error,.send-status){grid-column:1/-1;font-size:11px;margin:0}
body[data-design].chat-open #message-form :is(.form-error,.send-status):empty{display:none}
body[data-design].chat-open #compose-area{padding:0 14px 8px;border-radius:0 0 12px 12px;background:#182419}
body[data-design].chat-open #conversation-starters{display:none}
.chat-privacy summary{font-size:10px;min-height:26px;padding:4px 0;color:#c5ceb9}.chat-privacy p{font-size:12px;line-height:1.5}
body[data-design].chat-open #chat-connection{font-size:10px;padding:4px 16px;margin:0;background:#111b14;color:#b9c3ac}
@media(min-width:761px){body.chat-open #view-content{max-width:860px;margin:0 auto}body[data-design].chat-open .message-log{height:clamp(280px,48dvh,540px);min-height:0}}
@media(max-width:760px){body[data-design].chat-open #view-content{padding:0 10px max(8px,env(safe-area-inset-bottom))!important}body[data-design].chat-open .chat-header{padding:8px 0;gap:8px;min-height:64px}body[data-design].chat-open .chat-header h1{font-size:18px}body[data-design].chat-open .message-log{padding:14px 4px}body[data-design].chat-open #compose-area{padding:0 4px;max-height:40%}.chat-options summary{padding:8px 4px}body[data-design].chat-open .chat-header>button{max-width:94px;font-size:11px}body[data-design].chat-open .verified-star{font-size:10px}}
