.is-shop-lab-workspace .table-panel { display: none; }
.is-shop-lab-workspace #tableView,
.is-shop-lab-workspace #actionPanel { min-width: 0; grid-template-columns: minmax(0, 1fr); }
#shopLabRoot { width: 100%; min-width: 0; }
#shopLabRoot iframe { width: 100%; min-height: 760px; border: 0; display: block; }
.is-shop-lab-frame .sidebar, .is-shop-lab-frame .topbar { display: none !important; }
.is-shop-lab-frame .app-shell { grid-template-columns: minmax(0, 1fr); min-height: 0; }
.is-shop-lab-frame .content { min-width: 0; padding: 8px; }
html.is-shop-lab-frame-root, body.is-shop-lab-frame,
.is-shop-lab-frame .app-shell, .is-shop-lab-frame .content { min-height: 0; height: auto; }
/* Override public/drawer viewport minima: measuring 100vh + padding would
   otherwise increase the parent iframe again on every content update. */
body.is-shop-lab-frame .app-shell,
body.is-shop-lab-frame .app-shell .content { min-height: 0; height: auto; }
body.is-shop-lab-frame .profile-settings-backdrop {
  top: var(--shop-lab-visible-top, 0px);
  bottom: auto;
  height: var(--shop-lab-visible-height, 100dvh);
  box-sizing: border-box;
  place-items: center;
  padding: 12px;
}
body.is-shop-lab-frame .profile-settings-dialog {
  align-self: center;
  align-content: start;
  grid-auto-rows: max-content;
  height: auto;
  min-height: 0;
  max-height: calc(var(--shop-lab-visible-height, 100dvh) - 24px);
}
body.is-shop-lab-frame .profile-settings-dialog.customer-profile-dialog {
  width: min(600px, 100%);
  border-radius: 14px;
}
.is-shop-lab-frame #mobileNavButton { display: none !important; }
.is-shop-lab-frame #appUpdateNotice { display: none !important; }
.is-shop-lab-frame #subNavPanel { display: none !important; }
.is-shop-lab-frame #marketProductForm .field { min-width: 0; max-width: 100%; }
.is-shop-lab-frame #marketProductForm textarea { min-width: 0; width: 100%; max-width: 100%; box-sizing: border-box; }
.is-shop-lab-frame #marketProductForm .market-product-media-row { grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); }
.is-shop-lab-frame #marketProductForm .market-source-picker { grid-template-columns: minmax(0, 1fr); }
.is-shop-lab-frame #shopLabNativeNav { display: flex; flex-wrap: wrap; margin-bottom: 12px; }
.is-shop-lab-frame .shop-lab-stock.is-available { color: #166534; background: #dcfce7; }
.is-shop-lab-frame .shop-lab-stock.is-low { color: #854d0e; background: #fef9c3; }
.is-shop-lab-frame .shop-lab-stock.is-out { color: #991b1b; background: #fee2e2; }
#shopLabRoot .foil-control-tabbar { flex-wrap: wrap; }
#shopLabRoot .form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 12px; }
#shopLabRoot .table-wrap { max-width: 100%; overflow-x: auto; }
#shopLabRoot .field { min-width: 0; }
#shopLabRoot .shop-lab-variants { display: grid; gap: 10px; }
#shopLabRoot .market-variant-row { display: flex; align-items: flex-end; gap: 10px; }
#shopLabRoot .market-variant-row .field { flex: 1; }
#shopLabRoot .shop-lab-status:empty { display: none; }
#shopLabRoot .shop-lab-stock { display: inline-flex; align-items: center; gap: 6px; width: fit-content; }
#shopLabRoot .shop-lab-stock.is-available { color: #166534; background: #dcfce7; }
#shopLabRoot .shop-lab-stock.is-low { color: #854d0e; background: #fef9c3; }
#shopLabRoot .shop-lab-stock.is-out { color: #991b1b; background: #fee2e2; }
/* Preserve the red availability signal on sold-out product cards. */
#shopLabRoot .shop-product-card.is-unavailable { filter: none; opacity: 1; }
#shopLabRoot .shop-lab-mail-message { white-space: pre-wrap; overflow-wrap: anywhere; }
#shopLabRoot .shop-cart-row { min-width: 0; }
#shopLabRoot td { overflow-wrap: anywhere; }
@media (max-width: 1000px) {
  #shopLabRoot .shop-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .is-shop-lab-frame #marketProductForm .market-product-media-row { grid-template-columns: minmax(0, 1fr); }
  #shopLabRoot .shop-product-grid { grid-template-columns: minmax(0, 1fr); }
  #shopLabRoot .form-grid { grid-template-columns: minmax(0, 1fr); }
  #shopLabRoot .field { grid-column: auto; }
}

/* Keep business descriptions and quantities; omit instructional box captions. */
.is-shop-lab-frame .field-help,
.is-shop-lab-frame .market-card .form-actions > small.muted-text,
.is-shop-lab-frame .billing-card-head small,
.is-shop-lab-frame .profile-settings-head small,
.is-shop-lab-frame #marketProductForm .field > small,
.is-shop-lab-frame .market-image-dropzone small { display: none; }
.is-shop-lab-frame #labNativeChannels .form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.is-shop-lab-frame #labNativeDeadline { margin-block: 10px; }
