/* wp_integrations – Paket mail/WP7: Einstellungen › E-Mail & Kalender, Integrations-Links (SPEC_UI_CLOSE_1ZU1 C-20).
   Von base.html eingebunden. Layout und Tabellen kommen aus wp_settings.css; hier nur, was es nur auf diesen Seiten gibt,
   sowie die Link-Leiste der Kontaktkarte und der Versandstatus im Feed (von anderen Paketen benutzt). */
.integ-inline { display: inline-flex; margin: 0; }
.integ-ok { color: var(--text-success); }
.integ-error { color: var(--text-danger); }
.integ-warn { color: var(--text-warn); }
.integ-danger { color: var(--text-danger); }
.integ-block { display: block; margin-top: 2px; }
.integ-url { overflow-wrap: anywhere; word-break: break-word; font-size: 12.5px; }
.integ-roles { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 4px; }
.integ-roles .yn { white-space: normal; }
.integ-list { margin: 0; padding-left: 20px; }
.integ-list li { margin: 4px 0; font-size: 14px; line-height: 20px; color: var(--text-medium); }
.integ-state-warn { background: var(--gold-5); color: var(--gold-70); }
.integ-state-error, .integ-state-off, .integ-state-on { background: none; }
.integ-field[x-cloak] { display: none; }
/* Abgleich an/aus: Schalter 28 × 16 wie B.6.2, sendet das Formular beim Klick */
.toggle-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 4px 0 0; border: 0; background: none; cursor: pointer;
  font: 400 13px/18px var(--font-sans); color: var(--text-medium); white-space: nowrap; border-radius: 4px;
}
.toggle-btn:hover { color: var(--text-default); }
.toggle-btn[aria-checked="true"] { color: var(--text-default); }
.toggle-btn[aria-checked="true"] .switch-track { background: var(--form-checked); }
.toggle-btn[aria-checked="true"] .switch-track::after { transform: translateX(12px); }

/* Integrations-Links in der Kontaktkarte ({% integration_links contact %}) */
.integration-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.integration-link {
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px; border: 1px solid var(--border-default); border-radius: 12px;
  background: var(--surface); color: var(--link); font-size: 13px; line-height: 18px; text-decoration: none; max-width: 100%; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.integration-link:hover { background: var(--gray-5); text-decoration: none; }
/* Integrations-Link anlegen/bearbeiten wie Close (E408): URL über drei Zeilen (~80 px), lange Adressen brechen um */
.settings-field textarea.link-url { min-height: 80px; overflow-wrap: anywhere; word-break: break-all; }
.link-example a { color: var(--link); overflow-wrap: anywhere; }
/* Postfach-Seite im Aufbau der Close-Kontoseite (E490/E491): Stand grün/rot 13/600 hinter der Abschnittsüberschrift,
   ganz unten „Postfach entfernen“ (18/24 700, ein Satz, roter Knopf) */
.integ-state { font: 600 13px/18px var(--font-sans); color: var(--green-60); }
.integ-state--bad { color: var(--text-danger); }
.integ-remove__title { margin: 0 0 4px; font: 700 18px/24px var(--font-sans); color: var(--text-default); }
.integ-remove p { margin: 0 0 12px; font-size: 14px; line-height: 20px; color: var(--text-medium); }
.integ-remove form { margin: 0; }
.integ-table a.cell-main { color: var(--link); text-decoration: none; }
.integ-table a.cell-main:hover { text-decoration: underline; }
/* E-Mail & Kalender › Meine Einstellungen wie Close „Email › My Settings“ (E463): Spalte 467 px, eigenes Postfach als Liste
   im Rahmen ohne Kopfzeile (Zeile 56 px), Signatur-Editor ~225 px, „Speichern“ rechts darunter */
.my-email { max-width: 467px; }
.mailbox-list { margin: 0 0 8px; padding: 0; list-style: none; border: 1px solid var(--border-default); border-radius: 8px; }
.mailbox-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 12px; border-bottom: 1px solid var(--border-default); min-width: 0; }
.mailbox-row:last-child { border-bottom: 0; }
.mailbox-row__icon { display: inline-flex; flex: none; color: var(--icon-default); }
.mailbox-row__main { flex: 1; min-width: 0; }
.mailbox-row__mail { display: block; font: 600 14px/20px var(--font-sans); color: var(--text-default); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mailbox-row__sub { display: block; font-size: 13px; line-height: 18px; color: var(--text-medium); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mailbox-row__state { flex: none; max-width: 45%; font: 600 13px/18px var(--font-sans); color: var(--green-60, var(--green-50)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mailbox-row__state.is-problem { color: var(--text-danger); font-weight: 400; }
.mailbox-none { margin: 0 0 8px; padding: 12px; border-radius: 8px; background: var(--gray-1); font-size: 14px; line-height: 20px; color: var(--text-medium); }
.signature-form .field { margin: 0; }
.signature-form .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.signature-form .richtext { border: 1px solid var(--form-border); border-radius: 8px; }
.signature-form .richtext-editor { min-height: 180px; max-height: 320px; }
.signature-form .settings-hint { font-size: 13px; line-height: 18px; margin-top: 8px; }
.signature-form__actions { display: flex; justify-content: flex-end; margin-top: 12px; }
/* Postfächer: Spalten in Anteilen, damit bei 1280–1440 px keine Spalte auf null schrumpft (C-20 „kein Text über den Rand“) */
.integ-table col.integ-col-user { width: 16%; } .integ-table col.integ-col-box { width: 27%; }
.integ-table col.integ-col-send { width: 17%; } .integ-table col.integ-col-sync { width: 136px; }
/* Versandstatus in der Timeline ({{ a.email_status|mail_status }}) */
.mail-status-draft { color: var(--text-warn); font-weight: 600; }
.mail-status-failed { color: var(--text-danger); font-weight: 600; }
