/* mjOS · Bridge — Personenregister und Kartei (docs/personen.md), im Stil von Feed und System. */
.personen { display: flex; flex-direction: column; gap: 14px; }
.personen[hidden] { display: none; }
.pe-card { display: flex; flex-direction: column; gap: 14px; }
.pe-card h1 { overflow-wrap: anywhere; }
.pe-list { display: flex; flex-direction: column; gap: 10px; }
.pe-search, .pe-new input, .pe-edit input, .pe-edit textarea { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; 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 */
.pe-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pe-row { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; min-height: 44px; border-radius: var(--r-card);
  border: 1px solid var(--line-1); background: var(--panel); color: var(--text); text-decoration: none; }
.pe-row .name { font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.pe-row .sub { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; color: var(--muted-2); }
.pe-row .sub:empty { display: none; }
.pe-all { color: var(--accent); font-size: 13px; }
.pe-new { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 6px; }
.pe-new button, .pe-actions button, .pe-actions a { min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-3); background: none;
  color: var(--text); font: 500 13px var(--font-body); cursor: pointer; text-decoration: none; display: flex; align-items: center; justify-content: center; }
.pe-new .confirm { border: none; background: var(--accent); color: var(--on-accent); font-weight: 600; }
.pe-new button:disabled { opacity: .45; }
@media (max-width: 420px) { .pe-new { grid-template-columns: minmax(0, 1fr); } }
.pe-info, .pe-edit { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; }
.pe-note { margin: 0; font-size: 14px; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.pe-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.pe-actions .danger { color: var(--danger); }
.pe-field { display: flex; flex-direction: column; gap: 4px; }
.pe-links { display: flex; flex-direction: column; gap: 8px; }
.pe-hint { margin: 0; }
.system .sy-pe-head { display: flex; flex-direction: row; justify-content: space-between; align-items: baseline; margin-top: 8px; }
.sy-pe-head a { color: var(--accent); font-size: 13px; }
.pe-actions:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pe-suggest, .pe-pick { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; }
.pe-suggest-row { display: flex; flex-direction: column; gap: 2px; padding-top: 6px; border-top: 1px solid var(--line-1); }
.pe-suggest-row:first-of-type { border-top: none; padding-top: 0; }
.pe-suggest-row .name { font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.pe-suggest-row .sub { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; color: var(--muted-2); }
.pe-suggest .pe-actions button { min-height: 44px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-3); background: none; color: var(--text); font: 13px var(--font-body); }
.pe-pick select { appearance: auto; }
.pe-pick .confirm { min-height: 44px; border: none; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 600; }
.pe-merged { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pe-merged button { min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-3); background: none; color: var(--text); font: 13px var(--font-body); }

/* Profil (Besitzerauftrag 26.10.2026): hell, Kopf mit Foto oder Initialen, Fakten, Blatt „Profil bearbeiten“ */
.pe-avatar { position: relative; flex: none; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue-strong); border: 1px solid var(--blue-line); font: 600 20px var(--font-body); }
.pe-avatar.big { width: 88px; height: 88px; font-size: 32px; }
.pe-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pe-avatar.has-photo .pe-initials { visibility: hidden; }
.pe-head { display: flex; align-items: center; gap: 16px; }
.pe-head-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pe-head h1 { margin: 0; overflow-wrap: anywhere; }
.pe-role { color: var(--text-2); font-size: 15px; }
.pe-facts { display: flex; flex-direction: column; padding: 4px 16px; }
.pe-fact { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-1); }
.pe-fact:first-child { border-top: none; }
.pe-fact-label { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.pe-fact-value { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 15px; overflow-wrap: anywhere; }
.pe-fact-sub { font-size: 13px; color: var(--muted); }
.pe-tel { color: var(--accent); text-decoration: none; font-weight: 500; min-height: var(--touch); display: inline-flex; align-items: center; }
.pe-actions .confirm { border: none; background: var(--accent); color: var(--on-accent); font-weight: 600; }
.pe-row.has-thumb { flex-direction: row; align-items: center; gap: 12px; }
.pe-row-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pe-thumb { flex: none; width: 48px; height: 48px; border-radius: 8px; overflow: hidden; background: var(--ground); }
.pe-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pe-sheet .sheet-head .save { min-height: var(--touch-min); }
.pe-sheet [hidden] { display: none !important; }
.pe-sheet .stack { overflow-y: auto; max-height: calc(92dvh - 20px); padding-bottom: 8px; }
.pe-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pe-field-label { font-size: var(--text-small); color: var(--muted); }
.pe-input { min-height: 48px; width: 100%; min-width: 0; box-sizing: border-box; padding: 10px 12px; border-radius: var(--r-control);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: 16px var(--font-body); }
textarea.pe-input { resize: vertical; }
.pe-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.pe-pairs { display: flex; flex-direction: column; gap: 6px; }
.pe-pair { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) 44px; gap: 6px; }
.pe-pair-drop { min-height: 44px; border: 1px solid var(--line-strong); border-radius: var(--r-control); background: none; color: var(--muted); font-size: 20px; cursor: pointer; }
.pe-add { align-self: flex-start; min-height: 44px; padding: 0 4px; border: none; background: none; color: var(--accent); font: 500 15px var(--font-body); cursor: pointer; }
.pe-photo { display: flex; align-items: center; gap: 14px; }
.pe-photo-preview.busy { opacity: .5; }
.pe-photo-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.pe-photo-pick { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--r-control); border: 1px solid var(--blue-line);
  background: var(--blue-soft); color: var(--blue-strong); font: 500 14px var(--font-body); cursor: pointer; }
.pe-photo-remove { min-height: 44px; padding: 0; border: none; background: none; color: var(--red); font: 500 14px var(--font-body); cursor: pointer; }
.pe-confirm { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.pe-remove-yes { min-height: 44px; padding: 0 14px; border: none; border-radius: var(--r-control); background: var(--red); color: var(--on-accent); font: 600 14px var(--font-body); cursor: pointer; }
.pe-sheet-error { margin: 0; padding: 10px 12px; border-radius: var(--r-control); background: var(--amber-soft); border: 1px solid var(--amber-line); color: var(--amber-text); font-size: 13px; }

/* Feed: Umschalter Einträge · Personen und die Köpfe (#/feed/personen) */
.fd-views { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: var(--radius-control); background: var(--ground-soft); border: 1px solid var(--line); }
.fd-views a { display: flex; align-items: center; justify-content: center; min-height: var(--touch); border-radius: 9px; color: var(--muted); font: 500 14px var(--font-body); text-decoration: none; }
.fd-views a[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(22, 25, 29, .12); }
.fd-people { display: flex; flex-direction: column; gap: 12px; }
.fd-people[hidden], .fd-cards[hidden] { display: none; }
.pe-heads { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pe-head-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; min-height: 44px; border-radius: var(--r-card);
  border: 1px solid var(--line-1); background: var(--panel); color: var(--text); text-decoration: none; text-align: center; }
.pe-head-tile .name { font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.pe-head-tile .sub { font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.pe-head-tile .sub:empty { display: none; }

/* Geburtstage aus dem Register im Kalender (nur mjOS) */
.ka-event.birthday { background: var(--amber-soft); border: 1px solid var(--amber-line); box-shadow: none; }
.pe-sheet .sheet-head { position: sticky; top: 0; z-index: 1; margin-top: -14px; padding: 14px 0 8px; background: var(--surface); }
.pe-sheet .stack { padding-inline: 2px; outline: none; }
