/* Repairs: one command bar, a clear selection and a neutral mail reading pane. */
.clone-body .page-heading h1{color:#fff}
.crm-root{--cm-border:#e3e6eb;--cm-muted:#647180;font-family:Figtree,"Segoe UI",Arial,sans-serif}
.crm-root .cm-workspace{border-color:#dce1e7;box-shadow:0 5px 20px #18233208;min-height:440px;height:calc(100dvh - 246px)}
.crm-root .cm-folders{background:#f7f8fa;border-right-color:#e3e6eb;padding:14px 8px}
.crm-root .cm-folders-heading{padding:0 7px 12px}
.crm-root .cm-folders-heading strong{font-size:14px;color:#202a35}
.crm-root .cm-folder{min-height:30px;padding:6px 7px;color:#526171;border-radius:5px}
.crm-root .cm-folder.active{background:#e9edf2;color:#17212c;box-shadow:inset 3px 0 #ffbf00}
.crm-root .cm-folder.active>b{color:#25313e}
.crm-root .cm-folder:hover{background:#edf0f4}
.crm-root .cm-folder-urgent:not(.active){color:#ae293d}
.crm-root .cm-folder-divider{border-color:#dfe4eb;color:#697685}
.crm-root .cm-queue-title{min-height:47px;padding:11px 12px;background:#111318}
.crm-root .cm-queue-title strong{font-size:14px}
.crm-root .cm-queue form{background:#fff;padding:11px 11px 10px;border-color:#e3e6eb}
.crm-root .cm-queue input,.crm-root .cm-queue select{border-color:#dce1e7;color:#455464;border-radius:6px;min-height:34px}
.crm-root .cm-search-button{background:#f5f7f9;color:#344252;border-color:#dce1e7}
.crm-root .cm-case-card{padding:12px 13px;border-bottom-color:#e3e6eb;outline:none;transition:background .15s}
.crm-root .cm-case-card.selected{outline:none;box-shadow:inset 0 0 0 1px #a9b6c4!important}
.crm-root .cm-case-card.selected:after{content:'';position:absolute;right:0;top:0;bottom:0;width:3px;background:#ffbf00}
.crm-root .cm-case-card>strong{font-size:15px;color:#1b2835;line-height:1.35}
.crm-root .cm-case-card-top{color:#677584;margin-bottom:6px}
.crm-root .cm-case-card-top em{background:#f0f1f3;color:#697382;padding:2px 4px;border-radius:3px;font-size:8px}
.crm-root .cm-case-product{font-size:12px;color:#4d5d6b;margin-bottom:7px}
.crm-root .cm-case-preview{color:#657383;line-height:1.5;margin-top:7px}
.crm-root .cm-case-owner{color:#586979;flex-wrap:wrap;row-gap:5px}
.crm-root .cm-case-owner>small{font-size:9px;color:#6b7886}
.crm-root .cm-queue-footer{background:#fff;border-top:1px solid #e3e6eb;color:#677584}
.crm-root .cm-person-header{padding:15px 16px 12px;gap:11px;border-color:#e3e6eb;flex-wrap:nowrap}
.crm-root .cm-person-title{flex:1}
.crm-root .cm-person-title h2{font-size:20px;font-weight:750;color:#18232e;line-height:1.2}
.crm-root .cm-person-title p{font-size:11px;line-height:1.6;color:#667483;margin-top:5px}
.crm-root .cm-selected-owner{color:#3c4c5b}
.crm-root .cm-avatar{background:#fff0b8;color:#58440f;border-radius:10px;width:38px;height:38px}
.crm-root .cm-context-toggle{color:#475665;border-color:#dce1e7;min-height:32px}
.crm-root .cm-case-state{padding:8px 16px;background:#f7f9fb;border-color:#e6eaf0;gap:8px}
.crm-root .cm-case-state>strong{color:#344557;font-size:12px}
.crm-root .cm-case-state>span{color:#687887}
.crm-root .cm-next-action{margin:10px 12px 0;padding:9px 10px;border-radius:7px;align-items:center}
.crm-root .cm-next-action strong{font-size:12px;line-height:1.4}
.crm-root .cm-next-action small{font-size:10px;line-height:1.5}
.crm-root .cm-next-action .cm-pill{display:none}
.crm-root .cm-mail-toolbar{padding:10px 12px;gap:8px;background:#fff;border-bottom:0;flex-wrap:nowrap}
.crm-root .cm-mail-toolbar button{font-size:12px;font-weight:650;padding:7px 11px;border-radius:6px;min-height:34px}
.crm-root .cm-mail-toolbar #mail-reply{background:#ffbf00;color:#211d12;border:1px solid #efb300}
.crm-root .cm-mail-toolbar #mail-reply:hover{background:#efb400}
.crm-root .cm-mail-toolbar #mail-note{background:#fff;color:#37485a;border:1px solid #d7dfe7}
.crm-root .cm-mail-toolbar #mail-note:hover{background:#f1f4f8}
.crm-root .cm-toolbar-hint{margin-left:auto;font-size:10px;color:#748190;white-space:nowrap}
.crm-root .cm-dialog-tools{background:#111318;padding:0 12px;border-bottom:0;min-height:38px;gap:8px;align-items:stretch}
.crm-root .cm-dialog-tabs{background:transparent;border:0;gap:14px;align-items:stretch}
.crm-root .cm-dialog-tabs button{font-size:11px;padding:10px 0 8px;color:#b8c0ca;border-bottom:3px solid transparent}
.crm-root .cm-dialog-tabs button.active{color:#fff;border-bottom-color:#ffbf00}
.crm-root .cm-dialog-tabs button:hover{color:#fff;background:transparent}
.crm-root .cm-dialog-count{font-size:10px;color:#aeb8c5;align-self:center;white-space:nowrap}
.crm-root .cm-messages{background:#f2f4f7;padding:14px 12px;scrollbar-color:#bcc5d0 transparent}
.crm-root .cm-mail-item{border:1px solid #dce3eb;border-radius:8px;box-shadow:0 2px 5px #20334404;margin-bottom:10px;overflow:hidden}
.crm-root .cm-mail-item>summary{padding:12px;gap:10px;align-items:flex-start}
.crm-root .cm-mail-item[open]>summary{border-color:#e6eaf0;background:#fff}
.crm-root .cm-mail-item>summary:hover{background:#f8fafc}
.crm-root .cm-mail-avatar{background:#e9eef5;color:#435a72;width:32px;height:32px;font-size:10px}
.crm-root .cm-mail-summary>strong{color:#203143;font-size:13px;line-height:1.4}
.crm-root .cm-mail-summary>b{color:#526477;font-size:12px;line-height:1.5}
.crm-root .cm-mail-summary>small{font-size:11px;color:#728192;margin-top:3px}
.crm-root .cm-mail-meta{gap:6px}
.crm-root .cm-mail-meta time{color:#657586;font-size:9px}
.crm-root .cm-mail-meta>span{background:#edf2f7;color:#526779;border-radius:4px;padding:2px 5px;font-size:8px;font-weight:650}
.crm-root .cm-mail-meta i{color:#6e7e8d}
.crm-root .cm-mail-content{padding:12px 14px 13px}
.crm-root .cm-mail-address{color:#718092;font-size:10px;margin-bottom:9px;line-height:1.5}
.crm-root .cm-mail-content>p{font-size:14px;line-height:1.7;color:#293d50;margin:8px 0 16px}
.crm-root .cm-mail-statuses{border-color:#e9edf2;color:#687b8d;font-size:10px;line-height:1.5}
.crm-root .cm-mail-internal{background:#fff;border-color:#d6deeb;border-left:3px solid #7c8fab}
.crm-root .cm-mail-internal[open]>summary{background:#f5f7fb}
.crm-root .cm-mail-internal .cm-mail-avatar{background:#e6ebf3;color:#4f6685}
.crm-root .cm-mail-internal .cm-mail-summary>b{color:#576d8b}
.crm-root .cm-mail-internal .cm-mail-meta>span{background:#e5ebf5;color:#4c6381}
.crm-root .cm-composer{border-color:#dfe5ec;padding:12px;background:#fff}
.crm-root .cm-composer.cm-composer-idle{padding:9px 13px}
.crm-root .cm-reading-hint{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:#687b8d}
.crm-root .cm-composer-idle .cm-error:empty{display:none}
.crm-root .cm-internal-guidance{background:#edf2f9;border-color:#dce4f0;color:#506681}
.crm-root .cm-composer textarea{border-color:#ccd6e1;min-height:85px;border-radius:6px}
/* Composing replaces the message list, keeping the complete form within the pane. */
.crm-root .cm-case:has(.cm-composer:not(.cm-composer-idle)) :is(.cm-messages,.cm-dialog-tools,.cm-next-action,.cm-case-state){display:none}
.crm-root .cm-case:has(.cm-composer:not(.cm-composer-idle)) .cm-mail-toolbar{border-bottom:1px solid #e3e6eb}
.crm-root .cm-composer:not(.cm-composer-idle){flex:1;min-height:0;overflow-y:auto;border-top:0;padding:16px}
.crm-root .cm-write-title{margin-bottom:12px}
.crm-root .cm-write-title strong{font-size:15px;color:#24384b}
.crm-root .cm-write-title button{color:#526779;padding:3px 7px;border-radius:4px}
.crm-root .cm-write-title button:hover{background:#edf1f5}
@media(min-width:1300px) and (max-width:1799px){.crm-root .cm-workspace{grid-template-columns:175px 255px minmax(0,1fr)}}
@media(min-width:801px) and (max-width:1150px){.crm-root .cm-workspace{grid-template-columns:160px 220px minmax(0,1fr)}.crm-root .cm-toolbar-hint{display:none}.crm-root .cm-person-title h2{font-size:18px}.crm-root .cm-case-state>span{display:none}.crm-root .cm-dialog-tabs{gap:12px}}
@media(max-width:800px){.crm-root .cm-workspace{min-height:440px}.crm-root .cm-toolbar-hint{display:none}.crm-root .cm-person-header{padding:12px}.crm-root .cm-dialog-count{display:none}.crm-root .cm-reading-hint>span:last-child{display:none}.crm-root .cm-mail-meta time{font-size:8px}.crm-root .cm-dialog-tabs{gap:12px}.crm-root .cm-case-state>span{display:none}.crm-root .cm-folder{font-size:12px}}
@media(max-width:620px){.crm-root .cm-workspace{grid-template-columns:135px minmax(0,1fr)}.crm-root .cm-person-header{gap:7px;flex-wrap:wrap}.crm-root .cm-person-title h2{font-size:16px}.crm-root .cm-avatar{display:none}.crm-root .cm-mail-toolbar{gap:5px;padding:8px}.crm-root .cm-mail-toolbar button{font-size:10px;padding:6px}.crm-root .cm-dialog-tools{padding:0 8px}.crm-root .cm-dialog-tabs{gap:10px}.crm-root .cm-dialog-tabs button{font-size:10px}.crm-root .cm-mail-item>summary{gap:6px;padding:10px}.crm-root .cm-mail-avatar{display:none}.crm-root .cm-mail-content{padding:10px}.crm-root .cm-mail-content>p{font-size:13px}.crm-root .cm-case-card{padding:11px 8px}.crm-root .cm-case-card>strong{font-size:13px}.crm-root .cm-case-owner>small{margin-left:0;width:100%}.crm-root .cm-case-state{padding:7px 10px}.crm-root .cm-next-action strong{font-size:11px}}
