.market-grid { grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); }
.market .brand strong { font-size: 32px; }
.market .brand small { letter-spacing: .17em; }
.market-nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); }
.market-nav a { font-size: 13px; color: #f1e6f3; text-decoration: none; }
.market-nav a:hover { color: #f8d798; }
.market-topup { gap: 6px; }
.market-title { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; margin: 4px 0 14px; }
.market-title h1 { font: 400 37px/1.08 var(--serif); color: #2f203b; letter-spacing: -.045em; margin: 0; }
.market-title > span { font-size: 12px; color: #705f78; }
.market .inbox-top { padding-bottom: 12px; }
.market .contact-row { min-height: 62px; padding-block: 8px; }
.market .contact-row > .icon { width: 15px; height: 15px; color: #7b6687; }
.market-avatar { overflow: visible; }
.market-avatar .avatar-fallback { position: absolute; }
.market-avatar img { position: relative; }
.market-avatar .dot { z-index: 1; }
.market-online {
  margin-left: 5px; color: #27694e; background: #e0eee3; border-radius: 20px;
  font-size: 9.5px; padding: 2px 5px; font-weight: 600; white-space: nowrap;
}
.market-footer { padding: 8px 14px; }
.office-link {
  display: flex; align-items: center; gap: 9px; text-decoration: none; width: 100%;
  color: #3c2b48; padding: 4px 3px; border-radius: 9px;
}
.office-link:hover { background: #f0e6f2; }
.office-link img { border-radius: 50%; object-fit: cover; border: 1px solid #c5a171; }
.office-link > span { flex: 1; min-width: 0; }
.office-link strong, .office-link small { display: block; }
.office-link strong { font-size: 12.5px; }
.office-link small { font-size: 11px; color: #6c5777; }
.office-link .icon { width: 15px; height: 15px; }
.market-chat { background: #efe6f3; }
.market-welcome { flex: 1; min-height: 0; overflow: auto; padding: clamp(15px, 2vw, 32px); display: flex; flex-direction: column; gap: 15px; }
.market-hero {
  position: relative; isolation: isolate; display: flex; align-items: center; flex: 1 0 auto;
  min-height: min(440px, 65dvh); border-radius: 18px; overflow: hidden;
  padding: clamp(25px, 5vw, 85px); color: #fff9f5;
  background: radial-gradient(ellipse at 100% 5%, #6e485e 0%, transparent 65%), #25172f;
  box-shadow: 0 14px 32px #2c194024;
  border: 1px solid #9e778b63;
}
.market-hero::before, .market-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.market-hero::before {
  background: url("assets/visionchat-salon.webp") right 46% / cover no-repeat;
}
.market-hero::after {
  background: linear-gradient(90deg, #21152cf7 0%, #23162de6 33%, #27163152 79%, #2a19231f 100%);
}
.hero-content { max-width: 535px; }
.hero-content > img { width: 45px; height: 54px; object-fit: contain; margin: 0 0 17px; }
.hero-content h2 {
  font: 400 clamp(41px, 5.15vw, 78px)/.99 var(--serif); letter-spacing: -.055em; margin: 0;
  text-shadow: 0 3px 22px #110a1f57;
}
.hero-content p { max-width: 390px; color: #f2e6f1; font-size: clamp(14px, 1.4vw, 19px); margin: 18px 0 22px; line-height: 1.48; }
.hero-content .action { padding: 0 16px; min-height: 47px; }
.market-intro-services {
  flex: 0 0 auto; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  background: #fffafc; border: 1px solid #e7d9ea; border-radius: 14px; padding: 11px 7px;
}
.market-intro-services > span {
  display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center;
  min-height: 41px; border-right: 1px solid #eadfee; color: #523761; font-size: 12px; font-weight: 600;
}
.market-intro-services > span:last-child { border: 0; }
.market-intro-services .icon { width: 18px; height: 18px; }
.market-conversation { min-height: 0; display: flex; flex: 1; flex-direction: column; }
.market-conversation .chat-header { background: #fdf9fd; }
.market-chat .chat-header-tools .action { min-height: 39px; }
.market-services {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px;
  padding: 11px 14px; background: #f9f2f9; border-bottom: 1px solid #ebddec;
}
.market-service {
  display: flex; align-items: center; gap: 7px; min-width: 0; min-height: 54px;
  padding: 6px 7px; color: #493351; text-align: left; border-radius: 10px;
  background: #fffcfd; border: 1px solid #ebdeec;
}
.market-service:hover { border-color: #ba95c4; background: #f2e9f4; }
.market-service > .icon { color: #735289; width: 19px; height: 19px; }
.market-service strong, .market-service small { display: block; }
.market-service strong { font-size: 12px; }
.market-service small { color: #6b5b72; font-size: 10.5px; margin-top: 2px; }
.market-service.live { border-color: #e5d1a6; background: #fcf3e3; }
.market-service.live > .icon { color: #8d6427; }
.market-contact-intro {
  text-align: center; width: min(460px, 100%); margin: 7vh auto 24px;
  border: 1px solid #e5d4e8; background: #fffafddf; padding: clamp(13px, 2.2vw, 27px); border-radius: 17px;
  color: #41304a; box-shadow: 0 11px 22px #3721460c;
}
.market-contact-intro .avatar { width: 62px; height: 62px; margin: 0 auto 11px; }
.market-contact-intro h3 { margin: 0; font: 400 30px/1.08 var(--serif); letter-spacing: -.03em; }
.market-contact-intro p { margin: 7px 0 0; color: #63536d; font-size: 13px; }
.market-contact-intro .action { margin-top: 13px; }
.market-chat-head-copy { color: #675870; font-size: 11.5px; display: inline-block; margin-left: 7px; }
.market .chat-header-tools a { flex-shrink: 0; }
.market .chat-header-mobile { display: none; }
.market .chat-stream { padding-inline: clamp(14px, 3.4vw, 64px); }
.market .modal-content { padding-bottom: 17px; }
.market-dialog-foot { margin-top: 12px; font-size: 12px; color: #6e6175; }
.voice-area { margin: 0 0 12px; color: #6e587a; }
.voice-area audio { width: 100%; margin-top: 7px; }
.voice-area input[type=file] { padding: 7px; background: #faf2fb; border-radius: 10px; }
.market .send-button .icon { margin-right: 0; }

@media (max-width: 1200px) {
  .market-service { flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 7px 3px; }
}
@media (max-width: 865px) {
  .market-nav { display: none; }
  .market-intro-services > span { flex-direction: column; gap: 5px; font-size: 11px; }
}
@media (max-width: 715px) {
  .market-grid { grid-template-columns: minmax(0, 1fr); }
  .market .brand strong { font-size: 23px; }
  .market .brand small { font-size: 7px; }
  .market-topup { min-height: 38px; padding: 0 8px; font-size: 12px; }
  .market-topup .icon { width: 17px; height: 17px; }
  .market-title { margin: 0 0 11px; }
  .market-title h1 { font-size: 34px; }
  .market-services { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 7px; gap: 5px; }
  .market-service { min-height: 43px; padding: 4px; gap: 4px; flex-direction: row; text-align: left; align-items: center; }
  .market-service .icon { width: 15px; height: 15px; }
  .market-service strong { font-size: 10.5px; }
  .market-service small { font-size: 9px; margin: 0; }
  .market-chat-head-copy { display: none; }
  .market .chat-header-tools a { padding: 0 8px; font-size: 10.5px; min-height: 38px; }
  .market-contact-intro { margin-top: 10px; }
  .market-footer { padding-bottom: max(8px, env(safe-area-inset-bottom)); }
}

.voice-message audio { max-width: 100%; height: 38px; margin-top: 7px; }
