@import url('./guayaia-mercadia-room.css?v=20261123ux1');
/* guayaia-mercadia-exchange.css — MercadIA Trading & Order Book Terminal */
:root {
  --mex-bg: #0b0e14;
  --mex-bg-subtle: #0f141f;
  --mex-surface: #151b26;
  --mex-surface-hover: #1b2333;
  --mex-surface-card: #131924;
  --mex-border: #1f293a;
  --mex-border-light: #2b394f;
  --mex-text: #e6edf3;
  --mex-text-muted: #8b98a5;
  --mex-text-dim: #556577;
  --mex-green: #0ecb81;
  --mex-green-bg: rgba(14, 203, 129, 0.12);
  --mex-green-hover: #12e091;
  --mex-red: #f6465d;
  --mex-red-bg: rgba(246, 70, 93, 0.12);
  --mex-red-hover: #ff5c72;
  --mex-accent: #20bfe4;
  --mex-accent-deep: #087fa7;
  --mex-gold: #f0b90b;
  --mex-font-mono: 'SF Pro Text', 'Roboto Mono', ui-monospace, Menlo, Monaco, Consolas, monospace;
}

/* Acceso y botón desde Project Workspace */
.pws-mercadia-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  background: linear-gradient(135deg, #094537 0%, #087fa7 100%) !important;
  color: #ffffff !important;
  border: 1px solid #1be7ab66 !important;
  font-weight: 700 !important;
  padding: 8px 14px !important;
  border-radius: 9px !important;
  box-shadow: 0 4px 12px rgba(8, 127, 167, 0.25) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
}
.pws-mercadia-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(32, 191, 228, 0.35) !important;
  border-color: #20bfe4 !important;
}
.pws-mercadia-btn svg {
  color: #20bfe4 !important;
}

/* Banner destacado en la pestaña Materiales */
.mercadia-exchange-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, #091a24 0%, #0e2936 60%, #0c3629 100%);
  border: 1px solid #14596d;
  border-radius: 14px;
  padding: 20px 24px;
  margin: 0 0 24px 0;
  box-shadow: 0 8px 24px rgba(6, 26, 35, 0.25);
  position: relative;
  overflow: hidden;
}
.mercadia-exchange-cta-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: radial-gradient(circle at right center, rgba(32, 191, 228, 0.12), transparent 70%);
  pointer-events: none;
}
.mec-cta-left {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.mec-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(32, 191, 228, 0.15);
  border: 1px solid rgba(32, 191, 228, 0.35);
  color: #20bfe4;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 9px;
  border-radius: 99px;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.mercadia-exchange-cta-card h3 {
  margin: 0 0 6px 0;
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.2px;
}
.mercadia-exchange-cta-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #a4c4cf;
}
.pws-btn-mercadia {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0ecb81 0%, #087a55 100%) !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  padding: 12px 22px !important;
  border-radius: 10px !important;
  white-space: nowrap !important;
  box-shadow: 0 4px 16px rgba(14, 203, 129, 0.35) !important;
  cursor: pointer !important;
  transition: all 0.18s ease-out !important;
  position: relative;
  z-index: 1;
}
.pws-btn-mercadia:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(14, 203, 129, 0.5) !important;
}

/* =========================================================================
   MERCADIA EXCHANGE — VISTA COMPLETA / MODAL OVERLAY (ESTILO BINANCE)
   ========================================================================= */

#guayaiaMercadiaExchangeOverlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--mex-bg);
  color: var(--mex-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

#guayaiaMercadiaExchangeOverlay * {
  box-sizing: border-box;
}

/* TOP TICKER BAR */
.mex-header {
  height: 56px;
  background: var(--mex-surface);
  border-bottom: 1px solid var(--mex-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
  gap: 16px;
}
.mex-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.mex-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
}
.mex-brand-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--mex-gold), #e88d00);
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #0b0e14;
  font-weight: 900;
  font-size: 15px;
}
.mex-brand-text {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #ffffff;
}
.mex-brand-text span {
  color: var(--mex-gold);
}
.mex-badge-live {
  background: rgba(14, 203, 129, 0.15);
  color: var(--mex-green);
  border: 1px solid rgba(14, 203, 129, 0.3);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.mex-badge-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mex-green);
  box-shadow: 0 0 6px var(--mex-green);
  animation: mexPulse 1.8s infinite;
}
@keyframes mexPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* Pair selector dropdown */
.mex-pair-selector {
  position: relative;
}
.mex-pair-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--mex-surface-hover);
  border: 1px solid var(--mex-border-light);
  color: var(--mex-text);
  padding: 6px 12px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.mex-pair-btn:hover {
  border-color: var(--mex-accent);
}
.mex-ticker-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  overflow-x: auto;
  white-space: nowrap;
}
.mex-stat-item {
  display: flex;
  flex-direction: column;
}
.mex-stat-label {
  font-size: 10px;
  color: var(--mex-text-muted);
  text-transform: uppercase;
}
.mex-stat-val {
  font-family: var(--mex-font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--mex-text);
}
.mex-stat-val.up { color: var(--mex-green); }
.mex-stat-val.down { color: var(--mex-red); }

/* Header right */
.mex-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mex-project-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(32, 191, 228, 0.12);
  border: 1px solid rgba(32, 191, 228, 0.35);
  color: var(--mex-accent);
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}
.mex-btn-return {
  background: var(--mex-surface-hover);
  border: 1px solid var(--mex-border-light);
  color: var(--mex-text);
  padding: 6px 14px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}
.mex-btn-return:hover {
  background: #253147;
  color: #ffffff;
}
.mex-btn-close {
  background: transparent;
  border: none;
  color: var(--mex-text-muted);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: bold;
}
.mex-btn-close:hover {
  background: var(--mex-surface-hover);
  color: #ffffff;
}

/* PAIR DROPDOWN MENU */
.mex-pair-dropdown {
  position: absolute;
  top: 48px;
  left: 120px;
  z-index: 100000;
  width: 360px;
  background: var(--mex-surface);
  border: 1px solid var(--mex-border-light);
  border-radius: 10px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.65);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.mex-pair-dropdown.open {
  display: flex;
}
.mex-dropdown-search {
  padding: 10px 12px;
  border-bottom: 1px solid var(--mex-border);
}
.mex-dropdown-search input {
  width: 100%;
  background: var(--mex-bg-subtle);
  border: 1px solid var(--mex-border);
  color: #fff;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
  outline: none;
}
.mex-dropdown-categories {
  display: flex;
  gap: 4px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--mex-border);
  overflow-x: auto;
}
.mex-cat-chip {
  background: transparent;
  border: 1px solid transparent;
  color: var(--mex-text-muted);
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
}
.mex-cat-chip.active {
  background: var(--mex-surface-hover);
  color: var(--mex-gold);
  border-color: var(--mex-border-light);
  font-weight: 700;
}
.mex-pair-list {
  max-height: 320px;
  overflow-y: auto;
  padding: 4px 0;
}
.mex-pair-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  cursor: pointer;
  border-left: 2px solid transparent;
}
.mex-pair-row:hover {
  background: var(--mex-surface-hover);
  border-left-color: var(--mex-accent);
}
.mex-pair-row.selected {
  background: rgba(32, 191, 228, 0.08);
  border-left-color: var(--mex-gold);
}
.mex-pair-info-title {
  font-weight: 700;
  font-size: 12px;
  color: #fff;
}
.mex-pair-info-sub {
  font-size: 10px;
  color: var(--mex-text-muted);
}
.mex-pair-prices {
  text-align: right;
  font-family: var(--mex-font-mono);
}
.mex-pair-price {
  font-size: 12px;
  font-weight: 700;
}
.mex-pair-pct {
  font-size: 10px;
}

/* =========================================================================
   MAIN GRID LAYOUT (TRADING TERMINAL: ORDER BOOK | CHART | ORDER FORM)
   ========================================================================= */

.mex-body {
  flex: 1;
  display: grid;
  grid-template-columns: 310px 1fr 340px;
  grid-template-rows: 1fr 240px;
  grid-template-areas:
    "book chart form"
    "book orders trades";
  gap: 1px;
  background: var(--mex-border);
  overflow: hidden;
}

/* 1. ORDER BOOK (LEFT COLUMN) */
.mex-panel-book {
  grid-area: book;
  background: var(--mex-surface);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mex-panel-title {
  height: 38px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--mex-border);
  font-size: 12px;
  font-weight: 800;
  color: var(--mex-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.mex-book-toggles {
  display: flex;
  gap: 4px;
}
.mex-book-btn {
  background: var(--mex-bg);
  border: 1px solid var(--mex-border);
  color: var(--mex-text-muted);
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 11px;
  padding: 0;
}
.mex-book-btn.active {
  color: #fff;
  border-color: var(--mex-accent);
}
.mex-book-cols {
  display: grid;
  grid-template-columns: 80px 50px 70px 1fr;
  padding: 6px 10px;
  font-size: 10px;
  color: var(--mex-text-dim);
  text-transform: uppercase;
  border-bottom: 1px solid var(--mex-border);
  font-family: var(--mex-font-mono);
}
.mex-book-cols span:nth-child(2),
.mex-book-cols span:nth-child(3) {
  text-align: right;
}
.mex-book-cols span:nth-child(4) {
  text-align: right;
}
.mex-book-scroll {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  font-family: var(--mex-font-mono);
  font-size: 11px;
}
.mex-asks-list,
.mex-bids-list {
  display: flex;
  flex-direction: column;
}
.mex-asks-list {
  justify-content: flex-end;
}
.mex-book-row {
  display: grid;
  grid-template-columns: 80px 50px 70px 1fr;
  padding: 3px 10px;
  position: relative;
  cursor: pointer;
  transition: background 0.12s ease;
  line-height: 1.4;
}
.mex-book-row:hover {
  background: var(--mex-surface-hover) !important;
}
.mex-row-depth {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  pointer-events: none;
  opacity: 0.18;
  transition: width 0.3s ease;
}
.mex-book-row.ask .mex-row-depth { background: var(--mex-red); }
.mex-book-row.bid .mex-row-depth { background: var(--mex-green); }

.mex-book-row .p-val { font-weight: 700; z-index: 1; }
.mex-book-row.ask .p-val { color: var(--mex-red); }
.mex-book-row.bid .p-val { color: var(--mex-green); }

.mex-book-row .q-val,
.mex-book-row .t-val {
  text-align: right;
  color: var(--mex-text);
  z-index: 1;
}
.mex-book-row .m-val {
  text-align: right;
  color: var(--mex-text-muted);
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 1;
  padding-left: 4px;
}

/* SPREAD INDICATOR */
.mex-spread-bar {
  padding: 8px 10px;
  background: var(--mex-bg-subtle);
  border-top: 1px solid var(--mex-border);
  border-bottom: 1px solid var(--mex-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.mex-spread-price {
  font-family: var(--mex-font-mono);
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mex-spread-price.up { color: var(--mex-green); }
.mex-spread-price.down { color: var(--mex-red); }
.mex-spread-info {
  font-size: 10px;
  color: var(--mex-text-muted);
  display: flex;
  gap: 8px;
}

/* 2. CHART / BENCHMARK AREA (CENTER TOP) */
.mex-panel-chart {
  grid-area: chart;
  background: var(--mex-surface);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mex-chart-header {
  height: 38px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--mex-border);
  flex-shrink: 0;
}
.mex-chart-tabs {
  display: flex;
  gap: 8px;
}
.mex-chart-tab {
  background: transparent;
  border: none;
  color: var(--mex-text-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 4px;
}
.mex-chart-tab.active {
  color: #fff;
  background: var(--mex-surface-hover);
}
.mex-chart-canvas-wrap {
  flex: 1;
  position: relative;
  background: #0d111a;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mex-chart-canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.mex-chart-overlay-info {
  position: absolute;
  top: 12px;
  left: 16px;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mex-chart-kpi-badge {
  background: rgba(15, 20, 31, 0.85);
  border: 1px solid var(--mex-border-light);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--mex-text-muted);
  backdrop-filter: blur(4px);
}
.mex-chart-kpi-badge b {
  color: var(--mex-accent);
}

/* 3. ORDER EXECUTION TERMINAL (RIGHT COLUMN) */
.mex-panel-form {
  grid-area: form;
  background: var(--mex-surface);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  border-left: 1px solid var(--mex-border);
}
.mex-order-type-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 10px 12px;
  gap: 8px;
  border-bottom: 1px solid var(--mex-border);
}
.mex-side-btn {
  padding: 9px;
  font-weight: 800;
  font-size: 13px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.mex-side-btn.buy {
  background: var(--mex-surface-hover);
  color: var(--mex-green);
}
.mex-side-btn.buy.active {
  background: var(--mex-green);
  color: #0b0e14;
  box-shadow: 0 4px 12px rgba(14, 203, 129, 0.3);
}
.mex-side-btn.sell {
  background: var(--mex-surface-hover);
  color: var(--mex-red);
}
.mex-side-btn.sell.active {
  background: var(--mex-red);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(246, 70, 93, 0.3);
}

.mex-order-mode-selector {
  display: flex;
  gap: 12px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--mex-border);
}
.mex-mode-tab {
  background: transparent;
  border: none;
  color: var(--mex-text-muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 0;
  border-bottom: 2px solid transparent;
}
.mex-mode-tab.active {
  color: #ffffff;
  border-bottom-color: var(--mex-gold);
}

.mex-form-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mex-input-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.mex-input-label {
  font-size: 11px;
  color: var(--mex-text-muted);
  display: flex;
  justify-content: space-between;
}
.mex-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.mex-input-wrap input,
.mex-input-wrap select {
  width: 100%;
  background: var(--mex-bg-subtle);
  border: 1px solid var(--mex-border-light);
  color: #ffffff;
  padding: 9px 36px 9px 12px;
  border-radius: 6px;
  font-family: var(--mex-font-mono);
  font-size: 13px;
  font-weight: 700;
  outline: none;
  transition: border-color 0.15s ease;
}
.mex-input-wrap input:focus,
.mex-input-wrap select:focus {
  border-color: var(--mex-accent);
}
.mex-input-suffix {
  position: absolute;
  right: 12px;
  font-size: 11px;
  color: var(--mex-text-dim);
  font-weight: 700;
}

/* Quick % sliders */
.mex-pct-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.mex-pct-btn {
  background: var(--mex-bg-subtle);
  border: 1px solid var(--mex-border);
  color: var(--mex-text-muted);
  padding: 4px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
}
.mex-pct-btn:hover {
  background: var(--mex-surface-hover);
  color: #ffffff;
}

/* Summary Box */
.mex-total-box {
  background: var(--mex-bg-subtle);
  border: 1px solid var(--mex-border);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mex-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--mex-text-muted);
}
.mex-total-row.highlight {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  padding-top: 4px;
  border-top: 1px dashed var(--mex-border);
}
.mex-total-row.highlight b {
  font-family: var(--mex-font-mono);
  color: var(--mex-gold);
}

/* Submit Action Button */
.mex-submit-btn {
  width: 100%;
  padding: 13px;
  border-radius: 8px;
  border: none;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.mex-submit-btn.buy {
  background: linear-gradient(135deg, var(--mex-green), #08a362);
  color: #0b0e14;
  box-shadow: 0 4px 16px rgba(14, 203, 129, 0.35);
}
.mex-submit-btn.buy:hover {
  background: linear-gradient(135deg, var(--mex-green-hover), #0da364);
  transform: translateY(-1px);
}
.mex-submit-btn.sell {
  background: linear-gradient(135deg, var(--mex-red), #c82339);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(246, 70, 93, 0.35);
}
.mex-submit-btn.sell:hover {
  background: linear-gradient(135deg, var(--mex-red-hover), #cf2a40);
  transform: translateY(-1px);
}

/* 4. RECENT TRADES (BOTTOM RIGHT) */
.mex-panel-trades {
  grid-area: trades;
  background: var(--mex-surface);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-left: 1px solid var(--mex-border);
}
.mex-trades-scroll {
  flex: 1;
  overflow-y: auto;
  font-family: var(--mex-font-mono);
  font-size: 11px;
}
.mex-trade-row {
  display: grid;
  grid-template-columns: 60px 70px 50px 1fr;
  padding: 3px 10px;
  line-height: 1.4;
  animation: mexRowFlash 0.6s ease-out;
}
@keyframes mexRowFlash {
  0% { background: rgba(32, 191, 228, 0.25); }
  100% { background: transparent; }
}
.mex-trade-row .time { color: var(--mex-text-dim); }
.mex-trade-row .price.buy { color: var(--mex-green); font-weight: 700; }
.mex-trade-row .price.sell { color: var(--mex-red); font-weight: 700; }
.mex-trade-row .qty { text-align: right; color: var(--mex-text); }
.mex-trade-row .loc { text-align: right; color: var(--mex-text-muted); font-size: 10px; }

/* 5. USER ORDERS & PROJECT BIDS (BOTTOM CENTER) */
.mex-panel-orders {
  grid-area: orders;
  background: var(--mex-surface);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-top: 1px solid var(--mex-border);
}
.mex-orders-header {
  height: 38px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--mex-border);
  flex-shrink: 0;
}
.mex-orders-tabs {
  display: flex;
  gap: 12px;
}
.mex-orders-tab {
  background: transparent;
  border: none;
  color: var(--mex-text-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.mex-orders-tab.active {
  color: #ffffff;
  border-bottom-color: var(--mex-gold);
}
.mex-orders-content {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px;
}
.mex-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.mex-table th {
  text-align: left;
  color: var(--mex-text-dim);
  font-size: 10px;
  text-transform: uppercase;
  padding: 6px 8px;
  border-bottom: 1px solid var(--mex-border);
  font-weight: 700;
}
.mex-table td {
  padding: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--mex-text);
  font-family: var(--mex-font-mono);
}
.mex-order-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
}
.mex-order-badge.open { background: rgba(32, 191, 228, 0.15); color: var(--mex-accent); }
.mex-order-badge.bids { background: rgba(240, 185, 11, 0.15); color: var(--mex-gold); }
.mex-order-badge.awarded { background: rgba(14, 203, 129, 0.15); color: var(--mex-green); }

.mex-action-btn-sm {
  background: var(--mex-surface-hover);
  border: 1px solid var(--mex-border-light);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.12s ease;
}
.mex-action-btn-sm.award {
  background: rgba(14, 203, 129, 0.2);
  border-color: var(--mex-green);
  color: var(--mex-green);
}
.mex-action-btn-sm.award:hover {
  background: var(--mex-green);
  color: #0b0e14;
}

/* RESPONSIVE LAYOUT */
@media (max-width: 1100px) {
  .mex-body {
    grid-template-columns: 280px 1fr;
    grid-template-rows: 1fr 1fr;
    grid-template-areas:
      "book chart"
      "form orders";
  }
  .mex-panel-trades { display: none; }
}

@media (max-width: 768px) {
  #guayaiaMercadiaExchangeOverlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }
  .mex-header {
    height: auto;
    padding: 10px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .mex-ticker-stats {
    width: 100%;
    order: 3;
    padding-top: 6px;
    border-top: 1px solid var(--mex-border);
  }
  .mex-body {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }
  .mex-panel-book { min-height: 280px; }
  .mex-panel-chart { min-height: 260px; }
  .mex-panel-form { min-height: 380px; border-left: none; }
  .mex-panel-orders { min-height: 240px; }
  .mex-pair-dropdown { left: 10px; right: 10px; width: auto; }
}

/* Project requests: scoped to avoid application header and simulator styles. */
#guayaiaMercadiaExchangeOverlay .mex-real-project{box-sizing:border-box;width:100%;height:100%;overflow:auto;background:#f2f7f6;color:#173e43;padding:clamp(18px,4vw,56px);font:14px/1.55 system-ui,sans-serif}
.mex-real-project *{box-sizing:border-box}.mex-real-project .mr-shell{max-width:1180px;margin:auto}.mex-real-project .mr-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:0 0 30px;border-bottom:1px solid #d7e5e1;background:transparent}.mex-real-project .mr-eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:800;color:#29826e;margin:0 0 12px}.mex-real-project h1{color:#143e43;font-size:clamp(26px,3vw,38px);line-height:1.2;margin:0 0 12px;overflow-wrap:anywhere}.mex-real-project h2{font-size:18px;line-height:1.4;margin:0;color:#173e43}.mex-real-project p{margin:8px 0;color:#627e7d}.mex-real-project button[data-real-mercadia-close]{border:1px solid #c6dbd5;background:white;color:#22604e;border-radius:12px;padding:12px 18px;min-height:44px;cursor:pointer;font:700 13px system-ui;white-space:nowrap}.mex-real-project .mr-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:26px 0 34px}.mex-real-project .mr-summary>div{display:flex;gap:14px;align-items:center;padding:20px;background:#fff;border:1px solid #e0eae6;border-radius:16px}.mex-real-project .mr-summary strong{font-size:30px;color:#12745e}.mex-real-project .mr-summary span{font-size:12px;color:#617b77}.mex-real-project .mr-main{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:28px}.mex-real-project .mr-main>div{min-width:0}.mex-real-project .mr-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.mex-real-project .mr-section-title>span{font-size:11px;color:#6c8580}.mex-real-project .mr-feedback:empty{display:none}.mex-real-project .mr-feedback:not(:empty){padding:14px;background:#fff5df;border-radius:12px}.mex-real-project .mr-list{display:grid;gap:18px}.mex-real-project .mr-card{background:white;border:1px solid #d9e7e2;border-radius:18px;padding:24px;box-shadow:0 6px 22px #183e3406}.mex-real-project .mr-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.mex-real-project .mr-number{color:#8ca69d;font-weight:800;font-size:12px}.mex-real-project .mr-status{padding:6px 10px;border-radius:20px;background:#eaf5ef;color:#26725a;font-size:11px;font-weight:700;overflow-wrap:anywhere}.mex-real-project .mr-meta{font-size:12px}.mex-real-project .mr-items{margin:20px 0}.mex-real-project .mr-items>div{display:flex;justify-content:space-between;gap:18px;padding:10px 0;border-bottom:1px solid #edf3f0}.mex-real-project .mr-items span{overflow-wrap:anywhere;min-width:0}.mex-real-project .mr-items strong{font-size:12px;flex-shrink:0}.mex-real-project .mr-files{display:grid;gap:10px}.mex-real-project .mr-files a{display:flex;align-items:center;gap:12px;background:#f5f9f7;border:1px solid #e1ebe6;border-radius:12px;padding:12px;color:#245b4b;text-decoration:none;min-height:60px;transition:background .18s,transform .18s}.mex-real-project .mr-files a>span:last-child{min-width:0}.mex-real-project .mr-files strong{display:block;font-size:12px;overflow-wrap:anywhere}.mex-real-project .mr-files small{display:block;font-size:11px;color:#6a827b;margin-top:3px}.mex-real-project .mr-file-icon{font-size:9px;font-weight:800;border:1px solid #c4d9ce;border-radius:7px;padding:10px 7px;background:white}.mex-real-project .mr-help{align-self:start;padding:24px;border-radius:18px;background:#e6f0eb}.mex-real-project .mr-help h2{font-size:21px}.mex-real-project .mr-help>div{margin-top:24px}.mex-real-project .mr-help b{font-size:12px}.mex-real-project .mr-help small{display:block;margin-top:24px;color:#637f72}.mex-real-project .mr-empty{padding:30px;border:1px dashed #bed6cd;border-radius:16px}.mex-real-project :is(a,button):focus-visible{outline:3px solid #148671;outline-offset:4px}
@media(hover:hover){.mex-real-project .mr-files a:hover{background:#e8f3ed;transform:translateY(-2px)}}
@media(max-width:760px){.mex-real-project .mr-header{align-items:flex-start;flex-direction:column;gap:16px}.mex-real-project .mr-main{grid-template-columns:1fr}.mex-real-project .mr-help{order:2}.mex-real-project .mr-summary{gap:8px;margin:20px 0}.mex-real-project .mr-summary>div{padding:12px 8px;flex-direction:column;gap:2px;text-align:center}.mex-real-project .mr-summary strong{font-size:24px}.mex-real-project .mr-summary span{font-size:10px}.mex-real-project .mr-card{padding:18px}.mex-real-project .mr-section-title{align-items:flex-start;flex-direction:column;gap:3px}.mex-real-project .mr-items>div{flex-wrap:wrap;gap:4px 16px}.mex-real-project .mr-header button{width:100%}}
@media(prefers-reduced-motion:reduce){.mex-real-project .mr-files a{transition:none}}
.mex-real-project .mr-market-tools{display:flex;justify-content:space-between;gap:18px;align-items:end;margin:24px 0}.mex-real-project .mr-market-tools>div{display:flex;gap:8px;flex-wrap:wrap}.mex-real-project .mr-market-tools button,.mex-real-project .mr-request-actions button{border:1px solid #bbd8cd;background:white;color:#20654e;padding:12px 16px;min-height:44px;border-radius:10px;cursor:pointer;font-weight:700}.mex-real-project .mr-market-tools button[aria-pressed=true],.mex-real-project .mr-request-actions button{background:#16735b;color:white}.mex-real-project .mr-market-tools label{font-size:11px;display:grid;gap:5px}.mex-real-project .mr-market-tools input{padding:12px;border:1px solid #c8ded5;border-radius:10px;min-width:260px;font:inherit}.mex-real-project .mr-request-actions{margin-top:18px}.mex-real-project .mr-cut-summary{display:grid;gap:4px;padding:14px;border-radius:12px;background:#e7f3eb;margin:16px 0}.mex-real-project .mr-cut-summary span,.mex-real-project .mr-cut-summary small{font-size:12px;color:#49735f}.mr-cut-dialog{box-sizing:border-box;border:1px solid #c3dbd0;border-radius:20px;width:min(920px,calc(100% - 24px));max-height:90dvh;padding:26px;color:#234f40;background:#f8fcfa;font:14px/1.5 system-ui}.mr-cut-dialog::backdrop{background:#082b2dc9;backdrop-filter:blur(4px)}.mr-cut-dialog *{box-sizing:border-box}.mr-cut-dialog h2{margin:0;color:#194738}.mr-cut-heading{display:flex;justify-content:space-between;gap:18px}.mr-cut-dialog label{display:grid;gap:5px;font-size:12px}.mr-cut-dialog label:has([type=checkbox]){display:flex;align-items:start;margin:16px 0}.mr-cut-dialog input:not([type=checkbox]),.mr-cut-dialog textarea{width:100%;font:14px/1.5 system-ui;border:1px solid #c3dbd0;border-radius:9px;padding:10px;background:white;color:#173e32;min-width:0}.mr-cut-controls{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:20px 0}.mr-cut-dialog button{min-height:44px;padding:10px 14px;border:1px solid #bad3c7;border-radius:9px;background:white;color:#245b43;cursor:pointer;font-weight:700}.mr-cut-dialog button:disabled{opacity:.5;cursor:default}.mr-cut-upload{padding:16px;background:#e8f2ed;border-radius:12px}.mr-cut-attached{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.mr-cut-rows-label textarea{font-family:monospace}.mr-cut-hint{font-size:11px;color:#527567}.mr-cut-footer{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:20px}.mr-cut-footer button:last-child{background:#16735b;color:white}.mr-cut-sheets{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.mr-cut-sheets figure{margin:0}.mr-cut-sheets svg{width:100%;max-height:230px;border:1px solid #bad3c7}.mr-cut-sheets figcaption{font-size:11px;text-align:center}.mr-cut-dialog [role=status]{white-space:pre-wrap;color:#805223}
@media(max-width:760px){.mex-real-project .mr-market-tools{align-items:stretch;flex-direction:column}.mex-real-project .mr-market-tools input{min-width:0;width:100%}.mr-cut-dialog{padding:18px}.mr-cut-controls{grid-template-columns:1fr 1fr}.mr-cut-sheets{grid-template-columns:1fr 1fr}.mr-cut-footer button{flex:1}}
.mr-cut-warning{background:#fff3dc;border:1px solid #e8d5aa;border-radius:12px;padding:12px;margin:16px 0}.mr-cut-warning p{font-size:12px;margin:4px 0}.mr-cut-complete{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0;padding:14px;background:white;border:1px solid #d3e6da;border-radius:12px}.mr-cut-complete>b{grid-column:1/-1;overflow-wrap:anywhere}.mr-cut-dialog details{margin:20px 0;padding:14px;border:1px solid #d0e3d7;border-radius:12px}.mr-cut-dialog summary{cursor:pointer;font-weight:700;color:#306c51}.mr-cut-dialog [data-rows]{font-family:monospace}
/* A bounded commercial live room, distinct from the social feed. */
.mex-real-project .mr-live-layout{grid-template-columns:210px minmax(0,1fr) 230px;gap:18px}.mex-real-project .mr-live-channels{padding:16px 12px;background:#e7f0ed;border:1px solid #d3e3dd;border-radius:14px;align-self:start;display:grid;gap:8px}.mr-live-channels>small{font-size:9px;color:#5b8376;letter-spacing:1px;font-weight:800;margin:7px 0}.mr-live-channels button{border:1px solid transparent;border-radius:9px;background:transparent;color:#336454;padding:12px 10px;text-align:left;display:flex;justify-content:space-between;gap:8px;cursor:pointer;min-height:44px;font-size:12px}.mr-live-channels button[aria-pressed=true]{background:#fff;border-color:#b6d6c5;color:#14664b;font-weight:800}.mr-live-channels button:disabled{opacity:.55;cursor:default}.mr-live-channels p{font-size:10px;line-height:1.5;padding:0 10px}.mex-real-project .mr-live-room{min-width:0}.mex-real-project .mr-live-status{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;background:#e5f4ec;border-radius:12px 12px 0 0;border:1px solid #cadfd4;font-size:11px;color:#28775b}.mr-live-status button{border:0;background:transparent;color:#286a53;cursor:pointer;font-size:10px;min-height:28px}.mex-real-project .mr-live-stream{max-height:65dvh;min-height:300px;overflow:auto;overscroll-behavior:contain;background:#eef4f1;border:1px solid #cadfd4;border-top:0;border-radius:0 0 14px 14px;padding:16px;gap:14px;display:flex;flex-direction:column;align-items:stretch;scrollbar-width:thin}.mex-real-project .mr-live-message{padding:16px 18px;border-radius:4px 16px 16px 16px;box-shadow:0 2px 5px #123e3007;flex-shrink:0}.mex-real-project .mr-live-message h2{font-size:15px}.mex-real-project .mr-live-author{font-size:11px;font-weight:800;color:#1c7052;overflow-wrap:anywhere}.mr-live-author small{display:block;font-size:9px;font-weight:400;color:#6e8b7c;margin-top:3px}.mex-real-project .mr-live-message .mr-card-top{margin-bottom:12px}.mex-real-project .mr-live-message .mr-items{margin:10px 0}.mex-real-project .mr-live-message .mr-meta{font-size:10px}.mex-real-project .mr-live-message .mr-files a{padding:9px;min-height:48px}.mex-real-project .mr-live-message .mr-request-actions{margin-top:12px}.mex-real-project .mr-live-layout .mr-help{padding:18px}.mex-real-project .mr-live-layout .mr-help h2{font-size:18px}.mex-real-project .mr-summary{margin:18px 0}.mex-real-project .mr-live-layout .mr-section-title{margin-bottom:12px}
@media(max-width:1100px){.mex-real-project .mr-live-layout{grid-template-columns:180px minmax(0,1fr)}.mex-real-project .mr-live-layout .mr-help{grid-column:1/-1}}
@media(max-width:700px){.mex-real-project .mr-live-layout{grid-template-columns:1fr}.mex-real-project .mr-live-channels{grid-template-columns:1fr 1fr;gap:5px}.mr-live-channels>small,.mr-live-channels>p{grid-column:1/-1}.mr-live-channels button{font-size:11px;padding:9px}.mex-real-project .mr-live-stream{padding:10px;max-height:68dvh}.mex-real-project .mr-live-message{padding:14px}.mex-real-project .mr-live-message .mr-card-top{align-items:flex-start;flex-wrap:wrap}.mex-real-project .mr-live-status{flex-wrap:wrap;gap:3px}.mex-real-project .mr-live-layout .mr-help{grid-column:1}}
.mex-real-project .mr-market-tools select{border:1px solid #c8ded5;border-radius:10px;background:white;padding:12px;color:#285b49;min-height:44px;max-width:100%}.mr-live-details{border-top:1px solid #e1ebe6;margin-top:10px;padding-top:8px}.mr-live-details>summary{cursor:pointer;color:#37775d;font-size:11px;min-height:28px}.mr-live-details[open]{padding-bottom:8px}.mex-real-project .mr-live-stream{max-height:calc(100dvh - 350px);min-height:250px}.mex-real-project .mr-live-message{padding:12px 15px}.mex-real-project .mr-header{padding-bottom:18px}.mex-real-project .mr-market-tools{margin:16px 0}.mex-real-project .mr-summary>div{padding:12px 18px}.mex-real-project .mr-summary strong{font-size:25px}.mex-real-project .mr-summary{margin:14px 0 22px}.ppr-wholesale{display:flex;gap:8px;align-items:start;font-size:12px;margin:16px 0}
@media(max-width:700px){.mex-real-project .mr-live-channels{display:flex;flex-wrap:wrap;gap:5px;padding:10px}.mr-live-channels>small,.mr-live-channels>p{display:none}.mr-live-channels button{flex:1 0 42%;font-size:10px;min-height:36px;padding:8px}.mex-real-project .mr-live-layout .mr-help{display:none}.mex-real-project .mr-live-stream{max-height:65dvh;min-height:280px}}

/* One scrolling surface for the whole room, including touch and expanded documents. */
#guayaiaMercadiaExchangeOverlay{overflow:hidden}
#guayaiaMercadiaExchangeOverlay .mex-real-project{overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#8eb9ab transparent;scrollbar-gutter:stable;-webkit-overflow-scrolling:touch}
#guayaiaMercadiaExchangeOverlay .mex-real-project .mr-live-stream{overflow:visible;max-height:none;min-height:0}
.mex-real-project::-webkit-scrollbar{width:7px}.mex-real-project::-webkit-scrollbar-thumb{background:#8eb9ab;border-radius:8px;border:2px solid #f2f7f6}
@media(min-width:1000px){.mex-real-project .mr-live-channels,.mex-real-project .mr-help{position:sticky;top:18px}}

.mr-header-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:flex-end}.mex-real-project [data-mercadia-order-book]{border:1px solid #147459;background:#147459;color:white;padding:12px 15px;border-radius:11px;min-height:44px;cursor:pointer;font-weight:750}@media(max-width:700px){.mr-header-actions{justify-content:flex-start}.mex-real-project .mr-header{flex-wrap:wrap}}

/* A single floating live viewport; only its order stream scrolls vertically. */
#guayaiaMercadiaExchangeOverlay .mex-real-project{height:100dvh;overflow:hidden;padding:22px clamp(14px,3vw,40px)}
.mex-real-project .mr-shell{height:100%;min-height:0;display:flex;flex-direction:column}
.mex-real-project .mr-header{padding-bottom:12px;flex-shrink:0}.mex-real-project .mr-header h1{font-size:28px;margin-bottom:6px}.mex-real-project .mr-header p{margin:5px 0}.mex-real-project .mr-market-tools{margin:12px 0;flex-shrink:0}.mex-real-project .mr-summary{margin:5px 0 14px;flex-shrink:0}
.mex-real-project .mr-main.mr-live-layout{flex:1;min-height:0;align-items:stretch}
.mex-real-project .mr-live-room{min-height:0;display:flex;flex-direction:column;filter:drop-shadow(0 12px 18px #15443512)}
.mex-real-project .mr-section-title,.mex-real-project .mr-live-status{flex-shrink:0}
#guayaiaMercadiaExchangeOverlay .mex-real-project .mr-live-stream{position:relative;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#86b6a5 transparent;max-height:none;min-height:0;flex:1;padding:16px;border-radius:0 0 16px 16px;align-content:start}
.mex-real-project .mr-live-channels,.mex-real-project .mr-help{position:static;max-height:100%;overflow-y:auto;scrollbar-width:thin;align-self:start}
.mr-live-stream [data-live-more]{min-height:44px;border:1px solid #b6d4c6;border-radius:9px;background:white;color:#176449;padding:10px;cursor:pointer}.mr-history-end{text-align:center;font-size:11px}.mr-catalog-match{font-size:10px;color:#08744b!important;background:#e1f3e8;border-radius:7px;padding:5px 8px;display:inline-block}.mr-request-quantities{font-size:12px;font-weight:650}.mr-catalog-status{font-size:10px;margin:0 0 6px!important}.mr-catalog-status:empty{display:none}.mr-live-status>div{display:flex;gap:10px;flex-wrap:wrap}.mr-market-tools [data-supplier-only]{border:1px solid #b6d4c6;border-radius:9px;padding:10px;background:white;color:#175f48;min-height:44px;cursor:pointer}.mr-market-tools [data-supplier-only][aria-pressed=true]{background:#147459;color:white}
@media(prefers-reduced-motion:no-preference){.mr-live-message.mr-arriving{animation:mr-order-arrive .3s ease-out}@keyframes mr-order-arrive{from{opacity:.4;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}}
@media(max-width:700px){#guayaiaMercadiaExchangeOverlay .mex-real-project{padding:12px;height:100dvh}.mex-real-project .mr-header h1{font-size:21px}.mex-real-project .mr-header .mr-eyebrow{font-size:8px}.mex-real-project .mr-header>div>p:last-child{display:none}.mex-real-project .mr-header{gap:8px}.mr-header-actions button{font-size:10px!important;padding:8px!important;min-height:36px!important}.mex-real-project .mr-market-tools{gap:7px;margin:8px 0;flex-wrap:wrap}.mex-real-project .mr-market-tools label{flex:1;min-width:100px}.mex-real-project .mr-market-tools input{width:100%}.mex-real-project .mr-summary{gap:6px;margin-bottom:8px}.mex-real-project .mr-summary>div{padding:6px;gap:5px}.mex-real-project .mr-summary strong{font-size:18px}.mex-real-project .mr-summary span{font-size:9px}.mex-real-project .mr-main.mr-live-layout{display:flex;flex-direction:column;gap:8px}.mex-real-project .mr-live-channels{flex:none;width:100%;display:flex;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;padding:5px;min-height:44px}.mex-real-project .mr-live-channels button{flex:0 0 auto;white-space:nowrap;min-height:32px}.mex-real-project .mr-live-room{flex:1;min-height:0}.mex-real-project .mr-section-title{margin-bottom:4px}.mex-real-project .mr-section-title>span{display:none}.mex-real-project .mr-live-status{padding:7px;font-size:9px}.mex-real-project .mr-live-status button{font-size:9px}#guayaiaMercadiaExchangeOverlay .mex-real-project .mr-live-stream{padding:8px}.mex-real-project .mr-live-layout .mr-help{display:none}}

@media(max-width:700px){.mex-real-project .mr-market-tools{display:grid;grid-template-columns:1fr 1fr;align-items:end}.mex-real-project .mr-market-tools>div{grid-column:1/-1;display:flex}.mex-real-project .mr-market-tools [data-supplier-only]{grid-column:1/-1;grid-row:3;min-height:32px;padding:5px;font-size:10px}.mex-real-project .mr-market-tools label{min-width:0}.mex-real-project .mr-market-tools :is(input,select){min-width:0;width:100%;padding:8px;min-height:36px;font-size:11px}.mex-real-project .mr-market-tools button{font-size:10px;min-height:34px;padding:7px 10px}.mex-real-project .mr-summary{display:none}.mr-header-actions{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);width:100%}.mr-header-actions button{white-space:normal!important}.mex-real-project .mr-header{padding-bottom:8px}.mex-real-project .mr-header>div:first-child{width:100%}}

/* MercadIA as one continuous page: the entire room grows with its requests. */
#guayaiaMercadiaExchangeOverlay .mex-real-project{height:100dvh;overflow-x:hidden;overflow-y:auto;scrollbar-width:thin;overscroll-behavior:contain}
#guayaiaMercadiaExchangeOverlay .mex-real-project .mr-shell{height:auto;min-height:100%;display:block}
#guayaiaMercadiaExchangeOverlay .mex-real-project .mr-main.mr-live-layout{display:grid;min-height:0;align-items:start}
#guayaiaMercadiaExchangeOverlay .mex-real-project .mr-live-room{display:block;min-height:0;filter:none}
#guayaiaMercadiaExchangeOverlay .mex-real-project .mr-live-stream{height:auto;max-height:none;min-height:0;overflow:visible;flex:none;border:0;border-radius:0;padding:0;background:transparent;box-shadow:none}
.mex-real-project .mr-live-status{border-radius:12px;margin-bottom:16px}.mex-real-project .mr-live-message{border-radius:15px!important;box-shadow:0 5px 18px #174d3910}
@media(min-width:1000px){.mex-real-project .mr-live-channels,.mex-real-project .mr-help{position:sticky;top:16px;max-height:none;overflow:visible}}
@media(max-width:700px){#guayaiaMercadiaExchangeOverlay .mex-real-project .mr-main.mr-live-layout{display:flex;flex-direction:column}.mex-real-project .mr-live-room{width:100%}.mex-real-project .mr-live-channels{position:static;overflow-x:auto;overflow-y:hidden;width:100%;max-height:none}#guayaiaMercadiaExchangeOverlay .mex-real-project .mr-live-stream{padding:0}}


.mr-product-chart select{width:100%;min-width:0;min-height:42px;border:1px solid #b8d5c6;border-radius:9px;padding:8px;background:white;color:#215c47;font-size:11px}.mr-chart-product{display:grid;gap:6px;font-size:11px;margin:14px 0 8px}.mr-product-chart svg{width:100%;height:auto;display:block;margin:10px 0}.mr-product-chart svg text{fill:#5d7e70;font:9px system-ui}.mr-chart-empty{padding:24px 12px;border:1px dashed #a6c9b6;border-radius:10px;color:#608374;font-size:12px;margin:15px 0}.mr-chart-prices{display:grid;gap:8px}.mr-chart-prices>div{display:flex;justify-content:space-between;gap:8px;background:#f5faf7;border:1px solid #d3e5da;border-radius:8px;padding:9px}.mr-chart-prices small{font-size:10px;margin:0!important}.mr-chart-prices b{color:#08764f!important;font-size:13px!important}.mr-product-chart .mr-chart-note,.mr-product-chart .mr-chart-spec{font-size:10px;line-height:1.6}.mr-product-chart{min-width:0}
@media(max-width:700px){#guayaiaMercadiaExchangeOverlay .mex-real-project .mr-live-layout .mr-product-chart{display:block;width:100%;position:static}.mr-product-chart svg{max-height:260px}}

