/* TITO Mail: Drei-Spalten-Postfach. Alle Klassen beginnen mit .ml- */
:is(.ml, .ml-compose, .ml-modal-back, .ml-pop, .ml-toasts) {
    --ml-accent: var(--color-agentic-accent, #ff7a33);
    --ml-accent-2: var(--color-agentic-accent-2, #ff4d8d);
    --ml-line: var(--color-border, rgba(255,255,255,.075));
    --ml-line-2: var(--color-border-strong, rgba(255,255,255,.15));
    --ml-muted: var(--color-text-muted, #98a0ae);
    --ml-faint: var(--color-text-faint, #5f6675);
    --ml-text: var(--color-text, #eef0f4);
    --ml-surface: var(--color-surface, rgba(255,255,255,.035));
    --ml-hover: var(--color-surface-hover, rgba(255,255,255,.065));
    --ml-raised: var(--color-bg-raised, #0b0d12);
    color: var(--ml-text);
    font-size: 0.9rem;
    line-height: 1.4;
    font-family: var(--font-body, system-ui, "Segoe UI", sans-serif);
}
.ml {
    --ml-h: calc(100dvh - var(--ml-top, 96px));
    position: relative;
    display: grid;
    grid-template-columns: 238px minmax(300px, 410px) minmax(0, 1fr);
    height: var(--ml-h);
    min-height: 480px;
    border: 1px solid var(--ml-line);
    border-radius: var(--radius-medium, 16px);
    background: var(--ml-raised);
    overflow: hidden;
}
:is(.ml, .ml-compose, .ml-modal-back, .ml-pop, .ml-toasts) *,
:is(.ml, .ml-compose, .ml-modal-back, .ml-pop, .ml-toasts) *::before,
:is(.ml, .ml-compose, .ml-modal-back, .ml-pop, .ml-toasts) *::after { box-sizing: border-box; }
:is(.ml, .ml-compose, .ml-modal-back, .ml-pop, .ml-toasts) :is(button, input, select, textarea) { font: inherit; color: inherit; }
:is(.ml, .ml-compose, .ml-modal-back, .ml-pop, .ml-toasts) button { cursor: pointer; }
:is(.ml, .ml-compose, .ml-modal-back, .ml-pop, .ml-toasts) :focus-visible { outline: 2px solid var(--ml-accent); outline-offset: 1px; }
:is(.ml, .ml-compose, .ml-modal-back, .ml-pop, .ml-toasts) svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:is(.ml, .ml-compose, .ml-modal-back, .ml-pop, .ml-toasts) [hidden] { display: none !important; }
:is(.ml, .ml-compose, .ml-modal-back, .ml-pop, .ml-toasts) ::-webkit-scrollbar { width: 10px; height: 10px; }
:is(.ml, .ml-compose, .ml-modal-back, .ml-pop, .ml-toasts) ::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
:is(.ml, .ml-compose, .ml-modal-back, .ml-pop, .ml-toasts) ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.22); background-clip: content-box; }

/* Knoepfe */
.ml-btn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--ml-line-2); background: var(--ml-surface); border-radius: 10px; padding: 7px 12px; transition: background .15s, border-color .15s, transform .15s; }
.ml-btn:hover:not(:disabled) { background: var(--ml-hover); }
.ml-btn:disabled { opacity: .45; cursor: default; }
.ml-btn.primary { border: 0; color: #160b06; font-weight: 650; background: var(--gradient-accent, linear-gradient(135deg,#ff8a3d,#ff4d8d)); }
.ml-btn.primary:hover:not(:disabled) { filter: brightness(1.08); }
.ml-btn.danger { color: var(--color-error, #ff5f6d); border-color: rgba(255,95,109,.35); }
.ml-btn.ghost { border-color: transparent; background: transparent; }
.ml-btn.ghost:hover:not(:disabled) { background: var(--ml-hover); }
.ml-btn.small { padding: 4px 9px; font-size: .8rem; border-radius: 8px; }
.ml-icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 9px; background: transparent; color: var(--ml-muted); transition: background .15s, color .15s; position: relative; }
.ml-icon-btn:hover:not(:disabled) { background: var(--ml-hover); color: var(--ml-text); }
.ml-icon-btn:disabled { opacity: .35; cursor: default; }
.ml-icon-btn.on { color: var(--color-warn, #f5c451); }
.ml-icon-btn.on svg { fill: currentColor; }
.ml-spin svg { animation: ml-rot .8s linear infinite; }
@keyframes ml-rot { to { transform: rotate(360deg); } }

/* Seitenleiste */
.ml-side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--ml-line); background: rgba(255,255,255,.015); }
.ml-side-top { padding: 12px 12px 6px; }
.ml-side-top .ml-btn { width: 100%; justify-content: center; padding: 10px 12px; }
.ml-nav { flex: 1; overflow-y: auto; padding: 6px 8px 10px; }
.ml-nav-item { display: flex; align-items: center; gap: 9px; width: 100%; border: 0; background: transparent; text-align: left; padding: 7px 10px; border-radius: 9px; color: var(--ml-muted); }
.ml-nav-item:hover { background: var(--ml-hover); color: var(--ml-text); }
.ml-nav-item.active { background: var(--color-agentic-soft, rgba(255,122,51,.14)); color: var(--ml-text); }
.ml-nav-item .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-badge { min-width: 20px; padding: 1px 6px; border-radius: 10px; background: var(--gradient-accent, #ff7a33); color: #160b06; font-size: .72rem; font-weight: 700; text-align: center; }
.ml-badge.quiet { background: transparent; color: var(--ml-faint); font-weight: 500; }
.ml-acct { margin-top: 12px; }
.ml-acct-head { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: transparent; padding: 5px 10px; color: var(--ml-faint); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; text-align: left; }
.ml-acct-head:hover { color: var(--ml-text); }
.ml-acct-head .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.ml-acct-head .lbl { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-acct-head .err { color: var(--color-error, #ff5f6d); }
.ml-acct-head svg { width: 14px; height: 14px; transition: transform .15s; }
.ml-acct.closed .ml-acct-head svg.chev { transform: rotate(-90deg); }
.ml-acct.closed .ml-folders { display: none; }
.ml-folders .ml-nav-item { padding-left: 14px; }
.ml-side-foot { display: flex; gap: 4px; padding: 8px; border-top: 1px solid var(--ml-line); }
.ml-side-foot .ml-btn { flex: 1; justify-content: center; }

/* Liste */
.ml-list { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-right: 1px solid var(--ml-line); }
.ml-list-head { padding: 10px 12px 8px; border-bottom: 1px solid var(--ml-line); display: grid; gap: 8px; }
.ml-title-row { display: flex; align-items: center; gap: 6px; }
.ml-title-row h2 { flex: 1; margin: 0; font-size: 1.05rem; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-menu-btn { display: none; }
.ml-search { position: relative; }
.ml-search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--ml-faint); width: 16px; height: 16px; pointer-events: none; }
.ml-search input { width: 100%; padding: 8px 30px 8px 32px; border-radius: 10px; border: 1px solid var(--ml-line-2); background: var(--ml-surface); outline: none; }
.ml-search input:focus { border-color: var(--ml-accent); box-shadow: var(--glow-accent, 0 0 0 3px rgba(255,122,51,.18)); }
.ml-search .clear { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; }
.ml-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ml-chip { border: 1px solid var(--ml-line-2); background: transparent; border-radius: 999px; padding: 3px 11px; font-size: .78rem; color: var(--ml-muted); }
.ml-chip:hover { color: var(--ml-text); background: var(--ml-hover); }
.ml-chip.on { background: var(--color-agentic-soft, rgba(255,122,51,.14)); border-color: rgba(255,122,51,.5); color: var(--ml-text); }
.ml-bulk { display: flex; align-items: center; gap: 4px; padding: 4px 8px; background: var(--color-agentic-soft, rgba(255,122,51,.14)); border-bottom: 1px solid var(--ml-line); }
.ml-bulk .cnt { flex: 1; font-weight: 600; padding-left: 4px; }
.ml-rows { flex: 1; overflow-y: auto; min-height: 0; }
.ml-row { position: relative; display: grid; grid-template-columns: 22px 1fr auto; column-gap: 9px; padding: 10px 12px 10px 14px; border-bottom: 1px solid var(--ml-line); cursor: pointer; }
.ml-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--row-color, transparent); opacity: .85; }
.ml-row:hover { background: var(--ml-hover); }
.ml-row.active { background: var(--color-agentic-soft, rgba(255,122,51,.14)); }
.ml-row.picked { background: rgba(255,122,51,.08); }
.ml-row .pick { display: grid; place-items: center; padding-top: 2px; }
.ml-row .pick input { width: 15px; height: 15px; accent-color: var(--ml-accent); margin: 0; cursor: pointer; }
.ml-row .avatar { display: none; }
.ml-row .ml-main { min-width: 0; }
.ml-row .l1 { display: flex; gap: 6px; align-items: baseline; }
.ml-row .who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ml-muted); }
.ml-row .when { font-size: .75rem; color: var(--ml-faint); white-space: nowrap; }
.ml-row .subj { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.ml-row .snip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ml-faint); font-size: .82rem; margin-top: 1px; min-height: 1.15em; }
.ml-row.unread .who, .ml-row.unread .subj { color: var(--ml-text); font-weight: 650; }
.ml-row.unread .when { color: var(--ml-accent); }
.ml-row .side { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; padding-top: 1px; }
.ml-row .icons { display: flex; gap: 3px; color: var(--ml-faint); }
.ml-row .icons svg { width: 14px; height: 14px; }
.ml-row .star { border: 0; background: transparent; padding: 0; width: 18px; height: 18px; display: grid; place-items: center; color: var(--ml-faint); }
.ml-row .star svg { width: 15px; height: 15px; }
.ml-row .star:hover { color: var(--color-warn, #f5c451); }
.ml-row .star.on { color: var(--color-warn, #f5c451); }
.ml-row .star.on svg { fill: currentColor; }
.ml-more { padding: 14px; text-align: center; color: var(--ml-faint); }
.ml-empty { display: grid; place-items: center; text-align: center; gap: 8px; padding: 48px 20px; color: var(--ml-faint); }
.ml-empty svg { width: 40px; height: 40px; opacity: .5; }

/* Leser */
.ml-read { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ml-read-empty { margin: auto; text-align: center; color: var(--ml-faint); display: grid; gap: 10px; justify-items: center; }
.ml-read-empty svg { width: 54px; height: 54px; opacity: .35; }
.ml-toolbar { display: flex; align-items: center; gap: 2px; padding: 8px 10px; border-bottom: 1px solid var(--ml-line); flex-wrap: wrap; }
.ml-toolbar .sp { flex: 1; }
.ml-toolbar .sep { width: 1px; height: 20px; background: var(--ml-line-2); margin: 0 5px; }
.ml-back { display: none; }
.ml-scroll { flex: 1; overflow-y: auto; min-height: 0; }
.ml-msg-head { padding: 18px 22px 10px; }
.ml-msg-head h1 { margin: 0 0 12px; font-size: 1.3rem; line-height: 1.3; font-weight: 650; overflow-wrap: anywhere; }
.ml-from { display: flex; gap: 12px; align-items: flex-start; }
.ml-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #160b06; flex: none; }
.ml-from .meta { min-width: 0; flex: 1; }
.ml-from .name { font-weight: 650; }
.ml-from .addr { color: var(--ml-faint); font-size: .82rem; margin-left: 6px; }
.ml-from .to { color: var(--ml-muted); font-size: .82rem; overflow-wrap: anywhere; }
.ml-from .to button { border: 0; background: none; padding: 0; color: var(--ml-accent); font-size: .8rem; }
.ml-from .date { color: var(--ml-faint); font-size: .8rem; white-space: nowrap; }
.ml-details { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin-top: 8px; font-size: .82rem; color: var(--ml-muted); }
.ml-details dt { color: var(--ml-faint); }
.ml-details dd { margin: 0; overflow-wrap: anywhere; }
.ml-banner { margin: 4px 22px 10px; padding: 9px 12px; border-radius: 10px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--color-warn-soft, rgba(245,196,81,.12)); border: 1px solid rgba(245,196,81,.3); font-size: .84rem; }
.ml-banner .sp { flex: 1; min-width: 120px; }
.ml-banner.error { background: var(--color-error-soft, rgba(255,95,109,.12)); border-color: rgba(255,95,109,.35); }
.ml-atts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 22px 12px; }
.ml-att { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 7px 11px; border: 1px solid var(--ml-line-2); border-radius: 10px; background: var(--ml-surface); color: var(--ml-text); text-decoration: none; }
.ml-att:hover { background: var(--ml-hover); border-color: var(--ml-accent); }
.ml-att .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.ml-att .s { color: var(--ml-faint); font-size: .78rem; }
.ml-body { padding: 0 22px 24px; }
.ml-frame { width: 100%; border: 0; border-radius: 12px; background: #fff; display: block; min-height: 120px; }
.ml-text { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font-body); font-size: .93rem; line-height: 1.6; margin: 0; }
.ml-text .q { display: block; margin: 4px 0; padding-left: 12px; border-left: 3px solid var(--ml-line-2); color: var(--ml-muted); }
.ml-text a { color: var(--ml-accent); }
.ml-skel { height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--ml-surface), var(--ml-hover), var(--ml-surface)); background-size: 200% 100%; animation: ml-sh 1.2s linear infinite; margin: 10px 0; }
@keyframes ml-sh { to { background-position: -200% 0; } }

/* Menues, Dialoge, Hinweise */
.ml-pop { position: fixed; z-index: 60; min-width: 200px; max-width: 280px; max-height: 340px; overflow-y: auto; padding: 5px; background: var(--color-surface-solid, #0c0e13); border: 1px solid var(--ml-line-2); border-radius: 12px; box-shadow: var(--shadow-large, 0 30px 80px -24px rgba(0,0,0,.75)); }
.ml-pop button { display: flex; align-items: center; gap: 9px; width: 100%; border: 0; background: transparent; text-align: left; padding: 7px 10px; border-radius: 8px; }
.ml-pop button:hover { background: var(--ml-hover); }
.ml-pop .grp { padding: 6px 10px 3px; color: var(--ml-faint); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; }
.ml-modal-back { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.62); backdrop-filter: blur(3px); }
.ml-modal { width: min(560px, 100%); max-height: min(88dvh, 820px); display: flex; flex-direction: column; background: var(--color-surface-solid, #0c0e13); border: 1px solid var(--ml-line-2); border-radius: 16px; box-shadow: var(--shadow-large, 0 30px 80px -24px rgba(0,0,0,.75)); color: var(--ml-text); animation: ml-pop .18s var(--ease-out, ease-out); }
.ml-modal.wide { width: min(760px, 100%); }
@keyframes ml-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.ml-modal header { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--ml-line); }
.ml-modal header h3 { flex: 1; margin: 0; font-size: 1.05rem; }
.ml-modal .content { padding: 16px 18px; overflow-y: auto; display: grid; gap: 12px; }
.ml-modal footer { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 18px; border-top: 1px solid var(--ml-line); }
.ml-field { display: grid; gap: 5px; }
.ml-field > label, .ml-field > .lab { font-size: .78rem; color: var(--ml-muted); }
.ml-field input[type=text], .ml-field input[type=email], .ml-field input[type=password], .ml-field input[type=number], .ml-field select, .ml-field textarea, .ml-input { width: 100%; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--ml-line-2); background: var(--ml-surface); outline: none; }
.ml-field input:focus, .ml-field select:focus, .ml-field textarea:focus, .ml-input:focus { border-color: var(--ml-accent); box-shadow: var(--glow-accent, 0 0 0 3px rgba(255,122,51,.18)); }
.ml-field select option { background: #0c0e13; }
.ml-field .hint { font-size: .78rem; color: var(--ml-faint); }
.ml-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ml-help { padding: 10px 12px; border-radius: 10px; background: var(--ml-surface); border: 1px solid var(--ml-line); font-size: .84rem; color: var(--ml-muted); }
.ml-err { padding: 9px 12px; border-radius: 10px; background: var(--color-error-soft, rgba(255,95,109,.12)); border: 1px solid rgba(255,95,109,.35); color: #ffb3ba; font-size: .85rem; }
.ml-acct-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--ml-line); border-radius: 12px; background: var(--ml-surface); }
.ml-acct-card .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.ml-acct-card .info { flex: 1; min-width: 0; }
.ml-acct-card .info b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-acct-card .info span { font-size: .8rem; color: var(--ml-faint); }
.ml-acct-card .info .bad { color: var(--color-error, #ff5f6d); }
.ml-colors { display: flex; gap: 8px; flex-wrap: wrap; }
.ml-colors button { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; padding: 0; }
.ml-colors button.on { border-color: #fff; }
.ml-toasts { position: fixed; z-index: 90; left: 50%; bottom: 20px; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.ml-toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: #1a1d25; border: 1px solid var(--ml-line-2); box-shadow: var(--shadow-large, 0 20px 50px rgba(0,0,0,.6)); animation: ml-pop .2s var(--ease-out, ease-out); max-width: min(520px, 92vw); color: var(--ml-text, #eef0f4); }
.ml-toast.error { border-color: rgba(255,95,109,.5); }
.ml-toast.ok { border-color: rgba(61,220,132,.45); }
.ml-toast button { border: 0; background: none; color: var(--ml-accent, #ff7a33); font-weight: 650; padding: 0; }
.ml-kbd { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .88rem; }
.ml-kbd kbd { font-family: var(--font-mono, monospace); padding: 1px 7px; border-radius: 6px; background: var(--ml-hover); border: 1px solid var(--ml-line-2); justify-self: start; }

/* Verfassen */
.ml-compose { position: fixed; z-index: 65; right: 22px; bottom: 0; width: min(680px, calc(100vw - 24px)); height: min(640px, calc(100dvh - 40px)); display: flex; flex-direction: column; background: var(--color-surface-solid, #0c0e13); border: 1px solid var(--ml-line-2); border-bottom: 0; border-radius: 14px 14px 0 0; box-shadow: var(--shadow-large, 0 30px 80px -24px rgba(0,0,0,.75)); color: var(--ml-text, #eef0f4); animation: ml-pop .2s var(--ease-out, ease-out); }
.ml-compose.min { height: auto; }
.ml-compose.min .ml-c-body, .ml-compose.min .ml-c-foot { display: none; }
.ml-compose.max { right: 12px; left: 12px; width: auto; top: 12px; height: auto; max-height: none; border-radius: 14px; border-bottom: 1px solid var(--ml-line-2); bottom: 12px; }
.ml-c-head { display: flex; align-items: center; gap: 4px; padding: 6px 8px 6px 14px; background: rgba(255,255,255,.04); border-radius: 14px 14px 0 0; }
.ml-c-head .t { flex: 1; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-c-head .st { font-size: .75rem; color: var(--ml-faint, #5f6675); margin-right: 6px; }
.ml-c-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.ml-c-fields { border-bottom: 1px solid var(--ml-line, rgba(255,255,255,.075)); }
.ml-c-row { display: flex; align-items: center; gap: 8px; padding: 3px 14px; border-bottom: 1px solid var(--ml-line, rgba(255,255,255,.075)); min-height: 38px; position: relative; }
.ml-c-row:last-child { border-bottom: 0; }
.ml-c-row > .lab { width: 54px; flex: none; color: var(--ml-faint, #5f6675); font-size: .8rem; }
.ml-c-row select, .ml-c-row input.plain { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; padding: 7px 0; }
.ml-c-row select option { background: #0c0e13; }
.ml-c-row .lnk { border: 0; background: none; color: var(--ml-muted, #98a0ae); font-size: .8rem; padding: 2px 5px; }
.ml-c-row .lnk:hover { color: var(--ml-text, #eef0f4); }
.ml-rcpts { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; min-width: 0; padding: 4px 0; }
.ml-rcpt { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 9px; border-radius: 999px; background: var(--ml-hover, rgba(255,255,255,.065)); border: 1px solid var(--ml-line-2, rgba(255,255,255,.15)); font-size: .84rem; max-width: 100%; }
.ml-rcpt.bad { border-color: var(--color-error, #ff5f6d); color: #ffb3ba; }
.ml-rcpt button { border: 0; background: none; width: 18px; height: 18px; line-height: 1; border-radius: 50%; padding: 0; color: var(--ml-muted, #98a0ae); }
.ml-rcpt button:hover { background: rgba(255,255,255,.12); color: #fff; }
.ml-rcpts input { flex: 1; min-width: 140px; border: 0; outline: none; background: transparent; padding: 5px 0; }
.ml-suggest { position: absolute; left: 68px; top: 100%; z-index: 5; min-width: 260px; max-width: calc(100% - 80px); padding: 4px; background: #14171e; border: 1px solid var(--ml-line-2, rgba(255,255,255,.15)); border-radius: 10px; box-shadow: var(--shadow-large, 0 20px 50px rgba(0,0,0,.6)); }
.ml-suggest button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 6px 9px; border-radius: 7px; }
.ml-suggest button.on, .ml-suggest button:hover { background: var(--color-agentic-soft, rgba(255,122,51,.14)); }
.ml-suggest small { color: var(--ml-faint, #5f6675); margin-left: 6px; }
.ml-fmt { display: flex; gap: 2px; padding: 4px 8px; border-bottom: 1px solid var(--ml-line, rgba(255,255,255,.075)); }
.ml-fmt .ml-icon-btn { width: 30px; height: 30px; }
.ml-fmt .ml-icon-btn svg { width: 16px; height: 16px; }
.ml-editor { flex: 1; min-height: 140px; overflow-y: auto; padding: 12px 14px; outline: none; line-height: 1.6; overflow-wrap: anywhere; }
.ml-editor blockquote { margin: 6px 0; padding-left: 12px; border-left: 3px solid var(--ml-line-2, rgba(255,255,255,.15)); color: var(--ml-muted, #98a0ae); }
.ml-editor a { color: var(--ml-accent); }
.ml-editor:empty::before { content: attr(data-ph); color: var(--ml-faint, #5f6675); }
.ml-c-atts { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 14px; border-top: 1px solid var(--ml-line, rgba(255,255,255,.075)); }
.ml-c-att { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 9px; border-radius: 8px; background: var(--ml-surface, rgba(255,255,255,.035)); border: 1px solid var(--ml-line-2, rgba(255,255,255,.15)); font-size: .8rem; }
.ml-c-att .prog { color: var(--ml-faint, #5f6675); }
.ml-c-att button { border: 0; background: none; color: var(--ml-muted, #98a0ae); width: 18px; height: 18px; padding: 0; }
.ml-c-foot { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-top: 1px solid var(--ml-line, rgba(255,255,255,.075)); }
.ml-c-foot .sp { flex: 1; }
.ml-dropzone { outline: 2px dashed var(--ml-accent); outline-offset: -6px; }

/* Schmale Fenster: ein Bereich nach dem anderen */
@media (max-width: 1100px) {
    .ml { grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); }
    .ml-side { position: absolute; z-index: 40; inset: 0 auto 0 0; width: 260px; transform: translateX(-102%); transition: transform .22s var(--ease-out, ease-out); background: var(--color-surface-solid, #0c0e13); box-shadow: var(--shadow-large, 0 30px 80px rgba(0,0,0,.7)); }
    .ml.nav-open .ml-side { transform: none; }
    .ml.nav-open::after { content: ""; position: absolute; z-index: 35; inset: 0; background: rgba(0,0,0,.5); }
    .ml.nav-open .ml-side { z-index: 41; }
    .ml-menu-btn { display: inline-grid; }
}
@media (max-width: 760px) {
    .ml { --ml-h: calc(100dvh - var(--ml-top-m, 132px)); grid-template-columns: minmax(0, 1fr); border-radius: 12px; }
    .ml-read { display: none; }
    .ml[data-view=reader] .ml-read { display: flex; }
    .ml[data-view=reader] .ml-list { display: none; }
    .ml-back { display: inline-grid; }
    .ml-msg-head, .ml-body { padding-left: 14px; padding-right: 14px; }
    .ml-banner { margin-left: 14px; margin-right: 14px; }
    .ml-atts { padding-left: 14px; padding-right: 14px; }
    .ml-compose, .ml-compose.max { inset: 0; width: auto; height: auto; max-height: none; border-radius: 0; border: 0; }
    .ml-c-head { border-radius: 0; }
    .ml-row2 { grid-template-columns: 1fr; }
    .ml-title-row .ml-badge { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .ml *, .ml-modal, .ml-compose, .ml-toast { animation: none !important; transition: none !important; }
}
