/* A single expanding column: all available width belongs to the message. */
dialog.new-mail-dialog{width:calc(100vw - 48px);max-width:1200px;height:calc(100dvh - 48px);max-height:none}.new-mail-header{padding:10px 18px;gap:8px}.new-mail-title-group{margin-right:auto}.new-mail-header p{display:none}.new-mail-from{padding:8px 20px}.new-mail-envelope{padding:0 20px}.new-mail-envelope input{height:38px}.new-mail-message{display:flex;flex:1 0 auto;min-height:clamp(260px,40dvh,700px);width:100%;padding:10px 20px 8px;box-sizing:border-box}.new-mail-message .rich-composer{display:flex;flex-direction:column;flex:1 1 100%;width:100%;min-width:0;max-width:none}.new-mail-message .rich-editor{flex:1 0 auto;min-height:200px}.new-mail-scroll{align-items:stretch}.new-mail-tools{padding-block:8px}.new-mail-footer{padding-block:10px}.new-mail-identity{flex-wrap:wrap}.new-mail-sender{margin:0}
.rich-composer.editor-surface{display:flex;flex-direction:column;width:100%;min-width:0;box-sizing:border-box;overflow:visible;border:1px solid #dadce0;border-radius:8px;color:#202124}.editor-surface .rich-editor{box-sizing:border-box;min-width:0;width:100%;min-height:clamp(230px,36dvh,600px);height:auto;max-height:none;overflow:auto;resize:vertical;line-height:1.6;padding:18px 20px;background:#fff;color:#202124;border-radius:0 0 8px 8px}.rich-editor:focus{outline:2px solid #a8c7fa;outline-offset:-2px}.rich-editor img{max-width:100%;height:auto;display:inline-block}.rich-editor blockquote{margin:8px 0 8px 20px;padding-left:12px;border-left:3px solid #dadce0}.editor-surface .rich-toolbar{position:sticky;top:0;z-index:5;display:flex;flex-wrap:wrap;gap:3px;align-items:center;padding:6px 8px;border-bottom:1px solid #dadce0;background:#f8fafd;border-radius:8px 8px 0 0;flex:0 0 auto}.tool-group{display:flex;align-items:center;gap:2px;padding-right:5px;margin-right:3px;border-right:1px solid #dadce0}.tool-group:last-of-type{border:0;margin:0;padding:0}.editor-surface .rich-toolbar button,.editor-menu>summary{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:30px;height:32px;min-height:32px;padding:5px;border:0;border-radius:4px;color:#3c4043;background:transparent;font-size:20px;line-height:1;cursor:pointer}.editor-surface .rich-toolbar button:hover,.editor-menu>summary:hover{background:#e8edf6}.editor-surface .rich-toolbar button:focus-visible,.editor-menu>summary:focus-visible{outline:2px solid #1a73e8;outline-offset:-2px}.editor-surface .rich-toolbar button[aria-pressed=true]{background:#d3e3fd;color:#0b57d0}.rich-toolbar svg{width:19px;height:19px;display:block}.rich-toolbar select{height:32px;max-width:125px;padding:4px 7px;border:0;border-radius:4px;font-size:13px;color:#3c4043;background:#f8fafd;cursor:pointer}.rich-toolbar select[data-editor-select=fontSize]{width:64px}.editor-menu{position:relative}.editor-menu>summary{list-style:none}.editor-menu>summary::-webkit-details-marker{display:none}.color-symbol{font-size:18px;border-bottom:3px solid #1a73e8}.highlight-symbol{font-size:18px;background:#fff59d;padding:2px}.editor-palette,.emoji-palette{position:absolute;z-index:30;top:36px;right:0;display:grid;grid-template-columns:repeat(4,30px);gap:5px;background:#fff;padding:12px;border:1px solid #dadce0;border-radius:8px;box-shadow:0 5px 18px #0002;width:max-content}.editor-palette label{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;font-size:13px}.editor-palette input{width:40px;height:28px;padding:2px;border:1px solid #ddd}.editor-palette button{border:1px solid #dadce0!important;height:27px!important;width:27px!important}.emoji-palette button{font-size:23px!important}.editor-status{min-height:0;font-size:13px;padding:0 12px;color:#386d53}.editor-status:empty{display:none}.editor-status:not(:empty){padding:8px 12px}
.compose-fullscreen.new-mail-dialog{inset:10px;margin:0;width:calc(100vw - 20px);height:calc(100dvh - 20px);max-width:none;border-radius:8px}.composer.is-open.compose-fullscreen{position:fixed!important;inset:10px!important;z-index:100;width:calc(100vw - 20px)!important;max-width:none!important;height:calc(100dvh - 20px);padding:12px;margin:0!important;display:flex;flex-direction:column;box-sizing:border-box;border:1px solid #cbd5d0;border-radius:10px;box-shadow:0 0 0 100vmax #172c3266;overflow:auto}.composer.compose-fullscreen .compose-box{display:flex;flex-direction:column;flex:1 0 auto;min-height:0}.composer.compose-fullscreen .rich-composer{display:flex;flex-direction:column;flex:1 0 auto;margin:8px 0;min-height:clamp(260px,38dvh,900px)}.composer.compose-fullscreen .rich-editor{flex:1 0 auto;min-height:200px}.compose-fullscreen .rich-envelope{flex:0 0 auto}.compose-fullscreen .compose-footer{position:sticky;bottom:0;background:#fff;z-index:6;border-top:1px solid #e1e5e8}.compose-fullscreen .compose-notice{flex:0 0 auto}.has-compose-fullscreen{overflow:hidden}
.send-check{margin:14px 0;padding:12px 14px;border:1px solid #d7e1d8;border-radius:8px;background:#f6faf5;line-height:1.7;overflow-wrap:anywhere}.send-check.error{background:#fff5f3;border-color:#ebc6c0;color:#853c31}.send-check p{margin:4px 0;font-size:14px}.send-check button{margin-top:7px}.send-check small{display:block;color:#657167;font-size:12px}.crm-credentials #crm-token-help{color:#435748}
@media(max-width:720px){dialog.new-mail-dialog,.compose-fullscreen.new-mail-dialog{inset:0;margin:0;width:100vw;max-width:100vw;height:100dvh;border-radius:0}.new-mail-header{padding:8px 12px}.new-mail-from{padding:7px 12px}.new-mail-envelope{padding:0 12px}.new-mail-contact{width:115px}.new-mail-message{padding:6px 10px;min-height:38dvh}.new-mail-message .rich-editor{min-height:240px}.new-mail-tools,.new-mail-footer{padding-inline:12px}.new-mail-sender{display:none}.editor-surface .rich-toolbar{padding:5px;gap:2px}.tool-group{padding-right:3px;margin-right:0}.editor-surface .rich-toolbar button,.editor-menu>summary{width:31px;min-height:34px;height:34px}.rich-toolbar select{font-size:14px;max-width:108px}.rich-toolbar select[data-editor-select=fontSize]{width:59px}.editor-surface .rich-editor{font-size:16px;padding:14px;min-height:250px}.composer.is-open.compose-fullscreen{inset:0!important;width:100vw!important;height:100dvh;border-radius:0;padding:8px}.editor-palette,.emoji-palette{right:auto;left:0}.emoji-palette{left:auto;right:0}.compose-fullscreen .compose-tabs{flex-wrap:wrap}.new-mail-footer-note small{display:none}.new-mail-footer-actions{gap:6px}.new-mail-footer{padding-bottom:max(10px,env(safe-area-inset-bottom))}}
