:root {
  --ink: #182019;
  --muted: #637067;
  --line: #dfe6df;
  --paper: #fbfaf5;
  --surface: #ffffff;
  --mint: #dcefe4;
  --green: #1f6f53;
  --green-dark: #104c37;
  --gold: #c4933b;
  --coral: #d56f54;
  --shadow: 0 18px 50px rgba(24, 32, 25, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial,
    sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

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

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

.translate-topbar {
  position: relative;
  z-index: 30;
  border-bottom: 1px solid rgba(24, 32, 25, 0.08);
  background: #122018;
  color: #fff;
}

.translate-inner {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 0 6vw;
  font-size: 13px;
  font-weight: 900;
}

.translate-inner > span {
  color: rgba(255, 255, 255, 0.78);
}

#google_translate_element {
  min-width: 158px;
}

#google_translate_element select {
  min-height: 30px;
  max-width: 230px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  padding: 0 8px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
}

#google_translate_element .goog-te-gadget {
  color: transparent;
  font-family: inherit;
  font-size: 0;
}

#google_translate_element .goog-te-gadget span,
#google_translate_element .goog-logo-link {
  display: none;
}

.goog-te-banner-frame {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 6vw;
  border-bottom: 1px solid rgba(24, 32, 25, 0.08);
  background: rgba(251, 250, 245, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--green-dark);
  color: #fff;
  font-weight: 900;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
}

.site-nav a:hover {
  color: var(--green-dark);
}

.primary-button,
.secondary-button,
.agreement-form button,
.header-user-actions button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 800;
}

.primary-button,
.agreement-form button,
.header-user-actions button {
  border: 0;
  background: var(--green-dark);
  color: #fff;
  box-shadow: 0 12px 26px rgba(16, 76, 55, 0.18);
}

.header-user-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.header-user-actions button {
  min-height: 38px;
  padding: 0 12px;
  white-space: nowrap;
}

.header-user-actions button[hidden] {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: 5vw;
  min-height: calc(100vh - 72px);
  padding: 8vh 6vw 7vh;
}

.hero-copy {
  max-width: 700px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 1.03;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(27px, 3.4vw, 46px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.22;
}

.hero-lede {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 19px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 26px;
}

.primary-button,
.secondary-button {
  min-width: 150px;
  padding: 0 22px;
}

.secondary-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
}

.trust-strip span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  font-size: 14px;
}

.hero-visual {
  overflow: hidden;
  border: 1px solid rgba(24, 32, 25, 0.08);
  border-radius: 8px;
  background: linear-gradient(145deg, #ffffff, #edf4ed);
  box-shadow: var(--shadow);
}

.hero-visual img {
  display: block;
  width: 100%;
  min-height: 380px;
  object-fit: cover;
}

.section {
  padding: 92px 6vw;
}

.section-tight {
  padding-top: 58px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  max-width: 1120px;
  margin: 0 auto 34px;
}

.message-privacy-note {
  max-width: 900px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.7;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
}

.principle-card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.principle-card p,
.flow-line p,
.start-copy p,
.version-panel p,
.form-note {
  color: var(--muted);
}

.auth-modal[hidden],
.post-message-modal[hidden] {
  display: none;
}

.auth-modal,
.post-message-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  width: min(760px, 100%);
  max-height: min(88vh, 860px);
  overflow: auto;
  border-radius: 8px;
  padding: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-right: 48px;
}

.auth-tabs button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--green-dark);
  font-weight: 900;
  cursor: pointer;
}

.auth-tabs button.is-active {
  border-color: var(--green-dark);
  background: var(--green-dark);
  color: #fff;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form[hidden] {
  display: none;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.auth-form input,
.auth-form select,
.auth-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}

.auth-form textarea {
  min-height: 110px;
  resize: vertical;
}

.auth-form button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--green-dark);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.auth-form .text-action-button {
  min-height: 36px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--green-dark);
  box-shadow: none;
}

.identity-upload-box {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--paper);
}

.identity-upload-box p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.7;
}

.verification-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.verification-inline button {
  min-height: 44px;
  padding: 0 12px;
  white-space: nowrap;
}

.icon-badge {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--mint);
  color: var(--green-dark);
  font-weight: 900;
}

.band {
  background: #eff5ee;
}

.version-switch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 520px;
  min-height: 52px;
  margin: 0 auto 18px;
  padding: 4px;
  border: 1px solid rgba(31, 111, 83, 0.2);
  border-radius: 8px;
  background: #fff;
}

.switch-button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.switch-button.active {
  background: var(--green-dark);
  color: #fff;
}

.version-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.74fr);
  gap: 32px;
  max-width: 960px;
  min-height: 270px;
  margin: 0 auto;
  padding: 34px;
  border: 1px solid rgba(31, 111, 83, 0.18);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(24, 32, 25, 0.08);
}

.panel-kicker {
  margin-bottom: 10px;
  color: var(--gold);
  font-weight: 900;
}

.check-list {
  display: grid;
  gap: 14px;
  align-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green-dark);
  content: "✓";
  font-size: 12px;
  font-weight: 900;
  line-height: 18px;
  text-align: center;
}

.flow-line {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  max-width: 1120px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.flow-line article {
  min-height: 250px;
  padding: 30px;
  border-right: 1px solid var(--line);
}

.flow-line article:last-child {
  border-right: 0;
}

.flow-line span {
  display: block;
  margin-bottom: 58px;
  color: var(--coral);
  font-weight: 900;
}

.identity-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(340px, 1fr);
  gap: 48px;
  align-items: start;
  background: #f3f7f1;
}

.identity-copy {
  position: sticky;
  top: 104px;
}

.identity-copy p {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
}

.identity-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.identity-rules span {
  padding: 8px 12px;
  border: 1px solid rgba(31, 111, 83, 0.22);
  border-radius: 999px;
  background: #fff;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 900;
}

.identity-entry-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  border: 0;
  border-radius: 8px;
  padding: 0 22px;
  background: var(--green-dark);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(16, 76, 55, 0.18);
}

.identity-form-wrap[hidden] {
  display: none;
}

.identity-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 14px 40px rgba(24, 32, 25, 0.08);
}

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

.verification-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.identity-form label,
.agreement-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.identity-form input,
.identity-form select,
.agreement-form input,
.agreement-form select,
.agreement-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fbfbf8;
  color: var(--ink);
}

.file-field input {
  padding: 10px 14px;
}

.id-rule {
  margin: -6px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(213, 111, 84, 0.24);
  border-radius: 8px;
  background: #fff7f4;
  color: #8e4a39;
  font-size: 14px;
  font-weight: 900;
}

.confirm-line {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
}

.confirm-line input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
  padding: 0;
}

.identity-form button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: var(--green-dark);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(16, 76, 55, 0.18);
}

.identity-form .recover-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--green-dark);
  box-shadow: none;
}

.identity-form .verification-row button {
  min-height: 48px;
  padding: 0 14px;
  white-space: nowrap;
}

.about-hero {
  min-height: calc(100vh - 114px);
}

.about-identity {
  background: #f3f7f1;
}

.about-rule-panel,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(24, 32, 25, 0.08);
}

.about-rule-panel {
  padding: 28px;
}

.about-version-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
}

.about-version-panel {
  grid-template-columns: 1fr;
  min-height: 0;
  margin: 0;
}

.contact-section {
  background: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
}

.contact-card {
  min-height: 210px;
  padding: 24px;
}

.contact-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.contact-card strong {
  display: block;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.contact-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.message-section {
  background: #fff;
  padding-top: 46px;
}

.message-filter {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr)) auto;
  gap: 14px;
  align-items: end;
  max-width: 1120px;
  margin: 0 auto 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.message-filter label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.message-filter select,
.message-filter input,
.message-filter button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.message-filter select,
.message-filter input {
  padding: 0 12px;
}

.country-search-input {
  margin-bottom: 8px;
}

.message-filter button {
  padding: 0 16px;
  color: var(--green-dark);
  font-weight: 900;
  cursor: pointer;
}

.keyword-search {
  display: grid;
  gap: 7px;
  max-width: 1120px;
  margin: 0 auto 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.keyword-search input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
}

.message-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
}

.message-column {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.seller-column {
  order: 1;
}

.buyer-column {
  order: 2;
}

.message-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.party-badge {
  display: inline-flex;
  min-width: 58px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.buyer-column .party-badge {
  background: var(--green-dark);
}

.seller-column .party-badge {
  background: var(--coral);
}

.message-window {
  position: relative;
  height: min(66vh, 680px);
  min-height: 520px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-snap-type: y proximity;
}

.message-window::before,
.message-window::after {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  height: 72px;
  content: "";
  pointer-events: none;
}

.message-window::before {
  top: 0;
  background: linear-gradient(180deg, var(--paper), rgba(251, 250, 245, 0));
}

.message-window::after {
  bottom: 0;
  background: linear-gradient(0deg, var(--paper), rgba(251, 250, 245, 0));
}

.message-track {
  display: grid;
  gap: 14px;
  padding: 18px;
  animation: none;
}

.message-track.reverse {
  animation: none;
}

.message-column:hover .message-track {
  animation-play-state: paused;
}

.message-card {
  min-height: 188px;
  padding: 18px;
  border: 1px solid rgba(24, 32, 25, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(24, 32, 25, 0.06);
  cursor: pointer;
  scroll-snap-align: start;
}

.message-card:hover {
  border-color: rgba(31, 111, 83, 0.28);
}

.message-meta {
  margin-bottom: 10px;
  color: #8a948c;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.account-level {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid rgba(31, 111, 83, 0.14);
  border-radius: 8px;
  background: #f7faf6;
}

.account-profile-trigger {
  width: 100%;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.avatar-badge {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: #dcefe4;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
}

.level-badge {
  display: inline-flex;
  min-width: 46px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--green-dark);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.level-details {
  min-width: 0;
}

.level-details strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.level-details small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.profile-panel[hidden] {
  display: none;
}

.profile-panel {
  display: grid;
  gap: 14px;
  margin: -4px 0 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.profile-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
}

.profile-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.profile-grid strong {
  color: var(--ink);
}

.profile-reviews h3 {
  margin-bottom: 12px;
}

.review-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.review-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #dcefe4;
  color: var(--green-dark);
  font-weight: 900;
}

.review-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.review-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.review-stars {
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.review-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.message-card span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.message-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.message-translation {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  border: 1px solid rgba(31, 111, 83, 0.16);
  border-radius: 8px;
  padding: 10px 12px;
  background: #f7faf6;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.55;
}

.message-translation strong {
  color: var(--green-dark);
}

.message-open-hint {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin-top: 12px;
  border: 1px solid rgba(31, 111, 83, 0.18);
  border-radius: 7px;
  padding: 0 10px;
  background: #fff;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

.message-card.is-hidden {
  display: none;
}

.empty-message {
  display: none;
  min-height: 146px;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border: 1px dashed #c8d3ca;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

.message-track.has-empty {
  animation: none;
}

.message-track.has-empty .empty-message {
  display: flex;
}

.message-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 18px auto 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.message-page-options {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.message-page-options button {
  min-height: 34px;
  border: 1px solid rgba(31, 111, 83, 0.2);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--paper);
  color: var(--green-dark);
  font-weight: 900;
  cursor: pointer;
}

.message-page-options button.is-active {
  border-color: var(--green-dark);
  background: var(--green-dark);
  color: #fff;
}

.message-pagination strong {
  color: var(--ink);
}

.message-detail-modal[hidden] {
  display: none;
}

.message-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 32, 24, 0.54);
}

.message-detail-panel {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
  max-height: min(84vh, 820px);
  overflow: auto;
  padding: 28px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.message-detail-panel.is-expanded {
  width: min(1180px, 100%);
  max-height: calc(100vh - 32px);
}

.message-detail-panel.is-expanded .conversation-thread {
  max-height: 420px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 12px;
}

.modal-action-button,
.modal-close {
  display: inline-grid;
  min-height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.modal-action-button {
  padding: 0 14px;
  font-size: 13px;
}

.modal-close {
  width: 36px;
  height: 36px;
  font-size: 24px;
  line-height: 1;
}

.detail-account {
  margin-bottom: 16px;
}

.detail-message {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.detail-message h3 {
  margin-bottom: 8px;
}

.detail-message p {
  margin-bottom: 0;
  color: var(--muted);
}

.detail-trade-button {
  width: 100%;
  margin-bottom: 18px;
}

.conversation-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

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

.conversation-locations article,
.platform-status,
.conversation-thread,
.conversation-composer,
.media-upload-bar {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.conversation-locations article {
  padding: 14px;
}

.conversation-locations span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.conversation-locations strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.conversation-locations small {
  color: var(--green-dark);
  font-weight: 900;
}

.platform-status {
  display: grid;
  gap: 4px;
  padding: 14px;
  background: #eaf5ee;
  color: var(--muted);
}

.platform-status[hidden] {
  display: none;
}

.platform-status strong {
  color: var(--green-dark);
}

.conversation-thread {
  display: grid;
  gap: 10px;
  min-height: 360px;
  max-height: 460px;
  overflow: auto;
  padding: 14px;
}

.chat-bubble {
  max-width: 86%;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
}

.chat-time-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 8px;
  color: #7f8d84;
  font-size: 11px;
  font-weight: 900;
}

.chat-bubble strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 13px;
}

.chat-bubble.mine {
  justify-self: end;
  background: #eaf5ee;
}

.chat-bubble.platform {
  justify-self: center;
  max-width: 100%;
  border: 1px solid rgba(11, 87, 58, 0.18);
  background: #f3faf6;
  color: var(--green-dark);
  text-align: center;
}

.chat-bubble.platform p {
  margin: 0 0 10px;
  color: var(--muted);
}

.platform-window-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.platform-window-list li {
  border: 1px solid rgba(11, 87, 58, 0.14);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

.conversation-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px;
}

.composer-sticker-pack {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
  padding-bottom: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.conversation-composer textarea {
  width: 100%;
  min-height: 96px;
  max-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  resize: vertical;
}

.conversation-composer button {
  min-width: 92px;
  min-height: 96px;
  border: 0;
  border-radius: 8px;
  background: var(--green-dark);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.platform-tool-modal[hidden] {
  display: none;
}

.platform-tool-modal {
  position: fixed;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(18, 32, 24, 0.34);
}

.platform-tool-panel {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(620px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}

.platform-tool-panel h3 {
  padding-right: 48px;
}

.platform-tool-panel p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.7;
}

.sticker-preview {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  margin-top: 6px;
  border-radius: 999px;
  padding: 0 12px;
  background: #fff;
  color: var(--green-dark);
  font-weight: 900;
}

.sticker-bubble {
  display: grid;
  gap: 8px;
}

.sticker-bubble img {
  width: 112px;
  height: 112px;
  border-radius: 18px;
  background: #fff;
}

.platform-payment-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.platform-payment-links button {
  min-height: 58px;
  border: 1px solid rgba(11, 87, 58, 0.2);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  color: var(--green-dark);
  font-weight: 900;
  cursor: pointer;
}

.platform-payment-links button:hover {
  border-color: var(--green-dark);
  background: #eaf5ee;
}

.emoji-sticker-panel {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.emoji-sticker-panel button {
  display: grid;
  gap: 8px;
  justify-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 8px;
  background: #fff;
  color: var(--green-dark);
  font-size: 28px;
  font-weight: 900;
  cursor: pointer;
}

.emoji-sticker-panel button span {
  color: var(--muted);
  font-size: 12px;
}

.emoji-add-button {
  color: var(--gold) !important;
}

.emoji-sticker-large {
  color: var(--green-dark);
  font-size: 48px;
  line-height: 1;
}

.chat-record-evidence {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--paper);
}

.chat-record-evidence div {
  display: grid;
  gap: 4px;
}

.chat-record-evidence span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.chat-record-evidence strong {
  color: var(--ink);
}

.chat-record-evidence button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--green-dark);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.chat-record-preview {
  display: grid;
  gap: 8px;
  max-height: 180px;
  overflow: auto;
  border: 1px dashed rgba(11, 87, 58, 0.3);
  border-radius: 8px;
  padding: 12px;
  background: #f8fbf7;
}

.chat-record-preview[hidden] {
  display: none;
}

.chat-record-line {
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.chat-record-line strong {
  color: var(--green-dark);
}

.chat-record-line span {
  color: #7f8d84;
  font-size: 12px;
  font-weight: 900;
}

.media-upload-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.media-upload-bar label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.media-upload-bar input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #fff;
}

.detail-agreement-wrap[hidden] {
  display: none;
}

.detail-agreement-copy {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.detail-agreement-copy h3 {
  margin-bottom: 8px;
}

.detail-agreement-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.detail-agreement-form {
  border: 1px solid var(--line);
  box-shadow: none;
}

@keyframes messageScroll {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-50%);
  }
}

.start-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(320px, 1fr);
  gap: 48px;
  align-items: start;
  background: var(--green-dark);
  color: #fff;
}

.start-copy {
  position: sticky;
  top: 104px;
}

.start-copy .eyebrow,
.start-copy p {
  color: rgba(255, 255, 255, 0.74);
}

.agreement-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.agreement-form textarea {
  min-height: 98px;
  resize: vertical;
}

.agreement-form button {
  width: 100%;
  min-height: 52px;
  cursor: pointer;
}

.form-note {
  min-height: 26px;
  margin: 0;
  font-size: 14px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 26px 6vw;
  background: #122018;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer span:first-child {
  color: #fff;
  font-weight: 900;
}

@media (max-width: 920px) {
  .site-header {
    min-height: 64px;
  }

  .site-nav {
    display: none;
  }

  .hero,
  .version-panel,
  .identity-section,
  .about-version-grid,
  .message-filter,
  .message-board,
  .start-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

  .principle-grid,
  .flow-line,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .flow-line article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .flow-line article:last-child {
    border-bottom: 0;
  }

  .section-heading {
    display: block;
  }

  .message-window {
    height: 620px;
    min-height: 420px;
  }

  .message-filter {
    align-items: stretch;
  }

  .message-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .message-page-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .conversation-locations,
  .conversation-composer,
  .platform-payment-links,
  .media-upload-bar {
    grid-template-columns: 1fr;
  }

  .chat-record-evidence {
    align-items: stretch;
    flex-direction: column;
  }

  .identity-copy {
    position: static;
  }

  .start-copy {
    position: static;
  }
}

@media (max-width: 560px) {
  .translate-inner {
    justify-content: space-between;
    padding: 0 18px;
  }

  #google_translate_element {
    min-width: 138px;
  }

  #google_translate_element select {
    max-width: 180px;
  }

  .site-header {
    padding: 0 18px;
  }

  .header-action {
    display: none;
  }

  .hero,
  .section,
  .start-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  h1 {
    font-size: 40px;
  }

  .hero-visual img {
    min-height: 280px;
  }

  .version-panel,
  .message-head,
  .identity-form,
  .agreement-form {
    padding: 22px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .verification-row {
    grid-template-columns: 1fr;
  }

  .message-head {
    display: grid;
    min-height: auto;
  }
}
