.v04-product-business {
  --v04-border: #e5e7eb;
  --v04-muted: #667085;
  --v04-soft: #f7f8fa;
  --v04-text: #17202a;
  max-width: 1280px;
  margin: 0 auto;
}

.v04-chain-reconciliation {
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #eef6fa;
  color: #31596e;
  font-size: 12px;
  line-height: 1.6;
}
.v04-chain-reconciliation strong { font-size: 13px; }
.v04-chain-reconciliation span { overflow-wrap: anywhere; }

.v04-pb-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 14px;
}

.v04-pb-head h2 {
  margin: 3px 0 4px;
  font-size: 26px;
}

.v04-pb-head p,
.v04-section-title p {
  margin: 0;
  color: var(--v04-muted);
}

.v04-pb-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--v04-muted);
}

.v04-context-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  margin-bottom: 10px;
  border: 1px solid var(--v04-border);
  border-radius: 10px;
  background: var(--v04-soft);
}

.v04-context-bar > span {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.v04-context-bar small,
.v04-context-bar em {
  color: var(--v04-muted);
  font-style: normal;
}

.v04-context-bar strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v04-pb-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  margin-bottom: 12px;
  border: 1px solid var(--v04-border);
  border-radius: 12px;
  background: var(--v04-soft);
}

.v04-pb-tab {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-weight: 650;
}

.v04-pb-tab.active {
  background: #fff;
  box-shadow: 0 1px 4px rgba(16,24,40,.08);
}

.v04-pb-pane {
  display: none;
}

.v04-pb-pane.active {
  display: block;
}

.v04-conclusion {
  padding: 18px;
  border: 1px solid var(--v04-border);
  border-radius: 12px;
  background: #fff;
}

.v04-conclusion-label {
  display: block;
  margin-bottom: 6px;
  color: var(--v04-muted);
  font-size: 12px;
  font-weight: 700;
}

.v04-conclusion h3 {
  margin: 0 0 7px;
  font-size: 20px;
}

.v04-conclusion p {
  margin: 0;
  color: var(--v04-muted);
}

.v04-action-list {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.v04-action-row,
.v04-product-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  text-align: left;
  border: 1px solid var(--v04-border);
  border-radius: 10px;
  background: #fff;
}

.v04-action-row > span,
.v04-product-row > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.v04-action-row small,
.v04-product-row small {
  color: var(--v04-muted);
}

.v04-action-row b,
.v04-product-row b {
  flex: 0 0 auto;
  font-size: 13px;
}

.v04-section-title {
  margin-bottom: 10px;
}

.v04-section-title h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

.v04-product-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 8px;
}

.v04-product-search input {
  width: 100%;
  min-height: 42px;
}

.v04-inline-status {
  min-height: 24px;
  padding: 3px 1px;
  color: var(--v04-muted);
  font-size: 13px;
}

.v04-product-results {
  display: grid;
  gap: 6px;
}

.v04-selected-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, .65fr);
  gap: 12px;
  margin-top: 12px;
  padding: 15px;
  border: 1px solid var(--v04-border);
  border-radius: 12px;
  background: #fff;
}

.v04-selected-product h3 {
  margin: 3px 0;
}

.v04-selected-product p {
  margin: 0;
  color: var(--v04-muted);
}

.v04-next-step {
  display: grid;
  gap: 4px;
  align-content: center;
}

.v04-next-step span {
  color: var(--v04-muted);
  font-size: 13px;
}

.v04-compact-callout {
  display: grid;
  grid-template-columns: minmax(180px, .6fr) minmax(260px, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--v04-border);
  border-radius: 10px;
  background: #fff;
}

.v04-compact-callout span {
  color: var(--v04-muted);
  font-size: 13px;
}

.v04-loading-lines {
  display: grid;
  gap: 7px;
  padding: 9px 0;
}

.v04-loading-lines span {
  display: block;
  height: 10px;
  border-radius: 8px;
  background: #eef0f3;
}

.v04-loading-lines span:nth-child(2) {
  width: 78%;
}

.v04-loading-lines span:nth-child(3) {
  width: 56%;
}

@media (max-width: 720px) {
  .v04-product-business {
    padding-bottom: 18px;
  }

  .v04-pb-head {
    align-items: flex-start;
  }

  .v04-pb-head h2 {
    font-size: 22px;
  }

  .v04-pb-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v04-context-bar {
    align-items: flex-start;
  }

  .v04-context-bar > span {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .v04-product-search {
    grid-template-columns: 1fr;
  }

  .v04-product-search button {
    width: 100%;
  }

  .v04-selected-product {
    grid-template-columns: 1fr;
  }

  .v04-compact-callout {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .v04-compact-callout button {
    width: 100%;
  }

  .v04-action-row {
    align-items: flex-start;
  }

  .v04-action-row small {
    line-height: 1.4;
  }
}
/* ==========================================================
   V0.4 M1.1
   今日经营不是导航页，不重复四视角入口。
   只承载真正需要今天处理的经营事项。
   ========================================================== */

.v04-today-title {
  margin-bottom: 8px;
}

.v04-today-feed {
  min-height: 0;
}

.v04-today-empty {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 1px;
  color: var(--v04-muted);
}

.v04-today-empty strong {
  color: var(--v04-text);
  font-size: 14px;
}

.v04-today-empty span {
  font-size: 13px;
}

@media (max-width: 720px) {
  .v04-today-empty {
    display: grid;
    gap: 3px;
    padding: 6px 1px;
  }
}
/* ==========================================================
   V0.4 M2A 商品详情
   人的使用顺序：结论 → 为什么 → 再展开更多
   ========================================================== */

.v04-detail-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.v04-detail-product-id {
  display: grid;
  min-width: 0;
}

.v04-detail-product-id strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v04-detail-product-id small {
  color: var(--v04-muted);
}

.v04-detail-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--v04-border);
}

.v04-detail-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  padding: 9px 13px;
}

.v04-detail-tabs button.active {
  border-bottom-color: currentColor;
  font-weight: 700;
}

.v04-detail-pane {
  display: none;
}

.v04-detail-pane.active {
  display: block;
}

.v04-decision-card {
  padding: 16px 18px;
  border: 1px solid var(--v04-border);
  border-radius: 12px;
  background: #fff;
}

.v04-decision-label {
  color: var(--v04-muted);
  font-size: 12px;
  font-weight: 700;
}

.v04-decision-card h3 {
  margin: 5px 0 5px;
  font-size: 22px;
}

.v04-decision-card p {
  max-width: 760px;
  margin: 0;
  color: var(--v04-muted);
  line-height: 1.55;
}

.v04-primary-action-wrap {
  margin-top: 13px;
}

.v04-detail-block {
  margin-top: 12px;
}

.v04-detail-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}

.v04-detail-block-head h4 {
  margin: 0;
}

.v04-detail-block-head span {
  color: var(--v04-muted);
  font-size: 12px;
}

.v04-key-evidence {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 7px;
}

.v04-evidence-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 11px;
  border: 1px solid var(--v04-border);
  border-radius: 9px;
  background: #fff;
}

.v04-evidence-row span {
  color: var(--v04-muted);
  font-size: 13px;
}

.v04-evidence-empty {
  color: var(--v04-muted);
  font-size: 13px;
  padding: 5px 0;
}

.v04-more-evidence {
  margin-top: 10px;
  border-top: 1px solid var(--v04-border);
}

.v04-more-evidence summary {
  cursor: pointer;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 650;
}

.v04-more-evidence-body {
  display: grid;
  gap: 6px;
  padding-bottom: 8px;
}

.v04-detail-message {
  display: grid;
  gap: 4px;
  padding: 8px 1px;
  color: var(--v04-muted);
}

.v04-detail-message strong {
  color: var(--v04-text);
}

.v04-detail-message.error { color: #a43a32; }
.v04-pane-tools,.v04-sourcing-form { display:flex; gap:10px; align-items:end; flex-wrap:wrap; margin-bottom:12px; }
.v04-pane-tools label,.v04-sourcing-form label { display:grid; gap:5px; min-width:180px; color:var(--v04-muted); font-size:12px; }
.v04-pane-tools select,.v04-sourcing-form input,.v04-sourcing-form select { min-height:40px; border:1px solid var(--v04-border); border-radius:8px; padding:7px 9px; background:#fff; }
.v04-policy-note { margin:10px 0; padding:9px 11px; border-left:3px solid #c58a24; background:#fff8e8; color:#6d5328; font-size:12px; }
.v04-metric-strip { display:grid; grid-template-columns:repeat(6,minmax(90px,1fr)); gap:7px; margin-bottom:12px; }
.v04-metric-strip:empty { display:none; }
.v04-metric-strip>div { display:grid; gap:2px; padding:10px; border:1px solid var(--v04-border); border-radius:9px; background:#fff; }
.v04-metric-strip span,.v04-metric-strip small { color:var(--v04-muted); font-size:11px; }
.v04-metric-strip strong { font-size:18px; }
.v04-work-content { display:grid; gap:9px; }
.v04-opportunity-row,.v04-sourcing-card,.v04-assortment-column,.v04-execution-group { border:1px solid var(--v04-border); border-radius:10px; padding:12px; background:#fff; }
.v04-opportunity-head { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.v04-opportunity-head small { margin-left:auto; color:var(--v04-muted); }
.v04-conclusion { display:inline-block; width:max-content; border-radius:999px; background:#e9f2ed; color:#285d40; padding:3px 8px; font-size:11px; font-weight:700; }
.v04-不建议 .v04-conclusion,.v04-观察 .v04-conclusion { background:#fff1e6; color:#8b4c19; }
.v04-evidence-line { display:flex; flex-wrap:wrap; gap:7px; color:var(--v04-muted); font-size:11px; }
.v04-evidence-line span { padding:4px 7px; border-radius:6px; background:#f6f7f8; }
.v04-sticky-action { position:sticky; bottom:8px; z-index:3; display:flex; justify-content:space-between; align-items:center; margin-top:12px; padding:10px 12px; border-radius:10px; background:#122f42; color:#fff; box-shadow:0 8px 24px #0002; }
.v04-assortment-column { display:grid; gap:7px; }
.v04-assortment-column button,.v04-today-feed button { display:flex; justify-content:space-between; gap:10px; text-align:left; padding:10px; border:1px solid var(--v04-border); border-radius:9px; background:#fff; }
.v04-assortment-column button span,.v04-today-feed button { display:grid; gap:3px; }
.v04-assortment-column small,.v04-today-feed small { color:var(--v04-muted); }
.v04-sourcing-card dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.v04-sourcing-card dl>div { padding:8px; border-radius:8px; background:#f7f8f9; }
.v04-sourcing-card dt { color:var(--v04-muted); font-size:11px; }
.v04-sourcing-card dd { margin:3px 0 0; }
.v04-execution-group summary { display:flex; justify-content:space-between; gap:10px; cursor:pointer; padding:7px; }
.v04-execution-group summary span { display:grid; }
.v04-execution-group summary small { color:var(--v04-muted); }
.v04-execution-group details { margin:6px; border:1px solid var(--v04-border); border-radius:8px; }
.v04-store-list>div { display:grid; grid-template-columns:minmax(180px,1fr) repeat(3,max-content); gap:9px; align-items:center; padding:8px 10px; border-top:1px solid var(--v04-border); font-size:12px; }
.v04-store-list span:first-child { display:grid; }
.v04-store-list small { color:var(--v04-muted); }
.v04-store-list .ok { color:#237447; font-weight:700; }

.v04-detail-loading {
  display: grid;
  gap: 8px;
  padding: 10px 0;
}

.v04-detail-loading span {
  display: block;
  height: 12px;
  border-radius: 7px;
  background: #eef0f3;
}

.v04-detail-loading span:nth-child(2) {
  width: 72%;
}

.v04-detail-loading span:nth-child(3) {
  width: 48%;
}

@media (max-width: 720px) {

  .v04-detail-toolbar {
    align-items: flex-start;
  }

  .v04-detail-tabs {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
  }

  .v04-detail-tabs button {
    flex: 1 1 0;
    padding-left: 5px;
    padding-right: 5px;
  }

  .v04-decision-card {
    padding: 14px;
  }

  .v04-decision-card h3 {
    font-size: 20px;
  }

  .v04-primary-action-wrap .primary {
    width: 100%;
    min-height: 44px;
  }

  .v04-key-evidence {
    grid-template-columns: 1fr;
  }

  .v04-metric-strip { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .v04-sourcing-form { display:grid; grid-template-columns:1fr; }
  .v04-sourcing-form label { min-width:0; }
  .v04-sourcing-card dl { grid-template-columns:1fr; }
  .v04-store-list>div { grid-template-columns:1fr 1fr; }
  .v04-execution-group summary { display:grid; }
  .v04-sticky-action { bottom:64px; }

  .v04-detail-block-head {
    display: grid;
    gap: 2px;
  }
}
