/**
 * Platform brand chrome — sizes that must work even if Tailwind CDN fails.
 */
.rf-brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  max-width: 100%;
}
.rf-brand-logo-wrap.is-light {
  background: #fff;
  border-radius: 0.5rem;
  padding: 0.2rem 0.45rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}
.rf-brand-logo {
  display: block;
  height: 2.25rem; /* 36px */
  width: auto;
  max-width: 10rem; /* 160px */
  object-fit: contain;
}
.rf-brand-logo--sm {
  height: 2rem;
  max-width: 8.75rem;
}
.rf-brand-logo--md {
  height: 2.5rem;
  max-width: 11rem;
}
.rf-brand-logo--lg {
  height: 3rem;
  max-width: 13rem;
}

/* Marketplace shell fallbacks when utility CSS is unavailable */
.rf-mp-shell {
  color: #e2e8f0;
}
.rf-mp-shell a {
  color: #6ee7b7;
}
.rf-mp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(16, 185, 129, 0.12);
  background: rgba(2, 6, 23, 0.94);
  backdrop-filter: blur(10px);
}
.rf-mp-header-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.375rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
}
@media (min-width: 640px) {
  .rf-mp-header-inner { padding-left: 1.5rem; padding-right: 1.5rem; }
}
.rf-mp-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.rf-mp-brand-copy {
  min-width: 0;
}
.rf-mp-brand-title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
}
.rf-mp-brand-sub {
  margin: 0.05rem 0 0;
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(52, 211, 153, 0.85);
  line-height: 1.2;
}
.rf-mp-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.125rem;
  font-size: 0.75rem;
  font-weight: 600;
}
@media (min-width: 640px) {
  .rf-mp-nav { font-size: 0.8125rem; }
}
.rf-mp-nav a {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  text-decoration: none;
  color: #cbd5e1;
  border: 1px solid transparent;
}
.rf-mp-nav a:hover {
  color: #6ee7b7;
  background: rgba(30, 41, 59, 0.8);
}
.rf-mp-nav a.is-active {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
}
.rf-mp-nav a.rf-mp-cta {
  margin-left: 0.25rem;
  background: #10b981;
  color: #020617;
  font-weight: 700;
}
.rf-mp-nav a.rf-mp-cta:hover {
  background: #34d399;
  color: #020617;
}
.rf-mp-nav .rf-mp-user {
  margin-left: 0.35rem;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
  padding: 0 0.35rem;
}
@media (min-width: 1024px) {
  .rf-mp-nav .rf-mp-user { display: flex; }
}
.rf-mp-nav .rf-mp-user strong {
  font-size: 0.6875rem;
  color: #fff;
  font-weight: 600;
}
.rf-mp-nav .rf-mp-user span {
  font-size: 0.5625rem;
  color: rgba(52, 211, 153, 0.9);
}

/* Contributor workspace — denser page chrome shared by all /app + facilitator pages */
.rf-mp-workspace main {
  padding-top: 1rem !important;
  padding-bottom: 1.5rem !important;
}
.rf-mp-workspace main > h1:first-of-type,
.rf-mp-workspace main > .rf-mp-page-head h1 {
  margin: 0 !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: #fff !important;
}
.rf-mp-workspace main > h1:first-of-type + p,
.rf-mp-workspace main > .rf-mp-page-head > p {
  margin: 0.25rem 0 0 !important;
  font-size: 0.8125rem !important;
  line-height: 1.35 !important;
  color: #94a3b8 !important;
  max-width: 42rem;
}
.rf-mp-page-head {
  margin-bottom: 0.5rem;
}
.rf-mp-workspace main > h1.mt-6 {
  margin-top: 0.75rem !important;
}
.rf-mp-module-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  margin: 0.5rem 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.rf-mp-workspace main .rf-mp-module-nav a {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 0.375rem;
  border: 1px solid #1e293b;
  color: #94a3b8;
  text-decoration: none;
  line-height: 1.25;
  white-space: nowrap;
}
.rf-mp-workspace main .rf-mp-module-nav a:hover {
  color: #fff;
  border-color: #334155;
}
.rf-mp-workspace main .rf-mp-module-nav a.is-active {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
}
.rf-mp-stat-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
@media (min-width: 1024px) {
  .rf-mp-stat-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.rf-mp-stat-strip > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid #1e293b;
  background: rgba(15, 23, 42, 0.55);
  padding: 0.4rem 0.65rem;
}
.rf-mp-stat-strip > div p:first-child {
  margin: 0;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  line-height: 1.2;
}
.rf-mp-stat-strip > div p:last-child {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}
.rf-mp-stat-strip > div p.text-amber-300 { color: #fcd34d; }
.rf-mp-stat-strip > div p.text-emerald-400 { color: #34d399; }
.rf-google-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  display: block;
}
.rf-google-signin {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #334155;
  background: #fff;
  color: #0f172a;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.65rem 1rem;
  text-decoration: none;
  box-sizing: border-box;
}
.rf-google-signin:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* Retailer inventory workspace — override marketplace-layout full-width form chrome */
.rf-inv-workspace main input[type="text"],
.rf-inv-workspace main input[type="search"],
.rf-inv-workspace main input[type="number"] {
  display: inline-block;
  width: auto;
  margin: 0;
  max-width: 100%;
}
.rf-inv-workspace #inv-search {
  display: block;
  width: 100%;
}
.rf-inv-workspace main button[type="submit"] {
  display: inline-block;
  width: auto;
  margin-top: 0;
}
.rf-inv-table-wrap {
  overflow: auto;
  max-height: min(70vh, 52rem);
  border-radius: 0.75rem;
  border: 1px solid #1e293b;
}
.rf-inv-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #0f172a;
  box-shadow: 0 1px 0 #1e293b;
}
.rf-inv-thumb {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.5rem;
  object-fit: cover;
  background: #1e293b;
  flex-shrink: 0;
}
.rf-inv-thumb-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.5rem;
  background: #1e293b;
  border: 1px dashed #334155;
  color: #64748b;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.rf-inv-row.is-low td:first-child {
  box-shadow: inset 3px 0 0 #f59e0b;
}
.rf-inv-row.is-out td:first-child {
  box-shadow: inset 3px 0 0 #f87171;
}
.rf-inv-row.is-filtered-out {
  display: none;
}
