:root {
  --ink: #142c3c;
  --muted: #6a7d8b;
  --line: #dfe7ec;
  --canvas: #f4f7f8;
  --panel: #ffffff;
  --nav: #113149;
  --nav-deep: #0a273b;
  --teal: #1f8a78;
  --blue: #2674a6;
  --orange: #df7a33;
  --red: #c9504f;
  --shadow: 0 14px 35px rgba(18, 48, 67, .08);
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 252px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 28px 18px 22px; display: flex; flex-direction: column; color: #fff; background: linear-gradient(180deg, var(--nav), var(--nav-deep)); }
.brand { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 12px; padding: 0 10px 28px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 13px; font: 700 20px Georgia, serif; background: rgba(255,255,255,.1); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; letter-spacing: .02em; }
.brand small { margin-top: 4px; color: #a9c2d0; font-size: 11px; letter-spacing: .1em; }
nav { display: grid; gap: 7px; }
.nav-item { width: 100%; border: 0; border-radius: 10px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; text-align: left; color: #bfd0d9; background: transparent; transition: .18s ease; }
.nav-item span { width: 23px; text-align: center; font-size: 18px; color: #8eafbf; }
.nav-item:hover, .nav-item.is-active { color: #fff; background: rgba(255,255,255,.11); }
.nav-item.is-active::after { content: ""; margin-left: auto; width: 5px; height: 5px; border-radius: 50%; background: #5cd6bb; }
.sidebar-note { margin-top: auto; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 13px; display: flex; gap: 10px; align-items: center; background: rgba(0,0,0,.12); }
.sidebar-note strong, .sidebar-note small { display: block; }
.sidebar-note strong { font-size: 12px; }
.sidebar-note small { margin-top: 3px; color: #9fb7c3; font-size: 10px; line-height: 1.35; }
.status-dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: #58d3b6; box-shadow: 0 0 0 4px rgba(88,211,182,.13); }
.workspace { min-width: 0; }
.topbar { min-height: 102px; padding: 24px 34px; display: flex; justify-content: space-between; gap: 24px; align-items: center; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.86); backdrop-filter: blur(14px); }
.eyebrow, .section-kicker { margin: 0 0 7px; color: var(--teal); font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.topbar h1 { margin: 0; font: 700 25px/1.1 Georgia, "Microsoft YaHei", serif; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.health-pill { display: inline-flex; gap: 8px; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; background: #fff; }
.health-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.avatar { width: 38px; height: 38px; border: 0; border-radius: 50%; color: #fff; font-weight: 800; background: var(--nav); }
.local-only { padding: 7px 10px; border-radius: 999px; color: #79551d; background: #fff1d9; font-size: 10px; font-weight: 800; }
main { padding: 30px 34px 50px; }
.view { display: none; max-width: 1540px; margin: 0 auto; }
.view.is-active { display: block; animation: rise .25s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(5px); } }
.lead-panel { min-height: 184px; padding: 31px 34px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 45px; align-items: center; border-radius: 18px; color: #fff; background: linear-gradient(125deg, #153d58, #1c6170); box-shadow: var(--shadow); }
.lead-panel h2 { margin: 0 0 10px; font: 700 27px/1.2 Georgia, "Microsoft YaHei", serif; }
.lead-panel p { margin: 0; max-width: 620px; color: #c7dce3; line-height: 1.75; font-size: 14px; }
.lead-panel .section-kicker { color: #63d2bc; }
.lead-steps { display: flex; align-items: center; }
.lead-steps span { width: 58px; height: 58px; flex: none; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; color: #bcd3dc; font-weight: 800; background: rgba(255,255,255,.06); }
.lead-steps span.done { color: #123949; border-color: #66d6bd; background: #66d6bd; }
.lead-steps small { position: absolute; margin-top: 86px; white-space: nowrap; color: #c1d7df; font-size: 10px; font-weight: 500; }
.lead-steps b { height: 1px; flex: 1; min-width: 15px; background: rgba(255,255,255,.25); }
.metric-grid { margin: 22px 0; display: grid; grid-template-columns: repeat(5, minmax(140px, 1fr)); gap: 14px; }
.metric { min-height: 116px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: 0 8px 22px rgba(22,54,73,.04); }
.metric small { color: var(--muted); }
.metric strong { display: block; margin-top: 13px; font: 700 29px/1 Georgia, serif; }
.metric span { display: block; margin-top: 8px; color: var(--muted); font-size: 10px; }
.dashboard-grid, .sync-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.panel { margin-bottom: 18px; padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); box-shadow: 0 8px 24px rgba(20,55,75,.04); }
.panel-head { margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.panel h3 { margin: 0; font-size: 16px; }
.text-button { padding: 0; border: 0; color: var(--blue); background: none; font-size: 12px; }
.quality-chart { display: grid; gap: 15px; }
.quality-row { display: grid; grid-template-columns: 86px 1fr 48px; gap: 12px; align-items: center; font-size: 12px; }
.quality-bar { height: 8px; overflow: hidden; border-radius: 9px; background: #edf1f3; }
.quality-bar i { display: block; height: 100%; border-radius: inherit; }
.quality-bar .ready { background: var(--teal); }.quality-bar .review { background: var(--orange); }.quality-bar .blocked { background: var(--red); }
.summary-list { display: grid; gap: 10px; }
.summary-item { padding: 11px 0; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #edf1f3; font-size: 12px; }
.summary-item:last-child { border: 0; }
.import-empty { color: var(--muted); font-size: 13px; }
.import-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.import-grid div { padding: 13px; border-radius: 10px; background: #f4f7f8; }
.import-grid strong, .import-grid small { display: block; }.import-grid strong { margin-top: 6px; font-size: 18px; }.import-grid small { color: var(--muted); font-size: 10px; }
.toolbar { margin-bottom: 16px; display: flex; gap: 10px; align-items: center; }
.toolbar-copy { margin-right: auto; }.toolbar-copy h2 { margin: 0 0 4px; font-size: 18px; }.toolbar-copy p { margin: 0; color: var(--muted); font-size: 12px; }
.search { flex: 1; min-width: 260px; display: flex; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.search input { width: 100%; height: 42px; border: 0; outline: 0; background: transparent; }
select, .field input { height: 42px; border: 1px solid var(--line); border-radius: 9px; padding: 0 12px; color: var(--ink); background: #fff; outline: 0; }
textarea { min-height: 88px; resize: vertical; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; color: var(--ink); background: #fff; outline: 0; }
.button { min-height: 40px; padding: 0 15px; border: 1px solid transparent; border-radius: 9px; font-weight: 700; font-size: 12px; }
.button.primary { color: #fff; background: var(--blue); }.button.primary:hover { background: #1f628d; }
.button.ghost { color: var(--ink); border-color: var(--line); background: #fff; }.button.small { min-height: 32px; padding: 0 10px; }
.button.danger { color: #a33f40; border-color: #efcaca; background: #fff7f7; }
.button:disabled { opacity: .45; cursor: not-allowed; }
.table-panel { padding: 0; overflow: hidden; }
.table-meta { padding: 15px 20px; display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; border-bottom: 1px solid var(--line); }
.table-meta span:first-child { color: var(--ink); font-weight: 700; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 12px 15px; text-align: left; color: #748792; font-size: 10px; letter-spacing: .04em; background: #f7f9fa; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 14px 15px; border-bottom: 1px solid #edf1f3; vertical-align: middle; font-size: 12px; }
tbody tr:hover { background: #fbfcfc; }
.product-cell { display: flex; align-items: center; gap: 11px; min-width: 240px; }
.product-thumb { width: 42px; height: 42px; flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 9px; color: #6c8796; background: #eaf0f3; font-weight: 800; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-cell strong, .product-cell small { display: block; }.product-cell strong { max-width: 300px; }.product-cell small, td small { margin-top: 4px; color: var(--muted); }
.badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 999px; white-space: nowrap; font-size: 10px; font-weight: 800; }
.badge.ready, .badge.approved, .badge.succeeded, .badge.published { color: #176a5a; background: #e3f4ef; }
.badge.review, .badge.queued, .badge.unlisted { color: #9a5d21; background: #fff0dc; }
.badge.blocked, .badge.failed, .badge.retired { color: #9d3f40; background: #fbe6e6; }
.badge.shadow, .badge.neutral, .badge.never { color: #536b79; background: #eaf0f3; }
.badge.synced { color: #235d87; background: #e5f1f8; }
.price-input { width: 100px; height: 34px; border: 1px solid var(--line); border-radius: 7px; padding: 0 8px; }
.row-actions { display: flex; gap: 6px; align-items: center; }
.stack-actions { display: grid; gap: 5px; min-width: 100px; }.save-state { color: var(--muted); font-size: 9px; }
.row-link { border: 0; color: var(--blue); background: transparent; font-weight: 700; }
.bulk-bar { margin-bottom: 14px; min-height: 48px; padding: 8px 12px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 11px; background: #fff; font-size: 11px; }.bulk-bar span { margin-right: auto; color: var(--muted); }
.product-admin-table td { vertical-align: top; }.inline-fields { min-width: 165px; display: grid; gap: 7px; }.inline-fields label { display: grid; gap: 3px; color: var(--muted); font-size: 9px; font-weight: 700; }.inline-fields input,.mini-input { width: 100%; height: 30px; padding: 0 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: #fff; }.inline-fields.compact { min-width: 92px; }.triple { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }.triple input { min-width: 0; }
.pagination { padding: 15px; display: flex; gap: 13px; align-items: center; justify-content: center; }
.pagination button { padding: 7px 12px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }.pagination span { color: var(--muted); font-size: 11px; }
.notice { margin-bottom: 15px; padding: 13px 16px; border-radius: 10px; font-size: 12px; }.notice.safe { color: #286151; border: 1px solid #cce6dc; background: #edf8f4; }
.section-intro { margin-bottom: 20px; }.section-intro.split { display: flex; justify-content: space-between; align-items: end; gap: 20px; }.section-intro h2 { margin: 0 0 8px; font: 700 25px Georgia, "Microsoft YaHei", serif; }.section-intro p { margin: 0; color: var(--muted); }
.rule-grid { margin-bottom: 18px; display: grid; grid-template-columns: 1fr; gap: 15px; }.rule-card { padding: 18px; display: grid; grid-template-columns: minmax(220px,1.5fr) repeat(5,minmax(90px,.55fr)) auto; gap: 10px; align-items: end; border: 1px solid var(--line); border-radius: 14px; background: #fff; }.rule-card h3 { margin: 0 0 5px; }.rule-card p { margin: 0; max-width: 520px; color: var(--muted); font-size: 10px; line-height: 1.5; }.rule-card label { display: grid; gap: 5px; color: var(--muted); font-size: 9px; }.rule-card input,.rule-card select { min-width: 0; width: 100%; height: 34px; border: 1px solid var(--line); border-radius: 7px; padding: 0 7px; }
.store-grid { display: grid; grid-template-columns: repeat(3, minmax(260px, 1fr)); gap: 16px; }
.store-card { padding: 23px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow); }
.store-card-head { display: flex; justify-content: space-between; gap: 15px; }.store-card h3 { margin: 0 0 5px; }.store-card p { margin: 0; color: var(--muted); font-size: 11px; }
.store-warning { margin-top: 14px !important; padding-top: 12px; border-top: 1px solid var(--line); word-break: break-all; }
.store-facts { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }.store-facts div { padding: 10px; border-radius: 9px; background: #f4f7f8; }.store-facts small, .store-facts strong { display: block; }.store-facts small { color: var(--muted); font-size: 9px; }.store-facts strong { margin-top: 5px; font-size: 12px; }
.guard-list { margin: 0; padding: 0; display: grid; gap: 13px; list-style: none; font-size: 12px; }.guard-list i { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 9px; border-radius: 50%; color: #fff; background: var(--teal); font-style: normal; font-size: 10px; }
.reconcile-main { display: flex; align-items: center; gap: 18px; }.reconcile-number { width: 78px; height: 78px; display: grid; place-items: center; border-radius: 50%; color: #fff; font: 700 25px Georgia, serif; background: var(--teal); }.reconcile-number.has-drift { background: var(--orange); }.reconcile-main p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
dialog { padding: 0; border: 0; box-shadow: 0 24px 70px rgba(9,31,45,.25); }
dialog::backdrop { background: rgba(8,31,45,.44); backdrop-filter: blur(3px); }
.drawer { width: min(720px, 94vw); height: 100vh; max-height: 100vh; margin: 0 0 0 auto; border-radius: 18px 0 0 18px; }
.modal { width: min(500px, 92vw); border-radius: 16px; padding: 0; }.modal.wide { width: min(920px,94vw); }.modal p { color: var(--muted); line-height: 1.7; font-size: 12px; }
.dialog-head { padding: 22px 25px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }.dialog-head h2 { margin: 0; font-size: 19px; }
.icon-button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 20px; }
.drawer-content { padding: 24px; overflow-y: auto; height: calc(100vh - 82px); }
.modal-body { max-height: 70vh; overflow-y: auto; padding: 22px; }.modal-actions { padding: 0 22px 22px; }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }.span-2 { grid-column: 1 / -1; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }.detail-grid div { padding: 12px; border-radius: 9px; background: #f4f7f8; }.detail-grid small,.detail-grid strong { display:block; }.detail-grid small { color:var(--muted);font-size:9px; }.detail-grid strong { margin-top:5px;font-size:12px;word-break:break-word; }
.detail-section { margin-top: 25px; }.detail-section h3 { margin: 0 0 12px; font-size: 14px; }.media-strip { display: flex; gap: 8px; overflow-x: auto; }.media-strip img { width: 78px; height: 78px; border-radius: 9px; object-fit: cover; border: 1px solid var(--line); }.media-fallback { width: 78px; height: 78px; display:grid;place-items:center;border-radius:9px;background:#edf1f3;color:var(--muted);font-size:9px; }
.field { display: grid; gap: 7px; font-size: 11px; font-weight: 700; }.modal-actions { margin-top: 20px; display: flex; justify-content: flex-end; gap: 8px; }
.tabs { position: sticky; top: -24px; z-index: 2; margin: -24px -24px 20px; padding: 12px 20px 0; display: flex; gap: 3px; overflow-x: auto; border-bottom: 1px solid var(--line); background: #fff; }.tabs button { padding: 10px 12px; border: 0; border-bottom: 2px solid transparent; white-space: nowrap; color: var(--muted); background: none; font-size: 11px; }.tabs button.is-active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 800; }.tab-pane { display: none; }.tab-pane.is-active { display: block; }.long-copy { white-space: pre-wrap; line-height: 1.8; color: var(--ink) !important; }.facts-table { display: grid; grid-template-columns: 150px 1fr; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }.facts-table span,.facts-table strong { padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 11px; }.facts-table span { color: var(--muted); background: #f7f9fa; }.facts-table strong:nth-last-child(-n+2),.facts-table span:nth-last-child(-n+2){border-bottom:0;}
.variant-editor { margin-bottom: 8px; padding: 10px; display: grid; grid-template-columns: minmax(180px,1fr) repeat(3,105px) 95px auto; gap: 8px; align-items: end; border: 1px solid var(--line); border-radius: 10px; }.variant-editor small { display: block; margin-top: 3px; color: var(--muted); }.variant-editor label { display: grid; gap: 4px; color: var(--muted); font-size: 9px; }.variant-editor input { min-width: 0; width: 100%; height: 32px; border: 1px solid var(--line); border-radius: 6px; padding: 0 7px; }
.media-board { display: grid; grid-template-columns: repeat(auto-fill,minmax(130px,1fr)); gap: 10px; }.media-card { padding: 8px; display: grid; gap: 7px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: grab; }.media-card.dragging { opacity: .4; }.media-card.is-deleted { opacity: .6; cursor: default; }.media-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 7px; }.media-card small { color: var(--muted); font-size: 9px; }.helper { color: var(--muted); font-size: 11px; }
.preview-summary { margin-bottom: 15px; display: flex; justify-content: space-between; }.diff-row,.blocked-row { padding: 10px; display: grid; grid-template-columns: 1fr 180px 180px; gap: 10px; border-bottom: 1px solid var(--line); font-size: 11px; }.blocked-row { grid-template-columns: 1fr 2fr; color: var(--red); }.pad { padding: 20px 20px 0; }
.search-results { max-height: 150px; overflow-y: auto; display: grid; gap: 4px; }.search-results button { padding: 9px 11px; border: 1px solid var(--line); border-radius: 7px; text-align: left; background: #fff; }.draft-items { display: grid; gap: 6px; }.draft-row { padding: 8px; display: grid; grid-template-columns: 1fr 100px 110px auto; gap: 8px; align-items: end; border: 1px solid var(--line); border-radius: 8px; }.draft-row label { display: grid; gap: 3px; font-size: 9px; }.draft-row input { width: 100%; height: 32px; border: 1px solid var(--line); border-radius: 6px; padding: 0 7px; }.purchase-item { margin-bottom: 8px; padding: 12px; display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 9px; }.purchase-item small { grid-column: 1 / -1; color: var(--muted); }.mini-input { width: 55px; }.template-link { display: inline-flex; align-items: center; text-decoration: none; }.file-button { display: inline-flex; align-items: center; cursor: pointer; }.error-copy { color: var(--red); }.bad { background: var(--red)!important; }
.toast { position: fixed; z-index: 20; right: 24px; bottom: 24px; max-width: 380px; padding: 13px 16px; border-radius: 10px; color: #fff; background: var(--nav); box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); pointer-events: none; transition: .2s ease; font-size: 12px; }.toast.is-visible { opacity: 1; transform: none; }.toast.is-error { background: #9a4040; }
.login-gate{position:fixed;inset:0;z-index:200000;display:grid;place-items:center;padding:24px;background:linear-gradient(135deg,#102f47,#1e5874)}.login-gate[hidden]{display:none}.login-card{width:min(420px,100%);box-sizing:border-box;padding:38px;border-radius:18px;background:#fff;box-shadow:0 28px 80px rgba(0,0,0,.35)}.login-card .brand-mark{display:grid;width:48px;height:48px;margin-bottom:18px;place-items:center;border-radius:13px;background:var(--nav);color:#fff;font:700 30px Georgia}.login-card h1{margin:6px 0 8px;font-size:26px}.login-card>p:not(.eyebrow){margin:0 0 24px;color:var(--muted);line-height:1.6}.login-card label{display:grid;gap:7px;margin-top:14px;font-size:12px;font-weight:800}.login-card input{height:44px;box-sizing:border-box;border:1px solid var(--line);border-radius:9px;padding:0 12px;font-size:15px}.login-card button{width:100%;margin-top:20px}.login-error{display:block;min-height:20px;margin-top:12px;color:var(--red);font-size:12px;text-align:center}
.store-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.checkbox-field{display:flex;grid-auto-flow:column;align-items:center;justify-content:flex-start;gap:8px}.checkbox-field input{width:auto}.connector-key{display:block;padding:14px;border:1px solid var(--line);border-radius:9px;background:#f4f7f8;overflow-wrap:anywhere;user-select:all;font-size:12px}
.empty-row { padding: 38px; text-align: center; color: var(--muted); }
@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 80px minmax(0,1fr); }.sidebar { padding-inline: 11px; }.brand { padding-inline: 8px; }.brand > span:last-child,.nav-item:not(.is-active)::after,.nav-item { font-size: 0; }.nav-item { justify-content:center;padding:12px; }.nav-item span { font-size:18px; }.sidebar-note { display:none; }.metric-grid { grid-template-columns: repeat(3,1fr); }.lead-panel { grid-template-columns:1fr; }.store-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 720px) {
  .app-shell { display:block; }.sidebar { position:fixed; z-index:10; top:auto; bottom:0; width:100%; height:68px; padding:7px; overflow-x:auto; }.brand,.sidebar-note { display:none; } nav { width:max-content;min-width:100%;display:flex;gap:3px; }.nav-item { width:58px;flex:none;display:grid;place-items:center;padding:7px;border-radius:8px; }.nav-item span { font-size:17px; }.workspace { padding-bottom:68px; }.topbar { min-height:82px;padding:18px; }.top-actions .health-pill,.top-actions .ghost,.local-only { display:none; } main { padding:18px; }.lead-panel { padding:24px; }.lead-steps { display:none; }.metric-grid { grid-template-columns:1fr 1fr; }.dashboard-grid,.sync-grid,.rule-grid { grid-template-columns:1fr; }.rule-card { grid-template-columns:1fr 1fr; }.rule-card>div { grid-column:1/-1; }.toolbar { align-items:stretch;flex-wrap:wrap; }.search { min-width:100%; }.toolbar-copy { width:100%; }.store-grid { grid-template-columns:1fr; }.import-grid { grid-template-columns:repeat(2,1fr); }.section-intro.split { align-items:stretch;flex-direction:column; }.detail-grid { grid-template-columns:1fr 1fr; }.variant-editor { grid-template-columns:1fr 1fr; }.variant-editor>div { grid-column:1/-1; }.form-grid { grid-template-columns:1fr; }.span-2 { grid-column:1; }.diff-row { grid-template-columns:1fr; }.bulk-bar { overflow-x:auto; }.facts-table { grid-template-columns:110px 1fr; }
}

/* Store manager parity layer */
.legacy-manager-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:16px}.legacy-manager-head h2{margin:4px 0}.legacy-manager-head p{margin:0;color:var(--muted)}.legacy-summary{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.legacy-summary span{background:#fff;border:1px solid var(--line);border-radius:10px;padding:8px 10px;color:var(--muted);white-space:nowrap}.legacy-summary strong{font-size:18px;color:var(--ink);margin:0 4px}.legacy-toolbar{display:grid;grid-template-columns:minmax(260px,2fr) repeat(5,minmax(120px,1fr)) auto;gap:8px;margin-bottom:10px}.column-switches{display:flex;gap:18px;align-items:center;flex-wrap:wrap;padding:9px 12px;background:#f7fafc;border:1px solid var(--line);border-radius:10px;margin-bottom:10px;font-size:13px}.legacy-bulk{position:sticky;top:0;z-index:8}.legacy-table-panel{border-radius:10px}.store-manager-table{min-width:1880px}.store-manager-table th{vertical-align:top}.store-manager-table td{vertical-align:top;max-width:300px}.legacy-product-cell{display:flex;gap:10px;min-width:230px}.legacy-product-cell>img{width:66px;height:66px;object-fit:cover;border-radius:8px;border:1px solid var(--line)}.legacy-product-cell div{display:grid;gap:4px}.legacy-product-cell small,.store-manager-table small{display:block;color:var(--muted);margin-top:4px}.legacy-fields{display:grid;gap:8px;min-width:165px}.legacy-field{display:grid;gap:3px;font-size:12px;color:var(--muted)}.legacy-field input,.store-manager-table textarea,.sku-manager-table input{width:100%;border:1px solid var(--line);border-radius:6px;padding:7px;background:#fff;color:var(--ink)}.store-manager-table textarea{min-width:180px;resize:vertical}.calc-grid{display:grid;grid-template-columns:auto auto;gap:2px 8px;padding:7px;background:#f6f9fb;border-radius:7px;font-size:12px}.calc-grid strong{text-align:right}.calc-missing{font-size:12px;color:#a55d22;background:#fff8ed;padding:7px;border-radius:7px}.legacy-image-summary{font-size:12px;white-space:nowrap;margin-bottom:6px}.legacy-gallery{display:grid;grid-template-columns:repeat(3,72px);gap:6px;max-height:250px;overflow:auto;padding:2px}.legacy-image-card{position:relative;border:1px solid var(--line);border-radius:7px;background:#fff;padding:3px;cursor:grab}.legacy-image-card label{display:grid}.legacy-image-card input{position:absolute;top:5px;left:5px;z-index:2}.legacy-image-card img{width:64px;height:64px;object-fit:cover;border-radius:4px}.legacy-image-card span{font-size:10px;color:var(--muted)}.legacy-image-card button{border:0;background:transparent;color:var(--accent);font-size:10px;padding:0}.image-actions{display:flex;gap:5px;flex-wrap:wrap;margin-top:7px}.moq-fields{margin-top:10px}.sku-manager-head{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:15px}.sku-manager-head small{display:block;color:var(--muted);margin-top:4px}.sku-manager-table{min-width:1080px}.sku-manager-table td,.sku-manager-table th{vertical-align:middle}.sku-image{display:block;cursor:pointer}.sku-image img{width:70px;height:70px;object-fit:cover;border-radius:7px;border:1px solid var(--line)}.deleted-sku-list{display:flex;gap:8px;flex-wrap:wrap}.save-state,.sku-save-state{font-size:12px;color:var(--muted)}
@media(max-width:1100px){.legacy-manager-head{align-items:flex-start;flex-direction:column}.legacy-summary{justify-content:flex-start}.legacy-toolbar{grid-template-columns:1fr 1fr}.legacy-toolbar .search{grid-column:1/-1}}
@media(max-width:720px){.legacy-toolbar{grid-template-columns:1fr}.legacy-toolbar .search{grid-column:auto}.legacy-summary{display:grid;grid-template-columns:1fr 1fr}.legacy-summary span{white-space:normal}.column-switches{gap:10px}.legacy-bulk{position:static}.store-manager-table{min-width:1700px}}

/* Store manager parity: mirror the effective WordPress Store manager surface. */
.legacy-manager-head{align-items:flex-start}.legacy-toolbar{display:flex;flex-wrap:wrap;gap:10px}.legacy-toolbar input,.legacy-toolbar select{min-width:170px;min-height:36px}.legacy-toolbar input{min-width:330px}.column-switches{border:0;border-radius:0;background:transparent;padding:0;color:#50575e}.legacy-bulk{top:0;z-index:20;flex-wrap:wrap;padding:10px 12px;background:#f0f0f1;border-bottom:1px solid #c3c4c7;box-shadow:0 3px 8px rgba(0,0,0,.08)}.legacy-bulk #productCount{font-weight:700}.legacy-limit-note{padding:8px 12px;color:var(--muted)}
.store-manager-table{table-layout:fixed;width:max-content;min-width:1777px}.store-manager-table th,.store-manager-table td{box-sizing:border-box}.store-manager-table .check-column{width:37px}.store-manager-table th:nth-child(2),.store-manager-table td:nth-child(2){width:370px}.store-manager-table th:nth-child(3),.store-manager-table td:nth-child(3){width:460px}.store-manager-table th:nth-child(5),.store-manager-table td:nth-child(5){width:300px}.store-manager-table th:nth-child(6),.store-manager-table td:nth-child(6){width:270px}.store-manager-table th:nth-child(10),.store-manager-table td:nth-child(10){width:100px}.store-manager-table th:nth-child(11),.store-manager-table td:nth-child(11){width:240px}.store-manager-table td{max-width:none}
.store-manager-table .check-column{padding-left:8px;padding-right:8px}.store-manager-table .stack-actions{min-width:70px}
.legacy-product-cell{align-items:center;min-width:0}.legacy-product-cell>img{width:58px;height:58px;flex:0 0 58px}.legacy-product-content{display:grid;gap:7px;min-width:0;width:100%}.legacy-product-content label{display:grid;gap:3px;color:#50575e;font-size:11px;font-weight:700}.legacy-product-content input,.legacy-product-content textarea{width:100%;box-sizing:border-box;border:1px solid #8c8f94;border-radius:4px;padding:6px 8px;background:#fff;color:#1d2327;font-size:12px}.legacy-product-content textarea{min-height:110px;resize:vertical}.legacy-content-actions,.legacy-inline-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.legacy-content-actions [data-content-status]{color:#646970;font-size:11px;font-weight:700}.legacy-inline-actions a{font-weight:700}
.legacy-field{display:block;margin:0 0 8px}.legacy-field label{display:block;color:#50575e;font-size:12px;font-weight:700;margin:0 0 3px}.legacy-field input,.legacy-field textarea{width:100%;min-height:30px;box-sizing:border-box;border:1px solid #8c8f94;border-radius:4px;padding:4px 7px;background:#fff;color:#1d2327}.legacy-field textarea{min-height:94px;resize:vertical}.legacy-calc-line{display:block;color:#1d2327;font-size:12px;font-weight:700;line-height:1.45}.legacy-calc-line strong{color:#d63638;font-size:14px}.legacy-calc-missing{display:block;color:#8a2424;font-size:12px;font-weight:700}.legacy-logistics>strong{display:block;color:#1d2327;font-size:13px}.legacy-logistics>[data-logistics-formula]{display:block;color:#646970;font-size:10px;line-height:1.2;word-break:break-word}.legacy-logistics small{display:block;color:#646970;font-size:11px;margin:-4px 0 8px}.legacy-note-field{min-width:0}.save-state{min-height:16px;font-weight:700}
.legacy-image-cell{width:420px;max-width:420px;overflow:hidden}.legacy-image-head{display:flex;justify-content:flex-end;margin-bottom:6px}.legacy-image-bulk-keep{min-height:28px;padding:0 10px!important;border-color:#00a32a!important;color:#0a6b2b!important;background:#fff!important}.legacy-image-counts{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:0 0 8px;color:#1d2327;font-size:12px;font-weight:700}.legacy-image-counts span{display:inline-flex;padding:3px 8px;border-radius:999px;background:#f0f0f1}.legacy-image-counts span:nth-child(2){color:#0a4b78;background:#e5f5fa}.legacy-gallery{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start;max-width:420px;max-height:520px;overflow:auto;scrollbar-gutter:stable;padding:2px 2px 8px}.legacy-image-section-label{flex:0 0 100%;box-sizing:border-box;margin:2px 0 0;padding:5px 8px;border-left:4px solid #2271b1;background:#e5f5fa;color:#0a4b78;font-size:12px;font-weight:800}.legacy-image-card{position:relative;width:120px;flex:0 0 120px;border:1px solid #dcdcde;border-radius:10px;background:#fff;padding:0;overflow:hidden;cursor:pointer;box-shadow:0 1px 2px rgba(0,0,0,.06)}.legacy-image-card[draggable=true]{cursor:grab;user-select:none}.legacy-image-card.is-dragging{opacity:.45;outline:3px solid #2271b1}.legacy-image-card>img{display:block;width:120px;height:120px;object-fit:cover;border:0;border-radius:0;background:#f6f7f7}.legacy-image-check{position:absolute;top:5px;left:5px;z-index:3;display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:8px;background:rgba(255,255,255,.94);box-shadow:0 1px 4px rgba(0,0,0,.25);cursor:pointer}.legacy-image-check input{width:18px;height:18px;margin:0;cursor:pointer}.legacy-image-check:has(input:checked){background:#e7f6ec;outline:2px solid #00a32a}.legacy-image-delete{position:absolute;z-index:5;top:5px;right:5px;width:28px;height:28px;padding:0;border:1px solid #d63638;border-radius:50%;color:#b32d2e;background:#fff;font-size:19px;font-weight:700;line-height:24px}.legacy-image-badges{position:absolute;left:5px;right:5px;bottom:5px;display:flex;justify-content:space-between;gap:4px;align-items:center}.legacy-image-badges b{display:inline-flex;border-radius:999px;padding:2px 6px;background:rgba(0,0,0,.72);color:#fff;font-size:11px;line-height:1.4}.legacy-sort-status{flex:0 0 100%;min-height:18px;color:#646970;font-size:12px;font-weight:700}.legacy-sort-status.is-saving{color:#135e96}.legacy-sort-status.is-success{color:#008a20}.legacy-sort-status.is-error{color:#b32d2e}.legacy-upload-button{margin-top:8px}.legacy-image-empty{color:#8c8f94;font-weight:700}
.legacy-image-modal[hidden]{display:none}.legacy-image-modal{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(0,0,0,.72)}.legacy-image-modal__dialog{position:relative;width:min(980px,94vw);max-height:92vh;overflow:auto;border-radius:14px;background:#fff;padding:18px;box-shadow:0 20px 60px rgba(0,0,0,.35)}.legacy-image-modal__close{position:absolute;top:10px;right:10px;z-index:2;width:34px;height:34px;border:0;border-radius:999px;background:#1d2327;color:#fff;font-size:24px;line-height:1;cursor:pointer}.legacy-image-modal img{display:block;max-width:100%;max-height:70vh;width:auto;height:auto;margin:0 auto 12px;border-radius:10px;background:#f6f7f7}.legacy-image-modal__meta strong,.legacy-image-modal__meta span{display:block;overflow-wrap:anywhere}.legacy-image-modal__meta span{color:#646970;margin-top:4px}.legacy-image-modal__actions{margin-top:12px}.deleted-media-list{display:flex;gap:8px;flex-wrap:wrap}
.chz-structured-fields{margin-top:12px;padding-top:12px;border-top:1px solid #dcdcde}.chz-structured-fields__title{display:block;margin-bottom:8px;font-size:12px}.chz-structured-fields__grid{display:grid;grid-template-columns:1fr;gap:8px}.chz-structured-fields .chz-field{display:flex;flex-direction:column;gap:3px;color:#50575e;font-size:12px;font-weight:700}.chz-structured-fields input,.chz-structured-fields select{width:100%;min-height:32px;box-sizing:border-box;border:1px solid #8c8f94;border-radius:4px;padding:4px 7px;background:#fff;color:#1d2327}.chz-structured-fields__actions{display:flex;align-items:center;gap:8px;margin-top:9px;flex-wrap:wrap}.chz-structured-fields__actions span{font-size:12px;color:#50575e}
.legacy-upload-zone{display:flex;width:120px;min-height:142px;box-sizing:border-box;margin-top:10px;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:2px dashed #2271b1;border-radius:8px;background:#f0f6fc;color:#135e96;text-align:center;cursor:pointer}.legacy-upload-zone:hover{border-color:#135e96;background:#e8f1f8}.legacy-upload-zone>span{display:block;width:calc(100% - 12px);overflow:hidden;color:#646970;font-size:9px;white-space:nowrap;text-overflow:ellipsis}.legacy-upload-zone>span em{font-style:normal}.legacy-upload-zone>b{font-size:26px;line-height:1}.legacy-upload-zone>strong{font-size:12px;line-height:1.45}
@media(max-width:782px){.legacy-bulk{top:0}.legacy-toolbar input,.legacy-toolbar select{min-width:100%;width:100%}.store-manager-table{min-width:1777px}.chz-structured-fields__grid{grid-template-columns:1fr}}
