/* CHEX · Hilfe: Fragezeichen oben, Auswahl Assistent/Fahrer, Chat-Sprechblasen, Themen-Knöpfe. */
/* ---------- Fragezeichen in der Kopfleiste ---------- */
.help-btn {
  position: relative; margin-left: auto; display: grid; place-items: center; flex: none;
  width: 34px; height: 34px; border-radius: 50%; background: var(--fill-2); color: var(--text-2);
  transition: background .2s, color .2s;
}
.help-btn svg { width: 24px; height: 24px; }
.help-btn svg .f { fill: transparent; }
.help-btn:hover, .help-btn.active { color: var(--accent); background: var(--fill); }
.help-btn .dot { top: -4px; left: auto; right: -6px; margin: 0; }
.help-btn + .user-chip { margin-left: 0; }
@media (min-width: 760px) { .help-btn { margin-left: 0; } }

/* ---------- Auswahl ---------- */
.help-option { display: flex; align-items: center; gap: 16px; color: var(--text); transition: transform .2s var(--ease); }
.help-option:active { transform: scale(.98); }
.help-option b { font-size: 18px; }
.help-option small { display: block; margin-top: 4px; color: var(--text-2); font-size: 14px; }
.help-ic { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; background: var(--accent-soft); }
.chev { flex: none; color: var(--text-3); font-size: 26px; line-height: 1; }
.group-row .chev { margin-right: 8px; }
a.group-row { color: var(--text); }
.help-box h3 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin: 26px 4px 12px; }
.help-box .group { background: var(--bg-elev); border: 1px solid var(--card-border); box-shadow: var(--shadow-sm); border-radius: var(--radius); }

/* ---------- Chat ---------- */
.chat { display: flex; flex-direction: column; gap: 8px; margin: 0 0 14px; }
.bubble {
  max-width: min(82%, 560px); padding: 10px 14px; border-radius: 20px; font-size: 16px; line-height: 1.4;
  overflow-wrap: anywhere; animation: pop .35s var(--spring) both;
}
.bubble p { margin: 0; white-space: pre-wrap; }
.bubble small { display: block; margin-top: 4px; font-size: 11.5px; opacity: .7; }
.bubble.theirs { align-self: flex-start; background: var(--bg-elev); border: 1px solid var(--card-border); border-bottom-left-radius: 6px; }
.bubble.mine { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 6px; }
.typing { display: flex; gap: 5px; padding: 14px 16px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); animation: typing 1.2s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.report-btn { display: block; margin-top: 6px; padding: 2px 0; font-size: 12.5px; color: var(--text-3); }
.bubble-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chat-input {
  position: sticky; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 8px); z-index: 5;
  display: flex; align-items: flex-end; gap: 8px; padding: 8px; border-radius: 24px;
  background: var(--material); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border: .5px solid var(--material-border); box-shadow: var(--shadow-sm);
}
.chat-input textarea { flex: 1; min-height: 42px; max-height: 160px; resize: none; padding: 10px 14px; border-radius: 18px; font-size: 16px; }
.chat-input .btn { flex: none; min-height: 42px; }
@media (min-width: 760px) { .chat-input { bottom: 16px; } }
.help-topics-box { margin: 0 4px 16px; }
.help-topics-box summary { cursor: pointer; color: var(--accent); font-size: 15px; font-weight: 600; padding: 4px 0; }
.help-topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.chip {
  padding: 7px 13px; border: 0; border-radius: 980px; background: var(--fill-2); color: var(--text);
  font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .2s;
}
.chip:hover { background: var(--fill); }
.chip:active { transform: scale(.96); }
.help-foot { margin: 0 4px 16px; }

/* ---------- Fahrer: Liste der Unterhaltungen ---------- */
.support-row { display: flex; align-items: center; gap: 12px; color: var(--text); }
.support-head { display: flex; align-items: center; gap: 14px; }
.support-head h1 { margin: 0; }
.support-head p { margin: 2px 0 0; }
/* Hilfe-Seiten auf breiten Bildschirmen nicht in Spalten teilen */
.main[data-view="hilfe"] { max-width: 760px; }
.main[data-view="admin"]:has(.chat, #supportList) { columns: auto; max-width: 900px; }
.help-ic.small { width: 36px; height: 36px; border-radius: 50%; font-size: 18px; }
