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

html {
  scroll-behavior: smooth;
  caret-color: var(--accent-ink);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  font-family: var(--font-reading);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html.theme-transition,
html.theme-transition body,
html.theme-transition body *,
html.theme-transition body *::before,
html.theme-transition body *::after {
  transition-property: color, background-color, border-color, fill, stroke !important;
  transition-duration: 360ms !important;
  transition-timing-function: var(--ease) !important;
  transition-delay: 0s !important;
}

@media (prefers-reduced-motion: reduce) {
  html.theme-transition,
  html.theme-transition body,
  html.theme-transition body *,
  html.theme-transition body *::before,
  html.theme-transition body *::after {
    transition-duration: 0.01ms !important;
  }
}

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

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

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

.shell {
  width: min(var(--shell), calc(100% - 64px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 8px 14px;
  color: var(--surface);
  background: var(--text);
  font-size: 13px;
  transform: translateY(-160%);
  transition: transform var(--motion-base) var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 20;
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--line);
  transition: border-color var(--motion-base) var(--ease),
    background-color var(--motion-base) var(--ease);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 24px;
}

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

.brand-link {
  display: flex;
  min-width: 0;
  align-items: center;
}

.brand-mark {
  display: grid;
  flex: none;
  width: 18px;
  height: 18px;
  padding: 0;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.brand-mark::before {
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
  transition: background-color var(--motion-base) var(--ease),
    box-shadow var(--motion-base) var(--ease), transform var(--motion-fast) var(--ease);
}

.brand-mark:hover::before {
  transform: scale(1.08);
}

.brand-mark:focus-visible {
  outline: 2px solid var(--border-ink-strong);
  outline-offset: 3px;
}

html[data-color-scheme="dark"] .brand-mark::before {
  background: var(--accent-glow);
  box-shadow: 0 0 0 5px var(--accent-soft), 0 0 10px var(--accent-glow);
}

.brand-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.brand-title {
  overflow: hidden;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.025em;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color var(--motion-base) var(--ease);
}

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

.brand-subtitle {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.32em;
  line-height: 1;
}

.auth-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  margin-left: 4px;
  padding: 0 10px;
  color: var(--text-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color var(--motion-fast) var(--ease), border-color var(--motion-fast) var(--ease),
    background-color var(--motion-fast) var(--ease);
}

.auth-entry:hover {
  color: var(--text);
  background: var(--bg-soft);
  border-color: var(--line-strong);
}

.header-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 4px;
}

.icon-button {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: color var(--motion-base) var(--ease), background-color var(--motion-base) var(--ease);
}

.icon-button:hover {
  color: var(--text);
  background: var(--bg-soft);
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.avatar-button {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  margin-left: 8px;
  padding: 0;
  overflow: visible;
  place-items: center;
  background: linear-gradient(135deg, var(--accent-soft), var(--bg-soft));
  border: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line-strong);
  cursor: pointer;
  transition: box-shadow var(--motion-base) var(--ease), transform var(--motion-base) var(--ease);
}

.avatar-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-focus);
}

.avatar-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 13px;
}

.avatar-button img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-menu {
  position: relative;
  margin-left: 8px;
}

.avatar-menu .avatar-button {
  margin-left: 0;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--verified-x);
  vertical-align: -1px;
}

.verified-badge-icon {
  display: none;
  width: 100%;
  height: 100%;
}

.verified-badge--x {
  color: var(--verified-x);
}

.verified-badge--weibo {
  color: var(--verified-weibo);
}

.verified-badge--gold {
  color: var(--verified-gold);
}

.verified-badge-glyph {
  fill: var(--on-accent);
}

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

.verified-badge--x .verified-badge-icon--x,
.verified-badge--weibo .verified-badge-icon--weibo,
.verified-badge--gold .verified-badge-icon--gold,
.verified-badge--minimal .verified-badge-icon--minimal {
  display: block;
}

.avatar-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  min-width: 176px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-popover);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px) scale(0.985);
  transform-origin: top right;
  transition: opacity var(--motion-fast) var(--ease), transform var(--motion-fast) var(--ease),
    visibility 0s linear var(--motion-fast);
}

.avatar-menu-head {
  padding: 7px 10px 9px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.avatar-menu-name {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 500;
}

.avatar-menu-panel::before {
  position: absolute;
  top: -12px;
  right: 0;
  left: 0;
  height: 12px;
  content: "";
}

.avatar-menu:hover .avatar-menu-panel,
.avatar-menu:focus-within .avatar-menu-panel,
.avatar-menu.is-open .avatar-menu-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition: opacity var(--motion-fast) var(--ease), transform var(--motion-fast) var(--ease),
    visibility 0s linear 0s;
}

.avatar-menu-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  color: var(--text-soft);
  background: transparent;
  border: 0;
  border-radius: 4px;
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: inherit;
  letter-spacing: 0.02em;
  text-align: left;
  cursor: pointer;
  appearance: none;
  transition: color var(--motion-fast) var(--ease), background-color var(--motion-fast) var(--ease);
}

.avatar-menu-item:hover,
.avatar-menu-item:focus-visible {
  color: var(--link-hover);
  background: var(--bg-soft);
}

.avatar-menu-item svg {
  flex: none;
  width: 15px;
  height: 15px;
  color: var(--muted);
  transition: color var(--motion-fast) var(--ease);
}

.avatar-menu-item:hover svg,
.avatar-menu-item:focus-visible svg {
  color: var(--link-hover);
}

@keyframes home-feed-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes home-rail-enter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.home-main .post-feed {
  animation: home-feed-enter var(--motion-slow) var(--ease-out) both;
}

.home-main .moments-rail {
  animation: home-rail-enter var(--motion-slow) var(--ease) both;
}

.home-main {
  padding-block: 46px 132px;
}

.home-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(36px, 4.2vw, 64px);
}

.home-scroll-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  display: none;
  width: 1px;
  background: var(--line);
  pointer-events: none;
}

.home-scroll-probe {
  position: absolute;
  top: 0;
  width: 22px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  opacity: 0;
  pointer-events: none;
  cursor: grab;
  transition: opacity var(--motion-fast) var(--ease);
  will-change: transform, opacity;
}

.home-scroll-probe::before {
  position: absolute;
  top: 8px;
  width: 2px;
  height: 28px;
  content: "";
  background: var(--text-soft);
  border-radius: 1px;
  opacity: 0.38;
}

.home-scroll-probe--post {
  left: -21px;
}

.home-scroll-probe--post::before {
  right: 1px;
}

.home-scroll-probe--moment {
  left: 1px;
}

.home-scroll-probe--moment::before {
  left: 1px;
}

.home-scroll-probe.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.home-scroll-probe.is-dragging {
  cursor: grabbing;
}

.home-scroll-probe.is-dragging::before,
.home-scroll-probe:focus-visible::before {
  opacity: 0.62;
}

.home-scroll-probe:focus-visible {
  outline: 2px solid var(--border-ink-strong);
  outline-offset: 2px;
  border-radius: 3px;
}

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

body:has(.home-main) .header-inner {
  min-height: 74px;
}

body:has(.home-main) .brand-mark {
  width: 16px;
  height: 16px;
}

body:has(.home-main) .brand-mark::before {
  width: 7px;
  height: 7px;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

body:has(.home-main) .brand-title {
  font-size: 16px;
}

body:has(.home-main) .brand-subtitle {
  font-size: 8px;
  letter-spacing: 0.28em;
}

body:has(.home-main) .icon-button {
  width: 32px;
  height: 32px;
}

body:has(.home-main) .avatar-button {
  width: 30px;
  height: 30px;
  margin-left: 4px;
}

body:has(.home-main) .site-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  padding: 9px 0 11px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow-footer);
  opacity: 1;
  transform: translateY(0);
  transition: transform var(--motion-slow) var(--ease-out),
    opacity var(--motion-base) var(--ease);
  will-change: transform;
}

body:has(.home-main) .site-footer.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(100% + 2px));
}

body:has(.home-main) .footer-inner {
  gap: 16px;
}

body:has(.home-main) .footer-nav {
  gap: 18px;
  font-size: 10.5px;
}

body:has(.home-main) .footer-note {
  font-size: 10px;
}

@media (min-width: 941px) {
  body:has(.home-main) {
    display: flex;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    overflow: hidden;
  }

  body:has(.home-main) .site-header {
    flex: none;
  }

  body:has(.home-main) .home-main {
    height: auto;
    flex: 1 1 auto;
    min-height: 0;
    padding-block: 34px 22px;
  }

  body:has(.home-main) .site-footer {
    flex: none;
  }

  body:has(.home-main) .header-inner {
    min-height: 74px;
  }

  body:has(.home-main) .post-feed,
  body:has(.home-main) .moments-rail {
    padding-bottom: 36px;
  }

  .home-main {
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    padding-block: 40px 28px;
    overflow: hidden;
  }

  .home-grid {
    height: 100%;
    align-items: stretch;
  }

  .home-main .post-feed,
  .home-main .moments-rail {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }

  .home-main .post-feed {
    padding-right: 18px;
  }

  .home-main .moments-rail {
    position: static;
    padding-right: 12px;
  }

  .home-main .section-head {
    min-height: 41px;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--bg);
  }

  .home-scroll-ready > .home-scroll-divider {
    display: block;
  }

  .home-scroll-ready .moments-rail {
    border-left: 0;
  }

  .home-scroll-ready .post-feed,
  .home-scroll-ready .moments-rail {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .home-scroll-ready .post-feed::-webkit-scrollbar,
  .home-scroll-ready .moments-rail::-webkit-scrollbar {
    width: 0;
    height: 0;
  }
}

@supports (-moz-appearance: none) {
  html,
  body,
  * {
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
  }
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
*::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb {
  min-height: 42px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--line-strong);
  background-clip: padding-box;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
*::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
  background-clip: padding-box;
}

html::-webkit-scrollbar-button,
body::-webkit-scrollbar-button,
*::-webkit-scrollbar-button {
  display: none;
}

html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner,
*::-webkit-scrollbar-corner {
  background: transparent;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
}

.section-title {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  line-height: 1;
}

.post-list,
.moment-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.post-group {
  position: sticky;
  top: 41px;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 16px 0 7px;
  margin: 0;
  color: var(--muted);
  background: var(--bg);
  list-style: none;
}

.post-group-year {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
}

.post-group-month {
  font-family: var(--font-ui);
  font-size: 10.5px;
  letter-spacing: 0.08em;
}

.home-main .post-meta {
  display: none;
}

.home-main .post-link {
  padding-top: 14px;
}

.home-main .post-title {
  margin-top: 0;
}

.post-link {
  position: relative;
  display: block;
  padding: 19px 36px 17px 0;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.045em;
  line-height: 1;
}

.post-meta::before {
  width: 17px;
  height: 1px;
  background: var(--accent);
  content: "";
  opacity: 0.7;
}

.post-title {
  max-width: 24em;
  margin: 8px 0 6px;
  color: var(--text-soft);
  font-family: var(--font-editorial);
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 400;
  letter-spacing: 0.012em;
  line-height: 1.42;
  transition: color var(--motion-base) var(--ease);
}

.post-title-button {
  display: inline;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: underline transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
  transition: color var(--motion-base) var(--ease), text-decoration-color var(--motion-base) var(--ease);
}

.post-link:hover .post-title-button {
  text-decoration-color: var(--link-underline);
}

.post-excerpt {
  display: -webkit-box;
  max-width: 46em;
  margin: 0;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.post-arrow {
  position: absolute;
  right: -4px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 15px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-4px, 4px);
  transition: color var(--motion-base) var(--ease), opacity var(--motion-base) var(--ease),
    transform var(--motion-base) var(--ease);
}

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

.post-link:hover .post-arrow,
.post-arrow:focus-visible {
  color: var(--link-hover);
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, 0);
}

.prose a,
.reading-content a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--link-underline);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--motion-base) var(--ease), text-decoration-color var(--motion-base) var(--ease);
}

.prose a:hover,
.reading-content a:hover {
  color: var(--link-hover);
  text-decoration-color: var(--link-hover);
}

.pagination {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 28px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.pagination a {
  text-decoration: underline transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color var(--motion-base) var(--ease), text-decoration-color var(--motion-base) var(--ease);
}

.pagination a:hover {
  color: var(--link-hover);
  text-decoration-color: var(--link-underline);
}

.pagination-current {
  position: relative;
  color: var(--text);
}

.pagination-current::after {
  position: absolute;
  bottom: -7px;
  left: 50%;
  width: 12px;
  height: 1px;
  background: var(--accent);
  content: "";
  transform: translateX(-50%);
}

.pagination-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: var(--text-soft);
  font-family: var(--font-ui);
  letter-spacing: 0.06em;
}

.pagination-next span {
  transition: transform var(--motion-base) var(--ease);
}

.pagination-next:hover span {
  transform: translateX(4px);
}

.moments-rail {
  position: sticky;
  top: calc(var(--header-height) + 32px);
  padding-left: clamp(24px, 2.8vw, 38px);
  border-left: 1px solid var(--line);
}

.rail-head {
  align-items: center;
  padding-bottom: 14px;
}

.moment-item {
  border-bottom: 1px solid var(--line);
}

.moment-item--enter {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  border-bottom-color: transparent;
  transition: grid-template-rows var(--motion-slow) var(--ease-out),
    opacity var(--motion-base) var(--ease), border-color var(--motion-slow) var(--ease);
}

.moment-item--enter > .moment-item-clip {
  overflow: hidden;
}

.moment-item--enter .moment-link {
  transform: translateY(-5px);
  transition: transform var(--motion-slow) var(--ease-out);
}

.moment-item--enter.is-in {
  grid-template-rows: 1fr;
  opacity: 1;
  border-bottom-color: var(--line);
}

.moment-item--enter.is-in .moment-link {
  transform: translateY(0);
}

.moment-link {
  display: block;
  padding: 22px 0;
  cursor: pointer;
}

.moment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.045em;
  line-height: 1;
}

.moment-meta::before {
  width: 5px;
  height: 5px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 50%;
  content: "";
}

.moment-text {
  display: -webkit-box;
  margin: 9px 0 0;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  transition: color var(--motion-base) var(--ease);
}

.moment-media {
  margin-top: 13px;
  overflow: hidden;
  background: var(--bg-soft);
  border-radius: 2px;
}

.moment-media img {
  width: 100%;
  max-height: 150px;
  object-fit: cover;
  filter: saturate(0.94);
  transition: filter var(--motion-slow) var(--ease), transform var(--motion-slow) var(--ease);
}

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

.moment-link:hover .moment-media img {
  filter: saturate(1.03);
  transform: scale(1.025);
}

.rail-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-decoration: underline transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color var(--motion-base) var(--ease), text-decoration-color var(--motion-base) var(--ease);
}

.rail-more span:last-child {
  transition: transform var(--motion-base) var(--ease);
}

.rail-more:hover {
  color: var(--link-hover);
  text-decoration-color: var(--link-underline);
}

.rail-more:hover span:last-child {
  transform: translateX(4px);
}

.site-footer {
  padding: 36px 0 72px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.08em;
}

.footer-nav a {
  text-decoration: underline transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color var(--motion-base) var(--ease), text-decoration-color var(--motion-base) var(--ease);
}

.footer-nav a:hover {
  color: var(--link-hover);
  text-decoration-color: var(--link-underline);
}

.footer-note {
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.footer-note span {
  margin-inline: 6px;
  opacity: 0.5;
}

.search-dialog[hidden] {
  display: none;
}

.search-dialog {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  padding: min(18vh, 160px) 20px 20px;
  place-items: start center;
}

.search-backdrop {
  position: absolute;
  inset: 0;
  background: var(--scrim-strong);
  backdrop-filter: blur(6px);
}

.search-panel {
  position: relative;
  width: min(620px, 100%);
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: var(--shadow-overlay);
  animation: search-in var(--motion-fast) var(--ease);
}

@keyframes search-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.search-panel-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.search-panel-head .icon-button {
  width: 30px;
  height: 30px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  transition: border-color var(--motion-base) var(--ease);
}

.search-field:focus-within {
  border-color: var(--accent);
}

.search-field svg {
  flex: none;
  width: 17px;
  height: 17px;
  color: var(--muted);
}

.search-field input {
  min-width: 0;
  flex: 1;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 15px;
}

.search-field input::placeholder {
  color: var(--muted);
}

.search-field kbd {
  padding: 2px 6px;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 9px;
}

.search-hint {
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 11.5px;
}

.search-suggestions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.search-suggestions button {
  padding: 4px 10px;
  color: var(--text-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: color var(--motion-base) var(--ease), border-color var(--motion-base) var(--ease);
}

.search-suggestions button:hover {
  color: var(--link-hover);
  border-color: var(--link-hover);
}

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

  .home-grid {
    gap: 36px;
  }

  .moments-rail {
    padding-left: 26px;
  }

  .moment-media img {
    max-height: 130px;
  }
}

@media (max-width: 940px) {
  .home-scroll-divider {
    display: none;
  }

  .home-main {
    padding-block: 40px 72px;
  }

  .post-group {
    position: static;
    padding-top: 22px;
  }

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

  .moments-rail {
    position: static;
    margin-top: 48px;
    padding-top: 36px;
    padding-left: 0;
    border-top: 1px solid var(--line-strong);
    border-left: 0;
  }

  .moment-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
  }

  .moment-media img {
    max-height: 190px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .footer-note {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 76px;
  }

  body:has(.home-main) .header-inner {
    min-height: 64px;
  }

  body:has(.home-main) .site-footer {
    padding: 7px 0 9px;
  }

  body:has(.home-main) .footer-inner {
    flex-wrap: wrap;
    align-items: center;
    gap: 3px 12px;
  }

  body:has(.home-main) .footer-nav {
    gap: 10px;
    font-size: 10px;
  }

  .shell {
    width: calc(100% - 32px);
  }

  .brand {
    gap: 11px;
  }

  .brand-title {
    max-width: 58vw;
    font-size: 15px;
  }

  .brand-subtitle {
    display: none;
  }

  .header-actions {
    gap: 0;
  }

  .icon-button {
    width: 34px;
    height: 34px;
  }

  .avatar-button {
    width: 32px;
    height: 32px;
    margin-left: 4px;
  }

  .avatar-menu {
    margin-left: 4px;
  }

  .post-link {
    padding: 17px 26px 15px 0;
  }

  .post-title {
    margin-top: 7px;
    font-size: 19px;
  }

  .post-excerpt {
    font-size: 13px;
    line-height: 1.65;
  }

  .post-arrow {
    right: -2px;
    bottom: 8px;
    display: inline-flex;
    opacity: 0.5;
    pointer-events: auto;
    transform: none;
  }

  .pagination {
    padding-top: 24px;
  }

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

  .moment-media img {
    max-height: 230px;
  }

  .footer-nav {
    gap: 18px;
  }

  .search-dialog {
    padding-top: 12vh;
  }

  .search-panel {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.moment-text .moment-footnote {
  display: none;
}

@keyframes moment-composer-in {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.982);
  }
  62% {
    opacity: 1;
    transform: translateY(-1px) scale(1.006);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes moment-composer-backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.moment-compose-trigger {
  display: grid;
  width: 26px;
  height: 26px;
  padding: 0;
  place-items: center;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: color var(--motion-fast) var(--ease), background-color var(--motion-fast) var(--ease);
}

.moment-compose-trigger:hover {
  color: var(--link-hover);
  background: var(--bg-soft);
}

.moment-compose-trigger svg {
  width: 15px;
  height: 15px;
}

.moment-composer[hidden] {
  display: none;
}

.moment-composer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  padding: 20px;
  place-items: center;
}

.moment-composer-backdrop {
  position: absolute;
  inset: 0;
  background: var(--scrim-soft);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: moment-composer-backdrop-in var(--motion-fast) var(--ease) both;
}

.moment-composer-panel {
  position: relative;
  width: min(560px, 100%);
  max-height: min(82vh, 720px);
  padding: 22px;
  overflow: auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-overlay);
  animation: moment-composer-in var(--motion-slow) var(--ease-out) both;
}

.moment-composer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.moment-composer-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.moment-composer-input {
  width: 100%;
  min-height: 130px;
  max-height: 320px;
  padding: 12px 14px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  outline: 0;
  font-family: var(--font-reading);
  font-size: 15px;
  line-height: 1.8;
  resize: vertical;
  transition: border-color var(--motion-fast) var(--ease);
}

.moment-composer-input:focus {
  border-color: var(--muted);
}

.moment-composer-input::placeholder {
  color: var(--muted);
}

.moment-composer-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}

.moment-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color var(--motion-fast) var(--ease);
}

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

.moment-tool svg {
  width: 16px;
  height: 16px;
}

.moment-emoji-panel {
  display: block;
  max-height: 168px;
  margin-top: 10px;
  padding: 8px;
  overflow: auto;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.moment-emoji-panel[hidden] {
  display: none;
}

.moment-emoji-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 2px;
}

.moment-emoji-grid--recent {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 2px;
}

.moment-emoji-grid--recent button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
}

.moment-emoji-section--recent {
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.moment-emoji-label {
  display: block;
  padding: 0 4px 5px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.moment-emoji-panel button {
  padding: 4px 0;
  font-size: 18px;
  line-height: 1.2;
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.moment-emoji-panel button:hover {
  background: var(--bg);
}

.moment-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.moment-attachments:empty {
  display: none;
}

.moment-attachment {
  position: relative;
  width: 66px;
  height: 66px;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.moment-attachment img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.moment-attachment-file {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 4px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 9px;
  line-height: 1.4;
  text-align: center;
  word-break: break-all;
}

.moment-attachment-remove {
  position: absolute;
  top: 1px;
  right: 1px;
  display: grid;
  width: 24px;
  height: 24px;
  padding: 0;
  place-items: center;
  color: var(--on-accent);
  background: var(--scrim-lightbox);
  border: 0;
  border-radius: 50%;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.moment-composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.moment-composer-foot:has(.moment-composer-status:empty) {
  display: none;
}

.moment-composer-status {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.moment-composer-status.is-error {
  color: var(--accent);
}

.moment-composer-submit {
  flex: none;
  padding: 6px 14px;
  color: var(--bg);
  background: var(--text);
  border: 0;
  border-radius: 5px;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: opacity var(--motion-fast) var(--ease);
}

.moment-composer-submit:hover {
  opacity: 0.82;
}

.moment-composer-submit:disabled {
  opacity: 0.45;
  cursor: wait;
}

.moment-composer-tools .moment-composer-submit {
  margin-left: auto;
}

@media (max-width: 640px) {
  .moment-emoji-grid {
    grid-template-columns: repeat(8, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .moment-compose-trigger,
  .moment-tool,
  .moment-composer-submit,
  .moment-composer-input {
    transition-duration: 0.01ms !important;
  }
}

.moments-title-link {
  color: inherit;
  text-decoration: underline transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  cursor: pointer;
  transition: color var(--motion-fast) var(--ease), text-decoration-color var(--motion-fast) var(--ease);
}

.moments-title-link:hover {
  color: var(--link-hover);
  text-decoration-color: var(--link-underline);
}

.moments-overlay[hidden] {
  display: none;
}

.moments-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  padding: 20px;
  place-items: center;
}

.moments-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: var(--scrim);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: moment-composer-backdrop-in var(--motion-fast) var(--ease) both;
}

.moments-overlay-panel {
  position: relative;
  display: flex;
  width: min(900px, 100%);
  max-height: 88vh;
  flex-direction: column;
  overflow: hidden;
  background: var(--reading-bg);
  border: 1px solid var(--border-ink);
  border-radius: 8px;
  box-shadow: var(--shadow-overlay);
  animation: moments-paper-in var(--motion-slow) var(--ease-out) both;
}

@keyframes moments-paper-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.moments-overlay.is-closing .moments-overlay-backdrop {
  animation: moments-overlay-backdrop-out var(--motion-fast) var(--ease) both;
}

.moments-overlay.is-closing .moments-overlay-panel {
  animation: moments-overlay-panel-out var(--motion-base) var(--ease) both;
}

@keyframes moments-overlay-backdrop-out {
  to {
    opacity: 0;
  }
}

@keyframes moments-overlay-panel-out {
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.992);
  }
}

.moments-overlay-head {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.moments-overlay-head h2 {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.moments-overlay-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.moments-time-trigger {
  display: none;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-family: var(--font-ui);
  font-size: 10px;
  cursor: pointer;
  transition: color var(--motion-fast) var(--ease), background-color var(--motion-fast) var(--ease);
}

.moments-time-trigger svg {
  width: 15px;
  height: 15px;
}

.moments-time-trigger:hover {
  color: var(--link-hover);
  border-color: var(--link-underline);
}

.moments-time-trigger:disabled {
  opacity: 0.45;
  cursor: wait;
}

.moments-back-latest {
  width: 30px;
  height: 30px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-family: var(--font-ui);
  font-size: 10px;
  cursor: pointer;
  transition: color var(--motion-fast) var(--ease), background-color var(--motion-fast) var(--ease);
}

.moments-back-latest svg {
  width: 15px;
  height: 15px;
}

.moments-back-latest:hover {
  color: var(--link-hover);
  background: var(--bg-soft);
}

.moments-back-latest[hidden] {
  display: none;
}

.moments-time-year-button.is-active {
  color: var(--text-soft);
}

.moments-time-year-button.is-active::before {
  margin-right: 3px;
  color: var(--accent);
  content: "·";
}

.moments-time-month.is-active {
  color: var(--link-hover);
}

.moments-overlay-body {
  padding: 20px 24px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.moments-inline-compose-wrap {
  max-width: 820px;
  margin: 0 auto 12px;
}

.moments-load-more {
  display: grid;
  width: 32px;
  height: 32px;
  min-width: 0;
  margin: 20px auto 8px;
  padding: 0;
  place-items: center;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--font-ui);
  font-size: 11px;
  cursor: pointer;
  transition: color var(--motion-fast) var(--ease), border-color var(--motion-fast) var(--ease);
}

.moments-load-more svg {
  width: 15px;
  height: 15px;
}

.moments-load-more.is-loading svg {
  animation: moments-time-spin 1s linear infinite;
}

.moments-load-more:hover {
  color: var(--link-hover);
  border-color: var(--link-underline);
}

.moments-load-more:disabled {
  opacity: 0.5;
  cursor: wait;
}

.moments-load-more[hidden] {
  display: none;
}

.moments-load-more-state {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

.moments-load-more-state[hidden] {
  display: none;
}

.moments-time-nav {
  position: absolute;
  top: 64px;
  right: 16px;
  bottom: 18px;
  z-index: 7;
  display: flex;
  align-items: flex-start;
}

.moments-time-nav[hidden] {
  display: none;
}

.moments-time-years {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  padding: 6px 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow-popover);
}

.moments-time-year {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.moments-time-year-button,
.moments-time-month {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: flex-end;
  padding: 2px 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  text-align: right;
  cursor: pointer;
  transition: color var(--motion-fast) var(--ease);
}

.moments-time-year-button:hover,
.moments-time-year-button:focus-visible,
.moments-time-month:hover,
.moments-time-month:focus-visible {
  color: var(--link-hover);
}

.moments-time-months {
  position: absolute;
  top: 0;
  right: calc(100% + 6px);
  display: flex;
  min-width: 52px;
  flex-direction: column;
  padding: 4px 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  box-shadow: var(--shadow-popover);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--motion-fast) var(--ease), visibility 0s linear var(--motion-fast);
}

.moments-time-months::after {
  position: absolute;
  top: 0;
  right: -8px;
  bottom: 0;
  width: 8px;
  content: "";
}

.moments-time-year:hover .moments-time-months,
.moments-time-year:focus-within .moments-time-months,
.moments-time-year.is-expanded .moments-time-months {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.moments-time-year:nth-last-child(-n + 3) .moments-time-months {
  top: auto;
  bottom: 0;
}

@media (hover: none) {
  .moments-time-nav {
    display: none;
  }

  .moments-time-nav.is-mobile-open {
    display: flex;
  }

  .moments-time-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@keyframes moments-time-arrive {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.moments-wall.is-time-jumping {
  opacity: 0.35;
  transition: opacity var(--motion-fast) var(--ease);
}

.moments-wall.is-time-arrived {
  animation: moments-time-arrive var(--motion-base) var(--ease-out) both;
}

.moments-inline-compose {
  padding: 0 0 12px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border-ink);
  border-radius: 0;
}

.moments-inline-compose:focus-within {
  border-bottom-color: var(--border-ink-strong);
}

.moments-inline-compose-main {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.moments-inline-compose-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}

.moments-inline-compose textarea {
  flex: 1;
  min-height: 38px;
  max-height: 140px;
  padding: 5px 0;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
  resize: vertical;
  font-family: var(--font-reading);
  font-size: 14px;
  line-height: 1.7;
}

.moments-inline-compose textarea::placeholder {
  color: var(--muted);
}

.moments-inline-compose-submit {
  flex: none;
  padding: 6px 12px;
  color: var(--bg);
  background: var(--text);
  border: 0;
  border-radius: 5px;
  font-family: var(--font-ui);
  font-size: 11.5px;
  cursor: pointer;
  transition: opacity var(--motion-fast) var(--ease);
}

.moments-inline-compose-submit:hover {
  opacity: 0.82;
}

.moments-inline-compose-submit:disabled {
  opacity: 0.45;
  cursor: wait;
}

.moments-inline-compose-status {
  min-height: 1.3em;
  margin: 6px 2px 0;
  color: var(--muted);
  font-size: 11px;
}

.moments-inline-compose-status.is-error {
  color: var(--accent);
}

.moments-wall {
  display: block;
  max-width: 820px;
  margin-inline: auto;
}

.moments-wall-state {
  margin: 40px 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.moment-wall-card {
  position: relative;
  display: block;
  margin: 0;
  padding: 34px 0 32px;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--border-ink);
  border-radius: 0;
}

.moment-wall-avatar {
  width: 28px;
  height: 28px;
  flex: none;
  object-fit: cover;
  border: 1px solid var(--border-ink);
  border-radius: 50%;
  background: var(--bg-soft);
}

.moment-wall-card-body {
  flex: 1;
  min-width: 0;
}

.moment-wall-card:first-child {
  padding-top: 10px;
  border-top: 0;
}

.moment-wall-card.is-comments-open {
  z-index: 4;
}

.moment-wall-card.is-focused {
  border-top-color: var(--border-ink-strong);
}

.moment-wall-card.is-new {
  animation: moment-wall-enter var(--motion-base) var(--ease-out) both;
}

@keyframes moment-wall-enter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.moment-wall-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.03em;
}

.moment-wall-meta .moment-wall-avatar {
  margin-right: 2px;
}

.moment-wall-meta time {
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.moment-wall-meta time::before {
  margin-right: 6px;
  content: "·";
  color: var(--muted);
  opacity: 0.5;
}

.moment-wall-owner {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 11.5px;
}

.moment-wall-owner .verified-badge {
  width: 12px;
  height: 12px;
}

.moment-wall-owner-name {
  overflow: hidden;
  color: var(--text);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.moment-wall-text {
  margin-top: 13px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.9;
}

.moment-wall-text--prose {
  font-family: var(--font-editorial);
  font-size: 16.5px;
  line-height: 1.95;
}

.moment-wall-text p {
  margin: 0 0 0.7em;
}

.moment-wall-text p:last-child {
  margin-bottom: 0;
}

.moment-wall-text .moment-footnote {
  display: none;
}

.weibo-origin {
  display: none !important;
}

.moment-source {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 6px;
  margin: 9px 0 0;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 10.5px;
  line-height: 1.55;
  letter-spacing: 0.02em;
}

.moment-source > * + *::before {
  margin-right: 6px;
  color: var(--muted);
  content: "·";
  opacity: 0.5;
}

.moment-source a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.moment-source a:hover {
  color: var(--link-hover);
}

.moment-item > .moment-source {
  margin: -9px 0 18px;
}

.moment-entry .moment-source {
  margin-top: 8px;
}

.moment-wall-card > .moment-source,
.moment-wall-card-body > .moment-source {
  margin-top: 8px;
}

.article-body > .moment-source {
  margin-top: 12px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 10.5px;
  line-height: 1.55;
  letter-spacing: 0.02em;
}

.article-body > .moment-source > * + *::before {
  margin-right: 6px;
  color: var(--muted);
  content: "·";
  opacity: 0.5;
}

.article-body > .moment-source a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.moment-wall-media {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  align-items: start;
}

.moment-wall-media img,
.moment-wall-media video {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
  border-radius: 4px;
}

.moment-wall-media img {
  cursor: zoom-in;
}

.moment-wall-media:not(.moment-media--two):not(.moment-media--many) img {
  width: auto;
  max-height: min(70vh, 720px);
  margin-inline: auto;
}

.moment-wall-media.moment-media--two,
.moment-wall-media.moment-media--many {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.moment-wall-media.moment-media--two img,
.moment-wall-media.moment-media--many img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.moment-wall-media.moment-media--two video,
.moment-wall-media.moment-media--many video,
.moment-wall-media.moment-media--two audio,
.moment-wall-media.moment-media--many audio {
  grid-column: 1 / -1;
}

.moment-wall-media video {
  background: var(--bg-soft);
}

.moment-wall-media audio {
  width: 100%;
}

.moment-wall-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: none;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  transition: color var(--motion-fast) var(--ease), background-color var(--motion-fast) var(--ease);
}

.moment-wall-more svg {
  width: 16px;
  height: 16px;
}

.moment-wall-more:hover,
.moment-wall-more[aria-expanded="true"] {
  color: var(--link-hover);
  background: var(--bg-soft);
}

.moment-wall-card.is-removing {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity var(--motion-base) var(--ease), transform var(--motion-base) var(--ease);
}

.moment-wall-menu {
  position: fixed;
  z-index: 150;
  min-width: 132px;
  padding: 5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: var(--shadow-popover);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--motion-fast) var(--ease), transform var(--motion-fast) var(--ease);
}

.moment-wall-menu.is-open {
  opacity: 1;
  transform: translateY(0);
}

.moment-wall-menu-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 30px;
  padding: 5px 8px;
  color: var(--text-soft);
  background: transparent;
  border: 0;
  border-radius: 4px;
  font-family: var(--font-ui);
  font-size: 11.5px;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: color var(--motion-fast) var(--ease), background-color var(--motion-fast) var(--ease);
}

.moment-wall-menu-item:hover,
.moment-wall-menu-item:focus-visible {
  color: var(--text);
  background: var(--bg-soft);
  outline: none;
}

.moment-wall-menu-item--danger {
  color: var(--accent);
}

.moment-wall-menu-item--danger:hover,
.moment-wall-menu-item--danger:focus-visible {
  color: var(--accent-ink);
}

.moment-wall-menu-confirm-text {
  margin: 3px 8px 8px;
  color: var(--text-soft);
  font-family: var(--font-ui);
  font-size: 11.5px;
  line-height: 1.5;
}

.moment-wall-menu-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding: 0 3px 3px;
}

.moment-wall-menu-confirm-cancel,
.moment-wall-menu-confirm-delete {
  min-height: 26px;
  padding: 3px 8px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--font-ui);
  font-size: 11px;
  cursor: pointer;
}

.moment-wall-menu-confirm-cancel {
  color: var(--text-soft);
}

.moment-wall-menu-confirm-delete {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}

.moment-wall-menu-confirm-cancel:hover,
.moment-wall-menu-confirm-cancel:focus-visible {
  color: var(--text);
  border-color: var(--line-strong);
  outline: none;
}

.moment-wall-menu-confirm-delete:hover,
.moment-wall-menu-confirm-delete:focus-visible {
  color: var(--accent-ink);
  border-color: var(--accent);
  outline: none;
}

.moment-wall-menu-confirm-cancel:disabled,
.moment-wall-menu-confirm-delete:disabled {
  opacity: 0.5;
  cursor: wait;
}

.moment-wall-comments-shell {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--motion-base) var(--ease);
}

.moment-wall-comments-shell.is-open {
  grid-template-rows: 1fr;
}

.moment-wall-comments {
  margin-top: 4px;
  padding: 14px 0 4px;
  overflow: visible;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--border-ink);
  border-radius: 0;
  box-shadow: none;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity var(--motion-base) var(--ease), transform var(--motion-base) var(--ease);
}

.moment-wall-comments-shell.is-open .moment-wall-comments {
  opacity: 1;
  transform: translateY(0);
}

.moment-wall-comments-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.moment-wall-comments-head span:last-child {
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.moment-wall-comments-loading,
.moment-wall-comments-empty {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.moment-wall-comment-list {
  margin-top: 0;
}

.moment-wall-comment {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
}

.moment-wall-comment-avatar {
  width: 32px;
  height: 32px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-soft);
}

.moment-wall-comment-main {
  min-width: 0;
  flex: 1;
}

.moment-wall-comments-all {
  display: flex;
  width: max-content;
  min-height: 24px;
  align-items: center;
  gap: 6px;
  margin: 12px auto 2px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-family: var(--font-ui);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: color var(--motion-fast) var(--ease);
}

.moment-wall-comments-all svg {
  width: 15px;
  height: 15px;
}

.moment-wall-comments-all:hover {
  color: var(--link-hover);
}

.moment-wall-comments-all[hidden] {
  display: none;
}

.moment-wall-comments-all:hover {
  color: var(--link-hover);
}

.moment-wall-comment:first-child {
  margin-top: 0;
}

.moment-wall-comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.moment-wall-comment-author {
  color: var(--text-soft);
}

.moment-wall-comment-author-group {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
}

.moment-wall-comment-meta .verified-badge {
  width: 12px;
  height: 12px;
  margin: 0;
  vertical-align: 0;
}

.moment-wall-comment-meta time {
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.moment-wall-comment-body {
  margin: 3px 0 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.7;
}

.moment-wall-comment-body.is-clamped {
  max-height: calc(4 * 1.7em);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, currentColor calc(100% - 1em), transparent);
  mask-image: linear-gradient(to bottom, currentColor calc(100% - 1em), transparent);
}

.moment-wall-reply-body.is-clamped {
  max-height: calc(4 * 1.7em);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, currentColor calc(100% - 1em), transparent);
  mask-image: linear-gradient(to bottom, currentColor calc(100% - 1em), transparent);
}

.moment-wall-comment-body.is-expanded,
.moment-wall-reply-body.is-expanded {
  max-height: none;
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
}

.moment-wall-comment-expand {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  margin: 3px 0 0;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-family: var(--font-ui);
  font-size: 10.5px;
  line-height: 1.4;
  cursor: pointer;
}

.moment-wall-comment-expand:hover,
.moment-wall-comment-expand:focus-visible {
  color: var(--link-hover);
}

.moment-wall-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.moment-wall-comments-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 2px 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-family: var(--font-ui);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  cursor: pointer;
  text-decoration: underline transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--motion-fast) var(--ease), text-decoration-color var(--motion-fast) var(--ease);
}

.moment-wall-comments-label {
  line-height: 1.4;
}

.moment-wall-footer-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.moment-wall-like-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 2px 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-family: var(--font-ui);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: color var(--motion-fast) var(--ease);
}

.moment-wall-like-button svg {
  width: 17px;
  height: 17px;
  fill: transparent;
  transition: fill var(--motion-fast) var(--ease), color var(--motion-fast) var(--ease);
}

.moment-wall-like-button:hover,
.moment-wall-like-button.is-liked {
  color: var(--accent);
}

.moment-wall-like-button.is-liked svg {
  fill: currentColor;
}

.moment-wall-like-count {
  min-width: 1ch;
  color: inherit;
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.moment-wall-comments-button:hover,
.moment-wall-comments-button.is-open {
  color: var(--link-hover);
}

.moment-wall-comment-count {
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.moment-wall-comment-count:empty {
  display: none;
}

.moment-wall-comment-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.moment-wall-comment-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  min-width: 34px;
  min-height: 24px;
  margin: -6px -5px -6px auto;
  padding: 2px 5px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 3px;
  font-family: var(--font-ui);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color var(--motion-fast) var(--ease);
}

.moment-wall-delete-confirm {
  position: absolute;
  right: -4px;
  bottom: 24px;
  z-index: 9;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  box-shadow: var(--shadow-popover);
  font-family: var(--font-ui);
  font-size: 10px;
  white-space: nowrap;
}

.moment-wall-delete-cancel,
.moment-wall-delete-submit {
  padding: 2px 5px;
  background: transparent;
  border: 0;
  border-radius: 3px;
  font-family: var(--font-ui);
  font-size: 10px;
  cursor: pointer;
}

.moment-wall-delete-cancel {
  color: var(--muted);
}

.moment-wall-delete-submit {
  color: var(--accent);
}

.moment-wall-delete-cancel:hover,
.moment-wall-delete-submit:hover {
  background: var(--bg-soft);
}

.moment-wall-delete-cancel:disabled,
.moment-wall-delete-submit:disabled {
  opacity: 0.55;
  cursor: wait;
}

.moment-wall-comment-delete:hover {
  color: var(--accent);
}

.moment-wall-comment-delete:disabled {
  color: var(--muted);
  cursor: wait;
  opacity: 0.65;
}

.moment-wall-reply-toggle {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.03em;
  cursor: pointer;
  text-decoration: underline transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--motion-fast) var(--ease), text-decoration-color var(--motion-fast) var(--ease);
}

.moment-wall-reply-toggle:hover {
  color: var(--link-hover);
  text-decoration-color: var(--link-underline);
}

.moment-wall-replies {
  margin-top: 6px;
  padding-left: 0;
  border-left: 0;
}

.moment-wall-replies-toggle {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-family: var(--font-ui);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.moment-wall-replies-toggle:hover {
  color: var(--link-hover);
}

.moment-wall-replies-toggle[hidden] {
  display: none;
}

.moment-wall-replies-empty {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 10.5px;
}

.moment-wall-reply {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 6px;
}

.moment-wall-reply:first-child {
  margin-top: 0;
}

.moment-wall-reply[data-fingertip-depth="1"],
.moment-wall-reply[data-fingertip-depth="2"] {
  box-sizing: border-box;
  margin-left: 14px;
  padding-left: 10px;
  border-left: 1px solid var(--border-ink);
}

.moment-wall-reply[data-fingertip-depth="2"] {
  margin-left: 28px;
}

.moment-wall-reply-target {
  color: var(--muted);
  font-size: 10.5px;
}

@media (max-width: 640px) {
  .moment-wall-reply[data-fingertip-depth="1"] {
    margin-left: 8px;
    padding-left: 8px;
  }

  .moment-wall-reply[data-fingertip-depth="2"] {
    margin-left: 16px;
    padding-left: 8px;
  }
}

.moment-wall-reply-avatar {
  width: 24px;
  height: 24px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-soft);
}

.moment-wall-reply-main {
  min-width: 0;
  flex: 1;
}

.moment-wall-reply-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.moment-wall-reply-author-group {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
}

.moment-wall-reply-author {
  color: var(--text-soft);
}

.moment-wall-reply-meta .verified-badge {
  width: 12px;
  height: 12px;
  flex: none;
  margin: 0;
  vertical-align: 0;
}

.moment-wall-reply-meta time {
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.moment-wall-reply-body {
  margin: 3px 0 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.7;
}

.moment-wall-reply-form {
  min-width: 0;
  margin-top: 8px;
}

.moment-wall-reply-form textarea {
  width: 100%;
  min-height: 36px;
  max-height: 96px;
  padding: 8px 10px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overflow-wrap: anywhere;
  resize: none;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
  font-family: var(--font-reading);
  font-size: 12px;
  line-height: 1.6;
  transition: border-color var(--motion-fast) var(--ease);
}

.moment-wall-reply-form textarea:focus {
  border-color: var(--muted);
}


.moment-input-wrap {
  position: relative;
  display: flex;
  flex: 1;
  min-width: 0;
}

.moment-field {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
}

.moment-field textarea {
  display: block;
}

.moment-mention-hint {
  display: block;
  margin: 5px 0 0;
  padding: 0 2px;
  color: var(--muted);
  background: transparent;
  border-radius: 0;
  font-family: var(--font-ui);
  font-size: 10.5px;
  line-height: 1.5;
  white-space: normal;
  pointer-events: none;
}

.moment-mention-hint[hidden] {
  display: none;
}

.moments-inline-compose,
.moment-wall-comment-form {
  --mention-toggle-size: 14px;
}

.moment-wall-comment .moment-wall-reply-form {
  --mention-toggle-size: 12px;
}

.moment-wall-comment-tools {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-right: auto;
}

.moment-mention-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
}

.moment-mention-panel {
  max-height: 210px;
  margin-top: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

.moment-mention-panel[hidden] {
  display: none;
}

.moment-mention-group + .moment-mention-group {
  border-top: 1px solid var(--line);
}

.moment-mention-group-title {
  display: inline-flex;
  width: max-content;
  align-items: center;
  margin: 6px 8px 3px;
  padding: 2px 7px;
  color: var(--muted);
  background: transparent;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 9.5px;
  letter-spacing: 0.14em;
}

.moment-mention-group-title[data-mention-kind="post"] {
  color: var(--source-article-ink);
  background: var(--source-article-pill-bg);
}

.moment-mention-group-title[data-mention-kind="moment"] {
  color: var(--accent-ink);
  background: var(--source-moment-pill-bg);
}

.moment-mention-list {
  display: flex;
  flex-direction: column;
  padding: 0 4px 5px;
}

.moment-mention-item,
.moment-mention-more {
  padding: 6px 7px;
  color: var(--text-soft);
  background: transparent;
  border: 0;
  border-radius: 4px;
  font-family: var(--font-ui);
  font-size: 11px;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}

.moment-mention-item:hover,
.moment-mention-more:hover {
  color: var(--text);
  background: var(--bg-soft);
}

.moment-mention-more {
  padding-left: 7px;
  color: var(--muted);
  font-size: 10.5px;
}

.moment-mention-link,
.moment-wall-comment-body a.moment-mention-link,
.moment-wall-reply-body a.moment-mention-link,
.moment-text a[href*="/moments/"],
.moment-text a[href*="/archives/"] {
  color: inherit !important;
  font-weight: inherit;
  text-decoration-line: underline !important;
  text-decoration-style: solid !important;
  text-decoration-color: var(--reading-underline) !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 0.18em;
  text-decoration-skip-ink: auto;
  transition: color var(--motion-fast) var(--ease), text-decoration-color var(--motion-fast) var(--ease);
}

.moment-mention-link:hover,
.moment-mention-link:focus-visible,
.moment-wall-comment-body a.moment-mention-link:hover,
.moment-wall-comment-body a.moment-mention-link:focus-visible,
.moment-wall-reply-body a.moment-mention-link:hover,
.moment-wall-reply-body a.moment-mention-link:focus-visible,
.moment-text a[href*="/moments/"]:hover,
.moment-text a[href*="/moments/"]:focus-visible,
.moment-text a[href*="/archives/"]:hover,
.moment-text a[href*="/archives/"]:focus-visible {
  color: var(--reading-text) !important;
  text-decoration-color: var(--reading-muted) !important;
}

.moment-mention-link.is-broken,
.moment-mention-link.is-broken:hover,
.moment-mention-link.is-broken:focus-visible,
.moment-wall-comment-body a.moment-mention-link.is-broken,
.moment-wall-comment-body a.moment-mention-link.is-broken:hover,
.moment-wall-comment-body a.moment-mention-link.is-broken:focus-visible,
.moment-wall-reply-body a.moment-mention-link.is-broken,
.moment-wall-reply-body a.moment-mention-link.is-broken:hover,
.moment-wall-reply-body a.moment-mention-link.is-broken:focus-visible {
  color: var(--reading-muted) !important;
  text-decoration-color: var(--reading-line) !important;
  text-decoration-style: dotted !important;
  cursor: pointer;
}

.moment-wall-reply-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 5px;
}

.moment-wall-comment-form .moment-wall-reply-actions {
  align-items: center;
  justify-content: space-between;
}

.moment-wall-reply-cancel,
.moment-wall-reply-submit {
  padding: 0;
  background: transparent;
  border: 0;
  font-family: var(--font-ui);
  font-size: 10.5px;
  cursor: pointer;
}

.moment-wall-reply-cancel {
  color: var(--muted);
}

.moment-wall-reply-submit {
  padding: 3px 9px;
  color: var(--bg);
  background: var(--text);
  border-radius: 4px;
}

.moment-wall-reply-submit:disabled {
  opacity: 0.45;
  cursor: wait;
}

.moment-wall-reply-status {
  min-height: 1em;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.moment-wall-reply-status.is-error {
  color: var(--accent);
}

.moment-wall-comment-form textarea {
  min-height: 56px;
  max-height: 120px;
  font-size: 14px;
  line-height: 1.8;
}

.moment-wall-comment-tools .moment-tool {
  font-size: 12.5px;
}

.moment-wall-comment-tools .moment-tool svg {
  width: 20px;
  height: 20px;
}

.moment-wall-comment-tools .moment-mention-toggle {
  width: 24px;
  height: 24px;
  font-size: var(--mention-toggle-size, 14px);
  font-weight: 400;
  line-height: 1;
}

.moment-wall-comment-form {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.moment-wall-comment-form textarea {
  min-height: 56px;
}

@media (max-width: 640px) {
  .moments-overlay {
    padding: 12px;
  }

  .moments-overlay-panel {
    max-height: 92vh;
    border-radius: 12px;
  }

  .moments-overlay-head {
    padding: 14px 16px;
  }

  .moments-overlay-body {
    padding: 14px 16px 22px;
  }

  .moments-inline-compose-main {
    align-items: flex-end;
    flex-direction: row;
  }

  .moments-inline-compose-submit {
    margin-bottom: 2px;
  }

  .moment-wall-card {
    padding: 24px 0 22px;
  }

  .moment-wall-card:first-child {
    padding-top: 6px;
  }

  .moment-wall-media img,
  .moment-wall-media video {
    max-height: 360px;
  }

  .moment-wall-media.moment-media--many {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.moment-single-overlay {
  position: fixed;
  inset: 0;
  z-index: 135;
  display: grid;
  padding: clamp(12px, 2vw, 28px);
  place-items: center;
}

.moment-single-overlay[hidden] {
  display: none;
}

.moment-single-backdrop {
  position: absolute;
  inset: 0;
  background: var(--scrim);
  opacity: 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity var(--motion-fast) var(--ease);
}

.moment-single-overlay.is-open .moment-single-backdrop {
  opacity: 1;
}

.moment-single-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(82vh, 860px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px clamp(18px, 3vw, 30px) 24px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-overlay);
  opacity: 0;
  transform: translateY(8px) scale(0.992);
  transition: opacity var(--motion-base) var(--ease),
    transform var(--motion-base) var(--ease-out);
}

.moment-single-overlay.is-open .moment-single-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.moment-single-panel:focus {
  outline: none;
}

.moment-single-body {
  clear: both;
}

.moment-single-body .moment-wall-card {
  padding-top: 6px;
}

.moment-single-body .moment-wall-comments {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  margin-top: 10px;
  box-shadow: none;
}

.moment-single-state {
  margin: 28px 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.moments-lightbox[hidden] {
  display: none;
}

.moments-lightbox {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  padding: 24px;
  place-items: center;
}

.moments-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: var(--scrim-lightbox);
  opacity: 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity var(--motion-fast) var(--ease);
}

.moments-lightbox.is-open .moments-lightbox-backdrop {
  opacity: 1;
}

.moments-lightbox-frame {
  position: relative;
  display: flex;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 48px);
  padding: 5px;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: var(--shadow-dialog);
  opacity: 0;
}

.moments-lightbox.is-open .moments-lightbox-frame {
  animation: moments-lightbox-in var(--motion-slow) var(--ease-spring) both;
}

.moments-lightbox.is-closing .moments-lightbox-backdrop {
  animation: moments-overlay-backdrop-out var(--motion-fast) var(--ease) both;
}

.moments-lightbox.is-closing .moments-lightbox-frame {
  animation: moments-lightbox-out var(--motion-base) var(--ease) both;
}

.moments-lightbox-frame img {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100vw - 60px);
  max-height: calc(100vh - 60px);
  object-fit: contain;
  border-radius: 8px;
  background: var(--bg-soft);
}

@keyframes moments-lightbox-in {
  0% {
    opacity: 0;
    transform: scale(0.965);
  }
  70% {
    opacity: 1;
    transform: scale(1.006);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes moments-lightbox-out {
  to {
    opacity: 0;
    transform: scale(0.985);
  }
}

@media (max-width: 640px) {
  .moments-lightbox {
    padding: 12px;
  }

  .moments-lightbox-frame {
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    padding: 4px;
    border-radius: 10px;
  }

  .moments-lightbox-frame img {
    max-width: calc(100vw - 34px);
    max-height: calc(100vh - 34px);
    border-radius: 7px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .moment-wall-card.is-new {
    animation: none;
  }

  .moments-title-link,
  .moment-wall-more,
  .moment-wall-menu,
  .moment-wall-card.is-removing,
  .moment-wall-comments-button,
  .moment-wall-comments,
  .moment-wall-comments-shell,
  .moment-wall-reply-toggle,
  .moment-wall-reply-form textarea {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

.moments-overlay-panel:focus {
  outline: none;
}

.moment-date,
.moment-wall-meta,
.moment-source,
.index-note,
.post-group-year,
.post-meta,
.article-meta,
.moments-time-year-button,
.moments-time-month {
  font-variant-numeric: tabular-nums;
}
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  position: absolute;
  top: calc(100% + 7px);
  left: 50%;
  z-index: 40;
  padding: 5px 7px;
  color: var(--bg);
  background: var(--text);
  border-radius: 4px;
  content: attr(data-tooltip);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -2px);
  transition: opacity var(--motion-fast) var(--ease), transform var(--motion-fast) var(--ease),
    visibility 0s linear var(--motion-fast);
}

[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}

[data-tooltip-align="right"]::after {
  right: 0;
  left: auto;
  transform: translate(0, -2px);
}

[data-tooltip-align="right"]:hover::after,
[data-tooltip-align="right"]:focus-visible::after {
  transform: translate(0, 0);
}

[data-tooltip-pos="top"]::after {
  top: auto;
  bottom: calc(100% + 7px);
  transform: translate(-50%, 2px);
}

[data-tooltip-pos="top"]:hover::after,
[data-tooltip-pos="top"]:focus-visible::after {
  transform: translate(-50%, 0);
}

[data-tooltip-pos="right"]::after {
  top: 50%;
  right: auto;
  bottom: auto;
  left: calc(100% + 7px);
  transform: translate(-2px, -50%);
}

[data-tooltip-pos="right"]:hover::after,
[data-tooltip-pos="right"]:focus-visible::after {
  transform: translate(0, -50%);
}

@media (max-width: 960px) {
  [data-tooltip-pos="right"]::after {
    right: calc(100% + 7px);
    left: auto;
    transform: translate(2px, -50%);
  }

  [data-tooltip-pos="right"]:hover::after,
  [data-tooltip-pos="right"]:focus-visible::after {
    transform: translate(0, -50%);
  }
}

.moment-source-device {
  opacity: 0.9;
}

.moment-source-location {
  font-weight: 500;
}

@media (max-width: 640px) {
  .moment-source-device {
    display: none;
  }
}

@keyframes moments-time-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 640px) {
  .moment-wall-avatar {
    width: 36px;
    height: 36px;
  }

  .moment-wall-card {
    gap: 10px;
  }
}

.fingertip-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 260;
  max-width: min(360px, calc(100vw - 44px));
  margin: 0;
  padding: 6px 12px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-popover);
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
  font-family: var(--font-ui);
  font-size: 10.5px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity var(--motion-fast) var(--ease);
}

.fingertip-toast.is-visible {
  opacity: 1;
}

.fingertip-toast.is-error {
  color: var(--accent-ink);
}


html[data-color-scheme="dark"] .moments-overlay-panel,
html[data-color-scheme="dark"] .moment-composer-panel {
  background: var(--paper-raised);
  border-color: var(--paper-border);
  box-shadow: var(--paper-shadow);
}

html[data-color-scheme="dark"] .moment-single-panel,
html[data-color-scheme="dark"] .search-panel {
  border-color: var(--paper-border);
  box-shadow: var(--paper-shadow);
}


html[data-color-scheme="dark"] .avatar-menu-panel,
html[data-color-scheme="dark"] .moments-time-years,
html[data-color-scheme="dark"] .moments-time-months,
html[data-color-scheme="dark"] .moment-wall-delete-confirm {
  border-color: var(--paper-border);
  box-shadow: var(--paper-popover);
}

html[data-color-scheme="dark"] .moments-time-years {
  background: var(--surface);
}

html[data-color-scheme="dark"] .moments-lightbox-frame {
  border-color: var(--paper-border);
  box-shadow: var(--paper-lift);
}


html[data-color-scheme="dark"] .moment-wall-menu {
  border-color: var(--paper-border);
  box-shadow: var(--paper-popover);
}

.avatar-frame {
  position: relative;
}

.avatar-frame::before {
  position: absolute;
  pointer-events: none;
  content: "";
  border-radius: 50%;
  inset: -3px;
  z-index: 0;
}

.avatar-frame.avatar-frame--orbit::before {
  color: var(--accent);
  background: conic-gradient(from 0deg, transparent 0 70%, currentColor 84%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1px), currentColor calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 1px), currentColor calc(100% - 1px));
  animation: profile-frame-spin 9s linear infinite;
}

.avatar-frame.avatar-frame--breath::before {
  inset: -2px;
  border: 1px solid var(--accent);
  animation: profile-frame-breathe 3.8s ease-in-out infinite;
}

.avatar-frame.avatar-frame--spark::before {
  color: var(--accent);
  background: conic-gradient(from 0deg, transparent 0 38%, currentColor 47%, transparent 52%, transparent 0 82%, currentColor 91%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1px), currentColor calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 1px), currentColor calc(100% - 1px));
  animation: profile-frame-spin 6s linear infinite reverse;
}

.avatar-frame.avatar-frame--none::before {
  display: none;
}

@keyframes profile-frame-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes profile-frame-breathe {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.985);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.profile-modal[hidden] {
  display: none;
}

.profile-modal {
  position: fixed;
  inset: 0;
  display: grid;
  padding: 20px;
  place-items: center;
}

.profile-modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--scrim);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: profile-backdrop-in var(--motion-fast) var(--ease) both;
}

.profile-card:focus {
  outline: none;
}

.profile-card {
  position: relative;
  width: min(320px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  padding: 20px;
  overflow-y: auto;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-dialog);
  animation: profile-card-in var(--motion-slow) var(--ease-out) both;
}

.profile-card--self {
  width: min(336px, calc(100vw - 24px));
}

.profile-card [hidden] {
  display: none !important;
}

.profile-card--hover {
  position: fixed;
  z-index: 240;
  width: 300px;
  max-height: none;
  overflow: visible;
  box-shadow: var(--shadow-popover);
  opacity: 0;
  transform: translateY(-4px) scale(0.985);
  transform-origin: top center;
  pointer-events: auto;
}

.profile-card--hover.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.profile-card--hover.is-above {
  transform-origin: bottom center;
}

.profile-card--hover::before {
  position: absolute;
  right: 0;
  left: 0;
  top: -12px;
  height: 12px;
  content: "";
}

.profile-card--hover.is-above::before {
  top: auto;
  bottom: -12px;
}

@keyframes profile-backdrop-in {
  from {
    opacity: 0;
  }
}

@keyframes profile-card-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
}

.profile-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-avatar {
  position: relative;
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 50%;
}

.profile-avatar img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-soft);
}

.profile-identity {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.profile-name {
  display: flex;
  max-width: 100%;
  min-width: 0;
  align-items: center;
  gap: 5px;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-family: var(--font-editorial);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
}

.profile-name-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-handle {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
}

.profile-name .verified-badge {
  width: 1em;
  height: 1em;
  flex: none;
}

.profile-name-edit {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: text;
}

.profile-name-input {
  min-width: 0;
  width: 7em;
  padding: 1px 3px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--accent);
  outline: 0;
  font: inherit;
}

.profile-name-input[hidden] {
  display: none;
}

.profile-name-save {
  display: inline-flex;
  width: 24px;
  height: 24px;
  flex: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border: 0;
  border-radius: 50%;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.profile-name-save[hidden] {
  display: none;
}

.profile-name.is-editing .profile-name-edit {
  display: none;
}

.profile-name-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-handle-row {
  display: flex;
  width: 100%;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
}

.profile-joined {
  flex: none;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.02em;
  user-select: none;
  -webkit-user-select: none;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 14px;
}

.profile-tag {
  padding: 2px 6px;
  color: var(--text-soft);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--font-ui);
  font-size: 9.5px;
  line-height: 1.35;
}

.profile-tags[hidden] {
  display: none;
}

.profile-recent {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 6px;
  margin-top: 10px;
  color: var(--text-soft);
  font-family: var(--font-ui);
  font-size: 11px;
  line-height: 1.5;
  text-decoration: none;
}

.profile-recent[hidden] {
  display: none;
}

.profile-recent:hover .profile-recent-title {
  color: var(--link-hover);
  text-decoration: underline;
  text-decoration-color: var(--link-underline);
  text-underline-offset: 0.2em;
}

.profile-recent-label {
  flex: none;
  color: var(--muted);
  font-size: 10px;
}

.profile-recent-pill {
  flex: none;
  min-width: 30px;
  padding: 2px 7px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
}

.profile-recent-pill.is-post {
  color: var(--source-article-ink);
  background: var(--source-article-pill-bg);
}

.profile-recent-pill.is-moment {
  color: var(--accent-ink);
  background: var(--source-moment-pill-bg);
}

.profile-recent-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-recent-time {
  flex: none;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
}

.profile-frame-picker {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 0 2px;
}

.profile-frame-picker[hidden] {
  display: none;
}

.profile-frame-picker-label {
  margin-right: 2px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 10.5px;
}

.profile-frame-choice {
  position: relative;
  display: grid;
  width: 24px;
  height: 24px;
  padding: 0;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.profile-frame-choice::before {
  width: 14px;
  height: 14px;
  content: "";
  border: 1px solid var(--muted);
  border-radius: 50%;
}

.profile-frame-choice[aria-pressed="true"] {
  border-color: var(--accent);
}

.profile-frame-choice[aria-pressed="true"]::before {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.profile-frame-choice[data-frame-choice="orbit"]::before {
  border: 0;
  color: var(--accent);
  background: conic-gradient(from 0deg, transparent 0 68%, currentColor 84%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1px), currentColor calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 1px), currentColor calc(100% - 1px));
  animation: profile-frame-spin 7s linear infinite;
}

.profile-frame-choice[data-frame-choice="spark"]::before {
  border: 0;
  color: var(--accent);
  background: conic-gradient(from 0deg, transparent 0 35%, currentColor 46%, transparent 52%, transparent 0 80%, currentColor 91%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1px), currentColor calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 1px), currentColor calc(100% - 1px));
  animation: profile-frame-spin 5.5s linear infinite reverse;
}

.profile-frame-choice[data-frame-choice="orbit"]::after,
.profile-frame-choice[data-frame-choice="spark"]::after {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 3px;
  height: 3px;
  content: "";
  background: var(--accent);
  border-radius: 50%;
}

.profile-frame-choice[data-frame-choice="breath"]::before {
  border-color: var(--accent);
  animation: profile-frame-breathe 3.8s ease-in-out infinite;
}

.profile-facts {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 18px;
  margin-top: 14px;
  font-family: var(--font-ui);
  font-size: 12px;
}

.profile-gender {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 500;
}

.profile-gender.is-female {
  color: var(--gender-female);
}

.profile-gender.is-male {
  color: var(--gender-male);
}

.profile-age {
  color: var(--text-soft);
}

.profile-signature-field {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
}

.profile-signature-field[hidden] {
  display: none;
}

.profile-signature-label {
  flex: none;
  padding: 0 4px;
  color: var(--text-soft);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.6;
  user-select: none;
  -webkit-user-select: none;
}

.profile-signature {
  min-width: 0;
  flex: 1;
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.profile-signature:empty {
  display: none;
}

.profile-signature-edit {
  display: block;
  width: 100%;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: inherit;
  line-height: 1.6;
  text-align: left;
  cursor: text;
}

.profile-signature-edit[hidden] {
  display: none !important;
}

.profile-signature-edit:empty {
  display: block;
}

.profile-signature-edit:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
}

.profile-signature-edit:hover,
.profile-signature-edit:focus-visible {
  color: var(--text);
}

.profile-signature-input {
  display: block;
  min-width: 0;
  width: 100%;
  height: 21px;
  min-height: 21px;
  flex: 1;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  outline: 0;
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.6;
  resize: vertical;
}

.profile-signature-input:focus {
  border-bottom-color: var(--accent);
}

.profile-signature-input[hidden] {
  display: none;
}

.profile-rule {
  display: block;
  width: 28px;
  height: 1px;
  margin-top: 10px;
  background: var(--line-strong);
}

.profile-rule[hidden] {
  display: none;
}

.profile-stats {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  padding: 0;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 11px;
}

.profile-stats strong {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
}

.profile-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.profile-card-actions a,
.profile-edit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-soft);
  font-family: var(--font-ui);
  font-size: 11.5px;
  text-decoration: none;
  cursor: pointer;
}

.profile-card-actions a svg {
  width: 1em;
  height: 1em;
  flex: none;
}

.profile-card-actions a:hover,
.profile-edit:hover {
  color: var(--link-hover);
}

.profile-edit {
  padding: 0;
  background: transparent;
  border: 0;
}

.profile-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.profile-form[hidden] {
  display: none;
}

.profile-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-form-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 11px;
}

.profile-form-hint {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.profile-form-row .profile-form-label {
  margin-top: 0;
}

.profile-gender-options {
  display: flex;
  gap: 4px;
}

.profile-gender-options button {
  min-height: 24px;
  padding: 2px 7px;
  color: var(--text-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--font-ui);
  font-size: 10.5px;
  cursor: pointer;
}

.profile-gender-options button[aria-pressed="true"] {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--bg-soft);
}

.profile-gender-options button[data-profile-gender-option="female"][aria-pressed="true"] {
  color: var(--gender-female);
}

.profile-gender-options button[data-profile-gender-option="male"][aria-pressed="true"] {
  color: var(--gender-male);
}

.profile-form input,
.profile-form textarea {
  width: 100%;
  padding: 7px 8px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: 0;
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.6;
}

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

.profile-form textarea {
  min-height: 58px;
  resize: vertical;
}

.profile-form-status {
  min-height: 1.2em;
  margin: 8px 0 0;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 10.5px;
}

.profile-form-status.is-error {
  color: var(--accent-ink);
}

.profile-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.profile-save,
.profile-cancel {
  min-height: 26px;
  padding: 3px 10px;
  border-radius: 4px;
  font-family: var(--font-ui);
  font-size: 11px;
  cursor: pointer;
}

.profile-save {
  color: var(--on-accent);
  background: var(--text);
  border: 1px solid var(--text);
}

.profile-save:disabled {
  opacity: 0.5;
  cursor: wait;
}

.profile-cancel {
  color: var(--text-soft);
  background: transparent;
  border: 1px solid var(--line);
}

.profile-card--hover {
  width: 256px;
  padding: 14px;
  border-radius: 12px;
}

.profile-card--hover .profile-card-head {
  gap: 10px;
}

.profile-card--hover .profile-avatar {
  width: 46px;
  height: 46px;
}

.profile-card--hover .profile-name {
  gap: 4px;
  font-size: 16px;
}

.profile-card--hover .profile-name .verified-badge {
  width: 11px;
  height: 11px;
}

.profile-card--hover .profile-handle {
  font-size: 9.5px;
}

.profile-card--hover .profile-facts {
  gap: 8px;
  min-height: 16px;
  margin-top: 10px;
  font-size: 11px;
}

.profile-card--hover .profile-signature-field {
  gap: 6px;
  margin-top: 8px;
}

.profile-card--hover .profile-signature-label {
  padding: 0 4px;
  font-size: 11px;
  line-height: 1.6;
}

.profile-card--hover .profile-signature {
  margin-top: 0;
  font-size: 11px;
  line-height: 1.6;
}

.profile-card--hover .profile-name {
  font-size: 16px;
}

.profile-card--hover .profile-name .verified-badge {
  width: 1em;
  height: 1em;
}

.profile-card--hover .profile-joined {
  font-size: 9px;
}

.profile-card--hover .profile-tags {
  gap: 4px;
  margin-top: 12px;
}

.profile-card--hover .profile-tag {
  padding: 1px 5px;
  font-size: 9px;
}

.profile-card--hover .profile-recent {
  gap: 5px;
  margin-top: 8px;
  font-size: 10px;
}

.profile-card--hover .profile-recent-label {
  font-size: 9px;
}

.profile-card--hover .profile-recent-pill {
  min-width: 28px;
  padding: 1px 6px;
  font-size: 9px;
}

.profile-card--hover .profile-recent-time {
  font-size: 8.5px;
}

.profile-card--hover .profile-stats {
  gap: 10px;
  margin-top: 8px;
  padding: 0;
  font-size: 10px;
}

.profile-card--hover .profile-stats strong {
  font-size: 11px;
}

.profile-card--hover .profile-card-actions {
  margin-top: 10px;
}

.profile-card--hover .profile-card-actions a,
.profile-card--hover .profile-edit {
  font-size: 10.5px;
}

@media (max-width: 640px) {
  .profile-modal {
    padding: 10px;
  }

  .profile-card--hover {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .avatar-frame::before,
  .profile-modal-backdrop,
  .profile-card {
    animation: none !important;
  }
}
