.mail-shell { --mail-border: #e5eaf1; --mail-blue: #2563eb; box-sizing: border-box; width: min(1440px, calc(100vw - 40px)); max-width: none; height: min(940px, calc(100dvh - 40px)); max-height: none; padding: 0; border: 1px solid var(--mail-border); border-radius: 20px; background: #fff; color: #243650; font-family: Inter, system-ui, sans-serif; box-shadow: 0 28px 90px #12274b30; }
.mail-shell[open] { display: flex; flex-direction: column; overflow: hidden; }
.mail-shell.is-maximized { width: 100vw; height: 100dvh; margin: 0; border: 0; border-radius: 0; }
.mail-shell::backdrop { background: #14264080; backdrop-filter: blur(5px); }
.mail-shell *, .mail-callback * { box-sizing: border-box; }
.mail-shell [hidden] { display: none !important; }
.mail-shell button, .mail-shell input, .mail-shell select, .mail-shell textarea { font: inherit; }
.mail-shell button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 13px; border: 1px solid #dce5f1; border-radius: 10px; background: #fff; color: #40536b; cursor: pointer; font-size: 12px; font-weight: 600; transition: background .15s, border-color .15s; }
.mail-shell button:hover { background: #f0f5ff; border-color: #bdcff0; }
.mail-shell button:disabled { opacity: .48; cursor: default; }
.mail-shell :is(input,select,textarea) { min-height: 42px; padding: 11px 12px; border: 1px solid #dce4ef; border-radius: 9px; background: #fff; color: #243650; font-size: 14px; }
.mail-shell :is(button,input,select,textarea,a,summary):focus-visible { outline: 3px solid #80b2ff; outline-offset: 2px; }
.mail-shell .mail-primary { background: var(--mail-blue); color: #fff; border-color: var(--mail-blue); box-shadow: 0 3px 7px #2563eb18; }
.mail-shell .mail-primary:hover { background: #1d50c3; border-color: #1d50c3; }
.mail-icon { width: 18px; height: 18px; flex: 0 0 18px; }
.mail-shell .mail-icon-button { width: 38px; min-height: 38px; padding: 8px; flex-shrink: 0; }
.mail-shell .mail-icon-button.is-starred { color: #b87909; background: #fff8de; border-color: #f7df9b; }
.mail-header { flex-shrink: 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 17px 24px; border-bottom: 1px solid var(--mail-border); background: #fff; }
.mail-header h1 { margin: 3px 0 0; font-size: 23px; letter-spacing: -.6px; }
.mail-header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.mail-shell .mail-size-toggle { display: inline-flex; align-items: center; gap: 8px; }
.mail-size-icon { flex-shrink: 0; }
.mail-size-restore, .is-maximized .mail-size-expand { display: none; }
.is-maximized .mail-size-restore { display: inline; }
.mail-eyebrow { color: #8492a6; font-size: 10px; letter-spacing: .12em; font-weight: 700; }
.mail-shell #mail-notice { flex-shrink: 0; padding: 12px 24px; background: #edf8f1; color: #27633b; font-size: 13px; line-height: 1.6; max-height: 25dvh; overflow: auto; }
.mail-shell #mail-notice.is-error { background: #fff2ee; color: #8a3925; }
.mail-shell #mail-notice a { color: inherit; font-weight: 700; text-decoration: underline; }
.mail-shell #mail-main { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: auto; }
.mail-setup-help { margin-top: 20px; padding: 16px; border: 1px solid #dce5f1; border-radius: 10px; color: #526780; font-size: 13px; line-height: 1.7; }
.mail-setup-help summary { cursor: pointer; font-weight: 600; }
.mail-setup-help code { display: block; overflow-wrap: anywhere; padding: 6px 0; color: #29476a; }
.mail-setup-help li + li { margin-top: 10px; }
.mail-connect { width: 100%; max-width: 880px; padding: 40px 30px; margin: auto; }
.mail-connect > h2 { font-size: 29px; letter-spacing: -.8px; margin: 12px 0; }
.mail-connect > p { line-height: 1.8; color: #687a92; font-size: 14px; }
.mail-providers { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 30px 0; }
.mail-provider { padding: 25px; border: 1px solid var(--mail-border); border-radius: 16px; background: linear-gradient(135deg, #f8faff, white); }
.mail-provider-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #e9f1ff; color: #2465d9; font-size: 25px; font-weight: 800; }
.mail-provider-icon.google { color: #d85040; background: #fff0ed; }
.mail-provider h3 { margin: 18px 0 8px; font-size: 20px; }
.mail-provider p, .mail-muted, .mail-provider small { color: #71839a; font-size: 12px; line-height: 1.7; }
.mail-provider small { display: block; margin-top: 12px; }
.mail-accounts > div { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--mail-border); }
.mail-accounts small { display: block; color: #71839a; margin-top: 5px; }
.mail-accounts { margin-bottom: 24px; }
.mail-toolbar { flex-shrink: 0; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px; padding: 15px 24px; border-bottom: 1px solid var(--mail-border); background: #fafbfd; }
.mail-account-label { display: flex; flex-direction: column; gap: 5px; font-size: 10px; font-weight: 600; color: #7688a1; min-width: 0; }
.mail-account-label select { max-width: min(350px, 100%); font-size: 13px; font-weight: 500; }
.mail-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.mail-workspace { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(290px, 345px) minmax(0, 1fr); overflow: hidden; }
.mail-sidebar { display: flex; flex-direction: column; background: #fafbfd; border-right: 1px solid var(--mail-border); min-width: 0; min-height: 0; overflow: hidden; }
.mail-sidebar nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; padding: 14px 14px 7px; flex-shrink: 0; }
.mail-sidebar nav button { justify-content: flex-start; padding: 8px 10px; border: 0; background: transparent; font-size: 12px; min-width: 0; }
.mail-sidebar nav [aria-current] { background: #eaf1ff; color: var(--mail-blue); }
.mail-count { margin-left: auto; background: #e9edf4; color: #5b6b81; padding: 2px 6px; border-radius: 6px; font-size: 10px; }
#mail-search { display: flex; gap: 6px; padding: 10px 14px 14px; flex-shrink: 0; }
#mail-search input { min-width: 0; width: 100%; font-size: 13px; }
#mail-search button { padding: 9px; }
.mail-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--mail-border); border-bottom: 1px solid var(--mail-border); font-size: 12px; flex-shrink: 0; }
.mail-list-heading span { font-size: 10px; color: #8793a5; }
#mail-list { overflow-y: auto; min-height: 0; flex: 1; }
.mail-shell .mail-item { display: block; width: 100%; text-align: left; padding: 18px; border-width: 0 0 1px; border-radius: 0; border-color: var(--mail-border); background: transparent; font-weight: 400; }
.mail-item-top { display: flex; justify-content: space-between; gap: 8px; color: #74849a; font-size: 10px; }
.mail-item-top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.mail-item-top time { white-space: nowrap; font-size: 9px; }
.mail-subject { display: block; margin: 8px 0 5px; font-size: 13px; color: #2c405c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-preview { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #7b8ca3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-preview .mail-icon { width: 13px; height: 13px; flex-basis: 13px; }
.mail-item.is-unread .mail-subject { font-weight: 700; }
.mail-item.is-unread .mail-item-top strong { color: #304763; font-weight: 700; }
.mail-shell .mail-item.is-selected { background: #edf4ff; box-shadow: inset 3px 0 var(--mail-blue); }
.mail-star-mark { color: #c78c19; }
.mail-more { margin: 12px 14px; flex-shrink: 0; }
.mail-empty { padding: 35px 24px; color: #8695a9; font-size: 13px; }
.mail-shell #mail-reader { min-width: 0; min-height: 0; overflow: auto; scrollbar-gutter: stable; background: #fff; container: mail-reader / inline-size; }
.mail-reader-empty { padding: 100px 30px; text-align: center; color: #7d8fa6; }
.mail-reader-empty > span { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 23px; background: #edf4ff; color: #5684d6; }
.mail-reader-empty > span .mail-icon { width: 34px; height: 34px; }
.mail-reader-empty h2 { color: #314760; font-size: 23px; margin: 24px 0 10px; letter-spacing: -.5px; }
.mail-reader-empty p { font-size: 13px; line-height: 1.9; margin-bottom: 24px; }
.mail-message { padding: 24px 30px 32px; max-width: 1100px; margin: 0 auto; }
.mail-message-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--mail-border); margin-bottom: 25px; }
.mail-message-manage { display: flex; gap: 5px; margin-left: auto; }
.mail-message-heading, .mail-compose-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.mail-message h2 { font-size: 25px; font-weight: 650; line-height: 1.4; letter-spacing: -.5px; margin: 10px 0 20px; overflow-wrap: anywhere; }
.mail-meta { margin: 0 0 25px; font-size: 12px; line-height: 1.9; }
.mail-meta > div { display: flex; gap: 12px; }
.mail-meta dt { min-width: 65px; color: #91a0b3; }
.mail-meta dd { margin: 0; overflow-wrap: anywhere; min-width: 0; }
.mail-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.9; color: #40516a; padding-top: 24px; border-top: 1px solid var(--mail-border); }
.mail-body a { color: var(--mail-blue); text-decoration: underline; text-underline-offset: 3px; }
.mail-message-footer { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--mail-border); }
.mail-attachments { padding: 0 0 20px; }
.mail-attachments-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.mail-attachments-heading strong { display: inline-flex; align-items: center; gap: 7px; color: #2c405c; font-size: 13px; font-weight: 650; }
.mail-attachments-heading .mail-icon { width: 16px; height: 16px; flex-basis: 16px; color: #6486b3; }
.mail-attachments-heading > span { color: #8796aa; font-size: 11px; }
.mail-received-files .mail-file-card { flex: 0 1 330px; }
.mail-compose { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; column-gap: 28px; min-height: 100%; padding: 20px 28px 24px; border-bottom: 1px solid var(--mail-border); background: #fff; }
.mail-compose-heading { grid-column: 1 / -1; padding-bottom: 14px; border-bottom: 1px solid var(--mail-border); }
.mail-compose h2 { font-size: 19px; letter-spacing: -.3px; margin: 6px 0 0; }
.mail-compose-main { display: flex; flex-direction: column; min-width: 0; }
.mail-compose-side { display: flex; flex-direction: column; min-width: 0; padding-top: 18px; }
.mail-compose-from { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 7px 0 0; color: #7f8c9e; font-size: 11px; }
.mail-compose-from strong { font-weight: 500; color: #526780; overflow-wrap: anywhere; }
.mail-compose-from > span { margin-left: 4px; background: #eef8f2; color: #3b8256; padding: 4px 8px; border-radius: 6px; font-size: 10px; }
.mail-compose label { font-size: 12px; font-weight: 600; color: #5c6f88; }
.mail-compose-main > label, .mail-address-row > label, .mail-copies label, .mail-signature-panel label { display: flex; flex-direction: column; gap: 6px; margin-top: 13px; min-width: 0; }
.mail-compose input, .mail-compose textarea { width: 100%; }
.mail-compose textarea { resize: vertical; line-height: 1.8; font-weight: 400; }
.mail-address-row { display: flex; gap: 10px; align-items: flex-end; }
.mail-address-row > label { flex: 1; }
.mail-shell .mail-copies-toggle { border-color: transparent; font-size: 11px; padding: 8px; white-space: nowrap; margin-bottom: 1px; }
.mail-copies { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mail-copies label > span { color: #97a1ae; font-size: 10px; font-weight: 400; }
.mail-compose-main > .mail-editor-label { display: block; margin-top: 18px; }
.mail-editor-label textarea { min-height: 340px; border-color: #e7ecf3; padding: 16px; background: #fdfefe; }
.mail-editor-frame { overflow: hidden; overflow: clip; border: 1px solid #dce5f1; border-radius: 12px; background: #fff; }
.mail-format-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; padding: 8px 10px; border-bottom: 1px solid #e8edf5; background: #f8fafd; }
.mail-shell .mail-format-toolbar button { min-width: 32px; min-height: 32px; padding: 5px 7px; border: 0; border-radius: 6px; background: transparent; font-size: 14px; }
.mail-shell .mail-format-toolbar button:hover { background: #e9f0ff; color: #2563eb; }
.mail-tool-divider { height: 20px; border-left: 1px solid #dce5f1; margin: 0 4px; }
.mail-toolbar-extra { display: flex; flex-wrap: wrap; gap: 3px; margin-left: auto; }
.mail-shell .mail-format-toolbar .mail-toolbar-extra button { gap: 6px; padding: 5px 9px; font-size: 12px; }
.mail-toolbar-extra .mail-icon { width: 16px; height: 16px; flex-basis: 16px; }
.mail-rich-editor { position: relative; min-height: 340px; padding: 18px 20px; color: #30445e; font: 14px/1.9 Inter, system-ui, sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; outline: none; }
.mail-rich-editor:focus-visible { outline: 0; }
.mail-editor-frame:focus-within { border-color: #7fa7eb; box-shadow: 0 0 0 3px #2563eb12; }
.mail-rich-editor[data-empty="true"]::before { position: absolute; color: #96a1b1; content: "Schreiben Sie Ihre Nachricht …"; pointer-events: none; }
.mail-rich-editor p, .mail-rich-editor div { margin: 0; }
.mail-rich-editor ul, .mail-rich-editor ol { margin: 8px 0; padding-left: 24px; }
.mail-rich-editor li { padding-left: 3px; }
.mail-rich-editor a { color: #2563eb; text-decoration: underline; }
.mail-rich-editor blockquote { margin: 12px 0; border-left: 3px solid #c7d7ee; padding-left: 14px; color: #78889c; }
.mail-rich-editor[contenteditable="false"] { background: #f9fafc; }
.mail-link-panel { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; padding: 12px; border-top: 1px solid #e8edf5; background: #f6f9fd; }
.mail-link-panel label { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 160px; }
.mail-link-panel button { font-size: 11px; }
.mail-editor-tools { display: flex; flex-wrap: wrap; gap: 5px; padding: 8px 0 13px; }
.mail-editor-tools button { border-color: transparent; font-size: 11px; padding: 7px 9px; min-height: 34px; }
.mail-emoji-picker { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; padding: 10px; margin-bottom: 14px; max-width: 360px; border: 1px solid #dce5f1; border-radius: 12px; background: #f8fbff; }
.mail-shell .mail-emoji-picker button { font-family: system-ui, sans-serif; font-size: 22px; padding: 5px; border: 0; background: transparent; }
.mail-shell .mail-emoji-picker button:hover { background: #e7efff; }
.mail-signature-panel { padding: 14px; border-radius: 10px; background: #f6f8fb; margin-bottom: 14px; }
.mail-signature-panel label { margin-top: 0; }
.mail-signature-panel button { margin-top: 10px; }
.mail-signature-panel small { display: block; color: #8793a5; font-size: 10px; margin-top: 8px; }
.mail-compose-attachments { padding-bottom: 2px; }
.mail-file-list { display: flex; flex-wrap: wrap; gap: 8px; }
.mail-file-card { display: flex; align-items: center; gap: 10px; padding: 9px 10px; min-width: 0; max-width: 100%; border: 1px solid var(--mail-border); border-radius: 10px; background: #f9fbfe; }
.mail-file-card > .mail-icon { color: #6486b3; }
.mail-file-card > span:not(.mail-file-type) { flex: 1; min-width: 0; }
.mail-file-thumb { width: 42px; height: 42px; flex: 0 0 42px; object-fit: cover; border: 1px solid var(--mail-border); border-radius: 8px; background: #fff; }
.mail-file-type { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 8px; background: #edf3fc; color: #5c80b0; }
.mail-file-type .mail-icon { width: 16px; height: 16px; flex-basis: 16px; }
.mail-file-type b { max-width: 38px; overflow: hidden; font-size: 8px; letter-spacing: .04em; line-height: 1.2; }
.mail-shell .mail-file-card .mail-view-button { flex-shrink: 0; min-height: 32px; padding: 6px 10px; gap: 6px; font-size: 11px; }
.mail-file-card .mail-view-button .mail-icon { width: 15px; height: 15px; flex-basis: 15px; }
.mail-file-card strong { display: block; overflow-wrap: anywhere; font-size: 11px; font-weight: 500; }
.mail-file-card small { display: block; margin-top: 3px; color: #8b97a9; font-size: 10px; }
.mail-shell .mail-file-card .mail-icon-button { border: 0; background: transparent; width: 28px; min-height: 28px; padding: 5px; }
.mail-dropzone { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 12px; padding: 16px; border: 1px dashed #cad8ea; border-radius: 11px; background: #f8faff; transition: background .15s; }
.mail-dropzone > .mail-icon { color: #6f91bf; width: 22px; height: 22px; flex-basis: 22px; }
.mail-dropzone > div { flex: 1; min-width: 120px; }
.mail-dropzone strong { display: block; color: #536984; font-size: 12px; font-weight: 600; }
.mail-dropzone span { display: block; color: #91a0b3; font-size: 10px; margin-top: 4px; }
.mail-file-select { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 9px 12px; border: 1px solid #d6e1f0; border-radius: 8px; background: #fff; color: #3d608e; cursor: pointer; }
.mail-file-select:hover { background: #eef4ff; }
.mail-dropzone:focus-within { outline: 3px solid #80b2ff; outline-offset: 2px; }
.mail-dropzone.is-dragging { background: #eaf2ff; border-color: var(--mail-blue); }
.mail-shell .mail-dropzone:has(input:disabled) .mail-file-select { opacity: .5; cursor: default; }
.mail-file-limit { margin: 9px 0 14px; color: #8796aa; font-size: 10px; line-height: 1.7; }
.mail-compose .mail-approval { display: flex; flex-direction: row; align-items: flex-start; gap: 9px; font-weight: 400; font-size: 11px; line-height: 1.6; padding: 13px; border-radius: 9px; background: #f5f8fc; }
.mail-approval input { width: 16px; min-height: 16px; margin: 1px 0 0; flex-shrink: 0; }
.mail-compose-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }
.mail-compose-footer > div { display: flex; gap: 6px; align-items: center; }
.mail-compose-footer > div > button { font-size: 11px; }
.mail-send-status { padding: 15px; background: #fff2d9; color: #755019; font-size: 13px; line-height: 1.7; }
.mail-send-area { display: flex; flex-direction: column; gap: 4px; }
.mail-send-area > button { align-self: flex-start; margin-top: 6px; }
@container mail-reader (min-width: 900px) {
    .mail-compose { grid-template-columns: minmax(0, 1fr) clamp(290px, 30%, 380px); grid-template-rows: auto 1fr; align-content: stretch; }
    .mail-compose-heading > div { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 16px; }
    .mail-compose-heading .mail-eyebrow { flex-basis: 100%; }
    .mail-compose-from { margin: 0; }
    .mail-compose-main > label, .mail-address-row > label { display: grid; grid-template-columns: 62px minmax(0, 1fr); align-items: center; gap: 10px; }
    .mail-compose-main > .mail-editor-label { display: flex; flex-direction: column; flex: 1 1 0; min-height: 340px; }
    .mail-editor-label > textarea, .mail-editor-frame { flex: 1 1 0; min-height: 0; }
    .mail-editor-label > textarea { resize: none; }
    .mail-editor-frame { display: flex; flex-direction: column; }
    .mail-rich-editor { flex: 1 1 0; min-height: 260px; overflow-y: auto; }
    .mail-editor-tools { padding-bottom: 0; }
    .mail-compose-side { padding: 18px 0 0 24px; border-left: 1px solid var(--mail-border); }
    .mail-compose-side .mail-file-card { width: 100%; }
    .mail-compose-side .mail-dropzone { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 14px; }
    .mail-compose-side .mail-dropzone > div { min-width: 0; }
    .mail-compose-side .mail-dropzone > button { grid-column: 1 / -1; }
    .mail-send-area { position: sticky; bottom: 0; margin-top: auto; padding-top: 14px; background: #fff; }
    .mail-compose-side .mail-compose-footer { flex-direction: column-reverse; align-items: stretch; margin-top: 12px; }
    .mail-compose-side .mail-compose-footer > div { justify-content: space-between; }
    .mail-compose-side .mail-compose-footer > .mail-primary { min-height: 46px; font-size: 13px; }
}
.mail-viewer { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; background: #102036e6; }
.mail-viewer-bar { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; padding: 14px 22px; background: #fff; border-bottom: 1px solid var(--mail-border); }
.mail-viewer-name { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mail-viewer-name strong { color: #243650; font-size: 15px; overflow-wrap: anywhere; }
.mail-viewer-name small { color: #7b8ca3; font-size: 11px; }
.mail-viewer-actions { display: flex; gap: 8px; }
.mail-viewer-body { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 22px; overflow: auto; }
.mail-viewer-body img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; background: #fff; box-shadow: 0 12px 40px #0006; }
.mail-viewer-body iframe { width: 100%; height: 100%; border: 0; border-radius: 8px; background: #fff; }
.mail-viewer-text { width: min(980px, 100%); max-height: 100%; overflow: auto; margin: 0; padding: 24px; border-radius: 10px; background: #fff; color: #243650; font: 13px/1.7 ui-monospace, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.mail-viewer-empty { max-width: 440px; padding: 32px; border-radius: 14px; background: #fff; color: #5c6f88; text-align: center; font-size: 13px; line-height: 1.7; }
.mail-viewer-empty > .mail-icon { width: 34px; height: 34px; color: #6486b3; }
.mail-viewer-empty h2 { margin: 12px 0 8px; color: #2c405c; font-size: 19px; }
.mail-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.mail-callback { margin: 0; background: #f5f8fd; color: #263c5a; font: 16px/1.7 system-ui, sans-serif; }
.mail-callback main { max-width: 530px; margin: 15vh auto; padding: 35px; background: white; border: 1px solid #e0e8f4; border-radius: 20px; }
.mail-callback a { color: #2563eb; }
.mail-callback a.nativ-rueckkehr { display: inline-block; padding: 12px 22px; border-radius: 999px; background: #2563eb; color: #fff; font-weight: 600; text-decoration: none; }
.mail-integrations-heading { margin-bottom: 28px; }
.mail-integrations-heading > span { font-size: 10px; font-weight: 700; letter-spacing: .14em; color: #71849e; }
#tab-integrations .mail-integrations-heading h2 { display: block; font-size: 26px; line-height: 1.3; letter-spacing: -.6px; color: #17304c; margin: 10px 0; }
.mail-integrations-heading p { color: #64748b; font-size: 14px; line-height: 1.7; max-width: 580px; margin: 0; }
#mail-integrationen { font-size: 14px; color: #233c59; }
#mail-integrationen * { box-sizing: border-box; }
#mail-integrationen [hidden] { display: none !important; }
.mi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.mi-card { display: flex; flex-direction: column; padding: 24px; background: #fff; border: 1px solid #dde6ef; border-radius: 16px; box-shadow: 0 4px 12px #17304c04; min-width: 0; }
.mi-card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.mi-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; border: 1px solid #e8edf3; background: #fff; flex-shrink: 0; }
.mi-google { color: #4285f4; font: 700 32px/1 Arial, sans-serif; }
.mi-microsoft { display: grid; grid-template-columns: 11px 11px; grid-template-rows: 11px 11px; gap: 3px; }
.mi-microsoft i:nth-child(1) { background: #f25022; }
.mi-microsoft i:nth-child(2) { background: #7fba00; }
.mi-microsoft i:nth-child(3) { background: #00a4ef; }
.mi-microsoft i:nth-child(4) { background: #ffb900; }
.mi-badge { border-radius: 20px; background: #f2f5f9; color: #62758c; padding: 5px 8px; font-size: 10px; font-weight: 600; }
.mi-badge.is-connected { background: #eaf8ef; color: #267044; }
.mi-badge.is-ready { background: #edf5fe; color: #2767a7; }
.mi-card h3 { margin: 22px 0 7px; font-size: 21px; color: #17304c; }
.mi-subtitle { font-size: 12px; color: #7b8ca1; margin: 0; line-height: 1.5; }
.mi-features { font-size: 13px; color: #60738c; line-height: 1.7; margin: 18px 0 24px; }
#mail-integrationen button { font: inherit; border: 1px solid #dce5ee; border-radius: 9px; background: white; padding: 10px 14px; color: #315474; cursor: pointer; }
#mail-integrationen button:disabled { opacity: .6; cursor: default; }
#mail-integrationen button:focus-visible, .mi-help summary:focus-visible { outline: 3px solid #80b2ff; outline-offset: 3px; }
#mail-integrationen .mi-connect { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; min-height: 44px; font-size: 13px; font-weight: 600; text-align: left; }
#mail-integrationen .mi-connect.is-primary { color: white; background: var(--primary, #0284c7); border-color: var(--primary, #0284c7); }
#mail-integrationen .mi-connect:hover:not(:disabled) { filter: brightness(.96); }
.mi-card > small { font-size: 11px; color: #7b8ca1; line-height: 1.6; margin-top: 12px; }
.mi-accounts { list-style: none; padding: 0; margin: 0 0 20px; }
.mi-accounts li { padding: 12px 0; border-top: 1px solid #e9eef5; }
.mi-accounts li > span { display: block; overflow-wrap: anywhere; font-size: 12px; font-weight: 600; }
.mi-accounts li > div { display: flex; gap: 8px; margin-top: 8px; }
#mail-integrationen .mi-accounts button { padding: 5px 9px; font-size: 11px; }
.mi-footer { display: flex; align-items: center; gap: 18px; justify-content: space-between; margin-top: 18px; flex-wrap: wrap; }
.mi-footer p { flex: 1; min-width: 200px; color: #7a8aa0; font-size: 11px; line-height: 1.7; margin: 0; }
.mi-footer p i { margin-right: 4px; }
#mail-integrationen .mi-footer button { font-size: 12px; padding: 8px 10px; }
.mi-notice { margin-bottom: 18px; padding: 14px 16px; border-radius: 10px; background: #eaf6fb; color: #286681; font-size: 13px; line-height: 1.7; }
.mi-notice.is-error { background: #fff5e7; color: #80582b; }
.mi-notice a { color: inherit; text-decoration: underline; font-weight: 600; }
.mi-card-feedback { margin: 12px 0 0; }
.mi-help { margin-top: 22px; font-size: 12px; line-height: 1.8; color: #697d94; }
.mi-help summary { cursor: pointer; font-weight: 600; color: #45607e; }
.mail-integrations-exports { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid #dfe7ef; padding-top: 26px; margin-top: 32px; }
.mail-integrations-exports h3 { font-size: 14px; color: #344d6b; margin: 0 0 7px; }
.mail-integrations-exports p { color: #8290a3; font-size: 12px; line-height: 1.7; margin: 0; max-width: 370px; }
.mail-integrations-exports button { white-space: nowrap; font-size: 12px; }
@media (max-width: 1050px) { .mi-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
    #account-modal.has-mail-integrations { padding: 0; }
    #account-modal.has-mail-integrations .modal-content { width: 100%; height: 100dvh; max-height: none; border-radius: 0; }
    #account-modal.has-mail-integrations .modal-header { padding: 18px; }
    #account-modal.has-mail-integrations .modal-title { font-size: 1.05rem; gap: 10px; }
    #account-modal.has-mail-integrations .modal-close { flex-shrink: 0; }
    #account-modal.has-mail-integrations .modal-body { flex-direction: column; }
    #account-modal.has-mail-integrations .settings-sidebar { width: 100%; border-right: 0; border-bottom: 1px solid #e2e8f0; }
    #account-modal.has-mail-integrations .user-profile-summary, #account-modal.has-mail-integrations .nav-group-title { display: none; }
    #account-modal.has-mail-integrations .modal-nav { display: flex; overflow-x: auto; padding: 10px; gap: 5px; }
    #account-modal.has-mail-integrations .modal-nav-btn { width: auto; flex-shrink: 0; white-space: nowrap; margin: 0; padding: 9px 11px; font-size: 12px; gap: 7px; }
    #account-modal.has-mail-integrations .settings-content-wrapper { padding: 26px 18px; min-width: 0; }
    #tab-integrations .mail-integrations-heading h2 { font-size: 23px; }
    .mail-shell { width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
    .mail-header { padding: 20px; }
    .mail-shell .mail-size-toggle { display: none; }
    .mail-connect { padding: 25px 20px; }
    .mail-connect > h2 { font-size: 24px; }
    .mail-providers { grid-template-columns: 1fr; gap: 15px; }
    .mail-toolbar { padding: 16px; }
    .mail-account-label { width: 100%; }
    .mail-account-label select { max-width: 100%; }
    .mail-workspace { grid-template-columns: minmax(0, 1fr); }
    .mail-shell #mail-main { display: block; }
    .mail-workspace { display: block; overflow: visible; }
    .mail-sidebar { border-right: 0; border-bottom: 1px solid var(--mail-border); overflow: visible; }
    .mail-sidebar nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mail-sidebar nav button { gap: 5px; padding: 8px 5px; font-size: 10px; }
    .mail-sidebar nav .mail-icon { width: 15px; height: 15px; flex-basis: 15px; }
    #mail-list { max-height: 310px; overflow-y: auto; }
    .mail-shell #mail-reader { overflow: visible; }
    .mail-message { padding: 25px 20px; }
    .mail-message-heading { flex-direction: column; gap: 0; margin-bottom: 20px; }
    .mail-compose { padding: 18px 16px; }
    .mail-rich-editor, .mail-editor-label textarea { min-height: 280px; }
    .mail-viewer-bar { padding: 12px 16px; }
    .mail-viewer-body { padding: 12px; }
    .mail-compose-footer { flex-wrap: wrap; }
    .mail-compose-from > span { margin-left: 0; }
    .mail-message-actions { gap: 6px; }
    .mail-message-actions > button { font-size: 11px; padding: 8px 9px; }
    .mail-message-manage { width: 100%; margin-left: 0; padding-top: 6px; }
    .mail-copies { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .mail-file-card { width: 100%; }
    .mail-file-card > span { flex: 1; }
    .mail-dropzone { padding: 12px; }
    .mail-compose-footer > .mail-primary { margin-left: auto; }
    .mail-shell input, .mail-shell textarea, .mail-shell select { font-size: 16px; }
}
