:root {
  --ink: #15251f;
  --muted: #64716b;
  --green: #0d7a52;
  --green-dark: #075b3d;
  --green-soft: #e7f3ed;
  --orange: #e6613f;
  --yellow: #f2b84b;
  --blue: #2d69a5;
  --bg: #f3f5f2;
  --panel: #ffffff;
  --line: #dce3df;
  --line-dark: #c7d2cc;
  --danger: #c84236;
  --shadow: 0 18px 46px rgba(21, 37, 31, .12);
  --topbar-height: 72px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 15px;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
  letter-spacing: 0;
}

button,
a,
label[for] {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(45, 105, 165, .24);
  outline-offset: 2px;
}

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

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

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

h1 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.12;
}

h2 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.25;
}

h3 {
  margin-bottom: 6px;
  font-size: 17px;
}

.is-hidden {
  display: none !important;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  display: grid;
  width: 82px;
  height: 42px;
  flex: 0 0 82px;
  place-items: center;
  border: 1px solid #062f21;
  border-radius: 8px;
  color: #fff;
  background: var(--green-dark);
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .02em;
}

.brand > span:last-child {
  display: grid;
  min-width: 0;
}

.brand strong,
.brand small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.section-kicker {
  margin-bottom: 8px;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.primary-button,
.secondary-button,
.icon-text-button,
.text-button,
.back-link,
.sort-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  font-weight: 800;
}

.primary-button,
.secondary-button {
  padding: 0 17px;
}

.primary-button {
  border: 1px solid var(--green);
  color: #fff;
  background: var(--green);
}

.primary-button:hover {
  border-color: var(--green-dark);
  background: var(--green-dark);
}

.primary-button:disabled {
  cursor: wait;
  opacity: .65;
}

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

.secondary-button:hover {
  border-color: var(--green);
  color: var(--green-dark);
  background: var(--green-soft);
}

.wide {
  width: 100%;
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.icon-button:hover {
  border-color: var(--line-dark);
  background: #f7f9f7;
}

.icon-button svg,
.primary-button svg,
.secondary-button svg,
.icon-text-button svg,
.sort-button svg,
.back-link svg {
  width: 17px;
  height: 17px;
}

.text-button,
.back-link,
.sort-button,
.icon-text-button {
  padding: 0;
  border: 0;
  color: var(--green-dark);
  background: transparent;
}

.status-chip,
.approval-badge,
.verified-badge,
.pending-chip {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status-chip,
.verified-badge {
  color: var(--green-dark);
  background: var(--green-soft);
}

.status-chip svg,
.verified-badge svg,
.approval-badge svg {
  width: 15px;
  height: 15px;
}

/* Public site */
.landing-screen {
  color: #16362d;
  background: #f5f5ef;
}

.landing-wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.landing-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1280px, calc(100% - 64px));
  min-height: 86px;
  margin: 0 auto;
  color: #fff;
}

.landing-header .brand small {
  color: rgba(255, 255, 255, .66);
}

.landing-header .brand-mark {
  border-color: rgba(255, 255, 255, .48);
  background: rgba(5, 34, 25, .78);
}

.landing-nav,
.landing-actions,
.landing-hero-actions,
.landing-proof,
.footer-content {
  display: flex;
  align-items: center;
}

.landing-nav {
  gap: 28px;
  font-size: 13px;
  font-weight: 800;
}

.landing-nav a,
.landing-login,
.landing-enter,
.landing-primary,
.landing-secondary,
.landing-dark-button,
.card-link,
.footer-login,
.auth-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
}

.landing-nav a {
  color: rgba(255, 255, 255, .84);
}

.landing-nav a:hover {
  color: #fff;
}

.landing-actions {
  justify-content: end;
  gap: 14px;
}

.landing-login,
.landing-enter,
.landing-primary,
.landing-secondary,
.landing-dark-button,
.card-link,
.footer-login {
  min-height: 42px;
  border-radius: 5px;
}

.landing-login {
  padding: 0 4px;
  border: 0;
  color: #fff;
  background: transparent;
}

.landing-enter {
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .5);
  color: #12362a;
  background: #fff;
}

.landing-enter:hover {
  background: #e9f2d9;
}

.landing-enter svg,
.landing-primary svg,
.landing-secondary svg,
.landing-dark-button svg,
.card-link svg,
.footer-login svg {
  width: 16px;
  height: 16px;
}

.landing-hero {
  position: relative;
  display: grid;
  min-height: 760px;
  overflow: hidden;
  color: #fff;
  background: #142e25;
}

.landing-hero-image,
.landing-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.landing-hero-image {
  object-fit: cover;
  object-position: center;
}

.landing-hero-shade {
  background: linear-gradient(90deg, rgba(5, 24, 18, .88) 0%, rgba(5, 24, 18, .6) 46%, rgba(5, 24, 18, .14) 100%), linear-gradient(0deg, rgba(4, 19, 14, .5), transparent 42%);
}

.landing-hero-content {
  position: relative;
  z-index: 1;
  align-self: end;
  padding-bottom: 105px;
}

.hero-eyebrow {
  margin-bottom: 18px;
  color: #d5e8a9;
  font-size: 12px;
  font-weight: 900;
}

.landing-hero h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(42px, 5.5vw, 76px);
  line-height: 1.12;
}

.landing-lead {
  max-width: 650px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, .84);
  font-size: 17px;
  line-height: 1.8;
}

.landing-hero-actions {
  gap: 12px;
}

.landing-primary,
.landing-secondary,
.landing-dark-button {
  padding: 0 17px;
}

.landing-primary {
  border: 1px solid #d8ed8f;
  color: #16362d;
  background: #d8ed8f;
}

.landing-primary:hover {
  background: #e6f7a9;
}

.landing-secondary {
  border: 1px solid rgba(255, 255, 255, .48);
  color: #fff;
  background: rgba(9, 35, 26, .24);
}

.landing-secondary:hover {
  background: rgba(255, 255, 255, .12);
}

.landing-proof {
  gap: 18px;
  margin-top: 38px;
  color: rgba(255, 255, 255, .84);
  font-size: 13px;
  font-weight: 700;
}

.landing-proof span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.landing-proof svg {
  width: 15px;
  height: 15px;
  color: #d8ed8f;
}

.hero-scroll-cue {
  position: absolute;
  right: 4%;
  bottom: 35px;
  z-index: 1;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 50%;
  color: #fff;
}

.hero-scroll-cue svg {
  width: 18px;
  height: 18px;
}

.landing-statement,
.landing-process,
.landing-audiences,
.field-network {
  padding: 108px 0;
}

.landing-statement {
  background: #f5f5ef;
}

.statement-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(300px, .74fr);
  gap: clamp(40px, 10vw, 180px);
  align-items: end;
}

.statement-grid h2,
.process-heading h2,
.audience-heading h2,
.field-copy h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 3.2vw, 50px);
  line-height: 1.25;
}

.statement-grid > p,
.field-copy > p {
  margin-bottom: 3px;
  color: #53655c;
  font-size: 16px;
  line-height: 1.85;
}

.landing-process {
  color: #edf1e7;
  background: #16362d;
}

.landing-process .section-kicker {
  color: #d8ed8f;
}

.process-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 42px;
}

.process-heading h2 {
  max-width: 650px;
}

.process-list {
  display: grid;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(231, 242, 222, .26);
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 150px;
  border-bottom: 1px solid rgba(231, 242, 222, .26);
}

.process-number {
  color: #d8ed8f;
  font-size: 14px;
  font-weight: 900;
}

.process-list h3 {
  margin-bottom: 7px;
  color: #fff;
  font-size: 23px;
}

.process-list p {
  max-width: 680px;
  margin: 0;
  color: rgba(237, 241, 231, .72);
  line-height: 1.75;
}

.process-list > li > svg {
  width: 34px;
  height: 34px;
  color: #bcd68c;
}

.landing-audiences {
  background: #e7e9dd;
}

.audience-heading {
  margin-bottom: 42px;
}

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

.audience-card {
  min-height: 385px;
  padding: clamp(28px, 4vw, 50px);
  border: 1px solid #c8d1bf;
  border-radius: 6px;
}

.buyer-card {
  color: #f7f8f1;
  background: #1e4034;
}

.supplier-card {
  color: #183b30;
  background: #dce8ad;
}

.audience-label {
  margin-bottom: 58px;
  color: #bed888;
  font-size: 11px;
  font-weight: 900;
}

.supplier-card .audience-label {
  color: #4e6a3e;
}

.audience-card h3 {
  margin-bottom: 13px;
  font-size: 32px;
}

.audience-card > p:not(.audience-label) {
  max-width: 420px;
  min-height: 54px;
  margin-bottom: 22px;
  color: rgba(247, 248, 241, .74);
  line-height: 1.7;
}

.supplier-card > p:not(.audience-label) {
  color: rgba(24, 59, 48, .72);
}

.audience-card ul {
  display: grid;
  gap: 8px;
  margin: 0 0 27px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  font-weight: 700;
}

.audience-card li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.audience-card li svg {
  width: 15px;
  height: 15px;
  color: #cfe896;
}

.supplier-card li svg {
  color: #42643b;
}

.card-link {
  min-height: 0;
  padding: 0;
  border: 0;
  color: #e0f39f;
  background: transparent;
}

.supplier-card .card-link {
  color: #183b30;
}

.field-network {
  color: #17382d;
  background: #f7f8f2;
}

.field-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, .73fr);
  gap: clamp(48px, 13vw, 190px);
  align-items: end;
}

.field-copy h2 {
  max-width: 660px;
  margin-bottom: 22px;
}

.field-copy > p {
  max-width: 650px;
  margin-bottom: 30px;
}

.landing-dark-button {
  border: 1px solid #17382d;
  color: #f4f5ee;
  background: #17382d;
}

.landing-dark-button:hover {
  background: #285545;
}

.field-points {
  margin: 0;
  border-top: 1px solid #bfcdbf;
}

.field-points div {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid #bfcdbf;
}

.field-points dt {
  font-size: 20px;
  font-weight: 900;
}

.field-points dd {
  margin: 0;
  color: #5a6c63;
  line-height: 1.55;
}

.landing-footer {
  padding: 30px 0;
  color: #d9e2d7;
  background: #102b22;
}

.landing-footer .brand small {
  color: rgba(217, 226, 215, .58);
}

.landing-footer .brand-mark {
  border-color: rgba(217, 226, 215, .36);
  background: #1e4d3e;
}

.footer-content {
  justify-content: space-between;
  gap: 24px;
}

.footer-content > p {
  margin: 0 auto 0 32px;
  color: rgba(217, 226, 215, .68);
  font-size: 13px;
}

.footer-login {
  padding: 0;
  border: 0;
  color: #d8ed8f;
  background: transparent;
}

.icp-link {
  color: rgba(217, 226, 215, .68);
  font-size: 13px;
}

.icp-link:hover {
  color: #d8ed8f;
}

.auth-home-link {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green-dark);
  background: #fff;
}

.auth-home-link svg {
  width: 17px;
  height: 17px;
}

/* Authentication */
.auth-screen {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(420px, 1.12fr) minmax(440px, .88fr);
  background: #fff;
}

.auth-visual {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 18%, rgba(220, 190, 105, .18), transparent 30%),
    linear-gradient(135deg, #06271f 0%, #0d3b2f 55%, #174d3e 100%);
}

.auth-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(10, 22, 17, .08) 35%, rgba(10, 22, 17, .82));
}

.auth-visual img {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  object-fit: cover;
}

.auth-visual-copy {
  position: absolute;
  right: 7%;
  bottom: 7%;
  left: 7%;
  z-index: 2;
  max-width: 670px;
  color: #fff;
}

.auth-visual-copy h1 {
  max-width: 620px;
  margin: 14px 0;
  font-size: clamp(40px, 5.6vw, 74px);
}

.auth-visual-copy p {
  max-width: 560px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, .82);
  font-size: 18px;
  line-height: 1.7;
}

.photo-label {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 6px;
  background: rgba(13, 122, 82, .72);
  font-size: 12px;
  font-weight: 800;
}

.auth-panel {
  display: grid;
  min-height: 100vh;
  align-content: space-between;
  padding: 28px clamp(24px, 5vw, 76px);
}

.auth-topbar,
.auth-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.auth-form-wrap {
  width: min(430px, 100%);
  margin: 46px auto;
}

.auth-heading h2 {
  margin-bottom: 10px;
  font-size: 32px;
}

.auth-heading > p:last-child {
  color: var(--muted);
}

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

.temporary-admin-entry {
  gap: 7px;
  margin-top: 4px;
  justify-self: center;
}

.temporary-admin-entry svg {
  width: 16px;
  height: 16px;
}

.admin-login-notice {
  border-left-color: var(--green);
  background: #eef7f1;
}

.auth-form > label:not(.check-row),
.review-form label,
.form-grid label,
.settings-form label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
}

.input-with-icon,
.search-control,
.select-control {
  position: relative;
}

.input-with-icon svg,
.search-control svg,
.select-control svg {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 18px;
  height: 18px;
  color: #7a8781;
  transform: translateY(-50%);
  pointer-events: none;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: #fff;
}

input,
select {
  min-height: 46px;
  padding: 0 13px;
}

textarea {
  min-height: 92px;
  padding: 12px 13px;
  resize: vertical;
}

.input-with-icon input,
.search-control input,
.select-control select {
  padding-left: 42px;
}

.check-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 9px;
  align-items: start;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.check-row input {
  width: 18px;
  min-height: 18px;
  margin: 1px 0 0;
  accent-color: var(--green);
}

.sent-to {
  display: grid;
  gap: 4px;
  padding: 13px;
  border-left: 3px solid var(--blue);
  background: #edf4fb;
  font-size: 13px;
}

.code-input {
  height: 58px;
  text-align: center;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 8px;
}

.auth-footer {
  color: var(--muted);
  font-size: 11px;
}

.auth-footer > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.auth-footer svg {
  width: 15px;
}

/* App shell */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  min-height: var(--topbar-height);
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  gap: 20px;
  align-items: center;
  padding: 0 clamp(16px, 3vw, 44px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
}

.role-switcher {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef2ef;
}

.role-switcher button {
  display: inline-flex;
  min-width: 104px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.role-switcher button.active {
  color: var(--green-dark);
  background: #fff;
  box-shadow: 0 2px 8px rgba(21, 37, 31, .08);
}

.role-switcher svg {
  width: 16px;
}

.topbar-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.notification-button {
  position: relative;
}

.notification-button span {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--orange);
}

.account-button {
  display: grid;
  min-width: 172px;
  height: 42px;
  grid-template-columns: 30px minmax(0, 1fr) 14px;
  gap: 8px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.avatar,
.profile-avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--orange);
  font-weight: 900;
}

.avatar {
  width: 30px;
  height: 30px;
  font-size: 12px;
}

.account-copy {
  display: grid;
  min-width: 0;
}

.account-copy strong,
.account-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-copy strong {
  font-size: 12px;
}

.account-copy small {
  color: var(--muted);
  font-size: 9px;
}

.account-button > svg {
  width: 14px;
}

.page-band {
  width: min(1240px, calc(100% - 36px));
  margin-right: auto;
  margin-left: auto;
}

.market-intro,
.affiliate-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding-top: 46px;
  padding-bottom: 28px;
}

.market-intro > div:first-child,
.affiliate-header > div {
  max-width: 780px;
}

.market-intro p:last-child,
.affiliate-header p:last-child,
.page-heading p,
.section-header p,
.admin-heading p,
.settings-form header p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.directory-metric {
  display: grid;
  flex: 0 0 auto;
  padding-left: 24px;
  border-left: 1px solid var(--line-dark);
}

.directory-metric strong {
  color: var(--orange);
  font-size: 32px;
}

.directory-metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.buyer-request-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
  padding: 24px 28px;
  border: 1px solid #bedacb;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(118deg, #075d43, #0c7c58);
  box-shadow: 0 16px 38px rgba(7, 93, 67, .2);
}

.buyer-request-cta-copy {
  display: flex;
  align-items: center;
  gap: 18px;
}

.buyer-request-cta-icon {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  color: var(--green-dark);
  background: #e7f6ee;
}

.buyer-request-cta-icon svg { width: 25px; }
.buyer-request-cta-copy p,
.buyer-request-cta-copy h2,
.buyer-request-cta-copy span { margin: 0; }
.buyer-request-cta-copy p { color: #d4f1e4; font-size: 12px; font-weight: 900; }
.buyer-request-cta-copy h2 { margin: 4px 0 5px; color: #fff; font-size: 25px; }
.buyer-request-cta-copy div > span { color: rgba(255, 255, 255, .78); line-height: 1.6; }

.buyer-request-cta-button {
  display: inline-flex;
  min-height: 52px;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  border-radius: 9px;
  color: var(--green-dark);
  background: #fff;
  font-weight: 900;
}

.buyer-request-cta-button svg { width: 18px; }

.mobile-industry-demand-card {
  display: none;
}

.directory-toolbar,
.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 10px;
}

.city-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-top: 18px;
  padding-bottom: 18px;
  scrollbar-width: none;
}

.city-tabs::-webkit-scrollbar {
  display: none;
}

.city-tabs button,
.order-tabs button {
  min-height: 36px;
  flex: 0 0 auto;
  padding: 0 14px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.city-tabs button.active,
.order-tabs button.active {
  border-color: var(--green-dark);
  color: #fff;
  background: var(--green-dark);
}

.market-results {
  padding-top: 10px;
  padding-bottom: 80px;
}

.section-header,
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.section-header.compact {
  margin-bottom: 16px;
}

.section-header.compact h2,
.section-header.compact p {
  margin-bottom: 0;
}

.sort-button {
  min-height: 38px;
  flex: 0 0 auto;
  padding: 0 10px;
  color: var(--muted);
}

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

.market-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(21, 37, 31, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.market-card:hover {
  box-shadow: 0 14px 32px rgba(21, 37, 31, .11);
  transform: translateY(-2px);
}

.market-card-image {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  background: #d7e1dc;
}

.market-card-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.market-card-image.placeholder {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
}

.market-card-image.placeholder.alt {
  background: var(--orange);
}

.market-card-image.placeholder span {
  font-size: 48px;
  font-weight: 900;
}

.market-card-image > .market-city {
  position: absolute;
  top: 12px;
  left: 12px;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 6px;
  color: #fff;
  background: rgba(21, 37, 31, .82);
  font-size: 11px;
  font-weight: 800;
}

.market-card-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.market-card-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.market-card-title h3,
.market-card-title p {
  margin-bottom: 0;
}

.market-card-title p,
.market-meta,
.market-card-body > p {
  color: var(--muted);
  font-size: 12px;
}

.access-pill {
  display: inline-flex;
  min-height: 25px;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  padding: 0 7px;
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: 10px;
  font-weight: 900;
}

.market-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
}

.market-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.market-meta svg {
  width: 14px;
}

.market-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.market-card-actions,
.public-market-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.market-share-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: auto;
  min-width: 102px;
  height: 38px;
  min-height: 38px;
  flex: 0 0 auto;
  margin-left: -4px;
  padding: 0 7px 0 4px;
  border: 0;
  border-radius: 6px;
  color: var(--green-dark);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.market-share-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  stroke-width: 2.4;
}

.market-share-button:hover,
.market-share-button:focus-visible {
  background: #edf6f0;
}

@media (max-width: 480px) {
  .market-card-footer {
    display: grid;
    justify-content: stretch;
    gap: 8px;
  }

  .market-card-actions {
    justify-content: flex-start;
  }
}

.price-block {
  display: grid;
}

.price-block strong {
  color: var(--orange);
  font-size: 22px;
}

.price-block small {
  color: var(--muted);
  font-size: 10px;
}

.card-action {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--green);
  border-radius: 8px;
  color: var(--green-dark);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.card-action:hover,
.card-action.owned {
  color: #fff;
  background: var(--green);
}

.empty-state {
  display: grid;
  min-height: 260px;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px dashed var(--line-dark);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  text-align: center;
}

.empty-state svg {
  width: 38px;
  height: 38px;
  color: var(--green);
}

.client-pane:not(.active) {
  display: none;
}

.client-pane.page-band {
  min-height: calc(100vh - var(--topbar-height));
  padding-top: 44px;
  padding-bottom: 90px;
}

.page-heading {
  margin-bottom: 24px;
}

.purchase-list {
  display: grid;
  gap: 12px;
}

.purchase-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.purchase-row img,
.purchase-thumb {
  width: 74px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
}

.purchase-thumb {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
  font-size: 22px;
  font-weight: 900;
}

.purchase-row h3,
.purchase-row p {
  margin-bottom: 0;
}

.purchase-row p,
.purchase-row span {
  color: var(--muted);
  font-size: 12px;
}

.purchase-row time {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

.purchase-row .market-card-actions {
  flex-wrap: wrap;
}

.inspection-benefit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.inspection-benefit svg {
  width: 14px;
  height: 14px;
}

.profile-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
}

.profile-summary,
.settings-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.profile-summary {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 14px;
  padding: 30px;
  text-align: center;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  font-size: 24px;
}

.profile-summary h2,
.profile-summary p {
  margin-bottom: 0;
}

.profile-summary p {
  color: var(--muted);
}

.settings-list {
  overflow: hidden;
}

.settings-list button {
  display: flex;
  width: 100%;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.settings-list button:last-child {
  border-bottom: 0;
}

.settings-list button:hover {
  background: #f7f9f7;
}

.settings-list button > span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.settings-list svg {
  width: 18px;
  color: var(--green);
}

.mobile-bottom-nav {
  display: none;
}

/* Affiliate */
.affiliate-header {
  align-items: center;
}

.approval-badge {
  color: #fff;
  background: var(--green);
}

.referral-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  border: 1px solid #b8d1c4;
  border-radius: 8px;
  background: #fff;
}

.referral-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.referral-copy span,
.referral-copy small {
  color: var(--muted);
  font-size: 12px;
}

.affiliate-share-picker {
  display: flex;
  align-items: center;
  width: min(100%, 430px);
  gap: 8px;
}

.affiliate-share-picker > span {
  flex: none;
  font-weight: 800;
}

.affiliate-share-picker select {
  min-width: 0;
  flex: 1;
}

.referral-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.referral-actions .primary-button,
.referral-actions .secondary-button {
  min-height: 42px;
  white-space: nowrap;
}

.referral-band strong {
  overflow: hidden;
  color: var(--green-dark);
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.metric-grid article {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.metric-grid span,
.metric-grid small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.metric-grid strong {
  font-size: 28px;
}

.metric-grid .positive {
  color: var(--green);
}

.affiliate-metrics {
  padding-top: 18px;
}

.affiliate-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 80px;
}

.data-section,
.settlement-panel,
.task-section,
.upload-workbench,
.review-form,
.settings-form section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.data-section {
  min-width: 0;
  padding: 18px;
}

.settlement-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px;
}

.settlement-panel > span,
.settlement-panel small {
  color: var(--muted);
  font-size: 12px;
}

.settlement-panel > strong {
  color: var(--orange);
  font-size: 34px;
}

.settlement-panel > div {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Tables */
.responsive-table {
  min-width: 0;
  overflow-x: auto;
}

.table-row {
  display: grid;
  min-width: 720px;
  grid-template-columns: 1.4fr 1fr .8fr .8fr .8fr;
  gap: 14px;
  align-items: center;
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.table-row.header {
  color: var(--muted);
  background: #f6f8f6;
  font-size: 10px;
  font-weight: 900;
}

.table-row:last-child {
  border-bottom: 0;
}

.affiliate-commission-row,
.affiliate-admin-row,
.affiliate-settlement-row {
  grid-template-columns: 1.1fr 1fr 1fr 1.1fr .95fr;
  min-width: 780px;
}

.admin-order-row {
  grid-template-columns: 1.05fr 1.1fr 1fr .8fr .68fr 1fr;
  min-width: 900px;
}

.payer-cell,
.admin-user-account {
  display: grid;
  gap: 3px;
}

.payer-cell small,
.admin-user-account small,
.admin-user-row span small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.affiliate-admin-row strong {
  display: grid;
  gap: 3px;
}

.affiliate-admin-row strong small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.affiliate-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.affiliate-detail-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}

.affiliate-detail-heading .text-button {
  min-height: 32px;
}

.compact-form-modal {
  width: min(440px, 100%);
  padding: 28px;
}

.compact-form-modal header {
  margin-bottom: 18px;
}

.compact-form-modal header h2,
.compact-form-modal header p {
  margin-bottom: 6px;
}

.compact-form-modal label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

#profileNickname {
  max-width: 50%;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-row strong,
.table-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-status {
  display: inline-flex;
  width: max-content;
  min-height: 25px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: 10px;
  font-weight: 900;
}

.table-status.pending {
  color: #7b5213;
  background: #fff1cf;
}

.table-status.failed {
  color: #8b2e28;
  background: #f9e4e1;
}

.table-action {
  width: max-content;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line-dark);
  border-radius: 7px;
  color: var(--green-dark);
  background: #fff;
  font-size: 11px;
  font-weight: 800;
}

/* Admin */
.admin-layout {
  display: grid;
  min-height: calc(100vh - var(--topbar-height));
  grid-template-columns: 230px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: var(--topbar-height);
  height: calc(100vh - var(--topbar-height));
  padding: 22px 14px;
  border-right: 1px solid var(--line);
  background: #fff;
}

.admin-label {
  display: grid;
  gap: 4px;
  padding: 0 10px 20px;
  font-weight: 900;
}

.admin-label small {
  color: var(--muted);
  font-size: 9px;
}

.admin-sidebar nav {
  display: grid;
  gap: 5px;
}

.admin-sidebar nav button {
  display: grid;
  width: 100%;
  min-height: 44px;
  grid-template-columns: 19px 1fr auto;
  gap: 9px;
  align-items: center;
  padding: 0 11px;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  text-align: left;
  font-size: 12px;
  font-weight: 800;
}

.admin-sidebar nav button.active,
.admin-sidebar nav button:hover {
  color: var(--green-dark);
  background: var(--green-soft);
}

.admin-sidebar svg {
  width: 17px;
}

.nav-count {
  display: grid;
  min-width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 999px;
  color: var(--green-dark);
  background: #fff;
  font-size: 9px;
}

.nav-count.alert {
  color: #fff;
  background: var(--orange);
}

.admin-content {
  min-width: 0;
  padding: 34px clamp(18px, 3vw, 42px) 70px;
}

.admin-pane:not(.active) {
  display: none;
}

.admin-heading h1 {
  font-size: 31px;
}

.admin-metrics {
  margin-top: 22px;
}

.overview-range-control {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.overview-range-control button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 5px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

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

.overview-range-control button:disabled {
  cursor: wait;
  opacity: .65;
}

.operations-statistics {
  display: grid;
  gap: 14px;
}

.operations-kpis {
  margin-top: 0;
}

.operations-kpis article {
  min-height: 126px;
}

.operations-kpis article strong {
  color: var(--green-deep);
}

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

.operations-chart {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.operations-chart > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.operations-chart h2 {
  margin: 0;
  color: var(--forest-900);
  font-size: 19px;
}

.operations-chart > header small {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.operations-chart-content {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.operations-donut {
  display: grid;
  width: 142px;
  height: 142px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#e5ece7 0 100%);
}

.operations-donut > span {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  color: var(--forest-900);
  background: #fff;
}

.operations-donut b {
  max-width: 78px;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operations-donut small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.operations-donut-legend {
  display: grid;
  gap: 7px;
}

.operations-donut-legend > div {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.operations-donut-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.operations-donut-legend span {
  overflow: hidden;
  color: var(--ink);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operations-donut-legend b {
  color: var(--green-deep);
  font-size: 12px;
}

.operations-donut-legend small {
  grid-column: 2 / -1;
  margin-top: -5px;
  color: var(--muted);
  font-size: 10px;
}

.operations-donut-legend > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.visit-metrics-section {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.visit-metrics-section > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.visit-metrics-section h2 {
  margin: 0;
  font-size: 19px;
}

.visit-metrics-section > header small {
  max-width: 360px;
  color: var(--muted);
  line-height: 1.5;
  text-align: right;
}

.visit-metrics-grid,
.user-consumption-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.visit-metrics-grid article,
.user-consumption-metrics article {
  display: grid;
  gap: 4px;
  min-height: 104px;
  align-content: center;
  padding: 14px;
  border: 1px solid #dce7df;
  border-radius: 8px;
  background: #f4f8f5;
}

.visit-metrics-grid span,
.user-consumption-metrics span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.visit-metrics-grid strong,
.user-consumption-metrics strong {
  color: var(--green-deep);
  font-size: 26px;
  line-height: 1.05;
}

.visit-metrics-grid small,
.user-consumption-metrics small {
  color: var(--muted);
}

.user-management-summary {
  margin: 18px 0 10px;
  padding: 12px 14px;
  border: 1px solid #dce7df;
  border-radius: 8px;
  color: var(--green-deep);
  background: #f4f8f5;
  font-weight: 800;
}

#adminUsersTable .table-row {
  grid-template-columns: minmax(180px, 1.2fr) minmax(148px, .8fr) minmax(156px, .95fr) auto;
  min-width: 670px;
  gap: 10px;
  padding: 10px;
}

.admin-user-row span {
  display: grid;
  gap: 3px;
}

.admin-user-registered-at {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 560px) {
  #adminUsersTable {
    overflow-x: visible;
  }

  #adminUsersTable .table-row {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) minmax(108px, .82fr) auto;
    gap: 7px;
    padding: 10px 8px;
  }

  #adminUsersTable .admin-user-registered-at {
    grid-column: 1;
    font-size: 10px;
  }

  #adminUsersTable .admin-user-row > span:not(.admin-user-registered-at) {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  #adminUsersTable .admin-user-row > .table-action {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  #adminUsersTable .table-action {
    padding: 0 8px;
  }
}

.admin-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(270px, .65fr);
  gap: 14px;
  margin-top: 14px;
}

.admin-overview-grid > * {
  min-width: 0;
}

.admin-overview-grid .table-row {
  min-width: 560px;
}

.task-section {
  padding: 18px;
}

.task-section header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.task-section header h2 {
  margin-bottom: 0;
}

.task-section header span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--orange);
  font-size: 11px;
  font-weight: 900;
}

.task-section > button {
  display: grid;
  width: 100%;
  min-height: 66px;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: #fff;
  text-align: left;
}

.task-section > button > svg:first-child {
  width: 28px;
  color: var(--green);
}

.task-section > button > svg:last-child {
  width: 16px;
  color: var(--muted);
}

.task-section > button span {
  display: grid;
  gap: 4px;
}

.task-section > button small {
  color: var(--muted);
}

.admin-toolbar {
  grid-template-columns: minmax(240px, 480px) auto;
  justify-content: space-between;
  margin: 22px 0 12px;
}

.market-admin-toolbar {
  grid-template-columns: minmax(250px, 1fr) 190px 170px auto;
  align-items: end;
}

.admin-filter-control {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.admin-filter-control select {
  height: 43px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.admin-market-table,
.admin-pane > .responsive-table {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-market-table .table-row {
  grid-template-columns: 28px 62px 170px 58px 76px 145px 56px 95px 180px;
  min-width: 950px;
  gap: 10px;
  align-items: center;
  justify-content: start;
}

.market-region-heading,
.market-province-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 920px;
}

.market-region-heading {
  margin: 8px -4px 0;
  padding: 12px 14px;
  border-radius: 7px;
  color: #fff;
  background: var(--green);
}

.market-region-heading span {
  font-size: 15px;
  font-weight: 900;
}

.market-region-heading small {
  color: rgba(255, 255, 255, .78);
  font-weight: 800;
}

.market-province-heading {
  padding: 10px 12px 7px;
  border-bottom: 1px solid var(--line);
  color: var(--green);
}

.market-province-heading span,
.market-province-heading small {
  font-weight: 900;
}

.market-name-order {
  display: grid !important;
  gap: 3px;
}

.market-name-order small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.market-sort-handle {
  display: grid;
  width: 30px;
  height: 34px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--muted);
  background: transparent;
  cursor: grab;
  touch-action: none;
}

.market-sort-handle:hover:not(:disabled),
.market-sort-handle:focus-visible {
  border-color: var(--line);
  color: var(--green);
  background: #f5f8f6;
}

.market-sort-handle:active {
  cursor: grabbing;
}

.market-sort-handle:disabled {
  cursor: default;
  opacity: .34;
}

.market-sort-handle svg {
  width: 17px;
}

.market-sort-row.is-market-dragging {
  opacity: .42;
  background: #edf7f2;
}

.market-sort-row.is-market-drop-target {
  box-shadow: inset 0 2px 0 var(--green);
}

.admin-market-thumb {
  display: grid;
  width: 62px;
  height: 42px;
  overflow: hidden;
  place-items: center;
  border-radius: 6px;
  color: var(--muted);
  background: #edf2ef;
}

.admin-market-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-market-thumb svg,
.market-video-state svg {
  width: 16px;
}

.market-video-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.market-video-state.ready {
  color: var(--green);
}

.market-supplier-count {
  display: grid;
  gap: 5px;
  color: var(--ink);
}

.market-rating-counts {
  display: flex;
  gap: 4px;
  white-space: nowrap;
}

.market-rating-counts i {
  padding: 2px 5px;
  border-radius: 4px;
  color: #9a6500;
  background: #fff1cb;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.market-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.table-action.danger {
  color: #a33b31;
  border-color: #e6b8b2;
}

.import-workspace {
  display: grid;
  grid-template-columns: minmax(280px, .62fr) minmax(480px, 1.38fr);
  gap: 14px;
  margin-top: 22px;
  align-items: start;
}

.upload-workbench {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.image-upload,
.uploaded-preview {
  position: relative;
  display: grid;
  min-height: 340px;
  place-items: center;
  align-content: center;
  gap: 8px;
  overflow: hidden;
  border: 1px dashed var(--line-dark);
  border-radius: 8px;
  color: var(--muted);
  background: #f7f9f7;
  text-align: center;
  cursor: pointer;
}

.image-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-symbol {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
}

.upload-symbol svg {
  width: 24px;
}

.uploaded-preview img {
  width: 100%;
  min-height: 340px;
  object-fit: cover;
}

.on-image {
  position: absolute;
  top: 10px;
  right: 10px;
}

.ocr-progress {
  display: grid;
  gap: 7px;
}

.ocr-progress > div {
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: #e4e9e6;
}

.ocr-progress > div span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--green);
  transition: width .35s ease;
}

.ocr-progress p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11px;
}

.collector-ocr-panel {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid #c9d9d0;
  border-radius: 9px;
  background: #f2f8f4;
}

.collector-ocr-panel > header {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.collector-ocr-panel > header > div {
  display: grid;
  gap: 3px;
}

.collector-ocr-panel > header small {
  color: var(--muted);
  line-height: 1.5;
}

.ocr-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  border-radius: 6px;
  color: #fff;
  background: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.ocr-badge svg {
  width: 14px;
  height: 14px;
}

.collector-ocr-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: #dde8e1;
}

.collector-ocr-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--green);
  transition: width .25s ease;
}

.collector-ocr-panel details {
  padding-top: 4px;
  border-top: 1px solid #d8e4dd;
}

.collector-ocr-panel summary {
  color: var(--forest-800);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.collector-ocr-panel textarea {
  min-height: 110px;
  margin-top: 9px;
  font-size: 12px;
}

.collector-ocr-panel .secondary-button {
  justify-self: start;
}

.collector-ocr-panel.is-complete {
  border-color: #8fc3a4;
  background: #edf8f1;
}

.collector-ocr-panel.is-error {
  border-color: #e1b8ac;
  background: #fff5f1;
}

.admin-ocr-raw {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-ocr-raw summary {
  cursor: pointer;
  font-weight: 800;
}

.admin-ocr-raw textarea {
  width: 100%;
  min-height: 120px;
  margin-top: 10px;
  padding: 10px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.duplicate-alert {
  display: grid;
  gap: 11px;
  padding: 14px;
  border: 1px solid #dfad64;
  border-radius: 8px;
  background: #fff7e8;
}

.duplicate-alert > header {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 9px;
  align-items: start;
}

.duplicate-alert > header > svg {
  width: 26px;
  color: #9b6717;
}

.duplicate-alert > header p {
  margin: 3px 0 0;
  color: #7e6a46;
}

#duplicateMatchList {
  display: grid;
  gap: 6px;
}

#duplicateMatchList article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 6px;
  background: #fff;
}

#duplicateMatchList article > div {
  display: grid;
  gap: 3px;
}

#duplicateMatchList span,
#duplicateMatchList em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.duplicate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.danger-outline-button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #b8664b;
  border-radius: 7px;
  color: #9c4026;
  background: #fff;
  font-weight: 900;
}

.danger-outline-button.selected,
.duplicate-actions .secondary-button.selected {
  outline: 3px solid rgba(16, 112, 77, .18);
  border-color: var(--green);
}

.review-form {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.review-status,
.qr-detection,
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.review-status > span:first-child,
.qr-detection > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.review-status svg,
.qr-detection svg {
  width: 18px;
  color: var(--blue);
}

.pending-chip {
  color: #7b5213;
  background: #fff1cf;
}

.pending-chip.ready {
  color: var(--green-dark);
  background: var(--green-soft);
}

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

.language-columns fieldset {
  display: grid;
  gap: 11px;
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.language-columns legend {
  padding: 0 6px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

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

.compact-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.qr-detection {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9f7;
  font-size: 12px;
}

.order-tabs {
  display: flex;
  gap: 8px;
  margin: 20px 0 12px;
}

.settings-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.settings-form section {
  display: grid;
  align-content: start;
  gap: 13px;
  padding: 18px;
}

.settings-form header {
  display: grid;
  min-height: 72px;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: start;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.settings-form header svg {
  width: 25px;
  color: var(--green);
}

.settings-form h2 {
  margin-bottom: 4px;
  font-size: 16px;
}

.settings-form header p {
  font-size: 11px;
}

.settings-form > .primary-button {
  grid-column: 1 / -1;
  justify-self: end;
}

.settings-form .category-settings-section {
  grid-column: 1 / -1;
}

.category-create-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(180px, 1fr) 100px auto;
  gap: 10px;
  align-items: end;
}

.category-admin-list {
  display: grid;
  gap: 8px;
}

.category-admin-row {
  display: grid;
  grid-template-columns: 150px minmax(140px, 1fr) minmax(170px, 1fr) 86px 70px auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcfa;
}

.category-admin-row.is-archived {
  opacity: .66;
  background: #f4f4f2;
}

.category-admin-row input {
  min-width: 0;
  height: 38px;
}

.category-code {
  overflow: hidden;
  color: var(--muted);
  font: 11px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
  text-overflow: ellipsis;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(9, 19, 15, .64);
  backdrop-filter: blur(4px);
}

.modal {
  position: relative;
  width: min(920px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
}

.modal-back {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
}

.phone-picker-modal {
  width: min(420px, 100%);
  padding: 24px;
}

.phone-picker-modal header {
  padding-right: 44px;
}

.phone-picker-modal header h2 {
  margin: 4px 0;
  font-size: 20px;
}

.phone-picker-modal header p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.phone-picker-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.phone-picker-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.phone-picker-option:hover,
.phone-picker-option:focus-visible {
  border-color: var(--forest-700);
  background: #f0f7f2;
}

.phone-picker-option span {
  display: grid;
  gap: 3px;
}

.phone-picker-option small {
  color: var(--muted);
  font-size: 12px;
}

.phone-picker-option strong {
  font-size: 17px;
}

.phone-picker-option > svg {
  width: 20px;
  color: var(--forest-700);
}

.market-modal-hero {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  background: var(--blue);
}

.market-modal-hero img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.market-modal-hero.placeholder {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 56px;
  font-weight: 900;
}

.market-modal-body {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.market-intro-video {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f7f9f7;
}

.market-intro-video header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.market-intro-video header > div {
  display: grid;
  gap: 3px;
}

.market-intro-video header small {
  color: var(--muted);
}

.market-intro-video header > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
}

.market-intro-video video {
  width: 100%;
  max-height: 520px;
  border-radius: 7px;
  background: #07130f;
}

.external-video-card {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 84px;
  padding: 14px;
  border: 1px solid #cfe0d5;
  border-radius: 7px;
  background: #f2f8f4;
}

.external-video-card > svg {
  width: 24px;
  color: var(--green);
}

.external-video-card > div {
  display: grid;
  gap: 4px;
}

.external-video-card strong {
  color: var(--ink);
}

.external-video-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.external-video-card a {
  white-space: nowrap;
  text-decoration: none;
}

.external-video-card.is-invalid {
  grid-template-columns: 30px 1fr;
  border-color: #e4c0b9;
  background: #fff5f2;
}

.external-video-card.is-invalid > svg {
  color: #c64f39;
}

.visitor-data-lock {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid #e5c17b;
  border-radius: 8px;
  background: #fff8e9;
}

.visitor-data-lock > svg {
  width: 30px;
  color: #9b6717;
}

.visitor-data-lock p {
  margin: 4px 0 0;
  color: #7e6a46;
  line-height: 1.65;
}

.market-modal-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.market-modal-title h2 {
  font-size: 27px;
}

.market-modal-title p {
  margin-bottom: 0;
  color: var(--muted);
}

.market-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.market-facts div {
  display: grid;
  gap: 4px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9f7;
}

.market-facts span {
  color: var(--muted);
  font-size: 10px;
}

.locked-access {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 13px;
  align-items: center;
  padding: 15px;
  border: 1px solid #e5c17b;
  border-radius: 8px;
  background: #fff8e9;
}

.locked-access > svg {
  width: 32px;
  color: #9b6717;
}

.locked-access strong,
.locked-access span {
  display: block;
}

.locked-access span {
  margin-top: 3px;
  color: #7e6a46;
  font-size: 11px;
}

.merchant-list {
  display: grid;
  gap: 10px;
}

.merchant-list > h3 {
  margin-bottom: 2px;
}

.merchant-list-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 2px 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.merchant-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.merchant-row img {
  width: 104px;
  height: 76px;
  border-radius: 6px;
  object-fit: cover;
}

.merchant-row h3,
.merchant-row p {
  margin-bottom: 3px;
}

.merchant-row p,
.merchant-row small {
  color: var(--muted);
  line-height: 1.5;
}

.merchant-contact {
  display: grid;
  justify-items: end;
  gap: 5px;
  font-size: 11px;
}

.merchant-contact strong {
  color: var(--green-dark);
}

.payment-modal {
  width: min(780px, 100%);
}

.payment-header {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.payment-header p,
.payment-header h2 {
  margin-bottom: 0;
}

.payment-header p {
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
}

.alipay-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: #1677ff;
  font-size: 21px;
  font-weight: 900;
}

.payment-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.qr-section,
.order-summary {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 13px;
  padding: 26px;
}

.qr-section {
  border-right: 1px solid var(--line);
  background: #f6f8f6;
}

.qr-frame {
  display: grid;
  width: min(240px, 100%);
  aspect-ratio: 1;
  place-items: center;
  padding: 10px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: #fff;
}

#paymentQr {
  width: 100%;
  height: auto;
  display: grid;
  place-items: center;
}

#paymentQr canvas,
#paymentQr img,
#merchantPromotionQr canvas,
#merchantPromotionQr img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 240px;
  max-height: 240px;
  object-fit: contain;
}

.qr-section p,
.qr-section > span {
  margin-bottom: 0;
  font-size: 12px;
}

.qr-section > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
}

.qr-section svg {
  width: 15px;
}

.order-summary {
  justify-items: stretch;
}

.order-summary > span,
.order-summary > p,
.order-summary > small {
  margin-bottom: 0;
  color: var(--muted);
  text-align: center;
}

.order-summary > strong {
  color: var(--orange);
  font-size: 38px;
  text-align: center;
}

.order-summary > p {
  color: var(--ink);
  font-weight: 900;
}

.order-summary dl {
  display: grid;
  gap: 8px;
  margin: 6px 0;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.order-summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
}

.payment-benefit-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 10px 11px;
  border: 1px solid #cfe5dc;
  border-radius: 7px;
  background: #f2faf6;
  color: var(--green-dark);
  font-size: 11px;
  line-height: 1.45;
}

.payment-benefit-note svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
}

.order-summary dt {
  color: var(--muted);
}

.order-summary dd {
  margin: 0;
  font-weight: 800;
}

.payment-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.payment-timeline span {
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: 7px;
  color: var(--muted);
  background: #eef1ef;
  font-size: 9px;
}

.payment-timeline span.active {
  color: var(--green-dark);
  background: var(--green-soft);
}

.payment-timeline svg {
  width: 16px;
}

.editor-modal {
  width: min(650px, 100%);
  padding: 24px;
}

.market-media-editor {
  width: min(900px, 100%);
}

.market-media-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.market-media-field {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf8;
}

.market-media-field > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.market-media-field > header > div {
  display: grid;
  gap: 3px;
}

.market-media-field > header small,
.market-media-status,
.market-video-url > span {
  color: var(--muted);
  font-size: 10px;
}

.market-media-drop {
  position: relative;
  display: grid;
  min-height: 82px;
  place-items: center;
  border: 1px dashed var(--line-dark);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}

.market-media-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.market-media-drop span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-weight: 900;
}

.market-media-drop svg {
  width: 19px;
}

.market-cover-preview img,
.market-video-preview video {
  width: 100%;
  max-height: 240px;
  border-radius: 7px;
  object-fit: contain;
  background: #0a1712;
}

.market-video-url {
  display: grid;
  gap: 5px;
}

.market-video-url input {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.market-media-status {
  margin: 0;
  line-height: 1.5;
}

.market-records-modal {
  width: min(1120px, 100%);
  padding: 24px;
}

.market-records-modal > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 0 42px 18px 0;
}

.market-records-modal > header p:last-child {
  margin: 5px 0 0;
  color: var(--muted);
}

.market-merchant-search,
.market-records-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.market-merchant-search {
  padding: 2px 0;
}

.market-records-search {
  margin: 0 0 14px;
}

.market-merchant-search label,
.market-records-search .search-control {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line-dark);
  border-radius: 7px;
  background: #fff;
}

.market-merchant-search label:focus-within,
.market-records-search .search-control:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(18, 112, 76, .12);
}

.market-merchant-search svg,
.market-records-search .search-control svg {
  width: 17px;
  flex: 0 0 17px;
  color: var(--green);
}

.market-merchant-search input,
.market-records-search .search-control input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

.modal-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.user-consumption-modal {
  width: min(940px, 100%);
  padding: 24px;
}

.user-consumption-modal > header {
  margin: 0 42px 18px 0;
}

.user-consumption-modal > header p:last-child {
  margin: 5px 0 0;
  color: var(--muted);
}

.user-consumption-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

#userConsumptionOrders .table-row {
  grid-template-columns: 1.25fr .8fr .68fr .65fr 1fr;
  min-width: 700px;
}

.market-records-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.market-records-table .table-row {
  grid-template-columns: 30px 70px 1.05fr .9fr 1fr 2.25fr .75fr;
  min-width: 1020px;
  align-items: center;
}

.market-record-select-header,
.merchant-select-cell {
  display: flex;
  align-items: center;
  justify-content: center;
}

.market-record-select-header {
  gap: 4px;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.market-record-select-header input,
.merchant-select-cell input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

.danger-batch-button {
  color: #a33b31;
  border-color: #e6b8b2;
}

.danger-batch-button:not(:disabled):hover {
  color: #8d2e27;
  background: #fff5f3;
}

.market-record-main {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.market-record-mobile-meta {
  display: none;
}

.record-photo {
  display: grid;
  width: 56px;
  height: 42px;
  overflow: hidden;
  place-items: center;
  border-radius: 6px;
  color: var(--muted);
  background: #edf2ef;
}

.record-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.record-photo button {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.merchant-media-column {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.merchant-media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(58px, 1fr));
  gap: 5px;
  min-width: 0;
}

.merchant-media-slot {
  position: relative;
  display: grid;
  width: 100%;
  height: 54px;
  min-width: 0;
  overflow: hidden;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #edf2ef;
  cursor: zoom-in;
}

.merchant-media-preview,
.merchant-media-content {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
}

.merchant-media-preview {
  cursor: zoom-in;
}

.merchant-media-actions {
  position: absolute;
  z-index: 2;
  top: 3px;
  right: 3px;
  display: flex;
  gap: 3px;
}

.merchant-media-action {
  display: grid;
  width: 21px;
  height: 21px;
  min-width: 21px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 4px;
  color: var(--green-dark);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 1px 4px rgba(7, 39, 29, .18);
  cursor: pointer;
}

.merchant-media-action.danger {
  color: #a12f28;
}

.merchant-media-action svg {
  width: 12px;
  height: 12px;
}

.merchant-media-slot img,
.merchant-media-slot video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.merchant-media-slot video {
  cursor: pointer;
}

.merchant-media-slot.is-empty {
  gap: 2px;
  align-content: center;
  padding: 4px;
  border-style: dashed;
  color: var(--green-dark);
  background: #f7fbf8;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.merchant-media-slot.is-empty svg {
  width: 17px;
  height: 17px;
}

.merchant-media-video {
  cursor: default;
}

.merchant-media-video > .external-video-card,
.merchant-media-video > video,
.merchant-media-content > .external-video-card,
.merchant-media-content > video {
  width: 100%;
  height: 100%;
}

.merchant-verification-summary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.merchant-verification-summary .verification-rating {
  min-height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 18px;
}

.merchant-verification-summary .request-status:not(.verification-rating) {
  min-height: 18px;
  padding: 0 5px;
  font-size: 10px;
  line-height: 18px;
}

.market-facts-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.market-records-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 980px;
  padding: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.editor-modal header {
  margin-bottom: 18px;
}

.editor-modal .form-actions {
  margin-top: 20px;
  justify-content: flex-end;
}

.account-menu {
  position: fixed;
  top: 62px;
  right: 26px;
  z-index: 80;
  display: grid;
  width: 190px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.account-menu button {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  text-align: left;
  font-size: 12px;
  font-weight: 800;
}

.account-menu button:hover {
  background: var(--green-soft);
}

.account-menu svg {
  width: 16px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200;
  max-width: min(360px, calc(100% - 36px));
  padding: 13px 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.collector-view {
  min-height: calc(100vh - var(--topbar-height));
  padding: 40px 0 72px;
}

.collector-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.collector-header h1 {
  margin-bottom: 8px;
  font-size: 36px;
}

.collector-header p:last-child {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
}

.approval-badge.neutral {
  color: var(--blue);
  background: #e9f1f8;
}

.collector-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  max-width: 1120px;
  margin-top: 28px;
}

.collector-panel,
.collector-submissions,
.collector-review-queue {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.collector-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.collector-panel > header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.collector-panel > header h2 {
  margin-bottom: 4px;
  font-size: 19px;
}

.collector-panel > header p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.step-number {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green-dark);
  font-weight: 900;
}

.collector-panel > label,
.collector-fields label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.collector-market-picker {
  gap: 10px !important;
  padding: 16px;
  border: 1px solid #b7d3c6;
  border-radius: 8px;
  background: #f2f8f4;
}

.collector-market-picker > span {
  color: var(--ink);
  font-size: 14px;
}

.collector-market-picker select {
  min-height: 58px;
  border-color: var(--green-dark);
  font-size: 18px;
  font-weight: 800;
}

.collector-market-picker small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.camera-upload {
  display: grid;
  min-height: 188px;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 24px;
  border: 1px dashed var(--line-dark);
  background: #f7faf8;
  text-align: center;
}

.camera-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.upload-choice-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.product-image-field .upload-choice-buttons input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.camera-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border-radius: 6px;
  color: #fff;
  background: var(--green-dark);
  cursor: pointer;
}

.camera-button svg {
  width: 21px;
}

.camera-button.gallery-button {
  color: var(--green-dark);
  border: 1px solid var(--green-dark);
  background: #fff;
}

.camera-upload > span {
  color: var(--muted);
  font-size: 12px;
}

.collector-preview {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 10px;
  border: 1px solid var(--line);
}

.collector-preview img {
  width: 104px;
  height: 82px;
  border-radius: 4px;
  object-fit: cover;
}

.collector-preview > div {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.collector-preview strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.collector-fields {
  grid-template-columns: 1fr;
}

.collector-submissions {
  margin-top: 18px;
  padding: 22px;
}

.submission-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.submission-market-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.submission-market-group summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
}

.submission-market-group summary::-webkit-details-marker {
  display: none;
}

.submission-market-group summary strong,
.submission-market-group summary small {
  display: block;
}

.submission-market-group summary small {
  margin-top: 3px;
  color: var(--muted);
}

.submission-market-group summary > svg {
  width: 18px;
  transition: transform .18s ease;
}

.submission-market-group[open] summary > svg {
  transform: rotate(180deg);
}

.submission-market-records {
  display: grid;
  gap: 8px;
  padding: 0 10px 10px;
  border-top: 1px solid var(--line);
  background: #f7faf8;
}

.submission-market-records .submission-row {
  margin-top: 8px;
}

.submission-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.submission-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(110px, .8fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.submission-row > div {
  min-width: 0;
}

.submission-row strong,
.submission-row small {
  display: block;
  overflow-wrap: anywhere;
}

.submission-row small {
  margin-top: 3px;
  color: var(--muted);
}

.submission-status {
  justify-self: start;
  padding: 5px 9px;
  border-radius: 999px;
  color: #80570d;
  background: #fff2ce;
  font-size: 11px;
  font-weight: 900;
}

.submission-status.published {
  color: var(--green-dark);
  background: var(--green-soft);
}

.collector-review-queue {
  margin-bottom: 18px;
  padding: 20px;
}

.empty-inline {
  padding: 18px;
  border: 1px dashed var(--line-dark);
  color: var(--muted);
  text-align: center;
}

.collector-account-list {
  display: grid;
  gap: 7px;
}

.collector-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.collector-account-row span,
.collector-account-row small {
  display: block;
}

.collector-account-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.collector-account-row b {
  color: var(--green-dark);
  font-size: 11px;
}

.inline-rate {
  display: flex;
  align-items: center;
  gap: 4px;
}

.inline-rate input {
  width: 74px;
  height: 36px;
}

@media (max-width: 1080px) {
  .landing-header {
    grid-template-columns: 1fr auto;
    width: min(1180px, calc(100% - 48px));
  }

  .landing-nav {
    display: none;
  }
}

@media (max-width: 820px) {
  .market-media-fields {
    grid-template-columns: 1fr;
  }

  .market-media-editor {
    padding: 18px;
  }

  .market-intro-video video {
    max-height: 360px;
  }
  .landing-header {
    width: calc(100% - 36px);
    min-height: 70px;
  }

  .landing-wrap {
    width: calc(100% - 36px);
  }

  .landing-login {
    display: none;
  }

  .landing-enter {
    min-height: 38px;
    padding: 0 11px;
    font-size: 13px;
  }

  .landing-hero {
    min-height: 700px;
  }

  .landing-hero-image {
    object-position: 59% center;
  }

  .landing-hero-shade {
    background: linear-gradient(90deg, rgba(5, 24, 18, .88), rgba(5, 24, 18, .38)), linear-gradient(0deg, rgba(4, 19, 14, .48), transparent 46%);
  }

  .landing-hero-content {
    padding-bottom: 72px;
  }

  .landing-hero h1 {
    max-width: 590px;
    font-size: 48px;
  }

  .landing-lead {
    max-width: 560px;
    font-size: 15px;
  }

  .landing-proof {
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 28px;
  }

  .hero-scroll-cue {
    display: none;
  }

  .landing-statement,
  .landing-process,
  .landing-audiences,
  .field-network {
    padding: 74px 0;
  }

  .statement-grid,
  .field-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .process-heading {
    margin-bottom: 26px;
  }

  .process-list li {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 16px;
    min-height: 132px;
  }

  .audience-grid {
    grid-template-columns: 1fr;
  }

  .field-points {
    max-width: 560px;
  }

  .footer-content {
    flex-wrap: wrap;
  }

  .footer-content > p {
    width: 100%;
    margin: 0;
    order: 3;
  }

  .icp-link {
    margin-left: auto;
  }
}

@media (max-width: 600px) {
  .overview-range-control {
    width: 100%;
  }

  .overview-range-control button {
    flex: 1;
  }

  .operations-chart {
    padding: 15px;
  }

  .operations-chart > header {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .operations-chart > header small {
    text-align: left;
  }

  .operations-chart-content {
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 12px;
  }

  .operations-donut {
    width: 118px;
    height: 118px;
  }

  .operations-donut > span {
    width: 74px;
    height: 74px;
  }

  .landing-header {
    width: calc(100% - 32px);
  }

  .landing-header .brand > span:last-child small {
    display: none;
  }

  .landing-header .brand {
    gap: 8px;
  }

  .landing-header .brand strong {
    font-size: 14px;
  }

  .landing-hero {
    min-height: 660px;
  }

  .landing-hero-image {
    object-position: 62% center;
  }

  .landing-hero-content {
    padding-bottom: 46px;
  }

  .hero-eyebrow {
    margin-bottom: 14px;
    font-size: 10px;
  }

  .landing-hero h1 {
    max-width: 360px;
    margin-bottom: 15px;
    font-size: 38px;
  }

  .landing-lead {
    margin-bottom: 23px;
    font-size: 14px;
    line-height: 1.7;
  }

  .landing-hero-actions {
    align-items: stretch;
    flex-direction: column;
    max-width: 210px;
  }

  .landing-primary,
  .landing-secondary {
    width: 100%;
  }

  .landing-proof {
    max-width: 300px;
    font-size: 12px;
  }

  .statement-grid h2,
  .process-heading h2,
  .audience-heading h2,
  .field-copy h2 {
    font-size: 30px;
  }

  .statement-grid > p,
  .field-copy > p {
    font-size: 15px;
  }

  .process-list li {
    grid-template-columns: 48px minmax(0, 1fr);
    min-height: 0;
    padding: 23px 0;
  }

  .process-list > li > svg {
    display: none;
  }

  .process-list h3 {
    font-size: 19px;
  }

  .process-list p {
    font-size: 14px;
  }

  .audience-card {
    min-height: 0;
    padding: 28px 23px;
  }

  .audience-label {
    margin-bottom: 38px;
  }

  .audience-card h3 {
    font-size: 27px;
  }

  .field-points div {
    grid-template-columns: 76px 1fr;
    gap: 12px;
  }

  .landing-footer {
    padding: 25px 0;
  }

  .icp-link {
    margin-left: 0;
  }
}

@media (max-width: 1080px) {
  .topbar {
    grid-template-columns: auto 1fr auto;
  }

  .topbar-brand > span:last-child,
  .account-copy,
  .account-button > svg {
    display: none;
  }

  .account-button {
    min-width: 42px;
    grid-template-columns: 30px;
    padding: 0 5px;
  }

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

  .metric-grid,
  .settings-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-form > .primary-button {
    grid-column: 1 / -1;
  }

  .category-create-row,
  .category-admin-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-code,
  .category-admin-row .submission-status {
    grid-column: span 2;
  }

  .compact-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collector-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  :root {
    --topbar-height: 60px;
  }

  .auth-screen {
    grid-template-columns: 1fr;
    background: #fff;
  }

  .auth-visual {
    min-height: 34vh;
    max-height: 360px;
  }

  .auth-visual img {
    min-height: 34vh;
  }

  .auth-visual-copy {
    bottom: 24px;
  }

  .auth-visual-copy h1 {
    margin: 9px 0 7px;
    font-size: 34px;
  }

  .auth-visual-copy p {
    font-size: 14px;
  }

  .auth-panel {
    min-height: 66vh;
    padding: 20px 18px 24px;
  }

  .auth-form-wrap {
    margin: 44px auto;
  }

  .topbar {
    gap: 8px;
    padding: 0 12px;
  }

  .brand-mark {
    width: 74px;
    height: 38px;
    flex-basis: 74px;
    font-size: 14px;
  }

  .role-switcher button {
    min-width: 42px;
  }

  .role-switcher button span {
    display: none;
  }

  .notification-button {
    display: none;
  }

  .market-intro,
  .affiliate-header,
  .collector-header,
  .page-heading,
  .section-header {
    align-items: start;
  }

  .market-intro,
  .affiliate-header,
  .collector-header {
    padding-top: 30px;
  }

  .market-intro h1,
  .affiliate-header h1,
  .collector-header h1,
  .page-heading h1 {
    font-size: 29px;
  }

  .directory-toolbar,
  .admin-toolbar,
  .affiliate-content,
  .admin-overview-grid,
  .import-workspace,
  .profile-layout,
  .payment-body {
    grid-template-columns: 1fr;
  }

  .market-admin-toolbar {
    grid-template-columns: 1fr;
  }

  .directory-metric {
    display: none;
  }

  .affiliate-content {
    padding-bottom: 90px;
  }

  .referral-band {
    align-items: stretch;
  }

  .referral-actions {
    justify-content: flex-start;
  }

  .affiliate-share-picker {
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
  }

  .affiliate-share-picker select {
    width: 100%;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: sticky;
    top: var(--topbar-height);
    z-index: 30;
    height: auto;
    overflow-x: auto;
    padding: 8px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .admin-label {
    display: none;
  }

  .admin-sidebar nav {
    display: flex;
    min-width: max-content;
  }

  .admin-sidebar nav button {
    width: auto;
    min-width: 45px;
    grid-template-columns: 18px auto;
    padding: 0 10px;
  }

  .nav-count {
    display: none;
  }

  .admin-content {
    padding: 24px 16px 90px;
  }

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

  .language-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  #paymentModal[data-payment-method="alipay"] .payment-body,
  #paymentModal[data-payment-method="wechat"] .payment-body {
    display: block;
  }

  #paymentModal[data-payment-method="alipay"] .qr-section,
  #paymentModal[data-payment-method="wechat"] .qr-section {
    display: none;
  }

  #paymentModal[data-payment-context="wechat-browser"][data-payment-method="alipay"] .qr-section {
    display: grid;
    padding: 20px 16px;
  }

  #paymentModal[data-payment-context="wechat-browser"][data-payment-method="alipay"] .qr-frame {
    width: min(260px, 78vw);
  }

  #paymentModal[data-payment-context="wechat-browser"][data-payment-method="alipay"] #paymentQr img {
    -webkit-user-drag: none;
    user-select: none;
  }

  #paymentModal[data-payment-context="wechat-browser"][data-payment-method="wechat"] .qr-section {
    display: grid;
    padding: 20px 16px;
  }

  #paymentModal[data-payment-context="wechat-browser"][data-payment-method="wechat"] .qr-frame {
    width: min(260px, 78vw);
  }

  #paymentModal[data-payment-context="wechat-browser"][data-payment-method="wechat"] #paymentQr img {
    -webkit-user-drag: none;
    user-select: none;
  }

  #paymentModal[data-native-qr="true"] .qr-section {
    display: grid;
    padding: 20px 16px;
  }

  #paymentModal[data-native-qr="true"] .qr-frame {
    width: min(260px, 78vw);
  }

  #paymentModal[data-jsapi="true"] .qr-section {
    display: none;
  }

  /* JSAPI runs inside WeChat and has no QR image. Keep its primary payment
     action in the same prominent panel position used by QR payment actions. */
  #paymentModal[data-payment-context="wechat-browser"][data-payment-method="wechat"][data-jsapi="true"] .qr-section {
    display: grid;
    padding: 16px;
    gap: 12px;
  }

  #paymentModal[data-payment-context="wechat-browser"][data-payment-method="wechat"][data-jsapi="true"] .qr-frame,
  #paymentModal[data-payment-context="wechat-browser"][data-payment-method="wechat"][data-jsapi="true"] #paymentScanHint {
    display: none;
  }

  #paymentModal[data-payment-context="wechat-browser"][data-payment-method="wechat"][data-jsapi="true"] .qr-section #paymentAction {
    order: 1;
    width: 100%;
    margin: 0;
  }

  #paymentModal[data-payment-context="wechat-browser"][data-payment-method="wechat"][data-jsapi="true"] .qr-section > span {
    order: 2;
  }

  #paymentModal[data-payment-context="wechat-browser"][data-payment-method="wechat"][data-jsapi="true"] .qr-section #paymentNotice {
    order: 3;
  }

  #paymentModal[data-payment-method="alipay"] .order-summary,
  #paymentModal[data-payment-method="wechat"] .order-summary {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 16px 22px;
  }

  #paymentModal[data-payment-method="alipay"] .order-summary > strong,
  #paymentModal[data-payment-method="wechat"] .order-summary > strong {
    font-size: 34px;
  }

  #paymentModal[data-payment-method="alipay"] .order-summary dl,
  #paymentModal[data-payment-method="wechat"] .order-summary dl {
    order: 5;
    margin: 2px 0;
    padding: 10px 0;
  }

  #paymentModal[data-payment-method="alipay"] .payment-timeline,
  #paymentModal[data-payment-method="wechat"] .payment-timeline {
    order: 6;
  }

  #paymentModal[data-payment-method="alipay"] .payment-timeline span,
  #paymentModal[data-payment-method="wechat"] .payment-timeline span {
    padding: 7px 3px;
  }

  #paymentModal[data-payment-method="alipay"] #paymentAction,
  #paymentModal[data-payment-method="wechat"] #paymentAction {
    order: 3;
    position: static;
    margin: 4px 0 0;
  }

  #paymentModal[data-payment-method="alipay"] #paymentNotice,
  #paymentModal[data-payment-method="wechat"] #paymentNotice {
    order: 4;
    margin: 0;
  }

  #paymentModal[data-payment-method="alipay"] .qr-section #paymentAction,
  #paymentModal[data-payment-method="wechat"] .qr-section #paymentAction {
    order: 0;
    width: 100%;
    margin: 0;
  }

  #paymentModal[data-payment-method="alipay"] .qr-section #paymentNotice,
  #paymentModal[data-payment-method="wechat"] .qr-section #paymentNotice {
    order: 0;
    margin: 0;
    text-align: center;
  }

  body {
    font-size: 14px;
  }

  .visit-metrics-section > header,
  .market-records-modal > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .visit-metrics-section > header small {
    text-align: left;
  }

  .visit-metrics-grid,
  .user-consumption-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .visit-metrics-grid article,
  .user-consumption-metrics article {
    min-height: 92px;
  }

  .modal-header-actions {
    width: 100%;
    justify-content: stretch;
  }

  .modal-header-actions > * {
    flex: 1;
  }

  .user-consumption-modal {
    padding: 18px;
  }

  .auth-topbar .brand > span:last-child,
  .auth-footer > span:last-child {
    display: none;
  }

  .auth-form-wrap {
    margin: 30px auto;
  }

  .auth-heading h2 {
    font-size: 27px;
  }

  .page-band {
    width: min(100% - 24px, 1240px);
  }

  .market-intro,
  .affiliate-header,
  .collector-header {
    padding-bottom: 20px;
  }

  .market-grid,
  .metric-grid,
  .settings-form {
    grid-template-columns: 1fr;
  }

  .category-create-row,
  .category-admin-row {
    grid-template-columns: 1fr;
  }

  .category-code,
  .category-admin-row .submission-status {
    grid-column: auto;
  }

  .market-card {
    grid-template-columns: 116px minmax(0, 1fr);
  }

  .market-card-image,
  .market-card-image img {
    min-height: 100%;
    height: 100%;
  }

  .market-card-image > .market-city {
    top: 8px;
    left: 8px;
  }

  .market-card-body {
    gap: 9px;
    padding: 13px;
  }

  .market-card-title {
    display: grid;
  }

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

  .market-card-body > p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .market-meta span:last-child {
    display: none;
  }

  .price-block strong {
    font-size: 18px;
  }

  .card-action {
    padding: 0 9px;
  }

  .market-results {
    padding-bottom: 96px;
  }

  .client-pane.page-band {
    padding-top: 26px;
    padding-bottom: 104px;
  }

  .mobile-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 35;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, .98);
  }

  .mobile-bottom-nav button {
    display: grid;
    min-height: 58px;
    place-items: center;
    align-content: center;
    gap: 3px;
    border: 0;
    color: var(--muted);
    background: transparent;
    font-size: 10px;
    font-weight: 800;
  }

  .mobile-bottom-nav button.active {
    color: var(--green-dark);
  }

  .mobile-bottom-nav svg {
    width: 20px;
  }

  .purchase-row {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .purchase-row img,
  .purchase-thumb {
    width: 58px;
    height: 52px;
  }

  .purchase-row time {
    display: none;
  }

  .referral-band,
  .affiliate-header,
  .collector-header,
  .page-heading,
  .section-header {
    display: grid;
  }

  .approval-badge,
  .status-chip {
    justify-self: start;
  }

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

  .collector-view {
    padding-top: 24px;
  }

  .collector-header h1 {
    font-size: 28px;
  }

  .collector-grid {
    margin-top: 20px;
  }

  .collector-panel,
  .collector-submissions,
  .collector-review-queue {
    padding: 16px;
  }

  .submission-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .submission-row > :nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .submission-market-group summary {
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding: 12px;
  }

  .submission-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .admin-sidebar nav button span:not(.nav-count) {
    display: none;
  }

  .admin-heading .secondary-button,
  .admin-heading > .primary-button {
    width: 100%;
  }

  .image-upload,
  .uploaded-preview,
  .uploaded-preview img {
    min-height: 250px;
  }

  .market-modal-hero,
  .market-modal-hero img {
    min-height: 190px;
    height: 190px;
  }

  .market-modal-body {
    padding: 16px;
  }

  .market-modal-title,
  .locked-access {
    display: grid;
  }

  .market-facts {
    grid-template-columns: 1fr 1fr;
  }

  .market-facts div:last-child {
    grid-column: 1 / -1;
  }

  .market-facts-compact div:last-child {
    grid-column: auto;
  }

  .locked-access {
    grid-template-columns: 36px 1fr;
  }

  .locked-access .primary-button {
    grid-column: 1 / -1;
  }

  .merchant-row {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .merchant-row img {
    width: 82px;
    height: 70px;
  }

  .merchant-contact {
    grid-column: 1 / -1;
    justify-items: start;
    padding-left: 94px;
  }

  .modal-backdrop {
    align-items: end;
    padding: 0;
  }

  .modal {
    width: 100%;
    max-height: 92vh;
    border-radius: 8px 8px 0 0;
  }

  .payment-header {
    padding-right: 62px;
  }

  .qr-section,
  .order-summary {
    padding: 18px;
  }

  .qr-frame {
    width: 190px;
  }

  .editor-modal {
    padding: 20px 16px;
  }

  .toast {
    right: 12px;
    bottom: 76px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* 2026 official-site refresh */
:root {
  --forest-950: #08271f;
  --forest-900: #0b3328;
  --forest-800: #12483a;
  --cream-50: #fbfaf4;
  --cream-100: #f4f0e4;
  --gold: #c89b47;
  --gold-soft: #ead9ae;
}

.landing-screen {
  overflow: hidden;
  color: #173b31;
  background: var(--cream-50);
}

.landing-header {
  width: min(1280px, calc(100% - 64px));
  min-height: 90px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.landing-nav {
  gap: 34px;
}

.landing-nav a {
  position: relative;
  padding: 34px 0;
}

.landing-nav a::after {
  position: absolute;
  right: 50%;
  bottom: 23px;
  left: 50%;
  height: 1px;
  content: "";
  background: var(--gold-soft);
  transition: right .2s ease, left .2s ease;
}

.landing-nav a:hover::after {
  right: 0;
  left: 0;
}

.public-hero {
  min-height: 720px;
  background:
    radial-gradient(circle at 76% 35%, rgba(205, 166, 88, .16), transparent 23%),
    radial-gradient(circle at 15% 95%, rgba(92, 139, 112, .22), transparent 30%),
    linear-gradient(125deg, #071f19 0%, #0a3429 57%, #123f32 100%);
}

.public-hero .landing-hero-shade {
  opacity: .34;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 54px 54px;
}

.public-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 900px);
  justify-content: center;
  align-items: center;
  gap: 0;
  padding-top: 136px;
  padding-bottom: 76px;
}

.public-hero-copy {
  width: 100%;
  align-self: center;
}

.public-hero .hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: #e8d7a8;
  letter-spacing: .15em;
}

.public-hero .hero-eyebrow span {
  width: 34px;
  height: 1px;
  background: var(--gold-soft);
}

.public-hero h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: clamp(40px, 5vw, 67px);
  letter-spacing: -.045em;
}

.public-hero .landing-lead {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: 16px;
  line-height: 1.9;
}

.public-search {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  max-width: 760px;
  padding: 7px 7px 7px 18px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 8px;
  color: #15382f;
  background: #fff;
  box-shadow: 0 24px 50px rgba(2, 15, 11, .28);
}

.public-search svg {
  width: 19px;
  color: #72837c;
}

.public-search input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 0;
  outline: 0;
  background: transparent;
}

.public-search button {
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  background: var(--forest-800);
  font-weight: 800;
}

.public-hero-card {
  position: relative;
  align-self: center;
  margin-top: 22px;
  padding: 12px;
  border: 1px solid rgba(236, 219, 170, .34);
  background: rgba(255, 255, 255, .06);
  box-shadow: 0 40px 80px rgba(2, 18, 13, .34);
  backdrop-filter: blur(10px);
}

.public-hero-card img {
  width: 100%;
  height: 390px;
  object-fit: cover;
}

.hero-card-caption {
  display: grid;
  gap: 4px;
  padding: 17px 8px 7px;
}

.hero-card-caption span {
  color: #e0c782;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}

.hero-card-caption strong {
  color: #fff;
  font-size: 14px;
}

.hero-card-stamp {
  position: absolute;
  top: 28px;
  right: 28px;
  display: flex;
  width: 84px;
  height: 84px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 50%;
  color: #fff;
  background: rgba(8, 39, 31, .73);
  font-size: 8px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: .09em;
}

.hero-card-stamp svg {
  width: 22px;
}

.public-metrics {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid #ded9ca;
  background: #fff;
}

.public-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.2fr;
  min-height: 128px;
}

.public-metric-grid > div {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 24px 34px;
  border-right: 1px solid #e5e1d5;
}

.public-metric-grid > div:first-child {
  padding-left: 0;
}

.public-metric-grid strong {
  color: var(--forest-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
}

.public-metric-grid span {
  color: #68766f;
  font-size: 13px;
}

.public-metric-grid .metric-note {
  grid-template-columns: 34px 1fr;
  align-items: center;
  border-right: 0;
}

.metric-note svg {
  width: 25px;
  color: var(--gold);
}

.metric-note b {
  color: var(--forest-800);
}

.public-categories,
.public-directory,
.verification-section {
  padding: 100px 0;
}

.public-categories {
  background: var(--cream-50);
}

.public-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.public-section-heading h2,
.request-service h2 {
  max-width: 760px;
  margin: 0;
  color: var(--forest-900);
  font-size: clamp(30px, 3.5vw, 48px);
  letter-spacing: -.03em;
}

.public-section-heading > p {
  max-width: 420px;
  margin: 0;
  color: #69766f;
  line-height: 1.8;
}

.public-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #d8d3c5;
  border-left: 1px solid #d8d3c5;
}

.public-category-grid button {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 18px;
  min-height: 132px;
  padding: 26px;
  border: 0;
  border-right: 1px solid #d8d3c5;
  border-bottom: 1px solid #d8d3c5;
  text-align: left;
  background: transparent;
  transition: color .2s ease, background .2s ease;
}

.public-category-grid button:hover {
  color: #fff;
  background: var(--forest-800);
}

.public-category-grid button > svg {
  width: 30px;
  height: 30px;
  color: var(--gold);
}

.public-category-grid button span {
  display: grid;
  gap: 7px;
}

.public-category-grid strong {
  font-size: 18px;
}

.public-category-grid small {
  color: #75827b;
}

.public-category-grid button:hover small {
  color: rgba(255, 255, 255, .7);
}

.public-directory {
  background: #f0ecdf;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 8px;
  border: 0;
  border-bottom: 1px solid var(--forest-800);
  background: transparent;
  font-weight: 800;
}

.text-link svg {
  width: 16px;
}

.industry-directory-explorer {
  margin-bottom: 54px;
  padding: 28px;
  border: 1px solid #d6ddd5;
  border-radius: 8px;
  background: #fff;
}

.industry-member-pane {
  background: #f7f9f6;
}

.industry-member-search {
  display: grid;
  grid-template-columns: 18px minmax(190px, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: min(100%, 450px);
  min-height: 50px;
  padding: 0 8px 0 14px;
  border: 1px solid var(--line-dark);
  border-radius: 7px;
  background: #fff;
}

.industry-member-search svg {
  width: 17px;
  color: var(--forest-800);
}

.industry-member-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
}

.industry-member-search button {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  background: var(--forest-800);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.industry-directory-heading,
.industry-list-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.industry-directory-heading {
  margin-bottom: 22px;
}

.industry-directory-heading .section-kicker {
  margin-bottom: 7px;
}

.industry-directory-heading h3 {
  margin: 0;
  color: var(--forest-900);
  font-size: 28px;
  letter-spacing: 0;
}

.industry-directory-heading p:not(.section-kicker) {
  max-width: 620px;
  margin: 10px 0 0;
  color: #69766f;
  line-height: 1.7;
}

.industry-map-controls {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.industry-map-controls .icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid #cfd8d0;
  border-radius: 6px;
  color: var(--forest-800);
  background: #fff;
}

.industry-map-controls svg {
  width: 17px;
}

.industry-public-search {
  margin-bottom: 18px;
}

.industry-directory-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(280px, .72fr);
  gap: 18px;
}

.industry-map-card,
.industry-directory-detail {
  border: 1px solid #d6ddd5;
  border-radius: 7px;
  background: #fbfcfa;
}

.industry-map-card {
  overflow: hidden;
}

.industry-map-viewport {
  position: relative;
  min-height: 344px;
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: contain;
  user-select: none;
  cursor: grab;
  background-color: #edf3ec;
  background-image: repeating-linear-gradient(0deg, transparent 0, transparent 39px, rgba(41, 78, 60, .1) 40px), repeating-linear-gradient(90deg, transparent 0, transparent 39px, rgba(41, 78, 60, .1) 40px);
}

.industry-map-grid,
.industry-map-layer {
  position: absolute;
  inset: 0;
}

.industry-map-viewport:active {
  cursor: grabbing;
}

.industry-map-viewport.is-panning .industry-map-layer {
  transition: none;
}

.industry-map-base {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
}

.industry-map-points {
  position: absolute;
  inset: 0;
}

.industry-map-grid,
.map-region {
  pointer-events: none;
}

.industry-map-layer {
  transform-origin: 0 0;
  transition: transform .78s cubic-bezier(.2, .7, .2, 1);
}

.map-region {
  position: absolute;
  color: #89a093;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.map-region-north { top: 15%; left: 42%; }
.map-region-east { top: 45%; right: 13%; }
.map-region-south { bottom: 13%; right: 24%; }
.map-region-west { bottom: 26%; left: 12%; }

.industry-map-point {
  position: absolute;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  transform: translate(-50%, -50%);
}

.industry-map-cluster {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #167d59;
  box-shadow: 0 0 0 6px rgba(22, 136, 92, .18);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  transform: translate(-50%, -50%);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.industry-map-cluster:hover,
.industry-map-cluster.is-selected {
  background: #bd7e14;
  box-shadow: 0 0 0 8px rgba(189, 126, 20, .22);
  transform: translate(-50%, -50%) scale(1.1);
}

.industry-map-cluster.is-top {
  background: #bd7e14;
}

.industry-map-point-core {
  position: absolute;
  inset: 8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #16885c;
  box-shadow: 0 0 0 5px rgba(22, 136, 92, .16);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.industry-map-point:hover .industry-map-point-core,
.industry-map-point.is-selected .industry-map-point-core {
  background: #bd7e14;
  box-shadow: 0 0 0 8px rgba(189, 126, 20, .2);
  transform: scale(1.15);
}

.industry-map-point.is-top .industry-map-point-core {
  background: #bd7e14;
}

.industry-map-point-label {
  position: absolute;
  left: 18px;
  top: -10px;
  z-index: 1;
  display: block;
  width: max-content;
  max-width: 110px;
  padding: 4px 6px;
  border: 1px solid #d6ddd5;
  border-radius: 4px;
  color: var(--forest-900);
  background: rgba(255, 255, 255, .93);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.industry-map-point:hover .industry-map-point-label,
.industry-map-point.is-selected .industry-map-point-label,
.industry-map-point.is-top .industry-map-point-label {
  opacity: 1;
}

.industry-map-legend {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 45px;
  padding: 0 16px;
  border-top: 1px solid #d6ddd5;
  color: #65746b;
  font-size: 12px;
}

.industry-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.industry-map-legend i,
.industry-map-legend b {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #16885c;
}

.industry-map-legend b {
  background: #bd7e14;
}

.industry-directory-detail {
  display: flex;
  flex-direction: column;
  min-height: 389px;
  padding: 22px;
}

.industry-detail-empty {
  display: grid;
  min-height: 100%;
  place-content: center;
  justify-items: center;
  gap: 10px;
  color: #708076;
  text-align: center;
}

.industry-detail-empty svg {
  width: 30px;
  color: #16885c;
}

.industry-detail-top,
.industry-heat-row,
.industry-list-heading,
.industry-directory-row,
.industry-detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.industry-detail-top span {
  color: #926312;
  font-size: 12px;
  font-weight: 900;
}

.industry-detail-top small,
.industry-heat-row small {
  color: #748178;
  font-size: 12px;
}

.industry-directory-detail h3 {
  margin: 16px 0 4px;
  color: var(--forest-900);
  font-size: 25px;
  letter-spacing: 0;
}

.industry-node {
  margin: 0 0 18px;
  color: #4e675a;
  font-weight: 800;
}

.industry-directory-detail dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.industry-directory-detail dl div {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 10px;
}

.industry-directory-detail dt {
  color: #7b887f;
  font-size: 12px;
}

.industry-directory-detail dd {
  margin: 0;
  color: #32463b;
  font-size: 13px;
  line-height: 1.55;
}

.industry-heat-row {
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid #e1e6e0;
}

.industry-heat-row > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #a6680b;
  font-size: 13px;
  font-weight: 900;
}

.industry-heat-row svg {
  width: 15px;
}

.industry-detail-actions {
  margin-top: 15px;
}

.industry-detail-actions button {
  min-height: 42px;
  flex: 1;
  justify-content: center;
  padding: 0 10px;
  font-size: 13px;
}

.industry-navigation-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 15px;
  color: var(--forest-800);
  font-size: 13px;
  font-weight: 800;
}

.industry-navigation-link svg {
  width: 15px;
}

.industry-list-heading {
  margin: 24px 0 12px;
}

.industry-list-heading > div {
  display: grid;
  gap: 4px;
}

.industry-list-heading strong {
  color: var(--forest-900);
  font-size: 17px;
}

.industry-list-heading > div > span {
  color: #728077;
  font-size: 12px;
}

.industry-top-three {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
  color: #7b887f;
  font-size: 12px;
}

.industry-top-three button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid #ecd8a5;
  border-radius: 5px;
  color: #6f5016;
  background: #fff8e8;
  font-size: 12px;
  font-weight: 800;
}

.industry-top-three b {
  color: #b37610;
  font-size: 10px;
}

.industry-directory-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-height: 322px;
  overflow-y: auto;
  border-top: 1px solid #dce2dc;
  border-left: 1px solid #dce2dc;
}

.industry-directory-row {
  min-height: 82px;
  padding: 13px;
  border: 0;
  border-right: 1px solid #dce2dc;
  border-bottom: 1px solid #dce2dc;
  color: inherit;
  text-align: left;
  background: #fff;
}

.industry-directory-row:hover,
.industry-directory-row.is-selected {
  background: #f0f6ef;
}

.industry-directory-order {
  color: #a7b2a8;
  font-family: Georgia, serif;
  font-size: 19px;
}

.industry-directory-row-copy {
  display: grid;
  flex: 1;
  gap: 5px;
  min-width: 0;
}

.industry-directory-row-copy strong {
  overflow: hidden;
  color: var(--forest-900);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.industry-directory-row-copy small {
  overflow: hidden;
  color: #718076;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.industry-directory-row-meta {
  display: grid;
  min-width: 30px;
  color: #a76a0c;
  text-align: center;
}

.industry-directory-row-meta b {
  font-size: 15px;
}

.industry-directory-row-meta small {
  color: #8a958d;
  font-size: 10px;
}

.public-market-subheading {
  margin: 0 0 18px;
  color: var(--forest-900);
  font-size: 20px;
  letter-spacing: 0;
}

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

.public-market-card {
  overflow: hidden;
  border: 1px solid #dbd6c8;
  background: #fff;
  box-shadow: 0 14px 40px rgba(34, 49, 42, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.public-market-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 50px rgba(34, 49, 42, .12);
}

.public-market-cover {
  position: relative;
  display: grid;
  height: 214px;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--forest-800);
  cursor: pointer;
}

.public-market-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.public-market-card:hover .public-market-cover img {
  transform: scale(1.035);
}

.public-market-cover.placeholder {
  background: linear-gradient(145deg, #123f33, #1f5c4b);
}

.public-market-cover.placeholder.tone-1 {
  background: linear-gradient(145deg, #504b38, #827659);
}

.public-market-cover.placeholder.tone-2 {
  background: linear-gradient(145deg, #273f45, #4d6e72);
}

.public-market-cover > span {
  font-family: Georgia, serif;
  font-size: 84px;
  opacity: .23;
}

.public-market-cover small {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(8, 39, 31, .76);
  backdrop-filter: blur(8px);
}

.public-market-cover small svg {
  width: 13px;
}

.public-market-body {
  padding: 24px;
}

.public-category-label {
  display: inline-block;
  margin-bottom: 12px;
  color: #9a6e25;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.public-market-body h3 {
  min-height: 48px;
  margin-bottom: 8px;
  color: var(--forest-900);
  font-size: 20px;
  line-height: 1.35;
}

.public-market-body > p {
  min-height: 44px;
  margin-bottom: 20px;
  color: #6b7771;
  line-height: 1.6;
}

.public-market-body footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid #ece9df;
  font-size: 12px;
}

.public-market-body footer > span,
.public-market-body footer button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.public-market-body footer svg {
  width: 14px;
}

.public-market-body footer button {
  padding: 0;
  border: 0;
  color: var(--forest-800);
  background: transparent;
  font-weight: 900;
}

.public-market-body footer .market-share-button {
  padding: 0 7px 0 4px;
  border: 0;
}

.public-directory-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  color: #69766f;
}

.landing-dark-button {
  min-height: 48px;
  color: #fff;
  background: var(--forest-900);
  border: 1px solid var(--forest-900);
}

.public-market-skeleton {
  min-height: 390px;
  background: linear-gradient(90deg, #e7e2d5 25%, #f2eee3 37%, #e7e2d5 63%);
  background-size: 400% 100%;
  animation: skeleton 1.4s ease infinite;
}

@keyframes skeleton {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

.request-service {
  padding: 105px 0;
  color: #fff;
  background: var(--forest-900);
}

.request-service-grid {
  display: grid;
  grid-template-columns: 1fr .85fr;
  align-items: center;
  gap: clamp(55px, 10vw, 150px);
}

.request-service .section-kicker {
  color: #e3ca85;
}

.request-service h2 {
  color: #fff;
}

.request-service-grid > div > p:not(.section-kicker) {
  max-width: 610px;
  margin: 22px 0 28px;
  color: rgba(255, 255, 255, .7);
  font-size: 16px;
  line-height: 1.85;
}

.request-service ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.request-service li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 22px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.request-service li > span {
  color: #e2c879;
  font-family: Georgia, serif;
  font-size: 25px;
}

.request-service li strong {
  font-size: 17px;
}

.request-service li p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, .62);
}

.verification-section {
  background: var(--cream-50);
}

.verification-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.verification-grid article {
  position: relative;
  min-height: 260px;
  padding: 28px;
  border: 1px solid #ded9ca;
  background: #fff;
}

.verification-grid article > span {
  position: absolute;
  top: 18px;
  right: 20px;
  color: #c4bda9;
  font-family: Georgia, serif;
  font-size: 20px;
}

.verification-grid svg {
  width: 32px;
  height: 32px;
  margin: 34px 0 38px;
  color: var(--gold);
}

.verification-grid h3 {
  color: var(--forest-900);
  font-size: 18px;
}

.verification-grid p {
  margin: 10px 0 0;
  color: #6f7a74;
  line-height: 1.7;
}

.landing-footer {
  padding: 54px 0 26px;
  color: rgba(255, 255, 255, .72);
  background: #061d17;
}

.footer-main,
.footer-legal,
.footer-main nav {
  display: flex;
  align-items: center;
}

.footer-main {
  gap: 38px;
  padding-bottom: 38px;
}

.footer-main .brand strong {
  color: #fff;
}

.footer-main .brand small {
  color: rgba(255, 255, 255, .5);
}

.footer-main > p {
  margin: 0 auto 0 0;
}

.footer-main nav {
  gap: 24px;
}

.footer-main nav button {
  padding: 0;
  border: 0;
  color: #e5cc88;
  background: transparent;
}

.footer-legal {
  flex-wrap: wrap;
  gap: 14px 22px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .46);
  font-size: 12px;
}

.phone-input-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: #fff;
}

.country-code {
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  color: var(--forest-800);
  font-weight: 900;
}

.phone-input-row .input-with-icon {
  border: 0;
}

.phone-input-row .input-with-icon input {
  border: 0;
}

.client-section-tabs {
  display: flex;
  gap: 8px;
  padding-top: 24px;
}

.client-section-tabs button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-weight: 800;
}

.client-section-tabs button.active {
  border-color: var(--forest-800);
  color: #fff;
  background: var(--forest-800);
}

.client-section-tabs svg {
  width: 15px;
}

.request-layout,
.buyer-request-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr);
  gap: 24px;
  align-items: start;
}

.buyer-request-form,
.request-history-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(21, 37, 31, .06);
}

.buyer-request-form .form-grid {
  margin-bottom: 22px;
}

.buyer-request-form .span-2 {
  grid-column: 1 / -1;
}

.request-photo-field { display: grid; gap: 12px; }
.request-field-label { font-size: 13px; font-weight: 900; }
.request-field-label small { margin-left: 5px; color: var(--muted); font-weight: 700; }
.request-photo-field .upload-choice-buttons { justify-content: flex-start; }
.request-photo-field .upload-choice-buttons input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.request-photo-preview {
  display: flex;
  min-height: 74px;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px dashed var(--line-dark);
  border-radius: 9px;
  color: var(--muted);
  background: var(--bg);
}
.request-photo-preview figure { position: relative; width: 104px; height: 78px; margin: 0; overflow: hidden; border-radius: 8px; }
.request-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.request-photo-preview button { position: absolute; top: 5px; right: 5px; display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; color: #fff; background: rgba(15, 28, 23, .78); }
.request-photo-preview button svg { width: 14px; }
.request-record-images,
.admin-request-images { display: flex; gap: 9px; margin: 12px 0; }
.request-record-images img,
.admin-request-images img { width: 96px; height: 72px; object-fit: cover; border: 1px solid var(--line); border-radius: 7px; }

.request-history-panel > header,
.buyer-request-row > div,
.admin-request-card header,
.admin-request-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.merchant-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 24px;
  align-items: start;
}

.merchant-product-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(21, 37, 31, .06);
}

.merchant-product-panel > header {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.merchant-product-panel > header p:last-child {
  margin: 6px 0 0;
  color: var(--muted);
}

.merchant-entry-guide {
  display: grid;
  gap: 8px;
  margin: -6px 0 22px;
  padding: 14px 16px;
  border: 1px solid #cfe5dc;
  border-radius: 8px;
  background: #f2faf6;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.merchant-entry-guide strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-dark);
  font-size: 13px;
}

.merchant-entry-guide strong svg {
  width: 16px;
  height: 16px;
}

.merchant-entry-guide b {
  color: var(--ink);
}

.merchant-entry-guide .text-button {
  justify-self: start;
  padding: 0;
  min-height: 28px;
}

.merchant-promotion-modal .payment-header p {
  color: var(--orange);
}

.merchant-product-panel .span-2 {
  grid-column: 1 / -1;
}

.product-image-field {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px dashed var(--line-dark);
  border-radius: 8px;
  background: #f8faf8;
}

.product-image-field small {
  color: var(--muted);
}

.product-image-field .upload-choice-buttons {
  justify-content: flex-start;
}

.product-image-preview img {
  width: min(100%, 360px);
  max-height: 240px;
  border-radius: 8px;
  object-fit: contain;
  background: #eef2ef;
}

.package-dimensions { display: grid; gap: 8px; }
.package-dimensions > span { font-size: 13px; font-weight: 900; }
.package-dimensions > div { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: end; gap: 8px; }
.package-dimensions label { display: grid; gap: 5px; }
.package-dimensions label small,
.package-dimensions > small,
#productVolumeHint { color: var(--muted); font-size: 11px; }
.package-dimensions b { padding-bottom: 13px; color: var(--muted); }

.product-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.own-product-thumb {
  width: 100%;
  max-height: 160px;
  margin-top: 12px;
  border-radius: 8px;
  object-fit: cover;
}

.own-product-edit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
}

.own-product-edit svg {
  width: 14px;
}

.public-products,
.verified-stock-section {
  padding-top: 76px;
  padding-bottom: 76px;
  background: #f2f5f2;
}

.verified-stock-section {
  margin-top: 22px;
  padding-top: 42px;
  padding-bottom: 56px;
}

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

.verified-product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 48, 37, .05);
}

.verified-product-image {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: #e7eee9;
}

.verified-product-image > img,
.verified-product-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.verified-product-placeholder {
  display: grid;
  place-items: center;
  color: var(--green);
}

.verified-product-placeholder svg {
  width: 46px;
  height: 46px;
}

.verified-product-image > span:not(.verified-product-placeholder) {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(8, 91, 62, .92);
  font-size: 10px;
  font-weight: 900;
}

.verified-product-image > span svg {
  width: 13px;
}

.verified-product-body {
  display: grid;
  gap: 9px;
  padding: 17px;
}

.verified-product-body > p,
.verified-product-body > h3,
.verified-product-body > small {
  margin: 0;
}

.verified-product-body > p {
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
}

.verified-product-body > h3 {
  font-size: 17px;
}

.verified-product-body > small {
  min-height: 38px;
  color: var(--muted);
  line-height: 1.6;
}

.verified-product-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.verified-product-facts span {
  padding: 5px 7px;
  border-radius: 5px;
  background: #f1f5f2;
  color: var(--muted);
  font-size: 10px;
}

.verified-product-price {
  color: var(--orange);
  font-size: 18px;
}

.verified-contact-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.verified-contact-button svg {
  width: 15px;
}

.verified-contact-detail {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 6px;
  background: #e8f3ed;
}

.verified-contact-detail span {
  color: var(--muted);
  word-break: break-all;
}

.merchant-review-sections {
  display: grid;
  gap: 34px;
}

.merchant-review-sections > section {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8faf8;
}

.product-audit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.product-audit-grid span {
  display: grid;
  gap: 5px;
  padding: 11px;
  border-radius: 7px;
  background: var(--bg);
  font-size: 12px;
}

.product-audit-grid b {
  color: var(--muted);
  font-size: 10px;
}

.request-history-panel > header {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.buyer-request-row {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.buyer-request-row:last-child {
  border-bottom: 0;
}

.buyer-request-row h3 {
  margin: 12px 0 6px;
}

.buyer-request-row p,
.buyer-request-row small,
.buyer-request-row time {
  color: var(--muted);
}

.request-status {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: #8a5d13;
  background: #fff1cf;
  font-size: 11px;
  font-weight: 900;
}

.request-status.approved,
.request-status.matching,
.request-status.completed {
  color: #08724c;
  background: #e3f3eb;
}

.request-status.rejected,
.request-status.expired {
  color: #9d3e35;
  background: #fae7e4;
}

.request-admin-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-request-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 9px 28px rgba(21, 37, 31, .05);
}

.admin-request-card header > div {
  display: grid;
  gap: 8px;
}

.admin-request-card h2 {
  margin: 22px 0 14px;
}

.admin-request-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.admin-request-meta span {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 7px;
  background: var(--bg);
  font-size: 13px;
}

.admin-request-meta b {
  color: var(--muted);
  font-size: 11px;
}

.admin-request-card > p {
  min-height: 44px;
  margin: 18px 0;
  color: var(--muted);
  line-height: 1.7;
}

.admin-request-card footer {
  justify-content: flex-end;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.payment-method-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 28px 20px;
}

.payment-method-tabs button {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
}

.payment-method-tabs button.active {
  border-color: var(--green);
  color: var(--green-dark);
  background: var(--green-soft);
  box-shadow: inset 0 0 0 1px var(--green);
}

.pay-dot {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
}

.pay-dot.alipay,
.alipay-mark {
  background: #1677ff;
}

.pay-dot.wechat,
.alipay-mark.wechat-mark {
  background: #07c160;
}

.public-modal-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 22px;
  padding: 20px;
  border-radius: 9px;
  color: #fff;
  background: var(--forest-900);
}

.public-modal-cta > div {
  display: grid;
  gap: 5px;
}

.public-modal-cta span {
  color: rgba(255, 255, 255, .68);
  font-size: 12px;
}

.public-merchant-preview article {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.merchant-preview-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--forest-800);
  font-weight: 900;
}

.public-merchant-preview p {
  margin: 5px 0 0;
  color: var(--muted);
}

.masked-contact {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 980px) {
  .operations-chart-grid {
    grid-template-columns: 1fr;
  }

  .verified-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-header {
    grid-template-columns: 1fr auto;
  }

  .landing-nav {
    display: none;
  }

  .public-hero-grid {
    grid-template-columns: minmax(0, 900px);
    justify-content: center;
    gap: 0;
  }

  .public-hero-card img {
    height: 320px;
  }

  .public-metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .public-metric-grid > div:nth-child(2) {
    border-right: 0;
  }

  .public-metric-grid > div:first-child {
    padding-left: 34px;
  }

  .public-category-grid,
  .public-market-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .industry-directory-layout {
    grid-template-columns: 1fr;
  }

  .industry-directory-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .verification-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .request-layout,
  .buyer-request-layout,
  .request-service-grid {
    grid-template-columns: 1fr;
  }

  .request-admin-board {
    grid-template-columns: 1fr;
  }

  .merchant-workspace-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .buyer-request-cta {
    display: block;
    margin-bottom: 24px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    box-shadow: none;
  }

  .buyer-request-cta-copy {
    display: none;
  }

  .buyer-request-cta-icon {
    width: 44px;
    height: 44px;
  }

  .buyer-request-cta-copy h2 {
    font-size: 22px;
  }

  .buyer-request-cta-button {
    display: none;
  }

  .mobile-industry-demand-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid #d6ddd5;
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
    box-shadow: 0 12px 26px rgba(21, 56, 43, .1);
  }

  .mobile-industry-demand-heading {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
  }

  .mobile-industry-demand-heading > span {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 6px;
    color: #fff;
    background: var(--forest-800);
  }

  .mobile-industry-demand-heading svg {
    width: 18px;
  }

  .mobile-industry-demand-heading p,
  .mobile-industry-demand-heading strong,
  .mobile-industry-demand-heading small {
    margin: 0;
  }

  .mobile-industry-demand-heading p {
    color: #67776d;
    font-size: 11px;
    font-weight: 800;
  }

  .mobile-industry-demand-heading strong {
    display: block;
    margin-top: 2px;
    color: var(--forest-900);
    font-size: 15px;
  }

  .mobile-industry-demand-heading small {
    max-width: 72px;
    color: #75857c;
    font-size: 10px;
    line-height: 1.35;
    text-align: right;
  }

  .mobile-industry-search {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    gap: 7px;
    min-height: 38px;
    margin: 0;
    padding: 0 8px;
    border-color: #d6ddd5;
    border-radius: 6px;
  }

  .mobile-industry-search svg {
    width: 16px;
    color: var(--green-dark);
  }

  .mobile-industry-search input {
    min-width: 0;
    font-size: 12px;
  }

  .mobile-industry-search button {
    min-height: 28px;
    padding: 0 9px;
    border-radius: 5px;
    font-size: 11px;
  }

  .mobile-industry-map-card {
    overflow: hidden;
    border: 1px solid #d6ddd5;
    border-radius: 6px;
  }

  .mobile-industry-demand-card .industry-map-viewport {
    min-height: 132px;
  }

  .mobile-industry-detail {
    display: grid;
    gap: 5px;
    padding: 10px;
    border: 1px solid #e0e7df;
    border-radius: 6px;
    background: #f8fbf8;
  }

  .mobile-industry-detail .industry-detail-top {
    font-size: 10px;
  }

  .mobile-industry-detail h3 {
    margin: 0;
    font-size: 17px;
  }

  .mobile-industry-detail .industry-node {
    margin: 0;
    color: #65746b;
    font-size: 11px;
  }

  .mobile-industry-detail dl {
    display: grid;
    gap: 4px;
    margin: 4px 0 0;
  }

  .mobile-industry-detail dl div {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 5px;
    font-size: 11px;
  }

  .mobile-industry-detail .industry-heat-row {
    font-size: 11px;
  }

  .mobile-industry-detail .industry-detail-actions,
  .mobile-industry-detail .industry-navigation-link {
    display: none;
  }

  .mobile-industry-demand-card .map-region {
    font-size: 9px;
  }

  .mobile-industry-demand-card .industry-map-point {
    width: 18px;
    height: 18px;
  }

  .mobile-industry-demand-card .industry-map-cluster {
    width: 22px;
    height: 22px;
    border-width: 2px;
    box-shadow: 0 0 0 4px rgba(22, 136, 92, .18);
    font-size: 9px;
  }

  .mobile-industry-demand-card .industry-map-point-core {
    inset: 4px;
    border-width: 1px;
    box-shadow: 0 0 0 3px rgba(22, 136, 92, .17);
  }

  .mobile-industry-demand-card .industry-map-point:hover .industry-map-point-core,
  .mobile-industry-demand-card .industry-map-point.is-selected .industry-map-point-core {
    box-shadow: 0 0 0 5px rgba(189, 126, 20, .2);
  }

  .mobile-industry-demand-card .industry-map-point-label {
    display: none;
  }

  .mobile-industry-demand-footer {
    display: grid;
    gap: 10px;
  }

  .mobile-industry-demand-footer .industry-top-three {
    min-height: 22px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    color: #77857d;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .mobile-industry-demand-footer .industry-top-three::-webkit-scrollbar {
    display: none;
  }

  .mobile-industry-demand-footer .industry-top-three button {
    min-height: 24px;
    padding: 0 7px;
    font-size: 11px;
  }

  .mobile-industry-demand-footer > div {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr);
    gap: 8px;
  }

  .mobile-industry-demand-footer button {
    min-width: 0;
    min-height: 40px;
    justify-content: center;
    padding: 0 8px;
    font-size: 12px;
  }

  .mobile-industry-demand-footer button svg {
    width: 15px;
  }

  .landing-wrap,
  .landing-header {
    width: min(100% - 32px, 1180px);
  }

  .landing-header {
    min-height: 74px;
  }

  .landing-actions {
    gap: 8px;
  }

  .landing-enter {
    min-height: 38px;
    padding: 0 10px;
    font-size: 12px;
  }

  .client-section-tabs {
    display: none;
  }

  .mobile-bottom-nav {
    grid-template-columns: repeat(5, 1fr);
  }

  .public-hero {
    min-height: auto;
  }

  .public-hero-grid {
    grid-template-columns: 1fr;
    padding-top: 118px;
    padding-bottom: 54px;
  }

  .public-hero h1 {
    font-size: 38px;
  }

  .public-hero-card {
    display: none;
  }

  .public-search {
    grid-template-columns: 20px minmax(0, 1fr);
    padding-right: 13px;
  }

  .public-search button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .landing-proof {
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 26px;
  }

  .public-metric-grid {
    grid-template-columns: 1fr 1fr;
  }

  .public-metric-grid > div {
    min-height: 106px;
    padding: 20px 16px !important;
  }

  .public-metric-grid strong {
    font-size: 26px;
  }

  .public-metric-grid .metric-note {
    grid-column: 1 / -1;
  }

  .public-categories,
  .public-products,
  .public-directory,
  .verification-section,
  .request-service {
    padding: 66px 0;
  }

  .public-section-heading {
    display: grid;
    gap: 18px;
    margin-bottom: 28px;
  }

  .public-section-heading h2,
  .request-service h2 {
    font-size: 31px;
  }

  .public-category-grid,
  .public-market-grid,
  .verified-product-grid,
  .verification-grid {
    grid-template-columns: 1fr;
  }

  .industry-directory-explorer {
    padding: 18px;
  }

  .industry-member-search {
    grid-template-columns: 18px minmax(0, 1fr) auto;
    width: 100%;
  }

  .industry-directory-heading,
  .industry-list-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .industry-directory-heading h3 {
    font-size: 24px;
  }

  .industry-map-viewport {
    min-height: 300px;
  }

  .industry-directory-detail {
    min-height: 0;
  }

  .industry-directory-list {
    grid-template-columns: 1fr;
    max-height: 360px;
  }

  .industry-top-three {
    justify-content: flex-start;
  }

  .public-category-grid button {
    min-height: 104px;
  }

  .public-market-body h3,
  .public-market-body > p {
    min-height: auto;
  }

  .public-directory-footer,
  .footer-main,
  .public-modal-cta {
    display: grid;
  }

  .footer-main nav {
    flex-wrap: wrap;
  }

  .footer-main > p {
    margin: 0;
  }

  .buyer-request-form,
  .request-history-panel,
  .admin-request-card,
  .merchant-product-panel,
  .merchant-review-sections > section {
    padding: 18px;
  }

  .buyer-request-form .span-2 {
    grid-column: auto;
  }

  .admin-request-meta {
    grid-template-columns: 1fr;
  }

  .product-audit-grid {
    grid-template-columns: 1fr 1fr;
  }

  .payment-method-tabs {
    padding: 0 16px 16px;
  }

  .public-merchant-preview article {
    grid-template-columns: 42px 1fr;
  }

  .masked-contact {
    grid-column: 2;
  }
}

.interface-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  position: fixed;
  top: var(--interface-top, calc(var(--topbar-height) + 8px));
  right: max(14px, calc((100vw - 1240px) / 2));
  z-index: 39;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.client-pane.has-interface-navigation {
  padding-top: calc(var(--interface-top, 80px) + 12px);
}

.admin-pane.has-interface-navigation {
  padding-top: max(52px, calc(var(--interface-top, 80px) - 18px));
}

.interface-navigation .secondary-button {
  display: grid;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(20, 77, 58, .18);
  border-radius: 50%;
  color: var(--green-dark);
  background: rgba(255, 255, 255, .42);
  box-shadow: 0 3px 10px rgba(21, 56, 43, .08);
  backdrop-filter: blur(8px);
  pointer-events: auto;
}

.interface-navigation .secondary-button:not(:disabled):hover {
  background: rgba(255, 255, 255, .8);
}

.interface-navigation .secondary-button span,
.interface-navigation .secondary-button small {
  display: none;
}

.interface-navigation-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.interface-navigation .secondary-button small {
  overflow: hidden;
  max-width: 12em;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.interface-navigation > span {
  display: none;
}

@media (max-width: 680px) {
  .interface-navigation {
    top: var(--interface-top, calc(var(--topbar-height) + 8px));
    right: 10px;
    gap: 4px;
  }

  .client-pane.has-interface-navigation {
    padding-top: calc(var(--interface-top, 68px) + 10px);
  }

  .admin-pane.has-interface-navigation {
    padding-top: max(46px, calc(var(--interface-top, 68px) - 14px));
  }

  .interface-navigation .secondary-button {
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
  }

  .interface-navigation-actions {
    gap: 4px;
  }

}

.merchant-media-editor,
.merchant-product-home {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fbf8;
}

.merchant-media-editor header {
  display: grid;
  gap: 3px;
}

.merchant-media-editor header small,
.merchant-product-home small {
  color: var(--muted);
}

.merchant-media-preview,
.merchant-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.merchant-media-preview > span {
  color: var(--muted);
  font-size: 13px;
}

.merchant-media-preview figure {
  position: relative;
  width: 92px;
  height: 70px;
  margin: 0;
}

.merchant-media-preview .media-preview-trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.merchant-media-preview img,
.merchant-media-preview video,
.merchant-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.merchant-media-preview figure > button:not(.media-preview-trigger) {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(18, 30, 26, .8);
}

.uploaded-preview img[data-preview-image]:not([data-preview-image=""]) {
  cursor: zoom-in;
}

.merchant-profile-row {
  grid-template-columns: 190px minmax(0, 1fr) minmax(168px, auto);
  align-items: start;
  gap: 16px;
  padding: 14px;
}

.merchant-profile-row > div:nth-child(2) {
  min-width: 0;
}

.merchant-verification {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.merchant-verification span {
  padding: 3px 7px;
  border-radius: 4px;
  color: #6a5000;
  background: #fff3cb;
  font-size: 12px;
}

.merchant-intro-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 260px;
  border-radius: 4px;
  background: #17221e;
}

.merchant-video-slot {
  width: min(100%, 480px);
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fbf8;
}

.merchant-video-slot header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
}

.merchant-video-slot strong {
  font-size: 13px;
}

.merchant-video-slot small {
  color: var(--muted);
  font-size: 12px;
}

.merchant-video-placeholder {
  display: grid;
  min-height: 104px;
  place-items: center;
  gap: 6px;
  color: var(--muted);
  background: #eef3ef;
  font-size: 12px;
}

.merchant-video-placeholder i {
  width: 22px;
  height: 22px;
  color: var(--forest-700);
}

.merchant-video-preview .external-video-card {
  grid-template-columns: 26px 1fr;
  min-height: 76px;
  margin: 0;
  border-radius: 4px;
}

.merchant-video-preview .external-video-card a {
  grid-column: 2;
  justify-self: start;
}

.merchant-phone-list {
  display: grid;
  gap: 3px;
}

.merchant-phone-list span {
  font-weight: 900;
}

@media (max-width: 720px) {
  .external-video-card {
    grid-template-columns: 26px 1fr;
  }

  .external-video-card a {
    grid-column: 2;
    justify-self: start;
  }
}

.merchant-gallery {
  margin-top: 10px;
}

.merchant-gallery a {
  width: 66px;
  height: 52px;
}

.merchant-gallery img {
  border: 1px solid var(--line);
}

.merchant-stock-details {
  margin-top: 10px;
  color: var(--text);
  font-size: 13px;
}

.merchant-stock-details summary {
  cursor: pointer;
  color: var(--forest-700);
}

.merchant-stock-details > div {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.merchant-stock-details img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 3px;
}

.merchant-stock-details span {
  display: grid;
  gap: 2px;
}

.merchant-stock-details small {
  color: var(--muted);
}

.merchant-contact-actions {
  display: grid;
  justify-content: flex-end;
  justify-items: end;
  gap: 6px;
  margin-top: 8px;
}

.merchant-contact-action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.merchant-primary-image {
  position: relative;
  display: block;
  width: 190px;
  height: 142px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #edf2ed;
  cursor: zoom-in;
}

.merchant-primary-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.merchant-primary-image span,
.merchant-gallery a::after,
.merchant-gallery-item span {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 3px 6px;
  border-radius: 4px;
  color: #fff;
  background: rgba(8, 27, 20, .78);
  font-size: 11px;
  pointer-events: none;
}

.merchant-gallery a,
.merchant-gallery-item {
  position: relative;
  display: block;
  width: 96px;
  height: 76px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  background: #edf2ed;
  cursor: zoom-in;
}

.merchant-gallery-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.merchant-contact-actions .contact-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: auto;
  min-width: 0;
  height: 34px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 700;
}

.merchant-contact-actions .contact-action:hover {
  border-color: var(--green);
  color: var(--green-dark);
  background: var(--green-soft);
}

.merchant-contact-actions .contact-action span {
  color: var(--text);
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.merchant-contact-actions .contact-action svg {
  width: 16px;
  height: 16px;
}

.merchant-claim-action {
  max-width: 100%;
}

.merchant-preview-list > header,
.merchant-workspace-subsection > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.merchant-preview-list > header small,
.merchant-workspace-subsection .section-kicker {
  color: var(--muted);
}

.merchant-preview-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.merchant-preview-row + .merchant-preview-row,
.merchant-claim-row + .merchant-claim-row,
.merchant-update-row + .merchant-update-row {
  margin-top: 8px;
}

.merchant-preview-row h3 {
  margin: 0;
}

.merchant-preview-lock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.merchant-preview-lock svg {
  width: 14px;
  height: 14px;
}

.merchant-workspace-subsection {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.merchant-workspace-subsection h3 {
  margin: 0;
}

.merchant-claim-row,
.merchant-update-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.merchant-claim-row > div,
.merchant-update-row {
  display: grid;
  gap: 4px;
}

.merchant-claim-row strong,
.merchant-update-row strong {
  font-size: 13px;
}

.merchant-claim-row small,
.merchant-update-row span {
  color: var(--muted);
  font-size: 12px;
}

.merchant-claim-row .table-action {
  flex: 0 0 auto;
}

.merchant-update-request-action {
  max-width: 100%;
}

.merchant-update-request-action span {
  white-space: normal;
  text-align: left;
}

.merchant-claim-pending {
  color: var(--muted);
}

.market-inline-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 0 2px;
  border-top: 1px solid var(--line);
}

.market-inline-nav > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.market-inline-nav button:last-child {
  justify-self: end;
}

.merchant-image-viewer {
  position: relative;
  display: grid;
  place-items: center;
  width: min(94vw, 980px);
  min-height: 260px;
  padding: 34px 22px 22px;
  background: #0a1712;
}

#merchantImageViewer {
  z-index: 140;
}

.merchant-image-viewer figure {
  display: grid;
  gap: 10px;
  width: 100%;
  margin: 0;
  justify-items: center;
}

.merchant-image-viewer img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 5px;
}

.merchant-image-viewer figcaption {
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
}

@media (max-width: 760px) {
  .market-admin-toolbar {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .admin-market-table,
  .market-records-table {
    overflow-x: visible;
  }

  .admin-market-table .table-row.header,
  .market-records-table .table-row.header {
    display: none;
  }

  .admin-market-table .table-row:not(.header) {
    min-width: 0;
    grid-template-columns: 28px 62px minmax(0, 1fr) auto;
    gap: 7px 10px;
    padding: 10px 4px;
  }

  .admin-market-table .market-sort-handle {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 25px;
    height: 44px;
    align-self: center;
  }

  .admin-market-table .admin-market-thumb {
    grid-column: 2;
    grid-row: 1 / span 3;
    width: 62px;
    height: 52px;
  }

  .admin-market-table .market-name-order {
    grid-column: 3 / -1;
    display: grid;
    gap: 3px;
  }

  .admin-market-table .market-name-order small {
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-market-table .market-city-info,
  .admin-market-table .market-video-state {
    display: none;
  }

  .admin-market-table .market-supplier-count {
    grid-column: 3;
    color: var(--muted);
    font-size: 11px;
  }

  .admin-market-table .market-rating-counts {
    flex-wrap: wrap;
  }

  .admin-market-table .market-price {
    grid-column: 4;
    color: var(--orange);
    font-size: 17px;
  }

  .admin-market-table .table-status {
    grid-column: 3;
  }

  .admin-market-table .market-admin-actions {
    grid-column: 3 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .admin-market-table .table-action {
    width: 100%;
    min-width: 0;
    padding: 0 4px;
  }

  .market-records-modal {
    padding: 18px 12px;
  }

  .market-records-modal > header {
    gap: 12px;
    margin-right: 36px;
  }

  .market-records-modal > header h2 {
    font-size: 22px;
  }

  .market-records-modal .modal-header-actions > * {
    min-height: 38px;
    padding: 0 7px;
    font-size: 11px;
  }

  .market-records-search,
  .market-merchant-search {
    align-items: stretch;
  }

  .market-records-search .secondary-button,
  .market-merchant-search .secondary-button {
    min-height: 40px;
    padding: 0 10px;
  }

  .market-records-table .table-row:not(.header) {
    min-width: 0;
    grid-template-columns: 24px 64px minmax(0, 1fr);
    gap: 8px 10px;
    padding: 12px 2px;
  }

  .market-records-table .merchant-select-cell {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .market-records-table .record-photo {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 64px;
    height: 52px;
  }

  .market-records-table .market-record-main {
    grid-column: 3;
  }

  .market-records-table .merchant-media-column {
    grid-column: 1 / -1;
  }

  .market-records-table .merchant-media-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .market-records-table .merchant-media-slot {
    height: 64px;
  }

  .market-records-table .merchant-phone-cell {
    grid-column: 1 / -1;
    display: block;
  }

  .market-records-table .market-record-main strong {
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .market-records-table .market-record-desktop-cell:not(.merchant-phone-cell),
  .market-records-table .table-row > .request-status,
  .market-records-table time {
    display: none;
  }

  .market-records-table .market-record-mobile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 7px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
  }

  .market-records-table .market-record-mobile-meta > span {
    overflow: visible;
    white-space: normal;
  }

  .market-records-table .market-record-mobile-meta > span:nth-child(3) {
    flex-basis: 100%;
  }

  .market-records-table .market-record-mobile-meta .request-status {
    width: max-content;
    min-height: 20px;
    padding: 0 6px;
  }

  .market-records-table .market-admin-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .market-records-table .table-action {
    width: 100%;
    min-width: 0;
    padding: 0 4px;
  }

  .market-records-footer {
    min-width: 0;
    padding: 10px 2px;
  }

  #merchantImageViewer.modal-backdrop {
    place-items: center;
    padding: 14px;
  }

  #merchantImageViewer .merchant-image-viewer {
    width: min(100%, 720px);
    max-height: calc(100vh - 28px);
    border-radius: 8px;
  }
}

@media (max-width: 760px) {
  .merchant-profile-row {
    grid-template-columns: 1fr;
  }

  .merchant-primary-image {
    width: 100%;
    height: min(58vw, 250px);
  }

  .merchant-profile-row .merchant-contact {
    grid-column: 1;
    align-items: flex-start;
  }

  .merchant-contact-actions {
    justify-content: flex-start;
    justify-items: start;
    flex-wrap: wrap;
  }

  .merchant-contact-action-row {
    justify-content: flex-start;
  }

  .market-inline-nav {
    grid-template-columns: 1fr auto 1fr;
  }

  .market-inline-nav .secondary-button {
    min-width: 0;
    padding: 8px 9px;
  }
}

.merchant-inline-input {
  width: 100%;
  min-width: 0;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface, #fff);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
}

.merchant-inline-input:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-color: var(--accent);
}

.merchant-phone-cell {
  min-width: 0;
  overflow: hidden;
}

.merchant-phone-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  min-width: 0;
  overflow: visible;
}

.merchant-phone-fields .merchant-inline-input {
  width: 100%;
  font-size: 12px;
}

.merchant-phone-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: max-content;
  min-height: 25px;
  padding: 3px 7px;
  border: 1px dashed color-mix(in srgb, var(--accent) 55%, var(--line));
  border-radius: 5px;
  background: transparent;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.merchant-phone-add:hover,
.merchant-phone-add:focus-visible {
  border-style: solid;
  background: color-mix(in srgb, var(--accent) 8%, white);
}

.merchant-phone-add svg {
  width: 13px;
  height: 13px;
}

.merchant-name-input {
  font-weight: 700;
}

.verification-rating {
  color: #b47b14;
  letter-spacing: 0;
  white-space: nowrap;
}

.verification-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f4faf7;
  color: var(--ink);
  font-size: 12px;
}

.verification-progress span {
  color: var(--muted);
}

.merchant-detail-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.merchant-detail-gallery button {
  width: 64px;
  height: 48px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #edf2ef;
  cursor: zoom-in;
}

.merchant-detail-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Booth numbers are merged into the address field; keep legacy inputs only for migration compatibility. */
label:has(> #contactBooth),
label:has(> #collectorBooth) {
  display: none !important;
}

@media (max-width: 760px) {
  .market-records-table .market-record-desktop-cell {
    display: block;
    grid-column: 2;
  }

  .verification-progress {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
}
