/* ---------- Help, reports, invite codes ---------- */

.toast { z-index: 50; width: max-content; } /* above the Settings sheets, below the photo viewer */

.row-text { min-width: 0; }
.row-text > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row > span.row-end { flex: none; }
.row-off { color: var(--text-3); cursor: default; }
.row-off:hover { background: none; }
.row-off::after { display: none; }

.plan-used.paused { padding: 2px 10px; border-radius: 999px; background: #fbe9e7; color: var(--error); font-weight: 500; }

.chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--muted);
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
}
.chip-ok { background: #e7f3ec; color: var(--ok); }
.chip-wait { background: #fdf1dc; color: #95560a; }
.chip-bad { background: #fbe9e7; color: var(--error); }
.chip-info { background: #e6effd; color: #1f5fc7; }
.chip-role { background: #efeafb; color: #5b3fb3; }

.count-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #e5484d;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-grid;
  place-items: center;
}
.row .chip + .count-badge { margin-left: -8px; }

/* Textareas that sit inside a white group, like the fields above them */
.group-textarea {
  display: block;
  width: 100%;
  min-height: 120px;
  padding: 18px 20px;
  border: 0;
  outline: 0;
  resize: vertical;
  background: transparent;
  font: inherit;
  font-size: 1.0625rem;
  line-height: 1.45;
  color: var(--text);
}
.group-textarea::placeholder { color: var(--text-3); }
.group-textarea.boxed { min-height: 84px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: #fff; font-size: 1rem; }
.group-textarea.boxed:focus { border-color: var(--text-2); }
.form-error { padding: 0 22px; margin-top: -10px; font-size: 0.9375rem; color: var(--error); }

/* List items inside a group (reports, notes, codes, posts, log entries) */
.gitem {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 20px;
  overflow-wrap: anywhere;
  color: var(--text);
  text-decoration: none;
}
.gitem + .gitem::before, .rep + .rep::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: var(--border);
}
a.gitem:hover { background: #fafafa; }
.gitem p { line-height: 1.45; }
.gitem small { font-size: 0.8125rem; color: var(--text-2); }
.gitem-top { display: flex; align-items: center; gap: 10px; }
.gitem-top strong { flex: 1; min-width: 0; font-weight: 600; }
.gitem.inline { flex-direction: row; align-items: center; gap: 14px; }
.gitem-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.gitem.faded .gitem-main, .gitem.faded .thumb { opacity: 0.5; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }

.faq { position: relative; }
.faq + .faq::before { content: ""; position: absolute; top: 0; left: 20px; right: 20px; height: 1px; background: var(--border); }
.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 14px 20px;
  font-size: 1.0625rem;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg);
  flex: none;
  margin: -4px 4px 0 0;
  transition: transform 0.2s;
}
.faq[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq p { padding: 0 20px 18px; font-size: 0.9375rem; line-height: 1.5; color: var(--text-2); }
.faq a { color: var(--accent); text-decoration: none; }
