@font-face {
  font-family: Aldrich;
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url("/assets/fonts/aldrich.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+20AC;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Aldrich Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 94%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}

:root {
  --bg: #000;
  --fg: #fff;
  --muted: #71767b;
  --link: #1d9bf0;
  --link-hover: #8ecdff;
  --line: #1c1c1c;
  --hover: rgba(255, 255, 255, 0.045);
  --glass: rgba(0, 0, 0, 0.8);
  --glass-heavy: rgba(0, 0, 0, 0.92);
  --input-bg: #000;
  --input-line: #2f2f32;
  --input-focus: #6e767d;
  --rail-full: 256px;
  --rail-min: 80px;
  --rail: var(--rail-full);
  --stage: 600px;
  --aside: 320px;
  --z-overlay: 150;
  --z-popup: 200;
  --z-toast: 220;
  --z-tip: 230;
  --z-modal: 250;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --avatar-empty: linear-gradient(160deg, #1a1a1a 0%, #0c0c0c 46%, #050505 100%);
  --text-13: 13px;
  --text-15: 15px;
  --text-17: 17px;
  --text-20: 20px;
  --text-31: 31px;
  --lh-16: 16px;
  --lh-20: 20px;
  --lh-24: 24px;
  --lh-36: 36px;
  --lock-bar: 0px;
  --font: Aldrich, "Aldrich Fallback", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  --uni-hi: #f3e2a0;
  --uni-mid: #c9a227;
  --uni-lo: #6e5418;
  --uni-text: #e6d392;
  --uni-text-hot: #f4e4a6;
  --uni-line: rgba(184, 146, 46, 0.48);
  --uni-wash: rgba(184, 146, 46, 0.14);
  --uni-metal: linear-gradient(158deg, #f6e7b0 0%, #e0c36a 16%, #8a6a22 40%, #efe0a0 56%, #b8922e 76%, #5c4514 100%);
  --uni-metal-btn: linear-gradient(180deg, #f6e7b0 0%, #e4c86a 18%, #b8922e 42%, #6e5418 68%, #d4af37 88%, #8a6a22 100%);
  --coin-hi: #ffe7a8;
  --coin-mid: #d4a24a;
  --coin-lo: #6a4a16;
  --coin-text: #f0d7a0;
  --coin-text-hot: #fff1c4;
  --coin-line: rgba(212, 162, 74, 0.5);
  --coin-wash: rgba(212, 162, 74, 0.14);
}

* { box-sizing: border-box; }

img.emoji {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  margin: 0 0.05em;
  vertical-align: -0.2em;
  object-fit: contain;
  border: 0;
}

html {
  background: #000;
}

html, body {
  margin: 0;
  min-height: 100%;
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--text-15);
  font-weight: 400;
  line-height: var(--lh-20);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
}

body {
  background: transparent;
}

body.app,
body.auth {
  position: relative;
  isolation: isolate;
}

body.auth.has-wash::before,
body.auth.has-wash::after {
  content: "";
  position: fixed;
  inset: -18%;
  z-index: -1;
  pointer-events: none;
  transform-origin: 50% 42%;
  will-change: transform, opacity, filter;
}

body.auth.has-wash::before {
  background:
    radial-gradient(ellipse 58% 48% at 50% 38%, rgba(201, 162, 39, 0.22) 0%, transparent 64%),
    radial-gradient(ellipse 42% 38% at 30% 58%, rgba(184, 146, 46, 0.16) 0%, transparent 70%),
    radial-gradient(ellipse 46% 40% at 72% 52%, rgba(138, 108, 28, 0.14) 0%, transparent 68%),
    radial-gradient(ellipse 32% 26% at 52% 78%, rgba(110, 84, 24, 0.12) 0%, transparent 72%),
    #030201;
  animation: wash-drift-auth 80s ease-in-out infinite;
}

body.auth.has-wash::after {
  background:
    radial-gradient(ellipse 36% 30% at 46% 44%, rgba(246, 231, 176, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 28% 24% at 62% 36%, rgba(201, 162, 39, 0.07) 0%, transparent 72%),
    radial-gradient(ellipse 40% 34% at 26% 64%, rgba(184, 146, 46, 0.06) 0%, transparent 68%),
    radial-gradient(ellipse 24% 22% at 76% 68%, rgba(138, 108, 28, 0.05) 0%, transparent 70%);
  mix-blend-mode: screen;
  animation: wash-glow-auth 32s ease-in-out infinite;
}

body.app:not(.has-wash),
body.auth:not(.has-wash) {
  background: var(--bg);
}

body.app:not(.has-wash) .stage:not(:has(.uni)),
body.app:not(.has-wash) .rail,
body.app:not(.has-wash) .aside:not(:has(.aside-uni)) {
  background: var(--bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

@keyframes wash-drift-auth {
  0% {
    transform: translate3d(-3%, -2%, 0) scale(1) rotate(0deg);
    filter: saturate(1) brightness(0.82);
  }
  35% {
    transform: translate3d(3.5%, 1.5%, 0) scale(1.08) rotate(1.6deg);
    filter: saturate(1.08) brightness(0.92);
  }
  65% {
    transform: translate3d(-1.5%, 3.2%, 0) scale(1.04) rotate(-1.2deg);
    filter: saturate(1.04) brightness(0.86);
  }
  100% {
    transform: translate3d(-3%, -2%, 0) scale(1) rotate(0deg);
    filter: saturate(1) brightness(0.82);
  }
}

@keyframes wash-glow-auth {
  0% {
    transform: translate3d(2.5%, 2%, 0) scale(1.04);
    opacity: 0.22;
    filter: brightness(0.8) saturate(1.02);
  }
  40% {
    transform: translate3d(-4%, 0.5%, 0) scale(1.14);
    opacity: 0.4;
    filter: brightness(0.95) saturate(1.1);
  }
  70% {
    transform: translate3d(1.5%, -3.2%, 0) scale(1.07);
    opacity: 0.3;
    filter: brightness(0.86) saturate(1.05);
  }
  100% {
    transform: translate3d(2.5%, 2%, 0) scale(1.04);
    opacity: 0.22;
    filter: brightness(0.8) saturate(1.02);
  }
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]),
textarea,
select {
  outline: none;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]):focus,
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]):focus-visible,
textarea:focus,
textarea:focus-visible,
select:focus,
select:focus-visible {
  outline: none;
  box-shadow: none;
}

.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.field textarea,
.field select,
.rate-tile input,
.rate-qty input {
  background: var(--input-bg);
  border: 1px solid var(--input-line);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--fg);
  color-scheme: dark;
  transition: border-color 160ms var(--ease);
}

.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus-visible,
.field textarea:focus,
.field textarea:focus-visible,
.field select:focus,
.field select:focus-visible,
.rate-tile input:focus,
.rate-tile input:focus-visible,
.rate-qty input:focus,
.rate-qty input:focus-visible {
  border-color: var(--input-focus);
}

input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

body.app {
  display: flex;
  justify-content: center;
  min-height: 100dvh;
}

body.has-lockdown {
  --lock-bar: 36px;
  padding-top: var(--lock-bar);
}

.lockdown-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--lock-bar);
  padding: 0 16px;
  background: #1a0808;
  border-bottom: 1px solid #ff3b30;
  color: #ff8a80;
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.lockdown-banner .icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.lockdown-banner p {
  margin: 0;
}

.lockdown-banner a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lockdown-banner a:hover {
  color: #ff8a80;
}

.rail {
  position: sticky;
  top: var(--lock-bar);
  display: flex;
  flex-direction: column;
  width: var(--rail);
  height: calc(100dvh - var(--lock-bar));
  flex: 0 1 var(--rail);
  min-width: var(--rail-min);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 16px 0;
  z-index: 40;
  background: var(--glass-heavy);
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  overflow: visible;
  transition: width 180ms var(--ease), flex-basis 180ms var(--ease);
}

html:not(.rail-ready) .rail,
html:not(.rail-ready) .stage {
  transition: none !important;
}

.nav-link:hover,
.user:hover,
.menu-item:hover {
  background: var(--hover);
}

.icon {
  width: 22px;
  height: 22px;
  display: block;
  flex: 0 0 22px;
  overflow: visible;
}

.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 12px;
  direction: rtl;
  scrollbar-width: thin;
  scrollbar-color: #3a3a3c transparent;
}

.rail-nav > * {
  direction: ltr;
}

.rail-nav::-webkit-scrollbar {
  width: 6px;
}

.rail-nav::-webkit-scrollbar-track {
  background: transparent;
}

.rail-nav::-webkit-scrollbar-thumb {
  background: #3a3a3c;
  border: 0;
  border-radius: 0;
}

.rail-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rail-nav > a.nav-link,
.rail-nav > span.nav-link,
.rail-nav .rail-group > .nav-group,
.rail-nav .rail-group > span.nav-link,
.rail-features .nav-link {
  min-height: 36px;
  gap: 10px;
  padding: 0 8px;
  align-items: center;
}

.rail-nav > a.nav-link > .icon,
.rail-nav > span.nav-link > .icon,
.rail-nav .rail-group > .nav-group > .icon,
.rail-nav .rail-group > span.nav-link > .icon,
.rail-features .nav-link > .icon {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
  translate: none;
}

.rail-nav > a.nav-link .nav-label,
.rail-nav > span.nav-link .nav-label,
.rail-nav .rail-group > .nav-group .nav-label,
.rail-nav .rail-group > span.nav-link .nav-label,
.rail-features .nav-label {
  font-size: 17px;
  line-height: 20px;
  height: 20px;
  translate: none;
}

.rail-university,
.rail-coin,
.rail-plan {
  margin: 0;
  padding: 0;
}

.rail-features {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 2px 0;
}

.rail-university .nav-link,
.rail-plan .nav-link {
  color: var(--uni-text);
}

.rail-coin .nav-link {
  color: var(--coin-text);
}

.rail-university .nav-link:hover,
.rail-university .nav-link.is-active,
.rail-plan .nav-link:hover,
.rail-plan .nav-link.is-active {
  color: var(--uni-text-hot);
}

.rail-coin .nav-link:hover,
.rail-coin .nav-link.is-active {
  color: var(--coin-text-hot);
}

.rail-features .rail-university .nav-link > .icon {
  translate: 0 0.5px;
}

.rail-features .rail-coin .nav-link > .icon {
  translate: 0 -1px;
}

.rail-features .rail-plan .nav-link > .icon {
  translate: 0 -0.5px;
}

.nav-link,
.user,
.menu-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 38px;
  padding: 0 11px;
  border-radius: 12px;
  color: var(--muted);
  width: 100%;
  text-align: left;
  overflow: hidden;
}

.user {
  min-height: 44px;
}

.nav-link.is-active {
  color: var(--fg);
  background: var(--hover);
}

.nav-link.is-disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}

.nav-link > .icon,
.user > .icon {
  translate: 0 -3px;
}

.nav-label {
  white-space: nowrap;
  font-size: var(--text-20);
  line-height: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  overflow: visible;
  min-width: 0;
  translate: 0 -2px;
}

.nav-count {
  margin-left: auto;
  flex: 0 0 auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  box-sizing: border-box;
  border-radius: 999px;
  background: #ff3b30;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.rail-compose {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 4px;
}

.rail-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-group {
  color: var(--muted);
  min-height: 32px;
  cursor: pointer;
  pointer-events: auto;
}

.rail-group.is-open > .rail-sub {
  display: flex;
}

.nav-group.is-active {
  color: var(--fg);
}

.nav-chev {
  margin-left: auto;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  transition: transform 160ms var(--ease);
}

.rail-group.is-open > .nav-group .nav-chev {
  transform: rotate(90deg);
}

.rail-group:not(.is-open) > .rail-sub {
  display: none;
}

.rail-sub {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 0 2px 16px;
}

.rail-sub .nav-link {
  min-height: 30px;
  padding: 0 11px;
  gap: 10px;
}

.rail-sub .icon {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}

.rail-sub .nav-label {
  font-size: var(--text-15);
}

.rail-post {
  height: 36px;
  width: 100%;
  margin-top: 8px;
  flex: none;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: var(--text-15);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.rail-post-plus {
  display: none;
  font-size: 22px;
  line-height: 1;
  font-weight: 400;
  translate: 0 -0.5px;
}

.rail-post-label {
  white-space: nowrap;
  overflow: hidden;
}

.rail-post:hover { background: #e6e6e6; }

.rail-post.is-off,
.rail-post:disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}

.rail-end {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 12px 0;
  position: relative;
  z-index: 90;
}

.rail-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 44px;
  min-height: 38px;
  padding: 0 11px;
  margin: 0 12px 6px;
  border-radius: 12px;
  color: var(--muted);
  flex: none;
}

.rail-toggle:hover { background: var(--hover); color: var(--fg); }

.rail-post-icon {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

html.rail-min {
  --rail: var(--rail-min);
}

html.rail-min .rail {
  padding-left: 0;
  padding-right: 0;
  overflow: visible;
}

html.rail-min .rail-nav {
  padding: 0;
}

html.rail-min .rail-end {
  padding-left: 0;
  padding-right: 0;
}

html.rail-min .rail-toggle,
html.rail-min .nav-link,
html.rail-min .user,
html.rail-min .rail-post {
  gap: 0;
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
  width: 40px;
  min-width: 40px;
  margin-inline: auto;
}

html.rail-min .rail-post {
  height: 40px;
  width: 40px;
  min-width: 40px;
  margin-top: 8px;
  border-radius: 999px;
  overflow: hidden;
}

html.rail-min .rail-post-plus {
  display: block;
  font-size: 22px;
}

html.rail-min .user {
  padding-right: 0;
}

html.rail-min .nav-label,
html.rail-min .nav-chev,
html.rail-min .user-meta,
html.rail-min .rail-post-label {
  display: none;
}

html.rail-min .rail-sub,
html.rail-min .rail-group.is-open > .rail-sub {
  display: none;
}

html.rail-min .rail-toggle .icon {
  transform: rotate(180deg);
}

html.rail-min .rail-features {
  margin: 2px auto;
  width: 40px;
}

html.rail-min .rail-university,
html.rail-min .rail-coin,
html.rail-min .rail-plan {
  width: 40px;
  margin: 0 auto;
  padding: 0;
}

html.rail-min .nav-link {
  position: relative;
}

html.rail-min .nav-count {
  position: absolute;
  top: 3px;
  left: 26px;
  right: auto;
  margin: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  line-height: 16px;
  font-size: 10px;
}

html.rail-min .user-menu {
  left: calc(100% + 8px);
  right: auto;
  bottom: 0;
  width: 220px;
}

@media (prefers-reduced-motion: reduce) {
  .rail,
  .stage {
    transition: none;
  }

  body.auth.has-wash::before,
  body.auth.has-wash::after {
    animation: none;
  }
}

.user-wrap {
  position: relative;
  z-index: 90;
}

.user {
  color: var(--fg);
  min-width: 0;
  overflow: visible;
  padding-top: 4px;
  padding-bottom: 4px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--avatar-empty);
  color: #8f8f8f;
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  font-size: var(--text-15);
  line-height: 1;
  text-box: trim-both cap alphabetic;
}

.avatar.is-photo {
  object-fit: cover;
  border-color: transparent;
  background: transparent;
  color: inherit;
  padding: 0;
}

.avatar.is-live {
  border-color: transparent;
}

.post-avatar,
.msg-head-photo,
.msg-intro-photo,
.profile-face,
.search-hit-av,
.online-face,
.user-av {
  position: relative;
}

.post-avatar.has-live::after,
.msg-head-photo.has-live::after,
.msg-intro-photo.has-live::after,
.profile-face.has-live::after,
.search-hit-av.has-live::after,
.online-face.has-live::after,
.user-av.has-live::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #e8ffe9 0 14%, #5dff73 32%, #22c55e 62%, #15803d 100%);
  box-shadow: 0 0 6px 1px rgba(34, 197, 94, 0.75);
  box-sizing: border-box;
  z-index: 2;
  pointer-events: none;
}

.profile-face.has-live::after {
  width: 18px;
  height: 18px;
  right: 6px;
  bottom: 6px;
  box-shadow: 0 0 8px 2px rgba(34, 197, 94, 0.8);
}

.post-avatar.has-live.is-busy::after,
.msg-head-photo.has-live.is-busy::after,
.msg-intro-photo.has-live.is-busy::after,
.profile-face.has-live.is-busy::after,
.search-hit-av.has-live.is-busy::after,
.online-face.has-live.is-busy::after,
.user-av.has-live.is-busy::after {
  background:
    radial-gradient(circle at 32% 28%, #ffe8e8 0 14%, #ff6b6b 32%, #ef4444 62%, #b91c1c 100%);
  box-shadow: 0 0 6px 1px rgba(239, 68, 68, 0.75);
}

.profile-face.has-live.is-busy::after {
  box-shadow: 0 0 8px 2px rgba(239, 68, 68, 0.8);
}

.post-avatar:has(.is-verified-business).has-live::after,
.search-hit-av:has(.is-verified-business).has-live::after,
.online-face:has(.is-verified-business).has-live::after,
.user-av:has(.is-verified-business).has-live::after,
.msg-head-photo:has(.is-verified-business).has-live::after {
  right: -3px;
  bottom: -3px;
}

.msg-intro-photo:has(.is-verified-business).has-live::after {
  right: -2px;
  bottom: -2px;
}

.profile-face:has(.is-verified-business).has-live::after {
  right: -4px;
  bottom: -4px;
}

.post-avatar.has-seen::after,
.msg-head-photo.has-seen::after,
.msg-intro-photo.has-seen::after,
.profile-face.has-seen::after,
.search-hit-av.has-seen::after,
.online-face.has-seen::after,
.user-av.has-seen::after {
  content: attr(data-ago);
  position: absolute;
  right: -4px;
  bottom: -3px;
  min-width: 18px;
  height: 14px;
  padding: 0 4px;
  border: 1px solid #1c1c1c;
  border-radius: 999px;
  background: #0c0c0e;
  color: var(--muted);
  font-size: 9px;
  line-height: 12px;
  font-weight: 400;
  letter-spacing: 0;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  z-index: 2;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: none;
}

.profile-face.has-seen::after {
  right: 0;
  bottom: 0;
  min-width: 36px;
  height: 24px;
  padding: 0 8px;
  border-color: #2a2a2a;
  background: #16181c;
  color: #e7e9ea;
  font-size: 13px;
  line-height: 22px;
  font-weight: 700;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

.user-av,
.online-face,
.search-hit-av {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  overflow: visible;
}

.profile-face {
  display: block;
  position: relative;
  flex: 0 0 108px;
  width: 108px;
  height: 108px;
}

button.profile-face {
  color: inherit;
  font: inherit;
  text-align: left;
}

button.profile-face:hover .av-box,
button.profile-face:focus-visible .av-box {
  outline: 2px solid rgba(240, 215, 160, 0.55);
  outline-offset: 2px;
}

.avatar.is-verified-business { border-radius: 8px; }

.quote-avatar.is-verified-business { border-radius: 4px; }

.user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: var(--lh-20);
}

.user-name {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  min-width: 0;
  font-size: var(--text-15);
  line-height: 1;
}

.user-name-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1;
  font-weight: 700;
}

.badge-verified-business,
.badge-founder,
.badge-admin,
.badge-verified-user,
.badge-mute,
.badge-block {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 1.15em;
  display: block;
  margin: 0;
}

.badge-mute,
.badge-block {
  color: #8e8e93;
}

.badge-block {
  color: #f4212e;
}

.name-marks {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 3px;
  margin-left: 4px;
}

.badge-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  white-space: nowrap;
}

.ox-note {
  position: fixed;
  z-index: var(--z-tip);
  max-width: min(280px, calc(100vw - 16px));
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #161616;
  color: var(--fg);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  font-weight: 400;
  white-space: normal;
  pointer-events: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}

.user-handle {
  color: var(--muted);
  font-size: var(--text-15);
  line-height: var(--lh-20);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  background: var(--bg);
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  z-index: var(--z-popup);
}

.user-menu[hidden] { display: none; }

.user-menu .menu-sep {
  height: 1px;
  margin: 6px 8px;
  border: 0;
  background: var(--line);
}

.status-led {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
}

.status-led::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.status-led.is-auto::after {
  background:
    radial-gradient(circle at 32% 28%, #e8ffe9 0 14%, #5dff73 32%, #22c55e 62%, #15803d 100%);
  box-shadow: 0 0 6px 1px rgba(34, 197, 94, 0.75);
}

.status-led.is-busy::after {
  background:
    radial-gradient(circle at 32% 28%, #ffe8e8 0 14%, #ff6b6b 32%, #ef4444 62%, #b91c1c 100%);
  box-shadow: 0 0 6px 1px rgba(239, 68, 68, 0.75);
}

.status-led.is-off::after {
  background:
    radial-gradient(circle at 32% 28%, #d8d8dc 0 14%, #8e8e93 38%, #636366 70%, #3a3a3c 100%);
  box-shadow: 0 0 4px 1px rgba(142, 142, 147, 0.35);
}

.menu-item.status-pick.is-on::after {
  content: "";
  width: 8px;
  height: 4px;
  margin-left: auto;
  margin-right: 2px;
  border-left: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(-45deg) translateY(-2px);
}

.menu-item {
  color: var(--fg);
  min-height: 34px;
  font-size: var(--text-15);
  line-height: 20px;
}

.menu-item > .icon,
.menu-item > .status-led {
  translate: none;
  align-self: center;
}

.menu-item > span {
  display: flex;
  align-items: center;
  line-height: 20px;
  height: 20px;
  text-box: trim-both cap alphabetic;
}

.user-menu .menu-item {
  align-items: center;
  gap: 10px;
}

.aside {
  position: sticky;
  top: var(--lock-bar);
  display: flex;
  flex-direction: column;
  width: var(--aside);
  height: calc(100dvh - var(--lock-bar));
  flex: 0 1 var(--aside);
  min-width: 220px;
  padding: 16px 16px 14px;
  z-index: 3;
  background: var(--glass-heavy);
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  border-right: 1px solid var(--line);
}

.aside-search {
  flex: 0 0 auto;
}

.aside-online {
  margin-top: 16px;
  min-height: 0;
  overflow: auto;
}

.aside-online-title {
  margin: 0 4px 8px;
  font-size: var(--text-15);
  line-height: var(--lh-20);
  font-weight: 700;
}

.online-list {
  display: flex;
  flex-direction: column;
}

.online-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  border-radius: 12px;
}

.online-card:hover { background: var(--hover); }

.online-card .avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}

.online-id {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.online-name {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  min-width: 0;
  flex: 1 1 auto;
}

.online-name > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.online-handle {
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online-rank {
  color: var(--muted);
  font-weight: 400;
  font-size: 11px;
  line-height: 14px;
  text-transform: uppercase;
}

.online-rank::before {
  content: "·";
  margin: 0 5px;
  color: var(--muted);
  font-weight: 400;
  text-transform: none;
}

.aside-end {
  margin-top: auto;
  padding-top: 18px;
}

.copy {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

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

.site-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  padding: 4px 0 2px;
  box-sizing: border-box;
}

.site-foot-mobile {
  display: none;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.status-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.page-load {
  margin: 0;
  color: #3a3d40;
  font-size: 11px;
  line-height: 14px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 10px 0 8px;
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  color: var(--fg);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  background: #0c0c0c;
}

.status-chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #71767b;
  box-shadow: 0 0 0 3px rgba(113, 118, 123, 0.16);
}

.status-chip.is-ok i {
  background: #3d9a5f;
  box-shadow: 0 0 0 3px rgba(61, 154, 95, 0.18);
}

.status-chip.is-warn i {
  background: #c9a227;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
}

.status-chip.is-bad i {
  background: #ff3b30;
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.18);
}

.status-chip:hover {
  background: var(--hover);
  border-color: #3f3f3f;
}

.site-legal {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 4px 12px;
  white-space: nowrap;
}

.site-legal a,
.legal-links a {
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.site-legal a:hover,
.legal-links a:hover {
  color: var(--fg);
}

.site-copy {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
}

.site-copy a {
  color: var(--muted);
}

.site-copy a:hover {
  color: var(--link);
}

.gate .site-foot {
  margin-top: 36px;
}

.stage {
  position: relative;
  z-index: 1;
  flex: 0 1 var(--stage);
  width: var(--stage);
  max-width: var(--stage);
  min-width: 0;
  padding: 16px 20px 48px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(40px) saturate(1.25);
  -webkit-backdrop-filter: blur(40px) saturate(1.25);
}

.stage:has(.post-menu:not([hidden])),
.stage:has(.admin-menu:not([hidden])),
.stage:has(.admin-pass:not([hidden])),
.stage:has(.admin-reset-copy:not([hidden])),
.stage:has(.search-panel:not([hidden])) {
  z-index: 160;
}

.stage:has(.profile),
.stage:has(.feed),
.stage:has(.dash),
.stage:has(.settings),
.stage:has(.sub-page),
.stage:has(.uni),
.stage:has(.people) {
  padding: 16px 20px 48px;
}

.stage.is-wide,
body.has-wide-stage .stage,
.stage:has(.messages) {
  display: flex;
  flex-direction: column;
  flex: 0 1 calc(var(--stage) + var(--aside));
  max-width: calc(var(--stage) + var(--aside));
  width: calc(var(--stage) + var(--aside));
  min-height: 0;
  height: calc(100dvh - var(--lock-bar));
  padding: 0;
  overflow: hidden;
}

.stage:has(.messages) > .messages {
  flex: 1 1 auto;
  min-height: 0;
}

body.app:has(.messages) {
  height: 100dvh;
  overflow: hidden;
}

body.has-wide-stage .aside,
body:has(.messages) .aside { display: none; }

body.has-sub-stage .stage,
.stage:has(.sub-page) {
  flex: 0 1 calc(var(--stage) + var(--aside));
  max-width: calc(var(--stage) + var(--aside));
  width: calc(var(--stage) + var(--aside));
}

body.has-sub-stage .aside,
body:has(.sub-page) .aside { display: none; }

body.has-sub-stage .site-foot-mobile,
.stage:has(.sub-page) .site-foot-mobile {
  display: block;
}

.stage:has(.notes) {
  display: flex;
  flex-direction: column;
  flex: 0 1 calc(var(--stage) + var(--aside));
  max-width: calc(var(--stage) + var(--aside));
  width: calc(var(--stage) + var(--aside));
  min-height: 0;
  height: calc(100dvh - var(--lock-bar));
  padding: 0;
  overflow: hidden;
}

.stage:has(.notes) > .notes {
  flex: 1 1 auto;
  min-height: 0;
}

body.app:has(.notes) {
  height: 100dvh;
  overflow: hidden;
}

.stage:has(.founder-term),
.stage.is-founder-term,
body.has-wide-stage .stage.is-founder-term {
  display: flex;
  flex-direction: column;
  flex: 0 1 calc(var(--stage) + var(--aside));
  max-width: calc(var(--stage) + var(--aside));
  width: calc(var(--stage) + var(--aside));
  min-height: 0;
  height: calc(100dvh - var(--lock-bar));
  padding: 16px 20px;
  overflow: hidden;
}

.stage:has(.founder-term) > .founder-term,
.stage.is-founder-term > .founder-term {
  flex: 1 1 auto;
  min-height: 0;
}

body.has-founder-term .aside,
body:has(.founder-term) .aside { display: none; }

.stage.is-founder-term .site-foot-mobile,
.stage:has(.founder-term) .site-foot-mobile {
  display: none;
}

body.app.has-founder-term,
body.app:has(.founder-term) {
  height: 100dvh;
  overflow: hidden;
}

.founder-term {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 10px 12px 12px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.founder-term-view {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  background: #000;
  caret-color: transparent;
  outline: none;
  overflow: hidden;
}

.founder-term-view canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  background: #000;
}

.founder-term-view textarea {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 0 !important;
  height: 0 !important;
  inset: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  pointer-events: none;
}

body:has(.notes) .aside { display: none; }

.notes {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.note-tree {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.note-tree-head {
  padding: 16px 16px 10px;
}

.note-tree-head h1 {
  margin: 0 0 12px;
}

.note-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.note-actions .btn {
  height: 32px;
  padding: 0 10px;
  font-size: var(--text-13);
}

.note-tree-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 4px 8px 16px;
}

.note-node.is-drag {
  opacity: 0.45;
}

.note-node.is-drop > .note-row {
  background: var(--hover);
}

.note-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding-right: 6px;
  border-radius: 10px;
}

.note-node.is-on > .note-row {
  background: var(--hover);
}

.note-row:hover {
  background: var(--hover);
}

.note-grip {
  width: 8px;
  height: 14px;
  border-left: 2px dotted #3a3a3c;
  border-right: 2px dotted #3a3a3c;
  opacity: 0.7;
}

.note-kind {
  color: var(--muted);
  display: grid;
  place-items: center;
}

.note-ico {
  width: 16px;
  height: 16px;
  display: block;
}

.note-row-tools {
  display: flex;
  align-items: center;
  gap: 2px;
  opacity: 0;
}

.note-row:hover .note-row-tools,
.note-node.is-on > .note-row .note-row-tools {
  opacity: 1;
}

.note-add,
.note-del {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
  text-align: center;
}

.note-add:hover,
.note-del:hover {
  background: #1c1c1c;
  color: var(--fg);
}

.note-root-tools {
  display: flex;
  gap: 8px;
  padding: 4px 8px 10px;
}

.note-root-tools .note-add {
  width: auto;
  padding: 0 8px;
  font-size: var(--text-13);
}

.note-open {
  min-width: 0;
  text-align: left;
  color: var(--fg);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.note-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.note-empty,
.note-editor {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.note-empty {
  align-items: flex-start;
  justify-content: center;
  padding: 28px 24px;
}

.note-empty h2 {
  margin: 0;
  font-size: var(--text-20);
  font-weight: 400;
  color: var(--muted);
}

.note-empty p,
.note-meta {
  color: var(--muted);
}

.note-editor-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 0;
}

.note-back {
  display: none;
  color: var(--muted);
  font-size: var(--text-13);
}

@media (max-width: 800px) {
  .note-back { display: inline-flex; }
}

.note-title {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--fg);
  font-size: var(--text-20);
  outline: none;
}

.note-title:focus,
.note-title:focus-visible {
  border: 0;
}

.note-body,
.note-view {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  margin: 0;
  padding: 12px 22px 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: var(--text-15);
  line-height: 1.55;
  resize: none;
  outline: none;
  overflow: auto;
}

.note-body:focus,
.note-body:focus-visible {
  border: 0;
}

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

.note-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 0;
  font-size: var(--text-13);
}

.notes .msg-lock {
  position: absolute;
  inset: 0;
}

@media (max-width: 800px) {
  .notes { grid-template-columns: 1fr; }
  .notes.is-edit .note-tree { display: none; }
  .notes:not(.is-edit) .note-stage { display: none; }
}

.hero, .panel, .dash, .feed, .profile {
  width: 100%;
  max-width: 100%;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

h1 {
  margin: 0 0 12px;
  font-size: var(--text-20);
  font-weight: 400;
  letter-spacing: 0;
  line-height: var(--lh-24);
}

.panel-head { margin-bottom: 36px; }

.settings-sub {
  margin: 28px 0 12px;
  font-size: var(--text-20);
  line-height: var(--lh-24);
  font-weight: 400;
}

.settings-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-block + .settings-block {
  margin-top: 28px;
}

.settings .settings-sub,
.settings-block > .settings-sub {
  margin: 0;
}

.panel.settings > .settings-block:first-child {
  margin-top: 0;
}

.panel.settings {
  padding-top: 0;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 28px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  letter-spacing: 0;
  text-transform: none;
}

.field-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.field-wait {
  letter-spacing: 0.06em;
  text-transform: none;
  font-variant-numeric: tabular-nums;
}

.field-wait.is-low {
  color: var(--fg);
}

.muted-actions {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.field-note + .muted-actions,
.field-note + .btn {
  margin-top: 14px;
}

.field-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.field-note a,
.field-note .mention {
  color: var(--link);
}

.field-note a:hover,
.field-note .mention:hover {
  color: var(--link-hover);
}

.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]) {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  font-size: var(--text-15);
  line-height: var(--lh-20);
  letter-spacing: 0;
  text-transform: none;
  user-select: text;
  -webkit-user-select: text;
}

.field input[type="date"] {
  color-scheme: dark;
}

.field input[readonly],
.field input:disabled,
.field textarea[readonly] {
  color: var(--muted);
  cursor: default;
  background: var(--input-bg);
}

.field textarea {
  padding: 10px 12px;
  font: inherit;
  font-size: var(--text-15);
  line-height: var(--lh-20);
  letter-spacing: 0;
  text-transform: none;
  resize: vertical;
  min-height: 96px;
  user-select: text;
  -webkit-user-select: text;
}

.profile { width: 100%; max-width: 600px; }

.profile-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.profile-head-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.profile-invite {
  margin: 0;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: baseline;
  gap: 6px 8px;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  text-align: right;
}

.profile-invite-code {
  color: #c9a36a;
  overflow-wrap: anywhere;
}

.profile-invite-code:hover {
  color: #e2b56a;
}

.profile-invite-code.is-on {
  letter-spacing: 0.04em;
  user-select: all;
  -webkit-user-select: all;
}

.profile-invite-note {
  color: var(--muted);
}

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

.admin-drop { position: relative; }

.icon-more {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--fg);
}

.icon-more:hover { background: var(--hover); }

.icon-more .icon {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}

.menu-item.is-danger {
  color: #ff3b30;
}

.menu-item.is-disabled,
.menu-item:disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}

span.menu-item {
  cursor: default;
}

.admin-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 248px;
  background: var(--bg);
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  z-index: var(--z-popup);
}

.admin-menu[hidden] { display: none; }

.admin-menu .menu-sep {
  height: 1px;
  margin: 6px 8px;
  border: 0;
  background: var(--line);
}

.admin-pass {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 240px;
  background: var(--bg);
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  z-index: var(--z-popup);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-pass[hidden] { display: none; }

.admin-pass .btn { width: 100%; }

.admin-reset-copy {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(360px, calc(100vw - 32px));
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  background: var(--bg);
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  color: var(--fg);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  overflow-wrap: anywhere;
  user-select: all;
  z-index: var(--z-popup);
}

.admin-reset-copy[hidden] { display: none; }

.profile-photo.is-empty {
  background: var(--avatar-empty);
}

.profile-photo {
  display: block;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 108px;
  border: 2px solid transparent;
  background: #0a0a0a;
  vertical-align: top;
}

.profile-photo.is-live {
  border-color: transparent;
}

.profile-photo.is-fallback {
  display: grid;
  place-items: center;
  font-size: 36px;
  line-height: 1;
  text-box: trim-both cap alphabetic;
  background: var(--avatar-empty);
  color: #8f8f8f;
}

.profile-photo.is-verified-business { border-radius: 18px; }

.profile-edit,
.profile-follow {
  width: auto;
  min-width: 0;
  display: inline-grid;
  place-items: center;
}

.profile-follow.is-follow {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.profile-follow.is-follow:hover {
  background: #e6e6e6;
  border-color: #e6e6e6;
}

.btn.profile-follow:disabled {
  opacity: 0.45;
  cursor: default;
}

.profile-id {
  margin-bottom: 10px;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.profile-id-main { min-width: 0; }

.profile-name {
  margin: 0;
  font-size: var(--text-20);
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  min-width: 0;
  line-height: 1;
  letter-spacing: 0;
}

.profile-name-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1;
  font-weight: 700;
}

.profile.is-unavailable .profile-name {
  font-size: var(--text-31);
  line-height: var(--lh-36);
}

.profile-block-note {
  margin: 6px 0 0;
  color: #c9a3a3;
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.profile-handle {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: var(--text-15);
  line-height: var(--lh-20);
  cursor: pointer;
}

.profile-handle:hover {
  color: var(--fg);
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
}

.profile-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px 0 7px;
  border: 1px solid rgb(201 163 106 / 34%);
  border-radius: 999px;
  background: rgb(201 163 106 / 10%);
  color: #d7b27a;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.01em;
}

.profile-tag .icon {
  width: 13px;
  height: 13px;
  flex: none;
}

.profile-follows {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 0;
  color: var(--muted);
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

.profile-follow-stats {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.profile-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--muted);
}

.profile-stat-n { color: var(--fg); }

.profile-stat:hover { color: var(--fg); }

.people-head { margin-bottom: 12px; }

.people-wrap {
  width: 100%;
}

.people-wrap .list-filter,
.list-filter {
  margin: 0 0 12px;
}

.settings-block .list-filter {
  margin-top: 10px;
}

.people-head h1 {
  margin: 4px 0 0;
  font-size: var(--text-20);
  line-height: var(--lh-24);
  font-weight: 400;
}

.people,
.notices { width: 100%; }

.people::before,
.notices::before,
.timeline::before {
  content: "";
  display: block;
  border-top: 1px solid var(--line);
  margin-inline: -20px;
}

.profile-tabs + .people::before,
.profile-tabs + .timeline::before,
.composer + .timeline::before,
.thread-chain + .timeline::before {
  margin-top: -1px;
}

.people:has(> .timeline-empty)::before,
.notices:has(> .timeline-empty)::before,
.timeline:has(> .timeline-empty)::before {
  display: none;
}

.notice {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  column-gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.notice-face {
  position: relative;
  width: 28px;
  height: 28px;
  flex: none;
  overflow: visible;
}

.notice-face .post-avatar::after {
  content: none;
  display: none;
}

.notice-face .post-avatar,
.notice > .post-avatar {
  width: 24px;
  min-width: 24px;
  max-width: 24px;
  height: 24px;
}

.notice .avatar,
.notice .avatar.is-photo {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  max-width: 24px;
  flex: none;
  font-size: 11px;
}

.notice img.avatar {
  display: block;
  object-fit: cover;
}

.notice .avatar.is-verified-business {
  border-radius: 8px;
}

.notice[data-href] {
  cursor: pointer;
  margin-inline: -20px;
  padding-inline: 20px;
}

.notice.is-unread {
  background: #111;
}

.notice.is-unread .notice-kind {
  background: #111;
  border-color: #111;
}

.notice[data-href]:hover {
  background: var(--hover);
}

.notice[data-href]:hover .notice-kind {
  background: var(--hover);
  border-color: var(--hover);
}

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

.notice-line {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  min-width: 0;
}

.notice .post-name {
  max-width: none;
  height: auto;
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  flex: 0 1 auto;
  min-width: 0;
  line-height: 20px;
}

.notice .post-name > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice .post-handle {
  flex: 0 1 auto;
  min-width: 0;
}

.notice .post-time {
  flex: 0 0 auto;
  margin: 0;
}

.badge-affiliate {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  overflow: hidden;
  display: inline-grid;
  place-items: center;
  background: #1a1a1a;
  color: #c9a36a;
  font-size: 9px;
  line-height: 1;
  flex: 0 0 16px;
  cursor: pointer;
}

.user.is-viewing {
  box-shadow: inset 2px 0 0 #c9a36a;
}

.badge-affiliate img,
.badge-affiliate span {
  width: 16px;
  height: 16px;
  object-fit: cover;
  display: grid;
  place-items: center;
}

.role-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.role-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.role-row[hidden],
.person[hidden],
.invite-card[hidden] {
  display: none !important;
}

.role-id {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.role-state {
  color: var(--muted);
  font-size: var(--text-13);
}

.role-invite {
  display: flex;
  align-items: end;
  gap: 10px;
  width: 100%;
}

.role-invite .field {
  flex: 1 1 auto;
  min-width: 0;
}

.role-invite .btn {
  flex: 0 0 auto;
}

.org-id {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

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

.org-glance li {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.notice .badge-wrap,
.notice .badge-wrap svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.notice .post-handle {
  max-width: 36%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}

.notice-action {
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: var(--text-15);
  line-height: 20px;
}

.notice-line .post-time {
  margin-left: auto;
  padding-left: 8px;
}

.notice-kind {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin: 0;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--bg);
  color: var(--muted);
  pointer-events: none;
  z-index: 1;
}

.notice-kind .icon {
  width: 16px;
  height: 16px;
  display: block;
  flex: none;
  overflow: visible;
  transform: none;
}

.notice-kind.is-like { color: #ff375f; }

.notice-kind.is-like .icon path { fill: currentColor; }

.notice-kind.is-follow,
.notice-kind.is-mention { color: #1d9bf0; }

.notice-kind.is-coin { color: #d4a24a; }

.notice-preview {
  margin: 8px 0 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.notice-preview.is-moderated {
  color: #9a8b6d;
  font-style: italic;
}

.notice-preview.is-deleted {
  font-style: italic;
}

.person {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.person[data-href] {
  cursor: pointer;
  margin-inline: -20px;
  padding-inline: 20px;
}

.person[data-href]:hover {
  background: var(--hover);
}

.person-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.person-top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.person-blurb {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  overflow-wrap: anywhere;
}

.person-id {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.person-id .post-name,
.role-id .post-name,
.notice-id .post-name {
  display: flex;
  width: auto;
  max-width: 100%;
}

.person-follow {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 14px;
}

.profile-bio-wrap { margin: 0 0 10px; }

.profile-bio {
  margin: 0;
  line-height: var(--lh-20);
  font-size: var(--text-15);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: text;
  -webkit-user-select: text;
}

.profile-bio .mention,
.profile-bio .text-link,
.post-text .mention,
.post-text .text-link,
.quote-text .mention,
.quote-text .text-link {
  color: var(--link);
}

.profile-bio .mention:hover,
.profile-bio .text-link:hover,
.post-text .mention:hover,
.post-text .text-link:hover,
.quote-text .mention:hover,
.quote-text .text-link:hover {
  color: var(--link-hover);
}

.profile-bio.is-clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  max-height: calc(var(--lh-20) * 3);
}

.bio-more {
  margin-top: 2px;
  color: var(--muted);
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

.bio-more:hover { color: var(--fg); }

.profile-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  color: var(--muted);
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

.profile-meta li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 16px;
}

.profile-meta .icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  display: block;
  overflow: visible;
}

.profile-meta span,
.profile-meta a {
  line-height: 1;
  text-box: trim-both cap alphabetic;
}

.profile-meta a { color: var(--link); }
.profile-meta a:hover { color: var(--link-hover); }

.profile-edit-page .stack { margin-top: 0; }

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

.photo-edit {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.photo-pick-hit {
  position: relative;
  display: block;
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  cursor: pointer;
  border-radius: 50%;
}

.photo-pick-hit .profile-photo.is-verified-business,
.photo-pick-hit:has(.is-verified-business) {
  border-radius: 18px;
}

.photo-pick-ui {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  border: 2px solid var(--bg);
}

.photo-pick-ui .icon {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
}

.photo-pick-hit:hover .photo-pick-ui {
  background: #e6e6e6;
}

.photo-pick-hit.is-off {
  cursor: default;
  pointer-events: none;
}

.photo-pick-hit.is-off .photo-pick-ui {
  opacity: 0.35;
}

.photo-pick-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

.photo-pick-name {
  color: var(--fg);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 240px;
}

.profile-edit-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-edit-actions .btn { flex: 1; }
.profile-edit-page .profile-photo {
  width: 88px;
  height: 88px;
  flex-basis: 88px;
  font-size: 32px;
}

.photo-pick {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  letter-spacing: 0;
  text-transform: none;
  min-width: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  border: 1px solid #2a2a2a;
  letter-spacing: 0;
  text-transform: none;
  font-size: var(--text-15);
  line-height: 1;
  text-box: trim-both cap alphabetic;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 160ms var(--ease), border-color 160ms var(--ease), opacity 160ms var(--ease);
}

.btn:hover {
  background: var(--hover);
  border-color: #3f3f3f;
}

.btn:disabled { opacity: 0.45; cursor: wait; }

.btn-danger,
.btn.is-danger {
  color: #ff8a80;
  border-color: #8b1a1a;
  background: #1a0808;
}

.btn-danger:hover,
.btn.is-danger:hover {
  color: #fff;
  border-color: #ff3b30;
  background: #3a1010;
}

.placeholder {
  min-height: 280px;
  border: 1px dashed #2a2a2a;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

body.no-follow .profile-follow,
body.no-follow .person-follow {
  display: none !important;
}

body.no-post .composer,
body.no-post .rail-post,
body.no-post .compose-back,
body.no-post .post-reply,
body.no-post .post-repost,
body.no-post .post-like,
body.no-post .post-actions-left > .post-drop {
  display: none !important;
}

.feature-toggles {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.dash > .feature-toggles:first-child {
  margin-top: 0;
  gap: 0;
}

.dash .feature-toggles {
  gap: 0;
}

.settings-block > .feature-toggles,
.settings-block > .field-note,
.settings-block > .choice-list,
.settings-block > .muted-actions,
.settings-block > .field-note + .muted-actions,
.settings-block > .field-note + .btn {
  margin-top: 0;
}

.settings-sub + .field-note {
  margin-top: 0;
}

.dash { max-width: 100%; }

.dash > .settings-sub:first-of-type {
  margin-top: 0;
}

.dash-stats {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dash-stats li {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-n {
  font-size: var(--text-31);
  line-height: var(--lh-36);
}

.dash-k {
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.metrics-chapter + .metrics-chapter {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.metrics-chapter > .settings-sub {
  margin: 0 0 14px;
}

.metrics-kicker {
  margin: 16px 0 8px;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  font-weight: 400;
}

.metrics-chapter > .metrics-kicker:first-of-type {
  margin-top: 0;
}

.metrics-empty {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.metrics-glance {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.metrics-glance .metric {
  display: grid;
  grid-template-rows: 16px 20px;
  align-content: start;
  gap: 6px;
  padding: 12px 10px 10px;
  min-height: 0;
}

.metrics-glance .metric-k {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 16px;
}

.metrics-glance .metric-n {
  font-size: var(--text-15);
  line-height: var(--lh-20);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.metrics-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.metrics-chapter .metrics-grid + .metrics-kicker {
  margin-top: 20px;
}

.metric {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.metric-k {
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.metric-n {
  font-size: var(--text-20);
  line-height: var(--lh-24);
}

.metric-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
}

.metric-bar {
  display: block;
  height: 4px;
  margin: 4px 0 2px;
  border-radius: 99px;
  background: #1c1c1c;
  overflow: hidden;
}

.metric-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: #536471;
}

.metric.is-ok .metric-bar i { background: #3d9a5f; }
.metric.is-warn .metric-bar i { background: #c9a227; }
.metric.is-bad .metric-bar i { background: #ff3b30; }

.metric.is-ok .metric-n { color: #7dcea0; }
.metric.is-warn .metric-n { color: #e2b340; }
.metric.is-bad .metric-n { color: #ff8a80; }

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

.node-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.node-card.is-self {
  border-color: #3d9a5f;
}

.node-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.node-id {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.node-title {
  font-size: var(--text-13);
  line-height: var(--lh-16);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node-role {
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
}

.node-status {
  flex: 0 0 auto;
  font-size: 12px;
  line-height: 16px;
}

.node-card.is-ok .node-status { color: #7dcea0; }
.node-card.is-warn .node-status { color: #e2b340; }
.node-card.is-bad .node-status { color: #ff8a80; }

.node-vitals {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.node-vitals li {
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.node-vitals span {
  color: var(--muted);
  margin-right: 4px;
}

.node-facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.node-facts div {
  min-width: 0;
}

.node-facts dt {
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
}

.node-facts dd {
  margin: 0;
  font-size: var(--text-13);
  line-height: var(--lh-16);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node-detail {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  overflow-wrap: anywhere;
}

.locked-search {
  margin: 0 0 16px;
}

.dash-users {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dash-users li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  margin-inline: -20px;
  border-bottom: 1px solid var(--line);
}

.dash-users > li:first-child {
  border-top: 1px solid var(--line);
}

.dash-users li:not(.feed-more)[data-href] {
  cursor: pointer;
}

.dash-users li:not(.feed-more):hover {
  background: var(--hover);
}

.dash-who { min-width: 0; }

.dash-id {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dash-users .post-name { max-width: none; }

.dash-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  text-align: right;
}

.dash-role {
  color: var(--fg);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  font-weight: 700;
}

.dash-seen {
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.dash-meta .post-time {
  padding: 0;
  margin: 0;
}

.audit-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
}

.audit-bar .list-filter,
.audit-bar .search-box,
.audit-filter {
  flex: 1;
  min-width: 0;
  margin: 0;
  height: 42px;
}

.audit-bar .btn {
  height: 42px;
  margin: 0;
  flex: 0 0 auto;
  align-self: center;
}

.audit-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}

.audit-chip {
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: 1;
}

.audit-chip:hover {
  color: var(--fg);
  background: var(--hover);
}

.audit-help {
  margin: 0 0 16px;
}

.audit-off {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #8b1a1a;
  border-radius: 12px;
  background: #160808;
  color: #ff8a80;
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

.danger-panel + .settings-block {
  margin-top: 36px;
  padding-top: 8px;
}

.danger-panel {
  margin: 28px 0 0;
  padding: 16px 16px 8px;
  border: 1px solid #5a1a1a;
  border-radius: 14px;
  background: #120808;
}

.panel.settings > .danger-panel:first-child {
  margin-top: 0;
}

.danger-panel.is-on {
  border-color: #ff3b30;
  background: #1a0808;
}

.danger-panel > .settings-sub {
  margin: 0 0 8px;
  color: #ff8a80;
}

.danger-panel > .field-note {
  margin: 0 0 10px;
  color: #c9a3a3;
}

.danger-list {
  margin: 0 0 12px;
  padding: 0 0 0 18px;
  color: #e8b4b4;
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.danger-list li + li {
  margin-top: 4px;
}

.danger-panel .feature-toggles {
  margin: 0;
}

.danger-panel .toggle,
.dash .danger-panel .toggle,
.dash .danger-panel .toggle:first-child {
  margin: 0;
  padding: 4px 0 8px;
  min-height: 32px;
  border: 0;
}

.danger-panel .toggle-ctrl input:checked + .toggle-ui {
  background: #ff3b30;
}

.danger-panel .toggle-ctrl input:checked + .toggle-ui::after {
  background: #fff;
}

.danger-panel .toggle-ctrl input:focus-visible + .toggle-ui {
  outline-color: #ff8a80;
}

.danger-state {
  margin: 10px 0 6px;
  color: #ff8a80;
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.danger-state[hidden] { display: none; }

.danger-panel .form-error {
  margin: 8px 0 6px;
}

.danger-panel + .settings-sub {
  margin-top: 28px;
}

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

.staff-log {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 8px;
  padding: 10px 20px 12px;
  margin-inline: -20px;
  border-bottom: 1px solid var(--line);
}

.staff-logs .staff-log:first-child {
  border-top: 1px solid var(--line);
}

.staff-log[data-href] {
  cursor: pointer;
}

.staff-log:hover {
  background: var(--hover);
}

.staff-log-main { min-width: 0; }

.staff-logs .post-name { max-width: none; }

.staff-log-body {
  margin: 2px 0 0;
  font-size: var(--text-15);
  line-height: var(--lh-20);
  overflow-wrap: anywhere;
}

.staff-log-target { font-weight: 700; }

.dash-lock {
  color: var(--fg);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.placeholder p { margin: 0; }

.switch, .form-error, .form-ok {
  margin: 0;
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

.switch { color: var(--muted); text-align: center; }
.switch a { color: var(--link); }
.switch a:hover { color: var(--link-hover); }

.form-error { color: #ff3b30; }
.gate .form-error { text-align: center; }
.form-ok { color: var(--fg); }
.form-error[hidden], .form-ok[hidden] { display: none; }

.site-toasts {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: var(--z-toast);
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.site-toast {
  margin: 0;
  padding: 12px 16px;
  border-radius: 14px;
  background: #16181c;
  border: 1px solid #2f3336;
  color: var(--fg);
  font-size: var(--text-15);
  line-height: var(--lh-20);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}

.site-toast.is-in {
  opacity: 1;
  transform: translateY(0);
}

body.auth {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

body.auth.has-lockdown {
  padding-top: calc(32px + var(--lock-bar));
}

.gate {
  width: 360px;
  max-width: 100%;
}

.gate-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.gate-card h1 {
  margin: 0 0 12px;
  font-size: var(--text-31);
  line-height: var(--lh-36);
}

.gate .btn {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.gate .btn:hover {
  background: #e6e6e6;
  border-color: #e6e6e6;
}

.fail-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  letter-spacing: 0.06em;
}

.fail-copy {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

.fail-copy:last-of-type {
  margin-bottom: 20px;
}

.fail-card .btn {
  text-align: center;
}

body.auth.is-pace:not(.has-wash) {
  background:
    radial-gradient(ellipse 58% 46% at 50% 18%, rgba(110, 84, 24, 0.08) 0%, transparent 64%),
    radial-gradient(ellipse 48% 40% at 50% 92%, rgba(62, 46, 12, 0.08) 0%, transparent 70%),
    #000;
}

.pace-gate {
  width: min(400px, 100%);
}

.pace-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pace-mark {
  position: relative;
  width: 168px;
  height: 168px;
  margin: 0 0 28px;
}

.pace-mark::before {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.28) 0%, transparent 72%);
  filter: blur(10px);
  animation: pace-glow 4.8s ease-in-out infinite;
}

.pace-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 39, 0.12);
  pointer-events: none;
}

.pace-orbit.o1 {
  inset: 0;
  border-top-color: rgba(232, 196, 74, 0.78);
  border-right-color: rgba(201, 162, 39, 0.16);
  animation: pace-spin 14s linear infinite;
}

.pace-orbit.o2 {
  inset: 18px;
  border-top-color: rgba(214, 175, 55, 0.58);
  border-left-color: rgba(184, 146, 46, 0.14);
  animation: pace-spin 20s linear infinite reverse;
}

.pace-orbit.o3 {
  inset: 36px;
  border-top-color: rgba(246, 231, 176, 0.42);
  animation: pace-spin 9s linear infinite;
}

.pace-core {
  position: absolute;
  inset: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 36%, rgba(246, 231, 176, 0.1), rgba(8, 6, 1, 0.62) 70%);
  box-shadow:
    inset 0 1px 0 rgba(246, 231, 176, 0.12),
    0 0 0 1px rgba(201, 162, 39, 0.14);
}

.pace-bar {
  width: 5px;
  height: 22px;
  border-radius: 999px;
  background: #f3e2a0;
  box-shadow: 0 0 18px rgba(201, 162, 39, 0.4);
}

.pace-kicker {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.pace-scene h1 {
  margin: 0 0 28px;
  font-size: 36px;
  line-height: 40px;
  letter-spacing: -0.03em;
}

.pace-panel {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 0 0 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
}

.pace-fact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px 18px 18px;
  background: rgba(10, 10, 10, 0.92);
  text-align: left;
}

.pace-k {
  color: var(--muted);
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pace-v {
  color: var(--fg);
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

.pace-s {
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.pace-retry {
  width: 100%;
  text-align: center;
}

.pace-foot {
  margin-top: 36px;
  text-align: center;
}

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

@keyframes pace-glow {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pace-orbit,
  .pace-mark::before {
    animation: none;
  }
}

.feed { width: 100%; max-width: 600px; }

.feed-head {
  padding: 4px 0 16px;
  border-bottom: 1px solid var(--line);
}

.feed-head h1 { margin: 0; }

.composer {
  padding: 12px 20px 8px;
  margin-inline: -20px;
  border-bottom: 1px solid var(--line);
}

.compose-back {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.65);
  padding: 24px;
}

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

.compose {
  width: 580px;
  max-width: 100%;
  background: var(--bg);
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  padding: 12px 16px 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
}

.compose-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin-bottom: 8px;
}

.compose-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--fg);
}

.compose-close:hover { background: var(--hover); }

.compose-close .icon {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}

.compose-title {
  margin: 0;
  font-size: var(--text-20);
  line-height: 1;
  font-weight: 400;
  text-box: trim-both cap alphabetic;
}

.compose-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.compose-form textarea,
.composer textarea {
  width: 100%;
  min-height: 88px;
  background: transparent;
  border: 0;
  border-radius: 0;
  outline: none;
  resize: none;
  overflow: hidden;
  overflow-wrap: anywhere;
  padding: 8px 0;
  font-size: var(--text-20);
  line-height: var(--lh-24);
  color: var(--fg);
  user-select: text;
  -webkit-user-select: text;
}

.compose-form textarea:focus,
.composer textarea:focus {
  border: 0;
}

.compose-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding-top: 8px;
}

.compose-count {
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  font-variant-numeric: tabular-nums;
}

.compose-count.is-low { color: var(--fg); }

.compose-submit {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
  min-width: 88px;
}

.compose-submit:hover {
  background: #e6e6e6;
  border-color: #e6e6e6;
}

.compose-submit:disabled {
  opacity: 0.4;
  cursor: default;
}

.timeline { width: 100%; }

.feed-more {
  height: 24px;
  list-style: none;
}

.live-new {
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 8px;
  z-index: 5;
  width: max-content;
  max-width: calc(100% - 16px);
  margin: 8px auto 12px;
  padding: 8px 18px;
  border: 1px solid rgba(29, 155, 240, 0.45);
  border-radius: 999px;
  background: rgba(12, 20, 32, 0.92);
  color: #1d9bf0;
  font: inherit;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.live-new:hover { background: #102033; color: #6ec1ff; }

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

.timeline-empty {
  margin: 0;
  padding: 28px 0;
  color: var(--muted);
}

.post {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 8px;
  padding: 10px 20px 12px;
  margin-inline: -20px;
  border-bottom: 1px solid var(--line);
}

.post-context {
  grid-column: 2;
}

.post-context > :last-child {
  margin-bottom: 0;
}

.post:has(> .post-context) > .post-gutter,
.post:has(> .post-context) > .post-main {
  grid-row: 2;
}

.post.is-pinned {
  background: #16080c;
  box-shadow: inset 3px 0 0 #f4212e;
}

.post.is-pinned:hover {
  background: #1c0b10;
}

.post.is-profile-pinned {
  background: #0c0c0c;
}

.post.is-profile-pinned:hover {
  background: #141414;
}

.post.is-inactive {
  filter: none;
  pointer-events: auto;
}

.post.is-inactive .post-gutter,
.post.is-inactive .post-main > :not(.post-byline),
.post.is-inactive .post-byline > :not(.post-drop) {
  opacity: 0.42;
  filter: grayscale(0.35);
}

.post.is-inactive .post-actions,
.post.is-inactive .post-copy,
.post.is-inactive .post-reply,
.post.is-inactive .post-repost,
.post.is-inactive .post-like,
.post.is-inactive .post-views {
  pointer-events: none;
}

.post.is-inactive .post-undelete,
.post.is-inactive .post-admin,
.post.is-inactive .post-menu,
.post.is-inactive .post-drop {
  pointer-events: auto;
  opacity: 1;
  filter: none;
}

.post.is-inactive .post-drop {
  isolation: isolate;
}

.post-pin-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: 16px;
}

.post-pin-label .icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  display: block;
}

.post-pin-label span {
  display: block;
  line-height: 16px;
}

.post.is-pinned .post-pin-label {
  color: #f4212e;
}

.post[data-href] {
  cursor: pointer;
}

.post:hover {
  background: var(--hover);
}

.post-gutter {
  width: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.post-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  overflow: visible;
  line-height: 0;
  align-self: start;
}

.post-avatar .av-box {
  display: block;
  width: 40px;
  height: 40px;
  line-height: 0;
}

.thread-chain {
  --thread-gap: 10px;
}

.thread-chain > :not(:last-child) {
  border-bottom: 0;
}

.thread-chain > .post:not(:last-child) {
  padding-bottom: var(--thread-gap);
}

.thread-chain > .post:not(:first-child) {
  padding-top: var(--thread-gap);
}

.thread-chain > :not(:last-child) .post-gutter {
  align-self: stretch;
}

.thread-chain > :not(:last-child) .post-gutter::after {
  content: "";
  position: absolute;
  top: 42px;
  bottom: calc(var(--thread-gap) * -1);
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: #333;
}

.thread-chain > .post:not(:first-child) .post-gutter::before {
  content: "";
  position: absolute;
  top: calc(var(--thread-gap) * -1);
  height: var(--thread-gap);
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: #333;
}

.thread-chain .post:not(:last-child) .post-parent {
  display: none;
}

.thread-chain.has-parent .post-parent {
  display: none;
}

.reply-thread {
  border-bottom: 1px solid var(--line);
  margin-inline: -20px;
  padding-inline: 20px;
}

.reply-thread .post {
  border-bottom: 0;
}

.reply-thread .thread-chain > :last-child {
  padding-bottom: 12px;
}

.thread-chain .composer.is-reply {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

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

.post-byline {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 20px;
}

.post-handle,
.post-dot,
.post-time {
  color: var(--muted);
  font-size: var(--text-15);
  line-height: var(--lh-20);
  flex: 0 0 auto;
  text-box: trim-both cap alphabetic;
}

.post-time {
  padding: 4px 0;
  margin: -4px 0;
}

.post-drop {
  position: relative;
  margin-left: auto;
  flex: 0 0 auto;
}

.post-drop:has(.post-menu:not([hidden])),
.admin-drop:has(.admin-menu:not([hidden])),
.admin-drop:has(.admin-pass:not([hidden])),
.admin-drop:has(.admin-reset-copy:not([hidden])),
.post:has(.post-menu:not([hidden])),
.profile-head:has(.admin-menu:not([hidden])),
.profile-head:has(.admin-pass:not([hidden])),
.profile-head:has(.admin-reset-copy:not([hidden])) {
  position: relative;
  z-index: 8;
}

.post-admin {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
}

.post-admin:hover { color: var(--fg); background: var(--hover); }

.post-admin .icon {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
}

.post-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 248px;
  background: var(--bg);
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  z-index: var(--z-popup);
}

.post-menu .menu-item {
  white-space: nowrap;
}

.post-menu[hidden] { display: none; }

.post-name {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  min-width: 0;
  max-width: 72%;
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

.post-name > span:not(.name-marks):not(.badge-wrap) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.post-handle:hover,
.post-time:hover { color: var(--fg); }

.post-text {
  margin: 2px 0 0;
  font-size: var(--text-15);
  line-height: var(--lh-20);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: text;
  -webkit-user-select: text;
}

.post-text.is-moderated {
  color: #9a8b6d;
  font-style: italic;
}

.post.is-mod-staff {
  background: #080808;
}

.post.is-mod-staff .post-main {
  opacity: 0.78;
}

.post-text.is-deleted {
  color: var(--muted);
  font-style: italic;
}

.post-text.is-clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  max-height: calc(var(--lh-20) * 3);
}

.post-more {
  display: block;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

.post-more:hover { color: var(--fg); }

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



.post-parent {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

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

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

.post-actions-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.post-actions-left > .post-drop {
  display: inline-flex;
  align-items: center;
  margin-left: 0;
  line-height: 0;
}

.post-reply {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  min-height: 20px;
  line-height: 0;
}

.post-reply .icon,
.post-repost .icon,
.post-like .icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: block;
}

.post-reply:hover { color: var(--fg); }

.post-reply.is-off,
.post-repost.is-off,
.post-like.is-off,
.post-views.is-off,
.post-copy.is-off,
.post-reply:disabled,
.post-repost:disabled,
.post-like:disabled,
.post-copy:disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}

.post-reply.is-off:hover,
.post-repost.is-off:hover,
.post-like.is-off:hover {
  color: var(--muted);
}

.post-repost {
  --repost: #00ba7c;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  min-height: 20px;
  line-height: 0;
}

.post-repost .icon {
  overflow: visible;
  translate: 0 -0.5px;
}

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

.post-repost.is-on { color: var(--repost); }

.post-repost-n {
  font-size: var(--text-13);
  line-height: 1;
  text-box: trim-both cap alphabetic;
  min-width: 0.8em;
}

.post-repost-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 2px;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.post-repost-label .icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.post-repost-who { font-weight: 700; }

.post-repost-who:hover { color: var(--fg); }

.quote-embed {
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
}

.quote-embed:hover { background: var(--hover); }

.quote-embed.is-compose {
  cursor: default;
  margin: 0 0 8px 52px;
}

.quote-embed.is-compose:hover { background: transparent; }

.quote-byline {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.quote-avatar {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  font-size: 11px;
}

.quote-byline .post-name { max-width: 40%; }

.quote-text {
  margin: 4px 0 0;
  font-size: var(--text-15);
  line-height: var(--lh-20);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.quote-text.is-moderated {
  color: #9a8b6d;
  font-style: italic;
}

.quote-text.is-deleted {
  color: var(--muted);
  font-style: italic;
}

.notice-kind.is-repost { color: #00ba7c; }

.notice-kind.is-quote { color: #1d9bf0; }

.post-reply-n {
  font-size: var(--text-13);
  line-height: 1;
  text-box: trim-both cap alphabetic;
  min-width: 0.8em;
}

.composer.is-reply {
  margin-top: 8px;
  border-top: 1px solid var(--line);
}

.post-like {
  --like: #ff375f;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  min-height: 20px;
  overflow: visible;
  line-height: 0;
}

.post-like .icon {
  overflow: visible;
  transform-origin: 50% 55%;
}

.post-like .icon path {
  transition: fill 160ms var(--ease), stroke 160ms var(--ease);
}

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

.post-like.is-on {
  color: var(--like);
}

.post-like.is-on .icon path {
  fill: currentColor;
  stroke: currentColor;
}

.post-like.is-pop .icon {
  animation: like-pop 460ms cubic-bezier(0.18, 1.4, 0.32, 1) both;
}

.post-like.is-pop::before,
.post-like.is-pop::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 50%;
  pointer-events: none;
}

.post-like.is-pop::after {
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  border: 1.5px solid var(--like);
  animation: like-ring 420ms ease-out both;
}

.post-like.is-pop::before {
  width: 3px;
  height: 3px;
  margin: -1.5px 0 0 -1.5px;
  border-radius: 50%;
  background: var(--like);
  box-shadow:
    11px -7px 0 0 #ff7a96,
    -10px -8px 0 0 var(--like),
    12px 7px 0 0 var(--like),
    -11px 8px 0 0 #ff7a96,
    1px -13px 0 0 #ffb0c0,
    0 13px 0 0 #ff7a96;
  animation: like-sparks 500ms ease-out both;
}

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

@keyframes like-ring {
  0% { transform: scale(0.35); opacity: 0.85; }
  100% { transform: scale(2.15); opacity: 0; }
}

@keyframes like-sparks {
  0% { transform: scale(0.15); opacity: 1; }
  100% { transform: scale(1.55); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .post-like.is-pop .icon,
  .post-like.is-pop::before,
  .post-like.is-pop::after { animation: none; }
}

.post-copy {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  min-height: 20px;
  min-width: 20px;
  margin-left: auto;
  overflow: visible;
}

.post-copy .icon {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}

.post-copy .icon-check { display: none; }

.post-copy:hover { color: var(--fg); }

.post-copy.is-on { color: #1d9bf0; }

.post-copy.is-on .icon-copy { display: none; }

.post-copy.is-on .icon-check {
  display: block;
  animation: copy-pop 420ms cubic-bezier(0.18, 1.4, 0.32, 1) both;
}

.post-copy.is-on::after {
  content: "Copied.";
  position: absolute;
  right: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(50%);
  padding: 6px 10px;
  border-radius: 10px;
  background: #161616;
  border: 1px solid #2a2a2a;
  color: var(--fg);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  white-space: nowrap;
  pointer-events: none;
  z-index: var(--z-popup);
  animation: copy-tip 1.5s var(--ease) both;
}

@keyframes copy-pop {
  0% { transform: scale(0.55); }
  45% { transform: scale(1.28); }
  100% { transform: scale(1); }
}

@keyframes copy-tip {
  0% { opacity: 0; transform: translateX(50%) translateY(6px); }
  14% { opacity: 1; transform: translateX(50%) translateY(0); }
  72% { opacity: 1; transform: translateX(50%) translateY(0); }
  100% { opacity: 0; transform: translateX(50%) translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .post-copy.is-on .icon-check,
  .post-copy.is-on::after { animation: none; }
}

.post-like-n {
  font-size: var(--text-13);
  line-height: 1;
  text-box: trim-both cap alphabetic;
  min-width: 0.8em;
}

.post-views {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  min-height: 20px;
  line-height: 0;
}

.post-views .icon {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}

.post-views:hover { color: var(--fg); }

.post-views-n {
  font-size: var(--text-13);
  line-height: 1;
  text-box: trim-both cap alphabetic;
  min-width: 0.8em;
}

body.has-engage {
  overflow: hidden;
}

.engage-back {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.65);
  padding: 24px;
}

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

.engage {
  width: 600px;
  max-width: 100%;
  height: min(720px, calc(100dvh - 48px));
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.engage .compose-top {
  padding: 8px 12px 4px;
  margin: 0;
  min-height: 52px;
}

.engage-tabs {
  display: flex;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.engage-tab {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: var(--text-15);
  line-height: 1;
}

.engage-tab:hover {
  background: var(--hover);
  color: var(--fg);
}

.engage-tab.is-on { color: var(--fg); }

.engage-tab span {
  padding: 12px 4px 10px;
  text-box: trim-both cap alphabetic;
  white-space: nowrap;
}

.engage-tab .profile-tab-n {
  padding: 0;
}

.engage-tab.is-on span {
  box-shadow: inset 0 -2px 0 var(--fg);
}

.engage-tab.is-on .profile-tab-n {
  box-shadow: none;
}

.engage-filter {
  margin: 10px 16px 12px;
  flex: none;
  width: auto;
  height: 42px;
  border-radius: 999px;
}

.engage-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #3a3a3c transparent;
}

.engage-list.people,
.engage-list.people::before {
  margin: 0;
}

.engage-list.people::before {
  display: none;
}

.engage-list .person[data-href] {
  margin-inline: 0;
  padding-inline: 16px;
}

.engage-list .timeline-empty {
  padding: 36px 16px;
  text-align: center;
}

@media (max-width: 640px) {
  .engage-back {
    padding: 0;
    place-items: stretch;
  }

  .engage {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border: 0;
  }
}

.profile-tabs {
  display: flex;
  margin: 4px -20px 0;
  width: auto;
  border-bottom: 1px solid var(--line);
}

.profile-tab {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: var(--text-15);
  line-height: 1;
}

.profile-tab:hover {
  background: var(--hover);
  color: var(--fg);
}

.profile-tab.is-on { color: var(--fg); }

.profile-tab span {
  padding: 12px 4px 10px;
  text-box: trim-both cap alphabetic;
  white-space: nowrap;
}

.profile-tab-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 12px 4px 10px;
}

.profile-tab-label span {
  padding: 0;
}

.profile-tab-label .icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.profile-tab.is-on span,
.profile-tab.is-on .profile-tab-label {
  box-shadow: inset 0 -2px 0 var(--fg);
}

.profile-tab-n {
  padding: 0;
  color: #4a4a4a;
}

.profile-tab:hover .profile-tab-n,
.profile-tab.is-on .profile-tab-n {
  color: #4a4a4a;
}

.profile-tab.is-on .profile-tab-n {
  box-shadow: none;
}

.profile-tab.is-on .profile-tab-label span {
  box-shadow: none;
}

.login-slots {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-slot strong {
  display: block;
  color: var(--fg);
  font-weight: 700;
}

.login-slot em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: var(--text-13);
}

.legal-agree {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.legal-agree .check {
  align-items: flex-start;
}

.legal-agree .check a {
  color: var(--link);
}

.legal-agree .check a:hover {
  color: var(--link-hover);
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 6px 8px;
  border-radius: 12px;
  color: var(--muted);
  font-size: var(--text-15);
  line-height: var(--lh-20);
  cursor: pointer;
}

.check:hover {
  background: var(--hover);
  color: var(--fg);
}

.check input {
  appearance: none;
  width: 20px;
  height: 20px;
  margin: 0;
  flex: 0 0 20px;
  display: grid;
  place-items: center;
  border: 1.6px solid #4a4a4a;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.check input:checked {
  background: var(--fg);
  border-color: var(--fg);
}

.check input:checked::after {
  content: "";
  width: 5px;
  height: 9px;
  border: solid var(--bg);
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(45deg) translate(-0.5px, -1px);
}

.check input:focus-visible {
  outline: 1px solid var(--fg);
  outline-offset: 3px;
}

.choice-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 4px 0 0;
}

.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--fg);
  font-size: var(--text-15);
  line-height: var(--lh-20);
  cursor: pointer;
}

.choice:hover {
  background: var(--hover);
}

.choice:has(input:checked) {
  background: #111;
}

.choice input {
  appearance: none;
  width: 20px;
  height: 20px;
  margin: 0;
  flex: 0 0 20px;
  display: grid;
  place-items: center;
  border: 1.6px solid #4a4a4a;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.choice input:checked {
  border-color: var(--fg);
}

.choice input:checked::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fg);
}

.choice input:focus-visible {
  outline: 1px solid var(--fg);
  outline-offset: 3px;
}

.toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 32px;
  color: var(--fg);
  font-size: var(--text-15);
  line-height: var(--lh-20);
  cursor: pointer;
}

.toggle-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.toggle-note {
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.dash .toggle {
  margin: 0 -20px;
  padding: 14px 20px;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
}

.dash .toggle:first-child {
  border-top: 1px solid var(--line);
}

.toggle-ctrl {
  position: relative;
  flex: 0 0 42px;
  width: 42px;
  height: 24px;
}

.toggle-ctrl input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.toggle-ui {
  display: block;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #2a2a2a;
  pointer-events: none;
  transition: background-color 200ms var(--ease);
}

.toggle-ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--fg);
  transform: translateX(0);
  transition: transform 200ms var(--ease), background-color 200ms var(--ease);
}

.toggle-ctrl input:checked + .toggle-ui {
  background: var(--fg);
}

.toggle-ctrl input:checked + .toggle-ui::after {
  transform: translateX(18px);
  background: var(--bg);
}

.toggle-ctrl input:focus-visible + .toggle-ui {
  outline: 1px solid var(--fg);
  outline-offset: 3px;
}

.profile .timeline { margin-top: 0; }

.search {
  position: relative;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 14px;
  background: #16181c;
  border: 1px solid transparent;
  border-radius: 999px;
}

.search-box:focus-within,
.search-box.is-on {
  background: var(--bg);
  border-color: #3a3a3c;
}

.search-icon {
  display: grid;
  place-items: center;
  color: var(--muted);
  flex: 0 0 18px;
}

.search-icon .icon {
  width: 18px;
  height: 18px;
}

.search-box:focus-within .search-icon {
  color: var(--link);
}

.search-box input {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  padding: 0;
  font-size: var(--text-15);
  line-height: var(--lh-20);
  user-select: text;
  -webkit-user-select: text;
}

.search-box input[type="search"]::-webkit-search-decoration,
.search-box input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.search-clear {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--link);
  color: var(--bg);
  flex: 0 0 20px;
}

.search-clear .icon {
  width: 12px;
  height: 12px;
}

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

.search-clear:hover { background: var(--link-hover); }

.search-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: var(--bg);
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  max-height: min(72vh, 440px);
  overflow: auto;
  z-index: var(--z-popup);
}

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

.search-hit,
.search-do,
.search-recent-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  text-align: left;
  color: inherit;
}

.search-hit:hover,
.search-do:hover,
.search-recent-item:hover,
.search-hit.is-on,
.search-do.is-on,
.search-recent-item.is-on {
  background: var(--hover);
}

.search-hit .avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}

.search-hit-id {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.search-hit-name {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  min-width: 0;
}

.search-hit-name > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.search-hit-handle {
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.search-hit-why {
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.search-hit.is-off,
.search-hit:disabled {
  opacity: 1;
  color: var(--muted);
  cursor: default;
  pointer-events: none;
}

.search-hit.is-off:hover,
.search-hit:disabled:hover {
  background: none;
}

.handle-pick {
  position: relative;
  width: 100%;
  min-width: 0;
}

.handle-pick > input {
  width: 100%;
  box-sizing: border-box;
}

.handle-pick .handle-pick-panel {
  z-index: var(--z-popup);
  color: var(--fg);
  background: var(--bg);
  border: 1px solid #2a2a2a;
  border-radius: 16px;
}

.handle-pick-panel .search-hit {
  color: var(--fg);
}

.handle-pick-panel .search-hit.is-off {
  color: var(--muted);
}

.search-do .search-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  background: #16181c;
}

.search-do-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 6px;
}

.search-recent-title {
  font-size: var(--text-15);
}

.search-recent-clear {
  color: var(--link);
  font-size: var(--text-13);
}

.search-recent-clear:hover { color: var(--link-hover); }

.search-recent-q {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-recent-forget {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #2f3336;
  color: var(--fg);
}

.search-recent-forget:hover {
  background: #3d4247;
}

.search-recent-forget .icon {
  width: 12px;
  height: 12px;
}

.search-empty {
  margin: 0;
  padding: 16px 14px;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.search-page-box {
  display: none;
  margin: 0 0 12px;
}

.search-page.is-empty .search-page-box {
  display: block;
}

.search-hint {
  padding: 20px 0 8px;
}

.search-hint h1 {
  margin: 0 0 8px;
}

.search-hint p {
  margin: 0;
  color: var(--muted);
}

.search-sec {
  margin: 8px 0 4px;
}

.search-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0 6px;
}

.search-sec-title {
  margin: 0;
  font-size: var(--text-20);
  line-height: var(--lh-24);
  font-weight: 400;
}

.search-sec-more {
  color: var(--link);
  font-size: var(--text-13);
}

.search-sec-more:hover { color: var(--link-hover); }

.search-page .timeline {
  margin-top: 0;
}

@media (max-width: 900px) {
  .aside { display: none; }
  .search-page-box { display: block; }
  .site-foot-mobile { display: block; }
  .stage:has(.messages) .site-foot-mobile,
  .stage:has(.notes) .site-foot-mobile,
  .stage:has(.founder-term) .site-foot-mobile,
  .stage.is-founder-term .site-foot-mobile,
  .stage:has(.msg-lock) .site-foot-mobile { display: none; }
}

@media (max-width: 800px) {
  body.app { justify-content: flex-start; }
  .rail { position: fixed; }
  .stage {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    padding: 28px 22px 64px;
    margin-left: var(--rail);
    transition: margin-left 120ms ease-out;
  }
  .aside { display: none; }
  .dash-stats,
  .metrics-glance,
  .metrics-grid,
  .node-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.messages {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.msg-inbox {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

.msg-inbox-head {
  position: relative;
  z-index: 12;
  padding: 16px 16px 8px;
}

.msg-inbox-head h1 {
  margin: 0 0 12px;
  font-size: var(--text-20);
  font-weight: 400;
}

.msg-search {
  position: relative;
  z-index: 12;
}

.msg-search .search-panel {
  z-index: var(--z-popup);
  max-height: min(68vh, 520px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.msg-search .search-recent-head,
.msg-search .search-sec-head {
  padding: 12px 14px 6px;
}

.msg-find { margin: 0; }

button.search-hit,
button.search-do,
button.search-recent-item {
  appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.msg-hit-snip {
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.search-hit mark,
.msg-hit-snip mark {
  background: rgba(29, 155, 240, 0.28);
  color: inherit;
  border-radius: 3px;
  padding: 0 1px;
}

.msg-bubble.is-hit {
  outline: 2px solid #fff;
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.5);
  animation: msg-hit-pulse 1.6s ease;
}

@keyframes msg-hit-pulse {
  0% { box-shadow: 0 0 0 5px rgba(10, 132, 255, 0.55); }
  100% { box-shadow: 0 0 0 0 rgba(10, 132, 255, 0); }
}

.msg-inbox > .form-error {
  margin: 0 16px 8px;
}

.msg-inbox > .timeline-empty {
  padding: 28px 16px;
}

.msg-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #3a3a3c transparent;
}

.msg-list::-webkit-scrollbar,
.msg-scroll::-webkit-scrollbar {
  width: 8px;
}

.msg-list::-webkit-scrollbar-thumb,
.msg-scroll::-webkit-scrollbar-thumb {
  background: #3a3a3c;
  border-radius: 999px;
}

.msg-list::-webkit-scrollbar-track,
.msg-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.msg-list:not(:empty)::before {
  content: "";
  display: block;
  border-top: 1px solid var(--line);
}

.msg-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 12px 16px;
}

.msg-row .nav-count {
  margin-left: 0;
}

.msg-row:hover,
.msg-row.is-on { background: var(--hover); }

.msg-row-main {
  min-width: 0;
  overflow: hidden;
}

.msg-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.msg-row-preview {
  display: block;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.msg-row-preview.is-deleted {
  font-style: italic;
}

.msg-thread {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

.msg-thread-empty {
  margin: auto;
  color: var(--muted);
  padding: 32px 28px;
  text-align: center;
  max-width: 360px;
}

.msg-thread-empty h2 {
  margin: 0 0 8px;
  color: var(--fg);
  font-size: var(--text-31);
  line-height: var(--lh-36);
  font-weight: 400;
}

.msg-thread-empty p {
  margin: 0;
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

.msg-thread-on {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.msg-thread-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
}

.msg-thread-head {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 60px;
  min-height: 60px;
  max-height: 60px;
  flex: 0 0 60px;
  padding: 0 8px 0 12px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
}

.msg-status-line {
  margin: 0;
  padding: 6px 8px 8px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.msg-status-line[hidden] {
  display: none;
}

.msg-thread-on:has(.msg-status-line:not([hidden])) .msg-scroll {
  padding-top: 100px;
}

.msg-back,
.msg-more {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  border-radius: 50%;
  color: var(--fg);
  cursor: pointer;
}

.msg-back { display: none; }

.msg-more { color: var(--muted); }

.msg-back:hover,
.msg-more:hover { background: var(--hover); color: var(--fg); }

.msg-back .icon,
.msg-more .icon {
  width: 18px;
  height: 18px;
}

.msg-head-who {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
  height: 44px;
  padding: 0 8px;
  border-radius: 12px;
}

.msg-head-who:hover { background: var(--hover); }

.msg-head-photo {
  flex: 0 0 32px;
}

.msg-head-photo .avatar,
.msg-head-photo img,
.msg-head-photo span {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  font-size: 13px;
}

.msg-head-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  min-width: 0;
  overflow: hidden;
}

.msg-head-name {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  max-width: 100%;
  height: 20px;
  overflow: hidden;
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

.msg-head-name > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.msg-head-name .badge-mute,
.online-name .badge-mute,
.profile-name .badge-mute {
  color: #fff;
}

.msg-head-name .badge-block,
.online-name .badge-block,
.profile-name .badge-block {
  color: #f4212e;
}

.msg-head-handle {
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  height: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.msg-scroll {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #3a3a3c transparent;
  padding: 72px 8px 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.msg-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  padding: 32px 16px 28px;
  margin: 0 0 4px;
  border-bottom: 1px solid var(--line);
  align-self: stretch;
}

.msg-intro:hover { background: transparent; }

.msg-intro-photo {
  width: 64px;
  height: 64px;
  margin-bottom: 8px;
}

.msg-intro-photo .avatar,
.msg-intro-photo img,
.msg-intro-photo span {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 24px;
}

.msg-intro-photo .avatar.is-verified-business,
.msg-intro-photo img.is-verified-business,
.msg-intro-photo span.is-verified-business {
  border-radius: 12px;
}

.msg-intro-name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: var(--text-17);
  line-height: var(--lh-20);
  font-weight: 400;
  max-width: 100%;
}

.msg-intro-handle,
.msg-intro-joined {
  color: var(--muted);
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

.msg-intro-bio {
  margin: 8px 0 0;
  color: var(--fg);
  font-size: var(--text-15);
  line-height: var(--lh-20);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 420px;
}

.msg-stamp {
  align-self: center;
  margin: 14px 0 8px;
  padding: 0 8px;
  color: #8e8e93;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.01em;
  text-align: center;
  max-width: 92%;
}

.msg-bubble,
.msg-row,
.msg-head,
.msg-head-who {
  -webkit-touch-callout: none;
}

.msg-line {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  justify-content: flex-start;
  margin: 1px 0;
  overflow: visible;
}

.msg-line.is-in {
  padding-left: 10px;
}

.msg-line.is-out {
  justify-content: flex-end;
  padding-right: 10px;
}

.msg-read {
  align-self: flex-end;
  margin: 3px 18px 8px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
}

.msg-line.is-center {
  justify-content: center;
}

.msg-line:has(.is-start),
.msg-line:has(.is-solo) {
  margin-top: 8px;
}

.msg-stamp + .msg-line {
  margin-top: 0;
}

.msg-bubble {
  position: relative;
  box-sizing: border-box;
  flex: 0 1 auto;
  width: fit-content;
  max-width: min(76%, 420px);
  min-width: 0;
  margin: 0;
  padding: 7px 13px;
  border-radius: 18px;
  background: #3a3a3c;
  color: #fff;
  font-size: 16px;
  line-height: 21px;
  overflow: visible;
  isolation: isolate;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  user-select: text;
  -webkit-user-select: text;
}

.msg-bubble.is-mine {
  background: #0a84ff;
  color: #fff;
}

.msg-bubble:not(.is-mine).is-start {
  border-bottom-left-radius: 5px;
}

.msg-bubble:not(.is-mine).is-mid {
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
}

.msg-bubble:not(.is-mine).is-end {
  border-top-left-radius: 5px;
}

.msg-bubble.is-mine.is-start {
  border-bottom-right-radius: 5px;
}

.msg-bubble.is-mine.is-mid {
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}

.msg-bubble.is-mine.is-end {
  border-top-right-radius: 5px;
}

.msg-bubble.is-end::after,
.msg-bubble.is-solo::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 16px;
  height: 16px;
  background: inherit;
  pointer-events: none;
}

.msg-bubble.is-end::before,
.msg-bubble.is-solo::before {
  content: "";
  position: absolute;
  bottom: 0;
  width: 10px;
  height: 21px;
  background: var(--bg);
  pointer-events: none;
  z-index: 1;
}

.msg-bubble:not(.is-mine).is-end::after,
.msg-bubble:not(.is-mine).is-solo::after {
  left: -6px;
  border-bottom-right-radius: 14px;
}

.msg-bubble:not(.is-mine).is-end::before,
.msg-bubble:not(.is-mine).is-solo::before {
  left: -10px;
  border-bottom-right-radius: 10px;
}

.msg-bubble.is-mine.is-end::after,
.msg-bubble.is-mine.is-solo::after {
  right: -6px;
  border-bottom-left-radius: 14px;
}

.msg-bubble.is-mine.is-end::before,
.msg-bubble.is-mine.is-solo::before {
  right: -10px;
  border-bottom-left-radius: 10px;
}

.msg-text {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-variant-emoji: emoji;
}

.msg-quote {
  margin: 0 0 5px;
  padding: 5px 8px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 18px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-height: 58px;
  overflow: hidden;
}

.msg-line.has-reacts {
  position: relative;
  z-index: 2;
  margin-top: 16px;
}

.msg-note {
  margin: 0;
  padding: 8px 16px 10px;
  color: var(--muted);
  text-align: center;
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.msg-note[hidden] { display: none; }

.ctx-menu {
  position: fixed;
  min-width: 220px;
  background: var(--bg);
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  z-index: var(--z-popup);
}

.ctx-menu .menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 0;
  background: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: var(--text-15);
  line-height: var(--lh-20);
  color: #fff;
}

.ctx-menu .menu-item:hover {
  background: var(--hover);
}

.ctx-menu .menu-item.is-danger {
  color: #ff3b30;
}

.ctx-menu .ctx-reacts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin: 2px 2px 8px;
  padding: 6px 8px;
  background: #1c1c1e;
  border: 1px solid #2c2c2e;
  border-radius: 999px;
}

.ctx-menu .ctx-react {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  font-size: 20px;
  line-height: 36px;
  text-align: center;
  font-variant-emoji: emoji;
  transition: transform 140ms var(--ease), background 140ms var(--ease);
}

.ctx-menu .ctx-react:hover {
  background: #3a3a3c;
  transform: scale(1.18);
}

.msg-reacts {
  position: absolute;
  top: -15px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  margin: 0;
  z-index: 4;
  pointer-events: none;
}

.msg-bubble:not(.is-mine) .msg-reacts {
  right: 0;
  transform: translateX(36%);
}

.msg-bubble.is-mine .msg-reacts {
  left: 0;
  transform: translateX(-36%);
}

.msg-react-chip {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  min-width: 28px;
  height: 28px;
  border: 2px solid var(--bg);
  border-radius: 999px;
  padding: 0 5px;
  font-size: 16px;
  line-height: 1;
  background: #3a3a3c;
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  font-variant-emoji: emoji;
}

.msg-bubble.is-mine .msg-react-chip {
  background: #2c2c2e;
}

.msg-react-chip + .msg-react-chip {
  margin-left: -7px;
}

.msg-react-chip.is-mine {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22), 0 1px 2px rgba(0, 0, 0, 0.45);
}

.msg-react-chip .emoji {
  width: 16px;
  height: 16px;
}

.msg-bubble.is-fail {
  color: rgba(255, 255, 255, 0.72);
  font-style: italic;
}

.msg-bubble.is-deleted,
.msg-bubble.is-deleted.is-mine {
  max-width: min(76%, 420px);
  margin: 2px 0;
  padding: 2px 4px;
  background: transparent;
  color: #8e8e93;
  font-size: 13px;
  line-height: 16px;
  font-style: italic;
  text-align: start;
  border-radius: 0;
}

.msg-bubble.is-deleted.is-mine {
  text-align: end;
}

.msg-bubble.is-deleted::before,
.msg-bubble.is-deleted::after {
  display: none;
}

.msg-line:has(.is-deleted) {
  margin: 6px 0;
}

.msg-thread-on > .form-error {
  display: none;
}

.msg-typing {
  flex: 0 0 auto;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 4px 16px 0;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  background: transparent;
}

.msg-typing[hidden] {
  display: none;
}

.msg-compose {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 8px 12px 12px;
  border-top: 0;
  background: var(--bg);
  box-shadow: 0 -18px 18px var(--bg);
}

.msg-compose textarea {
  flex: 1;
  min-width: 0;
  resize: none;
  margin: 0;
  min-height: 36px;
  height: 36px;
  max-height: 120px;
  padding: 7px 14px;
  border: 1px solid #3a3a3c;
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 18px;
  background: transparent;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 20px;
  outline: none;
  font-variant-emoji: emoji;
}

.msg-compose textarea:focus {
  border-color: #636366;
  outline: none;
}

.msg-send {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  align-self: flex-end;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #3a3a3c;
  color: #fff;
  display: grid;
  place-items: center;
  opacity: 0.4;
  pointer-events: none;
}

.msg-send.is-ready {
  background: #0a84ff;
  opacity: 1;
  pointer-events: auto;
}

.msg-send:hover {
  background: #0a84ff;
}

.msg-send svg {
  width: 15px;
  height: 15px;
  display: block;
}

.msg-compose[hidden] { display: none; }

.msg-lock {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  display: grid;
  place-items: center;
  z-index: 4;
}

.msg-lock[hidden] { display: none; }

.msg-lock-card {
  width: min(360px, calc(100% - 32px));
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0b0b0b;
}

.msg-lock-card h2 {
  margin: 0 0 8px;
  font-size: var(--text-20);
  font-weight: 400;
}

.msg-lock-card .btn {
  width: 100%;
}

.msg-lock-card .field-note { margin-bottom: 4px; }

.pin-pad {
  position: relative;
  margin: 22px 0 16px;
  min-height: 40px;
}

.pin-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  pointer-events: none;
}

.pin-dot {
  width: 28px;
  height: 28px;
  border: 2.5px solid #6e767d;
  border-radius: 50%;
  box-sizing: border-box;
}

.pin-dot.is-on {
  background: var(--fg);
  border-color: var(--fg);
}

.pin-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  font-size: 16px;
}

.btn-text {
  display: block;
  margin-top: 14px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--link);
  cursor: pointer;
  font-size: var(--text-15);
  line-height: var(--lh-20);
  text-align: center;
  width: 100%;
}

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

.btn-text[hidden] { display: none; }

.invite-mint .invite-form {
  margin-top: 4px;
}

.invite-form,
.invite-edit {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 560px;
}

.invite-edit {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.invite-edit[hidden] { display: none; }

.invite-keys {
  gap: 0;
}

.invite-keys .search-box {
  margin: 0 0 28px;
}

.invite-keys > .settings-sub {
  margin: 0 0 14px;
}

.invite-keys > .invite-list,
.invite-keys > .timeline-empty {
  margin: 0 0 32px;
}

.invite-keys > .invite-list + .settings-sub,
.invite-keys > .timeline-empty + .settings-sub {
  margin-top: 8px;
}

.invite-limits {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px 18px;
}

.invite-limit {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.invite-form > .form-error,
.invite-form > .btn,
.invite-edit > .invite-actions {
  align-self: flex-start;
}

.invite-form .invite-unlimited,
.invite-edit .invite-unlimited {
  min-height: 36px;
}

.invite-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.invite-card {
  position: relative;
  padding: 16px 16px 14px;
  border: 1px solid #3a2d18;
  background:
    linear-gradient(180deg, rgba(201, 137, 58, 0.1), transparent 46%),
    repeating-linear-gradient(
      180deg,
      transparent,
      transparent 3px,
      rgba(255, 255, 255, 0.015) 3px,
      rgba(255, 255, 255, 0.015) 4px
    ),
    #090909;
  box-shadow: inset 0 0 0 1px #16110a;
  overflow: hidden;
}

.invite-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #c9893a;
}

.invite-label {
  margin: 0 0 4px;
  color: #8a7048;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
  line-height: 14px;
}

.invite-code {
  margin: 0 88px 10px 0;
  color: #e2b56a;
  font-size: 20px;
  line-height: 26px;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
  user-select: all;
  -webkit-user-select: all;
}

.invite-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 0 0 8px;
  color: #8f8168;
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.invite-note {
  margin: 0 0 10px;
  color: var(--fg);
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

.invite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.invite-grant-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.invite-grant .choice,
.invite-kind .choice {
  min-height: 40px;
  padding: 6px 10px;
}

.invite-grant .field-note {
  margin-top: 8px;
}

.invite-who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 0;
  padding: 10px 0 2px;
}

.invite-who[hidden] {
  display: none;
}

.invite-who-av {
  flex: none;
}

.invite-who-id {
  min-width: 0;
}

.invite-who-name {
  margin: 0;
  color: var(--fg);
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

.invite-who-handle {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.invite-kind .invite-affiliate {
  margin-top: 10px;
}

.invite-kind .invite-affiliate[hidden] {
  display: none !important;
}

#rates-form {
  gap: 16px;
}

.rate-sheet {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 20px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(8, 8, 8, 0.72);
}

.rate-sheet-head h2 {
  margin: 0 0 6px;
  font-size: var(--text-20);
  line-height: var(--lh-24);
  font-weight: 400;
}

.rate-sheet-head p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: 18px;
}

.rate-k {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rate-window {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rate-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rate-pick {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.rate-pick input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.rate-pick span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  background: #0a0a0a;
  transition: color 160ms var(--ease), background 160ms var(--ease), border-color 160ms var(--ease);
}

.rate-pick:hover span {
  color: var(--fg);
  border-color: #3f3f3f;
}

.rate-pick:has(input:checked) span {
  color: var(--bg);
  background: var(--fg);
  border-color: var(--fg);
}

.rate-pick:has(input:focus-visible) span {
  outline: 1px solid var(--fg);
  outline-offset: 3px;
}

.rate-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rate-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 12px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  background: #050505;
}

.rate-tile input[type="number"] {
  width: 100%;
  height: 40px;
  padding: 8px 10px;
  font-size: var(--text-20);
  line-height: var(--lh-24);
}

.rate-qty {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.rate-qty input[type="number"] {
  width: 140px;
  max-width: 100%;
  height: 48px;
  padding: 10px 12px;
  font-size: var(--text-20);
  line-height: var(--lh-24);
}

.rate-qty-field {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

.rate-hint {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.rate-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 0 0;
}

.rate-foot .btn {
  width: 100%;
}

.rate-reset {
  margin-top: 28px;
  border-color: #5a3e14;
  background:
    linear-gradient(180deg, rgba(212, 162, 74, 0.08), rgba(8, 8, 8, 0.78));
  box-shadow: inset 0 1px 0 rgba(246, 231, 176, 0.12);
}

.rate-reset-btn {
  align-self: flex-start;
  min-height: 40px;
  padding: 0 16px;
  border-color: #8a6a22;
  color: #f3e2a0;
  background: #14100a;
}

.rate-reset-btn:hover {
  border-color: #d4a24a;
  color: #fff6d8;
  background: #1c160c;
}

@media (max-width: 520px) {
  .rate-tiles {
    grid-template-columns: 1fr;
  }
}

.staff-affiliate-form {
  flex-wrap: wrap;
}

.invite-card:target {
  border-color: #c9893a;
}

.invite-card.is-dead {
  border-color: #2a2218;
  opacity: 0.78;
}

.invite-card.is-dead .invite-code {
  color: #7a6a4e;
}

.invite-card.is-dead::after {
  content: "EXPIRED";
  position: absolute;
  top: 14px;
  right: 14px;
  color: #8a3a3a;
  letter-spacing: 0.2em;
  font-size: 11px;
  line-height: 1;
  border: 1px solid #8a3a3a;
  padding: 4px 7px;
  transform: rotate(-8deg);
  pointer-events: none;
}

.invite-input {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.gate:has(.invite-pass) {
  width: 400px;
}

.invite-pass-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.invite-pass {
  margin: 0;
}

.invite-pass .invite-code {
  margin-right: 0;
  margin-bottom: 0;
  font-size: 18px;
  letter-spacing: 0.07em;
}

.session-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.session-card {
  padding: 14px 14px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #080808;
}

.session-card.is-current {
  border-color: #2a2a2a;
  background:
    linear-gradient(180deg, rgba(29, 155, 240, 0.08), transparent 52%),
    #080808;
}

.session-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.session-kind {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #141414;
  color: var(--fg);
}

.session-kind .icon {
  width: 20px;
  height: 20px;
}

.session-title {
  min-width: 0;
  flex: 1 1 auto;
}

.session-name {
  margin: 0;
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

.session-status {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.session-status.is-live {
  color: #4ade80;
}

.session-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.session-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #1d2a38;
  color: #8ecdff;
  font-size: 12px;
  line-height: 1;
}

.session-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 14px 0 0;
}

.session-facts div {
  min-width: 0;
}

.session-facts dt {
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
}

.session-facts dd {
  margin: 2px 0 0;
  font-size: var(--text-15);
  line-height: var(--lh-20);
  overflow-wrap: anywhere;
}

.session-mono {
  font-variant-numeric: tabular-nums;
}

body.has-session-sheet {
  overflow: hidden;
}

.session-back {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  display: grid;
  place-items: start center;
  background: rgba(0, 0, 0, 0.65);
  padding: 64px 20px 24px;
  overflow: auto;
}

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

.session-sheet.panel.settings {
  width: var(--stage);
  max-width: 100%;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  padding: 36px 24px 28px;
}

.session-sheet-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.session-sheet-close {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--muted);
}

.session-sheet-close:hover {
  background: var(--hover);
  color: var(--fg);
}

.session-sheet .settings-sub {
  margin: 0;
}

.session-sheet-list {
  min-height: 0;
  margin-top: 18px;
}

.session-sheet-list .session-list {
  margin: 4px 0 0;
}

.session-sheet-list .timeline-empty {
  padding: 12px 0;
}

@media (max-width: 640px) {
  .session-back {
    padding: 0;
    place-items: stretch;
  }

  .session-sheet {
    width: 100%;
    min-height: 100dvh;
    border-radius: 0;
    border: 0;
    padding: 16px 16px 28px;
  }
}

#session-page .muted-actions {
  margin-top: 4px;
}

@media (max-width: 640px) {
  .session-head {
    flex-wrap: wrap;
  }

  .session-tools {
    width: 100%;
    justify-content: flex-start;
  }

  .session-facts {
    grid-template-columns: 1fr;
  }

  .invite-limits {
    grid-template-columns: 1fr;
  }

  .invite-code {
    font-size: 18px;
    letter-spacing: 0.08em;
  }
}

@media (max-width: 800px) {
  .stage.is-wide,
  body.has-wide-stage .stage,
  .stage:has(.messages),
  .stage:has(.notes),
  .stage:has(.founder-term),
  .stage.is-founder-term {
    padding: 0;
    height: calc(100dvh - var(--lock-bar));
    width: auto;
    max-width: none;
  }
  .stage:has(.founder-term),
  .stage.is-founder-term,
  body.has-wide-stage .stage.is-founder-term {
    padding: 12px 16px;
  }
  .messages { grid-template-columns: 1fr; }
  .messages.is-thread .msg-inbox { display: none; }
  .messages:not(.is-thread) .msg-thread { display: none; }
  .msg-back { display: grid; }
  body.has-sub-stage .stage,
  .stage:has(.sub-page) {
    width: auto;
    max-width: none;
    flex: 1 1 auto;
    height: auto;
    padding: 28px 22px 64px;
  }
}

.status-hero {
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0a0a0a;
}

.status-hero.is-ok {
  border-color: #1d3a28;
  background: linear-gradient(180deg, rgba(61, 154, 95, 0.12), transparent 70%), #0a0a0a;
}

.status-hero.is-warn {
  border-color: #3a3218;
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.12), transparent 70%), #0a0a0a;
}

.status-hero.is-bad {
  border-color: #3a1a18;
  background: linear-gradient(180deg, rgba(255, 59, 48, 0.12), transparent 70%), #0a0a0a;
}

.status-kicker,
.legal-kicker {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-headline,
.legal-title {
  margin: 0;
  font-size: var(--text-31);
  line-height: var(--lh-36);
  font-weight: 400;
}

.status-checked,
.legal-updated {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.status-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.status-item {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}

.status-item:first-child {
  border-top: 0;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #71767b;
  margin-top: 5px;
}

.status-item.is-ok .status-dot { background: #3d9a5f; }
.status-item.is-warn .status-dot { background: #c9a227; }
.status-item.is-bad .status-dot { background: #ff3b30; }

.status-copy {
  min-width: 0;
}

.status-name {
  margin: 0;
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

.status-hint {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.status-facts {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.status-state {
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  margin-top: 2px;
}

.status-item.is-ok .status-state { color: #7dcea0; }
.status-item.is-warn .status-state { color: #e2b340; }
.status-item.is-bad .status-state { color: #ff8a80; }

.legal-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 22px;
}

.legal-body h2 {
  margin: 18px 0 0;
  font-size: var(--text-20);
  line-height: var(--lh-24);
  font-weight: 400;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p {
  margin: 0;
  color: #d7d7d7;
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

.legal-contact {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

.legal-contact a {
  color: var(--link);
}

.legal-contact a:hover {
  color: var(--link-hover);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.ox-ask-back {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.55);
  padding: 24px;
}

.ox-ask {
  width: min(420px, 100%);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 18px 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}

.ox-ask p {
  margin: 0;
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

.ox-ask-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 560px;
  margin: 0 auto;
  padding: 14px 16px;
  background: #161616;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}

.cookie-bar p {
  margin: 0;
  color: #d7d7d7;
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.cookie-bar a {
  color: var(--link);
}

.cookie-bar a:hover {
  color: var(--link-hover);
}

.post-embed {
  margin: 10px 0 0;
  border-radius: 16px;
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
}

.post-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

.av-box {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.av-box .avatar,
.av-box .profile-photo {
  position: relative;
}

.status-bubble {
  position: absolute;
  left: calc(100% - 8px);
  top: 4px;
  z-index: 3;
  width: max-content;
  max-width: min(280px, calc(100vw - 140px));
  padding: 6px 10px;
  border-radius: 14px 14px 14px 4px;
  background: #16181c;
  border: 1px solid #2f3336;
  color: var(--fg);
  font-size: var(--text-13);
  line-height: 16px;
  white-space: normal;
  overflow: visible;
  overflow-wrap: break-word;
}

.msg-head-status {
  display: none;
}

.feature-group {
  margin: 0 0 28px;
}

.feature-group-title {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.people {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.people > .settings-sub {
  margin: 0;
}

.people > .field-note {
  margin: 0;
}

.people-board h2 {
  margin: 0 0 2px;
  font-size: var(--text-15);
}

.people-medal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 4px;
  font-size: 16px;
  line-height: 1;
}

.uni {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.uni-hero {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 6px 0 10px;
}

.uni-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.uni-head > div:first-child {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.uni-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.uni-more {
  position: relative;
}

.uni-more-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 200px;
  background: var(--bg);
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  z-index: var(--z-popup);
}

.uni-more-menu[hidden] { display: none; }

.uni-hero h1 {
  margin: 0;
}

.uni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.uni-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid #8a6a22;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(243, 226, 160, 0.14), rgba(110, 84, 24, 0.08)),
    linear-gradient(160deg, #16120a, #0a0804);
  box-shadow:
    inset 0 1px 0 rgba(246, 231, 176, 0.28),
    inset 0 -1px 0 rgba(60, 42, 8, 0.5);
  color: inherit;
  text-decoration: none;
  min-height: 168px;
  height: 100%;
}

.uni-card:hover {
  background: var(--hover);
}

.uni-card h2,
.uni-card h3 {
  margin: 0;
  font-size: var(--text-20);
  line-height: var(--lh-24);
  font-weight: 400;
}

.uni-status {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.uni-draft {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border: 1px solid #8a6a22;
  border-radius: 999px;
  color: var(--uni-text);
  background: linear-gradient(180deg, rgba(243, 226, 160, 0.16), rgba(110, 84, 24, 0.2));
  font-size: var(--text-13);
  line-height: var(--lh-16);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  vertical-align: middle;
}

.uni-card.is-draft,
.uni-lesson-row.is-draft {
  border-color: #b8922e;
  box-shadow:
    inset 0 1px 0 rgba(246, 231, 176, 0.28),
    inset 0 0 0 1px rgba(184, 146, 46, 0.2);
}

.uni-draft-banner {
  margin: 0 0 16px;
  padding: 10px 14px;
  border: 1px solid #8a6a22;
  border-radius: 10px;
  color: var(--uni-text);
  background:
    linear-gradient(180deg, rgba(243, 226, 160, 0.12), rgba(110, 84, 24, 0.16));
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.aside-uni-item .uni-draft {
  margin-left: 8px;
  font-size: 10px;
  line-height: 14px;
  padding: 0 6px;
}

.uni-card p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.uni-progress {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  align-self: stretch;
}

.uni-hero > .uni-progress,
.uni-lesson-top > .uni-progress {
  margin-top: 2px;
  width: 100%;
}

.uni-bar {
  display: block;
  width: 100%;
  min-width: 0;
  height: 8px;
  border-radius: 999px;
  background: rgba(110, 84, 24, 0.45);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.uni-bar > i {
  display: block;
  height: 100%;
  background: var(--uni-metal);
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 245, 200, 0.45);
}

.uni-pct {
  color: var(--muted);
  font-size: var(--text-13);
  font-variant-numeric: tabular-nums;
}

.uni-lesson {
  max-width: 720px;
}

.uni-lesson-body {
  margin: 16px 0 24px;
  font-size: var(--text-17);
  line-height: 1.55;
}

.uni-lesson-body h1,
.uni-lesson-body h2,
.uni-lesson-body h3 {
  margin: 1.2em 0 0.4em;
}

.uni-lesson-body p,
.uni-lesson-body ul,
.uni-lesson-body ol {
  margin: 0 0 0.8em;
}

.uni-quiz {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 0 20px;
}

.uni-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0 0 4px;
  color: var(--uni-text);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.uni-crumbs a {
  color: var(--link);
}

.uni-crumbs a:hover {
  color: var(--link-hover);
}

.uni-crumbs-sep {
  color: var(--muted);
  opacity: 0.7;
}

.uni-crumbs-here {
  color: var(--fg);
}

.uni-lesson-mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--muted);
}

.uni-lesson-row.is-done .uni-lesson-mark {
  color: #3dd68c;
}

.uni-lesson-row.is-locked .uni-lesson-mark {
  color: var(--muted);
}

.uni-lesson-mark .icon {
  width: 18px;
  height: 18px;
}

.uni-locked,
.uni-card.is-locked,
.uni-lesson-row.is-locked {
  opacity: 0.42;
  pointer-events: none;
}

.uni-staff {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.reports-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 16px;
}

.reports-toolbar .search-box {
  flex: 1 1 220px;
  min-width: 0;
}

.report-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.report-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.report-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: var(--text-13);
  color: var(--muted);
}

.report-tag.is-open { color: #ff8a80; border-color: #8b1a1a; }
.report-tag.is-progress { color: #8ecdff; border-color: #1d9bf0; }
.report-tag.is-done { color: #7dcea0; border-color: #1b6b3a; }

.report-notes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

.report-note {
  padding: 10px 12px;
  border-radius: 12px;
  background: #0c0c0c;
}

.rep-sheet[hidden] {
  display: none !important;
}

.rep-sheet {
  display: none;
}

.ox-ask-wide.rep-dialog {
  width: min(520px, 100%);
  max-height: min(88dvh, 780px);
}

.ox-ask-wide.rep-dialog .ox-ask-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rep-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #0a0a0a;
  overflow: hidden;
}

.rep-hero::after {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 50%;
  width: 1px;
  background: var(--line);
  pointer-events: none;
}

.rep-hero .rep-stat-k,
.rep-hero .rep-stat-n,
.rep-hero .rep-stat-sub {
  min-width: 0;
  padding-left: 18px;
  padding-right: 18px;
}

.rep-hero .rep-stat-k {
  margin: 0;
  padding-top: 16px;
  color: var(--muted);
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rep-hero .rep-stat-n {
  display: flex;
  align-items: baseline;
  gap: 1px;
  margin: 6px 0 0;
  font-size: 40px;
  line-height: 0.92;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}

.rep-hero .rep-stat-ord {
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.rep-hero .rep-stat-sub {
  margin: 6px 0 0;
  padding-bottom: 16px;
  min-height: calc(var(--lh-16) + 16px);
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.rep-hero .rep-stat-n.is-gold {
  color: var(--coin-text-hot);
}

.rep-hero .rep-stat-n.is-gold .rep-stat-ord {
  color: var(--coin-text);
}

.rep-hero .rep-stat-n.is-silver {
  color: #e8e8e8;
}

.rep-hero .rep-stat-n.is-silver .rep-stat-ord {
  color: #9a9a9a;
}

.rep-hero .rep-stat-n.is-bronze {
  color: #e2c4a4;
}

.rep-hero .rep-stat-n.is-bronze .rep-stat-ord {
  color: #c4a07a;
}

@media (max-width: 420px) {
  .rep-hero .rep-stat-k,
  .rep-hero .rep-stat-n,
  .rep-hero .rep-stat-sub {
    padding-left: 14px;
    padding-right: 14px;
  }

  .rep-hero .rep-stat-n {
    font-size: 32px;
  }
}

.rep-how {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0c0c0c;
}

.rep-how > p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.rep-eq {
  margin: 10px 0 0 !important;
  color: var(--fg) !important;
  font-size: var(--text-15) !important;
  line-height: var(--lh-20) !important;
}

.rep-eq span {
  color: var(--fg);
}

.rep-rules {
  margin: 10px 0 0;
  padding: 0 0 0 18px;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.rep-rules li + li {
  margin-top: 4px;
}

.rep-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rep-group h3 {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ox-ask-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}

.ox-ask-head .settings-sub {
  margin: 0;
  padding-right: 8px;
}

.ox-ask-x {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: -6px -6px 0 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.ox-ask-x:hover {
  background: var(--hover);
  color: var(--fg);
}

.ox-ask-x .icon {
  width: 18px;
  height: 18px;
}

.ox-ask-body .rep-total {
  margin: 16px 0;
  font-size: var(--text-17);
  line-height: var(--lh-20);
}

.rep-line {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.rep-line:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.rep-line.is-zero {
  opacity: 0.45;
}

.rep-line-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.rep-line-k {
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

.rep-line-pts {
  font-variant-numeric: tabular-nums;
  font-size: var(--text-15);
  line-height: var(--lh-20);
}

.rep-line-math {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  font-variant-numeric: tabular-nums;
}

.rep-line-note {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.rep-line-track {
  display: block;
  width: 100%;
  height: 3px;
  margin-top: 8px;
  border-radius: 999px;
  background: #1a1a1a;
  overflow: hidden;
}

.rep-line-track > i {
  display: block;
  height: 100%;
  background: #d7d7d7;
  border-radius: inherit;
}

.rep-line.is-zero .rep-line-track > i {
  width: 0 !important;
}

.rep-foot {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: var(--text-13);
}

.profile-stats button,
.profile-stats a {
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.profile-stats strong {
  color: var(--fg);
}

.campus-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
}

.campus-pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--text-13);
  text-decoration: none;
}

.campus-pill:hover { color: var(--fg); }

.notes {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
  position: relative;
  background: #000;
}

.note-side {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.note-side-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 14px 10px;
}

.note-side-head h1 {
  margin: 0;
}

.note-side-tools {
  display: flex;
  gap: 8px;
}

.note-side-tools .btn {
  flex: 1;
  height: 34px;
  padding: 0 8px;
  font-size: var(--text-13);
}

.note-find {
  margin: 0 14px 10px;
}

.note-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 8px 16px;
}

.note-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  text-align: left;
  color: inherit;
  background: none;
  border: 0;
}

.note-card:hover,
.note-card.is-on {
  background: var(--hover);
}

.note-card-title {
  font-size: var(--text-15);
  line-height: var(--lh-20);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.note-card-preview {
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.note-card-meta {
  color: var(--muted);
  font-size: 11px;
}

.note-folder-label {
  margin: 12px 12px 6px;
  color: var(--muted);
  font-size: var(--text-13);
}

.note-stage {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.note-empty,
.note-editor {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 16px 20px;
}

.note-empty {
  align-items: flex-start;
  justify-content: center;
  color: var(--muted);
}

.note-empty h2 {
  margin: 0 0 8px;
  color: var(--fg);
  font-size: var(--text-31);
  line-height: var(--lh-36);
  font-weight: 400;
}

.note-editor-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
}

.note-save-state {
  margin-left: auto;
  color: var(--muted);
  font-size: var(--text-13);
}

.note-title {
  width: 100%;
  border: 0;
  background: none;
  color: var(--fg);
  font-size: var(--text-31);
  line-height: var(--lh-36);
  padding: 0 0 12px;
  outline: none;
}

.note-body {
  flex: 1;
  min-height: 0;
  width: 100%;
  border: 0;
  background: none;
  color: var(--fg);
  font-size: var(--text-17);
  line-height: 1.55;
  resize: none;
  outline: none;
}

.note-back { display: none; }

@media (max-width: 960px) {
  .notes {
    grid-template-columns: 1fr;
  }
  .notes.is-editing .note-side { display: none; }
  .notes:not(.is-editing) .note-stage { display: none; }
  .note-back { display: inline-flex; }
}

.live-new {
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: calc(100% - 16px);
  margin: 8px auto 12px;
  height: auto;
  padding: 8px 18px;
  border: 1px solid rgba(29, 155, 240, 0.45);
  border-radius: 999px;
  background: rgba(12, 20, 32, 0.92);
  color: #1d9bf0;
  font-size: var(--text-15);
  font-weight: 600;
  cursor: pointer;
}

.live-new:hover { background: #102033; color: #6ec1ff; }

.profile-limits {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}

.profile-limits .field {
  margin: 0;
}

.ox-ask-wide {
  width: min(520px, 100%);
  max-height: min(80dvh, 640px);
  overflow: auto;
}

.ox-ask-input,
.ox-ask .field {
  margin-top: 12px;
}

.ox-ask .field input,
.ox-ask-input {
  width: 100%;
}

.ox-people {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ox-people li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.uni-lessons {
  list-style: none;
  margin: 0;
  padding: 0;
}

.uni-lesson-row {
  display: flex;
  align-items: stretch;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}

.uni-lesson-title {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 12px 0;
  color: #8e8e93;
  text-decoration: none;
  font-size: var(--text-17);
  line-height: var(--lh-20);
}

.uni-lesson-row.is-done .uni-lesson-title {
  color: var(--fg);
}

.uni-lesson-row:not(.is-locked) .uni-lesson-title:hover {
  color: var(--fg);
}

.uni-lesson-row .uni-pct {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.uni-lesson-row .uni-draft {
  align-self: center;
  flex: 0 0 auto;
}

.uni-head .uni-draft {
  margin-top: 6px;
}

.uni-lesson {
  min-height: calc(100dvh - 120px);
}

.uni-lesson-top {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.uni-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  text-decoration: none;
  font-size: var(--text-13);
  width: fit-content;
}

.uni-back .icon {
  width: 16px;
  height: 16px;
  transform: scaleX(-1);
}

.uni-back:hover { color: var(--fg); }

.uni-player {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.uni-slide {
  flex: 1;
  min-height: 0;
}

.uni-nav {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 12px 0 4px;
  background: none;
}

.uni-nav-btn.is-prev { justify-self: start; }
.uni-nav-btn.is-next { justify-self: end; }

.uni-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 32px;
  padding: 0 6px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--uni-text);
  font: inherit;
  font-size: var(--text-13);
  font-weight: 400;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: none;
}

.uni-nav-btn:hover:not(:disabled) {
  color: var(--uni-text-hot);
  background: rgba(184, 146, 46, 0.1);
}

.uni-nav-btn:active:not(:disabled) {
  transform: none;
  box-shadow: none;
}

.uni-nav-btn:disabled {
  opacity: 0.28;
  cursor: default;
  filter: none;
  box-shadow: none;
}

.uni-nav-chev {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: block;
}

.uni-nav-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 7px;
  max-width: min(280px, 42vw);
}

.uni-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid #5c4514;
  background: linear-gradient(160deg, #8a6a22, #3a2c10);
  box-shadow: inset 0 1px 0 rgba(243, 226, 160, 0.2);
}

a.uni-dot {
  text-decoration: none;
}

.uni-dot.is-done {
  background: linear-gradient(160deg, #d4af37, #8a6a22);
  border-color: #8a6a22;
}

.uni-dot.is-on {
  width: 12px;
  height: 12px;
  background: var(--uni-metal);
  border-color: var(--uni-hi);
  box-shadow:
    0 0 8px rgba(212, 175, 55, 0.55),
    inset 0 1px 0 rgba(255, 245, 200, 0.75);
}

.uni-dot.is-locked {
  opacity: 0.32;
  pointer-events: none;
}

.quiz-builder {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-q {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.quiz-opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0;
}

.quiz-opt {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quiz-opt input[type="text"] {
  flex: 1;
}

.quiz-pick {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.quiz-pick legend {
  padding: 0;
  margin: 0 0 12px;
  font-size: var(--text-20);
  line-height: var(--lh-24);
  font-weight: 500;
}

.quiz-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-choice {
  position: relative;
  display: block;
  padding: 16px 18px;
  border: 1px solid #8a6a22;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(243, 226, 160, 0.06), transparent),
    #12100a;
  cursor: pointer;
  color: var(--fg);
}

.quiz-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.quiz-choice span {
  display: block;
  font-size: var(--text-17);
  line-height: var(--lh-24);
}

.quiz-choice:hover {
  border-color: #b8922e;
  background: rgba(184, 146, 46, 0.1);
}

.quiz-choice:has(input:checked) {
  border-color: var(--uni-hi);
  background: rgba(184, 146, 46, 0.16);
  box-shadow:
    0 0 0 1px #8a6a22,
    inset 0 1px 0 rgba(246, 231, 176, 0.28);
}

.uni-cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: #16140c;
  overflow: hidden;
  flex: 0 0 auto;
}

.uni-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.uni-cover-hero {
  max-width: 100%;
}

.uni-cover-lesson {
  width: 56px;
  height: 56px;
  aspect-ratio: 1;
  flex: 0 0 56px;
  border-radius: 10px;
  align-self: center;
}

.uni-sort {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 0 0 auto;
  justify-content: center;
}

.uni-sort-btn {
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid #8a6a22;
  border-radius: 8px;
  background: transparent;
  color: var(--uni-text);
  font-size: 11px;
  cursor: pointer;
}

.uni-sort-btn:hover {
  background: rgba(184, 146, 46, 0.14);
  color: var(--uni-text-hot);
}

.reports-page > .settings-sub {
  margin-top: 0;
}

.report-time {
  color: var(--muted);
  font-size: var(--text-13);
  font-variant-numeric: tabular-nums;
  margin-left: auto;
}

.report-meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: var(--text-13);
}

.report-people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px 16px;
}

.report-people p {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.report-k {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.report-none {
  color: var(--muted);
}

.reports-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}

.report-filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 4px 0 16px;
}

.seg {
  display: flex;
  align-items: stretch;
  min-height: 36px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0c0c0c;
  overflow: hidden;
}

.seg-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.seg-item:hover {
  color: var(--fg);
}

.seg-item.is-on {
  color: var(--fg);
  background: var(--hover);
}

.reports-page .search-box {
  margin-bottom: 12px;
}

.report-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0 16px 14px;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid #2a2a2a;
  cursor: pointer;
}

.report-card:hover {
  background: rgba(255, 255, 255, 0.02);
}

.report-card.is-open { border-left-color: #1d9bf0; }
.report-card.is-progress { border-left-color: #ffd400; }
.report-card.is-done { border-left-color: #00ba7c; }

.report-card-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.report-card-body {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.report-detail {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.report-back {
  color: var(--muted);
  font-size: var(--text-13);
  width: fit-content;
}

.report-back:hover {
  color: var(--fg);
}

.report-sheet {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.report-sheet-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.report-sheet-top .report-time {
  margin-left: auto;
}

.report-detail-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.report-detail-head .report-body,
.report-sheet .report-body {
  margin: 0;
  font-size: var(--text-17);
  line-height: var(--lh-20);
  white-space: pre-wrap;
}

.report-facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px 16px;
}

.report-facts div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.report-facts dt {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-facts dd {
  margin: 0;
}

.report-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.report-status-pick {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.report-status-pick input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.report-status-pick span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: var(--text-13);
}

.report-status-pick:hover span {
  color: var(--fg);
}

.report-status-pick:has(input:checked) span {
  color: var(--fg);
  background: var(--hover);
  border-color: #3f3f3f;
}

.report-update {
  gap: 16px;
}

.report-notes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.report-note {
  padding: 12px 14px;
  border-radius: 12px;
  background: #0c0c0c;
}

.people-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.people-board {
  margin: 0;
}

.people-board .settings-sub {
  margin: 0 0 2px;
  font-size: var(--text-15);
}

.people-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
  border-bottom: 1px solid var(--line);
}

.people-row.is-you {
  background: var(--hover);
  margin: 0 -8px;
  padding-left: 8px;
  padding-right: 8px;
  border-radius: 10px;
}

.people-place {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  text-align: center;
}

.people-value {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.people-you {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: var(--text-13);
}

.people-row .person {
  padding: 0;
  border: 0;
  margin: 0;
}

.people-row .person[data-href] {
  margin-inline: 0;
  padding-inline: 0;
}

.people-row .person-follow {
  display: none;
}

.people-row .person[data-href]:hover {
  background: none;
}

.people-row .person-top .btn {
  display: none;
}

.online-face .av-box {
  display: block;
}

.stage:has(.uni) {
  background:
    linear-gradient(180deg, rgba(212, 175, 55, 0.1), rgba(0, 0, 0, 0.22)),
    var(--glass);
  border-left-color: #8a6a22;
  border-right-color: #8a6a22;
}

.uni-card:hover {
  background:
    linear-gradient(180deg, rgba(243, 226, 160, 0.2), rgba(18, 14, 6, 0.95));
}

.uni-crumbs a {
  color: var(--uni-text);
}

.uni-crumbs a:hover {
  color: var(--uni-text-hot);
}

.uni-lesson-row {
  border-bottom-color: rgba(184, 146, 46, 0.22);
}

.stage:has(.uni-lesson) {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - var(--lock-bar));
  padding-bottom: 0;
  overflow: hidden;
}

.stage:has(.uni-lesson) > .uni-lesson {
  flex: 1 1 auto;
  min-height: 0;
  max-width: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  gap: 12px;
}

.uni-lesson-top {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.uni-player {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.uni-slide {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.uni-slide.is-on {
  overflow-y: auto;
  padding-right: 4px;
}

.uni-nav {
  flex: 0 0 auto;
  position: sticky;
  bottom: 0;
  margin-top: 0;
  padding: 14px 0 16px;
  background: none;
}

.aside-uni {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 2px 16px;
}

.aside-uni-title {
  color: var(--uni-text);
  font-size: var(--text-17);
  line-height: var(--lh-20);
  text-decoration: none;
  font-weight: 400;
}

.aside-uni-title:hover {
  color: var(--uni-text-hot);
}

.aside-uni-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(184, 146, 46, 0.28);
}

.aside-uni-list li {
  border-bottom: 1px solid rgba(184, 146, 46, 0.16);
}

.aside-uni-item {
  display: block;
  padding: 10px 4px;
  color: inherit;
  text-decoration: none;
  font-size: var(--text-13);
  line-height: var(--lh-16);
}

.aside-uni-list li.is-on .aside-uni-item {
  color: var(--uni-text-hot);
}

.aside-uni-list li.is-done .aside-uni-item {
  color: var(--uni-text);
}

.aside-uni-list li.is-locked .aside-uni-item {
  color: var(--muted);
}

.aside-uni-list li.is-draft .aside-uni-item {
  color: var(--uni-mid);
}

.aside-uni-item:hover {
  color: var(--uni-text-hot);
}

.aside:has(.aside-uni) {
  background:
    linear-gradient(180deg, rgba(212, 175, 55, 0.1), transparent 40%),
    var(--glass-heavy);
  border-left-color: #8a6a22;
}

.mcp-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0c0c0c;
  overflow: hidden;
}

.mcp-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.mcp-row:last-child {
  border-bottom: 0;
}

.mcp-k {
  color: var(--muted);
  font-size: var(--text-13);
}

.mcp-v {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.mcp-code {
  display: block;
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.4;
  color: #e8e8e8;
}

.mcp-secret {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(232, 197, 71, 0.35);
  background: rgba(232, 197, 71, 0.08);
}

.mcp-secret-label {
  margin: 0 0 10px;
  font-size: var(--text-13);
}

.mcp-secret-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mcp-secret-input {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  color: #f4f4f4;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 10px 12px;
  caret-color: #f4f4f4;
}

#mcp-token.mcp-secret-input {
  color: #f4f4f4;
  background: #111;
}

.mcp-config-wrap {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0c0c0c;
  overflow: auto;
}

.mcp-config {
  margin: 0;
  padding: 14px 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.coin {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.coin-hero {
  position: relative;
  overflow: hidden;
  padding: 22px 20px 20px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% -10%, rgba(255, 231, 168, 0.28), transparent 42%),
    radial-gradient(circle at 88% 120%, rgba(212, 162, 74, 0.18), transparent 46%),
    linear-gradient(165deg, #1a140c 0%, #0c0905 58%, #070604 100%);
  border: 1px solid var(--coin-line);
  box-shadow:
    inset 0 1px 0 rgba(255, 241, 196, 0.28),
    inset 0 -1px 0 rgba(40, 28, 8, 0.55);
}

.coin-disc {
  pointer-events: none;
  position: absolute;
  right: -18px;
  top: -28px;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 244, 214, 0.55), transparent 34%),
    radial-gradient(circle at 70% 78%, rgba(90, 58, 14, 0.55), transparent 42%),
    conic-gradient(from 210deg, #f3d48a, #8a5c18, #ffe7a8, #6a4a16, #d4a24a, #f3d48a);
  box-shadow:
    inset 0 0 0 10px rgba(20, 14, 6, 0.35),
    inset 0 0 0 12px rgba(255, 231, 168, 0.28);
  opacity: 0.42;
}

.coin-kicker {
  margin: 0;
  color: var(--coin-text);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.coin-balance {
  margin: 6px 0 0;
  color: var(--coin-text-hot);
  font-size: 44px;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.coin-unit {
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--coin-text);
}

.coin-send,
.coin-history {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.coin-history {
  gap: 14px;
  padding: 18px 16px 8px;
  border-color: var(--coin-line);
  background:
    linear-gradient(180deg, rgba(243, 226, 160, 0.07), transparent 28%),
    rgba(255, 255, 255, 0.02);
}

.coin-send.coin-check {
  padding: 0;
  border: none;
  background: none;
  gap: 10px;
}

.check-paper {
  --check-ink: #1c2a44;
  --check-line: #6d86ad;
  --check-mute: #4a5d78;
  position: relative;
  overflow: visible;
  padding: 18px 20px 14px 26px;
  color: var(--check-ink);
  border-radius: 8px;
  border: 1px solid #c9b48a;
  background:
    repeating-linear-gradient(
      -12deg,
      transparent 0 10px,
      rgba(90, 130, 110, 0.035) 10px 11px
    ),
    radial-gradient(ellipse at 88% 12%, rgba(212, 162, 74, 0.16), transparent 36%),
    radial-gradient(ellipse at 12% 88%, rgba(90, 130, 160, 0.1), transparent 42%),
    linear-gradient(180deg, #f7f1de 0%, #efe4c8 58%, #e8d7b0 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 14px 32px rgba(0, 0, 0, 0.42);
}

.check-paper::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 10px 12px 10px 18px;
  border: 1px solid rgba(109, 134, 173, 0.28);
  border-radius: 4px;
}

.check-paper::after {
  content: "CREDITS";
  pointer-events: none;
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%) rotate(-14deg);
  color: rgba(180, 140, 60, 0.09);
  font-size: clamp(48px, 12vw, 84px);
  letter-spacing: 0.12em;
  line-height: 1;
}

.check-top,
.check-pay,
.check-words,
.check-foot,
.check-micr {
  position: relative;
  z-index: 1;
}

.check-pay {
  z-index: 3;
}

.check-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.check-bank-name {
  margin: 0;
  font-size: 18px;
  line-height: 22px;
  letter-spacing: 0.02em;
}

.check-bank-sub {
  margin: 2px 0 0;
  color: var(--check-mute);
  font-size: 12px;
  line-height: 16px;
}

.check-date {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  min-width: 0;
}

.check-date span:first-child,
.check-label,
.check-sign-label,
.check-words-unit {
  color: var(--check-mute);
  font-size: 10px;
  line-height: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.check-date-val {
  min-width: 11rem;
  padding: 2px 0 4px;
  border-bottom: 1px solid var(--check-line);
  font-size: 14px;
  line-height: 18px;
  text-align: right;
}

.check-pay {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.check-payee,
.check-memo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.check-payee .check-label,
.check-memo .check-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.check-paper input {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 4px 0 6px;
  color: var(--check-ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--check-line);
  border-radius: 0;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0.01em;
  color-scheme: light;
  caret-color: var(--check-ink);
}

.check-paper input:focus,
.check-paper input:focus-visible {
  border-bottom-color: var(--check-ink);
}

.check-amt {
  display: flex;
  align-items: stretch;
  min-width: 9.5rem;
  border: 2px solid var(--check-ink);
  background: rgba(255, 255, 255, 0.38);
}

.check-amt-mark {
  display: grid;
  place-items: center;
  width: 28px;
  color: var(--check-ink);
  font-size: 13px;
  letter-spacing: 0.04em;
  border-right: 1px solid var(--check-ink);
}

.check-amt input {
  width: 8.5rem;
  padding: 8px 10px;
  border: none;
  font-size: 18px;
  line-height: 22px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.check-amt input:focus,
.check-amt input:focus-visible {
  border: none;
}

.check-words {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  min-height: 36px;
  margin-top: 14px;
  border-bottom: 1px solid var(--check-line);
}

.check-words-val {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 22px;
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 20px;
  font-style: italic;
  overflow-wrap: anywhere;
}

.check-words-unit {
  flex: 0 0 auto;
  margin: 0 0 6px;
  color: var(--check-ink);
  font-weight: 400;
}

.check-foot {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(11rem, 0.85fr);
  gap: 22px;
  align-items: end;
  margin-top: 16px;
}

.check-memo .field-wait {
  color: var(--check-mute);
  letter-spacing: 0.04em;
  text-transform: none;
}

.check-memo .field-wait.is-low {
  color: var(--check-ink);
}

.check-sign {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: visible;
}

.check-sign-btn {
  display: grid;
  position: relative;
  isolation: isolate;
  width: 100%;
  margin: 0;
  padding: 0;
  color: var(--check-ink);
  text-align: left;
  background: transparent;
  border: 0;
  overflow: visible;
  cursor: pointer;
}

.check-sign-name {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0.08em 2px 0.34em 0;
  overflow: visible;
  white-space: nowrap;
  font-family: "Segoe Script", "Apple Chancery", "Snell Roundhand", "Palatino Linotype", cursive;
  font-size: 28px;
  line-height: 1;
}

.check-sign-rule {
  grid-area: 1 / 1;
  align-self: end;
  z-index: 0;
  display: block;
  height: 1px;
  margin: 0 0 0.58em;
  background: var(--check-ink);
  pointer-events: none;
}

.check-sign-btn:hover .check-sign-name,
.check-sign-btn:focus-visible .check-sign-name {
  color: #0f1a30;
}

.check-sign-btn:disabled {
  cursor: wait;
  opacity: 0.55;
}

.check-sign-label {
  margin-top: 6px;
}

.check-micr {
  margin: 16px 0 0;
  padding-top: 10px;
  border-top: 1px dashed rgba(28, 42, 68, 0.22);
  color: #161616;
  font-family: ui-monospace, "OCR A Std", "OCR A", "Courier New", monospace;
  font-size: 15px;
  line-height: 18px;
  letter-spacing: 0.12em;
  overflow-wrap: anywhere;
}

.coin-check .handle-pick .handle-pick-panel {
  color: var(--fg);
  color-scheme: dark;
}

.coin-check .form-error,
.coin-check .form-ok {
  margin: 0 4px;
}

@media (max-width: 640px) {
  .check-paper {
    padding: 16px 14px 12px 20px;
  }

  .check-top {
    flex-direction: column;
    gap: 12px;
  }

  .check-date {
    align-items: flex-start;
    width: 100%;
  }

  .check-date-val {
    min-width: 0;
    width: 100%;
    text-align: left;
  }

  .check-pay,
  .check-foot {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .check-amt {
    width: 100%;
    min-width: 0;
  }

  .check-amt input {
    width: 100%;
  }
}

.coin-send > .settings-sub,
.coin-history > .settings-sub,
.coin-tx-tools > .settings-sub {
  margin: 0;
}

.coin-send > .field-note {
  margin: 0 0 2px;
}

.coin-send #coin-amount {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.btn.coin-send-btn {
  margin-top: 8px;
  width: 100%;
  background: var(--coin-text);
  color: #14100a;
  border-color: var(--coin-text);
}

.btn.coin-send-btn:hover {
  color: #0c0905;
  background: var(--coin-text-hot);
  border-color: var(--coin-text-hot);
}

.ox-ask.wallet-confirm {
  position: relative;
  width: min(380px, 100%);
  padding: 28px 22px 18px;
  border-radius: 22px;
  border: 1px solid var(--coin-line);
  background:
    radial-gradient(circle at 18% -12%, rgba(255, 231, 168, 0.22), transparent 42%),
    radial-gradient(circle at 88% 118%, rgba(212, 162, 74, 0.14), transparent 48%),
    linear-gradient(165deg, #1a140c 0%, #0c0905 58%, #070604 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 241, 196, 0.22),
    0 16px 48px rgba(0, 0, 0, 0.55);
  text-align: center;
}

.ox-ask.wallet-confirm .ox-ask-x {
  position: absolute;
  top: 12px;
  right: 12px;
  margin: 0;
}

.ox-ask.wallet-confirm .wallet-confirm-kicker {
  margin: 0 0 8px;
  color: var(--coin-text);
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ox-ask.wallet-confirm .wallet-confirm-amt {
  margin: 0;
  color: var(--coin-text-hot);
  font-size: clamp(32px, 9vw, 44px);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.ox-ask.wallet-confirm .wallet-confirm-unit {
  margin: 6px 0 0;
  color: var(--coin-text);
  font-size: 13px;
  line-height: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.wallet-confirm-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  margin: 20px 0 0;
}

.wallet-confirm-to {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 14px 8px 8px;
  text-align: left;
  border-radius: 999px;
  border: 1px solid rgba(212, 162, 74, 0.22);
  background: rgba(0, 0, 0, 0.28);
}

.wallet-confirm-av {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}

.wallet-confirm-av .avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  font-size: 14px;
}

.wallet-confirm-who {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}

.wallet-confirm-who strong {
  color: var(--fg);
  font-size: var(--text-15);
  line-height: var(--lh-20);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.wallet-confirm-who span {
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  overflow-wrap: anywhere;
}

.wallet-confirm-memo {
  width: 100%;
  margin: 16px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid rgba(212, 162, 74, 0.2);
  text-align: left;
}

.ox-ask.wallet-confirm .wallet-confirm-memo-k {
  margin: 0 0 4px;
  color: var(--coin-text);
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ox-ask.wallet-confirm .wallet-confirm-memo-v {
  margin: 0;
  color: var(--coin-text-hot);
  font-size: var(--text-15);
  line-height: var(--lh-20);
  overflow-wrap: anywhere;
}

.ox-ask.wallet-confirm .wallet-confirm-pass {
  margin-top: 28px;
}

.ox-ask.wallet-confirm .wallet-confirm-pass .ox-ask-input {
  margin-top: 0;
}

.wallet-confirm-pass {
  text-align: left;
}

.wallet-confirm-pass.is-bad input {
  border-color: #8b1a1a;
}

.wallet-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.wallet-confirm-actions .btn,
.ox-ask.wallet-confirm .btn.coin-send-btn {
  width: 100%;
  height: 36px;
  min-height: 36px;
  margin-top: 0;
}

.ox-ask.wallet-confirm .wallet-confirm-warn {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
}

.coin-tx-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.coin-tx-tools {
  display: grid;
  grid-template-columns: auto minmax(12rem, 1fr);
  align-items: center;
  gap: 10px 16px;
}

.coin-tx-head,
.coin-tx-bar {
  display: contents;
}

.coin-tx-head > .settings-sub {
  min-width: 0;
}

.coin-tx-filter {
  margin: 0;
  width: 100%;
  height: 40px;
  background: #0c0c0c;
  border: 1px solid var(--line);
}

.coin-history .coin-tx-filter:focus-within,
.coin-history .coin-tx-filter.is-on {
  background: #100e0a;
  border-color: var(--coin-line);
}

.coin-history .coin-tx-filter:focus-within .search-icon {
  color: var(--coin-text);
}

.coin-tx-picks {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  height: 40px;
  padding: 4px;
  box-sizing: border-box;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #0a0a0a;
}

.coin-tx-dates {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
}

.coin-tx-date {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 40px;
  padding: 0 10px 0 12px;
  box-sizing: border-box;
  color: var(--muted);
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: #0c0c0c;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.coin-tx-date span {
  flex: 0 0 auto;
}

.coin-tx-date input[type="date"] {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 38px;
  padding: 0;
  color: var(--fg);
  font: inherit;
  font-size: var(--text-13);
  line-height: 16px;
  letter-spacing: 0;
  text-transform: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  color-scheme: dark;
}

.coin-tx-date input[type="date"]:focus {
  outline: none;
}

.coin-tx-date:focus-within,
.coin-tx-date.is-on {
  border-color: var(--coin-line);
  background: #100e0a;
}

.coin-tx-pick {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  line-height: 16px;
  background: transparent;
  transition: color 160ms var(--ease), background 160ms var(--ease);
}

.coin-tx-pick:hover {
  color: var(--fg);
}

.coin-tx-pick.is-on {
  color: #14100a;
  background: var(--coin-text);
}

.coin-tx-list > .timeline-empty {
  list-style: none;
  margin: 0;
  padding: 28px 8px 24px;
  color: var(--muted);
  font-size: var(--text-13);
  line-height: var(--lh-16);
  text-align: center;
}

.coin-tx {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 16px;
  align-items: start;
  padding: 14px 4px;
  border-top: 1px solid rgba(212, 162, 74, 0.14);
}

.coin-tx-list > .coin-tx:first-child,
.coin-tx-list > .timeline-empty + .coin-tx {
  border-top: 0;
}

.coin-tx-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.coin-tx-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  min-width: 7.5ch;
}

.coin-tx-who {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

a.coin-tx-who:hover .coin-tx-name,
a.coin-tx-who:focus-visible .coin-tx-name {
  color: var(--coin-text-hot);
}

.coin-tx-name {
  min-width: 0;
  color: var(--fg);
  font-size: var(--text-15);
  line-height: var(--lh-20);
  overflow-wrap: anywhere;
}

.coin-tx-handle {
  color: var(--muted);
  font-size: 13px;
  line-height: 16px;
}

.coin-tx-amt {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  line-height: 20px;
  letter-spacing: -0.02em;
  color: var(--muted);
  white-space: nowrap;
}

.coin-tx.is-in .coin-tx-amt {
  color: #7dcea0;
}

.coin-tx.is-out .coin-tx-amt {
  color: #f0d7a0;
}

.coin-tx.is-mint .coin-tx-amt {
  color: var(--coin-text-hot);
}

.coin-tx-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.coin-tx-time {
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .coin-tx-tools {
    grid-template-columns: 1fr;
  }

  .coin-tx-head,
  .coin-tx-bar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .coin-tx-picks {
    width: 100%;
  }

  .coin-tx-pick {
    flex: 1 1 auto;
    justify-content: center;
  }
}

body.no-plan-post .composer,
body.no-plan-post .rail-post,
body.no-plan-post .compose-back,
body.no-plan-post .post-reply,
body.no-plan-post .post-repost {
  display: none !important;
}


.sub-page {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sub-hero {
  position: relative;
  overflow: hidden;
  padding: 26px 24px 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 14% -18%, rgba(246, 231, 176, 0.32), transparent 42%),
    radial-gradient(circle at 92% 118%, rgba(184, 146, 46, 0.22), transparent 48%),
    linear-gradient(165deg, #1c160c 0%, #0e0b06 54%, #070604 100%);
  border: 1px solid var(--uni-line);
  box-shadow:
    inset 0 1px 0 rgba(255, 241, 196, 0.28),
    inset 0 -1px 0 rgba(40, 28, 8, 0.5);
}

.sub-seal {
  pointer-events: none;
  position: absolute;
  right: -22px;
  top: -36px;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 244, 214, 0.58), transparent 34%),
    radial-gradient(circle at 70% 78%, rgba(90, 58, 14, 0.55), transparent 42%),
    conic-gradient(from 210deg, #f6e7b0, #8a6a22, #f3e2a0, #6e5418, #c9a227, #f6e7b0);
  box-shadow:
    inset 0 0 0 11px rgba(20, 14, 6, 0.38),
    inset 0 0 0 13px rgba(246, 231, 176, 0.3);
  opacity: 0.46;
}

.sub-kicker,
.sub-card-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--uni-text);
}

.sub-plan-name {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.08;
  color: var(--uni-text-hot);
  letter-spacing: -0.03em;
}

.sub-verified {
  display: inline-flex;
  transform: translateY(1px);
}

.sub-lede {
  max-width: 42em;
  margin: 10px 0 0;
  color: color-mix(in srgb, var(--uni-text) 82%, #fff 18%);
  font-size: 15px;
  line-height: 1.5;
}

.sub-lede a {
  color: var(--uni-text-hot);
}

.sub-due-label,
.sub-flag {
  margin: 10px 0 0;
  color: var(--uni-text);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.sub-flag {
  max-width: 46em;
  line-height: 1.45;
  color: #f0d48a;
}

.sub-due-amt {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 4px 0 0;
  color: var(--uni-text-hot);
  font-variant-numeric: tabular-nums;
}

.sub-due-amt strong {
  font-size: clamp(36px, 6vw, 52px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.sub-due-amt span,
.sub-due-math {
  color: var(--uni-text);
  font-size: 15px;
  letter-spacing: 0.04em;
}

.sub-due-math {
  margin: 4px 0 0;
  font-variant-numeric: tabular-nums;
}

.sub-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 0;
}

.sub-facts > div {
  padding: 12px 14px 11px;
  border-radius: 14px;
  border: 1px solid rgba(184, 146, 46, 0.28);
  background: rgba(8, 6, 3, 0.35);
}

.sub-facts dt {
  color: color-mix(in srgb, var(--uni-text) 72%, var(--muted));
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sub-facts dd {
  margin: 4px 0 0;
  color: var(--uni-text-hot);
  font-weight: 400;
  font-size: 15px;
}

.sub-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.btn.sub-gold {
  background: var(--uni-metal-btn);
  color: #16120a;
  border-color: #d4af37;
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 210, 0.5),
    0 8px 20px rgba(80, 58, 10, 0.28);
}

.btn.sub-gold:hover {
  color: #0c0905;
  filter: brightness(1.08);
  background: var(--uni-metal-btn);
  border-color: #efe0a0;
}

.btn.sub-ghost {
  color: var(--uni-text);
  border-color: var(--uni-line);
  background: transparent;
}

.btn.sub-ghost:hover {
  color: var(--uni-text-hot);
  background: var(--uni-wash);
  border-color: var(--uni-mid);
}

.sub-notice {
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--uni-line);
  background:
    linear-gradient(180deg, rgba(243, 226, 160, 0.12), rgba(110, 84, 24, 0.08)),
    #0a0804;
  color: var(--uni-text);
  line-height: 1.45;
}

.sub-notice a {
  color: var(--uni-text-hot);
}

.sub-section {
  margin: 0 0 12px;
  color: var(--uni-text);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sub-tiers {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.sub-card {
  --sub-hi: var(--uni-hi);
  --sub-mid: var(--uni-mid);
  --sub-lo: var(--uni-lo);
  --sub-text: var(--uni-text);
  --sub-text-hot: var(--uni-text-hot);
  --sub-line: var(--uni-line);
  --sub-wash: var(--uni-wash);
  --sub-bar: var(--uni-metal);
  --sub-btn: var(--uni-metal-btn);
  --sub-btn-fg: #16120a;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 18px 12px 14px;
  border: 1px solid var(--sub-line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, var(--sub-wash), rgba(8, 6, 3, 0.08)),
    linear-gradient(160deg, #16120a, #0a0804);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--sub-hi) 28%, transparent),
    inset 0 -1px 0 rgba(60, 42, 8, 0.5);
  min-height: 100%;
}

.sub-card::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--sub-bar);
}

.sub-card.is-t0 {
  --sub-hi: #e8ecf2;
  --sub-mid: #8b919c;
  --sub-lo: #3a3f48;
  --sub-text: #c5cad3;
  --sub-text-hot: #eef1f6;
  --sub-line: rgba(165, 174, 188, 0.42);
  --sub-wash: rgba(165, 174, 188, 0.12);
  --sub-bar: linear-gradient(90deg, #6d7480, #e8ecf2, #9aa3b0);
  --sub-btn: linear-gradient(180deg, #e8ecf2 0%, #a8b0bc 42%, #6d7480 100%);
  --sub-btn-fg: #14161a;
}

.sub-card.is-t1 {
  --sub-hi: #f0c49a;
  --sub-mid: #b56a32;
  --sub-lo: #5c3514;
  --sub-text: #e4b48a;
  --sub-text-hot: #f6d3b0;
  --sub-line: rgba(181, 106, 50, 0.5);
  --sub-wash: rgba(181, 106, 50, 0.16);
  --sub-bar: linear-gradient(90deg, #8a4e1e, #e0a36a, #5c3514);
  --sub-btn: linear-gradient(180deg, #f0c49a 0%, #c47a3a 42%, #6e3f16 100%);
  --sub-btn-fg: #1a1008;
}

.sub-card.is-t2 {
  --sub-hi: #f0d0a8;
  --sub-mid: #c4894a;
  --sub-lo: #6a4820;
  --sub-text: #e8c49a;
  --sub-text-hot: #ffe2b8;
  --sub-line: rgba(196, 137, 74, 0.5);
  --sub-wash: rgba(196, 137, 74, 0.16);
  --sub-bar: linear-gradient(90deg, #8a6230, #f0d0a8, #6a4820);
  --sub-btn: linear-gradient(180deg, #f6dcb4 0%, #d4a05a 42%, #7a5220 100%);
  --sub-btn-fg: #181008;
}

.sub-card.is-t3 {
  --sub-hi: #f3e2a0;
  --sub-mid: #c9a227;
  --sub-lo: #6e5418;
  --sub-text: #e6d392;
  --sub-text-hot: #f4e4a6;
  --sub-line: rgba(184, 146, 46, 0.5);
  --sub-wash: rgba(184, 146, 46, 0.16);
  --sub-bar: var(--uni-metal);
  --sub-btn: var(--uni-metal-btn);
  --sub-btn-fg: #16120a;
}

.sub-card.is-t4 {
  --sub-hi: #fff6d2;
  --sub-mid: #e0c56a;
  --sub-lo: #8a6a22;
  --sub-text: #f4e8b8;
  --sub-text-hot: #fff8dc;
  --sub-line: rgba(232, 208, 120, 0.55);
  --sub-wash: rgba(246, 231, 176, 0.2);
  --sub-bar: linear-gradient(90deg, #b8922e, #fff6d2, #8a6a22);
  --sub-btn: linear-gradient(180deg, #fff6d2 0%, #e8d080 36%, #b8922e 68%, #8a6a22 100%);
  --sub-btn-fg: #16120a;
}

.sub-card.is-current {
  border-color: var(--sub-hi);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--sub-hi) 40%, transparent),
    0 0 0 1px color-mix(in srgb, var(--sub-mid) 55%, transparent),
    0 16px 36px color-mix(in srgb, var(--sub-lo) 42%, transparent);
}

.sub-card-kicker {
  color: var(--sub-text);
}

.sub-card h3 {
  margin: 0;
  font-size: 18px;
  color: var(--sub-text-hot);
  letter-spacing: -0.02em;
}

.sub-card-price {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 5px;
  margin: 2px 0 0;
  color: var(--sub-text);
  white-space: nowrap;
}

.sub-card-price strong {
  color: var(--sub-text-hot);
  font-size: 16px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.sub-card-price span {
  font-size: 11px;
}

.sub-card-list {
  list-style: none;
  margin: 2px 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.sub-card-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: color-mix(in srgb, var(--fg) 88%, var(--sub-text));
  white-space: nowrap;
}

.sub-card-list .icon {
  width: 16px;
  height: 16px;
  color: var(--sub-mid);
  flex: 0 0 auto;
}

.sub-card-flag {
  margin: 0 0 8px;
  color: var(--sub-text-hot);
  font-size: 12px;
  line-height: 1.4;
}

.sub-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  position: relative;
  z-index: 2;
}

.sub-card .btn,
.sub-card-current {
  position: relative;
  z-index: 2;
  margin-top: 0;
  pointer-events: auto;
}

.sub-card .sub-choose,
.sub-card .sub-keep {
  width: 100%;
  min-height: 36px;
  text-box: unset;
  cursor: pointer;
  background: var(--sub-btn);
  color: var(--sub-btn-fg);
  border-color: var(--sub-mid);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--sub-hi) 55%, transparent);
}

.sub-card .sub-choose:hover,
.sub-card .sub-keep:hover {
  color: var(--sub-btn-fg);
  background: var(--sub-btn);
  border-color: var(--sub-hi);
  filter: none;
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--sub-hi) 70%, transparent),
    0 8px 18px color-mix(in srgb, var(--sub-lo) 35%, transparent);
}

.sub-card .sub-cancel {
  width: 100%;
  min-height: 36px;
  text-box: unset;
  cursor: pointer;
}

.sub-card-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  text-align: center;
  border-radius: 999px;
  border: 1px solid var(--sub-line);
  color: var(--sub-text-hot);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--sub-mid) 16%, transparent);
}

.sub-notes {
  padding: 18px 18px 8px;
  border-radius: 20px;
  border: 1px solid var(--uni-line);
  background:
    linear-gradient(180deg, rgba(243, 226, 160, 0.08), transparent 42%),
    #090806;
}

.sub-notes ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.sub-notes li {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 12px 18px;
  padding: 12px 2px;
  border-top: 1px solid rgba(184, 146, 46, 0.16);
  align-items: baseline;
}

.sub-notes li:first-child {
  border-top: 0;
  padding-top: 2px;
}

.sub-notes strong {
  color: var(--uni-text-hot);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
}

.sub-notes span {
  color: color-mix(in srgb, var(--uni-text) 70%, var(--muted));
  font-size: 13px;
  line-height: 1.45;
}

.sub-history {
  padding: 18px 18px 8px;
  border-radius: 20px;
  border: 1px solid var(--uni-line);
  background:
    linear-gradient(180deg, rgba(243, 226, 160, 0.08), transparent 42%),
    #090806;
}

.sub-pay-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.sub-pay-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "note amt" "when amt";
  gap: 2px 16px;
  padding: 14px 2px;
  border-top: 1px solid rgba(184, 146, 46, 0.16);
}

.sub-pay-note {
  grid-area: note;
  white-space: pre-line;
  color: var(--uni-text-hot);
}

.sub-pay-amt {
  grid-area: amt;
  align-self: center;
  color: var(--uni-text-hot);
  font-variant-numeric: tabular-nums;
}

.sub-pay-when {
  grid-area: when;
  color: color-mix(in srgb, var(--uni-text) 62%, var(--muted));
  font-size: 13px;
}

.sub-confirm-copy {
  margin: 0 0 8px;
  line-height: 1.45;
}

.sub-confirm-copy.is-muted {
  color: var(--muted);
  font-size: 13px;
}

.ox-ask.wallet-confirm.sub-confirm {
  width: min(400px, 100%);
  text-align: center;
}

.ox-ask.wallet-confirm.sub-confirm.has-math {
  width: min(440px, 100%);
}

.sub-confirm-facts {
  display: grid;
  width: 100%;
  margin: 20px 0 0;
  padding: 2px 0;
  border-top: 1px solid rgba(212, 162, 74, 0.22);
  border-bottom: 1px solid rgba(212, 162, 74, 0.22);
  text-align: left;
}

.sub-confirm-facts > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(212, 162, 74, 0.12);
}

.sub-confirm-facts > div:first-child {
  border-top: 0;
}

.sub-confirm-facts dt {
  margin: 0;
  color: var(--coin-text);
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sub-confirm-facts dd {
  margin: 0;
  color: var(--coin-text-hot);
  font-size: 14px;
  line-height: 18px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ox-ask.wallet-confirm.sub-confirm .sub-confirm-detail {
  width: 100%;
  margin: 14px 0 0;
  color: color-mix(in srgb, var(--coin-text) 72%, var(--muted));
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}

.sub-confirm-bill {
  width: 100%;
  margin: 14px 0 0;
  text-align: left;
}

.sub-confirm-bill-k {
  margin: 0 0 8px;
  color: var(--coin-text);
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sub-confirm-math {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--uni-line);
  border-radius: 12px;
  background: rgba(20, 14, 6, 0.55);
  color: var(--uni-text);
  font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  overflow-x: auto;
}

.ox-ask.wallet-confirm.sub-confirm .wallet-confirm-pass {
  margin-top: 18px;
}

.ox-ask.wallet-confirm.sub-confirm .sub-confirm-copy {
  color: color-mix(in srgb, var(--coin-text) 88%, #fff 12%);
}

@media (max-width: 1100px) {
  .sub-tiers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  .sub-hero {
    padding: 22px 18px 18px;
  }

  .sub-seal {
    width: 120px;
    height: 120px;
    right: -28px;
    top: -32px;
  }

  .sub-tiers,
  .sub-facts {
    grid-template-columns: 1fr;
  }

  .sub-notes li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
