/* mjOS · Bridge — Eintrag (EN-1 bis EN-5) und Kopf der Detailansicht (G-5), nach Bridge-Eintrag.dc.html. */
.eintrag { display: flex; flex-direction: column; gap: 14px; }
.eintrag[hidden], .en-body[hidden] { display: none; }

/* G-5: in der Detailansicht zusätzlich Zurück vor der Marke; mjOS und die Pille bleiben */
.head .back { display: none; min-height: 44px; padding: 0 12px 0 6px; margin-left: -6px; align-items: center; gap: 4px;
  color: var(--accent); text-decoration: none; font-size: 14px; }
.head .back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body[data-detail="1"] .head .back { display: flex; }
body[data-detail="1"] .screen { padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
.nav[hidden] { display: none; }

/* EN-1, H6: Kopf wie ein Beitrag (Art-Symbol, Ort, „Tag Datum Zeit · Dauer · Typ“, Stufe); ein gespeicherter Chat behält seinen Titel */
.en-title { display: flex; align-items: center; gap: 10px; }
.en-title-text { flex: 1; min-width: 0; display: flex; flex-direction: column-reverse; gap: 4px; }   /* ohne Symbol: Eyebrow über dem Titel */
.en-title h1 { font-size: 26px; line-height: 1.15; overflow-wrap: anywhere; }
.en-eyebrow { font-size: var(--text-micro); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.en-kind { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--ink); color: var(--surface); display: flex; align-items: center; justify-content: center; }
.en-kind[hidden], .en-stage[hidden], .en-media[hidden], .en-caption[hidden], .en-tools[hidden], .en-tool[hidden] { display: none; }
.en-kind svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.en-kind:not([hidden]) + .en-title-text { flex-direction: column; gap: 2px; }
.en-kind:not([hidden]) + .en-title-text h1 { font-size: 15px; font-weight: 600; letter-spacing: 0; }
.en-kind:not([hidden]) + .en-title-text .en-eyebrow { font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.en-stage { flex: none; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: var(--ground); color: var(--ink-2); }
.en-stage.stage-aufbereitung { background: var(--blue-soft); color: var(--blue-strong); }
.en-stage.stage-pruefen { background: var(--amber-soft); color: var(--amber-text); }
.en-stage.stage-archiv { background: var(--green-soft); color: var(--green); }

/* H6 Medium: randlos über die ganze Breite, Vorschaubild, Original erst auf Tipp */
.en-media { margin: 0 calc(-1 * var(--gutter)); background: var(--ink); color: var(--surface); }
.en-media.kind-audio { margin: 0; border-radius: var(--radius-card); background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.en-media-tap { position: relative; width: 100%; aspect-ratio: 390 / 420; max-height: 70dvh; border: 0; padding: 0; background: transparent; color: inherit;
  display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; }
.en-media.kind-audio .en-media-tap { aspect-ratio: auto; height: 96px; gap: 12px; }
.en-media-tap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.en-media.kind-photo .en-media-tap img { object-fit: contain; }
.en-media-tap > svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .6; }
.en-play { position: relative; width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.en-media.kind-audio .en-play { width: 48px; height: 48px; background: var(--ink); color: var(--surface); }
.en-play svg { width: 22px; height: 22px; fill: currentColor; }
.en-media-note { position: absolute; left: 12px; bottom: 10px; font: 12px var(--font-mono); color: inherit; opacity: .85; }
.en-media.kind-audio .en-media-note { position: static; }
.en-media video { display: block; width: 100%; max-height: 70dvh; background: var(--ink); }
.en-media audio { display: block; width: 100%; padding: 16px; box-sizing: border-box; }

/* H6 Aktionen: Bearbeiten · Chat · Original, rechts I · Z · D */
.en-tools { display: flex; align-items: center; gap: 4px; margin: -6px -10px -4px; }
.en-tools .grow { flex: 1; }
.en-tool { width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.en-tool:hover { background: var(--ground); }
.en-tool[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }
.en-tool svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.en-passes { display: flex; gap: 4px; padding-right: 10px; }
.en-pass { width: 20px; height: 20px; box-sizing: border-box; border-radius: 50%; font: 600 10px/1 var(--font-sans); display: flex; align-items: center; justify-content: center; color: var(--ink-3); }
.en-pass.done { background: var(--ink); color: var(--surface); }
.en-pass.run { border: 2px solid var(--blue); background: var(--blue-soft); color: var(--blue-strong); }
.en-pass.wait { border: 1.5px dashed var(--ink-4); }
.en-pass.na { border: 1px solid var(--line); background: var(--ground); }
.en-pass.fail { background: var(--red); color: var(--surface); }
.en-pass.redo { border: 2px solid var(--blue); color: var(--blue-strong); font-size: 12px; }   /* ↻ wird neu gerechnet */

/* H6 Bildunterschrift: Zusammenfassung, Themen als Hashtags, Personen */
.en-caption { display: flex; flex-direction: column; gap: 6px; }
.en-caption p { margin: 0; overflow-wrap: anywhere; }
.en-summary { font-size: 15px; line-height: 1.5; }
.en-tags { font-size: 15px; color: var(--accent); }
.en-with { font-size: 13px; color: var(--ink-3); }
.en-with a { color: var(--accent); text-decoration: none; }
.en-body { display: flex; flex-direction: column; gap: 14px; }
.en-label { font-size: var(--text-micro); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.en-label.accent { color: var(--accent); }

/* EN-2 Transkript, aufklappbar (H6) */
.en-transcript { display: flex; flex-direction: column; gap: 10px; }
.en-transcript > summary { min-height: var(--touch); display: flex; align-items: center; font-size: 14px; color: var(--ink-3); cursor: pointer; list-style: none; }
.en-transcript > summary::-webkit-details-marker { display: none; }
.en-transcript[open] > summary { color: var(--ink); }
.en-transcript[open] { padding: 0 16px 14px; border-radius: var(--radius-card); background: var(--surface); border: 1px solid var(--line); }
#en-plain { padding: 14px 16px; }
.en-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.en-votes { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10px; color: var(--text-2); }
.dots.small { gap: 5px; }
.dots.small .dot { width: 7px; height: 7px; }
.dots.small .dot.redo { width: auto; height: auto; }
.en-text { margin: 0; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; white-space: normal; }
.en-hint { font-size: 12px; color: var(--muted); }
.en-hint:empty { display: none; }

.en-rows { display: flex; flex-direction: column; gap: 8px; }
.who.voice-iris, .who.voice-zora, .who.voice-daniel { color: var(--ink-3); }   /* Iris, Zora, Daniel nur beim Namen: Farbe heisst Zustand */

/* EN-4 Automatische Klassifizierung (ohne Prozentzahl; „korrigiert“, wo der Besitzer es gesetzt hat) */
.en-fields { display: flex; flex-direction: column; gap: 8px; }
.en-field { display: flex; flex-direction: column; gap: 5px; padding: 10px 12px; border-radius: var(--radius-card); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.en-field .top { display: flex; align-items: baseline; gap: 10px; }
.en-field .name { width: 72px; flex: none; font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); }
.en-field .value { flex: 1; min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
.en-field .by { font-family: var(--font-mono); font-size: 10px; flex: none; color: var(--muted-2); max-width: 30%; text-align: right; }
.en-field.corrected .by { color: var(--accent); }
.en-transcript[hidden], .en-fields[hidden], .en-actions[hidden], .en-edit[hidden] { display: none; }

/* Vorschläge: erkannte Termine und Todos, unbestätigt (gestrichelt) bis er sie in den Kalender nimmt */
.en-proposals { display: flex; flex-direction: column; gap: 8px; }
.en-proposals[hidden] { display: none; }
.en-proposals-note { font-size: 12px; color: var(--muted); }
.en-proposal { display: flex; flex-direction: column; gap: 10px; padding: 10px 12px; border-radius: var(--r-control);
  background: var(--amber-soft); border: 1px dashed var(--amber); }
.en-proposal.bestaetigt { border: 1px solid var(--green-line); background: var(--green-soft); }
.en-proposal.verworfen { border: 1px dashed var(--line-3); opacity: .7; }
.en-proposal .top { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.en-proposal-kind { flex: none; width: 54px; padding-top: 2px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--attention-text); }
.en-proposal.bestaetigt .en-proposal-kind { color: var(--green); }
.en-proposal.verworfen .en-proposal-kind { color: var(--muted-2); }
.en-proposal-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.en-proposal-text .title { font-size: 15px; overflow-wrap: anywhere; }
.en-proposal.verworfen .title { text-decoration: line-through; color: var(--muted); }
.en-proposal-text .when { font-family: var(--font-mono); font-size: 11px; color: var(--text-2); }
.en-proposal-status { flex: none; max-width: 36%; text-align: right; font-family: var(--font-mono); font-size: 10px; color: var(--attention-text); }
.en-proposal.bestaetigt .en-proposal-status { color: var(--green); }
.en-proposal.verworfen .en-proposal-status { color: var(--muted-2); }
.en-proposal-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.en-proposal-actions button { min-height: var(--touch-min); min-width: 0; padding: 0 10px; border-radius: var(--r-control); border: 1px solid var(--line-3);
  background: none; color: var(--text); font: 500 14px var(--font-body); cursor: pointer; }
.en-proposal-actions .confirm { border: none; background: var(--accent); color: var(--on-accent); font-weight: 600; }
.en-proposal-actions button:disabled { opacity: .45; cursor: not-allowed; }
.en-proposal-form { display: flex; flex-direction: column; gap: 10px; }
.en-proposal-when { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.en-proposal-input { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.en-proposal-input input { width: 100%; min-width: 0; min-height: var(--touch-min); padding: 8px 10px; border-radius: 10px;
  border: 1px solid var(--line-3); background: var(--void); color: var(--text); font: 16px var(--font-body); color-scheme: light; }
.en-people { display: flex; flex-wrap: wrap; gap: 6px; }
.en-people .chip, .fd-chips .chip.person { text-decoration: none; }
.chip.person { color: var(--accent); border-color: var(--line-hot, var(--line-3)); }
.chip.unknown { color: var(--muted); }

/* Korrigieren */
.en-edit { display: flex; flex-direction: column; gap: 14px; padding: 14px 16px; }
.en-edit-title { font-size: 17px; margin: 0; }
.en-edit-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.en-edit-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.en-edit input, .en-edit select, .en-edit textarea { width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px; border-radius: 10px;
  border: 1px solid var(--line-3); background: var(--void); color: var(--text); font: 16px var(--font-body); resize: vertical; }   /* 16 px: iOS zoomt sonst */
.en-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 12px;
  background: var(--void); border: 1px solid var(--line-1); }
.en-types button { height: 40px; min-width: 0; border: none; border-radius: 9px; background: transparent; color: var(--muted); font: 500 13px var(--font-body); cursor: pointer; }
.en-types button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(22, 25, 29, .12); }
.en-people-edit, .en-dates { display: flex; flex-direction: column; gap: 6px; }
.en-person { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.en-date { display: grid; grid-template-columns: minmax(0, 9.5em) minmax(0, 1fr) 44px; gap: 6px; }
.en-more, .en-reset, .en-drop { min-height: var(--touch); padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-3); background: none; color: var(--text);
  font: 500 13px var(--font-body); cursor: pointer; align-self: flex-start; }
.en-reset { min-height: var(--touch); font-size: var(--text-hint); color: var(--muted); }
.en-drop { min-height: 44px; align-self: stretch; }
.en-edit-hint { margin: 0; font-size: 12px; color: var(--muted); }
.en-edit-link { color: var(--accent); font-size: 14px; }
.en-edit-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.en-edit-actions a, .en-edit-actions button { height: 48px; border-radius: var(--r-control); border: 1px solid var(--line-3); background: none; color: var(--text);
  text-decoration: none; font: 500 14px var(--font-body); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.en-edit-actions .confirm { border: none; background: var(--accent); color: var(--on-accent); font-weight: 600; }
.en-edit-actions button:disabled { opacity: .45; }

/* Bearbeiten: Fassungen und Verlauf je Feld */
.en-edit-field { padding-bottom: 12px; border-bottom: 1px solid var(--line-1); }
.en-edit-field.own .en-label { color: var(--accent); }
.en-trail { font-family: var(--font-mono); font-size: 10px; line-height: 1.5; color: var(--muted-2); overflow-wrap: anywhere; }
.en-readonly { margin: 0; font-size: 14px; color: var(--text-2); overflow-wrap: anywhere; }
.en-history { display: flex; flex-direction: column; gap: 6px; }
.en-versions { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.en-versions li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; align-items: center; padding: 8px 10px;
  border-radius: 10px; background: var(--panel); border: 1px solid var(--line-1); }
.en-versions li.current { border-color: var(--line-hot, var(--line-3)); }
.en-versions .who { font-family: var(--font-mono); font-size: 10px; color: var(--muted); grid-column: 1; }
.en-versions .what { font-size: 13px; grid-column: 1; overflow-wrap: anywhere; }
.en-versions button, .en-versions .now { grid-column: 2; grid-row: 1 / span 2; }
.en-versions .now { font-family: var(--font-mono); font-size: 10px; color: var(--accent); }
.en-place-new { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }

/* EN-5 Aktionen */
.en-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 4px; }
.en-actions a, .en-actions button { height: 48px; background: var(--surface); min-width: 0; border-radius: var(--r-control); border: 1px solid var(--line-3); background: none; color: var(--text);
  text-decoration: none; font: 500 14px var(--font-body); display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; padding: 0 4px; }
.en-actions svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.en-actions .confirm { border: none; background: var(--accent); color: var(--on-accent); font-weight: 600; }
.en-actions button:disabled, .en-actions a[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
/* „Zora fragen“ (nur Fotos): eigene Zeile unter den drei Knöpfen */
.en-actions .ask { grid-column: 1 / -1; }
.en-actions [hidden] { display: none; }

/* H7 (Neugestaltung, erster Schritt): jedes Feld als eigene Karte, die Herkunft als kleine Marke; Logik unverändert (bearbeiten.js) */
.en-edit.card { padding: 0; background: transparent; border: 0; box-shadow: none; }
.en-edit .en-edit-field { padding: 12px 14px; border: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.en-edit .en-edit-field.own { border-color: var(--blue-line); }
.en-edit .en-edit-field .en-label { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; color: var(--ink); }
.en-edit .en-trail { align-self: flex-start; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--ground); color: var(--ink-3); font-family: var(--font-sans); font-size: 11px; }
.en-edit input, .en-edit select, .en-edit textarea { background: var(--surface); border-color: var(--line-strong); }
.en-edit-actions { position: sticky; bottom: calc(8px + env(safe-area-inset-bottom)); padding: 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-pop); }
/* Verknüpft mit … (verknuepft.js) */
.en-rel { display: flex; flex-direction: column; gap: 8px; }   /* Abstand wie die übrigen Abschnitte (gap der Ansicht) */
.en-rel[hidden] { display: none; }
.en-rel .en-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.en-rel-list, .en-rel-hits { display: flex; flex-direction: column; gap: 6px; }
.en-rel-row { display: flex; align-items: center; gap: 8px; }
.en-rel-link, .en-rel-hit { flex: 1; display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 10px 12px; border-radius: var(--r-control); border: 1px solid var(--line); background: var(--surface); color: inherit; text-decoration: none; min-height: 44px; }
.en-rel-kind { font-size: var(--text-hint); color: var(--ink-3); }
.en-rel input[type="search"] { min-height: 44px; padding: 0 12px; border-radius: var(--r-control); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font: 16px var(--font-body); }
/* Knöpfe im Abschnitt: vorher die Standardknöpfe des Browsers. Verknüpfen wie .ch-action, Lösen und Fertig wie .en-actions. */
.en-rel button { min-height: var(--touch); padding: 0 14px; border-radius: var(--r-control); border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--ink); font: 500 14px var(--font-body); cursor: pointer; }
.en-rel .en-rel-add { border-radius: var(--radius-pill); border-color: var(--blue-line); color: var(--accent); }
.en-rel .en-rel-drop { flex: none; color: var(--ink-2); }
.en-rel .en-rel-hit { border-color: var(--line); font: inherit; color: var(--ink); }
.en-rel-link strong, .en-rel-hit strong { font-size: var(--text-card); font-weight: 500; overflow-wrap: anywhere; }
.en-rel-link .note, .en-rel-hit .note { font-size: var(--text-hint); }
/* Löschen in Rot wie .pe-actions .danger: Farbe heisst Zustand, auch wenn es erst in den Papierkorb geht */
.en-actions #en-remove, .en-chat-actions #en-delete { color: var(--danger); }
