#messages .cm-line{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
#messages .cm-line small{margin:0;min-width:0;overflow-wrap:anywhere}
#messages .cm-more{font:700 13px/1 system-ui;letter-spacing:2px;border:0;border-radius:20px;padding:0 5px;text-align:center;min-width:40px;min-height:34px;margin:-4px -3px -2px auto;flex:0 0 auto;color:inherit;background:transparent;cursor:pointer;opacity:.79;touch-action:manipulation}
#messages .cm-more:hover,#messages .cm-more:focus-visible{opacity:1;background:color-mix(in srgb,currentColor 10%,transparent)}
#messages .cm-removed p{font-style:italic;opacity:.78}
#messages .cm-empty{margin:auto;text-align:center;padding:24px 10px;opacity:.7;font-size:.95rem}
dialog.cm-sheet{width:min(440px,calc(100vw - 24px));max-height:90dvh}
.cm-sheet .cm-stack{display:grid;gap:8px}
.cm-sheet .cm-choice{display:grid;gap:3px;width:100%;padding:13px 15px;border-radius:13px;border:1px solid color-mix(in srgb,currentColor 15%,transparent);color:inherit;background:transparent;cursor:pointer;text-align:left;font:inherit}
.cm-sheet .cm-choice:hover,.cm-sheet .cm-choice:focus-visible{background:color-mix(in srgb,currentColor 7%,transparent)}
.cm-sheet .cm-choice span{font-size:.86rem;line-height:1.35;opacity:.85}
.cm-sheet .cm-danger b,.cm-sheet .cm-error{color:#b23b30}
.cm-sheet .cm-confirm,.modal .modal-foot .cm-clear{background:#a43329;color:#fff;border-color:#a43329}
.cm-sheet .cm-info{font-size:1rem;line-height:1.55;overflow-wrap:anywhere}
.cm-sheet #cm-edit{display:block;width:100%;margin:7px 0;min-height:8rem;max-height:42dvh;font:inherit;font-size:max(16px,1rem);resize:vertical}
.cm-sheet .modal-foot{flex-wrap:wrap}
@media(max-width:520px){.cm-sheet .modal-foot,.modal .modal-foot:has(.cm-clear){display:grid;grid-template-columns:1fr;gap:9px}.cm-sheet .modal-foot button,.modal .modal-foot:has(.cm-clear) button{width:100%;min-height:46px;white-space:normal}.cm-sheet .modal-foot button[data-cm-submit]{grid-row:1}}
@media(prefers-color-scheme:dark){.cm-sheet .cm-danger b,.cm-sheet .cm-error{color:light-dark(#ab3229,#ffada4)}}
