:root {
  --s-bg: #0b0c0f;
  --s-bg-soft: #111318;
  --s-panel: rgba(23, 25, 31, .92);
  --s-panel-2: rgba(255, 255, 255, .055);
  --s-line: rgba(255, 255, 255, .12);
  --s-line-strong: rgba(255, 255, 255, .22);
  --s-text: #f5f6f8;
  --s-muted: #a5abb8;
  --s-faint: #747b89;
  --s-accent: #ffffff;
  --s-good: #8ee6bd;
  --s-warn: #ffd28a;
  --s-radius: 24px;
  --s-radius-sm: 16px;
  --s-shadow: 0 28px 80px rgba(0, 0, 0, .32);
  --s-font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--s-bg); color: var(--s-text); scroll-behavior: auto; }
body.sourcing-stable-mode {
  min-height: 100dvh;
  margin: 0;
  background:
    radial-gradient(circle at 12% -10%, rgba(255,255,255,.14), transparent 28rem),
    radial-gradient(circle at 90% 8%, rgba(148,156,172,.16), transparent 26rem),
    linear-gradient(180deg, #0b0c0f 0%, #111318 100%);
  color: var(--s-text);
  font-family: var(--s-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
body.sourcing-stable-mode.theme-light {
  --s-bg: #f4f4f1;
  --s-bg-soft: #ffffff;
  --s-panel: rgba(255, 255, 255, .92);
  --s-panel-2: rgba(16, 17, 20, .045);
  --s-line: rgba(16, 17, 20, .12);
  --s-line-strong: rgba(16, 17, 20, .22);
  --s-text: #111318;
  --s-muted: #606775;
  --s-faint: #818897;
  color: var(--s-text);
  background:
    radial-gradient(circle at 12% -10%, rgba(16,17,20,.08), transparent 28rem),
    radial-gradient(circle at 90% 8%, rgba(16,17,20,.08), transparent 26rem),
    linear-gradient(180deg, #f7f7f4 0%, #ecece8 100%);
}
body.sourcing-stable-mode.theme-light .side-nav,
body.sourcing-stable-mode.theme-light .topbar {
  background: rgba(255, 255, 255, .82);
}
body.sourcing-stable-mode.theme-light .primary-button,
body.sourcing-stable-mode.theme-light .stable-action.primary,
body.sourcing-stable-mode.theme-light .stable-filter.active,
body.sourcing-stable-mode.theme-light .stable-match-label,
body.sourcing-stable-mode.theme-light .stable-flow-step::before {
  color: #fff;
  background: #111318;
  border-color: #111318;
}
body.sourcing-stable-mode a { color: inherit; }
body.sourcing-stable-mode button,
body.sourcing-stable-mode input,
body.sourcing-stable-mode select { font: inherit; }
body.sourcing-stable-mode .app-shell { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100dvh; }
body.sourcing-stable-mode .side-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 100dvh;
  padding: 18px 14px;
  border-right: 1px solid var(--s-line);
  background:
    linear-gradient(180deg, rgba(15, 17, 22, .94), rgba(8, 9, 12, .94)),
    radial-gradient(circle at 0 0, rgba(255,255,255,.12), transparent 18rem);
  backdrop-filter: blur(18px);
}
body.sourcing-stable-mode .workspace-switcher {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 64px;
  padding: 11px;
  border: 1px solid var(--s-line);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  text-decoration: none;
}
body.sourcing-stable-mode .brand-icon,
body.sourcing-stable-mode .brand-icon img { width: 32px; height: 32px; display: block; }
body.sourcing-stable-mode .brand-wordmark strong { display: block; color: var(--s-text); font-size: 17px; letter-spacing: -.04em; line-height: 1; }
body.sourcing-stable-mode .brand-wordmark span { display: block; margin-top: 4px; color: var(--s-muted); font-size: 11px; font-weight: 850; }
body.sourcing-stable-mode .nav-links { display: grid; gap: 7px; margin-top: 22px; }
body.sourcing-stable-mode .nav-group { margin: 14px 8px 6px; color: var(--s-faint); font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
body.sourcing-stable-mode .nav-links a {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--s-muted);
  text-decoration: none;
}
body.sourcing-stable-mode .nav-links a.active,
body.sourcing-stable-mode .nav-links a:hover { border-color: var(--s-line-strong); color: var(--s-text); background: rgba(255,255,255,.07); }
body.sourcing-stable-mode .nav-icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }
body.sourcing-stable-mode main { min-width: 0; padding: 0 0 42px; }
body.sourcing-stable-mode .topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: grid;
  grid-template-columns: minmax(180px, .8fr) minmax(260px, 560px) auto;
  gap: 16px;
  align-items: center;
  min-height: 76px;
  padding: 16px 30px;
  border-bottom: 1px solid var(--s-line);
  background: rgba(11, 12, 15, .86);
  backdrop-filter: blur(20px);
}
body.sourcing-stable-mode .breadcrumb { color: var(--s-muted); font-size: 13px; font-weight: 850; white-space: nowrap; }
body.sourcing-stable-mode .breadcrumb b { color: var(--s-text); }
body.sourcing-stable-mode .global-search { width: 100%; justify-self: stretch; }
body.sourcing-stable-mode .global-search input,
body.sourcing-stable-mode input,
body.sourcing-stable-mode select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--s-line);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: var(--s-text);
  padding: 0 14px;
  outline: none;
}
body.sourcing-stable-mode .top-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
body.sourcing-stable-mode .theme-toggle,
body.sourcing-stable-mode .language-toggle,
body.sourcing-stable-mode .primary-button,
body.sourcing-stable-mode .ghost-button,
body.sourcing-stable-mode .stable-action {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--s-line);
  border-radius: 999px;
  color: var(--s-text);
  background: rgba(255,255,255,.06);
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
}
body.sourcing-stable-mode .primary-button,
body.sourcing-stable-mode .stable-action.primary { color: #0b0c0f; background: #fff; border-color: #fff; }
body.sourcing-stable-mode .stable-action[aria-disabled="true"],
body.sourcing-stable-mode .stable-action.is-disabled {
  opacity: .52;
  cursor: not-allowed;
  pointer-events: none;
}
body.sourcing-stable-mode .page-heading {
  margin: 20px 30px 18px;
  padding: 24px;
  border: 1px solid var(--s-line);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.15), rgba(255,255,255,.045)),
    radial-gradient(circle at 82% 18%, rgba(255,255,255,.12), transparent 20rem);
  box-shadow: var(--s-shadow);
}
body.sourcing-stable-mode .eyebrow { margin: 0 0 8px; color: var(--s-muted); font-size: 11px; font-weight: 950; letter-spacing: .14em; text-transform: uppercase; }
body.sourcing-stable-mode h1 { margin: 0; font-size: clamp(38px, 4.7vw, 66px); letter-spacing: -.065em; line-height: .92; }
body.sourcing-stable-mode h2 { margin: 0; font-size: clamp(24px, 2.4vw, 38px); letter-spacing: -.055em; line-height: 1.05; }
body.sourcing-stable-mode .page-heading .heading-description { max-width: 780px; color: var(--s-muted); font-weight: 750; line-height: 1.7; }
body.sourcing-stable-mode .page-view { display: none !important; }
body.sourcing-stable-mode .page-view.active { display: block !important; }
body.sourcing-stable-mode .dashboard-grid.page-view.active { display: block !important; }
body.sourcing-stable-mode .workspace-panel,
body.sourcing-stable-mode .overview-board,
body.sourcing-stable-mode .plan-section,
body.sourcing-stable-mode .metrics-grid {
  margin: 0 30px 18px;
}
body.sourcing-stable-mode .workspace-panel,
body.sourcing-stable-mode [data-page-view] {
  scroll-margin-top: 96px;
}
body.sourcing-stable-mode .workspace-panel:not(.is-stable-active) { display: none !important; }
body.sourcing-stable-mode .stable-shell { display: grid; gap: 16px; }
body.sourcing-stable-mode .stable-hero,
body.sourcing-stable-mode .stable-panel,
body.sourcing-stable-mode .stable-card,
body.sourcing-stable-mode .overview-card,
body.sourcing-stable-mode .plan-card,
body.sourcing-stable-mode .metric-card {
  min-width: 0;
  border: 1px solid var(--s-line);
  border-radius: var(--s-radius);
  background: var(--s-panel);
  box-shadow: 0 14px 44px rgba(0,0,0,.2);
}
body.sourcing-stable-mode .stable-hero { padding: 22px; display: grid; gap: 18px; }
body.sourcing-stable-mode .stable-panel,
body.sourcing-stable-mode .stable-card,
body.sourcing-stable-mode .overview-card,
body.sourcing-stable-mode .plan-card,
body.sourcing-stable-mode .metric-card { padding: 18px; }
body.sourcing-stable-mode .stable-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
body.sourcing-stable-mode .stable-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.sourcing-stable-mode .stable-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.sourcing-stable-mode .stable-split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 16px; align-items: start; }
body.sourcing-stable-mode .stable-card strong,
body.sourcing-stable-mode .metric-card strong { display: block; font-size: 28px; letter-spacing: -.04em; }
body.sourcing-stable-mode .stable-card span,
body.sourcing-stable-mode .stable-card small,
body.sourcing-stable-mode .metric-card small { color: var(--s-muted); font-weight: 800; }
body.sourcing-stable-mode .stable-card.accent,
body.sourcing-stable-mode .stable-panel.accent { background: linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.045)); }
body.sourcing-stable-mode .stable-card.compact { display: grid; gap: 8px; min-height: 132px; }
body.sourcing-stable-mode .stable-card.compact strong { font-size: 22px; }
body.sourcing-stable-mode .stable-hero .stable-grid .stable-card,
body.sourcing-stable-mode .stable-sales-kpis article {
  min-height: 116px;
}
body.sourcing-stable-mode .stable-section-head { display: flex; gap: 12px; align-items: end; justify-content: space-between; margin-bottom: 14px; }
body.sourcing-stable-mode .stable-section-head p { margin: 6px 0 0; color: var(--s-muted); font-size: 12px; font-weight: 800; line-height: 1.7; }
body.sourcing-stable-mode .stable-kicker { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
body.sourcing-stable-mode .stable-kicker span { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 10px; border: 1px solid var(--s-line); border-radius: 999px; color: var(--s-muted); font-size: 11px; font-weight: 900; }
body.sourcing-stable-mode .stable-mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
body.sourcing-stable-mode .stable-mini { min-width: 0; padding: 12px; border: 1px solid var(--s-line); border-radius: 16px; background: rgba(255,255,255,.045); }
body.sourcing-stable-mode .stable-mini b { display: block; color: var(--s-text); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.sourcing-stable-mode .stable-mini span { color: var(--s-muted); font-size: 11px; font-weight: 850; }
body.sourcing-stable-mode .stable-lane-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
body.sourcing-stable-mode .stable-lane { display: grid; gap: 8px; min-height: 136px; padding: 15px; border: 1px solid var(--s-line); border-radius: 20px; background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.035)); }
body.sourcing-stable-mode .stable-lane strong { font-size: 24px; letter-spacing: -.04em; }
body.sourcing-stable-mode .stable-lane span,
body.sourcing-stable-mode .stable-lane small { color: var(--s-muted); font-weight: 850; line-height: 1.55; }
body.sourcing-stable-mode .stable-lane.ready { border-color: rgba(142,230,189,.38); background: linear-gradient(145deg, rgba(142,230,189,.14), rgba(255,255,255,.035)); }
body.sourcing-stable-mode .stable-lane.check { border-color: rgba(255,210,138,.32); background: linear-gradient(145deg, rgba(255,210,138,.12), rgba(255,255,255,.035)); }
body.sourcing-stable-mode .stable-lane.hold { opacity: .86; }
body.sourcing-stable-mode .stable-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
body.sourcing-stable-mode .stable-product-card { display: grid; gap: 12px; min-width: 0; padding: 12px; border: 1px solid var(--s-line); border-radius: 22px; background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.035)); }
body.sourcing-stable-mode .stable-product-media { display: grid; place-items: center; aspect-ratio: 1 / 1.05; overflow: hidden; border: 1px solid var(--s-line); border-radius: 18px; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.18), transparent 14rem), rgba(255,255,255,.045); color: var(--s-text); font-size: 34px; font-weight: 950; }
body.sourcing-stable-mode .stable-product-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.sourcing-stable-mode .stable-product-card h3 { margin: 0; font-size: 15px; line-height: 1.25; letter-spacing: -.02em; }
body.sourcing-stable-mode .stable-product-card p { margin: 0; color: var(--s-muted); font-size: 11px; font-weight: 850; line-height: 1.55; }
body.sourcing-stable-mode .stable-product-card strong { font-size: 20px; letter-spacing: -.035em; }
body.sourcing-stable-mode .stable-product-meta { display: grid; gap: 4px; }
body.sourcing-stable-mode .stable-product-profit { display: flex; align-items: end; justify-content: space-between; gap: 10px; }
body.sourcing-stable-mode .stable-product-profit small { color: var(--s-muted); font-size: 10px; font-weight: 900; }
body.sourcing-stable-mode .stable-match-label { display: inline-flex; align-items: center; width: fit-content; min-height: 24px; padding: 4px 8px; border-radius: 999px; color: #0b0c0f; background: #fff; font-size: 10px; font-weight: 950; }
body.sourcing-stable-mode .stable-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
body.sourcing-stable-mode .stable-flow-step { position: relative; padding: 14px; border: 1px solid var(--s-line); border-radius: 18px; background: rgba(255,255,255,.045); }
body.sourcing-stable-mode .stable-flow-step b { display: block; margin-bottom: 8px; color: var(--s-text); }
body.sourcing-stable-mode .stable-flow-step small { color: var(--s-muted); font-weight: 800; line-height: 1.55; }
body.sourcing-stable-mode .stable-flow-step::before { content: attr(data-step); display: inline-grid; place-items: center; width: 26px; height: 26px; margin-bottom: 10px; border-radius: 999px; color: #0b0c0f; background: #fff; font-size: 11px; font-weight: 950; }
body.sourcing-stable-mode .stable-list { display: grid; gap: 10px; max-height: 620px; overflow: auto; overscroll-behavior: contain; }
body.sourcing-stable-mode .stable-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--s-line);
  border-radius: var(--s-radius-sm);
  background: var(--s-panel-2);
}
body.sourcing-stable-mode .stable-row h3 { margin: 0 0 4px; font-size: 16px; letter-spacing: -.02em; }
body.sourcing-stable-mode .stable-row p { margin: 0; color: var(--s-muted); font-size: 12px; font-weight: 750; }
body.sourcing-stable-mode .stable-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
body.sourcing-stable-mode .stable-badges span,
body.sourcing-stable-mode .stable-pill { display: inline-flex; min-height: 26px; align-items: center; padding: 4px 9px; border: 1px solid var(--s-line); border-radius: 999px; color: var(--s-muted); font-size: 11px; font-weight: 900; }
body.sourcing-stable-mode .stable-price { text-align: right; font-weight: 950; }
body.sourcing-stable-mode .stable-price small { display: block; color: var(--s-muted); font-size: 11px; }
body.sourcing-stable-mode .stable-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
body.sourcing-stable-mode .stable-tools input[type="search"] { flex: 1 1 280px; min-width: 220px; }
body.sourcing-stable-mode .stable-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
body.sourcing-stable-mode .stable-filter { min-height: 34px; padding: 7px 11px; border: 1px solid var(--s-line); border-radius: 999px; background: rgba(255,255,255,.045); color: var(--s-muted); font-weight: 900; cursor: pointer; }
body.sourcing-stable-mode .stable-filter.active { border-color: #fff; background: #fff; color: #0b0c0f; }
body.sourcing-stable-mode .stable-table { display: grid; gap: 8px; max-height: 680px; overflow: auto; }
body.sourcing-stable-mode .stable-table .stable-row { grid-template-columns: 1.3fr .7fr .7fr auto; }
body.sourcing-stable-mode .stable-empty { color: var(--s-muted); padding: 18px; border: 1px dashed var(--s-line); border-radius: var(--s-radius-sm); }
body.sourcing-stable-mode .stable-note { margin: 0 0 12px; color: var(--s-muted); font-size: 12px; font-weight: 800; line-height: 1.7; }
body.sourcing-stable-mode .stable-status { display: grid; gap: 10px; }
body.sourcing-stable-mode .stable-status li { list-style: none; display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--s-line); color: var(--s-muted); font-size: 12px; font-weight: 850; }
body.sourcing-stable-mode .stable-status li::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--s-good); box-shadow: 0 0 0 5px rgba(142,230,189,.12); }
body.sourcing-stable-mode .stable-status b { color: var(--s-text); font-size: 13px; }
body.sourcing-stable-mode .stable-status code { color: var(--s-muted); font-family: var(--s-font); }
body.sourcing-stable-mode .hidden,
body.sourcing-stable-mode [hidden] { display: none !important; }

@media (max-width: 980px) {
  body.sourcing-stable-mode .app-shell { grid-template-columns: 1fr; }
  body.sourcing-stable-mode .side-nav {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100vw;
    height: auto;
    min-height: 64px;
    padding: 8px;
    overflow: hidden;
    box-sizing: border-box;
    border-right: 0;
    border-bottom: 1px solid var(--s-line);
  }
  body.sourcing-stable-mode .workspace-switcher { display: none; }
  body.sourcing-stable-mode .nav-links {
    display: flex;
    flex: 1 1 auto;
    gap: 6px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    overflow: auto hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  body.sourcing-stable-mode .nav-links::-webkit-scrollbar { display: none; }
  body.sourcing-stable-mode .nav-group { display: none; }
  body.sourcing-stable-mode .nav-links a {
    flex: 0 0 46px;
    width: 46px;
    min-width: 46px;
    grid-template-columns: 1fr;
    place-items: center;
    padding: 9px;
  }
  body.sourcing-stable-mode .nav-label { display: none; }
  body.sourcing-stable-mode main { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 104px); }
  body.sourcing-stable-mode .topbar { grid-template-columns: 1fr; min-height: 56px; padding: 8px 14px; }
  body.sourcing-stable-mode .top-actions { width: 100%; justify-content: stretch; }
  body.sourcing-stable-mode .top-actions > * { flex: 1 1 0; min-width: 0; }
  body.sourcing-stable-mode .breadcrumb,
  body.sourcing-stable-mode .global-search { display: none; }
  body.sourcing-stable-mode .page-heading,
  body.sourcing-stable-mode .workspace-panel,
  body.sourcing-stable-mode .overview-board,
  body.sourcing-stable-mode .plan-section,
  body.sourcing-stable-mode .metrics-grid { margin-left: 14px; margin-right: 14px; }
  body.sourcing-stable-mode .page-heading { margin-top: 12px; margin-bottom: 12px; padding: 16px; border-radius: 22px; }
  body.sourcing-stable-mode .page-heading .heading-description { display: none; }
  body.sourcing-stable-mode h1 { font-size: 30px; }
  body.sourcing-stable-mode h2 { font-size: 24px; }
  body.sourcing-stable-mode .stable-hero,
  body.sourcing-stable-mode .stable-panel,
  body.sourcing-stable-mode .stable-card,
  body.sourcing-stable-mode .overview-card,
  body.sourcing-stable-mode .plan-card,
  body.sourcing-stable-mode .metric-card { padding: 16px; }
  body.sourcing-stable-mode .stable-shell { gap: 12px; }
  body.sourcing-stable-mode .stable-section-head { align-items: start; flex-direction: column; gap: 8px; }
  body.sourcing-stable-mode .stable-grid,
  body.sourcing-stable-mode .stable-grid.three,
  body.sourcing-stable-mode .stable-grid.two,
  body.sourcing-stable-mode .stable-split,
  body.sourcing-stable-mode .stable-flow,
  body.sourcing-stable-mode .stable-lane-grid,
  body.sourcing-stable-mode .stable-product-grid,
  body.sourcing-stable-mode .stable-mini-grid { grid-template-columns: 1fr; }
  body.sourcing-stable-mode .stable-table .stable-row,
  body.sourcing-stable-mode .stable-row { grid-template-columns: 1fr; }
  body.sourcing-stable-mode .stable-price { text-align: left; }
  body.sourcing-stable-mode .stable-list,
  body.sourcing-stable-mode .stable-table { max-height: none; }
  body.sourcing-stable-mode .stable-tools input[type="search"] { min-width: 0; flex-basis: 100%; }
}
body.sourcing-stable-mode :is(#ops-readiness, #ad-slot, .ops-section) { display: none !important; }

body.sourcing-stable-mode .stable-filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) repeat(4, minmax(142px, .6fr));
  gap: 12px;
  align-items: end;
}
body.sourcing-stable-mode .stable-filter-bar label,
body.sourcing-stable-mode .stable-right-rail label,
body.sourcing-stable-mode .stable-inline-form label {
  display: grid;
  gap: 8px;
  color: var(--s-muted);
  font-size: 12px;
  font-weight: 900;
}
body.sourcing-stable-mode .stable-sell-tabs,
body.sourcing-stable-mode .stable-tabs,
body.sourcing-stable-mode .stable-source-pills,
body.sourcing-stable-mode .stable-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
body.sourcing-stable-mode .stable-sell-tabs { justify-content: space-between; }
body.sourcing-stable-mode .stable-comparison-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}
body.sourcing-stable-mode .stable-compare-main,
body.sourcing-stable-mode .stable-right-rail { display: grid; gap: 16px; }
body.sourcing-stable-mode .stable-right-rail { position: sticky; top: 92px; }
body.sourcing-stable-mode .stable-loading-shell {
  min-height: 420px;
  align-content: start;
}
body.sourcing-stable-mode .stable-loading-panel {
  overflow: hidden;
}
body.sourcing-stable-mode .stable-loading-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
body.sourcing-stable-mode .stable-loading-head h2 {
  margin: 2px 0 4px;
  color: var(--s-text);
  font-size: clamp(24px, 4vw, 42px);
  letter-spacing: -.05em;
}
body.sourcing-stable-mode .stable-loading-orb {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,.9), transparent 30%),
    conic-gradient(from 120deg, #8ee6bd, #f5f6f8, #6f7cff, #8ee6bd);
  box-shadow: 0 12px 30px rgba(0,0,0,.26);
  animation: stableSpin 1.8s linear infinite;
}
body.sourcing-stable-mode .stable-loading-grid,
body.sourcing-stable-mode .stable-loading-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
body.sourcing-stable-mode .stable-loading-grid { margin-top: 22px; }
body.sourcing-stable-mode .stable-loading-grid span,
body.sourcing-stable-mode .stable-loading-cards span {
  min-height: 74px;
  border: 1px solid var(--s-line);
  border-radius: 18px;
  background:
    linear-gradient(110deg, transparent 0 32%, rgba(255,255,255,.11) 44%, transparent 56% 100%),
    rgba(255,255,255,.045);
  background-size: 220% 100%;
  animation: stableShimmer 1.6s ease-in-out infinite;
}
body.sourcing-stable-mode .stable-loading-cards span { min-height: 150px; }
@keyframes stableSpin { to { transform: rotate(360deg); } }
@keyframes stableShimmer { to { background-position: -220% 0; } }
body.sourcing-stable-mode .stable-compare-grid,
body.sourcing-stable-mode .stable-search-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
body.sourcing-stable-mode .stable-compare-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--s-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .045);
}
body.sourcing-stable-mode .stable-compare-card div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
}
body.sourcing-stable-mode .stable-compare-card span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(142,230,189,.2), rgba(255,255,255,.1));
  font-size: 11px;
  font-weight: 950;
}
body.sourcing-stable-mode .stable-compare-card b,
body.sourcing-stable-mode .stable-search-matrix b { color: var(--s-text); }
body.sourcing-stable-mode .stable-compare-card small {
  grid-column: 2;
  color: var(--s-muted);
  font-weight: 800;
}
body.sourcing-stable-mode .stable-compare-card dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 10px;
  margin: 0;
}
body.sourcing-stable-mode .stable-compare-card dt {
  color: var(--s-muted);
  font-size: 12px;
  font-weight: 900;
}
body.sourcing-stable-mode .stable-compare-card dd {
  min-width: 0;
  margin: 0;
  color: var(--s-text);
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.sourcing-stable-mode .stable-compare-card > strong {
  color: #55d6b1;
  font-size: 24px;
}
body.sourcing-stable-mode .stable-search-matrix > div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--s-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .035);
}
body.sourcing-stable-mode .stable-chip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
body.sourcing-stable-mode .stable-chip-grid button {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--s-line);
  border-radius: 14px;
  color: var(--s-text);
  background: rgba(255, 255, 255, .045);
  font-weight: 900;
}
body.sourcing-stable-mode .stable-chip-grid button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.sourcing-stable-mode .stable-chip-grid button strong { color: #55d6b1; }
body.sourcing-stable-mode .stable-unlock {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(142, 230, 189, .25);
  border-radius: 18px;
  background: rgba(142, 230, 189, .08);
}
body.sourcing-stable-mode .stable-unlock span,
body.sourcing-stable-mode .stable-pill {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, .08);
  color: var(--s-text);
  font-size: 12px;
  font-weight: 950;
}
body.sourcing-stable-mode .stable-table-grid { display: grid; overflow: auto; border: 1px solid var(--s-line); border-radius: 18px; }
body.sourcing-stable-mode .stable-table-head,
body.sourcing-stable-mode .stable-table-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) 112px 142px 132px 132px 104px 142px;
  min-width: 1026px;
  align-items: center;
}
body.sourcing-stable-mode .stable-table-head {
  position: sticky;
  top: 0;
  z-index: 2;
  color: var(--s-muted);
  background: rgba(255, 255, 255, .06);
  font-size: 12px;
  font-weight: 950;
}
body.sourcing-stable-mode .stable-table-head > *,
body.sourcing-stable-mode .stable-table-row > * { padding: 13px 14px; border-bottom: 1px solid var(--s-line); }
body.sourcing-stable-mode .stable-table-row { background: rgba(255, 255, 255, .025); }
body.sourcing-stable-mode .stable-product-cell { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: center; }
body.sourcing-stable-mode .stable-product-cell b,
body.sourcing-stable-mode .stable-table-row strong { display: block; color: var(--s-text); }
body.sourcing-stable-mode .stable-product-cell small,
body.sourcing-stable-mode .stable-product-cell em,
body.sourcing-stable-mode .stable-table-row small { display: block; color: var(--s-muted); font-style: normal; font-weight: 800; }
body.sourcing-stable-mode .stable-thumb {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(142,230,189,.18), rgba(255,255,255,.08));
  font-weight: 950;
}
body.sourcing-stable-mode .stable-thumb img { width: 100%; height: 100%; object-fit: cover; }
body.sourcing-stable-mode .stable-profit { color: #55d6b1; }
body.sourcing-stable-mode .stable-match-meter { display: block; width: 78px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; }
body.sourcing-stable-mode .stable-match-meter i { display: block; height: 100%; border-radius: inherit; background: #f5f6f8; }
body.sourcing-stable-mode .stable-icon-action {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid var(--s-line);
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  color: var(--s-text);
  text-decoration: none;
  font-weight: 950;
  cursor: pointer;
}
body.sourcing-stable-mode .stable-icon-action.primary { background: rgba(142, 230, 189, .14); border-color: rgba(142, 230, 189, .32); }
body.sourcing-stable-mode .stable-save-toggle { grid-template-columns: auto 1fr !important; align-items: center; padding: 12px; border: 1px solid var(--s-line); border-radius: 14px; background: rgba(255,255,255,.035); }
body.sourcing-stable-mode .stable-save-toggle input { width: auto; min-height: auto; }
body.sourcing-stable-mode .stable-right-rail .stable-card strong,
body.sourcing-stable-mode .stable-right-rail .stable-panel > strong { display: block; font-size: 28px; letter-spacing: -.04em; }

@media (max-width: 1100px) {
  body.sourcing-stable-mode .stable-filter-bar,
  body.sourcing-stable-mode .stable-comparison-layout { grid-template-columns: 1fr; }
  body.sourcing-stable-mode .stable-right-rail { position: static; }
  body.sourcing-stable-mode .stable-loading-grid,
  body.sourcing-stable-mode .stable-loading-cards { grid-template-columns: 1fr; }
  body.sourcing-stable-mode .stable-compare-grid,
  body.sourcing-stable-mode .stable-search-matrix { grid-template-columns: 1fr; }
  body.sourcing-stable-mode .stable-chip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

body.sourcing-stable-mode .stable-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}
body.sourcing-stable-mode .stable-form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.sourcing-stable-mode .stable-form-grid .stable-action { align-self: end; }
body.sourcing-stable-mode .stable-status-note {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--s-line);
  border-radius: 999px;
  color: var(--s-muted);
  background: rgba(255,255,255,.05);
  font-size: 12px;
  font-weight: 900;
}
body.sourcing-stable-mode .stable-status-note[data-tone="success"] { color: var(--s-good); border-color: rgba(142, 230, 189, .34); }
body.sourcing-stable-mode .stable-status-note[data-tone="error"] { color: #ffb4aa; border-color: rgba(255, 180, 170, .34); }
body.sourcing-stable-mode .stable-status-note[data-tone="loading"] { color: var(--s-warn); border-color: rgba(255, 210, 138, .34); }

@media (max-width: 1100px) {
  body.sourcing-stable-mode .stable-form-grid,
  body.sourcing-stable-mode .stable-form-grid.two { grid-template-columns: 1fr; }
}

body.sourcing-stable-mode .stable-sales-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
body.sourcing-stable-mode .stable-sales-kpis article,
body.sourcing-stable-mode .stable-sales-row {
  border: 1px solid var(--s-line);
  border-radius: 18px;
  background: rgba(255,255,255,.045);
}
body.sourcing-stable-mode .stable-sales-kpis article { padding: 16px; }
body.sourcing-stable-mode .stable-sales-kpis span { color: var(--s-muted); font-weight: 900; }
body.sourcing-stable-mode .stable-sales-kpis strong { display: block; margin-top: 10px; font-size: 30px; letter-spacing: -.04em; }
body.sourcing-stable-mode .stable-sales-list { display: grid; gap: 10px; }
body.sourcing-stable-mode .stable-sales-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px 120px 140px;
  gap: 12px;
  align-items: center;
  padding: 14px;
}
body.sourcing-stable-mode .stable-sales-row small,
body.sourcing-stable-mode .stable-sales-row em { display: block; color: var(--s-muted); font-style: normal; font-weight: 850; }

@media (max-width: 760px) {
  body.sourcing-stable-mode .stable-filter-bar label,
  body.sourcing-stable-mode .stable-right-rail label,
  body.sourcing-stable-mode .stable-inline-form label { gap: 6px; }
  body.sourcing-stable-mode .stable-filter-bar select,
  body.sourcing-stable-mode .stable-right-rail select,
  body.sourcing-stable-mode .stable-right-rail input { min-height: 40px; }
  body.sourcing-stable-mode .stable-sell-tabs,
  body.sourcing-stable-mode .stable-tabs,
  body.sourcing-stable-mode .stable-source-pills,
  body.sourcing-stable-mode .stable-row-actions { gap: 7px; }
  body.sourcing-stable-mode .stable-filter,
  body.sourcing-stable-mode .stable-action,
  body.sourcing-stable-mode .stable-icon-action { min-height: 38px; padding: 8px 11px; }
  body.sourcing-stable-mode .stable-card strong,
  body.sourcing-stable-mode .metric-card strong,
  body.sourcing-stable-mode .stable-lane strong { font-size: 24px; }
  body.sourcing-stable-mode .stable-product-card { padding: 10px; }
  body.sourcing-stable-mode .stable-product-media { aspect-ratio: 1.18 / 1; }
  body.sourcing-stable-mode .stable-table-grid {
    gap: 12px;
    overflow: visible;
    border: 0;
    border-radius: 0;
  }
  body.sourcing-stable-mode .stable-table-head { display: none; }
  body.sourcing-stable-mode .stable-table-row {
    grid-template-columns: 1fr;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--s-line);
    border-radius: 18px;
    background: rgba(255,255,255,.045);
  }
  body.sourcing-stable-mode .stable-table-row > * {
    padding: 8px 0;
    border-bottom: 0;
  }
  body.sourcing-stable-mode .stable-product-cell {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  body.sourcing-stable-mode .stable-row-actions {
    padding-top: 10px;
  }
  body.sourcing-stable-mode .stable-row-actions .stable-icon-action {
    flex: 1 1 calc(50% - 8px);
  }
  body.sourcing-stable-mode .stable-match-meter {
    width: 100%;
    max-width: 190px;
  }
  body.sourcing-stable-mode .stable-sales-kpis,
  body.sourcing-stable-mode .stable-sales-row { grid-template-columns: 1fr; }
}
