:root {
  --font-sans: Inter, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
  --layout-max: 1400px;
  --layout-half: 700px;
  --sidebar-width: 250px;
  --rail-width: 300px;
  --shell-gutter: 1.5rem;

  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f7f7f7;
  --surface-muted: #f3f3f3;
  --text: #111111;
  --text-soft: #4f4f4f;
  --text-muted: #8a8a8a;
  --line: #ebebeb;
  --line-strong: #d9d9d9;
  --black: #111111;
  --white: #ffffff;
  --heart: #e11d48;
  --interactive-soft: rgba(17, 17, 17, 0.06);
  --interactive-softer: rgba(17, 17, 17, 0.04);
  --topbar-surface: rgba(255, 255, 255, 0.96);
  --topbar-scrolled-surface: rgba(255, 255, 255, 0.985);
  --topbar-scrolled-shadow: 0 10px 26px rgba(17, 17, 17, 0.04);
  --panel-surface: rgba(255, 255, 255, 0.98);
  --overlay-scrim: rgba(255, 255, 255, 0.78);
  --modal-shadow: 0 24px 70px rgba(17, 17, 17, 0.08);
  --popover-shadow: 0 16px 40px rgba(17, 17, 17, 0.08);
  --tactile-shadow-soft: 0 10px 24px rgba(17, 17, 17, 0.08);
  --tactile-shadow-press: 0 4px 10px rgba(17, 17, 17, 0.08);
  --tooltip-z: 4200;
  --badge-surface: rgba(17, 17, 17, 0.035);
  --badge-line: rgba(17, 17, 17, 0.12);
  --badge-text: rgba(17, 17, 17, 0.74);
  --trend: #f59e0b;

  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --radius-xs: 10px;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 2rem;
  --space-8: 2.5rem;

  --shadow-focus: 0 0 0 4px rgba(17, 17, 17, 0.08);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0f12;
  --surface: #111418;
  --surface-soft: #0b0d10;
  --surface-muted: #171b20;
  --text: #f3f4f6;
  --text-soft: #d2d6dc;
  --text-muted: #9ba3af;
  --line: #23272e;
  --line-strong: #31353d;
  --black: #f3f4f6;
  --white: #0d0f12;
  --interactive-soft: rgba(243, 244, 246, 0.1);
  --interactive-softer: rgba(243, 244, 246, 0.08);
  --topbar-surface: rgba(13, 15, 18, 0.9);
  --topbar-scrolled-surface: rgba(13, 15, 18, 0.98);
  --topbar-scrolled-shadow: 0 14px 36px rgba(0, 0, 0, 0.36);
  --panel-surface: rgba(17, 20, 24, 0.96);
  --overlay-scrim: rgba(8, 10, 12, 0.78);
  --modal-shadow: 0 26px 78px rgba(0, 0, 0, 0.42);
  --popover-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
  --tactile-shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.34);
  --tactile-shadow-press: 0 5px 12px rgba(0, 0, 0, 0.28);
  --tooltip-z: 4200;
  --badge-surface: rgba(243, 244, 246, 0.08);
  --badge-line: rgba(243, 244, 246, 0.14);
  --badge-text: rgba(243, 244, 246, 0.82);
  --trend: #fbbf24;
  --shadow-focus: 0 0 0 4px rgba(243, 244, 246, 0.12);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable both-edges;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
  letter-spacing: -0.015em;
  -webkit-tap-highlight-color: transparent;
  scrollbar-gutter: stable both-edges;
}

body.is-loading {
  overflow-x: hidden;
  overflow-y: scroll;
}

body.has-compose-modal {
  overflow: hidden;
}

body.has-report-modal {
  overflow: hidden;
}

body.has-cookie-modal,
body.has-guest-modal,
body.has-messages-safety-modal,
body.has-reward-modal,
body.has-profile-connections-modal,
body.has-account-delete-modal,
body.has-post-edit-modal,
body.has-post-delete-modal,
body.has-admin-user-modal,
body.has-admin-space-modal,
body.has-admin-topic-modal,
body.has-admin-wiki-modal,
body.has-admin-professional-modal {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 220ms ease,
    visibility 220ms ease;
}

:root[data-theme="dark"] .page-loader {
  background: rgba(8, 10, 12, 0.76);
}

body.is-loading .page-loader {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.toast-stack {
  position: fixed;
  top: 1.15rem;
  right: 1.15rem;
  z-index: 3100;
  display: grid;
  gap: 0.7rem;
  width: min(22rem, calc(100vw - 2rem));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.9rem 0.95rem;
  color: #ffffff;
  background: rgba(17, 17, 17, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.15rem;
  box-shadow: 0 20px 50px rgba(17, 17, 17, 0.18);
  opacity: 0;
  transform: translateY(-0.45rem) scale(0.98);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  pointer-events: auto;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast--success {
  background: rgba(17, 17, 17, 0.96);
}

.toast--error {
  background: rgba(114, 21, 21, 0.96);
}

.toast__body {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.toast__body strong {
  font-size: 0.86rem;
  font-weight: 700;
}

.toast__body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.84rem;
  line-height: 1.45;
}

.toast__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  min-width: 1.8rem;
  height: 1.8rem;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.8);
  background: transparent;
  border: 0;
  border-radius: 999px;
}

.admin-console {
  background: var(--surface-soft);
  --admin-sidebar-width: 18.5rem;
  --admin-rail-width: 18rem;
  --admin-layout-max: 1560px;
  --admin-shell-side-gap: 1.5rem;
}

.admin-console .page-shell {
  padding: 0;
}

.admin-layout-shell {
  display: grid;
  grid-template-columns: var(--admin-sidebar-width) minmax(0, 1fr) var(--admin-rail-width);
  gap: 1.75rem;
  align-items: start;
  width: min(calc(100vw - (var(--admin-shell-side-gap) * 2)), var(--admin-layout-max));
  margin: 0 auto;
  min-height: 100vh;
  padding: 0 var(--admin-shell-side-gap) 2rem;
}

.admin-sidebar-shell {
  position: sticky;
  top: 0;
  display: grid;
  gap: 1rem;
  align-self: start;
  width: 100%;
  height: 100vh;
  overflow-y: auto;
  padding: 1.45rem 1.2rem 1.2rem 1.1rem;
  border-right: 1px solid var(--line);
  background: transparent;
  z-index: 30;
}

.brand--admin {
  justify-content: flex-start;
}

.admin-sidebar-shell__profile p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.8rem;
  line-height: 1.4;
}

.admin-sidebar-shell__profile {
  display: grid;
  gap: 0.48rem;
  padding: 0.68rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}

.admin-sidebar-shell__profile-main {
  display: flex;
  align-items: center;
  gap: 0.58rem;
}

.admin-sidebar-shell__profile .avatar--sidebar {
  width: 2.9rem;
  height: 2.9rem;
  font-size: 1rem;
}

.admin-sidebar-shell__profile-copy {
  display: grid;
  gap: 0.04rem;
  min-width: 0;
}

.admin-sidebar-shell__profile-copy strong {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.12;
}

.admin-sidebar-shell__profile-copy span {
  color: var(--text-soft);
  font-size: 0.8rem;
}

.admin-sidebar-shell__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.admin-sidebar-shell__meta .admin-role-pill,
.admin-sidebar-shell__meta .admin-pill {
  min-height: 1.7rem;
  padding: 0.22rem 0.58rem;
  font-size: 0.74rem;
}

.admin-sidebar-shell__nav {
  display: grid;
  gap: 0.35rem;
}

.admin-sidebar-shell__link {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  padding: 0.78rem 0.9rem;
  border-radius: 1rem;
  color: var(--text);
  font-weight: 600;
  transition: background 160ms ease, color 160ms ease;
}

.admin-sidebar-shell__link:hover,
.admin-sidebar-shell__link:focus-visible {
  background: var(--interactive-soft);
  color: var(--text);
}

.admin-sidebar-shell__link.is-active {
  background: var(--text);
  color: var(--surface);
  transform: none;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

:root[data-theme="dark"] .admin-sidebar-shell__link.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  box-shadow: none;
}

.admin-sidebar-shell__footer {
  display: grid;
  gap: 0.55rem;
  margin-top: auto;
}

.admin-main {
  min-width: 0;
  padding: 1.45rem 0 0;
}

.admin-console .admin-main.feed-column {
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 1.45rem 0 0;
  border-inline: 0;
}

.admin-feed {
  display: grid;
  gap: 1.4rem;
}

.admin-page-head {
  display: grid;
  gap: 1rem;
  padding: 0.2rem 0 0.25rem;
}

.admin-page-head__main {
  display: grid;
  gap: 0.95rem;
}

.admin-page-head__copy {
  display: grid;
  gap: 0.5rem;
}

.admin-page-head__copy h1 {
  margin: 0;
  font-size: clamp(2rem, 2.8vw, 2.9rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.admin-page-head__copy p {
  max-width: 46rem;
  margin: 0;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.58;
}

.admin-page-head__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.admin-page-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.admin-info-pill {
  display: grid;
  gap: 0.22rem;
  min-width: 8.5rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: var(--surface);
}

.admin-info-pill span {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.admin-info-pill strong {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.15;
}

.topbar--admin {
  position: static;
  margin-inline: 0;
  padding: 1.55rem 0 0;
  border-bottom: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  gap: 0.95rem;
}

.topbar--admin .topbar__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-content: start;
  align-items: start;
  gap: 0.45rem;
}

.admin-console .topbar__heading-tools,
.admin-console .topbar__notify-link,
.admin-console .mobile-topbar-menu {
  display: none !important;
}

.topbar--admin .topbar__heading h1 {
  max-width: 48rem;
  font-size: clamp(2rem, 2.4vw, 2.65rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.topbar--admin .topbar__heading p {
  max-width: 46rem;
  margin: 0;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.55;
}

.topbar--admin .topbar__actions {
  margin-top: 0;
}

.admin-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.admin-topbar__actions {
  gap: 0.85rem;
  justify-content: flex-start;
}

.topbar--admin .filter-bar {
  flex-wrap: wrap;
  gap: 1rem 1.3rem;
  margin-top: 0.15rem;
}

.admin-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.62rem 0.82rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
}

.admin-role-pill--owner {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
}

.admin-hero {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.3rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
}

.admin-card {
  display: grid;
  gap: 0.9rem;
  padding: 1.15rem 1.15rem 1.08rem;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: var(--surface);
}

.admin-card--stat {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.admin-hero--dashboard {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.admin-hero--dashboard .admin-card--stat {
  grid-template-columns: minmax(0, 1fr);
  align-content: space-between;
  gap: 1.15rem;
  min-height: 12rem;
  padding: 1.35rem 1.35rem 1.25rem;
}

.admin-hero--dashboard .admin-card__icon {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 1.1rem;
  font-size: 1.28rem;
}

.admin-hero--dashboard .admin-card__body {
  gap: 0.38rem;
}

.admin-hero--dashboard .admin-card__body span {
  font-size: 1rem;
  line-height: 1.35;
  color: var(--text-soft);
  font-weight: 600;
}

.admin-hero--dashboard .admin-card__body strong {
  font-size: 2.75rem;
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.admin-hero--dashboard .admin-card__body small {
  font-size: 0.98rem;
  line-height: 1.42;
  color: var(--text-soft);
}

.admin-card__icon {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: var(--interactive-soft);
  color: var(--text);
  font-size: 1.15rem;
}

.admin-card__body {
  display: grid;
  gap: 0.18rem;
}

.admin-card__body span,
.admin-health-item span,
.admin-queue-card span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.admin-health-item span {
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.34;
}

.admin-card__body strong,
.admin-queue-card strong {
  font-size: 1.75rem;
  line-height: 1;
}

.admin-card__body small {
  color: var(--text-soft);
  font-size: 0.84rem;
}

.admin-grid {
  display: grid;
  gap: 1.15rem;
  padding: 0 0 1.4rem;
  border-bottom: 1px solid var(--line);
}

.admin-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  padding: 0 0 1.4rem;
  border-bottom: 1px solid var(--line);
}

.admin-section-grid--uneven {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}

.admin-grid .admin-panel {
  border-bottom: 0;
}

.admin-panel {
  padding: 0 0 1.45rem;
  border-bottom: 1px solid var(--line);
}

.admin-panel--flash {
  padding-bottom: 0.2rem;
}

.admin-panel__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.admin-panel__header h2 {
  margin: 0;
  font-size: 1.42rem;
  line-height: 1.1;
}

.admin-panel__header p {
  margin: 0.2rem 0 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.admin-panel__header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-panel__search {
  width: min(100%, 22rem);
  flex: 0 0 min(22rem, 100%);
}

.admin-panel__search input {
  min-width: 0;
}

.admin-inline-link {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.admin-inline-link:hover,
.admin-inline-link:focus-visible {
  color: var(--text-soft);
}

.admin-api-grid,
.admin-endpoint-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.admin-api-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--surface);
}

.admin-api-card__top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.admin-api-card__eyebrow {
  display: inline-flex;
  margin-bottom: 0.2rem;
  color: var(--text-muted);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-api-card h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.2;
}

.admin-api-card__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-api-card__meta div {
  display: grid;
  gap: 0.14rem;
}

.admin-api-card__meta span {
  color: var(--text-muted);
  font-size: 0.77rem;
}

.admin-api-card__meta strong {
  font-size: 0.94rem;
  line-height: 1.35;
  word-break: break-word;
}

.admin-api-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.admin-api-list {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.58rem;
  color: var(--text-soft);
}

.admin-api-list strong {
  color: var(--text);
}

.admin-api-reveal {
  display: grid;
  gap: 0.95rem;
  margin-top: 1rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 1.25rem;
  background: color-mix(in srgb, var(--surface) 84%, rgba(16, 185, 129, 0.12));
}

.admin-api-reveal__copy h3 {
  margin: 0;
  font-size: 1.04rem;
}

.admin-api-reveal__copy p {
  margin: 0.24rem 0 0;
  color: var(--text-soft);
}

.admin-api-reveal__code {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.admin-api-reveal__code code,
.admin-endpoint-item code {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 1rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: "SFMono-Regular", "JetBrains Mono", "Fira Code", monospace;
  font-size: 0.88rem;
  line-height: 1.45;
  word-break: break-all;
}

.admin-api-history {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.admin-api-history__item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: var(--surface-soft);
}

.admin-api-history__item strong,
.admin-api-history__item span {
  display: block;
}

.admin-api-history__item span {
  color: var(--text-soft);
  font-size: 0.86rem;
}

.admin-api-history__meta {
  display: grid;
  justify-items: end;
  gap: 0.35rem;
}

.admin-endpoint-list {
  display: grid;
  gap: 0.75rem;
}

.admin-endpoint-item {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 1.05rem;
  background: var(--surface-soft);
}

.admin-endpoint-item__method {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 3rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: var(--interactive-soft);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-endpoint-item p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}

.admin-queue-grid,
.admin-health-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.admin-queue-card,
.admin-health-item {
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: var(--surface-soft);
}

.admin-health-item {
  display: grid;
  align-content: start;
  min-height: 5.8rem;
}

.admin-queue-card--link {
  display: grid;
  gap: 0.32rem;
  color: inherit;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.admin-queue-card--link:hover,
.admin-queue-card--link:focus-visible {
  transform: translateY(-0.08rem);
  border-color: var(--line-strong);
  background: var(--surface);
}

.admin-queue-card__icon {
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.15rem;
  border-radius: 0.9rem;
  background: var(--interactive-soft);
  color: var(--text);
  font-size: 0.98rem;
}

.admin-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.admin-highlight-card {
  display: grid;
  gap: 0.72rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: var(--surface);
}

.admin-highlight-card__top {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.admin-highlight-card__icon {
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 0.95rem;
  background: var(--interactive-soft);
  color: var(--text);
  font-size: 1rem;
}

.admin-highlight-card__copy {
  display: grid;
  gap: 0.16rem;
}

.admin-highlight-card__copy span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.admin-highlight-card__copy strong {
  font-size: 1rem;
  line-height: 1.2;
}

.admin-highlight-card__title {
  color: var(--text);
  text-decoration: none;
  font-size: 0.97rem;
  font-weight: 700;
  line-height: 1.35;
}

.admin-highlight-card__title:hover,
.admin-highlight-card__title:focus-visible {
  color: var(--text-soft);
}

.admin-highlight-card__meta,
.admin-highlight-card__empty {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.86rem;
  line-height: 1.5;
}

.admin-health-item strong {
  display: inline-flex;
  margin-top: 0.28rem;
  font-size: 0.95rem;
}

.admin-health-item strong.is-healthy {
  color: #059669;
}

.admin-health-item strong.is-unhealthy {
  color: #dc2626;
}

.admin-activity-item {
  display: grid;
  gap: 0.2rem;
}

.admin-activity-item strong {
  font-size: 0.95rem;
  line-height: 1.2;
}

.admin-activity-item span {
  color: var(--text-soft);
  font-size: 0.85rem;
}

.admin-meta-stack {
  display: grid;
  gap: 0.7rem;
}

.admin-inline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.admin-muted-text {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.admin-list {
  display: grid;
  gap: 0.9rem;
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--surface);
  transition:
    border-color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.admin-row.is-admin-complete {
  opacity: 0.72;
}

.admin-row__main {
  display: grid;
  gap: 0.42rem;
  min-width: 0;
}

.admin-row__title {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.admin-row__title strong {
  font-size: 1rem;
}

.admin-row__title a,
.admin-row__main p a {
  color: var(--text);
  text-decoration: none;
}

.admin-row__title a:hover,
.admin-row__main p a:hover {
  color: var(--text-soft);
}

.admin-row__main > p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.admin-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.admin-row__note {
  margin: 0.1rem 0 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.admin-row__details {
  margin-top: 0.2rem;
  padding-top: 0.1rem;
}

.admin-row__details summary {
  cursor: pointer;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
  list-style: none;
}

.admin-row__details summary::-webkit-details-marker {
  display: none;
}

.admin-row__details-body {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.7rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface-soft);
}

.admin-row__details-body p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.admin-row__pre {
  margin: 0;
  padding: 0.85rem 0.9rem;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  line-height: 1.58;
}

.admin-code-inline {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.42rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 0.78rem;
}

.admin-row__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: flex-start;
  gap: 0.55rem;
}

.admin-row__actions--stack {
  display: grid;
  justify-items: end;
  align-content: flex-start;
  gap: 0.6rem;
}

.admin-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.admin-quick-card {
  display: grid;
  gap: 0.42rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.admin-quick-card:hover,
.admin-quick-card:focus-visible {
  transform: translateY(-0.08rem);
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.admin-quick-card i {
  font-size: 1.15rem;
}

.admin-quick-card strong {
  font-size: 1rem;
  line-height: 1.2;
}

.admin-quick-card span {
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

.admin-user-modal {
  position: fixed;
  inset: 0;
  z-index: 2350;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    visibility 180ms ease;
}

.admin-user-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.admin-user-modal__backdrop {
  position: absolute;
  inset: 0;
  background: var(--overlay-scrim);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.admin-user-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 46rem);
  max-height: min(90vh, 52rem);
}

.admin-wiki-modal .admin-user-modal__dialog {
  width: min(100%, 58rem);
}

.admin-user-modal__surface {
  display: grid;
  gap: 1rem;
  max-height: inherit;
  overflow: auto;
  padding: 1.2rem 1.2rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  background: var(--surface);
  box-shadow: var(--modal-shadow);
}

.admin-user-modal__header,
.admin-user-modal__footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.admin-user-modal__title h2 {
  margin: 0;
  font-size: 1.16rem;
}

.admin-user-modal__title p {
  margin: 0.28rem 0 0;
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.55;
}

.admin-user-modal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1rem;
}

.admin-user-modal__field--full {
  grid-column: 1 / -1;
}

.admin-user-modal__textarea {
  min-height: 7.4rem;
  resize: vertical;
}

.admin-multi-select {
  min-height: 11rem;
  resize: vertical;
}

.admin-user-modal__toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.toggle-field {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.8rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}

.toggle-field input {
  width: 1rem;
  height: 1rem;
  margin: 0;
}

.admin-user-modal__hint {
  margin: -0.15rem 0 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.admin-user-modal__hint[data-state="success"] {
  color: #059669;
}

.admin-user-modal__hint[data-state="error"] {
  color: #dc2626;
}

.admin-team-form {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--surface);
}

.admin-team-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}

.admin-role-chooser,
.admin-access-chooser {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.button--compact.is-selected {
  border-color: var(--text);
  background: var(--text);
  color: var(--surface);
}

.admin-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.95rem;
  padding: 0.28rem 0.68rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.admin-pill--default {
  border-color: var(--line);
  color: var(--text-soft);
}

.admin-pill--warning {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.1);
  color: #b45309;
}

:root[data-theme="dark"] .admin-pill--warning {
  color: #fbbf24;
}

.admin-pill--success {
  border-color: rgba(16, 185, 129, 0.28);
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
}

:root[data-theme="dark"] .admin-pill--success {
  color: #34d399;
}

.admin-pill--danger {
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
}

:root[data-theme="dark"] .admin-pill--danger {
  color: #f87171;
}

.admin-pill--muted {
  border-color: var(--line);
  background: var(--surface-soft);
  color: var(--text-muted);
}

.rail--admin {
  position: sticky;
  top: 1.5rem;
  right: auto;
  align-self: start;
  width: 100%;
  height: auto;
  padding: 1.55rem 0 0;
  overflow: visible;
  gap: 1rem;
}

.admin-rail .guide-card {
  padding: 1.2rem 1.15rem;
}

.admin-rail .guide-card__header {
  margin-bottom: 0.8rem;
}

.admin-rail .guide-card__header h3 {
  margin: 0;
  font-size: 1.18rem;
}

.admin-rail .guide-card__header p {
  margin: 0.22rem 0 0;
  color: var(--text-soft);
  line-height: 1.45;
}

.admin-rail .admin-health-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-rail .admin-health-item {
  min-height: 6.15rem;
  padding: 0.95rem 0.85rem;
}

.admin-health-grid--wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.is-scrolled .topbar--admin {
  padding-top: 1.55rem;
  padding-bottom: 0;
  background: transparent;
  box-shadow: none;
}

body.is-scrolled .topbar--admin .topbar__heading h1 {
  font-size: clamp(2rem, 2.4vw, 2.65rem);
  letter-spacing: -0.04em;
}

body.is-scrolled .topbar--admin .topbar__actions,
body.is-scrolled .topbar--admin .filter-bar {
  max-height: none;
  margin-top: 0;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

@media (max-width: 1180px) {
  .admin-console {
    --admin-sidebar-width: 16.5rem;
    --admin-rail-width: 16rem;
  }

  .admin-layout-shell {
    grid-template-columns: var(--admin-sidebar-width) minmax(0, 1fr);
  }

  .admin-rail {
    display: none;
  }

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

  .admin-section-grid,
  .admin-section-grid--uneven {
    grid-template-columns: 1fr;
  }

  .admin-queue-grid,
  .admin-health-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-api-grid,
  .admin-endpoint-grid {
    grid-template-columns: 1fr;
  }

  .admin-health-grid--wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .admin-layout-shell {
    grid-template-columns: 1fr;
    width: 100%;
    padding: 0 1rem 1.5rem;
  }

  .admin-sidebar-shell {
    position: static;
    width: auto;
    overflow-y: visible;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .admin-main {
    padding: 0;
  }

  .admin-row {
    grid-template-columns: 1fr;
  }

  .admin-row__actions {
    justify-content: flex-start;
  }

  .admin-panel__header,
  .admin-panel__header-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-row__actions--stack {
    justify-items: start;
  }

  .admin-role-chooser,
  .admin-access-chooser {
    justify-content: flex-start;
  }

  .admin-team-form__grid {
    grid-template-columns: 1fr;
  }

  .admin-user-modal__grid {
    grid-template-columns: 1fr;
  }

  .admin-user-modal__footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .admin-user-modal__footer .button {
    width: 100%;
    justify-content: center;
  }

  .admin-quick-grid,
  .admin-hero,
  .admin-api-grid,
  .admin-endpoint-grid,
  .admin-section-grid,
  .admin-highlight-grid,
  .admin-queue-grid,
  .admin-health-grid {
    grid-template-columns: 1fr;
  }

  .admin-health-grid--wide {
    grid-template-columns: 1fr;
  }

  .admin-api-card__meta {
    grid-template-columns: 1fr;
  }

  .admin-api-history__item,
  .admin-api-reveal__code {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-topbar__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .admin-role-pill {
    justify-content: center;
  }

  .admin-page-head__actions {
    width: 100%;
  }

  .admin-page-head__actions .button {
    width: 100%;
    justify-content: center;
  }

  .admin-panel__search {
    width: 100%;
    flex-basis: 100%;
  }

  .topbar--admin {
    padding-top: 1.2rem;
  }

  .topbar--admin .topbar__heading h1 {
    font-size: 1.75rem;
  }
}

.toast__close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

@keyframes norenly-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.page-loader__spinner {
  display: inline-flex;
  width: 3.25rem;
  height: 3.25rem;
  color: var(--black);
}

.page-loader__spinner svg {
  width: 100%;
  height: 100%;
}

img,
svg {
  display: block;
}

i.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

::selection {
  color: var(--white);
  background: var(--black);
}

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

.page-shell {
  padding: 0 1.5rem 6rem;
}

body.legal-page {
  background: var(--surface-soft);
}

.page-shell__glow {
  display: none;
}

.app-layout {
  position: relative;
  max-width: var(--layout-max);
  margin: 0 auto;
}

.icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
}

.button,
.follow-button,
.icon-button,
.filter-chip,
.topic-pill,
.segment-control__item,
.action-chip,
.nav-list__link,
.admin-sidebar-shell__link,
.mobile-nav__item,
.thread-preview,
.post-card__space-link,
.post-card__topic-link {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0.75rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    opacity 180ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transform: translateZ(0);
}

.button.is-loading,
.icon-button.is-loading,
.follow-button.is-loading {
  cursor: wait;
}

.button:disabled,
.icon-button:disabled,
.follow-button:disabled {
  pointer-events: none;
  opacity: 0.72;
}

.button__spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  color: currentColor;
}

.button__spinner svg {
  width: 100%;
  height: 100%;
}

.button__spinner--icon {
  width: 1.1rem;
  height: 1.1rem;
}

.button__loading-text {
  display: inline-flex;
  align-items: center;
}

.button.is-loading {
  opacity: 0.92;
}

.icon-button.is-loading,
.follow-button.is-loading {
  opacity: 0.78;
}

.button.is-loading:disabled,
.icon-button.is-loading:disabled,
.follow-button.is-loading:disabled {
  opacity: 0.88;
}

.button:hover {
  opacity: 0.92;
}

.button:active,
.button.is-pressed {
  transform: translateY(1px) scale(0.985);
  box-shadow: var(--tactile-shadow-press);
}

.button:focus-visible,
.nav-list__link:focus-visible,
.search-field input:focus-visible,
.filter-chip:focus-visible,
.tag:focus-visible,
.icon-button:focus-visible,
.action-chip:focus-visible,
.mobile-nav__item:focus-visible,
.composer__field textarea:focus-visible,
.compose-modal__field textarea:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.button--primary {
  color: var(--white);
  background: var(--black);
}

.button--secondary {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line-strong);
}

.button--secondary:hover {
  border-color: var(--black);
}

.button--block {
  width: 100%;
}

.button--compact {
  min-height: 2.2rem;
  padding: 0.45rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.auth-required {
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.auth-required--inline {
  margin-top: 0.9rem;
}

.auth-required h2,
.auth-required p {
  margin: 0;
}

.auth-required__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.search-empty-state {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
  padding: 0;
}

.search-empty-state h2,
.search-empty-state p {
  margin: 0;
}

.search-empty-state h2 {
  font-size: 0.98rem;
}

.search-empty-state p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.soft-empty-state {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  justify-items: start;
  padding: 1rem 0 0;
}

.soft-empty-state__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--text);
  background: rgba(17, 17, 17, 0.04);
  border-radius: 999px;
}

.soft-empty-state__icon .icon {
  font-size: 1.1rem;
}

.soft-empty-state__copy {
  display: grid;
  gap: 0.3rem;
  max-width: 34rem;
}

.soft-empty-state__copy h2,
.soft-empty-state__copy p {
  margin: 0;
}

.soft-empty-state__copy h2 {
  font-size: 1rem;
}

.soft-empty-state__copy p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.soft-empty-state--messages-list {
  padding-top: 1.1rem;
  padding-right: 1rem;
}

.soft-empty-state--messages-thread {
  align-content: center;
  justify-items: center;
  height: 100%;
  padding: 2rem 0;
  text-align: center;
}

.soft-empty-state--messages-thread .soft-empty-state__copy {
  justify-items: center;
  max-width: 26rem;
}

.soft-empty-state--messages-inline {
  padding-top: 0.75rem;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.settings-textarea {
  min-height: 7.5rem;
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 0.95rem 1rem;
  color: var(--text);
}

.settings-textarea:focus {
  outline: none;
  border-color: var(--black);
}

.button--submit {
  min-height: 2.45rem;
  padding: 0.58rem 0.92rem;
  font-size: 0.84rem;
}

.follow-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.35rem;
  padding: 0.45rem 0.82rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    opacity 180ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transform: translateZ(0);
}

.follow-button:hover {
  border-color: var(--black);
}

.follow-button:active,
.follow-button.is-pressed {
  transform: translateY(1px) scale(0.985);
  box-shadow: var(--tactile-shadow-press);
}

.follow-button .icon {
  width: 0.95rem;
  height: 0.95rem;
  font-size: 0.95rem;
}

.follow-button--compact,
.follow-button--inline {
  min-height: 2.1rem;
  padding: 0.4rem 0.72rem;
  font-size: 0.78rem;
}

.follow-button.is-following {
  color: var(--white);
  background: var(--black);
  border-color: var(--black);
}

.follow-button.is-following:hover {
  color: var(--white);
  opacity: 0.94;
}

.follow-button--self {
  color: var(--text-muted);
  background: rgba(17, 17, 17, 0.04);
  border-color: var(--line);
  cursor: default;
}

.space-owner-badge:hover {
  border-color: var(--line);
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.6rem;
  height: 2.6rem;
  aspect-ratio: 1;
  border-radius: 50%;
  font-size: 0.84rem;
  font-weight: 700;
  border: 1px solid var(--line);
}

.avatar--soft,
.avatar--lavender,
.avatar--blush,
.avatar--sage {
  color: var(--text);
  background: var(--surface-soft);
}

.avatar--indigo {
  color: var(--white);
  background: var(--black);
  border-color: var(--black);
}

.eyebrow {
  max-height: 1.2rem;
  margin: 0 0 0.35rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow: hidden;
  transition:
    max-height 220ms ease,
    margin 220ms ease,
    opacity 220ms ease,
    transform 220ms ease;
}

.sidebar {
  position: fixed;
  top: 0;
  left: max(var(--shell-gutter), calc(50% - var(--layout-half)));
  width: var(--sidebar-width);
  height: 100vh;
  padding-right: 1.5rem;
  overflow-y: auto;
  scrollbar-width: none;
}

.sidebar::-webkit-scrollbar,
.rail::-webkit-scrollbar {
  display: none;
}

.sidebar__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.75rem 0 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  line-height: 1;
  margin-bottom: 2rem;
}

.brand__main {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  line-height: 0;
  min-width: 0;
}

.brand__mark {
  display: block;
  width: 1.42rem;
  height: 1.42rem;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand__logo {
  display: block;
  width: 6.45rem;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.brand__mark--dark,
.brand__logo--dark,
.legal-brand__mark--dark,
.legal-brand__logo--dark {
  display: none;
}

:root[data-theme="dark"] .brand__mark--light,
:root[data-theme="dark"] .brand__logo--light,
:root[data-theme="dark"] .legal-brand__mark--light,
:root[data-theme="dark"] .legal-brand__logo--light {
  display: none;
}

:root[data-theme="dark"] .brand__mark--dark,
:root[data-theme="dark"] .brand__logo--dark,
:root[data-theme="dark"] .legal-brand__mark--dark,
:root[data-theme="dark"] .legal-brand__logo--dark {
  display: block;
}

.brand__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.2rem;
  padding: 0.08rem 0.42rem;
  border-radius: 999px;
  border: 1px solid var(--badge-line);
  background: var(--badge-surface);
  color: var(--badge-text);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
  transform: translateY(-0.02rem);
}

.sidebar__nav {
  margin-bottom: 1rem;
}

.nav-list {
  display: grid;
  gap: 0.4rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-list__link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.9rem 1rem;
  color: var(--text-soft);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  text-align: left;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    opacity 180ms ease,
    transform 160ms ease;
  transform: translateZ(0);
}

.nav-list__link:hover {
  color: var(--text);
  background: var(--interactive-soft);
}

.nav-list__link:active,
.nav-list__link.is-pressed {
  transform: translateY(1px) scale(0.985);
}

.nav-list__link--active {
  color: var(--text);
  background: var(--interactive-soft);
  font-weight: 700;
}

.nav-list__status-dot {
  width: 0.48rem;
  height: 0.48rem;
  margin-left: auto;
  background: #e53935;
  border-radius: 999px;
  box-shadow: 0 0 0 3px var(--bg);
  flex: 0 0 auto;
}

.sidebar__cta {
  margin-top: 0.9rem;
  margin-bottom: 1.25rem;
}

.sidebar-auth {
  display: grid;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.5rem;
}

.sidebar-card {
  margin-top: auto;
  margin-bottom: 1rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sidebar-card__profile {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  margin-bottom: 1rem;
}

.sidebar-card__meta {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
  flex: 1 1 auto;
}

.sidebar-card__meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.sidebar-card__stats strong {
  display: block;
  font-size: 0.96rem;
}

.sidebar-card__profile .verified-name {
  gap: 0;
}

.sidebar-card__meta-top > .verified-name {
  color: var(--text);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.06;
}

.sidebar-card__display-name {
  display: inline-block;
  color: var(--text);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.06;
}

.sidebar-card__handle {
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.2;
}

.sidebar-card__logout,
.sidebar-card__logout.icon-button {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 999px;
  color: var(--text-soft);
  background: transparent;
  overflow: hidden;
  flex: 0 0 auto;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 220ms ease,
    opacity 220ms ease;
}

.sidebar-card__logout:hover,
.sidebar-card__logout:focus-visible {
  background: var(--interactive-soft);
  color: var(--text);
}

.sidebar-card__profile .verified-badge {
  margin-left: 0.34rem;
  color: #2f6bff;
}

.sidebar-card__profile .verified-badge__icon {
  fill: #2f6bff;
}

.verified-name {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  min-width: 0;
}

.verified-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  color: #2f6bff;
  font-size: 0.98em;
  flex: 0 0 auto;
  cursor: default;
}

.verified-badge:hover,
.verified-badge:focus-visible {
  z-index: var(--tooltip-z);
}

.verified-badge__icon {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.post-card .verified-badge,
.post-card:hover .verified-badge,
.post-card:focus-within .verified-badge,
.post-card .verified-badge__icon,
.post-card:hover .verified-badge__icon,
.post-card:focus-within .verified-badge__icon {
  color: #2f6bff;
  fill: #2f6bff;
}

.verified-badge::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: calc(var(--tooltip-z) + 1);
  left: 50%;
  bottom: calc(100% + 0.6rem);
  transform: translate(-50%, 0.2rem);
  padding: 0.35rem 0.58rem;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.12);
}

.verified-badge:hover::after,
.verified-badge:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.sidebar-card__stats span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.sidebar-card__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.sidebar-card__stats > div {
  display: grid;
  gap: 0.18rem;
  padding: 0.72rem 0.8rem;
  border-radius: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.feed-column {
  --feed-padding: 1.5rem;
  min-height: 100vh;
  width: calc(100% - var(--sidebar-width) - var(--rail-width));
  margin-left: var(--sidebar-width);
  margin-right: var(--rail-width);
  padding: 0 var(--feed-padding) 1.5rem;
  border-inline: 1px solid var(--line);
}

@media (min-width: 1201px) {
  .app-layout::before,
  .app-layout::after {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--line);
    pointer-events: none;
    z-index: 6;
  }

  .app-layout::before {
    left: calc(max(var(--shell-gutter), calc(50% - var(--layout-half))) + var(--sidebar-width));
  }

  .app-layout::after {
    right: calc(max(var(--shell-gutter), calc(50% - var(--layout-half))) + var(--rail-width));
  }

  .feed-column {
    border-inline: 0;
  }
}

.topbar {
  --topbar-frame-shadow: none;
  position: sticky;
  top: 0;
  z-index: 4;
  margin-inline: calc(var(--feed-padding) * -1);
  padding: 1.35rem var(--feed-padding) 0;
  background: var(--topbar-surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--topbar-frame-shadow);
  backdrop-filter: blur(10px);
  transition:
    padding 220ms ease,
    background-color 220ms ease,
    box-shadow 220ms ease;
}

.topbar__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: gap 220ms ease;
}

.topbar__heading h1 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.05;
  transition: font-size 220ms ease, letter-spacing 220ms ease;
}

.topbar--wiki-detail {
  padding-bottom: 0.75rem;
}

.topbar__heading-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  transition: transform 220ms ease, opacity 220ms ease;
}

.topbar__notify-link,
.topbar__notify-link.icon-button {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  color: var(--text-muted);
  background: transparent;
  border-radius: 999px;
  overflow: hidden;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 220ms ease,
    opacity 220ms ease;
}

.topbar__notify-link:hover,
.topbar__notify-link.is-current {
  color: var(--text);
}

.topbar__notify-link:hover {
  background: var(--interactive-soft);
}

.topbar__notify-link.is-current {
  background: var(--interactive-soft);
}

.topbar__notify-count {
  position: absolute;
  top: 0.18rem;
  right: 0.08rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.08rem;
  height: 1.08rem;
  padding: 0 0.28rem;
  color: #ffffff;
  background: #e53935;
  border: 2px solid var(--bg);
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  box-sizing: border-box;
}

.space-page .topbar__heading h1 {
  display: inline-flex;
  align-items: center;
}

.space-page .topbar__space-name {
  display: inline-block;
  max-width: 0;
  margin-left: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-0.35rem);
  transition:
    max-width 220ms ease,
    margin-left 220ms ease,
    opacity 220ms ease,
    transform 220ms ease;
}

.mobile-topbar-menu {
  position: relative;
  display: none;
  flex: 0 0 auto;
}

.mobile-topbar-menu__button {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 999px;
}

.mobile-topbar-menu__button:hover {
  background: var(--interactive-softer);
}

.mobile-topbar-menu__panel {
  position: absolute;
  top: calc(100% + 0.7rem);
  right: 0;
  z-index: 12;
  display: grid;
  gap: 0.2rem;
  min-width: 12.75rem;
  padding: 0.45rem;
  background: var(--panel-surface);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-0.2rem);
  transition:
    opacity 180ms ease,
    visibility 180ms ease,
    transform 180ms ease;
}

.mobile-topbar-menu.is-open .mobile-topbar-menu__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-topbar-menu__item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.8rem;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
}

.mobile-topbar-menu__item:hover {
  background: var(--interactive-softer);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1rem;
  max-height: 5rem;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  transition:
    margin-top 220ms ease,
    max-height 220ms ease,
    opacity 180ms ease,
    transform 220ms ease;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  min-height: 2.9rem;
  padding: 0 1rem;
  color: var(--text-muted);
  background: var(--surface-muted);
  border: 1px solid transparent;
  border-radius: 999px;
  transition:
    width 220ms ease,
    min-height 220ms ease,
    padding 220ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.search-field:focus-within {
  background: var(--surface);
  border-color: var(--line-strong);
}

.search-field input {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--text);
}

.search-field input::placeholder,
.composer__field textarea::placeholder {
  color: var(--text-muted);
}

.filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  margin-top: 1.15rem;
  max-height: 4.5rem;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  transition:
    margin-top 220ms ease,
    gap 220ms ease,
    max-height 220ms ease,
    opacity 180ms ease,
    transform 220ms ease;
}

.filter-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.46rem;
  min-height: 2.75rem;
  padding: 0 0 0.9rem;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  font-size: 0.95rem;
  font-weight: 600;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    min-height 220ms ease,
    padding 220ms ease,
    font-size 220ms ease,
    transform 160ms ease;
  transform: translateZ(0);
}

.filter-chip__icon {
  font-size: 0.92rem;
  opacity: 0.88;
  transform: translateY(0.01rem);
}

.filter-chip__icon--for-you {
  transform: translateY(0.01rem);
}

.filter-chip:hover {
  color: var(--text);
}

.filter-chip:active,
.filter-chip.is-pressed {
  transform: translateY(1px);
}

.filter-chip--active {
  color: var(--text);
  border-bottom-color: var(--black);
}

.composer {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.composer--teaser {
  padding-block: 1.1rem;
}

.composer--teaser .composer__header {
  margin-bottom: 0.75rem;
}

.composer--teaser .composer__header p {
  font-size: 0.88rem;
}

.composer__header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.composer__header h2 {
  margin: 0 0 0.15rem;
  font-size: 1rem;
}

.composer__header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.composer__field {
  display: block;
}

.composer__field textarea {
  width: 100%;
  min-height: 8rem;
  padding: 0;
  resize: vertical;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
}

.composer__field--trigger textarea {
  min-height: 3.35rem;
  resize: none;
  cursor: text;
}

.composer__field--trigger:hover textarea::placeholder {
  color: var(--text-soft);
}

.composer__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.composer__footer--teaser {
  margin-top: 0.8rem;
}

.composer--teaser .tag {
  min-height: 2.05rem;
  padding-inline: 0.82rem;
  font-size: 0.82rem;
}

.moodboard-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem 0 1.1rem;
  border-bottom: 1px solid var(--line);
}

.moodboard-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
}

.moodboard-card__header h2 {
  margin: 0 0 0.22rem;
  font-size: 1rem;
}

.moodboard-card__header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.moodboard-card__status {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  background: var(--surface-soft);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.moodboard-card__options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.moodboard-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  min-height: 2.45rem;
  padding: 0 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-soft);
  background: var(--surface-soft);
  font-size: 0.88rem;
  font-weight: 600;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    transform 160ms ease;
}

.moodboard-chip:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.moodboard-chip.is-active {
  color: var(--text);
  border-color: color-mix(in srgb, var(--text) 16%, var(--line-strong));
  background: color-mix(in srgb, var(--interactive-soft) 70%, var(--surface));
}

.moodboard-chip:disabled {
  opacity: 0.7;
  cursor: wait;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0 0.9rem;
  color: var(--text-soft);
  background: var(--surface-soft);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.tag:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.tag--active {
  color: var(--white);
  background: var(--black);
  border-color: var(--black);
}

.tag--active:hover {
  color: var(--white);
  background: var(--black);
  border-color: var(--black);
}

.composer__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.composer__actions--end {
  width: 100%;
  justify-content: flex-end;
}

.composer__count {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.composer__hint {
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
}

.compose-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    visibility 180ms ease;
}

.compose-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.compose-modal__dialog {
  width: min(100%, 42rem);
  max-height: min(90vh, 52rem);
  overflow: auto;
  padding: 1.1rem 1.1rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(17, 17, 17, 0.08);
}

.compose-modal__header,
.compose-modal__footer,
.compose-modal__identity {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.compose-modal__header {
  margin-bottom: 1rem;
}

.compose-modal__title h2 {
  margin: 0;
  font-size: 1.08rem;
}

.compose-modal__title p {
  margin: 0.3rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.compose-modal__identity {
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.compose-modal__identity > div {
  min-width: 0;
}

.compose-modal__identity strong {
  display: block;
  margin-bottom: 0.15rem;
}

.compose-modal__identity p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.compose-modal__tags {
  margin-bottom: 1rem;
}

.compose-modal__target-section {
  margin-bottom: 1rem;
}

.compose-modal__target-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.compose-modal__target-header strong {
  font-size: 0.88rem;
}

.compose-modal__target-header span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.compose-modal__targets {
  margin-bottom: 0.65rem;
}

.compose-modal__target-button {
  gap: 0.45rem;
}

.compose-modal__target-role {
  color: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.72;
}

.compose-modal__target-copy,
.compose-modal__target-empty {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.83rem;
  line-height: 1.55;
}

.compose-modal__target-empty {
  margin-bottom: 0.4rem;
}

.compose-modal__field {
  display: block;
  position: relative;
}

.compose-modal__field textarea {
  width: 100%;
  min-height: 14rem;
  padding: 0 0 2.9rem;
  resize: none;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.72;
}

.compose-modal__editor-tools {
  display: none;
}

.compose-modal__emoji {
  position: absolute;
  right: 0;
  bottom: 0.15rem;
  z-index: 5;
}

.compose-modal__emoji-toggle.icon-button {
  width: 2.45rem;
  height: 2.45rem;
  min-width: 2.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--text-muted);
  box-shadow: none;
}

.compose-modal__emoji-toggle.icon-button:hover,
.compose-modal__emoji-toggle.icon-button:focus-visible {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line-strong);
}

.compose-modal__emoji-toggle .icon {
  font-size: 1.08rem;
}

.compose-modal__emoji-popover {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.65rem);
  z-index: 25;
  width: min(100vw - 4rem, 19rem);
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.compose-modal__emoji-picker {
  min-height: 19rem;
  transform: scale(0.9);
  transform-origin: right bottom;
}

.compose-modal__emoji-picker-element {
  width: 100%;
}

.compose-modal__selected-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.compose-modal__selected-topic {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.7rem 0.45rem 0.82rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.83rem;
  font-weight: 700;
}

.compose-modal__selected-topic-remove {
  width: 1.55rem;
  height: 1.55rem;
  min-width: 1.55rem;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}

.compose-modal__meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.45rem;
}

.compose-modal__toggle,
.compose-modal__expiry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.62rem;
  min-height: 2.85rem;
  padding: 0.58rem 0.7rem;
  background: color-mix(in srgb, var(--surface) 88%, var(--surface-soft));
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(17, 17, 17, 0.025);
}

.compose-modal__meta-copy {
  display: grid;
  gap: 0;
  min-width: 0;
}

.compose-modal__meta-title {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.25;
}

.compose-modal__meta-title .icon {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.compose-modal__switch {
  position: relative;
  flex: 0 0 auto;
  align-self: center;
}

.compose-modal__switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.compose-modal__switch-ui {
  position: relative;
  display: inline-flex;
  width: 2.2rem;
  height: 1.28rem;
  background: var(--interactive-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition:
    background-color 180ms ease,
    border-color 180ms ease;
}

.compose-modal__switch-ui::after {
  content: "";
  position: absolute;
  top: 0.1rem;
  left: 0.1rem;
  width: 0.84rem;
  height: 0.84rem;
  background: var(--surface);
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(17, 17, 17, 0.12);
  transition: transform 180ms ease;
}

.compose-modal__switch input:checked + .compose-modal__switch-ui {
  background: var(--text);
  border-color: var(--text);
}

.compose-modal__switch input:checked + .compose-modal__switch-ui::after {
  transform: translateX(0.9rem);
}

.compose-modal__switch input:focus-visible + .compose-modal__switch-ui {
  box-shadow: var(--shadow-focus);
}

.compose-modal__expiry select {
  width: auto;
  min-width: 0;
  max-width: 6.65rem;
  align-self: center;
  flex: 0 0 auto;
  min-height: 1.95rem;
  padding-block: 0.2rem;
  padding-inline: 0.75rem 1.8rem;
  font-size: 0.72rem;
}

.compose-modal__gif-panel {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.compose-modal__gif-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  text-align: left;
}

.compose-modal__gif-toggle-copy {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}

.compose-modal__gif-toggle-copy strong {
  font-size: 0.9rem;
}

.compose-modal__gif-toggle-copy span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.compose-modal__gif-toggle .icon {
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: transform 180ms ease;
}

.compose-modal__gif-panel.is-open .compose-modal__gif-toggle .icon {
  transform: rotate(180deg);
}

.compose-modal__gif-dropdown {
  margin-top: 0.8rem;
  padding: 0.95rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.compose-modal__gif-search {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
}

.compose-modal__gif-search .settings-input {
  flex: 1 1 auto;
  min-width: 0;
}

.compose-modal__gif-selected {
  margin-bottom: 0.8rem;
}

.compose-modal__gif-chip {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  padding: 0.65rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.compose-modal__gif-chip img {
  width: 4.25rem;
  height: 4.25rem;
  object-fit: cover;
  border-radius: 12px;
}

.compose-modal__gif-chip figcaption {
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 600;
}

.compose-modal__gif-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.compose-modal__gif-item {
  display: grid;
  gap: 0.4rem;
  padding: 0.45rem;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.compose-modal__gif-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
}

.compose-modal__gif-item span,
.compose-modal__gif-empty {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.compose-modal__gif-empty {
  margin: 0;
  padding: 0.25rem 0;
}

.compose-modal__footer {
  align-items: center;
  margin-top: 1rem;
}

.compose-modal__hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.compose-modal__hint[data-state="error"] {
  color: #b42318;
}

.compose-modal__hint[data-state="success"] {
  color: #0f766e;
}

.compose-modal__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.compose-modal__count {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.report-modal {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--overlay-scrim);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    visibility 180ms ease;
}

.report-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.report-modal__dialog {
  width: min(100%, 34rem);
  max-height: min(88vh, 46rem);
  overflow: auto;
  padding: 1.1rem 1.1rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--modal-shadow);
}

.report-modal__header,
.report-modal__footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.report-modal__header {
  margin-bottom: 1rem;
}

.report-modal__title h2 {
  margin: 0;
  font-size: 1.08rem;
}

.report-modal__title p {
  margin: 0.3rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.report-modal__preview {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-soft);
}

.report-modal__preview strong {
  font-size: 0.9rem;
}

.report-modal__preview p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

.report-modal__options {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.report-modal__option {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background-color 180ms ease;
}

.report-modal__option:hover {
  border-color: var(--line-strong);
  background: var(--interactive-softer);
}

.report-modal__option input {
  margin-top: 0.1rem;
  accent-color: var(--black);
}

.report-modal__option strong {
  display: block;
  margin-bottom: 0.12rem;
  font-size: 0.92rem;
}

.report-modal__option p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.report-modal__option:has(input:checked) {
  border-color: var(--black);
  background: var(--interactive-soft);
}

.report-modal__note {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.report-modal__note span {
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 600;
}

.report-modal__note textarea {
  width: 100%;
  min-height: 6.5rem;
  padding: 0.95rem 1rem;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
}

.report-modal__note textarea:focus-visible {
  outline: none;
  border-color: var(--black);
  box-shadow: var(--shadow-focus);
}

.report-modal__footer {
  align-items: center;
  margin-top: 1rem;
}

.report-modal__hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.report-modal__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
}

.system-modal {
  position: fixed;
  inset: 0;
  z-index: 2300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--overlay-scrim);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    visibility 180ms ease;
}

.system-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.system-modal__dialog {
  width: min(100%, 34rem);
  max-height: min(88vh, 46rem);
  overflow: auto;
  padding: 1.1rem 1.1rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--modal-shadow);
}

.system-modal__header,
.system-modal__footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.system-modal__header {
  margin-bottom: 1rem;
}

.system-modal__title h2 {
  margin: 0;
  font-size: 1.08rem;
}

.system-modal__title p {
  margin: 0.3rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.system-modal__body {
  display: grid;
  gap: 0.8rem;
}

.system-modal__stack {
  display: grid;
  gap: 0.75rem;
}

.system-modal__card {
  display: grid;
  gap: 0.24rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-soft);
}

.system-modal__card strong {
  font-size: 0.92rem;
}

.system-modal__card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

.system-modal__field {
  display: grid;
  gap: 0.5rem;
}

.system-modal__field span {
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 600;
}

.system-modal__footer {
  margin-top: 1rem;
}

.system-modal__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.reward-modal {
  position: fixed;
  inset: 0;
  z-index: 2310;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    visibility 180ms ease;
}

.reward-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.reward-modal__dialog {
  position: relative;
  width: min(100%, 32rem);
  padding: 1.45rem 1.4rem 1.3rem;
  background: var(--surface);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 32px;
  box-shadow: 0 26px 80px rgba(17, 17, 17, 0.12);
  overflow: hidden;
  transform: translateY(14px) scale(0.97);
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reward-modal.is-open.is-animate .reward-modal__dialog {
  transform: translateY(0) scale(1);
}

.reward-modal__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.reward-modal__particles .icon {
  position: absolute;
  top: -14%;
  left: 0;
  color: rgba(17, 17, 17, 0.15);
  font-size: 1rem;
  opacity: 0;
  animation: rewardParticleRain var(--rain-duration, 2.8s) linear infinite;
  animation-delay: var(--rain-delay, 0ms);
}

.reward-modal__particles .icon:nth-child(1) {
  left: 8%;
  font-size: 0.95rem;
  --rain-duration: 2.9s;
  --rain-delay: 0ms;
  --rain-drift: -12px;
}

.reward-modal__particles .icon:nth-child(2) {
  left: 19%;
  font-size: 1.05rem;
  --rain-duration: 2.5s;
  --rain-delay: 280ms;
  --rain-drift: 8px;
}

.reward-modal__particles .icon:nth-child(3) {
  left: 33%;
  font-size: 1.15rem;
  --rain-duration: 2.7s;
  --rain-delay: 140ms;
  --rain-drift: -6px;
}

.reward-modal__particles .icon:nth-child(4) {
  left: 46%;
  font-size: 1rem;
  --rain-duration: 3.1s;
  --rain-delay: 420ms;
  --rain-drift: 10px;
}

.reward-modal__particles .icon:nth-child(5) {
  left: 58%;
  font-size: 1.08rem;
  --rain-duration: 2.6s;
  --rain-delay: 760ms;
  --rain-drift: -10px;
}

.reward-modal__particles .icon:nth-child(6) {
  left: 69%;
  font-size: 0.96rem;
  --rain-duration: 3s;
  --rain-delay: 540ms;
  --rain-drift: 12px;
}

.reward-modal__particles .icon:nth-child(7) {
  left: 81%;
  font-size: 1.12rem;
  --rain-duration: 2.75s;
  --rain-delay: 220ms;
  --rain-drift: -8px;
}

.reward-modal__particles .icon:nth-child(8) {
  left: 90%;
  font-size: 0.92rem;
  --rain-duration: 3.2s;
  --rain-delay: 880ms;
  --rain-drift: 6px;
}

.reward-modal__badge {
  position: relative;
  width: 5.4rem;
  height: 5.4rem;
  margin: 0 auto 1rem;
}

.reward-modal__badge-ring,
.reward-modal__badge-core {
  position: absolute;
  inset: 0;
  border-radius: 999px;
}

.reward-modal__badge-ring {
  border: 1px solid rgba(17, 17, 17, 0.1);
  background: radial-gradient(circle, rgba(17, 17, 17, 0.04), rgba(17, 17, 17, 0));
}

.reward-modal__badge-core {
  inset: 0.62rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111111;
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.12);
  box-shadow: 0 16px 36px rgba(17, 17, 17, 0.08);
}

.reward-modal__badge-core .icon {
  font-size: 2rem;
}

.reward-modal__content {
  display: grid;
  gap: 0.8rem;
  text-align: center;
}

.reward-modal__eyebrow {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.reward-modal__content h2 {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: -0.04em;
}

.reward-modal__content p {
  max-width: 28rem;
  margin: 0 auto;
  color: var(--text-soft);
  line-height: 1.7;
}

.reward-modal__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.reward-modal__meta strong {
  color: var(--text);
  font-size: 0.95rem;
}

.reward-modal__progress {
  width: min(18rem, 100%);
  height: 0.6rem;
  margin: 0.1rem auto 0;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.08);
  overflow: hidden;
}

.reward-modal__progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #111111, rgba(17, 17, 17, 0.62));
  transition: width 480ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reward-modal__actions {
  margin-top: 1.15rem;
  display: flex;
  justify-content: center;
}

@keyframes rewardParticleRain {
  0% {
    transform: translate3d(0, -18%, 0) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.26;
  }

  78% {
    opacity: 0.26;
  }

  100% {
    transform: translate3d(var(--rain-drift, 0px), 26rem, 0) rotate(190deg);
    opacity: 0;
  }
}

.explore-hero {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.explore-hero__intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}

.explore-hero__copy h2 {
  margin: 0;
  font-size: 1.18rem;
}

.explore-hero__copy p {
  max-width: 58ch;
  margin: 0.45rem 0 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.explore-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  min-width: 340px;
}

.explore-metric {
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
}

.explore-metric strong {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.98rem;
}

.explore-metric span {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.discovery-block {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.discovery-block__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.discovery-block__header h2 {
  margin: 0;
  font-size: 1.05rem;
}

.discovery-block__header p {
  margin: 0.3rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.discovery-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

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

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.guide-card {
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.guide-card__eyebrow {
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-card h3 {
  margin: 0.42rem 0 0.25rem;
  font-size: 1rem;
  line-height: 1.3;
}

.guide-card > p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.62;
}

.guide-card__steps {
  display: grid;
  gap: 0.6rem;
  margin: 0.95rem 0 0;
  padding: 0;
  list-style: none;
}

.guide-card__steps li {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--text-soft);
  font-size: 0.86rem;
  line-height: 1.58;
}

.guide-card__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 700;
}

.guide-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.guide-card__meta {
  color: var(--text-muted);
  font-size: 0.81rem;
  font-weight: 600;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.topic-grid--wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.topics-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(18rem, 0.9fr);
  gap: 1rem;
  padding: 1.25rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
}

.topics-hero__copy h2 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(1.55rem, 2vw, 2rem);
  line-height: 1.05;
}

.topics-hero__copy p {
  max-width: 64ch;
  margin: 0.7rem 0 0;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.72;
}

.topics-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.topics-hero__stat {
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-soft);
}

.topics-hero__stat strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 1.25rem;
  line-height: 1;
}

.topics-hero__stat span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.topic-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.topic-tile:hover {
  background: var(--surface-soft);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.topic-tile__label strong {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.98rem;
}

.topic-tile__label p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.topic-tile__count {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.topic-tile__meta {
  display: grid;
  justify-items: flex-end;
  gap: 0.25rem;
  text-align: right;
}

.explore-feed {
  display: grid;
  gap: 0;
}

.explore-feed .post-card:first-child {
  padding-top: 0;
}

.person-list {
  display: grid;
  gap: 0;
}

.person-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
}

.person-row:first-child {
  border-top: 0;
}

.person-row__meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.person-row__meta strong {
  display: block;
  margin-bottom: 0.1rem;
}

.person-row__meta p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.person-row__note {
  color: var(--text-muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.follow-list {
  display: grid;
  gap: 0;
  margin-top: 0.75rem;
}

.follow-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
}

.follow-user:first-child {
  border-top: 0;
}

.follow-user__meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.follow-user__meta strong {
  display: block;
  margin-bottom: 0.1rem;
  font-size: 0.92rem;
}

.follow-user__meta p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.feed {
  display: grid;
  gap: 0;
}

.post-card {
  position: relative;
  padding: 1.35rem 0 1.1rem;
  border-bottom: 1px solid var(--line);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    border-color 180ms ease;
}

.post-card--detail-link {
  cursor: pointer;
  transition:
    transform 180ms ease,
    opacity 180ms ease,
    border-color 180ms ease;
}

.post-card--detail-link:hover .post-card__body p,
.post-card--detail-link:hover .post-card__author-row strong span,
.post-card--detail-link:focus-within .post-card__body p {
  color: var(--text);
}

.post-card--detail-link:active,
.post-card--detail-link.is-pressed {
  transform: translateX(0.08rem) scale(0.997);
}

.post-card__header,
.post-card__footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.post-card__identity {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.post-card__author-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.15rem;
}

.post-card__author-row .follow-button {
  margin-left: 0.05rem;
}

.post-card__identity p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.post-card__meta-link {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

.post-card__meta-link:hover,
.post-card__meta-link:focus-visible {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.14rem;
}

.post-card__badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0 0.65rem;
  color: var(--text-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.post-card__badge--muted {
  color: var(--text-muted);
}

.post-card__trend-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.8rem;
  min-height: 1.8rem;
  color: var(--trend);
  font-size: 0.98rem;
  line-height: 1;
}

.post-card__trend-indicator .icon {
  font-size: 1rem;
}

.post-card__ghost-indicator,
.post-card__expiry-indicator {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  min-height: 1.8rem;
  padding: 0 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.post-card__ghost-indicator {
  color: var(--text-soft);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  cursor: help;
}

.post-card__ghost-indicator .icon {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.post-card__expiry-indicator {
  color: #9a5b00;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.22);
}

.post-card__expiry-indicator .icon {
  font-size: 0.88rem;
}

.post-card__expiry-indicator.is-expired {
  color: var(--text-muted);
  background: var(--surface-soft);
  border-color: var(--line);
}

.post-card__ghost-indicator:hover,
.post-card__ghost-indicator:focus-visible,
.post-card__expiry-indicator:hover,
.post-card__expiry-indicator:focus-visible {
  z-index: var(--tooltip-z);
}

.post-card__ghost-indicator::after,
.post-card__expiry-indicator::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: calc(var(--tooltip-z) + 1);
  left: 50%;
  bottom: calc(100% + 0.55rem);
  transform: translate(-50%, 0.2rem);
  min-width: 12rem;
  max-width: 18rem;
  padding: 0.5rem 0.72rem;
  border-radius: 14px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.12);
}

.post-card__ghost-indicator:hover::after,
.post-card__ghost-indicator:focus-visible::after,
.post-card__expiry-indicator:hover::after,
.post-card__expiry-indicator:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

:root[data-theme="dark"] .post-card__expiry-indicator {
  color: #f7c867;
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(251, 191, 36, 0.24);
}

.post-card__body {
  margin: 0.9rem 0 1rem;
  position: relative;
  overflow: hidden;
}

.post-card__body--sensitive {
  min-height: 3.6rem;
  max-height: 3.6rem;
}

.post-card__body p {
  max-width: 62ch;
  margin: 0;
  font-size: 1rem;
  line-height: 1.72;
}

.post-card__body--sensitive p,
.post-card__body--sensitive .post-card__media {
  filter: blur(14px);
  transform: scale(1.01);
  opacity: 0.36;
  pointer-events: none;
  user-select: none;
}

.post-card__media {
  margin: 0.72rem 0 0.2rem;
}

.post-card__media img {
  display: block;
  width: 100%;
  max-width: 18.5rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.post-card__sensitive-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0.48rem 0.72rem;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.22) 30%, rgba(255, 255, 255, 0) 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(248, 248, 248, 0.1) 100%);
}

:root[data-theme="dark"] .post-card__sensitive-overlay {
  background:
    radial-gradient(circle at 12% 18%, rgba(42, 49, 60, 0.72) 0%, rgba(20, 24, 31, 0.26) 30%, rgba(10, 12, 16, 0) 62%),
    linear-gradient(180deg, rgba(14, 17, 22, 0.2) 0%, rgba(10, 12, 16, 0.08) 100%);
}

.post-card__sensitive-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.44rem;
  padding: 0.46rem 0.78rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 999px;
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  pointer-events: none;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.06);
}

:root[data-theme="dark"] .post-card__sensitive-badge {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.post-card__engagement,
.post-card__tools {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.post-card__menu {
  position: relative;
  z-index: 2;
}

.post-card__menu.is-open {
  z-index: 8;
}

.action-chip,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 0.45rem;
  min-height: auto;
  padding: 0;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  transition:
    color 180ms ease,
    transform 160ms ease,
    opacity 160ms ease;
  transform: translateZ(0);
}

.action-chip {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  overflow: visible;
}

.icon-button:hover,
.action-chip:hover {
  color: var(--text);
}

.icon-button:active,
.icon-button.is-pressed,
.action-chip:active,
.action-chip.is-pressed {
  transform: translateY(1px) scale(0.96);
}

.icon-button[data-flash-label] {
  color: var(--text);
}

.icon-button[data-flash-label]:hover,
.icon-button[data-flash-label]:focus-visible {
  z-index: var(--tooltip-z);
}

.icon-button[data-flash-label]::after {
  content: attr(data-flash-label);
  position: absolute;
  z-index: calc(var(--tooltip-z) + 1);
  left: 50%;
  bottom: calc(100% + 0.55rem);
  transform: translate(-50%, 0.2rem);
  padding: 0.34rem 0.58rem;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.12);
}

.post-card__menu.is-open .post-card__menu-button {
  color: var(--text);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  display: grid;
  gap: 0.2rem;
  min-width: 210px;
  padding: 0.4rem;
  background: var(--panel-surface);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: var(--popover-shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px) scale(0.98);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease;
}

.post-card__menu.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.dropdown-menu__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 2.6rem;
  padding: 0.7rem 0.8rem;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 12px;
  text-align: left;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.dropdown-menu__item .icon {
  color: var(--text-muted);
}

.dropdown-menu__item:hover {
  background: var(--interactive-soft);
}

.dropdown-menu__item--danger {
  color: #a73a3a;
}

.dropdown-menu__item--danger .icon {
  color: currentColor;
}

.post-card--dismissed {
  opacity: 0;
  transform: translateY(-6px);
}

.post-card--live-enter {
  animation: post-live-enter 360ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

[data-like-count],
[data-reply-count],
[data-profile-saved-count],
[data-profile-saved-metric] {
  display: inline-block;
  transform-origin: 50% 60%;
}

.is-count-animating {
  animation: count-bump 280ms cubic-bezier(0.22, 0.9, 0.24, 1);
}

.action-chip--like .icon {
  transition:
    transform 180ms ease,
    color 180ms ease;
}

.action-chip--liked {
  color: var(--heart);
}

.action-chip--liked .icon {
  transform: scale(1.06);
}

.action-chip--liked:hover {
  color: var(--heart);
}

.bookmark-button--saved {
  color: var(--black);
}

.bookmark-button--saved:hover {
  color: var(--black);
}

.bookmark-button--pop .icon {
  animation: bookmark-pop 460ms cubic-bezier(0.18, 0.92, 0.22, 1);
}

.bookmark-burst {
  position: absolute;
  left: var(--origin-x, 0px);
  top: var(--origin-y, 0px);
  width: 0;
  height: 0;
  pointer-events: none;
}

.bookmark-burst__mark {
  position: absolute;
  left: 0;
  top: 0;
  width: 0.46rem;
  height: 0.62rem;
  background: var(--black);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M8 2a3 3 0 0 0-3 3v17.25c0 .6.68.95 1.17.6L12 18.67l5.83 4.18c.49.35 1.17 0 1.17-.6V5a3 3 0 0 0-3-3H8z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M8 2a3 3 0 0 0-3 3v17.25c0 .6.68.95 1.17.6L12 18.67l5.83 4.18c.49.35 1.17 0 1.17-.6V5a3 3 0 0 0-3-3H8z'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.3);
  animation: bookmark-burst 700ms cubic-bezier(0.16, 0.84, 0.22, 1) forwards;
  animation-delay: var(--delay, 0ms);
}

.action-chip--pop .icon {
  animation: like-pop 520ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.like-burst {
  position: absolute;
  left: var(--origin-x, 0px);
  top: var(--origin-y, 0px);
  width: 0;
  height: 0;
  pointer-events: none;
}

.like-burst__heart {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--heart);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.25);
  animation: like-heart-burst 760ms cubic-bezier(0.18, 0.82, 0.24, 1) forwards;
  animation-delay: var(--delay, 0ms);
}

@keyframes like-pop {
  0% {
    transform: scale(1);
  }

  32% {
    transform: scale(1.28);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes count-bump {
  0% {
    opacity: 0.72;
    transform: translateY(2px) scale(0.92);
  }

  55% {
    opacity: 1;
    transform: translateY(-1px) scale(1.08);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes post-live-enter {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bookmark-pop {
  0% {
    transform: scale(1) rotate(0deg);
  }

  34% {
    transform: scale(1.22) rotate(-6deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
  }
}

@keyframes like-heart-burst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.25);
  }

  15% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(
        calc(-50% + var(--x, 0px)),
        calc(-50% + var(--y, -30px))
      )
      rotate(var(--rotate, 0deg))
      scale(1);
  }
}

@keyframes bookmark-burst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3);
  }

  18% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(
        calc(-50% + var(--x, 0px)),
        calc(-50% + var(--y, -24px))
      )
      rotate(var(--rotate, 0deg))
      scale(1);
  }
}

.rail {
  position: fixed;
  top: 0;
  right: max(var(--shell-gutter), calc(50% - var(--layout-half)));
  width: var(--rail-width);
  height: 100vh;
  padding-left: 1.5rem;
  overflow-y: auto;
}

.rail {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding-top: 1.75rem;
}

.rail__legal {
  display: grid;
  gap: 0.85rem;
  margin-top: auto;
  padding-top: 0.85rem;
  padding-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.rail__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}

.rail__legal a {
  color: inherit;
  transition: color 180ms ease;
}

.rail__legal a:hover {
  color: var(--text);
}

.rail__legal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}

.rail__legal-version {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.52rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-soft);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.rail__legal-copy {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.rail__legal-flag {
  display: inline-block;
  transform: translateY(0.02rem);
}

body.is-scrolled .topbar {
  padding-top: 0.8rem;
  padding-bottom: 0.45rem;
  background: var(--topbar-scrolled-surface);
  box-shadow: var(--topbar-scrolled-shadow);
}

body.is-scrolled .topbar--wiki-detail {
  padding-bottom: 0.7rem;
}

body.is-scrolled .eyebrow {
  max-height: 0;
  margin: 0;
  opacity: 0;
  transform: translateY(-4px);
}

body.is-scrolled .topbar__heading h1 {
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

body.is-scrolled .topbar__heading-tools {
  transform: translateY(-0.04rem);
}

body.is-scrolled.space-page .topbar__space-name {
  max-width: 16rem;
  margin-left: 0.38rem;
  opacity: 1;
  transform: translateX(0);
}

body.is-scrolled .topbar__actions {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  transform: translateY(-0.45rem);
  pointer-events: none;
}

body.is-scrolled .filter-bar {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  transform: translateY(-0.45rem);
  pointer-events: none;
}

body.is-scrolled .topbar__notify-link {
  transform: scale(0.96);
}

.widget {
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.widget:last-child {
  border-bottom: 0;
}

.widget--no-divider {
  padding-bottom: 0;
  border-bottom: 0;
}

.rail > .widget:last-of-type {
  padding-bottom: 0;
  border-bottom: 0;
}

.widget + .rail__legal,
.rail__legal:last-child {
  border-top: 1px solid var(--line);
}

.widget--no-divider + .rail__legal {
  border-top: 0;
}

.widget h2 {
  margin: 0;
  font-size: 0.98rem;
}

.widget p {
  margin: 0.75rem 0 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.widget__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.widget-list {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.widget-list li {
  color: var(--text-soft);
  line-height: 1.55;
}

.legal-shell {
  width: min(100%, 54rem);
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.4rem;
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 600;
}

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

.legal-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
  margin-bottom: 1.35rem;
}

.legal-brand__mark {
  width: 1.9rem;
  height: 1.9rem;
  object-fit: contain;
}

.legal-brand__logo {
  width: auto;
  height: 1.15rem;
  object-fit: contain;
}

.legal-document {
  display: grid;
  gap: 1.6rem;
  padding: 1.65rem 1.7rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.8rem;
}

.legal-document__head {
  display: grid;
  gap: 0.65rem;
}

.legal-document__eyebrow {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.legal-document__head h1,
.legal-document__head p,
.legal-document__meta,
.legal-section h2,
.legal-section p,
.legal-section li,
.legal-links--centered {
  margin: 0;
}

.legal-document__head h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.04;
}

.legal-document__head p,
.legal-section p,
.legal-section li {
  color: var(--text-soft);
  line-height: 1.7;
}

.legal-document__meta {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.legal-section {
  display: grid;
  gap: 0.75rem;
}

.legal-section + .legal-section {
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  font-size: 1.02rem;
}

.legal-section ul {
  display: grid;
  gap: 0.55rem;
  padding-left: 1.1rem;
  margin: 0;
}

.legal-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-facts li {
  display: grid;
  gap: 0.28rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface-soft);
}

.legal-facts strong {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.legal-facts span,
.legal-facts a {
  color: var(--text);
  line-height: 1.65;
}

.legal-table {
  display: grid;
  gap: 0;
}

.legal-table__row {
  display: grid;
  grid-template-columns: minmax(9rem, 0.78fr) minmax(0, 1.22fr);
  gap: 0.85rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
}

.legal-table__row:first-child {
  padding-top: 0;
  border-top: 0;
}

.legal-table__label {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.legal-table__value {
  min-width: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.legal-table__value strong {
  color: var(--text);
}

.legal-section address {
  margin: 0;
  color: var(--text-soft);
  font-style: normal;
  line-height: 1.7;
}

.legal-note {
  padding: 0.95rem 1rem;
  color: var(--text-soft);
  background: var(--surface-soft);
  border-radius: 1rem;
  font-size: 0.9rem;
}

.legal-links--centered {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: center;
  margin-top: 1.2rem;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.legal-links--centered a:hover {
  color: var(--text);
}

.topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.topic-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.8rem;
  color: var(--text-soft);
  background: var(--surface-soft);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transform: translateZ(0);
}

.topic-pill:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.topic-pill:active,
.topic-pill.is-pressed {
  transform: translateY(1px) scale(0.985);
  box-shadow: var(--tactile-shadow-press);
}

.space-list {
  display: grid;
  gap: 0;
  margin-top: 0.75rem;
}

.space-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
}

.space-card strong {
  display: block;
  margin-bottom: 0.15rem;
}

.space-card__person-name {
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
}

.space-card__person-name .verified-badge {
  margin-left: 0.1rem;
}

.space-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.space-card__handle {
  color: inherit;
  text-decoration: none;
}

.space-card__handle:hover,
.space-card__handle:focus-visible {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.14rem;
}

.space-card__title {
  color: var(--text);
}

.space-card__title:hover {
  color: var(--text);
  opacity: 0.76;
}

.space-card__meta-link {
  color: inherit;
}

.space-card__meta-link:hover,
.space-card__meta-link:focus-visible {
  color: var(--text);
  opacity: 0.76;
}

.space-hero {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.space-hero__meta,
.space-hero__header,
.space-hero__footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.space-hero__meta {
  align-items: center;
  margin-bottom: 1rem;
}

.space-hero__identity {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
}

.space-hero__summary {
  min-width: 0;
}

.space-hero__title-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.space-hero__title-row h2 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.space-hero__summary p {
  max-width: 64ch;
  margin: 0.7rem 0 0;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.74;
}

.space-hero__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.space-hero__footer {
  margin-top: 1.25rem;
}

.space-hero__topics {
  flex: 1 1 22rem;
  margin-top: 0;
}

.space-hero__stats {
  flex: 1 1 28rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.space-hero__stat {
  min-width: 0;
  padding-left: 0.9rem;
  border-left: 1px solid var(--line);
}

.space-hero__stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.space-hero__stat strong {
  display: block;
  margin-bottom: 0.16rem;
  font-size: 1rem;
}

.space-hero__stat span {
  display: block;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.question-hero,
.reply-composer,
.question-section {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.question-detail-content > .question-section:last-child {
  border-bottom: 0;
}

.question-detail-content > .question-section:last-child .post-card:last-child,
.question-detail-content > .question-section:last-child .soft-empty-state:last-child {
  border-bottom: 0;
}

.question-hero__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.question-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

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

.question-hero__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.question-hero__body {
  margin-top: 1rem;
}

.question-hero__body > p {
  max-width: 62ch;
  margin: 0;
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.75;
}

.question-hero__body > p + p {
  margin-top: 1rem;
}

.question-hero__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
}

.question-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem 1rem;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.reply-composer__header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.reply-composer__header h2 {
  margin: 0 0 0.15rem;
  font-size: 1rem;
}

.reply-composer__header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.reply-composer__target {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.95rem;
  padding: 0.78rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(17, 17, 17, 0.025);
}

.reply-composer__target strong {
  display: block;
  margin-bottom: 0.12rem;
  font-size: 0.92rem;
}

.reply-composer__target p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.reply-composer__target .button {
  flex: 0 0 auto;
}

.reply-composer .composer__field textarea {
  min-height: 6.5rem;
}

.reply-composer__auth {
  margin-top: 0.2rem;
  width: 100%;
  gap: 0.72rem;
  padding: 1rem 1.05rem;
  border-radius: 1.15rem;
}

.reply-composer__auth h2 {
  font-size: 1rem;
  line-height: 1.12;
}

.reply-composer__auth p {
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

.reply-composer__auth .auth-required__actions {
  gap: 0.55rem;
}

.reply-composer__auth .button {
  min-height: 2.05rem;
  padding: 0.42rem 0.78rem;
  font-size: 0.8rem;
}

.reply-composer__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.question-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.question-section__header h2 {
  margin: 0;
  font-size: 1.05rem;
}

.question-section__header p {
  margin: 0.3rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.reply-thread {
  display: grid;
  gap: 0;
}

.question-ai-context {
  display: grid;
  gap: 1rem;
}

.question-ai-context__state,
.question-ai-context__lead,
.question-ai-context__block,
.question-ai-context__keywords,
.question-context-links {
  display: grid;
  gap: 0.45rem;
}

.question-context-links p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.62;
}

.question-ai-context__surface {
  display: grid;
  gap: 1rem;
  padding: 1.2rem 1.2rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  box-shadow: 0 10px 32px rgba(17, 17, 17, 0.035);
}

.question-ai-context__state {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.85rem;
  color: var(--text-soft);
}

.question-ai-context__eyebrow {
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.question-ai-context__state strong {
  color: var(--text);
  font-size: 0.96rem;
}

.question-ai-context__state p,
.question-ai-context__lead p,
.question-ai-context__block p,
.question-ai-context__keywords p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.question-ai-context__status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  color: var(--text);
  background: var(--interactive-soft);
  border-radius: 999px;
}

.question-ai-context__spinner {
  width: 0.95rem;
  height: 0.95rem;
  border: 1.5px solid var(--line-strong);
  border-top-color: var(--text);
  border-radius: 999px;
  animation: questionContextSpin 0.8s linear infinite;
}

.question-ai-context__state--error {
  color: var(--text-muted);
}

.question-ai-context__state--error .button {
  justify-self: start;
  margin-top: 0.15rem;
}

.question-ai-context__content {
  display: grid;
  gap: 1rem;
}

.question-ai-context__lead {
  padding-bottom: 0.95rem;
  border-bottom: 1px solid var(--line);
}

.question-ai-context__lead p {
  max-width: 64ch;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.78;
}

.question-ai-context__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.question-ai-context__block {
  padding: 1rem 1rem 1.02rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.question-ai-context__angles {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.question-ai-context__angles li {
  position: relative;
  padding-left: 1rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.question-ai-context__angles li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  background: var(--text);
  transform: translateY(-50%);
}

.question-ai-context__keywords {
  gap: 0.6rem;
}

.question-ai-context__keywords .topic-list {
  margin-top: 0;
}

.question-context-links {
  margin-top: 0.3rem;
}

@keyframes questionContextSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.reply-thread .post-card--thread-nested {
  margin-left: 2.9rem;
  padding-left: 1rem;
}

.reply-thread .post-card--thread-nested::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  bottom: 1.15rem;
  width: 1px;
  background: var(--line);
}

.reply-thread .post-card--thread-deeper {
  margin-left: 4rem;
}

.reply-item {
  position: relative;
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: 0.9rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.reply-item--pinned {
  order: -1;
}

.reply-item--pinned.reply-item--nested {
  margin-left: 0;
}

.reply-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.reply-item--nested {
  margin-left: 2.35rem;
}

.reply-item__line {
  position: relative;
  width: 1.5rem;
}

.reply-item__line::before {
  content: "";
  position: absolute;
  top: 0.3rem;
  left: 0.65rem;
  width: 1px;
  height: calc(100% + 1rem);
  background: var(--line);
}

.reply-item:last-child .reply-item__line::before {
  height: calc(100% - 0.3rem);
}

.reply-item__body {
  min-width: 0;
}

.reply-item--pinned .reply-item__body {
  border-top: 1px solid var(--line-strong);
  padding-top: 0.2rem;
}

.reply-item__header,
.reply-item__footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.reply-item__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.reply-item__content {
  margin-top: 0.75rem;
}

.reply-item__content p {
  max-width: 60ch;
  margin: 0;
  line-height: 1.72;
}

.reply-item__footer {
  margin-top: 0.85rem;
}

.reply-item__pinned-badge {
  color: var(--text);
  border-color: var(--line-strong);
}

.reply-item__signal {
  color: var(--text-muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.context-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.context-block {
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.context-block strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
}

.context-block p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.65;
}

.question-timeline {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.question-timeline li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
}

.question-timeline li:first-child {
  border-top: 0;
}

.question-timeline li strong {
  font-size: 0.92rem;
  white-space: nowrap;
}

.question-timeline li span {
  color: var(--text-soft);
  text-align: right;
}

.settings-hero,
.settings-section {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.settings-page {
  position: relative;
  padding-bottom: 7rem;
}

.settings-floating-actions {
  position: fixed;
  right: max(1.35rem, env(safe-area-inset-right));
  bottom: calc(1.35rem + env(safe-area-inset-bottom));
  z-index: 35;
  display: grid;
  justify-items: end;
  gap: 0.45rem;
}

@media (min-width: 1201px) {
  .settings-floating-actions {
    right: calc(max(var(--shell-gutter), calc(50% - var(--layout-half))) + var(--rail-width) + 1.5rem);
  }
}

.settings-hero__summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.settings-hero__summary h2 {
  margin: 0;
  font-size: 1.18rem;
}

.settings-hero__summary p {
  max-width: 62ch;
  margin: 0.45rem 0 0;
  color: var(--text-soft);
  line-height: 1.68;
}

.settings-hero__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.settings-save-state {
  min-height: 1rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: right;
}

.settings-save-state[data-state="dirty"] {
  color: var(--text-soft);
}

.settings-save-state[data-state="saving"] {
  color: var(--text);
}

.settings-save-state[data-state="success"] {
  color: #2f6b4f;
}

.settings-save-state[data-state="error"] {
  color: #a73a3a;
}

.settings-hero__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.settings-meta strong {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.96rem;
}

.settings-meta span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.settings-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.settings-section__header h2 {
  margin: 0;
  font-size: 1.05rem;
}

.settings-section__header p {
  margin: 0.3rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.settings-section--danger {
  border-bottom: 0;
}

.settings-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1rem;
  margin-bottom: 1rem;
}

.settings-field {
  display: grid;
  gap: 0.45rem;
}

.settings-field--full {
  grid-column: 1 / -1;
}

.settings-field span {
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 600;
}

.settings-field__label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.settings-field__info {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: help;
}

.settings-field__info:hover,
.settings-field__info:focus-visible {
  color: var(--text);
  outline: none;
  z-index: var(--tooltip-z);
}

.settings-field__info i {
  font-size: 1rem;
  line-height: 1;
}

.settings-field__info::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: calc(var(--tooltip-z) + 1);
  left: 50%;
  bottom: calc(100% + 0.55rem);
  transform: translate(-50%, 0.2rem);
  min-width: 12rem;
  max-width: 18rem;
  padding: 0.5rem 0.72rem;
  border-radius: 14px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.12);
}

.settings-field__info:hover::after,
.settings-field__info:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.settings-field__hint {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.settings-input {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.85rem 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.settings-input:focus {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-focus);
}

.settings-input--textarea {
  min-height: 8rem;
  resize: vertical;
  line-height: 1.65;
}

.settings-input--time {
  min-width: 7.5rem;
  width: auto;
}

.settings-input--compact {
  min-width: min(24rem, 100%);
  max-width: 24rem;
}

.settings-list {
  display: grid;
  gap: 0;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.setting-row__copy {
  max-width: 58ch;
}

.setting-row__copy strong {
  display: block;
  margin-bottom: 0.18rem;
  font-size: 0.96rem;
}

.setting-row__title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.18rem;
}

.setting-row__title strong {
  margin-bottom: 0;
}

.setting-row__copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.settings-soon-pill {
  font-size: 0.72rem;
}

.setting-row--coming-soon {
  opacity: 0.72;
}

.setting-row--coming-soon .settings-input,
.setting-row--coming-soon .topic-pill {
  pointer-events: none;
}

.setting-row--coming-soon .settings-input:disabled {
  color: var(--text-muted);
  background: var(--surface-muted);
  border-color: var(--line);
  cursor: not-allowed;
}

.settings-verification {
  display: grid;
  gap: 1rem;
}

.settings-verification__summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.settings-verification__summary strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.98rem;
}

.settings-verification__summary p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 58ch;
}

.settings-verification__verified-date {
  display: inline-flex;
  margin-top: 0.55rem;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
}

.settings-verification__requirements {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.settings-verification__requirement {
  display: flex;
  align-items: center;
  gap: 0.68rem;
  min-height: 3.2rem;
  padding: 0.9rem 1rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--text-soft);
  font-weight: 600;
}

.settings-verification__requirement i {
  font-size: 1.05rem;
  color: #a73a3a;
  flex: 0 0 auto;
}

.settings-verification__requirement.is-complete i {
  color: #2f6b4f;
}

.settings-verification__requirement.is-complete {
  color: var(--text);
}

.settings-danger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.05rem;
  background: var(--surface-soft);
  border: 1px solid color-mix(in srgb, var(--line-strong) 68%, rgba(180, 35, 24, 0.18));
  border-radius: 22px;
}

.settings-danger__copy {
  max-width: 52ch;
}

.settings-danger__copy strong,
.settings-danger__copy p {
  margin: 0;
}

.settings-danger__copy p {
  margin-top: 0.24rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.58;
}

.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 2rem;
  flex: 0 0 auto;
}

.switch__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.switch__slider {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #d9d9d9;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.switch__slider::after {
  content: "";
  position: absolute;
  top: 0.18rem;
  left: 0.18rem;
  width: 1.64rem;
  height: 1.64rem;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.12);
  transition: transform 180ms ease;
}

.switch__input:checked + .switch__slider {
  background: var(--black);
}

.switch__input:checked + .switch__slider::after {
  transform: translateX(1.2rem);
}

.switch__input:focus-visible + .switch__slider {
  box-shadow: var(--shadow-focus);
}

.switch__input:disabled {
  cursor: not-allowed;
}

.switch__input:disabled + .switch__slider {
  background: var(--surface-muted);
  opacity: 0.75;
}

.switch__input:disabled + .switch__slider::after {
  box-shadow: none;
}

.switch--disabled-info {
  cursor: help;
}

.switch--disabled-info:hover,
.switch--disabled-info:focus-visible,
.switch--disabled-info:focus-within {
  z-index: var(--tooltip-z);
}

.switch--disabled-info::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: calc(var(--tooltip-z) + 1);
  left: 50%;
  bottom: calc(100% + 0.6rem);
  transform: translate(-50%, 0.2rem);
  min-width: 12rem;
  max-width: 16rem;
  padding: 0.5rem 0.72rem;
  border-radius: 14px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  box-shadow: var(--popover-shadow);
}

.switch--disabled-info:hover::after,
.switch--disabled-info:focus-visible::after,
.switch--disabled-info:focus-within::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.segment-control {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.segment-control__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.3rem;
  padding: 0 0.85rem;
  color: var(--text-soft);
  background: var(--surface-soft);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transform: translateZ(0);
}

.segment-control__item:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.segment-control__item:active,
.segment-control__item.is-pressed {
  transform: translateY(1px) scale(0.985);
  box-shadow: var(--tactile-shadow-press);
}

.segment-control__item--active {
  color: var(--white);
  background: var(--black);
  border-color: var(--black);
}

.settings-stack {
  display: grid;
  gap: 0.55rem;
  justify-items: start;
}

.settings-stack--align-end {
  justify-items: end;
}

.settings-tags,
.settings-time {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.settings-space-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.settings-invites {
  display: grid;
  gap: 1rem;
}

.settings-invites__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.settings-invite-list {
  display: grid;
  gap: 0.85rem;
}

.settings-invite-card {
  display: grid;
  gap: 0.6rem;
  padding: 1rem 1.05rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.settings-invite-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.settings-invite-card__code {
  font-size: 0.98rem;
  letter-spacing: 0.08em;
}

.settings-invite-card__meta,
.settings-invite-card__used-by {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.settings-invite-card__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.settings-space-form {
  display: grid;
  gap: 1rem;
  padding: 1rem 0 1.15rem;
  border-top: 1px solid var(--line);
}

.settings-space-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1rem;
}

.settings-space-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.settings-owned-spaces {
  margin-top: 0.25rem;
}

.settings-owned-space__meta {
  margin-top: 0.65rem;
}

.settings-owned-space__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
}

.settings-owned-space__delete-button {
  border-color: rgba(17, 17, 17, 0.12);
  color: var(--text-muted);
}

.settings-owned-space__delete-button:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.settings-owned-space__delete-button--pending {
  cursor: default;
  opacity: 0.78;
}

.settings-owned-space__request-pill {
  background: rgba(17, 17, 17, 0.05);
}

.setting-row--stacked {
  align-items: flex-start;
}

.soft-empty-state--compact {
  padding: 1.05rem 0;
}

.topic-pill--muted {
  color: var(--text-muted);
  background: #f5f5f5;
}

.profile-hero,
.profile-section {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.profile-hero__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 1.5rem;
}

.profile-hero__identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
  min-width: 0;
}

.profile-hero__avatar {
  flex: 0 0 5.2rem;
  width: 5.2rem;
  height: 5.2rem;
  font-size: 1.3rem;
}

.profile-hero__copy {
  min-width: 0;
  display: grid;
  gap: 0;
}

.profile-hero__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.profile-hero__heading h2 {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.05;
}

.profile-hero__heading p {
  margin: 0.2rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.profile-hero__handle-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.42rem;
}

.profile-hero__handle-separator {
  color: var(--text-muted);
}

.profile-hero__badge {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.75rem;
  color: var(--text-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.profile-hero__bio {
  max-width: none;
  margin: 0.85rem 0 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.profile-reward-status {
  display: grid;
  gap: 0.75rem;
  max-width: 30rem;
  margin-top: 1rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius-lg) - 0.2rem);
  background: var(--surface-soft);
}

.widget .profile-reward-status {
  max-width: none;
  margin-top: 0;
}

.profile-reward-status__head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.profile-reward-status__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: var(--interactive-soft);
  color: #2f6bff;
  flex: 0 0 auto;
}

.profile-reward-status__icon .icon {
  font-size: 1.15rem;
}

.profile-reward-status__icon-svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
}

.profile-reward-status__copy {
  display: grid;
  gap: 0.2rem;
}

.profile-reward-status__copy strong {
  font-size: 0.92rem;
}

.profile-reward-status__copy p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.profile-reward-status__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.profile-reward-status__progress {
  overflow: hidden;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--interactive-soft);
}

.profile-reward-status__progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--text);
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem 1.35rem;
  padding: 0;
  margin: 1.15rem 0 0;
  list-style: none;
}

.profile-meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.profile-meta__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: color 180ms ease;
}

.profile-meta__trigger:hover,
.profile-meta__trigger:focus-visible {
  color: var(--text);
}

.profile-hero__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-self: start;
}

.profile-hero__actions .button {
  white-space: nowrap;
  flex: 0 0 auto;
}

.profile-hero__tools {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  flex: 0 0 auto;
}

.profile-hero__menu {
  position: relative;
  flex: 0 0 auto;
}

.profile-hero__menu.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.profile-hero__menu.is-open .profile-hero__more {
  color: var(--text);
}

.profile-hero__share {
  flex: 0 0 auto;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 999px;
}

.profile-hero__more {
  flex: 0 0 auto;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 999px;
}

.profile-hero__share .icon {
  font-size: 1.15rem;
}

.profile-hero__more .icon {
  font-size: 1.15rem;
}

.profile-hero__hint {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.5;
  text-align: right;
}

.dropdown-menu__item:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.dropdown-menu__item:disabled:hover {
  background: transparent;
}

.profile-chat-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin: 1rem 0 1.1rem;
  padding: 0.95rem 1rem;
  color: var(--text-soft);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.profile-chat-alert.is-active {
  color: var(--text);
  background: color-mix(in srgb, var(--surface-soft) 72%, rgba(47, 107, 79, 0.12));
  border-color: color-mix(in srgb, var(--line-strong) 68%, rgba(47, 107, 79, 0.28));
}

.profile-chat-alert.is-pending {
  background: color-mix(in srgb, var(--surface-soft) 74%, rgba(47, 107, 255, 0.06));
}

.profile-chat-alert .icon {
  margin-top: 0.05rem;
  font-size: 1.1rem;
  flex: 0 0 auto;
}

.profile-chat-alert strong,
.profile-chat-alert p {
  margin: 0;
}

.profile-chat-alert p {
  margin-top: 0.12rem;
  color: var(--text-muted);
  font-size: 0.87rem;
  line-height: 1.58;
}

.profile-blocked-actions {
  display: flex;
  justify-content: center;
  margin: -0.2rem 0 1.25rem;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.profile-stat strong {
  display: block;
  margin-bottom: 0.12rem;
  font-size: 0.98rem;
}

.profile-stat span {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.profile-hero .topic-list {
  margin-top: 1rem;
}

.system-modal--profile-connections .system-modal__dialog {
  max-width: 42rem;
}

.system-modal--profile-connections .system-modal__footer {
  display: none;
}

.profile-connections {
  display: grid;
  gap: 1rem;
}

.profile-connections__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.profile-connections__list {
  display: grid;
  gap: 0;
}

.profile-connections__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.profile-connections__item:first-child {
  border-top: 0;
}

.profile-connections__identity {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-width: 0;
}

.profile-connections__avatar {
  width: 2.7rem;
  height: 2.7rem;
}

.profile-connections__copy {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
}

.profile-connections__name {
  color: var(--text);
  font-size: 1rem;
}

.profile-connections__handle {
  color: var(--text-muted);
  font-size: 0.89rem;
  text-decoration: none;
}

.profile-connections__handle:hover {
  color: var(--text);
}

.profile-connections__bio {
  margin: 0.18rem 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.profile-connections__action {
  flex: 0 0 auto;
}

.profile-connections__empty {
  display: grid;
  gap: 0.35rem;
  padding: 0.45rem 0 0.1rem;
}

.profile-connections__empty strong {
  font-size: 1rem;
}

.profile-connections__empty p {
  margin: 0;
  color: var(--text-muted);
}

.profile-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.profile-section__header h2 {
  margin: 0;
  font-size: 1.05rem;
}

.profile-section__header p {
  margin: 0.3rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.post-card__space-link {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  min-height: 1.8rem;
  padding: 0 0.72rem;
  color: var(--text-muted);
  text-decoration: none;
  background: rgba(17, 17, 17, 0.03);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transform: translateZ(0);
}

.post-card__space-link .icon {
  font-size: 0.86rem;
}

.post-card__space-link--inline {
  min-height: 1.8rem;
  padding: 0 0.68rem;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
}

.post-card__space-link:hover,
.post-card__space-link:focus-visible {
  color: var(--text);
  background: rgba(17, 17, 17, 0.05);
  border-color: rgba(17, 17, 17, 0.16);
}

.post-card__space-link:active,
.post-card__space-link.is-pressed {
  transform: translateY(1px) scale(0.985);
  box-shadow: var(--tactile-shadow-press);
}

.post-card__topic-link {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  min-height: 1.8rem;
  padding: 0 0.72rem;
  color: var(--text-muted);
  text-decoration: none;
  background: color-mix(in srgb, var(--surface-soft) 78%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transform: translateZ(0);
}

.post-card__topic-link .icon {
  font-size: 0.84rem;
}

.post-card__topic-link--inline {
  min-height: 1.8rem;
  padding: 0 0.68rem;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
}

.post-card__topic-link:hover,
.post-card__topic-link:focus-visible {
  color: var(--text);
  background: color-mix(in srgb, var(--surface-soft) 92%, transparent);
  border-color: var(--line-strong);
}

.post-card__topic-link:active,
.post-card__topic-link.is-pressed {
  transform: translateY(1px) scale(0.985);
  box-shadow: var(--tactile-shadow-press);
}

.saved-list {
  display: grid;
  gap: 0;
}

.saved-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.saved-item:first-child {
  border-top: 0;
}

.saved-item strong {
  display: block;
  margin-bottom: 0.16rem;
  font-size: 0.98rem;
}

.saved-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.saved-item__title-link {
  color: inherit;
}

.saved-item__title-link:hover,
.saved-item__title-link:focus-visible {
  color: var(--text);
}

.wiki-article {
  display: grid;
  gap: 1.4rem;
  padding-bottom: 1rem;
}

.wiki-article__back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.wiki-article__back:hover,
.wiki-article__back:focus-visible {
  color: var(--text);
}

.wiki-article__head {
  display: grid;
  gap: 0.8rem;
}

.wiki-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  padding-top: 0.8rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.wiki-article__pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.62rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-soft);
}

.wiki-article__head h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.wiki-article__summary {
  max-width: 48rem;
  margin: 0;
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.75;
}

.wiki-article__body {
  display: grid;
  gap: 1rem;
}

.wiki-article__body p {
  max-width: 48rem;
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.88;
}

.wiki-article__related {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.4rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.profile-about {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.profile-about-section .messages-section__header {
  margin-bottom: 1.15rem;
}

.profile-about__card {
  display: grid;
  gap: 0.85rem;
  padding: 1.05rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 1.15rem;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--interactive-soft) 28%, var(--surface)));
}

.profile-about__card--wide {
  grid-template-columns: auto minmax(0, 1fr);
  grid-column: 1 / -1;
  align-items: start;
}

.profile-about__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  color: var(--text);
  background: var(--interactive-soft);
}

.profile-about__copy {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.profile-about__eyebrow {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-about__card h3 {
  margin: 0;
  font-size: 1.04rem;
}

.profile-about__lead,
.profile-about__note {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.68;
}

.profile-about__facts {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-about__facts li {
  display: grid;
  gap: 0.12rem;
}

.profile-about__facts strong {
  font-size: 0.9rem;
  color: var(--text);
}

.profile-about__facts span {
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

.profile-about__metric {
  color: var(--text);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.profile-moodboard {
  display: grid;
  gap: 1rem;
}

.moodboard-card--profile {
  margin-bottom: 1rem;
}

.profile-moodboard__stats,
.profile-moodboard__layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.profile-moodboard__layout {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  margin-top: 0.55rem;
}

.profile-moodboard__stat,
.profile-moodboard__card {
  display: grid;
  align-content: start;
  gap: 0.78rem;
  min-height: 9.25rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line-strong);
  border-radius: 1.15rem;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--interactive-soft) 24%, var(--surface)));
}

.profile-moodboard__card {
  min-height: 11.5rem;
}

.profile-moodboard__eyebrow {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-moodboard__stat strong {
  color: var(--text);
  font-size: 1.9rem;
  line-height: 1;
}

.profile-moodboard__card h3 {
  margin: 0;
  font-size: 1rem;
}

.profile-moodboard__list,
.profile-moodboard__recent {
  display: grid;
  gap: 0.95rem;
}

.profile-moodboard__row {
  display: grid;
  gap: 0.45rem;
}

.profile-moodboard__row-head,
.profile-moodboard__recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.profile-moodboard__row-head span,
.profile-moodboard__recent-mood {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  color: var(--text);
  font-weight: 600;
}

.profile-moodboard__row-head strong {
  color: var(--text-soft);
  font-size: 0.88rem;
}

.profile-moodboard__bar {
  width: 100%;
  height: 0.5rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--interactive-soft);
}

.profile-moodboard__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--text);
}

.profile-moodboard__recent-item {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.88rem;
}

.profile-moodboard__recent-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.profile-moodboard__placeholder {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.profile-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.profile-panel {
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.profile-panel strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
}

.profile-panel p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.65;
}

.profile-journey-section {
  overflow: hidden;
}

.journey-map {
  display: grid;
  gap: 1rem;
}

.journey-map__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(16rem, 0.8fr);
  gap: 0.95rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line-strong);
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--interactive-soft) 80%, transparent), transparent 32%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--interactive-soft) 26%, var(--surface)));
  opacity: 0.14;
  transform: translateY(0.9rem);
  transition:
    opacity 440ms ease,
    transform 440ms cubic-bezier(0.2, 0.82, 0.2, 1);
}

.journey-map__hero.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.journey-map__lead {
  display: grid;
  gap: 0.45rem;
}

.journey-map__eyebrow {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journey-map__lead h3,
.journey-map__lead p,
.journey-map__meter-head,
.journey-map__meter-head strong,
.journey-map__meta,
.journey-map__milestone strong,
.journey-map__milestone p {
  margin: 0;
}

.journey-map__lead h3 {
  font-size: 1.22rem;
  line-height: 1.08;
}

.journey-map__lead p {
  max-width: 62ch;
  color: var(--text-soft);
  line-height: 1.7;
}

.journey-map__meter {
  display: grid;
  align-content: center;
  gap: 0.7rem;
  padding: 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 1rem;
  background: var(--surface-soft);
}

.journey-map__meter-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-soft);
  font-size: 0.84rem;
}

.journey-map__meter-head strong {
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1;
}

.journey-map__meter-bar {
  height: 0.56rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--interactive-soft);
}

.journey-map__meter-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background:
    repeating-linear-gradient(
      90deg,
      var(--text) 0 10px,
      color-mix(in srgb, var(--text) 82%, transparent) 10px 20px
    );
}

.journey-map__path {
  position: relative;
  display: grid;
  gap: 0.4rem;
  padding: 0.25rem 0 0.4rem;
}

.journey-map__path::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--text) 24%, transparent), color-mix(in srgb, var(--text) 10%, transparent));
  transform: translateX(-50%);
}

.journey-map__item {
  position: relative;
  width: calc(50% - 1.9rem);
  opacity: 0;
  transition:
    opacity 420ms ease,
    transform 520ms cubic-bezier(0.2, 0.82, 0.2, 1);
}

.journey-map__item:nth-child(odd) {
  justify-self: start;
  padding-right: 2.2rem;
  transform: translate3d(-0.9rem, 0.75rem, 0);
}

.journey-map__item:nth-child(even) {
  justify-self: end;
  padding-left: 2.2rem;
  transform: translate3d(0.9rem, 0.75rem, 0);
}

.journey-map__item.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: calc(var(--journey-index, 0) * 75ms);
}

.journey-map__item::after {
  content: "";
  position: absolute;
  top: 1.65rem;
  width: 1.65rem;
  height: 1px;
  background: color-mix(in srgb, var(--text) 18%, transparent);
}

.journey-map__item:nth-child(odd)::after {
  right: 0.7rem;
}

.journey-map__item:nth-child(even)::after {
  left: 0.7rem;
}

.journey-map__node {
  position: absolute;
  top: 0.75rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: var(--tactile-shadow-soft);
}

.journey-map__item:nth-child(odd) .journey-map__node {
  right: -1rem;
}

.journey-map__item:nth-child(even) .journey-map__node {
  left: -1rem;
}

.journey-map__item--done .journey-map__node {
  color: var(--bg);
  background: var(--text);
  border-color: var(--text);
}

.journey-map__item--active .journey-map__node {
  color: var(--text);
  background: var(--interactive-soft);
  border-color: color-mix(in srgb, var(--text) 28%, transparent);
  animation: journey-node-pulse 1.9s ease-in-out infinite;
}

.journey-map__item--upcoming .journey-map__node {
  color: var(--text-muted);
  background: var(--surface);
}

.journey-map__milestone {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line-strong);
  border-radius: 1.1rem;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--tactile-shadow-soft);
}

.journey-map__meta {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.journey-map__milestone strong {
  font-size: 1rem;
  line-height: 1.2;
}

.journey-map__milestone p {
  color: var(--text-soft);
  line-height: 1.68;
}

@keyframes journey-node-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--text) 12%, transparent);
  }

  50% {
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--text) 6%, transparent);
  }
}

html.is-reduced-motion {
  scroll-behavior: auto;
}

html.is-reduced-motion *,
html.is-reduced-motion *::before,
html.is-reduced-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  transition-delay: 0ms !important;
}

@media (prefers-reduced-motion: reduce) {
  .journey-map__hero,
  .journey-map__item,
  .journey-map__item.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .journey-map__item--active .journey-map__node {
    animation: none;
  }
}

.reward-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.reward-arcade {
  display: grid;
  gap: 1rem;
}

.reward-arcade__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(17rem, 0.85fr);
  gap: 0.95rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line-strong);
  border-radius: 1.25rem;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--interactive-soft) 30%, transparent), transparent),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--interactive-soft) 26%, var(--surface)));
}

.reward-arcade__lead {
  display: grid;
  gap: 0.4rem;
}

.reward-arcade__eyebrow,
.reward-hud-card__eyebrow,
.reward-card__quest {
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reward-arcade__lead h3 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.05;
}

.reward-arcade__lead p {
  margin: 0;
  max-width: 58ch;
  color: var(--text-soft);
  line-height: 1.7;
}

.reward-arcade__meter {
  display: grid;
  align-content: center;
  gap: 0.7rem;
  padding: 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 1rem;
  background: var(--surface-soft);
}

.reward-arcade__meter-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-soft);
  font-size: 0.84rem;
}

.reward-arcade__meter-head strong {
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
}

.reward-arcade__meter-bar {
  height: 0.56rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--interactive-soft);
}

.reward-arcade__meter-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background:
    repeating-linear-gradient(
      90deg,
      var(--text) 0 12px,
      color-mix(in srgb, var(--text) 84%, transparent) 12px 24px
    );
}

.reward-arcade__hud {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.reward-hud-card {
  display: grid;
  gap: 0.45rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line-strong);
  border-radius: 1.1rem;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
}

.reward-hud-card__icon,
.reward-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.9rem;
  color: var(--text);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--interactive-soft) 78%, transparent), color-mix(in srgb, var(--interactive-soft) 28%, var(--surface)));
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--surface) 80%, transparent);
}

.reward-hud-card__value {
  color: var(--text);
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.reward-hud-card__note {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.85rem;
  line-height: 1.58;
}

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

.reward-card {
  display: grid;
  gap: 0.8rem;
  padding: 1.05rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 1.1rem;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.reward-card--active {
  border-color: color-mix(in srgb, var(--text) 18%, var(--line-strong));
  box-shadow: var(--tactile-shadow-soft);
}

.reward-card--unlocked {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--interactive-soft) 68%, transparent), transparent),
    color-mix(in srgb, var(--surface) 96%, transparent);
}

.reward-card__top {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.reward-card__title {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.reward-card__title strong {
  display: block;
  font-size: 1rem;
}

.reward-card__state {
  margin-left: auto;
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.reward-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.62;
}

.reward-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.9rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.reward-card__progress {
  height: 0.36rem;
  margin-top: 0.85rem;
  overflow: hidden;
  background: var(--surface-muted);
  border-radius: 999px;
}

.reward-card__progress span {
  display: block;
  height: 100%;
  background:
    repeating-linear-gradient(
      90deg,
      var(--text) 0 14px,
      color-mix(in srgb, var(--text) 80%, transparent) 14px 28px
    );
  border-radius: inherit;
}

.reward-card small {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.reward-list {
  margin-top: 1.05rem;
}

.reward-item__copy {
  min-width: 0;
}

.reward-item__meta {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.profile-timeline {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.profile-timeline li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
}

.profile-timeline li strong {
  font-size: 0.92rem;
}

.profile-timeline li span {
  color: var(--text-soft);
  text-align: right;
}

.messages-overview,
.messages-board,
.messages-section {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.notice-section {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.topbar--notifications .topbar__subline {
  margin: 0.42rem 0 0;
  max-width: 38rem;
  color: var(--text-soft);
  font-size: 0.96rem;
  line-height: 1.6;
}

.topbar--notifications .filter-bar {
  margin-left: auto;
}

.notice-section--stream {
  border-bottom: 0;
}

.notice-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.notice-section__header--stream {
  align-items: flex-start;
  margin-bottom: 1.15rem;
}

.notice-section__eyebrow {
  display: inline-block;
  margin-bottom: 0.38rem;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notice-section__header h2 {
  margin: 0;
  font-size: 1.05rem;
}

.notice-section__header p {
  margin: 0.3rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.notice-list {
  display: grid;
  gap: 0.8rem;
}

.notice-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 1.3rem;
  background: var(--surface-soft);
  color: inherit;
  text-decoration: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.notice-item:hover,
.notice-item:focus-visible {
  border-color: var(--line-strong);
  background: var(--surface);
}

.notice-item:focus-visible {
  outline: none;
}

.notice-item.is-unread {
  border-color: var(--line-strong);
  background: var(--surface);
}

.notice-item__meta {
  display: flex;
  align-items: flex-start;
  gap: 0;
  min-width: 0;
}

.notice-item__copy {
  min-width: 0;
}

.notice-item__copy strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.98rem;
}

.notice-item__copy p {
  max-width: 62ch;
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.65;
}

.notice-item__context {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.7rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.notice-item__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  min-height: 1.55rem;
  padding: 0 0.52rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1;
}

.notice-item__badge .icon {
  font-size: 0.82rem;
  line-height: 1;
}

.notice-item__side {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: right;
  white-space: nowrap;
}

.notice-item__side .icon {
  font-size: 0.95rem;
}

.notice-item__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--text);
}

.messages-board {
  --messages-sticky-top: 9.35rem;
  --messages-bottom-gap: 1.25rem;
  --messages-panel-height: calc(100vh - var(--messages-sticky-top) - var(--messages-bottom-gap));
  padding-bottom: 0;
  border-bottom: 0;
}

.messages-board--thread {
  --messages-bottom-gap: 0.22rem;
}

body.is-scrolled .messages-board {
  --messages-sticky-top: 7.9rem;
}

.messages-page {
  overflow: hidden;
}

.messages-page .page-shell {
  padding-bottom: 0;
}

.messages-page .feed-column {
  min-height: 100vh;
  height: 100vh;
  padding-bottom: 0;
  overflow: hidden;
}

.messages-page .messages-section {
  max-height: calc(100vh - 9.35rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.messages-page.is-scrolled .messages-section {
  max-height: calc(100vh - 7.9rem);
}

.messages-page .messages-section__header {
  position: sticky;
  top: 0;
  z-index: 2;
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.feed-column > :last-child,
.feed-column > .is-last-visible {
  border-bottom: 0 !important;
}

[data-filter-item].is-last-visible {
  border-bottom: 0 !important;
}

.is-search-hidden {
  display: none !important;
}

.feed > .post-card:last-child,
.explore-feed > .post-card:last-child {
  border-bottom: 0;
}

.messages-overview__intro,
.messages-section__header,
.messages-list__header,
.message-thread__top,
.message-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.messages-overview__intro h2,
.messages-list__header h2,
.messages-section__header h2,
.message-thread__person h2 {
  margin: 0;
  font-size: 1.06rem;
}

.messages-overview__intro p,
.messages-list__header p,
.messages-section__header p,
.message-thread__person p {
  margin: 0.35rem 0 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.messages-layout {
  position: relative;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  min-height: var(--messages-panel-height);
}

.messages-layout::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 320px;
  width: 1px;
  background: var(--line);
  pointer-events: none;
}

.messages-list {
  position: sticky;
  top: var(--messages-sticky-top);
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: var(--messages-panel-height);
  padding-right: 1.25rem;
}

.messages-list--standalone {
  position: static;
  top: auto;
  min-height: var(--messages-panel-height);
  max-height: var(--messages-panel-height);
  padding-right: 0;
}

.messages-list__header {
  position: sticky;
  top: 0;
  z-index: 2;
  margin-bottom: 0;
  padding: 0 0 0.95rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.messages-list__header span {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.thread-list,
.messages-row-list,
.messages-mini-list,
.topic-stream {
  display: grid;
  gap: 0;
}

.thread-list {
  min-height: 0;
  padding-top: 0.2rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.messages-list--standalone .thread-list {
  padding-top: 0.2rem;
}

.thread-preview,
.message-row,
.messages-mini-item,
.topic-row {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.thread-preview:first-child,
.message-row:first-child,
.messages-mini-item:first-child,
.topic-row:first-child {
  border-top: 0;
}

.thread-preview {
  color: inherit;
  background: transparent;
  border-inline: 0;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transform: translateZ(0);
}

.thread-preview--active {
  color: var(--text);
}

.thread-preview:active,
.thread-preview.is-pressed {
  transform: translateY(1px);
  box-shadow: var(--tactile-shadow-press);
}

.thread-preview__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.thread-preview__identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.thread-preview__identity .avatar,
.message-row__meta .avatar {
  width: 2.25rem;
  height: 2.25rem;
  font-size: 0.76rem;
  flex: 0 0 auto;
}

.thread-preview__head strong,
.message-row__meta strong,
.messages-mini-item strong,
.topic-row__head strong {
  display: block;
  margin-bottom: 0.12rem;
  font-size: 0.95rem;
}

.thread-preview__head span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.thread-preview__head time,
.message-row__side time {
  color: var(--text-muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.thread-preview p,
.message-row__meta p,
.messages-mini-item p,
.topic-row__head p {
  margin: 0.5rem 0 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.62;
}

.thread-preview__meta,
.message-row__side,
.message-row__actions,
.topic-row__meta,
.message-thread__tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.thread-preview__meta {
  margin-top: 0.7rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.thread-preview__indicator {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--black);
}

.message-thread {
  position: sticky;
  top: var(--messages-sticky-top);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  height: var(--messages-panel-height);
  max-height: var(--messages-panel-height);
  padding-left: 1.25rem;
}

.message-thread--standalone {
  position: static;
  top: auto;
  min-height: var(--messages-panel-height);
  height: var(--messages-panel-height);
  max-height: var(--messages-panel-height);
  padding-left: 0;
}

.message-thread__person {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.message-thread__back {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  flex: 0 0 auto;
}

.message-thread__top {
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.message-thread__person .avatar {
  width: 2.25rem;
  height: 2.25rem;
  font-size: 0.76rem;
}

.message-thread__person h2 {
  font-size: 0.98rem;
}

.message-thread__person p {
  margin-top: 0.18rem;
  font-size: 0.82rem;
  line-height: 1.45;
}

.message-thread__tools {
  gap: 0.5rem;
}

.message-thread__tools .button {
  min-height: 1.95rem;
  padding: 0.35rem 0.72rem;
  font-size: 0.76rem;
}

.message-thread__notice {
  display: grid;
  gap: 0.6rem;
  align-content: start;
  margin-top: 1rem;
  padding: 1rem 0 0.1rem;
}

.message-thread__notice strong,
.message-row__status {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
}

.message-thread__notice p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.62;
  max-width: 34rem;
}

.message-thread__notice-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.message-stream {
  display: grid;
  gap: 0.85rem;
  min-height: 0;
  margin-top: 0.95rem;
  padding-right: 0.45rem;
  padding-bottom: 7.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.message-bubble {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}

.message-bubble--own {
  align-items: flex-end;
}

.message-bubble__payload {
  position: relative;
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  width: fit-content;
  max-width: min(72%, 34rem);
  min-width: 0;
  overflow: visible;
}

.message-bubble--own .message-bubble__payload {
  align-self: flex-end;
}

.message-bubble--has-reaction .message-bubble__payload {
  padding-bottom: 0.68rem;
}

.message-bubble__content {
  width: 100%;
  max-width: none;
  padding: 0.88rem 1rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  box-sizing: border-box;
}

.message-bubble--own .message-bubble__content {
  color: var(--white);
  background: var(--black);
  border-color: var(--black);
}

.message-bubble__content p {
  margin: 0;
  line-height: 1.68;
}

.message-bubble__reaction-summary {
  position: absolute;
  right: 0.34rem;
  bottom: 0;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.24rem;
  flex-wrap: wrap;
  max-width: calc(100% - 0.68rem);
  padding: 0.1rem 0.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  transform: translateY(50%);
}

.message-bubble__reaction-summary.is-empty {
  display: none;
}

.message-bubble--own .message-bubble__reaction-summary {
  right: auto;
  left: 0.34rem;
}

.message-bubble__meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.22rem;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.message-bubble--own .message-bubble__meta {
  justify-content: flex-end;
  text-align: right;
}

.message-bubble__reactions-popover {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 8;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.34rem;
  min-width: max-content;
  padding: 0.42rem 0.48rem;
  background: color-mix(in srgb, var(--surface) 96%, rgba(255, 255, 255, 0.4));
  border: 1px solid var(--line-strong);
  border-radius: 0.95rem;
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(calc(-100% - 0.04rem)) scale(0.98);
  transform-origin: left bottom;
  transition:
    opacity 160ms ease,
    transform 180ms ease,
    visibility 180ms ease;
}

.message-bubble__reactions-popover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.42rem;
  height: 0.46rem;
  background: transparent;
}

.message-bubble.is-reactions-open .message-bubble__reactions-popover,
.message-bubble:focus-within .message-bubble__reactions-popover,
.message-bubble__reactions-popover:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(calc(-100% - 0.2rem)) scale(1);
}

.message-bubble--own .message-bubble__reactions-popover {
  left: auto;
  right: 0;
  align-items: flex-end;
  transform-origin: right bottom;
}

.message-bubble[data-reactions-placement="bottom"] .message-bubble__reactions-popover {
  top: calc(100% + 0.12rem);
  transform: translateY(0) scale(0.98);
  transform-origin: left top;
}

.message-bubble[data-reactions-placement="bottom"] .message-bubble__reactions-popover::after {
  top: -0.42rem;
  bottom: auto;
}

.message-bubble.message-bubble--own[data-reactions-placement="bottom"] .message-bubble__reactions-popover {
  transform-origin: right top;
}

.message-bubble.is-reactions-open[data-reactions-placement="bottom"] .message-bubble__reactions-popover,
.message-bubble:focus-within[data-reactions-placement="bottom"] .message-bubble__reactions-popover {
  transform: translateY(0) scale(1);
}

.message-bubble__reaction-picker {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  flex-wrap: wrap;
  margin-top: 0;
}

.message-bubble--own .message-bubble__reaction-picker {
  justify-content: flex-end;
}

.message-reaction-chip,
.message-reaction-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 1.72rem;
  padding: 0.18rem 0.5rem;
  color: var(--text-soft);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 160ms ease;
}

.message-bubble__reaction-summary .message-reaction-chip {
  min-height: 1.22rem;
  padding: 0.04rem 0.3rem;
  color: var(--text);
  background: transparent;
  border-color: transparent;
  font-size: 0.76rem;
}

.message-bubble__reaction-summary .message-reaction-chip:hover {
  background: var(--surface-soft);
  border-color: var(--line);
}

.message-reaction-chip strong {
  font-size: 0.73rem;
  font-weight: 700;
}

.message-reaction-option {
  min-width: 1.72rem;
  padding-inline: 0.38rem;
  font-size: 0.88rem;
}

.message-reaction-chip:hover,
.message-reaction-option:hover {
  color: var(--text);
  background: var(--interactive-soft);
}

.message-reaction-option:focus-visible,
.message-reaction-chip:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--interactive) 70%, white 30%);
  outline-offset: 1px;
}

.message-reaction-chip.is-active,
.message-reaction-option.is-active {
  color: var(--text);
  background: color-mix(in srgb, var(--surface-soft) 68%, rgba(47, 107, 255, 0.12));
  border-color: color-mix(in srgb, var(--line-strong) 76%, rgba(47, 107, 255, 0.22));
}

.message-thread__typing {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  margin: 0.55rem 0 0.15rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  min-height: 1.2rem;
}

.message-thread__typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
}

.message-thread__typing-dots span {
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.35;
  animation: message-typing-dot 1s ease-in-out infinite;
}

.message-thread__typing-dots span:nth-child(2) {
  animation-delay: 120ms;
}

.message-thread__typing-dots span:nth-child(3) {
  animation-delay: 240ms;
}

.message-bubble--live {
  animation: message-bubble-enter 240ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.message-compose {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin-top: auto;
  padding: 0.9rem 1rem 1rem;
  background: color-mix(in srgb, var(--panel-surface) 92%, transparent);
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  border-radius: 1.35rem;
  box-shadow: var(--popover-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.message-compose__row {
  display: flex;
  align-items: flex-end;
  gap: 0.9rem;
}

.message-compose__field {
  flex: 1 1 auto;
  min-width: 0;
}

.message-compose .composer__field textarea {
  min-height: 4.85rem;
  resize: none;
}

@keyframes message-typing-dot {
  0%,
  100% {
    opacity: 0.28;
    transform: translateY(0);
  }

  50% {
    opacity: 0.9;
    transform: translateY(-2px);
  }
}

@keyframes message-bubble-enter {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.message-row__meta {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-width: 0;
}

.message-row__side {
  color: var(--text-muted);
  font-size: 0.82rem;
  justify-content: flex-end;
  text-align: right;
}

.message-row__status {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.messages-mini-item p {
  font-size: 0.84rem;
}

.topic-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.topic-row__main {
  min-width: 0;
}

.topic-row__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.topic-row__meta {
  margin-top: 0.8rem;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.auth-page {
  background: var(--bg);
}

.auth-shell {
  width: min(1120px, calc(100% - 3rem));
  min-height: 100vh;
  margin: 0 auto;
  padding: 1.75rem 0 2.75rem;
}

.auth-page:not(.admin-auth-page) .auth-shell {
  position: relative;
  isolation: isolate;
}

.auth-page:not(.admin-auth-page) .auth-shell::before {
  content: "";
  position: absolute;
  top: -1.2rem;
  left: calc(50% - 50vw);
  width: clamp(20rem, 39vw, 38rem);
  height: clamp(12.5rem, 26vw, 24rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.18)),
    url("assets/auth-top-left.jpg") left top / cover no-repeat;
  border-radius: 0 0 5rem 0;
  opacity: 0.96;
  pointer-events: none;
  z-index: 0;
}

.auth-page:not(.admin-auth-page) .auth-shell::after {
  content: "";
  position: absolute;
  top: -2rem;
  left: calc(50% - 50vw - 0.8rem);
  width: clamp(30rem, 60vw, 57rem);
  height: clamp(17rem, 36vw, 32rem);
  background:
    radial-gradient(circle at 14% 16%, transparent 0, transparent 17%, var(--bg) 64%),
    linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, var(--bg) 62%, var(--bg) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, var(--bg) 70%, var(--bg) 100%);
  pointer-events: none;
  z-index: 0;
}

.auth-page:not(.admin-auth-page) .auth-topbar,
.auth-page:not(.admin-auth-page) .auth-layout {
  position: relative;
  z-index: 1;
}

.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.2rem;
}

.auth-topbar__meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.auth-topbar__meta a,
.auth-link,
.auth-switch a {
  color: var(--text);
  font-weight: 600;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  gap: 3.5rem;
  align-items: center;
  min-height: calc(100vh - 6.75rem);
}

.auth-intro {
  padding-right: 3.5rem;
  border-right: 1px solid var(--line);
}

.auth-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.8rem;
  color: var(--text-soft);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.auth-intro h1 {
  max-width: 11ch;
  margin: 1.25rem 0 0;
  font-size: clamp(2.35rem, 6vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.auth-intro > p {
  max-width: 58ch;
  margin: 1rem 0 0;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.75;
}

.auth-points {
  display: grid;
  gap: 0.9rem;
  padding: 0;
  margin: 1.75rem 0 0;
  list-style: none;
}

.auth-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-soft);
  line-height: 1.65;
}

.auth-points .icon {
  margin-top: 0.18rem;
  color: var(--text);
}

.auth-glance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.auth-glance strong {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.98rem;
}

.auth-glance span {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.auth-panel {
  width: 100%;
  max-width: 28.5rem;
  justify-self: end;
}

.auth-panel__header h2 {
  margin: 0;
  font-size: 1.38rem;
  line-height: 1.08;
}

.auth-panel__header p {
  margin: 0.5rem 0 0;
  color: var(--text-soft);
  line-height: 1.68;
}

.auth-form {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.auth-field {
  display: grid;
  gap: 0.45rem;
}

.auth-field > span {
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 600;
}

.auth-field__code {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-security {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.1rem;
}

.auth-security__label {
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 600;
}

.auth-security__copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.auth-altcha {
  display: block;
  width: 100%;
  max-width: 100%;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.auth-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.auth-checkbox a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.auth-checkbox a:hover {
  color: var(--text);
}

.auth-checkbox input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--black);
}

.auth-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.auth-feedback {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

.auth-feedback[data-state="error"] {
  color: #b42318;
}

.auth-feedback[data-state="success"] {
  color: #0f766e;
}

.auth-recovery {
  display: grid;
  gap: 1rem;
  margin-top: 1.3rem;
  padding: 1.15rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
}

.auth-recovery__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-self: flex-start;
  min-height: 1.8rem;
  padding: 0 0.72rem;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-recovery h3 {
  margin: 0;
  font-size: 1.24rem;
  line-height: 1.12;
}

.auth-recovery__intro,
.auth-recovery__meta {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.auth-recovery__codes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.auth-recovery__code {
  display: grid;
  gap: 0.28rem;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.auth-recovery__code-index {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-recovery__code strong {
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.auth-recovery__warning {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  color: var(--text-soft);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--line);
  border-radius: 1rem;
  line-height: 1.6;
}

.auth-recovery__warning .icon {
  margin-top: 0.08rem;
  color: var(--text);
}

.auth-recovery__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.auth-note,
.auth-switch {
  margin: 1rem 0 0;
  padding-top: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  border-top: 1px solid var(--line);
}

.auth-note--plain {
  margin-top: 0.2rem;
  padding-top: 0;
  border-top: 0;
}

.mobile-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: none;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  width: 100%;
  padding: 0.38rem max(0.75rem, env(safe-area-inset-left)) calc(0.38rem + env(safe-area-inset-bottom))
    max(0.75rem, env(safe-area-inset-right));
  overflow-x: auto;
  background: var(--panel-surface);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.mobile-nav__item {
  display: inline-flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
  padding: 0.55rem 0.35rem 0.5rem;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 0.72rem;
  font-weight: 600;
  transition:
    color 180ms ease,
    transform 160ms ease;
  transform: translateZ(0);
}

.mobile-nav__item--active {
  color: var(--text);
  font-weight: 800;
}

.mobile-nav__item:active,
.mobile-nav__item.is-pressed {
  transform: translateY(1px);
}

@media (hover: hover) {
  .button:hover,
  .follow-button:hover,
  .topic-pill:hover,
  .segment-control__item:hover,
  .post-card__space-link:hover,
  .post-card__topic-link:hover {
    transform: translateY(-1px);
    box-shadow: var(--tactile-shadow-soft);
  }

  .thread-preview:hover {
    transform: translateY(-1px);
    box-shadow: var(--tactile-shadow-soft);
  }
}

@media (max-width: 1200px) {
  .messages-page {
    overflow: auto;
  }

  .messages-page .feed-column {
    min-height: auto;
    height: auto;
    overflow: visible;
  }

  .messages-page .messages-section {
    max-height: none;
    overflow: visible;
  }

  .messages-page .messages-section__header {
    position: static;
    margin-bottom: 1rem;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .app-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .sidebar {
    position: sticky;
    left: auto;
    width: auto;
    overflow: visible;
  }

  .rail {
    position: static;
    right: auto;
    width: auto;
    height: auto;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 1.5rem 0 0;
    border-top: 1px solid var(--line);
    overflow: visible;
  }

  .rail__legal {
    grid-column: 1 / -1;
    margin-top: 0.2rem;
  }

  .feed-column {
    width: auto;
    margin-inline: 0;
  }

  .messages-layout {
    grid-template-columns: 1fr;
  }

  .messages-layout::before {
    display: none;
  }

  .messages-page--conversation-open .topbar {
    display: none;
  }

  .messages-page--conversation-open .messages-list {
    display: none;
  }

  .messages-list {
    position: static;
    max-height: none;
    padding-right: 0;
    padding-bottom: 1rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .messages-list--standalone {
    min-height: 0;
    max-height: none;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .messages-list__header {
    position: static;
  }

  .thread-list {
    padding-top: 0;
    overflow: visible;
  }

  .message-thread {
    position: static;
    max-height: none;
    padding-top: 1rem;
    padding-left: 0;
  }

  .message-thread--standalone {
    min-height: 0;
    height: auto;
    padding-top: 0;
  }

  .messages-page--conversation-open .message-thread {
    padding-top: 0;
  }

  .message-thread__back {
    display: inline-flex;
  }

  .message-stream {
    padding-right: 0;
    padding-bottom: 0;
    overflow: visible;
  }

  .message-compose {
    position: static;
    margin-top: 1rem;
    padding: 1rem 0 0;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .auth-layout {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    min-height: auto;
    padding-top: 2rem;
  }

  .auth-page:not(.admin-auth-page) .auth-shell::before {
    top: -0.8rem;
    left: calc(50% - 50vw);
    width: min(25.5rem, 92vw);
    height: min(16.8rem, 58vw);
    border-radius: 0 0 3.5rem 0;
  }

  .auth-page:not(.admin-auth-page) .auth-shell::after {
    top: -1.2rem;
    left: calc(50% - 50vw - 0.45rem);
    width: min(33.5rem, 118vw);
    height: min(22.5rem, 82vw);
  }

  .auth-security__copy {
    font-size: 0.84rem;
  }

  .auth-intro {
    padding-right: 0;
    padding-bottom: 1.75rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .auth-panel {
    max-width: 100%;
    justify-self: stretch;
  }

  .auth-recovery__codes {
    grid-template-columns: 1fr;
  }

  .compose-modal__topic-picker {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 920px) {
  .page-shell {
    padding: 0 1rem 6.5rem;
  }

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

  .sidebar {
    display: none;
  }

  .feed-column {
    --feed-padding: 0;
    padding-inline: 0;
    border-inline: 0;
  }

  .topbar {
    padding-top: 1.15rem;
  }

  body.is-scrolled .topbar {
    padding-top: 0.9rem;
    padding-bottom: 0.4rem;
    box-shadow: none;
  }

  .mobile-nav {
    display: flex;
  }
}

@media (max-width: 760px) {
  .space-page .topbar {
    gap: 0.75rem;
  }

  .space-page .topbar__heading h1 {
    gap: 0.3rem;
    font-size: 1.08rem;
    line-height: 1.28;
  }

  .space-page .topbar__space-name {
    display: block;
    font-size: 0.94em;
    line-height: 1.3;
  }

  .question-ai-context__surface {
    padding: 1rem;
  }

  .question-ai-context__grid {
    grid-template-columns: 1fr;
  }

  .compose-modal__meta-grid,
  .topics-hero,
  .topic-grid--wide,
  .topics-hero__stats {
    grid-template-columns: 1fr;
  }

  .compose-modal__emoji-popover {
    right: 0;
    left: auto;
    width: min(100vw - 3rem, 20.5rem);
  }

  .topbar__actions,
  .composer__footer,
  .post-card__footer,
  .space-card,
  .explore-hero__intro,
  .compose-modal__header,
  .compose-modal__footer,
  .compose-modal__identity,
  .report-modal__header,
  .report-modal__footer,
  .person-row,
  .follow-user,
  .profile-hero__top,
  .settings-hero__summary,
  .messages-overview__intro,
  .messages-section__header,
  .messages-list__header,
  .message-thread__top,
  .message-row,
  .topic-row,
  .topic-row__head,
  .auth-topbar,
  .space-hero__meta,
  .space-hero__header,
  .space-hero__footer,
  .question-hero__meta,
  .question-hero__header,
  .question-hero__footer,
  .reply-composer__footer,
  .saved-item,
  .profile-timeline li,
  .question-timeline li,
  .setting-row,
  .settings-danger,
  .profile-chat-alert {
    flex-direction: column;
    align-items: stretch;
  }

  .search-field {
    width: 100%;
  }

  .mobile-topbar-menu {
    display: inline-flex;
  }

  .composer__actions {
    justify-content: space-between;
  }

  .post-card__tools {
    justify-content: flex-start;
  }

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

  .legal-shell {
    padding-top: 1.2rem;
    padding-bottom: 6.5rem;
  }

  .legal-document {
    padding: 1.2rem 1.1rem;
    border-radius: 1.35rem;
  }

  .legal-facts {
    grid-template-columns: 1fr;
  }

  .legal-table__row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .explore-metrics {
    min-width: 0;
    grid-template-columns: 1fr;
  }

  .context-grid,
  .space-hero__stats,
  .settings-hero__meta,
  .settings-space-summary,
  .settings-invite-summary,
  .journey-map__hero,
  .reward-arcade__hud,
  .profile-moodboard__stats,
  .profile-moodboard__layout,
  .profile-stats,
  .profile-about,
  .profile-panels,
  .reward-grid,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .moodboard-card__header {
    flex-direction: column;
  }

  .moodboard-card__status {
    white-space: normal;
  }

  .reward-arcade__hero {
    grid-template-columns: 1fr;
  }

  .settings-space-form__grid {
    grid-template-columns: 1fr;
  }

  .settings-invites__actions,
  .settings-invite-card__top,
  .settings-verification__summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .settings-verification__requirements {
    grid-template-columns: 1fr;
  }

  .profile-about__card--wide {
    grid-template-columns: 1fr;
  }

  .space-hero__stat {
    padding-top: 0.8rem;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .space-hero__stat:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .space-page .space-hero {
    padding: 1.2rem 0 1.25rem;
  }

  .space-page .space-hero__meta {
    margin-bottom: 0.8rem;
  }

  .space-page .space-hero__footer {
    justify-content: flex-start;
  }

  .space-page .space-hero__summary p {
    max-width: none;
    margin-top: 0.55rem;
    font-size: 0.94rem;
    line-height: 1.62;
  }

  .space-page .space-hero__actions {
    width: 100%;
    gap: 0.55rem;
  }

  .space-page .space-hero__actions .follow-button,
  .space-page .space-hero__actions .space-owner-badge {
    align-self: flex-start;
  }

  .space-page .space-hero__topics {
    flex: 0 0 auto;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
    gap: 0.5rem;
  }

  .space-page .space-hero__stats {
    flex: 0 0 auto;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .space-page .space-hero__stat {
    min-height: 4.35rem;
    padding: 0.78rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--surface-soft);
  }

  .space-page .space-hero__stat strong {
    font-size: 1rem;
  }

  .space-page .space-hero__stat span {
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .space-page .space-list {
    margin-top: 0.55rem;
  }

  .space-page .space-card {
    gap: 0.4rem;
    padding: 0.82rem 0;
  }

  .space-page .space-card p {
    line-height: 1.5;
  }

  .space-page .question-section {
    padding: 1.15rem 0;
  }

  .space-page .question-section__header {
    margin-bottom: 0.8rem;
  }

  .question-stats,
  .compose-modal__actions,
  .report-modal__actions,
  .settings-hero__actions,
  .segment-control,
  .settings-tags,
  .settings-time,
  .reply-item__actions,
  .profile-hero__actions,
  .message-row__actions,
  .message-row__side,
  .message-thread__tools {
    justify-content: flex-start;
  }

  .settings-page {
    padding-bottom: 9rem;
  }

  .settings-floating-actions {
    right: 1rem;
    left: 1rem;
    bottom: calc(5.75rem + env(safe-area-inset-bottom));
    justify-items: stretch;
  }

  .settings-floating-actions .button {
    width: 100%;
    justify-content: center;
  }

  .settings-save-state {
    text-align: left;
  }

  .question-timeline li span,
  .profile-timeline li span {
    text-align: left;
  }

  .journey-map__path::before {
    left: 1rem;
    transform: none;
  }

  .journey-map__item,
  .journey-map__item:nth-child(odd),
  .journey-map__item:nth-child(even) {
    width: 100%;
    justify-self: stretch;
    padding-left: 3rem;
    padding-right: 0;
    transform: translate3d(0, 0.75rem, 0);
  }

  .journey-map__item::after,
  .journey-map__item:nth-child(odd)::after,
  .journey-map__item:nth-child(even)::after {
    left: 1.75rem;
    right: auto;
    width: 1rem;
  }

  .journey-map__item .journey-map__node,
  .journey-map__item:nth-child(odd) .journey-map__node,
  .journey-map__item:nth-child(even) .journey-map__node {
    left: 0;
    right: auto;
  }

  .guide-card__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .person-row__note {
    white-space: normal;
  }

  .composer__hint {
    white-space: normal;
  }

  .message-bubble__content {
    max-width: 100%;
  }

  .message-bubble__payload {
    max-width: 100%;
  }

  .auth-glance {
    grid-template-columns: 1fr;
  }

  .message-compose__row {
    flex-direction: column;
    align-items: stretch;
  }

  .message-compose__row .button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .page-shell {
    padding-inline: 0.75rem;
  }

  .space-page .topbar {
    padding-top: 0.65rem;
  }

  .space-page .filter-bar {
    gap: 0.55rem;
    margin-inline: -0.1rem;
    padding-bottom: 0.1rem;
  }

  .space-page .filter-chip {
    flex: 0 0 auto;
    min-height: 2.05rem;
    padding-inline: 0.72rem;
    font-size: 0.79rem;
    white-space: nowrap;
  }

  .space-page .space-hero {
    padding-top: 1rem;
  }

  .space-page .space-hero__title-row h2 {
    font-size: 1.26rem;
  }

  .space-page .space-hero__stats {
    grid-template-columns: 1fr;
  }

  .space-page .space-hero__stat {
    min-height: 0;
    padding: 0.72rem 0.8rem;
  }

  .space-page .space-hero__topics .topic-pill {
    flex: 0 0 auto;
    align-self: flex-start;
    width: auto;
    max-width: 100%;
    min-height: 1.95rem;
    padding-block: 0;
    padding-inline: 0.72rem;
    font-size: 0.79rem;
  }

  .filter-bar {
    gap: 1rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filter-bar::-webkit-scrollbar {
    display: none;
  }

  .post-card__header {
    align-items: flex-start;
  }

  .post-card__identity {
    align-items: flex-start;
  }

  .reply-thread .post-card--thread-nested,
  .reply-thread .post-card--thread-deeper {
    margin-left: 1.25rem;
  }

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

  .compose-modal__gif-results,
  .topics-hero__stats {
    grid-template-columns: 1fr;
  }

  .settings-form {
    grid-template-columns: 1fr;
  }

  .topbar--notifications {
    gap: 0.9rem;
  }

  .topbar--notifications .topbar__subline {
    display: none;
  }

  .topbar--notifications .filter-bar {
    margin-left: 0;
  }

  .notice-section__header {
    align-items: flex-start;
  }

  .notice-item {
    flex-direction: column;
    align-items: stretch;
  }

  .notice-item__side {
    justify-content: flex-start;
    text-align: left;
    white-space: normal;
  }

  .profile-hero__identity {
    flex-direction: column;
  }

  .message-bubble__content {
    padding-inline: 0.9rem;
  }

  .auth-shell {
    width: calc(100% - 1.5rem);
    padding-top: 1.15rem;
  }

  .compose-modal {
    padding: 0.85rem;
  }

  .compose-modal__dialog {
    width: 100%;
    padding: 1rem 1rem 0.95rem;
    border-radius: 24px;
  }

  .report-modal {
    padding: 0.85rem;
  }

  .report-modal__dialog {
    width: 100%;
    padding: 1rem 1rem 0.95rem;
    border-radius: 24px;
  }

  .auth-intro h1 {
    font-size: 2.35rem;
  }

  .auth-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .reply-item {
    grid-template-columns: 1rem minmax(0, 1fr);
    gap: 0.75rem;
  }

  .reply-item--nested {
    margin-left: 1rem;
  }

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

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
