/* Adapter for assets/admin-system.css */
/* ==========================================================================
   北鸣跨境 · 后台设计层 v240
   作用域：body.ops-admin .ops-legacy，与前台共用一组令牌
   ========================================================================== */

/* ---------- 结构 ---------- */
body.ops-admin .ops-legacy{
  --ds-paper:#F6F7F3;
  --ds-surface:#FFFFFF;
  --ds-surface-2:#F1F2ED;
  --ds-ink:#171A16;
  --ds-ink-2:#3D4239;
  --ds-muted:#60665C;
  --ds-line:#E3E5DD;
  --ds-line-strong:#CDD1C5;
  --ds-accent:#D2FA41;
  --ds-accent-press:#C1EB2B;
  --ds-accent-ink:#1A2113;
  --ds-accent-soft:#EEFBC4;
  --ds-ok:#2E7D4F; --ds-ok-soft:#E7F5EC;
  --ds-warn:#8A5A00; --ds-warn-soft:#FCF1D9;
  --ds-bad:#B3261E; --ds-bad-soft:#FBE9E7;
  --ds-info:#2C5C8F; --ds-info-soft:#E9F1F9;
  --ds-r-sm:8px; --ds-r-md:10px; --ds-r-lg:14px;
  --ds-ease:cubic-bezier(.2,.7,.2,1);
  background:var(--ds-paper)!important;
  color:var(--ds-ink);
  font-size:14px;
}
body.ops-admin .ops-legacy *{box-sizing:border-box}
body.ops-admin .ops-legacy :is(a,button,input,select,textarea):focus-visible{outline:2px solid var(--ds-focus);outline-offset:2px}

/* 侧栏 */
body.ops-admin .ops-legacy .merchant-sidebar{
  background:#14170F!important;
  border-right:1px solid #23281C!important;
  color:#E9EDE2;
}
body.ops-admin .ops-legacy .merchant-brand{font-weight:650;letter-spacing:-.01em}
body.ops-admin .ops-legacy .merchant-store{
  background:#1C2117!important;border:1px solid #2A3124!important;
  border-radius:var(--ds-r-md)!important;color:#E9EDE2;
}
body.ops-admin .ops-legacy .merchant-store small{color:#A9B19F!important}
body.ops-admin .ops-legacy .merchant-nav h3,
body.ops-admin .ops-legacy .merchant-nav .merchant-nav-label{
  color:#8D9684!important;font-size:11px!important;letter-spacing:.1em;text-transform:uppercase;
}
body.ops-admin .ops-legacy .merchant-nav a{
  color:#C8D0BE!important;border-radius:var(--ds-r-sm)!important;
  transition:background-color 150ms var(--ds-ease),color 150ms var(--ds-ease);
}
body.ops-admin .ops-legacy .merchant-nav a:hover{background:#232917!important;color:#fff!important}
body.ops-admin .ops-legacy .merchant-nav a.active,
body.ops-admin .ops-legacy .merchant-nav a[aria-current=page]{
  background:var(--ds-accent)!important;color:var(--ds-accent-ink)!important;font-weight:600;
}
body.ops-admin .ops-legacy .merchant-sidebar-footer{color:#8D9684!important;border-top:1px solid #23281C!important}

/* 顶栏 */
body.ops-admin .ops-legacy .merchant-topbar{
  background:rgba(246,247,243,.9)!important;
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--ds-line)!important;
  min-height:64px!important;
}
body.ops-admin .ops-legacy .merchant-topbar :is(h1,.merchant-title){font-size:18px!important;font-weight:650;letter-spacing:-.01em}
body.ops-admin .ops-legacy .live-connection{font-size:12px;color:var(--ds-ok)!important}
body.ops-admin .ops-legacy .merchant-topbar .button{min-height:38px;font-size:13px}

/* 内容区 */
body.ops-admin .ops-legacy{background:var(--ds-paper);padding-top:20px!important}
body.ops-admin .ops-legacy>header :is(h1,h2),
body.ops-admin .ops-legacy .merchant-workspace>h1,
body.ops-admin .ops-legacy .merchant-workspace>h2{font-size:24px!important;font-weight:650;letter-spacing:-.015em}
body.ops-admin .ops-legacy .merchant-workspace{max-width:1440px;margin-inline:auto}

/* 按钮：中性为主，主操作荧光 */
body.ops-admin .ops-legacy .button{
  min-height:38px;padding:0 14px;border-radius:var(--ds-r-sm);
  border:1px solid var(--ds-line-strong);background:var(--ds-surface);
  color:var(--ds-ink);font-size:13px;font-weight:550;line-height:1;
  transition:background-color 150ms var(--ds-ease),border-color 150ms var(--ds-ease),color 150ms var(--ds-ease);
}
body.ops-admin .ops-legacy .button:hover{background:var(--ds-surface-2);border-color:var(--ds-ink-2);transform:none}
body.ops-admin .ops-legacy .button.primary{
  background:var(--ds-accent)!important;border-color:var(--ds-accent)!important;color:var(--ds-accent-ink)!important;
}
body.ops-admin .ops-legacy .button.primary:hover{background:var(--ds-accent-press)!important;border-color:var(--ds-accent-press)!important}
body.ops-admin .ops-legacy .button.text{background:transparent!important;border-color:transparent!important;color:var(--ds-ink)!important;min-height:34px}
body.ops-admin .ops-legacy .button.text:hover{background:var(--ds-surface-2)!important}
body.ops-admin .ops-legacy .button.danger,
body.ops-admin .ops-legacy .button.danger:hover{color:var(--ds-bad)!important;border-color:#E7C3BF!important;background:#FCF3F2!important}
body.ops-admin .ops-legacy .button:disabled{background:var(--ds-surface-2)!important;color:var(--ds-muted)!important;border-color:var(--ds-line)!important;opacity:1!important}

/* KPI 卡 */
body.ops-admin .ops-legacy .admin-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 14px}
body.ops-admin .ops-legacy .admin-kpi-card,
body.ops-admin .ops-legacy .admin-kpi-card.is-primary{
  background:var(--ds-surface)!important;color:var(--ds-ink)!important;
  border:1px solid var(--ds-line)!important;border-radius:var(--ds-r-md)!important;
  box-shadow:none!important;padding:16px 18px!important;
}
body.ops-admin .ops-legacy .admin-kpi-head{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--ds-muted);font-size:12px}
body.ops-admin .ops-legacy .admin-kpi-card strong,
body.ops-admin .ops-legacy .admin-kpi-card .admin-kpi-value{font-size:26px!important;font-weight:700;letter-spacing:-.02em;color:var(--ds-ink)!important;font-variant-numeric:tabular-nums}
body.ops-admin .ops-legacy .admin-kpi-card small{color:var(--ds-muted)!important;font-size:12px}

/* 筛选与工具条 */
body.ops-admin .ops-legacy :is(.admin-list-filters,.admin-order-filter-box,.order-filter-grid,.order-advanced-filters){
  background:var(--ds-surface)!important;border:1px solid var(--ds-line)!important;
  border-radius:var(--ds-r-md)!important;padding:12px 14px!important;
}
body.ops-admin .ops-legacy .admin-list-filters label,
body.ops-admin .ops-legacy .order-filter-grid label{font-size:12px;color:var(--ds-muted);font-weight:550}
body.ops-admin .ops-legacy :is(input:not([type=checkbox]):not([type=radio]),select,textarea){
  min-height:38px;border:1px solid var(--ds-line-strong);border-radius:var(--ds-r-sm);
  background:var(--ds-surface);color:var(--ds-ink);font-size:13px;
  transition:border-color 150ms var(--ds-ease),box-shadow 150ms var(--ds-ease);
}
body.ops-admin .ops-legacy :is(input,select,textarea):focus{
  outline:none;border-color:#7BA814;box-shadow:0 0 0 3px rgba(123,168,20,.16);
}

/* 表格：信息密度与对齐 */
body.ops-admin .ops-legacy .table-wrap{border:1px solid var(--ds-line);border-radius:var(--ds-r-md);background:var(--ds-surface);overflow:auto}
body.ops-admin .ops-legacy table{font-size:13px;border-collapse:separate;border-spacing:0}
body.ops-admin .ops-legacy thead th{
  position:sticky;top:0;z-index:1;
  background:var(--ds-surface-2)!important;color:var(--ds-muted)!important;
  font-size:12px!important;font-weight:600;letter-spacing:.02em;
  padding:10px 12px!important;border-bottom:1px solid var(--ds-line)!important;white-space:nowrap;
}
body.ops-admin .ops-legacy tbody td{
  padding:12px!important;border-bottom:1px solid var(--ds-line)!important;
  color:var(--ds-ink-2);vertical-align:middle;
}
body.ops-admin .ops-legacy tbody tr{transition:background-color 120ms var(--ds-ease)}
body.ops-admin .ops-legacy tbody tr:hover{background:#FAFBF6!important}
body.ops-admin .ops-legacy tbody tr:last-child td{border-bottom:0!important}
body.ops-admin .ops-legacy .admin-order-id-cell code,
body.ops-admin .ops-legacy .order-copy-pill{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;
  background:var(--ds-surface-2);border-radius:6px;padding:2px 6px;color:var(--ds-ink-2);
}
body.ops-admin .ops-legacy .admin-product-title{font-weight:600;color:var(--ds-ink)}

/* 状态标签：统一底色与字号，不堆叠 */
body.ops-admin .ops-legacy :is(.status,.admin-prod-status-cell span,.order-tab-pill){
  display:inline-flex;align-items:center;gap:5px;
  min-height:22px;padding:0 8px;border-radius:999px;
  font-size:12px;font-weight:550;border:1px solid transparent;
}
body.ops-admin .ops-legacy .status.success,
body.ops-admin .ops-legacy .status[data-state=paid]{background:var(--ds-ok-soft);color:var(--ds-ok)!important;border-color:#CBE7D5}
body.ops-admin .ops-legacy .status.warning{background:var(--ds-warn-soft);color:var(--ds-warn)!important;border-color:#EEDCB6}
body.ops-admin .ops-legacy .status.error{background:var(--ds-bad-soft);color:var(--ds-bad)!important;border-color:#F0CFCB}

/* 批量操作条 */
body.ops-admin .ops-legacy .admin-list-filters[data-selected],
body.ops-admin .ops-legacy .batch-bar{
  background:var(--ds-accent-soft)!important;border-color:#D8E7A9!important;
}

/* 面板与侧卡 */
body.ops-admin .ops-legacy .panel,
body.ops-admin .ops-legacy .admin-chart-panel,
body.ops-admin .ops-legacy .admin-side-card{
  background:var(--ds-surface)!important;border:1px solid var(--ds-line)!important;
  border-radius:var(--ds-r-md)!important;box-shadow:none!important;
}
body.ops-admin .ops-legacy .admin-side-card h3,
body.ops-admin .ops-legacy .admin-chart-panel h3{font-size:15px!important;font-weight:650}
body.ops-admin .ops-legacy .admin-restock-row{
  border:1px solid var(--ds-line)!important;border-radius:var(--ds-r-sm)!important;background:#FBFCF8!important;
}
body.ops-admin .ops-legacy .admin-restock-row:hover{border-color:var(--ds-line-strong)!important}

/* 表单分组 */
body.ops-admin .ops-legacy .form-section-heading{
  display:flex;align-items:center;gap:10px;margin:0 0 12px;
  padding-bottom:10px;border-bottom:1px solid var(--ds-line);
  font-size:13px;font-weight:650;letter-spacing:.02em;color:var(--ds-ink);
}
body.ops-admin .ops-legacy .product-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
body.ops-admin .ops-legacy .product-sku-edit-table{font-size:13px}

/* 深色 */
html[data-color-mode=dark] body.ops-admin .ops-legacy{
  --ds-paper:#121512;--ds-surface:#1A1E1A;--ds-surface-2:#20251F;
  --ds-ink:#EFF2E9;--ds-ink-2:#C9D0C2;--ds-muted:#A6AEA0;
  --ds-line:#2C322B;--ds-line-strong:#3A4238;
  --ds-accent-soft:#2A3517;--ds-ok-soft:#1C2C22;--ds-warn-soft:#2E2717;--ds-bad-soft:#33201E;
  --ds-info-soft:#1B2634;
}
html[data-color-mode=dark] body.ops-admin .ops-legacy .merchant-topbar{background:rgba(18,21,18,.9)!important}
html[data-color-mode=dark] body.ops-admin .ops-legacy .merchant-sidebar{background:#0D100C!important;border-right-color:#242A1E!important}
html[data-color-mode=dark] body.ops-admin .ops-legacy tbody tr:hover{background:#1F241C!important}
html[data-color-mode=dark] body.ops-admin .ops-legacy .admin-restock-row{background:#1B2018!important}

/* 响应式：900 / 640 */
@media (max-width:1200px){
  body.ops-admin .ops-legacy .admin-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:900px){
  body.ops-admin .ops-legacy .merchant-sidebar{position:fixed;z-index:60;box-shadow:0 30px 80px -30px rgba(0,0,0,.6)}
  body.ops-admin .ops-legacy .product-edit-grid{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:640px){
  body.ops-admin .ops-legacy .admin-kpi-grid{grid-template-columns:minmax(0,1fr);gap:10px}
  body.ops-admin .ops-legacy .merchant-topbar{min-height:56px!important}
  body.ops-admin .ops-legacy{padding-inline:12px!important}
  body.ops-admin .ops-legacy thead th{font-size:11px!important;padding:8px 10px!important}
  body.ops-admin .ops-legacy tbody td{padding:10px!important;font-size:12px}
}

@media (prefers-reduced-motion:reduce){
  body.ops-admin .ops-legacy *{transition-duration:1ms!important;animation-duration:1ms!important}
}

/* 命中 admin-console.css 中特异性更高的主按钮规则 */
body.ops-admin :is(.ops-legacy,#overlays) .button.primary{
  background:var(--ds-accent)!important;
  border-color:var(--ds-accent)!important;
  color:var(--ds-accent-ink)!important;
  box-shadow:none!important;
}
body.ops-admin :is(.ops-legacy,#overlays) .button.primary:hover{
  background:var(--ds-accent-press)!important;
  border-color:var(--ds-accent-press)!important;
  color:var(--ds-accent-ink)!important;
}
body.ops-admin .ops-legacy .merchant-nav a.active,
body.ops-admin :is(.ops-legacy,#overlays) .button.primary{color:var(--ds-accent-ink)!important}

/* 选中行：用品牌强调色替代旧层蓝色 */
body.ops-admin .ops-legacy .product-manager-table tr.is-selected,
body.ops-admin .ops-legacy tbody tr.is-selected{
  background:var(--ds-accent-soft)!important;
  box-shadow:inset 3px 0 0 var(--ds-accent)!important;
}
body.ops-admin .ops-legacy .product-manager-table tr.is-selected:hover,
body.ops-admin .ops-legacy tbody tr.is-selected:hover{
  background:color-mix(in srgb,var(--ds-accent-soft) 82%,var(--ds-accent))!important;
}
body.ops-admin .ops-legacy tr.is-selected td{color:var(--ds-ink)!important}

/* 商品编辑器：手机端底部操作与标签栏不再挤压 */
@media(max-width:640px){
  body.ops-admin #overlays .product-editor .product-publish-actions{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);
    gap:10px!important;
    padding:12px 14px calc(12px + env(safe-area-inset-bottom))!important;
  }
  body.ops-admin #overlays .product-editor .product-publish-actions .button{
    width:100%;min-height:44px;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
    font-size:13px!important;padding:0 8px!important;
  }
  body.ops-admin #overlays .product-editor .product-publish-actions>span{display:none}
  body.ops-admin #overlays .product-editor-tabs{
    gap:4px!important;padding:0 10px!important;
    overflow-x:auto;scrollbar-width:none;
  }
  body.ops-admin #overlays .product-editor-tabs::-webkit-scrollbar{display:none}
  body.ops-admin #overlays .product-editor-tabs .button{
    flex:none;white-space:nowrap;padding:14px 8px!important;font-size:12.5px!important;min-height:46px!important;
  }
  body.ops-admin #overlays .product-editor .modal-head{padding:14px 16px!important}
  body.ops-admin #overlays .product-editor .modal-head h2{font-size:17px!important}
}

/* ---------- 后台对比度达标 ---------- */
body.ops-admin .ops-legacy{
  --ds-muted:#5A6055;   /* 替代 slate-500 #64748B：4.34 → 5.4 */
  --ds-ok:#2A7048;      /* 4.49 → 5.2 */
}
body.ops-admin .ops-legacy :is(.ops-legacy,.merchant-topbar,#overlays) :is(.muted,small,
  .admin-list-filters label,.trade-chart-caption,.admin-kpi-card small,
  .product-editor-intro,.admin-recent-orders small,pipeline span,em){
  color:var(--ds-muted)!important;
}
body.ops-admin .ops-legacy .merchant-topbar>div>span{color:var(--ds-muted)!important}
body.ops-admin .ops-legacy .status.success,
body.ops-admin .ops-legacy .live-connection,
body.ops-admin .ops-legacy .merchant-connected,
body.ops-admin .ops-legacy .status[data-state=available],
body.ops-admin .ops-legacy .admin-prod-status-cell .status.success{
  color:var(--ds-ok)!important;
}
html[data-color-mode=dark] body.ops-admin .ops-legacy{--ds-muted:#B2BAAB;--ds-ok:#83D6A4}

/* 批量操作条与 SEO 状态：命中旧层具体选择器，补足对比度 */
body.ops-admin .ops-legacy .product-bulk-bar>div:first-child>span,
body.ops-admin .ops-legacy .product-bulk-bar>div>span,
body.ops-admin .ops-legacy .product-bulk-bar small{
  color:var(--ds-muted)!important;
}
body.ops-admin .ops-legacy :is(.pulse-chip.is-ok,.pulse-chip.is-ok b,.sku-matrix-card.is-ok .sku-matrix-badge){
  color:#166534!important;
}
body.ops-admin .ops-legacy .pulse-chip.is-ok{background:#DCFCE7!important}

/* 旧层 readability/commerce 使用 --bm-muted（slate-500）作为次要色，
   在后台统一提到可读档位，避免逐条覆盖 */
body.ops-admin .ops-legacy{
  --bm-muted:#5A6055;
  --bm-soft:#F1F2ED;
}
html[data-color-mode=dark] body.ops-admin .ops-legacy{
  --bm-muted:#B2BAAB;
  --bm-soft:#20251F;
}
body.ops-admin .ops-legacy :is(.empty,.notice,.toolbar p,.panel>p,.settings-service-note,p.muted,span.muted),
body.ops-admin .ops-legacy .status{color:var(--ds-muted)!important}
body.ops-admin .ops-legacy :is(.empty,.notice){background:var(--ds-surface)!important}

/* 后台同步字体 */
body.ops-admin .ops-legacy{
  font-family:"Satoshi","PingFang SC","Microsoft YaHei","Noto Sans SC",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
body.ops-admin .ops-legacy :is(h1,h2,h3,h4,.merchant-title,.merchant-brand strong,.admin-kpi-card strong,.admin-kpi-card .admin-kpi-value){
  font-family:"Cabinet Grotesk","PingFang SC","Microsoft YaHei",sans-serif;
  letter-spacing:-.015em;
}
body.ops-admin .ops-legacy .admin-kpi-card strong{font-variant-numeric:tabular-nums}

/* 后台各模块内容宽度统一：工作区始终填满网格列 */
body.ops-admin .ops-legacy .merchant-workspace{
  width:100%!important;
  min-width:0!important;
  justify-self:stretch!important;
}
body.ops-admin .ops-legacy #admin-content,
body.ops-admin .ops-legacy .admin-content{
  width:100%!important;
  min-width:0!important;
}
/* Scoped admin repairs: semantic warning colours, visible navigation and narrow forms. */
html[data-color-mode=dark] body.ops-admin .ops-legacy{--ds-warn:#F4CB76;--ds-warn-soft:#332B1B}
body.ops-admin .ops-legacy :is(.pulse-chip.is-warn,.pulse-chip.is-warn b){background:var(--ds-warn-soft)!important;color:var(--ds-warn)!important}
.admin-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body.ops-admin .ops-legacy .order-search-field{display:flex;flex:1;flex-direction:column;gap:6px;min-width:180px;color:var(--ds-ink-2);font-size:13px}
body.ops-admin .ops-legacy .order-search-field .order-quick-search{width:100%;min-width:0}
body.ops-admin .ops-legacy .admin-order-quick-tabs .button[aria-pressed=true]{background:var(--ds-ink)!important;color:var(--ds-surface)!important}
body.ops-admin .ops-legacy .product-manager-table :is(th:last-child,td.actions){position:sticky;right:0;z-index:2;background:var(--ds-surface)!important;border-left:1px solid var(--ds-line);width:140px!important;min-width:140px!important}
body.ops-admin .ops-legacy .product-manager-table td.actions{display:table-cell!important;white-space:normal!important}
body.ops-admin .ops-legacy .product-manager-table td.actions>.button{margin:0 4px 6px 0!important}
body.ops-admin .ops-legacy .product-manager-table tr.is-selected td.actions{background:var(--ds-surface-2)!important}
body.ops-admin .ops-legacy .product-more{font-size:13px;min-width:0;margin-top:2px}
body.ops-admin .ops-legacy .product-more summary{cursor:pointer;padding:7px 2px;color:var(--ds-ink);text-underline-offset:3px}
body.ops-admin .ops-legacy .product-more>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:6px 0}
body.ops-admin .ops-legacy .product-more summary:focus-visible{outline:2px solid var(--ds-ink);outline-offset:2px}
body.ops-admin .ops-legacy .settings-layout{display:block}
body.ops-admin .ops-legacy .settings-nav{position:static;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:0 24px;min-width:0;max-width:100%;overflow:visible;border-bottom:1px solid var(--ds-line);padding:0;margin:0 0 24px}
body.ops-admin .ops-legacy .settings-nav .button{position:relative;flex:none;justify-content:center;white-space:nowrap;text-align:center;padding:12px 0!important;border-radius:0!important;min-height:48px;font-size:14px;background:transparent!important;color:var(--ds-muted)!important;box-shadow:none}
body.ops-admin .ops-legacy .settings-nav .button.active{background:transparent!important;color:var(--ds-ink)!important;font-weight:650}
body.ops-admin .ops-legacy .settings-nav .button.active::after{display:block;content:'';position:absolute;bottom:0;left:0;right:0;height:3px;background:var(--ds-accent)}
body.ops-admin .ops-legacy .settings-workspace{min-width:0}
@media(max-width:800px){
 body.ops-admin .ops-legacy .settings-nav{flex-wrap:nowrap;overflow-x:auto;gap:20px;margin-bottom:20px;scrollbar-width:thin;overscroll-behavior-inline:contain}
 body.ops-admin .ops-legacy .order-search-field{min-width:0;width:100%;flex-basis:100%}
}
@media(max-width:600px){
 body.ops-admin .ops-legacy .product-sku-table-scroll{overflow:visible;border:0}
 body.ops-admin .ops-legacy .product-sku-edit-table{display:block;width:100%;min-width:0!important;table-layout:auto}
 body.ops-admin .ops-legacy .product-sku-edit-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 body.ops-admin .ops-legacy .product-sku-edit-table tbody{display:grid;gap:20px}
 body.ops-admin .ops-legacy .product-sku-edit-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px;padding:16px;background:var(--ds-surface-2);border-radius:10px}
 body.ops-admin .ops-legacy .product-sku-edit-table td{display:flex;flex-direction:column;gap:7px;min-width:0;width:auto!important;padding:0!important;border:0;white-space:normal}
 body.ops-admin .ops-legacy .product-sku-edit-table td::before{content:attr(data-label);font-size:13px;color:var(--ds-ink-2);font-weight:550}
 body.ops-admin .ops-legacy .product-sku-edit-table td:first-child{grid-column:1/-1}
 body.ops-admin .ops-legacy .product-sku-edit-table td:last-child:empty{display:none}
 body.ops-admin .ops-legacy .product-sku-edit-table :is(input,select){min-width:0;width:100%;min-height:44px;font-size:16px}
 body.ops-admin .ops-legacy .product-sku-edit-table input:disabled{opacity:1;color:var(--ds-muted)}
}

/* Keep admin components on the same live palette as the storefront. */
html[data-ds] body.ops-admin .ops-legacy{
 --bm-muted:inherit;--bm-soft:inherit;
 --ds-paper:inherit;--ds-surface:inherit;--ds-surface-2:inherit;
 --ds-ink:inherit;--ds-ink-2:inherit;--ds-muted:inherit;
 --ds-line:inherit;--ds-line-strong:inherit;
 --ds-accent:inherit;--ds-accent-press:inherit;--ds-accent-ink:inherit;
 --ds-accent-soft:inherit;--ds-accent-line:inherit;--ds-focus:inherit;
}
html[data-ds] body.ops-admin .ops-legacy .merchant-topbar{background:var(--ds-paper)!important}
html[data-ds] body.ops-admin .ops-legacy .merchant-sidebar{background:var(--bm-dark)!important;border-right-color:var(--bm-dark-border)!important}
html[data-ds] body.ops-admin .ops-legacy .merchant-store{background:var(--bm-dark-soft)!important;border-color:var(--bm-dark-border)!important}
html[data-ds] body.ops-admin .ops-legacy .merchant-nav a:hover{background:var(--bm-dark-hover)!important}
html[data-ds] body.ops-admin .ops-legacy tbody tr:hover{background:var(--ds-surface-2)!important}


/* Adapter for assets/admin-layout.css */
/* Admin task layout. Uses the existing admin-system palette and component tokens. */
body.ops-admin #overlays .modal{max-height:calc(100dvh - 48px)!important;min-height:0!important}
body.ops-admin #overlays .modal{border-color:var(--ds-line-strong)!important}
body.ops-admin #overlays .field>span{font-size:14px!important;line-height:1.5!important;font-weight:550!important}
body.ops-admin #overlays :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea){background:var(--ds-surface-2)!important;color:var(--ds-ink)!important;border:1px solid var(--ds-line)!important;font-size:14px!important;caret-color:var(--ds-accent)}
body.ops-admin #overlays :is(input,select,textarea):focus-visible{outline:2px solid var(--ds-accent);outline-offset:2px}
body.ops-admin #overlays :is(input,textarea)::placeholder{color:var(--ds-muted);opacity:1}
body.ops-admin #overlays :is(input[type=checkbox],input[type=radio]){accent-color:var(--ds-accent)}
body.ops-admin #overlays .modal.inventory-import-modal{width:min(760px,calc(100vw - 48px))!important;max-width:760px!important;max-height:calc(100dvh - 48px)!important;display:flex!important;flex-direction:column;padding:0!important;overflow:hidden!important}
body.ops-admin #overlays .inventory-import-modal>.modal-head{position:static!important;flex:none;margin:0!important;padding:20px 24px!important;background:var(--ds-surface);border-bottom:1px solid var(--ds-line)}
body.ops-admin #overlays .inventory-import-modal>form{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:20px 24px;scroll-padding:20px 0 90px}
body.ops-admin #overlays .inventory-import-modal .field{margin-bottom:18px}
body.ops-admin #overlays .inventory-import-modal textarea[name=content]{min-height:150px!important;font-family:var(--ds-font,inherit);tab-size:4}
body.ops-admin .ops-legacy .card-cleanup{border:1px solid var(--ds-line);border-radius:var(--ds-r-sm);margin:0 0 20px;background:var(--ds-surface)}
body.ops-admin .ops-legacy .card-cleanup>summary{cursor:pointer;padding:14px 16px;font-size:15px;font-weight:600;color:var(--ds-ink);min-height:48px}
body.ops-admin .ops-legacy .card-cleanup>summary span{font-size:12px;font-weight:400;margin-left:12px;color:var(--ds-muted)}
body.ops-admin .ops-legacy .card-cleanup>summary:focus-visible{outline:2px solid var(--ds-ink);outline-offset:2px}
body.ops-admin .ops-legacy .card-cleanup-body{padding:0 16px 16px}
body.ops-admin #overlays .card-cleanup-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 16px}
body.ops-admin #overlays .card-cleanup-tools>.button{width:100%!important;min-width:0!important;min-height:44px!important;padding:8px 6px!important;margin:0!important;font-size:13px!important;line-height:1.5;white-space:normal;border:1px solid var(--ds-line)!important;background:var(--ds-surface)!important;color:var(--ds-ink)!important}
body.ops-admin #overlays .card-cleanup-tools>.button[aria-pressed=true]{background:var(--ds-ink)!important;color:var(--ds-surface)!important;border-color:var(--ds-ink)!important}
body.ops-admin #overlays .card-cleanup-tools>.button:hover{border-color:var(--ds-ink)!important}
body.ops-admin #overlays .card-cleanup-tools>.button:focus-visible{outline:2px solid var(--ds-ink);outline-offset:2px}
body.ops-admin .ops-legacy .card-cleanup-duplicates{padding-left:20px;margin:0 0 14px;font-size:13px;line-height:1.8;color:var(--ds-ink);overflow-wrap:anywhere}
body.ops-admin #overlays .card-cleanup-body .field{min-width:0;margin:0 0 14px;display:flex;flex-direction:column;gap:6px}
body.ops-admin #overlays .card-cleanup-body .field>span{font-size:13px!important;line-height:1.6}
body.ops-admin #overlays .card-cleanup-columns{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:12px}
body.ops-admin #overlays .card-cleanup-body [hidden]{display:none!important}
body.ops-admin #overlays .card-cleanup-body :is(input:not([type=checkbox]),select){width:100%;min-width:0;min-height:42px!important;font-size:14px!important}
body.ops-admin .ops-legacy .card-cleanup-help,body.ops-admin .ops-legacy .card-cleanup-local{font-size:13px!important;line-height:1.7;color:var(--ds-muted);margin:0 0 14px}
body.ops-admin .ops-legacy .card-cleanup-trim{display:flex;align-items:center;gap:8px;font-size:14px;margin:2px 0 12px;min-height:32px;color:var(--ds-ink)}
body.ops-admin #overlays .card-cleanup-trim input{width:18px;height:18px;flex:none;margin:0}
body.ops-admin .ops-legacy .card-cleanup-actions{display:flex;gap:8px;flex-wrap:wrap}
body.ops-admin .ops-legacy .card-cleanup-status{font-size:13px!important;line-height:1.7;margin:12px 0 0;color:var(--ds-ink)}
body.ops-admin .ops-legacy .card-cleanup-status:empty{display:none}
body.ops-admin .ops-legacy .card-cleanup-result{margin-top:14px}
body.ops-admin .ops-legacy .card-cleanup-result:empty{display:none}
body.ops-admin .ops-legacy .card-cleanup-result .table-wrap{margin:0 0 14px}
body.ops-admin .ops-legacy .card-cleanup-result table{min-width:0;width:100%;table-layout:fixed;font-size:13px}
body.ops-admin .ops-legacy .card-cleanup-result th:first-child{width:64px}
body.ops-admin .ops-legacy .card-cleanup-result td{overflow-wrap:anywhere;white-space:normal}
body.ops-admin .ops-legacy .card-cleanup-result td small{display:block;color:var(--ds-muted);margin-top:4px}
body.ops-admin .ops-legacy .card-cleanup-warning{padding:12px;background:var(--ds-surface-2);color:var(--ds-ink);border:1px solid var(--ds-line-strong);font-size:13px!important;line-height:1.7;margin:0 0 14px}
body.ops-admin #overlays .inventory-import-modal .modal-actions{position:sticky;bottom:-20px;display:flex;justify-content:flex-end;gap:8px;padding:14px 0 20px;margin:18px 0 -20px;border-top:1px solid var(--ds-line);background:var(--ds-surface);z-index:2}
@media(max-width:800px){
 body.ops-admin #overlays .modal{max-height:calc(100dvh - 24px)!important}
 body.ops-admin #overlays :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea){font-size:16px!important;min-height:44px}
 body.ops-admin #overlays .modal.inventory-import-modal{width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important}
 body.ops-admin #overlays .inventory-import-modal>.modal-head{padding:16px!important}
 body.ops-admin #overlays .inventory-import-modal>form{padding:16px;scroll-padding-top:16px}
 body.ops-admin .ops-legacy .card-cleanup>summary{padding:12px}
 body.ops-admin .ops-legacy .card-cleanup>summary span{display:block;margin:5px 0 0;font-size:12px}
 body.ops-admin .ops-legacy .card-cleanup-body{padding:0 12px 12px}
 body.ops-admin #overlays .card-cleanup-tools{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.ops-admin #overlays .card-cleanup-body :is(input:not([type=checkbox]),select){font-size:16px!important;min-height:44px!important}
 body.ops-admin #overlays .card-cleanup-columns{grid-template-columns:minmax(0,1fr)}
 body.ops-admin #overlays .inventory-import-modal .button{min-height:44px!important}
 body.ops-admin #overlays .inventory-import-modal .modal-actions{display:grid;grid-template-columns:80px minmax(0,1fr);gap:8px;bottom:-16px;padding:12px 0 16px;margin-bottom:-16px}
 body.ops-admin #overlays .inventory-import-modal .modal-actions>.button{width:100%!important;min-width:0!important;margin:0!important;padding:8px!important;white-space:normal}
 body.ops-admin .ops-legacy .card-cleanup-result th:first-child{width:56px}
 body.ops-admin .ops-legacy .card-cleanup-result :is(th,td){padding:9px 7px!important}
}
body.ops-admin .ops-legacy .merchant-console{grid-template-columns:232px minmax(0,1fr)}
body.ops-admin .ops-legacy .merchant-workspace{width:100%;max-width:none;margin-inline:0;min-width:0}
body.ops-admin .ops-legacy .settings-card-body{max-width:none}
body.ops-admin .ops-legacy .settings-page .field>span{font-size:14px!important;line-height:1.5!important;font-weight:550!important}
body.ops-admin .ops-legacy .seo-geo-hub{padding:16px 0;border:0;border-radius:0;background:transparent;margin-bottom:20px}
body.ops-admin .ops-legacy .seo-geo-hub>.row{align-items:flex-start;gap:12px}
body.ops-admin .ops-legacy .seo-geo-endpoints{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;margin-top:16px}
body.ops-admin .ops-legacy .seo-endpoint-card{padding:14px 0;border:0;border-bottom:1px solid var(--ds-line);border-radius:0;background:transparent;min-width:0;flex-wrap:wrap}
body.ops-admin .ops-legacy .seo-endpoint-card>div:first-child{flex:1 1 180px}
body.ops-admin .ops-legacy .seo-endpoint-card code{white-space:normal;overflow-wrap:anywhere;line-height:1.6}
body.ops-admin .ops-legacy .merchant-sidebar{padding:22px 14px 14px}
body.ops-admin .ops-legacy .merchant-brand strong{font-size:20px!important}
body.ops-admin .ops-legacy .merchant-brand small{font-size:12px!important;letter-spacing:0}
body.ops-admin .ops-legacy .merchant-store{margin:18px 0 16px;padding:10px;font-size:12px!important}
body.ops-admin .ops-legacy .merchant-nav>details{margin-bottom:10px}
body.ops-admin .ops-legacy .merchant-nav>details>summary{padding:8px 10px;font-size:12px!important;letter-spacing:0;color:#B0B9A5!important;cursor:pointer;min-height:36px}
body.ops-admin .ops-legacy .merchant-nav>details>summary:focus-visible{outline:2px solid #C3E56E;outline-offset:-2px;border-radius:6px}
body.ops-admin .ops-legacy .merchant-nav a{font-size:14px!important;padding:9px 10px!important;min-height:38px;gap:10px}
body.ops-admin .ops-legacy .merchant-sidebar-footer{padding:12px 8px 0}
body.ops-admin .ops-legacy .merchant-sidebar-footer>span{margin-top:10px}
body.ops-admin .ops-legacy{padding:24px!important}
body.ops-admin .ops-legacy>.panel{padding:24px!important;margin-bottom:20px}
body.ops-admin .ops-legacy .toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 20px;padding:0;flex-wrap:wrap}
body.ops-admin .ops-legacy .toolbar h2{margin:0;font-size:24px!important;line-height:1.3;font-weight:650;letter-spacing:0}
body.ops-admin .ops-legacy .toolbar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
body.ops-admin .ops-legacy .toolbar .button{font-size:13px!important;min-height:40px!important;padding:0 13px!important}
body.ops-admin .ops-legacy .admin-search-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:0 0 16px}
body.ops-admin .ops-legacy .admin-search-label{font-size:13px;color:var(--ds-muted);white-space:nowrap}
body.ops-admin .ops-legacy .admin-search-row #admin-search{width:320px;max-width:100%;min-width:0;min-height:40px!important;margin:0;font-size:14px!important}
body.ops-admin .ops-legacy .admin-list-filters{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;padding:16px!important;margin:0 0 14px}
body.ops-admin .ops-legacy .admin-list-filters .field{display:flex;flex:1 1 150px;flex-direction:column;min-width:0;max-width:240px;gap:6px;margin:0!important}
body.ops-admin .ops-legacy .admin-list-filters .field>span{font-size:13px!important;font-weight:550;line-height:1.5;color:var(--ds-muted)!important;padding:0}
body.ops-admin .ops-legacy .admin-list-filters select{height:40px!important;min-height:40px!important;font-size:14px!important;padding:0 32px 0 12px;width:100%;min-width:0}
body.ops-admin .ops-legacy .admin-list-filters>.button{min-height:40px!important;flex:0 0 auto;align-self:flex-end}
body.ops-admin .ops-legacy .admin-list-filters[data-tab=products]+p{font-size:13px!important;line-height:1.7!important;margin-block:12px}
@media(min-width:801px){
 body.ops-admin .ops-legacy .admin-list-filters[data-tab=products]{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto auto;gap:10px}
 body.ops-admin .ops-legacy .admin-list-filters[data-tab=products] .field{max-width:none}
}
body.ops-admin .ops-legacy :is([data-result-count],.admin-result-summary){font-size:13px!important;color:var(--ds-muted)!important;line-height:1.6;margin:12px 0}
body.ops-admin .ops-legacy .product-bulk-bar[hidden]{display:none!important}
body.ops-admin .ops-legacy .product-bulk-bar{padding:12px 14px;margin:14px 0;gap:12px;flex-wrap:wrap}
body.ops-admin .ops-legacy .product-bulk-actions{display:flex;gap:6px;flex-wrap:wrap}
body.ops-admin .ops-legacy .product-reorder-bar{margin:12px 0 16px!important;padding:10px 12px!important;font-size:12px!important}
body.ops-admin .ops-legacy .table-wrap{margin-top:0}
body.ops-admin .ops-legacy table{line-height:1.6}
body.ops-admin .ops-legacy table thead th{font-size:13px!important;font-weight:600!important;letter-spacing:0!important;padding:12px!important;line-height:1.5!important}
body.ops-admin .ops-legacy table tbody td{font-size:14px!important;line-height:1.6!important}
body.ops-admin .ops-legacy table tbody tr:hover{background:var(--ds-surface-2)!important}
body.ops-admin .ops-legacy table :is(.button,summary){font-size:13px!important}
body.ops-admin .ops-legacy table .button.compact{min-height:34px!important;padding-inline:10px!important}
body.ops-admin .ops-legacy :is(td,dd,.admin-kpi-card strong){font-variant-numeric:tabular-nums}
body.ops-admin #overlays .product-edit-grid{grid-template-columns:minmax(0,1.35fr) minmax(280px,1fr);gap:24px}
body.ops-admin #overlays .product-publish-form .field>span{font-size:14px!important;line-height:1.5!important;font-weight:550!important}
body.ops-admin #overlays .product-publish-form .field :is(input,select,textarea){font-size:14px!important;line-height:1.6!important}
body.ops-admin #overlays .product-publish-form .field>small{font-size:12px!important;line-height:1.7!important}
body.ops-admin .ops-legacy .actions .button{margin:2px 4px 2px 0}
body.ops-admin .ops-legacy .admin-content-kinds{display:flex;gap:6px;flex-wrap:wrap;border-bottom:1px solid var(--ds-line);padding-bottom:12px;margin-bottom:20px}
body.ops-admin .ops-legacy .admin-content-kinds .button{min-height:40px;background:transparent!important;border-color:transparent!important;color:var(--ds-muted)!important;font-size:14px!important;gap:8px}
body.ops-admin .ops-legacy .admin-content-kinds .button span{font-size:12px!important;font-variant-numeric:tabular-nums;color:inherit!important}
body.ops-admin .ops-legacy .admin-content-kinds .button[aria-pressed=true]{background:var(--ds-surface-2)!important;color:var(--ds-ink)!important;border-color:var(--ds-line)!important}
body.ops-admin .ops-legacy .admin-content-query{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap;background:var(--ds-surface-2);padding:16px;border-radius:var(--ds-r-sm)}
body.ops-admin .ops-legacy .admin-content-query .admin-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 8px;flex:1 1 260px;margin:0}
body.ops-admin .ops-legacy .admin-content-query .admin-search-label{grid-column:1/-1}
body.ops-admin .ops-legacy .admin-content-query .admin-search-label{line-height:19.5px}
body.ops-admin .ops-legacy .admin-content-query #admin-search{width:100%;background:var(--ds-surface)!important}
body.ops-admin .ops-legacy .admin-content-query .admin-list-filters{background:transparent!important;border:0!important;padding:0!important;margin:0;flex:1 1 260px}
body.ops-admin .ops-legacy .admin-content-query .field{flex-basis:130px;max-width:none}
body.ops-admin .ops-legacy .admin-content-table{width:100%;min-width:640px;table-layout:fixed}
body.ops-admin .ops-legacy .admin-content-table th:first-child{width:36%}
body.ops-admin .ops-legacy .admin-content-table th:nth-child(2){width:15%}
body.ops-admin .ops-legacy .admin-content-table th:nth-child(3){width:13%}
body.ops-admin .ops-legacy .admin-content-table th:nth-child(4){width:14%}
body.ops-admin .ops-legacy .admin-content-table th:last-child{width:22%}
body.ops-admin .ops-legacy .admin-content-table td{white-space:normal!important;overflow-wrap:anywhere}
body.ops-admin .ops-legacy .admin-content-table td strong{font-size:14px;font-weight:600;color:var(--ds-ink)}
body.ops-admin .ops-legacy .content-row-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
body.ops-admin .ops-legacy .admin-content-table .content-delete-button{color:var(--ds-danger,#b42318)!important;min-width:36px;padding:0 8px!important}
body.ops-admin .ops-legacy .admin-content-table .content-delete-button:hover{background:var(--ds-surface-2)!important}
body.ops-admin .ops-legacy .content-record-id{display:block;font-size:12px;color:var(--ds-muted);margin-top:4px}
body.ops-admin .ops-legacy .admin-list-empty{padding:40px 20px;text-align:center}
body.ops-admin .ops-legacy .admin-list-empty h3{font-size:17px!important;margin:0 0 8px}
body.ops-admin .ops-legacy .admin-list-empty p{font-size:14px;color:var(--ds-muted);margin:0 0 18px}
body.ops-admin .ops-legacy .admin-order-task-filters{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 12px}
body.ops-admin .ops-legacy .admin-order-task-filters .button{min-height:40px;white-space:normal}
body.ops-admin .ops-legacy .admin-order-task-filters .button[aria-pressed=true]{background:var(--ds-ink)!important;border-color:var(--ds-ink)!important;color:var(--ds-surface)!important}
body.ops-admin .ops-legacy .admin-order-quick-tabs{flex-wrap:wrap;overflow:visible;gap:6px;margin-bottom:18px}
body.ops-admin .ops-legacy .admin-order-quick-tabs .button{min-height:36px!important}
body.ops-admin .ops-legacy .order-filter-primary-bar{align-items:flex-end;gap:12px;flex-wrap:wrap}
body.ops-admin .ops-legacy .order-filter-primary-bar .order-search-field{flex-basis:280px}
body.ops-admin .ops-legacy .order-date-shortcuts,body.ops-admin .ops-legacy .order-submit-group{gap:6px;flex-wrap:wrap}
body.ops-admin .ops-legacy .delivery-task-summary{background:var(--ds-surface-2);padding:16px;border-radius:var(--ds-r-sm);margin-bottom:18px}
body.ops-admin .ops-legacy .delivery-task-summary h3{font-size:18px!important;margin:0 0 6px}
body.ops-admin .ops-legacy .delivery-task-summary p{margin:0;color:var(--ds-muted);font-size:14px;line-height:1.7}
body.ops-admin .ops-legacy .product-editor-overview{padding:12px 24px;background:var(--ds-surface-2);border-bottom:1px solid var(--ds-line)}
body.ops-admin .ops-legacy .product-editor-overview>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
body.ops-admin .ops-legacy .product-editor-overview strong{font-size:17px;color:var(--ds-ink);overflow-wrap:anywhere}
body.ops-admin .ops-legacy .product-editor-overview dl{display:flex;gap:8px 24px;flex-wrap:wrap;margin:8px 0 4px}
body.ops-admin .ops-legacy .product-editor-overview dl>div{display:flex;align-items:baseline;gap:8px}
body.ops-admin .ops-legacy .product-editor-overview dt{font-size:12px;color:var(--ds-muted)}
body.ops-admin .ops-legacy .product-editor-overview dd{font-size:15px;font-weight:600;margin:0;font-variant-numeric:tabular-nums}
body.ops-admin .ops-legacy .product-editor-overview small{font-size:12px;color:var(--ds-muted)}
body.ops-admin .ops-legacy .product-editor-intro{display:none}
body.ops-admin .ops-legacy .product-sku-tools{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
body.ops-admin .ops-legacy .form-section-heading{display:block!important}
body.ops-admin .ops-legacy .form-section-heading h3{font-size:17px!important;line-height:1.5;margin:0 0 6px}
body.ops-admin .ops-legacy .form-section-heading p{font-size:13px!important;line-height:1.7;margin:0;color:var(--ds-muted)}
body.ops-admin #overlays .modal.article-editor{max-width:960px!important;width:calc(100vw - 48px)!important}
body.ops-admin .ops-legacy .article-editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:28px}
body.ops-admin .ops-legacy .article-editor-layout :is(section,aside){min-width:0}
body.ops-admin .ops-legacy .article-editor-layout h3{font-size:16px!important;line-height:1.5;margin:0 0 18px}
body.ops-admin .ops-legacy .article-editor-layout .field{display:flex;flex-direction:column;gap:7px;margin:0 0 20px}
body.ops-admin .ops-legacy .article-editor-layout .field>span{font-size:13px!important;color:var(--ds-ink-2);font-weight:550}
body.ops-admin .ops-legacy .article-editor-layout :is(input,select,textarea){font-size:14px!important;width:100%;min-width:0}
body.ops-admin #overlays .modal.article-editor .article-editor-layout textarea{min-height:300px!important;resize:vertical;line-height:1.8}
body.ops-admin .ops-legacy .article-editor-layout small,body.ops-admin .ops-legacy .article-translation-note{font-size:12px!important;line-height:1.7;color:var(--ds-muted)}
body.ops-admin .ops-legacy .article-editor .modal-actions{position:sticky;bottom:0;background:var(--ds-surface);padding-top:16px;margin-top:12px;border-top:1px solid var(--ds-line);display:flex;gap:8px;align-items:center;justify-content:flex-end}
body.ops-admin .ops-legacy .article-editor .modal-actions>span{margin-right:auto;font-size:12px;color:var(--ds-muted)}
@media(max-width:1100px){
 body.ops-admin .ops-legacy .merchant-console{grid-template-columns:216px minmax(0,1fr)}
 body.ops-admin .ops-legacy{padding:20px!important}
 body.ops-admin .ops-legacy>.panel{padding:20px!important}
 body.ops-admin .ops-legacy .admin-content-table{min-width:620px}
}
@media(max-width:800px){
 body.ops-admin .ops-legacy .merchant-console{display:block}
 body.ops-admin .ops-legacy .merchant-sidebar{width:272px;padding:20px 14px;left:-288px}
 body.ops-admin .ops-legacy .merchant-sidebar.is-open{left:0}
 body.ops-admin .ops-legacy .merchant-nav a{min-height:44px;font-size:15px!important}
 body.ops-admin .ops-legacy{padding:16px 12px!important}
 body.ops-admin .ops-legacy>.panel{padding:18px 14px!important}
 body.ops-admin .ops-legacy .settings-savebar{display:flex;flex-wrap:nowrap;align-items:center;gap:12px;padding:12px!important;bottom:0}
 body.ops-admin .ops-legacy .settings-savebar>span{min-width:0;font-size:12px;line-height:1.5}
 body.ops-admin .ops-legacy .settings-savebar small{display:none}
 body.ops-admin .ops-legacy .settings-savebar .button{width:auto!important;flex:0 0 auto;min-height:44px!important;font-size:14px!important;padding-inline:14px!important}
 body.ops-admin .ops-legacy .settings-nav{scrollbar-width:none;scroll-padding-inline:8px}
 body.ops-admin .ops-legacy .seo-geo-endpoints{grid-template-columns:minmax(0,1fr);gap:0}
 body.ops-admin .ops-legacy .toolbar{margin-bottom:16px;gap:12px}
 body.ops-admin .ops-legacy .toolbar h2{font-size:22px!important}
 body.ops-admin #overlays .product-edit-grid{grid-template-columns:minmax(0,1fr);gap:20px}
 body.ops-admin #overlays .product-publish-form .field :is(input,select,textarea){font-size:16px!important;min-height:44px}
 body.ops-admin .ops-legacy .toolbar .button{min-height:44px!important}
 body.ops-admin .ops-legacy .admin-search-row{align-items:stretch;gap:7px}
 body.ops-admin .ops-legacy .admin-search-label{flex-basis:100%}
 body.ops-admin .ops-legacy .admin-search-row #admin-search{flex:1 1 180px;width:auto;min-height:44px!important;font-size:16px!important}
 body.ops-admin .ops-legacy .admin-list-filters{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));padding:12px!important;gap:12px 10px}
 body.ops-admin .ops-legacy .admin-list-filters>.button{width:100%!important;min-width:0!important;margin:0!important}
 body.ops-admin .ops-legacy .admin-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 body.ops-admin .ops-legacy .admin-kpi-card{min-width:0}
 body.ops-admin .ops-legacy .admin-list-filters .field{flex:1 1 calc(50% - 10px);max-width:none}
 body.ops-admin .ops-legacy .admin-list-filters select{height:44px!important;min-height:44px!important;font-size:16px!important}
 body.ops-admin .ops-legacy .admin-list-filters>.button{min-height:44px!important}
 body.ops-admin .ops-legacy .admin-content-kinds{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding-bottom:16px;margin-bottom:16px}
 body.ops-admin .ops-legacy .admin-content-kinds .button{justify-content:space-between;min-height:44px}
 body.ops-admin .ops-legacy .admin-content-query{padding:12px;gap:14px}
 body.ops-admin .ops-legacy .admin-content-query .admin-search-row{flex-basis:100%}
 body.ops-admin .ops-legacy .admin-content-query .admin-list-filters{flex-basis:100%;gap:10px;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))}
 body.ops-admin .ops-legacy .admin-content-query .admin-list-filters .field{grid-column:1/-1}
 body.ops-admin .ops-legacy .admin-content-query .admin-list-filters>.button{width:100%!important;margin:0!important;min-width:0!important}
 body.ops-admin .ops-legacy .admin-content-panel .toolbar{flex-wrap:nowrap!important;align-items:center!important}
 body.ops-admin .ops-legacy .admin-content-panel .toolbar h2{flex:1!important;width:auto!important}
 body.ops-admin .ops-legacy .admin-content-panel .toolbar-actions{width:auto!important}
 body.ops-admin .ops-legacy .admin-content-table{display:block;min-width:0!important;table-layout:auto}
 body.ops-admin .ops-legacy .admin-content-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 body.ops-admin .ops-legacy .admin-content-table tbody{display:block}
 body.ops-admin .ops-legacy .admin-content-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px;border-bottom:1px solid var(--ds-line)}
 body.ops-admin .ops-legacy .admin-content-table td{display:block;padding:0!important;border:0!important;min-width:0}
 body.ops-admin .ops-legacy .admin-content-table td:first-child,body.ops-admin .ops-legacy .admin-content-table td:last-child{grid-column:1/-1}
 body.ops-admin .ops-legacy .admin-content-table td:not(:first-child):not(:last-child)::before{content:attr(data-label);display:block;font-size:12px;color:var(--ds-muted);margin-bottom:4px}
 body.ops-admin .ops-legacy .admin-content-table td.actions{display:flex!important;gap:6px;flex-wrap:wrap}
 body.ops-admin .ops-legacy .admin-content-table .button{min-height:44px!important}
 body.ops-admin .ops-legacy .admin-content-table .content-delete-button{min-width:44px}
 body.ops-admin .ops-legacy .order-filter-primary-bar .order-search-field{flex-basis:100%}
 body.ops-admin .ops-legacy .order-date-shortcuts{display:flex;width:100%}
 body.ops-admin .ops-legacy .order-submit-group{display:flex;margin-left:0}
 body.ops-admin .ops-legacy .product-editor-overview{padding:10px 18px}
 body.ops-admin .ops-legacy .product-editor-overview dl{gap:4px 16px;margin:6px 0 2px}
 body.ops-admin .ops-legacy .product-editor-overview strong{font-size:15px}
 body.ops-admin .ops-legacy .product-editor-overview dd{font-size:14px}
 body.ops-admin #overlays .modal.article-editor{width:calc(100vw - 24px)!important}
 body.ops-admin .ops-legacy .article-editor-layout{grid-template-columns:minmax(0,1fr);gap:24px}
 body.ops-admin #overlays .modal.article-editor .article-editor-layout textarea{min-height:220px!important}
 body.ops-admin .ops-legacy .article-editor-layout :is(input,select,textarea){font-size:16px!important;min-height:44px}
 body.ops-admin .ops-legacy .article-editor .modal-actions{flex-wrap:wrap}
 body.ops-admin .ops-legacy .article-editor .modal-actions .button{min-height:44px}
}
/* Product columns retain readable widths; compact screens use stacked rows. */
body.ops-admin .ops-legacy .table-wrap:has(>.product-manager-table){container:product-table / inline-size}
body.ops-admin .ops-legacy .table-wrap>.product-manager-table{display:block;min-width:1104px!important;width:100%!important}
body.ops-admin .ops-legacy .product-manager-table :is(thead,tbody){display:block}
body.ops-admin .ops-legacy .product-manager-table tr{display:grid;grid-template-columns:76px minmax(240px,1.5fr) minmax(110px,.8fr) minmax(210px,1.5fr) 124px 124px 220px}
body.ops-admin .ops-legacy .product-manager-table :is(th,td){min-width:0;align-content:center}
body.ops-admin .ops-legacy .product-manager-table td[colspan]{grid-column:1/-1}
body.ops-admin .ops-legacy .product-manager-table th:nth-child(1){width:76px!important}
body.ops-admin .ops-legacy .product-manager-table .product-selection-cell{width:76px!important;min-width:76px!important}
body.ops-admin .ops-legacy .product-manager-table .admin-cat-cell{white-space:normal!important;overflow-wrap:anywhere}
body.ops-admin .ops-legacy .product-manager-table .admin-prod-status-cell{display:flex;align-items:center;gap:8px;min-width:0}
body.ops-admin .ops-legacy .product-manager-table .admin-prod-status-cell .button{border:1px solid var(--ds-line)!important;border-radius:4px}
body.ops-admin .ops-legacy .product-manager-table :is(th:last-child,td.actions){width:220px!important;min-width:220px!important}
body.ops-admin .ops-legacy .product-manager-table td{padding-block:12px!important}
body.ops-admin .ops-legacy .product-manager-table .admin-product-title{min-width:0!important;max-width:none!important;align-items:center}
body.ops-admin .ops-legacy .product-manager-table .admin-product-title>div{min-width:0}
body.ops-admin .ops-legacy .product-manager-table .admin-product-title strong{display:block;white-space:normal;overflow-wrap:anywhere;line-height:1.5!important}
body.ops-admin .ops-legacy .product-manager-table .admin-product-image{width:64px!important;height:44px!important;flex:0 0 64px;object-fit:cover}
body.ops-admin .ops-legacy .product-manager-table .product-sku-summary{min-width:0;overflow-wrap:anywhere}
body.ops-admin .ops-legacy .product-manager-table :is(.product-sku-summary,.product-sku-summary span,.readiness-label){white-space:normal;overflow-wrap:anywhere}
body.ops-admin .ops-legacy .product-row-readiness{margin:4px 0}
body.ops-admin .ops-legacy .product-row-readiness summary{cursor:pointer;min-height:32px;align-content:center;font-size:12px;color:var(--ds-muted)}
body.ops-admin .ops-legacy .product-row-readiness summary:focus-visible{outline:2px solid var(--ds-ink);outline-offset:2px}
body.ops-admin .ops-legacy .product-row-readiness .readiness-label{margin:4px 0 8px;font-size:12px!important;line-height:1.6}
body.ops-admin .ops-legacy .product-manager-table .product-row-actions{display:inline-flex;align-items:center;gap:6px;vertical-align:middle}
body.ops-admin .ops-legacy .product-manager-table .product-row-actions .button{flex:none;white-space:nowrap;margin:0!important}
body.ops-admin .ops-legacy .product-manager-table .product-more{display:inline-block;margin:0 0 0 8px;vertical-align:middle}
body.ops-admin .ops-legacy .product-manager-table .product-more[open]{display:block;margin:8px 0 0}
body.ops-admin .ops-legacy .product-manager-table .product-delete-button{color:var(--ds-danger,#b42318)!important;width:32px!important;padding:0!important}
body.ops-admin .ops-legacy .product-manager-table .product-delete-button:hover{background:var(--ds-surface-2)!important}
body.ops-admin .ops-legacy .category-sort-status{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:16px 0;color:var(--ds-ink-2);font-size:13px}
body.ops-admin .ops-legacy .category-manager-table{width:100%;min-width:680px;table-layout:fixed}
body.ops-admin .ops-legacy .category-manager-table th:first-child{width:72px!important}
body.ops-admin .ops-legacy .category-manager-table th:nth-child(3){width:180px}
body.ops-admin .ops-legacy .category-manager-table th:nth-child(4){width:72px}
body.ops-admin .ops-legacy .category-manager-table :is(th:last-child,td.actions){width:184px!important;min-width:184px!important}
body.ops-admin .ops-legacy .category-manager-table .category-row-title{display:flex;align-items:center;gap:12px;min-width:0}
body.ops-admin .ops-legacy .category-row-title strong{min-width:0;overflow-wrap:anywhere;white-space:normal}
body.ops-admin .ops-legacy .category-row-title .icon{width:32px;height:32px;flex:none}
body.ops-admin .ops-legacy .category-manager-table .product-drag-handle{margin:0;min-width:44px}
body.ops-admin .ops-legacy .category-manager-table .product-drag-handle .icon{width:22px;height:22px;pointer-events:none;user-select:none;-webkit-user-drag:none}
body.ops-admin .ops-legacy .category-manager-table tr.is-dragging{opacity:.4}
body.ops-admin .ops-legacy .category-manager-table tr.drop-before>td{box-shadow:inset 0 3px var(--ds-accent,var(--bm-accent))}
body.ops-admin .ops-legacy .category-manager-table tr.drop-after>td{box-shadow:inset 0 -3px var(--ds-accent,var(--bm-accent))}
@media(min-width:1100px){
 body.ops-admin .ops-legacy .category-manager-table :is(thead,tbody){display:block}
 body.ops-admin .ops-legacy .category-manager-table tr{display:grid;grid-template-columns:72px minmax(220px,420px) 180px 72px minmax(184px,1fr)}
 body.ops-admin .ops-legacy .category-manager-table :is(th,td){width:auto!important;min-width:0!important;align-content:center}
 body.ops-admin .ops-legacy .category-manager-table :is(th:last-child,td.actions){width:auto!important;min-width:0!important;text-align:left!important}
 body.ops-admin .ops-legacy .category-manager-table td[colspan]{grid-column:1/-1}
}
@media(max-width:700px){
 body.ops-admin .ops-legacy .table-wrap>.category-manager-table{display:block;min-width:0!important;table-layout:auto}
 body.ops-admin .ops-legacy .category-manager-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 body.ops-admin .ops-legacy .category-manager-table tbody{display:block}
 body.ops-admin .ops-legacy .category-manager-table tr{display:grid;grid-template-columns:44px minmax(0,1fr);gap:8px 12px;padding:16px 0;border-bottom:1px solid var(--ds-line)}
 body.ops-admin .ops-legacy .category-manager-table td{display:block;padding:0!important;border:0!important;min-width:0!important;width:auto!important}
 body.ops-admin .ops-legacy .category-manager-table td:first-child{grid-column:1;grid-row:1/4;align-self:center}
 body.ops-admin .ops-legacy .category-manager-table td[colspan]{grid-column:1/-1;grid-row:auto}
 body.ops-admin .ops-legacy .category-manager-table td:nth-child(2){grid-column:2;grid-row:1}
 body.ops-admin .ops-legacy .category-manager-table td:nth-child(3){grid-column:2;grid-row:2}
 body.ops-admin .ops-legacy .category-manager-table td:nth-child(4){display:none}
 body.ops-admin .ops-legacy .category-manager-table td.actions{position:static;grid-column:2;grid-row:3;display:flex;flex-wrap:wrap;gap:8px}
 body.ops-admin .ops-legacy .category-manager-table td.actions .button{min-height:44px!important;margin:0!important}
 body.ops-admin .ops-legacy .category-manager-table tr.drop-before{box-shadow:inset 0 3px var(--bm-accent)}
 body.ops-admin .ops-legacy .category-manager-table tr.drop-after{box-shadow:inset 0 -3px var(--bm-accent)}
 body.ops-admin .ops-legacy .category-manager-table tr:is(.drop-before,.drop-after)>td{box-shadow:none}
}
body.ops-admin .ops-legacy .product-delete-dialog{line-height:1.8;overflow-wrap:anywhere}
body.ops-admin .ops-legacy .admin-audit-table{min-width:860px;table-layout:fixed}
body.ops-admin .ops-legacy .admin-audit-table th:first-child{width:170px}
body.ops-admin .ops-legacy .admin-audit-table th:nth-child(2){width:160px}
body.ops-admin .ops-legacy .admin-audit-table th:nth-child(3){width:180px}
body.ops-admin .ops-legacy .admin-audit-table th:nth-child(4){width:180px}
body.ops-admin .ops-legacy .admin-audit-table td{white-space:normal;overflow-wrap:anywhere;vertical-align:top}
body.ops-admin .ops-legacy .admin-audit-table :is(th:last-child,td.actions){width:auto!important;min-width:170px!important}
body.ops-admin .ops-legacy .admin-audit-detail summary{cursor:pointer;white-space:nowrap;min-height:36px;display:flex;align-items:center;color:var(--ds-accent,var(--bm-accent))}
body.ops-admin .ops-legacy .admin-audit-detail pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto;font-size:12px;line-height:1.6;text-align:left;margin:8px 0 0}
@media(min-width:801px){
 body.ops-admin .ops-legacy .merchant-sidebar{position:sticky;box-shadow:none}
 body.ops-admin .ops-legacy .merchant-topbar [aria-controls="merchant-navigation"]{display:none!important}
}
body.ops-admin .ops-legacy .security-workspace .stats .stat strong{font-size:20px!important;line-height:1.5!important}
@media(max-width:600px){
 body.ops-admin .ops-legacy .security-workspace .stats{grid-template-columns:minmax(0,1fr)!important;gap:8px}
 body.ops-admin .ops-legacy .security-workspace .stats .stat{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;padding:14px!important}
 body.ops-admin .ops-legacy .security-workspace .stats .stat span{flex:0 0 auto;font-size:13px!important}
 body.ops-admin .ops-legacy .security-workspace .stats .stat strong{min-width:0;font-size:16px!important;line-height:1.5!important;text-align:right;overflow-wrap:anywhere}
}
body.ops-admin .ops-legacy .product-delete-dialog .modal-actions{display:flex;gap:8px;justify-content:flex-end}
body.ops-admin .ops-legacy .inventory-overview{border-block:1px solid var(--ds-line);margin-block:16px;padding:0}
body.ops-admin .ops-legacy .inventory-overview>summary{cursor:pointer;padding:14px 0;min-height:48px;font-size:15px;font-weight:600;color:var(--ds-ink)}
body.ops-admin .ops-legacy .inventory-overview>summary span{font-weight:400;margin-left:8px;display:inline-block}
body.ops-admin .ops-legacy .inventory-overview .admin-sku-matrix{margin-bottom:16px}
body.ops-admin .ops-legacy .inventory-sku-picker{min-width:220px;max-width:100%;flex:1 1 320px}
body.ops-admin .ops-legacy .inventory-sku-picker :is(input,select){width:100%;min-width:0}
body.ops-admin .ops-legacy #notification-queue .table-wrap{overflow-x:auto}
body.ops-admin .ops-legacy #settings-panel-queue>header{margin-bottom:12px;padding-bottom:8px}
body.ops-admin .ops-legacy #notification-queue .notification-readiness{display:grid;gap:8px;margin-bottom:16px}
body.ops-admin .ops-legacy #notification-queue .notification-readiness .notice{margin:0;padding:8px 12px}
body.ops-admin .ops-legacy .inventory-overview-empty{grid-column:1/-1;margin:0;padding:12px 0}
body.ops-admin .ops-legacy #notification-queue table{min-width:1000px;table-layout:fixed}
body.ops-admin .ops-legacy #notification-queue :is(th,td){white-space:normal;overflow-wrap:anywhere;vertical-align:top}
body.ops-admin .ops-legacy #notification-queue :is(th,td):nth-child(1){width:190px}
body.ops-admin .ops-legacy #notification-queue :is(th,td):nth-child(2){width:210px}
body.ops-admin .ops-legacy #notification-queue :is(th,td):nth-child(3){width:105px}
body.ops-admin .ops-legacy #notification-queue :is(th,td):nth-child(4){width:76px}
body.ops-admin .ops-legacy #notification-queue :is(th,td):nth-child(5){width:180px}
body.ops-admin .ops-legacy #notification-queue :is(th,td):last-child{width:80px!important;min-width:80px!important}
body.ops-admin .ops-legacy .notification-pagination{justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:16px}

/* v286: unified admin workspace refinement
   Operate-first hierarchy: stable shell, tighter task groups, predictable density. */
html[data-ds] body.ops-admin .ops-legacy{
  --admin-space-1:4px;
  --admin-space-2:8px;
  --admin-space-3:12px;
  --admin-space-4:16px;
  --admin-space-5:20px;
  --admin-space-6:24px;
  --admin-surface-raised:var(--ds-surface);
  --admin-surface-muted:var(--ds-surface-2);
  --admin-border:var(--ds-line);
  --admin-border-strong:var(--ds-line-strong);
  --admin-control-radius:8px;
  --admin-panel-radius:8px;
  --admin-content-max:none;
}
html[data-ds] body.ops-admin .ops-legacy .merchant-console{
  grid-template-columns:232px minmax(0,1fr)!important;
  min-height:100dvh;
  background:var(--ds-paper);
}
html[data-ds] body.ops-admin .ops-legacy .merchant-sidebar{
  padding:24px 16px 16px!important;
  background:#151A11!important;
  border-right:1px solid #2A3222!important;
}
html[data-ds] body.ops-admin .ops-legacy .merchant-brand{
  min-height:48px;
  padding:0 8px;
  gap:11px;
}
html[data-ds] body.ops-admin .ops-legacy .merchant-brand strong{font-size:19px!important;line-height:1.2}
html[data-ds] body.ops-admin .ops-legacy .merchant-brand small{display:block;margin-top:3px;color:#A8B39B!important;font-size:11px!important}
html[data-ds] body.ops-admin .ops-legacy .merchant-store{
  margin:22px 0 20px!important;
  padding:12px!important;
  border-radius:10px!important;
  background:#20281A!important;
  border-color:#34402A!important;
  line-height:1.55;
}
html[data-ds] body.ops-admin .ops-legacy .merchant-nav>details{margin:0 0 12px}
html[data-ds] body.ops-admin .ops-legacy .merchant-nav>details>summary{
  min-height:32px;
  padding:6px 10px!important;
  color:#B0BBA4!important;
  font-size:12px!important;
  font-weight:600;
  letter-spacing:0;
}
html[data-ds] body.ops-admin .ops-legacy .merchant-nav a{
  min-height:40px;
  margin:2px 0;
  padding:9px 11px!important;
  border-radius:8px!important;
  gap:10px;
  font-size:13px!important;
}
html[data-ds] body.ops-admin .ops-legacy .merchant-nav a .icon{width:16px;height:16px;flex:none}
html[data-ds] body.ops-admin .ops-legacy .merchant-nav a.active,
html[data-ds] body.ops-admin .ops-legacy .merchant-nav a[aria-current=page]{box-shadow:inset 3px 0 var(--ds-accent)}
html[data-ds] body.ops-admin .ops-legacy .merchant-sidebar-footer{padding:16px 8px 0!important;margin-top:auto}
html[data-ds] body.ops-admin .ops-legacy .merchant-workspace{min-width:0;max-width:none;margin:0}
html[data-ds] body.ops-admin .ops-legacy .merchant-topbar{
  min-height:72px!important;
  padding:0 24px!important;
  background:var(--ds-paper)!important;
  border-bottom:1px solid var(--admin-border)!important;
  backdrop-filter:none!important;
}
html[data-ds] body.ops-admin .ops-legacy .merchant-topbar>div{min-width:0;display:flex;align-items:baseline;gap:8px}
html[data-ds] body.ops-admin .ops-legacy .merchant-topbar>div>span{font-size:12px;color:var(--ds-muted)!important;white-space:nowrap}
html[data-ds] body.ops-admin .ops-legacy .merchant-topbar :is(h1,.merchant-title){font-size:19px!important;line-height:1.35;font-weight:700;white-space:nowrap}
html[data-ds] body.ops-admin .ops-legacy .merchant-connected{margin-left:auto;white-space:nowrap}
html[data-ds] body.ops-admin .ops-legacy .merchant-topbar>a.button{min-height:38px}
html[data-ds] body.ops-admin .ops-legacy{
  width:100%!important;
  max-width:var(--admin-content-max)!important;
  margin:0!important;
  padding:24px 24px 48px!important;
  line-height:1.65;
}
html[data-ds] body.ops-admin .ops-legacy>.toolbar{margin:0 0 22px!important;align-items:center;gap:18px}
html[data-ds] body.ops-admin .ops-legacy>.toolbar h2{font-size:27px!important;line-height:1.25;font-weight:720;letter-spacing:-.025em}
html[data-ds] body.ops-admin .ops-legacy>.toolbar-actions{gap:8px}
html[data-ds] body.ops-admin .ops-legacy>.toolbar .button{min-height:40px!important;border-radius:8px!important}
html[data-ds] body.ops-admin .ops-legacy>.panel,
html[data-ds] body.ops-admin .ops-legacy>.admin-chart-panel,
html[data-ds] body.ops-admin .ops-legacy>.admin-side-card{
  border-radius:var(--admin-panel-radius)!important;
  border:1px solid var(--admin-border)!important;
}
html[data-ds] body.ops-admin .ops-legacy .admin-kpi-grid{gap:14px;margin:0 0 16px}
html[data-ds] body.ops-admin .ops-legacy .admin-kpi-card,
html[data-ds] body.ops-admin .ops-legacy .admin-kpi-card.is-primary{
  min-height:108px;
  padding:16px!important;
  border-radius:var(--admin-panel-radius)!important;
  border:1px solid var(--admin-border)!important;
  border-inline-start:1px solid var(--admin-border)!important;
}
html[data-ds] body.ops-admin .ops-legacy .admin-kpi-card.is-primary{border-color:var(--ds-line-strong)!important}
html[data-ds] body.ops-admin .ops-legacy .admin-kpi-head{font-size:13px;font-weight:600}
html[data-ds] body.ops-admin .ops-legacy .admin-kpi-head .icon{width:17px;height:17px;color:var(--ds-ink-2);opacity:.8}
html[data-ds] body.ops-admin .ops-legacy .admin-kpi-card strong{font-size:29px!important;line-height:1.25}
html[data-ds] body.ops-admin .ops-legacy .admin-kpi-card small{font-size:12px;line-height:1.5}
html[data-ds] body.ops-admin .ops-legacy .admin-ops-pulse{
  margin:0 0 18px!important;
  padding:9px 12px!important;
  gap:8px;
  border-radius:10px!important;
  background:var(--admin-surface-raised)!important;
  border:1px solid var(--admin-border)!important;
}
html[data-ds] body.ops-admin .ops-legacy .pulse-chip{
  min-height:34px;
  padding:6px 10px;
  border:1px solid transparent;
  border-radius:7px;
  background:var(--admin-surface-muted);
  font-size:12px;
}
html[data-ds] body.ops-admin .ops-legacy .pulse-chip:hover{border-color:var(--admin-border-strong);transform:none}
html[data-ds] body.ops-admin .ops-legacy .pulse-chip b{font-size:12px}
html[data-ds] body.ops-admin .ops-legacy .pulse-chip.is-ok{margin-left:auto}
html[data-ds] body.ops-admin .ops-legacy .admin-dashboard-main{grid-template-columns:minmax(0,1.28fr) minmax(320px,.72fr);gap:20px;margin-top:0}
html[data-ds] body.ops-admin .ops-legacy .admin-side-stack{gap:20px}
html[data-ds] body.ops-admin .ops-legacy .admin-chart-panel{padding:24px!important}
html[data-ds] body.ops-admin .ops-legacy .admin-chart-panel h3,
html[data-ds] body.ops-admin .ops-legacy .admin-side-card h3{font-size:17px!important;line-height:1.4;font-weight:680}
html[data-ds] body.ops-admin .ops-legacy .trade-toolbar{margin-bottom:18px}
html[data-ds] body.ops-admin .ops-legacy .trade-controls{gap:6px}
html[data-ds] body.ops-admin .ops-legacy .trade-controls .button{min-height:34px!important;padding-inline:11px!important;border-radius:7px!important}
html[data-ds] body.ops-admin .ops-legacy .trade-chart-wrap{margin-top:12px}
html[data-ds] body.ops-admin .ops-legacy .admin-side-card{padding:20px!important}
html[data-ds] body.ops-admin .ops-legacy .admin-recent-orders{gap:6px;margin-top:14px}
html[data-ds] body.ops-admin .ops-legacy .admin-recent-order-row{min-height:52px;padding:9px 11px;border-radius:8px;background:var(--admin-surface-muted)}
html[data-ds] body.ops-admin .ops-legacy .admin-recent-order-row .button{min-height:32px!important;padding-inline:9px!important}
html[data-ds] body.ops-admin .ops-legacy .dashboard-checks,
html[data-ds] body.ops-admin .ops-legacy .product-readiness{margin-top:20px!important;border-radius:var(--admin-panel-radius)!important}
html[data-ds] body.ops-admin .ops-legacy .dashboard-checks>summary{min-height:48px;padding:4px 0;font-size:15px;font-weight:650}
html[data-ds] body.ops-admin .ops-legacy .dashboard-check-list{gap:10px}
html[data-ds] body.ops-admin .ops-legacy .dashboard-check-list>article{padding:14px!important;border-radius:9px;background:var(--admin-surface-muted)}
html[data-ds] body.ops-admin .ops-legacy .product-readiness{padding:20px!important}
html[data-ds] body.ops-admin .ops-legacy .product-readiness .readiness-heading{gap:16px}
html[data-ds] body.ops-admin .ops-legacy .product-readiness h3{font-size:16px;font-weight:680}
html[data-ds] body.ops-admin .ops-legacy :is(.admin-list-filters,.admin-order-filter-box,.order-filter-grid,.order-advanced-filters){
  border-radius:10px!important;
  padding:16px!important;
}
html[data-ds] body.ops-admin .ops-legacy .admin-list-filters{gap:12px!important;margin-bottom:18px!important}
html[data-ds] body.ops-admin .ops-legacy .admin-list-filters .field>span,
html[data-ds] body.ops-admin .ops-legacy .order-search-field>span{font-size:12px!important;font-weight:650;color:var(--ds-ink-2)!important}
html[data-ds] body.ops-admin :is(.ops-legacy,#overlays) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){
  min-height:42px!important;
  padding:9px 12px!important;
  border-radius:var(--admin-control-radius)!important;
}
html[data-ds] body.ops-admin .ops-legacy .table-wrap{border-radius:10px!important}
html[data-ds] body.ops-admin .ops-legacy table thead th{padding:11px 13px!important;font-size:12px!important}
html[data-ds] body.ops-admin .ops-legacy table tbody td{padding:13px!important;font-size:13px!important}
html[data-ds] body.ops-admin .ops-legacy table tbody tr:hover{background:var(--admin-surface-muted)!important}
html[data-ds] body.ops-admin .ops-legacy .settings-nav{gap:0 26px!important;margin-bottom:28px!important}
html[data-ds] body.ops-admin .ops-legacy .settings-nav .button{min-height:50px!important;font-size:13px!important}
html[data-ds] body.ops-admin .ops-legacy .settings-workspace>.settings-card,
html[data-ds] body.ops-admin .ops-legacy .settings-workspace>.panel{border-radius:var(--admin-panel-radius)!important}
html[data-ds] body.ops-admin #overlays .modal:not(.product-editor){border-radius:14px!important}
html[data-ds] body.ops-admin #overlays .modal-head{padding:20px 24px!important}
html[data-ds] body.ops-admin #overlays .modal-head h2{font-size:21px!important;font-weight:700}
html[data-ds] body.ops-admin #overlays .modal-actions{padding:14px 24px!important;gap:8px}

html[data-color-mode=dark] body.ops-admin .ops-legacy .merchant-sidebar{background:#0F130D!important}
html[data-color-mode=dark] body.ops-admin .ops-legacy .merchant-store{background:#1A2117!important;border-color:#2D3A27!important}
html[data-color-mode=dark] body.ops-admin .ops-legacy .admin-recent-order-row,
html[data-color-mode=dark] body.ops-admin .ops-legacy .dashboard-check-list>article{background:var(--ds-surface-2)!important}

/* Keep editable controls readable in dark mode. The shared form layer can
   otherwise inherit a light input surface while using the dark text token. */
html[data-color-mode=dark] body.ops-admin .ops-legacy :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea){
  background:#202820!important;
  color:#F1F5EA!important;
  border-color:#3B4A38!important;
  caret-color:#C3E56E!important;
}
html[data-color-mode=dark] body.ops-admin .ops-legacy :is(input,textarea)::placeholder{color:#AAB6A4!important;opacity:1}
html[data-color-mode=dark] body.ops-admin .ops-legacy :is(input,select,textarea):focus-visible{
  outline-color:#C3E56E!important;
  border-color:#C3E56E!important;
  box-shadow:0 0 0 2px rgba(195,229,110,.16)!important;
}

@media(max-width:1100px){
  html[data-ds] body.ops-admin .ops-legacy .merchant-console{grid-template-columns:228px minmax(0,1fr)!important}
  html[data-ds] body.ops-admin .ops-legacy{padding-inline:24px!important}
  html[data-ds] body.ops-admin .ops-legacy .admin-dashboard-main{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:800px){
  html[data-ds] body.ops-admin .ops-legacy .merchant-topbar{min-height:64px!important;padding:0 16px!important}
  html[data-ds] body.ops-admin .ops-legacy .merchant-topbar>div>span{display:none}
  html[data-ds] body.ops-admin .ops-legacy .merchant-topbar :is(h1,.merchant-title){font-size:17px!important}
  html[data-ds] body.ops-admin .ops-legacy{padding:22px 16px 40px!important}
  html[data-ds] body.ops-admin .ops-legacy>.toolbar{align-items:flex-start;gap:12px;margin-bottom:18px!important}
  html[data-ds] body.ops-admin .ops-legacy>.toolbar h2{font-size:24px!important}
  html[data-ds] body.ops-admin .ops-legacy>.toolbar-actions{width:100%;justify-content:flex-start}
  html[data-ds] body.ops-admin .ops-legacy>.toolbar-actions .button{flex:1 1 auto;min-width:0}
  html[data-ds] body.ops-admin .ops-legacy .admin-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  html[data-ds] body.ops-admin .ops-legacy .admin-kpi-card{min-height:112px;padding:14px!important}
  html[data-ds] body.ops-admin .ops-legacy .admin-kpi-card strong{font-size:22px!important}
  html[data-ds] body.ops-admin .ops-legacy .admin-ops-pulse{align-items:stretch;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:10px!important}
  html[data-ds] body.ops-admin .ops-legacy .pulse-chip,.pulse-chip.is-ok{margin:0!important;justify-content:space-between}
  html[data-ds] body.ops-admin .ops-legacy .pulse-chip.is-ok{grid-column:1/-1}
  html[data-ds] body.ops-admin .ops-legacy .admin-chart-panel,.admin-side-card{padding:18px!important}
  html[data-ds] body.ops-admin .ops-legacy .trade-toolbar{align-items:flex-start}
  html[data-ds] body.ops-admin .ops-legacy .trade-toolbar .trade-controls{width:100%}
  html[data-ds] body.ops-admin .ops-legacy .trade-controls .button{flex:1 1 auto}
  html[data-ds] body.ops-admin .ops-legacy .trade-chart-wrap{margin-inline:-4px}
  html[data-ds] body.ops-admin .ops-legacy .admin-side-stack{gap:16px}
  html[data-ds] body.ops-admin .ops-legacy .admin-recent-order-row{align-items:flex-start;flex-wrap:wrap}
  html[data-ds] body.ops-admin .ops-legacy .admin-recent-order-row>div:last-child{width:100%;justify-content:flex-end}
  html[data-ds] body.ops-admin .ops-legacy .settings-nav{gap:0 18px!important;margin-bottom:20px!important;flex-wrap:nowrap!important;overflow-x:auto!important}
  html[data-ds] body.ops-admin .ops-legacy .settings-nav .button{flex:none!important}
  html[data-ds] body.ops-admin #overlays .modal-head{padding:16px!important}
  html[data-ds] body.ops-admin #overlays .modal-actions{padding:12px 16px!important}
}
@media(max-width:420px){
  html[data-ds] body.ops-admin .ops-legacy .admin-kpi-grid{grid-template-columns:minmax(0,1fr)}
  html[data-ds] body.ops-admin .ops-legacy .admin-ops-pulse{grid-template-columns:minmax(0,1fr)}
  html[data-ds] body.ops-admin .ops-legacy .pulse-chip.is-ok{grid-column:auto}
}
@container product-table (min-width:601px) and (max-width:1104px){
 body.ops-admin .ops-legacy .table-wrap>.product-manager-table{display:block;min-width:0!important}
 body.ops-admin .ops-legacy .product-manager-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 body.ops-admin .ops-legacy .product-manager-table tr{display:grid;grid-template-columns:52px minmax(180px,1.5fr) minmax(170px,1fr) 124px;gap:8px 16px;padding:16px 8px;border-bottom:1px solid var(--ds-line)}
 body.ops-admin .ops-legacy .product-manager-table td{padding:0!important;border:0!important;width:auto!important;min-width:0!important}
 body.ops-admin .ops-legacy .product-manager-table .product-selection-cell{grid-column:1;grid-row:1/3;align-self:center}
 body.ops-admin .ops-legacy .product-manager-table td:nth-child(2){grid-column:2;grid-row:1}
 body.ops-admin .ops-legacy .product-manager-table td:nth-child(3){grid-column:2;grid-row:2;font-size:12px!important;color:var(--ds-muted)}
 body.ops-admin .ops-legacy .product-manager-table td:nth-child(4){grid-column:3;grid-row:1/3}
 body.ops-admin .ops-legacy .product-manager-table td:nth-child(5){grid-column:4;grid-row:1}
 body.ops-admin .ops-legacy .product-manager-table td:nth-child(6){grid-column:4;grid-row:2}
 body.ops-admin .ops-legacy .product-manager-table td.actions{position:static;grid-column:2/-1;grid-row:3;display:flex!important;align-items:center;justify-content:flex-end;gap:12px;width:auto!important;min-width:0!important;padding-top:10px!important;border-top:1px solid var(--ds-line)!important}
 body.ops-admin .ops-legacy .product-manager-table .product-more{margin:0}
}
@container product-table (max-width:600px){
 body.ops-admin .ops-legacy .table-wrap>.product-manager-table{display:block;min-width:0!important;table-layout:auto}
 body.ops-admin .ops-legacy .product-manager-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 body.ops-admin .ops-legacy .product-manager-table tbody{display:block}
 body.ops-admin .ops-legacy .product-manager-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;padding:16px 0;border-bottom:1px solid var(--ds-line)}
 body.ops-admin .ops-legacy .product-manager-table td{display:block!important;padding:0!important;border:0!important;min-width:0!important;width:auto!important}
 body.ops-admin .ops-legacy .product-manager-table td:nth-child(2){grid-column:1/-1;grid-row:1}
 body.ops-admin .ops-legacy .product-manager-table td:nth-child(1){grid-column:1/-1;grid-row:2;display:flex!important;align-items:center;gap:8px}
 body.ops-admin .ops-legacy .product-manager-table td:nth-child(3)::before{content:'分类';display:block;font-size:12px;color:var(--ds-muted);margin-bottom:4px}
 body.ops-admin .ops-legacy .product-manager-table td.actions{position:static;grid-column:1/-1;display:flex!important;width:auto!important;min-width:0!important;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}
 body.ops-admin .ops-legacy .product-manager-table .product-more{min-width:140px;margin:0}
 body.ops-admin .ops-legacy .product-manager-table .product-more summary{min-height:44px;display:flex;align-items:center}
 body.ops-admin .ops-legacy .product-manager-table td.actions .button{min-height:44px!important;height:44px!important}
 body.ops-admin .ops-legacy .product-manager-table .product-delete-button{width:44px!important}
}

/* Admin layout v295: keep operational content independent of storefront typography. */
html[data-ds] body.ops-admin .ops-legacy{font-size:14px;line-height:1.5;letter-spacing:0;--admin-table-size:14px}
html[data-ds] body.ops-admin .ops-legacy :is(h1,h2,h3,h4,.button,.merchant-brand strong){letter-spacing:0!important}
html[data-ds] body.ops-admin .ops-legacy .merchant-nav a{font-size:14px!important}
html[data-ds] body.ops-admin .ops-legacy .merchant-topbar{min-height:60px!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content>.panel{
 padding:0!important;border:0!important;border-radius:0!important;
 background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;
}
html[data-ds] body.ops-admin .ops-legacy #admin-content :is(.toolbar h2,.settings-page-heading h2){font-size:22px!important;line-height:1.4!important;font-weight:650}
html[data-ds] body.ops-admin .ops-legacy #admin-content :is(h3,h4){font-size:17px!important;line-height:1.5!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content :is(.small,.field>small,.settings-help,.settings-page-heading p,.settings-card>header p){font-size:12px!important;line-height:1.6!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content .field>span{font-size:13px!important;line-height:1.5!important;font-weight:550!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea){font-size:14px!important;font-weight:400!important;line-height:1.5;min-height:40px!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content .toolbar{gap:12px;margin-bottom:20px!important;align-items:center}
html[data-ds] body.ops-admin .ops-legacy #admin-content .toolbar-actions{gap:8px}
html[data-ds] body.ops-admin .ops-legacy #admin-content .toolbar .button{min-height:40px!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content .table-wrap{margin-inline:0;border-radius:8px!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content table th{font-size:12px!important;font-weight:600!important;letter-spacing:0!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content table td{font-size:14px!important;line-height:1.5!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content table :is(th,td){padding:12px!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content table .button{font-size:13px!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content :is(td,dd,.stat strong){font-variant-numeric:tabular-nums}
html[data-ds] body.ops-admin .ops-legacy #admin-content :is(.table-wrap,.im-scroll,.payment-channel-scroll,.settings-nav){scrollbar-width:thin;scrollbar-color:var(--ds-line-strong) var(--ds-surface);overscroll-behavior-inline:contain}
html[data-ds] body.ops-admin .ops-legacy ::selection{background:var(--ds-accent);color:var(--ds-accent-ink)}
html[data-ds] body.ops-admin .ops-legacy :is(button,a,summary):focus-visible{outline:2px solid var(--ds-focus,var(--ds-ink));outline-offset:3px}

html[data-ds] body.ops-admin .ops-legacy #admin-content .product-list-tools{grid-template-columns:220px minmax(0,1fr);gap:12px;margin:16px 0}
html[data-ds] body.ops-admin .ops-legacy #admin-content .product-list-tools>.admin-search-row{flex-direction:column;align-items:stretch;justify-content:flex-start;gap:6px}
html[data-ds] body.ops-admin .ops-legacy #admin-content .product-list-tools #admin-search{max-width:none!important;width:100%!important;margin:0}
html[data-ds] body.ops-admin .ops-legacy #admin-content .product-list-tools .admin-search-label{font-size:13px!important;line-height:19.5px!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content .product-list-tools>.admin-list-filters{grid-template-columns:repeat(4,minmax(0,1fr)) auto auto;gap:10px!important;margin:0!important;padding:0!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content .product-list-tools>.admin-list-filters .field{gap:6px}
html[data-ds] body.ops-admin .ops-legacy #admin-content .product-list-tools>p{margin:0!important;font-size:12px!important}

/* Tables keep stable columns on intermediate desktops; only their own viewport scrolls. */
html[data-ds] body.ops-admin .ops-legacy #admin-content .table-wrap>.product-manager-table{display:block;min-width:1000px!important;width:100%!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content .product-manager-table :is(thead,tbody){display:block}
html[data-ds] body.ops-admin .ops-legacy #admin-content .product-manager-table thead{position:static;width:auto;height:auto;overflow:visible;clip-path:none}
html[data-ds] body.ops-admin .ops-legacy #admin-content .product-manager-table tr{display:grid;grid-template-columns:64px minmax(220px,1.7fr) minmax(96px,.7fr) minmax(160px,1.1fr) 104px 140px 192px;gap:0;padding:0}
html[data-ds] body.ops-admin .ops-legacy #admin-content .product-manager-table :is(th,td){display:block;grid-column:auto;grid-row:auto;width:auto!important;min-width:0!important;padding:12px!important;align-content:center}
html[data-ds] body.ops-admin .ops-legacy #admin-content .product-manager-table td[colspan]{grid-column:1/-1}
html[data-ds] body.ops-admin .ops-legacy #admin-content .product-manager-table td.actions{position:sticky;right:0;display:flex!important;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;border-top:0!important;border-left:1px solid var(--ds-line)!important;width:192px!important;min-width:192px!important;white-space:normal!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content .product-manager-table th:last-child{position:sticky;right:0;background:var(--ds-surface-2)!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content .product-manager-table .product-selection-cell{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:6px}
html[data-ds] body.ops-admin .ops-legacy #admin-content .product-manager-table .admin-prod-status-cell{flex-direction:column;align-items:flex-start;gap:4px}
html[data-ds] body.ops-admin .ops-legacy #admin-content .product-manager-table .admin-prod-status-cell .button{min-height:28px!important;margin:0;padding:4px 8px!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content .product-manager-table .product-row-actions{gap:4px}
html[data-ds] body.ops-admin .ops-legacy #admin-content .product-manager-table .product-row-actions .button{height:34px!important;min-height:34px!important;padding:0 9px!important;margin:0!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content .product-manager-table .product-delete-button{width:34px!important;min-width:34px!important;padding:0!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content .product-manager-table .product-more{display:block;width:100%;margin:0;min-width:0}
html[data-ds] body.ops-admin .ops-legacy #admin-content .product-manager-table .product-more summary{min-height:28px;padding:4px 0;font-size:12px!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content .product-row-readiness summary{white-space:nowrap;font-size:12px!important;min-height:28px}
html[data-ds] body.ops-admin .ops-legacy #admin-content .product-row-readiness{margin:2px 0}
html[data-ds] body.ops-admin .ops-legacy #admin-content .product-manager-table .admin-product-title{gap:10px!important;min-width:0!important;max-width:none!important}

html[data-ds] body.ops-admin .ops-legacy #admin-content .settings-nav{flex-wrap:nowrap!important;gap:24px!important;overflow-x:auto!important;margin:0 0 12px!important;border-bottom:1px solid var(--ds-line)!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content .settings-nav>.button{font-size:14px!important;min-height:44px!important;flex:none}
html[data-ds] body.ops-admin .ops-legacy #admin-content .settings-nav .button.active::after{display:none}
html[data-ds] body.ops-admin .ops-legacy #admin-content .settings-subnav{margin:0 0 20px;gap:6px}
html[data-ds] body.ops-admin .ops-legacy #admin-content .settings-card{padding:20px 0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content .settings-card>header{padding:0 0 16px!important;margin:0 0 20px!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content .settings-card-body{padding:0!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content .settings-page .form-grid{gap:0 24px}
html[data-ds] body.ops-admin .ops-legacy #admin-content .settings-page .field{gap:6px;margin-bottom:20px!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content .settings-savebar{padding:16px 0!important;margin-top:20px;gap:12px;background:var(--ds-paper)!important;box-shadow:none!important;border-radius:0!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content .settings-savebar small{font-size:12px!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content :is(.inventory-stats,.order-report-stats) .stat{padding:16px!important;border-radius:8px!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content :is(.inventory-stats,.order-report-stats) .stat strong{font-size:24px!important;line-height:1.4!important;margin-top:8px}
html[data-ds] body.ops-admin .ops-legacy #admin-content .im-filters{margin-top:16px;padding:16px 0;gap:12px;align-items:end}
html[data-ds] body.ops-admin .ops-legacy #admin-content .im-search .button{min-height:40px!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content .im-filter-actions{align-self:end}
html[data-ds] body.ops-admin .ops-legacy #admin-content .im-statusline{padding:12px 0;font-size:12px}
html[data-ds] body.ops-admin .ops-legacy #admin-content .order-advanced-filters{margin-top:16px;padding:12px 0!important;border:0!important;border-radius:0!important;border-top:1px solid var(--ds-line)!important;background:transparent!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content .order-filter-grid{padding:16px 0 0!important;border:0!important;border-radius:0!important;background:transparent!important;gap:16px}
html[data-ds] body.ops-admin .ops-legacy #admin-content .order-pagination{flex-wrap:wrap;gap:12px}

html[data-ds] body.ops-admin #overlays .modal-head h2{font-size:20px!important;line-height:1.4;overflow-wrap:anywhere}
html[data-ds] body.ops-admin #overlays .modal-head{gap:12px}
html[data-ds] body.ops-admin #overlays .modal-head>.button{flex:none;min-width:36px}
html[data-ds] body.ops-admin #overlays .modal-actions .button{min-height:40px}
html[data-ds] body.ops-admin #overlays .field>small{font-size:12px!important;line-height:1.6!important}
html[data-ds] body.ops-admin #overlays .modal.product-editor{height:100dvh!important;max-height:100dvh!important}
html[data-ds] body.ops-admin #overlays .product-form-body{padding:20px 24px}
html[data-ds] body.ops-admin #overlays .product-editor .product-editor-tabs{padding:0 24px;gap:24px;overflow-x:auto}
html[data-ds] body.ops-admin #overlays .product-editor .product-editor-tabs .button{flex:none;white-space:nowrap}

@media(max-width:1200px){
 html[data-ds] body.ops-admin .ops-legacy #admin-content .product-list-tools{grid-template-columns:minmax(0,1fr)}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .product-list-tools>.admin-search-row{flex-direction:row;align-items:center}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .product-list-tools #admin-search{max-width:360px!important}
}
@media(max-width:800px){
 html[data-ds] body.ops-admin .ops-legacy .merchant-console{display:block!important}
 html[data-ds] body.ops-admin .ops-legacy{padding:20px 16px 32px!important}
 html[data-ds] body.ops-admin .ops-legacy .merchant-topbar{gap:8px;min-height:60px!important}
 html[data-ds] body.ops-admin .ops-legacy .merchant-topbar>div{flex:1}
 html[data-ds] body.ops-admin .ops-legacy .merchant-topbar>div>h1{white-space:normal;font-size:16px!important}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .toolbar{flex-wrap:wrap!important;align-items:flex-start!important}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .toolbar-actions{width:100%;flex-wrap:wrap}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .toolbar-actions .button{min-height:44px!important}
 html[data-ds] body.ops-admin .ops-legacy #admin-content :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea){font-size:16px!important;min-height:44px!important}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .product-list-tools>.admin-search-row{flex-direction:column;align-items:stretch}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .product-list-tools #admin-search{max-width:none!important}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .product-list-tools>.admin-list-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 10px!important}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .settings-nav{gap:20px!important}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .settings-card{padding:12px 0!important}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .settings-page .field{margin-bottom:18px!important}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .order-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .im-selection>div{gap:8px}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .im-pagination>div{flex-wrap:wrap;gap:8px}
 html[data-ds] body.ops-admin #overlays .product-form-body{padding:16px}
 html[data-ds] body.ops-admin #overlays .product-editor .product-editor-tabs{padding:0 16px;gap:16px}
 html[data-ds] body.ops-admin #overlays .product-editor .product-editor-tabs small{display:none}
 html[data-ds] body.ops-admin #overlays .product-editor-overview{padding:12px 16px}
 html[data-ds] body.ops-admin #overlays .product-editor-overview small{display:none}
 html[data-ds] body.ops-admin #overlays .modal-actions .button{min-height:44px!important}
}
@container product-table (max-width:699px){
 html[data-ds] body.ops-admin .ops-legacy #admin-content .table-wrap>.product-manager-table{min-width:0!important}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .product-manager-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .product-manager-table tr{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .product-manager-table td{display:block!important;padding:0!important;border:0!important}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .product-manager-table td:nth-child(2){grid-column:1/-1;grid-row:1}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .product-manager-table .product-selection-cell{display:flex!important;flex-direction:row;justify-content:flex-start;grid-column:1/-1;grid-row:2;gap:8px}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .product-manager-table td:nth-child(3)::before{content:'\5206\7c7b';display:block;color:var(--ds-muted);font-size:12px;margin-bottom:4px}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .product-manager-table td:nth-child(3){grid-column:1;grid-row:3}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .product-manager-table td:nth-child(4){grid-column:2;grid-row:3}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .product-manager-table td:nth-child(5){grid-column:1;grid-row:4}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .product-manager-table td:nth-child(6){grid-column:2;grid-row:4}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .product-manager-table td:nth-child(n+4):nth-child(-n+6)::before{display:block;margin-bottom:4px;color:var(--ds-muted);font-size:12px;font-weight:500;line-height:1.4}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .product-manager-table td:nth-child(4)::before{content:'\89c4\683c\4e0e\4ef7\683c'}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .product-manager-table td:nth-child(5)::before{content:'\72b6\6001'}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .product-manager-table td:nth-child(6)::before{content:'\8d44\6599\68c0\67e5'}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .product-manager-table td.actions{position:static;display:flex!important;grid-column:1/-1;grid-row:5;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;width:auto!important;min-width:0!important;padding-top:12px!important;border-top:1px solid var(--ds-line)!important;border-left:0!important}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .product-manager-table .product-more{width:auto;min-width:80px}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .product-manager-table .product-more[open]{width:100%}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .product-manager-table .product-row-actions .button{height:44px!important;min-height:44px!important}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .product-manager-table .product-delete-button{min-width:44px!important;width:44px!important}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .product-manager-table :is(.product-drag-handle,.product-more summary){min-height:44px!important}
}

/* Keep payment form actions available while long provider settings scroll. */
html[data-ds] body.ops-admin #overlays .modal:has(> .modal-head + .payment-channel-editor){
 display:flex;flex-direction:column;overflow:hidden;min-height:0!important;
 height:min(900px,calc(100dvh - 48px))!important;
}
html[data-ds] body.ops-admin #overlays .modal:has(> .modal-head + .payment-channel-editor)>.modal-head{position:static;flex:none}
html[data-ds] body.ops-admin #overlays .payment-channel-editor{
 display:flex;flex:1 1 auto;flex-direction:column;min-height:0;overflow:hidden;
 padding:0;overscroll-behavior:contain;
}
html[data-ds] body.ops-admin #overlays .payment-channel-fields{
 flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;
 padding:16px 24px;scrollbar-width:thin;scrollbar-color:var(--ds-line-strong) var(--ds-surface);
}
html[data-ds] body.ops-admin #overlays .payment-channel-editor>.modal-actions{
 position:static;flex:none;z-index:1;margin:0;padding:12px 24px!important;
 border-top:1px solid var(--ds-line);background:var(--ds-surface);
}
@media(max-width:800px){
 html[data-ds] body.ops-admin #overlays .modal:has(> .modal-head + .payment-channel-editor){height:calc(100dvh - 24px)!important}
 html[data-ds] body.ops-admin #overlays .payment-channel-fields{padding:12px 16px}
 html[data-ds] body.ops-admin #overlays .payment-channel-editor>.modal-actions{padding:12px 16px!important}
}
@media(max-width:420px){
 html[data-ds] body.ops-admin .ops-legacy #admin-content .admin-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .admin-kpi-card{min-height:100px;padding:12px!important}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .admin-kpi-card strong{font-size:22px!important}
 html[data-ds] body.ops-admin .ops-legacy #admin-content :is(.inventory-stats,.order-report-stats) .stat{padding:12px!important}
 html[data-ds] body.ops-admin .ops-legacy #admin-content :is(.inventory-stats,.order-report-stats) .stat strong{font-size:21px!important}
 html[data-ds] body.ops-admin .ops-legacy .merchant-topbar>a.button{font-size:12px!important;padding-inline:8px!important}
}

/* Admin layout v296: unify the operations workspace and make navigation scannable. */
html[data-ds] body.ops-admin .ops-legacy{
 --admin-sidebar-width:240px;
 --admin-gutter:clamp(16px,2.5vw,36px);
 --admin-radius:8px;
 --admin-surface:var(--ds-surface,var(--bm-white));
 --admin-surface-2:var(--ds-surface-2,var(--bm-field));
}
html[data-ds] body.ops-admin .ops-legacy .merchant-console{grid-template-columns:var(--admin-sidebar-width) minmax(0,1fr)!important}
html[data-ds] body.ops-admin .ops-legacy .merchant-sidebar{padding:22px 14px 16px!important}
html[data-ds] body.ops-admin .ops-legacy .merchant-brand{padding-inline:8px!important}
html[data-ds] body.ops-admin .ops-legacy .merchant-store{margin:22px 0 20px!important;padding:12px!important;border-radius:6px!important}
html[data-ds] body.ops-admin .ops-legacy .merchant-nav>details{margin:0 0 10px!important}
html[data-ds] body.ops-admin .ops-legacy .merchant-nav>details>summary{
 display:flex;align-items:center;gap:9px;min-height:32px;padding:6px 10px!important;
 color:var(--bm-muted-dark)!important;font-size:11px!important;font-weight:650;letter-spacing:.08em;
 text-transform:uppercase;cursor:pointer;list-style:none;border-radius:5px
}
html[data-ds] body.ops-admin .ops-legacy .merchant-nav>details>summary::-webkit-details-marker{display:none}
html[data-ds] body.ops-admin .ops-legacy .merchant-nav>details>summary::before{
 content:'';width:6px;height:6px;flex:none;border-right:1px solid currentColor;border-bottom:1px solid currentColor;
 transform:rotate(-45deg);transition:transform .16s ease-out
}
html[data-ds] body.ops-admin .ops-legacy .merchant-nav>details[open]>summary::before{transform:rotate(45deg)}
html[data-ds] body.ops-admin .ops-legacy .merchant-nav>details>summary:hover{background:var(--bm-dark-hover)!important;color:var(--bm-on-dark)!important}
html[data-ds] body.ops-admin .ops-legacy .merchant-nav>details>a{
 min-height:40px!important;margin:2px 0!important;padding:9px 11px!important;border-radius:6px!important;
 font-size:14px!important;line-height:1.4;gap:10px
}
html[data-ds] body.ops-admin .ops-legacy .merchant-nav>details>a.active,
html[data-ds] body.ops-admin .ops-legacy .merchant-nav>details>a[aria-current=page]{background:var(--bm-accent)!important;color:var(--bm-accent-ink)!important}
html[data-ds] body.ops-admin .ops-legacy .merchant-nav>details>a.active .icon,
html[data-ds] body.ops-admin .ops-legacy .merchant-nav>details>a[aria-current=page] .icon{filter:brightness(.35);opacity:1}
html[data-ds] body.ops-admin .ops-legacy .merchant-topbar{min-height:64px!important;padding-inline:var(--admin-gutter)!important}
html[data-ds] body.ops-admin .ops-legacy{width:100%!important;padding:28px var(--admin-gutter) 48px!important;margin-inline:0!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content>.panel{padding:0!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content :is(.admin-kpi-card,.admin-ops-pulse,.admin-chart-panel,.admin-side-card,.admin-order-filter-box,.admin-sku-matrix-section,.seo-geo-hub,.table-wrap){border-radius:var(--admin-radius)!important;box-shadow:none!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content .admin-kpi-card,
html[data-ds] body.ops-admin .ops-legacy #admin-content .admin-kpi-card.is-primary{padding:18px 20px!important;background:var(--admin-surface)!important;border:1px solid var(--ds-line)!important;border-top:2px solid var(--ds-line)!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content .admin-kpi-card.is-primary{border-top-color:var(--ds-accent)!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content .admin-kpi-card strong{font-size:27px!important;line-height:1.25!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content .admin-ops-pulse{gap:8px;margin-top:16px;padding:8px 10px;background:var(--admin-surface)!important;border:1px solid var(--ds-line)!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content .pulse-chip{padding:6px 10px;border:1px solid transparent;border-radius:6px;background:var(--admin-surface-2);transition:background-color .15s ease,border-color .15s ease,color .15s ease,transform .15s ease}
html[data-ds] body.ops-admin .ops-legacy #admin-content .pulse-chip:hover{border-color:var(--ds-line-strong);transform:translateY(-1px)}
html[data-ds] body.ops-admin .ops-legacy #admin-content .admin-dashboard-main{grid-template-columns:minmax(0,1.45fr) minmax(320px,.85fr);gap:20px;margin-top:20px}
html[data-ds] body.ops-admin .ops-legacy #admin-content .admin-chart-panel{padding:20px!important;background:var(--admin-surface)!important;border:1px solid var(--ds-line)!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content .admin-side-stack{gap:20px}
html[data-ds] body.ops-admin .ops-legacy #admin-content .admin-side-card{padding:18px 20px!important;background:var(--admin-surface)!important;border:1px solid var(--ds-line)!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content .admin-restock-row,
html[data-ds] body.ops-admin .ops-legacy #admin-content .admin-recent-order-row{border-radius:6px;background:var(--admin-surface-2)}
html[data-ds] body.ops-admin .ops-legacy #admin-content .table-wrap{border:1px solid var(--ds-line)!important;background:var(--admin-surface)!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content :is(.toolbar h2,.settings-page-heading h2){font-size:24px!important;font-weight:650!important;line-height:1.35!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content .toolbar{margin-bottom:18px!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content .toolbar .button,
html[data-ds] body.ops-admin #overlays .button{border-radius:6px!important;transition:background-color .15s ease,border-color .15s ease,color .15s ease,transform .15s ease}
html[data-ds] body.ops-admin .ops-legacy #admin-content .toolbar .button:active,
html[data-ds] body.ops-admin #overlays .button:active{transform:translateY(1px)}
html[data-ds] body.ops-admin .ops-legacy #admin-content table :is(th,td){padding:12px 14px!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content table th{background:var(--admin-surface-2)!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content table tbody tr:hover>td{background:var(--admin-surface-2)!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content .admin-list-filters{border-radius:var(--admin-radius)!important;background:var(--admin-surface)!important;border:1px solid var(--ds-line)!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content .product-bulk-bar{border-radius:var(--admin-radius)!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content .product-manager-table .product-row-actions{display:flex;flex-wrap:wrap;gap:4px}
html[data-ds] body.ops-admin .ops-legacy #admin-content .product-manager-table .product-row-actions .button{border-radius:5px!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content :is(.inventory-stats,.order-report-stats) .stat{border-radius:var(--admin-radius)!important;background:var(--admin-surface)!important}
html[data-ds] body.ops-admin .ops-legacy ::selection{background:var(--ds-accent);color:var(--ds-accent-ink)}

@media(max-width:1100px){
 html[data-ds] body.ops-admin .ops-legacy .merchant-console{grid-template-columns:216px minmax(0,1fr)!important}
 html[data-ds] body.ops-admin .ops-legacy{padding-inline:20px!important}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .admin-dashboard-main{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:800px){
 html[data-ds] body.ops-admin .ops-legacy{padding:20px 16px 32px!important}
 html[data-ds] body.ops-admin .ops-legacy .merchant-topbar{padding-inline:16px!important}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .toolbar{gap:12px!important}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .toolbar-actions{width:100%;justify-content:flex-start}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .admin-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .admin-kpi-card{min-height:104px;padding:14px!important}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .admin-kpi-card strong{font-size:23px!important}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .admin-ops-pulse{align-items:stretch}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .pulse-chip{flex:1 1 calc(50% - 8px);justify-content:space-between}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .pulse-chip.is-ok{margin-left:0}
}
@media(max-width:420px){
 html[data-ds] body.ops-admin .ops-legacy #admin-content .admin-kpi-grid{grid-template-columns:minmax(0,1fr)}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .admin-kpi-card{min-height:0}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .pulse-chip{flex-basis:100%}
}

/* Dark mode repair v297: keep legacy admin surfaces on the active design tokens. */
html[data-ds][data-color-mode=dark] body.ops-admin .ops-legacy{
 --admin-surface:#1A1E1A;
 --admin-surface-2:#20251F;
 --admin-ink:#EFF2E9;
 --admin-muted:#A6AEA0;
 --admin-line:#2C322B;
}
html[data-ds][data-color-mode=dark] body.ops-admin .ops-legacy :is(.product-bulk-bar,.admin-list-filters,.order-advanced-filters,.order-filter-grid,.product-flow-note,.product-readiness,.notice,.empty,.settings-service-note,.product-more>div,.dashboard-check-list>article){background:var(--admin-surface-2)!important;color:var(--admin-ink)!important;border-color:var(--admin-line)!important}
html[data-ds][data-color-mode=dark] body.ops-admin .ops-legacy :is(.panel,.stat,.table-wrap,.admin-kpi-card,.admin-chart-panel,.admin-side-card,.admin-order-filter-box,.admin-sku-matrix-section){background:var(--admin-surface)!important;color:var(--admin-ink)!important;border-color:var(--admin-line)!important}
html[data-ds][data-color-mode=dark] body.ops-admin .ops-legacy :is(.muted,.small,.settings-page-heading p,.settings-card>header p,.field small,.product-flow-note p,.product-readiness p){color:var(--admin-muted)!important}
html[data-ds][data-color-mode=dark] body.ops-admin .ops-legacy :is(.button.text,a){color:var(--ds-ink-2)!important}
html[data-ds][data-color-mode=dark] body.ops-admin .ops-legacy :is(.button.text:hover,a:hover){color:var(--ds-ink)!important}
html[data-ds][data-color-mode=dark] body.ops-admin .ops-legacy #admin-content :is(th,td){border-color:var(--admin-line)!important}
html[data-ds][data-color-mode=dark] body.ops-admin .ops-legacy #admin-content table th{background:var(--admin-surface-2)!important;color:var(--admin-muted)!important}
html[data-ds][data-color-mode=dark] body.ops-admin .ops-legacy #admin-content table td{color:var(--admin-ink)!important}
html[data-ds][data-color-mode=dark] body.ops-admin #overlays :is(.modal,.modal-head,.modal-actions,.product-editor-overview,.product-form-body,.product-editor-tabs){background:var(--admin-surface)!important;color:var(--admin-ink)!important;border-color:var(--admin-line)!important}
html[data-ds][data-color-mode=dark] body.ops-admin #overlays :is(.modal-body,.payment-channel-fields,.card-cleanup,.inventory-preview,.rich-preview,.image-uploader,.service-editor){background:var(--admin-surface-2)!important;color:var(--admin-ink)!important;border-color:var(--admin-line)!important}
html[data-ds][data-color-mode=dark] body.ops-admin #overlays :is(h1,h2,h3,h4,label,.field>span,.modal-head h2){color:var(--admin-ink)!important}
html[data-ds][data-color-mode=dark] body.ops-admin #overlays :is(p,.muted,.small,.field small){color:var(--admin-muted)!important}
html[data-ds][data-color-mode=dark] body.ops-admin #overlays :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea){background:#202820!important;color:#F1F5EA!important;border-color:#3B4A38!important}
html[data-ds][data-color-mode=dark] body.ops-admin #overlays :is(.button:not(.primary):not(.danger):not(.text),.se-btn,.se-btn-list){background:var(--admin-surface-2)!important;color:var(--admin-ink)!important;border-color:var(--admin-line)!important}
html[data-ds][data-color-mode=dark] body.ops-admin #overlays :is(.button:not(.primary):not(.danger):not(.text),.se-btn,.se-btn-list):hover{background:#2A3517!important;color:var(--admin-ink)!important}

/* Adapter for assets/admin-polish.css */
/* Admin typography and task layout v298. Only the merchant console is affected.
   Desktop: 232px navigation + remaining workspace; workspace padding 28px.
   Four equal KPI columns: 4 * ((available - 3*16px)/4) + 3*16px = available.
   Preserve the established dark brand sidebar; data and forms remain quiet. */
html[data-ds] body.ops-admin .ops-legacy{
 --admin-type-meta:13px;--admin-type-body:14px;--admin-type-label:14px;
 --admin-type-section:17px;--admin-type-title:24px;
 --admin-reading:68ch;--admin-gap:24px;
 --admin-chart-ink:#547516;
 font-family:"Satoshi","PingFang SC","Microsoft YaHei","Noto Sans SC",sans-serif;
 font-size:var(--admin-type-body);line-height:1.65;
 -webkit-font-smoothing:antialiased;
}
html[data-ds] body.ops-admin .ops-legacy :is(button,input,select,textarea){font:inherit}
html[data-ds] body.ops-admin :is(.ops-legacy,#overlays) :is(button,input,select,textarea){font-family:"Satoshi","PingFang SC","Microsoft YaHei","Noto Sans SC",sans-serif!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content{font-variant-numeric:tabular-nums}
html[data-ds] body.ops-admin .ops-legacy #admin-content :is(.field small,.settings-page-heading p,.settings-savebar small){font-size:13px!important}
html[data-ds] body.ops-admin .ops-legacy :is(h1,h2,h3,h4){letter-spacing:0!important;text-wrap:balance}
html[data-ds] body.ops-admin .ops-legacy :is(p,.field small){text-wrap:pretty}
html[data-ds] body.ops-admin :is(.ops-legacy,#overlays) :is(small,.small,.muted){font-size:var(--admin-type-meta);line-height:1.7}
html[data-ds] body.ops-admin :is(.ops-legacy,#overlays) :is(p,small,.small,.muted,.field>span){color:var(--ds-ink-2)!important}
html[data-ds] body.ops-admin :is(.ops-legacy,#overlays) :is(h3,h4){font-size:var(--admin-type-section)!important;line-height:1.5;margin-block:0 12px;font-weight:650}
html[data-ds] body.ops-admin .ops-legacy #admin-content.ops-legacy{
 width:calc(100% - 16px)!important;max-width:none!important;
 margin:8px 8px 16px!important;padding:28px!important;
 background:var(--ds-surface)!important;border:1px solid var(--ds-line);
 border-radius:14px;min-height:calc(100dvh - 88px);
}
html[data-ds] body.ops-admin .ops-legacy .merchant-topbar{min-height:56px!important;border-bottom:0!important}
html[data-ds] body.ops-admin .ops-legacy .merchant-topbar h1{font-size:16px!important;font-weight:600!important}
html[data-ds] body.ops-admin .ops-legacy .merchant-connected{font-size:12px;color:var(--ds-muted)!important}
html[data-ds] body.ops-admin .ops-legacy .merchant-sidebar{padding:24px 14px 16px!important}
html[data-ds] body.ops-admin .ops-legacy .merchant-brand small{font-size:12px!important;line-height:1.5!important;color:#bdc6b4!important}
html[data-ds] body.ops-admin .ops-legacy .merchant-store{padding:12px!important;margin:20px 0!important}
html[data-ds] body.ops-admin .ops-legacy .merchant-store small{font-size:12px!important;line-height:1.6!important;overflow-wrap:anywhere;color:#bdc6b4!important}
html[data-ds] body.ops-admin .ops-legacy .merchant-nav>details>summary{font-size:12px!important;letter-spacing:0!important;color:#b8c3ad!important;min-height:34px}
html[data-ds] body.ops-admin .ops-legacy .merchant-nav a{font-size:14px!important;line-height:1.5!important;min-height:40px!important}
html[data-ds] body.ops-admin .ops-legacy .merchant-nav a[aria-current=page]{box-shadow:none!important}
html[data-ds] body.ops-admin .ops-legacy .merchant-nav a[aria-current=page],
html[data-ds] body.ops-admin .ops-legacy .merchant-nav a[aria-current=page] span{color:var(--ds-accent-ink)!important;font-weight:600!important}
html[data-ds] body.ops-admin .ops-legacy .merchant-sidebar-footer small{font-size:12px!important;line-height:1.6;color:#bdc6b4!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content>.panel{
 padding:0!important;border:0!important;border-radius:0!important;
 background:transparent!important;box-shadow:none!important;margin:0 0 28px;
}
html[data-ds] body.ops-admin .ops-legacy #admin-content>.panel+.panel{border-top:1px solid var(--ds-line)!important;padding-top:28px!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content .toolbar{gap:16px!important;align-items:flex-start;margin-bottom:24px!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content .toolbar h2,
html[data-ds] body.ops-admin .ops-legacy #admin-content .settings-page-heading h2{font-size:var(--admin-type-title)!important;font-weight:650!important;line-height:1.4!important;margin:0!important}
html[data-ds] body.ops-admin .ops-legacy .admin-toolbar-heading{min-width:0;flex:1 1 240px}
html[data-ds] body.ops-admin .ops-legacy .admin-page-description{font-size:14px!important;line-height:1.7!important;margin:7px 0 0!important;max-width:var(--admin-reading);color:var(--ds-muted)!important}
html[data-ds] body.ops-admin .ops-legacy .toolbar-actions{gap:8px!important;align-items:center;flex:0 1 auto}
html[data-ds] body.ops-admin :is(.ops-legacy,#overlays) .button{
 min-height:38px!important;padding:8px 12px!important;line-height:1.45!important;
 font-size:14px!important;letter-spacing:0!important;white-space:nowrap;
 border-radius:7px!important;box-shadow:none!important;
}
html[data-ds] body.ops-admin :is(.ops-legacy,#overlays) .button.primary{background:var(--ds-ink)!important;color:var(--ds-surface)!important;border-color:var(--ds-ink)!important}
html[data-ds] body.ops-admin :is(.ops-legacy,#overlays) .button.primary:hover{background:var(--ds-ink-2)!important;border-color:var(--ds-ink-2)!important}
html[data-ds] body.ops-admin :is(.ops-legacy,#overlays) .button:disabled{color:var(--ds-muted)!important;background:var(--ds-surface-2)!important;border-color:var(--ds-line)!important;cursor:not-allowed;opacity:1!important}
html[data-ds] body.ops-admin :is(.ops-legacy,#overlays) :is(.button,a,input,select,textarea,summary):focus-visible{outline:2px solid var(--ds-focus)!important;outline-offset:3px;box-shadow:none!important}
html[data-ds] body.ops-admin :is(.ops-legacy,#overlays) :is(input,textarea)::placeholder{color:var(--ds-muted)!important;opacity:1}
html[data-ds] body.ops-admin :is(.ops-legacy,#overlays) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]),select,textarea){
 background:var(--ds-surface)!important;color:var(--ds-ink)!important;
 border:1px solid var(--ds-line-strong)!important;
 border-radius:7px!important;font-size:16px!important;line-height:1.6!important;
 min-height:42px!important;padding:9px 12px!important;max-width:100%;
}
html[data-ds] body.ops-admin :is(.ops-legacy,#overlays) textarea{min-height:120px;resize:vertical}
html[data-ds] body.ops-admin :is(.ops-legacy,#overlays) .field{min-width:0;gap:7px;margin-bottom:18px}
html[data-ds] body.ops-admin :is(.ops-legacy,#overlays) .field>span{font-size:var(--admin-type-label)!important;font-weight:550!important;line-height:1.6!important}
html[data-ds] body.ops-admin :is(.ops-legacy,#overlays) .field small{display:block;margin:4px 0 0;font-size:14px!important;line-height:1.7!important;max-width:var(--admin-reading);color:var(--ds-muted)!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content .admin-list-filters{background:var(--ds-surface-2)!important;border:0!important;padding:16px!important;gap:12px!important;align-items:flex-end;margin-bottom:20px!important}
html[data-ds] body.ops-admin .ops-legacy .admin-list-filters .field{margin:0!important}
html[data-ds] body.ops-admin .ops-legacy .admin-search-row{gap:10px;margin-bottom:16px}
html[data-ds] body.ops-admin .ops-legacy .admin-search-label{font-size:13px}
html[data-ds] body.ops-admin .ops-legacy .admin-search-row{flex-direction:row!important;align-items:center!important}
html[data-ds] body.ops-admin .ops-legacy .admin-search-row #admin-search{flex:initial!important;width:min(320px,100%)!important;height:42px!important;min-height:42px!important;max-height:42px!important}
html[data-ds] body.ops-admin :is(.ops-legacy,#overlays) .button.primary .native-icon{filter:brightness(0) invert(1)!important}
html[data-ds][data-color-mode=dark] body.ops-admin :is(.ops-legacy,#overlays) .button.primary .native-icon{filter:brightness(0)!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content .table-wrap{border:1px solid var(--ds-line)!important;border-radius:8px!important;box-shadow:none!important;overscroll-behavior-inline:contain;scrollbar-width:thin;scrollbar-color:var(--ds-line-strong) transparent}
html[data-ds] body.ops-admin .ops-legacy #admin-content table{font-variant-numeric:tabular-nums;font-size:14px!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content table th{background:var(--ds-surface)!important;color:var(--ds-muted)!important;font-size:13px!important;font-weight:500!important;text-transform:none!important;letter-spacing:0!important;line-height:1.6!important;padding:13px 16px!important;white-space:nowrap}
html[data-ds] body.ops-admin .ops-legacy #admin-content table td{padding:15px 16px!important;font-size:14px!important;line-height:1.7!important;vertical-align:middle;border-bottom-color:var(--ds-line)!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content table td :is(small,.small,.muted){font-size:13px!important;line-height:1.7!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content table :is([data-column-kind=amount],[data-column-kind=number]){text-align:right!important;font-variant-numeric:tabular-nums;white-space:nowrap}
html[data-ds] body.ops-admin .ops-legacy #admin-content[data-admin-view=finance] table [data-column-kind=amount]{width:110px!important;min-width:100px!important;white-space:nowrap!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content[data-admin-view=finance] table [data-column-kind=number]{min-width:76px!important;white-space:nowrap!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content[data-admin-view=finance] table{min-width:920px!important;table-layout:auto!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content table [data-column-kind=date]{white-space:nowrap;font-variant-numeric:tabular-nums}
html[data-ds] body.ops-admin .ops-legacy #admin-content table [data-column-kind=identifier]{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
html[data-ds] body.ops-admin .ops-legacy #admin-content table td.actions{white-space:normal!important;min-width:120px}
html[data-ds] body.ops-admin .ops-legacy #admin-content table td.actions .button{margin:3px 4px 3px 0!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content table .button{font-size:13px!important;min-height:34px!important;padding:6px 10px!important}
html[data-ds] body.ops-admin :is(.ops-legacy,#overlays) .status{flex:none;white-space:nowrap;font-size:14px!important;line-height:1.5!important;min-height:24px;padding:2px 8px}
html[data-ds] body.ops-admin .ops-legacy #admin-content .status.success{color:var(--ds-ok)!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content .status.warning{color:var(--ds-warn)!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content .status.error{color:var(--ds-bad)!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content :is(.notice,.empty){font-size:14px!important;line-height:1.8!important;border-radius:8px!important;padding:20px!important;white-space:normal;overflow-wrap:anywhere}
html[data-ds] body.ops-admin .ops-legacy #admin-content .empty{border:1px solid var(--ds-line)!important;background:var(--ds-surface-2)!important;text-align:center;min-height:88px;display:grid;place-content:center}
html[data-ds] body.ops-admin .ops-legacy #admin-content .panel>h3{margin-top:0;margin-bottom:16px}
/* Overview: no decorative icons on metrics; the chart carries the brand hue. */
html[data-ds] body.ops-admin .ops-legacy #admin-content .admin-kpi-grid{gap:16px;margin-bottom:20px}
html[data-ds] body.ops-admin .ops-legacy #admin-content .admin-kpi-card,html[data-ds] body.ops-admin .ops-legacy #admin-content .admin-kpi-card.is-primary{padding:18px!important;min-height:116px;border:1px solid var(--ds-line)!important;border-top-width:1px!important;box-shadow:none!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content .admin-kpi-head{font-size:13px!important;line-height:1.6;color:var(--ds-muted)}
html[data-ds] body.ops-admin .ops-legacy #admin-content .admin-kpi-head>.icon{display:none}
html[data-ds] body.ops-admin .ops-legacy #admin-content .admin-kpi-card strong{font-size:26px!important;line-height:1.3!important;font-weight:600!important;margin-block:10px 7px;font-variant-numeric:tabular-nums}
html[data-ds] body.ops-admin .ops-legacy #admin-content .admin-kpi-card em{font-size:13px!important;font-style:normal;white-space:nowrap;font-weight:400}
html[data-ds] body.ops-admin .ops-legacy #admin-content .admin-kpi-card small{font-size:12px!important;line-height:1.7!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content .admin-dashboard-main{grid-template-columns:minmax(0,1.45fr) minmax(340px,1fr);gap:24px;align-items:start}
html[data-ds] body.ops-admin .ops-legacy #admin-content :is(.admin-chart-panel,.admin-side-card){padding:20px!important;border:1px solid var(--ds-line)!important;background:var(--ds-surface)!important;border-radius:8px!important;box-shadow:none!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content .admin-side-stack{gap:24px}
html[data-ds] body.ops-admin .ops-legacy .admin-recent-order-row{padding:12px 0!important;background:transparent!important;border-radius:0!important;border-bottom:1px solid var(--ds-line);gap:10px;flex-wrap:wrap}
html[data-ds] body.ops-admin .ops-legacy .admin-recent-order-row:last-child{border-bottom:0}
html[data-ds] body.ops-admin .ops-legacy .admin-recent-order-row>div:first-child{min-width:0;flex:1 1 120px}
html[data-ds] body.ops-admin .ops-legacy .admin-recent-order-row>div:first-child :is(strong,small){display:block!important}
html[data-ds] body.ops-admin .ops-legacy .admin-recent-order-row>div:last-child{flex:0 0 auto;gap:8px;flex-wrap:nowrap!important}
html[data-ds] body.ops-admin .ops-legacy .admin-recent-order-row :is(strong,small){font-size:13px!important;line-height:1.6!important}
html[data-ds] body.ops-admin .ops-legacy .admin-recent-order-row .button{white-space:nowrap!important;min-width:48px;min-height:32px!important;padding:5px 8px!important;font-size:13px!important}
html[data-ds] body.ops-admin .ops-legacy .trade-bar,html[data-ds] body.ops-admin .ops-legacy .trade-dot{fill:var(--admin-chart-ink)!important}
html[data-ds] body.ops-admin .ops-legacy .trade-line{stroke:var(--admin-chart-ink)!important}
html[data-ds] body.ops-admin .ops-legacy .trade-chart-wrap{max-height:260px}
html[data-ds] body.ops-admin .ops-legacy .trade-controls .button{min-height:32px!important;font-size:13px!important;padding:5px 10px!important}
/* Settings: a single reading column with labels and controls on common edges. */
html[data-ds] body.ops-admin .ops-legacy .settings-page-heading{margin-bottom:20px}
html[data-ds] body.ops-admin .ops-legacy .settings-page-heading p{font-size:14px!important;line-height:1.7;max-width:var(--admin-reading);margin-top:7px}
html[data-ds] body.ops-admin .ops-legacy #admin-content .settings-nav{margin:0 0 16px!important;gap:0 24px!important}
html[data-ds] body.ops-admin .ops-legacy #admin-content .settings-nav .button{font-size:14px!important;min-height:46px!important}
html[data-ds] body.ops-admin .ops-legacy .settings-subnav{gap:8px;margin-bottom:28px!important}
html[data-ds] body.ops-admin .ops-legacy .settings-subnav .button{font-size:13px!important;min-height:36px!important}
html[data-ds] body.ops-admin .ops-legacy .settings-workspace{min-width:0}
html[data-ds] body.ops-admin .ops-legacy .settings-card{border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;background:transparent!important}
html[data-ds] body.ops-admin .ops-legacy .settings-card>header{padding:0 0 20px!important;margin-bottom:24px!important;border-bottom:1px solid var(--ds-line)}
html[data-ds] body.ops-admin .ops-legacy .settings-card>header h3{margin-bottom:6px!important;font-size:18px!important}
html[data-ds] body.ops-admin .ops-legacy .settings-card>header p{font-size:14px!important;line-height:1.8!important;max-width:var(--admin-reading);margin:0!important}
html[data-ds] body.ops-admin .ops-legacy .settings-card-body{padding:0!important;max-width:1100px!important}
html[data-ds] body.ops-admin .ops-legacy .settings-form .form-grid{gap:4px 24px!important}
html[data-ds] body.ops-admin .ops-legacy .settings-card-body>.field{max-width:780px}
html[data-ds] body.ops-admin .ops-legacy .settings-subheading{margin-top:24px!important;margin-bottom:16px!important}
html[data-ds] body.ops-admin .ops-legacy .settings-subheading p{font-size:14px;max-width:var(--admin-reading)}
html[data-ds] body.ops-admin .ops-legacy .settings-savebar{position:static!important;display:flex!important;flex-direction:row!important;align-items:center!important;padding:16px 0!important;margin-top:28px!important;border-top:1px solid var(--ds-line);background:var(--ds-surface)!important;box-shadow:none!important;gap:16px;z-index:3}
html[data-ds] body.ops-admin .ops-legacy .settings-savebar>span{font-size:14px!important;line-height:1.6}
html[data-ds] body.ops-admin .ops-legacy .settings-savebar small{font-size:12px!important;margin-top:4px;line-height:1.6}
html[data-ds] body.ops-admin .ops-legacy :is(.hero-admin,.site-media-admin)>div>p{max-width:var(--admin-reading);font-size:14px!important;line-height:1.8}
html[data-ds] body.ops-admin .ops-legacy :is(.notification-channel-grid,.hero-admin-grid,.hero-upload-grid,.site-media-grid){gap:24px!important}
html[data-ds] body.ops-admin .ops-legacy .notification-event-grid{gap:12px 20px}
html[data-ds] body.ops-admin .ops-legacy .notification-event-grid label{font-size:14px;min-height:36px;display:flex;align-items:center;gap:8px}
html[data-ds] body.ops-admin .ops-legacy .hero-admin-slide>summary{min-height:48px;font-size:15px;line-height:1.6;padding:14px 0}
html[data-ds] body.ops-admin .ops-legacy .hero-admin-slide>summary span{font-size:13px;color:var(--ds-muted);margin-left:12px}
/* Dialogs: consistent labels, a bounded reading width and clear action groups. */
html[data-ds] body.ops-admin #overlays .modal{border-radius:12px!important;scrollbar-width:thin;scrollbar-color:var(--ds-line-strong) transparent}
html[data-ds] body.ops-admin #overlays .modal-head h2{font-size:21px!important;line-height:1.45!important}
html[data-ds] body.ops-admin #overlays .modal p{max-width:var(--admin-reading);line-height:1.8}
html[data-ds] body.ops-admin #overlays .modal-actions{gap:8px!important;align-items:center}
html[data-ds] body.ops-admin .ops-legacy .security-workspace .stats .stat strong{font-size:18px!important;line-height:1.5!important}
html[data-ds] body.ops-admin .ops-legacy .product-manager-table .admin-product-title strong{font-size:14px!important;line-height:1.7!important}
html[data-ds] body.ops-admin .ops-legacy .product-manager-table .product-sku-summary{font-size:13px!important;line-height:1.75!important}
html[data-ds] body.ops-admin .ops-legacy .admin-audit-detail pre{font-size:12px!important;line-height:1.8!important}
html[data-ds] body.ops-admin .ops-legacy ::selection{background:var(--ds-accent-soft);color:var(--ds-accent-ink)}
html[data-ds][data-color-mode=dark] body.ops-admin .ops-legacy{--admin-chart-ink:#c3e56e}
html[data-ds][data-color-mode=dark] body.ops-admin .ops-legacy{background:var(--ds-surface)!important}
html[data-ds][data-color-mode=dark] body.ops-admin .ops-legacy #admin-content table th{background:var(--ds-surface)!important}
@media(max-width:1100px){
 html[data-ds] body.ops-admin .ops-legacy .merchant-console{display:block!important}
 html[data-ds] body.ops-admin .ops-legacy .merchant-sidebar{position:fixed!important;inset:0 auto 0 -290px!important;width:272px!important;height:100dvh;z-index:60;overflow-y:auto;transition:left 180ms ease-out}
 html[data-ds] body.ops-admin .ops-legacy .merchant-sidebar.is-open{left:0!important}
 html[data-ds] body.ops-admin .ops-legacy .merchant-topbar>[data-action=admin-console-menu],html[data-ds] body.ops-admin .ops-legacy .merchant-nav-close{display:inline-flex!important}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .admin-dashboard-main{grid-template-columns:minmax(0,1fr)}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .admin-side-stack{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
 html[data-ds] body.ops-admin .ops-legacy #admin-content.ops-legacy{padding:24px!important}
}
@media(max-width:800px){
 html[data-ds] body.ops-admin .ops-legacy #admin-content.ops-legacy{width:100%!important;margin:0!important;padding:20px 16px 28px!important;border:0!important;border-radius:0!important;min-height:calc(100dvh - 56px)}
 html[data-ds] body.ops-admin .ops-legacy .merchant-topbar{min-height:56px!important;padding:0 12px!important;gap:10px}
 html[data-ds] body.ops-admin .ops-legacy .merchant-topbar .merchant-connected{display:none!important}
 html[data-ds] body.ops-admin .ops-legacy .merchant-topbar h1{font-size:15px!important;white-space:normal!important}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .toolbar{align-items:flex-start!important;gap:12px!important;margin-bottom:20px!important}
 html[data-ds] body.ops-admin .ops-legacy .admin-toolbar-heading{flex-basis:100%}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .toolbar h2{font-size:22px!important}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .toolbar-actions{width:100%;flex-wrap:wrap!important;gap:8px!important}
 html[data-ds] body.ops-admin :is(.ops-legacy,#overlays) .button{min-height:44px!important}
 html[data-ds] body.ops-admin .ops-legacy #admin-content table .button{min-height:40px!important}
 html[data-ds] body.ops-admin :is(.ops-legacy,#overlays) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]),select,textarea){font-size:16px!important;min-height:44px!important}
 html[data-ds] body.ops-admin .ops-legacy :is(.settings-nav,.settings-subnav){flex-wrap:nowrap!important;overflow-x:auto!important;max-width:100%;scrollbar-width:thin;overscroll-behavior-inline:contain}
 html[data-ds] body.ops-admin .ops-legacy .settings-nav .button,html[data-ds] body.ops-admin .ops-legacy .settings-subnav .button{flex:none!important;white-space:nowrap}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .admin-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .admin-kpi-card{padding:14px!important;min-height:126px}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .admin-kpi-card strong{font-size:24px!important}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .admin-kpi-card em{display:block;margin-top:4px}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .admin-side-stack{grid-template-columns:minmax(0,1fr)}
 html[data-ds] body.ops-admin .ops-legacy #admin-content :is(.admin-chart-panel,.admin-side-card){padding:16px!important}
 html[data-ds] body.ops-admin .ops-legacy .admin-recent-order-row>div:last-child{width:auto!important}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .admin-content-panel .toolbar{flex-wrap:wrap!important}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .admin-content-panel .toolbar-actions{width:100%!important}
 html[data-ds] body.ops-admin .ops-legacy #admin-content .admin-list-filters{gap:12px!important;padding:12px!important}
 html[data-ds] body.ops-admin .ops-legacy .admin-search-row #admin-search{width:100%!important;height:44px!important;min-height:44px!important;max-height:44px!important}
 html[data-ds] body.ops-admin .ops-legacy .settings-card>header{padding-bottom:16px!important;margin-bottom:20px!important}
 html[data-ds] body.ops-admin .ops-legacy .settings-form .form-grid{grid-template-columns:minmax(0,1fr)!important;gap:0!important}
 html[data-ds] body.ops-admin .ops-legacy .settings-savebar{padding:12px 0!important;flex-wrap:wrap!important;gap:10px!important}
 html[data-ds] body.ops-admin .ops-legacy .settings-savebar>span{flex:1 1 auto;font-size:13px!important}
 html[data-ds] body.ops-admin .ops-legacy .settings-savebar .button{flex:0 0 auto}
 html[data-ds] body.ops-admin .ops-legacy #admin-content:not([data-admin-view=finance]) table :is([data-column-kind=amount],[data-column-kind=number]){white-space:normal}
 html[data-ds] body.ops-admin #overlays .modal-head h2{font-size:19px!important}
}
@media(prefers-reduced-motion:reduce){html[data-ds] body.ops-admin .ops-legacy *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Scoped inventory component bridge (finish review P1). */
/* Inventory workbench: scoped to the merchant console and its existing tokens. */
body.ops-admin .ops-legacy .inventory-manager{color:var(--ds-ink);min-width:0;font-size:14px;line-height:1.55}
body.ops-admin .ops-legacy .inventory-manager [hidden]{display:none!important}
body.ops-admin .ops-legacy .inventory-manager :focus-visible{outline:2px solid var(--ds-accent);outline-offset:3px}
body.ops-admin .ops-legacy .inventory-manager ::selection{background:var(--ds-accent);color:var(--ds-ink)}
body.ops-admin .ops-legacy .inventory-manager :is(input,select){caret-color:var(--ds-accent);accent-color:var(--ds-accent)}
body.ops-admin .ops-legacy .im-filters{display:grid;grid-template-columns:minmax(240px,1.7fr) minmax(160px,1.2fr) minmax(160px,1fr) minmax(110px,.7fr);gap:12px;align-items:start;margin:22px 0 0;padding:20px 0;border-top:1px solid var(--ds-line);border-bottom:1px solid var(--ds-line)}
body.ops-admin .ops-legacy .im-filters .field{margin:0;min-width:0;display:flex;flex-direction:column;gap:7px}
body.ops-admin .ops-legacy .im-filters .field>span{font-size:13px;font-weight:550;color:var(--ds-ink)}
body.ops-admin .ops-legacy .inventory-manager :is(input:not([type=checkbox]),select){width:100%;min-width:0;height:42px;padding:9px 11px;background:var(--ds-surface);color:var(--ds-ink);border:1px solid var(--ds-line-strong);border-radius:8px;font-size:14px}
body.ops-admin .ops-legacy .inventory-manager input::placeholder{color:var(--ds-muted);opacity:1}
body.ops-admin .ops-legacy .im-search>div{display:flex;gap:6px}
body.ops-admin .ops-legacy .im-search .button{flex:none;min-height:42px}
body.ops-admin .ops-legacy .im-more{grid-column:1/4;min-width:0}
body.ops-admin .ops-legacy .im-more summary{cursor:pointer;font-size:13px;min-height:36px;padding:8px 0;color:var(--ds-muted)}
body.ops-admin .ops-legacy .im-more>div{display:flex;gap:12px 20px;align-items:center;flex-wrap:wrap;padding:10px 0 0}
body.ops-admin .ops-legacy .im-more .field{width:min(360px,100%)}
body.ops-admin .ops-legacy .im-more p{flex-basis:100%;margin:0}
body.ops-admin .ops-legacy .im-checkbox{display:flex;gap:8px;align-items:center;min-height:42px;cursor:pointer}
body.ops-admin .ops-legacy .inventory-manager input[type=checkbox]{width:17px;height:17px;flex:none;cursor:pointer;margin:0}
body.ops-admin .ops-legacy .im-filter-actions{display:flex;gap:8px;justify-content:flex-end;align-self:start}
body.ops-admin .ops-legacy .im-statusline{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:17px 0 12px;font-size:13px}
body.ops-admin .ops-legacy .im-statusline strong{color:var(--ds-ink);font-variant-numeric:tabular-nums}
body.ops-admin .ops-legacy .im-selection{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:10px 14px;background:var(--ds-surface-2);border-radius:8px;margin-bottom:12px;font-size:13px}
body.ops-admin .ops-legacy .im-selection>div{display:flex;gap:6px;flex-wrap:wrap}
body.ops-admin .ops-legacy .inventory-manager .button{font-size:13px;white-space:nowrap;min-height:34px;line-height:1.4}
body.ops-admin .ops-legacy .inventory-manager .button:disabled{opacity:.48;cursor:not-allowed}
body.ops-admin .ops-legacy .im-scroll{overflow:auto;max-width:100%;scrollbar-color:var(--ds-line-strong) var(--ds-surface);scrollbar-width:thin;border:1px solid var(--ds-line);border-radius:10px}
body.ops-admin .ops-legacy .im-table{width:100%;min-width:1020px;table-layout:fixed;margin:0!important;border:0!important;border-collapse:collapse}
body.ops-admin .ops-legacy .im-table :is(th,td){padding:13px 12px!important;text-align:left;vertical-align:middle;white-space:normal;overflow-wrap:anywhere;border-bottom:1px solid var(--ds-line)}
body.ops-admin .ops-legacy .im-table th{background:var(--ds-surface-2);font-size:12px;color:var(--ds-muted);font-weight:550}
body.ops-admin .ops-legacy .im-table th:nth-child(1){width:42px}
body.ops-admin .ops-legacy .im-table th:nth-child(2){width:20%}
body.ops-admin .ops-legacy .im-table th:nth-child(3){width:22%}
body.ops-admin .ops-legacy .im-table th:nth-child(4){width:105px}
body.ops-admin .ops-legacy .im-table th:nth-child(5){width:17%}
body.ops-admin .ops-legacy .im-table th:nth-child(6){width:150px}
body.ops-admin .ops-legacy .im-table th:nth-child(7){width:174px}
body.ops-admin .ops-legacy .im-table td{font-size:13px;background:var(--ds-surface)}
body.ops-admin .ops-legacy .im-table tbody tr:hover>td{background:var(--ds-surface-2)}
body.ops-admin .ops-legacy .im-table tbody tr:last-child>td{border-bottom:0}
body.ops-admin .ops-legacy .im-table :is(code,small,strong){display:block}
body.ops-admin .ops-legacy .im-table strong{font-size:13px;font-weight:550;line-height:1.6}
body.ops-admin .ops-legacy .im-table small{font-size:11px;color:var(--ds-muted);margin-top:5px;line-height:1.5}
body.ops-admin .ops-legacy .im-table code{font-size:13px;letter-spacing:.02em;font-variant-numeric:tabular-nums;color:var(--ds-ink);font-family:ui-monospace,Consolas,monospace}
body.ops-admin .ops-legacy .im-table .im-order{font-size:11px;letter-spacing:0}
body.ops-admin .ops-legacy .im-row-actions{display:flex;gap:4px;align-items:center}
body.ops-admin .ops-legacy .im-row-actions .button{padding:6px 8px;min-width:0;font-size:12px}
body.ops-admin .ops-legacy .im-status{display:inline-flex;align-items:center;font-size:12px;font-weight:550;padding:3px 8px;border-radius:5px;background:var(--ds-surface-2);color:var(--ds-ink)}
body.ops-admin .ops-legacy .im-status-available{color:var(--ds-ink);background:var(--ds-accent)}
body.ops-admin .ops-legacy .im-table small.im-warning{color:var(--ds-ink);font-weight:600;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px}
body.ops-admin .ops-legacy .im-empty{text-align:center!important;padding:48px 20px!important;color:var(--ds-muted)}
body.ops-admin .ops-legacy .im-confirm{display:flex;align-items:center;justify-content:space-between;gap:20px;background:var(--ds-surface-2);border:1px solid var(--ds-line-strong);border-radius:10px;margin:0 0 14px;padding:18px}
body.ops-admin .ops-legacy .im-confirm strong{font-size:15px}
body.ops-admin .ops-legacy .im-confirm p{font-size:13px;max-width:65ch;margin:6px 0 0;color:var(--ds-muted)}
body.ops-admin .ops-legacy .im-confirm>div:last-child{display:flex;gap:8px;flex:none}
body.ops-admin .ops-legacy .im-detail>td{background:var(--ds-surface-2)!important;padding:16px!important}
body.ops-admin .ops-legacy .im-detail>td>div{max-width:900px}
body.ops-admin .ops-legacy .im-detail-head{display:flex;gap:16px;align-items:center;justify-content:space-between}
body.ops-admin .ops-legacy .im-detail pre{padding:14px;background:var(--ds-surface);border-radius:8px;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;font-size:14px;line-height:1.8;color:var(--ds-ink);max-height:240px;overflow:auto;margin:12px 0 8px;user-select:all;tab-size:4}
body.ops-admin .ops-legacy .im-pagination{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 0 2px;font-size:13px;color:var(--ds-muted);font-variant-numeric:tabular-nums}
body.ops-admin .ops-legacy .im-pagination>div{display:flex;gap:12px;align-items:center}
body.ops-admin .ops-legacy .im-pagination select{display:inline-block;width:70px;height:34px;padding:5px 8px}
body.ops-admin .ops-legacy .im-pagination label{white-space:nowrap}
@media(max-width:1200px){body.ops-admin .ops-legacy .im-filters{grid-template-columns:repeat(3,minmax(0,1fr))}body.ops-admin .ops-legacy .im-search{grid-column:1/-1}body.ops-admin .ops-legacy .im-more{grid-column:1/3}}
@media(max-width:700px){body.ops-admin .ops-legacy .im-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px}body.ops-admin .ops-legacy .im-filters>.field:nth-child(4){grid-column:1/-1}body.ops-admin .ops-legacy .im-more{grid-column:1/-1}body.ops-admin .ops-legacy .im-filter-actions{grid-column:1/-1;justify-content:flex-start}body.ops-admin .ops-legacy .inventory-manager :is(input:not([type=checkbox]),select){font-size:16px;height:44px}body.ops-admin .ops-legacy .im-selection{padding:12px;gap:12px}body.ops-admin .ops-legacy .inventory-manager .button{min-height:40px}body.ops-admin .ops-legacy .im-selection>div{gap:8px}body.ops-admin .ops-legacy .im-selection>div>.button{padding:8px 10px}body.ops-admin .ops-legacy .im-confirm{flex-direction:column;align-items:flex-start;gap:14px}body.ops-admin .ops-legacy .im-pagination{gap:12px;flex-wrap:wrap}body.ops-admin .ops-legacy .im-statusline{gap:6px;padding:16px 0}body.ops-admin .ops-legacy .im-pagination select{height:40px}body.ops-admin .ops-legacy .im-table{min-width:1020px}}

body.ops-admin .ops-legacy .im-table-wrap{max-width:100%;min-width:0;overflow-x:auto}
