/* mjOS · Bridge — Feed (FD-3, FD-4) und Stimmen-Punkte, nach Bridge-Feed.dc.html. */
.feed { display: flex; flex-direction: column; gap: 14px; }
.feed[hidden] { display: none; }
.eyebrow.accent { color: var(--accent); }
.fd-title { display: flex; flex-direction: column; gap: 4px; }
.grow { flex: 1; }

/* Stimmen-Punkte: immer Iris, Zora, Daniel; gefüllt = abgestimmt, hohl (1,5 px Ring) = ausstehend */
.dots { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.dot { width: 8px; height: 8px; border-radius: 4px; border: 1.5px dashed var(--ink-4); background: none; flex: none; }
.dot.on { background: var(--ink); border: 1.5px solid var(--ink); }   /* Tinte = durchgerechnet, gestrichelt = wartet (wie I·Z·D) */
.dot.redo { width: auto; height: auto; border: none; border-radius: 0; color: var(--blue); font: 600 12px/8px var(--font-sans); }   /* ↻ wird neu gerechnet */
.dot.voice-iris { --c: var(--voice-iris); }
.dot.voice-zora { --c: var(--voice-zora); }
.dot.voice-daniel { --c: var(--voice-daniel); }

/* Reiterleiste (heute nur noch das Board im System-Reiter) */
.fd-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: var(--radius-control);
  background: var(--ground); border: 1px solid var(--line); }
.fd-tabs button { position: relative; height: 36px; min-width: 0; border: none; border-radius: 9px; background: transparent; color: var(--muted);
  font: 500 13px var(--font-body); display: flex; align-items: center; justify-content: center; gap: 5px; cursor: pointer; padding: 0 2px; }
.fd-tabs button::after { content: ""; position: absolute; inset: -4px 0; }          /* Berührfläche 44 px (G-8) */
.fd-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(22, 25, 29, .12); }
.fd-tabs .n { font-family: var(--font-mono); font-size: 11px; opacity: .75; }
.fd-cards { display: flex; flex-direction: column; gap: 14px; }
.fd-cards:empty { display: none; }

/* FD-3 Prüfkarte */
.fd-card { border-radius: var(--radius-card); border: 1px solid var(--line); background: var(--surface); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px; min-width: 0; box-shadow: var(--shadow-card); }
.fd-eyebrow { display: flex; justify-content: space-between; gap: 10px; font-size: var(--text-micro); font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-3); }
.fd-text { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.fd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 26px; padding: 0 10px; border-radius: var(--radius-pill); background: var(--ground); border: 1px solid var(--line); color: var(--ink-2); font-size: var(--text-hint); display: flex; align-items: center;
  max-width: 100%; overflow-wrap: anywhere; }
.fd-votes { display: flex; align-items: center; gap: 8px; }
.fd-votes .ratio { font-family: var(--font-mono); font-size: 11px; color: var(--text-2); }
.fd-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fd-actions a, .fd-actions button { height: var(--touch); min-width: 0; border-radius: var(--radius-control); border: 1px solid var(--line-strong); background: none; color: var(--text);
  text-decoration: none; font: 500 13px var(--font-body); display: flex; align-items: center; justify-content: center; gap: 5px; cursor: pointer; padding: 0 4px; }
.fd-actions svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.fd-actions .confirm { border: none; background: var(--accent); color: var(--on-accent); font-weight: 600; }
.fd-actions button:disabled { opacity: .45; cursor: not-allowed; }

/* FD-4 vorläufige Karte */
.fd-prov { border-radius: var(--radius-card); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-card); padding: 12px 16px; min-height: 44px;
  display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.fd-prov:hover { color: var(--text); }
.fd-prov .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fd-prov .status { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; }
.fd-prov .text { font-size: 14px; overflow-wrap: anywhere; }

/* Tage und Nachladen */
.fd-day { margin: 8px 0 -4px; font-weight: 400; }
.fd-cards > .fd-day:first-child { margin-top: 0; }
.fd-more { min-height: var(--touch); flex: none; border-radius: var(--r-control); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-2);
  font: 500 14px var(--font-body); cursor: pointer; }
.fd-more[hidden] { display: none; }
.fd-more:disabled { opacity: .45; cursor: wait; }
/* Karte antippen → Detailansicht; einziger Knopf „Bearbeiten“ */
.fd-card.fd-open { cursor: pointer; }
.fd-card.fd-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fd-actions.one { grid-template-columns: minmax(0, 1fr); }
.fd-edit.compact { flex: none; min-height: var(--touch); padding: 0 12px; border-radius: var(--radius-card); border: 1px solid var(--line); background: var(--surface);
  color: var(--text); font: 500 13px var(--font-body); text-decoration: none; display: flex; align-items: center; justify-content: center; }

/* H5 Feed als Raster: 3 Spalten, quadratische Kacheln, Tage als Zeile über die ganze Breite (nur im Feed, nicht im Board).
   Ohne Vorschau (Notiz, Fundstück) zeigt die Kachel Art · Zeit, den Text (gekürzt) und den Zustand. Antippen
   öffnet den Eintrag; „Bearbeiten“ steht dort (und bleibt in der Kachel für Tastatur und Leser erreichbar, nur kleiner). */
#fd-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; margin: 0 calc(-1 * var(--gutter)); }
#fd-cards > .fd-day { grid-column: 1 / -1; margin: 12px var(--gutter) 4px; }
#fd-cards > .fd-day:first-child { margin-top: 0; }
#fd-cards > .fd-card, #fd-cards > .fd-prov, #fd-cards > .fd-prov-row { aspect-ratio: 1 / 1; min-width: 0; overflow: hidden; border-radius: 0;
  border: none; box-shadow: none; padding: 8px; gap: 4px; }
#fd-cards > .fd-card { background: var(--surface); }
#fd-cards > .fd-prov-row { padding: 0; display: block; position: relative; }
#fd-cards .fd-prov { flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 4px; background: var(--ground-soft); }
#fd-cards > .fd-prov-row > .fd-prov { width: 100%; height: 100%; border-radius: 0; border: none; box-shadow: none; padding: 8px; }
#fd-cards .fd-prov .body { flex: 1; gap: 4px; min-height: 0; overflow: hidden; }
#fd-cards .fd-eyebrow { flex-direction: column; gap: 0; font-size: 10px; }
#fd-cards .fd-text, #fd-cards .fd-prov .text { font-size: var(--text-small); font-weight: 500; line-height: 1.3;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
#fd-cards .fd-chips { display: none; }                          /* Personen und Themen stehen im Eintrag */
#fd-cards .fd-votes { margin-top: auto; }
#fd-cards .fd-votes .ratio { font-size: 10px; }
#fd-cards .fd-prov .status { align-self: flex-start; padding: 1px 6px; border-radius: var(--radius-tag); background: var(--surface);
  font-size: 9px; letter-spacing: .04em; }
#fd-cards .fd-actions { display: contents; }
#fd-cards .fd-votes, #fd-cards .fd-prov .dots { max-width: calc(100% - 36px); }   /* neben dem Stift unten rechts */
#fd-cards > .fd-card { position: relative; }
#fd-cards .fd-edit, #fd-cards .fd-prov-row .fd-edit.compact, #fd-cards .fd-start { position: absolute; right: 4px; bottom: 4px; width: 32px; height: 32px;
  min-height: 0; padding: 0; overflow: hidden; color: transparent; font-size: 0; border-radius: var(--radius-pill); border: 1px solid var(--line);
  background: var(--surface); }
#fd-cards .fd-edit::before { content: "✎"; color: var(--ink-2); font-size: 14px; }
#fd-cards .fd-edit::after, #fd-cards .fd-start::after { content: ""; position: absolute; inset: -6px; }   /* Berührfläche 44 px */
#fd-cards .fd-start { color: var(--blue); }
#fd-cards .fd-start svg { width: 15px; height: 15px; }
#fd-cards > .fd-chat { border: none; background: var(--blue-soft); }

/* Vorschau in der Kachel (Entwurf 13-Handy-Feed): Foto und Video füllen die Kachel (Play oben rechts, Dauer unten links),
   ein Memo zeigt seine Wellenform; Eck-Hinweis oben links („lädt n %“, „angehalten“, „rechnet“), Upload-Balken am Rand unten. */
#fd-cards .has-media, #fd-cards .has-corner { position: relative; }
#fd-cards .fd-thumb { position: absolute; inset: 0; background: #2B313A; }
#fd-cards .fd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
#fd-cards .is-thumb > :not(.fd-thumb, .fd-corner, .fd-bar, .fd-actions, .fd-edit) { visibility: hidden; }
#fd-cards .fd-play { position: absolute; right: 7px; top: 6px; color: #fff; font-size: 12px; line-height: 1; }
#fd-cards .fd-thumb .fd-dur { position: absolute; left: 6px; bottom: 6px; color: #fff; font: 11px var(--font-mono); text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
#fd-cards .fd-wave { position: relative; width: 100%; display: flex; flex-direction: column; justify-content: center; min-height: 44px; }
#fd-cards .fd-bars { display: flex; align-items: center; gap: 2px; height: 34px; }
#fd-cards .fd-bars i { flex: 1 1 0; min-width: 2px; max-width: 5px; border-radius: 2px; background: var(--ink); }
#fd-cards .fd-wave .fd-dur { position: absolute; right: 0; top: -2px; font: 10px var(--font-mono); color: var(--ink-2); }
#fd-cards .has-corner { padding-top: 28px; }
#fd-cards .has-corner .status { display: none; }                 /* der Eck-Hinweis sagt es schon */
#fd-cards .fd-corner { position: absolute; left: 6px; top: 6px; z-index: 2; padding: 1px 7px; border-radius: var(--radius-tag);
  background: var(--surface); font: 600 10px var(--font-body); }
#fd-cards .fd-corner.tone-blue { color: var(--blue); background: var(--blue-soft); }
#fd-cards .fd-corner.tone-muted { color: var(--ink-3); }
#fd-cards .fd-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 3px; background: rgba(0, 0, 0, .15); }
#fd-cards .fd-bar i { display: block; height: 100%; background: var(--blue); }
#fd-cards .fd-bar.paused i { background: var(--ink-4); }
/* Verknüpfte Einträge (feedlib.js group/links): die Bilder und Videos einer Notiz oder Idee als Reihe in ihrer Karte */
.fd-group { display: flex; align-items: center; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.fd-group-tile { position: relative; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--sunk); display: inline-flex; align-items: center; justify-content: center; }
.fd-group-tile img { width: 100%; height: 100%; object-fit: cover; }
.fd-group-tile .fd-play { position: absolute; font-size: 14px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.fd-group-more { font-weight: 600; font-size: 14px; padding: 0 4px; }
.fd-group-label { flex-basis: 100%; font-size: var(--text-hint); color: var(--ink-3); }
.fd-links { display: block; margin-top: 6px; font-size: 12px; }
