.cm-chat-card{border:1px solid var(--line,#53616c);border-radius:14px;padding:16px;margin:12px 0;max-width:780px;background:var(--surface,#252c33);color:var(--text,#eef1f4);overflow-wrap:anywhere}
.cm-chat-card h3{margin:8px 0}.cm-letter-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;margin:14px 0}.cm-address{overflow-wrap:anywhere}.cm-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.cm-dialog{color:var(--text,#eef1f4);background:var(--surface,#252c33);border:1px solid var(--line,#53616c);border-radius:16px;padding:0;width:min(720px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:hidden}
.cm-dialog[open]{display:flex;flex-direction:column}.cm-dialog::backdrop{background:#0009}.cm-dialog header,.cm-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px;flex-wrap:wrap;flex-shrink:0}.cm-dialog header{border-bottom:1px solid var(--line,#53616c)}.cm-dialog header h2{margin:0;font-size:19px}.cm-dialog footer{border-top:1px solid var(--line,#53616c)}
.cm-dialog-body{padding:12px 16px;overflow-y:auto;overscroll-behavior:contain;min-height:0}.cm-dialog-body label{display:block;margin:10px 0}.cm-dialog-body input:not([type=checkbox]),.cm-dialog-body textarea{box-sizing:border-box;width:100%;max-width:100%;font:inherit}.cm-dialog-body textarea{line-height:1.5;min-height:150px;resize:vertical}.cm-dialog-body details{margin:12px 0}.cm-dialog-body details label{font-size:14px}.cm-dialog-body details textarea{min-height:70px}.cm-dialog .cm-check{display:flex;align-items:center;gap:10px}.cm-check input{width:20px;height:20px;flex-shrink:0}.cm-status{margin:0;padding:8px 16px;font-size:13px;flex-shrink:0}.cm-chat-card>.cm-status{padding:0}.cm-error{color:#ffb4ab}.cm-contacts{padding:10px;border:1px solid var(--line,#53616c);border-radius:8px;margin:10px 0}.cm-contacts button{display:block;margin:6px 0;text-align:left;white-space:normal;overflow-wrap:anywhere;max-width:100%}.cm-dialog button{min-height:42px;white-space:normal;overflow-wrap:anywhere}.cm-result{padding:12px;border:1px solid var(--line,#53616c);border-radius:8px}
@media(max-width:650px){.cm-dialog{width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border-radius:0;border:0}.cm-dialog header,.cm-dialog footer{padding:10px 12px}.cm-dialog header button{font-size:13px}.cm-dialog footer button{flex:1}.cm-dialog-body{padding:10px 12px}.cm-dialog-body input,.cm-dialog-body textarea{font-size:16px!important}.cm-chat-card{padding:12px;width:100%;box-sizing:border-box}.cm-chat-card .cm-actions button{flex:1;min-height:44px}.cm-status{padding:8px 12px}}
html body.warm-modern dialog.cm-dialog{padding:0!important;overflow:hidden!important;width:min(720px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important;box-sizing:border-box}
html body.warm-modern dialog.cm-dialog .cm-dialog-body{flex:1;min-height:0}
html body.warm-modern dialog.cm-dialog header{padding:12px 16px!important}
html body.warm-modern dialog.cm-dialog footer{padding:12px 16px max(12px,env(safe-area-inset-bottom))!important}
html body.warm-modern dialog.cm-dialog button,html body.warm-modern .cm-chat-card button{min-height:44px!important}
@media(max-width:650px){html body.warm-modern dialog.cm-dialog{width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;margin:0!important;border-radius:0!important}html body.warm-modern dialog.cm-dialog header{padding:10px 12px!important}}
