/* ── Owner: testers' accounts (TASK-026, app_accounts.js) ───────────────────
 * One compact row per person: email, a status that says why they may not get
 * in, the last sign-in, and the action that helps on the right. A temporary
 * password opens right under its row with copy buttons.
 */
.acc-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.acc-card-head .settings-group-title { margin-bottom: 0; }

.acc-add { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; }
.acc-add input { flex: 1 1 240px; min-width: 0; max-width: 420px; }

.acc-result { font-size: 13.5px; color: var(--text-sub); min-height: 0; margin: 6px 0 0; }
.acc-result:empty { display: none; }
.acc-result.ok { color: var(--green); }
.acc-result.err { color: var(--red); }

.acc-summary { font-size: 13px; color: var(--text-muted); margin: 14px 0 6px; }
.acc-summary:empty { display: none; }

.acc-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.acc-list:empty { display: none; }
.acc-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  padding: 12px 14px; border-top: 1px solid var(--border);
}
.acc-row:first-child { border-top: 0; }
.acc-main { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.acc-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.acc-email { font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.acc-badge {
  font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: var(--radius-pill);
  background: var(--accent-soft); color: var(--accent);
}
.acc-status { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-sub); }
.acc-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--text-muted); }
.acc-status.ok .acc-dot { background: var(--green); }
.acc-status.warn .acc-dot { background: var(--yellow); }
.acc-status.err .acc-dot { background: var(--red); }
.acc-status.err { color: var(--text); font-weight: 550; }
.acc-meta { font-size: 12.5px; color: var(--text-muted); }

.acc-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.acc-confirm { font-size: 13px; color: var(--text-sub); }

.acc-issued {
  flex: 1 1 100%;
  margin: 4px 0 2px; padding: 12px 14px;
  border: 1px solid var(--accent); border-radius: var(--radius-md); background: var(--accent-soft);
}
#owner-accounts-issued .acc-issued { margin: 10px 0 0; }
.acc-issued-title { font-size: 13.5px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.acc-issued-code {
  display: inline-block; margin: 8px 0 6px; padding: 6px 12px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 20px; letter-spacing: 0.06em;
  background: var(--bg2); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  user-select: all;
}
.acc-issued-hint { font-size: 13px; color: var(--text-sub); margin: 0 0 10px; }
.acc-issued-actions { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 560px) {
  .acc-actions { justify-content: flex-start; }
  .acc-row { padding: 12px; }
}

/* ── Participant card (TASK-027): a sheet on the right, full width on phones ── */
.acc-open {
  background: none; border: 0; padding: 0; font: inherit; font-weight: 600; text-align: left;
  color: var(--text); cursor: pointer; text-decoration: underline; text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
}
.acc-open:hover { color: var(--accent); text-decoration-color: currentColor; }
.acc-open:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 4px; }
.acc-row { cursor: pointer; }
.acc-row:hover { background: var(--surface-hover); }
.acc-row.active { background: var(--accent-soft); }

.acc-sheet-scrim { display: none; }
body.acc-sheet-open .acc-sheet-scrim {
  display: block; position: fixed; inset: 0; z-index: 940; background: rgba(10, 14, 22, 0.45);
}
body.acc-sheet-open { overflow: hidden; }
.acc-sheet {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 950;
  width: min(440px, 100vw); display: flex; flex-direction: column;
  background: var(--bg2); color: var(--text);
  border-left: 1px solid var(--border); box-shadow: var(--shadow-lg);
  animation: acc-sheet-in 0.18s ease-out;
}
.acc-sheet[hidden] { display: none; }
@keyframes acc-sheet-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .acc-sheet { animation: none; } }

.acc-sheet-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 16px 16px 12px 20px; border-bottom: 1px solid var(--border);
  padding-top: max(16px, env(safe-area-inset-top));
}
.acc-sheet-titlebox { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.acc-sheet-title { font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.acc-sheet-sub { font-size: 12.5px; color: var(--text-muted); }
.acc-sheet-close { flex: none; min-width: 36px; }
.acc-sheet-body {
  flex: 1; overflow-y: auto; padding: 12px 20px 24px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}
.acc-sheet-status { padding: 4px 0 8px; }
.acc-sheet-status .acc-status { font-size: 14px; }
.acc-sheet-section { padding: 14px 0; border-top: 1px solid var(--border); }
.acc-sheet-section h3 { font-size: 15px; font-weight: 650; margin: 0 0 6px; }
.acc-sheet-hint { font-size: 13px; color: var(--text-muted); margin: 0 0 10px; line-height: 1.45; }
.acc-sheet-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.acc-sheet-section .acc-confirm { margin: 0 0 10px; display: block; }
.acc-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 13.5px; }
.acc-dl dt { color: var(--text-muted); }
.acc-dl dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.acc-sheet .acc-issued { margin: 0; }

.acc-setpw { display: flex; flex-direction: column; gap: 10px; }
.acc-setpw input[type="text"] { max-width: 100%; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.acc-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-sub); cursor: pointer; }
.acc-danger { color: var(--red); }
