/* Approved two-chat composition, bounded transcript + persistent composer. */
#approvedApp #aoPanel[data-view=chat]{border:0;background:transparent;border-radius:0;display:flex;flex-direction:column;min-height:0;height:100%;max-height:100%;overflow:hidden}
#approvedApp #aoPanel[data-view=chat] .ao-header{background:transparent;border:0;flex:0 0 auto;padding:8px 0 10px;gap:12px}
#approvedApp #aoPanel[data-view=chat] .ao-header h2{color:#073c2e}
#approvedApp #aoPanel[data-view=chat] .ao-body{padding:0;display:flex;flex-direction:column;gap:6px;min-height:0;overflow:hidden;flex:1 1 auto}
#approvedApp #aoPanel[data-view=chat] .ao-messages{display:flex;flex-direction:column;min-height:44px;max-height:none;flex:1 1 0;overflow-y:auto;overscroll-behavior:contain;padding:6px 2px;gap:10px;scroll-padding:8px}
#approvedApp .chat-bubble{max-width:90%;border-radius:18px;background:#fff;box-shadow:0 1px 4px #20382022;padding:10px 12px;color:#142820;line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere;flex:0 0 auto;text-align:left;min-width:90px}
#approvedApp .chat-bubble.mine{align-self:flex-end;background:#e1fac3;box-shadow:none}
#approvedApp .chat-bubble.other{align-self:flex-start}
#approvedApp .chat-bubble.deleted{background:#eeeae7;color:#626562;font-style:italic}
#approvedApp .chat-bubble:focus-visible{outline:2px solid #17664e}
#approvedApp .chat-message-text{display:block}
#approvedApp .chat-time{display:block;font-size:11px;text-align:right;color:#52615a;margin-top:3px;line-height:1.3}
#approvedApp .chat-day{align-self:center;border-radius:20px;background:#eae7e3;padding:3px 16px;font-size:12px;line-height:1.4;flex:0 0 auto}
#approvedApp #aoPanel[data-view=chat] .ao-composer,#approvedApp #chatForm{display:flex;flex-direction:row;align-items:flex-end;gap:8px;border:0;border-radius:0;background:transparent;padding:4px 0;flex:0 0 auto;margin:0}
#approvedApp #aoPanel[data-view=chat] .ao-composer textarea,#approvedApp #chatText{min-height:44px;height:44px;max-height:88px;resize:none;border:1px solid #d3dcdf;border-radius:24px;background:#fffafa;padding:10px 14px;margin:0;min-width:0;flex:1 1 auto;font-size:16px;line-height:22px}
#approvedApp .chat-action-slot{display:flex;align-items:center;flex:0 0 44px}
#approvedApp #aoSend,#approvedApp #chatSend{display:grid;place-items:center;min-width:44px;width:44px;min-height:44px;height:44px;border-radius:50%;padding:0;background:#16ba00!important;color:white;font-size:23px;flex:0 0 44px;border:0}
#approvedApp #aoSend[hidden],#approvedApp #chatSend[hidden],#approvedApp .ao-voice-mic[hidden]{display:none!important}
#approvedApp .ao-voice-mic{width:44px;height:44px;min-width:44px;min-height:44px;border-radius:50%;background:#16ba00;color:white;padding:0;border:0;display:grid;place-items:center}
#approvedApp .ao-voice-mic:disabled{background:#a3b99c;opacity:1;cursor:not-allowed}
#approvedApp .ao-voice-details{flex:0 0 auto;margin:0;padding:0}
#approvedApp .ao-voice-details p,#approvedApp .chat-capability-hint{font-size:11px;line-height:1.25;color:#657165;text-align:center;margin:0}
#approvedApp #aoStatus{flex:0 0 auto;font-size:12px;max-height:48px;overflow:auto}
.chat-own-menu{position:fixed;z-index:2147483000;width:220px;padding:6px 10px;background:#fffafa;box-shadow:0 3px 14px #0003;border-radius:16px;box-sizing:border-box;color:#173e2a}
.chat-own-menu button{display:block;width:100%;min-height:42px;border:0;background:none;color:#173e2a;text-align:left;font:inherit;padding:8px}
.chat-own-menu button.delete{color:#c5221f;border-top:1px solid #ddd}
.chat-own-menu button:disabled{opacity:.6}
.chat-own-menu small{display:block;font-size:11px;line-height:1.3;color:#616b63;padding:5px}
#approvedApp .approved-chat-slot{display:flex;flex-direction:column;min-height:0;flex:1 1 0;overflow:hidden}
#approvedApp #chatPanel.chat-next-people{display:flex;flex-direction:column;flex:1 1 0;min-height:0;overflow:hidden;border:0;border-radius:0;padding:0;background:transparent;margin:0}
#approvedApp #chatPanel[hidden]{display:none!important}
#approvedApp #chatPanel>.row,#approvedApp #chatPanel>p[data-i18n="chatHint"]{display:none}
#approvedApp #chatMessages{flex:1 1 0;min-height:44px;max-height:none;overflow-y:auto;display:flex;flex-direction:column;gap:10px;padding:6px 2px}
#approvedApp #chatForm>label{flex:1 1 auto;min-width:0;margin:0}
#approvedApp #chatForm>label>span{display:none}
#approvedApp #chatText{width:100%}
#approvedApp #chatForm>.actions{flex:0 0 44px;margin:0;display:flex;gap:0}
#approvedApp #chatStatus:empty{display:none}
#approvedApp #chatStatus{font-size:12px;flex:0 0 auto;max-height:40px;overflow:auto;margin:0}
#approvedApp .chat-next-contact>.approved-contact-summary,#approvedApp .chat-next-contact>.approved-segments{display:none}
#approvedApp .chat-next-contact{display:flex;flex-direction:column;min-height:0;overflow:hidden}
@media(max-height:400px){#approvedApp #aoPanel[data-view=chat] .ao-header{padding:2px 0 4px}#approvedApp #aoPanel[data-view=chat] .ao-messages,#approvedApp #chatMessages{min-height:32px;gap:6px}#approvedApp #aoPanel[data-view=chat] .ao-body{gap:2px}#approvedApp .chat-capability-hint,#approvedApp .ao-voice-details p{font-size:10px}#approvedApp #aoPanel[data-view=chat] .ao-composer textarea,#approvedApp #chatText{max-height:60px}}

/* Only approved chat routes receive stronger original wave colour. Other screens unchanged. */
#approvedApp:is([data-route=assistant],[data-route=contact]:has(.chat-next-contact)) #dealokWaveGreen stop:first-child{stop-color:#85a95d;stop-opacity:.9}
#approvedApp:is([data-route=assistant],[data-route=contact]:has(.chat-next-contact)) #dealokWaveGreen stop:last-child{stop-color:#a4c77a;stop-opacity:.8}
#approvedApp:is([data-route=assistant],[data-route=contact]:has(.chat-next-contact)) #dealokWaveOrange stop:first-child{stop-opacity:.25}
#approvedApp:is([data-route=assistant],[data-route=contact]:has(.chat-next-contact)) #dealokWaveOrange stop:last-child{stop-color:#ffa240;stop-opacity:.95}
@media(min-height:600px){#approvedApp:is([data-route=assistant],[data-route=contact]:has(.chat-next-contact)) #dealokBrandHeader{height:80px}}

/* Preserve transcript room on short people-chat screens, overriding legacy inline scroll sizing. */
#approvedApp .chat-next-contact #chatMessages{min-height:44px!important}
#approvedApp .chat-next-contact .message-sound-settings{display:none}
#approvedApp .chat-next-contact #chatPanel:has(#chatStatus:not(:empty)) #peopleVoiceHint{display:none}
#approvedApp .chat-next-contact #chatStatus{max-height:28px;overflow:auto;line-height:14px}
@media(max-height:400px){#approvedApp .chat-next-contact #chatMessages{min-height:32px!important}}
