/* ===========================================================================
   PHASE 8Q.3 (wsi) -- WHO SAID IT: THE COLLECTION PROMPT, THE QUOTE FORM'S
   REWARD LINE, THE WHO SAID THIS? HEADING, AND THE ADMIN LIFECYCLE PANEL.

   Linked by index.html BEFORE phase8k.css, which stays last. Only tokens that
   exist in app.css's :root are used (--accent, --text, --text-dim, --line,
   --bg-elev-2, --radius-sm, --tap, --warn) -- Phase 8B shipped a sheet that
   read four tokens that did not exist, and it rendered white cards.

   Nothing sets a fixed width: the prompt row WRAPS on a 320-375px phone (the
   button above the reward), so there is no horizontal overflow to find, and
   every control is at least --tap high through .dg76-tap / .btn.
   =========================================================================== */

/* ---- the compact Collection prompt (directive 19) ------------------------ */

.wsi-collect {
  display: grid;
  gap: 0.35rem;
}

/* Beside a weekend round, the prompt is a second card under the guess. */
.dailycard + .wsi-collect {
  margin-top: 0.75rem;
}

.wsi-collect__kicker {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.wsi-collect__status {
  margin: 0;
  color: var(--text-dim);
}

.wsi-collect__status strong {
  color: var(--warn);
  letter-spacing: 0.04em;
}

.wsi-collect__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  margin-top: 0.25rem;
}

.wsi-collect__cta {
  flex: 1 1 12rem;
  min-width: 0;
  text-decoration: none;
}

.wsi-collect__fp {
  margin: 0;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
}

.wsi-collect__done {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.wsi-collect__bank {
  margin: 0.15rem 0 0;
}

/* ---- the round: WHO SAID THIS? (directive 22) ---------------------------- */

.wsi-ask {
  margin: 0.25rem 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

/* ---- #/quotes: what an accepted quote earns ------------------------------ */

.wsi-form__reward {
  margin: 0 0 0.5rem;
  font-weight: 700;
  color: var(--accent);
}

/* iOS zooms into any input under 16px; the quote form's fields never are. */
.dg76-form .field__input {
  font-size: max(16px, 1rem);
}

/* ---- Admin Console: Who Said It lifecycle + quote bank ------------------- */

.wsi-admin__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.3rem;
}

.wsi-admin__mode {
  font-weight: 800;
  letter-spacing: 0.04em;
}

.wsi-admin__scheduled {
  color: var(--warn);
  font-weight: 700;
}

.wsi-admin__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.wsi-admin__item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.wsi-admin__quote {
  margin: 0;
  overflow-wrap: anywhere;
}

.wsi-admin__meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-dim);
  overflow-wrap: anywhere;
}

.wsi-admin__item[data-wsi-status="disabled"],
.wsi-admin__item[data-wsi-status="withdrawn"] {
  opacity: 0.7;
}

.wsi-admin__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.wsi-admin__actions .btn,
.wsi-admin__reopen .btn {
  min-height: var(--tap);
}

.wsi-admin__reopen {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.wsi-admin__reopen .field__input {
  font-size: max(16px, 1rem);
  width: 100%;
  box-sizing: border-box;
}

.wsi-admin__secret {
  border-left: 3px solid var(--warn);
  padding-left: 0.5rem;
}
