:root {
    --bg: #f3f6fa;
    --panel: #ffffff;
    --text: #172033;
    --muted: #718096;
    --line: #e4e9f0;
    --primary: #315bd6;
    --primary-dark: #2448b4;
    --sidebar: #17243b;
    --shadow: 0 8px 28px rgba(24, 39, 75, .07);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0,1fr); }
.sidebar { background: var(--sidebar); color: #fff; padding: 28px 18px; }
.brand { display: block; color: #fff; font-size: 25px; font-weight: 750; letter-spacing: -.8px; margin: 0 12px 26px; }
.brand:hover { text-decoration: none; }
.user-chip { color: #aebbd0; font-size: 12px; padding: 0 12px 22px; overflow-wrap: anywhere; }
.sidebar nav { display: flex; flex-direction: column; gap: 5px; }
.sidebar nav a { color: #dbe5f4; padding: 10px 12px; border-radius: 8px; }
.sidebar nav a:hover { background: rgba(255,255,255,.09); text-decoration: none; }
.nav-label { color: #8293ad; text-transform: uppercase; font-size: 10px; letter-spacing: 1.2px; margin: 22px 12px 5px; }
.main-content { padding: 30px clamp(18px, 3vw, 48px); min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; }
.topbar h1 { margin: 2px 0 0; font-size: 27px; letter-spacing: -.7px; }
.eyebrow { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1.3px; }
.topbar-user { color: var(--muted); font-size: 13px; }
.panel, .stat-card { background: var(--panel); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); padding: 22px; margin-bottom: 20px; }
.panel h2 { margin: 0 0 18px; font-size: 19px; }
.panel h3 { margin: 25px 0 10px; font-size: 15px; }
.search-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
input, select { font: inherit; border: 1px solid #d5dce7; border-radius: 8px; padding: 10px 12px; background: #fff; color: var(--text); min-width: 0; }
.search-bar input[type=search] { flex: 1; min-width: 230px; }
label { display: block; font-size: 13px; font-weight: 650; margin: 12px 0 6px; }
.inline-check { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-weight: 500; color: var(--muted); }
.inline-check input { min-width: auto; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; padding: 10px 15px; font: inherit; font-weight: 650; cursor: pointer; text-decoration: none; }
.button:hover { text-decoration: none; }
.button-primary { color: #fff; background: var(--primary); }
.button-primary:hover { background: var(--primary-dark); }
.button-secondary { color: #34425b; background: #edf1f7; }
.button-small { padding: 6px 10px; font-size: 12px; }
.full-width { width: 100%; margin-top: 20px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { color: #748198; font-size: 11px; text-transform: uppercase; letter-spacing: .7px; text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); }
td { padding: 13px 10px; border-bottom: 1px solid #edf0f5; vertical-align: middle; }
td small { display: block; color: var(--muted); font-size: 11px; }
.message-table tr:hover { background: #f8faff; }
.subject-link { color: #1d2b45; font-weight: 650; }
.nowrap { white-space: nowrap; }
.direction { display: inline-block; border-radius: 20px; padding: 3px 8px; background: #eef2f8; color: #56647a; font-size: 11px; }
.direction-incoming { background: #e8f4ff; color: #1768a5; }
.direction-outgoing { background: #e9f8ef; color: #237b48; }
.direction-internal { background: #f1edff; color: #6949a8; }
.spam-score { display: inline-block; min-width: 42px; text-align: center; padding: 3px 8px; border-radius: 20px; font-weight: 700; font-size: 11px; }
.spam-low { color: #247748; background: #e7f7ed; }
.spam-mid { color: #99620b; background: #fff4d9; }
.spam-high { color: #a22d36; background: #ffeaec; }
.empty-state, .muted { color: var(--muted); }
.empty-state { text-align: center; padding: 35px; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.detail-meta { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px 20px; padding: 15px; background: #f7f9fc; border-radius: 9px; font-size: 13px; overflow-wrap: anywhere; }
.recipient-list { padding-left: 20px; }
.mail-body { white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; background: #f8fafc; border: 1px solid var(--line); border-radius: 9px; padding: 18px; max-height: 600px; overflow: auto; }
.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; }
.stat-card span { color: var(--muted); font-size: 12px; }
.stat-card strong { display: block; font-size: 30px; margin-top: 8px; }
.summary-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.inline-form { display: flex; align-items: center; gap: 10px; margin: 10px 0 20px; }
.inline-form input { flex: 1; }
.inline-form.compact { margin: 0; }
.status { padding: 3px 8px; border-radius: 20px; font-size: 11px; }
.status-active { background: #e7f7ed; color: #247748; }
.status-disabled { background: #f0f1f3; color: #667085; }
.notice { padding: 11px 14px; border-radius: 8px; margin: 0 0 15px; font-size: 13px; }
.notice-error { background: #ffebed; color: #a52c37; }
.notice-success { background: #e8f7ed; color: #247748; }
.notice-warning { background: #fff5dd; color: #8a5a08; }
.narrow-panel { max-width: 650px; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(140deg,#eaf0fb,#f7f9fc); }
.login-card { width: min(420px,100%); background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 34px; box-shadow: var(--shadow); }
.brand-dark { color: #17243b; margin: 0; }
.login-card .muted { margin: 4px 0 25px; }
.login-card input { width: 100%; }
@media (max-width: 900px) {
    .app-shell { grid-template-columns: 205px minmax(0,1fr); }
    .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 650px) {
    .app-shell { display: block; }
    .sidebar { padding: 14px; }
    .brand { margin: 0 8px 10px; font-size: 22px; }
    .user-chip { display: none; }
    .sidebar nav { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
    .sidebar nav a { white-space: nowrap; font-size: 12px; padding: 8px 10px; }
    .nav-label { display: none; }
    .main-content { padding: 20px 13px; }
    .topbar h1 { font-size: 22px; }
    .topbar-user { display: none; }
    .panel { padding: 15px; }
    .detail-meta { grid-template-columns: 1fr; }
    .stats-grid { gap: 9px; }
    .stat-card { padding: 15px; }
    .stat-card strong { font-size: 23px; }
}

/* Admin-Accountauswahl in der Kopfzeile */
.account-switcher { display: flex; align-items: center; gap: 10px; min-width: min(440px, 55%); }
.account-switcher label { margin: 0; color: var(--muted); white-space: nowrap; }
.account-switcher select { flex: 1; min-width: 180px; }
.log-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.log-toolbar h2 { margin-bottom: 0; }
.log-level { display: inline-block; border-radius: 20px; padding: 3px 8px; font-size: 10px; font-weight: 750; }
.log-debug { color: #536176; background: #edf1f7; }
.log-info { color: #1768a5; background: #e8f4ff; }
.log-warning { color: #99620b; background: #fff4d9; }
.log-error { color: #a22d36; background: #ffeaec; }
.log-context { display: block; max-width: 340px; white-space: pre-wrap; overflow-wrap: anywhere; color: #536176; font-size: 11px; }
@media (max-width: 900px) {
    .account-switcher { min-width: 0; max-width: 55%; align-items: flex-start; flex-direction: column; gap: 4px; }
    .account-switcher select { width: 100%; }
}
@media (max-width: 650px) {
    .topbar { align-items: flex-start; flex-direction: column; gap: 12px; }
    .account-switcher { width: 100%; max-width: none; }
    .account-switcher select { min-width: 0; }
}


/* ==========================================================
   Mailstore 0.3 – modern archive UI (Mailpiler-inspired)
========================================================== */
:root {
    --bg: #f4f6fa;
    --panel: #fff;
    --text: #172033;
    --muted: #78849a;
    --line: #e8ecf2;
    --primary: #365fd8;
    --primary-dark: #284bb5;
    --sidebar: #172238;
    --shadow: 0 8px 30px rgba(24, 39, 75, .055);
}
body { background: #f4f6fa; color: #172033; font-size: 14px; }
.app-shell { grid-template-columns: 252px minmax(0,1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 25px 17px 18px; background: #172238; }
.brand { display: flex; align-items: center; gap: 11px; margin: 0 7px 38px; font-size: inherit; letter-spacing: 0; }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; color: white; background: linear-gradient(145deg,#5278ef,#3454c4); box-shadow: 0 7px 18px rgba(54,95,216,.28); font-size: 21px; font-weight: 850; }
.brand-name { color: #fff; font-size: 17px; font-weight: 800; letter-spacing: -.5px; }
.brand-name small { display: block; margin-top: 2px; color: #8d9bb5; font-size: 8px; font-weight: 700; letter-spacing: 1.8px; }
.sidebar-section-label { margin: 0 11px 10px; color: #7f8da7; font-size: 9px; font-weight: 800; letter-spacing: 1.45px; }
.main-nav { display: grid; gap: 5px; }
.sidebar nav a { display: flex; align-items: center; gap: 12px; min-height: 43px; padding: 0 12px; border: 1px solid transparent; border-radius: 9px; color: #b9c4d6; font-size: 12px; font-weight: 550; transition: background .18s ease,color .18s ease,border-color .18s ease; }
.sidebar nav a:hover { color: #fff; background: rgba(255,255,255,.065); }
.sidebar nav a.is-active { color: #fff; border-color: rgba(113,145,255,.15); background: linear-gradient(100deg,rgba(74,111,225,.25),rgba(74,111,225,.10)); box-shadow: inset 3px 0 #7290ff; }
.nav-symbol { display: inline-grid; place-items: center; width: 20px; color: #91a2c2; font-size: 17px; }
.sidebar nav a.is-active .nav-symbol { color: #9eb4ff; }
.admin-label { margin-top: 34px; }
.sidebar-bottom { display: grid; gap: 17px; margin-top: auto; }
.archive-status { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid rgba(173,195,231,.12); border-radius: 10px; background: rgba(255,255,255,.035); }
.status-pulse,.account-status-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #38c995; box-shadow: 0 0 0 4px rgba(56,201,149,.11); }
.archive-status strong,.archive-status small,.sidebar-user-copy strong,.sidebar-user-copy small { display: block; }
.archive-status strong { color: #e6edf8; font-size: 11px; }
.archive-status small { margin-top: 2px; color: #8998b2; font-size: 9px; }
.sidebar-user { display: flex; align-items: center; gap: 9px; padding: 13px 3px 0; border-top: 1px solid rgba(255,255,255,.09); }
.user-avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; color: #dce5ff; background: #34466c; font-size: 13px; font-weight: 800; }
.sidebar-user-copy { min-width: 0; flex: 1; }
.sidebar-user-copy strong { overflow: hidden; color: #e5ebf5; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-copy small { margin-top: 3px; color: #8a9ab4; font-size: 9px; }
.sidebar-user > a { color: #91a1bb; font-size: 19px; }
.main-content { min-width: 0; padding: 0 clamp(18px,3vw,42px) 36px; }
.topbar { position: sticky; z-index: 5; top: 0; min-height: 91px; margin: 0 -1px 27px; padding: 14px 1px; border-bottom: 1px solid #e8ecf2; background: rgba(244,246,250,.94); backdrop-filter: blur(14px); }
.topbar-heading { min-width: 0; }
.topbar h1 { margin: 5px 0 0; color: #172033; font-size: 23px; font-weight: 760; letter-spacing: -.7px; }
.eyebrow { color: #8b96a9; font-size: 9px; font-weight: 800; letter-spacing: 1.35px; }
.eyebrow span { padding: 0 5px; color: #c0c7d2; }
.account-switcher { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border: 1px solid #e0e6ef; border-radius: 10px; background: #fff; box-shadow: 0 3px 12px rgba(22,35,60,.035); }
.account-switcher label { margin: 0; color: #8a95a8; font-size: 10px; font-weight: 650; white-space: nowrap; }
.account-switcher select { min-width: 180px; max-width: min(34vw,330px); padding: 6px 26px 6px 8px; border: 0; outline: 0; background-color: transparent; font-size: 11px; font-weight: 700; }
.switcher-icon { color: #5271c9; font-size: 16px; }
.topbar-account { display: flex; align-items: center; gap: 9px; color: #637087; font-size: 11px; font-weight: 650; }
.topbar-account .account-status-dot { width: 7px; height: 7px; }
.mail-list-panel,.admin-intro-card { overflow: hidden; margin-bottom: 22px; border: 1px solid #e7ebf2; border-radius: 14px; background: #fff; box-shadow: 0 7px 26px rgba(25,39,66,.045); }
.mail-list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 20px; border-bottom: 1px solid #edf0f5; }
.mail-search { display: flex; align-items: center; gap: 9px; width: min(620px,100%); min-height: 40px; padding: 4px 5px 4px 12px; border: 1px solid #e3e8f0; border-radius: 9px; background: #fafbfd; }
.search-icon { color: #8c98ab; font-size: 22px; line-height: 1; }
.mail-search input[type=search] { min-width: 0; flex: 1; padding: 6px 2px; border: 0; outline: 0; background: transparent; box-shadow: none; font-size: 12px; }
.mail-search input[type=search]:focus { outline: 0; box-shadow: none; }
.mail-search .button { min-height: 31px; padding: 6px 13px; border-radius: 7px; font-size: 11px; }
.clear-search { color: #78849a; font-size: 10px; white-space: nowrap; }
.mail-filter-form { display: flex; align-items: center; }
.spam-filter { display: inline-flex; align-items: center; gap: 7px; margin: 0; color: #657187; font-size: 11px; font-weight: 600; white-space: nowrap; }
.spam-filter input { width: 15px; height: 15px; min-width: 15px; margin: 0; accent-color: #4266d5; }
.mail-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 21px 17px; }
.mail-list-heading h2 { margin: 0; color: #1d2940; font-size: 16px; font-weight: 760; letter-spacing: -.3px; }
.mail-list-heading p { margin: 4px 0 0; color: #8a95a7; font-size: 10px; }
.mail-count { display: flex; align-items: baseline; gap: 7px; color: #8994a7; font-size: 10px; }
.mail-count strong { color: #33415d; font-size: 19px; }
.mail-table-wrap { width: 100%; overflow-x: auto; }
.mail-table { min-width: 980px; border-collapse: separate; border-spacing: 0; font-size: 11px; }
.mail-table thead th { padding: 11px 13px; border-top: 1px solid #edf0f5; border-bottom: 1px solid #edf0f5; background: #fafbfd; color: #929caf; font-size: 9px; font-weight: 800; letter-spacing: .8px; }
.mail-table tbody td { padding: 13px; border-bottom: 1px solid #f0f2f6; color: #526078; vertical-align: middle; }
.mail-table tbody tr { transition: background .15s ease; }
.mail-table tbody tr:hover { background: #f8faff; }
.mail-date-cell { width: 90px; color: #4c5870 !important; font-variant-numeric: tabular-nums; }
.mail-date-cell strong,.mail-date-cell small,.sender-cell strong,.sender-cell small { display: block; }
.mail-date-cell strong { font-size: 10px; font-weight: 700; }
.mail-date-cell small,.sender-cell small { margin-top: 3px; color: #98a2b3; font-size: 9px; }
.sender-cell { max-width: 190px; }
.sender-cell strong { overflow: hidden; color: #34415a; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.sender-cell small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.direction { padding: 4px 8px; border-radius: 5px; font-size: 9px; font-weight: 750; }
.direction-incoming { color: #2464a7; background: #edf5ff; }
.direction-outgoing { color: #287c5b; background: #eaf8f1; }
.direction-internal { color: #6951a6; background: #f2efff; }
.direction-unknown { color: #69758a; background: #f0f2f6; }
.subject-cell { min-width: 230px; }
.subject-link { color: #25334d; font-size: 11px; font-weight: 700; }
.subject-link:hover { color: #315bd6; }
.attachment-mark { margin-left: 7px; font-size: 10px; }
.account-col { min-width: 185px; }
.account-tags { display: flex; flex-wrap: wrap; gap: 4px; max-width: 290px; }
.account-tag { display: inline-flex; align-items: center; gap: 5px; max-width: 190px; overflow: hidden; padding: 4px 7px; border: 1px solid #e7ebf3; border-radius: 5px; background: #f8f9fc; color: #56637b; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.account-tag-dot { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: #6d85d5; }
.account-tag-more { color: #6e7c96; background: #eef1f7; }
.unassigned-tag { color: #9a6a22; font-size: 9px; }
.spam-score { min-width: 36px; padding: 4px 7px; border-radius: 5px; font-size: 9px; }
.open-message { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid #e9edf4; border-radius: 7px; color: #8491a8; font-size: 19px; line-height: 1; }
.open-message:hover { color: #315bd6; border-color: #cbd6f5; background: #f3f6ff; text-decoration: none; }
.empty-state { padding: 55px 20px !important; color: #7f8ba0; text-align: center; }
.empty-state .empty-icon,.empty-state strong,.empty-state small { display: block; }
.empty-state .empty-icon { margin-bottom: 10px; color: #9eacc6; font-size: 27px; }
.empty-state strong { color: #46536b; font-size: 13px; }
.empty-state small { margin-top: 5px; color: #929db0; font-size: 10px; }
.list-footer { display: flex; justify-content: space-between; padding: 12px 20px; color: #9aa4b4; font-size: 9px; }
.admin-intro-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 27px; }
.admin-intro-card h2 { margin: 6px 0 5px; color: #1c2941; font-size: 19px; }
.admin-intro-card p { max-width: 670px; margin: 0; color: #818da2; font-size: 11px; line-height: 1.7; }
.section-kicker { color: #6d83c7; font-size: 9px; font-weight: 800; letter-spacing: 1.3px; }
.admin-intro-icon { display: grid; place-items: center; width: 56px; height: 56px; flex: 0 0 56px; border-radius: 15px; color: #4e6ed0; background: #eef2ff; font-size: 25px; }
.admin-table-panel .mail-list-heading { padding-bottom: 19px; }
.admin-users-table { min-width: 900px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 6px; font-size: 9px; font-weight: 750; }
.status-pill i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-pill-active { color: #21815d; background: #eaf8f1; }
.status-pill-disabled { color: #7e8797; background: #f0f2f5; }
.admin-users-table .inline-form { margin: 0; }
.admin-users-table .button { font-size: 9px; }
.stats-grid { gap: 14px; margin-bottom: 21px; }
.stat-card { padding: 20px 21px; border: 1px solid #e7ebf2; border-radius: 13px; box-shadow: 0 6px 22px rgba(25,39,66,.04); }
.stat-card span { color: #7e8aa0; font-size: 10px; font-weight: 650; }
.stat-card strong { margin-top: 9px; color: #1e2b43; font-size: 28px; letter-spacing: -.7px; }
.stat-card small { display: block; margin-top: 4px; color: #9aa4b4; font-size: 9px; }
.dashboard-panel { padding-bottom: 20px; }
.dashboard-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; padding: 0 21px; }
.dashboard-metrics > div { padding: 17px; border: 1px solid #edf0f5; border-radius: 9px; background: #fafbfd; }
.dashboard-metrics span,.dashboard-metrics strong,.dashboard-metrics small { display: block; }
.dashboard-metrics span { color: #8591a5; font-size: 10px; }
.dashboard-metrics strong { margin-top: 7px; color: #2b3953; font-size: 20px; }
.dashboard-metrics small { margin-top: 4px; color: #9aa4b4; font-size: 9px; }
.panel { border-radius: 13px; }
.button { transition: transform .15s ease,background .15s ease,box-shadow .15s ease; }
.button-primary { background: linear-gradient(110deg,#4169df,#3156c6); box-shadow: 0 4px 10px rgba(53,91,207,.15); }
.button-primary:hover { background: #2d50bd; transform: translateY(-1px); }
input:focus,select:focus { border-color: #9aafea; outline: 3px solid rgba(65,105,223,.09); }
@media (max-width: 1000px) {
    .app-shell { grid-template-columns: 215px minmax(0,1fr); }
    .sidebar { padding-left: 12px; padding-right: 12px; }
    .main-content { padding-left: 22px; padding-right: 22px; }
    .mail-list-toolbar { align-items: stretch; flex-direction: column; }
    .mail-search { width: 100%; }
}
@media (max-width: 680px) {
    .app-shell { display: block; }
    .sidebar { position: relative; width: 100%; height: auto; padding: 12px 14px; }
    .brand { margin: 0 4px 12px; }
    .sidebar-section-label,.sidebar-bottom,.admin-label { display: none; }
    .main-nav { display: flex; gap: 5px; overflow-x: auto; }
    .sidebar nav a { flex: 0 0 auto; min-height: 37px; padding: 0 10px; font-size: 10px; }
    .nav-symbol { width: auto; font-size: 14px; }
    .main-content { padding: 0 12px 25px; }
    .topbar { position: relative; align-items: flex-start; flex-direction: column; gap: 12px; min-height: 0; margin-bottom: 16px; padding: 16px 0; }
    .topbar h1 { font-size: 20px; }
    .account-switcher { width: 100%; }
    .account-switcher select { max-width: none; flex: 1; }
    .mail-list-toolbar { padding: 12px; }
    .mail-search { gap: 6px; }
    .mail-search .button { padding: 6px 9px; }
    .mail-list-heading { padding: 16px 13px; }
    .mail-count { flex-direction: column; gap: 0; align-items: flex-end; }
    .mail-table { min-width: 930px; }
    .admin-intro-card { padding: 18px; }
    .admin-intro-icon { width: 44px; height: 44px; flex-basis: 44px; }
    .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
    .stat-card { padding: 14px; }
    .stat-card strong { font-size: 23px; }
    .dashboard-metrics { grid-template-columns: 1fr; padding: 0 13px; }
}

.detail-account-tags { margin: 0 0 18px; }
.detail-account-tags .account-tag { max-width: 100%; padding: 6px 9px; font-size: 10px; }

.pagination { display:flex; align-items:center; justify-content:center; gap:18px; padding:15px 18px 18px; color:#8792a5; font-size:10px; }
.pagination a,.pagination .is-disabled { padding:7px 11px; border:1px solid #e6eaf1; border-radius:7px; background:#fff; color:#52617d; font-weight:650; }
.pagination a:hover { border-color:#cbd6f5; color:#315bd6; text-decoration:none; }
.pagination .is-disabled { color:#b5bdca; background:#fafbfd; }

.dashboard-actions { display:flex; align-items:center; gap:10px; }
.conversation-count { display:inline-block; padding:4px 8px; border-radius:5px; background:#f0f3fa; color:#5f6f8d; font-size:9px; font-weight:700; white-space:nowrap; }
@media (max-width:680px) { .dashboard-actions { align-items:flex-end; flex-direction:column; gap:7px; } }

.pagination { display:flex; align-items:center; justify-content:center; gap:18px; padding:15px 18px 18px; color:#8792a5; font-size:10px; }
.pagination a,.pagination .is-disabled { padding:7px 11px; border:1px solid #e6eaf1; border-radius:7px; background:#fff; color:#52617d; font-weight:650; }
.pagination a:hover { border-color:#cbd6f5; color:#315bd6; text-decoration:none; }
.pagination .is-disabled { color:#b5bdca; background:#fafbfd; }


/* Mailbox-Zuordnung auf der Nachrichtendetailseite */
.assignment-form { margin: 18px 0 26px; padding: 18px 20px; border: 1px solid var(--border, #e5e7eb); border-radius: 12px; background: var(--surface-soft, #f8fafc); }
.assignment-form h4 { margin: 0 0 6px; font-size: 15px; }
.assignment-form p { margin: 0 0 14px; }
.assignment-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 9px 18px; margin: 12px 0 16px; }
.assignment-options label { display: flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.assignment-options input { flex: 0 0 auto; }
