/* The Void. Colours are tokens: light (a pale dawn nebula) on :root, dark (deep space) under the media query and
   [data-theme="dark"]. Contrast of every text and meaningful mark pair is measured in the repo's report. */

@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  color-scheme: light;
  --bg-top: #fbf2ec;
  --bg-mid: #f1e7f4;
  --bg-bottom: #dcd0ef;
  --ink: #1b1638;
  --ink-2: #4a4368;
  --panel: #fffdfb;
  --card: rgba(255, 255, 255, 0.9);
  --card-edge: rgba(58, 46, 140, 0.18);
  --card-dim: rgba(245, 243, 247, 0.92);
  --card-edge-dim: rgba(60, 56, 80, 0.14);
  --card-hi: rgba(255, 255, 255, 0.9);
  --shadow: rgba(48, 30, 110, 0.28);
  --field: #ffffff;
  --field-edge: #8a83a8;
  --accent: #4a3bd0;
  --accent-2: #8d3aa8;
  --accent-soft: rgba(74, 59, 208, 0.12);
  --accent-glow: rgba(98, 80, 240, 0.30);
  --on-accent: #ffffff;
  --life-hi: #4a3bd0;
  --life-lo: #b8500f;
  --track: #e4ddf0;
  --vote-edge: #8a83a8;
  --warn-ink: #9a3a06;
  --danger-ink: #a3243a;
  --danger-edge: #c75a6b;
  --danger-bg: #a3243a;
  --on-danger: #ffffff;
  --focus: #1b1638;
  --toast: #1b1638;
  --toast-ink: #f6f3ff;
  --toast-edge: #ffb27a;
  --backdrop: rgba(40, 28, 80, 0.45);
  --fx-1: #4a3bd0;
  --fx-2: #b04ad0;
  --fx-3: #ff8f4a;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg-top: #05051a;
    --bg-mid: #0a0a26;
    --bg-bottom: #150b33;
    --ink: #f1f0ff;
    --ink-2: #b6b4dc;
    --panel: #12122e;
    --card: rgba(19, 19, 48, 0.86);
    --card-edge: rgba(170, 176, 255, 0.20);
    --card-dim: rgba(24, 24, 33, 0.9);
    --card-edge-dim: rgba(160, 160, 185, 0.14);
    --card-hi: rgba(255, 255, 255, 0.06);
    --shadow: rgba(0, 0, 0, 0.7);
    --field: #0a0a22;
    --field-edge: #6f6ea6;
    --accent: #8fe8ff;
    --accent-2: #c9a8ff;
    --accent-soft: rgba(143, 232, 255, 0.12);
    --accent-glow: rgba(143, 232, 255, 0.30);
    --on-accent: #06131f;
    --life-hi: #8fe8ff;
    --life-lo: #ff9a5e;
    --track: #2a2a55;
    --vote-edge: #7372ab;
    --warn-ink: #ffb380;
    --danger-ink: #ffb0bd;
    --danger-edge: #d9707f;
    --danger-bg: #ffb0bd;
    --on-danger: #2a0710;
    --focus: #ffd866;
    --toast: #f1f0ff;
    --toast-ink: #12122e;
    --toast-edge: #c4500a;
    --backdrop: rgba(2, 2, 12, 0.65);
    --fx-1: #8fe8ff;
    --fx-2: #c9a8ff;
    --fx-3: #ffb47a;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg-top: #05051a;
  --bg-mid: #0a0a26;
  --bg-bottom: #150b33;
  --ink: #f1f0ff;
  --ink-2: #b6b4dc;
  --panel: #12122e;
  --card: rgba(19, 19, 48, 0.86);
  --card-edge: rgba(170, 176, 255, 0.20);
  --card-dim: rgba(24, 24, 33, 0.9);
  --card-edge-dim: rgba(160, 160, 185, 0.14);
  --card-hi: rgba(255, 255, 255, 0.06);
  --shadow: rgba(0, 0, 0, 0.7);
  --field: #0a0a22;
  --field-edge: #6f6ea6;
  --accent: #8fe8ff;
  --accent-2: #c9a8ff;
  --accent-soft: rgba(143, 232, 255, 0.12);
  --accent-glow: rgba(143, 232, 255, 0.30);
  --on-accent: #06131f;
  --life-hi: #8fe8ff;
  --life-lo: #ff9a5e;
  --track: #2a2a55;
  --vote-edge: #7372ab;
  --warn-ink: #ffb380;
  --danger-ink: #ffb0bd;
  --danger-edge: #d9707f;
  --danger-bg: #ffb0bd;
  --on-danger: #2a0710;
  --focus: #ffd866;
  --toast: #f1f0ff;
  --toast-ink: #12122e;
  --toast-edge: #c4500a;
  --backdrop: rgba(2, 2, 12, 0.65);
  --fx-1: #8fe8ff;
  --fx-2: #c9a8ff;
  --fx-3: #ffb47a;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg-mid);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 55%, var(--bg-bottom) 100%) fixed;
  background-color: var(--bg-mid);
  font: 400 16px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

svg path, svg circle, svg ellipse {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sky, .fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.sky { z-index: 0; }
.fx { z-index: 6; }

.falling-layer {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}

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

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 600;
}
.skip:focus { top: 12px; }

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

.wrap {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: max(36px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 44vh max(16px, env(safe-area-inset-left));
}

/* Masthead */

.masthead { text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ink-2);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.eyebrow-mark { color: var(--accent); }
.eyebrow-mark circle { fill: currentColor; stroke: none; }
.eyebrow-mark ellipse { stroke-width: 1.6; }

.title {
  margin: 10px 0 0;
  font-family: "Avenir Next", Avenir, Futura, "Century Gothic", ui-sans-serif, system-ui, sans-serif;
  font-weight: 200;
  line-height: 0.95;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.title-the {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.6em;
  margin-right: -0.6em;
  color: var(--ink-2);
}
.title-void {
  display: inline-block;
  margin-top: 6px;
  margin-right: -0.06em;
  font-size: clamp(3.4rem, 17vw, 6rem);
  background: linear-gradient(100deg, var(--ink) 0%, var(--ink) 30%, var(--accent) 55%, var(--accent-2) 72%, var(--ink) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px var(--accent-glow));
  animation: shimmer 9s ease-in-out infinite alternate;
}

@keyframes shimmer {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

.tagline {
  max-width: 30em;
  margin: 14px auto 0;
  color: var(--ink-2);
  font-size: 0.975rem;
  text-wrap: balance;
}

/* Composer */

.composer {
  position: relative;
  margin-top: 28px;
  padding: 18px;
  border: 1.5px solid transparent;
  border-radius: 24px;
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    conic-gradient(from var(--angle), var(--accent), var(--accent-2), transparent 35%, transparent 65%, var(--accent)) border-box;
  box-shadow: 0 24px 60px -28px var(--shadow), 0 0 40px -18px var(--accent-glow);
  animation: orbit 10s linear infinite;
  transition: transform 0.4s cubic-bezier(.2, .8, .2, 1);
}
.composer.charging { transform: scale(0.985); }
.composer.shake { animation: orbit 10s linear infinite, shake 0.45s cubic-bezier(.36, .07, .19, .97); }

@keyframes orbit { to { --angle: 360deg; } }

@keyframes shake {
  20%, 60% { translate: -6px 0; }
  40%, 80% { translate: 6px 0; }
}

.composer-label {
  display: block;
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

textarea, input[type="password"] {
  display: block;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 1.5px solid var(--field-edge);
  border-radius: 14px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
  line-height: 1.45;
  transition: border-color 0.2s, box-shadow 0.2s;
}
textarea { resize: none; min-height: 92px; }
textarea::placeholder, input::placeholder { color: var(--ink-2); opacity: 1; }
textarea:focus-visible, input:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent), 0 0 18px -2px var(--accent-glow);
}
textarea.lifting {
  transition: none;
}

.composer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 12px;
}
.composer-hint {
  flex: 1 1 auto;
  margin: 0;
  color: var(--ink-2);
  font-size: 0.8125rem;
}
.count {
  margin-left: auto;
  color: var(--ink-2);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.count[data-state="near"] { color: var(--ink); font-weight: 650; }
.count[data-state="over"] { color: var(--warn-ink); font-weight: 750; }

@media (max-width: 520px) {
  .composer-hint { flex-basis: 100%; }
  .count { margin-left: 0; }
  .launch { margin-left: auto; }
}

.launch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 0 0 0 var(--accent-glow), 0 8px 26px -8px var(--accent-glow);
  transition: transform 0.2s, box-shadow 0.3s, opacity 0.2s;
}
.launch:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 0 0 6px var(--accent-soft), 0 10px 34px -6px var(--accent-glow);
}
.launch:active:not(:disabled) { transform: translateY(1px) scale(0.98); }
/* Solid colours, not opacity, so the label keeps its contrast while the button waits for text. */
.launch:disabled { background: var(--track); color: var(--ink); cursor: not-allowed; box-shadow: none; }
.launch[data-busy] .launch-icon { animation: dive 0.8s ease-in-out infinite; }
.launch-icon path, .launch-icon ellipse { stroke-width: 2.2; }

@keyframes dive {
  0%, 100% { translate: 0 -2px; }
  50% { translate: 0 3px; }
}

.link-button {
  margin-left: auto;
  padding: 6px 4px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  cursor: pointer;
}

.admin-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 10px 14px;
  border: 1.5px dashed var(--accent);
  border-radius: 16px;
  background: var(--panel);
  font-size: 0.875rem;
}
.admin-bar[hidden] { display: none; }
.admin-bar svg { color: var(--accent); flex: none; }

/* Feed */

.feed-section { margin-top: 34px; }

.feed-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 4px 12px;
}
.feed-title {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.feed-meta {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.loading {
  margin: 30px 0;
  color: var(--ink-2);
  text-align: center;
  animation: breathe 1.6s ease-in-out infinite;
}
.loading[hidden] { display: none; }

@keyframes breathe { 50% { opacity: 0.55; } }

.feed {
  margin: 0;
  padding: 0;
  list-style: none;
}
.feed:focus { outline: none; }

.post {
  position: relative;
  margin: 0 0 14px;
}

.card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px 14px 14px 18px;
  border: 1px solid var(--card-edge);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 14px 34px -18px var(--shadow), inset 0 1px 0 var(--card-hi);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  overflow: hidden;
  transition: filter 1.2s ease, box-shadow 0.8s ease, border-color 0.8s ease, translate 1.2s ease;
}

.card-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(120% 90% at 92% 20%, var(--accent-glow), transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.4s ease;
}

.post[data-state="thriving"] .card {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: 0 14px 34px -18px var(--shadow), 0 0 32px -10px var(--accent-glow), inset 0 1px 0 var(--card-hi);
}
.post[data-state="thriving"] .card-glow { opacity: 0.55; }
.post.lifted .card-glow { opacity: 1; transition-duration: 0.2s; }

/* Dying cards go grey through their background, not a filter, so the life bar keeps its measured colour. */
.post[data-state="fading"] .card { border-color: var(--card-edge-dim); }
.post[data-state="sinking"] .card {
  background: var(--card-dim);
  border-color: var(--card-edge-dim);
  box-shadow: 0 10px 24px -18px var(--shadow);
  translate: 0 4px;
  animation: wobble 3.4s ease-in-out infinite;
}
.post[data-state="falling"] .card {
  background: var(--card-dim);
  border-color: var(--card-edge-dim);
  box-shadow: none;
  translate: 0 8px;
  animation: wobble-hard 1.3s ease-in-out infinite;
}

@keyframes wobble {
  0%, 100% { rotate: -0.5deg; }
  50% { rotate: 0.6deg; }
}
@keyframes wobble-hard {
  0%, 100% { rotate: -1.1deg; transform: translateY(0); }
  50% { rotate: 1.2deg; transform: translateY(3px); }
}

.card-main { min-width: 0; }

.post-text {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: normal;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  color: var(--ink-2);
  font-size: 0.8125rem;
}

.life {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.life-track {
  position: relative;
  width: 88px;
  height: 6px;
  border-radius: 999px;
  background: var(--track);
  overflow: hidden;
}
.life-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--life-hi);
  box-shadow: 0 0 10px var(--life-hi);
  transform-origin: left center;
  transform: scaleX(1);
  transition: transform 1s linear, background-color 1s;
}
.post[data-state="sinking"] .life-fill,
.post[data-state="falling"] .life-fill {
  background: var(--life-lo) repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.3) 0 3px, transparent 3px 6px);
  box-shadow: 0 0 10px var(--life-lo);
}

.life-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.sink-icon { display: none; color: var(--life-lo); }
.sink-icon path { stroke-width: 2.2; }
.post[data-state="sinking"] .sink-icon,
.post[data-state="falling"] .sink-icon { display: inline; }
.post[data-state="falling"] .sink-icon { animation: dive 0.7s ease-in-out infinite; }

.card-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.vote {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 56px;
  min-height: 62px;
  padding: 6px 8px;
  border: 1.5px solid var(--vote-edge);
  border-radius: 16px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.3s, transform 0.2s;
}
.vote:hover { border-color: var(--accent); background: var(--accent-soft); }
.vote:active { transform: scale(0.94); }
.vote-icon path { stroke-width: 2.4; }
.vote:hover .vote-icon { animation: nudge-up 0.6s ease-in-out; }
.vote-count {
  font-size: 0.95rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.vote[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 0 22px -4px var(--accent-glow);
}
.vote.denied { animation: shake 0.4s; }

@keyframes nudge-up {
  50% { translate: 0 -3px; }
}

.delete {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border: 1.5px solid var(--danger-edge);
  border-radius: 10px;
  background: transparent;
  color: var(--danger-ink);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}
.delete[hidden] { display: none; }
.delete:hover { background: color-mix(in srgb, var(--danger-ink) 14%, transparent); }

/* Arrivals */

.post.arriving .card { animation: arrive 1s cubic-bezier(.16, 1, .3, 1) both; }
.post.appear .card { animation: materialize 1.2s cubic-bezier(.16, 1, .3, 1) both; }
.post.intro .card { animation: intro 0.8s cubic-bezier(.16, 1, .3, 1) both; }
.post.incoming { visibility: hidden; }

@keyframes arrive {
  0% { opacity: 0; transform: scale(0.82); filter: blur(14px) brightness(2.2); }
  45% { opacity: 1; transform: scale(1.03); filter: blur(0) brightness(1.4); }
  100% { opacity: 1; transform: none; filter: none; }
}
@keyframes materialize {
  0% { opacity: 0; transform: translateY(-10px) scale(0.95); filter: blur(10px); }
  100% { opacity: 1; transform: none; filter: none; }
}
@keyframes intro {
  0% { opacity: 0; transform: translateY(22px) scale(0.97); }
  100% { opacity: 1; transform: none; }
}

/* A card on its way into the vortex, lifted out of the list into the falling layer. */
.falling-layer .post { position: absolute; margin: 0; }
.falling-layer .card { animation: none; translate: none; background: var(--panel); -webkit-backdrop-filter: none; backdrop-filter: none; }

.comet {
  position: fixed;
  z-index: 7;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--accent);
  color: var(--ink);
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  box-shadow: 0 0 30px var(--accent-glow), 0 0 80px -10px var(--accent);
}

/* Empty state */

.empty {
  padding: 40px 0 20px;
  text-align: center;
}
.empty[hidden] { display: none; }
.empty-mark { color: var(--accent); }
.empty-mark ellipse { stroke-width: 1.5; transform-box: fill-box; transform-origin: center; }
.empty-mark ellipse:first-of-type { animation: spin 14s linear infinite; }
.empty-mark ellipse:last-of-type { animation: spin 9s linear infinite reverse; }
.empty-mark circle { fill: currentColor; stroke: none; }
.empty-title { margin: 14px 0 0; font-size: 1.3rem; font-weight: 650; }
.empty-sub { margin: 4px 0 0; color: var(--ink-2); }

@keyframes spin { to { rotate: 360deg; } }

/* On its own panel: at the bottom of the page it sits over the vortex's glow. */
.footer {
  margin: 40px auto 0;
  max-width: 34em;
  padding: 12px 18px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--card-edge);
  color: var(--ink-2);
  font-size: 0.8125rem;
  text-align: center;
  text-wrap: balance;
}
.footer p { margin: 0; }

/* Toasts */

.toasts {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  z-index: 9;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(520px, calc(100% - 32px));
  transform: translateX(-50%);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--toast);
  color: var(--toast-ink);
  font-size: 0.9375rem;
  font-weight: 550;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.5);
  animation: toast-in 0.45s cubic-bezier(.16, 1, .3, 1) both;
}
.toast.error { border-left: 5px solid var(--toast-edge); }
.toast svg { flex: none; margin-top: 1px; }
.toast.leaving { animation: toast-out 0.35s ease-in both; }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-14px) scale(0.97); }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateY(-10px); }
}

/* Dialogs */

.dialog {
  width: min(420px, calc(100% - 32px));
  padding: 0;
  border: 1px solid var(--card-edge);
  border-radius: 22px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 30px 80px -20px var(--shadow);
}
.dialog::backdrop {
  background: var(--backdrop);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.dialog[open] { animation: toast-in 0.4s cubic-bezier(.16, 1, .3, 1); }
.dialog-body { padding: 22px; }
.dialog-title { margin: 0; font-size: 1.25rem; font-weight: 700; }
.dialog-text { margin: 8px 0 16px; color: var(--ink-2); }
.dialog-quote {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  background: var(--accent-soft);
  overflow-wrap: anywhere;
}
.dialog-error { margin: 10px 0 0; color: var(--warn-ink); font-weight: 650; }
.dialog-error[hidden] { display: none; }
.field-label { display: block; margin-bottom: 6px; font-weight: 650; font-size: 0.875rem; }
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}
.button-quiet, .button-strong {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.button-quiet { border: 1.5px solid var(--vote-edge); background: transparent; color: var(--ink); }
.button-strong { border: 0; background: var(--accent); color: var(--on-accent); }
.button-danger { background: var(--danger-bg); color: var(--on-danger); }

/* Reduced motion: no drift, wobble, shimmer or orbit; arrivals become plain fades. */
@media (prefers-reduced-motion: reduce) {
  .title-void, .composer, .loading, .empty-mark ellipse, .sink-icon,
  .post[data-state="sinking"] .card, .post[data-state="falling"] .card { animation: none !important; }
  .post[data-state="sinking"] .card, .post[data-state="falling"] .card { translate: none; }
  .post.arriving .card, .post.appear .card, .post.intro .card { animation: fade 0.4s ease both !important; }
  .composer.shake { animation: none; }
  .vote.denied { animation: none; }
  .vote:hover .vote-icon, .launch[data-busy] .launch-icon { animation: none; }
  .toast, .toast.leaving, .dialog[open] { animation-name: fade; }
  .toast.leaving { animation-direction: reverse; }
  .life-fill { transition: none; }
}

@keyframes fade { from { opacity: 0; } }
