/* Simple pages: messages, the compose form, sign-in, the account and privacy. */

header {
  border-bottom: 1px solid var(--line);
}

.bar {
  max-width: 640px;
  margin: 0 auto;
  padding: 8px 8px 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bar-brand {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  text-decoration: none;
}

.bar-brand svg {
  color: var(--accent);
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -.02em;
}

h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 18px;
}

.meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.btn {
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  padding: 0 14px;
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.status {
  min-height: 20px;
  margin: 0;
  font-size: 14px;
  color: var(--ok-ink);
}

.box {
  border-radius: 14px;
  padding: 14px 16px;
}

.box.warn {
  background: var(--warn-bg);
  color: var(--warn-ink);
}

.box.ok {
  background: var(--ok-bg);
  color: var(--ok-ink);
}

label {
  font-weight: 600;
  font-size: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

input, textarea, select {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}

.choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
}

.choice > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

input[type="checkbox"] {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  padding: 0;
  accent-color: var(--accent);
}

textarea {
  min-height: 240px;
  resize: vertical;
}

details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}

summary {
  cursor: pointer;
  font-weight: 600;
}

code.block {
  display: block;
  white-space: pre-wrap;
  background: var(--code);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 14px;
}

.spaced {
  margin-top: 8px;
}

.wide {
  margin-top: 10px;
  width: 100%;
}

.flush {
  margin: 0;
}

main.narrow {
  max-width: 480px;
  padding-top: 40px;
}

.intro {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  /* An email address can have no break opportunity at all: break it rather than overflow. */
  overflow-wrap: anywhere;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

input.code {
  font-size: 26px;
  letter-spacing: .3em;
  text-align: center;
}

.prefixed {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding-left: 12px;
  color: var(--muted);
}

.prefixed input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding-left: 4px;
}

.prefixed:focus-within {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.prefixed input:focus-visible {
  outline: none;
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.links a,
button.link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
}

button.link {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
}

.title-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.card.danger {
  background: transparent;
  border-color: var(--danger-line);
}

/* The suspended account's notice: Chappe's statement of reasons, the first thing the page says. */
.card.suspended {
  background: var(--danger-bg);
  border-color: var(--danger-line);
  gap: 10px;
}

.card.suspended h2 {
  color: var(--danger-ink);
}

.btn.danger {
  align-self: flex-start;
  border-color: var(--danger-ink);
  color: var(--danger-ink);
  background: var(--surface);
}

.stack .btn.danger {
  align-self: stretch;
}

.prose {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prose p {
  margin: 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

code.secret {
  margin-top: 0;
  overflow-wrap: anywhere;
  user-select: all;
}

.ai-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

/* A title written by someone else: it may hold a long word with no break opportunity. */
.carried {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.row-actions {
  display: flex;
  gap: 8px;
}

.card .ai-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.back {
  align-self: flex-start;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
}

.back::before {
  content: "\2190";
  margin-right: 6px;
}

.guide-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guide-steps .card {
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
}

.step-n {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.step-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  line-height: 1.5;
}

.step-body code.block {
  white-space: pre-wrap;
}

.say-line {
  display: block;
  margin-top: 4px;
  font-family: var(--display);
  font-size: 20px;
}

.stack-tight {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notes {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  line-height: 1.5;
}

.report {
  margin: 0;
  padding: 10px 12px;
  background: var(--code);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.box.info {
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 14px;
}

.rules {
  margin: 0;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1.6;
}
