/* =============================================================================
   Paket „detail“ (WP2) – Lead-Seite wie Close (SPEC_UI_CLOSE_1ZU1 C-05, C-06, C-07, C-16)
   Maße an close\M04_lead_detail_mathilde.png und M05_lead_detail_wullkopf.png (1920 px) nachgemessen:
   Kopf 80 + 1 · Reiter/Filterzeile 48 + 1 · linke Spalte 460 px (Kästen 427 px, Rand 16 px, Abstand 12 px) ·
   Feed: Chip-Mitte 38 px, Kartenkante 64 px, rechter Rand 24 px, erste Karte 12 px unter der Filterzeile,
   Abstand zwischen Einträgen 8 px, Kartenkopf 40 + 1 px, Zeile 36 px · Feed-Schrift 13/20 (Titel 600).
   Bausteine (.btn, .menu, .info-box, .type-chip, .avatar, .pill-tab …) kommen aus app.css (WP0).
   ============================================================================= */

/* ---------- Seitenaufbau: zwei unabhängig scrollende Spalten (B.1 page-detail) ---------- */
.lead-page { display: grid; grid-template-rows: calc(var(--lead-header-h) + 1px) minmax(0, 1fr); height: 100%; min-height: 0; background: var(--surface); }
.lead-body { display: grid; grid-template-columns: var(--lead-info-w) minmax(0, 1fr); min-height: 0; }
.lead-info { display: flex; flex-direction: column; min-height: 0; min-width: 0; border-right: 1px solid var(--border-default); background: var(--surface); }
.lead-info__tabs { flex: none; height: 49px; padding: 0 24px; }
.lead-info__scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 16px 7px 24px 16px; scrollbar-gutter: stable; overscroll-behavior: contain; }
.lead-info__scroll::-webkit-scrollbar { width: 9px; }
.lead-info__scroll::-webkit-scrollbar-thumb { background: #b2b2b2; border-radius: 6px; border: 0 solid transparent; border-right-width: 3px; background-clip: padding-box; }
:root[data-theme="dark"] .lead-info__scroll::-webkit-scrollbar-thumb { background-color: var(--gray-20); }
.lead-info__scroll::-webkit-scrollbar-track { background: transparent; }
.lead-feed { position: relative; min-height: 0; min-width: 0; overflow-y: auto; overflow-x: hidden; background: var(--surface-medium); overscroll-behavior: contain; scroll-padding-top: 61px; }   /* klebende Filterzeile 49 + 12: Fokus und Sprungziele landen nie darunter */
/* Souffleur-Karte unten im App-Rahmen (--live-room, wp_telephony_live.js): beide Spalten rollen ihr Ende über die Karte – Notiz,
   Editoren und ihre Knöpfe liegen nie fest dahinter */
.lead-info__scroll { padding-bottom: max(24px, var(--live-room, 0px)); }
.lead-feed { padding-bottom: var(--live-room, 0px); }
.lead-sidebar, .lead-files { min-width: 0; }

/* ---------- Kopf (C-05.1) ---------- */
.lead-header-wrap { min-width: 0; border-bottom: 1px solid var(--border-default); background: var(--surface); }
.lead-head { display: flex; align-items: center; gap: 16px; height: var(--lead-header-h); padding: 0 24px; min-width: 0; }
.lead-head > .avatar { flex: none; }
.lead-head__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lead-head__title { display: flex; align-items: center; gap: 8px; min-width: 0; }
/* .lead-name heißt auch die Namenszelle der Leads-Liste (wp_leads.css) – beide Regeln stehen deshalb unter ihrem Bauteil */
.lead-head .lead-name { margin: 0; font: 700 18px/24px var(--font-sans); color: var(--text-default); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.lead-head__meta { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lead-head__meta .status-select { min-width: 0; }
.status-select__label { overflow: hidden; text-overflow: ellipsis; }
.status-select.is-static { cursor: default; }
.status-select.is-static:hover { background: var(--gray-10); }
.lead-more { color: var(--text-default); }
.lead-actions { flex: none; display: flex; align-items: center; gap: 8px; }
.lead-actions .btn { border-radius: 8px; }
.lead-actions .btn-split > .btn:first-child, .lead-actions .btn-split > :first-child { border-radius: 8px 0 0 8px; }
.lead-actions .btn-split > .btn + .btn, .lead-actions .lead-call__caret { border-radius: 0 8px 8px 0; margin-left: -1px; width: 36px; padding: 0; }
.lead-actions .btn.is-disabled { pointer-events: auto; cursor: default; }
.lead-actions .btn.is-disabled:hover { background: var(--btn-bg); }
.lead-actions .caret, .lead-call__caret .icon { color: var(--text-default); }
.lead-actions .btn-menu { padding: 0 12px; gap: 8px; }
.lead-actions .btn-menu .caret { margin-left: 2px; }
.composer-btn.is-on, .lead-actions .btn.is-on { background: var(--surface-dark); }
/* Inbox-Chip (Kopf und Kasten AUFGABEN): #144a6d auf #e5f3ff [M M05] */
.inbox-chip { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 6px; border: 0; border-radius: 4px; background: var(--cyan-5); color: var(--cyan-70); font: 600 12px/16px var(--font-sans); white-space: nowrap; flex: none; }
.inbox-chip .icon { color: var(--cyan-70); }
.inbox-chip--head { border-radius: 6px; cursor: pointer; }
.inbox-chip--head:hover, .inbox-chip--head[aria-expanded="true"] { background: var(--cyan-10); }
.inbox-chip--head.is-static { cursor: default; }
.inbox-chip--head.is-static:hover { background: var(--cyan-5); }
/* Menü am Inbox-Chip wie Close (E127; ABGLEICH LD-01): ~250 breit, zwei Sammelaktionen; „Alle schlummern →“ öffnet den
   Zeitwähler als Untermenü RECHTS daneben (wp_detail.js showSubmenu; .is-left, wenn rechts kein Platz ist) */
.lead-inbox-menu { width: 250px; max-width: calc(100vw - 32px); overflow: visible; max-height: none; }
.lead-inbox-menu [data-inbox-snooze-toggle] .icon { margin-left: auto; color: var(--text-light); }
.menu-sub { position: absolute; left: calc(100% + 4px); top: 0; width: 260px; max-height: none; overflow: visible; }
.menu-sub.is-left { left: auto; right: calc(100% + 4px); }
.menu-sub[hidden] { display: none; }
.menu-item__meta { margin-left: auto; padding-left: 12px; flex: none; font-size: 13px; color: var(--text-light); white-space: nowrap; }
/* Der eine Zeitwähler (LD-26): Vorschläge + Monatskalender (Wochenbeginn Montag, heute mit Ring, Vergangenes gesperrt) */
.mini-cal { padding: 2px 0 4px; }
.mini-cal__head { display: flex; align-items: center; justify-content: space-between; height: 32px; }
.mini-cal__title { font: 600 14px/20px var(--font-sans); color: var(--text-default); }
.mini-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px 0; justify-items: center; padding-bottom: 2px; }
.mini-cal__dow { font: 600 11px/24px var(--font-sans); color: var(--text-light); text-transform: uppercase; }
.mini-cal__day { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: none; font: 400 13px/28px var(--font-sans); color: var(--text-default); cursor: pointer; font-variant-numeric: tabular-nums; }
.mini-cal__day:hover:not(:disabled), .mini-cal__day:focus-visible { background: var(--menu-item-hover); outline: 0; }
.mini-cal__day:focus-visible { box-shadow: inset 0 0 0 2px var(--blue-40); }
.mini-cal__day.is-today { box-shadow: inset 0 0 0 1px var(--blue-50); }
.mini-cal__day:disabled { color: var(--gray-30); cursor: default; }
.lead-activity-menu { width: 320px; }
.lead-activity-menu .menu-item__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.lead-activity-menu .menu-search { margin-bottom: 4px; }
.lead-actions .btn[aria-expanded="true"] { background: var(--surface-dark); }   /* offenes Menü: Knopf grau hinterlegt (close\07d) */
.lead-manage-menu { width: 255px; }
.lead-call-menu { min-width: 260px; }
.lead-call-menu--single { min-width: 0; white-space: nowrap; }                    /* wie Close (07e): so schmal wie sein einer Eintrag */
.menu > span.menu-divider { display: block; }
/* Dialoge der Lead-Seite wie Close (E133–E136, E145; ABGLEICH LD-02/04/06/08/09): 560 px breit, Oberkante bei 10 % der Fensterhöhe */
.modal-dialog:has(> .modal-body > .dlg-560) { max-width: 560px; }
.modal:has(> .modal-dialog > .modal-body > .dlg-560) { padding-top: 10vh; }
.dlg-head { align-items: flex-start; }
.dlg-head__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dlg-head__sub { margin: 0; font: 400 13px/18px var(--font-sans); color: var(--text-medium); }
.dlg-note { padding: 12px 16px; border-radius: 8px; background: var(--cyan-5); color: var(--cyan-70); font-size: 14px; line-height: 20px; }
.dlg-note p { margin: 0; }
.dlg-note ul { margin: 4px 0 0; padding-left: 18px; }
.dlg-note--band { border-radius: 0; }
.dlg-section { display: flex; flex-direction: column; gap: 8px; margin: 0; min-width: 0; }
.dlg-section + .dlg-section, .dlg-note + .dlg-section { margin-top: 20px; }
.dlg-section__title { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font: 600 12px/16px var(--font-sans); letter-spacing: 0; text-transform: uppercase; color: var(--text-light); }
.dlg-section__title .icon { flex: none; color: var(--icon-default); }
.dlg-section__title--line::after { content: ""; flex: 1; height: 1px; background: var(--border-default); }
.dlg-person { display: flex; align-items: center; gap: 8px; min-height: 28px; font-size: 14px; line-height: 20px; }
.dlg-person .avatar { width: 16px; height: 16px; font-size: 8px; line-height: 16px; }
.dlg-person > .icon { color: var(--icon-default); }
.dlg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.dlg-grid .field { margin: 0; min-width: 0; }
.dlg-grid .field-span { grid-column: 1 / -1; }
.dlg-grid .input { width: 100%; }
.dlg-grid textarea.input { min-height: 56px; height: 56px; resize: vertical; }
.meeting-dialog { display: flex; flex-direction: column; min-width: 0; margin: 0; background: none; }
.meeting-dialog__editor { border: 1px solid var(--border-default); border-radius: 8px; overflow: hidden; background: var(--surface); }
.meeting-dialog .composer__alert { border-bottom: 0; }
.merge-dialog__body { display: flex; flex-direction: column; gap: 12px; }
/* Popover (Zeitraum): Kopf · Inhalt · Fuß. Die Klassen .popover__… benutzen auch die Menüs „Spalten“ und „Sortierung“ der
   Leads-Liste (wp_leads.css) und die Popover der Inbox – die Regeln hier gelten deshalb nur dem Zeitraum-Popover des Verlaufs */
.feed-menu--time.popover { padding: 0; max-width: calc(100vw - 32px); }
.feed-menu--time .popover__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 12px 4px 16px; }
.feed-menu--time .popover__title { margin: 0; font: 600 16px/24px var(--font-sans); }
.feed-menu--time .popover__body { display: flex; flex-direction: column; gap: 4px; padding: 8px 16px 16px; }
.feed-menu--time .popover__foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border-default); background: var(--surface-medium); border-radius: 0 0 8px 8px; }

/* ---------- Arbeitsliste / „Nächster Lead“ (C-05.5): runder Knopf, klappt zur Leiste auf ---------- */
.worklist-fab { position: fixed; right: 32px; bottom: 32px; z-index: var(--z-next-lead); display: flex; align-items: center; height: 52px; border-radius: 26px; background: var(--bg-next-lead); box-shadow: var(--shadow-4); color: #fff; max-width: calc(100vw - 64px); }
.worklist-fab__panel { display: none; align-items: center; gap: 12px; padding: 0 4px 0 20px; min-width: 0; }
.worklist-fab:hover .worklist-fab__panel, .worklist-fab:focus-within .worklist-fab__panel { display: flex; }
.worklist-fab__view { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 13px/18px var(--font-sans); color: var(--gray-10); }
.worklist-fab__view:hover { color: #fff; text-decoration: none; }
.worklist-fab__pos, .worklist-fab__skipped { font: 400 13px/18px var(--font-sans); color: var(--gray-40); white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Dunkelmodus: die Leiste bleibt eine dunkle Inversfläche (--bg-next-lead) – Schrift in hellen Stufen statt der im Dunkeln dunklen 10er */
:root[data-theme="dark"] .worklist-fab__view { color: var(--gray-80); }
:root[data-theme="dark"] .worklist-fab__pos, :root[data-theme="dark"] .worklist-fab__skipped { color: var(--gray-60); }
.worklist-fab__btn { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 6px; border-radius: 6px; color: #fff; font: 400 13px/18px var(--font-sans); white-space: nowrap; }
.worklist-fab__btn:hover { background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none; }
.worklist-fab__next { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 52px; height: 52px; border-radius: 26px; color: #fff; flex: none; }
.worklist-fab__next:hover { color: #fff; text-decoration: none; }
.worklist-fab__label, .worklist-fab__next kbd { display: none; }
.worklist-fab:hover .worklist-fab__next, .worklist-fab:focus-within .worklist-fab__next { width: auto; height: 36px; margin: 0 8px 0 4px; padding: 0 10px 0 14px; border-radius: 18px; background: var(--btn-primary); font: 600 14px/20px var(--font-sans); }
.worklist-fab:hover .worklist-fab__next:hover { background: var(--btn-primary-hover); }
.worklist-fab:hover .worklist-fab__label, .worklist-fab:focus-within .worklist-fab__label, .worklist-fab:hover .worklist-fab__next kbd, .worklist-fab:focus-within .worklist-fab__next kbd { display: inline-block; }
.worklist-fab__next kbd { background: rgba(255, 255, 255, .16); border-color: transparent; color: #fff; }
.worklist-fab:hover .worklist-fab__next .icon, .worklist-fab:focus-within .worklist-fab__next .icon { width: 16px; height: 16px; }

/* ---------- Linke Spalte: Kästen (C-05.2; B.6.8) ---------- */
/* Palettenstufen 70 (Strich) und 10 (Füllung) – im Dunkelmodus helle Striche auf dunkler Füllung */
#box-about { --box-ink: var(--blue-70); --box-fill: var(--blue-10); }
#box-tasks { --box-ink: var(--red-70); --box-fill: var(--red-10); }
#box-opps { --box-ink: var(--gold-70); --box-fill: var(--gold-10); }
#box-contacts { --box-ink: var(--cyan-70); --box-fill: var(--cyan-10); }
#custom-panel { --box-ink: var(--green-70); --box-fill: var(--green-10); }
.info-box--object { --box-ink: var(--purple-70); --box-fill: var(--purple-10); }
#box-sequences { --box-ink: var(--orange-70); --box-fill: var(--orange-10); }
.lead-info .info-box__head { user-select: none; }
.lead-info .info-box__head:focus-visible { outline-offset: -2px; }
/* Kastenkopf klebt beim Scrollen direkt unter den Reitern „Details | Dateien“ wie in Close (E514; ABGLEICH LD-43): overflow: clip
   statt hidden (app.css) – hidden machte den Kasten selbst zum Scroll-Bezug; clip hält die runden Ecken und lässt sticky an der
   Spalte hängen. Menüs aus dem Kopf sind position: fixed (app.js) und werden nicht abgeschnitten. */
.lead-info .info-box { overflow: clip; }
.lead-info .info-box__head { position: sticky; top: -16px; z-index: 2; background: var(--surface-dark); }   /* −16 px gleicht das obere Padding der Spalte aus: bündig unter der Reiterlinie */
.lead-info .info-box.is-empty .info-box__head, .lead-info .info-box.is-collapsed .info-box__head { position: static; }
.lead-info .info-box__head > .icon, .lead-info .info-box__head .box-chevron { width: 14px; height: 14px; }
.lead-info .info-box__head .box-chevron { transition: transform var(--dur-quick) var(--ease); }
.lead-info .info-box.is-collapsed .box-chevron { transform: rotate(-90deg); }
.lead-info .info-box.is-collapsed .task-composer-slot, .lead-info .info-box.is-collapsed .box-foot, .lead-info .info-box.is-collapsed .info-box__head .inbox-chip { display: none; }
.lead-info .info-box__tools .btn-icon.btn-sm { width: 24px; height: 24px; border-radius: 6px; }
.lead-info .info-box__tools .icon, .box-task__actions .btn .icon { color: var(--icon-default); }
.lead-info .info-box.is-empty .info-box__tools { opacity: var(--muted-opacity); }
.lead-info .info-box.is-empty .info-box__tools:hover, .lead-info .info-box.is-empty .info-box__tools:focus-within { opacity: 1; }
.info-box.is-empty-soft .info-box__head > .icon, .info-box.is-empty-soft .info-box__title, .info-box.is-empty-soft .count-badge { opacity: var(--muted-opacity); }
.lead-info .count-badge { height: 16px; min-width: 16px; padding: 0 4px; }
/* Unterköpfe „FELDER“/„DETAILS“: 11 px 400 #767676, 34 px [M M04: y 621–654] */
.lead-info .info-box__sub { height: 35px; padding: 0 8px 0 12px; font-size: 11px; border-top: 1px solid var(--border-light); justify-content: space-between; }
.lead-info .info-box__sub .info-box__tools { margin-left: auto; }
.box-foot { margin: 0; padding: 4px 12px 10px; font-size: 13px; line-height: 18px; color: var(--text-light); }
.box-empty { margin: 0; padding: 8px 12px; font-size: 13px; color: var(--text-light); }
/* Suche im Kasten ersetzt wie in Close den ganzen Kopf (E535; ABGLEICH LD-44): Lupe + randloses Feld auf dem grauen Grund, Höhe 32 */
.info-box__head .box-search { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; }
.info-box__head .box-search[hidden] { display: none; }
.info-box__head .box-search > .icon { flex: none; width: 16px; height: 16px; color: var(--icon-default); }
.info-box__head .box-search input { flex: 1 1 auto; min-width: 0; height: 32px; padding: 0; border: 0; outline: 0; background: transparent; font: 400 14px/20px var(--font-sans); color: var(--text-default); }
.info-box__head .box-search input::placeholder { color: var(--text-light); }
.info-box__head.is-searching { cursor: text; }
.info-box__head.is-searching > :not(.box-search) { display: none !important; }
/* Kontakt ohne Feldwerte: zwei Links mittig unter dem Unterkopf FELDER (E529; ABGLEICH LD-54) */
.box-fields-empty { margin: 0; padding: 16px 12px; text-align: center; font-size: 14px; line-height: 20px; color: var(--text-default); }
.box-fields-empty a { color: var(--link); }
.box-more, .feed-more-link { display: block; width: 100%; padding: 1px 12px 9px; border: 0; background: none; text-align: left; font: 400 12px/16px var(--font-sans); color: var(--text-medium); cursor: pointer; }
.box-more:hover { color: var(--text-default); text-decoration: underline; }
.clamp-toggle { display: block; margin-top: 2px; padding: 0; border: 0; background: none; font: 400 13px/20px var(--font-sans); color: var(--link); cursor: pointer; text-align: left; }
.clamp-toggle:hover { text-decoration: underline; }
.clamp-toggle[aria-expanded="true"] { color: var(--text-light); }                /* „Weniger anzeigen …“ grau wie Close (E574) */
[data-clamp].is-clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--clamp, 6); overflow: hidden; }
/* Kürzung nach Höhe (Feld-Raster der Custom Activity, LD-41) */
[data-clamp-px].is-clamped { max-height: var(--clamp-px, 60px); overflow: hidden; }
/* Notizen im Feed kürzen wie Close nach ABSÄTZEN (M04, M05, E559, E574; ABGLEICH LD-36): erster Absatz ganz, vom nächsten EINE Zeile
   mit „…“ (.clamp-line, von wp_detail.js eingesetzt), der Rest ausgeblendet; ein einzelner Absatz wird nie gekürzt. */
[data-clamp-blocks].is-clamped > :not(.is-clamp-keep) { display: none; }
[data-clamp-blocks] > .clamp-line { display: none; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-clamp-blocks].is-clamped > .clamp-line { display: block; }
.feed-prose > .is-split-head { margin-bottom: 0; }                 /* am <br> geteilter Absatz: aufgeklappt ohne Absatzabstand wie zuvor */
.feed-prose.is-clamped > .is-split-head { margin-bottom: 0; }
/* Pfeile an Status, „Anrufen ▾“ und „Aktivität ▾“ sind in Close gefüllte Dreiecke [M M04] */
.lead-head .status-select .icon, .lead-actions .caret, .lead-call__caret .icon, .inbox-chip .caret { fill: currentColor; stroke-linejoin: round; width: 14px; height: 14px; margin: 0 -3px 0 -2px; }
.user-inline + .user-inline { margin-left: 8px; }

/* Feld-Zeilen (Label + Wert) 13 px [M M04: „Adresse / Postleitzahl“ · „54338“] */
.kv-list { margin: 0; padding: 8px 0; }
.lead-info .kv-row { grid-template-columns: minmax(0, 40%) minmax(0, 1fr); min-height: 28px; padding: 4px 12px; font-size: 13px; line-height: 20px; align-items: start; }
.lead-info .kv-row dt { color: var(--text-medium); }
.lead-info .kv-row dd { min-width: 0; display: flex; align-items: flex-start; gap: 4px; flex-wrap: wrap; }
.lead-info .chip-outline { height: 24px; padding: 0 9px; font-size: 13px; margin: 0 4px 0 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kv-more { display: contents; }
.kv-more[hidden] { display: none !important; }
.kv-long { min-width: 0; --clamp: 3; }
/* Feldzeilen wie Close (E512; ABGLEICH LD-51): der Wertbereich bekommt beim Überfahren einen grauen Grund (Radius 8, bis 12 px vor den
   Rand), rechts darin Kopieren · Suchen · Entfernen (24 × 24, Icons 16 #767676). Der Wert selbst ist der Bearbeiten-Auslöser. */
.lead-info .kv-row dd.kv-value { position: relative; flex-wrap: nowrap; margin: -2px 0 -2px -8px; padding: 2px 4px 2px 8px; border-radius: 8px; min-height: 24px; }
.lead-info .kv-row:hover dd.kv-value, .lead-info .kv-row:focus-within dd.kv-value { background: var(--surface-dark); }
.kv-value__text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.kv-value.is-editable > .kv-value__text { cursor: pointer; border-radius: 4px; }
.kv-value__text:focus-visible { outline: 2px solid var(--blue-40); outline-offset: 1px; }
/* Feldwert, der eine Internetadresse ist (Close E160 „Link Inserat/Website 1“): blauer Link in EINER Zeile mit Ellipse, öffnet im neuen
   Tab. Der Klick auf den Link öffnet die Seite – zum Bearbeiten steht beim Überfahren ein Stift vor „Kopieren“ (wie Close an der URL-Zeile). */
.kv-value__text > a, .field-card__value > a { display: inline-block; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: top; color: var(--link); }
.kv-value__text > a:hover, .field-card__value > a:hover { text-decoration: underline; }
.kv-tools { flex: none; display: none; align-items: center; gap: 0; margin: -2px 0; }
.kv-row:hover .kv-tools, .kv-row:focus-within .kv-tools { display: inline-flex; }
.kv-tools form { margin: 0; display: inline-flex; }
.kv-tools .btn-icon.btn-sm { width: 24px; height: 24px; border-radius: 6px; }
.kv-tools .btn .icon { color: var(--text-light); }
.kv-tools .btn:hover .icon { color: var(--icon-default); }
@media (hover: none) { .kv-tools { display: inline-flex; } }
/* Werkzeuge, die nur der Fokus erreichbar macht (Tastatur; die Zeile wird nicht überfahren): sie liegen über dem Zeilenende und nehmen
   keinen Platz. Sonst bräche der Wert neben ihnen um, die Zeile würde höher – und beim nächsten Mausklick weiter unten (der Fokus geht,
   die Zeile schrumpft) rutschte alles darunter unter dem Zeiger weg: der Klick träfe nicht mehr, worauf gedrückt wurde. Steht der Fokus
   auf dem Wert selbst, bleibt der Wert ganz lesbar (Werkzeuge unsichtbar, mit Tab erreichbar); sichtbar werden sie, sobald eines den Fokus hat. */
@media (hover: hover) {
  .lead-info .kv-row:focus-within:not(:hover) .kv-tools { position: absolute; top: 0; right: 4px; margin: 0; border-radius: 6px; background: var(--surface-dark); box-shadow: -6px 0 6px var(--surface-dark); opacity: 0; pointer-events: none; }
  .lead-info .kv-row:not(:hover) .kv-tools:focus-within { opacity: 1; pointer-events: auto; }
}
/* Langer Wert (mehrzeiliger Text, .kv-long): Nähmen die Werkzeuge ihm beim Überfahren Platz, bräche der ganze Text neu um – eine
   Zusammenfassung von 2.000 px Höhe wüchse um mehrere hundert Pixel, alles darunter spränge, und wer in den Text klicken will, träfe
   eine andere Stelle. Für die Werkzeuge ist deshalb oben rechts eine Ecke frei gehalten (die erste Zeile endet 52 px früher), dort
   liegen sie über dem Wert, ohne Platz zu nehmen. */
.lead-info .kv-value__text > .kv-long::before { content: ""; float: right; width: 52px; height: 20px; }
.lead-info .kv-row dd.kv-value:has(> .kv-value__text > .kv-long) > .kv-tools { position: absolute; top: 0; right: 4px; margin: 0; }
/* Felder an Ort und Stelle (Owner 13.10.2026, wie Close E512/E507; wp_detail.js): der Wert wird in seiner Zeile zum Editor – Auswahl
   als Liste mit Suche direkt unter dem Feld (.inline-pick), Text als Eingabefeld, Datum mit dem Datumswähler. Feld 28 hoch, 13 px,
   blauer Rahmen wie ein Feld mit Fokus; kein grauer Überfahren-Grund, solange bearbeitet wird. */
.lead-info .kv-row dd.kv-value.is-editing, .lead-info .kv-row:hover dd.kv-value.is-editing { margin: -4px 0 -4px -8px; padding: 0; background: none; }
.kv-value.is-editing > :not(.inline-edit) { display: none !important; }
.custom-panel .custom-row.is-empty.is-adding { display: grid; }
.custom-panel .custom-group:has(.custom-row.is-adding) { display: block; }
.inline-edit { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 20px; }
.inline-edit .input { width: 100%; min-width: 0; height: 28px; padding: 0 8px; font-size: 13px; line-height: 20px; }
.inline-edit--text .input, .inline-edit--number .input, .inline-edit--url .input { border-color: var(--form-border-focus); }   /* ein Feld: es ist das bearbeitete */
.inline-edit textarea.input { height: auto; min-height: 60px; max-height: min(60vh, 600px); padding: 4px 8px; resize: none; }   /* Langtext: „Abbrechen · Speichern“ bleiben in Reichweite */
/* einfacher Text: eine Zeile hoch, wächst mit dem Inhalt – ohne Höchsthöhe: Auch der Wert steht ungekürzt in der Zeile (LD-53), die
   Zeile behält beim Öffnen ihre Höhe, darunter verrutscht nichts, und der Cursor steht an der angeklickten Stelle. */
.inline-edit--text textarea.input { min-height: 28px; max-height: none; padding: 3px 8px; overflow: hidden; overflow-wrap: anywhere; }
.inline-edit .inline-edit__rich { height: auto; min-height: 60px; max-height: min(60vh, 600px); padding: 4px 8px; overflow: auto; }
.inline-edit .dt-input { padding-left: 30px; }
/* Datum + Uhrzeit nebeneinander in der schmalen Wertspalte (196 px bei 1440): ohne die beiden Symbole und mit mehr Platz für das Datum,
   damit auch ein Datum mit Jahr („Mi., 09.09.2025“) ganz zu lesen ist; die Uhrzeit bleibt neben dem offenen Kalender sichtbar */
.inline-edit .dt-field--datetime { gap: 6px; }
.inline-edit .dt-field--datetime .dt-box--date { flex: 1.6 1 0; }
.inline-edit .dt-field--datetime .dt-box > .dt-icon { display: none; }   /* nur die Symbole in den Feldern – die Pfeile im Kalender bleiben */
.inline-edit .dt-field--datetime .dt-box > .dt-input { padding-left: 8px; }
.inline-edit .inline-edit__rich:focus { border-color: var(--form-border-focus); outline: 0; }
.inline-edit .dt-box .dt-icon { left: 9px; top: 6px; }
.inline-edit__field { display: flex; align-items: center; gap: 4px; min-height: 28px; padding: 3px 4px 3px 8px; border: 1px solid var(--form-border-focus); border-radius: 6px; background: var(--surface); cursor: pointer; }
.inline-edit__shown { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; overflow-wrap: anywhere; }
.inline-edit__shown .chip-outline { margin: 0; }
.inline-edit__placeholder { color: var(--text-light); }
.inline-edit__caret { flex: none; color: var(--icon-default); }
.inline-edit__line { display: flex; gap: 6px; min-width: 0; }
.inline-edit__line > .input { flex: 1 1 0; }
.inline-edit .inline-edit__zip { flex: 0 0 72px; }
.inline-edit .inline-edit__country { flex: 0 0 52px; text-transform: uppercase; }
.inline-edit .inline-edit__label { flex: 0 0 auto; width: auto; padding-right: 24px; }
.inline-edit__foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.inline-edit__remove { margin-right: auto; color: var(--text-danger); }
.inline-edit__error { margin: 0; color: var(--text-danger); font-size: 12px; line-height: 16px; }
/* Datum: Die Meldung des Datumswählers („Ungültiges Datum …“) läge unter dem offenen Kalender. Sie steht stattdessen als Hinweis
   des Editors unter dem Feld, der Kalender rückt darunter (wp_detail.js placeDateNote). */
.inline-edit .dt-error { display: none; }
/* Feld aus dem Bild gerollt: Liste bzw. Kalender warten durchsichtig (nicht visibility: hidden – das nähme dem Suchfeld den Fokus) */
.inline-pick.is-away, .inline-edit.is-away .dt-pop { opacity: 0; pointer-events: none; }
/* Speichern gescheitert, während schon ein anderes Feld offen war: die Eingabe wartet an ihrer Zeile, bis ihr Editor wieder öffnet */
.lead-info .kv-row.is-unsaved dd.kv-value { flex-wrap: wrap; box-shadow: inset 0 0 0 1px var(--border-danger); }
.about-row.is-unsaved { flex-wrap: wrap; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--border-danger); }
.inline-unsaved { flex: 0 0 100%; min-width: 0; color: var(--text-danger); font-size: 12px; line-height: 16px; overflow-wrap: anywhere; cursor: pointer; }
.about-row > .inline-unsaved { padding-left: 32px; }
.inline-edit.has-error .input, .inline-edit.has-error .inline-edit__field { border-color: var(--border-danger); }
/* Liste am Feld: wie das Status-Menü (Suche oben, Häkchen am aktuellen Wert); mindestens so breit wie das Feld, eigener Bildlauf */
.menu.inline-pick { display: flex; flex-direction: column; overflow: hidden; min-width: 240px; max-width: 360px; }
.inline-pick__list { flex: 1 1 auto; min-height: 0; margin: 0 -8px; padding: 0 8px 4px; overflow-y: auto; overscroll-behavior: contain; }
.inline-pick .menu-search { flex: none; }
.inline-pick__opt .check { color: var(--blue-50); }
.inline-pick--multi .inline-pick__opt .check { color: var(--icon-light); visibility: visible; }   /* Kästchen auch ohne Haken (wp_leads.css blendet .check sonst aus) */
.inline-pick--multi .inline-pick__opt.is-on .check { color: var(--blue-50); }
.inline-pick__avatar { display: inline-flex; flex: none; }
.inline-pick__clear { flex: none; }
body:has([data-lead-detail]) .tooltip { white-space: pre-line; }   /* zweizeilige Tooltips (Avatar der Aufgabe: „Angelegt von … / Zuständig: …“) */

/* ÜBER */
.about-box { padding: 8px 0; }
.about-row { display: flex; align-items: flex-start; gap: 16px; min-height: 26px; padding: 3px 8px 3px 14px; font-size: 13px; line-height: 20px; color: var(--text-default); min-width: 0; }
.about-row > .icon { flex: none; margin-top: 3px; color: var(--icon-default); }
.about-row__text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
a.about-row.is-empty { color: var(--text-light); }
a.about-row.is-empty:hover { color: var(--text-default); text-decoration: none; background: var(--bg-hover); }
.about-row__edit { margin: -2px 0; opacity: 0; }
.about-row:hover .about-row__edit, .about-row__edit:focus-visible { opacity: 1; }
.about-row__edit + .about-row__edit { margin-left: -12px; }
/* wie Close (E509; ABGLEICH LD-45): beim Überfahren liegt ab dem Text ein hellgrauer Grund (Radius 8) hinter der Zeile */
div.about-row > .about-row__text { margin: -3px -8px; padding: 3px 8px; border-radius: 8px; }
div.about-row:hover > .about-row__text { background: var(--surface-dark); }
div.about-row:hover > .about-row__text a { text-decoration: underline; }
.about-description { --clamp: 4; }
/* an Ort und Stelle (Owner 13.10.2026): Adresse und Beschreibung sind selbst der Auslöser, die Zeile wird zu Eingabefeldern */
.about-row__text[role="button"] { cursor: pointer; }
.about-row.is-empty { color: var(--text-light); }
.about-row--editing { padding-top: 2px; padding-bottom: 2px; }
.about-row--editing > .icon { margin-top: 7px; }

/* AUFGABEN: Avatar 32 · Text 14/16 vollständig · Fälligkeit 13 px · Knöpfe rechts [M M04, M05] */
.box-task { display: flex; align-items: flex-start; gap: 0; padding: 11px 12px 12px; border-top: 1px solid var(--border-light); min-width: 0; }
.box-task:first-child { border-top: 0; }
.box-task.is-inbox { background: var(--cyan-5); border-top-color: transparent; }
.box-task > .avatar { flex: none; }
.box-task__main { flex: 1; min-width: 0; margin-left: 8px; padding-top: 1px; }
.box-task__text { font: 400 14px/16px var(--font-sans); color: var(--text-default); white-space: pre-line; overflow-wrap: anywhere; --clamp: 16; }
.box-task__due { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 0; font: 400 13px/16px var(--font-sans); color: var(--text-light); }
.task-overdue .task-due { color: var(--text-danger); font-weight: 600; }
.task-prio { display: inline-flex; color: var(--icon-danger); }
.task-prio .icon { stroke-width: 2.5; }
.box-task__contact { color: var(--text-light); }
.box-task__actions { flex: none; align-self: center; display: flex; align-items: center; gap: 4px; visibility: hidden; }
.box-task:hover .box-task__actions, .box-task:focus-within .box-task__actions, .box-task.is-inbox .box-task__actions { visibility: visible; }
.box-task__actions form { margin: 0; display: flex; }
.box-task__actions .btn-icon.btn-sm { width: 24px; height: 24px; border-radius: 6px; }
.task-check.task-done { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 1px solid var(--border-default); border-radius: 6px; background: var(--surface); color: var(--icon-default); cursor: pointer; }
.task-check.task-done:hover, .box-task.is-inbox .task-check.task-done { background: var(--btn-primary); border-color: var(--btn-primary); color: #fff; }
.box-task.is-inbox .task-check.task-done:hover { background: var(--btn-primary-hover); }
.task-snooze-menu { width: 260px; max-height: none; }
.task-composer-slot:empty { display: none; }
.task-composer-slot { border-bottom: 1px solid var(--border-default); }

/* OPPORTUNITIES: Balken 3 px · Avatar 32 · Wert 14/600 · Chip-Paar · Notizfeld · FELDER [M M04] */
.opp-item { padding: 0; border-top: 1px solid var(--border-default); min-width: 0; }
.opp-item:first-of-type { border-top: 0; }
.opp-item { position: relative; }
.opp-item__main { position: relative; display: block; margin: 11px 12px 0; padding: 2px 0 0 16px; color: inherit; min-width: 0; cursor: pointer; }
.opp-item__main:focus-visible { outline: 2px solid var(--blue-40); outline-offset: 2px; border-radius: 4px; }
/* Karte wie Close (E511/E539; ABGLEICH LD-49): Klick klappt Notizzeile und FELDER ein/aus; beim Überfahren rechts in Höhe des Werts ⋯ · Stift */
.opp-item__tools { position: absolute; top: 10px; right: 8px; display: flex; align-items: center; gap: 4px; opacity: 0; }
.opp-item:hover > .opp-item__tools, .opp-item__tools:focus-within, .opp-item__tools:has([aria-expanded="true"]) { opacity: 1; }
.opp-item__tools .btn-icon.btn-sm { width: 24px; height: 24px; border-radius: 6px; }
.opp-item__tools .btn .icon { color: var(--icon-default); }
.opp-item.is-closed > .opp-item__details { display: none; }
.opp-item.is-closed > .opp-item__main { margin-bottom: 11px; }
@media (hover: none) { .opp-item__tools { opacity: 1; } }
.opp-item__main::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 2px; background: var(--opp-active); }
.opp-item[data-state="won"] .opp-item__main::before { background: var(--opp-won); }
.opp-item[data-state="lost"] .opp-item__main::before { background: var(--opp-lost); }
.opp-item__top { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.opp-item__text { display: flex; flex-direction: column; min-width: 0; }
.opp-item__value { font: 600 14px/17px var(--font-sans); color: var(--text-default); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opp-item__meta { font: 400 13px/15px var(--font-sans); color: var(--text-light); }
.opp-chips { display: inline-flex; align-items: stretch; max-width: 100%; vertical-align: middle; }
.opp-item .opp-item__main > .opp-chips { margin-top: 11px; }
.opp-chip { display: inline-flex; align-items: center; height: 16px; padding: 0 4px; font: 600 12px/14px var(--font-sans); color: var(--text-default); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.opp-chip--pipeline { border: 1px solid var(--border-default); border-right: 0; border-radius: 4px 0 0 4px; background: var(--surface); }
.opp-chip--status { border-radius: 0 4px 4px 0; background: var(--opp-active); flex: none; }
.opp-chip--status:first-child { border-radius: 4px; }
.opp-chip--status[data-opp="won"] { background: var(--opp-won); }
.opp-chip--status[data-opp="lost"] { background: var(--opp-lost); }
.opp-item__details { margin-top: 12px; }
.opp-note { margin: 0 12px; padding: 12px 0; border-top: 1px solid var(--border-default); }
.opp-note__input { display: block; width: 100%; min-height: 35px; max-height: 160px; padding: 6px 12px 7px; border: 1px solid transparent; border-radius: 6px; background: var(--surface-light); font: 400 13px/20px var(--font-sans); color: var(--text-default); resize: none; outline: 0; overflow: hidden; }
.opp-note__input::placeholder { color: var(--text-light); }
.opp-note__input:focus { border-color: var(--form-border-focus); background: var(--surface); }
.opp-note__text { margin: 0 12px; padding: 12px 0; border-top: 1px solid var(--border-default); font-size: 13px; line-height: 20px; --clamp: 3; }
/* Adressen aus der Notiz unter dem Eingabefeld (dort sind Links nicht klickbar) */
.opp-note__links { display: flex; flex-wrap: wrap; gap: 2px 12px; margin: -6px 12px 0; padding: 0 0 10px 12px; font-size: 12px; line-height: 18px; }
.opp-note__links a { min-width: 0; overflow-wrap: anywhere; }
/* Schalter im Kastenkopf: Details standardmäßig ausgeblendet – eine einzelne Karte klappt per Klick trotzdem auf (.is-open) */
.opp-list.is-compact .opp-item:not(.is-open) > .opp-item__details { display: none; }
.opp-list.is-compact .opp-item:not(.is-open) > .opp-item__main { margin-bottom: 11px; }

/* KONTAKTE: Zeile 47 px, Name 14/600, Icon-Knöpfe 24 px; aufgeklappt DETAILS + FELDER [B 05j; M M04] */
.contact-item { border-top: 1px solid var(--border-default); min-width: 0; }
.contact-item:first-of-type { border-top: 0; }
.contact-row { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 4px 8px 4px 12px; min-width: 0; }
.contact-row__name { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: var(--text-default); }
.contact-row__name strong { max-width: 100%; font: 600 14px/20px var(--font-sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-row__name:hover strong { text-decoration: underline; }
.contact-row__title { max-width: 100%; font: 400 12px/16px var(--font-sans); color: var(--text-light); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-row__tools { flex: none; display: flex; align-items: center; gap: 4px; }
.contact-row__tools .btn-icon.btn-sm, .detail-row__actions .btn-icon.btn-sm { width: 24px; height: 24px; border-radius: 6px; }
.contact-row__tools .btn .icon { color: var(--icon-default); }
/* Kontaktzeile wie Close (E513; ABGLEICH LD-57): beim Überfahren erscheinen links von den festen Icons Stift · ⋯ und eine Trennlinie 1 × 16 */
.contact-row__hover { display: inline-flex; align-items: center; gap: 4px; opacity: 0; }
.contact-row:hover .contact-row__hover, .contact-row__hover:focus-within, .contact-row__hover:has([aria-expanded="true"]) { opacity: 1; }
.tool-divider { flex: none; width: 1px; height: 16px; margin: 0 4px; background: var(--border-default); }
.object-item__more, .sequence-item__more { opacity: 0; }
.object-item:hover .object-item__more, .object-item__more:focus-visible, .object-item__more[aria-expanded="true"],
.sequence-item:hover .sequence-item__more, .sequence-item__more:focus-visible, .sequence-item__more[aria-expanded="true"] { opacity: 1; }
.detail-row { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 8px 0 12px; border-top: 1px solid var(--border-light); font-size: 13px; line-height: 20px; min-width: 0; }
.info-box__sub + .detail-row { border-top: 0; }
.detail-row > .icon { flex: none; color: var(--icon-default); }
.detail-row__value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 4px; }
.detail-row__value a { color: var(--text-default); }
.detail-row:hover .detail-row__value a, .detail-row__value a:focus-visible { color: var(--link); text-decoration: underline; }
.detail-row__type { flex: none; font-size: 13px; color: var(--text-light); padding-right: 4px; }
.detail-row__actions { flex: none; display: none; align-items: center; gap: 2px; }
.detail-row:hover .detail-row__type, .detail-row:focus-within .detail-row__type { display: none; }
.detail-row:hover .detail-row__actions, .detail-row:focus-within .detail-row__actions { display: flex; }
.phone-link { display: inline; white-space: nowrap; }
.box-note { margin: 0; padding: 8px 12px; border-top: 1px solid var(--border-light); font-size: 13px; line-height: 18px; color: var(--text-light); }
.box-note summary { cursor: pointer; }
.box-note p, .box-note ul { margin: 6px 0 0; }
.box-note ul { padding-left: 18px; }
@media (hover: none) { .detail-row__actions { display: flex; } .detail-row__type { display: none; } .contact-row__hover, .about-row__edit, .box-task__actions { opacity: 1; visibility: visible; } }
.detail-row { position: relative; }
.detail-row__actions:has([aria-expanded="true"]) { display: flex; }
.detail-row:has(.detail-row__actions [aria-expanded="true"]) .detail-row__type { display: none; }
.detail-row__actions .tool-divider { margin: 0 2px; }

/* EIGENE FELDER wie Close (E514/E515; ABGLEICH LD-53): eine durchgehende Liste nur der gefüllten Felder OHNE Gruppenzeilen; leere und
   archivierte Felder samt Gruppenzeilen erst über ⋯ › „Alle Felder einblenden“ (.show-empty) */
.custom-panel .custom-group__head { display: none; }
.custom-panel.show-empty .custom-group__head { display: flex; }
.custom-group__count { color: var(--text-light); font-variant-numeric: tabular-nums; }
.custom-panel .custom-row.is-empty, .custom-panel .custom-group.is-unfilled, .custom-panel .custom-group.is-archived { display: none; }
.custom-panel.show-empty .custom-row.is-empty { display: grid; }
.custom-panel.show-empty .custom-group.is-unfilled, .custom-panel.show-empty .custom-group.is-archived { display: block; }
.custom-panel:not(.show-empty) { padding: 8px 0; }
.custom-panel:not(.show-empty):not(:has(.custom-group:not(.is-archived) .custom-row:not(.is-empty))) { padding: 0; }   /* nur archivierte Felder gefüllt: nichts zu sehen, also auch kein leerer Körper */
.custom-panel:not(.show-empty) .kv-list { padding: 0; }
.custom-row dd { cursor: default; }
.custom-row .custom-value { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.custom-row.is-empty .kv-value__text { color: var(--text-light); }
.custom-panel__none { display: none; }
.custom-panel:not(:has(.custom-row:not(.is-empty):not([hidden]))):not(.show-empty) .custom-panel__none { display: none; }
.custom-add-menu { width: 300px; }
.box-filterable[hidden] { display: none !important; }

/* Custom Objects, Sequenzen */
.object-item, .sequence-item { padding: 8px 8px 8px 12px; border-top: 1px solid var(--border-light); min-width: 0; }
.object-item:first-child, .sequence-item:first-child { border-top: 0; }
.object-item__head, .sequence-item__head { display: flex; align-items: center; gap: 8px; min-height: 24px; min-width: 0; }
.object-item__title, .sequence-item__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.object-item .kv-list { padding: 4px 0 0; }
.object-item .kv-row { padding-left: 0; padding-right: 0; }
.sequence-item__meta { margin: 2px 0 0; font-size: 13px; color: var(--text-light); }

/* Reiter „Dateien“ */
.file-rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border-default); border-radius: 6px; overflow: hidden; }
.file-row { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 12px; border-top: 1px solid var(--border-light); min-width: 0; }
.file-row:first-child { border-top: 0; }
.file-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.file-row__name { font-size: 14px; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row__name.is-missing { color: var(--text-light); }
.file-row__meta { font-size: 12px; line-height: 16px; color: var(--text-light); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row__meta a { color: var(--text-light); }
.file-row__size { flex: none; font-size: 13px; color: var(--text-light); font-variant-numeric: tabular-nums; }
.lead-files__empty { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 84px 8px 24px; text-align: center; color: var(--text-medium); }
.lead-files__icon { display: inline-flex; align-items: center; justify-content: center; width: 80px; height: 80px; margin-bottom: 8px; border-radius: 50%; background: var(--blue-5); color: var(--blue-50); }
.lead-files__title { margin: 0; font: 700 16px/24px var(--font-sans); color: var(--text-default); }
.lead-files__text { margin: 0; max-width: 360px; font: 400 14px/20px var(--font-sans); color: var(--text-light); }
.lead-files__upload { margin-top: 8px; }
.feed-loading { display: flex; flex-direction: column; gap: 10px; padding: 8px; }

/* ---------- Feed (C-05.3) ---------- */
.feed-filter { position: sticky; top: 0; z-index: var(--z-sticky); background: var(--surface); border-bottom: 1px solid var(--border-default); margin: 0; }
.feed-filter__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 48px; padding: 0 24px; min-width: 0; }
.feed-tabs { flex-wrap: nowrap; min-width: 0; gap: 8px; }
.feed-tabs .pill-tab { padding: 0 8px; cursor: pointer; }
.feed-tabs .pill-tab:has(input:checked) { background: var(--tab-pill-active); color: var(--text-default); }
.feed-tabs .pill-tab:has(input:focus-visible) { outline: 2px solid var(--blue-40); outline-offset: 1px; }
.feed-filter__right { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 0 1 auto; }
.feed-search { position: relative; width: clamp(180px, calc(280px + (100vw - 1440px) * .0625), 310px); min-width: 0; flex: 0 1 auto; }
.feed-search__icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); display: inline-flex; color: var(--icon-default); pointer-events: none; }
.feed-search .input { width: 100%; height: 32px; }
.feed-filter__toggle { position: relative; flex: none; }
.feed-filter__toggle > .icon { color: var(--gray-80); stroke-width: 2.75; }   /* drei kräftige dunkle Balken wie Close (M04, x 1880) – nicht hellgrau und dünn */
.feed-filter__toggle[aria-expanded="true"] { background: var(--bg-borderless-hover); }
.feed-filter__dot { position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan-50); }
.feed-filter__more { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-height: 40px; padding: 0 16px 8px; box-sizing: border-box; }   /* zweite Filterzeile ≈ 40 px wie Close (E162; LD-20) */
/* Reiter „Log“ = Änderungsprotokoll (ABGLEICH LD-30): Suche, Filter-Icon und zweite Filterzeile verschwinden, die Pillen bleiben */
.feed-filter:has(input[name="type"][value="log"]:checked) .feed-filter__right,
.feed-filter:has(input[name="type"][value="log"]:checked) .feed-filter__more { display: none !important; }
.feed-filter__more .btn-menu { min-width: 0; padding: 0 8px; color: var(--text-medium); }
.feed-filter__more .btn-menu.is-set { color: var(--cyan-70); background: var(--cyan-5); }
.feed-menu { width: 280px; }
.feed-menu--time { width: 260px; }
.feed-menu--time .feed-time { padding-top: 12px; }
.feed-menu label.menu-item { cursor: pointer; }
/* Punkt in der Farbe des Aktivitätstyps (Menü „Alle Aktivitäten“). .type-dot heißt auch der Typ-Punkt eines Opportunity-Status
   (wp_settings.css, lädt später) – beide Regeln stehen deshalb unter ihrem Bauteil */
.feed-menu .type-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gray-20); flex: none; }
.feed-menu .type-dot--note, .feed-menu .type-dot--custom { background: var(--gold-20); } .feed-menu .type-dot--email { background: var(--blue-30); }
.feed-menu .type-dot--call { background: var(--green-30); } .feed-menu .type-dot--meeting { background: var(--purple-30); }
.feed-menu .type-dot--task { background: var(--orange-20); } .feed-menu .type-dot--sms { background: var(--teal-30); }
:root[data-theme="dark"] .feed-menu :is(.type-dot--note, .type-dot--custom) { background: var(--gold-70); }   /* Punkte im Dunkeln leuchtend */
:root[data-theme="dark"] .feed-menu .type-dot--task { background: var(--orange-60); }

.live-call-slot:empty, .composer-slot:empty { display: none; }
.live-call-slot, .composer-slot { padding: 12px 24px 0; }
.live-call-slot + .composer-slot:not(:empty) { padding-top: 8px; }
.feed { list-style: none; margin: 0; padding: 12px 24px 40px; min-width: 0; }
.composer-slot:not(:empty) + .feed, .live-call-slot:not(:empty) ~ .feed { padding-top: 8px; }
.feed-item { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; align-items: start; margin: 0 0 8px; min-width: 0; font: 400 13px/20px var(--font-sans); color: var(--text-default); scroll-margin-top: 64px; }
.feed-item:last-child { margin-bottom: 0; }
/* Senkrechte Linie hinter den Chips: je Eintrag von der Chip-Mitte bis zur Chip-Mitte des nächsten [M M04: x = 818] */
.feed-item::before { content: ""; position: absolute; left: 14px; top: 20px; bottom: -28px; width: 1px; background: var(--border-default); }
/* Die Linie läuft unter dem letzten Kreis 20 px frei aus und beginnt über dem ersten Eintrag an der Listenkante (E562, M04; ABGLEICH LD-42) */
.feed > .feed-item:first-child::before { top: -12px; }
.feed > .feed-item:last-child::before { top: 20px; bottom: auto; height: 34px; }
.feed-item--live::before { display: none; }
.feed-item--row::before { top: 18px; }
.feed-item > .type-chip { position: relative; z-index: 1; grid-column: 1; margin-top: 6px; }
.feed-item--row > .type-chip { margin-top: 4px; }
.feed-item > :not(.type-chip) { grid-column: 2; min-width: 0; }
.feed-item:target > .feed-card, .feed-item.is-target > .feed-card { border-color: var(--blue-30); box-shadow: 0 0 0 2px var(--blue-10); }
.box-task.is-target, .contact-item.is-target { box-shadow: inset 0 0 0 2px var(--blue-30); }
.tl-opportunity_status_change > .feed-row > .avatar { margin-top: -2px; }
.feed-item:target > .feed-row, .feed-item.is-target > .feed-row { background: var(--blue-5); border-radius: 6px; }
.type-chip > .icon { width: 16px; height: 16px; }

/* Karte */
.feed-card { background: var(--surface); border: 1px solid var(--border-default); border-radius: 8px; min-width: 0; }
.feed-card__head { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; min-width: 0; }
.feed-item.is-pinned > .feed-card > .feed-card__head { background: var(--gold-1); border-radius: 7px 7px 0 0; }
.feed-item.is-pinned > .feed-card > .feed-card__head:last-child { border-radius: 7px; }
.feed-card__title { font-weight: 600; color: var(--text-default); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.feed-meta { display: inline-flex; align-items: center; gap: 8px; flex: none; color: var(--text-light); white-space: nowrap; }
.feed-meta .icon, .feed-row .feed-meta__item .icon { color: var(--text-light); }
.feed-meta__item { display: inline-flex; align-items: center; gap: 5px; color: var(--text-light); }
.feed-dot { color: var(--gray-40); }
.call-arrow, .mail-arrow { width: 16px; height: 16px; stroke-width: 2.4; }
.feed-row__text .call-arrow, .feed-row__text .mail-arrow { margin: 0 2px 0 4px; }
.feed-row__text .feed-dot { margin: 0 6px; }
.call-arrow.is-ok { color: var(--green-60) !important; }
.call-arrow.is-danger { color: var(--red-50) !important; }
.feed-pin { display: inline-flex; flex: none; color: var(--gold-50); }
.feed-tools { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; padding-right: 4px; flex: none; opacity: 0; }
.feed-tools + .avatar { margin-left: 0; }
.feed-card__head > .avatar, .feed-row > .avatar { flex: none; }
.feed-card__head > .feed-date { flex: none; }
/* Die Zeit gibt als Letztes nach (Verlauf mit Uhrzeit, Prüfung 15.10.2026): Wird der Kartenkopf zu schmal – 1100 px mit Seitenleiste
   bzw. offenem KI-Assistenten, 1024 px mit ausgeklappter Leiste, Handy –, kürzt zuerst der Titel (wie bisher, deshalb der große
   Schrumpf-Faktor: solange er Platz hat, bleibt die Zeile daneben unangetastet), danach weichen die Angaben daneben von hinten,
   jeweils ganz (Abzeichen, Dauer, Pfeil rutschen in eine verdeckte zweite Zeile – nie halb abgeschnitten). Avatar, Zeit: nie. */
.feed-card__head > .feed-card__title { flex-shrink: 100000; }
.feed-card__head > .feed-meta { flex: 0 1 auto; min-width: 0; height: 20px; flex-wrap: wrap; align-content: flex-start; overflow: hidden; }
/* leerer erster Eintrag (ohne Breite, der Abstand hebt sich auf; zeilenhoch, damit die zweite Zeile sicher verdeckt ist): so rutscht
   auch die erste Angabe ganz weg, statt angeschnitten zu bleiben */
.feed-card__head > .feed-meta::before { content: ""; height: 20px; margin-right: -8px; }
.feed-meta__when { gap: 8px; }   /* Meeting „• 12:15–13:15“: Punkt und Uhrzeit weichen zusammen – nie ein Punkt allein */
/* Meeting in schmaler Karte (Handy, enge Spalte; Nachprüfung 12.11.): Beim Meeting ist die Zeit der Inhalt, sie weicht nicht. Oben Titel, Avatar und Zeit
   des Eintrags, darunter Tag und Uhrzeit des Meetings mit den Werkzeugen. Vorher hatten Titel und Uhrzeit bei 375 px keine Breite, rechts stand nur die
   Buchungszeit eines Tour-Termins („Heute, 07:00“) */
.feed-item.tl-meeting > .feed-card { container: feed-meeting / inline-size; }
@container feed-meeting (max-width: 479.98px) {
  .feed-card > .feed-card__head { flex-wrap: wrap; height: auto; min-height: 40px; padding-top: 8px; padding-bottom: 8px; row-gap: 2px; }
  .feed-card > .feed-card__head::after { content: ""; order: 1; flex: 0 0 100%; }   /* Zeilenwechsel */
  .feed-card > .feed-card__head > .feed-card__title { flex: 1 1 0; }
  .feed-card > .feed-card__head > .feed-meta, .feed-card > .feed-card__head > .feed-tools { order: 2; }
  .feed-card > .feed-card__head > .feed-meta { flex: 1 1 0; }
  .feed-card > .feed-card__head .feed-meta__when > .feed-dot { display: none; }
}
.feed-card:hover > .feed-card__head .feed-tools, .feed-tools:focus-within, .feed-tools.is-shown, .feed-tools:has([aria-expanded="true"]) { opacity: 1; }
.feed-tools form { margin: 0; display: inline-flex; }
.feed-tools .btn-icon.btn-sm { width: 24px; height: 24px; border-radius: 6px; }
.feed-tools .btn .icon { color: var(--icon-default); }
.feed-date { color: var(--text-light); white-space: nowrap; font-size: 13px; line-height: 20px; }
.feed-card__body { padding: 9px 12px 10px; border-top: 1px solid var(--border-default); min-width: 0; }
.feed-card__body:first-child { border-top: 0; }
.feed-prose { font-size: 13px; line-height: 20px; overflow-wrap: anywhere; min-width: 0; }
.feed-prose ul, .feed-prose ol { margin: 0; padding-left: 26px; }
.feed-prose ul { list-style: disc; } .feed-prose ul ul { list-style: circle; } .feed-prose ol { list-style: decimal; }
.feed-prose p { margin: 0 0 8px; } .feed-prose p:last-child { margin-bottom: 0; }
.feed-call-note, .feed-note-hint { display: flex; align-items: flex-start; gap: 10px; }
.feed-call-note > .icon, .feed-note-hint > .icon { flex: none; margin-top: 3px; color: var(--icon-default); }
.feed-call-note > .prose, .feed-call-note__text { flex: 1 1 0; min-width: 0; }   /* Text und „Mehr anzeigen …“ in EINER Spalte: der Umschalter steht linksbündig unter dem Text [M M04] */
/* Anrufkarte wie Close (E161b; ABGLEICH LD-23): Bearbeiten ist die hellblaue Pille „✎ Bearbeiten“ rechts in der Notizzeile */
.feed-edit-pill { display: inline-flex; align-items: center; gap: 4px; flex: none; height: 24px; padding: 0 10px; border-radius: 12px; background: var(--blue-5); color: var(--blue-60); font: 600 13px/24px var(--font-sans); text-decoration: none; opacity: 0; }
.feed-edit-pill .icon { color: currentColor; }
.feed-edit-pill:hover { background: var(--blue-10); color: var(--blue-60); text-decoration: none; }
.feed-card:hover .feed-edit-pill, .feed-edit-pill:focus-visible { opacity: 1; }
@media (hover: none) { .feed-edit-pill { opacity: 1; } }
a.feed-note-hint { color: var(--text-light); border-radius: 0 0 7px 7px; }
a.feed-note-hint:hover { background: var(--surface-light); color: var(--text-default); text-decoration: none; }
.feed-note-hint > .icon { color: var(--text-light); }
.feed-audio-note { font-size: 13px; color: var(--text-light); }
/* Outcome an Anruf-/Meeting-Karten wie Close („Outcome: ▾“ am Anruf-Datensatz): Zeile 36 px, Menüknopf statt <select> (B.6.2) */
.feed-outcome { display: flex; align-items: center; gap: 8px; min-height: 36px; padding-top: 5px; padding-bottom: 5px; font-size: 13px; line-height: 20px; }
.feed-outcome > .icon { flex: none; color: var(--icon-default); }
.feed-outcome__label { flex: none; color: var(--text-light); }
.feed-outcome__btn { display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 320px; height: 26px; padding: 0 6px 0 8px;
  border: 1px solid transparent; border-radius: 6px; background: transparent; font: 600 13px/24px var(--font-sans); color: var(--text-default); cursor: pointer; }
.feed-outcome__btn > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-outcome__btn .icon { flex: none; color: var(--icon-default); }
.feed-outcome__btn.is-empty { font-weight: 400; color: var(--link); }
.feed-outcome__btn:hover, .feed-outcome__btn:focus-visible, .feed-outcome__btn[aria-expanded="true"] { border-color: var(--border-default); background: var(--surface-light); }
.feed-outcome .menu form { margin: 0; }
.feed-outcome__value { font-weight: 600; color: var(--text-default); }
.feed-details > summary { cursor: pointer; color: var(--link); font-size: 13px; }
.feed-details[open] > summary { margin-bottom: 6px; }
.pre-wrap { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.file-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.file-list li { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; overflow-wrap: anywhere; }
.file-list .icon { color: var(--icon-default); flex: none; }

/* Kompakte Zeile: 36 px, Titel 600 #5e5e5e, nacktes Icon im Kreis in Feedfarbe [M M05] */
.feed-row { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 13px; min-width: 0; }
.feed-row__text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-medium); }
.feed-row__text b { font-weight: 600; color: var(--text-medium); }
.feed-row__text b.is-strong { color: var(--text-default); }
.feed-row__text .icon { vertical-align: -2px; }
.feed-row__text .feed-meta__item { display: inline; }
.feed-row__text .feed-meta__item .icon { margin-right: 5px; }
.feed-row__text .status-pill, .feed-row__text .opp-chips, .feed-row__text .mini-badge, .feed-row__text .blue-badge, .feed-row__text .count-badge { vertical-align: 1px; }
/* „Opportunity-Status geändert von A → B“: zwei Chip-Paare passen bei 1440/1280 px nicht in eine Zeile – die Zeile darf auf zwei Zeilen
   umbrechen (Chip-Paare bleiben ganz), Avatar und Datum stehen an der ersten Zeile */
.tl-opportunity_status_change > .feed-row { align-items: flex-start; padding-top: 8px; padding-bottom: 8px; }
.tl-opportunity_status_change > .feed-row > .feed-row__text { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; white-space: normal; overflow: visible; line-height: 20px; }
.tl-opportunity_status_change > .feed-row > .feed-row__text > * { flex: none; max-width: 100%; }
.tl-opportunity_status_change > .feed-row > .feed-row__text .opp-chips { vertical-align: 0; }
/* Fehlgeschlagener Anruf wie Close (E576; ABGLEICH LD-40): roter Kreis 16 mit weißem Ausrufezeichen statt des Pfeils */
.call-error { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: var(--bg-danger); color: #fff; font: 700 11px/16px var(--font-sans); flex: none; vertical-align: -3px; }
.feed-row__text .call-error { margin: 0 2px 0 4px; }
/* Hinweisband der aufgeklappten kompakten E-Mail (E582; ABGLEICH LD-39) */
.feed-hint { display: flex; align-items: center; gap: 8px; min-height: 28px; margin: 0; padding: 4px 12px; background: var(--cyan-5); color: var(--cyan-70); font: 400 13px/20px var(--font-sans); border-top: 1px solid var(--border-default); }
.feed-hint .icon { flex: none; color: var(--cyan-70); }
.feed-row__rest, .feed-row__value { color: var(--text-medium); }
.feed-row__muted, .feed-row__preview { color: var(--text-light); }
.feed-row__preview { margin-left: 12px; }
.feed-row__hint { display: inline-flex; color: var(--gray-40); vertical-align: -1px; }
.feed-arrow { color: var(--text-default); padding: 0 2px; }
.feed-row__unpin { margin: 0; display: none; }
.feed-row:hover .feed-row__unpin { display: inline-flex; }
.feed-row.is-expandable { cursor: pointer; }
.feed-row.is-expandable:hover .feed-row__text b { text-decoration: underline; }
.feed-row__body { margin: 4px 0 4px; }
.feed-row__body > .feed-card__body:first-child { border-top: 0; }
.feed-row .mini-badge { margin-left: 4px; }
.mini-badge--yes { background: var(--green-10); color: var(--green-70); }
.mini-badge--no { background: var(--red-10); color: var(--red-70); }
.feed-empty { padding: 32px 0; text-align: center; color: var(--text-medium); list-style: none; }
.feed-empty p { margin: 0; }
.feed-more, .timeline-more { display: flex; justify-content: center; padding: 8px 0 0; list-style: none; }   /* übernommen aus app.css (WP0): .timeline-more */

/* E-Mail im Feed: Verlauf als Karte (je Nachricht eine Zeile 40 px) bzw. aufklappbare Zeile */
.feed-mail--row > summary { list-style: none; cursor: pointer; }
.feed-mail--row > summary::-webkit-details-marker, .mail-msg > summary::-webkit-details-marker { display: none; }
.feed-mail--row[open] > summary .feed-row__preview { visibility: hidden; }
.feed-item.is-open > .type-chip--bare { background: var(--blue-10); color: var(--blue-70); }
.feed-item.tl-call.is-open > .type-chip--bare { background: var(--green-10); color: var(--green-70); }   /* aufgeklappte Anrufzeile bleibt grün (M05) */
.mail-msg { border-top: 1px solid var(--border-default); min-width: 0; }
.feed-row__body > .mail-thread > .mail-msg:first-child, .feed-row__body .feed-card__head + .mail-thread > .mail-msg:first-child { border-top: 1px solid var(--border-default); }
.mail-msg__row { display: block; list-style: none; cursor: pointer; min-width: 0; }
.mail-msg__line { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; min-width: 0; }
.mail-msg__row:hover { background: var(--surface-light); }
.mail-msg__chevron { flex: none; color: var(--gray-40); }
/* Aufgeklappte Nachricht wie Close (E567/E569; ABGLEICH LD-37): hellgrauer Kopfblock – „Von:“ / „An:“ zweizeilig, rechts die Zeit und
   darunter vier randlose Icon-Knöpfe Antworten · Allen antworten · Weiterleiten · Löschen */
.mail-msg__head { display: none; align-items: flex-start; gap: 8px; padding: 8px 12px; background: var(--surface-light); min-width: 0; }
.mail-msg[open] > .mail-msg__row > .mail-msg__line { display: none; }
.mail-msg[open] > .mail-msg__row > .mail-msg__head { display: flex; }
.mail-msg[open] > .mail-msg__row:hover { background: none; }
.mail-msg__head > .mail-msg__chevron { margin-top: 3px; color: var(--icon-default); }
.mail-msg__who { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; padding-left: 4px; font-size: 13px; line-height: 20px; }
.mail-msg__from, .mail-msg__to { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; }
.mail-msg__label { flex: none; color: var(--text-light); }
.mail-msg__dir { display: inline-flex; flex: none; }
.mail-msg__from > .mail-msg__label, .mail-msg__to > .mail-msg__label:first-child { min-width: 30px; }
.mail-msg__address { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--text-default); }
.mail-msg__side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.mail-msg__tools { display: inline-flex; align-items: center; gap: 4px; margin-right: -4px; }
.mail-msg__tools .btn-icon.btn-sm { width: 24px; height: 24px; border-radius: 6px; }
.mail-msg__tools .btn .icon { color: var(--icon-default); }
.mail-msg__sender { flex: none; max-width: 30%; color: var(--text-light); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 4px; }
.mail-arrow { flex: none; }
.mail-arrow.is-in { color: var(--green-40); }
.mail-arrow.is-out { color: var(--green-60); }
.mail-msg__preview { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-default); padding-left: 4px; }
.mail-msg__body { padding: 12px 12px 12px 42px; min-width: 0; }
.mail-msg__meta { margin: 0 0 8px; font-size: 13px; line-height: 18px; color: var(--text-light); overflow-wrap: anywhere; }
.mail-msg__foot { margin: 8px 0 0; font-size: 13px; }
.email-status { font-weight: 400; }
.email-status-draft, .email-status-warn { color: var(--text-warn); font-weight: 600; }
.email-status-error { color: var(--text-danger); font-weight: 600; }
.email-frame { display: block; width: 100%; max-width: 100%; height: 240px; max-height: 480px; border: 1px solid var(--border-default); border-radius: 6px; background: #fff; }
:root[data-theme="dark"] .email-frame { border-color: var(--gray-30); }   /* E-Mails bleiben hell – im Dunkeln mit sichtbarem Rahmen */
.email-frame-page { height: 640px; max-height: none; }
.email-images-note { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 0 8px; padding: 4px 8px; border-radius: 6px; background: var(--surface-medium); font-size: 13px; color: var(--text-medium); }

/* Meeting, Custom Activity */
.feed-meeting__line { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; min-width: 0; }
.feed-meeting__guests { display: inline-flex; align-items: center; gap: 6px; }
.feed-meeting__guests .icon, .feed-meeting__place .icon { color: var(--text-light); }
.feed-meeting__place { display: inline-flex; align-items: center; gap: 4px; color: var(--text-medium); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-meeting > .feed-prose, .feed-meeting > .feed-details { margin-top: 8px; }
/* Feld-Raster der Custom Activity wie Close (E557/E559, nachgemessen; ABGLEICH LD-41): Mini-Karten #fcfcfc mit Rand #f1f1f1, Radius 8,
   Innenabstand 12, Reihenabstand 12; gekürzt nach Höhe (erste Reihe ganz, zweite unten angeschnitten ≈ 140 px) */
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 3px 0 2px; }
.field-grid__more { display: contents; }
.field-grid__more[hidden] { display: none !important; }
.field-card { border: 1px solid var(--surface-dark); border-radius: 8px; padding: 12px; min-width: 0; background: var(--surface-light); }
.field-grid + .clamp-toggle { margin-top: 6px; }
.field-card--wide { grid-column: 1 / -1; }
.field-card__label { font: 600 13px/20px var(--font-sans); color: var(--text-default); overflow-wrap: anywhere; }
.field-card__value { display: flex; align-items: flex-start; gap: 8px; margin-top: 2px; font: 400 13px/20px var(--font-sans); color: var(--text-default); overflow-wrap: anywhere; min-width: 0; }
.field-card__value > .icon { flex: none; margin-top: 3px; color: var(--text-light); }
.field-card__value .kv-long { --clamp: 6; }
.feed-more-link { padding: 8px 0 0; font-size: 13px; line-height: 20px; color: var(--link); width: auto; }
.feed-more-link:hover { text-decoration: underline; }
.field-grid + .feed-prose, .feed-more-link + .feed-prose { margin-top: 10px; }

/* Player (C-05.4): Knopf 28 px #474747 · Zeit · 1x · ⋯ · Leiste 3 px [M M05] */
.audio-player { min-width: 0; }
.audio-player > audio { display: block; width: 100%; height: 32px; }
.audio-player:not(.is-ready) .audio-player__row, .audio-player:not(.is-ready) .audio-player__bar { display: none; }
.audio-player.is-ready > audio { display: none; }
.audio-player__row { display: flex; align-items: center; gap: 10px; height: 28px; }
.audio-player__play { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: var(--gray-70); color: var(--surface); cursor: pointer; flex: none; }
.audio-player__play:hover { background: var(--gray-80); }
.audio-player__play .icon { color: var(--surface); fill: var(--surface); width: 12px; height: 12px; }
.audio-player__play .icon-pause, .audio-player.is-playing .audio-player__play .icon-play { display: none; }
.audio-player.is-playing .audio-player__play .icon-pause { display: inline; }
.audio-player__play .icon-play { margin-left: 1px; }
.audio-player__time { font: 400 13px/16px var(--font-sans); color: var(--text-default); font-variant-numeric: tabular-nums; white-space: nowrap; }
.audio-player__sep, .audio-player__time [data-player-total] { color: var(--text-light); }
.audio-player__spacer { flex: 1; }
.audio-player__speed { min-width: 32px; height: 24px; padding: 0 6px; border: 0; border-radius: 6px; background: none; font: 400 12px/16px var(--font-sans); color: var(--text-default); cursor: pointer; }
.audio-player__speed:hover, .audio-player__speed[aria-expanded="true"] { background: var(--bg-borderless-hover); }
.player-speed-menu { min-width: 120px; width: 120px; }
.player-speed-menu .menu-item[aria-checked="false"] .check .icon { visibility: hidden; }
.audio-player__divider { width: 1px; height: 16px; background: var(--border-default); }
.audio-player__bar { position: relative; height: 12px; margin-top: 6px; cursor: pointer; outline-offset: 2px; touch-action: none; }
.audio-player__bar::before, .audio-player__loaded, .audio-player__played { content: ""; position: absolute; left: 0; top: 5px; height: 3px; border-radius: 2px; }
.audio-player__bar::before { right: 0; background: var(--gray-5); }
.audio-player__loaded { width: 0; background: var(--gray-20); }
.audio-player__played { width: 0; background: var(--gray-70); }
.audio-player__knob { position: absolute; left: 0; top: 2px; width: 8px; height: 8px; margin-left: -1px; border-radius: 50%; background: var(--gray-80); }
.audio-player.is-error .audio-player__time::after { content: " · nicht verfügbar"; color: var(--text-danger); }

/* ---------- Composer (C-06, C-07): Karte im Feed ---------- */
.feed-item--composer { margin-bottom: 0; }
li.feed-item--composer { margin-bottom: 8px; }
.composer { background: var(--surface); border: 1px solid var(--border-default); border-radius: 8px; min-width: 0; margin: 0; font: 400 13px/20px var(--font-sans); color: var(--text-default); }
.composer--modal { border: 0; border-radius: 16px; }
.composer__head { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-bottom: 1px solid var(--border-default); min-width: 0; }
.composer--modal .composer__head { min-height: 56px; padding: 0 56px 0 16px; }
.composer__label { flex: none; color: var(--text-medium); font-weight: 400; }
.composer__title { flex: 1 1 auto; min-width: 0; height: 38px; padding: 0; border: 0; outline: 0; background: none; font: 400 13px/20px var(--font-sans); color: var(--text-default); }
.composer__title::placeholder { color: var(--text-default); opacity: 1; }
.composer__title:focus::placeholder { color: var(--text-light); }
.composer__heading { flex: 1 1 auto; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.composer--modal .composer__heading { font: 600 18px/24px var(--font-sans); }
.composer__who { flex: none; display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.composer__alert { display: flex; align-items: flex-start; gap: 8px; padding: 7px 12px; border-bottom: 1px solid var(--border-default); font-size: 13px; line-height: 18px; }
.composer__alert p { margin: 0; }
.composer__alert > .icon { flex: none; margin-top: 2px; }
.composer__alert.is-danger { background: var(--red-5); color: var(--red-70); }
.composer__alert.is-danger > .icon { color: var(--red-50); }
.composer__alert.is-warn { background: var(--gold-5); color: var(--gold-60); }
.composer__alert-more { color: var(--gold-60); }
.composer__fields { display: flex; flex-direction: column; gap: 12px; padding: 12px; border-bottom: 1px solid var(--border-default); min-width: 0; }
.composer__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 16px; }
.composer__grid .field-span { grid-column: 1 / -1; }
.composer .field { position: relative; }
.composer textarea.input { min-height: 72px; resize: vertical; }
.composer__textarea { font-size: 13px; }
.composer__counter { position: absolute; right: 10px; bottom: 6px; font-size: 12px; color: var(--text-light); pointer-events: none; }
.composer__hint { margin: 0; font-size: 12px; line-height: 16px; color: var(--text-light); }
.composer__hint.is-warn { padding: 6px 12px; color: var(--gold-60); border-top: 1px solid var(--border-light); }
.composer__note-label { padding: 8px 12px 0; font: 600 13px/18px var(--font-sans); }
.composer__section { padding: 8px 12px; border-top: 1px solid var(--border-light); }
.composer__section-title { margin: 0 0 4px; font: 600 13px/18px var(--font-sans); }
.composer__existing { padding: 0 12px 8px; }
/* Editor ohne Rahmen, Werkzeugleiste darunter [B 06a] */
.composer .field-kind-richtext { gap: 0; }
.richtext--composer { border: 0; border-radius: 0; }
.richtext--composer .composer__editor { min-height: 127px; max-height: 420px; padding: 9px 12px 8px; border-radius: 0; font: 400 13px/20px var(--font-sans); height: auto; }
.composer-email .composer__editor { min-height: 180px; }
.composer-call .composer__editor, .composer-meeting .composer__editor, .composer-custom .composer__editor { min-height: 88px; }
.composer__after { padding: 0 12px 12px; font-size: 13px; line-height: 20px; color: var(--text-default); overflow-wrap: anywhere; }
.composer__after a { text-decoration: underline; }
.composer__toolbar.richtext-toolbar { display: flex; align-items: center; gap: 2px; min-height: 41px; padding: 0 8px; border: 0; border-top: 1px solid var(--border-default); border-radius: 0; background: var(--surface); }
.composer__toolbar[hidden] { display: none !important; }
.composer__toolbar .richtext-btn { width: 32px; height: 32px; border-radius: 6px; }
.composer__toolbar .richtext-sep { height: 16px; margin: 0 6px; }
.composer .has-error .composer__editor { box-shadow: inset 0 0 0 1px var(--border-danger) !important; }
.composer .field-error { padding: 4px 12px; }
.composer__files { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 8px; }
.composer__files[hidden] { display: none; }
.file-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 6px 0 8px; border: 1px solid var(--border-default); border-radius: 6px; background: var(--surface-light); font-size: 12px; max-width: 100%; }
.file-chip__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.file-chip__size { color: var(--text-light); }
.file-chip button { display: inline-flex; padding: 0; border: 0; background: none; color: var(--icon-default); cursor: pointer; }
.composer__file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.composer__foot { display: flex; align-items: center; gap: 8px; min-height: 49px; padding: 8px 12px; border-top: 1px solid var(--border-default); flex-wrap: wrap; min-width: 0; }
.composer__fields + .composer__foot, .task-form__body + .composer__foot { border-top: 0; }
.composer--modal .composer__foot { background: var(--surface-medium); border-radius: 0 0 16px 16px; padding: 12px 16px; }
/* E-Mail wie Close (E151/E152/E156; ABGLEICH LD-14): Fuß 63 px, Absender-Avatar 16 px, Vorlagen-Auswahl 38 % ohne Deckel */
.composer-email .composer__foot { min-height: 63px; }
.mail-row--from .avatar { width: 16px; height: 16px; font-size: 8px; line-height: 16px; }
.composer__foot .btn { border-radius: 8px; }
.composer__foot-tools { display: inline-flex; align-items: center; gap: 2px; margin-left: 4px; }
.composer__foot-tools .btn[aria-pressed="true"] { background: var(--bg-borderless-hover); }
.composer__spacer { flex: 1 1 auto; }
.composer__discard.is-danger .icon { color: var(--icon-danger); }
/* Kontakt und Zeitpunkt hinter „⋯“ im Kopf (ABGLEICH LD-12): Fuß wie Close nur „Fertig“ + Papierkorb (E147). Knopf 24 × 24 randlos links
   vom Avatar; ein geänderter Wert steht als 13-px-Text #767676 davor („Frau Rhau · 22.09., 14:30“). */
.composer__more-wrap { position: relative; flex: 0 1 auto; display: inline-flex; align-items: center; gap: 6px; min-width: 0; margin-left: auto; }
.composer__more-wrap + .composer__who { margin-left: 0; }
.composer__more-wrap > .btn { flex: none; width: 24px; height: 24px; border-radius: 6px; }
.composer__more-wrap > .btn[aria-expanded="true"] { background: var(--bg-borderless-hover); }
.composer__more-echo { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 13px/20px var(--font-sans); color: var(--text-light); }
.composer__more-echo:empty { display: none; }
.composer__more { position: absolute; top: calc(100% + 4px); right: 0; z-index: var(--z-dropdown); width: 280px; max-width: calc(100vw - 32px); padding: 12px; display: grid; gap: 8px; background: var(--surface); border: 1px solid var(--border-default); border-radius: 8px; box-shadow: var(--shadow-4); }
.composer__more[hidden] { display: none; }
.composer__more-row { display: grid; gap: 4px; margin: 0; font: 400 13px/20px var(--font-sans); color: var(--text-medium); }
.composer__more-row .input, .composer__more-row select, .composer__more-row input { width: 100%; }
.composer__more-row.has-error .input, .composer__more-row.has-error input { border-color: var(--border-danger); }
.composer__more .field-error { margin: 0; }
/* Marker der Notiz (ABGLEICH LD-13): gelb wie ein Textmarker, im Editor und in der gespeicherten Notiz */
.richtext-editor mark, .prose mark { padding: 0 1px; border-radius: 2px; background: var(--gold-10); color: inherit; }
/* E-Mail: Zeilen Von · An · Cc · Bcc · Betreff je 41 px [B 07a] */
.mail-rows { min-width: 0; }
.mail-row { display: flex; align-items: center; gap: 8px; min-height: 41px; padding: 4px 12px 4px 44px; border-bottom: 1px solid var(--border-default); min-width: 0; position: relative; }
.mail-row[hidden] { display: none; }
.mail-row__toggle { position: absolute; left: 10px; top: 8px; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--icon-default); cursor: pointer; }
.mail-row__toggle:hover { background: var(--bg-borderless-hover); }
.mail-row__toggle[aria-expanded="false"] .icon { transform: rotate(-90deg); }
.mail-rows.is-collapsed [data-mail-detail] { display: none; }
.mail-row__label { flex: none; min-width: 48px; color: var(--text-medium); font-weight: 400; }
.mail-row__value { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.mail-from__name { color: var(--text-default); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-from__address { color: var(--text-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* „Von ▾“ mit mehreren eigenen Postfächern (Close 07a): Caret wie bei „Vorlage wählen …“; die native Auswahl liegt unsichtbar
   über der Zeile (Klick öffnet die Liste, Tastatur und Screenreader bedienen sie direkt) */
.mail-from { position: relative; cursor: pointer; border-radius: 6px; padding: 2px 6px; margin: -2px -6px; }
.mail-from__caret { flex: none; width: 12px; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%232e2e2e'%3E%3Cpath d='m6 9 6 7 6-7z'/%3E%3C/svg%3E") no-repeat center; }
/* Dunkelmodus: die Pfeile der Auswahlfelder (Bilder mit fester Farbe) hell */
:root[data-theme="dark"] .mail-from__caret, :root[data-theme="dark"] .mail-template {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%23b8bbc0'%3E%3Cpath d='m6 9 6 7 6-7z'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] .opp-form__period, :root[data-theme="dark"] .opp-form__status-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23b8bbc0'/%3E%3C/svg%3E");
}
.mail-from__select { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; font: 400 13px/20px var(--font-sans); appearance: none; -webkit-appearance: none; }
.mail-from:hover { background: var(--bg-borderless-hover); }
.mail-from:has(.mail-from__select:focus-visible) { box-shadow: 0 0 0 2px var(--blue-40); }
.mail-row__input { flex: 1 1 auto; min-width: 0; height: 32px; padding: 0; border: 0; outline: 0; background: none; font: 400 13px/20px var(--font-sans); color: var(--text-default); }
.mail-row__links { flex: none; display: inline-flex; gap: 12px; margin-left: auto; padding-left: 8px; }
.mail-row__links .btn-link { border: 0; background: none; padding: 0; font: 400 13px/18px var(--font-sans); color: var(--link); cursor: pointer; }
.mail-row__links .btn-link:hover { text-decoration: underline; }
.mail-row__error { margin: 0; padding: 4px 12px 4px 44px; border-bottom: 1px solid var(--border-default); }
.mail-row--subject { padding-right: 0; }
.mail-row__template { flex: 0 0 38%; min-width: 200px; align-self: stretch; display: flex; align-items: center; border-left: 1px solid var(--border-default); margin: -4px 0; padding: 0 4px 0 8px; }
.mail-template { width: 100%; height: 32px; padding: 0 26px 0 4px; border: 0; outline: 0; background-color: transparent; font: 400 13px/20px var(--font-sans); color: var(--text-medium); appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%232e2e2e'%3E%3Cpath d='m6 9 6 7 6-7z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; cursor: pointer; text-overflow: ellipsis; }
.recip { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; cursor: text; }
.recip__input { flex: 1 1 120px; min-width: 80px; height: 28px; padding: 0; border: 0; outline: 0; background: none; font: 400 13px/20px var(--font-sans); color: var(--text-default); }
.recip__input::-webkit-calendar-picker-indicator { display: none !important; }
/* Integrations-Links (Markup aus integration_tags) im ⋯-Menü des Kontakts als Menüzeilen */
.contact-menu .integration-links { display: contents; }
.contact-menu .integration-link { display: flex; align-items: center; min-height: 34px; padding: 0 8px; border: 0; border-radius: 6px; background: none; font: 400 14px/20px var(--font-sans); color: var(--text-default); max-width: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contact-menu .integration-link:hover { background: var(--menu-item-hover); border: 0; text-decoration: none; }
.recip-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 6px 0 10px; border-radius: 12px; background: var(--cyan-5); font-size: 13px; line-height: 18px; max-width: 100%; }
.recip-chip__name { color: var(--text-default); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recip-chip__mail { color: var(--text-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recip-chip.is-invalid { background: var(--red-5); }
.recip-chip button { display: inline-flex; padding: 0; border: 0; background: none; color: var(--icon-default); cursor: pointer; }
.email-template-files .file-list { gap: 2px; }
/* Segment „SMS | WhatsApp“, „Ausgehend | Eingehend“ */
.segmented { display: inline-flex; align-self: flex-start; padding: 2px; border-radius: 8px; background: var(--surface-dark); gap: 2px; }
.segmented__item { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 6px; font: 400 13px/18px var(--font-sans); color: var(--text-medium); cursor: pointer; white-space: nowrap; position: relative; }
.segmented__item:hover { color: var(--text-default); text-decoration: none; }
.segmented__item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented__item.is-active, .segmented__item:has(input:checked) { background: var(--surface); color: var(--text-default); box-shadow: var(--shadow-1); }
.segmented__item:has(input:focus-visible) { outline: 2px solid var(--blue-40); outline-offset: 1px; }
/* Custom Activity: Felder einspaltig, Label fett, Auswahl als Umriss-Pills (gewählt #eaf1ff / #a9c7ff) */
.process-fields { gap: 16px; }
.process-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
/* Custom-Activity-Composer wie Close (E160; ABGLEICH LD-19): eine Spalte, Label 14/600 + graues „Pflichtfeld“, Auswahl als Dropdown 360 px */
.process-grid .label, .process-grid legend.label { font: 600 14px/20px var(--font-sans); color: var(--text-default); }
.process-grid .required-word { margin-left: 4px; font: 400 13px/20px var(--font-sans); color: var(--text-light); }
.process-grid select.input, .process-grid .multiselect { width: 360px; max-width: 100%; }
.process-grid .multiselect select.input, .process-grid .multiselect .multiselect-control { width: 100%; }
.process-grid .multiselect-control { padding-right: 28px; background: var(--form-bg) no-repeat right 10px center / 10px 6px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23474747'/%3E%3C/svg%3E"); }
.process-grid select.input:not([multiple]) { padding-right: 28px; background: var(--form-bg) no-repeat right 10px center / 10px 6px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23474747'/%3E%3C/svg%3E"); }   /* Nutzer-, Kontakt- und Einfachauswahl: derselbe Pfeil wie die Wert-Auswahl darunter (Close E160: überall das gefüllte Dreieck) */
.process-grid select.input:not([multiple]):has(option[value=""]:checked) { color: var(--text-light); }   /* „Nutzer wählen“ grau wie der Platzhalter „Wert wählen“ */
.process-grid select.input option { color: var(--text-default); }
.process-grid .multiselect-control:focus-within { border-color: var(--blue-40); }
:root[data-theme="dark"] .process-grid .multiselect-control, :root[data-theme="dark"] .process-grid select.input:not([multiple]) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23b8bbc0'/%3E%3C/svg%3E");
}
.process-grid .multiselect-input, .process-grid .multiselect-input:focus, .process-grid .multiselect-input:focus-visible { outline: 0; box-shadow: none; border: 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border: 1px solid var(--border-default); border-radius: 12px; background: var(--surface); font: 400 13px/18px var(--font-sans); color: var(--text-default); cursor: pointer; }
.chip-btn:hover { border-color: var(--border-hover); }
.chip-btn.active { background: var(--blue-5); border-color: var(--blue-20); }
.cf-missing { margin-top: -8px; }
.cf-archived summary { cursor: pointer; color: var(--text-light); font-size: 13px; margin-bottom: 8px; }
.checkbox-inline { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.due-inputs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.due-inputs .input { width: auto; flex: 1 1 120px; max-width: 180px; }
/* Anruf protokollieren / Anruf-Eintrag im Gespräch (C-16): pulsierender Punkt „Im Gespräch“ und Laufzeit */
.call-live__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-40); flex: none; box-shadow: 0 0 0 0 rgba(76, 178, 77, .5); animation: call-pulse 1.6s infinite; }
@keyframes call-pulse { 0% { box-shadow: 0 0 0 0 rgba(76, 178, 77, .5); } 70% { box-shadow: 0 0 0 7px rgba(76, 178, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(76, 178, 77, 0); } }
.call-timer { font: 600 13px/20px var(--font-sans); font-variant-numeric: tabular-nums; color: var(--text-default); }
.call-timer.is-paused { color: var(--text-light); }
.call-duration { display: flex; gap: 6px; }
.call-duration .input { min-width: 0; font-variant-numeric: tabular-nums; }
.call-duration .btn .icon-stop, .call-duration .btn[aria-pressed="true"] .icon-start { display: none; }
.call-duration .btn[aria-pressed="true"] .icon-stop { display: inline; }
.call-duration .btn[aria-pressed="true"] { background: var(--green-5); border-color: var(--green-20); }
.call-results { border: 0; padding: 0; margin: 0; min-width: 0; }
.call-results .label { padding: 0; margin-bottom: 4px; }
.pill-radio { cursor: pointer; border: 1px solid var(--border-default); }
.pill-radio:has(input:checked) { background: var(--blue-5); border-color: var(--blue-20); color: var(--text-default); }
.pill-radio:has(input:focus-visible) { outline: 2px solid var(--blue-40); outline-offset: 1px; }
.call-followup { display: flex; flex-direction: column; gap: 8px; }
.call-followup .switch { align-self: flex-start; font-size: 13px; }
.call-followup-fields { display: flex; flex-direction: column; gap: 8px; }
.call-followup-fields[hidden] { display: none; }
/* Anruf-Eintrag im Gespräch (#live-call-slot, wie Close): sieht aus wie der Anruf im Verlauf – Kopf mit Titel, Pfeil und Laufzeit,
   darunter die Notiz als Schreibfeld ohne Rahmen (speichert sich selbst) und die Outcome-Zeile. Nach dem Auflegen weicht er dem
   Anruf im Verlauf; bleibt er kurz stehen, weil noch geschrieben wird (.is-ended), zeigt der Kopf schon die Dauer wie dort. */
.feed-item--live > .type-chip { margin-top: 6px; }
.live-call:focus-within { border-color: var(--blue-30); box-shadow: 0 0 0 2px var(--blue-10); }
.live-call.is-ended .call-live__dot { display: none; }
.live-call.is-ended .call-timer { font-weight: 400; color: var(--text-light); }
.live-call__status { margin-left: auto; flex: none; color: var(--text-light); font-size: 12px; line-height: 20px; white-space: nowrap; }
.live-call__status.is-error { color: var(--red-50); }
.live-call__text { flex: 1 1 0; min-width: 0; min-height: 20px; max-height: 320px; margin: 0; padding: 0; border: 0; outline: 0; background: transparent; resize: none;
  font: 400 13px/20px var(--font-sans); color: var(--text-default); }
.live-call__text::placeholder { color: var(--text-light); opacity: 1; }
.live-call .menu-item[aria-checked="false"] .check .icon { visibility: hidden; }

/* ---------- Formulare im Modal (Lead, Kontakt, Aufgabe, Feld, Custom Object) – B.6.10 ---------- */
.modal-form { display: flex; flex-direction: column; min-width: 0; margin: 0; }
.modal-form .modal-header { flex-wrap: wrap; gap: 0 12px; }
.modal-form .modal-header__sub { font-size: 13px; color: var(--text-light); font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.modal-form .modal-content { display: flex; flex-direction: column; gap: 16px; }
.modal-form .modal-footer .flex-1 { flex: 1; }
.modal-form .alert { margin: 0; }
.modal-form .fieldset { margin: 0; }
.app-content .modal-page { max-width: 760px; margin: 0 auto; border: 1px solid var(--border-default); border-radius: 16px; background: var(--surface); overflow: hidden; }
/* Dialog als ganze Seite (Rückfall ohne JS, Anhang 7) auf einer umgebauten Standardseite ohne Innenabstand: die Karte bringt ihren Abstand selbst mit */
.app-content.page-flush > .modal-page { width: calc(100% - 48px); margin: 24px auto 40px; }
.modal-page .modal-header { padding-right: 16px; }
.modal-page .composer--modal .composer__head { padding-right: 16px; }
.repeat-rows { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.repeat-row { display: flex; gap: 6px; align-items: center; }
.repeat-row .input:first-of-type { flex: 1; min-width: 0; }
.repeat-row .input-type { width: 150px; flex-shrink: 0; }
.address-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px 12px; padding: 12px 0; border-bottom: 1px solid var(--border-light); align-items: end; }
.address-form:first-child { padding-top: 0; }
.lead-form__address-list:not(:empty) { margin-bottom: 8px; }
.lead-form__addresses > .fieldset-legend { padding-bottom: 4px; }
.lead-form__section { display: flex; flex-direction: column; gap: 12px; }
.lead-form__section > .fieldset-legend { padding-bottom: 0; }
.custom-field-form .field-help { margin-top: 2px; }
.mention-menu { min-width: 220px; max-height: 260px; overflow: auto; }
.toast-undo { align-items: center; }
.toast-undo .toast-text { flex: 1; }
/* Zusammenführen, Papierkorb-Hinweis */
.merge-search { margin: 0; }
.merge-search__field { position: relative; }
.merge-search__field .input { width: 100%; }
/* Ergebnisfläche wie Close (E135): eigener, leicht abgesetzter Kasten ≈ 215 px; leer: Lupe im Kreis 96 px + 24/600 */
.merge-results { min-height: 215px; max-height: 320px; overflow-y: auto; border: 1px solid var(--border-default); border-radius: 8px; background: var(--surface-medium); }
.merge-results > .feed-loading { padding: 16px; }
.merge-suggest { list-style: none; margin: 0; padding: 0; background: var(--surface); }
.merge-suggest li { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-bottom: 1px solid var(--border-light); }
.merge-suggest li a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.merge-suggest li .status-pill { flex: none; margin-left: auto; }
.merge-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 213px; padding: 16px; text-align: center; }
.merge-empty__icon { display: inline-flex; align-items: center; justify-content: center; width: 96px; height: 96px; border-radius: 50%; background: var(--gray-5); color: var(--icon-default); }
.merge-empty__title { margin: 0; font: 600 24px/32px var(--font-sans); color: var(--text-default); }
.merge-empty__hint { margin: 0; font-size: 13px; color: var(--text-light); }
.merge-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.merge-card { border: 1px solid var(--border-default); border-radius: 8px; padding: 12px 16px; min-width: 0; }
.merge-card h2, .merge-card h3 { font: 600 16px/24px var(--font-sans); margin: 0 0 4px; overflow-wrap: anywhere; }
.merge-card .kv-row { padding-left: 0; padding-right: 0; font-size: 13px; }
.merge-keep .input { max-width: 360px; }
.lead-deleted { max-width: 560px; margin: 48px auto; text-align: center; }
.lead-deleted .toolbar { justify-content: center; }
.email-page { max-width: 960px; margin: 0 auto; }

/* ---------- Reiter „Log“ = Änderungsprotokoll des Leads (close-erkundung E546–E552; ABGLEICH_lead-seite-teil2 LD-30) ----------
   Zeilenliste auf dem grauen Grund: je Zeile 48 px ohne Rahmen – Kreis 24 (Mitte x = 28 ab Feedrand) auf einer senkrechten Linie ·
   Zeit ab x = 64 · Ereignis ab x = 230 (14/600 + grauer Zusatz, einzeilig) · rechts Avatar 24 · Chevron. Aufgeklappt: weiße Karte. */
.log-row { position: relative; list-style: none; margin: 0 0 0 -8px; min-width: 0; font: 400 14px/20px var(--font-sans); color: var(--text-default); border: 1px solid transparent; border-radius: 8px; }
.log-row::before { content: ""; position: absolute; left: 11px; top: -1px; bottom: -1px; width: 1px; background: var(--border-default); }
.log-row:first-child::before { top: 24px; }
.log-row:last-child::before, .log-row:has(+ .log-foot)::before { bottom: auto; height: 24px; }
.log-row:first-child:last-child::before { display: none; }
.log-row__head { position: relative; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 0 0 0; min-width: 0; cursor: pointer; border-radius: 8px; }
.log-row__head:hover .log-row__text b { text-decoration: underline; }
.log-row__head:focus-visible { outline: 2px solid var(--blue-40); outline-offset: -2px; }
.log-row__head > .type-chip { position: relative; z-index: 1; margin-left: -1px; }
.log-row__head > .type-chip > .icon { width: 14px; height: 14px; }
.log-row__time { flex: none; width: 150px; margin-left: 16px; color: var(--text-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log-row__text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-row__text b { font-weight: 600; }
.log-row__extra { color: var(--text-light); }
.log-row__head > .avatar { flex: none; }
.log-row__system { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--gray-5); color: var(--icon-default); flex: none; }
.log-row__chevron { flex: none; margin-right: 0; color: var(--icon-default); transition: transform var(--dur-quick) var(--ease); }
.log-row.is-open { background: var(--surface); border-color: var(--border-default); margin-top: 4px; margin-bottom: 4px; }
.log-row.is-open::before { display: none; }
.log-row.is-open > .log-row__head { padding-right: 11px; }
.log-row.is-open .log-row__chevron { transform: rotate(90deg); }
.log-row__body { padding: 0 12px 12px 48px; min-width: 0; }
.log-tabs { display: flex; gap: 4px; margin-bottom: 12px; }
.log-tab { height: 24px; padding: 0 8px; border: 0; border-radius: 6px; background: none; font: 400 13px/24px var(--font-sans); color: var(--link); cursor: pointer; }
.log-tab:hover { background: var(--bg-hover); }
.log-tab.is-active { background: var(--bg-active); color: #fff; font-weight: 600; }
.log-grid { margin: 0; }
.log-diff { display: block; }
.log-diff del { background: var(--red-10); color: var(--text-default); text-decoration: line-through; border-radius: 2px; padding: 0 2px; margin-right: 4px; }
.log-diff ins { background: var(--green-10); color: var(--text-default); text-decoration: underline; font-style: normal; border-radius: 2px; padding: 0 2px; }
.log-note { margin: 0; font-size: 13px; line-height: 20px; color: var(--text-medium); }
.log-grid + .log-note { margin-top: 8px; }
.log-raw { margin: 0; padding: 12px; max-height: 210px; overflow: auto; border: 1px solid var(--surface-dark); border-radius: 8px; background: var(--surface-light); font: 400 12px/18px var(--font-mono, ui-monospace, SFMono-Regular, Consolas, monospace); color: var(--text-default); white-space: pre; }
.log-raw[hidden], .log-details[hidden] { display: none; }
.log-foot { list-style: none; padding: 12px 0 0 56px; font-size: 13px; }

/* ---------- Formulare IM Kasten (linke Spalte): Aufgabe, Opportunity, Kontakt – wie Close E522, E525/E527, E534, E537 (LD-47/48/50/60) ----------
   Innenabstand 12, Felder 32 hoch, Fuß grau mit den Knöpfen rechts (Bearbeiten: links der Papierkorb). */
.box-slot:empty { display: none; }
.box-slot { border-bottom: 1px solid var(--border-default); }
.box-form.composer { border: 0; border-radius: 0; font: 400 14px/20px var(--font-sans); }
.box-form .input { font-size: 14px; }
.box-form .label { font: 600 14px/20px var(--font-sans); color: var(--text-default); margin-bottom: 4px; }
.box-form__foot.composer__foot { min-height: 56px; padding: 12px; background: var(--surface-medium); border-top: 0; flex-wrap: nowrap; gap: 8px; }
.box-form__foot .btn { border-radius: 8px; }
.box-form__foot .btn-icon .icon { color: var(--icon-default); }
.info-box__body > .box-form, .task-list > .box-form, .opp-list > .box-form, .contact-list > .box-form { border-top: 1px solid var(--border-default); }
.info-box__body > .box-form:first-child { border-top: 0; }
/* Aufgabe (E522, E537) */
.task-form--inline { border: 0; border-radius: 0; }
.task-form__body { display: flex; flex-direction: column; gap: 12px; padding: 12px; }
.composer textarea.task-form__text, .task-form__text { display: block; width: 100%; height: 32px; min-height: 32px !important; padding: 5px 12px; font-size: 14px; line-height: 20px; white-space: nowrap; overflow-x: auto; overflow-y: hidden; resize: none; scrollbar-width: none; }
.task-form__text::-webkit-scrollbar { display: none; }
.task-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.task-form__prio { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/20px var(--font-sans); cursor: pointer; align-self: flex-start; }
.task-form__prio .icon { color: var(--icon-danger); stroke-width: 2.5; }
.task-form__line { height: 1px; background: var(--border-default); }
.task-form__add-contact { align-self: flex-start; padding: 0 0 0 4px; font: 400 14px/20px var(--font-sans); color: var(--text-default); cursor: pointer; }
.task-form__add-contact:hover { color: var(--link); text-decoration: none; }
.task-form--inline .composer__foot { min-height: 56px; padding: 12px; }
.composer--modal.task-form .box-form__foot { border-radius: 0 0 16px 16px; }
/* Opportunity (E525, E527, E538) */
/* .opp-form heißt auch das Formular von WP4 (Modal, ganze Seite; wp_opps.css, lädt später) – die gemeinsamen Namen .opp-form und
   .opp-form__body stehen deshalb hier unter .box-form und dort unter :not(.box-form) bzw. .modal-content */
.box-form.opp-form { display: block; padding: 0; }
.opp-form__top { display: flex; align-items: center; gap: 8px; margin: 0 12px; padding: 10px 0; border-bottom: 1px solid var(--border-default); }
.opp-form__currency { flex: none; width: 20px; color: var(--text-light); font: 600 14px/20px var(--font-sans); }
.opp-form__amount { flex: 1 1 auto; min-width: 0; height: 32px; padding: 0; border: 0; outline: 0; background: none; font: 600 14px/20px var(--font-sans); color: var(--text-default); }
.opp-form__amount::placeholder { color: var(--text-light); font-weight: 600; }
.opp-form__period { flex: none; width: auto; height: 24px; padding: 0 24px 0 10px; border: 0; border-radius: 8px; background-color: var(--surface-dark); font: 600 13px/24px var(--font-sans); color: var(--text-medium); cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%235e5e5e'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; }
.opp-form__status { display: flex; flex-direction: column; margin: 12px 12px 0; padding: 6px 12px 6px; border: 1px solid var(--form-border); border-radius: 8px; background: var(--surface); cursor: pointer; }
.opp-form__status:focus-within { border-color: var(--form-border-focus); }
.opp-form__pipeline { font: 600 11px/16px var(--font-sans); letter-spacing: 0; text-transform: uppercase; color: var(--link); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opp-form__status-select { width: 100%; height: 22px; padding: 0 20px 0 0; border: 0; outline: 0; background-color: transparent; font: 400 14px/22px var(--font-sans); color: var(--text-default); cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%232e2e2e'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; }
.box-form .opp-form__body { display: flex; flex-direction: column; gap: 12px; padding: 12px; border-bottom: 1px solid var(--border-default); }
.box-form .opp-form__body .field { margin: 0; min-width: 0; }
.opp-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.opp-form__conf-label { display: flex; justify-content: space-between; gap: 8px; }
.opp-form__conf-label output { font-weight: 400; color: var(--text-medium); font-variant-numeric: tabular-nums; }
.opp-form__range { display: block; width: 100%; height: 32px; margin: 0; padding: 0 10px; border: 1px solid var(--form-border); border-radius: 8px; background: var(--surface); accent-color: var(--blue-50); }
.opp-form__note { padding: 12px; }
.opp-form__note .richtext--composer { border: 1px solid var(--form-border); border-radius: 8px; overflow: hidden; }
.opp-form__note .composer__editor { min-height: 75px; max-height: 240px; }
.opp-form__note .composer__toolbar { flex-wrap: wrap; padding: 2px 4px; min-height: 36px; }
.opp-form__note .composer__toolbar .richtext-btn { width: 28px; height: 28px; }
.opp-form__note .composer__toolbar .richtext-sep { margin: 0 2px; }
.opp-form__fields, .contact-form__fields { display: flex; flex-direction: column; gap: 12px; padding: 12px; }
.opp-form__fields .field, .contact-form__fields .field { margin: 0; }
.opp-form__more { display: flex; flex-direction: column; gap: 12px; }
.opp-form__more[hidden], .contact-form__fields[hidden] { display: none; }
.opp-form__reveal { margin: 0; padding: 16px 12px; text-align: center; font-size: 14px; }
.opp-form__reveal[data-compact] { padding: 0; text-align: left; }
.opp-form__reveal .btn-link { cursor: pointer; font-size: 14px; }
.contact-form__fields .fieldset { margin: 0; padding: 0; border: 0; }
.contact-form__fields .fieldset-legend { display: none; }
.contact-form__fields .form-grid { display: flex; flex-direction: column; gap: 12px; }
/* Kontakt (E534) */
.contact-form--box { display: block; }
.contact-form__head { display: flex; flex-direction: column; padding: 10px 12px 12px; }
.contact-form__name, .contact-form__title { width: 100%; padding: 0; border: 0; outline: 0; background: none; color: var(--text-default); }
.contact-form__name { height: 24px; font: 600 14px/24px var(--font-sans); }
.contact-form__title { height: 22px; font: 400 14px/22px var(--font-sans); }
.contact-form__name::placeholder { color: var(--text-light); font-weight: 600; }
.contact-form__title::placeholder { color: var(--text-light); }
.contact-form--box .info-box__sub { background: var(--surface-medium); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.contact-form__details { padding: 0 0 4px; }
.contact-form__details .repeat-rows { display: block; margin: 0; }
.contact-form__details .repeat-row.detail-row, .contact-form__urls.detail-row { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 8px 4px 12px; border-top: 0; border-bottom: 1px solid var(--border-light); }
.contact-form__details .input { height: 30px; border-color: transparent; padding: 0 8px; background: transparent; }
.contact-form__details .input:hover { border-color: var(--form-border); }
.contact-form__details .input:focus { border-color: var(--form-border-focus); background: var(--surface); }
.contact-form__details .repeat-row .input:first-of-type { flex: 1; min-width: 0; }
.contact-form__details .input-type { width: 124px; flex: none; color: var(--text-light); }
.contact-form__details textarea.input { flex: 1; min-width: 0; min-height: 30px; height: 30px; padding: 4px 8px; resize: none; line-height: 20px; }
.contact-form__add { display: flex; gap: 16px; margin: 0; padding: 8px 12px 4px; font-size: 13px; }
.contact-form__add .btn-link { cursor: pointer; font-size: 13px; }
.composer .field-kind-richtext .richtext-box, .process-grid .richtext-box { border: 1px solid var(--form-border); border-radius: 8px; overflow: hidden; background: var(--surface); }
.process-grid .richtext:has(> .richtext-box) { border: 0; }
.process-grid .richtext-box .richtext-editor { border: 0; border-radius: 0; min-height: 88px; }
.process-grid .richtext-box:focus-within { border-color: var(--form-border-focus); }
.merge-suggest__hint { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--text-light); }

/* ---------- Fenstergrößen (B.7) ---------- */
@media (max-width: 1279.98px) {
  :root { --lead-info-w: 320px; }
  .lead-actions .composer-btn > span, .lead-actions .btn-menu > span:not(.caret) { display: none; }
  .lead-actions .composer-btn { width: 32px; padding: 0; }
  .lead-actions .btn-menu.composer-btn { width: auto; padding: 0 10px; }
  .feed-search { width: 180px; }
  /* Tourenplanung (ENTWURF §21.12): „Termin finden“ behält seine Beschriftung, ein Symbol allein sagt dem Setter nichts */
  .lead-actions .composer-btn[data-composer-kind="tour"] > span { display: inline; }
  .lead-actions .composer-btn[data-composer-kind="tour"] { width: auto; padding: 0 12px; }
}
/* E-Mail-Fuß ohne Versand aus Abschluss (In Outlook öffnen · Text kopieren · Speichern): bei schmaler Karte wird „Text kopieren“ zum
   Icon-Knopf, damit der Fuß einzeilig bleibt */
@media (max-width: 1439.98px) {
  .composer__copy > span { display: none; }
  .composer__copy { width: 32px; padding: 0; }
}
@media (max-width: 1023.98px) {
  .lead-page { display: block; height: auto; }
  .app-content.page-detail { overflow: auto; }
  .lead-body { display: block; }
  .lead-info { border-right: 0; border-bottom: 1px solid var(--border-default); }
  .lead-info__scroll, .lead-feed { overflow: visible; }
  .lead-info .info-box__head { position: static; }   /* einspaltig scrollt die ganze Seite: Kastenköpfe kleben nicht */
  .lead-head { height: auto; min-height: var(--lead-header-h); padding: 12px 16px; flex-wrap: wrap; }
  .lead-actions { flex-wrap: wrap; }
  .feed-filter { position: static; }
  .feed, .composer-slot, .live-call-slot { padding-left: 12px; padding-right: 12px; }
  .feed-filter__row { padding: 0 12px; }
  .merge-grid, .field-grid, .task-form__row { grid-template-columns: 1fr; }
}
@media print {
  .lead-page, .lead-body { display: block; height: auto; }
  .lead-info__scroll, .lead-feed { overflow: visible; }
  .feed-filter, .composer-slot, .live-call-slot, .lead-actions, .worklist-fab, .feed-tools, .info-box__tools { display: none !important; }
  [data-clamp].is-clamped { display: block; -webkit-line-clamp: unset; }
}

/* Reihenfolge von Kontakten und Nummern per Ziehgriff (Marvin 16.10.2026): Griff links, immer sichtbar (hell), beim Überfahren dunkler;
   die oberste Nummer des obersten Kontakts wählen Power Dialer und „Anrufen“ (wp_settings.js data-sortable) */
.contact-list .contact-row, .contact-details .contact-line[data-sort-url] { position: relative; }
.contact-list[data-sortable] .contact-row, .contact-details[data-sortable] .detail-row { padding-left: 22px; }
.sort-grip { position: absolute; left: 3px; top: 50%; transform: translateY(-50%); width: 16px; }
.contact-row:hover .sort-grip, .contact-line:hover .sort-grip, .is-dragging .sort-grip { color: var(--gray-50); }
.is-dragging .sort-grip { cursor: grabbing; }
.contact-list .is-drop-before, .contact-details .is-drop-before { box-shadow: inset 0 2px 0 var(--blue-50); }
.contact-list .is-drop-after, .contact-details .is-drop-after { box-shadow: inset 0 -2px 0 var(--blue-50); }
.contact-list .is-drop-before > *, .contact-list .is-drop-after > *,
.contact-details .is-drop-before > *, .contact-details .is-drop-after > * { box-shadow: none; }
