/* MIUSILI admin workbench system
 * A single component layer for every opted-in admin surface. Business markup,
 * data, routes, permissions and native event handlers remain unchanged. */

body.muse-workbench-unified {
  --mwb-bg: #fafafa;
  --mwb-surface: #ffffff;
  --mwb-inset: #f4f4f4;
  --mwb-hover: #f7f7f7;
  --mwb-text: #0a0a0a;
  --mwb-body: #262626;
  --mwb-muted: #737373;
  --mwb-subtle: #a3a3a3;
  --mwb-border: #e5e5e5;
  --mwb-border-strong: #d4d4d4;
  --mwb-danger: #dc2626;
  --mwb-warning: #d97706;
  --mwb-success: #16803c;
  --mwb-control-height: 32px;
  --mwb-control-radius: 6px;
  --mwb-panel-radius: 10px;
  --mwb-popup-radius: 12px;
  color: var(--mwb-body);
  background: var(--mwb-bg);
  font-family: "Muse Ref Inter", "Muse Ref Noto", "Microsoft YaHei", sans-serif;
  font-size: 13px;
  line-height: 20px;
  color-scheme: light;
  text-rendering: optimizeLegibility;
}

body.muse-workbench-unified ::selection {
  color: #fff;
  background: #262626;
}

body.muse-workbench-unified :where(.content-right, #muse-ops, .am-popup, .am-modal-dialog) {
  color: var(--mwb-body);
}

body.muse-workbench-unified :where(.content-right, #muse-ops, .am-popup, .am-modal-dialog)
  :where(div, p, span, a, label, input, select, textarea, button, th, td):not(.iconfont):not([class*="am-icon-"]):not(.edui-default):not([class*="w-e-"]) {
  font-family: inherit;
}

body.muse-workbench-unified:not(.admin-diy-saveinfo):not(.admin-diy-preview):not(.admin-error-tips)
  :is(.content-right > .content, .am-form-table-data-container.content-right > .content, .content-right > #muse-ops) {
  box-sizing: border-box;
  min-height: 100vh;
  padding: 20px !important;
  background: var(--mwb-surface);
}

body.muse-workbench-unified:is(.muse-v4-ops, .muse-v4-special-page) .content-right > #muse-ops {
  padding: 20px !important;
}

/* Shared page identity */
body.muse-workbench-unified .muse-reference-page-head,
body.muse-workbench-unified .muse-workbench-page-head {
  box-sizing: border-box;
  width: auto;
  margin: -20px -20px 20px !important;
  padding: 18px 20px 16px !important;
  color: var(--mwb-text);
  background: var(--mwb-surface);
  border: 0 !important;
  border-bottom: 1px solid var(--mwb-border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.muse-workbench-unified .muse-reference-page-head h1,
body.muse-workbench-unified .muse-workbench-page-head h1 {
  margin: 0 !important;
  color: var(--mwb-text) !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  line-height: 30px !important;
  letter-spacing: -0.02em;
}

body.muse-workbench-unified .muse-reference-page-head p,
body.muse-workbench-unified .muse-workbench-page-head p {
  max-width: 72ch;
  margin: 4px 0 0 !important;
  color: var(--mwb-muted) !important;
  font-size: 12px !important;
  line-height: 18px !important;
}

body.muse-workbench-unified .muse-reference-page-head .muse-reference-crumb,
body.muse-workbench-unified .muse-workbench-page-head .muse-reference-crumb {
  margin: 0 0 2px !important;
  color: var(--mwb-muted) !important;
  font-size: 11px !important;
  line-height: 16px !important;
}

body.muse-workbench-unified .muse-workbench-legacy-title {
  display: none !important;
}

/* Toolbar and action hierarchy */
body.muse-workbench-unified :is(.form-table-operate-top, .form-table-operate-bottom) {
  box-sizing: border-box;
  min-height: var(--mwb-control-height);
  margin-bottom: 14px;
  gap: 8px;
}

body.muse-workbench-unified :where(.content-right, #muse-ops, .am-popup, .am-modal-dialog)
  .am-btn:not(.am-btn-link),
body.muse-workbench-unified #muse-ops .muse-btn {
  box-sizing: border-box;
  min-height: var(--mwb-control-height);
  padding: 0 12px;
  color: var(--mwb-body);
  background: #fff;
  border: 1px solid var(--mwb-border-strong);
  border-radius: var(--mwb-control-radius) !important;
  box-shadow: none !important;
  font-size: 13px;
  font-weight: 500;
  line-height: 30px;
  text-shadow: none;
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

body.muse-workbench-unified :where(.content-right, #muse-ops, .am-popup, .am-modal-dialog)
  .am-btn:not(.am-btn-link):not(.am-btn-xs):not(.am-btn-sm) {
  height: var(--mwb-control-height);
}

body.muse-workbench-unified :where(.content-right, #muse-ops, .am-popup, .am-modal-dialog)
  .am-btn:not(.am-btn-link):hover,
body.muse-workbench-unified #muse-ops .muse-btn:hover {
  color: var(--mwb-text);
  background: var(--mwb-hover);
  border-color: #bdbdbd;
}

body.muse-workbench-unified :where(.content-right, #muse-ops, .am-popup, .am-modal-dialog)
  :is(.am-btn-primary, .am-btn-success):not(:disabled):not(.am-disabled),
body.muse-workbench-unified #muse-ops :is(.muse-btn-primary, .muse-btn-save):not(:disabled) {
  color: #fff !important;
  background: #171717 !important;
  border-color: #171717 !important;
}

body.muse-workbench-unified :where(.content-right, #muse-ops, .am-popup, .am-modal-dialog)
  :is(.am-btn-primary, .am-btn-success):not(:disabled):not(.am-disabled):hover,
body.muse-workbench-unified #muse-ops :is(.muse-btn-primary, .muse-btn-save):not(:disabled):hover {
  background: #000 !important;
  border-color: #000 !important;
}

body.muse-workbench-unified :where(.content-right, #muse-ops, .am-popup, .am-modal-dialog)
  :is(.am-btn-secondary, .am-btn-default, .am-btn-default-plain):not(.am-btn-danger) {
  color: var(--mwb-body) !important;
  background: #fff !important;
  border-color: var(--mwb-border-strong) !important;
}

body.muse-workbench-unified :where(.content-right, #muse-ops, .am-popup, .am-modal-dialog)
  :is(.am-btn-danger, .submit-delete):not(:disabled):not(.am-disabled) {
  color: var(--mwb-danger) !important;
  background: #fff !important;
  border-color: #fecaca !important;
}

body.muse-workbench-unified :where(.content-right, #muse-ops, .am-popup, .am-modal-dialog)
  :is(.am-btn-danger, .submit-delete):not(:disabled):not(.am-disabled):hover {
  color: #fff !important;
  background: var(--mwb-danger) !important;
  border-color: var(--mwb-danger) !important;
}

body.muse-workbench-unified :where(.content-right, #muse-ops, .am-popup, .am-modal-dialog)
  .am-btn:is(.am-btn-xs, .am-btn-sm) {
  min-height: 28px;
  padding: 0 9px;
  font-size: 12px;
  line-height: 26px;
}

body.muse-workbench-unified :where(.content-right, #muse-ops, .am-popup, .am-modal-dialog)
  .am-btn:is(:disabled, .am-disabled) {
  color: var(--mwb-subtle) !important;
  background: #f5f5f5 !important;
  border-color: var(--mwb-border) !important;
  cursor: not-allowed;
  opacity: 1;
}

/* Forms and enhanced controls */
body.muse-workbench-unified :where(.content-right, #muse-ops, .am-popup, .am-modal-dialog)
  :is(input, select, textarea):not([type="hidden"]):not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="color"]):not([type="range"]):not([type="image"]):not([data-am-tagsinput]):not(.ace_text-input):not(#editor-tag):not(.am-tagsinput *):not(.chosen-container *):not(.edui-default *):not(.ace_editor *):not(.CodeMirror *):not(.plug-file-upload-submit *) {
  box-sizing: border-box;
  color: var(--mwb-body);
  background: #fff;
  border: 1px solid var(--mwb-border-strong) !important;
  border-radius: var(--mwb-control-radius) !important;
  box-shadow: none !important;
  font-size: 13px !important;
  line-height: 20px;
}

body.muse-workbench-unified :where(.content-right, #muse-ops, .am-popup, .am-modal-dialog)
  :is(input, select):not([type="hidden"]):not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="color"]):not([type="range"]):not([type="image"]):not([data-am-tagsinput]):not(.ace_text-input):not(.am-tagsinput *):not(.chosen-container *):not(.edui-default *):not(.ace_editor *):not(.CodeMirror *):not(.plug-file-upload-submit *) {
  height: var(--mwb-control-height) !important;
  min-height: var(--mwb-control-height) !important;
  padding: 5px 10px !important;
}

body.muse-workbench-unified :where(.content-right, #muse-ops, .am-popup, .am-modal-dialog)
  textarea:not(#editor-tag):not(.am-tagsinput *):not(.chosen-container *):not(.edui-default *):not(.ace_editor *):not(.CodeMirror *) {
  min-height: 88px !important;
  padding: 8px 10px !important;
  resize: vertical;
}

body.muse-workbench-unified :where(.content-right, #muse-ops, .am-popup, .am-modal-dialog)
  :is(input, select, textarea)::placeholder {
  color: #737373;
  opacity: 1;
}

body.muse-workbench-unified :where(.content-right, #muse-ops, .am-popup, .am-modal-dialog)
  :is(input, select, textarea):disabled {
  color: var(--mwb-muted);
  background: #f5f5f5;
  cursor: not-allowed;
}

body.muse-workbench-unified :where(.content-right, #muse-ops, .am-popup, .am-modal-dialog)
  .am-form-group > label:not(.am-radio-inline):not(.am-checkbox-inline) {
  color: var(--mwb-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
}

body.muse-workbench-unified input[type="checkbox"],
body.muse-workbench-unified input[type="radio"] {
  accent-color: #171717;
}

body.muse-workbench-unified .chosen-container-single .chosen-single,
body.muse-workbench-unified .am-selected > .am-btn {
  box-sizing: border-box;
  height: var(--mwb-control-height) !important;
  padding: 0 10px !important;
  color: var(--mwb-body) !important;
  background: #fff !important;
  border: 1px solid var(--mwb-border-strong) !important;
  border-radius: var(--mwb-control-radius) !important;
  box-shadow: none !important;
  font-size: 13px !important;
  line-height: 30px !important;
}

body.muse-workbench-unified .chosen-container-single .chosen-single > div,
body.muse-workbench-unified .chosen-container-single .chosen-single > div > b {
  height: 30px !important;
}

body.muse-workbench-unified .chosen-container-multi .chosen-choices {
  min-height: var(--mwb-control-height) !important;
  padding: 2px 6px !important;
  background: #fff !important;
  border: 1px solid var(--mwb-border-strong) !important;
  border-radius: var(--mwb-control-radius) !important;
  box-shadow: none !important;
}

body.muse-workbench-unified .chosen-container .chosen-drop {
  margin-top: 4px;
  background: #fff;
  border: 1px solid var(--mwb-border-strong);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

body.muse-workbench-unified .chosen-container .chosen-results li {
  margin: 2px 4px;
  padding: 7px 8px;
  border-radius: 5px;
  font-size: 13px;
}

body.muse-workbench-unified .chosen-container .chosen-results li.highlighted {
  color: #fff;
  background: #262626;
}

body.muse-workbench-unified .am-switch {
  border-color: var(--mwb-border-strong) !important;
  box-shadow: none !important;
}

body.muse-workbench-unified .am-switch.am-active {
  background: #262626 !important;
  border-color: #262626 !important;
}

/* Tabs and section navigation */
body.muse-workbench-unified :is(.nav-switch-tabs > ul, .am-tabs-nav) {
  margin: 0 0 18px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--mwb-border);
}

body.muse-workbench-unified :is(.nav-switch-tabs > ul > li > a, .am-tabs-nav > li > a) {
  min-height: 36px;
  margin: 0 16px 0 0;
  padding: 7px 2px 8px;
  color: var(--mwb-muted);
  background: transparent !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  font-size: 13px;
  line-height: 20px;
}

body.muse-workbench-unified :is(.nav-switch-tabs > ul > li.am-active > a, .am-tabs-nav > li.am-active > a) {
  color: var(--mwb-text) !important;
  border-bottom-color: #171717 !important;
  font-weight: 600;
}

body.muse-workbench-unified .nav-switch-btn {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

body.muse-workbench-unified .nav-switch-btn > .item {
  box-sizing: border-box;
  min-height: var(--mwb-control-height);
  padding: 5px 12px;
  color: var(--mwb-body) !important;
  background: #fff !important;
  border: 1px solid var(--mwb-border) !important;
  border-radius: var(--mwb-control-radius) !important;
  font-size: 13px;
  line-height: 20px;
  text-decoration: none;
}

body.muse-workbench-unified .nav-switch-btn > .item:hover {
  color: var(--mwb-text) !important;
  background: var(--mwb-hover) !important;
}

body.muse-workbench-unified .nav-switch-btn > .item.am-active {
  color: #fff !important;
  background: #171717 !important;
  border-color: #171717 !important;
  font-weight: 600;
}

/* Native MIUSILI operation surfaces share the workbench chrome. Product
   imagery, palette swatches and the phone preview keep their real colors. */
body.muse-workbench-unified #muse-ops {
  --muse-ink: var(--mwb-text);
  --muse-muted: var(--mwb-muted);
  --muse-line: var(--mwb-border);
  --color-main: #171717;
  color: var(--mwb-body);
  font-size: 13px;
  line-height: 20px;
}

body.muse-workbench-unified #muse-ops :is(.muse-note, .muse-curated-item, .muse-metric, .muse-quality-funnel, .muse-recommendation, .muse-ranking-panel, .muse-brand-stage, .muse-brand-asset, .muse-queue-bar, .muse-health-hero, .muse-health-card, .muse-health-check, .muse-audit-item) {
  color: var(--mwb-body);
  background: #fff !important;
  border-color: var(--mwb-border) !important;
  box-shadow: none !important;
}

body.muse-workbench-unified #muse-ops .muse-note {
  color: #525252 !important;
  background: #f7f7f7 !important;
  border: 1px solid var(--mwb-border) !important;
  border-radius: 6px;
}

body.muse-workbench-unified #muse-ops :is(.muse-curated-results, .muse-empty-state, .muse-surface-state) {
  background: #fff !important;
  border-color: var(--mwb-border-strong) !important;
  box-shadow: none !important;
}

body.muse-workbench-unified #muse-ops :is(.muse-scope-badge, .muse-tag) {
  color: #525252;
  background: #f5f5f5;
  border-color: var(--mwb-border);
}

body.muse-workbench-unified #muse-ops .muse-metric-active {
  color: var(--mwb-text);
  background: #f4f4f4 !important;
  border-color: #262626 !important;
}

body.muse-workbench-unified #muse-ops .muse-metric-active strong,
body.muse-workbench-unified #muse-ops :is(.muse-curated-position, .muse-product-meta-price, .muse-ranking-list b, .muse-ranking-list a, .muse-ai-history-table summary) {
  color: var(--mwb-text) !important;
}

body.muse-workbench-unified #muse-ops .muse-ranking-list li:nth-child(-n+3) .muse-ranking-number {
  color: #fff;
  background: #262626;
}

body.muse-workbench-unified #muse-ops .muse-table th {
  color: #525252 !important;
  background: #f7f7f7 !important;
  border-bottom-color: var(--mwb-border) !important;
  font-size: 12px;
}

body.muse-workbench-unified #muse-ops .muse-table td {
  color: var(--mwb-body);
  background: #fff;
  border-bottom-color: #eeeeee !important;
  font-size: 12px;
}

body.muse-workbench-unified #muse-ops :is(.muse-table-active-row, .muse-table td.muse-stat-active) {
  color: var(--mwb-text) !important;
  background: #f7f7f7 !important;
}

body.muse-workbench-unified #muse-ops .muse-product-copy > a {
  color: var(--mwb-text) !important;
}

body.muse-workbench-unified #muse-ops .muse-row-actions a,
body.muse-workbench-unified #muse-ops :is(.muse-brand-pending-action, .muse-native-links a) {
  color: var(--mwb-body) !important;
  background: #fff !important;
  border-color: var(--mwb-border-strong) !important;
}

body.muse-workbench-unified #muse-ops .muse-row-actions a.muse-row-primary,
body.muse-workbench-unified #muse-ops :is(.muse-brand-pending-action, .muse-native-links a):hover {
  color: #fff !important;
  background: #171717 !important;
  border-color: #171717 !important;
}

body.muse-workbench-unified #muse-ops .muse-palette.is-selected {
  background: #f7f7f7 !important;
  border-color: #171717 !important;
  box-shadow: 0 0 0 2px rgba(23, 23, 23, 0.1) !important;
}

body.muse-workbench-unified #muse-ops :is(.muse-diy-effective, .muse-diy-effective.is-fallback, .muse-diy-module, .muse-review-upload) {
  color: var(--mwb-body);
  background: #fff !important;
  border-color: var(--mwb-border) !important;
  box-shadow: none !important;
}

body.muse-workbench-unified #muse-ops .muse-review-upload h3 {
  color: var(--mwb-text);
}

body.muse-workbench-unified #muse-ops .muse-preview {
  border-color: var(--mwb-border-strong) !important;
}

/* Tables, filters and pagination */
body.muse-workbench-unified .form-table-content {
  border: 1px solid var(--mwb-border);
  border-radius: var(--mwb-panel-radius);
  overflow: visible;
  background: #fff;
}

body.muse-workbench-unified .am-form-table-data-list-container {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  scrollbar-color: #bdbdbd #f5f5f5;
  scrollbar-width: thin;
}

body.muse-workbench-unified table.form-table-data-list {
  margin: 0;
  color: var(--mwb-body);
  background: #fff;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px !important;
  line-height: 18px;
}

body.muse-workbench-unified table.form-table-data-list > thead > tr > th {
  min-height: 40px;
  padding: 9px 10px !important;
  color: #525252;
  background: #f7f7f7 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--mwb-border) !important;
  font-size: 12px !important;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.01em;
}

body.muse-workbench-unified table.form-table-data-list > tbody > tr > td {
  padding: 11px 10px !important;
  color: var(--mwb-body);
  background: #fff;
  border: 0 !important;
  border-bottom: 1px solid #eeeeee !important;
  font-size: 12px !important;
  line-height: 18px;
  vertical-align: middle;
}

body.muse-workbench-unified table.form-table-data-list > tbody > tr:hover > td {
  background: #fafafa !important;
}

body.muse-workbench-unified table.form-table-data-list > tbody > tr.am-active > td,
body.muse-workbench-unified table.form-table-data-list > tbody > tr > td.am-active {
  background: #f7f7f7 !important;
}

body.muse-workbench-unified .form-table-search :is(input, select),
body.muse-workbench-unified .form-table-search .chosen-single {
  height: var(--mwb-control-height) !important;
  min-height: var(--mwb-control-height) !important;
  font-size: 12px !important;
}

body.muse-workbench-unified table.form-table-data-list td.am-operate-grid :is(a, button) {
  color: var(--mwb-body);
  font-size: 12px;
  text-decoration: none;
  text-underline-offset: 3px;
}

body.muse-workbench-unified table.form-table-data-list td.am-operate-grid :is(a, button):hover {
  color: #000;
  text-decoration: underline;
}

body.muse-workbench-unified table.form-table-data-list td.am-operate-grid :is(.submit-delete, .am-btn-danger) {
  color: var(--mwb-danger) !important;
}

body.muse-workbench-unified.muse-reference-preview.muse-v4-content.admin-goods-index table.form-table-data-list td.am-operate-grid .muse-goods-actions > :is(a, button).am-btn-success {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: #171717 !important;
  border-color: #171717 !important;
}

body.muse-workbench-unified.muse-reference-preview.muse-v4-content.admin-goods-index table.form-table-data-list td.am-operate-grid .muse-goods-actions {
  box-sizing: border-box;
  width: 100% !important;
  min-width: 0 !important;
}

body.muse-workbench-unified.muse-reference-preview.muse-v4-content.admin-goods-index table.form-table-data-list td.am-operate-grid .muse-goods-actions > :is(a, button).am-btn-success :is(span, i) {
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
}

body.muse-workbench-unified table.form-table-data-list tr > .am-operate-grid.am-grid-fixed-right {
  border-left: 1px solid var(--mwb-border) !important;
  box-shadow: -10px 0 18px -18px rgba(0, 0, 0, 0.35);
}

body.muse-workbench-unified table.form-table-data-list > thead > tr > .am-operate-grid.am-grid-fixed-right {
  background: #f7f7f7 !important;
}

body.muse-workbench-unified table.form-table-data-list > tbody > tr > .am-operate-grid.am-grid-fixed-right {
  background: #fff !important;
}

body.muse-workbench-unified table.form-table-data-list tr > .am-operate-grid.am-grid-fixed-right::before {
  content: "";
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: -29px;
  width: 29px;
  pointer-events: none;
  background: inherit;
  border-right: 1px solid var(--mwb-border);
}

body.muse-workbench-unified :is(.am-pagination, .form-table-page) a,
body.muse-workbench-unified :is(.am-pagination, .form-table-page) span {
  min-width: 30px;
  height: 30px;
  margin: 0 3px;
  padding: 0 8px;
  color: var(--mwb-body);
  background: #fff;
  border: 1px solid var(--mwb-border);
  border-radius: 6px;
  font-size: 12px;
  line-height: 28px;
}

body.muse-workbench-unified :is(.am-pagination, .form-table-page) .am-active > a,
body.muse-workbench-unified :is(.am-pagination, .form-table-page) .active {
  color: #fff !important;
  background: #171717 !important;
  border-color: #171717 !important;
}

/* Panels, notices and states */
body.muse-workbench-unified :is(.block-container, .am-panel, .am-card) {
  border-color: var(--mwb-border);
  border-radius: var(--mwb-panel-radius);
  box-shadow: none;
}

body.muse-workbench-unified :is(.am-alert, .am-operate-stretch-tips, .am-tips-card) {
  color: #525252;
  background: #f7f7f7;
  border: 1px solid var(--mwb-border);
  border-radius: 8px;
  box-shadow: none;
}

body.muse-workbench-unified :is(.am-alert-success, .am-text-success, .status-success) { color: var(--mwb-success) !important; }
body.muse-workbench-unified :is(.am-alert-warning, .am-text-warning, .status-warning) { color: var(--mwb-warning) !important; }
body.muse-workbench-unified :is(.am-alert-danger, .am-text-danger, .status-danger) { color: var(--mwb-danger) !important; }

body.muse-workbench-unified :is(.table-no, .no-data, .empty, .empty-state) {
  box-sizing: border-box;
  min-height: 180px;
  padding: 48px 20px;
  color: var(--mwb-muted);
  background: #fff;
  font-size: 13px;
  line-height: 20px;
  text-align: center;
}

/* Popup and modal shell */
body.muse-workbench-unified .am-popup:not(.popup-not-title) .am-popup-inner,
body.muse-workbench-unified .am-modal-dialog {
  background: #fff;
  border: 1px solid var(--mwb-border);
  border-radius: var(--mwb-popup-radius) !important;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.18);
}

body.muse-workbench-unified :is(.am-popup-hd, .am-modal-hd) {
  box-sizing: border-box;
  min-height: 48px;
  padding: 13px 20px;
  color: var(--mwb-text);
  background: #fff;
  border-bottom: 1px solid var(--mwb-border);
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
}

body.muse-workbench-unified :is(.am-popup-title, .am-modal-hd) {
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
}

body.muse-workbench-unified :is(.am-popup-hd, .am-modal-hd) .am-close {
  color: var(--mwb-muted);
  opacity: 1;
}

body.muse-workbench-unified :is(.am-popup-bd, .am-modal-bd) {
  padding: 20px;
  color: var(--mwb-body);
  background: #fff;
}

body.muse-workbench-unified .am-form-popup-submit {
  box-sizing: border-box;
  min-height: 56px;
  margin: 0 !important;
  padding: 12px 20px !important;
  background: #fafafa;
  border-top: 1px solid var(--mwb-border);
}

/* Focus, scrollbars and shell chrome */
body.muse-workbench-unified :where(.content-right, #muse-ops, .am-popup, .am-modal-dialog)
  :is(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid #262626 !important;
  outline-offset: 2px !important;
}

body.muse-workbench-unified ::-webkit-scrollbar { width: 10px; height: 10px; }
body.muse-workbench-unified ::-webkit-scrollbar-track { background: #f5f5f5; }
body.muse-workbench-unified ::-webkit-scrollbar-thumb { background: #bdbdbd; border: 2px solid #f5f5f5; border-radius: 8px; }
body.muse-workbench-unified ::-webkit-scrollbar-thumb:hover { background: #8c8c8c; }

body.muse-workbench-unified .muse-showcase-shell {
  color: var(--mwb-body);
  background: var(--mwb-bg);
}

body.muse-workbench-unified .muse-showcase-shell .must-menu-list {
  background: #fff;
  border-right-color: var(--mwb-border);
}

body.muse-workbench-unified .muse-showcase-shell .must-menu-list .admin-sidebar-list > li > .menu-item,
body.muse-workbench-unified .muse-showcase-shell .admin-sidebar-sub > li > .menu-item {
  font-size: 13px;
  border-radius: 6px;
}

body.muse-workbench-unified .muse-showcase-shell .must-menu-list .admin-sidebar-list > li > .menu-item:hover,
body.muse-workbench-unified .muse-showcase-shell .admin-sidebar-sub > li > .menu-item:hover {
  color: var(--mwb-text) !important;
  background: #f4f4f4 !important;
}

body.muse-workbench-unified .muse-showcase-shell .must-menu-list .common-left-menu-active,
body.muse-workbench-unified .muse-showcase-shell .admin-sidebar-sub > li > .menu-item.am-active {
  color: #fff !important;
  background: #171717 !important;
}

body.muse-workbench-unified .muse-showcase-shell .admin-sidebar-sub .menu-item > span[class] {
  display: none !important;
}

body.muse-workbench-unified .muse-showcase-shell .admin-sidebar-sub .menu-item > .nav-name {
  padding-left: 0 !important;
}

@media (max-width: 640px) {
  body.muse-workbench-unified:not(.admin-diy-saveinfo):not(.admin-diy-preview):not(.admin-error-tips)
    :is(.content-right > .content, .am-form-table-data-container.content-right > .content, .content-right > #muse-ops) {
    padding: 16px !important;
  }

  body.muse-workbench-unified:is(.muse-v4-ops, .muse-v4-special-page) .content-right > #muse-ops {
    padding: 16px !important;
  }

  body.muse-workbench-unified .muse-reference-page-head,
  body.muse-workbench-unified .muse-workbench-page-head {
    margin: -16px -16px 16px !important;
    padding: 16px !important;
  }

  body.muse-workbench-unified .muse-reference-page-head h1,
  body.muse-workbench-unified .muse-workbench-page-head h1 {
    font-size: 20px !important;
    line-height: 28px !important;
  }

  body.muse-workbench-unified :where(.content-right, #muse-ops, .am-popup, .am-modal-dialog)
    :is(input, select, textarea):not([type="hidden"]):not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="color"]):not([type="range"]):not([type="image"]):not([data-am-tagsinput]):not(.ace_text-input):not(#editor-tag):not(.am-tagsinput *):not(.chosen-container *):not(.edui-default *):not(.ace_editor *):not(.CodeMirror *):not(.plug-file-upload-submit *),
  body.muse-workbench-unified .chosen-container-single .chosen-single {
    font-size: 16px !important;
  }

  body.muse-workbench-unified .form-table-content {
    overflow: visible;
  }

  body.muse-workbench-unified .am-form-table-data-list-container {
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }

  body.muse-workbench-unified #muse-ops .muse-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  body.muse-workbench-unified #muse-ops .muse-table-wrap:has(> .muse-customers-table)::before {
    content: "↔ 左右滑动查看完整表格";
    position: sticky;
    left: 0;
    z-index: 1;
    display: block;
    width: max-content;
    margin: 0 0 8px;
    padding: 3px 8px;
    color: var(--mwb-muted);
    background: #f7f7f7;
    border: 1px solid var(--mwb-border);
    border-radius: 999px;
    font-size: 12px;
    line-height: 18px;
  }

  body.muse-workbench-unified.admin-appconfig-index .home-diy-template-list > .am-flex {
    align-items: stretch;
    flex-wrap: wrap;
  }

  body.muse-workbench-unified.admin-appconfig-index .home-diy-template-list > .am-flex > span {
    flex: 0 0 100%;
    text-align: left !important;
  }

  body.muse-workbench-unified.admin-appconfig-index .home-diy-template-list > .am-flex > .chosen-container,
  body.muse-workbench-unified.admin-appconfig-index .home-diy-template-list > .am-flex > .form-multiple-where-input {
    box-sizing: border-box;
    flex: 1 1 100%;
    width: 100% !important;
    min-width: 0;
    max-width: 100% !important;
    margin-left: 0 !important;
  }

  body.muse-workbench-unified.admin-appconfig-index .home-diy-template-list .form-multiple-where-input > input.Wdate {
    flex: 1 1 0;
    width: calc(50% - 12px) !important;
    min-width: 0;
    max-width: none !important;
  }
}
