/*
 * Phase 8R.2 -- SECOND CHANCE: the administrator's three-mode card
 * (admin-second-chance.js) and the author's AUTHOR RECOVERY card on the Two
 * Truths screen (two-truths-recovery.js). Mobile-first: everything wraps,
 * nothing is wider than its card at 320 px, every control is at least the
 * tap height, and a disabled choice says why in words (never colour alone).
 */

.scx-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.scx-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  min-width: 0;
}

.scx-group {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin: 10px 0 0;
  padding: 8px 10px 10px;
  min-width: 0;
}

.scx-panel .scx-group {
  margin-top: 0;
}

.scx-group__legend {
  font-size: 0.8rem;
  color: var(--text-dim);
  padding: 0 4px;
  overflow-wrap: anywhere;
}

.scx-choice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  min-height: var(--tap);
  padding: 4px 0;
  cursor: pointer;
  overflow-wrap: anywhere;
  min-width: 0;
}

.scx-choice input {
  width: 22px;
  height: 22px;
  margin: 0;
  flex: 0 0 auto;
}

.scx-choice__text {
  flex: 1 1 0;
  min-width: 0;
  font-size: 0.9rem;
}

.scx-choice__note {
  flex: 1 1 100%;
  font-size: 0.8rem;
  color: var(--text-faint);
  padding-left: 32px;
}

.scx-choice--off {
  cursor: not-allowed;
  color: var(--text-faint);
}

.scx-field {
  flex: 1 1 auto;
}

.scx-notes {
  list-style: disc;
  margin: 0;
  padding-left: 18px;
}

.scx-notes__item {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin: 2px 0;
  overflow-wrap: anywhere;
}

.scx-why summary {
  min-height: var(--tap);
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.85rem;
}

.scx-empty {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* ---- the players' bonus card: the AUTHOR RECOVERY link ------------------- */

.cix-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  margin-top: 8px;
  max-width: 100%;
  text-align: center;
  overflow-wrap: anywhere;
}

/* ---- the author's card on the Two Truths screen -------------------------- */

.ttr-host {
  margin-bottom: 12px;
  min-width: 0;
}

.ttr-card {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ttr-form .tt-form__input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.ttr-confirm {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.ttr-confirm .btn,
.ttr-form > .btn {
  min-height: var(--tap);
  max-width: 100%;
  white-space: normal;
}
