:root {
  color-scheme: light;
  --bg: #fffdfb;
  --ink: #171514;
  --muted: rgba(23, 21, 20, 0.42);
  --faint: rgba(23, 21, 20, 0.06);
  --line: rgba(23, 21, 20, 0.06);
  --orange: #ff6a00;
  --orange-soft: #fff1e6;
  --rose: #f43f5e;
  --shadow: 0 38px 90px rgba(20, 17, 14, 0.12);
  --soft-shadow: 0 22px 60px rgba(20, 17, 14, 0.08);
  --radius-xl: 48px;
  --radius-lg: 32px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #fff;
}

.ambient-bg span {
  position: absolute;
  width: 65vw;
  height: 65vw;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.38;
  animation: float-aura 24s ease-in-out infinite;
}

.ambient-bg span:nth-child(1) {
  left: -22vw;
  top: -16vw;
  background: #ffe1c2;
}

.ambient-bg span:nth-child(2) {
  right: -24vw;
  bottom: -20vw;
  background: #ffe8ef;
  animation-duration: 31s;
  animation-delay: -10s;
}

.ambient-bg span:nth-child(3) {
  left: 26vw;
  top: 18vh;
  background: #fff3dd;
  animation-duration: 38s;
  animation-delay: -18s;
}

@keyframes float-aura {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(7vw, -5vh, 0) scale(1.2);
  }
}

.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 24px clamp(18px, 3vw, 48px) 42px;
}

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(18px, 3vw, 48px);
  pointer-events: none;
}

.brand,
.desktop-nav,
.bottom-nav,
.global-publish {
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  user-select: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 25%;
  background: var(--orange);
  color: #fff;
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.3);
  transition: transform 500ms ease, box-shadow 500ms ease;
}

.brand:hover .brand-mark {
  transform: scale(1.05) rotate(6deg);
}

.logo-arrow {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand strong {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0;
}

.brand strong b {
  font-weight: 950;
}

.brand strong em {
  color: var(--orange);
  font-style: normal;
  font-weight: 300;
}

.brand small {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  color: rgba(23, 21, 20, 0.22);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}

.brand small::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--orange);
  flex: 0 0 auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: rgba(23, 21, 20, 0.36);
}

.desktop-nav button {
  background: transparent;
  color: inherit;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.18em;
  transition: color 180ms ease, transform 180ms ease;
}

.desktop-nav button:hover,
.desktop-nav .nav-active {
  color: var(--orange);
}

.desktop-nav button:active {
  transform: translateY(1px);
}

.nav-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

main {
  position: relative;
  z-index: 1;
}

.view {
  display: none;
}

.view-active {
  display: block;
}

#discoverView {
  min-height: 100vh;
  display: none;
  align-items: center;
}

#discoverView.view-active {
  display: flex;
}

.hero-landing {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 96px);
  width: 100%;
  padding: 108px 24px 80px;
  text-align: center;
}

.hero-landing[hidden],
.discover-core[hidden] {
  display: none;
}

.hero-logo {
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: 34px;
}

.hero-logo .brand-mark {
  width: 96px;
  height: 96px;
  border-radius: 25%;
}

.hero-logo .logo-arrow {
  width: 48px;
  height: 48px;
}

.logo-dot {
  position: absolute;
  top: -8px;
  right: -8px;
  z-index: 2;
  width: 24px;
  height: 24px;
  border: 3px solid var(--orange);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(255, 106, 0, 0.2);
}

.logo-dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 106, 0, 0.35);
  animation: dot-ping 1.8s ease-out infinite;
}

@keyframes dot-ping {
  0% {
    opacity: 0.7;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.9);
  }
}

.hero-logo i {
  position: absolute;
  inset: -32px;
  z-index: -1;
  border-radius: 999px;
  background: rgba(255, 106, 0, 0.08);
  filter: blur(48px);
}

.hero-landing h1 {
  max-width: 1120px;
  margin: 0;
  color: #262626;
  font-size: clamp(60px, 8vw, 96px);
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.hero-landing h1 span {
  color: var(--orange);
}

.hero-landing p {
  max-width: 780px;
  margin: 16px auto 0;
  color: rgba(23, 21, 20, 0.4);
  font-size: clamp(18px, 2vw, 20px);
  font-weight: 500;
  line-height: 1.625;
}

.hero-landing em {
  display: block;
  max-width: 680px;
  margin: 24px auto 0;
  color: rgba(23, 21, 20, 0.3);
  font-size: clamp(16px, 1.8vw, 18px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.625;
}

.hero-landing strong {
  display: block;
  margin: 24px 0 24px;
  color: var(--orange);
  font-size: 24px;
  font-weight: 950;
  letter-spacing: 0.5em;
}

.start-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  border-radius: 28px;
  background: #a38d6d;
  color: #fff;
  padding: 20px 46px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 38px 80px rgba(20, 17, 14, 0.08);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.28em;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1), background 500ms ease, box-shadow 500ms ease;
  animation: cta-rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.start-button::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: translateX(-120%);
  transition: transform 700ms ease;
}

.start-button span,
.start-button svg {
  position: relative;
  z-index: 1;
}

.start-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 200ms ease;
}

.start-button:hover {
  background: var(--orange);
  box-shadow: 0 20px 40px rgba(249, 115, 22, 0.3), 0 34px 76px rgba(255, 106, 0, 0.16);
  transform: scale(1.05);
}

.start-button:hover::before {
  transform: translateX(120%);
}

.start-button:hover svg {
  transform: translateX(8px);
}

@keyframes cta-rise {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.discover-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: clamp(34px, 6vw, 90px);
  width: min(1180px, 100%);
  margin: 0 auto;
  padding-top: 86px;
}

.discover-core {
  display: flex;
  justify-content: center;
  max-width: 720px;
  min-height: 100vh;
  padding-top: 102px;
}

.discover-copy {
  display: grid;
  gap: 26px;
}

.hero-panel h1 {
  margin: 0;
  font-size: clamp(48px, 6vw, 86px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-panel h1 span {
  color: var(--orange);
}

.hero-panel p {
  max-width: 520px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.7;
}

.desktop-panel {
  max-width: 460px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.54);
  padding: 24px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(20px);
}

.desktop-panel h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
}

.desktop-panel p {
  margin: 10px 0 18px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.6;
}

.rule-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rule-grid span {
  border-radius: 999px;
  background: var(--faint);
  padding: 9px 12px;
  color: rgba(23, 21, 20, 0.58);
  font-size: 12px;
  font-weight: 900;
}

.deck-column {
  position: relative;
}

.deck-wrap {
  display: grid;
  place-items: center;
  min-height: 640px;
}

.deck {
  position: relative;
  width: min(88vw, 390px);
  height: clamp(500px, 64vh, 590px);
  perspective: 1000px;
}

.swap-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 40px;
  background: #fff;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.24);
  touch-action: none;
  user-select: none;
  transition: transform 600ms cubic-bezier(0.34, 1.4, 0.4, 1.1), opacity 400ms ease;
  transform-origin: center center;
}

.swap-card:nth-child(1) {
  transform: translateX(0) translateY(0) scale(1) rotate(0deg);
  opacity: 1;
}

.swap-card:nth-child(2) {
  transform: translateX(-58px) translateY(38px) scale(0.9) rotate(-8deg);
  opacity: 0.56;
}

.swap-card:nth-child(3) {
  transform: translateX(54px) translateY(-28px) scale(0.94) rotate(4deg);
  opacity: 0.72;
}

.swap-card:nth-child(4) {
  transform: translateX(-112px) translateY(58px) scale(0.76) rotate(-12deg);
  opacity: 0.32;
}

.swap-card:nth-child(5) {
  transform: translateX(112px) translateY(46px) scale(0.76) rotate(10deg);
  opacity: 0.32;
}

.swap-card:nth-child(n + 6) {
  transform: scale(0.3);
  opacity: 0;
  pointer-events: none;
}

.card-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  background: var(--art-bg);
}

.card-image,
.market-card img,
.conversation-product img,
.chat-product-art img,
.mine-art img,
.modal-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 52%, transparent 100%);
}

.card-location {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.card-location svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.seller {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.avatar,
.conversation-avatar {
  display: inline-grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.9) 0 9%, transparent 10%),
    linear-gradient(135deg, hsl(var(--avatar-hue), 80%, 62%), hsl(calc(var(--avatar-hue) + 42), 78%, 76%));
  color: #fff;
  font-weight: 950;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.avatar-fallback {
  grid-area: 1 / 1;
  line-height: 1;
}

.avatar-image {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar {
  width: 34px;
  height: 34px;
}

.swap-card h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(28px, 3.2vw, 36px);
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: 0;
}

.card-wish {
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  padding: 16px;
  backdrop-filter: blur(16px);
}

.card-wish-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  font-weight: 950;
  line-height: 1.2;
  letter-spacing: 0.16em;
}

.card-wish-label svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-wish-text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.swap-fields {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
  padding: 14px;
  backdrop-filter: blur(18px);
}

.swipe-hint {
  position: absolute;
  top: 38%;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 12px;
  color: rgba(23, 21, 20, 0.13);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  pointer-events: none;
}

.swipe-hint span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(23, 21, 20, 0.04);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: var(--soft-shadow);
  font-size: 36px;
  font-weight: 400;
  backdrop-filter: blur(18px);
  animation: hint-pulse 2.2s ease-in-out infinite;
}

.swipe-hint-left {
  right: calc(100% + 58px);
}

.swipe-hint-right {
  left: calc(100% + 58px);
}

.swipe-hint-right span {
  animation-delay: -1.1s;
}

@keyframes hint-pulse {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(var(--hint-shift, 8px));
  }
}

.swipe-hint-left span {
  --hint-shift: -8px;
}

.field-line {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 14px;
}

.field-line span {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  font-weight: 950;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.swipe-stamp {
  position: absolute;
  top: 34px;
  z-index: 5;
  border: 5px solid currentColor;
  border-radius: 14px;
  padding: 3px 14px;
  font-size: 42px;
  font-weight: 950;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.98);
  transition: opacity 120ms ease, transform 120ms ease;
}

.stamp-like {
  left: 32px;
  color: var(--orange);
  transform: rotate(-18deg);
}

.stamp-skip {
  right: 32px;
  color: var(--rose);
  transform: rotate(18deg);
}

.swap-card[data-swiping="like"] .stamp-like,
.swap-card[data-swiping="skip"] .stamp-skip {
  opacity: 1;
}

.swipe-actions {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  margin-top: -8px;
}

.circle-action {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: rgba(23, 21, 20, 0.28);
  box-shadow: var(--soft-shadow);
  font-size: 30px;
  font-weight: 900;
  backdrop-filter: blur(20px);
  transition: transform 180ms ease, color 180ms ease;
}

.circle-action:hover {
  transform: translateY(-3px) scale(1.04);
}

.circle-action.skip {
  color: var(--rose);
}

.circle-action.like {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 22px 46px rgba(255, 106, 0, 0.28);
}

.section-heading {
  margin: 0 0 26px;
}

.section-heading h2,
.profile-card h2,
.subhead-row h3 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.market-shell,
.chat-page,
.mine-shell {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding-top: 126px;
  padding-bottom: 110px;
}

.market-tools {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.search-box {
  position: relative;
  flex: 1;
  display: block;
}

.search-box span {
  position: absolute;
  top: 50%;
  left: 22px;
  transform: translateY(-50%);
  color: rgba(23, 21, 20, 0.16);
  font-size: 24px;
  font-weight: 900;
}

.search-box input {
  width: 100%;
  height: 64px;
  border: 0;
  border-radius: 24px;
  background: rgba(23, 21, 20, 0.04);
  color: var(--ink);
  padding: 0 24px 0 58px;
  outline: none;
  font-size: 16px;
  font-weight: 900;
}

.search-box input:focus {
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.distance-toggle {
  display: flex;
  gap: 6px;
  border-radius: 22px;
  background: rgba(23, 21, 20, 0.04);
  padding: 7px;
}

.distance-toggle button {
  min-width: 96px;
  border-radius: 16px;
  background: transparent;
  color: rgba(23, 21, 20, 0.28);
  padding: 14px 18px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.distance-toggle .active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(20, 17, 14, 0.06);
}

.category-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 0 0 20px;
  scrollbar-width: none;
}

.category-rail::-webkit-scrollbar {
  display: none;
}

.category-rail button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(23, 21, 20, 0.04);
  color: rgba(23, 21, 20, 0.38);
  padding: 17px 24px;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.category-rail .active {
  background: #000;
  color: #fff;
}

.category-rail span {
  color: var(--orange);
}

.market-section {
  margin-top: 32px;
}

.section-heading.compact {
  padding-left: 4px;
}

.section-heading.compact h2 {
  font-size: 26px;
}

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

.market-card {
  border: 1px solid var(--line);
  border-radius: 42px;
  background: rgba(255, 255, 255, 0.72);
  padding: 18px;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.market-card:hover,
.market-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  outline: none;
}

.market-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 30px;
  background: var(--faint);
}

.global-grid .market-image {
  aspect-ratio: 1;
}

.market-image img {
  transition: transform 900ms ease;
}

.market-card:hover img {
  transform: scale(1.08);
}

.market-image span {
  position: absolute;
  top: 16px;
  left: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 14px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 950;
}

.market-copy {
  padding: 18px 4px 4px;
}

.market-location {
  display: flex;
  gap: 5px;
  align-items: center;
  color: rgba(23, 21, 20, 0.4);
  font-size: 13px;
  font-weight: 700;
}

.loc-pin {
  width: 14px;
  height: 14px;
  color: var(--orange);
  flex-shrink: 0;
}

.market-card h3 {
  margin: 12px 0 18px;
  font-size: 24px;
  line-height: 1.16;
  letter-spacing: 0;
}

.market-wish {
  border-radius: 24px;
  background: rgba(23, 21, 20, 0.03);
  padding: 16px;
}

.market-wish small {
  display: block;
  margin-bottom: 8px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 950;
}

.market-wish strong {
  display: block;
  color: rgba(23, 21, 20, 0.62);
  line-height: 1.55;
}

.expand-divider {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 72px auto 42px;
  width: min(720px, 100%);
}

.expand-divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(23, 21, 20, 0.1));
}

.expand-divider span:last-child {
  background: linear-gradient(90deg, rgba(23, 21, 20, 0.1), transparent);
}

.expand-divider strong {
  color: rgba(23, 21, 20, 0.22);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.26em;
  text-align: center;
}

.list-stack {
  display: grid;
  gap: 0;
}

.conversation-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 70px;
  align-items: center;
  gap: 20px;
  min-height: 104px;
  border-bottom: 1px solid var(--line);
  padding: 20px 10px;
  color: var(--ink);
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.conversation-item:hover {
  background: rgba(23, 21, 20, 0.015);
  transform: translateX(2px);
}

.conversation-avatar {
  width: 58px;
  height: 58px;
  font-size: 20px;
}

.conversation-copy {
  min-width: 0;
}

.conversation-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.conversation-title h3 {
  overflow: hidden;
  margin: 0;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-status {
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 950;
  white-space: nowrap;
}

.conversation-copy p,
.conversation-copy small {
  display: block;
  overflow: hidden;
  margin: 0;
  color: rgba(23, 21, 20, 0.42);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-copy small {
  margin-top: 7px;
  color: rgba(23, 21, 20, 0.16);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.conversation-product {
  overflow: hidden;
  width: 70px;
  height: 70px;
  border-radius: 20px;
  background: var(--art-bg);
}

.conversation-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 60px;
  text-align: center;
}

.conversation-empty-icon {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: rgba(23, 21, 20, 0.06);
  display: grid;
  place-items: center;
  margin-bottom: 28px;
}

.conversation-empty-icon svg {
  width: 44px;
  height: 44px;
  stroke: rgba(23, 21, 20, 0.22);
  stroke-width: 1.5;
  fill: none;
}

.conversation-empty strong {
  font-size: 28px;
  font-weight: 900;
  color: rgba(23, 21, 20, 0.72);
}

.conversation-empty span {
  max-width: 260px;
  margin-top: 14px;
  color: rgba(23, 21, 20, 0.38);
  font-weight: 700;
  line-height: 1.65;
  font-size: 15px;
}

.conversation-empty button {
  margin-top: 32px;
  border-radius: 100px;
  background: #000;
  color: #fff;
  padding: 16px 36px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.section-heading.chat-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-heading-actions {
  display: flex;
  gap: 10px;
}

.chat-heading-actions button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(23, 21, 20, 0.07);
  display: grid;
  place-items: center;
  transition: background 180ms;
}

.chat-heading-actions button:hover {
  background: rgba(23, 21, 20, 0.13);
}

.chat-heading-actions svg {
  width: 22px;
  height: 22px;
  stroke: rgba(23, 21, 20, 0.5);
  stroke-width: 1.5;
  fill: none;
}

.chat-page {
  width: min(100%, 720px);
}

.chat-page[data-chat-mode="detail"] .chat-list-panel,
.chat-page[data-chat-mode="list"] #chatContent {
  display: none;
}

.chat-list-panel {
  width: 100%;
}

.conversation-chat {
  padding-top: 22px;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 26px;
}

.chat-back {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 999px;
  background: rgba(23, 21, 20, 0.05);
  color: rgba(23, 21, 20, 0.42);
  font-size: 30px;
}

.chat-head h2 {
  margin: 0;
  font-size: 22px;
}

.chat-head p {
  margin: 4px 0 0;
  color: #12b65b;
  font-size: 12px;
  font-weight: 950;
}

.chat-product {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  border: 1px solid rgba(255, 106, 0, 0.18);
  border-radius: 28px;
  background: var(--orange-soft);
  padding: 14px;
  text-align: left;
}

.chat-product-art {
  overflow: hidden;
  width: 68px;
  height: 68px;
  border-radius: 18px;
}

.chat-product strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-product em {
  display: block;
  overflow: hidden;
  margin-top: 6px;
  color: rgba(23, 21, 20, 0.4);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-product small {
  border-radius: 999px;
  background: #000;
  color: #fff;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 950;
}

.chat-thread {
  display: grid;
  gap: 24px;
  padding: 46px 0 140px;
}

.chat-bubble {
  max-width: 78%;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 18px 22px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.6;
}

.chat-bubble.mine {
  justify-self: end;
  border-color: transparent;
  border-bottom-right-radius: 6px;
  background: #ff8a3d;
  color: #fff;
}

.chat-bubble.theirs {
  border-bottom-left-radius: 6px;
}

.chat-time,
.chat-waiting {
  color: rgba(23, 21, 20, 0.16);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-align: center;
}

.chat-composer {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(720px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  padding: 10px;
  box-shadow: var(--shadow);
  transform: translateX(-50%);
  backdrop-filter: blur(24px);
}

.chat-composer input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.chat-composer button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(23, 21, 20, 0.05);
  color: rgba(23, 21, 20, 0.34);
  font-size: 24px;
}

.chat-composer button:last-child {
  background: #ff8a3d;
  color: #fff;
}

.mine-shell {
  width: min(100%, 880px);
}

.profile-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.72);
  padding: clamp(28px, 5vw, 56px);
  box-shadow: var(--soft-shadow);
}

.profile-main {
  display: flex;
  align-items: center;
  gap: 38px;
  margin-bottom: 42px;
}

.profile-avatar {
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  width: 138px;
  height: 138px;
  border: 8px solid #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8a3d, #65c4ff);
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 46px;
  font-weight: 950;
}

.profile-card h2 {
  font-size: clamp(44px, 6vw, 64px);
}

.profile-card p {
  margin: 14px 0 22px;
  color: rgba(23, 21, 20, 0.32);
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.profile-tags {
  display: flex;
  gap: 14px;
}

.profile-tags span {
  border-radius: 999px;
  background: rgba(23, 21, 20, 0.04);
  padding: 12px 18px;
  color: rgba(23, 21, 20, 0.36);
  font-size: 12px;
  font-weight: 950;
}

.profile-tags span:last-child {
  background: var(--orange-soft);
  color: var(--orange);
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.profile-stats div {
  border: 1px solid var(--line);
  border-radius: 32px;
  background: #fff;
  padding: 34px 20px;
  text-align: center;
}

.profile-stats .hot {
  background: #000;
  color: #fff;
  box-shadow: var(--shadow);
}

.profile-stats strong {
  display: block;
  font-size: 46px;
  line-height: 1;
}

.profile-stats span {
  display: block;
  margin-top: 14px;
  color: rgba(23, 21, 20, 0.22);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.18em;
}

.profile-stats .hot span {
  color: rgba(255, 255, 255, 0.46);
}

.mine-section {
  margin-top: 46px;
}

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

.interest-panel {
  min-height: 270px;
  border: 1px solid rgba(23, 21, 20, 0.04);
  border-radius: 46px;
  padding: 38px;
}

.incoming-panel {
  background: rgba(23, 21, 20, 0.02);
}

.saved-panel {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
}

.panel-top svg,
.footprint-title svg,
.interest-panel > svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.incoming-panel .panel-top svg,
.footprint-title svg {
  color: var(--orange);
}

.saved-panel .panel-top svg {
  color: var(--rose);
}

.panel-top span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  box-shadow: 0 14px 28px rgba(255, 106, 0, 0.2);
  font-size: 12px;
  font-weight: 950;
}

.interest-panel h3 {
  margin: 0;
  font-size: 30px;
  letter-spacing: 0;
}

.interest-panel p {
  margin: 28px 0 0;
  color: rgba(23, 21, 20, 0.3);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.75;
}

.interest-panel button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  background: transparent;
  color: rgba(23, 21, 20, 0.42);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.avatar-stack {
  display: flex;
  margin: 34px 0 0;
  padding-left: 8px;
}

.avatar-stack span,
.avatar-stack i {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-left: -12px;
  border: 4px solid #fff;
  border-radius: 999px;
  background:
    conic-gradient(from 90deg, #0b648a, #65c4ff, #ff8a3d, #0b648a);
  color: rgba(23, 21, 20, 0.22);
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}

.avatar-stack span:nth-child(2) {
  background: conic-gradient(from 30deg, #0b648a, #d7f6ff, #0b648a);
}

.avatar-stack span:nth-child(3) {
  background: conic-gradient(from 160deg, #ff8a3d, #65c4ff, #0b648a);
}

.avatar-stack span:nth-child(4) {
  background: conic-gradient(from 240deg, #0b648a, #ff8a3d, #d7f6ff);
}

.avatar-stack i {
  background: rgba(23, 21, 20, 0.05);
}

.footprint-card {
  border: 1px solid rgba(23, 21, 20, 0.04);
  border-radius: 46px;
  background: rgba(255, 255, 255, 0.82);
  padding: 42px;
}

.footprint-title {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 32px;
}

.footprint-title h3 {
  margin: 0;
  font-size: 32px;
}

.footprint-list {
  display: grid;
  gap: 34px;
}

.footprint-list article {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
}

.footprint-list article > span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(23, 21, 20, 0.06);
}

.footprint-list h4 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
}

.footprint-list p {
  margin: 8px 0 0;
  color: rgba(23, 21, 20, 0.22);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.footprint-list em {
  border-radius: 999px;
  background: rgba(23, 21, 20, 0.04);
  color: rgba(23, 21, 20, 0.3);
  padding: 9px 18px;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.subhead-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.subhead-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.subhead-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: var(--orange);
  color: var(--orange);
}

.subhead-row h3 {
  font-size: 28px;
}

.subhead-row button,
.mine-tabs button,
.ghost-button {
  background: transparent;
  color: rgba(23, 21, 20, 0.25);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.mine-tabs {
  display: flex;
  gap: 18px;
}

.mine-tabs .active {
  color: var(--ink);
}

.mine-list {
  display: grid;
  gap: 16px;
}

.mine-item {
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr);
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.75);
  padding: 18px;
}

.mine-art {
  position: relative;
  overflow: hidden;
  width: 106px;
  height: 106px;
  border-radius: 26px;
  background: var(--art-bg);
}

.mine-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.mine-copy h3 {
  overflow: hidden;
  margin: 0 0 10px;
  font-size: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mine-copy p {
  margin: 0 0 16px;
  color: rgba(23, 21, 20, 0.25);
  font-size: 12px;
  font-weight: 900;
}

.mine-copy div {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.mine-copy button {
  border-radius: 14px;
  background: rgba(23, 21, 20, 0.04);
  color: rgba(23, 21, 20, 0.5);
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 950;
}

.mine-copy .hot {
  background: var(--orange);
  color: #fff;
}

.sold-stamp {
  position: absolute;
  inset: 15px;
  display: grid;
  place-items: center;
  border: 3px solid rgba(255, 106, 0, 0.48);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  color: var(--orange);
  font-weight: 950;
  transform: rotate(-12deg);
  backdrop-filter: blur(4px);
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.badge-grid article {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  padding: 22px;
}

.badge-grid span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--orange);
  color: #fff;
  font-size: 24px;
}

.badge-grid strong,
.badge-grid small {
  display: block;
}

.badge-grid small {
  margin-top: 7px;
  color: rgba(23, 21, 20, 0.25);
  font-weight: 900;
}

.global-publish {
  position: fixed;
  right: 34px;
  bottom: 34px;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  min-width: 68px;
  height: 68px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff9a3d, #ff6a00);
  color: #fff;
  box-shadow: 0 20px 40px rgba(249, 115, 22, 0.4);
  font-size: 0;
  line-height: 1;
  transition: width 420ms cubic-bezier(0.22, 1, 0.36, 1), transform 180ms ease, box-shadow 420ms ease;
}

.global-publish::after {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -1;
  border-radius: inherit;
  background: rgba(255, 106, 0, 0.22);
  filter: blur(16px);
  transition: background 300ms ease;
}

.global-publish span {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  font-size: 42px;
  font-weight: 300;
  line-height: 1;
  transition: transform 500ms ease;
}

.global-publish strong {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.2em;
  transition: max-width 420ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease, margin 420ms ease;
}

.global-publish:hover,
.global-publish:focus-visible {
  width: 180px;
  box-shadow: 0 24px 48px rgba(249, 115, 22, 0.44);
  outline: none;
}

.global-publish:hover span,
.global-publish:focus-visible span {
  transform: rotate(90deg);
}

.global-publish:hover strong,
.global-publish:focus-visible strong {
  max-width: 90px;
  margin-right: 22px;
  opacity: 1;
}

.global-publish:active {
  transform: scale(0.95);
}

.bottom-nav {
  display: none;
}

body[data-current-view="discover"][data-discover-mode="hero"] .bottom-nav,
body[data-current-view="discover"][data-discover-mode="hero"] .live-pop {
  display: none;
}

.publish-sheet[hidden],
.modal-backdrop[hidden] {
  display: none;
}

.publish-sheet,
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
}

.sheet-scrim,
.modal-backdrop::before {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(28px);
}

.publish-form,
.modal-card {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(860px, calc(100vh - 48px));
  overflow: auto;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow);
}

.publish-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 32px;
}

.sheet-head,
.publish-form .full {
  grid-column: 1 / -1;
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sheet-head h2 {
  margin: 0;
  font-size: 32px;
}

.sheet-head button,
.modal-close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(23, 21, 20, 0.06);
  color: rgba(23, 21, 20, 0.42);
  font-size: 28px;
}

.publish-form label,
.field-group {
  display: grid;
  gap: 10px;
  color: rgba(23, 21, 20, 0.5);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.18em;
}

.publish-form input::placeholder,
.publish-form textarea::placeholder {
  color: rgba(23, 21, 20, 0.12);
}

.publish-form input,
.publish-form textarea,
.publish-form select {
  width: 100%;
  border: 0;
  border-radius: 20px;
  background: rgba(23, 21, 20, 0.04);
  color: var(--ink);
  padding: 18px 20px;
  outline: none;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0;
}

.publish-form textarea {
  min-height: 108px;
  resize: vertical;
}

.publish-form input:focus,
.publish-form textarea:focus,
.publish-form select:focus {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255, 106, 0, 0.16), var(--soft-shadow);
}

.wish-field textarea {
  background: rgba(255, 106, 0, 0.045);
  color: #8b3900;
}

.wish-field textarea::placeholder {
  color: rgba(255, 106, 0, 0.15);
}

.image-upload input[type="file"] {
  display: none;
}

.image-dropzone {
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: inherit;
}

.image-preview {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
  overflow: hidden;
  border: 2px dashed rgba(23, 21, 20, 0.07);
  border-radius: 28px;
  background: rgba(23, 21, 20, 0.015);
  background-position: center;
  background-size: cover;
}

.image-upload.is-dragging .image-preview,
.image-dropzone:hover .image-preview {
  border-color: rgba(255, 106, 0, 0.32);
  background-color: rgba(255, 106, 0, 0.04);
}

.upload-plus {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: rgba(23, 21, 20, 0.05);
  color: rgba(23, 21, 20, 0.28);
  font-size: 0;
  transform: translate(-50%, -50%);
}

.upload-plus::before,
.upload-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.upload-plus::before {
  width: 24px;
  height: 4px;
}

.upload-plus::after {
  width: 4px;
  height: 24px;
}

.upload-copy {
  position: absolute;
  top: calc(50% + 52px);
  left: 50%;
  width: max-content;
  max-width: calc(100% - 32px);
  color: rgba(23, 21, 20, 0.15);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-align: center;
  transform: translateX(-50%);
}

.image-preview:not(.has-image) .upload-plus {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.image-preview.has-image {
  place-items: end start;
  padding: 16px;
}

.image-preview.has-image .upload-plus {
  top: auto;
  left: auto;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  transform: none;
}

.image-preview.has-image .upload-copy {
  position: static;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  transform: none;
}

.primary-button,
.secondary-button {
  border-radius: 22px;
  padding: 18px 22px;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.24em;
}

.primary-button {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 18px 42px rgba(255, 106, 0, 0.24);
}

.secondary-button {
  background: rgba(23, 21, 20, 0.06);
  color: rgba(23, 21, 20, 0.5);
}

.modal-card {
  display: flex;
  flex-direction: column;
  width: min(672px, 100%);
  height: auto;
  max-height: min(85vh, calc(100vh - 48px));
  padding: 0;
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 5;
  background: rgba(0, 0, 0, 0.1);
  color: #fff;
  backdrop-filter: blur(16px);
}

#modalContent {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
}

.modal-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.modal-hero {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
  background: var(--art-bg);
}

.modal-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, transparent 54%);
  pointer-events: none;
}

.modal-hero-title {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 34px;
  color: #fff;
}

.modal-hero-title span {
  display: inline-block;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 12px;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.18em;
}

.modal-hero-title h2 {
  margin: 0;
  font-size: 40px;
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: 0;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 40px;
}

.detail-owner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.detail-owner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.detail-owner-avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(23, 21, 20, 0.05);
  color: rgba(23, 21, 20, 0.2);
  font-size: 18px;
  font-weight: 950;
}

.detail-owner h4 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
}

.detail-owner-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  color: rgba(23, 21, 20, 0.2);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.detail-owner-meta svg,
.detail-wish svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-stats {
  display: flex;
  gap: 16px;
}

.detail-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
  border-radius: 24px;
  background: rgba(23, 21, 20, 0.02);
  padding: 16px 24px;
}

.detail-stat span {
  margin-bottom: 5px;
  color: rgba(23, 21, 20, 0.2);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.detail-stat strong {
  color: rgba(23, 21, 20, 0.8);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 15px;
  font-weight: 950;
}

.detail-stat-hot {
  background: rgba(255, 106, 0, 0.05);
}

.detail-stat-hot span {
  color: rgba(255, 106, 0, 0.6);
}

.detail-stat-hot strong {
  color: var(--orange);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.detail-grid div {
  border: 1px solid rgba(23, 21, 20, 0.01);
  border-radius: 16px;
  background: rgba(23, 21, 20, 0.02);
  padding: 12px;
}

.detail-grid span {
  display: block;
  margin-bottom: 5px;
  color: rgba(23, 21, 20, 0.2);
  font-size: 7px;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.detail-grid strong {
  display: block;
  overflow: hidden;
  color: rgba(23, 21, 20, 0.7);
  font-size: 10px;
  font-weight: 950;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-section label {
  display: block;
  margin-bottom: 12px;
  color: rgba(23, 21, 20, 0.2);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.detail-section p {
  margin: 0;
  color: rgba(23, 21, 20, 0.6);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
}

.detail-wish {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border: 1px solid rgba(255, 106, 0, 0.1);
  border-radius: 32px;
  background: rgba(255, 106, 0, 0.08);
  padding: 24px;
  color: #ea580c;
}

.detail-wish svg {
  width: 20px;
  height: 20px;
  margin-top: 4px;
}

.detail-wish p {
  color: #7c2d12;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.55;
}

.modal-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 16px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  padding: 24px 40px;
  backdrop-filter: blur(20px);
}

.detail-action-secondary,
.detail-action-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 64px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: 0.24em;
  transition: transform 180ms ease, background 180ms ease;
}

.detail-action-secondary {
  background: #000;
  color: #fff;
}

.detail-action-secondary:hover {
  background: rgba(0, 0, 0, 0.9);
}

.detail-action-primary {
  background: #ff8a3d;
  color: #fff;
  box-shadow: 0 20px 40px rgba(255, 138, 61, 0.3);
}

.detail-action-primary:hover {
  transform: scale(1.02);
}

.toast {
  position: fixed;
  left: 50%;
  z-index: 90;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: rgba(23, 21, 20, 0.5);
  padding: 12px 18px;
  box-shadow: var(--soft-shadow);
  font-size: 12px;
  font-weight: 950;
  opacity: 0;
  transform: translate(-50%, 12px);
  backdrop-filter: blur(20px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.live-pop {
  position: fixed;
  right: 34px;
  bottom: 118px;
  left: auto;
  z-index: 90;
  max-width: min(360px, calc(100vw - 160px));
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(23, 21, 20, 0.38);
  padding: 0;
  box-shadow: none;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.35;
  text-align: right;
  opacity: 0;
  transform: translateY(10px);
  backdrop-filter: none;
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.toast {
  top: 98px;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.live-pop.show {
  opacity: 1;
  transform: translateY(0);
}

.empty {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  padding: 28px;
  color: rgba(23, 21, 20, 0.35);
  font-weight: 900;
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 25%;
  }

  .brand-mark .logo-arrow {
    width: 27px;
    height: 27px;
  }

  .brand strong {
    font-size: 31px;
  }

  .brand small {
    font-size: 8px;
  }

  #discoverView {
    height: 100dvh;
    overflow: hidden;
  }

  .discover-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: unset;
    gap: 0;
    padding-top: 64px;
    padding-bottom: 128px;
  }

  body[data-discover-mode="hero"] .global-publish {
    display: none;
  }

  .hero-landing {
    min-height: unset;
    padding: 80px 24px 60px;
  }

  .hero-logo {
    display: none;
  }

  .hero-landing h1 {
    font-size: 52px;
  }

  .hero-landing h1 span {
    display: block;
  }

  .hero-landing p {
    margin-top: 16px;
    font-size: 18px;
  }

  .hero-landing em {
    margin-top: 24px;
    font-size: 16px;
  }

  .hero-landing strong {
    margin: 24px 0 24px;
    font-size: 24px;
    letter-spacing: 0.32em;
  }

  .start-button {
    width: 100%;
    max-width: 400px;
    justify-content: center;
    padding: 18px 36px;
  }

  .discover-copy {
    display: none;
  }

  .swipe-hint {
    display: none;
  }

  .deck-wrap {
    height: 55vh;
    max-height: 820px;
    min-height: 380px;
  }

  .deck {
    width: min(92vw, 380px);
    height: clamp(440px, 55vh, 530px);
  }

  .market-shell,
  .chat-page,
  .mine-shell {
    padding-top: 76px;
    padding-bottom: 100px;
  }

  .market-tools {
    flex-direction: column;
    align-items: stretch;
  }

  .market-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .market-card {
    border-radius: 34px;
  }

  .market-image {
    aspect-ratio: 4 / 4.2;
  }

  .profile-main {
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
  }

  .profile-avatar {
    width: 96px;
    height: 96px;
    font-size: 34px;
  }

  .profile-card h2 {
    font-size: 38px;
  }

  .interest-panels {
    grid-template-columns: 1fr;
  }

  .profile-stats {
    gap: 12px;
  }

  .profile-stats div {
    padding: 18px 10px;
    border-radius: 22px;
  }

  .profile-stats strong {
    font-size: 26px;
  }

  .profile-stats span {
    margin-top: 8px;
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .badge-grid {
    gap: 14px;
  }

  .badge-grid article {
    padding: 16px;
    gap: 12px;
    border-radius: 22px;
  }

  .badge-grid span {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 18px;
  }

  .mine-section {
    margin-top: 16px;
  }

  .interest-panels {
    gap: 16px;
  }

  .interest-panel,
  .footprint-card {
    border-radius: 34px;
    padding: 28px;
  }

  .footprint-list article {
    grid-template-columns: 10px minmax(0, 1fr);
  }

  .footprint-list em {
    grid-column: 2;
    justify-self: start;
    margin-top: -16px;
  }

  .mine-tabs {
    gap: 12px;
  }

  .modal-card {
    display: flex;
    height: calc(100vh - 28px);
    overflow: auto;
  }

  .modal-hero {
    aspect-ratio: 4 / 5;
  }

  .modal-hero-title {
    left: 28px;
    right: 28px;
    bottom: 28px;
  }

  .modal-hero-title h2 {
    font-size: 32px;
  }

  .modal-body {
    gap: 32px;
    padding: 28px;
  }

  .detail-owner-row {
    align-items: stretch;
    flex-direction: column;
  }

  .detail-stats {
    width: 100%;
  }

  .detail-stat {
    flex: 1;
    min-width: 0;
    padding: 14px 18px;
  }

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

  .modal-actions {
    padding: 20px 28px;
  }

  .detail-action-secondary,
  .detail-action-primary {
    height: 58px;
    font-size: 13px;
    letter-spacing: 0.2em;
  }

  .publish-form {
    grid-template-columns: 1fr;
    height: calc(100vh - 28px);
    border-radius: 34px;
    padding: 24px;
  }

  .bottom-nav {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    height: 64px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.9);
    padding: 0 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(64px);
  }

  .bottom-nav button {
    background: transparent;
    color: rgba(23, 21, 20, 0.32);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.08em;
  }

  .bottom-nav .nav-active {
    color: var(--orange);
  }

  .global-publish {
    right: auto;
    left: 50%;
    bottom: 56px;
    z-index: 101;
    width: 48px;
    min-width: 48px;
    height: 48px;
    background: #a38d6d;
    box-shadow: 0 8px 16px rgba(163, 141, 109, 0.3);
    border: 3px solid #fff;
    transform: translateX(-50%);
  }

  .global-publish::after {
    display: none;
  }

  .global-publish:hover,
  .global-publish:focus-visible {
    width: 48px;
    background: #8f7a5d;
    box-shadow: 0 8px 20px rgba(163, 141, 109, 0.45);
  }

  .global-publish:hover strong,
  .global-publish:focus-visible strong {
    max-width: 0;
    margin-right: 0;
    opacity: 0;
  }

  .global-publish span {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    font-size: 28px;
  }

  .bottom-nav-gap {
    width: 48px;
    flex-shrink: 0;
  }

  .live-pop {
    right: 22px;
    bottom: 224px;
    max-width: min(300px, calc(100vw - 44px));
  }

  .chat-composer {
    bottom: 96px;
  }
}

@media (max-width: 640px) {
  .global-publish strong {
    display: none;
  }

  .app-shell {
    padding-inline: 14px;
  }

  .topbar {
    padding: 18px;
  }

  .deck-wrap {
    transform: translateX(-18px);
  }

  .deck {
    width: min(78vw, 320px);
    height: clamp(410px, 54vh, 460px);
  }

  .swap-card:nth-child(2) {
    transform: translateX(-26px) translateY(8px) scale(0.76) rotate(-5deg);
  }

  .swap-card:nth-child(3) {
    transform: translateX(26px) translateY(8px) scale(0.76) rotate(5deg);
  }

  .swap-card:nth-child(4) {
    transform: translateX(-44px) translateY(18px) scale(0.54) rotate(-10deg);
    opacity: 0.24;
  }

  .swap-card:nth-child(5) {
    transform: translateX(44px) translateY(18px) scale(0.54) rotate(10deg);
    opacity: 0.24;
  }

  .card-body {
    gap: 10px;
    padding: 24px;
  }

  .swap-card h2 {
    margin-bottom: 12px;
    font-size: 24px;
    line-height: 1.08;
  }

  .card-location {
    margin-bottom: 6px;
    font-size: 10px;
  }

  .card-wish {
    border-radius: 12px;
    padding: 12px;
  }

  .card-wish-label {
    font-size: 8px;
  }

  .card-wish-text {
    font-size: 12px;
    line-height: 1.45;
  }

  .swap-fields {
    border-radius: 18px;
    padding: 12px;
  }

  .swipe-actions {
    gap: 80px;
    margin-top: -16px;
  }

  .circle-action {
    width: 64px;
    height: 64px;
  }

  .live-pop {
    right: 22px;
    bottom: 224px;
    max-width: min(300px, calc(100vw - 44px));
  }

  .market-card h3 {
    font-size: 22px;
  }

  .subhead-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .mine-item {
    grid-template-columns: 88px minmax(0, 1fr);
    border-radius: 28px;
  }

  .mine-art {
    width: 88px;
    height: 88px;
  }

  .profile-card p {
    font-size: 13px;
    margin: 8px 0 14px;
    letter-spacing: 0.04em;
  }

  .profile-tags span {
    padding: 8px 13px;
    font-size: 11px;
  }

  .profile-stats strong {
    font-size: 22px;
  }

  .profile-stats div {
    padding: 14px 8px;
  }

  .mine-copy h3 {
    font-size: 17px;
  }

  .interest-panel h3 {
    font-size: 22px;
  }

  .interest-panel {
    padding: 24px;
    min-height: auto;
  }
}

@media (min-width: 981px) {
  .discover-core {
    min-height: 0;
    height: calc(100vh - 86px);
    margin-top: 86px;
    padding-top: 0;
    align-items: center;
  }

  .deck-wrap {
    min-height: 0;
  }

  .deck {
    height: clamp(560px, calc(100vh - 240px), 720px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
  display: flex;
  flex-direction: column;
  width: min(672px, 100%);
  height: auto;
  max-height: min(85vh, calc(100vh - 48px));
  padding: 0;
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 5;
  background: rgba(0, 0, 0, 0.1);
  color: #fff;
  backdrop-filter: blur(16px);
}

#modalContent {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
}

.modal-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.modal-hero {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
  background: var(--art-bg);
}

.modal-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, transparent 54%);
  pointer-events: none;
}

.modal-hero-title {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 34px;
  color: #fff;
}

.modal-hero-title span {
  display: inline-block;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 12px;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.18em;
}

.modal-hero-title h2 {
  margin: 0;
  font-size: 40px;
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: 0;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 40px;
}

.detail-owner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.detail-owner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.detail-owner-avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(23, 21, 20, 0.05);
  color: rgba(23, 21, 20, 0.2);
  font-size: 18px;
  font-weight: 950;
}

.detail-owner h4 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
}

.detail-owner-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  color: rgba(23, 21, 20, 0.2);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.detail-owner-meta svg,
.detail-wish svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-stats {
  display: flex;
  gap: 16px;
}

.detail-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
  border-radius: 24px;
  background: rgba(23, 21, 20, 0.02);
  padding: 16px 24px;
}

.detail-stat span {
  margin-bottom: 5px;
  color: rgba(23, 21, 20, 0.2);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.detail-stat strong {
  color: rgba(23, 21, 20, 0.8);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 15px;
  font-weight: 950;
}

.detail-stat-hot {
  background: rgba(255, 106, 0, 0.05);
}

.detail-stat-hot span {
  color: rgba(255, 106, 0, 0.6);
}

.detail-stat-hot strong {
  color: var(--orange);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.detail-grid div {
  border: 1px solid rgba(23, 21, 20, 0.01);
  border-radius: 16px;
  background: rgba(23, 21, 20, 0.02);
  padding: 12px;
}

.detail-grid span {
  display: block;
  margin-bottom: 5px;
  color: rgba(23, 21, 20, 0.2);
  font-size: 7px;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.detail-grid strong {
  display: block;
  overflow: hidden;
  color: rgba(23, 21, 20, 0.7);
  font-size: 10px;
  font-weight: 950;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-section label {
  display: block;
  margin-bottom: 12px;
  color: rgba(23, 21, 20, 0.2);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.detail-section p {
  margin: 0;
  color: rgba(23, 21, 20, 0.6);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
}

.detail-wish {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border: 1px solid rgba(255, 106, 0, 0.1);
  border-radius: 32px;
  background: rgba(255, 106, 0, 0.08);
  padding: 24px;
  color: #ea580c;
}

.detail-wish svg {
  width: 20px;
  height: 20px;
  margin-top: 4px;
}

.detail-wish p {
  color: #7c2d12;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.55;
}

.modal-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 16px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  padding: 24px 40px;
  backdrop-filter: blur(20px);
}

.detail-action-secondary,
.detail-action-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 64px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: 0.24em;
  transition: transform 180ms ease, background 180ms ease;
}

.detail-action-secondary {
  background: #000;
  color: #fff;
}

.detail-action-secondary:hover {
  background: rgba(0, 0, 0, 0.9);
}

.detail-action-primary {
  background: #ff8a3d;
  color: #fff;
  box-shadow: 0 20px 40px rgba(255, 138, 61, 0.3);
}

.detail-action-primary:hover {
  transform: scale(1.02);
}

.toast {
  position: fixed;
  left: 50%;
