/*
 * 3D StudioMarket — Universal Marketplace UI v25.0 FULL
 * A final responsive layer for listing compliance, seller workspaces,
 * plan storage, popup spacing and deterministic navigation controls.
 */

:root {
  --sw18-yellow: #f6b915;
  --sw18-yellow-hi: #ffd45d;
  --sw18-yellow-soft: rgba(246, 185, 21, .11);
  --sw18-red: #ff5d68;
  --sw18-red-hi: #ff7d85;
  --sw18-red-soft: rgba(255, 93, 104, .11);
  --sw18-line: #2b3945;
  --sw18-line-strong: #3b4a57;
  --sw18-surface: #0d151e;
  --sw18-surface-2: #111c26;
  --sw18-text: #f4f6f7;
  --sw18-soft: #d4dbe0;
  --sw18-muted: #8f9ba5;
}

html body #topbarLeftBtn {
  position: relative !important;
  z-index: 5 !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
}

html body #topbarLeftBtn:focus-visible,
html body .management-settings-icon-v2418:focus-visible {
  outline: 2px solid var(--sw18-yellow-hi) !important;
  outline-offset: 4px !important;
}

/* --------------------------------------------------------------------------
   Listing compliance — one orderly row in the main information flow
   -------------------------------------------------------------------------- */

html body[data-view="file-listing-settings"] .fl188-root .content-grid {
  display: block !important;
  grid-template-columns: 1fr !important;
}

html body[data-view="file-listing-settings"] .fl188-root .main-column {
  width: 100% !important;
}

html body .listing-compliance-row-v2418,
html body .product-listing-compliance-panel.listing-compliance-row-v2418 {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(240px, .8fr) minmax(360px, 1.35fr) minmax(190px, .65fr) !important;
  align-items: stretch !important;
  gap: 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--sw18-line) !important;
  border-top: 2px solid var(--sw18-yellow) !important;
  border-radius: 12px !important;
  background: var(--sw18-surface) !important;
  box-shadow: none !important;
}

html body .listing-compliance-intro-v2418,
html body .product-compliance-copy.listing-compliance-intro-v2418 {
  min-width: 0 !important;
  padding: 17px 18px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

html body .listing-compliance-intro-v2418 > div {
  min-width: 0 !important;
}

html body .listing-compliance-intro-v2418 .legal-set-mark {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  display: grid !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 9px !important;
  color: #221600 !important;
  background: var(--sw18-yellow) !important;
  font-size: 16px !important;
  font-weight: 900 !important;
}

html body .listing-compliance-intro-v2418 :is(.eyebrow, .section-kicker) {
  margin: 0 0 3px !important;
  color: var(--sw18-yellow-hi) !important;
  font-size: 10px !important;
  letter-spacing: .08em !important;
}

html body .listing-compliance-intro-v2418 h3 {
  margin: 0 !important;
  color: var(--sw18-text) !important;
  font-size: 17px !important;
  line-height: 1.25 !important;
}

html body .listing-compliance-intro-v2418 p:last-child {
  margin: 5px 0 0 !important;
  color: var(--sw18-muted) !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

html body .listing-compliance-check-v2418.product-compliance-check {
  min-width: 0 !important;
  min-height: 100% !important;
  margin: 0 !important;
  padding: 17px 18px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  border: 0 !important;
  border-left: 1px solid var(--sw18-line) !important;
  border-radius: 0 !important;
  color: var(--sw18-soft) !important;
  background: rgba(255, 255, 255, .012) !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}

html body .listing-compliance-check-v2418 input {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  accent-color: var(--sw18-yellow) !important;
}

html body .listing-compliance-links-v2418 {
  min-width: 0 !important;
  padding: 14px 17px !important;
  display: grid !important;
  align-content: center !important;
  gap: 9px !important;
  border-left: 1px solid var(--sw18-line) !important;
}

html body .listing-compliance-links-v2418 .legal-inline-link {
  width: 100% !important;
  min-height: 32px !important;
  padding: 0 !important;
  border: 0 !important;
  color: var(--sw18-yellow-hi) !important;
  background: transparent !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  line-height: 1.35 !important;
  text-align: left !important;
}

/* --------------------------------------------------------------------------
   Product / File management — new workspace summary with straight dividers
   -------------------------------------------------------------------------- */

html body .management-workspace-v2418 {
  width: 100% !important;
  min-width: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--sw18-line) !important;
  border-radius: 13px !important;
  background: var(--sw18-surface) !important;
  box-shadow: none !important;
}

html body .management-workspace-head-v2418 {
  min-width: 0 !important;
  min-height: 76px !important;
  padding: 13px 17px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  border-bottom: 1px solid var(--sw18-line) !important;
}

html body .management-identity-v2418 {
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

html body .management-identity-v2418 .management-name-line-v161 {
  display: grid !important;
  gap: 2px !important;
}

html body .management-identity-v2418 .management-name-line-v161 strong {
  position: relative !important;
  min-width: 0 !important;
  padding-left: 13px !important;
  overflow: hidden !important;
  color: var(--sw18-text) !important;
  font-size: clamp(20px, 2vw, 27px) !important;
  line-height: 1.18 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .management-identity-v2418 .management-name-line-v161 strong::before {
  inset: 2px auto 2px 0 !important;
  width: 3px !important;
  border-radius: 3px !important;
  background: var(--sw18-yellow) !important;
}

html body .management-identity-v2418 .management-name-line-v161 .muted {
  padding-left: 13px !important;
  color: var(--sw18-muted) !important;
  font-size: 12px !important;
}

html body .management-workspace-controls-v2418 {
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 11px !important;
}

html body .management-status-v2418 {
  min-width: 188px !important;
  padding-right: 15px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  border-right: 1px solid var(--sw18-line) !important;
}

html body .management-status-v2418 > div {
  min-width: 0 !important;
  display: grid !important;
  justify-items: end !important;
  gap: 1px !important;
}

html body .management-status-v2418 span,
html body .management-feature-v2418 .metric-copy-v2415 > span,
html body .management-stat-v2418 > span,
html body .management-commercial-strip-v2418 .management-metric-v161 > span {
  color: var(--sw18-muted) !important;
  font-family: inherit !important;
  font-size: 11px !important;
  font-weight: 760 !important;
  letter-spacing: .025em !important;
  text-transform: uppercase !important;
}

html body .management-status-v2418 strong {
  color: var(--sw18-text) !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
}

html body .management-status-v2418 small {
  color: var(--sw18-muted) !important;
  font-size: 10px !important;
}

html body .management-status-v2418 .shop-toggle-v162 input + span,
html body .management-status-v2418 .shop-toggle-v162 span {
  border-color: rgba(246, 185, 21, .48) !important;
}

html body .management-status-v2418 .shop-toggle-v162 input:checked + span {
  border-color: var(--sw18-yellow) !important;
  background: var(--sw18-yellow) !important;
  box-shadow: none !important;
}

html body .management-settings-icon-v2418,
html body .management-gear-v161.management-settings-icon-v2418 {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--sw18-yellow-hi) !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

html body .management-settings-icon-v2418:hover {
  color: #fff0b8 !important;
  background: transparent !important;
  transform: rotate(18deg) !important;
}

html body .management-settings-icon-v2418 svg {
  width: 23px !important;
  height: 23px !important;
}

html body .management-withdraw-v2418 {
  min-height: 42px !important;
  padding-inline: 17px !important;
  border-color: var(--sw18-line-strong) !important;
  color: var(--sw18-soft) !important;
  background: transparent !important;
}

html body .management-overview-v2418 {
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(300px, 1.08fr) minmax(0, 1fr) !important;
  border-bottom: 1px solid var(--sw18-line) !important;
}

html body .management-feature-v2418.behavior-ops-metric {
  min-width: 0 !important;
  min-height: 128px !important;
  padding: 18px 20px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-content: center !important;
  column-gap: 20px !important;
  row-gap: 12px !important;
  border: 0 !important;
  border-right: 1px solid var(--sw18-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
}

html body .management-feature-v2418 .metric-copy-v2415 {
  min-width: 0 !important;
  display: grid !important;
  gap: 3px !important;
}

html body .management-feature-v2418 .metric-copy-v2415 > strong {
  color: var(--sw18-text) !important;
  font-size: clamp(21px, 2.1vw, 30px) !important;
  line-height: 1.12 !important;
}

html body .management-feature-v2418 .metric-copy-v2415 > small,
html body .management-stat-v2418 > small,
html body .management-commercial-strip-v2418 .management-metric-v161 > small {
  color: var(--sw18-muted) !important;
  font-size: 11px !important;
  line-height: 1.4 !important;
}

html body .management-feature-v2418 .compact-progress-label-v2416 {
  min-width: 78px !important;
  display: grid !important;
  justify-items: end !important;
  align-content: center !important;
  gap: 2px !important;
}

html body .management-feature-v2418 .compact-progress-label-v2416 span {
  color: var(--sw18-muted) !important;
  font-size: 10px !important;
}

html body .management-feature-v2418 .compact-progress-label-v2416 strong {
  color: var(--sw18-yellow-hi) !important;
  font-size: 20px !important;
}

html body .management-feature-v2418 .compact-management-progress-v2416 {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  height: 8px !important;
  overflow: hidden !important;
  border-radius: 999px !important;
  background: #23313d !important;
}

html body .management-feature-v2418 .compact-management-progress-v2416 > i {
  background: linear-gradient(90deg, var(--sw18-yellow), var(--sw18-yellow-hi)) !important;
  box-shadow: none !important;
}

html body .management-stat-rail-v2418 {
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

html body .management-stat-v2418 {
  min-width: 0 !important;
  min-height: 128px !important;
  padding: 18px 20px !important;
  display: grid !important;
  align-content: center !important;
  gap: 6px !important;
}

html body .management-stat-v2418 + .management-stat-v2418 {
  border-left: 1px solid var(--sw18-line) !important;
}

html body .management-stat-v2418 > strong {
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
  color: var(--sw18-text) !important;
  font-size: clamp(18px, 1.5vw, 23px) !important;
  line-height: 1.2 !important;
}

html body .management-stat-alert-v2418 > strong,
html body .management-stat-alert-v2418 > small {
  color: var(--sw18-red-hi) !important;
}

html body .management-stat-alert-v2418 small i {
  width: 7px !important;
  height: 7px !important;
  margin-right: 6px !important;
  display: inline-block !important;
  border-radius: 50% !important;
  background: var(--sw18-red) !important;
}

html body .management-commercial-strip-v2418,
html body[data-view="product-management"] .management-commercial-strip-v2418,
html body[data-view="file-management"] .management-commercial-strip-v2418 {
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

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

html body .management-commercial-strip-v2418 .management-metric-v161 {
  min-width: 0 !important;
  min-height: 79px !important;
  padding: 14px 17px !important;
  display: grid !important;
  align-content: center !important;
  gap: 4px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

html body .management-commercial-strip-v2418 .management-metric-v161 + .management-metric-v161 {
  border-left: 1px solid var(--sw18-line) !important;
}

html body .management-commercial-strip-v2418 .management-metric-v161 > strong {
  min-width: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  color: var(--sw18-soft) !important;
  font-family: inherit !important;
  font-size: clamp(14px, 1.15vw, 17px) !important;
  line-height: 1.25 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* --------------------------------------------------------------------------
   Plan storage — horizontal information hierarchy and linear progress
   -------------------------------------------------------------------------- */

html body[data-view="plan"] .plan-summary-primary-v2412 {
  display: grid !important;
  grid-template-columns: minmax(145px, .65fr) minmax(360px, 1.7fr) minmax(160px, .75fr) minmax(190px, .85fr) !important;
  gap: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--sw18-line) !important;
  border-radius: 13px !important;
  background: var(--sw18-surface) !important;
}

html body[data-view="plan"] .plan-summary-primary-v2412 > div,
html body[data-view="plan"] .plan-summary-primary-v2412 > div:nth-child(n) {
  min-width: 0 !important;
  min-height: 112px !important;
  padding: 18px 20px !important;
  display: grid !important;
  align-content: center !important;
  gap: 5px !important;
  border: 0 !important;
  border-left: 1px solid var(--sw18-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
}

html body[data-view="plan"] .plan-summary-primary-v2412 > div:first-child {
  border-left: 0 !important;
}

html body[data-view="plan"] .plan-storage-horizontal-v2418 {
  grid-template-columns: 1fr !important;
  justify-items: stretch !important;
  text-align: left !important;
}

html body[data-view="plan"] .plan-storage-heading-v2418,
html body[data-view="plan"] .plan-storage-progress-v2416 .future-progress-labels {
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
}

html body[data-view="plan"] .plan-storage-heading-v2418 span,
html body[data-view="plan"] .plan-storage-progress-v2416 .future-progress-labels span {
  color: var(--sw18-muted) !important;
  font-size: 11px !important;
}

html body[data-view="plan"] .plan-storage-heading-v2418 strong {
  margin: 0 !important;
  color: var(--sw18-text) !important;
  font-size: 18px !important;
  text-align: right !important;
}

html body[data-view="plan"] .plan-storage-progress-v2416 {
  width: 100% !important;
  display: grid !important;
  gap: 7px !important;
}

html body[data-view="plan"] .plan-storage-progress-v2416 .future-progress-labels strong {
  color: var(--sw18-yellow-hi) !important;
  font-size: 14px !important;
}

html body[data-view="plan"] #planStorageTrack {
  width: 100% !important;
  height: 9px !important;
  overflow: hidden !important;
  border-radius: 999px !important;
  background: #24323e !important;
}

html body[data-view="plan"] #planStorageFill {
  background: linear-gradient(90deg, var(--sw18-yellow), var(--sw18-yellow-hi)) !important;
  box-shadow: none !important;
}

/* --------------------------------------------------------------------------
   Popup spacing — consistent safe areas, including the last information block
   -------------------------------------------------------------------------- */

html body .modal,
html body .modal.modal-wide,
html body .modal.minimal-purchase-modal {
  padding: 30px 32px 28px !important;
}

html body .modal > :not(.modal-close),
html body .minimal-purchase-modal > :not(.modal-close),
html body .modal-shell > :not(.icon-btn) {
  min-width: 0 !important;
}

html body .purchase-summary-card,
html body .order-detail-grid-v176,
html body .latest-summary-list,
html body .legal-set-content,
html body .legal-reader-copy,
html body .legal-source-disclosure,
html body .legal-backend-comment,
html body .legal-check,
html body .notice {
  box-sizing: border-box !important;
}

html body .purchase-summary-card > div,
html body .order-detail-grid-v176 > div,
html body .latest-summary-row {
  min-height: 52px !important;
  padding: 12px 16px !important;
}

html body .legal-reader {
  padding: 26px !important;
}

html body .legal-reader > header {
  padding: 0 4px 18px !important;
}

html body .legal-set-content {
  margin-top: 18px !important;
  padding: 18px 20px !important;
}

html body .legal-set-content ul {
  margin: 12px 0 0 !important;
  padding-left: 22px !important;
}

html body .legal-set-content li {
  padding-left: 3px !important;
  line-height: 1.58 !important;
}

html body .legal-reader-copy {
  min-height: 74px !important;
  margin-top: 13px !important;
  padding: 15px 18px !important;
  align-items: center !important;
  gap: 14px !important;
}

html body .legal-source-disclosure {
  margin: 13px 0 0 !important;
  overflow: hidden !important;
}

html body .legal-source-disclosure > summary {
  min-height: 68px !important;
  padding: 15px 18px !important;
}

html body .legal-source-disclosure .legal-doc-list {
  padding: 10px 14px 14px !important;
}

html body .legal-source-disclosure .legal-doc {
  min-height: 60px !important;
  padding: 12px 14px !important;
}

html body .legal-backend-comment {
  margin-top: 13px !important;
  padding: 15px 18px !important;
}

html body .legal-check {
  margin-top: 13px !important;
  padding: 15px 18px !important;
}

html body .legal-reader > footer {
  margin-top: 16px !important;
  padding: 16px 4px 0 !important;
}

html body .notice {
  padding: 14px 16px !important;
  line-height: 1.55 !important;
}

html body .modal-actions {
  margin-top: 20px !important;
  padding-top: 16px !important;
}

html body .fl188-root .parameter-shell {
  overflow: hidden !important;
}

html body .fl188-root .parameter-head,
html body .fl188-root .parameter-toolbar,
html body .fl188-root .parameter-summary,
html body .fl188-root .parameter-footer {
  padding-inline: 20px !important;
}

html body .fl188-root .parameter-groups {
  padding: 14px 18px 20px !important;
}

html body .fl188-root .confirm-dialog form {
  padding: 24px !important;
}

/* --------------------------------------------------------------------------
   Responsive structure
   -------------------------------------------------------------------------- */

@media (max-width: 1120px) {
  html body .listing-compliance-row-v2418,
  html body .product-listing-compliance-panel.listing-compliance-row-v2418 {
    grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr) !important;
  }

  html body .listing-compliance-links-v2418 {
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    border-top: 1px solid var(--sw18-line) !important;
    border-left: 0 !important;
  }

  html body .listing-compliance-links-v2418 .legal-inline-link {
    width: auto !important;
    flex: 1 1 220px !important;
  }

  html body .management-overview-v2418 {
    grid-template-columns: 1fr !important;
  }

  html body .management-feature-v2418.behavior-ops-metric {
    border-right: 0 !important;
    border-bottom: 1px solid var(--sw18-line) !important;
  }

  html body[data-view="plan"] .plan-summary-primary-v2412 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html body[data-view="plan"] .plan-summary-primary-v2412 > div:nth-child(odd) {
    border-left: 0 !important;
  }

  html body[data-view="plan"] .plan-summary-primary-v2412 > div:nth-child(n+3) {
    border-top: 1px solid var(--sw18-line) !important;
  }

  html body[data-view="plan"] .plan-storage-horizontal-v2418 {
    grid-column: span 1 !important;
  }
}

@media (max-width: 900px) {
  html body .management-workspace-head-v2418 {
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  html body .management-workspace-controls-v2418 {
    width: 100% !important;
    justify-content: flex-start !important;
  }

  html body .management-status-v2418 {
    margin-right: auto !important;
    justify-content: flex-start !important;
    border-right: 0 !important;
  }

  html body .management-status-v2418 > div {
    justify-items: start !important;
  }

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

  html body .management-commercial-strip-v2418 .management-metric-v161:nth-child(n) {
    border: 0 !important;
    border-top: 1px solid var(--sw18-line) !important;
  }

  html body .management-commercial-strip-v2418 .management-metric-v161:nth-child(-n+2) {
    border-top: 0 !important;
  }

  html body .management-commercial-strip-v2418 .management-metric-v161:nth-child(even) {
    border-left: 1px solid var(--sw18-line) !important;
  }

  html body[data-view="product-management"] .management-commercial-strip-v2418 .management-metric-v161:last-child {
    grid-column: 1 / -1 !important;
    border-left: 0 !important;
  }
}

@media (max-width: 720px) {
  html body .listing-compliance-row-v2418,
  html body .product-listing-compliance-panel.listing-compliance-row-v2418 {
    grid-template-columns: 1fr !important;
  }

  html body .listing-compliance-check-v2418.product-compliance-check {
    min-height: 0 !important;
    border-top: 1px solid var(--sw18-line) !important;
    border-left: 0 !important;
  }

  html body .listing-compliance-links-v2418 {
    grid-column: 1 !important;
    display: grid !important;
  }

  html body .listing-compliance-links-v2418 .legal-inline-link {
    width: 100% !important;
  }

  html body .management-workspace-head-v2418 {
    min-height: 0 !important;
    padding: 14px !important;
    gap: 14px !important;
  }

  html body .management-workspace-controls-v2418 {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 42px auto !important;
    gap: 8px !important;
  }

  html body .management-status-v2418 {
    min-width: 0 !important;
    padding: 0 !important;
  }

  html body .management-status-v2418 small {
    display: none !important;
  }

  html body .management-feature-v2418.behavior-ops-metric {
    min-height: 116px !important;
    padding: 16px !important;
  }

  html body .management-stat-v2418 {
    min-height: 104px !important;
    padding: 15px !important;
  }

  html body[data-view="plan"] .plan-summary-primary-v2412 {
    grid-template-columns: 1fr !important;
  }

  html body[data-view="plan"] .plan-summary-primary-v2412 > div,
  html body[data-view="plan"] .plan-summary-primary-v2412 > div:nth-child(n) {
    min-height: 76px !important;
    padding: 15px 17px !important;
    border-top: 1px solid var(--sw18-line) !important;
    border-left: 0 !important;
  }

  html body[data-view="plan"] .plan-summary-primary-v2412 > div:first-child {
    border-top: 0 !important;
  }

  html body[data-view="plan"] .plan-storage-horizontal-v2418 {
    min-height: 118px !important;
  }

  html body .modal,
  html body .modal.modal-wide,
  html body .modal.minimal-purchase-modal {
    width: min(calc(100vw - 18px), 100%) !important;
    max-height: calc(100dvh - 18px) !important;
    padding: 28px 17px 20px !important;
  }

  html body .legal-reader {
    width: min(calc(100vw - 16px), 100%) !important;
    max-height: calc(100dvh - 16px) !important;
    padding: 20px 16px !important;
  }

  html body .legal-set-content,
  html body .legal-reader-copy,
  html body .legal-backend-comment,
  html body .legal-check {
    padding: 14px 15px !important;
  }

  html body .legal-source-disclosure > summary {
    min-height: 64px !important;
    padding: 14px 15px !important;
  }

  html body .legal-source-disclosure .legal-doc-list {
    padding: 8px 10px 12px !important;
  }
}

@media (max-width: 500px) {
  html body .management-identity-v2418 .management-name-line-v161 strong {
    font-size: 20px !important;
  }

  html body .management-workspace-controls-v2418 {
    grid-template-columns: minmax(0, 1fr) 40px !important;
  }

  html body .management-withdraw-v2418 {
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }

  html body .management-stat-rail-v2418 {
    grid-template-columns: 1fr !important;
  }

  html body .management-stat-v2418 + .management-stat-v2418 {
    border-top: 1px solid var(--sw18-line) !important;
    border-left: 0 !important;
  }

  html body .management-commercial-strip-v2418 .management-metric-v161 {
    min-height: 72px !important;
    padding: 12px 13px !important;
  }

  html body .management-commercial-strip-v2418 .management-metric-v161 > strong {
    font-size: 13px !important;
  }

  html body .legal-reader-copy {
    display: grid !important;
  }

  html body .legal-source-disclosure > summary {
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  html body .legal-source-disclosure > summary small {
    text-align: left !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .management-settings-icon-v2418 {
    transition: none !important;
  }

  html body .management-settings-icon-v2418:hover {
    transform: none !important;
  }
}
