.communication-panel{display:grid;gap:16px}.communication-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:18px;border:1px solid var(--border,#dfe5ee);border-radius:18px;background:var(--surface,#fff)}.communication-hero-copy{display:grid;gap:5px}.communication-hero-copy h2{margin:0;font-size:20px}.communication-hero-copy p{margin:0;color:var(--muted,#667085);max-width:760px}.communication-hero-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.communication-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.communication-kpi{display:grid;gap:3px;padding:14px 16px;border:1px solid var(--border,#dfe5ee);border-radius:14px;background:var(--surface,#fff)}.communication-kpi small{color:var(--muted,#667085);font-weight:700}.communication-kpi strong{font-size:24px;line-height:1.1}.communication-kpi span{font-size:12px;color:var(--muted,#667085)}.communication-mailbox-strip{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 14px;border:1px solid var(--border,#dfe5ee);border-radius:13px;background:var(--surface-subtle,#f8fafc)}.communication-mailbox-strip>div{display:grid;gap:2px}.communication-mailbox-strip small{color:var(--muted,#667085)}.communication-ready-dot{display:inline-block;width:8px;height:8px;border-radius:99px;background:currentColor;margin-right:6px}.communication-ready{color:#137a42}.communication-warning{color:#a15c00}.communication-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.communication-mode-tabs{display:flex;padding:3px;border:1px solid var(--border,#dfe5ee);border-radius:12px;background:var(--surface-subtle,#f8fafc)}.communication-mode-tabs button{border:0;background:transparent;padding:8px 12px;border-radius:9px;font-weight:700}.communication-mode-tabs button.active{background:var(--surface,#fff);box-shadow:0 1px 3px rgba(16,24,40,.10)}.communication-search{flex:1;min-width:220px}.communication-layout{display:grid;grid-template-columns:minmax(300px,400px) minmax(0,1fr);gap:14px;min-height:520px}.communication-list,.communication-detail{border:1px solid var(--border,#dfe5ee);border-radius:16px;background:var(--surface,#fff);overflow:hidden}.communication-list{display:flex;flex-direction:column}.communication-list-scroll{overflow:auto;max-height:650px}.communication-list-card{width:100%;display:grid;gap:7px;text-align:left;padding:13px 14px;border:0;border-bottom:1px solid var(--border,#e9edf3);background:transparent;color:inherit}.communication-list-card:hover,.communication-list-card.active{background:var(--surface-subtle,#f7f9fc)}.communication-list-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.communication-list-card strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.communication-list-card p{margin:0;color:var(--muted,#667085);font-size:13px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.communication-list-card-meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:11px;color:var(--muted,#667085)}.communication-badge{display:inline-flex;align-items:center;padding:3px 7px;border-radius:999px;background:var(--surface-subtle,#f3f5f8);font-size:11px;font-weight:800}.communication-badge.customer_request{background:#eaf3ff;color:#1759a6}.communication-badge.invoice{background:#f1ecff;color:#6841c6}.communication-badge.delivery_note{background:#eaf8ef;color:#217a47}.communication-badge.new{background:#fff0d8;color:#8c4e00}.communication-detail{padding:18px;overflow:auto;max-height:650px}.communication-detail-empty{height:100%;min-height:360px;display:grid;place-content:center;text-align:center;color:var(--muted,#667085);padding:30px}.communication-message-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.communication-message-head h2{margin:3px 0 5px;font-size:22px}.communication-message-head p{margin:0;color:var(--muted,#667085)}.communication-message-body{margin:16px 0;padding:15px;border:1px solid var(--border,#e0e5ec);border-radius:13px;background:var(--surface-subtle,#fafbfc);white-space:pre-wrap;line-height:1.55;max-height:320px;overflow:auto}.communication-context-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:14px 0}.communication-context-grid>div{display:grid;gap:3px;padding:10px;border-radius:11px;background:var(--surface-subtle,#f8fafc)}.communication-context-grid small{color:var(--muted,#667085)}.communication-attachments{display:grid;gap:7px;margin:14px 0}.communication-attachment{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 11px;border:1px solid var(--border,#e0e5ec);border-radius:10px}.communication-attachment span{display:grid;min-width:0}.communication-attachment strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.communication-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.communication-empty-state{display:grid;place-items:center;text-align:center;padding:45px 25px;color:var(--muted,#667085)}.communication-empty-state strong{color:var(--text,#101828);font-size:18px;margin-bottom:5px}.communication-intake-type{display:flex;gap:6px;align-items:center}.communication-tab-badge{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 5px;margin-left:4px;border-radius:99px;background:#dbeafe;color:#1d4ed8;font-size:11px;font-weight:800}.communication-tab-badge.hidden{display:none}.communication-connector-note{margin-top:12px;padding:12px 14px;border-radius:12px;background:var(--surface-subtle,#f8fafc);border:1px dashed var(--border,#d7dde7)}.communication-connector-note p{margin:4px 0 0;color:var(--muted,#667085)}
@media(max-width:950px){.communication-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.communication-layout{grid-template-columns:1fr}.communication-list-scroll,.communication-detail{max-height:none}.communication-hero{flex-direction:column}.communication-hero-actions{justify-content:flex-start}.communication-context-grid{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.communication-kpis{grid-template-columns:1fr 1fr}.communication-context-grid{grid-template-columns:1fr}.communication-toolbar{align-items:stretch}.communication-search{width:100%}.communication-mode-tabs{width:100%}.communication-mode-tabs button{flex:1}.communication-hero-actions{width:100%}.communication-hero-actions button{flex:1}.communication-detail{padding:14px}.communication-message-head{flex-direction:column}}
.communication-strip-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.communication-error{color:#b42318}.communication-mailbox-form{min-width:min(620px,82vw)}.communication-field-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(120px,.42fr);gap:10px}.communication-imap-fields{display:grid;gap:10px}.communication-imap-fields.hidden,.communication-connector-note.hidden{display:none}.communication-security-note{display:grid;gap:4px;padding:11px 13px;border:1px solid #b7dfc7;border-radius:12px;background:#f1fbf5}.communication-security-note span{font-size:12px;color:var(--muted,#667085);line-height:1.4}.communication-connector-status{display:grid;gap:3px;padding:10px 12px;border-radius:12px;background:var(--surface-subtle,#f8fafc);border:1px solid var(--border,#dfe5ee)}.communication-connector-status.ready{border-color:#b7dfc7;background:#f1fbf5}.communication-connector-status.error{border-color:#f3b8b3;background:#fff5f4}.communication-connector-status span{font-size:12px;color:var(--muted,#667085)}.communication-mailbox-actions{position:sticky;bottom:-1px;padding-top:10px;background:var(--surface,#fff)}
@media(max-width:620px){.communication-field-grid{grid-template-columns:1fr}.communication-mailbox-form{min-width:0}.communication-strip-actions{width:100%}.communication-strip-actions button{flex:1}}

/* Hilpert One v8.02.0 – mehrere persönliche/gemeinsame E-Mail-Konten */
.communication-mailbox-manager{display:grid;gap:16px;min-width:min(760px,82vw)}
.communication-mailbox-manager-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:12px;border-bottom:1px solid var(--border,#dfe5ee)}
.communication-mailbox-manager-head>div{display:grid;gap:4px}.communication-mailbox-manager-head p{margin:0;color:var(--muted,#667085);font-size:12px;line-height:1.45}
.communication-mailbox-manager section{display:grid;gap:9px}.communication-mailbox-manager section h3{display:flex;align-items:center;gap:7px;margin:0;font-size:14px}.communication-mailbox-manager section h3 span{display:inline-grid;place-items:center;min-width:21px;height:21px;padding:0 6px;border-radius:999px;background:var(--surface-subtle,#f2f5f8);font-size:10px}
.communication-account-list{display:grid;gap:8px}.communication-account-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid var(--border,#dfe5ee);border-radius:13px;background:var(--surface,#fff)}
.communication-account-card.ready{border-color:#b7dfc7}.communication-account-card.error{border-color:#f3b8b3}.communication-account-card.paused{opacity:.78}
.communication-account-main{display:grid;gap:3px;min-width:0}.communication-account-main>span,.communication-account-main>small,.communication-account-main>em{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.communication-account-main>span{font-size:12px}.communication-account-main>small{color:var(--muted,#667085);font-size:11px}.communication-account-main>em{max-width:560px;color:#b42318;font-size:10px;font-style:normal}
.communication-account-title{display:flex;align-items:center;gap:7px;min-width:0}.communication-account-title>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.communication-badge.personal{background:#eaf3ff;color:#1759a6}.communication-badge.shared{background:#eef8f1;color:#217a47}
.communication-account-actions{display:flex;justify-content:flex-end;gap:6px;flex-wrap:wrap;flex:0 0 auto}.communication-account-actions button{white-space:nowrap}
.communication-account-empty{padding:18px;border:1px dashed var(--border,#d7dde7);border-radius:12px;color:var(--muted,#667085);text-align:center;background:var(--surface-subtle,#f8fafc)}
@media(max-width:720px){.communication-mailbox-manager{min-width:0}.communication-mailbox-manager-head,.communication-account-card{align-items:stretch;flex-direction:column}.communication-mailbox-manager-head button,.communication-account-actions button{flex:1}.communication-account-actions{width:100%}}

/* v8.07.0 */
.communication-list-scroll{flex:1 1 auto;min-height:0}
