/* NeXtMail Web – nm-gleich98 (NEXTMAIL-GLEICH-98.md): Kopfzeile je Postfach, Darstellung, Schriftgröße der Ordnerleiste,
   Ordner wischen am Handy. Wird nach favoriten.css/ordnung8.css geladen; Maße aus den --d-Tokens. */

/* Schriftgröße der Ordnerleiste (Vorliebe ordnerleiste_schrift: --g98-schrift = −2…+4 px) */
[data-flaeche~="web"] .mail .sp-ordner .baum .ordner { font-size: calc(var(--d-ordner-schrift) + var(--d-plus) + var(--g98-schrift, 0px)); }
[data-flaeche~="web"] .mail .sp-ordner .baum .fv-zeile { font-size: calc(var(--d-ordner-schrift) + var(--d-plus) + var(--g98-schrift, 0px)); }
[data-flaeche~="web"] .mail .sp-ordner .baum .baum-kopf { font-size: calc(var(--d-konto-schrift) + var(--d-plus) + var(--g98-schrift, 0px)); }

/* Kopfzeile je Postfach: deutlicher (Primärfarbe), so kompakt wie eine Ordnerzeile, Symbol bei allen, gleiche Einrückung */
.baum-kopf .g98-kopf { display: flex; align-items: center; gap: 6px; color: var(--text); font-weight: 600; min-width: 0; }
.baum-kopf .g98-titel { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.baum-kopf .g98-zahl { flex: 0 1000 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400;
  color: var(--muted); font-size: calc(var(--d-schrift-klein) + var(--d-plus)); }
[data-flaeche~="web"] .mail .sp-ordner .baum-kopf:not(.fv-kopf) { min-height: var(--fv-zeile, var(--d-ordner-zeile)); padding-top: 0; padding-bottom: 0; }
.g98-sym { width: var(--fv-symbol, var(--d-symbol-klein, 16px)); height: var(--fv-symbol, var(--d-symbol-klein, 16px)); flex: none; }
.g98-ini { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-size: 9px;
  font-weight: 700; letter-spacing: 0; line-height: 1; }
.g98-vorschau { cursor: default; border: 1px solid var(--line); border-radius: var(--d-radius); padding: 6px 8px; min-height: 32px; }
.g98-vorschau:hover { background: none; }

/* Darstellungs-Dialog: Symbol- und Farbwahl */
.g98-dialog .zeile { margin-bottom: 12px; }
.g98-dialog .feld { width: 100%; box-sizing: border-box; }
.g98-wahl { display: flex; flex-wrap: wrap; gap: 6px; }
.g98-knopf { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line);
  border-radius: var(--d-radius); background: var(--panel); color: var(--text); cursor: pointer; padding: 0; }
.g98-knopf.an, .g98-farbe.an { box-shadow: 0 0 0 2px var(--accent); border-color: var(--accent); }
.g98-knopf:focus-visible, .g98-farbe:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.g98-ini-klein { font-size: 11px; font-weight: 700; }
.g98-farbe { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: var(--g98-f); cursor: pointer; padding: 0;
  color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.g98-farbe.auto { background: linear-gradient(135deg, var(--g98-f) 0 50%, var(--panel2, #ddd) 50% 100%); }
.g98-reihe { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.g98-reihe .fv-fein-reihe { flex: 0 1 360px; }
.fv-fein-reihe .fv-wert { flex: 0 0 80px; white-space: nowrap; }   /* gleiche Reglerbreite für Feinregler und Schriftgröße */

/* Ordner wischen am Handy: Knöpfe rechts in der Zeile */
.sp-ordner .baum .ordner.g98-wisch-offen { position: relative; overflow: hidden; }
.g98-wisch { position: absolute; top: 0; right: 0; bottom: 0; display: flex; z-index: 2; }
.g98-wk { border: 0; color: #fff; font-size: 12px; font-weight: 600; padding: 0 12px; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.g98-wk svg.ic { width: 16px; height: 16px; color: #fff; }
.g98-wk.umbenennen { background: #3b5bdb; }
.g98-wk.loeschen { background: #c92a2a; }
.g98-wk.loeschen.gesperrt { background: #868e96; }
.g98-dialog .fehlertext:empty { display: none; }

/* nm26-verfassen2 (E7 Tablet, Teil B): Namen in der Ordnerleiste brechen um statt „Alle…“/„Info…“ – höchstens zwei Zeilen,
   nur an Wortgrenzen bzw. mit Silbentrennung der Seitensprache; erst danach schneidet die zweite Zeile am Ende ab (Tooltip). */
.sp-ordner .baum .ordner > .name.g98-umbruch, .sp-ordner .baum .g98-umbruch {
  white-space: normal; text-overflow: clip; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; line-height: 1.25; padding: 2px 0;
}
