/* mjOS · Bridge — Heute (HE-1 bis HE-6), Eingabeblatt, Aufnahme-Overlay und Hinweis, nach Bridge-Heute.dc.html. */
.heute { display: flex; flex-direction: column; gap: 16px; }
.heute[hidden], #view-stub[hidden] { display: none; }
.eyebrow.iris { color: var(--ink-3); }
.attention { color: var(--attention); }
.he-title { display: flex; flex-direction: column; gap: 4px; }

/* H1 Heute erfasst: eine Karte mit Zeilen; rechts Stufe und I · Z · D */
.heute { padding-bottom: 84px; }                       /* Platz für die Erfassen-Leiste */
.he-list { display: flex; flex-direction: column; gap: 8px; }
.he-list-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px; }
.he-list-head .eyebrow { font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--ink-3); }
.he-list-head a { font-size: 13px; text-decoration: none; }
.he-list ul { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.he-list li + li { border-top: 1px solid var(--line-soft); }
.he-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; color: var(--ink); text-decoration: none; min-height: var(--touch); }
a.he-row:hover { background: var(--ground-soft); }
.he-thumb { width: 48px; height: 48px; flex: none; border-radius: 8px; background: var(--ground); color: var(--ink-2); display: flex; align-items: center; justify-content: center; }
.he-thumb.kind-video { background: var(--ink-2); color: var(--surface); }
.he-thumb svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.he-thumb.kind-video svg { fill: currentColor; stroke: none; width: 14px; height: 14px; }
.he-row .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.he-row .title { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.he-row .meta { font-size: 12px; color: var(--ink-3); }
.he-row .upload { font-size: 11px; color: var(--ink-2); }
.he-bar { display: block; height: 5px; margin-top: 3px; border-radius: var(--radius-pill); background: var(--line-soft); overflow: hidden; }
.he-bar span { display: block; height: 5px; width: 35%; border-radius: var(--radius-pill); background: var(--blue); animation: he-load 1.4s ease-in-out infinite; }
.he-bar.paused span { width: 100%; background: var(--ink-4); animation: none; }   /* angehalten · wartet auf Netz */
.he-bar.determinate span { animation: none; transition: width var(--dur-slow) var(--ease-out); }            /* Relay → Iris in Prozent (Breite aus heute.js) */
.he-bar.danger span { width: 100%; background: var(--red); animation: none; }
@keyframes he-load { 0% { transform: translateX(-100%); } 100% { transform: translateX(290%); } }
@media (prefers-reduced-motion: reduce) { .he-bar span { animation: none; width: 100%; opacity: .6; } }
.he-row .side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
/* Stufe: Eingang grau, Aufbereitung blau (läuft), Prüfen Bernstein (braucht deinen Blick), Archiv grün */
.he-stage { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 5px; background: var(--ground); color: var(--ink-2); }
.he-stage.stage-aufbereitung { background: var(--blue-soft); color: var(--blue-strong); }
.he-stage.stage-pruefen { background: var(--amber-soft); color: var(--amber-text); }
.he-stage.stage-archiv { background: var(--green-soft); color: var(--green); }
.he-passes { display: flex; gap: 3px; }
.he-passes .dot { width: 14px; height: 14px; box-sizing: border-box; border-radius: 50%; }
.he-passes .dot.done { background: var(--ink); }
.he-passes .dot.run { border: 2px solid var(--blue); background: var(--blue-soft); }
.he-passes .dot.wait { border: 1.5px dashed var(--ink-4); }
.he-passes .dot.na { border: 1px solid var(--line); background: var(--ground); }
.he-passes .dot.fail { background: var(--red); }
.he-passes .dot.redo { border: 2px solid var(--blue); color: var(--blue-strong); font: 600 10px/1 var(--font-sans); display: flex; align-items: center; justify-content: center; }
/* Farbe heisst Zustand: Bernstein braucht deinen Blick, Blau läuft, Tinte/Grau ist ruhig, Rot fehlgeschlagen */
.tone-attention { color: var(--amber-text); } .tone-iris { color: var(--ink-2); } .tone-accent { color: var(--blue); }
.tone-danger { color: var(--danger); } .tone-muted { color: var(--muted-2); } .tone-paused { color: var(--ink-2); } .tone-run { color: var(--ink-2); }

/* Erfassen-Leiste: fest über der Navigation (84 px) und dem Chat-Kreis, Notiz-Feld, Foto, Video, Memo als schwarzer Kreis */
.he-capture { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 5;
  width: 100%; max-width: 480px; padding: 10px var(--gutter) 38px; background: color-mix(in srgb, var(--surface) 94%, transparent); border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px; }
.he-capture button { cursor: pointer; color: var(--ink); }
.he-field { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border-radius: 12px; background: var(--ground); border: 1px solid var(--line);
  color: var(--ink-3) !important; font: 15px var(--font-body); text-align: left; }
.he-square { width: 48px; height: 48px; flex: none; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); display: flex; align-items: center; justify-content: center; }
.he-mic { width: 60px; height: 60px; flex: none; border-radius: 50%; border: 0; background: var(--ink); color: var(--surface) !important; display: flex; align-items: center; justify-content: center; }
.he-capture svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.he-mic svg { width: 24px; height: 24px; stroke-width: 2; }
body[data-detail="1"] .he-capture { display: none; }

/* Eingabeblatt (compose.js) */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sheet { width: min(100%, 480px); max-width: 100%; max-height: 92dvh;   /* max-width: sonst lässt der Browser beim dialog seitlich je 1em + 3px frei */
  margin: auto auto 0; padding: 0 var(--gutter) calc(20px + env(safe-area-inset-bottom));
  border: 1px solid var(--line); border-bottom: none; border-radius: 20px 20px 0 0; background: var(--surface); color: var(--text); box-shadow: var(--shadow-pop); }
.sheet::backdrop { background: var(--scrim); }
/* Blätter (Erfassen, Termin, Profil) fahren von unten herein, das Abdunkeln blendet ein; einmal beim Öffnen */
.sheet[open] { animation: mj-sheet-in var(--dur-slow) var(--ease-out); }
.sheet[open]::backdrop { animation: mj-fade-in var(--dur) var(--ease-out); }
@keyframes mj-sheet-in { from { transform: translateY(32px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes mj-fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sheet[open], .sheet[open]::backdrop { animation: none; } }
.sheet .stack { display: flex; flex-direction: column; gap: 14px; padding-top: 14px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sheet-head strong { font-size: var(--text-head); font-weight: 600; }
.quiet { min-height: var(--touch); padding: 0 6px; border: none; background: none; color: var(--muted); font: 500 15px var(--font-body); cursor: pointer; }
.save { min-height: 44px; padding: 0 16px; border: none; border-radius: var(--r-control); background: var(--accent); color: var(--on-accent); font: 600 15px var(--font-body); cursor: pointer; }
.save:disabled { opacity: .4; cursor: not-allowed; }
.seg { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 6px; }   /* so viele Spalten wie Ablageorte */
.seg button { min-height: 52px; border-radius: var(--r-control); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: 500 14px var(--font-body); cursor: pointer; }
.seg button small { font-family: var(--font-mono); font-size: 10px; color: var(--muted-2); }
.seg button[aria-checked="true"] { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-strong); }
#compose-text { min-height: 140px; resize: vertical; padding: 12px; border-radius: var(--r-control); border: 1px solid var(--line-3);
  background: var(--surface); color: var(--text); font: 16px/1.45 var(--font-body); }
#compose-text::placeholder { color: var(--ink-3); }
#compose-text:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.photo-box { position: relative; }
.photo-box[hidden] { display: none; }
.photo-box img { width: 100%; max-height: 220px; object-fit: cover; border-radius: var(--r-control); }
.photo-box .remove { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 22px; border: none; background: rgba(22, 25, 29, .7); color: #FFFFFF; font-size: 20px; cursor: pointer; }
.detect { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.detect:empty { display: none; }
.tagrow { display: flex; flex-direction: column; gap: 8px; }
.tagchips { display: flex; flex-wrap: wrap; gap: 6px; }
.tagchip, .chipbtn { min-height: var(--touch); padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); font: 500 var(--text-small) var(--font-body); cursor: pointer; }
.tagchip[aria-pressed="true"] { border-color: var(--blue-line); background: var(--blue-soft); color: var(--blue-strong); }
.newtag { min-height: var(--touch); width: 120px; padding: 0 12px; border-radius: var(--radius-pill); border: 1px dashed var(--ink-4); background: none; color: var(--text); font: 13px var(--font-body); }
.tools { display: flex; gap: 8px; flex-wrap: wrap; }
.foot { font-size: 12px; color: var(--muted); }

/* Aufnahme-Overlay (record.js) */
#live { position: fixed; inset: 0; z-index: 30; background: var(--surface); display: flex; flex-direction: column; align-items: center;
  padding: calc(env(safe-area-inset-top) + 64px) 24px calc(env(safe-area-inset-bottom) + 40px); overflow: hidden; }
#live[hidden] { display: none; }
#live .state { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--attention); }
#live .state i { width: 8px; height: 8px; border-radius: 4px; background: var(--attention); animation: breathe 1.4s ease-in-out infinite; }
#live .timer { margin-top: 36px; font-family: var(--font-mono); font-size: 88px; font-weight: 500; line-height: .9; font-variant-numeric: tabular-nums; }
#live .sub { margin-top: 10px; font-size: 14px; color: var(--muted); }
#live #wave { display: block; margin-top: 40px; width: 100%; max-width: 420px; height: 96px; color: var(--voice-iris); }
#live #wave[hidden], #live video[hidden], #live .camera[hidden], #live .timer[hidden], #live .quiet[hidden] { display: none; }
#live video { margin-top: 24px; width: 100%; max-width: 420px; max-height: 38vh; border-radius: var(--r-card); background: #000; }
#live video.mirror { transform: scaleX(-1); }
#live .spacer { flex: 1; }
#live .stop { width: 88px; height: 88px; border-radius: 44px; border: none; cursor: pointer; background: var(--ink); display: flex; align-items: center; justify-content: center; }
#live .stop i { width: 28px; height: 28px; border-radius: 7px; background: var(--red); display: block; }
#live .camera { display: flex; gap: 4px; margin-top: 16px; padding: 4px; border-radius: var(--radius-pill); background: var(--ground); }
#live .camera button { height: var(--touch); min-width: 96px; padding: 0 16px; border: none; border-radius: var(--radius-pill); background: transparent; color: var(--muted); font: 500 14px var(--font-body); cursor: pointer; }
#live .camera button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(22, 25, 29, .12); }
#live .quiet { position: absolute; top: calc(env(safe-area-inset-top) + 16px); right: 16px; }
#live.ready video { max-height: 52vh; }
#live.ready .state { color: var(--blue); }
#live.ready .state i { background: var(--blue); animation: none; }
#live.ready .stop i { width: 36px; height: 36px; border-radius: 50%; }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { #live .state i { animation: none; } }
.he-capture button:hover { border-color: var(--ink-4); }
.he-capture button.primary:hover { background: var(--ink); }

/* Hinweis (Core.toast): oben rechts, web/toast.css */
/* Mehrere Bilder und Videos im Erfassen (compose.js, medien.js): die weiteren als Reihe unter der Vorschau */
.photo-more { display: flex; gap: 8px; overflow-x: auto; }
.photo-more[hidden] { display: none; }
.photo-tile { position: relative; flex: 0 0 72px; height: 72px; border-radius: var(--r-control); background: var(--sunk); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.photo-tile-name { font-size: 11px; padding: 4px; text-align: center; overflow: hidden; }
.photo-tile .remove { position: absolute; top: 2px; right: 2px; width: 28px; height: 28px; border-radius: 14px; border: none; background: rgba(22, 25, 29, .7); color: #FFFFFF; font-size: 16px; cursor: pointer; }
.photo-tile .remove::after { content: ""; position: absolute; inset: -8px; }   /* Berührfläche 44 px */
.photo-tile { overflow: visible; }
.photo-tile img { border-radius: inherit; }
