@font-face {
  font-family: "Jost";
  src: url("../typography/jost-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../typography/jost-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../typography/jost-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../typography/jost-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #0b0b0f;
  --text-soft: #43475c;
  --muted: #6b6f84;
  --primary: #0b8afe;
  --primary-text: #ffffff;
  --tint: #eef5fd;
  --line: #eff0f4;
  --warm-bg: #fee9c1;
  --warm-text: #c27400;
  --tier-gold: #e09a00;
  --tier-purple: #8b5cf6;
  --danger: #ef4444;
  --radius-sm: 12px;
  --radius-md: 10px;
  --radius-full: 999px;
  --nav-height: 58px;
  --nav-total: calc(var(--nav-height) + 16px);
  --page-padding: 24px;
  --sidebar-width: 260px;
  --column-width: 600px;
  --header-height: 53px;
  --nav-brand-height: 64px;
  --layout-left: max(0px, calc(50% - (var(--sidebar-width) + var(--column-width)) / 2));
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121316;
    --surface: #1a1c21;
    --text: #f3f4f8;
    --text-soft: #c4c8d8;
    --muted: #8f94a8;
    --tint: rgba(11, 138, 254, 0.14);
    --line: #262932;
    --warm-bg: rgba(254, 233, 193, 0.16);
    --warm-text: #f6b866;
    --tier-gold: #f5b83d;
    --tier-purple: #a78bfa;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  font-family: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

button, a, input, select, textarea, [role="button"] {
  transition: background 0.2s ease, color 0.15s ease,
    border-color 0.15s ease, opacity 0.2s ease, transform 0.15s ease;
}

html {
  height: 100%;
  background-color: var(--surface);
}

body {
  min-height: 100%;
  background-color: var(--bg);
}

html, body {
  color: var(--text);
  touch-action: pan-y;
  -webkit-font-smoothing: antialiased;
}

html {
  overflow-x: hidden;
  overscroll-behavior-y: contain;
}

* {
  scrollbar-width: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

*::-webkit-scrollbar {
  display: none;
}

img {
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

input, select, textarea {
  font-size: 16px !important;
  appearance: none;
  -webkit-appearance: none;
  color: var(--text);
  background: transparent;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
  }
}

[hidden] {
  display: none !important;
}

.loader {
  display: flex;
  justify-content: center;
  padding: 64px 0;
  color: var(--primary);
}

.loader svg {
  width: 72px;
  height: 72px;
}

.loader-planet {
  fill: currentColor;
}

.loader-ring {
  fill: none;
  stroke: currentColor;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 42 58;
  animation: loader-orbit 1.6s linear infinite;
}

@keyframes loader-orbit {
  to {
    stroke-dashoffset: -100;
  }
}

.post-text,
.comment-text {
  user-select: text;
  -webkit-user-select: text;
}

.icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  flex-shrink: 0;
}

.fade-in {
  animation: fade-in 220ms ease both;
}

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

.primary-btn {
  background: var(--primary);
  color: var(--primary-text);
  border: none;
  border-radius: var(--radius-md);
  height: 52px;
  padding: 0 20px;
  font-size: 1.1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

@media (min-width: 768px) {
  .primary-btn:hover {
    filter: brightness(1.06);
  }
}

.primary-btn {
  transition: transform 0.12s ease, opacity 0.2s ease;
}

.primary-btn:active {
  transform: scale(0.98);
}

.primary-btn:disabled {
  opacity: 0.6;
}

.primary-btn .icon {
  width: 26px;
  height: 26px;
}

.outline-btn,
.solid-btn {
  height: 37px;
  min-width: 75px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1.5px solid var(--primary);
  font-size: 0.86rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .solid-btn:hover {
    filter: brightness(1.06);
  }
}

.outline-btn {
  background: none;
  color: var(--primary);
}

@media (min-width: 768px) {
  .outline-btn:hover {
    opacity: 0.75;
  }
}

.outline-btn.danger {
  color: var(--danger);
  border-color: var(--danger);
}

.outline-btn.icon-only {
  width: 37px;
  min-width: 0;
  padding: 0;
}

.outline-btn.icon-only .icon {
  width: 20px;
  height: 20px;
}

.solid-btn {
  background: var(--primary);
  color: var(--primary-text);
}

.outline-btn:active,
.solid-btn:active {
  transform: scale(0.96);
}

.outline-btn.large,
.solid-btn.large {
  height: 40px;
  flex: 1;
  font-size: 0.94rem;
  border-radius: 9px;
}

.text-btn {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1rem;
  padding: 6px;
}

@media (min-width: 768px) {
  .text-btn:hover {
    opacity: 0.75;
  }
}

.text-btn.primary {
  color: var(--primary);
  font-weight: 600;
}

.text-btn.primary:disabled {
  color: var(--muted);
}

.empty-label {
  font-size: 0.95rem;
  color: var(--muted);
}

.pill {
  align-self: flex-start;
  margin-bottom: -5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 15px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
}

.pill .icon {
  width: 20px;
  height: 20px;
}

.pill-birthday {
  background: var(--warm-bg);
  color: var(--warm-text);
  text-transform: uppercase;
}

.pill-repost {
  background: var(--tint);
  color: var(--text);
}

.pill-repost .icon {
  color: var(--primary);
}

#app.slide-in {
  animation: screen-slide 0.26s cubic-bezier(0.32, 0.72, 0, 1);
}

@keyframes screen-slide {
  from { transform: translateX(var(--slide)); }
}

#app {
  padding-top: env(safe-area-inset-top);
  padding-bottom: calc(var(--nav-total) + 24px);
  min-height: 100vh;
}

@media (min-width: 768px) {
  #app {
    max-width: var(--column-width);
    margin-left: calc(var(--layout-left) + var(--sidebar-width));
    margin-right: auto;
    padding-top: var(--header-height);
    padding-bottom: 48px;
    border-inline: 1px solid var(--line);
  }

  body.auth #app {
    max-width: none;
    margin-inline: 0;
    padding-top: 0;
    border-inline: none;
  }
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-total);
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

@media (min-width: 768px) {
  .bottom-nav {
    top: 0;
    right: auto;
    left: var(--layout-left);
    width: var(--sidebar-width);
    height: auto;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    background: none;
    border-top: none;
  }
}

.nav-brand {
  display: none;
}

@media (min-width: 768px) {
  .nav-brand {
    display: block;
    height: var(--nav-brand-height);
    padding: 8px 16px 0;
    color: var(--primary);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
  }
}

.nav-item {
  position: relative;
  width: 64px;
  height: var(--nav-height);
  background: none;
  border: none;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .nav-item {
    width: auto;
    height: 52px;
    justify-content: flex-start;
    padding: 0 16px;
    border-radius: var(--radius-full);
    color: var(--text);
    transition: background-color 0.15s ease;
  }

  .nav-item:hover {
    background: var(--surface);
  }
}

.nav-item[data-badge]::after {
  content: "";
  position: absolute;
  top: 9px;
  left: calc(50% + 8px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--danger);
  border: 2px solid var(--surface);
  animation: badge-pop 0.35s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}

@keyframes badge-pop {
  from {
    transform: scale(0);
  }
}

@media (min-width: 768px) {
  .nav-item[data-badge]::after {
    top: 10px;
    left: 38px;
    border-color: var(--bg);
  }
}

.nav-label {
  display: none;
}

@media (min-width: 768px) {
  .nav-label {
    display: block;
    padding-left: 42px;
    font-size: 1.15rem;
  }
}

.nav-item .icon {
  position: absolute;
  width: 30px;
  height: 30px;
}

.nav-item:active {
  transform: scale(0.9);
}

.nav-item.bounce .icon-filled {
  animation: nav-bounce 0.28s ease-out;
}

@keyframes nav-bounce {
  0% { transform: scale(0.9); }
  60% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.nav-item .icon-filled,
.action-btn .icon-filled {
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.nav-item.active {
  color: var(--primary);
}

.nav-item.active .icon-outline,
.action-btn.active .icon-outline {
  opacity: 0;
}

@media (min-width: 768px) {
  .nav-item.active .nav-label {
    font-weight: 700;
  }
}

.nav-item.active .icon-filled,
.action-btn.active .icon-filled {
  opacity: 1;
  transform: scale(1);
}

.fab {
  position: fixed;
  right: var(--page-padding);
  bottom: calc(var(--nav-total) + 20px);
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--primary);
  color: var(--primary-text);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(11, 138, 254, 0.35);
}

@media (min-width: 768px) {
  .fab {
    /* The app hides the button per screen with an inline style; on desktop it stays in the menu. */
    display: flex !important;
    top: calc(12px + var(--nav-brand-height) + 4 * 56px + 16px);
    bottom: auto;
    right: auto;
    left: calc(var(--layout-left) + 12px);
    width: calc(var(--sidebar-width) - 24px);
    height: 52px;
    gap: 8px;
    box-shadow: none;
  }

  body.auth .fab {
    display: none !important;
  }

  .fab:hover {
    filter: brightness(1.06);
  }
}

.fab-label {
  display: none;
}

@media (min-width: 768px) {
  .fab-label {
    display: inline;
    font-size: 1.05rem;
    font-weight: 600;
  }
}

.fab .icon {
  width: 26px;
  height: 26px;
  transition: transform 0.3s cubic-bezier(0.3, 1.4, 0.5, 1);
}

.fab.open .icon {
  transform: rotate(135deg);
}

.fab:active {
  transform: scale(0.92);
}

.ptr {
  position: fixed;
  top: calc(env(safe-area-inset-top) + 8px);
  left: 50%;
  z-index: 30;
  color: var(--primary);
  opacity: 0;
  transform: translate(-50%, -28px);
  pointer-events: none;
}

.ptr.settling {
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.ptr .loader {
  padding: 0;
}

.ptr svg {
  width: 40px;
  height: 40px;
}

.ptr:not(.refreshing) .loader-ring {
  animation: none;
}

.page-header {
  display: none;
}

@media (min-width: 768px) {
  .page-header {
    position: fixed;
    top: 0;
    left: calc(var(--layout-left) + var(--sidebar-width));
    width: min(var(--column-width), calc(100% - var(--layout-left) - var(--sidebar-width)));
    height: var(--header-height);
    z-index: 20;
    display: flex;
    align-items: center;
    padding: 0 var(--page-padding);
    font-size: 1.2rem;
    font-weight: 700;
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--line);
    border-top: none;
  }

  body.auth .page-header {
    display: none;
  }
}

.feed-list {
  display: flex;
  flex-direction: column;
  padding: 7px var(--page-padding) 0;
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px 0 14px;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 768px) {
  .post-card {
    padding: 18px var(--page-padding);
    margin-inline: calc(-1 * var(--page-padding));
    transition: background-color 0.15s ease;
  }

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

.post-card:last-child {
  border-bottom: none;
}

.post-header {
  display: flex;
  align-items: center;
  gap: 13px;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  object-fit: cover;
  background: var(--line);
  flex-shrink: 0;
}

.post-delete-btn {
  margin: 0 -10px 0 auto;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-author {
  font-weight: 600;
  font-size: 1.16rem;
  line-height: 1.2;
}

.post-time {
  font-size: 0.94rem;
  color: var(--muted);
  margin-top: 4px;
}

.post-text {
  margin-top: 2px;
  font-size: 1.12rem;
  line-height: 1.45;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

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

.post-images.two {
  grid-template-columns: 1fr 1fr;
}

.post-image {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  display: block;
  background: var(--line);
  transition: opacity 0.3s ease;
}

.post-image.pending {
  opacity: 0;
}

.post-card.removing {
  overflow: hidden;
  animation: post-out 0.3s ease forwards;
}

@keyframes post-out {
  to { height: 0; opacity: 0; padding-block: 0; border-bottom-width: 0; }
}

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

.action-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: none;
  border: none;
  color: var(--text-soft);
  padding: 4px 0;
}

@media (min-width: 768px) {
  .action-btn:hover {
    opacity: 0.75;
  }
}

.action-btn.active {
  color: var(--primary);
}

.action-icon {
  position: relative;
  width: 26px;
  height: 26px;
  display: block;
  transition: transform 0.12s ease;
}

.action-icon.beat {
  animation: like-beat 0.45s cubic-bezier(0.3, 1.4, 0.5, 1);
}

@keyframes like-beat {
  0% { transform: scale(0.7); }
  40% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.action-icon.spin {
  animation: repost-spin 0.5s cubic-bezier(0.3, 1.2, 0.5, 1);
}

@keyframes repost-spin {
  from { transform: rotate(-180deg) scale(0.8); }
}

.burst-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px;
  border-radius: 50%;
  background: currentColor;
  pointer-events: none;
  animation: burst-dot 0.5s ease-out forwards;
}

@keyframes burst-dot {
  from { opacity: 1; transform: rotate(var(--angle)) translateY(-8px) scale(1); }
  to { opacity: 0; transform: rotate(var(--angle)) translateY(-24px) scale(0.3); }
}

.action-icon .icon {
  position: absolute;
  inset: 0;
  width: 26px;
  height: 26px;
}

.action-btn:active .action-icon {
  transform: scale(0.85);
}

.action-count {
  font-size: 1.03rem;
  color: var(--text-soft);
  min-width: 14px;
}

.action-count.tick {
  animation: count-tick-up 0.25s ease-out;
}

.action-count.tick[data-dir="down"] {
  animation-name: count-tick-down;
}

@keyframes count-tick-up {
  from { opacity: 0; transform: translateY(8px); }
}

@keyframes count-tick-down {
  from { opacity: 0; transform: translateY(-8px); }
}

.friends-screen {
  padding: 24px var(--page-padding) 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.friends-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.friends-section-title {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 22px 0 2px;
}

.friend-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.friends-list .friend-row,
.notification-row {
  animation: fade-in 260ms ease both;
}

.feed-list > :nth-child(2),
.notifications-screen > :nth-child(2),
.friends-list .friend-row:nth-child(3) { animation-delay: 40ms; }
.feed-list > :nth-child(3),
.notifications-screen > :nth-child(3),
.friends-list .friend-row:nth-child(4) { animation-delay: 80ms; }
.feed-list > :nth-child(4),
.notifications-screen > :nth-child(4),
.friends-list .friend-row:nth-child(5) { animation-delay: 120ms; }
.feed-list > :nth-child(5),
.notifications-screen > :nth-child(5),
.friends-list .friend-row:nth-child(6) { animation-delay: 160ms; }
.feed-list > :nth-child(6),
.notifications-screen > :nth-child(6),
.friends-list .friend-row:nth-child(7) { animation-delay: 200ms; }
.feed-list > :nth-child(n + 7),
.notifications-screen > :nth-child(n + 7),
.friends-list .friend-row:nth-child(n + 8) { animation-delay: 240ms; }

.friend-row.leaving {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.friend-info {
  flex: 1;
  min-width: 0;
}

.friend-name {
  font-size: 1.14rem;
  font-weight: 500;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.friend-actions-stacked {
  display: flex;
  gap: 8px;
  margin-top: 9px;
}

.friend-sub {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 3px;
}

.friend-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.friend-row-actions .solid-btn,
.friend-row-actions .outline-btn {
  min-width: 0;
}

.friend-row-actions .static {
  min-width: 75px;
}

.solid-btn.static {
  pointer-events: none;
}

.profile-screen {
  padding: 28px var(--page-padding) 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.user-profile-bar + .profile-screen {
  padding-top: 8px;
}

.profile-top {
  display: flex;
  align-items: center;
  gap: 22px;
}

.profile-avatar-btn {
  position: relative;
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  padding: 0;
  border: none;
  background: none;
  border-radius: var(--radius-full);
}

.avatar-edit-badge {
  position: absolute;
  right: 0;
  bottom: 2px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--primary-text);
  border: 3px solid var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-edit-badge .icon {
  width: 16px;
  height: 16px;
}

.profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-full);
  object-fit: cover;
  background: var(--line);
  flex-shrink: 0;
}

.profile-name {
  font-size: 1.26rem;
  font-weight: 700;
  line-height: 1.15;
}

.profile-username {
  color: var(--muted);
  font-size: 1.075rem;
  margin-top: 8px;
}

.profile-bio {
  font-size: 1.1rem;
  line-height: 1.45;
  color: var(--text-soft);
  max-width: 240px;
}

.profile-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.03rem;
  color: var(--text-soft);
}

.profile-link {
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.profile-link:active {
  opacity: 0.6;
}

.profile-avatar-btn.static {
  pointer-events: none;
}

.profile-error {
  padding: 40px var(--page-padding);
  text-align: center;
}

.user-profile-bar {
  display: flex;
  padding: 2px var(--page-padding) 0;
}

.back-btn {
  display: flex;
  align-items: center;
  width: 44px;
  height: 44px;
  margin-left: -10px;
  background: none;
  border: none;
  color: var(--text);
  transition: transform 0.15s ease;
}

.back-btn .icon {
  width: 26px;
  height: 26px;
}

.back-btn:active {
  transform: translateX(-3px) scale(0.92);
}

.verified-badge {
  display: inline-flex;
  vertical-align: -0.14em;
  margin-left: 5px;
  color: var(--primary);
}

.verified-badge .icon {
  width: 1.05em;
  height: 1.05em;
}

.tappable {
  pointer-events: auto;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.tappable:active {
  opacity: 0.65;
}

.profile-detail .icon {
  color: var(--primary);
  width: 24px;
  height: 24px;
}

.profile-actions {
  display: flex;
  gap: 20px;
}

.profile-divider {
  height: 1px;
  background: var(--line);
  margin: 6px 0 0;
}

.profile-logout {
  display: flex;
  width: fit-content;
  flex: none;
  margin: 12px auto 24px;
  padding: 0 32px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 36px var(--page-padding) 0;
}

.empty-state-icon {
  width: 104px;
  height: 104px;
  border-radius: var(--radius-full);
  background: var(--tint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.empty-state-icon .icon {
  width: 52px;
  height: 52px;
}

.empty-state-title {
  font-size: 1.15rem;
  font-weight: 600;
}

.empty-state-text {
  font-size: 1.02rem;
  color: var(--muted);
  max-width: 260px;
  line-height: 1.4;
}

.push-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  animation: fade-in 0.3s ease both;
}

.push-banner .icon {
  flex: none;
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.push-banner p {
  flex: 1;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.3;
}

.notifications-screen {
  display: flex;
  flex-direction: column;
  padding: 6px var(--page-padding) 0;
}

.notification-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.notification-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-full);
  background: var(--tint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notification-icon .icon {
  width: 26px;
  height: 26px;
}

.notification-tail {
  display: block;
}

.notification-message {
  flex: 1;
  min-width: 0;
  font-size: 1.12rem;
  line-height: 1.35;
}

.notification-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  margin-left: auto;
}

.notification-time {
  font-size: 0.94rem;
  color: var(--muted);
  white-space: nowrap;
}

.notification-row.unread .notification-time::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: 6px 0 0 auto;
  border-radius: var(--radius-full);
  background: var(--primary);
}

.auth-screen {
  padding: 72px var(--page-padding) 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

@media (min-width: 768px) {
  .auth-screen {
    padding-top: 14vh;
  }
}

.auth-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
}

.auth-subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.auth-form {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-form input {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  height: 52px;
  padding: 0 16px;
  background: var(--surface);
}

.auth-form input {
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.auth-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}

.auth-form > * {
  animation: fade-in 260ms ease both;
}

.auth-form > :nth-child(2) { animation-delay: 40ms; }
.auth-form > :nth-child(3) { animation-delay: 80ms; }
.auth-form > :nth-child(4) { animation-delay: 120ms; }
.auth-form > :nth-child(5) { animation-delay: 160ms; }
.auth-form > :nth-child(6) { animation-delay: 200ms; }

.password-field {
  position: relative;
}

.auth-form .password-field input {
  width: 100%;
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--muted);
  transition: color 0.18s ease, transform 0.12s ease;
}

.password-toggle:active {
  transform: scale(0.88);
}

.password-toggle[aria-pressed="true"] {
  color: var(--primary);
}

.password-toggle .icon {
  position: absolute;
  width: 24px;
  height: 24px;
  transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.password-toggle .icon-hide,
.password-toggle[aria-pressed="true"] .icon-show {
  opacity: 0;
  transform: scale(0.7);
}

.password-toggle[aria-pressed="true"] .icon-hide {
  opacity: 1;
  transform: scale(1);
}

.shake {
  animation: shake 0.35s ease;
}

@keyframes shake {
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.auth-form .primary-btn {
  margin-top: 8px;
}

.forgot-link {
  align-self: flex-end;
  margin: -4px 0 0;
  padding: 2px 0;
  color: var(--primary);
  font-size: 0.9rem;
  transition: opacity 0.15s ease;
}

.forgot-link:active {
  opacity: 0.6;
}

.auth-hint {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: center;
}

#forgot-body {
  width: 100%;
  max-width: 340px;
}

.auth-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
}

.auth-success-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary);
  animation: pop-in 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}

.auth-success-icon .icon {
  width: 34px;
  height: 34px;
}

.auth-success-title {
  font-size: 1.25rem;
  font-weight: 600;
  animation: fade-in 0.4s ease 0.15s both;
}

.auth-success .auth-hint {
  animation: fade-in 0.4s ease 0.25s both;
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
}

.oauth-divider {
  width: 100%;
  max-width: 340px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.oauth-divider::before,
.oauth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.oauth-buttons {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  transition: transform 0.12s ease, border-color 0.18s ease, opacity 0.2s ease;
}

.oauth-btn svg {
  width: 20px;
  height: 20px;
}

.oauth-btn:active {
  transform: scale(0.98);
  border-color: var(--primary);
}

.oauth-btn:disabled {
  opacity: 0.6;
}

.metrics-btn {
  margin-left: auto;
  padding: 6px 2px 6px 10px;
  color: var(--muted);
  transition: color 0.18s ease, transform 0.12s ease;
}

.metrics-btn .icon {
  width: 22px;
  height: 22px;
}

.metrics-btn:active {
  color: var(--primary);
  transform: scale(0.88);
}

.modal-ui-list {
  gap: 0;
  max-height: 60vh;
  overflow-y: auto;
}

.liker-row {
  animation: fade-in 260ms ease both;
}

.liker-row:last-child {
  border-bottom: none;
}

.liker-section-title:first-child {
  margin-top: 0;
}

.liker-empty {
  padding: 18px 0;
  text-align: center;
}

.auth-toggle {
  margin-top: 18px;
  color: var(--primary);
  font-size: 1rem;
}

.sheet-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top);
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.5);
  animation: sheet-in 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}

@keyframes sheet-in {
  from { transform: translateY(100%); }
}

.sheet-overlay.closing {
  pointer-events: none;
  animation: sheet-out 0.24s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes sheet-out {
  to { transform: translateY(100%); }
}

@media (min-width: 768px) {
  .sheet-overlay {
    animation: sheet-in-desktop 0.2s ease-out;
    inset: 0;
    margin: auto;
    width: var(--column-width);
    height: min(90vh, 760px);
    padding-top: 0;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
  }

  .sheet-overlay.closing {
    animation: sheet-out-desktop 0.16s ease-in forwards;
  }

  @keyframes sheet-in-desktop {
    from { opacity: 0; transform: scale(0.96); }
  }

  @keyframes sheet-out-desktop {
    to { opacity: 0; transform: scale(0.96); }
  }
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 var(--page-padding);
  border-bottom: 1px solid var(--line);
  touch-action: none;
}

.sheet-title {
  font-size: 1.15rem;
  font-weight: 600;
}

.icon-btn {
  background: none;
  border: none;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: -10px;
}

.sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 var(--page-padding);
}

.sheet-note {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 14px 0 4px;
}

.comment-row {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.comment-row.enter {
  animation: fade-in 260ms ease both;
}

.comment-row.fresh {
  animation: comment-in 0.35s cubic-bezier(0.3, 1.2, 0.5, 1) both;
}

@keyframes comment-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
}

.comment-row > div:not(.avatar) {
  flex: 1;
  min-width: 0;
}

.comment-row .avatar {
  width: 38px;
  height: 38px;
}

.comment-author {
  font-weight: 600;
  font-size: 1.02rem;
}

.comment-time {
  font-size: 0.85rem;
  color: var(--muted);
  margin-left: 8px;
  font-weight: 400;
}

.comment-text {
  font-size: 1.05rem;
  line-height: 1.4;
  margin-top: 2px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.sheet-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px var(--page-padding);
  padding-bottom: 12px;
  border-top: 1px solid var(--line);
}

.sheet-footer input {
  flex: 1;
  height: 46px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-full);
  background: var(--surface);
}

.sheet-footer input:focus {
  border-color: var(--primary);
}

.send-btn {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--primary);
  color: var(--primary-text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.send-btn:disabled {
  opacity: 0.45;
}

.composer-sheet {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  padding: 8px var(--page-padding) 16px;
  min-height: 0;
}

.composer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  touch-action: none;
}

.char-counter {
  font-size: 0.9rem;
  color: var(--muted);
}

.composer-textarea {
  flex: 1;
  border: none;
  background: none;
  color: var(--text);
  line-height: 1.5;
  resize: none;
  min-height: 120px;
}

.composer-images {
  display: flex;
  gap: 10px;
}

.composer-image-preview {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.composer-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remove-image-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-image-btn .icon {
  width: 14px;
  height: 14px;
}

.composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

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

.composer-footer .icon-btn {
  color: var(--primary);
  margin: 0;
}

.composer-footer .option-chip {
  color: var(--primary);
}

.composer-footer .toggle-btn {
  border-radius: var(--radius-full);
  color: var(--muted);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.composer-footer .toggle-btn[aria-pressed="true"] {
  background: var(--tint);
  color: var(--primary);
}

.switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: var(--text-soft);
}

.switch-row input {
  width: 44px;
  height: 26px;
  border-radius: var(--radius-full);
  background: var(--line);
  position: relative;
  cursor: pointer;
}

.switch-row input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.switch-row input:checked {
  background: var(--primary);
}

.switch-row input:checked::after {
  transform: translateX(18px);
}

#toast-container {
  position: fixed;
  bottom: calc(var(--nav-total) + 24px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius-md);
  padding: 0.7rem 1.2rem;
  font-size: 1rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  max-width: 85vw;
  text-align: center;
}

@media (min-width: 768px) {
  .toast {
    max-width: 420px;
  }
}

.toast.toast-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.3, 1.4, 0.5, 1);
}

.toast.toast-error {
  background: var(--danger);
  color: #ffffff;
}

html:has(.sheet-overlay, #modal-ui.active) {
  overflow: hidden;
}

.sheet-overlay,
#modal-ui.active {
  overscroll-behavior: contain;
}

#modal-ui {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

#modal-ui.active {
  opacity: 1;
  pointer-events: all;
}

.modal-ui-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem;
  width: 100%;
  max-width: 340px;
  max-height: min(34rem, calc(100vh - 3rem));
  max-height: min(34rem, calc(100dvh - 3rem));
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: scale(0.94);
  transition: transform 0.3s cubic-bezier(0.3, 1.4, 0.5, 1);
}

#modal-ui.active .modal-ui-box {
  transform: scale(1);
}

@media (min-width: 768px) {
  .modal-ui-box {
    max-width: 420px;
  }
}

.modal-ui-message {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.5;
  white-space: pre-line;
}

.modal-ui-input {
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--text);
  padding: 0.7rem 0.9rem;
  width: 100%;
  user-select: text;
  -webkit-user-select: text;
}

.modal-ui-input:focus {
  border-color: var(--primary);
}

.modal-ui-fields {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-ui-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.modal-ui-error {
  color: var(--danger);
  font-size: 0.85rem;
}

.modal-ui-error:empty {
  display: none;
}

.modal-ui-actions {
  display: flex;
  gap: 0.6rem;
}

.modal-ui-btn {
  flex: 1;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--line);
  background: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-ui-btn.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-text);
}

.modal-ui-btn.destructive {
  background: var(--danger);
  border-color: var(--danger);
  color: #ffffff;
}

/* ---- Verified tiers, rewards, hashtags and audience ---- */

[hidden] {
  display: none !important;
}

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

.verified-badge.tier-3 {
  color: var(--tier-purple);
}

.reward-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: 12px;
  padding: 4px 12px 4px 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: var(--tint);
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 500;
}

.reward-strip.static {
  padding-right: 4px;
}

.reward-chip {
  --tier-color: var(--primary);
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--tier-color) 16%, transparent);
  color: var(--tier-color);
  animation: chip-pop 0.4s cubic-bezier(0.3, 1.4, 0.5, 1) both;
  animation-delay: calc(var(--i, 0) * 50ms + 120ms);
}

.reward-chip .icon {
  width: 15px;
  height: 15px;
}

.reward-chip.tier-2 {
  --tier-color: var(--tier-gold);
}

.reward-chip.tier-3 {
  --tier-color: var(--tier-purple);
}

.reward-chip.empty {
  background: var(--line);
  color: var(--muted);
}

.reward-strip-label {
  margin-left: 2px;
}

.reward-strip-caret {
  display: flex;
  align-items: center;
}

.reward-strip-caret .icon {
  width: 14px;
  height: 14px;
  color: var(--muted);
  transform: scaleX(-1);
  transition: transform 0.2s ease;
}

.reward-strip:active .reward-strip-caret .icon {
  transform: scaleX(-1) translateX(3px);
}

@keyframes chip-pop {
  from { opacity: 0; transform: scale(0.4); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
}

.rewards-page,
.hashtag-page {
  padding: 8px var(--page-padding) 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hashtag-page .feed-list {
  padding-inline: 0;
}

.rewards-hero {
  padding: 20px;
  border-radius: 18px;
  background: var(--tint);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rewards-count {
  color: var(--text-soft);
  font-size: 1.1rem;
}

.rewards-count span {
  margin-right: 6px;
  color: var(--text);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
}

.rewards-progress {
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--line);
  overflow: hidden;
}

.rewards-progress i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--tier-purple));
  transform: scaleX(var(--progress));
  transform-origin: left;
  animation: progress-fill 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s both;
}

@keyframes progress-fill {
  from { transform: scaleX(0); }
}

.rewards-next {
  font-size: 1rem;
  color: var(--text-soft);
}

.tier-card {
  --tier-color: var(--primary);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
  animation: rise 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i) * 90ms + 100ms);
}

.tier-card.tier-2 {
  --tier-color: var(--tier-gold);
}

.tier-card.tier-3 {
  --tier-color: var(--tier-purple);
}

.tier-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: color-mix(in srgb, var(--tier-color) 10%, transparent);
}

.tier-badge {
  display: inline-flex;
  color: var(--tier-color);
}

.tier-badge .icon {
  width: 34px;
  height: 34px;
}

.tier-name {
  font-size: 1.15rem;
  font-weight: 600;
}

.tier-sub {
  font-size: 0.9rem;
  color: var(--muted);
}

.tier-state {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.tier-state.ok {
  background: color-mix(in srgb, var(--tier-color) 18%, transparent);
  color: var(--tier-color);
}

.reward-list {
  list-style: none;
}

.reward-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  animation: fade-in 0.3s ease both;
  animation-delay: calc(var(--i) * 35ms + 200ms);
}

.reward-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--tier-color) 16%, transparent);
  color: var(--tier-color);
}

.reward-icon .icon {
  width: 22px;
  height: 22px;
}

.reward-row.locked .reward-icon {
  background: var(--line);
  color: var(--muted);
}

.reward-row.locked .reward-info {
  opacity: 0.72;
}

.reward-info {
  flex: 1;
  min-width: 0;
}

.reward-title {
  font-size: 1.02rem;
  font-weight: 600;
}

.reward-text {
  margin-top: 2px;
  font-size: 0.9rem;
  color: var(--muted);
}

.reward-status {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}

.reward-status.ok {
  color: var(--tier-color);
}

.reward-status .icon {
  width: 22px;
  height: 22px;
}

.rewards-footnote {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.hashtag {
  padding: 0;
  border: none;
  background: none;
  color: var(--primary);
  font: inherit;
  text-align: inherit;
  cursor: pointer;
  overflow-wrap: anywhere;
  transition: opacity 0.15s ease;
}

.hashtag:active {
  opacity: 0.6;
}

.pill-anonymous {
  background: var(--tint);
  color: var(--text);
}

.pill-anonymous .icon {
  color: var(--primary);
}

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

.friends-actions .primary-btn,
.friends-actions .tags-btn {
  flex: 1;
}

.tags-btn {
  height: 52px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 500;
}

.tags-btn .icon {
  width: 22px;
  height: 22px;
}

.tag-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  margin-top: 14px;
  margin-bottom: 8px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--muted);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.tag-search:focus-within {
  border-color: var(--primary);
  color: var(--primary);
}

.tag-search input {
  flex: 1;
  height: 100%;
  border: none;
  background: none;
  color: var(--text);
}

.tag-search .icon {
  width: 20px;
  height: 20px;
}

.tag-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  animation: rise 0.3s ease both;
  animation-delay: calc(var(--i, 0) * 30ms);
}

.tag-chip {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tint);
  color: var(--primary);
}

.tag-chip .icon {
  width: 20px;
  height: 20px;
}

.tag-info {
  flex: 1;
  min-width: 0;
}

.tag-name {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1.05rem;
  font-weight: 600;
}

.tag-name::before {
  content: "#";
  color: var(--primary);
}

.tag-count {
  font-size: 0.88rem;
  color: var(--muted);
}

.tag-follow,
.follow-btn {
  height: 36px;
  padding: 0 16px;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-full);
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease, transform 0.12s ease;
}

.tag-follow:active,
.follow-btn:active {
  transform: scale(0.95);
}

.tag-follow.following,
.follow-btn.following {
  background: var(--primary);
  color: var(--primary-text);
}

.hashtag-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hashtag-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tint);
  color: var(--primary);
}

.hashtag-mark .icon {
  width: 28px;
  height: 28px;
}

.hashtag-title {
  flex: 1;
  min-width: 0;
}

.hashtag-title h1 {
  font-size: 1.5rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.hashtag-title h1::before {
  content: "#";
  color: var(--primary);
}

.hashtag-title p {
  font-size: 0.95rem;
  color: var(--muted);
}

.option-chip {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-full);
  background: none;
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.12s ease;
}

.option-chip .icon {
  width: 18px;
  height: 18px;
}

.option-chip.active {
  border-color: var(--primary);
  background: var(--tint);
  color: var(--primary);
}

.option-chip.locked {
  opacity: 0.6;
}

.option-chip:active {
  transform: scale(0.97);
}

.composer-note {
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--muted);
  animation: fade-in 0.25s ease both;
}

.segmented {
  display: flex;
  gap: 4px;
  margin-top: 14px;
  margin-bottom: 12px;
  padding: 4px;
  border-radius: 12px;
  background: var(--line);
}

.segment {
  flex: 1;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 9px;
  background: none;
  color: var(--text-soft);
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.segment .icon {
  width: 18px;
  height: 18px;
}

.segment.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.segment:disabled {
  opacity: 0.5;
}

.pick-search {
  width: 100%;
  height: 44px;
  margin: 4px 0 8px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-full);
  background: var(--surface);
}

.pick-search:focus {
  border-color: var(--primary);
}

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

.pick-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  cursor: pointer;
}

.pick-row .avatar {
  width: 40px;
  height: 40px;
}

.pick-name {
  flex: 1;
  font-weight: 500;
}

.pick-check {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pick-box {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--line);
  border-radius: 8px;
  color: transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.pick-box .icon {
  width: 16px;
  height: 16px;
  transform: scale(0.4);
  transition: transform 0.2s cubic-bezier(0.3, 1.5, 0.5, 1);
}

.pick-check:checked + .pick-box {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-text);
}

.pick-check:checked + .pick-box .icon {
  transform: scale(1);
}

.pick-row:active .pick-box {
  transform: scale(0.92);
}

.audience-footer {
  gap: 12px;
}

.audience-footer .solid-btn {
  flex: 1;
}

.nav-item .icon-filled {
  transition: opacity 0.18s ease, transform 0.2s ease-out;
}

.comment-time.alone {
  margin-left: 0;
}

.account-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  animation: rise 0.3s ease both;
  animation-delay: calc(var(--i, 0) * 30ms);
}

.account-row .avatar {
  width: 44px;
  height: 44px;
}

.account-info {
  flex: 1;
  min-width: 0;
}

.account-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.account-user {
  font-size: 0.9rem;
  color: var(--muted);
}

.account-action {
  height: 36px;
  min-width: 84px;
  padding: 0 16px;
  border-radius: var(--radius-full);
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.12s ease;
}

.account-action:active {
  transform: scale(0.95);
}

.account-action:disabled {
  opacity: 0.6;
}

.comment-like {
  position: relative;
  flex-shrink: 0;
  align-self: flex-start;
  min-width: 34px;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 2px 0;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 0.8rem;
  transition: color 0.2s ease, transform 0.12s ease;
}

.comment-like:active {
  transform: scale(0.9);
}

.comment-like .icon {
  width: 20px;
  height: 20px;
}

.comment-like .heart-in {
  position: absolute;
  top: 2px;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.15s ease;
}

.comment-like.liked {
  color: var(--primary);
}

.comment-like.liked .heart-out {
  opacity: 0;
}

.comment-like.liked .heart-in {
  opacity: 1;
  transform: scale(1);
  animation: chip-pop 0.35s cubic-bezier(0.3, 1.4, 0.5, 1);
}

.feed-toggle {
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--tint);
  animation: fade-in 0.25s ease both;
}
