/* Three small pieces that live in the planner and are all about people outside it:
     . the Overview prompt and dialog for reminding the parties that have not replied
     . the "Change email" card for Settings
     . the live requirements list on the choose-a-new-password screen
   plus the email preview both the dialog and the composer use. Tokens only: nothing here is a
   colour of its own, so light, dark and all six accents come for free, and test/a11y-static.mjs
   checks this file as it does the others. */

/* ---- the prompt on the Overview ---- */

.remind-banner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-16) var(--space-24);
  background: var(--accent-soft); color: var(--accent-dark); border-radius: var(--radius-card);
  padding: var(--space-16) var(--space-24); margin-bottom: var(--space-24);
}
.remind-banner-text { display: flex; align-items: center; gap: var(--space-16); min-width: 0; flex: 1 1 260px; line-height: 1.45; }
.remind-banner-text strong { font-weight: 700; }
.remind-banner-actions { display: flex; gap: var(--space-8); flex-wrap: wrap; }

/* ---- the dialog ---- */

.modal-box.remind { max-width: 680px; }
.remind-lead { margin: 0 0 var(--space-16); color: var(--muted); font-size: 14px; line-height: 1.5; }
.remind-list { list-style: none; margin: 0 0 var(--space-16); padding: 0; max-height: 340px; overflow-y: auto; }
.remind-list li { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8) var(--space-16); flex-wrap: wrap; border-top: 1px solid var(--border); }
.remind-list li:first-child { border-top: 0; }
.remind-pick { display: flex; align-items: center; gap: var(--space-16); flex: 1 1 240px; min-width: 0; min-height: 52px; padding: var(--space-4) 0; cursor: pointer; }
.remind-pick input { width: 22px; height: 22px; flex: none; accent-color: var(--accent); }
.remind-pick.off { cursor: default; }
.remind-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.remind-who b { font-weight: 700; overflow-wrap: anywhere; }
.remind-who span { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.remind-when { font-size: 13px; color: var(--muted); }
.remind-options { margin: 0 0 var(--space-16); }
.remind-now { margin: 0 0 var(--space-16); font-size: 14px; color: var(--muted); }
.remind-result { margin: 0 0 var(--space-16); padding: var(--space-16) var(--space-16); border-radius: var(--radius); background: var(--surface); font-size: 14px; line-height: 1.55; }
.remind-result strong { display: block; margin-bottom: var(--space-4); }
.remind-result ul { margin: var(--space-8) 0 0; padding-left: var(--space-24); }
.remind-result.bad { background: var(--error-soft); color: var(--error); }
.remind-peek { margin: 0 0 var(--space-16); }
.remind-peek > summary { cursor: pointer; font-weight: 700; font-size: 14px; min-height: 44px; display: flex; align-items: center; }
.modal-foot .remind-test { margin-right: auto; }

/* ---- an email, shown as it will arrive ---- */

.mail-preview { border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; background: var(--card); }
.mail-preview-head { padding: var(--space-16) var(--space-16); background: var(--surface); border-bottom: 1px solid var(--border); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.mail-preview-head b { font-weight: 700; margin-right: var(--space-8); }
.mail-preview iframe { display: block; width: 100%; border: 0; min-height: 320px; background: transparent; }

/* ---- the Change email card ---- */

.change-email .row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8) var(--space-16); flex-wrap: wrap; }
.change-email .row b { display: block; }
.change-email-who { display: flex; align-items: center; gap: var(--space-16); min-width: 0; }
.change-email .row span { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.change-email-form { margin-top: var(--space-24); padding: var(--space-24); border-radius: var(--radius-card); background: var(--surface); display: flex; flex-direction: column; gap: var(--space-16); }
.change-email-form .field { margin: 0; }
.change-email-form p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.change-email-note { padding: var(--space-16) var(--space-16); border-radius: var(--radius); background: var(--surface); font-size: 14px; line-height: 1.55; }
.change-email-note.bad { background: var(--error-soft); color: var(--error); }

/* ---- the requirements list under a new password ---- */

.auth-reqs { list-style: none; margin: 0 0 var(--space-16); padding: 0; font-size: 14px; line-height: 1.8; }
.auth-reqs li { display: flex; align-items: center; gap: var(--space-8); color: var(--muted); font-weight: 600; }
.auth-reqs li.met { color: var(--good); font-weight: 700; }
/* An empty ring until it is done, then a tick: the state is a shape and the words, never only colour. */
.auth-req-icon { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; }
.auth-reqs li.met .auth-req-icon { border: 0; position: relative; }
.auth-reqs li.met .auth-req-icon::before {
  content: ''; position: absolute; left: 4px; top: 0; width: 5px; height: 10px;
  border: solid currentColor; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
