:root {
  --navy: #233f69;
  --blue: #3164c5;
  --ink: #24314a;
  --muted: #677387;
  --line: #e3e7ed;
  --paper: #fff;
  --wash: #f5f7fa;
  --pale: #ecf1fa;
  --green: #26705a;
  --danger: #ae3b41;
  --radius: 14px;
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button {
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 650;
  line-height: 1.4;
}
h1 {
  font-size: 32px;
  letter-spacing: -1px;
}
h2 {
  font-size: 22px;
}
h3 {
  font-size: 15px;
}
a,
button {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #82aaf0;
  outline-offset: 4px;
}
.muted {
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip {
  position: fixed;
  top: -60px;
  left: 16px;
  background: var(--navy);
  color: white;
  padding: 12px;
  z-index: 100;
}
.skip:focus {
  top: 8px;
}
.shell {
  max-width: 1240px;
  margin: auto;
  padding: 36px 36px 68px;
}
.shell.narrow {
  max-width: 1050px;
}
.header {
  height: 90px;
  border-bottom: 1px solid var(--line);
  background: white;
}
.header-inner {
  height: 100%;
  max-width: 1360px;
  margin: auto;
  padding: 0 44px;
  display: flex;
  align-items: center;
  gap: 45px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.4px;
}
.brand small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--muted);
  margin-top: 1px;
}
.desktop-nav {
  display: flex;
  gap: 28px;
  align-self: stretch;
  align-items: center;
}
.desktop-nav a {
  height: 100%;
  display: flex;
  align-items: center;
  font-size: 14px;
  border-bottom: 3px solid transparent;
  padding-top: 3px;
  white-space: nowrap;
  color: var(--muted);
}
.desktop-nav a.active {
  border-color: var(--navy);
  color: var(--navy);
  font-weight: 650;
}
.header-actions {
  margin-left: auto;
  display: flex;
  gap: 24px;
  align-items: center;
}
.account-link {
  font-size: 13px;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  line-height: 1.4;
  font-weight: 550;
  white-space: nowrap;
}
.button:hover {
  border-color: #9caec8;
  background: #f8faff;
}
.button.primary {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}
.button.primary:hover {
  background: #325584;
}
.button.compact {
  padding: 9px 15px;
  min-height: 38px;
  font-size: 13px;
}
.button.square {
  padding: 12px;
}
.hero {
  min-height: 330px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: #edf2fa;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}
.hero-copy {
  padding: 39px 44px;
  position: relative;
  z-index: 2;
}
.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #52709b;
  font-size: 12px;
  letter-spacing: 1px;
}
.live-dot {
  width: 6px;
  height: 6px;
  background: #678c73;
  border-radius: 50%;
}
.hero h1 {
  font-size: 37px;
  line-height: 1.4;
  letter-spacing: 1px;
  margin: 14px 0 14px;
  font-weight: 650;
  color: #263e62;
}
.hero p {
  color: #687a94;
  font-size: 13px;
  line-height: 1.9;
}
.hero-link {
  display: inline-flex;
  gap: 15px;
  align-items: center;
  color: var(--navy);
  margin-top: 22px;
  font-size: 13px;
  font-weight: 650;
}
.hero-link svg {
  width: 18px;
}
.hero-art {
  position: relative;
  min-height: 340px;
  isolation: isolate;
}
.hero-art img {
  position: absolute;
  border: 7px solid white;
  border-bottom-width: 21px;
  box-shadow: 0 10px 30px #233f6914;
  width: 215px;
}
.hero-bag {
  right: 40px;
  top: 32px;
  transform: rotate(10deg);
}
.hero-books {
  right: 185px;
  top: 140px;
  transform: rotate(-10deg);
}
.hero-stamp {
  position: absolute;
  right: 34px;
  bottom: 30px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 1px solid #99adc9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #4b6992;
  transform: rotate(12deg);
  font-size: 11px;
  background: #edf2fa;
  z-index: 2;
}
.hero-stamp strong {
  font-size: 17px;
  font-weight: 500;
}
.hero-caption {
  position: absolute;
  top: 35px;
  left: 25px;
  writing-mode: vertical-rl;
  letter-spacing: 4px;
  color: #7790ad;
  font-size: 10px;
}
.orbit {
  position: absolute;
  border: 1px solid #d6e0f0;
  border-radius: 50%;
  width: 490px;
  height: 490px;
  top: -70px;
  left: 0;
  z-index: -1;
}
.orbit-two {
  width: 360px;
  height: 360px;
  top: -5px;
  left: 65px;
}
.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 55px;
  padding: 20px 0;
  color: var(--muted);
  font-size: 12px;
  border-bottom: 1px solid var(--line);
}
.trust-strip span {
  display: flex;
  gap: 8px;
  align-items: center;
}
.trust-strip svg {
  height: 16px;
  width: 16px;
  color: #7b8ea6;
}
.market-section {
  padding-top: 32px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.section-heading > div {
  display: flex;
  gap: 15px;
  align-items: baseline;
}
.section-heading h2 {
  font-size: 23px;
}
.section-heading .muted {
  font-size: 12px;
}
.search {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 3px 4px 3px 13px;
  width: 360px;
  gap: 8px;
}
.search svg {
  color: #8592a5;
  width: 17px;
}
.search input {
  width: 100%;
  border: 0;
  outline: 0;
  min-width: 0;
  padding: 8px 0;
  font-size: 12px;
  background: transparent;
}
.search button {
  border: 0;
  border-radius: 6px;
  background: var(--pale);
  color: var(--navy);
  padding: 8px 13px;
  font-size: 12px;
  white-space: nowrap;
}
.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0 24px;
}
.category-tabs {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.category {
  border: 0;
  border-radius: 7px;
  padding: 8px 13px;
  background: transparent;
  color: var(--muted);
  white-space: nowrap;
  font-size: 12px;
}
.category:hover {
  background: var(--wash);
}
.category.selected {
  background: var(--navy);
  color: white;
}
.filter-selects {
  display: flex;
  gap: 8px;
}
.filter-selects select {
  border: 1px solid var(--line);
  padding: 8px 9px;
  border-radius: 7px;
  font-size: 12px;
  background: white;
  color: var(--muted);
  max-width: 135px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 25px;
}
.product-card {
  min-width: 0;
}
.product-image {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: var(--wash);
  aspect-ratio: 1.37;
}
.product-image > a {
  display: block;
  height: 100%;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.product-image > a:hover img {
  transform: scale(1.025);
}
.condition {
  position: absolute;
  left: 12px;
  top: 12px;
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 10px;
  background: #ffffffd9;
  color: #536176;
  pointer-events: none;
}
.favorite {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: #ffffffdc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #718096;
}
.favorite svg {
  width: 16px;
  height: 16px;
}
.is-favorite {
  color: #b14b64 !important;
}
.is-favorite svg {
  fill: #f6d9e1;
}
.item-state {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: #fff;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 11px;
}
.product-info {
  padding: 14px 1px 0;
}
.product-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
}
.product-meta svg {
  width: 12px;
  height: 12px;
}
.product-meta > span {
  margin-left: auto;
  color: #8892a2;
}
.product-title {
  display: block;
  font-size: 15px;
  font-weight: 550;
  margin: 7px 0 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-title:hover {
  color: var(--blue);
}
.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.price {
  font-size: 23px;
  font-weight: 650;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.5px;
}
.price small {
  font-size: 13px;
  margin-right: 3px;
  font-weight: 500;
}
.seller-mini {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
}
.mini-avatar {
  background: #e9eef2;
  color: #738498;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  font-size: 9px;
}
.demo-note {
  font-size: 11px;
  color: #7c8799;
  text-align: center;
  margin-top: 36px;
}
.footer {
  border-top: 1px solid var(--line);
  max-width: 1168px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 24px 0 32px;
  color: #7c8799;
  font-size: 11px;
}
.footer span:first-child {
  font-weight: 600;
  color: #5b6d86;
}
.mobile-nav {
  display: none;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0 32px;
  gap: 15px;
}
.page-heading p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
}
.loading {
  display: grid;
  place-items: center;
  min-height: 60vh;
  color: var(--muted);
}
.empty {
  text-align: center;
  padding: 65px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.empty h2 {
  font-size: 21px;
}
.empty p {
  color: var(--muted);
  max-width: 400px;
}
.empty-icon {
  width: 65px;
  height: 65px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pale);
  color: #7386a7;
}
.empty-icon svg {
  width: 30px;
  height: 30px;
}
.empty .button {
  margin-top: 8px;
}
.back-link {
  display: inline-block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 25px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 65px;
}
.detail-image {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  overflow: hidden;
  background: var(--wash);
}
.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.image-caption {
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
}
.eyebrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.status {
  font-size: 11px;
  font-weight: 500;
  background: var(--wash);
  color: var(--muted);
  border-radius: 5px;
  padding: 4px 9px;
  white-space: nowrap;
}
.status.available,
.status.completed {
  background: #eaf4ef;
  color: #387359;
}
.status.pending {
  background: #fff4e3;
  color: #906029;
}
.status.accepted,
.status.reserved {
  background: var(--pale);
  color: #43659a;
}
.detail-info h1 {
  font-size: 29px;
  margin: 14px 0 16px;
  overflow-wrap: anywhere;
}
.detail-price {
  font-size: 40px;
  line-height: 1.2;
  font-weight: 650;
  color: var(--navy);
}
.detail-price small {
  font-size: 20px;
  margin-right: 5px;
}
.tags {
  display: flex;
  gap: 9px;
  margin: 17px 0 22px;
  font-size: 11px;
  color: var(--muted);
}
.tags span {
  border: 1px solid var(--line);
  padding: 4px 9px;
  border-radius: 5px;
}
.seller-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 19px 0;
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e1eaf5;
  color: var(--navy);
  display: grid;
  place-items: center;
  font-size: 17px;
  flex-shrink: 0;
}
.seller-panel p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.detail-section {
  margin: 23px 0;
}
.detail-section p {
  color: #607087;
  font-size: 13px;
  margin-top: 9px;
  line-height: 1.9;
}
.preserve {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.meeting-hint {
  display: flex;
  gap: 10px;
  background: var(--wash);
  padding: 15px;
  border-radius: 9px;
}
.meeting-hint strong {
  font-size: 12px;
}
.meeting-hint p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  overflow-wrap: anywhere;
}
.meeting-hint svg {
  margin-top: 2px;
  width: 18px;
}
.detail-actions {
  display: flex;
  gap: 10px;
  margin-top: 25px;
}
.detail-actions > .primary {
  flex: 1;
}
.fine-print {
  font-size: 11px;
  color: var(--muted);
  margin-top: 14px;
  line-height: 1.8;
}
.review-section {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin-top: 44px;
}
.review-section h2 {
  font-size: 20px;
  margin-bottom: 22px;
}
.review {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.review > div {
  display: flex;
  justify-content: space-between;
}
.review p {
  margin-top: 8px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.stars {
  color: #b98638;
  letter-spacing: 2px;
}
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-stack label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  font-weight: 550;
}
.form-stack label small {
  font-weight: 400;
  color: var(--muted);
  font-size: 11px;
}
.form-stack input,
.form-stack textarea,
.form-stack select {
  width: 100%;
  border: 1px solid #dbe1ea;
  border-radius: 8px;
  padding: 12px 13px;
  background: white;
  color: var(--ink);
  min-height: 46px;
  font-size: 13px;
  outline-color: #82aaf0;
}
.form-stack input::placeholder,
.form-stack textarea::placeholder {
  color: #8c96a6;
}
.form-stack textarea {
  resize: vertical;
  line-height: 1.7;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field-hint {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.8;
}
.notice {
  font-size: 12px;
  background: var(--pale);
  padding: 12px 15px;
  color: #536b8e;
  border-radius: 7px;
  line-height: 1.8;
}
.form-error {
  color: var(--danger);
  font-size: 12px;
  white-space: pre-wrap;
}
.form-error:empty {
  display: none;
}
.publish-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.2fr;
  gap: 45px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.upload-box {
  aspect-ratio: 1;
  border: 1px dashed #bdcadd;
  border-radius: 14px;
  background: var(--wash);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}
.upload-box:focus-within {
  outline: 3px solid #82aaf0;
  outline-offset: 4px;
}
.upload-box > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.upload-box > span[hidden] {
  display: none;
}
.upload-box svg {
  width: 40px;
  height: 40px;
  color: #869aba;
}
.upload-box strong {
  font-size: 15px;
  font-weight: 550;
}
.upload-box span span:not(.button) {
  font-size: 11px;
  color: var(--muted);
}
.upload-box .button {
  margin-top: 12px;
}
.upload-box > img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  max-width: 1080px;
  padding-top: 60px;
  min-height: 75vh;
}
.auth-story {
  background: var(--pale);
  padding: 36px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}
.auth-story h1 {
  font-size: 32px;
  margin: 24px 0 14px;
  line-height: 1.55;
}
.auth-story p {
  font-size: 13px;
  line-height: 1.9;
  color: #6c7e98;
}
.auth-story .auth-art {
  width: 220px;
  margin: 20px auto;
  transform: rotate(-8deg);
  border: 8px solid white;
  box-shadow: 0 8px 20px #233f6910;
}
.auth-story > span {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--muted);
}
.auth-panel {
  padding: 24px 0;
}
.auth-panel h2 {
  font-size: 25px;
}
.auth-panel > .muted {
  font-size: 13px;
  margin: 10px 0 30px;
}
.auth-switch {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin: 22px 0;
}
.auth-switch a {
  color: var(--blue);
}
.trade-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}
.trade-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.trade-card {
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
}
.trade-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--wash);
  padding: 13px 22px;
  font-size: 12px;
}
.trade-card-top .muted {
  margin-left: 12px;
  font-size: 11px;
}
.trade-body {
  display: flex;
  gap: 22px;
  padding: 24px;
}
.trade-body > a {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}
.trade-body img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9px;
}
.trade-details {
  flex: 1;
  min-width: 0;
}
.trade-details h2 {
  font-size: 17px;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
.trade-details p {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.trade-details svg {
  height: 13px;
  width: 13px;
}
.trade-body > .price {
  font-size: 23px;
  align-self: flex-start;
  white-space: nowrap;
}
.trade-note {
  white-space: pre-wrap;
}
.trade-progress {
  display: flex;
  margin: 0 24px 20px;
  background: #f8fafc;
  border-radius: 7px;
  padding: 14px 20px;
  gap: 10px;
}
.trade-progress span {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: #8d98a9;
  position: relative;
}
.trade-progress i {
  font-style: normal;
  border: 1px solid #d9e0e9;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  text-align: center;
  font-size: 10px;
  line-height: 19px;
}
.trade-progress .done {
  color: #416a85;
}
.trade-progress .done i {
  background: #dce9ee;
  color: #386780;
  border: 0;
}
.trade-actions {
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}
.trade-actions > .muted {
  margin-right: auto;
  font-size: 12px;
}
.cancel-reason {
  font-size: 12px;
  color: var(--muted);
  padding: 0 24px 20px;
}
.profile-summary {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px;
  background: var(--pale);
  border-radius: 12px;
}
.avatar.large {
  width: 64px;
  height: 64px;
  background: white;
  font-size: 26px;
}
.profile-summary h2 {
  font-size: 23px;
}
.profile-summary p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
.profile-summary .button {
  margin-left: auto;
}
.profile-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 25px 0 40px;
  padding: 24px 0;
}
.profile-links a {
  text-align: center;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.profile-links a:last-child {
  border: 0;
}
.profile-links strong {
  font-size: 25px;
  font-weight: 600;
  color: var(--navy);
}
.profile-links span {
  font-size: 12px;
  color: var(--muted);
}
.profile-edit h2 {
  font-size: 20px;
  margin-bottom: 22px;
}
.profile-edit .button {
  align-self: flex-start;
}
.inbox-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  min-height: 540px;
}
.conversation-list {
  border-right: 1px solid var(--line);
  background: #fafbfd;
  max-height: 650px;
  overflow-y: auto;
}
.conversation {
  display: flex;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.conversation.selected {
  background: #eaf0f9;
  box-shadow: inset 3px 0 var(--navy);
}
.conversation img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
}
.conversation > div {
  min-width: 0;
  flex: 1;
}
.conversation strong {
  font-size: 13px;
  display: block;
}
.conversation span {
  font-size: 11px;
  display: block;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.conversation p {
  font-size: 11px;
  color: #7b889e;
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.conversation-empty {
  padding: 25px;
  font-size: 13px;
  line-height: 1.9;
}
.chat-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}
.chat-header strong {
  font-size: 14px;
}
.chat-header p {
  font-size: 11px;
  color: var(--muted);
  max-width: 350px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.chat-notice {
  background: #f8f5ed;
  padding: 7px 20px;
  font-size: 10px;
  color: #8a7957;
  text-align: center;
}
.chat-log {
  height: 350px;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 17px;
  scroll-behavior: smooth;
}
.message {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.message.own {
  align-items: flex-end;
}
.message-author {
  font-size: 10px;
  color: #7d899b;
  margin-bottom: 5px;
}
.message p {
  max-width: 85%;
  padding: 10px 14px;
  background: var(--wash);
  border-radius: 0 12px 12px 12px;
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message.own p {
  background: #e7eefb;
  border-radius: 12px 0 12px 12px;
}
.chat-start {
  color: var(--muted);
  font-size: 12px;
  margin: auto;
}
.message-form {
  border-top: 1px solid var(--line);
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: auto;
}
.message-form textarea {
  flex: 1;
  min-width: 0;
  resize: none;
  border: 0;
  outline: 0;
  background: var(--wash);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.7;
}
.message-form .form-error {
  width: 100%;
}
dialog {
  border: 0;
  border-radius: 16px;
  padding: 32px;
  width: min(500px, calc(100% - 32px));
  color: var(--ink);
  box-shadow: 0 20px 80px #142b5230;
  max-height: 90dvh;
  overflow-y: auto;
}
dialog::backdrop {
  background: #18283e66;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 23px;
  padding-right: 20px;
  margin-bottom: 12px;
}
dialog .form-stack {
  margin-top: 24px;
}
.modal-close {
  position: absolute;
  right: 14px;
  top: 12px;
  background: transparent;
  border: 0;
  font-size: 27px;
  color: #8591a3;
  padding: 3px 9px;
}
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 26px;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 15px);
  background: #233f69;
  color: white;
  padding: 13px 22px;
  border-radius: 9px;
  z-index: 1000;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.15s,
    transform 0.15s;
  max-width: calc(100% - 32px);
  width: max-content;
  box-shadow: 0 4px 20px #233f6920;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (min-width: 1450px) {
  .shell {
    max-width: 1330px;
  }
  .hero-art img {
    width: 235px;
  }
  .hero-bag {
    right: 70px;
  }
  .hero-books {
    right: 230px;
  }
  .hero-stamp {
    right: 80px;
  }
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .product-title {
    font-size: 14px;
  }
  .footer {
    max-width: 1258px;
  }
}
@media (max-width: 1100px) {
  .header-inner {
    gap: 25px;
    padding: 0 28px;
  }
  .desktop-nav {
    gap: 20px;
  }
  .header-actions {
    gap: 15px;
  }
  .brand {
    font-size: 17px;
  }
  .brand small {
    font-size: 9px;
  }
  .hero-copy {
    padding: 32px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero-art img {
    width: 185px;
  }
  .hero-bag {
    right: 25px;
    top: 45px;
  }
  .hero-books {
    right: 140px;
    top: 152px;
  }
  .hero-stamp {
    right: 20px;
    bottom: 20px;
  }
  .hero-caption {
    display: none;
  }
  .filter-row {
    align-items: flex-start;
  }
  .filter-selects {
    flex-direction: column;
  }
  .trust-strip {
    gap: 25px;
  }
  .detail-grid {
    gap: 35px;
  }
  .auth-layout {
    gap: 55px;
  }
  .footer {
    margin: 0 36px;
  }
  .desktop-nav a {
    font-size: 12px;
  }
}
@media (max-width: 800px) {
  .header {
    height: 76px;
  }
  .header-inner {
    padding: 0 22px;
    gap: 15px;
  }
  .desktop-nav {
    display: none;
  }
  .header-actions .button {
    display: none;
  }
  .header-actions {
    gap: 10px;
  }
  .shell {
    padding: 25px 22px 45px;
  }
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    min-height: 300px;
  }
  .hero-copy {
    padding: 28px;
  }
  .hero h1 {
    font-size: 28px;
  }
  .hero p {
    font-size: 12px;
  }
  .hero-art {
    min-height: 300px;
  }
  .hero-art img {
    width: 145px;
  }
  .hero-bag {
    right: 22px;
    top: 48px;
  }
  .hero-books {
    right: 80px;
    top: 153px;
  }
  .hero-stamp {
    width: 65px;
    height: 65px;
    right: 12px;
    bottom: 20px;
    font-size: 9px;
  }
  .hero-stamp strong {
    font-size: 13px;
  }
  .trust-strip {
    justify-content: space-between;
    gap: 12px;
    font-size: 10px;
  }
  .trust-strip span {
    gap: 5px;
  }
  .section-heading {
    align-items: flex-start;
  }
  .section-heading > div {
    flex-direction: column;
    gap: 4px;
  }
  .section-heading h2 {
    font-size: 21px;
  }
  .search {
    width: 280px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 20px;
  }
  .filter-row {
    flex-direction: column;
    gap: 14px;
  }
  .filter-selects {
    flex-direction: row;
    align-self: flex-end;
  }
  .category-tabs {
    gap: 3px;
  }
  .category {
    padding: 8px 11px;
  }
  .footer {
    padding-bottom: 100px;
    margin: 0 22px;
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: #fffffff5;
    border-top: 1px solid var(--line);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    backdrop-filter: blur(12px);
    justify-content: space-around;
  }
  .mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
    color: #7c889b;
    min-width: 55px;
  }
  .mobile-nav a span {
    font-size: 24px;
    line-height: 1.3;
    font-family: Arial, sans-serif;
  }
  .mobile-nav a.active {
    color: var(--navy);
    font-weight: 650;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .detail-grid {
    gap: 28px;
  }
  .detail-info h1 {
    font-size: 23px;
  }
  .detail-price {
    font-size: 32px;
  }
  .detail-actions {
    flex-wrap: wrap;
  }
  .detail-actions > .primary {
    min-width: 100%;
  }
  .detail-actions > .button:not(.primary) {
    flex: 1;
  }
  .detail-actions > .square {
    flex: 0;
  }
  .detail-grid .tags {
    flex-wrap: wrap;
  }
  .publish-layout {
    gap: 25px;
    grid-template-columns: 0.8fr 1.2fr;
  }
  .auth-layout {
    gap: 30px;
  }
  .auth-story {
    padding: 25px;
  }
  .auth-story h1 {
    font-size: 25px;
  }
  .auth-panel h2 {
    font-size: 23px;
  }
  .inbox-layout {
    grid-template-columns: 225px 1fr;
  }
  .conversation {
    padding: 14px 12px;
  }
  .conversation img {
    width: 38px;
    height: 38px;
  }
  .chat-header {
    padding: 14px;
  }
  .chat-header p {
    max-width: 200px;
  }
  .trade-progress {
    gap: 5px;
    padding: 12px;
  }
  .trade-progress span {
    font-size: 10px;
    gap: 5px;
  }
  #toast {
    bottom: 90px;
  }
}
@media (max-width: 540px) {
  .header-inner {
    padding: 0 18px;
  }
  .brand {
    font-size: 16px;
    gap: 10px;
  }
  .brand img {
    width: 35px;
    height: 35px;
  }
  .brand small {
    font-size: 9px;
    letter-spacing: 1.2px;
  }
  .account-link {
    font-size: 12px;
    max-width: 90px;
  }
  .shell {
    padding: 20px 18px 38px;
  }
  .hero {
    display: block;
    min-height: 255px;
    border-radius: 12px;
  }
  .hero-copy {
    padding: 27px 23px;
    max-width: 85%;
  }
  .hero-note {
    font-size: 10px;
    letter-spacing: 0.5px;
  }
  .hero h1 {
    font-size: 27px;
    margin: 12px 0;
    letter-spacing: 0;
  }
  .hero p {
    font-size: 11px;
  }
  .hero-link {
    font-size: 11px;
    margin-top: 18px;
    gap: 8px;
  }
  .hero-art {
    position: absolute;
    right: -32px;
    bottom: 0;
    width: 150px;
    height: 220px;
    min-height: 0;
    opacity: 0.7;
    z-index: 0;
  }
  .hero-art img {
    width: 112px;
    border-width: 4px;
    border-bottom-width: 12px;
  }
  .hero-bag {
    top: 15px;
    right: 5px;
    transform: rotate(18deg);
  }
  .hero-books {
    right: 34px;
    top: 125px;
    transform: rotate(-7deg);
  }
  .hero-stamp {
    display: none;
  }
  .orbit {
    width: 280px;
    height: 280px;
    left: -80px;
  }
  .orbit-two {
    display: none;
  }
  .trust-strip {
    padding: 14px 0;
    font-size: 10px;
    gap: 10px;
    justify-content: space-around;
  }
  .trust-strip span:last-child {
    display: none;
  }
  .trust-strip svg {
    width: 13px;
    height: 13px;
  }
  .market-section {
    padding-top: 25px;
  }
  .section-heading {
    flex-direction: column;
    gap: 16px;
  }
  .section-heading > div {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
  }
  .section-heading h2 {
    font-size: 21px;
  }
  .section-heading .muted {
    font-size: 10px;
  }
  .search {
    width: 100%;
    padding: 4px 5px 4px 12px;
  }
  .search input {
    font-size: 12px;
  }
  .filter-row {
    margin: 16px 0 18px;
    gap: 12px;
  }
  .category-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 3px;
    scrollbar-width: none;
  }
  .category-tabs::-webkit-scrollbar {
    display: none;
  }
  .category {
    font-size: 11px;
    padding: 8px 11px;
    flex-shrink: 0;
  }
  .filter-selects {
    align-self: stretch;
    justify-content: space-between;
  }
  .filter-selects select {
    font-size: 11px;
    padding: 6px 8px;
    max-width: 150px;
  }
  .product-grid {
    gap: 23px 13px;
  }
  .product-image {
    aspect-ratio: 1.05;
    border-radius: 9px;
  }
  .product-image img {
    object-fit: cover;
  }
  .condition {
    font-size: 9px;
    top: 8px;
    left: 8px;
    padding: 2px 6px;
  }
  .favorite {
    width: 28px;
    height: 28px;
    top: 7px;
    right: 7px;
  }
  .favorite svg {
    width: 14px;
    height: 14px;
  }
  .product-info {
    padding: 10px 0 0;
  }
  .product-meta {
    font-size: 10px;
  }
  .product-meta > span {
    display: none;
  }
  .product-title {
    font-size: 12px;
    line-height: 1.6;
    margin: 6px 0 8px;
  }
  .price {
    font-size: 20px;
  }
  .price small {
    font-size: 11px;
  }
  .seller-mini {
    font-size: 9px;
    gap: 3px;
  }
  .mini-avatar {
    height: 17px;
    width: 17px;
    font-size: 8px;
  }
  .demo-note {
    font-size: 10px;
    line-height: 1.8;
    margin-top: 26px;
  }
  .footer {
    flex-direction: column;
    gap: 6px;
    padding: 18px 0 100px;
    font-size: 10px;
    margin: 0 18px;
  }
  .page-heading {
    margin: 5px 0 24px;
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .page-heading p {
    font-size: 12px;
    margin-top: 9px;
    max-width: 300px;
  }
  .page-heading > .button {
    padding: 9px 12px;
    min-height: 36px;
    font-size: 11px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .detail-image {
    aspect-ratio: 1.15;
    border-radius: 12px;
  }
  .detail-info h1 {
    font-size: 26px;
  }
  .detail-actions > .primary {
    min-width: 0;
  }
  .detail-actions > .button:not(.primary) {
    flex: 0 1 auto;
  }
  .detail-section p {
    font-size: 13px;
  }
  .detail-price {
    font-size: 37px;
  }
  .review-section {
    margin-top: 30px;
  }
  .image-caption {
    font-size: 10px;
  }
  .back-link {
    margin-bottom: 15px;
  }
  .publish-layout {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-top: 24px;
  }
  .upload-box {
    aspect-ratio: 1.65;
  }
  .upload-box > span {
    gap: 6px;
  }
  .upload-box svg {
    width: 28px;
    height: 28px;
  }
  .upload-box .button {
    margin-top: 6px;
    min-height: 36px;
    padding: 7px 16px;
    font-size: 12px;
  }
  .form-stack {
    gap: 17px;
  }
  .form-grid {
    gap: 12px;
  }
  .form-stack input,
  .form-stack textarea,
  .form-stack select {
    font-size: 16px;
  }
  .form-stack label {
    font-size: 12px;
  }
  .form-stack input::placeholder,
  .form-stack textarea::placeholder {
    font-size: 12px;
  }
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-top: 28px;
  }
  .auth-story {
    padding: 22px;
    background: var(--pale);
    min-height: 170px;
  }
  .auth-story > img:first-child {
    display: none;
  }
  .auth-story h1 {
    font-size: 25px;
    margin: 0 0 10px;
    position: relative;
    z-index: 1;
  }
  .auth-story p {
    font-size: 11px;
    position: relative;
    z-index: 1;
  }
  .auth-story .auth-art {
    position: absolute;
    width: 130px;
    right: 8px;
    top: 12px;
    opacity: 0.8;
  }
  .auth-story > span {
    display: none;
  }
  .auth-panel {
    padding: 0 4px 20px;
  }
  .auth-panel h2 {
    font-size: 23px;
  }
  .auth-panel > .muted {
    font-size: 12px;
    margin-bottom: 24px;
  }
  .trade-toolbar {
    gap: 10px;
  }
  .trade-toolbar .category-tabs {
    width: auto;
  }
  .trade-toolbar .button {
    font-size: 11px;
    padding: 7px 9px;
  }
  .trade-card-top {
    padding: 11px 14px;
    font-size: 11px;
  }
  .trade-card-top .muted {
    margin-left: 6px;
    font-size: 10px;
  }
  .trade-body {
    padding: 16px;
    gap: 13px;
    position: relative;
  }
  .trade-body > a {
    width: 70px;
    height: 70px;
  }
  .trade-details h2 {
    font-size: 14px;
    padding-right: 5px;
  }
  .trade-details p {
    font-size: 11px;
  }
  .trade-body > .price {
    position: absolute;
    left: 16px;
    top: 96px;
    font-size: 18px;
  }
  .trade-progress {
    margin: 3px 12px 15px;
    padding: 10px 8px;
    gap: 7px;
  }
  .trade-progress span {
    font-size: 9px;
    gap: 5px;
    align-items: flex-start;
  }
  .trade-progress i {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    line-height: 16px;
    font-size: 9px;
  }
  .trade-actions {
    padding: 13px;
    gap: 7px;
    flex-wrap: wrap;
  }
  .trade-actions > .button {
    font-size: 11px;
    padding: 8px 11px;
    min-height: 35px;
  }
  .trade-actions > .muted {
    width: 100%;
    font-size: 11px;
  }
  .profile-summary {
    padding: 20px 16px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .profile-summary h2 {
    font-size: 21px;
  }
  .profile-summary .button {
    font-size: 11px;
    min-height: 36px;
    padding: 9px 11px;
  }
  .avatar.large {
    height: 48px;
    width: 48px;
    font-size: 21px;
  }
  .profile-links {
    padding: 20px 0;
    margin: 20px 0 30px;
  }
  .profile-links strong {
    font-size: 23px;
  }
  .profile-links span {
    font-size: 11px;
  }
  .inbox-layout {
    display: flex;
    flex-direction: column;
    min-height: 550px;
  }
  .conversation-list {
    border: 0;
    border-bottom: 1px solid var(--line);
    max-height: 180px;
    display: flex;
    overflow-x: auto;
    flex-shrink: 0;
  }
  .conversation {
    min-width: 210px;
    max-width: 230px;
    padding: 12px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }
  .conversation.selected {
    box-shadow: inset 0 -3px var(--navy);
  }
  .conversation p {
    margin-top: 3px;
  }
  .chat-header p {
    max-width: 210px;
  }
  .chat-log {
    height: 330px;
    padding: 15px;
  }
  .chat-header .button {
    font-size: 11px;
    padding: 8px 10px;
  }
  .chat-notice {
    font-size: 9px;
  }
  .message-form {
    padding: 12px;
    gap: 9px;
  }
  .message-form textarea {
    font-size: 16px;
  }
  .message-form textarea::placeholder {
    font-size: 11px;
  }
  .message-form .button {
    font-size: 12px;
    padding: 10px 14px;
  }
  .message p {
    font-size: 12px;
  }
  .cancel-reason {
    padding: 0 16px 15px;
    font-size: 11px;
  }
  dialog {
    padding: 27px 22px;
  }
  dialog h2 {
    font-size: 22px;
  }
  .empty {
    padding: 45px 15px;
  }
  .empty p {
    font-size: 12px;
  }
  h1 {
    letter-spacing: -0.4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .product-image > a:hover img {
    transform: none;
  }
}
@media (max-width: 540px) {
  .hero-copy {
    max-width: 100%;
  }
  .hero h1 {
    font-size: 25px;
  }
  .hero-art {
    opacity: 0.35;
    right: -40px;
    width: 120px;
  }
  .hero-bag {
    display: none;
  }
  .hero-books {
    top: auto;
    bottom: 15px;
    right: 0;
  }
  .hero .orbit {
    display: none;
  }
}
[hidden] {
  display: none !important;
}
