html[data-ops-preview="linear"] {
  color-scheme: light;
  --font-ui: Inter, "Aptos", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --bg: #f6f8fb;
  --panel: #ffffff;
  --soft: #f8fafc;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e5e7eb;
  --primary: #4f46e5;
  --blue: #2563eb;
  --green: #16a34a;
  --red: #dc2626;
  --amber: #f59e0b;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04);
  --body-gradient: #f6f8fb;
  --sticky-bg: rgba(255, 255, 255, .92);
  --nav-bg: #ffffff;
  --panel-gradient: #ffffff;
  --radius-card: 8px;
  --radius-control: 7px;
  --accent-ring: rgba(79, 70, 229, .16);
}

html[data-ops-preview="linear"] body {
  margin: 0;
  background: #f6f8fb;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.45;
}

html[data-ops-preview="linear"]:not([data-ops-ready="1"])::before {
  content: none;
}

html[data-ops-preview="linear"][data-ops-ready="1"] body {
  opacity: 1;
  transition: opacity .12s ease;
}

body.ops-shell-ready {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}

body.ops-shell-ready.ops-sidebar-collapsed {
  grid-template-columns: 60px minmax(0, 1fr);
}

.ops-sidebar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 10px;
  height: 100vh;
  padding: 14px 12px;
  border-right: 1px solid var(--line);
  background: #fff;
}

.ops-sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  justify-self: end;
  border: 1px solid #dbe3f0;
  border-radius: 7px;
  background: #f8fafc;
  color: #334155;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.ops-sidebar-toggle:hover {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

body.ops-shell-ready.ops-sidebar-collapsed .ops-sidebar {
  padding: 14px 8px;
}

.ops-sidebar-shop-dock {
  min-width: 0;
}

.ops-sidebar-main {
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

.ops-sidebar-tools {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.ops-sidebar-shop-dock .shop-switcher {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  min-height: 88px;
  padding: 12px;
  border: 1px solid #93c5fd;
  border-radius: 8px;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 78%);
  box-shadow: 0 10px 24px rgba(37, 99, 235, .14);
}

.ops-sidebar-shop-dock .shop-switcher span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 850;
}

.ops-sidebar-shop-dock .shop-switcher span::before {
  content: "切换入口";
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1e40af;
  font-size: 10px;
}

.ops-sidebar-shop-dock .shop-switcher select {
  width: 100%;
  min-height: 38px;
  padding: 0 30px 0 9px;
  border: 1px solid #93c5fd;
  border-radius: 7px;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  font-weight: 850;
}

.ops-sidebar-shop-dock .shop-switcher::after {
  content: "当前店铺：" attr(data-current-shop);
  display: block;
  overflow: hidden;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-view.is-module-loading {
  position: relative;
  min-height: 320px;
}

.all-shops-detail-hidden {
  display: none !important;
}


.ops-all-shops-workbench .view-switch .view-tab[hidden],
.ops-all-shops-workbench .ops-nav-item[hidden] {
  display: none !important;
}

.all-shops-summary {
  display: grid;
  gap: 18px;
}

.all-shops-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.all-shops-chart-card {
  min-height: 360px;
  padding: 18px;
}

.all-shops-chart-card canvas {
  display: block;
  width: 100% !important;
  min-height: 280px;
  max-height: 320px;
}

.all-shops-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 18px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 16px 38px rgba(15, 23, 42, .08);
}

.all-shops-detail-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
  font-size: 13px;
}

.all-shops-detail-table th,
.all-shops-detail-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(226, 232, 240, .92);
  text-align: right;
  vertical-align: top;
  white-space: nowrap;
}

.all-shops-detail-table th:first-child,
.all-shops-detail-table td:first-child,
.all-shops-detail-table th:nth-child(2),
.all-shops-detail-table td:nth-child(2) {
  text-align: left;
}

.all-shops-detail-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
}

.all-shops-detail-table td strong,
.all-shops-detail-table td small {
  display: block;
}

.all-shops-detail-table td small {
  margin-top: 3px;
  color: #94a3b8;
  font-size: 11px;
}

@media (max-width: 920px) {
  .all-shops-chart-grid {
    grid-template-columns: 1fr;
  }
}

.report-view.is-module-loading::after {
  content: "正在加载当前模块数据...";
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  min-width: 220px;
  padding: 12px 14px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .14);
}

.ops-navigation-toast {
  position: fixed;
  right: 24px;
  bottom: 82px;
  z-index: 90;
  box-sizing: border-box;
  min-width: 190px;
  max-width: min(360px, calc(100vw - 48px));
  padding: 11px 14px;
  border: 1px solid #93c5fd;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .16);
  opacity: 1;
  transform: translateY(0);
  transition: opacity .16s ease, transform .16s ease;
}

.ops-navigation-toast[hidden] {
  display: none;
}

.ops-navigation-toast.is-leaving {
  opacity: 0;
  transform: translateY(6px);
}

@media (prefers-reduced-motion: reduce) {
  .ops-navigation-toast {
    transition: none;
  }
}

.module-load-error {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: center;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff1f2;
  color: #7f1d1d;
}

.module-load-error strong {
  font-size: 14px;
  font-weight: 900;
}

.module-load-error span {
  grid-column: 1 / -1;
  color: #991b1b;
  font-size: 12px;
  line-height: 1.55;
}

.module-load-error button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #fca5a5;
  border-radius: 7px;
  background: #fff;
  color: #991b1b;
  font-weight: 900;
}

.data-workbench-load-state {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
}

.data-workbench-shell.is-loading > :not(.data-workbench-load-state) {
  display: none !important;
}

.data-workbench-load-state strong {
  font-size: 13px;
  font-weight: 900;
}

.data-workbench-load-state span {
  color: #1e40af;
  font-size: 12px;
  line-height: 1.45;
}

.data-workbench-load-state.is-error {
  grid-template-columns: minmax(0, 1fr) auto;
  border-color: #fecaca;
  background: #fff1f2;
  color: #7f1d1d;
}

.data-workbench-load-state.is-error span {
  color: #991b1b;
}

.data-workbench-load-state button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #fca5a5;
  border-radius: 7px;
  background: #fff;
  color: #991b1b;
  font-weight: 900;
}

.ops-sidebar-tools #printBtn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafc;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
}

.ops-brand {
  display: grid;
  gap: 2px;
  padding: 8px 10px 14px;
  border-bottom: 1px solid var(--line);
}

.ops-brand strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.ops-brand span {
  color: var(--muted);
  font-size: 11px;
}

.ops-nav-list {
  display: grid;
  gap: 3px;
  margin-top: 0;
}

.ops-global-search-dock {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 9px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .045);
}

.ops-global-search-dock label {
  display: grid;
  gap: 5px;
}

.ops-global-search-dock label span,
.ops-global-search-dock small {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 720;
}

.ops-global-search-dock input {
  width: 100%;
  min-width: 0;
  height: 28px;
  padding: 0 9px;
  border: 1px solid #dbe3f0;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  outline: none;
}

.ops-global-search-dock input:focus {
  border-color: #bfdbfe;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
}

.ops-global-search-dock .ops-search-queue-controls {
  justify-content: space-between;
}

.ops-global-search-dock:not(.has-query) .ops-search-queue-controls,
.ops-global-search-dock:not(.has-query) #opsSearchHint {
  display: none;
}

.ops-global-search-dock button {
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid #dbe3f0;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 10.5px;
  font-weight: 820;
}

.ops-global-search-dock button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.ops-nav-item {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  box-shadow: none;
}

.ops-nav-item-icon {
  display: none;
  width: 18px;
  flex: 0 0 18px;
  text-align: center;
  color: #475569;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.ops-nav-item::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #cbd5e1;
}

.ops-nav-item:hover,
.ops-nav-item.active {
  background: #f4f6fb;
  color: var(--ink);
}

.ops-nav-item.active {
  border-color: #e0e7ff;
  box-shadow: inset 3px 0 0 var(--primary);
}

.ops-nav-item.active::before {
  background: var(--primary);
}

body.ops-shell-ready.ops-sidebar-collapsed .ops-brand {
  align-items: center;
  padding: 8px 0 10px;
  text-align: center;
}

body.ops-shell-ready.ops-sidebar-collapsed .ops-brand strong,
body.ops-shell-ready.ops-sidebar-collapsed .ops-brand span,
body.ops-shell-ready.ops-sidebar-collapsed .ops-sidebar-shop-dock,
body.ops-shell-ready.ops-sidebar-collapsed .ops-sidebar-tools {
  display: none !important;
}

body.ops-shell-ready.ops-sidebar-collapsed .ops-sidebar-main {
  padding-right: 0;
  overflow-x: hidden;
}

body.ops-shell-ready.ops-sidebar-collapsed .ops-nav-item {
  justify-content: center;
  gap: 0;
  min-height: 38px;
  padding: 0;
  font-size: 0;
}

body.ops-shell-ready.ops-sidebar-collapsed .ops-nav-item::before {
  display: none;
}

body.ops-shell-ready.ops-sidebar-collapsed .ops-nav-item-icon {
  display: inline-block;
  color: inherit;
  font-size: 14px;
}

body.ops-shell-ready.ops-sidebar-collapsed .ops-nav-item.active {
  box-shadow: inset 3px 0 0 var(--primary);
}

html[data-ops-preview="linear"] main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 14px 10px 28px 24px;
}

html[data-ops-preview="linear"] header {
  position: sticky;
  top: 0;
  z-index: 32;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px 18px;
  margin: 0 -24px 8px;
  padding: 9px 24px;
  border-bottom: 1px solid rgba(229, 231, 235, .92);
  background: rgba(246, 248, 251, .88);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

html[data-ops-preview="linear"] header::after {
  display: none !important;
}

html[data-ops-preview="linear"] h1 {
  margin: 0 0 1px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: 0;
}

html[data-ops-preview="linear"] h2 {
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0;
}

html[data-ops-preview="linear"] h3 {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0;
}

html[data-ops-preview="linear"] .tagline {
  max-width: 860px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

html[data-ops-preview="linear"] .toolbar {
  display: flex;
  grid-column: 2;
  grid-row: 1;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 236px;
}

html[data-ops-preview="linear"] .theme-switcher,
html[data-ops-preview="linear"] #printBtn,
html[data-ops-preview="linear"] .sticky-stack,
html[data-ops-preview="linear"] .view-switch,
html[data-ops-preview="linear"] .report-view > .quick-nav,
html[data-ops-preview="linear"] .report-view > .view-brief,
html[data-ops-preview="linear"] .sub-quick-nav,
html[data-ops-preview="linear"] .ops-flow-nav {
  display: none !important;
}

.ops-top-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.ops-toolbar-empty {
  display: none !important;
}

.ops-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.shop-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  white-space: nowrap;
}

.shop-switcher span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.shop-switcher select {
  min-height: 28px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 760;
  outline: none;
}

.ops-filter span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.ops-filter input,
.ops-filter select {
  min-height: 28px;
  padding: 0 4px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
}

.ops-filter.stat-date {
  border-color: #dbe3f0;
  background: #f8fafc;
}

.ops-filter.stat-date b {
  color: var(--ink);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.ops-refresh-btn {
  min-height: 32px;
  padding: 0 11px;
  border-color: var(--primary);
  border-radius: 7px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 750;
}

.ops-section-tabs {
  display: none;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  margin: 0 0 10px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
}

.ops-section-tab {
  min-height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.ops-section-tab.active,
.ops-section-tab:hover {
  background: #eef2ff;
  color: #3730a3;
}

.ops-status-strip {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 12px;
}

.ops-status-card {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.ops-status-card span,
.ops-status-card small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.ops-status-card strong {
  display: block;
  margin: 3px 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.ops-status-card.order { box-shadow: inset 3px 0 0 var(--blue); }
.ops-status-card.stock { box-shadow: inset 3px 0 0 var(--amber); }
.ops-status-card.ad { box-shadow: inset 3px 0 0 var(--green); }

html.shop-switching body {
  cursor: wait;
}

html.shop-switching body::before {
  content: "正在切换店铺并重新读取数据...";
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: rgba(248, 250, 252, .86);
  color: #0f172a;
  font-size: 15px;
  font-weight: 880;
  backdrop-filter: blur(2px);
}

html.shop-switching .report-view,
html.shop-switching .ops-status-strip,
html.shop-switching .stock-health-status-bar {
  opacity: .24;
  pointer-events: none;
}

html[data-ops-preview="linear"] .panel,
html[data-ops-preview="linear"] .surface-block,
html[data-ops-preview="linear"] .product-card,
html[data-ops-preview="linear"] .analysis-product,
html[data-ops-preview="linear"] .action-card,
html[data-ops-preview="linear"] .risk-matrix-card,
html[data-ops-preview="linear"] .pending-group-card,
html[data-ops-preview="linear"] .new-card,
html[data-ops-preview="linear"] .graduate-card,
html[data-ops-preview="linear"] .overview-period-card,
html[data-ops-preview="linear"] .metric-card,
html[data-ops-preview="linear"] .kpi {
  border-color: var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

html[data-ops-preview="linear"] .panel {
  padding: 10px;
  margin-bottom: 8px;
}

html[data-ops-preview="linear"] .section-head {
  margin-bottom: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: start;
}

.ops-module-timestamp {
  display: none;
}

header {
  position: relative;
}

.ops-header-timestamp {
  position: static;
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: none;
  min-width: 0;
}

.ops-time-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid #dbe3f1;
  border-radius: 999px;
  background: #fff;
  font-size: 11px;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .04);
}

.ops-time-chip i {
  font-style: normal;
  font-weight: 700;
  color: #64748b;
}

.ops-time-chip b {
  font-weight: 800;
  color: #0f172a;
}

.ops-time-chip.info {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.ops-time-chip.info i,
.ops-time-chip.info b {
  color: #1d4ed8;
}

.ops-time-chip.warn {
  border-color: #fed7aa;
  background: #fff7ed;
}

.ops-time-chip.warn i,
.ops-time-chip.warn b {
  color: #c2410c;
}

.ops-time-chip.sync {
  border-color: #bae6fd;
  background: #ecfeff;
}

.ops-time-chip.sync i,
.ops-time-chip.sync b {
  color: #0f766e;
}

.ops-time-chip.muted {
  border-color: #e2e8f0;
  background: #f8fafc;
}

.ops-time-chip.muted i,
.ops-time-chip.muted b {
  color: #64748b;
}

.ops-data-quality-warnings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px;
  margin: 0 0 10px;
}

.ops-data-quality-card {
  display: grid;
  gap: 5px;
  padding: 9px 11px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
}

.ops-data-quality-card strong {
  color: #0f172a;
  font-size: 13px;
}

.ops-data-quality-card span {
  color: #475569;
  font-size: 12px;
  line-height: 1.55;
}

.ops-data-quality-card.warn {
  border-color: #fed7aa;
  background: #fff7ed;
}

.ops-data-quality-card.warn strong {
  color: #c2410c;
}

.ops-data-quality-card.danger {
  border-color: #fecaca;
  background: #fff1f2;
}

.ops-data-quality-card.danger strong {
  color: #be123c;
}

.ops-data-quality-card.info {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.ops-data-quality-card.info strong {
  color: #1d4ed8;
}

.status-pill,
.action-label,
.ops-product-state,
.decision-pill,
.meta-chip,
.profit-tag,
.status-chip,
.follow-action-pill,
.ops-visual-chip,
.stock-time-chip,
.stock-kind-chip,
.activity-tags span,
.stock-pending-aux-tags span,
.pending-readiness-status,
.pending-readiness-checks label,
.priority-pill,
.send-num,
.supplier-need-number,
.follow-need-number,
.risk-mini-meta b,
.risk-mini-meta span,
.pending-group-meta .row-total,
.pending-group-meta .layer-warning {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 22px;
  padding: 3px 8px;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .035);
}

.action-label,
.status-pill {
  border-color: #dbe3ef;
  background: #f8fafc;
  color: #334155;
}

.action-label.new,
.status-pill.danger,
.follow-action-pill.urgent {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.action-label.recolor,
.status-pill.warn,
.follow-action-pill.check,
.stock-kind-chip.new,
.decision-pill.warn,
.meta-chip.warn,
.status-chip.warn,
.profit-tag.warn,
.priority-pill.p2 {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.status-pill.ok,
.stock-kind-chip.recolor,
.decision-pill.focus,
.meta-chip.ok,
.status-chip.ok,
.profit-tag.good,
.priority-pill.p3 {
  border-color: #86efac;
  background: #ecfdf5;
  color: #047857;
}

.follow-action-pill.track,
.stock-time-chip,
.decision-pill.muted,
.meta-chip.muted,
.status-chip.muted {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.follow-action-pill.blocked,
.priority-pill.p1 {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
}

.decision-pill.risk,
.status-chip.loss,
.profit-tag.danger,
.priority-pill.p0,
.supplier-need-number {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.profit-tag {
  min-height: 28px;
  padding: 5px 10px;
  color: #334155;
  cursor: pointer;
}

.profit-tag:hover {
  border-color: #9db3ca;
  background: #f8fafc;
}

.profit-tag.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(79, 70, 229, .18);
}

.profit-tag.danger.active {
  border-color: #dc2626;
  background: #dc2626;
  color: #fff;
}

.profit-tag.warn.active {
  border-color: #b7791f;
  background: #b7791f;
  color: #fff;
}

.profit-tag.good.active {
  border-color: #16a34a;
  background: #16a34a;
  color: #fff;
}

.status-chip,
.decision-pill,
.meta-chip,
.priority-pill {
  font-weight: 900;
}

.priority-pill {
  min-width: 28px;
  min-height: 22px;
  padding: 0 7px;
}

.send-num,
.supplier-need-number,
.follow-need-number {
  min-width: 48px;
  min-height: 28px;
  padding: 5px 9px;
  font-size: 14px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.send-num {
  border-color: #bfdbfe;
  background: #eef6ff;
  color: #1d4ed8;
}

.follow-need-number {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
}

.activity-tags span,
.stock-pending-aux-tags span {
  font-weight: 800;
}

.activity-tags .missing {
  border-style: dashed;
  background: #f1f5f9;
  color: #64748b;
}

.pending-readiness-checks label {
  min-height: 26px;
  cursor: pointer;
}

.pending-readiness-status {
  min-width: 92px;
  min-height: 26px;
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
  font-weight: 850;
}

.pending-readiness-status.ready {
  border-color: #86efac;
  background: #ecfdf5;
  color: #047857;
}

.pending-readiness-status.aside {
  border-color: #dbe3ef;
  background: #f1f5f9;
  color: #475569;
}

.pending-readiness-empty-state {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 11px 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
}

.pending-readiness-empty-state[hidden] {
  display: none !important;
}

.pending-readiness-empty-state strong {
  color: var(--ink);
}

.pending-readiness-empty-state span {
  color: var(--muted);
  font-size: 12px;
}

.pending-readiness-empty-state button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #bfdbfe;
  border-radius: 7px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 850;
}

.stock-time-chip {
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.stock-time-chip::before {
  content: "上架";
  color: #64748b;
  font-weight: 800;
}

.stock-risk-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.stock-risk-card-tags .stock-kind-chip,
.stock-risk-card-tags .stock-time-chip {
  flex: 0 0 auto;
}

html[data-ops-preview="linear"] .section-head span {
  color: var(--muted);
  font-size: 11px;
}

html[data-ops-preview="linear"] .note {
  margin-top: 8px;
  padding: 8px 10px;
  border-color: var(--line);
  border-radius: 7px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 11px;
}

html[data-ops-preview="linear"] #overviewView > .view-brief {
  display: none !important;
  gap: 0;
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  box-shadow: none;
}

html[data-ops-preview="linear"] #overviewView > .view-brief article {
  padding: 8px 10px;
  border-radius: 7px;
  background: #fff;
}

html[data-ops-preview="linear"] #overviewView > .view-brief span {
  font-size: 10px;
  letter-spacing: 0;
  text-transform: none;
}

html[data-ops-preview="linear"] #overviewView > .view-brief strong {
  margin-top: 3px;
  font-size: 14px;
  line-height: 1.25;
}

html[data-ops-preview="linear"] #overviewView > .view-brief p {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.4;
}

html[data-ops-preview="linear"] .exec-hero {
  grid-template-columns: minmax(0, 1fr);
  margin: 0 0 10px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

html[data-ops-preview="linear"] .exec-health {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

html[data-ops-preview="linear"] .ops-kpi-card {
  min-height: 86px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

html[data-ops-preview="linear"] .ops-kpi-card span,
html[data-ops-preview="linear"] .ops-kpi-card small {
  color: var(--muted);
  font-size: 11px;
}

html[data-ops-preview="linear"] .ops-kpi-card strong {
  margin: 5px 0 3px;
  color: var(--ink);
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}

html[data-ops-preview="linear"] .ops-kpi-status,
html[data-ops-preview="linear"] .health-badge,
html[data-ops-preview="linear"] .exec-brief,
html[data-ops-preview="linear"] .risk-action {
  display: none !important;
}

html[data-ops-preview="linear"] .chart-box {
  height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

html[data-ops-preview="linear"] .chart-box.tall {
  height: 440px;
}

html[data-ops-preview="linear"] #overviewCharts .site-select-control,
html[data-ops-preview="linear"] #overviewCharts #overviewSiteHint,
html[data-ops-preview="linear"] #overviewCharts .custom-period-box {
  display: none !important;
}

html[data-ops-preview="linear"] #overviewActivityBoard {
  display: grid !important;
  gap: 6px;
  margin-top: 6px;
  min-height: 124px;
  padding: 6px 8px 8px;
  border: 1px solid color-mix(in srgb, var(--line) 92%, #dbe7f5);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, .98), rgba(241, 246, 251, .95));
}

html[data-ops-preview="linear"] #overviewActivityBoard .overview-activity-head {
  order: 1;
  margin: 0;
  align-items: flex-start;
}

html[data-ops-preview="linear"] #overviewActivityBoard .overview-activity-head strong {
  font-size: 13px;
}

html[data-ops-preview="linear"] #overviewActivityBoard .overview-activity-head span,
html[data-ops-preview="linear"] #overviewActivityBoard #overviewActivityHint {
  font-size: 10.5px;
  line-height: 1.45;
}

html[data-ops-preview="linear"] #overviewActivityCampaigns {
  order: 2;
  min-height: 22px;
  padding-top: 0;
  overflow: visible;
}

html[data-ops-preview="linear"] #overviewActivityTimeline {
  order: 3;
  min-height: 48px;
  margin-top: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

html[data-ops-preview="linear"] #overviewActivityCampaigns .activity-strip-gantt {
  min-height: 20px;
}

html[data-ops-preview="linear"] #overviewActivityCampaigns .activity-strip-row {
  min-height: 14px;
}

html[data-ops-preview="linear"] #overviewActivityTimeline .activity-summary-card {
  padding: 5px 7px;
  border-radius: 8px;
}

html[data-ops-preview="linear"] #shopPeriod {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(330px, .95fr);
  gap: 8px;
  align-items: stretch;
}

html[data-ops-preview="linear"] #shopPeriod > .panel:first-child {
  grid-column: 1 / -1;
}

html[data-ops-preview="linear"] #shopPeriod > .ops-trend-kpi-panel {
  padding: 10px;
}

.ops-trend-kpi-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}

.ops-trend-kpi-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
}

.ops-trend-kpi-head span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.ops-trend-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.ops-trend-kpi-card {
  min-width: 0;
  min-height: 86px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px;
  align-items: center;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  box-shadow: var(--shadow);
}

.ops-trend-kpi-main {
  min-width: 0;
}

.ops-trend-kpi-name {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-trend-kpi-card strong {
  display: block;
  overflow: hidden;
  margin: 5px 0 4px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.ops-kpi-judge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 19px;
  margin: 0 0 4px;
  padding: 0 7px;
  border: 1px solid #dbe3f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  font-size: 10px;
  font-style: normal;
  font-weight: 860;
  line-height: 1;
}

.ops-kpi-judge.ok {
  border-color: #bbf7d0;
  background: #ecfdf3;
  color: #047857;
}

.ops-kpi-judge.warn {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #b45309;
}

.ops-kpi-judge.danger {
  border-color: #fecaca;
  background: #fff1f2;
  color: #b42318;
}

.ops-trend-kpi-card small {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-width: 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

.ops-trend-kpi-card small span,
.ops-trend-kpi-card small b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-trend-kpi-card small span {
  flex: 0 0 24px;
}

.ops-trend-kpi-card small b {
  flex: 1 1 auto;
  min-width: 0;
  text-align: right;
  font-weight: 750;
}

.ops-trend-kpi-card small.up b {
  color: var(--green);
}

.ops-trend-kpi-card small.low-base b {
  color: #b45309;
}

.ops-trend-kpi-card small.low-base {
  margin-top: 1px;
  padding: 1px 4px;
  border-radius: 999px;
  background: #fffbeb;
}

.ops-trend-kpi-card small.down b {
  color: var(--red);
}

.ops-trend-kpi-card small.flat b {
  color: var(--muted);
}

.ops-sparkline {
  min-width: 0;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
}

.ops-sparkline svg {
  width: 100%;
  max-width: 56px;
  height: 34px;
  overflow: visible;
}

.ops-trend-kpi-card .ops-sparkline {
  width: 56px;
  min-width: 56px;
  max-width: 56px;
  flex: 0 0 56px;
  overflow: hidden;
}

.ops-trend-kpi-card .ops-sparkline svg {
  width: 56px;
  min-width: 56px;
  max-width: 56px;
  margin: 0 auto;
}

.ops-sparkline .spark-line {
  fill: none;
  stroke: var(--spark, var(--primary));
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ops-sparkline .spark-area {
  fill: color-mix(in srgb, var(--spark, var(--primary)) 10%, transparent);
  stroke: none;
}

html[data-ops-preview="linear"] #overviewCharts {
  grid-column: 1;
  margin-bottom: 0;
}

html[data-ops-preview="linear"] #overviewActionDesk {
  grid-column: 2;
  align-self: start;
  position: relative;
}

html[data-ops-preview="linear"] #overviewActionDesk small,
html[data-ops-preview="linear"] #overviewActionDesk .action-card small {
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

html[data-ops-preview="linear"] #overviewCharts .section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.ops-chart-controls {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
}

.ops-chart-control {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.ops-chart-control span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.ops-chart-control input,
.ops-chart-control select {
  min-height: 24px;
  padding: 0 4px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
}

.ops-chart-control.stat {
  border-color: #dbe3f0;
  background: #f8fafc;
}

.ops-chart-control.stat b {
  color: var(--ink);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.ops-chart-refresh {
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid var(--primary);
  border-radius: 7px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 750;
}

.ops-chart-refresh.secondary {
  border-color: #cbd5e1;
  background: #fff;
  color: var(--ink);
}

.ops-chart-summary {
  margin: 0 0 6px;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: stretch;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.ops-chart-summary-head {
  display: grid;
  align-content: center;
  gap: 3px;
  margin-bottom: 0;
}

.ops-chart-summary-head strong {
  color: var(--ink);
  font-size: 12px;
}

.ops-chart-summary-head span {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.35;
}

.ops-chart-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}

.ops-chart-summary-card {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 4px 6px;
  border: 1px solid #edf2f7;
  border-radius: 6px;
  background: #fff;
}

.ops-chart-summary-card span {
  display: block;
  flex: 0 0 auto;
  max-width: 42px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-chart-summary-card strong {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  margin-top: 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.15;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.ops-overview-action {
  grid-column: 2;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.ops-overview-action {
  gap: 8px;
  padding: 10px;
  border-radius: 10px;
}

.ops-overview-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.ops-overview-snapshot-grid,
.ops-overview-priority-strip,
.ops-overview-link-grid {
  display: contents;
}

.ops-overview-stat {
  appearance: none;
  box-sizing: border-box;
  font: inherit;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #fbfdff;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease;
}

.ops-overview-stat:hover,
.ops-overview-stat:focus-visible {
  border-color: #94a3b8;
  outline: none;
}

.ops-overview-stat span,
.ops-overview-stat strong,
.ops-overview-stat small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-overview-stat span {
  color: var(--muted);
  font-size: 10.5px;
}

.ops-overview-stat strong {
  margin: 4px 0 3px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.ops-overview-stat small {
  color: #64748b;
  font-size: 10px;
}

.ops-overview-stat.good {
  border-color: #bbf7d0;
  background: #f3fff7;
}

.ops-overview-stat.good strong {
  color: #0f766e;
}

.ops-overview-stat.warn {
  border-color: #fcd34d;
  background: #fffaf0;
}

.ops-overview-stat.warn strong {
  color: #b45309;
}

.ops-overview-stat.danger {
  border-color: #fecaca;
  background: #fff5f5;
}

.ops-overview-stat.danger strong {
  color: #b42318;
}

.ops-overview-priority-strip:empty {
  display: none;
}

.ops-overview-priority {
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #fff;
}

.ops-overview-priority b,
.ops-overview-priority strong,
.ops-overview-priority span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-overview-priority b {
  color: var(--muted);
  font-size: 10px;
}

.ops-overview-priority strong {
  margin: 4px 0 2px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.1;
}

.ops-overview-priority span {
  color: #475569;
  font-size: 10.5px;
}

.ops-overview-priority.danger {
  border-color: #fecaca;
  background: #fff6f6;
}

.ops-overview-priority.warn {
  border-color: #fde68a;
  background: #fffaf0;
}

.ops-overview-priority.info {
  border-color: #dbeafe;
  background: #f8fbff;
}

.ops-overview-link-card {
  appearance: none;
  box-sizing: border-box;
  font: inherit;
  min-width: 0;
  display: block;
  padding: 9px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease;
}

.ops-overview-link-card:hover,
.ops-overview-link-card:focus-visible {
  border-color: #94a3b8;
  outline: none;
}

.ops-overview-link-card span,
.ops-overview-link-card strong,
.ops-overview-link-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-overview-link-card span {
  color: var(--muted);
  font-size: 10.5px;
}

.ops-overview-link-card strong {
  margin: 4px 0 3px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.12;
  font-variant-numeric: tabular-nums;
}

.ops-overview-link-card small {
  color: #475569;
  font-size: 10px;
}

.ops-overview-link-card.good {
  border-color: #bbf7d0;
  background: #f5fff8;
}

.ops-overview-link-card.good strong {
  color: #0f766e;
}

.ops-overview-link-card.warn {
  border-color: #fcd34d;
  background: #fffaf2;
}

.ops-overview-link-card.warn strong {
  color: #b45309;
}

.ops-overview-link-card.danger {
  border-color: #fecaca;
  background: #fff6f6;
}

.ops-overview-link-card.danger strong {
  color: #b42318;
}

.ops-overview-link-card.info {
  border-color: #dbeafe;
  background: #f8fbff;
}

.ops-overview-link-card.info strong {
  color: #1d4ed8;
}

.ops-overview-action .section-head {
  align-items: flex-start;
}

.ops-overview-action .section-head h2 {
  font-size: 15px;
}

.ops-overview-action .action-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.ops-overview-action .action-card {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 5px;
  min-height: 0;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 3px 0 0 #cbd5e1;
}

.ops-overview-action .action-card.warn {
  box-shadow: inset 3px 0 0 var(--amber);
}

.ops-overview-action .action-card.focus {
  box-shadow: inset 3px 0 0 var(--green);
}

.ops-overview-action .action-card.risk {
  box-shadow: inset 3px 0 0 var(--red);
}

.ops-overview-action .action-rank {
  width: 23px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #f1f5f9;
  color: #334155;
  font-size: 10.5px;
  font-weight: 800;
}

.ops-overview-action .action-main {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 6px;
  min-width: 0;
}

.ops-overview-action .product-head {
  display: contents !important;
}

.ops-overview-action .product-head strong,
.ops-overview-action .product-head span,
.ops-overview-action .action-main h3,
.ops-overview-action .action-main p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-overview-action .product-head strong {
  order: 1;
  font-size: 12px;
  line-height: 1.3;
}

.ops-overview-action .product-head span {
  order: 3;
  padding: 1px 5px !important;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc !important;
  color: var(--muted) !important;
  font-size: 10px !important;
  line-height: 1.35 !important;
}

.ops-overview-action .action-main h3 {
  order: 2;
  margin: 0 !important;
  font-size: 12px;
  line-height: 1.3;
  color: var(--ink);
}

.ops-overview-action .action-main p {
  display: none !important;
}

.ops-overview-action .action-metrics,
.ops-overview-action .action-bottom {
  grid-column: 1 / -1;
}

.ops-overview-action .action-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
}

.ops-overview-action .action-metrics div {
  padding: 3px 4px !important;
  border: 1px solid #edf2f7;
  border-radius: 6px;
  background: #f8fafc;
}

.ops-overview-action .action-metrics b,
.ops-overview-action .action-metrics span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-overview-action .action-metrics b {
  color: var(--ink);
  font-size: 11.5px !important;
  line-height: 1.2 !important;
  font-variant-numeric: tabular-nums;
}

.ops-overview-action .action-metrics span {
  color: var(--muted);
  font-size: 9.5px !important;
  line-height: 1.2 !important;
}

.ops-overview-action .action-bottom {
  display: grid;
  gap: 0;
  padding-top: 0 !important;
}

.ops-overview-action .action-bottom span {
  display: none;
}

.ops-overview-action .action-bottom strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #334155;
  font-size: 11px;
  line-height: 1.25;
}

.ops-today-conclusion {
  flex: 1 1 auto;
  min-height: 168px;
  margin-top: 8px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.ops-conclusion-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.ops-conclusion-head strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
}

.ops-conclusion-head span {
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-today-conclusion ol {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ops-today-conclusion li {
  position: relative;
  overflow: hidden;
  padding-left: 14px;
  color: #334155;
  font-size: 11.3px;
  line-height: 1.32;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-today-conclusion li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .55em;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--primary);
}

.ops-conclusion-health {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-top: 10px;
}

.ops-conclusion-health span {
  min-width: 0;
  padding: 6px;
  border: 1px solid #edf2f7;
  border-radius: 7px;
  background: #fff;
}

.ops-conclusion-health small,
.ops-conclusion-health b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-conclusion-health small {
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.2;
}

.ops-conclusion-health b {
  margin-top: 2px;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.2;
}

.ops-conclusion-health .up b {
  color: var(--green);
}

.ops-conclusion-health .down b {
  color: var(--red);
}

.ops-conclusion-health .warn b {
  color: #b45309;
}

.ops-chart-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  overflow-x: visible;
  margin: 6px 0 8px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.ops-chart-legend-group {
  min-width: 0;
  flex: 1 1 180px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.ops-chart-legend-title {
  display: inline-flex;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.ops-chart-legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.ops-chart-legend button {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 6px;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 10.5px;
  font-weight: 700;
}

.ops-chart-legend button::before {
  content: "";
  width: 8px;
  height: 3px;
  border-radius: 999px;
  background: var(--legend-color, var(--primary));
}

.ops-chart-legend button.is-hidden {
  opacity: .42;
  text-decoration: line-through;
}

html[data-ops-preview="linear"] #actionDesk {
  position: static;
  max-height: none;
  overflow: visible;
}

html[data-ops-preview="linear"] .action-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

html[data-ops-preview="linear"] .action-board > *:nth-child(n+4) {
  display: none !important;
}

html[data-ops-preview="linear"] #selectedDateSnapshot .ops-overview-pills,
html[data-ops-preview="linear"] #selectedDateSnapshot .ops-overview-col:nth-child(2),
html[data-ops-preview="linear"] #selectedDateSnapshot .ops-overview-bottom {
  display: none !important;
}

html[data-ops-preview="linear"] #overviewCategory,
html[data-ops-preview="linear"] #overviewCountryTrend {
  padding: 12px;
}

html[data-ops-preview="linear"] #overviewCategory.ops-structure-overview {
  padding: 12px;
}

html[data-ops-preview="linear"] #overviewCategory .section-head,
html[data-ops-preview="linear"] #overviewCountryTrend .section-head {
  margin-bottom: 8px;
}

html[data-ops-preview="linear"] #overviewCategory .category-trend-tools,
html[data-ops-preview="linear"] #overviewCountryTrend .category-trend-tools {
  min-height: 32px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  overflow-x: visible;
  margin: 0 0 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

html[data-ops-preview="linear"] #overviewCategory .category-trend-tools > span,
html[data-ops-preview="linear"] #overviewCountryTrend .category-trend-tools > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

html[data-ops-preview="linear"] #overviewCategory .category-count-btn {
  display: none !important;
}

.ops-category-count-control {
  flex: 0 0 auto;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 6px;
  border: 1px solid #dbe3ef;
  border-radius: 7px;
  background: #fff;
}

.ops-category-count-control span {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 750;
}

.ops-category-count-control select {
  min-height: 24px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 750;
}

html[data-ops-preview="linear"] #overviewCategory .category-metric-btn,
html[data-ops-preview="linear"] #overviewCountryTrend .country-metric-btn {
  flex: 0 0 auto;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 11px;
  font-weight: 750;
}

html[data-ops-preview="linear"] #overviewCategory .category-metric-btn.active,
html[data-ops-preview="linear"] #overviewCountryTrend .country-metric-btn.active {
  border-color: #c7d2fe;
  background: #eef2ff;
  color: #3730a3;
}

html[data-ops-preview="linear"] #overviewCategory .category-trend-tools small,
html[data-ops-preview="linear"] #overviewCountryTrend .category-trend-tools small {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10.5px;
  white-space: nowrap;
}

html[data-ops-preview="linear"] #categoryTrendPanel,
html[data-ops-preview="linear"] #categoryOverviewPanel {
  height: 300px;
}

html[data-ops-preview="linear"] #categoryTrendPanel.ops-chart-panel-empty,
html[data-ops-preview="linear"] #categoryOverviewPanel.ops-chart-panel-empty {
  height: auto;
  min-height: 0;
}

html[data-ops-preview="linear"] #categoryTrendPanel.ops-chart-panel-empty canvas,
html[data-ops-preview="linear"] #categoryOverviewPanel.ops-chart-panel-empty canvas,
html[data-ops-preview="linear"] #categoryTrendPanel.ops-chart-panel-empty .local-loading,
html[data-ops-preview="linear"] #categoryOverviewPanel.ops-chart-panel-empty .local-loading {
  display: none !important;
}

html[data-ops-preview="linear"] #shopTrendPanel.ops-shop-trend-ready .local-loading,
html[data-ops-preview="linear"] #shopTrendPanel.ops-shop-trend-empty .local-loading,
html[data-ops-preview="linear"] #shopTrendPanel .local-loading[hidden] {
  display: none !important;
}

html[data-ops-preview="linear"] .ops-chart-empty {
  min-height: 104px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  margin: 0;
  padding: 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 780;
  text-align: center;
}

html[data-ops-preview="linear"] .ops-chart-empty strong {
  color: #334155;
  font-size: 13px;
}

html[data-ops-preview="linear"] .ops-chart-empty span {
  max-width: 420px;
  color: #64748b;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
}

html[data-ops-preview="linear"] .ops-structure-empty {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #64748b;
}

html[data-ops-preview="linear"] .ops-structure-empty strong {
  color: #334155;
  font-size: 13px;
}

html[data-ops-preview="linear"] .ops-structure-empty span {
  font-size: 12px;
  line-height: 1.45;
}

html[data-ops-preview="linear"] #countryTrendPanel {
  height: 280px;
}

html[data-ops-preview="linear"] #overviewCategory .fold-panel {
  margin: 8px 0 0 !important;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

html[data-ops-preview="linear"] #overviewCategory .fold-panel summary,
html[data-ops-preview="linear"] .ops-country-note summary,
html[data-ops-preview="linear"] .ops-overview-footnote summary {
  min-height: 38px;
  padding: 8px 10px;
  color: var(--ink);
  font-size: 13px;
}

.ops-summary-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.ops-summary-copy strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
}

.ops-summary-copy em {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-category-expand {
  flex: 0 0 auto;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid #dbe3ef;
  border-radius: 7px;
  background: #fff;
  color: #475569;
  font-size: 11px;
  font-weight: 750;
}

html[data-ops-preview="linear"] #overviewCategory .ops-category-summary:not(.is-expanded) tbody tr:nth-child(n+6) {
  display: none;
}

html[data-ops-preview="linear"] #overviewCategory .fold-body {
  padding: 10px;
}

html[data-ops-preview="linear"] #overviewCategory .overview-category-layout {
  display: block;
}

html[data-ops-preview="linear"] #overviewCategory .compact-wrap {
  max-height: 260px;
  overflow: auto;
}

html[data-ops-preview="linear"] #overviewCategory table {
  font-size: 12px;
}

html[data-ops-preview="linear"] #overviewCategory th,
html[data-ops-preview="linear"] #overviewCategory td {
  padding: 6px 8px;
}

html[data-ops-preview="linear"] #overviewCategory .category-pill {
  max-width: 280px;
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

html[data-ops-preview="linear"] #overviewCategory > p.note {
  margin-top: 8px;
  padding: 6px 8px;
}

html[data-ops-preview="linear"] .ops-country-note,
html[data-ops-preview="linear"] .ops-overview-footnote {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 11px;
}

html[data-ops-preview="linear"] .ops-country-note p,
html[data-ops-preview="linear"] .ops-overview-footnote p {
  margin: 0;
  padding: 0 10px 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

html[data-ops-preview="linear"] .ops-overview-footnote {
  padding: 0;
}

html[data-ops-preview="linear"] .ops-overview-footnote .sources {
  margin: 0;
  padding: 0 10px 10px 26px;
  columns: 2;
  font-size: 11px;
}

.ops-structure-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.ops-structure-card {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.ops-structure-card span,
.ops-structure-card small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-structure-card strong {
  display: block;
  overflow: hidden;
  margin: 3px 0 2px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-structure-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.ops-structure-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, .9fr);
  gap: 10px;
  align-items: stretch;
}

.ops-structure-chart,
.ops-rank-section {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.ops-structure-chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.ops-structure-chart-head strong {
  color: var(--ink);
  font-size: 14px;
}

.ops-structure-chart-head span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-ops-preview="linear"] .ops-structure-chart .category-trend-tools {
  margin-bottom: 8px;
}

.ops-rank-section {
  padding: 8px;
}

.ops-country-chart {
  min-height: 368px;
}

.ops-rank-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.ops-rank-title strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
}

.ops-rank-title label {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 6px;
  border: 1px solid #dbe3ef;
  border-radius: 7px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 750;
}

.ops-rank-title select {
  min-height: 24px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 750;
}

.ops-rank-head,
.ops-rank-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px 48px 58px;
  align-items: center;
  gap: 7px;
}

.ops-rank-head {
  padding: 0 4px 5px 27px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 750;
}

.ops-rank-list {
  display: grid;
  gap: 5px;
}

.ops-rank-line {
  position: relative;
  min-height: 34px;
  padding: 5px 6px;
  border: 1px solid #edf2f7;
  border-radius: 7px;
  background: #f8fafc;
  font-variant-numeric: tabular-nums;
}

.ops-rank-line b {
  position: absolute;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: #e2e8f0;
  color: #475569;
  font-size: 10px;
}

.ops-rank-line span {
  min-width: 0;
  overflow: hidden;
  padding-left: 25px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-rank-line strong,
.ops-rank-line em,
.ops-rank-line i {
  overflow: hidden;
  color: #334155;
  font-size: 11px;
  font-style: normal;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-rank-line i.up {
  color: var(--green);
}

.ops-rank-line i.down {
  color: var(--red);
}

.ops-country-trend-body {
  padding: 0;
}

.ops-country-trend-body .category-trend-tools {
  min-height: 30px;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 5px;
  overflow-x: auto;
  margin: 0 0 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.ops-country-trend-body .category-trend-tools > span,
.ops-country-trend-body .category-trend-tools small {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10.5px;
  white-space: nowrap;
}

.ops-country-trend-body .country-metric-btn {
  flex: 0 0 auto;
  min-width: 42px;
  min-height: 25px;
  padding: 0 8px;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.ops-country-trend-body .country-metric-btn.active {
  border-color: #c7d2fe;
  background: #eef2ff;
  color: #3730a3;
}

.ops-quadrant-note {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 8px;
}

.ops-quadrant-note span {
  overflow: hidden;
  padding: 5px 6px;
  border: 1px solid #edf2f7;
  border-radius: 6px;
  background: #f8fafc;
  color: #475569;
  font-size: 10.5px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-ops-preview="linear"] #selectedDateSnapshot .ops-overview-grid {
  grid-template-columns: 1fr;
}

html[data-ops-preview="linear"] #selectedDateSnapshot .ops-overview-col:first-child {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

html[data-ops-preview="linear"] .ops-module,
html[data-ops-preview="linear"] .ops-site-card,
html[data-ops-preview="linear"] .ops-country-row,
html[data-ops-preview="linear"] .ops-rank-row,
html[data-ops-preview="linear"] .ops-brief-list {
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

html[data-ops-preview="linear"] .data-workflow {
  min-height: 34px;
  padding: 3px;
  gap: 3px;
  border-radius: 8px;
  background: #fff;
}

html[data-ops-preview="linear"] .data-workflow a {
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

html[data-ops-preview="linear"] .data-workflow a:first-child,
html[data-ops-preview="linear"] .data-workflow a:hover {
  background: #eef2ff;
  color: #3730a3;
}

html[data-ops-preview="linear"] #products .products {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

html[data-ops-preview="linear"] #selectedProductCards > *:nth-child(n+4) {
  display: none !important;
}

html[data-ops-preview="linear"] #products .product-card {
  grid-template-columns: 72px minmax(0, 1fr);
}

html[data-ops-preview="linear"] #products .photo {
  min-height: 120px;
  padding: 5px;
  background: #f8fafc;
}

html[data-ops-preview="linear"] #products .product-body {
  padding: 9px;
  gap: 5px;
}

html[data-ops-preview="linear"] #products .mini-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

html[data-ops-preview="linear"] .support-dock,
html[data-ops-preview="linear"] #profitTableFold,
html[data-ops-preview="linear"] #details,
html[data-ops-preview="linear"] #trafficDiagnostics,
html[data-ops-preview="linear"] #spuCompare,
html[data-ops-preview="linear"] #activity {
  border-radius: 8px;
}

html[data-ops-preview="linear"] #overviewCharts .chart-box {
  height: 368px;
}

html[data-ops-preview="linear"] #overviewCharts .section-head {
  gap: 6px;
  margin-bottom: 6px;
}

html[data-ops-preview="linear"] #overviewCharts .section-head h2 {
  font-size: 14px;
}

html[data-ops-preview="linear"] #overviewCharts .section-head span {
  font-size: 10.5px;
}

html[data-ops-preview="linear"] #shopTrendLegend {
  margin-bottom: 6px;
}

html[data-ops-preview="linear"] #productView {
  font-size: 12px;
  padding-top: 12px;
}

html[data-ops-preview="linear"] #productView > .view-brief {
  display: none !important;
}

.ops-product-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .8fr);
  gap: 10px;
  margin-bottom: 10px;
}

.ops-product-actions-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: -1px;
}

.ops-product-actions-head strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 760;
}

.ops-product-actions-head span {
  color: var(--muted);
  font-size: 11px;
}

.ops-product-action-group {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f8fafc);
}

.ops-product-action-group.recolor {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: linear-gradient(180deg, #fff, #fffbeb);
}

.ops-product-action-group-title {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.ops-product-action-group-title b {
  color: #0f172a;
  font-size: 12px;
}

.ops-product-action-group-title span {
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-product-action {
  min-width: 0;
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 8px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: left;
}

.ops-product-action span,
.ops-product-action small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-product-action strong {
  grid-row: 1 / 3;
  grid-column: 2;
  color: var(--ink);
  font-size: 22px;
  font-weight: 720;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ops-product-action.fix { box-shadow: inset 3px 0 0 var(--red), var(--shadow); }
.ops-product-action.recolor { box-shadow: inset 3px 0 0 var(--amber), var(--shadow); }
.ops-product-action.recolor-test { box-shadow: inset 3px 0 0 var(--blue), var(--shadow); }
.ops-product-action.image { box-shadow: inset 3px 0 0 #ef4444, var(--shadow); }
.ops-product-action.scale { box-shadow: inset 3px 0 0 var(--green), var(--shadow); }
.ops-product-action.ready { box-shadow: inset 3px 0 0 var(--blue), var(--shadow); }

.ops-product-nav {
  position: relative;
  top: auto;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 8px;
  padding: 5px;
  border: 1px solid rgba(229, 231, 235, .9);
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

html[data-ops-preview="linear"] #productView > .ops-product-nav:first-child,
html[data-ops-preview="linear"] #productView > .ops-product-nav {
  margin-top: 6px;
}

.ops-product-nav button {
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.ops-product-nav button:hover {
  border-color: #dbe3f0;
  background: #f8fafc;
  color: var(--ink);
}

.ops-product-nav button.is-active {
  border-color: #dbeafe;
  background: #eff6ff;
  color: #1d4ed8;
  box-shadow: inset 0 -2px 0 #2563eb;
}

.ops-product-zone {
  position: relative;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #d6deea;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .045);
}

.new-product-war-room {
  box-shadow: inset 4px 0 0 #2563eb, 0 12px 28px rgba(15, 23, 42, .045);
}

.recolor-opportunity-zone {
  box-shadow: inset 4px 0 0 #f59e0b, 0 12px 28px rgba(15, 23, 42, .045);
}

.ops-product-zone-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 10px;
}

.ops-product-zone-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 17px;
  letter-spacing: -.01em;
}

.ops-product-zone-head span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
}

.ops-product-subtabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 4px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
}

.ops-product-subtabs button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.ops-recolor-tabs button b {
  min-width: 20px;
  padding: 2px 6px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.ops-recolor-tabs button.is-empty {
  color: #94a3b8;
}

.ops-recolor-tabs button.is-empty b {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #94a3b8;
}

.ops-product-subtabs button.is-active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
}

.ops-product-zone-body > .ops-product-subpane,
.recolor-opportunity-pool {
  margin-top: 0;
}

.ops-product-zone-body > .ops-product-subpane[hidden],
.ops-recolor-pane[hidden] {
  display: none !important;
}

.ops-product-zone-body > .ops-product-subpane {
  padding: 0;
  border: 0;
  box-shadow: none;
}

.ops-product-zone-body > .ops-product-subpane > .section-head {
  margin-bottom: 8px;
}

.recolor-opportunity-pool > .section-head {
  display: none;
}

.ops-recolor-pane {
  display: block;
}

.ops-single-tool-panel {
  margin-top: 14px !important;
}

.ops-single-tool-panel.is-collapsed .single-skc-tools,
.ops-single-tool-panel.is-collapsed .single-skc-layout,
.ops-single-tool-panel.is-collapsed #singleSkcTablePanel {
  display: none !important;
}

.single-skc-tool-toggle {
  justify-self: end;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

html[data-ops-preview="linear"] #productView .panel {
  padding: 10px;
  margin-bottom: 8px;
}

html[data-ops-preview="linear"] #productView .ops-product-module {
  margin-top: 22px;
  padding: 10px;
  border: 1px solid #d6deea;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 10px 24px rgba(15, 23, 42, .035);
}

html[data-ops-preview="linear"] #productView .ops-product-module:not(.is-active) {
  display: none !important;
}

html[data-ops-preview="linear"] #productView .ops-product-module + .ops-product-module {
  margin-top: 22px;
}

html[data-ops-preview="linear"] #productView .ops-product-module-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: -2px -2px 9px;
  padding: 9px 12px 9px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  overflow: hidden;
}

html[data-ops-preview="linear"] #productView .ops-product-module-head::before {
  content: "";
  position: absolute;
  inset: 8px auto 8px 0;
  width: 4px;
  border-radius: 999px;
  background: var(--module-accent, var(--primary));
}

html[data-ops-preview="linear"] #productView .ops-product-module-title {
  min-width: 0;
}

html[data-ops-preview="linear"] #productView .ops-product-module-title h2 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
}

html[data-ops-preview="linear"] #productView .ops-product-module-title span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

html[data-ops-preview="linear"] #productView .ops-product-module-meta {
  max-width: 420px;
  color: #475569;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
  text-align: right;
  white-space: normal;
}

html[data-ops-preview="linear"] #productView .ops-product-module-check {
  --module-accent: #f05a3b;
}

html[data-ops-preview="linear"] #productView .ops-product-module-check .ops-product-module-head {
  border-color: #ffd8cc;
  background: #fff4f1;
}

html[data-ops-preview="linear"] #productView .ops-product-module-graduate {
  --module-accent: #4f46e5;
}

html[data-ops-preview="linear"] #productView .ops-product-module-graduate .ops-product-module-head {
  border-color: #e0e7ff;
  background: #f5f7ff;
}

html[data-ops-preview="linear"] #productView .ops-product-module-recolor {
  --module-accent: #d9a019;
}

html[data-ops-preview="linear"] #productView .ops-product-module-recolor .ops-product-module-head {
  border-color: #f8e7a8;
  background: #fffbea;
}

html[data-ops-preview="linear"] #productView .recolor-opportunity-zone {
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}

html[data-ops-preview="linear"] #productView .section-head {
  margin-bottom: 7px;
}

html[data-ops-preview="linear"] #productView .single-skc-tools {
  gap: 8px;
  padding: 8px;
  margin-bottom: 8px;
}

html[data-ops-preview="linear"] #productView .single-skc-layout {
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

html[data-ops-preview="linear"] #productView .single-skc-card,
html[data-ops-preview="linear"] #productView .chart-box {
  min-height: 0;
}

html[data-ops-preview="linear"] #productView .single-skc-chart .chart-box {
  height: 360px;
}

html[data-ops-preview="linear"] #productView .matrix-toolbar {
  gap: 7px;
  margin-bottom: 7px;
}

html[data-ops-preview="linear"] #productView .matrix-area {
  position: relative;
}

html[data-ops-preview="linear"] #productView .matrix-filter-loading,
html[data-ops-preview="linear"] #productView .ops-product-pane-loading {
  position: absolute;
  inset: 0;
  z-index: 35;
  display: none;
  grid-template-columns: 22px auto;
  place-content: start center;
  align-items: center;
  gap: 2px 9px;
  padding-top: 108px;
  border-radius: 8px;
  background: rgba(248, 250, 252, .88);
  color: #0f172a;
  cursor: progress;
  backdrop-filter: blur(2px);
}

html[data-ops-preview="linear"] #productView .matrix-area.is-filtering .matrix-filter-loading,
html[data-ops-preview="linear"] #productView .new-product-war-room.is-pane-switching .ops-product-pane-loading {
  display: grid;
}

html[data-ops-preview="linear"] #productView .matrix-filter-loading[hidden],
html[data-ops-preview="linear"] #productView .ops-product-pane-loading[hidden] {
  display: none !important;
}

html[data-ops-preview="linear"] #productView .matrix-filter-loading span,
html[data-ops-preview="linear"] #productView .ops-product-pane-loading span {
  grid-row: 1 / 3;
  width: 18px;
  height: 18px;
  border: 2px solid #bfdbfe;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: ops-product-loading-spin .7s linear infinite;
}

html[data-ops-preview="linear"] #productView .matrix-filter-loading strong,
html[data-ops-preview="linear"] #productView .ops-product-pane-loading strong {
  font-size: 13px;
  line-height: 1.25;
}

html[data-ops-preview="linear"] #productView .matrix-filter-loading em,
html[data-ops-preview="linear"] #productView .ops-product-pane-loading em {
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  line-height: 1.25;
}

@keyframes ops-product-loading-spin {
  to { transform: rotate(360deg); }
}

html[data-ops-preview="linear"] #productView .matrix-product-filters {
  display: grid;
  grid-template-columns: minmax(230px, 1.4fr) minmax(148px, .65fr) minmax(148px, .65fr) minmax(190px, 1fr) auto auto;
  gap: 8px;
  align-items: end;
  width: 100%;
  padding: 9px;
  border: 1px solid #dbe3ee;
  border-radius: 7px;
  background: #f8fafc;
}

html[data-ops-preview="linear"] #productView .matrix-product-filters label {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
}

html[data-ops-preview="linear"] #productView .matrix-product-filters input,
html[data-ops-preview="linear"] #productView .matrix-product-filters select {
  width: 100%;
  min-width: 0;
  height: 32px;
  padding: 0 9px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  font-size: 12px;
  letter-spacing: 0;
}

html[data-ops-preview="linear"] #productView .matrix-product-filters input:focus,
html[data-ops-preview="linear"] #productView .matrix-product-filters select:focus {
  border-color: #2563eb;
  outline: 2px solid rgba(37, 99, 235, .14);
  outline-offset: 0;
}

html[data-ops-preview="linear"] #productView #newProductMatrixReset {
  height: 32px;
  padding: 0 11px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

html[data-ops-preview="linear"] #productView #newProductMatrixResult {
  align-self: center;
  min-width: 92px;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 850;
  text-align: right;
}

html[data-ops-preview="linear"] #productView .matrix-product-empty {
  padding: 10px 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #64748b;
  font-size: 12px;
  text-align: center;
}

html[data-ops-preview="linear"] #productView tr.ops-product-filter-hidden {
  display: none !important;
}

@media (max-width: 1100px) {
  html[data-ops-preview="linear"] #productView .matrix-product-filters {
    grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(140px, .65fr));
  }

  html[data-ops-preview="linear"] #productView .matrix-product-category {
    grid-column: 1 / 2;
  }

  html[data-ops-preview="linear"] #productView #newProductMatrixResult {
    text-align: left;
  }
}

@media (max-width: 700px) {
  html[data-ops-preview="linear"] #productView .matrix-product-filters {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  html[data-ops-preview="linear"] #productView .matrix-product-search,
  html[data-ops-preview="linear"] #productView .matrix-product-category {
    grid-column: 1 / -1;
  }
}

html[data-ops-preview="linear"] #productView .matrix-controls {
  gap: 6px;
}

html[data-ops-preview="linear"] #productView .matrix-control-group {
  gap: 5px;
}

html[data-ops-preview="linear"] #productView .matrix-metric-btn,
html[data-ops-preview="linear"] #productView .matrix-filter-btn,
html[data-ops-preview="linear"] #productView .matrix-type-btn {
  min-height: 26px;
  padding: 0 8px;
  font-size: 11px;
}

html[data-ops-preview="linear"] #productView .matrix-wrap {
  max-height: 520px;
}

html[data-ops-preview="linear"] #productView .new-daily-matrix th,
html[data-ops-preview="linear"] #productView .new-daily-matrix td {
  padding: 4px 6px;
  font-size: 11px;
}

html[data-ops-preview="linear"] #productView .new-daily-matrix .matrix-col-price {
  overflow: hidden;
  overflow-wrap: anywhere;
  white-space: normal;
  line-height: 1.3;
}

html[data-ops-preview="linear"] #productView .matrix-supply-cost {
  display: grid;
  gap: 3px;
  min-width: 104px;
}

html[data-ops-preview="linear"] #productView .matrix-supply-cost > span {
  display: flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}

html[data-ops-preview="linear"] #productView .matrix-supply-cost small {
  color: #64748b;
  font-size: 9px;
}

html[data-ops-preview="linear"] #productView .matrix-supply-cost b {
  color: #334155;
  font-size: 10px;
}

html[data-ops-preview="linear"] #productView .new-daily-matrix .matrix-col-date {
  white-space: nowrap;
}

html[data-ops-preview="linear"] #productView .new-daily-matrix thead th {
  position: sticky;
  top: 0;
  z-index: 8;
  background: #f8fafc;
}

html[data-ops-preview="linear"] #productView .new-daily-matrix thead th.matrix-col-product,
html[data-ops-preview="linear"] #productView .new-daily-matrix thead th.matrix-col-thumb,
html[data-ops-preview="linear"] #productView .new-daily-matrix thead th.matrix-col-metric {
  z-index: 10;
}

html[data-ops-preview="linear"] #productView .matrix-thumb {
  width: 44px;
  height: 58px;
}

html[data-ops-preview="linear"] #productView .matrix-day-cell {
  min-width: 74px;
}

html[data-ops-preview="linear"] #productView .matrix-day-box {
  min-height: 34px;
  gap: 2px;
}

html[data-ops-preview="linear"] #productView .matrix-day-main {
  font-size: 11px;
}

html[data-ops-preview="linear"] #productView .matrix-price-stack {
  display: grid;
  gap: 2px;
  line-height: 1.1;
  white-space: nowrap;
}

html[data-ops-preview="linear"] #productView .matrix-price-current {
  color: #dc2626;
  font-weight: 900;
}

html[data-ops-preview="linear"] #productView .matrix-price-original {
  color: #94a3b8;
  font-size: 9px;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

html[data-ops-preview="linear"] #productView .matrix-price-discount {
  color: #047857;
  font-size: 9px;
  font-style: normal;
}

html[data-ops-preview="linear"] #productView .matrix-day-trend {
  min-width: 24px;
  padding: 1px 5px;
  font-size: 9px;
}

html[data-ops-preview="linear"] #productView .matrix-day-cell.trend-up {
  background: #f0fdf4;
}

html[data-ops-preview="linear"] #productView .matrix-day-cell.trend-down {
  background: #fff5f5;
}

html[data-ops-preview="linear"] #productView .matrix-day-cell.trend-flat,
html[data-ops-preview="linear"] #productView .matrix-day-cell.trend-na {
  background: #f8fafc;
}

html[data-ops-preview="linear"] #productView tr.ops-matrix-focus-row .matrix-col-product {
  box-shadow: inset 3px 0 0 rgba(220, 38, 38, .58), inset -1px 0 0 #cbd5e1, 2px 0 0 #cbd5e1;
}

html[data-ops-preview="linear"] #productView .new-check-board,
html[data-ops-preview="linear"] #productView .graduate-board {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.ops-lane-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}

.ops-lane-summary button {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border: 1px solid #dbe3f0;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.ops-lane-summary button b {
  color: var(--ink);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.ops-recolor-summary {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
  margin: 8px 0 10px;
}

.ops-recolor-summary-card {
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 8px;
  align-content: start;
  padding: 9px 10px;
  border: 1px solid #dbe3f0;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.ops-recolor-summary-card span,
.ops-recolor-summary-card small,
.ops-recolor-summary-card em {
  min-width: 0;
}

.ops-recolor-summary-card span {
  font-size: 12px;
  font-weight: 850;
}

.ops-recolor-summary-card strong {
  font-size: 22px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ops-recolor-summary-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.ops-recolor-summary-card em {
  grid-column: 1 / -1;
  overflow: hidden;
  color: #64748b;
  font-size: 10.5px;
  font-style: normal;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-recolor-summary-card.is-empty {
  border-style: dashed;
  background: #f8fafc;
  color: #475569;
}

.ops-recolor-summary-card.is-empty strong {
  color: #94a3b8;
}

.ops-recolor-summary-card.is-active {
  border-color: #2563eb;
  box-shadow: inset 3px 0 0 #2563eb, 0 8px 18px rgba(37, 99, 235, .10);
}

html[data-ops-preview="linear"] #productView .new-lane,
html[data-ops-preview="linear"] #productView .graduate-lane,
html[data-ops-preview="linear"] #productView .recolor-tier {
  padding: 9px;
  margin-bottom: 8px;
  border-color: #edf2f7;
}

html[data-ops-preview="linear"] #productView .new-lane,
html[data-ops-preview="linear"] #productView .graduate-lane {
  display: block;
  background: #fbfdff;
  box-shadow: inset 3px 0 0 #cbd5e1;
}

html[data-ops-preview="linear"] #productView .new-lane > p,
html[data-ops-preview="linear"] #productView .graduate-lane > p {
  min-height: 0;
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
}

html[data-ops-preview="linear"] #productView .new-lane-head,
html[data-ops-preview="linear"] #productView .graduate-lane-head,
html[data-ops-preview="linear"] #productView .recolor-tier-head {
  margin-bottom: 6px;
}

html[data-ops-preview="linear"] #productView .new-lane-head,
html[data-ops-preview="linear"] #productView .graduate-lane-head {
  padding-bottom: 6px;
  border-bottom: 1px solid #e8edf5;
}

html[data-ops-preview="linear"] #productView .new-lane-head strong,
html[data-ops-preview="linear"] #productView .graduate-lane-head strong,
html[data-ops-preview="linear"] #productView .recolor-tier-head h3 {
  font-size: 13px;
}

html[data-ops-preview="linear"] #productView .new-lane-body,
html[data-ops-preview="linear"] #productView .graduate-lane-body {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 7px;
  margin-top: 7px;
}

html[data-ops-preview="linear"] #productView .new-card,
html[data-ops-preview="linear"] #productView .graduate-card {
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 7px;
  min-height: 118px;
  padding: 7px;
  border-color: #edf2f7;
  box-shadow: none;
}

html[data-ops-preview="linear"] #productView .new-card {
  grid-template-columns: 52px minmax(0, 1fr);
  grid-template-rows: 64px minmax(138px, auto);
  min-height: 202px;
}

html[data-ops-preview="linear"] #productView .new-card .new-img {
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
}

html[data-ops-preview="linear"] #productView .new-card .new-main {
  grid-column: 2;
  grid-row: 1 / span 2;
}

html[data-ops-preview="linear"] #productView .new-price-box {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  gap: 4px;
  align-self: stretch;
  width: 52px;
  min-height: 138px;
  box-sizing: border-box;
  padding: 4px 3px;
  border: 1px solid #dbe7f4;
  border-radius: 5px;
  background: #f8fbff;
  color: #475569;
  font-size: 9px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

html[data-ops-preview="linear"] #productView .new-price-box span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  min-width: 0;
  white-space: nowrap;
}

html[data-ops-preview="linear"] #productView .new-price-line {
  display: grid;
  align-items: start;
  justify-content: flex-start;
  gap: 3px;
  min-width: 0;
}

html[data-ops-preview="linear"] #productView .new-price-line > span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-width: 0;
}

html[data-ops-preview="linear"] #productView .new-price-cost-line {
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
}

html[data-ops-preview="linear"] #productView .new-price-front-line {
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  padding-top: 4px;
  border-top: 1px solid #e2e8f0;
}

html[data-ops-preview="linear"] #productView .new-price-line small {
  flex: none;
  width: auto;
}

html[data-ops-preview="linear"] #productView .new-price-box small {
  flex: none;
  color: #64748b;
  font-size: 9px;
  line-height: 1.1;
}

html[data-ops-preview="linear"] #productView .new-price-current strong {
  flex: 0 0 auto;
  color: #dc2626;
  font-size: 10px;
  font-weight: 900;
}

html[data-ops-preview="linear"] #productView .new-price-original {
  color: #94a3b8;
}

html[data-ops-preview="linear"] #productView .new-price-original s {
  flex: 0 0 auto;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

html[data-ops-preview="linear"] #productView .new-price-discount {
  align-self: start;
  margin-left: 0;
  color: #047857;
  white-space: nowrap;
}

html[data-ops-preview="linear"] #productView .new-price-discount strong {
  color: #047857;
  font-size: 9px;
  font-weight: 800;
}

html[data-ops-preview="linear"] #productView .new-price-empty {
  font-size: 8px;
  line-height: 1.1;
  white-space: normal;
}

html[data-ops-preview="linear"] #productView .new-price-cost-line strong {
  color: #334155;
  font-size: 9px;
  font-weight: 800;
}

html[data-ops-preview="linear"] #productView .new-price-box.missing {
  display: block;
  color: #94a3b8;
  font-size: 8px;
  line-height: 1.25;
}

html[data-ops-preview="linear"] #productView .new-img,
html[data-ops-preview="linear"] #productView .graduate-thumb {
  width: 52px;
  height: 64px;
}

html[data-ops-preview="linear"] #productView .new-head,
html[data-ops-preview="linear"] #productView .graduate-head {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
  min-height: 21px;
}

html[data-ops-preview="linear"] #productView .new-head strong,
html[data-ops-preview="linear"] #productView .graduate-head strong {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-ops-preview="linear"] #productView .new-head .action-label,
html[data-ops-preview="linear"] #productView .graduate-head .action-label,
html[data-ops-preview="linear"] #productView .new-head .ops-product-state,
html[data-ops-preview="linear"] #productView .graduate-head .ops-product-state {
  flex: 0 0 auto;
}

html[data-ops-preview="linear"] #productView .new-head .action-label,
html[data-ops-preview="linear"] #productView .graduate-head .action-label {
  min-width: 38px;
  height: 20px;
  padding: 0 7px;
  font-size: 10px;
  line-height: 18px;
}

.ops-product-state {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 0 7px;
  border: 1px solid #dbe3f0;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.ops-product-state.fix { color: #b91c1c; border-color: #fecaca; background: #fff5f5; }
.ops-product-state.scale { color: #047857; border-color: #bbf7d0; background: #f0fdf4; }
.ops-product-state.ready { color: #1d4ed8; border-color: #bfdbfe; background: #eff6ff; }
.ops-product-state.watch { color: #475569; border-color: #e2e8f0; background: #f8fafc; }
.ops-product-state.recolor-explosive { color: #9a3412; border-color: #fdba74; background: #fff3ed; }
.ops-product-state.recolor-hot { color: #b45309; border-color: #fed7aa; background: #fff7ed; }
.ops-product-state.recolor-test { color: #1d4ed8; border-color: #bfdbfe; background: #eff6ff; }

html[data-ops-preview="linear"] #productView .new-facts,
html[data-ops-preview="linear"] #productView .graduate-facts {
  gap: 4px;
  margin: 5px 0;
}

html[data-ops-preview="linear"] #productView .graduate-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

html[data-ops-preview="linear"] #productView .new-facts div,
html[data-ops-preview="linear"] #productView .graduate-facts div {
  padding: 4px;
  border-radius: 5px;
}

html[data-ops-preview="linear"] #productView .new-facts b,
html[data-ops-preview="linear"] #productView .graduate-facts b {
  font-size: 11px;
}

html[data-ops-preview="linear"] #productView .new-facts span,
html[data-ops-preview="linear"] #productView .graduate-facts span,
html[data-ops-preview="linear"] #productView .new-rates label,
html[data-ops-preview="linear"] #productView .new-main small,
html[data-ops-preview="linear"] #productView .graduate-card p {
  font-size: 10.5px;
}

html[data-ops-preview="linear"] #productView .new-fact-natural b { color: #047857; }
html[data-ops-preview="linear"] #productView .new-order-adjustment {
  display: grid;
  grid-template-columns: minmax(72px, .6fr) auto;
  gap: 5px;
  align-items: center;
  margin-top: 7px;
  padding-top: 6px;
  border-top: 1px dashed var(--line);
}
html[data-ops-preview="linear"] #productView .new-order-adjustment label {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  color: var(--muted);
  font-size: 10px;
}
html[data-ops-preview="linear"] #productView .new-order-adjustment input {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 5px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
}
html[data-ops-preview="linear"] #productView .new-order-adjustment > input { grid-column: 1 / -1; }
html[data-ops-preview="linear"] #productView .new-order-adjustment button {
  border: 1px solid #bfdbfe;
  border-radius: 4px;
  padding: 3px 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
html[data-ops-preview="linear"] #productView .new-order-adjustment button:disabled { opacity: .55; cursor: wait; }
html[data-ops-preview="linear"] #productView .new-order-import {
  margin: 0 0 10px;
  padding: 8px 10px;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  background: #f8fbff;
}
html[data-ops-preview="linear"] #productView .new-order-import-head,
html[data-ops-preview="linear"] #productView .new-order-import-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
html[data-ops-preview="linear"] #productView .new-order-import-head strong { color: #1d4ed8; font-size: 12px; }
html[data-ops-preview="linear"] #productView .new-order-import-head span,
html[data-ops-preview="linear"] #productView .new-order-import-actions small { color: var(--muted); font-size: 10px; }
html[data-ops-preview="linear"] #productView .new-order-import textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 6px 0;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 6px;
  background: var(--panel);
  color: var(--text);
  font: 11px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace;
}
html[data-ops-preview="linear"] #productView .new-order-import button {
  border: 1px solid #2563eb;
  border-radius: 4px;
  padding: 5px 10px;
  background: #2563eb;
  color: white;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
html[data-ops-preview="linear"] #productView .new-order-import button:disabled { opacity: .55; cursor: wait; }

html[data-ops-preview="linear"] #productView .empty-lane,
html[data-ops-preview="linear"] #productView .pending-empty {
  grid-column: 1 / -1;
  min-height: 0;
  margin: 0;
  padding: 6px 8px;
  font-size: 11px;
}

html[data-ops-preview="linear"] #productView .recolor-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

html[data-ops-preview="linear"] #productView .recolor-card {
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 7px;
  padding: 8px;
  min-height: 136px;
  border-color: #edf2f7;
  box-shadow: none;
}

html[data-ops-preview="linear"] #productView .recolor-tier {
  background: #fff;
}

html[data-ops-preview="linear"] #productView .recolor-tier-head p {
  max-width: 720px;
  display: inline-block;
  margin-top: 3px;
  padding: 4px 7px;
  border: 1px solid #edf2f7;
  border-radius: 999px;
  background: #fbfdff;
  color: #94a3b8;
  font-size: 10.5px;
  line-height: 1.25;
}

html[data-ops-preview="linear"] #productView .recolor-tier-head p::before {
  content: "规则说明";
  margin-right: 6px;
  color: #64748b;
  font-weight: 750;
}

html[data-ops-preview="linear"] #productView .recolor-tier-stats strong {
  font-size: 14px;
}

html[data-ops-preview="linear"] #productView .recolor-tier-stats span {
  font-size: 10px;
}

html[data-ops-preview="linear"] #productView .recolor-card.level-8,
html[data-ops-preview="linear"] #productView .recolor-tier.level-8 {
  border-color: #fdba74;
  box-shadow: inset 3px 0 0 #c2410c;
}

html[data-ops-preview="linear"] #productView .recolor-card.level-5,
html[data-ops-preview="linear"] #productView .recolor-tier.level-5 {
  border-color: #fed7aa;
  box-shadow: inset 3px 0 0 var(--amber);
}

html[data-ops-preview="linear"] #productView .recolor-card.level-3,
html[data-ops-preview="linear"] #productView .recolor-tier.level-3 {
  border-color: #bfdbfe;
  box-shadow: inset 3px 0 0 var(--blue);
}

html[data-ops-preview="linear"] #productView .recolor-card .thumb {
  width: 42px;
  height: 56px;
}

html[data-ops-preview="linear"] #productView .recolor-main h3 {
  margin: 2px 0;
  font-size: 12px;
}

html[data-ops-preview="linear"] #productView .recolor-main p,
html[data-ops-preview="linear"] #productView .recolor-main small {
  font-size: 10.5px;
}

html[data-ops-preview="linear"] #productView .recolor-decision {
  padding: 6px;
  border-radius: 7px;
}

html[data-ops-preview="linear"] #productView .recolor-decision strong {
  font-size: 12px;
}

html[data-ops-preview="linear"] #productView .recolor-need-grid {
  gap: 4px;
  margin-top: 6px;
}

html[data-ops-preview="linear"] #productView .recolor-need-grid div {
  padding: 5px;
  border-radius: 6px;
}

html[data-ops-preview="linear"] #productView .recolor-need-grid b,
html[data-ops-preview="linear"] #productView .recolor-need-grid .gap b {
  font-size: 18px;
}

html[data-ops-preview="linear"] #productView .ops-product-summary-hidden {
  display: none !important;
}

html[data-ops-preview="linear"] #productView .recolor-progress-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: min(640px, 100%);
}

html[data-ops-preview="linear"] #productView .recolor-progress-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

html[data-ops-preview="linear"] #productView .recolor-progress-count,
html[data-ops-preview="linear"] #productView .recolor-status-chip,
html[data-ops-preview="linear"] #productView .recolor-status-select {
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
}

html[data-ops-preview="linear"] #productView .recolor-progress-count {
  padding: 4px 7px;
}

html[data-ops-preview="linear"] #productView .recolor-progress-actions,
html[data-ops-preview="linear"] #productView .recolor-progress-filters {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

html[data-ops-preview="linear"] #productView .recolor-progress-actions button,
html[data-ops-preview="linear"] #productView .recolor-progress-filters button,
html[data-ops-preview="linear"] #productView .recolor-progress-toggle {
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid #dbe3f0;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 11px;
  font-weight: 820;
  cursor: pointer;
}

html[data-ops-preview="linear"] #productView .recolor-progress-actions button:hover,
html[data-ops-preview="linear"] #productView .recolor-progress-filters button:hover,
html[data-ops-preview="linear"] #productView .recolor-progress-toggle:hover {
  border-color: #bfdbfe;
  background: #f8fbff;
  color: #1d4ed8;
}

html[data-ops-preview="linear"] #productView .recolor-progress-filters {
  justify-content: flex-start;
  margin: 0 0 8px;
  padding: 5px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

html[data-ops-preview="linear"] #productView .recolor-progress-filters button.is-active {
  border-color: #bfdbfe;
  background: #fff;
  color: #1d4ed8;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
}

html[data-ops-preview="linear"] #productView .recolor-progress {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  margin-top: 2px;
  padding-top: 7px;
  border-top: 1px dashed #e2e8f0;
}

html[data-ops-preview="linear"] #productView .recolor-progress-compact,
html[data-ops-preview="linear"] #productView .recolor-progress-editor {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: end;
  gap: 5px;
}

html[data-ops-preview="linear"] #productView .recolor-progress-editor {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  padding: 7px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #fbfdff;
}

html[data-ops-preview="linear"] #productView .recolor-progress label {
  display: grid;
  gap: 3px;
  min-width: 0;
}

html[data-ops-preview="linear"] #productView .recolor-progress label.wide {
  grid-column: 2 / 4;
}

html[data-ops-preview="linear"] #productView .recolor-progress-compact label:nth-child(3) {
  grid-column: 1;
}

html[data-ops-preview="linear"] #productView .recolor-progress-toggle {
  grid-column: 3;
  grid-row: 1;
}

html[data-ops-preview="linear"] #productView .recolor-progress-editor label.wide {
  grid-column: span 2;
}

html[data-ops-preview="linear"] #productView .recolor-progress label span {
  overflow: hidden;
  color: #64748b;
  font-size: 10px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-ops-preview="linear"] #productView .recolor-progress input,
html[data-ops-preview="linear"] #productView .recolor-progress select,
html[data-ops-preview="linear"] #productView .recolor-progress textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #dbe3f0;
  border-radius: 7px;
  background: #fff;
  color: #0f172a;
  font-size: 11px;
  outline: none;
}

html[data-ops-preview="linear"] #productView .recolor-progress input,
html[data-ops-preview="linear"] #productView .recolor-progress select {
  height: 26px;
  padding: 0 7px;
}

html[data-ops-preview="linear"] #productView .recolor-progress textarea {
  resize: vertical;
  padding: 6px 7px;
}

html[data-ops-preview="linear"] #productView .recolor-progress input:focus,
html[data-ops-preview="linear"] #productView .recolor-progress select:focus,
html[data-ops-preview="linear"] #productView .recolor-progress textarea:focus {
  border-color: #bfdbfe;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .10);
}

html[data-ops-preview="linear"] #productView .recolor-status-select {
  padding-right: 22px;
}

html[data-ops-preview="linear"] #productView .recolor-status-chip {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 4px 7px;
}

html[data-ops-preview="linear"] #productView .recolor-progress-foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #94a3b8;
  font-size: 10.5px;
}

html[data-ops-preview="linear"] #productView .status-pending { border-color: #e2e8f0; background: #f8fafc; color: #475569; }
html[data-ops-preview="linear"] #productView .status-confirmed { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }
html[data-ops-preview="linear"] #productView .status-ordered { border-color: #ddd6fe; background: #f5f3ff; color: #6d28d9; }
html[data-ops-preview="linear"] #productView .status-sampling { border-color: #fed7aa; background: #fff7ed; color: #b45309; }
html[data-ops-preview="linear"] #productView .status-arrived { border-color: #a5f3fc; background: #ecfeff; color: #0e7490; }
html[data-ops-preview="linear"] #productView .status-launched { border-color: #bbf7d0; background: #f0fdf4; color: #047857; }
html[data-ops-preview="linear"] #productView .status-watch { border-color: #bae6fd; background: #f0f9ff; color: #0369a1; }
html[data-ops-preview="linear"] #productView .status-paused { border-color: #fecaca; background: #fff5f5; color: #b91c1c; }

html[data-ops-preview="linear"] #productView .recolor-progress-empty {
  margin: 0 0 8px;
  padding: 8px 10px;
  border: 1px dashed #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 780;
}

html[data-ops-preview="linear"] #productView .recolor-progress-empty button {
  margin-left: 6px;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid #dbe3f0;
  border-radius: 999px;
  background: #fff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 820;
  cursor: pointer;
}

html[data-ops-preview="linear"] #productView .recolor-progress-empty button:hover {
  border-color: #bfdbfe;
  background: #fff;
}

html[data-ops-preview="linear"] #productView .recolor-sync-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px;
  padding: 8px 10px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  font-weight: 820;
}

html[data-ops-preview="linear"] #productView .recolor-sync-notice[hidden] {
  display: none !important;
}

html[data-ops-preview="linear"] #productView .recolor-sync-notice.error {
  border-color: #fecaca;
  background: #fff5f5;
  color: #b91c1c;
}

html[data-ops-preview="linear"] #productView .recolor-sync-notice button {
  flex: 0 0 auto;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: #fff;
  color: inherit;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

html[data-ops-preview="linear"] #productView .recolor-grid {
  grid-template-columns: 1fr;
}

html[data-ops-preview="linear"] #productView .recolor-spu-card {
  position: relative;
  grid-template-columns: 30px 44px minmax(220px, 1.35fr) minmax(120px, .45fr) minmax(170px, .6fr);
  align-items: center;
  gap: 8px;
  min-height: 0;
  padding: 7px 10px;
  overflow: visible;
}

html[data-ops-preview="linear"] #productView .recolor-spu-card .thumb {
  width: 44px;
  height: 58px;
}

html[data-ops-preview="linear"] #productView .recolor-spu-check {
  display: inline-grid;
  place-items: center;
  width: 24px;
}

html[data-ops-preview="linear"] #productView .recolor-spu-check span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

html[data-ops-preview="linear"] #productView .recolor-spu-check input,
html[data-ops-preview="linear"] #productView .recolor-check-cell input {
  width: 15px;
  height: 15px;
  accent-color: #2563eb;
  cursor: pointer;
}

html[data-ops-preview="linear"] #productView .recolor-spu-toggle {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 1;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid #dbe3f0;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 11px;
  font-weight: 820;
  cursor: pointer;
}

html[data-ops-preview="linear"] #productView .recolor-spu-toggle:hover {
  border-color: #bfdbfe;
  color: #1d4ed8;
}

html[data-ops-preview="linear"] #productView .recolor-spu-main {
  min-width: 0;
}

html[data-ops-preview="linear"] #productView .recolor-spu-main h3 {
  margin: 2px 0 1px;
  color: #0f172a;
  font-size: 12.5px;
  line-height: 1.2;
}

html[data-ops-preview="linear"] #productView .recolor-spu-main p {
  margin: 0;
  color: #64748b;
  font-size: 11px;
}

html[data-ops-preview="linear"] #productView .recolor-current-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}

html[data-ops-preview="linear"] #productView .recolor-current-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 10.5px;
  font-weight: 820;
}

html[data-ops-preview="linear"] #productView .recolor-spu-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 4px;
}

html[data-ops-preview="linear"] #productView .recolor-spu-tags span {
  padding: 2px 5px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  font-size: 10.5px;
  font-weight: 760;
}

html[data-ops-preview="linear"] #productView .recolor-spu-status {
  display: grid;
  gap: 4px;
  padding-right: 42px;
}

html[data-ops-preview="linear"] #productView .recolor-spu-status strong {
  color: #0f172a;
  font-size: 18px;
  line-height: 1;
}

html[data-ops-preview="linear"] #productView .recolor-spu-status small {
  color: #94a3b8;
  font-size: 10.5px;
}

html[data-ops-preview="linear"] #productView .recolor-save-status {
  width: max-content;
  max-width: 100%;
  padding: 2px 6px;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
}

html[data-ops-preview="linear"] #productView .recolor-save-status.saving {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

html[data-ops-preview="linear"] #productView .recolor-save-status.saved {
  border-color: #86efac;
  background: #ecfdf5;
  color: #047857;
}

html[data-ops-preview="linear"] #productView .recolor-save-status.failed {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

html[data-ops-preview="linear"] #productView .recolor-progress-line {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f7;
}

html[data-ops-preview="linear"] #productView .recolor-progress-line i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #60a5fa, #22c55e);
}

html[data-ops-preview="linear"] #productView .recolor-spu-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

html[data-ops-preview="linear"] #productView .recolor-spu-metrics div {
  flex: 1 1 120px;
  padding: 5px 6px;
  border: 1px solid #edf2f7;
  border-radius: 8px;
  background: #fbfdff;
}

html[data-ops-preview="linear"] #productView .recolor-spu-metrics span {
  display: block;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 760;
}

html[data-ops-preview="linear"] #productView .recolor-spu-metrics b {
  display: block;
  margin-top: 1px;
  color: #0f172a;
  font-size: 13px;
}

html[data-ops-preview="linear"] #productView .recolor-spu-extra {
  grid-column: 1 / -1;
  display: none;
}

html[data-ops-preview="linear"] #productView .recolor-color-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
}

html[data-ops-preview="linear"] #productView .recolor-color-toolbar {
  display: grid;
  grid-template-columns: minmax(190px, 1.1fr) minmax(108px, .46fr) max-content max-content 1fr;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #f8fbff;
  box-shadow: inset 3px 0 0 #60a5fa;
}

html[data-ops-preview="linear"] #productView .recolor-color-toolbar input,
html[data-ops-preview="linear"] #productView .recolor-color-toolbar select,
html[data-ops-preview="linear"] #productView .recolor-color-row input,
html[data-ops-preview="linear"] #productView .recolor-color-row select,
html[data-ops-preview="linear"] #productView .recolor-progress-search input {
  width: 100%;
  min-width: 0;
  height: 28px;
  border: 1px solid #dbe3f0;
  border-radius: 7px;
  background: #fff;
  color: #0f172a;
  font-size: 11px;
  outline: none;
}

html[data-ops-preview="linear"] #productView .recolor-color-toolbar input,
html[data-ops-preview="linear"] #productView .recolor-color-toolbar select,
html[data-ops-preview="linear"] #productView .recolor-color-row input,
html[data-ops-preview="linear"] #productView .recolor-color-row select,
html[data-ops-preview="linear"] #productView .recolor-progress-search input {
  padding: 0 7px;
}

html[data-ops-preview="linear"] #productView .recolor-color-toolbar button,
html[data-ops-preview="linear"] #productView .recolor-color-meta button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #dbe3f0;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 11px;
  font-weight: 820;
  cursor: pointer;
}

html[data-ops-preview="linear"] #productView .recolor-color-toolbar [data-recolor-add-color] {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  box-shadow: 0 1px 2px rgba(37, 99, 235, .12);
}

html[data-ops-preview="linear"] #productView .recolor-color-toolbar button:hover,
html[data-ops-preview="linear"] #productView .recolor-color-meta button:hover {
  border-color: #bfdbfe;
  color: #1d4ed8;
}

html[data-ops-preview="linear"] #productView .recolor-over-tip {
  color: #b45309;
  font-size: 11px;
  font-weight: 760;
}

html[data-ops-preview="linear"] #productView .recolor-color-rows {
  display: grid;
  gap: 6px;
}

html[data-ops-preview="linear"] #productView .recolor-color-row {
  display: grid;
  grid-template-columns: 30px minmax(120px, 1fr) 124px minmax(160px, 1fr) auto;
  align-items: end;
  gap: 6px;
  padding: 6px 7px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #fbfdff;
}

html[data-ops-preview="linear"] #productView .recolor-color-row label:nth-child(n+4) {
  display: none;
}

html[data-ops-preview="linear"] #productView .recolor-check-cell {
  align-self: center;
  display: inline-grid;
  place-items: center;
}

html[data-ops-preview="linear"] #productView .recolor-check-cell span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

html[data-ops-preview="linear"] #productView .recolor-color-row label {
  display: grid;
  gap: 3px;
  min-width: 0;
}

html[data-ops-preview="linear"] #productView .recolor-color-row label span,
html[data-ops-preview="linear"] #productView .recolor-progress-search span {
  color: #64748b;
  font-size: 10px;
  font-weight: 780;
  white-space: nowrap;
}

html[data-ops-preview="linear"] #productView .recolor-color-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-wrap: wrap;
  justify-content: flex-end;
}

html[data-ops-preview="linear"] #productView .recolor-color-meta small {
  color: #94a3b8;
  font-size: 10px;
}

html[data-ops-preview="linear"] #productView .recolor-color-empty {
  margin: 0;
  padding: 8px;
  border: 1px dashed #dbe3f0;
  border-radius: 8px;
  color: #64748b;
  background: #fbfdff;
  font-size: 11px;
}

html[data-ops-preview="linear"] #productView .recolor-progress-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  align-items: center;
  gap: 6px;
  position: sticky;
  top: 0;
  z-index: 4;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

html[data-ops-preview="linear"] #productView .recolor-beginner-guide {
  grid-column: 1 / -1;
  padding: 5px 7px;
  border: 1px solid #fde68a;
  border-radius: 8px;
  background: #fffbeb;
  color: #92400e;
  font-size: 11px;
  font-weight: 780;
}

html[data-ops-preview="linear"] #productView .recolor-beginner-guide summary {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

html[data-ops-preview="linear"] #productView .recolor-beginner-guide summary::-webkit-details-marker {
  display: none;
}

html[data-ops-preview="linear"] #productView .recolor-beginner-guide summary::after {
  content: "展开";
  margin-left: auto;
  color: #b45309;
  font-size: 10px;
  font-weight: 860;
}

html[data-ops-preview="linear"] #productView .recolor-beginner-guide[open] summary::after {
  content: "收起";
}

html[data-ops-preview="linear"] #productView .recolor-beginner-guide strong {
  color: #78350f;
  font-size: 12px;
}

html[data-ops-preview="linear"] #productView .recolor-beginner-guide div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

html[data-ops-preview="linear"] #productView .recolor-beginner-guide:not([open]) div {
  display: none;
}

html[data-ops-preview="linear"] #productView .recolor-beginner-guide summary span {
  min-width: 0;
  overflow: hidden;
  color: #92400e;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-ops-preview="linear"] #productView .recolor-beginner-guide div span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid #fcd34d;
  border-radius: 999px;
  background: #fff;
  color: #92400e;
}

html[data-ops-preview="linear"] #productView .recolor-progress-filters .recolor-pool-tabs {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  padding-bottom: 5px;
  overflow-x: auto;
  border-bottom: 1px solid #e2e8f0;
  scrollbar-width: thin;
}

html[data-ops-preview="linear"] #productView .recolor-progress-filters .recolor-pool-tabs button {
  background: #fff;
  color: #334155;
}

html[data-ops-preview="linear"] #productView .recolor-progress-filters .recolor-pool-tabs button.is-active {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #b45309;
}

html[data-ops-preview="linear"] #productView .recolor-progress-filters .recolor-stage-tabs {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: thin;
}

html[data-ops-preview="linear"] #productView .recolor-progress-filters .recolor-pool-tabs button,
html[data-ops-preview="linear"] #productView .recolor-stage-tabs button {
  flex: 0 0 auto;
}

html[data-ops-preview="linear"] #productView .recolor-progress-search {
  display: grid;
  gap: 3px;
  grid-column: 2;
  grid-row: 2;
}

html[data-ops-preview="linear"] #productView .recolor-stage-tabs {
  grid-column: 1;
  grid-row: 2;
}

html[data-ops-preview="linear"] #productView .recolor-batch-bar {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 6px;
  border: 1px solid #dbe3f0;
  border-radius: 9px;
  background: #fff;
  overflow-x: auto;
  scrollbar-width: thin;
}

html[data-ops-preview="linear"] #productView .recolor-batch-bar:not(.has-selection) {
  border-style: dashed;
  background: #fbfdff;
}

html[data-ops-preview="linear"] #productView .recolor-batch-bar:not(.has-selection) #recolorBatchStage,
html[data-ops-preview="linear"] #productView .recolor-batch-bar:not(.has-selection) #recolorBatchApply,
html[data-ops-preview="linear"] #productView .recolor-batch-bar:not(.has-selection) #recolorBatchClear,
html[data-ops-preview="linear"] #productView .recolor-batch-bar:not(.has-selection) small {
  display: none;
}

html[data-ops-preview="linear"] #productView .recolor-batch-bar span {
  flex: 0 0 auto;
  color: #475569;
  font-size: 11px;
  font-weight: 820;
}

html[data-ops-preview="linear"] #productView .recolor-batch-bar small {
  flex: 1 1 180px;
  color: #64748b;
  font-size: 10.5px;
  font-weight: 760;
}

html[data-ops-preview="linear"] #productView .recolor-batch-bar select {
  height: 28px;
  min-width: 132px;
  border: 1px solid #dbe3f0;
  border-radius: 7px;
  background: #fff;
  color: #0f172a;
  font-size: 11px;
  font-weight: 760;
}

html[data-ops-preview="linear"] #productView .recolor-batch-bar button {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #dbe3f0;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 11px;
  font-weight: 820;
  cursor: pointer;
}

html[data-ops-preview="linear"] #productView .recolor-batch-bar button:hover {
  border-color: #bfdbfe;
  color: #1d4ed8;
}

html[data-ops-preview="linear"] #productView .recolor-batch-bar button:disabled,
html[data-ops-preview="linear"] #productView .recolor-batch-bar select:disabled {
  cursor: not-allowed;
  opacity: .48;
  box-shadow: none;
}

html[data-ops-preview="linear"] #productView .recolor-progress-count.status-over {
  background: #fff7ed;
  color: #c2410c;
}

html[data-ops-preview="linear"] #productView .status-over {
  border-color: #fdba74;
  background: #fff7ed;
  color: #c2410c;
}

html[data-ops-preview="linear"] #productView .recolor-table-header {
  display: grid;
  grid-template-columns: minmax(36px, 44px) minmax(180px, 1.3fr) minmax(96px, .48fr) minmax(140px, .75fr) minmax(124px, .62fr) minmax(120px, .58fr) minmax(48px, 52px);
  align-items: center;
  gap: 8px;
  margin: 0 0 7px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 860;
}

html[data-ops-preview="linear"] #productView .recolor-tier .recolor-tier-head {
  margin-bottom: 6px;
}

html[data-ops-preview="linear"] #productView .recolor-tier .recolor-tier-head h3 {
  font-size: 13px;
}

html[data-ops-preview="linear"] #productView .recolor-spu-card {
  display: grid;
  grid-template-columns: minmax(36px, 44px) minmax(180px, 1.3fr) minmax(96px, .48fr) minmax(140px, .75fr) minmax(124px, .62fr) minmax(120px, .58fr) minmax(48px, 52px);
  align-items: center;
  gap: 8px;
  min-height: 0;
  padding: 8px 10px;
  border-color: #e2e8f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

html[data-ops-preview="linear"] #productView .recolor-table-cell {
  min-width: 0;
}

html[data-ops-preview="linear"] #productView .recolor-cell-select {
  display: flex;
  justify-content: center;
}

html[data-ops-preview="linear"] #productView .recolor-cell-product {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

html[data-ops-preview="linear"] #productView .recolor-cell-plan {
  display: grid;
  gap: 3px;
}

html[data-ops-preview="linear"] #productView .recolor-cell-plan strong {
  color: #0f172a;
  font-size: 16px;
  line-height: 1;
}

html[data-ops-preview="linear"] #productView .recolor-cell-plan small,
html[data-ops-preview="linear"] #productView .recolor-cell-status small,
html[data-ops-preview="linear"] #productView .recolor-cell-reason,
html[data-ops-preview="linear"] #productView .recolor-cell-next {
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
}

html[data-ops-preview="linear"] #productView .recolor-plan-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  padding: 3px 6px;
  border: 1px solid #dbe3f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 10.5px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

html[data-ops-preview="linear"] #productView .recolor-cell-next {
  font-weight: 780;
  color: #334155;
}

html[data-ops-preview="linear"] #productView .recolor-cell-status {
  display: grid;
  gap: 4px;
}

html[data-ops-preview="linear"] #productView .recolor-cell-status strong {
  color: #0f172a;
  font-size: 17px;
  line-height: 1;
}

html[data-ops-preview="linear"] #productView .recolor-mobile-tags {
  grid-column: 2 / -2;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

html[data-ops-preview="linear"] #productView .recolor-mobile-tags span {
  padding: 2px 6px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  font-size: 10.5px;
  font-weight: 760;
}

html[data-ops-preview="linear"] #productView .recolor-color-panel {
  grid-column: 1 / -1;
}

html[data-ops-preview="linear"] #productView .recolor-color-panel[hidden] {
  display: none !important;
}

html[data-ops-preview="linear"] #productView .recolor-color-row {
  grid-template-columns: 28px minmax(110px, .55fr) minmax(108px, .45fr) minmax(0, 1fr) minmax(128px, .52fr);
  align-items: center;
}

html[data-ops-preview="linear"] #productView .recolor-step-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
  gap: 4px;
}

html[data-ops-preview="linear"] #productView .recolor-step-checklist label {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 28px;
  padding: 0 6px;
  border: 1px solid #dbe3f0;
  border-radius: 7px;
  background: #fff;
  color: #64748b;
  font-size: 10.5px;
  font-weight: 820;
  white-space: nowrap;
}

html[data-ops-preview="linear"] #productView .recolor-step-checklist input {
  width: 13px;
  height: 13px;
  accent-color: #16a34a;
}

html[data-ops-preview="linear"] #productView .recolor-step-checklist label.done {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #047857;
}

html[data-ops-preview="linear"] #productView .recolor-step-checklist label.active {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

html[data-ops-preview="linear"] #productView .recolor-step-checklist label.issue {
  border-color: #fecaca;
  background: #fff5f5;
  color: #b91c1c;
}

html[data-ops-preview="linear"] #productView .recolor-color-empty {
  font-size: 12px;
}

html[data-ops-preview="linear"] #productView [data-recolor-new-color-name].input-error {
  border-color: #ef4444;
  background: #fff5f5;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .12);
}

@media (max-width: 1200px) {
  html[data-ops-preview="linear"] #productView .recolor-table-header {
    display: none;
  }

  html[data-ops-preview="linear"] #productView .recolor-spu-card {
    grid-template-columns: minmax(28px, 34px) minmax(0, 1fr) minmax(104px, .42fr);
  }

  html[data-ops-preview="linear"] #productView .recolor-cell-reason,
  html[data-ops-preview="linear"] #productView .recolor-cell-next {
    grid-column: 2 / -1;
  }

  html[data-ops-preview="linear"] #productView .recolor-cell-status {
    grid-column: 3;
  }

  html[data-ops-preview="linear"] #productView .recolor-spu-toggle {
    top: 8px;
    right: 8px;
  }

  html[data-ops-preview="linear"] #productView .recolor-spu-metrics,
  html[data-ops-preview="linear"] #productView .recolor-color-panel {
    grid-column: 2 / -1;
  }

  html[data-ops-preview="linear"] #productView .recolor-color-row {
    grid-template-columns: 28px minmax(112px, .55fr) minmax(104px, .45fr) minmax(0, 1fr);
  }

  html[data-ops-preview="linear"] #productView .recolor-color-row .recolor-color-meta {
    grid-column: 2 / -1;
  }
}

@media (max-width: 760px) {
  html[data-ops-preview="linear"] #productView .ops-product-module-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  html[data-ops-preview="linear"] #productView .ops-product-module-meta {
    max-width: none;
    text-align: left;
  }

  html[data-ops-preview="linear"] #productView .ops-product-zone-head {
    display: grid;
    gap: 6px;
  }

  html[data-ops-preview="linear"] #productView .ops-product-zone-head > div:first-child span {
    display: none;
  }

  html[data-ops-preview="linear"] #productView .recolor-progress-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    min-width: 0;
  }

  html[data-ops-preview="linear"] #productView .recolor-progress-summary {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  html[data-ops-preview="linear"] #productView .recolor-progress-summary .recolor-progress-count:nth-child(n+5) {
    display: none;
  }

  html[data-ops-preview="linear"] #productView .recolor-progress-actions {
    display: none;
  }

  html[data-ops-preview="linear"] #productView .recolor-progress-filters {
    position: static;
    gap: 4px;
    padding: 4px;
    box-shadow: none;
  }

  html[data-ops-preview="linear"] #productView .recolor-beginner-guide {
    padding: 4px 6px;
  }

  html[data-ops-preview="linear"] #productView .recolor-beginner-guide summary {
    min-height: 26px;
  }

  html[data-ops-preview="linear"] #productView .recolor-beginner-guide summary span {
    display: none;
  }

  html[data-ops-preview="linear"] #productView .recolor-pool-tabs,
  html[data-ops-preview="linear"] #productView .recolor-stage-tabs {
    min-height: 28px;
  }

  html[data-ops-preview="linear"] #productView .recolor-progress-search {
    gap: 2px;
  }

  html[data-ops-preview="linear"] #productView .recolor-progress-search span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }

  html[data-ops-preview="linear"] #productView .recolor-batch-bar {
    min-height: 30px;
    padding: 3px 5px;
  }

  html[data-ops-preview="linear"] #productView .recolor-spu-card,
  html[data-ops-preview="linear"] #productView .recolor-progress-filters,
  html[data-ops-preview="linear"] #productView .recolor-color-toolbar {
    grid-template-columns: 1fr;
  }

  html[data-ops-preview="linear"] #productView .recolor-color-row {
    grid-template-columns: 1fr;
  }

  html[data-ops-preview="linear"] #productView .recolor-cell-select,
  html[data-ops-preview="linear"] #productView .recolor-cell-product,
  html[data-ops-preview="linear"] #productView .recolor-cell-plan,
  html[data-ops-preview="linear"] #productView .recolor-cell-reason,
  html[data-ops-preview="linear"] #productView .recolor-cell-next,
  html[data-ops-preview="linear"] #productView .recolor-cell-status,
  html[data-ops-preview="linear"] #productView .recolor-color-panel,
  html[data-ops-preview="linear"] #productView .recolor-color-row .recolor-color-meta {
    grid-column: 1;
  }

  html[data-ops-preview="linear"] #productView .recolor-progress-search,
  html[data-ops-preview="linear"] #productView .recolor-stage-tabs {
    grid-column: 1;
    grid-row: auto;
  }

  html[data-ops-preview="linear"] #productView .recolor-cell-product {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  html[data-ops-preview="linear"] #productView .recolor-spu-main h3,
  html[data-ops-preview="linear"] #productView .recolor-spu-main p {
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  html[data-ops-preview="linear"] #productView .recolor-spu-status,
  html[data-ops-preview="linear"] #productView .recolor-spu-metrics {
    grid-column: 1;
  }

  html[data-ops-preview="linear"] #productView .recolor-spu-status {
    padding-right: 0;
  }
}

html[data-ops-preview="linear"] #dataView.ops-data-workbench {
  font-size: 12px;
  background: #f6f8fb;
}

html[data-ops-preview="linear"] #dataView > .quick-nav {
  display: none !important;
}

html[data-ops-preview="linear"] #dataView .compact-date-panel {
  margin-bottom: 8px;
  padding: 8px 10px;
}

.data-workbench-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 10px 0 14px;
}

.data-workbench-kpi-grid,
.data-workbench-compare-panel,
.data-workbench-decision-panel,
.data-workbench-funnel-panel,
.data-workbench-market-panel,
.data-workbench-trend-grid,
.data-workbench-contribution-panel,
.data-workbench-inventory-panel,
.data-workbench-quality-panel,
.data-workbench-structure-panel,
.data-workbench-gap-panel,
.data-workbench-summary-table,
.data-workbench-detail-grid,
.data-workbench-data-catalog-panel {
  min-width: 0;
  padding: 10px;
  border: 1px solid #dce5f2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}

.data-workbench-kpi-grid {
  grid-column: 1 / -1;
}

.data-workbench-decision-panel {
  grid-column: 1 / -1;
  border-color: #bfdbfe;
  background: #f8fbff;
}

.data-workbench-compare-panel,
.data-workbench-funnel-panel,
.data-workbench-market-panel,
.data-workbench-contribution-panel,
.data-workbench-inventory-panel,
.data-workbench-quality-panel,
.data-workbench-structure-panel {
  grid-column: 1 / -1;
}

.data-workbench-gap-panel {
  grid-column: 1 / -1;
  border-color: #d9e2ef;
  background: #fbfdff;
}

.data-workbench-kpi-grid .data-workbench-panel-body {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.ops-business-kpi-footnote {
  grid-column: 1 / -1;
  margin: 0;
  padding: 7px 9px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  line-height: 1.45;
}

.ops-business-period-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.ops-business-period-strip > strong,
.ops-business-period-strip article {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.ops-business-period-strip > strong {
  display: grid;
  align-items: center;
  color: #1d4ed8;
  font-size: 12px;
  line-height: 1.25;
}

.ops-business-period-strip span,
.ops-business-period-strip small {
  display: block;
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
}

.ops-business-period-strip b {
  display: block;
  margin: 4px 0 2px;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.15;
}

.ops-business-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
}

.ops-business-compare-layout {
  display: grid;
  grid-template-columns: minmax(340px, .88fr) minmax(0, 1.12fr);
  gap: 10px;
  align-items: stretch;
}

.ops-business-compare-grid article,
.ops-business-contribution-cards article,
.ops-business-insight-grid article {
  min-width: 0;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.ops-business-compare-grid span,
.ops-business-compare-grid small,
.ops-business-contribution-cards span,
.ops-business-contribution-cards small,
.ops-business-insight-grid span,
.ops-business-insight-grid small {
  display: block;
  min-width: 0;
  overflow: visible;
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.ops-business-compare-grid strong,
.ops-business-contribution-cards strong,
.ops-business-insight-grid strong {
  display: block;
  margin: 5px 0 4px;
  overflow: visible;
  color: #0f172a;
  font-size: 17px;
  line-height: 1.15;
  text-overflow: clip;
  white-space: normal;
}

.ops-business-compare-grid strong {
  line-height: 1.28;
  overflow-wrap: anywhere;
  word-break: normal;
}

.ops-business-compare-layout .ops-business-chart-card {
  min-height: 0;
}

.ops-business-funnel {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.ops-business-funnel article {
  min-width: 0;
  padding: 10px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
}

.ops-business-funnel .ops-business-missing-card {
  border-style: dashed;
  border-color: #fed7aa;
  background: #fffbeb;
}

.ops-business-funnel span,
.ops-business-funnel small {
  display: block;
  color: #64748b;
  font-size: 11px;
}

.ops-business-funnel strong {
  display: block;
  margin: 5px 0;
  color: #0f172a;
  font-size: 20px;
  line-height: 1;
}

.ops-business-funnel i,
.ops-business-bar-list b {
  display: block;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.ops-business-funnel u,
.ops-business-bar-list i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #14b8a6);
  text-decoration: none;
}

.ops-business-insight-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.ops-business-profit-breakdown {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.ops-business-profit-breakdown article {
  min-width: 0;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.ops-business-profit-breakdown span,
.ops-business-profit-breakdown small {
  display: block;
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
}

.ops-business-profit-breakdown strong {
  display: block;
  margin: 5px 0 4px;
  color: #0f172a;
  font-size: 16px;
  line-height: 1.2;
  word-break: break-word;
}

.data-workbench-kpi-grid article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 8px;
  align-items: end;
  min-width: 0;
  min-height: 76px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.ops-business-kpi-main {
  min-width: 0;
}

.data-workbench-kpi-grid article span,
.data-workbench-kpi-grid article small,
.data-workbench-kpi-grid article em {
  display: block;
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
}

.data-workbench-kpi-grid article strong {
  display: block;
  margin: 5px 0 3px;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.1;
}

.data-workbench-kpi-grid article em {
  width: max-content;
  max-width: 100%;
  margin-top: 5px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #f1f5f9;
  font-style: normal;
  font-weight: 800;
}

.data-workbench-kpi-grid article em.up {
  background: #ecfdf5;
  color: #047857;
}

.data-workbench-kpi-grid article em.down {
  background: #fff1f2;
  color: #b91c1c;
}

.ops-business-sparkline {
  display: block;
  width: 92px;
  height: 28px;
  align-self: end;
}

.ops-business-decision-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 10px;
  align-items: stretch;
}

.ops-business-loading {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px dashed #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1e3a8a;
}

.ops-business-loading strong {
  font-size: 15px;
}

.ops-business-loading span {
  color: #64748b;
  font-size: 12px;
}

.ops-business-empty-state {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
}

.ops-business-empty-state strong {
  color: #0f172a;
  font-size: 14px;
}

.ops-business-empty-state span {
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.ops-business-status-strip {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #eff6ff;
}

.ops-business-status-strip strong {
  color: #0f172a;
  font-size: 18px;
  line-height: 1.2;
}

.ops-business-status-strip small {
  color: #64748b;
  font-size: 11px;
  line-height: 1.4;
}

.ops-business-status-strip button,
.ops-business-sort-direction {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #fff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
}

.ops-business-sort-direction.is-asc {
  border-color: #c7d2fe;
  background: #eef2ff;
}

.ops-business-scope-note {
  margin-top: 8px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
}

.ops-business-verdict,
.ops-business-alert-list article,
.ops-business-next-actions {
  min-width: 0;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #fff;
}

.ops-business-verdict {
  display: grid;
  gap: 7px;
  align-content: center;
  min-height: 122px;
  padding: 14px;
  border-left: 4px solid #2563eb;
}

.ops-business-decision-danger .ops-business-verdict {
  border-left-color: #dc2626;
}

.ops-business-decision-warn .ops-business-verdict {
  border-left-color: #f59e0b;
}

.ops-business-decision-good .ops-business-verdict {
  border-left-color: #16a34a;
}

.ops-business-verdict span,
.ops-business-verdict small,
.ops-business-alert-list span,
.ops-business-next-actions span,
.ops-business-next-actions small {
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
}

.ops-business-verdict strong {
  color: #0f172a;
  font-size: 20px;
  line-height: 1.25;
}

.ops-business-alert-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.ops-business-alert-list article {
  display: grid;
  gap: 3px;
  min-height: 82px;
  padding: 9px;
}

.ops-business-alert-list button {
  display: grid;
  gap: 3px;
  min-height: 82px;
  padding: 9px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.ops-business-alert-list article b {
  color: #334155;
  font-size: 11px;
}

.ops-business-alert-list button b {
  color: #334155;
  font-size: 11px;
}

.ops-business-alert-list article strong {
  color: #0f172a;
  font-size: 20px;
  line-height: 1;
}

.ops-business-alert-list button strong {
  color: #0f172a;
  font-size: 20px;
  line-height: 1;
}

.ops-business-alert-list article.danger {
  border-color: #fecaca;
  background: #fff1f2;
}

.ops-business-alert-list article.warn {
  border-color: #fed7aa;
  background: #fffbeb;
}

.ops-business-alert-list button.danger {
  border-color: #fecaca;
  background: #fff1f2;
}

.ops-business-alert-list button.warn {
  border-color: #fed7aa;
  background: #fffbeb;
}

.ops-business-next-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}

.ops-business-next-actions > div {
  display: grid;
  align-content: center;
  min-width: 96px;
}

.ops-business-next-actions > div strong {
  color: #0f172a;
  font-size: 13px;
}

.ops-business-next-actions button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 7px;
  align-items: center;
  min-width: 0;
  min-height: 58px;
  padding: 8px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
}

.ops-business-next-actions button b {
  grid-row: 1 / 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 11px;
}

.ops-business-next-actions button strong,
.ops-business-next-actions button small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-workbench-trend-grid {
  grid-column: 1 / -1;
}

.data-workbench-summary-table {
  grid-column: 1 / -1;
}

.data-workbench-detail-grid {
  grid-column: 1 / -1;
}

.data-workbench-panel-head,
.data-workbench-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 8px;
}

.data-workbench-panel-head h2,
.data-workbench-detail-head h3 {
  margin: 0;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.2;
}

.data-workbench-panel-head span,
.data-workbench-detail-head span {
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
  text-align: right;
}

.data-workbench-summary-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.data-workbench-summary-table th,
.data-workbench-summary-table td {
  padding: 7px 8px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
}

.data-workbench-summary-table th {
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  background: #f8fafc;
}

.ops-business-chart-board {
  display: grid;
  gap: 8px;
}

.ops-business-unified-summary {
  display: grid;
  grid-template-columns: minmax(110px, .85fr) repeat(5, minmax(92px, 1fr));
  gap: 6px;
  align-items: stretch;
  padding: 8px;
  border: 1px solid #dce5f2;
  border-radius: 8px;
  background: #f8fafc;
}

.ops-business-current-summary-title,
.ops-business-unified-summary article {
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  background: #fff;
}

.ops-business-current-summary-title strong,
.ops-business-unified-summary article strong {
  display: block;
  color: #0f172a;
  font-size: 13px;
  line-height: 1.2;
}

.ops-business-current-summary-title span,
.ops-business-unified-summary article span {
  display: block;
  color: #64748b;
  font-size: 11px;
  line-height: 1.25;
}

.ops-business-unified-trend-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.ops-business-trend-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  min-width: 0;
  padding: 8px;
  border: 1px solid #dce5f2;
  border-radius: 8px;
  background: #fff;
}

.ops-business-trend-pill-section {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  min-width: 0;
}

.ops-business-trend-pill-section strong {
  margin-right: 2px;
  color: #475569;
  font-size: 12px;
}

.ops-business-trend-pill-section button {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.ops-business-trend-pill-section button i {
  width: 11px;
  height: 3px;
  border-radius: 999px;
}

.ops-business-trend-pill-section button.is-active {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.ops-business-trend-pill-section button:not(.is-active) {
  opacity: .48;
}

.ops-business-unified-trend-card {
  padding: 12px;
}

.ops-business-unified-trend-card .ops-business-chart-box {
  height: 360px;
  min-height: 360px;
}

.ops-business-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .8fr);
  gap: 10px;
}

.ops-business-chart-card {
  min-width: 0;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.ops-business-chart-card.is-wide {
  grid-row: span 2;
}

.ops-business-chart-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 7px;
}

.ops-business-chart-title strong {
  color: #0f172a;
  font-size: 13px;
}

.ops-business-chart-title span {
  color: #64748b;
  font-size: 11px;
}

.ops-business-chart-tools {
  justify-self: end;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.ops-business-chart-box {
  position: relative;
  height: 300px;
  min-height: 300px;
}

.ops-business-chart-box.compact {
  height: 140px;
  min-height: 140px;
}

.ops-business-chart-box canvas {
  width: 100% !important;
  height: 100% !important;
}

.ops-business-chart-note {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 11px;
  line-height: 1.45;
}

.ops-business-market-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.ops-business-market-card {
  min-width: 0;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.ops-business-market-bars,
.ops-business-site-list {
  display: grid;
  gap: 7px;
}

.ops-business-market-bars article {
  display: grid;
  grid-template-columns: minmax(82px, .58fr) minmax(100px, 1fr) minmax(50px, auto) minmax(52px, auto);
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.ops-business-market-bars span,
.ops-business-site-list span,
.ops-business-site-list small,
.ops-business-market-bars small {
  min-width: 0;
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-business-market-bars strong,
.ops-business-site-list strong {
  color: #0f172a;
  font-size: 12px;
  line-height: 1.25;
}

.ops-business-market-bars b,
.ops-business-site-list b {
  display: block;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.ops-business-market-bars i,
.ops-business-site-list i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #14b8a6);
}

.ops-business-site-list article {
  display: grid;
  grid-template-columns: minmax(150px, .9fr) minmax(120px, .7fr) minmax(180px, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 7px 0;
  border-bottom: 1px solid #e2e8f0;
}

.ops-business-site-list article:last-child {
  border-bottom: 0;
}

.ops-business-exception-heat-table {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  min-width: 0;
}

.ops-business-heat-head,
.ops-business-heat-row {
  display: grid;
  grid-template-columns: minmax(120px, .9fr) minmax(90px, .7fr) minmax(120px, 1fr) minmax(82px, .55fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 7px 9px;
  border-radius: 8px;
}

.ops-business-heat-head {
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
}

.ops-business-heat-row {
  border: 1px solid #e2e8f0;
  background: #fff;
}

.ops-business-heat-row span,
.ops-business-heat-row b,
.ops-business-heat-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-business-heat-row span {
  color: #64748b;
  font-size: 11px;
}

.ops-business-heat-row strong {
  color: #0f172a;
  font-size: 13px;
}

.ops-business-heat-row b {
  color: #334155;
  font-size: 11px;
}

.ops-business-heat-row.danger {
  border-color: #fecaca;
  background: #fff1f2;
}

.ops-business-heat-row.warn {
  border-color: #fed7aa;
  background: #fffbeb;
}

.ops-business-heat-row.good {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.ops-business-contribution-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 10px;
  align-items: stretch;
}

.ops-business-contribution-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ops-business-product-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.ops-business-toolbar-hint {
  margin-right: auto;
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
}

.ops-business-product-toolbar button,
.ops-business-product-toolbar input {
  min-height: 32px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #1e293b;
  font-size: 12px;
  font-weight: 760;
}

.ops-business-product-toolbar button {
  padding: 0 12px;
}

.ops-business-product-toolbar input {
  width: min(260px, 46vw);
  padding: 0 12px;
}

.ops-business-product-toolbar select {
  min-height: 32px;
  padding: 0 28px 0 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #1e293b;
  font-size: 12px;
  font-weight: 760;
}

.ops-business-column-config {
  position: absolute;
  top: 54px;
  right: 12px;
  z-index: 80;
  width: min(720px, calc(100% - 24px));
  padding: 0;
  background: transparent;
}

.ops-business-column-config[hidden] {
  display: none !important;
}

.ops-business-column-config-panel {
  width: 100%;
  max-height: min(560px, 72vh);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .18);
  overflow: hidden;
}

.ops-business-column-config-head,
.ops-business-column-config-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8f0;
}

.ops-business-column-config-actions {
  justify-content: flex-end;
  border-top: 1px solid #e2e8f0;
  border-bottom: 0;
}

.ops-business-column-config-head strong {
  color: #0f172a;
  font-size: 15px;
}

.ops-business-column-config-head button,
.ops-business-column-config-actions button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  color: #1e293b;
  font-size: 12px;
  font-weight: 800;
}

.ops-business-column-config-actions button:last-child {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.ops-business-column-config-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  padding: 16px;
  overflow: auto;
}

.ops-business-column-config-body section {
  min-width: 0;
}

.ops-business-column-config-body section > strong {
  display: block;
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 13px;
}

.ops-business-column-config-body section > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.ops-business-column-config-body label {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.ops-business-column-config-body input {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.ops-business-product-table {
  position: relative;
}

.ops-business-product-table::before {
  content: "横向滑动查看更多真实字段";
  position: sticky;
  left: 0;
  z-index: 2;
  display: none;
  width: max-content;
  margin: 0 0 6px;
  padding: 4px 8px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 760;
}

.ops-business-top-card-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  margin-bottom: 9px;
}

.ops-business-rank-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 9px;
}

.ops-business-rank-split > section {
  min-width: 0;
  padding: 9px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.ops-business-rank-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 7px;
}

.ops-business-rank-head strong {
  min-width: 0;
  color: #0f172a;
  font-size: 13px;
}

.ops-business-rank-head span,
.ops-business-detail-state {
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
}

.ops-business-detail-state {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 800;
}

.ops-business-top-card {
  display: grid;
  grid-template-columns: 30px 48px minmax(160px, 1fr) minmax(250px, .72fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 54px;
  padding: 7px 9px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
  color: #0f172a;
  text-align: left;
  cursor: default;
}

.ops-business-top-card b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 11px;
}

.ops-business-top-card strong,
.ops-business-top-card span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-business-top-card strong {
  font-size: 13px;
}

.ops-business-top-card span {
  color: #64748b;
  font-size: 11px;
}

.ops-business-top-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.ops-business-top-main strong,
.ops-business-top-main span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ops-business-top-main i {
  display: block;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.ops-business-top-main u {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #14b8a6);
  text-decoration: none;
}

.ops-business-top-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
}

.ops-business-top-card em,
.ops-business-top-card small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-business-top-card em {
  color: #0f172a;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.ops-business-top-card small {
  color: #64748b;
  font-size: 10.5px;
}

.ops-business-top-card[data-business-card-skc] {
  cursor: pointer;
}

.ops-business-top-card[data-business-card-skc]:hover {
  border-color: #bfdbfe;
  background: #f8fbff;
}

.ops-business-top-card.is-focused-product {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: inset 3px 0 0 #2563eb;
}

.ops-business-top-reason {
  color: #1d4ed8;
  font-weight: 760;
}

.ops-business-card-empty {
  grid-column: 1 / -1;
  padding: 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
}

.ops-business-gap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.ops-business-gap-grid article {
  min-width: 0;
  min-height: 76px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.ops-business-gap-grid span,
.ops-business-gap-grid small {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-business-gap-grid strong {
  display: block;
  margin: 5px 0 4px;
  color: #0f172a;
  font-size: 22px;
  line-height: 1;
}

.ops-business-product-table {
  max-height: 360px;
  overflow: auto;
  overscroll-behavior-x: contain;
  contain: inline-size;
}

.ops-business-product-table table {
  min-width: max(980px, 100%);
}

.ops-business-product-table th button[data-product-sort-field] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1d4ed8;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.ops-business-product-table th button[data-product-sort-field]:hover,
.ops-business-product-table th button[data-product-sort-field].is-active {
  color: #0f172a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ops-business-category-cell {
  max-width: 160px;
}

.ops-business-category-cell strong,
.ops-business-category-cell span {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-business-product-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  color: #64748b;
  font-size: 12px;
}

.ops-business-product-pagination span {
  margin-right: auto;
}

.ops-business-product-pagination button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #1e293b;
  font-size: 12px;
  font-weight: 760;
}

.ops-business-product-pagination button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.ops-business-product-table tbody tr {
  cursor: pointer;
}

.ops-business-product-table tbody tr:not([data-business-skc]) {
  cursor: default;
}

.ops-business-product-table tbody tr:hover {
  background: #f8fbff;
}

.ops-business-product-table tbody tr.is-focused-product {
  background: #eff6ff;
  box-shadow: inset 3px 0 0 #2563eb;
}

.ops-business-product-table td strong,
.ops-business-product-table td span {
  display: block;
  line-height: 1.3;
}

.ops-business-product-table td span {
  color: #64748b;
  font-size: 11px;
}

.ops-business-price-cell {
  min-width: 98px;
}

.ops-business-front-price {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  justify-content: center;
  gap: 2px 5px;
  min-width: 118px;
  margin: 0 auto;
  white-space: nowrap;
}

.ops-business-front-price strong {
  color: #dc2626;
  font-weight: 850;
}

.ops-business-front-price s {
  color: #94a3b8;
  font-size: 10px;
}

.ops-business-front-price em {
  grid-column: 1 / -1;
  color: #047857;
  font-size: 10px;
  font-style: normal;
}

.ops-business-price-value {
  color: #0f172a !important;
  font-weight: 850;
}

.ops-business-price-missing {
  display: inline-flex !important;
  width: max-content;
  padding: 2px 6px;
  border: 1px solid #fecaca;
  border-radius: 999px;
  background: #fff1f2;
  color: #b91c1c !important;
  font-size: 11px;
  font-weight: 900;
}

.ops-business-rank-delta {
  display: inline-flex;
  min-width: 44px;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.ops-business-rank-delta.up {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.ops-business-rank-delta.down {
  border-color: #fecaca;
  background: #fff1f2;
  color: #b91c1c;
}

.ops-business-rank-delta.new {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.ops-business-rank-delta.flat,
.ops-business-rank-delta.muted,
.ops-business-rank-delta.out {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #64748b;
}

.ops-business-product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}

.ops-business-product-tags span {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  min-height: 20px;
  align-items: center;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
}

.ops-business-product-tags span.danger {
  border-color: #fecaca;
  background: #fff1f2;
  color: #b91c1c;
}

.ops-business-product-tags span.warn {
  border-color: #fed7aa;
  background: #fffbeb;
  color: #b45309;
}

.ops-business-product-tags span.muted {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #64748b;
}

.ops-business-product-board {
  position: relative;
  overflow: hidden;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #fff;
}

.ops-business-product-board .ops-business-product-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) minmax(150px, .9fr) minmax(132px, .75fr) auto auto auto auto;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 12px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.ops-business-product-search-wrap {
  min-width: 0;
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
}

.ops-business-product-search-wrap span {
  color: #94a3b8;
  font-size: 15px;
  font-weight: 900;
}

.ops-business-product-search-wrap input {
  width: 100%;
  min-width: 0;
  min-height: 32px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

.ops-business-product-board .ops-business-product-toolbar select,
.ops-business-product-board .ops-business-product-toolbar button {
  width: 100%;
  min-height: 34px;
  border-radius: 7px;
}

.ops-business-product-board .ops-business-product-toolbar button {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.ops-business-product-board .ops-business-product-toolbar button#opsBusinessProductViewAll,
.ops-business-product-board .ops-business-product-toolbar button#opsBusinessExportTopProducts {
  border-color: #cbd5e1;
  background: #fff;
  color: #334155;
}

.ops-business-product-toolbar-hint {
  padding: 8px 12px;
  border-bottom: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
  background: #fff;
}

.ops-business-product-board .ops-business-product-table {
  max-height: 620px;
  border: 0;
  border-radius: 0;
}

.ops-business-product-board .ops-business-product-table table {
  min-width: 1420px;
  border-collapse: separate;
  border-spacing: 0;
}

.ops-business-product-board .ops-business-product-table th,
.ops-business-product-board .ops-business-product-table td {
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  background-clip: padding-box;
}

.ops-business-product-board .ops-business-product-table th:last-child,
.ops-business-product-board .ops-business-product-table td:last-child {
  border-right: 0;
}

.ops-business-product-head-groups th {
  position: sticky;
  top: 0;
  z-index: 4;
  height: 34px;
  background: #eef4ff;
  color: #1e3a8a;
  font-size: 12px;
  text-align: center;
}

.ops-business-product-head-fields th {
  position: sticky;
  top: 34px;
  z-index: 4;
  height: 36px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  text-align: center;
}

.ops-business-product-board .ops-business-product-table .ops-business-product-index-col,
.ops-business-product-board .ops-business-product-table .ops-business-product-main-col {
  z-index: 5;
}

.ops-business-product-board .ops-business-product-table th button[data-product-sort-field] {
  color: #334155;
  text-decoration: none;
}

.ops-business-product-board .ops-business-product-table th .ops-business-product-rank-sort {
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 900;
}

.ops-business-product-board .ops-business-product-table th button[data-product-sort-field]::after {
  content: "↕";
  margin-left: 4px;
  color: #94a3b8;
  font-size: 10px;
}

.ops-business-product-board .ops-business-product-table th button[data-product-sort-field].is-active {
  color: #1d4ed8;
}

.ops-business-product-board .ops-business-product-table th button[data-product-sort-field].is-active::after {
  content: "";
}

.ops-business-product-board .ops-business-product-table tbody td {
  height: 72px;
  padding: 9px 10px;
  color: #0f172a;
  font-size: 12px;
  text-align: center;
  vertical-align: middle;
  background: #fff;
}

.ops-business-product-board .ops-business-product-table tbody tr:nth-child(even) td {
  background: #fbfdff;
}

.ops-business-product-board .ops-business-product-table tbody tr:hover td {
  background: #f1f7ff;
}

.ops-business-product-board .ops-business-product-table tbody td:first-child {
  color: #64748b;
  font-weight: 850;
}

.ops-business-product-board .ops-business-product-cell {
  min-width: 210px;
  max-width: 240px;
  justify-content: center;
  text-align: center;
}

.ops-business-product-board .ops-business-product-thumb {
  width: 46px;
  height: 46px;
  border-radius: 6px;
}

.ops-business-product-board .ops-business-product-cell strong,
.ops-business-product-board .ops-business-product-cell span,
.ops-business-product-board .ops-business-category-cell strong,
.ops-business-product-board .ops-business-category-cell span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-business-product-main {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 3px;
}

.ops-business-product-inline-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  max-width: 168px;
}

.ops-business-single-skc-btn {
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 10.5px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.ops-business-single-skc-btn:hover {
  border-color: #2563eb;
  background: #dbeafe;
}

.ops-business-product-board .ops-business-product-cell strong {
  display: block;
  max-width: 150px;
  margin-inline: auto;
  overflow: hidden;
  color: #0f172a;
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-business-product-rank-badge {
  display: inline-flex;
  flex: 0 0 auto;
  min-width: 34px;
  justify-content: center;
  padding: 1px 6px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1.35;
}

.ops-business-product-rank-badge.up {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.ops-business-product-rank-badge.down {
  border-color: #fecaca;
  background: #fff1f2;
  color: #b91c1c;
}

.ops-business-product-rank-badge.new {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.ops-business-product-rank-badge.flat,
.ops-business-product-rank-badge.muted {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #64748b;
}

.ops-business-negative-cell {
  background: #fff1f2 !important;
  color: #b91c1c !important;
  font-weight: 950;
  box-shadow: inset 0 0 0 1px #fecaca;
}

.ops-business-product-board .ops-business-product-cell span {
  max-width: 160px;
  color: #64748b;
  font-size: 11px;
}

.ops-business-product-board .ops-business-category-cell {
  min-width: 118px;
  max-width: 140px;
  text-align: center;
}

.ops-business-product-board .ops-business-category-cell strong,
.ops-business-product-board .ops-business-category-cell span {
  max-width: 122px;
}

.ops-business-product-board .ops-business-category-cell small {
  display: block;
  max-width: 122px;
  margin-top: 3px;
  margin-inline: auto;
  overflow: hidden;
  color: #94a3b8;
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-business-layer-chip {
  display: inline-flex !important;
  width: max-content;
  max-width: 122px;
  min-height: 20px;
  align-items: center;
  justify-content: center;
  margin: 4px auto 0;
  padding: 2px 7px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569 !important;
  font-size: 10.5px !important;
  font-weight: 850;
  line-height: 1.2 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-business-layer-chip.accent {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8 !important;
}

.ops-business-layer-chip.stock {
  border-color: #fed7aa;
  background: #fffbeb;
  color: #b45309 !important;
}

.ops-business-layer-chip.new {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d !important;
}

.ops-business-product-board .ops-business-product-tags {
  justify-content: center;
}

.ops-business-product-board .ops-business-price-cell small,
.ops-business-product-board .ops-business-price-cell span {
  margin-inline: auto;
  text-align: center;
}

.ops-business-product-board .ops-business-product-pagination {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

.ops-business-product-total {
  margin-right: auto;
  color: #475569;
  font-weight: 850;
}

.ops-business-product-page-numbers {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ops-business-product-page-numbers button,
.ops-business-product-page-numbers span,
.ops-business-product-page-jump input {
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.ops-business-product-page-size {
  height: 32px;
  min-width: 96px;
  padding: 0 28px 0 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.ops-business-product-page-numbers button.is-active {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.ops-business-product-page-numbers .ops-business-page-ellipsis {
  min-width: 24px;
  border: 0;
  color: #94a3b8;
}

.ops-business-product-page-jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 760;
}

.ops-business-product-page-jump input {
  width: 52px;
  padding: 0 6px;
  text-align: center;
}

.ops-business-single-open {
  overflow: hidden;
}

.ops-business-single-modal {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, .48);
}

.ops-business-single-modal[hidden] {
  display: none !important;
}

.ops-business-single-modal-panel {
  width: min(1180px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
}

.ops-business-single-modal-head,
.ops-business-single-modal-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.ops-business-single-modal-head {
  justify-content: space-between;
}

.ops-business-single-modal-head strong {
  display: block;
  color: #0f172a;
  font-size: 17px;
}

.ops-business-single-modal-head span {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 12px;
}

.ops-business-single-modal-head button {
  width: 34px;
  height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 20px;
  font-weight: 900;
}

.ops-business-single-modal-tools {
  flex-wrap: wrap;
  background: #fff;
}

.ops-business-single-modal-tools label {
  display: grid;
  gap: 4px;
  min-width: 132px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.ops-business-single-modal-tools input,
.ops-business-single-modal-tools select,
.ops-business-single-modal-tools button {
  min-height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  color: #1e293b;
  font-size: 12px;
  font-weight: 800;
}

.ops-business-single-modal-tools input,
.ops-business-single-modal-tools select {
  padding: 0 10px;
}

.ops-business-single-modal-tools button {
  align-self: end;
  padding: 0 16px;
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.ops-business-single-modal-body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  gap: 12px;
  overflow: auto;
  padding: 14px;
  background: #f8fafc;
}

.ops-business-single-card,
.ops-business-single-chart-card,
.ops-business-single-table {
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #fff;
}

.ops-business-single-card {
  padding: 12px;
}

.ops-business-single-head {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.ops-business-single-img {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.ops-business-single-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ops-business-single-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.ops-business-single-meta strong,
.ops-business-single-meta span,
.ops-business-single-meta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-business-single-meta strong {
  color: #0f172a;
  font-size: 14px;
}

.ops-business-single-meta span,
.ops-business-single-meta small {
  color: #64748b;
  font-size: 11px;
}

.ops-business-single-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.ops-business-single-kpis div {
  min-width: 0;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  background: #f8fafc;
  text-align: center;
}

.ops-business-single-kpis div.loss {
  border-color: #fecaca;
  background: #fff1f2;
}

.ops-business-single-kpis b {
  display: block;
  overflow: hidden;
  color: #0f172a;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-business-single-kpis div.loss b {
  color: #b91c1c;
}

.ops-business-single-kpis span {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 10.5px;
}

.ops-business-single-chart-card {
  min-height: 320px;
  padding: 12px;
}

.ops-business-single-chart-card .ops-business-chart-box {
  height: 400px;
}

.ops-business-single-chart-card canvas[hidden] {
  display: none !important;
}

.ops-business-single-svg-chart {
  height: 100%;
  min-height: 250px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
}

.ops-business-single-svg-chart[hidden] {
  display: none !important;
}

.ops-business-single-svg-chart svg {
  width: 100%;
  height: 100%;
  min-height: 215px;
  overflow: visible;
}
.ops-business-single-metric-lanes {
  display: grid;
  gap: 10px;
  max-height: 520px;
  overflow: auto;
  padding: 2px 4px 4px;
}

.ops-business-single-composite-chart {
  display: grid;
  gap: 8px;
  max-height: none;
  overflow: visible;
  padding: 2px 4px 4px;
}

.ops-business-single-composite {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8fafc);
}

.ops-business-single-composite > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #0f172a;
  font-size: 11px;
}

.ops-business-single-composite > header span {
  color: #64748b;
  font-weight: 700;
}

.ops-business-single-composite .ops-business-single-metric-lanes {
  max-height: none;
  overflow: visible;
  padding: 0;
}

.ops-business-single-metric-lane {
  display: grid;
  gap: 4px;
  padding: 8px 9px 6px;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--lane-color, #2563eb);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f8fafc);
}

.ops-business-single-metric-lane-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  color: #0f172a;
  font-size: 11px;
  font-weight: 850;
}

.ops-business-single-metric-lane-head strong,
.ops-business-single-metric-lane-head span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ops-business-single-metric-lane-head span {
  color: #64748b;
  font-weight: 800;
}

.ops-business-single-metric-lane-head i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.ops-business-single-metric-lane svg {
  width: 100%;
  height: 92px;
  min-height: 92px;
  overflow: visible;
}

.ops-business-single-point-value {
  fill: #0f172a !important;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, .92);
  stroke-width: 3px;
  font-size: 10px !important;
  font-weight: 900;
}


.ops-business-single-svg-chart text {
  fill: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.ops-business-single-svg-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.ops-business-single-svg-legend button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid #d7e2f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #1e293b;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.ops-business-single-svg-legend button:hover {
  border-color: #94a3b8;
  background: #fff;
}

.ops-business-single-svg-legend button.is-muted {
  color: #94a3b8;
  background: #f1f5f9;
  text-decoration: line-through;
  opacity: .62;
}

.ops-business-single-svg-legend button.is-muted i {
  opacity: .35;
}

.ops-business-single-svg-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 11px;
  font-weight: 850;
}

.ops-business-single-svg-legend i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.ops-business-single-hover-line,
.ops-business-single-tooltip-fo {
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease;
}

.ops-business-single-hover-day:hover .ops-business-single-hover-line,
.ops-business-single-hover-day:hover .ops-business-single-tooltip-fo {
  opacity: 1;
}

.ops-business-single-tooltip {
  max-height: 214px;
  overflow: auto;
  padding: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 26px rgba(15, 23, 42, .16);
  color: #0f172a;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}

.ops-business-single-tooltip strong,
.ops-business-single-tooltip span {
  display: flex;
  align-items: center;
}

.ops-business-single-tooltip strong {
  margin-bottom: 5px;
  font-size: 11px;
}

.ops-business-single-tooltip span {
  justify-content: space-between;
  gap: 8px;
  min-height: 18px;
  font-size: 10px;
  line-height: 1.2;
}

.ops-business-single-tooltip span i {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 999px;
}

.ops-business-single-tooltip span b {
  flex: 1 1 auto;
  min-width: 0;
  color: #475569;
  font-weight: 800;
}

.ops-business-single-tooltip span em {
  flex: 0 0 auto;
  color: #0f172a;
  font-style: normal;
  font-weight: 900;
}

.ops-business-single-table {
  grid-column: 1 / -1;
  max-height: 280px;
  overflow: auto;
}

.ops-business-single-table table {
  min-width: 980px;
}

.ops-business-single-table th,
.ops-business-single-table td {
  text-align: center;
}

.ops-business-column-config-body .ops-business-column-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.ops-business-column-config-body .ops-business-column-group-head label {
  color: #1d4ed8;
  font-size: 11px;
}

.ops-business-column-config-body .ops-business-column-group-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.ops-business-product-cell {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 210px;
}

.ops-business-product-thumb {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #94a3b8;
  font-size: 10px;
  font-style: normal;
}

img.ops-business-product-thumb,
.ops-business-product-thumb img {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: cover;
}

.ops-business-product-thumb.empty,
.ops-business-product-thumb span {
  color: #94a3b8;
  font-size: 10px;
}

html[data-ops-preview="linear"] #dataView .data-workbench-shell {
  gap: 10px;
}

html[data-ops-preview="linear"] #dataView .data-workbench-kpi-grid .data-workbench-panel-body {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

html[data-ops-preview="linear"] #dataView .data-workbench-kpi-grid article {
  grid-template-columns: minmax(0, 1fr) 64px;
  align-items: end;
  min-height: 76px;
  padding: 8px;
  background: #fff;
}

html[data-ops-preview="linear"] #dataView .data-workbench-kpi-grid article em {
  padding: 0;
  background: transparent;
}

html[data-ops-preview="linear"] #dataView .ops-business-kpi-footnote,
html[data-ops-preview="linear"] #dataView .ops-business-period-strip {
  display: none;
}

html[data-ops-preview="linear"] #dataView .ops-business-sparkline {
  display: block;
  width: 64px;
  height: 22px;
}

html[data-ops-preview="linear"] #dataView .ops-business-funnel {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

html[data-ops-preview="linear"] #dataView .ops-business-funnel-flow article {
  position: relative;
}

html[data-ops-preview="linear"] #dataView .ops-business-funnel-flow article:not(:last-child)::after {
  content: ">";
  position: absolute;
  top: 50%;
  right: -7px;
  z-index: 1;
  color: #94a3b8;
  font-weight: 900;
  transform: translateY(-50%);
}

html[data-ops-preview="linear"] #dataView .ops-business-chart-grid-reference {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(280px, .72fr);
}

html[data-ops-preview="linear"] #dataView .ops-business-chart-grid-reference .ops-business-chart-card.is-wide {
  grid-row: auto;
}

html[data-ops-preview="linear"] #dataView .ops-business-profit-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

html[data-ops-preview="linear"] #dataView .ops-business-profit-overview-grid article {
  min-width: 0;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

html[data-ops-preview="linear"] #dataView .ops-business-profit-overview-grid span,
html[data-ops-preview="linear"] #dataView .ops-business-profit-overview-grid small {
  display: block;
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
}

html[data-ops-preview="linear"] #dataView .ops-business-profit-overview-grid strong {
  display: block;
  margin: 5px 0 3px;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.1;
}

html[data-ops-preview="linear"] #dataView .ops-business-profit-overview-grid small.up {
  color: #047857;
}

html[data-ops-preview="linear"] #dataView .ops-business-profit-overview-grid small.down {
  color: #b91c1c;
}

html[data-ops-preview="linear"] #dataView .ops-business-detail-filters {
  justify-content: flex-start;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

html[data-ops-preview="linear"] #dataView #dataWorkbenchStructurePanel {
  display: none !important;
}

html[data-ops-preview="linear"] #dataView #dataWorkbenchTrendGrid > .data-workbench-panel-head {
  display: none;
}

html[data-ops-preview="linear"] #dataView .ops-business-data-catalog-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

html[data-ops-preview="linear"] #dataView .ops-business-data-catalog-summary article,
html[data-ops-preview="linear"] #dataView .ops-business-data-catalog-note,
html[data-ops-preview="linear"] #dataView .ops-business-data-series-grid article {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

html[data-ops-preview="linear"] #dataView .ops-business-data-catalog-summary span,
html[data-ops-preview="linear"] #dataView .ops-business-data-catalog-summary small,
html[data-ops-preview="linear"] #dataView .ops-business-data-catalog-note span,
html[data-ops-preview="linear"] #dataView .ops-business-data-series-grid span {
  display: block;
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
}

html[data-ops-preview="linear"] #dataView .ops-business-data-catalog-summary strong {
  display: block;
  margin: 4px 0 2px;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.1;
}

html[data-ops-preview="linear"] #dataView .ops-business-data-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

html[data-ops-preview="linear"] #dataView .ops-business-content-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

html[data-ops-preview="linear"] #dataView .ops-business-content-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #dce5f2;
  border-radius: 8px;
  background: #fff;
}

html[data-ops-preview="linear"] #dataView .ops-business-content-card > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

html[data-ops-preview="linear"] #dataView .ops-business-content-card strong {
  color: #0f172a;
  font-size: 13px;
  line-height: 1.25;
}

html[data-ops-preview="linear"] #dataView .ops-business-content-card span,
html[data-ops-preview="linear"] #dataView .ops-business-content-card p,
html[data-ops-preview="linear"] #dataView .ops-business-content-card small {
  margin: 0;
  color: #64748b;
  font-size: 11px;
  line-height: 1.45;
}

html[data-ops-preview="linear"] #dataView .ops-business-content-card b {
  color: #334155;
}

html[data-ops-preview="linear"] #dataView .ops-business-content-card small {
  padding-top: 6px;
  border-top: 1px solid #e2e8f0;
  color: #b45309;
}

html[data-ops-preview="linear"] #dataView .ops-business-data-source {
  min-width: 0;
  padding: 9px;
  border: 1px solid #dce5f2;
  border-radius: 8px;
  background: #fff;
}

html[data-ops-preview="linear"] #dataView .ops-business-data-source summary {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
  cursor: pointer;
}

html[data-ops-preview="linear"] #dataView .ops-business-data-source summary strong {
  color: #0f172a;
  font-size: 13px;
}

html[data-ops-preview="linear"] #dataView .ops-business-data-source summary span,
html[data-ops-preview="linear"] #dataView .ops-business-data-source p {
  color: #64748b;
  font-size: 11px;
  line-height: 1.45;
}

html[data-ops-preview="linear"] #dataView .ops-business-data-field-table {
  max-height: 260px;
  overflow: auto;
}

html[data-ops-preview="linear"] #dataView .ops-business-data-field-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

html[data-ops-preview="linear"] #dataView .ops-business-data-field-table th,
html[data-ops-preview="linear"] #dataView .ops-business-data-field-table td {
  padding: 5px 6px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
}

html[data-ops-preview="linear"] #dataView .ops-business-data-source-wide {
  margin-top: 10px;
}

html[data-ops-preview="linear"] #dataView .ops-business-data-series-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

html[data-ops-preview="linear"] #dataView .ops-business-data-series-grid strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: normal;
}

.ops-business-structure-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(220px, .9fr));
  gap: 10px;
}

.ops-business-structure-grid section {
  min-width: 0;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.ops-business-structure-grid section > strong {
  display: block;
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 13px;
}

.ops-business-bar-list {
  display: grid;
  gap: 7px;
}

.ops-business-bar-list > div {
  display: grid;
  grid-template-columns: minmax(120px, .85fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.ops-business-bar-list span,
.ops-business-bar-list em,
.ops-business-mini-list span,
.ops-business-mini-list small {
  min-width: 0;
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-business-mini-list {
  display: grid;
  gap: 6px;
}

.ops-business-mini-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
  align-items: center;
  padding: 7px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.ops-business-mini-list b {
  color: #0f172a;
  font-size: 13px;
}

.ops-business-mini-list small {
  grid-column: 1 / -1;
}

.ops-action-pill {
  display: inline-flex !important;
  width: max-content;
  max-width: 100%;
  min-height: 22px;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3 !important;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.data-workbench-detail-panel {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}

html[data-ops-preview="linear"] #qualitySiteView .quality-site-view {
  margin-top: 10px;
}

html[data-ops-preview="linear"] #qualitySiteView .quality-site-view .ops-data-module-head {
  margin-bottom: 8px;
  padding: 7px 10px 7px 13px;
}

.operating-date-controls {
  display: grid;
  grid-template-columns: minmax(280px, max-content) minmax(360px, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}

.operating-range-tabs,
.operating-range-inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.operating-range-tabs button,
.operating-range-inputs button {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-weight: 700;
}

.operating-range-tabs button.is-active,
.operating-range-tabs button.active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.operating-range-inputs label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.ops-data-module {
  margin-top: 22px;
  padding: 10px;
  border: 1px solid #d6deea;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 10px 24px rgba(15, 23, 42, .035);
  scroll-margin-top: 128px;
}

.ops-data-module[hidden] {
  display: none !important;
}

.ops-data-module.is-active {
  display: block;
}

.ops-data-module-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  margin: -2px -2px 10px;
  padding: 9px 12px 9px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: var(--module-bg, #f8fafc);
}

.ops-data-module-head::before {
  content: "";
  position: absolute;
  inset: 8px auto 8px 0;
  width: 4px;
  border-radius: 999px;
  background: var(--module-accent, var(--primary));
}

.ops-data-module-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
}

.ops-data-module-head span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.ops-data-module-blue { --module-accent: #2563eb; --module-bg: #eff6ff; }
.ops-data-module-blue .ops-data-module-head { border-color: #dbeafe; }
.ops-data-module-green { --module-accent: #0891b2; --module-bg: #ecfeff; }
.ops-data-module-green .ops-data-module-head { border-color: #cffafe; }
.ops-data-module-indigo { --module-accent: #4f46e5; --module-bg: #f5f7ff; }
.ops-data-module-indigo .ops-data-module-head { border-color: #e0e7ff; }
.ops-data-module-cyan { --module-accent: #0284c7; --module-bg: #f0f9ff; }
.ops-data-module-cyan .ops-data-module-head { border-color: #bae6fd; }
.ops-data-module-orange { --module-accent: #f97316; --module-bg: #fff7ed; }
.ops-data-module-orange .ops-data-module-head { border-color: #ffedd5; }
.ops-data-module-red { --module-accent: #dc2626; --module-bg: #fef2f2; }
.ops-data-module-red .ops-data-module-head { border-color: #fee2e2; }
.ops-data-module-slate { --module-accent: #64748b; --module-bg: #f8fafc; }
.ops-data-module-slate .ops-data-module-head { border-color: #e2e8f0; }

.ops-data-module-body > .panel,
.ops-data-module-body > section.panel,
.ops-data-module-body > .support-dock {
  margin: 0 0 10px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.ops-data-module-body > .panel:last-child,
.ops-data-module-body > section.panel:last-child,
.ops-data-module-body > .support-dock:last-child {
  margin-bottom: 0 !important;
}

.ops-subtab-nav {
  position: relative;
  top: auto;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
  padding: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: rgba(248, 250, 252, .95);
  backdrop-filter: blur(12px);
}

.ops-subtab-nav button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #64748b;
  font-size: 11.5px;
  font-weight: 760;
}

.ops-subtab-nav button:hover,
.ops-subtab-nav button.is-active {
  border-color: #dbeafe;
  background: #fff;
  color: #1e293b;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}

.ops-subtab-nav button.is-active {
  box-shadow: inset 0 -2px 0 #2563eb;
}

.ops-inline-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}

.ops-inline-switch button,
.ops-inline-toggle {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #dbe3f0;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.ops-inline-switch button.is-active,
.ops-inline-switch button:hover,
.ops-inline-toggle:hover {
  border-color: #c7d2fe;
  background: #eef2ff;
  color: #4338ca;
}

.quality-site-view {
  scroll-margin-top: 128px;
}

.quality-site-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "overview"
    "decision"
    "evidence"
    "filters"
    "status"
    "bulk";
  align-items: start;
  gap: 6px 8px;
}

.quality-site-overview-strip {
  grid-area: overview;
  display: grid;
  grid-template-columns: repeat(5, minmax(112px, 1fr));
  gap: 6px;
}

.quality-site-overview-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  white-space: nowrap;
}

.quality-site-overview-item b {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 760;
}

.quality-site-overview-item strong {
  color: #111827;
  font-size: 14px;
  line-height: 1;
}

.quality-site-overview-item.danger {
  border-color: #fecaca;
  background: #fff7f7;
  color: #991b1b;
}

.quality-site-overview-item.warn {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.quality-site-overview-item.sync {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.quality-site-overview-item.info {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.quality-site-overview-item.muted {
  color: #475569;
}

.quality-site-overview-item.is-clickable {
  cursor: pointer;
}

.quality-site-overview-item.is-clickable:hover,
.quality-site-overview-item.is-clickable:focus-visible,
.quality-site-overview-item.is-active,
.quality-site-overview-secondary em.is-clickable:hover,
.quality-site-overview-secondary em.is-clickable:focus-visible {
  border-color: #ef4444;
  box-shadow: inset 0 -2px 0 #ef4444;
  outline: 0;
}

.quality-site-decision-strip {
  grid-area: decision;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
}

.quality-site-decision-strip strong,
.quality-site-decision-strip span,
.quality-site-decision-strip em,
.quality-site-decision-strip small,
.quality-site-decision-strip mark {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-site-decision-strip strong {
  flex: 0 0 auto;
  color: #111827;
  font-size: 12px;
  font-weight: 900;
}

.quality-site-decision-strip span {
  flex: 0 1 auto;
  color: #111827;
  font-size: 12px;
  font-weight: 850;
}

.quality-site-workday-status {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 11px;
  font-weight: 950;
}

.quality-decision-confidence {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 900;
}

.quality-decision-confidence b {
  color: #475569;
  font-size: 10px;
  font-weight: 850;
}

.quality-decision-confidence.sync {
  border-color: #bbf7d0;
  background: #dcfce7;
  color: #166534;
}

.quality-decision-confidence.warn {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.quality-site-workday-status.danger {
  border-color: #fecaca;
  background: #fee2e2;
  color: #991b1b;
}

.quality-site-workday-status.warn {
  border-color: #fed7aa;
  background: #ffedd5;
  color: #9a3412;
}

.quality-site-workday-status.sync {
  border-color: #bbf7d0;
  background: #dcfce7;
  color: #166534;
}

.quality-site-decision-strip em {
  flex: 1 1 auto;
  padding: 2px 7px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 800;
}

.quality-site-decision-strip small {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 10.5px;
  font-weight: 760;
}

.quality-site-evidence-audit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 1 auto;
  min-width: 0;
  margin-left: auto;
}

.quality-site-evidence-audit i {
  display: inline-flex;
  align-items: center;
  max-width: 104px;
  min-height: 20px;
  padding: 0 6px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-site-evidence-audit i.danger {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.quality-site-evidence-audit i.warn {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.quality-site-evidence-audit i.info {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.quality-site-evidence-audit i.muted {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #475569;
}

.quality-site-decision-strip.danger {
  border-color: #fecaca;
  background: #fff7f7;
}

.quality-site-decision-strip.warn {
  border-color: #fed7aa;
  background: #fff7ed;
}

.quality-site-decision-strip.sync {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.quality-site-evidence-panel {
  grid-area: evidence;
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.quality-site-evidence-panel summary {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 9px;
  color: #475569;
  cursor: pointer;
  user-select: none;
}

.quality-site-evidence-panel summary strong,
.quality-site-evidence-panel summary span,
.quality-site-evidence-panel summary em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-site-evidence-panel summary strong {
  color: #334155;
  font-size: 11px;
  font-weight: 900;
}

.quality-site-evidence-panel summary span {
  color: #64748b;
  font-size: 10.5px;
  font-weight: 780;
}

.quality-site-evidence-panel summary em {
  justify-self: end;
  min-height: 20px;
  padding: 0 7px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}

.quality-site-evidence-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px;
  min-width: 0;
  align-items: start;
  padding: 6px 8px 8px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.quality-site-evidence-panel:not([open]) .quality-site-evidence-grid {
  display: none;
}

.quality-site-trend-strip {
  grid-column: 1;
  display: grid;
  grid-template-columns: max-content repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 5px 7px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.quality-site-trend-strip strong {
  color: #334155;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.quality-site-trend-strip button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 6px;
  min-width: 0;
  min-height: 26px;
  padding: 2px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
  text-align: left;
}

.quality-site-trend-strip button span,
.quality-site-trend-strip button small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-site-trend-strip button span {
  color: #334155;
  font-size: 11px;
  font-weight: 850;
}

.quality-site-trend-strip button b {
  color: #111827;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.quality-site-trend-strip button small {
  display: none;
  color: #64748b;
  font-size: 10px;
}

.quality-site-trend-strip button.new {
  border-color: #fecaca;
  background: #fef2f2;
}

.quality-site-trend-strip button.continued {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.quality-site-trend-strip button.baseline {
  border-color: #e2e8f0;
  background: #f8fafc;
}

.quality-site-trend-strip button:hover,
.quality-site-trend-strip button:focus-visible,
.quality-site-trend-strip button.is-active {
  border-color: #6366f1;
  box-shadow: inset 0 -2px 0 #6366f1;
  outline: 0;
}

.quality-site-judge-strip {
  grid-column: 2;
  display: grid;
  grid-template-columns: max-content repeat(5, minmax(64px, 1fr));
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 5px 7px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.quality-site-judge-strip strong {
  color: #334155;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.quality-site-judge-strip span {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-width: 0;
  min-height: 24px;
  padding: 0 6px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
}

.quality-site-judge-strip b,
.quality-site-judge-strip em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-site-judge-strip b {
  color: #64748b;
  font-size: 10px;
  font-weight: 850;
}

.quality-site-judge-strip em {
  color: #111827;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.quality-site-judge-strip span.danger {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.quality-site-judge-strip span.warn {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.quality-site-judge-strip span.sync {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.quality-site-judge-strip span.info {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.quality-site-judge-strip span.is-clickable {
  cursor: pointer;
}

.quality-site-judge-strip span.is-clickable:hover,
.quality-site-judge-strip span.is-clickable:focus-visible {
  border-color: #6366f1;
  box-shadow: inset 0 -2px 0 #6366f1;
  outline: 0;
}

.quality-site-skc-rail {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 5px 7px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  scrollbar-width: thin;
}

.quality-site-supplier-rail {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 8px;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  background: #f0f9ff;
  scrollbar-width: thin;
}

.quality-site-supplier-rail.is-primary {
  grid-column: 1 / -1;
  min-height: 42px;
  border-color: #7dd3fc;
  background: #f0f9ff;
  box-shadow: inset 3px 0 0 #0ea5e9;
}

.quality-site-supplier-rail.is-compact {
  min-height: 32px;
  gap: 5px;
  padding: 3px 6px;
  overflow: hidden;
}

.quality-site-supplier-rail.is-compact .quality-site-supplier-pill {
  grid-template-columns: minmax(0, 1fr) auto;
  flex: 1 1 0;
  max-width: none;
  min-height: 26px;
  padding: 2px 5px 2px 8px;
}

.quality-site-supplier-rail.is-compact .quality-site-supplier-pill > button {
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
}

.quality-site-supplier-rail.is-compact .quality-site-supplier-pill small {
  display: none;
}

.quality-site-supplier-rail.is-compact .quality-site-supplier-actions {
  gap: 3px;
}

.quality-site-supplier-rail.is-compact .quality-site-supplier-actions button {
  min-height: 20px;
  padding: 0 5px;
}

.quality-site-skc-rail strong {
  color: #334155;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.quality-site-supplier-rail > strong {
  flex: 0 0 auto;
  color: #0f3a56;
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.quality-site-skc-pill {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1px 4px;
  align-items: center;
  flex: 0 0 116px;
  min-width: 0;
  max-width: 128px;
  min-height: 26px;
  padding: 2px 7px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  cursor: pointer;
  text-align: left;
}

.quality-site-supplier-pill {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px 6px;
  align-items: center;
  flex: 0 0 236px;
  min-width: 0;
  max-width: 260px;
  min-height: 58px;
  padding: 4px 8px;
  border: 1px solid #7dd3fc;
  border-radius: 8px;
  background: #fff;
  color: #075985;
  text-align: left;
  box-shadow: inset 3px 0 0 #0ea5e9;
}

.quality-site-supplier-pill > button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 6px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.quality-site-supplier-actions {
  display: flex;
  gap: 5px;
  min-width: 0;
}

.quality-site-supplier-actions button {
  min-height: 22px;
  padding: 0 6px;
  border: 1px solid #bae6fd;
  border-radius: 6px;
  background: #f0f9ff;
  color: #0369a1;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}

.quality-site-supplier-actions button:last-child {
  border-color: #c7d2fe;
  background: #eef2ff;
  color: #3730a3;
}

.quality-site-skc-pill b,
.quality-site-skc-pill em,
.quality-site-skc-pill small,
.quality-site-supplier-pill b,
.quality-site-supplier-pill em,
.quality-site-supplier-pill small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-site-skc-pill b {
  color: #111827;
  font-size: 10px;
  font-weight: 900;
}

.quality-site-supplier-pill b {
  color: #0f172a;
  font-size: 10.5px;
  font-weight: 950;
}

.quality-site-skc-pill em {
  color: #1d4ed8;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
}

.quality-site-supplier-pill em {
  color: #0369a1;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
}

.quality-site-skc-pill small {
  display: none;
  grid-column: 1 / -1;
  color: #475569;
  font-size: 10px;
  font-weight: 760;
}

.quality-site-supplier-pill small {
  display: block;
  grid-column: 1 / -1;
  color: #475569;
  font-size: 10px;
  font-weight: 760;
}

.quality-site-skc-pill:hover,
.quality-site-skc-pill:focus-visible,
.quality-site-supplier-pill:hover {
  border-color: #6366f1;
  box-shadow: inset 0 -2px 0 #6366f1;
  outline: 0;
}

.quality-site-overview-secondary {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 5px;
  min-width: 0;
  margin-left: 6px;
  vertical-align: middle;
}

.quality-site-overview-secondary em {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 6px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 10px;
  font-style: normal;
  font-weight: 820;
  white-space: nowrap;
}

.quality-site-overview-secondary em.danger {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.quality-site-overview-secondary em.warn {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.quality-site-overview-secondary em.sync {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.quality-site-overview-secondary em.info {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.quality-site-overview-secondary em.is-clickable {
  cursor: pointer;
}

.quality-site-filters {
  grid-area: filters;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}

.quality-site-primary-filters {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(116px, .68fr) minmax(116px, .68fr) minmax(210px, 1.1fr) max-content;
  align-items: end;
  gap: 6px;
}

.quality-site-advanced-filters {
  min-width: 0;
  align-self: end;
}

.quality-site-advanced-filters[open] {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px;
  align-items: start;
}

.quality-site-advanced-filters summary {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid #dbe3f0;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
  user-select: none;
}

.quality-site-advanced-filters[open] summary {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.quality-site-advanced-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(112px, 1fr));
  gap: 6px;
  margin-top: 0;
  padding: 7px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.quality-site-filters label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.quality-site-filters select,
.quality-site-filters input {
  min-height: 29px;
  width: 100%;
  border: 1px solid #dbe3f0;
  border-radius: 7px;
  background: #fff;
  color: #111827;
  font-size: 12px;
}

.quality-site-filter-status {
  grid-area: status;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 28px;
  color: var(--muted);
  font-size: 11px;
}

.quality-site-filter-status > span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-site-filter-status b {
  color: var(--ink);
  font-size: 12px;
}

.quality-site-filter-status em {
  display: inline-flex;
  max-width: min(38vw, 420px);
  margin-left: 0;
  padding: 2px 7px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-style: normal;
  font-weight: 800;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-site-active-filters {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  margin-left: 6px;
  vertical-align: middle;
}

.quality-site-active-filters em,
.quality-site-active-filters button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 152px;
  min-height: 20px;
  margin-left: 0;
  padding: 0 6px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  font-size: 10px;
  font-style: normal;
  font-weight: 820;
  white-space: nowrap;
}

.quality-site-active-filters button {
  cursor: pointer;
}

.quality-site-active-filters button i {
  color: inherit;
  font-size: 11px;
  font-style: normal;
  line-height: 1;
  opacity: .72;
}

.quality-site-active-filters button:hover,
.quality-site-active-filters button:focus-visible {
  border-color: #6366f1;
  box-shadow: inset 0 -2px 0 #6366f1;
  outline: 0;
}

.quality-site-active-filters em.danger,
.quality-site-active-filters button.danger {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.quality-site-active-filters em.warn,
.quality-site-active-filters button.warn {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.quality-site-active-filters em.info,
.quality-site-active-filters button.info {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.quality-site-active-filters em.muted,
.quality-site-active-filters button.muted {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #475569;
}

.quality-site-filter-status button {
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid #dbe3f0;
  border-radius: 7px;
  background: #fff;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.quality-site-filter-status button:hover {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.quality-site-bulk-review {
  grid-area: bulk;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-height: 0;
  padding: 6px 8px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff7ed;
  color: #9a3412;
}

.quality-site-bulk-review[hidden] {
  display: none !important;
}

.quality-site-mode-switch {
  grid-area: bulk;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #f8fafc;
}

.quality-site-mode-buttons {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.quality-site-mode-switch button {
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  color: #334155;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.quality-site-mode-switch strong {
  color: #0f172a;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.quality-site-mode-switch button.is-active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.quality-site-mode-switch small {
  min-width: 0;
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-site-bulk-metrics,
.quality-site-bulk-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.quality-site-bulk-metrics {
  justify-content: flex-start;
}

.quality-site-bulk-actions {
  justify-content: flex-end;
}

.quality-site-quick-queues {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  padding-right: 2px;
}

.quality-site-bulk-review span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  color: #9a3412;
  font-size: 10.5px;
  font-weight: 850;
  white-space: nowrap;
}

.quality-site-bulk-review b {
  color: #dc2626;
  font-size: 13px;
}

.quality-site-bulk-risk {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: #fff;
  color: #9a3412;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 880;
  white-space: nowrap;
}

.quality-site-bulk-impact {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  max-width: min(42vw, 380px);
  padding: 0 7px;
  border: 1px solid #fecaca;
  border-radius: 999px;
  background: #fff;
  color: #b91c1c;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 880;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-site-bulk-mix {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  max-width: min(36vw, 340px);
  padding: 0 7px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 860;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-site-bulk-scope {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  max-width: min(30vw, 280px);
  padding: 0 7px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-site-operator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  color: #92400e;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.quality-site-operator input {
  width: 78px;
  min-width: 0;
  min-height: 26px;
  border: 1px solid #fdba74;
  border-radius: 7px;
  background: #fff;
  color: #111827;
  font-size: 11px;
  padding: 2px 7px;
}

.quality-site-bulk-review button {
  flex: 0 0 auto;
  min-height: 24px;
  padding: 0 7px;
  border: 1px solid #fdba74;
  border-radius: 7px;
  background: #fff;
  color: #9a3412;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
}

.quality-site-bulk-review button:hover:not(:disabled) {
  border-color: #f97316;
  background: #ffedd5;
}

.quality-site-quick-queues button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10.5px;
}

.quality-site-quick-queues button span {
  color: inherit;
  font-size: 10.5px;
}

.quality-site-quick-queues button b {
  min-width: 16px;
  color: inherit;
  font-size: 11px;
  text-align: right;
}

.quality-site-bulk-review .quality-site-quick-queues small {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 20px;
  max-width: none;
  padding: 0 6px;
  border: 1px dashed #fdba74;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: #92400e;
  font-size: 10px;
  font-weight: 850;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.quality-site-quick-queues button.danger {
  border-color: #fecaca;
  background: #fff;
  color: #b91c1c;
}

.quality-site-quick-queues button.warn {
  border-color: #fed7aa;
  background: #fff;
  color: #9a3412;
}

.quality-site-quick-queues button.info {
  border-color: #bfdbfe;
  background: #fff;
  color: #1d4ed8;
}

.quality-site-quick-queues button.is-active {
  color: #fff;
  box-shadow: 0 3px 8px rgba(15, 23, 42, .14);
}

.quality-site-quick-queues button.danger.is-active {
  border-color: #dc2626;
  background: #dc2626;
}

.quality-site-quick-queues button.warn.is-active {
  border-color: #ea580c;
  background: #ea580c;
}

.quality-site-quick-queues button.info.is-active {
  border-color: #2563eb;
  background: #2563eb;
}

.quality-site-sort-shortcut {
  border-color: #bfdbfe !important;
  background: #eff6ff !important;
  color: #1d4ed8 !important;
}

.quality-site-sort-shortcut:hover:not(:disabled),
.quality-site-sort-shortcut.is-active {
  border-color: #6366f1 !important;
  background: #eef2ff !important;
  color: #3730a3 !important;
}

.quality-site-sort-shortcut.is-active {
  box-shadow: inset 0 -2px 0 #6366f1;
}

.quality-site-bulk-review button.danger {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.quality-site-bulk-review button.danger:hover:not(:disabled) {
  border-color: #ef4444;
  background: #fee2e2;
}

.quality-site-bulk-review button:disabled {
  cursor: wait;
  opacity: .55;
}

.quality-site-bulk-review small {
  flex: 0 1 74px;
  min-width: 0;
  max-width: 92px;
  color: #92400e;
  font-size: 10.5px;
  font-weight: 720;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-site-data-health {
  grid-column: 2;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  padding: 5px 7px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.quality-site-data-health span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  max-width: 100%;
  padding: 0 8px;
  border: 1px solid #dbeafe;
  border-radius: 7px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 10.5px;
  font-weight: 760;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-site-data-health b {
  color: #475569;
  font-size: 10px;
}

.quality-site-data-health .quality-approval-gate {
  max-width: 132px;
  font-weight: 920;
}

.quality-site-data-health .quality-baseline-health {
  max-width: 176px;
  font-weight: 900;
}

.quality-approval-gate.sync {
  border-color: #86efac !important;
  background: #ecfdf5 !important;
  color: #047857 !important;
}

.quality-baseline-health.sync {
  border-color: #86efac !important;
  background: #ecfdf5 !important;
  color: #047857 !important;
}

.quality-approval-gate.warn {
  border-color: #fed7aa !important;
  background: #fff7ed !important;
  color: #c2410c !important;
}

.quality-baseline-health.warn {
  border-color: #fed7aa !important;
  background: #fff7ed !important;
  color: #c2410c !important;
}

.quality-health-compact {
  opacity: .88;
}

.quality-health-compact span {
  min-height: 22px;
  max-width: 160px;
  padding: 0 7px;
  background: #f8fafc;
  font-size: 10px;
}

.quality-site-data-health.is-partial span {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.quality-site-data-health.is-current span {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.quality-site-data-health.is-stale span {
  border-color: #facc15;
  background: #fef9c3;
  color: #854d0e;
}

.quality-site-data-health.is-future span {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.quality-site-risk-rail {
  grid-column: 2;
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  padding: 5px 7px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  scrollbar-width: thin;
}

.quality-site-risk-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  max-width: 180px;
  min-height: 24px;
  padding: 2px 7px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff7ed;
  color: #9a3412;
  cursor: pointer;
}

.quality-site-risk-pill:hover,
.quality-site-risk-pill:focus-visible,
.quality-site-risk-pill.is-active {
  border-color: #ef4444;
  background: #fff1f2;
  box-shadow: inset 0 -2px 0 #ef4444;
  outline: 0;
}

.quality-site-risk-pill b,
.quality-site-risk-pill em,
.quality-site-risk-pill small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-site-risk-pill b {
  color: #111827;
  font-size: 11.5px;
  font-weight: 850;
}

.quality-site-risk-pill em {
  justify-self: end;
  color: #dc2626;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.quality-site-risk-pill small {
  display: none;
  grid-column: 1 / -1;
  color: #9a3412;
  font-size: 10.5px;
}

.quality-site-table {
  margin-top: 6px;
  max-height: calc(100vh - 250px);
  min-height: 320px;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.quality-site-table table {
  min-width: 780px;
  width: 100%;
  table-layout: fixed;
}

.quality-site-table th,
.quality-site-table td {
  padding: 4px 7px;
}

.quality-site-table table th,
.quality-site-table table td {
  padding: 4px 7px;
}

.quality-site-table th:nth-child(4),
.quality-site-table td:nth-child(4) {
  border-left: 1px solid #e2e8f0;
  background-clip: padding-box;
}

.quality-site-table th {
  white-space: nowrap;
}

.quality-site-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f8fafc;
  box-shadow: inset 0 -1px 0 #e2e8f0;
}

.quality-col-product { width: 27%; }
.quality-col-risk { width: 26%; }
.quality-col-reason { width: 23%; }
.quality-col-review { width: 24%; }

.quality-site-row {
  position: relative;
}

.quality-site-row td:first-child {
  border-left: 3px solid transparent;
}

.quality-site-row.quality-site-danger td:first-child {
  border-left-color: #ef4444;
}

.quality-site-row.quality-site-warn td:first-child {
  border-left-color: #f97316;
}

.quality-site-row.quality-site-danger {
  background: #fff7f7;
}

.quality-site-row.quality-site-warn {
  background: #fffaf2;
}

.quality-site-row-focus {
  outline: 2px solid rgba(239, 68, 68, .28);
  outline-offset: -2px;
}

.quality-site-product {
  display: block;
  min-width: 0;
  width: 100%;
}

.quality-code-stack {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 7px;
  min-width: 0;
  padding: 0;
}

.quality-product-thumb {
  width: 50px;
  height: 66px;
  overflow: hidden;
  border: 1px solid #dbe4ef;
  border-radius: 6px;
  background: #f8fafc;
}

.quality-product-thumb:hover,
.quality-product-thumb:focus-within {
  position: relative;
  z-index: 8;
  overflow: visible;
}

.quality-product-thumb:hover img,
.quality-product-thumb:focus-within img {
  width: 96px;
  height: 128px;
  border: 1px solid #93c5fd;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .22);
}

.quality-product-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quality-product-thumb.is-empty {
  display: grid;
  place-items: center;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
}

.quality-code-head {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 3px;
  min-width: 0;
}

.quality-site-product strong,
.quality-site-product span,
.quality-site-product small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-site-product strong {
  color: #334155;
  font-size: 11px;
  line-height: 1.25;
}

.quality-code-main {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
}

.quality-primary-code {
  min-width: 0;
  max-width: 190px;
  font-weight: 820;
  user-select: text;
  cursor: text;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-all;
  line-height: 1.15;
}

.quality-primary-code.is-ditto {
  max-width: 190px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #334155;
  font-size: 11px;
  font-weight: 820;
  white-space: normal !important;
}

.quality-copy-skc {
  flex: 0 0 auto;
  min-height: 20px;
  padding: 0 6px;
  border: 1px solid #bfdbfe;
  border-radius: 5px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.quality-copy-supplier {
  border-color: #d8b4fe;
  background: #faf5ff;
  color: #6d28d9;
}

.quality-copy-skc:hover,
.quality-copy-skc:focus-visible,
.quality-copy-skc.is-copied {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.quality-code-tags {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.quality-site-product span,
.quality-site-product small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
}

.quality-site-product small {
  margin-top: 0;
}

.quality-level-chip,
.quality-action-chip,
.quality-layer-chip,
.quality-site-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 11px;
  font-weight: 800;
}

.quality-level-chip.danger {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.quality-level-chip.warn {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.quality-level-chip.good {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.quality-level-chip.info {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.quality-level-chip.muted {
  color: #475569;
}

.quality-layer-chip {
  display: inline-flex;
  flex: 0 0 auto;
  width: max-content;
  max-width: 100%;
  min-height: 19px;
  padding: 0 6px;
  font-size: 10px;
  letter-spacing: 0;
}

.quality-site-product .quality-layer-chip {
  display: inline-flex;
  width: max-content;
  max-width: 74px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-skc-site-count {
  display: inline-flex;
  width: max-content;
  max-width: 84px;
  min-height: 18px;
  padding: 0 6px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-layer-chip.stock-a {
  border-color: #16a34a;
  background: #dcfce7;
  color: #14532d;
  font-weight: 900;
}

.quality-layer-chip.stock-b {
  border-color: #65a30d;
  background: #ecfccb;
  color: #365314;
}

.quality-layer-chip.new-a {
  border-color: #7c3aed;
  background: #ede9fe;
  color: #4c1d95;
  font-weight: 900;
}

.quality-layer-chip.new {
  border-color: #0284c7;
  background: #e0f2fe;
  color: #075985;
}

.quality-layer-chip.transition {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.quality-layer-chip.active {
  border-color: #c4b5fd;
  background: #f5f3ff;
  color: #6d28d9;
}

.quality-layer-chip.muted {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #475569;
}

.quality-action-chip.danger {
  border-color: #fecaca;
  background: #fee2e2;
  color: #991b1b;
}

.quality-action-chip.warn {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.quality-action-chip.muted {
  color: #475569;
}

.quality-rate {
  white-space: nowrap;
}

.quality-action-chip {
  width: max-content;
  max-width: 100%;
  min-height: 20px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 900;
}

.quality-rate.danger { color: #dc2626; }
.quality-rate.warn { color: #b45309; }

.quality-site-risk-cell {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.quality-site-risk-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 3px;
  min-width: 0;
}

.quality-site-risk-head,
.quality-site-risk-sub {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.quality-site-risk-sub {
  gap: 4px;
}

.quality-site-risk-head strong {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #111827;
  font-size: 12.5px;
  font-weight: 900;
}

.quality-site-risk-head .quality-action-chip {
  flex: 0 0 auto;
}

.quality-priority-chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 18px;
  padding: 0 6px;
  border: 1px solid #fecaca;
  border-radius: 999px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.quality-site-risk-sub .quality-level-chip {
  flex: 0 0 auto;
  min-height: 18px;
  padding: 0 6px;
  font-size: 10px;
  opacity: .82;
}

.quality-site-risk-sub .quality-evidence-meta {
  flex: 1 1 auto;
}

.quality-site-compact-meta,
.quality-evidence-meta,
.quality-site-risk-cell small,
.quality-site-risk-cell span {
  color: var(--muted);
  font-size: 10px;
}

.quality-site-compact-meta,
.quality-evidence-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-evidence-meta b {
  font-size: 12px;
  line-height: 1.05;
}

.quality-evidence-meta b.danger { color: #dc2626; }
.quality-evidence-meta b.warn { color: #b45309; }

.quality-evidence-chip {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 18px;
  padding: 0 5px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.quality-evidence-chip.danger {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.quality-evidence-flag {
  display: inline-flex;
  margin-left: 0;
  min-height: 18px;
  padding: 1px 5px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 800;
}

.quality-site-reason {
  max-width: none;
  color: #334155;
  font-size: 11.5px;
  line-height: 1.25;
  overflow-wrap: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  overflow: hidden;
}

.quality-site-tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 3px;
  margin-top: 2px;
  min-width: 0;
  overflow: hidden;
}

.quality-evidence-line {
  align-items: center;
  max-width: 100%;
}

.quality-site-tags span {
  flex: 0 0 auto;
  min-height: 18px;
  max-width: 76px;
  border-color: #dbeafe;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 820;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-site-tags .quality-site-tag-more {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #475569;
}

.quality-site-tags .quality-issue-tag.danger {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.quality-site-tags .quality-issue-tag.warn {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.quality-site-tags .quality-issue-tag.info {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.quality-site-tags .quality-trend-chip {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-weight: 850;
  cursor: pointer;
}

.quality-site-tags .quality-trend-chip:hover,
.quality-site-tags .quality-trend-chip:focus-visible {
  border-color: #6366f1;
  background: #eef2ff;
  color: #3730a3;
  outline: 0;
}

.quality-site-tags .quality-trend-chip.new {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.quality-site-tags .quality-trend-chip.continued {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.quality-site-tags .quality-trend-chip.baseline {
  border-color: #e2e8f0;
  background: #f1f5f9;
  color: #64748b;
}

.quality-site-tags .quality-recheck-chip {
  border-color: #facc15;
  background: #fef9c3;
  color: #854d0e;
  font-weight: 900;
}

.quality-site-review {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  min-width: 0;
  width: 100%;
  border-radius: 7px;
  transition: background-color .16s ease, box-shadow .16s ease;
}

.quality-site-review.is-prefilled {
  background: #fff7ed;
  box-shadow: inset 2px 0 0 #f97316;
}

.quality-site-review.is-gated {
  background: #fff7ed;
  box-shadow: inset 2px 0 0 #f59e0b;
}

.quality-site-review-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 6px;
}

.quality-site-read-summary {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 4px 6px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  background: #f8fafc;
}

.quality-site-read-summary strong,
.quality-site-read-summary span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-site-read-summary strong {
  color: #0f172a;
  font-size: 12px;
}

.quality-site-read-summary span {
  color: #64748b;
  font-size: 11px;
}

.quality-site-table[data-review-mode="read"] .quality-site-review-main {
  display: none;
}

.quality-site-table[data-review-mode="approve"] .quality-site-read-summary {
  display: none;
}

.quality-review-controls {
  display: grid;
  grid-template-columns: minmax(120px, .42fr) minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.quality-review-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(86px, 1fr));
  gap: 5px;
  min-width: 0;
}

.quality-review-save-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(110px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.quality-review-action-row {
  min-width: 0;
}

.quality-review-state-row {
  min-width: 0;
}

.quality-site-review .quality-review-note {
  min-width: 0;
}

.quality-review-assist {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  margin-top: 0;
  overflow: hidden;
}

.quality-review-meta {
  display: flex;
}

.quality-review-meta:empty,
.quality-review-feedback-line:empty {
  display: none;
}

.quality-site-review select,
.quality-site-review input {
  min-height: 23px;
  height: 23px;
  min-width: 0;
  width: 100%;
  border: 1px solid #dbe3f0;
  border-radius: 7px;
  background: #fff;
  color: #111827;
  font-size: 12px;
  padding: 2px 7px;
}

.quality-site-review .quality-review-note {
  min-width: 0;
  background: #f8fafc;
  font-size: 10.5px;
  padding: 2px 6px;
}

.quality-site-review button {
  min-height: 28px;
  min-width: 0;
  width: auto;
  border: 1px solid #c7d2fe;
  border-radius: 7px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  cursor: pointer;
}

.quality-review-action-grid [data-quality-quick-status] {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.quality-review-action-grid button.danger {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.quality-review-action-grid button.warn {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.quality-review-action-grid button.neutral {
  border-color: #dbe3f0;
  background: #f8fafc;
  color: #334155;
}

.quality-review-system-suggestion {
  min-width: 0;
  overflow: hidden;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-site-review.is-prefilled button {
  border-color: #f97316;
  background: #ffedd5;
  color: #9a3412;
  font-weight: 900;
}

.quality-site-review button:disabled {
  cursor: not-allowed;
  opacity: .65;
}

.quality-site-review.is-saving button:disabled {
  cursor: wait;
}

.quality-site-review.is-gated button:disabled {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #92400e;
  cursor: not-allowed;
  opacity: .92;
}

.quality-review-feedback-line {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 160px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-review-gate-chip {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  max-width: 54px;
  min-height: 17px;
  padding: 0 5px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 10px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-review-gate-chip.sync {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.quality-review-gate-chip.warn {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.quality-site-review.is-prefilled .quality-review-feedback-line {
  max-width: 86px;
  color: #9a3412;
  font-weight: 850;
}

.quality-review-suggestion {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  max-width: 58px;
  min-height: 17px;
  padding: 0 5px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 900;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-review-suggestion.danger {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.quality-review-suggestion.warn {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.quality-row-impact-chip {
  display: inline-flex;
  align-items: center;
  flex: 0 1 74px;
  max-width: 86px;
  min-height: 17px;
  padding: 0 5px;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 10px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-row-impact-chip.danger {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.quality-row-impact-chip.warn {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.quality-row-impact-chip.info {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.quality-review-suggestion.is-clickable {
  cursor: pointer;
}

.quality-review-suggestion.is-clickable:hover,
.quality-review-suggestion.is-clickable:focus-visible {
  border-color: #6366f1;
  background: #eef2ff;
  color: #3730a3;
  outline: 0;
}

.quality-review-trail {
  display: inline-flex;
  flex: 0 0 auto;
  margin-left: 6px;
  padding: 1px 5px;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  background: #f0fdf4;
  color: #166534;
  font-weight: 850;
}

.quality-site-review.has-error small {
  color: #dc2626;
}

.quality-site-empty {
  display: grid;
  gap: 5px;
  justify-items: center;
  padding: 22px 18px;
  text-align: center;
}

.quality-site-empty strong {
  color: #111827;
  font-size: 13px;
}

.quality-site-empty span {
  max-width: 720px;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.quality-site-empty small {
  color: var(--muted);
  font-size: 11px;
}

.quality-site-expand-row td {
  padding: 9px 10px !important;
  background: #f8fafc;
  text-align: center;
}

.quality-site-expand-row button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #bfdbfe;
  border-radius: 7px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.quality-site-expand-row span {
  margin-left: 8px;
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 720px) {
  .quality-site-overview-strip,
  .quality-site-filters {
    grid-template-columns: 1fr;
  }

  .quality-site-table {
    overflow: visible;
  }

  .quality-site-table table,
  .quality-site-table thead,
  .quality-site-table tbody,
  .quality-site-table tr,
  .quality-site-table th,
  .quality-site-table td {
    display: block;
    min-width: 0;
  }

  .quality-site-table thead {
    display: none;
  }

  .quality-site-row {
    margin-bottom: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
  }

  .quality-site-row td {
    padding: 8px 10px;
    border-bottom: 0;
  }

  .quality-site-row td:first-child {
    border-left-width: 4px;
  }

  .quality-site-product,
  .quality-site-review {
    min-width: 0;
  }

  .quality-site-review {
    grid-template-columns: 1fr;
  }

  .quality-site-review-main {
    display: grid;
  }

  .quality-site-review-main select,
  .quality-site-review-main button,
  .quality-site-review > input {
    grid-column: auto;
    grid-row: auto;
  }
}

.ops-inline-toggle {
  margin-top: 8px;
}

.ops-detail-host {
  margin: 0 !important;
}

.ops-detail-host .support-dock-grid {
  display: block;
}

.ops-detail-panel {
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.ops-detail-panel[hidden] {
  display: none !important;
}

.ops-detail-panel > summary {
  display: none !important;
}

.ops-detail-panel > .fold-body {
  padding: 0 !important;
}

html[data-ops-preview="linear"] #overviewJudge .exec-hero {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}

html[data-ops-preview="linear"] #overviewJudge .exec-health {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

html[data-ops-preview="linear"] #overviewJudge .ops-kpi-card {
  min-height: 76px;
  padding: 10px;
}

html[data-ops-preview="linear"] #overviewJudge .ops-kpi-card:nth-child(3),
html[data-ops-preview="linear"] #overviewJudge .ops-kpi-card:nth-child(6) {
  display: none !important;
}

html[data-ops-preview="linear"] #overviewJudge .ops-kpi-card:nth-child(5) {
  display: block !important;
}

html[data-ops-preview="linear"] #overviewJudge .ops-kpi-card strong {
  font-size: 21px;
}

.ops-data-conclusion-text {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid #dbeafe;
  border-radius: 9px;
  background: #f8fbff;
}

.ops-data-conclusion-text strong {
  color: var(--ink);
  font-size: 13px;
}

.ops-data-conclusion-text p {
  margin: 0;
  color: #475569;
  font-size: 12px;
  line-height: 1.45;
}

.ops-toggle-switch b {
  color: inherit;
  font-size: 11px;
}

.ops-toggle-switch span {
  padding: 2px 6px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 10px;
  font-weight: 850;
}

.ops-toggle-switch.is-active span {
  background: #fee2e2;
  color: #b91c1c;
}

.ops-search-queue-controls {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: max-content;
}

.ops-search-queue-controls span {
  min-width: 46px;
  color: #334155;
  font-size: 11px;
  font-weight: 850;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.ops-non-exception-hidden {
  display: none !important;
}

.ops-search-match {
  outline: 2px solid #facc15 !important;
  outline-offset: 2px;
  background: #fffbea !important;
}

.ops-search-current {
  outline: 3px solid #2563eb !important;
  outline-offset: 3px;
  background: #eff6ff !important;
  box-shadow: 0 0 0 5px rgba(37, 99, 235, .16), 0 10px 28px rgba(37, 99, 235, .18) !important;
  animation: opsSearchPulse 1.4s ease-out 1;
}

.ops-search-hit-label {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 22px;
  margin: 0 6px 4px 0;
  padding: 0 8px;
  border: 1px solid #2563eb;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 11px;
  font-weight: 880;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(37, 99, 235, .22);
}

tr .ops-search-hit-label {
  display: flex;
  margin-bottom: 5px;
}

@keyframes opsSearchPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, .38), 0 10px 28px rgba(37, 99, 235, .18);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(37, 99, 235, 0), 0 10px 28px rgba(37, 99, 235, .18);
  }
}

.pending-group-card.ops-search-match,
.pending-group-card.ops-search-current,
.replenish-card.ops-search-match,
.replenish-card.ops-search-current,
.stock-risk-mini-card.ops-search-match,
.stock-risk-mini-card.ops-search-current {
  border-color: #2563eb !important;
}

tr.ops-search-current > td:first-child {
  box-shadow: inset 4px 0 0 #2563eb;
}

.ops-conclusion-inline-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.ops-conclusion-inline-kpis article {
  padding: 7px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.ops-conclusion-inline-kpis span,
.ops-conclusion-actions small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-conclusion-inline-kpis strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 13px;
}

.ops-conclusion-actions {
  margin-top: 2px;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.ops-conclusion-actions ol {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ops-conclusion-actions li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) minmax(90px, .55fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 5px 6px;
  border-radius: 7px;
  background: #f8fafc;
}

.ops-conclusion-actions b {
  color: #2563eb;
  font-size: 11px;
}

.ops-conclusion-actions li > span {
  overflow: hidden;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-chart-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.ops-chart-title strong {
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.2;
}

.ops-chart-title span {
  color: var(--muted);
  font-size: 11px;
}

.ops-mini-trend-panel,
.ops-country-visuals,
.ops-action-mix,
.ops-risk-summary,
.ops-quality-bars,
.ops-profit-visuals,
.ops-detail-chart-block,
.ops-spu-mini-bars {
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #fbfdff;
}

.ops-mini-trend-panel {
  margin-top: 8px;
  padding: 10px;
}

.ops-mini-trend-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ops-mini-trend-grid article {
  display: grid;
  grid-template-columns: minmax(0, .8fr) 156px;
  align-items: center;
  gap: 8px;
  min-height: 72px;
  padding: 8px 9px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.ops-mini-trend-grid span,
.ops-mini-trend-grid small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.ops-mini-trend-grid strong {
  display: block;
  margin: 2px 0;
  color: var(--ink);
  font-size: 17px;
}

.ops-mini-trend-grid small.up { color: #16a34a; }
.ops-mini-trend-grid small.down { color: #dc2626; }
.ops-mini-trend-grid small.flat { color: #64748b; }

.ops-sparkline {
  width: 156px;
  height: 54px;
  overflow: visible;
}

.ops-sparkline path {
  fill: none;
  stroke: #e5e7eb;
  stroke-width: 1;
}

.ops-sparkline polyline {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ops-empty-chart {
  display: grid;
  place-items: center;
  min-height: 48px;
  color: var(--muted);
  font-size: 11px;
  background: #f8fafc;
  border-radius: 7px;
}

.ops-country-visuals {
  margin: 10px 0;
  padding: 10px;
}

.ops-domain-pane {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.ops-domain-pane[hidden] {
  display: none !important;
}

.ops-domain-pane > .ops-module,
.ops-domain-pane > .fold-panel,
.ops-domain-pane > .ops-detail-panel {
  margin: 0 !important;
}

.ops-domain-pane .ops-module-head,
html[data-ops-preview="linear"] #dataWorkbenchRawDetails .support-dock-head {
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.ops-domain-pane .ops-module-head h3 {
  font-size: 12.5px;
}

.ops-domain-pane .ops-module-head span {
  font-size: 10.5px;
}

.ops-country-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 12px;
}

.ops-bar-list {
  display: grid;
  gap: 7px;
}

.ops-bar-list.dense {
  gap: 6px;
}

.ops-bar-row {
  display: grid;
  grid-template-columns: minmax(88px, .9fr) minmax(120px, 1.4fr) minmax(72px, auto);
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ops-bar-row span {
  overflow: hidden;
  color: #334155;
  font-size: 11.5px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-bar-row b,
.ops-delta-row b {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f7;
}

.ops-bar-row i,
.ops-delta-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #4f46e5;
}

.ops-bar-row em,
.ops-delta-row em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  text-align: right;
  white-space: nowrap;
}

.ops-delta-list {
  display: grid;
  gap: 7px;
}

.ops-delta-row {
  display: grid;
  grid-template-columns: minmax(74px, .8fr) minmax(72px, 1fr) 70px;
  align-items: center;
  gap: 7px;
}

.ops-delta-row span {
  overflow: hidden;
  color: #334155;
  font-size: 11.5px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-delta-row.up i { background: #16a34a; }
.ops-delta-row.down i { background: #dc2626; }
.ops-delta-row.flat i { background: #94a3b8; }

html[data-ops-preview="linear"] #selectedDateSnapshot .ops-site-card {
  display: grid;
  gap: 8px;
}

.ops-site-mini {
  display: grid;
  gap: 4px;
}

.ops-site-mini span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: center;
  gap: 7px;
}

.ops-site-mini span > i {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: #c7d2fe;
}

.ops-site-mini span:nth-child(2) > i { background: #bfdbfe; }
.ops-site-mini span:nth-child(3) > i { background: #bbf7d0; }

.ops-site-mini b {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 750;
}

.ops-action-mix {
  margin-bottom: 8px;
  padding: 9px 10px;
}

.ops-segment-bar {
  display: flex;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f7;
}

.ops-segment-bar i { display: block; min-width: 0; }
.ops-segment-bar .kind-0 { background: #f59e0b; }
.ops-segment-bar .kind-1 { background: #dc2626; }
.ops-segment-bar .kind-2 { background: #4f46e5; }
.ops-segment-bar .kind-3 { background: #f97316; }
.ops-segment-bar .kind-4 { background: #0ea5e9; }
.ops-segment-bar .kind-5 { background: #0891b2; }
.ops-segment-bar .kind-6 { background: #64748b; }

.ops-action-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.ops-action-badges span {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 3px 7px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  background: #fff;
}

.ops-action-badges b {
  color: var(--ink);
  font-size: 11px;
}

.ops-risk-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
  padding: 10px;
}

.ops-risk-summary article {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.ops-risk-summary div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.ops-risk-summary span {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 750;
}

.ops-risk-summary strong {
  color: var(--ink);
  font-size: 18px;
}

.ops-risk-summary b {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f7;
}

.ops-risk-summary i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.ops-quality-bars {
  margin-bottom: 10px;
  padding: 10px;
}

.ops-chart-switch {
  display: inline-flex;
  gap: 4px;
}

.ops-chart-switch button {
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid #dbe3f0;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.ops-chart-switch button.is-active {
  border-color: #c7d2fe;
  background: #eef2ff;
  color: #4338ca;
}

.ops-profit-visuals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
  padding: 10px;
}

.ops-profit-visuals section {
  min-width: 0;
}

.ops-stack-bar {
  display: flex;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f7;
}

.ops-stack-bar i,
.ops-stack-bar b {
  display: block;
  height: 100%;
}

.ops-stack-bar i { background: #4f46e5; }
.ops-stack-bar b { background: #cbd5e1; }

.ops-stack-legend {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.ops-stack-legend span {
  color: var(--muted);
  font-size: 11px;
}

.ops-detail-chart-block,
.ops-spu-mini-bars {
  margin-bottom: 10px;
  padding: 10px;
}

.ops-layer-compare {
  display: grid;
  gap: 7px;
}

.ops-layer-compare > div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1fr) 82px;
  align-items: center;
  gap: 8px;
}

.ops-layer-compare span {
  overflow: hidden;
  color: #334155;
  font-size: 11.5px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-layer-compare b {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f7;
}

.ops-layer-compare i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #4f46e5;
}

.ops-layer-compare i.muted {
  background: #94a3b8;
}

.ops-layer-compare em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  text-align: right;
}

html[data-ops-preview="linear"] #selectedDateSnapshot .section-head,
html[data-ops-preview="linear"] #actionDesk .section-head,
html[data-ops-preview="linear"] #conversionDiagnosis .section-head,
html[data-ops-preview="linear"] #products .section-head,
html[data-ops-preview="linear"] #quality .section-head,
html[data-ops-preview="linear"] #profit .section-head {
  margin-bottom: 8px;
}

html[data-ops-preview="linear"] #selectedDateSnapshot .ops-overview-grid {
  gap: 10px;
}

html[data-ops-preview="linear"] #selectedDateSnapshot .ops-overview-bottom {
  display: none;
}

html[data-ops-preview="linear"] #dataView #selectedDateSnapshot .ops-overview-pills {
  display: flex !important;
}

html[data-ops-preview="linear"] #dataView #selectedDateSnapshot .ops-overview-col:nth-child(2) {
  display: grid !important;
}

html[data-ops-preview="linear"] #dataView #selectedDateSnapshot .ops-overview-bottom {
  display: grid !important;
}

.ops-market-tips {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding: 9px 10px;
  border: 1px solid #cffafe;
  border-radius: 9px;
  background: #f8feff;
}

.ops-market-tips strong {
  color: #0f766e;
  font-size: 12px;
}

.ops-market-tips ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
}

.ops-market-tips li {
  color: #475569;
  font-size: 11.5px;
  line-height: 1.35;
}

html[data-ops-preview="linear"] #dataWorkbenchMarket .country-overview-layout {
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 10px;
}

html[data-ops-preview="linear"] #dataWorkbenchMarket .country-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

html[data-ops-preview="linear"] #dataWorkbenchMarket .country-card-compact {
  min-height: 0;
  padding: 10px;
}

.country-compact-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.country-compact-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
}

.country-compact-head strong {
  color: #0f766e;
  font-size: 15px;
}

.country-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.country-kpi-grid span {
  min-width: 0;
  padding: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  background: #fff;
}

.country-kpi-grid b,
.country-kpi-grid em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-kpi-grid b {
  color: var(--muted);
  font-size: 10px;
}

.country-kpi-grid em {
  margin-top: 2px;
  color: #334155;
  font-size: 11px;
  font-style: normal;
  font-weight: 760;
}

.country-market-background {
  margin-top: 7px;
  border-top: 1px dashed #e2e8f0;
  padding-top: 6px;
}

.country-market-background > summary,
.country-closure-background > summary {
  cursor: pointer;
  color: #2563eb;
  font-size: 11px;
  font-weight: 780;
}

.country-market-background:not([open]) > *:not(summary),
.country-closure-background:not([open]) > *:not(summary) {
  display: none !important;
}

.country-closure-background {
  grid-column: 1 / -1;
  padding: 8px 10px;
  border: 1px dashed #dbe3f0;
  border-radius: 8px;
  background: #fbfdff;
}

.ops-action-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}

.ops-action-filters button {
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid #dbe3f0;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.ops-action-filters button.is-active {
  border-color: #c7d2fe;
  background: #eef2ff;
  color: #4338ca;
}

.ops-action-hidden {
  display: none !important;
}

html[data-ops-preview="linear"] #dataView #selectedActionBoard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

html[data-ops-preview="linear"] #dataView #selectedActionBoard > *:not(.ops-action-hidden) {
  display: grid !important;
}

html[data-ops-preview="linear"] #dataView #selectedActionBoard .action-card {
  min-height: 0;
  padding: 9px;
  border-color: #e5e7eb;
  box-shadow: inset 3px 0 0 #cbd5e1, var(--shadow);
}

html[data-ops-preview="linear"] #dataView #selectedActionBoard .action-metrics {
  gap: 5px;
}

html[data-ops-preview="linear"] #dataView #selectedActionBoard .action-metrics div {
  padding: 5px 6px;
}

html[data-ops-preview="linear"] #dataView #products .products,
html[data-ops-preview="linear"] #dataView #quality .analysis-card-grid {
  gap: 8px;
}

html[data-ops-preview="linear"] #dataView #conversionDiagnosis .metric-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

html[data-ops-preview="linear"] #dataView #selectedProfitSummary .profit-summary {
  gap: 8px;
}

html[data-ops-preview="linear"] #dataView #activity {
  margin-top: 10px;
  border: 1px solid #edf2f7;
  border-radius: 9px;
  background: #fbfdff;
}

html[data-ops-preview="linear"] #quality[data-diag-mode="risk"] .quality-surface {
  display: none;
}

html[data-ops-preview="linear"] #quality[data-diag-mode="quality"] .exception-pool,
html[data-ops-preview="linear"] #quality[data-diag-mode="quality"] #opsRiskSummary,
html[data-ops-preview="linear"] #quality[data-diag-mode="quality"] #opsDiagRiskSwitch {
  display: none;
}

html[data-ops-preview="linear"] #quality[data-diag-mode="risk"] .section-head h2::after {
  content: " / 异常商品";
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

html[data-ops-preview="linear"] #quality[data-diag-mode="quality"] .section-head h2::after {
  content: " / 质量等级";
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.ops-market-category-top {
  margin-top: 10px;
}

.ops-product-category-pane {
  align-content: start;
}

.ops-product-category-pane #opsMarketCategoryTop {
  order: -2;
}

.ops-product-category-pane #categoryInsights {
  order: -1;
}

.ops-traffic-detail {
  margin-top: 10px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 9px !important;
  background: #fbfdff !important;
}

.ops-field-dictionary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ops-field-dictionary article {
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.ops-field-dictionary b,
.ops-field-dictionary span {
  display: block;
}

.ops-field-dictionary b {
  color: var(--ink);
  font-size: 11.5px;
}

.ops-field-dictionary span {
  margin-top: 3px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.45;
}

@media (max-width: 1320px) {
  html[data-ops-preview="linear"] #dataView #selectedActionBoard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

html[data-ops-preview="linear"] #dataWorkbenchRawDetails .support-dock {
  display: grid;
  gap: 8px;
}

html[data-ops-preview="linear"] #dataWorkbenchRawDetails .support-dock-head {
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

html[data-ops-preview="linear"] #dataWorkbenchRawDetails .support-dock-head h2 {
  font-size: 13px;
}

html[data-ops-preview="linear"] #dataWorkbenchRawDetails #productSitePanel {
  padding: 9px;
  border-radius: 10px;
  background: #fbfdff;
}

html[data-ops-preview="linear"] #dataWorkbenchRawDetails #productSiteMetricCards {
  display: none !important;
}

html[data-ops-preview="linear"] #dataWorkbenchRawDetails .site-switch-head h3 {
  font-size: 12px;
}

html[data-ops-preview="linear"] #dataWorkbenchRawDetails .site-switch-head p {
  font-size: 10.5px;
}

.ops-raw-toggle {
  margin-top: 8px;
}

.ops-raw-row-hidden {
  display: none !important;
}

html[data-ops-preview="linear"] #dataWorkbenchRawDetails .support-dock-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

html[data-ops-preview="linear"] #dataWorkbenchRawDetails .fold-panel,
html[data-ops-preview="linear"] #dataWorkbenchProfitPanel .fold-panel {
  border-color: #e2e8f0;
  border-radius: 9px;
  background: #fff;
}

html[data-ops-preview="linear"] table {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

html[data-ops-preview="linear"] th,
html[data-ops-preview="linear"] td {
  padding: 7px 8px;
}

@media (max-width: 1180px) {
  body.ops-shell-ready {
    grid-template-columns: 1fr;
  }
  .ops-sidebar {
    position: static;
    height: auto;
    grid-template-rows: auto auto auto auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .ops-sidebar-shop-dock {
    overflow: visible;
  }
  .ops-sidebar-main,
  .ops-sidebar-tools {
    overflow: visible;
  }
  .ops-sidebar-tools {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .ops-nav-list {
    display: flex;
    overflow-x: auto;
  }
  .ops-nav-item {
    width: auto;
    flex: 0 0 auto;
  }
  html[data-ops-preview="linear"] header,
  html[data-ops-preview="linear"] #shopPeriod,
  .ops-chart-legend,
  .ops-trend-kpi-grid,
  .ops-chart-summary-grid,
  html[data-ops-preview="linear"] .exec-health,
  html[data-ops-preview="linear"] #selectedDateSnapshot .ops-overview-col:first-child,
  html[data-ops-preview="linear"] #products .products {
    grid-template-columns: 1fr;
  }
  html[data-ops-preview="linear"] .toolbar,
  .ops-header-timestamp {
    grid-column: 1;
    justify-content: flex-start;
  }
  html[data-ops-preview="linear"] .toolbar {
    grid-row: 2;
  }
  .ops-header-timestamp {
    grid-row: 3;
  }
  .ops-mini-trend-grid,
  .ops-country-chart-grid,
  .ops-risk-summary,
  .ops-profit-visuals {
    grid-template-columns: 1fr;
  }
  .ops-mini-trend-grid article {
    grid-template-columns: minmax(0, 1fr);
  }
  .ops-overview-action-grid {
    grid-template-columns: 1fr;
  }
  .ops-layer-compare > div,
  .ops-bar-row,
  .ops-delta-row {
    grid-template-columns: 1fr;
  }
  .ops-bar-row em,
  .ops-delta-row em,
  .ops-layer-compare em {
    text-align: left;
  }
  html[data-ops-preview="linear"] #actionDesk {
    position: static;
    max-height: none;
  }
}

@media (min-width: 1181px) and (max-width: 1380px) {
  .ops-trend-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ops-chart-summary-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 720px) and (max-width: 1180px) {
  .ops-trend-kpi-grid,
  .ops-chart-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 719px) {
  .ops-trend-kpi-grid,
  .ops-chart-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ops-trend-kpi-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .ops-sparkline {
    justify-content: flex-start;
  }
}

/* Stock action workbench */
html[data-ops-preview="linear"] #stockOpsView.stock-ops-workbench {
  font-size: 12px;
}

html[data-ops-preview="linear"] #stockOpsView.stock-ops-workbench > .quick-nav[hidden],
html[data-ops-preview="linear"] #stockOpsView.stock-ops-workbench > .view-brief[hidden],
html[data-ops-preview="linear"] #stockOpsView.stock-ops-workbench > .ops-flow-nav[hidden] {
  display: none !important;
}

.stock-ops-nav {
  position: relative !important;
  top: auto !important;
  z-index: 1 !important;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 3px;
  padding: 4px;
  margin: 0 0 6px;
  overflow: visible;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: rgba(248, 250, 252, .96);
  backdrop-filter: blur(10px);
  box-shadow: none;
}

.stock-ops-nav button {
  min-height: 27px;
  min-width: 0;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock-ops-nav button:hover,
.stock-ops-nav button.active,
.stock-ops-nav button.is-active {
  border-color: #dbeafe;
  background: #fff;
  color: #0f172a;
}

.stock-ops-nav button.active,
.stock-ops-nav button.is-active {
  box-shadow: inset 0 -2px 0 #2563eb;
}

.stock-ops-tools {
  display: grid;
  grid-template-columns: auto minmax(220px, 360px) auto auto;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  margin: 0 0 6px;
  padding: 5px 6px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}

.stock-ops-tools button {
  min-height: 27px;
  padding: 0 8px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}

.stock-ops-tools button.is-active,
.stock-ops-tools button:hover {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

.stock-ops-tools label {
  display: grid;
  grid-template-columns: auto minmax(140px, 1fr);
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.stock-ops-tools input {
  width: 100%;
  min-height: 27px;
  padding: 0 8px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 11px;
}

.stock-ops-tools small {
  display: none;
  color: #64748b;
  font-size: 11px;
}

.stock-ops-tools.is-searching small {
  display: inline;
}

.stock-ops-source-context {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: 8px 0 12px;
  padding: 10px 12px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff7ed;
  color: #7c2d12;
}

.stock-ops-source-context strong {
  font-size: 13px;
}

.stock-ops-source-context span {
  min-width: 0;
  overflow: hidden;
  color: #9a3412;
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock-ops-source-context button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #fdba74;
  border-radius: 7px;
  background: #fff;
  color: #9a3412;
  font-size: 12px;
  font-weight: 900;
}

.stock-copy-preview {
  grid-column: 1 / -1;
  max-width: 760px;
  padding: 9px 11px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #eff6ff;
  color: #334155;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
}

.stock-copy-preview[hidden] {
  display: none !important;
}

.stock-copy-preview strong {
  display: block;
  margin-bottom: 5px;
  color: #1d4ed8;
  font-size: 12px;
}

.stock-copy-preview ol {
  display: grid;
  gap: 3px;
  margin: 0;
  padding-left: 18px;
}

.stock-copy-preview li {
  color: #475569;
  font-size: 11px;
  line-height: 1.45;
}

.stock-ops-pane {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.stock-ops-pane[hidden] {
  display: none !important;
}

.stock-pane-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #2563eb;
  border-radius: 10px;
  background: linear-gradient(180deg, #fff, #f8fafc);
}

.stock-pane-title {
  min-width: 0;
}

.stock-pane-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
}

.stock-pane-head p {
  margin: 0;
  color: #64748b;
  font-size: 11px;
  line-height: 1.45;
}

.stock-pane-head p {
  margin-top: 2px;
}

.stock-pane-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.stock-pane-actions:empty {
  display: none;
}

.stock-pane-actions .mini-action-btn {
  min-height: 30px;
  white-space: nowrap;
}

.stock-ops-pane-green .stock-pane-head { border-left-color: #16a34a; }
.stock-ops-pane-orange .stock-pane-head { border-left-color: #ea580c; }
.stock-ops-pane-amber .stock-pane-head { border-left-color: #f59e0b; }
.stock-ops-pane-cyan .stock-pane-head { border-left-color: #0891b2; }
.stock-ops-pane-slate .stock-pane-head { border-left-color: #64748b; }

.stock-pane-body {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.stock-pane-body > .panel,
.stock-pane-body > .surface-block,
.stock-pane-body > .note {
  margin: 0 !important;
}

html[data-ops-preview="linear"] #stockOpsView .section-head {
  padding-block: 8px;
}

html[data-ops-preview="linear"] #stockOpsView .section-head.stock-inner-head-hidden[hidden] {
  display: none !important;
}

html[data-ops-preview="linear"] #stockOpsView .section-head h2,
html[data-ops-preview="linear"] #stockOpsView .section-head h3 {
  font-size: 13px;
}

html[data-ops-preview="linear"] #stockOpsView .section-head span,
html[data-ops-preview="linear"] #stockOpsView .section-actions span {
  font-size: 11px;
}

html[data-ops-preview="linear"] .ops-sensitive-export-cue {
  display: flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid #fed7aa;
  border-radius: 7px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

html[data-ops-preview="linear"] #stockOpsView .metric-grid {
  gap: 8px;
}

html[data-ops-preview="linear"] #stockOpsView .ops-kpi-card,
html[data-ops-preview="linear"] #stockOpsView .stock-metric-card {
  padding: 10px;
}

html[data-ops-preview="linear"] #stockOpsView .replenishment-board {
  gap: 8px;
  margin-bottom: 0;
}

html[data-ops-preview="linear"] #stockOpsView .replenish-card {
  min-height: 0;
  padding: 10px 10px 10px 13px;
}

html[data-ops-preview="linear"] #stockOpsView .replenish-card strong {
  font-size: 16px;
}

html[data-ops-preview="linear"] #stockOpsView .replenish-card b,
html[data-ops-preview="linear"] #stockOpsView .replenish-card small {
  font-size: 11px;
}

#stockOpsView.stock-only-executable #opsReplenishmentActionBoard .replenish-card.supplier,
#stockOpsView.stock-only-executable #opsReplenishmentActionBoard .replenish-card.missing,
#stockOpsView.stock-only-executable #opsReplenishmentActionBoard .replenish-card.closed {
  display: none;
}

.stock-table-toggle {
  justify-self: start;
  margin-top: -2px;
}

.stock-limit-hidden {
  display: none !important;
}

.stock-pending-aux-tags {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: -2px;
}

.stock-pending-aux-tags span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 26px;
  padding: 3px 9px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.stock-pending-aux-tags b {
  color: #0f172a;
  font-weight: 900;
}

/* Stock health check */
html[data-ops-preview="linear"] #stockView.stock-health-workbench > .quick-nav[hidden],
html[data-ops-preview="linear"] #stockView.stock-health-workbench > .view-brief[hidden],
html[data-ops-preview="linear"] #stockView.stock-health-workbench > #inventory[hidden],
html[data-ops-preview="linear"] #stockView.stock-health-workbench > #layerChange[hidden],
html[data-ops-preview="linear"] #stockView.stock-health-workbench > #layerBreakage[hidden],
html[data-ops-preview="linear"] #stockView.stock-health-workbench > #layerAgeStock[hidden],
html[data-ops-preview="linear"] #stockView.stock-health-workbench > .legacy-stock-ops[hidden] {
  display: none !important;
}

.stock-health-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  padding: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: rgba(248, 250, 252, .96);
  box-shadow: none;
}

.stock-health-status-bar {
  display: grid;
  grid-template-columns: minmax(128px, .42fr) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin: 0 0 8px;
  padding: 7px 9px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  box-shadow: none;
}

.stock-health-status-copy strong {
  display: block;
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
}

.stock-health-status-copy span {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 10px;
  line-height: 1.3;
}

.stock-health-status-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  align-items: center;
}

.stock-health-status-items label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
}

.stock-health-status-items input,
.stock-health-status-items select,
.stock-health-status-items button {
  min-height: 28px;
  border: 1px solid #dbe3ef;
  border-radius: 7px;
  background: #fff;
  color: #0f172a;
  font-size: 11px;
  font-weight: 800;
}

.stock-health-status-items input,
.stock-health-status-items select {
  padding: 0 8px;
}

.stock-health-status-items button {
  padding: 0 9px;
  cursor: pointer;
}

.health-hard-redline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
  padding: 10px 12px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff7ed;
}

.health-hard-redline strong {
  color: #9a3412;
  font-size: 13px;
  font-weight: 950;
}

.health-hard-redline span {
  color: #7c2d12;
  font-size: 12px;
  line-height: 1.45;
  text-align: right;
}

.health-hard-redline.danger {
  border-color: #fecaca;
  background: #fef2f2;
}

.health-hard-redline.danger strong,
.health-hard-redline.danger span {
  color: #991b1b;
}

.health-hard-redline.sync {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.health-hard-redline.sync strong,
.health-hard-redline.sync span {
  color: #166534;
}

.stock-health-snapshot-picker {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.stock-health-snapshot-picker label {
  margin: 0;
}

.stock-health-snapshot-picker select {
  min-width: 132px;
  width: auto;
  max-width: 156px;
}

.stock-health-snapshot-picker button {
  background: #fff;
}

.stock-health-source-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 7px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 10.5px;
  font-weight: 850;
}

.stock-health-tab-buttons {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 6px;
}

.stock-health-nav button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.stock-health-risk-switch {
  margin-left: auto;
}

.stock-health-nav button:hover,
.stock-health-nav button.active,
.stock-health-nav button.is-active {
  border-color: #dbeafe;
  background: #fff;
  color: #0f172a;
  box-shadow: inset 0 -2px 0 #2563eb;
}

.stock-health-pane {
  display: grid;
  gap: 10px;
}

.stock-health-pane[hidden] {
  display: none !important;
}

.stock-health-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.stock-health-kpis article,
.stock-chart-card,
.health-score-card,
.health-trend-card,
.health-structure-card,
.health-top-risk,
.health-action-card,
.stock-risk-mini-card,
.stock-change-card,
.stock-age-grid article {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .045);
}

.stock-health-kpis article {
  min-width: 0;
  padding: 10px;
}

.stock-health-kpis span,
.stock-health-kpis small {
  display: block;
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock-health-kpis strong {
  display: block;
  margin: 4px 0 2px;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.1;
}

.stock-health-dashboard {
  display: grid;
  grid-template-columns: 1.15fr 1fr .95fr .95fr;
  gap: 10px;
  align-items: stretch;
}

.stock-health-overview-grid {
  grid-template-columns: 1.08fr minmax(0, 1.18fr) minmax(0, .98fr);
}

.stock-health-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, .8fr);
  gap: 10px;
}

.health-score-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
}

.health-ring {
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#16a34a calc(var(--score) * 1%), #e2e8f0 0);
  position: relative;
}

.health-score-card.warn .health-ring { background: conic-gradient(#f59e0b calc(var(--score) * 1%), #e2e8f0 0); }
.health-score-card.danger .health-ring { background: conic-gradient(#dc2626 calc(var(--score) * 1%), #e2e8f0 0); }

.health-ring::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: #fff;
}

.health-ring strong,
.health-ring span {
  position: relative;
  z-index: 1;
}

.health-ring strong {
  align-self: end;
  color: #0f172a;
  font-size: 32px;
  line-height: 1;
}

.health-ring span {
  align-self: start;
  color: #64748b;
  font-size: 12px;
}

.health-score-copy h2 {
  margin: 2px 0 4px;
  color: #0f172a;
  font-size: 20px;
}

.health-score-copy span,
.health-score-copy p,
.health-rule-note,
.trend-foot,
.health-card-head span {
  color: #64748b;
  font-size: 11px;
}

.health-subscore {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
}

.health-subscore div,
.structure-bars div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: center;
}

.health-subscore span,
.structure-bars span {
  color: #64748b;
  font-size: 11px;
}

.health-subscore b,
.structure-bars b,
.stock-age-grid b {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.health-subscore i,
.structure-bars i,
.stock-age-grid i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #16a34a;
}

.structure-bars .warn i { background: #f59e0b; }
.structure-bars .danger i { background: #dc2626; }
.structure-bars .slate i { background: #64748b; }
.structure-bars .blue i { background: #2563eb; }

.stock-bars-large {
  display: grid;
  gap: 10px;
}

.stock-bars-large div {
  grid-template-columns: 96px minmax(0, 1fr) 88px;
}

.health-subscore em,
.structure-bars em {
  color: #0f172a;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  text-align: right;
}

.health-rule-note {
  grid-column: 1 / -1;
}

.health-trend-card,
.health-structure-card,
.health-top-risk,
.health-action-card,
.stock-chart-card {
  padding: 12px;
}

.health-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.health-card-head strong {
  color: #0f172a;
  font-size: 13px;
}

.health-trend-svg {
  width: 100%;
  height: 118px;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fafc, #fff);
}

.health-trend-svg .safe-line {
  stroke: #f59e0b;
  stroke-width: 1.2;
  stroke-dasharray: 4 4;
}

.health-trend-svg .trend-line {
  fill: none;
  stroke: #2563eb;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trend-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
}

.top-risk-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 8px;
  padding: 7px 0;
  border-top: 1px solid #e2e8f0;
}

.top-risk-row.has-thumb {
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
}

.top-risk-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.top-risk-main {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.top-risk-row b,
.top-risk-row span,
.top-risk-row i {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-risk-row span {
  color: #64748b;
  font-size: 11px;
}

.top-risk-row i,
.top-risk-row em {
  flex: 0 0 auto;
  font-style: normal;
}

.top-risk-row i {
  padding: 2px 6px;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 10px;
  font-weight: 850;
}

.top-risk-row i.danger {
  background: #fef2f2;
  color: #dc2626;
}

.top-risk-row em {
  color: #dc2626;
  font-size: 12px;
  font-weight: 900;
}

.health-action-card {
  display: grid;
  align-content: start;
  gap: 10px;
}

.health-action-card p {
  margin: 0;
  color: #334155;
  font-size: 13px;
  line-height: 1.55;
}

.health-action-list {
  display: grid;
  gap: 7px;
}

.health-action-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 9px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 750;
}

.health-action-list div.danger {
  background: #fef2f2;
  color: #b91c1c;
}

.health-action-list div.warn {
  background: #fff7ed;
  color: #c2410c;
}

.health-action-list div.info {
  background: #eff6ff;
  color: #1d4ed8;
}

.health-action-list strong {
  color: inherit;
  font-size: 12px;
}

.health-action-card button {
  justify-self: start;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #bfdbfe;
  border-radius: 9px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.stock-pane-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}

.stock-pane-toolbar button,
.stock-risk-mini-card button {
  min-height: 30px;
  border: 1px solid #dbe3ef;
  border-radius: 9px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 850;
}

.stock-pane-toolbar button.is-active,
.stock-risk-mini-card button:hover {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

.stock-shortage-ops-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid #fecaca;
  border-left: 4px solid #dc2626;
  border-radius: 10px;
  background: #fff7ed;
}

.stock-shortage-ops-summary div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.stock-shortage-ops-summary strong {
  color: #991b1b;
  font-size: 13px;
}

.stock-shortage-ops-summary span {
  color: #7c2d12;
  font-size: 12px;
  line-height: 1.45;
}

.stock-shortage-ops-summary button {
  flex: 0 0 auto;
  min-height: 32px;
  border: 1px solid #fb923c;
  border-radius: 9px;
  background: #ea580c;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.stock-shortage-ops-summary button:disabled {
  border-color: #e2e8f0;
  background: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
}

.stock-risk-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.stock-risk-mini-card {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  padding: 11px;
}

.stock-risk-card-side {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 8px;
}

.stock-risk-card-data {
  min-width: 0;
  display: block;
}

.stock-risk-card-main {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.stock-product-thumb,
.stock-risk-thumb {
  width: 56px;
  height: 74px;
  display: grid;
  overflow: hidden;
  place-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
  color: #475569;
  font-size: 12px;
  font-weight: 900;
  flex: 0 0 auto;
}

.stock-product-thumb img,
.stock-risk-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stock-risk-mini-card strong,
.stock-risk-mini-card span,
.stock-risk-mini-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock-risk-mini-card small,
.risk-mini-meta span {
  color: #64748b;
  font-size: 11px;
}

.risk-mini-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.risk-mini-meta b {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
}

.risk-mini-meta b.warn { color: #b45309; background: #fffbeb; }
.risk-mini-meta b.danger { color: #b91c1c; background: #fef2f2; }

.stock-risk-size-wrap {
  display: block;
  margin-top: 0;
}

.stock-risk-size-list {
  display: grid;
  gap: 0;
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  overflow-x: auto;
}

.stock-risk-size-head,
.stock-risk-size-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.3fr) 92px 72px 76px 76px 70px 76px 82px 76px 88px 76px 76px 86px;
  align-items: center;
  min-width: 1160px;
}

.stock-risk-size-head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.stock-risk-size-head span {
  padding: 8px 9px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.stock-risk-size-head span:first-child {
  text-align: left;
}

.stock-risk-size-main {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 8px 9px;
}

.stock-risk-size-main strong {
  min-width: 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.3;
}

.stock-risk-size-main small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.stock-risk-size-tag,
.stock-risk-size-cell {
  min-width: 0;
  padding: 8px 9px;
  border-left: 1px solid #eef2f7;
  color: var(--ink);
  font-size: 11px;
  text-align: center;
}

.stock-risk-size-tag {
  display: flex;
  align-items: center;
  justify-content: center;
}

.stock-risk-size-cell {
  font-variant-numeric: tabular-nums;
}

.stock-risk-size-cell.is-strong {
  color: #1d4ed8;
  font-weight: 800;
  background: #f8fbff;
}

.stock-risk-size-row {
  border-bottom: 1px solid #eef2f7;
}

.stock-risk-size-row:last-child {
  border-bottom: 0;
}

.stock-risk-size-row.danger {
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.08) 0 3px, #fffdfd 3px);
}

.stock-risk-size-row.warn {
  background: #fffaf0;
}

.stock-risk-size-empty {
  padding: 10px;
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 1080px) {
  .stock-risk-mini-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .stock-risk-size-list {
    border-radius: 0;
  }

  .stock-risk-size-row {
    min-width: 1080px;
  }
}

.stock-structure-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.stock-detail-link {
  justify-self: start;
  min-height: 30px;
  margin-top: 10px;
  padding: 0 11px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #fff;
  color: #2563eb;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.stock-detail-link:hover {
  background: #eff6ff;
}

.stock-structure-layout-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stock-change-hint {
  margin: 0;
  padding: 9px 11px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
}

.stock-change-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stock-change-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 11px;
}

.stock-change-card strong,
.stock-change-card span,
.stock-change-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock-change-card span,
.stock-change-card small,
.stock-change-card p {
  color: #64748b;
  font-size: 11px;
}

.stock-change-arrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 11px;
  font-weight: 900;
}

.stock-change-arrow i {
  color: #2563eb;
  font-style: normal;
}

.stock-change-card em {
  grid-column: 2 / 4;
  justify-self: start;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fffbeb;
  color: #b45309;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.stock-change-card em.muted {
  background: #f1f5f9;
  color: #64748b;
}

.stock-change-card p {
  grid-column: 1 / -1;
  margin: 0;
}

.stock-empty-state {
  padding: 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  color: #64748b;
  font-size: 13px;
  text-align: center;
}

.stock-ops-overview-empty {
  display: grid;
  gap: 6px;
}

.stock-ops-overview-empty[hidden] {
  display: none !important;
}

.stock-ops-overview-empty strong {
  color: #0f172a;
  font-size: 14px;
}

.stock-ops-overview-empty span {
  color: #64748b;
  font-size: 12px;
}

.stock-ops-execution-preview {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #fff;
}

.stock-ops-execution-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.stock-ops-execution-head strong {
  color: #0f172a;
  font-size: 13px;
}

.stock-ops-execution-head span {
  color: #64748b;
  font-size: 11px;
}

.stock-ops-execution-table {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.stock-ops-execution-table table {
  min-width: 900px;
  width: 100%;
  table-layout: auto;
}

.stock-ops-direct-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(112px, auto)) minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 8px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
}

.stock-ops-direct-actions button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #93c5fd;
  border-radius: 7px;
  background: #fff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.stock-ops-direct-actions button:hover,
.stock-ops-direct-actions button:focus-visible {
  border-color: #2563eb;
  background: #dbeafe;
  outline: none;
}

.stock-ops-direct-actions small {
  color: #475569;
  font-size: 11px;
  line-height: 1.35;
}

.stock-ops-execution-table th,
.stock-ops-execution-table td {
  padding: 7px 8px;
  border-bottom: 1px solid #edf2f7;
  color: #334155;
  font-size: 11px;
  text-align: left;
  vertical-align: top;
}

.stock-ops-execution-table th {
  background: #f8fafc;
  color: #64748b;
  font-weight: 850;
}

.stock-ops-execution-table th:nth-child(1),
.stock-ops-execution-table td:nth-child(1) {
  width: 12%;
}

.stock-ops-execution-table th:nth-child(2),
.stock-ops-execution-table td:nth-child(2),
.stock-ops-execution-table th:nth-child(3),
.stock-ops-execution-table td:nth-child(3) {
  width: 16%;
}

.stock-ops-execution-table th:nth-child(4),
.stock-ops-execution-table td:nth-child(4) {
  width: 10%;
  text-align: right;
}

.stock-ops-execution-table th:nth-child(5),
.stock-ops-execution-table td:nth-child(5) {
  width: 34%;
}

.stock-ops-execution-table th:nth-child(6),
.stock-ops-execution-table td:nth-child(6) {
  width: 12%;
  text-align: right;
}

.stock-ops-execution-table td span {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 7px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 850;
}

.stock-ops-execution-evidence {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.stock-ops-execution-evidence b {
  width: max-content;
  max-width: 100%;
  padding: 2px 7px;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  background: #f0fdf4;
  color: #166534;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.stock-ops-execution-evidence small {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  color: #64748b;
  font-size: 10.5px;
  line-height: 1.35;
}

.stock-ops-execution-qty {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  padding: 2px 7px;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  background: #f0fdf4;
  color: #166534;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.stock-ops-execution-basis {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  color: #64748b;
  font-size: 10.5px;
  line-height: 1.35;
}

.stock-ops-execution-link {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border: 1px solid #bfdbfe;
  border-radius: 7px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.stock-ops-execution-link:hover,
.stock-ops-execution-link:focus-visible {
  border-color: #60a5fa;
  background: #dbeafe;
  outline: none;
}

.stock-age-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.stock-age-grid article {
  display: grid;
  gap: 6px;
  padding: 10px;
}

.stock-age-grid strong {
  color: #0f172a;
  font-size: 13px;
}

.stock-age-grid span,
.stock-age-grid small {
  color: #64748b;
  font-size: 11px;
}

.stock-risk-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}

.stock-risk-detail-table {
  max-height: 560px;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.stock-risk-batch-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, auto);
  align-items: center;
  gap: 8px;
  margin: 10px 0 8px;
  padding: 10px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f8fbff;
}

.stock-risk-batch-tools div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.stock-risk-batch-tools strong {
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
}

.stock-risk-batch-tools span {
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
}

.stock-risk-batch-tools button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #fff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.stock-risk-batch-tools button:hover,
.stock-risk-batch-tools button:focus-visible {
  border-color: #60a5fa;
  background: #eff6ff;
  outline: none;
}

.stock-risk-filter-bar button {
  min-height: 28px;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.stock-risk-filter-bar button.is-active {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

#stockRiskFilterCount {
  align-self: center;
  margin-left: auto;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.stock-target-compact {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 8px;
}

.stock-target-compact .supplier-target-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stock-target-compact .supplier-target-item {
  min-width: 112px;
  padding: 6px 7px;
}

.stock-target-compact .supplier-target-item input {
  max-width: 58px;
  min-height: 26px;
  font-size: 12px;
}

.stock-target-compact .supplier-target-summary {
  align-self: center;
  max-width: 260px;
  font-size: 11px;
}

html[data-ops-preview="linear"] .supplier-target-item.is-draft {
  border-color: #f59e0b;
  background: #fffbeb;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, .08);
}

html[data-ops-preview="linear"] .supplier-target-item.is-draft small {
  color: #b45309;
  font-weight: 900;
}

html[data-ops-preview="linear"] .supplier-target-apply {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

html[data-ops-preview="linear"] .supplier-target-undo {
  color: #92400e;
  border-color: #fde68a;
  background: #fffbeb;
}

.stock-pending-tabs {
  position: relative !important;
  top: auto !important;
  margin: 0 0 8px;
}

html[data-ops-preview="linear"] #stockOpsView .ops-subtab-nav,
html[data-ops-preview="linear"] #stockView .ops-subtab-nav.stock-change-tabs {
  position: relative !important;
  top: auto !important;
  z-index: 1 !important;
}

html[data-ops-preview="linear"] #stockOpsView .stock-pending-tabs {
  margin: 0 0 10px;
}

html[data-ops-preview="linear"] #opsPendingListingStock {
  display: grid;
  gap: 10px;
}

html[data-ops-preview="linear"] #opsPendingListingStock .pending-copy-tools {
  margin: 0;
}

html[data-ops-preview="linear"] #stockOpsView .pending-group-card {
  overflow: visible;
}

html[data-ops-preview="linear"] #stockOpsView .pending-detail-table {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

html[data-ops-preview="linear"] #stockOpsView .pending-detail-head,
html[data-ops-preview="linear"] #stockOpsView .pending-detail-row {
  min-width: max-content;
}

.pending-readiness-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.pending-readiness-filter span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.pending-readiness-filter button {
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.pending-readiness-filter button.active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.pending-readiness-filter-hidden {
  display: none !important;
}

.pending-readiness-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 260px;
}

.pending-readiness-checks label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 2px 7px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  white-space: nowrap;
}

.pending-readiness-checks input {
  width: 14px;
  height: 14px;
  margin: 0;
}

.pending-readiness-checks.is-saving {
  opacity: .68;
}

.pending-readiness-checks.has-error label {
  border-color: #dc2626;
  background: #fef2f2;
}

.pending-readiness-save-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff7f7;
  color: #991b1b;
  box-shadow: 0 10px 24px rgba(153, 27, 27, .08);
}

.pending-readiness-save-alert strong {
  font-size: 13px;
  white-space: nowrap;
}

.pending-readiness-save-alert span {
  flex: 1;
  min-width: 220px;
  font-size: 12px;
  color: #7f1d1d;
}

.pending-readiness-save-alert button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #dc2626;
  border-radius: 7px;
  background: #dc2626;
  color: #fff;
  font-weight: 700;
}

.pending-readiness-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 26px;
  padding: 3px 8px;
  border: 1px solid #f59e0b;
  border-radius: 7px;
  background: #fffbeb;
  color: #92400e;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.pending-readiness-status.ready {
  border-color: #10b981;
  background: #ecfdf5;
  color: #047857;
}

.pending-readiness-status.aside {
  border-color: #64748b;
  background: #f1f5f9;
  color: #334155;
}

.pending-readiness-updated {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
}

#opsPendingListingStock .surface-block[hidden] {
  display: none !important;
}

.stock-rules-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.stock-rules-summary article {
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

.stock-rules-summary strong {
  display: block;
  margin-bottom: 4px;
  color: #0f172a;
  font-size: 12px;
}

.stock-rules-summary span {
  color: #64748b;
  font-size: 11px;
  line-height: 1.45;
}

.stock-rules-detail {
  margin: 0 !important;
}

.stock-search-match {
  outline: 2px solid #f59e0b !important;
  outline-offset: 2px;
  background: #fffbeb !important;
}

/* Final module badge pass: keep dynamic and legacy sections visually aligned. */
html[data-ops-preview="linear"] .action-label,
html[data-ops-preview="linear"] .ops-product-state,
html[data-ops-preview="linear"] .decision-pill,
html[data-ops-preview="linear"] .meta-chip,
html[data-ops-preview="linear"] .profit-tag,
html[data-ops-preview="linear"] .status-chip,
html[data-ops-preview="linear"] .activity-tags span,
html[data-ops-preview="linear"] .stock-pending-aux-tags span,
html[data-ops-preview="linear"] .pending-readiness-status,
html[data-ops-preview="linear"] .pending-readiness-checks label,
html[data-ops-preview="linear"] .priority-pill,
html[data-ops-preview="linear"] .send-num,
html[data-ops-preview="linear"] .supplier-need-number,
html[data-ops-preview="linear"] .follow-need-number {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .035);
}

html[data-ops-preview="linear"] .decision-pill.focus,
html[data-ops-preview="linear"] .meta-chip.ok,
html[data-ops-preview="linear"] .status-chip.ok,
html[data-ops-preview="linear"] .profit-tag.good,
html[data-ops-preview="linear"] .pending-readiness-status.ready {
  border-color: #86efac;
  background: #ecfdf5;
  color: #047857;
}

html[data-ops-preview="linear"] .action-label.recolor,
html[data-ops-preview="linear"] .decision-pill.warn,
html[data-ops-preview="linear"] .meta-chip.warn,
html[data-ops-preview="linear"] .status-chip.warn,
html[data-ops-preview="linear"] .profit-tag.warn,
html[data-ops-preview="linear"] .pending-readiness-status {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

html[data-ops-preview="linear"] .action-label.new,
html[data-ops-preview="linear"] .decision-pill.risk,
html[data-ops-preview="linear"] .status-chip.loss,
html[data-ops-preview="linear"] .profit-tag.danger,
html[data-ops-preview="linear"] .supplier-need-number {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

html[data-ops-preview="linear"] .send-num {
  min-width: 48px;
  border-color: #bfdbfe;
  background: #eef6ff;
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

html[data-ops-preview="linear"] .follow-need-number {
  min-width: 58px;
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
  font-size: 14px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

html[data-ops-preview="linear"] .priority-pill {
  min-width: 28px;
  min-height: 22px;
  padding: 0 7px;
  font-weight: 900;
}

html[data-ops-preview="linear"] .priority-pill.p0 {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

html[data-ops-preview="linear"] .priority-pill.p1 {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
}

html[data-ops-preview="linear"] .priority-pill.p2 {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

html[data-ops-preview="linear"] .priority-pill.p3 {
  border-color: #86efac;
  background: #ecfdf5;
  color: #047857;
}

html[data-ops-preview="linear"] .profit-tag {
  min-height: 28px;
  padding: 5px 10px;
  cursor: pointer;
}

html[data-ops-preview="linear"] .profit-tag.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

html[data-ops-preview="linear"] .profit-tag.danger.active {
  border-color: #dc2626;
  background: #dc2626;
}

html[data-ops-preview="linear"] .profit-tag.warn.active {
  border-color: #b7791f;
  background: #b7791f;
}

html[data-ops-preview="linear"] .profit-tag.good.active {
  border-color: #16a34a;
  background: #16a34a;
}

html[data-ops-preview="linear"] .pending-readiness-checks label {
  min-height: 26px;
  cursor: pointer;
}

html[data-ops-preview="linear"] .pending-readiness-status {
  min-width: 92px;
  min-height: 26px;
}

html[data-ops-preview="linear"] .pending-readiness-status.aside,
html[data-ops-preview="linear"] .status-chip.muted,
html[data-ops-preview="linear"] .decision-pill.muted,
html[data-ops-preview="linear"] .meta-chip.muted,
html[data-ops-preview="linear"] .activity-tags .missing {
  border-color: #dbe3ef;
  background: #f1f5f9;
  color: #64748b;
}

@media (max-width: 1180px) {
  .stock-ops-tools {
    grid-template-columns: 1fr;
  }
  .stock-pane-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .stock-pane-head p {
    max-width: none;
    text-align: left;
  }
  .stock-rules-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  html[data-ops-preview="linear"],
  html[data-ops-preview="linear"] body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  body.ops-shell-ready {
    display: block;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  body.ops-shell-ready > *,
  html[data-ops-preview="linear"] main,
  html[data-ops-preview="linear"] header,
  html[data-ops-preview="linear"] .ops-sidebar,
  html[data-ops-preview="linear"] .report-view {
    min-width: 0;
    max-width: 100vw;
    box-sizing: border-box;
  }

  html[data-ops-preview="linear"] main {
    width: 100%;
    padding: 12px;
  }

  html[data-ops-preview="linear"] header {
    grid-template-columns: minmax(0, 1fr);
    margin: 0 -12px 8px;
    padding: 10px 12px;
  }

  html[data-ops-preview="linear"] .ops-sidebar {
    position: static;
    display: grid;
    grid-template-rows: auto auto;
    gap: 8px;
    height: auto;
    padding: 8px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  html[data-ops-preview="linear"] .ops-brand {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 0 2px 6px;
    border-bottom: 0;
  }

  html[data-ops-preview="linear"] .ops-brand strong {
    font-size: 13px;
  }

  html[data-ops-preview="linear"] .ops-brand span {
    overflow: hidden;
    max-width: 42vw;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html[data-ops-preview="linear"] .ops-sidebar-shop-dock,
  html[data-ops-preview="linear"] .ops-sidebar-tools,
  html[data-ops-preview="linear"] .ops-global-search-dock {
    display: none !important;
  }

  html[data-ops-preview="linear"] .ops-sidebar-main {
    min-height: 0;
    overflow-x: auto;
    overflow-y: visible;
    padding-right: 0;
    max-width: calc(100vw - 20px);
  }

  html[data-ops-preview="linear"] .ops-nav-list {
    display: flex;
    flex-wrap: nowrap;
    max-width: calc(100vw - 24px);
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }

  html[data-ops-preview="linear"] .ops-nav-item {
    flex: 0 0 auto;
  }

  html[data-ops-preview="linear"] main,
  html[data-ops-preview="linear"] .report-view {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  html[data-ops-preview="linear"] #dataView {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    overflow-x: clip;
  }

  html[data-ops-preview="linear"] #dataView,
  html[data-ops-preview="linear"] #dataView > section,
  html[data-ops-preview="linear"] #dataView .panel,
  html[data-ops-preview="linear"] #dataView .data-workbench-shell,
  html[data-ops-preview="linear"] #dataView .data-workbench-kpi-grid,
  html[data-ops-preview="linear"] #dataView .data-workbench-compare-panel,
  html[data-ops-preview="linear"] #dataView .data-workbench-decision-panel,
  html[data-ops-preview="linear"] #dataView .data-workbench-trend-grid,
  html[data-ops-preview="linear"] #dataView .data-workbench-contribution-panel,
  html[data-ops-preview="linear"] #dataView .data-workbench-gap-panel,
  html[data-ops-preview="linear"] #dataView .data-workbench-summary-table,
  html[data-ops-preview="linear"] #dataView .data-workbench-detail-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  html[data-ops-preview="linear"] #dataView .data-workbench-panel-body,
  html[data-ops-preview="linear"] #dataView .data-workbench-panel-body > *,
  html[data-ops-preview="linear"] #dataView .ops-business-chart-board,
  html[data-ops-preview="linear"] #dataView .ops-business-chart-grid,
  html[data-ops-preview="linear"] #dataView .ops-business-chart-card,
  html[data-ops-preview="linear"] #dataView .ops-business-chart-box,
  html[data-ops-preview="linear"] #dataView .table-wrap {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  html[data-ops-preview="linear"] .data-workbench-shell {
    gap: 10px;
  }

  html[data-ops-preview="linear"] #dataView .data-workbench-kpi-grid .data-workbench-panel-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-ops-preview="linear"] #dataView .data-workbench-kpi-grid article {
    grid-template-columns: minmax(0, 1fr) 76px;
    min-height: 88px;
  }

  html[data-ops-preview="linear"] #dataView .ops-business-sparkline {
    width: 76px;
    max-width: 76px;
    height: 22px;
  }

  html[data-ops-preview="linear"] #dataView .ops-business-compare-grid,
  html[data-ops-preview="linear"] #dataView .ops-business-compare-layout,
  html[data-ops-preview="linear"] #dataView .ops-business-structure-grid,
  html[data-ops-preview="linear"] #dataView .ops-business-market-grid,
  html[data-ops-preview="linear"] #dataView .ops-business-content-catalog-grid,
  html[data-ops-preview="linear"] #dataView .ops-business-data-catalog-grid,
  html[data-ops-preview="linear"] #dataView .ops-business-contribution-layout,
  html[data-ops-preview="linear"] #dataView .ops-business-contribution-cards,
  html[data-ops-preview="linear"] #dataView .ops-business-period-strip,
  html[data-ops-preview="linear"] #dataView .ops-business-rank-split {
    grid-template-columns: 1fr;
  }

  html[data-ops-preview="linear"] #dataView .ops-business-chart-title {
    min-width: 0;
    flex-wrap: wrap;
  }

  html[data-ops-preview="linear"] #dataView .ops-business-unified-trend-head {
    grid-template-columns: 1fr;
  }

  html[data-ops-preview="linear"] #dataView .ops-business-unified-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-ops-preview="linear"] #dataView .ops-business-current-summary-title {
    grid-column: 1 / -1;
  }

  html[data-ops-preview="linear"] #dataView .ops-business-trend-pill-group {
    display: grid;
    grid-template-columns: 1fr;
  }

  html[data-ops-preview="linear"] #dataView .ops-business-trend-pill-section {
    width: 100%;
  }

  html[data-ops-preview="linear"] #dataView .ops-business-trend-pill-section button {
    flex: 1 1 76px;
    justify-content: center;
  }

  html[data-ops-preview="linear"] #dataView .ops-business-unified-trend-card .ops-business-chart-box {
    height: 300px;
    min-height: 300px;
  }

  html[data-ops-preview="linear"] #dataView .ops-business-chart-title strong,
  html[data-ops-preview="linear"] #dataView .ops-business-chart-title span,
  html[data-ops-preview="linear"] #dataView .ops-business-structure-grid section > strong,
  html[data-ops-preview="linear"] #dataView .ops-business-mini-list span,
  html[data-ops-preview="linear"] #dataView .ops-business-mini-list small {
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  html[data-ops-preview="linear"] #dataView .ops-business-gap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-ops-preview="linear"] #dataView .operating-date-controls,
  .operating-date-controls {
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-ops-preview="linear"] #dataView .operating-date-controls:not([data-range="custom"]) .operating-range-inputs {
    display: none;
  }

  html[data-ops-preview="linear"] #dataView .compact-date-hint {
    display: none;
  }

  html[data-ops-preview="linear"] #dataView .ops-business-decision-grid,
  html[data-ops-preview="linear"] #dataView .ops-business-alert-list,
  html[data-ops-preview="linear"] #dataView .ops-business-next-actions,
  html[data-ops-preview="linear"] #dataView .ops-business-chart-grid,
  html[data-ops-preview="linear"] #dataView .ops-business-top-card-list {
    grid-template-columns: 1fr;
  }

  html[data-ops-preview="linear"] #dataView .ops-business-site-list article,
  html[data-ops-preview="linear"] #dataView .ops-business-market-bars article {
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-ops-preview="linear"] #dataView .ops-business-top-card {
    grid-template-columns: 28px 44px minmax(0, 1fr);
  }

  html[data-ops-preview="linear"] #dataView .ops-business-top-metrics {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-ops-preview="linear"] #dataView .ops-business-exception-heat-table {
    overflow-x: auto;
    max-width: 100%;
  }

  html[data-ops-preview="linear"] #dataView .ops-business-heat-head,
  html[data-ops-preview="linear"] #dataView .ops-business-heat-row {
    grid-template-columns: minmax(92px, .9fr) minmax(78px, .7fr) minmax(96px, 1fr) minmax(70px, .55fr);
    min-width: 0;
  }

  html[data-ops-preview="linear"] #dataView .ops-business-heat-row span,
  html[data-ops-preview="linear"] #dataView .ops-business-heat-row b,
  html[data-ops-preview="linear"] #dataView .ops-business-heat-row strong {
    overflow: visible;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
  }

  html[data-ops-preview="linear"] #dataView .ops-business-next-actions > div {
    min-width: 0;
  }

  html[data-ops-preview="linear"] #dataView .ops-business-product-toolbar {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
  }

  html[data-ops-preview="linear"] #dataView .ops-business-toolbar-hint {
    flex: 1 1 100%;
    margin-right: 0;
  }

  html[data-ops-preview="linear"] #dataView .ops-business-product-toolbar select,
  html[data-ops-preview="linear"] #dataView .ops-business-product-toolbar input,
  html[data-ops-preview="linear"] #dataView .ops-business-product-toolbar button {
    flex: 1 1 150px;
    width: auto;
    max-width: 100%;
  }

  html[data-ops-preview="linear"] #dataView .ops-business-column-config {
    top: 58px;
    right: 8px;
    width: calc(100% - 16px);
    padding: 0;
  }

  html[data-ops-preview="linear"] #dataView .ops-business-column-config-panel {
    max-height: min(520px, 72vh);
  }

  html[data-ops-preview="linear"] #dataView .ops-business-column-config-body {
    grid-template-columns: 1fr;
  }

  html[data-ops-preview="linear"] #dataView .ops-business-column-config-body section > div {
    grid-template-columns: 1fr;
  }

  html[data-ops-preview="linear"] #dataView .ops-business-rank-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  html[data-ops-preview="linear"] #dataView .ops-business-detail-state {
    flex: 1 1 100%;
    justify-content: center;
  }

  html[data-ops-preview="linear"] #dataView .ops-business-data-catalog-summary,
  html[data-ops-preview="linear"] #dataView .ops-business-data-catalog-grid,
  html[data-ops-preview="linear"] #dataView .ops-business-data-series-grid {
    grid-template-columns: 1fr;
  }

  html[data-ops-preview="linear"] #dataView .ops-business-top-card {
    grid-template-columns: 28px 44px minmax(0, 1fr);
    align-items: start;
  }

  html[data-ops-preview="linear"] #dataView .ops-business-top-main strong,
  html[data-ops-preview="linear"] #dataView .ops-business-top-main span {
    overflow-wrap: anywhere;
    white-space: normal;
  }

  html[data-ops-preview="linear"] #dataView .ops-business-top-metrics {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  html[data-ops-preview="linear"] #dataView .ops-business-product-table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    contain: inline-size;
  }

  html[data-ops-preview="linear"] #dataView .ops-business-product-table table {
    width: max-content;
    max-width: none;
  }

  html[data-ops-preview="linear"] #dataView .ops-business-product-table::before {
    display: inline-flex;
  }

  html[data-ops-preview="linear"] #dataView .exec-health,
  html[data-ops-preview="linear"] #dataView .exec-kpis,
  html[data-ops-preview="linear"] #dataView .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-ops-preview="linear"] #dataView .ops-kpi-card strong,
  html[data-ops-preview="linear"] #dataView .metric-card strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html[data-ops-preview="linear"] .stock-health-status-bar,
  html[data-ops-preview="linear"] .stock-health-overview-grid,
  html[data-ops-preview="linear"] .stock-health-bottom-grid,
  html[data-ops-preview="linear"] .stock-health-dashboard,
  html[data-ops-preview="linear"] .health-score-card {
    grid-template-columns: 1fr;
  }

  html[data-ops-preview="linear"] .stock-health-status-items {
    justify-content: flex-start;
  }

  html[data-ops-preview="linear"] .stock-health-snapshot-picker {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  html[data-ops-preview="linear"] .stock-health-snapshot-picker label {
    grid-column: 1 / -1;
    display: grid;
    gap: 4px;
  }

  html[data-ops-preview="linear"] .stock-health-snapshot-picker select {
    width: 100%;
    max-width: none;
  }

  html[data-ops-preview="linear"] .stock-health-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-ops-preview="linear"] .stock-health-kpis article {
    min-width: 0;
  }

  html[data-ops-preview="linear"] .stock-health-kpis strong,
  html[data-ops-preview="linear"] .stock-health-kpis small,
  html[data-ops-preview="linear"] .stock-health-kpis span {
    overflow-wrap: anywhere;
    white-space: normal;
  }

  html[data-ops-preview="linear"] .health-ring {
    width: 108px;
    height: 108px;
  }
}

html[data-ops-preview="linear"] .quality-site-table table th,
html[data-ops-preview="linear"] .quality-site-table table td {
  padding: 4px 7px !important;
}

html[data-ops-preview="linear"] .quality-health-compact {
  align-items: center;
}

html[data-ops-preview="linear"] .quality-health-compact span {
  flex: 0 1 96px;
  max-width: 112px;
}

html[data-ops-preview="linear"] .quality-health-compact span:nth-child(4) {
  flex: 1 1 132px;
  max-width: 168px;
}

html[data-ops-preview="linear"] .quality-site-review-main {
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
}

html[data-ops-preview="linear"] .quality-site-review select,
html[data-ops-preview="linear"] .quality-site-review input,
html[data-ops-preview="linear"] .quality-site-review button {
  height: auto;
  min-height: 30px;
  border-radius: 6px;
  font-size: 11px;
}

html[data-ops-preview="linear"] .quality-site-review button {
  min-width: 72px;
  padding: 3px 8px;
}

html[data-ops-preview="linear"] .quality-review-feedback-line {
  font-size: 10px;
  line-height: 1.2;
}

html[data-ops-preview="linear"] .quality-review-trail {
  max-width: 118px;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Activity opportunity workbench removed. */

/* Desktop density pass: quality-site review should put the risk table before long evidence. */
.quality-site-toolbar {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  grid-template-areas:
    "overview decision"
    "filters filters"
    "status status"
    "bulk bulk"
    "evidence evidence";
}

.quality-site-overview-strip {
  grid-template-columns: repeat(5, minmax(82px, 1fr));
}

.quality-site-overview-item {
  min-height: 28px;
  padding-inline: 7px;
}

.quality-site-decision-strip {
  min-height: 28px;
  padding: 4px 7px;
}

.quality-site-decision-strip em,
.quality-site-decision-strip small,
.quality-site-evidence-audit {
  display: none;
}

.quality-site-evidence-panel {
  max-height: 34px;
  overflow: hidden;
}

.quality-site-evidence-panel[open] {
  max-height: none;
  overflow: visible;
}

.quality-site-evidence-panel summary {
  min-height: 32px;
}

.quality-site-filter-status,
.quality-site-bulk-review {
  margin-top: 0;
}

.quality-site-table {
  max-height: calc(100vh - 210px);
}

/* Desktop density pass: quality-site daily approval keeps the risk table in the first viewport. */
.quality-site-toolbar {
  grid-template-areas:
    "overview decision"
    "filters filters"
    "status status"
    "bulk bulk"
    "evidence evidence";
  gap: 4px 6px;
}

.quality-site-primary-filters {
  grid-template-columns: minmax(150px, .85fr) minmax(120px, .6fr) minmax(120px, .6fr) minmax(220px, 1.1fr) max-content;
  gap: 4px;
}

.quality-site-overview-strip {
  grid-template-columns: repeat(4, minmax(78px, 1fr));
  overflow: hidden;
}

.quality-site-overview-strip .quality-site-overview-item.info {
  display: none;
}

.quality-site-primary-filters {
  grid-template-columns: minmax(150px, .85fr) minmax(120px, .6fr) minmax(120px, .6fr) minmax(220px, 1.1fr) max-content;
}

.quality-site-advanced-filters:not([open]) .quality-site-advanced-grid {
  display: none;
}

.quality-site-advanced-filters:not([open]) {
  width: max-content;
  max-width: 96px;
  overflow: hidden;
}

.quality-site-quick-queues {
  max-width: none;
}

.quality-site-filters label {
  gap: 2px;
  font-size: 10px;
}

.quality-site-filters select,
.quality-site-filters input {
  min-height: 26px;
  font-size: 11px;
}

.quality-site-advanced-filters summary,
.quality-site-filter-status button {
  min-height: 24px;
  font-size: 10px;
}

.quality-site-filter-status {
  min-height: 24px;
}

.quality-site-filter-status .quality-site-overview-secondary,
.quality-site-filter-status .quality-site-active-filters {
  display: none;
}

.quality-site-bulk-review {
  align-self: stretch;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px;
  min-height: 0;
  padding: 4px 6px;
  overflow: hidden;
}

.quality-site-bulk-metrics,
.quality-site-bulk-actions {
  gap: 4px;
  flex-wrap: nowrap;
}

.quality-site-bulk-risk,
.quality-site-bulk-impact,
.quality-site-bulk-mix,
.quality-site-bulk-scope,
.quality-site-bulk-review small {
  display: none;
}

.quality-site-quick-queues {
  max-width: none;
  overflow: hidden;
}

.quality-site-quick-queues button {
  min-height: 23px;
  padding-inline: 7px;
}

.quality-site-operator {
  font-size: 10px;
}

.quality-site-operator input {
  width: 62px;
  min-height: 24px;
}

.quality-site-bulk-review button {
  min-height: 24px;
  padding-inline: 6px;
  font-size: 10px;
}

.quality-site-evidence-panel {
  display: none;
}

.quality-site-toolbar:has(.quality-site-evidence-panel[open]) .quality-site-evidence-panel {
  display: block;
}

.quality-site-table {
  margin-top: 4px;
  max-height: calc(100vh - 184px);
}

.quality-site-table[data-review-mode="approve"] .quality-site-row td {
  padding-top: 7px;
  padding-bottom: 7px;
}

.quality-site-table[data-review-mode="approve"] .quality-site-review {
  min-height: 92px;
  align-content: start;
  padding: 2px 0;
}

@media (max-width: 920px) {
  html[data-ops-preview="linear"] #dataView .ops-business-product-board .ops-business-product-toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  html[data-ops-preview="linear"] #dataView .ops-business-product-search-wrap,
  html[data-ops-preview="linear"] #dataView .ops-business-product-board .ops-business-product-toolbar select,
  html[data-ops-preview="linear"] #dataView .ops-business-product-board .ops-business-product-toolbar button,
  html[data-ops-preview="linear"] #dataView .ops-business-detail-state {
    width: 100%;
    min-width: 0;
  }

  html[data-ops-preview="linear"] #dataView .ops-business-detail-state {
    grid-column: 1 / -1;
  }

  html[data-ops-preview="linear"] #dataView .ops-business-product-board .ops-business-product-table {
    max-height: 520px;
    overflow-x: auto;
    overflow-y: auto;
  }

  html[data-ops-preview="linear"] #dataView .ops-business-product-board .ops-business-product-table table {
    min-width: 1320px;
    width: max-content;
  }

  html[data-ops-preview="linear"] #dataView .ops-business-product-total {
    flex: 1 1 100%;
    margin-right: 0;
  }
}

@media (max-width: 560px) {
  html[data-ops-preview="linear"] #dataView .ops-business-product-board .ops-business-product-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-ops-preview="linear"] #dataView .ops-business-product-page-numbers {
    order: 5;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  html[data-ops-preview="linear"] #dataView .ops-business-product-page-jump {
    order: 6;
  }
}

html[data-ops-preview="linear"] img:not(.ops-image-lightbox img) {
  cursor: zoom-in;
}

html.ops-image-lightbox-open {
  overflow: hidden;
}

.ops-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(15, 23, 42, .78);
  backdrop-filter: blur(10px);
}

.ops-image-lightbox[hidden] {
  display: none !important;
}

.ops-image-lightbox-panel {
  position: relative;
  display: grid;
  gap: 10px;
  max-width: min(92vw, 980px);
  max-height: 92vh;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 28px 80px rgba(15, 23, 42, .34);
}

.ops-image-lightbox-panel img {
  display: block;
  max-width: calc(92vw - 44px);
  max-height: calc(92vh - 92px);
  object-fit: contain;
  border-radius: 12px;
  background: #f8fafc;
}

.ops-image-lightbox-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .28);
}

.ops-image-lightbox-caption {
  max-width: 860px;
  overflow: hidden;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
