:root {
  --bg: #f4efe6;
  --bg-deep: #10253c;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --text: #14283c;
  --muted: #5d7084;
  --line: rgba(18, 40, 60, 0.12);
  --accent: #ed7a34;
  --accent-strong: #d86118;
  --teal: #0d7a73;
  --success: #1f8f64;
  --shadow: 0 20px 60px rgba(16, 37, 60, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 999px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.inbox-message-list::-webkit-scrollbar,
.inbox-thread-list::-webkit-scrollbar,
.buyer-chat-thread-list::-webkit-scrollbar,
.buyer-chat-body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(237, 122, 52, 0.14), transparent 26%),
    radial-gradient(circle at top right, rgba(13, 122, 115, 0.12), transparent 24%),
    linear-gradient(180deg, #fbf7f0 0%, #f4efe6 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(16, 37, 60, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 37, 60, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 82%);
}

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

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

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

.site-shell {
  position: relative;
  z-index: 1;
  width: min(var(--container), calc(100vw - 32px));
  margin: 0 auto;
  padding-bottom: 40px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #ffb066);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: 0 16px 30px rgba(237, 122, 52, 0.28);
}

.brand-mark.has-image {
  padding: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

.brand-mark.has-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-text strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav,
.site-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.62);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 18px 36px rgba(237, 122, 52, 0.22);
}

.btn-secondary {
  background: rgba(16, 37, 60, 0.05);
  border-color: rgba(16, 37, 60, 0.08);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(16, 37, 60, 0.14);
  color: var(--text);
}

.btn-google {
  background: #fff;
  color: var(--text);
  border-color: rgba(16, 37, 60, 0.1);
}

.btn-block {
  width: 100%;
}

.section,
.section-tight {
  margin-top: 28px;
}

.section {
  padding: 28px 0;
}

.section-tight {
  padding: 8px 0 0;
}

.section-emphasis {
  padding: 38px 0 18px;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.84fr);
  gap: 24px;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.card,
.auth-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 34px;
  background:
    radial-gradient(circle at 18% 18%, rgba(237, 122, 52, 0.11), transparent 28%),
    radial-gradient(circle at 92% 10%, rgba(13, 122, 115, 0.12), transparent 24%),
    rgba(255, 255, 255, 0.76);
}

.hero-panel,
.card,
.auth-panel {
  padding: 28px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.04;
}

h1 {
  font-size: clamp(2.6rem, 4vw, 4.8rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(1.65rem, 2.3vw, 2.5rem);
}

h3 {
  font-size: 1.15rem;
}

.hero-text,
.page-text,
.detail-subtitle,
.supplier-note,
.card p,
.brief-copy p,
.auth-copy p {
  color: var(--muted);
  line-height: 1.72;
}

.hero-search,
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-search {
  margin-top: 28px;
}

.hero-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(16, 37, 60, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  padding: 14px 16px;
  color: var(--text);
}

textarea {
  min-height: 152px;
  resize: vertical;
}

.hero-search input,
.toolbar input {
  flex: 1;
}

.hero-panel-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.hero-chip,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(16, 37, 60, 0.1);
  background: rgba(255, 255, 255, 0.68);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
}

.hero-chip-accent,
.pill.is-active {
  border-color: rgba(237, 122, 52, 0.18);
  background: rgba(237, 122, 52, 0.12);
}

.signal-list {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.hero-checklist {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.hero-check-item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(16, 37, 60, 0.04);
  border: 1px solid rgba(16, 37, 60, 0.06);
}

.hero-check-item strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.98rem;
}

.hero-check-item span {
  color: var(--muted);
  line-height: 1.65;
}

.hero-proof-grid,
.metrics-grid,
.process-grid,
.product-grid,
.factory-grid {
  display: grid;
  gap: 18px;
}

.hero-proof-grid {
  margin-top: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.proof-card,
.metric-card,
.process-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(16, 37, 60, 0.08);
}

.proof-label,
.metric-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.trust-item {
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(16, 37, 60, 0.92);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  text-align: center;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.story-card {
  min-height: 100%;
}

.story-card h3 {
  margin-top: 2px;
}

.section-head,
.list-meta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.text-link {
  color: var(--teal);
  font-weight: 700;
}

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

.metric-card strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.55rem;
  line-height: 1.1;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill-grid-large {
  margin-bottom: 22px;
}

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

.product-card {
  overflow: hidden;
}

.product-media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 0.84;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(16, 37, 60, 0.08), rgba(16, 37, 60, 0.02)),
    #fff;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body {
  margin-top: 16px;
}

.product-title,
.factory-title {
  font-size: 1.02rem;
  line-height: 1.4;
}

.product-subtitle,
.factory-copy,
.factory-meta,
.empty-card,
.status-message {
  color: var(--muted);
  line-height: 1.6;
}

.product-price {
  margin-top: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
}

.product-meta-row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

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

.factory-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.factory-logo {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(13, 122, 115, 0.15), rgba(16, 37, 60, 0.08));
  overflow: hidden;
}

.factory-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.factory-copy {
  margin-top: 14px;
}

.factory-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.factory-tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(16, 37, 60, 0.06);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.factory-card {
  min-height: 100%;
}

.factory-signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.factory-signal-card {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(16, 37, 60, 0.08);
  background: rgba(16, 37, 60, 0.04);
}

.factory-signal-card span {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.factory-signal-card strong {
  display: block;
  margin-top: 8px;
  line-height: 1.55;
}

.factory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.step-badge {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(237, 122, 52, 0.14);
  color: var(--accent-strong);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.brief-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: start;
}

.brief-form,
.auth-card {
  background: var(--surface-strong);
}

.field-row,
.auth-form,
.detail-specs {
  display: grid;
  gap: 14px;
}

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

label {
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
}

.field-row-submit {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.google-signin-stack {
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 8px 0 4px;
}

.google-signin-mount {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
}

.google-signin-mount > div {
  width: min(100%, 392px);
  margin: 0 auto;
}

.google-signin-mount iframe {
  margin: 0 auto;
}

.google-signin-stack .btn-google {
  width: min(100%, 392px);
  min-height: 52px;
  margin: 0 auto;
  border-color: rgba(29, 78, 216, 0.12);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.google-signin-stack .btn-google:hover {
  border-color: rgba(29, 78, 216, 0.2);
  box-shadow: 0 16px 32px rgba(29, 78, 216, 0.08);
}

.google-signin-stack [hidden],
.google-signin-mount[hidden] {
  display: none !important;
}

.btn:disabled {
  cursor: not-allowed;
  transform: none;
  opacity: 0.62;
  box-shadow: none;
}

.btn.is-active {
  background: rgba(13, 122, 115, 0.12);
  border-color: rgba(13, 122, 115, 0.22);
  color: var(--teal);
}

.auth-slot-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-pill {
  min-height: 42px;
}

.auth-pill-inbox {
  gap: 8px;
}

.pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(237, 122, 52, 0.14);
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
}

.btn-compact {
  min-height: 42px;
  padding: 0 16px;
}

.account-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.account-hero-copy {
  max-width: 720px;
}

.account-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.account-metrics {
  margin-top: 0;
}

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

.account-panel {
  background: rgba(255, 255, 255, 0.86);
}

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

.account-details div,
.account-insight-card {
  min-width: 0;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(16, 37, 60, 0.04);
  border: 1px solid rgba(16, 37, 60, 0.08);
}

.account-details dt,
.account-insight-card span {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.account-details dd {
  margin: 10px 0 0;
  font-weight: 700;
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.account-insights {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.account-insight-card strong {
  display: block;
  margin-top: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.02rem;
  line-height: 1.4;
}

.account-empty {
  color: var(--muted);
  line-height: 1.7;
}

.account-thread-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.account-thread-card-link {
  display: block;
  width: auto;
  color: inherit;
  text-decoration: none;
}

.account-thread-card-link.has-unread {
  border-color: rgba(237, 122, 52, 0.18);
  background: linear-gradient(180deg, rgba(237, 122, 52, 0.08), rgba(255, 255, 255, 0.78));
}

.inbox-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.inbox-sidebar,
.inbox-panel {
  background: rgba(255, 255, 255, 0.86);
}

.inbox-sidebar-head {
  align-items: start;
  margin-bottom: 16px;
}

.inbox-sidebar-tools {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.inbox-lang-toggle {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border: 1px solid rgba(16, 37, 60, 0.12);
  border-radius: 999px;
  background: rgba(16, 37, 60, 0.04);
}

.inbox-lang-toggle button {
  min-width: 58px;
  border: none;
  border-radius: 999px;
  padding: 7px 12px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.inbox-lang-toggle button.is-active {
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(16, 37, 60, 0.14);
}

.inbox-thread-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.inbox-thread-card {
  width: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(16, 37, 60, 0.1);
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.inbox-thread-card:hover {
  transform: translateY(-1px);
  border-color: rgba(13, 122, 115, 0.18);
}

.inbox-thread-card.is-active {
  border-color: rgba(13, 122, 115, 0.26);
  background: rgba(13, 122, 115, 0.08);
}

.inbox-thread-card-top,
.inbox-thread-card-meta,
.message-card-head,
.inbox-thread-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.inbox-thread-card-top span,
.inbox-thread-card-meta span,
.message-card-head span {
  color: var(--muted);
  font-size: 0.82rem;
}

.inbox-thread-card-meta {
  margin-top: 10px;
}

.inbox-thread-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.inbox-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(237, 122, 52, 0.14);
  color: var(--accent-strong);
  font-weight: 800;
}

.inbox-thread-header {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(16, 37, 60, 0.08);
}

.inbox-thread-header-meta {
  flex-wrap: wrap;
  margin: 14px 0 0;
}

.inbox-message-list {
  display: grid;
  gap: 14px;
  min-height: 360px;
  max-height: 620px;
  margin-top: 18px;
  padding-right: 4px;
  overflow-y: auto;
}

.message-card {
  max-width: min(720px, 100%);
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(16, 37, 60, 0.08);
  background: rgba(16, 37, 60, 0.04);
}

.message-card.is-me {
  margin-left: auto;
  background: rgba(13, 122, 115, 0.08);
  border-color: rgba(13, 122, 115, 0.16);
}

.message-card-body {
  margin-top: 10px;
  line-height: 1.72;
  color: var(--text);
}

.inbox-compose {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(16, 37, 60, 0.08);
}

.inbox-compose textarea {
  min-height: 130px;
}

.buyer-chat-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal), var(--accent));
  color: #fff;
  box-shadow: 0 22px 42px rgba(16, 37, 60, 0.22);
  cursor: pointer;
  z-index: 1200;
}

.buyer-chat-launcher svg {
  display: block;
  margin: 0 auto;
}

.buyer-chat-badge {
  position: absolute;
  top: -4px;
  right: -2px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent-strong);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(216, 97, 24, 0.24);
}

.buyer-chat-badge[hidden] {
  display: none;
}

.buyer-chat-panel {
  position: fixed;
  right: 24px;
  bottom: 96px;
  width: min(980px, calc(100vw - 32px));
  height: min(700px, calc(100vh - 128px));
  display: none;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(16, 37, 60, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 36px 80px rgba(16, 37, 60, 0.22);
  backdrop-filter: blur(18px);
  z-index: 1190;
}

.buyer-chat-panel.is-open {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
}

.buyer-chat-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  background:
    radial-gradient(circle at top left, rgba(13, 122, 115, 0.12), transparent 32%),
    rgba(16, 37, 60, 0.03);
  border-right: 1px solid rgba(16, 37, 60, 0.08);
}

.buyer-chat-side-head,
.buyer-chat-main-head {
  padding: 20px 22px;
  border-bottom: 1px solid rgba(16, 37, 60, 0.08);
}

.buyer-chat-side-head,
.buyer-chat-main-handle {
  cursor: grab;
  touch-action: none;
}

.buyer-chat-main-handle {
  min-width: 0;
}

.buyer-chat-panel.is-dragging .buyer-chat-side-head,
.buyer-chat-panel.is-dragging .buyer-chat-main-handle {
  cursor: grabbing;
}

.buyer-chat-panel.is-dragging,
.buyer-chat-panel.is-dragging * {
  user-select: none;
}

.buyer-chat-side-title,
.buyer-chat-main-title {
  margin: 0;
  font-size: 1.05rem;
  font-family: "Space Grotesk", sans-serif;
}

.buyer-chat-side-sub,
.buyer-chat-main-sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.buyer-chat-search {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(16, 37, 60, 0.08);
}

.buyer-chat-search input {
  width: 100%;
}

.buyer-chat-thread-list {
  flex: 1;
  overflow: auto;
  padding: 12px;
}

.buyer-chat-thread {
  position: relative;
}

.buyer-chat-thread-card {
  width: 100%;
  padding: 14px 52px 14px 15px;
  border-radius: 18px;
  border: 1px solid rgba(16, 37, 60, 0.08);
  background: rgba(255, 255, 255, 0.78);
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.buyer-chat-thread + .buyer-chat-thread {
  margin-top: 10px;
}

.buyer-chat-thread-card:hover {
  transform: translateY(-1px);
  border-color: rgba(13, 122, 115, 0.18);
}

.buyer-chat-thread.is-active .buyer-chat-thread-card {
  border-color: rgba(13, 122, 115, 0.26);
  background: rgba(13, 122, 115, 0.08);
}

.buyer-chat-thread-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(16, 37, 60, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.buyer-chat-thread-close:hover {
  transform: scale(1.04);
  background: rgba(237, 122, 52, 0.12);
  border-color: rgba(237, 122, 52, 0.2);
  color: var(--accent-strong);
}

.buyer-chat-thread-top,
.buyer-chat-thread-meta,
.buyer-chat-message-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.buyer-chat-thread-top span,
.buyer-chat-thread-meta span,
.buyer-chat-message-head span {
  color: var(--muted);
  font-size: 0.78rem;
}

.buyer-chat-thread-meta {
  margin-top: 8px;
}

.buyer-chat-thread p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.buyer-chat-unread {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(237, 122, 52, 0.14);
  color: var(--accent-strong);
  font-weight: 800;
}

.buyer-chat-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.buyer-chat-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.buyer-chat-lang-toggle {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border: 1px solid rgba(16, 37, 60, 0.12);
  border-radius: 999px;
  background: rgba(16, 37, 60, 0.04);
}

.buyer-chat-lang-toggle button {
  min-width: 56px;
  border: none;
  border-radius: 999px;
  padding: 7px 12px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.buyer-chat-lang-toggle button.is-active {
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(16, 37, 60, 0.14);
}

.buyer-chat-link-btn,
.buyer-chat-ghost-btn,
.buyer-chat-send-btn,
.buyer-chat-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.buyer-chat-link-btn {
  background: rgba(16, 37, 60, 0.05);
  border-color: rgba(16, 37, 60, 0.08);
  color: var(--text);
}

.buyer-chat-ghost-btn {
  background: transparent;
  border-color: rgba(16, 37, 60, 0.14);
  color: var(--text);
}

.buyer-chat-send-btn,
.buyer-chat-primary-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 18px 36px rgba(237, 122, 52, 0.22);
}

.buyer-chat-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 18px;
}

.buyer-chat-empty {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
}

.buyer-chat-empty--sidebar {
  min-height: 220px;
}

.buyer-chat-empty-card {
  max-width: 360px;
}

.buyer-chat-empty-card h3 {
  margin: 0 0 12px;
  font-size: 1.3rem;
  font-family: "Space Grotesk", sans-serif;
}

.buyer-chat-empty-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.buyer-chat-message {
  max-width: min(680px, 100%);
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(16, 37, 60, 0.08);
  background: rgba(16, 37, 60, 0.04);
}

.buyer-chat-message + .buyer-chat-message {
  margin-top: 14px;
}

.buyer-chat-message.is-me {
  margin-left: auto;
  background: rgba(13, 122, 115, 0.08);
  border-color: rgba(13, 122, 115, 0.16);
}

.buyer-chat-message-body {
  margin-top: 10px;
  line-height: 1.72;
  color: var(--text);
}

.buyer-chat-composer {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-top: 1px solid rgba(16, 37, 60, 0.08);
}

.buyer-chat-composer textarea {
  min-height: 104px;
}

.buyer-chat-emoji-picker {
  position: relative;
  width: fit-content;
}

.buyer-chat-emoji-toggle {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(16, 37, 60, 0.14);
  background: linear-gradient(180deg, #ffffff 0%, #f7fafe 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.buyer-chat-emoji-toggle:hover {
  border-color: rgba(13, 122, 115, 0.45);
  box-shadow: 0 8px 16px rgba(16, 37, 60, 0.08);
  transform: translateY(-1px);
}

.buyer-chat-emoji-toggle:focus-visible {
  outline: 2px solid rgba(13, 122, 115, 0.28);
  outline-offset: 1px;
}

.buyer-chat-emoji-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  max-width: min(280px, calc(100vw - 48px));
  padding: 4px;
  border: 1px solid rgba(16, 37, 60, 0.14);
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafe 100%);
  box-shadow: 0 10px 24px rgba(16, 37, 60, 0.12);
  overflow-x: auto;
}

.buyer-chat-emoji-panel[hidden] {
  display: none;
}

.buyer-chat-emoji-btn {
  min-width: 28px;
  height: 24px;
  padding: 0 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.buyer-chat-emoji-btn:hover {
  background: rgba(13, 122, 115, 0.1);
  transform: translateY(-1px);
}

.buyer-chat-emoji-btn:focus-visible {
  outline: 2px solid rgba(13, 122, 115, 0.28);
  outline-offset: 1px;
}

.buyer-chat-composer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.buyer-chat-tip,
.buyer-chat-status {
  color: var(--muted);
  font-size: 0.82rem;
}

.buyer-chat-status {
  min-height: 18px;
}

.buyer-chat-status.is-error {
  color: #b45309;
}

.buyer-chat-status.is-ok {
  color: var(--success);
}

.page-hero {
  padding-bottom: 4px;
}

.catalog-hero,
.catalog-filter-layout,
.factory-hero,
.factory-filter-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(320px, 0.86fr);
  gap: 20px;
  align-items: stretch;
}

.catalog-hero-copy,
.catalog-hero-panel,
.catalog-support-card,
.factory-hero-copy,
.factory-hero-panel,
.factory-support-card {
  background: rgba(255, 255, 255, 0.82);
}

.catalog-hero-copy h1 {
  max-width: 12ch;
}

.catalog-guide-grid,
.factory-guide-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.catalog-guide-card,
.factory-guide-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(16, 37, 60, 0.08);
  background: rgba(16, 37, 60, 0.04);
}

.catalog-guide-card strong,
.factory-guide-card strong,
.catalog-state-copy strong,
.factory-state-copy strong {
  font-family: "Space Grotesk", sans-serif;
}

.catalog-guide-card span,
.factory-guide-card span {
  color: var(--muted);
  line-height: 1.65;
}

.catalog-toolbar,
.factory-toolbar {
  min-height: 100%;
}

.catalog-support-card,
.factory-support-card {
  display: grid;
  align-content: start;
  gap: 10px;
}

.catalog-state-bar,
.factory-state-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin: 20px 0 18px;
}

.catalog-state-copy,
.factory-state-copy {
  display: grid;
  gap: 8px;
}

.catalog-state-copy .eyebrow,
.factory-state-copy .eyebrow {
  margin-bottom: 0;
}

.catalog-state-copy strong,
.factory-state-copy strong {
  font-size: clamp(1.2rem, 1.5vw, 1.5rem);
}

.catalog-state-copy .page-text,
.factory-state-copy .page-text {
  margin: 0;
}

.catalog-state-chips,
.factory-state-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.catalog-state-chips .pill {
  min-height: 38px;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(16, 40, 60, 0.08);
  color: #223244;
  font-weight: 600;
}

.catalog-state-chips .pill.is-active {
  background: #eef1f3;
  border-color: rgba(16, 40, 60, 0.08);
  color: #111827;
}

.catalog-state-bar.market-state-bar {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "copy count"
    "chips chips";
  align-items: start;
  row-gap: 16px;
}

.catalog-state-bar .catalog-state-copy {
  grid-area: copy;
  min-width: 0;
  max-width: 60ch;
}

.catalog-state-bar .catalog-state-chips {
  grid-area: chips;
  min-width: 0;
}

.catalog-state-bar .catalog-state-count {
  grid-area: count;
  align-self: start;
  justify-self: end;
}

.catalog-state-count,
.factory-state-count {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  justify-self: end;
}

.catalog-chip-muted {
  background: rgba(16, 37, 60, 0.04);
  color: var(--muted);
}

.detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.detail-status-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 20px;
  margin-top: 16px;
}

.detail-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(16, 37, 60, 0.08), rgba(16, 37, 60, 0.02)),
    #fff;
  overflow: hidden;
  color: var(--muted);
}

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

.detail-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.detail-gallery-note {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.68;
}

.detail-thumb {
  width: 82px;
  height: 82px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(16, 37, 60, 0.12);
  cursor: pointer;
}

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

.detail-price {
  margin: 18px 0 12px;
  color: var(--accent-strong);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.85rem;
}

.detail-lead {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.74;
}

.detail-specs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0;
}

.detail-specs div {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(16, 37, 60, 0.04);
}

.detail-specs dt {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.detail-specs dd {
  margin: 8px 0 0;
  font-weight: 700;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.detail-action-note {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.66;
}

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

.detail-support-card {
  min-height: 100%;
}

.detail-checklist,
.detail-signal-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.detail-check-item,
.detail-signal-card {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(16, 37, 60, 0.08);
  background: rgba(16, 37, 60, 0.04);
}

.detail-check-item strong,
.detail-signal-card strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.98rem;
}

.detail-check-item span,
.detail-signal-card span {
  color: var(--muted);
  line-height: 1.65;
}

.detail-signal-card span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.supplier-brief {
  margin-top: 18px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(13, 122, 115, 0.16);
  background:
    radial-gradient(circle at top right, rgba(13, 122, 115, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 252, 251, 0.9));
}

.supplier-brief-head {
  display: flex;
  gap: 14px;
  align-items: center;
}

.supplier-brief-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(16, 37, 60, 0.92), rgba(13, 122, 115, 0.84));
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  flex: 0 0 auto;
  overflow: hidden;
}

.supplier-brief-logo.has-image {
  background: rgba(255, 255, 255, 0.92);
}

.supplier-brief-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.supplier-brief-copywrap {
  min-width: 0;
  flex: 1;
}

.supplier-brief-kicker {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.supplier-brief-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.supplier-brief-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
}

.supplier-brief-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.supplier-brief-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(16, 37, 60, 0.06);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
}

.supplier-brief-badge.is-strong {
  background: rgba(237, 122, 52, 0.14);
  color: var(--accent-strong);
}

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

.supplier-brief-grid div {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(16, 37, 60, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.supplier-brief-grid dt {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.supplier-brief-grid dd {
  margin: 8px 0 0;
  color: var(--text);
  font-weight: 700;
  line-height: 1.55;
}

.supplier-brief-copy {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.72;
}

.supplier-brief-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--teal);
  font-weight: 700;
}

.supplier-brief-empty {
  color: var(--muted);
  line-height: 1.68;
}

.rich-copy {
  line-height: 1.75;
}

.rich-copy img {
  border-radius: 18px;
}

.auth-shell {
  min-height: 100vh;
}

.auth-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 24px;
  align-items: stretch;
  margin-top: 30px;
}

.auth-copy {
  padding: 34px;
}

.auth-divider {
  position: relative;
  margin: 18px 0;
  text-align: center;
  color: var(--muted);
}

.auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(16, 37, 60, 0.1);
}

.auth-divider span {
  position: relative;
  display: inline-block;
  padding: 0 12px;
  background: var(--surface-strong);
}

.auth-inline-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-inline-note a {
  color: var(--teal);
  font-weight: 700;
}

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
}

.auth-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding: 24px 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

:root {
  --bg: #f5f7fc;
  --bg-deep: #0f1b33;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --text: #101828;
  --muted: #667085;
  --line: rgba(15, 23, 42, 0.08);
  --accent: #ff5a36;
  --accent-strong: #e63e19;
  --accent-soft: #fff1ec;
  --accent-gold: #ffd166;
  --brand-blue: #2155f5;
  --brand-blue-deep: #1233b8;
  --teal: #0a7a70;
  --success: #0f9f67;
  --shadow: 0 20px 50px rgba(20, 34, 76, 0.08);
  --shadow-strong: 0 30px 70px rgba(20, 34, 76, 0.16);
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 16px;
}

body {
  background:
    radial-gradient(circle at top left, rgba(33, 85, 245, 0.1), transparent 30%),
    radial-gradient(circle at top right, rgba(255, 90, 54, 0.12), transparent 24%),
    linear-gradient(180deg, #fbfcff 0%, #f5f7fc 100%);
}

body::before {
  background-image:
    radial-gradient(circle at 12% 16%, rgba(255, 255, 255, 0.88), transparent 28%),
    radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.62), transparent 22%);
  background-size: auto;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 88%);
}

.site-shell {
  padding-bottom: 56px;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 40;
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-blue), var(--accent));
  box-shadow: 0 18px 30px rgba(33, 85, 245, 0.22);
}

.brand-text strong {
  font-size: 1.12rem;
}

.brand-text small {
  color: #7d8596;
}

.site-nav a {
  padding: 10px 14px;
  color: #475467;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--brand-blue-deep);
  background: rgba(33, 85, 245, 0.09);
}

.btn {
  min-height: 48px;
  font-weight: 800;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-deep));
  box-shadow: 0 18px 34px rgba(33, 85, 245, 0.24);
}

.btn-secondary {
  background: var(--accent-soft);
  border-color: rgba(255, 90, 54, 0.16);
  color: var(--accent-strong);
}

.btn-ghost {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.12);
}

.card,
.auth-panel,
.hero-panel,
.hero-copy {
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.market-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(245, 248, 255, 0.92));
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.market-strip-label {
  color: var(--brand-blue-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.market-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #475467;
  font-size: 0.88rem;
  font-weight: 700;
}

.market-strip a:hover {
  color: var(--brand-blue-deep);
  border-color: rgba(33, 85, 245, 0.18);
}

.hero-section {
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.92fr);
  gap: 20px;
}

.hero-copy-store {
  position: relative;
  overflow: hidden;
  padding: 34px;
  color: #fff;
  background: linear-gradient(135deg, #1437c6 0%, #2155f5 45%, #4d80ff 100%);
  box-shadow: var(--shadow-strong);
}

.hero-copy-store::after {
  content: "";
  position: absolute;
  right: -72px;
  bottom: -86px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.32), transparent 64%);
  pointer-events: none;
}

.hero-kicker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hero-copy-store .eyebrow {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
}

.hero-sale-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy-store h1 {
  max-width: 10ch;
  color: #fff;
}

.hero-copy-store .hero-text {
  color: rgba(255, 255, 255, 0.84);
  max-width: 58ch;
}

.hero-copy-store .hero-search {
  margin-top: 26px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-copy-store .hero-search input {
  border: none;
  background: rgba(255, 255, 255, 0.96);
}

.hero-copy-store .btn-secondary {
  background: #fff;
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--brand-blue-deep);
}

.hero-copy-store .btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
}

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

.hero-signal-card {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-signal-card strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

.hero-signal-card span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.58;
}

.hero-panel-store {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.94));
}

.hero-panel-store h2 {
  max-width: 12ch;
}

.quick-lane-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.quick-lane-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #fff, #f5f8ff);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.quick-lane-card:hover {
  transform: translateY(-2px);
  border-color: rgba(33, 85, 245, 0.18);
  box-shadow: 0 18px 34px rgba(33, 85, 245, 0.12);
}

.quick-lane-card strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

.quick-lane-card span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.trust-item {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #f6f9ff);
  color: var(--brand-blue-deep);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  box-shadow: 0 12px 28px rgba(20, 34, 76, 0.06);
}

.merch-story-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fff, #fbfdff);
}

.merch-story-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-blue), var(--accent));
}

.merch-story-card h3 {
  max-width: 14ch;
}

.metrics-grid {
  gap: 16px;
}

.metric-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fff, #f7faff);
  border-color: rgba(33, 85, 245, 0.08);
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-blue), var(--accent));
}

.metric-label {
  color: #7d8596;
  font-size: 0.76rem;
}

.metric-card strong {
  font-size: 1.8rem;
}

.section-head {
  align-items: center;
  margin-bottom: 22px;
}

.text-link {
  color: var(--brand-blue-deep);
  font-weight: 800;
}

.category-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 20px;
  align-items: stretch;
}

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

.category-tile {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: 0 14px 36px rgba(20, 34, 76, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(33, 85, 245, 0.16);
  box-shadow: 0 18px 40px rgba(20, 34, 76, 0.1);
}

.category-tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(33, 85, 245, 0.12), rgba(255, 90, 54, 0.16));
  color: var(--brand-blue-deep);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.category-tile-title {
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  line-height: 1.35;
}

.category-tile-note {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.merch-banner {
  display: grid;
  align-content: space-between;
  gap: 18px;
  background: linear-gradient(160deg, #fff7ef 0%, #fff 52%, #eef4ff 100%);
  border-color: rgba(255, 90, 54, 0.16);
}

.merch-banner h3 {
  max-width: 12ch;
}

.merch-banner p {
  margin: 0;
}

.product-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(20, 34, 76, 0.08);
}

.product-media-wrap {
  position: relative;
  padding: 14px 14px 0;
}

.product-media {
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  background: linear-gradient(180deg, #eef3fb, #f9fbff);
}

.product-media-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--brand-blue-deep);
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 700;
}

.product-badge-row {
  position: absolute;
  top: 26px;
  left: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.product-badge--accent {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
}

.product-body {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin-top: 0;
  padding: 16px 18px 18px;
  align-content: start;
}

.product-caption-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.product-kicker,
.product-id {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-kicker {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--brand-blue-deep);
}

.product-id {
  flex: 0 0 auto;
  color: #8a94a6;
}

.product-title {
  min-width: 0;
  min-height: 2.8em;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.4;
}

.product-title a {
  display: -webkit-box;
  overflow: hidden;
  color: inherit;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-subtitle {
  margin: 0;
  min-height: 3.2em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.product-price {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-price-note {
  flex: 0 0 auto;
  max-width: 44%;
  color: var(--success);
  font-size: 0.84rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-feature-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f4f7fc;
  color: #566173;
  font-size: 0.82rem;
  font-weight: 700;
}

.product-action-row {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.product-action-row .btn {
  flex: 1;
}

.factory-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: #fff;
}

.factory-card-head {
  align-items: flex-start;
}

.factory-logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(33, 85, 245, 0.12), rgba(255, 90, 54, 0.12));
}

.factory-copy {
  margin: 14px 0 0;
}

.factory-tags {
  margin-top: 14px;
}

.factory-tag {
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #f4f7fc;
  color: #4f5b70;
}

.factory-signal-card {
  background: #f8fbff;
}

.factory-actions {
  margin-top: auto;
  padding-top: 16px;
}

.process-card {
  background: linear-gradient(180deg, #fff, #f7faff);
}

.step-badge {
  background: rgba(33, 85, 245, 0.1);
  color: var(--brand-blue-deep);
}

.section-emphasis {
  padding-top: 44px;
}

.brief-copy h2,
.catalog-hero-copy h1,
.factory-hero-copy h1 {
  max-width: 12ch;
}

.brief-form {
  background: linear-gradient(180deg, #fff, #fbfdff);
}

.catalog-hero-copy,
.factory-hero-copy {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98) 0%, rgba(242, 247, 255, 0.94) 100%);
}

.catalog-hero-panel,
.factory-hero-panel,
.catalog-support-card,
.factory-support-card,
.catalog-state-bar,
.factory-state-bar,
.detail-gallery,
.detail-summary,
.detail-support-card,
.rich-copy,
.account-panel,
.inbox-sidebar,
.inbox-panel,
.auth-card,
.auth-copy {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 255, 0.96));
}

.detail-price {
  color: var(--accent-strong);
}

.site-footer {
  margin-top: 34px;
  padding: 28px 30px;
  border-radius: 28px;
  background: linear-gradient(135deg, #0f1b33, #16284a);
  color: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-strong);
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body[data-page='home'] {
  background: #f5f5f5;
}

body[data-page='catalog'],
body[data-page='detail'],
body[data-page='factories'],
body[data-page='account'],
body[data-page='inbox'],
body[data-page='login'],
body[data-page='register'] {
  background: #f5f5f5;
}

body[data-page='home']::before {
  display: none;
}

body[data-page='catalog']::before,
body[data-page='detail']::before,
body[data-page='factories']::before,
body[data-page='account']::before,
body[data-page='inbox']::before,
body[data-page='login']::before,
body[data-page='register']::before {
  display: none;
}

.site-shell.market-shell {
  width: min(1380px, calc(100vw - 32px));
}

body[data-page='home'] .site-shell.market-shell {
  padding-bottom: 54px;
}

.market-home-shell {
  min-height: 100vh;
}

.market-topbar {
  background: #141414;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.84rem;
}

.market-topbar-inner {
  width: min(1380px, calc(100vw - 32px));
  margin: 0 auto;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.market-topbar-copy,
.market-topbar-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.market-topbar-copy span::before {
  content: "\2713";
  display: inline-block;
  margin-right: 8px;
  color: var(--accent-gold);
  font-size: 0.9rem;
}

.market-topbar-links a {
  color: rgba(255, 255, 255, 0.86);
}

.market-header {
  margin-top: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  position: static;
}

.market-header-main {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 84px;
  padding: 0 10px;
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.market-brand {
  min-width: 0;
}

.market-brand .brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  box-shadow: none;
}

.market-brand .brand-text strong {
  font-size: 1.42rem;
}

.market-brand .brand-text small {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.market-classification-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #f8f8f8;
  color: #1f2937;
  font-weight: 700;
}

.market-search {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 120px;
  align-items: center;
  gap: 0;
  min-width: 0;
  border: 2px solid #171717;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.market-search select,
.market-search input {
  border: none;
  border-radius: 0;
  background: #fff;
  min-height: 56px;
  padding: 0 18px;
}

.market-search select {
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  font-weight: 700;
  color: #111827;
  appearance: none;
}

.market-search input {
  min-width: 0;
}

.market-search-btn {
  min-height: 56px;
  border: none;
  background: #171717;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.market-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.market-header-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #111827;
  font-weight: 700;
}

.market-actions .auth-slot-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.market-actions .auth-pill {
  min-height: 40px;
  background: #f5f6fb;
  border-color: rgba(15, 23, 42, 0.08);
  color: #111827;
}

.market-actions [data-auth-logout] {
  min-height: 40px;
}

.market-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 26px;
  min-height: 56px;
  padding: 0 10px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.market-nav a {
  color: #111827;
  font-weight: 700;
  position: relative;
}

.market-nav a.is-active,
.market-nav a:hover {
  color: var(--accent-strong);
}

.market-main {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.market-hero-section {
  position: relative;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: stretch;
}

.market-side-cats {
  padding: 0;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}

.market-side-cats-head {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.market-side-cats-list {
  display: grid;
}

.market-side-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 54px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  color: #1f2937;
  font-weight: 600;
}

.market-side-cat-item:hover {
  background: #fff4ef;
  color: var(--accent-strong);
}

.market-side-cat-item-viewall {
  font-weight: 800;
}

.market-side-cat-arrow {
  color: #9ca3af;
}

.market-cat-tier-popover {
  position: absolute;
  top: 0;
  width: auto;
  padding: 14px 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
  z-index: 25;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.market-cat-tier-popover.is-open {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.market-cat-tier2,
.market-cat-tier3 {
  left: 0;
}

.market-cat-tier-title {
  flex: 0 0 auto;
  margin-bottom: 8px;
  color: #111827;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.market-cat-tier-list {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 0 4px 0 0;
  list-style: none;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.market-cat-tier-list::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.market-cat-tier-list li {
  padding: 10px 12px;
  border-radius: 12px;
  color: #334155;
  font-size: 0.92rem;
  font-weight: 600;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.market-cat-tier-list li:hover {
  background: #fff4ef;
  color: var(--accent-strong);
}

.market-cat-tier-list li a {
  display: block;
  color: inherit;
}

.market-cat-tier-list li.is-empty {
  color: #94a3b8;
  font-weight: 600;
}

.market-cat-tier-list li.is-empty:hover {
  background: transparent;
  color: #94a3b8;
}

.market-cat-tier3 .market-cat-tier-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
  overflow-x: hidden;
  justify-content: flex-start;
}

.market-cat-tier3 .market-cat-tier-list li {
  padding: 8px 12px;
  border: 1px solid rgba(237, 122, 52, 0.16);
  background: rgba(237, 122, 52, 0.08);
  font-size: 0.84rem;
}

.market-cat-tier3 .market-cat-tier-list li:hover {
  border-color: rgba(216, 97, 24, 0.28);
  background: rgba(237, 122, 52, 0.14);
}

.market-cat-tier3 .market-cat-tier-list li a {
  max-width: 220px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-hero-center {
  display: grid;
  gap: 16px;
}

.market-hero-stage {
  --market-hero-stage-bg:
    radial-gradient(circle at 85% 18%, rgba(255, 255, 255, 0.28), transparent 22%),
    radial-gradient(circle at 22% 72%, rgba(255, 255, 255, 0.18), transparent 26%),
    linear-gradient(135deg, #ff8f70 0%, #ff5f5f 30%, #ff4da0 65%, #ff9f7d 100%);
  --market-hero-stage-shadow: 0 22px 50px rgba(255, 90, 84, 0.22);
  position: relative;
  min-height: 420px;
  border-radius: 20px;
  padding: 34px 34px 26px;
  overflow: hidden;
  background: var(--market-hero-stage-bg);
  color: #fff;
  box-shadow: var(--market-hero-stage-shadow);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.market-hero-stage::after {
  content: "";
  position: absolute;
  inset: auto -60px -90px auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.24), transparent 70%);
}

.market-hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.market-hero-arrow.is-prev {
  left: 16px;
}

.market-hero-arrow.is-next {
  right: 16px;
}

.market-hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.68fr);
  gap: 24px;
  align-items: center;
  min-height: 350px;
  padding-bottom: 136px;
}

.market-hero-copy {
  position: relative;
  z-index: 1;
  max-width: none;
  min-width: 0;
}

.market-hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.market-hero-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.market-hero-chip-accent {
  background: rgba(17, 24, 39, 0.2);
}

.market-hero-copy h1 {
  margin: 0;
  max-width: 11ch;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.6rem, 4vw, 4.3rem);
  line-height: 0.96;
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-height: 1.92em;
}

.market-hero-copy p {
  margin: 16px 0 0;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  line-height: 1.7;
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-height: 3.4em;
}

.market-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.market-hero-visual {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  align-self: stretch;
  min-width: 0;
}

.market-hero-visual-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(10px);
}

.market-hero-visual-frame::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px 18px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.44));
  pointer-events: none;
}

.market-hero-visual-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.market-hero-visual-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 110px;
  border-radius: 30px;
  background: rgba(15, 23, 42, 0.2);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.market-hero-visual-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.42);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.market-hero-visual-copy {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.market-hero-visual-title {
  display: -webkit-box;
  overflow: hidden;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  line-height: 1.18;
  color: #fff;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.market-hero-visual-note {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  line-height: 1.55;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.market-hero-visual-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.market-hero-visual-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.market-hero-actions .btn-primary {
  background: #171717;
  box-shadow: none;
}

.market-hero-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: #111827;
}

.market-hero-ribbon {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.market-hero-dots {
  position: absolute;
  left: 34px;
  bottom: 116px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}

.market-hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, width 0.2s ease;
}

.market-hero-dot.is-active {
  width: 28px;
  background: #fff;
}

.market-mini-stat {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.market-mini-stat strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
}

.market-mini-stat span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.84rem;
  line-height: 1.45;
}

.market-promo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 122px;
  padding: 22px 26px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 14% 20%, rgba(255, 255, 255, 0.32), transparent 22%),
    linear-gradient(135deg, #ff7a95 0%, #ff8bc0 45%, #ffd0e3 100%);
  color: #fff;
}

.market-promo-banner strong {
  display: block;
  margin-top: 6px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  line-height: 1.08;
}

.market-promo-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.market-promo-banner a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-weight: 800;
  white-space: nowrap;
}

.market-hero-side {
  display: grid;
  gap: 14px;
}

.market-side-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.market-side-card-tag {
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.market-side-card h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
}

.market-side-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.market-side-card-accent {
  background: linear-gradient(180deg, #fff7f1, #ffffff);
}

.market-side-card a {
  color: var(--brand-blue-deep);
  font-weight: 800;
}

.market-floor {
  display: grid;
  gap: 18px;
  padding: 26px 0 2px;
}

.market-floor-head,
.market-floor-head-side {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.market-floor-kicker {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.market-floor-head h2,
.market-floor-head-side h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.65rem, 2vw, 2.3rem);
}

.market-countdown {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4b5563;
  font-weight: 700;
}

.market-countdown strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border-radius: 12px;
  background: #171717;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
}

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

.market-deal-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.market-deal-media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 0.96;
  background: linear-gradient(180deg, #f2f4f8, #ffffff);
  overflow: hidden;
}

.market-deal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.market-deal-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--brand-blue-deep);
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 700;
}

.market-deal-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  background: linear-gradient(135deg, #ff7b1d, #ff4424);
  color: #fff;
  font-weight: 800;
}

.market-deal-strip small {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.market-deal-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.market-deal-meta {
  color: #9ca3af;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.market-deal-body h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.42;
}

.market-deal-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.52;
  min-height: 42px;
}

.market-deal-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: auto;
}

.market-deal-price-row strong {
  color: #111827;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.45rem;
}

.market-deal-price-row span {
  color: #9ca3af;
  text-decoration: line-through;
  font-size: 0.9rem;
}

.market-deal-action-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.market-deal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff4c2b, #ff1f4f);
  color: #fff;
  font-weight: 800;
}

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

.market-floor-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

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

.market-showcase-grid .product-card {
  min-height: 100%;
}

.market-floor-side {
  display: grid;
  gap: 14px;
}

.market-factory-stack {
  display: grid;
  gap: 14px;
}

.market-booth-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.market-booth-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.market-booth-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(33, 85, 245, 0.12), rgba(255, 90, 54, 0.12));
  overflow: hidden;
  color: var(--brand-blue-deep);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.market-booth-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.market-booth-copywrap {
  min-width: 0;
}

.market-booth-copywrap h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.market-booth-copywrap span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.market-booth-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.market-booth-link {
  color: var(--brand-blue-deep);
  font-weight: 800;
}

.market-rfq-floor {
  padding-top: 34px;
}

.market-footer {
  margin-top: 34px;
}

.market-inner-page {
  padding-bottom: 54px;
}

.market-page-main {
  display: grid;
  gap: 24px;
  margin-top: 18px;
}

.market-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: stretch;
}

.market-page-hero-side {
  display: grid;
  gap: 18px;
  align-content: start;
}

.market-page-hero-main {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border-radius: 26px;
  color: #fff;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.14);
}

.market-page-hero-main::after,
.market-auth-copy::after {
  content: "";
  position: absolute;
  inset: auto -90px -110px auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 70%);
}

.market-page-hero-main > *,
.market-auth-copy > * {
  position: relative;
  z-index: 1;
}

.market-page-hero-catalog .market-page-hero-main {
  background:
    radial-gradient(circle at 14% 22%, rgba(255, 255, 255, 0.24), transparent 22%),
    linear-gradient(135deg, #ff6a3d 0%, #ff8e3d 42%, #ffb15e 100%);
}

.market-page-hero-factory .market-page-hero-main {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.22), transparent 22%),
    linear-gradient(135deg, #0f766e 0%, #2563eb 56%, #5da9ff 100%);
}

.market-page-hero-detail .market-page-hero-main {
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.18), transparent 18%),
    linear-gradient(135deg, #111827 0%, #1d4ed8 52%, #ff7b1d 100%);
}

.market-page-hero-account .market-page-hero-main {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.16), transparent 18%),
    linear-gradient(135deg, #0f172a 0%, #1d4ed8 52%, #38bdf8 100%);
}

.market-page-hero-inbox .market-page-hero-main {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.18), transparent 18%),
    linear-gradient(135deg, #0f766e 0%, #2563eb 52%, #22c55e 100%);
}

.market-page-hero-utility {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.market-crumb-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 700;
}

.market-page-hero-main h1,
.market-auth-copy h1 {
  margin: 0;
  max-width: 12ch;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.5rem, 3.8vw, 4.2rem);
  line-height: 0.96;
}

.market-page-hero-subtitle {
  margin: 14px 0 0;
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.03rem;
  font-weight: 600;
  line-height: 1.65;
}

.market-page-hero-note {
  margin: 16px 0 0;
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.72;
}

.market-page-hero-note-wide {
  max-width: 68ch;
}

.market-page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.market-page-hero-main .btn-primary {
  background: #171717;
  box-shadow: none;
}

.market-page-hero-main .btn-secondary {
  background: rgba(255, 255, 255, 0.94);
  border-color: transparent;
  color: #111827;
}

.market-page-hero-main .btn-ghost {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.market-page-hero-main .pill,
.market-page-hero-main .detail-specs div {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.market-page-hero-main .detail-specs dt {
  color: rgba(255, 255, 255, 0.72);
}

.market-page-hero-main .detail-specs dd,
.market-page-hero-main .detail-action-note {
  color: #fff;
}

.market-page-toolbar-wrap {
  display: grid;
  gap: 16px;
}

.market-toolbar-card {
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.market-toolbar-card select {
  flex: 0 0 220px;
  max-width: 220px;
}

.market-state-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 20px 22px;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.market-state-bar .eyebrow {
  margin-bottom: 8px;
}

.catalog-state-copy strong,
.factory-state-copy strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.18rem;
  color: #111827;
}

.catalog-state-copy .page-text,
.factory-state-copy .page-text {
  margin: 10px 0 0;
}

.catalog-state-chips,
.factory-state-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.catalog-state-count,
.factory-state-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  background: #171717;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  white-space: nowrap;
}

.market-page-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.market-page-grid-wide,
.market-page-grid-account {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.market-side-panel {
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.market-side-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.market-side-panel-copy {
  max-width: 26ch;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.62;
}

.market-side-panel-body {
  padding: 18px 18px 20px;
  background: linear-gradient(180deg, #fcfbf8 0%, #ffffff 100%);
}

.market-side-panel-body-stack {
  display: grid;
  gap: 14px;
}

.market-category-nav-panel .market-side-panel-body {
  padding-top: 22px;
  padding-bottom: 24px;
}

.market-category-nav-panel .market-side-panel-body-stack {
  gap: 18px;
}

.market-side-panel-body-stack .market-side-card {
  box-shadow: none;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: linear-gradient(180deg, #fbfcff, #ffffff);
}

.market-pill-column {
  display: grid;
  gap: 10px;
}

.market-pill-column .pill {
  justify-content: flex-start;
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  background: #f7f7fb;
  border-color: rgba(15, 23, 42, 0.08);
  color: #111827;
}

.market-category-filter-section {
  display: grid;
  gap: 14px;
}

.market-category-nav-panel .market-category-filter-section {
  padding-block: 4px 6px;
}

.market-category-filter-section.is-horizontal {
  gap: 12px;
}

.market-catalog-sublevel-panel .market-category-filter-section.is-horizontal {
  padding-block: 2px 4px;
}

.market-category-filter-head {
  display: grid;
  gap: 6px;
}

.market-category-filter-label {
  color: #6b7785;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.market-category-filter-note {
  color: #6f7b88;
  font-size: 0.85rem;
  line-height: 1.55;
}

.market-category-search {
  display: grid;
}

.market-category-search input {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(16, 40, 60, 0.08);
  background: rgba(255, 255, 255, 0.96);
  color: #223244;
  font-size: 0.9rem;
  box-shadow: none;
}

.market-category-search input::placeholder {
  color: #8a95a3;
}

.market-category-search-empty {
  margin: -2px 0 0;
  color: #7b8796;
  font-size: 0.82rem;
  line-height: 1.5;
}

.market-category-pill-column {
  display: grid;
  gap: 8px;
  max-height: 270px;
  padding-top: 4px;
  padding-right: 2px;
  padding-bottom: 6px;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.market-category-filter-section.is-primary .market-category-pill-column {
  max-height: 520px;
  padding-top: 8px;
  padding-right: 6px;
  padding-bottom: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(28, 45, 66, 0.26) transparent;
}

.market-category-filter-section.is-primary .market-category-pill-column::-webkit-scrollbar {
  width: 8px;
}

.market-category-filter-section.is-primary .market-category-pill-column::-webkit-scrollbar-track {
  background: transparent;
}

.market-category-filter-section.is-primary .market-category-pill-column::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(28, 45, 66, 0.22);
}

.market-category-filter-section.is-primary .market-category-pill-column::-webkit-scrollbar-thumb:hover {
  background: rgba(28, 45, 66, 0.34);
}

.market-category-pill-column::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.market-category-pill-column .pill {
  justify-content: flex-start;
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  background: transparent;
  border-color: transparent;
  color: #223244;
  text-align: left;
  font-weight: 600;
  box-shadow: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.market-category-pill-column .pill:hover {
  background: #f4f1ea;
  border-color: rgba(15, 23, 42, 0.06);
  color: #111827;
}

.market-category-pill-column .pill.is-active {
  background: #f1ece3;
  border-color: rgba(15, 23, 42, 0.08);
  color: #111827;
  box-shadow: inset 3px 0 0 #1c2d42;
}

.market-catalog-sublevel-panel {
  display: grid;
  gap: 24px;
  margin-bottom: 20px;
  padding: 28px 24px 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.market-catalog-sublevel-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: end;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.market-catalog-sublevel-head .eyebrow {
  margin-bottom: 8px;
}

.market-catalog-sublevel-head h3 {
  font-size: 1.12rem;
  line-height: 1.2;
}

.market-catalog-sublevel-copy {
  max-width: 48ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
  justify-self: end;
  text-align: right;
}

.market-category-pill-row-wrap {
  display: grid;
  gap: 12px;
}

.market-category-pill-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
}

.market-category-pill-row.is-collapsed {
  max-height: 94px;
  overflow: hidden;
}

.market-category-pill-row.is-collapsed::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff 82%);
  pointer-events: none;
}

.market-category-pill-row .pill {
  width: auto;
  max-width: 100%;
  min-height: 40px;
  padding: 0 15px;
  justify-content: center;
  border-radius: 12px;
  text-align: center;
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(16, 40, 60, 0.1);
  color: #223244;
  font-weight: 600;
  box-shadow: none;
}

.market-category-pill-row .pill:hover {
  background: #f7f5f0;
  border-color: rgba(16, 40, 60, 0.16);
}

.market-category-pill-row .pill.is-active {
  background: #1c2d42;
  border-color: #1c2d42;
  color: #ffffff;
}

.market-category-filter-toggle {
  justify-self: flex-end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #647282;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.18s ease;
}

.market-category-filter-toggle:hover {
  background: transparent;
  color: #111827;
  transform: none;
}

.market-list-panel,
.market-account-core {
  min-width: 0;
}

.market-list-panel {
  display: grid;
  gap: 18px;
}

.market-category-nav-panel {
  position: static;
  top: auto;
}

.market-catalog-sublevel-panel > .market-category-filter-section.is-horizontal + .market-category-filter-section.is-horizontal {
  margin-top: 2px;
  padding-top: 22px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

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

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

.market-metric-strip .metric-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.market-detail-price-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: end;
  margin-top: 24px;
}

.market-detail-price-box {
  display: grid;
  gap: 8px;
  min-width: 210px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.market-detail-price-box span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.market-detail-price-box .detail-price {
  margin: 0;
  color: #fff;
}

.market-detail-moq {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 600;
}

.market-detail-moq strong {
  margin-left: 8px;
  color: #fff;
  font-size: 1rem;
}

.market-detail-action-note {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.84);
}

.market-detail-specs {
  margin-top: 20px;
}

.market-detail-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.market-detail-gallery,
.market-detail-supplier-panel,
.market-rich-copy,
.market-inbox-sidebar,
.market-inbox-panel,
.market-auth-card {
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.market-detail-rail {
  display: grid;
  gap: 18px;
}

.market-detail-panel-head {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.market-detail-support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.market-inbox-stage {
  padding-top: 0;
}

.market-inbox-layout {
  align-items: stretch;
}

.market-inbox-sidebar,
.market-inbox-panel {
  min-height: 720px;
}

.market-inbox-sidebar .market-toolbar-card {
  margin-top: 0;
}

.inbox-thread-list {
  max-height: 560px;
  overflow-y: auto;
}

.market-auth-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 20px;
  align-items: stretch;
}

.market-auth-copy {
  position: relative;
  overflow: hidden;
  padding: 38px;
  border-radius: 28px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 255, 255, 0.18), transparent 20%),
    linear-gradient(135deg, #111827 0%, #1d4ed8 52%, #ff7b1d 100%);
  color: #fff;
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.16);
}

.market-auth-copy .market-floor-kicker {
  color: rgba(255, 255, 255, 0.72);
}

.market-auth-copy p {
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.72;
}

.market-auth-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.market-auth-benefit {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.market-auth-benefit strong {
  display: block;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

.market-auth-benefit span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.62;
}

.market-auth-card-head {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.market-auth-card-kicker {
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.market-auth-note-card {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.market-auth-note-card strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

.market-auth-note-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 1200px) {
  .market-header-main {
    grid-template-columns: 1fr;
    justify-items: stretch;
    padding: 18px 0;
  }

  .market-hero-section,
  .market-floor-split,
  .market-page-hero,
  .market-page-grid,
  .market-page-grid-wide,
  .market-page-grid-account,
  .market-detail-stage,
  .market-auth-stage {
    grid-template-columns: 1fr;
  }

  .market-hero-center {
    order: 1;
  }

  .market-hero-layout {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 0;
  }

  .market-hero-visual {
    max-width: 460px;
  }

  .market-side-cats,
  .market-hero-side {
    order: 2;
  }

  .market-cat-tier-popover {
    display: none !important;
  }

  .market-category-nav-panel {
    position: static;
    top: auto;
  }

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

  .market-hero-ribbon,
  .market-factory-grid,
  .market-detail-support-grid,
  .market-auth-note-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-state-bar,
  .market-detail-price-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body[data-page='home'] .site-shell.market-shell,
  .market-topbar-inner {
    width: min(1380px, calc(100vw - 20px));
  }

  .market-topbar-inner,
  .market-topbar-copy,
  .market-topbar-links,
  .market-nav,
  .market-hero-actions,
  .market-countdown,
  .market-page-hero-actions,
  .market-page-hero-utility {
    flex-direction: column;
    align-items: stretch;
  }

  .market-nav {
    gap: 14px;
    padding: 14px 0;
  }

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

  .market-hero-copy {
    max-width: none;
  }

  .market-hero-copy h1,
  .market-page-hero-main h1,
  .market-auth-copy h1 {
    max-width: none;
    font-size: 2.4rem;
  }

  .market-hero-stage {
    padding: 28px 22px 22px;
  }

  .market-hero-arrow {
    display: none;
  }

  .market-hero-ribbon {
    position: static;
    margin-top: 22px;
  }

  .market-hero-dots {
    position: static;
    margin-top: 18px;
  }

  .market-hero-visual {
    max-width: none;
  }

  .market-hero-visual-frame {
    min-height: 240px;
  }

  .market-deal-grid,
  .market-category-grid,
  .market-showcase-grid,
  .market-hero-ribbon,
  .market-product-grid,
  .market-factory-grid,
  .market-detail-support-grid,
  .market-auth-note-grid,
  .market-auth-benefits {
    grid-template-columns: 1fr;
  }

  .market-promo-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .market-toolbar-card select {
    flex-basis: auto;
    max-width: none;
  }

  .market-catalog-sublevel-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .market-catalog-sublevel-copy {
    justify-self: start;
    text-align: left;
  }

  .market-state-bar,
  .catalog-state-chips,
  .factory-state-chips {
    grid-template-columns: 1fr;
  }

  .catalog-state-count,
  .factory-state-count {
    width: 100%;
  }

  .market-detail-price-box {
    min-width: 0;
  }

  .market-auth-copy,
  .market-page-hero-main {
    padding: 28px 24px;
  }

  .market-inbox-sidebar,
  .market-inbox-panel {
    min-height: auto;
  }

  .inbox-thread-list {
    max-height: none;
  }
}

@media (max-width: 980px) {
  .buyer-chat-panel {
    right: 12px;
    bottom: 86px;
    width: calc(100vw - 24px);
    height: calc(100vh - 104px);
    border-radius: 24px;
  }

  .buyer-chat-panel.is-open {
    grid-template-columns: 1fr;
  }

  .buyer-chat-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(16, 37, 60, 0.08);
    max-height: 240px;
  }

  .buyer-chat-head-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 1100px) {
  .hero-section,
  .catalog-hero,
  .catalog-filter-layout,
  .factory-hero,
  .factory-filter-layout,
  .brief-layout,
  .detail-layout,
  .detail-support-grid,
  .auth-main,
  .account-grid,
  .inbox-layout {
    grid-template-columns: 1fr;
  }

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

  .buyer-fit-grid,
  .product-grid,
  .hero-signal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .factory-signal-grid,
  .factory-grid,
  .category-grid,
  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-showcase {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(var(--container), calc(100vw - 20px));
  }

  .site-header,
  .site-nav,
  .site-actions,
  .hero-search,
  .toolbar,
  .field-row-two,
  .field-row-submit,
  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav,
  .site-actions {
    gap: 10px;
  }

  .site-header {
    position: static;
    border-radius: 22px;
  }

  .trust-strip,
  .buyer-fit-grid,
  .metrics-grid,
  .product-grid,
  .factory-grid,
  .factory-signal-grid,
  .hero-proof-grid,
  .hero-signal-grid,
  .quick-lane-grid,
  .category-grid,
  .process-grid,
  .detail-support-grid,
  .detail-specs,
  .supplier-brief-grid,
  .account-details,
  .account-thread-preview {
    grid-template-columns: 1fr;
  }

  .account-hero,
  .account-actions,
  .auth-slot-row,
  .detail-topbar,
  .inbox-sidebar-tools,
  .inbox-thread-card-top,
  .inbox-thread-card-meta,
  .message-card-head {
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-state-bar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .factory-state-bar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .catalog-state-count {
    justify-self: start;
  }

  .factory-state-count {
    justify-self: start;
  }

  .market-strip,
  .hero-kicker-row,
  .product-action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-copy,
  .hero-panel,
  .card,
  .auth-panel {
    padding: 22px;
  }

  h1 {
    max-width: none;
    font-size: 2.5rem;
  }

  .detail-cover {
    min-height: 280px;
  }

  .buyer-chat-launcher {
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
  }

  .buyer-chat-panel {
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }
}
