:root {
  --bg: #15120f;
  --bg-raise: #1e1915;
  --bg-soft: #241f1a;
  --ink: #f6efe6;
  --muted: #b9ab9a;
  --faint: #84786b;
  --line: #3c342b;
  --line-soft: #2d2720;
  --accent: #c48a4e;
  --accent-ink: #1a1308;
  --accent-2: #8aa392;
  --you: #c48a4e;
  --them: #8aa392;
  --danger: #c46a55;
  --warn: #c9a35a;
  --ok: #8aa392;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Source Sans 3", "Avenir Next", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --radius: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
::selection { background: rgba(196, 138, 78, 0.35); color: var(--ink); }
::placeholder { color: #a89886; opacity: 1; }

:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 82%, white);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 8;
  transform: translateY(-160%);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
}
.skip:focus { transform: none; }

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  background-color: var(--bg);
  background-image:
    radial-gradient(880px 460px at 12% -12%, rgba(196, 138, 78, 0.14), transparent 58%),
    radial-gradient(720px 400px at 92% 8%, rgba(138, 163, 146, 0.09), transparent 52%),
    radial-gradient(500px 280px at 50% 100%, rgba(196, 138, 78, 0.04), transparent 60%),
    linear-gradient(180deg, rgba(255, 246, 232, 0.03), transparent 32%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-attachment: fixed;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px 72px;
}

.page-enter {
  animation: rise 520ms var(--ease) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes dash-shift {
  to { stroke-dashoffset: -18; background-position: 18px 0; }
}

@keyframes seal-breathe {
  0%, 100% { border-color: var(--line); opacity: 1; }
  50% { border-color: rgba(196, 138, 78, 0.45); }
}

@keyframes lamp-glow {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.85; }
}

@keyframes letter-settle {
  from { opacity: 0; transform: translateY(14px) rotate(-0.4deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.7; }
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 16px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 28px;
  position: sticky;
  top: 0;
  z-index: 4;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
}

.brand {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand small {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 4px;
  font-weight: 500;
}

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}
.nav a {
  color: var(--muted);
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: none;
}
.nav a[aria-current="page"] {
  box-shadow: inset 0 -1px 0 var(--accent);
}
.nav form { margin: 0; }
.who { color: var(--ink); font-weight: 500; }
.nav-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-badge .count {
  min-width: 1.4em;
  height: 1.4em;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(201, 149, 74, 0.18);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  display: inline-grid;
  place-items: center;
}

.flashes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 22px;
}
.flash {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px 11px 14px;
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: var(--radius);
  background: rgba(28, 24, 20, 0.85);
  color: var(--muted);
  font-size: 14px;
  animation: rise 420ms var(--ease) both;
}
.flash-dismiss {
  background: transparent;
  color: var(--faint);
  padding: 0 2px;
  min-width: 28px;
  min-height: 28px;
  font-size: 18px;
  line-height: 1;
}
.flash-dismiss:hover { color: var(--ink); filter: none; }
.flash.ok { border-left-color: var(--ok); }
.flash.warn { border-left-color: var(--warn); color: #e6d3a8; }
.flash.error { border-left-color: var(--danger); color: #ecc4ba; }

.hero { margin-bottom: 8px; }
.hero h1, .page-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 5vw, 46px);
  letter-spacing: -0.03em;
  margin: 6px 0 10px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}
.lede {
  color: var(--muted);
  max-width: 52ch;
  font-size: 17px;
  margin: 0;
  line-height: 1.6;
}

.grid {
  display: grid;
  grid-template-columns: 1.45fr 0.8fr;
  gap: 36px;
  margin-top: 32px;
  align-items: start;
}
@media (max-width: 880px) {
  .grid, .topic-layout { grid-template-columns: 1fr; }
  .wrap { padding: 0 16px 56px; }
  .topbar { flex-wrap: wrap; position: static; backdrop-filter: none; background: transparent; }
  .nav { flex-wrap: wrap; justify-content: flex-end; gap: 12px 14px; }
  .chat-panel { position: static; max-height: none; }
  .chat-log { max-height: 42vh; }
  button, .btn { min-height: 42px; }
  .writing:target { margin-left: 0; padding-left: 0; }
}

.panel {
  background: color-mix(in srgb, var(--bg-raise) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}

.topic-list { display: flex; flex-direction: column; gap: 10px; }
.topic-row {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 248, 236, 0.025), transparent 70%), var(--bg-soft);
  color: inherit;
  transition: border-color 180ms var(--ease), transform 180ms var(--ease);
}
.topic-row:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  text-decoration: none;
  transform: translateY(-1px);
}
.topic-row h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.meta { color: var(--faint); font-size: 13px; }
.counts {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  align-items: center;
}

form { margin: 0; }

label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 14px 0 7px;
}
input[type="text"],
input[type="password"],
textarea {
  width: 100%;
  background: #100e0c;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  font: inherit;
  transition: border-color 160ms var(--ease);
}
input:focus, textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 60%, var(--line));
}
textarea {
  min-height: 140px;
  resize: vertical;
  font-family: var(--serif);
  line-height: 1.65;
  font-size: 17px;
}
textarea.chat-input {
  min-height: 78px;
  font-family: var(--sans);
  font-size: 15px;
}

button, .btn {
  appearance: none;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 140ms var(--ease), filter 140ms var(--ease);
}
button:hover, .btn:hover {
  filter: brightness(1.05);
  text-decoration: none;
}
button:active, .btn:active { transform: translateY(1px); }
button:disabled, .btn:disabled {
  opacity: 0.55;
  cursor: progress;
  transform: none;
}
button.ghost, .btn.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}
button.full, .btn.full { width: 100%; margin-top: 16px; }

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 20px;
  position: relative;
  overflow: hidden;
}
.login-shell::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 60%;
  background:
    radial-gradient(closest-side, rgba(196, 138, 78, 0.2), transparent 72%),
    radial-gradient(closest-side at 78% 42%, rgba(138, 163, 146, 0.14), transparent 68%);
  pointer-events: none;
  animation: lamp-glow 6s ease-in-out infinite;
}
.login-card {
  width: min(440px, 100%);
  position: relative;
  z-index: 1;
  animation: rise 640ms var(--ease) both;
}
.login-card .brand-mark {
  font-family: var(--serif);
  font-size: clamp(42px, 8vw, 56px);
  font-weight: 500;
  letter-spacing: -0.035em;
  margin: 0 0 8px;
  line-height: 1;
}
.login-card .eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 18px;
}
.login-card .lede { margin-bottom: 18px; }
.error { color: var(--danger); font-size: 14px; }

.topic-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.72fr);
  gap: 28px;
  align-items: start;
}

.writing {
  border-top: 1px solid var(--line-soft);
  padding: 26px 0 10px;
  scroll-margin-top: 88px;
  animation: rise 480ms var(--ease) both;
}
.writing:target {
  border-radius: 12px;
  margin-left: -14px;
  padding-left: 14px;
  background: linear-gradient(90deg, rgba(196, 138, 78, 0.1), transparent 72%);
}
.writing h3 {
  font-family: var(--serif);
  font-weight: 500;
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.prose {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.72;
  color: #f7f1e8;
  max-width: 66ch;
  overflow-wrap: break-word;
}
.prose p { margin: 0 0 1em; }
.prose h1, .prose h2, .prose h3, .prose h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 1.25em 0 0.4em;
}
.prose h1 { font-size: 1.55em; }
.prose h2 { font-size: 1.32em; }
.prose h3 { font-size: 1.16em; }
.prose h4 { font-size: 1.05em; }
.prose blockquote {
  margin: 0 0 1em;
  padding: 0.05em 0 0.05em 1em;
  border-left: 2px solid color-mix(in srgb, var(--accent) 60%, var(--line));
  color: var(--muted);
  font-style: italic;
}
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.25em; }
.prose li { margin: 0.28em 0; }
.prose a { text-underline-offset: 3px; }
.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.6em 0;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1em;
  font-family: var(--sans);
  font-size: 0.92em;
}
.prose th, .prose td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 7px 8px;
  vertical-align: top;
}
.prose code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: rgba(0, 0, 0, 0.28);
  padding: 0.08em 0.35em;
  border-radius: 4px;
}
.prose pre {
  background: #0d0c0b;
  padding: 14px;
  overflow: auto;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 14px;
  border: 1px solid var(--line-soft);
}
.prose pre code { background: none; padding: 0; font-size: inherit; }
.author-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--you);
  display: inline-block;
}
.dot.them { background: var(--them); }
.dot.live { animation: pulse-dot 1.6s ease-in-out infinite; }

.comments {
  margin-top: 16px;
  padding: 14px;
  background: rgba(15, 13, 11, 0.7);
  border-radius: 10px;
  border: 1px solid var(--line-soft);
}
.comment {
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}
.comment:last-child { border-bottom: 0; }
.comment .body { white-space: pre-wrap; }

.chat-panel {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 108px);
  display: flex;
  flex-direction: column;
}
.chat-log {
  flex: 1;
  overflow: auto;
  min-height: 280px;
  max-height: 52vh;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
}
.bubble {
  max-width: 92%;
  padding: 9px 12px;
  border-radius: 10px;
  background: #2a241c;
  font-size: 14px;
  animation: rise 280ms var(--ease) both;
}
.bubble.mine {
  background: #3a2e16;
  align-self: flex-end;
}
.bubble.pending { opacity: 0.62; }
.bubble.pending .who::after { content: " · waiting"; }
.bubble .who {
  font-size: 11px;
  color: var(--faint);
  margin-bottom: 3px;
}
.chat-empty {
  margin: 6px 0 0;
  color: var(--faint);
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.5;
}
.chat-log:has(.bubble) .chat-empty { display: none; }
.chat-hint {
  margin: 8px 0 0;
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.01em;
}

.archive-topic {
  margin: 0 0 52px;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
}
.archive-topic h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 32px;
  margin: 18px 0 8px;
  letter-spacing: -0.02em;
}
.prompt {
  color: var(--muted);
  font-style: italic;
  font-family: var(--serif);
}

.empty {
  color: var(--faint);
  padding: 8px 0 18px;
  max-width: 46ch;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.55;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin: 16px 0 28px;
}
.section-label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 14px;
}
.section-block { margin-bottom: 34px; }
.section-block + .section-block { margin-top: 8px; }

.badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(0, 0, 0, 0.18);
}
.badge.private { color: #c4b8a8; border-color: #4a433a; }
.badge.offered {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
}
.badge.shared {
  color: var(--accent-2);
  border-color: color-mix(in srgb, var(--accent-2) 55%, var(--line));
}

.sealed {
  color: var(--muted);
  font-style: italic;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 7px,
      rgba(201, 149, 74, 0.035) 7px,
      rgba(201, 149, 74, 0.035) 14px
    ),
    #151310;
  border: 1px dashed var(--line);
  padding: 14px 16px;
  border-radius: 10px;
  animation: seal-breathe 3.4s ease-in-out infinite;
}

.consent-shell {
  min-height: calc(100vh - 140px);
  display: grid;
  place-items: center;
  padding: 12px 0 40px;
}
.consent-letter {
  width: min(560px, 100%);
  padding: 36px 34px 30px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:
    linear-gradient(165deg, rgba(255, 246, 232, 0.055), transparent 42%),
    linear-gradient(180deg, rgba(196, 138, 78, 0.04), transparent 50%),
    var(--bg-raise);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
  animation: letter-settle 700ms var(--ease) both;
  position: relative;
}
.consent-letter::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(196, 138, 78, 0.16);
  border-radius: 10px;
  pointer-events: none;
}
.consent-letter::after {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 138, 78, 0.35), transparent);
}
.consent-letter .eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.consent-letter .page-title {
  font-size: clamp(28px, 4vw, 36px);
  margin-top: 0;
}
.consent-letter .kept-since {
  margin: 0 0 8px;
}
.presence {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--faint);
  margin: 0 0 12px;
  min-height: 1.2em;
}

.incoming-band {
  margin: 28px 0 8px;
  padding: 20px 22px;
  border-radius: 14px;
  border: 1px dashed color-mix(in srgb, var(--accent) 40%, var(--line));
  background:
    linear-gradient(135deg, rgba(196, 138, 78, 0.07), transparent 55%),
    rgba(196, 138, 78, 0.04);
  animation: rise 500ms var(--ease) both;
}
.incoming-band h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  margin: 0 0 6px;
}
.between-line {
  letter-spacing: 0.04em;
}
.between-line::before,
.between-line::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--line);
  vertical-align: middle;
  margin: 0 10px;
}
.kept-since {
  color: var(--muted);
  font-style: italic;
}
.shared-row {
  border-color: color-mix(in srgb, var(--accent-2) 28%, var(--line-soft));
}

.table-moments,
.table-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.table-moment,
.table-card,
.table-highlight {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 248, 236, 0.025), transparent 70%), var(--bg-soft);
  color: inherit;
}
.table-moment:hover,
.table-highlight:hover {
  border-color: color-mix(in srgb, var(--accent-2) 45%, var(--line));
  text-decoration: none;
}
.table-card {
  padding: 22px;
  border-color: color-mix(in srgb, var(--accent-2) 28%, var(--line-soft));
}
.table-card h3,
.table-moment h3,
.table-highlight h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.table-card h3 { font-size: 26px; }
.table-moment h3,
.table-highlight h4 { font-size: 20px; }
.table-moment .kind,
.table-highlight .kind {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 8px;
}
.table-highlight {
  margin-top: 14px;
}
.table-waiting {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}
.table-waiting-item {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px dashed color-mix(in srgb, var(--accent) 40%, var(--line));
  border-radius: 10px;
  color: inherit;
  background: rgba(196, 138, 78, 0.04);
}
.table-waiting-item:hover {
  text-decoration: none;
  border-color: color-mix(in srgb, var(--accent) 60%, var(--line));
}
.compose-panel {
  position: relative;
  overflow: hidden;
}
.compose-panel::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(196, 138, 78, 0.12), transparent 70%);
  pointer-events: none;
  animation: lamp-glow 5.5s ease-in-out infinite;
}
.compose-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  margin: 0 0 6px;
}
.panel-note {
  color: var(--faint);
  font-size: 13px;
  margin: 0 0 8px;
}
code {
  font-family: var(--mono);
  font-size: 0.9em;
  color: #d9cbb8;
}

.incoming-list {
  margin-top: 14px;
}
.compose-gap {
  margin-top: 28px;
}
.compose-gap-sm {
  margin-top: 18px;
}
.chat-compose {
  margin-top: 12px;
}
.agent-draft {
  margin-bottom: 14px;
}
.offer-band {
  margin: 0 0 22px;
  border-color: var(--accent);
}
.offer-band .lede {
  margin: 4px 0 12px;
}
.drafting {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.drafting .compose-title {
  font-size: 19px;
}
.drafting .actions {
  margin-top: 8px;
}
.edit-fold {
  margin: 10px 0 16px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.18);
}
.edit-fold summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.edit-form {
  margin-top: 10px;
}
.edit-fold .panel-note { margin-top: 10px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  body {
    background: #fff;
    color: #1a1308;
  }
  .topbar, .skip, .flashes, .actions, .chat-panel, .compose-panel,
  .compose-gap, .compose-gap-sm, .edit-fold, .incoming-band, form {
    display: none !important;
  }
  .wrap { max-width: none; padding: 0; }
  .hero h1, .page-title, .prose, .archive-topic h2, a { color: #1a1308; }
  .prose { max-width: none; }
  .writing { break-inside: avoid; border-color: #ddd; }
  .badge { border-color: #bbb; color: #333; }
}
