/* ec-profile-sheet.css — §PROFILE-SHEET-2026-10-26 (Owner D1–D3)
 *
 * 1. Profil-Vorschau (ec-profile-sheet.js): Glas-Sheet im Cyber-Stil, liegt UEBER dem
 *    Gruppen-Modal (Desktop .modal-overlay 9999 → 10000; Handy-Modalebene 2147482600 →
 *    2147482650) und UNTER der Lightbox (2147483000) und den Toasts (2147483200).
 * 2. Mitgliederzeilen in „Gruppe verwalten“: Avatar · Name/@Name/Rolle · [⋯], Menue darunter.
 * 3. Chat-Kopf eines 1:1 als Link markiert.
 * Doppelte IDs: Alt-Regeln setzen .modal button / .modal img breit mit ID-Spezifitaet.
 */

/* ── 1. Sheet ──────────────────────────────────────────────────────────── */
html body #ec-profile-sheet.modal-overlay { z-index: 10000 !important; }
html body.ec-mobile-shell-active #ec-profile-sheet.modal-overlay { z-index: 2147482650 !important; }
html body #ec-profile-sheet#ec-profile-sheet .ec-ps {
  position: relative;
  max-width: 420px;
  width: 100%;
  padding: 18px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  background: linear-gradient(180deg, rgba(23, 23, 23, .92), rgba(11, 11, 11, .94));
  border: 1px solid rgba(114, 114, 114, .32);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  color: var(--text, #f1f1f1);
  box-sizing: border-box;
  max-height: 92vh;
  overflow-y: auto;
}
html body #ec-profile-sheet#ec-profile-sheet .ec-ps-close {
  position: absolute; top: 10px; right: 10px;
  width: 40px; height: 40px; min-width: 40px; padding: 0;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06); color: inherit; font-size: 22px; line-height: 1; cursor: pointer;
}
html body #ec-profile-sheet#ec-profile-sheet .ec-ps-avatar {
  display: grid; place-items: center;
  width: 112px; height: 112px; min-width: 0; padding: 0; margin: 8px auto 12px;
  border-radius: 50%; overflow: hidden; cursor: zoom-in;
  border: 2px solid rgba(114, 114, 114, .65);
  box-shadow: 0 0 0 6px rgba(85, 85, 85, .14), 0 10px 30px rgba(85, 85, 85, .35);
  background: linear-gradient(135deg, #555555, #727272);
  color: #fff; font-size: 42px; font-weight: 700;
}
html body #ec-profile-sheet#ec-profile-sheet .ec-ps-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; max-width: none; }
html body #ec-profile-sheet#ec-profile-sheet .ec-ps-name { margin: 0; font-size: 20px; font-weight: 700; overflow-wrap: anywhere; }
html body #ec-profile-sheet#ec-profile-sheet .ec-ps-handle { margin-top: 2px; font-family: var(--font-mono, monospace); font-size: 14px; color: #bdbdbd; overflow-wrap: anywhere; }
html body #ec-profile-sheet#ec-profile-sheet .ec-ps-handle--none { color: var(--text2, rgba(236, 236, 236, .6)); font-family: inherit; font-style: italic; }
html body #ec-profile-sheet#ec-profile-sheet .ec-ps-self { margin-top: 8px; font-size: 13px; color: var(--text2, rgba(236, 236, 236, .7)); }
html body #ec-profile-sheet#ec-profile-sheet .ec-ps-bio { margin: 12px 0 0; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text, #f1f1f1); }
html body #ec-profile-sheet#ec-profile-sheet .ec-ps-sec {
  margin: 16px 0 0; padding: 12px 14px; border-radius: 14px; text-align: left;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08);
}
html body #ec-profile-sheet#ec-profile-sheet .ec-ps-sec--ok { border-color: rgba(164, 164, 164, .35); background: rgba(164, 164, 164, .07); }
html body #ec-profile-sheet#ec-profile-sheet .ec-ps-sec--tofu { border-color: rgba(114, 114, 114, .3); }
html body #ec-profile-sheet#ec-profile-sheet .ec-ps-sec-head { display: flex; align-items: center; gap: 8px; font-size: 14px; }
html body #ec-profile-sheet#ec-profile-sheet .ec-ps-sec small { display: block; margin-top: 8px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--text2, rgba(236, 236, 236, .6)); }
html body #ec-profile-sheet#ec-profile-sheet .ec-ps-fp { display: block; margin-top: 4px; font-family: var(--font-mono, monospace); font-size: 13px; letter-spacing: .06em; word-break: break-word; color: #f0f0f0; }
html body #ec-profile-sheet#ec-profile-sheet .ec-ps-sec p { margin: 6px 0 0; font-size: 12px; line-height: 1.45; color: var(--text2, rgba(236, 236, 236, .7)); }
html body #ec-profile-sheet#ec-profile-sheet .ec-ps-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
html body #ec-profile-sheet#ec-profile-sheet .ec-ps-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 46px; padding: 0 14px; border-radius: 14px;
  border: 1px solid rgba(114, 114, 114, .35); background: rgba(85, 85, 85, .12);
  color: var(--text, #f1f1f1); font-size: 15px; font-weight: 600; cursor: pointer;
}
html body #ec-profile-sheet#ec-profile-sheet .ec-ps-btn--primary { background: linear-gradient(135deg, #555555, #555555); border-color: transparent; color: #fff; }
html body #ec-profile-sheet#ec-profile-sheet .ec-ps-btn--danger { background: rgba(231, 76, 60, .08); border-color: rgba(231, 76, 60, .35); color: #fca5a5; }
html body #ec-profile-sheet#ec-profile-sheet .ec-ps-btn:disabled { opacity: .55; cursor: default; }
html body #ec-profile-sheet#ec-profile-sheet .ec-ps-more {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; min-height: 40px; padding: 0 10px;
  border: 0; background: transparent; color: #bdbdbd; font-size: 14px; cursor: pointer;
}

/* ── 2. Mitgliederzeilen ───────────────────────────────────────────────── */
html body #group-settings-modal#group-settings-modal .gs-mlist {
  display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; padding: 6px;
  background: var(--bg2, rgba(255, 255, 255, .03)); border: 1px solid var(--border, rgba(255, 255, 255, .08)); border-radius: 14px;
}
html body #group-settings-modal#group-settings-modal .gs-mrow { display: flex; align-items: center; gap: 6px; border-radius: 12px; }
html body #group-settings-modal#group-settings-modal .gs-mrow[hidden] { display: none; }
html body #group-settings-modal#group-settings-modal .gs-mrow-main {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 6px 8px; border: 0; border-radius: 12px; background: transparent;
  color: inherit; text-align: left; cursor: pointer; width: auto;
}
html body #group-settings-modal#group-settings-modal .gs-mrow-main:hover,
html body #group-settings-modal#group-settings-modal .gs-mrow-main:focus-visible { background: rgba(85, 85, 85, .1); }
html body #group-settings-modal#group-settings-modal .gs-mrow-av {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; background: linear-gradient(135deg, #555555, #afafaf);
  color: #fff; font-weight: 700; font-size: 16px;
}
html body #group-settings-modal#group-settings-modal .gs-mrow-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
html body #group-settings-modal#group-settings-modal .gs-mrow-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
html body #group-settings-modal#group-settings-modal .gs-mrow-txt strong { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body #group-settings-modal#group-settings-modal .gs-mrow-txt small { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--text2, rgba(236, 236, 236, .65)); }
html body #group-settings-modal#group-settings-modal .gs-mrow-handle { font-family: var(--font-mono, monospace); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
html body #group-settings-modal#group-settings-modal .gs-role {
  display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 999px;
  background: rgba(201, 201, 201, .14); border: 1px solid rgba(201, 201, 201, .4); color: #dbdbdb; font-size: 11px; font-weight: 700;
}
html body #group-settings-modal#group-settings-modal .gs-role--owner { background: rgba(201, 201, 201, .22); }
html body #group-settings-modal#group-settings-modal .gs-mrow-more {
  flex: 0 0 44px; width: 44px; height: 44px; min-width: 44px; padding: 0; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04);
  color: inherit; font-size: 20px; line-height: 1; cursor: pointer;
}
html body #group-settings-modal#group-settings-modal .gs-mrow-more[aria-expanded="true"] { background: rgba(85, 85, 85, .18); border-color: rgba(114, 114, 114, .45); }
html body #group-settings-modal#group-settings-modal .gs-mrow-menu {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px 60px; padding: 8px;
  border-radius: 12px; background: rgba(85, 85, 85, .08); border: 1px solid rgba(114, 114, 114, .22);
}
html body #group-settings-modal#group-settings-modal .gs-mrow-menu[hidden] { display: none; }
html body #group-settings-modal#group-settings-modal .gs-mrow-menu button {
  flex: 1 1 auto; min-height: 40px; padding: 0 12px; border-radius: 10px; width: auto;
  border: 1px solid rgba(114, 114, 114, .3); background: rgba(85, 85, 85, .12);
  color: var(--text, #f1f1f1); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
html body #group-settings-modal#group-settings-modal .gs-mrow-menu .gs-mrow-danger { border-color: rgba(231, 76, 60, .4); background: rgba(231, 76, 60, .1); color: #fca5a5; }
html body #group-settings-modal#group-settings-modal .gs-mlist-all {
  display: block; width: 100%; min-height: 40px; margin: 0 0 6px; border: 0; border-radius: 10px;
  background: transparent; color: #bdbdbd; font-size: 13px; cursor: pointer;
}
@media (max-width: 380px) {
  html body #group-settings-modal#group-settings-modal .gs-mrow-menu { margin-left: 0; }
}

/* ── 3. Chat-Kopf im 1:1 ───────────────────────────────────────────────── */
.ec-ps-head-link { cursor: pointer; }
.ec-ps-head-link:focus-visible { outline: 2px solid rgba(114, 114, 114, .7); outline-offset: 2px; border-radius: 8px; }
