/* Kompass – Oberfläche. Dunkles Design als Standard, helles Design über [data-theme="light"]. */
:root {
  --bg: #121314; --side: #17181a; --panel: #1b1c1f; --panel-2: #212226; --hover: #26282c; --sel: #1f2d3a;
  --text: #e8e9eb; --muted: #9a9ca3; --faint: #6b6e75; --line: #2b2d31; --line-2: #34363b;
  --accent: #2fb5a4; --accent-2: #3fc6b4; --accent-soft: rgba(47,181,164,.14); --on-accent: #06201c;
  --ok: #4ade80; --ok-soft: rgba(74,222,128,.14); --warn: #fbbf24; --warn-soft: rgba(251,191,36,.14); --bad: #f87171; --bad-soft: rgba(248,113,113,.14);
  --input: #16171a; --shadow: 0 12px 32px rgba(0,0,0,.45);
  --side-grad: linear-gradient(135deg, #16302d 0%, #1b2430 60%, #1d1f24 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif; font-size: 14px; color: var(--text);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f6f7f8; --side: #fbfbfc; --panel: #ffffff; --panel-2: #f3f4f6; --hover: #eef0f2; --sel: #e7f3f1;
  --text: #1d2125; --muted: #646b73; --faint: #8b9198; --line: #e3e5e8; --line-2: #d5d8dc;
  --accent: #0f8f80; --accent-2: #0c7d70; --accent-soft: #e3f4f1; --on-accent: #fff;
  --ok: #15803d; --ok-soft: #dcfce7; --warn: #b45309; --warn-soft: #fef3c7; --bad: #b91c1c; --bad-soft: #fee2e2;
  --input: #fff; --shadow: 0 12px 32px rgba(0,0,0,.14);
  --side-grad: linear-gradient(135deg, #e0f3ef 0%, #e8eef6 70%, #f3f4f6 100%);
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; display: flex; min-height: 100vh; background: var(--bg); color: var(--text); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
svg.i { width: 16px; height: 16px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Seitenleiste ---------- */
.sidebar { width: 236px; background: var(--side); border-right: 1px solid var(--line); flex-shrink: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; padding: 0 10px; transition: width .15s; }
body.collapsed .sidebar { width: 58px; }
body.collapsed .sidebar .lbl, body.collapsed .side-head, body.collapsed #svnav, body.collapsed .ws-name, body.collapsed .side-hint, body.collapsed .nav-sub, body.collapsed .pill { display: none !important; }
.ws { display: flex; align-items: center; gap: 8px; padding: 14px 6px 12px; position: relative; }
.ws-name { font-weight: 650; font-size: 14px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: #3a3320; color: #f5c84b; display: inline-grid; place-items: center; font-size: 10.5px; font-weight: 700; flex-shrink: 0; border: 1px solid rgba(245,200,75,.35); cursor: pointer; letter-spacing: .02em; }
.avatar.lg { width: 44px; height: 44px; font-size: 16px; background: var(--panel-2); color: var(--muted); border-color: var(--line-2); cursor: default; }
.avatar.sm { width: 22px; height: 22px; font-size: 9.5px; cursor: default; }
.feature-box { background: var(--side-grad); border: 1px solid var(--line); border-radius: 10px; padding: 6px 4px; margin-bottom: 14px; }
.feature-box a { padding: 6px 10px; }
.feature-head { font-size: 11px; letter-spacing: .08em; font-weight: 700; color: var(--accent); padding: 4px 10px 2px; display: flex; align-items: center; gap: 6px; }
nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; color: var(--text); text-decoration: none; border-radius: 7px; font-size: 14px; margin: 1px 0; }
nav a:hover { background: var(--hover); text-decoration: none; }
nav a.active { background: var(--hover); font-weight: 600; }
nav a .i { color: var(--muted); }
nav a.active .i { color: var(--text); }
nav a .plus { margin-left: auto; color: var(--muted); border-radius: 50%; display: grid; place-items: center; opacity: .8; }
nav a .plus:hover { color: var(--text); }
.nav-sub a { padding: 5px 10px 5px 36px; font-size: 13.5px; color: var(--muted); }
.nav-sub a.active { color: var(--text); background: transparent; }
.nav-sep { border-top: 1px solid var(--line); margin: 10px 8px; }
.side-head { padding: 18px 10px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 650; display: flex; align-items: center; gap: 6px; }
.side-head .spacer { flex: 1; }
.side-head a { color: var(--muted); display: grid; }
#svnav a { font-size: 13.5px; padding: 6px 10px; color: var(--text); }
.side-hint { color: var(--muted); font-size: 12.5px; line-height: 1.45; padding: 2px 10px 10px; }
.side-foot { margin-top: auto; padding: 10px 2px 12px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 2px; }
.side-foot a { padding: 7px 8px; }
.side-foot .grow { flex: 1; }
.pill { margin-left: auto; background: var(--accent); color: var(--on-accent); border-radius: 10px; font-size: 11px; padding: 0 7px; line-height: 18px; font-weight: 700; }
.pill:empty { display: none; }
.user-menu { position: absolute; top: 44px; left: 4px; right: 4px; z-index: 60; }

/* ---------- Kopfzeile ---------- */
.main-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; gap: 12px; align-items: center; padding: 10px 24px; border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 30; height: 60px; }
.search-wrap { position: relative; flex: 1; max-width: 580px; }
.search-wrap .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-wrap input { width: 100%; padding: 10px 12px 10px 36px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); font-size: 14px; }
.search-wrap input:focus { border-color: var(--accent); outline: none; }
.top-actions { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.dropdown { position: absolute; top: 100%; left: 0; right: 0; background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow); z-index: 50; margin-top: 4px; max-height: 440px; overflow: auto; padding: 4px; }
.search-item { padding: 8px 10px; cursor: pointer; border-radius: 6px; display: flex; gap: 8px; align-items: center; }
.search-item:hover, .search-item.sel { background: var(--hover); }

/* ---------- Grundlayout ---------- */
main { padding: 22px 28px 60px; width: 100%; }
main.flush { padding: 0; }
h1 { font-size: 26px; font-weight: 700; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; letter-spacing: -.01em; }
h1 .count { font-size: 14px; color: var(--muted); font-weight: 400; }
h1 button, h1 .btn, h1 select { font-size: 13px; font-weight: 500; letter-spacing: 0; }
h2 { font-size: 16px; margin: 22px 0 10px; }
h3 { font-size: 14px; margin: 0 0 10px; }
.spacer { flex: 1; }
.hidden { display: none !important; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 12px; } .strong { font-weight: 600; } .nowrap { white-space: nowrap; } .center { text-align: center; margin: 14px; } .pad { padding: 10px 18px; }
.overdue { color: var(--bad); font-weight: 600; }
.pre { white-space: pre-wrap; word-break: break-word; }
.clamp { max-height: 7.5em; overflow: hidden; }
.clamp1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 640px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 14px; }
.panel.inner { background: var(--panel-2); border: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.card .label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.card .value { font-size: 22px; font-weight: 650; margin-top: 5px; }
.card .sub { color: var(--muted); font-size: 12px; margin-top: 3px; }

/* ---------- Tabellen ---------- */
table { width: 100%; border-collapse: collapse; background: var(--panel); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 13.5px; color: var(--text); font-weight: 650; background: var(--panel); white-space: nowrap; }
td + td, th + th { border-left: 1px solid var(--line); }
th.sortable { cursor: pointer; } th.sortable:hover { background: var(--hover); } th.sorted { color: var(--accent); }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
th.cb, td.cb { width: 40px; text-align: center; }
th.ic, td.ic { width: 44px; text-align: center; color: var(--muted); }
tr.click { cursor: pointer; } tr.click:hover td { background: var(--hover); }
tr.selected td { background: var(--sel); }
tfoot td { font-weight: 600; background: var(--panel-2); }
.table-wrap { border: 1px solid var(--line); border-radius: 8px; overflow: auto; background: var(--panel); }
.table-wrap table { border: 0; }
.calc-row td { color: var(--muted); font-size: 13.5px; }
.empty { padding: 30px; text-align: center; color: var(--muted); }
.empty-state { text-align: center; padding: 60px 20px; border-bottom: 1px solid var(--line); }
.empty-state .big-ic { width: 52px; height: 52px; margin: 0 auto 14px; color: var(--muted); }
.empty-state h2 { font-size: 26px; margin: 0 0 10px; color: var(--muted); }
.empty-state p { color: var(--text); margin: 0; font-size: 15px; }

/* ---------- Knöpfe & Formulare ---------- */
button, .btn { font: inherit; font-size: 13.5px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); padding: 7px 12px; border-radius: 7px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; line-height: 1.2; }
button:hover, .btn:hover { background: var(--hover); text-decoration: none; }
button.primary, .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
button.primary:hover, .btn.primary:hover { background: var(--accent-2); }
button.danger { color: var(--bad); }
button.danger-fill { background: var(--bad); color: #fff; border-color: var(--bad); }
button.small, .btn.small { padding: 4px 9px; font-size: 12.5px; }
button.icon { border: 0; background: transparent; padding: 4px 6px; color: var(--muted); }
button.icon:hover { color: var(--text); background: var(--hover); }
button.ghost { border-color: transparent; background: transparent; }
button.ghost:hover { background: var(--hover); }
button:disabled { opacity: .45; cursor: default; }
.btn.big { padding: 10px 16px; font-size: 15px; }
.btnrow { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.btn-group { display: inline-flex; }
.btn-group > button:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.btn-group > button + button { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: -1px; padding: 7px 8px; }
input, select, textarea { font: inherit; font-size: 13.5px; padding: 7px 10px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--input); color: var(--text); }
textarea { resize: vertical; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 15px; height: 15px; }
form label, .modal label, .step label, .panel > label { display: block; margin-bottom: 10px; font-size: 12.5px; color: var(--muted); }
form label > input:not([type=checkbox]):not([type=radio]), form label > select, form label > textarea, .step label > input:not([type=checkbox]), .step label > select, .panel > label > select, .modal label > input:not([type=checkbox]):not([type=radio]), .modal label > select, .modal label > textarea { display: block; width: 100%; margin-top: 4px; color: var(--text); }
label.check { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 13.5px; }
label.inline { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin: 0; }
label.link { color: var(--accent); cursor: pointer; display: inline; margin: 0; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin: 0 0 10px; }
legend { font-size: 12px; color: var(--muted); padding: 0 4px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; align-items: end; }
.actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; margin-top: 12px; }
details summary { cursor: pointer; margin: 6px 0; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 2px 9px; border-radius: 10px; background: var(--panel-2); color: var(--text); font-weight: 600; white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); } .badge.bad { background: var(--bad-soft); color: var(--bad); } .badge.warn { background: var(--warn-soft); color: var(--warn); }
.status-dot { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.status-dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dot, var(--muted)); flex-shrink: 0; }
.c0 { --dot: #8b8f97; } .c1 { --dot: #60a5fa; } .c2 { --dot: #fbbf24; } .c3 { --dot: #a78bfa; } .c4 { --dot: #4ade80; } .c5 { --dot: #f87171; } .c6 { --dot: #fb923c; } .c7 { --dot: #2dd4bf; }
.badge.c0, .badge.c1, .badge.c2, .badge.c3, .badge.c4, .badge.c5, .badge.c6, .badge.c7 { background: var(--panel-2); }
.badge[class*=" c"]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
.tag { display: inline-block; background: var(--panel-2); border-radius: 5px; padding: 1px 6px; font-size: 12px; margin: 1px; }
.tabs { display: inline-flex; gap: 2px; background: var(--panel-2); padding: 3px; border-radius: 9px; margin-bottom: 12px; flex-wrap: wrap; }
.tabs button { border: 0; background: transparent; padding: 5px 12px; color: var(--muted); }
.tabs button.active { background: var(--panel); box-shadow: 0 1px 2px rgba(0,0,0,.25); font-weight: 600; color: var(--text); }
h1 .tabs { margin: 0; }
.utabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 0; padding: 0 0 8px; flex-wrap: wrap; align-items: center; }
.utabs button { border: 0; background: transparent; color: var(--muted); padding: 6px 10px; border-radius: 7px; }
.utabs button:hover { color: var(--text); background: var(--hover); }
.utabs button.active { color: var(--text); background: var(--hover); font-weight: 600; }
.ltabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); }
.ltabs button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--muted); padding: 10px 0; font-size: 14px; }
.ltabs button.active { color: var(--text); border-bottom-color: var(--text); font-weight: 600; }
.ltabs button:hover { background: transparent; color: var(--text); }
.chip { border-radius: 14px; padding: 3px 11px; font-size: 12.5px; }
.chip.active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.timeline-filter { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 12px; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.filters label { margin: 0; }
.bulk-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--sel); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 12px; margin-bottom: 12px; position: sticky; top: 64px; z-index: 10; }

/* ---------- Listen-Seite (Leads/Kontakte) ---------- */
.list-page { display: flex; min-height: calc(100vh - 60px); }
.list-main { flex: 1; min-width: 0; padding: 22px 28px 60px; }
.list-title { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; position: relative; }
.list-title h1 { margin: 0; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.list-title h1 .caret { font-size: 14px; color: var(--muted); }
.list-bar { display: flex; align-items: center; gap: 10px; padding: 0 0 14px; border-bottom: 1px solid var(--line); margin: 0 -28px 0; padding-left: 28px; padding-right: 28px; flex-wrap: wrap; }
.list-bar + * { margin-top: 0; }
.list-count { font-size: 13.5px; }
.fchips { display: flex; gap: 6px; flex-wrap: wrap; }
.fchip { display: inline-flex; align-items: center; gap: 6px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 7px; padding: 4px 6px 4px 10px; font-size: 13px; cursor: pointer; }
.fchip:hover { border-color: var(--accent); }
.fchip button { border: 0; background: transparent; padding: 0 3px; color: var(--muted); }
.list-table { margin: 0 -28px; }
.list-table table { border-top: 0; }
.list-table td:first-child, .list-table th:first-child { padding-left: 28px; }
.name-cell { display: flex; align-items: center; gap: 10px; }
.name-cell .avatar { cursor: pointer; }
.row-arrow { color: var(--muted); width: 14px; display: inline-block; }

/* Filter-Seitenpanel */
.drawer { width: 460px; flex-shrink: 0; border-left: 1px solid var(--line); background: var(--panel); position: sticky; top: 60px; height: calc(100vh - 60px); display: flex; flex-direction: column; }
.drawer-head { display: flex; align-items: center; gap: 8px; padding: 16px 18px 12px; }
.drawer-head h2 { margin: 0; font-size: 17px; flex: 1; display: flex; gap: 8px; align-items: center; }
.drawer-head h2.c { justify-content: center; }
.drawer-search { padding: 0 18px 12px; border-bottom: 1px solid var(--line); position: relative; }
.drawer-search .i { position: absolute; left: 30px; top: 11px; color: var(--muted); }
.drawer-search input { width: 100%; padding-left: 36px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 18px 16px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 12px 18px; display: flex; justify-content: flex-end; gap: 10px; }
.cat { display: flex; align-items: center; gap: 12px; padding: 13px 8px; border-bottom: 1px solid var(--line); cursor: pointer; font-weight: 650; font-size: 15px; }
.cat:hover { background: var(--hover); }
.cat .i { color: var(--muted); }
.cat .arrow { margin-left: auto; color: var(--muted); }
.cat .n { color: var(--accent); font-size: 12px; font-weight: 700; }
.fgroup-h { font-weight: 650; margin: 16px 0 8px; }
.fcheck { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; cursor: pointer; color: var(--text); margin: 0; }
.fcheck .i { color: var(--muted); width: 14px; height: 14px; }
.active-filters { margin: 10px 0 6px; }
.active-filters .f-row { background: var(--panel-2); border-radius: 8px; padding: 8px; }
.active-filters .f-top { font-size: 13px; }

/* Filter-Baukasten */
.filter-builder .f-top { margin-bottom: 8px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.f-row { display: flex; gap: 6px; align-items: flex-start; margin-bottom: 6px; flex-wrap: wrap; }
.f-row .f-field { max-width: 260px; }
.f-group { border-left: 3px solid var(--accent); padding: 8px 10px; background: var(--panel-2); border-radius: 6px; margin-bottom: 8px; }
.f-buttons { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
select[multiple] { min-width: 200px; }

/* ---------- Dialoge ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: grid; place-items: start center; padding: 6vh 16px; z-index: 100; overflow-y: auto; }
.modal { background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; width: 100%; max-width: 520px; box-shadow: var(--shadow); }
.modal.wide { max-width: 760px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-body { padding: 16px 18px; }
#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(30px); background: #2a2d31; color: #fff; padding: 10px 18px; border-radius: 8px; opacity: 0; transition: .2s; pointer-events: none; z-index: 200; max-width: 90vw; border: 1px solid #3a3d42; }
#toast.show { opacity: 1; transform: translateX(-50%); }
#toast.error { background: #7f1d1d; border-color: #991b1b; }
.error-panel, .error-text { color: var(--bad); }
.ok-box { background: var(--ok-soft); color: var(--ok); padding: 12px; border-radius: 8px; margin-top: 10px; }

/* ---------- Lead-Seite ---------- */
.lead-page { display: flex; flex-direction: column; min-height: calc(100vh - 60px); }
.lead-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 28px; border-bottom: 1px solid var(--line); }
.lead-head h1 { margin: 0; font-size: 20px; cursor: text; }
.lead-title { display: flex; flex-direction: column; gap: 4px; }
.lead-title .row { display: flex; align-items: center; gap: 8px; }
.status-pill { position: relative; display: inline-flex; align-items: center; }
.status-pill select { appearance: none; -webkit-appearance: none; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 7px; padding: 3px 26px 3px 10px; font-size: 13.5px; cursor: pointer; }
.status-pill::after { content: "▾"; position: absolute; right: 9px; pointer-events: none; color: var(--muted); font-size: 11px; }
.lead-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.lead-actions button { padding: 8px 13px; }
.lead-actions button.on { border-color: var(--accent); color: var(--accent); }
.lead-sub { color: var(--muted); font-size: 12px; }
.lead-grid { display: grid; grid-template-columns: 500px 1fr; flex: 1; align-items: stretch; }
.lead-left { border-right: 1px solid var(--line); padding: 0 18px 30px; min-width: 0; }
.lead-left .ltabs { margin: 0 2px 16px; }
.lead-right { padding: 14px 22px 40px; min-width: 0; }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: 9px; margin-bottom: 14px; overflow: hidden; }
.box-head { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: var(--panel-2); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.box-head .i { color: var(--muted); }
.box-head .n { background: var(--bg); border-radius: 5px; padding: 0 6px; font-size: 12px; letter-spacing: 0; }
.box-head .tools { margin-left: auto; display: flex; gap: 2px; }
.box-body { padding: 10px 14px; }
.box-body.flush { padding: 0; }
.about-line { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; color: var(--text); font-size: 14px; }
.about-line .i { color: var(--muted); margin-top: 2px; }
.about-line.add { color: var(--muted); cursor: pointer; }
.about-line.add:hover { color: var(--text); }
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.sec-head h3 { margin: 0; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px; padding: 5px 0; font-size: 13.5px; }
.kv > span { color: var(--muted); }
.contact { border-top: 1px solid var(--line); }
.contact:first-child { border-top: 0; }
.contact-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-weight: 650; font-size: 15px; }
.contact-head .tools { margin-left: auto; display: flex; gap: 2px; }
.contact-sub { padding: 6px 14px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 650; background: var(--panel-2); display: flex; }
.contact-body { padding: 6px 14px 10px; }
.cline { display: flex; gap: 10px; align-items: center; font-size: 14px; padding: 5px 0; }
.cline .i { color: var(--muted); }
.cline .t { color: var(--muted); font-size: 12px; }
.opp, .wfrun { border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; margin-bottom: 8px; background: var(--panel-2); }
.opp.click { cursor: pointer; } .opp.click:hover { border-color: var(--accent); }
.task { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; }
.task label { flex: 1; margin: 0; }
.task .done { text-decoration: line-through; color: var(--muted); }
.menu-wrap { position: relative; }
.menu-wrap .dropdown { left: 0; right: auto; width: 290px; }
.menu-wrap.right .dropdown { left: auto; right: 0; }
.menu-wrap .dropdown a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; color: var(--text); text-decoration: none; border-radius: 6px; font-size: 14.5px; }
.menu-wrap .dropdown a .i { color: var(--muted); }
.menu-wrap .dropdown a:hover { background: var(--hover); }
.menu-wrap .dropdown a.danger, .menu-wrap .dropdown a.danger .i { color: var(--bad); }
.menu-wrap .dropdown hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.tl-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.tl-bar .seg { display: flex; gap: 2px; }
.tl-bar .seg button { border: 0; background: transparent; color: var(--muted); padding: 6px 11px; }
.tl-bar .seg button.active { background: var(--hover); color: var(--text); font-weight: 600; }
.tl-search { margin-left: auto; position: relative; }
.tl-search .i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.tl-search input { padding-left: 32px; width: 330px; background: var(--panel-2); }
.composer { border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel); margin-bottom: 18px; overflow: hidden; }
.composer-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-weight: 650; }
.composer-body { padding: 12px 14px; }
.composer .tabs { margin-bottom: 10px; }
.cmp-line { display: grid; grid-template-columns: 70px 1fr; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); margin: 0; color: var(--muted); font-size: 13.5px; }
.cmp-line input, .cmp-line select { border: 0; background: transparent; padding: 4px 0; width: 100%; }
.cmp-line input:focus, .cmp-line select:focus { outline: none; }
.cmp-text { border: 0; background: transparent; min-height: 180px; padding: 12px 0; width: 100%; resize: vertical; }
.cmp-text:focus { outline: none; }
.cmp-foot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line); }
.timeline { position: relative; padding-left: 46px; }
.timeline::before { content: ""; position: absolute; left: 16px; top: 8px; bottom: 8px; width: 1px; background: var(--line-2); }
.act { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; margin-bottom: 12px; }
.act.flat { background: transparent; border: 0; padding: 8px 0; }
.act.pinned { border-color: rgba(251,191,36,.5); }
.act-icon { position: absolute; left: -46px; top: 8px; width: 32px; height: 32px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--muted); }
.act-icon.blue { background: #1e3256; color: #9fc1ff; border-color: #2a4677; }
:root[data-theme="light"] .act-icon.blue { background: #e1ebff; color: #2955b8; border-color: #c8d8fb; }
.act-main { min-width: 0; }
.act-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.act-head .title { font-weight: 650; font-size: 14.5px; }
.act-body { margin-top: 6px; }
.act-tools { opacity: 0; transition: .1s; } .act:hover .act-tools { opacity: 1; }
.act-foot { margin-top: 8px; }
.comment { background: var(--panel-2); border-radius: 6px; padding: 6px 9px; margin-top: 6px; font-size: 13px; }
.list-row { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.list-row .grow, .list-row .le-val, .list-row .ff-label { flex: 1; }
.mini-act { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.file-row { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
/* Anrufliste */
.dialer { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.phones { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
/* Pipeline */
.kanban { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px; align-items: flex-start; }
.kcol { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; min-width: 260px; width: 260px; flex-shrink: 0; }
.kcol.won .khead { border-top: 3px solid var(--ok); } .kcol.lost .khead { border-top: 3px solid var(--bad); }
.khead { border-top: 3px solid var(--accent); border-radius: 10px 10px 0 0; }
.kcol.over { outline: 2px dashed var(--accent); }
.khead { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.kbody { padding: 0 8px 8px; min-height: 60px; }
.kcard { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; margin-bottom: 8px; cursor: grab; }
.kcard:hover { border-color: var(--accent); }
.kcard.dragging { opacity: .4; }
.kval { font-weight: 650; margin: 2px 0; }
/* Posteingang */
.inbox-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.inbox-head h1 { margin: 0; }
.inbox-tools { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ib { display: flex; gap: 14px; align-items: flex-start; padding: 14px 6px; border-bottom: 1px solid var(--line); }
.ib:hover { background: var(--panel); }
.ib .act-icon { position: static; flex-shrink: 0; }
.ib-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ib-side { text-align: right; }
.ib-side .btnrow { justify-content: flex-end; }
/* Berichte */
.bars { display: flex; flex-direction: column; gap: 6px; }
.bar-row { display: grid; grid-template-columns: 160px 1fr 70px; gap: 8px; align-items: center; font-size: 13px; }
.bar { background: var(--panel-2); border-radius: 4px; height: 14px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.bar-val { text-align: right; font-variant-numeric: tabular-nums; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.daily { display: flex; gap: 3px; align-items: flex-end; height: 170px; overflow-x: auto; }
.dcol { display: flex; flex-direction: column; align-items: center; min-width: 22px; }
.dstack { width: 16px; display: flex; flex-direction: column-reverse; border-radius: 3px; overflow: hidden; }
.dlab { font-size: 9px; color: var(--muted); margin-top: 3px; writing-mode: vertical-rl; transform: rotate(180deg); height: 34px; }
.s-call { background: #2fb5a4; } .s-mail { background: #60a5fa; } .s-meet { background: #fbbf24; } .s-sms { background: #a78bfa; }
.legend { font-size: 12px; color: var(--muted); margin-top: 8px; display: flex; gap: 6px; align-items: center; }
.legend span { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.funnel { display: flex; flex-direction: column; gap: 8px; }
.fstage { display: flex; flex-direction: column; gap: 3px; }
.fbar { background: var(--accent); color: var(--on-accent); padding: 6px 10px; border-radius: 6px; font-weight: 650; min-width: 34px; }
.fbar.won { background: var(--ok); }
.flabel { font-size: 13px; }
/* Workflows */
.wf-grid { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }
.steps-h { margin: 18px 0 8px; }
.step { position: relative; }
.step-delay { font-size: 12px; color: var(--muted); margin-bottom: 8px; display: flex; gap: 6px; align-items: center; }
.step-delay input { width: 64px; }
.add-step select { width: 100%; padding: 9px; border-style: dashed; }
/* Einstellungen */
.settings { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 60px); }
.subnav { border-right: 1px solid var(--line); padding: 10px 10px 30px; position: sticky; top: 60px; height: calc(100vh - 60px); overflow-y: auto; }
.subnav .sn-head { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: 14px 8px 6px; }
.subnav .sn-head .i { color: var(--muted); width: 14px; height: 14px; }
.subnav a { padding: 5px 10px 5px 30px; font-size: 13.5px; color: var(--muted); border-left: 2px solid transparent; border-radius: 0 6px 6px 0; }
.subnav a:hover { color: var(--text); }
.subnav a.active { color: var(--text); background: var(--hover); border-left-color: var(--accent); font-weight: 600; }
.s-body { min-width: 0; padding: 22px 32px 60px; max-width: 980px; }
.s-body > h1 { font-size: 24px; }
.dup { padding: 8px 0; border-bottom: 1px solid var(--line); }
code { background: var(--panel-2); padding: 1px 5px; border-radius: 4px; font-size: 12px; word-break: break-all; }
@media (max-width: 1100px) {
  .lead-grid { grid-template-columns: 1fr; }
  .lead-left { border-right: 0; }
  .drawer { position: fixed; right: 0; top: 60px; z-index: 40; box-shadow: var(--shadow); max-width: 100vw; }
}
@media (max-width: 900px) {
  .wf-grid, .dialer, .grid2, .settings { grid-template-columns: 1fr; }
  .subnav { position: static; height: auto; }
  .sidebar { display: none; }
  main, .list-main { padding: 16px; }
  .tl-search input { width: 200px; }
}
.ghost-select { border: 0; background: transparent; padding: 0 4px; color: var(--text); }
.ghost-select:hover { background: var(--hover); }
.f-multi { display: flex; flex-direction: column; gap: 2px; max-height: 180px; overflow-y: auto; min-width: 200px; padding: 4px 8px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--input); }
.f-multi label.check { margin: 0; padding: 2px 0; font-size: 13px; }
.act-foot { opacity: 0; transition: opacity .1s; }
.act:hover .act-foot, .act-foot:focus-within { opacity: 1; }
.tl-search input { width: 280px; }
.icond { margin: 4px 0 10px 25px; display: flex; flex-direction: column; gap: 6px; }
.icond .ic-op { width: 100%; border-color: var(--accent); }
.icond .ic-val { margin: 0; }
.icond .ic-val input:not([type=checkbox]) { flex: 1; min-width: 0; }
.icond .f-multi { width: 100%; }

/* ---------- Befehlsmenü, Tastenkürzel, Lead-Navigation, Schlummern ---------- */
.palette-back { align-items: flex-start; padding-top: 12vh; }
.palette { width: min(620px, calc(100vw - 32px)); background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.45); overflow: hidden; }
.pal-in { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.pal-in input { flex: 1; border: 0; background: transparent; font-size: 16px; padding: 4px 0; outline: none; color: var(--text); box-shadow: none; }
.pal-list { max-height: 52vh; overflow-y: auto; padding: 6px; }
.pal-group { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); padding: 8px 10px 4px; }
.pal-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.pal-item.sel { background: var(--accent-soft); }
.pal-item .i { color: var(--muted); }
.pal-foot { padding: 8px 16px; border-top: 1px solid var(--line); }
kbd { display: inline-block; min-width: 18px; padding: 1px 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; background: var(--panel-2); font: 12px/1.5 inherit; color: var(--muted); text-align: center; }
.kbd-table { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.kbd-table td { padding: 5px 0; border-bottom: 1px solid var(--line); }
.kbd-table td:first-child { width: 45%; white-space: nowrap; }
.shortcuts-modal h4 { margin: 14px 0 6px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.kb-sel, tr.kb-sel td { background: var(--sel) !important; box-shadow: inset 3px 0 0 var(--accent); }
.lead-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.lead-nav:empty { display: none; }
.ib-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; }
.snooze-list { display: grid; gap: 6px; }
.snooze-list button { display: flex; justify-content: space-between; text-align: left; }
.inbox-tools select { max-width: 200px; }
.lead-nav:not(:empty) + .lead-actions { margin-left: 0; }
.rte-bar { display: flex; align-items: center; gap: 2px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.rte-bar button { background: transparent; border: 0; padding: 4px 8px; min-width: 28px; color: var(--muted); border-radius: 6px; }
.rte-bar button:hover { background: var(--hover); color: var(--text); }
.rte { min-height: 140px; outline: none; padding: 10px 2px; line-height: 1.5; overflow-wrap: anywhere; }
.rte:empty::before { content: attr(data-ph); color: var(--faint); }
.rte blockquote { margin: 6px 0; padding-left: 10px; border-left: 3px solid var(--line-2); color: var(--muted); }
.att-list { display: flex; flex-wrap: wrap; gap: 6px; }
.att-list:not(:empty) { padding: 6px 0; }
.att-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 9px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 12px; }
.att-chip .icon { padding: 0 4px; min-width: 0; }
.attach-btn { cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.rte-bar .attach-btn { display: inline-flex; flex-direction: row; width: auto; margin: 0; padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 6px; font-size: 12px; color: var(--muted); background: transparent; }
.rte-bar .attach-btn:hover { color: var(--text); background: var(--hover); }
.rte-bar .attach-btn input { display: none !important; }
.list-tools { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.calc-cell { display: flex; flex-direction: column; gap: 2px; align-items: inherit; }
td.num .calc-cell { align-items: flex-end; }
.calc-sel { font-size: 11px; padding: 1px 4px; border: 0; background: transparent; color: var(--faint); width: auto; }
.calc-sel:hover { color: var(--text); }
.col-list { max-height: 50vh; overflow-y: auto; }
.col-row { display: flex; align-items: center; gap: 6px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.playbook { border: 1px solid var(--line-2); border-left: 3px solid var(--accent); border-radius: 8px; padding: 8px 12px; margin: 6px 0 10px; display: grid; gap: 6px; background: var(--panel-2); }
.pb-q { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; margin: 0; }
@media (max-width: 700px) { .pb-q { grid-template-columns: 1fr; } }
.delta { font-size: 11px; font-weight: 600; color: var(--muted); }
.delta.up { color: #3fbf7f; }
.delta.down { color: #e5675f; }
.cmp-table td.num div { line-height: 1.1; }
.explorer-bar select { min-width: 150px; }
.bars + .table-wrap { margin-top: 16px; }
#login-screen { position: fixed; inset: 0; z-index: 1000; background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 16px; }
.login-box { width: min(380px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: grid; gap: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.login-box h2 { margin: 4px 0 6px; }
.login-logo { display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: 18px; }
.login-err { color: #e5675f; min-height: 1em; font-size: 13px; }
.perm-list { display: grid; gap: 4px; margin-bottom: 10px; }
td.center, th.center { text-align: center; }

/* Kampagnen */
.k-tile { display: block; width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.k-tile:hover { border-color: var(--accent); }
.kmp-list { padding: 0; }
.kmp { display: flex; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.kmp:last-child { border-bottom: 0; }
.kmp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.kmp-h { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.kmp-act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 330px; }
.kmp-bar { height: 6px; background: var(--panel-2); border-radius: 4px; overflow: hidden; margin: 3px 0; }
.kmp-bar i { display: block; height: 100%; background: var(--accent); }
.banner { background: var(--warn-soft); color: var(--warn); border-radius: 7px; padding: 8px 11px; font-size: 13px; margin: 6px 0; }
.banner.bad { background: var(--bad-soft); color: var(--bad); }
.kmp-kacheln { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.kmp-kachel { display: flex; flex-direction: column; align-items: flex-start; min-width: 92px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel-2); cursor: pointer; font: inherit; color: inherit; }
.kmp-kachel b { font-size: 20px; } .kmp-kachel span { color: var(--muted); font-size: 12px; }
.kmp-kachel[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.k-scroll { max-height: 55vh; }
.kmp-form label span.muted { display: block; margin-top: 3px; font-weight: 400; }
.kmp-range { display: flex; gap: 8px; align-items: center; } .kmp-range input { width: 90px; }
.kmp-sum { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; }
.kmp-prev { background: var(--panel-2); border-radius: 8px; padding: 10px 12px; margin: 8px 0; display: flex; flex-direction: column; gap: 4px; }
.kmp-prev-t { white-space: pre-wrap; font-size: 13px; }
.kmp-alle { max-height: 45vh; overflow: auto; }
@media (max-width: 700px) { .kmp { flex-direction: column; } .kmp-act { justify-content: flex-start; max-width: none; } }
.row4 { display: grid; grid-template-columns: 110px 110px 1fr 1fr; gap: 10px; }
@media (max-width: 700px) { .row4 { grid-template-columns: 1fr 1fr; } }

/* ---------- Ergänzungen aus der Kanzlei-Pipeline ---------- */
#ro-band { background: var(--warn-soft); color: var(--warn); padding: 6px 16px; font-size: 13px; border-bottom: 1px solid var(--line); }
.warn-box { background: var(--warn-soft); color: var(--warn); border-radius: 8px; padding: 8px 12px; font-size: 13px; margin: 6px 0 10px; }
.sv-count { background: transparent; color: var(--muted); font-weight: 500; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
img.avatar.sm { width: 22px; height: 22px; vertical-align: middle; border-radius: 50%; padding: 0; }
.pick-list { max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; margin: 4px 0 10px; }
.pick-list:empty { display: none; }
.pick-list .search-item.sel { background: var(--accent-soft); }
.day-group { margin: 14px 0; }
.day-head { font-weight: 650; font-size: 13px; padding: 4px 2px 6px; border-bottom: 1px solid var(--line); display: flex; gap: 8px; align-items: baseline; }
.vl-row { display: grid; grid-template-columns: 28px 46px minmax(140px, 220px) 1fr auto; gap: 10px; align-items: start; padding: 7px 4px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 13.5px; }
.vl-row:hover { background: var(--accent-soft); }
.vl-row .act-icon { width: 24px; height: 24px; }
.vl-main { min-width: 0; overflow: hidden; }
.vl-full { margin-top: 6px; white-space: pre-wrap; }
.cline .c-copy { opacity: 0; margin-left: 2px; }
.cline:hover .c-copy { opacity: .8; }
body.read-only .lead-actions, body.read-only #top-new-lead, body.read-only #new-lead-btn { opacity: .5; pointer-events: none; }
@media (max-width: 760px) { .vl-row { grid-template-columns: 24px 40px 1fr; } .vl-row > :nth-child(4), .vl-row > :nth-child(5) { grid-column: 1 / -1; } }

/* E-Mail-Verläufe wie in Close: eine Karte je Verlauf, Zeilen zum Aufklappen */
.mthread { position: relative; margin-bottom: 12px; }
.mt-card { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); overflow: hidden; min-width: 0; }
.mthread.pinned .mt-card { border-color: var(--accent); }
.mt-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.mt-msg + .mt-msg { border-top: 1px solid var(--line); }
.mt-row { display: flex; align-items: center; gap: 10px; padding: 9px 14px; cursor: pointer; font-size: 13.5px; min-width: 0; }
.mt-row:hover { background: var(--accent-soft); }
.mt-chev .i { width: 14px; height: 14px; color: var(--muted); transition: transform .15s; }
.mt-msg.open .mt-chev .i { transform: rotate(90deg); }
.mt-who { color: var(--muted); white-space: nowrap; flex: none; }
.mt-dir { flex: none; display: grid; }
.mt-dir .i { width: 15px; height: 15px; }
.mt-dir.in .i { color: var(--ok); }
.mt-dir.out .i { color: var(--muted); }
.mt-snip { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-date { flex: none; white-space: nowrap; }
.mt-body { display: none; padding: 4px 14px 12px; }
.mt-msg.open .mt-body { display: block; }
.mt-msg.open .mt-snip { visibility: hidden; }
.mt-addr { padding: 2px 0 8px; line-height: 1.6; }
.mt-body .act { border: 0; margin: 0; padding: 0; background: transparent; }
.mt-body .act > .act-icon { display: none; }
.mt-body .act .act-head .title, .mt-body .act .act-head .avatar { display: none; }
.mt-body .act .pre.clamp { -webkit-line-clamp: unset; max-height: none; display: block; overflow: visible; }
.mt-body .act-body > .strong:first-child, .mt-body .act-body > .strong:first-child + .muted, .mt-body .act-head > .muted.small { display: none; }
