/* Sign-in and list-picker pages. Colours and controls come from app.css. */
.page { max-width: 720px; }
.page.narrow { max-width: 440px; }
.page h2 { font-family: var(--font-display); font-size: 18px; margin: 12px 0 6px; }
.page section { display: flex; flex-direction: column; gap: 10px; }
.page section[hidden], .page form[hidden] { display: none; }
.stack { display: flex; flex-direction: column; gap: 12px; padding: 0; }
.page input[type="text"], .page input[type="email"], .page input[type="password"] {
  border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 7px 9px; min-height: 36px; width: 100%;
}
.page input.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.page .people a.who { color: inherit; text-decoration: none; }
.page .people a.who:hover { color: var(--accent); text-decoration: underline; }
.page .people li { align-items: center; }
.page .people .stack { gap: 3px; }
.page a.btn { text-decoration: none; color: inherit; display: inline-flex; align-items: center; }
.page a.btn[hidden] { display: none; }

/* Account details. */
.facts { margin: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }

/* Portal pages: help, policies, first-time tour, settings, and the message forms. */
.prose { display: flex; flex-direction: column; gap: 10px; }
.prose h2 { margin: 14px 0 0; }
.prose p, .prose li { margin: 0; line-height: 1.55; }
.prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.prose a { color: var(--accent); }
.draft { margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-left: 4px solid var(--h-booked); border-radius: 8px; background: var(--surface); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: step; }
.steps li { counter-increment: step; display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.steps li::before { content: counter(step); flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.steps h3 { margin: 0 0 2px; font-size: 15px; }
.steps p { margin: 0; color: var(--muted); }
.choice { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.choice legend { padding: 0 4px; }
.choice label { display: flex; gap: 10px; align-items: center; padding: 8px 0; cursor: pointer; }
.page textarea { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 7px 9px; min-height: 140px; width: 100%; resize: vertical; }
.count-hint { text-align: right; }
.page table.cookies { width: 100%; border-collapse: collapse; }
.page table.cookies th, .page table.cookies td { text-align: left; vertical-align: top; padding: 8px 10px; border: 1px solid var(--line); background: var(--surface); }
.page table.cookies th { color: var(--muted); font-weight: 600; }
.page .people .body { white-space: pre-wrap; overflow-wrap: anywhere; margin: 4px 0 0; }
/* Alerts on the Notifications page */
.people.alerts .who { font-weight: 400; }
.people.alerts .unread .who { font-weight: 700; }
.people.alerts .alert-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.people.alerts li > span { display: flex; flex-direction: column; gap: 2px; }
.page select { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 7px 9px; width: 100%; }

/* Admin: a one-time password reset link, shown under the person it is for. */
.reset-box { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.reset-row { display: flex; gap: 8px; align-items: center; }
.reset-row input { flex: 1; min-width: 0; }
