/* Warm off-white, dark ink, generous whitespace. Conversational, not a dashboard.
   No gradients, no iconography, nothing that performs "AI product". */

:root {
  --paper: #faf7f2;
  --ink: #1c1a17;
  --ink-soft: #55504a;
  --ink-faint: #78716a;
  --rule: #e3ddd3;
  --user-bubble: #f0ebe2;
  --care-bg: #f2f4f1;
  --care-border: #c8d0c4;
  --accent: #2f4f3f;
  --accent-ink: #ffffff;
  --focus: #1f5c8b;
  --measure: 34rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* The `hidden` attribute only sets `display: none` in the UA stylesheet, so any
   author `display` rule silently beats it — which is how the composer stayed
   on screen behind the gate despite being marked hidden. */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: Iowan Old Style, Palatino Linotype, Palatino, Georgia, "Times New Roman", serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* --- header --------------------------------------------------------------- */

.site-header {
  width: min(100% - 2.5rem, var(--measure));
  margin: 0 auto;
  padding: 3rem 0 1.75rem;
  border-bottom: 1px solid var(--rule);
}

.site-header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* The wordmark doubles as the way home. Resets the global button styling back
   to the heading's own type — `font: inherit` alone isn't enough, because the
   button rule sets font-family separately and would still win. */
.home-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.15rem 0.35rem 0.15rem 0.15rem;
  font: inherit;
  font-family: inherit;
  color: inherit;
  background: none;
  border: 0;
  border-radius: 0.5rem;
  cursor: pointer;
}

.home-link:hover {
  filter: none;
  background: var(--user-bubble);
}

/* --- the mark -------------------------------------------------------------
   One shape, used everywhere: a circle left open. It appears open in the
   header, turning while the model thinks, and closed in the care panel — the
   only place in the product where the circle completes, because that panel is
   about another person joining you. */

.mark {
  width: 1.15em;
  height: 1.15em;
  color: var(--accent);
  flex: none;
}

.mark-large {
  width: 3rem;
  height: 3rem;
}

.mark-closed {
  color: var(--accent);
}

.tagline {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

/* --- the opening --------------------------------------------------------- */
/* One sentence and one field. Domainr's trick: the thing you came to do is the
   only thing on the page. */

.opening {
  width: min(100% - 2.5rem, var(--measure));
  margin: 0 auto;
  padding: 3.5rem 0 1.25rem;
}

.opening-line {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.5;
}

.opening-privacy {
  margin: 1.25rem 0 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* Example questions. Quiet — they are an offer, not a menu you must choose
   from, and the box above them is still the main thing. */
.starters {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.starter {
  margin: 0;
  padding: 0.5rem 0.85rem;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.88rem;
  line-height: 1.35;
  text-align: left;
  color: var(--ink-soft);
  background: none;
  border: 1px solid var(--rule);
  border-radius: 1.2rem;
  cursor: pointer;
  transition: border-color 120ms ease, color 120ms ease, background 120ms ease;
}

.starter:hover,
.starter:focus-visible {
  filter: none;
  color: var(--ink);
  background: var(--user-bubble);
  border-color: var(--care-border);
}

/* --- conversation --------------------------------------------------------- */

.conversation {
  flex: 1;
  width: min(100% - 2.5rem, var(--measure));
  margin: 0 auto;
  padding: 1.75rem 0 1rem;
}

.messages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.message {
  margin: 0;
}

/* Plain text (the visitor's own words, our notices) is inserted with
   textContent; pre-wrap keeps its line breaks without any HTML parsing. */
.message .body {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* An answer rendered from the Markdown subset already carries its own blocks,
   so pre-wrap would double every gap. */
.message .body.rendered {
  white-space: normal;
}

.message .body.rendered > * {
  margin: 0 0 0.85em;
}

.message .body.rendered > *:last-child {
  margin-bottom: 0;
}

.message .body.rendered ul,
.message .body.rendered ol {
  padding-left: 1.35em;
}

.message .body.rendered li {
  margin-bottom: 0.35em;
}

.message .body.rendered li:last-child {
  margin-bottom: 0;
}

.message .body.rendered blockquote {
  border-left: 2px solid var(--rule);
  padding-left: 0.9em;
  color: var(--ink-soft);
  font-style: italic;
}

.message .body.rendered code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 0.92em;
  background: var(--user-bubble);
  border-radius: 0.25rem;
  padding: 0.1em 0.3em;
}

.message .body.rendered pre {
  background: var(--user-bubble);
  border-radius: 0.5rem;
  padding: 0.75rem 0.9rem;
  overflow-x: auto;
}

.message .body.rendered pre code {
  background: none;
  padding: 0;
}

.message .body.rendered hr {
  border: 0;
  border-top: 1px solid var(--rule);
}

.message .who {
  display: block;
  margin-bottom: 0.3rem;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.message.user .body {
  background: var(--user-bubble);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
}

.message.error .body {
  color: #7a2e2e;
}

/* An answer arrives rather than appearing. Paired with the short hold in
   app.js, this is what stops a cached reply from snapping into place before
   the reader has looked up from the composer. */
@keyframes answer-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.message.assistant {
  animation: answer-in 320ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.support-panel,
.care-panel {
  animation: answer-in 320ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .message.assistant,
  .support-panel,
  .care-panel {
    animation: none;
  }
}

/* Safeguarding support. Quieter than the care panel on purpose: this is
   information a young person may need, not an alarm about their situation. */
.support-panel {
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  background: var(--care-bg);
  border: 1px solid var(--care-border);
  border-radius: 0.85rem;
}

.support-panel h2 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  font-weight: 600;
}

.support-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.support-list a {
  color: var(--accent);
  font-weight: 600;
}

.support-note {
  display: block;
  margin-top: 0.15rem;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* The share sheet. */
.share-dialog {
  width: min(100% - 2rem, 30rem);
  padding: 1.5rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 0.9rem;
}

.share-dialog::backdrop {
  background: rgba(28, 26, 23, 0.45);
}

/* Sits in the corner rather than in the row of actions, so the two buttons
   that do something are the only things competing for attention. */
.dialog-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  margin: 0;
  padding: 0;
  color: var(--ink-faint);
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.dialog-close svg {
  width: 1.15rem;
  height: 1.15rem;
}

.dialog-close:hover,
.dialog-close:focus-visible {
  filter: none;
  color: var(--ink);
  background: var(--user-bubble);
}

.share-dialog {
  position: relative;
}

.share-dialog h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
}

.share-sizes {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.share-size {
  margin: 0;
  padding: 0.4rem 0.9rem;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: none;
  border: 1px solid var(--rule);
  border-radius: 1.2rem;
  cursor: pointer;
}

.share-size.selected {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}

.share-preview {
  display: flex;
  justify-content: center;
  padding: 0.75rem;
  background: var(--user-bubble);
  border-radius: 0.6rem;
}

.share-canvas {
  max-width: 100%;
  max-height: 22rem;
  height: auto;
  box-shadow: 0 2px 12px rgba(28, 26, 23, 0.12);
}

.share-link-row {
  margin-top: 1.1rem;
}

.share-link-label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.share-link-field {
  display: flex;
  gap: 0.5rem;
}

.share-link {
  font: inherit;
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.7rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 0.5rem;
}

/* Loud enough to stop someone, quiet enough not to scold. */
.share-link-warning {
  margin-top: 0.7rem;
  padding: 0.75rem 0.9rem;
  background: var(--care-bg);
  border: 1px solid var(--care-border);
  border-radius: 0.6rem;
}

.share-link-warning p {
  margin: 0 0 0.6rem;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink);
}

.shared-note .body {
  color: var(--ink-faint);
  font-size: 0.92rem;
}

.share-note,
.share-status {
  margin: 0.9rem 0 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-faint);
}

.share-status:empty {
  margin: 0;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

/* Citations sit under the answer, not inside it — the difference between what
   was said and what can be checked should stay visible. */
.sources {
  margin-top: 0.85rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--rule);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.sources-heading {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.sources ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sources a {
  color: var(--accent);
  font-size: 0.9rem;
}

.sources-note {
  display: block;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--ink-faint);
}

/* Copy sits quietly under the answer rather than hovering over it — someone
   reading a hard answer shouldn't have controls looming over the words. It
   only comes up to full contrast on hover or keyboard focus. */
.message-actions {
  margin-top: 0.5rem;
  display: flex;
  justify-content: flex-end;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.25rem 0.5rem;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  color: var(--ink-soft);
  background: none;
  border: 0;
  border-radius: 0.4rem;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 120ms ease, color 120ms ease;
}

.copy-button:hover,
.copy-button:focus-visible {
  filter: none;
  opacity: 1;
  color: var(--ink-soft);
  background: var(--user-bubble);
}

.copy-button.copied {
  opacity: 1;
  color: var(--accent);
}

.copy-glyph {
  width: 0.95em;
  height: 0.95em;
  flex: none;
}

/* Off-screen, not display:none — a hidden field cannot be selected, and the
   selection fallback depends on selecting it. */
.offscreen-copy {
  position: fixed;
  top: 0;
  left: -9999px;
  opacity: 0;
}

/* A failed send, spoken in the app's own voice — not dressed up as something
   ChurchChat said. Quiet, owns the fault, and keeps the message recoverable. */
.message.notice {
  border-left: 3px solid var(--rule);
  padding-left: 0.9rem;
}

.message.notice .body {
  color: var(--ink-soft);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.92rem;
}

.notice-crisis {
  margin: 0.6rem 0 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.92rem;
  color: var(--ink);
  max-width: 30rem;
}

.notice-crisis a {
  color: var(--accent);
  font-weight: 600;
}

.notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* --- click-to-load video -------------------------------------------------- */

.video-offer {
  margin-top: 1.1rem;
}

.video-note,
.video-link {
  display: block;
  margin: 0.6rem 0 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-faint);
  max-width: 30rem;
}

.video-link {
  color: var(--accent);
}

/* A drawn poster that reads as a video player. No thumbnail is fetched from
   YouTube — that would be a request to Google on load, which is the whole
   thing the click-to-load facade avoids. */
.video-poster {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 1rem;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 0.75rem;
  text-align: center;
  cursor: pointer;
}

.video-poster:hover {
  filter: none;
  background: #262320;
}

.video-play-glyph {
  width: 3.25rem;
  height: 3.25rem;
  flex: none;
}

.video-poster-title {
  font-family: Iowan Old Style, Palatino Linotype, Palatino, Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.3;
}

.video-poster-hint {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
  background: #000;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.status {
  margin: 1.25rem 0 0;
  min-height: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-faint);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.9rem;
}

/* The same open circle, turning. Not a fake typing animation — just the mark,
   doing the one thing a mark with a gap in it can do. */
.thinking-ring {
  width: 0.95em;
  height: 0.95em;
  flex: none;
  border: 2px solid var(--rule);
  border-right-color: var(--accent);
  border-radius: 50%;
  animation: churchchat-turn 1.6s linear infinite;
}

@keyframes churchchat-turn {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .thinking-ring {
    animation: none;
  }
}

/* The Church Lady's superior dance. Fires once, when someone finds the
   catchphrase the product is named after. */
.mark-dance {
  animation: churchchat-superior-dance 900ms ease-in-out;
}

@keyframes churchchat-superior-dance {
  0% { transform: rotate(0) translateY(0); }
  20% { transform: rotate(-18deg) translateY(-3px); }
  45% { transform: rotate(16deg) translateY(2px); }
  70% { transform: rotate(-10deg) translateY(-2px); }
  100% { transform: rotate(0) translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .mark-dance {
    animation: none;
  }
}

/* --- care panel ----------------------------------------------------------
   Quiet and clearly actionable. No red, no sirens, no warning imagery — the
   user is not being punished. State is carried by the heading text, never by
   colour alone. */

.care-slot {
  width: 100%;
}

.care-panel {
  margin-top: 1.5rem;
  padding: 1.15rem 1.25rem 1.25rem;
  background: var(--care-bg);
  border: 1px solid var(--care-border);
  border-radius: 0.85rem;
}

.care-panel h2 {
  margin: 0 0 0.85rem;
  font-size: 1.0625rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.care-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.care-emergency {
  margin: 0.95rem 0 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* --- buttons -------------------------------------------------------------- */

button,
.care-actions a,
a.button-primary,
a.button-secondary {
  font: inherit;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  border-radius: 0.6rem;
  padding: 0.6rem 1.05rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  border: 1px solid transparent;
}

.button-primary,
.care-actions .primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.button-secondary,
.care-actions .secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.button-quiet {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--rule);
}

button:hover,
.care-actions a:hover,
a.button-primary:hover,
a.button-secondary:hover {
  filter: brightness(0.95);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* --- composer ------------------------------------------------------------- */

.composer {
  position: sticky;
  bottom: 0;
  width: 100%;
  padding: 0.9rem 1.25rem 1.1rem;
  background: var(--paper);
  border-top: 1px solid var(--rule);
}

.composer {
  display: flex;
  gap: 0.6rem;
  align-items: flex-end;
}

/* Before the first message the composer IS the page, so it sits with the
   sentence rather than being pinned under a conversation. Doubled class on
   purpose: the plain `.composer` rules above are later in the file, and at
   equal specificity the last one wins, which is how the rule above the input
   kept its border on an empty page. */
.composer.composer-opening {
  border-top: 0;
  padding-top: 0;
}

/* The homepage is mostly the mark, a sentence and a box, so the mark can be
   the size it deserves. It shrinks back once there is a conversation to read,
   where a large logo would just be in the way. */
.is-opening .site-header {
  padding: 4rem 0 2rem;
  border-bottom: 0;
}

.is-opening .site-header h1 {
  font-size: 2.6rem;
  gap: 0.65rem;
}

.is-opening .tagline {
  font-size: 1.1rem;
  margin-top: 0.6rem;
}

@media (max-width: 30rem) {
  .is-opening .site-header h1 {
    font-size: 2rem;
  }
}

.composer textarea {
  font: inherit;
  flex: 1;
  max-width: calc(var(--measure) - 6rem);
  margin-left: auto;
  resize: none;
  max-height: 12rem;
  padding: 0.7rem 0.85rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 0.7rem;
}

.composer button {
  margin-right: auto;
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.composer button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- footer & utilities --------------------------------------------------- */

/* Empty until Cloudflare decides a visitor needs to interact, so it takes no
   space in the usual case. */
.turnstile {
  width: min(100% - 2.5rem, var(--measure));
  margin: 0 auto;
}

.turnstile:not(:empty) {
  padding-top: 0.9rem;
}

.site-footer {
  width: min(100% - 2.5rem, var(--measure));
  margin: 0 auto;
  padding: 1.25rem 0 2.5rem;
  color: var(--ink-faint);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.8rem;
}

.site-footer p {
  margin: 0;
}

/* --- about ---------------------------------------------------------------- */

.about {
  flex: 1;
  width: min(100% - 2.5rem, var(--measure));
  margin: 0 auto;
  padding: 1.75rem 0 2rem;
}

.about h2 {
  margin: 1.9rem 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.about p {
  margin: 0 0 1rem;
}

.about-signoff {
  margin-top: 1.9rem;
  color: var(--ink-faint);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--ink-faint);
}

/* On pages without app.js, the wordmark is a plain link home. */
a.home-link {
  text-decoration: none;
}

/* --- 404 ------------------------------------------------------------------ */

.page-centered {
  justify-content: center;
  align-items: center;
  padding: 2rem 1.25rem;
}

.notfound {
  width: min(100%, var(--measure));
  text-align: left;
}

.notfound h1 {
  margin: 1.25rem 0 0.75rem;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.3;
}

.notfound p {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 10;
}

.skip-link:focus {
  left: 0;
}

/* --- trust dialog --------------------------------------------------------- */

dialog {
  width: min(100% - 2rem, 30rem);
  padding: 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 0.9rem;
  background: var(--paper);
  color: var(--ink);
}

dialog::backdrop {
  background: rgba(28, 26, 23, 0.4);
}

dialog h2 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.trust-help {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

dialog textarea {
  font: inherit;
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 0.7rem;
  resize: vertical;
}

.trust-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.trust-status {
  margin: 0.7rem 0 0;
  min-height: 1.2rem;
  color: var(--ink-faint);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.88rem;
}

@media (max-width: 34rem) {
  .site-header {
    padding-top: 2rem;
  }

  .composer {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
