.cm-addr{white-space:nowrap}
.cm-mini{display:inline-grid;place-items:center;width:22px;height:22px;margin-left:4px;padding:0;border:0;border-radius:50%;background:#e8f1fc;color:#2f7bd0;cursor:pointer;vertical-align:middle;transition:background .15s}
.cm-mini svg{width:13px;height:13px}
.cm-mini:hover,.cm-mini:focus-visible{background:#2f7bd0;color:#fff;outline:0}
@media (pointer:coarse){.cm-mini{width:30px;height:30px}.cm-mini svg{width:16px;height:16px}}
.cm-lock{overflow:hidden}
.cm-overlay{position:fixed;inset:0;z-index:2000;background:#10203066;display:grid;place-items:center;padding:14px}
.cm-box *,.cm-box *::before,.cm-box *::after{box-sizing:border-box}
.cm-box{box-sizing:border-box;width:min(680px,100%);max-height:calc(100vh - 28px);overflow:auto;background:#fff;border-radius:18px;box-shadow:0 18px 60px #0005;padding:14px 16px;display:flex;flex-direction:column;gap:8px;color:#1b2a3a}
.cm-box header{display:flex;align-items:center;justify-content:space-between}
.cm-title{display:inline-flex;align-items:center;gap:8px;font-size:16px}
.cm-title svg{width:20px;height:20px;color:#2f7bd0}
.cm-x{width:36px;height:36px;border:0;border-radius:50%;background:#f0f4f8;color:#4a5b6c;display:grid;place-items:center;cursor:pointer}
.cm-x svg{width:18px;height:18px}
.cm-row{display:grid;grid-template-columns:62px minmax(0,1fr);align-items:center;gap:8px;font-size:13px;color:#7b8b99}
.cm-row[hidden],.cm-warn[hidden]{display:none}
.cm-row input,.cm-row select,.cm-box textarea{width:100%;border:1px solid #dbe5ee;border-radius:10px;padding:9px 11px;font:inherit;font-size:15px;color:#1b2a3a;background:#fff;min-width:0}
.cm-box textarea{resize:vertical;min-height:150px;line-height:1.45}
.cm-row input:focus,.cm-row select:focus,.cm-box textarea:focus{outline:2px solid #b9d3f2;border-color:#b9d3f2}
.cm-warn{background:#fff4e5;color:#8a5200;border-radius:10px;padding:8px 11px;font-size:13px}
.cm-box footer{display:flex;align-items:center;gap:10px}
.cm-state{flex:1;font-size:13px;color:#7b8b99;min-width:0}
.cm-state.ok{color:#1e9d5a;font-weight:700}.cm-state.bad{color:#e0453a}
.cm-link{border:0;background:none;color:#2f7bd0;font:inherit;font-size:13px;cursor:pointer;padding:6px}
.cm-send{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 22px;border:0;border-radius:22px;background:#1e9d5a;color:#fff;font-weight:700;font-size:15px;cursor:pointer}
.cm-send svg{width:19px;height:19px}.cm-send:disabled{opacity:.5;cursor:default}
.cm-toast{position:fixed;left:50%;bottom:26px;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#17263a;color:#fff;padding:11px 18px;border-radius:12px;font-size:14px;z-index:2100;max-width:90vw;transition:opacity .2s,transform .2s}
.cm-toast.show{opacity:1;transform:translate(-50%,0)}.cm-toast.bad{background:#b3261e}
@media (max-width:520px){.cm-row{grid-template-columns:1fr;gap:3px}.cm-box{padding:12px}}
/* recipients as chips + participants panel + attachments */
.cm-chips{display:flex;flex-wrap:wrap;align-items:center;gap:5px;min-height:42px;border:1px solid #dbe5ee;border-radius:10px;padding:4px 4px 4px 6px;background:#fff;cursor:text;min-width:0}
.cm-chips:focus-within{outline:2px solid #b9d3f2;border-color:#b9d3f2}
.cm-chips input{flex:1 1 120px;min-width:90px;border:0!important;outline:0!important;padding:5px 4px!important;font-size:15px;background:transparent}
.cm-chip{display:inline-flex;align-items:center;gap:3px;max-width:100%;background:#e8f1fc;color:#1b4f8a;border-radius:15px;padding:3px 3px 3px 10px;font-size:14px;line-height:1.2}
.cm-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cm-chip button,.cm-file button{width:22px;height:22px;border:0;border-radius:50%;background:transparent;color:inherit;display:grid;place-items:center;cursor:pointer;padding:0;flex:none}
.cm-chip button:hover,.cm-file button:hover{background:#0001}
.cm-chip button svg,.cm-file button svg{width:13px;height:13px}
.cm-who{margin-left:auto;width:34px;height:34px;border:0;border-radius:8px;background:#f0f4f8;color:#2f7bd0;display:grid;place-items:center;cursor:pointer;flex:none}
.cm-who svg{width:19px;height:19px}.cm-who:hover{background:#e1ecf8}
.cm-pick{border:1px solid #dbe5ee;border-radius:12px;background:#f8fafc;padding:8px;display:flex;flex-direction:column;gap:6px}
.cm-pick[hidden],.cm-attp[hidden],.cm-files[hidden]{display:none}
.cm-find{width:100%;border:1px solid #dbe5ee;border-radius:9px;padding:8px 10px;font:inherit;font-size:14px;background:#fff}
.cm-groups{max-height:min(300px,40vh);overflow:auto;display:flex;flex-direction:column;gap:8px}
.cm-g-h{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px;padding:2px 4px;font-size:13px;color:#1b2a3a}
.cm-g-h span{font-size:11px;color:#6b7c8c;background:#eaf0f5;border-radius:8px;padding:1px 7px}
.cm-p{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:5px;background:#fff;border:1px solid #e6edf3;border-radius:10px;padding:3px 4px 3px 0;margin-top:3px}
.cm-p.on{border-color:#9cc3ec;background:#f2f8ff}
.cm-p-who{position:relative;border:0;background:none;text-align:left;padding:5px 30px 5px 10px;cursor:pointer;min-width:0;font:inherit;color:inherit}
.cm-p-who b{display:block;font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cm-p-who small{display:block;font-size:12px;color:#7b8b99;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cm-p-n{position:absolute;right:6px;top:50%;transform:translateY(-50%);font-style:normal;font-size:11px;color:#6b7c8c;background:#eef2f6;border-radius:8px;padding:0 6px}
.cm-p-k{border:1px solid #dbe5ee;background:#fff;color:#4a5b6c;border-radius:14px;height:30px;padding:0 10px;font:inherit;font-size:12px;cursor:pointer}
.cm-p-k[aria-pressed="true"]{background:#2f7bd0;border-color:#2f7bd0;color:#fff}
.cm-empty{margin:4px;font-size:13px;color:#7b8b99}
.cm-clip{position:relative;width:38px;height:38px;border:0;border-radius:50%;background:#f0f4f8;color:#4a5b6c;display:grid;place-items:center;cursor:pointer}
.cm-clip svg{width:18px;height:18px}
.cm-clip i{position:absolute;top:-3px;right:-3px;min-width:18px;height:18px;border-radius:9px;background:#2f7bd0;color:#fff;font-size:11px;font-style:normal;display:grid;place-items:center;padding:0 4px}
.cm-clip i[hidden]{display:none}
.cm-files{display:flex;flex-wrap:wrap;gap:6px}
.cm-file{display:inline-flex;align-items:center;gap:5px;max-width:100%;border:1px solid #dbe5ee;border-radius:10px;padding:3px 3px 3px 8px;font-size:13px;background:#fff}
.cm-file span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:240px}
.cm-file small{color:#7b8b99;white-space:nowrap}
.cm-file-i svg{width:14px;height:14px;color:#7b8b99;display:block}
.cm-attp{border:1px solid #dbe5ee;border-radius:12px;background:#f8fafc;padding:8px;display:flex;flex-direction:column;gap:6px}
.cm-doclist{max-height:min(240px,35vh);overflow:auto;display:flex;flex-direction:column;gap:3px}
.cm-doc{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;background:#fff;border:1px solid #e6edf3;border-radius:9px;padding:7px 10px;font-size:14px;cursor:pointer}
.cm-doc span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cm-doc small{font-size:12px;color:#7b8b99;white-space:nowrap}
.cm-doc input{width:18px;height:18px}
.cm-upl{display:inline-flex;align-items:center;gap:8px;align-self:flex-start;border:1px dashed #9cc3ec;color:#2f7bd0;border-radius:10px;padding:8px 12px;font-size:14px;cursor:pointer;background:#fff}
.cm-upl svg{width:17px;height:17px}
@media (pointer:coarse){.cm-p-k{height:36px;padding:0 12px}.cm-chip button{width:28px;height:28px}}
@media (max-width:520px){.cm-p{grid-template-columns:minmax(0,1fr) auto}.cm-p .cm-p-k:last-child{grid-column:2}.cm-p-who{grid-row:span 2}.cm-file span{max-width:150px}}
