/* R214: Group tools use the existing Telegram Business colours and chat bubble tokens. */
.r204-group-view{--r204-in:#203b52;--r204-out:#2c5948}
.r204-group-view .r204-message-list .r204-message{max-width:min(78%,520px);border-radius:16px 16px 16px 5px;padding:10px 12px;box-shadow:0 2px 3px #0002}
.r204-group-view .r204-message-list .r204-message.agent{border-radius:16px 16px 5px 16px}
.r204-group-view .r204-conversation-head{min-height:55px!important}
.r204-group-view .r204-composer{border-top:1px solid #ffffff15}
.r214-agent{margin-top:12px;padding:12px;border-radius:12px;background:#ffffff08;border:1px solid #ffffff22;color:inherit;display:grid;gap:9px}
.r214-agent-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.r214-agent-head span{font-size:11px;opacity:.75}
.r214-agent small,.r214-agent-note{font-size:11px;line-height:1.5;opacity:.83}
.r214-agent-settings,.r214-review{display:grid;gap:9px}
.r214-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.r214-agent label{display:grid;gap:5px;font-size:12px;min-width:0}
.r214-agent .r214-check{display:flex;align-items:center;gap:7px}
.r214-agent input,.r214-agent select,.r214-agent textarea{max-width:100%;width:100%;box-sizing:border-box;padding:7px;border-radius:7px;border:1px solid #718ca350;background:#142c41;color:inherit;font:inherit}
.r214-agent input[type=checkbox]{width:auto}
.r214-agent textarea{resize:vertical;min-height:58px}
.r214-agent .r214-review-item{display:grid;gap:6px;padding:9px;border-radius:9px;background:#ffffff08;margin-top:6px}
.r214-review-item span{display:grid;gap:2px;font-size:12px}
.r214-review-item>div{display:flex;flex-wrap:wrap;gap:4px}
.r214-review-item button{background:#ffffff12;border:1px solid #ffffff25;border-radius:8px;color:inherit;cursor:pointer;padding:6px;font-size:11px}
.r214-review-item button:hover{background:#ffffff30}
:root[data-business-theme="light"] .r204-group-view{--r204-in:#fff;--r204-out:#e0ffc9}
:root[data-business-theme="light"] .r214-agent{background:#f5f9fc;border-color:#ccdce5}
:root[data-business-theme="light"] .r214-agent input,:root[data-business-theme="light"] .r214-agent select,:root[data-business-theme="light"] .r214-agent textarea{background:#fff;color:#243749;border-color:#c8d5e2}
@media(max-width:720px){.r214-grid{grid-template-columns:1fr}.r204-group-view .r204-message-list .r204-message{max-width:90%}}
