.mail-workspace { color: #4d514e; min-width: 0; }
.mail-workspace button:focus-visible, .mail-workspace a:focus-visible,
.mail-compose button:focus-visible, .mail-compose input:focus-visible, .mail-compose textarea:focus-visible,
.mail-contacts input:focus-visible { outline-color: var(--mail-accent, var(--green, #3d7f58)); }
.mail-compose input:focus, .mail-compose textarea:focus, .mail-compose select:focus { border-color: #97b99b; box-shadow: 0 0 0 2px #6b9d7120; }
.mail-heading { align-items: center; }
.mail-heading-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.mail-readiness { margin-bottom: 20px; padding: 16px 18px; background: #f5f8f5; border: 1px solid #e2eae1; border-radius: 10px; }
.mail-readiness-title { display: flex; align-items: center; gap: 9px; color: #52705a; font-size: 13px; }
.mail-readiness-title b { font-weight: 500; }
.mail-readiness p { margin: 7px 0 12px 27px; color: #778078; font-size: 12px; line-height: 1.65; }
.mail-readiness-flags { display: flex; flex-wrap: wrap; gap: 16px; margin-left: 27px; }
.mail-readiness-flags span { display: inline-flex; align-items: center; gap: 6px; color: #858b85; font-size: 11px; }
.mail-readiness-flags i { width: 5px; height: 5px; border-radius: 50%; background: #b9beb7; }
.mail-readiness-flags .ready { color: #4e7657; }
.mail-readiness-flags .ready i { background: #7b9d7e; }
.mail-notice { display: flex; align-items: center; gap: 9px; border: 1px solid #dfe8de; background: #f6f9f5; color: #5d775e; border-radius: 8px; padding: 11px 13px; margin-bottom: 17px; font-size: 12px; }
.mail-notice > span { flex: 1; }
.mail-icon-button { display: inline-flex; flex-shrink: 0; justify-content: center; align-items: center; width: 30px; height: 30px; min-height: 30px; padding: 0; color: #838a83; border: 1px solid transparent; border-radius: 6px; background: transparent; transition: background 140ms ease, color 140ms ease; cursor: pointer; }
.mail-icon-button:hover:not(:disabled) { color: #4b604f; background: #f0f3ef; }
.mail-icon-button:disabled { opacity: .4; cursor: default; }
.mail-shell { display: grid; grid-template-columns: 176px minmax(230px, 315px) minmax(0, 1fr); min-height: 620px; height: min(760px, calc(100dvh - 220px)); border: 1px solid #e4e7e2; border-radius: 12px; background: #fff; overflow: hidden; box-shadow: 0 1px 3px #20302003; }
.mail-folders { display: flex; flex-direction: column; min-width: 0; background: #fbfcfa; border-right: 1px solid #e9ece6; padding: 17px 10px 15px; }
.mail-mailbox { display: flex; align-items: center; gap: 9px; padding: 3px 8px 23px; }
.mail-mailbox-icon { display: inline-flex; align-items: center; justify-content: center; width: 31px; height: 31px; flex-shrink: 0; background: #edf2e9; color: #7a9474; border-radius: 8px; }
.mail-mailbox b { display: block; color: #5f6c5d; font-size: 11px; font-weight: 500; }
.mail-mailbox small { display: block; color: #7d8673; font-size: 9px; margin-top: 2px; }
.mail-folders nav { display: flex; flex-direction: column; gap: 4px; }
.mail-folders nav button { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 8px; border: 0; border-radius: 7px; background: transparent; color: #737e6b; text-align: left; font-size: 11px; cursor: pointer; }
.mail-folders nav button > span { flex: 1; white-space: nowrap; }
.mail-folders nav button b { font-size: 10px; font-weight: 450; color: #77826c; }
.mail-folders nav button:hover { background: #f0f4ed; }
.mail-folders nav button.active { background: #eaf1e4; color: #5e7853; }
.mail-folders nav button.active b { color: #7c906e; }
.mail-folders-foot { display: flex; align-items: center; gap: 6px; margin-top: auto; padding: 24px 9px 2px; color: #7d8673; font-size: 9px; }
.mail-private-dot { width: 4px; height: 4px; background: #b0bea4; border-radius: 50%; }
.mail-list-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-right: 1px solid #e9ece6; }
.mail-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 20px 18px 17px; border-bottom: 1px solid #edf0e9; min-height: 77px; }
.mail-list-heading h3 { color: #626e5a; margin: 0; font-size: 13px; font-weight: 500; letter-spacing: -.015em; }
.mail-list-heading small { display: block; color: #7c8671; margin-top: 4px; font-size: 10px; overflow-wrap: anywhere; }
.mail-message-list { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #dce3d5 transparent; }
.mail-message-row { display: block; width: 100%; padding: 19px 18px 15px; color: #849175; background: #fff; border: 0; border-bottom: 1px solid #edf0e9; text-align: left; cursor: pointer; transition: background 120ms ease; }
.mail-message-row:hover { background: #f9fbf7; }
.mail-message-row.selected { background: #f0f5eb; box-shadow: inset 2px 0 #a8be91; }
.mail-message-meta { display: flex; align-items: center; gap: 8px; justify-content: space-between; margin-bottom: 7px; }
.mail-sender { display: flex; align-items: center; gap: 6px; color: #6d7c5c; font-size: 11px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
.mail-message-meta time { color: #818b76; font-size: 9px; white-space: nowrap; }
.mail-unread-dot { display: inline-block; flex-shrink: 0; width: 5px; height: 5px; border-radius: 50%; background: #96ae80; }
.mail-subject { display: block; font-size: 12px; line-height: 1.5; font-weight: 450; color: #5f744e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-message-row.unread .mail-subject { font-weight: 550; color: #657b50; }
.mail-message-row.unread .mail-sender { color: #7c9068; }
.mail-snippet { font-size: 11px; line-height: 1.6; color: #818b76; margin: 5px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.mail-message-tags { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; min-height: 0; }
.mail-message-tags:empty { display: none; }
.mail-attachment-count { display: inline-flex; align-items: center; gap: 3px; color: #abb79f; font-size: 9px; margin-left: auto; }
.mail-delivery { display: inline-flex; align-items: center; padding: 3px 6px; border-radius: 4px; background: #f0f3ec; color: #778762; font-size: 9px; line-height: 1.4; }
.mail-delivery-accepted, .mail-delivery-delivered { color: #69834e; background: #eef4e7; }
.mail-delivery-failed { color: #9b6055; background: #faf0ed; }
.mail-delivery-unknown, .mail-delivery-sending { color: #8b7651; background: #faf6e9; }
.mail-detail-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #fff; overflow-y: auto; }
.mail-detail-mobile-bar { display: none; }
.mail-detail-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 57px; padding: 12px 22px; border-bottom: 1px solid #f0f2ed; }
.mail-detail-toolbar > div { display: flex; gap: 3px; margin-left: auto; }
.mail-detail-content { padding: 28px 27px; }
.mail-detail-subject { font-size: 22px; line-height: 1.45; font-weight: 450; color: #59664e; letter-spacing: -.025em; margin: 0 0 25px; overflow-wrap: anywhere; }
.mail-sender-block { display: flex; align-items: center; gap: 9px; }
.mail-sender-block > div { min-width: 0; flex: 1; }
.mail-sender-block b { display: block; font-size: 12px; font-weight: 500; color: #718362; overflow-wrap: anywhere; }
.mail-sender-block small { display: block; font-size: 10px; color: #7a856e; margin-top: 2px; overflow-wrap: anywhere; }
.mail-sender-block time { flex-shrink: 0; color: #7a856e; font-size: 9px; text-align: right; }
.mail-detail-recipients { padding: 14px 0 17px 37px; border-bottom: 1px solid #edf1e7; }
.mail-detail-recipients p { color: #77836c; font-size: 10px; line-height: 1.7; margin: 2px 0; overflow-wrap: anywhere; }
.mail-detail-recipients b { font-weight: 450; color: #8a9b7a; margin-right: 5px; }
.mail-body { padding: 28px 0 30px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.9; color: #5a6950; }
.mail-accepted-note { color: #748466; font-size: 10px; border: 1px solid #eef2e8; background: #fafcf7; border-radius: 6px; padding: 9px 11px; margin-top: 18px; line-height: 1.6; }
.mail-detail-attachments { margin-bottom: 24px; }
.mail-detail-attachments h4 { font-size: 11px; font-weight: 450; color: #6f825d; margin: 0 0 10px; }
.mail-file { display: flex; align-items: center; gap: 9px; border: 1px solid #e7ecdf; background: #fafcf7; border-radius: 7px; padding: 10px 11px; color: #788969; margin-top: 7px; text-decoration: none; min-width: 0; }
.mail-file > span:first-of-type { flex: 1; min-width: 0; }
.mail-file b { display: block; color: #637b50; font-size: 11px; font-weight: 450; overflow-wrap: anywhere; }
.mail-file small { display: block; font-size: 9px; color: #7b8c68; margin-top: 3px; }
a.mail-file:hover { border-color: #cddabb; background: #f5f9ee; }
.mail-download-label { font-size: 9px; color: #778966; }
.mail-reply-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; border-top: 1px solid #edf1e7; padding-top: 20px; }
.mail-reply-actions .button { font-size: 11px; padding: 7px 10px; min-height: 32px; }
.mail-reply-actions .text-button { font-size: 10px; color: #748563; }
.mail-empty { display: flex; align-items: center; justify-content: center; flex-direction: column; margin: auto 0; padding: 55px 25px; min-height: 270px; text-align: center; }
.mail-empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; background: #f4f7ef; border: 1px solid #edf1e6; color: #c2ceaf; border-radius: 16px; margin-bottom: 18px; }
.mail-empty h3 { color: #68745f; font-size: 14px; font-weight: 450; margin: 0 0 8px; line-height: 1.5; }
.mail-empty p { color: #737c6b; font-size: 11px; line-height: 1.8; max-width: 280px; margin: 0; }
.mail-load-more { display: flex; margin: 16px auto; font-size: 11px; }
.mail-list-loading { padding: 24px 18px; }
.mail-loading-line { display: block; height: 56px; border-radius: 7px; background: linear-gradient(90deg,#f4f7ef,#fafcf7,#f4f7ef); margin-bottom: 15px; }
.mail-list-loading p { color: #7a856e; font-size: 11px; }
.mail-compose { display: flex; flex-direction: column; gap: 15px; color: #67745e; }
.mail-compose-from { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding-bottom: 14px; border-bottom: 1px solid #edf1e7; font-size: 11px; }
.mail-compose-from > span { color: #7b8a6d; min-width: 20px; }
.mail-compose-from b { font-weight: 450; color: #697e57; }
.mail-compose-from small { color: #7a856e; font-size: 10px; }
.mail-compose .field { margin: 0; min-width: 0; }
.mail-compose .field > span { font-size: 11px; color: #6d8258; margin-bottom: 6px; }
.mail-compose input, .mail-compose textarea, .mail-compose select { width: 100%; color: #60774d; border-color: #e3ead9; font-size: 12px; background: #fff; }
.mail-compose input::placeholder, .mail-compose textarea::placeholder { color: #bcc8ac; }
.mail-compose input:disabled, .mail-compose textarea:disabled { background: #fafcf7; color: #7c8d68; }
.mail-recipient-field { display: flex; align-items: flex-end; gap: 10px; }
.mail-recipient-field > label { flex: 1; }
.mail-recipient-toggles { display: flex; align-items: center; gap: 3px; padding-bottom: 3px; }
.mail-recipient-toggles button { border: 0; background: transparent; color: #7b8f65; padding: 8px 6px; font-size: 11px; cursor: pointer; }
.mail-recipient-toggles button.active { color: #859c6e; background: #f0f5e9; border-radius: 5px; }
.mail-contact-picker { border: 1px solid #edf1e7; border-radius: 7px; background: #fcfdfb; }
.mail-contact-picker > summary { display: flex; align-items: center; gap: 7px; padding: 9px 12px; list-style: none; color: #6c8059; font-size: 10px; cursor: pointer; }
.mail-contact-picker > summary::-webkit-details-marker { display: none; }
.mail-contact-picker[open] > summary { border-bottom: 1px solid #edf1e7; }
.mail-contact-picker .mail-contacts { padding: 0 13px 13px; }
.mail-contact-target { display: flex; align-items: center; justify-content: flex-end; gap: 7px; padding: 9px 13px 4px; color: #7c896d; font-size: 10px; }
.mail-contact-target select { width: 70px; min-height: 28px; padding: 4px 7px; font-size: 10px; }
.mail-compose textarea.mail-compose-body { min-height: 240px; resize: vertical; line-height: 1.8; padding: 13px; }
.mail-attach-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.mail-attach-button { display: inline-flex; align-items: center; gap: 7px; color: #738960; font-size: 11px; background: #f8faf4; border: 1px solid #e8eedf; border-radius: 6px; padding: 7px 10px; position: relative; cursor: pointer; }
.mail-attach-button input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; padding: 0; }
.mail-attach-button:focus-within { outline: 2px solid #bbcca4; outline-offset: 2px; }
.mail-attach-button.disabled { opacity: .5; cursor: default; }
.mail-attach-row > small { color: #7a856e; font-size: 10px; }
.mail-compose-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; padding-top: 18px; border-top: 1px solid #eaf0e0; }
.mail-compose-footer > div { display: flex; gap: 8px; }
.mail-compose-footer .button { font-size: 12px; }
.mail-save-state { color: #7a856e; font-size: 10px; line-height: 1.6; }
.mail-success { display: flex; align-items: center; gap: 7px; color: #67864d; font-size: 11px; margin: 0; line-height: 1.7; }
.mail-compose-warning { border: 1px solid #eee8d8; border-radius: 7px; padding: 10px 12px; background: #fcfaf3; color: #8c7953; font-size: 11px; line-height: 1.7; margin: 0; }
.mail-compose-warning p { margin: 0 0 9px; }
.mail-compose-warning .button { min-height: 30px; padding: 6px 9px; font-size: 10px; }
.mail-muted { color: #747d6c; font-size: 11px; line-height: 1.7; }
.mail-contact-search { display: flex; align-items: center; gap: 8px; border: 1px solid #e5ecdb; border-radius: 7px; color: #81956b; padding-left: 10px; }
.mail-contact-search input { border: 0; box-shadow: none; min-height: 34px; width: 100%; font-size: 11px; background: transparent; color: #6b8255; }
.mail-contact-list { max-height: 230px; overflow-y: auto; padding: 10px 0; }
.mail-contact { display: flex; align-items: center; gap: 9px; padding: 10px 2px; border-bottom: 1px solid #f0f4e9; }
.mail-contact > div { min-width: 0; flex: 1; }
.mail-contact b { display: block; color: #6c8355; font-size: 11px; font-weight: 450; overflow-wrap: anywhere; }
.mail-contact small { display: block; color: #7a856e; font-size: 10px; margin-top: 3px; overflow-wrap: anywhere; }
.mail-contact-form { border-top: 1px solid #eaf0e0; padding-top: 17px; display: grid; gap: 12px; }
.mail-contact-form h4 { color: #6f8758; font-size: 12px; font-weight: 450; margin: 0; }
.mail-contact-form .field > span { font-size: 11px; color: #738264; }
.mail-contact-form > .button { justify-self: start; font-size: 11px; }
.mail-back { display: inline-flex; align-items: center; gap: 7px; background: transparent; border: 0; color: #91a978; font-size: 12px; padding: 8px 0; cursor: pointer; }
@media (max-width: 1250px) {
  .mail-shell { grid-template-columns: 156px minmax(205px, 270px) minmax(0, 1fr); }
  .mail-detail-content { padding: 24px 20px; }
  .mail-folders nav button { font-size: 10px; gap: 6px; }
  .mail-sender-block { flex-wrap: wrap; }
  .mail-sender-block time { width: 100%; text-align: left; padding-left: 37px; margin-top: 3px; }
}
@media (max-width: 1050px) {
  .mail-shell { grid-template-columns: minmax(230px, 38%) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); min-height: 600px; }
  .mail-folders { grid-column: 1 / -1; padding: 10px 12px; border-right: 0; border-bottom: 1px solid #e8edde; flex-direction: row; }
  .mail-mailbox, .mail-folders-foot { display: none; }
  .mail-folders nav { flex-direction: row; width: 100%; gap: 4px; }
  .mail-folders nav button { flex: 1; justify-content: center; }
  .mail-folders nav button > span { flex: none; }
  .mail-folders nav button b { margin-left: 3px; }
}
@media (max-width: 700px) {
  .mail-heading { align-items: flex-start; flex-direction: column; gap: 15px; }
  .mail-heading-actions { width: 100%; }
  .mail-heading-actions .button { flex: 1; justify-content: center; font-size: 11px; }
  .mail-readiness { padding: 13px 14px; }
  .mail-readiness-title { font-size: 12px; align-items: flex-start; }
  .mail-readiness p { margin: 8px 0 11px; font-size: 11px; }
  .mail-readiness-flags { margin-left: 0; gap: 11px; }
  .mail-readiness-flags span { font-size: 10px; }
  .mail-shell { display: flex; flex-direction: column; min-height: 520px; height: calc(100dvh - 270px); border-radius: 10px; }
  .mail-folders { flex: none; padding: 9px 6px; }
  .mail-folders nav { gap: 3px; }
  .mail-folders nav button { font-size: 9px; padding: 7px 5px; min-height: 34px; flex-wrap: wrap; gap: 4px; }
  .mail-folders nav button > svg { display: none; }
  .mail-folders nav button > span { white-space: normal; text-align: center; }
  .mail-folders nav button b { font-size: 9px; margin-left: 0; }
  .mail-list-pane { flex: 1; min-height: 0; border-right: 0; }
  .mail-list-heading { padding: 15px 17px; min-height: 66px; }
  .mail-message-row { padding: 18px 17px; }
  .mail-sender { font-size: 12px; }
  .mail-subject { font-size: 13px; }
  .mail-snippet { font-size: 12px; }
  .mail-detail-pane { display: none; }
  .mail-has-detail .mail-list-pane, .mail-has-detail .mail-folders { display: none; }
  .mail-has-detail .mail-detail-pane { display: flex; flex: 1; }
  .mail-detail-mobile-bar { display: block; padding: 7px 16px; border-bottom: 1px solid #edf2e4; }
  .mail-detail-toolbar { min-height: 48px; padding: 8px 14px; }
  .mail-detail-content { padding: 23px 18px; }
  .mail-detail-subject { font-size: 21px; margin-bottom: 22px; }
  .mail-sender-block time { font-size: 9px; }
  .mail-body { font-size: 13px; padding: 23px 0; }
  .mail-compose-footer { align-items: flex-start; flex-direction: column; gap: 10px; }
  .mail-compose-footer > div { width: 100%; }
  .mail-compose-footer .button { flex: 1; justify-content: center; font-size: 11px; }
  .mail-compose textarea.mail-compose-body { min-height: 210px; }
  .mail-download-label { display: none; }
}
.mail-address-bar{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:26px;padding:16px 20px;background:#fff;border:1px solid #e4e9e5;border-radius:14px}.mail-address-bar label{display:grid;gap:6px;font-size:12px;font-weight:600;color:#69766d;min-width:0;flex:1;max-width:440px}.mail-address-bar select{width:100%;min-height:40px;padding:8px 12px;border:1px solid #dce5de;border-radius:9px;background:#f8faf8;color:#263a2c;font:inherit;font-size:14px}.mail-management-intro{color:#69766d;line-height:1.65;margin:0 0 22px}.mail-management-grid{display:grid;grid-template-columns:minmax(180px,.85fr) minmax(0,1.4fr);gap:24px}.mail-address-list{display:flex;flex-direction:column;gap:8px;max-height:540px;overflow:auto}.mail-address-item{display:grid;gap:5px;text-align:left;padding:14px;border:1px solid #e4e9e5;border-radius:10px;background:white;overflow-wrap:anywhere;color:#34463a}.mail-address-item.active{background:#edf5ee;border-color:#80ab8b}.mail-address-item b{font-size:13px}.mail-address-item small,.mail-address-item span{font-size:11px;color:#778379}.mail-address-form{min-width:0}.mail-address-form h3{margin:0 0 18px}.mail-assignees{border:1px solid #e4e9e5;border-radius:10px;padding:12px;max-height:230px;overflow:auto;margin:20px 0 12px}.mail-assignees legend{font-size:12px;font-weight:600;padding:0 6px}.mail-assignees label{display:flex;align-items:center;gap:10px;padding:10px 4px;cursor:pointer}.mail-assignees input[type=checkbox]{width:17px;height:17px;accent-color:#3d7f58;flex-shrink:0}.mail-assignees span{display:grid;gap:3px;min-width:0}.mail-assignees b{font-size:13px}.mail-assignees small{font-size:11px;color:#778379;overflow-wrap:anywhere}@media(max-width:640px){.mail-address-bar{align-items:stretch;flex-direction:column;padding:14px}.mail-address-bar label{max-width:none}.mail-management-grid{grid-template-columns:1fr}.mail-address-list{max-height:180px}.mail-management-intro{font-size:13px}}
