.email-workspace { max-width: 1240px; }
.email-composer { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 18px; align-items: start; }
.recipient-panel, .message-panel { border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: 0 2px 5px #19324c0b; }
.recipient-heading, .compose-heading { min-height: 70px; padding: 17px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.recipient-heading small, .compose-heading small { color: #8c9bad; font-size: 8px; font-weight: 800; letter-spacing: 1.2px; }
.recipient-heading h2, .compose-heading h2 { margin: 4px 0 0; font: 600 19px Georgia, serif; }
.recipient-heading button { border: 0; background: none; color: var(--blue); font-size: 9px; font-weight: 700; cursor: pointer; }
.recipient-search { height: 38px; margin: 14px 16px 8px; padding: 0 10px; display: flex; align-items: center; gap: 7px; border: 1px solid #d8e0e8; border-radius: 6px; color: #8c9aac; }
.recipient-search input { min-width: 0; flex: 1; border: 0; outline: 0; font-size: 10px; }
.recipient-help { margin: 0 17px 7px; color: #8998a8; font-size: 8px; line-height: 1.5; }
.recipient-list { max-height: 430px; padding: 5px 10px 12px; overflow-y: auto; }
.recipient-list > label { min-height: 55px; padding: 8px; display: grid; grid-template-columns: 18px 31px minmax(0, 1fr) 22px; gap: 8px; align-items: center; border-radius: 7px; cursor: pointer; }
.recipient-list > label:hover { background: #f5f8fc; }
.recipient-list input { accent-color: var(--blue); }
.recipient-avatar { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: #e4ecf6; color: #385572; font-size: 9px; font-weight: 800; }
.recipient-list b, .recipient-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recipient-list b { color: #31475f; font-size: 9px; }
.recipient-list small { margin-top: 3px; color: #98a4b1; font-size: 8px; }
.recipient-list > label > i { width: 19px; height: 19px; display: none; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; font-style: normal; font-size: 9px; }
.recipient-list > label:has(input:checked) { background: #f0f5fd; }
.recipient-list > label:has(input:checked) > i { display: grid; }
.recipient-security { margin: 0; padding: 13px 16px; border-top: 1px solid var(--line); background: #f7f9fb; color: #6c8197; font-size: 8px; }
.message-panel { padding-bottom: 0; }
.compose-heading { justify-content: flex-start; }
.compose-field, .body-editor { margin: 18px 22px 0; display: block; }
.compose-field > span, .body-editor label > span { margin-bottom: 7px; display: block; color: #6f8093; font-size: 8px; font-weight: 800; letter-spacing: .7px; }
.compose-field input, .body-editor textarea { width: 100%; padding: 12px; border: 1px solid #d5dee7; border-radius: 6px; outline: 0; color: #31465d; }
.compose-field input:focus, .body-editor textarea:focus { border-color: #77a0da; box-shadow: 0 0 0 3px #2868e811; }
.body-editor { overflow: hidden; border: 1px solid #d5dee7; border-radius: 7px; }
.body-editor label { display: block; }
.body-editor label > span { padding: 12px 12px 0; }
.body-editor textarea { min-height: 235px; border: 0; border-radius: 0; resize: vertical; box-shadow: none !important; }
.signature-preview { padding: 15px 17px; border-top: 1px solid #dce4ec; background: #f7f9fb; }
.signature-preview small { color: #8293a5; font-size: 8px; font-weight: 800; letter-spacing: 1px; }
.signature-preview p { margin: 9px 0; color: #425970; font-size: 10px; line-height: 1.7; }
.signature-preview > span { color: #98a5b2; font-size: 8px; }
.message-panel footer { margin-top: 20px; padding: 16px 22px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); background: #f8fafb; border-radius: 0 0 9px 9px; }
.message-panel footer p { color: #8796a6; font-size: 9px; }
.field-error, .errorlist { margin: 10px 20px; padding: 9px 11px; border-radius: 5px; background: #fff0ef; color: #aa4843; font-size: 9px; list-style: none; }
@media (max-width: 900px) { .email-composer { grid-template-columns: 1fr; } .recipient-list { max-height: 300px; } }
@media (max-width: 620px) { .message-panel footer { align-items: flex-end; gap: 12px; } .message-panel footer p { max-width: 170px; } }
