:root {
  --bg: #000;
  --bg-2: #16181c;
  --card: #000;
  --line: #2f3336;
  --text: #e7e9ea;
  --muted: #71767b;
  --accent: #1d9bf0;
  --accent-rgb: 29, 155, 240;
  --accent-ink: #fff;
  --like: #f91880;
  --dislike: #f4212e;
  --mid: #1d9bf0;
  --danger: #f4212e;
  --hover: rgba(239, 243, 244, 0.1);
  --hover-faint: rgba(255, 255, 255, 0.03);
  --chrome: rgba(0, 0, 0, 0.65);
  --chrome-strong: rgba(0, 0, 0, 0.85);
  --elevated: #16181c;
  --input-line: #333639;
  --control-line: #536471;
  --media-bg: #111;
  --toggle-track: #3a3d41;
  --overlay: rgba(0, 0, 0, 0.65);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-pop: 0 12px 40px rgba(0, 0, 0, 0.55);
  --scrollbar-thumb: #333;
  --scrollbar-track: #000;
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --col: 598px;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #fff;
  --bg-2: #f7f9f9;
  --card: #fff;
  --line: #eff3f4;
  --text: #0f1419;
  --muted: #536471;
  --hover: rgba(15, 20, 25, 0.1);
  --hover-faint: rgba(15, 20, 25, 0.03);
  --chrome: rgba(255, 255, 255, 0.85);
  --chrome-strong: rgba(255, 255, 255, 0.92);
  --elevated: #fff;
  --input-line: #cfd9de;
  --control-line: #cfd9de;
  --media-bg: #eff3f4;
  --toggle-track: #cfd9de;
  --overlay: rgba(0, 0, 0, 0.4);
  --shadow: 0 8px 24px rgba(15, 20, 25, 0.12);
  --shadow-pop: 0 12px 40px rgba(15, 20, 25, 0.18);
  --scrollbar-thumb: #cfd9de;
  --scrollbar-track: #fff;
}
html[data-theme="light"] .logo {
  filter: invert(1) hue-rotate(180deg);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html {
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
  background: var(--bg);
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}
html[data-theme="light"] { color-scheme: light; }
svg { display: block; background: transparent; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.35;
  font-size: 15px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
::placeholder { color: var(--muted); opacity: 1; }
::selection { background: rgba(var(--accent-rgb), 0.35); }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: 1.25rem; }
h2 { font-size: 1.25rem; }
.page-head h1, .profile-names h1 { font-size: 1.25rem; }

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

.frame {
  display: grid;
  grid-template-columns: 275px minmax(0, var(--col)) 350px;
  justify-content: center;
  align-content: start;
  max-width: 1265px;
  margin: 0 auto;
  min-height: 100vh;
}
body:not(.landing):not(:has(.rail)) .frame {
  grid-template-columns: 1fr;
  max-width: 980px;
}
body.landing .frame {
  grid-template-columns: 1fr;
  max-width: 1265px;
}
body.landing .main { border: 0; max-width: none; padding-bottom: 0; }

.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 0.25rem 0.75rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.brand {
  display: flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  width: fit-content;
  padding: 0.7rem;
  border-radius: 12px;
}
.brand:hover { background: var(--hover); text-decoration: none; }
.brand.large { margin-bottom: 1.5rem; padding: 0.7rem 0; }
.logo {
  display: block;
  height: 28px;
  width: auto;
  flex-shrink: 0;
}
.brand.large .logo {
  height: 40px;
}
.rail nav { display: flex; flex-direction: column; gap: 0.15rem; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  color: var(--text);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 1.2rem;
  width: fit-content;
  max-width: 100%;
}
.nav-item:hover { background: var(--hover); text-decoration: none; }
.nav-item.active { font-weight: 700; }
.nav-item, .brand, .account, .back-btn, .icon-btn, .post.clickable {
  transition: background-color 0.15s ease, color 0.15s ease, filter 0.15s ease;
}
.nav-item svg { width: 26px; height: 26px; flex-shrink: 0; overflow: visible; }
.nav-item .ico-on { display: none; }
.nav-item.active .ico-off { display: none; }
.nav-item.active .ico-on { display: block; }
.compose-btn {
  margin: 0.75rem 0 0;
  width: 90%;
  max-width: 230px;
  padding: 0.85rem 1.15rem;
  font-size: 1.05rem;
}
.compose-ico { display: none; width: 24px; height: 24px; }
.rail-foot { margin-top: auto; display: flex; flex-direction: column; gap: 0.35rem; }
.guest-auth { gap: 0.5rem; }
.guest-auth .compose-btn { margin: 0; }
.rail-account {
  display: flex;
  align-items: center;
  min-width: 0;
  border-radius: 999px;
}
.rail-account:hover { background: var(--hover); }
.account {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  padding: 0.6rem 0.75rem;
  border-radius: 999px;
  min-width: 0;
  flex: 1;
}
.account:hover { background: var(--hover); text-decoration: none; }
.rail-account .account:hover { background: transparent; }
.account-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.account-meta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-meta span { color: var(--muted); font-size: 0.9rem; }
.rail-account .action-menu { flex-shrink: 0; margin-right: 0.2rem; }
.rail-account .action-menu .icon-btn:hover { color: var(--text); }
.rail-account .action-menu .icon-btn:hover .icon-wrap { background: transparent; }
.rail-account .action-menu .menu {
  left: auto;
  right: 0;
  bottom: calc(100% + 6px);
  min-width: 14rem;
}
.rail-account .action-menu .menu form { margin: 0; }
.rail-foot .text-btn { padding: 0 0.75rem 0.5rem; text-align: left; }

.main {
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  min-width: 0;
  max-width: var(--col);
  width: 100%;
  padding-bottom: 4rem;
}
.aside {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 0.75rem 0 1rem 1.75rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.aside-card {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem 1rem;
}
.aside-card h2 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.aside-card p { margin: 0 0 0.75rem; color: var(--muted); font-size: 0.95rem; }
.aside-card > .btn { width: 100%; }
.aside-legal {
  margin-top: auto;
  padding: 1.5rem 0.15rem 0.35rem;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--muted);
}
.aside-legal a { color: var(--muted); }
.aside-legal a:hover { color: var(--text); }
.aside-legal span { margin: 0 0.2rem; color: var(--muted); }
.aside-legal .legal-copy,
.landing-legal .legal-copy,
.auth-legal .legal-copy {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}
.landing-legal,
.auth-legal {
  margin: 2rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}
.landing-legal a,
.auth-legal a { color: var(--muted); }
.landing-legal a:hover,
.auth-legal a:hover { color: var(--text); }
.landing-legal span,
.auth-legal span { margin: 0 0.2rem; }

.page-head {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 53px;
  padding: 0 1rem;
  margin: 0;
  background: var(--chrome);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.page-head > div:not(.page-head-actions) {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.05rem;
}
.page-head-actions { margin-left: auto; flex: none; }
.page-head-actions .action-menu .menu {
  top: calc(100% + 4px); bottom: auto; right: 0; left: auto; min-width: 14rem;
}
.back-btn {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  color: var(--text);
  flex-shrink: 0;
}
.back-btn:hover { background: var(--hover); text-decoration: none; }
.back-btn svg { width: 20px; height: 20px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 22rem);
  gap: 3.5rem 6rem;
  align-items: center;
  min-height: 100vh;
  padding: 3rem 1.5rem 3rem 2rem;
}
.hero-copy { max-width: 38rem; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 0.5rem; }
.lede { color: var(--muted); font-size: 1.15rem; max-width: 42ch; margin: 0.5rem 0 0; }
.eyebrow { color: var(--muted); font-size: 0.95rem; margin: 0 0 0.35rem; }
.hero-join h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
}
.hero-join .lede { margin: 0.65rem 0 0; max-width: none; }
.hero-actions { display: flex; flex-direction: column; gap: 0.75rem; margin: 1.5rem 0 1rem; max-width: 300px; }
.hero-actions .btn { width: 100%; }
.hero-join .fine { margin: 0; color: var(--muted); }
.hero-join .landing-legal { margin-top: 1.75rem; }
.hero-points { display: grid; gap: 1.15rem; padding: 0; margin: 2.25rem 0 0; }
.hero-points div { padding: 0; }
.hero-points dt { font-weight: 700; }
.hero-points dd { margin: 0.25rem 0 0; color: var(--muted); }

.btn {
  -webkit-appearance: none; appearance: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; padding: 0.55rem 1.15rem;
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, filter 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--control-line); }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.primary:disabled {
  opacity: 0.5; cursor: default; filter: none;
}
.btn.small { padding: 0.4rem 1rem; font-size: 0.9rem; }
.btn.icon-circle {
  width: 36px; height: 36px; padding: 0; flex-shrink: 0;
  color: var(--text);
}
.btn.icon-circle svg { width: 18px; height: 18px; }
.btn.icon-circle .ico-on { display: none; }
.btn.icon-circle.on .ico-off { display: none; }
.btn.icon-circle.on .ico-on { display: block; }
.btn.icon-circle.on {
  color: var(--accent); border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.12); filter: none;
}
.btn.icon-circle:hover { background: var(--hover); filter: none; }
.follow-btn .label-on, .follow-btn .label-hover, .follow-btn .label-requested, .follow-btn .label-cancel,
.verify-btn .label-on, .verify-btn .label-hover { display: none; }
.follow-btn[data-on="true"] .label-off,
.follow-btn[data-requested="true"] .label-off,
.verify-btn[data-on="true"] .label-off { display: none; }
.follow-btn[data-on="true"] .label-on,
.verify-btn[data-on="true"] .label-on { display: inline; }
.follow-btn[data-requested="true"] .label-requested { display: inline; }
.follow-btn[data-on="true"]:hover,
.follow-btn[data-requested="true"]:hover,
.verify-btn[data-on="true"]:hover {
  color: var(--danger); border-color: rgba(244, 33, 46, 0.55);
  background: rgba(244, 33, 46, 0.1); filter: none;
}
.follow-btn[data-on="true"]:hover .label-on,
.verify-btn[data-on="true"]:hover .label-on { display: none; }
.follow-btn[data-on="true"]:hover .label-hover,
.verify-btn[data-on="true"]:hover .label-hover { display: inline; }
.follow-btn[data-requested="true"]:hover .label-requested { display: none; }
.follow-btn[data-requested="true"]:hover .label-cancel { display: inline; }
.text-btn {
  -webkit-appearance: none; appearance: none;
  background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 0;
}
.text-btn.danger, .btn.danger { color: var(--danger); }
.icon-btn {
  -webkit-appearance: none; appearance: none;
  background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.15rem;
  padding: 0; border-radius: 0; min-height: 0;
  text-decoration: none;
}
.icon-btn .icon-wrap {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { color: var(--accent); text-decoration: none; }
.icon-btn:hover .icon-wrap { background: rgba(var(--accent-rgb), 0.1); }
.icon-btn .ico-on { display: none; }
.icon-btn.on { color: var(--accent); }
.icon-btn.on .ico-off { display: none; }
.icon-btn.on .ico-on { display: block; }
.icon-btn.on.like, .icon-btn.like:hover { color: var(--like); }
.icon-btn.like:hover .icon-wrap { background: rgba(249, 24, 128, 0.1); }
.icon-btn.on.dislike, .icon-btn.dislike:hover { color: var(--dislike); }
.icon-btn.dislike:hover .icon-wrap { background: rgba(244, 33, 46, 0.1); }
.icon-btn.reply:hover { color: var(--accent); }

.card h2, .settings-hero h2 { margin: 0; font-size: 1.2rem; }
.card, .settings-hero {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 1.35rem 1rem 1.5rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.composer {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0.75rem 1rem 0.65rem;
  margin: 0;
}
.composer-row { display: grid; grid-template-columns: 40px 1fr; gap: 0.75rem; }
.composer textarea {
  min-height: 52px; width: 100%; overflow: hidden;
  background: transparent; border: 0; border-radius: 0; padding: 0.45rem 0;
  font-size: 1.15rem;
}
.composer-bar { display: flex; align-items: center; gap: 0.35rem; margin-top: 0.35rem; padding-top: 0.45rem; border-top: 1px solid var(--line); }
.composer-bar .count { margin-left: auto; color: var(--muted); font-size: 0.8rem; }
.composer-bar .btn { padding: 0.4rem 1rem; margin-left: 0.25rem; }
.composer-bar .count[hidden] + .btn { margin-left: auto; }
.emoji-popover {
  position: fixed; z-index: 45;
  width: min(22.5rem, calc(100vw - 1.25rem));
  background: var(--elevated); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-pop);
  padding: 0.35rem 0.4rem 0.45rem;
  overflow: hidden;
}
.emoji-popover[hidden] { display: none; }
.emoji-cats {
  display: flex; gap: 0.1rem; padding: 0.1rem 0.15rem 0.4rem;
  border-bottom: 1px solid var(--line); overflow-x: auto;
  scrollbar-width: none;
}
.emoji-cats::-webkit-scrollbar { display: none; }
.emoji-cats button {
  -webkit-appearance: none; appearance: none;
  flex: 1 0 auto; width: 32px; height: 32px; padding: 0;
  border: 0; border-radius: 8px; background: none;
  color: inherit; font-size: 1.1rem; line-height: 1; cursor: pointer;
}
.emoji-cats button.on, .emoji-cats button:hover { background: var(--hover); }
.emoji-grid {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 0.05rem;
  max-height: 13.5rem; overflow-y: auto; padding: 0.4rem 0.1rem 0.15rem;
}
.emoji-grid button {
  -webkit-appearance: none; appearance: none;
  width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 8px;
  background: none; font-size: 1.35rem; line-height: 1; cursor: pointer;
}
.emoji-grid button:hover { background: rgba(29, 155, 240, 0.16); }
.emoji-empty { grid-column: 1 / -1; margin: 0.85rem 0.4rem; color: var(--muted); font-size: 0.88rem; }

.timeline {
  background: transparent;
  border: 0;
  border-radius: 0;
  margin: 0;
  overflow: visible;
}
.timeline > .post,
.post {
  padding: 0.75rem 1rem 0.55rem;
  border-bottom: 1px solid var(--line);
}
.timeline > .post:last-child { border-bottom: 1px solid var(--line); }
.post.clickable { cursor: pointer; }
.post.clickable:hover { background: var(--hover-faint); }
.post-layout { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0.75rem; }
.avatar-col { position: relative; }
.post-main { min-width: 0; }
.avatar {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: hsl(var(--h, 210), 55%, 42%);
  color: #fff; font-weight: 700; font-size: 1rem;
  overflow: hidden; flex-shrink: 0;
}
.avatar img, img.avatar { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 32px; height: 32px; font-size: 0.85rem; }
.avatar.lg { width: 80px; height: 80px; font-size: 2rem; border: 4px solid var(--bg); }
.avatar-link { display: block; width: 40px; height: 40px; border-radius: 50%; }
.avatar-link:hover { text-decoration: none; filter: brightness(0.92); }

.thread-focus > .post,
.thread-parent > .post {
  background: transparent;
  border: 0;
  border-radius: 0;
  margin: 0;
}
.thread-parent > .post {
  border-bottom: 0;
  padding: 0.75rem 1rem 0.15rem;
}
.thread-focus > .post {
  border-bottom: 1px solid var(--line);
  padding: 0.35rem 1rem 0.85rem;
}
.thread-focus > .post .body { font-size: 1.35rem; line-height: 1.4; }
.thread-parent { position: relative; }
.thread-parent .avatar-col { align-self: stretch; }
.thread-parent .avatar-col::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 44px;
  bottom: -0.5rem;
  width: 2px;
  background: var(--line);
}
.thread-replies h2 {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 700;
  margin: 0;
  padding: 0.85rem 1rem 0.5rem;
  border-bottom: 1px solid var(--line);
}
.reply-count, .action-n { font-size: 0.8rem; }
.empty { padding: 2rem 1rem; color: var(--muted); text-align: center; }
.page-head .sub, .hint, .fine, .handle, .time, .empty, .sep { color: var(--muted); }
.page-head .sub { margin: 0; font-size: 0.82rem; line-height: 1.2; }
.hint { margin: 0; }
.hint:empty { display: none; }
.stack { display: flex; flex-direction: column; gap: 0.85rem; }
label { display: flex; flex-direction: column; gap: 0.35rem; font-weight: 700; font-size: 0.92rem; }
input, textarea {
  font: inherit; color: var(--text); background: transparent;
  border: 1px solid var(--input-line); border-radius: 4px; padding: 0.75rem 0.75rem;
}
input:focus, textarea:focus { border-color: var(--accent); outline: none; }
textarea { min-height: 110px; resize: vertical; }
.check {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  width: 100%;
  font-weight: 500;
  cursor: pointer;
}
.check input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  order: 1;
  width: 51px;
  height: 31px;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--toggle-track);
  box-shadow: inset 0 0 0 1px var(--line);
  position: relative;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.check input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}
.check input[type="checkbox"]:checked {
  background: var(--accent);
  box-shadow: none;
}
.check input[type="checkbox"]:checked::after {
  transform: translateX(20px);
}
.check input[type="checkbox"]:focus {
  border: 0;
  outline: none;
}
.check input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.composer textarea {
  min-height: 52px; max-height: 220px; width: 100%; overflow: hidden; resize: none;
  background: transparent; border: 0; border-radius: 0; padding: 0.45rem 0;
  font-size: 1.15rem;
}
.composer textarea:focus { border: 0; outline: none; }
.composer-bar .count.warn { color: #ffd400; }
.composer-bar .count.over { color: var(--danger); }
.media-preview { position: relative; margin: 0.4rem 0 0.55rem; min-height: 2.5rem; }
.media-preview-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.35rem;
}
.media-preview-item { position: relative; }
.media-preview-item img, .media-preview-item video {
  display: block; width: 100%; height: 140px; object-fit: cover;
  border-radius: 16px; border: 1px solid var(--line); background: var(--media-bg);
}
.media-preview-item .media-clear { position: absolute; top: 0.35rem; right: 0.35rem; }
.media-clear {
  position: absolute; top: 0.45rem; right: 0.45rem;
  width: 28px; height: 28px; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, 0.7); color: #fff; font: inherit; font-size: 1.1rem;
  cursor: pointer; line-height: 1;
}

.post-head { display: flex; align-items: baseline; gap: 0.35rem; min-width: 0; }
.post-byline { display: flex; align-items: baseline; gap: 0.3rem; min-width: 0; flex: 1; }
.who {
  display: flex; flex-direction: row; align-items: baseline; gap: 0.3rem;
  color: var(--text); text-decoration: none; line-height: 1.2; min-width: 0;
}
.who:hover { text-decoration: none; }
.who:hover strong { text-decoration: underline; }
.who-name {
  display: inline-flex; align-items: center; gap: 0.15rem; min-width: 0;
}
.who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.who-handle {
  color: var(--muted); font-size: 0.95rem; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.verified,
.who .verified,
.account-meta .verified,
.profile-names .verified,
.page-head .verified {
  display: inline-flex; width: 1.15em; height: 1.15em; flex-shrink: 0;
  color: var(--accent); vertical-align: -0.18em; margin-left: 0.15rem;
  overflow: visible; font-size: inherit;
}
.who-name .verified { margin-left: 0; }
.verified svg { width: 100%; height: 100%; display: block; }
.profile-names h1, .page-head h1, .account-meta strong {
  display: inline-flex; align-items: center; min-width: 0;
}
.time { font-size: 0.95rem; flex-shrink: 0; color: var(--muted); }
.time:hover { text-decoration: underline; }
.body { margin: 0.15rem 0 0.4rem; overflow-wrap: anywhere; font-size: 15px; line-height: 1.4; }
.actions {
  display: flex;
  justify-content: space-between;
  max-width: 510px;
  margin: 0.15rem 0 0 -0.5rem;
}
.mention, .hashtag { color: var(--accent); }
.pin-label {
  display: flex; align-items: center; gap: 0.3rem;
  color: var(--muted); font-size: 0.82rem; font-weight: 700; margin: 0 0 0.2rem;
}
.pin-label svg { width: 14px; height: 14px; }
.quote {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.7rem 0.85rem;
  margin: 0.5rem 0 0.35rem;
  color: var(--text);
  cursor: pointer;
}
.quote:hover { background: var(--hover-faint); }
.quote .body { margin: 0.25rem 0 0; font-size: 0.95rem; }
.link-card {
  display: flex; gap: 0.75rem; align-items: stretch;
  margin: 0.55rem 0 0.35rem; overflow: hidden;
  border: 1px solid var(--line); border-radius: 16px;
  color: var(--text); text-decoration: none;
}
.link-card:hover { background: var(--hover-faint); text-decoration: none; }
.link-card-img { flex: 0 0 120px; max-width: 38%; background: var(--media-bg); }
.link-card-img img { width: 100%; height: 100%; min-height: 88px; max-height: 120px; object-fit: cover; display: block; }
.link-card-copy {
  display: flex; flex-direction: column; gap: 0.2rem; justify-content: center;
  min-width: 0; padding: 0.7rem 0.85rem;
}
.link-card:has(.link-card-img) .link-card-copy { padding-left: 0; }
.link-card-copy strong { font-size: 0.95rem; }
.link-card-copy span { color: var(--muted); font-size: 0.85rem; }
.link-card-site { text-transform: lowercase; }
.poll { display: grid; gap: 0.4rem; margin: 0.55rem 0 0.35rem; }
.poll-option {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; width: 100%; padding: 0.7rem 0.85rem; border-radius: 16px;
  border: 1px solid var(--line); background: transparent; color: inherit; font: inherit;
  text-align: left; overflow: hidden;
}
button.poll-option.vote { cursor: pointer; }
button.poll-option.vote:hover { border-color: var(--accent); background: var(--hover-faint); }
.poll-bar {
  position: absolute; inset: 0 auto 0 0; width: var(--pct, 0%);
  background: rgba(29, 155, 240, 0.22); pointer-events: none;
}
.poll-label, .poll-pct { position: relative; z-index: 1; }
.poll-pct { color: var(--muted); font-variant-numeric: tabular-nums; }
.poll-option.picked { border-color: var(--accent); }
.poll-option.picked .poll-label { font-weight: 700; }
.poll-meta { margin: 0.15rem 0.15rem 0; color: var(--muted); font-size: 0.82rem; }
.poll-editor {
  display: grid; gap: 0.45rem; margin: 0.45rem 0 0.15rem;
}
.poll-editor[hidden] { display: none; }
.poll-editor input {
  width: 100%; padding: 0.65rem 0.85rem; border-radius: 16px;
  border: 1px solid var(--line); background: transparent; color: inherit; font: inherit;
}
.poll-editor input:focus { border-color: var(--accent); outline: none; }
.poll-editor-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.poll-duration { display: flex; align-items: center; gap: 0.5rem; color: var(--muted); font-size: 0.88rem; font-weight: 500; }
.poll-duration select {
  margin-top: 0; width: auto; padding: 0.35rem 0.55rem;
  border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: inherit; font: inherit;
}
.inbox { border-bottom: 1px solid var(--line); }
.inbox-row {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line); color: inherit; text-decoration: none;
}
.inbox-row:hover { text-decoration: none; background: var(--hover-faint); }
.inbox-row.unread { box-shadow: inset 3px 0 0 var(--accent); }
.inbox-copy { display: grid; gap: 0.15rem; min-width: 0; flex: 1; }
.inbox-byline {
  display: flex; align-items: baseline; gap: 0.35rem; min-width: 0;
}
.inbox-byline strong {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.inbox-preview { color: var(--muted); font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm { display: flex; flex-direction: column; }
.dm:has(.dm-compose) { min-height: calc(100vh - 53px - 4rem); }
.dm-log { display: flex; flex-direction: column; gap: 0.55rem; flex: 1; padding: 0.85rem 1rem 1rem; }
.dm-log .empty { padding: 2rem 0; }
.dm-bubble {
  max-width: min(78%, 28rem); padding: 0.7rem 0.85rem; border-radius: 16px;
  background: transparent; border: 1px solid var(--line); align-self: flex-start;
}
.dm-bubble.mine { align-self: flex-end; background: rgba(29, 155, 240, 0.12); border-color: rgba(29, 155, 240, 0.35); }
.dm-bubble time { display: block; margin-top: 0.3rem; color: var(--muted); font-size: 0.75rem; }
.dm-compose {
  display: flex; gap: 0.35rem; align-items: flex-end;
  padding: 0.75rem 1rem; border-top: 1px solid var(--line);
  background: var(--chrome); backdrop-filter: blur(12px);
  position: sticky; bottom: 0;
}
.dm-compose .icon-btn { margin-bottom: 0.15rem; }
.dm-compose textarea {
  flex: 1; min-height: 44px; max-height: 140px; resize: none;
  padding: 0.45rem 0; border: 0; border-radius: 0;
  background: transparent; color: inherit; font: inherit; font-size: 1.05rem;
}
.dm-compose textarea:focus { border: 0; outline: none; }
.dm-hint { padding: 0.85rem 1rem; }
.welcome-copy { border-bottom: 0; padding-bottom: 0.4rem; }
.welcome-copy .lede { margin: 0; max-width: 42ch; }
.welcome-actions { padding: 1rem; }
.media-grid { display: grid; gap: 0.25rem; margin: 0.5rem 0 0.35rem; border-radius: 16px; overflow: hidden; }
.media-grid.count-2, .media-grid.count-4 { grid-template-columns: 1fr 1fr; }
.media-grid.count-3 { grid-template-columns: 1.2fr 1fr; }
.media-grid.count-3 .media-open:first-child { grid-row: 1 / span 2; }
.media-open {
  display: block; width: 100%; padding: 0; border: 0; background: var(--media-bg);
  cursor: zoom-in; line-height: 0; position: relative;
}
.media-open.video { cursor: pointer; }
.media-grid img, .media-grid video {
  width: 100%; max-height: 280px; object-fit: cover; display: block;
  border: 0;
}
.media-grid.count-2 img, .media-grid.count-2 video,
.media-grid.count-3 img, .media-grid.count-3 video,
.media-grid.count-4 img, .media-grid.count-4 video { height: 180px; max-height: none; }
.media-play {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-size: 1.4rem; text-shadow: 0 1px 8px rgba(0,0,0,0.6);
  background: rgba(0,0,0,0.18); pointer-events: none;
}
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: rgba(0, 0, 0, 0.92); color: #fff;
}
.lightbox::backdrop { background: #000; }
.lightbox-stage {
  display: grid; place-items: center; width: 100%; height: 100%;
  padding: 3.75rem 4.5rem 3rem;
}
.lightbox-stage img, .lightbox-stage video {
  max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px;
}
.lightbox-stage video { width: min(96vw, 1100px); background: #000; }
.lightbox-close, .lightbox-nav {
  position: absolute; z-index: 1; width: 42px; height: 42px; border: 0;
  border-radius: 50%; background: rgba(15, 20, 25, 0.75); color: #fff;
  font: inherit; font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.lightbox-close { top: 0.85rem; right: 0.85rem; font-size: 1.7rem; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-nav.prev { left: 0.75rem; }
.lightbox-nav.next { right: 0.75rem; }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(39, 44, 48, 0.95); }
.lightbox-count {
  position: absolute; left: 50%; bottom: 0.85rem; transform: translateX(-50%);
  margin: 0; color: #fff; font-size: 0.9rem;
}
.lightbox-fs {
  position: absolute; z-index: 1; left: 0.85rem; top: 0.85rem;
  border: 0; border-radius: 999px; padding: 0.4rem 0.75rem;
  background: rgba(15, 20, 25, 0.75); color: #fff; font: inherit; font-size: 0.85rem;
  cursor: pointer;
}
.lightbox-fs:hover { background: rgba(39, 44, 48, 0.95); }
.reply-to { color: var(--muted); font-size: 0.82rem; margin: 0 0 0.25rem; }
.repost-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.15rem;
  padding-left: 3.15rem;
  min-height: 1.6rem;
}
.repost-label { color: var(--muted); font-size: 0.82rem; margin: 0; flex: 1; min-width: 0; }
.repost-row .action-menu { margin-left: auto; margin-right: -0.5rem; }
.repost-row .action-menu .menu {
  left: auto;
  right: 0;
  bottom: auto;
  top: 2.2rem;
}
.post .post {
  margin: 0.45rem 0 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: transparent;
}

.signal {
  font: inherit; font-size: 0.75rem; font-weight: 700; line-height: 1.3;
  padding: 0.12rem 0.5rem;
  border-radius: 999px; border: 1px solid var(--line); flex-shrink: 0;
  color: var(--muted); background: transparent;
}
.signal.high { color: #00ba7c; border-color: rgba(0, 186, 124, 0.35); }
.signal.mid { color: var(--mid); border-color: rgba(var(--accent-rgb), 0.35); }
.signal.low { color: var(--dislike); border-color: rgba(244, 33, 46, 0.35); }
.signal.unrated { color: var(--muted); }
.timeline-pager {
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
  min-height: 3rem; padding: 0.75rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
}
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  background: var(--accent); color: #fff; border: 0;
  padding: 0.65rem 1.1rem; border-radius: 4px; z-index: 40;
  max-width: min(90vw, 420px); font-weight: 700; font-size: 0.92rem;
}
.tabbar { display: none; }
.compose-fab { display: none; }

.profile-head { margin: 0; }
.profile-banner {
  height: 133px;
  background: linear-gradient(135deg, hsl(var(--h, 210), 40%, 28%), hsl(var(--h, 210), 50%, 12%));
  overflow: hidden; position: relative; z-index: 0;
}
.profile-banner img {
  display: block; width: 100%; height: 100%; object-fit: cover;
}
.profile-main {
  position: relative; z-index: 1;
  padding: 0 1rem 1rem; border-bottom: 1px solid var(--line);
}
.profile-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-top: -40px; margin-bottom: 0.65rem; gap: 0.75rem;
}
.profile-row > .avatar { position: relative; z-index: 2; }
.profile-actions {
  display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 0.5rem;
  padding: calc(40px + 0.45rem) 0 0.35rem;
  position: relative; z-index: 3;
}
.profile-actions .action-menu .menu {
  top: calc(100% + 4px); bottom: auto; right: 0; left: auto; min-width: 14rem;
}
.profile-names { margin-top: 0.15rem; }
.profile-names h1 { font-size: 1.25rem; }
.handle { margin: 0.1rem 0 0; font-size: 0.95rem; }
.muted-chip { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.85rem; }
.lock-inline { display: inline-block; width: 0.9em; height: 0.9em; vertical-align: -0.1em; margin-left: 0.15rem; }
.notice-actions { margin-left: auto; display: flex; gap: 0.4rem; flex-shrink: 0; align-items: center; }
.ban-notice {
  margin: 0.5rem 1rem 1.5rem;
  padding: 1.1rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-2);
}
.ban-notice h2 { font-size: 1.05rem; margin: 0 0 0.4rem; }
.ban-notice p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.45; }
.bio { margin: 0.75rem 0 0; }
.stats { color: var(--muted); margin: 0.75rem 0 0; display: flex; gap: 1rem; }
.stats strong { color: var(--text); }
.stats a { color: var(--muted); text-decoration: none; }
.stats a:hover { text-decoration: underline; color: var(--text); }

.nav-item { position: relative; }
.badge {
  min-width: 1.1rem; height: 1.1rem; padding: 0 0.3rem;
  border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 0.7rem; font-weight: 700; line-height: 1.1rem; text-align: center;
}
.nav-item .badge { margin-left: -0.35rem; }
.tabbar a { position: relative; }
.tabbar .badge {
  position: absolute; top: 0.2rem; right: calc(50% - 1.35rem);
}

.search-head { padding: 0.55rem 1rem; }
.search-form { flex: 1; }
.search-form input {
  width: 100%; border-radius: 999px; background: var(--bg-2); border-color: transparent;
  padding: 0.7rem 1rem;
}
.aside-search { margin: 0; }
.aside-card:has(.aside-search) {
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
}
.aside-search input {
  width: 100%;
  border-radius: 0;
  background: transparent;
  border-color: transparent;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}
.aside-search input::-webkit-search-decoration,
.aside-search input::-webkit-search-cancel-button { display: none; }
.aside-search input:focus { border-color: transparent; }
.aside-card:has(.aside-search):focus-within { border-color: var(--accent); }
.aside .aside-card + .aside-card { margin-top: 1rem; }
.result-block h2, .tabs {
  font-size: 0.95rem; font-weight: 700; margin: 0; padding: 0.85rem 1rem 0.5rem;
  border-bottom: 1px solid var(--line);
}
.tabs { display: flex; gap: 1.25rem; padding: 0 1rem; }
.tabs a { color: var(--muted); padding: 0.85rem 0 0.7rem; border-bottom: 3px solid transparent; }
.tabs a.active { color: var(--text); border-bottom-color: var(--accent); }
.tabs a:hover { text-decoration: none; color: var(--text); }
.settings-tabs {
  position: sticky;
  top: 53px;
  z-index: 9;
  overflow-x: auto;
  flex-wrap: nowrap;
  gap: 1.5rem;
  background: var(--chrome);
  backdrop-filter: blur(12px);
  scrollbar-width: none;
}
.settings-tabs::-webkit-scrollbar { display: none; }
.settings-tabs a { white-space: nowrap; flex: 0 0 auto; }
.empty.tight { padding: 1rem; }
.people { border-bottom: 1px solid var(--line); }
.person {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1rem; border-bottom: 1px solid var(--line);
}
.person-main {
  display: flex; align-items: center; gap: 0.75rem; min-width: 0; flex: 1;
  color: var(--text); text-decoration: none;
}
.person-main:hover { text-decoration: none; }
.person-main:hover strong { text-decoration: underline; }
.notice-list { border-bottom: 1px solid var(--line); }
.notice {
  display: flex; gap: 0.75rem; padding: 0.9rem 1rem;
  color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line);
}
.notice:hover { background: var(--hover-faint); text-decoration: none; }
.notice.unread { box-shadow: inset 3px 0 0 var(--accent); }
.notice-body { display: block; color: var(--muted); margin-top: 0.2rem; }
.edited { color: var(--muted); font-size: 0.85rem; }
.action-menu { position: relative; }
.action-menu .menu {
  position: absolute; bottom: 2.4rem; left: 0; z-index: 12;
  min-width: 10rem; padding: 0.35rem 0;
  background: var(--elevated); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow);
}
.action-menu .menu button,
.action-menu .menu a {
  display: flex; align-items: center; gap: 0.7rem;
  width: 100%; text-align: left;
  background: none; border: 0; color: var(--text);
  font: inherit; padding: 0.65rem 0.9rem; cursor: pointer;
  text-decoration: none;
}
.action-menu .menu button svg,
.action-menu .menu a svg { width: 18px; height: 18px; flex-shrink: 0; }
.action-menu .menu button:hover,
.action-menu .menu a:hover { background: var(--hover); text-decoration: none; }
.action-menu .menu button.danger { color: var(--danger); }
.icon-btn.on.repost, .icon-btn.repost:hover { color: #00ba7c; }
.icon-btn.repost:hover .icon-wrap { background: rgba(0, 186, 124, 0.1); }
.icon-btn.on.bookmark, .icon-btn.bookmark:hover { color: var(--accent); }
.icon-btn.bookmark:hover .icon-wrap { background: rgba(var(--accent-rgb), 0.1); }
.trend-list { list-style: none; margin: 0.35rem 0 0; padding: 0; }
.trend-list li { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.45rem 0; }
.trend-list a { color: var(--text); font-weight: 700; }
.trend-list span { color: var(--muted); font-size: 0.82rem; }
.passkey-list input {
  flex: 1; min-width: 0; background: transparent; border: 1px solid var(--line);
  color: inherit; font: inherit; border-radius: 8px; padding: 0.35rem 0.5rem;
}
.edit-form { margin: 0.15rem 0 0.4rem; }
.edit-form textarea {
  width: 100%; min-height: 80px; resize: vertical;
  background: transparent; border: 1px solid var(--line); border-radius: 8px;
  padding: 0.55rem 0.65rem; font-size: 15px;
}
.avatar-edit { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.avatar-edit .avatar.lg { border-width: 0; }
.profile-editor { margin: 0.15rem 0 0.25rem; position: relative; }
.profile-editor .profile-banner { border-radius: 12px; height: 120px; z-index: 0; }
.profile-editor-avatar { margin: -40px 0 0 0.75rem; width: fit-content; position: relative; z-index: 2; }
.profile-editor-avatar .avatar.lg { border-width: 4px; }
.profile-editor-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem 0.85rem;
  margin: 0.85rem 0 0.15rem;
}

.auth-body { display: grid; place-items: center; background: var(--bg); }
.auth-shell { width: min(420px, calc(100% - 2rem)); padding: 3rem 0; }
.auth-card { background: transparent; border: 0; border-radius: 0; padding: 0; }
.auth-card h1 { font-size: 1.9rem; margin-bottom: 1.25rem; }
.auth-card .btn { width: 100%; }
.auth-card .btn.ghost { margin-top: 0.75rem; }
.auth-card .fine { margin-top: 1.15rem; }
.auth-foot { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 2rem; }
.flashes { display: flex; flex-direction: column; gap: 0.5rem; margin: 0; }
.flash {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.main .flashes { border-bottom: 1px solid var(--line); }
.flash.error { color: var(--danger); }
.flash.ok { color: #00ba7c; }
.flash { transition: opacity 0.35s ease; }
.flash.out { opacity: 0; }
.backup-box {
  margin: 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.backup-box p { margin: 0 0 0.5rem; color: var(--muted); font-size: 0.9rem; }
.backup-box pre { margin: 0; white-space: pre-wrap; font: inherit; }
.mfa-qr {
  width: fit-content;
  padding: 0.7rem;
  background: #fff;
  border-radius: 12px;
}
.mfa-qr img { display: block; width: 180px; height: 180px; }
.banner {
  display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap;
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0; padding: 0.75rem 1rem; margin: 0;
}
.inline { display: inline; }
.narrow { padding: 3rem 1rem; }
.legal-page .frame {
  grid-template-columns: 1fr;
  max-width: 720px;
}
.legal-page .main { border: 0; max-width: none; padding-bottom: 3rem; }
.legal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  padding: 0 1rem;
  border-bottom: 1px solid var(--line);
}
.legal-tabs a {
  color: var(--muted);
  padding: 0.85rem 0 0.7rem;
  border-bottom: 3px solid transparent;
  font-weight: 700;
  font-size: 0.92rem;
}
.legal-tabs a.active { color: var(--text); border-bottom-color: var(--accent); }
.legal-tabs a:hover { text-decoration: none; color: var(--text); }
.legal-doc {
  padding: 1.25rem 1rem 2.5rem;
  max-width: 42rem;
  line-height: 1.55;
}
.legal-doc h2 { font-size: 1.15rem; margin: 1.6rem 0 0.5rem; }
.legal-doc h3 { font-size: 1rem; margin: 1.1rem 0 0.35rem; }
.legal-doc p, .legal-doc li { color: var(--text); font-size: 0.95rem; }
.legal-doc p { margin: 0 0 0.85rem; }
.legal-doc ul { margin: 0 0 0.9rem; padding-left: 1.2rem; }
.legal-doc li { margin: 0.3rem 0; }
.legal-doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1rem;
  font-size: 0.88rem;
}
.legal-doc th, .legal-doc td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid var(--line);
}
.legal-doc th { color: var(--muted); font-weight: 600; }
.settings-hero label + label { margin-top: 0; display: flex; }
.slider-label input[type=range] { width: 100%; accent-color: var(--accent); }
.passkey-list { list-style: none; padding: 0; margin: 0; }
.passkey-list:empty { display: none; }
.passkey-list li { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.passkey-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.settings-hero .lede { font-size: 0.95rem; margin: 0; max-width: none; }
.settings-hero .lede:empty,
[data-mfa-panel]:empty { display: none; }
.card .btn, .settings-hero .btn { margin-top: 0; align-self: flex-start; }
.settings-hero select, .card select {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371767b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
  border: 1px solid var(--input-line);
  border-radius: 4px;
  padding: 0.75rem 2.25rem 0.75rem 0.75rem;
  -webkit-appearance: none;
  appearance: none;
}
.settings-hero select:focus, .card select:focus {
  border-color: var(--accent);
  outline: none;
}

@media (max-width: 1279px) {
  .aside { display: none; }
  .frame { grid-template-columns: 275px minmax(0, var(--col)); max-width: 920px; }
}
@media (max-width: 1004px) {
  .frame { grid-template-columns: 80px minmax(0, var(--col)); max-width: 720px; }
  .rail { padding: 0.15rem 0.4rem 0.75rem; align-items: center; }
  .brand { padding: 0.45rem; }
  .rail .logo { height: 18px; }
  .nav-item span, .compose-btn span, .account-meta, .rail-foot .text-btn,
  .rail-account .action-menu { display: none; }
  .nav-item { padding: 0.7rem; }
  .compose-btn { width: 50px; height: 50px; padding: 0; max-width: none; }
  .compose-ico { display: block; }
  .account { padding: 0.5rem; }
}
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
    min-height: 0;
    padding: 3rem 1.5rem;
  }
  .hero-join { max-width: 22rem; }
}
@media (max-width: 640px) {
  .frame, body:not(:has(.rail)) .frame {
    grid-template-columns: 1fr;
    grid-template-rows: max-content minmax(0, 1fr);
    max-width: none;
    align-content: start;
    align-items: start;
  }
  .rail {
    position: sticky; top: 0; z-index: 20; height: auto; flex-direction: row;
    flex-wrap: nowrap; gap: 0.5rem; padding: 0 0.75rem;
    padding-top: env(safe-area-inset-top);
    border-right: 0; border-bottom: 1px solid var(--line); align-items: center;
    background: var(--chrome);
    backdrop-filter: blur(12px);
  }
  .rail nav, .compose-btn { display: none; }
  .rail-foot { margin-top: 0; margin-left: auto; flex-direction: row; align-items: center; gap: 0.5rem; }
  .rail-foot .text-btn { display: inline; }
  .rail-account .action-menu { display: block; }
  .rail-account .action-menu .menu {
    top: calc(100% + 4px);
    bottom: auto;
  }
  .guest-auth .compose-btn {
    display: inline-flex;
    width: auto;
    height: auto;
    padding: 0.4rem 1rem;
    margin: 0;
    max-width: none;
    font-size: 0.9rem;
  }
  .guest-auth .compose-ico { display: none; }
  .guest-auth .compose-btn span { display: inline; }
  .rail-foot.guest-auth .text-btn { display: none; }
  .account { padding: 0.35rem; }
  .rail .logo { height: 26px; }
  .brand { padding: 0.55rem 0.15rem; }
  .main {
    border-left: 0; border-right: 0; max-width: none;
    padding-bottom: calc(4.6rem + env(safe-area-inset-bottom));
  }
  body:not(:has(.tabbar)) .main { padding-bottom: 1.5rem; }
  .page-head { min-height: 53px; }
  .media-grid img, .media-grid video { max-height: 220px; }
  .lightbox-stage { padding: 3.5rem 1rem 2.75rem; }
  .lightbox-nav.prev { left: 0.35rem; }
  .lightbox-nav.next { right: 0.35rem; }
  .composer-bar { flex-wrap: wrap; gap: 0.5rem; }
  .dm:has(.dm-compose) { min-height: calc(100vh - 53px - 4.6rem - env(safe-area-inset-bottom)); }
  .dm-compose { bottom: calc(4.6rem + env(safe-area-inset-bottom)); }
  .hero {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    align-items: start;
    min-height: 0;
    padding: 2.5rem 1rem 3rem;
  }
  .hero-join { max-width: 22rem; }
  .hero-actions { max-width: none; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--chrome-strong);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    padding: 0.15rem 0.4rem calc(0.15rem + env(safe-area-inset-bottom));
  }
  .tabbar a {
    flex: 1; display: grid; place-items: center;
    color: var(--muted); text-decoration: none;
    padding: 0.55rem 0.2rem; border-radius: 0;
  }
  .tabbar a:hover { text-decoration: none; color: var(--text); }
  .tabbar a svg { width: 26px; height: 26px; overflow: visible; }
  .tabbar a.active { color: var(--text); }
  .tabbar a .ico-on { display: none; }
  .tabbar a.active .ico-off { display: none; }
  .tabbar a.active .ico-on { display: block; }
  .toast { bottom: calc(4.6rem + env(safe-area-inset-bottom)); }
  .compose-fab {
    display: grid; place-items: center;
    position: fixed; z-index: 31;
    right: 1rem; bottom: calc(4.8rem + env(safe-area-inset-bottom));
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--accent); color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  }
  .compose-fab:hover { text-decoration: none; filter: brightness(1.08); }
  .compose-fab svg { width: 24px; height: 24px; }
}
button.signal {
  cursor: pointer;
}
button.signal:hover {
  background: var(--hover);
  text-decoration: none;
}
.sheet {
  width: min(32rem, calc(100% - 2rem));
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--elevated);
  color: var(--text);
  padding: 0;
}
.sheet::backdrop { background: var(--overlay); }
.sheet-form { padding: 1.1rem 1.15rem 1.2rem; display: flex; flex-direction: column; gap: 0.8rem; }
.sheet-form h2 { font-size: 1.15rem; }
.sheet-form h3 { font-size: 0.95rem; color: var(--muted); margin: 0 0 0.35rem; }
.sheet-form .people { border-bottom: 0; }
.sheet-form .person { padding-left: 0; padding-right: 0; }
.sheet-form .person:last-child { border-bottom: 0; }
.sheet-form select,
.sheet-form textarea,
.media-alt {
  width: 100%;
  background: transparent;
  border: 1px solid var(--line);
  color: inherit;
  font: inherit;
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
}
.sheet-actions { display: flex; justify-content: flex-end; gap: 0.75rem; align-items: center; }
.signal-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.report-head { display: flex; justify-content: space-between; gap: 0.75rem; align-items: flex-start; }
.report-head p { margin: 0; }
.report-quote {
  margin: 0;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
}
.report-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.people.compact .person { padding: 0.45rem 0; }
.aside .people.compact { border-bottom: 0; }
.aside .people.compact .person:last-child { border-bottom: 0; }
.analytics-post {
  display: block; color: inherit; text-decoration: none;
  padding: 0.85rem 1rem; border-bottom: 1px solid var(--line);
}
.analytics-post:hover { background: var(--hover); text-decoration: none; }
.analytics-post p { margin: 0 0 0.35rem; }
.analytics-post time { color: var(--muted); font-size: 0.88rem; }
.analytics-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); border-bottom: 1px solid var(--line);
}
.analytics-stat {
  background: var(--bg); padding: 1rem;
}
.analytics-stat strong {
  display: block; font-size: 1.45rem; letter-spacing: -0.03em; line-height: 1.1;
}
.analytics-stat span { color: var(--muted); font-size: 0.88rem; }
.analytics-section { padding: 1.1rem 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.analytics-section h2 { font-size: 1.05rem; margin-bottom: 0.75rem; }
.analytics-scores {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; margin-bottom: 0.9rem;
}
.analytics-score {
  border: 1px solid var(--line); border-radius: 12px; padding: 0.85rem 0.9rem;
}
.analytics-score strong { display: block; font-size: 1.6rem; letter-spacing: -0.03em; }
.analytics-score span { color: var(--muted); font-size: 0.82rem; }
.analytics-bar {
  display: flex; height: 8px; border-radius: 999px; overflow: hidden;
  background: var(--line); margin: 0.35rem 0 0.5rem;
}
.analytics-bar .like { background: var(--like); }
.analytics-bar .dislike { background: var(--dislike); }
.analytics-legend { display: flex; gap: 1rem; color: var(--muted); font-size: 0.88rem; margin: 0; }
.analytics-poll { list-style: none; margin: 0; padding: 0; }
.analytics-poll li {
  display: flex; justify-content: space-between; gap: 0.75rem;
  padding: 0.45rem 0; border-bottom: 1px solid var(--line);
}
.analytics-poll li:last-child { border-bottom: 0; }
.suggest-block { border-top: 1px solid var(--line); padding: 1rem 0 1.5rem; }
.suggest-block h2 { font-size: 1.15rem; padding: 0 1rem 0.5rem; }
.media-preview-item .media-alt { margin-top: 0.35rem; font-size: 0.85rem; }
.lede.tight { padding: 0 1rem 0.5rem; color: var(--muted); }
input[readonly] { color: var(--muted); }
.age-script {
  margin: 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--accent);
  font-size: 1.15rem;
  line-height: 1.45;
}
.age-code {
  font-size: 2rem;
  letter-spacing: 0.18em;
  font-variant-numeric: tabular-nums;
  margin: 0;
}
.age-rules { margin: 0; padding-left: 1.1rem; }
.age-slot {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.age-tabs { margin: 0.15rem 0 0.85rem; padding: 0; gap: 1.1rem; }
.age-tabs button {
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  padding: 0.7rem 0;
  cursor: pointer;
}
.age-tabs button.active { color: var(--text); border-bottom-color: var(--accent); }
.age-tabs button.done::after {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 0.05rem;
}
.age-slot video, .age-slot img, .age-evidence img, .age-evidence video {
  width: 100%;
  max-height: 320px;
  background: var(--media-bg);
  border-radius: 8px;
  object-fit: contain;
}
.age-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.age-evidence { display: grid; gap: 1rem; }
.age-evidence figcaption { font-weight: 700; margin-bottom: 0.35rem; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.data-table th, .data-table td {
  text-align: left;
  padding: 0.45rem 0.35rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.data-table form { margin: 0; }

@media (max-width: 720px) {
  .signal-cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
