:root {
  --bg: #0b0b0d;
  --surface: #121216;
  --surface-raised: #19191f;
  --line: #2a2a31;
  --line-bright: #3a3a43;
  --text: #f3f3f5;
  --muted: #9696a2;
  --dim: #686873;
  --accent: #d8ff3e;
  --accent-text: #101104;
  --mention: #69a7ff;
  --mention-text: #07101f;
  --heard: #ad8cff;
  --heard-text: #d8ccff;
  --agree: #63c8b3;
  --agree-text: #b8efe4;
  --disagree: #e27689;
  --disagree-text: #ffc0cb;
  --dice: #efb36d;
  --dice-text: #ffd4a2;
  --live: #ff3b57;
  --danger: #ff5266;
  --success: #61d68a;
  --max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 88% 2%, rgba(216, 255, 62, 0.055), transparent 24rem),
    var(--bg);
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 4px;
  content: "";
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--accent);
  color: var(--accent-text);
}

.site-header,
.room-header {
  position: relative;
  z-index: 20;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(11, 11, 13, 0.88);
  backdrop-filter: blur(16px);
}

.site-header {
  position: sticky;
  top: 0;
}

.logo {
  flex: none;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.logo span {
  color: var(--accent);
}

.logo-small {
  font-size: 18px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.header-actions form {
  margin: 0;
}

.account-menu-cluster {
  display: flex;
  align-items: center;
  gap: 16px;
}

.account-bell {
  position: relative;
  display: inline-grid;
  width: 30px;
  height: 30px;
  flex: none;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(18, 18, 22, 0.76);
  color: var(--dim);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.account-bell svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-bell:hover,
.account-bell:focus-visible {
  border-color: var(--line-bright);
  color: var(--text);
}

.account-bell.has-news {
  color: var(--heard-text);
}

.account-bell b {
  position: absolute;
  top: -7px;
  right: -7px;
  display: inline-grid;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  place-items: center;
  background: var(--heard);
  color: #0c0813;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
}

.locale-switch {
  display: inline-grid;
  height: 30px;
  flex: none;
  grid-template-columns: 23px 18px 23px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 0 5px;
  background: rgba(18, 18, 22, 0.76);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.012);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  line-height: 1;
}

.locale-switch:hover {
  border-color: var(--line-bright);
}

.locale-switch a {
  position: relative;
  display: grid;
  height: 100%;
  place-items: center;
  color: var(--dim);
  transition: color 160ms ease;
}

.locale-switch a:hover,
.locale-switch a.is-active {
  color: var(--text) !important;
}

.locale-switch a.is-active::after {
  position: absolute;
  right: 3px;
  bottom: 5px;
  left: 2px;
  height: 2px;
  background: var(--heard);
  box-shadow: 3px 0 0 rgba(105, 167, 255, 0.22);
  content: "";
  transform: rotate(-2deg);
}

.locale-switch a:focus-visible {
  outline: 1px solid var(--heard);
  outline-offset: 2px;
}

.locale-switch-track {
  position: relative;
  width: 16px;
  height: 8px;
  justify-self: center;
  border: 1px solid var(--line-bright);
  background: #09090b;
}

.locale-switch-track i {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 5px;
  height: 4px;
  background: var(--heard);
  box-shadow: 0 0 5px rgba(173, 140, 255, 0.32);
  transition: transform 180ms ease-out;
}

.locale-switch.is-en .locale-switch-track i {
  transform: translateX(7px);
}

.header-actions a:not(.button-accent):hover,
.text-button:hover {
  color: var(--text);
}

.viewer-name {
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}

.account-menu {
  position: relative;
  z-index: 80;
}

.account-menu > summary {
  display: inline-flex;
  max-width: 180px;
  align-items: center;
  overflow: hidden;
  padding: 8px 0;
  outline: none;
  cursor: pointer;
  list-style: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu > summary::-webkit-details-marker {
  display: none;
}

.account-menu > summary::after {
  width: 4px;
  height: 4px;
  margin-left: 7px;
  border-right: 1px solid var(--dim);
  border-bottom: 1px solid var(--dim);
  content: "";
  transform: rotate(45deg) translateY(-2px);
}

.account-menu > summary:hover,
.account-menu[open] > summary {
  color: var(--heard-text);
}

.account-menu[open] > summary {
  box-shadow: inset 0 -2px 0 var(--heard);
}

.account-menu > summary:focus-visible {
  box-shadow: inset 0 -2px 0 var(--heard);
}

.account-menu > summary.has-warning > span {
  display: inline-grid;
  width: 15px;
  height: 15px;
  margin-left: 7px;
  place-items: center;
  background: var(--danger);
  color: #fff;
  font-size: 9px;
  line-height: 1;
}

.account-menu > summary.has-messages > span {
  display: inline-grid;
  min-width: 17px;
  height: 17px;
  margin-left: 7px;
  padding: 0 4px;
  place-items: center;
  background: var(--heard);
  color: #0c0813;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}

.account-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 156px;
  border: 1px solid var(--line-bright);
  border-top: 2px solid var(--heard);
  background: var(--surface);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.34);
}

.account-menu-panel > a,
.account-menu-panel button {
  display: block;
  width: 100%;
  border: 0;
  padding: 11px 13px;
  background: transparent;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  text-align: left;
}

.account-menu-panel form {
  border-top: 1px solid var(--line);
}

.account-menu-panel > a:hover {
  background: rgba(173, 140, 255, 0.09);
  color: var(--heard-text) !important;
}

.account-menu-panel > a.account-menu-messages {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.account-menu-messages b {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  place-items: center;
  background: var(--heard);
  color: #0c0813;
  font-size: 9px;
}

.account-menu-panel > a.account-menu-warning {
  border-bottom: 1px solid var(--line);
  color: #ff9daa;
}

.account-menu-panel > a.account-menu-warning:hover {
  background: rgba(255, 82, 102, 0.08);
  color: #ffc0c8 !important;
}

.account-menu-panel button:hover {
  background: rgba(255, 82, 102, 0.07);
  color: #ff9daa;
}

.text-button {
  border: 0;
  padding: 0;
  background: none;
  color: var(--muted);
}

.hero {
  display: grid;
  max-width: var(--max);
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  align-items: center;
  gap: 8vw;
  padding: 80px 24px;
}

.eyebrow,
.panel-label {
  margin: 0 0 18px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 5px rgba(255, 59, 87, 0.12);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 9px rgba(255, 59, 87, 0);
    opacity: 0.7;
  }
}

.hero h1 {
  max-width: 830px;
  margin: 0;
  font-size: clamp(62px, 8.1vw, 124px);
  font-weight: 900;
  letter-spacing: -0.078em;
  line-height: 0.79;
}

.hero .hero-name {
  display: flex;
  align-items: baseline;
  gap: clamp(12px, 2.5vw, 34px);
  font-size: clamp(88px, 12vw, 176px);
  line-height: 0.82;
  white-space: nowrap;
}

.hero-name > span {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.21em;
  font-weight: 700;
  letter-spacing: 0;
}

.hero-meaning {
  max-width: 780px;
  margin-top: 48px;
}

.hero-meaning p {
  display: grid;
  margin: 0;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 18px;
  padding: 13px 2px;
  font-size: clamp(14px, 1.35vw, 18px);
  line-height: 1.45;
}

.hero-meaning strong {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.82em;
  letter-spacing: 0.04em;
}

.hero-meaning span {
  color: #c5c5cc;
}

.button {
  display: inline-flex;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 2px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: 150ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-accent {
  background: var(--accent);
  color: var(--accent-text);
}

.button-accent:hover {
  background: #e5ff7a;
  color: var(--accent-text);
}

.create-post-button {
  position: relative;
  overflow: hidden;
  border-color: var(--line-bright);
  background: rgba(25, 25, 31, 0.82);
  box-shadow: none;
  color: var(--text);
  transform: none;
}

.create-post-button::before {
  position: absolute;
  right: 12px;
  bottom: 5px;
  left: 12px;
  height: 3px;
  background: var(--accent);
  clip-path: polygon(0 36%, 98% 0, 100% 72%, 3% 100%);
  content: "";
  opacity: 0.72;
  pointer-events: none;
  transform: scaleX(0.24);
  transform-origin: left center;
  transition:
    opacity 180ms ease,
    transform 260ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.create-post-button > span {
  position: relative;
  z-index: 1;
}

.create-post-button:hover {
  border-color: #555560;
  background: var(--surface-raised);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.28);
  color: var(--text);
  transform: translateY(-2px);
}

.create-post-button:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

.create-post-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.button-ghost {
  border-color: var(--line-bright);
  background: var(--surface);
}

.button-ghost:hover {
  border-color: var(--muted);
}

.button-small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 12px;
}

.join-form {
  max-width: 620px;
  margin-top: 40px;
}

.join-row {
  display: flex;
}

.join-row input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line-bright);
  border-right: 0;
  border-radius: 2px 0 0 2px;
  outline: none;
  padding: 15px 18px;
  background: var(--surface);
  font-size: 16px;
}

.join-row input:focus {
  border-color: var(--accent);
}

.join-row .button {
  border-radius: 0 2px 2px 0;
}

.hero-signal {
  position: relative;
  min-height: 410px;
}

.mask-stage {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.theatre-masks {
  width: min(100%, 440px);
  margin: 0 auto;
  overflow: visible;
  filter: drop-shadow(0 24px 45px rgba(0, 0, 0, 0.5));
}

.mask {
  transform-box: fill-box;
  transform-origin: center;
}

.mask-joy {
  transform: translate(-20px, 48px) rotate(-8deg) scale(0.88);
}

.mask-sorrow {
  transform: translate(34px, 54px) rotate(9deg) scale(0.88);
}

.mask-doubt {
  transform: translate(0, -4px) scale(0.94);
}

.mask-face,
.mask-shadow {
  stroke-linejoin: bevel;
  stroke-width: 3;
}

.mask-face {
  fill: var(--surface-raised);
  stroke: var(--text);
}

.mask-shadow {
  fill: none;
  stroke: var(--accent);
  stroke-width: 8;
}

.mask-sorrow .mask-shadow {
  stroke: var(--live);
}

.mask-doubt .mask-shadow {
  opacity: 0.34;
  stroke: var(--text);
}

.mask-eye,
.mask-brow,
.mask-cut,
.mask-split,
.mask-mark,
.masks-cross {
  fill: none;
  stroke: var(--text);
  stroke-linecap: square;
  stroke-width: 6;
}

.mask-brow,
.mask-cut {
  stroke: var(--muted);
  stroke-width: 4;
}

.mask-split {
  opacity: 0.18;
  stroke: var(--muted);
  stroke-dasharray: 4 9;
  stroke-width: 2;
}

.mask-mark {
  stroke-width: 5;
}

.mask-mark-left {
  stroke: var(--accent);
}

.mask-mark-right {
  stroke: var(--live);
}

.mask-mouth {
  fill: var(--bg);
  stroke: var(--text);
  stroke-width: 4;
}

.mask-joy .mask-mouth {
  fill: var(--accent);
  stroke: var(--accent);
}

.mask-doubt .mask-mouth {
  fill: none;
  stroke-linecap: square;
  stroke-linejoin: bevel;
  stroke-width: 6;
}

.mask-tear {
  fill: var(--live);
}

.masks-cross {
  opacity: 0.14;
  stroke: var(--muted);
  stroke-dasharray: 5 11;
  stroke-width: 2;
}

.content-section {
  max-width: var(--max);
  min-height: calc(100vh - 150px);
  margin: 0 auto;
  padding: 72px 24px 96px;
}

.topics-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.topics-heading h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 66px);
  letter-spacing: -0.055em;
  line-height: 1;
}

.selected-tag-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.selected-tag-heading h2 {
  overflow-wrap: anywhere;
}

.tag-reset {
  display: grid;
  width: 38px;
  height: 38px;
  flex: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 24px;
  line-height: 1;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.tag-reset:hover {
  border-color: var(--accent);
  color: var(--accent);
}

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

.feed-filters {
  display: flex;
  gap: 6px;
}

/* The language switch is deliberately quieter than the feed filters: it is
   chosen once and then left alone, unlike the tabs next to it. */
.feed-language {
  display: flex;
  gap: 4px;
  margin-right: 10px;
}

.feed-language a {
  border: 1px solid transparent;
  padding: 9px 8px;
  color: var(--dim);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.feed-language a.is-active {
  border-color: var(--line);
  color: var(--text);
}

.feed-language-hint {
  margin: 0 0 18px;
  font-size: 12px;
}

.feed-language-hint a {
  color: var(--dim);
  text-decoration: underline;
}

.feed-language-hint a:hover,
.feed-language-hint a:focus-visible {
  color: var(--text);
}

@media (max-width: 620px) {
  .feed-language {
    margin-right: 0;
  }
}

.feed-filters a,
.tag-cloud a {
  border: 1px solid var(--line);
  padding: 9px 13px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.feed-filters a:hover,
.tag-cloud a:hover {
  border-color: var(--line-bright);
  color: var(--text);
}

.feed-filters a.is-active,
.tag-cloud a.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #090a0b;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -8px 0 32px;
}

.live-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.live-card {
  min-height: 310px;
  padding: 28px;
  background: var(--surface);
  transition: background 160ms ease;
}

.live-card:hover {
  background: var(--surface-raised);
}

.live-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
}

.live-badge,
.archive-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--live);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.live-badge > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 4px rgba(255, 59, 87, 0.1);
}

.archive-badge {
  color: var(--muted);
}

.live-card h3 {
  max-width: 560px;
  margin: 48px 0 10px;
  font-size: clamp(25px, 3vw, 38px);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.live-card h3 a:hover,
.topic-main h3 a:hover {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--text);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

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

.room-metrics {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 12px;
}

.room-metrics strong {
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 18px;
}

.card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 13px;
  font-weight: 750;
}

.card-link span {
  color: var(--accent);
  font-size: 20px;
}

.topics-block {
  margin-top: 0;
}

.topics-block.topics-after-live {
  margin-top: 72px;
}

.following-feed-empty {
  max-width: 560px;
  margin: 72px 4px 0;
  color: var(--dim);
  font-size: 15px;
  line-height: 1.7;
}

.topic-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  padding: 25px 4px;
}

.topic-row + .topic-row {
  border-top: 1px solid var(--line);
}

.avatar,
.message-avatar {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: none;
  place-items: center;
  border: 1px solid var(--line-bright);
  border-radius: 50%;
  background: var(--surface-raised);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
}

.topic-main h3 {
  margin: 0 0 8px;
  font-size: 21px;
  letter-spacing: -0.025em;
}

.topic-main p {
  max-width: 760px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.topic-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 12px;
}

.topic-meta span,
.topic-meta a {
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
}

.topic-meta a {
  color: var(--muted);
}

.topic-meta a:hover {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 3px;
}

.topic-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.topic-reaction {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 8px;
  border: 1px solid #ece8d8;
  border-radius: 2px;
  padding: 0 10px 0 8px;
  background: #ece8d8;
  box-shadow:
    inset 0 -3px 0 var(--heard),
    3px 3px 0 rgba(45, 35, 66, 0.62);
  color: #151419;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1;
  transform: rotate(-0.35deg);
}

.topic-reaction::before {
  color: #68636c;
  content: attr(data-channel);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.topic-reaction b {
  color: #4f386e;
  font-size: 10px;
}

.inline-tag {
  color: var(--dim);
}

.inline-tag:hover {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 3px;
}

.topic-status {
  display: inline-flex;
  width: 96px;
  align-items: center;
  gap: 8px;
  align-self: center;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topic-status > span {
  width: 6px;
  height: 6px;
  border: 1px solid var(--dim);
  border-radius: 50%;
}

.topic-status[href]:hover {
  color: var(--text);
}

.topic-status[href]:hover > span {
  border-color: var(--text);
}

.topic-status.is-live {
  color: var(--live);
}

.topic-status.is-live span {
  border-color: var(--live);
  background: var(--live);
  box-shadow: 0 0 0 4px rgba(255, 59, 87, 0.1);
}

.topic-status.is-archive > span {
  border-color: var(--accent);
}

.site-footer {
  display: grid;
  max-width: var(--max);
  margin: 0 auto;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 30px 24px 42px;
  color: var(--dim);
  font-size: 11px;
}

.site-footer p,
.footer-culture-link {
  justify-self: end;
  margin: 0;
  color: var(--muted);
}

.footer-culture-link {
  transition: color 140ms ease;
}

.footer-culture-link:hover {
  color: var(--text);
}

.culture-page {
  overflow: hidden;
}

.culture-hero,
.culture-section,
.culture-closing {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding-right: 24px;
  padding-left: 24px;
}

.culture-hero {
  display: grid;
  min-height: calc(100vh - 72px);
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: clamp(48px, 9vw, 130px);
  padding-top: 90px;
  padding-bottom: 100px;
}

.culture-kicker {
  margin: 0 0 20px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.culture-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(70px, 10vw, 150px);
  font-weight: 950;
  letter-spacing: -0.085em;
  line-height: 0.82;
}

.culture-hero-copy > p:last-child {
  max-width: 680px;
  margin: 42px 0 0;
  color: var(--text);
  font-size: clamp(19px, 2.2vw, 28px);
  line-height: 1.45;
}

.club-card {
  position: relative;
  display: grid;
  min-height: 510px;
  align-content: center;
  gap: 40px;
  padding: 58px 48px;
  background: var(--accent);
  clip-path: polygon(2% 1%, 98% 0, 100% 96%, 5% 100%, 0 7%);
  color: var(--accent-text);
  filter: drop-shadow(15px 18px 0 rgba(0, 0, 0, 0.24));
  transform: rotate(1.2deg);
}

.club-card-label,
.club-card small {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.club-card-label {
  position: absolute;
  top: 24px;
  left: 28px;
}

.club-card p {
  max-width: 420px;
  margin: 10px 0 0;
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.club-card > strong {
  position: absolute;
  right: 25px;
  bottom: 18px;
  font-size: 36px;
  font-weight: 950;
  letter-spacing: -0.09em;
  transform: rotate(-3deg);
}

.culture-section {
  padding-top: 110px;
  padding-bottom: 120px;
}

.culture-section-head {
  display: grid;
  max-width: 930px;
  margin-bottom: 65px;
}

.culture-code .culture-section-head {
  max-width: 1180px;
}

.culture-section-head h2,
.culture-closing h2 {
  margin: 0;
  font-size: clamp(46px, 7vw, 92px);
  font-weight: 950;
  letter-spacing: -0.075em;
  line-height: 0.92;
}

.culture-section-head > p:last-child:not(.culture-kicker) {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.culture-rules {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
}

.culture-rules li {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  padding: 38px;
  background: var(--surface);
}

.culture-rules li:nth-child(3n + 2) {
  background: #151519;
}

.culture-rules li > span {
  position: absolute;
  top: 15px;
  right: 25px;
  color: rgba(216, 255, 62, 0.16);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 92px;
  font-weight: 950;
  letter-spacing: -0.1em;
  line-height: 1;
}

.culture-rules h3,
.culture-boundaries h3,
.moderator-code h3 {
  position: relative;
  max-width: 440px;
  margin: 92px 0 12px;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.045em;
  line-height: 1;
}

.culture-rules p,
.culture-boundaries p,
.moderator-code > p:last-child {
  position: relative;
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.culture-red-line {
  position: relative;
}

.culture-red-line::before {
  position: absolute;
  top: 0;
  right: 24px;
  left: 24px;
  height: 3px;
  background: var(--live);
  content: "";
}

.culture-red-line .culture-kicker {
  color: var(--live);
}

.culture-boundaries {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.culture-boundaries article {
  position: relative;
  min-height: 300px;
  padding: 36px;
  background: var(--surface);
}

.culture-boundaries article:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  min-height: 220px;
}

.culture-boundaries article > span {
  color: var(--live);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.culture-boundaries h3 {
  margin-top: 54px;
}

.culture-practice {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  gap: clamp(50px, 10vw, 150px);
}

.culture-practice .culture-section-head {
  margin: 0;
}

.culture-practice-list {
  margin: 0;
  padding: 0;
  counter-reset: practice;
  list-style: none;
}

.culture-practice-list li {
  position: relative;
  min-height: 82px;
  padding: 8px 0 24px 58px;
  color: var(--text);
  counter-increment: practice;
  font-size: 17px;
  line-height: 1.55;
}

.culture-practice-list li::before {
  position: absolute;
  top: 8px;
  left: 0;
  color: var(--accent);
  content: "0" counter(practice);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
}

.culture-moderation {
  background: var(--surface);
  box-shadow: 0 0 0 100vmax var(--surface);
  clip-path: inset(0 -100vmax);
}

.moderation-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.moderation-steps article {
  min-height: 190px;
  padding: 28px;
  background: var(--bg);
}

.moderation-steps span {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
}

.moderation-steps p {
  margin: 54px 0 0;
  font-size: 15px;
  line-height: 1.55;
}

.moderator-code {
  display: grid;
  margin-top: 70px;
  grid-template-columns: minmax(220px, 0.55fr) minmax(300px, 0.75fr) minmax(300px, 1fr);
  align-items: start;
  gap: 45px;
}

.moderator-code .culture-kicker,
.moderator-code h3 {
  margin: 0;
}

.culture-closing {
  padding-top: 150px;
  padding-bottom: 150px;
  text-align: center;
}

.culture-closing h2 {
  max-width: 920px;
  margin: 0 auto;
}

.culture-brand {
  color: var(--dim);
}

.culture-closing > p:not(.culture-kicker) {
  max-width: 680px;
  margin: 32px auto 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.55;
}

.editor-shell {
  display: grid;
  max-width: 1120px;
  margin: 0 auto;
  grid-template-columns: minmax(280px, 0.65fr) minmax(0, 1.35fr);
  gap: 80px;
  padding: 70px 24px 100px;
}

.back-link {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
}

.back-link:hover {
  color: var(--text);
}

.editor-heading > p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.post-form label {
  display: block;
  margin: 25px 0 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-language-picker {
  display: flex;
  gap: 8px;
  border: 0;
  margin: 0 0 22px;
  padding: 0;
}

.post-language-picker legend {
  width: 100%;
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-form .post-language-option {
  display: inline-block;
  margin: 0;
  cursor: pointer;
}

.post-form .post-language-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.post-language-option span {
  display: grid;
  width: 46px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line-bright);
  background: var(--surface);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
}

.post-language-option input:checked + span {
  border-color: var(--heard);
  box-shadow: inset 0 -3px 0 var(--heard);
  color: var(--text);
}

.post-language-option input:focus-visible + span {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.editor-body-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.editor-mode-tabs {
  display: flex;
  margin-bottom: 9px;
}

.editor-mode-tabs button {
  border: 1px solid var(--line);
  padding: 7px 11px;
  background: transparent;
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.editor-mode-tabs button + button {
  margin-left: -1px;
}

.editor-mode-tabs button.is-active {
  position: relative;
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-text);
}

.post-form input,
.post-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 2px;
  outline: 0;
  padding: 16px;
  background: var(--surface);
}

.post-form input {
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.post-form textarea {
  min-height: 330px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 16px;
  line-height: 1.65;
}

.markdown-toolbar {
  display: flex;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: #0e0e11;
  scrollbar-width: thin;
}

.markdown-toolbar[hidden] {
  display: none;
}

.markdown-toolbar button {
  display: inline-flex;
  min-width: 40px;
  height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  transition:
    background 120ms ease,
    color 120ms ease;
}

.markdown-toolbar button:hover {
  background: var(--surface-raised);
  color: var(--accent);
}

.markdown-toolbar button:focus-visible {
  position: relative;
  z-index: 1;
  outline: 1px solid var(--accent);
  outline-offset: -2px;
  color: var(--accent);
}

.markdown-toolbar .markdown-image-button {
  min-width: 48px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.markdown-toolbar .markdown-image-button.is-uploading {
  animation: toolbar-image-pulse 800ms ease-in-out infinite alternate;
}

.markdown-toolbar .markdown-image-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.editor-image-input {
  display: none;
}

.editor-image-status {
  min-height: 16px;
  margin: 8px 0 0;
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
}

.editor-image-status[hidden] {
  display: none;
}

.editor-image-status[data-state="ready"] {
  color: var(--success);
}

.editor-image-status[data-state="error"] {
  color: var(--danger);
}

.markdown-toolbar + textarea {
  border-radius: 0 0 2px 2px;
}

.editor-counter {
  margin: 6px 0 0;
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  text-align: right;
}

.editor-counter[hidden] {
  display: none;
}

.editor-counter.is-near-limit {
  color: var(--danger);
}

.editor-draft-notice {
  display: flex;
  gap: 12px;
  align-items: baseline;
  border-left: 2px solid var(--accent);
  padding-left: 12px;
  color: var(--dim);
  font-size: 12px;
}

.editor-draft-notice[hidden] {
  display: none;
}

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

.post-form input:focus,
.post-form textarea:focus {
  border-color: var(--accent);
}

.form-error {
  border-left: 2px solid var(--danger);
  padding-left: 12px;
  color: #ff9caa;
}

.markdown-preview {
  min-height: 330px;
  border: 1px solid var(--line);
  padding: 16px;
  background: var(--surface);
}

.markdown-preview[hidden] {
  display: none;
}

.markdown-preview-empty {
  margin: 0;
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
}

.form-notes {
  display: grid;
  gap: 7px;
}

.tag-note {
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
}

.policy-note {
  width: fit-content;
  color: var(--muted);
  font-size: 12px;
}

.policy-note:hover {
  color: var(--accent);
}

.post-page {
  display: grid;
  max-width: 1160px;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 90px;
  padding: 55px 24px 100px;
}

.post-page.post-page-single {
  max-width: 860px;
  grid-template-columns: minmax(0, 1fr);
}

.post-page.post-page-archive {
  gap: 48px;
}

.post-page > .back-link {
  grid-column: 1 / -1;
}

.post-views {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--line-bright);
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
}

.post-views-icon {
  width: 18px;
  height: 12px;
  overflow: visible;
  fill: none;
  stroke: var(--heard-text);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
  transform: rotate(-1.5deg);
}

.post-views-icon circle {
  fill: var(--heard);
  stroke: none;
}

.post-views-count {
  color: var(--muted);
}

.post-article h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 35px 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
}

.post-author-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.post-author small {
  color: var(--muted);
}

.post-edit-link {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
}

.post-edit-link:hover {
  color: var(--text);
}

.post-author-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.post-author-actions form {
  display: flex;
  margin: 0;
}

.post-delete-button {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--dim);
  font-size: 12px;
  line-height: 1;
}

.post-delete-button:hover {
  color: var(--danger);
}

.post-admin-delete-button {
  margin-left: auto;
}

.delete-dialog,
.finish-dialog {
  width: min(460px, calc(100% - 32px));
  border: 1px solid var(--line-bright);
  border-top: 3px solid var(--danger);
  padding: 0;
  background: var(--surface);
  box-shadow: 18px 18px 0 rgba(0, 0, 0, 0.42);
  color: var(--text);
}

.delete-dialog::backdrop,
.finish-dialog::backdrop {
  background: rgba(5, 5, 7, 0.82);
  backdrop-filter: blur(3px);
}

.delete-dialog-inner,
.finish-dialog-inner {
  padding: 28px;
}

.delete-dialog .eyebrow,
.finish-dialog .eyebrow {
  color: var(--danger);
}

.delete-dialog h2,
.finish-dialog h2 {
  margin: 18px 0 10px;
  font-size: 34px;
  letter-spacing: -0.045em;
}

.delete-dialog p:not(.eyebrow),
.finish-dialog p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.admin-delete-reason {
  display: grid;
  gap: 9px;
  margin-top: 22px;
  color: var(--text);
  font-size: 12px;
}

.admin-delete-reason textarea {
  width: 100%;
  min-height: 104px;
  resize: vertical;
}

.admin-delete-dialog .staff-field-error {
  margin-top: 8px;
}

.delete-dialog-actions,
.finish-dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 28px;
}

.delete-dialog-actions .button,
.finish-dialog-actions .button {
  width: 100%;
}

.finish-dialog-confirm {
  border-color: var(--danger);
  background: var(--danger);
  color: #10080a;
}

.finish-dialog-confirm:hover {
  background: #ff7181;
}

.matrix-choice {
  min-height: 48px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.01em;
  transform: rotate(-1deg);
  transition:
    box-shadow 140ms ease,
    filter 140ms ease,
    transform 140ms ease;
}

.matrix-choice-stay {
  border-color: #4d8dff;
  background: #3678e8;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 0 18px rgba(54, 120, 232, 0.18);
  color: #f7fbff;
}

.matrix-choice-delete {
  border-color: var(--danger);
  background: var(--danger);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 0 18px rgba(255, 82, 102, 0.18);
  color: #10080a;
  transform: rotate(1deg);
}

.matrix-choice:hover {
  filter: brightness(1.12);
  transform: translateY(-2px) rotate(0);
}

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

.post-copy {
  font-size: 18px;
  line-height: 1.75;
}

.post-reactions {
  margin-top: 46px;
}

.post-reactions > .eyebrow {
  margin: 0 0 13px;
  color: var(--heard-text);
}

.post-reactions form {
  margin: 0;
}

.post-reaction-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post-reaction-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0 12px 0 9px;
  background: linear-gradient(180deg, #1b1b20, #111115);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    inset 0 -2px 0 rgba(0, 0, 0, 0.42);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    color 140ms ease,
    transform 140ms ease;
}

.post-reaction-button::before {
  color: var(--dim);
  content: attr(data-channel);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.post-reaction-button:not(:disabled):hover {
  border-color: var(--line-bright);
  background: var(--surface-raised);
  color: var(--text);
  transform: translateY(-1px);
}

.post-reaction-button.is-selected {
  border-color: #ece8d8;
  background: #ece8d8;
  box-shadow:
    inset 0 -3px 0 var(--heard),
    3px 3px 0 rgba(45, 35, 66, 0.72);
  color: #151419;
  transform: rotate(-0.45deg);
}

.post-reaction-button.is-selected::before {
  color: #68636c;
}

.post-reaction-button:disabled {
  cursor: default;
}

.post-reaction-count {
  color: inherit;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
}

.post-archive {
  min-width: 0;
  border-top: 2px solid var(--heard);
  padding-top: 28px;
}

.post-archive-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
  padding: 0 8px;
}

.post-archive-heading .eyebrow {
  margin: 0 0 13px;
  color: var(--heard-text);
}

.post-archive-heading h2 {
  margin: 0;
  font-size: clamp(28px, 5vw, 46px);
  letter-spacing: -0.05em;
  line-height: 1;
}

.post-archive-heading > p:last-child {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.post-archive-metrics {
  display: flex;
  flex: none;
  gap: 24px;
}

.post-archive-metrics div {
  display: flex;
  min-width: 70px;
  flex-direction: column;
}

.post-archive-metrics strong {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 17px;
}

.post-archive-metrics span {
  color: var(--dim);
  font-size: 9px;
}

.post-archive-stream {
  padding: 8px 0 4px;
}

.archive-message {
  max-width: none;
  margin-bottom: 4px;
}

.archive-message.is-reply-to-viewer {
  border-left-color: var(--mention);
  background: linear-gradient(90deg, rgba(105, 167, 255, 0.08), rgba(105, 167, 255, 0.02) 72%, transparent);
}

.archive-reply-origin {
  max-width: 100%;
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--dim);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-message-reactions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
}

.archive-reaction {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  border: 1px solid var(--line-bright);
  border-radius: 2px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
}

.archive-reaction.is-heard {
  border-color: var(--heard);
  background: rgba(173, 140, 255, 0.1);
  color: var(--heard-text);
}

.archive-reaction.is-agree {
  border-color: var(--agree);
  background: rgba(99, 200, 179, 0.1);
  color: var(--agree-text);
}

.archive-reaction.is-disagree {
  border-color: var(--disagree);
  background: rgba(226, 118, 137, 0.1);
  color: var(--disagree-text);
}

.post-archive-empty {
  margin: 12px 8px;
  color: var(--dim);
  font-size: 13px;
}

.post-archive-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 8px 4px;
  border-top: 1px dashed var(--line);
}

.post-archive-pagination a {
  color: var(--heard-text);
  font-size: 12px;
  text-decoration: none;
}

.post-archive-pagination a:last-child {
  margin-left: auto;
}

.post-archive-pagination a:hover {
  text-decoration: underline;
}

.markdown-content > :first-child,
.markdown-preview > :first-child {
  margin-top: 0;
}

.markdown-content > :last-child,
.markdown-preview > :last-child {
  margin-bottom: 0;
}

.markdown-content p,
.markdown-preview p {
  margin: 0 0 1.15em;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-preview h1,
.markdown-preview h2,
.markdown-preview h3,
.markdown-preview h4 {
  margin: 1.35em 0 0.55em;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.markdown-content h1,
.markdown-preview h1 {
  font-size: 1.8em;
}

.markdown-content h2,
.markdown-preview h2 {
  font-size: 1.5em;
}

.markdown-content h3,
.markdown-preview h3 {
  font-size: 1.22em;
}

.markdown-content ul,
.markdown-content ol,
.markdown-preview ul,
.markdown-preview ol {
  margin: 0 0 1.2em;
  padding-left: 1.5em;
}

.markdown-content li + li,
.markdown-preview li + li {
  margin-top: 0.35em;
}

.markdown-content blockquote,
.markdown-preview blockquote {
  margin: 1.4em 0;
  border-left: 3px solid var(--accent);
  padding: 0.15em 0 0.15em 1.15em;
  color: var(--muted);
}

.markdown-content blockquote p,
.markdown-preview blockquote p {
  margin: 0;
}

.markdown-content a:not(.inline-tag),
.markdown-preview a:not(.inline-tag) {
  border-bottom: 1px solid color-mix(in srgb, var(--disagree) 72%, transparent);
  color: var(--disagree);
  transition:
    border-color 140ms ease,
    color 140ms ease;
}

.markdown-content a:not(.inline-tag):hover,
.markdown-preview a:not(.inline-tag):hover {
  border-bottom-color: var(--disagree-text);
  color: var(--disagree-text);
}

.markdown-content code,
.markdown-preview code {
  border: 1px solid var(--line);
  padding: 0.12em 0.35em;
  background: var(--surface-raised);
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.86em;
}

.markdown-content pre,
.markdown-preview pre {
  overflow-x: auto;
  margin: 1.4em 0;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-bright);
  padding: 16px;
  background: #0d0d10;
}

.markdown-content pre code,
.markdown-preview pre code {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
}

.markdown-content del,
.markdown-preview del {
  color: var(--dim);
}

.markdown-content hr,
.markdown-preview hr {
  margin: 2em 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.markdown-content img,
.markdown-preview img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(78vh, 900px);
  margin: 1.5em auto;
  border: 1px solid var(--line);
  background: var(--surface);
  object-fit: contain;
}

.markdown-content img[data-image-zoom="ready"],
.markdown-preview img[data-image-zoom="ready"] {
  cursor: zoom-in;
}

.markdown-content .post-video,
.markdown-preview .post-video {
  display: block;
  width: min(100%, 480px);
  max-height: min(75vh, 720px);
  margin: 20px 0;
  border: 1px solid var(--line-bright);
  background: #050506;
  object-fit: contain;
}

.markdown-content img[data-image-zoom="ready"]:focus-visible,
.markdown-preview img[data-image-zoom="ready"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.image-zoom {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 24px;
  background: rgba(7, 7, 9, 0.9);
  contain: layout paint style;
  overflow: hidden;
  opacity: 0;
  transition: opacity 140ms ease-out;
  will-change: opacity;
}

.image-zoom[open] {
  display: grid;
  place-items: center;
}

.image-zoom.is-visible {
  opacity: 1;
}

.image-zoom::backdrop {
  background: rgba(0, 0, 0, 0);
  transition: background-color 140ms ease-out;
}

.image-zoom.is-visible::backdrop {
  background: rgba(0, 0, 0, 0.82);
}

.image-zoom img {
  display: block;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 48px);
  border: 1px solid var(--line-bright);
  background: var(--bg);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.5);
  cursor: zoom-out;
  opacity: 0;
  object-fit: contain;
  transform: translate3d(0, 0, 0) scale(0.985);
  transition:
    opacity 140ms ease-out,
    transform 140ms cubic-bezier(0.2, 0.8, 0.2, 1);
  visibility: hidden;
  will-change: opacity, transform;
}

.image-zoom.is-visible img.is-ready {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  visibility: visible;
}

.image-zoom img:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .image-zoom,
  .image-zoom::backdrop,
  .image-zoom img {
    transition: none;
  }
}

/* Accounts: XOP written into a school notebook. */
.home-auth-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 38px;
}

.home-auth-actions .button {
  min-width: 132px;
  justify-content: center;
}

.account-body {
  background:
    radial-gradient(circle at 15% 22%, rgba(105, 167, 255, 0.07), transparent 25rem),
    radial-gradient(circle at 85% 80%, rgba(173, 140, 255, 0.06), transparent 28rem),
    var(--bg);
}

.auth-shell {
  display: grid;
  width: min(1120px, calc(100% - 48px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  grid-template-columns: minmax(0, 0.8fr) minmax(460px, 1fr);
  align-items: center;
  gap: clamp(48px, 8vw, 112px);
  padding: 72px 0;
}

.auth-intro h1 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(58px, 7vw, 104px);
  letter-spacing: -0.075em;
  line-height: 0.88;
}

.auth-intro > p:last-child {
  max-width: 410px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.notebook-sheet {
  --paper: #eeecd9;
  --paper-ink: #172642;
  --paper-blue: rgba(78, 137, 194, 0.31);
  --paper-red: #d75c67;
  position: relative;
  overflow: hidden;
  color: var(--paper-ink);
  background:
    linear-gradient(
      90deg,
      transparent 0,
      transparent 76px,
      rgba(215, 92, 103, 0.68) 77px,
      rgba(215, 92, 103, 0.68) 79px,
      transparent 80px
    ),
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 31px,
      var(--paper-blue) 32px,
      transparent 33px
    ),
    var(--paper);
  box-shadow:
    10px 12px 0 rgba(0, 0, 0, 0.24),
    0 24px 80px rgba(0, 0, 0, 0.34);
}

.notebook-sheet::before {
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 20px;
  width: 16px;
  background:
    radial-gradient(circle, var(--bg) 0 4px, rgba(0, 0, 0, 0.2) 4.5px 5.5px, transparent 6px)
    center top / 16px 40px repeat-y;
  content: "";
}

.notebook-margin {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 84px;
  width: 1px;
  background: rgba(215, 92, 103, 0.38);
}

.auth-notebook {
  min-height: 610px;
  padding: 52px 58px 52px 112px;
  transform: rotate(-0.45deg);
}

.auth-tabs {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 26px;
  margin-bottom: 42px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-tabs a {
  position: relative;
  color: rgba(23, 38, 66, 0.55);
}

.auth-tabs a::after {
  position: absolute;
  right: -3px;
  bottom: -8px;
  left: -3px;
  height: 3px;
  background: transparent;
  content: "";
  transform: rotate(-1deg);
}

.auth-tabs a.is-active {
  color: var(--paper-ink);
}

.auth-tabs a.is-active::after {
  background: #7754b6;
}

.account-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.account-form label {
  margin-top: 12px;
  color: #714b86;
  font-family: "Segoe Print", "Comic Sans MS", cursive;
  font-size: 14px;
  font-weight: 700;
}

.account-form input,
.account-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 2px solid rgba(36, 82, 138, 0.38);
  border-radius: 0;
  outline: 0;
  padding: 8px 4px 7px;
  background: rgba(255, 255, 255, 0.08);
  color: #183c72;
  font-family: "Segoe Print", "Comic Sans MS", cursive;
  font-size: 17px;
  font-weight: 700;
}

.account-form textarea {
  min-height: 138px;
  resize: vertical;
  line-height: 1.9;
}

.account-form input:focus,
.account-form textarea:focus {
  border-bottom-color: #7754b6;
  background: rgba(255, 255, 255, 0.24);
}

.account-form input::placeholder,
.account-form textarea::placeholder {
  color: rgba(24, 60, 114, 0.38);
}

.password-field {
  position: relative;
  display: block;
  min-width: 0;
}

.account-form .password-field input {
  padding-right: 46px;
}

.account-form input[data-password-toggle]::-ms-clear,
.account-form input[data-password-toggle]::-ms-reveal {
  display: none;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 1px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  padding: 8px;
  outline: 0;
  background: transparent;
  color: rgba(24, 60, 114, 0.52);
  transform: translateY(-50%);
}

.password-toggle:hover,
.password-toggle[aria-pressed="true"] {
  color: #7754b6;
}

.password-toggle:focus-visible {
  outline: 2px solid #7754b6;
  outline-offset: -3px;
}

.password-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.password-toggle-slash {
  opacity: 0;
}

.password-toggle[aria-pressed="true"] .password-toggle-slash {
  opacity: 1;
}

.account-form small {
  color: rgba(23, 38, 66, 0.56);
  font-size: 11px;
}

.handle-input {
  display: flex;
  align-items: center;
  color: #183c72;
  font-family: "Segoe Print", "Comic Sans MS", cursive;
  font-weight: 800;
}

.handle-input span {
  padding-right: 2px;
  font-size: 18px;
}

.handle-input input {
  min-width: 0;
}

.notebook-submit,
.profile-edit-sticker {
  border: 0;
  background: #f4f1e4;
  color: #18171c;
  box-shadow:
    inset 0 0 0 1px rgba(35, 33, 28, 0.2),
    3px 4px 0 rgba(23, 38, 66, 0.14);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: rotate(-1deg);
}

.notebook-submit {
  width: max-content;
  min-width: 160px;
  margin-top: 28px;
  padding: 16px 22px;
}

.notebook-submit:hover,
.profile-edit-sticker:hover {
  background: #fff;
  transform: rotate(0.6deg) translateY(-1px);
}

.account-warning {
  position: relative;
  z-index: 1;
  max-width: 360px;
  margin: 38px 0 0;
  color: rgba(23, 38, 66, 0.63);
  font-family: "Segoe Print", "Comic Sans MS", cursive;
  font-size: 12px;
  line-height: 1.6;
  transform: rotate(0.4deg);
}

.notebook-error {
  margin: 0 0 10px;
  border-left: 4px solid var(--paper-red);
  padding: 8px 12px;
  background: rgba(215, 92, 103, 0.1);
  color: #9b2436;
  font-family: "Segoe Print", "Comic Sans MS", cursive;
  font-size: 13px;
  font-weight: 700;
}

.form-trap {
  position: fixed !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.staff-link {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-bright);
  padding: 6px 10px 6px 9px;
  background: linear-gradient(180deg, #18181e, #101014);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 2px 0 #070709;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    border-color 120ms ease,
    background 120ms ease,
    box-shadow 120ms ease,
    color 120ms ease,
    transform 120ms ease;
}

.staff-link::before {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
  content: "";
}

.staff-link:hover,
.staff-link.is-current {
  border-color: var(--heard);
  background: rgba(173, 140, 255, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(173, 140, 255, 0.12),
    0 2px 0 rgba(71, 52, 105, 0.7);
  color: var(--heard-text);
  transform: translateY(-1px);
}

.staff-link:active {
  box-shadow: none;
  transform: translateY(1px);
}

.report-link {
  color: var(--dim);
  font-size: 10px;
  transition: color 120ms ease;
}

.report-link:hover,
.message-report-action:hover {
  color: var(--danger);
}

.post-report-link {
  margin-left: auto;
}

.archive-report-link {
  display: inline-block;
  margin-top: 10px;
}

.trace-profile-action-stack {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.report-shell,
.staff-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 110px;
}

.report-layout {
  display: grid;
  margin-top: 54px;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
  gap: clamp(40px, 5vw, 72px);
}

.report-intro {
  padding-top: 22px;
}

.report-intro h1 {
  margin: 0;
  font-size: clamp(44px, 5vw, 68px);
  letter-spacing: -0.06em;
  line-height: 0.98;
  text-wrap: balance;
}

.report-sent h1,
.staff-heading h1 {
  margin: 0;
  font-size: clamp(48px, 7vw, 86px);
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.report-intro > p:last-child,
.report-sent > p:not(.eyebrow),
.staff-heading > div > p:last-child {
  max-width: 580px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.report-form-card {
  border-top: 3px solid var(--danger);
  padding: 28px 30px 32px;
  background: var(--surface);
  box-shadow: 18px 18px 0 rgba(0, 0, 0, 0.28);
}

.report-target {
  display: grid;
  gap: 7px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

.report-target > span,
.report-reasons legend,
.report-details > span,
.staff-report label > span {
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.report-target strong {
  font-size: 22px;
}

.report-target p {
  margin: 2px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.report-reasons {
  display: grid;
  margin: 26px 0 0;
  border: 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.report-reasons legend {
  margin-bottom: 12px;
}

.report-reasons label {
  position: relative;
}

.report-reasons input {
  position: absolute;
  opacity: 0;
}

.report-reasons span {
  display: flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 9px 12px;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.report-reasons input:checked + span {
  border-color: var(--danger);
  background: rgba(255, 82, 102, 0.08);
  color: var(--text);
}

.report-details,
.staff-report form > label,
.staff-team form label,
.staff-team form .staff-handle-field,
.staff-account-grid form label,
.staff-account-grid form .staff-handle-field {
  display: grid;
  margin-top: 22px;
  gap: 8px;
}

.report-details textarea,
.staff-report input,
.staff-team input,
.staff-team select,
.staff-account-grid input,
.staff-account-grid select,
.staff-account-grid textarea {
  width: 100%;
  border: 1px solid var(--line-bright);
  border-radius: 0;
  padding: 13px 14px;
  outline: none;
  background: var(--bg);
  color: var(--text);
  resize: vertical;
}

.report-details textarea:focus,
.staff-report input:focus,
.staff-team input:focus,
.staff-team select:focus,
.staff-account-grid input:focus,
.staff-account-grid select:focus,
.staff-account-grid textarea:focus {
  border-color: var(--heard);
}

.report-submit {
  width: 100%;
  margin-top: 22px;
  border-color: var(--danger);
  background: var(--danger);
  color: #17070a;
  font-weight: 900;
}

.report-sent {
  max-width: 780px;
  margin-top: 10vh;
  border-top: 3px solid var(--heard);
  padding-top: 34px;
}

.report-sent .button {
  margin-top: 20px;
}

.staff-heading {
  display: grid;
  align-items: end;
  border-bottom: 2px solid var(--heard);
  padding: 30px 8px 42px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
}

.staff-counter {
  display: grid;
  min-width: 130px;
  justify-items: end;
}

.staff-counter strong {
  color: var(--heard-text);
  font-size: 54px;
  line-height: 1;
}

.staff-counter span {
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  text-transform: uppercase;
}

.staff-section {
  margin-top: 54px;
}

.staff-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 8px 16px;
}

.staff-section-title h2 {
  margin: 0;
  font-size: 24px;
}

.staff-section-title > span {
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.staff-action-success {
  margin: 18px 0 0;
  border-left: 3px solid var(--heard);
  padding: 12px 14px;
  background: rgba(173, 140, 255, 0.08);
  color: var(--heard-text);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
}

.report-queue {
  display: grid;
  margin-top: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.staff-report {
  border: 1px solid var(--line);
  border-top: 3px solid var(--danger);
  padding: 24px;
  background: var(--surface);
}

.staff-report > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.staff-report > header > div {
  display: grid;
  gap: 5px;
}

.staff-report > header span,
.staff-report time {
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  text-transform: uppercase;
}

.staff-report > header strong {
  font-size: 19px;
}

.staff-report blockquote {
  margin: 22px 0;
  border-left: 2px solid var(--heard);
  padding: 10px 14px;
  background: var(--surface-raised);
  color: var(--muted);
}

.staff-report-avatar {
  display: flex;
  align-items: center;
  margin: 18px 0;
  gap: 12px;
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  text-transform: uppercase;
}

.staff-report-avatar .trace-avatar {
  width: 54px;
  height: 54px;
  min-width: 54px;
  font-size: 22px;
}

.staff-report dl {
  display: flex;
  margin: 0;
  gap: 28px;
}

.staff-report dl div {
  display: grid;
  gap: 4px;
}

.staff-report dt {
  color: var(--dim);
  font-size: 9px;
  text-transform: uppercase;
}

.staff-report dd {
  margin: 0;
  font-size: 12px;
}

.staff-report-details {
  color: var(--text);
  line-height: 1.55;
}

.staff-admin-only {
  margin: 22px 0 0;
  border-left: 2px solid var(--heard);
  padding: 10px 12px;
  background: var(--surface-raised);
  color: var(--heard-text);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.staff-report-actions {
  display: grid;
  margin-top: 12px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.staff-dismiss {
  background: transparent;
  color: var(--muted);
}

.staff-confirm {
  border-color: var(--danger);
  background: rgba(255, 82, 102, 0.12);
  color: #ff9daa;
}

.staff-appeal {
  border-top-color: var(--heard);
}

.staff-appeal dl {
  display: grid;
  gap: 12px;
}

.staff-appeal dl div {
  gap: 6px;
}

.staff-appeal dd {
  color: var(--muted);
  line-height: 1.5;
}

.staff-appeal-lift {
  border-color: var(--heard);
  background: rgba(173, 140, 255, 0.12);
  color: var(--heard-text);
}

.staff-history-list {
  display: grid;
}

.staff-history-list article {
  display: grid;
  padding: 18px 8px;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 170px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 18px;
}

.staff-history-list span,
.staff-history-list small {
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  text-transform: uppercase;
}

.staff-history-list p {
  grid-column: 2 / -1;
  margin: 0;
  color: var(--muted);
}

.staff-empty {
  margin: 38px 8px;
  color: var(--dim);
}

.staff-team-grid {
  display: grid;
  margin-top: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  gap: 54px;
}

.staff-account-grid {
  display: grid;
  margin-top: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  gap: 54px;
}

.staff-account-grid > form,
.staff-team form {
  align-self: start;
  border: 1px solid var(--line);
  padding: 22px;
  background: var(--surface);
}

.staff-account-grid form .staff-handle-field,
.staff-account-grid form > label:first-of-type {
  margin-top: 0;
}

.staff-account-grid textarea {
  min-height: 96px;
}

.staff-account-grid form .button {
  width: 100%;
  margin-top: 18px;
}

.staff-restrictions {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.staff-restrictions li {
  display: grid;
  border-bottom: 1px solid var(--line);
  padding: 16px 6px;
  gap: 8px;
}

.staff-restrictions li > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.staff-restrictions a {
  color: var(--text);
  font-weight: 800;
}

.staff-restrictions small,
.staff-restrictions time {
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  text-transform: uppercase;
}

.staff-restrictions p {
  margin: 0;
  color: var(--muted);
}

.staff-audit-list {
  display: grid;
}

.staff-audit-list article {
  display: grid;
  border-bottom: 1px solid var(--line);
  padding: 16px 8px;
  grid-template-columns: 125px 190px minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
}

.staff-audit-list time,
.staff-audit-list small {
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
}

.staff-audit-list strong {
  color: var(--heard-text);
  font-size: 11px;
  text-transform: uppercase;
}

.staff-audit-list p,
.staff-audit-list small {
  grid-column: 2 / -1;
  margin: 0;
}

.staff-audit-list p {
  color: var(--muted);
}

.staff-team ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.staff-team li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 14px 4px;
}

.staff-team li span {
  color: var(--heard-text);
  font-size: 10px;
  text-transform: uppercase;
}

.staff-team form .staff-handle-field {
  margin-top: 0;
}

.staff-handle-picker {
  position: relative;
  display: block;
}

.staff-handle-picker > input {
  display: block;
}

.staff-handle-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 5px);
  right: 0;
  left: 0;
  max-height: 226px;
  overflow-y: auto;
  border: 1px solid var(--line-bright);
  background: var(--surface);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.32);
}

.staff-handle-menu[hidden],
.staff-handle-menu button[hidden] {
  display: none;
}

.staff-handle-menu button {
  display: flex;
  width: 100%;
  align-items: baseline;
  border: 0;
  border-left: 2px solid transparent;
  padding: 11px 13px;
  background: transparent;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  text-align: left;
}

.staff-handle-menu button + button {
  border-top: 1px solid var(--line);
}

.staff-handle-menu button > span {
  margin-right: 1px;
  color: var(--heard);
}

.staff-handle-menu button:hover,
.staff-handle-menu button.is-active {
  border-left-color: var(--heard);
  background: rgba(173, 140, 255, 0.09);
  color: var(--heard-text);
}

.staff-field-error {
  margin: 2px 0 0;
  border-left: 2px solid var(--danger);
  padding: 8px 10px;
  background: rgba(255, 82, 102, 0.07);
  color: #ff9daa;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.03em;
}

.staff-field-error[hidden] {
  display: none;
}

.staff-handle-picker > input[aria-invalid="true"] {
  border-color: var(--danger);
}

.staff-account-grid textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.staff-team form .button {
  width: 100%;
  margin-top: 18px;
}

@media (max-width: 780px) {
  .report-shell,
  .staff-shell {
    width: min(100% - 28px, 1180px);
    padding-top: 30px;
  }

  .report-layout,
  .report-queue,
  .staff-team-grid,
  .staff-account-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .report-layout {
    margin-top: 36px;
    gap: 30px;
  }

  .report-form-card,
  .staff-report {
    padding: 22px 18px;
  }

  .report-reasons {
    grid-template-columns: minmax(0, 1fr);
  }

  .staff-heading {
    grid-template-columns: minmax(0, 1fr);
    padding-right: 2px;
    padding-left: 2px;
  }

  .staff-counter {
    justify-items: start;
  }

  .staff-history-list article {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .staff-history-list p {
    grid-column: auto;
  }

  .staff-audit-list article {
    grid-template-columns: minmax(0, 1fr);
  }

  .staff-audit-list p,
  .staff-audit-list small {
    grid-column: auto;
  }
}

.warning-shell {
  display: grid;
  min-height: calc(100vh - 72px);
  place-items: center;
  padding: 48px 20px;
}

.warning-card {
  width: min(560px, 100%);
  border: 1px solid var(--line);
  border-top: 3px solid var(--danger);
  padding: clamp(28px, 6vw, 54px);
  background: var(--surface);
}

.warning-card h1 {
  margin: 14px 0 10px;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 0.95;
}

.warning-card > p:not(.eyebrow) {
  color: var(--muted);
}

.warning-card blockquote {
  margin: 28px 0;
  border-left: 3px solid var(--danger);
  padding: 15px 18px;
  background: rgba(255, 82, 102, 0.06);
  color: var(--text);
}

.warning-card .button {
  width: 100%;
}

.appeal-card {
  border-top-color: var(--heard);
}

.appeal-card blockquote {
  border-left-color: var(--heard);
  background: rgba(173, 140, 255, 0.06);
}

.appeal-card > p:not(.eyebrow) {
  line-height: 1.65;
}

.appeal-decision {
  display: grid;
  margin-top: 28px;
  gap: 8px;
}

.appeal-decision > span,
.appeal-form > label {
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.appeal-decision blockquote {
  margin: 0;
}

.appeal-decision time {
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  text-transform: uppercase;
}

.appeal-form {
  display: grid;
  margin-top: 30px;
  gap: 10px;
}

.appeal-form textarea {
  min-height: 160px;
  width: 100%;
  border: 1px solid var(--line-bright);
  border-radius: 0;
  padding: 14px;
  outline: none;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  resize: vertical;
}

.appeal-form textarea:focus {
  border-color: var(--heard);
}

.appeal-form .button {
  margin-top: 8px;
}

.profile-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 96px;
}

.profile-notebook,
.profile-editor {
  min-height: 720px;
  margin-top: 34px;
  padding: 66px 72px 80px 124px;
}

.profile-heading {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.profile-avatar {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border: 3px solid #183c72;
  border-radius: 48% 52% 46% 54%;
  color: #183c72;
  font-family: "Segoe Print", "Comic Sans MS", cursive;
  font-size: 38px;
  font-weight: 900;
  transform: rotate(-3deg);
}

.notebook-kicker {
  margin: 0 0 8px;
  color: #9b3041;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.profile-heading h1,
.profile-editor h1 {
  margin: 0;
  color: #183c72;
  font-family: "Segoe Print", "Comic Sans MS", cursive;
  font-size: clamp(42px, 6vw, 74px);
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.profile-edit-sticker {
  padding: 12px 16px;
  align-self: start;
}

.profile-note {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-top: 58px;
  font-family: "Segoe Print", "Comic Sans MS", cursive;
  line-height: 2;
}

.profile-note h2 {
  margin: 0;
  color: #9b3041;
  font-size: 15px;
  transform: rotate(-1deg);
}

.profile-note p {
  margin: 8px 0 0;
  color: #183c72;
  font-size: 17px;
  white-space: pre-wrap;
}

.profile-empty-note {
  opacity: 0.48;
}

.profile-facts {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 56px;
  margin: 42px 0 0;
}

.profile-facts div {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.profile-facts dt {
  color: rgba(23, 38, 66, 0.6);
  font-family: "Segoe Print", "Comic Sans MS", cursive;
  font-size: 12px;
}

.profile-facts dd {
  order: -1;
  margin: 0;
  color: #183c72;
  font-family: "Segoe Print", "Comic Sans MS", cursive;
  font-size: 24px;
  font-weight: 900;
}

.profile-facts .profile-joined dd {
  order: 0;
}

.profile-posts {
  position: relative;
  z-index: 1;
  margin-top: 64px;
}

.profile-posts-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #9b3041;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-posts-heading i {
  height: 2px;
  flex: 1;
  background: #7754b6;
  transform: rotate(-0.25deg);
}

.profile-post-list {
  margin-top: 16px;
}

.profile-post {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  border-bottom: 1px solid rgba(78, 137, 194, 0.25);
  padding: 23px 0 24px;
}

.profile-post h3 {
  margin: 0;
  color: #183c72;
  font-family: "Segoe Print", "Comic Sans MS", cursive;
  font-size: 19px;
  line-height: 1.45;
}

.profile-post h3 a:hover {
  text-decoration: underline;
  text-decoration-color: #7754b6;
  text-decoration-thickness: 3px;
}

.profile-post p {
  max-width: 760px;
  margin: 8px 0;
  color: rgba(23, 38, 66, 0.72);
  font-size: 13px;
  line-height: 1.6;
}

.profile-post small {
  color: rgba(23, 38, 66, 0.52);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
}

.profile-post small a:hover {
  color: #183c72;
  text-decoration: underline;
}

.profile-post-status {
  align-self: center;
  color: #7754b6;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-post-status.is-live {
  color: #b52e43;
}

.profile-blank-page {
  margin: 54px 0;
  color: rgba(23, 38, 66, 0.45);
  font-family: "Segoe Print", "Comic Sans MS", cursive;
  font-size: 22px;
  transform: rotate(-1deg);
}

.profile-edit-shell {
  max-width: 840px;
}

.profile-editor {
  padding-right: 86px;
}

.profile-editor h1 {
  position: relative;
  z-index: 1;
  margin-bottom: 42px;
}

.legacy-password {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  border-top: 2px solid rgba(119, 84, 182, 0.34);
  padding-top: 16px;
}

@media (max-width: 780px) {
  .auth-shell {
    width: min(620px, calc(100% - 48px));
  }

  .home-auth-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .auth-shell {
    width: min(100% - 28px, 620px);
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 48px 0 72px;
  }

  .auth-intro h1 {
    font-size: clamp(54px, 18vw, 86px);
  }

  .auth-notebook,
  .profile-notebook,
  .profile-editor {
    padding-right: 24px;
    padding-left: 74px;
  }

  .notebook-sheet {
    background:
      linear-gradient(
        90deg,
        transparent 0,
        transparent 49px,
        rgba(215, 92, 103, 0.65) 50px,
        rgba(215, 92, 103, 0.65) 52px,
        transparent 53px
      ),
      repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 31px,
        var(--paper-blue) 32px,
        transparent 33px
      ),
      var(--paper);
  }

  .notebook-sheet::before {
    left: 12px;
  }

  .notebook-margin {
    left: 57px;
  }

  .profile-shell {
    width: calc(100% - 28px);
    padding-top: 30px;
  }

  .profile-heading {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
  }

  .profile-avatar {
    width: 60px;
    height: 60px;
    font-size: 26px;
  }

  .profile-heading h1 {
    font-size: clamp(36px, 11vw, 56px);
  }

  .profile-edit-sticker {
    grid-column: 1 / -1;
    width: max-content;
    margin-top: 10px;
  }

  .profile-facts {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .profile-post {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .profile-post-status {
    justify-self: start;
  }
}

@keyframes toolbar-image-pulse {
  from {
    color: var(--accent);
  }

  to {
    color: var(--text);
  }
}

.post-callout {
  position: sticky;
  top: 110px;
  align-self: start;
  border-top: 2px solid var(--accent);
  padding: 24px;
  background: var(--surface);
}

.post-callout.is-archive {
  border-top-color: var(--dim);
}

.post-callout.is-live {
  border-top-color: var(--live);
}

.post-callout .button-room-entry {
  background: #f1f0e8;
  color: #111116;
}

.post-callout .button-room-entry:hover {
  background: #fff;
  color: #111116;
}

.room-duration-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
}

.room-duration-copy {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.room-duration-picker {
  display: flex;
  flex: none;
  align-items: center;
  gap: 5px;
  border: 0;
  padding: 0;
}

.room-duration-picker label {
  position: relative;
  cursor: pointer;
}

.room-duration-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.duration-die {
  display: inline-flex;
  width: 39px;
  height: 39px;
  align-items: baseline;
  justify-content: center;
  gap: 1px;
  border: 1px solid var(--line-bright);
  background: var(--surface-raised);
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.28);
  clip-path: polygon(7% 3%, 96% 0, 100% 90%, 88% 100%, 2% 96%, 0 12%);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  transform: rotate(-2deg);
  transition:
    border-color 120ms ease,
    background 120ms ease,
    color 120ms ease,
    transform 120ms ease;
}

.room-duration-picker label:nth-of-type(2) .duration-die {
  transform: rotate(2deg);
}

.room-duration-picker label:nth-of-type(3) .duration-die {
  transform: rotate(-1deg);
}

.duration-die b {
  margin-top: 7px;
  font-size: 18px;
  line-height: 1;
}

.duration-die small {
  font-size: 8px;
  font-weight: 800;
}

.room-duration-picker input:checked + .duration-die {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-text);
  transform: translateY(-2px) rotate(2deg);
}

.room-duration-picker input:focus-visible + .duration-die {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.room-duration-picker label:hover .duration-die {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-1px) rotate(1deg);
}

.room-duration-picker label:hover input:checked + .duration-die {
  color: var(--accent-text);
  transform: translateY(-3px) rotate(2deg);
}

.post-live-actions {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.post-online-count {
  display: inline-grid;
  position: relative;
  min-width: 58px;
  min-height: 49px;
  place-items: center;
  border: 0;
  background: var(--live);
  box-shadow: 4px 5px 0 rgba(0, 0, 0, 0.28);
  clip-path: polygon(3% 5%, 97% 0, 100% 94%, 6% 100%, 0 12%);
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 19px;
  font-weight: 900;
  transform: rotate(-2.5deg);
}

.post-callout h2 {
  margin: 18px 0 10px;
  font-size: 29px;
  letter-spacing: -0.04em;
}

.post-callout p:not(.eyebrow) {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.post-callout .button,
.post-callout form,
.post-callout form .button {
  width: 100%;
}

.post-callout .post-live-actions .button {
  width: auto;
  flex: 1;
}

/* Live room */

.room-body {
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
}

.room-header {
  height: 64px;
  min-height: 64px;
  padding: 0 clamp(72px, 6vw, 120px) 0 22px;
}

.room-header .header-actions {
  gap: 36px;
}

.room-live-indicator {
  flex: none;
  margin-right: 0;
}

.discussion-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.room-tabs {
  display: none;
}

.room-layout {
  display: grid;
  height: calc(100vh - 64px);
  grid-template-columns: minmax(260px, 0.8fr) minmax(440px, 1.5fr) minmax(220px, 0.55fr);
}

.room-layout.is-post-deleted {
  display: grid;
  place-items: center;
  grid-template-columns: minmax(0, 1fr);
  padding: 32px;
}

.room-deleted-notice {
  width: min(620px, 100%);
  border: 1px solid var(--line-bright);
  border-top: 3px solid var(--danger);
  padding: clamp(24px, 5vw, 52px);
  background: var(--surface);
}

.room-deleted-notice h1 {
  margin: 14px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 400;
}

.room-deleted-notice > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
}

.room-deleted-notice .button {
  margin-top: 28px;
}

.room-deleted-draft {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  color: var(--text);
  font-size: 12px;
}

.room-deleted-draft textarea {
  width: 100%;
  resize: vertical;
}

.room-panel {
  min-width: 0;
  min-height: 0;
}

.post-panel,
.people-panel {
  overflow-y: auto;
  padding: 25px;
  background: #0e0e11;
}

.post-panel {
  border-right: 1px solid var(--line);
}

.room-post .post-meta {
  margin: 0 0 16px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
}

.room-post h1 {
  margin: 0 0 28px;
  font-size: clamp(27px, 3vw, 40px);
  letter-spacing: -0.05em;
  line-height: 1.04;
}

.room-post .post-copy {
  font-size: 14px;
  line-height: 1.7;
}

.selection-action {
  position: sticky;
  bottom: 0;
  margin: 30px -10px 0;
  border-top: 2px solid var(--mention);
  padding: 14px;
  background: var(--surface-raised);
  box-shadow: 0 -15px 30px rgba(0, 0, 0, 0.25);
}

.selection-action .button-accent {
  background: var(--mention);
  color: var(--mention-text);
}

.selection-action .button-accent:hover {
  background: #8bbcff;
}

.selection-action p {
  max-height: 62px;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.conversation-panel {
  display: flex;
  flex-direction: column;
  background: var(--surface);
}

.conversation-top {
  display: flex;
  min-height: 73px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  padding: 15px 20px;
}

.conversation-top .panel-label {
  margin: 0 0 4px;
}

.connection-state {
  margin: 0;
  color: var(--dim);
  font-size: 11px;
}

.danger-link {
  border: 0;
  padding: 5px;
  background: none;
  color: var(--muted);
  font-size: 11px;
}

.danger-link:hover {
  color: var(--danger);
}

.message-stream {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 20px 30px;
  scrollbar-color: var(--line-bright) transparent;
}

.message {
  display: grid;
  max-width: 820px;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  margin: 0 0 6px;
  border-left: 2px solid transparent;
  padding: 10px 8px;
  transition: background 140ms, border 140ms;
}

.message:hover {
  border-left-color: #555560;
  background: rgba(255, 255, 255, 0.025);
}

.message.is-highlighted {
  border-left-color: var(--mention);
  background: rgba(105, 167, 255, 0.05);
}

.message.is-reply-to-viewer {
  border-left-color: var(--mention);
  background: linear-gradient(90deg, rgba(105, 167, 255, 0.08), rgba(105, 167, 255, 0.02) 72%, transparent);
}

.message-avatar {
  width: 32px;
  height: 32px;
  font-size: 10px;
}

.message-body {
  min-width: 0;
}

.message-meta {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.message-meta strong {
  font-size: 13px;
}

.mention-trigger {
  cursor: pointer;
}

.mention-trigger:hover {
  color: var(--mention);
}

.mention-trigger:focus-visible {
  border-radius: 2px;
  outline: 1px solid var(--mention);
  outline-offset: 3px;
}

.message-meta time {
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
}

.message-content > p {
  margin: 4px 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.48;
}

.chat-mask {
  display: inline-block;
  width: 32px;
  height: 32px;
  margin: -8px 2px -9px;
  object-fit: contain;
  user-select: none;
  vertical-align: baseline;
}

.chat-mask.is-joy {
  transform: rotate(-4deg);
}

.chat-mask.is-doubt {
  transform: rotate(1deg);
}

.chat-mask.is-sorrow {
  transform: rotate(4deg);
}

.message-mention {
  padding: 0 0.18em;
  background: rgba(105, 167, 255, 0.2);
  box-shadow: inset 0 -1px 0 rgba(105, 167, 255, 0.65);
  color: #b7d4ff;
  font-weight: 900;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.message-mention.is-self {
  background: var(--mention);
  color: var(--mention-text);
}

.dice-result {
  display: inline-grid;
  max-width: 100%;
  grid-template-columns: auto 42px;
  align-items: center;
  gap: 10px;
  margin: 7px 0 5px;
  border: 1px solid var(--line-bright);
  padding: 7px;
  background: #16161b;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.22);
  transform: rotate(-0.25deg);
}

.dice-result > span {
  min-width: 38px;
  padding: 5px 7px;
  background: rgba(239, 179, 109, 0.18);
  box-shadow: inset 0 -1px 0 rgba(239, 179, 109, 0.5);
  clip-path: polygon(3% 8%, 96% 0, 100% 92%, 7% 100%, 0 18%);
  color: var(--dice-text);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  transform: rotate(-2deg);
}

.dice-result > strong {
  color: var(--text);
  font-size: 30px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
}

.dice-result.is-critical-success {
  border-color: var(--agree);
  background: rgba(99, 200, 179, 0.07);
}

.dice-result.is-critical-success > span {
  background: rgba(99, 200, 179, 0.18);
  box-shadow: inset 0 -1px 0 rgba(99, 200, 179, 0.5);
  color: var(--agree-text);
}

.dice-result.is-critical-failure {
  border-color: var(--disagree);
  background: rgba(226, 118, 137, 0.07);
}

.dice-result.is-critical-failure > span {
  background: rgba(226, 118, 137, 0.18);
  box-shadow: inset 0 -1px 0 rgba(226, 118, 137, 0.5);
  color: var(--disagree-text);
}

.message-cover {
  position: relative;
  display: grid;
  width: min(430px, 92%);
  min-height: 34px;
  place-items: center;
  margin: 8px 0 5px;
  overflow: hidden;
  background:
    linear-gradient(177deg, transparent 0 7%, rgba(255, 255, 255, 0.3) 8% 12%, transparent 13% 87%, rgba(0, 0, 0, 0.07) 88% 93%, transparent 94%),
    #e5e3da;
  box-shadow:
    4px 4px 0 rgba(0, 0, 0, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  color: #171719;
  transform: rotate(-0.45deg);
}

.message-cover span {
  position: relative;
  z-index: 1;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.message-cover-personal {
  background:
    linear-gradient(183deg, transparent 0 8%, rgba(255, 255, 255, 0.28) 9% 13%, transparent 14% 86%, rgba(0, 0, 0, 0.07) 87% 92%, transparent 93%),
    #d9ddd0;
  transform: rotate(0.4deg);
}

.message blockquote {
  margin: 8px 0;
  border-left: 2px solid var(--mention);
  padding: 8px 11px;
  background: rgba(105, 167, 255, 0.045);
  color: #c8c8cf;
  font-size: 12px;
  line-height: 1.5;
}

.message-reactions {
  display: flex;
  min-height: 25px;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
}

.message-reactions[hidden],
.message-reactions:not(:has(.message-reaction:not(:disabled), .message-reaction.has-count)) {
  display: none;
}

.message-reaction {
  display: inline-flex;
  min-width: 29px;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  transition:
    border-color 120ms ease,
    background 120ms ease,
    color 120ms ease,
    transform 120ms ease;
}

.message-reaction b {
  font-size: 9px;
  font-weight: 700;
}

.message-reaction:hover:not(:disabled) {
  border-color: var(--line-bright);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  transform: translateY(-1px);
}

.message-reaction[data-reaction="heard"] {
  --reaction-color: var(--heard);
  --reaction-copy: var(--heard-text);
  --reaction-rgb: 173, 140, 255;
}

.message-reaction[data-reaction="agree"] {
  --reaction-color: var(--agree);
  --reaction-copy: var(--agree-text);
  --reaction-rgb: 99, 200, 179;
}

.message-reaction[data-reaction="disagree"] {
  --reaction-color: var(--disagree);
  --reaction-copy: var(--disagree-text);
  --reaction-rgb: 226, 118, 137;
}

.message-reaction[data-reaction]:hover:not(:disabled) {
  border-color: var(--reaction-color);
  background: rgba(var(--reaction-rgb), 0.08);
  color: var(--reaction-copy);
}

.message-reaction.is-selected {
  border-color: var(--line-bright);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  transform: rotate(-1deg);
}

.message-reaction[data-reaction].is-selected {
  border-color: var(--reaction-color);
  background: rgba(var(--reaction-rgb), 0.16);
  box-shadow: inset 0 -1px 0 rgba(var(--reaction-rgb), 0.48);
  color: var(--reaction-copy);
}

.message-reaction.has-count:not(.is-selected) {
  color: #b9b9c2;
}

.message-reaction:disabled {
  cursor: default;
}

.message-reaction:disabled:not(.has-count) {
  display: none;
}

.message-action,
.reply-origin {
  border: 0;
  padding: 0;
  background: none;
  color: var(--dim);
  font-size: 10px;
}

.message-action {
  visibility: hidden;
}

.message-actions {
  display: flex;
  min-height: 14px;
  align-items: center;
  gap: 12px;
}

.message:hover .message-action {
  visibility: visible;
}

.message-cover-action {
  color: #b9b8b1;
}

.message-hide-action {
  color: var(--dim);
}

.message-cover-action:hover,
.message-hide-action:hover {
  color: var(--text);
}

.message-action:hover,
.reply-origin:hover {
  color: var(--mention);
}

.reply-origin {
  display: block;
  max-width: 100%;
  margin-top: 4px;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.first-word {
  display: grid;
  min-height: 100%;
  place-content: center;
  text-align: center;
}

.first-word span {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
}

.first-word h2 {
  margin: 10px 0 8px;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.first-word p {
  max-width: 350px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.typing-line {
  min-height: 25px;
  padding: 4px 20px;
  color: var(--muted);
  font-size: 10px;
}

.composer {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 12px 14px max(12px, env(safe-area-inset-bottom));
  background: #101014;
}

.composer textarea {
  display: block;
  width: 100%;
  max-height: 160px;
  resize: none;
  border: 0;
  outline: 0;
  padding: 10px 54px 8px 8px;
  background: transparent;
  font-size: 14px;
  line-height: 1.45;
}

.composer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 8px;
}

.composer-bottom > span {
  color: var(--dim);
  font-size: 9px;
}

.composer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mask-picker {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-right: 1px;
  border-right: 1px solid var(--line);
  padding-right: 8px;
}

.mask-button {
  display: grid;
  width: 30px;
  height: 32px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 2px;
  padding: 1px;
  background: transparent;
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}

.mask-button img {
  display: block;
  width: 27px;
  height: 27px;
  pointer-events: none;
}

.mask-button:hover {
  border-color: var(--line-bright);
  background: rgba(255, 255, 255, 0.035);
  transform: translateY(-1px) rotate(-2deg);
}

.mask-button:nth-child(1):hover {
  border-color: var(--heard);
  background: rgba(173, 140, 255, 0.08);
}

.mask-button:nth-child(2):hover {
  border-color: var(--mention);
  background: rgba(105, 167, 255, 0.08);
}

.mask-button:nth-child(3):hover {
  border-color: var(--disagree);
  background: rgba(226, 118, 137, 0.08);
}

.mask-button:focus-visible {
  outline: 1px solid var(--text);
  outline-offset: 2px;
}

.dice-button {
  display: grid;
  width: 42px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line-bright);
  padding: 0;
  background: #17171c;
  clip-path: polygon(50% 0, 96% 24%, 86% 84%, 50% 100%, 14% 84%, 4% 24%);
  color: var(--dice);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: -0.04em;
  transition: background 140ms, color 140ms, transform 140ms;
}

.dice-button:hover:not(:disabled) {
  border-color: var(--dice);
  background: rgba(239, 179, 109, 0.16);
  color: var(--dice-text);
  transform: rotate(-5deg) scale(1.05);
}

.dice-button:disabled {
  cursor: default;
  opacity: 0.55;
}

.dice-button.is-rolling {
  animation: dice-roll 520ms steps(5, end);
}

@keyframes dice-roll {
  to {
    transform: rotate(360deg);
  }
}

kbd {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1px 3px;
  color: var(--muted);
  font-family: inherit;
}

.send-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 21px;
  font-weight: 900;
}

.send-button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.composer-context {
  position: relative;
  margin-bottom: 5px;
  border-left: 2px solid var(--mention);
  padding: 7px 35px 7px 10px;
  background: var(--surface-raised);
}

.composer-context span {
  display: block;
  margin-bottom: 3px;
  color: var(--mention);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.composer-context p {
  max-height: 34px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.composer-context button {
  position: absolute;
  top: 8px;
  right: 9px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
}

.people-panel {
  border-left: 1px solid var(--line);
  padding: 0;
}

.people-top {
  display: flex;
  min-height: 73px;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  padding: 15px 20px;
}

.presence-mark {
  padding: 3px 7px 4px;
  background: #f1f0e8;
  clip-path: polygon(2% 4%, 96% 0, 100% 92%, 4% 100%, 0 12%);
  color: #111116;
  filter: drop-shadow(3px 3px 0 rgba(255, 255, 255, 0.09));
  font-size: 28px;
  font-weight: 950;
  letter-spacing: -0.09em;
  line-height: 1;
  text-align: center;
  transform: rotate(-1.5deg);
}

.people-list {
  min-height: 150px;
  margin: 0;
  padding: 16px 25px;
  list-style: none;
}

.people-list li:not(.presence-note) {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  padding: 8px 0;
  font-size: 12px;
}

.people-list li:not(.presence-note)::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  content: "";
}

.presence-role {
  margin-left: auto;
  color: var(--dim);
  font-size: 9px;
}

.presence-note {
  color: var(--dim);
  font-size: 11px;
  line-height: 1.5;
}

.archive-summary {
  display: flex;
  align-items: center;
  gap: 28px;
  border-top: 1px solid var(--line);
  padding: 18px 20px;
  background: #101014;
}

.archive-summary .eyebrow {
  margin: 0 auto 0 0;
}

.archive-summary div {
  display: flex;
  flex-direction: column;
}

.archive-summary strong {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 16px;
}

.archive-summary span {
  color: var(--dim);
  font-size: 9px;
}

.room-join {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  padding: 15px 20px;
}

.error-page {
  display: grid;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  place-items: center;
  padding: 64px 24px 80px;
}

.error-stage {
  width: min(920px, 100%);
  text-align: center;
}

.error-code {
  margin: 0;
  color: var(--accent);
  font-size: clamp(150px, 29vw, 390px);
  font-weight: 950;
  letter-spacing: -0.11em;
  line-height: 0.72;
  text-indent: -0.06em;
}

.error-stage h1 {
  margin: clamp(48px, 8vw, 84px) 0 0;
  color: var(--text);
  font-size: clamp(30px, 5vw, 66px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.95;
  text-transform: uppercase;
}

.error-copy {
  max-width: 620px;
  margin: 22px auto 0;
  color: var(--text);
  font-size: clamp(15px, 2vw, 19px);
  line-height: 1.6;
}

.error-return {
  display: inline-block;
  margin-top: 44px;
  border-bottom: 1px solid var(--accent);
  padding: 0 0 5px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 140ms ease;
}

.error-return:hover {
  color: var(--text);
}

.toast {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  max-width: min(420px, calc(100vw - 40px));
  border-left: 3px solid var(--danger);
  padding: 13px 16px;
  background: #282126;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  font-size: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .site-header {
    padding: 0 18px;
  }

  .header-actions > a:not(.button),
  .site-header .viewer-name,
  .site-header .text-button {
    display: none;
  }

  .site-header .account-menu .viewer-name,
  .room-header .account-menu .viewer-name {
    display: inline-flex;
    max-width: 110px;
  }

  .header-actions,
  .account-menu-cluster {
    gap: 12px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 65px 20px 80px;
  }

  .hero-signal {
    display: none;
  }

  .hero h1 {
    font-size: clamp(57px, 15vw, 92px);
  }

  .hero .hero-name {
    font-size: clamp(90px, 23vw, 150px);
  }

  .live-grid {
    grid-template-columns: 1fr;
  }

  .culture-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 70px;
    padding-top: 80px;
  }

  .culture-hero h1 {
    font-size: clamp(76px, 16vw, 130px);
  }

  .club-card {
    width: min(650px, 100%);
    min-height: 430px;
  }

  .culture-section {
    padding-top: 85px;
    padding-bottom: 90px;
  }

  .culture-practice {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .moderation-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .moderator-code {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .moderator-code > p:last-child {
    max-width: 700px;
  }

  .editor-shell,
  .post-page {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .post-callout {
    position: static;
  }

  .room-header {
    padding: 0 14px;
  }

  .room-tabs {
    display: grid;
    height: 48px;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--line);
    background: var(--surface);
  }

  .room-tabs button {
    position: relative;
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
  }

  .room-tabs button.is-active {
    color: var(--text);
  }

  .room-tabs button.is-active::after {
    position: absolute;
    right: 18px;
    bottom: 0;
    left: 18px;
    height: 2px;
    background: var(--accent);
    content: "";
  }

  .room-layout {
    display: block;
    height: calc(100vh - 112px);
  }

  .room-panel {
    display: none;
    height: 100%;
    border: 0;
  }

  .room-panel.is-mobile-active {
    display: flex;
  }

  .post-panel.is-mobile-active,
  .people-panel.is-mobile-active {
    display: block;
  }

  .post-panel,
  .people-panel {
    padding: 22px 18px;
  }

  .conversation-top {
    min-height: 62px;
  }

  .message-stream {
    padding: 12px 10px 25px;
  }

  .message {
    padding-right: 4px;
    padding-left: 4px;
  }

  .message-action {
    visibility: visible;
  }
}

@media (max-width: 620px) {
  .hero h1 {
    letter-spacing: -0.07em;
  }

  .hero .hero-name {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    white-space: normal;
  }

  .hero-name > span {
    font-size: 0.22em;
  }

  .hero-meaning {
    margin-top: 36px;
  }

  .hero-meaning p {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 12px;
  }

  .join-row,
  .form-foot {
    align-items: stretch;
    flex-direction: column;
  }

  .topics-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .feed-filters {
    width: 100%;
  }

  .feed-filters a {
    flex: 1;
    text-align: center;
  }

  .join-row input,
  .join-row .button {
    width: 100%;
    border: 1px solid var(--line-bright);
    border-radius: 2px;
  }

  .join-row .button {
    margin-top: 8px;
  }

  .content-section {
    padding: 55px 18px 70px;
  }

  .culture-hero,
  .culture-section,
  .culture-closing {
    padding-right: 18px;
    padding-left: 18px;
  }

  .culture-hero {
    padding-top: 65px;
    padding-bottom: 75px;
  }

  .culture-hero-copy {
    width: calc(100vw - 36px);
    min-width: 0;
    max-width: 100%;
  }

  .culture-hero h1 {
    overflow-wrap: anywhere;
    font-size: clamp(52px, 16vw, 68px);
  }

  .culture-hero-copy > p:last-child {
    margin-top: 30px;
    overflow-wrap: anywhere;
  }

  .club-card {
    width: calc(100vw - 44px);
    min-width: 0;
    max-width: 100%;
    min-height: 390px;
    justify-self: start;
    padding: 54px 24px 45px;
    transform: rotate(0.4deg);
  }

  .club-card p {
    overflow-wrap: anywhere;
    font-size: clamp(24px, 7.5vw, 31px);
  }

  .culture-section {
    padding-top: 70px;
    padding-bottom: 75px;
  }

  .culture-section-head {
    margin-bottom: 42px;
  }

  .culture-rules,
  .culture-boundaries,
  .moderation-steps {
    grid-template-columns: 1fr;
  }

  .culture-rules li {
    min-height: 230px;
    padding: 30px;
  }

  .culture-boundaries article,
  .culture-boundaries article:last-child {
    min-height: auto;
    grid-column: auto;
    padding: 30px;
  }

  .culture-boundaries h3 {
    margin-top: 40px;
  }

  .moderation-steps article {
    min-height: 160px;
  }

  .culture-closing {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .live-card {
    min-height: 280px;
    padding: 22px;
  }

  .topic-row {
    grid-template-columns: 34px 1fr;
  }

  .topic-row .avatar {
    width: 32px;
    height: 32px;
  }

  .topic-status {
    width: auto;
    grid-column: 2;
    justify-self: start;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .editor-shell,
  .post-page {
    padding-right: 18px;
    padding-left: 18px;
  }

  .post-archive {
    padding-top: 22px;
  }

  .post-archive-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
    padding: 0 4px;
  }

  .post-archive-metrics {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .post-archive-metrics div {
    min-width: 0;
  }

  .archive-message {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 9px;
  }

  .archive-message .message-avatar {
    width: 28px;
    height: 28px;
  }

  .post-form input {
    font-size: 18px;
  }

  .archive-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .archive-summary .eyebrow {
    grid-column: 1 / -1;
  }

  .composer-bottom > span {
    display: none;
  }

  .composer-bottom {
    justify-content: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Account sketchbook: unruled paper, rough edges and a hand-bound spine. */
.sketchbook-page {
  --paper: #ebe8da;
  --paper-ink: #172642;
  --paper-red: #b83e53;
  position: relative;
  color: var(--paper-ink);
  background:
    radial-gradient(circle at 14% 20%, rgba(255, 255, 255, 0.56), transparent 23%),
    radial-gradient(circle at 82% 78%, rgba(71, 53, 102, 0.04), transparent 31%),
    linear-gradient(118deg, rgba(255, 255, 255, 0.2), transparent 42%),
    var(--paper);
  clip-path: polygon(
    0.7% 0.5%,
    32% 0,
    68% 0.6%,
    99.5% 0.2%,
    100% 35%,
    99.4% 68%,
    100% 99%,
    66% 100%,
    34% 99.4%,
    0.3% 100%,
    0 67%,
    0.5% 34%
  );
  filter: drop-shadow(13px 17px 20px rgba(0, 0, 0, 0.38));
}

.sketchbook-page::before {
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 42px;
  width: 2px;
  background:
    linear-gradient(
      to bottom,
      transparent,
      rgba(95, 67, 157, 0.42) 9%,
      rgba(95, 67, 157, 0.22) 91%,
      transparent
    );
  content: "";
  transform: rotate(0.25deg);
}

.sketchbook-binding {
  position: absolute;
  z-index: 3;
  top: 28px;
  bottom: 28px;
  left: 17px;
  width: 34px;
  background:
    radial-gradient(
      circle at 17px 13px,
      #121218 0 4px,
      #817c89 4.5px 6px,
      transparent 6.5px
    )
    0 0 / 34px 42px repeat-y;
  filter: drop-shadow(2px 2px 1px rgba(0, 0, 0, 0.2));
  pointer-events: none;
}

.sketchbook-binding::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -15px;
  width: 31px;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0 8px,
      #302e38 8px 11px,
      #a5a0aa 11px 13px,
      transparent 13px 42px
    );
  content: "";
  opacity: 0.92;
}

.sketchbook-corner {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.08) 0 49%, #f6f3e7 51%);
  box-shadow: -3px -3px 8px rgba(0, 0, 0, 0.07);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.auth-sketchbook {
  min-height: 508px;
  padding: 58px 62px 52px 88px;
  transform: rotate(0.22deg);
}

.sketchbook-kicker {
  position: relative;
  z-index: 1;
  margin: 0 0 9px;
  color: var(--paper-red);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.sketchbook-submit,
.profile-edit-sticker {
  border: 0;
  background: #f8f6ec;
  color: #18171c;
  box-shadow:
    inset 0 0 0 1px rgba(35, 33, 28, 0.22),
    3px 4px 0 rgba(23, 38, 66, 0.15);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: rotate(-1deg);
}

.sketchbook-submit {
  width: max-content;
  min-width: 160px;
  margin-top: 28px;
  padding: 16px 22px;
}

.sketchbook-submit:hover,
.profile-edit-sticker:hover {
  background: #fff;
  transform: rotate(0.6deg) translateY(-1px);
}

.sketchbook-error {
  margin: 0 0 10px;
  border-left: 4px solid var(--paper-red);
  padding: 8px 12px;
  background: rgba(184, 62, 83, 0.1);
  color: #92273a;
  font-family: "Segoe Print", "Comic Sans MS", cursive;
  font-size: 13px;
  font-weight: 700;
}

.profile-board {
  margin-top: 34px;
}

.profile-sketchbook {
  width: min(820px, calc(100% - 44px));
  min-height: 410px;
  margin-left: clamp(0px, 3vw, 42px);
  padding: 60px 64px 58px 92px;
  transform: rotate(-0.35deg);
}

.profile-sketchbook .profile-heading {
  grid-template-columns: 88px minmax(0, 1fr) auto;
}

.profile-sketchbook .profile-avatar {
  width: 80px;
  height: 80px;
}

.profile-sketchbook .profile-heading h1 {
  min-width: 0;
  font-size: clamp(34px, 3.25vw, 48px);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.profile-sketchbook .profile-note {
  margin-top: 44px;
}

.profile-sketchbook .profile-facts {
  margin-top: 34px;
}

.profile-posts-dark {
  margin-top: 74px;
  padding: 0 clamp(0px, 2vw, 24px);
}

.profile-posts-dark .profile-posts-heading {
  color: var(--muted);
}

.profile-posts-dark .profile-posts-heading i {
  background: var(--heard);
  opacity: 0.72;
}

.profile-posts-dark .profile-post {
  border-bottom-color: var(--line);
  padding: 28px 0 30px;
}

.profile-posts-dark .profile-post h3 {
  color: var(--text);
  font-family: inherit;
  font-size: 22px;
  letter-spacing: -0.025em;
}

.profile-posts-dark .profile-post h3 a:hover {
  text-decoration-color: var(--text);
  text-decoration-thickness: 2px;
}

.profile-posts-dark .profile-post p {
  color: var(--muted);
  font-size: 14px;
}

.profile-posts-dark .profile-post small {
  color: var(--dim);
}

.profile-posts-dark .profile-post small a:hover {
  color: var(--text);
}

.profile-posts-dark .profile-post-status {
  color: var(--heard);
}

.profile-posts-dark .profile-post-status.is-live {
  color: var(--live);
}

.profile-posts-dark .profile-blank-page {
  color: var(--dim);
}

.profile-editor {
  width: min(100%, 720px);
  min-height: 580px;
  margin-top: 34px;
  padding: 62px 68px 58px 94px;
  transform: rotate(-0.25deg);
}

.profile-editor h1 {
  margin-bottom: 36px;
}

@media (max-width: 780px) {
  .auth-intro h1 {
    max-width: 100%;
    font-size: clamp(46px, 14vw, 64px);
    overflow-wrap: anywhere;
  }

  .auth-sketchbook {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 460px;
    padding: 52px 28px 44px 58px;
    justify-self: center;
    transform: none;
  }

  .auth-sketchbook .account-form,
  .auth-sketchbook .handle-input {
    min-width: 0;
  }

  .profile-sketchbook {
    width: 100%;
    margin-left: 0;
    padding: 52px 28px 46px 58px;
  }

  .profile-sketchbook .profile-heading {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .profile-sketchbook .profile-avatar {
    width: 60px;
    height: 60px;
  }

  .profile-sketchbook .profile-edit-sticker {
    grid-column: 1 / -1;
  }

  .profile-posts-dark {
    margin-top: 54px;
    padding: 0;
  }

  .profile-editor {
    width: 100%;
    min-height: 540px;
    padding: 56px 28px 48px 58px;
  }

  .sketchbook-page::before {
    left: 30px;
  }

  .sketchbook-binding {
    left: 5px;
  }
}

/* An actual sketchbook is a spread: two pages joined by one spine. */
.sketchbook-spread {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  filter: drop-shadow(12px 18px 24px rgba(0, 0, 0, 0.4));
  isolation: isolate;
}

.sketchbook-spread .sketchbook-page {
  min-width: 0;
  min-height: 620px;
  filter: none;
}

.sketchbook-spread .sketchbook-page::before {
  content: none;
}

.sketchbook-page-left {
  background:
    linear-gradient(to left, rgba(30, 26, 35, 0.1), transparent 7%),
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.56), transparent 25%),
    var(--paper);
  clip-path: polygon(
    0.8% 0.6%,
    34% 0,
    68% 0.5%,
    100% 0,
    100% 100%,
    67% 99.4%,
    33% 100%,
    0.2% 99.2%,
    0 66%,
    0.6% 34%
  );
}

.sketchbook-page-right {
  background:
    linear-gradient(to right, rgba(30, 26, 35, 0.11), transparent 7%),
    radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.5), transparent 24%),
    var(--paper);
  clip-path: polygon(
    0 0,
    33% 0.6%,
    67% 0,
    99.4% 0.5%,
    100% 34%,
    99.4% 68%,
    100% 99.1%,
    67% 100%,
    33% 99.5%,
    0 100%
  );
}

.sketchbook-spread::before {
  position: absolute;
  z-index: 2;
  top: 7px;
  bottom: 7px;
  left: 50%;
  width: 24px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(23, 20, 28, 0.14) 37%,
    rgba(255, 255, 255, 0.2) 49%,
    rgba(23, 20, 28, 0.18) 63%,
    transparent
  );
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
}

.sketchbook-spine {
  position: absolute;
  z-index: 4;
  top: 28px;
  bottom: 28px;
  left: 50%;
  width: 34px;
  background:
    radial-gradient(circle at 7px 13px, #111116 0 4px, #817c89 4.5px 6px, transparent 6.5px),
    radial-gradient(circle at 27px 13px, #111116 0 4px, #817c89 4.5px 6px, transparent 6.5px);
  background-size: 34px 42px;
  filter: drop-shadow(1px 2px 1px rgba(0, 0, 0, 0.25));
  pointer-events: none;
  transform: translateX(-50%);
}

.sketchbook-spine::after {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0 10px,
      #34313b 10px 12px,
      #aaa5af 12px 14px,
      transparent 14px 42px
    );
  content: "";
}

.auth-shell {
  display: block;
}

.auth-sketchbook {
  min-height: 620px;
  padding: 0;
  transform: rotate(0.12deg);
}

.auth-sketchbook .auth-intro {
  display: flex;
  padding: 82px 64px 72px;
  flex-direction: column;
  justify-content: center;
}

.auth-sketchbook .auth-intro .eyebrow {
  color: var(--paper-red);
}

.auth-sketchbook .auth-intro h1 {
  color: var(--paper-ink);
  font-size: clamp(58px, 6vw, 94px);
}

.auth-sketchbook .auth-intro > p:last-child {
  color: rgba(23, 38, 66, 0.68);
}

.auth-form-page {
  padding: 70px 66px 58px 72px;
}

.profile-sketchbook {
  min-height: 620px;
  margin-left: 0;
  padding: 0;
  transform: rotate(-0.16deg);
}

.profile-sketchbook .sketchbook-page {
  min-height: 620px;
}

.profile-identity-page {
  padding: 70px 54px 62px 58px;
}

.profile-sketchbook .profile-heading {
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 20px;
}

.profile-sketchbook .profile-avatar {
  width: 72px;
  height: 72px;
}

.profile-sketchbook .profile-heading h1 {
  font-size: clamp(27px, 2.25vw, 34px);
}

.profile-sketchbook .profile-edit-sticker {
  width: max-content;
  margin-top: 10px;
  grid-column: 2;
}

.profile-sketchbook .profile-note {
  margin-top: 54px;
}

.profile-sketchbook .profile-facts {
  margin-top: 44px;
}

.profile-posts-page {
  margin-top: 0;
  padding: 68px 58px 60px 64px;
}

.profile-posts-page .profile-posts-heading {
  color: var(--paper-red);
}

.profile-posts-page .profile-posts-heading i {
  background: #7754b6;
  opacity: 0.62;
}

.profile-posts-page .profile-post {
  border-bottom-color: rgba(23, 38, 66, 0.16);
  padding: 24px 0 26px;
}

.profile-posts-page .profile-post h3 {
  color: var(--paper-ink);
  font-family: inherit;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.profile-posts-page .profile-post h3 a:hover {
  text-decoration-color: #7754b6;
  text-decoration-thickness: 2px;
}

.profile-posts-page .profile-post p {
  color: rgba(23, 38, 66, 0.68);
  font-size: 13px;
}

.profile-posts-page .profile-post small {
  color: rgba(23, 38, 66, 0.46);
}

.profile-posts-page .profile-post small a:hover {
  color: var(--paper-ink);
}

.profile-posts-page .profile-post-status {
  color: #7754b6;
}

.profile-posts-page .profile-post-status.is-live {
  color: var(--paper-red);
}

.profile-posts-page .profile-blank-page {
  color: rgba(23, 38, 66, 0.52);
}

.profile-editor {
  width: 100%;
  min-height: 620px;
  padding: 0;
  transform: rotate(-0.12deg);
}

.profile-editor .sketchbook-page {
  min-height: 620px;
}

.profile-editor-intro {
  display: flex;
  padding: 76px 60px;
  flex-direction: column;
  justify-content: center;
}

.profile-editor-intro h1 {
  font-size: clamp(54px, 5.4vw, 84px);
}

.profile-editor-form {
  padding: 70px 64px 58px 70px;
}

@media (max-width: 780px) {
  .auth-shell {
    width: min(620px, calc(100% - 28px));
  }

  .sketchbook-spread {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    filter: none;
    transform: none;
  }

  .sketchbook-spread::before,
  .sketchbook-spine {
    display: none;
  }

  .sketchbook-spread .sketchbook-page {
    min-height: 0;
    filter: drop-shadow(7px 11px 14px rgba(0, 0, 0, 0.34));
  }

  .sketchbook-page-left,
  .sketchbook-page-right {
    clip-path: polygon(
      0.8% 0.5%,
      34% 0,
      67% 0.6%,
      99.3% 0.2%,
      100% 34%,
      99.4% 67%,
      100% 99.1%,
      66% 100%,
      33% 99.4%,
      0.3% 100%,
      0 67%,
      0.6% 34%
    );
  }

  .auth-sketchbook {
    width: 100%;
    max-width: 100%;
    min-height: 0;
  }

  .auth-sketchbook .auth-intro {
    min-height: 330px;
    padding: 58px 34px 52px;
  }

  .auth-sketchbook .auth-intro h1 {
    font-size: clamp(42px, 12vw, 56px);
  }

  .auth-form-page {
    min-height: 500px !important;
    padding: 54px 34px 46px;
  }

  .profile-sketchbook {
    width: 100%;
  }

  .profile-sketchbook .sketchbook-page {
    min-height: 0;
  }

  .profile-identity-page {
    min-height: 500px !important;
    padding: 56px 34px 48px;
  }

  .profile-posts-page {
    min-height: 420px !important;
    padding: 54px 34px 48px;
  }

  .profile-sketchbook .profile-heading {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .profile-sketchbook .profile-heading h1 {
    font-size: clamp(28px, 9vw, 38px);
  }

  .profile-editor {
    width: 100%;
    min-height: 0;
    padding: 0;
  }

  .profile-editor .sketchbook-page {
    min-height: 0;
  }

  .profile-editor-intro {
    min-height: 330px !important;
    padding: 56px 34px;
  }

  .profile-editor-intro h1 {
    font-size: clamp(48px, 14vw, 66px);
  }

  .profile-editor-form {
    min-height: 520px !important;
    padding: 54px 34px 48px;
  }
}

/* Personal trace: a voice leaves a signature directly on XOP. */
.trace-auth-shell {
  display: grid;
  width: min(1160px, calc(100% - 48px));
  min-height: calc(100vh - 72px);
  grid-template-columns: minmax(0, 1.15fr) minmax(390px, 0.85fr);
  align-items: center;
  gap: clamp(56px, 8vw, 118px);
  padding: 70px 0 96px;
}

.trace-auth-intro {
  position: relative;
  min-width: 0;
  padding: 42px 0 54px;
}

.trace-auth-intro::after {
  position: absolute;
  z-index: -1;
  top: -70px;
  left: -90px;
  color: rgba(173, 140, 255, 0.025);
  content: "@";
  font-family: "Segoe Print", "Comic Sans MS", cursive;
  font-size: 430px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  transform: rotate(-7deg);
}

.trace-auth-intro h1 {
  max-width: 690px;
  margin: 0;
  font-size: clamp(64px, 7vw, 108px);
  letter-spacing: -0.075em;
  line-height: 0.88;
}

.trace-auth-intro > p:not(.eyebrow) {
  max-width: 460px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.trace-signature {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 22px;
  margin-top: 68px;
}

.trace-signature > div {
  min-width: 0;
}

/* A picture reuses whichever size class it was given and only overrides what
   the letter fallback needed: the glyph centring and the sketch typography. */
.avatar-image {
  display: block;
  object-fit: cover;
  background: var(--surface-raised);
}

.avatar.avatar-image,
.message-avatar.avatar-image,
.presence-avatar {
  border: 1px solid var(--line);
  border-radius: 50%;
}

.presence-avatar {
  width: 24px;
  height: 24px;
  flex: none;
  margin-right: 8px;
  object-fit: cover;
  vertical-align: middle;
}

.trace-avatar.avatar-image {
  /* The hand-drawn outline is what makes the letter feel sketched; a
     photograph keeps the tilt and the irregular frame but loses the heavy
     lime stroke, which would ring every face on the page. */
  border: 2px solid var(--line-bright);
}

.avatar-editor {
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

.avatar-editor h2 {
  margin: 0 0 4px;
  font-size: 15px;
}

.avatar-editor-copy {
  margin: 0 0 16px;
  color: var(--dim);
  font-size: 12px;
}

.avatar-editor-row {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.avatar-editor-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.avatar-editor-actions form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.avatar-editor-choose {
  border: 1px solid var(--line-bright);
  border-radius: 2px;
  padding: 8px 14px;
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
}

.avatar-editor-actions input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.avatar-editor-actions input[type="file"]:focus-visible + .avatar-editor-choose {
  outline: 2px solid var(--gel-ink);
  outline-offset: 3px;
}

.avatar-editor-file-name {
  max-width: 190px;
  overflow: hidden;
  color: var(--dim);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar-editor-submit {
  margin: 0;
}

.avatar-editor-remove {
  border: 0;
  background: none;
  padding: 0;
  color: var(--dim);
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}

.avatar-editor-hint {
  margin: 14px 0 0;
  color: var(--dim);
  font-size: 11px;
}

@media (max-width: 620px) {
  .avatar-editor-row {
    gap: 14px;
  }

  .avatar-editor-actions,
  .avatar-editor-actions form {
    width: 100%;
  }

  .avatar-editor-file-name {
    max-width: 100%;
  }
}

.trace-avatar {
  display: grid;
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  place-items: center;
  border: 3px solid var(--heard);
  border-radius: 47% 53% 44% 56%;
  color: var(--text);
  font-family: "Segoe Print", "Comic Sans MS", cursive;
  font-size: 28px;
  font-weight: 900;
  transform: rotate(-4deg);
}

.trace-signature strong,
.trace-profile-identity h1 {
  display: block;
  min-width: 0;
  margin: 0;
  color: var(--heard-text);
  font-family: "Segoe Print", "Comic Sans MS", cursive;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.05;
  overflow-wrap: anywhere;
  text-shadow: 0 0 18px rgba(173, 140, 255, 0.08);
}

.trace-signature strong {
  font-size: clamp(38px, 4.6vw, 66px);
}

.trace-signature i,
.trace-profile-identity i {
  display: block;
  width: min(100%, 470px);
  height: 3px;
  margin-top: 7px;
  background:
    linear-gradient(
      90deg,
      var(--heard),
      rgba(173, 140, 255, 0.66) 72%,
      transparent
    );
  box-shadow: 0 2px 0 rgba(105, 167, 255, 0.16);
  transform: rotate(-0.7deg);
}

.trace-form-panel {
  position: relative;
  min-width: 0;
  border-top: 2px solid var(--heard);
  padding: 48px 48px 46px;
  background:
    linear-gradient(135deg, rgba(173, 140, 255, 0.035), transparent 44%),
    var(--surface);
  box-shadow:
    inset 0 0 0 1px var(--line),
    12px 15px 0 rgba(0, 0, 0, 0.18);
}

.trace-form-panel::after {
  position: absolute;
  top: -7px;
  right: 38px;
  width: 58px;
  height: 13px;
  background: rgba(244, 241, 228, 0.74);
  content: "";
  opacity: 0.7;
  transform: rotate(2deg);
}

.trace-form-panel .auth-tabs a {
  color: var(--dim);
}

.trace-form-panel .auth-tabs a.is-active {
  color: var(--text);
}

.trace-form-panel .account-form label {
  color: var(--heard-text);
}

.trace-form-panel .account-form input,
.trace-form-panel .account-form textarea {
  border-bottom-color: var(--line-bright);
  background: rgba(255, 255, 255, 0.012);
  color: var(--text);
}

.trace-form-panel .account-form input:focus,
.trace-form-panel .account-form textarea:focus {
  border-bottom-color: var(--heard);
  background: rgba(173, 140, 255, 0.04);
}

.trace-form-panel .account-form input::placeholder,
.trace-form-panel .account-form textarea::placeholder {
  color: var(--dim);
}

.trace-form-panel .password-toggle {
  color: var(--dim);
}

.trace-form-panel .password-toggle:hover,
.trace-form-panel .password-toggle[aria-pressed="true"] {
  color: var(--heard-text);
}

.trace-form-panel .password-toggle:focus-visible {
  outline-color: var(--heard);
}

.trace-form-panel .handle-input {
  color: var(--heard-text);
}

.trace-form-panel .account-form small,
.trace-form-panel .account-warning {
  color: var(--muted);
}

.trace-form-panel .sketchbook-error {
  border-left-color: var(--danger);
  background: rgba(255, 82, 102, 0.08);
  color: #ffc0cb;
}

.trace-form-panel .sketchbook-success {
  margin: 0 0 10px;
  border-left: 4px solid var(--agree);
  padding: 8px 12px;
  background: rgba(99, 200, 179, 0.08);
  color: var(--agree-text);
  font-family: "Segoe Print", "Comic Sans MS", cursive;
  font-size: 13px;
  font-weight: 700;
}

.trace-form-panel .legacy-password {
  border-top-color: rgba(173, 140, 255, 0.24);
}

.locked-handle {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 2px;
  border-bottom: 2px solid var(--line-bright);
  padding: 8px 4px 7px;
  background: rgba(255, 255, 255, 0.012);
  color: var(--heard-text);
  font-family: "Segoe Print", "Comic Sans MS", cursive;
  font-size: 17px;
  font-weight: 800;
}

.locked-handle-copy {
  margin-top: -4px;
}

.account-security-link {
  width: max-content;
  margin-top: 16px;
  border-bottom: 2px solid var(--heard);
  padding: 5px 2px;
  color: var(--muted);
  font-size: 12px;
  transform: rotate(-0.6deg);
}

.account-security-link:hover {
  color: var(--text);
  transform: rotate(0.3deg);
}

.trace-profile {
  position: relative;
  min-height: 390px;
  padding: 50px 32px 64px;
}

.trace-profile::after {
  position: absolute;
  z-index: -1;
  top: -58px;
  right: 2vw;
  color: rgba(173, 140, 255, 0.026);
  content: "@";
  font-family: "Segoe Print", "Comic Sans MS", cursive;
  font-size: 360px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  transform: rotate(7deg);
}

.trace-profile-heading {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
}

.trace-profile-avatar {
  width: 88px;
  height: 88px;
  font-size: 34px;
}

.trace-profile-identity {
  min-width: 0;
}

.trace-profile-identity h1 {
  font-size: clamp(46px, 5.6vw, 78px);
}

.trace-profile-actions {
  display: flex;
  align-self: start;
  justify-content: flex-end;
}

.trace-profile-actions form {
  margin: 0;
}

.trace-edit-link {
  border-bottom: 2px solid var(--heard);
  padding: 8px 2px 5px;
  color: var(--muted);
  font-size: 12px;
  transform: rotate(-1deg);
}

.trace-edit-link:hover {
  color: var(--text);
  transform: rotate(0.4deg);
}

.trace-follow-control {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid #ece8d8;
  border-radius: 2px;
  padding: 0 16px;
  background: #ece8d8;
  box-shadow:
    inset 0 -3px 0 var(--heard),
    3px 3px 0 rgba(45, 35, 66, 0.62);
  color: #151419;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  transform: rotate(-0.6deg);
  transition:
    background 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    transform 140ms ease;
}

.trace-follow-control:hover {
  color: #151419;
  transform: rotate(0.25deg) translateY(-1px);
}

.trace-follow-control.is-following {
  border-color: var(--line-bright);
  background: var(--surface-raised);
  box-shadow: inset 0 -2px 0 var(--heard);
  color: var(--muted);
}

.trace-follow-control.is-following:hover {
  border-color: var(--text);
  color: var(--text);
}

.trace-profile-meta {
  display: grid;
  margin: 68px 0 0 122px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 52px;
}

.trace-profile-note h2 {
  margin: 0;
  color: var(--heard);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.trace-profile-note p {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.trace-profile-note .profile-empty-note {
  color: var(--dim);
  font-family: "Segoe Print", "Comic Sans MS", cursive;
}

.trace-profile-facts {
  display: flex;
  gap: 34px;
  margin: 0;
}

.trace-profile-facts div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.trace-profile-facts dt {
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trace-profile-facts dd {
  order: -1;
  margin: 0;
  color: var(--text);
  font-size: 21px;
  font-weight: 900;
}

.trace-profile-facts .profile-following-fact a {
  border-bottom: 2px solid transparent;
  color: inherit;
}

.trace-profile-facts .profile-following-fact a:hover {
  border-bottom-color: var(--heard);
}

.trace-profile-facts .profile-joined dd {
  order: -1;
}

.trace-profile-posts {
  margin-top: 24px;
  padding: 0 32px;
}

.trace-profile-posts .profile-posts-heading {
  color: var(--muted);
}

.trace-profile-posts .profile-posts-heading i {
  background: var(--heard);
  opacity: 0.72;
}

.trace-profile-posts .profile-post {
  border-bottom-color: var(--line);
  padding: 28px 0 30px;
}

.trace-profile-posts .profile-post h3 {
  color: var(--text);
  font-family: inherit;
  font-size: 22px;
  letter-spacing: -0.025em;
}

.trace-profile-posts .profile-post h3 a:hover {
  text-decoration-color: var(--text);
  text-decoration-thickness: 2px;
}

.trace-profile-posts .profile-post p {
  color: var(--muted);
  font-size: 14px;
}

.trace-profile-posts .profile-post small {
  color: var(--dim);
}

.trace-profile-posts .profile-post small a:hover {
  color: var(--text);
}

.trace-profile-posts .profile-post-status {
  color: var(--heard);
}

.trace-profile-posts .profile-post-status.is-live {
  color: var(--live);
}

.trace-profile-posts .profile-blank-page {
  color: var(--dim);
}

.following-shell {
  max-width: 920px;
}

.following-board {
  margin-top: 54px;
}

.following-heading {
  border-bottom: 2px solid var(--heard);
  padding: 0 8px 28px;
}

.following-heading p {
  margin: 0 0 14px;
  color: var(--heard);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.following-heading h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(38px, 6vw, 68px);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.following-heading h1 span {
  color: var(--muted);
  font-family: "Segoe Print", "Comic Sans MS", cursive;
  font-size: 0.66em;
  letter-spacing: -0.035em;
}

.following-list {
  display: grid;
  margin-top: 18px;
}

.following-account {
  display: grid;
  min-width: 0;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 22px 8px;
  transition: background 140ms ease, padding 140ms ease;
}

.following-account:hover {
  padding-right: 14px;
  padding-left: 14px;
  background: var(--surface-raised);
}

.following-avatar {
  width: 48px;
  height: 48px;
  color: var(--text);
  font-size: 17px;
}

.following-account-copy {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.following-account-copy strong {
  color: var(--text);
  font-size: 17px;
}

.following-account-copy small {
  max-width: 620px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.following-arrow {
  color: var(--heard);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 20px;
}

.following-empty {
  margin: 56px 8px 0;
  color: var(--dim);
  font-family: "Segoe Print", "Comic Sans MS", cursive;
  font-size: 16px;
}

.following-pagination,
.staff-pagination {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--heard-text);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
}

.following-pagination a:last-child,
.staff-pagination a:last-child {
  margin-left: auto;
}

.profile-edit-shell {
  max-width: 1120px;
}

.trace-editor {
  display: grid;
  margin-top: 42px;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.8fr);
  align-items: center;
  gap: clamp(56px, 8vw, 112px);
}

.trace-editor-intro {
  min-width: 0;
  padding: 46px 0;
}

.trace-editor-intro .sketchbook-kicker {
  color: var(--live);
}

.trace-editor-intro h1 {
  margin: 8px 0 0;
  font-size: clamp(58px, 6vw, 92px);
  letter-spacing: -0.065em;
  line-height: 0.92;
}

@media (max-width: 780px) {
  .trace-auth-shell {
    display: grid;
    width: min(620px, calc(100% - 28px));
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    padding: 52px 0 76px;
  }

  .trace-auth-intro {
    padding: 24px 4px 10px;
  }

  .trace-auth-intro::after {
    top: -30px;
    left: -60px;
    font-size: 280px;
  }

  .trace-auth-intro h1 {
    font-size: clamp(44px, 12vw, 56px);
    overflow-wrap: anywhere;
  }

  .trace-auth-intro > p:not(.eyebrow) {
    margin-top: 24px;
    font-size: 15px;
  }

  .trace-signature {
    gap: 15px;
    margin-top: 42px;
  }

  .trace-avatar {
    width: 58px;
    height: 58px;
    font-size: 22px;
  }

  .trace-signature strong {
    font-size: clamp(30px, 9vw, 42px);
  }

  .trace-form-panel {
    padding: 40px 24px 38px;
  }

  .trace-profile {
    min-height: 0;
    padding: 34px 4px 54px;
  }

  .trace-profile::after {
    top: -34px;
    right: -30px;
    font-size: 240px;
  }

  .trace-profile-heading {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 16px;
  }

  .trace-profile-avatar {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }

  .trace-profile-identity h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .trace-profile-actions {
    width: max-content;
    margin-left: 80px;
    grid-column: 1 / -1;
  }

  .trace-profile-meta {
    margin: 50px 0 0 80px;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 32px;
  }

  .trace-profile-facts {
    flex-wrap: wrap;
  }

  .trace-profile-posts {
    margin-top: 8px;
    padding: 0 4px;
  }

  .following-board {
    margin-top: 42px;
  }

  .following-heading {
    padding-right: 4px;
    padding-left: 4px;
  }

  .following-heading h1 span {
    display: block;
    margin-top: 10px;
  }

  .following-account {
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 14px;
    padding-right: 4px;
    padding-left: 4px;
  }

  .trace-editor {
    grid-template-columns: minmax(0, 1fr);
    gap: 42px;
  }

  .trace-editor-intro {
    padding: 28px 4px 4px;
  }

  .trace-editor-intro h1 {
    font-size: clamp(50px, 15vw, 70px);
  }
}

.account-messages-shell {
  width: min(880px, calc(100% - 40px));
  margin: 0 auto;
  padding: 52px 0 96px;
}

.account-messages-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin: 42px 0 34px;
  border-bottom: 1px solid var(--line-bright);
  padding-bottom: 28px;
}

.account-messages-header h1 {
  margin: 8px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 8vw, 76px);
  font-weight: 400;
  line-height: 0.94;
}

.account-messages-header > div > p:last-child {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.account-message-list {
  display: grid;
  gap: 16px;
}

.account-message {
  position: relative;
  border: 1px solid var(--line);
  padding: 24px 26px;
  background: rgba(255, 255, 255, 0.015);
}

.account-message.is-unread {
  border-left: 3px solid var(--heard);
  background: rgba(173, 140, 255, 0.055);
}

.account-message-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-message.is-unread .account-message-meta > span {
  color: var(--heard-text);
}

.account-message h2 {
  margin: 18px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 4vw, 36px);
  font-weight: 400;
}

.account-message > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.account-message blockquote {
  margin: 20px 0 0;
  border-left: 1px solid var(--heard);
  padding: 4px 0 4px 18px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.account-message form {
  margin-top: 20px;
}

.account-message-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.account-message-actions form {
  margin: 0;
}

.account-message .text-button {
  color: var(--heard-text);
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
}

.account-message .text-button:hover {
  color: #fff;
}

.account-message .account-message-delete {
  color: #ff9daa;
}

.account-message .account-message-delete:hover {
  color: #ffc0c8;
}

.account-messages-empty {
  border: 1px dashed var(--line-bright);
  padding: 54px 24px;
  color: var(--dim);
  text-align: center;
}

.account-messages-pagination {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
}

/* Notifications */
.notification-list {
  display: grid;
  gap: 14px;
}

.notification {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  border: 1px solid var(--line);
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.015);
}

.notification.is-unread {
  border-left: 3px solid var(--heard);
  background: rgba(173, 140, 255, 0.055);
}

.notification-avatar {
  width: 38px;
  height: 38px;
  flex: none;
}

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

.notification-copy {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

.notification-target {
  margin: 8px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.4;
}

.notification-target a {
  color: var(--heard-text);
}

.notification-target a:hover {
  color: #fff;
}

.notification-gone {
  color: var(--dim);
  font-style: italic;
}

.notification-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
}

.notification-meta form {
  margin: 0;
}

.notification-meta .text-button {
  color: var(--heard-text);
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
}

.notification-meta .text-button:hover {
  color: #fff;
}

@media (max-width: 620px) {
  .notification {
    gap: 14px;
    padding: 18px 16px;
  }

  .notification-meta {
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .account-messages-shell {
    width: min(100% - 24px, 880px);
    padding-top: 30px;
  }

  .account-messages-header {
    display: grid;
    margin-top: 30px;
  }

  .account-messages-header form,
  .account-messages-header button {
    width: 100%;
  }

  .account-message {
    padding: 20px 18px;
  }

  .account-message-meta {
    display: grid;
    gap: 6px;
  }
}

/* Recovery phrase */
.auth-forgot-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.85rem;
  opacity: 0.75;
}

.auth-forgot-link:hover {
  opacity: 1;
}

.recovery-panel h1 {
  margin: 6px 0 10px;
}

.recovery-phrase-box {
  margin: 18px 0 14px;
  padding: 18px 20px;
  border: 1px dashed currentColor;
  border-radius: 12px;
  font-size: 1.25rem;
  line-height: 1.7;
  letter-spacing: 0.02em;
  user-select: all;
  overflow-wrap: anywhere;
}

.recovery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 6px;
}

.recovery-continue {
  margin-top: 14px;
  width: 100%;
}
