/* 3D StudioMarket — v25.1 FULL
   Flat marketplace layout, responsive management, readable listings. */

:root {
  --v251-surface: #0c141b;
  --v251-surface-2: #101a22;
  --v251-line: rgba(196, 214, 224, .20);
  --v251-line-strong: rgba(220, 231, 237, .32);
  --v251-text: #f2f5f7;
  --v251-muted: #9eabb3;
  --v251-yellow: #ffc400;
  --v251-orange: #ff8a1f;
  --v251-red: #ff515c;
  --v251-green: #42c989;
}

html body {
  --green: var(--v251-orange);
  --accent: var(--v251-orange);
}

html body .page-inner {
  width: min(100%, 1480px);
  margin-inline: auto;
}

html body .management-page-head-v251 {
  min-height: 0 !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
  border: 0 !important;
}

html body .management-page-head-v251 .page-title {
  font-size: clamp(26px, 3vw, 38px) !important;
  letter-spacing: -.035em !important;
}

html body .management-title-row-v251 { display: flex; align-items: center; gap: 11px; }
html body .management-back-v251 {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  color: #dce4e8;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 25px;
  line-height: 1;
  place-items: center;
}
html body .management-back-v251:hover { color: var(--v251-orange); }

/* Management summary: plain surfaces and straight separators. */
html body .management-workspace-v251 {
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--v251-line-strong) !important;
  border-radius: 12px !important;
  background: var(--v251-surface) !important;
  box-shadow: none !important;
}

html body .management-head-v251 {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto minmax(230px, 1fr);
  align-items: stretch;
  min-height: 82px;
  border-bottom: 1px solid var(--v251-line);
}

html body .management-identity-v251,
html body .management-toggle-v251,
html body .management-actions-v251 {
  min-width: 0;
  padding: 18px 22px;
}

html body .management-identity-v251 {
  display: grid;
  align-content: center;
  gap: 3px;
}

html body .management-identity-v251 strong {
  overflow: hidden;
  color: var(--v251-text);
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body .management-identity-v251 span,
html body .management-primary-metric-v251 > span,
html body .management-primary-metric-v251 small,
html body .management-secondary-strip-v251 span,
html body .management-capacity-strip-v251 span {
  color: var(--v251-muted);
  font-size: 12px;
  line-height: 1.35;
}

html body .management-toggle-v251 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-inline: 1px solid var(--v251-line);
}

html body .management-toggle-v251 > span {
  color: var(--v251-muted);
  font-size: 13px;
  font-weight: 700;
}

html body .management-toggle-v251 > strong {
  min-width: 28px;
  color: var(--v251-text);
  font-size: 13px;
  letter-spacing: .08em;
}

html body .management-actions-v251 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

html body .management-settings-v251 {
  display: grid !important;
  flex: 0 0 42px;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  padding: 8px !important;
  color: var(--v251-yellow) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  place-items: center;
}

html body .management-settings-v251 svg { width: 25px; height: 25px; }
html body .management-settings-v251:hover { color: #ffe16c !important; transform: rotate(20deg); }

html body .management-withdraw-v251,
html body .management-capacity-button-v251 {
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid var(--v251-line-strong) !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: var(--v251-text) !important;
  font-size: 14px;
  font-weight: 750;
  box-shadow: none !important;
}

html body .management-capacity-button-v251 {
  border-color: rgba(255, 138, 31, .55) !important;
  color: #ffc27a !important;
}

html body .management-withdraw-v251:hover,
html body .management-capacity-button-v251:hover { border-color: var(--v251-orange) !important; }

html body .management-primary-metrics-v251 {
  display: grid !important;
  grid-template-columns: minmax(300px, 1.45fr) repeat(3, minmax(150px, 1fr)) !important;
}

html body .management-primary-metric-v251 {
  display: grid;
  align-content: center;
  min-width: 0;
  min-height: 126px;
  padding: 20px 22px;
  border-right: 1px solid var(--v251-line);
}

html body .management-primary-metric-v251:last-child { border-right: 0; }

html body .management-primary-metric-v251 > strong,
html body .management-metric-heading-v251 strong {
  overflow: hidden;
  margin-top: 6px;
  color: var(--v251-text);
  font-size: clamp(23px, 2.2vw, 32px);
  line-height: 1.1;
  text-overflow: ellipsis;
}

html body .management-primary-metric-v251 small { margin-top: 7px; }
html body .management-primary-metric-v251 small strong { color: #ffc45d; }

html body .management-metric-heading-v251 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

html body .management-metric-heading-v251 span {
  color: var(--v251-muted);
  font-size: 12px;
}

html body .management-linear-v251 {
  overflow: hidden;
  width: 100%;
  height: 7px;
  margin-top: 16px;
  border-radius: 999px;
  background: rgba(213, 225, 232, .14);
}

html body .management-linear-v251 > i {
  display: block;
  width: clamp(0%, calc(var(--progress, 0) * 1%), 100%);
  height: 100%;
  border-radius: inherit;
  background: var(--v251-orange);
}

html body .management-secondary-strip-v251,
html body .management-capacity-strip-v251 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  border: 0 !important;
  border-top: 1px solid var(--v251-line) !important;
  background: transparent !important;
}

html body .management-secondary-strip-v251 > div,
html body .management-capacity-strip-v251 > div {
  display: grid;
  align-content: center;
  min-width: 0;
  min-height: 64px;
  padding: 14px 22px;
  border-right: 1px solid var(--v251-line);
}

html body .management-secondary-strip-v251 > div:last-child,
html body .management-capacity-strip-v251 > div:last-child { border-right: 0; }

html body .management-secondary-strip-v251 strong,
html body .management-capacity-strip-v251 strong {
  overflow: hidden;
  margin-top: 3px;
  color: var(--v251-text);
  font-size: 14px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body .management-capacity-strip-v251 {
  grid-template-columns: 1.6fr .7fr .9fr !important;
}

html body[data-view="file-management"] .management-secondary-strip-v251,
html body[data-view="product-management"] .management-secondary-strip-v251 {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

html body[data-view="product-management"] .management-capacity-strip-v251 {
  grid-template-columns: 1.6fr .7fr .9fr !important;
}

html body .management-capacity-progress-v251 {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 18px;
}

html body .management-capacity-progress-v251 .management-linear-v251 {
  grid-column: 1 / -1;
  height: 6px;
  margin-top: 10px;
}

html body .management-alert-metric-v251 strong { color: #ffb0b5; }
html body .management-alert-metric-v251 i,
html body .order-waiting-badge-v251 i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--v251-red);
}

html body .management-list-zone-v251 { margin-top: 16px !important; }
html body .management-list-zone-v251 .management-card-grid { gap: 0 !important; overflow: hidden; border: 1px solid var(--v251-line); border-radius: 10px; background: var(--v251-surface); }

html body .management-list-zone-v251 .management-row-v222 {
  grid-template-columns: 64px minmax(180px, 1.25fr) minmax(180px, 1fr) auto 28px !important;
  min-height: 82px !important;
  padding: 0 18px 0 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--v251-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .management-list-zone-v251 .management-row-v222:last-child { border-bottom: 0 !important; }
html body .management-row-preview-v222 { min-width: 0 !important; height: 100% !important; border-right: 1px solid var(--v251-line) !important; border-radius: 0 !important; }
html body .management-row-primary-v222 { padding-left: 18px; }
html body .management-row-primary-v222 strong { font-size: 16px !important; }
html body .management-row-primary-v222 small { margin-top: 3px; font-size: 12px !important; }
html body .management-row-tags-v222 { min-width: 0; flex-wrap: wrap; }
html body .management-row-tags-v222 i { border-color: var(--v251-line-strong) !important; border-radius: 5px !important; background: transparent !important; color: #c8d1d7 !important; }
html body .management-row-stats-v222 { white-space: nowrap; }

/* Product management tabs and compact order rows. */
html body .management-tabs-v251 {
  display: flex !important;
  align-items: stretch;
  min-height: 48px;
  margin-bottom: 0 !important;
  border: 1px solid var(--v251-line) !important;
  border-radius: 9px 9px 0 0 !important;
  background: var(--v251-surface) !important;
}

html body .management-tabs-v251 > button {
  position: relative;
  width: auto !important;
  min-width: 130px;
  min-height: 47px;
  padding: 0 19px !important;
  border: 0 !important;
  border-right: 1px solid var(--v251-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--v251-muted) !important;
  box-shadow: none !important;
}

html body .management-tabs-v251 > button.active { color: #fff !important; box-shadow: inset 0 -2px var(--v251-orange) !important; }
html body .management-tabs-v251 .management-history-link-v251 { margin-left: auto; border-right: 0 !important; border-left: 1px solid var(--v251-line) !important; color: #ffc16e !important; }

html body .order-waiting-badge-v251 {
  display: inline-flex;
  align-items: center;
  margin-left: 7px;
  color: #ff9aa1;
  font-size: 12px;
}
html body .order-waiting-badge-v251[hidden] { display: none !important; }

html body #pmProductPanel > .management-card-grid,
html body #pmOrderPanel > .order-list-v251 { border-radius: 0 0 10px 10px !important; border-top: 0 !important; }
html body #pmOrderPanel { margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }

html body .order-list-v251 {
  display: grid !important;
  gap: 0 !important;
  overflow: hidden;
  border: 1px solid var(--v251-line);
  background: var(--v251-surface);
}

html body .order-row-v251 {
  display: grid;
  grid-template-columns: minmax(190px, 1.2fr) minmax(170px, .9fr) minmax(165px, .8fr) auto;
  align-items: center;
  gap: 20px;
  min-height: 82px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--v251-line);
}
html body .order-row-v251:last-child { border-bottom: 0; }
html body .order-row-v251 > div { min-width: 0; }
html body .order-row-v251 strong,
html body .order-row-v251 small { display: block; overflow: hidden; text-overflow: ellipsis; }
html body .order-row-v251 strong { color: var(--v251-text); font-size: 14px; white-space: nowrap; }
html body .order-row-v251 small { margin-top: 4px; color: var(--v251-muted); font-size: 12px; line-height: 1.35; }
html body .order-row-status-v251 { justify-self: start; padding: 6px 9px; border: 1px solid var(--v251-line-strong); border-radius: 5px; color: #d8e0e4; font-size: 12px; white-space: nowrap; }
html body .order-row-v251.status-0 .order-row-status-v251 { border-color: rgba(255,81,92,.55); color: #ff9ea5; }
html body .order-row-controls-v251 { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
html body .order-row-action-v251 { justify-self: end; min-width: 116px; border-color: rgba(255,138,31,.55) !important; color: #ffc079 !important; }

/* Detail, favorite and seller actions remain icon-only. */
html body .detail-media-actions-v2417 { gap: 8px !important; }
html body .detail-media-action-v2417,
html body .market-card-fav,
html body .favorite-action,
html body .card-heart-only {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
html body .detail-media-action-v2417 { width: 42px !important; height: 42px !important; padding: 9px !important; color: #f5f7f8 !important; }
html body .detail-media-action-v2417:hover,
html body .market-card-fav:hover { color: var(--v251-red) !important; transform: translateY(-1px); }
html body .detail-media-action-v2417.active,
html body .market-card-fav.active { color: var(--v251-red) !important; }

html body .detail-license-studio-v251 {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 17px;
  padding: 13px 0 0;
  border-top: 1px solid var(--v251-line);
}
html body .detail-license-studio-v251 > span { color: var(--v251-muted); font-size: 12px; }
html body .detail-license-studio-v251 > strong { overflow: hidden; color: var(--v251-text); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
html body .detail-license-studio-v251 .detail-text-link-v2417 { color: #ffc16e !important; }

html body .detail-seller-link-v2417 { grid-template-columns: minmax(0, 1fr) auto !important; padding: 18px 20px !important; }
html body .detail-seller-identity-v2417 { min-width: 0; padding: 0 !important; }
html body .detail-seller-stats-v2417 { padding: 0 20px 18px !important; }

html body .seller-profile-flat-v251 { overflow: hidden; border: 1px solid var(--v251-line-strong) !important; border-radius: 12px !important; background: var(--v251-surface) !important; }
html body .seller-profile-head-v251 {
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 28px !important;
  padding: clamp(22px, 3vw, 38px) !important;
  border-bottom: 1px solid var(--v251-line) !important;
}
html body .seller-profile-copy-v251 { min-width: 0; }
html body .seller-profile-copy-v251 .page-desc { max-width: 740px; }
html body .seller-contact-line-v251 { display: flex !important; flex-wrap: wrap; gap: 8px 18px !important; margin-top: 17px !important; }
html body .seller-contact-line-v251 > span { color: var(--v251-muted); font-size: 12px; }
html body .seller-contact-line-v251 strong { margin-left: 4px; color: var(--v251-text); font-size: 13px; }
html body .seller-profile-actions-v251 { align-self: center; }
html body .seller-profile-metrics-v2412 { border-bottom: 1px solid var(--v251-line) !important; }

/* Product listing: stable sections, no sticky side column or overlapping borders. */
html body[data-view="product-listing-settings"] .page-inner { width: min(100%, 1240px) !important; }
html body[data-view="product-listing-settings"] .product-listing-canvas-v2412 {
  overflow: hidden !important;
  border: 1px solid var(--v251-line-strong) !important;
  border-radius: 12px !important;
  background: var(--v251-surface) !important;
}
html body[data-view="product-listing-settings"] .product-listing-columns-v2412 {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
}
html body[data-view="product-listing-settings"] .product-listing-primary-v2412,
html body[data-view="product-listing-settings"] .product-listing-secondary-v2412 {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  border: 0 !important;
}
html body[data-view="product-listing-settings"] .product-listing-secondary-v2412 { border-top: 1px solid var(--v251-line) !important; }
html body[data-view="product-listing-settings"] .product-listing-primary-v2412 > *,
html body[data-view="product-listing-settings"] .product-listing-secondary-v2412 > * {
  position: static !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 26px !important;
  border: 0 !important;
  border-right: 1px solid var(--v251-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body[data-view="product-listing-settings"] .product-listing-primary-v2412 > *:last-child,
html body[data-view="product-listing-settings"] .product-listing-secondary-v2412 > *:last-child { border-right: 0 !important; }
html body[data-view="product-listing-settings"] .product-listing-compliance-panel {
  display: grid !important;
  grid-template-columns: minmax(220px, .75fr) minmax(320px, 1.25fr) auto !important;
  align-items: center !important;
  gap: 22px !important;
  margin: 0 !important;
  padding: 22px 26px !important;
  border: 0 !important;
  border-top: 1px solid var(--v251-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
}
html body[data-view="product-listing-settings"] .product-sku-card-v249 {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 140px auto !important;
  align-items: end !important;
  gap: 14px !important;
  margin: 0 !important;
  padding: 15px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--v251-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
}
html body[data-view="product-listing-settings"] .product-sku-card-v249:last-child { border-bottom: 0 !important; }
html body[data-view="product-listing-settings"] .option-group-card,
html body[data-view="product-listing-settings"] .license-grant-summary,
html body[data-view="product-listing-settings"] .licensed-production-panel {
  border-color: var(--v251-line) !important;
  border-radius: 7px !important;
  background: rgba(255,255,255,.015) !important;
  box-shadow: none !important;
}

/* File listing: centered work area and readable creation controls. */
html body[data-view="file-listing-settings"] .page-inner { width: 100% !important; max-width: none !important; }
html body[data-view="file-listing-settings"] .fl188-root { margin: 0 !important; }
html body[data-view="file-listing-settings"] .fl188-root .page-shell {
  width: min(100%, 1240px) !important;
  max-width: 1240px !important;
  margin-inline: auto !important;
  padding: 8px 18px 124px !important;
}
html body[data-view="file-listing-settings"] .fl188-root .content-grid { grid-template-columns: minmax(0, 1fr) !important; }
html body[data-view="file-listing-settings"] .fl188-root .main-column { width: 100%; }
html body[data-view="file-listing-settings"] .fl188-root .side-column { position: static !important; width: 100%; }
html body[data-view="file-listing-settings"] .fl188-root .single-sku > summary b,
html body[data-view="file-listing-settings"] .fl188-root .manual-panel summary b { font-size: 16px !important; line-height: 1.35 !important; }
html body[data-view="file-listing-settings"] .fl188-root .single-sku > summary small,
html body[data-view="file-listing-settings"] .fl188-root .manual-panel summary small { margin-top: 4px !important; font-size: 12px !important; line-height: 1.5 !important; }
html body[data-view="file-listing-settings"] .fl188-root .single-sku > summary,
html body[data-view="file-listing-settings"] .fl188-root .manual-panel > details > summary { min-height: 78px !important; padding: 16px 20px !important; }
html body[data-view="file-listing-settings"] .fl188-root select,
html body[data-view="file-listing-settings"] .fl188-root input,
html body[data-view="file-listing-settings"] .fl188-root textarea { font-size: 15px !important; }
html body[data-view="file-listing-settings"] .fl188-root .check-options label { font-size: 13px !important; }

/* Legal and policy readers: one clear content plane instead of stacked cards. */
html body .legal-reader {
  width: min(760px, calc(100vw - 32px)) !important;
  max-height: min(88dvh, 820px) !important;
  padding: 26px !important;
  border: 1px solid var(--v251-line-strong) !important;
  border-radius: 12px !important;
  background: #0b131a !important;
  box-shadow: 0 22px 70px rgba(0,0,0,.5) !important;
}
html body .legal-reader header { padding: 0 44px 20px 0 !important; border-bottom: 1px solid var(--v251-line) !important; }
html body .legal-reader .legal-set-content,
html body .legal-reader .legal-reader-copy,
html body .legal-reader .legal-source-disclosure,
html body .legal-reader .legal-backend-comment,
html body .legal-reader .legal-check {
  margin: 0 !important;
  padding: 18px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--v251-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body .legal-reader .legal-set-content ul { margin: 12px 0 0 !important; padding-left: 20px !important; }
html body .legal-reader .legal-set-content li { padding: 4px 0 !important; color: #d7dfe4 !important; font-size: 13px !important; line-height: 1.55 !important; }
html body .legal-reader-copy { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 20px !important; }
html body .legal-source-disclosure > summary { min-height: 0 !important; padding: 0 !important; }
html body .legal-reader footer { padding: 18px 0 0 !important; }
html body .legal-close,
html body .modal-close,
html body [data-unframed-danger-control="true"] {
  color: var(--v251-red) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .policy-library-v251 { display: grid; gap: 0; }
html body .policy-library-v251 > p { margin: 6px 0 18px; color: var(--v251-muted); font-size: 13px; line-height: 1.55; }
html body .policy-library-section-v251 { padding: 16px 0; border-top: 1px solid var(--v251-line); }
html body .policy-library-section-v251 > strong { display: block; margin-bottom: 10px; color: var(--v251-text); font-size: 13px; }
html body .policy-library-grid-v251 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--v251-line); border-radius: 8px; overflow: hidden; }
html body .policy-library-grid-v251 button { min-height: 54px; padding: 10px 13px; text-align: left; color: #dce3e7; border: 0; border-right: 1px solid var(--v251-line); border-bottom: 1px solid var(--v251-line); background: transparent; font-size: 13px; }
html body .policy-library-grid-v251 button:nth-child(2n) { border-right: 0; }
html body .policy-library-grid-v251 button:nth-last-child(-n+2) { border-bottom: 0; }
html body .policy-library-grid-v251 button:hover { color: #ffc16e; background: rgba(255,138,31,.06); }
html body .policy-document-v251 { color: #d8e0e4; }
html body .policy-document-v251 h3 { margin: 20px 0 8px; font-size: 16px; }
html body .policy-document-v251 p,
html body .policy-document-v251 li { color: #b9c4ca; font-size: 13px; line-height: 1.65; }

html body .policy-link { justify-content: space-between !important; text-align: left !important; }
html body .policy-link > span { color: var(--v251-orange); font-size: 20px; }
html body .legal-set-shortcuts-v251 { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--v251-line); }
html body .legal-set-shortcuts-v251 > span { color: var(--v251-muted); font-size: 12px; font-weight: 700; }
html body .legal-set-shortcuts-v251 > div { display: flex; gap: 7px; }
html body .legal-set-shortcuts-v251 button { width: 36px; height: 36px; color: #dce4e8; border: 1px solid var(--v251-line-strong); border-radius: 6px; background: transparent; font-size: 13px; font-weight: 800; }
html body .legal-set-shortcuts-v251 button:hover { color: #ffc16e; border-color: var(--v251-orange); }

/* Popup text must never touch its container edge. */
html body .modal { padding: clamp(25px, 4vw, 38px) !important; }
html body .modal .modal-title,
html body .modal .modal-desc,
html body .modal .order-detail-grid-v176,
html body .modal .form-group,
html body .modal .modal-actions { max-width: 100%; }
html body .order-modal-v251 .order-detail-grid-v176 { padding: 0 !important; border: 0 !important; border-top: 1px solid var(--v251-line) !important; border-radius: 0 !important; background: transparent !important; }
html body .order-modal-v251 .order-detail-grid-v176 > div { padding: 15px 0 !important; border-bottom: 1px solid var(--v251-line) !important; }

@media (max-width: 1100px) {
  html body .management-head-v251 { grid-template-columns: minmax(200px, 1fr) auto minmax(240px, 1fr); }
  html body .management-identity-v251,
  html body .management-toggle-v251,
  html body .management-actions-v251 { padding: 16px; }
  html body .management-primary-metrics-v251 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  html body .management-primary-metric-v251 { border-bottom: 1px solid var(--v251-line); }
  html body .management-primary-metric-v251:nth-child(2n) { border-right: 0; }
  html body .management-primary-metric-v251:nth-last-child(-n+2) { border-bottom: 0; }
  html body .management-list-zone-v251 .management-row-v222 { grid-template-columns: 60px minmax(180px, 1.2fr) minmax(150px, .8fr) auto 24px !important; }
  html body .order-row-v251 { grid-template-columns: minmax(170px, 1.1fr) minmax(140px, .8fr) auto; }
  html body .order-row-options-v251 { grid-column: 1 / 3; grid-row: 2; }
  html body .order-row-action-v251 { grid-column: 3; grid-row: 1 / 3; }
}

@media (max-width: 820px) {
  html body .management-head-v251 { grid-template-columns: minmax(0, 1fr) auto; }
  html body .management-identity-v251 { grid-column: 1 / -1; border-bottom: 1px solid var(--v251-line); }
  html body .management-toggle-v251 { justify-content: flex-start; border-left: 0; border-right: 1px solid var(--v251-line); }
  html body .management-actions-v251 { padding-block: 12px; }
  html body .management-secondary-strip-v251,
  html body .management-capacity-strip-v251,
  html body[data-view="file-management"] .management-secondary-strip-v251,
  html body[data-view="product-management"] .management-secondary-strip-v251,
  html body[data-view="product-management"] .management-capacity-strip-v251 { grid-template-columns: 1fr !important; }
  html body .management-secondary-strip-v251 > div,
  html body .management-capacity-strip-v251 > div { min-height: 58px; border-right: 0; border-bottom: 1px solid var(--v251-line); }
  html body .management-secondary-strip-v251 > div:last-child,
  html body .management-capacity-strip-v251 > div:last-child { border-bottom: 0; }
  html body .management-list-zone-v251 .management-row-v222 { grid-template-columns: 58px minmax(0, 1fr) auto 20px !important; min-height: 84px !important; padding-right: 12px !important; }
  html body .management-row-tags-v222 { display: none !important; }
  html body .management-row-stats-v222 { font-size: 11px !important; }
  html body[data-view="product-listing-settings"] .product-listing-primary-v2412,
  html body[data-view="product-listing-settings"] .product-listing-secondary-v2412 { grid-template-columns: 1fr !important; }
  html body[data-view="product-listing-settings"] .product-listing-primary-v2412 > *,
  html body[data-view="product-listing-settings"] .product-listing-secondary-v2412 > * { border-right: 0 !important; border-bottom: 1px solid var(--v251-line) !important; }
  html body[data-view="product-listing-settings"] .product-listing-secondary-v2412 > *:last-child { border-bottom: 0 !important; }
  html body[data-view="product-listing-settings"] .product-listing-compliance-panel { grid-template-columns: 1fr !important; }
  html body .seller-profile-head-v251 { grid-template-columns: 1fr !important; }
  html body .seller-profile-actions-v251 { justify-self: start; }
}

@media (max-width: 600px) {
  html body .management-page-head-v251 { margin-bottom: 13px !important; }
  html body .management-workspace-v251 { border-radius: 9px; }
  html body .management-head-v251 { grid-template-columns: 1fr; }
  html body .management-identity-v251,
  html body .management-toggle-v251,
  html body .management-actions-v251 { grid-column: 1; padding: 14px 15px; }
  html body .management-toggle-v251 { border: 0; border-bottom: 1px solid var(--v251-line); }
  html body .management-actions-v251 { justify-content: flex-end; }
  html body .management-capacity-button-v251 { margin-right: auto; padding-inline: 11px; }
  html body .management-primary-metrics-v251 { grid-template-columns: 1fr !important; }
  html body .management-primary-metric-v251 { min-height: 92px; padding: 15px; border-right: 0; border-bottom: 1px solid var(--v251-line) !important; }
  html body .management-primary-metric-v251:last-child { border-bottom: 0 !important; }
  html body .management-primary-metric-v251 > strong,
  html body .management-metric-heading-v251 strong { font-size: 24px; }
  html body .management-secondary-strip-v251 > div,
  html body .management-capacity-strip-v251 > div { padding-inline: 15px; }
  html body .management-tabs-v251 { overflow-x: auto; }
  html body .management-tabs-v251 > button { min-width: max-content; padding-inline: 14px !important; }
  html body .management-tabs-v251 .management-history-link-v251 { margin-left: 0; }
  html body .management-list-zone-v251 .management-row-v222 { grid-template-columns: 54px minmax(0, 1fr) 18px !important; }
  html body .management-row-stats-v222 { display: none !important; }
  html body .management-row-primary-v222 { padding-left: 13px; }
  html body .order-row-v251 { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; padding: 14px; }
  html body .order-row-buyer-v251,
  html body .order-row-options-v251 { grid-column: 1 / -1; grid-row: auto; }
  html body .order-row-status-v251 { grid-column: 2; grid-row: 1; }
  html body .order-row-controls-v251 { display: contents; }
  html body .order-row-action-v251 { grid-column: 1 / -1; grid-row: auto; justify-self: stretch; width: 100%; }
  html body .detail-license-studio-v251 { grid-template-columns: 1fr auto; }
  html body .detail-license-studio-v251 > span { grid-column: 1 / -1; }
  html body .detail-seller-stats-v2417 { grid-template-columns: 1fr !important; }
  html body .seller-profile-head-v251 { padding: 20px 16px !important; }
  html body .seller-profile-actions-v251 { display: grid !important; width: 100%; grid-template-columns: 1fr; }
  html body .seller-profile-actions-v251 .btn { width: 100%; }
  html body[data-view="product-listing-settings"] .product-listing-primary-v2412 > *,
  html body[data-view="product-listing-settings"] .product-listing-secondary-v2412 > *,
  html body[data-view="product-listing-settings"] .product-listing-compliance-panel { padding: 18px 15px !important; }
  html body[data-view="product-listing-settings"] .product-sku-card-v249 { grid-template-columns: 1fr !important; align-items: stretch !important; }
  html body[data-view="product-listing-settings"] .product-sku-delete-v249 { width: 100%; }
  html body[data-view="file-listing-settings"] .fl188-root .page-shell { padding-inline: 0 !important; }
  html body[data-view="file-listing-settings"] .fl188-root .single-sku > summary b,
  html body[data-view="file-listing-settings"] .fl188-root .manual-panel summary b { font-size: 15px !important; }
  html body .legal-reader { width: min(100%, calc(100vw - 14px)) !important; max-height: calc(100dvh - 14px) !important; padding: 21px 16px !important; border-radius: 9px !important; }
  html body .legal-reader-copy { display: grid !important; }
  html body .policy-library-grid-v251 { grid-template-columns: 1fr; }
  html body .policy-library-grid-v251 button { border-right: 0 !important; border-bottom: 1px solid var(--v251-line) !important; }
  html body .policy-library-grid-v251 button:last-child { border-bottom: 0 !important; }
  html body .modal { width: min(100%, calc(100vw - 14px)) !important; padding: 28px 16px 20px !important; }
}

@media (prefers-reduced-motion: reduce) {
  html body .management-settings-v251:hover,
  html body .detail-media-action-v2417:hover { transform: none !important; }
}
