.workspace.is-mail .view-switcher,
.workspace.is-mail .control-bar,
.workspace.is-mail .status-jump,
.workspace.is-mail .applied-filters { display: none; }

.mail-view { min-height: 0; padding: 0 28px 24px; overflow: hidden; }
.mail-view.is-active { display: flex; }
.mail-workspace { width: 100%; min-height: 0; display: grid; grid-template-columns: 218px minmax(330px, 390px) minmax(420px, 1fr); border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; box-shadow: 0 6px 22px rgba(28,47,60,.05); }

.mail-folders-pane { min-width: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: #f7f9fa; overflow: hidden; }
.mail-folders-pane > header { min-height: 62px; display: flex; align-items: center; gap: 9px; padding: 10px 12px 10px 17px; border-bottom: 1px solid var(--line); }
.mail-folders-pane > header > strong { color: #536170; font-size: 11px; letter-spacing: .075em; text-transform: uppercase; }
.mail-folders-pane > header > button:last-child { height: 35px; display: inline-flex; align-items: center; gap: 7px; margin-left: auto; border: 1px solid #c7dfe0; border-radius: 9px; padding: 0 10px; background: #e8f4f4; color: var(--accent-dark); cursor: pointer; font-size: 10.5px; font-weight: 780; }
.mail-folders-pane > header > button:last-child:hover { border-color: #9bc6c8; background: #dff0f0; }
.mail-folders-pane > header svg { width: 14px; height: 14px; }
.mail-folders-close { display: none; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 9px; padding: 0; background: transparent; color: #72808d; }
#mail-folders { min-height: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; padding: 11px 9px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #c9d3d9 transparent; }
.mail-folder { width: 100%; min-height: 38px; display: grid; grid-template-columns: 28px minmax(0,1fr) 16px; align-items: center; gap: 7px; border: 0; border-radius: 9px; padding: 0 9px 0 calc(8px + var(--mail-folder-depth, 0) * 10px); background: transparent; color: #657380; text-align: left; cursor: pointer; }
.mail-folder:hover { background: #edf2f4; color: #354454; }
.mail-folder.is-active { background: #e2f0f0; color: var(--accent-dark); box-shadow: inset 3px 0 #42a4a8; }
.mail-folder > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: #edf1f3; color: #82909b; }
.mail-folder.is-active > span { background: #cfe6e7; color: var(--accent); }
.mail-folder svg { width: 14px; height: 14px; }
.mail-folder > svg { width: 13px; height: 13px; justify-self: end; }
.mail-folder strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; font-weight: 690; }
.mail-folder-empty { margin: 14px; color: #8b97a1; font-size: 11px; line-height: 1.45; }
.mail-folders-pane > footer { min-height: 43px; display: flex; align-items: center; gap: 7px; padding: 0 17px; border-top: 1px solid var(--line); color: #7b8994; font-size: 9.5px; }
.mail-folders-pane > footer i { width: 7px; height: 7px; border-radius: 50%; background: #55a27d; box-shadow: 0 0 0 3px rgba(85,162,125,.12); }
.mail-folders-pane > footer.is-loading i { background: #9aa6af; animation: mail-pulse 1.2s ease-in-out infinite; }
.mail-folders-pane > footer.is-error { color: #a55a56; }
.mail-folders-pane > footer.is-error i { background: #c96b65; box-shadow: 0 0 0 3px rgba(201,107,101,.12); }

.mail-list-pane { min-width: 0; min-height: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: #fbfcfc; }
.mail-list-toolbar { min-height: 62px; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 15px; border-bottom: 1px solid var(--line); background: #fff; }
.mail-list-toolbar > div:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.mail-list-toolbar strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #293746; font-size: 13px; }
.mail-list-toolbar small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #8a96a0; font-size: 9px; }
.mail-toolbar-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.mail-toolbar-actions button { min-width: 35px; height: 35px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid #e0e7eb; border-radius: 9px; padding: 0 9px; background: #fff; color: #778591; cursor: pointer; }
.mail-toolbar-actions button:hover { background: #f2f6f7; color: #42515f; }
.mail-toolbar-actions button svg { width: 14px; height: 14px; }
#mail-unread-toggle span { display: none; }
#mail-unread-toggle i { width: 7px; height: 7px; border-radius: 50%; background: #aab4bc; }
#mail-unread-toggle.is-active { border-color: #9bc5c7; background: #e8f4f4; color: var(--accent-dark); }
#mail-unread-toggle.is-active i { background: var(--accent); box-shadow: 0 0 0 3px rgba(20,123,130,.12); }
.mail-folders-mobile { display: none; height: 35px; align-items: center; gap: 5px; border: 0; border-radius: 8px; padding: 0 7px; background: transparent; color: var(--accent-dark); font-size: 10px; font-weight: 750; }
.mail-folders-mobile svg { width: 15px; height: 15px; }
.mail-list { min-height: 0; flex: 1; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #c9d3d9 transparent; }
.mail-row { min-height: 82px; display: grid; grid-template-columns: minmax(0,1fr) 58px; align-items: stretch; border-bottom: 1px solid #e9eef1; background: #fff; position: relative; }
.mail-row:hover { background: #f7fafa; }
.mail-row.is-selected { background: #eaf4f4; }
.mail-row.is-selected::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--accent); }
.mail-row-main { min-width: 0; display: grid; grid-template-columns: 9px minmax(0,1fr) auto; grid-template-rows: auto auto; column-gap: 9px; row-gap: 5px; align-content: center; border: 0; padding: 11px 2px 11px 13px; background: transparent; text-align: left; cursor: pointer; }
.mail-unread-dot { grid-row: 1 / span 2; align-self: center; width: 7px; height: 7px; border-radius: 50%; background: transparent; }
.mail-row.is-unread .mail-unread-dot { background: #258b91; box-shadow: 0 0 0 3px rgba(37,139,145,.1); }
.mail-row-sender, .mail-row-subject { min-width: 0; display: flex; align-items: baseline; gap: 6px; }
.mail-row-sender strong, .mail-row-subject strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-row-sender strong { color: #334250; font-size: 11.5px; font-weight: 650; }
.mail-row.is-unread .mail-row-sender strong, .mail-row.is-unread .mail-row-subject strong { color: #182735; font-weight: 790; }
.mail-row-sender small, .mail-row-subject small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #98a2aa; font-size: 8.5px; }
.mail-row-subject strong { color: #55636f; font-size: 10.5px; font-weight: 590; }
.mail-row-main time { grid-column: 3; grid-row: 1; color: #87949e; font-size: 9px; white-space: nowrap; }
.mail-row-signals { display: flex; align-items: center; justify-content: flex-end; gap: 3px; padding-right: 9px; color: #9aa6ae; }
.mail-row-signals > svg { width: 12px; height: 12px; }
.mail-row-signals button { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 7px; padding: 0; background: transparent; color: #a2adb5; cursor: pointer; }
.mail-row-signals button:hover { background: #edf2f3; color: #667581; }
.mail-row-signals button.is-active { color: #c38a32; }
.mail-row-signals button svg { width: 14px; height: 14px; }
.mail-load-more { height: 42px; flex: 0 0 auto; border: 0; border-top: 1px solid var(--line); background: #fff; color: var(--accent-dark); cursor: pointer; font-size: 10.5px; font-weight: 750; }
.mail-load-more:hover { background: #f4f8f8; }
.mail-list-state { min-height: 100%; display: grid; place-content: center; justify-items: center; padding: 34px; color: #87949e; text-align: center; }
.mail-list-state > span { width: 45px; height: 45px; display: grid; place-items: center; margin-bottom: 10px; border-radius: 13px; background: #ecf3f4; color: var(--accent); }
.mail-list-state > span svg { width: 20px; height: 20px; }
.mail-list-state strong { color: #4f5e6c; font-size: 12px; }
.mail-list-state p { max-width: 240px; margin: 5px 0 0; font-size: 10px; line-height: 1.45; }
.mail-list-state button { height: 34px; margin-top: 12px; border: 1px solid #cfdcdf; border-radius: 8px; padding: 0 12px; background: #fff; color: var(--accent-dark); cursor: pointer; font-size: 10px; font-weight: 750; }
.mail-list-state.is-loading > span svg { animation: mail-spin 1.1s linear infinite; }
.mail-list-state.is-error > span { background: #fff0ee; color: #b15d58; }

.mail-reader { min-width: 0; min-height: 0; background: #fff; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #c9d3d9 transparent; }
.mail-reader-empty[hidden], .mail-reader-content[hidden] { display: none !important; }
.mail-reader-empty { min-height: 100%; display: grid; place-content: center; justify-items: center; padding: 40px; color: #8995a0; text-align: center; }
.mail-reader-empty > span { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 17px; background: #edf5f5; color: var(--accent); }
.mail-reader-empty svg { width: 26px; height: 26px; }
.mail-reader-empty strong { color: #53616e; font-size: 14px; }
.mail-reader-empty p { max-width: 320px; margin: 7px 0 0; font-size: 10.5px; line-height: 1.55; }
.mail-reader-content { min-height: 100%; }
.mail-reader-head { min-height: 62px; display: flex; align-items: center; gap: 12px; padding: 8px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.mail-reader-back { display: none; align-items: center; gap: 6px; border: 0; border-radius: 8px; padding: 8px; background: transparent; color: var(--accent-dark); font-size: 10.5px; font-weight: 740; }
.mail-reader-back svg { width: 15px; height: 15px; }
.mail-reader-actions { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.mail-reader-actions button { min-width: 35px; height: 35px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid #dce4e8; border-radius: 9px; padding: 0 10px; background: #fff; color: #697783; cursor: pointer; font-size: 10.5px; font-weight: 720; }
.mail-reader-actions button:hover { background: #f2f6f7; }
.mail-reader-actions button.is-active { border-color: #e5c589; background: #fff8e8; color: #b77c22; }
.mail-reader-actions svg { width: 15px; height: 15px; }
.mail-letter-head { padding: 23px 25px 18px; border-bottom: 1px solid #e8edef; }
.mail-letter-head h2 { margin: 0 0 20px; color: #1d2a37; font-size: clamp(18px,1.6vw,24px); line-height: 1.25; letter-spacing: -.022em; }
.mail-sender-line { display: grid; grid-template-columns: 39px minmax(0,1fr) auto; align-items: center; gap: 11px; }
.mail-sender-line > span { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 50%; background: #dceceb; color: #347276; font-size: 13px; font-weight: 820; }
.mail-sender-line > div { min-width: 0; display: grid; gap: 3px; }
.mail-sender-line strong, .mail-sender-line small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-sender-line strong { color: #344350; font-size: 11.5px; }
.mail-sender-line small, .mail-sender-line time { color: #8c98a2; font-size: 9.5px; }
.mail-address-details { margin: 14px 0 0 50px; color: #75838f; font-size: 9.5px; }
.mail-address-details summary { width: fit-content; cursor: pointer; }
.mail-address-details dl { display: grid; grid-template-columns: 55px minmax(0,1fr); gap: 6px 10px; margin: 10px 0 0; }
.mail-address-details dt { color: #9aa5ad; }
.mail-address-details dd { margin: 0; overflow-wrap: anywhere; }
.mail-parent-link { max-width: calc(100% - 50px); min-height: 34px; display: inline-grid; grid-template-columns: 17px minmax(0,auto) 14px; align-items: center; gap: 7px; margin: 13px 0 0 50px; border: 1px solid #d6e3e4; border-radius: 9px; padding: 0 10px; background: #f2f8f8; color: var(--accent-dark); cursor: pointer; font-size: 10px; font-weight: 700; }
.mail-parent-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-parent-link svg { width: 14px; height: 14px; }
.mail-letter-body { min-height: 320px; background: #fff; overflow: hidden; }
.mail-letter-frame { width: 100%; min-height: 320px; display: block; border: 0; background: #fff; }
.mail-letter-attachments { margin: 0 25px 25px; padding-top: 18px; border-top: 1px solid #e8edef; }
.mail-letter-attachments h3 { display: flex; align-items: center; gap: 7px; margin: 0 0 10px; color: #53616d; font-size: 11px; }
.mail-letter-attachments h3 span { min-width: 20px; height: 20px; display: grid; place-items: center; border-radius: 999px; background: #e8f2f2; color: var(--accent); font-size: 9px; }
.mail-letter-attachments > div { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 7px; }
.mail-letter-attachments a { min-width: 0; min-height: 52px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; grid-template-rows: auto auto; align-items: center; column-gap: 8px; border: 1px solid #dfe6ea; border-radius: 10px; padding: 8px; color: #4b5966; text-decoration: none; }
.mail-letter-attachments a:hover { border-color: #a9c9cb; background: #f5fafa; }
.mail-letter-attachments a > span { grid-row: 1 / span 2; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: #e8f2f2; color: var(--accent); }
.mail-letter-attachments a strong, .mail-letter-attachments a small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-letter-attachments a strong { font-size: 10px; }
.mail-letter-attachments a small { color: #909ba4; font-size: 8.5px; }
.mail-letter-attachments a svg { width: 15px; height: 15px; }
.mail-letter-attachments a > svg { grid-row: 1 / span 2; color: #87949d; }

.mail-compose-dialog { width: min(720px,calc(100vw - 32px)); max-height: min(820px,calc(100dvh - 32px)); border: 0; border-radius: 17px; padding: 0; background: #fff; box-shadow: 0 28px 80px rgba(20,37,49,.27); }
.mail-compose-dialog::backdrop { background: rgba(22,34,43,.48); backdrop-filter: blur(4px); }
.mail-compose-dialog form { max-height: inherit; display: flex; flex-direction: column; }
.mail-compose-dialog header { min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.mail-compose-dialog header h2 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.mail-compose-dialog header button { width: 37px; height: 37px; display: grid; place-items: center; border: 0; border-radius: 9px; padding: 0; background: transparent; color: #6e7b87; cursor: pointer; }
.mail-compose-dialog header button:hover { background: #edf2f4; }
.mail-compose-dialog header svg { width: 18px; height: 18px; }
.mail-compose-fields { min-height: 0; display: grid; gap: 12px; padding: 16px 18px; overflow-y: auto; }
.mail-compose-fields > label { display: grid; gap: 6px; color: #5d6b78; font-size: 10.5px; font-weight: 720; }
.mail-compose-fields > label > span b { color: #b45d58; }
.mail-compose-fields input:not([type="hidden"]), .mail-compose-fields textarea, .mail-from-select > button { width: 100%; border: 1px solid #d6dfe4; border-radius: 9px; background: #fbfcfd; color: #24323f; outline: 0; }
.mail-compose-fields input:not([type="hidden"]), .mail-from-select > button { height: 41px; padding: 0 11px; }
.mail-compose-fields textarea { min-height: 220px; resize: vertical; padding: 11px; line-height: 1.5; }
.mail-compose-fields input:focus, .mail-compose-fields textarea:focus, .mail-from-select > button:focus { border-color: #74afb3; background: #fff; box-shadow: 0 0 0 3px rgba(20,123,130,.1); }
.mail-from-select { position: relative; }
.mail-from-select > button { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; cursor: pointer; }
.mail-from-select > button:disabled { color: #98a2aa; cursor: not-allowed; }
.mail-from-select > button svg { width: 15px; height: 15px; transform: rotate(90deg); transition: transform .15s ease; }
.mail-from-select > button[aria-expanded="true"] svg { transform: rotate(-90deg); }
#mail-from-options { position: absolute; z-index: 5; inset: calc(100% + 5px) 0 auto; display: none; border: 1px solid #d7e0e5; border-radius: 10px; padding: 5px; background: #fff; box-shadow: 0 14px 35px rgba(28,43,55,.16); }
#mail-from-options.is-open { display: grid; }
#mail-from-options button { min-height: 37px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 0; border-radius: 7px; padding: 0 9px; background: transparent; color: #53616e; text-align: left; cursor: pointer; font-size: 11px; }
#mail-from-options button:hover, #mail-from-options button[aria-selected="true"] { background: #eaf4f4; color: var(--accent-dark); }
#mail-from-options svg { width: 14px; height: 14px; }
.mail-compose-fields details { border: 1px solid #e1e7eb; border-radius: 9px; padding: 0 10px; }
.mail-compose-fields details summary { min-height: 38px; display: flex; align-items: center; color: #76838f; cursor: pointer; font-size: 10px; font-weight: 700; }
.mail-compose-fields details > div { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 0 10px; }
.mail-compose-fields details label { display: grid; gap: 5px; color: #697783; font-size: 9.5px; }
.mail-compose-attachments { display: flex; flex-wrap: wrap; gap: 6px; }
.mail-compose-attachments > span { max-width: 100%; height: 38px; display: grid; grid-template-columns: 23px minmax(0,1fr) auto 27px; align-items: center; gap: 6px; border: 1px solid #dae4e7; border-radius: 9px; padding: 0 5px 0 7px; background: #f5f9f9; color: #5c6a76; }
.mail-compose-attachments > span > span { color: var(--accent); }
.mail-compose-attachments svg { width: 14px; height: 14px; }
.mail-compose-attachments strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9.5px; }
.mail-compose-attachments small { color: #8c98a1; font-size: 8.5px; }
.mail-compose-attachments button { width: 27px; height: 27px; display: grid; place-items: center; border: 0; border-radius: 7px; padding: 0; background: transparent; color: #87939c; cursor: pointer; }
.mail-compose-error { margin: 0; border: 1px solid #efcfca; border-radius: 9px; padding: 9px 11px; background: #fff2f0; color: #a65450; font-size: 10.5px; }
.mail-compose-dialog footer { min-height: 64px; display: flex; align-items: center; gap: 7px; padding: 11px 18px; border-top: 1px solid var(--line); background: #f8fafb; }
.mail-compose-dialog footer span { flex: 1; }
.mail-compose-dialog footer button { height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid #d7e0e5; border-radius: 9px; padding: 0 13px; background: #fff; color: #64727f; cursor: pointer; font-size: 10.5px; font-weight: 740; }
.mail-compose-dialog footer button:hover { background: #f0f4f5; }
.mail-compose-dialog footer button.mail-send-button { border-color: var(--accent); background: var(--accent); color: #fff; }
.mail-compose-dialog footer button.mail-send-button:hover { background: var(--accent-dark); }
.mail-compose-dialog footer button:disabled { opacity: .55; cursor: wait; }
.mail-compose-dialog footer svg { width: 15px; height: 15px; }
.mail-compose-dialog footer svg.is-spinning { animation: mail-spin .9s linear infinite; }

@keyframes mail-spin { to { transform: rotate(360deg); } }
@keyframes mail-pulse { 50% { opacity: .35; } }

@media (max-width: 1180px) {
  .mail-workspace { grid-template-columns: 190px minmax(310px, 350px) minmax(360px,1fr); }
  .mail-folders-pane > header > strong { display: none; }
  .mail-folders-pane > header > button:last-child { margin-left: 0; width: 100%; justify-content: center; }
  .mail-reader-actions button span { display: none; }
  .mail-letter-head { padding-inline: 20px; }
  .mail-letter-attachments { margin-inline: 20px; }
}

@media (max-width: 760px) {
  .workspace.is-mail .topbar { grid-template-columns: auto minmax(0,1fr) auto; }
  .workspace.is-mail .page-head { display: none; }
  .mail-view { padding: 0 0 72px; }
  .mail-workspace { display: block; border: 0; border-radius: 0; box-shadow: none; position: relative; overflow: hidden; }
  .mail-list-pane, .mail-folders-pane, .mail-reader { position: absolute; inset: 0; width: 100%; border: 0; transition: transform .2s ease; }
  .mail-list-pane { transform: translateX(0); }
  .mail-folders-pane { z-index: 3; transform: translateX(-102%); }
  .mail-reader { z-index: 4; transform: translateX(102%); }
  .mail-workspace.is-folders-open .mail-folders-pane { transform: translateX(0); }
  .mail-workspace.is-reader-open .mail-reader { transform: translateX(0); }
  .mail-folders-pane > header { min-height: 59px; padding: 8px 12px; }
  .mail-folders-pane > header > strong { display: block; }
  .mail-folders-pane > header > button:last-child { width: auto; margin-left: auto; }
  .mail-folders-close { display: grid; }
  .mail-list-toolbar { min-height: 59px; padding: 7px 9px; }
  .mail-folders-mobile { display: inline-flex; }
  .mail-row { min-height: 76px; grid-template-columns: minmax(0,1fr) 48px; }
  .mail-row-main { padding-left: 9px; }
  .mail-row-sender small, .mail-row-subject small { display: none; }
  .mail-reader-head { min-height: 59px; padding: 7px 10px; }
  .mail-reader-back { display: inline-flex; }
  .mail-reader-actions button { padding: 0 9px; }
  .mail-letter-head { padding: 19px 16px 15px; }
  .mail-letter-head h2 { margin-bottom: 17px; font-size: 19px; }
  .mail-sender-line { grid-template-columns: 37px minmax(0,1fr); }
  .mail-sender-line > span { width: 37px; height: 37px; }
  .mail-sender-line time { grid-column: 2; }
  .mail-address-details, .mail-parent-link { margin-left: 48px; }
  .mail-letter-body { min-height: 360px; }
  .mail-letter-attachments { margin: 0 16px 20px; }
  .mail-compose-dialog { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .mail-compose-dialog form { height: 100%; }
  .mail-compose-dialog header { min-height: 65px; padding: 10px 14px; }
  .mail-compose-fields { flex: 1; padding: 13px 14px; }
  .mail-compose-fields details > div { grid-template-columns: 1fr; }
  .mail-compose-fields textarea { min-height: 210px; }
  .mail-compose-dialog footer { min-height: 67px; padding: 10px 14px max(10px,env(safe-area-inset-bottom)); }
  #mail-compose-cancel { display: none; }
  #mail-compose-attach { width: 42px; padding: 0; font-size: 0; }
  .mail-compose-dialog footer button.mail-send-button { padding-inline: 16px; }
}

@media (min-width: 761px) {
  body.compact-ui .mail-view { padding-inline: 22px; padding-bottom: 18px; }
  body.compact-ui .mail-workspace { grid-template-columns: 196px minmax(310px,360px) minmax(380px,1fr); }
  body.compact-ui .mail-folders-pane > header,
  body.compact-ui .mail-list-toolbar,
  body.compact-ui .mail-reader-head { min-height: 52px; }
  body.compact-ui .mail-row { min-height: 68px; }
  body.compact-ui .mail-letter-head { padding-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .mail-list-pane, .mail-folders-pane, .mail-reader, .mail-from-select > button svg { transition: none; }
}
