:root {
  color-scheme: dark;
  --bg: #000000;
  --muted: #7c7a83;
  --white-80: rgba(255, 255, 255, 0.8);
  --white-50: rgba(255, 255, 255, 0.5);
  --toolbar-button: rgba(255, 255, 255, 0.2);
  --tabbar-bg: rgba(255, 255, 255, 0.09);
  --safe-top: max(env(safe-area-inset-top, 0px), 24px);
  --safe-bottom: max(env(safe-area-inset-bottom, 0px), 12px);
  --edge-padding: clamp(16px, 4vw, 24px);
  --toolbar-height: 44px;
  --toolbar-button-size: clamp(32px, 8.5vw, 40px);
  --toolbar-icon-size: clamp(16px, 4.2vw, 18px);
  --content-gap: clamp(8px, 1.2vh, 12px);
  --tabbar-side-padding: clamp(24px, 8vw, 36px);
  --font-display: "Alimama ShuHeiTi", "Alibaba Sans", "PingFang SC", "Helvetica Neue", sans-serif;
  --font-ui: "PingFang SC", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-number: "Montserrat", "SF Pro Display", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  font-family: var(--font-ui);
}

body {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
}

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

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

.viewport {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  background: var(--bg);
}

.phone {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.status-safe-area {
  height: var(--safe-top);
  flex-shrink: 0;
}

.toolbar {
  height: var(--toolbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--edge-padding);
  flex-shrink: 0;
}

.icon-button {
  width: var(--toolbar-button-size);
  height: var(--toolbar-button-size);
  border-radius: 999px;
  background: var(--toolbar-button);
  display: grid;
  place-items: center;
}

.icon-button img {
  width: var(--toolbar-icon-size);
  height: var(--toolbar-icon-size);
}

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

.brand-logo {
  width: clamp(28px, 7vw, 32px);
  height: clamp(28px, 7vw, 32px);
}

.brand-title {
  margin: 0;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(15px, 3.8vw, 17px);
  font-weight: 700;
  line-height: 1.3;
}

.laboo-debug-card {
  margin: 8px var(--edge-padding) 12px;
  padding: 14px 14px 12px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 115, 0, 0.22), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.laboo-debug-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.laboo-debug-eyebrow {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.laboo-debug-title {
  margin: 0;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
}

.laboo-debug-badge {
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.laboo-debug-badge.is-connected {
  background: rgba(54, 211, 153, 0.18);
  color: #8ff0cb;
}

.laboo-debug-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.laboo-debug-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.laboo-debug-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  line-height: 14px;
}

.laboo-debug-value {
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.laboo-debug-user {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  line-height: 18px;
}

.laboo-debug-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.laboo-debug-button {
  min-width: 0;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.laboo-debug-button:disabled {
  opacity: 0.45;
}

.app-body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}

.screen {
  position: absolute;
  inset: 0;
  min-height: 0;
}

.screen[hidden] {
  display: none !important;
}

.screen-treasure {
  display: flex;
  flex-direction: column;
}

.screen-square {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0;
  background: #000000;
}

.screen-messages {
  display: flex;
  flex-direction: column;
  background: #000000;
  overflow: hidden;
}

.screen-profile {
  display: flex;
  flex-direction: column;
  background: #000000;
  overflow: hidden;
}

.profile-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 16px calc(24px + var(--safe-bottom));
}

.profile-head {
  padding: 8px 4px 18px;
}

.profile-eyebrow {
  margin: 0 0 6px;
  color: #ff9a4d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-title {
  margin: 0;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.2;
}

.profile-subtitle {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
  line-height: 20px;
}

.profile-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-card {
  padding: 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.06) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.profile-card-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-card-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.profile-card-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-card-name {
  min-width: 0;
  overflow: hidden;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-card-time {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  line-height: 16px;
}

.profile-card-exchange {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.profile-card-title {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
}

.profile-card-body {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 20px;
}

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

.profile-card-media-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.profile-card-media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.profile-card-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  line-height: 16px;
}

.profile-card-open {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  line-height: 34px;
}

.profile-empty {
  padding: 28px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
  line-height: 22px;
  text-align: center;
}

.message-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  width: 100%;
  padding: 12px 32px 24px;
}

.message-tab {
  justify-self: center;
  color: #94949f;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  text-align: center;
}

.message-tab.is-active {
  color: #ffffff;
  font-weight: 600;
}

.message-tab-indicator {
  position: absolute;
  left: 0;
  top: 36px;
  width: 32px;
  height: 2px;
  border-radius: 1px;
  background: #ff7300;
  transition: transform 220ms ease, left 220ms ease;
  pointer-events: none;
}

.message-viewport {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.message-panel {
  width: 100%;
  min-width: 100%;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.message-list {
  padding: 0 0 16px;
}

.message-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.message-copy {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.message-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.message-name {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-time {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  line-height: 16px;
}

.message-chat-button {
  width: fit-content;
  min-width: 64px;
  height: 32px;
  padding: 0 12px;
  border-radius: 35px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 12px;
  line-height: 12px;
}

.message-thumb {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.message-empty {
  padding: 48px 24px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
  line-height: 22px;
  text-align: center;
}

.screen-detail {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #000000;
  transform: translateX(100%);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 5;
  overflow: hidden;
}

.screen-detail.is-visible {
  transform: translateX(0);
}

.screen-chat {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #000000;
  transform: translateX(100%);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 6;
}

.screen-chat.is-visible {
  transform: translateX(0);
}

.phone.is-detail-open .status-safe-area,
.phone.is-detail-open .toolbar,
.phone.is-detail-open .laboo-debug-card,
.phone.is-detail-open .tabbar,
.phone.is-detail-open .app-body {
  display: none;
}

.phone.is-chat-open .status-safe-area,
.phone.is-chat-open .toolbar,
.phone.is-chat-open .laboo-debug-card,
.phone.is-chat-open .tabbar,
.phone.is-chat-open .app-body {
  display: none;
}

.content-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: visible;
  background: #000000;
  touch-action: pan-y;
}

.content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: var(--content-gap) 0;
  transform-origin: center center;
  transition: transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  contain: layout paint style;
  backface-visibility: hidden;
}

.card-layer {
  position: absolute;
  inset: 0;
}

.content.no-transition {
  transition: none;
}

.card-layer.is-current {
  z-index: 2;
  transform: translate3d(0, 0, 0) scale(1);
}

.card-layer.is-next {
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(0.94);
}

.card-layer.exit-left {
  transform: translate3d(-104vw, 0, 0) rotate(-6deg) scale(1);
}

.card-layer.exit-right {
  transform: translate3d(104vw, 0, 0) rotate(6deg) scale(1);
}

.card-layer.is-stashed {
  opacity: 0;
  pointer-events: none;
}

.treasure-card {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  --treasure-card-radius: clamp(24px, 6.4vw, 32px);
}

.treasure-card-surface {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--treasure-card-radius);
  clip-path: inset(0 round var(--treasure-card-radius));
  isolation: isolate;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: translateZ(0);
}

.treasure-card-frost {
  position: absolute;
  inset: 0;
  background: rgba(172, 172, 172, 0.05);
  -webkit-backdrop-filter: blur(100px);
  backdrop-filter: blur(100px);
}

.treasure-card-lock {
  position: absolute;
  left: 50%;
  top: calc(50% - 12px);
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  transform: translateX(-50%);
  white-space: nowrap;
}

.treasure-card-lock.is-audio {
  top: calc(50% - 35px);
}

.treasure-card-footer {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 100%);
}

.treasure-card-user-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.treasure-card-user-row .avatar {
  width: 36px;
  height: 36px;
}

.treasure-card-user-row .user-copy {
  gap: 1px;
}

.treasure-card-user-row .user-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.treasure-card-caption {
  margin: 0;
  width: 100%;
  overflow: hidden;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.treasure-prompt {
  width: var(--prompt-size, 26px);
  height: var(--prompt-size, 26px);
  display: grid;
  margin-left: auto;
  place-items: center;
  flex-shrink: 0;
}

.treasure-prompt-icon {
  width: 100%;
  height: 100%;
  display: block;
}

.treasure-bubble {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px 4px 4px;
  border-radius: 36px;
  background: rgba(0, 0, 0, 0.25);
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

.treasure-bubble-avatar {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}

.treasure-bubble-copy {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  white-space: nowrap;
}

.treasure-bubble-main,
.treasure-bubble-sub {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  line-height: 16px;
}

.treasure-bubble-main {
  color: #ffffff;
}

.treasure-bubble-sub {
  color: rgba(255, 255, 255, 0.7);
}

.treasure-audio-pill {
  position: absolute;
  left: 50%;
  top: calc(50% + 17px);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 23px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateX(-50%);
}

.treasure-audio-pill span {
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
}

.treasure-audio-icon {
  width: 16px;
  height: 16px;
}

.avatar {
  width: clamp(34px, 9vw, 40px);
  height: clamp(34px, 9vw, 40px);
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.user-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.user-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-name {
  overflow: hidden;
  color: var(--white-80);
  font-size: clamp(12px, 3vw, 13px);
  font-weight: 600;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 4px 1px 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
}

.user-badge img {
  width: 14px;
  height: 14px;
}

.user-badge span {
  font-family: var(--font-number);
  font-size: 12px;
  font-weight: 500;
  line-height: 14px;
}

.user-badge-female span {
  color: #ff6fad;
}

.user-badge-male span {
  color: #559cff;
}

.user-time {
  color: var(--white-50);
  font-size: clamp(12px, 3vw, 13px);
  line-height: 14px;
}

.divider {
  width: 100%;
  height: 2px;
  background: #000000;
  flex-shrink: 0;
}

.swap-button {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 14px 12px 18px;
  border-radius: 58px;
  background: #000000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.swap-button span {
  color: #dfe8f5;
  font-family: var(--font-display);
  font-size: clamp(15px, 3.8vw, 17px);
  font-weight: 700;
  line-height: 1.2;
}

.swap-button img {
  width: 16px;
  height: 16px;
}

.vote-panel {
  display: flex;
  gap: 11px;
  padding: 14px var(--edge-padding);
  flex-shrink: 0;
}

.square-feed {
  padding: 0 16px 16px;
}

.detail-scroll {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--safe-top) + 44px);
  bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 16px calc(120px + var(--safe-bottom));
  overscroll-behavior: contain;
}

.detail-topbar {
  position: absolute;
  top: var(--safe-top);
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0) 100%);
}

.detail-back {
  width: 32px;
  height: 32px;
}

.detail-title {
  margin: 0;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
}

.detail-topbar-spacer {
  width: 32px;
  height: 32px;
}

.detail-post {
  padding-top: 0;
}

.detail-header {
  padding-top: 12px;
}

.detail-exchange {
  padding-top: 10px;
}

.detail-post-title {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  line-height: 26px;
}

.detail-post-body {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  line-height: 22px;
}

.detail-gallery {
  margin-bottom: 8px;
}

.detail-comments {
  padding-top: 12px;
}

.detail-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  padding: 12px 0;
}

.detail-comment-count {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.detail-comment-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail-comment {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.detail-comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.detail-comment-body {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-comment-header {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.detail-comment-name {
  overflow: hidden;
  color: #808080;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-comment-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 21px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.detail-comment-time {
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  line-height: 14px;
}

.detail-comment-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-comment-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  line-height: 16px;
}

.detail-comment-like-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.detail-comment-action.is-active {
  color: #e8579b;
}

.detail-reply-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-reply {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-reply-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-toggle-replies {
  align-self: flex-start;
  color: #9bdbea;
  font-size: 12px;
  line-height: 16px;
}

.detail-bottom-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px calc(12px + var(--safe-bottom));
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.detail-bottom-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-comment-form {
  flex: 1 1 auto;
}

.detail-input {
  width: 100%;
  height: 40px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  padding: 0 14px;
  outline: none;
}

.detail-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.detail-want-button {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: #41390f;
  color: #fff09c;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 40px;
}

.detail-manage-shell {
  position: relative;
  flex: 0 0 auto;
}

.detail-manage-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  display: flex;
  min-width: 124px;
  flex-direction: column;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(24, 24, 24, 0.96);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 180ms ease, transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.detail-manage-menu[hidden] {
  display: none !important;
}

.detail-manage-menu.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.detail-manage-menu.is-closing {
  opacity: 0;
  transform: translateY(8px) scale(0.96);
}

.detail-manage-item {
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 600;
  line-height: 42px;
  text-align: left;
}

.detail-manage-item-danger {
  color: #ff6b6b;
}

.chat-topbar {
  position: absolute;
  top: var(--safe-top);
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 16px;
}

.chat-back,
.chat-more {
  width: 32px;
  height: 32px;
}

.chat-title {
  margin: 0;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
}

.chat-scroll {
  position: absolute;
  top: calc(var(--safe-top) + 44px);
  left: 0;
  right: 0;
  bottom: calc(82px + var(--safe-bottom));
  overflow-y: auto;
  padding-bottom: 20px;
}

.chat-exchange-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: #0d0d0d;
}

.chat-exchange-col {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 136.5px;
}

.chat-exchange-col.is-self {
  justify-content: flex-end;
}

.chat-exchange-card {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.chat-exchange-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.chat-exchange-col.is-self .chat-exchange-copy {
  align-items: flex-end;
  text-align: right;
}

.chat-exchange-label {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
}

.chat-exchange-owner {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  line-height: 18px;
}

.chat-exchange-center {
  width: 78px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.chat-exchange-icon {
  width: 78px;
  height: 44px;
  display: block;
}

.chat-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 12px 20px 0;
}

.chat-message {
  display: flex;
  gap: 12px;
  width: 100%;
}

.chat-message.is-sent {
  justify-content: flex-end;
}

.chat-avatar,
.chat-avatar-spacer {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.chat-avatar {
  border-radius: 50%;
  object-fit: cover;
}

.chat-bubble {
  width: 283px;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-bubble.is-dark {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.chat-bubble.is-light {
  background: #ffe4be;
  color: #000000;
}

.chat-bubble-title {
  padding-bottom: 12px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
}

.chat-bubble-title.is-dark {
  border-bottom-color: rgba(0, 0, 0, 0.1);
  color: #000000;
}

.chat-bubble-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-bubble-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-bubble-thumb {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.chat-bubble-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-bubble-owned-tag {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14px;
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  font-size: 12px;
  line-height: 14px;
  text-align: center;
}

.chat-bubble-item-text {
  color: #ffffff;
  font-size: 14px;
  line-height: 22px;
}

.chat-bubble-item-text.is-dark {
  color: #000000;
}

.chat-bubble-divider {
  height: 22px;
  margin-left: 64px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.1);
}

.chat-bubble-divider.is-dark {
  border-top-color: rgba(0, 0, 0, 0.1);
}

.chat-primary-action,
.chat-secondary-action {
  width: 100%;
  height: 40px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.chat-primary-action {
  background: #41390f;
  color: #fff09c;
}

.chat-secondary-action {
  background: #083640;
  color: #b2f1ff;
}

.chat-system {
  align-self: center;
  color: #75757d;
  font-size: 11px;
  line-height: 20px;
}

.chat-input-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 20px calc(10px + var(--safe-bottom));
}

.chat-input-shell {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 10px 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.15);
}

.chat-input {
  flex: 1 1 auto;
  border: 0;
  outline: none;
  background: transparent;
  color: #ffffff;
  font-size: 14px;
  line-height: 22px;
}

.chat-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.chat-send {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  transition: transform 180ms ease, opacity 180ms ease;
}

.chat-send img {
  width: 28px;
  height: 28px;
}

.chat-send.is-disabled {
  opacity: 0.4;
  pointer-events: none;
  transform: scale(0.96);
}

.feed-post {
  padding-top: 8px;
}

.feed-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
}

.feed-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.feed-user-copy {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.feed-user-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.feed-user-time {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  line-height: 14px;
}

.feed-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 4px 1px 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
}

.feed-badge img {
  width: 14px;
  height: 14px;
}

.feed-badge span {
  font-family: var(--font-number);
  font-size: 12px;
  font-weight: 500;
  line-height: 14px;
}

.feed-badge-female span {
  color: #ff6fad;
}

.feed-badge-male span {
  color: #559cff;
}

.feed-user-name {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-exchange {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 0 8px 42px;
}

.feed-exchange-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.feed-exchange-chip {
  width: 28px;
  height: 28px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.feed-exchange-chip-have {
  border: 1.5px solid #ffffff;
  color: #ffffff;
}

.feed-exchange-chip-want {
  border: 1.5px solid #ff8d2f;
  color: #ff8d2f;
}

.feed-exchange-text {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-post-title {
  margin: 0 0 8px 42px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
}

.feed-post-body {
  margin: 0 0 12px 42px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 22px;
}

.feed-gallery {
  position: relative;
  display: flex;
  gap: 3px;
  padding-left: 42px;
}

.feed-gallery.is-audio {
  display: block;
  padding-left: 42px;
}

.feed-gallery-image {
  position: relative;
  flex: 1 1 0;
  aspect-ratio: 1 / 1;
  min-width: 0;
}

.feed-gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-gallery-image-left,
.feed-gallery-image-left img {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.feed-gallery-image-right,
.feed-gallery-image-right img {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.feed-swap-pill {
  position: absolute;
  left: calc(50% + 21.5px);
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 4px 6px 6px;
  border-radius: 58px;
  background: #000000;
  color: #dfe8f5;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.feed-swap-pill img {
  width: 12px;
  height: 12px;
}

.feed-audio-card {
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(255, 240, 156, 0.12) 0%, rgba(178, 241, 255, 0.12) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.feed-audio-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.feed-audio-title {
  color: #fff09c;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
}

.feed-audio-summary {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.6;
}

.feed-audio-player {
  width: 100%;
  height: 36px;
}

.feed-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  padding: 8px;
}

.feed-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.6);
  transition: transform 180ms ease, color 180ms ease;
}

.feed-action img {
  width: 24px;
  height: 24px;
  transition: transform 220ms ease;
}

.feed-action-icon {
  width: 24px;
  height: 24px;
  transition: transform 220ms ease;
}

.feed-action span {
  font-family: var(--font-number);
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
}

.feed-action-dislike.is-active {
  color: #4a9fe8;
}

.feed-action-like.is-active {
  color: #e8579b;
}

.feed-action.is-bouncing img,
.feed-action.is-bouncing .feed-action-icon {
  animation: feed-action-pop 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes feed-action-pop {
  0% {
    transform: scale(0.92) rotate(0deg);
  }

  45% {
    transform: scale(1.18) rotate(-10deg);
  }

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


.vote-button {
  position: relative;
  flex: 1 1 0;
  height: 58px;
  border-radius: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 180ms cubic-bezier(0.2, 0.9, 0.25, 1), filter 180ms cubic-bezier(0.2, 0.9, 0.25, 1);
}

.vote-yes {
  background: #41390f;
}

.vote-no {
  background: #083640;
}

.vote-button.is-pressed {
  transform: scale(0.965);
  filter: brightness(1.06);
}

.vote-label {
  font-family: var(--font-display);
  font-size: clamp(18px, 4.5vw, 20px);
  font-weight: 700;
  line-height: 1.2;
}

.vote-yes .vote-label {
  color: #fff09c;
}

.vote-no .vote-label {
  color: #b2f1ff;
}

.vote-count {
  position: absolute;
  top: -9px;
  right: 0;
  padding: 3px 8px;
  border-radius: 10px;
  font-family: var(--font-number);
  font-size: 12px;
  font-weight: 500;
  line-height: 12px;
}

.vote-yes .vote-count {
  background: #f4e490;
  color: #41390f;
}

.vote-no .vote-count {
  background: #9bdbea;
  color: #083640;
}

.tabbar {
  position: relative;
  height: calc(53px + var(--safe-bottom));
  background: var(--tabbar-bg);
  flex-shrink: 0;
}

.tabbar::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: var(--safe-bottom);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.tabbar-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 4px var(--tabbar-side-padding) 0;
}

.tabbar-item {
  width: 32px;
  height: 53px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  color: #7c7a83;
}

.tabbar-icon {
  display: block;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
}

.tabbar-label {
  margin-top: 0;
  font-size: 9px;
  line-height: 13px;
}

.tabbar-item.active {
  color: #ffffff;
}

.publish-modal {
  position: absolute;
  inset: 0;
  z-index: 8;
}

.publish-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 240ms ease;
}

.publish-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(56vh, 520px);
  max-height: calc(100dvh - var(--safe-top) - 24px);
  padding: 10px 16px calc(20px + var(--safe-bottom));
  border-radius: 28px 28px 0 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(156, 221, 255, 0.14), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(255, 240, 156, 0.1), transparent 30%),
    rgba(10, 10, 10, 0.96);
  box-shadow: 0 -18px 48px rgba(0, 0, 0, 0.42);
  transform: translateY(104%);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.publish-modal.is-open .publish-backdrop {
  opacity: 1;
}

.publish-modal.is-open .publish-sheet {
  transform: translateY(0);
}

.publish-handle {
  width: 44px;
  height: 5px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

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

.publish-eyebrow {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.publish-title {
  margin: 0;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.publish-close {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
}

.publish-close img {
  width: 16px;
  height: 16px;
}

.publish-mode-switch {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.publish-mode-chip {
  flex: 1 1 0;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 600;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.publish-mode-chip.is-active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  transform: translateY(-1px);
}

.publish-body {
  margin-top: 18px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

.publish-panel {
  display: block;
}

.publish-hero {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px;
}

.publish-hero-voice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.publish-orb-shell {
  position: relative;
  display: grid;
  place-items: center;
  width: 140px;
  height: 140px;
}

.publish-orb-ring {
  position: absolute;
  inset: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.publish-orb {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, #fff7b5 0%, #f4e490 34%, #41390f 100%);
  box-shadow: 0 14px 32px rgba(244, 228, 144, 0.22);
}

.publish-orb-core {
  position: absolute;
  inset: 26px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
}

.publish-hero-copy {
  text-align: center;
}

.publish-hero-title {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.publish-hero-text {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  line-height: 1.6;
}

.publish-voice-meters {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  padding: 0 12px;
}

.publish-voice-meters span {
  width: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff09c 0%, #b2f1ff 100%);
}

.publish-voice-meters span:nth-child(1) { height: 18px; }
.publish-voice-meters span:nth-child(2) { height: 34px; }
.publish-voice-meters span:nth-child(3) { height: 24px; }
.publish-voice-meters span:nth-child(4) { height: 42px; }
.publish-voice-meters span:nth-child(5) { height: 28px; }
.publish-voice-meters span:nth-child(6) { height: 16px; }

.publish-caption-card,
.publish-card,
.publish-sound-card {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.publish-caption-card {
  margin-top: 14px;
  padding: 14px 16px;
}

.publish-caption-label,
.publish-field-label {
  display: inline-block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.publish-caption-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 1.6;
}

.publish-caption-input {
  width: 100%;
  min-height: 76px;
  resize: none;
  border: 0;
  outline: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.6;
}

.publish-caption-input::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.publish-caption-input-sound {
  min-height: 92px;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.publish-card {
  padding: 16px;
}

.publish-textarea {
  width: 100%;
  min-height: 156px;
  resize: none;
  border: 0;
  outline: none;
  background: transparent;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.7;
}

.publish-textarea::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.publish-helper-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.publish-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.publish-tag {
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 28px;
}

.publish-counter {
  color: rgba(255, 255, 255, 0.36);
  font-size: 12px;
  line-height: 18px;
}

.publish-hero-sound {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.publish-sound-card {
  padding: 16px;
}

.publish-sound-wave {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  height: 58px;
  margin-bottom: 14px;
}

.publish-sound-wave span {
  flex: 1 1 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #9bdbea 0%, #083640 100%);
}

.publish-sound-wave span:nth-child(1) { height: 22px; }
.publish-sound-wave span:nth-child(2) { height: 40px; }
.publish-sound-wave span:nth-child(3) { height: 28px; }
.publish-sound-wave span:nth-child(4) { height: 52px; }
.publish-sound-wave span:nth-child(5) { height: 34px; }
.publish-sound-wave span:nth-child(6) { height: 44px; }
.publish-sound-wave span:nth-child(7) { height: 20px; }

.publish-upload-actions {
  display: flex;
  gap: 10px;
}

.publish-secondary,
.publish-draft {
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  font-size: 13px;
  line-height: 40px;
}

.publish-draft img {
  width: 18px;
  height: 18px;
}

.publish-audio-preview {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.publish-preview-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.publish-preview-label {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}

.publish-preview-meta {
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
}

.publish-audio-preview audio {
  width: 100%;
  height: 36px;
}

.publish-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  flex-shrink: 0;
}

.publish-submit {
  flex: 1 1 auto;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(90deg, #41390f 0%, #083640 100%);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 44px;
}

.publish-orb.is-recording {
  animation: publish-recording-pulse 1.15s ease-in-out infinite;
}

@keyframes publish-recording-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 14px 32px rgba(244, 228, 144, 0.22);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 18px 42px rgba(255, 128, 128, 0.28);
  }
}

.edit-modal {
  position: absolute;
  inset: 0;
  z-index: 10;
}

.edit-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  transition: opacity 220ms ease;
}

.edit-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  max-height: min(78vh, 680px);
  flex-direction: column;
  padding: 14px 16px calc(20px + var(--safe-bottom));
  border-radius: 28px 28px 0 0;
  background: rgba(10, 10, 10, 0.98);
  box-shadow: 0 -18px 48px rgba(0, 0, 0, 0.42);
  transform: translateY(100%);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.edit-modal.is-open .edit-backdrop {
  opacity: 1;
}

.edit-modal.is-open .edit-sheet {
  transform: translateY(0);
}

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

.edit-form {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  padding-right: 2px;
}

.edit-field {
  display: flex;
  flex-direction: column;
}

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

.edit-input,
.edit-textarea {
  width: 100%;
  border: 0;
  outline: none;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.edit-input {
  height: 46px;
  padding: 0 14px;
  font-size: 14px;
  line-height: 46px;
}

.edit-textarea {
  min-height: 128px;
  resize: none;
  padding: 14px;
  font-size: 14px;
  line-height: 1.6;
}

.edit-input::placeholder,
.edit-textarea::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.edit-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  padding-top: 4px;
}

.edit-actions .publish-draft {
  flex: 0 0 auto;
}

.edit-actions .publish-submit {
  flex: 1 1 auto;
}

.action-sheet {
  position: absolute;
  inset: 0;
  z-index: 9;
}

.action-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.36);
}

.action-sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 16px calc(20px + var(--safe-bottom));
  border-radius: 28px 28px 0 0;
  background: rgba(10, 10, 10, 0.98);
  box-shadow: 0 -18px 48px rgba(0, 0, 0, 0.42);
}

.action-sheet-handle {
  width: 44px;
  height: 5px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.action-sheet-title {
  margin: 0 0 14px;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.action-sheet-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.action-sheet-button,
.action-sheet-cancel {
  width: 100%;
  min-height: 46px;
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
}

.action-sheet-button.is-danger {
  color: #ffb4a8;
}

.action-sheet-cancel {
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  .content,
  .vote-button,
  .treasure-bubble {
    transition: none;
    animation: none;
  }
}
